@cordwainer/cw-elements 1.1.1 → 1.2.1
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/README.md +2 -0
- package/cdn/chunks/chunk.2ABQBH3T.js +24 -0
- package/cdn/chunks/chunk.2M2LDZVP.js +63 -0
- package/cdn/chunks/chunk.2RL42HHN.js +11 -0
- package/cdn/chunks/chunk.2UI4D7JQ.js +25 -0
- package/cdn/chunks/chunk.2VA72LZG.js +75 -0
- package/cdn/chunks/chunk.2WHCNZPF.js +73 -0
- package/cdn/chunks/chunk.2XSYSDO3.js +20 -0
- package/cdn/chunks/chunk.32FCS5G3.js +25 -0
- package/cdn/chunks/chunk.36WEKSSD.js +27 -0
- package/cdn/chunks/chunk.3JUR4WLV.js +367 -0
- package/cdn/chunks/chunk.3SCO7KYN.js +11 -0
- package/cdn/chunks/chunk.3TZJEICB.js +28 -0
- package/cdn/chunks/chunk.433OX757.js +21 -0
- package/cdn/chunks/chunk.43A4Y653.js +11 -0
- package/cdn/chunks/chunk.4BOG5IA6.js +21 -0
- package/cdn/chunks/chunk.4EHFE5SL.js +33 -0
- package/cdn/chunks/chunk.4I6BHFGN.js +25 -0
- package/cdn/chunks/chunk.4MTUK4EV.js +21 -0
- package/cdn/chunks/chunk.4QNVGPFV.js +24 -0
- package/cdn/chunks/chunk.4RC43V33.js +291 -0
- package/cdn/chunks/chunk.4VRBSQM7.js +11 -0
- package/cdn/chunks/chunk.527GM2XC.js +11 -0
- package/cdn/chunks/chunk.534ODYW6.js +21 -0
- package/cdn/chunks/chunk.5I6MH2ZW.js +82 -0
- package/cdn/chunks/chunk.5XEDSSJT.js +11 -0
- package/cdn/chunks/chunk.64LRCUA3.js +11 -0
- package/cdn/chunks/chunk.67XVRFWW.js +11 -0
- package/cdn/chunks/chunk.6I4O5VLK.js +279 -0
- package/cdn/chunks/chunk.6IAEPJN3.js +36 -0
- package/cdn/chunks/chunk.6PB43MV5.js +11 -0
- package/cdn/chunks/chunk.73JRDUHG.js +11 -0
- package/cdn/chunks/chunk.7BGZDXGF.js +21 -0
- package/cdn/chunks/chunk.7BTFK3HV.js +21 -0
- package/cdn/chunks/chunk.7DTXWJNT.js +50 -0
- package/cdn/chunks/chunk.7KFKGBU4.js +174 -0
- package/cdn/chunks/chunk.7XMXNXCD.js +29 -0
- package/cdn/chunks/chunk.7ZIVYTTK.js +199 -0
- package/cdn/chunks/chunk.A4BCZJLI.js +21 -0
- package/cdn/chunks/chunk.A64VLE5I.js +292 -0
- package/cdn/chunks/chunk.A6FTT2VQ.js +21 -0
- package/cdn/chunks/chunk.A7AEPAIU.js +49 -0
- package/cdn/chunks/chunk.ABK5M4LV.js +137 -0
- package/cdn/chunks/chunk.AI3ZWFWE.js +11 -0
- package/cdn/chunks/chunk.AXIPZE4P.js +1925 -0
- package/cdn/chunks/chunk.B2PPQIWG.js +11 -0
- package/cdn/chunks/chunk.B4CBZOWA.js +821 -0
- package/cdn/chunks/chunk.BAQ7AMXF.js +844 -0
- package/cdn/chunks/chunk.BCZ3EWVO.js +127 -0
- package/cdn/chunks/chunk.BELJYMFR.js +302 -0
- package/cdn/chunks/chunk.BIO2VN6G.js +11 -0
- package/cdn/chunks/chunk.BK437T4Q.js +21 -0
- package/cdn/chunks/chunk.BKEUG26E.js +11 -0
- package/cdn/chunks/chunk.BP5ZEQUH.js +24 -0
- package/cdn/chunks/chunk.BPHWOOXQ.js +11 -0
- package/cdn/chunks/chunk.BS3LJAXR.js +11 -0
- package/cdn/chunks/chunk.BYB5ZXFV.js +27 -0
- package/cdn/chunks/chunk.C4QY7KGQ.js +44 -0
- package/cdn/chunks/chunk.CFXNM5PV.js +21 -0
- package/cdn/chunks/chunk.CRESCVNO.js +24 -0
- package/cdn/chunks/chunk.CSANS7VC.js +24 -0
- package/cdn/chunks/chunk.CTSRL7V6.js +455 -0
- package/cdn/chunks/chunk.D264CTKL.js +24 -0
- package/cdn/chunks/chunk.D7LM22EN.js +25 -0
- package/cdn/chunks/chunk.DDTTFJCF.js +499 -0
- package/cdn/chunks/chunk.DF7ZAXYF.js +11 -0
- package/cdn/chunks/chunk.DG26Z4ZB.js +11 -0
- package/cdn/chunks/chunk.DGF5TDSM.js +21 -0
- package/cdn/chunks/chunk.DGODKPQA.js +11 -0
- package/cdn/chunks/chunk.DPAO43JG.js +11 -0
- package/cdn/chunks/chunk.DQPV33E7.js +27 -0
- package/cdn/chunks/chunk.DS2XGVWR.js +11 -0
- package/cdn/chunks/chunk.DV26UG7N.js +25 -0
- package/cdn/chunks/chunk.DXDA3VLS.js +33 -0
- package/cdn/chunks/chunk.ES3K3XA7.js +77 -0
- package/cdn/chunks/chunk.ET3FRZ6O.js +33 -0
- package/cdn/chunks/chunk.EVG4STTK.js +28 -0
- package/cdn/chunks/chunk.EVH3IAYF.js +11 -0
- package/cdn/chunks/chunk.EWAW6AG4.js +11 -0
- package/cdn/chunks/chunk.EZPFOFUH.js +11 -0
- package/cdn/chunks/chunk.FOGXRJPB.js +11 -0
- package/cdn/chunks/chunk.FSVSO6MD.js +25 -0
- package/cdn/chunks/chunk.GD6G7IYN.js +299 -0
- package/cdn/chunks/chunk.GISCOUWX.js +255 -0
- package/cdn/chunks/chunk.GK2NKYP5.js +11 -0
- package/cdn/chunks/chunk.GOTBDAX4.js +11 -0
- package/cdn/chunks/chunk.GPYSXCKD.js +87 -0
- package/cdn/chunks/chunk.GQ7ANUTJ.js +11 -0
- package/cdn/chunks/chunk.H2ELFXIG.js +120 -0
- package/cdn/chunks/chunk.H6P7XLGN.js +158 -0
- package/cdn/chunks/chunk.H75CMH4M.js +11 -0
- package/cdn/chunks/chunk.HLPDOZ5R.js +11 -0
- package/cdn/chunks/chunk.HN4HUBBD.js +11 -0
- package/cdn/chunks/chunk.HNB7SB2N.js +26 -0
- package/cdn/chunks/chunk.HNWXRE3Y.js +49 -0
- package/cdn/chunks/chunk.HNZOPGOE.js +346 -0
- package/cdn/chunks/chunk.HPADXAEP.js +267 -0
- package/cdn/chunks/chunk.HSXXLJL3.js +21 -0
- package/cdn/chunks/chunk.I5E35GCJ.js +11 -0
- package/cdn/chunks/chunk.IAGQ4UKG.js +11 -0
- package/cdn/chunks/chunk.ICG3HF46.js +21 -0
- package/cdn/chunks/chunk.IUZFGI5Z.js +336 -0
- package/cdn/chunks/chunk.JDAYWQJD.js +24 -0
- package/cdn/chunks/chunk.JEARUAS7.js +11 -0
- package/cdn/chunks/chunk.JQIAYDIB.js +11 -0
- package/cdn/chunks/chunk.JRX6YGCO.js +103 -0
- package/cdn/chunks/chunk.JVO3SEBW.js +236 -0
- package/cdn/chunks/chunk.KAI6AEER.js +11 -0
- package/cdn/chunks/chunk.KBV5AHP5.js +233 -0
- package/cdn/chunks/chunk.KQ6WUWCD.js +574 -0
- package/cdn/chunks/chunk.KU44YP6V.js +28 -0
- package/cdn/chunks/chunk.KVQAU74F.js +11 -0
- package/cdn/chunks/chunk.KXR6AJ4U.js +11 -0
- package/cdn/chunks/chunk.KZRRAERK.js +77 -0
- package/cdn/chunks/chunk.LK3HNKNT.js +11 -0
- package/cdn/chunks/chunk.LLGCABXU.js +21 -0
- package/cdn/chunks/chunk.LLYDZTAW.js +11 -0
- package/cdn/chunks/chunk.LPHSK456.js +24 -0
- package/cdn/chunks/chunk.LQG2OJTL.js +21 -0
- package/cdn/chunks/chunk.LQUMD6B3.js +186 -0
- package/cdn/chunks/chunk.LRD4KZ65.js +11 -0
- package/cdn/chunks/chunk.M63W4FGQ.js +25 -0
- package/cdn/chunks/chunk.MAY2VKXH.js +402 -0
- package/cdn/chunks/chunk.MKS5EXEH.js +79 -0
- package/cdn/chunks/chunk.MQ3YWKSW.js +11 -0
- package/cdn/chunks/chunk.MRSANBCU.js +28 -0
- package/cdn/chunks/chunk.MUYIYV3K.js +24 -0
- package/cdn/chunks/chunk.N4JWQSRB.js +297 -0
- package/cdn/chunks/chunk.N6V4TS7X.js +21 -0
- package/cdn/chunks/chunk.NBR7Z7VY.js +363 -0
- package/cdn/chunks/chunk.NE2QGN6G.js +378 -0
- package/cdn/chunks/chunk.NE4A3M72.js +724 -0
- package/cdn/chunks/chunk.NPMCH2U4.js +153 -0
- package/cdn/chunks/chunk.NYIAWE3H.js +95 -0
- package/cdn/chunks/chunk.OH6KSJA3.js +11 -0
- package/cdn/chunks/chunk.OJWHL257.js +197 -0
- package/cdn/chunks/chunk.OMY6HOV2.js +114 -0
- package/cdn/chunks/chunk.ONHKLZW5.js +21 -0
- package/cdn/chunks/chunk.OU6G3AGI.js +120 -0
- package/cdn/chunks/chunk.P3D32XA3.js +11 -0
- package/cdn/chunks/chunk.P67UYW4E.js +26 -0
- package/cdn/chunks/chunk.PEOBBIRW.js +969 -0
- package/cdn/chunks/chunk.PKVVEW5V.js +21 -0
- package/cdn/chunks/chunk.PPCXRX4Y.js +25 -0
- package/cdn/chunks/chunk.PPZKAX5E.js +11 -0
- package/cdn/chunks/chunk.PQAMU4Q5.js +904 -0
- package/cdn/chunks/chunk.QOGDCKGP.js +97 -0
- package/cdn/chunks/chunk.R2K7WOZ3.js +11 -0
- package/cdn/chunks/chunk.R4YQUQ5I.js +27 -0
- package/cdn/chunks/chunk.R52Y3GOJ.js +11 -0
- package/cdn/chunks/chunk.RAHX455H.js +29 -0
- package/cdn/chunks/chunk.RISMPXQZ.js +26 -0
- package/cdn/chunks/chunk.RSFQHYNG.js +93 -0
- package/cdn/chunks/chunk.RVTSNJQY.js +11 -0
- package/cdn/chunks/chunk.S25WMYUT.js +21 -0
- package/cdn/chunks/chunk.S2FT5LFP.js +11 -0
- package/cdn/chunks/chunk.S3TXG4NZ.js +11 -0
- package/cdn/chunks/chunk.SBANF5X2.js +11 -0
- package/cdn/chunks/chunk.SJRDDKRU.js +11 -0
- package/cdn/chunks/chunk.SML7LZDD.js +113 -0
- package/cdn/chunks/chunk.STLV5MN3.js +25 -0
- package/cdn/chunks/chunk.T4PM4ZKM.js +11 -0
- package/cdn/chunks/chunk.T7RZTLZV.js +67 -0
- package/cdn/chunks/chunk.TCZQRLNO.js +29 -0
- package/cdn/chunks/chunk.TJKEGD2K.js +142 -0
- package/cdn/chunks/chunk.TMWLGPV2.js +24 -0
- package/cdn/chunks/chunk.U2MNDT4P.js +26 -0
- package/cdn/chunks/chunk.U7UORM77.js +11 -0
- package/cdn/chunks/chunk.UAICV3R4.js +28 -0
- package/cdn/chunks/chunk.UCZTHXGB.js +314 -0
- package/cdn/chunks/chunk.UCZVHBLT.js +11 -0
- package/cdn/chunks/chunk.UEPAYYWS.js +11 -0
- package/cdn/chunks/chunk.UOUMZSTF.js +218 -0
- package/cdn/chunks/chunk.UTT5APVM.js +11 -0
- package/cdn/chunks/chunk.UVDSERG6.js +11 -0
- package/cdn/chunks/chunk.VAU32IYQ.js +21 -0
- package/cdn/chunks/chunk.VHLF4LLS.js +391 -0
- package/cdn/chunks/chunk.VTFPOF4Q.js +21 -0
- package/cdn/chunks/chunk.WULO5ADH.js +27 -0
- package/cdn/chunks/chunk.X2RU4UVB.js +33 -0
- package/cdn/chunks/chunk.X3RZ7YLA.js +11 -0
- package/cdn/chunks/chunk.XCVQE4JF.js +24 -0
- package/cdn/chunks/chunk.XD2FENJJ.js +11 -0
- package/cdn/chunks/chunk.XDFCFX3B.js +24 -0
- package/cdn/chunks/chunk.XRB7KLVK.js +11 -0
- package/cdn/chunks/chunk.Y4CB2PIQ.js +135 -0
- package/cdn/chunks/chunk.YBBWVKOT.js +42 -0
- package/cdn/chunks/chunk.YEFRIPYW.js +122 -0
- package/cdn/chunks/chunk.YIBQOBWJ.js +21 -0
- package/cdn/chunks/chunk.YKG5HHYI.js +11 -0
- package/cdn/chunks/chunk.YZC3323J.js +216 -0
- package/cdn/chunks/chunk.ZBQEZGGB.js +29 -0
- package/cdn/chunks/chunk.ZMZDJ5EM.js +24 -0
- package/cdn/chunks/chunk.ZNJQJUDO.js +1990 -0
- package/cdn/chunks/chunk.ZPANZHYH.js +11 -0
- package/cdn/chunks/chunk.ZPE6J3UM.js +24 -0
- package/cdn/chunks/chunk.ZSYATAUK.js +11 -0
- package/cdn/components/alert/alert.component.js +6 -6
- package/cdn/components/alert/alert.js +7 -7
- 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 +5 -5
- package/cdn/components/breadcrumb/breadcrumb.js +6 -6
- 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 +6 -6
- package/cdn/components/button/button.js +7 -7
- 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 +6 -5
- package/cdn/components/carousel/carousel.js +7 -6
- 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 +13 -13
- package/cdn/components/color-picker/color-picker.js +14 -14
- package/cdn/components/combobox/combobox.component.js +10 -10
- package/cdn/components/combobox/combobox.js +11 -11
- package/cdn/components/copy-button/copy-button.component.js +7 -7
- package/cdn/components/copy-button/copy-button.js +8 -8
- package/cdn/components/data-table/data-table-column.component.d.ts +39 -0
- package/cdn/components/data-table/data-table-column.component.js +10 -0
- package/cdn/components/data-table/data-table-column.d.ts +8 -0
- package/cdn/components/data-table/data-table-column.js +11 -0
- package/cdn/components/data-table/data-table.component.d.ts +98 -0
- package/cdn/components/data-table/data-table.component.js +35 -0
- package/cdn/components/data-table/data-table.d.ts +8 -0
- package/cdn/components/data-table/data-table.js +36 -0
- package/cdn/components/data-table/data-table.styles.d.ts +2 -0
- package/cdn/components/data-table/data-table.styles.js +8 -0
- package/cdn/components/data-table/define/cw-data-table-column.d.ts +8 -0
- package/cdn/components/data-table/define/cw-data-table-column.js +14 -0
- package/cdn/components/data-table-column/data-table-column.d.ts +2 -0
- package/cdn/components/data-table-column/data-table-column.js +11 -0
- package/cdn/components/date-picker/date-picker.component.js +7 -7
- package/cdn/components/date-picker/date-picker.js +8 -8
- package/cdn/components/details/details.component.js +5 -5
- package/cdn/components/details/details.js +6 -6
- package/cdn/components/dialog/dialog.component.js +7 -7
- package/cdn/components/dialog/dialog.js +8 -8
- package/cdn/components/divider/divider.component.js +2 -2
- package/cdn/components/divider/divider.js +3 -3
- package/cdn/components/drawer/drawer.component.js +7 -7
- package/cdn/components/drawer/drawer.js +8 -8
- package/cdn/components/dropdown/dropdown.component.js +3 -3
- package/cdn/components/dropdown/dropdown.js +4 -4
- package/cdn/components/format-bytes/format-bytes.component.js +2 -2
- package/cdn/components/format-bytes/format-bytes.js +3 -3
- package/cdn/components/format-date/format-date.component.js +2 -2
- package/cdn/components/format-date/format-date.js +3 -3
- package/cdn/components/format-number/format-number.component.js +2 -2
- package/cdn/components/format-number/format-number.js +3 -3
- 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-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 +5 -5
- package/cdn/components/image-comparer/image-comparer.js +6 -6
- package/cdn/components/include/include.component.js +3 -3
- package/cdn/components/include/include.js +4 -4
- package/cdn/components/input/input.component.js +5 -5
- package/cdn/components/input/input.js +6 -6
- 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 +7 -7
- package/cdn/components/menu-item/menu-item.js +8 -8
- 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 +5 -5
- package/cdn/components/option/option.js +6 -6
- package/cdn/components/pagination/pagination.component.js +6 -6
- package/cdn/components/pagination/pagination.js +7 -7
- package/cdn/components/popup/popup.component.js +2 -2
- package/cdn/components/popup/popup.js +3 -3
- package/cdn/components/progress-bar/progress-bar.component.js +2 -2
- package/cdn/components/progress-bar/progress-bar.js +3 -3
- package/cdn/components/progress-ring/progress-ring.component.js +2 -2
- package/cdn/components/progress-ring/progress-ring.js +3 -3
- 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 +2 -2
- package/cdn/components/range/range.js +3 -3
- package/cdn/components/rating/rating.component.js +5 -5
- package/cdn/components/rating/rating.js +6 -6
- package/cdn/components/relative-time/relative-time.component.js +2 -2
- package/cdn/components/relative-time/relative-time.js +3 -3
- 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 +8 -8
- package/cdn/components/select/select.js +9 -9
- package/cdn/components/skeleton/skeleton.component.js +2 -2
- package/cdn/components/skeleton/skeleton.js +3 -3
- package/cdn/components/spinner/spinner.component.js +2 -2
- package/cdn/components/spinner/spinner.js +3 -3
- package/cdn/components/split-panel/split-panel.component.js +2 -2
- package/cdn/components/split-panel/split-panel.js +3 -3
- package/cdn/components/switch/switch.component.js +2 -2
- package/cdn/components/switch/switch.js +3 -3
- package/cdn/components/tab/tab.component.js +6 -6
- package/cdn/components/tab/tab.js +7 -7
- package/cdn/components/tab-group/tab-group.component.js +7 -7
- package/cdn/components/tab-group/tab-group.js +8 -8
- 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 +6 -6
- package/cdn/components/tag/tag.js +7 -7
- 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 +7 -7
- package/cdn/components/time-picker/time-picker.js +8 -8
- package/cdn/components/tooltip/tooltip.component.js +3 -3
- package/cdn/components/tooltip/tooltip.js +4 -4
- package/cdn/components/tree/tree.component.js +9 -9
- package/cdn/components/tree/tree.js +10 -10
- package/cdn/components/tree-item/tree-item.component.js +7 -7
- package/cdn/components/tree-item/tree-item.js +8 -8
- 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 +772 -3
- package/cdn/cw-elements.d.ts +3 -0
- package/cdn/cw-elements.js +184 -165
- package/cdn/events/cw-row-click.d.ts +9 -0
- package/cdn/events/cw-row-selection-change.d.ts +8 -0
- package/cdn/events/cw-sort-change.d.ts +9 -0
- package/cdn/events/events.d.ts +3 -0
- package/cdn/react/alert/index.js +7 -7
- 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 +6 -6
- package/cdn/react/breadcrumb-item/index.js +3 -3
- package/cdn/react/button/index.js +7 -7
- package/cdn/react/button-group/index.js +3 -3
- package/cdn/react/card/index.js +3 -3
- package/cdn/react/carousel/index.js +7 -6
- package/cdn/react/carousel-item/index.js +3 -3
- package/cdn/react/checkbox/index.js +6 -6
- package/cdn/react/color-picker/index.js +14 -14
- package/cdn/react/combobox/index.js +11 -11
- package/cdn/react/copy-button/index.js +8 -8
- package/cdn/react/data-table/index.d.ts +50 -0
- package/cdn/react/data-table/index.js +36 -0
- package/cdn/react/data-table-column/index.d.ts +11 -0
- package/cdn/react/data-table-column/index.js +11 -0
- package/cdn/react/date-picker/index.js +8 -8
- package/cdn/react/details/index.js +6 -6
- package/cdn/react/dialog/index.js +8 -8
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/drawer/index.js +8 -8
- package/cdn/react/dropdown/index.js +4 -4
- package/cdn/react/format-bytes/index.js +3 -3
- package/cdn/react/format-date/index.js +3 -3
- package/cdn/react/format-number/index.js +3 -3
- package/cdn/react/icon/index.js +5 -5
- package/cdn/react/icon-button/index.js +6 -6
- package/cdn/react/image-comparer/index.js +6 -6
- package/cdn/react/include/index.js +4 -4
- package/cdn/react/index.d.ts +2 -0
- package/cdn/react/index.js +172 -160
- package/cdn/react/input/index.js +6 -6
- package/cdn/react/menu/index.js +3 -3
- package/cdn/react/menu-item/index.js +8 -8
- package/cdn/react/menu-label/index.js +3 -3
- package/cdn/react/mutation-observer/index.js +3 -3
- package/cdn/react/option/index.js +6 -6
- package/cdn/react/pagination/index.js +7 -7
- package/cdn/react/popup/index.js +3 -3
- package/cdn/react/progress-bar/index.js +3 -3
- package/cdn/react/progress-ring/index.js +3 -3
- 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 +3 -3
- package/cdn/react/rating/index.js +6 -6
- package/cdn/react/relative-time/index.js +3 -3
- package/cdn/react/resize-observer/index.js +3 -3
- package/cdn/react/select/index.js +9 -9
- package/cdn/react/skeleton/index.js +3 -3
- package/cdn/react/spinner/index.js +3 -3
- package/cdn/react/split-panel/index.js +3 -3
- package/cdn/react/switch/index.js +3 -3
- package/cdn/react/tab/index.js +7 -7
- package/cdn/react/tab-group/index.js +8 -8
- package/cdn/react/tab-panel/index.js +3 -3
- package/cdn/react/tag/index.js +7 -7
- package/cdn/react/textarea/index.js +3 -3
- package/cdn/react/time-picker/index.js +8 -8
- package/cdn/react/tooltip/index.js +4 -4
- package/cdn/react/tree/index.js +10 -10
- package/cdn/react/tree-item/index.js +8 -8
- package/cdn/react/visually-hidden/index.js +3 -3
- package/cdn/types/vue/index.d.ts +109 -0
- package/cdn/utilities/icon-library.js +2 -2
- package/cdn/vscode.html-custom-data.json +117 -1
- package/cdn/web-types.json +267 -3
- package/dist/chunks/chunk.24EJVARZ.js +29 -0
- package/dist/chunks/chunk.2CFOWBGY.js +21 -0
- package/dist/chunks/chunk.2E2GE6KK.js +11 -0
- package/dist/chunks/chunk.2LZFWEHD.js +11 -0
- package/dist/chunks/chunk.2OHPKMXI.js +21 -0
- package/dist/chunks/chunk.2PMJGOSC.js +11 -0
- package/dist/chunks/chunk.2UMKVL63.js +11 -0
- package/dist/chunks/chunk.2XE6JBK7.js +24 -0
- package/dist/chunks/chunk.34FGPPU6.js +896 -0
- package/dist/chunks/chunk.3DTAKSK7.js +21 -0
- package/dist/chunks/chunk.3H7B7Z5O.js +28 -0
- package/dist/chunks/chunk.3IAVLPXZ.js +21 -0
- package/dist/chunks/chunk.3PNFQXBT.js +181 -0
- package/dist/chunks/chunk.3VC4WJAC.js +448 -0
- package/dist/chunks/chunk.472E2CQD.js +21 -0
- package/dist/chunks/chunk.4CBJO73P.js +11 -0
- package/dist/chunks/chunk.4EWWJ47Z.js +11 -0
- package/dist/chunks/chunk.4FY5QAHZ.js +170 -0
- package/dist/chunks/chunk.4HPRO7M7.js +247 -0
- package/dist/chunks/chunk.4PXYWJXH.js +24 -0
- package/dist/chunks/chunk.5DE6VF5B.js +813 -0
- package/dist/chunks/chunk.5DPHPWOJ.js +11 -0
- package/dist/chunks/chunk.5J5KZ5TW.js +11 -0
- package/dist/chunks/chunk.5NU26MOJ.js +25 -0
- package/dist/chunks/chunk.5RP3PHYB.js +29 -0
- package/dist/chunks/chunk.5WDGDDQ3.js +961 -0
- package/dist/chunks/chunk.5Z3XAIY4.js +21 -0
- package/dist/chunks/chunk.64Q4DHEC.js +213 -0
- package/dist/chunks/chunk.6FJBBZKX.js +11 -0
- package/dist/chunks/chunk.6FVNKQ54.js +134 -0
- package/dist/chunks/chunk.6JVW6XLD.js +85 -0
- package/dist/chunks/chunk.6LVXYPQH.js +33 -0
- package/dist/chunks/chunk.6VI7H4MV.js +11 -0
- package/dist/chunks/chunk.74PB7XMV.js +949 -0
- package/dist/chunks/chunk.75BK22OR.js +111 -0
- package/dist/chunks/chunk.7FD76G44.js +11 -0
- package/dist/chunks/chunk.7GJRJPPN.js +311 -0
- package/dist/chunks/chunk.7GPZOWLE.js +24 -0
- package/dist/chunks/chunk.7OBAC32Q.js +25 -0
- package/dist/chunks/chunk.7TG6SJPV.js +11 -0
- package/dist/chunks/chunk.A2A3DRJQ.js +11 -0
- package/dist/chunks/chunk.A6ZS6YRS.js +286 -0
- package/dist/chunks/chunk.AC4T4HFA.js +91 -0
- package/dist/chunks/chunk.ARBMBD2B.js +21 -0
- package/dist/chunks/chunk.AV75HAIG.js +27 -0
- package/dist/chunks/chunk.AXRKNBZF.js +11 -0
- package/dist/chunks/chunk.AYLOUPKG.js +11 -0
- package/dist/chunks/chunk.AYX6QHXW.js +73 -0
- package/dist/chunks/chunk.B3TJCADV.js +24 -0
- package/dist/chunks/chunk.B5LBWUBD.js +11 -0
- package/dist/chunks/chunk.B6ID2PDB.js +290 -0
- package/dist/chunks/chunk.BHP3QFCJ.js +11 -0
- package/dist/chunks/chunk.BK47O3KW.js +135 -0
- package/dist/chunks/chunk.BLSJIYI6.js +100 -0
- package/dist/chunks/chunk.BVIJP5RC.js +11 -0
- package/dist/chunks/chunk.C4QY7KGQ.js +44 -0
- package/dist/chunks/chunk.C542FYKK.js +11 -0
- package/dist/chunks/chunk.CAOTRJOW.js +550 -0
- package/dist/chunks/chunk.CEXGFIAV.js +294 -0
- package/dist/chunks/chunk.CU5ANFVS.js +11 -0
- package/dist/chunks/chunk.CXRGRCSK.js +397 -0
- package/dist/chunks/chunk.D2VLDTOZ.js +11 -0
- package/dist/chunks/chunk.D7GPAHBZ.js +11 -0
- package/dist/chunks/chunk.DCFCP26E.js +21 -0
- package/dist/chunks/chunk.E6LJPT4B.js +11 -0
- package/dist/chunks/chunk.EUB7WUZM.js +11 -0
- package/dist/chunks/chunk.EUI4TRBJ.js +196 -0
- package/dist/chunks/chunk.EWHHNCEA.js +11 -0
- package/dist/chunks/chunk.EWSIAKFM.js +11 -0
- package/dist/chunks/chunk.F55RRF2P.js +384 -0
- package/dist/chunks/chunk.FEYII463.js +21 -0
- package/dist/chunks/chunk.FLHBW7DF.js +21 -0
- package/dist/chunks/chunk.FN4PVBB6.js +45 -0
- package/dist/chunks/chunk.G2N7A3IP.js +21 -0
- package/dist/chunks/chunk.G3BV7NCZ.js +417 -0
- package/dist/chunks/chunk.GHDJAN2E.js +25 -0
- package/dist/chunks/chunk.GJG74PTE.js +21 -0
- package/dist/chunks/chunk.GPN2BGGI.js +11 -0
- package/dist/chunks/chunk.H4VKVI6E.js +116 -0
- package/dist/chunks/chunk.H52VLARC.js +24 -0
- package/dist/chunks/chunk.HP3DNHPA.js +491 -0
- package/dist/chunks/chunk.HPQW7FK5.js +274 -0
- package/dist/chunks/chunk.HRIOMBWG.js +280 -0
- package/dist/chunks/chunk.I7LVKQSP.js +24 -0
- package/dist/chunks/chunk.IFMZCPGA.js +11 -0
- package/dist/chunks/chunk.IPWWOLXN.js +27 -0
- package/dist/chunks/chunk.IU2FNHPY.js +11 -0
- package/dist/chunks/chunk.IVRTXFWA.js +353 -0
- package/dist/chunks/chunk.IXPDPWKX.js +45 -0
- package/dist/chunks/chunk.J576WMWH.js +11 -0
- package/dist/chunks/chunk.JCP4JWEH.js +26 -0
- package/dist/chunks/chunk.JDTEW363.js +33 -0
- package/dist/chunks/chunk.JRB2CFGL.js +26 -0
- package/dist/chunks/chunk.JUO26IUG.js +117 -0
- package/dist/chunks/chunk.KAZBZUUZ.js +21 -0
- package/dist/chunks/chunk.KFWIMX4B.js +11 -0
- package/dist/chunks/chunk.KIZ77UX5.js +21 -0
- package/dist/chunks/chunk.KJZVIA7G.js +11 -0
- package/dist/chunks/chunk.KNAQE2OL.js +11 -0
- package/dist/chunks/chunk.KUW2VSER.js +90 -0
- package/dist/chunks/chunk.KW6UPMYT.js +315 -0
- package/dist/chunks/chunk.KZLYBEG4.js +80 -0
- package/dist/chunks/chunk.L5JKO7VD.js +11 -0
- package/dist/chunks/chunk.L6IEPL3F.js +11 -0
- package/dist/chunks/chunk.LCA53YRB.js +28 -0
- package/dist/chunks/chunk.LHGVMO5X.js +337 -0
- package/dist/chunks/chunk.LOVW4MNA.js +11 -0
- package/dist/chunks/chunk.MDRBDGCO.js +27 -0
- package/dist/chunks/chunk.MGO3FDQH.js +34 -0
- package/dist/chunks/chunk.MQUV32XZ.js +25 -0
- package/dist/chunks/chunk.MUCDWZAI.js +192 -0
- package/dist/chunks/chunk.MW64SNQA.js +11 -0
- package/dist/chunks/chunk.N4TZLHCC.js +11 -0
- package/dist/chunks/chunk.NL4XOUR3.js +42 -0
- package/dist/chunks/chunk.NQGOBEHY.js +11 -0
- package/dist/chunks/chunk.NU2WYHNI.js +11 -0
- package/dist/chunks/chunk.NWBWDWSO.js +11 -0
- package/dist/chunks/chunk.O2STSARY.js +50 -0
- package/dist/chunks/chunk.O42KAWHS.js +21 -0
- package/dist/chunks/chunk.O4G7MFYO.js +29 -0
- package/dist/chunks/chunk.O7AK2OZ4.js +24 -0
- package/dist/chunks/chunk.OA6RRD5Y.js +21 -0
- package/dist/chunks/chunk.OCBYTZGA.js +259 -0
- package/dist/chunks/chunk.ODKV6NBM.js +63 -0
- package/dist/chunks/chunk.OFXINFLT.js +11 -0
- package/dist/chunks/chunk.OGMXZQIM.js +21 -0
- package/dist/chunks/chunk.OKV2MLBB.js +28 -0
- package/dist/chunks/chunk.OTXNGE3O.js +21 -0
- package/dist/chunks/chunk.OVUSH6AK.js +11 -0
- package/dist/chunks/chunk.OXIIU3K4.js +25 -0
- package/dist/chunks/chunk.P2FOGONX.js +28 -0
- package/dist/chunks/chunk.P7YOTJXZ.js +11 -0
- package/dist/chunks/chunk.PA55T77S.js +11 -0
- package/dist/chunks/chunk.PATGC3X7.js +25 -0
- package/dist/chunks/chunk.PBV6FZL4.js +11 -0
- package/dist/chunks/chunk.PNHADJAP.js +33 -0
- package/dist/chunks/chunk.PQWBTU3F.js +21 -0
- package/dist/chunks/chunk.PQX2SW7V.js +119 -0
- package/dist/chunks/chunk.Q4T5FGUL.js +24 -0
- package/dist/chunks/chunk.QC5AUPZV.js +11 -0
- package/dist/chunks/chunk.QDJIVNEW.js +21 -0
- package/dist/chunks/chunk.QMV53DGM.js +11 -0
- package/dist/chunks/chunk.QPMHHGEF.js +227 -0
- package/dist/chunks/chunk.QUYP6ZA4.js +126 -0
- package/dist/chunks/chunk.QVPR5KOK.js +11 -0
- package/dist/chunks/chunk.QWGCHRYG.js +11 -0
- package/dist/chunks/chunk.QWSRWVIP.js +29 -0
- package/dist/chunks/chunk.R3NRVCIF.js +67 -0
- package/dist/chunks/chunk.R6SJJIJE.js +11 -0
- package/dist/chunks/chunk.RE2BJU6F.js +11 -0
- package/dist/chunks/chunk.RETL7COS.js +33 -0
- package/dist/chunks/chunk.RKG3RLXW.js +28 -0
- package/dist/chunks/chunk.ROH3VYLZ.js +11 -0
- package/dist/chunks/chunk.RRWAT4EO.js +75 -0
- package/dist/chunks/chunk.RT3YPR7Q.js +11 -0
- package/dist/chunks/chunk.S7UEANY3.js +22 -0
- package/dist/chunks/chunk.SI7XIY4V.js +24 -0
- package/dist/chunks/chunk.SQH35K7G.js +75 -0
- package/dist/chunks/chunk.SVA365LW.js +24 -0
- package/dist/chunks/chunk.T6NW45S3.js +59 -0
- package/dist/chunks/chunk.TCVZDV3L.js +11 -0
- package/dist/chunks/chunk.TFSS4CRR.js +147 -0
- package/dist/chunks/chunk.TKMHVYY6.js +11 -0
- package/dist/chunks/chunk.TKRW2UHK.js +370 -0
- package/dist/chunks/chunk.TT57Y5K4.js +21 -0
- package/dist/chunks/chunk.UDYZEDBI.js +231 -0
- package/dist/chunks/chunk.ULEDTEBC.js +293 -0
- package/dist/chunks/chunk.UTGGN7J3.js +151 -0
- package/dist/chunks/chunk.UVBFU7OU.js +11 -0
- package/dist/chunks/chunk.UVOCQJRB.js +26 -0
- package/dist/chunks/chunk.UYZA44SQ.js +25 -0
- package/dist/chunks/chunk.VLDWYBJT.js +75 -0
- package/dist/chunks/chunk.VP52B2ZR.js +27 -0
- package/dist/chunks/chunk.VPM6KB24.js +837 -0
- package/dist/chunks/chunk.VTF4FNII.js +361 -0
- package/dist/chunks/chunk.VVCMIQK6.js +24 -0
- package/dist/chunks/chunk.VYP7NYGV.js +21 -0
- package/dist/chunks/chunk.VYSRBMRI.js +25 -0
- package/dist/chunks/chunk.W5JSNSYN.js +26 -0
- package/dist/chunks/chunk.W7KGSLJH.js +100 -0
- package/dist/chunks/chunk.WAQRDYX7.js +22 -0
- package/dist/chunks/chunk.WFGKQKVG.js +109 -0
- package/dist/chunks/chunk.WGHUJEKV.js +11 -0
- package/dist/chunks/chunk.WNWA7ACI.js +11 -0
- package/dist/chunks/chunk.WP3ANYTF.js +11 -0
- package/dist/chunks/chunk.WTTKZNZW.js +24 -0
- package/dist/chunks/chunk.X7W4UD7O.js +11 -0
- package/dist/chunks/chunk.XPIT643W.js +11 -0
- package/dist/chunks/chunk.XR244XZQ.js +93 -0
- package/dist/chunks/chunk.YXJVGT2S.js +11 -0
- package/dist/chunks/chunk.ZA6GK7QH.js +25 -0
- package/dist/chunks/chunk.ZFNTCDXV.js +11 -0
- package/dist/chunks/chunk.ZLENW5NO.js +94 -0
- package/dist/chunks/chunk.ZRQPBGKE.js +115 -0
- package/dist/chunks/chunk.ZXYFUMSD.js +25 -0
- package/dist/components/alert/alert.component.js +6 -6
- package/dist/components/alert/alert.js +7 -7
- 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 +5 -5
- package/dist/components/breadcrumb/breadcrumb.js +6 -6
- 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 +6 -6
- package/dist/components/button/button.js +7 -7
- 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 +5 -5
- package/dist/components/carousel/carousel.js +6 -6
- 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 +12 -12
- package/dist/components/color-picker/color-picker.js +13 -13
- package/dist/components/combobox/combobox.component.js +10 -10
- package/dist/components/combobox/combobox.js +11 -11
- package/dist/components/copy-button/copy-button.component.js +7 -7
- package/dist/components/copy-button/copy-button.js +8 -8
- package/dist/components/data-table/data-table-column.component.d.ts +39 -0
- package/dist/components/data-table/data-table-column.component.js +9 -0
- package/dist/components/data-table/data-table-column.d.ts +8 -0
- package/dist/components/data-table/data-table-column.js +10 -0
- package/dist/components/data-table/data-table.component.d.ts +98 -0
- package/dist/components/data-table/data-table.component.js +27 -0
- package/dist/components/data-table/data-table.d.ts +8 -0
- package/dist/components/data-table/data-table.js +28 -0
- package/dist/components/data-table/data-table.styles.d.ts +2 -0
- package/dist/components/data-table/data-table.styles.js +7 -0
- package/dist/components/data-table/define/cw-data-table-column.d.ts +8 -0
- package/dist/components/data-table/define/cw-data-table-column.js +13 -0
- package/dist/components/data-table-column/data-table-column.d.ts +2 -0
- package/dist/components/data-table-column/data-table-column.js +10 -0
- package/dist/components/date-picker/date-picker.component.js +7 -7
- package/dist/components/date-picker/date-picker.js +8 -8
- package/dist/components/details/details.component.js +5 -5
- package/dist/components/details/details.js +6 -6
- package/dist/components/dialog/dialog.component.js +7 -7
- package/dist/components/dialog/dialog.js +8 -8
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +7 -7
- package/dist/components/drawer/drawer.js +8 -8
- package/dist/components/dropdown/dropdown.component.js +3 -3
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/format-bytes/format-bytes.component.js +2 -2
- package/dist/components/format-bytes/format-bytes.js +3 -3
- package/dist/components/format-date/format-date.component.js +2 -2
- package/dist/components/format-date/format-date.js +3 -3
- package/dist/components/format-number/format-number.component.js +2 -2
- package/dist/components/format-number/format-number.js +3 -3
- 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-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 +5 -5
- package/dist/components/image-comparer/image-comparer.js +6 -6
- package/dist/components/include/include.component.js +3 -3
- package/dist/components/include/include.js +4 -4
- package/dist/components/input/input.component.js +5 -5
- package/dist/components/input/input.js +6 -6
- 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 +7 -7
- package/dist/components/menu-item/menu-item.js +8 -8
- 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 +5 -5
- package/dist/components/option/option.js +6 -6
- package/dist/components/pagination/pagination.component.js +6 -6
- package/dist/components/pagination/pagination.js +7 -7
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.component.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- 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 +2 -2
- package/dist/components/range/range.js +3 -3
- package/dist/components/rating/rating.component.js +5 -5
- package/dist/components/rating/rating.js +6 -6
- package/dist/components/relative-time/relative-time.component.js +2 -2
- package/dist/components/relative-time/relative-time.js +3 -3
- 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 +8 -8
- package/dist/components/select/select.js +9 -9
- package/dist/components/skeleton/skeleton.component.js +2 -2
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/split-panel/split-panel.component.js +2 -2
- package/dist/components/split-panel/split-panel.js +3 -3
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tab/tab.component.js +6 -6
- package/dist/components/tab/tab.js +7 -7
- package/dist/components/tab-group/tab-group.component.js +7 -7
- package/dist/components/tab-group/tab-group.js +8 -8
- 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 +6 -6
- package/dist/components/tag/tag.js +7 -7
- 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 +7 -7
- package/dist/components/time-picker/time-picker.js +8 -8
- package/dist/components/tooltip/tooltip.component.js +3 -3
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/components/tree/tree.component.js +9 -9
- package/dist/components/tree/tree.js +10 -10
- package/dist/components/tree-item/tree-item.component.js +7 -7
- package/dist/components/tree-item/tree-item.js +8 -8
- 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 +772 -3
- package/dist/cw-elements.d.ts +3 -0
- package/dist/cw-elements.js +180 -163
- package/dist/events/cw-row-click.d.ts +9 -0
- package/dist/events/cw-row-selection-change.d.ts +8 -0
- package/dist/events/cw-sort-change.d.ts +9 -0
- package/dist/events/events.d.ts +3 -0
- package/dist/react/alert/index.js +7 -7
- 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 +6 -6
- package/dist/react/breadcrumb-item/index.js +3 -3
- package/dist/react/button/index.js +7 -7
- package/dist/react/button-group/index.js +3 -3
- package/dist/react/card/index.js +3 -3
- package/dist/react/carousel/index.js +6 -6
- package/dist/react/carousel-item/index.js +3 -3
- package/dist/react/checkbox/index.js +6 -6
- package/dist/react/color-picker/index.js +13 -13
- package/dist/react/combobox/index.js +11 -11
- package/dist/react/copy-button/index.js +8 -8
- package/dist/react/data-table/index.d.ts +50 -0
- package/dist/react/data-table/index.js +28 -0
- package/dist/react/data-table-column/index.d.ts +11 -0
- package/dist/react/data-table-column/index.js +10 -0
- package/dist/react/date-picker/index.js +8 -8
- package/dist/react/details/index.js +6 -6
- package/dist/react/dialog/index.js +8 -8
- package/dist/react/divider/index.js +3 -3
- package/dist/react/drawer/index.js +8 -8
- package/dist/react/dropdown/index.js +4 -4
- package/dist/react/format-bytes/index.js +3 -3
- package/dist/react/format-date/index.js +3 -3
- package/dist/react/format-number/index.js +3 -3
- package/dist/react/icon/index.js +5 -5
- package/dist/react/icon-button/index.js +6 -6
- package/dist/react/image-comparer/index.js +6 -6
- package/dist/react/include/index.js +4 -4
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +170 -159
- package/dist/react/input/index.js +6 -6
- package/dist/react/menu/index.js +3 -3
- package/dist/react/menu-item/index.js +8 -8
- package/dist/react/menu-label/index.js +3 -3
- package/dist/react/mutation-observer/index.js +3 -3
- package/dist/react/option/index.js +6 -6
- package/dist/react/pagination/index.js +7 -7
- package/dist/react/popup/index.js +3 -3
- package/dist/react/progress-bar/index.js +3 -3
- package/dist/react/progress-ring/index.js +3 -3
- 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 +3 -3
- package/dist/react/rating/index.js +6 -6
- package/dist/react/relative-time/index.js +3 -3
- package/dist/react/resize-observer/index.js +3 -3
- package/dist/react/select/index.js +9 -9
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/spinner/index.js +3 -3
- package/dist/react/split-panel/index.js +3 -3
- package/dist/react/switch/index.js +3 -3
- package/dist/react/tab/index.js +7 -7
- package/dist/react/tab-group/index.js +8 -8
- package/dist/react/tab-panel/index.js +3 -3
- package/dist/react/tag/index.js +7 -7
- package/dist/react/textarea/index.js +3 -3
- package/dist/react/time-picker/index.js +8 -8
- package/dist/react/tooltip/index.js +4 -4
- package/dist/react/tree/index.js +10 -10
- package/dist/react/tree-item/index.js +8 -8
- package/dist/react/visually-hidden/index.js +3 -3
- package/dist/types/vue/index.d.ts +109 -0
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +117 -1
- package/dist/web-types.json +267 -3
- package/package.json +2 -2
- package/cdn/chunks/chunk.2A4TV43P.js +0 -724
- package/cdn/chunks/chunk.2DEAZWRQ.js +0 -11
- package/cdn/chunks/chunk.2H4AZFNU.js +0 -11
- package/cdn/chunks/chunk.2R2Z6PCD.js +0 -24
- package/cdn/chunks/chunk.3EGBBB5K.js +0 -11
- package/cdn/chunks/chunk.3ENRE7OR.js +0 -11
- package/cdn/chunks/chunk.3FVXE5BV.js +0 -24
- package/cdn/chunks/chunk.3IAQ77Q3.js +0 -11
- package/cdn/chunks/chunk.3IOMQDWN.js +0 -21
- package/cdn/chunks/chunk.3JWTKZFP.js +0 -25
- package/cdn/chunks/chunk.3K354UTT.js +0 -103
- package/cdn/chunks/chunk.3KS3QEI4.js +0 -25
- package/cdn/chunks/chunk.3LZLQLTS.js +0 -216
- package/cdn/chunks/chunk.3MY4EVEC.js +0 -21
- package/cdn/chunks/chunk.3UAIXK5E.js +0 -11
- package/cdn/chunks/chunk.3VNICZ3Q.js +0 -11
- package/cdn/chunks/chunk.47L4DIWZ.js +0 -236
- package/cdn/chunks/chunk.4MFOJ24X.js +0 -499
- package/cdn/chunks/chunk.52MAHBDD.js +0 -455
- package/cdn/chunks/chunk.5HUNEC4W.js +0 -11
- package/cdn/chunks/chunk.5NNEUWUJ.js +0 -79
- package/cdn/chunks/chunk.5VHXPOZZ.js +0 -28
- package/cdn/chunks/chunk.64FLSQDP.js +0 -11
- package/cdn/chunks/chunk.67GPGOIS.js +0 -299
- package/cdn/chunks/chunk.6CGSGOTV.js +0 -21
- package/cdn/chunks/chunk.6KGGXNVQ.js +0 -24
- package/cdn/chunks/chunk.6MA3C3QT.js +0 -302
- package/cdn/chunks/chunk.6XNSXNWJ.js +0 -11
- package/cdn/chunks/chunk.76WSFSBV.js +0 -137
- package/cdn/chunks/chunk.7MSHAINE.js +0 -11
- package/cdn/chunks/chunk.7RDUDBUC.js +0 -11
- package/cdn/chunks/chunk.AAT4ZZ7G.js +0 -26
- package/cdn/chunks/chunk.AB7KY4SW.js +0 -120
- package/cdn/chunks/chunk.AEGUCBTS.js +0 -21
- package/cdn/chunks/chunk.ARVULDGL.js +0 -21
- package/cdn/chunks/chunk.AV57WMNB.js +0 -11
- package/cdn/chunks/chunk.B7XTUGZK.js +0 -11
- package/cdn/chunks/chunk.BFVCZALB.js +0 -75
- package/cdn/chunks/chunk.BX4KUF7K.js +0 -127
- package/cdn/chunks/chunk.C5R7MTMZ.js +0 -50
- package/cdn/chunks/chunk.CMUCLWUZ.js +0 -26
- package/cdn/chunks/chunk.CRMEV6RJ.js +0 -11
- package/cdn/chunks/chunk.D2T3UOBH.js +0 -158
- package/cdn/chunks/chunk.D7IU5VT2.js +0 -113
- package/cdn/chunks/chunk.DIC7ONN6.js +0 -27
- package/cdn/chunks/chunk.DM4ZI5BL.js +0 -11
- package/cdn/chunks/chunk.DQKLLK5G.js +0 -904
- package/cdn/chunks/chunk.DVXAQNCQ.js +0 -11
- package/cdn/chunks/chunk.DX3VU5TL.js +0 -21
- package/cdn/chunks/chunk.E7A2F5NE.js +0 -11
- package/cdn/chunks/chunk.EANN3P7Y.js +0 -114
- package/cdn/chunks/chunk.EB7QJF6T.js +0 -11
- package/cdn/chunks/chunk.EJH5MCF6.js +0 -93
- package/cdn/chunks/chunk.EOPXSJJN.js +0 -24
- package/cdn/chunks/chunk.EUBE57DS.js +0 -21
- package/cdn/chunks/chunk.EYEN4NIK.js +0 -33
- package/cdn/chunks/chunk.F3TL434V.js +0 -11
- package/cdn/chunks/chunk.F3TNBJUR.js +0 -11
- package/cdn/chunks/chunk.F5EHM76O.js +0 -21
- package/cdn/chunks/chunk.FAOL7ENI.js +0 -24
- package/cdn/chunks/chunk.FCQSOMXB.js +0 -11
- package/cdn/chunks/chunk.FIZERXX3.js +0 -29
- package/cdn/chunks/chunk.FPK7VYGP.js +0 -11
- package/cdn/chunks/chunk.GAYWRZUG.js +0 -1925
- package/cdn/chunks/chunk.GBXY3A3F.js +0 -197
- package/cdn/chunks/chunk.GIEGBF5B.js +0 -11
- package/cdn/chunks/chunk.GJREPP4U.js +0 -28
- package/cdn/chunks/chunk.GPVZ7GMF.js +0 -11
- package/cdn/chunks/chunk.H3FHLSRB.js +0 -297
- package/cdn/chunks/chunk.HKBG7GY2.js +0 -21
- package/cdn/chunks/chunk.HRWC4GJH.js +0 -402
- package/cdn/chunks/chunk.HTEYNIPW.js +0 -233
- package/cdn/chunks/chunk.HUKKHM5S.js +0 -11
- package/cdn/chunks/chunk.HXU3V4R6.js +0 -11
- package/cdn/chunks/chunk.I6ZH42RL.js +0 -21
- package/cdn/chunks/chunk.IJ7LYBYI.js +0 -42
- package/cdn/chunks/chunk.IL5QRGXP.js +0 -267
- package/cdn/chunks/chunk.IP3TNEV7.js +0 -95
- package/cdn/chunks/chunk.IWRQNB3H.js +0 -21
- package/cdn/chunks/chunk.J6XS6HSD.js +0 -25
- package/cdn/chunks/chunk.JD6QAQQM.js +0 -25
- package/cdn/chunks/chunk.JIUAIFNX.js +0 -27
- package/cdn/chunks/chunk.JU44U4AS.js +0 -135
- package/cdn/chunks/chunk.KC3P2BQH.js +0 -21
- package/cdn/chunks/chunk.KG75LIKO.js +0 -11
- package/cdn/chunks/chunk.KUPKONFD.js +0 -11
- package/cdn/chunks/chunk.KXURWGGR.js +0 -11
- package/cdn/chunks/chunk.LHAORF3A.js +0 -11
- package/cdn/chunks/chunk.LHLYQ4V6.js +0 -11
- package/cdn/chunks/chunk.LJLXSSLG.js +0 -25
- package/cdn/chunks/chunk.LPVVZOX2.js +0 -25
- package/cdn/chunks/chunk.LY7LAQRJ.js +0 -11
- package/cdn/chunks/chunk.LYOGKSNQ.js +0 -29
- package/cdn/chunks/chunk.M5WA2ZFA.js +0 -11
- package/cdn/chunks/chunk.MKW64T4J.js +0 -292
- package/cdn/chunks/chunk.MNMOAZ43.js +0 -11
- package/cdn/chunks/chunk.MS2JQUJF.js +0 -291
- package/cdn/chunks/chunk.N5IMJQLU.js +0 -36
- package/cdn/chunks/chunk.NMQVUNL3.js +0 -11
- package/cdn/chunks/chunk.NMTIL4UF.js +0 -367
- package/cdn/chunks/chunk.NREQZZGS.js +0 -186
- package/cdn/chunks/chunk.NSSEWP2A.js +0 -153
- package/cdn/chunks/chunk.NSSJUNAZ.js +0 -33
- package/cdn/chunks/chunk.NXKBVVZB.js +0 -346
- package/cdn/chunks/chunk.OAKBQZWB.js +0 -174
- package/cdn/chunks/chunk.OOAK7TAG.js +0 -44
- package/cdn/chunks/chunk.OPH5HE2R.js +0 -25
- package/cdn/chunks/chunk.OXEIRYFR.js +0 -33
- package/cdn/chunks/chunk.P33T2ZNO.js +0 -28
- package/cdn/chunks/chunk.P4NHY4HA.js +0 -21
- package/cdn/chunks/chunk.PAY7XXSL.js +0 -21
- package/cdn/chunks/chunk.PEKVLLTG.js +0 -11
- package/cdn/chunks/chunk.PMWCGFW2.js +0 -77
- package/cdn/chunks/chunk.PYYBALBE.js +0 -279
- package/cdn/chunks/chunk.Q2UOTI4A.js +0 -27
- package/cdn/chunks/chunk.Q34BWFJ4.js +0 -33
- package/cdn/chunks/chunk.Q4Z66SZ6.js +0 -49
- package/cdn/chunks/chunk.QAMPV3MD.js +0 -21
- package/cdn/chunks/chunk.QF5ELIOT.js +0 -391
- package/cdn/chunks/chunk.QG2GJHM6.js +0 -11
- package/cdn/chunks/chunk.QLVLE7QW.js +0 -21
- package/cdn/chunks/chunk.QTWCIPC6.js +0 -11
- package/cdn/chunks/chunk.RLN3KLUQ.js +0 -314
- package/cdn/chunks/chunk.RXM4GGRQ.js +0 -11
- package/cdn/chunks/chunk.SASH2F7I.js +0 -378
- package/cdn/chunks/chunk.SILMJOWQ.js +0 -580
- package/cdn/chunks/chunk.SJ4XVRAI.js +0 -73
- package/cdn/chunks/chunk.SKK744HB.js +0 -11
- package/cdn/chunks/chunk.SLWNQYU3.js +0 -82
- package/cdn/chunks/chunk.SRI2BE7D.js +0 -11
- package/cdn/chunks/chunk.T4VS6ESZ.js +0 -844
- package/cdn/chunks/chunk.TGZZPOZW.js +0 -24
- package/cdn/chunks/chunk.THXYC2IT.js +0 -21
- package/cdn/chunks/chunk.TLPCJ6LN.js +0 -255
- package/cdn/chunks/chunk.TQIS6BOG.js +0 -1990
- package/cdn/chunks/chunk.TQK4GXS5.js +0 -11
- package/cdn/chunks/chunk.TZ3Z2CEG.js +0 -11
- package/cdn/chunks/chunk.U3OR4M6F.js +0 -11
- package/cdn/chunks/chunk.U5EOBBCM.js +0 -67
- package/cdn/chunks/chunk.U7R633MZ.js +0 -11
- package/cdn/chunks/chunk.UCVUCI3G.js +0 -28
- package/cdn/chunks/chunk.UE4SQTGV.js +0 -63
- package/cdn/chunks/chunk.UF4LXMLB.js +0 -11
- package/cdn/chunks/chunk.UMGVXEIO.js +0 -24
- package/cdn/chunks/chunk.UON4NBKI.js +0 -11
- package/cdn/chunks/chunk.UOPFBL47.js +0 -24
- package/cdn/chunks/chunk.V2RFJNOY.js +0 -24
- package/cdn/chunks/chunk.V2VHB62N.js +0 -118
- package/cdn/chunks/chunk.VBIPD3ME.js +0 -21
- package/cdn/chunks/chunk.VEDIM4V3.js +0 -11
- package/cdn/chunks/chunk.VG6K5JXI.js +0 -87
- package/cdn/chunks/chunk.VJF7EIPU.js +0 -27
- package/cdn/chunks/chunk.VKVSMRSO.js +0 -11
- package/cdn/chunks/chunk.VU4RSF5L.js +0 -24
- package/cdn/chunks/chunk.VWQSNFWO.js +0 -24
- package/cdn/chunks/chunk.VWXWKIRM.js +0 -25
- package/cdn/chunks/chunk.W5TQUQMJ.js +0 -11
- package/cdn/chunks/chunk.WF32CG6V.js +0 -49
- package/cdn/chunks/chunk.WQBLZULR.js +0 -11
- package/cdn/chunks/chunk.WRRJR2X2.js +0 -24
- package/cdn/chunks/chunk.WTJZYBNK.js +0 -11
- package/cdn/chunks/chunk.WXEZ2UPV.js +0 -969
- package/cdn/chunks/chunk.X2F5MIVZ.js +0 -11
- package/cdn/chunks/chunk.XF6B7FJQ.js +0 -11
- package/cdn/chunks/chunk.XKIL3ESQ.js +0 -28
- package/cdn/chunks/chunk.XSFAKZID.js +0 -21
- package/cdn/chunks/chunk.XTIXAOLS.js +0 -821
- package/cdn/chunks/chunk.XULRXE3K.js +0 -29
- package/cdn/chunks/chunk.XWBLF7JY.js +0 -11
- package/cdn/chunks/chunk.XZTLAZY4.js +0 -11
- package/cdn/chunks/chunk.Y2TKADTF.js +0 -218
- package/cdn/chunks/chunk.Y45J3GF2.js +0 -26
- package/cdn/chunks/chunk.YGFBR3F7.js +0 -29
- package/cdn/chunks/chunk.YGGMW4NU.js +0 -21
- package/cdn/chunks/chunk.YH3K5LMB.js +0 -142
- package/cdn/chunks/chunk.YNOHGGP7.js +0 -24
- package/cdn/chunks/chunk.YSWQQKRZ.js +0 -11
- package/cdn/chunks/chunk.YT63NC3S.js +0 -24
- package/cdn/chunks/chunk.YVNBAYSL.js +0 -11
- package/cdn/chunks/chunk.Z5OTA7QQ.js +0 -122
- package/cdn/chunks/chunk.Z7ZPWWNW.js +0 -27
- package/cdn/chunks/chunk.ZFHNY6JM.js +0 -336
- package/cdn/chunks/chunk.ZHCKNSS7.js +0 -97
- package/cdn/chunks/chunk.ZHGO7BYZ.js +0 -25
- package/cdn/chunks/chunk.ZQA5H5HN.js +0 -11
- package/cdn/chunks/chunk.ZSAAFCZB.js +0 -11
- package/cdn/chunks/chunk.ZSSLKKRV.js +0 -11
- package/cdn/chunks/chunk.ZSUEUS2F.js +0 -21
- package/dist/chunks/chunk.25LPMDR3.js +0 -11
- package/dist/chunks/chunk.2CRTYIYQ.js +0 -25
- package/dist/chunks/chunk.2HKGSSIB.js +0 -11
- package/dist/chunks/chunk.2J2AOJAG.js +0 -34
- package/dist/chunks/chunk.2P7I77C5.js +0 -11
- package/dist/chunks/chunk.2QU2HP2P.js +0 -11
- package/dist/chunks/chunk.32COWIRU.js +0 -50
- package/dist/chunks/chunk.34S4GDUG.js +0 -11
- package/dist/chunks/chunk.3C2A6SE6.js +0 -26
- package/dist/chunks/chunk.3EMIJIFY.js +0 -11
- package/dist/chunks/chunk.3KA5YVHK.js +0 -24
- package/dist/chunks/chunk.3MA6M7PA.js +0 -75
- package/dist/chunks/chunk.3OEEYIQQ.js +0 -29
- package/dist/chunks/chunk.3T27EN5W.js +0 -33
- package/dist/chunks/chunk.43JK37O7.js +0 -21
- package/dist/chunks/chunk.46YPPYF6.js +0 -361
- package/dist/chunks/chunk.4CJPDIW6.js +0 -25
- package/dist/chunks/chunk.4D27AII5.js +0 -85
- package/dist/chunks/chunk.4JVSFMPM.js +0 -75
- package/dist/chunks/chunk.4N5NACC4.js +0 -26
- package/dist/chunks/chunk.4U6CE7OZ.js +0 -11
- package/dist/chunks/chunk.4UN5A4PN.js +0 -25
- package/dist/chunks/chunk.4W636OXN.js +0 -11
- package/dist/chunks/chunk.52PNZVTR.js +0 -337
- package/dist/chunks/chunk.55P2KVUC.js +0 -11
- package/dist/chunks/chunk.5DS4CXGR.js +0 -11
- package/dist/chunks/chunk.5GOPR7MZ.js +0 -11
- package/dist/chunks/chunk.5IEIGV2O.js +0 -27
- package/dist/chunks/chunk.5QURAHA3.js +0 -11
- package/dist/chunks/chunk.5VP5RB7N.js +0 -21
- package/dist/chunks/chunk.6B4MMOIJ.js +0 -21
- package/dist/chunks/chunk.6LAQPQZW.js +0 -11
- package/dist/chunks/chunk.6U3WBF3X.js +0 -80
- package/dist/chunks/chunk.73ANYWUV.js +0 -21
- package/dist/chunks/chunk.75LMNY6V.js +0 -94
- package/dist/chunks/chunk.7NEMCPWV.js +0 -231
- package/dist/chunks/chunk.A2RK3HEK.js +0 -100
- package/dist/chunks/chunk.AB5DQJVO.js +0 -11
- package/dist/chunks/chunk.ADAZ246M.js +0 -247
- package/dist/chunks/chunk.AFA4MJAT.js +0 -21
- package/dist/chunks/chunk.AHG6W2GG.js +0 -22
- package/dist/chunks/chunk.ALIOJGTU.js +0 -25
- package/dist/chunks/chunk.AM2TOO4T.js +0 -11
- package/dist/chunks/chunk.APOVO7BD.js +0 -21
- package/dist/chunks/chunk.BFHELFJM.js +0 -25
- package/dist/chunks/chunk.BINQTA74.js +0 -11
- package/dist/chunks/chunk.BM5FXR2H.js +0 -27
- package/dist/chunks/chunk.BTAOITRJ.js +0 -134
- package/dist/chunks/chunk.BU5BANUN.js +0 -259
- package/dist/chunks/chunk.BU75OOTV.js +0 -21
- package/dist/chunks/chunk.C3ZP5TVI.js +0 -11
- package/dist/chunks/chunk.CA4X2PWP.js +0 -24
- package/dist/chunks/chunk.CCZ7SDUT.js +0 -25
- package/dist/chunks/chunk.CUCBE5MT.js +0 -93
- package/dist/chunks/chunk.CZFEUNT6.js +0 -42
- package/dist/chunks/chunk.CZYBCV4D.js +0 -11
- package/dist/chunks/chunk.DCJDLIDI.js +0 -11
- package/dist/chunks/chunk.DGB5XYFJ.js +0 -813
- package/dist/chunks/chunk.DTLWFXC5.js +0 -63
- package/dist/chunks/chunk.DWGSCY4K.js +0 -11
- package/dist/chunks/chunk.E2P3HTXY.js +0 -11
- package/dist/chunks/chunk.E4HMOC44.js +0 -11
- package/dist/chunks/chunk.EKHWDHOQ.js +0 -11
- package/dist/chunks/chunk.EMO6JYVI.js +0 -21
- package/dist/chunks/chunk.ERC3FHCL.js +0 -24
- package/dist/chunks/chunk.ET6QBNWA.js +0 -21
- package/dist/chunks/chunk.F7DNVENT.js +0 -227
- package/dist/chunks/chunk.FLMQ4OE3.js +0 -896
- package/dist/chunks/chunk.FMIJFT4V.js +0 -25
- package/dist/chunks/chunk.FN5FMRMO.js +0 -11
- package/dist/chunks/chunk.FOR7FLWZ.js +0 -11
- package/dist/chunks/chunk.FRMVDJMS.js +0 -27
- package/dist/chunks/chunk.FYFESI3M.js +0 -11
- package/dist/chunks/chunk.G4OMLNS4.js +0 -147
- package/dist/chunks/chunk.GFIOD2CQ.js +0 -11
- package/dist/chunks/chunk.GWHPAVVZ.js +0 -11
- package/dist/chunks/chunk.GWWYWO5M.js +0 -21
- package/dist/chunks/chunk.GZIHFIS6.js +0 -21
- package/dist/chunks/chunk.H5UZ6OTU.js +0 -11
- package/dist/chunks/chunk.H637RXYG.js +0 -24
- package/dist/chunks/chunk.HBHXXGKF.js +0 -24
- package/dist/chunks/chunk.HCIKWZOI.js +0 -21
- package/dist/chunks/chunk.HDX2QZBI.js +0 -286
- package/dist/chunks/chunk.HF2EO7K7.js +0 -11
- package/dist/chunks/chunk.HMEF6ZRP.js +0 -11
- package/dist/chunks/chunk.HRBBOW5R.js +0 -192
- package/dist/chunks/chunk.I2XDW6BB.js +0 -29
- package/dist/chunks/chunk.IOFZNTMC.js +0 -170
- package/dist/chunks/chunk.IQ4SLLMM.js +0 -11
- package/dist/chunks/chunk.IUZKRP3N.js +0 -11
- package/dist/chunks/chunk.IYG556GV.js +0 -11
- package/dist/chunks/chunk.J3ISSZWN.js +0 -11
- package/dist/chunks/chunk.JMKNWDHB.js +0 -448
- package/dist/chunks/chunk.JMU7RNG4.js +0 -11
- package/dist/chunks/chunk.JV3L55WQ.js +0 -45
- package/dist/chunks/chunk.K3TFJ7GW.js +0 -91
- package/dist/chunks/chunk.K6CJ5NHO.js +0 -24
- package/dist/chunks/chunk.KAUUHVW5.js +0 -26
- package/dist/chunks/chunk.KH2ACUWV.js +0 -837
- package/dist/chunks/chunk.KLHWG76Q.js +0 -25
- package/dist/chunks/chunk.KRZWUE47.js +0 -11
- package/dist/chunks/chunk.KTHHOW5N.js +0 -11
- package/dist/chunks/chunk.KV74PNSO.js +0 -11
- package/dist/chunks/chunk.L3FQRTT2.js +0 -11
- package/dist/chunks/chunk.LM2PJPWP.js +0 -135
- package/dist/chunks/chunk.LOWRQ3OW.js +0 -11
- package/dist/chunks/chunk.LRQAZ6XD.js +0 -21
- package/dist/chunks/chunk.LTE5IQ5L.js +0 -949
- package/dist/chunks/chunk.LU7BS7OT.js +0 -21
- package/dist/chunks/chunk.M3LA7MQQ.js +0 -491
- package/dist/chunks/chunk.M42DMQRT.js +0 -21
- package/dist/chunks/chunk.M4SKY2DI.js +0 -11
- package/dist/chunks/chunk.M55OULL4.js +0 -280
- package/dist/chunks/chunk.MMVG5RID.js +0 -28
- package/dist/chunks/chunk.MNGIGEY5.js +0 -45
- package/dist/chunks/chunk.ND4SQN7L.js +0 -11
- package/dist/chunks/chunk.NDT6QVQ3.js +0 -22
- package/dist/chunks/chunk.NERLOKHA.js +0 -28
- package/dist/chunks/chunk.NFF26ZBJ.js +0 -33
- package/dist/chunks/chunk.NHOKAXB2.js +0 -274
- package/dist/chunks/chunk.NU6KOXR6.js +0 -73
- package/dist/chunks/chunk.NZ5OAKJX.js +0 -11
- package/dist/chunks/chunk.O3KODY3G.js +0 -90
- package/dist/chunks/chunk.OFUVD4SX.js +0 -116
- package/dist/chunks/chunk.OIWEM33H.js +0 -11
- package/dist/chunks/chunk.OLCO6RWF.js +0 -11
- package/dist/chunks/chunk.OOAK7TAG.js +0 -44
- package/dist/chunks/chunk.OSQJLHDJ.js +0 -397
- package/dist/chunks/chunk.P626GK6T.js +0 -11
- package/dist/chunks/chunk.PAO3M6D4.js +0 -28
- package/dist/chunks/chunk.PB4E7WQ2.js +0 -370
- package/dist/chunks/chunk.PQV3MZ37.js +0 -21
- package/dist/chunks/chunk.PRNHJRWT.js +0 -25
- package/dist/chunks/chunk.PYOGBP2V.js +0 -11
- package/dist/chunks/chunk.Q3IGIWAA.js +0 -550
- package/dist/chunks/chunk.R3FFKANO.js +0 -294
- package/dist/chunks/chunk.RHATJNWH.js +0 -24
- package/dist/chunks/chunk.RNYPQ4XH.js +0 -11
- package/dist/chunks/chunk.RQUKYDF4.js +0 -21
- package/dist/chunks/chunk.RTE7US4I.js +0 -311
- package/dist/chunks/chunk.S62ORUZA.js +0 -24
- package/dist/chunks/chunk.SDFUBE6S.js +0 -59
- package/dist/chunks/chunk.SHDWIT7S.js +0 -293
- package/dist/chunks/chunk.SL5ZJXQR.js +0 -11
- package/dist/chunks/chunk.SVTVJVUC.js +0 -27
- package/dist/chunks/chunk.T6BEJ5CM.js +0 -384
- package/dist/chunks/chunk.TC26SLTW.js +0 -117
- package/dist/chunks/chunk.TXJCZFRS.js +0 -11
- package/dist/chunks/chunk.UELOMXR7.js +0 -109
- package/dist/chunks/chunk.UJC2GZ4O.js +0 -119
- package/dist/chunks/chunk.UNZ6R6B5.js +0 -151
- package/dist/chunks/chunk.UTOXEWLC.js +0 -24
- package/dist/chunks/chunk.V7IE25WJ.js +0 -29
- package/dist/chunks/chunk.VNNQWMN6.js +0 -11
- package/dist/chunks/chunk.VS25IUL7.js +0 -417
- package/dist/chunks/chunk.VVYD353A.js +0 -113
- package/dist/chunks/chunk.VXKTFIC3.js +0 -21
- package/dist/chunks/chunk.VZ4FAB3W.js +0 -67
- package/dist/chunks/chunk.W6UHJ2E7.js +0 -33
- package/dist/chunks/chunk.WB3WKUAB.js +0 -28
- package/dist/chunks/chunk.WDI2MXRN.js +0 -11
- package/dist/chunks/chunk.WIAY6VCZ.js +0 -111
- package/dist/chunks/chunk.WIMKXPSM.js +0 -11
- package/dist/chunks/chunk.WS6BAQ4T.js +0 -315
- package/dist/chunks/chunk.X34XVPXB.js +0 -11
- package/dist/chunks/chunk.X7NLPKY3.js +0 -126
- package/dist/chunks/chunk.XAYJURUA.js +0 -961
- package/dist/chunks/chunk.XCQWZVIR.js +0 -11
- package/dist/chunks/chunk.XQOG5HRJ.js +0 -24
- package/dist/chunks/chunk.XRTIVOSK.js +0 -11
- package/dist/chunks/chunk.XTMVWM6A.js +0 -29
- package/dist/chunks/chunk.XXDBDZZJ.js +0 -33
- package/dist/chunks/chunk.XY5HFT3M.js +0 -100
- package/dist/chunks/chunk.YB6ZIF4S.js +0 -21
- package/dist/chunks/chunk.YDO7KJWD.js +0 -11
- package/dist/chunks/chunk.YGSZQ2ZC.js +0 -290
- package/dist/chunks/chunk.YIKHKFHP.js +0 -25
- package/dist/chunks/chunk.YPPE3P5H.js +0 -21
- package/dist/chunks/chunk.YUZQUCEI.js +0 -24
- package/dist/chunks/chunk.YXPF5YXX.js +0 -21
- package/dist/chunks/chunk.ZAEC4FHM.js +0 -181
- package/dist/chunks/chunk.ZBNR3B7F.js +0 -213
- package/dist/chunks/chunk.ZCRJTKW5.js +0 -11
- package/dist/chunks/chunk.ZFRUPLFG.js +0 -11
- package/dist/chunks/chunk.ZFX5W25Q.js +0 -11
- package/dist/chunks/chunk.ZGRDYMCQ.js +0 -28
- package/dist/chunks/chunk.ZJ3HRMB7.js +0 -24
- package/dist/chunks/chunk.ZXV2VP4U.js +0 -11
|
@@ -1,961 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CwTag
|
|
3
|
-
} from "./chunk.CUCBE5MT.js";
|
|
4
|
-
import {
|
|
5
|
-
scrollIntoView
|
|
6
|
-
} from "./chunk.PH2N3MLE.js";
|
|
7
|
-
import {
|
|
8
|
-
CwVisuallyHidden
|
|
9
|
-
} from "./chunk.AHG6W2GG.js";
|
|
10
|
-
import {
|
|
11
|
-
CwPopup
|
|
12
|
-
} from "./chunk.VS25IUL7.js";
|
|
13
|
-
import {
|
|
14
|
-
form_control_styles_default
|
|
15
|
-
} from "./chunk.YBI2MSEM.js";
|
|
16
|
-
import {
|
|
17
|
-
combobox_styles_default
|
|
18
|
-
} from "./chunk.ELM2KTTL.js";
|
|
19
|
-
import {
|
|
20
|
-
CwSpinner
|
|
21
|
-
} from "./chunk.2J2AOJAG.js";
|
|
22
|
-
import {
|
|
23
|
-
FormControlController
|
|
24
|
-
} from "./chunk.PH2VNONO.js";
|
|
25
|
-
import {
|
|
26
|
-
getAnimation,
|
|
27
|
-
setDefaultAnimation
|
|
28
|
-
} from "./chunk.SPWJX47D.js";
|
|
29
|
-
import {
|
|
30
|
-
waitForEvent
|
|
31
|
-
} from "./chunk.B4BZKR24.js";
|
|
32
|
-
import {
|
|
33
|
-
animateTo,
|
|
34
|
-
stopAnimations
|
|
35
|
-
} from "./chunk.TJQYJP53.js";
|
|
36
|
-
import {
|
|
37
|
-
LocalizeController
|
|
38
|
-
} from "./chunk.2H4HZOD6.js";
|
|
39
|
-
import {
|
|
40
|
-
HasSlotController
|
|
41
|
-
} from "./chunk.BVGZUUCX.js";
|
|
42
|
-
import {
|
|
43
|
-
CwIcon
|
|
44
|
-
} from "./chunk.ZAEC4FHM.js";
|
|
45
|
-
import {
|
|
46
|
-
watch
|
|
47
|
-
} from "./chunk.GQZ7EGMM.js";
|
|
48
|
-
import {
|
|
49
|
-
component_styles_default
|
|
50
|
-
} from "./chunk.TUVJKY7S.js";
|
|
51
|
-
import {
|
|
52
|
-
CwElement
|
|
53
|
-
} from "./chunk.75LMNY6V.js";
|
|
54
|
-
import {
|
|
55
|
-
__decorateClass
|
|
56
|
-
} from "./chunk.Q44EX5TP.js";
|
|
57
|
-
|
|
58
|
-
// src/components/combobox/combobox.component.ts
|
|
59
|
-
import { classMap } from "lit/directives/class-map.js";
|
|
60
|
-
import { html } from "lit";
|
|
61
|
-
import { property, query, state } from "lit/decorators.js";
|
|
62
|
-
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
63
|
-
var nextOptionId = 0;
|
|
64
|
-
var CwCombobox = class extends CwElement {
|
|
65
|
-
constructor() {
|
|
66
|
-
super(...arguments);
|
|
67
|
-
this.formControlController = new FormControlController(this, {
|
|
68
|
-
assumeInteractionOn: ["cw-blur", "cw-input"]
|
|
69
|
-
});
|
|
70
|
-
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
71
|
-
this.localize = new LocalizeController(this);
|
|
72
|
-
/** A free-text value the user has typed that doesn't match any option. Only used when `allowCustomValue` is set. */
|
|
73
|
-
this.customValue = "";
|
|
74
|
-
this.hasFocus = false;
|
|
75
|
-
this.displayLabel = "";
|
|
76
|
-
this.selectedOptions = [];
|
|
77
|
-
this.activeOptionId = "";
|
|
78
|
-
this.hasVisibleOptions = true;
|
|
79
|
-
this.valueHasChanged = false;
|
|
80
|
-
this.isFiltering = false;
|
|
81
|
-
this.name = "";
|
|
82
|
-
this._value = "";
|
|
83
|
-
this.defaultValue = "";
|
|
84
|
-
this.size = "medium";
|
|
85
|
-
this.placeholder = "";
|
|
86
|
-
this.multiple = false;
|
|
87
|
-
this.maxOptionsVisible = 3;
|
|
88
|
-
this.disabled = false;
|
|
89
|
-
this.clearable = false;
|
|
90
|
-
this.allowCustomValue = false;
|
|
91
|
-
this.loading = false;
|
|
92
|
-
this.open = false;
|
|
93
|
-
this.hoist = false;
|
|
94
|
-
this.filled = false;
|
|
95
|
-
this.pill = false;
|
|
96
|
-
this.label = "";
|
|
97
|
-
this.placement = "bottom";
|
|
98
|
-
this.helpText = "";
|
|
99
|
-
this.form = "";
|
|
100
|
-
this.required = false;
|
|
101
|
-
this.getTag = (option) => {
|
|
102
|
-
return html`
|
|
103
|
-
<cw-tag
|
|
104
|
-
part="tag"
|
|
105
|
-
exportparts="
|
|
106
|
-
base:tag__base,
|
|
107
|
-
content:tag__content,
|
|
108
|
-
remove-button:tag__remove-button,
|
|
109
|
-
remove-button__base:tag__remove-button__base
|
|
110
|
-
"
|
|
111
|
-
?pill=${this.pill}
|
|
112
|
-
size=${this.size}
|
|
113
|
-
removable
|
|
114
|
-
@cw-remove=${(event) => this.handleTagRemove(event, option)}
|
|
115
|
-
>
|
|
116
|
-
${option.getTextLabel()}
|
|
117
|
-
</cw-tag>
|
|
118
|
-
`;
|
|
119
|
-
};
|
|
120
|
-
this.handleDocumentFocusIn = (event) => {
|
|
121
|
-
const path = event.composedPath();
|
|
122
|
-
if (this && !path.includes(this)) {
|
|
123
|
-
this.hide();
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
this.handleDocumentKeyDown = (event) => {
|
|
127
|
-
const target = event.target;
|
|
128
|
-
const isClearButton = target.closest(".combobox__clear") !== null;
|
|
129
|
-
const isIconButton = target.closest("cw-icon-button") !== null;
|
|
130
|
-
if (isClearButton || isIconButton) {
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
if (event.key === "Escape" && this.open && !this.closeWatcher) {
|
|
134
|
-
event.preventDefault();
|
|
135
|
-
event.stopPropagation();
|
|
136
|
-
this.hide();
|
|
137
|
-
this.displayInput.focus({ preventScroll: true });
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
if (event.key === "Enter") {
|
|
141
|
-
if (!this.open) {
|
|
142
|
-
this.show();
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
event.preventDefault();
|
|
146
|
-
if (this.currentOption && !this.currentOption.disabled) {
|
|
147
|
-
this.selectOption(this.currentOption);
|
|
148
|
-
} else if (this.allowCustomValue) {
|
|
149
|
-
const typedValue = this.displayLabel.trim();
|
|
150
|
-
if (typedValue !== "") {
|
|
151
|
-
this.commitCustomValue(typedValue);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
if (["ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
157
|
-
const visibleOptions = this.getVisibleOptions();
|
|
158
|
-
const currentIndex = this.currentOption ? visibleOptions.indexOf(this.currentOption) : -1;
|
|
159
|
-
let newIndex = Math.max(0, currentIndex);
|
|
160
|
-
event.preventDefault();
|
|
161
|
-
if (!this.open) {
|
|
162
|
-
this.show();
|
|
163
|
-
if (this.currentOption) {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
if (visibleOptions.length === 0) {
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
if (event.key === "ArrowDown") {
|
|
171
|
-
newIndex = currentIndex + 1;
|
|
172
|
-
if (newIndex > visibleOptions.length - 1) newIndex = 0;
|
|
173
|
-
} else if (event.key === "ArrowUp") {
|
|
174
|
-
newIndex = currentIndex - 1;
|
|
175
|
-
if (newIndex < 0) newIndex = visibleOptions.length - 1;
|
|
176
|
-
} else if (event.key === "Home") {
|
|
177
|
-
newIndex = 0;
|
|
178
|
-
} else if (event.key === "End") {
|
|
179
|
-
newIndex = visibleOptions.length - 1;
|
|
180
|
-
}
|
|
181
|
-
this.setCurrentOption(visibleOptions[newIndex]);
|
|
182
|
-
if (this.currentOption) {
|
|
183
|
-
scrollIntoView(this.currentOption, this.listbox, "vertical", "auto");
|
|
184
|
-
}
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
if (event.key === "Backspace" && this.multiple && this.displayLabel === "" && this.selectedOptions.length > 0) {
|
|
188
|
-
const lastOption = this.selectedOptions[this.selectedOptions.length - 1];
|
|
189
|
-
this.toggleOptionSelection(lastOption, false);
|
|
190
|
-
this.valueHasChanged = true;
|
|
191
|
-
this.updateComplete.then(() => {
|
|
192
|
-
this.emit("cw-input");
|
|
193
|
-
this.emit("cw-change");
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
this.handleDocumentMouseDown = (event) => {
|
|
198
|
-
const path = event.composedPath();
|
|
199
|
-
if (this && !path.includes(this)) {
|
|
200
|
-
this.hide();
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
get value() {
|
|
205
|
-
return this._value;
|
|
206
|
-
}
|
|
207
|
-
set value(val) {
|
|
208
|
-
if (this.multiple) {
|
|
209
|
-
val = Array.isArray(val) ? val : val.split(" ");
|
|
210
|
-
} else {
|
|
211
|
-
val = Array.isArray(val) ? val.join(" ") : val;
|
|
212
|
-
}
|
|
213
|
-
if (this._value === val) {
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
this.valueHasChanged = true;
|
|
217
|
-
this._value = val;
|
|
218
|
-
}
|
|
219
|
-
/** Gets the validity state object */
|
|
220
|
-
get validity() {
|
|
221
|
-
return this.valueInput.validity;
|
|
222
|
-
}
|
|
223
|
-
/** Gets the validation message */
|
|
224
|
-
get validationMessage() {
|
|
225
|
-
return this.valueInput.validationMessage;
|
|
226
|
-
}
|
|
227
|
-
connectedCallback() {
|
|
228
|
-
super.connectedCallback();
|
|
229
|
-
setTimeout(() => {
|
|
230
|
-
this.handleDefaultSlotChange();
|
|
231
|
-
});
|
|
232
|
-
this.open = false;
|
|
233
|
-
}
|
|
234
|
-
addOpenListeners() {
|
|
235
|
-
var _a;
|
|
236
|
-
document.addEventListener("focusin", this.handleDocumentFocusIn);
|
|
237
|
-
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
238
|
-
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
239
|
-
if (this.getRootNode() !== document) {
|
|
240
|
-
this.getRootNode().addEventListener("focusin", this.handleDocumentFocusIn);
|
|
241
|
-
}
|
|
242
|
-
if ("CloseWatcher" in window) {
|
|
243
|
-
(_a = this.closeWatcher) == null ? void 0 : _a.destroy();
|
|
244
|
-
this.closeWatcher = new CloseWatcher();
|
|
245
|
-
this.closeWatcher.onclose = () => {
|
|
246
|
-
if (this.open) {
|
|
247
|
-
this.hide();
|
|
248
|
-
this.displayInput.focus({ preventScroll: true });
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
removeOpenListeners() {
|
|
254
|
-
var _a;
|
|
255
|
-
document.removeEventListener("focusin", this.handleDocumentFocusIn);
|
|
256
|
-
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
257
|
-
document.removeEventListener("mousedown", this.handleDocumentMouseDown);
|
|
258
|
-
if (this.getRootNode() !== document) {
|
|
259
|
-
this.getRootNode().removeEventListener("focusin", this.handleDocumentFocusIn);
|
|
260
|
-
}
|
|
261
|
-
(_a = this.closeWatcher) == null ? void 0 : _a.destroy();
|
|
262
|
-
}
|
|
263
|
-
handleFocus() {
|
|
264
|
-
this.hasFocus = true;
|
|
265
|
-
this.emit("cw-focus");
|
|
266
|
-
}
|
|
267
|
-
handleBlur() {
|
|
268
|
-
this.hasFocus = false;
|
|
269
|
-
this.isFiltering = false;
|
|
270
|
-
this.filterOptions("");
|
|
271
|
-
if (!this.multiple) {
|
|
272
|
-
const selectedOption = this.selectedOptions[0];
|
|
273
|
-
const typedValue = this.displayLabel.trim();
|
|
274
|
-
if (selectedOption) {
|
|
275
|
-
if (typedValue !== selectedOption.getTextLabel()) {
|
|
276
|
-
if (this.allowCustomValue && typedValue !== "") {
|
|
277
|
-
this.commitCustomValue(typedValue);
|
|
278
|
-
} else if (typedValue === "") {
|
|
279
|
-
this.valueHasChanged = true;
|
|
280
|
-
this.setSelectedOptions([]);
|
|
281
|
-
} else {
|
|
282
|
-
this.displayLabel = selectedOption.getTextLabel();
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
} else if (this.allowCustomValue && typedValue !== "" && typedValue !== this.customValue) {
|
|
286
|
-
this.commitCustomValue(typedValue);
|
|
287
|
-
} else if (typedValue === "" && this.customValue !== "") {
|
|
288
|
-
this.valueHasChanged = true;
|
|
289
|
-
this.customValue = "";
|
|
290
|
-
this.setSelectedOptions([]);
|
|
291
|
-
} else if (!this.allowCustomValue) {
|
|
292
|
-
this.displayLabel = this.customValue;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
this.emit("cw-blur");
|
|
296
|
-
}
|
|
297
|
-
handleLabelClick() {
|
|
298
|
-
this.displayInput.focus();
|
|
299
|
-
}
|
|
300
|
-
handleComboboxMouseDown(event) {
|
|
301
|
-
const path = event.composedPath();
|
|
302
|
-
const isIconButton = path.some((el) => el instanceof Element && el.tagName.toLowerCase() === "cw-icon-button");
|
|
303
|
-
const isInput = path[0] === this.displayInput;
|
|
304
|
-
if (this.disabled || isIconButton) {
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
if (!isInput) {
|
|
308
|
-
event.preventDefault();
|
|
309
|
-
this.displayInput.focus({ preventScroll: true });
|
|
310
|
-
}
|
|
311
|
-
if (!this.open) {
|
|
312
|
-
this.show();
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
handleComboboxKeyDown(event) {
|
|
316
|
-
if (event.key === "Tab") {
|
|
317
|
-
return;
|
|
318
|
-
}
|
|
319
|
-
event.stopPropagation();
|
|
320
|
-
this.handleDocumentKeyDown(event);
|
|
321
|
-
}
|
|
322
|
-
handleInput(event) {
|
|
323
|
-
const target = event.target;
|
|
324
|
-
this.displayLabel = target.value;
|
|
325
|
-
this.customValue = "";
|
|
326
|
-
this.isFiltering = true;
|
|
327
|
-
this.filterOptions(this.displayLabel);
|
|
328
|
-
if (!this.open) {
|
|
329
|
-
this.show();
|
|
330
|
-
}
|
|
331
|
-
const visibleOptions = this.getVisibleOptions();
|
|
332
|
-
this.setCurrentOption(visibleOptions[0]);
|
|
333
|
-
this.emit("cw-input");
|
|
334
|
-
}
|
|
335
|
-
handleClearClick(event) {
|
|
336
|
-
event.stopPropagation();
|
|
337
|
-
this.valueHasChanged = true;
|
|
338
|
-
this.customValue = "";
|
|
339
|
-
const hasValue = Array.isArray(this.value) ? this.value.length > 0 : this.value !== "";
|
|
340
|
-
if (hasValue || this.displayLabel !== "") {
|
|
341
|
-
this.setSelectedOptions([]);
|
|
342
|
-
this.displayLabel = "";
|
|
343
|
-
this.isFiltering = false;
|
|
344
|
-
this.filterOptions("");
|
|
345
|
-
this.displayInput.focus({ preventScroll: true });
|
|
346
|
-
this.updateComplete.then(() => {
|
|
347
|
-
this.emit("cw-clear");
|
|
348
|
-
this.emit("cw-input");
|
|
349
|
-
this.emit("cw-change");
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
handleClearMouseDown(event) {
|
|
354
|
-
event.stopPropagation();
|
|
355
|
-
event.preventDefault();
|
|
356
|
-
}
|
|
357
|
-
handleOptionClick(event) {
|
|
358
|
-
const target = event.target;
|
|
359
|
-
const option = target.closest("cw-option");
|
|
360
|
-
if (option && !option.disabled) {
|
|
361
|
-
this.selectOption(option);
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
// Prevent mousing down on an option from moving focus off the display input. Otherwise the resulting blur would
|
|
365
|
-
// reset the type-ahead filter (and therefore the layout of the listbox) before the subsequent `mouseup` fires,
|
|
366
|
-
// causing the click to land on the wrong option.
|
|
367
|
-
handleListboxMouseDown(event) {
|
|
368
|
-
event.preventDefault();
|
|
369
|
-
}
|
|
370
|
-
/* @internal - used by options to update labels */
|
|
371
|
-
handleDefaultSlotChange() {
|
|
372
|
-
if (!customElements.get("cw-option")) {
|
|
373
|
-
customElements.whenDefined("cw-option").then(() => this.handleDefaultSlotChange());
|
|
374
|
-
}
|
|
375
|
-
const allOptions = this.getAllOptions();
|
|
376
|
-
const val = this.valueHasChanged ? this.value : this.defaultValue;
|
|
377
|
-
const value = Array.isArray(val) ? val : [val];
|
|
378
|
-
const matchingOptions = allOptions.filter((el) => value.includes(el.value));
|
|
379
|
-
this.updateCustomValue(val, matchingOptions);
|
|
380
|
-
this.setSelectedOptions(matchingOptions);
|
|
381
|
-
this.filterOptions(this.isFiltering ? this.displayLabel : "");
|
|
382
|
-
}
|
|
383
|
-
handleTagRemove(event, option) {
|
|
384
|
-
event.stopPropagation();
|
|
385
|
-
this.valueHasChanged = true;
|
|
386
|
-
if (!this.disabled) {
|
|
387
|
-
this.toggleOptionSelection(option, false);
|
|
388
|
-
this.updateComplete.then(() => {
|
|
389
|
-
this.emit("cw-input");
|
|
390
|
-
this.emit("cw-change");
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
// Gets an array of all <cw-option> elements
|
|
395
|
-
getAllOptions() {
|
|
396
|
-
return [...this.querySelectorAll("cw-option")];
|
|
397
|
-
}
|
|
398
|
-
// Gets all <cw-option> elements that match the current filter
|
|
399
|
-
getVisibleOptions() {
|
|
400
|
-
return this.getAllOptions().filter((option) => !option.hidden);
|
|
401
|
-
}
|
|
402
|
-
// Hides options that don't match the given query and tracks whether any options remain visible
|
|
403
|
-
filterOptions(filter) {
|
|
404
|
-
var _a;
|
|
405
|
-
const normalized = filter.trim().toLowerCase();
|
|
406
|
-
const allOptions = this.getAllOptions();
|
|
407
|
-
let hasVisibleOption = false;
|
|
408
|
-
allOptions.forEach((option) => {
|
|
409
|
-
const matches = normalized === "" || option.getTextLabel().toLowerCase().includes(normalized);
|
|
410
|
-
option.hidden = !matches;
|
|
411
|
-
if (matches) {
|
|
412
|
-
hasVisibleOption = true;
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
this.hasVisibleOptions = hasVisibleOption;
|
|
416
|
-
if ((_a = this.currentOption) == null ? void 0 : _a.hidden) {
|
|
417
|
-
this.setCurrentOption(this.getVisibleOptions()[0]);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard or by
|
|
421
|
-
// typing). Only one option may be "current" at a time. Unlike a standard listbox, focus remains on the input;
|
|
422
|
-
// `aria-activedescendant` is used to communicate the current option instead.
|
|
423
|
-
setCurrentOption(option) {
|
|
424
|
-
const allOptions = this.getAllOptions();
|
|
425
|
-
allOptions.forEach((el) => {
|
|
426
|
-
el.current = false;
|
|
427
|
-
el.tabIndex = -1;
|
|
428
|
-
});
|
|
429
|
-
if (option) {
|
|
430
|
-
if (!option.id) {
|
|
431
|
-
option.id = `cw-combobox-option-${++nextOptionId}`;
|
|
432
|
-
}
|
|
433
|
-
this.currentOption = option;
|
|
434
|
-
this.activeOptionId = option.id;
|
|
435
|
-
option.current = true;
|
|
436
|
-
option.tabIndex = 0;
|
|
437
|
-
} else {
|
|
438
|
-
this.currentOption = void 0;
|
|
439
|
-
this.activeOptionId = "";
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
// Sets the selected option(s)
|
|
443
|
-
setSelectedOptions(option) {
|
|
444
|
-
const allOptions = this.getAllOptions();
|
|
445
|
-
const newSelectedOptions = Array.isArray(option) ? option : [option];
|
|
446
|
-
allOptions.forEach((el) => el.selected = false);
|
|
447
|
-
if (newSelectedOptions.length) {
|
|
448
|
-
newSelectedOptions.forEach((el) => el.selected = true);
|
|
449
|
-
}
|
|
450
|
-
this.selectionChanged();
|
|
451
|
-
}
|
|
452
|
-
// Toggles an option's selected state
|
|
453
|
-
toggleOptionSelection(option, force) {
|
|
454
|
-
if (force === true || force === false) {
|
|
455
|
-
option.selected = force;
|
|
456
|
-
} else {
|
|
457
|
-
option.selected = !option.selected;
|
|
458
|
-
}
|
|
459
|
-
this.selectionChanged();
|
|
460
|
-
}
|
|
461
|
-
// Determines whether a free-text value should be tracked as the combobox's value
|
|
462
|
-
updateCustomValue(rawValue, matchingOptions) {
|
|
463
|
-
const candidate = Array.isArray(rawValue) ? rawValue[0] : rawValue;
|
|
464
|
-
if (!this.multiple && this.allowCustomValue && matchingOptions.length === 0 && candidate) {
|
|
465
|
-
this.customValue = candidate;
|
|
466
|
-
} else {
|
|
467
|
-
this.customValue = "";
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
// Sets the value and display label to a free-text value that doesn't match any option
|
|
471
|
-
commitCustomValue(text) {
|
|
472
|
-
const oldValue = this.value;
|
|
473
|
-
this.valueHasChanged = true;
|
|
474
|
-
this.customValue = text;
|
|
475
|
-
this.setSelectedOptions([]);
|
|
476
|
-
this.isFiltering = false;
|
|
477
|
-
this.filterOptions("");
|
|
478
|
-
if (this.open) {
|
|
479
|
-
this.hide();
|
|
480
|
-
}
|
|
481
|
-
if (this.value !== oldValue) {
|
|
482
|
-
this.updateComplete.then(() => {
|
|
483
|
-
this.emit("cw-input");
|
|
484
|
-
this.emit("cw-change");
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
// This method must be called whenever the selection changes. It will update the selected options cache, the current
|
|
489
|
-
// value, and the display label
|
|
490
|
-
selectionChanged() {
|
|
491
|
-
const options = this.getAllOptions();
|
|
492
|
-
this.selectedOptions = options.filter((el) => el.selected);
|
|
493
|
-
const cachedValueHasChanged = this.valueHasChanged;
|
|
494
|
-
if (this.multiple) {
|
|
495
|
-
this.value = this.selectedOptions.map((el) => el.value);
|
|
496
|
-
} else {
|
|
497
|
-
const selectedOption = this.selectedOptions[0];
|
|
498
|
-
if (selectedOption) {
|
|
499
|
-
this.customValue = "";
|
|
500
|
-
this.value = selectedOption.value;
|
|
501
|
-
this.displayLabel = selectedOption.getTextLabel();
|
|
502
|
-
} else {
|
|
503
|
-
this.value = this.customValue;
|
|
504
|
-
if (!this.isFiltering) {
|
|
505
|
-
this.displayLabel = this.customValue;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
this.valueHasChanged = cachedValueHasChanged;
|
|
510
|
-
this.updateComplete.then(() => {
|
|
511
|
-
this.formControlController.updateValidity();
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
// Selects an option, updating the input and (for single-select) closing the listbox
|
|
515
|
-
selectOption(option) {
|
|
516
|
-
const oldValue = this.value;
|
|
517
|
-
this.valueHasChanged = true;
|
|
518
|
-
this.customValue = "";
|
|
519
|
-
if (this.multiple) {
|
|
520
|
-
this.toggleOptionSelection(option);
|
|
521
|
-
this.displayLabel = "";
|
|
522
|
-
} else {
|
|
523
|
-
this.setSelectedOptions(option);
|
|
524
|
-
}
|
|
525
|
-
this.isFiltering = false;
|
|
526
|
-
this.filterOptions("");
|
|
527
|
-
this.updateComplete.then(() => {
|
|
528
|
-
this.setCurrentOption(option);
|
|
529
|
-
if (this.value !== oldValue) {
|
|
530
|
-
this.emit("cw-input");
|
|
531
|
-
this.emit("cw-change");
|
|
532
|
-
}
|
|
533
|
-
if (!this.multiple) {
|
|
534
|
-
this.hide();
|
|
535
|
-
}
|
|
536
|
-
this.displayInput.focus({ preventScroll: true });
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
get tags() {
|
|
540
|
-
return this.selectedOptions.map((option, index) => {
|
|
541
|
-
if (index < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {
|
|
542
|
-
const tag = this.getTag(option, index);
|
|
543
|
-
return html`<div @cw-remove=${(e) => this.handleTagRemove(e, option)}>
|
|
544
|
-
${typeof tag === "string" ? unsafeHTML(tag) : tag}
|
|
545
|
-
</div>`;
|
|
546
|
-
} else if (index === this.maxOptionsVisible) {
|
|
547
|
-
return html`<cw-tag size=${this.size}>+${this.selectedOptions.length - index}</cw-tag>`;
|
|
548
|
-
}
|
|
549
|
-
return html``;
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
handleInvalid(event) {
|
|
553
|
-
this.formControlController.setValidity(false);
|
|
554
|
-
this.formControlController.emitInvalidEvent(event);
|
|
555
|
-
}
|
|
556
|
-
handleDisabledChange() {
|
|
557
|
-
if (this.disabled) {
|
|
558
|
-
this.open = false;
|
|
559
|
-
this.handleOpenChange();
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
attributeChangedCallback(name, oldVal, newVal) {
|
|
563
|
-
super.attributeChangedCallback(name, oldVal, newVal);
|
|
564
|
-
if (name === "value") {
|
|
565
|
-
const cachedValueHasChanged = this.valueHasChanged;
|
|
566
|
-
this.value = this.defaultValue;
|
|
567
|
-
this.valueHasChanged = cachedValueHasChanged;
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
handleValueChange() {
|
|
571
|
-
if (!this.valueHasChanged) {
|
|
572
|
-
const cachedValueHasChanged = this.valueHasChanged;
|
|
573
|
-
this.value = this.defaultValue;
|
|
574
|
-
this.valueHasChanged = cachedValueHasChanged;
|
|
575
|
-
}
|
|
576
|
-
const allOptions = this.getAllOptions();
|
|
577
|
-
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
578
|
-
const matchingOptions = allOptions.filter((el) => value.includes(el.value));
|
|
579
|
-
this.updateCustomValue(this.value, matchingOptions);
|
|
580
|
-
this.setSelectedOptions(matchingOptions);
|
|
581
|
-
}
|
|
582
|
-
async handleOpenChange() {
|
|
583
|
-
if (this.open && !this.disabled) {
|
|
584
|
-
this.setCurrentOption(this.selectedOptions[0] || this.getVisibleOptions()[0]);
|
|
585
|
-
this.emit("cw-show");
|
|
586
|
-
this.addOpenListeners();
|
|
587
|
-
await stopAnimations(this);
|
|
588
|
-
this.listbox.hidden = false;
|
|
589
|
-
this.popup.active = true;
|
|
590
|
-
requestAnimationFrame(() => {
|
|
591
|
-
this.setCurrentOption(this.currentOption);
|
|
592
|
-
});
|
|
593
|
-
const { keyframes, options } = getAnimation(this, "combobox.show", { dir: this.localize.dir() });
|
|
594
|
-
await animateTo(this.popup.popup, keyframes, options);
|
|
595
|
-
if (this.currentOption) {
|
|
596
|
-
scrollIntoView(this.currentOption, this.listbox, "vertical", "auto");
|
|
597
|
-
}
|
|
598
|
-
this.emit("cw-after-show");
|
|
599
|
-
} else {
|
|
600
|
-
this.emit("cw-hide");
|
|
601
|
-
this.removeOpenListeners();
|
|
602
|
-
await stopAnimations(this);
|
|
603
|
-
const { keyframes, options } = getAnimation(this, "combobox.hide", { dir: this.localize.dir() });
|
|
604
|
-
await animateTo(this.popup.popup, keyframes, options);
|
|
605
|
-
this.listbox.hidden = true;
|
|
606
|
-
this.popup.active = false;
|
|
607
|
-
this.emit("cw-after-hide");
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
/** Shows the listbox. */
|
|
611
|
-
async show() {
|
|
612
|
-
if (this.open || this.disabled) {
|
|
613
|
-
this.open = false;
|
|
614
|
-
return void 0;
|
|
615
|
-
}
|
|
616
|
-
this.open = true;
|
|
617
|
-
return waitForEvent(this, "cw-after-show");
|
|
618
|
-
}
|
|
619
|
-
/** Hides the listbox. */
|
|
620
|
-
async hide() {
|
|
621
|
-
if (!this.open || this.disabled) {
|
|
622
|
-
this.open = false;
|
|
623
|
-
return void 0;
|
|
624
|
-
}
|
|
625
|
-
this.open = false;
|
|
626
|
-
return waitForEvent(this, "cw-after-hide");
|
|
627
|
-
}
|
|
628
|
-
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
629
|
-
checkValidity() {
|
|
630
|
-
return this.valueInput.checkValidity();
|
|
631
|
-
}
|
|
632
|
-
/** Gets the associated form, if one exists. */
|
|
633
|
-
getForm() {
|
|
634
|
-
return this.formControlController.getForm();
|
|
635
|
-
}
|
|
636
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
637
|
-
reportValidity() {
|
|
638
|
-
return this.valueInput.reportValidity();
|
|
639
|
-
}
|
|
640
|
-
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
641
|
-
setCustomValidity(message) {
|
|
642
|
-
this.valueInput.setCustomValidity(message);
|
|
643
|
-
this.formControlController.updateValidity();
|
|
644
|
-
}
|
|
645
|
-
/** Sets focus on the control. */
|
|
646
|
-
focus(options) {
|
|
647
|
-
this.displayInput.focus(options);
|
|
648
|
-
}
|
|
649
|
-
/** Removes focus from the control. */
|
|
650
|
-
blur() {
|
|
651
|
-
this.displayInput.blur();
|
|
652
|
-
}
|
|
653
|
-
render() {
|
|
654
|
-
const hasLabelSlot = this.hasSlotController.test("label");
|
|
655
|
-
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
656
|
-
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
657
|
-
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
658
|
-
const hasValue = Array.isArray(this.value) ? this.value.length > 0 : this.value !== "";
|
|
659
|
-
const hasClearIcon = this.clearable && !this.disabled && (hasValue || this.displayLabel !== "");
|
|
660
|
-
const showNoOptions = this.open && !this.loading && !this.hasVisibleOptions;
|
|
661
|
-
return html`
|
|
662
|
-
<div
|
|
663
|
-
part="form-control"
|
|
664
|
-
class=${classMap({
|
|
665
|
-
"form-control": true,
|
|
666
|
-
"form-control--small": this.size === "small",
|
|
667
|
-
"form-control--medium": this.size === "medium",
|
|
668
|
-
"form-control--large": this.size === "large",
|
|
669
|
-
"form-control--has-label": hasLabel,
|
|
670
|
-
"form-control--has-help-text": hasHelpText
|
|
671
|
-
})}
|
|
672
|
-
>
|
|
673
|
-
<label
|
|
674
|
-
id="label"
|
|
675
|
-
part="form-control-label"
|
|
676
|
-
class="form-control__label"
|
|
677
|
-
aria-hidden=${hasLabel ? "false" : "true"}
|
|
678
|
-
@click=${this.handleLabelClick}
|
|
679
|
-
>
|
|
680
|
-
<slot name="label">${this.label}</slot>
|
|
681
|
-
</label>
|
|
682
|
-
|
|
683
|
-
<div part="form-control-input" class="form-control-input">
|
|
684
|
-
<cw-popup
|
|
685
|
-
class=${classMap({
|
|
686
|
-
combobox: true,
|
|
687
|
-
"combobox--standard": true,
|
|
688
|
-
"combobox--filled": this.filled,
|
|
689
|
-
"combobox--pill": this.pill,
|
|
690
|
-
"combobox--open": this.open,
|
|
691
|
-
"combobox--disabled": this.disabled,
|
|
692
|
-
"combobox--multiple": this.multiple,
|
|
693
|
-
"combobox--focused": this.hasFocus,
|
|
694
|
-
"combobox--top": this.placement === "top",
|
|
695
|
-
"combobox--bottom": this.placement === "bottom",
|
|
696
|
-
"combobox--small": this.size === "small",
|
|
697
|
-
"combobox--medium": this.size === "medium",
|
|
698
|
-
"combobox--large": this.size === "large"
|
|
699
|
-
})}
|
|
700
|
-
placement=${this.placement}
|
|
701
|
-
strategy=${this.hoist ? "fixed" : "absolute"}
|
|
702
|
-
flip
|
|
703
|
-
shift
|
|
704
|
-
sync="width"
|
|
705
|
-
auto-size="vertical"
|
|
706
|
-
auto-size-padding="10"
|
|
707
|
-
>
|
|
708
|
-
<div
|
|
709
|
-
part="combobox"
|
|
710
|
-
class="combobox__control"
|
|
711
|
-
slot="anchor"
|
|
712
|
-
@keydown=${this.handleComboboxKeyDown}
|
|
713
|
-
@mousedown=${this.handleComboboxMouseDown}
|
|
714
|
-
>
|
|
715
|
-
<slot part="prefix" name="prefix" class="combobox__prefix"></slot>
|
|
716
|
-
|
|
717
|
-
${this.multiple ? html`<div part="tags" class="combobox__tags">${this.tags}</div>` : ""}
|
|
718
|
-
|
|
719
|
-
<input
|
|
720
|
-
part="display-input"
|
|
721
|
-
class="combobox__display-input"
|
|
722
|
-
type="text"
|
|
723
|
-
placeholder=${this.placeholder}
|
|
724
|
-
.disabled=${this.disabled}
|
|
725
|
-
.value=${this.displayLabel}
|
|
726
|
-
autocomplete="off"
|
|
727
|
-
spellcheck="false"
|
|
728
|
-
autocapitalize="off"
|
|
729
|
-
aria-controls="listbox"
|
|
730
|
-
aria-expanded=${this.open ? "true" : "false"}
|
|
731
|
-
aria-haspopup="listbox"
|
|
732
|
-
aria-autocomplete="list"
|
|
733
|
-
aria-activedescendant=${this.activeOptionId}
|
|
734
|
-
aria-labelledby="label"
|
|
735
|
-
aria-disabled=${this.disabled ? "true" : "false"}
|
|
736
|
-
aria-describedby="help-text"
|
|
737
|
-
role="combobox"
|
|
738
|
-
@input=${this.handleInput}
|
|
739
|
-
@focus=${this.handleFocus}
|
|
740
|
-
@blur=${this.handleBlur}
|
|
741
|
-
/>
|
|
742
|
-
|
|
743
|
-
<input
|
|
744
|
-
class="combobox__value-input"
|
|
745
|
-
type="text"
|
|
746
|
-
?disabled=${this.disabled}
|
|
747
|
-
?required=${this.required}
|
|
748
|
-
.value=${Array.isArray(this.value) ? this.value.join(", ") : this.value}
|
|
749
|
-
tabindex="-1"
|
|
750
|
-
aria-hidden="true"
|
|
751
|
-
@focus=${() => this.focus()}
|
|
752
|
-
@invalid=${this.handleInvalid}
|
|
753
|
-
/>
|
|
754
|
-
|
|
755
|
-
${hasClearIcon ? html`
|
|
756
|
-
<button
|
|
757
|
-
part="clear-button"
|
|
758
|
-
class="combobox__clear"
|
|
759
|
-
type="button"
|
|
760
|
-
aria-label=${this.localize.term("clearEntry")}
|
|
761
|
-
@mousedown=${this.handleClearMouseDown}
|
|
762
|
-
@click=${this.handleClearClick}
|
|
763
|
-
tabindex="-1"
|
|
764
|
-
>
|
|
765
|
-
<slot name="clear-icon">
|
|
766
|
-
<cw-icon name="x-circle-fill" library="system"></cw-icon>
|
|
767
|
-
</slot>
|
|
768
|
-
</button>
|
|
769
|
-
` : ""}
|
|
770
|
-
|
|
771
|
-
<slot name="suffix" part="suffix" class="combobox__suffix"></slot>
|
|
772
|
-
|
|
773
|
-
<slot name="expand-icon" part="expand-icon" class="combobox__expand-icon">
|
|
774
|
-
<cw-icon library="system" name="chevron-down"></cw-icon>
|
|
775
|
-
</slot>
|
|
776
|
-
</div>
|
|
777
|
-
|
|
778
|
-
<div
|
|
779
|
-
id="listbox"
|
|
780
|
-
role="listbox"
|
|
781
|
-
aria-expanded=${this.open ? "true" : "false"}
|
|
782
|
-
aria-multiselectable=${this.multiple ? "true" : "false"}
|
|
783
|
-
aria-labelledby="label"
|
|
784
|
-
part="listbox"
|
|
785
|
-
class="combobox__listbox"
|
|
786
|
-
tabindex="-1"
|
|
787
|
-
@mousedown=${this.handleListboxMouseDown}
|
|
788
|
-
@mouseup=${this.handleOptionClick}
|
|
789
|
-
@slotchange=${this.handleDefaultSlotChange}
|
|
790
|
-
>
|
|
791
|
-
<slot></slot>
|
|
792
|
-
|
|
793
|
-
${this.loading ? html`
|
|
794
|
-
<div part="loading" class="combobox__loading">
|
|
795
|
-
<cw-spinner></cw-spinner>
|
|
796
|
-
</div>
|
|
797
|
-
` : ""}
|
|
798
|
-
${showNoOptions ? html`
|
|
799
|
-
<div part="no-options" class="combobox__no-options">
|
|
800
|
-
<slot name="no-options">No matching options found.</slot>
|
|
801
|
-
</div>
|
|
802
|
-
` : ""}
|
|
803
|
-
</div>
|
|
804
|
-
</cw-popup>
|
|
805
|
-
</div>
|
|
806
|
-
|
|
807
|
-
<div
|
|
808
|
-
part="form-control-help-text"
|
|
809
|
-
id="help-text"
|
|
810
|
-
class="form-control__help-text"
|
|
811
|
-
aria-hidden=${hasHelpText ? "false" : "true"}
|
|
812
|
-
>
|
|
813
|
-
<slot name="help-text">${this.helpText}</slot>
|
|
814
|
-
</div>
|
|
815
|
-
|
|
816
|
-
${this.multiple ? html`
|
|
817
|
-
<cw-visually-hidden role="status" aria-live="polite">
|
|
818
|
-
${this.localize.term("numOptionsSelected", this.selectedOptions.length)}
|
|
819
|
-
</cw-visually-hidden>
|
|
820
|
-
` : ""}
|
|
821
|
-
</div>
|
|
822
|
-
`;
|
|
823
|
-
}
|
|
824
|
-
};
|
|
825
|
-
CwCombobox.styles = [component_styles_default, form_control_styles_default, combobox_styles_default];
|
|
826
|
-
CwCombobox.dependencies = {
|
|
827
|
-
"cw-icon": CwIcon,
|
|
828
|
-
"cw-popup": CwPopup,
|
|
829
|
-
"cw-spinner": CwSpinner,
|
|
830
|
-
"cw-tag": CwTag,
|
|
831
|
-
"cw-visually-hidden": CwVisuallyHidden
|
|
832
|
-
};
|
|
833
|
-
__decorateClass([
|
|
834
|
-
query(".combobox")
|
|
835
|
-
], CwCombobox.prototype, "popup", 2);
|
|
836
|
-
__decorateClass([
|
|
837
|
-
query(".combobox__control")
|
|
838
|
-
], CwCombobox.prototype, "combobox", 2);
|
|
839
|
-
__decorateClass([
|
|
840
|
-
query(".combobox__display-input")
|
|
841
|
-
], CwCombobox.prototype, "displayInput", 2);
|
|
842
|
-
__decorateClass([
|
|
843
|
-
query(".combobox__value-input")
|
|
844
|
-
], CwCombobox.prototype, "valueInput", 2);
|
|
845
|
-
__decorateClass([
|
|
846
|
-
query(".combobox__listbox")
|
|
847
|
-
], CwCombobox.prototype, "listbox", 2);
|
|
848
|
-
__decorateClass([
|
|
849
|
-
state()
|
|
850
|
-
], CwCombobox.prototype, "hasFocus", 2);
|
|
851
|
-
__decorateClass([
|
|
852
|
-
state()
|
|
853
|
-
], CwCombobox.prototype, "displayLabel", 2);
|
|
854
|
-
__decorateClass([
|
|
855
|
-
state()
|
|
856
|
-
], CwCombobox.prototype, "currentOption", 2);
|
|
857
|
-
__decorateClass([
|
|
858
|
-
state()
|
|
859
|
-
], CwCombobox.prototype, "selectedOptions", 2);
|
|
860
|
-
__decorateClass([
|
|
861
|
-
state()
|
|
862
|
-
], CwCombobox.prototype, "activeOptionId", 2);
|
|
863
|
-
__decorateClass([
|
|
864
|
-
state()
|
|
865
|
-
], CwCombobox.prototype, "hasVisibleOptions", 2);
|
|
866
|
-
__decorateClass([
|
|
867
|
-
state()
|
|
868
|
-
], CwCombobox.prototype, "valueHasChanged", 2);
|
|
869
|
-
__decorateClass([
|
|
870
|
-
state()
|
|
871
|
-
], CwCombobox.prototype, "isFiltering", 2);
|
|
872
|
-
__decorateClass([
|
|
873
|
-
property()
|
|
874
|
-
], CwCombobox.prototype, "name", 2);
|
|
875
|
-
__decorateClass([
|
|
876
|
-
state()
|
|
877
|
-
], CwCombobox.prototype, "value", 1);
|
|
878
|
-
__decorateClass([
|
|
879
|
-
property({ attribute: "value" })
|
|
880
|
-
], CwCombobox.prototype, "defaultValue", 2);
|
|
881
|
-
__decorateClass([
|
|
882
|
-
property({ reflect: true })
|
|
883
|
-
], CwCombobox.prototype, "size", 2);
|
|
884
|
-
__decorateClass([
|
|
885
|
-
property()
|
|
886
|
-
], CwCombobox.prototype, "placeholder", 2);
|
|
887
|
-
__decorateClass([
|
|
888
|
-
property({ type: Boolean, reflect: true })
|
|
889
|
-
], CwCombobox.prototype, "multiple", 2);
|
|
890
|
-
__decorateClass([
|
|
891
|
-
property({ attribute: "max-options-visible", type: Number })
|
|
892
|
-
], CwCombobox.prototype, "maxOptionsVisible", 2);
|
|
893
|
-
__decorateClass([
|
|
894
|
-
property({ type: Boolean, reflect: true })
|
|
895
|
-
], CwCombobox.prototype, "disabled", 2);
|
|
896
|
-
__decorateClass([
|
|
897
|
-
property({ type: Boolean })
|
|
898
|
-
], CwCombobox.prototype, "clearable", 2);
|
|
899
|
-
__decorateClass([
|
|
900
|
-
property({ attribute: "allow-custom-value", type: Boolean })
|
|
901
|
-
], CwCombobox.prototype, "allowCustomValue", 2);
|
|
902
|
-
__decorateClass([
|
|
903
|
-
property({ type: Boolean, reflect: true })
|
|
904
|
-
], CwCombobox.prototype, "loading", 2);
|
|
905
|
-
__decorateClass([
|
|
906
|
-
property({ type: Boolean, reflect: true })
|
|
907
|
-
], CwCombobox.prototype, "open", 2);
|
|
908
|
-
__decorateClass([
|
|
909
|
-
property({ type: Boolean })
|
|
910
|
-
], CwCombobox.prototype, "hoist", 2);
|
|
911
|
-
__decorateClass([
|
|
912
|
-
property({ type: Boolean, reflect: true })
|
|
913
|
-
], CwCombobox.prototype, "filled", 2);
|
|
914
|
-
__decorateClass([
|
|
915
|
-
property({ type: Boolean, reflect: true })
|
|
916
|
-
], CwCombobox.prototype, "pill", 2);
|
|
917
|
-
__decorateClass([
|
|
918
|
-
property()
|
|
919
|
-
], CwCombobox.prototype, "label", 2);
|
|
920
|
-
__decorateClass([
|
|
921
|
-
property({ reflect: true })
|
|
922
|
-
], CwCombobox.prototype, "placement", 2);
|
|
923
|
-
__decorateClass([
|
|
924
|
-
property({ attribute: "help-text" })
|
|
925
|
-
], CwCombobox.prototype, "helpText", 2);
|
|
926
|
-
__decorateClass([
|
|
927
|
-
property({ reflect: true })
|
|
928
|
-
], CwCombobox.prototype, "form", 2);
|
|
929
|
-
__decorateClass([
|
|
930
|
-
property({ type: Boolean, reflect: true })
|
|
931
|
-
], CwCombobox.prototype, "required", 2);
|
|
932
|
-
__decorateClass([
|
|
933
|
-
property()
|
|
934
|
-
], CwCombobox.prototype, "getTag", 2);
|
|
935
|
-
__decorateClass([
|
|
936
|
-
watch("disabled", { waitUntilFirstUpdate: true })
|
|
937
|
-
], CwCombobox.prototype, "handleDisabledChange", 1);
|
|
938
|
-
__decorateClass([
|
|
939
|
-
watch(["defaultValue", "value"], { waitUntilFirstUpdate: true })
|
|
940
|
-
], CwCombobox.prototype, "handleValueChange", 1);
|
|
941
|
-
__decorateClass([
|
|
942
|
-
watch("open", { waitUntilFirstUpdate: true })
|
|
943
|
-
], CwCombobox.prototype, "handleOpenChange", 1);
|
|
944
|
-
setDefaultAnimation("combobox.show", {
|
|
945
|
-
keyframes: [
|
|
946
|
-
{ opacity: 0, scale: 0.9 },
|
|
947
|
-
{ opacity: 1, scale: 1 }
|
|
948
|
-
],
|
|
949
|
-
options: { duration: 100, easing: "ease" }
|
|
950
|
-
});
|
|
951
|
-
setDefaultAnimation("combobox.hide", {
|
|
952
|
-
keyframes: [
|
|
953
|
-
{ opacity: 1, scale: 1 },
|
|
954
|
-
{ opacity: 0, scale: 0.9 }
|
|
955
|
-
],
|
|
956
|
-
options: { duration: 100, easing: "ease" }
|
|
957
|
-
});
|
|
958
|
-
|
|
959
|
-
export {
|
|
960
|
-
CwCombobox
|
|
961
|
-
};
|