@telia-ace/alliance-ui 1.0.0-beta.9 → 1.0.1-next.0
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/CHANGELOG.md +9 -0
- package/README.md +9 -13
- package/dist/{check-circle-filled.df23e8c5.js → check-circle-filled.15ce385b.js} +1 -1
- package/dist/check-circle-filled.15ce385b.js.map +1 -0
- package/dist/{chevron-down.d3b31c8e.js → chevron-down.b9f6ab41.js} +1 -1
- package/dist/chevron-down.b9f6ab41.js.map +1 -0
- package/dist/{close.676a0585.js → close.463d2363.js} +1 -1
- package/dist/close.463d2363.js.map +1 -0
- package/dist/components/alliance-object-list-row.d.ts +1 -1
- package/dist/components/alliance-object-list.d.ts +0 -2
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +886 -0
- package/dist/components/index.js.map +1 -0
- package/dist/{error-filled.75f308c7.js → error-filled.c558cf39.js} +1 -1
- package/dist/error-filled.c558cf39.js.map +1 -0
- package/dist/{getSvgContent.d324bd28.js → getSvgContent.d049b7fe.js} +1 -1
- package/dist/getSvgContent.d049b7fe.js.map +1 -0
- package/dist/{index.ad92b4ca.js → index.022d1bd0.js} +1 -1
- package/dist/index.022d1bd0.js.map +1 -0
- package/dist/{stringCombiner.7c02f991.js → stringCombiner.85170030.js} +1 -1
- package/dist/stringCombiner.85170030.js.map +1 -0
- package/dist/{telia-button-text2.fa5110ba.js → telia-button-text2.f3b33f1c.js} +4 -4
- package/dist/telia-button-text2.f3b33f1c.js.map +1 -0
- package/dist/{telia-card-frame2.5fe5162d.js → telia-card-frame2.917aff8c.js} +3 -3
- package/dist/telia-card-frame2.917aff8c.js.map +1 -0
- package/dist/{telia-divider.a3153134.js → telia-divider.2f6c500d.js} +3 -3
- package/dist/telia-divider.2f6c500d.js.map +1 -0
- package/dist/{telia-field-assistive-text2.4224fc51.js → telia-field-assistive-text2.115200d5.js} +3 -3
- package/dist/telia-field-assistive-text2.115200d5.js.map +1 -0
- package/dist/{telia-field-error2.fac3aa1e.js → telia-field-error2.8b77d421.js} +5 -5
- package/dist/telia-field-error2.8b77d421.js.map +1 -0
- package/dist/{telia-field-valid2.60868309.js → telia-field-valid2.225eba1d.js} +5 -5
- package/dist/telia-field-valid2.225eba1d.js.map +1 -0
- package/dist/telia-heading2.dd45b060.js +98 -0
- package/dist/telia-heading2.dd45b060.js.map +1 -0
- package/dist/{telia-icon2.0c9ea836.js → telia-icon2.5d22f194.js} +4 -4
- package/dist/telia-icon2.5d22f194.js.map +1 -0
- package/dist/{telia-label2.be754448.js → telia-label2.94b013ed.js} +3 -3
- package/dist/telia-label2.94b013ed.js.map +1 -0
- package/dist/{telia-link2.c5af4c49.js → telia-link2.6944ea99.js} +4 -4
- package/dist/telia-link2.6944ea99.js.map +1 -0
- package/dist/{telia-navigation-button2.ef7e74f8.js → telia-navigation-button2.09d3cd74.js} +4 -4
- package/dist/telia-navigation-button2.09d3cd74.js.map +1 -0
- package/dist/{telia-style-link2.0f5c9c6d.js → telia-style-link2.2157e4d2.js} +3 -3
- package/dist/telia-style-link2.2157e4d2.js.map +1 -0
- package/dist/{telia-style-navigation-item2.82fd9462.js → telia-style-navigation-item2.0dd2d468.js} +3 -3
- package/dist/telia-style-navigation-item2.0dd2d468.js.map +1 -0
- package/dist/{telia-tab-header2.7a976c0e.js → telia-tab-header2.422e5861.js} +4 -4
- package/dist/telia-tab-header2.422e5861.js.map +1 -0
- package/dist/{telia-visually-hidden2.9ef6df27.js → telia-visually-hidden2.972955ad.js} +3 -3
- package/dist/telia-visually-hidden2.972955ad.js.map +1 -0
- package/dist/{telia-vst2.f685dec5.js → telia-vst2.40d3cfa0.js} +2 -2
- package/dist/telia-vst2.40d3cfa0.js.map +1 -0
- package/dist/{uniqueId.5229d1b5.js → uniqueId.1b972433.js} +1 -1
- package/dist/uniqueId.1b972433.js.map +1 -0
- package/dist/{index.b819c3f8.js → variables.ea04dbc4.js} +29 -24
- package/dist/variables.ea04dbc4.js.map +1 -0
- package/dist/voca/components/telia-accordion-item.js +9 -6
- package/dist/voca/components/telia-accordion-item.js.map +1 -1
- package/dist/voca/components/telia-accordion.js +3 -3
- package/dist/voca/components/telia-accordion.js.map +1 -1
- package/dist/voca/components/telia-badge.js +2 -2
- package/dist/voca/components/telia-badge.js.map +1 -1
- package/dist/voca/components/telia-button-text.js +5 -5
- package/dist/voca/components/telia-button.js +4 -4
- package/dist/voca/components/telia-button.js.map +1 -1
- package/dist/voca/components/telia-card-frame-link.js +5 -5
- package/dist/voca/components/telia-card-frame-link.js.map +1 -1
- package/dist/voca/components/telia-card-frame.js +3 -3
- package/dist/voca/components/telia-checkbox.js +7 -7
- package/dist/voca/components/telia-checkbox.js.map +1 -1
- package/dist/voca/components/telia-chip-choice.js +6 -4
- package/dist/voca/components/telia-chip-choice.js.map +1 -1
- package/dist/voca/components/telia-chip-filter.js +8 -6
- package/dist/voca/components/telia-chip-filter.js.map +1 -1
- package/dist/voca/components/telia-col.d.ts +1 -0
- package/dist/voca/components/telia-col.js +47 -0
- package/dist/voca/components/telia-col.js.map +1 -0
- package/dist/voca/components/telia-color-dot.js +2 -2
- package/dist/voca/components/telia-color-dot.js.map +1 -1
- package/dist/voca/components/telia-cta-link.js +4 -4
- package/dist/voca/components/telia-cta-link.js.map +1 -1
- package/dist/voca/components/telia-date-picker.js +13 -13
- package/dist/voca/components/telia-date-picker.js.map +1 -1
- package/dist/voca/components/telia-divider.js +3 -3
- package/dist/voca/components/telia-field-assistive-text.js +3 -3
- package/dist/voca/components/telia-field-error.js +6 -6
- package/dist/voca/components/telia-field-valid.js +6 -6
- package/dist/voca/components/telia-fieldset.js +9 -6
- package/dist/voca/components/telia-fieldset.js.map +1 -1
- package/dist/voca/components/telia-focus-trap.js +2 -2
- package/dist/voca/components/telia-focus-trap.js.map +1 -1
- package/dist/voca/components/telia-form.js +2 -2
- package/dist/voca/components/telia-form.js.map +1 -1
- package/dist/voca/components/telia-grid.d.ts +1 -0
- package/dist/voca/components/telia-grid.js +29 -0
- package/dist/voca/components/telia-grid.js.map +1 -0
- package/dist/voca/components/telia-heading.js +3 -3
- package/dist/voca/components/telia-icon.js +4 -4
- package/dist/voca/components/telia-image.js +2 -2
- package/dist/voca/components/telia-image.js.map +1 -1
- package/dist/voca/components/telia-label.js +3 -3
- package/dist/voca/components/telia-link-image.js +5 -5
- package/dist/voca/components/telia-link-image.js.map +1 -1
- package/dist/voca/components/telia-link.js +4 -4
- package/dist/voca/components/telia-list.js +2 -2
- package/dist/voca/components/telia-list.js.map +1 -1
- package/dist/voca/components/telia-logo.js +2 -2
- package/dist/voca/components/telia-logo.js.map +1 -1
- package/dist/voca/components/telia-navigation-button.js +4 -4
- package/dist/voca/components/telia-navigation-dropdown.js +6 -6
- package/dist/voca/components/telia-navigation-dropdown.js.map +1 -1
- package/dist/voca/components/telia-navigation-link.js +3 -3
- package/dist/voca/components/telia-navigation-link.js.map +1 -1
- package/dist/voca/components/telia-notification.js +9 -9
- package/dist/voca/components/telia-notification.js.map +1 -1
- package/dist/voca/components/telia-overlay.js +2 -2
- package/dist/voca/components/telia-overlay.js.map +1 -1
- package/dist/voca/components/telia-p.js +9 -3
- package/dist/voca/components/telia-p.js.map +1 -1
- package/dist/voca/components/telia-pictogram.js +3 -3
- package/dist/voca/components/telia-pictogram.js.map +1 -1
- package/dist/voca/components/telia-radio-button.js +3 -3
- package/dist/voca/components/telia-radio-button.js.map +1 -1
- package/dist/voca/components/telia-row.d.ts +1 -0
- package/dist/voca/components/telia-row.js +37 -0
- package/dist/voca/components/telia-row.js.map +1 -0
- package/dist/voca/components/telia-select.js +10 -10
- package/dist/voca/components/telia-select.js.map +1 -1
- package/dist/voca/components/telia-skeleton.js +2 -2
- package/dist/voca/components/telia-skeleton.js.map +1 -1
- package/dist/voca/components/telia-status-badge.js +4 -4
- package/dist/voca/components/telia-status-badge.js.map +1 -1
- package/dist/voca/components/telia-style-link.js +3 -3
- package/dist/voca/components/telia-style-navigation-item.js +3 -3
- package/dist/voca/components/telia-tab-content.js +2 -2
- package/dist/voca/components/telia-tab-content.js.map +1 -1
- package/dist/voca/components/telia-tab-header.js +5 -5
- package/dist/voca/components/telia-tab.js +21 -25
- package/dist/voca/components/telia-tab.js.map +1 -1
- package/dist/voca/components/telia-text-input.js +13 -13
- package/dist/voca/components/telia-text-input.js.map +1 -1
- package/dist/voca/components/telia-text-spacing.js +2 -2
- package/dist/voca/components/telia-text-spacing.js.map +1 -1
- package/dist/voca/components/telia-textarea.js +10 -10
- package/dist/voca/components/telia-textarea.js.map +1 -1
- package/dist/voca/components/telia-toggle.js +3 -3
- package/dist/voca/components/telia-toggle.js.map +1 -1
- package/dist/voca/components/telia-visually-hidden.js +3 -3
- package/dist/voca/foundations/index.js +8 -9
- package/dist/voca/foundations/index.js.map +1 -1
- package/dist/voca/icons/index.js.map +1 -1
- package/package.json +8 -7
- package/dist/check-circle-filled.df23e8c5.js.map +0 -1
- package/dist/chevron-down.d3b31c8e.js.map +0 -1
- package/dist/close.676a0585.js.map +0 -1
- package/dist/components/alliance-object-list-head.js +0 -43
- package/dist/components/alliance-object-list-head.js.map +0 -1
- package/dist/components/alliance-object-list-item.js +0 -39
- package/dist/components/alliance-object-list-item.js.map +0 -1
- package/dist/components/alliance-object-list-row.js +0 -64
- package/dist/components/alliance-object-list-row.js.map +0 -1
- package/dist/components/alliance-object-list.js +0 -177
- package/dist/components/alliance-object-list.js.map +0 -1
- package/dist/error-filled.75f308c7.js.map +0 -1
- package/dist/getSvgContent.d324bd28.js.map +0 -1
- package/dist/index.ad92b4ca.js.map +0 -1
- package/dist/index.b819c3f8.js.map +0 -1
- package/dist/query-assigned-elements.859d7b76.js +0 -605
- package/dist/query-assigned-elements.859d7b76.js.map +0 -1
- package/dist/stringCombiner.7c02f991.js.map +0 -1
- package/dist/telia-button-text2.fa5110ba.js.map +0 -1
- package/dist/telia-card-frame2.5fe5162d.js.map +0 -1
- package/dist/telia-divider.a3153134.js.map +0 -1
- package/dist/telia-field-assistive-text2.4224fc51.js.map +0 -1
- package/dist/telia-field-error2.fac3aa1e.js.map +0 -1
- package/dist/telia-field-valid2.60868309.js.map +0 -1
- package/dist/telia-heading2.60bf02b3.js +0 -71
- package/dist/telia-heading2.60bf02b3.js.map +0 -1
- package/dist/telia-icon2.0c9ea836.js.map +0 -1
- package/dist/telia-label2.be754448.js.map +0 -1
- package/dist/telia-link2.c5af4c49.js.map +0 -1
- package/dist/telia-navigation-button2.ef7e74f8.js.map +0 -1
- package/dist/telia-style-link2.0f5c9c6d.js.map +0 -1
- package/dist/telia-style-navigation-item2.82fd9462.js.map +0 -1
- package/dist/telia-tab-header2.7a976c0e.js.map +0 -1
- package/dist/telia-visually-hidden2.9ef6df27.js.map +0 -1
- package/dist/telia-vst2.f685dec5.js.map +0 -1
- package/dist/uniqueId.5229d1b5.js.map +0 -1
- package/dist/variables.197b13a1.js +0 -8
- package/dist/variables.197b13a1.js.map +0 -1
|
@@ -0,0 +1,886 @@
|
|
|
1
|
+
import "../telia-label2.94b013ed.js";
|
|
2
|
+
import { s as St, m as lt, c as at, f as ht } from "../variables.ea04dbc4.js";
|
|
3
|
+
import "../telia-divider.2f6c500d.js";
|
|
4
|
+
import "../index.022d1bd0.js";
|
|
5
|
+
import "../telia-vst2.40d3cfa0.js";
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2019 Google LLC
|
|
9
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
10
|
+
*/
|
|
11
|
+
const L = window, st = L.ShadowRoot && (L.ShadyCSS === void 0 || L.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, it = Symbol(), ct = /* @__PURE__ */ new WeakMap();
|
|
12
|
+
class wt {
|
|
13
|
+
constructor(t, e, s) {
|
|
14
|
+
if (this._$cssResult$ = !0, s !== it)
|
|
15
|
+
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
16
|
+
this.cssText = t, this.t = e;
|
|
17
|
+
}
|
|
18
|
+
get styleSheet() {
|
|
19
|
+
let t = this.o;
|
|
20
|
+
const e = this.t;
|
|
21
|
+
if (st && t === void 0) {
|
|
22
|
+
const s = e !== void 0 && e.length === 1;
|
|
23
|
+
s && (t = ct.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ct.set(e, t));
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
}
|
|
27
|
+
toString() {
|
|
28
|
+
return this.cssText;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const f = (n) => new wt(typeof n == "string" ? n : n + "", void 0, it), q = (n, ...t) => {
|
|
32
|
+
const e = n.length === 1 ? n[0] : t.reduce((s, i, r) => s + ((o) => {
|
|
33
|
+
if (o._$cssResult$ === !0)
|
|
34
|
+
return o.cssText;
|
|
35
|
+
if (typeof o == "number")
|
|
36
|
+
return o;
|
|
37
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
38
|
+
})(i) + n[r + 1], n[0]);
|
|
39
|
+
return new wt(e, n, it);
|
|
40
|
+
}, Lt = (n, t) => {
|
|
41
|
+
st ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
|
|
42
|
+
const s = document.createElement("style"), i = L.litNonce;
|
|
43
|
+
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, n.appendChild(s);
|
|
44
|
+
});
|
|
45
|
+
}, dt = st ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
46
|
+
let e = "";
|
|
47
|
+
for (const s of t.cssRules)
|
|
48
|
+
e += s.cssText;
|
|
49
|
+
return f(e);
|
|
50
|
+
})(n) : n;
|
|
51
|
+
/**
|
|
52
|
+
* @license
|
|
53
|
+
* Copyright 2017 Google LLC
|
|
54
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
+
*/
|
|
56
|
+
var J;
|
|
57
|
+
const D = window, ut = D.trustedTypes, Dt = ut ? ut.emptyScript : "", pt = D.reactiveElementPolyfillSupport, et = { toAttribute(n, t) {
|
|
58
|
+
switch (t) {
|
|
59
|
+
case Boolean:
|
|
60
|
+
n = n ? Dt : null;
|
|
61
|
+
break;
|
|
62
|
+
case Object:
|
|
63
|
+
case Array:
|
|
64
|
+
n = n == null ? n : JSON.stringify(n);
|
|
65
|
+
}
|
|
66
|
+
return n;
|
|
67
|
+
}, fromAttribute(n, t) {
|
|
68
|
+
let e = n;
|
|
69
|
+
switch (t) {
|
|
70
|
+
case Boolean:
|
|
71
|
+
e = n !== null;
|
|
72
|
+
break;
|
|
73
|
+
case Number:
|
|
74
|
+
e = n === null ? null : Number(n);
|
|
75
|
+
break;
|
|
76
|
+
case Object:
|
|
77
|
+
case Array:
|
|
78
|
+
try {
|
|
79
|
+
e = JSON.parse(n);
|
|
80
|
+
} catch {
|
|
81
|
+
e = null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return e;
|
|
85
|
+
} }, Ct = (n, t) => t !== n && (t == t || n == n), F = { attribute: !0, type: String, converter: et, reflect: !1, hasChanged: Ct };
|
|
86
|
+
class w extends HTMLElement {
|
|
87
|
+
constructor() {
|
|
88
|
+
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
|
|
89
|
+
}
|
|
90
|
+
static addInitializer(t) {
|
|
91
|
+
var e;
|
|
92
|
+
(e = this.h) !== null && e !== void 0 || (this.h = []), this.h.push(t);
|
|
93
|
+
}
|
|
94
|
+
static get observedAttributes() {
|
|
95
|
+
this.finalize();
|
|
96
|
+
const t = [];
|
|
97
|
+
return this.elementProperties.forEach((e, s) => {
|
|
98
|
+
const i = this._$Ep(s, e);
|
|
99
|
+
i !== void 0 && (this._$Ev.set(i, s), t.push(i));
|
|
100
|
+
}), t;
|
|
101
|
+
}
|
|
102
|
+
static createProperty(t, e = F) {
|
|
103
|
+
if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
104
|
+
const s = typeof t == "symbol" ? Symbol() : "__" + t, i = this.getPropertyDescriptor(t, s, e);
|
|
105
|
+
i !== void 0 && Object.defineProperty(this.prototype, t, i);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
static getPropertyDescriptor(t, e, s) {
|
|
109
|
+
return { get() {
|
|
110
|
+
return this[e];
|
|
111
|
+
}, set(i) {
|
|
112
|
+
const r = this[t];
|
|
113
|
+
this[e] = i, this.requestUpdate(t, r, s);
|
|
114
|
+
}, configurable: !0, enumerable: !0 };
|
|
115
|
+
}
|
|
116
|
+
static getPropertyOptions(t) {
|
|
117
|
+
return this.elementProperties.get(t) || F;
|
|
118
|
+
}
|
|
119
|
+
static finalize() {
|
|
120
|
+
if (this.hasOwnProperty("finalized"))
|
|
121
|
+
return !1;
|
|
122
|
+
this.finalized = !0;
|
|
123
|
+
const t = Object.getPrototypeOf(this);
|
|
124
|
+
if (t.finalize(), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
|
|
125
|
+
const e = this.properties, s = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
|
|
126
|
+
for (const i of s)
|
|
127
|
+
this.createProperty(i, e[i]);
|
|
128
|
+
}
|
|
129
|
+
return this.elementStyles = this.finalizeStyles(this.styles), !0;
|
|
130
|
+
}
|
|
131
|
+
static finalizeStyles(t) {
|
|
132
|
+
const e = [];
|
|
133
|
+
if (Array.isArray(t)) {
|
|
134
|
+
const s = new Set(t.flat(1 / 0).reverse());
|
|
135
|
+
for (const i of s)
|
|
136
|
+
e.unshift(dt(i));
|
|
137
|
+
} else
|
|
138
|
+
t !== void 0 && e.push(dt(t));
|
|
139
|
+
return e;
|
|
140
|
+
}
|
|
141
|
+
static _$Ep(t, e) {
|
|
142
|
+
const s = e.attribute;
|
|
143
|
+
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
144
|
+
}
|
|
145
|
+
u() {
|
|
146
|
+
var t;
|
|
147
|
+
this._$E_ = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((e) => e(this));
|
|
148
|
+
}
|
|
149
|
+
addController(t) {
|
|
150
|
+
var e, s;
|
|
151
|
+
((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((s = t.hostConnected) === null || s === void 0 || s.call(t));
|
|
152
|
+
}
|
|
153
|
+
removeController(t) {
|
|
154
|
+
var e;
|
|
155
|
+
(e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
|
|
156
|
+
}
|
|
157
|
+
_$Eg() {
|
|
158
|
+
this.constructor.elementProperties.forEach((t, e) => {
|
|
159
|
+
this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
createRenderRoot() {
|
|
163
|
+
var t;
|
|
164
|
+
const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
165
|
+
return Lt(e, this.constructor.elementStyles), e;
|
|
166
|
+
}
|
|
167
|
+
connectedCallback() {
|
|
168
|
+
var t;
|
|
169
|
+
this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
|
|
170
|
+
var s;
|
|
171
|
+
return (s = e.hostConnected) === null || s === void 0 ? void 0 : s.call(e);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
enableUpdating(t) {
|
|
175
|
+
}
|
|
176
|
+
disconnectedCallback() {
|
|
177
|
+
var t;
|
|
178
|
+
(t = this._$ES) === null || t === void 0 || t.forEach((e) => {
|
|
179
|
+
var s;
|
|
180
|
+
return (s = e.hostDisconnected) === null || s === void 0 ? void 0 : s.call(e);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
attributeChangedCallback(t, e, s) {
|
|
184
|
+
this._$AK(t, s);
|
|
185
|
+
}
|
|
186
|
+
_$EO(t, e, s = F) {
|
|
187
|
+
var i;
|
|
188
|
+
const r = this.constructor._$Ep(t, s);
|
|
189
|
+
if (r !== void 0 && s.reflect === !0) {
|
|
190
|
+
const o = (((i = s.converter) === null || i === void 0 ? void 0 : i.toAttribute) !== void 0 ? s.converter : et).toAttribute(e, s.type);
|
|
191
|
+
this._$El = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$El = null;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
_$AK(t, e) {
|
|
195
|
+
var s;
|
|
196
|
+
const i = this.constructor, r = i._$Ev.get(t);
|
|
197
|
+
if (r !== void 0 && this._$El !== r) {
|
|
198
|
+
const o = i.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter : et;
|
|
199
|
+
this._$El = r, this[r] = c.fromAttribute(e, o.type), this._$El = null;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
requestUpdate(t, e, s) {
|
|
203
|
+
let i = !0;
|
|
204
|
+
t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || Ct)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : i = !1), !this.isUpdatePending && i && (this._$E_ = this._$Ej());
|
|
205
|
+
}
|
|
206
|
+
async _$Ej() {
|
|
207
|
+
this.isUpdatePending = !0;
|
|
208
|
+
try {
|
|
209
|
+
await this._$E_;
|
|
210
|
+
} catch (e) {
|
|
211
|
+
Promise.reject(e);
|
|
212
|
+
}
|
|
213
|
+
const t = this.scheduleUpdate();
|
|
214
|
+
return t != null && await t, !this.isUpdatePending;
|
|
215
|
+
}
|
|
216
|
+
scheduleUpdate() {
|
|
217
|
+
return this.performUpdate();
|
|
218
|
+
}
|
|
219
|
+
performUpdate() {
|
|
220
|
+
var t;
|
|
221
|
+
if (!this.isUpdatePending)
|
|
222
|
+
return;
|
|
223
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach((i, r) => this[r] = i), this._$Ei = void 0);
|
|
224
|
+
let e = !1;
|
|
225
|
+
const s = this._$AL;
|
|
226
|
+
try {
|
|
227
|
+
e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$ES) === null || t === void 0 || t.forEach((i) => {
|
|
228
|
+
var r;
|
|
229
|
+
return (r = i.hostUpdate) === null || r === void 0 ? void 0 : r.call(i);
|
|
230
|
+
}), this.update(s)) : this._$Ek();
|
|
231
|
+
} catch (i) {
|
|
232
|
+
throw e = !1, this._$Ek(), i;
|
|
233
|
+
}
|
|
234
|
+
e && this._$AE(s);
|
|
235
|
+
}
|
|
236
|
+
willUpdate(t) {
|
|
237
|
+
}
|
|
238
|
+
_$AE(t) {
|
|
239
|
+
var e;
|
|
240
|
+
(e = this._$ES) === null || e === void 0 || e.forEach((s) => {
|
|
241
|
+
var i;
|
|
242
|
+
return (i = s.hostUpdated) === null || i === void 0 ? void 0 : i.call(s);
|
|
243
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
244
|
+
}
|
|
245
|
+
_$Ek() {
|
|
246
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
247
|
+
}
|
|
248
|
+
get updateComplete() {
|
|
249
|
+
return this.getUpdateComplete();
|
|
250
|
+
}
|
|
251
|
+
getUpdateComplete() {
|
|
252
|
+
return this._$E_;
|
|
253
|
+
}
|
|
254
|
+
shouldUpdate(t) {
|
|
255
|
+
return !0;
|
|
256
|
+
}
|
|
257
|
+
update(t) {
|
|
258
|
+
this._$EC !== void 0 && (this._$EC.forEach((e, s) => this._$EO(s, this[s], e)), this._$EC = void 0), this._$Ek();
|
|
259
|
+
}
|
|
260
|
+
updated(t) {
|
|
261
|
+
}
|
|
262
|
+
firstUpdated(t) {
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
w.finalized = !0, w.elementProperties = /* @__PURE__ */ new Map(), w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, pt == null || pt({ ReactiveElement: w }), ((J = D.reactiveElementVersions) !== null && J !== void 0 ? J : D.reactiveElementVersions = []).push("1.4.1");
|
|
266
|
+
/**
|
|
267
|
+
* @license
|
|
268
|
+
* Copyright 2017 Google LLC
|
|
269
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
270
|
+
*/
|
|
271
|
+
var Q;
|
|
272
|
+
const I = window, x = I.trustedTypes, $t = x ? x.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, y = `lit$${(Math.random() + "").slice(9)}$`, nt = "?" + y, It = `<${nt}>`, O = document, j = (n = "") => O.createComment(n), N = (n) => n === null || typeof n != "object" && typeof n != "function", Pt = Array.isArray, xt = (n) => Pt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, vt = /-->/g, _t = />/g, g = RegExp(`>|[
|
|
273
|
+
\f\r](?:([^\\s"'>=/]+)([
|
|
274
|
+
\f\r]*=[
|
|
275
|
+
\f\r]*(?:[^
|
|
276
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ft = /'/g, At = /"/g, Ot = /^(?:script|style|textarea|title)$/i, zt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), C = zt(1), E = Symbol.for("lit-noChange"), v = Symbol.for("lit-nothing"), yt = /* @__PURE__ */ new WeakMap(), P = O.createTreeWalker(O, 129, null, !1), Ut = (n, t) => {
|
|
277
|
+
const e = n.length - 1, s = [];
|
|
278
|
+
let i, r = t === 2 ? "<svg>" : "", o = T;
|
|
279
|
+
for (let a = 0; a < e; a++) {
|
|
280
|
+
const l = n[a];
|
|
281
|
+
let _, d, h = -1, u = 0;
|
|
282
|
+
for (; u < l.length && (o.lastIndex = u, d = o.exec(l), d !== null); )
|
|
283
|
+
u = o.lastIndex, o === T ? d[1] === "!--" ? o = vt : d[1] !== void 0 ? o = _t : d[2] !== void 0 ? (Ot.test(d[2]) && (i = RegExp("</" + d[2], "g")), o = g) : d[3] !== void 0 && (o = g) : o === g ? d[0] === ">" ? (o = i != null ? i : T, h = -1) : d[1] === void 0 ? h = -2 : (h = o.lastIndex - d[2].length, _ = d[1], o = d[3] === void 0 ? g : d[3] === '"' ? At : ft) : o === At || o === ft ? o = g : o === vt || o === _t ? o = T : (o = g, i = void 0);
|
|
284
|
+
const p = o === g && n[a + 1].startsWith("/>") ? " " : "";
|
|
285
|
+
r += o === T ? l + It : h >= 0 ? (s.push(_), l.slice(0, h) + "$lit$" + l.slice(h) + y + p) : l + y + (h === -2 ? (s.push(void 0), a) : p);
|
|
286
|
+
}
|
|
287
|
+
const c = r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "");
|
|
288
|
+
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
|
289
|
+
throw Error("invalid template strings array");
|
|
290
|
+
return [$t !== void 0 ? $t.createHTML(c) : c, s];
|
|
291
|
+
};
|
|
292
|
+
class M {
|
|
293
|
+
constructor({ strings: t, _$litType$: e }, s) {
|
|
294
|
+
let i;
|
|
295
|
+
this.parts = [];
|
|
296
|
+
let r = 0, o = 0;
|
|
297
|
+
const c = t.length - 1, a = this.parts, [l, _] = Ut(t, e);
|
|
298
|
+
if (this.el = M.createElement(l, s), P.currentNode = this.el.content, e === 2) {
|
|
299
|
+
const d = this.el.content, h = d.firstChild;
|
|
300
|
+
h.remove(), d.append(...h.childNodes);
|
|
301
|
+
}
|
|
302
|
+
for (; (i = P.nextNode()) !== null && a.length < c; ) {
|
|
303
|
+
if (i.nodeType === 1) {
|
|
304
|
+
if (i.hasAttributes()) {
|
|
305
|
+
const d = [];
|
|
306
|
+
for (const h of i.getAttributeNames())
|
|
307
|
+
if (h.endsWith("$lit$") || h.startsWith(y)) {
|
|
308
|
+
const u = _[o++];
|
|
309
|
+
if (d.push(h), u !== void 0) {
|
|
310
|
+
const p = i.getAttribute(u.toLowerCase() + "$lit$").split(y), $ = /([.?@])?(.*)/.exec(u);
|
|
311
|
+
a.push({ type: 1, index: r, name: $[2], strings: p, ctor: $[1] === "." ? Ht : $[1] === "?" ? jt : $[1] === "@" ? Nt : k });
|
|
312
|
+
} else
|
|
313
|
+
a.push({ type: 6, index: r });
|
|
314
|
+
}
|
|
315
|
+
for (const h of d)
|
|
316
|
+
i.removeAttribute(h);
|
|
317
|
+
}
|
|
318
|
+
if (Ot.test(i.tagName)) {
|
|
319
|
+
const d = i.textContent.split(y), h = d.length - 1;
|
|
320
|
+
if (h > 0) {
|
|
321
|
+
i.textContent = x ? x.emptyScript : "";
|
|
322
|
+
for (let u = 0; u < h; u++)
|
|
323
|
+
i.append(d[u], j()), P.nextNode(), a.push({ type: 2, index: ++r });
|
|
324
|
+
i.append(d[h], j());
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
} else if (i.nodeType === 8)
|
|
328
|
+
if (i.data === nt)
|
|
329
|
+
a.push({ type: 2, index: r });
|
|
330
|
+
else {
|
|
331
|
+
let d = -1;
|
|
332
|
+
for (; (d = i.data.indexOf(y, d + 1)) !== -1; )
|
|
333
|
+
a.push({ type: 7, index: r }), d += y.length - 1;
|
|
334
|
+
}
|
|
335
|
+
r++;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
static createElement(t, e) {
|
|
339
|
+
const s = O.createElement("template");
|
|
340
|
+
return s.innerHTML = t, s;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
function S(n, t, e = n, s) {
|
|
344
|
+
var i, r, o, c;
|
|
345
|
+
if (t === E)
|
|
346
|
+
return t;
|
|
347
|
+
let a = s !== void 0 ? (i = e._$Co) === null || i === void 0 ? void 0 : i[s] : e._$Cl;
|
|
348
|
+
const l = N(t) ? void 0 : t._$litDirective$;
|
|
349
|
+
return (a == null ? void 0 : a.constructor) !== l && ((r = a == null ? void 0 : a._$AO) === null || r === void 0 || r.call(a, !1), l === void 0 ? a = void 0 : (a = new l(n), a._$AT(n, e, s)), s !== void 0 ? ((o = (c = e)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[s] = a : e._$Cl = a), a !== void 0 && (t = S(n, a._$AS(n, t.values), a, s)), t;
|
|
350
|
+
}
|
|
351
|
+
class Tt {
|
|
352
|
+
constructor(t, e) {
|
|
353
|
+
this.u = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
354
|
+
}
|
|
355
|
+
get parentNode() {
|
|
356
|
+
return this._$AM.parentNode;
|
|
357
|
+
}
|
|
358
|
+
get _$AU() {
|
|
359
|
+
return this._$AM._$AU;
|
|
360
|
+
}
|
|
361
|
+
v(t) {
|
|
362
|
+
var e;
|
|
363
|
+
const { el: { content: s }, parts: i } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : O).importNode(s, !0);
|
|
364
|
+
P.currentNode = r;
|
|
365
|
+
let o = P.nextNode(), c = 0, a = 0, l = i[0];
|
|
366
|
+
for (; l !== void 0; ) {
|
|
367
|
+
if (c === l.index) {
|
|
368
|
+
let _;
|
|
369
|
+
l.type === 2 ? _ = new U(o, o.nextSibling, this, t) : l.type === 1 ? _ = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (_ = new Mt(o, this, t)), this.u.push(_), l = i[++a];
|
|
370
|
+
}
|
|
371
|
+
c !== (l == null ? void 0 : l.index) && (o = P.nextNode(), c++);
|
|
372
|
+
}
|
|
373
|
+
return r;
|
|
374
|
+
}
|
|
375
|
+
p(t) {
|
|
376
|
+
let e = 0;
|
|
377
|
+
for (const s of this.u)
|
|
378
|
+
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
class U {
|
|
382
|
+
constructor(t, e, s, i) {
|
|
383
|
+
var r;
|
|
384
|
+
this.type = 2, this._$AH = v, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cm = (r = i == null ? void 0 : i.isConnected) === null || r === void 0 || r;
|
|
385
|
+
}
|
|
386
|
+
get _$AU() {
|
|
387
|
+
var t, e;
|
|
388
|
+
return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cm;
|
|
389
|
+
}
|
|
390
|
+
get parentNode() {
|
|
391
|
+
let t = this._$AA.parentNode;
|
|
392
|
+
const e = this._$AM;
|
|
393
|
+
return e !== void 0 && t.nodeType === 11 && (t = e.parentNode), t;
|
|
394
|
+
}
|
|
395
|
+
get startNode() {
|
|
396
|
+
return this._$AA;
|
|
397
|
+
}
|
|
398
|
+
get endNode() {
|
|
399
|
+
return this._$AB;
|
|
400
|
+
}
|
|
401
|
+
_$AI(t, e = this) {
|
|
402
|
+
t = S(this, t, e), N(t) ? t === v || t == null || t === "" ? (this._$AH !== v && this._$AR(), this._$AH = v) : t !== this._$AH && t !== E && this.g(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : xt(t) ? this.k(t) : this.g(t);
|
|
403
|
+
}
|
|
404
|
+
O(t, e = this._$AB) {
|
|
405
|
+
return this._$AA.parentNode.insertBefore(t, e);
|
|
406
|
+
}
|
|
407
|
+
T(t) {
|
|
408
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
409
|
+
}
|
|
410
|
+
g(t) {
|
|
411
|
+
this._$AH !== v && N(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
|
|
412
|
+
}
|
|
413
|
+
$(t) {
|
|
414
|
+
var e;
|
|
415
|
+
const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = M.createElement(i.h, this.options)), i);
|
|
416
|
+
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
|
|
417
|
+
this._$AH.p(s);
|
|
418
|
+
else {
|
|
419
|
+
const o = new Tt(r, this), c = o.v(this.options);
|
|
420
|
+
o.p(s), this.T(c), this._$AH = o;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
_$AC(t) {
|
|
424
|
+
let e = yt.get(t.strings);
|
|
425
|
+
return e === void 0 && yt.set(t.strings, e = new M(t)), e;
|
|
426
|
+
}
|
|
427
|
+
k(t) {
|
|
428
|
+
Pt(this._$AH) || (this._$AH = [], this._$AR());
|
|
429
|
+
const e = this._$AH;
|
|
430
|
+
let s, i = 0;
|
|
431
|
+
for (const r of t)
|
|
432
|
+
i === e.length ? e.push(s = new U(this.O(j()), this.O(j()), this, this.options)) : s = e[i], s._$AI(r), i++;
|
|
433
|
+
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
434
|
+
}
|
|
435
|
+
_$AR(t = this._$AA.nextSibling, e) {
|
|
436
|
+
var s;
|
|
437
|
+
for ((s = this._$AP) === null || s === void 0 || s.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
438
|
+
const i = t.nextSibling;
|
|
439
|
+
t.remove(), t = i;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
setConnected(t) {
|
|
443
|
+
var e;
|
|
444
|
+
this._$AM === void 0 && (this._$Cm = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
class k {
|
|
448
|
+
constructor(t, e, s, i, r) {
|
|
449
|
+
this.type = 1, this._$AH = v, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = v;
|
|
450
|
+
}
|
|
451
|
+
get tagName() {
|
|
452
|
+
return this.element.tagName;
|
|
453
|
+
}
|
|
454
|
+
get _$AU() {
|
|
455
|
+
return this._$AM._$AU;
|
|
456
|
+
}
|
|
457
|
+
_$AI(t, e = this, s, i) {
|
|
458
|
+
const r = this.strings;
|
|
459
|
+
let o = !1;
|
|
460
|
+
if (r === void 0)
|
|
461
|
+
t = S(this, t, e, 0), o = !N(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
|
|
462
|
+
else {
|
|
463
|
+
const c = t;
|
|
464
|
+
let a, l;
|
|
465
|
+
for (t = r[0], a = 0; a < r.length - 1; a++)
|
|
466
|
+
l = S(this, c[s + a], e, a), l === E && (l = this._$AH[a]), o || (o = !N(l) || l !== this._$AH[a]), l === v ? t = v : t !== v && (t += (l != null ? l : "") + r[a + 1]), this._$AH[a] = l;
|
|
467
|
+
}
|
|
468
|
+
o && !i && this.j(t);
|
|
469
|
+
}
|
|
470
|
+
j(t) {
|
|
471
|
+
t === v ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : "");
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
class Ht extends k {
|
|
475
|
+
constructor() {
|
|
476
|
+
super(...arguments), this.type = 3;
|
|
477
|
+
}
|
|
478
|
+
j(t) {
|
|
479
|
+
this.element[this.name] = t === v ? void 0 : t;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
const Vt = x ? x.emptyScript : "";
|
|
483
|
+
class jt extends k {
|
|
484
|
+
constructor() {
|
|
485
|
+
super(...arguments), this.type = 4;
|
|
486
|
+
}
|
|
487
|
+
j(t) {
|
|
488
|
+
t && t !== v ? this.element.setAttribute(this.name, Vt) : this.element.removeAttribute(this.name);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
class Nt extends k {
|
|
492
|
+
constructor(t, e, s, i, r) {
|
|
493
|
+
super(t, e, s, i, r), this.type = 5;
|
|
494
|
+
}
|
|
495
|
+
_$AI(t, e = this) {
|
|
496
|
+
var s;
|
|
497
|
+
if ((t = (s = S(this, t, e, 0)) !== null && s !== void 0 ? s : v) === E)
|
|
498
|
+
return;
|
|
499
|
+
const i = this._$AH, r = t === v && i !== v || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== v && (i === v || r);
|
|
500
|
+
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
501
|
+
}
|
|
502
|
+
handleEvent(t) {
|
|
503
|
+
var e, s;
|
|
504
|
+
typeof this._$AH == "function" ? this._$AH.call((s = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && s !== void 0 ? s : this.element, t) : this._$AH.handleEvent(t);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
class Mt {
|
|
508
|
+
constructor(t, e, s) {
|
|
509
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
510
|
+
}
|
|
511
|
+
get _$AU() {
|
|
512
|
+
return this._$AM._$AU;
|
|
513
|
+
}
|
|
514
|
+
_$AI(t) {
|
|
515
|
+
S(this, t);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
const Wt = { P: "$lit$", A: y, M: nt, C: 1, L: Ut, R: Tt, D: xt, V: S, I: U, H: k, N: jt, U: Nt, B: Ht, F: Mt }, mt = I.litHtmlPolyfillSupport;
|
|
519
|
+
mt == null || mt(M, U), ((Q = I.litHtmlVersions) !== null && Q !== void 0 ? Q : I.litHtmlVersions = []).push("2.4.0");
|
|
520
|
+
const qt = (n, t, e) => {
|
|
521
|
+
var s, i;
|
|
522
|
+
const r = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : t;
|
|
523
|
+
let o = r._$litPart$;
|
|
524
|
+
if (o === void 0) {
|
|
525
|
+
const c = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : null;
|
|
526
|
+
r._$litPart$ = o = new U(t.insertBefore(j(), c), c, void 0, e != null ? e : {});
|
|
527
|
+
}
|
|
528
|
+
return o._$AI(n), o;
|
|
529
|
+
};
|
|
530
|
+
/**
|
|
531
|
+
* @license
|
|
532
|
+
* Copyright 2017 Google LLC
|
|
533
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
534
|
+
*/
|
|
535
|
+
var Y, G;
|
|
536
|
+
class m extends w {
|
|
537
|
+
constructor() {
|
|
538
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
539
|
+
}
|
|
540
|
+
createRenderRoot() {
|
|
541
|
+
var t, e;
|
|
542
|
+
const s = super.createRenderRoot();
|
|
543
|
+
return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = s.firstChild), s;
|
|
544
|
+
}
|
|
545
|
+
update(t) {
|
|
546
|
+
const e = this.render();
|
|
547
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = qt(e, this.renderRoot, this.renderOptions);
|
|
548
|
+
}
|
|
549
|
+
connectedCallback() {
|
|
550
|
+
var t;
|
|
551
|
+
super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
|
|
552
|
+
}
|
|
553
|
+
disconnectedCallback() {
|
|
554
|
+
var t;
|
|
555
|
+
super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
|
|
556
|
+
}
|
|
557
|
+
render() {
|
|
558
|
+
return E;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
m.finalized = !0, m._$litElement$ = !0, (Y = globalThis.litElementHydrateSupport) === null || Y === void 0 || Y.call(globalThis, { LitElement: m });
|
|
562
|
+
const gt = globalThis.litElementPolyfillSupport;
|
|
563
|
+
gt == null || gt({ LitElement: m });
|
|
564
|
+
((G = globalThis.litElementVersions) !== null && G !== void 0 ? G : globalThis.litElementVersions = []).push("3.2.2");
|
|
565
|
+
/**
|
|
566
|
+
* @license
|
|
567
|
+
* Copyright 2017 Google LLC
|
|
568
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
569
|
+
*/
|
|
570
|
+
const K = (n) => (t) => typeof t == "function" ? ((e, s) => (customElements.define(e, s), s))(n, t) : ((e, s) => {
|
|
571
|
+
const { kind: i, elements: r } = s;
|
|
572
|
+
return { kind: i, elements: r, finisher(o) {
|
|
573
|
+
customElements.define(e, o);
|
|
574
|
+
} };
|
|
575
|
+
})(n, t);
|
|
576
|
+
/**
|
|
577
|
+
* @license
|
|
578
|
+
* Copyright 2017 Google LLC
|
|
579
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
580
|
+
*/
|
|
581
|
+
const Kt = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
|
|
582
|
+
e.createProperty(t.key, n);
|
|
583
|
+
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
|
|
584
|
+
typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
|
|
585
|
+
}, finisher(e) {
|
|
586
|
+
e.createProperty(t.key, n);
|
|
587
|
+
} };
|
|
588
|
+
function B(n) {
|
|
589
|
+
return (t, e) => e !== void 0 ? ((s, i, r) => {
|
|
590
|
+
i.constructor.createProperty(r, s);
|
|
591
|
+
})(n, t, e) : Kt(n, t);
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* @license
|
|
595
|
+
* Copyright 2021 Google LLC
|
|
596
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
597
|
+
*/
|
|
598
|
+
var X;
|
|
599
|
+
((X = window.HTMLSlotElement) === null || X === void 0 ? void 0 : X.prototype.assignedElements) != null;
|
|
600
|
+
/**
|
|
601
|
+
* @license
|
|
602
|
+
* Copyright 2017 Google LLC
|
|
603
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
604
|
+
*/
|
|
605
|
+
const Zt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Jt = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
606
|
+
class Ft {
|
|
607
|
+
constructor(t) {
|
|
608
|
+
}
|
|
609
|
+
get _$AU() {
|
|
610
|
+
return this._$AM._$AU;
|
|
611
|
+
}
|
|
612
|
+
_$AT(t, e, s) {
|
|
613
|
+
this._$Ct = t, this._$AM = e, this._$Ci = s;
|
|
614
|
+
}
|
|
615
|
+
_$AS(t, e) {
|
|
616
|
+
return this.update(t, e);
|
|
617
|
+
}
|
|
618
|
+
update(t, e) {
|
|
619
|
+
return this.render(...e);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* @license
|
|
624
|
+
* Copyright 2020 Google LLC
|
|
625
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
626
|
+
*/
|
|
627
|
+
const { I: Qt } = Wt, bt = () => document.createComment(""), H = (n, t, e) => {
|
|
628
|
+
var s;
|
|
629
|
+
const i = n._$AA.parentNode, r = t === void 0 ? n._$AB : t._$AA;
|
|
630
|
+
if (e === void 0) {
|
|
631
|
+
const o = i.insertBefore(bt(), r), c = i.insertBefore(bt(), r);
|
|
632
|
+
e = new Qt(o, c, n, n.options);
|
|
633
|
+
} else {
|
|
634
|
+
const o = e._$AB.nextSibling, c = e._$AM, a = c !== n;
|
|
635
|
+
if (a) {
|
|
636
|
+
let l;
|
|
637
|
+
(s = e._$AQ) === null || s === void 0 || s.call(e, n), e._$AM = n, e._$AP !== void 0 && (l = n._$AU) !== c._$AU && e._$AP(l);
|
|
638
|
+
}
|
|
639
|
+
if (o !== r || a) {
|
|
640
|
+
let l = e._$AA;
|
|
641
|
+
for (; l !== o; ) {
|
|
642
|
+
const _ = l.nextSibling;
|
|
643
|
+
i.insertBefore(l, r), l = _;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
return e;
|
|
648
|
+
}, b = (n, t, e = n) => (n._$AI(t, e), n), Yt = {}, Gt = (n, t = Yt) => n._$AH = t, Xt = (n) => n._$AH, tt = (n) => {
|
|
649
|
+
var t;
|
|
650
|
+
(t = n._$AP) === null || t === void 0 || t.call(n, !1, !0);
|
|
651
|
+
let e = n._$AA;
|
|
652
|
+
const s = n._$AB.nextSibling;
|
|
653
|
+
for (; e !== s; ) {
|
|
654
|
+
const i = e.nextSibling;
|
|
655
|
+
e.remove(), e = i;
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
/**
|
|
659
|
+
* @license
|
|
660
|
+
* Copyright 2017 Google LLC
|
|
661
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
662
|
+
*/
|
|
663
|
+
const Et = (n, t, e) => {
|
|
664
|
+
const s = /* @__PURE__ */ new Map();
|
|
665
|
+
for (let i = t; i <= e; i++)
|
|
666
|
+
s.set(n[i], i);
|
|
667
|
+
return s;
|
|
668
|
+
}, te = Jt(class extends Ft {
|
|
669
|
+
constructor(n) {
|
|
670
|
+
if (super(n), n.type !== Zt.CHILD)
|
|
671
|
+
throw Error("repeat() can only be used in text expressions");
|
|
672
|
+
}
|
|
673
|
+
ht(n, t, e) {
|
|
674
|
+
let s;
|
|
675
|
+
e === void 0 ? e = t : t !== void 0 && (s = t);
|
|
676
|
+
const i = [], r = [];
|
|
677
|
+
let o = 0;
|
|
678
|
+
for (const c of n)
|
|
679
|
+
i[o] = s ? s(c, o) : o, r[o] = e(c, o), o++;
|
|
680
|
+
return { values: r, keys: i };
|
|
681
|
+
}
|
|
682
|
+
render(n, t, e) {
|
|
683
|
+
return this.ht(n, t, e).values;
|
|
684
|
+
}
|
|
685
|
+
update(n, [t, e, s]) {
|
|
686
|
+
var i;
|
|
687
|
+
const r = Xt(n), { values: o, keys: c } = this.ht(t, e, s);
|
|
688
|
+
if (!Array.isArray(r))
|
|
689
|
+
return this.ut = c, o;
|
|
690
|
+
const a = (i = this.ut) !== null && i !== void 0 ? i : this.ut = [], l = [];
|
|
691
|
+
let _, d, h = 0, u = r.length - 1, p = 0, $ = o.length - 1;
|
|
692
|
+
for (; h <= u && p <= $; )
|
|
693
|
+
if (r[h] === null)
|
|
694
|
+
h++;
|
|
695
|
+
else if (r[u] === null)
|
|
696
|
+
u--;
|
|
697
|
+
else if (a[h] === c[p])
|
|
698
|
+
l[p] = b(r[h], o[p]), h++, p++;
|
|
699
|
+
else if (a[u] === c[$])
|
|
700
|
+
l[$] = b(r[u], o[$]), u--, $--;
|
|
701
|
+
else if (a[h] === c[$])
|
|
702
|
+
l[$] = b(r[h], o[$]), H(n, l[$ + 1], r[h]), h++, $--;
|
|
703
|
+
else if (a[u] === c[p])
|
|
704
|
+
l[p] = b(r[u], o[p]), H(n, r[h], r[u]), u--, p++;
|
|
705
|
+
else if (_ === void 0 && (_ = Et(c, p, $), d = Et(a, h, u)), _.has(a[h]))
|
|
706
|
+
if (_.has(a[u])) {
|
|
707
|
+
const A = d.get(c[p]), Z = A !== void 0 ? r[A] : null;
|
|
708
|
+
if (Z === null) {
|
|
709
|
+
const ot = H(n, r[h]);
|
|
710
|
+
b(ot, o[p]), l[p] = ot;
|
|
711
|
+
} else
|
|
712
|
+
l[p] = b(Z, o[p]), H(n, r[h], Z), r[A] = null;
|
|
713
|
+
p++;
|
|
714
|
+
} else
|
|
715
|
+
tt(r[u]), u--;
|
|
716
|
+
else
|
|
717
|
+
tt(r[h]), h++;
|
|
718
|
+
for (; p <= $; ) {
|
|
719
|
+
const A = H(n, l[$ + 1]);
|
|
720
|
+
b(A, o[p]), l[p++] = A;
|
|
721
|
+
}
|
|
722
|
+
for (; h <= u; ) {
|
|
723
|
+
const A = r[h++];
|
|
724
|
+
A !== null && tt(A);
|
|
725
|
+
}
|
|
726
|
+
return this.ut = c, Gt(n, l), E;
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
var ee = Object.defineProperty, se = Object.getOwnPropertyDescriptor, Rt = (n, t, e, s) => {
|
|
730
|
+
for (var i = s > 1 ? void 0 : s ? se(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
731
|
+
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
732
|
+
return s && i && ee(t, e, i), i;
|
|
733
|
+
};
|
|
734
|
+
let z = class extends m {
|
|
735
|
+
constructor() {
|
|
736
|
+
super(...arguments), this.columns = [];
|
|
737
|
+
}
|
|
738
|
+
render() {
|
|
739
|
+
return C`
|
|
740
|
+
${this.columns.length ? C`
|
|
741
|
+
<alliance-object-list-row>
|
|
742
|
+
${te(
|
|
743
|
+
this.columns,
|
|
744
|
+
(n) => C` <alliance-object-list-head label=${n.title} /> `
|
|
745
|
+
)}
|
|
746
|
+
</alliance-object-list-row>
|
|
747
|
+
` : null}
|
|
748
|
+
<slot></slot>
|
|
749
|
+
`;
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
z.styles = q`
|
|
753
|
+
:host {
|
|
754
|
+
display: flex;
|
|
755
|
+
flex-direction: column;
|
|
756
|
+
}
|
|
757
|
+
`;
|
|
758
|
+
Rt([
|
|
759
|
+
B({ type: Array })
|
|
760
|
+
], z.prototype, "columns", 2);
|
|
761
|
+
z = Rt([
|
|
762
|
+
K("alliance-object-list")
|
|
763
|
+
], z);
|
|
764
|
+
var ie = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, rt = (n, t, e, s) => {
|
|
765
|
+
for (var i = s > 1 ? void 0 : s ? ne(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
766
|
+
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
767
|
+
return s && i && ie(t, e, i), i;
|
|
768
|
+
};
|
|
769
|
+
let R = class extends m {
|
|
770
|
+
constructor() {
|
|
771
|
+
super(...arguments), this.padded = !0, this.label = "";
|
|
772
|
+
}
|
|
773
|
+
render() {
|
|
774
|
+
return C`
|
|
775
|
+
<style>
|
|
776
|
+
:host {
|
|
777
|
+
padding: ${this.padded ? f(St.spacing24) : "inherit"};
|
|
778
|
+
}
|
|
779
|
+
</style>
|
|
780
|
+
<telia-label>${this.label}</telia-label>
|
|
781
|
+
`;
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
R.styles = q`
|
|
785
|
+
:host {
|
|
786
|
+
flex: 1;
|
|
787
|
+
}
|
|
788
|
+
`;
|
|
789
|
+
rt([
|
|
790
|
+
B({ type: Boolean })
|
|
791
|
+
], R.prototype, "padded", 2);
|
|
792
|
+
rt([
|
|
793
|
+
B({ type: String })
|
|
794
|
+
], R.prototype, "label", 2);
|
|
795
|
+
R = rt([
|
|
796
|
+
K("alliance-object-list-head")
|
|
797
|
+
], R);
|
|
798
|
+
const re = "calc(2.4rem * var(--voca-rem-multiplier))";
|
|
799
|
+
var oe = Object.defineProperty, le = Object.getOwnPropertyDescriptor, kt = (n, t, e, s) => {
|
|
800
|
+
for (var i = s > 1 ? void 0 : s ? le(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
801
|
+
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
802
|
+
return s && i && oe(t, e, i), i;
|
|
803
|
+
};
|
|
804
|
+
let V = class extends m {
|
|
805
|
+
constructor() {
|
|
806
|
+
super(...arguments), this.padded = !0;
|
|
807
|
+
}
|
|
808
|
+
render() {
|
|
809
|
+
return C`
|
|
810
|
+
<style>
|
|
811
|
+
:host {
|
|
812
|
+
padding: ${this.padded ? f(re) : "inherit"};
|
|
813
|
+
}
|
|
814
|
+
</style>
|
|
815
|
+
<slot></slot>
|
|
816
|
+
`;
|
|
817
|
+
}
|
|
818
|
+
};
|
|
819
|
+
V.styles = q`
|
|
820
|
+
:host {
|
|
821
|
+
flex: 1;
|
|
822
|
+
display: flex;
|
|
823
|
+
align-items: center;
|
|
824
|
+
}
|
|
825
|
+
`;
|
|
826
|
+
kt([
|
|
827
|
+
B({ type: Boolean })
|
|
828
|
+
], V.prototype, "padded", 2);
|
|
829
|
+
V = kt([
|
|
830
|
+
K("alliance-object-list-item")
|
|
831
|
+
], V);
|
|
832
|
+
var ae = Object.defineProperty, he = Object.getOwnPropertyDescriptor, Bt = (n, t, e, s) => {
|
|
833
|
+
for (var i = s > 1 ? void 0 : s ? he(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
834
|
+
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
835
|
+
return s && i && ae(t, e, i), i;
|
|
836
|
+
};
|
|
837
|
+
let W = class extends m {
|
|
838
|
+
constructor() {
|
|
839
|
+
super(...arguments), this.clickable = !1;
|
|
840
|
+
}
|
|
841
|
+
render() {
|
|
842
|
+
return C`
|
|
843
|
+
<div
|
|
844
|
+
tabindex="${this.clickable ? "0" : "-1"}"
|
|
845
|
+
class="${"object-list-row"}${this.clickable ? " object-list-clickable" : ""}"
|
|
846
|
+
>
|
|
847
|
+
<slot></slot>
|
|
848
|
+
</div>
|
|
849
|
+
<telia-divider />
|
|
850
|
+
`;
|
|
851
|
+
}
|
|
852
|
+
};
|
|
853
|
+
W.styles = q`
|
|
854
|
+
.object-list-row {
|
|
855
|
+
display: flex;
|
|
856
|
+
flex-direction: row;
|
|
857
|
+
}
|
|
858
|
+
.object-list-clickable {
|
|
859
|
+
background-color: transparent;
|
|
860
|
+
transition: background-color ${f(lt.duration150)}
|
|
861
|
+
${f(lt.easeIn)};
|
|
862
|
+
cursor: pointer;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.object-list-clickable:hover,
|
|
866
|
+
.object-list-clickable:focus-visible,
|
|
867
|
+
.object-list-clickable:focus {
|
|
868
|
+
background-color: ${f(at.gray200)};
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.object-list-clickable:active {
|
|
872
|
+
background-color: ${f(at.gray300)};
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.object-list-clickable:focus-visible {
|
|
876
|
+
outline: solid ${f(ht.focusBorderWidth)} ${f(ht.focusColor)};
|
|
877
|
+
outline-offset: ${f(St.spacing4)};
|
|
878
|
+
}
|
|
879
|
+
`;
|
|
880
|
+
Bt([
|
|
881
|
+
B({ type: Boolean })
|
|
882
|
+
], W.prototype, "clickable", 2);
|
|
883
|
+
W = Bt([
|
|
884
|
+
K("alliance-object-list-row")
|
|
885
|
+
], W);
|
|
886
|
+
//# sourceMappingURL=index.js.map
|