Matt Walker
627df10d98
WIP morph DOM instead of recreating
...
Improves usability and possibly accessibility as it improves keyboard
interaction with radio and checkboxes
2020-12-10 09:43:19 +00:00
Matt Walker
ae9e8f843b
Bump version to v3.8.1
v3.8.1
2020-11-24 18:46:00 +00:00
Matt Walker
c4b680881a
Simplify layer Options and export all interfaces and types
...
Instead of trying to modify OpenLayers layer Options interfaces
directly, extend Base and Group Options interfaces with LayerSwitcher
specific properties.
All types and interfaces are now exported so they can be used as
required in a consumers TypeScript project.
2020-11-24 16:57:48 +00:00
Matt Walker
6fd02ee576
Bump version to v3.8.0
v3.8.0
2020-11-21 07:42:19 +00:00
Matt Walker
6740fb7ee9
Update path to css and polyfills
2020-11-16 08:14:28 +00:00
Matt Walker
3b35c440ba
Load CSS from dist instead of src
2020-11-14 20:00:02 +00:00
Matt Walker
e32ed09255
Update docs
2020-11-14 19:46:19 +00:00
Matt Walker
de56cdd60a
Bump to v3.8.0-beta.1
v3.8.0-beta.1
2020-11-09 09:37:44 +00:00
Matt Walker
c52a8f0dc8
Improve docs
...
* Upgrade documentation for TypeScript support
* Use `as` syntax to cast as documentation doesn't support <> syntax ATM
* Add TypeScript notes to README and generally improve API docs
2020-11-09 09:35:34 +00:00
Matt Walker
e910e18d77
Fixes after linting with @typescript-eslint & format with prettier
2020-10-31 20:30:08 +00:00
Matt Walker
98acb089f5
Add Event and Object.assign to polyfill list
2020-10-31 20:18:05 +00:00
Matt Walker
1aedf3224a
Add notes on publishing a beta
2020-10-28 20:55:10 +00:00
Matt Walker
95a12f3a4f
Bump version to v3.8.0-beta.0
v3.8.0-beta.0
2020-10-28 20:10:26 +00:00
Matt Walker
99d843cfa3
Don't commit intermediate .js produced by tsc
2020-10-28 19:38:25 +00:00
Matt Walker
bf5d9a1799
Commit latest dist files
2020-10-28 19:35:12 +00:00
Matt Walker
3936e0e7b8
Extend ol BaseLayer and GroupLayer Option types
...
Include properties used by ol-layerswitcher
2020-10-28 19:32:28 +00:00
Matt Walker
e5d3b03ed5
Moar types for callbacks and functions
2020-10-28 19:29:49 +00:00
Matt Walker
e92dd5e16c
Use instanceof to test for a GroupLayer
2020-10-28 19:29:05 +00:00
Matt Walker
e11b9be594
Make options optional
2020-10-28 19:28:30 +00:00
Matt Walker
24b65363f2
Favour protected instead of private to allow sub-classes to use and override
2020-10-28 19:07:35 +00:00
Matt Walker
58b1970be6
Copy css to dist to simply files release in package
2020-10-28 19:00:42 +00:00
Matt Walker
99b93d9900
Define type of forEachRecursive callback function
2020-10-27 09:38:14 +00:00
Matt Walker
406f98a991
Define interfaces for options; type functions
2020-10-26 19:41:00 +00:00
Matt Walker
ee8d691e59
Have tsc output es6 and let rollup/ babel transpile
...
Produces results much closer to current plain js output
2020-10-26 19:39:11 +00:00
Matt Walker
1e9e0f9b72
Bare minimum migration to TypeScript
...
Creates UMD bundle (dist/ol-layerswitcher.js) as before plus TypeScript
types (dist/ol-layerswitcher.d.ts)
Currently src/ol-layerswitcher.ts is compiled to temporary JS
(tmp/ol-layerswitcher.js) and types (dist/ol-layerswitcher.d.ts) before
docs and UMD bundle are created from tmp/ol-layerswitcher.js
Tests pass and examples work, I've not tried ESM import
TODO
* Test ESM import
* Test in a TypeScript project
* Moar typing needed, currently lots of `any` types internally!
2020-10-24 20:04:22 +01:00
Matt Walker
5d1bb4cb14
Bump v3.7.0
v3.7.0
2020-09-18 14:17:18 +01:00
Matt Walker
9cda37a783
Add aria-label attribute to toggle button
2020-09-18 11:11:02 +01:00
Matt Walker
b0c97af7a9
Update activation mode example with tipLabel & collapseTipLabel options
2020-09-18 11:10:39 +01:00
Matt Walker
d6599aa6b4
Add tests for activationMode & startActive plus new CSS classes
2020-09-18 10:25:58 +01:00
Matt Walker
6003420f2a
Increase length of district layer title to demo wrapping
...
Allows us to visually check for any regressions in future related to
wrapping layer titles
2020-09-18 10:24:47 +01:00
Matt Walker
3ddc3f95b3
Reinstate activationModeClick CSS class
...
Avoid a breaking change for this release, added comments with proposed
changes for next major version release
2020-09-18 10:19:37 +01:00
Peter Goulborn
8c9c862c22
Remove buttonClasses option as unnecessary
2020-09-17 17:22:55 +01:00
Matt Walker
3f82d9d941
Add collapseTipLabel option used when activationMode is click
2020-09-16 14:17:21 +01:00
Matt Walker
3c53eb646b
Add class for activationMode option
...
Removes activationModeClick class in favour of
layer-switcher-activation-mode-mouseover and
layer-switcher-activation-mode-click classes
2020-09-16 14:15:56 +01:00
Matt Walker
7485dec2fa
Adjust group label position when no checkbox
...
Adds a class to the main element to represent groupSelectStyle and a CSS
rule to adjust the padding when groupSelectStyle is 'none'
2020-09-16 14:11:47 +01:00
Matt Walker
ad6a49b7ae
Use startActive option in groupSelectStyle example
...
Makes it much easier to review the groupSelectStyle options
2020-09-16 14:09:06 +01:00
Matt Walker
6c847bb256
Only build JS in watch script
2020-09-16 14:06:50 +01:00
Peter Goulborn
a31fcfde2f
Revert to 'water color'
...
Change to names obscure code changes
2020-09-15 17:02:56 +01:00
Peter Goulborn
cc71787861
Revert fussy change around 'return' placement
2020-09-15 16:57:44 +01:00
Peter Goulborn
6d36a029ce
Merge remote-tracking branch 'upstream/master' into main
2020-09-15 16:48:57 +01:00
Peter Goulborn
a7ae87a47b
Merge branch 'eslint-prettier-rules' into main
2020-09-15 15:42:11 +01:00
Peter Goulborn
960230602f
Add ESLint and Prettier formatting for everything!
2020-09-15 15:08:50 +01:00
Peter Goulborn
4052ad0e19
Build documentation with code
2020-09-15 10:11:36 +01:00
Peter Goulborn
f3f8bf4d86
Run Prettier when generating documentation
2020-09-15 10:04:46 +01:00
Peter Goulborn
5714548fa1
Lint first, format code second
2020-09-15 09:22:32 +01:00
Peter Goulborn
c1ffe62c97
Lint first, format code second
2020-09-15 09:22:11 +01:00
Peter Goulborn
ba103c490f
Merge branch 'eslint-prettier-rules' into main
2020-09-15 09:13:39 +01:00
Peter Goulborn
a08e207478
Add OpenLayers as dev dependency
2020-09-15 09:12:42 +01:00
Peter Goulborn
d50179a0f4
Added missing JSDoc comments
2020-09-14 18:37:27 +01:00
Peter Goulborn
52e4c795c3
Remove unused 'key' variable
2020-09-14 18:03:33 +01:00