@expressivecss/expressive 0.13.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +196 -1
- package/README.md +2 -1
- package/dist/css/expressive.css +432 -311
- package/dist/css/expressive.css.map +1 -1
- package/dist/css/expressive.min.css +1 -1
- package/dist/css/expressive.min.css.map +1 -1
- package/dist/js/chunks/{chunk-DTKR54I6.mjs → chunk-33QVDDGR.mjs} +3 -3
- package/dist/js/chunks/{chunk-SPETGK25.mjs → chunk-45FER6RI.mjs} +5 -5
- package/dist/js/chunks/chunk-45FER6RI.mjs.map +7 -0
- package/dist/js/chunks/{chunk-WJXDBPXQ.mjs → chunk-5CEAOLUA.mjs} +17 -20
- package/dist/js/chunks/chunk-5CEAOLUA.mjs.map +7 -0
- package/dist/js/chunks/{chunk-CKQP6P76.mjs → chunk-6VATUZC6.mjs} +12 -7
- package/dist/js/chunks/chunk-6VATUZC6.mjs.map +7 -0
- package/dist/js/chunks/{chunk-QDAL4IYN.mjs → chunk-74MXKKLN.mjs} +2 -2
- package/dist/js/chunks/{chunk-QDAL4IYN.mjs.map → chunk-74MXKKLN.mjs.map} +2 -2
- package/dist/js/chunks/{chunk-DLWYKFEI.mjs → chunk-AIURVCG6.mjs} +3 -3
- package/dist/js/chunks/{chunk-NNYP33NB.mjs → chunk-BGZLF6JZ.mjs} +19 -18
- package/dist/js/chunks/chunk-BGZLF6JZ.mjs.map +7 -0
- package/dist/js/chunks/chunk-C6CHEWYP.mjs +154 -0
- package/dist/js/chunks/chunk-C6CHEWYP.mjs.map +7 -0
- package/dist/js/chunks/{chunk-GVGT6MIU.mjs → chunk-CK2XCICY.mjs} +2 -2
- package/dist/js/chunks/{chunk-XGHORT7J.mjs → chunk-CXXM2L4F.mjs} +8 -9
- package/dist/js/chunks/chunk-CXXM2L4F.mjs.map +7 -0
- package/dist/js/chunks/{chunk-QVVEWBOF.mjs → chunk-DXGRXYYL.mjs} +25 -37
- package/dist/js/chunks/chunk-DXGRXYYL.mjs.map +7 -0
- package/dist/js/chunks/{chunk-QV2JAWIZ.mjs → chunk-FM5CZOUB.mjs} +5 -8
- package/dist/js/chunks/{chunk-QV2JAWIZ.mjs.map → chunk-FM5CZOUB.mjs.map} +2 -2
- package/dist/js/chunks/{chunk-PLYXLSH3.mjs → chunk-GJL6GCIU.mjs} +46 -58
- package/dist/js/chunks/chunk-GJL6GCIU.mjs.map +7 -0
- package/dist/js/chunks/chunk-K3HZMFMD.mjs +135 -0
- package/dist/js/chunks/chunk-K3HZMFMD.mjs.map +7 -0
- package/dist/js/chunks/chunk-KHXZ2A4K.mjs +395 -0
- package/dist/js/chunks/chunk-KHXZ2A4K.mjs.map +7 -0
- package/dist/js/chunks/chunk-KQACNQ22.mjs +7 -0
- package/dist/js/chunks/{chunk-4PWAPV6F.mjs.map → chunk-KQACNQ22.mjs.map} +1 -1
- package/dist/js/chunks/chunk-KUFHW3DS.mjs +214 -0
- package/dist/js/chunks/chunk-KUFHW3DS.mjs.map +7 -0
- package/dist/js/chunks/{chunk-LWBQIX5J.mjs → chunk-KVJAVDBC.mjs} +46 -57
- package/dist/js/chunks/chunk-KVJAVDBC.mjs.map +7 -0
- package/dist/js/chunks/{chunk-YDCS5S3J.mjs → chunk-L27Q6ZMI.mjs} +2 -2
- package/dist/js/chunks/{chunk-CCWDV5CR.mjs → chunk-LQWUDNHZ.mjs} +3 -3
- package/dist/js/chunks/{chunk-6OMRGML6.mjs → chunk-M372EDXD.mjs} +7 -13
- package/dist/js/chunks/{chunk-6OMRGML6.mjs.map → chunk-M372EDXD.mjs.map} +2 -2
- package/dist/js/chunks/{chunk-EC63CHXU.mjs → chunk-M3MURWMB.mjs} +20 -16
- package/dist/js/chunks/chunk-M3MURWMB.mjs.map +7 -0
- package/dist/js/chunks/{chunk-U2OTHOTI.mjs → chunk-NUHMOAOY.mjs} +19 -33
- package/dist/js/chunks/chunk-NUHMOAOY.mjs.map +7 -0
- package/dist/js/chunks/{chunk-P3G3QHII.mjs → chunk-OWG3LMUL.mjs} +17 -14
- package/dist/js/chunks/chunk-OWG3LMUL.mjs.map +7 -0
- package/dist/js/chunks/{chunk-LTWPGFBR.mjs → chunk-PD6HYHAE.mjs} +4 -15
- package/dist/js/chunks/chunk-PD6HYHAE.mjs.map +7 -0
- package/dist/js/chunks/{chunk-PIJ2TAR3.mjs → chunk-PDG64UHF.mjs} +3 -3
- package/dist/js/chunks/{chunk-IFXVDDDH.mjs → chunk-PO3AXVR3.mjs} +38 -64
- package/dist/js/chunks/chunk-PO3AXVR3.mjs.map +7 -0
- package/dist/js/chunks/{chunk-QKWPQK5N.mjs → chunk-QYGK36OG.mjs} +16 -14
- package/dist/js/chunks/chunk-QYGK36OG.mjs.map +7 -0
- package/dist/js/chunks/{chunk-UNEMYWEW.mjs → chunk-SFI2U4YW.mjs} +28 -44
- package/dist/js/chunks/chunk-SFI2U4YW.mjs.map +7 -0
- package/dist/js/chunks/{chunk-VTLBW7QS.mjs → chunk-SMY7GJSS.mjs} +3 -3
- package/dist/js/chunks/{chunk-O5XPWXIQ.mjs → chunk-TCCA2HDG.mjs} +39 -31
- package/dist/js/chunks/chunk-TCCA2HDG.mjs.map +7 -0
- package/dist/js/chunks/{chunk-UBLRRJ7N.mjs → chunk-TSZYSW7F.mjs} +4 -4
- package/dist/js/chunks/{chunk-UBLRRJ7N.mjs.map → chunk-TSZYSW7F.mjs.map} +2 -2
- package/dist/js/chunks/{chunk-UEZUJQ66.mjs → chunk-UAZSDUVP.mjs} +3 -4
- package/dist/js/chunks/{chunk-UEZUJQ66.mjs.map → chunk-UAZSDUVP.mjs.map} +2 -2
- package/dist/js/chunks/{chunk-6N2XAEFK.mjs → chunk-UBRZZWRA.mjs} +10 -8
- package/dist/js/chunks/chunk-UBRZZWRA.mjs.map +7 -0
- package/dist/js/chunks/{chunk-3VOK6J7U.mjs → chunk-UCOE7ZDL.mjs} +47 -45
- package/dist/js/chunks/chunk-UCOE7ZDL.mjs.map +7 -0
- package/dist/js/chunks/{chunk-K4CJCRGE.mjs → chunk-UETTGDLI.mjs} +3 -3
- package/dist/js/chunks/{chunk-RHRQKTTX.mjs → chunk-UNCRDLP6.mjs} +6 -9
- package/dist/js/chunks/chunk-UNCRDLP6.mjs.map +7 -0
- package/dist/js/chunks/{chunk-LNCCYGPC.mjs → chunk-VGNYF6FB.mjs} +8 -10
- package/dist/js/chunks/chunk-VGNYF6FB.mjs.map +7 -0
- package/dist/js/chunks/{chunk-UAEAQBRC.mjs → chunk-VGPGBNGL.mjs} +4 -12
- package/dist/js/chunks/chunk-VGPGBNGL.mjs.map +7 -0
- package/dist/js/chunks/chunk-VKAUVTQY.mjs +1 -0
- package/dist/js/chunks/{chunk-HKT2S7VM.mjs → chunk-VM4FTS7L.mjs} +3 -3
- package/dist/js/chunks/{chunk-55IA2XUC.mjs → chunk-WDK4T63U.mjs} +8 -11
- package/dist/js/chunks/chunk-WDK4T63U.mjs.map +7 -0
- package/dist/js/chunks/{chunk-XH6BEEMY.mjs → chunk-WOCCTVUF.mjs} +51 -39
- package/dist/js/chunks/chunk-WOCCTVUF.mjs.map +7 -0
- package/dist/js/chunks/{chunk-GZWPXXY6.mjs → chunk-WQYN5L4E.mjs} +14 -16
- package/dist/js/chunks/chunk-WQYN5L4E.mjs.map +7 -0
- package/dist/js/chunks/{chunk-6WLSDZ4O.mjs → chunk-X4ISMKE2.mjs} +2 -2
- package/dist/js/chunks/{chunk-3DHK5CZU.mjs → chunk-XAEAEHIX.mjs} +6 -8
- package/dist/js/chunks/chunk-XAEAEHIX.mjs.map +7 -0
- package/dist/js/chunks/{chunk-3CLXLPYS.mjs → chunk-ZX6M7SWO.mjs} +43 -29
- package/dist/js/chunks/chunk-ZX6M7SWO.mjs.map +7 -0
- package/dist/js/expressive.cjs +1337 -572
- package/dist/js/expressive.cjs.map +4 -4
- package/dist/js/expressive.js +1337 -572
- package/dist/js/expressive.js.map +4 -4
- package/dist/js/expressive.min.js +10 -13
- package/dist/js/expressive.min.js.map +4 -4
- package/dist/js/expressive.mjs +71 -55
- package/dist/js/expressive.mjs.map +1 -1
- package/dist/js/internal/behaviors/bottomSheets.mjs +3 -3
- package/dist/js/internal/behaviors/dialogs.mjs +2 -2
- package/dist/js/internal/behaviors/forms.mjs +2 -2
- package/dist/js/internal/behaviors/sheetDrag.mjs +2 -2
- package/dist/js/internal/behaviors/sideSheets.mjs +3 -3
- package/dist/js/internal/components/appBar.mjs +2 -2
- package/dist/js/internal/components/autocomplete.mjs +4 -4
- package/dist/js/internal/components/barChart.mjs +4 -4
- package/dist/js/internal/components/buttonGroup.mjs +2 -2
- package/dist/js/internal/components/buttons.mjs +3 -3
- package/dist/js/internal/components/cards.mjs +3 -3
- package/dist/js/internal/components/carousel.mjs +3 -3
- package/dist/js/internal/components/characterCounter.mjs +2 -2
- package/dist/js/internal/components/chips.mjs +5 -5
- package/dist/js/internal/components/columnChart.mjs +3 -3
- package/dist/js/internal/components/commandPalette.mjs +3 -3
- package/dist/js/internal/components/confetti.mjs +8 -0
- package/dist/js/internal/components/confetti.mjs.map +7 -0
- package/dist/js/internal/components/datepicker.mjs +6 -6
- package/dist/js/internal/components/expandingCard.mjs +3 -3
- package/dist/js/internal/components/heatmapChart.mjs +3 -3
- package/dist/js/internal/components/index.mjs +64 -48
- package/dist/js/internal/components/keypad.mjs +9 -0
- package/dist/js/internal/components/keypad.mjs.map +7 -0
- package/dist/js/internal/components/lightbox.mjs +3 -3
- package/dist/js/internal/components/lineChart.mjs +6 -2
- package/dist/js/internal/components/mapView.mjs +9 -0
- package/dist/js/internal/components/mapView.mjs.map +7 -0
- package/dist/js/internal/components/menu.mjs +3 -3
- package/dist/js/internal/components/messageScroller.mjs +3 -3
- package/dist/js/internal/components/mixedChart.mjs +4 -4
- package/dist/js/internal/components/navigationRail.mjs +2 -2
- package/dist/js/internal/components/particles.mjs +8 -0
- package/dist/js/internal/components/particles.mjs.map +7 -0
- package/dist/js/internal/components/pieChart.mjs +3 -3
- package/dist/js/internal/components/questionnaire.mjs +3 -3
- package/dist/js/internal/components/radarChart.mjs +3 -3
- package/dist/js/internal/components/radialChart.mjs +3 -3
- package/dist/js/internal/components/registry.mjs +41 -37
- package/dist/js/internal/components/richTextEditor.mjs +3 -3
- package/dist/js/internal/components/scrollspy.mjs +2 -2
- package/dist/js/internal/components/select.mjs +4 -4
- package/dist/js/internal/components/slider.mjs +3 -3
- package/dist/js/internal/components/snackbar.mjs +2 -2
- package/dist/js/internal/components/tabs.mjs +4 -4
- package/dist/js/internal/components/timepicker.mjs +4 -4
- package/dist/js/internal/components/tooltip.mjs +3 -3
- package/dist/js/internal/core/component.mjs +1 -1
- package/dist/js/internal/core/utils.mjs +1 -1
- package/dist/js/internal/plugins/dockedDisplayPlugin.mjs +2 -2
- package/dist/js/modular.mjs +71 -55
- package/dist/types/behaviors/forms.d.ts +5 -0
- package/dist/types/components/autocomplete.d.ts +1 -0
- package/dist/types/components/carousel.d.ts +2 -0
- package/dist/types/components/confetti.d.ts +103 -0
- package/dist/types/components/datepicker.d.ts +5 -4
- package/dist/types/components/expandingCard.d.ts +2 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/keypad.d.ts +34 -0
- package/dist/types/components/lightbox.d.ts +3 -5
- package/dist/types/components/lineChart.d.ts +4 -0
- package/dist/types/components/mapView.d.ts +151 -0
- package/dist/types/components/menu.d.ts +1 -0
- package/dist/types/components/particles.d.ts +72 -0
- package/dist/types/components/pieChart.d.ts +3 -0
- package/dist/types/components/radialChart.d.ts +0 -1
- package/dist/types/components/registry.d.ts +12 -0
- package/dist/types/components/slider.d.ts +3 -1
- package/dist/types/components/snackbar.d.ts +3 -0
- package/dist/types/components/tabs.d.ts +5 -1
- package/dist/types/components/timepicker.d.ts +2 -0
- package/dist/types/modular.d.ts +1 -1
- package/dist/types/plugins/dockedDisplayPlugin.d.ts +4 -3
- package/package.json +2 -1
- package/src/sass/abstracts/_breakpoints.scss +0 -1
- package/src/sass/abstracts/_elevation.scss +1 -1
- package/src/sass/abstracts/_mixins.scss +20 -60
- package/src/sass/abstracts/_variables.scss +10 -0
- package/src/sass/base/_global.scss +3 -12
- package/src/sass/base/_index.scss +1 -1
- package/src/sass/components/_badges.scss +1 -8
- package/src/sass/components/_bar-chart.scss +1 -1
- package/src/sass/components/_button-groups.scss +31 -66
- package/src/sass/components/_buttons.scss +1 -1
- package/src/sass/components/_cards.scss +6 -25
- package/src/sass/components/_carousel.scss +16 -55
- package/src/sass/components/_chips.scss +0 -6
- package/src/sass/components/_column-chart.scss +1 -1
- package/src/sass/components/_confetti.scss +14 -0
- package/src/sass/components/_data-table.scss +1 -3
- package/src/sass/components/_datepicker.scss +3 -22
- package/src/sass/components/_dialog.scss +1 -4
- package/src/sass/components/_heatmap-chart.scss +2 -2
- package/src/sass/components/_icon-buttons.scss +0 -1
- package/src/sass/components/_index.scss +4 -0
- package/src/sass/components/_keypad.scss +162 -0
- package/src/sass/components/_lightbox.scss +3 -8
- package/src/sass/components/_map.scss +188 -0
- package/src/sass/components/_menu.scss +31 -74
- package/src/sass/components/_mixed-chart.scss +1 -1
- package/src/sass/components/_navbar.scss +9 -45
- package/src/sass/components/_navigation-rail.scss +23 -32
- package/src/sass/components/_page-footer.scss +15 -12
- package/src/sass/components/_panes.scss +2 -6
- package/src/sass/components/_particles.scss +14 -0
- package/src/sass/components/_progress.scss +6 -4
- package/src/sass/components/_side-sheet.scss +1 -4
- package/src/sass/components/_stepper.scss +0 -4
- package/src/sass/components/_table_of_contents.scss +3 -1
- package/src/sass/components/_timepicker.scss +4 -36
- package/src/sass/components/_toolbar.scss +0 -4
- package/src/sass/components/forms/_checkboxes.scss +44 -67
- package/src/sass/components/forms/_fieldset.scss +3 -3
- package/src/sass/components/forms/_file-input.scss +0 -1
- package/src/sass/components/forms/_radio-buttons.scss +10 -36
- package/src/sass/components/forms/_select.scss +0 -3
- package/src/sass/components/forms/_slider.scss +72 -259
- package/src/sass/tokens/_state.scss +2 -2
- package/src/sass/tokens/_theme.scss +1 -1
- package/src/sass/utilities/_colors.scss +6 -1
- package/src/sass/utilities/_index.scss +1 -1
- package/dist/js/chunks/chunk-3CLXLPYS.mjs.map +0 -7
- package/dist/js/chunks/chunk-3DHK5CZU.mjs.map +0 -7
- package/dist/js/chunks/chunk-3VOK6J7U.mjs.map +0 -7
- package/dist/js/chunks/chunk-4PWAPV6F.mjs +0 -7
- package/dist/js/chunks/chunk-55IA2XUC.mjs.map +0 -7
- package/dist/js/chunks/chunk-6N2XAEFK.mjs.map +0 -7
- package/dist/js/chunks/chunk-CKQP6P76.mjs.map +0 -7
- package/dist/js/chunks/chunk-EC63CHXU.mjs.map +0 -7
- package/dist/js/chunks/chunk-GZWPXXY6.mjs.map +0 -7
- package/dist/js/chunks/chunk-IFXVDDDH.mjs.map +0 -7
- package/dist/js/chunks/chunk-LNCCYGPC.mjs.map +0 -7
- package/dist/js/chunks/chunk-LTWPGFBR.mjs.map +0 -7
- package/dist/js/chunks/chunk-LWBQIX5J.mjs.map +0 -7
- package/dist/js/chunks/chunk-NNYP33NB.mjs.map +0 -7
- package/dist/js/chunks/chunk-NQLC3YMW.mjs +0 -1
- package/dist/js/chunks/chunk-O5XPWXIQ.mjs.map +0 -7
- package/dist/js/chunks/chunk-P3G3QHII.mjs.map +0 -7
- package/dist/js/chunks/chunk-PLYXLSH3.mjs.map +0 -7
- package/dist/js/chunks/chunk-QKWPQK5N.mjs.map +0 -7
- package/dist/js/chunks/chunk-QVVEWBOF.mjs.map +0 -7
- package/dist/js/chunks/chunk-RHRQKTTX.mjs.map +0 -7
- package/dist/js/chunks/chunk-SPETGK25.mjs.map +0 -7
- package/dist/js/chunks/chunk-U2OTHOTI.mjs.map +0 -7
- package/dist/js/chunks/chunk-UAEAQBRC.mjs.map +0 -7
- package/dist/js/chunks/chunk-UNEMYWEW.mjs.map +0 -7
- package/dist/js/chunks/chunk-WJXDBPXQ.mjs.map +0 -7
- package/dist/js/chunks/chunk-XGHORT7J.mjs.map +0 -7
- package/dist/js/chunks/chunk-XH6BEEMY.mjs.map +0 -7
- /package/dist/js/chunks/{chunk-DTKR54I6.mjs.map → chunk-33QVDDGR.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-DLWYKFEI.mjs.map → chunk-AIURVCG6.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-GVGT6MIU.mjs.map → chunk-CK2XCICY.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-YDCS5S3J.mjs.map → chunk-L27Q6ZMI.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-CCWDV5CR.mjs.map → chunk-LQWUDNHZ.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-PIJ2TAR3.mjs.map → chunk-PDG64UHF.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-VTLBW7QS.mjs.map → chunk-SMY7GJSS.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-K4CJCRGE.mjs.map → chunk-UETTGDLI.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-NQLC3YMW.mjs.map → chunk-VKAUVTQY.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-HKT2S7VM.mjs.map → chunk-VM4FTS7L.mjs.map} +0 -0
- /package/dist/js/chunks/{chunk-6WLSDZ4O.mjs.map → chunk-X4ISMKE2.mjs.map} +0 -0
package/dist/js/modular.mjs
CHANGED
|
@@ -1,122 +1,134 @@
|
|
|
1
1
|
import {
|
|
2
2
|
version
|
|
3
|
-
} from "./chunks/chunk-
|
|
3
|
+
} from "./chunks/chunk-KQACNQ22.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AutoInit
|
|
6
|
-
} from "./chunks/chunk-
|
|
7
|
-
import "./chunks/chunk-
|
|
8
|
-
import {
|
|
9
|
-
Tooltip
|
|
10
|
-
} from "./chunks/chunk-CKQP6P76.mjs";
|
|
11
|
-
import {
|
|
12
|
-
RichTextEditor
|
|
13
|
-
} from "./chunks/chunk-VTLBW7QS.mjs";
|
|
14
|
-
import {
|
|
15
|
-
ScrollSpy
|
|
16
|
-
} from "./chunks/chunk-QV2JAWIZ.mjs";
|
|
6
|
+
} from "./chunks/chunk-WOCCTVUF.mjs";
|
|
7
|
+
import "./chunks/chunk-VKAUVTQY.mjs";
|
|
17
8
|
import {
|
|
18
9
|
Slider
|
|
19
|
-
} from "./chunks/chunk-
|
|
10
|
+
} from "./chunks/chunk-5CEAOLUA.mjs";
|
|
20
11
|
import {
|
|
21
12
|
Snackbar
|
|
22
|
-
} from "./chunks/chunk-
|
|
13
|
+
} from "./chunks/chunk-BGZLF6JZ.mjs";
|
|
23
14
|
import {
|
|
24
15
|
Tabs
|
|
25
|
-
} from "./chunks/chunk-
|
|
16
|
+
} from "./chunks/chunk-UCOE7ZDL.mjs";
|
|
26
17
|
import {
|
|
27
18
|
Timepicker
|
|
28
|
-
} from "./chunks/chunk-
|
|
29
|
-
import {
|
|
30
|
-
MessageScroller
|
|
31
|
-
} from "./chunks/chunk-CCWDV5CR.mjs";
|
|
32
|
-
import {
|
|
33
|
-
MixedChart
|
|
34
|
-
} from "./chunks/chunk-HKT2S7VM.mjs";
|
|
19
|
+
} from "./chunks/chunk-PO3AXVR3.mjs";
|
|
35
20
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunks/chunk-
|
|
21
|
+
Tooltip
|
|
22
|
+
} from "./chunks/chunk-6VATUZC6.mjs";
|
|
38
23
|
import {
|
|
39
24
|
PieChart
|
|
40
|
-
} from "./chunks/chunk-
|
|
25
|
+
} from "./chunks/chunk-OWG3LMUL.mjs";
|
|
41
26
|
import {
|
|
42
27
|
Questionnaire
|
|
43
|
-
} from "./chunks/chunk-
|
|
28
|
+
} from "./chunks/chunk-33QVDDGR.mjs";
|
|
44
29
|
import {
|
|
45
30
|
RadarChart
|
|
46
|
-
} from "./chunks/chunk-
|
|
31
|
+
} from "./chunks/chunk-XAEAEHIX.mjs";
|
|
47
32
|
import {
|
|
48
33
|
RadialChart
|
|
49
|
-
} from "./chunks/chunk-
|
|
34
|
+
} from "./chunks/chunk-UNCRDLP6.mjs";
|
|
35
|
+
import {
|
|
36
|
+
RichTextEditor
|
|
37
|
+
} from "./chunks/chunk-SMY7GJSS.mjs";
|
|
38
|
+
import {
|
|
39
|
+
ScrollSpy
|
|
40
|
+
} from "./chunks/chunk-FM5CZOUB.mjs";
|
|
41
|
+
import {
|
|
42
|
+
Lightbox
|
|
43
|
+
} from "./chunks/chunk-SFI2U4YW.mjs";
|
|
44
|
+
import {
|
|
45
|
+
MapView
|
|
46
|
+
} from "./chunks/chunk-KHXZ2A4K.mjs";
|
|
47
|
+
import {
|
|
48
|
+
MessageScroller
|
|
49
|
+
} from "./chunks/chunk-LQWUDNHZ.mjs";
|
|
50
|
+
import {
|
|
51
|
+
MixedChart
|
|
52
|
+
} from "./chunks/chunk-VM4FTS7L.mjs";
|
|
53
|
+
import {
|
|
54
|
+
NavigationRail
|
|
55
|
+
} from "./chunks/chunk-UBRZZWRA.mjs";
|
|
56
|
+
import {
|
|
57
|
+
Particles
|
|
58
|
+
} from "./chunks/chunk-C6CHEWYP.mjs";
|
|
50
59
|
import {
|
|
51
60
|
CommandPalette
|
|
52
|
-
} from "./chunks/chunk-
|
|
61
|
+
} from "./chunks/chunk-UETTGDLI.mjs";
|
|
62
|
+
import {
|
|
63
|
+
Confetti
|
|
64
|
+
} from "./chunks/chunk-KUFHW3DS.mjs";
|
|
53
65
|
import {
|
|
54
66
|
Datepicker
|
|
55
|
-
} from "./chunks/chunk-
|
|
67
|
+
} from "./chunks/chunk-GJL6GCIU.mjs";
|
|
68
|
+
import "./chunks/chunk-M3MURWMB.mjs";
|
|
56
69
|
import {
|
|
57
70
|
FormSelect
|
|
58
|
-
} from "./chunks/chunk-
|
|
59
|
-
import "./chunks/chunk-EC63CHXU.mjs";
|
|
71
|
+
} from "./chunks/chunk-WDK4T63U.mjs";
|
|
60
72
|
import {
|
|
61
73
|
ExpandingCard
|
|
62
|
-
} from "./chunks/chunk-
|
|
74
|
+
} from "./chunks/chunk-DXGRXYYL.mjs";
|
|
63
75
|
import {
|
|
64
76
|
HeatmapChart
|
|
65
|
-
} from "./chunks/chunk-
|
|
77
|
+
} from "./chunks/chunk-VGNYF6FB.mjs";
|
|
66
78
|
import {
|
|
67
|
-
|
|
68
|
-
} from "./chunks/chunk-
|
|
79
|
+
Keypad
|
|
80
|
+
} from "./chunks/chunk-K3HZMFMD.mjs";
|
|
69
81
|
import {
|
|
70
82
|
BarChart
|
|
71
|
-
} from "./chunks/chunk-
|
|
83
|
+
} from "./chunks/chunk-CK2XCICY.mjs";
|
|
72
84
|
import {
|
|
73
85
|
ColumnChart
|
|
74
|
-
} from "./chunks/chunk-
|
|
86
|
+
} from "./chunks/chunk-45FER6RI.mjs";
|
|
75
87
|
import {
|
|
76
88
|
LineChart
|
|
77
|
-
} from "./chunks/chunk-
|
|
89
|
+
} from "./chunks/chunk-TCCA2HDG.mjs";
|
|
78
90
|
import {
|
|
79
91
|
ButtonGroup
|
|
80
|
-
} from "./chunks/chunk-
|
|
92
|
+
} from "./chunks/chunk-L27Q6ZMI.mjs";
|
|
81
93
|
import {
|
|
82
94
|
FloatingActionButton
|
|
83
|
-
} from "./chunks/chunk-
|
|
95
|
+
} from "./chunks/chunk-PDG64UHF.mjs";
|
|
84
96
|
import {
|
|
85
97
|
Cards
|
|
86
|
-
} from "./chunks/chunk-
|
|
98
|
+
} from "./chunks/chunk-TSZYSW7F.mjs";
|
|
87
99
|
import {
|
|
88
100
|
Carousel
|
|
89
|
-
} from "./chunks/chunk-
|
|
101
|
+
} from "./chunks/chunk-KVJAVDBC.mjs";
|
|
90
102
|
import {
|
|
91
103
|
CharacterCounter
|
|
92
|
-
} from "./chunks/chunk-
|
|
104
|
+
} from "./chunks/chunk-74MXKKLN.mjs";
|
|
93
105
|
import {
|
|
94
106
|
Chips
|
|
95
|
-
} from "./chunks/chunk-
|
|
107
|
+
} from "./chunks/chunk-CXXM2L4F.mjs";
|
|
96
108
|
import {
|
|
97
109
|
Autocomplete
|
|
98
|
-
} from "./chunks/chunk-
|
|
110
|
+
} from "./chunks/chunk-ZX6M7SWO.mjs";
|
|
99
111
|
import {
|
|
100
112
|
Menu
|
|
101
|
-
} from "./chunks/chunk-
|
|
113
|
+
} from "./chunks/chunk-NUHMOAOY.mjs";
|
|
102
114
|
import {
|
|
103
115
|
BottomSheets
|
|
104
|
-
} from "./chunks/chunk-
|
|
116
|
+
} from "./chunks/chunk-AIURVCG6.mjs";
|
|
105
117
|
import {
|
|
106
118
|
Dialogs
|
|
107
|
-
} from "./chunks/chunk-
|
|
119
|
+
} from "./chunks/chunk-VGPGBNGL.mjs";
|
|
108
120
|
import {
|
|
109
121
|
Forms
|
|
110
|
-
} from "./chunks/chunk-
|
|
122
|
+
} from "./chunks/chunk-QYGK36OG.mjs";
|
|
111
123
|
import {
|
|
112
124
|
SideSheets
|
|
113
|
-
} from "./chunks/chunk-
|
|
114
|
-
import "./chunks/chunk-
|
|
115
|
-
import "./chunks/chunk-
|
|
125
|
+
} from "./chunks/chunk-X4ISMKE2.mjs";
|
|
126
|
+
import "./chunks/chunk-WQYN5L4E.mjs";
|
|
127
|
+
import "./chunks/chunk-M372EDXD.mjs";
|
|
116
128
|
import {
|
|
117
129
|
AppBar
|
|
118
|
-
} from "./chunks/chunk-
|
|
119
|
-
import "./chunks/chunk-
|
|
130
|
+
} from "./chunks/chunk-UAZSDUVP.mjs";
|
|
131
|
+
import "./chunks/chunk-PD6HYHAE.mjs";
|
|
120
132
|
export {
|
|
121
133
|
AppBar,
|
|
122
134
|
AutoInit,
|
|
@@ -130,6 +142,7 @@ export {
|
|
|
130
142
|
Chips,
|
|
131
143
|
ColumnChart,
|
|
132
144
|
CommandPalette,
|
|
145
|
+
Confetti,
|
|
133
146
|
Datepicker,
|
|
134
147
|
Dialogs,
|
|
135
148
|
ExpandingCard,
|
|
@@ -137,12 +150,15 @@ export {
|
|
|
137
150
|
FormSelect,
|
|
138
151
|
Forms,
|
|
139
152
|
HeatmapChart,
|
|
153
|
+
Keypad,
|
|
140
154
|
Lightbox,
|
|
141
155
|
LineChart,
|
|
156
|
+
MapView,
|
|
142
157
|
Menu,
|
|
143
158
|
MessageScroller,
|
|
144
159
|
MixedChart,
|
|
145
160
|
NavigationRail,
|
|
161
|
+
Particles,
|
|
146
162
|
PieChart,
|
|
147
163
|
Questionnaire,
|
|
148
164
|
RadarChart,
|
|
@@ -11,6 +11,11 @@ export declare class Forms {
|
|
|
11
11
|
* @param e EventTarget
|
|
12
12
|
*/
|
|
13
13
|
static textareaAutoResize(e: EventTarget): void;
|
|
14
|
+
private static _initialized;
|
|
15
|
+
/**
|
|
16
|
+
* Safe to call more than once: the root entry calls it on import, and a page
|
|
17
|
+
* that also loads the modular entry may call it again.
|
|
18
|
+
*/
|
|
14
19
|
static Init(): void;
|
|
15
20
|
/**
|
|
16
21
|
* A .password-toggle button shows or hides the password in its field. The
|
|
@@ -150,6 +150,7 @@ export declare class Autocomplete extends Component<AutocompleteOptions> {
|
|
|
150
150
|
_renderMenu(): void;
|
|
151
151
|
_setStatusLoading(): void;
|
|
152
152
|
private _announce;
|
|
153
|
+
private _resultsMessage;
|
|
153
154
|
_updateSelectedInfo(): void;
|
|
154
155
|
_refreshInputText(): void;
|
|
155
156
|
_triggerChanged(): void;
|
|
@@ -131,6 +131,8 @@ export declare class Carousel extends Component<CarouselOptions> {
|
|
|
131
131
|
private _tick;
|
|
132
132
|
private _advance;
|
|
133
133
|
private _handleNativeScroll;
|
|
134
|
+
/** The document only hears from a carousel while a mouse press is down on its track. */
|
|
135
|
+
private _setDragListeners;
|
|
134
136
|
_handleTrackPointerDown: (e: PointerEvent) => void;
|
|
135
137
|
_handleTrackPointerMove: (e: PointerEvent) => void;
|
|
136
138
|
_handleTrackPointerUp: (e: PointerEvent) => void;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Component, BaseOptions, InitElements, InitElement } from '../core/component';
|
|
2
|
+
export type ConfettiShape = 'square' | 'circle' | 'star';
|
|
3
|
+
export interface ConfettiOptions extends BaseOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Pieces per burst.
|
|
6
|
+
* @default 50
|
|
7
|
+
*/
|
|
8
|
+
particleCount: number;
|
|
9
|
+
/**
|
|
10
|
+
* Launch direction in degrees. 90 is straight up, 0 is right.
|
|
11
|
+
* @default 90
|
|
12
|
+
*/
|
|
13
|
+
angle: number;
|
|
14
|
+
/**
|
|
15
|
+
* How far the pieces fan out from the angle, in degrees.
|
|
16
|
+
* @default 45
|
|
17
|
+
*/
|
|
18
|
+
spread: number;
|
|
19
|
+
/**
|
|
20
|
+
* Launch speed in pixels per frame.
|
|
21
|
+
* @default 45
|
|
22
|
+
*/
|
|
23
|
+
startVelocity: number;
|
|
24
|
+
/**
|
|
25
|
+
* Share of its speed a piece keeps each frame.
|
|
26
|
+
* @default 0.9
|
|
27
|
+
*/
|
|
28
|
+
decay: number;
|
|
29
|
+
/**
|
|
30
|
+
* Pull toward the bottom. 0 floats, 1 is normal.
|
|
31
|
+
* @default 1
|
|
32
|
+
*/
|
|
33
|
+
gravity: number;
|
|
34
|
+
/**
|
|
35
|
+
* Sideways push per frame. Negative drifts left.
|
|
36
|
+
* @default 0
|
|
37
|
+
*/
|
|
38
|
+
drift: number;
|
|
39
|
+
/**
|
|
40
|
+
* Frames a piece lives while it fades out.
|
|
41
|
+
* @default 200
|
|
42
|
+
*/
|
|
43
|
+
ticks: number;
|
|
44
|
+
/**
|
|
45
|
+
* Launch point as fractions of the canvas, 0 to 1. A missing side is
|
|
46
|
+
* 0.5. A trigger element ignores it and launches from its own center.
|
|
47
|
+
* @default { x: 0.5, y: 0.5 }
|
|
48
|
+
*/
|
|
49
|
+
origin: {
|
|
50
|
+
x?: number;
|
|
51
|
+
y?: number;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* CSS colors. Empty uses the theme's primary, secondary and tertiary
|
|
55
|
+
* colors and their containers.
|
|
56
|
+
* @default []
|
|
57
|
+
*/
|
|
58
|
+
colors: string[];
|
|
59
|
+
/**
|
|
60
|
+
* @default ['square', 'circle']
|
|
61
|
+
*/
|
|
62
|
+
shapes: ConfettiShape[];
|
|
63
|
+
/**
|
|
64
|
+
* Piece size multiplier.
|
|
65
|
+
* @default 1
|
|
66
|
+
*/
|
|
67
|
+
scalar: number;
|
|
68
|
+
/**
|
|
69
|
+
* On a canvas, wait for `fire()` instead of bursting once at init.
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
manualStart: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Confetti. Bursts of theme-colored pieces drawn on a canvas.
|
|
76
|
+
*
|
|
77
|
+
* - `Confetti.fire(options)` bursts over the whole viewport.
|
|
78
|
+
* - Any other `.confetti` element bursts from its center when clicked.
|
|
79
|
+
* - A `<canvas class="confetti">` bursts inside its own box, once at init
|
|
80
|
+
* unless `manualStart`, and again on each `fire()`.
|
|
81
|
+
*
|
|
82
|
+
* The viewport canvas is a manual popover, so it draws above an open modal
|
|
83
|
+
* dialog, and it ignores the pointer. Nothing is drawn when the reader
|
|
84
|
+
* prefers reduced motion.
|
|
85
|
+
*/
|
|
86
|
+
export declare class Confetti extends Component<ConfettiOptions> {
|
|
87
|
+
private _onClick;
|
|
88
|
+
constructor(el: HTMLElement, options: Partial<ConfettiOptions>);
|
|
89
|
+
static get defaults(): ConfettiOptions;
|
|
90
|
+
static init(el: HTMLElement, options?: Partial<ConfettiOptions>): Confetti;
|
|
91
|
+
static init(els: InitElements<InitElement>, options?: Partial<ConfettiOptions>): Confetti[];
|
|
92
|
+
static getInstance(el: HTMLElement): Confetti;
|
|
93
|
+
/**
|
|
94
|
+
* Bursts over the whole viewport. Resolves when the last piece is gone.
|
|
95
|
+
*/
|
|
96
|
+
static fire(options?: Partial<ConfettiOptions>): Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* Bursts on this canvas, or from this element's center over the viewport.
|
|
99
|
+
* Resolves when the last piece is gone.
|
|
100
|
+
*/
|
|
101
|
+
fire(options?: Partial<ConfettiOptions>): Promise<void>;
|
|
102
|
+
destroy(): void;
|
|
103
|
+
}
|
|
@@ -190,8 +190,6 @@ export declare class Datepicker extends Component<DatepickerOptions> {
|
|
|
190
190
|
id: string;
|
|
191
191
|
multiple: boolean;
|
|
192
192
|
calendarEl: HTMLElement;
|
|
193
|
-
/** CLEAR button instance. */
|
|
194
|
-
/** DONE button instance */
|
|
195
193
|
containerEl: HTMLElement;
|
|
196
194
|
yearTextEl: HTMLElement;
|
|
197
195
|
dateTextEl: HTMLElement;
|
|
@@ -206,9 +204,11 @@ export declare class Datepicker extends Component<DatepickerOptions> {
|
|
|
206
204
|
month: number;
|
|
207
205
|
year: number;
|
|
208
206
|
}];
|
|
209
|
-
private _y;
|
|
210
|
-
private _m;
|
|
211
207
|
private displayPlugin;
|
|
208
|
+
/** What setInputValue last wrote, so reading it back does not depend on the parser. */
|
|
209
|
+
private _writtenInputs;
|
|
210
|
+
/** Rows renderRow has already checked, so renderBody does not parse them again. */
|
|
211
|
+
private _checkedRows;
|
|
212
212
|
private footer;
|
|
213
213
|
/** Nesting depth of {@link _batchDraws}; > 0 means draws are being collected. */
|
|
214
214
|
private _drawDepth;
|
|
@@ -381,6 +381,7 @@ export declare class Datepicker extends Component<DatepickerOptions> {
|
|
|
381
381
|
_setupEventHandlers(): void;
|
|
382
382
|
_setupVariables(): void;
|
|
383
383
|
_removeEventHandlers(): void;
|
|
384
|
+
private _addInputEventHandlers;
|
|
384
385
|
private _removeInputEventHandlers;
|
|
385
386
|
private _removeDateInput;
|
|
386
387
|
_handleInputClick: (e: any) => void;
|
|
@@ -24,6 +24,8 @@ export declare class ExpandingCard extends Component<ExpandingCardOptions> imple
|
|
|
24
24
|
private _handleTriggerKeypress;
|
|
25
25
|
private _handleCancel;
|
|
26
26
|
private _handleNativeClose;
|
|
27
|
+
/** Marks the card closed and invalidates any pending close. */
|
|
28
|
+
private _collapse;
|
|
27
29
|
private _setTransitionOrigin;
|
|
28
30
|
open: () => void;
|
|
29
31
|
close: () => void;
|
|
@@ -6,6 +6,9 @@ export { Cards } from "./cards";
|
|
|
6
6
|
export { ExpandingCard } from "./expandingCard";
|
|
7
7
|
export { Carousel } from "./carousel";
|
|
8
8
|
export { CharacterCounter } from "./characterCounter";
|
|
9
|
+
export { Confetti } from "./confetti";
|
|
10
|
+
export { Particles } from "./particles";
|
|
11
|
+
export { Keypad } from "./keypad";
|
|
9
12
|
export { Chips } from "./chips";
|
|
10
13
|
export { CommandPalette } from "./commandPalette";
|
|
11
14
|
export { Questionnaire } from "./questionnaire";
|
|
@@ -21,6 +24,7 @@ export { Datepicker } from "./datepicker";
|
|
|
21
24
|
export { Menu } from "./menu";
|
|
22
25
|
export { MessageScroller } from "./messageScroller";
|
|
23
26
|
export { RichTextEditor } from "./richTextEditor";
|
|
27
|
+
export { MapView } from "./mapView";
|
|
24
28
|
export { Lightbox } from "./lightbox";
|
|
25
29
|
export { Slider } from "./slider";
|
|
26
30
|
export { ScrollSpy } from "./scrollspy";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Component, BaseOptions, InitElements, InitElement } from '../core/component';
|
|
2
|
+
export interface KeypadOptions extends BaseOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Called after every key press with the text typed ('7', 'A', ' ') or the
|
|
5
|
+
* function key's name ('Backspace', 'Enter', 'Shift').
|
|
6
|
+
* @default null
|
|
7
|
+
*/
|
|
8
|
+
onKey: ((key: string) => void) | null;
|
|
9
|
+
}
|
|
10
|
+
type Field = HTMLInputElement | HTMLTextAreaElement;
|
|
11
|
+
type Root = Document | ShadowRoot;
|
|
12
|
+
/**
|
|
13
|
+
* Keypad and keyboard. A `.keypad` or `.keyboard` whose `aria-controls`
|
|
14
|
+
* names a text field types into it: a key's `value` is inserted at the caret,
|
|
15
|
+
* and `data-key="Backspace"`, `"Enter"` and `"Shift"` edit, submit and
|
|
16
|
+
* capitalize. The field receives the same `input` event typing would fire.
|
|
17
|
+
*/
|
|
18
|
+
export declare class Keypad extends Component<KeypadOptions> {
|
|
19
|
+
/** @internal */
|
|
20
|
+
_root: Root | null;
|
|
21
|
+
constructor(el: HTMLElement, options: Partial<KeypadOptions>);
|
|
22
|
+
static get defaults(): KeypadOptions;
|
|
23
|
+
static init(el: HTMLElement, options?: Partial<KeypadOptions>): Keypad;
|
|
24
|
+
static init(els: InitElements<InitElement>, options?: Partial<KeypadOptions>): Keypad[];
|
|
25
|
+
static getInstance(el: HTMLElement): Keypad;
|
|
26
|
+
destroy(): void;
|
|
27
|
+
/** The text field named by `aria-controls`, if there is one. */
|
|
28
|
+
get target(): Field | null;
|
|
29
|
+
private _shared;
|
|
30
|
+
/** @internal */
|
|
31
|
+
_press(key: HTMLButtonElement): void;
|
|
32
|
+
private _edit;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -84,11 +84,9 @@ export declare class Lightbox extends Component<LightboxOptions> {
|
|
|
84
84
|
private _handleMotionChange;
|
|
85
85
|
private _setupEventHandlers;
|
|
86
86
|
private _removeEventHandlers;
|
|
87
|
-
private _handleLightboxClick;
|
|
88
87
|
private _handleLightboxKeypress;
|
|
89
88
|
private _handleLightboxToggle;
|
|
90
|
-
private
|
|
91
|
-
private _handleWindowResize;
|
|
89
|
+
private _handleWindowChange;
|
|
92
90
|
private _handleWindowEscape;
|
|
93
91
|
private _makeAncestorsOverflowVisible;
|
|
94
92
|
private _offset;
|
|
@@ -96,9 +94,9 @@ export declare class Lightbox extends Component<LightboxOptions> {
|
|
|
96
94
|
private _animateImageIn;
|
|
97
95
|
private _animateImageOut;
|
|
98
96
|
private _addCaption;
|
|
99
|
-
private _removeCaption;
|
|
100
97
|
private _addOverlay;
|
|
101
|
-
private
|
|
98
|
+
private _fadeIn;
|
|
99
|
+
private _fadeOut;
|
|
102
100
|
/**
|
|
103
101
|
* Open lightbox.
|
|
104
102
|
*/
|
|
@@ -15,6 +15,10 @@ export interface LineChartOptions extends BaseOptions {
|
|
|
15
15
|
export declare const COLORS = 4;
|
|
16
16
|
/** An SVG element with its attributes. */
|
|
17
17
|
export declare function svgNode(name: string, attributes?: Record<string, string>): SVGElement;
|
|
18
|
+
/** A point at a turn clockwise from the top and a distance from the middle, as "x,y". */
|
|
19
|
+
export declare function polarPoint(turn: number, r: number): string;
|
|
20
|
+
/** A series' color number, for its `data-series`. */
|
|
21
|
+
export declare const seriesColor: (i: number) => string;
|
|
18
22
|
export interface Series {
|
|
19
23
|
name: string;
|
|
20
24
|
/** Header cell classes, such as `dashed`. */
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Component, BaseOptions, InitElements, InitElement } from '../core/component';
|
|
2
|
+
/** `[longitude, latitude]`, MapLibre's order. */
|
|
3
|
+
export type LngLat = [number, number];
|
|
4
|
+
/**
|
|
5
|
+
* The parts of the `maplibre-gl` module this component uses. Declared here so
|
|
6
|
+
* the published types do not depend on MapLibre.
|
|
7
|
+
*/
|
|
8
|
+
export interface MapLibre {
|
|
9
|
+
Map: new (options: object) => any;
|
|
10
|
+
Marker: new (options: object) => any;
|
|
11
|
+
Popup: new (options: object) => any;
|
|
12
|
+
}
|
|
13
|
+
/** A style for each color scheme. The map follows the page's theme. */
|
|
14
|
+
export interface MapThemedStyle {
|
|
15
|
+
light: string | object;
|
|
16
|
+
dark: string | object;
|
|
17
|
+
}
|
|
18
|
+
export interface MapViewOptions extends BaseOptions {
|
|
19
|
+
/**
|
|
20
|
+
* The `maplibre-gl` module. ExpressiveCSS does not bundle MapLibre, so the
|
|
21
|
+
* page imports it and passes it in.
|
|
22
|
+
* @default null
|
|
23
|
+
*/
|
|
24
|
+
maplibregl: MapLibre | null;
|
|
25
|
+
/**
|
|
26
|
+
* A MapLibre style URL or object, or `{ light, dark }` to follow the theme.
|
|
27
|
+
* @default OpenFreeMap Positron and Dark
|
|
28
|
+
*/
|
|
29
|
+
style: string | object | MapThemedStyle;
|
|
30
|
+
/**
|
|
31
|
+
* Starting `[longitude, latitude]`.
|
|
32
|
+
* @default [0, 20]
|
|
33
|
+
*/
|
|
34
|
+
center: LngLat;
|
|
35
|
+
/**
|
|
36
|
+
* Starting zoom level.
|
|
37
|
+
* @default 1
|
|
38
|
+
*/
|
|
39
|
+
zoom: number;
|
|
40
|
+
/**
|
|
41
|
+
* More MapLibre `Map` options, such as `maxZoom` or `bearing`.
|
|
42
|
+
* @default {}
|
|
43
|
+
*/
|
|
44
|
+
mapOptions: object;
|
|
45
|
+
}
|
|
46
|
+
export interface MapLineOptions {
|
|
47
|
+
/** CSS color. Defaults to the route or arc color token. */
|
|
48
|
+
color?: string;
|
|
49
|
+
/** Width in pixels. Routes default to 4, arcs to 2. */
|
|
50
|
+
width?: number;
|
|
51
|
+
/** 0 to 1. */
|
|
52
|
+
opacity?: number;
|
|
53
|
+
/** Dash and gap lengths in line widths, such as `[2, 2]`. */
|
|
54
|
+
dashArray?: number[];
|
|
55
|
+
}
|
|
56
|
+
export interface MapArc {
|
|
57
|
+
from: LngLat;
|
|
58
|
+
to: LngLat;
|
|
59
|
+
}
|
|
60
|
+
export interface MapClusterOptions {
|
|
61
|
+
/** CSS color. Defaults to the cluster color token. */
|
|
62
|
+
color?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Pixels within which points join a cluster.
|
|
65
|
+
* @default 50
|
|
66
|
+
*/
|
|
67
|
+
radius?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Last zoom level that clusters points.
|
|
70
|
+
* @default 14
|
|
71
|
+
*/
|
|
72
|
+
maxZoom?: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* An interactive map built on MapLibre: a `.map` holding `.map-marker`,
|
|
76
|
+
* `.map-popup` and `.map-controls` children.
|
|
77
|
+
*
|
|
78
|
+
* Each marker sits at its `data-lng-lat`. A marker button with
|
|
79
|
+
* `aria-controls` opens the `.map-popup` it names; a popup with its own
|
|
80
|
+
* `data-lng-lat` and no marker opens at init. Buttons in `.map-controls`
|
|
81
|
+
* run their `data-action`: `zoom-in`, `zoom-out`, `compass`, `locate` or
|
|
82
|
+
* `fullscreen`. Routes, arcs and clusters are data, so they are added from
|
|
83
|
+
* script. The default style follows the page's light or dark theme, and
|
|
84
|
+
* line and cluster colors come from the theme.
|
|
85
|
+
*
|
|
86
|
+
* The class is `MapView` rather than `Map` so importing it does not shadow
|
|
87
|
+
* JavaScript's `Map`.
|
|
88
|
+
*/
|
|
89
|
+
export declare class MapView extends Component<MapViewOptions> {
|
|
90
|
+
/** The MapLibre map. */
|
|
91
|
+
map: any;
|
|
92
|
+
/** The MapLibre markers made from `.map-marker` children, in order. */
|
|
93
|
+
markers: any[];
|
|
94
|
+
private _children;
|
|
95
|
+
private _popups;
|
|
96
|
+
private _markerPopups;
|
|
97
|
+
private _overlays;
|
|
98
|
+
private _styleReady;
|
|
99
|
+
private _dark;
|
|
100
|
+
private _location;
|
|
101
|
+
private _media;
|
|
102
|
+
private _observer;
|
|
103
|
+
private _zoomIn;
|
|
104
|
+
private _zoomOut;
|
|
105
|
+
constructor(el: HTMLElement, options: Partial<MapViewOptions>);
|
|
106
|
+
static get defaults(): MapViewOptions;
|
|
107
|
+
/**
|
|
108
|
+
* Initializes instance of MapView.
|
|
109
|
+
* @param el HTML element.
|
|
110
|
+
* @param options Component options.
|
|
111
|
+
*/
|
|
112
|
+
static init(el: HTMLElement, options?: Partial<MapViewOptions>): MapView;
|
|
113
|
+
/**
|
|
114
|
+
* Initializes instances of MapView.
|
|
115
|
+
* @param els HTML elements.
|
|
116
|
+
* @param options Component options.
|
|
117
|
+
*/
|
|
118
|
+
static init(els: InitElements<InitElement>, options?: Partial<MapViewOptions>): MapView[];
|
|
119
|
+
static getInstance(el: HTMLElement): MapView;
|
|
120
|
+
destroy(): void;
|
|
121
|
+
/** Draws a line through `[longitude, latitude]` points. Replaces an overlay with the same id. */
|
|
122
|
+
addRoute(id: string, coordinates: LngLat[], options?: MapLineOptions): void;
|
|
123
|
+
/** Draws a curved line for each `{ from, to }`. Replaces an overlay with the same id. */
|
|
124
|
+
addArcs(id: string, arcs: MapArc[], options?: MapLineOptions): void;
|
|
125
|
+
/**
|
|
126
|
+
* Draws GeoJSON points, or the URL of a GeoJSON file, as clusters that
|
|
127
|
+
* show their count and zoom in when clicked. The layers are
|
|
128
|
+
* `${id}-clusters`, `${id}-count` and `${id}-points`.
|
|
129
|
+
*/
|
|
130
|
+
addClusters(id: string, data: object | string, options?: MapClusterOptions): void;
|
|
131
|
+
/** Removes a route, arcs or clusters added with this id. */
|
|
132
|
+
removeOverlay(id: string): void;
|
|
133
|
+
private _line;
|
|
134
|
+
private _draw;
|
|
135
|
+
private _addMarker;
|
|
136
|
+
private _popup;
|
|
137
|
+
private _toggle;
|
|
138
|
+
private _buttons;
|
|
139
|
+
private _locate;
|
|
140
|
+
private _color;
|
|
141
|
+
private _isDark;
|
|
142
|
+
private _themed;
|
|
143
|
+
private _style;
|
|
144
|
+
private _handleStyleLoad;
|
|
145
|
+
private _handleScheme;
|
|
146
|
+
private _sync;
|
|
147
|
+
private _handleFullscreen;
|
|
148
|
+
private _handleClick;
|
|
149
|
+
private _handleMapClick;
|
|
150
|
+
private _handleKeydown;
|
|
151
|
+
}
|
|
@@ -146,6 +146,7 @@ export declare class Menu extends Component<MenuOptions> implements Openable {
|
|
|
146
146
|
private _syncSubmenuAria;
|
|
147
147
|
private _handleSubmenuAlign;
|
|
148
148
|
private _alignSubmenu;
|
|
149
|
+
private _closeSubmenu;
|
|
149
150
|
private _closeSubmenus;
|
|
150
151
|
private _containingSubmenu;
|
|
151
152
|
private _focusedRow;
|