@expressivecss/expressive 0.15.0 → 0.17.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 +1807 -1
- package/README.md +9 -8
- package/dist/css/expressive.css +19176 -11958
- 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/fonts/LICENSE-noto-sans-arabic +93 -0
- package/dist/fonts/LICENSE-noto-sans-hebrew +93 -0
- package/dist/fonts/LICENSE-noto-sans-thai +93 -0
- package/dist/fonts/material-symbols-outlined.woff2 +0 -0
- package/dist/fonts/material-symbols-rounded.woff2 +0 -0
- package/dist/fonts/material-symbols-sharp.woff2 +0 -0
- package/dist/fonts/noto-sans-arabic-arabic-400.woff2 +0 -0
- package/dist/fonts/noto-sans-arabic-arabic-500.woff2 +0 -0
- package/dist/fonts/noto-sans-arabic-arabic-700.woff2 +0 -0
- package/dist/fonts/noto-sans-cyrillic-400.woff2 +0 -0
- package/dist/fonts/noto-sans-cyrillic-500.woff2 +0 -0
- package/dist/fonts/noto-sans-cyrillic-700.woff2 +0 -0
- package/dist/fonts/noto-sans-cyrillic-ext-400.woff2 +0 -0
- package/dist/fonts/noto-sans-cyrillic-ext-500.woff2 +0 -0
- package/dist/fonts/noto-sans-cyrillic-ext-700.woff2 +0 -0
- package/dist/fonts/noto-sans-devanagari-400.woff2 +0 -0
- package/dist/fonts/noto-sans-devanagari-500.woff2 +0 -0
- package/dist/fonts/noto-sans-devanagari-700.woff2 +0 -0
- package/dist/fonts/noto-sans-greek-400.woff2 +0 -0
- package/dist/fonts/noto-sans-greek-500.woff2 +0 -0
- package/dist/fonts/noto-sans-greek-700.woff2 +0 -0
- package/dist/fonts/noto-sans-greek-ext-400.woff2 +0 -0
- package/dist/fonts/noto-sans-greek-ext-500.woff2 +0 -0
- package/dist/fonts/noto-sans-greek-ext-700.woff2 +0 -0
- package/dist/fonts/noto-sans-hebrew-hebrew-400.woff2 +0 -0
- package/dist/fonts/noto-sans-hebrew-hebrew-500.woff2 +0 -0
- package/dist/fonts/noto-sans-hebrew-hebrew-700.woff2 +0 -0
- package/dist/fonts/noto-sans-latin-700.woff2 +0 -0
- package/dist/fonts/noto-sans-latin-ext-400.woff2 +0 -0
- package/dist/fonts/noto-sans-latin-ext-500.woff2 +0 -0
- package/dist/fonts/noto-sans-latin-ext-700.woff2 +0 -0
- package/dist/fonts/noto-sans-thai-thai-400.woff2 +0 -0
- package/dist/fonts/noto-sans-thai-thai-500.woff2 +0 -0
- package/dist/fonts/noto-sans-thai-thai-700.woff2 +0 -0
- package/dist/fonts/noto-sans-vietnamese-400.woff2 +0 -0
- package/dist/fonts/noto-sans-vietnamese-500.woff2 +0 -0
- package/dist/fonts/noto-sans-vietnamese-700.woff2 +0 -0
- package/dist/fonts/roboto-cyrillic-400.woff2 +0 -0
- package/dist/fonts/roboto-cyrillic-500.woff2 +0 -0
- package/dist/fonts/roboto-cyrillic-700.woff2 +0 -0
- package/dist/fonts/roboto-cyrillic-ext-400.woff2 +0 -0
- package/dist/fonts/roboto-cyrillic-ext-500.woff2 +0 -0
- package/dist/fonts/roboto-cyrillic-ext-700.woff2 +0 -0
- package/dist/fonts/roboto-greek-400.woff2 +0 -0
- package/dist/fonts/roboto-greek-500.woff2 +0 -0
- package/dist/fonts/roboto-greek-700.woff2 +0 -0
- package/dist/fonts/roboto-greek-ext-400.woff2 +0 -0
- package/dist/fonts/roboto-greek-ext-500.woff2 +0 -0
- package/dist/fonts/roboto-greek-ext-700.woff2 +0 -0
- package/dist/fonts/roboto-latin-700.woff2 +0 -0
- package/dist/fonts/roboto-latin-ext-400.woff2 +0 -0
- package/dist/fonts/roboto-latin-ext-500.woff2 +0 -0
- package/dist/fonts/roboto-latin-ext-700.woff2 +0 -0
- package/dist/fonts/roboto-vietnamese-400.woff2 +0 -0
- package/dist/fonts/roboto-vietnamese-500.woff2 +0 -0
- package/dist/fonts/roboto-vietnamese-700.woff2 +0 -0
- package/dist/js/chunks/chunk-26VUH75M.mjs +102 -0
- package/dist/js/chunks/chunk-26VUH75M.mjs.map +7 -0
- package/dist/js/chunks/chunk-2LFCOGC3.mjs +233 -0
- package/dist/js/chunks/chunk-2LFCOGC3.mjs.map +7 -0
- package/dist/js/chunks/{chunk-DXGRXYYL.mjs → chunk-36GELQGX.mjs} +29 -46
- package/dist/js/chunks/chunk-36GELQGX.mjs.map +7 -0
- package/dist/js/chunks/{chunk-74MXKKLN.mjs → chunk-3FKWIRHW.mjs} +15 -29
- package/dist/js/chunks/chunk-3FKWIRHW.mjs.map +7 -0
- package/dist/js/chunks/chunk-3KF65KGL.mjs +209 -0
- package/dist/js/chunks/chunk-3KF65KGL.mjs.map +7 -0
- package/dist/js/chunks/{chunk-KVJAVDBC.mjs → chunk-3KLZRQZI.mjs} +88 -116
- package/dist/js/chunks/chunk-3KLZRQZI.mjs.map +7 -0
- package/dist/js/chunks/{chunk-CK2XCICY.mjs → chunk-3XORNED5.mjs} +3 -11
- package/dist/js/chunks/chunk-3XORNED5.mjs.map +7 -0
- package/dist/js/chunks/chunk-4WBGAQN3.mjs +113 -0
- package/dist/js/chunks/chunk-4WBGAQN3.mjs.map +7 -0
- package/dist/js/chunks/{chunk-FM5CZOUB.mjs → chunk-5F4URJHL.mjs} +19 -30
- package/dist/js/chunks/chunk-5F4URJHL.mjs.map +7 -0
- package/dist/js/chunks/chunk-67UNY7RH.mjs +299 -0
- package/dist/js/chunks/chunk-67UNY7RH.mjs.map +7 -0
- package/dist/js/chunks/chunk-7CXNATJS.mjs +97 -0
- package/dist/js/chunks/chunk-7CXNATJS.mjs.map +7 -0
- package/dist/js/chunks/{chunk-UETTGDLI.mjs → chunk-7X44MKEQ.mjs} +43 -48
- package/dist/js/chunks/chunk-7X44MKEQ.mjs.map +7 -0
- package/dist/js/chunks/chunk-7ZAMOMGY.mjs +440 -0
- package/dist/js/chunks/chunk-7ZAMOMGY.mjs.map +7 -0
- package/dist/js/chunks/chunk-AEG6LOAJ.mjs +54 -0
- package/dist/js/chunks/chunk-AEG6LOAJ.mjs.map +7 -0
- package/dist/js/chunks/chunk-AQNFCJJ5.mjs +135 -0
- package/dist/js/chunks/chunk-AQNFCJJ5.mjs.map +7 -0
- package/dist/js/chunks/chunk-B55LWKBM.mjs +75 -0
- package/dist/js/chunks/chunk-B55LWKBM.mjs.map +7 -0
- package/dist/js/chunks/chunk-BB5VXYXT.mjs +28 -0
- package/dist/js/chunks/chunk-BB5VXYXT.mjs.map +7 -0
- package/dist/js/chunks/chunk-BDATLH3H.mjs +108 -0
- package/dist/js/chunks/chunk-BDATLH3H.mjs.map +7 -0
- package/dist/js/chunks/chunk-CWMQOT4O.mjs +232 -0
- package/dist/js/chunks/chunk-CWMQOT4O.mjs.map +7 -0
- package/dist/js/chunks/chunk-CY2CTOVM.mjs +81 -0
- package/dist/js/chunks/chunk-CY2CTOVM.mjs.map +7 -0
- package/dist/js/chunks/{chunk-NUHMOAOY.mjs → chunk-DWA5UYLJ.mjs} +363 -218
- package/dist/js/chunks/chunk-DWA5UYLJ.mjs.map +7 -0
- package/dist/js/chunks/chunk-EB2V4OKL.mjs +79 -0
- package/dist/js/chunks/chunk-EB2V4OKL.mjs.map +7 -0
- package/dist/js/chunks/chunk-EWO662ZC.mjs +188 -0
- package/dist/js/chunks/chunk-EWO662ZC.mjs.map +7 -0
- package/dist/js/chunks/{chunk-ZX6M7SWO.mjs → chunk-F7LAKFMX.mjs} +320 -141
- package/dist/js/chunks/chunk-F7LAKFMX.mjs.map +7 -0
- package/dist/js/chunks/{chunk-L27Q6ZMI.mjs → chunk-FNIIH2LU.mjs} +20 -33
- package/dist/js/chunks/chunk-FNIIH2LU.mjs.map +7 -0
- package/dist/js/chunks/chunk-GE3YMFS6.mjs +15 -0
- package/dist/js/chunks/chunk-GE3YMFS6.mjs.map +7 -0
- package/dist/js/chunks/chunk-GFWYMWYN.mjs +125 -0
- package/dist/js/chunks/chunk-GFWYMWYN.mjs.map +7 -0
- package/dist/js/chunks/chunk-GNRSYMVH.mjs +1 -0
- package/dist/js/chunks/chunk-H5ISU45X.mjs +87 -0
- package/dist/js/chunks/chunk-H5ISU45X.mjs.map +7 -0
- package/dist/js/chunks/{chunk-GJL6GCIU.mjs → chunk-H6YIKFAQ.mjs} +311 -186
- package/dist/js/chunks/chunk-H6YIKFAQ.mjs.map +7 -0
- package/dist/js/chunks/{chunk-BGZLF6JZ.mjs → chunk-HEH7E3KO.mjs} +155 -35
- package/dist/js/chunks/chunk-HEH7E3KO.mjs.map +7 -0
- package/dist/js/chunks/chunk-HQRLBTNM.mjs +152 -0
- package/dist/js/chunks/chunk-HQRLBTNM.mjs.map +7 -0
- package/dist/js/chunks/chunk-I2F7MLUU.mjs +137 -0
- package/dist/js/chunks/chunk-I2F7MLUU.mjs.map +7 -0
- package/dist/js/chunks/chunk-IQOTGGHX.mjs +797 -0
- package/dist/js/chunks/chunk-IQOTGGHX.mjs.map +7 -0
- package/dist/js/chunks/chunk-JH3YWKA6.mjs +225 -0
- package/dist/js/chunks/chunk-JH3YWKA6.mjs.map +7 -0
- package/dist/js/chunks/chunk-JOLJAYIJ.mjs +7 -0
- package/dist/js/chunks/chunk-JOLJAYIJ.mjs.map +7 -0
- package/dist/js/chunks/{chunk-VGNYF6FB.mjs → chunk-KOTGMCMI.mjs} +116 -24
- package/dist/js/chunks/chunk-KOTGMCMI.mjs.map +7 -0
- package/dist/js/chunks/{chunk-LQWUDNHZ.mjs → chunk-LC4O5LFS.mjs} +21 -45
- package/dist/js/chunks/chunk-LC4O5LFS.mjs.map +7 -0
- package/dist/js/chunks/chunk-LEF33SCP.mjs +127 -0
- package/dist/js/chunks/chunk-LEF33SCP.mjs.map +7 -0
- package/dist/js/chunks/{chunk-PDG64UHF.mjs → chunk-LFORZRPH.mjs} +21 -23
- package/dist/js/chunks/chunk-LFORZRPH.mjs.map +7 -0
- package/dist/js/chunks/chunk-LWLNV5EC.mjs +451 -0
- package/dist/js/chunks/chunk-LWLNV5EC.mjs.map +7 -0
- package/dist/js/chunks/chunk-LXRHUQAX.mjs +491 -0
- package/dist/js/chunks/chunk-LXRHUQAX.mjs.map +7 -0
- package/dist/js/chunks/{chunk-SFI2U4YW.mjs → chunk-MA2SZZFB.mjs} +82 -111
- package/dist/js/chunks/chunk-MA2SZZFB.mjs.map +7 -0
- package/dist/js/chunks/chunk-MDBZAMIV.mjs +121 -0
- package/dist/js/chunks/chunk-MDBZAMIV.mjs.map +7 -0
- package/dist/js/chunks/chunk-NODZ5VAD.mjs +75 -0
- package/dist/js/chunks/chunk-NODZ5VAD.mjs.map +7 -0
- package/dist/js/chunks/chunk-O2WJB6TH.mjs +365 -0
- package/dist/js/chunks/chunk-O2WJB6TH.mjs.map +7 -0
- package/dist/js/chunks/chunk-PCABY5BN.mjs +35 -0
- package/dist/js/chunks/chunk-PCABY5BN.mjs.map +7 -0
- package/dist/js/chunks/chunk-PWKYVMND.mjs +120 -0
- package/dist/js/chunks/chunk-PWKYVMND.mjs.map +7 -0
- package/dist/js/chunks/{chunk-SMY7GJSS.mjs → chunk-QHZZT7YO.mjs} +66 -38
- package/dist/js/chunks/chunk-QHZZT7YO.mjs.map +7 -0
- package/dist/js/chunks/chunk-QND56EW2.mjs +439 -0
- package/dist/js/chunks/chunk-QND56EW2.mjs.map +7 -0
- package/dist/js/chunks/chunk-QNODAANY.mjs +376 -0
- package/dist/js/chunks/chunk-QNODAANY.mjs.map +7 -0
- package/dist/js/chunks/{chunk-KHXZ2A4K.mjs → chunk-QRO5FV3I.mjs} +156 -73
- package/dist/js/chunks/chunk-QRO5FV3I.mjs.map +7 -0
- package/dist/js/chunks/chunk-R7A7JRC5.mjs +440 -0
- package/dist/js/chunks/chunk-R7A7JRC5.mjs.map +7 -0
- package/dist/js/chunks/chunk-RKG2CBFE.mjs +74 -0
- package/dist/js/chunks/chunk-RKG2CBFE.mjs.map +7 -0
- package/dist/js/chunks/{chunk-XAEAEHIX.mjs → chunk-RSNS5OYS.mjs} +38 -25
- package/dist/js/chunks/chunk-RSNS5OYS.mjs.map +7 -0
- package/dist/js/chunks/{chunk-X4ISMKE2.mjs → chunk-RUDYMEJ3.mjs} +7 -6
- package/dist/js/chunks/chunk-RUDYMEJ3.mjs.map +7 -0
- package/dist/js/chunks/chunk-STJR62SU.mjs +161 -0
- package/dist/js/chunks/chunk-STJR62SU.mjs.map +7 -0
- package/dist/js/chunks/chunk-SUSD4UTN.mjs +220 -0
- package/dist/js/chunks/chunk-SUSD4UTN.mjs.map +7 -0
- package/dist/js/chunks/{chunk-5CEAOLUA.mjs → chunk-SYBOA5HC.mjs} +26 -48
- package/dist/js/chunks/chunk-SYBOA5HC.mjs.map +7 -0
- package/dist/js/chunks/chunk-T4MOBP3J.mjs +108 -0
- package/dist/js/chunks/chunk-T4MOBP3J.mjs.map +7 -0
- package/dist/js/chunks/chunk-TM7HPGTV.mjs +342 -0
- package/dist/js/chunks/chunk-TM7HPGTV.mjs.map +7 -0
- package/dist/js/chunks/{chunk-C6CHEWYP.mjs → chunk-TMQDZSDC.mjs} +71 -35
- package/dist/js/chunks/chunk-TMQDZSDC.mjs.map +7 -0
- package/dist/js/chunks/chunk-TVSX5YA2.mjs +48 -0
- package/dist/js/chunks/chunk-TVSX5YA2.mjs.map +7 -0
- package/dist/js/chunks/chunk-UHO5CV6K.mjs +80 -0
- package/dist/js/chunks/chunk-UHO5CV6K.mjs.map +7 -0
- package/dist/js/chunks/chunk-UKCNELUN.mjs +223 -0
- package/dist/js/chunks/chunk-UKCNELUN.mjs.map +7 -0
- package/dist/js/chunks/chunk-UKQK5GWR.mjs +167 -0
- package/dist/js/chunks/chunk-UKQK5GWR.mjs.map +7 -0
- package/dist/js/chunks/{chunk-TSZYSW7F.mjs → chunk-UTSLYQ65.mjs} +21 -48
- package/dist/js/chunks/chunk-UTSLYQ65.mjs.map +7 -0
- package/dist/js/chunks/chunk-VS5OJBOD.mjs +108 -0
- package/dist/js/chunks/chunk-VS5OJBOD.mjs.map +7 -0
- package/dist/js/chunks/chunk-VZMROW5A.mjs +759 -0
- package/dist/js/chunks/chunk-VZMROW5A.mjs.map +7 -0
- package/dist/js/chunks/chunk-W6FAL3TI.mjs +38 -0
- package/dist/js/chunks/chunk-W6FAL3TI.mjs.map +7 -0
- package/dist/js/chunks/chunk-XB6Y7P5W.mjs +69 -0
- package/dist/js/chunks/chunk-XB6Y7P5W.mjs.map +7 -0
- package/dist/js/chunks/chunk-XDAMOMVD.mjs +226 -0
- package/dist/js/chunks/chunk-XDAMOMVD.mjs.map +7 -0
- package/dist/js/chunks/{chunk-WDK4T63U.mjs → chunk-XJPMW5SP.mjs} +247 -172
- package/dist/js/chunks/chunk-XJPMW5SP.mjs.map +7 -0
- package/dist/js/chunks/{chunk-KUFHW3DS.mjs → chunk-YKANQILZ.mjs} +16 -21
- package/dist/js/chunks/chunk-YKANQILZ.mjs.map +7 -0
- package/dist/js/chunks/chunk-YLZOJLDI.mjs +175 -0
- package/dist/js/chunks/chunk-YLZOJLDI.mjs.map +7 -0
- package/dist/js/chunks/chunk-ZK7YY322.mjs +514 -0
- package/dist/js/chunks/chunk-ZK7YY322.mjs.map +7 -0
- package/dist/js/expressive.cjs +10266 -3628
- package/dist/js/expressive.cjs.map +4 -4
- package/dist/js/expressive.js +10266 -3628
- package/dist/js/expressive.js.map +4 -4
- package/dist/js/expressive.min.js +23 -22
- package/dist/js/expressive.min.js.map +4 -4
- package/dist/js/expressive.mjs +181 -69
- package/dist/js/expressive.mjs.map +2 -2
- package/dist/js/internal/behaviors/bottomSheets.mjs +4 -3
- package/dist/js/internal/behaviors/copy.mjs +9 -0
- package/dist/js/internal/behaviors/copy.mjs.map +7 -0
- package/dist/js/internal/behaviors/dataTables.mjs +8 -0
- package/dist/js/internal/behaviors/dataTables.mjs.map +7 -0
- package/dist/js/internal/behaviors/dialogs.mjs +2 -2
- package/dist/js/internal/behaviors/forms.mjs +2 -2
- package/dist/js/internal/behaviors/imageCompare.mjs +8 -0
- package/dist/js/internal/behaviors/imageCompare.mjs.map +7 -0
- package/dist/js/internal/behaviors/lists.mjs +8 -0
- package/dist/js/internal/behaviors/lists.mjs.map +7 -0
- package/dist/js/internal/behaviors/paneResize.mjs +8 -0
- package/dist/js/internal/behaviors/paneResize.mjs.map +7 -0
- package/dist/js/internal/behaviors/sheetDrag.mjs +7 -2
- package/dist/js/internal/behaviors/sideSheets.mjs +4 -3
- package/dist/js/internal/behaviors/sortable.mjs +8 -0
- package/dist/js/internal/behaviors/sortable.mjs.map +7 -0
- package/dist/js/internal/behaviors/theme.mjs +8 -0
- package/dist/js/internal/behaviors/theme.mjs.map +7 -0
- package/dist/js/internal/behaviors/tour.mjs +8 -0
- package/dist/js/internal/behaviors/tour.mjs.map +7 -0
- package/dist/js/internal/behaviors/transferList.mjs +8 -0
- package/dist/js/internal/behaviors/transferList.mjs.map +7 -0
- package/dist/js/internal/components/appBar.mjs +3 -2
- package/dist/js/internal/components/autocomplete.mjs +5 -4
- package/dist/js/internal/components/backToTop.mjs +9 -0
- package/dist/js/internal/components/backToTop.mjs.map +7 -0
- package/dist/js/internal/components/barChart.mjs +5 -4
- package/dist/js/internal/components/buttonGroup.mjs +3 -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/cascader.mjs +10 -0
- package/dist/js/internal/components/cascader.mjs.map +7 -0
- package/dist/js/internal/components/characterCounter.mjs +3 -2
- package/dist/js/internal/components/chips.mjs +7 -5
- package/dist/js/internal/components/colorPicker.mjs +9 -0
- package/dist/js/internal/components/colorPicker.mjs.map +7 -0
- package/dist/js/internal/components/columnChart.mjs +4 -3
- package/dist/js/internal/components/commandPalette.mjs +3 -3
- package/dist/js/internal/components/confetti.mjs +3 -2
- package/dist/js/internal/components/currencyInput.mjs +9 -0
- package/dist/js/internal/components/currencyInput.mjs.map +7 -0
- package/dist/js/internal/components/datepicker.mjs +12 -8
- package/dist/js/internal/components/expandingCard.mjs +3 -3
- package/dist/js/internal/components/funnelChart.mjs +10 -0
- package/dist/js/internal/components/funnelChart.mjs.map +7 -0
- package/dist/js/internal/components/heatmapChart.mjs +4 -3
- package/dist/js/internal/components/hoverCard.mjs +9 -0
- package/dist/js/internal/components/hoverCard.mjs.map +7 -0
- package/dist/js/internal/components/index.mjs +131 -65
- package/dist/js/internal/components/inputMask.mjs +9 -0
- package/dist/js/internal/components/inputMask.mjs.map +7 -0
- package/dist/js/internal/components/keypad.mjs +3 -3
- package/dist/js/internal/components/lightbox.mjs +3 -3
- package/dist/js/internal/components/lineChart.mjs +41 -4
- package/dist/js/internal/components/loadingOverlay.mjs +9 -0
- package/dist/js/internal/components/loadingOverlay.mjs.map +7 -0
- package/dist/js/internal/components/mapView.mjs +3 -3
- package/dist/js/internal/components/menu.mjs +3 -3
- package/dist/js/internal/components/menubar.mjs +10 -0
- package/dist/js/internal/components/menubar.mjs.map +7 -0
- package/dist/js/internal/components/messageScroller.mjs +3 -3
- package/dist/js/internal/components/mixedChart.mjs +5 -4
- package/dist/js/internal/components/navigationRail.mjs +3 -2
- package/dist/js/internal/components/particles.mjs +3 -2
- package/dist/js/internal/components/pieChart.mjs +4 -3
- package/dist/js/internal/components/pullToRefresh.mjs +9 -0
- package/dist/js/internal/components/pullToRefresh.mjs.map +7 -0
- package/dist/js/internal/components/questionnaire.mjs +3 -3
- package/dist/js/internal/components/radarChart.mjs +4 -3
- package/dist/js/internal/components/radialChart.mjs +4 -3
- package/dist/js/internal/components/registry.mjs +60 -41
- package/dist/js/internal/components/richTextEditor.mjs +3 -3
- package/dist/js/internal/components/sankeyChart.mjs +10 -0
- package/dist/js/internal/components/sankeyChart.mjs.map +7 -0
- package/dist/js/internal/components/scatterChart.mjs +10 -0
- package/dist/js/internal/components/scatterChart.mjs.map +7 -0
- package/dist/js/internal/components/scrollspy.mjs +3 -2
- package/dist/js/internal/components/select.mjs +5 -4
- package/dist/js/internal/components/showMore.mjs +9 -0
- package/dist/js/internal/components/showMore.mjs.map +7 -0
- package/dist/js/internal/components/slider.mjs +3 -3
- package/dist/js/internal/components/snackbar.mjs +2 -2
- package/dist/js/internal/components/swipeActions.mjs +9 -0
- package/dist/js/internal/components/swipeActions.mjs.map +7 -0
- package/dist/js/internal/components/tabs.mjs +3 -4
- package/dist/js/internal/components/timepicker.mjs +5 -4
- package/dist/js/internal/components/tooltip.mjs +3 -3
- package/dist/js/internal/components/treeSelect.mjs +14 -0
- package/dist/js/internal/components/treeSelect.mjs.map +7 -0
- package/dist/js/internal/components/treemapChart.mjs +10 -0
- package/dist/js/internal/components/treemapChart.mjs.map +7 -0
- package/dist/js/internal/core/component.mjs +6 -3
- package/dist/js/internal/core/formControl.mjs +12 -0
- package/dist/js/internal/core/formControl.mjs.map +7 -0
- package/dist/js/internal/core/imageURL.mjs +7 -0
- package/dist/js/internal/core/imageURL.mjs.map +7 -0
- package/dist/js/internal/core/spring.mjs +11 -0
- package/dist/js/internal/core/spring.mjs.map +7 -0
- package/dist/js/internal/core/utils.mjs +21 -3
- package/dist/js/internal/plugins/dockedDisplayPlugin.mjs +2 -2
- package/dist/js/internal/plugins/modalDisplayPlugin.mjs +13 -0
- package/dist/js/internal/plugins/modalDisplayPlugin.mjs.map +7 -0
- package/dist/js/modular.mjs +172 -69
- package/dist/types/behaviors/bottomSheets.d.ts +23 -5
- package/dist/types/behaviors/copy.d.ts +18 -0
- package/dist/types/behaviors/dataTables.d.ts +125 -0
- package/dist/types/behaviors/dialogs.d.ts +27 -1
- package/dist/types/behaviors/forms.d.ts +70 -4
- package/dist/types/behaviors/imageCompare.d.ts +13 -0
- package/dist/types/behaviors/lists.d.ts +12 -0
- package/dist/types/behaviors/paneResize.d.ts +29 -0
- package/dist/types/behaviors/sheetDrag.d.ts +18 -0
- package/dist/types/behaviors/sideSheets.d.ts +1 -1
- package/dist/types/behaviors/sortable.d.ts +28 -0
- package/dist/types/behaviors/theme.d.ts +22 -0
- package/dist/types/behaviors/tour.d.ts +36 -0
- package/dist/types/behaviors/transferList.d.ts +53 -0
- package/dist/types/components/appBar.d.ts +5 -6
- package/dist/types/components/autocomplete.d.ts +105 -20
- package/dist/types/components/backToTop.d.ts +36 -0
- package/dist/types/components/barChart.d.ts +3 -6
- package/dist/types/components/buttonGroup.d.ts +2 -4
- package/dist/types/components/buttons.d.ts +5 -5
- package/dist/types/components/cards.d.ts +3 -16
- package/dist/types/components/carousel.d.ts +16 -15
- package/dist/types/components/cascader.d.ts +130 -0
- package/dist/types/components/characterCounter.d.ts +2 -15
- package/dist/types/components/chips.d.ts +80 -19
- package/dist/types/components/colorPicker.d.ts +56 -0
- package/dist/types/components/columnChart.d.ts +23 -10
- package/dist/types/components/commandPalette.d.ts +11 -16
- package/dist/types/components/confetti.d.ts +2 -4
- package/dist/types/components/currencyInput.d.ts +60 -0
- package/dist/types/components/datepicker.d.ts +107 -56
- package/dist/types/components/expandingCard.d.ts +4 -6
- package/dist/types/components/funnelChart.d.ts +35 -0
- package/dist/types/components/heatmapChart.d.ts +42 -8
- package/dist/types/components/hoverCard.d.ts +59 -0
- package/dist/types/components/index.d.ts +16 -1
- package/dist/types/components/inputMask.d.ts +28 -0
- package/dist/types/components/keypad.d.ts +38 -6
- package/dist/types/components/lightbox.d.ts +14 -20
- package/dist/types/components/lineChart.d.ts +212 -12
- package/dist/types/components/loadingOverlay.d.ts +42 -0
- package/dist/types/components/mapView.d.ts +138 -27
- package/dist/types/components/menu.d.ts +74 -22
- package/dist/types/components/menubar.d.ts +37 -0
- package/dist/types/components/messageScroller.d.ts +2 -14
- package/dist/types/components/mixedChart.d.ts +15 -6
- package/dist/types/components/navigationRail.d.ts +16 -5
- package/dist/types/components/particles.d.ts +22 -5
- package/dist/types/components/pieChart.d.ts +33 -9
- package/dist/types/components/pullToRefresh.d.ts +80 -0
- package/dist/types/components/questionnaire.d.ts +58 -16
- package/dist/types/components/radarChart.d.ts +10 -6
- package/dist/types/components/radialChart.d.ts +58 -7
- package/dist/types/components/registry.d.ts +73 -3
- package/dist/types/components/richTextEditor.d.ts +45 -22
- package/dist/types/components/sankeyChart.d.ts +72 -0
- package/dist/types/components/scatterChart.d.ts +102 -0
- package/dist/types/components/scrollspy.d.ts +3 -5
- package/dist/types/components/select.d.ts +44 -33
- package/dist/types/components/showMore.d.ts +53 -0
- package/dist/types/components/slider.d.ts +2 -15
- package/dist/types/components/snackbar.d.ts +68 -1
- package/dist/types/components/swipeActions.d.ts +81 -0
- package/dist/types/components/tabs.d.ts +92 -30
- package/dist/types/components/timepicker.d.ts +128 -27
- package/dist/types/components/tooltip.d.ts +57 -21
- package/dist/types/components/treeSelect.d.ts +106 -0
- package/dist/types/components/treemapChart.d.ts +56 -0
- package/dist/types/core/component.d.ts +49 -25
- package/dist/types/core/formControl.d.ts +21 -0
- package/dist/types/core/imageURL.d.ts +2 -0
- package/dist/types/core/spring.d.ts +20 -0
- package/dist/types/core/utils.d.ts +123 -72
- package/dist/types/modular.d.ts +33 -1
- package/dist/types/plugins/dockedDisplayPlugin.d.ts +10 -8
- package/dist/types/plugins/modalDisplayPlugin.d.ts +39 -0
- package/package.json +17 -13
- package/src/sass/README.md +27 -18
- package/src/sass/abstracts/_elevation.scss +13 -7
- package/src/sass/abstracts/_index.scss +1 -0
- package/src/sass/abstracts/_mixins.scss +864 -78
- package/src/sass/abstracts/_spring.scss +63 -0
- package/src/sass/abstracts/_variables.scss +64 -21
- package/src/sass/base/_fonts.scss +61 -48
- package/src/sass/base/_global.scss +104 -24
- package/src/sass/base/_index.scss +2 -0
- package/src/sass/base/_normalize.scss +59 -114
- package/src/sass/base/_print.scss +21 -0
- package/src/sass/base/_prose.scss +68 -0
- package/src/sass/base/_typography.scss +9 -5
- package/src/sass/components/_accordion.scss +10 -19
- package/src/sass/components/_alert.scss +102 -0
- package/src/sass/components/_aura.scss +9 -3
- package/src/sass/components/_avatar.scss +3 -3
- package/src/sass/components/_back-to-top.scss +38 -0
- package/src/sass/components/_badges.scss +6 -5
- package/src/sass/components/_bar-chart.scss +31 -90
- package/src/sass/components/_bottom-sheet.scss +51 -16
- package/src/sass/components/_breadcrumb.scss +8 -7
- package/src/sass/components/_button-groups.scss +30 -63
- package/src/sass/components/_buttons.scss +137 -94
- package/src/sass/components/_calendar.scss +244 -0
- package/src/sass/components/_cards.scss +36 -44
- package/src/sass/components/_carousel.scss +37 -113
- package/src/sass/components/_cascader.scss +131 -0
- package/src/sass/components/_chips.scss +36 -46
- package/src/sass/components/_column-chart.scss +15 -26
- package/src/sass/components/_command-palette.scss +4 -7
- package/src/sass/components/_confetti.scss +1 -4
- package/src/sass/components/_countdown.scss +1 -1
- package/src/sass/components/_data-table.scss +172 -25
- package/src/sass/components/_datepicker.scss +54 -40
- package/src/sass/components/_description-list.scss +85 -0
- package/src/sass/components/_dialog.scss +48 -55
- package/src/sass/components/_docked-display.scss +1 -3
- package/src/sass/components/_drag-handle.scss +16 -20
- package/src/sass/components/_expanding-card.scss +21 -14
- package/src/sass/components/_fab-menu.scss +43 -39
- package/src/sass/components/_funnel-chart.scss +63 -0
- package/src/sass/components/_heatmap-chart.scss +114 -29
- package/src/sass/components/_icon-buttons.scss +8 -11
- package/src/sass/components/_icons-material-design.scss +2 -2
- package/src/sass/components/_image-compare.scss +108 -0
- package/src/sass/components/_index.scss +20 -0
- package/src/sass/components/_keypad.scss +39 -19
- package/src/sass/components/_kpi.scss +6 -11
- package/src/sass/components/_lightbox.scss +24 -13
- package/src/sass/components/_line-chart.scss +9 -63
- package/src/sass/components/_list.scss +59 -14
- package/src/sass/components/_loading-indicator.scss +1 -0
- package/src/sass/components/_loading-overlay.scss +105 -0
- package/src/sass/components/_map.scss +37 -11
- package/src/sass/components/_marquee.scss +4 -3
- package/src/sass/components/_mega-menu.scss +128 -0
- package/src/sass/components/_menu.scss +146 -127
- package/src/sass/components/_menubar.scss +47 -0
- package/src/sass/components/_message-scroller.scss +2 -2
- package/src/sass/components/_message.scss +3 -3
- package/src/sass/components/_mixed-chart.scss +27 -35
- package/src/sass/components/_modal-display.scss +21 -0
- package/src/sass/components/_navbar.scss +45 -36
- package/src/sass/components/_navigation-bar.scss +12 -77
- package/src/sass/components/_navigation-rail.scss +161 -92
- package/src/sass/components/_org-chart.scss +192 -0
- package/src/sass/components/_page-footer.scss +2 -4
- package/src/sass/components/_pagination.scss +9 -27
- package/src/sass/components/_panes.scss +35 -42
- package/src/sass/components/_particles.scss +1 -4
- package/src/sass/components/_pie-chart.scss +86 -68
- package/src/sass/components/_popover.scss +18 -5
- package/src/sass/components/_progress.scss +183 -44
- package/src/sass/components/_pull-to-refresh.scss +90 -0
- package/src/sass/components/_questionnaire.scss +74 -3
- package/src/sass/components/_radar-chart.scss +40 -42
- package/src/sass/components/_radial-chart.scss +108 -46
- package/src/sass/components/_rich-text-editor.scss +2 -2
- package/src/sass/components/_sankey-chart.scss +91 -0
- package/src/sass/components/_scatter-chart.scss +144 -0
- package/src/sass/components/_scrim.scss +0 -2
- package/src/sass/components/_scrollspy.scss +0 -2
- package/src/sass/components/_search.scss +27 -26
- package/src/sass/components/_show-more.scss +8 -0
- package/src/sass/components/_side-sheet.scss +32 -51
- package/src/sass/components/_skeleton.scss +26 -19
- package/src/sass/components/_snackbar.scss +25 -21
- package/src/sass/components/_split-button.scss +5 -5
- package/src/sass/components/_stat.scss +3 -8
- package/src/sass/components/_stepper.scss +1 -1
- package/src/sass/components/_swipe-actions.scss +71 -0
- package/src/sass/components/_table_of_contents.scss +1 -3
- package/src/sass/components/_tabs.scss +49 -46
- package/src/sass/components/_timeline.scss +12 -12
- package/src/sass/components/_timepicker.scss +111 -79
- package/src/sass/components/_toolbar.scss +36 -47
- package/src/sass/components/_tooltip.scss +25 -12
- package/src/sass/components/_tour.scss +89 -0
- package/src/sass/components/_transfer-list.scss +73 -0
- package/src/sass/components/_transitions.scss +4 -4
- package/src/sass/components/_tree.scss +7 -32
- package/src/sass/components/_treemap-chart.scss +98 -0
- package/src/sass/components/forms/_checkboxes.scss +107 -44
- package/src/sass/components/forms/_color-picker.scss +135 -0
- package/src/sass/components/forms/_color-swatches.scss +85 -0
- package/src/sass/components/forms/_drop-zone.scss +16 -13
- package/src/sass/components/forms/_fieldset.scss +4 -7
- package/src/sass/components/forms/_file-input.scss +12 -8
- package/src/sass/components/forms/_index.scss +3 -1
- package/src/sass/components/forms/_input-fields.scss +271 -90
- package/src/sass/components/forms/_radio-buttons.scss +34 -117
- package/src/sass/components/forms/_rating.scss +2 -32
- package/src/sass/components/forms/_select.scss +198 -20
- package/src/sass/components/forms/_slider.scss +92 -98
- package/src/sass/components/forms/_switches.scss +62 -180
- package/src/sass/custom.scss +10 -1
- package/src/sass/expressive.scss +3 -63
- package/src/sass/tokens/_contrast.scss +94 -0
- package/src/sass/tokens/_elevation.scss +16 -0
- package/src/sass/tokens/_index.scss +5 -0
- package/src/sass/tokens/_motion.scss +109 -0
- package/src/sass/tokens/_reference.scss +72 -141
- package/src/sass/tokens/_shape.scss +38 -0
- package/src/sass/tokens/_stacking.scss +27 -0
- package/src/sass/tokens/_state.scss +0 -2
- package/src/sass/tokens/_theme.scss +10 -1
- package/src/sass/tokens/_vibrant.scss +2 -5
- package/src/sass/utilities/_defer-render.scss +17 -0
- package/src/sass/utilities/_helpers.scss +184 -27
- package/src/sass/utilities/_index.scss +1 -0
- package/src/sass/utilities/_scroll-area.scss +0 -2
- package/src/sass/utilities/_spacing.scss +52 -34
- package/src/sass/utilities/_typescale.scss +8 -1
- package/src/sass/utilities/_visibility.scss +46 -77
- package/src/sass/utilities/_z-depth.scss +7 -4
- package/dist/js/chunks/chunk-33QVDDGR.mjs +0 -270
- package/dist/js/chunks/chunk-33QVDDGR.mjs.map +0 -7
- package/dist/js/chunks/chunk-45FER6RI.mjs +0 -59
- package/dist/js/chunks/chunk-45FER6RI.mjs.map +0 -7
- package/dist/js/chunks/chunk-5CEAOLUA.mjs.map +0 -7
- package/dist/js/chunks/chunk-6VATUZC6.mjs +0 -295
- package/dist/js/chunks/chunk-6VATUZC6.mjs.map +0 -7
- package/dist/js/chunks/chunk-74MXKKLN.mjs.map +0 -7
- package/dist/js/chunks/chunk-AIURVCG6.mjs +0 -55
- package/dist/js/chunks/chunk-AIURVCG6.mjs.map +0 -7
- package/dist/js/chunks/chunk-BGZLF6JZ.mjs.map +0 -7
- package/dist/js/chunks/chunk-C6CHEWYP.mjs.map +0 -7
- package/dist/js/chunks/chunk-CK2XCICY.mjs.map +0 -7
- package/dist/js/chunks/chunk-CXXM2L4F.mjs +0 -344
- package/dist/js/chunks/chunk-CXXM2L4F.mjs.map +0 -7
- package/dist/js/chunks/chunk-DXGRXYYL.mjs.map +0 -7
- package/dist/js/chunks/chunk-FM5CZOUB.mjs.map +0 -7
- package/dist/js/chunks/chunk-GJL6GCIU.mjs.map +0 -7
- package/dist/js/chunks/chunk-K3HZMFMD.mjs +0 -135
- package/dist/js/chunks/chunk-K3HZMFMD.mjs.map +0 -7
- package/dist/js/chunks/chunk-KHXZ2A4K.mjs.map +0 -7
- package/dist/js/chunks/chunk-KQACNQ22.mjs +0 -7
- package/dist/js/chunks/chunk-KQACNQ22.mjs.map +0 -7
- package/dist/js/chunks/chunk-KUFHW3DS.mjs.map +0 -7
- package/dist/js/chunks/chunk-KVJAVDBC.mjs.map +0 -7
- package/dist/js/chunks/chunk-L27Q6ZMI.mjs.map +0 -7
- package/dist/js/chunks/chunk-LQWUDNHZ.mjs.map +0 -7
- package/dist/js/chunks/chunk-M372EDXD.mjs +0 -322
- package/dist/js/chunks/chunk-M372EDXD.mjs.map +0 -7
- package/dist/js/chunks/chunk-M3MURWMB.mjs +0 -82
- package/dist/js/chunks/chunk-M3MURWMB.mjs.map +0 -7
- package/dist/js/chunks/chunk-NUHMOAOY.mjs.map +0 -7
- package/dist/js/chunks/chunk-OWG3LMUL.mjs +0 -169
- package/dist/js/chunks/chunk-OWG3LMUL.mjs.map +0 -7
- package/dist/js/chunks/chunk-PD6HYHAE.mjs +0 -48
- package/dist/js/chunks/chunk-PD6HYHAE.mjs.map +0 -7
- package/dist/js/chunks/chunk-PDG64UHF.mjs.map +0 -7
- package/dist/js/chunks/chunk-PO3AXVR3.mjs +0 -546
- package/dist/js/chunks/chunk-PO3AXVR3.mjs.map +0 -7
- package/dist/js/chunks/chunk-QYGK36OG.mjs +0 -181
- package/dist/js/chunks/chunk-QYGK36OG.mjs.map +0 -7
- package/dist/js/chunks/chunk-SFI2U4YW.mjs.map +0 -7
- package/dist/js/chunks/chunk-SMY7GJSS.mjs.map +0 -7
- package/dist/js/chunks/chunk-TCCA2HDG.mjs +0 -414
- package/dist/js/chunks/chunk-TCCA2HDG.mjs.map +0 -7
- package/dist/js/chunks/chunk-TSZYSW7F.mjs.map +0 -7
- package/dist/js/chunks/chunk-UAZSDUVP.mjs +0 -90
- package/dist/js/chunks/chunk-UAZSDUVP.mjs.map +0 -7
- package/dist/js/chunks/chunk-UBRZZWRA.mjs +0 -127
- package/dist/js/chunks/chunk-UBRZZWRA.mjs.map +0 -7
- package/dist/js/chunks/chunk-UCOE7ZDL.mjs +0 -287
- package/dist/js/chunks/chunk-UCOE7ZDL.mjs.map +0 -7
- package/dist/js/chunks/chunk-UETTGDLI.mjs.map +0 -7
- package/dist/js/chunks/chunk-UNCRDLP6.mjs +0 -136
- package/dist/js/chunks/chunk-UNCRDLP6.mjs.map +0 -7
- package/dist/js/chunks/chunk-VGNYF6FB.mjs.map +0 -7
- package/dist/js/chunks/chunk-VGPGBNGL.mjs +0 -68
- package/dist/js/chunks/chunk-VGPGBNGL.mjs.map +0 -7
- package/dist/js/chunks/chunk-VKAUVTQY.mjs +0 -1
- package/dist/js/chunks/chunk-VM4FTS7L.mjs +0 -48
- package/dist/js/chunks/chunk-VM4FTS7L.mjs.map +0 -7
- package/dist/js/chunks/chunk-WDK4T63U.mjs.map +0 -7
- package/dist/js/chunks/chunk-WOCCTVUF.mjs +0 -185
- package/dist/js/chunks/chunk-WOCCTVUF.mjs.map +0 -7
- package/dist/js/chunks/chunk-WQYN5L4E.mjs +0 -107
- package/dist/js/chunks/chunk-WQYN5L4E.mjs.map +0 -7
- package/dist/js/chunks/chunk-X4ISMKE2.mjs.map +0 -7
- package/dist/js/chunks/chunk-XAEAEHIX.mjs.map +0 -7
- package/dist/js/chunks/chunk-ZX6M7SWO.mjs.map +0 -7
- /package/dist/js/chunks/{chunk-VKAUVTQY.mjs.map → chunk-GNRSYMVH.mjs.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, BaseOptions,
|
|
1
|
+
import { Component, BaseOptions, InitElement, InitElements } from '../core/component';
|
|
2
2
|
/** `[longitude, latitude]`, MapLibre's order. */
|
|
3
3
|
export type LngLat = [number, number];
|
|
4
4
|
/**
|
|
@@ -6,22 +6,117 @@ export type LngLat = [number, number];
|
|
|
6
6
|
* the published types do not depend on MapLibre.
|
|
7
7
|
*/
|
|
8
8
|
export interface MapLibre {
|
|
9
|
-
Map: new (options:
|
|
10
|
-
Marker: new (options: object) =>
|
|
11
|
-
Popup: new (options: object) =>
|
|
9
|
+
Map: new (options: MapInit) => MapInstance;
|
|
10
|
+
Marker: new (options: object) => MapMarker;
|
|
11
|
+
Popup: new (options: object) => MapPopup;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* What `new Map()` gets. Only the container is declared; the style, center,
|
|
15
|
+
* zoom and `mapOptions` ride along, and MapLibre types them itself.
|
|
16
|
+
*/
|
|
17
|
+
export interface MapInit {
|
|
18
|
+
container: HTMLElement;
|
|
19
|
+
}
|
|
20
|
+
/** A point on the map, as MapLibre hands it back. */
|
|
21
|
+
export interface MapLngLat {
|
|
22
|
+
lng: number;
|
|
23
|
+
lat: number;
|
|
24
|
+
}
|
|
25
|
+
/** A map click, with the DOM event behind it and, on a layer, the features hit. */
|
|
26
|
+
export interface MapMouseEvent {
|
|
27
|
+
originalEvent: MouseEvent;
|
|
28
|
+
lngLat: MapLngLat;
|
|
29
|
+
features?: Array<{
|
|
30
|
+
properties: Record<string, unknown>;
|
|
31
|
+
geometry: {
|
|
32
|
+
coordinates: LngLat;
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
}
|
|
36
|
+
export interface MapMarker {
|
|
37
|
+
getElement(): HTMLElement;
|
|
38
|
+
getLngLat(): MapLngLat;
|
|
39
|
+
setLngLat(at: LngLat | MapLngLat): this;
|
|
40
|
+
addTo(map: MapInstance): this;
|
|
41
|
+
on(event: 'dragstart' | 'dragend', callback: () => void): unknown;
|
|
42
|
+
remove(): unknown;
|
|
43
|
+
}
|
|
44
|
+
export interface MapPopup {
|
|
45
|
+
getElement(): HTMLElement | undefined;
|
|
46
|
+
setDOMContent(content: Node): this;
|
|
47
|
+
setLngLat(at: LngLat | MapLngLat): this;
|
|
48
|
+
addTo(map: MapInstance): this;
|
|
49
|
+
isOpen(): boolean;
|
|
50
|
+
on(event: 'open' | 'close', callback: () => void): unknown;
|
|
51
|
+
remove(): unknown;
|
|
52
|
+
}
|
|
53
|
+
/** A style layer, as `getStyle()` lists them. */
|
|
54
|
+
export interface MapLayer {
|
|
55
|
+
id: string;
|
|
56
|
+
source?: string;
|
|
57
|
+
layout?: Record<string, unknown>;
|
|
58
|
+
}
|
|
59
|
+
/** A source, as `getSource()` returns it. */
|
|
60
|
+
export interface MapSource {
|
|
61
|
+
type: string;
|
|
62
|
+
}
|
|
63
|
+
/** A clustered GeoJSON source, which is what `addClusters()` registers. */
|
|
64
|
+
export interface MapClusterSource extends MapSource {
|
|
65
|
+
getClusterExpansionZoom(clusterId: unknown): Promise<number>;
|
|
66
|
+
}
|
|
67
|
+
/** The parts of a `maplibre-gl` `Map` this component calls. */
|
|
68
|
+
export interface MapInstance {
|
|
69
|
+
on(event: string, listener: (e: MapMouseEvent) => void): unknown;
|
|
70
|
+
on(event: string, layer: string, listener: (e: MapMouseEvent) => void): unknown;
|
|
71
|
+
off(event: string, layer: string, listener: (e: MapMouseEvent) => void): unknown;
|
|
72
|
+
remove(): void;
|
|
73
|
+
zoomIn(): unknown;
|
|
74
|
+
zoomOut(): unknown;
|
|
75
|
+
resetNorthPitch(): unknown;
|
|
76
|
+
getZoom(): number;
|
|
77
|
+
getMinZoom(): number;
|
|
78
|
+
getMaxZoom(): number;
|
|
79
|
+
getBearing(): number;
|
|
80
|
+
getCanvas(): HTMLCanvasElement;
|
|
81
|
+
getStyle(): {
|
|
82
|
+
glyphs?: string;
|
|
83
|
+
layers: MapLayer[];
|
|
84
|
+
};
|
|
85
|
+
setStyle(style: string | object | null, options?: {
|
|
86
|
+
diff?: boolean;
|
|
87
|
+
}): unknown;
|
|
88
|
+
getSource(id: string): MapSource | undefined;
|
|
89
|
+
addSource(id: string, source: object): unknown;
|
|
90
|
+
removeSource(id: string): unknown;
|
|
91
|
+
addLayer(layer: object): unknown;
|
|
92
|
+
removeLayer(id: string): unknown;
|
|
93
|
+
project(at: MapLngLat): {
|
|
94
|
+
x: number;
|
|
95
|
+
y: number;
|
|
96
|
+
};
|
|
97
|
+
unproject(point: [number, number]): MapLngLat;
|
|
98
|
+
panBy(offset: [number, number]): unknown;
|
|
99
|
+
flyTo(options: {
|
|
100
|
+
center: LngLat;
|
|
101
|
+
zoom: number;
|
|
102
|
+
}): unknown;
|
|
103
|
+
easeTo(options: {
|
|
104
|
+
center: LngLat;
|
|
105
|
+
zoom: number;
|
|
106
|
+
}): unknown;
|
|
12
107
|
}
|
|
13
108
|
/** A style for each color scheme. The map follows the page's theme. */
|
|
14
109
|
export interface MapThemedStyle {
|
|
15
110
|
light: string | object;
|
|
16
111
|
dark: string | object;
|
|
17
112
|
}
|
|
18
|
-
export interface MapViewOptions extends BaseOptions {
|
|
113
|
+
export interface MapViewOptions<L extends MapLibre = MapLibre> extends BaseOptions {
|
|
19
114
|
/**
|
|
20
115
|
* The `maplibre-gl` module. ExpressiveCSS does not bundle MapLibre, so the
|
|
21
116
|
* page imports it and passes it in.
|
|
22
117
|
* @default null
|
|
23
118
|
*/
|
|
24
|
-
maplibregl:
|
|
119
|
+
maplibregl: L | null;
|
|
25
120
|
/**
|
|
26
121
|
* A MapLibre style URL or object, or `{ light, dark }` to follow the theme.
|
|
27
122
|
* @default OpenFreeMap Positron and Dark
|
|
@@ -78,19 +173,24 @@ export interface MapClusterOptions {
|
|
|
78
173
|
* Each marker sits at its `data-lng-lat`. A marker button with
|
|
79
174
|
* `aria-controls` opens the `.map-popup` it names; a popup with its own
|
|
80
175
|
* `data-lng-lat` and no marker opens at init. Buttons in `.map-controls`
|
|
81
|
-
* run their `data-action`: `zoom-in`, `zoom-out`, `compass`, `locate
|
|
82
|
-
* `fullscreen
|
|
176
|
+
* run their `data-action`: `zoom-in`, `zoom-out`, `compass`, `locate`,
|
|
177
|
+
* `fullscreen` or `pan-up`, `pan-down`, `pan-left` and `pan-right`. A
|
|
178
|
+
* `data-draggable` marker moves without a drag too: a tap picks it up and
|
|
179
|
+
* the next tap on the map drops it, and the arrow keys nudge it. Routes, arcs and clusters are data, so they are added from
|
|
83
180
|
* script. The default style follows the page's light or dark theme, and
|
|
84
181
|
* line and cluster colors come from the theme.
|
|
85
182
|
*
|
|
86
183
|
* The class is `MapView` rather than `Map` so importing it does not shadow
|
|
87
184
|
* JavaScript's `Map`.
|
|
88
185
|
*/
|
|
89
|
-
export declare class MapView extends Component<MapViewOptions
|
|
90
|
-
/**
|
|
91
|
-
|
|
186
|
+
export declare class MapView<L extends MapLibre = MapLibre> extends Component<MapViewOptions<L>> {
|
|
187
|
+
/**
|
|
188
|
+
* The MapLibre map, with the full type of the `maplibregl` passed to the
|
|
189
|
+
* constructor; `init()` and `getInstance()` see the `MapInstance` subset.
|
|
190
|
+
*/
|
|
191
|
+
map: InstanceType<L['Map']> | null;
|
|
92
192
|
/** The MapLibre markers made from `.map-marker` children, in order. */
|
|
93
|
-
markers:
|
|
193
|
+
markers: MapMarker[];
|
|
94
194
|
private _children;
|
|
95
195
|
private _popups;
|
|
96
196
|
private _markerPopups;
|
|
@@ -98,25 +198,20 @@ export declare class MapView extends Component<MapViewOptions> {
|
|
|
98
198
|
private _styleReady;
|
|
99
199
|
private _dark;
|
|
100
200
|
private _location;
|
|
101
|
-
private _media;
|
|
102
201
|
private _observer;
|
|
103
202
|
private _zoomIn;
|
|
104
203
|
private _zoomOut;
|
|
105
|
-
|
|
204
|
+
private _picked;
|
|
205
|
+
private _dragged;
|
|
206
|
+
private _restore;
|
|
207
|
+
private _actions;
|
|
208
|
+
/** Initializes a map, typed by the `maplibregl` passed in. */
|
|
209
|
+
static init<L extends MapLibre>(this: typeof MapView, el: HTMLElement, options?: Partial<MapViewOptions<L>>): MapView<L>;
|
|
210
|
+
/** Initializes a map on each element, typed by the `maplibregl` passed in. */
|
|
211
|
+
static init<L extends MapLibre>(this: typeof MapView, els: InitElements<InitElement>, options?: Partial<MapViewOptions<L>>): MapView<L>[];
|
|
212
|
+
constructor(el: HTMLElement, options: Partial<MapViewOptions<L>>);
|
|
106
213
|
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;
|
|
214
|
+
static key: string;
|
|
120
215
|
destroy(): void;
|
|
121
216
|
/** Draws a line through `[longitude, latitude]` points. Replaces an overlay with the same id. */
|
|
122
217
|
addRoute(id: string, coordinates: LngLat[], options?: MapLineOptions): void;
|
|
@@ -133,6 +228,20 @@ export declare class MapView extends Component<MapViewOptions> {
|
|
|
133
228
|
private _line;
|
|
134
229
|
private _draw;
|
|
135
230
|
private _addMarker;
|
|
231
|
+
/** A marker moved: its `data-lng-lat` holds the new place, and it fires `change`. */
|
|
232
|
+
private _moved;
|
|
233
|
+
private _makeMovable;
|
|
234
|
+
/** Takes back the attributes `_makeMovable()` added. Destroy removes its listeners. */
|
|
235
|
+
private _releaseMarkers;
|
|
236
|
+
/** The arrow keys move a focused draggable marker 10px, and the map stays put. */
|
|
237
|
+
private _nudge;
|
|
238
|
+
/** Picks a marker up, or puts down the one already picked up. */
|
|
239
|
+
private _pick;
|
|
240
|
+
private _tapMarker;
|
|
241
|
+
private _tapMovable;
|
|
242
|
+
/** A third of the map's width or height in a direction. */
|
|
243
|
+
private _pan;
|
|
244
|
+
private _toggleFullscreen;
|
|
136
245
|
private _popup;
|
|
137
246
|
private _toggle;
|
|
138
247
|
private _buttons;
|
|
@@ -147,5 +256,7 @@ export declare class MapView extends Component<MapViewOptions> {
|
|
|
147
256
|
private _handleFullscreen;
|
|
148
257
|
private _handleClick;
|
|
149
258
|
private _handleMapClick;
|
|
259
|
+
private _drop;
|
|
150
260
|
private _handleKeydown;
|
|
261
|
+
private _escape;
|
|
151
262
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, BaseOptions
|
|
1
|
+
import { Component, BaseOptions } from '../core/component';
|
|
2
2
|
export interface MenuOptions extends BaseOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Defines the edge the menu is aligned to.
|
|
@@ -30,6 +30,12 @@ export interface MenuOptions extends BaseOptions {
|
|
|
30
30
|
* @default false
|
|
31
31
|
*/
|
|
32
32
|
coverTrigger: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The side of the trigger the menu opens on when there is room, such as
|
|
35
|
+
* 'top' for a trigger in a bottom bar. It flips when there is not.
|
|
36
|
+
* @default 'bottom'
|
|
37
|
+
*/
|
|
38
|
+
placement: 'bottom' | 'top';
|
|
33
39
|
/**
|
|
34
40
|
* If true, close menu on item click.
|
|
35
41
|
* @default true
|
|
@@ -83,7 +89,7 @@ export interface MenuOptions extends BaseOptions {
|
|
|
83
89
|
*/
|
|
84
90
|
onItemClick: (el: HTMLLIElement) => void;
|
|
85
91
|
}
|
|
86
|
-
export declare class Menu extends Component<MenuOptions>
|
|
92
|
+
export declare class Menu extends Component<MenuOptions> {
|
|
87
93
|
static _menus: Menu[];
|
|
88
94
|
/** ID of the menu element. */
|
|
89
95
|
id: string;
|
|
@@ -100,8 +106,13 @@ export declare class Menu extends Component<MenuOptions> implements Openable {
|
|
|
100
106
|
filterTimeout: ReturnType<typeof setTimeout>;
|
|
101
107
|
private _pendingTimers;
|
|
102
108
|
private _transition;
|
|
109
|
+
/** Removes the listeners an open menu adds. */
|
|
110
|
+
private _openEvents;
|
|
103
111
|
private _originalInert;
|
|
104
112
|
private _menuClickTargets;
|
|
113
|
+
private _spaceActivation;
|
|
114
|
+
/** Whether the pointer opened the menu, so opening leaves focus where it was. */
|
|
115
|
+
private _openedByHover;
|
|
105
116
|
/**
|
|
106
117
|
* Viewport point the open context menu belongs to. Null outside a
|
|
107
118
|
* right-click, so a keyboard or programmatic open uses the region's corner
|
|
@@ -110,35 +121,35 @@ export declare class Menu extends Component<MenuOptions> implements Openable {
|
|
|
110
121
|
private _contextPoint;
|
|
111
122
|
/** What had focus when a context menu opened; focus goes back there. */
|
|
112
123
|
private _contextReturn;
|
|
124
|
+
/** Each attribute setup wrote, with the value it had before, for destroy(). */
|
|
125
|
+
private _originalAttributes;
|
|
126
|
+
/** Where the menu was before it moved next to the trigger. */
|
|
127
|
+
private _originalPlace;
|
|
113
128
|
constructor(el: HTMLElement, options: Partial<MenuOptions>);
|
|
114
129
|
static get defaults(): MenuOptions;
|
|
115
|
-
|
|
116
|
-
* Initializes instance of Menu.
|
|
117
|
-
* @param el HTML element.
|
|
118
|
-
* @param options Component options.
|
|
119
|
-
*/
|
|
120
|
-
static init(el: HTMLElement, options?: Partial<MenuOptions>): Menu;
|
|
121
|
-
/**
|
|
122
|
-
* Initializes instances of Menu.
|
|
123
|
-
* @param els HTML elements.
|
|
124
|
-
* @param options Component options.
|
|
125
|
-
*/
|
|
126
|
-
static init(els: InitElements<InitElement>, options?: Partial<MenuOptions>): Menu[];
|
|
127
|
-
static getInstance(el: HTMLElement): Menu;
|
|
130
|
+
static key: string;
|
|
128
131
|
destroy(): void;
|
|
129
132
|
_setupEventHandlers(): void;
|
|
130
|
-
_removeEventHandlers(): void;
|
|
131
133
|
_setupTemporaryEventHandlers(): void;
|
|
132
|
-
_removeTemporaryEventHandlers(): void;
|
|
133
134
|
_handleContextMenu: (e: MouseEvent) => void;
|
|
134
135
|
_handleDocumentContextMenu: (e: MouseEvent) => void;
|
|
135
136
|
_handleClick: (e: MouseEvent) => void;
|
|
136
137
|
_handleMouseEnter: () => void;
|
|
137
138
|
_handleMouseLeave: (e: MouseEvent) => void;
|
|
139
|
+
private static _inOpenTrigger;
|
|
138
140
|
_handleDocumentClick: (e: MouseEvent) => void;
|
|
141
|
+
_handleDocumentKeydown: (e: KeyboardEvent) => void;
|
|
139
142
|
_handleTriggerKeydown: (e: KeyboardEvent) => void;
|
|
143
|
+
_handleMenuPointerdown: () => void;
|
|
140
144
|
_handleDocumentTouchmove: (e: TouchEvent) => void;
|
|
141
145
|
_handleMenuClick: (e: MouseEvent) => void;
|
|
146
|
+
private _activateItem;
|
|
147
|
+
private _toggleChecked;
|
|
148
|
+
private _checkRadio;
|
|
149
|
+
private _isCheckboxRow;
|
|
150
|
+
private _closesOnClick;
|
|
151
|
+
private _keepsOpen;
|
|
152
|
+
private _closeAfterEnter;
|
|
142
153
|
private _setupAccessibility;
|
|
143
154
|
private _isSubmenuTriggerClick;
|
|
144
155
|
private _setupSubmenus;
|
|
@@ -154,14 +165,36 @@ export declare class Menu extends Component<MenuOptions> implements Openable {
|
|
|
154
165
|
_handleWindowResize: () => void;
|
|
155
166
|
_resetFilterQuery: () => void;
|
|
156
167
|
private _restoreInert;
|
|
168
|
+
private _clearActive;
|
|
157
169
|
private _focusRow;
|
|
158
170
|
_resetMenuStyles(): void;
|
|
159
171
|
_resetMenuPositioningStyles(): void;
|
|
160
|
-
_moveMenuToElement(
|
|
172
|
+
_moveMenuToElement(): void;
|
|
173
|
+
/** Keeps the value an attribute had before setup first changed it, which destroy() puts back. */
|
|
174
|
+
private _keepAttribute;
|
|
175
|
+
private _setAttribute;
|
|
176
|
+
/**
|
|
177
|
+
* Puts back the attributes setup wrote and the menu where it was, so a
|
|
178
|
+
* destroyed trigger is no longer announced as a menu button. The place is
|
|
179
|
+
* only used while it is still in the page.
|
|
180
|
+
*/
|
|
181
|
+
private _restoreSetup;
|
|
161
182
|
_makeMenuFocusable(): void;
|
|
183
|
+
/**
|
|
184
|
+
* Moves focus for Up, Down, Home or End among the list's focusable rows,
|
|
185
|
+
* without wrapping, and says whether the key was one of those.
|
|
186
|
+
*/
|
|
187
|
+
private _moveFocus;
|
|
188
|
+
/** The list's rows that take focus, in document order. */
|
|
189
|
+
private _rows;
|
|
162
190
|
private _focusInitialItem;
|
|
163
191
|
_focusFocusedItem(): void;
|
|
164
|
-
|
|
192
|
+
/**
|
|
193
|
+
* Whether a measured menu opens upward: when there is no room below, or
|
|
194
|
+
* when placement 'top' asks for it and there is room above.
|
|
195
|
+
*/
|
|
196
|
+
private _opensUp;
|
|
197
|
+
_getMenuPosition(): {
|
|
165
198
|
x: number;
|
|
166
199
|
y: number;
|
|
167
200
|
verticalAlignment: string;
|
|
@@ -173,15 +206,33 @@ export declare class Menu extends Component<MenuOptions> implements Openable {
|
|
|
173
206
|
private _clearPendingTimers;
|
|
174
207
|
_animateIn(): void;
|
|
175
208
|
_animateOut(): void;
|
|
176
|
-
private _getClosestAncestor;
|
|
177
209
|
_placeMenu(): void;
|
|
210
|
+
/**
|
|
211
|
+
* The side an anchored menu opens on: the one asked for when the whole
|
|
212
|
+
* menu fits there, or else the roomier one. The anchored height is capped
|
|
213
|
+
* to its side, so a menu that would only shrink never sets off the
|
|
214
|
+
* flip-block fallback, and the choice is made here.
|
|
215
|
+
*/
|
|
216
|
+
private _side;
|
|
217
|
+
private _reanchorFrame;
|
|
218
|
+
private _anchorMenu;
|
|
219
|
+
/**
|
|
220
|
+
* At most once a frame while the menu is open and something outside it
|
|
221
|
+
* scrolls, an anchored menu chooses its side again and a measured one
|
|
222
|
+
* follows its trigger, keeping its own scroll position. A context menu
|
|
223
|
+
* stays where it opened, and the menu's own scrolling moves nothing.
|
|
224
|
+
*/
|
|
225
|
+
private _reanchor;
|
|
226
|
+
private _stopReanchoring;
|
|
227
|
+
/** The anchored menu's side, the edge it starts from and its growth origin. */
|
|
228
|
+
private _placeAnchored;
|
|
229
|
+
private _placeByCoordinates;
|
|
178
230
|
/** Where a context menu opens without a pointer: the region's start corner. */
|
|
179
231
|
private _regionCorner;
|
|
180
232
|
/**
|
|
181
233
|
* Places a context menu with its start corner on the point, flipping to
|
|
182
234
|
* the other side of the point where it would not fit. The bounds are the
|
|
183
|
-
* viewport
|
|
184
|
-
* a menu taller than them gets their height and scrolls.
|
|
235
|
+
* viewport; a menu taller than it gets its height and scrolls.
|
|
185
236
|
*
|
|
186
237
|
* The menu rests at left/top 0 of its containing block, so its rect is the
|
|
187
238
|
* offset to subtract - the same trick _getMenuPosition uses. It is measured
|
|
@@ -189,6 +240,7 @@ export declare class Menu extends Component<MenuOptions> implements Openable {
|
|
|
189
240
|
*/
|
|
190
241
|
private _placeMenuAtPoint;
|
|
191
242
|
private _setExpanded;
|
|
243
|
+
private get _canOpen();
|
|
192
244
|
/**
|
|
193
245
|
* Open menu.
|
|
194
246
|
*/
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Component, BaseOptions } from '../core/component';
|
|
2
|
+
import { MenuOptions } from './menu';
|
|
3
|
+
export interface MenubarOptions extends BaseOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Options for each item's Menu. The defaults size the menus to their
|
|
6
|
+
* content and open them below the bar.
|
|
7
|
+
* @default { constrainWidth: false, coverTrigger: false }
|
|
8
|
+
*/
|
|
9
|
+
menuOptions: Partial<MenuOptions>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Menubar. An application's row of menus, such as File, Edit and View. A
|
|
13
|
+
* `.menubar` holds `.menu-trigger` buttons whose `data-target` menus are
|
|
14
|
+
* ordinary Menus; this adds the ARIA menubar contract around them. The bar
|
|
15
|
+
* is `role="menubar"` and each button a `menuitem`, with one tab stop that
|
|
16
|
+
* follows focus. Left and Right move between items, wrapping, and Home and
|
|
17
|
+
* End go to the first and last; with a menu open, Left and Right close it
|
|
18
|
+
* and open the neighbour's, unless the focused row opens or closes a
|
|
19
|
+
* submenu. Down, Up, Enter and Space open a menu, and Escape closes it,
|
|
20
|
+
* through Menu itself.
|
|
21
|
+
*/
|
|
22
|
+
export declare class Menubar extends Component<MenubarOptions> {
|
|
23
|
+
private _added;
|
|
24
|
+
constructor(el: HTMLElement, options: Partial<MenubarOptions>);
|
|
25
|
+
static get defaults(): MenubarOptions;
|
|
26
|
+
static key: string;
|
|
27
|
+
destroy(): void;
|
|
28
|
+
private get _items();
|
|
29
|
+
/** Sets an attribute the author left out, remembering it for destroy(). */
|
|
30
|
+
private _setAttribute;
|
|
31
|
+
private _step;
|
|
32
|
+
/** Focuses the first enabled item after `index` in the `step` direction, wrapping. */
|
|
33
|
+
private _focusItem;
|
|
34
|
+
private _onFocusin;
|
|
35
|
+
private _onBarKeydown;
|
|
36
|
+
private _onMenuKeydown;
|
|
37
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, BaseOptions
|
|
1
|
+
import { Component, BaseOptions } from '../core/component';
|
|
2
2
|
export interface MessageScrollerOptions extends BaseOptions {
|
|
3
3
|
/**
|
|
4
4
|
* If true, the viewport follows new content while the reader is at the
|
|
@@ -56,19 +56,7 @@ export declare class MessageScroller extends Component<MessageScrollerOptions> {
|
|
|
56
56
|
private _mutationObserver;
|
|
57
57
|
constructor(el: HTMLElement, options: Partial<MessageScrollerOptions>);
|
|
58
58
|
static get defaults(): MessageScrollerOptions;
|
|
59
|
-
|
|
60
|
-
* Initializes instance of MessageScroller.
|
|
61
|
-
* @param el HTML element.
|
|
62
|
-
* @param options Component options.
|
|
63
|
-
*/
|
|
64
|
-
static init(el: HTMLElement, options?: Partial<MessageScrollerOptions>): MessageScroller;
|
|
65
|
-
/**
|
|
66
|
-
* Initializes instances of MessageScroller.
|
|
67
|
-
* @param els HTML elements.
|
|
68
|
-
* @param options Component options.
|
|
69
|
-
*/
|
|
70
|
-
static init(els: InitElements<InitElement>, options?: Partial<MessageScrollerOptions>): MessageScroller[];
|
|
71
|
-
static getInstance(el: HTMLElement): MessageScroller;
|
|
59
|
+
static key: string;
|
|
72
60
|
destroy(): void;
|
|
73
61
|
/** Scrolls to the latest message and resumes following. */
|
|
74
62
|
scrollToEnd(): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InitElements, InitElement } from '../core/component';
|
|
2
1
|
import { ColumnChart } from './columnChart';
|
|
3
2
|
import { LineChartOptions, Series } from './lineChart';
|
|
4
3
|
export type MixedChartOptions = LineChartOptions;
|
|
@@ -8,18 +7,28 @@ export type MixedChartOptions = LineChartOptions;
|
|
|
8
7
|
* line with a fill under it, and anything else as a line. Series with
|
|
9
8
|
* `end` are drawn against a second scale, set by `data-end-min` and
|
|
10
9
|
* `data-end-max`, so values of different sizes or units share the plot.
|
|
10
|
+
* With `stacked` the columns stack; `points` and `straight` apply to the
|
|
11
|
+
* lines as in LineChart.
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
+
* Call `update()` after changing the table, or start it with `watch` or
|
|
14
|
+
* `data-watch`.
|
|
13
15
|
*/
|
|
14
16
|
export declare class MixedChart extends ColumnChart {
|
|
15
17
|
protected get _type(): string;
|
|
16
|
-
protected get _key(): string;
|
|
17
18
|
protected get _points(): boolean;
|
|
18
|
-
static
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
static key: string;
|
|
20
|
+
/**
|
|
21
|
+
* With .stacked, the columns on each scale stack on the ones before them;
|
|
22
|
+
* the lines and areas keep their own values.
|
|
23
|
+
*/
|
|
24
|
+
protected _stack(series: Series[]): void;
|
|
21
25
|
/** The start scale, then the end scale; each includes zero if it has columns. */
|
|
22
26
|
protected _scale(series: Series[], min: number | null, max: number | null): (value: number) => number;
|
|
27
|
+
/**
|
|
28
|
+
* With .axis, widens the end scale to as many round steps as the start
|
|
29
|
+
* scale has, so its labels fall on the start scale's grid lines.
|
|
30
|
+
*/
|
|
31
|
+
private _align;
|
|
23
32
|
/** Columns behind, then the lines and areas over them. */
|
|
24
33
|
protected _draw(): Element;
|
|
25
34
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, BaseOptions
|
|
1
|
+
import { Component, BaseOptions } from '../core/component';
|
|
2
2
|
export interface NavigationRailOptions extends BaseOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Called before the rail expands.
|
|
@@ -20,17 +20,19 @@ export interface NavigationRailOptions extends BaseOptions {
|
|
|
20
20
|
/**
|
|
21
21
|
* Navigation rail. Layout is CSS (collapsed / .expanded). This class
|
|
22
22
|
* toggles that class from the menu button, closes a compact overlay on
|
|
23
|
-
* Escape or a scrim tap, and keeps aria-expanded in sync.
|
|
23
|
+
* Escape or a scrim tap, and keeps aria-expanded in sync. A destination's
|
|
24
|
+
* .navigation-rail-panel is a native popover; this class also opens it on
|
|
25
|
+
* mouse hover.
|
|
24
26
|
*/
|
|
25
27
|
export declare class NavigationRail extends Component<NavigationRailOptions> {
|
|
26
28
|
isExpanded: boolean;
|
|
27
29
|
private _toggle;
|
|
28
30
|
private _mql;
|
|
31
|
+
private _hoverPanel;
|
|
32
|
+
private _hoverTimer;
|
|
29
33
|
constructor(el: HTMLElement, options: Partial<NavigationRailOptions>);
|
|
30
34
|
static get defaults(): NavigationRailOptions;
|
|
31
|
-
static
|
|
32
|
-
static init(els: InitElements<InitElement>, options?: Partial<NavigationRailOptions>): NavigationRail[];
|
|
33
|
-
static getInstance(el: HTMLElement): NavigationRail;
|
|
35
|
+
static key: string;
|
|
34
36
|
destroy(): void;
|
|
35
37
|
/**
|
|
36
38
|
* Expands the rail. On compact windows the overlay (scrim) is CSS.
|
|
@@ -48,6 +50,15 @@ export declare class NavigationRail extends Component<NavigationRailOptions> {
|
|
|
48
50
|
private _isCompact;
|
|
49
51
|
private _isModal;
|
|
50
52
|
private _sync;
|
|
53
|
+
/** The side panel of the enabled destination around `target`, if any. */
|
|
54
|
+
private _panelAt;
|
|
55
|
+
private _hoverOpen;
|
|
56
|
+
private _hoverClose;
|
|
57
|
+
private _onPointerOver;
|
|
58
|
+
private _onPointerLeave;
|
|
59
|
+
private _pinPanel;
|
|
51
60
|
private _onClick;
|
|
61
|
+
private _escapePanel;
|
|
62
|
+
private _isScrimClick;
|
|
52
63
|
private _onKeyDown;
|
|
53
64
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, BaseOptions
|
|
1
|
+
import { Component, BaseOptions } from '../core/component';
|
|
2
2
|
export interface ParticlesOptions extends BaseOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Number of particles.
|
|
@@ -50,22 +50,39 @@ export declare class Particles extends Component<ParticlesOptions> {
|
|
|
50
50
|
private _particles;
|
|
51
51
|
private _width;
|
|
52
52
|
private _height;
|
|
53
|
+
/** The device pixel ratio the buffer was sized for, which painting scales by. */
|
|
54
|
+
private _dpr;
|
|
53
55
|
private _frame;
|
|
54
56
|
private _last;
|
|
55
57
|
private _mouse;
|
|
56
58
|
private _still;
|
|
59
|
+
private _visible;
|
|
60
|
+
private _motion;
|
|
61
|
+
private _theme;
|
|
57
62
|
private _resizeObserver;
|
|
58
63
|
private _visibility;
|
|
59
64
|
constructor(el: HTMLElement, options: Partial<ParticlesOptions>);
|
|
60
65
|
static get defaults(): ParticlesOptions;
|
|
61
|
-
static
|
|
62
|
-
static init(els: InitElements<InitElement>, options?: Partial<ParticlesOptions>): Particles[];
|
|
63
|
-
static getInstance(el: HTMLElement): Particles;
|
|
66
|
+
static key: string;
|
|
64
67
|
destroy(): void;
|
|
68
|
+
private _animate;
|
|
69
|
+
private _onMotion;
|
|
70
|
+
private _repaint;
|
|
65
71
|
private _start;
|
|
66
72
|
private _stop;
|
|
67
73
|
private _onPointerMove;
|
|
68
|
-
|
|
74
|
+
/** Matches the pixel buffer to the canvas box, which clears it. */
|
|
75
|
+
private _fit;
|
|
76
|
+
/** Scatters a new set of particles. */
|
|
77
|
+
private _scatter;
|
|
78
|
+
/**
|
|
79
|
+
* Refits the buffer and moves each particle with the box, so a drag that
|
|
80
|
+
* resizes the canvas every frame keeps the same dots. It used to scatter a
|
|
81
|
+
* new set each time. A box that had no size has no positions to keep.
|
|
82
|
+
* Refitting clears the buffer, and the observer runs after this frame's
|
|
83
|
+
* draw, so a moving canvas is painted here too or it shows blank.
|
|
84
|
+
*/
|
|
85
|
+
private _resize;
|
|
69
86
|
private _particle;
|
|
70
87
|
private _draw;
|
|
71
88
|
private _paint;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { InitElements, InitElement } from '../core/component';
|
|
2
1
|
import { LineChart, LineChartOptions } from './lineChart';
|
|
3
2
|
export type PieChartOptions = LineChartOptions;
|
|
4
3
|
/**
|
|
5
4
|
* Pie chart. It reads its <table> like LineChart, but draws each row of the
|
|
6
5
|
* first value column as a slice of the whole, clockwise from the top, with
|
|
7
6
|
* a legend of every row and its share. With `.donut`, a <tfoot> row is the
|
|
8
|
-
* total in the middle. Further columns show in the tooltip.
|
|
7
|
+
* total in the middle. Further columns show in the tooltip. With
|
|
8
|
+
* `data-other`, rows under that percentage of the whole become one row,
|
|
9
|
+
* last, named by `data-other-label` ("Other" by default); the table keeps
|
|
10
|
+
* every row.
|
|
9
11
|
*
|
|
10
|
-
*
|
|
12
|
+
* Call `update()` after changing the table, or start it with `watch` or
|
|
13
|
+
* `data-watch`.
|
|
11
14
|
*/
|
|
12
15
|
export declare class PieChart extends LineChart {
|
|
13
16
|
/** Each row's start and end, as fractions of a turn clockwise from the top. */
|
|
@@ -18,18 +21,35 @@ export declare class PieChart extends LineChart {
|
|
|
18
21
|
/** Percent formatters by fraction digits, rebuilt once per legend. */
|
|
19
22
|
private _percents;
|
|
20
23
|
protected get _type(): string;
|
|
21
|
-
|
|
24
|
+
/** A pie has no value axis. */
|
|
25
|
+
protected get _axis(): boolean;
|
|
22
26
|
protected get _points(): boolean;
|
|
23
27
|
protected get _circular(): boolean;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
protected _read(): void;
|
|
29
|
+
/**
|
|
30
|
+
* The group's sum written like its cells: with their signs, and to their
|
|
31
|
+
* decimals, or compact when data-value stands behind text such as "$38M".
|
|
32
|
+
*/
|
|
33
|
+
private _written;
|
|
34
|
+
private _precision;
|
|
35
|
+
/**
|
|
36
|
+
* Which rows data-other groups: those with a value under that percentage
|
|
37
|
+
* of the whole. Null when it groups nothing, as one small row is clearer
|
|
38
|
+
* by its own name.
|
|
39
|
+
*/
|
|
40
|
+
private _small;
|
|
41
|
+
static key: string;
|
|
27
42
|
show(index: number): void;
|
|
28
43
|
/** CSS places the tooltip on the slice's middle from --turn. */
|
|
29
44
|
protected _place(index: number): void;
|
|
30
45
|
/** The row's share of the whole as a percentage, or '' for none. */
|
|
31
|
-
|
|
32
|
-
|
|
46
|
+
protected _share(index: number): string;
|
|
47
|
+
/**
|
|
48
|
+
* Each slice's row name outside it, on the slice's middle, with a leader
|
|
49
|
+
* line back to the slice. Names on the right half run rightwards and those
|
|
50
|
+
* on the left run leftwards.
|
|
51
|
+
*/
|
|
52
|
+
private _names;
|
|
33
53
|
/** The legend: every row with its color, its cell and its share. */
|
|
34
54
|
protected _guides(): Element[];
|
|
35
55
|
/** The row under the pointer by its angle from the middle, or -1 off the slices. */
|
|
@@ -40,4 +60,8 @@ export declare class PieChart extends LineChart {
|
|
|
40
60
|
* total are HTML over it.
|
|
41
61
|
*/
|
|
42
62
|
protected _draw(): Element;
|
|
63
|
+
/** The .values shares on the slices and the .labels names outside them. */
|
|
64
|
+
private _texts;
|
|
65
|
+
/** Each slice's share on it, except on slices too thin to hold it. */
|
|
66
|
+
private _values;
|
|
43
67
|
}
|