@kdcloudjs/shoelace 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunks/chunk.226T3KTA.js +11 -0
- package/cdn/chunks/chunk.2DGU6Y27.js +21 -0
- package/cdn/chunks/chunk.2GVHUW5C.js +11 -0
- package/cdn/chunks/chunk.2IVRNFRU.js +73 -0
- package/cdn/chunks/chunk.2NICGF3O.js +95 -0
- package/cdn/chunks/chunk.2PQBFMVP.js +28 -0
- package/cdn/chunks/chunk.2WNUV5PI.js +93 -0
- package/cdn/chunks/chunk.33CUA3Z2.js +120 -0
- package/cdn/chunks/chunk.3FDM5EJN.js +11 -0
- package/cdn/chunks/chunk.3NKDIRL6.js +21 -0
- package/cdn/chunks/chunk.3QFHTQZY.js +67 -0
- package/cdn/chunks/chunk.43VCZTB6.js +11 -0
- package/cdn/chunks/chunk.46H5FPXZ.js +75 -0
- package/cdn/chunks/chunk.475SOJAO.js +28 -0
- package/cdn/chunks/chunk.4IV4JJVG.js +26 -0
- package/cdn/chunks/chunk.4RQ3KDVR.js +28 -0
- package/cdn/chunks/chunk.5H2ATT4X.js +21 -0
- package/cdn/chunks/chunk.5I6XJ74U.js +21 -0
- package/cdn/chunks/chunk.5MR54PKJ.js +24 -0
- package/cdn/chunks/chunk.64CWFKX3.js +11 -0
- package/cdn/chunks/chunk.6JBPST77.js +336 -0
- package/cdn/chunks/chunk.6KS5NQNM.js +29 -0
- package/cdn/chunks/chunk.6KYZXY5D.js +11 -0
- package/cdn/chunks/chunk.6L47H33F.js +11 -0
- package/cdn/chunks/chunk.6NUFJ66T.js +11 -0
- package/cdn/chunks/chunk.6O3UE2MV.js +11 -0
- package/cdn/chunks/chunk.6ULP6XQ6.js +24 -0
- package/cdn/chunks/chunk.6WZ27344.js +142 -0
- package/cdn/chunks/chunk.6X6VGRFE.js +24 -0
- package/cdn/chunks/chunk.6Y76RBIV.js +11 -0
- package/cdn/chunks/chunk.72345564.js +25 -0
- package/cdn/chunks/chunk.7BNY7LJ7.js +90 -0
- package/cdn/chunks/chunk.7CQPG7JP.js +220 -0
- package/cdn/chunks/chunk.A575VBPW.js +11 -0
- package/cdn/chunks/chunk.ABKNVEIF.js +11 -0
- package/cdn/chunks/chunk.AFUGLO2J.js +82 -0
- package/cdn/chunks/chunk.AQLXVLLC.js +11 -0
- package/cdn/chunks/chunk.ARSOELAS.js +11 -0
- package/cdn/chunks/chunk.ASARZEQG.js +21 -0
- package/cdn/chunks/chunk.ASV42T2E.js +21 -0
- package/cdn/chunks/chunk.BAZGISYP.js +299 -0
- package/cdn/chunks/chunk.BM5X26KE.js +24 -0
- package/cdn/chunks/chunk.BOPYDZIV.js +817 -0
- package/cdn/chunks/chunk.BUGT6WF5.js +11 -0
- package/cdn/chunks/chunk.C56DLDQB.js +21 -0
- package/cdn/chunks/chunk.CEVCAMWX.js +11 -0
- package/cdn/chunks/chunk.CIJTQGA5.js +11 -0
- package/cdn/chunks/chunk.CNR4MZDJ.js +586 -0
- package/cdn/chunks/chunk.COGWDYK3.js +11 -0
- package/cdn/chunks/chunk.D63BQQF6.js +24 -0
- package/cdn/chunks/chunk.DDHL2VIZ.js +25 -0
- package/cdn/chunks/chunk.DERRIHEG.js +5845 -0
- package/cdn/chunks/chunk.DJQWYL6A.js +11 -0
- package/cdn/chunks/chunk.DOGMVRYQ.js +229 -0
- package/cdn/chunks/chunk.E3A2ZV4G.js +21 -0
- package/cdn/chunks/chunk.EFC4MFY2.js +24 -0
- package/cdn/chunks/chunk.EGE4VSGA.js +27 -0
- package/cdn/chunks/chunk.ERTNALQU.js +24 -0
- package/cdn/chunks/chunk.EYS73RDP.js +11 -0
- package/cdn/chunks/chunk.F26NBLPK.js +11 -0
- package/cdn/chunks/chunk.F5POJMOI.js +219 -0
- package/cdn/chunks/chunk.F6LKCVG2.js +137 -0
- package/cdn/chunks/chunk.FPVK7RSX.js +339 -0
- package/cdn/chunks/chunk.FSV4LJQO.js +24 -0
- package/cdn/chunks/chunk.FTBOPGL6.js +21 -0
- package/cdn/chunks/chunk.FW34JSGH.js +455 -0
- package/cdn/chunks/chunk.FWKBZNS6.js +97 -0
- package/cdn/chunks/chunk.G4N7MPWJ.js +25 -0
- package/cdn/chunks/chunk.G5DMMRUQ.js +119 -0
- package/cdn/chunks/chunk.GDIVSQS2.js +28 -0
- package/cdn/chunks/chunk.GIZEACAX.js +24 -0
- package/cdn/chunks/chunk.GKHDQHEH.js +267 -0
- package/cdn/chunks/chunk.GLIQM2OA.js +724 -0
- package/cdn/chunks/chunk.GQ5VEYP3.js +11 -0
- package/cdn/chunks/chunk.GTZHZDWI.js +11 -0
- package/cdn/chunks/chunk.GWE4YVV4.js +27 -0
- package/cdn/chunks/chunk.GX3PJHPQ.js +27 -0
- package/cdn/chunks/chunk.GXM67UX2.js +25 -0
- package/cdn/chunks/chunk.GY4NOO2A.js +153 -0
- package/cdn/chunks/chunk.H6GAZZO4.js +21 -0
- package/cdn/chunks/chunk.HCUTIIMI.js +113 -0
- package/cdn/chunks/chunk.HD65V4AX.js +47 -0
- package/cdn/chunks/chunk.HFHP3OIG.js +122 -0
- package/cdn/chunks/chunk.HNGGWFL2.js +49 -0
- package/cdn/chunks/chunk.HTQR4NGP.js +292 -0
- package/cdn/chunks/chunk.HUD34TPG.js +11 -0
- package/cdn/chunks/chunk.IFJ5H35Z.js +11 -0
- package/cdn/chunks/chunk.IOAAX734.js +25 -0
- package/cdn/chunks/chunk.IUAQGFOT.js +21 -0
- package/cdn/chunks/chunk.J5AFRKIT.js +367 -0
- package/cdn/chunks/chunk.JBNPTXYA.js +25 -0
- package/cdn/chunks/chunk.JKGKU3IG.js +1990 -0
- package/cdn/chunks/chunk.JLXJFBOW.js +63 -0
- package/cdn/chunks/chunk.JPQ7TJYO.js +11 -0
- package/cdn/chunks/chunk.JTVBQZV5.js +11 -0
- package/cdn/chunks/chunk.JWBQN7MN.js +27 -0
- package/cdn/chunks/chunk.JXV7EZNU.js +178 -0
- package/cdn/chunks/chunk.JYWV2VVH.js +11 -0
- package/cdn/chunks/chunk.KBZBPAOP.js +26 -0
- package/cdn/chunks/chunk.KJXKQ54G.js +21 -0
- package/cdn/chunks/chunk.KLX4IP5J.js +11 -0
- package/cdn/chunks/chunk.KN75WBDH.js +402 -0
- package/cdn/chunks/chunk.KQQL7WQY.js +11 -0
- package/cdn/chunks/chunk.KTXLNPQ6.js +24 -0
- package/cdn/chunks/chunk.KUKUZPGL.js +21 -0
- package/cdn/chunks/chunk.KY7LF3V3.js +502 -0
- package/cdn/chunks/chunk.L4BE2QNU.js +29 -0
- package/cdn/chunks/chunk.LOQ5FMU6.js +36 -0
- package/cdn/chunks/chunk.LPQUE2WM.js +25 -0
- package/cdn/chunks/chunk.LQZ32GYA.js +266 -0
- package/cdn/chunks/chunk.LWJ3GKZI.js +379 -0
- package/cdn/chunks/chunk.LZDMFQGK.js +54 -0
- package/cdn/chunks/chunk.M5INIPKU.js +291 -0
- package/cdn/chunks/chunk.MFK75WAB.js +54 -0
- package/cdn/chunks/chunk.MGP3LEMO.js +25 -0
- package/cdn/chunks/chunk.MJUBQQBQ.js +26 -0
- package/cdn/chunks/chunk.MPLIQ3WA.js +11 -0
- package/cdn/chunks/chunk.MREPXRCZ.js +11 -0
- package/cdn/chunks/chunk.MT7WQZWH.js +11 -0
- package/cdn/chunks/chunk.MWYQUTWB.js +11 -0
- package/cdn/chunks/chunk.N6RSK3EY.js +11 -0
- package/cdn/chunks/chunk.NEL7CTKW.js +21 -0
- package/cdn/chunks/chunk.NGCZYV5C.js +11 -0
- package/cdn/chunks/chunk.NQ56SMBO.js +279 -0
- package/cdn/chunks/chunk.OEOW5UZD.js +21 -0
- package/cdn/chunks/chunk.OJPX6I37.js +207 -0
- package/cdn/chunks/chunk.OK3SB6ZB.js +314 -0
- package/cdn/chunks/chunk.OPV4LWDL.js +302 -0
- package/cdn/chunks/chunk.OTLZF5DH.js +11 -0
- package/cdn/chunks/chunk.OTSYJSEU.js +233 -0
- package/cdn/chunks/chunk.PL7KMLQ5.js +29 -0
- package/cdn/chunks/chunk.PN4AG6RW.js +11 -0
- package/cdn/chunks/chunk.POBIFRTY.js +21 -0
- package/cdn/chunks/chunk.PQSBGFTM.js +79 -0
- package/cdn/chunks/chunk.PR7QMODJ.js +127 -0
- package/cdn/chunks/chunk.PY47Y45M.js +113 -0
- package/cdn/chunks/chunk.Q2WKF37T.js +186 -0
- package/cdn/chunks/chunk.Q5EBCTBC.js +27 -0
- package/cdn/chunks/chunk.Q6AXCRB3.js +24 -0
- package/cdn/chunks/chunk.QG3X6VAB.js +822 -0
- package/cdn/chunks/chunk.QGNFY5NC.js +27 -0
- package/cdn/chunks/chunk.QNRJMDRA.js +11 -0
- package/cdn/chunks/chunk.R56TYG7R.js +11 -0
- package/cdn/chunks/chunk.RBCHRWN2.js +103 -0
- package/cdn/chunks/chunk.RKWWWPJC.js +11 -0
- package/cdn/chunks/chunk.ROISDRBM.js +11 -0
- package/cdn/chunks/chunk.RRXHKTD4.js +21 -0
- package/cdn/chunks/chunk.RS262J54.js +24 -0
- package/cdn/chunks/chunk.SB5BNQR5.js +11 -0
- package/cdn/chunks/chunk.SI4YNAF2.js +49 -0
- package/cdn/chunks/chunk.SLYUWDE3.js +11 -0
- package/cdn/chunks/chunk.SMQ67RFH.js +42 -0
- package/cdn/chunks/chunk.SZ5QS6YA.js +11 -0
- package/cdn/chunks/chunk.T6RRSS3U.js +11 -0
- package/cdn/chunks/chunk.TKIO6ZIC.js +158 -0
- package/cdn/chunks/chunk.TL4WWCFB.js +493 -0
- package/cdn/chunks/chunk.TW4PTR4O.js +21 -0
- package/cdn/chunks/chunk.UA52MTA3.js +28 -0
- package/cdn/chunks/chunk.UCZMPMGN.js +77 -0
- package/cdn/chunks/chunk.UE43G6PJ.js +11 -0
- package/cdn/chunks/chunk.UFCDAF3K.js +11 -0
- package/cdn/chunks/chunk.UHRXTAZG.js +11 -0
- package/cdn/chunks/chunk.UJMSXTUB.js +298 -0
- package/cdn/chunks/chunk.ULGJX5ZV.js +346 -0
- package/cdn/chunks/chunk.UQK47RV6.js +11 -0
- package/cdn/chunks/chunk.UU26NWDB.js +11 -0
- package/cdn/chunks/chunk.UW2DE4F7.js +391 -0
- package/cdn/chunks/chunk.UYIZRRAW.js +11 -0
- package/cdn/chunks/chunk.UYKFHTN3.js +24 -0
- package/cdn/chunks/chunk.VHT6PNRV.js +25 -0
- package/cdn/chunks/chunk.VS3FP5QV.js +197 -0
- package/cdn/chunks/chunk.VS72WUWL.js +11 -0
- package/cdn/chunks/chunk.VTEA642B.js +11 -0
- package/cdn/chunks/chunk.W2ZFZ3PK.js +6096 -0
- package/cdn/chunks/chunk.WG5WKVPM.js +1879 -0
- package/cdn/chunks/chunk.WGYBEN3X.js +21 -0
- package/cdn/chunks/chunk.WIAYOMS5.js +11 -0
- package/cdn/chunks/chunk.WIJ23EA7.js +33 -0
- package/cdn/chunks/chunk.WL7GHA3M.js +114 -0
- package/cdn/chunks/chunk.WNSXI66D.js +29 -0
- package/cdn/chunks/chunk.WOQ7VOEH.js +28 -0
- package/cdn/chunks/chunk.WXCYAWJR.js +11 -0
- package/cdn/chunks/chunk.WXY6OB2C.js +87 -0
- package/cdn/chunks/chunk.X474KPYJ.js +21 -0
- package/cdn/chunks/chunk.X6WBXER6.js +11 -0
- package/cdn/chunks/chunk.XEJS7JGV.js +21 -0
- package/cdn/chunks/chunk.XENA47OC.js +118 -0
- package/cdn/chunks/chunk.XKEKLRMP.js +21 -0
- package/cdn/chunks/chunk.XNXLF5U6.js +11 -0
- package/cdn/chunks/chunk.XOJPAR6O.js +153 -0
- package/cdn/chunks/chunk.XPNYVKK5.js +11 -0
- package/cdn/chunks/chunk.XRHJO57O.js +216 -0
- package/cdn/chunks/chunk.YATLV4PE.js +135 -0
- package/cdn/chunks/chunk.YVUNU7A4.js +24 -0
- package/cdn/chunks/chunk.YXHVEJHY.js +255 -0
- package/cdn/chunks/chunk.ZEWT5A7Z.js +11 -0
- package/cdn/chunks/chunk.ZIZOKZBM.js +375 -0
- package/cdn/chunks/chunk.ZKTKNHGV.js +236 -0
- package/cdn/chunks/chunk.ZUZCTPFU.js +21 -0
- package/cdn/chunks/chunk.ZVF3XIXB.js +50 -0
- package/cdn/chunks/chunk.ZYKYPBZK.js +21 -0
- package/cdn/components/alert/alert.component.js +8 -8
- package/cdn/components/alert/alert.js +9 -9
- package/cdn/components/animated-image/animated-image.component.js +5 -5
- package/cdn/components/animated-image/animated-image.js +6 -6
- package/cdn/components/animation/animation.component.js +2 -2
- package/cdn/components/animation/animation.js +3 -3
- package/cdn/components/avatar/avatar.component.js +4 -4
- package/cdn/components/avatar/avatar.js +5 -5
- package/cdn/components/badge/badge.component.js +2 -2
- package/cdn/components/badge/badge.js +3 -3
- package/cdn/components/breadcrumb/breadcrumb.component.js +4 -4
- package/cdn/components/breadcrumb/breadcrumb.js +5 -5
- 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 +7 -7
- package/cdn/components/button/button.js +8 -8
- package/cdn/components/button-group/button-group.component.js +2 -2
- package/cdn/components/button-group/button-group.js +3 -3
- package/cdn/components/calendar/calendar.component.js +9 -9
- package/cdn/components/calendar/calendar.js +9 -9
- 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 -6
- package/cdn/components/carousel/carousel.js +7 -7
- 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 +15 -15
- package/cdn/components/color-picker/color-picker.js +16 -16
- package/cdn/components/copy-button/copy-button.component.js +8 -8
- package/cdn/components/copy-button/copy-button.js +9 -9
- package/cdn/components/date-panel/date-panel.component.js +47 -0
- package/cdn/components/date-panel/date-panel.js +51 -0
- package/cdn/components/date-panel/date-panel.styles.js +8 -0
- package/cdn/components/datepicker/datepicker.component.js +19 -17
- package/cdn/components/datepicker/datepicker.js +19 -17
- package/cdn/components/details/details.component.js +6 -6
- package/cdn/components/details/details.js +7 -7
- 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 +8 -8
- package/cdn/components/drawer/drawer.js +9 -9
- package/cdn/components/dropdown/dropdown.component.js +6 -6
- package/cdn/components/dropdown/dropdown.js +7 -7
- 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 +3 -3
- package/cdn/components/icon/icon.js +4 -4
- package/cdn/components/icon-button/icon-button.component.js +4 -4
- package/cdn/components/icon-button/icon-button.js +5 -5
- package/cdn/components/image-comparer/image-comparer.component.js +6 -6
- package/cdn/components/image-comparer/image-comparer.js +7 -7
- package/cdn/components/include/include.component.js +3 -3
- package/cdn/components/include/include.js +4 -4
- package/cdn/components/input/input.component.js +6 -6
- package/cdn/components/input/input.js +7 -7
- 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 +8 -8
- package/cdn/components/menu-item/menu-item.js +9 -9
- 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 +6 -6
- package/cdn/components/option/option.js +7 -7
- package/cdn/components/pagination/custom-select.js +7 -7
- package/cdn/components/pagination/pagination.component.js +11 -11
- package/cdn/components/pagination/pagination.js +11 -11
- package/cdn/components/pagination/pagination.styles.js +1 -1
- package/cdn/components/popup/popup.component.js +4 -4
- package/cdn/components/popup/popup.js +5 -5
- package/cdn/components/progress-bar/progress-bar.component.js +4 -4
- package/cdn/components/progress-bar/progress-bar.js +5 -5
- package/cdn/components/progress-ring/progress-ring.component.js +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 +4 -4
- package/cdn/components/radio/radio.js +5 -5
- package/cdn/components/radio-button/radio-button.component.js +2 -2
- package/cdn/components/radio-button/radio-button.js +3 -3
- package/cdn/components/radio-group/radio-group.component.js +3 -3
- package/cdn/components/radio-group/radio-group.js +4 -4
- package/cdn/components/range/range.component.js +4 -4
- package/cdn/components/range/range.js +5 -5
- package/cdn/components/rating/rating.component.js +6 -6
- package/cdn/components/rating/rating.js +7 -7
- 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/screen/screen.component.js +2 -2
- package/cdn/components/screen/screen.js +3 -3
- package/cdn/components/select/select.component.js +9 -9
- package/cdn/components/select/select.js +10 -10
- 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 +7 -7
- package/cdn/components/tab/tab.js +8 -8
- package/cdn/components/tab-group/tab-group.component.js +8 -8
- package/cdn/components/tab-group/tab-group.js +9 -9
- package/cdn/components/tab-panel/tab-panel.component.js +2 -2
- package/cdn/components/tab-panel/tab-panel.js +3 -3
- package/cdn/components/table/body-table.js +6 -5
- package/cdn/components/table/col-group.js +2 -2
- package/cdn/components/table/head-table.js +27 -27
- package/cdn/components/table/spinner-container.js +2 -2
- package/cdn/components/table/table.component.js +34 -34
- package/cdn/components/table/table.js +35 -35
- package/cdn/components/table/utils.js +1 -1
- package/cdn/components/tag/tag.component.js +7 -7
- package/cdn/components/tag/tag.js +8 -8
- package/cdn/components/textarea/textarea.component.js +2 -2
- package/cdn/components/textarea/textarea.js +3 -3
- package/cdn/components/time-panel/time-panel.component.js +8 -8
- package/cdn/components/time-panel/time-panel.js +8 -8
- package/cdn/components/timepicker/timepicker.component.js +14 -14
- package/cdn/components/timepicker/timepicker.js +15 -15
- package/cdn/components/tooltip/tooltip.component.js +5 -5
- package/cdn/components/tooltip/tooltip.js +6 -6
- package/cdn/components/tree/tree.component.js +11 -11
- package/cdn/components/tree/tree.js +12 -12
- package/cdn/components/tree-item/tree-item.component.js +9 -9
- package/cdn/components/tree-item/tree-item.js +10 -10
- package/cdn/components/visually-hidden/visually-hidden.component.js +2 -2
- package/cdn/components/visually-hidden/visually-hidden.js +3 -3
- package/cdn/custom-elements.json +2490 -2083
- package/cdn/react/alert/index.js +9 -9
- package/cdn/react/animated-image/index.js +6 -6
- package/cdn/react/animation/index.js +3 -3
- package/cdn/react/avatar/index.js +5 -5
- package/cdn/react/badge/index.js +3 -3
- package/cdn/react/breadcrumb/index.js +5 -5
- package/cdn/react/breadcrumb-item/index.js +3 -3
- package/cdn/react/button/index.js +8 -8
- package/cdn/react/button-group/index.js +3 -3
- package/cdn/react/card/index.js +3 -3
- package/cdn/react/carousel/index.js +7 -7
- package/cdn/react/carousel-item/index.js +3 -3
- package/cdn/react/checkbox/index.js +6 -6
- package/cdn/react/color-picker/index.js +16 -16
- package/cdn/react/copy-button/index.js +9 -9
- package/cdn/react/date-panel/index.js +48 -0
- package/cdn/react/datepicker/index.js +20 -18
- package/cdn/react/details/index.js +7 -7
- package/cdn/react/dialog/index.js +8 -8
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/drawer/index.js +9 -9
- package/cdn/react/dropdown/index.js +7 -7
- 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 +4 -4
- package/cdn/react/icon-button/index.js +5 -5
- package/cdn/react/image-comparer/index.js +7 -7
- package/cdn/react/include/index.js +4 -4
- package/cdn/react/index.js +226 -220
- package/cdn/react/input/index.js +7 -7
- package/cdn/react/menu/index.js +3 -3
- package/cdn/react/menu-item/index.js +9 -9
- package/cdn/react/menu-label/index.js +3 -3
- package/cdn/react/mutation-observer/index.js +3 -3
- package/cdn/react/option/index.js +7 -7
- package/cdn/react/pagination/index.js +12 -12
- package/cdn/react/popup/index.js +5 -5
- package/cdn/react/progress-bar/index.js +5 -5
- package/cdn/react/progress-ring/index.js +3 -3
- package/cdn/react/qr-code/index.js +3 -3
- package/cdn/react/radio/index.js +5 -5
- package/cdn/react/radio-button/index.js +3 -3
- package/cdn/react/radio-group/index.js +4 -4
- package/cdn/react/range/index.js +5 -5
- package/cdn/react/rating/index.js +7 -7
- package/cdn/react/relative-time/index.js +3 -3
- package/cdn/react/resize-observer/index.js +3 -3
- package/cdn/react/screen/index.js +3 -3
- package/cdn/react/select/index.js +10 -10
- 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 +8 -8
- package/cdn/react/tab-group/index.js +9 -9
- package/cdn/react/tab-panel/index.js +3 -3
- package/cdn/react/table/index.js +35 -35
- package/cdn/react/tag/index.js +8 -8
- package/cdn/react/textarea/index.js +3 -3
- package/cdn/react/timepicker/index.js +13 -13
- package/cdn/react/tooltip/index.js +6 -6
- package/cdn/react/tree/index.js +12 -12
- package/cdn/react/tree-item/index.js +10 -10
- package/cdn/react/visually-hidden/index.js +3 -3
- package/cdn/shoelace.js +205 -205
- package/cdn/types/vue/index.d.ts +298 -247
- package/cdn/vscode.html-custom-data.json +286 -253
- package/cdn/web-types.json +653 -564
- package/dist/chunks/chunk.23K7R4NT.js +21 -0
- package/dist/chunks/chunk.2BAPB5ES.js +27 -0
- package/dist/chunks/chunk.2J6YXAWS.js +126 -0
- package/dist/chunks/chunk.2KAFZV2U.js +11 -0
- package/dist/chunks/chunk.2OGA6BZH.js +29 -0
- package/dist/chunks/chunk.2YRC6UA6.js +29 -0
- package/dist/chunks/chunk.32ACMMB6.js +11 -0
- package/dist/chunks/chunk.35CVCI6E.js +24 -0
- package/dist/chunks/chunk.3DRUISHG.js +21 -0
- package/dist/chunks/chunk.3TCZIRLS.js +11 -0
- package/dist/chunks/chunk.45JFYGIK.js +80 -0
- package/dist/chunks/chunk.4AKCX5MH.js +11 -0
- package/dist/chunks/chunk.4HRUBCPR.js +28 -0
- package/dist/chunks/chunk.4JORV644.js +25 -0
- package/dist/chunks/chunk.4MOUWA4Z.js +21 -0
- package/dist/chunks/chunk.4QWIG25M.js +147 -0
- package/dist/chunks/chunk.55S3OOTM.js +33 -0
- package/dist/chunks/chunk.5IBHAVZB.js +11 -0
- package/dist/chunks/chunk.5LIVGRUK.js +814 -0
- package/dist/chunks/chunk.5LW6WNIF.js +28 -0
- package/dist/chunks/chunk.5O7H5V47.js +11 -0
- package/dist/chunks/chunk.5PHH6PWX.js +11 -0
- package/dist/chunks/chunk.5TRNUMBN.js +315 -0
- package/dist/chunks/chunk.5VIQWMIT.js +119 -0
- package/dist/chunks/chunk.6226EGTC.js +24 -0
- package/dist/chunks/chunk.6DV25BZ3.js +11 -0
- package/dist/chunks/chunk.6E4JXCKX.js +11 -0
- package/dist/chunks/chunk.6HCN3CVD.js +29 -0
- package/dist/chunks/chunk.6HDQXFGS.js +11 -0
- package/dist/chunks/chunk.6HL5WIAB.js +417 -0
- package/dist/chunks/chunk.6RXDWBBR.js +135 -0
- package/dist/chunks/chunk.6UDSH4MU.js +21 -0
- package/dist/chunks/chunk.6UEXF2NO.js +11 -0
- package/dist/chunks/chunk.7CQOMPVQ.js +27 -0
- package/dist/chunks/chunk.7I4AGK2W.js +11 -0
- package/dist/chunks/chunk.7ITNVYCE.js +27 -0
- package/dist/chunks/chunk.7IYR2C2M.js +42 -0
- package/dist/chunks/chunk.7JNOANWO.js +21 -0
- package/dist/chunks/chunk.7MJ5DZAT.js +21 -0
- package/dist/chunks/chunk.7PLM7LGQ.js +45 -0
- package/dist/chunks/chunk.7TJ3OU57.js +11 -0
- package/dist/chunks/chunk.A6RWY7SS.js +51 -0
- package/dist/chunks/chunk.AGWHCSPV.js +247 -0
- package/dist/chunks/chunk.AM3JZDVB.js +22 -0
- package/dist/chunks/chunk.AROHADPZ.js +28 -0
- package/dist/chunks/chunk.AS7AINCJ.js +11 -0
- package/dist/chunks/chunk.B3I5UMF7.js +11 -0
- package/dist/chunks/chunk.B3PQOMHX.js +75 -0
- package/dist/chunks/chunk.BGRYUZRK.js +11 -0
- package/dist/chunks/chunk.BIAKIAJA.js +28 -0
- package/dist/chunks/chunk.BSSTY3ZB.js +113 -0
- package/dist/chunks/chunk.BTCOZSMV.js +280 -0
- package/dist/chunks/chunk.BUYWCJQE.js +11 -0
- package/dist/chunks/chunk.CH37X4P2.js +85 -0
- package/dist/chunks/chunk.CQ6VBUBR.js +96 -0
- package/dist/chunks/chunk.CSOWQ6ZF.js +22 -0
- package/dist/chunks/chunk.CXA6EXAW.js +27 -0
- package/dist/chunks/chunk.CXU7I7I7.js +45 -0
- package/dist/chunks/chunk.D5KF7L4N.js +21 -0
- package/dist/chunks/chunk.DBTBPR6I.js +11 -0
- package/dist/chunks/chunk.DM3OE4HD.js +286 -0
- package/dist/chunks/chunk.DOJK6RUS.js +100 -0
- package/dist/chunks/chunk.DQB4ELCQ.js +21 -0
- package/dist/chunks/chunk.DTGV36KM.js +100 -0
- package/dist/chunks/chunk.DTMV2ULT.js +11 -0
- package/dist/chunks/chunk.EEKY6YDI.js +11 -0
- package/dist/chunks/chunk.EFHRHRWG.js +11 -0
- package/dist/chunks/chunk.EJNVBHMH.js +21 -0
- package/dist/chunks/chunk.ELAFEIPF.js +294 -0
- package/dist/chunks/chunk.EQJH2YFS.js +11 -0
- package/dist/chunks/chunk.F6KTV6TM.js +21 -0
- package/dist/chunks/chunk.FABTVEML.js +212 -0
- package/dist/chunks/chunk.FB63SVB3.js +11 -0
- package/dist/chunks/chunk.FDMNNFER.js +11 -0
- package/dist/chunks/chunk.FI2TCNNM.js +181 -0
- package/dist/chunks/chunk.FVWZSKWN.js +11 -0
- package/dist/chunks/chunk.G2IQGQTI.js +11 -0
- package/dist/chunks/chunk.G2NKHICI.js +21 -0
- package/dist/chunks/chunk.G7UNLCTM.js +11 -0
- package/dist/chunks/chunk.GAIJOPWX.js +35 -0
- package/dist/chunks/chunk.GDOJ72TB.js +949 -0
- package/dist/chunks/chunk.GHTILCMM.js +25 -0
- package/dist/chunks/chunk.GHW3EPMK.js +311 -0
- package/dist/chunks/chunk.GK62YFVA.js +21 -0
- package/dist/chunks/chunk.GVYXCDBW.js +25 -0
- package/dist/chunks/chunk.HARIMSYA.js +11 -0
- package/dist/chunks/chunk.HD65V4AX.js +47 -0
- package/dist/chunks/chunk.HFOJQZOV.js +11 -0
- package/dist/chunks/chunk.HGUMHCJ3.js +33 -0
- package/dist/chunks/chunk.HJFDDXS6.js +87 -0
- package/dist/chunks/chunk.HZD5GWNS.js +11 -0
- package/dist/chunks/chunk.I2LYHYCJ.js +21 -0
- package/dist/chunks/chunk.I63M2N2I.js +111 -0
- package/dist/chunks/chunk.I6WAAJDP.js +28 -0
- package/dist/chunks/chunk.IBRIK4MX.js +11 -0
- package/dist/chunks/chunk.IO4L7D3R.js +494 -0
- package/dist/chunks/chunk.J76SHUCJ.js +116 -0
- package/dist/chunks/chunk.JCF3SGWP.js +151 -0
- package/dist/chunks/chunk.K53OW3SG.js +21 -0
- package/dist/chunks/chunk.K6P23T7S.js +11 -0
- package/dist/chunks/chunk.KIMVNML5.js +11 -0
- package/dist/chunks/chunk.KMDFY6IR.js +27 -0
- package/dist/chunks/chunk.KPRSKD3P.js +39 -0
- package/dist/chunks/chunk.KZ2E2QPX.js +214 -0
- package/dist/chunks/chunk.L2XYGNOM.js +167 -0
- package/dist/chunks/chunk.L6IB7TSB.js +448 -0
- package/dist/chunks/chunk.LBA6EKPQ.js +59 -0
- package/dist/chunks/chunk.LVPIOFIR.js +93 -0
- package/dist/chunks/chunk.M3ZETKTC.js +134 -0
- package/dist/chunks/chunk.M4MEGHVA.js +11 -0
- package/dist/chunks/chunk.M6K5R2VR.js +67 -0
- package/dist/chunks/chunk.M6ZHGEXN.js +11 -0
- package/dist/chunks/chunk.MCD46OIE.js +11 -0
- package/dist/chunks/chunk.MD64S3ZW.js +333 -0
- package/dist/chunks/chunk.MPYCS6NC.js +11 -0
- package/dist/chunks/chunk.MRT2Y3XH.js +11 -0
- package/dist/chunks/chunk.MXNOEVRE.js +813 -0
- package/dist/chunks/chunk.MXT5E2E3.js +291 -0
- package/dist/chunks/chunk.NBRBQS2A.js +91 -0
- package/dist/chunks/chunk.NBVINANI.js +21 -0
- package/dist/chunks/chunk.NKVJLRXA.js +11 -0
- package/dist/chunks/chunk.NPSSFTSZ.js +25 -0
- package/dist/chunks/chunk.NPZGO3TF.js +50 -0
- package/dist/chunks/chunk.NW73JBXM.js +369 -0
- package/dist/chunks/chunk.O353OWBH.js +117 -0
- package/dist/chunks/chunk.OBEF6N5D.js +24 -0
- package/dist/chunks/chunk.OBLIKQB3.js +26 -0
- package/dist/chunks/chunk.OFFPQXOQ.js +21 -0
- package/dist/chunks/chunk.ONADNVXD.js +11 -0
- package/dist/chunks/chunk.OQEO56ZS.js +259 -0
- package/dist/chunks/chunk.ORZXW3UE.js +25 -0
- package/dist/chunks/chunk.OUI74XAI.js +484 -0
- package/dist/chunks/chunk.OV3GZJAR.js +11 -0
- package/dist/chunks/chunk.OW3KW6VO.js +109 -0
- package/dist/chunks/chunk.P7CKOTGP.js +11 -0
- package/dist/chunks/chunk.PAQULMRN.js +21 -0
- package/dist/chunks/chunk.PE4KZWE6.js +28 -0
- package/dist/chunks/chunk.PHVS3KJH.js +156 -0
- package/dist/chunks/chunk.PKGVMMJG.js +11 -0
- package/dist/chunks/chunk.PM4AMVBK.js +21 -0
- package/dist/chunks/chunk.PON4NNDJ.js +231 -0
- package/dist/chunks/chunk.Q6YUGPVX.js +75 -0
- package/dist/chunks/chunk.QGHSEJOU.js +25 -0
- package/dist/chunks/chunk.QH2UWZH5.js +25 -0
- package/dist/chunks/chunk.QI3W6HTK.js +21 -0
- package/dist/chunks/chunk.QLNJE55A.js +63 -0
- package/dist/chunks/chunk.QSDSNJKA.js +21 -0
- package/dist/chunks/chunk.QXOMAHWK.js +11 -0
- package/dist/chunks/chunk.R2SBUTSK.js +11 -0
- package/dist/chunks/chunk.R5BPAQWB.js +24 -0
- package/dist/chunks/chunk.RC22A6WL.js +34 -0
- package/dist/chunks/chunk.RJLUOWN7.js +24 -0
- package/dist/chunks/chunk.RJZ63WPY.js +11 -0
- package/dist/chunks/chunk.RQHBV33L.js +24 -0
- package/dist/chunks/chunk.RYIEJALO.js +293 -0
- package/dist/chunks/chunk.S35XBDYL.js +11 -0
- package/dist/chunks/chunk.S6V5W6F6.js +11 -0
- package/dist/chunks/chunk.S72HPYOZ.js +24 -0
- package/dist/chunks/chunk.SEPTQA5Z.js +21 -0
- package/dist/chunks/chunk.ST5YCFFA.js +119 -0
- package/dist/chunks/chunk.SXW7Z6ZF.js +227 -0
- package/dist/chunks/chunk.TC7HEXQD.js +24 -0
- package/dist/chunks/chunk.THHF2YU7.js +550 -0
- package/dist/chunks/chunk.THWXZUDV.js +26 -0
- package/dist/chunks/chunk.TTEHZN2N.js +21 -0
- package/dist/chunks/chunk.TYQJKOUY.js +24 -0
- package/dist/chunks/chunk.UCZXKYHX.js +205 -0
- package/dist/chunks/chunk.UGKTF4KF.js +52 -0
- package/dist/chunks/chunk.UJOYFODR.js +11 -0
- package/dist/chunks/chunk.UNJALYPM.js +11 -0
- package/dist/chunks/chunk.UQGDM7HN.js +274 -0
- package/dist/chunks/chunk.UYCPHCRE.js +371 -0
- package/dist/chunks/chunk.UZSTWEES.js +73 -0
- package/dist/chunks/chunk.V4ACSAX5.js +29 -0
- package/dist/chunks/chunk.V4OFZZMW.js +21 -0
- package/dist/chunks/chunk.VHWATTYS.js +55 -0
- package/dist/chunks/chunk.VKXVNU5C.js +11 -0
- package/dist/chunks/chunk.VZDXD5YC.js +21 -0
- package/dist/chunks/chunk.W4O4QP2L.js +384 -0
- package/dist/chunks/chunk.W5KB6T3Z.js +91 -0
- package/dist/chunks/chunk.W5MMYC3G.js +192 -0
- package/dist/chunks/chunk.WBWPWG4N.js +302 -0
- package/dist/chunks/chunk.WENLC4PY.js +11 -0
- package/dist/chunks/chunk.WFNZBTGD.js +175 -0
- package/dist/chunks/chunk.WHF6ESAS.js +24 -0
- package/dist/chunks/chunk.WIJMV6OZ.js +337 -0
- package/dist/chunks/chunk.WKSHSVGC.js +25 -0
- package/dist/chunks/chunk.WO7ALQNH.js +46 -0
- package/dist/chunks/chunk.WUUCPSLN.js +213 -0
- package/dist/chunks/chunk.WUWD2BSL.js +11 -0
- package/dist/chunks/chunk.WY73GMZ7.js +11 -0
- package/dist/chunks/chunk.WZQP5JDX.js +25 -0
- package/dist/chunks/chunk.X7TTTNXB.js +11 -0
- package/dist/chunks/chunk.XHPJLIWX.js +26 -0
- package/dist/chunks/chunk.XQGFFI4E.js +11 -0
- package/dist/chunks/chunk.Y3CWY7MQ.js +11 -0
- package/dist/chunks/chunk.Y3MHU54X.js +11 -0
- package/dist/chunks/chunk.Y45VBPZ3.js +150 -0
- package/dist/chunks/chunk.YIDE4D7D.js +25 -0
- package/dist/chunks/chunk.YIPMXBCU.js +90 -0
- package/dist/chunks/chunk.YPXJR2OL.js +361 -0
- package/dist/chunks/chunk.YR3LRTL7.js +224 -0
- package/dist/chunks/chunk.YXGFGUZJ.js +11 -0
- package/dist/chunks/chunk.ZMQFIJ2T.js +11 -0
- package/dist/chunks/chunk.ZNNGKQEN.js +575 -0
- package/dist/chunks/chunk.ZQHA5KWE.js +24 -0
- package/dist/chunks/chunk.ZQR2MBTN.js +24 -0
- package/dist/chunks/chunk.ZVZFQNJG.js +111 -0
- package/dist/chunks/chunk.ZZ7SF3Y7.js +397 -0
- package/dist/components/alert/alert.component.js +10 -10
- package/dist/components/alert/alert.js +11 -11
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/animated-image/animated-image.component.js +7 -7
- package/dist/components/animated-image/animated-image.js +8 -8
- package/dist/components/animated-image/animated-image.styles.js +1 -1
- package/dist/components/animation/animation.component.js +4 -4
- package/dist/components/animation/animation.js +5 -5
- package/dist/components/animation/animation.styles.js +1 -1
- package/dist/components/animation/animations.js +1 -1
- package/dist/components/avatar/avatar.component.js +6 -6
- package/dist/components/avatar/avatar.js +7 -7
- package/dist/components/avatar/avatar.styles.js +1 -1
- package/dist/components/badge/badge.component.js +3 -3
- package/dist/components/badge/badge.js +4 -4
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +6 -6
- package/dist/components/breadcrumb/breadcrumb.js +7 -7
- package/dist/components/breadcrumb/breadcrumb.styles.js +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +4 -4
- package/dist/components/breadcrumb-item/breadcrumb-item.js +5 -5
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
- package/dist/components/button/button.component.js +8 -8
- package/dist/components/button/button.js +9 -9
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/button-group/button-group.component.js +3 -3
- package/dist/components/button-group/button-group.js +4 -4
- package/dist/components/button-group/button-group.styles.js +1 -1
- package/dist/components/calendar/calendar.component.js +10 -10
- package/dist/components/calendar/calendar.js +10 -10
- package/dist/components/card/card.component.js +3 -3
- package/dist/components/card/card.js +4 -4
- package/dist/components/card/card.styles.js +1 -1
- package/dist/components/carousel/autoplay-controller.js +1 -1
- package/dist/components/carousel/carousel.component.js +7 -7
- package/dist/components/carousel/carousel.js +8 -8
- package/dist/components/carousel/carousel.styles.js +1 -1
- package/dist/components/carousel-item/carousel-item.component.js +3 -3
- package/dist/components/carousel-item/carousel-item.js +4 -4
- package/dist/components/carousel-item/carousel-item.styles.js +1 -1
- package/dist/components/checkbox/checkbox.component.js +8 -8
- package/dist/components/checkbox/checkbox.js +9 -9
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/color-picker/color-picker.component.js +18 -18
- package/dist/components/color-picker/color-picker.js +19 -19
- package/dist/components/color-picker/color-picker.styles.js +1 -1
- package/dist/components/copy-button/copy-button.component.js +10 -10
- package/dist/components/copy-button/copy-button.js +11 -11
- package/dist/components/copy-button/copy-button.styles.js +1 -1
- package/dist/components/date-panel/date-panel.component.js +40 -0
- package/dist/components/date-panel/date-panel.js +44 -0
- package/dist/components/date-panel/date-panel.styles.js +7 -0
- package/dist/components/datepicker/datepicker.component.js +23 -21
- package/dist/components/datepicker/datepicker.js +23 -21
- package/dist/components/details/details.component.js +8 -8
- package/dist/components/details/details.js +9 -9
- package/dist/components/details/details.styles.js +1 -1
- package/dist/components/dialog/dialog.component.js +11 -11
- package/dist/components/dialog/dialog.js +12 -12
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/divider/divider.component.js +4 -4
- package/dist/components/divider/divider.js +5 -5
- package/dist/components/divider/divider.styles.js +1 -1
- package/dist/components/drawer/drawer.component.js +12 -12
- package/dist/components/drawer/drawer.js +13 -13
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/dropdown/dropdown.component.js +8 -8
- package/dist/components/dropdown/dropdown.js +9 -9
- package/dist/components/dropdown/dropdown.styles.js +1 -1
- package/dist/components/format-bytes/format-bytes.component.js +3 -3
- package/dist/components/format-bytes/format-bytes.js +4 -4
- package/dist/components/format-date/format-date.component.js +3 -3
- package/dist/components/format-date/format-date.js +4 -4
- package/dist/components/format-number/format-number.component.js +3 -3
- package/dist/components/format-number/format-number.js +4 -4
- package/dist/components/icon/icon.component.js +5 -5
- package/dist/components/icon/icon.js +6 -6
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/library.default.js +1 -1
- package/dist/components/icon/library.js +1 -1
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.js +6 -6
- package/dist/components/icon-button/icon-button.js +7 -7
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/image-comparer/image-comparer.component.js +6 -6
- package/dist/components/image-comparer/image-comparer.js +7 -7
- package/dist/components/image-comparer/image-comparer.styles.js +1 -1
- package/dist/components/include/include.component.js +5 -5
- package/dist/components/include/include.js +6 -6
- package/dist/components/include/include.styles.js +1 -1
- package/dist/components/include/request.js +1 -1
- package/dist/components/input/input.component.js +7 -7
- package/dist/components/input/input.js +8 -8
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/menu/menu.component.js +3 -3
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/menu/menu.styles.js +1 -1
- package/dist/components/menu-item/menu-item.component.js +8 -8
- package/dist/components/menu-item/menu-item.js +9 -9
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-item/submenu-controller.js +1 -1
- package/dist/components/menu-label/menu-label.component.js +3 -3
- package/dist/components/menu-label/menu-label.js +4 -4
- package/dist/components/menu-label/menu-label.styles.js +1 -1
- package/dist/components/mutation-observer/mutation-observer.component.js +4 -4
- package/dist/components/mutation-observer/mutation-observer.js +5 -5
- package/dist/components/mutation-observer/mutation-observer.styles.js +1 -1
- package/dist/components/option/option.component.js +6 -6
- package/dist/components/option/option.js +7 -7
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/pagination/custom-select.js +9 -9
- package/dist/components/pagination/pagination.component.js +13 -13
- package/dist/components/pagination/pagination.js +13 -13
- package/dist/components/pagination/pagination.styles.js +2 -2
- package/dist/components/popup/popup.component.js +3 -3
- package/dist/components/popup/popup.js +4 -4
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/progress-bar/progress-bar.component.js +3 -3
- package/dist/components/progress-bar/progress-bar.js +4 -4
- package/dist/components/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.component.js +3 -3
- package/dist/components/progress-ring/progress-ring.js +4 -4
- package/dist/components/progress-ring/progress-ring.styles.js +1 -1
- package/dist/components/qr-code/qr-code.component.js +4 -4
- package/dist/components/qr-code/qr-code.js +5 -5
- package/dist/components/qr-code/qr-code.styles.js +1 -1
- package/dist/components/radio/radio.component.js +6 -6
- package/dist/components/radio/radio.js +7 -7
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.component.js +4 -4
- package/dist/components/radio-button/radio-button.js +5 -5
- package/dist/components/radio-button/radio-button.styles.js +1 -1
- package/dist/components/radio-group/radio-group.component.js +6 -6
- package/dist/components/radio-group/radio-group.js +7 -7
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/range/range.component.js +5 -5
- package/dist/components/range/range.js +6 -6
- package/dist/components/range/range.styles.js +1 -1
- package/dist/components/rating/rating.component.js +6 -6
- package/dist/components/rating/rating.js +7 -7
- package/dist/components/rating/rating.styles.js +1 -1
- package/dist/components/relative-time/relative-time.component.js +3 -3
- package/dist/components/relative-time/relative-time.js +4 -4
- package/dist/components/resize-observer/resize-observer.component.js +4 -4
- package/dist/components/resize-observer/resize-observer.js +5 -5
- package/dist/components/resize-observer/resize-observer.styles.js +1 -1
- package/dist/components/screen/gridstack.styles.js +1 -1
- package/dist/components/screen/screen.component.js +4 -4
- package/dist/components/screen/screen.js +5 -5
- package/dist/components/screen/screen.styles.js +1 -1
- package/dist/components/select/select.component.js +12 -12
- package/dist/components/select/select.js +13 -13
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/skeleton/skeleton.component.js +3 -3
- package/dist/components/skeleton/skeleton.js +4 -4
- package/dist/components/skeleton/skeleton.styles.js +1 -1
- package/dist/components/spinner/spinner.component.js +3 -3
- package/dist/components/spinner/spinner.js +4 -4
- package/dist/components/spinner/spinner.styles.js +1 -1
- package/dist/components/split-panel/split-panel.component.js +4 -4
- package/dist/components/split-panel/split-panel.js +5 -5
- package/dist/components/split-panel/split-panel.styles.js +1 -1
- package/dist/components/switch/switch.component.js +5 -5
- package/dist/components/switch/switch.js +6 -6
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.component.js +7 -7
- package/dist/components/tab/tab.js +8 -8
- package/dist/components/tab/tab.styles.js +1 -1
- package/dist/components/tab-group/tab-group.component.js +8 -8
- package/dist/components/tab-group/tab-group.js +9 -9
- package/dist/components/tab-group/tab-group.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +4 -4
- package/dist/components/tab-panel/tab-panel.js +5 -5
- package/dist/components/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/table/body-table.js +7 -6
- package/dist/components/table/col-group.js +3 -3
- package/dist/components/table/const.js +1 -1
- package/dist/components/table/features/index.js +1 -1
- package/dist/components/table/features/row-expend.js +1 -1
- package/dist/components/table/features/row-filtering.js +1 -1
- package/dist/components/table/features/row-selection.js +1 -1
- package/dist/components/table/features/row-sorting.js +1 -1
- package/dist/components/table/head-table.js +30 -30
- package/dist/components/table/spinner-container.js +3 -3
- package/dist/components/table/table.component.js +37 -37
- package/dist/components/table/table.context.js +1 -1
- package/dist/components/table/table.js +38 -38
- package/dist/components/table/utils.js +2 -2
- package/dist/components/tag/tag.component.js +7 -7
- package/dist/components/tag/tag.js +8 -8
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.component.js +5 -5
- package/dist/components/textarea/textarea.js +6 -6
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/time-panel/time-panel.component.js +9 -9
- package/dist/components/time-panel/time-panel.js +9 -9
- package/dist/components/time-panel/time-panel.styles.js +1 -1
- package/dist/components/timepicker/timepicker.component.js +15 -15
- package/dist/components/timepicker/timepicker.js +16 -16
- package/dist/components/timepicker/timepicker.styles.js +1 -1
- package/dist/components/tooltip/tooltip.component.js +7 -7
- package/dist/components/tooltip/tooltip.js +8 -8
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/components/tree/tree.component.js +14 -14
- package/dist/components/tree/tree.js +15 -15
- package/dist/components/tree/tree.styles.js +1 -1
- package/dist/components/tree-item/tree-item.component.js +12 -12
- package/dist/components/tree-item/tree-item.js +13 -13
- package/dist/components/tree-item/tree-item.styles.js +1 -1
- package/dist/components/visually-hidden/visually-hidden.component.js +3 -3
- package/dist/components/visually-hidden/visually-hidden.js +4 -4
- package/dist/components/visually-hidden/visually-hidden.styles.js +1 -1
- package/dist/custom-elements.json +2490 -2083
- package/dist/react/alert/index.js +11 -11
- package/dist/react/animated-image/index.js +8 -8
- package/dist/react/animation/index.js +5 -5
- package/dist/react/avatar/index.js +7 -7
- package/dist/react/badge/index.js +4 -4
- package/dist/react/breadcrumb/index.js +7 -7
- package/dist/react/breadcrumb-item/index.js +5 -5
- package/dist/react/button/index.js +9 -9
- package/dist/react/button-group/index.js +4 -4
- package/dist/react/card/index.js +4 -4
- package/dist/react/carousel/index.js +8 -8
- package/dist/react/carousel-item/index.js +4 -4
- package/dist/react/checkbox/index.js +9 -9
- package/dist/react/color-picker/index.js +19 -19
- package/dist/react/copy-button/index.js +11 -11
- package/dist/react/date-panel/index.js +41 -0
- package/dist/react/datepicker/index.js +24 -22
- package/dist/react/details/index.js +9 -9
- package/dist/react/dialog/index.js +12 -12
- package/dist/react/divider/index.js +5 -5
- package/dist/react/drawer/index.js +13 -13
- package/dist/react/dropdown/index.js +9 -9
- package/dist/react/format-bytes/index.js +4 -4
- package/dist/react/format-date/index.js +4 -4
- package/dist/react/format-number/index.js +4 -4
- package/dist/react/icon/index.js +6 -6
- package/dist/react/icon-button/index.js +7 -7
- package/dist/react/image-comparer/index.js +7 -7
- package/dist/react/include/index.js +6 -6
- package/dist/react/index.js +230 -224
- package/dist/react/input/index.js +8 -8
- package/dist/react/menu/index.js +4 -4
- package/dist/react/menu-item/index.js +9 -9
- package/dist/react/menu-label/index.js +4 -4
- package/dist/react/mutation-observer/index.js +5 -5
- package/dist/react/option/index.js +7 -7
- package/dist/react/pagination/index.js +14 -14
- package/dist/react/popup/index.js +4 -4
- package/dist/react/progress-bar/index.js +4 -4
- package/dist/react/progress-ring/index.js +4 -4
- package/dist/react/qr-code/index.js +5 -5
- package/dist/react/radio/index.js +7 -7
- package/dist/react/radio-button/index.js +5 -5
- package/dist/react/radio-group/index.js +7 -7
- package/dist/react/range/index.js +6 -6
- package/dist/react/rating/index.js +7 -7
- package/dist/react/relative-time/index.js +4 -4
- package/dist/react/resize-observer/index.js +5 -5
- package/dist/react/screen/index.js +5 -5
- package/dist/react/select/index.js +13 -13
- package/dist/react/skeleton/index.js +4 -4
- package/dist/react/spinner/index.js +4 -4
- package/dist/react/split-panel/index.js +5 -5
- package/dist/react/switch/index.js +6 -6
- package/dist/react/tab/index.js +8 -8
- package/dist/react/tab-group/index.js +9 -9
- package/dist/react/tab-panel/index.js +5 -5
- package/dist/react/table/index.js +38 -38
- package/dist/react/tag/index.js +8 -8
- package/dist/react/textarea/index.js +6 -6
- package/dist/react/timepicker/index.js +14 -14
- package/dist/react/tooltip/index.js +8 -8
- package/dist/react/tree/index.js +15 -15
- package/dist/react/tree-item/index.js +13 -13
- package/dist/react/visually-hidden/index.js +4 -4
- package/dist/shoelace-autoloader.js +1 -1
- package/dist/shoelace.js +209 -209
- package/dist/translations/ar.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nn.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-tw.js +1 -1
- package/dist/types/vue/index.d.ts +298 -247
- package/dist/utilities/animation-registry.js +2 -2
- package/dist/utilities/animation.js +1 -1
- package/dist/utilities/base-path.js +1 -1
- package/dist/utilities/form.js +3 -3
- package/dist/utilities/icon-library.js +1 -1
- package/dist/utilities/localize.js +1 -1
- package/dist/utilities/spread.js +1 -1
- package/dist/vscode.html-custom-data.json +286 -253
- package/dist/web-types.json +653 -564
- package/package.json +2 -2
- package/cdn/chunks/chunk.27QFON2M.js +0 -21
- package/cdn/chunks/chunk.2FS7YXYL.js +0 -266
- package/cdn/chunks/chunk.2GDE4WQE.js +0 -11
- package/cdn/chunks/chunk.2JNMKFWM.js +0 -118
- package/cdn/chunks/chunk.2KD7RHGV.js +0 -27
- package/cdn/chunks/chunk.2RZAZTJC.js +0 -26
- package/cdn/chunks/chunk.3AB44WGF.js +0 -28
- package/cdn/chunks/chunk.3D3QH63C.js +0 -95
- package/cdn/chunks/chunk.3IIMAJUM.js +0 -11
- package/cdn/chunks/chunk.3M5OOLLI.js +0 -77
- package/cdn/chunks/chunk.3OFUBOO2.js +0 -28
- package/cdn/chunks/chunk.3T34H47U.js +0 -11
- package/cdn/chunks/chunk.3TET7XQT.js +0 -166
- package/cdn/chunks/chunk.3XCK6SR5.js +0 -24
- package/cdn/chunks/chunk.3XFODJZM.js +0 -57
- package/cdn/chunks/chunk.3XXLDXPE.js +0 -25
- package/cdn/chunks/chunk.465FUQCZ.js +0 -11
- package/cdn/chunks/chunk.4L6POCBG.js +0 -817
- package/cdn/chunks/chunk.4WA4NEEK.js +0 -11
- package/cdn/chunks/chunk.4WHYRHUK.js +0 -24
- package/cdn/chunks/chunk.4YK5BEQS.js +0 -1990
- package/cdn/chunks/chunk.55FXRPAL.js +0 -11
- package/cdn/chunks/chunk.5QXLD2NY.js +0 -24
- package/cdn/chunks/chunk.5ZXKZ3PN.js +0 -21
- package/cdn/chunks/chunk.62VUCHSP.js +0 -90
- package/cdn/chunks/chunk.64YUD5IN.js +0 -29
- package/cdn/chunks/chunk.6F5NFZCX.js +0 -11
- package/cdn/chunks/chunk.6J7CD7L5.js +0 -21
- package/cdn/chunks/chunk.6PWN5KKL.js +0 -11
- package/cdn/chunks/chunk.6RRQUJZL.js +0 -11
- package/cdn/chunks/chunk.6SFU6PI5.js +0 -11
- package/cdn/chunks/chunk.73KOPCMI.js +0 -11
- package/cdn/chunks/chunk.77FYH24J.js +0 -208
- package/cdn/chunks/chunk.7AOL6AS4.js +0 -113
- package/cdn/chunks/chunk.7JHDQVMZ.js +0 -11
- package/cdn/chunks/chunk.7LVOXGKJ.js +0 -42
- package/cdn/chunks/chunk.7POF2YIB.js +0 -73
- package/cdn/chunks/chunk.7QLFOGNI.js +0 -24
- package/cdn/chunks/chunk.7SFWYN5A.js +0 -21
- package/cdn/chunks/chunk.7VML3YQ2.js +0 -11
- package/cdn/chunks/chunk.A7N3TA2A.js +0 -21
- package/cdn/chunks/chunk.AA6E6U6Y.js +0 -11
- package/cdn/chunks/chunk.AGEJTTAO.js +0 -25
- package/cdn/chunks/chunk.AHFMBJNM.js +0 -11
- package/cdn/chunks/chunk.AIF36K26.js +0 -21
- package/cdn/chunks/chunk.AL7WXZXU.js +0 -682
- package/cdn/chunks/chunk.APM22A32.js +0 -314
- package/cdn/chunks/chunk.B5OVB7XQ.js +0 -11
- package/cdn/chunks/chunk.B6HVU3XC.js +0 -27
- package/cdn/chunks/chunk.BK765FEK.js +0 -27
- package/cdn/chunks/chunk.BKIQCYMR.js +0 -28
- package/cdn/chunks/chunk.BQWWFXQW.js +0 -11
- package/cdn/chunks/chunk.BTL2I3IA.js +0 -21
- package/cdn/chunks/chunk.BTRHUFCR.js +0 -120
- package/cdn/chunks/chunk.BZZC3IXA.js +0 -11
- package/cdn/chunks/chunk.CBUTJ4XC.js +0 -292
- package/cdn/chunks/chunk.CLPLZWKD.js +0 -25
- package/cdn/chunks/chunk.CLZP3JTB.js +0 -11
- package/cdn/chunks/chunk.CPSHITCG.js +0 -21
- package/cdn/chunks/chunk.CTPQFYW7.js +0 -142
- package/cdn/chunks/chunk.CU3RTBTI.js +0 -11
- package/cdn/chunks/chunk.CU7VTRWN.js +0 -27
- package/cdn/chunks/chunk.CWYUZFWC.js +0 -67
- package/cdn/chunks/chunk.DDG5Z5Y4.js +0 -11
- package/cdn/chunks/chunk.DEEUTGAH.js +0 -298
- package/cdn/chunks/chunk.DKGS53HW.js +0 -11
- package/cdn/chunks/chunk.DTYUPV6V.js +0 -11
- package/cdn/chunks/chunk.E4UCB5VH.js +0 -26
- package/cdn/chunks/chunk.EQUTNNTA.js +0 -216
- package/cdn/chunks/chunk.ETQHTIO6.js +0 -11
- package/cdn/chunks/chunk.EUWNUU3Y.js +0 -21
- package/cdn/chunks/chunk.FJPSYXPZ.js +0 -24
- package/cdn/chunks/chunk.FPBCUZP2.js +0 -180
- package/cdn/chunks/chunk.FS2ZSF7D.js +0 -11
- package/cdn/chunks/chunk.FSFY5PAK.js +0 -79
- package/cdn/chunks/chunk.FTAD7KSP.js +0 -201
- package/cdn/chunks/chunk.FTAFZBPR.js +0 -11
- package/cdn/chunks/chunk.G7C4AK6E.js +0 -11
- package/cdn/chunks/chunk.GGLO7FV3.js +0 -24
- package/cdn/chunks/chunk.GGSAZPMX.js +0 -120
- package/cdn/chunks/chunk.GS235V77.js +0 -25
- package/cdn/chunks/chunk.GTXRBF2N.js +0 -63
- package/cdn/chunks/chunk.GYHD4D2C.js +0 -21
- package/cdn/chunks/chunk.HBBGKNNO.js +0 -87
- package/cdn/chunks/chunk.HEMEMKVQ.js +0 -135
- package/cdn/chunks/chunk.HHGECAXJ.js +0 -11
- package/cdn/chunks/chunk.HJOFYQ2Q.js +0 -11
- package/cdn/chunks/chunk.HLMRFJMA.js +0 -103
- package/cdn/chunks/chunk.HR45FF5W.js +0 -49
- package/cdn/chunks/chunk.ILFYY7E7.js +0 -75
- package/cdn/chunks/chunk.IP2G3HHE.js +0 -11
- package/cdn/chunks/chunk.IQM3KFPD.js +0 -24
- package/cdn/chunks/chunk.IVC6KWV7.js +0 -24
- package/cdn/chunks/chunk.IZGKHWYJ.js +0 -82
- package/cdn/chunks/chunk.J5DUE2BY.js +0 -127
- package/cdn/chunks/chunk.J5RYNIJI.js +0 -47
- package/cdn/chunks/chunk.J7DXQCRA.js +0 -29
- package/cdn/chunks/chunk.J7VKVWZA.js +0 -24
- package/cdn/chunks/chunk.JGAPQGRJ.js +0 -21
- package/cdn/chunks/chunk.JGDLMNDO.js +0 -724
- package/cdn/chunks/chunk.JJZJBIGO.js +0 -233
- package/cdn/chunks/chunk.JV4JUKDD.js +0 -11
- package/cdn/chunks/chunk.KDAPZDKF.js +0 -11
- package/cdn/chunks/chunk.KDNDVHCL.js +0 -21
- package/cdn/chunks/chunk.KLZ65MVV.js +0 -24
- package/cdn/chunks/chunk.KWXT4KLF.js +0 -21
- package/cdn/chunks/chunk.KXALPLTJ.js +0 -219
- package/cdn/chunks/chunk.L2X4LHL7.js +0 -29
- package/cdn/chunks/chunk.L3DTMMJS.js +0 -93
- package/cdn/chunks/chunk.LFLZXWLY.js +0 -28
- package/cdn/chunks/chunk.MAXEUF7J.js +0 -279
- package/cdn/chunks/chunk.MEK2JIHV.js +0 -236
- package/cdn/chunks/chunk.MESBRA6O.js +0 -25
- package/cdn/chunks/chunk.MKI2ERLX.js +0 -28
- package/cdn/chunks/chunk.MXM5XKHU.js +0 -21
- package/cdn/chunks/chunk.N2RTCTQE.js +0 -122
- package/cdn/chunks/chunk.NJQDTWNZ.js +0 -11
- package/cdn/chunks/chunk.NN5OZNQ6.js +0 -11
- package/cdn/chunks/chunk.NXY2UROX.js +0 -186
- package/cdn/chunks/chunk.NYYGXCYF.js +0 -5845
- package/cdn/chunks/chunk.NZ42ZADN.js +0 -113
- package/cdn/chunks/chunk.ORZETCX5.js +0 -11
- package/cdn/chunks/chunk.OW6O6CKR.js +0 -11
- package/cdn/chunks/chunk.OW6QC3JC.js +0 -153
- package/cdn/chunks/chunk.OXEH2PB3.js +0 -11
- package/cdn/chunks/chunk.P3TU6VPK.js +0 -586
- package/cdn/chunks/chunk.PIK6Q6XZ.js +0 -11
- package/cdn/chunks/chunk.PKA5F2LG.js +0 -11
- package/cdn/chunks/chunk.PNNPHOD6.js +0 -27
- package/cdn/chunks/chunk.POAI47XX.js +0 -158
- package/cdn/chunks/chunk.PQYRO2OW.js +0 -97
- package/cdn/chunks/chunk.Q3HDH45W.js +0 -455
- package/cdn/chunks/chunk.QMHYQ4GM.js +0 -36
- package/cdn/chunks/chunk.QODJ44ZK.js +0 -24
- package/cdn/chunks/chunk.QQIZSMLA.js +0 -11
- package/cdn/chunks/chunk.QQXDHLU4.js +0 -11
- package/cdn/chunks/chunk.RHBCOXOO.js +0 -11
- package/cdn/chunks/chunk.ROOTJVKA.js +0 -11
- package/cdn/chunks/chunk.RTDWRCA5.js +0 -11
- package/cdn/chunks/chunk.RTRV65QN.js +0 -26
- package/cdn/chunks/chunk.SDWIDNMB.js +0 -114
- package/cdn/chunks/chunk.SWAWGM7T.js +0 -25
- package/cdn/chunks/chunk.SZ5RXNWG.js +0 -11
- package/cdn/chunks/chunk.T2DMBZRF.js +0 -50
- package/cdn/chunks/chunk.T7K56D5X.js +0 -28
- package/cdn/chunks/chunk.TAVHRKSI.js +0 -402
- package/cdn/chunks/chunk.TCEDQCEE.js +0 -54
- package/cdn/chunks/chunk.TO4QYEYF.js +0 -21
- package/cdn/chunks/chunk.TSK7IU5C.js +0 -11
- package/cdn/chunks/chunk.TVP4JGIN.js +0 -25
- package/cdn/chunks/chunk.U5HHUAAP.js +0 -11
- package/cdn/chunks/chunk.UALGZNLK.js +0 -11
- package/cdn/chunks/chunk.UEEEF4B5.js +0 -21
- package/cdn/chunks/chunk.UJPIRVMQ.js +0 -21
- package/cdn/chunks/chunk.V3V5RT6E.js +0 -336
- package/cdn/chunks/chunk.VCF3KHDO.js +0 -367
- package/cdn/chunks/chunk.VCGSYC5B.js +0 -11
- package/cdn/chunks/chunk.VJBLNTBW.js +0 -11
- package/cdn/chunks/chunk.VLREOMST.js +0 -291
- package/cdn/chunks/chunk.VMZXRMXG.js +0 -11
- package/cdn/chunks/chunk.VMZYOA7J.js +0 -267
- package/cdn/chunks/chunk.VN57AEND.js +0 -255
- package/cdn/chunks/chunk.VNBSIS4E.js +0 -11
- package/cdn/chunks/chunk.VQUZ7NE4.js +0 -197
- package/cdn/chunks/chunk.VRQMVONC.js +0 -502
- package/cdn/chunks/chunk.VVK4DRFB.js +0 -21
- package/cdn/chunks/chunk.VVOAKFKP.js +0 -33
- package/cdn/chunks/chunk.VVV55RYZ.js +0 -11
- package/cdn/chunks/chunk.VXG3RJUH.js +0 -11
- package/cdn/chunks/chunk.VY6M5ICJ.js +0 -21
- package/cdn/chunks/chunk.W4HWDVV6.js +0 -11
- package/cdn/chunks/chunk.WCJCZTR7.js +0 -391
- package/cdn/chunks/chunk.WG3UATOU.js +0 -24
- package/cdn/chunks/chunk.WG7RVA35.js +0 -24
- package/cdn/chunks/chunk.WKCZKVVB.js +0 -21
- package/cdn/chunks/chunk.WMOGC3D5.js +0 -21
- package/cdn/chunks/chunk.WOTGUCYW.js +0 -21
- package/cdn/chunks/chunk.WP33JOMR.js +0 -1879
- package/cdn/chunks/chunk.WQLJ7RBI.js +0 -6027
- package/cdn/chunks/chunk.WRRTQDOR.js +0 -137
- package/cdn/chunks/chunk.WSFYHNDS.js +0 -24
- package/cdn/chunks/chunk.WYOBTCCU.js +0 -11
- package/cdn/chunks/chunk.X27WU2QT.js +0 -302
- package/cdn/chunks/chunk.X7Y5CKO5.js +0 -11
- package/cdn/chunks/chunk.XADGWHIQ.js +0 -21
- package/cdn/chunks/chunk.XHRHLUCB.js +0 -398
- package/cdn/chunks/chunk.XNQFQ6CS.js +0 -11
- package/cdn/chunks/chunk.XNSQ2ACO.js +0 -29
- package/cdn/chunks/chunk.XSXB4NJ3.js +0 -49
- package/cdn/chunks/chunk.Y6X5XUSX.js +0 -25
- package/cdn/chunks/chunk.YM2YAAJE.js +0 -822
- package/cdn/chunks/chunk.YTMT4E27.js +0 -346
- package/cdn/chunks/chunk.YVFUZKV2.js +0 -379
- package/cdn/chunks/chunk.YWDTLM6Y.js +0 -11
- package/cdn/chunks/chunk.YYFSTDEU.js +0 -21
- package/cdn/chunks/chunk.Z6XWTYMO.js +0 -11
- package/cdn/chunks/chunk.ZG55RPFU.js +0 -299
- package/cdn/chunks/chunk.ZMQGSQS6.js +0 -25
- package/dist/chunks/chunk.23QTCXNR.js +0 -294
- package/dist/chunks/chunk.2DQ7YQID.js +0 -21
- package/dist/chunks/chunk.2GR5RYY4.js +0 -45
- package/dist/chunks/chunk.2JAC3E36.js +0 -29
- package/dist/chunks/chunk.2KWHNALE.js +0 -813
- package/dist/chunks/chunk.2P7ZU66U.js +0 -75
- package/dist/chunks/chunk.2QRAV5FA.js +0 -25
- package/dist/chunks/chunk.2RB3B3UL.js +0 -814
- package/dist/chunks/chunk.34M4NQTX.js +0 -337
- package/dist/chunks/chunk.3CEOFWZN.js +0 -25
- package/dist/chunks/chunk.3CMCXDAM.js +0 -24
- package/dist/chunks/chunk.3FLAXIL6.js +0 -203
- package/dist/chunks/chunk.3FQAOA6Q.js +0 -21
- package/dist/chunks/chunk.3OYFQ2GE.js +0 -11
- package/dist/chunks/chunk.3RPBFEDE.js +0 -302
- package/dist/chunks/chunk.3T5GL6TK.js +0 -11
- package/dist/chunks/chunk.3UP36FKR.js +0 -11
- package/dist/chunks/chunk.3ZLQY7CM.js +0 -21
- package/dist/chunks/chunk.42QS6XMD.js +0 -11
- package/dist/chunks/chunk.4KMA73W2.js +0 -11
- package/dist/chunks/chunk.4M5JW5ZQ.js +0 -291
- package/dist/chunks/chunk.4QORYWC7.js +0 -52
- package/dist/chunks/chunk.54VIHBDR.js +0 -384
- package/dist/chunks/chunk.55TATXST.js +0 -311
- package/dist/chunks/chunk.5DR65PO4.js +0 -274
- package/dist/chunks/chunk.5NLYBKUE.js +0 -91
- package/dist/chunks/chunk.5PZ2HOP6.js +0 -448
- package/dist/chunks/chunk.5Q5U5NI3.js +0 -21
- package/dist/chunks/chunk.5SZZZQEY.js +0 -100
- package/dist/chunks/chunk.6N23A6X7.js +0 -11
- package/dist/chunks/chunk.6UYZKYOJ.js +0 -11
- package/dist/chunks/chunk.6VG3V43U.js +0 -25
- package/dist/chunks/chunk.6XXM4QYP.js +0 -286
- package/dist/chunks/chunk.75OMDLY6.js +0 -11
- package/dist/chunks/chunk.7ACBAU52.js +0 -135
- package/dist/chunks/chunk.7BKT2FPA.js +0 -21
- package/dist/chunks/chunk.7CLUZVZ5.js +0 -22
- package/dist/chunks/chunk.7CZMYSRM.js +0 -11
- package/dist/chunks/chunk.7GKEYXYF.js +0 -25
- package/dist/chunks/chunk.7HVRGFRV.js +0 -26
- package/dist/chunks/chunk.7KJW6T7V.js +0 -27
- package/dist/chunks/chunk.7PFU7PNG.js +0 -315
- package/dist/chunks/chunk.7PW2YQMR.js +0 -11
- package/dist/chunks/chunk.7WYUNPLL.js +0 -134
- package/dist/chunks/chunk.A2WB7P4R.js +0 -293
- package/dist/chunks/chunk.A6VUIAK5.js +0 -113
- package/dist/chunks/chunk.ADFE32ZE.js +0 -397
- package/dist/chunks/chunk.AFVKCXVD.js +0 -11
- package/dist/chunks/chunk.AJ3ENQ5C.js +0 -55
- package/dist/chunks/chunk.AUDNO7AX.js +0 -21
- package/dist/chunks/chunk.B4FKYIJV.js +0 -11
- package/dist/chunks/chunk.B4H75FLB.js +0 -21
- package/dist/chunks/chunk.BBX6LSYR.js +0 -11
- package/dist/chunks/chunk.BN7I7IZK.js +0 -11
- package/dist/chunks/chunk.BPCGZGRG.js +0 -24
- package/dist/chunks/chunk.BRQD35W5.js +0 -28
- package/dist/chunks/chunk.BYP2W3VJ.js +0 -21
- package/dist/chunks/chunk.C2S6DUQY.js +0 -11
- package/dist/chunks/chunk.C3NG3M7R.js +0 -25
- package/dist/chunks/chunk.C422XENI.js +0 -11
- package/dist/chunks/chunk.C5G25IYF.js +0 -11
- package/dist/chunks/chunk.CGMEM3DT.js +0 -24
- package/dist/chunks/chunk.CKI5JNFU.js +0 -11
- package/dist/chunks/chunk.CLRGVPKR.js +0 -11
- package/dist/chunks/chunk.CSAG57R3.js +0 -11
- package/dist/chunks/chunk.CUBXO33B.js +0 -11
- package/dist/chunks/chunk.CUYLGFVM.js +0 -11
- package/dist/chunks/chunk.D3KZIOYI.js +0 -11
- package/dist/chunks/chunk.D5PBIXNV.js +0 -26
- package/dist/chunks/chunk.DKDNW7ND.js +0 -24
- package/dist/chunks/chunk.DO6G64SD.js +0 -67
- package/dist/chunks/chunk.DOJVTX23.js +0 -21
- package/dist/chunks/chunk.DT5UBEUD.js +0 -25
- package/dist/chunks/chunk.DY66DLXX.js +0 -25
- package/dist/chunks/chunk.EGUAJZ2Q.js +0 -50
- package/dist/chunks/chunk.ELQ6ZAHU.js +0 -24
- package/dist/chunks/chunk.EMBJJDRQ.js +0 -11
- package/dist/chunks/chunk.EMN3H5QW.js +0 -119
- package/dist/chunks/chunk.ERVVHGW6.js +0 -21
- package/dist/chunks/chunk.EUHRXKY7.js +0 -21
- package/dist/chunks/chunk.EUKB2CXW.js +0 -28
- package/dist/chunks/chunk.FFKD6W4N.js +0 -389
- package/dist/chunks/chunk.FIQZJA2D.js +0 -93
- package/dist/chunks/chunk.FLMQYK76.js +0 -27
- package/dist/chunks/chunk.FM2W4WWN.js +0 -259
- package/dist/chunks/chunk.FOXUKKKX.js +0 -11
- package/dist/chunks/chunk.FTGEPMGW.js +0 -247
- package/dist/chunks/chunk.FTIAG6S3.js +0 -24
- package/dist/chunks/chunk.FY37V2E7.js +0 -21
- package/dist/chunks/chunk.FYRZ4LVX.js +0 -151
- package/dist/chunks/chunk.G4EYRYPW.js +0 -90
- package/dist/chunks/chunk.GJ6DYB5N.js +0 -28
- package/dist/chunks/chunk.GMYPQTFK.js +0 -33
- package/dist/chunks/chunk.GZLJHFNN.js +0 -11
- package/dist/chunks/chunk.HHX64HLF.js +0 -147
- package/dist/chunks/chunk.HLNO73WW.js +0 -25
- package/dist/chunks/chunk.HOXEJNUB.js +0 -21
- package/dist/chunks/chunk.HPIBDR24.js +0 -29
- package/dist/chunks/chunk.HVGOXH2K.js +0 -87
- package/dist/chunks/chunk.I5MXJCXA.js +0 -550
- package/dist/chunks/chunk.I7NX25KZ.js +0 -11
- package/dist/chunks/chunk.IB5CAIOM.js +0 -11
- package/dist/chunks/chunk.IGHVYPQC.js +0 -11
- package/dist/chunks/chunk.IH36OBWS.js +0 -85
- package/dist/chunks/chunk.IKTX3OF2.js +0 -11
- package/dist/chunks/chunk.IMQAXOY4.js +0 -11
- package/dist/chunks/chunk.IVLRZTWU.js +0 -100
- package/dist/chunks/chunk.J5RYNIJI.js +0 -47
- package/dist/chunks/chunk.JOKODXHH.js +0 -119
- package/dist/chunks/chunk.JWQMGR3J.js +0 -21
- package/dist/chunks/chunk.JXVBETU2.js +0 -11
- package/dist/chunks/chunk.JYRVBVEP.js +0 -214
- package/dist/chunks/chunk.K7JGTRV7.js +0 -46
- package/dist/chunks/chunk.KAW7D32O.js +0 -78
- package/dist/chunks/chunk.KDOF4QYG.js +0 -674
- package/dist/chunks/chunk.KKF7ZZ3I.js +0 -21
- package/dist/chunks/chunk.KRMK4QEF.js +0 -213
- package/dist/chunks/chunk.KXK5Z4DL.js +0 -11
- package/dist/chunks/chunk.L2ZJEQ5W.js +0 -45
- package/dist/chunks/chunk.L4XB5RQ7.js +0 -227
- package/dist/chunks/chunk.LJIWSB5O.js +0 -11
- package/dist/chunks/chunk.LVAFQGBI.js +0 -63
- package/dist/chunks/chunk.LXNDNLGT.js +0 -181
- package/dist/chunks/chunk.M74UPSVH.js +0 -26
- package/dist/chunks/chunk.MB7KNGYL.js +0 -73
- package/dist/chunks/chunk.MNJ2FRMM.js +0 -59
- package/dist/chunks/chunk.MQ2MMGIS.js +0 -21
- package/dist/chunks/chunk.MS55NK3J.js +0 -33
- package/dist/chunks/chunk.MXT3TWSF.js +0 -11
- package/dist/chunks/chunk.N3QVR4J3.js +0 -11
- package/dist/chunks/chunk.N4WPBYFA.js +0 -54
- package/dist/chunks/chunk.NINB2GCZ.js +0 -192
- package/dist/chunks/chunk.NMLH7AMX.js +0 -28
- package/dist/chunks/chunk.NMQIEQ5W.js +0 -24
- package/dist/chunks/chunk.NOHZYTD2.js +0 -29
- package/dist/chunks/chunk.O7ETF5M7.js +0 -231
- package/dist/chunks/chunk.OEQBOGLX.js +0 -11
- package/dist/chunks/chunk.OH57EZ77.js +0 -22
- package/dist/chunks/chunk.ORHNYZYZ.js +0 -199
- package/dist/chunks/chunk.OYOAAJZ3.js +0 -25
- package/dist/chunks/chunk.PG5RJ6TV.js +0 -11
- package/dist/chunks/chunk.PLFY7L2F.js +0 -28
- package/dist/chunks/chunk.PTYURPYL.js +0 -27
- package/dist/chunks/chunk.PVQ25BF2.js +0 -11
- package/dist/chunks/chunk.PYVMYAKR.js +0 -371
- package/dist/chunks/chunk.Q7SUWESY.js +0 -11
- package/dist/chunks/chunk.QDMP5PYP.js +0 -11
- package/dist/chunks/chunk.QEY2WSNV.js +0 -21
- package/dist/chunks/chunk.QH353KMG.js +0 -11
- package/dist/chunks/chunk.QIEMAGNI.js +0 -21
- package/dist/chunks/chunk.QKJEDAAH.js +0 -417
- package/dist/chunks/chunk.QL3EHOLM.js +0 -28
- package/dist/chunks/chunk.QOS2AJDC.js +0 -11
- package/dist/chunks/chunk.QZJWCFAA.js +0 -24
- package/dist/chunks/chunk.R5ULTKDV.js +0 -11
- package/dist/chunks/chunk.RE456CM4.js +0 -75
- package/dist/chunks/chunk.RG5YP4E7.js +0 -34
- package/dist/chunks/chunk.RHYFL7XY.js +0 -21
- package/dist/chunks/chunk.RPMKRJLV.js +0 -21
- package/dist/chunks/chunk.RQP7TRVQ.js +0 -21
- package/dist/chunks/chunk.RWS55LOH.js +0 -109
- package/dist/chunks/chunk.S7M7UIY5.js +0 -112
- package/dist/chunks/chunk.SAHEF66Y.js +0 -126
- package/dist/chunks/chunk.SCTVHKIK.js +0 -11
- package/dist/chunks/chunk.SQIDSWT5.js +0 -42
- package/dist/chunks/chunk.SXKYIUGU.js +0 -11
- package/dist/chunks/chunk.T3IJ7FJO.js +0 -39
- package/dist/chunks/chunk.T3Q62XTY.js +0 -11
- package/dist/chunks/chunk.TC6CNTQM.js +0 -506
- package/dist/chunks/chunk.TEPNXV2U.js +0 -11
- package/dist/chunks/chunk.TJ7FQ5JT.js +0 -11
- package/dist/chunks/chunk.TLZDSPEP.js +0 -280
- package/dist/chunks/chunk.UAQFNS66.js +0 -25
- package/dist/chunks/chunk.UKEOH6GM.js +0 -167
- package/dist/chunks/chunk.URSTP76V.js +0 -27
- package/dist/chunks/chunk.UWC6CFRF.js +0 -11
- package/dist/chunks/chunk.VAOOYX3C.js +0 -96
- package/dist/chunks/chunk.VD4T4CEQ.js +0 -24
- package/dist/chunks/chunk.VESXC477.js +0 -156
- package/dist/chunks/chunk.VF47UCR6.js +0 -11
- package/dist/chunks/chunk.VIX2GDLR.js +0 -11
- package/dist/chunks/chunk.VML2NRCR.js +0 -21
- package/dist/chunks/chunk.VMZXWIMR.js +0 -35
- package/dist/chunks/chunk.VSTB7XHK.js +0 -24
- package/dist/chunks/chunk.W7S6DL6O.js +0 -116
- package/dist/chunks/chunk.WIKIRG5N.js +0 -11
- package/dist/chunks/chunk.WNMDANJ2.js +0 -21
- package/dist/chunks/chunk.WSD42N5A.js +0 -11
- package/dist/chunks/chunk.XC4MRFYW.js +0 -11
- package/dist/chunks/chunk.XE3OHVIQ.js +0 -29
- package/dist/chunks/chunk.XGW737ZL.js +0 -494
- package/dist/chunks/chunk.XKERVFKJ.js +0 -21
- package/dist/chunks/chunk.XUO6GY5S.js +0 -11
- package/dist/chunks/chunk.XZPRR64T.js +0 -11
- package/dist/chunks/chunk.YCC476ZW.js +0 -24
- package/dist/chunks/chunk.YFFB2NHT.js +0 -24
- package/dist/chunks/chunk.YLDJOKCS.js +0 -80
- package/dist/chunks/chunk.YLKHYMMJ.js +0 -11
- package/dist/chunks/chunk.YOLD52DY.js +0 -172
- package/dist/chunks/chunk.YSTDXP43.js +0 -111
- package/dist/chunks/chunk.YTQQLXWH.js +0 -11
- package/dist/chunks/chunk.YWOLKWDI.js +0 -361
- package/dist/chunks/chunk.YXP7YSTN.js +0 -117
- package/dist/chunks/chunk.ZHYQKB74.js +0 -949
- package/dist/chunks/chunk.ZIXYBTFK.js +0 -163
- package/dist/chunks/chunk.ZREUJQFI.js +0 -11
|
@@ -0,0 +1,949 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SlVisuallyHidden
|
|
3
|
+
} from "./chunk.CSOWQ6ZF.js";
|
|
4
|
+
import {
|
|
5
|
+
drag
|
|
6
|
+
} from "./chunk.ESELY2US.js";
|
|
7
|
+
import {
|
|
8
|
+
SlDropdown
|
|
9
|
+
} from "./chunk.W4O4QP2L.js";
|
|
10
|
+
import {
|
|
11
|
+
SlInput
|
|
12
|
+
} from "./chunk.IO4L7D3R.js";
|
|
13
|
+
import {
|
|
14
|
+
defaultValue
|
|
15
|
+
} from "./chunk.GI7VDIWX.js";
|
|
16
|
+
import {
|
|
17
|
+
color_picker_styles_default
|
|
18
|
+
} from "./chunk.O6CEROC7.js";
|
|
19
|
+
import {
|
|
20
|
+
clamp
|
|
21
|
+
} from "./chunk.HF7GESMZ.js";
|
|
22
|
+
import {
|
|
23
|
+
SlButtonGroup
|
|
24
|
+
} from "./chunk.NBRBQS2A.js";
|
|
25
|
+
import {
|
|
26
|
+
SlButton
|
|
27
|
+
} from "./chunk.RYIEJALO.js";
|
|
28
|
+
import {
|
|
29
|
+
FormControlController
|
|
30
|
+
} from "./chunk.WBWPWG4N.js";
|
|
31
|
+
import {
|
|
32
|
+
LocalizeController
|
|
33
|
+
} from "./chunk.6CTB5ZDJ.js";
|
|
34
|
+
import {
|
|
35
|
+
SlIcon
|
|
36
|
+
} from "./chunk.FI2TCNNM.js";
|
|
37
|
+
import {
|
|
38
|
+
watch
|
|
39
|
+
} from "./chunk.55S3OOTM.js";
|
|
40
|
+
import {
|
|
41
|
+
component_styles_default
|
|
42
|
+
} from "./chunk.TUVJKY7S.js";
|
|
43
|
+
import {
|
|
44
|
+
ShoelaceElement
|
|
45
|
+
} from "./chunk.CQ6VBUBR.js";
|
|
46
|
+
import {
|
|
47
|
+
__decorateClass
|
|
48
|
+
} from "./chunk.W5KB6T3Z.js";
|
|
49
|
+
|
|
50
|
+
// src/components/color-picker/color-picker.component.ts
|
|
51
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
52
|
+
import { eventOptions, property, query, state } from "lit/decorators.js";
|
|
53
|
+
import { html } from "lit";
|
|
54
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
55
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
56
|
+
import { TinyColor } from "@ctrl/tinycolor";
|
|
57
|
+
var hasEyeDropper = "EyeDropper" in window;
|
|
58
|
+
var SlColorPicker = class extends ShoelaceElement {
|
|
59
|
+
constructor() {
|
|
60
|
+
super();
|
|
61
|
+
this.formControlController = new FormControlController(this);
|
|
62
|
+
this.isSafeValue = false;
|
|
63
|
+
this.localize = new LocalizeController(this);
|
|
64
|
+
this.hasFocus = false;
|
|
65
|
+
this.isDraggingGridHandle = false;
|
|
66
|
+
this.isEmpty = false;
|
|
67
|
+
this.inputValue = "";
|
|
68
|
+
this.hue = 0;
|
|
69
|
+
this.saturation = 100;
|
|
70
|
+
this.brightness = 100;
|
|
71
|
+
this.alpha = 100;
|
|
72
|
+
this.value = "";
|
|
73
|
+
this.defaultValue = "";
|
|
74
|
+
this.label = "";
|
|
75
|
+
this.format = "hex";
|
|
76
|
+
this.inline = false;
|
|
77
|
+
this.size = "medium";
|
|
78
|
+
this.noFormatToggle = false;
|
|
79
|
+
this.name = "";
|
|
80
|
+
this.disabled = false;
|
|
81
|
+
this.hoist = false;
|
|
82
|
+
this.opacity = false;
|
|
83
|
+
this.uppercase = false;
|
|
84
|
+
this.swatches = "";
|
|
85
|
+
this.form = "";
|
|
86
|
+
this.required = false;
|
|
87
|
+
this.handleFocusIn = () => {
|
|
88
|
+
this.hasFocus = true;
|
|
89
|
+
this.emit("sl-focus");
|
|
90
|
+
};
|
|
91
|
+
this.handleFocusOut = () => {
|
|
92
|
+
this.hasFocus = false;
|
|
93
|
+
this.emit("sl-blur");
|
|
94
|
+
};
|
|
95
|
+
this.addEventListener("focusin", this.handleFocusIn);
|
|
96
|
+
this.addEventListener("focusout", this.handleFocusOut);
|
|
97
|
+
}
|
|
98
|
+
/** Gets the validity state object */
|
|
99
|
+
get validity() {
|
|
100
|
+
return this.input.validity;
|
|
101
|
+
}
|
|
102
|
+
/** Gets the validation message */
|
|
103
|
+
get validationMessage() {
|
|
104
|
+
return this.input.validationMessage;
|
|
105
|
+
}
|
|
106
|
+
firstUpdated() {
|
|
107
|
+
this.input.updateComplete.then(() => {
|
|
108
|
+
this.formControlController.updateValidity();
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
handleCopy() {
|
|
112
|
+
this.input.select();
|
|
113
|
+
document.execCommand("copy");
|
|
114
|
+
this.previewButton.focus();
|
|
115
|
+
this.previewButton.classList.add("color-picker__preview-color--copied");
|
|
116
|
+
this.previewButton.addEventListener("animationend", () => {
|
|
117
|
+
this.previewButton.classList.remove("color-picker__preview-color--copied");
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
handleFormatToggle() {
|
|
121
|
+
const formats = ["hex", "rgb", "hsl", "hsv"];
|
|
122
|
+
const nextIndex = (formats.indexOf(this.format) + 1) % formats.length;
|
|
123
|
+
this.format = formats[nextIndex];
|
|
124
|
+
this.setColor(this.value);
|
|
125
|
+
this.emit("sl-change");
|
|
126
|
+
this.emit("sl-input");
|
|
127
|
+
}
|
|
128
|
+
handleAlphaDrag(event) {
|
|
129
|
+
const container = this.shadowRoot.querySelector(".color-picker__slider.color-picker__alpha");
|
|
130
|
+
const handle = container.querySelector(".color-picker__slider-handle");
|
|
131
|
+
const { width } = container.getBoundingClientRect();
|
|
132
|
+
let initialValue = this.value;
|
|
133
|
+
let currentValue = this.value;
|
|
134
|
+
handle.focus();
|
|
135
|
+
event.preventDefault();
|
|
136
|
+
drag(container, {
|
|
137
|
+
onMove: (x) => {
|
|
138
|
+
this.alpha = clamp(x / width * 100, 0, 100);
|
|
139
|
+
this.syncValues();
|
|
140
|
+
if (this.value !== currentValue) {
|
|
141
|
+
currentValue = this.value;
|
|
142
|
+
this.emit("sl-input");
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
onStop: () => {
|
|
146
|
+
if (this.value !== initialValue) {
|
|
147
|
+
initialValue = this.value;
|
|
148
|
+
this.emit("sl-change");
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
initialEvent: event
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
handleHueDrag(event) {
|
|
155
|
+
const container = this.shadowRoot.querySelector(".color-picker__slider.color-picker__hue");
|
|
156
|
+
const handle = container.querySelector(".color-picker__slider-handle");
|
|
157
|
+
const { width } = container.getBoundingClientRect();
|
|
158
|
+
let initialValue = this.value;
|
|
159
|
+
let currentValue = this.value;
|
|
160
|
+
handle.focus();
|
|
161
|
+
event.preventDefault();
|
|
162
|
+
drag(container, {
|
|
163
|
+
onMove: (x) => {
|
|
164
|
+
this.hue = clamp(x / width * 360, 0, 360);
|
|
165
|
+
this.syncValues();
|
|
166
|
+
if (this.value !== currentValue) {
|
|
167
|
+
currentValue = this.value;
|
|
168
|
+
this.emit("sl-input");
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
onStop: () => {
|
|
172
|
+
if (this.value !== initialValue) {
|
|
173
|
+
initialValue = this.value;
|
|
174
|
+
this.emit("sl-change");
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
initialEvent: event
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
handleGridDrag(event) {
|
|
181
|
+
const grid = this.shadowRoot.querySelector(".color-picker__grid");
|
|
182
|
+
const handle = grid.querySelector(".color-picker__grid-handle");
|
|
183
|
+
const { width, height } = grid.getBoundingClientRect();
|
|
184
|
+
let initialValue = this.value;
|
|
185
|
+
let currentValue = this.value;
|
|
186
|
+
handle.focus();
|
|
187
|
+
event.preventDefault();
|
|
188
|
+
this.isDraggingGridHandle = true;
|
|
189
|
+
drag(grid, {
|
|
190
|
+
onMove: (x, y) => {
|
|
191
|
+
this.saturation = clamp(x / width * 100, 0, 100);
|
|
192
|
+
this.brightness = clamp(100 - y / height * 100, 0, 100);
|
|
193
|
+
this.syncValues();
|
|
194
|
+
if (this.value !== currentValue) {
|
|
195
|
+
currentValue = this.value;
|
|
196
|
+
this.emit("sl-input");
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
onStop: () => {
|
|
200
|
+
this.isDraggingGridHandle = false;
|
|
201
|
+
if (this.value !== initialValue) {
|
|
202
|
+
initialValue = this.value;
|
|
203
|
+
this.emit("sl-change");
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
initialEvent: event
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
handleAlphaKeyDown(event) {
|
|
210
|
+
const increment = event.shiftKey ? 10 : 1;
|
|
211
|
+
const oldValue = this.value;
|
|
212
|
+
if (event.key === "ArrowLeft") {
|
|
213
|
+
event.preventDefault();
|
|
214
|
+
this.alpha = clamp(this.alpha - increment, 0, 100);
|
|
215
|
+
this.syncValues();
|
|
216
|
+
}
|
|
217
|
+
if (event.key === "ArrowRight") {
|
|
218
|
+
event.preventDefault();
|
|
219
|
+
this.alpha = clamp(this.alpha + increment, 0, 100);
|
|
220
|
+
this.syncValues();
|
|
221
|
+
}
|
|
222
|
+
if (event.key === "Home") {
|
|
223
|
+
event.preventDefault();
|
|
224
|
+
this.alpha = 0;
|
|
225
|
+
this.syncValues();
|
|
226
|
+
}
|
|
227
|
+
if (event.key === "End") {
|
|
228
|
+
event.preventDefault();
|
|
229
|
+
this.alpha = 100;
|
|
230
|
+
this.syncValues();
|
|
231
|
+
}
|
|
232
|
+
if (this.value !== oldValue) {
|
|
233
|
+
this.emit("sl-change");
|
|
234
|
+
this.emit("sl-input");
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
handleHueKeyDown(event) {
|
|
238
|
+
const increment = event.shiftKey ? 10 : 1;
|
|
239
|
+
const oldValue = this.value;
|
|
240
|
+
if (event.key === "ArrowLeft") {
|
|
241
|
+
event.preventDefault();
|
|
242
|
+
this.hue = clamp(this.hue - increment, 0, 360);
|
|
243
|
+
this.syncValues();
|
|
244
|
+
}
|
|
245
|
+
if (event.key === "ArrowRight") {
|
|
246
|
+
event.preventDefault();
|
|
247
|
+
this.hue = clamp(this.hue + increment, 0, 360);
|
|
248
|
+
this.syncValues();
|
|
249
|
+
}
|
|
250
|
+
if (event.key === "Home") {
|
|
251
|
+
event.preventDefault();
|
|
252
|
+
this.hue = 0;
|
|
253
|
+
this.syncValues();
|
|
254
|
+
}
|
|
255
|
+
if (event.key === "End") {
|
|
256
|
+
event.preventDefault();
|
|
257
|
+
this.hue = 360;
|
|
258
|
+
this.syncValues();
|
|
259
|
+
}
|
|
260
|
+
if (this.value !== oldValue) {
|
|
261
|
+
this.emit("sl-change");
|
|
262
|
+
this.emit("sl-input");
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
handleGridKeyDown(event) {
|
|
266
|
+
const increment = event.shiftKey ? 10 : 1;
|
|
267
|
+
const oldValue = this.value;
|
|
268
|
+
if (event.key === "ArrowLeft") {
|
|
269
|
+
event.preventDefault();
|
|
270
|
+
this.saturation = clamp(this.saturation - increment, 0, 100);
|
|
271
|
+
this.syncValues();
|
|
272
|
+
}
|
|
273
|
+
if (event.key === "ArrowRight") {
|
|
274
|
+
event.preventDefault();
|
|
275
|
+
this.saturation = clamp(this.saturation + increment, 0, 100);
|
|
276
|
+
this.syncValues();
|
|
277
|
+
}
|
|
278
|
+
if (event.key === "ArrowUp") {
|
|
279
|
+
event.preventDefault();
|
|
280
|
+
this.brightness = clamp(this.brightness + increment, 0, 100);
|
|
281
|
+
this.syncValues();
|
|
282
|
+
}
|
|
283
|
+
if (event.key === "ArrowDown") {
|
|
284
|
+
event.preventDefault();
|
|
285
|
+
this.brightness = clamp(this.brightness - increment, 0, 100);
|
|
286
|
+
this.syncValues();
|
|
287
|
+
}
|
|
288
|
+
if (this.value !== oldValue) {
|
|
289
|
+
this.emit("sl-change");
|
|
290
|
+
this.emit("sl-input");
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
handleInputChange(event) {
|
|
294
|
+
const target = event.target;
|
|
295
|
+
const oldValue = this.value;
|
|
296
|
+
event.stopPropagation();
|
|
297
|
+
if (this.input.value) {
|
|
298
|
+
this.setColor(target.value);
|
|
299
|
+
target.value = this.value;
|
|
300
|
+
} else {
|
|
301
|
+
this.value = "";
|
|
302
|
+
}
|
|
303
|
+
if (this.value !== oldValue) {
|
|
304
|
+
this.emit("sl-change");
|
|
305
|
+
this.emit("sl-input");
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
handleInputInput(event) {
|
|
309
|
+
this.formControlController.updateValidity();
|
|
310
|
+
event.stopPropagation();
|
|
311
|
+
}
|
|
312
|
+
handleInputKeyDown(event) {
|
|
313
|
+
if (event.key === "Enter") {
|
|
314
|
+
const oldValue = this.value;
|
|
315
|
+
if (this.input.value) {
|
|
316
|
+
this.setColor(this.input.value);
|
|
317
|
+
this.input.value = this.value;
|
|
318
|
+
if (this.value !== oldValue) {
|
|
319
|
+
this.emit("sl-change");
|
|
320
|
+
this.emit("sl-input");
|
|
321
|
+
}
|
|
322
|
+
setTimeout(() => this.input.select());
|
|
323
|
+
} else {
|
|
324
|
+
this.hue = 0;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
handleInputInvalid(event) {
|
|
329
|
+
this.formControlController.setValidity(false);
|
|
330
|
+
this.formControlController.emitInvalidEvent(event);
|
|
331
|
+
}
|
|
332
|
+
handleTouchMove(event) {
|
|
333
|
+
event.preventDefault();
|
|
334
|
+
}
|
|
335
|
+
parseColor(colorString) {
|
|
336
|
+
const color = new TinyColor(colorString);
|
|
337
|
+
if (!color.isValid) {
|
|
338
|
+
return null;
|
|
339
|
+
}
|
|
340
|
+
const hslColor = color.toHsl();
|
|
341
|
+
const hsl = {
|
|
342
|
+
h: hslColor.h,
|
|
343
|
+
s: hslColor.s * 100,
|
|
344
|
+
l: hslColor.l * 100,
|
|
345
|
+
a: hslColor.a
|
|
346
|
+
};
|
|
347
|
+
const rgb = color.toRgb();
|
|
348
|
+
const hex = color.toHexString();
|
|
349
|
+
const hexa = color.toHex8String();
|
|
350
|
+
const hsvColor = color.toHsv();
|
|
351
|
+
const hsv = {
|
|
352
|
+
h: hsvColor.h,
|
|
353
|
+
s: hsvColor.s * 100,
|
|
354
|
+
v: hsvColor.v * 100,
|
|
355
|
+
a: hsvColor.a
|
|
356
|
+
};
|
|
357
|
+
return {
|
|
358
|
+
hsl: {
|
|
359
|
+
h: hsl.h,
|
|
360
|
+
s: hsl.s,
|
|
361
|
+
l: hsl.l,
|
|
362
|
+
string: this.setLetterCase(`hsl(${Math.round(hsl.h)}, ${Math.round(hsl.s)}%, ${Math.round(hsl.l)}%)`)
|
|
363
|
+
},
|
|
364
|
+
hsla: {
|
|
365
|
+
h: hsl.h,
|
|
366
|
+
s: hsl.s,
|
|
367
|
+
l: hsl.l,
|
|
368
|
+
a: hsl.a,
|
|
369
|
+
string: this.setLetterCase(
|
|
370
|
+
`hsla(${Math.round(hsl.h)}, ${Math.round(hsl.s)}%, ${Math.round(hsl.l)}%, ${hsl.a.toFixed(2).toString()})`
|
|
371
|
+
)
|
|
372
|
+
},
|
|
373
|
+
hsv: {
|
|
374
|
+
h: hsv.h,
|
|
375
|
+
s: hsv.s,
|
|
376
|
+
v: hsv.v,
|
|
377
|
+
string: this.setLetterCase(`hsv(${Math.round(hsv.h)}, ${Math.round(hsv.s)}%, ${Math.round(hsv.v)}%)`)
|
|
378
|
+
},
|
|
379
|
+
hsva: {
|
|
380
|
+
h: hsv.h,
|
|
381
|
+
s: hsv.s,
|
|
382
|
+
v: hsv.v,
|
|
383
|
+
a: hsv.a,
|
|
384
|
+
string: this.setLetterCase(
|
|
385
|
+
`hsva(${Math.round(hsv.h)}, ${Math.round(hsv.s)}%, ${Math.round(hsv.v)}%, ${hsv.a.toFixed(2).toString()})`
|
|
386
|
+
)
|
|
387
|
+
},
|
|
388
|
+
rgb: {
|
|
389
|
+
r: rgb.r,
|
|
390
|
+
g: rgb.g,
|
|
391
|
+
b: rgb.b,
|
|
392
|
+
string: this.setLetterCase(`rgb(${Math.round(rgb.r)}, ${Math.round(rgb.g)}, ${Math.round(rgb.b)})`)
|
|
393
|
+
},
|
|
394
|
+
rgba: {
|
|
395
|
+
r: rgb.r,
|
|
396
|
+
g: rgb.g,
|
|
397
|
+
b: rgb.b,
|
|
398
|
+
a: rgb.a,
|
|
399
|
+
string: this.setLetterCase(
|
|
400
|
+
`rgba(${Math.round(rgb.r)}, ${Math.round(rgb.g)}, ${Math.round(rgb.b)}, ${rgb.a.toFixed(2).toString()})`
|
|
401
|
+
)
|
|
402
|
+
},
|
|
403
|
+
hex: this.setLetterCase(hex),
|
|
404
|
+
hexa: this.setLetterCase(hexa)
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
setColor(colorString) {
|
|
408
|
+
const newColor = this.parseColor(colorString);
|
|
409
|
+
if (newColor === null) {
|
|
410
|
+
return false;
|
|
411
|
+
}
|
|
412
|
+
this.hue = newColor.hsva.h;
|
|
413
|
+
this.saturation = newColor.hsva.s;
|
|
414
|
+
this.brightness = newColor.hsva.v;
|
|
415
|
+
this.alpha = this.opacity ? newColor.hsva.a * 100 : 100;
|
|
416
|
+
this.syncValues();
|
|
417
|
+
return true;
|
|
418
|
+
}
|
|
419
|
+
setLetterCase(string) {
|
|
420
|
+
if (typeof string !== "string") {
|
|
421
|
+
return "";
|
|
422
|
+
}
|
|
423
|
+
return this.uppercase ? string.toUpperCase() : string.toLowerCase();
|
|
424
|
+
}
|
|
425
|
+
async syncValues() {
|
|
426
|
+
const currentColor = this.parseColor(
|
|
427
|
+
`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha / 100})`
|
|
428
|
+
);
|
|
429
|
+
if (currentColor === null) {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
if (this.format === "hsl") {
|
|
433
|
+
this.inputValue = this.opacity ? currentColor.hsla.string : currentColor.hsl.string;
|
|
434
|
+
} else if (this.format === "rgb") {
|
|
435
|
+
this.inputValue = this.opacity ? currentColor.rgba.string : currentColor.rgb.string;
|
|
436
|
+
} else if (this.format === "hsv") {
|
|
437
|
+
this.inputValue = this.opacity ? currentColor.hsva.string : currentColor.hsv.string;
|
|
438
|
+
} else {
|
|
439
|
+
this.inputValue = this.opacity ? currentColor.hexa : currentColor.hex;
|
|
440
|
+
}
|
|
441
|
+
this.isSafeValue = true;
|
|
442
|
+
this.value = this.inputValue;
|
|
443
|
+
await this.updateComplete;
|
|
444
|
+
this.isSafeValue = false;
|
|
445
|
+
}
|
|
446
|
+
handleAfterHide() {
|
|
447
|
+
this.previewButton.classList.remove("color-picker__preview-color--copied");
|
|
448
|
+
}
|
|
449
|
+
handleEyeDropper() {
|
|
450
|
+
if (!hasEyeDropper) {
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
const eyeDropper = new EyeDropper();
|
|
454
|
+
eyeDropper.open().then((colorSelectionResult) => {
|
|
455
|
+
const oldValue = this.value;
|
|
456
|
+
this.setColor(colorSelectionResult.sRGBHex);
|
|
457
|
+
if (this.value !== oldValue) {
|
|
458
|
+
this.emit("sl-change");
|
|
459
|
+
this.emit("sl-input");
|
|
460
|
+
}
|
|
461
|
+
}).catch(() => {
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
selectSwatch(color) {
|
|
465
|
+
const oldValue = this.value;
|
|
466
|
+
if (!this.disabled) {
|
|
467
|
+
this.setColor(color);
|
|
468
|
+
if (this.value !== oldValue) {
|
|
469
|
+
this.emit("sl-change");
|
|
470
|
+
this.emit("sl-input");
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
/** Generates a hex string from HSV values. Hue must be 0-360. All other arguments must be 0-100. */
|
|
475
|
+
getHexString(hue, saturation, brightness, alpha = 100) {
|
|
476
|
+
const color = new TinyColor(`hsva(${hue}, ${saturation}%, ${brightness}%, ${alpha / 100})`);
|
|
477
|
+
if (!color.isValid) {
|
|
478
|
+
return "";
|
|
479
|
+
}
|
|
480
|
+
return color.toHex8String();
|
|
481
|
+
}
|
|
482
|
+
// Prevents nested components from leaking events
|
|
483
|
+
stopNestedEventPropagation(event) {
|
|
484
|
+
event.stopImmediatePropagation();
|
|
485
|
+
}
|
|
486
|
+
handleFormatChange() {
|
|
487
|
+
this.syncValues();
|
|
488
|
+
}
|
|
489
|
+
handleOpacityChange() {
|
|
490
|
+
this.alpha = 100;
|
|
491
|
+
}
|
|
492
|
+
handleValueChange(oldValue, newValue) {
|
|
493
|
+
this.isEmpty = !newValue;
|
|
494
|
+
if (!newValue) {
|
|
495
|
+
this.hue = 0;
|
|
496
|
+
this.saturation = 0;
|
|
497
|
+
this.brightness = 100;
|
|
498
|
+
this.alpha = 100;
|
|
499
|
+
}
|
|
500
|
+
if (!this.isSafeValue) {
|
|
501
|
+
const newColor = this.parseColor(newValue);
|
|
502
|
+
if (newColor !== null) {
|
|
503
|
+
this.inputValue = this.value;
|
|
504
|
+
this.hue = newColor.hsva.h;
|
|
505
|
+
this.saturation = newColor.hsva.s;
|
|
506
|
+
this.brightness = newColor.hsva.v;
|
|
507
|
+
this.alpha = newColor.hsva.a * 100;
|
|
508
|
+
this.syncValues();
|
|
509
|
+
} else {
|
|
510
|
+
this.inputValue = oldValue != null ? oldValue : "";
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
/** Sets focus on the color picker. */
|
|
515
|
+
focus(options) {
|
|
516
|
+
if (this.inline) {
|
|
517
|
+
this.base.focus(options);
|
|
518
|
+
} else {
|
|
519
|
+
this.trigger.focus(options);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
/** Removes focus from the color picker. */
|
|
523
|
+
blur() {
|
|
524
|
+
var _a;
|
|
525
|
+
const elementToBlur = this.inline ? this.base : this.trigger;
|
|
526
|
+
if (this.hasFocus) {
|
|
527
|
+
elementToBlur.focus({ preventScroll: true });
|
|
528
|
+
elementToBlur.blur();
|
|
529
|
+
}
|
|
530
|
+
if ((_a = this.dropdown) == null ? void 0 : _a.open) {
|
|
531
|
+
this.dropdown.hide();
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
/** Returns the current value as a string in the specified format. */
|
|
535
|
+
getFormattedValue(format = "hex") {
|
|
536
|
+
const currentColor = this.parseColor(
|
|
537
|
+
`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha / 100})`
|
|
538
|
+
);
|
|
539
|
+
if (currentColor === null) {
|
|
540
|
+
return "";
|
|
541
|
+
}
|
|
542
|
+
switch (format) {
|
|
543
|
+
case "hex":
|
|
544
|
+
return currentColor.hex;
|
|
545
|
+
case "hexa":
|
|
546
|
+
return currentColor.hexa;
|
|
547
|
+
case "rgb":
|
|
548
|
+
return currentColor.rgb.string;
|
|
549
|
+
case "rgba":
|
|
550
|
+
return currentColor.rgba.string;
|
|
551
|
+
case "hsl":
|
|
552
|
+
return currentColor.hsl.string;
|
|
553
|
+
case "hsla":
|
|
554
|
+
return currentColor.hsla.string;
|
|
555
|
+
case "hsv":
|
|
556
|
+
return currentColor.hsv.string;
|
|
557
|
+
case "hsva":
|
|
558
|
+
return currentColor.hsva.string;
|
|
559
|
+
default:
|
|
560
|
+
return "";
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
564
|
+
checkValidity() {
|
|
565
|
+
return this.input.checkValidity();
|
|
566
|
+
}
|
|
567
|
+
/** Gets the associated form, if one exists. */
|
|
568
|
+
getForm() {
|
|
569
|
+
return this.formControlController.getForm();
|
|
570
|
+
}
|
|
571
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
572
|
+
reportValidity() {
|
|
573
|
+
if (!this.inline && !this.validity.valid) {
|
|
574
|
+
this.dropdown.show();
|
|
575
|
+
this.addEventListener("sl-after-show", () => this.input.reportValidity(), { once: true });
|
|
576
|
+
if (!this.disabled) {
|
|
577
|
+
this.formControlController.emitInvalidEvent();
|
|
578
|
+
}
|
|
579
|
+
return false;
|
|
580
|
+
}
|
|
581
|
+
return this.input.reportValidity();
|
|
582
|
+
}
|
|
583
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
584
|
+
setCustomValidity(message) {
|
|
585
|
+
this.input.setCustomValidity(message);
|
|
586
|
+
this.formControlController.updateValidity();
|
|
587
|
+
}
|
|
588
|
+
render() {
|
|
589
|
+
const gridHandleX = this.saturation;
|
|
590
|
+
const gridHandleY = 100 - this.brightness;
|
|
591
|
+
const swatches = Array.isArray(this.swatches) ? this.swatches : this.swatches.split(";").filter((color) => color.trim() !== "");
|
|
592
|
+
const colorPicker = html`
|
|
593
|
+
<div
|
|
594
|
+
part="base"
|
|
595
|
+
class=${classMap({
|
|
596
|
+
"color-picker": true,
|
|
597
|
+
"color-picker--inline": this.inline,
|
|
598
|
+
"color-picker--disabled": this.disabled,
|
|
599
|
+
"color-picker--focused": this.hasFocus
|
|
600
|
+
})}
|
|
601
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
602
|
+
aria-labelledby="label"
|
|
603
|
+
tabindex=${this.inline ? "0" : "-1"}
|
|
604
|
+
>
|
|
605
|
+
${this.inline ? html`
|
|
606
|
+
<sl-visually-hidden id="label">
|
|
607
|
+
<slot name="label">${this.label}</slot>
|
|
608
|
+
</sl-visually-hidden>
|
|
609
|
+
` : null}
|
|
610
|
+
|
|
611
|
+
<div
|
|
612
|
+
part="grid"
|
|
613
|
+
class="color-picker__grid"
|
|
614
|
+
style=${styleMap({ backgroundColor: this.getHexString(this.hue, 100, 100) })}
|
|
615
|
+
@pointerdown=${this.handleGridDrag}
|
|
616
|
+
@touchmove=${this.handleTouchMove}
|
|
617
|
+
>
|
|
618
|
+
<span
|
|
619
|
+
part="grid-handle"
|
|
620
|
+
class=${classMap({
|
|
621
|
+
"color-picker__grid-handle": true,
|
|
622
|
+
"color-picker__grid-handle--dragging": this.isDraggingGridHandle
|
|
623
|
+
})}
|
|
624
|
+
style=${styleMap({
|
|
625
|
+
top: `${gridHandleY}%`,
|
|
626
|
+
left: `${gridHandleX}%`,
|
|
627
|
+
backgroundColor: this.getHexString(this.hue, this.saturation, this.brightness, this.alpha)
|
|
628
|
+
})}
|
|
629
|
+
role="application"
|
|
630
|
+
aria-label="HSV"
|
|
631
|
+
tabindex=${ifDefined(this.disabled ? void 0 : "0")}
|
|
632
|
+
@keydown=${this.handleGridKeyDown}
|
|
633
|
+
></span>
|
|
634
|
+
</div>
|
|
635
|
+
|
|
636
|
+
<div class="color-picker__controls">
|
|
637
|
+
<div class="color-picker__sliders">
|
|
638
|
+
<div
|
|
639
|
+
part="slider hue-slider"
|
|
640
|
+
class="color-picker__hue color-picker__slider"
|
|
641
|
+
@pointerdown=${this.handleHueDrag}
|
|
642
|
+
@touchmove=${this.handleTouchMove}
|
|
643
|
+
>
|
|
644
|
+
<span
|
|
645
|
+
part="slider-handle hue-slider-handle"
|
|
646
|
+
class="color-picker__slider-handle"
|
|
647
|
+
style=${styleMap({
|
|
648
|
+
left: `${this.hue === 0 ? 0 : 100 / (360 / this.hue)}%`
|
|
649
|
+
})}
|
|
650
|
+
role="slider"
|
|
651
|
+
aria-label="hue"
|
|
652
|
+
aria-orientation="horizontal"
|
|
653
|
+
aria-valuemin="0"
|
|
654
|
+
aria-valuemax="360"
|
|
655
|
+
aria-valuenow=${`${Math.round(this.hue)}`}
|
|
656
|
+
tabindex=${ifDefined(this.disabled ? void 0 : "0")}
|
|
657
|
+
@keydown=${this.handleHueKeyDown}
|
|
658
|
+
></span>
|
|
659
|
+
</div>
|
|
660
|
+
|
|
661
|
+
${this.opacity ? html`
|
|
662
|
+
<div
|
|
663
|
+
part="slider opacity-slider"
|
|
664
|
+
class="color-picker__alpha color-picker__slider color-picker__transparent-bg"
|
|
665
|
+
@pointerdown="${this.handleAlphaDrag}"
|
|
666
|
+
@touchmove=${this.handleTouchMove}
|
|
667
|
+
>
|
|
668
|
+
<div
|
|
669
|
+
class="color-picker__alpha-gradient"
|
|
670
|
+
style=${styleMap({
|
|
671
|
+
backgroundImage: `linear-gradient(
|
|
672
|
+
to right,
|
|
673
|
+
${this.getHexString(this.hue, this.saturation, this.brightness, 0)} 0%,
|
|
674
|
+
${this.getHexString(this.hue, this.saturation, this.brightness, 100)} 100%
|
|
675
|
+
)`
|
|
676
|
+
})}
|
|
677
|
+
></div>
|
|
678
|
+
<span
|
|
679
|
+
part="slider-handle opacity-slider-handle"
|
|
680
|
+
class="color-picker__slider-handle"
|
|
681
|
+
style=${styleMap({
|
|
682
|
+
left: `${this.alpha}%`
|
|
683
|
+
})}
|
|
684
|
+
role="slider"
|
|
685
|
+
aria-label="alpha"
|
|
686
|
+
aria-orientation="horizontal"
|
|
687
|
+
aria-valuemin="0"
|
|
688
|
+
aria-valuemax="100"
|
|
689
|
+
aria-valuenow=${Math.round(this.alpha)}
|
|
690
|
+
tabindex=${ifDefined(this.disabled ? void 0 : "0")}
|
|
691
|
+
@keydown=${this.handleAlphaKeyDown}
|
|
692
|
+
></span>
|
|
693
|
+
</div>
|
|
694
|
+
` : ""}
|
|
695
|
+
</div>
|
|
696
|
+
|
|
697
|
+
<button
|
|
698
|
+
type="button"
|
|
699
|
+
part="preview"
|
|
700
|
+
class="color-picker__preview color-picker__transparent-bg"
|
|
701
|
+
aria-label=${this.localize.term("copy")}
|
|
702
|
+
style=${styleMap({
|
|
703
|
+
"--preview-color": this.getHexString(this.hue, this.saturation, this.brightness, this.alpha)
|
|
704
|
+
})}
|
|
705
|
+
@click=${this.handleCopy}
|
|
706
|
+
></button>
|
|
707
|
+
</div>
|
|
708
|
+
|
|
709
|
+
<div class="color-picker__user-input" aria-live="polite">
|
|
710
|
+
<sl-input
|
|
711
|
+
part="input"
|
|
712
|
+
type="text"
|
|
713
|
+
name=${this.name}
|
|
714
|
+
autocomplete="off"
|
|
715
|
+
autocorrect="off"
|
|
716
|
+
autocapitalize="off"
|
|
717
|
+
spellcheck="false"
|
|
718
|
+
value=${this.isEmpty ? "" : this.inputValue}
|
|
719
|
+
?required=${this.required}
|
|
720
|
+
?disabled=${this.disabled}
|
|
721
|
+
aria-label=${this.localize.term("currentValue")}
|
|
722
|
+
@keydown=${this.handleInputKeyDown}
|
|
723
|
+
@sl-change=${this.handleInputChange}
|
|
724
|
+
@sl-input=${this.handleInputInput}
|
|
725
|
+
@sl-invalid=${this.handleInputInvalid}
|
|
726
|
+
@sl-blur=${this.stopNestedEventPropagation}
|
|
727
|
+
@sl-focus=${this.stopNestedEventPropagation}
|
|
728
|
+
></sl-input>
|
|
729
|
+
|
|
730
|
+
<sl-button-group>
|
|
731
|
+
${!this.noFormatToggle ? html`
|
|
732
|
+
<sl-button
|
|
733
|
+
part="format-button"
|
|
734
|
+
aria-label=${this.localize.term("toggleColorFormat")}
|
|
735
|
+
exportparts="
|
|
736
|
+
base:format-button__base,
|
|
737
|
+
prefix:format-button__prefix,
|
|
738
|
+
label:format-button__label,
|
|
739
|
+
suffix:format-button__suffix,
|
|
740
|
+
caret:format-button__caret
|
|
741
|
+
"
|
|
742
|
+
@click=${this.handleFormatToggle}
|
|
743
|
+
@sl-blur=${this.stopNestedEventPropagation}
|
|
744
|
+
@sl-focus=${this.stopNestedEventPropagation}
|
|
745
|
+
>
|
|
746
|
+
${this.setLetterCase(this.format)}
|
|
747
|
+
</sl-button>
|
|
748
|
+
` : ""}
|
|
749
|
+
${hasEyeDropper ? html`
|
|
750
|
+
<sl-button
|
|
751
|
+
part="eye-dropper-button"
|
|
752
|
+
exportparts="
|
|
753
|
+
base:eye-dropper-button__base,
|
|
754
|
+
prefix:eye-dropper-button__prefix,
|
|
755
|
+
label:eye-dropper-button__label,
|
|
756
|
+
suffix:eye-dropper-button__suffix,
|
|
757
|
+
caret:eye-dropper-button__caret
|
|
758
|
+
"
|
|
759
|
+
@click=${this.handleEyeDropper}
|
|
760
|
+
@sl-blur=${this.stopNestedEventPropagation}
|
|
761
|
+
@sl-focus=${this.stopNestedEventPropagation}
|
|
762
|
+
>
|
|
763
|
+
<sl-icon
|
|
764
|
+
library="system"
|
|
765
|
+
name="eyedropper"
|
|
766
|
+
label=${this.localize.term("selectAColorFromTheScreen")}
|
|
767
|
+
></sl-icon>
|
|
768
|
+
</sl-button>
|
|
769
|
+
` : ""}
|
|
770
|
+
</sl-button-group>
|
|
771
|
+
</div>
|
|
772
|
+
|
|
773
|
+
${swatches.length > 0 ? html`
|
|
774
|
+
<div part="swatches" class="color-picker__swatches">
|
|
775
|
+
${swatches.map((swatch) => {
|
|
776
|
+
const parsedColor = this.parseColor(swatch);
|
|
777
|
+
if (!parsedColor) {
|
|
778
|
+
console.error(`Unable to parse swatch color: "${swatch}"`, this);
|
|
779
|
+
return "";
|
|
780
|
+
}
|
|
781
|
+
return html`
|
|
782
|
+
<div
|
|
783
|
+
part="swatch"
|
|
784
|
+
class="color-picker__swatch color-picker__transparent-bg"
|
|
785
|
+
tabindex=${ifDefined(this.disabled ? void 0 : "0")}
|
|
786
|
+
role="button"
|
|
787
|
+
aria-label=${swatch}
|
|
788
|
+
@click=${() => this.selectSwatch(swatch)}
|
|
789
|
+
@keydown=${(event) => !this.disabled && event.key === "Enter" && this.setColor(parsedColor.hexa)}
|
|
790
|
+
>
|
|
791
|
+
<div
|
|
792
|
+
class="color-picker__swatch-color"
|
|
793
|
+
style=${styleMap({ backgroundColor: parsedColor.hexa })}
|
|
794
|
+
></div>
|
|
795
|
+
</div>
|
|
796
|
+
`;
|
|
797
|
+
})}
|
|
798
|
+
</div>
|
|
799
|
+
` : ""}
|
|
800
|
+
</div>
|
|
801
|
+
`;
|
|
802
|
+
if (this.inline) {
|
|
803
|
+
return colorPicker;
|
|
804
|
+
}
|
|
805
|
+
return html`
|
|
806
|
+
<sl-dropdown
|
|
807
|
+
class="color-dropdown"
|
|
808
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
809
|
+
.containingElement=${this}
|
|
810
|
+
?disabled=${this.disabled}
|
|
811
|
+
?hoist=${this.hoist}
|
|
812
|
+
@sl-after-hide=${this.handleAfterHide}
|
|
813
|
+
>
|
|
814
|
+
<button
|
|
815
|
+
part="trigger"
|
|
816
|
+
slot="trigger"
|
|
817
|
+
class=${classMap({
|
|
818
|
+
"color-dropdown__trigger": true,
|
|
819
|
+
"color-dropdown__trigger--disabled": this.disabled,
|
|
820
|
+
"color-dropdown__trigger--small": this.size === "small",
|
|
821
|
+
"color-dropdown__trigger--medium": this.size === "medium",
|
|
822
|
+
"color-dropdown__trigger--large": this.size === "large",
|
|
823
|
+
"color-dropdown__trigger--empty": this.isEmpty,
|
|
824
|
+
"color-dropdown__trigger--focused": this.hasFocus,
|
|
825
|
+
"color-picker__transparent-bg": true
|
|
826
|
+
})}
|
|
827
|
+
style=${styleMap({
|
|
828
|
+
color: this.getHexString(this.hue, this.saturation, this.brightness, this.alpha)
|
|
829
|
+
})}
|
|
830
|
+
type="button"
|
|
831
|
+
>
|
|
832
|
+
<sl-visually-hidden>
|
|
833
|
+
<slot name="label">${this.label}</slot>
|
|
834
|
+
</sl-visually-hidden>
|
|
835
|
+
</button>
|
|
836
|
+
${colorPicker}
|
|
837
|
+
</sl-dropdown>
|
|
838
|
+
`;
|
|
839
|
+
}
|
|
840
|
+
};
|
|
841
|
+
SlColorPicker.styles = [component_styles_default, color_picker_styles_default];
|
|
842
|
+
SlColorPicker.dependencies = {
|
|
843
|
+
"sl-button-group": SlButtonGroup,
|
|
844
|
+
"sl-button": SlButton,
|
|
845
|
+
"sl-dropdown": SlDropdown,
|
|
846
|
+
"sl-icon": SlIcon,
|
|
847
|
+
"sl-input": SlInput,
|
|
848
|
+
"sl-visually-hidden": SlVisuallyHidden
|
|
849
|
+
};
|
|
850
|
+
__decorateClass([
|
|
851
|
+
query('[part~="base"]')
|
|
852
|
+
], SlColorPicker.prototype, "base", 2);
|
|
853
|
+
__decorateClass([
|
|
854
|
+
query('[part~="input"]')
|
|
855
|
+
], SlColorPicker.prototype, "input", 2);
|
|
856
|
+
__decorateClass([
|
|
857
|
+
query(".color-dropdown")
|
|
858
|
+
], SlColorPicker.prototype, "dropdown", 2);
|
|
859
|
+
__decorateClass([
|
|
860
|
+
query('[part~="preview"]')
|
|
861
|
+
], SlColorPicker.prototype, "previewButton", 2);
|
|
862
|
+
__decorateClass([
|
|
863
|
+
query('[part~="trigger"]')
|
|
864
|
+
], SlColorPicker.prototype, "trigger", 2);
|
|
865
|
+
__decorateClass([
|
|
866
|
+
state()
|
|
867
|
+
], SlColorPicker.prototype, "hasFocus", 2);
|
|
868
|
+
__decorateClass([
|
|
869
|
+
state()
|
|
870
|
+
], SlColorPicker.prototype, "isDraggingGridHandle", 2);
|
|
871
|
+
__decorateClass([
|
|
872
|
+
state()
|
|
873
|
+
], SlColorPicker.prototype, "isEmpty", 2);
|
|
874
|
+
__decorateClass([
|
|
875
|
+
state()
|
|
876
|
+
], SlColorPicker.prototype, "inputValue", 2);
|
|
877
|
+
__decorateClass([
|
|
878
|
+
state()
|
|
879
|
+
], SlColorPicker.prototype, "hue", 2);
|
|
880
|
+
__decorateClass([
|
|
881
|
+
state()
|
|
882
|
+
], SlColorPicker.prototype, "saturation", 2);
|
|
883
|
+
__decorateClass([
|
|
884
|
+
state()
|
|
885
|
+
], SlColorPicker.prototype, "brightness", 2);
|
|
886
|
+
__decorateClass([
|
|
887
|
+
state()
|
|
888
|
+
], SlColorPicker.prototype, "alpha", 2);
|
|
889
|
+
__decorateClass([
|
|
890
|
+
property()
|
|
891
|
+
], SlColorPicker.prototype, "value", 2);
|
|
892
|
+
__decorateClass([
|
|
893
|
+
defaultValue()
|
|
894
|
+
], SlColorPicker.prototype, "defaultValue", 2);
|
|
895
|
+
__decorateClass([
|
|
896
|
+
property()
|
|
897
|
+
], SlColorPicker.prototype, "label", 2);
|
|
898
|
+
__decorateClass([
|
|
899
|
+
property()
|
|
900
|
+
], SlColorPicker.prototype, "format", 2);
|
|
901
|
+
__decorateClass([
|
|
902
|
+
property({ type: Boolean, reflect: true })
|
|
903
|
+
], SlColorPicker.prototype, "inline", 2);
|
|
904
|
+
__decorateClass([
|
|
905
|
+
property({ reflect: true })
|
|
906
|
+
], SlColorPicker.prototype, "size", 2);
|
|
907
|
+
__decorateClass([
|
|
908
|
+
property({ attribute: "no-format-toggle", type: Boolean })
|
|
909
|
+
], SlColorPicker.prototype, "noFormatToggle", 2);
|
|
910
|
+
__decorateClass([
|
|
911
|
+
property()
|
|
912
|
+
], SlColorPicker.prototype, "name", 2);
|
|
913
|
+
__decorateClass([
|
|
914
|
+
property({ type: Boolean, reflect: true })
|
|
915
|
+
], SlColorPicker.prototype, "disabled", 2);
|
|
916
|
+
__decorateClass([
|
|
917
|
+
property({ type: Boolean })
|
|
918
|
+
], SlColorPicker.prototype, "hoist", 2);
|
|
919
|
+
__decorateClass([
|
|
920
|
+
property({ type: Boolean })
|
|
921
|
+
], SlColorPicker.prototype, "opacity", 2);
|
|
922
|
+
__decorateClass([
|
|
923
|
+
property({ type: Boolean })
|
|
924
|
+
], SlColorPicker.prototype, "uppercase", 2);
|
|
925
|
+
__decorateClass([
|
|
926
|
+
property()
|
|
927
|
+
], SlColorPicker.prototype, "swatches", 2);
|
|
928
|
+
__decorateClass([
|
|
929
|
+
property({ reflect: true })
|
|
930
|
+
], SlColorPicker.prototype, "form", 2);
|
|
931
|
+
__decorateClass([
|
|
932
|
+
property({ type: Boolean, reflect: true })
|
|
933
|
+
], SlColorPicker.prototype, "required", 2);
|
|
934
|
+
__decorateClass([
|
|
935
|
+
eventOptions({ passive: false })
|
|
936
|
+
], SlColorPicker.prototype, "handleTouchMove", 1);
|
|
937
|
+
__decorateClass([
|
|
938
|
+
watch("format", { waitUntilFirstUpdate: true })
|
|
939
|
+
], SlColorPicker.prototype, "handleFormatChange", 1);
|
|
940
|
+
__decorateClass([
|
|
941
|
+
watch("opacity", { waitUntilFirstUpdate: true })
|
|
942
|
+
], SlColorPicker.prototype, "handleOpacityChange", 1);
|
|
943
|
+
__decorateClass([
|
|
944
|
+
watch("value")
|
|
945
|
+
], SlColorPicker.prototype, "handleValueChange", 1);
|
|
946
|
+
|
|
947
|
+
export {
|
|
948
|
+
SlColorPicker
|
|
949
|
+
};
|