@luzmo/lucero 0.0.10 → 0.0.12
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 +5 -5
- package/components/accordion/index.js +9 -10
- package/components/action-bar/index.cjs +4 -4
- package/components/action-bar/index.js +10 -10
- package/components/action-button/index.cjs +2 -2
- package/components/action-button/index.js +4 -4
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -1
- package/components/action-group-B59CWNnT.cjs +20 -0
- package/components/{action-group-Bf28z235.js → action-group-DzT5e9uS.js} +8 -9
- package/components/action-menu/index.cjs +9 -9
- package/components/action-menu/index.js +8 -9
- package/components/avatar/index.cjs +3 -3
- package/components/avatar/index.js +6 -7
- package/components/base-CCsOyfm4.js +632 -0
- package/components/base-CaRKlVkL.cjs +36 -0
- package/components/button/index.cjs +2 -2
- package/components/button/index.js +7 -7
- package/components/{button-base-CDLQV7Vk.js → button-base-BUylwU1F.js} +5 -6
- package/components/button-base-D62oiPcu.cjs +25 -0
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +6 -6
- package/components/checkbox/index.cjs +4 -4
- package/components/checkbox/index.js +4 -4
- package/components/{checkbox-mixin-DXUIwtea.js → checkbox-mixin-CM4VUJxF.js} +9 -10
- package/components/{checkbox-mixin-DaXMsrtV.cjs → checkbox-mixin-CifGmiLR.cjs} +3 -3
- package/components/{clear-button-Dh2Mq0cc.js → clear-button-BmUyRVoz.js} +4 -4
- package/components/clear-button-Cc5-XUOJ.cjs +18 -0
- package/components/{close-button-BsYkXOVh.js → close-button-BekXo6bQ.js} +10 -10
- package/components/close-button-Bf8yzpLd.cjs +18 -0
- package/components/color-area/index.cjs +6 -6
- package/components/color-area/index.js +10 -11
- package/components/color-field/index.cjs +2 -2
- package/components/color-field/index.js +3 -3
- package/components/color-handle/index.cjs +2 -2
- package/components/color-handle/index.js +6 -6
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -1
- package/components/color-loupe-CLzp2MiI.cjs +56 -0
- package/components/{color-loupe-BCfIVFkB.js → color-loupe-DiegGLZu.js} +4 -4
- package/components/color-menu/index.cjs +5 -5
- package/components/color-menu/index.js +5 -7
- package/components/color-picker/index.cjs +4 -4
- package/components/color-picker/index.js +11 -13
- package/components/color-slider/index.cjs +7 -7
- package/components/color-slider/index.js +6 -7
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +6 -6
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +1 -1
- package/components/{field-group-CwZULltm.js → field-group-BPZvGJi1.js} +6 -6
- package/components/field-group-CodR_26L.cjs +23 -0
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -1
- package/components/{field-label-C3HFlH91.js → field-label-6AaW05kA.js} +7 -8
- package/components/field-label-B91K6moC.cjs +25 -0
- package/components/focusable-BFdecx5l.cjs +18 -0
- package/components/{focusable-zT9NFFYs.js → focusable-CxA_NMK_.js} +2 -1
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +6 -6
- package/components/index-Cg_y7WKM.cjs +77 -0
- package/components/{index-C2qG2Sm8.js → index-QeYYAZQR.js} +15 -18
- package/components/index.cjs +1 -1
- package/components/index.js +16 -16
- package/components/infield-button/index.cjs +2 -2
- package/components/infield-button/index.js +4 -4
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +5 -5
- package/components/{like-anchor-DoJWh4Uu.js → like-anchor-D7tY6am5.js} +21 -21
- package/components/like-anchor-b3cNzw52.cjs +32 -0
- package/components/{manage-help-text-BzWK2v8i.js → manage-help-text-CmE_nfjl.js} +8 -8
- package/components/{manage-help-text-BKlmmlgp.cjs → manage-help-text-CoX77cTJ.cjs} +3 -3
- package/components/menu/index.cjs +1 -1
- package/components/menu/index.js +1 -1
- package/components/multi-language-field/index.cjs +2 -2
- package/components/multi-language-field/index.js +7 -7
- package/components/number-field/index.cjs +4 -4
- package/components/number-field/index.js +16 -17
- package/components/observe-slot-text-ByPG1Lqw.cjs +18 -0
- package/components/{observe-slot-text-BG0H7bQK.js → observe-slot-text-CugmOzNZ.js} +20 -21
- package/components/overlay/index.cjs +7 -7
- package/components/overlay/index.js +45 -49
- package/components/overlay-BWBJGJN_.cjs +47 -0
- package/components/{overlay-D7EbnA6E.js → overlay-CtdbWiFs.js} +71 -74
- package/components/{pending-state-DHXuiejX.js → pending-state-B_JeaE62.js} +2 -2
- package/components/{pending-state-BHCOneQ7.cjs → pending-state-DWvTsSoS.cjs} +2 -2
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -2
- package/components/picker-CaC1rQOK.cjs +123 -0
- package/components/{picker-ChtCbFLB.js → picker-DwbcFve2.js} +109 -140
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -1
- package/components/popover-C4w3aY8m.cjs +30 -0
- package/components/{popover-bg0EQQ8p.js → popover-DLFHilGS.js} +6 -7
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/progress-circle-BXyXtMcs.cjs +33 -0
- package/components/{progress-circle-BT2qW7LK.js → progress-circle-CUCJ_Ehs.js} +6 -7
- package/components/radio/index.cjs +2 -2
- package/components/radio/index.js +9 -10
- package/components/search/index.cjs +7 -7
- package/components/search/index.js +4 -5
- package/components/{base-BjTwmyRF.cjs → sized-mixin-DcvJLFeo.cjs} +1 -5
- package/components/{sized-mixin-PyCYpyQq.js → sized-mixin-cJbo3PKR.js} +5 -5
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +6 -6
- package/components/{streaming-listener-wjMvsv4N.js → streaming-listener-BgCzt2TI.js} +5 -6
- package/components/streaming-listener-C2bsIc4J.cjs +18 -0
- package/components/swatch/index.cjs +7 -7
- package/components/swatch/index.js +11 -12
- package/components/switch/index.cjs +2 -2
- package/components/switch/index.js +5 -5
- package/components/tags/index.cjs +4 -4
- package/components/tags/index.js +12 -13
- package/components/text-field/index.cjs +3 -3
- package/components/text-field/index.js +8 -8
- package/components/text-field-BX_aHXSW.js +288 -0
- package/components/text-field-DAr2RyH9.cjs +81 -0
- package/components/toast/index.cjs +5 -5
- package/components/toast/index.js +5 -5
- package/components/tooltip/index.cjs +4 -4
- package/components/tooltip/index.js +6 -7
- package/components/unit-input/index.cjs +6 -6
- package/components/unit-input/index.js +5 -6
- package/components/utils.cjs +1 -1
- package/components/utils.js +4 -4
- package/custom-elements.json +1 -1
- package/package.json +2 -1
- package/components/action-group-BBoV2VL9.cjs +0 -20
- package/components/async-directive-CV2MII86.cjs +0 -22
- package/components/async-directive-FGzMycjH.js +0 -82
- package/components/base-D76d76ww.js +0 -26
- package/components/base-DNrOP9L3.js +0 -391
- package/components/base-DzbGOAPo.cjs +0 -30
- package/components/button-base-C1ceE1LF.cjs +0 -25
- package/components/clear-button-pnT9_M8M.cjs +0 -18
- package/components/close-button-CPtjRQ0R.cjs +0 -18
- package/components/color-loupe-DIBrhG1Y.cjs +0 -56
- package/components/directive-C7oCP5Bh.cjs +0 -22
- package/components/directive-helpers-BLDZnGQv.js +0 -28
- package/components/directive-helpers-C2vOfhFx.cjs +0 -22
- package/components/directive-oAbCiebi.js +0 -44
- package/components/field-group-eICRTHzI.cjs +0 -23
- package/components/field-label-DOIVL4S4.cjs +0 -25
- package/components/focusable-zn6qaMtV.cjs +0 -18
- package/components/if-defined-CYpcjGCb.js +0 -27
- package/components/if-defined-Cv6xanXh.cjs +0 -22
- package/components/index-BYumXRH5.cjs +0 -77
- package/components/like-anchor-CmIcmz5k.cjs +0 -32
- package/components/lit-html-B3ugcwD9.js +0 -248
- package/components/lit-html-p4Oxv2-5.cjs +0 -24
- package/components/observe-slot-text-CP_EB97X.cjs +0 -18
- package/components/overlay-B1JDPmUJ.cjs +0 -47
- package/components/picker-CLKdhX0B.cjs +0 -127
- package/components/popover-CdkB6GFb.cjs +0 -30
- package/components/progress-circle-DTeqfeun.cjs +0 -33
- 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/sized-mixin-BEemErtP.cjs +0 -18
- package/components/state-BG4JQVA1.js +0 -29
- package/components/state-DHaIxrnQ.cjs +0 -22
- package/components/streaming-listener-BQxEN4sL.cjs +0 -18
- package/components/style-map-BjBGQ_u3.cjs +0 -22
- package/components/style-map-BqvQDFJt.js +0 -53
- package/components/text-field-7ITo3Lac.js +0 -315
- package/components/text-field-CtUKbEQN.cjs +0 -85
- package/components/when-CDK1Tt5Y.js +0 -28
- package/components/when-CDZyJPvd.cjs +0 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/lucero",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"homepage": "https://luzmo.com",
|
|
5
5
|
"description": "Lucero - The design system for Luzmo",
|
|
6
6
|
"type": "module",
|
|
@@ -222,6 +222,7 @@
|
|
|
222
222
|
"lucero",
|
|
223
223
|
"analytics"
|
|
224
224
|
],
|
|
225
|
+
"customElements": "custom-elements.json",
|
|
225
226
|
"author": "Luzmo",
|
|
226
227
|
"publishConfig": {
|
|
227
228
|
"access": "restricted"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
"use strict";const d=require("lit"),p=require("./mutation-controller-DkOMCW-c.cjs"),u=require("./base-DzbGOAPo.cjs"),g=require("./query-BL-TJj7K.cjs"),b=require("./roving-tabindex-By_fCy_e.cjs"),h=require("./sized-mixin-BEemErtP.cjs"),m=":host{gap:var(--luzmo-action-group-horizontal-spacing-regular, var(--action-group-horizontal-spacing-regular));flex-wrap:wrap;display:flex}::slotted(*){flex-shrink:0}::slotted(:focus-visible){z-index:3}:host(:not([vertical]):not([compact])) ::slotted(*){flex-shrink:0}:host([vertical]){gap:var(--luzmo-action-group-vertical-spacing-regular, var(--action-group-vertical-spacing-regular));flex-direction:column;display:inline-flex}:host([compact]){gap:var(--luzmo-action-group-gap-size-compact, var(--action-group-gap-size-compact))}:host([compact]:not([quiet])){flex-wrap:nowrap}:host([compact]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset));z-index:0;position:relative}:host([compact]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0px 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-start-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact]:not([quiet])) ::slotted(:not(:first-child)){--luzmo-actionbutton-focus-indicator-border-radius: 0px;margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact))}:host([compact]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius: 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0px;border-start-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset))}:host([compact]:not([quiet])) ::slotted([selected]){z-index:1}@media (hover: hover){:host([compact]:not([quiet])) ::slotted(:hover){z-index:2}}:host([compact]:not([quiet])) ::slotted(:focus-visible){z-index:3}:host([compact]:not([quiet])[vertical]){gap:var(--luzmo-action-group-gap-size-compact, var(--action-group-gap-size-compact))}:host([compact][vertical]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0px 0px;border-start-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-start-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-inline-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:not(:first-child)){margin-block-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-inline-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset));margin-inline-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius: 0px 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([justified]) ::slotted(*){flex:1}:host{--action-group-gap-size-compact: 0px;--action-group-horizontal-spacing-compact: -1px;--action-group-vertical-spacing-compact: -1px;--action-group-button-spacing-reset: 0px;--action-group-border-radius-reset: 0px;--action-group-border-radius: var(--luzmo-border-radius);--action-group-horizontal-spacing-regular: var(--luzmo-spacing-3);--action-group-vertical-spacing-regular: var(--luzmo-spacing-3)}:host([size=xs]),:host([size=s]){--action-group-horizontal-spacing-regular: var(--luzmo-spacing-2);--action-group-vertical-spacing-regular: var(--luzmo-spacing-2)}:host,:host([size=l]),:host([size=xl]){--action-group-horizontal-spacing-regular: var(--luzmo-spacing-3);--action-group-vertical-spacing-regular: var(--luzmo-spacing-3)}:host([dir][compact][vertical]) ::slotted(:nth-child(n)){margin-right:0;margin-left:0}:host([justified]) ::slotted(:not([role])),:host([vertical]) ::slotted(:not([role])){display:flex;flex-direction:column;align-items:stretch}:host([compact]:not([quiet])) ::slotted(:not([role])){--overriden-border-radius: 0;--luzmo-action-button-border-radius: var(--overriden-border-radius)}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):first-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):last-child){--overriden-border-radius: 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child){--overriden-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([compact]:not([quiet])) ::slotted(*){--luzmo-action-button-focus-ring-border-radius: 0}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}";var v=Object.defineProperty,z=Object.getOwnPropertyDescriptor,c=(n,t,r,e)=>{for(var o=e>1?void 0:e?z(t,r):t,a=n.length-1,i;a>=0;a--)(i=n[a])&&(o=(e?i(t,r,o):i(o))||o);return e&&o&&v(t,r,o),o};const l=[];class s extends h.SizedMixin(u.LuzmoElement,{validSizes:["xs","s","m","l","xl"],noDefaultSize:!0}){constructor(){super(),this._buttons=[],this._buttonSelector="luzmo-action-button, luzmo-action-menu",this.rovingTabindexController=new b.RovingTabindexController(this,{focusInIndex:t=>{let r=-1;const e=t.findIndex((o,a)=>(!t[r]&&!o.disabled&&(r=a),o.selected&&!o.disabled));return t[e]?e:r},elements:()=>this.buttons,isFocusableElement:t=>!t.disabled}),this.compact=!1,this.emphasized=!1,this.justified=!1,this.label="",this.quiet=!1,this.vertical=!1,this._selected=l,this.hasManaged=!1,this.manageButtons=()=>{if(!this.slotElement)return;const r=this.slotElement.assignedElements({flatten:!0}).reduce((e,o)=>{if(o.matches(this._buttonSelector))e.push(o);else{const a=[...o.querySelectorAll(`:scope > ${this._buttonSelector}`)];e.push(...a)}return e},[]);if(this.buttons=r,this.selects||!this.hasManaged){const e=[];this.buttons.forEach(o=>{o.selected&&e.push(o.value)}),this.setSelected([...this.selected,...e])}this.manageChildren(),this.manageSelects(),this.hasManaged=!0},new p.s(this,{config:{childList:!0,subtree:!0},callback:()=>{this.manageButtons()},skipInitial:!0})}static get styles(){return[d.unsafeCSS(m)]}set buttons(t){t!==this.buttons&&(this._buttons=t,this.rovingTabindexController.clearElementCache())}get buttons(){return this._buttons}set selected(t){this.requestUpdate("selected",this._selected),this._selected=t,this.updateComplete.then(()=>{this.applySelects(),this.manageChildren()})}get selected(){return this._selected}dispatchChange(t){this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,cancelable:!0}))||(this.setSelected(t),this.buttons.map(e=>{e.selected=this.selected.includes(e.value)}))}setSelected(t,r){if(t===this.selected)return;const e=this.selected;this.requestUpdate("selected",e),this._selected=t,r&&this.dispatchChange(e)}focus(t){this.rovingTabindexController.focus(t)}deselectSelectedButtons(){this.buttons.forEach(t=>{t.selected&&(t.selected=!1,t.tabIndex=-1,t.setAttribute(this.selects?"aria-checked":"aria-pressed","false"))})}handleActionButtonChange(t){t.stopPropagation(),t.preventDefault()}handleClick(t){const r=t.target;if(r.value!==void 0)switch(this.selects){case"single":{this.deselectSelectedButtons(),r.selected=!0,r.tabIndex=0,r.setAttribute("aria-checked","true"),this.setSelected([r.value],!0);break}case"multiple":{const e=[...this.selected];r.selected=!r.selected,r.setAttribute("aria-checked",r.selected?"true":"false"),r.selected?e.push(r.value):e.splice(this.selected.indexOf(r.value),1),this.setSelected(e,!0),this.buttons.forEach(o=>{o.tabIndex=-1}),r.tabIndex=0;break}}}async applySelects(){await this.manageSelects(!0)}async manageSelects(t){if(this.buttons.length===0)return;const r=this.buttons;switch(this.selects){case"single":{this.setAttribute("role","radiogroup");const e=[],o=r.map(async i=>{await i.updateComplete,i.setAttribute("role","radio"),i.setAttribute("aria-checked",i.selected?"true":"false"),i.selected&&e.push(i)});if(t)break;await Promise.all(o);const a=e.map(i=>i.value);this.setSelected(a||l);break}case"multiple":{this.getAttribute("role")==="radiogroup"&&this.removeAttribute("role");const e=[],o=r.map(async i=>{await i.updateComplete,i.setAttribute("role","checkbox"),i.setAttribute("aria-checked",i.selected?"true":"false"),i.selected&&e.push(i.value)});if(t)break;await Promise.all(o);const a=e.length>0?e:l;this.setSelected(a);break}default:if(this.selected.length>0){const e=[],o=r.map(async a=>{await a.updateComplete,a.setAttribute("role","button"),a.selected?(a.setAttribute("aria-pressed","true"),e.push(a)):a.removeAttribute("aria-pressed")});if(t)break;await Promise.all(o),this.setSelected(e.map(a=>a.value))}else{this.buttons.forEach(e=>{e.setAttribute("role","button")});break}}this.hasAttribute("role")||this.setAttribute("role","toolbar")}render(){return d.html`
|
|
19
|
-
<slot role="presentation" @slotchange=${this.manageButtons}></slot>
|
|
20
|
-
`}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",this.handleClick)}updated(t){super.updated(t),t.has("selects")&&(this.manageSelects(),this.manageChildren(),this.selects?this.renderRoot.addEventListener("change",this.handleActionButtonChange):this.renderRoot.removeEventListener("change",this.handleActionButtonChange)),(t.has("quiet")||t.has("emphasized")||t.has("size")||t.has("staticColor"))&&this.manageChildren(t),t.has("label")&&(this.label||t.get("label")!==void 0)&&(this.label.length>0?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label"))}manageChildren(t){this.buttons.forEach(r=>{(this.quiet||t!=null&&t.get("quiet"))&&(r.quiet=this.quiet),(this.emphasized||t!=null&&t.get("emphasized"))&&(r.emphasized=this.emphasized),(this.staticColor||t!=null&&t.get("staticColor"))&&(r.staticColor=this.staticColor),(this.selects||!this.hasManaged)&&(r.selected=this.selected.includes(r.value)),this.size&&(this.size!=="m"||(t==null?void 0:t.get("size"))!==void 0)&&(r.size=this.size)})}}c([u.n({type:Boolean,reflect:!0})],s.prototype,"compact",2);c([u.n({type:Boolean,reflect:!0})],s.prototype,"emphasized",2);c([u.n({type:Boolean,reflect:!0})],s.prototype,"justified",2);c([u.n({type:String})],s.prototype,"label",2);c([u.n({type:Boolean,reflect:!0})],s.prototype,"quiet",2);c([u.n({type:String})],s.prototype,"selects",2);c([u.n({reflect:!0,attribute:"static-color"})],s.prototype,"staticColor",2);c([u.n({type:Boolean,reflect:!0})],s.prototype,"vertical",2);c([u.n({type:Array})],s.prototype,"selected",1);c([g.e("slot")],s.prototype,"slotElement",2);exports.LuzmoActionGroup=s;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
"use strict";const $=require("./directive-helpers-C2vOfhFx.cjs"),c=require("./directive-C7oCP5Bh.cjs");/**
|
|
19
|
-
* @license
|
|
20
|
-
* Copyright 2017 Google LLC
|
|
21
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const r=(t,e)=>{var i;const s=t._$AN;if(s===void 0)return!1;for(const n of s)(i=n._$AO)==null||i.call(n,e,!1),r(n,e);return!0},h=t=>{let e,s;do{if((e=t._$AM)===void 0)break;s=e._$AN,s.delete(t),t=e}while((s==null?void 0:s.size)===0)},_=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(s===void 0)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),f(e)}};function A(t){this._$AN!==void 0?(h(this),this._$AM=t,_(this)):this._$AM=t}function d(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let o=s;o<i.length;o++)r(i[o],!1),h(i[o]);else i!=null&&(r(i,!1),h(i));else r(this,t)}const f=t=>{t.type==c.t.CHILD&&(t._$AP??(t._$AP=d),t._$AQ??(t._$AQ=A))};class l extends c.i{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,s,i){super._$AT(e,s,i),_(this),this.isConnected=e._$AU}_$AO(e,s=!0){var i,n;e!==this.isConnected&&(this.isConnected=e,e?(i=this.reconnected)==null||i.call(this):(n=this.disconnected)==null||n.call(this)),s&&(r(this,e),h(this))}setValue(e){if($.f(this._$Ct))this._$Ct._$AI(e,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=e,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}}exports.f=l;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
import { f as _ } from "./directive-helpers-BLDZnGQv.js";
|
|
19
|
-
import { i as f, t as A } from "./directive-oAbCiebi.js";
|
|
20
|
-
/**
|
|
21
|
-
* @license
|
|
22
|
-
* Copyright 2017 Google LLC
|
|
23
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
24
|
-
*/
|
|
25
|
-
const n = (e, t) => {
|
|
26
|
-
var i;
|
|
27
|
-
const s = e._$AN;
|
|
28
|
-
if (s === void 0) return !1;
|
|
29
|
-
for (const o of s) (i = o._$AO) == null || i.call(o, t, !1), n(o, t);
|
|
30
|
-
return !0;
|
|
31
|
-
}, r = (e) => {
|
|
32
|
-
let t, s;
|
|
33
|
-
do {
|
|
34
|
-
if ((t = e._$AM) === void 0) break;
|
|
35
|
-
s = t._$AN, s.delete(e), e = t;
|
|
36
|
-
} while ((s == null ? void 0 : s.size) === 0);
|
|
37
|
-
}, $ = (e) => {
|
|
38
|
-
for (let t; t = e._$AM; e = t) {
|
|
39
|
-
let s = t._$AN;
|
|
40
|
-
if (s === void 0) t._$AN = s = /* @__PURE__ */ new Set();
|
|
41
|
-
else if (s.has(e)) break;
|
|
42
|
-
s.add(e), l(t);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
function c(e) {
|
|
46
|
-
this._$AN !== void 0 ? (r(this), this._$AM = e, $(this)) : this._$AM = e;
|
|
47
|
-
}
|
|
48
|
-
function d(e, t = !1, s = 0) {
|
|
49
|
-
const i = this._$AH, o = this._$AN;
|
|
50
|
-
if (o !== void 0 && o.size !== 0) if (t) if (Array.isArray(i)) for (let h = s; h < i.length; h++) n(i[h], !1), r(i[h]);
|
|
51
|
-
else i != null && (n(i, !1), r(i));
|
|
52
|
-
else n(this, e);
|
|
53
|
-
}
|
|
54
|
-
const l = (e) => {
|
|
55
|
-
e.type == A.CHILD && (e._$AP ?? (e._$AP = d), e._$AQ ?? (e._$AQ = c));
|
|
56
|
-
};
|
|
57
|
-
class C extends f {
|
|
58
|
-
constructor() {
|
|
59
|
-
super(...arguments), this._$AN = void 0;
|
|
60
|
-
}
|
|
61
|
-
_$AT(t, s, i) {
|
|
62
|
-
super._$AT(t, s, i), $(this), this.isConnected = t._$AU;
|
|
63
|
-
}
|
|
64
|
-
_$AO(t, s = !0) {
|
|
65
|
-
var i, o;
|
|
66
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (o = this.disconnected) == null || o.call(this)), s && (n(this, t), r(this));
|
|
67
|
-
}
|
|
68
|
-
setValue(t) {
|
|
69
|
-
if (_(this._$Ct)) this._$Ct._$AI(t, this);
|
|
70
|
-
else {
|
|
71
|
-
const s = [...this._$Ct._$AH];
|
|
72
|
-
s[this._$Ci] = t, this._$Ct._$AI(s, this, 0);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
disconnected() {
|
|
76
|
-
}
|
|
77
|
-
reconnected() {
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
export {
|
|
81
|
-
C as f
|
|
82
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
/**
|
|
19
|
-
* @license
|
|
20
|
-
* Copyright 2017 Google LLC
|
|
21
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/
|
|
23
|
-
const o = (r, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, e), e);
|
|
24
|
-
export {
|
|
25
|
-
o as e
|
|
26
|
-
};
|
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
import { LitElement as w } from "lit";
|
|
19
|
-
/**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2019 Google LLC
|
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/
|
|
24
|
-
const u = globalThis, y = u.ShadowRoot && (u.ShadyCSS === void 0 || u.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, v = Symbol(), $ = /* @__PURE__ */ new WeakMap();
|
|
25
|
-
let P = class {
|
|
26
|
-
constructor(t, e, s) {
|
|
27
|
-
if (this._$cssResult$ = !0, s !== v) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
28
|
-
this.cssText = t, this.t = e;
|
|
29
|
-
}
|
|
30
|
-
get styleSheet() {
|
|
31
|
-
let t = this.o;
|
|
32
|
-
const e = this.t;
|
|
33
|
-
if (y && t === void 0) {
|
|
34
|
-
const s = e !== void 0 && e.length === 1;
|
|
35
|
-
s && (t = $.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && $.set(e, t));
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
}
|
|
39
|
-
toString() {
|
|
40
|
-
return this.cssText;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const U = (r) => new P(typeof r == "string" ? r : r + "", void 0, v), C = (r, t) => {
|
|
44
|
-
if (y) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
45
|
-
else for (const e of t) {
|
|
46
|
-
const s = document.createElement("style"), i = u.litNonce;
|
|
47
|
-
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
|
48
|
-
}
|
|
49
|
-
}, S = y ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
50
|
-
let e = "";
|
|
51
|
-
for (const s of t.cssRules) e += s.cssText;
|
|
52
|
-
return U(e);
|
|
53
|
-
})(r) : r;
|
|
54
|
-
/**
|
|
55
|
-
* @license
|
|
56
|
-
* Copyright 2017 Google LLC
|
|
57
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/
|
|
59
|
-
const { is: A, defineProperty: O, getOwnPropertyDescriptor: M, getOwnPropertyNames: R, getOwnPropertySymbols: T, getPrototypeOf: L } = Object, h = globalThis, _ = h.trustedTypes, k = _ ? _.emptyScript : "", m = h.reactiveElementPolyfillSupport, d = (r, t) => r, p = { toAttribute(r, t) {
|
|
60
|
-
switch (t) {
|
|
61
|
-
case Boolean:
|
|
62
|
-
r = r ? k : null;
|
|
63
|
-
break;
|
|
64
|
-
case Object:
|
|
65
|
-
case Array:
|
|
66
|
-
r = r == null ? r : JSON.stringify(r);
|
|
67
|
-
}
|
|
68
|
-
return r;
|
|
69
|
-
}, fromAttribute(r, t) {
|
|
70
|
-
let e = r;
|
|
71
|
-
switch (t) {
|
|
72
|
-
case Boolean:
|
|
73
|
-
e = r !== null;
|
|
74
|
-
break;
|
|
75
|
-
case Number:
|
|
76
|
-
e = r === null ? null : Number(r);
|
|
77
|
-
break;
|
|
78
|
-
case Object:
|
|
79
|
-
case Array:
|
|
80
|
-
try {
|
|
81
|
-
e = JSON.parse(r);
|
|
82
|
-
} catch {
|
|
83
|
-
e = null;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return e;
|
|
87
|
-
} }, g = (r, t) => !A(r, t), b = { attribute: !0, type: String, converter: p, reflect: !1, hasChanged: g };
|
|
88
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), h.litPropertyMetadata ?? (h.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
89
|
-
class l extends HTMLElement {
|
|
90
|
-
static addInitializer(t) {
|
|
91
|
-
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
92
|
-
}
|
|
93
|
-
static get observedAttributes() {
|
|
94
|
-
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
95
|
-
}
|
|
96
|
-
static createProperty(t, e = b) {
|
|
97
|
-
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
98
|
-
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
99
|
-
i !== void 0 && O(this.prototype, t, i);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
static getPropertyDescriptor(t, e, s) {
|
|
103
|
-
const { get: i, set: n } = M(this.prototype, t) ?? { get() {
|
|
104
|
-
return this[e];
|
|
105
|
-
}, set(o) {
|
|
106
|
-
this[e] = o;
|
|
107
|
-
} };
|
|
108
|
-
return { get() {
|
|
109
|
-
return i == null ? void 0 : i.call(this);
|
|
110
|
-
}, set(o) {
|
|
111
|
-
const a = i == null ? void 0 : i.call(this);
|
|
112
|
-
n.call(this, o), this.requestUpdate(t, a, s);
|
|
113
|
-
}, configurable: !0, enumerable: !0 };
|
|
114
|
-
}
|
|
115
|
-
static getPropertyOptions(t) {
|
|
116
|
-
return this.elementProperties.get(t) ?? b;
|
|
117
|
-
}
|
|
118
|
-
static _$Ei() {
|
|
119
|
-
if (this.hasOwnProperty(d("elementProperties"))) return;
|
|
120
|
-
const t = L(this);
|
|
121
|
-
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
122
|
-
}
|
|
123
|
-
static finalize() {
|
|
124
|
-
if (this.hasOwnProperty(d("finalized"))) return;
|
|
125
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
126
|
-
const e = this.properties, s = [...R(e), ...T(e)];
|
|
127
|
-
for (const i of s) this.createProperty(i, e[i]);
|
|
128
|
-
}
|
|
129
|
-
const t = this[Symbol.metadata];
|
|
130
|
-
if (t !== null) {
|
|
131
|
-
const e = litPropertyMetadata.get(t);
|
|
132
|
-
if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
|
|
133
|
-
}
|
|
134
|
-
this._$Eh = /* @__PURE__ */ new Map();
|
|
135
|
-
for (const [e, s] of this.elementProperties) {
|
|
136
|
-
const i = this._$Eu(e, s);
|
|
137
|
-
i !== void 0 && this._$Eh.set(i, e);
|
|
138
|
-
}
|
|
139
|
-
this.elementStyles = this.finalizeStyles(this.styles);
|
|
140
|
-
}
|
|
141
|
-
static finalizeStyles(t) {
|
|
142
|
-
const e = [];
|
|
143
|
-
if (Array.isArray(t)) {
|
|
144
|
-
const s = new Set(t.flat(1 / 0).reverse());
|
|
145
|
-
for (const i of s) e.unshift(S(i));
|
|
146
|
-
} else t !== void 0 && e.push(S(t));
|
|
147
|
-
return e;
|
|
148
|
-
}
|
|
149
|
-
static _$Eu(t, e) {
|
|
150
|
-
const s = e.attribute;
|
|
151
|
-
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
152
|
-
}
|
|
153
|
-
constructor() {
|
|
154
|
-
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
155
|
-
}
|
|
156
|
-
_$Ev() {
|
|
157
|
-
var t;
|
|
158
|
-
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
|
159
|
-
}
|
|
160
|
-
addController(t) {
|
|
161
|
-
var e;
|
|
162
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
|
163
|
-
}
|
|
164
|
-
removeController(t) {
|
|
165
|
-
var e;
|
|
166
|
-
(e = this._$EO) == null || e.delete(t);
|
|
167
|
-
}
|
|
168
|
-
_$E_() {
|
|
169
|
-
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
170
|
-
for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
171
|
-
t.size > 0 && (this._$Ep = t);
|
|
172
|
-
}
|
|
173
|
-
createRenderRoot() {
|
|
174
|
-
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
175
|
-
return C(t, this.constructor.elementStyles), t;
|
|
176
|
-
}
|
|
177
|
-
connectedCallback() {
|
|
178
|
-
var t;
|
|
179
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
180
|
-
var s;
|
|
181
|
-
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
enableUpdating(t) {
|
|
185
|
-
}
|
|
186
|
-
disconnectedCallback() {
|
|
187
|
-
var t;
|
|
188
|
-
(t = this._$EO) == null || t.forEach((e) => {
|
|
189
|
-
var s;
|
|
190
|
-
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
attributeChangedCallback(t, e, s) {
|
|
194
|
-
this._$AK(t, s);
|
|
195
|
-
}
|
|
196
|
-
_$EC(t, e) {
|
|
197
|
-
var n;
|
|
198
|
-
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
199
|
-
if (i !== void 0 && s.reflect === !0) {
|
|
200
|
-
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : p).toAttribute(e, s.type);
|
|
201
|
-
this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
_$AK(t, e) {
|
|
205
|
-
var n;
|
|
206
|
-
const s = this.constructor, i = s._$Eh.get(t);
|
|
207
|
-
if (i !== void 0 && this._$Em !== i) {
|
|
208
|
-
const o = s.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : p;
|
|
209
|
-
this._$Em = i, this[i] = a.fromAttribute(e, o.type), this._$Em = null;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
requestUpdate(t, e, s) {
|
|
213
|
-
if (t !== void 0) {
|
|
214
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? g)(this[t], e)) return;
|
|
215
|
-
this.P(t, e, s);
|
|
216
|
-
}
|
|
217
|
-
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
218
|
-
}
|
|
219
|
-
P(t, e, s) {
|
|
220
|
-
this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
|
221
|
-
}
|
|
222
|
-
async _$ET() {
|
|
223
|
-
this.isUpdatePending = !0;
|
|
224
|
-
try {
|
|
225
|
-
await this._$ES;
|
|
226
|
-
} catch (e) {
|
|
227
|
-
Promise.reject(e);
|
|
228
|
-
}
|
|
229
|
-
const t = this.scheduleUpdate();
|
|
230
|
-
return t != null && await t, !this.isUpdatePending;
|
|
231
|
-
}
|
|
232
|
-
scheduleUpdate() {
|
|
233
|
-
return this.performUpdate();
|
|
234
|
-
}
|
|
235
|
-
performUpdate() {
|
|
236
|
-
var s;
|
|
237
|
-
if (!this.isUpdatePending) return;
|
|
238
|
-
if (!this.hasUpdated) {
|
|
239
|
-
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
240
|
-
for (const [n, o] of this._$Ep) this[n] = o;
|
|
241
|
-
this._$Ep = void 0;
|
|
242
|
-
}
|
|
243
|
-
const i = this.constructor.elementProperties;
|
|
244
|
-
if (i.size > 0) for (const [n, o] of i) o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
|
|
245
|
-
}
|
|
246
|
-
let t = !1;
|
|
247
|
-
const e = this._$AL;
|
|
248
|
-
try {
|
|
249
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
|
|
250
|
-
var n;
|
|
251
|
-
return (n = i.hostUpdate) == null ? void 0 : n.call(i);
|
|
252
|
-
}), this.update(e)) : this._$EU();
|
|
253
|
-
} catch (i) {
|
|
254
|
-
throw t = !1, this._$EU(), i;
|
|
255
|
-
}
|
|
256
|
-
t && this._$AE(e);
|
|
257
|
-
}
|
|
258
|
-
willUpdate(t) {
|
|
259
|
-
}
|
|
260
|
-
_$AE(t) {
|
|
261
|
-
var e;
|
|
262
|
-
(e = this._$EO) == null || e.forEach((s) => {
|
|
263
|
-
var i;
|
|
264
|
-
return (i = s.hostUpdated) == null ? void 0 : i.call(s);
|
|
265
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
266
|
-
}
|
|
267
|
-
_$EU() {
|
|
268
|
-
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
269
|
-
}
|
|
270
|
-
get updateComplete() {
|
|
271
|
-
return this.getUpdateComplete();
|
|
272
|
-
}
|
|
273
|
-
getUpdateComplete() {
|
|
274
|
-
return this._$ES;
|
|
275
|
-
}
|
|
276
|
-
shouldUpdate(t) {
|
|
277
|
-
return !0;
|
|
278
|
-
}
|
|
279
|
-
update(t) {
|
|
280
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
|
|
281
|
-
}
|
|
282
|
-
updated(t) {
|
|
283
|
-
}
|
|
284
|
-
firstUpdated(t) {
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
l.elementStyles = [], l.shadowRootOptions = { mode: "open" }, l[d("elementProperties")] = /* @__PURE__ */ new Map(), l[d("finalized")] = /* @__PURE__ */ new Map(), m == null || m({ ReactiveElement: l }), (h.reactiveElementVersions ?? (h.reactiveElementVersions = [])).push("2.0.4");
|
|
288
|
-
/**
|
|
289
|
-
* @license
|
|
290
|
-
* Copyright 2017 Google LLC
|
|
291
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
292
|
-
*/
|
|
293
|
-
const z = { attribute: !0, type: String, converter: p, reflect: !1, hasChanged: g }, x = (r = z, t, e) => {
|
|
294
|
-
const { kind: s, metadata: i } = e;
|
|
295
|
-
let n = globalThis.litPropertyMetadata.get(i);
|
|
296
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), n.set(e.name, r), s === "accessor") {
|
|
297
|
-
const { name: o } = e;
|
|
298
|
-
return { set(a) {
|
|
299
|
-
const c = t.get.call(this);
|
|
300
|
-
t.set.call(this, a), this.requestUpdate(o, c, r);
|
|
301
|
-
}, init(a) {
|
|
302
|
-
return a !== void 0 && this.P(o, void 0, r), a;
|
|
303
|
-
} };
|
|
304
|
-
}
|
|
305
|
-
if (s === "setter") {
|
|
306
|
-
const { name: o } = e;
|
|
307
|
-
return function(a) {
|
|
308
|
-
const c = this[o];
|
|
309
|
-
t.call(this, a), this.requestUpdate(o, c, r);
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
throw Error("Unsupported decorator location: " + s);
|
|
313
|
-
};
|
|
314
|
-
function H(r) {
|
|
315
|
-
return (t, e) => typeof e == "object" ? x(r, t, e) : ((s, i, n) => {
|
|
316
|
-
const o = i.hasOwnProperty(n);
|
|
317
|
-
return i.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
|
318
|
-
})(r, t, e);
|
|
319
|
-
}
|
|
320
|
-
const E = /* @__PURE__ */ new Set(), D = () => {
|
|
321
|
-
const r = document.documentElement.dir === "rtl" ? document.documentElement.dir : "ltr";
|
|
322
|
-
E.forEach((t) => {
|
|
323
|
-
t.setAttribute("dir", r);
|
|
324
|
-
});
|
|
325
|
-
}, N = new MutationObserver(D);
|
|
326
|
-
N.observe(document.documentElement, {
|
|
327
|
-
attributes: !0,
|
|
328
|
-
attributeFilter: ["dir"]
|
|
329
|
-
});
|
|
330
|
-
const j = (r) => r.startManagingContentDirection !== void 0 || r.tagName === "LUZMO-THEME";
|
|
331
|
-
function q(r) {
|
|
332
|
-
class t extends r {
|
|
333
|
-
/**
|
|
334
|
-
* @private
|
|
335
|
-
*/
|
|
336
|
-
get isLTR() {
|
|
337
|
-
return this.dir === "ltr";
|
|
338
|
-
}
|
|
339
|
-
hasVisibleFocusInTree() {
|
|
340
|
-
const i = ((n = document) => {
|
|
341
|
-
var c;
|
|
342
|
-
let o = n.activeElement;
|
|
343
|
-
for (; o != null && o.shadowRoot && o.shadowRoot.activeElement; )
|
|
344
|
-
o = o.shadowRoot.activeElement;
|
|
345
|
-
const a = o ? [o] : [];
|
|
346
|
-
for (; o; ) {
|
|
347
|
-
const f = o.assignedSlot || o.parentElement || ((c = o.getRootNode()) == null ? void 0 : c.host);
|
|
348
|
-
f && a.push(f), o = f;
|
|
349
|
-
}
|
|
350
|
-
return a;
|
|
351
|
-
})(this.getRootNode())[0];
|
|
352
|
-
if (!i)
|
|
353
|
-
return !1;
|
|
354
|
-
try {
|
|
355
|
-
return i.matches(":focus-visible") || i.matches(".focus-visible");
|
|
356
|
-
} catch {
|
|
357
|
-
return i.matches(".focus-visible");
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
connectedCallback() {
|
|
361
|
-
if (!this.hasAttribute("dir")) {
|
|
362
|
-
let s = this.assignedSlot || this.parentNode;
|
|
363
|
-
for (; s !== document.documentElement && !j(s); )
|
|
364
|
-
s = s.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
365
|
-
s.parentNode || // DOM Element detected
|
|
366
|
-
s.host;
|
|
367
|
-
if (this.dir = s.dir === "rtl" ? s.dir : this.dir || "ltr", s === document.documentElement)
|
|
368
|
-
E.add(this);
|
|
369
|
-
else {
|
|
370
|
-
const { localName: i } = s;
|
|
371
|
-
i.search("-") > -1 && !customElements.get(i) ? customElements.whenDefined(i).then(() => {
|
|
372
|
-
s.startManagingContentDirection(this);
|
|
373
|
-
}) : s.startManagingContentDirection(this);
|
|
374
|
-
}
|
|
375
|
-
this._dirParent = s;
|
|
376
|
-
}
|
|
377
|
-
super.connectedCallback();
|
|
378
|
-
}
|
|
379
|
-
disconnectedCallback() {
|
|
380
|
-
super.disconnectedCallback(), this._dirParent && (this._dirParent === document.documentElement ? E.delete(this) : this._dirParent.stopManagingContentDirection(this), this.removeAttribute("dir"));
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
return t;
|
|
384
|
-
}
|
|
385
|
-
class I extends q(w) {
|
|
386
|
-
}
|
|
387
|
-
export {
|
|
388
|
-
q as L,
|
|
389
|
-
I as a,
|
|
390
|
-
H as n
|
|
391
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
"use strict";const P=require("lit");/**
|
|
19
|
-
* @license
|
|
20
|
-
* Copyright 2019 Google LLC
|
|
21
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const u=globalThis,y=u.ShadowRoot&&(u.ShadyCSS===void 0||u.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,v=Symbol(),$=new WeakMap;let U=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==v)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(y&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=$.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&$.set(e,t))}return t}toString(){return this.cssText}};const C=r=>new U(typeof r=="string"?r:r+"",void 0,v),A=(r,t)=>{if(y)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=u.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},S=y?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return C(e)})(r):r;/**
|
|
23
|
-
* @license
|
|
24
|
-
* Copyright 2017 Google LLC
|
|
25
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
26
|
-
*/const{is:O,defineProperty:M,getOwnPropertyDescriptor:R,getOwnPropertyNames:L,getOwnPropertySymbols:T,getPrototypeOf:z}=Object,h=globalThis,_=h.trustedTypes,k=_?_.emptyScript:"",m=h.reactiveElementPolyfillSupport,d=(r,t)=>r,p={toAttribute(r,t){switch(t){case Boolean:r=r?k:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},g=(r,t)=>!O(r,t),b={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:g};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),h.litPropertyMetadata??(h.litPropertyMetadata=new WeakMap);class l extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=b){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&M(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=R(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return i==null?void 0:i.call(this)},set(o){const a=i==null?void 0:i.call(this);n.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=z(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d("properties"))){const e=this.properties,s=[...L(e),...T(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(S(i))}else t!==void 0&&e.push(S(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return A(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:p).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=s.getPropertyOptions(i),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:p;this._$Em=i,this[i]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??g)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}l.elementStyles=[],l.shadowRootOptions={mode:"open"},l[d("elementProperties")]=new Map,l[d("finalized")]=new Map,m==null||m({ReactiveElement:l}),(h.reactiveElementVersions??(h.reactiveElementVersions=[])).push("2.0.4");/**
|
|
27
|
-
* @license
|
|
28
|
-
* Copyright 2017 Google LLC
|
|
29
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/const x={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:g},D=(r=x,t,e)=>{const{kind:s,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,r),s==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,r)},init(a){return a!==void 0&&this.P(o,void 0,r),a}}}if(s==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,r)}}throw Error("Unsupported decorator location: "+s)};function N(r){return(t,e)=>typeof e=="object"?D(r,t,e):((s,i,n)=>{const o=i.hasOwnProperty(n);return i.constructor.createProperty(n,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(i,n):void 0})(r,t,e)}const E=new Set,j=()=>{const r=document.documentElement.dir==="rtl"?document.documentElement.dir:"ltr";E.forEach(t=>{t.setAttribute("dir",r)})},q=new MutationObserver(j);q.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const F=r=>r.startManagingContentDirection!==void 0||r.tagName==="LUZMO-THEME";function w(r){class t extends r{get isLTR(){return this.dir==="ltr"}hasVisibleFocusInTree(){const i=((n=document)=>{var c;let o=n.activeElement;for(;o!=null&&o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;const a=o?[o]:[];for(;o;){const f=o.assignedSlot||o.parentElement||((c=o.getRootNode())==null?void 0:c.host);f&&a.push(f),o=f}return a})(this.getRootNode())[0];if(!i)return!1;try{return i.matches(":focus-visible")||i.matches(".focus-visible")}catch{return i.matches(".focus-visible")}}connectedCallback(){if(!this.hasAttribute("dir")){let s=this.assignedSlot||this.parentNode;for(;s!==document.documentElement&&!F(s);)s=s.assignedSlot||s.parentNode||s.host;if(this.dir=s.dir==="rtl"?s.dir:this.dir||"ltr",s===document.documentElement)E.add(this);else{const{localName:i}=s;i.search("-")>-1&&!customElements.get(i)?customElements.whenDefined(i).then(()=>{s.startManagingContentDirection(this)}):s.startManagingContentDirection(this)}this._dirParent=s}super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._dirParent&&(this._dirParent===document.documentElement?E.delete(this):this._dirParent.stopManagingContentDirection(this),this.removeAttribute("dir"))}}return t}class B extends w(P.LitElement){}exports.LuzmoElement=B;exports.LuzmoMixin=w;exports.n=N;
|