@cordwainer/cw-elements 1.2.2 → 1.3.0-alpha.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/cdn/chunks/chunk.22CT3NNE.js +24 -0
- package/cdn/chunks/chunk.25KMNMZK.js +11 -0
- package/cdn/chunks/chunk.2NENWIUU.js +11 -0
- package/cdn/chunks/chunk.2RICIUBA.js +11 -0
- package/cdn/chunks/chunk.2ZIRYB3Y.js +25 -0
- package/cdn/chunks/chunk.32LVF3NX.js +25 -0
- package/cdn/chunks/chunk.3HGG6RUA.js +120 -0
- package/cdn/chunks/chunk.3HLPK5O5.js +21 -0
- package/cdn/chunks/chunk.3MKLDNWG.js +11 -0
- package/cdn/chunks/chunk.46UTDLRO.js +27 -0
- package/cdn/chunks/chunk.4D3JC36O.js +11 -0
- package/cdn/chunks/chunk.4L6YA4BS.js +21 -0
- package/cdn/chunks/chunk.4NFOE2PI.js +218 -0
- package/cdn/chunks/chunk.4SC4TGCN.js +969 -0
- package/cdn/chunks/chunk.4UE7HAZW.js +29 -0
- package/cdn/chunks/chunk.4UT3CKES.js +87 -0
- package/cdn/chunks/chunk.52A7UAED.js +24 -0
- package/cdn/chunks/chunk.5FHIO4XA.js +385 -0
- package/cdn/chunks/chunk.5HK7XVCB.js +33 -0
- package/cdn/chunks/chunk.5I5OMI3N.js +11 -0
- package/cdn/chunks/chunk.5WBNCPLC.js +21 -0
- package/cdn/chunks/chunk.65HZIHGQ.js +27 -0
- package/cdn/chunks/chunk.6L4E2FRV.js +135 -0
- package/cdn/chunks/chunk.6M54ME6L.js +11 -0
- package/cdn/chunks/chunk.6MNPBWK5.js +95 -0
- package/cdn/chunks/chunk.6NN4W7MU.js +11 -0
- package/cdn/chunks/chunk.737DQEUX.js +216 -0
- package/cdn/chunks/chunk.7BW7WPEZ.js +11 -0
- package/cdn/chunks/chunk.7HCQTBTI.js +27 -0
- package/cdn/chunks/chunk.7IKCQ65R.js +11 -0
- package/cdn/chunks/chunk.7NUXY2EY.js +28 -0
- package/cdn/chunks/chunk.7PIHS5GL.js +21 -0
- package/cdn/chunks/chunk.7RXKDF4L.js +29 -0
- package/cdn/chunks/chunk.7SVYHQNT.js +236 -0
- package/cdn/chunks/chunk.A2EIYRV7.js +11 -0
- package/cdn/chunks/chunk.A6OFMGC3.js +21 -0
- package/cdn/chunks/chunk.ACCB6NI3.js +11 -0
- package/cdn/chunks/chunk.ACM7MAUS.js +11 -0
- package/cdn/chunks/chunk.ACSSYL4R.js +120 -0
- package/cdn/chunks/chunk.AE7QHBRW.js +49 -0
- package/cdn/chunks/chunk.AIIMDYAE.js +11 -0
- package/cdn/chunks/chunk.AQ7UKAJV.js +1925 -0
- package/cdn/chunks/chunk.AW4UTLG3.js +25 -0
- package/cdn/chunks/chunk.AY5MT3OR.js +367 -0
- package/cdn/chunks/chunk.B4BK3A6X.js +21 -0
- package/cdn/chunks/chunk.B5ZSFAU6.js +11 -0
- package/cdn/chunks/chunk.BI3L4BGR.js +11 -0
- package/cdn/chunks/chunk.BITDDFNS.js +21 -0
- package/cdn/chunks/chunk.BOCPUXU4.js +24 -0
- package/cdn/chunks/chunk.BOZP3WLH.js +11 -0
- package/cdn/chunks/chunk.BRGM4UJQ.js +11 -0
- package/cdn/chunks/chunk.BVMDTNP7.js +27 -0
- package/cdn/chunks/chunk.C7ZSFM4V.js +11 -0
- package/cdn/chunks/chunk.CD2E57CF.js +84 -0
- package/cdn/chunks/chunk.CVC2DMUB.js +724 -0
- package/cdn/chunks/chunk.DF4P6KAE.js +26 -0
- package/cdn/chunks/chunk.DITLZ5KK.js +255 -0
- package/cdn/chunks/chunk.DLVWLMOU.js +11 -0
- package/cdn/chunks/chunk.DZO5S3KM.js +291 -0
- package/cdn/chunks/chunk.E2G7LJZ4.js +24 -0
- package/cdn/chunks/chunk.E5PYVMR5.js +21 -0
- package/cdn/chunks/chunk.EFRG42G4.js +21 -0
- package/cdn/chunks/chunk.EGK3WFML.js +113 -0
- package/cdn/chunks/chunk.EGOMPAI6.js +28 -0
- package/cdn/chunks/chunk.EHNIMAMM.js +11 -0
- package/cdn/chunks/chunk.EIPQNPT2.js +11 -0
- package/cdn/chunks/chunk.EK5IWFN6.js +21 -0
- package/cdn/chunks/chunk.ESY6P4PM.js +11 -0
- package/cdn/chunks/chunk.F6VKIAAB.js +11 -0
- package/cdn/chunks/chunk.FNMITKXM.js +24 -0
- package/cdn/chunks/chunk.G3QUPFQZ.js +11 -0
- package/cdn/chunks/chunk.G6AAWWCJ.js +73 -0
- package/cdn/chunks/chunk.GEJTL6ST.js +122 -0
- package/cdn/chunks/chunk.GMJOFZJP.js +11 -0
- package/cdn/chunks/chunk.GV5OP2HG.js +33 -0
- package/cdn/chunks/chunk.GVDSP2U7.js +28 -0
- package/cdn/chunks/chunk.H4SY37DU.js +103 -0
- package/cdn/chunks/chunk.HDSZV4RM.js +24 -0
- package/cdn/chunks/chunk.HHFV4YKJ.js +279 -0
- package/cdn/chunks/chunk.HIP3MHFF.js +11 -0
- package/cdn/chunks/chunk.HJG3QTYZ.js +186 -0
- package/cdn/chunks/chunk.HMXHEG5B.js +11 -0
- package/cdn/chunks/chunk.I4ZFA2WC.js +11 -0
- package/cdn/chunks/chunk.I7EIBAE5.js +77 -0
- package/cdn/chunks/chunk.IGVDGCCQ.js +21 -0
- package/cdn/chunks/chunk.IIO6C37X.js +11 -0
- package/cdn/chunks/chunk.IJL7SK7X.js +21 -0
- package/cdn/chunks/chunk.IVQY2JPO.js +11 -0
- package/cdn/chunks/chunk.IVWHTOWG.js +21 -0
- package/cdn/chunks/chunk.IWXMLM5A.js +21 -0
- package/cdn/chunks/chunk.IYZV25WR.js +127 -0
- package/cdn/chunks/chunk.JCHF3N6T.js +11 -0
- package/cdn/chunks/chunk.JGHPJ4UU.js +346 -0
- package/cdn/chunks/chunk.JIG2RHZA.js +21 -0
- package/cdn/chunks/chunk.JPIAAJLH.js +11 -0
- package/cdn/chunks/chunk.JSREKKUV.js +29 -0
- package/cdn/chunks/chunk.JV5QRBAT.js +50 -0
- package/cdn/chunks/chunk.K3ZN73C5.js +25 -0
- package/cdn/chunks/chunk.K7HBYHFK.js +11 -0
- package/cdn/chunks/chunk.KEZUFS3Y.js +11 -0
- package/cdn/chunks/chunk.KKA4QL3V.js +24 -0
- package/cdn/chunks/chunk.KMX3WIZX.js +11 -0
- package/cdn/chunks/chunk.KP23WFZN.js +79 -0
- package/cdn/chunks/chunk.KSHDFQ5X.js +391 -0
- package/cdn/chunks/chunk.L2XIF6VQ.js +402 -0
- package/cdn/chunks/chunk.LBYPFP7A.js +26 -0
- package/cdn/chunks/chunk.LEWHPZQJ.js +11 -0
- package/cdn/chunks/chunk.LK73OQE3.js +158 -0
- package/cdn/chunks/chunk.LPSDL2X4.js +11 -0
- package/cdn/chunks/chunk.LQBCYFQZ.js +24 -0
- package/cdn/chunks/chunk.LQWDLVIQ.js +233 -0
- package/cdn/chunks/chunk.MANOJF6Z.js +455 -0
- package/cdn/chunks/chunk.MECD4Z2F.js +26 -0
- package/cdn/chunks/chunk.MKN4I4TZ.js +11 -0
- package/cdn/chunks/chunk.MPENKN44.js +21 -0
- package/cdn/chunks/chunk.N7ZIEEPG.js +21 -0
- package/cdn/chunks/chunk.NHHP7JDV.js +24 -0
- package/cdn/chunks/chunk.NLVJUY52.js +499 -0
- package/cdn/chunks/chunk.NQJEQLSK.js +11 -0
- package/cdn/chunks/chunk.OBNLKHVF.js +24 -0
- package/cdn/chunks/chunk.OOIOK4M5.js +29 -0
- package/cdn/chunks/chunk.OSGEXLYO.js +11 -0
- package/cdn/chunks/chunk.P6D5QHVJ.js +11 -0
- package/cdn/chunks/chunk.PCFUPG3W.js +21 -0
- package/cdn/chunks/chunk.PE36ZBOZ.js +11 -0
- package/cdn/chunks/chunk.PPL67JOV.js +56 -0
- package/cdn/chunks/chunk.PQHYKCLW.js +33 -0
- package/cdn/chunks/chunk.PQIT36YL.js +11 -0
- package/cdn/chunks/chunk.PUISP3Y6.js +11 -0
- package/cdn/chunks/chunk.Q2AH6F2K.js +302 -0
- package/cdn/chunks/chunk.Q5TDIOE2.js +21 -0
- package/cdn/chunks/chunk.QIACIGFY.js +11 -0
- package/cdn/chunks/chunk.QJYHURZU.js +25 -0
- package/cdn/chunks/chunk.QLEQQREQ.js +11 -0
- package/cdn/chunks/chunk.QVD6S2XJ.js +11 -0
- package/cdn/chunks/chunk.QVSQZ2OW.js +297 -0
- package/cdn/chunks/chunk.QYA66GYY.js +21 -0
- package/cdn/chunks/chunk.QZM74RZS.js +21 -0
- package/cdn/chunks/chunk.R44P3COQ.js +292 -0
- package/cdn/chunks/chunk.RCWARHL4.js +63 -0
- package/cdn/chunks/chunk.REY2TH4N.js +114 -0
- package/cdn/chunks/chunk.RFKZXGL6.js +67 -0
- package/cdn/chunks/chunk.RK2NGAHE.js +21 -0
- package/cdn/chunks/chunk.RMZ3GGOD.js +378 -0
- package/cdn/chunks/chunk.RN7BZPQ4.js +44 -0
- package/cdn/chunks/chunk.ROJNY45S.js +904 -0
- package/cdn/chunks/chunk.RREEJWO4.js +267 -0
- package/cdn/chunks/chunk.RSISCJLD.js +42 -0
- package/cdn/chunks/chunk.RXKUDDAG.js +82 -0
- package/cdn/chunks/chunk.RZ5U3IGJ.js +25 -0
- package/cdn/chunks/chunk.S2I7BGKV.js +26 -0
- package/cdn/chunks/chunk.S2U6HXBN.js +11 -0
- package/cdn/chunks/chunk.S5Y5NOSY.js +25 -0
- package/cdn/chunks/chunk.S5ZFA6QJ.js +25 -0
- package/cdn/chunks/chunk.SGU7G5BW.js +24 -0
- package/cdn/chunks/chunk.SNUNWMPG.js +114 -0
- package/cdn/chunks/chunk.SSHVYOP2.js +153 -0
- package/cdn/chunks/chunk.TEMNLUFV.js +11 -0
- package/cdn/chunks/chunk.TYQ7ZMBW.js +24 -0
- package/cdn/chunks/chunk.TZC3IGYM.js +11 -0
- package/cdn/chunks/chunk.U2P5TSSF.js +11 -0
- package/cdn/chunks/chunk.U3HV6M7P.js +11 -0
- package/cdn/chunks/chunk.U3OKBJY3.js +27 -0
- package/cdn/chunks/chunk.UI2YPM4Q.js +11 -0
- package/cdn/chunks/chunk.UJXACBPA.js +11 -0
- package/cdn/chunks/chunk.UQ5DYLJH.js +11 -0
- package/cdn/chunks/chunk.URNAYTVR.js +137 -0
- package/cdn/chunks/chunk.V52Q2FBI.js +28 -0
- package/cdn/chunks/chunk.V7PVKTVW.js +142 -0
- package/cdn/chunks/chunk.VBUKH6YM.js +93 -0
- package/cdn/chunks/chunk.VDHDE7LM.js +205 -0
- package/cdn/chunks/chunk.VE6544CF.js +49 -0
- package/cdn/chunks/chunk.VFTUSAG5.js +24 -0
- package/cdn/chunks/chunk.VKA62GEU.js +844 -0
- package/cdn/chunks/chunk.VTFDXTES.js +299 -0
- package/cdn/chunks/chunk.VTTTIHQX.js +11 -0
- package/cdn/chunks/chunk.W2JXCITZ.js +11 -0
- package/cdn/chunks/chunk.W5GFIJFT.js +97 -0
- package/cdn/chunks/chunk.WCIVOTUQ.js +336 -0
- package/cdn/chunks/chunk.WCND34TR.js +21 -0
- package/cdn/chunks/chunk.WJD4SWMF.js +75 -0
- package/cdn/chunks/chunk.WVVWJJYI.js +36 -0
- package/cdn/chunks/chunk.WWXJAZJK.js +174 -0
- package/cdn/chunks/chunk.WY5FIE23.js +24 -0
- package/cdn/chunks/chunk.X2ADPGES.js +16 -0
- package/cdn/chunks/chunk.XAFSQLOF.js +574 -0
- package/cdn/chunks/chunk.XDANFU7Z.js +11 -0
- package/cdn/chunks/chunk.XMSZO3YG.js +33 -0
- package/cdn/chunks/chunk.XSTJB6JL.js +25 -0
- package/cdn/chunks/chunk.Y24QYAXM.js +24 -0
- package/cdn/chunks/chunk.Y4VSHIAH.js +11 -0
- package/cdn/chunks/chunk.YDCHAHGS.js +197 -0
- package/cdn/chunks/chunk.YIX3R3PC.js +11 -0
- package/cdn/chunks/chunk.YMKYAE6G.js +314 -0
- package/cdn/chunks/chunk.YPL5IULB.js +11 -0
- package/cdn/chunks/chunk.YQTNXX3P.js +821 -0
- package/cdn/chunks/chunk.Z54NXJ3L.js +28 -0
- package/cdn/chunks/chunk.Z7Z7ZXYP.js +11 -0
- package/cdn/chunks/chunk.ZBOQ7FFE.js +142 -0
- package/cdn/chunks/chunk.ZIIKONRE.js +1990 -0
- package/cdn/chunks/chunk.ZOYWULJK.js +11 -0
- package/cdn/chunks/chunk.ZTC7TXX5.js +53 -0
- package/cdn/chunks/chunk.ZTLDMFWK.js +11 -0
- package/cdn/components/alert/alert.component.js +8 -8
- package/cdn/components/alert/alert.js +9 -9
- package/cdn/components/animated-image/animated-image.component.js +5 -5
- package/cdn/components/animated-image/animated-image.js +6 -6
- package/cdn/components/animation/animation.component.js +2 -2
- package/cdn/components/animation/animation.js +3 -3
- package/cdn/components/avatar/avatar.component.js +5 -5
- package/cdn/components/avatar/avatar.js +6 -6
- package/cdn/components/badge/badge.component.js +2 -2
- package/cdn/components/badge/badge.js +3 -3
- package/cdn/components/breadcrumb/breadcrumb.component.js +7 -7
- package/cdn/components/breadcrumb/breadcrumb.js +8 -8
- package/cdn/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/cdn/components/button/button.component.js +8 -8
- package/cdn/components/button/button.js +9 -9
- package/cdn/components/button-group/button-group.component.js +2 -2
- package/cdn/components/button-group/button-group.js +3 -3
- package/cdn/components/card/card.component.js +2 -2
- package/cdn/components/card/card.js +3 -3
- package/cdn/components/carousel/carousel.component.js +7 -7
- package/cdn/components/carousel/carousel.js +8 -8
- package/cdn/components/carousel-item/carousel-item.component.js +2 -2
- package/cdn/components/carousel-item/carousel-item.js +3 -3
- package/cdn/components/checkbox/checkbox.component.js +5 -5
- package/cdn/components/checkbox/checkbox.js +6 -6
- package/cdn/components/color-picker/color-picker.component.js +14 -14
- package/cdn/components/color-picker/color-picker.js +15 -15
- package/cdn/components/combobox/combobox.component.js +12 -12
- package/cdn/components/combobox/combobox.js +13 -13
- package/cdn/components/copy-button/copy-button.component.js +9 -9
- package/cdn/components/copy-button/copy-button.js +10 -10
- package/cdn/components/data-table/data-table-column.component.js +2 -2
- package/cdn/components/data-table/data-table-column.js +3 -3
- package/cdn/components/data-table/data-table.component.d.ts +3 -0
- package/cdn/components/data-table/data-table.component.js +11 -10
- package/cdn/components/data-table/data-table.js +12 -11
- package/cdn/components/data-table/data-table.styles.js +1 -1
- package/cdn/components/data-table/define/cw-data-table-column.js +2 -2
- package/cdn/components/data-table-column/data-table-column.js +3 -3
- package/cdn/components/date-picker/date-picker.component.js +9 -9
- package/cdn/components/date-picker/date-picker.js +10 -10
- package/cdn/components/details/details.component.js +7 -7
- package/cdn/components/details/details.js +8 -8
- package/cdn/components/dialog/dialog.component.js +8 -8
- package/cdn/components/dialog/dialog.js +9 -9
- package/cdn/components/divider/divider.component.js +2 -2
- package/cdn/components/divider/divider.js +3 -3
- package/cdn/components/drawer/drawer.component.js +8 -8
- package/cdn/components/drawer/drawer.js +9 -9
- package/cdn/components/dropdown/dropdown.component.js +5 -5
- package/cdn/components/dropdown/dropdown.js +6 -6
- package/cdn/components/format-bytes/format-bytes.component.js +4 -4
- package/cdn/components/format-bytes/format-bytes.js +5 -5
- package/cdn/components/format-date/format-date.component.js +4 -4
- package/cdn/components/format-date/format-date.js +5 -5
- package/cdn/components/format-number/format-number.component.js +4 -4
- package/cdn/components/format-number/format-number.js +5 -5
- package/cdn/components/icon/icon.component.js +4 -4
- package/cdn/components/icon/icon.js +5 -5
- package/cdn/components/icon/library.js +2 -2
- package/cdn/components/icon/library.system.js +1 -1
- package/cdn/components/icon-button/icon-button.component.js +5 -5
- package/cdn/components/icon-button/icon-button.js +6 -6
- package/cdn/components/image-comparer/image-comparer.component.js +7 -7
- package/cdn/components/image-comparer/image-comparer.js +8 -8
- package/cdn/components/include/include.component.js +2 -2
- package/cdn/components/include/include.js +3 -3
- package/cdn/components/input/input.component.js +7 -7
- package/cdn/components/input/input.js +8 -8
- package/cdn/components/logo/logo.component.d.ts +43 -0
- package/cdn/components/logo/logo.component.js +16 -0
- package/cdn/components/logo/logo.d.ts +8 -0
- package/cdn/components/logo/logo.js +17 -0
- package/cdn/components/logo/logo.styles.d.ts +2 -0
- package/cdn/components/logo/logo.styles.js +8 -0
- package/cdn/components/menu/menu.component.js +2 -2
- package/cdn/components/menu/menu.js +3 -3
- package/cdn/components/menu-item/menu-item.component.js +9 -9
- package/cdn/components/menu-item/menu-item.js +10 -10
- package/cdn/components/menu-label/menu-label.component.js +2 -2
- package/cdn/components/menu-label/menu-label.js +3 -3
- package/cdn/components/mutation-observer/mutation-observer.component.js +2 -2
- package/cdn/components/mutation-observer/mutation-observer.js +3 -3
- package/cdn/components/option/option.component.js +7 -7
- package/cdn/components/option/option.js +8 -8
- package/cdn/components/pagination/pagination.component.js +8 -8
- package/cdn/components/pagination/pagination.js +9 -9
- package/cdn/components/popup/popup.component.js +4 -4
- package/cdn/components/popup/popup.js +5 -5
- package/cdn/components/progress-bar/progress-bar.component.js +4 -4
- package/cdn/components/progress-bar/progress-bar.js +5 -5
- package/cdn/components/progress-ring/progress-ring.component.js +4 -4
- package/cdn/components/progress-ring/progress-ring.js +5 -5
- package/cdn/components/qr-code/qr-code.component.js +2 -2
- package/cdn/components/qr-code/qr-code.js +3 -3
- package/cdn/components/radio/radio.component.js +5 -5
- package/cdn/components/radio/radio.js +6 -6
- package/cdn/components/radio-button/radio-button.component.js +2 -2
- package/cdn/components/radio-button/radio-button.js +3 -3
- package/cdn/components/radio-group/radio-group.component.js +3 -3
- package/cdn/components/radio-group/radio-group.js +4 -4
- package/cdn/components/range/range.component.js +4 -4
- package/cdn/components/range/range.js +5 -5
- package/cdn/components/rating/rating.component.js +7 -7
- package/cdn/components/rating/rating.js +8 -8
- package/cdn/components/relative-time/relative-time.component.js +4 -4
- package/cdn/components/relative-time/relative-time.js +5 -5
- package/cdn/components/resize-observer/resize-observer.component.js +2 -2
- package/cdn/components/resize-observer/resize-observer.js +3 -3
- package/cdn/components/select/select.component.js +10 -10
- package/cdn/components/select/select.js +11 -11
- package/cdn/components/skeleton/skeleton.component.js +2 -2
- package/cdn/components/skeleton/skeleton.js +3 -3
- package/cdn/components/spinner/spinner.component.js +4 -4
- package/cdn/components/spinner/spinner.js +5 -5
- package/cdn/components/split-panel/split-panel.component.js +4 -4
- package/cdn/components/split-panel/split-panel.js +5 -5
- package/cdn/components/switch/switch.component.js +2 -2
- package/cdn/components/switch/switch.js +3 -3
- package/cdn/components/tab/tab.component.js +8 -8
- package/cdn/components/tab/tab.js +9 -9
- package/cdn/components/tab-group/tab-group.component.js +9 -9
- package/cdn/components/tab-group/tab-group.js +10 -10
- package/cdn/components/tab-panel/tab-panel.component.js +2 -2
- package/cdn/components/tab-panel/tab-panel.js +3 -3
- package/cdn/components/tag/tag.component.js +8 -8
- package/cdn/components/tag/tag.js +9 -9
- package/cdn/components/textarea/textarea.component.js +2 -2
- package/cdn/components/textarea/textarea.js +3 -3
- package/cdn/components/time-picker/time-picker.component.js +9 -9
- package/cdn/components/time-picker/time-picker.js +10 -10
- package/cdn/components/tooltip/tooltip.component.js +5 -5
- package/cdn/components/tooltip/tooltip.js +6 -6
- package/cdn/components/tree/tree.component.js +10 -10
- package/cdn/components/tree/tree.js +11 -11
- package/cdn/components/tree-item/tree-item.component.js +9 -9
- package/cdn/components/tree-item/tree-item.js +10 -10
- package/cdn/components/visually-hidden/visually-hidden.component.js +2 -2
- package/cdn/components/visually-hidden/visually-hidden.js +3 -3
- package/cdn/custom-elements.json +201 -1
- package/cdn/cw-elements.d.ts +1 -0
- package/cdn/cw-elements.js +171 -164
- package/cdn/internal/host-context-fallback.d.ts +8 -0
- package/cdn/react/alert/index.js +9 -9
- package/cdn/react/animated-image/index.js +6 -6
- package/cdn/react/animation/index.js +3 -3
- package/cdn/react/avatar/index.js +6 -6
- package/cdn/react/badge/index.js +3 -3
- package/cdn/react/breadcrumb/index.js +8 -8
- package/cdn/react/breadcrumb-item/index.js +3 -3
- package/cdn/react/button/index.js +9 -9
- package/cdn/react/button-group/index.js +3 -3
- package/cdn/react/card/index.js +3 -3
- package/cdn/react/carousel/index.js +8 -8
- package/cdn/react/carousel-item/index.js +3 -3
- package/cdn/react/checkbox/index.js +6 -6
- package/cdn/react/color-picker/index.js +15 -15
- package/cdn/react/combobox/index.js +13 -13
- package/cdn/react/copy-button/index.js +10 -10
- package/cdn/react/data-table/index.js +12 -11
- package/cdn/react/data-table-column/index.js +3 -3
- package/cdn/react/date-picker/index.js +10 -10
- package/cdn/react/details/index.js +8 -8
- package/cdn/react/dialog/index.js +9 -9
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/drawer/index.js +9 -9
- package/cdn/react/dropdown/index.js +6 -6
- package/cdn/react/format-bytes/index.js +5 -5
- package/cdn/react/format-date/index.js +5 -5
- package/cdn/react/format-number/index.js +5 -5
- package/cdn/react/icon/index.js +5 -5
- package/cdn/react/icon-button/index.js +6 -6
- package/cdn/react/image-comparer/index.js +8 -8
- package/cdn/react/include/index.js +3 -3
- package/cdn/react/index.d.ts +1 -0
- package/cdn/react/index.js +187 -180
- package/cdn/react/input/index.js +8 -8
- package/cdn/react/logo/index.d.ts +18 -0
- package/cdn/react/logo/index.js +17 -0
- package/cdn/react/menu/index.js +3 -3
- package/cdn/react/menu-item/index.js +10 -10
- package/cdn/react/menu-label/index.js +3 -3
- package/cdn/react/mutation-observer/index.js +3 -3
- package/cdn/react/option/index.js +8 -8
- package/cdn/react/pagination/index.js +9 -9
- package/cdn/react/popup/index.js +5 -5
- package/cdn/react/progress-bar/index.js +5 -5
- package/cdn/react/progress-ring/index.js +5 -5
- package/cdn/react/qr-code/index.js +3 -3
- package/cdn/react/radio/index.js +6 -6
- package/cdn/react/radio-button/index.js +3 -3
- package/cdn/react/radio-group/index.js +4 -4
- package/cdn/react/range/index.js +5 -5
- package/cdn/react/rating/index.js +8 -8
- package/cdn/react/relative-time/index.js +5 -5
- package/cdn/react/resize-observer/index.js +3 -3
- package/cdn/react/select/index.js +11 -11
- package/cdn/react/skeleton/index.js +3 -3
- package/cdn/react/spinner/index.js +5 -5
- package/cdn/react/split-panel/index.js +5 -5
- package/cdn/react/switch/index.js +3 -3
- package/cdn/react/tab/index.js +9 -9
- package/cdn/react/tab-group/index.js +10 -10
- package/cdn/react/tab-panel/index.js +3 -3
- package/cdn/react/tag/index.js +9 -9
- package/cdn/react/textarea/index.js +3 -3
- package/cdn/react/time-picker/index.js +10 -10
- package/cdn/react/tooltip/index.js +6 -6
- package/cdn/react/tree/index.js +11 -11
- package/cdn/react/tree-item/index.js +10 -10
- package/cdn/react/visually-hidden/index.js +3 -3
- package/cdn/translations/da.js +2 -2
- package/cdn/translations/de-ch.js +2 -2
- package/cdn/translations/de.js +2 -2
- package/cdn/translations/en-gb.js +2 -2
- package/cdn/translations/en.js +1 -1
- package/cdn/translations/es.js +3 -2
- package/cdn/translations/fa.js +2 -2
- package/cdn/translations/fr.js +2 -2
- package/cdn/translations/he.js +2 -2
- package/cdn/translations/hu.js +2 -2
- package/cdn/translations/ja.js +2 -2
- package/cdn/translations/nb.js +2 -2
- package/cdn/translations/nl.js +2 -2
- package/cdn/translations/nn.js +2 -2
- package/cdn/translations/pl.js +2 -2
- package/cdn/translations/pt.js +2 -2
- package/cdn/translations/ru.js +2 -2
- package/cdn/translations/sv.js +2 -2
- package/cdn/translations/tr.js +2 -2
- package/cdn/translations/uk.js +2 -2
- package/cdn/translations/zh-cn.js +2 -2
- package/cdn/translations/zh-tw.js +2 -2
- package/cdn/types/vue/index.d.ts +37 -0
- package/cdn/utilities/icon-library.js +2 -2
- package/cdn/utilities/localize.d.ts +1 -0
- package/cdn/utilities/localize.js +2 -2
- package/cdn/vscode.html-custom-data.json +48 -0
- package/cdn/web-types.json +83 -1
- package/dist/chunks/chunk.2AG4LGFF.js +63 -0
- package/dist/chunks/chunk.2GENM2T3.js +59 -0
- package/dist/chunks/chunk.2GYEND2E.js +21 -0
- package/dist/chunks/chunk.2I3PQAIB.js +11 -0
- package/dist/chunks/chunk.2NQUWBBI.js +151 -0
- package/dist/chunks/chunk.2THEKYZB.js +11 -0
- package/dist/chunks/chunk.2VLMLOWV.js +21 -0
- package/dist/chunks/chunk.33HALTCO.js +227 -0
- package/dist/chunks/chunk.35VTIGT7.js +21 -0
- package/dist/chunks/chunk.3AFGTKZX.js +181 -0
- package/dist/chunks/chunk.3AHTUBOG.js +259 -0
- package/dist/chunks/chunk.3FIJJQ4E.js +25 -0
- package/dist/chunks/chunk.3MAHNAX7.js +11 -0
- package/dist/chunks/chunk.3PVGQH5I.js +11 -0
- package/dist/chunks/chunk.427OFUAW.js +24 -0
- package/dist/chunks/chunk.42BBHZMM.js +294 -0
- package/dist/chunks/chunk.46QJGMRB.js +11 -0
- package/dist/chunks/chunk.4HEVS4JL.js +24 -0
- package/dist/chunks/chunk.4TVSRBHU.js +11 -0
- package/dist/chunks/chunk.4WU7ZJJD.js +21 -0
- package/dist/chunks/chunk.4YJCZA67.js +21 -0
- package/dist/chunks/chunk.53DASUJV.js +293 -0
- package/dist/chunks/chunk.57YOOINY.js +21 -0
- package/dist/chunks/chunk.5CCJ5XKE.js +91 -0
- package/dist/chunks/chunk.5GXIU7UK.js +202 -0
- package/dist/chunks/chunk.5JEYDXUT.js +231 -0
- package/dist/chunks/chunk.5N3A2GXA.js +11 -0
- package/dist/chunks/chunk.5QBMC36T.js +11 -0
- package/dist/chunks/chunk.5SMTGQNW.js +11 -0
- package/dist/chunks/chunk.65CWOEZ2.js +22 -0
- package/dist/chunks/chunk.6CA6X2V3.js +21 -0
- package/dist/chunks/chunk.6OCDHTPA.js +28 -0
- package/dist/chunks/chunk.774JT5LG.js +25 -0
- package/dist/chunks/chunk.7BQQMODJ.js +33 -0
- package/dist/chunks/chunk.7E7PWQHX.js +42 -0
- package/dist/chunks/chunk.7H3AMZLT.js +11 -0
- package/dist/chunks/chunk.7JHZMA57.js +33 -0
- package/dist/chunks/chunk.7KAIMHBR.js +11 -0
- package/dist/chunks/chunk.7UB7VKAC.js +375 -0
- package/dist/chunks/chunk.7VV2QIUG.js +45 -0
- package/dist/chunks/chunk.7ZQIIFZB.js +448 -0
- package/dist/chunks/chunk.A4H5IHH6.js +11 -0
- package/dist/chunks/chunk.A5NMUGPV.js +11 -0
- package/dist/chunks/chunk.AARBLRXJ.js +29 -0
- package/dist/chunks/chunk.ABRX4XJW.js +11 -0
- package/dist/chunks/chunk.AD4UFRUN.js +21 -0
- package/dist/chunks/chunk.APE5GL5Y.js +75 -0
- package/dist/chunks/chunk.AQQE6CGB.js +11 -0
- package/dist/chunks/chunk.AVNCTMUP.js +837 -0
- package/dist/chunks/chunk.B3A6JRXS.js +116 -0
- package/dist/chunks/chunk.B6XVF6TW.js +24 -0
- package/dist/chunks/chunk.B7S5PGDX.js +813 -0
- package/dist/chunks/chunk.BFI5RSZX.js +22 -0
- package/dist/chunks/chunk.BHOADBXG.js +26 -0
- package/dist/chunks/chunk.BLVN4KUO.js +11 -0
- package/dist/chunks/chunk.BP2NMHG3.js +11 -0
- package/dist/chunks/chunk.BQ3Q5TNW.js +11 -0
- package/dist/chunks/chunk.BRG6AG5W.js +21 -0
- package/dist/chunks/chunk.BVNGYC7G.js +21 -0
- package/dist/chunks/chunk.BZUNZWCQ.js +21 -0
- package/dist/chunks/chunk.C2H7NVVH.js +11 -0
- package/dist/chunks/chunk.C6MIIMK3.js +11 -0
- package/dist/chunks/chunk.CBN6JSDV.js +491 -0
- package/dist/chunks/chunk.CBOW7HNP.js +126 -0
- package/dist/chunks/chunk.CGTOLVZP.js +11 -0
- package/dist/chunks/chunk.CSNIA3KK.js +33 -0
- package/dist/chunks/chunk.CURUWSEO.js +21 -0
- package/dist/chunks/chunk.CVISD57X.js +11 -0
- package/dist/chunks/chunk.D5QUJ3MC.js +11 -0
- package/dist/chunks/chunk.DQEH6ERY.js +24 -0
- package/dist/chunks/chunk.DTFJMEL7.js +27 -0
- package/dist/chunks/chunk.DTUJ2XNL.js +25 -0
- package/dist/chunks/chunk.DVGAJ3DA.js +15 -0
- package/dist/chunks/chunk.DWRZIT4M.js +24 -0
- package/dist/chunks/chunk.E4XI5XFN.js +11 -0
- package/dist/chunks/chunk.E5CGWMEK.js +11 -0
- package/dist/chunks/chunk.E7YZQ4HD.js +100 -0
- package/dist/chunks/chunk.EABEXK5H.js +11 -0
- package/dist/chunks/chunk.EAFFBV3W.js +28 -0
- package/dist/chunks/chunk.EAIL4D57.js +11 -0
- package/dist/chunks/chunk.ELGVK57O.js +11 -0
- package/dist/chunks/chunk.ERQHS5I5.js +550 -0
- package/dist/chunks/chunk.EVCE56NW.js +21 -0
- package/dist/chunks/chunk.F3NM3ABB.js +80 -0
- package/dist/chunks/chunk.F5CGWV23.js +337 -0
- package/dist/chunks/chunk.FBHA7HUB.js +42 -0
- package/dist/chunks/chunk.FPQQJJVJ.js +33 -0
- package/dist/chunks/chunk.FUD6M45U.js +24 -0
- package/dist/chunks/chunk.G366KAC6.js +361 -0
- package/dist/chunks/chunk.G7W64YXN.js +21 -0
- package/dist/chunks/chunk.GH7A3UGH.js +34 -0
- package/dist/chunks/chunk.GLWSITVT.js +11 -0
- package/dist/chunks/chunk.GWSH3PL2.js +21 -0
- package/dist/chunks/chunk.GYZOVNX2.js +119 -0
- package/dist/chunks/chunk.H2O2N37B.js +11 -0
- package/dist/chunks/chunk.H5JYRGAC.js +27 -0
- package/dist/chunks/chunk.H7JBYTAA.js +93 -0
- package/dist/chunks/chunk.HD4RHRMS.js +109 -0
- package/dist/chunks/chunk.HGWLQ3XV.js +117 -0
- package/dist/chunks/chunk.HKAXVWKT.js +111 -0
- package/dist/chunks/chunk.HR6YWWWW.js +11 -0
- package/dist/chunks/chunk.I6WSHEOM.js +21 -0
- package/dist/chunks/chunk.IBSHPTFC.js +11 -0
- package/dist/chunks/chunk.IKMEH3KY.js +21 -0
- package/dist/chunks/chunk.J6JN5ZNA.js +247 -0
- package/dist/chunks/chunk.JCZYPLSM.js +21 -0
- package/dist/chunks/chunk.JJALDPWX.js +21 -0
- package/dist/chunks/chunk.JMM4USPE.js +11 -0
- package/dist/chunks/chunk.K3EXY3BU.js +949 -0
- package/dist/chunks/chunk.K5UGBPJ3.js +11 -0
- package/dist/chunks/chunk.KBNRGSIV.js +11 -0
- package/dist/chunks/chunk.KEDNZZ3P.js +100 -0
- package/dist/chunks/chunk.KQQLAKRZ.js +21 -0
- package/dist/chunks/chunk.L7Z6LGT6.js +25 -0
- package/dist/chunks/chunk.LK72UNTZ.js +24 -0
- package/dist/chunks/chunk.LLT4TMU5.js +192 -0
- package/dist/chunks/chunk.LOU3KYJG.js +370 -0
- package/dist/chunks/chunk.LXCC4JLY.js +29 -0
- package/dist/chunks/chunk.M357TFC3.js +134 -0
- package/dist/chunks/chunk.M4Y4ZID3.js +25 -0
- package/dist/chunks/chunk.M5RW4BPF.js +109 -0
- package/dist/chunks/chunk.MDH6IU4V.js +170 -0
- package/dist/chunks/chunk.MMNRUD4M.js +896 -0
- package/dist/chunks/chunk.N2DRBLDH.js +67 -0
- package/dist/chunks/chunk.NB4MG53P.js +94 -0
- package/dist/chunks/chunk.NKLUE7XC.js +11 -0
- package/dist/chunks/chunk.NSTCRPYY.js +11 -0
- package/dist/chunks/chunk.NUOLLJJR.js +21 -0
- package/dist/chunks/chunk.NZKCYY52.js +961 -0
- package/dist/chunks/chunk.O24JHPBJ.js +50 -0
- package/dist/chunks/chunk.O2BJRSTL.js +24 -0
- package/dist/chunks/chunk.O5KUIOYE.js +11 -0
- package/dist/chunks/chunk.OBI6YT4W.js +11 -0
- package/dist/chunks/chunk.OCPC37N2.js +11 -0
- package/dist/chunks/chunk.OLM7OFIX.js +11 -0
- package/dist/chunks/chunk.ONNRL3UG.js +24 -0
- package/dist/chunks/chunk.OOZE3NE6.js +25 -0
- package/dist/chunks/chunk.OPNTDH3O.js +82 -0
- package/dist/chunks/chunk.OQRAO7EF.js +26 -0
- package/dist/chunks/chunk.OTCTVE5V.js +29 -0
- package/dist/chunks/chunk.OUIVPB2G.js +384 -0
- package/dist/chunks/chunk.OV4DLZ2M.js +75 -0
- package/dist/chunks/chunk.PA4DYO7E.js +274 -0
- package/dist/chunks/chunk.PJ5CMMLX.js +11 -0
- package/dist/chunks/chunk.PJXIO5XQ.js +25 -0
- package/dist/chunks/chunk.PW26KANS.js +11 -0
- package/dist/chunks/chunk.Q3J6WFJT.js +11 -0
- package/dist/chunks/chunk.Q4ZVFZMU.js +26 -0
- package/dist/chunks/chunk.Q6YH2NQ3.js +315 -0
- package/dist/chunks/chunk.QBMZLXDX.js +11 -0
- package/dist/chunks/chunk.QFAIVRPD.js +28 -0
- package/dist/chunks/chunk.QFCBURYO.js +11 -0
- package/dist/chunks/chunk.QIND5MVN.js +25 -0
- package/dist/chunks/chunk.QM6HMP4D.js +11 -0
- package/dist/chunks/chunk.QNCK2GAI.js +45 -0
- package/dist/chunks/chunk.QQ3HVSBR.js +11 -0
- package/dist/chunks/chunk.QTEUSPPU.js +11 -0
- package/dist/chunks/chunk.QV4DFCEI.js +11 -0
- package/dist/chunks/chunk.QVYCCVZS.js +11 -0
- package/dist/chunks/chunk.QX4AFNN2.js +11 -0
- package/dist/chunks/chunk.QXDQOXQN.js +147 -0
- package/dist/chunks/chunk.QZC7L7EX.js +90 -0
- package/dist/chunks/chunk.RMKLMD4K.js +26 -0
- package/dist/chunks/chunk.RN7BZPQ4.js +44 -0
- package/dist/chunks/chunk.RZRNGKJL.js +11 -0
- package/dist/chunks/chunk.SA56QYLF.js +28 -0
- package/dist/chunks/chunk.STFWRH6P.js +11 -0
- package/dist/chunks/chunk.T62XVO2T.js +11 -0
- package/dist/chunks/chunk.TDV4IRGW.js +11 -0
- package/dist/chunks/chunk.THF2CNPG.js +21 -0
- package/dist/chunks/chunk.TJ5VIVAX.js +286 -0
- package/dist/chunks/chunk.TO5JY7TD.js +21 -0
- package/dist/chunks/chunk.TVNB4JXG.js +50 -0
- package/dist/chunks/chunk.TYQ7ZMBW.js +24 -0
- package/dist/chunks/chunk.UENUKMVE.js +24 -0
- package/dist/chunks/chunk.USKQZ7GU.js +417 -0
- package/dist/chunks/chunk.V2T5TJ5I.js +85 -0
- package/dist/chunks/chunk.V5WC7WLK.js +213 -0
- package/dist/chunks/chunk.V7PVKTVW.js +142 -0
- package/dist/chunks/chunk.VUP4OXM6.js +135 -0
- package/dist/chunks/chunk.WAP6D3KF.js +280 -0
- package/dist/chunks/chunk.WBQTNRCP.js +11 -0
- package/dist/chunks/chunk.WEJ3Q4DV.js +11 -0
- package/dist/chunks/chunk.WQNJKGUR.js +24 -0
- package/dist/chunks/chunk.X6HAPQKG.js +11 -0
- package/dist/chunks/chunk.X6U5CKLH.js +11 -0
- package/dist/chunks/chunk.XI24R2BK.js +11 -0
- package/dist/chunks/chunk.XSLAX4BM.js +27 -0
- package/dist/chunks/chunk.Y4DVHEWQ.js +11 -0
- package/dist/chunks/chunk.Y6DNILRD.js +24 -0
- package/dist/chunks/chunk.Y7OXOIP7.js +290 -0
- package/dist/chunks/chunk.YB3XVX7I.js +11 -0
- package/dist/chunks/chunk.YGOW7NSW.js +25 -0
- package/dist/chunks/chunk.YK4FA566.js +115 -0
- package/dist/chunks/chunk.YOBZT5FH.js +27 -0
- package/dist/chunks/chunk.YOK6NINY.js +11 -0
- package/dist/chunks/chunk.YRW45GH5.js +28 -0
- package/dist/chunks/chunk.Z4TUXG7F.js +311 -0
- package/dist/chunks/chunk.Z7QSHXUC.js +29 -0
- package/dist/chunks/chunk.ZEEZVIUF.js +11 -0
- package/dist/chunks/chunk.ZFK7C4IR.js +397 -0
- package/dist/chunks/chunk.ZJCU7ADP.js +53 -0
- package/dist/chunks/chunk.ZMQF2BRT.js +73 -0
- package/dist/chunks/chunk.ZWDVOAET.js +25 -0
- package/dist/components/alert/alert.component.js +8 -8
- package/dist/components/alert/alert.js +9 -9
- package/dist/components/animated-image/animated-image.component.js +5 -5
- package/dist/components/animated-image/animated-image.js +6 -6
- package/dist/components/animation/animation.component.js +2 -2
- package/dist/components/animation/animation.js +3 -3
- package/dist/components/avatar/avatar.component.js +5 -5
- package/dist/components/avatar/avatar.js +6 -6
- package/dist/components/badge/badge.component.js +2 -2
- package/dist/components/badge/badge.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +7 -7
- package/dist/components/breadcrumb/breadcrumb.js +8 -8
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.component.js +8 -8
- package/dist/components/button/button.js +9 -9
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/carousel/carousel.component.js +7 -7
- package/dist/components/carousel/carousel.js +8 -8
- package/dist/components/carousel-item/carousel-item.component.js +2 -2
- package/dist/components/carousel-item/carousel-item.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +5 -5
- package/dist/components/checkbox/checkbox.js +6 -6
- package/dist/components/color-picker/color-picker.component.js +14 -14
- package/dist/components/color-picker/color-picker.js +15 -15
- package/dist/components/combobox/combobox.component.js +12 -12
- package/dist/components/combobox/combobox.js +13 -13
- package/dist/components/copy-button/copy-button.component.js +9 -9
- package/dist/components/copy-button/copy-button.js +10 -10
- package/dist/components/data-table/data-table-column.component.js +2 -2
- package/dist/components/data-table/data-table-column.js +3 -3
- package/dist/components/data-table/data-table.component.d.ts +3 -0
- package/dist/components/data-table/data-table.component.js +11 -10
- package/dist/components/data-table/data-table.js +12 -11
- package/dist/components/data-table/data-table.styles.js +1 -1
- package/dist/components/data-table/define/cw-data-table-column.js +2 -2
- package/dist/components/data-table-column/data-table-column.js +3 -3
- package/dist/components/date-picker/date-picker.component.js +9 -9
- package/dist/components/date-picker/date-picker.js +10 -10
- package/dist/components/details/details.component.js +7 -7
- package/dist/components/details/details.js +8 -8
- package/dist/components/dialog/dialog.component.js +8 -8
- package/dist/components/dialog/dialog.js +9 -9
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +8 -8
- package/dist/components/drawer/drawer.js +9 -9
- package/dist/components/dropdown/dropdown.component.js +5 -5
- package/dist/components/dropdown/dropdown.js +6 -6
- package/dist/components/format-bytes/format-bytes.component.js +4 -4
- package/dist/components/format-bytes/format-bytes.js +5 -5
- package/dist/components/format-date/format-date.component.js +4 -4
- package/dist/components/format-date/format-date.js +5 -5
- package/dist/components/format-number/format-number.component.js +4 -4
- package/dist/components/format-number/format-number.js +5 -5
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.js +5 -5
- package/dist/components/icon-button/icon-button.js +6 -6
- package/dist/components/image-comparer/image-comparer.component.js +7 -7
- package/dist/components/image-comparer/image-comparer.js +8 -8
- package/dist/components/include/include.component.js +2 -2
- package/dist/components/include/include.js +3 -3
- package/dist/components/input/input.component.js +7 -7
- package/dist/components/input/input.js +8 -8
- package/dist/components/logo/logo.component.d.ts +43 -0
- package/dist/components/logo/logo.component.js +13 -0
- package/dist/components/logo/logo.d.ts +8 -0
- package/dist/components/logo/logo.js +14 -0
- package/dist/components/logo/logo.styles.d.ts +2 -0
- package/dist/components/logo/logo.styles.js +7 -0
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.js +9 -9
- package/dist/components/menu-item/menu-item.js +10 -10
- package/dist/components/menu-label/menu-label.component.js +2 -2
- package/dist/components/menu-label/menu-label.js +3 -3
- package/dist/components/mutation-observer/mutation-observer.component.js +2 -2
- package/dist/components/mutation-observer/mutation-observer.js +3 -3
- package/dist/components/option/option.component.js +7 -7
- package/dist/components/option/option.js +8 -8
- package/dist/components/pagination/pagination.component.js +8 -8
- package/dist/components/pagination/pagination.js +9 -9
- package/dist/components/popup/popup.component.js +4 -4
- package/dist/components/popup/popup.js +5 -5
- package/dist/components/progress-bar/progress-bar.component.js +4 -4
- package/dist/components/progress-bar/progress-bar.js +5 -5
- package/dist/components/progress-ring/progress-ring.component.js +4 -4
- package/dist/components/progress-ring/progress-ring.js +5 -5
- package/dist/components/qr-code/qr-code.component.js +2 -2
- package/dist/components/qr-code/qr-code.js +3 -3
- package/dist/components/radio/radio.component.js +5 -5
- package/dist/components/radio/radio.js +6 -6
- package/dist/components/radio-button/radio-button.component.js +2 -2
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/range/range.component.js +4 -4
- package/dist/components/range/range.js +5 -5
- package/dist/components/rating/rating.component.js +7 -7
- package/dist/components/rating/rating.js +8 -8
- package/dist/components/relative-time/relative-time.component.js +4 -4
- package/dist/components/relative-time/relative-time.js +5 -5
- package/dist/components/resize-observer/resize-observer.component.js +2 -2
- package/dist/components/resize-observer/resize-observer.js +3 -3
- package/dist/components/select/select.component.js +10 -10
- package/dist/components/select/select.js +11 -11
- package/dist/components/skeleton/skeleton.component.js +2 -2
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spinner/spinner.component.js +4 -4
- package/dist/components/spinner/spinner.js +5 -5
- package/dist/components/split-panel/split-panel.component.js +4 -4
- package/dist/components/split-panel/split-panel.js +5 -5
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tab/tab.component.js +8 -8
- package/dist/components/tab/tab.js +9 -9
- package/dist/components/tab-group/tab-group.component.js +9 -9
- package/dist/components/tab-group/tab-group.js +10 -10
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/tag/tag.component.js +8 -8
- package/dist/components/tag/tag.js +9 -9
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/time-picker/time-picker.component.js +9 -9
- package/dist/components/time-picker/time-picker.js +10 -10
- package/dist/components/tooltip/tooltip.component.js +5 -5
- package/dist/components/tooltip/tooltip.js +6 -6
- package/dist/components/tree/tree.component.js +10 -10
- package/dist/components/tree/tree.js +11 -11
- package/dist/components/tree-item/tree-item.component.js +9 -9
- package/dist/components/tree-item/tree-item.js +10 -10
- package/dist/components/visually-hidden/visually-hidden.component.js +2 -2
- package/dist/components/visually-hidden/visually-hidden.js +3 -3
- package/dist/custom-elements.json +201 -1
- package/dist/cw-elements.d.ts +1 -0
- package/dist/cw-elements.js +171 -164
- package/dist/internal/host-context-fallback.d.ts +8 -0
- package/dist/react/alert/index.js +9 -9
- package/dist/react/animated-image/index.js +6 -6
- package/dist/react/animation/index.js +3 -3
- package/dist/react/avatar/index.js +6 -6
- package/dist/react/badge/index.js +3 -3
- package/dist/react/breadcrumb/index.js +8 -8
- package/dist/react/breadcrumb-item/index.js +3 -3
- package/dist/react/button/index.js +9 -9
- package/dist/react/button-group/index.js +3 -3
- package/dist/react/card/index.js +3 -3
- package/dist/react/carousel/index.js +8 -8
- package/dist/react/carousel-item/index.js +3 -3
- package/dist/react/checkbox/index.js +6 -6
- package/dist/react/color-picker/index.js +15 -15
- package/dist/react/combobox/index.js +13 -13
- package/dist/react/copy-button/index.js +10 -10
- package/dist/react/data-table/index.js +12 -11
- package/dist/react/data-table-column/index.js +3 -3
- package/dist/react/date-picker/index.js +10 -10
- package/dist/react/details/index.js +8 -8
- package/dist/react/dialog/index.js +9 -9
- package/dist/react/divider/index.js +3 -3
- package/dist/react/drawer/index.js +9 -9
- package/dist/react/dropdown/index.js +6 -6
- package/dist/react/format-bytes/index.js +5 -5
- package/dist/react/format-date/index.js +5 -5
- package/dist/react/format-number/index.js +5 -5
- package/dist/react/icon/index.js +5 -5
- package/dist/react/icon-button/index.js +6 -6
- package/dist/react/image-comparer/index.js +8 -8
- package/dist/react/include/index.js +3 -3
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +187 -180
- package/dist/react/input/index.js +8 -8
- package/dist/react/logo/index.d.ts +18 -0
- package/dist/react/logo/index.js +14 -0
- package/dist/react/menu/index.js +3 -3
- package/dist/react/menu-item/index.js +10 -10
- package/dist/react/menu-label/index.js +3 -3
- package/dist/react/mutation-observer/index.js +3 -3
- package/dist/react/option/index.js +8 -8
- package/dist/react/pagination/index.js +9 -9
- package/dist/react/popup/index.js +5 -5
- package/dist/react/progress-bar/index.js +5 -5
- package/dist/react/progress-ring/index.js +5 -5
- package/dist/react/qr-code/index.js +3 -3
- package/dist/react/radio/index.js +6 -6
- package/dist/react/radio-button/index.js +3 -3
- package/dist/react/radio-group/index.js +4 -4
- package/dist/react/range/index.js +5 -5
- package/dist/react/rating/index.js +8 -8
- package/dist/react/relative-time/index.js +5 -5
- package/dist/react/resize-observer/index.js +3 -3
- package/dist/react/select/index.js +11 -11
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/spinner/index.js +5 -5
- package/dist/react/split-panel/index.js +5 -5
- package/dist/react/switch/index.js +3 -3
- package/dist/react/tab/index.js +9 -9
- package/dist/react/tab-group/index.js +10 -10
- package/dist/react/tab-panel/index.js +3 -3
- package/dist/react/tag/index.js +9 -9
- package/dist/react/textarea/index.js +3 -3
- package/dist/react/time-picker/index.js +10 -10
- package/dist/react/tooltip/index.js +6 -6
- package/dist/react/tree/index.js +11 -11
- package/dist/react/tree-item/index.js +10 -10
- package/dist/react/visually-hidden/index.js +3 -3
- package/dist/translations/da.js +2 -2
- package/dist/translations/de-ch.js +3 -3
- package/dist/translations/de.js +3 -3
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en.js +1 -1
- package/dist/translations/es.js +3 -2
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fr.js +2 -2
- package/dist/translations/he.js +2 -2
- package/dist/translations/hu.js +2 -2
- package/dist/translations/ja.js +2 -2
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nn.js +2 -2
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pt.js +2 -2
- package/dist/translations/ru.js +2 -2
- package/dist/translations/sv.js +2 -2
- package/dist/translations/tr.js +2 -2
- package/dist/translations/uk.js +2 -2
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-tw.js +2 -2
- package/dist/types/vue/index.d.ts +37 -0
- package/dist/utilities/icon-library.js +2 -2
- package/dist/utilities/localize.d.ts +1 -0
- package/dist/utilities/localize.js +2 -2
- package/dist/vscode.html-custom-data.json +48 -0
- package/dist/web-types.json +83 -1
- package/package.json +1 -1
- package/cdn/chunks/chunk.2CXWDKSA.js +0 -574
- package/cdn/chunks/chunk.2FYNVS7O.js +0 -25
- package/cdn/chunks/chunk.2TU23B2P.js +0 -25
- package/cdn/chunks/chunk.2Y47E5NF.js +0 -28
- package/cdn/chunks/chunk.2ZM7K5QW.js +0 -21
- package/cdn/chunks/chunk.33JRP7BH.js +0 -42
- package/cdn/chunks/chunk.3EK245BY.js +0 -904
- package/cdn/chunks/chunk.3ITR3YMH.js +0 -16
- package/cdn/chunks/chunk.3KZAH5AQ.js +0 -363
- package/cdn/chunks/chunk.3M6E3A2W.js +0 -77
- package/cdn/chunks/chunk.3NXAD3S6.js +0 -11
- package/cdn/chunks/chunk.3TFKS637.js +0 -127
- package/cdn/chunks/chunk.44QYOAXG.js +0 -11
- package/cdn/chunks/chunk.4CK7EBFB.js +0 -499
- package/cdn/chunks/chunk.4CVPTKYR.js +0 -27
- package/cdn/chunks/chunk.5224SMYP.js +0 -25
- package/cdn/chunks/chunk.5JP7PD4N.js +0 -11
- package/cdn/chunks/chunk.5WJMKI5W.js +0 -24
- package/cdn/chunks/chunk.66LMWXNU.js +0 -11
- package/cdn/chunks/chunk.6EFLUST7.js +0 -11
- package/cdn/chunks/chunk.6NQQDAYE.js +0 -26
- package/cdn/chunks/chunk.6ZFYF2WF.js +0 -25
- package/cdn/chunks/chunk.72BS2G42.js +0 -21
- package/cdn/chunks/chunk.7366BRV2.js +0 -969
- package/cdn/chunks/chunk.7CJZTCQB.js +0 -103
- package/cdn/chunks/chunk.7DQNE5XY.js +0 -1925
- package/cdn/chunks/chunk.7JCIPBRD.js +0 -26
- package/cdn/chunks/chunk.7LC6OOHG.js +0 -391
- package/cdn/chunks/chunk.7LSZPTDU.js +0 -27
- package/cdn/chunks/chunk.7QCVXEJB.js +0 -21
- package/cdn/chunks/chunk.7ZIVYTTK.js +0 -199
- package/cdn/chunks/chunk.A3VHAXYO.js +0 -21
- package/cdn/chunks/chunk.AEUUT6GH.js +0 -113
- package/cdn/chunks/chunk.AKRU6EJJ.js +0 -297
- package/cdn/chunks/chunk.AT76YYMC.js +0 -33
- package/cdn/chunks/chunk.ATYV775R.js +0 -50
- package/cdn/chunks/chunk.B5DL63I7.js +0 -24
- package/cdn/chunks/chunk.B63PTPTP.js +0 -24
- package/cdn/chunks/chunk.B7B5NKFR.js +0 -77
- package/cdn/chunks/chunk.BAPXWW4Q.js +0 -844
- package/cdn/chunks/chunk.BRWH3DPD.js +0 -11
- package/cdn/chunks/chunk.BRZJKF5N.js +0 -26
- package/cdn/chunks/chunk.BYFOH5PZ.js +0 -346
- package/cdn/chunks/chunk.C3ZA6VYO.js +0 -73
- package/cdn/chunks/chunk.C4QY7KGQ.js +0 -44
- package/cdn/chunks/chunk.CAT3P7YD.js +0 -11
- package/cdn/chunks/chunk.CSO62GSM.js +0 -21
- package/cdn/chunks/chunk.CZ6UD3VE.js +0 -11
- package/cdn/chunks/chunk.D5J4Y4QP.js +0 -21
- package/cdn/chunks/chunk.D7MCNNCT.js +0 -21
- package/cdn/chunks/chunk.DF3P7FLR.js +0 -87
- package/cdn/chunks/chunk.DP7KH5NP.js +0 -11
- package/cdn/chunks/chunk.DUGVLK2Y.js +0 -11
- package/cdn/chunks/chunk.E5CFOV7P.js +0 -11
- package/cdn/chunks/chunk.EACSSPMX.js +0 -11
- package/cdn/chunks/chunk.EBUG2IF7.js +0 -21
- package/cdn/chunks/chunk.EHQ4FLIK.js +0 -24
- package/cdn/chunks/chunk.EJDYLREA.js +0 -1990
- package/cdn/chunks/chunk.F3BIEFMM.js +0 -11
- package/cdn/chunks/chunk.F4I6MJ6D.js +0 -49
- package/cdn/chunks/chunk.F4WMPGEZ.js +0 -11
- package/cdn/chunks/chunk.FDV5S6Q6.js +0 -11
- package/cdn/chunks/chunk.FEHPPAED.js +0 -11
- package/cdn/chunks/chunk.FHIMTWRV.js +0 -25
- package/cdn/chunks/chunk.FJ5OLSSX.js +0 -216
- package/cdn/chunks/chunk.FL75WHV7.js +0 -25
- package/cdn/chunks/chunk.FLH276KO.js +0 -11
- package/cdn/chunks/chunk.FS65H6I7.js +0 -218
- package/cdn/chunks/chunk.FVPLQ2TW.js +0 -120
- package/cdn/chunks/chunk.FYUFPWEE.js +0 -122
- package/cdn/chunks/chunk.FZLY3KV3.js +0 -114
- package/cdn/chunks/chunk.G3EBOEMV.js +0 -63
- package/cdn/chunks/chunk.G447ZTAJ.js +0 -11
- package/cdn/chunks/chunk.GCLMY3T2.js +0 -174
- package/cdn/chunks/chunk.GMIOQIG4.js +0 -11
- package/cdn/chunks/chunk.GNLGIRBK.js +0 -82
- package/cdn/chunks/chunk.GT4QJTRD.js +0 -137
- package/cdn/chunks/chunk.GZ2NCNTA.js +0 -11
- package/cdn/chunks/chunk.HBTHTL22.js +0 -29
- package/cdn/chunks/chunk.HBXFT6JP.js +0 -26
- package/cdn/chunks/chunk.HCSTGKJ5.js +0 -21
- package/cdn/chunks/chunk.HEUZATEE.js +0 -24
- package/cdn/chunks/chunk.HGPRCQG6.js +0 -367
- package/cdn/chunks/chunk.HGUYNNK3.js +0 -11
- package/cdn/chunks/chunk.HKGINLU3.js +0 -11
- package/cdn/chunks/chunk.HMXN2TM3.js +0 -11
- package/cdn/chunks/chunk.HQBM6VW2.js +0 -11
- package/cdn/chunks/chunk.HQW7JQ2X.js +0 -158
- package/cdn/chunks/chunk.HVTYSJRR.js +0 -11
- package/cdn/chunks/chunk.I6L2MQZF.js +0 -24
- package/cdn/chunks/chunk.IBBGZOWR.js +0 -93
- package/cdn/chunks/chunk.ID5M7VH3.js +0 -267
- package/cdn/chunks/chunk.IO6PIG3G.js +0 -11
- package/cdn/chunks/chunk.ISGZWPZN.js +0 -255
- package/cdn/chunks/chunk.ITIKVPNE.js +0 -127
- package/cdn/chunks/chunk.J4C2D6FY.js +0 -11
- package/cdn/chunks/chunk.JAZGYNSH.js +0 -11
- package/cdn/chunks/chunk.JHX4LSRF.js +0 -11
- package/cdn/chunks/chunk.JQ642D2X.js +0 -21
- package/cdn/chunks/chunk.JRB7BES7.js +0 -79
- package/cdn/chunks/chunk.JULYDIDL.js +0 -28
- package/cdn/chunks/chunk.JZIYOJB2.js +0 -11
- package/cdn/chunks/chunk.KE3QBB32.js +0 -11
- package/cdn/chunks/chunk.KRDDKB5J.js +0 -24
- package/cdn/chunks/chunk.KSNKPY77.js +0 -378
- package/cdn/chunks/chunk.KT66HULB.js +0 -135
- package/cdn/chunks/chunk.KWSSDTZH.js +0 -292
- package/cdn/chunks/chunk.KX6SDU2Q.js +0 -142
- package/cdn/chunks/chunk.L23GKAEN.js +0 -21
- package/cdn/chunks/chunk.LHIY77UO.js +0 -33
- package/cdn/chunks/chunk.LJW36GYT.js +0 -29
- package/cdn/chunks/chunk.LK4ZMQQ3.js +0 -821
- package/cdn/chunks/chunk.LRUZREBD.js +0 -11
- package/cdn/chunks/chunk.LW6VGXKA.js +0 -24
- package/cdn/chunks/chunk.LWJUXL5J.js +0 -28
- package/cdn/chunks/chunk.M4IRTE5H.js +0 -21
- package/cdn/chunks/chunk.MFKZ27KU.js +0 -21
- package/cdn/chunks/chunk.MGM4UV64.js +0 -25
- package/cdn/chunks/chunk.MGRHHKLE.js +0 -11
- package/cdn/chunks/chunk.MMRE4L7W.js +0 -25
- package/cdn/chunks/chunk.MNB6IBU7.js +0 -21
- package/cdn/chunks/chunk.N3PRK7GL.js +0 -95
- package/cdn/chunks/chunk.N6FQVBFQ.js +0 -11
- package/cdn/chunks/chunk.NEEA4TIX.js +0 -11
- package/cdn/chunks/chunk.NEFK23HD.js +0 -279
- package/cdn/chunks/chunk.NFLL4NW4.js +0 -455
- package/cdn/chunks/chunk.NHX6TZAK.js +0 -11
- package/cdn/chunks/chunk.NV3DRB7R.js +0 -27
- package/cdn/chunks/chunk.O3ZDUZID.js +0 -11
- package/cdn/chunks/chunk.OHN325WS.js +0 -24
- package/cdn/chunks/chunk.OJFU7HZA.js +0 -21
- package/cdn/chunks/chunk.P6YVVM4V.js +0 -11
- package/cdn/chunks/chunk.PAAUYXJM.js +0 -197
- package/cdn/chunks/chunk.PFPXUVWO.js +0 -336
- package/cdn/chunks/chunk.PIO4BA2R.js +0 -33
- package/cdn/chunks/chunk.PJGPT3CC.js +0 -11
- package/cdn/chunks/chunk.PLWUHX7O.js +0 -49
- package/cdn/chunks/chunk.POJWPEXT.js +0 -24
- package/cdn/chunks/chunk.PQGUWROG.js +0 -11
- package/cdn/chunks/chunk.Q26EXQ5X.js +0 -11
- package/cdn/chunks/chunk.QN2W7GJV.js +0 -11
- package/cdn/chunks/chunk.QNAQP7HU.js +0 -120
- package/cdn/chunks/chunk.QS2F73SW.js +0 -11
- package/cdn/chunks/chunk.QVA3AS5P.js +0 -97
- package/cdn/chunks/chunk.R3HBTAK2.js +0 -11
- package/cdn/chunks/chunk.R6QK54R2.js +0 -21
- package/cdn/chunks/chunk.R6T6XFTZ.js +0 -21
- package/cdn/chunks/chunk.RPNW2L4U.js +0 -724
- package/cdn/chunks/chunk.RSWSIDGM.js +0 -11
- package/cdn/chunks/chunk.RUP2ALDL.js +0 -11
- package/cdn/chunks/chunk.RVZQKTJO.js +0 -11
- package/cdn/chunks/chunk.RWMU7UUV.js +0 -314
- package/cdn/chunks/chunk.RZLQG6XT.js +0 -11
- package/cdn/chunks/chunk.S6SCGNEI.js +0 -11
- package/cdn/chunks/chunk.SCWAXHQU.js +0 -25
- package/cdn/chunks/chunk.SDK5XM7W.js +0 -75
- package/cdn/chunks/chunk.SIBHHIT2.js +0 -29
- package/cdn/chunks/chunk.SJKONRW2.js +0 -11
- package/cdn/chunks/chunk.SYCSG742.js +0 -52
- package/cdn/chunks/chunk.TB37HTF4.js +0 -11
- package/cdn/chunks/chunk.TEBD4Q4Z.js +0 -11
- package/cdn/chunks/chunk.TJMWSQG7.js +0 -24
- package/cdn/chunks/chunk.TJYAECV6.js +0 -21
- package/cdn/chunks/chunk.TO3KRM5O.js +0 -236
- package/cdn/chunks/chunk.TSBWEMEH.js +0 -67
- package/cdn/chunks/chunk.U6HZJHRE.js +0 -11
- package/cdn/chunks/chunk.UJZUOGJ4.js +0 -11
- package/cdn/chunks/chunk.URLHFRCH.js +0 -11
- package/cdn/chunks/chunk.VBXYPCNM.js +0 -11
- package/cdn/chunks/chunk.VKFJNMOV.js +0 -36
- package/cdn/chunks/chunk.VSSLASXQ.js +0 -28
- package/cdn/chunks/chunk.VXCEDMEF.js +0 -299
- package/cdn/chunks/chunk.VZTUA7FF.js +0 -11
- package/cdn/chunks/chunk.W24C4FHM.js +0 -186
- package/cdn/chunks/chunk.W2AATGF2.js +0 -11
- package/cdn/chunks/chunk.W3HPJR42.js +0 -11
- package/cdn/chunks/chunk.W7ZN22OK.js +0 -21
- package/cdn/chunks/chunk.WB57QSL6.js +0 -33
- package/cdn/chunks/chunk.WCXP6BYA.js +0 -402
- package/cdn/chunks/chunk.WSBW4XYR.js +0 -28
- package/cdn/chunks/chunk.WTMLNYLE.js +0 -27
- package/cdn/chunks/chunk.WUWXF5QX.js +0 -153
- package/cdn/chunks/chunk.X2JEGFXA.js +0 -11
- package/cdn/chunks/chunk.X5WSQAGH.js +0 -24
- package/cdn/chunks/chunk.Y5GIEQSR.js +0 -11
- package/cdn/chunks/chunk.YAPO4BYB.js +0 -233
- package/cdn/chunks/chunk.YCV7T4ZY.js +0 -27
- package/cdn/chunks/chunk.YFU67HHR.js +0 -21
- package/cdn/chunks/chunk.YOUDPIMT.js +0 -11
- package/cdn/chunks/chunk.YXY2RAVD.js +0 -21
- package/cdn/chunks/chunk.YYRED2J2.js +0 -291
- package/cdn/chunks/chunk.YZRKR7ZL.js +0 -11
- package/cdn/chunks/chunk.Z4LQCJXU.js +0 -24
- package/cdn/chunks/chunk.Z6ZQWYWR.js +0 -302
- package/cdn/chunks/chunk.ZDKUZJKV.js +0 -24
- package/cdn/chunks/chunk.ZS3O4WAS.js +0 -11
- package/cdn/chunks/chunk.ZTI36HGX.js +0 -21
- package/cdn/chunks/chunk.ZYCSJZ2L.js +0 -29
- package/dist/chunks/chunk.26SCN3SY.js +0 -21
- package/dist/chunks/chunk.27KEOWRV.js +0 -25
- package/dist/chunks/chunk.2H4HZOD6.js +0 -15
- package/dist/chunks/chunk.2HBX2C7P.js +0 -286
- package/dist/chunks/chunk.32RFOP7R.js +0 -11
- package/dist/chunks/chunk.33D3GCIT.js +0 -24
- package/dist/chunks/chunk.3DIYO6WF.js +0 -337
- package/dist/chunks/chunk.3TFKS637.js +0 -127
- package/dist/chunks/chunk.3XPVHZ5A.js +0 -11
- package/dist/chunks/chunk.44BBPC6O.js +0 -33
- package/dist/chunks/chunk.4OD34TVK.js +0 -11
- package/dist/chunks/chunk.4U7K7UIY.js +0 -27
- package/dist/chunks/chunk.4WR7JYJL.js +0 -93
- package/dist/chunks/chunk.55WLK4P2.js +0 -11
- package/dist/chunks/chunk.56LN2K3K.js +0 -25
- package/dist/chunks/chunk.5M3Y4WBA.js +0 -33
- package/dist/chunks/chunk.5NIXLZLX.js +0 -24
- package/dist/chunks/chunk.5PTQY5NF.js +0 -448
- package/dist/chunks/chunk.5TA6UJLM.js +0 -11
- package/dist/chunks/chunk.5UWMRJYY.js +0 -11
- package/dist/chunks/chunk.5YB7UOMO.js +0 -11
- package/dist/chunks/chunk.63KCZ43V.js +0 -247
- package/dist/chunks/chunk.6IFES2JJ.js +0 -11
- package/dist/chunks/chunk.6QF4Y7FC.js +0 -21
- package/dist/chunks/chunk.6UHUSF4L.js +0 -290
- package/dist/chunks/chunk.72UH4ULV.js +0 -11
- package/dist/chunks/chunk.74AIVUWP.js +0 -22
- package/dist/chunks/chunk.74OIYMZN.js +0 -353
- package/dist/chunks/chunk.7JGNB53R.js +0 -11
- package/dist/chunks/chunk.7KORW5LA.js +0 -11
- package/dist/chunks/chunk.7RM7D7AW.js +0 -25
- package/dist/chunks/chunk.A5BQS54B.js +0 -11
- package/dist/chunks/chunk.AA6X6YQC.js +0 -213
- package/dist/chunks/chunk.AMXPY7VS.js +0 -21
- package/dist/chunks/chunk.ANWMKVZY.js +0 -311
- package/dist/chunks/chunk.AT6T6TWK.js +0 -90
- package/dist/chunks/chunk.AUQGVZKT.js +0 -26
- package/dist/chunks/chunk.B5WIETZI.js +0 -126
- package/dist/chunks/chunk.B7U2O2U5.js +0 -11
- package/dist/chunks/chunk.BAPFEMXS.js +0 -25
- package/dist/chunks/chunk.BCEQO4CU.js +0 -27
- package/dist/chunks/chunk.BD2RMGTO.js +0 -75
- package/dist/chunks/chunk.BEPGMGK4.js +0 -11
- package/dist/chunks/chunk.BKRXVZSM.js +0 -11
- package/dist/chunks/chunk.BM4N3O3J.js +0 -134
- package/dist/chunks/chunk.BP357A5C.js +0 -11
- package/dist/chunks/chunk.BP4OTY5C.js +0 -280
- package/dist/chunks/chunk.BQFSNMGN.js +0 -21
- package/dist/chunks/chunk.C4QY7KGQ.js +0 -44
- package/dist/chunks/chunk.C5PZ3JFD.js +0 -63
- package/dist/chunks/chunk.CBH6NG2A.js +0 -11
- package/dist/chunks/chunk.CBOBHPOM.js +0 -11
- package/dist/chunks/chunk.CDQNS2GE.js +0 -21
- package/dist/chunks/chunk.CF6EXFRU.js +0 -11
- package/dist/chunks/chunk.CKDFKLKW.js +0 -11
- package/dist/chunks/chunk.CUGHT6WI.js +0 -11
- package/dist/chunks/chunk.D2Y2HOZF.js +0 -231
- package/dist/chunks/chunk.DARJMTB3.js +0 -21
- package/dist/chunks/chunk.DLOMIVES.js +0 -11
- package/dist/chunks/chunk.DQIWF7HB.js +0 -192
- package/dist/chunks/chunk.DYEAGAGF.js +0 -361
- package/dist/chunks/chunk.EL7GRIBF.js +0 -11
- package/dist/chunks/chunk.ERDRTUL7.js +0 -384
- package/dist/chunks/chunk.ERHLGF4S.js +0 -21
- package/dist/chunks/chunk.ERHVXLZN.js +0 -11
- package/dist/chunks/chunk.EUI4TRBJ.js +0 -196
- package/dist/chunks/chunk.EXT4JQLR.js +0 -42
- package/dist/chunks/chunk.F27VUBMT.js +0 -11
- package/dist/chunks/chunk.F6CAYR2H.js +0 -135
- package/dist/chunks/chunk.FBF5EDYD.js +0 -21
- package/dist/chunks/chunk.FC7PGK5S.js +0 -315
- package/dist/chunks/chunk.FCT5MVZL.js +0 -25
- package/dist/chunks/chunk.FDLY3F3S.js +0 -21
- package/dist/chunks/chunk.FHZAMIMX.js +0 -11
- package/dist/chunks/chunk.FKFUC6BJ.js +0 -24
- package/dist/chunks/chunk.FQIVZXXR.js +0 -11
- package/dist/chunks/chunk.FQVEJRSL.js +0 -294
- package/dist/chunks/chunk.FWEZXFJV.js +0 -417
- package/dist/chunks/chunk.GDZVAMN6.js +0 -181
- package/dist/chunks/chunk.H4JVT6JX.js +0 -91
- package/dist/chunks/chunk.H5EFODDT.js +0 -28
- package/dist/chunks/chunk.HGLQ3DGB.js +0 -22
- package/dist/chunks/chunk.HKBVK3TT.js +0 -26
- package/dist/chunks/chunk.HS7K5ZOT.js +0 -837
- package/dist/chunks/chunk.HSWQEEPZ.js +0 -11
- package/dist/chunks/chunk.I3DUPZNW.js +0 -11
- package/dist/chunks/chunk.IA2HCB36.js +0 -24
- package/dist/chunks/chunk.ICKB6OFW.js +0 -11
- package/dist/chunks/chunk.IEVS7ALY.js +0 -21
- package/dist/chunks/chunk.IKELWKKX.js +0 -11
- package/dist/chunks/chunk.IO65LRYJ.js +0 -80
- package/dist/chunks/chunk.IRNEYWFA.js +0 -11
- package/dist/chunks/chunk.JA7JJLFV.js +0 -21
- package/dist/chunks/chunk.JKI3R4VQ.js +0 -11
- package/dist/chunks/chunk.JS6O25GK.js +0 -85
- package/dist/chunks/chunk.JZBJESIY.js +0 -75
- package/dist/chunks/chunk.KF6OVTLS.js +0 -25
- package/dist/chunks/chunk.KUBXEXZ6.js +0 -29
- package/dist/chunks/chunk.KUTGNM6S.js +0 -11
- package/dist/chunks/chunk.KWSXBXXB.js +0 -274
- package/dist/chunks/chunk.LAQUGVRT.js +0 -33
- package/dist/chunks/chunk.LATBGPMX.js +0 -25
- package/dist/chunks/chunk.LIZT7JBP.js +0 -813
- package/dist/chunks/chunk.LNBOM3VC.js +0 -119
- package/dist/chunks/chunk.LO467D2J.js +0 -11
- package/dist/chunks/chunk.LSAV6WD4.js +0 -21
- package/dist/chunks/chunk.LVAKCQCO.js +0 -25
- package/dist/chunks/chunk.LVFENANG.js +0 -24
- package/dist/chunks/chunk.LXF4IYOB.js +0 -21
- package/dist/chunks/chunk.MHJTPL55.js +0 -75
- package/dist/chunks/chunk.MNDRLTSV.js +0 -11
- package/dist/chunks/chunk.MRI6S4TN.js +0 -24
- package/dist/chunks/chunk.NFWO6RDS.js +0 -11
- package/dist/chunks/chunk.NG634DQV.js +0 -111
- package/dist/chunks/chunk.NKTKPK44.js +0 -961
- package/dist/chunks/chunk.NL3LSSDQ.js +0 -94
- package/dist/chunks/chunk.O5AM6SSC.js +0 -21
- package/dist/chunks/chunk.OIAVX46Z.js +0 -11
- package/dist/chunks/chunk.OR4U4EPP.js +0 -26
- package/dist/chunks/chunk.OVBI65VQ.js +0 -27
- package/dist/chunks/chunk.OX4N2IA2.js +0 -11
- package/dist/chunks/chunk.PF4AZ66T.js +0 -29
- package/dist/chunks/chunk.PLO5B4S6.js +0 -11
- package/dist/chunks/chunk.PMWDHNHO.js +0 -11
- package/dist/chunks/chunk.PNDNA4HI.js +0 -11
- package/dist/chunks/chunk.PTCP6EN4.js +0 -21
- package/dist/chunks/chunk.Q56QPZ4M.js +0 -100
- package/dist/chunks/chunk.Q6XVDXV2.js +0 -21
- package/dist/chunks/chunk.QCPGILVI.js +0 -11
- package/dist/chunks/chunk.QIHBXO5V.js +0 -227
- package/dist/chunks/chunk.QJH6QWIH.js +0 -117
- package/dist/chunks/chunk.QPED4YFH.js +0 -24
- package/dist/chunks/chunk.QPMBSRNM.js +0 -11
- package/dist/chunks/chunk.QPVYLM32.js +0 -45
- package/dist/chunks/chunk.QPWI3MV6.js +0 -11
- package/dist/chunks/chunk.QU2GNV4Y.js +0 -33
- package/dist/chunks/chunk.QUNA52M2.js +0 -11
- package/dist/chunks/chunk.R4WGQXN5.js +0 -28
- package/dist/chunks/chunk.R4XXN7QW.js +0 -11
- package/dist/chunks/chunk.RBUV6CN2.js +0 -73
- package/dist/chunks/chunk.RCPYDLGQ.js +0 -21
- package/dist/chunks/chunk.RGBGPSJY.js +0 -49
- package/dist/chunks/chunk.RI4H3S2X.js +0 -151
- package/dist/chunks/chunk.RMTVHQJI.js +0 -21
- package/dist/chunks/chunk.RQ6U7IMT.js +0 -21
- package/dist/chunks/chunk.RTDN4H6E.js +0 -293
- package/dist/chunks/chunk.RVULB4SE.js +0 -116
- package/dist/chunks/chunk.S5KPGLT3.js +0 -24
- package/dist/chunks/chunk.SF57OTIH.js +0 -11
- package/dist/chunks/chunk.SF6S7RLT.js +0 -24
- package/dist/chunks/chunk.SQEGGM4E.js +0 -21
- package/dist/chunks/chunk.SWAFGZXK.js +0 -11
- package/dist/chunks/chunk.TNXJBLNM.js +0 -29
- package/dist/chunks/chunk.TPCMAL4F.js +0 -28
- package/dist/chunks/chunk.TPT4NPGM.js +0 -28
- package/dist/chunks/chunk.TRTU5JK6.js +0 -28
- package/dist/chunks/chunk.TXKIVCF7.js +0 -11
- package/dist/chunks/chunk.UAOBBJ4A.js +0 -21
- package/dist/chunks/chunk.UBAOKYWA.js +0 -11
- package/dist/chunks/chunk.UBWNAWYR.js +0 -11
- package/dist/chunks/chunk.UDHQHGG2.js +0 -27
- package/dist/chunks/chunk.UH6P4FWK.js +0 -100
- package/dist/chunks/chunk.USJTO4EP.js +0 -24
- package/dist/chunks/chunk.UTBO4L2M.js +0 -11
- package/dist/chunks/chunk.VJFBDLKI.js +0 -491
- package/dist/chunks/chunk.VJG52JZ7.js +0 -11
- package/dist/chunks/chunk.VLWVHBHL.js +0 -59
- package/dist/chunks/chunk.VRAYC4CI.js +0 -896
- package/dist/chunks/chunk.VSNS7XIF.js +0 -67
- package/dist/chunks/chunk.VTUS2YUI.js +0 -24
- package/dist/chunks/chunk.VVZAPWSA.js +0 -11
- package/dist/chunks/chunk.W4BSST62.js +0 -147
- package/dist/chunks/chunk.W6PTQQHW.js +0 -11
- package/dist/chunks/chunk.W7ASDEAN.js +0 -50
- package/dist/chunks/chunk.WO6GHN43.js +0 -370
- package/dist/chunks/chunk.WODF4XBA.js +0 -11
- package/dist/chunks/chunk.WXSHLGFS.js +0 -11
- package/dist/chunks/chunk.X5XFTZBZ.js +0 -45
- package/dist/chunks/chunk.XERD2JC5.js +0 -949
- package/dist/chunks/chunk.XGEQK4UC.js +0 -11
- package/dist/chunks/chunk.XGQTWGTU.js +0 -170
- package/dist/chunks/chunk.XGZWPJIR.js +0 -29
- package/dist/chunks/chunk.XI7BPGCX.js +0 -259
- package/dist/chunks/chunk.XNXXDYDX.js +0 -115
- package/dist/chunks/chunk.XQIVWDNM.js +0 -11
- package/dist/chunks/chunk.XTPBLJJJ.js +0 -397
- package/dist/chunks/chunk.Y22GB2L2.js +0 -24
- package/dist/chunks/chunk.YGZNTFCL.js +0 -109
- package/dist/chunks/chunk.YIDP5TFY.js +0 -550
- package/dist/chunks/chunk.YQSZOLIX.js +0 -34
- package/dist/chunks/chunk.YZQLNNVX.js +0 -21
- package/dist/chunks/chunk.Z27JQL43.js +0 -25
- package/dist/chunks/chunk.ZD4MLQDO.js +0 -11
- package/dist/chunks/chunk.ZDJBATKS.js +0 -25
- package/dist/chunks/chunk.ZF27VTQX.js +0 -26
- package/dist/chunks/chunk.ZLMCQWKF.js +0 -42
- package/dist/chunks/chunk.ZQH63ABB.js +0 -11
- package/dist/chunks/chunk.ZT2CCJRM.js +0 -11
- package/dist/chunks/chunk.ZT73RQQP.js +0 -11
|
@@ -0,0 +1,896 @@
|
|
|
1
|
+
import {
|
|
2
|
+
date_picker_styles_default
|
|
3
|
+
} from "./chunk.YQYPY5UZ.js";
|
|
4
|
+
import {
|
|
5
|
+
CwPopup
|
|
6
|
+
} from "./chunk.USKQZ7GU.js";
|
|
7
|
+
import {
|
|
8
|
+
form_control_styles_default
|
|
9
|
+
} from "./chunk.YBI2MSEM.js";
|
|
10
|
+
import {
|
|
11
|
+
FormControlController
|
|
12
|
+
} from "./chunk.PH2VNONO.js";
|
|
13
|
+
import {
|
|
14
|
+
CwIconButton
|
|
15
|
+
} from "./chunk.CBOW7HNP.js";
|
|
16
|
+
import {
|
|
17
|
+
getAnimation,
|
|
18
|
+
setDefaultAnimation
|
|
19
|
+
} from "./chunk.SPWJX47D.js";
|
|
20
|
+
import {
|
|
21
|
+
waitForEvent
|
|
22
|
+
} from "./chunk.B4BZKR24.js";
|
|
23
|
+
import {
|
|
24
|
+
animateTo,
|
|
25
|
+
stopAnimations
|
|
26
|
+
} from "./chunk.TJQYJP53.js";
|
|
27
|
+
import {
|
|
28
|
+
LocalizeController
|
|
29
|
+
} from "./chunk.DVGAJ3DA.js";
|
|
30
|
+
import {
|
|
31
|
+
HasSlotController
|
|
32
|
+
} from "./chunk.BVGZUUCX.js";
|
|
33
|
+
import {
|
|
34
|
+
CwIcon
|
|
35
|
+
} from "./chunk.3AFGTKZX.js";
|
|
36
|
+
import {
|
|
37
|
+
watch
|
|
38
|
+
} from "./chunk.GQZ7EGMM.js";
|
|
39
|
+
import {
|
|
40
|
+
component_styles_default
|
|
41
|
+
} from "./chunk.TUVJKY7S.js";
|
|
42
|
+
import {
|
|
43
|
+
CwElement
|
|
44
|
+
} from "./chunk.NB4MG53P.js";
|
|
45
|
+
import {
|
|
46
|
+
__decorateClass
|
|
47
|
+
} from "./chunk.Q44EX5TP.js";
|
|
48
|
+
|
|
49
|
+
// src/components/date-picker/date-picker.component.ts
|
|
50
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
51
|
+
import { html } from "lit";
|
|
52
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
53
|
+
import { property, query, state } from "lit/decorators.js";
|
|
54
|
+
var pad = (value) => String(value).padStart(2, "0");
|
|
55
|
+
var range = (start, end) => Array.from({ length: end - start + 1 }, (_, i) => start + i);
|
|
56
|
+
function makeDate(year, month, day) {
|
|
57
|
+
return new Date(year, month, day);
|
|
58
|
+
}
|
|
59
|
+
function isSameDay(a, b) {
|
|
60
|
+
return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();
|
|
61
|
+
}
|
|
62
|
+
function parseDateValue(value) {
|
|
63
|
+
const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(value.trim());
|
|
64
|
+
if (!match) {
|
|
65
|
+
return void 0;
|
|
66
|
+
}
|
|
67
|
+
const year = Number(match[1]);
|
|
68
|
+
const month = Number(match[2]);
|
|
69
|
+
const day = Number(match[3]);
|
|
70
|
+
const date = makeDate(year, month - 1, day);
|
|
71
|
+
if (date.getFullYear() !== year || date.getMonth() !== month - 1 || date.getDate() !== day) {
|
|
72
|
+
return void 0;
|
|
73
|
+
}
|
|
74
|
+
return date;
|
|
75
|
+
}
|
|
76
|
+
function formatDateValue(date) {
|
|
77
|
+
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
|
|
78
|
+
}
|
|
79
|
+
function getMonthGrid(year, month, firstDayOfWeek, selected, min, max) {
|
|
80
|
+
const today = /* @__PURE__ */ new Date();
|
|
81
|
+
const firstOfMonth = makeDate(year, month, 1);
|
|
82
|
+
const startOffset = (firstOfMonth.getDay() - firstDayOfWeek + 7) % 7;
|
|
83
|
+
const start = makeDate(year, month, 1 - startOffset);
|
|
84
|
+
return range(0, 41).map((index) => {
|
|
85
|
+
const date = makeDate(start.getFullYear(), start.getMonth(), start.getDate() + index);
|
|
86
|
+
return {
|
|
87
|
+
date,
|
|
88
|
+
day: date.getDate(),
|
|
89
|
+
isCurrentMonth: date.getMonth() === month,
|
|
90
|
+
isToday: isSameDay(date, today),
|
|
91
|
+
isSelected: selected !== void 0 && isSameDay(date, selected),
|
|
92
|
+
isDisabled: min !== void 0 && date < min || max !== void 0 && date > max
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
var CwDatePicker = class extends CwElement {
|
|
97
|
+
constructor() {
|
|
98
|
+
super(...arguments);
|
|
99
|
+
this.formControlController = new FormControlController(this, {
|
|
100
|
+
assumeInteractionOn: ["cw-blur", "cw-input"]
|
|
101
|
+
});
|
|
102
|
+
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
103
|
+
this.localize = new LocalizeController(this);
|
|
104
|
+
this.hasFocus = false;
|
|
105
|
+
this.focusedDate = /* @__PURE__ */ new Date();
|
|
106
|
+
this.valueHasChanged = false;
|
|
107
|
+
this.name = "";
|
|
108
|
+
this._value = "";
|
|
109
|
+
this.defaultValue = "";
|
|
110
|
+
this.min = "";
|
|
111
|
+
this.max = "";
|
|
112
|
+
this.size = "medium";
|
|
113
|
+
this.placeholder = "";
|
|
114
|
+
this.disabled = false;
|
|
115
|
+
this.clearable = false;
|
|
116
|
+
this.open = false;
|
|
117
|
+
this.hoist = false;
|
|
118
|
+
this.filled = false;
|
|
119
|
+
this.pill = false;
|
|
120
|
+
this.label = "";
|
|
121
|
+
this.placement = "bottom";
|
|
122
|
+
this.helpText = "";
|
|
123
|
+
this.form = "";
|
|
124
|
+
this.required = false;
|
|
125
|
+
this.handleDocumentFocusIn = (event) => {
|
|
126
|
+
const path = event.composedPath();
|
|
127
|
+
if (this && !path.includes(this)) {
|
|
128
|
+
this.hide();
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
this.handleDocumentMouseDown = (event) => {
|
|
132
|
+
const path = event.composedPath();
|
|
133
|
+
if (this && !path.includes(this)) {
|
|
134
|
+
this.hide();
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
this.handleDocumentKeyDown = (event) => {
|
|
138
|
+
const target = event.target;
|
|
139
|
+
const isClearButton = target.closest(".date-picker__clear") !== null;
|
|
140
|
+
if (isClearButton) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
if (event.key === "Escape" && this.open && !this.closeWatcher) {
|
|
144
|
+
event.preventDefault();
|
|
145
|
+
event.stopPropagation();
|
|
146
|
+
this.hide();
|
|
147
|
+
this.displayInput.focus({ preventScroll: true });
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
151
|
+
event.preventDefault();
|
|
152
|
+
if (!this.open) {
|
|
153
|
+
this.show();
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
this.selectDate(this.focusedDate);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const navigationKeys = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"];
|
|
160
|
+
if (navigationKeys.includes(event.key)) {
|
|
161
|
+
event.preventDefault();
|
|
162
|
+
if (!this.open) {
|
|
163
|
+
this.show();
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
const isRtl = this.localize.dir() === "rtl";
|
|
167
|
+
switch (event.key) {
|
|
168
|
+
case "ArrowUp":
|
|
169
|
+
this.moveFocusedDate(-7);
|
|
170
|
+
break;
|
|
171
|
+
case "ArrowDown":
|
|
172
|
+
this.moveFocusedDate(7);
|
|
173
|
+
break;
|
|
174
|
+
case "ArrowLeft":
|
|
175
|
+
this.moveFocusedDate(isRtl ? 1 : -1);
|
|
176
|
+
break;
|
|
177
|
+
case "ArrowRight":
|
|
178
|
+
this.moveFocusedDate(isRtl ? -1 : 1);
|
|
179
|
+
break;
|
|
180
|
+
case "Home":
|
|
181
|
+
this.moveFocusedDateToStartOfWeek();
|
|
182
|
+
break;
|
|
183
|
+
case "End":
|
|
184
|
+
this.moveFocusedDateToEndOfWeek();
|
|
185
|
+
break;
|
|
186
|
+
case "PageUp":
|
|
187
|
+
if (event.shiftKey) {
|
|
188
|
+
this.navigateYear(-1);
|
|
189
|
+
} else {
|
|
190
|
+
this.navigateMonth(-1);
|
|
191
|
+
}
|
|
192
|
+
break;
|
|
193
|
+
case "PageDown":
|
|
194
|
+
if (event.shiftKey) {
|
|
195
|
+
this.navigateYear(1);
|
|
196
|
+
} else {
|
|
197
|
+
this.navigateMonth(1);
|
|
198
|
+
}
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
get value() {
|
|
205
|
+
return this._value;
|
|
206
|
+
}
|
|
207
|
+
set value(val) {
|
|
208
|
+
if (this._value === val) {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
this.valueHasChanged = true;
|
|
212
|
+
this._value = val;
|
|
213
|
+
}
|
|
214
|
+
/** Gets the validity state object */
|
|
215
|
+
get validity() {
|
|
216
|
+
return this.valueInput.validity;
|
|
217
|
+
}
|
|
218
|
+
/** Gets the validation message */
|
|
219
|
+
get validationMessage() {
|
|
220
|
+
return this.valueInput.validationMessage;
|
|
221
|
+
}
|
|
222
|
+
// The current value parsed into a Date, or `undefined` if the value is empty/invalid
|
|
223
|
+
get parsedValue() {
|
|
224
|
+
return parseDateValue(this.value);
|
|
225
|
+
}
|
|
226
|
+
// The minimum selectable date, or `undefined` if `min` is empty/invalid
|
|
227
|
+
get parsedMin() {
|
|
228
|
+
return parseDateValue(this.min);
|
|
229
|
+
}
|
|
230
|
+
// The maximum selectable date, or `undefined` if `max` is empty/invalid
|
|
231
|
+
get parsedMax() {
|
|
232
|
+
return parseDateValue(this.max);
|
|
233
|
+
}
|
|
234
|
+
connectedCallback() {
|
|
235
|
+
super.connectedCallback();
|
|
236
|
+
this.open = false;
|
|
237
|
+
}
|
|
238
|
+
addOpenListeners() {
|
|
239
|
+
var _a;
|
|
240
|
+
document.addEventListener("focusin", this.handleDocumentFocusIn);
|
|
241
|
+
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
242
|
+
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
243
|
+
if (this.getRootNode() !== document) {
|
|
244
|
+
this.getRootNode().addEventListener("focusin", this.handleDocumentFocusIn);
|
|
245
|
+
}
|
|
246
|
+
if ("CloseWatcher" in window) {
|
|
247
|
+
(_a = this.closeWatcher) == null ? void 0 : _a.destroy();
|
|
248
|
+
this.closeWatcher = new CloseWatcher();
|
|
249
|
+
this.closeWatcher.onclose = () => {
|
|
250
|
+
if (this.open) {
|
|
251
|
+
this.hide();
|
|
252
|
+
this.displayInput.focus({ preventScroll: true });
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
removeOpenListeners() {
|
|
258
|
+
var _a;
|
|
259
|
+
document.removeEventListener("focusin", this.handleDocumentFocusIn);
|
|
260
|
+
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
261
|
+
document.removeEventListener("mousedown", this.handleDocumentMouseDown);
|
|
262
|
+
if (this.getRootNode() !== document) {
|
|
263
|
+
this.getRootNode().removeEventListener("focusin", this.handleDocumentFocusIn);
|
|
264
|
+
}
|
|
265
|
+
(_a = this.closeWatcher) == null ? void 0 : _a.destroy();
|
|
266
|
+
}
|
|
267
|
+
handleFocus() {
|
|
268
|
+
this.hasFocus = true;
|
|
269
|
+
this.emit("cw-focus");
|
|
270
|
+
}
|
|
271
|
+
handleBlur() {
|
|
272
|
+
this.hasFocus = false;
|
|
273
|
+
this.emit("cw-blur");
|
|
274
|
+
}
|
|
275
|
+
handleLabelClick() {
|
|
276
|
+
this.displayInput.focus();
|
|
277
|
+
}
|
|
278
|
+
handleComboboxMouseDown(event) {
|
|
279
|
+
const path = event.composedPath();
|
|
280
|
+
const isIconButton = path.some((el) => el instanceof Element && el.tagName.toLowerCase() === "cw-icon-button");
|
|
281
|
+
if (this.disabled || isIconButton) {
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
event.preventDefault();
|
|
285
|
+
this.displayInput.focus({ preventScroll: true });
|
|
286
|
+
this.open = !this.open;
|
|
287
|
+
}
|
|
288
|
+
handleComboboxKeyDown(event) {
|
|
289
|
+
if (event.key === "Tab") {
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
event.stopPropagation();
|
|
293
|
+
this.handleDocumentKeyDown(event);
|
|
294
|
+
}
|
|
295
|
+
handleClearClick(event) {
|
|
296
|
+
event.stopPropagation();
|
|
297
|
+
if (this.value !== "") {
|
|
298
|
+
this.setDateValue(void 0);
|
|
299
|
+
this.displayInput.focus({ preventScroll: true });
|
|
300
|
+
this.updateComplete.then(() => {
|
|
301
|
+
this.emit("cw-clear");
|
|
302
|
+
this.emit("cw-input");
|
|
303
|
+
this.emit("cw-change");
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
handleClearMouseDown(event) {
|
|
308
|
+
event.stopPropagation();
|
|
309
|
+
event.preventDefault();
|
|
310
|
+
}
|
|
311
|
+
handleCalendarMouseDown(event) {
|
|
312
|
+
event.preventDefault();
|
|
313
|
+
}
|
|
314
|
+
handleDayClick(event) {
|
|
315
|
+
var _a;
|
|
316
|
+
const target = event.target;
|
|
317
|
+
const dayEl = target.closest(".date-picker__day");
|
|
318
|
+
if (!dayEl || this.disabled || dayEl.getAttribute("aria-disabled") === "true") {
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
const date = parseDateValue((_a = dayEl.dataset.date) != null ? _a : "");
|
|
322
|
+
if (!date) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
this.selectDate(date);
|
|
326
|
+
}
|
|
327
|
+
handlePreviousMonthClick() {
|
|
328
|
+
this.navigateMonth(-1);
|
|
329
|
+
this.displayInput.focus({ preventScroll: true });
|
|
330
|
+
}
|
|
331
|
+
handleNextMonthClick() {
|
|
332
|
+
this.navigateMonth(1);
|
|
333
|
+
this.displayInput.focus({ preventScroll: true });
|
|
334
|
+
}
|
|
335
|
+
handleInvalid(event) {
|
|
336
|
+
this.formControlController.setValidity(false);
|
|
337
|
+
this.formControlController.emitInvalidEvent(event);
|
|
338
|
+
}
|
|
339
|
+
// Determines the first day of the week (0 = Sunday, 6 = Saturday), falling back to the page's locale and then Sunday
|
|
340
|
+
getFirstDayOfWeek() {
|
|
341
|
+
var _a, _b;
|
|
342
|
+
if (this.firstDayOfWeek !== void 0) {
|
|
343
|
+
return (this.firstDayOfWeek % 7 + 7) % 7;
|
|
344
|
+
}
|
|
345
|
+
const locale = new Intl.Locale(this.localize.lang());
|
|
346
|
+
const firstDay = (_b = (_a = locale.getWeekInfo) == null ? void 0 : _a.call(locale)) == null ? void 0 : _b.firstDay;
|
|
347
|
+
return firstDay !== void 0 ? firstDay % 7 : 0;
|
|
348
|
+
}
|
|
349
|
+
// Returns the short and long localized names of each weekday, starting from the first day of the week
|
|
350
|
+
getWeekdayLabels(firstDayOfWeek) {
|
|
351
|
+
const shortFormat = new Intl.DateTimeFormat(this.localize.lang(), { weekday: "short" });
|
|
352
|
+
const longFormat = new Intl.DateTimeFormat(this.localize.lang(), { weekday: "long" });
|
|
353
|
+
return range(0, 6).map((offset) => {
|
|
354
|
+
const date = makeDate(2023, 0, 1 + (firstDayOfWeek + offset) % 7);
|
|
355
|
+
return { short: shortFormat.format(date), long: longFormat.format(date) };
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
// Returns the localized "Month YYYY" label for the calendar header
|
|
359
|
+
getHeaderLabel(date) {
|
|
360
|
+
return new Intl.DateTimeFormat(this.localize.lang(), { month: "long", year: "numeric" }).format(date);
|
|
361
|
+
}
|
|
362
|
+
// Returns the full localized label for a day, used for its accessible name
|
|
363
|
+
getDayLabel(date) {
|
|
364
|
+
return new Intl.DateTimeFormat(this.localize.lang(), {
|
|
365
|
+
weekday: "long",
|
|
366
|
+
month: "long",
|
|
367
|
+
day: "numeric",
|
|
368
|
+
year: "numeric"
|
|
369
|
+
}).format(date);
|
|
370
|
+
}
|
|
371
|
+
// Formats the current value for display in the input
|
|
372
|
+
get displayLabel() {
|
|
373
|
+
const date = this.parsedValue;
|
|
374
|
+
if (!date) {
|
|
375
|
+
return "";
|
|
376
|
+
}
|
|
377
|
+
return new Intl.DateTimeFormat(this.localize.lang(), { year: "numeric", month: "short", day: "numeric" }).format(
|
|
378
|
+
date
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
moveFocusedDate(deltaDays) {
|
|
382
|
+
const current = this.focusedDate;
|
|
383
|
+
this.focusedDate = makeDate(current.getFullYear(), current.getMonth(), current.getDate() + deltaDays);
|
|
384
|
+
}
|
|
385
|
+
moveFocusedDateToStartOfWeek() {
|
|
386
|
+
const current = this.focusedDate;
|
|
387
|
+
const firstDayOfWeek = this.getFirstDayOfWeek();
|
|
388
|
+
const offset = (current.getDay() - firstDayOfWeek + 7) % 7;
|
|
389
|
+
this.focusedDate = makeDate(current.getFullYear(), current.getMonth(), current.getDate() - offset);
|
|
390
|
+
}
|
|
391
|
+
moveFocusedDateToEndOfWeek() {
|
|
392
|
+
const current = this.focusedDate;
|
|
393
|
+
const firstDayOfWeek = this.getFirstDayOfWeek();
|
|
394
|
+
const offset = (current.getDay() - firstDayOfWeek + 7) % 7;
|
|
395
|
+
this.focusedDate = makeDate(current.getFullYear(), current.getMonth(), current.getDate() + (6 - offset));
|
|
396
|
+
}
|
|
397
|
+
// Moves the focused date to the same day in the previous/next month, clamping to the last day of that month
|
|
398
|
+
navigateMonth(delta) {
|
|
399
|
+
const current = this.focusedDate;
|
|
400
|
+
const daysInTargetMonth = makeDate(current.getFullYear(), current.getMonth() + delta + 1, 0).getDate();
|
|
401
|
+
this.focusedDate = makeDate(
|
|
402
|
+
current.getFullYear(),
|
|
403
|
+
current.getMonth() + delta,
|
|
404
|
+
Math.min(current.getDate(), daysInTargetMonth)
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
// Moves the focused date to the same day in the previous/next year, clamping to the last day of that month
|
|
408
|
+
navigateYear(delta) {
|
|
409
|
+
const current = this.focusedDate;
|
|
410
|
+
const daysInTargetMonth = makeDate(current.getFullYear() + delta, current.getMonth() + 1, 0).getDate();
|
|
411
|
+
this.focusedDate = makeDate(
|
|
412
|
+
current.getFullYear() + delta,
|
|
413
|
+
current.getMonth(),
|
|
414
|
+
Math.min(current.getDate(), daysInTargetMonth)
|
|
415
|
+
);
|
|
416
|
+
}
|
|
417
|
+
isDateDisabled(date) {
|
|
418
|
+
const min = this.parsedMin;
|
|
419
|
+
const max = this.parsedMax;
|
|
420
|
+
return min !== void 0 && date < min || max !== void 0 && date > max;
|
|
421
|
+
}
|
|
422
|
+
selectDate(date) {
|
|
423
|
+
if (this.isDateDisabled(date)) {
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
const oldValue = this.value;
|
|
427
|
+
this.focusedDate = date;
|
|
428
|
+
this.setDateValue(date);
|
|
429
|
+
if (this.value !== oldValue) {
|
|
430
|
+
this.updateComplete.then(() => {
|
|
431
|
+
this.emit("cw-input");
|
|
432
|
+
this.emit("cw-change");
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
this.hide();
|
|
436
|
+
this.displayInput.focus({ preventScroll: true });
|
|
437
|
+
}
|
|
438
|
+
setDateValue(date) {
|
|
439
|
+
this.valueHasChanged = true;
|
|
440
|
+
this.value = date ? formatDateValue(date) : "";
|
|
441
|
+
}
|
|
442
|
+
// Determines which date should receive focus when the calendar opens
|
|
443
|
+
getInitialFocusDate() {
|
|
444
|
+
const value = this.parsedValue;
|
|
445
|
+
if (value) {
|
|
446
|
+
return value;
|
|
447
|
+
}
|
|
448
|
+
const today = makeDate((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate());
|
|
449
|
+
const min = this.parsedMin;
|
|
450
|
+
const max = this.parsedMax;
|
|
451
|
+
if (min !== void 0 && today < min) {
|
|
452
|
+
return min;
|
|
453
|
+
}
|
|
454
|
+
if (max !== void 0 && today > max) {
|
|
455
|
+
return max;
|
|
456
|
+
}
|
|
457
|
+
return today;
|
|
458
|
+
}
|
|
459
|
+
renderDay(day) {
|
|
460
|
+
const dateString = formatDateValue(day.date);
|
|
461
|
+
const isFocused = isSameDay(day.date, this.focusedDate);
|
|
462
|
+
return html`
|
|
463
|
+
<span
|
|
464
|
+
id="date-picker-day-${dateString}"
|
|
465
|
+
part="day"
|
|
466
|
+
role="gridcell"
|
|
467
|
+
class=${classMap({
|
|
468
|
+
"date-picker__day": true,
|
|
469
|
+
"date-picker__day--adjacent": !day.isCurrentMonth,
|
|
470
|
+
"date-picker__day--today": day.isToday,
|
|
471
|
+
"date-picker__day--selected": day.isSelected,
|
|
472
|
+
"date-picker__day--disabled": day.isDisabled,
|
|
473
|
+
"date-picker__day--focused": isFocused
|
|
474
|
+
})}
|
|
475
|
+
aria-selected=${day.isSelected ? "true" : "false"}
|
|
476
|
+
aria-disabled=${day.isDisabled ? "true" : "false"}
|
|
477
|
+
aria-current=${day.isToday ? "date" : "false"}
|
|
478
|
+
aria-label=${this.getDayLabel(day.date)}
|
|
479
|
+
data-date=${dateString}
|
|
480
|
+
>
|
|
481
|
+
${day.day}
|
|
482
|
+
</span>
|
|
483
|
+
`;
|
|
484
|
+
}
|
|
485
|
+
renderCalendar() {
|
|
486
|
+
const firstDayOfWeek = this.getFirstDayOfWeek();
|
|
487
|
+
const weekdays = this.getWeekdayLabels(firstDayOfWeek);
|
|
488
|
+
const grid = getMonthGrid(
|
|
489
|
+
this.focusedDate.getFullYear(),
|
|
490
|
+
this.focusedDate.getMonth(),
|
|
491
|
+
firstDayOfWeek,
|
|
492
|
+
this.parsedValue,
|
|
493
|
+
this.parsedMin,
|
|
494
|
+
this.parsedMax
|
|
495
|
+
);
|
|
496
|
+
const weeks = range(0, 5).map((week) => grid.slice(week * 7, week * 7 + 7));
|
|
497
|
+
return html`
|
|
498
|
+
<div
|
|
499
|
+
id="calendar"
|
|
500
|
+
part="calendar"
|
|
501
|
+
class="date-picker__calendar"
|
|
502
|
+
hidden
|
|
503
|
+
@mousedown=${this.handleCalendarMouseDown}
|
|
504
|
+
@mouseup=${this.handleDayClick}
|
|
505
|
+
>
|
|
506
|
+
<div part="header" class="date-picker__header">
|
|
507
|
+
<cw-icon-button
|
|
508
|
+
part="previous-button"
|
|
509
|
+
exportparts="base:previous-button__base"
|
|
510
|
+
class="date-picker__previous"
|
|
511
|
+
name="chevron-left"
|
|
512
|
+
library="system"
|
|
513
|
+
label=${this.localize.term("previousMonth")}
|
|
514
|
+
@click=${this.handlePreviousMonthClick}
|
|
515
|
+
></cw-icon-button>
|
|
516
|
+
|
|
517
|
+
<span part="heading" class="date-picker__heading" aria-live="polite">
|
|
518
|
+
${this.getHeaderLabel(this.focusedDate)}
|
|
519
|
+
</span>
|
|
520
|
+
|
|
521
|
+
<cw-icon-button
|
|
522
|
+
part="next-button"
|
|
523
|
+
exportparts="base:next-button__base"
|
|
524
|
+
class="date-picker__next"
|
|
525
|
+
name="chevron-right"
|
|
526
|
+
library="system"
|
|
527
|
+
label=${this.localize.term("nextMonth")}
|
|
528
|
+
@click=${this.handleNextMonthClick}
|
|
529
|
+
></cw-icon-button>
|
|
530
|
+
</div>
|
|
531
|
+
|
|
532
|
+
<div
|
|
533
|
+
id="grid"
|
|
534
|
+
part="grid"
|
|
535
|
+
class="date-picker__grid"
|
|
536
|
+
role="grid"
|
|
537
|
+
aria-label=${this.getHeaderLabel(this.focusedDate)}
|
|
538
|
+
>
|
|
539
|
+
<div part="weekdays" class="date-picker__weekdays" role="row">
|
|
540
|
+
${weekdays.map(
|
|
541
|
+
(weekday) => html`
|
|
542
|
+
<span part="weekday" class="date-picker__weekday" role="columnheader" aria-label=${weekday.long}>
|
|
543
|
+
${weekday.short}
|
|
544
|
+
</span>
|
|
545
|
+
`
|
|
546
|
+
)}
|
|
547
|
+
</div>
|
|
548
|
+
|
|
549
|
+
${weeks.map(
|
|
550
|
+
(week) => html`
|
|
551
|
+
<div part="row" class="date-picker__row" role="row">${week.map((day) => this.renderDay(day))}</div>
|
|
552
|
+
`
|
|
553
|
+
)}
|
|
554
|
+
</div>
|
|
555
|
+
</div>
|
|
556
|
+
`;
|
|
557
|
+
}
|
|
558
|
+
handleDisabledChange() {
|
|
559
|
+
if (this.disabled) {
|
|
560
|
+
this.open = false;
|
|
561
|
+
this.handleOpenChange();
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
attributeChangedCallback(name, oldVal, newVal) {
|
|
565
|
+
super.attributeChangedCallback(name, oldVal, newVal);
|
|
566
|
+
if (name === "value") {
|
|
567
|
+
const cachedValueHasChanged = this.valueHasChanged;
|
|
568
|
+
this.value = this.defaultValue;
|
|
569
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
handleValueChange() {
|
|
573
|
+
if (!this.valueHasChanged) {
|
|
574
|
+
const cachedValueHasChanged = this.valueHasChanged;
|
|
575
|
+
this.value = this.defaultValue;
|
|
576
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
577
|
+
}
|
|
578
|
+
this.updateComplete.then(() => this.formControlController.updateValidity());
|
|
579
|
+
}
|
|
580
|
+
async handleOpenChange() {
|
|
581
|
+
if (this.open && !this.disabled) {
|
|
582
|
+
this.emit("cw-show");
|
|
583
|
+
this.addOpenListeners();
|
|
584
|
+
this.focusedDate = this.getInitialFocusDate();
|
|
585
|
+
await stopAnimations(this);
|
|
586
|
+
this.calendar.hidden = false;
|
|
587
|
+
this.popup.active = true;
|
|
588
|
+
const { keyframes, options } = getAnimation(this, "date-picker.show", { dir: this.localize.dir() });
|
|
589
|
+
await animateTo(this.popup.popup, keyframes, options);
|
|
590
|
+
this.emit("cw-after-show");
|
|
591
|
+
} else {
|
|
592
|
+
this.emit("cw-hide");
|
|
593
|
+
this.removeOpenListeners();
|
|
594
|
+
await stopAnimations(this);
|
|
595
|
+
const { keyframes, options } = getAnimation(this, "date-picker.hide", { dir: this.localize.dir() });
|
|
596
|
+
await animateTo(this.popup.popup, keyframes, options);
|
|
597
|
+
this.calendar.hidden = true;
|
|
598
|
+
this.popup.active = false;
|
|
599
|
+
this.emit("cw-after-hide");
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
/** Shows the calendar. */
|
|
603
|
+
async show() {
|
|
604
|
+
if (this.open || this.disabled) {
|
|
605
|
+
return void 0;
|
|
606
|
+
}
|
|
607
|
+
this.open = true;
|
|
608
|
+
return waitForEvent(this, "cw-after-show");
|
|
609
|
+
}
|
|
610
|
+
/** Hides the calendar. */
|
|
611
|
+
async hide() {
|
|
612
|
+
if (!this.open || this.disabled) {
|
|
613
|
+
return void 0;
|
|
614
|
+
}
|
|
615
|
+
this.open = false;
|
|
616
|
+
return waitForEvent(this, "cw-after-hide");
|
|
617
|
+
}
|
|
618
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
619
|
+
checkValidity() {
|
|
620
|
+
return this.valueInput.checkValidity();
|
|
621
|
+
}
|
|
622
|
+
/** Gets the associated form, if one exists. */
|
|
623
|
+
getForm() {
|
|
624
|
+
return this.formControlController.getForm();
|
|
625
|
+
}
|
|
626
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
627
|
+
reportValidity() {
|
|
628
|
+
return this.valueInput.reportValidity();
|
|
629
|
+
}
|
|
630
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
631
|
+
setCustomValidity(message) {
|
|
632
|
+
this.valueInput.setCustomValidity(message);
|
|
633
|
+
this.formControlController.updateValidity();
|
|
634
|
+
}
|
|
635
|
+
/** Sets focus on the control. */
|
|
636
|
+
focus(options) {
|
|
637
|
+
this.displayInput.focus(options);
|
|
638
|
+
}
|
|
639
|
+
/** Removes focus from the control. */
|
|
640
|
+
blur() {
|
|
641
|
+
this.displayInput.blur();
|
|
642
|
+
}
|
|
643
|
+
render() {
|
|
644
|
+
const hasLabelSlot = this.hasSlotController.test("label");
|
|
645
|
+
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
646
|
+
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
647
|
+
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
648
|
+
const hasClearIcon = this.clearable && !this.disabled && this.value.length > 0;
|
|
649
|
+
const isPlaceholderVisible = this.placeholder && this.value.length === 0;
|
|
650
|
+
const activeDescendant = this.open ? `date-picker-day-${formatDateValue(this.focusedDate)}` : void 0;
|
|
651
|
+
return html`
|
|
652
|
+
<div
|
|
653
|
+
part="form-control"
|
|
654
|
+
class=${classMap({
|
|
655
|
+
"form-control": true,
|
|
656
|
+
"form-control--small": this.size === "small",
|
|
657
|
+
"form-control--medium": this.size === "medium",
|
|
658
|
+
"form-control--large": this.size === "large",
|
|
659
|
+
"form-control--has-label": hasLabel,
|
|
660
|
+
"form-control--has-help-text": hasHelpText
|
|
661
|
+
})}
|
|
662
|
+
>
|
|
663
|
+
<label
|
|
664
|
+
id="label"
|
|
665
|
+
part="form-control-label"
|
|
666
|
+
class="form-control__label"
|
|
667
|
+
aria-hidden=${hasLabel ? "false" : "true"}
|
|
668
|
+
@click=${this.handleLabelClick}
|
|
669
|
+
>
|
|
670
|
+
<slot name="label">${this.label}</slot>
|
|
671
|
+
</label>
|
|
672
|
+
|
|
673
|
+
<div part="form-control-input" class="form-control-input">
|
|
674
|
+
<cw-popup
|
|
675
|
+
class=${classMap({
|
|
676
|
+
"date-picker": true,
|
|
677
|
+
"date-picker--standard": true,
|
|
678
|
+
"date-picker--filled": this.filled,
|
|
679
|
+
"date-picker--pill": this.pill,
|
|
680
|
+
"date-picker--open": this.open,
|
|
681
|
+
"date-picker--disabled": this.disabled,
|
|
682
|
+
"date-picker--focused": this.hasFocus,
|
|
683
|
+
"date-picker--placeholder-visible": isPlaceholderVisible,
|
|
684
|
+
"date-picker--top": this.placement === "top",
|
|
685
|
+
"date-picker--bottom": this.placement === "bottom",
|
|
686
|
+
"date-picker--small": this.size === "small",
|
|
687
|
+
"date-picker--medium": this.size === "medium",
|
|
688
|
+
"date-picker--large": this.size === "large"
|
|
689
|
+
})}
|
|
690
|
+
placement=${this.placement}
|
|
691
|
+
strategy=${this.hoist ? "fixed" : "absolute"}
|
|
692
|
+
flip
|
|
693
|
+
shift
|
|
694
|
+
auto-size="vertical"
|
|
695
|
+
auto-size-padding="10"
|
|
696
|
+
>
|
|
697
|
+
<div
|
|
698
|
+
part="combobox"
|
|
699
|
+
class="date-picker__combobox"
|
|
700
|
+
slot="anchor"
|
|
701
|
+
@keydown=${this.handleComboboxKeyDown}
|
|
702
|
+
@mousedown=${this.handleComboboxMouseDown}
|
|
703
|
+
>
|
|
704
|
+
<slot part="prefix" name="prefix" class="date-picker__prefix"></slot>
|
|
705
|
+
|
|
706
|
+
<input
|
|
707
|
+
part="display-input"
|
|
708
|
+
class="date-picker__display-input"
|
|
709
|
+
type="text"
|
|
710
|
+
placeholder=${this.placeholder}
|
|
711
|
+
.disabled=${this.disabled}
|
|
712
|
+
.value=${this.displayLabel}
|
|
713
|
+
autocomplete="off"
|
|
714
|
+
spellcheck="false"
|
|
715
|
+
autocapitalize="off"
|
|
716
|
+
readonly
|
|
717
|
+
role="combobox"
|
|
718
|
+
aria-controls="grid"
|
|
719
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
720
|
+
aria-haspopup="grid"
|
|
721
|
+
aria-labelledby="label"
|
|
722
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
723
|
+
aria-describedby="help-text"
|
|
724
|
+
aria-activedescendant=${ifDefined(activeDescendant)}
|
|
725
|
+
tabindex="0"
|
|
726
|
+
@focus=${this.handleFocus}
|
|
727
|
+
@blur=${this.handleBlur}
|
|
728
|
+
/>
|
|
729
|
+
|
|
730
|
+
<input
|
|
731
|
+
class="date-picker__value-input"
|
|
732
|
+
type="date"
|
|
733
|
+
?disabled=${this.disabled}
|
|
734
|
+
?required=${this.required}
|
|
735
|
+
min=${ifDefined(this.min || void 0)}
|
|
736
|
+
max=${ifDefined(this.max || void 0)}
|
|
737
|
+
.value=${this.value}
|
|
738
|
+
tabindex="-1"
|
|
739
|
+
aria-hidden="true"
|
|
740
|
+
@focus=${() => this.focus()}
|
|
741
|
+
@invalid=${this.handleInvalid}
|
|
742
|
+
/>
|
|
743
|
+
|
|
744
|
+
${hasClearIcon ? html`
|
|
745
|
+
<button
|
|
746
|
+
part="clear-button"
|
|
747
|
+
class="date-picker__clear"
|
|
748
|
+
type="button"
|
|
749
|
+
aria-label=${this.localize.term("clearEntry")}
|
|
750
|
+
@mousedown=${this.handleClearMouseDown}
|
|
751
|
+
@click=${this.handleClearClick}
|
|
752
|
+
tabindex="-1"
|
|
753
|
+
>
|
|
754
|
+
<slot name="clear-icon">
|
|
755
|
+
<cw-icon name="x-circle-fill" library="system"></cw-icon>
|
|
756
|
+
</slot>
|
|
757
|
+
</button>
|
|
758
|
+
` : ""}
|
|
759
|
+
|
|
760
|
+
<slot name="suffix" part="suffix" class="date-picker__suffix"></slot>
|
|
761
|
+
|
|
762
|
+
<slot name="expand-icon" part="expand-icon" class="date-picker__expand-icon">
|
|
763
|
+
<cw-icon library="system" name="calendar3"></cw-icon>
|
|
764
|
+
</slot>
|
|
765
|
+
</div>
|
|
766
|
+
|
|
767
|
+
${this.renderCalendar()}
|
|
768
|
+
</cw-popup>
|
|
769
|
+
</div>
|
|
770
|
+
|
|
771
|
+
<div
|
|
772
|
+
part="form-control-help-text"
|
|
773
|
+
id="help-text"
|
|
774
|
+
class="form-control__help-text"
|
|
775
|
+
aria-hidden=${hasHelpText ? "false" : "true"}
|
|
776
|
+
>
|
|
777
|
+
<slot name="help-text">${this.helpText}</slot>
|
|
778
|
+
</div>
|
|
779
|
+
</div>
|
|
780
|
+
`;
|
|
781
|
+
}
|
|
782
|
+
};
|
|
783
|
+
CwDatePicker.styles = [component_styles_default, form_control_styles_default, date_picker_styles_default];
|
|
784
|
+
CwDatePicker.dependencies = {
|
|
785
|
+
"cw-icon": CwIcon,
|
|
786
|
+
"cw-icon-button": CwIconButton,
|
|
787
|
+
"cw-popup": CwPopup
|
|
788
|
+
};
|
|
789
|
+
__decorateClass([
|
|
790
|
+
query(".date-picker")
|
|
791
|
+
], CwDatePicker.prototype, "popup", 2);
|
|
792
|
+
__decorateClass([
|
|
793
|
+
query(".date-picker__combobox")
|
|
794
|
+
], CwDatePicker.prototype, "combobox", 2);
|
|
795
|
+
__decorateClass([
|
|
796
|
+
query(".date-picker__display-input")
|
|
797
|
+
], CwDatePicker.prototype, "displayInput", 2);
|
|
798
|
+
__decorateClass([
|
|
799
|
+
query(".date-picker__value-input")
|
|
800
|
+
], CwDatePicker.prototype, "valueInput", 2);
|
|
801
|
+
__decorateClass([
|
|
802
|
+
query(".date-picker__calendar")
|
|
803
|
+
], CwDatePicker.prototype, "calendar", 2);
|
|
804
|
+
__decorateClass([
|
|
805
|
+
state()
|
|
806
|
+
], CwDatePicker.prototype, "hasFocus", 2);
|
|
807
|
+
__decorateClass([
|
|
808
|
+
state()
|
|
809
|
+
], CwDatePicker.prototype, "focusedDate", 2);
|
|
810
|
+
__decorateClass([
|
|
811
|
+
state()
|
|
812
|
+
], CwDatePicker.prototype, "valueHasChanged", 2);
|
|
813
|
+
__decorateClass([
|
|
814
|
+
property()
|
|
815
|
+
], CwDatePicker.prototype, "name", 2);
|
|
816
|
+
__decorateClass([
|
|
817
|
+
state()
|
|
818
|
+
], CwDatePicker.prototype, "value", 1);
|
|
819
|
+
__decorateClass([
|
|
820
|
+
property({ attribute: "value" })
|
|
821
|
+
], CwDatePicker.prototype, "defaultValue", 2);
|
|
822
|
+
__decorateClass([
|
|
823
|
+
property()
|
|
824
|
+
], CwDatePicker.prototype, "min", 2);
|
|
825
|
+
__decorateClass([
|
|
826
|
+
property()
|
|
827
|
+
], CwDatePicker.prototype, "max", 2);
|
|
828
|
+
__decorateClass([
|
|
829
|
+
property({ attribute: "first-day-of-week", type: Number })
|
|
830
|
+
], CwDatePicker.prototype, "firstDayOfWeek", 2);
|
|
831
|
+
__decorateClass([
|
|
832
|
+
property({ reflect: true })
|
|
833
|
+
], CwDatePicker.prototype, "size", 2);
|
|
834
|
+
__decorateClass([
|
|
835
|
+
property()
|
|
836
|
+
], CwDatePicker.prototype, "placeholder", 2);
|
|
837
|
+
__decorateClass([
|
|
838
|
+
property({ type: Boolean, reflect: true })
|
|
839
|
+
], CwDatePicker.prototype, "disabled", 2);
|
|
840
|
+
__decorateClass([
|
|
841
|
+
property({ type: Boolean })
|
|
842
|
+
], CwDatePicker.prototype, "clearable", 2);
|
|
843
|
+
__decorateClass([
|
|
844
|
+
property({ type: Boolean, reflect: true })
|
|
845
|
+
], CwDatePicker.prototype, "open", 2);
|
|
846
|
+
__decorateClass([
|
|
847
|
+
property({ type: Boolean })
|
|
848
|
+
], CwDatePicker.prototype, "hoist", 2);
|
|
849
|
+
__decorateClass([
|
|
850
|
+
property({ type: Boolean, reflect: true })
|
|
851
|
+
], CwDatePicker.prototype, "filled", 2);
|
|
852
|
+
__decorateClass([
|
|
853
|
+
property({ type: Boolean, reflect: true })
|
|
854
|
+
], CwDatePicker.prototype, "pill", 2);
|
|
855
|
+
__decorateClass([
|
|
856
|
+
property()
|
|
857
|
+
], CwDatePicker.prototype, "label", 2);
|
|
858
|
+
__decorateClass([
|
|
859
|
+
property({ reflect: true })
|
|
860
|
+
], CwDatePicker.prototype, "placement", 2);
|
|
861
|
+
__decorateClass([
|
|
862
|
+
property({ attribute: "help-text" })
|
|
863
|
+
], CwDatePicker.prototype, "helpText", 2);
|
|
864
|
+
__decorateClass([
|
|
865
|
+
property({ reflect: true })
|
|
866
|
+
], CwDatePicker.prototype, "form", 2);
|
|
867
|
+
__decorateClass([
|
|
868
|
+
property({ type: Boolean, reflect: true })
|
|
869
|
+
], CwDatePicker.prototype, "required", 2);
|
|
870
|
+
__decorateClass([
|
|
871
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
872
|
+
], CwDatePicker.prototype, "handleDisabledChange", 1);
|
|
873
|
+
__decorateClass([
|
|
874
|
+
watch(["defaultValue", "value"], { waitUntilFirstUpdate: true })
|
|
875
|
+
], CwDatePicker.prototype, "handleValueChange", 1);
|
|
876
|
+
__decorateClass([
|
|
877
|
+
watch("open", { waitUntilFirstUpdate: true })
|
|
878
|
+
], CwDatePicker.prototype, "handleOpenChange", 1);
|
|
879
|
+
setDefaultAnimation("date-picker.show", {
|
|
880
|
+
keyframes: [
|
|
881
|
+
{ opacity: 0, scale: 0.9 },
|
|
882
|
+
{ opacity: 1, scale: 1 }
|
|
883
|
+
],
|
|
884
|
+
options: { duration: 100, easing: "ease" }
|
|
885
|
+
});
|
|
886
|
+
setDefaultAnimation("date-picker.hide", {
|
|
887
|
+
keyframes: [
|
|
888
|
+
{ opacity: 1, scale: 1 },
|
|
889
|
+
{ opacity: 0, scale: 0.9 }
|
|
890
|
+
],
|
|
891
|
+
options: { duration: 100, easing: "ease" }
|
|
892
|
+
});
|
|
893
|
+
|
|
894
|
+
export {
|
|
895
|
+
CwDatePicker
|
|
896
|
+
};
|