@luzmo/lucero 1.0.1-alpha.14 → 1.0.1-alpha.16
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/accordion/index.cjs +183 -6
- package/components/accordion/index.js +136 -88
- package/components/action-bar/index.cjs +85 -4
- package/components/action-bar/index.js +72 -50
- package/components/action-button/index.cjs +205 -3
- package/components/action-button/index.js +167 -93
- package/components/action-group/index.cjs +7 -1
- package/components/action-group/index.js +12 -8
- package/components/action-group-DHp8RHDf.js +392 -0
- package/components/action-group-MPf19RPV.cjs +391 -0
- package/components/action-menu/index.cjs +91 -11
- package/components/action-menu/index.js +66 -47
- package/components/avatar/index.cjs +63 -3
- package/components/avatar/index.js +54 -42
- package/components/base-COw9n7UR.cjs +119 -0
- package/components/base-DmeVy0cq.js +120 -0
- package/components/button/index.cjs +134 -2
- package/components/button/index.js +106 -72
- package/components/button-base-7Ak55xFd.cjs +206 -0
- package/components/button-base-C3kf6BTK.js +207 -0
- package/components/button-group/index.cjs +45 -1
- package/components/button-group/index.js +37 -25
- package/components/calendar/index.cjs +632 -1
- package/components/calendar/index.js +637 -7
- package/components/checkbox/index.cjs +111 -4
- package/components/checkbox/index.js +98 -53
- package/components/checkbox-mixin-8cL-vfDy.js +84 -0
- package/components/checkbox-mixin-CE7dJj3J.cjs +83 -0
- package/components/clear-button-Co6oKSgl.js +59 -0
- package/components/clear-button-X_HDY2eH.cjs +58 -0
- package/components/close-button-DPBK6Kpu.cjs +59 -0
- package/components/close-button-Miw9ZjoJ.js +60 -0
- package/components/color-area/index.cjs +440 -13
- package/components/color-area/index.js +322 -187
- package/components/color-controller-BjDZaxhX.js +491 -0
- package/components/color-controller-C3c_vb2P.cjs +490 -0
- package/components/color-field/index.cjs +95 -2
- package/components/color-field/index.js +77 -41
- package/components/color-handle/index.cjs +64 -3
- package/components/color-handle/index.js +58 -37
- package/components/color-loupe/index.cjs +7 -1
- package/components/color-loupe/index.js +12 -8
- package/components/color-loupe-BQqNR8YD.cjs +88 -0
- package/components/color-loupe-B_DDFv8l.js +89 -0
- package/components/color-menu/index.cjs +217 -12
- package/components/color-menu/index.js +187 -93
- package/components/color-palette/index.cjs +89 -1
- package/components/color-palette/index.js +78 -51
- package/components/color-palette-group/index.cjs +259 -3
- package/components/color-palette-group/index.js +193 -105
- package/components/color-picker/index.cjs +114 -6
- package/components/color-picker/index.js +92 -72
- package/components/color-slider/index.cjs +585 -1
- package/components/color-slider/index.js +590 -7
- package/components/{directive-oAbCiebi.js → condition-attribute-with-id-Cn815e9W.js} +22 -22
- package/components/condition-attribute-with-id-DEc2Yjne.cjs +43 -0
- package/components/date-time-picker/index.cjs +1357 -31
- package/components/date-time-picker/index.js +951 -637
- package/components/dependency-manger-CcIE1uvQ.cjs +63 -0
- package/components/{dependency-manger-CEXvGQUV.js → dependency-manger-XHpQjFgK.js} +24 -14
- package/components/divider/index.cjs +54 -1
- package/components/divider/index.js +49 -30
- package/components/divider.module-Cm5LcDRV.cjs +20 -0
- package/components/divider.module-DauH6k2_.js +21 -0
- package/components/element-resolution-DCsrhGZO.cjs +112 -0
- package/components/element-resolution-nMlmW4Jy.js +113 -0
- package/components/field-group/index.cjs +7 -1
- package/components/field-group/index.js +12 -8
- package/components/field-group-DNmY8W9v.cjs +86 -0
- package/components/field-group-DVdAWCQF.js +87 -0
- package/components/field-label/index.cjs +7 -1
- package/components/field-label/index.js +12 -8
- package/components/field-label-CKH9EXpR.cjs +156 -0
- package/components/field-label-Dpsecoc6.js +157 -0
- package/components/focus-group-BqDAk9Is.js +337 -0
- package/components/focus-group-DFzOlalL.cjs +336 -0
- package/components/focus-visible-B-B8-P9R.cjs +104 -0
- package/components/focus-visible-BUPRWlsh.js +105 -0
- package/components/focusable-BPrTcZPd.cjs +262 -0
- package/components/focusable-ChCLg1k4.js +263 -0
- package/components/{directive-C7oCP5Bh.cjs → focusable-selectors-D0t_5P7C.cjs} +16 -5
- package/components/{focusable-selectors-B4YgbghQ.js → focusable-selectors-IltOAOd9.js} +7 -4
- package/components/icon/index.cjs +90 -1
- package/components/icon/index.js +74 -46
- package/components/index.cjs +174 -1
- package/components/index.js +174 -172
- package/components/infield-button/index.cjs +46 -2
- package/components/infield-button/index.js +41 -30
- package/components/label/index.cjs +37 -1
- package/components/label/index.js +36 -24
- package/components/{language-resolution-8yZa5r_P.js → language-resolution-BSGJAWiQ.js} +21 -16
- package/components/language-resolution-iN9EImbb.cjs +57 -0
- package/components/like-anchor-D62faRNG.cjs +79 -0
- package/components/like-anchor-v3cJ9RWM.js +80 -0
- package/components/manage-help-text-BYx84zZR.cjs +125 -0
- package/components/manage-help-text-DOuMTGht.js +126 -0
- package/components/menu/index.cjs +1297 -29
- package/components/menu/index.js +954 -499
- package/components/multi-language-field/index.cjs +132 -2
- package/components/multi-language-field/index.js +118 -88
- package/components/number-field/index.cjs +613 -10
- package/components/number-field/index.js +442 -243
- package/components/observe-slot-presence-9AwLGUQ_.cjs +78 -0
- package/components/observe-slot-presence-DcMdoumP.js +79 -0
- package/components/observe-slot-text-CSofZeeF.cjs +104 -0
- package/components/observe-slot-text-CjnkkBPn.js +105 -0
- package/components/options/index.cjs +693 -60
- package/components/options/index.js +519 -953
- package/components/overlay/index.cjs +367 -21
- package/components/overlay/index.js +273 -189
- package/components/overlay-CN8ISP1F.js +2485 -0
- package/components/overlay-LViy9VWM.cjs +2484 -0
- package/components/{pending-state-DTX7ggyF.js → pending-state-CXbe-Xul.js} +28 -13
- package/components/pending-state-e4RbXe9u.cjs +75 -0
- package/components/picker/index.cjs +9 -1
- package/components/picker/index.js +15 -11
- package/components/picker-DNde3awt.cjs +672 -0
- package/components/picker-PfUAF05y.js +673 -0
- package/components/picker-button/index.cjs +56 -4
- package/components/picker-button/index.js +45 -34
- package/components/platform-CxDar3Dn.cjs +68 -0
- package/components/platform-Cxn0WbyT.js +69 -0
- package/components/popover/index.cjs +7 -1
- package/components/popover/index.js +12 -8
- package/components/popover-BkbYhl3i.js +74 -0
- package/components/popover-BkgUf0kL.cjs +74 -0
- package/components/progress-circle/index.cjs +7 -1
- package/components/progress-circle/index.js +12 -8
- package/components/progress-circle-Hu_ivPHf.js +133 -0
- package/components/progress-circle-_Etqsj9f.cjs +132 -0
- package/components/radio/index.cjs +244 -2
- package/components/radio/index.js +192 -110
- package/components/{when-CDK1Tt5Y.js → random-id-BE6HA503.cjs} +7 -10
- package/components/{random-id-ByCz1xaq.js → random-id-BEc6QIUL.js} +3 -3
- package/components/roving-tabindex-AsmAh2In.cjs +95 -0
- package/components/roving-tabindex-DPF9NmrH.js +96 -0
- package/components/search/index.cjs +115 -8
- package/components/search/index.js +96 -66
- package/components/select/index.cjs +720 -51
- package/components/select/index.js +563 -347
- package/components/sized-mixin-DmkrNdWB.js +80 -0
- package/components/sized-mixin-UaTVa-AE.cjs +79 -0
- package/components/slider/index.cjs +119 -1
- package/components/slider/index.js +100 -1113
- package/components/{condition-attribute-with-id-Dv4lSRbe.js → slottable-request-event-CANixJnR.cjs} +15 -13
- package/components/{slottable-request-event-DggLA4Rx.js → slottable-request-event-D9WzrdWv.js} +12 -9
- package/components/strategies-DlMlaSJR.cjs +317 -0
- package/components/strategies-DlPQoTFE.js +318 -0
- package/components/streaming-listener-D4sHaMub.cjs +145 -0
- package/components/streaming-listener-cAz5zJyk.js +146 -0
- package/components/swatch/index.cjs +436 -7
- package/components/swatch/index.js +350 -205
- package/components/switch/index.cjs +61 -2
- package/components/switch/index.js +51 -34
- package/components/tabs/index.cjs +693 -26
- package/components/tabs/index.js +521 -388
- package/components/tags/index.cjs +201 -4
- package/components/tags/index.js +152 -87
- package/components/text-field/index.cjs +49 -3
- package/components/text-field/index.js +44 -30
- package/components/text-field-11tcnftU.cjs +338 -0
- package/components/text-field-Chi9J2Cz.js +339 -0
- package/components/text-field.module-CMBS0jSL.js +21 -0
- package/components/text-field.module-DIJdV_sA.cjs +20 -0
- package/components/toast/index.cjs +177 -12
- package/components/toast/index.js +145 -73
- package/components/tooltip/index.cjs +221 -6
- package/components/tooltip/index.js +156 -109
- package/components/unit-input/index.cjs +232 -8
- package/components/unit-input/index.js +201 -108
- package/components/utils.cjs +25 -1
- package/components/utils.js +22 -22
- package/package.json +1 -1
- package/components/NumberFormatter-DewVDY5w.cjs +0 -18
- package/components/NumberFormatter-DgOUVrge.js +0 -136
- package/components/NumberParser-Dik4a0h-.cjs +0 -18
- package/components/NumberParser-ci9J5EKv.js +0 -173
- package/components/action-group-DBImibFn.js +0 -258
- package/components/action-group-DJGMcRHb.cjs +0 -20
- package/components/async-directive-BX1T1e1_.cjs +0 -22
- package/components/async-directive-BfcqVjDp.js +0 -82
- package/components/base-BjTwmyRF.cjs +0 -22
- package/components/base-CBCg3yyw.cjs +0 -40
- package/components/base-D76d76ww.js +0 -26
- package/components/base-WsynuqaS.js +0 -677
- package/components/button-base-DbkDzb71.js +0 -144
- package/components/button-base-XgPLmwP-.cjs +0 -25
- package/components/checkbox-mixin-BDN0dBtS.cjs +0 -27
- package/components/checkbox-mixin-Do7EgtpQ.js +0 -70
- package/components/class-map-Di1D_rCm.cjs +0 -22
- package/components/class-map-NbVXqBU0.js +0 -51
- package/components/clear-button-DQcRdcUa.js +0 -53
- package/components/clear-button-OFUFFe7G.cjs +0 -18
- package/components/close-button-Cbnb7XXj.cjs +0 -18
- package/components/close-button-CqHYZhum.js +0 -51
- package/components/color-controller-B0uX6Zso.js +0 -3230
- package/components/color-controller-CoUL5f9K.cjs +0 -18
- package/components/color-loupe-CaA_Lfkk.cjs +0 -56
- package/components/color-loupe-CmMsXbjT.js +0 -81
- package/components/condition-attribute-with-id-DrQYZzFS.cjs +0 -18
- package/components/dependency-manger-C5HCkMMB.cjs +0 -18
- package/components/directive-helpers-Cm6gitnu.js +0 -62
- package/components/directive-helpers-DyIRTWwA.cjs +0 -22
- package/components/divider.module-DDvBo9zo.cjs +0 -18
- package/components/divider.module-DoQWQEIJ.js +0 -21
- package/components/element-resolution-BvRLGqIU.cjs +0 -18
- package/components/element-resolution-FCUT-wql.js +0 -91
- package/components/field-group-DXfBWrkO.js +0 -66
- package/components/field-group-DkGst3r5.cjs +0 -23
- package/components/field-label-CZ2zzChK.js +0 -106
- package/components/field-label-mO1AkUgR.cjs +0 -25
- package/components/flow-D-0MTYCm.js +0 -527
- package/components/flow-DM3dNAKs.cjs +0 -30
- package/components/focus-group-DHeTq18L.js +0 -218
- package/components/focus-group-DnxZUBhQ.cjs +0 -18
- package/components/focus-visible-B0P9aY_G.cjs +0 -18
- package/components/focus-visible-DBlJGoEW.js +0 -74
- package/components/focusable-BxtpnzWp.js +0 -153
- package/components/focusable-EbipgXRh.cjs +0 -18
- package/components/focusable-selectors-BgFlyFcY.cjs +0 -18
- package/components/if-defined-C9YGdo33.cjs +0 -22
- package/components/if-defined-DOaE2coe.js +0 -27
- package/components/index-BwxgAdzi.cjs +0 -57
- package/components/index-Cl54m8Yh.js +0 -1490
- package/components/index-HjQa8tew.js +0 -1174
- package/components/index-Wq3qZJGh.cjs +0 -113
- package/components/language-resolution-DJzmyzZq.cjs +0 -18
- package/components/like-anchor-Bvn_vLQ8.js +0 -69
- package/components/like-anchor-sod1C1fR.cjs +0 -32
- package/components/luzmo-icons-4nDFv1Lq.js +0 -229
- package/components/luzmo-icons-D4IvHgVd.cjs +0 -29
- package/components/manage-help-text-DhgARkZX.cjs +0 -30
- package/components/manage-help-text-syYnjKGL.js +0 -92
- package/components/mutation-controller-DH7YOCyj.js +0 -52
- package/components/mutation-controller-DkOMCW-c.cjs +0 -22
- package/components/observe-slot-presence-CmVi0zTc.js +0 -68
- package/components/observe-slot-presence-bc9chhsi.cjs +0 -18
- package/components/observe-slot-text-BPfIQQtz.js +0 -87
- package/components/observe-slot-text-Ceb7SvYT.cjs +0 -18
- package/components/overlay-Cig9r6uU.js +0 -2747
- package/components/overlay-KSKMzzkh.cjs +0 -47
- package/components/pending-state-CaH1si5b.cjs +0 -26
- package/components/picker-BfBP7XJN.js +0 -461
- package/components/picker-xIphqE6d.cjs +0 -123
- package/components/platform-BM-uMWpX.js +0 -69
- package/components/platform-BiXhwqk3.cjs +0 -18
- package/components/popover-DjX0aAnY.js +0 -67
- package/components/popover-KFfO0IYL.cjs +0 -30
- package/components/progress-circle-BvRJNuNo.cjs +0 -33
- package/components/progress-circle-DXH9z8-6.js +0 -97
- package/components/query-BL-TJj7K.cjs +0 -22
- package/components/query-D_KR_GUc.js +0 -51
- package/components/query-assigned-elements-DjfhL1cl.js +0 -36
- package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
- package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
- package/components/query-assigned-nodes-C76XVPWY.js +0 -36
- package/components/random-id-CqvckpWe.cjs +0 -18
- package/components/roving-tabindex-By_fCy_e.cjs +0 -18
- package/components/roving-tabindex-DOg4z6ZU.js +0 -66
- package/components/sized-mixin-CPxE5C96.cjs +0 -18
- package/components/sized-mixin-D4ACoVUr.js +0 -63
- package/components/slottable-request-event-BfUUt1Mh.cjs +0 -18
- package/components/state-D8JEtYqe.cjs +0 -22
- package/components/state-Deh-vKYE.js +0 -29
- package/components/strategies-9indNIEb.js +0 -195
- package/components/strategies-BACP6MhR.cjs +0 -18
- package/components/streaming-listener-B00MvALi.cjs +0 -18
- package/components/streaming-listener-CP-JE6Fa.js +0 -91
- package/components/style-map-CeilmSgs.cjs +0 -22
- package/components/style-map-IgqIKvlE.js +0 -53
- package/components/text-field-CeG75PPO.cjs +0 -85
- package/components/text-field-DCl-AFM-.js +0 -314
- package/components/text-field.module-C2KVUJcX.js +0 -21
- package/components/text-field.module-DXhFA9G-.cjs +0 -18
- package/components/when-CDZyJPvd.cjs +0 -22
|
@@ -15,7 +15,43 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
"use strict";
|
|
18
|
+
"use strict";
|
|
19
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
20
|
+
const icons = require("@luzmo/icons");
|
|
21
|
+
const lit = require("lit");
|
|
22
|
+
const decorators_js = require("lit/decorators.js");
|
|
23
|
+
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
24
|
+
const when_js = require("lit/directives/when.js");
|
|
25
|
+
const focusable = require("../focusable-BPrTcZPd.cjs");
|
|
26
|
+
const sizedMixin = require("../sized-mixin-UaTVa-AE.cjs");
|
|
27
|
+
const mutationController_js = require("@lit-labs/observers/mutation-controller.js");
|
|
28
|
+
const base = require("../base-COw9n7UR.cjs");
|
|
29
|
+
const rovingTabindex = require("../roving-tabindex-AsmAh2In.cjs");
|
|
30
|
+
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)}';
|
|
31
|
+
var __defProp$1 = Object.defineProperty;
|
|
32
|
+
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
33
|
+
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
34
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
35
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
36
|
+
if (decorator = decorators[i])
|
|
37
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
38
|
+
if (kind && result) __defProp$1(target, key, result);
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
class LuzmoSwatch extends sizedMixin.SizedMixin(focusable.Focusable, {
|
|
42
|
+
validSizes: ["xxs", "xs", "s", "m", "l", "xl"],
|
|
43
|
+
noDefaultSize: true
|
|
44
|
+
}) {
|
|
45
|
+
constructor() {
|
|
46
|
+
super(...arguments);
|
|
47
|
+
this.color = "";
|
|
48
|
+
this.label = "";
|
|
49
|
+
this.mixedValue = false;
|
|
50
|
+
this.nothing = false;
|
|
51
|
+
this.role = "button";
|
|
52
|
+
this.selected = false;
|
|
53
|
+
this.readonly = false;
|
|
54
|
+
this.renderDisabled = () => lit.html`
|
|
19
55
|
<svg
|
|
20
56
|
xmlns="http://www.w3.org/2000/svg"
|
|
21
57
|
class="disabled-icon"
|
|
@@ -32,18 +68,411 @@
|
|
|
32
68
|
fill="var(--swatch-disabled-icon-stroke-color)"
|
|
33
69
|
/>
|
|
34
70
|
</svg>
|
|
35
|
-
|
|
71
|
+
`;
|
|
72
|
+
this.renderMixedValue = () => icons.luzmoIcon(icons.luzmoDash);
|
|
73
|
+
}
|
|
74
|
+
static get styles() {
|
|
75
|
+
return [lit.unsafeCSS(styles$1)];
|
|
76
|
+
}
|
|
77
|
+
get value() {
|
|
78
|
+
return this._value || this.color || this.label;
|
|
79
|
+
}
|
|
80
|
+
set value(value) {
|
|
81
|
+
if (value === this._value) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const oldValue = this.value;
|
|
85
|
+
this._value = value;
|
|
86
|
+
this.requestUpdate("value", oldValue);
|
|
87
|
+
}
|
|
88
|
+
get focusElement() {
|
|
89
|
+
return this;
|
|
90
|
+
}
|
|
91
|
+
toggle(force) {
|
|
92
|
+
if (!this.readonly) {
|
|
93
|
+
this.selected = force ?? !this.selected;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
handleClick() {
|
|
97
|
+
if (this.disabled || this.mixedValue) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
this.toggle();
|
|
101
|
+
const applyDefault = this.dispatchEvent(
|
|
102
|
+
new Event("change", {
|
|
103
|
+
cancelable: true,
|
|
104
|
+
bubbles: true
|
|
105
|
+
})
|
|
106
|
+
);
|
|
107
|
+
if (!applyDefault) {
|
|
108
|
+
this.toggle();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
handleKeydown(event) {
|
|
112
|
+
const { code } = event;
|
|
113
|
+
switch (code) {
|
|
114
|
+
case "Space": {
|
|
115
|
+
event.preventDefault();
|
|
116
|
+
this.addEventListener("keyup", this.handleKeyup);
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
handleKeypress(event) {
|
|
122
|
+
const { code } = event;
|
|
123
|
+
switch (code) {
|
|
124
|
+
case "Enter":
|
|
125
|
+
case "NumpadEnter": {
|
|
126
|
+
this.click();
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
handleKeyup(event) {
|
|
132
|
+
const { code } = event;
|
|
133
|
+
switch (code) {
|
|
134
|
+
case "Space": {
|
|
135
|
+
this.removeEventListener("keyup", this.handleKeyup);
|
|
136
|
+
this.click();
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
render() {
|
|
142
|
+
return lit.html`
|
|
36
143
|
<div
|
|
37
144
|
class="opacity-checkerboard fill"
|
|
38
|
-
style=${
|
|
145
|
+
style=${ifDefined_js.ifDefined(
|
|
146
|
+
this.color ? `--picked-color: ${this.color}` : void 0
|
|
147
|
+
)}
|
|
39
148
|
>
|
|
40
149
|
<slot name="image"></slot>
|
|
41
|
-
${
|
|
42
|
-
${
|
|
150
|
+
${when_js.when(this.disabled, this.renderDisabled)}
|
|
151
|
+
${when_js.when(this.mixedValue, this.renderMixedValue)}
|
|
43
152
|
</div>
|
|
44
|
-
|
|
153
|
+
`;
|
|
154
|
+
}
|
|
155
|
+
willUpdate(changes) {
|
|
156
|
+
var _a;
|
|
157
|
+
if (!this.getAttribute("role")) {
|
|
158
|
+
this.setAttribute("role", "button");
|
|
159
|
+
}
|
|
160
|
+
if ((changes.has("selected") || changes.has("role")) && !this.readonly) {
|
|
161
|
+
const selectedAttribute = this.role === "button" ? "aria-pressed" : "aria-checked";
|
|
162
|
+
const removedSelectedAttribute = this.role === "button" ? "aria-checked" : "aria-pressed";
|
|
163
|
+
if (changes.has("role")) {
|
|
164
|
+
this.removeAttribute(removedSelectedAttribute);
|
|
165
|
+
}
|
|
166
|
+
this.setAttribute(selectedAttribute, this.selected ? "true" : "false");
|
|
167
|
+
}
|
|
168
|
+
if (changes.has("label") || changes.has("color") || changes.has("mixedValue")) {
|
|
169
|
+
if (this.label !== this.color && ((_a = this.label) == null ? void 0 : _a.length)) {
|
|
170
|
+
this.setAttribute("aria-label", this.label);
|
|
171
|
+
} else if (this.color) {
|
|
172
|
+
this.setAttribute("aria-label", this.color);
|
|
173
|
+
} else if (this.mixedValue) {
|
|
174
|
+
this.setAttribute("aria-label", "Mixed");
|
|
175
|
+
} else {
|
|
176
|
+
this.removeAttribute("aria-label");
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
firstUpdated(changes) {
|
|
181
|
+
super.firstUpdated(changes);
|
|
182
|
+
this.addEventListener("click", this.handleClick);
|
|
183
|
+
this.addEventListener("keydown", this.handleKeydown);
|
|
184
|
+
this.addEventListener("keypress", this.handleKeypress);
|
|
185
|
+
if (!this.hasAttribute("tabindex")) {
|
|
186
|
+
this.setAttribute("tabindex", "0");
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
__decorateClass$1([
|
|
191
|
+
decorators_js.property({ reflect: true })
|
|
192
|
+
], LuzmoSwatch.prototype, "border", 2);
|
|
193
|
+
__decorateClass$1([
|
|
194
|
+
decorators_js.property()
|
|
195
|
+
], LuzmoSwatch.prototype, "color", 2);
|
|
196
|
+
__decorateClass$1([
|
|
197
|
+
decorators_js.property()
|
|
198
|
+
], LuzmoSwatch.prototype, "label", 2);
|
|
199
|
+
__decorateClass$1([
|
|
200
|
+
decorators_js.property({ type: Boolean, reflect: true, attribute: "mixed-value" })
|
|
201
|
+
], LuzmoSwatch.prototype, "mixedValue", 2);
|
|
202
|
+
__decorateClass$1([
|
|
203
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
204
|
+
], LuzmoSwatch.prototype, "nothing", 2);
|
|
205
|
+
__decorateClass$1([
|
|
206
|
+
decorators_js.property({ reflect: true })
|
|
207
|
+
], LuzmoSwatch.prototype, "role", 2);
|
|
208
|
+
__decorateClass$1([
|
|
209
|
+
decorators_js.property({ reflect: true })
|
|
210
|
+
], LuzmoSwatch.prototype, "rounding", 2);
|
|
211
|
+
__decorateClass$1([
|
|
212
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
213
|
+
], LuzmoSwatch.prototype, "selected", 2);
|
|
214
|
+
__decorateClass$1([
|
|
215
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
216
|
+
], LuzmoSwatch.prototype, "readonly", 2);
|
|
217
|
+
__decorateClass$1([
|
|
218
|
+
decorators_js.property({ reflect: true })
|
|
219
|
+
], LuzmoSwatch.prototype, "shape", 2);
|
|
220
|
+
__decorateClass$1([
|
|
221
|
+
decorators_js.property()
|
|
222
|
+
], LuzmoSwatch.prototype, "value", 1);
|
|
223
|
+
const styles = ":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}";
|
|
224
|
+
var __defProp = Object.defineProperty;
|
|
225
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
226
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
227
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
228
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
229
|
+
if (decorator = decorators[i])
|
|
230
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
231
|
+
if (kind && result) __defProp(target, key, result);
|
|
232
|
+
return result;
|
|
233
|
+
};
|
|
234
|
+
class LuzmoSwatchGroup extends sizedMixin.SizedMixin(base.LuzmoElement, {
|
|
235
|
+
validSizes: ["xs", "s", "m", "l"],
|
|
236
|
+
noDefaultSize: true
|
|
237
|
+
}) {
|
|
238
|
+
constructor() {
|
|
239
|
+
super();
|
|
240
|
+
this._selected = [];
|
|
241
|
+
this.selectedSet = /* @__PURE__ */ new Set();
|
|
242
|
+
this.rovingTabindexController = new rovingTabindex.RovingTabindexController(this, {
|
|
243
|
+
focusInIndex: (elements) => {
|
|
244
|
+
let firstEnabledIndex = -1;
|
|
245
|
+
const firstSelectedIndex = elements.findIndex((el, index) => {
|
|
246
|
+
if (!elements[firstEnabledIndex] && !el.disabled) {
|
|
247
|
+
firstEnabledIndex = index;
|
|
248
|
+
}
|
|
249
|
+
return el.selected && !el.disabled;
|
|
250
|
+
});
|
|
251
|
+
return elements[firstSelectedIndex] ? firstSelectedIndex : firstEnabledIndex;
|
|
252
|
+
},
|
|
253
|
+
elements: () => this.swatches,
|
|
254
|
+
isFocusableElement: (el) => !el.disabled
|
|
255
|
+
});
|
|
256
|
+
this.manageChange = async () => {
|
|
257
|
+
const presentSet = /* @__PURE__ */ new Set();
|
|
258
|
+
this.selectedSet = new Set(this.selected);
|
|
259
|
+
await Promise.all(this.swatches.map((swatch) => swatch.updateComplete));
|
|
260
|
+
this.swatches.forEach((swatch) => {
|
|
261
|
+
presentSet.add(swatch.value);
|
|
262
|
+
if (swatch.selected) {
|
|
263
|
+
this.selectedSet.add(swatch.value);
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
this.selectedSet.forEach((value) => {
|
|
267
|
+
if (!presentSet.has(value)) {
|
|
268
|
+
this.selectedSet.delete(value);
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
this._selected = [...this.selectedSet];
|
|
272
|
+
this.rovingTabindexController.clearElementCache();
|
|
273
|
+
};
|
|
274
|
+
new mutationController_js.MutationController(this, {
|
|
275
|
+
config: {
|
|
276
|
+
attributes: true,
|
|
277
|
+
childList: true,
|
|
278
|
+
subtree: true
|
|
279
|
+
},
|
|
280
|
+
callback: () => {
|
|
281
|
+
this.manageChange();
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
static get styles() {
|
|
286
|
+
return [lit.unsafeCSS(styles)];
|
|
287
|
+
}
|
|
288
|
+
get selected() {
|
|
289
|
+
return this._selected;
|
|
290
|
+
}
|
|
291
|
+
set selected(selected) {
|
|
292
|
+
if (selected === this.selected) {
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
const oldSelected = this.selected;
|
|
296
|
+
this._selected = selected;
|
|
297
|
+
this.requestUpdate("selected", oldSelected);
|
|
298
|
+
}
|
|
299
|
+
focus(options) {
|
|
300
|
+
this.rovingTabindexController.focus(options);
|
|
301
|
+
}
|
|
302
|
+
handleChange(event) {
|
|
303
|
+
event.stopPropagation();
|
|
304
|
+
const oldSelected = this.selected;
|
|
305
|
+
if (!this.selects) {
|
|
306
|
+
event.preventDefault();
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
if (this.selects === "single") {
|
|
310
|
+
const { target } = event;
|
|
311
|
+
target.tabIndex = 0;
|
|
312
|
+
target.selected = true;
|
|
313
|
+
if (this.selectedSet.has(target.value)) {
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
this.selectedSet.clear();
|
|
317
|
+
this.selectedSet.add(target.value);
|
|
318
|
+
this.rovingTabindexController.elements.forEach((child) => {
|
|
319
|
+
if (child === target) {
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
child.selected = false;
|
|
323
|
+
});
|
|
324
|
+
} else if (this.selects === "multiple") {
|
|
325
|
+
const { target } = event;
|
|
326
|
+
if (target.selected) {
|
|
327
|
+
this.selectedSet.add(target.value);
|
|
328
|
+
} else {
|
|
329
|
+
this.selectedSet.delete(target.value);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
this._selected = [...this.selectedSet];
|
|
333
|
+
const applyDefault = this.dispatchEvent(
|
|
334
|
+
new Event("change", {
|
|
335
|
+
cancelable: true,
|
|
336
|
+
bubbles: true
|
|
337
|
+
})
|
|
338
|
+
);
|
|
339
|
+
if (!applyDefault) {
|
|
340
|
+
this._selected = oldSelected;
|
|
341
|
+
event.preventDefault();
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
getPassthroughSwatchActions(changes) {
|
|
345
|
+
const targetValues = {};
|
|
346
|
+
if (changes.has("selects") && (this.selects || changes.get("selects") !== void 0)) {
|
|
347
|
+
targetValues.selects = this.selects;
|
|
348
|
+
}
|
|
349
|
+
if (changes.has("border") && (this.border || changes.get("border") !== void 0)) {
|
|
350
|
+
targetValues.border = this.border;
|
|
351
|
+
}
|
|
352
|
+
if (changes.has("rounding") && (this.rounding || changes.get("rounding") !== void 0)) {
|
|
353
|
+
targetValues.rounding = this.rounding;
|
|
354
|
+
}
|
|
355
|
+
if (changes.has("size") && (this.size !== "m" || changes.get("size") !== void 0)) {
|
|
356
|
+
targetValues.size = this.size;
|
|
357
|
+
}
|
|
358
|
+
if (changes.has("shape") && (this.shape || changes.get("shape") !== void 0)) {
|
|
359
|
+
targetValues.shape = this.shape;
|
|
360
|
+
}
|
|
361
|
+
const passThroughSwatchActions = [];
|
|
362
|
+
if (Object.keys(targetValues).length > 0) {
|
|
363
|
+
passThroughSwatchActions.push((swatch) => {
|
|
364
|
+
if ("border" in targetValues) {
|
|
365
|
+
swatch.border = targetValues.border;
|
|
366
|
+
}
|
|
367
|
+
if ("rounding" in targetValues) {
|
|
368
|
+
swatch.rounding = targetValues.rounding;
|
|
369
|
+
}
|
|
370
|
+
if ("shape" in targetValues) {
|
|
371
|
+
swatch.shape = targetValues.shape;
|
|
372
|
+
}
|
|
373
|
+
if ("size" in targetValues) {
|
|
374
|
+
swatch.size = targetValues.size;
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
return passThroughSwatchActions;
|
|
379
|
+
}
|
|
380
|
+
getSelectionSwatchActions(changes) {
|
|
381
|
+
const selectionSwatchActions = [];
|
|
382
|
+
if (!changes.has("selects")) {
|
|
383
|
+
return selectionSwatchActions;
|
|
384
|
+
}
|
|
385
|
+
if (this.selects) {
|
|
386
|
+
this.setAttribute(
|
|
387
|
+
"role",
|
|
388
|
+
this.selects === "single" ? "radiogroup" : "group"
|
|
389
|
+
);
|
|
390
|
+
} else {
|
|
391
|
+
this.removeAttribute("role");
|
|
392
|
+
}
|
|
393
|
+
const swatchRoles = {
|
|
394
|
+
single: "radio",
|
|
395
|
+
multiple: "checkbox"
|
|
396
|
+
};
|
|
397
|
+
const swatchRole = this.selects ? swatchRoles[this.selects] : "button";
|
|
398
|
+
selectionSwatchActions.push((swatch) => {
|
|
399
|
+
swatch.setAttribute("role", swatchRole);
|
|
400
|
+
});
|
|
401
|
+
return selectionSwatchActions;
|
|
402
|
+
}
|
|
403
|
+
render() {
|
|
404
|
+
return lit.html`
|
|
45
405
|
<slot
|
|
46
406
|
@change=${this.handleChange}
|
|
47
407
|
@slotchange=${this.manageChange}
|
|
48
408
|
></slot>
|
|
49
|
-
|
|
409
|
+
`;
|
|
410
|
+
}
|
|
411
|
+
willUpdate(changes) {
|
|
412
|
+
const swatchActions = [
|
|
413
|
+
...this.getPassthroughSwatchActions(changes),
|
|
414
|
+
...this.getSelectionSwatchActions(changes)
|
|
415
|
+
];
|
|
416
|
+
let nextSelected = new Set(this.selected);
|
|
417
|
+
const currentValues = /* @__PURE__ */ new Set();
|
|
418
|
+
if (changes.has("selected")) {
|
|
419
|
+
swatchActions.push((swatch) => {
|
|
420
|
+
currentValues.add(swatch.value);
|
|
421
|
+
swatch.selected = nextSelected.has(swatch.value) || !this.hasUpdated && swatch.selected ? true : false;
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
const doActions = () => {
|
|
425
|
+
nextSelected = new Set(this.selected);
|
|
426
|
+
this.swatches.forEach((swatch) => {
|
|
427
|
+
swatchActions.forEach((action) => {
|
|
428
|
+
action(swatch);
|
|
429
|
+
});
|
|
430
|
+
});
|
|
431
|
+
if (changes.has("selected")) {
|
|
432
|
+
this._selected = [...nextSelected.values()].filter(
|
|
433
|
+
(selectedValue) => currentValues.has(selectedValue)
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
if (this.hasUpdated) {
|
|
438
|
+
doActions();
|
|
439
|
+
} else {
|
|
440
|
+
this.renderRoot.addEventListener(
|
|
441
|
+
"slotchange",
|
|
442
|
+
() => {
|
|
443
|
+
requestAnimationFrame(doActions);
|
|
444
|
+
},
|
|
445
|
+
{ once: true }
|
|
446
|
+
);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
__decorateClass([
|
|
451
|
+
decorators_js.property({ reflect: true })
|
|
452
|
+
], LuzmoSwatchGroup.prototype, "border", 2);
|
|
453
|
+
__decorateClass([
|
|
454
|
+
decorators_js.property({ reflect: true })
|
|
455
|
+
], LuzmoSwatchGroup.prototype, "density", 2);
|
|
456
|
+
__decorateClass([
|
|
457
|
+
decorators_js.property({ reflect: true })
|
|
458
|
+
], LuzmoSwatchGroup.prototype, "rounding", 2);
|
|
459
|
+
__decorateClass([
|
|
460
|
+
decorators_js.property({ type: Array })
|
|
461
|
+
], LuzmoSwatchGroup.prototype, "selected", 1);
|
|
462
|
+
__decorateClass([
|
|
463
|
+
decorators_js.property()
|
|
464
|
+
], LuzmoSwatchGroup.prototype, "selects", 2);
|
|
465
|
+
__decorateClass([
|
|
466
|
+
decorators_js.property({ reflect: true })
|
|
467
|
+
], LuzmoSwatchGroup.prototype, "shape", 2);
|
|
468
|
+
__decorateClass([
|
|
469
|
+
decorators_js.queryAssignedElements({ flatten: true })
|
|
470
|
+
], LuzmoSwatchGroup.prototype, "swatches", 2);
|
|
471
|
+
if (!customElements.get("luzmo-swatch")) {
|
|
472
|
+
customElements.define("luzmo-swatch", LuzmoSwatch);
|
|
473
|
+
}
|
|
474
|
+
if (!customElements.get("luzmo-swatch-group")) {
|
|
475
|
+
customElements.define("luzmo-swatch-group", LuzmoSwatchGroup);
|
|
476
|
+
}
|
|
477
|
+
exports.LuzmoSwatch = LuzmoSwatch;
|
|
478
|
+
exports.LuzmoSwatchGroup = LuzmoSwatchGroup;
|