@luzmo/lucero 0.0.12 → 0.0.14
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 +6 -6
- package/components/accordion/index.js +5 -5
- package/components/action-bar/index.cjs +4 -4
- package/components/action-bar/index.js +8 -9
- package/components/action-button/index.cjs +2 -2
- package/components/action-button/index.js +3 -4
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -1
- package/components/action-group-Uimj-MJP.cjs +20 -0
- package/components/{action-group-DzT5e9uS.js → action-group-enfc-YnW.js} +3 -3
- package/components/action-menu/index.cjs +7 -7
- package/components/action-menu/index.js +8 -8
- package/components/async-directive-DWRUSKKF.js +82 -0
- package/components/async-directive-D_Ter1F8.cjs +22 -0
- package/components/avatar/index.cjs +3 -3
- package/components/avatar/index.js +6 -6
- package/components/base-B7Pfl2if.cjs +40 -0
- package/components/{sized-mixin-DcvJLFeo.cjs → base-BjTwmyRF.cjs} +5 -1
- package/components/{base-CCsOyfm4.js → base-CawdqE7p.js} +132 -98
- package/components/base-D76d76ww.js +26 -0
- package/components/button/index.cjs +2 -2
- package/components/button/index.js +6 -7
- package/components/{button-base-BUylwU1F.js → button-base-B7v4eeRh.js} +5 -5
- package/components/{button-base-D62oiPcu.cjs → button-base-DmjYs2s9.cjs} +3 -3
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +5 -6
- package/components/checkbox/index.cjs +4 -4
- package/components/checkbox/index.js +3 -4
- package/components/{checkbox-mixin-CM4VUJxF.js → checkbox-mixin-BFGTmw17.js} +9 -9
- package/components/{checkbox-mixin-CifGmiLR.cjs → checkbox-mixin-DUhXwD46.cjs} +3 -3
- package/components/{clear-button-BmUyRVoz.js → clear-button-DgZmX5RX.js} +6 -7
- package/components/clear-button-KdrF2jaV.cjs +18 -0
- package/components/{close-button-BekXo6bQ.js → close-button-CFHQnbsK.js} +9 -10
- package/components/close-button-DVGUppyd.cjs +18 -0
- package/components/color-area/index.cjs +5 -5
- package/components/color-area/index.js +4 -4
- package/components/color-field/index.cjs +2 -2
- package/components/color-field/index.js +2 -3
- package/components/color-handle/index.cjs +2 -2
- package/components/color-handle/index.js +2 -3
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -1
- package/components/{color-loupe-DiegGLZu.js → color-loupe-DxcqXoJ6.js} +1 -2
- package/components/color-loupe-SskbNeMp.cjs +56 -0
- package/components/color-menu/index.cjs +5 -5
- package/components/color-menu/index.js +4 -3
- package/components/color-picker/index.cjs +4 -4
- package/components/color-picker/index.js +9 -8
- package/components/color-slider/index.cjs +6 -6
- package/components/color-slider/index.js +6 -6
- package/components/directive-C7oCP5Bh.cjs +22 -0
- package/components/directive-helpers-TkFq2eZF.cjs +22 -0
- package/components/directive-helpers-nlQRAaQt.js +28 -0
- package/components/directive-oAbCiebi.js +44 -0
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +2 -3
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +1 -1
- package/components/{field-group-BPZvGJi1.js → field-group-DAhrTCfl.js} +2 -3
- package/components/field-group-DSY2HUoj.cjs +23 -0
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -1
- package/components/{field-label-6AaW05kA.js → field-label-CAFfGxEL.js} +3 -3
- package/components/field-label-CjsQ3ujK.cjs +25 -0
- package/components/focusable-DGWL1v1p.cjs +18 -0
- package/components/{focusable-CxA_NMK_.js → focusable-cj2QhwDT.js} +1 -2
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +4 -5
- package/components/if-defined-B56xGmAg.cjs +22 -0
- package/components/if-defined-BSAr_4u4.js +27 -0
- package/components/{index-QeYYAZQR.js → index-CfEuKXu3.js} +17 -15
- package/components/index-uModabSB.cjs +77 -0
- 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 +3 -4
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +1 -2
- package/components/like-anchor-Bmabl9ra.cjs +32 -0
- package/components/{like-anchor-D7tY6am5.js → like-anchor-QBlvwFfT.js} +23 -24
- package/components/{manage-help-text-CmE_nfjl.js → manage-help-text-Cozl9Sgn.js} +4 -4
- package/components/{manage-help-text-CoX77cTJ.cjs → manage-help-text-OHXDgxyj.cjs} +2 -2
- 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 +3 -4
- package/components/number-field/index.cjs +3 -3
- package/components/number-field/index.js +4 -4
- package/components/observe-slot-text-CrYB2Pj-.cjs +18 -0
- package/components/{observe-slot-text-CugmOzNZ.js → observe-slot-text-ggb4kKgY.js} +21 -20
- package/components/overlay/index.cjs +7 -7
- package/components/overlay/index.js +48 -46
- package/components/{overlay-CtdbWiFs.js → overlay-CJ9by37f.js} +71 -69
- package/components/overlay-Deh6Ki6I.cjs +47 -0
- package/components/{pending-state-DWvTsSoS.cjs → pending-state-Do522lTd.cjs} +1 -1
- package/components/{pending-state-B_JeaE62.js → pending-state-TJj1x9xn.js} +2 -2
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -2
- package/components/picker-86w1nJ4v.cjs +127 -0
- package/components/{picker-DwbcFve2.js → picker-CqVp9Hab.js} +134 -105
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -1
- package/components/popover-BOEkjrJY.cjs +30 -0
- package/components/popover-CGL8gWdb.js +67 -0
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/{progress-circle-CUCJ_Ehs.js → progress-circle-Be24kv6B.js} +4 -4
- package/components/{progress-circle-BXyXtMcs.cjs → progress-circle-NNbCMK2i.cjs} +6 -6
- package/components/query-BL-TJj7K.cjs +22 -0
- package/components/query-D_KR_GUc.js +51 -0
- package/components/query-assigned-elements-DjfhL1cl.js +36 -0
- package/components/query-assigned-elements-DsKsfk7G.cjs +22 -0
- package/components/query-assigned-nodes-BcKWmGzy.cjs +22 -0
- package/components/query-assigned-nodes-C76XVPWY.js +36 -0
- package/components/radio/index.cjs +2 -2
- package/components/radio/index.js +6 -6
- package/components/search/index.cjs +7 -7
- package/components/search/index.js +4 -4
- package/components/{sized-mixin-cJbo3PKR.js → sized-mixin-BxMraZLS.js} +5 -5
- package/components/sized-mixin-D9LkrMjb.cjs +18 -0
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +2 -3
- package/components/state-C5I1gP3G.cjs +22 -0
- package/components/state-CYxk12SV.js +29 -0
- package/components/{streaming-listener-BgCzt2TI.js → streaming-listener-CCalHg57.js} +6 -5
- package/components/streaming-listener-KVex1WWB.cjs +18 -0
- package/components/style-map-Ct2LiEds.js +53 -0
- package/components/style-map-uMq-yDJ3.cjs +22 -0
- package/components/swatch/index.cjs +7 -7
- package/components/swatch/index.js +11 -11
- package/components/switch/index.cjs +2 -2
- package/components/switch/index.js +4 -5
- package/components/tags/index.cjs +4 -4
- package/components/tags/index.js +4 -4
- package/components/text-field/index.cjs +3 -3
- package/components/text-field/index.js +3 -4
- package/components/text-field-5_ev9way.cjs +85 -0
- package/components/text-field-CvKSS59x.js +313 -0
- package/components/toast/index.cjs +11 -11
- package/components/toast/index.js +2 -3
- package/components/tooltip/index.cjs +4 -4
- package/components/tooltip/index.js +4 -4
- package/components/unit-input/index.cjs +6 -6
- package/components/unit-input/index.js +3 -3
- package/components/utils.cjs +1 -1
- package/components/utils.js +4 -4
- package/components/when-CDK1Tt5Y.js +28 -0
- package/components/when-CDZyJPvd.cjs +22 -0
- package/package.json +1 -1
- package/components/action-group-B59CWNnT.cjs +0 -20
- package/components/base-CaRKlVkL.cjs +0 -36
- package/components/clear-button-Cc5-XUOJ.cjs +0 -18
- package/components/close-button-Bf8yzpLd.cjs +0 -18
- package/components/color-loupe-CLzp2MiI.cjs +0 -56
- package/components/field-group-CodR_26L.cjs +0 -23
- package/components/field-label-B91K6moC.cjs +0 -25
- package/components/focusable-BFdecx5l.cjs +0 -18
- package/components/index-Cg_y7WKM.cjs +0 -77
- package/components/like-anchor-b3cNzw52.cjs +0 -32
- package/components/observe-slot-text-ByPG1Lqw.cjs +0 -18
- package/components/overlay-BWBJGJN_.cjs +0 -47
- package/components/picker-CaC1rQOK.cjs +0 -123
- package/components/popover-C4w3aY8m.cjs +0 -30
- package/components/popover-DLFHilGS.js +0 -67
- package/components/streaming-listener-C2bsIc4J.cjs +0 -18
- package/components/text-field-BX_aHXSW.js +0 -288
- package/components/text-field-DAr2RyH9.cjs +0 -81
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
18
|
import { luzmoEllipsisHorizontal as z } from "@luzmo/icons";
|
|
19
|
-
import { r as b, x as r } from "../base-
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { O as
|
|
23
|
-
import { O as f } from "../observe-slot-text-
|
|
19
|
+
import { r as b, x as r, n as c } from "../base-CawdqE7p.js";
|
|
20
|
+
import { r as h } from "../state-CYxk12SV.js";
|
|
21
|
+
import { o as a } from "../if-defined-BSAr_4u4.js";
|
|
22
|
+
import { O as p } from "../index-CfEuKXu3.js";
|
|
23
|
+
import { O as f } from "../observe-slot-text-ggb4kKgY.js";
|
|
24
24
|
import { S as g } from "../slottable-request-event-DggLA4Rx.js";
|
|
25
|
-
import { L as x, D as v } from "../picker-
|
|
25
|
+
import { L as x, D as v } from "../picker-CqVp9Hab.js";
|
|
26
26
|
import "../action-button/index.js";
|
|
27
27
|
import "../icon/index.js";
|
|
28
28
|
import "../overlay/index.js";
|
|
@@ -40,7 +40,7 @@ var w = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, m = (l, o, n
|
|
|
40
40
|
(s = l[u]) && (e = (t ? s(o, n, e) : s(e)) || e);
|
|
41
41
|
return t && e && w(o, n, e), e;
|
|
42
42
|
};
|
|
43
|
-
class i extends
|
|
43
|
+
class i extends p(
|
|
44
44
|
f(x, "label"),
|
|
45
45
|
'[slot="label-only"]'
|
|
46
46
|
) {
|
|
@@ -118,7 +118,7 @@ m([
|
|
|
118
118
|
c({ reflect: !0, attribute: "static-color" })
|
|
119
119
|
], i.prototype, "staticColor", 2);
|
|
120
120
|
m([
|
|
121
|
-
|
|
121
|
+
h()
|
|
122
122
|
], i.prototype, "labelOnly", 1);
|
|
123
123
|
customElements.get("luzmo-action-menu") || customElements.define("luzmo-action-menu", i);
|
|
124
124
|
export {
|
|
@@ -0,0 +1,82 @@
|
|
|
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-nlQRAaQt.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
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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-TkFq2eZF.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;
|
|
@@ -15,10 +15,10 @@
|
|
|
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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../base-B7Pfl2if.cjs"),l=require("../query-BL-TJj7K.cjs"),u=require("../if-defined-B56xGmAg.cjs"),d=require("../focusable-DGWL1v1p.cjs"),z=require("../like-anchor-Bmabl9ra.cjs"),v=require("../sized-mixin-D9LkrMjb.cjs"),h='@media (forced-colors: active){:host{--highcontrast-avatar-focus-indicator-color: CanvasText}}:host{--avatar-border-radius: var( --luzmo-avatar-border-radius, var(--luzmo-avatar-size, var(--avatar-size)) );inline-size:var(--luzmo-avatar-size, var(--avatar-size));block-size:var(--luzmo-avatar-size, var(--avatar-size));border-radius:var(--avatar-border-radius);-webkit-user-drag:none;-webkit-user-select:none;user-select:none;opacity:var(--luzmo-avatar-color-opacity, var(--avatar-color-opacity));border-width:0;outline:none;display:inline-block;position:relative;overflow:visible}:host([disabled]){opacity:var(--highcontrast-avatar-color-opacity-disabled, var(--luzmo-avatar-color-opacity-disabled, var(--avatar-color-opacity-disabled)))}:host(:not([disabled])) .is-focused:after,:host(:not([disabled])) .link:focus-visible:after{pointer-events:none;content:"";inline-size:calc(var(--luzmo-avatar-custom-size, var(--luzmo-avatar-size, var(--avatar-size))) + var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) * 2);block-size:calc(var(--luzmo-avatar-custom-size, var(--luzmo-avatar-size, var(--avatar-size))) + var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) * 2);border-style:solid;border-width:var(--luzmo-avatar-focus-indicator-thickness, var(--avatar-focus-indicator-thickness));border-color:var(--highcontrast-avatar-focus-indicator-color, var(--luzmo-avatar-focus-indicator-color, var(--avatar-focus-indicator-color)));border-radius:var(--avatar-border-radius);position:absolute;inset-block-start:calc((var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) + var(--luzmo-avatar-focus-indicator-thickness, var(--avatar-focus-indicator-thickness))) * -1);inset-inline-start:calc((var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) + var(--luzmo-avatar-focus-indicator-thickness, var(--avatar-focus-indicator-thickness))) * -1)}.link{outline:0}.image{inline-size:var(--luzmo-avatar-size, var(--avatar-size));block-size:var(--luzmo-avatar-size, var(--avatar-size));border-radius:var(--avatar-border-radius)}:host([rounding=none]){border-radius:0}:host([rounding=none]) img{border-radius:0}:host([rounding=full]){border-radius:100%}:host([rounding=full]) img{border-radius:100%}:host([border=light]){border:var(--luzmo-avatar-border-width, var(--avatar-border-width)) solid var(--luzmo-avatar-border-color, var(--avatar-border-color))}:host([border=none]){border:0}:host{--avatar-color-opacity: 1;--avatar-border-width: var(--luzmo-border-width);--avatar-border-color: var(--luzmo-border-color);--avatar-size: 32px;--avatar-focus-indicator-thickness: var(--luzmo-indicator-width);--avatar-focus-indicator-gap: var(--luzmo-indicator-gap);--avatar-focus-indicator-color: var(--luzmo-indicator-color);--avatar-color-opacity-disabled: .3}:host([size=xxs]){--avatar-size: var(--luzmo-component-height-xxs)}:host([size=xs]){--avatar-size: var(--luzmo-component-height-xs)}:host([size=s]){--avatar-size: var(--luzmo-component-height-s)}:host{--avatar-size: var(--luzmo-component-height)}:host([size=l]){--avatar-size: var(--luzmo-component-height-l)}:host([size=xl]){--avatar-size: var(--luzmo-component-height-xl)}:host([size=xxl]){--avatar-size: var(--luzmo-component-height-xxl)}img{vertical-align:top}';var m=Object.defineProperty,e=(i,o,n,b)=>{for(var a=void 0,s=i.length-1,c;s>=0;s--)(c=i[s])&&(a=c(o,n,a)||a);return a&&m(o,n,a),a};class r extends z.LikeAnchor(v.SizedMixin(d.Focusable,{validSizes:Object.values(v.ElementSizes)})){constructor(){super(...arguments),this.src=""}static get styles(){return[t.r(h)]}get focusElement(){return this.anchorElement||this}render(){const o=t.x`
|
|
19
19
|
<img
|
|
20
20
|
class="image"
|
|
21
|
-
alt=${
|
|
21
|
+
alt=${u.o(this.label||void 0)}
|
|
22
22
|
src=${this.src}
|
|
23
23
|
/>
|
|
24
|
-
`;return this.href?this.renderAnchor({id:"link",className:"link",anchorContent:o}):o}}e([t.
|
|
24
|
+
`;return this.href?this.renderAnchor({id:"link",className:"link",anchorContent:o}):o}}e([t.n({type:String,reflect:!0})],r.prototype,"border");e([t.n({type:String,reflect:!0})],r.prototype,"rounding");e([l.e("#link")],r.prototype,"anchorElement");e([t.n()],r.prototype,"src");customElements.get("luzmo-avatar")||customElements.define("luzmo-avatar",r);exports.LuzmoAvatar=r;
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
import { r as n, x as m } from "../base-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { F as v } from "../focusable-
|
|
22
|
-
import { L as b } from "../like-anchor-
|
|
23
|
-
import { S as f, E as h } from "../sized-mixin-
|
|
18
|
+
import { r as n, x as m, n as i } from "../base-CawdqE7p.js";
|
|
19
|
+
import { e as d } from "../query-D_KR_GUc.js";
|
|
20
|
+
import { o as z } from "../if-defined-BSAr_4u4.js";
|
|
21
|
+
import { F as v } from "../focusable-cj2QhwDT.js";
|
|
22
|
+
import { L as b } from "../like-anchor-QBlvwFfT.js";
|
|
23
|
+
import { S as f, E as h } from "../sized-mixin-BxMraZLS.js";
|
|
24
24
|
const u = () => {
|
|
25
25
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
26
26
|
const o = document.createElement("style");
|
|
@@ -0,0 +1,40 @@
|
|
|
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";/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2019 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/const O=globalThis,I=O.ShadowRoot&&(O.ShadyCSS===void 0||O.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,et=Symbol(),W=new WeakMap;let lt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==et)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(I&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=W.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&W.set(e,t))}return t}toString(){return this.cssText}};const st=n=>new lt(typeof n=="string"?n:n+"",void 0,et),ct=(n,t)=>{if(I)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=O.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,n.appendChild(s)}},q=I?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return st(e)})(n):n;/**
|
|
23
|
+
* @license
|
|
24
|
+
* Copyright 2017 Google LLC
|
|
25
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
26
|
+
*/const{is:dt,defineProperty:ut,getOwnPropertyDescriptor:pt,getOwnPropertyNames:$t,getOwnPropertySymbols:_t,getPrototypeOf:ft}=Object,f=globalThis,F=f.trustedTypes,mt=F?F.emptyScript:"",k=f.reactiveElementPolyfillSupport,S=(n,t)=>n,H={toAttribute(n,t){switch(t){case Boolean:n=n?mt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},j=(n,t)=>!dt(n,t),Z={attribute:!0,type:String,converter:H,reflect:!1,hasChanged:j};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),f.litPropertyMetadata??(f.litPropertyMetadata=new WeakMap);class v 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=Z){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&&ut(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=pt(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get(){return i==null?void 0:i.call(this)},set(r){const a=i==null?void 0:i.call(this);o.call(this,r),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Z}static _$Ei(){if(this.hasOwnProperty(S("elementProperties")))return;const t=ft(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const e=this.properties,s=[...$t(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(q(i))}else t!==void 0&&e.push(q(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 ct(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 o;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const r=(((o=s.converter)==null?void 0:o.toAttribute)!==void 0?s.converter:H).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){var o;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const r=s.getPropertyOptions(i),a=typeof r.converter=="function"?{fromAttribute:r.converter}:((o=r.converter)==null?void 0:o.fromAttribute)!==void 0?r.converter:H;this._$Em=i,this[i]=a.fromAttribute(e,r.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??j)(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[o,r]of this._$Ep)this[o]=r;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,r]of i)r.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.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){}}v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[S("elementProperties")]=new Map,v[S("finalized")]=new Map,k==null||k({ReactiveElement:v}),(f.reactiveElementVersions??(f.reactiveElementVersions=[])).push("2.0.4");/**
|
|
27
|
+
* @license
|
|
28
|
+
* Copyright 2017 Google LLC
|
|
29
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
+
*/const w=globalThis,N=w.trustedTypes,J=N?N.createPolicy("lit-html",{createHTML:n=>n}):void 0,it="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,nt="?"+_,gt=`<${nt}>`,A=document,P=()=>A.createComment(""),x=n=>n===null||typeof n!="object"&&typeof n!="function",V=Array.isArray,At=n=>V(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",L=`[
|
|
31
|
+
\f\r]`,b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,G=/>/g,m=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
|
|
32
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Q=/'/g,X=/"/g,rt=/^(?:script|style|textarea|title)$/i,yt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),vt=yt(1),y=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Y=new WeakMap,g=A.createTreeWalker(A,129);function ot(n,t){if(!V(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return J!==void 0?J.createHTML(t):t}const Et=(n,t)=>{const e=n.length-1,s=[];let i,o=t===2?"<svg>":t===3?"<math>":"",r=b;for(let a=0;a<e;a++){const h=n[a];let c,u,l=-1,p=0;for(;p<h.length&&(r.lastIndex=p,u=r.exec(h),u!==null);)p=r.lastIndex,r===b?u[1]==="!--"?r=K:u[1]!==void 0?r=G:u[2]!==void 0?(rt.test(u[2])&&(i=RegExp("</"+u[2],"g")),r=m):u[3]!==void 0&&(r=m):r===m?u[0]===">"?(r=i??b,l=-1):u[1]===void 0?l=-2:(l=r.lastIndex-u[2].length,c=u[1],r=u[3]===void 0?m:u[3]==='"'?X:Q):r===X||r===Q?r=m:r===K||r===G?r=b:(r=m,i=void 0);const $=r===m&&n[a+1].startsWith("/>")?" ":"";o+=r===b?h+gt:l>=0?(s.push(c),h.slice(0,l)+it+h.slice(l)+_+$):h+_+(l===-2?a:$)}return[ot(n,o+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class U{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const a=t.length-1,h=this.parts,[c,u]=Et(t,e);if(this.el=U.createElement(c,s),g.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=g.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(it)){const p=u[r++],$=i.getAttribute(l).split(_),T=/([.?@])?(.*)/.exec(p);h.push({type:1,index:o,name:T[2],strings:$,ctor:T[1]==="."?St:T[1]==="?"?wt:T[1]==="@"?Ct:R}),i.removeAttribute(l)}else l.startsWith(_)&&(h.push({type:6,index:o}),i.removeAttribute(l));if(rt.test(i.tagName)){const l=i.textContent.split(_),p=l.length-1;if(p>0){i.textContent=N?N.emptyScript:"";for(let $=0;$<p;$++)i.append(l[$],P()),g.nextNode(),h.push({type:2,index:++o});i.append(l[p],P())}}}else if(i.nodeType===8)if(i.data===nt)h.push({type:2,index:o});else{let l=-1;for(;(l=i.data.indexOf(_,l+1))!==-1;)h.push({type:7,index:o}),l+=_.length-1}o++}}static createElement(t,e){const s=A.createElement("template");return s.innerHTML=t,s}}function E(n,t,e=n,s){var r,a;if(t===y)return t;let i=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const o=x(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(n),i._$AT(n,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=E(n,i._$AS(n,t.values),i,s)),t}class bt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??A).importNode(e,!0);g.currentNode=i;let o=g.nextNode(),r=0,a=0,h=s[0];for(;h!==void 0;){if(r===h.index){let c;h.type===2?c=new M(o,o.nextSibling,this,t):h.type===1?c=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(c=new Pt(o,this,t)),this._$AV.push(c),h=s[++a]}r!==(h==null?void 0:h.index)&&(o=g.nextNode(),r++)}return g.currentNode=A,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class M{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),x(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):At(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&x(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=U.createElement(ot(s.h,s.h[0]),this.options)),s);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(e);else{const r=new bt(i,this),a=r.u(this.options);r.p(e),this.T(a),this._$AH=r}}_$AC(t){let e=Y.get(t.strings);return e===void 0&&Y.set(t.strings,e=new U(t)),e}k(t){V(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new M(this.O(P()),this.O(P()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(o===void 0)t=E(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==y,r&&(this._$AH=t);else{const a=t;let h,c;for(t=o[0],h=0;h<o.length-1;h++)c=E(this,a[s+h],e,h),c===y&&(c=this._$AH[h]),r||(r=!x(c)||c!==this._$AH[h]),c===d?t=d:t!==d&&(t+=(c??"")+o[h+1]),this._$AH[h]=c}r&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class St extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class wt extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Ct extends R{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=E(this,t,e,0)??d)===y)return;const s=this._$AH,i=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==d&&(s===d||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Pt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){E(this,t)}}const z=w.litHtmlPolyfillSupport;z==null||z(U,M),(w.litHtmlVersions??(w.litHtmlVersions=[])).push("3.2.1");const ht=(n,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const o=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new M(t.insertBefore(P(),o),o,void 0,e??{})}return i._$AI(n),i};/**
|
|
33
|
+
* @license
|
|
34
|
+
* Copyright 2017 Google LLC
|
|
35
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
+
*/let C=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ht(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return y}};var tt;C._$litElement$=!0,C.finalized=!0,(tt=globalThis.litElementHydrateSupport)==null||tt.call(globalThis,{LitElement:C});const D=globalThis.litElementPolyfillSupport;D==null||D({LitElement:C});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
|
|
37
|
+
* @license
|
|
38
|
+
* Copyright 2017 Google LLC
|
|
39
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
+
*/const xt={attribute:!0,type:String,converter:H,reflect:!1,hasChanged:j},Ut=(n=xt,t,e)=>{const{kind:s,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(e.name,n),s==="accessor"){const{name:r}=e;return{set(a){const h=t.get.call(this);t.set.call(this,a),this.requestUpdate(r,h,n)},init(a){return a!==void 0&&this.P(r,void 0,n),a}}}if(s==="setter"){const{name:r}=e;return function(a){const h=this[r];t.call(this,a),this.requestUpdate(r,h,n)}}throw Error("Unsupported decorator location: "+s)};function Mt(n){return(t,e)=>typeof e=="object"?Ut(n,t,e):((s,i,o)=>{const r=i.hasOwnProperty(o);return i.constructor.createProperty(o,r?{...s,wrapped:!0}:s),r?Object.getOwnPropertyDescriptor(i,o):void 0})(n,t,e)}const B=new Set,Tt=()=>{const n=document.documentElement.dir==="rtl"?document.documentElement.dir:"ltr";B.forEach(t=>{t.setAttribute("dir",n)})},Ot=new MutationObserver(Tt);Ot.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ht=n=>n.startManagingContentDirection!==void 0||n.tagName==="LUZMO-THEME";function at(n){class t extends n{get isLTR(){return this.dir==="ltr"}hasVisibleFocusInTree(){const i=((o=document)=>{var h;let r=o.activeElement;for(;r!=null&&r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;const a=r?[r]:[];for(;r;){const c=r.assignedSlot||r.parentElement||((h=r.getRootNode())==null?void 0:h.host);c&&a.push(c),r=c}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&&!Ht(s);)s=s.assignedSlot||s.parentNode||s.host;if(this.dir=s.dir==="rtl"?s.dir:this.dir||"ltr",s===document.documentElement)B.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?B.delete(this):this._dirParent.stopManagingContentDirection(this),this.removeAttribute("dir"))}}return t}class Nt extends at(C){}exports.B=ht;exports.E=d;exports.LuzmoElement=Nt;exports.LuzmoMixin=at;exports.T=y;exports.n=Mt;exports.r=st;exports.x=vt;
|
|
@@ -15,4 +15,8 @@
|
|
|
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
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/const o=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);exports.e=o;
|