@expressivecss/expressive 0.14.1 → 0.16.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 +1589 -1
- package/README.md +9 -8
- package/dist/css/expressive.css +19304 -12021
- 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-2CS6TITK.mjs +219 -0
- package/dist/js/chunks/chunk-2CS6TITK.mjs.map +7 -0
- package/dist/js/chunks/chunk-2RLBDFH4.mjs +108 -0
- package/dist/js/chunks/chunk-2RLBDFH4.mjs.map +7 -0
- package/dist/js/chunks/chunk-3L3QIYLC.mjs +85 -0
- package/dist/js/chunks/chunk-3L3QIYLC.mjs.map +7 -0
- package/dist/js/chunks/chunk-4EWGD4V2.mjs +75 -0
- package/dist/js/chunks/chunk-4EWGD4V2.mjs.map +7 -0
- package/dist/js/chunks/chunk-4IKVPCSU.mjs +7 -0
- package/dist/js/chunks/chunk-4IKVPCSU.mjs.map +7 -0
- package/dist/js/chunks/chunk-4PIXLDNJ.mjs +127 -0
- package/dist/js/chunks/chunk-4PIXLDNJ.mjs.map +7 -0
- package/dist/js/chunks/{chunk-A7ALMYUR.mjs → chunk-4QUCNFSD.mjs} +68 -125
- package/dist/js/chunks/chunk-4QUCNFSD.mjs.map +7 -0
- package/dist/js/chunks/{chunk-4TKTLGEM.mjs → chunk-4TRZ2AER.mjs} +35 -41
- package/dist/js/chunks/chunk-4TRZ2AER.mjs.map +7 -0
- package/dist/js/chunks/{chunk-BG6ZRB5H.mjs → chunk-5KIHWJI2.mjs} +40 -26
- package/dist/js/chunks/chunk-5KIHWJI2.mjs.map +7 -0
- package/dist/js/chunks/{chunk-YDCS5S3J.mjs → chunk-67ZPPKXS.mjs} +20 -33
- package/dist/js/chunks/chunk-67ZPPKXS.mjs.map +7 -0
- package/dist/js/chunks/{chunk-3DHK5CZU.mjs → chunk-6FSEUFVW.mjs} +40 -29
- package/dist/js/chunks/chunk-6FSEUFVW.mjs.map +7 -0
- package/dist/js/chunks/chunk-752ADW4M.mjs +225 -0
- package/dist/js/chunks/chunk-752ADW4M.mjs.map +7 -0
- package/dist/js/chunks/{chunk-GVGT6MIU.mjs → chunk-75E5EDJF.mjs} +3 -11
- package/dist/js/chunks/chunk-75E5EDJF.mjs.map +7 -0
- package/dist/js/chunks/{chunk-TBM3FT7G.mjs → chunk-7NLUI3RR.mjs} +148 -78
- package/dist/js/chunks/chunk-7NLUI3RR.mjs.map +7 -0
- package/dist/js/chunks/chunk-7W7TV6NY.mjs +108 -0
- package/dist/js/chunks/chunk-7W7TV6NY.mjs.map +7 -0
- package/dist/js/chunks/chunk-7YQBHTK3.mjs +225 -0
- package/dist/js/chunks/chunk-7YQBHTK3.mjs.map +7 -0
- package/dist/js/chunks/chunk-7YZ5CN3V.mjs +33 -0
- package/dist/js/chunks/chunk-7YZ5CN3V.mjs.map +7 -0
- package/dist/js/chunks/chunk-AI73GJKG.mjs +28 -0
- package/dist/js/chunks/chunk-AI73GJKG.mjs.map +7 -0
- package/dist/js/chunks/{chunk-NS2UMNZV.mjs → chunk-ANKFWNWT.mjs} +21 -45
- package/dist/js/chunks/chunk-ANKFWNWT.mjs.map +7 -0
- package/dist/js/chunks/{chunk-GIW4K4SE.mjs → chunk-B7DQFHA5.mjs} +37 -53
- package/dist/js/chunks/chunk-B7DQFHA5.mjs.map +7 -0
- package/dist/js/chunks/chunk-BIGU5RCJ.mjs +153 -0
- package/dist/js/chunks/chunk-BIGU5RCJ.mjs.map +7 -0
- package/dist/js/chunks/{chunk-GUB3TNO2.mjs → chunk-BPF3I2MN.mjs} +109 -27
- package/dist/js/chunks/chunk-BPF3I2MN.mjs.map +7 -0
- package/dist/js/chunks/chunk-CMGXGYUC.mjs +74 -0
- package/dist/js/chunks/chunk-CMGXGYUC.mjs.map +7 -0
- package/dist/js/chunks/{chunk-JIDMQGK6.mjs → chunk-CSYWKEK3.mjs} +322 -223
- package/dist/js/chunks/chunk-CSYWKEK3.mjs.map +7 -0
- package/dist/js/chunks/chunk-CZSQHXEV.mjs +227 -0
- package/dist/js/chunks/chunk-CZSQHXEV.mjs.map +7 -0
- package/dist/js/chunks/chunk-DZYVU75J.mjs +121 -0
- package/dist/js/chunks/chunk-DZYVU75J.mjs.map +7 -0
- package/dist/js/chunks/{chunk-QDAL4IYN.mjs → chunk-EC26RU2D.mjs} +11 -29
- package/dist/js/chunks/chunk-EC26RU2D.mjs.map +7 -0
- package/dist/js/chunks/{chunk-3GVFZ4XO.mjs → chunk-EVCVFEV3.mjs} +238 -152
- package/dist/js/chunks/chunk-EVCVFEV3.mjs.map +7 -0
- package/dist/js/chunks/chunk-FCNF4GRJ.mjs +445 -0
- package/dist/js/chunks/chunk-FCNF4GRJ.mjs.map +7 -0
- package/dist/js/chunks/chunk-GCWWEZKO.mjs +342 -0
- package/dist/js/chunks/chunk-GCWWEZKO.mjs.map +7 -0
- package/dist/js/chunks/chunk-GNRSYMVH.mjs +1 -0
- package/dist/js/chunks/chunk-GVZQH2H5.mjs +54 -0
- package/dist/js/chunks/chunk-GVZQH2H5.mjs.map +7 -0
- package/dist/js/chunks/chunk-GWZ76SR4.mjs +435 -0
- package/dist/js/chunks/chunk-GWZ76SR4.mjs.map +7 -0
- package/dist/js/chunks/{chunk-ZAS25YFD.mjs → chunk-ILDRRG7T.mjs} +21 -23
- package/dist/js/chunks/chunk-ILDRRG7T.mjs.map +7 -0
- package/dist/js/chunks/chunk-INLZWHLY.mjs +80 -0
- package/dist/js/chunks/chunk-INLZWHLY.mjs.map +7 -0
- package/dist/js/chunks/chunk-JUKBBN6P.mjs +175 -0
- package/dist/js/chunks/chunk-JUKBBN6P.mjs.map +7 -0
- package/dist/js/chunks/chunk-KYIEG4U3.mjs +730 -0
- package/dist/js/chunks/chunk-KYIEG4U3.mjs.map +7 -0
- package/dist/js/chunks/{chunk-KHV6DZXX.mjs → chunk-KZPSAXIU.mjs} +156 -46
- package/dist/js/chunks/chunk-KZPSAXIU.mjs.map +7 -0
- package/dist/js/chunks/chunk-LDXCC2L3.mjs +438 -0
- package/dist/js/chunks/chunk-LDXCC2L3.mjs.map +7 -0
- package/dist/js/chunks/chunk-NAC72P7R.mjs +137 -0
- package/dist/js/chunks/chunk-NAC72P7R.mjs.map +7 -0
- package/dist/js/chunks/chunk-NBJAUGPP.mjs +244 -0
- package/dist/js/chunks/chunk-NBJAUGPP.mjs.map +7 -0
- package/dist/js/chunks/chunk-NNHVANQA.mjs +113 -0
- package/dist/js/chunks/chunk-NNHVANQA.mjs.map +7 -0
- package/dist/js/chunks/chunk-NVQ5EHCU.mjs +376 -0
- package/dist/js/chunks/chunk-NVQ5EHCU.mjs.map +7 -0
- package/dist/js/chunks/{chunk-Z2NRKI7R.mjs → chunk-OP43LLIC.mjs} +44 -73
- package/dist/js/chunks/chunk-OP43LLIC.mjs.map +7 -0
- package/dist/js/chunks/chunk-OUCHKSAW.mjs +63 -0
- package/dist/js/chunks/chunk-OUCHKSAW.mjs.map +7 -0
- package/dist/js/chunks/{chunk-PM655FXL.mjs → chunk-OYNUDOHR.mjs} +20 -48
- package/dist/js/chunks/chunk-OYNUDOHR.mjs.map +7 -0
- package/dist/js/chunks/{chunk-UEZUJQ66.mjs → chunk-P6DRQ6KS.mjs} +36 -31
- package/dist/js/chunks/chunk-P6DRQ6KS.mjs.map +7 -0
- package/dist/js/chunks/chunk-PA7NU5AK.mjs +99 -0
- package/dist/js/chunks/chunk-PA7NU5AK.mjs.map +7 -0
- package/dist/js/chunks/chunk-QACZ6TUP.mjs +224 -0
- package/dist/js/chunks/chunk-QACZ6TUP.mjs.map +7 -0
- package/dist/js/chunks/{chunk-5HQSGDZ5.mjs → chunk-QXKWVHBD.mjs} +286 -203
- package/dist/js/chunks/chunk-QXKWVHBD.mjs.map +7 -0
- package/dist/js/chunks/{chunk-DAIU5SLG.mjs → chunk-ROH2HDB4.mjs} +7 -6
- package/dist/js/chunks/chunk-ROH2HDB4.mjs.map +7 -0
- package/dist/js/chunks/chunk-S23RJ3XY.mjs +86 -0
- package/dist/js/chunks/chunk-S23RJ3XY.mjs.map +7 -0
- package/dist/js/chunks/{chunk-FS7XY3HT.mjs → chunk-SPPHF7YZ.mjs} +36 -29
- package/dist/js/chunks/chunk-SPPHF7YZ.mjs.map +7 -0
- package/dist/js/chunks/chunk-T3BNSRP3.mjs +152 -0
- package/dist/js/chunks/chunk-T3BNSRP3.mjs.map +7 -0
- package/dist/js/chunks/chunk-TFABTUAZ.mjs +108 -0
- package/dist/js/chunks/chunk-TFABTUAZ.mjs.map +7 -0
- package/dist/js/chunks/chunk-U4B3VHFS.mjs +507 -0
- package/dist/js/chunks/chunk-U4B3VHFS.mjs.map +7 -0
- package/dist/js/chunks/chunk-UGJHCHXG.mjs +341 -0
- package/dist/js/chunks/chunk-UGJHCHXG.mjs.map +7 -0
- package/dist/js/chunks/chunk-VFV75DHF.mjs +70 -0
- package/dist/js/chunks/chunk-VFV75DHF.mjs.map +7 -0
- package/dist/js/chunks/{chunk-4HZMB7LI.mjs → chunk-VGY4M57S.mjs} +281 -135
- package/dist/js/chunks/chunk-VGY4M57S.mjs.map +7 -0
- package/dist/js/chunks/chunk-VH4BMAZS.mjs +167 -0
- package/dist/js/chunks/chunk-VH4BMAZS.mjs.map +7 -0
- package/dist/js/chunks/chunk-VJVQIXHC.mjs +123 -0
- package/dist/js/chunks/chunk-VJVQIXHC.mjs.map +7 -0
- package/dist/js/chunks/{chunk-S3XDFGSZ.mjs → chunk-VMY55K2X.mjs} +92 -141
- package/dist/js/chunks/chunk-VMY55K2X.mjs.map +7 -0
- package/dist/js/chunks/{chunk-UEXCIMJZ.mjs → chunk-VR3L2WN5.mjs} +11 -17
- package/dist/js/chunks/chunk-VR3L2WN5.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-WU7XJ4RR.mjs +450 -0
- package/dist/js/chunks/chunk-WU7XJ4RR.mjs.map +7 -0
- package/dist/js/chunks/chunk-X7SDA2J5.mjs +116 -0
- package/dist/js/chunks/chunk-X7SDA2J5.mjs.map +7 -0
- package/dist/js/chunks/chunk-Y6H2X7ZC.mjs +209 -0
- package/dist/js/chunks/chunk-Y6H2X7ZC.mjs.map +7 -0
- package/dist/js/chunks/chunk-Y6TLRA3U.mjs +129 -0
- package/dist/js/chunks/chunk-Y6TLRA3U.mjs.map +7 -0
- package/dist/js/chunks/chunk-Z4GICXR2.mjs +190 -0
- package/dist/js/chunks/chunk-Z4GICXR2.mjs.map +7 -0
- package/dist/js/chunks/chunk-Z4OARDZ7.mjs +442 -0
- package/dist/js/chunks/chunk-Z4OARDZ7.mjs.map +7 -0
- package/dist/js/chunks/{chunk-MZ6Z24BX.mjs → chunk-ZJNLAGY5.mjs} +19 -34
- package/dist/js/chunks/chunk-ZJNLAGY5.mjs.map +7 -0
- package/dist/js/chunks/chunk-ZKWUWBUB.mjs +81 -0
- package/dist/js/chunks/chunk-ZKWUWBUB.mjs.map +7 -0
- package/dist/js/chunks/chunk-ZM3XBHWV.mjs +746 -0
- package/dist/js/chunks/chunk-ZM3XBHWV.mjs.map +7 -0
- package/dist/js/chunks/chunk-ZO6ZLHFF.mjs +48 -0
- package/dist/js/chunks/chunk-ZO6ZLHFF.mjs.map +7 -0
- package/dist/js/chunks/chunk-ZVLOUDIJ.mjs +251 -0
- package/dist/js/chunks/chunk-ZVLOUDIJ.mjs.map +7 -0
- package/dist/js/expressive.cjs +10333 -4070
- package/dist/js/expressive.cjs.map +4 -4
- package/dist/js/expressive.js +10333 -4070
- package/dist/js/expressive.js.map +4 -4
- package/dist/js/expressive.min.js +23 -25
- package/dist/js/expressive.min.js.map +4 -4
- package/dist/js/expressive.mjs +184 -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 +10 -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 +4 -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 +6 -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 +11 -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 +133 -64
- 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 +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 +29 -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 +59 -40
- 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 +4 -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 +13 -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 +2 -1
- package/dist/js/internal/core/formControl.mjs +12 -0
- package/dist/js/internal/core/formControl.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 +11 -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 +175 -69
- package/dist/types/behaviors/bottomSheets.d.ts +19 -3
- package/dist/types/behaviors/copy.d.ts +18 -0
- package/dist/types/behaviors/dataTables.d.ts +129 -0
- package/dist/types/behaviors/dialogs.d.ts +27 -1
- package/dist/types/behaviors/forms.d.ts +68 -2
- package/dist/types/behaviors/imageCompare.d.ts +12 -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 +51 -0
- package/dist/types/components/appBar.d.ts +5 -6
- package/dist/types/components/autocomplete.d.ts +92 -17
- 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 +9 -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 +65 -19
- package/dist/types/components/colorPicker.d.ts +42 -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 +59 -0
- package/dist/types/components/datepicker.d.ts +59 -36
- package/dist/types/components/expandingCard.d.ts +6 -6
- package/dist/types/components/funnelChart.d.ts +38 -0
- package/dist/types/components/heatmapChart.d.ts +39 -8
- package/dist/types/components/hoverCard.d.ts +58 -0
- package/dist/types/components/index.d.ts +17 -1
- package/dist/types/components/inputMask.d.ts +30 -0
- package/dist/types/components/keypad.d.ts +66 -0
- package/dist/types/components/lightbox.d.ts +17 -25
- package/dist/types/components/lineChart.d.ts +176 -10
- package/dist/types/components/loadingOverlay.d.ts +42 -0
- package/dist/types/components/mapView.d.ts +26 -17
- package/dist/types/components/menu.d.ts +61 -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 +8 -4
- package/dist/types/components/pieChart.d.ts +32 -7
- 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 -8
- package/dist/types/components/registry.d.ts +77 -3
- package/dist/types/components/richTextEditor.d.ts +6 -14
- 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 +43 -30
- package/dist/types/components/showMore.d.ts +51 -0
- package/dist/types/components/slider.d.ts +5 -15
- package/dist/types/components/snackbar.d.ts +62 -0
- package/dist/types/components/swipeActions.d.ts +81 -0
- package/dist/types/components/tabs.d.ts +93 -27
- package/dist/types/components/timepicker.d.ts +114 -20
- package/dist/types/components/tooltip.d.ts +56 -20
- 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 +43 -25
- package/dist/types/core/formControl.d.ts +21 -0
- package/dist/types/core/spring.d.ts +20 -0
- package/dist/types/core/utils.d.ts +85 -72
- package/dist/types/modular.d.ts +33 -1
- package/dist/types/plugins/dockedDisplayPlugin.d.ts +10 -7
- package/dist/types/plugins/modalDisplayPlugin.d.ts +32 -0
- package/package.json +10 -8
- package/src/sass/README.md +27 -18
- package/src/sass/abstracts/_breakpoints.scss +0 -1
- package/src/sass/abstracts/_elevation.scss +13 -7
- package/src/sass/abstracts/_index.scss +1 -0
- package/src/sass/abstracts/_mixins.scss +438 -92
- package/src/sass/abstracts/_spring.scss +63 -0
- package/src/sass/abstracts/_variables.scss +43 -15
- package/src/sass/base/_fonts.scss +61 -48
- package/src/sass/base/_global.scss +105 -34
- package/src/sass/base/_index.scss +3 -1
- 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 +9 -16
- package/src/sass/components/_alert.scss +102 -0
- package/src/sass/components/_aura.scss +8 -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 +7 -13
- package/src/sass/components/_bar-chart.scss +41 -19
- package/src/sass/components/_bottom-sheet.scss +44 -16
- package/src/sass/components/_breadcrumb.scss +8 -1
- package/src/sass/components/_button-groups.scss +44 -89
- package/src/sass/components/_buttons.scss +156 -63
- package/src/sass/components/_calendar.scss +246 -0
- package/src/sass/components/_cards.scss +41 -68
- package/src/sass/components/_carousel.scss +43 -158
- package/src/sass/components/_cascader.scss +142 -0
- package/src/sass/components/_chips.scss +36 -52
- package/src/sass/components/_column-chart.scss +19 -12
- package/src/sass/components/_command-palette.scss +4 -7
- package/src/sass/components/_confetti.scss +0 -2
- package/src/sass/components/_countdown.scss +1 -1
- package/src/sass/components/_data-table.scss +162 -27
- package/src/sass/components/_datepicker.scss +57 -62
- package/src/sass/components/_description-list.scss +85 -0
- package/src/sass/components/_dialog.scss +42 -44
- 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 +20 -9
- package/src/sass/components/_fab-menu.scss +44 -32
- package/src/sass/components/_funnel-chart.scss +124 -0
- package/src/sass/components/_heatmap-chart.scss +113 -24
- package/src/sass/components/_icon-buttons.scss +7 -8
- 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 +21 -0
- package/src/sass/components/_keypad.scss +182 -0
- package/src/sass/components/_kpi.scss +6 -11
- package/src/sass/components/_lightbox.scss +26 -20
- package/src/sass/components/_line-chart.scss +16 -2
- 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 +35 -13
- package/src/sass/components/_marquee.scss +3 -2
- package/src/sass/components/_mega-menu.scss +137 -0
- package/src/sass/components/_menu.scss +159 -182
- package/src/sass/components/_menubar.scss +59 -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 +37 -9
- package/src/sass/components/_modal-display.scss +21 -0
- package/src/sass/components/_navbar.scss +43 -65
- package/src/sass/components/_navigation-bar.scss +15 -77
- package/src/sass/components/_navigation-rail.scss +171 -121
- package/src/sass/components/_org-chart.scss +192 -0
- package/src/sass/components/_page-footer.scss +16 -13
- package/src/sass/components/_pagination.scss +6 -13
- package/src/sass/components/_panes.scss +33 -31
- package/src/sass/components/_particles.scss +0 -2
- package/src/sass/components/_pie-chart.scss +91 -11
- package/src/sass/components/_popover.scss +18 -5
- package/src/sass/components/_progress.scss +158 -35
- 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 +38 -10
- package/src/sass/components/_radial-chart.scss +113 -5
- package/src/sass/components/_rich-text-editor.scss +2 -2
- package/src/sass/components/_sankey-chart.scss +114 -0
- package/src/sass/components/_scatter-chart.scss +153 -0
- package/src/sass/components/_scrim.scss +0 -2
- package/src/sass/components/_scrollspy.scss +0 -2
- package/src/sass/components/_search.scss +26 -22
- package/src/sass/components/_show-more.scss +8 -0
- package/src/sass/components/_side-sheet.scss +23 -40
- package/src/sass/components/_skeleton.scss +2 -4
- package/src/sass/components/_snackbar.scss +27 -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 -5
- package/src/sass/components/_swipe-actions.scss +71 -0
- package/src/sass/components/_tabs.scss +51 -32
- package/src/sass/components/_timeline.scss +12 -12
- package/src/sass/components/_timepicker.scss +111 -112
- package/src/sass/components/_toolbar.scss +35 -47
- package/src/sass/components/_tooltip.scss +21 -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 +3 -16
- package/src/sass/components/_treemap-chart.scss +122 -0
- package/src/sass/components/forms/_checkboxes.scss +140 -86
- 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 +15 -9
- package/src/sass/components/forms/_fieldset.scss +10 -10
- package/src/sass/components/forms/_file-input.scss +6 -9
- package/src/sass/components/forms/_index.scss +3 -1
- package/src/sass/components/forms/_input-fields.scss +254 -90
- package/src/sass/components/forms/_radio-buttons.scss +40 -127
- package/src/sass/components/forms/_rating.scss +2 -32
- package/src/sass/components/forms/_select.scss +199 -23
- package/src/sass/components/forms/_slider.scss +140 -330
- package/src/sass/components/forms/_switches.scss +53 -164
- 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 +2 -4
- package/src/sass/tokens/_theme.scss +11 -2
- package/src/sass/tokens/_vibrant.scss +2 -5
- package/src/sass/utilities/_colors.scss +6 -1
- package/src/sass/utilities/_defer-render.scss +17 -0
- package/src/sass/utilities/_helpers.scss +183 -26
- package/src/sass/utilities/_index.scss +2 -1
- 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 +47 -76
- package/src/sass/utilities/_z-depth.scss +7 -4
- package/dist/js/chunks/chunk-3DHK5CZU.mjs.map +0 -7
- package/dist/js/chunks/chunk-3GVFZ4XO.mjs.map +0 -7
- package/dist/js/chunks/chunk-4HZMB7LI.mjs.map +0 -7
- package/dist/js/chunks/chunk-4KMNFIFZ.mjs +0 -270
- package/dist/js/chunks/chunk-4KMNFIFZ.mjs.map +0 -7
- package/dist/js/chunks/chunk-4TKTLGEM.mjs.map +0 -7
- package/dist/js/chunks/chunk-5BKHWHYY.mjs +0 -292
- package/dist/js/chunks/chunk-5BKHWHYY.mjs.map +0 -7
- package/dist/js/chunks/chunk-5HQSGDZ5.mjs.map +0 -7
- package/dist/js/chunks/chunk-6N2XAEFK.mjs +0 -125
- package/dist/js/chunks/chunk-6N2XAEFK.mjs.map +0 -7
- package/dist/js/chunks/chunk-A7ALMYUR.mjs.map +0 -7
- package/dist/js/chunks/chunk-BG6ZRB5H.mjs.map +0 -7
- package/dist/js/chunks/chunk-CUQPB25U.mjs +0 -55
- package/dist/js/chunks/chunk-CUQPB25U.mjs.map +0 -7
- package/dist/js/chunks/chunk-DAIU5SLG.mjs.map +0 -7
- package/dist/js/chunks/chunk-FS7XY3HT.mjs.map +0 -7
- package/dist/js/chunks/chunk-GIW4K4SE.mjs.map +0 -7
- package/dist/js/chunks/chunk-GUB3TNO2.mjs.map +0 -7
- package/dist/js/chunks/chunk-GVGT6MIU.mjs.map +0 -7
- package/dist/js/chunks/chunk-GZKEFWPM.mjs +0 -181
- package/dist/js/chunks/chunk-GZKEFWPM.mjs.map +0 -7
- package/dist/js/chunks/chunk-HKT2S7VM.mjs +0 -48
- package/dist/js/chunks/chunk-HKT2S7VM.mjs.map +0 -7
- package/dist/js/chunks/chunk-ILP3PDTL.mjs +0 -187
- package/dist/js/chunks/chunk-ILP3PDTL.mjs.map +0 -7
- package/dist/js/chunks/chunk-JIDMQGK6.mjs.map +0 -7
- package/dist/js/chunks/chunk-KBNN3QDH.mjs +0 -7
- package/dist/js/chunks/chunk-KBNN3QDH.mjs.map +0 -7
- package/dist/js/chunks/chunk-KHV6DZXX.mjs.map +0 -7
- package/dist/js/chunks/chunk-KY6U46SM.mjs +0 -345
- package/dist/js/chunks/chunk-KY6U46SM.mjs.map +0 -7
- package/dist/js/chunks/chunk-LRZMJZ3T.mjs +0 -291
- package/dist/js/chunks/chunk-LRZMJZ3T.mjs.map +0 -7
- package/dist/js/chunks/chunk-LTWPGFBR.mjs +0 -59
- package/dist/js/chunks/chunk-LTWPGFBR.mjs.map +0 -7
- package/dist/js/chunks/chunk-MNPROCZF.mjs +0 -328
- package/dist/js/chunks/chunk-MNPROCZF.mjs.map +0 -7
- package/dist/js/chunks/chunk-MZ6Z24BX.mjs.map +0 -7
- package/dist/js/chunks/chunk-NS2UMNZV.mjs.map +0 -7
- package/dist/js/chunks/chunk-O5XPWXIQ.mjs +0 -406
- package/dist/js/chunks/chunk-O5XPWXIQ.mjs.map +0 -7
- package/dist/js/chunks/chunk-PM655FXL.mjs.map +0 -7
- package/dist/js/chunks/chunk-QDAL4IYN.mjs.map +0 -7
- package/dist/js/chunks/chunk-QERLECVU.mjs +0 -572
- package/dist/js/chunks/chunk-QERLECVU.mjs.map +0 -7
- package/dist/js/chunks/chunk-QJABDLSD.mjs +0 -112
- package/dist/js/chunks/chunk-QJABDLSD.mjs.map +0 -7
- package/dist/js/chunks/chunk-RHRQKTTX.mjs +0 -139
- package/dist/js/chunks/chunk-RHRQKTTX.mjs.map +0 -7
- package/dist/js/chunks/chunk-S3XDFGSZ.mjs.map +0 -7
- package/dist/js/chunks/chunk-SPETGK25.mjs +0 -59
- package/dist/js/chunks/chunk-SPETGK25.mjs.map +0 -7
- package/dist/js/chunks/chunk-TBM3FT7G.mjs.map +0 -7
- package/dist/js/chunks/chunk-UEXCIMJZ.mjs.map +0 -7
- package/dist/js/chunks/chunk-UEZUJQ66.mjs.map +0 -7
- package/dist/js/chunks/chunk-VGZSAFTX.mjs +0 -173
- package/dist/js/chunks/chunk-VGZSAFTX.mjs.map +0 -7
- package/dist/js/chunks/chunk-X7OCHZVF.mjs +0 -76
- package/dist/js/chunks/chunk-X7OCHZVF.mjs.map +0 -7
- package/dist/js/chunks/chunk-YDCS5S3J.mjs.map +0 -7
- package/dist/js/chunks/chunk-YMSXJON6.mjs +0 -79
- package/dist/js/chunks/chunk-YMSXJON6.mjs.map +0 -7
- package/dist/js/chunks/chunk-Z2NRKI7R.mjs.map +0 -7
- package/dist/js/chunks/chunk-ZAS25YFD.mjs.map +0 -7
- package/dist/js/chunks/chunk-ZKZKNSLC.mjs +0 -1
- /package/dist/js/chunks/{chunk-ZKZKNSLC.mjs.map → chunk-GNRSYMVH.mjs.map} +0 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SwipeActions
|
|
3
|
+
} from "./chunk-Y6H2X7ZC.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Tabs
|
|
6
|
+
} from "./chunk-LDXCC2L3.mjs";
|
|
7
|
+
import {
|
|
8
|
+
Timepicker
|
|
9
|
+
} from "./chunk-KYIEG4U3.mjs";
|
|
10
|
+
import {
|
|
11
|
+
Tooltip
|
|
12
|
+
} from "./chunk-FCNF4GRJ.mjs";
|
|
13
|
+
import {
|
|
14
|
+
TreeSelect
|
|
15
|
+
} from "./chunk-GCWWEZKO.mjs";
|
|
16
|
+
import {
|
|
17
|
+
TreemapChart
|
|
18
|
+
} from "./chunk-VH4BMAZS.mjs";
|
|
19
|
+
import {
|
|
20
|
+
SankeyChart
|
|
21
|
+
} from "./chunk-CZSQHXEV.mjs";
|
|
22
|
+
import {
|
|
23
|
+
ScatterChart
|
|
24
|
+
} from "./chunk-752ADW4M.mjs";
|
|
25
|
+
import {
|
|
26
|
+
ScrollSpy
|
|
27
|
+
} from "./chunk-ZJNLAGY5.mjs";
|
|
28
|
+
import {
|
|
29
|
+
ShowMore
|
|
30
|
+
} from "./chunk-X7SDA2J5.mjs";
|
|
31
|
+
import {
|
|
32
|
+
NavigationRail
|
|
33
|
+
} from "./chunk-Z4GICXR2.mjs";
|
|
34
|
+
import {
|
|
35
|
+
Particles
|
|
36
|
+
} from "./chunk-5KIHWJI2.mjs";
|
|
37
|
+
import {
|
|
38
|
+
PieChart
|
|
39
|
+
} from "./chunk-NBJAUGPP.mjs";
|
|
40
|
+
import {
|
|
41
|
+
PullToRefresh
|
|
42
|
+
} from "./chunk-T3BNSRP3.mjs";
|
|
43
|
+
import {
|
|
44
|
+
Questionnaire
|
|
45
|
+
} from "./chunk-GWZ76SR4.mjs";
|
|
46
|
+
import {
|
|
47
|
+
RadarChart
|
|
48
|
+
} from "./chunk-6FSEUFVW.mjs";
|
|
49
|
+
import {
|
|
50
|
+
RadialChart
|
|
51
|
+
} from "./chunk-7YQBHTK3.mjs";
|
|
52
|
+
import {
|
|
53
|
+
Lightbox
|
|
54
|
+
} from "./chunk-VMY55K2X.mjs";
|
|
55
|
+
import {
|
|
56
|
+
LoadingOverlay
|
|
57
|
+
} from "./chunk-4EWGD4V2.mjs";
|
|
58
|
+
import {
|
|
59
|
+
Menubar
|
|
60
|
+
} from "./chunk-2RLBDFH4.mjs";
|
|
61
|
+
import {
|
|
62
|
+
MessageScroller
|
|
63
|
+
} from "./chunk-ANKFWNWT.mjs";
|
|
64
|
+
import {
|
|
65
|
+
MixedChart
|
|
66
|
+
} from "./chunk-VFV75DHF.mjs";
|
|
67
|
+
import {
|
|
68
|
+
Datepicker
|
|
69
|
+
} from "./chunk-QXKWVHBD.mjs";
|
|
70
|
+
import {
|
|
71
|
+
FormSelect
|
|
72
|
+
} from "./chunk-EVCVFEV3.mjs";
|
|
73
|
+
import {
|
|
74
|
+
EXPANDING_CARD_SELECTOR,
|
|
75
|
+
ExpandingCard
|
|
76
|
+
} from "./chunk-OP43LLIC.mjs";
|
|
77
|
+
import {
|
|
78
|
+
FunnelChart
|
|
79
|
+
} from "./chunk-S23RJ3XY.mjs";
|
|
80
|
+
import {
|
|
81
|
+
HeatmapChart
|
|
82
|
+
} from "./chunk-BPF3I2MN.mjs";
|
|
83
|
+
import {
|
|
84
|
+
HoverCard
|
|
85
|
+
} from "./chunk-BIGU5RCJ.mjs";
|
|
86
|
+
import {
|
|
87
|
+
InputMask
|
|
88
|
+
} from "./chunk-VJVQIXHC.mjs";
|
|
89
|
+
import {
|
|
90
|
+
Keypad
|
|
91
|
+
} from "./chunk-QACZ6TUP.mjs";
|
|
92
|
+
import {
|
|
93
|
+
Cascader
|
|
94
|
+
} from "./chunk-NVQ5EHCU.mjs";
|
|
95
|
+
import {
|
|
96
|
+
Chips
|
|
97
|
+
} from "./chunk-WU7XJ4RR.mjs";
|
|
98
|
+
import {
|
|
99
|
+
ColorPicker
|
|
100
|
+
} from "./chunk-2CS6TITK.mjs";
|
|
101
|
+
import {
|
|
102
|
+
CommandPalette
|
|
103
|
+
} from "./chunk-4TRZ2AER.mjs";
|
|
104
|
+
import {
|
|
105
|
+
Confetti
|
|
106
|
+
} from "./chunk-VR3L2WN5.mjs";
|
|
107
|
+
import {
|
|
108
|
+
CurrencyInput
|
|
109
|
+
} from "./chunk-Y6TLRA3U.mjs";
|
|
110
|
+
import {
|
|
111
|
+
AppBar
|
|
112
|
+
} from "./chunk-P6DRQ6KS.mjs";
|
|
113
|
+
import {
|
|
114
|
+
Autocomplete
|
|
115
|
+
} from "./chunk-VGY4M57S.mjs";
|
|
116
|
+
import {
|
|
117
|
+
Menu
|
|
118
|
+
} from "./chunk-CSYWKEK3.mjs";
|
|
119
|
+
import {
|
|
120
|
+
BackToTop
|
|
121
|
+
} from "./chunk-NNHVANQA.mjs";
|
|
122
|
+
import {
|
|
123
|
+
BarChart
|
|
124
|
+
} from "./chunk-75E5EDJF.mjs";
|
|
125
|
+
import {
|
|
126
|
+
ColumnChart
|
|
127
|
+
} from "./chunk-PA7NU5AK.mjs";
|
|
128
|
+
import {
|
|
129
|
+
ButtonGroup
|
|
130
|
+
} from "./chunk-67ZPPKXS.mjs";
|
|
131
|
+
import {
|
|
132
|
+
FloatingActionButton
|
|
133
|
+
} from "./chunk-ILDRRG7T.mjs";
|
|
134
|
+
import {
|
|
135
|
+
CARDS_SELECTOR,
|
|
136
|
+
Cards,
|
|
137
|
+
isCardReveal
|
|
138
|
+
} from "./chunk-OYNUDOHR.mjs";
|
|
139
|
+
import {
|
|
140
|
+
Carousel
|
|
141
|
+
} from "./chunk-4QUCNFSD.mjs";
|
|
142
|
+
import {
|
|
143
|
+
LineChart
|
|
144
|
+
} from "./chunk-ZM3XBHWV.mjs";
|
|
145
|
+
|
|
146
|
+
// src/ts/components/registry.ts
|
|
147
|
+
var AUTO_INIT_COMPONENTS = {
|
|
148
|
+
AppBar: {
|
|
149
|
+
component: AppBar,
|
|
150
|
+
selector: "header.medium, header.large, header:has(> :is(nav:not(.tabs, .navigation-bar, .navigation-rail), .bar) > .search-bar)"
|
|
151
|
+
},
|
|
152
|
+
Autocomplete: {
|
|
153
|
+
component: Autocomplete,
|
|
154
|
+
selector: ".autocomplete"
|
|
155
|
+
},
|
|
156
|
+
ButtonGroup: {
|
|
157
|
+
component: ButtonGroup,
|
|
158
|
+
selector: ".button-group"
|
|
159
|
+
},
|
|
160
|
+
// Shared with Cards.Init() - see CARDS_SELECTOR. This entry used to read
|
|
161
|
+
// '.cards', which no card markup uses.
|
|
162
|
+
Cards: { component: Cards, selector: CARDS_SELECTOR, filter: isCardReveal },
|
|
163
|
+
ExpandingCard: {
|
|
164
|
+
component: ExpandingCard,
|
|
165
|
+
selector: EXPANDING_CARD_SELECTOR
|
|
166
|
+
},
|
|
167
|
+
Carousel: { component: Carousel, selector: ".carousel" },
|
|
168
|
+
Chips: { component: Chips, selector: ".chips" },
|
|
169
|
+
Confetti: { component: Confetti, selector: ".confetti" },
|
|
170
|
+
Particles: { component: Particles, selector: "canvas.particles" },
|
|
171
|
+
Keypad: { component: Keypad, selector: ".keypad, .keyboard" },
|
|
172
|
+
ColorPicker: { component: ColorPicker, selector: ".color-picker" },
|
|
173
|
+
ColumnChart: { component: ColumnChart, selector: ".column-chart" },
|
|
174
|
+
BarChart: { component: BarChart, selector: ".bar-chart" },
|
|
175
|
+
PieChart: { component: PieChart, selector: ".pie-chart" },
|
|
176
|
+
HeatmapChart: { component: HeatmapChart, selector: ".heatmap-chart" },
|
|
177
|
+
RadarChart: { component: RadarChart, selector: ".radar-chart" },
|
|
178
|
+
RadialChart: { component: RadialChart, selector: ".radial-chart" },
|
|
179
|
+
MixedChart: { component: MixedChart, selector: ".mixed-chart" },
|
|
180
|
+
ScatterChart: { component: ScatterChart, selector: ".scatter-chart" },
|
|
181
|
+
FunnelChart: { component: FunnelChart, selector: ".funnel-chart" },
|
|
182
|
+
SankeyChart: { component: SankeyChart, selector: ".sankey-chart" },
|
|
183
|
+
TreemapChart: { component: TreemapChart, selector: ".treemap-chart" },
|
|
184
|
+
CommandPalette: {
|
|
185
|
+
component: CommandPalette,
|
|
186
|
+
selector: "dialog.command-palette"
|
|
187
|
+
},
|
|
188
|
+
Questionnaire: {
|
|
189
|
+
component: Questionnaire,
|
|
190
|
+
selector: "form.questionnaire"
|
|
191
|
+
},
|
|
192
|
+
Datepicker: {
|
|
193
|
+
component: Datepicker,
|
|
194
|
+
selector: ".date-picker"
|
|
195
|
+
},
|
|
196
|
+
LineChart: { component: LineChart, selector: ".line-chart" },
|
|
197
|
+
Menu: { component: Menu, selector: ".menu-trigger" },
|
|
198
|
+
MessageScroller: {
|
|
199
|
+
component: MessageScroller,
|
|
200
|
+
selector: ".message-scroller"
|
|
201
|
+
},
|
|
202
|
+
PullToRefresh: { component: PullToRefresh, selector: ".pull-to-refresh" },
|
|
203
|
+
LoadingOverlay: { component: LoadingOverlay, selector: ".loading-overlay" },
|
|
204
|
+
SwipeActions: { component: SwipeActions, selector: ".list.swipeable" },
|
|
205
|
+
// Only the input types with a caret: setSelectionRange() throws on the rest.
|
|
206
|
+
InputMask: {
|
|
207
|
+
component: InputMask,
|
|
208
|
+
selector: 'input[data-mask]:is(:not([type]), [type="text" i], [type="tel" i], [type="search" i], [type="url" i], [type="password" i])'
|
|
209
|
+
},
|
|
210
|
+
ShowMore: { component: ShowMore, selector: ".show-more" },
|
|
211
|
+
// Only a text input can hold the formatted amount.
|
|
212
|
+
CurrencyInput: { component: CurrencyInput, selector: 'input[data-currency]:is(:not([type]), [type="text" i])' },
|
|
213
|
+
Lightbox: { component: Lightbox, selector: ".lightboxed" },
|
|
214
|
+
ScrollSpy: { component: ScrollSpy, selector: ".scrollspy" },
|
|
215
|
+
BackToTop: { component: BackToTop, selector: ".back-to-top" },
|
|
216
|
+
// A data-tree select is a tree select, not a flat one.
|
|
217
|
+
FormSelect: { component: FormSelect, selector: "select:not([data-tree])" },
|
|
218
|
+
TreeSelect: { component: TreeSelect, selector: "select[data-tree]" },
|
|
219
|
+
Cascader: { component: Cascader, selector: ".cascader" },
|
|
220
|
+
NavigationRail: {
|
|
221
|
+
component: NavigationRail,
|
|
222
|
+
selector: ".navigation-rail"
|
|
223
|
+
},
|
|
224
|
+
Tabs: { component: Tabs, selector: ".tabs" },
|
|
225
|
+
Timepicker: {
|
|
226
|
+
component: Timepicker,
|
|
227
|
+
selector: ".time-picker"
|
|
228
|
+
},
|
|
229
|
+
Tooltip: { component: Tooltip, selector: ".tooltipped" },
|
|
230
|
+
HoverCard: { component: HoverCard, selector: ".hover-card-trigger" },
|
|
231
|
+
FloatingActionButton: {
|
|
232
|
+
component: FloatingActionButton,
|
|
233
|
+
selector: ".fab-menu"
|
|
234
|
+
},
|
|
235
|
+
// After Menu, so the bar's own menu options replace AutoInit's defaults.
|
|
236
|
+
Menubar: { component: Menubar, selector: ".menubar" }
|
|
237
|
+
};
|
|
238
|
+
var MARKUP_BLOCKED = /* @__PURE__ */ new Set(["allowUnsafeHTML", "minYear", "maxYear", "data"]);
|
|
239
|
+
var OBJECT = "[object Object]";
|
|
240
|
+
var ARRAY = "[object Array]";
|
|
241
|
+
var SETTABLE = /* @__PURE__ */ new Set(["[object String]", "[object Number]", "[object Boolean]", ARRAY, OBJECT]);
|
|
242
|
+
var optionsAttribute = (name) => `data-${name.replace(/\B[A-Z]/g, "-$&").toLowerCase()}-options`;
|
|
243
|
+
function kind(value) {
|
|
244
|
+
const tag = Object.prototype.toString.call(value);
|
|
245
|
+
return tag === OBJECT && Object.getPrototypeOf(value) !== Object.prototype ? "other" : tag;
|
|
246
|
+
}
|
|
247
|
+
var itemsMatch = (fallback, value) => !fallback.length || value.every((item) => kind(item) === kind(fallback[0]));
|
|
248
|
+
function sameKind(fallback, value) {
|
|
249
|
+
const type = kind(fallback);
|
|
250
|
+
if (!SETTABLE.has(type) || kind(value) !== type) return false;
|
|
251
|
+
return type !== ARRAY || itemsMatch(fallback, value);
|
|
252
|
+
}
|
|
253
|
+
var accepts = (defaults, key, value) => Object.hasOwn(defaults, key) && !MARKUP_BLOCKED.has(key) && sameKind(defaults[key], value);
|
|
254
|
+
var reject = (rejected, key) => void rejected.push(key);
|
|
255
|
+
function nested(value, fallback, rejected, path) {
|
|
256
|
+
if (kind(value) !== OBJECT) return value;
|
|
257
|
+
const count = rejected.length;
|
|
258
|
+
const picked = pick(value, fallback, rejected, path);
|
|
259
|
+
return rejected.length === count ? picked : void 0;
|
|
260
|
+
}
|
|
261
|
+
function pick(parsed, defaults, rejected, path = "") {
|
|
262
|
+
const picked = {};
|
|
263
|
+
for (const [key, value] of Object.entries(parsed)) {
|
|
264
|
+
const kept = accepts(defaults, key, value) ? nested(value, defaults[key], rejected, `${path}${key}.`) : reject(rejected, path + key);
|
|
265
|
+
if (kept !== void 0) picked[key] = kept;
|
|
266
|
+
}
|
|
267
|
+
return picked;
|
|
268
|
+
}
|
|
269
|
+
function parseObject(text) {
|
|
270
|
+
try {
|
|
271
|
+
const value = JSON.parse(text);
|
|
272
|
+
return kind(value) === OBJECT ? value : null;
|
|
273
|
+
} catch {
|
|
274
|
+
return null;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
function markupOptions(el, name, defaults) {
|
|
278
|
+
const attribute = optionsAttribute(name);
|
|
279
|
+
const text = el.getAttribute(attribute);
|
|
280
|
+
if (text === null) return {};
|
|
281
|
+
const parsed = parseObject(text);
|
|
282
|
+
if (!parsed) {
|
|
283
|
+
console.warn(`${name} ignored ${attribute}: expected a JSON object.`, el);
|
|
284
|
+
return {};
|
|
285
|
+
}
|
|
286
|
+
const rejected = [];
|
|
287
|
+
const options = pick(parsed, defaults, rejected);
|
|
288
|
+
rejected.forEach((key) => console.warn(`${name} ignored "${key}" in ${attribute}: markup cannot set that option to that value.`, el));
|
|
289
|
+
return options;
|
|
290
|
+
}
|
|
291
|
+
var entry = (name) => AUTO_INIT_COMPONENTS[name];
|
|
292
|
+
var NAMES = Object.keys(AUTO_INIT_COMPONENTS);
|
|
293
|
+
function initElement(name, el, options = {}) {
|
|
294
|
+
const { component } = entry(name);
|
|
295
|
+
component.init(el, { ...markupOptions(el, name, component.defaults), ...options });
|
|
296
|
+
}
|
|
297
|
+
function claimed(name, root, self = false) {
|
|
298
|
+
const { selector, filter = () => true } = entry(name);
|
|
299
|
+
const query = `:is(${selector}):not(.no-autoinit)`;
|
|
300
|
+
const own = self && root.matches(query) ? [root] : [];
|
|
301
|
+
return [...own, ...root.querySelectorAll(query)].filter(filter);
|
|
302
|
+
}
|
|
303
|
+
function startAdded(node, options) {
|
|
304
|
+
if (node.nodeType !== Node.ELEMENT_NODE) return;
|
|
305
|
+
for (const name of NAMES) {
|
|
306
|
+
claimed(name, node, true).forEach((el) => entry(name).component.getInstance(el) || initElement(name, el, options?.[name]));
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
function stopRemoved(node) {
|
|
310
|
+
if (node.nodeType !== Node.ELEMENT_NODE || node.isConnected) return;
|
|
311
|
+
for (const name of NAMES) {
|
|
312
|
+
claimed(name, node, true).forEach((el) => entry(name).component.getInstance(el)?.destroy());
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
function watch(context, options) {
|
|
316
|
+
const handle = (records) => {
|
|
317
|
+
for (const { addedNodes, removedNodes } of records) {
|
|
318
|
+
removedNodes.forEach(stopRemoved);
|
|
319
|
+
addedNodes.forEach((node) => context.contains(node) && startAdded(node, options));
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
const observer = new MutationObserver(handle);
|
|
323
|
+
observer.observe(context, { childList: true, subtree: true });
|
|
324
|
+
return () => {
|
|
325
|
+
handle(observer.takeRecords());
|
|
326
|
+
observer.disconnect();
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
function AutoInit(context = document.body, options, settings = {}) {
|
|
330
|
+
for (const name of NAMES) {
|
|
331
|
+
claimed(name, context).forEach((el) => initElement(name, el, options?.[name]));
|
|
332
|
+
}
|
|
333
|
+
return settings.watch ? watch(context, options) : () => {
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export {
|
|
338
|
+
AUTO_INIT_COMPONENTS,
|
|
339
|
+
AutoInit
|
|
340
|
+
};
|
|
341
|
+
//# sourceMappingURL=chunk-UGJHCHXG.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/ts/components/registry.ts"],
|
|
4
|
+
"sourcesContent": ["import { InitElements, InitElement } from \"../core/component\";\nimport * as Components from \"./index\";\nimport { CARDS_SELECTOR, isCardReveal } from \"./cards\";\nimport { EXPANDING_CARD_SELECTOR } from \"./expandingCard\";\n\n/**\n * The components `AutoInit()` starts, in initialization order, with the\n * selector each one claims.\n *\n * This table is the single source of truth: the options type below and the\n * init calls in `AutoInit()` are both derived from it, so wiring up a new\n * auto-initialized component means adding one line here (plus its export in\n * ./index.ts) - not four hand-synchronized edits that fail silently when one\n * is forgotten.\n *\n * A component that should only ever be constructed explicitly (Snackbar,\n * CharacterCounter, ...) simply stays out of this table.\n */\nexport const AUTO_INIT_COMPONENTS = {\n AppBar: {\n component: Components.AppBar,\n selector:\n \"header.medium, header.large, header:has(> :is(nav:not(.tabs, .navigation-bar, .navigation-rail), .bar) > .search-bar)\",\n },\n Autocomplete: {\n component: Components.Autocomplete,\n selector: \".autocomplete\",\n },\n ButtonGroup: {\n component: Components.ButtonGroup,\n selector: \".button-group\",\n },\n // Shared with Cards.Init() - see CARDS_SELECTOR. This entry used to read\n // '.cards', which no card markup uses.\n Cards: { component: Components.Cards, selector: CARDS_SELECTOR, filter: isCardReveal },\n ExpandingCard: {\n component: Components.ExpandingCard,\n selector: EXPANDING_CARD_SELECTOR,\n },\n Carousel: { component: Components.Carousel, selector: \".carousel\" },\n Chips: { component: Components.Chips, selector: \".chips\" },\n Confetti: { component: Components.Confetti, selector: \".confetti\" },\n Particles: { component: Components.Particles, selector: \"canvas.particles\" },\n Keypad: { component: Components.Keypad, selector: \".keypad, .keyboard\" },\n ColorPicker: { component: Components.ColorPicker, selector: \".color-picker\" },\n ColumnChart: { component: Components.ColumnChart, selector: \".column-chart\" },\n BarChart: { component: Components.BarChart, selector: \".bar-chart\" },\n PieChart: { component: Components.PieChart, selector: \".pie-chart\" },\n HeatmapChart: { component: Components.HeatmapChart, selector: \".heatmap-chart\" },\n RadarChart: { component: Components.RadarChart, selector: \".radar-chart\" },\n RadialChart: { component: Components.RadialChart, selector: \".radial-chart\" },\n MixedChart: { component: Components.MixedChart, selector: \".mixed-chart\" },\n ScatterChart: { component: Components.ScatterChart, selector: \".scatter-chart\" },\n FunnelChart: { component: Components.FunnelChart, selector: \".funnel-chart\" },\n SankeyChart: { component: Components.SankeyChart, selector: \".sankey-chart\" },\n TreemapChart: { component: Components.TreemapChart, selector: \".treemap-chart\" },\n CommandPalette: {\n component: Components.CommandPalette,\n selector: \"dialog.command-palette\",\n },\n Questionnaire: {\n component: Components.Questionnaire,\n selector: \"form.questionnaire\",\n },\n Datepicker: {\n component: Components.Datepicker,\n selector: \".date-picker\",\n },\n LineChart: { component: Components.LineChart, selector: \".line-chart\" },\n Menu: { component: Components.Menu, selector: \".menu-trigger\" },\n MessageScroller: {\n component: Components.MessageScroller,\n selector: \".message-scroller\",\n },\n PullToRefresh: { component: Components.PullToRefresh, selector: \".pull-to-refresh\" },\n LoadingOverlay: { component: Components.LoadingOverlay, selector: \".loading-overlay\" },\n SwipeActions: { component: Components.SwipeActions, selector: \".list.swipeable\" },\n // Only the input types with a caret: setSelectionRange() throws on the rest.\n InputMask: {\n component: Components.InputMask,\n selector: 'input[data-mask]:is(:not([type]), [type=\"text\" i], [type=\"tel\" i], [type=\"search\" i], [type=\"url\" i], [type=\"password\" i])',\n },\n ShowMore: { component: Components.ShowMore, selector: \".show-more\" },\n // Only a text input can hold the formatted amount.\n CurrencyInput: { component: Components.CurrencyInput, selector: 'input[data-currency]:is(:not([type]), [type=\"text\" i])' },\n Lightbox: { component: Components.Lightbox, selector: \".lightboxed\" },\n ScrollSpy: { component: Components.ScrollSpy, selector: \".scrollspy\" },\n BackToTop: { component: Components.BackToTop, selector: \".back-to-top\" },\n // A data-tree select is a tree select, not a flat one.\n FormSelect: { component: Components.FormSelect, selector: \"select:not([data-tree])\" },\n TreeSelect: { component: Components.TreeSelect, selector: \"select[data-tree]\" },\n Cascader: { component: Components.Cascader, selector: \".cascader\" },\n NavigationRail: {\n component: Components.NavigationRail,\n selector: \".navigation-rail\",\n },\n Tabs: { component: Components.Tabs, selector: \".tabs\" },\n Timepicker: {\n component: Components.Timepicker,\n selector: \".time-picker\",\n },\n Tooltip: { component: Components.Tooltip, selector: \".tooltipped\" },\n HoverCard: { component: Components.HoverCard, selector: \".hover-card-trigger\" },\n FloatingActionButton: {\n component: Components.FloatingActionButton,\n selector: \".fab-menu\",\n },\n // After Menu, so the bar's own menu options replace AutoInit's defaults.\n Menubar: { component: Components.Menubar, selector: \".menubar\" },\n};\n\ntype Registry = typeof AUTO_INIT_COMPONENTS;\n\n/**\n * Per-component options accepted by {@link AutoInit}, derived from the table\n * above - each key takes that component's own options type.\n */\nexport type AutoInitOptions = {\n [K in keyof Registry]?: Partial<\n InstanceType<Registry[K][\"component\"]>[\"options\"]\n >;\n};\n\n/** The shape every entry in the table satisfies; see the cast in AutoInit. */\ntype AutoInitable = {\n defaults: object;\n getInstance(el: Element): { destroy(): void } | undefined;\n init(els: InitElement | InitElements<InitElement>, options: Partial<object>): unknown;\n};\n\ntype AutoInitEntry = {\n component: AutoInitable;\n selector: string;\n filter?: (el: Element) => boolean;\n};\n\n/**\n * Options markup cannot set: `allowUnsafeHTML` turns off HTML escaping,\n * `minYear` and `maxYear` are internal, and Chips and Autocomplete throw\n * part way through their constructors on `data` entries of the wrong shape.\n */\nconst MARKUP_BLOCKED = new Set([\"allowUnsafeHTML\", \"minYear\", \"maxYear\", \"data\"]);\nconst OBJECT = \"[object Object]\";\nconst ARRAY = \"[object Array]\";\n/** The default kinds markup can replace with a value of the same kind. */\nconst SETTABLE = new Set([\"[object String]\", \"[object Number]\", \"[object Boolean]\", ARRAY, OBJECT]);\n\n/** The attribute a component reads its markup options from: `FormSelect` reads `data-form-select-options`. */\nconst optionsAttribute = (name: string) => `data-${name.replace(/\\B[A-Z]/g, \"-$&\").toLowerCase()}-options`;\n\n/** A value's kind as its `toString` tag, with objects that are not plain counted apart. */\nfunction kind(value: unknown) {\n const tag = Object.prototype.toString.call(value);\n return tag === OBJECT && Object.getPrototypeOf(value) !== Object.prototype ? \"other\" : tag;\n}\n\n/** Whether every item has the kind of the default array's first item, when it has one. */\nconst itemsMatch = (fallback: unknown[], value: unknown[]) =>\n !fallback.length || value.every((item) => kind(item) === kind(fallback[0]));\n\n/** Whether a markup value may replace `fallback`: both are the same settable kind. */\nfunction sameKind(fallback: unknown, value: unknown) {\n const type = kind(fallback);\n if (!SETTABLE.has(type) || kind(value) !== type) return false;\n return type !== ARRAY || itemsMatch(fallback as unknown[], value as unknown[]);\n}\n\nconst accepts = (defaults: object, key: string, value: unknown) =>\n Object.hasOwn(defaults, key) && !MARKUP_BLOCKED.has(key) && sameKind(defaults[key], value);\n\n/** Records a rejected key; returns undefined so the key is left out. */\nconst reject = (rejected: string[], key: string) => void rejected.push(key);\n\n/**\n * A plain object filtered against its default object, or undefined once any\n * key inside it is rejected, so the whole option keeps its default. Other\n * values pass through.\n */\nfunction nested(value: unknown, fallback: object, rejected: string[], path: string) {\n if (kind(value) !== OBJECT) return value;\n const count = rejected.length;\n const picked = pick(value as object, fallback, rejected, path);\n return rejected.length === count ? picked : undefined;\n}\n\n/**\n * Copies the entries of `parsed` that `defaults` owns and that keep their\n * default's kind. Only own keys of `defaults` are copied, so `__proto__` never\n * is. Rejected keys go into `rejected`, dotted below the top level.\n */\nfunction pick(parsed: object, defaults: object, rejected: string[], path = \"\"): Record<string, unknown> {\n const picked: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(parsed)) {\n const kept = accepts(defaults, key, value) ? nested(value, defaults[key], rejected, `${path}${key}.`) : reject(rejected, path + key);\n if (kept !== undefined) picked[key] = kept;\n }\n return picked;\n}\n\n/** `text` parsed as a JSON object, or null. */\nfunction parseObject(text: string): object | null {\n try {\n const value: unknown = JSON.parse(text);\n return kind(value) === OBJECT ? (value as object) : null;\n } catch {\n return null;\n }\n}\n\n/**\n * The options an element sets for component `name` in its\n * `data-<name>-options` attribute. The attribute is untrusted: a value that is\n * not valid JSON, not an object, or not the kind of its default is dropped\n * with a warning, so that option keeps its default.\n */\nfunction markupOptions(el: Element, name: string, defaults: object) {\n const attribute = optionsAttribute(name);\n const text = el.getAttribute(attribute);\n if (text === null) return {};\n const parsed = parseObject(text);\n if (!parsed) {\n console.warn(`${name} ignored ${attribute}: expected a JSON object.`, el);\n return {};\n }\n const rejected: string[] = [];\n const options = pick(parsed, defaults, rejected);\n rejected.forEach((key) => console.warn(`${name} ignored \"${key}\" in ${attribute}: markup cannot set that option to that value.`, el));\n return options;\n}\n\n// Each component's static `init` is overloaded; indexing the table widens it\n// to a union TypeScript cannot call, so narrow it once, here.\nconst entry = (name: keyof Registry) => AUTO_INIT_COMPONENTS[name] as unknown as AutoInitEntry;\nconst NAMES = Object.keys(AUTO_INIT_COMPONENTS) as (keyof Registry)[];\n\n/** Starts component `name` on one element, with its markup options under `options`. */\nfunction initElement(name: keyof Registry, el: Element, options: object = {}) {\n const { component } = entry(name);\n component.init(el, { ...markupOptions(el, name, component.defaults), ...options });\n}\n\n/**\n * The elements under `root` that component `name` claims, plus `root` itself\n * when `self` is set. `:is()` so that `:not(.no-autoinit)` applies to the\n * whole selector: a bare `${selector}:not(...)` binds the negation to the last\n * alternative only, which would break the opt-out for any comma-separated\n * entry (Cards is the first).\n */\nfunction claimed(name: keyof Registry, root: ParentNode, self = false): Element[] {\n const { selector, filter = () => true } = entry(name);\n const query = `:is(${selector}):not(.no-autoinit)`;\n const own = self && (root as Element).matches(query) ? [root as Element] : [];\n return [...own, ...root.querySelectorAll(query)].filter(filter);\n}\n\n/** Starts the components an added element and its descendants claim, leaving existing instances alone. */\nfunction startAdded(node: Node, options?: Partial<AutoInitOptions>) {\n if (node.nodeType !== Node.ELEMENT_NODE) return;\n for (const name of NAMES) {\n claimed(name, node as Element, true).forEach((el) => entry(name).component.getInstance(el) || initElement(name, el, options?.[name]));\n }\n}\n\n/**\n * Destroys the instances of a removed element and its descendants that\n * AutoInit would claim. An element that is back in the page by now was moved,\n * and keeps its instances.\n */\nfunction stopRemoved(node: Node) {\n if (node.nodeType !== Node.ELEMENT_NODE || node.isConnected) return;\n for (const name of NAMES) {\n claimed(name, node as Element, true).forEach((el) => entry(name).component.getInstance(el)?.destroy());\n }\n}\n\n/** Watches `context`, starting components in added markup and destroying them in removed markup. */\nfunction watch(context: Node, options?: Partial<AutoInitOptions>) {\n const handle = (records: MutationRecord[]) => {\n for (const { addedNodes, removedNodes } of records) {\n removedNodes.forEach(stopRemoved);\n addedNodes.forEach((node) => context.contains(node) && startAdded(node, options));\n }\n };\n const observer = new MutationObserver(handle);\n observer.observe(context, { childList: true, subtree: true });\n // Handle the changes not delivered yet first, so markup added just before stop() still starts.\n return () => {\n handle(observer.takeRecords());\n observer.disconnect();\n };\n}\n\n/**\n * Automatically initialize components.\n * @param context Root element or shadow root to initialize. Defaults to\n * `document.body`. Shadow roots inside it are not entered.\n * @param options Options for each component.\n * @param settings With `watch: true`, keep starting components in markup\n * added to `context` later, and destroy them when their markup is removed.\n * @returns A function that stops watching. It does nothing without `watch`.\n */\nexport function AutoInit(\n context: HTMLElement | ShadowRoot = document.body,\n options?: Partial<AutoInitOptions>,\n settings: { watch?: boolean } = {},\n): () => void {\n for (const name of NAMES) {\n claimed(name, context).forEach((el) => initElement(name, el, options?.[name]));\n }\n return settings.watch ? watch(context, options) : () => {};\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;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,WAAW;AAChC,iBAAW,QAAQ,CAAC,SAAS,QAAQ,SAAS,IAAI,KAAK,WAAW,MAAM,OAAO,CAAC;AAAA,IAClF;AAAA,EACF;AACA,QAAM,WAAW,IAAI,iBAAiB,MAAM;AAC5C,WAAS,QAAQ,SAAS,EAAE,WAAW,MAAM,SAAS,KAAK,CAAC;AAE5D,SAAO,MAAM;AACX,WAAO,SAAS,YAAY,CAAC;AAC7B,aAAS,WAAW;AAAA,EACtB;AACF;AAWO,SAAS,SACd,UAAoC,SAAS,MAC7C,SACA,WAAgC,CAAC,GACrB;AACZ,aAAW,QAAQ,OAAO;AACxB,YAAQ,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,YAAY,MAAM,IAAI,UAAU,IAAI,CAAC,CAAC;AAAA,EAC/E;AACA,SAAO,SAAS,QAAQ,MAAM,SAAS,OAAO,IAAI,MAAM;AAAA,EAAC;AAC3D;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ColumnChart
|
|
3
|
+
} from "./chunk-PA7NU5AK.mjs";
|
|
4
|
+
import {
|
|
5
|
+
LineChart,
|
|
6
|
+
niceStep,
|
|
7
|
+
steps
|
|
8
|
+
} from "./chunk-ZM3XBHWV.mjs";
|
|
9
|
+
|
|
10
|
+
// src/ts/components/mixedChart.ts
|
|
11
|
+
function fitSteps(min, max, parts) {
|
|
12
|
+
let step = niceStep(max - min, parts);
|
|
13
|
+
while (Math.floor(min / step) * step + parts * step < max) step = niceStep(step * parts * 1.001, parts);
|
|
14
|
+
return [Math.floor(min / step) * step, step];
|
|
15
|
+
}
|
|
16
|
+
var has = (series, name) => series.className.split(/\s+/).includes(name);
|
|
17
|
+
var MixedChart = class extends ColumnChart {
|
|
18
|
+
get _type() {
|
|
19
|
+
return "mixed-chart";
|
|
20
|
+
}
|
|
21
|
+
get _points() {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* With .stacked, the columns on each scale stack on the ones before them;
|
|
26
|
+
* the lines and areas keep their own values.
|
|
27
|
+
*/
|
|
28
|
+
_stack(series) {
|
|
29
|
+
const columns = series.filter((each) => has(each, "column"));
|
|
30
|
+
super._stack(columns.filter((each) => !has(each, "end")));
|
|
31
|
+
super._stack(columns.filter((each) => has(each, "end")));
|
|
32
|
+
}
|
|
33
|
+
/** The start scale, then the end scale; each includes zero if it has columns. */
|
|
34
|
+
_scale(series, min, max) {
|
|
35
|
+
const end = series.filter((each) => has(each, "end"));
|
|
36
|
+
const start = series.filter((each) => !end.includes(each));
|
|
37
|
+
const columns = (list) => list.some((each) => has(each, "column"));
|
|
38
|
+
const endRange = [this._number("endMin"), this._number("endMax")];
|
|
39
|
+
const y = super._scale(start, min, max, columns(start));
|
|
40
|
+
super._scale(end, ...endRange, columns(end));
|
|
41
|
+
if ([min, max, ...endRange].every((value) => value === null)) this._align(start, end);
|
|
42
|
+
return y;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* With .axis, widens the end scale to as many round steps as the start
|
|
46
|
+
* scale has, so its labels fall on the start scale's grid lines.
|
|
47
|
+
*/
|
|
48
|
+
_align(start, end) {
|
|
49
|
+
const parts = start.length ? start[0].scale.ticks.length - 1 : 0;
|
|
50
|
+
if (parts < 1 || !end.length) return;
|
|
51
|
+
const [low, step] = fitSteps(end[0].scale.min, end[0].scale.max, parts);
|
|
52
|
+
const high = low + parts * step;
|
|
53
|
+
this._apply(end, { min: low, max: high, ticks: steps(low, high, step) });
|
|
54
|
+
}
|
|
55
|
+
/** Columns behind, then the lines and areas over them. */
|
|
56
|
+
_draw() {
|
|
57
|
+
const marks = document.createElement("div");
|
|
58
|
+
marks.className = "mixed-chart-marks";
|
|
59
|
+
const columns = super._draw(this.series.filter((series) => has(series, "column")));
|
|
60
|
+
columns.className = "mixed-chart-columns";
|
|
61
|
+
marks.append(columns, LineChart.prototype["_draw"].call(this, this.series.filter((series) => !has(series, "column"))));
|
|
62
|
+
return marks;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
MixedChart.key = "Expressive_MixedChart";
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
MixedChart
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=chunk-VFV75DHF.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/ts/components/mixedChart.ts"],
|
|
4
|
+
"sourcesContent": ["import { ColumnChart } from './columnChart';\nimport { LineChart, LineChartOptions, Series, niceStep, steps } from './lineChart';\n\nexport type MixedChartOptions = LineChartOptions;\n\n/** The low end and round step that cover min to max in exactly `parts` steps. */\nfunction fitSteps(min: number, max: number, parts: number): [low: number, step: number] {\n let step = niceStep(max - min, parts);\n // A floored start can leave the top short; the next round step covers it.\n while (Math.floor(min / step) * step + parts * step < max) step = niceStep(step * parts * 1.001, parts);\n return [Math.floor(min / step) * step, step];\n}\n\n/** Whether a series header cell has a class. */\nconst has = (series: Series, name: string) => series.className.split(/\\s+/).includes(name);\n\n/**\n * Mixed chart. It reads its <table> like LineChart, and draws each series\n * by its header cell's class: `column` as columns from zero, `area` as a\n * line with a fill under it, and anything else as a line. Series with\n * `end` are drawn against a second scale, set by `data-end-min` and\n * `data-end-max`, so values of different sizes or units share the plot.\n * With `stacked` the columns stack; `points` and `straight` apply to the\n * lines as in LineChart.\n *\n * Call `update()` after changing the table, or start it with `watch` or\n * `data-watch`.\n */\nexport class MixedChart extends ColumnChart {\n protected get _type() {\n return 'mixed-chart';\n }\n\n protected get _points() {\n return true;\n }\n\n static key = 'Expressive_MixedChart';\n\n /**\n * With .stacked, the columns on each scale stack on the ones before them;\n * the lines and areas keep their own values.\n */\n protected _stack(series: Series[]) {\n const columns = series.filter((each) => has(each, 'column'));\n super._stack(columns.filter((each) => !has(each, 'end')));\n super._stack(columns.filter((each) => has(each, 'end')));\n }\n\n /** The start scale, then the end scale; each includes zero if it has columns. */\n protected _scale(series: Series[], min: number | null, max: number | null) {\n const end = series.filter((each) => has(each, 'end'));\n const start = series.filter((each) => !end.includes(each));\n const columns = (list: Series[]) => list.some((each) => has(each, 'column'));\n const endRange = [this._number('endMin'), this._number('endMax')] as const;\n const y = super._scale(start, min, max, columns(start));\n super._scale(end, ...endRange, columns(end));\n // Only scales the chart chose itself can stretch to line up.\n if ([min, max, ...endRange].every((value) => value === null)) this._align(start, end);\n return y;\n }\n\n /**\n * With .axis, widens the end scale to as many round steps as the start\n * scale has, so its labels fall on the start scale's grid lines.\n */\n private _align(start: Series[], end: Series[]) {\n const parts = start.length ? start[0].scale.ticks.length - 1 : 0;\n if (parts < 1 || !end.length) return;\n const [low, step] = fitSteps(end[0].scale.min, end[0].scale.max, parts);\n const high = low + parts * step;\n this._apply(end, { min: low, max: high, ticks: steps(low, high, step) });\n }\n\n /** Columns behind, then the lines and areas over them. */\n protected _draw(): Element {\n const marks = document.createElement('div');\n marks.className = 'mixed-chart-marks';\n const columns = super._draw(this.series.filter((series) => has(series, 'column')));\n columns.className = 'mixed-chart-columns';\n marks.append(columns, LineChart.prototype['_draw'].call(this, this.series.filter((series) => !has(series, 'column'))));\n return marks;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAMA,SAAS,SAAS,KAAa,KAAa,OAA4C;AACtF,MAAI,OAAO,SAAS,MAAM,KAAK,KAAK;AAEpC,SAAO,KAAK,MAAM,MAAM,IAAI,IAAI,OAAO,QAAQ,OAAO,IAAK,QAAO,SAAS,OAAO,QAAQ,OAAO,KAAK;AACtG,SAAO,CAAC,KAAK,MAAM,MAAM,IAAI,IAAI,MAAM,IAAI;AAC7C;AAGA,IAAM,MAAM,CAAC,QAAgB,SAAiB,OAAO,UAAU,MAAM,KAAK,EAAE,SAAS,IAAI;AAclF,IAAM,aAAN,cAAyB,YAAY;AAAA,EAC1C,IAAc,QAAQ;AACpB,WAAO;AAAA,EACT;AAAA,EAEA,IAAc,UAAU;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