@luzmo/lucero 1.0.1-alpha.18 → 1.0.1-alpha.19
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/components/NumberFormatter-DewVDY5w.cjs +18 -0
- package/components/NumberFormatter-DgOUVrge.js +136 -0
- package/components/NumberParser-Dik4a0h-.cjs +18 -0
- package/components/NumberParser-ci9J5EKv.js +173 -0
- package/components/accordion/index.cjs +6 -183
- package/components/accordion/index.js +88 -136
- package/components/action-bar/index.cjs +4 -85
- package/components/action-bar/index.js +50 -72
- package/components/action-button/index.cjs +3 -205
- package/components/action-button/index.js +93 -167
- package/components/action-group/index.cjs +1 -7
- package/components/action-group/index.js +8 -12
- package/components/action-group-C54IxNZk.cjs +20 -0
- package/components/action-group-C9dsPJg-.js +258 -0
- package/components/action-menu/index.cjs +11 -91
- package/components/action-menu/index.js +47 -66
- package/components/async-directive-BwIAw5tB.js +82 -0
- package/components/async-directive-DLz6JB0v.cjs +22 -0
- package/components/avatar/index.cjs +3 -63
- package/components/avatar/index.js +42 -54
- package/components/{focusable-selectors-D0t_5P7C.cjs → base-BjTwmyRF.cjs} +5 -16
- package/components/base-CFWO09N1.js +684 -0
- package/components/base-Cy0MQrPT.cjs +40 -0
- package/components/base-D76d76ww.js +26 -0
- package/components/button/index.cjs +2 -134
- package/components/button/index.js +72 -106
- package/components/button-base-B8bWcklV.js +144 -0
- package/components/button-base-tf95Lyl4.cjs +25 -0
- package/components/button-group/index.cjs +1 -45
- package/components/button-group/index.js +25 -37
- package/components/calendar/index.cjs +1 -632
- package/components/calendar/index.js +7 -637
- package/components/checkbox/index.cjs +4 -111
- package/components/checkbox/index.js +53 -98
- package/components/checkbox-mixin-BOTvuPEu.js +70 -0
- package/components/checkbox-mixin-BVPpXtsq.cjs +27 -0
- package/components/class-map-CGfNk3Ee.js +51 -0
- package/components/class-map-D-Y-hsN5.cjs +22 -0
- package/components/clear-button-CuPbWwZY.cjs +18 -0
- package/components/clear-button-DzZ5ulBW.js +53 -0
- package/components/close-button-BTo4yrFR.cjs +18 -0
- package/components/close-button-CuQdsez5.js +51 -0
- package/components/color-area/index.cjs +13 -440
- package/components/color-area/index.js +187 -322
- package/components/color-controller-B0uX6Zso.js +3230 -0
- package/components/color-controller-CoUL5f9K.cjs +18 -0
- package/components/color-field/index.cjs +2 -95
- package/components/color-field/index.js +41 -77
- package/components/color-handle/index.cjs +3 -64
- package/components/color-handle/index.js +37 -58
- package/components/color-loupe/index.cjs +1 -7
- package/components/color-loupe/index.js +8 -12
- package/components/color-loupe-CrM2DVY3.cjs +56 -0
- package/components/color-loupe-DmQe3SpP.js +81 -0
- package/components/color-menu/index.cjs +12 -217
- package/components/color-menu/index.js +93 -187
- package/components/color-palette/index.cjs +1 -89
- package/components/color-palette/index.js +51 -78
- package/components/color-palette-group/index.cjs +3 -259
- package/components/color-palette-group/index.js +105 -193
- package/components/color-picker/index.cjs +6 -114
- package/components/color-picker/index.js +72 -92
- package/components/color-slider/index.cjs +1 -585
- package/components/color-slider/index.js +7 -590
- package/components/condition-attribute-with-id-DrQYZzFS.cjs +18 -0
- package/components/condition-attribute-with-id-Dv4lSRbe.js +31 -0
- package/components/date-time-picker/index.cjs +31 -1357
- package/components/date-time-picker/index.js +637 -951
- package/components/{dependency-manger-XHpQjFgK.js → dependency-manger-CO-VPlqq.js} +14 -24
- package/components/dependency-manger-uthev62E.cjs +18 -0
- package/components/directive-C7oCP5Bh.cjs +22 -0
- package/components/directive-helpers-D4KMv2dC.js +62 -0
- package/components/directive-helpers-t-TVum7J.cjs +22 -0
- package/components/{slottable-request-event-CANixJnR.cjs → directive-oAbCiebi.js} +25 -14
- package/components/divider/index.cjs +1 -54
- package/components/divider/index.js +30 -49
- package/components/divider.module-DDvBo9zo.cjs +18 -0
- package/components/divider.module-DoQWQEIJ.js +21 -0
- package/components/element-resolution-BvRLGqIU.cjs +18 -0
- package/components/element-resolution-FCUT-wql.js +91 -0
- package/components/field-group/index.cjs +1 -7
- package/components/field-group/index.js +8 -12
- package/components/field-group-5WQMBOk4.cjs +23 -0
- package/components/field-group-D4B0IOdA.js +66 -0
- package/components/field-label/index.cjs +1 -7
- package/components/field-label/index.js +8 -12
- package/components/field-label-DxmPiC5p.js +106 -0
- package/components/field-label-Dz9kisdW.cjs +25 -0
- package/components/flow-D-0MTYCm.js +527 -0
- package/components/flow-DM3dNAKs.cjs +30 -0
- package/components/focus-group-DHeTq18L.js +218 -0
- package/components/focus-group-DnxZUBhQ.cjs +18 -0
- package/components/focus-visible-BvScGDCE.js +74 -0
- package/components/focus-visible-D4BXb5RB.cjs +18 -0
- package/components/focusable-B_KwfEec.cjs +18 -0
- package/components/focusable-C5JjRZmT.js +153 -0
- package/components/{focusable-selectors-IltOAOd9.js → focusable-selectors-B4YgbghQ.js} +4 -7
- package/components/focusable-selectors-BgFlyFcY.cjs +18 -0
- package/components/icon/index.cjs +1 -90
- package/components/icon/index.js +46 -74
- package/components/if-defined-DULpqYwi.js +27 -0
- package/components/if-defined-DaXWqfzc.cjs +22 -0
- package/components/index-CNK8wHXu.cjs +57 -0
- package/components/index-Cf6G4q52.js +1490 -0
- package/components/index-D3ICqC7S.js +1174 -0
- package/components/index-hqVbNKYy.cjs +113 -0
- package/components/index.cjs +1 -174
- package/components/index.js +172 -174
- package/components/infield-button/index.cjs +2 -46
- package/components/infield-button/index.js +30 -41
- package/components/label/index.cjs +1 -37
- package/components/label/index.js +24 -36
- package/components/{language-resolution-BSGJAWiQ.js → language-resolution-B-wjV5bb.js} +17 -21
- package/components/language-resolution-EUER43cg.cjs +18 -0
- package/components/like-anchor-Bu3pXbjT.cjs +32 -0
- package/components/like-anchor-DCFJN0LV.js +69 -0
- package/components/luzmo-icons-CiSek5iM.js +229 -0
- package/components/luzmo-icons-CtA-TJPd.cjs +29 -0
- package/components/manage-help-text-CHfMLzSa.js +92 -0
- package/components/manage-help-text-DNqdEkTA.cjs +30 -0
- package/components/menu/index.cjs +29 -1297
- package/components/menu/index.js +499 -954
- package/components/multi-language-field/index.cjs +2 -132
- package/components/multi-language-field/index.js +88 -118
- package/components/mutation-controller-DH7YOCyj.js +52 -0
- package/components/mutation-controller-DkOMCW-c.cjs +22 -0
- package/components/number-field/index.cjs +10 -613
- package/components/number-field/index.js +243 -442
- package/components/observe-slot-presence-CmVi0zTc.js +68 -0
- package/components/observe-slot-presence-bc9chhsi.cjs +18 -0
- package/components/observe-slot-text-C3moTjwy.js +87 -0
- package/components/observe-slot-text-D2VAEFSd.cjs +18 -0
- package/components/options/index.cjs +60 -693
- package/components/options/index.js +953 -519
- package/components/overlay/index.cjs +21 -367
- package/components/overlay/index.js +189 -273
- package/components/overlay-B3ajDLLq.cjs +47 -0
- package/components/overlay-CUKs69yr.js +2745 -0
- package/components/{pending-state-CXbe-Xul.js → pending-state-B2wWssTo.js} +13 -28
- package/components/pending-state-bJr-nEJl.cjs +26 -0
- package/components/picker/index.cjs +1 -9
- package/components/picker/index.js +11 -15
- package/components/picker-C0LvseZe.cjs +123 -0
- package/components/picker-W1qNmtsh.js +461 -0
- package/components/picker-button/index.cjs +4 -56
- package/components/picker-button/index.js +34 -45
- package/components/{condition-attribute-with-id-Cn815e9W.js → platform-BM-uMWpX.js} +49 -24
- package/components/platform-BiXhwqk3.cjs +18 -0
- package/components/popover/index.cjs +1 -7
- package/components/popover/index.js +8 -12
- package/components/popover-fwJeZHMQ.cjs +30 -0
- package/components/popover-iD8f5Jkp.js +67 -0
- package/components/progress-circle/index.cjs +1 -7
- package/components/progress-circle/index.js +8 -12
- package/components/progress-circle-DZxaMe8L.cjs +33 -0
- package/components/progress-circle-USIIU1up.js +97 -0
- package/components/query-BL-TJj7K.cjs +22 -0
- package/components/query-D_KR_GUc.js +51 -0
- package/components/query-assigned-elements-DjfhL1cl.js +36 -0
- package/components/query-assigned-elements-DsKsfk7G.cjs +22 -0
- package/components/query-assigned-nodes-BcKWmGzy.cjs +22 -0
- package/components/query-assigned-nodes-C76XVPWY.js +36 -0
- package/components/radio/index.cjs +2 -244
- package/components/radio/index.js +110 -192
- package/components/{random-id-BEc6QIUL.js → random-id-ByCz1xaq.js} +3 -3
- package/components/random-id-CqvckpWe.cjs +18 -0
- package/components/roving-tabindex-By_fCy_e.cjs +18 -0
- package/components/roving-tabindex-DOg4z6ZU.js +66 -0
- package/components/search/index.cjs +8 -115
- package/components/search/index.js +66 -96
- package/components/select/index.cjs +51 -720
- package/components/select/index.js +347 -563
- package/components/sized-mixin-CJbBHWRQ.js +63 -0
- package/components/sized-mixin-WPHH0a_D.cjs +18 -0
- package/components/slider/index.cjs +1 -119
- package/components/slider/index.js +1113 -100
- package/components/slottable-request-event-BfUUt1Mh.cjs +18 -0
- package/components/{slottable-request-event-D9WzrdWv.js → slottable-request-event-DggLA4Rx.js} +9 -12
- package/components/state-DwIwYPvt.js +29 -0
- package/components/state-vf0PJN3_.cjs +22 -0
- package/components/strategies-C6HsQpU2.cjs +18 -0
- package/components/strategies-CUMLHtQI.js +195 -0
- package/components/streaming-listener-BQ68fKMa.js +91 -0
- package/components/streaming-listener-DeGQYM-9.cjs +18 -0
- package/components/style-map-Bnhf_mVZ.js +53 -0
- package/components/style-map-DuMd5xlY.cjs +22 -0
- package/components/swatch/index.cjs +7 -436
- package/components/swatch/index.js +205 -350
- package/components/switch/index.cjs +2 -61
- package/components/switch/index.js +34 -51
- package/components/tabs/index.cjs +26 -693
- package/components/tabs/index.js +388 -521
- package/components/tags/index.cjs +4 -201
- package/components/tags/index.js +87 -152
- package/components/text-field/index.cjs +3 -49
- package/components/text-field/index.js +30 -44
- package/components/text-field-BkFPYo7S.cjs +85 -0
- package/components/text-field-C2n3rzCK.js +314 -0
- package/components/text-field.module-C2KVUJcX.js +21 -0
- package/components/text-field.module-DXhFA9G-.cjs +18 -0
- package/components/toast/index.cjs +12 -177
- package/components/toast/index.js +73 -145
- package/components/tooltip/index.cjs +6 -250
- package/components/tooltip/index.js +124 -177
- package/components/unit-input/index.cjs +8 -232
- package/components/unit-input/index.js +108 -201
- package/components/utils.cjs +1 -25
- package/components/utils.js +22 -22
- package/components/{random-id-BE6HA503.cjs → when-CDK1Tt5Y.js} +10 -7
- package/components/when-CDZyJPvd.cjs +22 -0
- package/package.json +1 -1
- package/components/action-group-DHp8RHDf.js +0 -392
- package/components/action-group-MPf19RPV.cjs +0 -391
- package/components/base-COw9n7UR.cjs +0 -119
- package/components/base-DmeVy0cq.js +0 -120
- package/components/button-base-7Ak55xFd.cjs +0 -206
- package/components/button-base-C3kf6BTK.js +0 -207
- package/components/checkbox-mixin-8cL-vfDy.js +0 -84
- package/components/checkbox-mixin-CE7dJj3J.cjs +0 -83
- package/components/clear-button-Co6oKSgl.js +0 -59
- package/components/clear-button-X_HDY2eH.cjs +0 -58
- package/components/close-button-DPBK6Kpu.cjs +0 -59
- package/components/close-button-Miw9ZjoJ.js +0 -60
- package/components/color-controller-BjDZaxhX.js +0 -491
- package/components/color-controller-C3c_vb2P.cjs +0 -490
- package/components/color-loupe-BQqNR8YD.cjs +0 -88
- package/components/color-loupe-B_DDFv8l.js +0 -89
- package/components/condition-attribute-with-id-DEc2Yjne.cjs +0 -43
- package/components/dependency-manger-CcIE1uvQ.cjs +0 -63
- package/components/divider.module-Cm5LcDRV.cjs +0 -20
- package/components/divider.module-DauH6k2_.js +0 -21
- package/components/element-resolution-DCsrhGZO.cjs +0 -112
- package/components/element-resolution-nMlmW4Jy.js +0 -113
- package/components/field-group-DNmY8W9v.cjs +0 -86
- package/components/field-group-DVdAWCQF.js +0 -87
- package/components/field-label-CKH9EXpR.cjs +0 -156
- package/components/field-label-Dpsecoc6.js +0 -157
- package/components/focus-group-BqDAk9Is.js +0 -337
- package/components/focus-group-DFzOlalL.cjs +0 -336
- package/components/focus-visible-B-B8-P9R.cjs +0 -104
- package/components/focus-visible-BUPRWlsh.js +0 -105
- package/components/focusable-BPrTcZPd.cjs +0 -262
- package/components/focusable-ChCLg1k4.js +0 -263
- package/components/language-resolution-iN9EImbb.cjs +0 -57
- package/components/like-anchor-D62faRNG.cjs +0 -79
- package/components/like-anchor-v3cJ9RWM.js +0 -80
- package/components/manage-help-text-BYx84zZR.cjs +0 -125
- package/components/manage-help-text-DOuMTGht.js +0 -126
- package/components/observe-slot-presence-9AwLGUQ_.cjs +0 -78
- package/components/observe-slot-presence-DcMdoumP.js +0 -79
- package/components/observe-slot-text-CSofZeeF.cjs +0 -104
- package/components/observe-slot-text-CjnkkBPn.js +0 -105
- package/components/overlay-CN8ISP1F.js +0 -2485
- package/components/overlay-LViy9VWM.cjs +0 -2484
- package/components/pending-state-e4RbXe9u.cjs +0 -75
- package/components/picker-DNde3awt.cjs +0 -672
- package/components/picker-PfUAF05y.js +0 -673
- package/components/platform-CxDar3Dn.cjs +0 -68
- package/components/platform-Cxn0WbyT.js +0 -69
- package/components/popover-BkbYhl3i.js +0 -74
- package/components/popover-BkgUf0kL.cjs +0 -74
- package/components/progress-circle-Hu_ivPHf.js +0 -133
- package/components/progress-circle-_Etqsj9f.cjs +0 -132
- package/components/roving-tabindex-AsmAh2In.cjs +0 -95
- package/components/roving-tabindex-DPF9NmrH.js +0 -96
- package/components/sized-mixin-DmkrNdWB.js +0 -80
- package/components/sized-mixin-UaTVa-AE.cjs +0 -79
- package/components/strategies-DlMlaSJR.cjs +0 -317
- package/components/strategies-DlPQoTFE.js +0 -318
- package/components/streaming-listener-D4sHaMub.cjs +0 -145
- package/components/streaming-listener-cAz5zJyk.js +0 -146
- package/components/text-field-11tcnftU.cjs +0 -338
- package/components/text-field-Chi9J2Cz.js +0 -339
- package/components/text-field.module-CMBS0jSL.js +0 -21
- package/components/text-field.module-DIJdV_sA.cjs +0 -20
|
@@ -15,50 +15,34 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
import { T as z, R as v } from "../luzmo-icons-CiSek5iM.js";
|
|
19
|
+
import { x as u, r as m, n as l, a as w } from "../base-CFWO09N1.js";
|
|
20
|
+
import { o as x } from "../if-defined-DULpqYwi.js";
|
|
21
|
+
import { n as b } from "../when-CDK1Tt5Y.js";
|
|
22
|
+
import { F as y } from "../focusable-C5JjRZmT.js";
|
|
23
|
+
import { S as p } from "../sized-mixin-CJbBHWRQ.js";
|
|
24
|
+
import { s as k } from "../mutation-controller-DH7YOCyj.js";
|
|
25
|
+
import { o as S } from "../query-assigned-elements-DjfhL1cl.js";
|
|
26
|
+
import { R as C } from "../roving-tabindex-DOg4z6ZU.js";
|
|
27
|
+
const g = () => {
|
|
28
|
+
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
29
|
+
const c = document.createElement("style");
|
|
30
|
+
c.setAttribute("data-luzmo-vars", ""), c.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(c);
|
|
24
31
|
}
|
|
25
32
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
import { F as Focusable } from "../focusable-ChCLg1k4.js";
|
|
33
|
-
import { S as SizedMixin } from "../sized-mixin-DmkrNdWB.js";
|
|
34
|
-
import { MutationController } from "@lit-labs/observers/mutation-controller.js";
|
|
35
|
-
import { a as LuzmoElement } from "../base-DmeVy0cq.js";
|
|
36
|
-
import { R as RovingTabindexController } from "../roving-tabindex-DPF9NmrH.js";
|
|
37
|
-
const styles$1 = '@media (forced-colors: active){:host{--highcontrast-swatch-disabled-icon-color: GrayText;--highcontrast-swatch-focus-indicator-color: ButtonText;--highcontrast-swatch-background-color-selected: Background;--highcontrast-swatch-border-color-selected: Highlight;--highcontrast-swatch-border-color: ButtonText;--highcontrast-swatch-fill-foreground-color: ButtonText}.fill{forced-color-adjust:none}:host([disabled]){--highcontrast-swatch-border-color: GrayText}}:host{box-sizing:border-box;inline-size:var(--luzmo-swatch-size, var(--swatch-size));block-size:var(--luzmo-swatch-size, var(--swatch-size));-webkit-user-select:none;user-select:none;outline:none;justify-content:center;align-items:center;display:flex;position:relative}.disabled-icon{inline-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size));block-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size))}:host,:host:before{border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius))}:host([selected]){background-color:var(--highcontrast-swatch-background-color-selected, var(--luzmo-swatch-inner-border-color-selected, var(--swatch-inner-border-color-selected)))}:host([selected]) .fill:before{box-shadow:none;border-radius:0}:host([selected]):before{opacity:1}:host .is-image .fill:before{background-color:initial}:host([mixed-value]) .fill{background:none;background:var(--picked-color, transparent)}:host([mixed-value]) .mixed-value-icon{color:var(--swatch-dash-icon-color);display:block}:host([nothing]) .fill{background-color:initial;background-color:var(--picked-color, transparent);background-image:none}:host([nothing]) .fill:after{inline-size:var(--luzmo-swatch-slash-thickness, var(--swatch-slash-thickness));content:"";block-size:200%;background:var(--highcontrast-swatch-fill-foreground-color, var(--luzmo-swatch-slash-icon-color, var(--swatch-slash-icon-color)));position:absolute;transform:rotate(-45deg)}:host([nothing][shape=rectangle]) .fill:after{transform:rotate(-25deg)}:host([disabled]) .disabled-icon{display:block}:host:before{content:"";border-width:var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected));border-style:solid;border-color:var(--highcontrast-swatch-border-color-selected, var(--luzmo-swatch-border-color-selected, var(--swatch-border-color-selected)));opacity:0;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}:host:after{content:"";inset:calc(var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)) * -2);background-color:var(--luzmo-swatch-focus-indicator-background-color, var(--luzmo-background-color));z-index:-1;opacity:0;border-width:var(--luzmo-swatch-focus-indicator-width, var(--swatch-focus-indicator-width));border-style:solid;border-color:var(--highcontrast-swatch-focus-indicator-color, var(--luzmo-swatch-focus-indicator-color, var(--swatch-focus-indicator-color)));border-radius:var(--luzmo-swatch-focus-indicator-border-radius, var(--swatch-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute}:host(:focus-visible):after{opacity:1}.fill{inline-size:100%;block-size:100%;box-sizing:border-box;border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.fill:before{content:"";z-index:0;box-sizing:border-box;box-shadow:inset 0 0 0 var(--luzmo-swatch-border-thickness, var(--swatch-border-thickness)) var(--highcontrast-swatch-border-color, var(--luzmo-swatch-border-color, var(--swatch-border-color)));border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));position:absolute;top:0;right:0;bottom:0;left:0}:host([border=none]) .fill:before,.fill:before{background-color:initial;background-color:var(--picked-color, transparent)}:host([border=none]) .fill:before{box-shadow:none}.mixed-value-icon{pointer-events:none;color:#0000;color:var(--picked-color, transparent);display:none}.disabled-icon{z-index:1;pointer-events:none;color:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));stroke:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));display:none;position:relative}.disabled-icon path:first-child{fill:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)))}.disabled-icon path:last-child{fill:var(--luzmo-swatch-icon-border-color, var(--swatch-icon-border-color))}:host([shape=rectangle]){inline-size:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2)}:host([rounding=none]),:host([rounding=none]) .fill,:host([rounding=none]) .fill:before,:host([rounding=none][selected]) .fill,:host([rounding=none][selected]) .fill:before,:host([rounding=none]):after,:host([rounding=none]):before{border-radius:0}:host([rounding=full][selected]:not([shape=rectangle])) .fill,:host([rounding=full][selected]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])),:host([rounding=full]:not([shape=rectangle])) .fill,:host([rounding=full]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])):after,:host([rounding=full]:not([shape=rectangle])):before{border-radius:100%}:host([selected]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)));height:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}:host([selected][shape=rectangle]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2 - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}::slotted([slot=image]){object-fit:contain;inline-size:100%;block-size:100%;transition:width var(--luzmo-animation-duration) ease-in-out,height var(--luzmo-animation-duration) ease-in-out}:host([size=xl]){--swatch-size: var(--luzmo-component-height-xl);--swatch-disabled-icon-size: 24px;--swatch-slash-thickness: 6px}:host([size=l]){--swatch-size: var(--luzmo-component-height-l);--swatch-disabled-icon-size: 20px;--swatch-slash-thickness: 5px}:host([size=s]){--swatch-size: var(--luzmo-component-height-s);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 3px}:host([size=xs]){--swatch-size: var(--luzmo-component-height-xs);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 2px}:host([size=xxs]){--swatch-size: var(--luzmo-component-height-xxs);--swatch-disabled-icon-size: 14px;--swatch-slash-thickness: 2px}:host{--swatch-size: var(--luzmo-component-height);--swatch-disabled-icon-size: 18px;--swatch-slash-thickness: 4px}:host{--swatch-border-radius: var(--luzmo-border-radius-s);--swatch-focus-indicator-border-radius: var(--luzmo-border-radius-s);--swatch-border-thickness: var(--luzmo-border-width);--swatch-border-thickness-selected: var(--luzmo-border-width);--swatch-focus-indicator-width: var(--luzmo-indicator-width);--swatch-focus-indicator-gap: var(--luzmo-indicator-gap);--swatch-border-color: var(--luzmo-border-color-down);--swatch-icon-border-color: var(--luzmo-border-color);--swatch-border-color-selected: var(--luzmo-border-color-full-down);--swatch-inner-border-color-selected: var(--luzmo-background-color);--swatch-disabled-icon-color: rgb(255, 255, 255);--swatch-dash-icon-color: var(--luzmo-font-color);--swatch-slash-icon-color: var(--luzmo-negative-color);--swatch-focus-indicator-color: var(--luzmo-primary)}.fill:before{background:var(--picked-color, transparent)}:host([border=none]) .fill:before{background:var(--picked-color, transparent)}:host .is-image .fill:before{background:#0000}:host .opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-swatch-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-swatch-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-swatch-checkerboard-position, left top)/calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2) calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2)}';
|
|
38
|
-
var __defProp$1 = Object.defineProperty;
|
|
39
|
-
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
40
|
-
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
41
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
42
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
43
|
-
if (decorator = decorators[i])
|
|
44
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
45
|
-
if (kind && result) __defProp$1(target, key, result);
|
|
46
|
-
return result;
|
|
33
|
+
g();
|
|
34
|
+
const A = '@media (forced-colors: active){:host{--highcontrast-swatch-disabled-icon-color: GrayText;--highcontrast-swatch-focus-indicator-color: ButtonText;--highcontrast-swatch-background-color-selected: Background;--highcontrast-swatch-border-color-selected: Highlight;--highcontrast-swatch-border-color: ButtonText;--highcontrast-swatch-fill-foreground-color: ButtonText}.fill{forced-color-adjust:none}:host([disabled]){--highcontrast-swatch-border-color: GrayText}}:host{box-sizing:border-box;inline-size:var(--luzmo-swatch-size, var(--swatch-size));block-size:var(--luzmo-swatch-size, var(--swatch-size));-webkit-user-select:none;user-select:none;outline:none;justify-content:center;align-items:center;display:flex;position:relative}.disabled-icon{inline-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size));block-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size))}:host,:host:before{border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius))}:host([selected]){background-color:var(--highcontrast-swatch-background-color-selected, var(--luzmo-swatch-inner-border-color-selected, var(--swatch-inner-border-color-selected)))}:host([selected]) .fill:before{box-shadow:none;border-radius:0}:host([selected]):before{opacity:1}:host .is-image .fill:before{background-color:initial}:host([mixed-value]) .fill{background:none;background:var(--picked-color, transparent)}:host([mixed-value]) .mixed-value-icon{color:var(--swatch-dash-icon-color);display:block}:host([nothing]) .fill{background-color:initial;background-color:var(--picked-color, transparent);background-image:none}:host([nothing]) .fill:after{inline-size:var(--luzmo-swatch-slash-thickness, var(--swatch-slash-thickness));content:"";block-size:200%;background:var(--highcontrast-swatch-fill-foreground-color, var(--luzmo-swatch-slash-icon-color, var(--swatch-slash-icon-color)));position:absolute;transform:rotate(-45deg)}:host([nothing][shape=rectangle]) .fill:after{transform:rotate(-25deg)}:host([disabled]) .disabled-icon{display:block}:host:before{content:"";border-width:var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected));border-style:solid;border-color:var(--highcontrast-swatch-border-color-selected, var(--luzmo-swatch-border-color-selected, var(--swatch-border-color-selected)));opacity:0;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}:host:after{content:"";inset:calc(var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)) * -2);background-color:var(--luzmo-swatch-focus-indicator-background-color, var(--luzmo-background-color));z-index:-1;opacity:0;border-width:var(--luzmo-swatch-focus-indicator-width, var(--swatch-focus-indicator-width));border-style:solid;border-color:var(--highcontrast-swatch-focus-indicator-color, var(--luzmo-swatch-focus-indicator-color, var(--swatch-focus-indicator-color)));border-radius:var(--luzmo-swatch-focus-indicator-border-radius, var(--swatch-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute}:host(:focus-visible):after{opacity:1}.fill{inline-size:100%;block-size:100%;box-sizing:border-box;border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.fill:before{content:"";z-index:0;box-sizing:border-box;box-shadow:inset 0 0 0 var(--luzmo-swatch-border-thickness, var(--swatch-border-thickness)) var(--highcontrast-swatch-border-color, var(--luzmo-swatch-border-color, var(--swatch-border-color)));border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));position:absolute;top:0;right:0;bottom:0;left:0}:host([border=none]) .fill:before,.fill:before{background-color:initial;background-color:var(--picked-color, transparent)}:host([border=none]) .fill:before{box-shadow:none}.mixed-value-icon{pointer-events:none;color:#0000;color:var(--picked-color, transparent);display:none}.disabled-icon{z-index:1;pointer-events:none;color:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));stroke:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));display:none;position:relative}.disabled-icon path:first-child{fill:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)))}.disabled-icon path:last-child{fill:var(--luzmo-swatch-icon-border-color, var(--swatch-icon-border-color))}:host([shape=rectangle]){inline-size:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2)}:host([rounding=none]),:host([rounding=none]) .fill,:host([rounding=none]) .fill:before,:host([rounding=none][selected]) .fill,:host([rounding=none][selected]) .fill:before,:host([rounding=none]):after,:host([rounding=none]):before{border-radius:0}:host([rounding=full][selected]:not([shape=rectangle])) .fill,:host([rounding=full][selected]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])),:host([rounding=full]:not([shape=rectangle])) .fill,:host([rounding=full]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])):after,:host([rounding=full]:not([shape=rectangle])):before{border-radius:100%}:host([selected]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)));height:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}:host([selected][shape=rectangle]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2 - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}::slotted([slot=image]){object-fit:contain;inline-size:100%;block-size:100%;transition:width var(--luzmo-animation-duration) ease-in-out,height var(--luzmo-animation-duration) ease-in-out}:host([size=xl]){--swatch-size: var(--luzmo-component-height-xl);--swatch-disabled-icon-size: 24px;--swatch-slash-thickness: 6px}:host([size=l]){--swatch-size: var(--luzmo-component-height-l);--swatch-disabled-icon-size: 20px;--swatch-slash-thickness: 5px}:host([size=s]){--swatch-size: var(--luzmo-component-height-s);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 3px}:host([size=xs]){--swatch-size: var(--luzmo-component-height-xs);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 2px}:host([size=xxs]){--swatch-size: var(--luzmo-component-height-xxs);--swatch-disabled-icon-size: 14px;--swatch-slash-thickness: 2px}:host{--swatch-size: var(--luzmo-component-height);--swatch-disabled-icon-size: 18px;--swatch-slash-thickness: 4px}:host{--swatch-border-radius: var(--luzmo-border-radius-s);--swatch-focus-indicator-border-radius: var(--luzmo-border-radius-s);--swatch-border-thickness: var(--luzmo-border-width);--swatch-border-thickness-selected: var(--luzmo-border-width);--swatch-focus-indicator-width: var(--luzmo-indicator-width);--swatch-focus-indicator-gap: var(--luzmo-indicator-gap);--swatch-border-color: var(--luzmo-border-color-down);--swatch-icon-border-color: var(--luzmo-border-color);--swatch-border-color-selected: var(--luzmo-border-color-full-down);--swatch-inner-border-color-selected: var(--luzmo-background-color);--swatch-disabled-icon-color: rgb(255, 255, 255);--swatch-dash-icon-color: var(--luzmo-font-color);--swatch-slash-icon-color: var(--luzmo-negative-color);--swatch-focus-indicator-color: var(--luzmo-primary)}.fill:before{background:var(--picked-color, transparent)}:host([border=none]) .fill:before{background:var(--picked-color, transparent)}:host .is-image .fill:before{background:#0000}:host .opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-swatch-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-swatch-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-swatch-checkerboard-position, left top)/calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2) calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2)}';
|
|
35
|
+
var E = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (c, e, o, r) => {
|
|
36
|
+
for (var t = r > 1 ? void 0 : r ? _(e, o) : e, s = c.length - 1, i; s >= 0; s--)
|
|
37
|
+
(i = c[s]) && (t = (r ? i(e, o, t) : i(t)) || t);
|
|
38
|
+
return r && t && E(e, o, t), t;
|
|
47
39
|
};
|
|
48
|
-
class
|
|
40
|
+
class a extends p(y, {
|
|
49
41
|
validSizes: ["xxs", "xs", "s", "m", "l", "xl"],
|
|
50
|
-
noDefaultSize:
|
|
42
|
+
noDefaultSize: !0
|
|
51
43
|
}) {
|
|
52
44
|
constructor() {
|
|
53
|
-
super(...arguments)
|
|
54
|
-
this.color = "";
|
|
55
|
-
this.label = "";
|
|
56
|
-
this.mixedValue = false;
|
|
57
|
-
this.nothing = false;
|
|
58
|
-
this.role = "button";
|
|
59
|
-
this.selected = false;
|
|
60
|
-
this.readonly = false;
|
|
61
|
-
this.renderDisabled = () => html`
|
|
45
|
+
super(...arguments), this.color = "", this.label = "", this.mixedValue = !1, this.nothing = !1, this.role = "button", this.selected = !1, this.readonly = !1, this.renderDisabled = () => u`
|
|
62
46
|
<svg
|
|
63
47
|
xmlns="http://www.w3.org/2000/svg"
|
|
64
48
|
class="disabled-icon"
|
|
@@ -75,59 +59,48 @@ class LuzmoSwatch extends SizedMixin(Focusable, {
|
|
|
75
59
|
fill="var(--swatch-disabled-icon-stroke-color)"
|
|
76
60
|
/>
|
|
77
61
|
</svg>
|
|
78
|
-
|
|
79
|
-
this.renderMixedValue = () => luzmoIcon(luzmoDash);
|
|
62
|
+
`, this.renderMixedValue = () => z(v);
|
|
80
63
|
}
|
|
81
64
|
static get styles() {
|
|
82
|
-
return [
|
|
65
|
+
return [m(A)];
|
|
83
66
|
}
|
|
84
67
|
get value() {
|
|
85
68
|
return this._value || this.color || this.label;
|
|
86
69
|
}
|
|
87
|
-
set value(
|
|
88
|
-
if (
|
|
70
|
+
set value(e) {
|
|
71
|
+
if (e === this._value)
|
|
89
72
|
return;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
this._value = value;
|
|
93
|
-
this.requestUpdate("value", oldValue);
|
|
73
|
+
const o = this.value;
|
|
74
|
+
this._value = e, this.requestUpdate("value", o);
|
|
94
75
|
}
|
|
95
76
|
get focusElement() {
|
|
96
77
|
return this;
|
|
97
78
|
}
|
|
98
|
-
toggle(
|
|
99
|
-
|
|
100
|
-
this.selected = force ?? !this.selected;
|
|
101
|
-
}
|
|
79
|
+
toggle(e) {
|
|
80
|
+
this.readonly || (this.selected = e ?? !this.selected);
|
|
102
81
|
}
|
|
103
82
|
handleClick() {
|
|
104
|
-
if (this.disabled || this.mixedValue)
|
|
83
|
+
if (this.disabled || this.mixedValue)
|
|
105
84
|
return;
|
|
106
|
-
|
|
107
|
-
this.toggle();
|
|
108
|
-
const applyDefault = this.dispatchEvent(
|
|
85
|
+
this.toggle(), this.dispatchEvent(
|
|
109
86
|
new Event("change", {
|
|
110
|
-
cancelable:
|
|
111
|
-
bubbles:
|
|
87
|
+
cancelable: !0,
|
|
88
|
+
bubbles: !0
|
|
112
89
|
})
|
|
113
|
-
);
|
|
114
|
-
if (!applyDefault) {
|
|
115
|
-
this.toggle();
|
|
116
|
-
}
|
|
90
|
+
) || this.toggle();
|
|
117
91
|
}
|
|
118
|
-
handleKeydown(
|
|
119
|
-
const { code } =
|
|
120
|
-
switch (
|
|
92
|
+
handleKeydown(e) {
|
|
93
|
+
const { code: o } = e;
|
|
94
|
+
switch (o) {
|
|
121
95
|
case "Space": {
|
|
122
|
-
|
|
123
|
-
this.addEventListener("keyup", this.handleKeyup);
|
|
96
|
+
e.preventDefault(), this.addEventListener("keyup", this.handleKeyup);
|
|
124
97
|
break;
|
|
125
98
|
}
|
|
126
99
|
}
|
|
127
100
|
}
|
|
128
|
-
handleKeypress(
|
|
129
|
-
const { code } =
|
|
130
|
-
switch (
|
|
101
|
+
handleKeypress(e) {
|
|
102
|
+
const { code: o } = e;
|
|
103
|
+
switch (o) {
|
|
131
104
|
case "Enter":
|
|
132
105
|
case "NumpadEnter": {
|
|
133
106
|
this.click();
|
|
@@ -135,154 +108,105 @@ class LuzmoSwatch extends SizedMixin(Focusable, {
|
|
|
135
108
|
}
|
|
136
109
|
}
|
|
137
110
|
}
|
|
138
|
-
handleKeyup(
|
|
139
|
-
const { code } =
|
|
140
|
-
switch (
|
|
111
|
+
handleKeyup(e) {
|
|
112
|
+
const { code: o } = e;
|
|
113
|
+
switch (o) {
|
|
141
114
|
case "Space": {
|
|
142
|
-
this.removeEventListener("keyup", this.handleKeyup);
|
|
143
|
-
this.click();
|
|
115
|
+
this.removeEventListener("keyup", this.handleKeyup), this.click();
|
|
144
116
|
break;
|
|
145
117
|
}
|
|
146
118
|
}
|
|
147
119
|
}
|
|
148
120
|
render() {
|
|
149
|
-
return
|
|
121
|
+
return u`
|
|
150
122
|
<div
|
|
151
123
|
class="opacity-checkerboard fill"
|
|
152
|
-
style=${
|
|
124
|
+
style=${x(
|
|
153
125
|
this.color ? `--picked-color: ${this.color}` : void 0
|
|
154
126
|
)}
|
|
155
127
|
>
|
|
156
128
|
<slot name="image"></slot>
|
|
157
|
-
${
|
|
158
|
-
${
|
|
129
|
+
${b(this.disabled, this.renderDisabled)}
|
|
130
|
+
${b(this.mixedValue, this.renderMixedValue)}
|
|
159
131
|
</div>
|
|
160
132
|
`;
|
|
161
133
|
}
|
|
162
|
-
willUpdate(
|
|
163
|
-
var
|
|
164
|
-
if (
|
|
165
|
-
this.
|
|
166
|
-
|
|
167
|
-
if ((changes.has("selected") || changes.has("role")) && !this.readonly) {
|
|
168
|
-
const selectedAttribute = this.role === "button" ? "aria-pressed" : "aria-checked";
|
|
169
|
-
const removedSelectedAttribute = this.role === "button" ? "aria-checked" : "aria-pressed";
|
|
170
|
-
if (changes.has("role")) {
|
|
171
|
-
this.removeAttribute(removedSelectedAttribute);
|
|
172
|
-
}
|
|
173
|
-
this.setAttribute(selectedAttribute, this.selected ? "true" : "false");
|
|
174
|
-
}
|
|
175
|
-
if (changes.has("label") || changes.has("color") || changes.has("mixedValue")) {
|
|
176
|
-
if (this.label !== this.color && ((_a = this.label) == null ? void 0 : _a.length)) {
|
|
177
|
-
this.setAttribute("aria-label", this.label);
|
|
178
|
-
} else if (this.color) {
|
|
179
|
-
this.setAttribute("aria-label", this.color);
|
|
180
|
-
} else if (this.mixedValue) {
|
|
181
|
-
this.setAttribute("aria-label", "Mixed");
|
|
182
|
-
} else {
|
|
183
|
-
this.removeAttribute("aria-label");
|
|
184
|
-
}
|
|
134
|
+
willUpdate(e) {
|
|
135
|
+
var o;
|
|
136
|
+
if (this.getAttribute("role") || this.setAttribute("role", "button"), (e.has("selected") || e.has("role")) && !this.readonly) {
|
|
137
|
+
const r = this.role === "button" ? "aria-pressed" : "aria-checked", t = this.role === "button" ? "aria-checked" : "aria-pressed";
|
|
138
|
+
e.has("role") && this.removeAttribute(t), this.setAttribute(r, this.selected ? "true" : "false");
|
|
185
139
|
}
|
|
140
|
+
(e.has("label") || e.has("color") || e.has("mixedValue")) && (this.label !== this.color && ((o = this.label) != null && o.length) ? this.setAttribute("aria-label", this.label) : this.color ? this.setAttribute("aria-label", this.color) : this.mixedValue ? this.setAttribute("aria-label", "Mixed") : this.removeAttribute("aria-label"));
|
|
186
141
|
}
|
|
187
|
-
firstUpdated(
|
|
188
|
-
super.firstUpdated(
|
|
189
|
-
this.addEventListener("click", this.handleClick);
|
|
190
|
-
this.addEventListener("keydown", this.handleKeydown);
|
|
191
|
-
this.addEventListener("keypress", this.handleKeypress);
|
|
192
|
-
if (!this.hasAttribute("tabindex")) {
|
|
193
|
-
this.setAttribute("tabindex", "0");
|
|
194
|
-
}
|
|
142
|
+
firstUpdated(e) {
|
|
143
|
+
super.firstUpdated(e), this.addEventListener("click", this.handleClick), this.addEventListener("keydown", this.handleKeydown), this.addEventListener("keypress", this.handleKeypress), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0");
|
|
195
144
|
}
|
|
196
145
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
],
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
],
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
],
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
],
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
],
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
],
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
],
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
],
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
],
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
],
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
],
|
|
230
|
-
const
|
|
231
|
-
var
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
236
|
-
if (decorator = decorators[i])
|
|
237
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
238
|
-
if (kind && result) __defProp(target, key, result);
|
|
239
|
-
return result;
|
|
146
|
+
n([
|
|
147
|
+
l({ reflect: !0 })
|
|
148
|
+
], a.prototype, "border", 2);
|
|
149
|
+
n([
|
|
150
|
+
l()
|
|
151
|
+
], a.prototype, "color", 2);
|
|
152
|
+
n([
|
|
153
|
+
l()
|
|
154
|
+
], a.prototype, "label", 2);
|
|
155
|
+
n([
|
|
156
|
+
l({ type: Boolean, reflect: !0, attribute: "mixed-value" })
|
|
157
|
+
], a.prototype, "mixedValue", 2);
|
|
158
|
+
n([
|
|
159
|
+
l({ type: Boolean, reflect: !0 })
|
|
160
|
+
], a.prototype, "nothing", 2);
|
|
161
|
+
n([
|
|
162
|
+
l({ reflect: !0 })
|
|
163
|
+
], a.prototype, "role", 2);
|
|
164
|
+
n([
|
|
165
|
+
l({ reflect: !0 })
|
|
166
|
+
], a.prototype, "rounding", 2);
|
|
167
|
+
n([
|
|
168
|
+
l({ type: Boolean, reflect: !0 })
|
|
169
|
+
], a.prototype, "selected", 2);
|
|
170
|
+
n([
|
|
171
|
+
l({ type: Boolean, reflect: !0 })
|
|
172
|
+
], a.prototype, "readonly", 2);
|
|
173
|
+
n([
|
|
174
|
+
l({ reflect: !0 })
|
|
175
|
+
], a.prototype, "shape", 2);
|
|
176
|
+
n([
|
|
177
|
+
l()
|
|
178
|
+
], a.prototype, "value", 1);
|
|
179
|
+
const D = ":host{justify-content:flex-start;align-items:flex-start;gap:var(--luzmo-swatch-group-spacing-regular, var(--swatch-group-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--luzmo-swatch-group-spacing-compact, var(--swatch-group-spacing-compact))}:host([density=spacious]){gap:var(--luzmo-swatch-group-spacing-spacious, var(--swatch-group-spacing-spacious))}:host{--swatch-group-spacing-compact: 2px;--swatch-group-spacing-regular: 4px;--swatch-group-spacing-spacious: 8px}";
|
|
180
|
+
var L = Object.defineProperty, T = Object.getOwnPropertyDescriptor, h = (c, e, o, r) => {
|
|
181
|
+
for (var t = r > 1 ? void 0 : r ? T(e, o) : e, s = c.length - 1, i; s >= 0; s--)
|
|
182
|
+
(i = c[s]) && (t = (r ? i(e, o, t) : i(t)) || t);
|
|
183
|
+
return r && t && L(e, o, t), t;
|
|
240
184
|
};
|
|
241
|
-
class
|
|
185
|
+
class d extends p(w, {
|
|
242
186
|
validSizes: ["xs", "s", "m", "l"],
|
|
243
|
-
noDefaultSize:
|
|
187
|
+
noDefaultSize: !0
|
|
244
188
|
}) {
|
|
245
189
|
constructor() {
|
|
246
|
-
super()
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
let firstEnabledIndex = -1;
|
|
252
|
-
const firstSelectedIndex = elements.findIndex((el, index) => {
|
|
253
|
-
if (!elements[firstEnabledIndex] && !el.disabled) {
|
|
254
|
-
firstEnabledIndex = index;
|
|
255
|
-
}
|
|
256
|
-
return el.selected && !el.disabled;
|
|
257
|
-
});
|
|
258
|
-
return elements[firstSelectedIndex] ? firstSelectedIndex : firstEnabledIndex;
|
|
190
|
+
super(), this._selected = [], this.selectedSet = /* @__PURE__ */ new Set(), this.rovingTabindexController = new C(this, {
|
|
191
|
+
focusInIndex: (e) => {
|
|
192
|
+
let o = -1;
|
|
193
|
+
const r = e.findIndex((t, s) => (!e[o] && !t.disabled && (o = s), t.selected && !t.disabled));
|
|
194
|
+
return e[r] ? r : o;
|
|
259
195
|
},
|
|
260
196
|
elements: () => this.swatches,
|
|
261
|
-
isFocusableElement: (
|
|
262
|
-
})
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
this.selectedSet.add(swatch.value);
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
this.selectedSet.forEach((value) => {
|
|
274
|
-
if (!presentSet.has(value)) {
|
|
275
|
-
this.selectedSet.delete(value);
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
this._selected = [...this.selectedSet];
|
|
279
|
-
this.rovingTabindexController.clearElementCache();
|
|
280
|
-
};
|
|
281
|
-
new MutationController(this, {
|
|
197
|
+
isFocusableElement: (e) => !e.disabled
|
|
198
|
+
}), this.manageChange = async () => {
|
|
199
|
+
const e = /* @__PURE__ */ new Set();
|
|
200
|
+
this.selectedSet = new Set(this.selected), await Promise.all(this.swatches.map((o) => o.updateComplete)), this.swatches.forEach((o) => {
|
|
201
|
+
e.add(o.value), o.selected && this.selectedSet.add(o.value);
|
|
202
|
+
}), this.selectedSet.forEach((o) => {
|
|
203
|
+
e.has(o) || this.selectedSet.delete(o);
|
|
204
|
+
}), this._selected = [...this.selectedSet], this.rovingTabindexController.clearElementCache();
|
|
205
|
+
}, new k(this, {
|
|
282
206
|
config: {
|
|
283
|
-
attributes:
|
|
284
|
-
childList:
|
|
285
|
-
subtree:
|
|
207
|
+
attributes: !0,
|
|
208
|
+
childList: !0,
|
|
209
|
+
subtree: !0
|
|
286
210
|
},
|
|
287
211
|
callback: () => {
|
|
288
212
|
this.manageChange();
|
|
@@ -290,198 +214,129 @@ class LuzmoSwatchGroup extends SizedMixin(LuzmoElement, {
|
|
|
290
214
|
});
|
|
291
215
|
}
|
|
292
216
|
static get styles() {
|
|
293
|
-
return [
|
|
217
|
+
return [m(D)];
|
|
294
218
|
}
|
|
295
219
|
get selected() {
|
|
296
220
|
return this._selected;
|
|
297
221
|
}
|
|
298
|
-
set selected(
|
|
299
|
-
if (
|
|
222
|
+
set selected(e) {
|
|
223
|
+
if (e === this.selected)
|
|
300
224
|
return;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
this._selected = selected;
|
|
304
|
-
this.requestUpdate("selected", oldSelected);
|
|
225
|
+
const o = this.selected;
|
|
226
|
+
this._selected = e, this.requestUpdate("selected", o);
|
|
305
227
|
}
|
|
306
|
-
focus(
|
|
307
|
-
this.rovingTabindexController.focus(
|
|
228
|
+
focus(e) {
|
|
229
|
+
this.rovingTabindexController.focus(e);
|
|
308
230
|
}
|
|
309
|
-
handleChange(
|
|
310
|
-
|
|
311
|
-
const
|
|
231
|
+
handleChange(e) {
|
|
232
|
+
e.stopPropagation();
|
|
233
|
+
const o = this.selected;
|
|
312
234
|
if (!this.selects) {
|
|
313
|
-
|
|
235
|
+
e.preventDefault();
|
|
314
236
|
return;
|
|
315
237
|
}
|
|
316
238
|
if (this.selects === "single") {
|
|
317
|
-
const { target } =
|
|
318
|
-
|
|
319
|
-
target.selected = true;
|
|
320
|
-
if (this.selectedSet.has(target.value)) {
|
|
239
|
+
const { target: t } = e;
|
|
240
|
+
if (t.tabIndex = 0, t.selected = !0, this.selectedSet.has(t.value))
|
|
321
241
|
return;
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
this.selectedSet.add(target.value);
|
|
325
|
-
this.rovingTabindexController.elements.forEach((child) => {
|
|
326
|
-
if (child === target) {
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
child.selected = false;
|
|
242
|
+
this.selectedSet.clear(), this.selectedSet.add(t.value), this.rovingTabindexController.elements.forEach((s) => {
|
|
243
|
+
s !== t && (s.selected = !1);
|
|
330
244
|
});
|
|
331
245
|
} else if (this.selects === "multiple") {
|
|
332
|
-
const { target } =
|
|
333
|
-
|
|
334
|
-
this.selectedSet.add(target.value);
|
|
335
|
-
} else {
|
|
336
|
-
this.selectedSet.delete(target.value);
|
|
337
|
-
}
|
|
246
|
+
const { target: t } = e;
|
|
247
|
+
t.selected ? this.selectedSet.add(t.value) : this.selectedSet.delete(t.value);
|
|
338
248
|
}
|
|
339
|
-
this._selected = [...this.selectedSet]
|
|
340
|
-
const applyDefault = this.dispatchEvent(
|
|
249
|
+
this._selected = [...this.selectedSet], this.dispatchEvent(
|
|
341
250
|
new Event("change", {
|
|
342
|
-
cancelable:
|
|
343
|
-
bubbles:
|
|
251
|
+
cancelable: !0,
|
|
252
|
+
bubbles: !0
|
|
344
253
|
})
|
|
345
|
-
);
|
|
346
|
-
if (!applyDefault) {
|
|
347
|
-
this._selected = oldSelected;
|
|
348
|
-
event.preventDefault();
|
|
349
|
-
}
|
|
254
|
+
) || (this._selected = o, e.preventDefault());
|
|
350
255
|
}
|
|
351
|
-
getPassthroughSwatchActions(
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
}
|
|
359
|
-
if (changes.has("rounding") && (this.rounding || changes.get("rounding") !== void 0)) {
|
|
360
|
-
targetValues.rounding = this.rounding;
|
|
361
|
-
}
|
|
362
|
-
if (changes.has("size") && (this.size !== "m" || changes.get("size") !== void 0)) {
|
|
363
|
-
targetValues.size = this.size;
|
|
364
|
-
}
|
|
365
|
-
if (changes.has("shape") && (this.shape || changes.get("shape") !== void 0)) {
|
|
366
|
-
targetValues.shape = this.shape;
|
|
367
|
-
}
|
|
368
|
-
const passThroughSwatchActions = [];
|
|
369
|
-
if (Object.keys(targetValues).length > 0) {
|
|
370
|
-
passThroughSwatchActions.push((swatch) => {
|
|
371
|
-
if ("border" in targetValues) {
|
|
372
|
-
swatch.border = targetValues.border;
|
|
373
|
-
}
|
|
374
|
-
if ("rounding" in targetValues) {
|
|
375
|
-
swatch.rounding = targetValues.rounding;
|
|
376
|
-
}
|
|
377
|
-
if ("shape" in targetValues) {
|
|
378
|
-
swatch.shape = targetValues.shape;
|
|
379
|
-
}
|
|
380
|
-
if ("size" in targetValues) {
|
|
381
|
-
swatch.size = targetValues.size;
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
return passThroughSwatchActions;
|
|
256
|
+
getPassthroughSwatchActions(e) {
|
|
257
|
+
const o = {};
|
|
258
|
+
e.has("selects") && (this.selects || e.get("selects") !== void 0) && (o.selects = this.selects), e.has("border") && (this.border || e.get("border") !== void 0) && (o.border = this.border), e.has("rounding") && (this.rounding || e.get("rounding") !== void 0) && (o.rounding = this.rounding), e.has("size") && (this.size !== "m" || e.get("size") !== void 0) && (o.size = this.size), e.has("shape") && (this.shape || e.get("shape") !== void 0) && (o.shape = this.shape);
|
|
259
|
+
const r = [];
|
|
260
|
+
return Object.keys(o).length > 0 && r.push((t) => {
|
|
261
|
+
"border" in o && (t.border = o.border), "rounding" in o && (t.rounding = o.rounding), "shape" in o && (t.shape = o.shape), "size" in o && (t.size = o.size);
|
|
262
|
+
}), r;
|
|
386
263
|
}
|
|
387
|
-
getSelectionSwatchActions(
|
|
388
|
-
const
|
|
389
|
-
if (!
|
|
390
|
-
return
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
this.
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
);
|
|
397
|
-
} else {
|
|
398
|
-
this.removeAttribute("role");
|
|
399
|
-
}
|
|
400
|
-
const swatchRoles = {
|
|
264
|
+
getSelectionSwatchActions(e) {
|
|
265
|
+
const o = [];
|
|
266
|
+
if (!e.has("selects"))
|
|
267
|
+
return o;
|
|
268
|
+
this.selects ? this.setAttribute(
|
|
269
|
+
"role",
|
|
270
|
+
this.selects === "single" ? "radiogroup" : "group"
|
|
271
|
+
) : this.removeAttribute("role");
|
|
272
|
+
const r = {
|
|
401
273
|
single: "radio",
|
|
402
274
|
multiple: "checkbox"
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
});
|
|
408
|
-
return selectionSwatchActions;
|
|
275
|
+
}, t = this.selects ? r[this.selects] : "button";
|
|
276
|
+
return o.push((s) => {
|
|
277
|
+
s.setAttribute("role", t);
|
|
278
|
+
}), o;
|
|
409
279
|
}
|
|
410
280
|
render() {
|
|
411
|
-
return
|
|
281
|
+
return u`
|
|
412
282
|
<slot
|
|
413
283
|
@change=${this.handleChange}
|
|
414
284
|
@slotchange=${this.manageChange}
|
|
415
285
|
></slot>
|
|
416
286
|
`;
|
|
417
287
|
}
|
|
418
|
-
willUpdate(
|
|
419
|
-
const
|
|
420
|
-
...this.getPassthroughSwatchActions(
|
|
421
|
-
...this.getSelectionSwatchActions(
|
|
288
|
+
willUpdate(e) {
|
|
289
|
+
const o = [
|
|
290
|
+
...this.getPassthroughSwatchActions(e),
|
|
291
|
+
...this.getSelectionSwatchActions(e)
|
|
422
292
|
];
|
|
423
|
-
let
|
|
424
|
-
const
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
nextSelected = new Set(this.selected);
|
|
433
|
-
this.swatches.forEach((swatch) => {
|
|
434
|
-
swatchActions.forEach((action) => {
|
|
435
|
-
action(swatch);
|
|
293
|
+
let r = new Set(this.selected);
|
|
294
|
+
const t = /* @__PURE__ */ new Set();
|
|
295
|
+
e.has("selected") && o.push((i) => {
|
|
296
|
+
t.add(i.value), i.selected = !!(r.has(i.value) || !this.hasUpdated && i.selected);
|
|
297
|
+
});
|
|
298
|
+
const s = () => {
|
|
299
|
+
r = new Set(this.selected), this.swatches.forEach((i) => {
|
|
300
|
+
o.forEach((f) => {
|
|
301
|
+
f(i);
|
|
436
302
|
});
|
|
437
|
-
})
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
(selectedValue) => currentValues.has(selectedValue)
|
|
441
|
-
);
|
|
442
|
-
}
|
|
303
|
+
}), e.has("selected") && (this._selected = [...r.values()].filter(
|
|
304
|
+
(i) => t.has(i)
|
|
305
|
+
));
|
|
443
306
|
};
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
},
|
|
452
|
-
{ once: true }
|
|
453
|
-
);
|
|
454
|
-
}
|
|
307
|
+
this.hasUpdated ? s() : this.renderRoot.addEventListener(
|
|
308
|
+
"slotchange",
|
|
309
|
+
() => {
|
|
310
|
+
requestAnimationFrame(s);
|
|
311
|
+
},
|
|
312
|
+
{ once: !0 }
|
|
313
|
+
);
|
|
455
314
|
}
|
|
456
315
|
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
],
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
],
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
],
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
],
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
],
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
],
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
],
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}
|
|
481
|
-
if (!customElements.get("luzmo-swatch-group")) {
|
|
482
|
-
customElements.define("luzmo-swatch-group", LuzmoSwatchGroup);
|
|
483
|
-
}
|
|
316
|
+
h([
|
|
317
|
+
l({ reflect: !0 })
|
|
318
|
+
], d.prototype, "border", 2);
|
|
319
|
+
h([
|
|
320
|
+
l({ reflect: !0 })
|
|
321
|
+
], d.prototype, "density", 2);
|
|
322
|
+
h([
|
|
323
|
+
l({ reflect: !0 })
|
|
324
|
+
], d.prototype, "rounding", 2);
|
|
325
|
+
h([
|
|
326
|
+
l({ type: Array })
|
|
327
|
+
], d.prototype, "selected", 1);
|
|
328
|
+
h([
|
|
329
|
+
l()
|
|
330
|
+
], d.prototype, "selects", 2);
|
|
331
|
+
h([
|
|
332
|
+
l({ reflect: !0 })
|
|
333
|
+
], d.prototype, "shape", 2);
|
|
334
|
+
h([
|
|
335
|
+
S({ flatten: !0 })
|
|
336
|
+
], d.prototype, "swatches", 2);
|
|
337
|
+
customElements.get("luzmo-swatch") || customElements.define("luzmo-swatch", a);
|
|
338
|
+
customElements.get("luzmo-swatch-group") || customElements.define("luzmo-swatch-group", d);
|
|
484
339
|
export {
|
|
485
|
-
LuzmoSwatch,
|
|
486
|
-
LuzmoSwatchGroup
|
|
340
|
+
a as LuzmoSwatch,
|
|
341
|
+
d as LuzmoSwatchGroup
|
|
487
342
|
};
|