@telia-ace/alliance-ui 1.0.4 → 1.0.5-next.1
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 +64 -0
- package/README.md +34 -33
- package/chunks/check-circle-filled-42095247.js.map +1 -1
- package/chunks/chevron-down-50d47dd6.js.map +1 -1
- package/chunks/chevron-right-788ce8a9.js.map +1 -1
- package/chunks/close-ac6e4f1c.js.map +1 -1
- package/chunks/error-filled-8de50bdd.js.map +1 -1
- package/chunks/getSvgContent-f2389ce0.js.map +1 -1
- package/chunks/{index-629ecbb8.js → index-17652cf7.js} +15 -6
- package/chunks/{index-629ecbb8.js.map → index-17652cf7.js.map} +1 -1
- package/chunks/{stringCombiner-67bee7be.js → stringCombiner-10b57054.js} +7 -2
- package/chunks/{stringCombiner-67bee7be.js.map → stringCombiner-10b57054.js.map} +1 -1
- package/chunks/telia-button-ef4894d0.js +108 -0
- package/chunks/telia-button-ef4894d0.js.map +1 -0
- package/chunks/{telia-button-text2-c070e5fa.js → telia-button-text2-e1510558.js} +4 -4
- package/chunks/{telia-button-text2-c070e5fa.js.map → telia-button-text2-e1510558.js.map} +1 -1
- package/chunks/{telia-card-frame2-e5f8bb1f.js → telia-card-frame2-2d46eef6.js} +3 -3
- package/chunks/{telia-card-frame2-e5f8bb1f.js.map → telia-card-frame2-2d46eef6.js.map} +1 -1
- package/chunks/{telia-field-assistive-text2-a7ada9a5.js → telia-field-assistive-text2-fd970326.js} +3 -3
- package/chunks/{telia-field-assistive-text2-a7ada9a5.js.map → telia-field-assistive-text2-fd970326.js.map} +1 -1
- package/chunks/{telia-field-error2-341030c7.js → telia-field-error2-63eae7b3.js} +4 -4
- package/chunks/{telia-field-error2-341030c7.js.map → telia-field-error2-63eae7b3.js.map} +1 -1
- package/chunks/{telia-field-valid2-663bc79f.js → telia-field-valid2-bda898b1.js} +4 -4
- package/chunks/{telia-field-valid2-663bc79f.js.map → telia-field-valid2-bda898b1.js.map} +1 -1
- package/chunks/{telia-heading2-de9de777.js → telia-heading2-5fdf4c16.js} +3 -3
- package/chunks/{telia-heading2-de9de777.js.map → telia-heading2-5fdf4c16.js.map} +1 -1
- package/chunks/{telia-icon2-9c59983c.js → telia-icon2-34bf5aef.js} +8 -3
- package/chunks/{telia-icon2-9c59983c.js.map → telia-icon2-34bf5aef.js.map} +1 -1
- package/chunks/{telia-label2-92041936.js → telia-label2-4d674e5e.js} +3 -3
- package/chunks/{telia-label2-92041936.js.map → telia-label2-4d674e5e.js.map} +1 -1
- package/chunks/{telia-link2-d0077a7e.js → telia-link2-7769b385.js} +4 -4
- package/chunks/{telia-link2-d0077a7e.js.map → telia-link2-7769b385.js.map} +1 -1
- package/chunks/{telia-navigation-button2-4686098e.js → telia-navigation-button2-a0b24d67.js} +4 -4
- package/chunks/{telia-navigation-button2-4686098e.js.map → telia-navigation-button2-a0b24d67.js.map} +1 -1
- package/chunks/telia-style-link2-bbd8d17a.js +55 -0
- package/chunks/telia-style-link2-bbd8d17a.js.map +1 -0
- package/chunks/{telia-style-navigation-item2-fe0721bb.js → telia-style-navigation-item2-58683cd9.js} +3 -3
- package/chunks/{telia-style-navigation-item2-fe0721bb.js.map → telia-style-navigation-item2-58683cd9.js.map} +1 -1
- package/chunks/{telia-tab-header2-a4329adf.js → telia-tab-header2-bd04582d.js} +23 -15
- package/chunks/telia-tab-header2-bd04582d.js.map +1 -0
- package/chunks/{telia-visually-hidden2-9e970a02.js → telia-visually-hidden2-71416262.js} +3 -3
- package/chunks/{telia-visually-hidden2-9e970a02.js.map → telia-visually-hidden2-71416262.js.map} +1 -1
- package/chunks/{telia-vst2-5b28f085.js → telia-vst2-1a7f7bd6.js} +2 -2
- package/chunks/{telia-vst2-5b28f085.js.map → telia-vst2-1a7f7bd6.js.map} +1 -1
- package/chunks/uniqueId-0daf01ec.js.map +1 -1
- package/chunks/variables-03fe2cd9.js.map +1 -1
- package/components/alliance-paginator/alliance-paginator-button.d.ts +1 -0
- package/components/alliance-paginator/alliance-paginator.d.ts +2 -0
- package/components/alliance-paginator/alliance-paginator.stories.d.ts +6 -0
- package/components/alliance-paginator/get-pagination.d.ts +7 -1
- package/components/alliance-paginator/index.d.ts +1 -0
- package/components/{alliance-object-list/alliance-object-list.d.ts → alliance-table/alliance-table-body.d.ts} +1 -1
- package/components/{alliance-object-list/alliance-object-list-item.d.ts → alliance-table/alliance-table-data.d.ts} +1 -2
- package/components/{alliance-object-list/alliance-object-list-head.d.ts → alliance-table/alliance-table-head.d.ts} +1 -2
- package/components/{alliance-object-list/alliance-object-list-row.d.ts → alliance-table/alliance-table-row.d.ts} +1 -2
- package/components/alliance-table/alliance-table.d.ts +5 -0
- package/components/alliance-table/alliance-table.stories.d.ts +6 -0
- package/components/alliance-table/index.d.ts +5 -0
- package/components/index.d.ts +1 -1
- package/components/index.js +412 -355
- package/components/index.js.map +1 -1
- package/package.json +20 -8
- package/voca/components/telia-accordion-item.js +6 -3
- package/voca/components/telia-accordion-item.js.map +1 -1
- package/voca/components/telia-accordion.js +32 -21
- package/voca/components/telia-accordion.js.map +1 -1
- package/voca/components/telia-badge.js +2 -2
- package/voca/components/telia-badge.js.map +1 -1
- package/voca/components/telia-button-text.js +4 -4
- package/voca/components/telia-button.js +4 -4
- package/voca/components/telia-card-frame-link.js +5 -5
- package/voca/components/telia-card-frame-link.js.map +1 -1
- package/voca/components/telia-card-frame.js +3 -3
- package/voca/components/telia-checkbox.js +8 -8
- package/voca/components/telia-checkbox.js.map +1 -1
- package/voca/components/telia-chip-choice.js +2 -2
- package/voca/components/telia-chip-choice.js.map +1 -1
- package/voca/components/telia-chip-filter.js +3 -3
- package/voca/components/telia-chip-filter.js.map +1 -1
- package/voca/components/telia-col.js +3 -3
- package/voca/components/telia-col.js.map +1 -1
- package/voca/components/telia-color-dot.js +2 -2
- package/voca/components/telia-color-dot.js.map +1 -1
- package/voca/components/telia-cta-link.js +3 -3
- package/voca/components/telia-cta-link.js.map +1 -1
- package/voca/components/telia-date-picker.js +34 -11
- package/voca/components/telia-date-picker.js.map +1 -1
- package/voca/components/telia-divider.js +45 -3
- package/voca/components/telia-divider.js.map +1 -1
- package/voca/components/telia-field-assistive-text.js +3 -3
- package/voca/components/telia-field-error.js +4 -4
- package/voca/components/telia-field-valid.js +4 -4
- package/voca/components/telia-fieldset.js +2 -2
- package/voca/components/telia-fieldset.js.map +1 -1
- package/voca/components/telia-focus-trap.js +11 -2
- package/voca/components/telia-focus-trap.js.map +1 -1
- package/voca/components/telia-form.js +3 -2
- package/voca/components/telia-form.js.map +1 -1
- package/voca/components/telia-grid.js +2 -2
- package/voca/components/telia-grid.js.map +1 -1
- package/voca/components/telia-heading.js +3 -3
- package/voca/components/telia-icon.js +3 -3
- package/voca/components/telia-image.js +2 -2
- package/voca/components/telia-image.js.map +1 -1
- package/voca/components/telia-label.js +3 -3
- package/voca/components/telia-link-image.js +5 -5
- package/voca/components/telia-link-image.js.map +1 -1
- package/voca/components/telia-link.js +4 -4
- package/voca/components/telia-list.js +6 -2
- package/voca/components/telia-list.js.map +1 -1
- package/voca/components/telia-logo.js +2 -2
- package/voca/components/telia-logo.js.map +1 -1
- package/voca/components/telia-navigation-button.js +4 -4
- package/voca/components/telia-navigation-dropdown.js +22 -5
- package/voca/components/telia-navigation-dropdown.js.map +1 -1
- package/voca/components/telia-navigation-link.js +3 -3
- package/voca/components/telia-navigation-link.js.map +1 -1
- package/voca/components/telia-notification.js +10 -5
- package/voca/components/telia-notification.js.map +1 -1
- package/voca/components/telia-overlay.js +2 -2
- package/voca/components/telia-overlay.js.map +1 -1
- package/voca/components/telia-p.js +2 -2
- package/voca/components/telia-p.js.map +1 -1
- package/voca/components/telia-pictogram.js +22 -2
- package/voca/components/telia-pictogram.js.map +1 -1
- package/voca/components/telia-radio-button.js +16 -16
- package/voca/components/telia-radio-button.js.map +1 -1
- package/voca/components/telia-row.js +2 -2
- package/voca/components/telia-row.js.map +1 -1
- package/voca/components/telia-select.js +8 -8
- package/voca/components/telia-select.js.map +1 -1
- package/voca/components/telia-skeleton.js +2 -2
- package/voca/components/telia-skeleton.js.map +1 -1
- package/voca/components/telia-status-badge.js +3 -3
- package/voca/components/telia-status-badge.js.map +1 -1
- package/voca/components/telia-style-link.js +3 -3
- package/voca/components/telia-style-navigation-item.js +3 -3
- package/voca/components/telia-tab-content.js +1 -1
- package/voca/components/telia-tab-content.js.map +1 -1
- package/voca/components/telia-tab-header.js +4 -4
- package/voca/components/telia-tab.js +70 -65
- package/voca/components/telia-tab.js.map +1 -1
- package/voca/components/telia-text-input.js +26 -10
- package/voca/components/telia-text-input.js.map +1 -1
- package/voca/components/telia-text-spacing.js +2 -2
- package/voca/components/telia-text-spacing.js.map +1 -1
- package/voca/components/telia-textarea.js +9 -9
- package/voca/components/telia-textarea.js.map +1 -1
- package/voca/components/telia-toggle.js +3 -3
- package/voca/components/telia-toggle.js.map +1 -1
- package/voca/components/telia-visually-hidden.js +3 -3
- package/voca/foundations/index.js +60 -49
- package/voca/foundations/index.js.map +1 -1
- package/voca/icons/index.js.map +1 -1
- package/chunks/telia-button-a8a03bcb.js +0 -105
- package/chunks/telia-button-a8a03bcb.js.map +0 -1
- package/chunks/telia-divider-644c043b.js +0 -46
- package/chunks/telia-divider-644c043b.js.map +0 -1
- package/chunks/telia-style-link2-e6b7be00.js +0 -55
- package/chunks/telia-style-link2-e6b7be00.js.map +0 -1
- package/chunks/telia-tab-header2-a4329adf.js.map +0 -1
- package/components/alliance-object-list/index.d.ts +0 -4
package/components/index.js
CHANGED
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import "../chunks/telia-
|
|
2
|
-
import
|
|
3
|
-
import "../chunks/
|
|
4
|
-
import "../chunks/telia-
|
|
5
|
-
import "../chunks/
|
|
6
|
-
import
|
|
7
|
-
import "../chunks/index-
|
|
8
|
-
import "../chunks/telia-vst2-
|
|
9
|
-
import "../chunks/telia-icon2-9c59983c.js";
|
|
1
|
+
import "../chunks/telia-button-ef4894d0.js";
|
|
2
|
+
import "../chunks/telia-label2-4d674e5e.js";
|
|
3
|
+
import { s as Y, c as Z, b as Zt, m as gt, f as ft } from "../chunks/variables-03fe2cd9.js";
|
|
4
|
+
import "../chunks/telia-icon2-34bf5aef.js";
|
|
5
|
+
import { c as Jt, a as Ft } from "../chunks/chevron-right-788ce8a9.js";
|
|
6
|
+
import "../chunks/telia-heading2-5fdf4c16.js";
|
|
7
|
+
import "../chunks/index-17652cf7.js";
|
|
8
|
+
import "../chunks/telia-vst2-1a7f7bd6.js";
|
|
10
9
|
import "../chunks/getSvgContent-f2389ce0.js";
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @license
|
|
12
|
+
* Copyright 2019 Google LLC
|
|
13
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
14
|
+
*/
|
|
15
|
+
const K = window, dt = K.ShadowRoot && (K.ShadyCSS === void 0 || K.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, pt = Symbol(), _t = /* @__PURE__ */ new WeakMap();
|
|
16
|
+
let Nt = class {
|
|
13
17
|
constructor(t, e, i) {
|
|
14
|
-
if (this._$cssResult$ = !0, i !==
|
|
18
|
+
if (this._$cssResult$ = !0, i !== pt)
|
|
15
19
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
16
20
|
this.cssText = t, this.t = e;
|
|
17
21
|
}
|
|
18
22
|
get styleSheet() {
|
|
19
23
|
let t = this.o;
|
|
20
24
|
const e = this.t;
|
|
21
|
-
if (
|
|
25
|
+
if (dt && t === void 0) {
|
|
22
26
|
const i = e !== void 0 && e.length === 1;
|
|
23
27
|
i && (t = _t.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && _t.set(e, t));
|
|
24
28
|
}
|
|
@@ -28,7 +32,7 @@ let jt = class {
|
|
|
28
32
|
return this.cssText;
|
|
29
33
|
}
|
|
30
34
|
};
|
|
31
|
-
const
|
|
35
|
+
const f = (n) => new Nt(typeof n == "string" ? n : n + "", void 0, pt), M = (n, ...t) => {
|
|
32
36
|
const e = n.length === 1 ? n[0] : t.reduce((i, s, r) => i + ((o) => {
|
|
33
37
|
if (o._$cssResult$ === !0)
|
|
34
38
|
return o.cssText;
|
|
@@ -36,23 +40,28 @@ const g = (n) => new jt(typeof n == "string" ? n : n + "", void 0, dt), V = (n,
|
|
|
36
40
|
return o;
|
|
37
41
|
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
42
|
})(s) + n[r + 1], n[0]);
|
|
39
|
-
return new
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
const i = document.createElement("style"), s =
|
|
43
|
+
return new Nt(e, n, pt);
|
|
44
|
+
}, Qt = (n, t) => {
|
|
45
|
+
dt ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
|
|
46
|
+
const i = document.createElement("style"), s = K.litNonce;
|
|
43
47
|
s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, n.appendChild(i);
|
|
44
48
|
});
|
|
45
|
-
},
|
|
49
|
+
}, yt = dt ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
46
50
|
let e = "";
|
|
47
51
|
for (const i of t.cssRules)
|
|
48
52
|
e += i.cssText;
|
|
49
|
-
return
|
|
53
|
+
return f(e);
|
|
50
54
|
})(n) : n;
|
|
55
|
+
/**
|
|
56
|
+
* @license
|
|
57
|
+
* Copyright 2017 Google LLC
|
|
58
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
|
+
*/
|
|
51
60
|
var tt;
|
|
52
|
-
const J = window,
|
|
61
|
+
const J = window, bt = J.trustedTypes, Xt = bt ? bt.emptyScript : "", mt = J.reactiveElementPolyfillSupport, at = { toAttribute(n, t) {
|
|
53
62
|
switch (t) {
|
|
54
63
|
case Boolean:
|
|
55
|
-
n = n ?
|
|
64
|
+
n = n ? Xt : null;
|
|
56
65
|
break;
|
|
57
66
|
case Object:
|
|
58
67
|
case Array:
|
|
@@ -128,9 +137,9 @@ let U = class extends HTMLElement {
|
|
|
128
137
|
if (Array.isArray(t)) {
|
|
129
138
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
130
139
|
for (const s of i)
|
|
131
|
-
e.unshift(
|
|
140
|
+
e.unshift(yt(s));
|
|
132
141
|
} else
|
|
133
|
-
t !== void 0 && e.push(
|
|
142
|
+
t !== void 0 && e.push(yt(t));
|
|
134
143
|
return e;
|
|
135
144
|
}
|
|
136
145
|
static _$Ep(t, e) {
|
|
@@ -157,7 +166,7 @@ let U = class extends HTMLElement {
|
|
|
157
166
|
createRenderRoot() {
|
|
158
167
|
var t;
|
|
159
168
|
const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
160
|
-
return
|
|
169
|
+
return Qt(e, this.constructor.elementStyles), e;
|
|
161
170
|
}
|
|
162
171
|
connectedCallback() {
|
|
163
172
|
var t;
|
|
@@ -257,22 +266,27 @@ let U = class extends HTMLElement {
|
|
|
257
266
|
firstUpdated(t) {
|
|
258
267
|
}
|
|
259
268
|
};
|
|
260
|
-
U.finalized = !0, U.elementProperties = /* @__PURE__ */ new Map(), U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, mt == null || mt({ ReactiveElement: U }), ((tt = J.reactiveElementVersions) !== null && tt !== void 0 ? tt : J.reactiveElementVersions = []).push("1.
|
|
269
|
+
U.finalized = !0, U.elementProperties = /* @__PURE__ */ new Map(), U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, mt == null || mt({ ReactiveElement: U }), ((tt = J.reactiveElementVersions) !== null && tt !== void 0 ? tt : J.reactiveElementVersions = []).push("1.6.1");
|
|
270
|
+
/**
|
|
271
|
+
* @license
|
|
272
|
+
* Copyright 2017 Google LLC
|
|
273
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
274
|
+
*/
|
|
261
275
|
var it;
|
|
262
|
-
const F = window,
|
|
276
|
+
const F = window, H = F.trustedTypes, At = H ? H.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, A = `lit$${(Math.random() + "").slice(9)}$`, $t = "?" + A, Yt = `<${$t}>`, R = document, I = (n = "") => R.createComment(n), L = (n) => n === null || typeof n != "object" && typeof n != "function", Rt = Array.isArray, Mt = (n) => Rt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Pt = /-->/g, Et = />/g, E = RegExp(`>|[
|
|
263
277
|
\f\r](?:([^\\s"'>=/]+)([
|
|
264
278
|
\f\r]*=[
|
|
265
279
|
\f\r]*(?:[^
|
|
266
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
280
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), St = /'/g, Ct = /"/g, Dt = /^(?:script|style|textarea|title)$/i, Gt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), _ = Gt(1), C = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), wt = /* @__PURE__ */ new WeakMap(), N = R.createTreeWalker(R, 129, null, !1), Bt = (n, t) => {
|
|
267
281
|
const e = n.length - 1, i = [];
|
|
268
|
-
let s, r = t === 2 ? "<svg>" : "", o =
|
|
282
|
+
let s, r = t === 2 ? "<svg>" : "", o = j;
|
|
269
283
|
for (let a = 0; a < e; a++) {
|
|
270
284
|
const l = n[a];
|
|
271
|
-
let $,
|
|
272
|
-
for (;
|
|
273
|
-
|
|
274
|
-
const p = o ===
|
|
275
|
-
r += o ===
|
|
285
|
+
let $, u, h = -1, d = 0;
|
|
286
|
+
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); )
|
|
287
|
+
d = o.lastIndex, o === j ? u[1] === "!--" ? o = Pt : u[1] !== void 0 ? o = Et : u[2] !== void 0 ? (Dt.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = E) : u[3] !== void 0 && (o = E) : o === E ? u[0] === ">" ? (o = s ?? j, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, $ = u[1], o = u[3] === void 0 ? E : u[3] === '"' ? Ct : St) : o === Ct || o === St ? o = E : o === Pt || o === Et ? o = j : (o = E, s = void 0);
|
|
288
|
+
const p = o === E && n[a + 1].startsWith("/>") ? " " : "";
|
|
289
|
+
r += o === j ? l + Yt : h >= 0 ? (i.push($), l.slice(0, h) + "$lit$" + l.slice(h) + A + p) : l + A + (h === -2 ? (i.push(void 0), a) : p);
|
|
276
290
|
}
|
|
277
291
|
const c = r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "");
|
|
278
292
|
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
|
@@ -284,49 +298,49 @@ class k {
|
|
|
284
298
|
let s;
|
|
285
299
|
this.parts = [];
|
|
286
300
|
let r = 0, o = 0;
|
|
287
|
-
const c = t.length - 1, a = this.parts, [l, $] =
|
|
288
|
-
if (this.el = k.createElement(l, i),
|
|
289
|
-
const
|
|
290
|
-
h.remove(),
|
|
301
|
+
const c = t.length - 1, a = this.parts, [l, $] = Bt(t, e);
|
|
302
|
+
if (this.el = k.createElement(l, i), N.currentNode = this.el.content, e === 2) {
|
|
303
|
+
const u = this.el.content, h = u.firstChild;
|
|
304
|
+
h.remove(), u.append(...h.childNodes);
|
|
291
305
|
}
|
|
292
|
-
for (; (s =
|
|
306
|
+
for (; (s = N.nextNode()) !== null && a.length < c; ) {
|
|
293
307
|
if (s.nodeType === 1) {
|
|
294
308
|
if (s.hasAttributes()) {
|
|
295
|
-
const
|
|
309
|
+
const u = [];
|
|
296
310
|
for (const h of s.getAttributeNames())
|
|
297
|
-
if (h.endsWith("$lit$") || h.startsWith(
|
|
298
|
-
const
|
|
299
|
-
if (
|
|
300
|
-
const p = s.getAttribute(
|
|
301
|
-
a.push({ type: 1, index: r, name: v[2], strings: p, ctor: v[1] === "." ?
|
|
311
|
+
if (h.endsWith("$lit$") || h.startsWith(A)) {
|
|
312
|
+
const d = $[o++];
|
|
313
|
+
if (u.push(h), d !== void 0) {
|
|
314
|
+
const p = s.getAttribute(d.toLowerCase() + "$lit$").split(A), v = /([.?@])?(.*)/.exec(d);
|
|
315
|
+
a.push({ type: 1, index: r, name: v[2], strings: p, ctor: v[1] === "." ? zt : v[1] === "?" ? It : v[1] === "@" ? Lt : V });
|
|
302
316
|
} else
|
|
303
317
|
a.push({ type: 6, index: r });
|
|
304
318
|
}
|
|
305
|
-
for (const h of
|
|
319
|
+
for (const h of u)
|
|
306
320
|
s.removeAttribute(h);
|
|
307
321
|
}
|
|
308
|
-
if (
|
|
309
|
-
const
|
|
322
|
+
if (Dt.test(s.tagName)) {
|
|
323
|
+
const u = s.textContent.split(A), h = u.length - 1;
|
|
310
324
|
if (h > 0) {
|
|
311
|
-
s.textContent =
|
|
312
|
-
for (let
|
|
313
|
-
s.append(d
|
|
314
|
-
s.append(
|
|
325
|
+
s.textContent = H ? H.emptyScript : "";
|
|
326
|
+
for (let d = 0; d < h; d++)
|
|
327
|
+
s.append(u[d], I()), N.nextNode(), a.push({ type: 2, index: ++r });
|
|
328
|
+
s.append(u[h], I());
|
|
315
329
|
}
|
|
316
330
|
}
|
|
317
331
|
} else if (s.nodeType === 8)
|
|
318
|
-
if (s.data ===
|
|
332
|
+
if (s.data === $t)
|
|
319
333
|
a.push({ type: 2, index: r });
|
|
320
334
|
else {
|
|
321
|
-
let
|
|
322
|
-
for (; (
|
|
323
|
-
a.push({ type: 7, index: r }),
|
|
335
|
+
let u = -1;
|
|
336
|
+
for (; (u = s.data.indexOf(A, u + 1)) !== -1; )
|
|
337
|
+
a.push({ type: 7, index: r }), u += A.length - 1;
|
|
324
338
|
}
|
|
325
339
|
r++;
|
|
326
340
|
}
|
|
327
341
|
}
|
|
328
342
|
static createElement(t, e) {
|
|
329
|
-
const i =
|
|
343
|
+
const i = R.createElement("template");
|
|
330
344
|
return i.innerHTML = t, i;
|
|
331
345
|
}
|
|
332
346
|
}
|
|
@@ -335,10 +349,10 @@ function w(n, t, e = n, i) {
|
|
|
335
349
|
if (t === C)
|
|
336
350
|
return t;
|
|
337
351
|
let a = i !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[i] : e._$Cl;
|
|
338
|
-
const l =
|
|
352
|
+
const l = L(t) ? void 0 : t._$litDirective$;
|
|
339
353
|
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, i)), i !== void 0 ? ((o = (c = e)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[i] = a : e._$Cl = a), a !== void 0 && (t = w(n, a._$AS(n, t.values), a, i)), t;
|
|
340
354
|
}
|
|
341
|
-
class
|
|
355
|
+
class jt {
|
|
342
356
|
constructor(t, e) {
|
|
343
357
|
this.u = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
344
358
|
}
|
|
@@ -350,15 +364,15 @@ class Bt {
|
|
|
350
364
|
}
|
|
351
365
|
v(t) {
|
|
352
366
|
var e;
|
|
353
|
-
const { el: { content: i }, parts: s } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e :
|
|
354
|
-
|
|
355
|
-
let o =
|
|
367
|
+
const { el: { content: i }, parts: s } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : R).importNode(i, !0);
|
|
368
|
+
N.currentNode = r;
|
|
369
|
+
let o = N.nextNode(), c = 0, a = 0, l = s[0];
|
|
356
370
|
for (; l !== void 0; ) {
|
|
357
371
|
if (c === l.index) {
|
|
358
372
|
let $;
|
|
359
|
-
l.type === 2 ? $ = new
|
|
373
|
+
l.type === 2 ? $ = new D(o, o.nextSibling, this, t) : l.type === 1 ? $ = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && ($ = new kt(o, this, t)), this.u.push($), l = s[++a];
|
|
360
374
|
}
|
|
361
|
-
c !== (l == null ? void 0 : l.index) && (o =
|
|
375
|
+
c !== (l == null ? void 0 : l.index) && (o = N.nextNode(), c++);
|
|
362
376
|
}
|
|
363
377
|
return r;
|
|
364
378
|
}
|
|
@@ -368,10 +382,10 @@ class Bt {
|
|
|
368
382
|
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
369
383
|
}
|
|
370
384
|
}
|
|
371
|
-
class
|
|
385
|
+
class D {
|
|
372
386
|
constructor(t, e, i, s) {
|
|
373
387
|
var r;
|
|
374
|
-
this.type = 2, this._$AH =
|
|
388
|
+
this.type = 2, this._$AH = g, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cm = (r = s == null ? void 0 : s.isConnected) === null || r === void 0 || r;
|
|
375
389
|
}
|
|
376
390
|
get _$AU() {
|
|
377
391
|
var t, e;
|
|
@@ -389,7 +403,7 @@ class N {
|
|
|
389
403
|
return this._$AB;
|
|
390
404
|
}
|
|
391
405
|
_$AI(t, e = this) {
|
|
392
|
-
t = w(this, t, e),
|
|
406
|
+
t = w(this, t, e), L(t) ? t === g || t == null || t === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : t !== this._$AH && t !== C && this.g(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Mt(t) ? this.k(t) : this.g(t);
|
|
393
407
|
}
|
|
394
408
|
O(t, e = this._$AB) {
|
|
395
409
|
return this._$AA.parentNode.insertBefore(t, e);
|
|
@@ -398,7 +412,7 @@ class N {
|
|
|
398
412
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
399
413
|
}
|
|
400
414
|
g(t) {
|
|
401
|
-
this._$AH !==
|
|
415
|
+
this._$AH !== g && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(R.createTextNode(t)), this._$AH = t;
|
|
402
416
|
}
|
|
403
417
|
$(t) {
|
|
404
418
|
var e;
|
|
@@ -406,20 +420,20 @@ class N {
|
|
|
406
420
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
|
|
407
421
|
this._$AH.p(i);
|
|
408
422
|
else {
|
|
409
|
-
const o = new
|
|
423
|
+
const o = new jt(r, this), c = o.v(this.options);
|
|
410
424
|
o.p(i), this.T(c), this._$AH = o;
|
|
411
425
|
}
|
|
412
426
|
}
|
|
413
427
|
_$AC(t) {
|
|
414
|
-
let e =
|
|
415
|
-
return e === void 0 &&
|
|
428
|
+
let e = wt.get(t.strings);
|
|
429
|
+
return e === void 0 && wt.set(t.strings, e = new k(t)), e;
|
|
416
430
|
}
|
|
417
431
|
k(t) {
|
|
418
|
-
|
|
432
|
+
Rt(this._$AH) || (this._$AH = [], this._$AR());
|
|
419
433
|
const e = this._$AH;
|
|
420
434
|
let i, s = 0;
|
|
421
435
|
for (const r of t)
|
|
422
|
-
s === e.length ? e.push(i = new
|
|
436
|
+
s === e.length ? e.push(i = new D(this.O(I()), this.O(I()), this, this.options)) : i = e[s], i._$AI(r), s++;
|
|
423
437
|
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
|
424
438
|
}
|
|
425
439
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -434,9 +448,9 @@ class N {
|
|
|
434
448
|
this._$AM === void 0 && (this._$Cm = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
|
|
435
449
|
}
|
|
436
450
|
}
|
|
437
|
-
class
|
|
451
|
+
class V {
|
|
438
452
|
constructor(t, e, i, s, r) {
|
|
439
|
-
this.type = 1, this._$AH =
|
|
453
|
+
this.type = 1, this._$AH = g, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = g;
|
|
440
454
|
}
|
|
441
455
|
get tagName() {
|
|
442
456
|
return this.element.tagName;
|
|
@@ -448,45 +462,45 @@ class W {
|
|
|
448
462
|
const r = this.strings;
|
|
449
463
|
let o = !1;
|
|
450
464
|
if (r === void 0)
|
|
451
|
-
t = w(this, t, e, 0), o = !
|
|
465
|
+
t = w(this, t, e, 0), o = !L(t) || t !== this._$AH && t !== C, o && (this._$AH = t);
|
|
452
466
|
else {
|
|
453
467
|
const c = t;
|
|
454
468
|
let a, l;
|
|
455
469
|
for (t = r[0], a = 0; a < r.length - 1; a++)
|
|
456
|
-
l = w(this, c[i + a], e, a), l === C && (l = this._$AH[a]), o || (o = !
|
|
470
|
+
l = w(this, c[i + a], e, a), l === C && (l = this._$AH[a]), o || (o = !L(l) || l !== this._$AH[a]), l === g ? t = g : t !== g && (t += (l ?? "") + r[a + 1]), this._$AH[a] = l;
|
|
457
471
|
}
|
|
458
472
|
o && !s && this.j(t);
|
|
459
473
|
}
|
|
460
474
|
j(t) {
|
|
461
|
-
t ===
|
|
475
|
+
t === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
462
476
|
}
|
|
463
477
|
}
|
|
464
|
-
class
|
|
478
|
+
class zt extends V {
|
|
465
479
|
constructor() {
|
|
466
480
|
super(...arguments), this.type = 3;
|
|
467
481
|
}
|
|
468
482
|
j(t) {
|
|
469
|
-
this.element[this.name] = t ===
|
|
483
|
+
this.element[this.name] = t === g ? void 0 : t;
|
|
470
484
|
}
|
|
471
485
|
}
|
|
472
|
-
const
|
|
473
|
-
class It extends
|
|
486
|
+
const te = H ? H.emptyScript : "";
|
|
487
|
+
class It extends V {
|
|
474
488
|
constructor() {
|
|
475
489
|
super(...arguments), this.type = 4;
|
|
476
490
|
}
|
|
477
491
|
j(t) {
|
|
478
|
-
t && t !==
|
|
492
|
+
t && t !== g ? this.element.setAttribute(this.name, te) : this.element.removeAttribute(this.name);
|
|
479
493
|
}
|
|
480
494
|
}
|
|
481
|
-
class
|
|
495
|
+
class Lt extends V {
|
|
482
496
|
constructor(t, e, i, s, r) {
|
|
483
497
|
super(t, e, i, s, r), this.type = 5;
|
|
484
498
|
}
|
|
485
499
|
_$AI(t, e = this) {
|
|
486
500
|
var i;
|
|
487
|
-
if ((t = (i = w(this, t, e, 0)) !== null && i !== void 0 ? i :
|
|
501
|
+
if ((t = (i = w(this, t, e, 0)) !== null && i !== void 0 ? i : g) === C)
|
|
488
502
|
return;
|
|
489
|
-
const s = this._$AH, r = t ===
|
|
503
|
+
const s = this._$AH, r = t === g && s !== g || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== g && (s === g || r);
|
|
490
504
|
r && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
491
505
|
}
|
|
492
506
|
handleEvent(t) {
|
|
@@ -494,7 +508,7 @@ class kt extends W {
|
|
|
494
508
|
typeof this._$AH == "function" ? this._$AH.call((i = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && i !== void 0 ? i : this.element, t) : this._$AH.handleEvent(t);
|
|
495
509
|
}
|
|
496
510
|
}
|
|
497
|
-
class
|
|
511
|
+
class kt {
|
|
498
512
|
constructor(t, e, i) {
|
|
499
513
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
500
514
|
}
|
|
@@ -505,20 +519,25 @@ class zt {
|
|
|
505
519
|
w(this, t);
|
|
506
520
|
}
|
|
507
521
|
}
|
|
508
|
-
const
|
|
509
|
-
|
|
510
|
-
const
|
|
522
|
+
const ee = { P: "$lit$", A, M: $t, C: 1, L: Bt, R: jt, D: Mt, V: w, I: D, H: V, N: It, U: Lt, B: zt, F: kt }, Ot = F.litHtmlPolyfillSupport;
|
|
523
|
+
Ot == null || Ot(k, D), ((it = F.litHtmlVersions) !== null && it !== void 0 ? it : F.litHtmlVersions = []).push("2.6.1");
|
|
524
|
+
const ie = (n, t, e) => {
|
|
511
525
|
var i, s;
|
|
512
526
|
const r = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : t;
|
|
513
527
|
let o = r._$litPart$;
|
|
514
528
|
if (o === void 0) {
|
|
515
529
|
const c = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;
|
|
516
|
-
r._$litPart$ = o = new
|
|
530
|
+
r._$litPart$ = o = new D(t.insertBefore(I(), c), c, void 0, e ?? {});
|
|
517
531
|
}
|
|
518
532
|
return o._$AI(n), o;
|
|
519
533
|
};
|
|
534
|
+
/**
|
|
535
|
+
* @license
|
|
536
|
+
* Copyright 2017 Google LLC
|
|
537
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
538
|
+
*/
|
|
520
539
|
var st, nt;
|
|
521
|
-
let
|
|
540
|
+
let b = class extends U {
|
|
522
541
|
constructor() {
|
|
523
542
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
524
543
|
}
|
|
@@ -529,7 +548,7 @@ let m = class extends U {
|
|
|
529
548
|
}
|
|
530
549
|
update(t) {
|
|
531
550
|
const e = this.render();
|
|
532
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
551
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ie(e, this.renderRoot, this.renderOptions);
|
|
533
552
|
}
|
|
534
553
|
connectedCallback() {
|
|
535
554
|
var t;
|
|
@@ -543,175 +562,60 @@ let m = class extends U {
|
|
|
543
562
|
return C;
|
|
544
563
|
}
|
|
545
564
|
};
|
|
546
|
-
|
|
565
|
+
b.finalized = !0, b._$litElement$ = !0, (st = globalThis.litElementHydrateSupport) === null || st === void 0 || st.call(globalThis, { LitElement: b });
|
|
547
566
|
const xt = globalThis.litElementPolyfillSupport;
|
|
548
|
-
xt == null || xt({ LitElement:
|
|
567
|
+
xt == null || xt({ LitElement: b });
|
|
549
568
|
((nt = globalThis.litElementVersions) !== null && nt !== void 0 ? nt : globalThis.litElementVersions = []).push("3.2.2");
|
|
550
|
-
|
|
569
|
+
/**
|
|
570
|
+
* @license
|
|
571
|
+
* Copyright 2017 Google LLC
|
|
572
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
573
|
+
*/
|
|
574
|
+
const x = (n) => (t) => typeof t == "function" ? ((e, i) => (customElements.define(e, i), i))(n, t) : ((e, i) => {
|
|
551
575
|
const { kind: s, elements: r } = i;
|
|
552
576
|
return { kind: s, elements: r, finisher(o) {
|
|
553
577
|
customElements.define(e, o);
|
|
554
578
|
} };
|
|
555
579
|
})(n, t);
|
|
556
|
-
|
|
580
|
+
/**
|
|
581
|
+
* @license
|
|
582
|
+
* Copyright 2017 Google LLC
|
|
583
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
584
|
+
*/
|
|
585
|
+
const se = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
|
|
557
586
|
e.createProperty(t.key, n);
|
|
558
587
|
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
|
|
559
588
|
typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
|
|
560
589
|
}, finisher(e) {
|
|
561
590
|
e.createProperty(t.key, n);
|
|
562
591
|
} };
|
|
563
|
-
function
|
|
592
|
+
function y(n) {
|
|
564
593
|
return (t, e) => e !== void 0 ? ((i, s, r) => {
|
|
565
594
|
s.constructor.createProperty(r, i);
|
|
566
|
-
})(n, t, e) :
|
|
595
|
+
})(n, t, e) : se(n, t);
|
|
567
596
|
}
|
|
597
|
+
/**
|
|
598
|
+
* @license
|
|
599
|
+
* Copyright 2017 Google LLC
|
|
600
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
601
|
+
*/
|
|
568
602
|
function Vt(n) {
|
|
569
|
-
return
|
|
603
|
+
return y({ ...n, state: !0 });
|
|
570
604
|
}
|
|
605
|
+
/**
|
|
606
|
+
* @license
|
|
607
|
+
* Copyright 2021 Google LLC
|
|
608
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
609
|
+
*/
|
|
571
610
|
var rt;
|
|
572
611
|
((rt = window.HTMLSlotElement) === null || rt === void 0 ? void 0 : rt.prototype.assignedElements) != null;
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
return y` <slot></slot> `;
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
|
-
ht.styles = V`
|
|
584
|
-
:host {
|
|
585
|
-
display: flex;
|
|
586
|
-
flex-direction: column;
|
|
587
|
-
}
|
|
588
|
-
`;
|
|
589
|
-
ht = re([
|
|
590
|
-
R("alliance-object-list")
|
|
591
|
-
], ht);
|
|
592
|
-
var oe = Object.defineProperty, le = Object.getOwnPropertyDescriptor, pt = (n, t, e, i) => {
|
|
593
|
-
for (var s = i > 1 ? void 0 : i ? le(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
594
|
-
(o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
|
595
|
-
return i && s && oe(t, e, s), s;
|
|
596
|
-
};
|
|
597
|
-
let z = class extends m {
|
|
598
|
-
constructor() {
|
|
599
|
-
super(...arguments), this.padded = !0, this.label = "";
|
|
600
|
-
}
|
|
601
|
-
render() {
|
|
602
|
-
return y`
|
|
603
|
-
<style>
|
|
604
|
-
:host {
|
|
605
|
-
padding: ${this.padded ? g(G.spacing24) : "inherit"};
|
|
606
|
-
}
|
|
607
|
-
</style>
|
|
608
|
-
<telia-heading tag="h4" variant="title-100">${this.label}</telia-heading>
|
|
609
|
-
`;
|
|
610
|
-
}
|
|
611
|
-
};
|
|
612
|
-
z.styles = V`
|
|
613
|
-
:host {
|
|
614
|
-
flex: 1;
|
|
615
|
-
}
|
|
616
|
-
`;
|
|
617
|
-
pt([
|
|
618
|
-
_({ type: Boolean })
|
|
619
|
-
], z.prototype, "padded", 2);
|
|
620
|
-
pt([
|
|
621
|
-
_({ type: String })
|
|
622
|
-
], z.prototype, "label", 2);
|
|
623
|
-
z = pt([
|
|
624
|
-
R("alliance-object-list-head")
|
|
625
|
-
], z);
|
|
626
|
-
var ae = Object.defineProperty, he = Object.getOwnPropertyDescriptor, Wt = (n, t, e, i) => {
|
|
627
|
-
for (var s = i > 1 ? void 0 : i ? he(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
628
|
-
(o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
|
629
|
-
return i && s && ae(t, e, s), s;
|
|
630
|
-
};
|
|
631
|
-
let Q = class extends m {
|
|
632
|
-
constructor() {
|
|
633
|
-
super(...arguments), this.padded = !0;
|
|
634
|
-
}
|
|
635
|
-
render() {
|
|
636
|
-
return y`
|
|
637
|
-
<style>
|
|
638
|
-
:host {
|
|
639
|
-
padding: ${this.padded ? g(G.spacing24) : "inherit"};
|
|
640
|
-
}
|
|
641
|
-
</style>
|
|
642
|
-
<slot></slot>
|
|
643
|
-
`;
|
|
644
|
-
}
|
|
645
|
-
};
|
|
646
|
-
Q.styles = V`
|
|
647
|
-
:host {
|
|
648
|
-
flex: 1;
|
|
649
|
-
display: flex;
|
|
650
|
-
align-items: center;
|
|
651
|
-
}
|
|
652
|
-
`;
|
|
653
|
-
Wt([
|
|
654
|
-
_({ type: Boolean })
|
|
655
|
-
], Q.prototype, "padded", 2);
|
|
656
|
-
Q = Wt([
|
|
657
|
-
R("alliance-object-list-item")
|
|
658
|
-
], Q);
|
|
659
|
-
var ce = Object.defineProperty, de = Object.getOwnPropertyDescriptor, qt = (n, t, e, i) => {
|
|
660
|
-
for (var s = i > 1 ? void 0 : i ? de(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
661
|
-
(o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
|
662
|
-
return i && s && ce(t, e, s), s;
|
|
663
|
-
};
|
|
664
|
-
let Y = class extends m {
|
|
665
|
-
constructor() {
|
|
666
|
-
super(...arguments), this.clickable = !1;
|
|
667
|
-
}
|
|
668
|
-
render() {
|
|
669
|
-
return y`
|
|
670
|
-
<div
|
|
671
|
-
tabindex="${this.clickable ? "0" : "-1"}"
|
|
672
|
-
class="${"object-list-row"}${this.clickable ? " object-list-clickable" : ""}"
|
|
673
|
-
>
|
|
674
|
-
<slot></slot>
|
|
675
|
-
</div>
|
|
676
|
-
<telia-divider />
|
|
677
|
-
`;
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
|
-
Y.styles = V`
|
|
681
|
-
.object-list-row {
|
|
682
|
-
display: flex;
|
|
683
|
-
flex-direction: row;
|
|
684
|
-
}
|
|
685
|
-
.object-list-clickable {
|
|
686
|
-
background-color: transparent;
|
|
687
|
-
transition: background-color ${g(vt.duration150)}
|
|
688
|
-
${g(vt.easeIn)};
|
|
689
|
-
cursor: pointer;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.object-list-clickable:hover,
|
|
693
|
-
.object-list-clickable:focus-visible,
|
|
694
|
-
.object-list-clickable:focus {
|
|
695
|
-
background-color: ${g(lt.gray200)};
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
.object-list-clickable:active {
|
|
699
|
-
background-color: ${g(lt.gray300)};
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
.object-list-clickable:focus-visible {
|
|
703
|
-
outline: solid ${g(ft.focusBorderWidth)} ${g(ft.focusColor)};
|
|
704
|
-
outline-offset: ${g(G.spacing4)};
|
|
705
|
-
}
|
|
706
|
-
`;
|
|
707
|
-
qt([
|
|
708
|
-
_({ type: Boolean })
|
|
709
|
-
], Y.prototype, "clickable", 2);
|
|
710
|
-
Y = qt([
|
|
711
|
-
R("alliance-object-list-row")
|
|
712
|
-
], Y);
|
|
713
|
-
const ue = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, pe = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
714
|
-
class $e {
|
|
612
|
+
/**
|
|
613
|
+
* @license
|
|
614
|
+
* Copyright 2017 Google LLC
|
|
615
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
616
|
+
*/
|
|
617
|
+
const ne = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, re = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
618
|
+
class oe {
|
|
715
619
|
constructor(t) {
|
|
716
620
|
}
|
|
717
621
|
get _$AU() {
|
|
@@ -727,12 +631,17 @@ class $e {
|
|
|
727
631
|
return this.render(...e);
|
|
728
632
|
}
|
|
729
633
|
}
|
|
730
|
-
|
|
634
|
+
/**
|
|
635
|
+
* @license
|
|
636
|
+
* Copyright 2020 Google LLC
|
|
637
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
638
|
+
*/
|
|
639
|
+
const { I: le } = ee, Tt = () => document.createComment(""), z = (n, t, e) => {
|
|
731
640
|
var i;
|
|
732
641
|
const s = n._$AA.parentNode, r = t === void 0 ? n._$AB : t._$AA;
|
|
733
642
|
if (e === void 0) {
|
|
734
|
-
const o = s.insertBefore(
|
|
735
|
-
e = new
|
|
643
|
+
const o = s.insertBefore(Tt(), r), c = s.insertBefore(Tt(), r);
|
|
644
|
+
e = new le(o, c, n, n.options);
|
|
736
645
|
} else {
|
|
737
646
|
const o = e._$AB.nextSibling, c = e._$AM, a = c !== n;
|
|
738
647
|
if (a) {
|
|
@@ -748,7 +657,7 @@ const { I: ve } = te, Ot = () => document.createComment(""), B = (n, t, e) => {
|
|
|
748
657
|
}
|
|
749
658
|
}
|
|
750
659
|
return e;
|
|
751
|
-
}, S = (n, t, e = n) => (n._$AI(t, e), n),
|
|
660
|
+
}, S = (n, t, e = n) => (n._$AI(t, e), n), ae = {}, he = (n, t = ae) => n._$AH = t, ce = (n) => n._$AH, ot = (n) => {
|
|
752
661
|
var t;
|
|
753
662
|
(t = n._$AP) === null || t === void 0 || t.call(n, !1, !0);
|
|
754
663
|
let e = n._$AA;
|
|
@@ -758,14 +667,19 @@ const { I: ve } = te, Ot = () => document.createComment(""), B = (n, t, e) => {
|
|
|
758
667
|
e.remove(), e = s;
|
|
759
668
|
}
|
|
760
669
|
};
|
|
670
|
+
/**
|
|
671
|
+
* @license
|
|
672
|
+
* Copyright 2017 Google LLC
|
|
673
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
674
|
+
*/
|
|
761
675
|
const Ut = (n, t, e) => {
|
|
762
676
|
const i = /* @__PURE__ */ new Map();
|
|
763
677
|
for (let s = t; s <= e; s++)
|
|
764
678
|
i.set(n[s], s);
|
|
765
679
|
return i;
|
|
766
|
-
},
|
|
680
|
+
}, ue = re(class extends oe {
|
|
767
681
|
constructor(n) {
|
|
768
|
-
if (super(n), n.type !==
|
|
682
|
+
if (super(n), n.type !== ne.CHILD)
|
|
769
683
|
throw Error("repeat() can only be used in text expressions");
|
|
770
684
|
}
|
|
771
685
|
ht(n, t, e) {
|
|
@@ -782,91 +696,93 @@ const Ut = (n, t, e) => {
|
|
|
782
696
|
}
|
|
783
697
|
update(n, [t, e, i]) {
|
|
784
698
|
var s;
|
|
785
|
-
const r =
|
|
699
|
+
const r = ce(n), { values: o, keys: c } = this.ht(t, e, i);
|
|
786
700
|
if (!Array.isArray(r))
|
|
787
701
|
return this.ut = c, o;
|
|
788
702
|
const a = (s = this.ut) !== null && s !== void 0 ? s : this.ut = [], l = [];
|
|
789
|
-
let $,
|
|
790
|
-
for (; h <=
|
|
703
|
+
let $, u, h = 0, d = r.length - 1, p = 0, v = o.length - 1;
|
|
704
|
+
for (; h <= d && p <= v; )
|
|
791
705
|
if (r[h] === null)
|
|
792
706
|
h++;
|
|
793
|
-
else if (r[
|
|
794
|
-
|
|
707
|
+
else if (r[d] === null)
|
|
708
|
+
d--;
|
|
795
709
|
else if (a[h] === c[p])
|
|
796
710
|
l[p] = S(r[h], o[p]), h++, p++;
|
|
797
|
-
else if (a[
|
|
798
|
-
l[v] = S(r[
|
|
711
|
+
else if (a[d] === c[v])
|
|
712
|
+
l[v] = S(r[d], o[v]), d--, v--;
|
|
799
713
|
else if (a[h] === c[v])
|
|
800
|
-
l[v] = S(r[h], o[v]),
|
|
801
|
-
else if (a[
|
|
802
|
-
l[p] = S(r[
|
|
803
|
-
else if ($ === void 0 && ($ = Ut(c, p, v),
|
|
804
|
-
if ($.has(a[
|
|
805
|
-
const
|
|
806
|
-
if (
|
|
807
|
-
const
|
|
808
|
-
S(
|
|
714
|
+
l[v] = S(r[h], o[v]), z(n, l[v + 1], r[h]), h++, v--;
|
|
715
|
+
else if (a[d] === c[p])
|
|
716
|
+
l[p] = S(r[d], o[p]), z(n, r[h], r[d]), d--, p++;
|
|
717
|
+
else if ($ === void 0 && ($ = Ut(c, p, v), u = Ut(a, h, d)), $.has(a[h]))
|
|
718
|
+
if ($.has(a[d])) {
|
|
719
|
+
const m = u.get(c[p]), G = m !== void 0 ? r[m] : null;
|
|
720
|
+
if (G === null) {
|
|
721
|
+
const vt = z(n, r[h]);
|
|
722
|
+
S(vt, o[p]), l[p] = vt;
|
|
809
723
|
} else
|
|
810
|
-
l[p] = S(
|
|
724
|
+
l[p] = S(G, o[p]), z(n, r[h], G), r[m] = null;
|
|
811
725
|
p++;
|
|
812
726
|
} else
|
|
813
|
-
ot(r[
|
|
727
|
+
ot(r[d]), d--;
|
|
814
728
|
else
|
|
815
729
|
ot(r[h]), h++;
|
|
816
730
|
for (; p <= v; ) {
|
|
817
|
-
const
|
|
818
|
-
S(
|
|
731
|
+
const m = z(n, l[v + 1]);
|
|
732
|
+
S(m, o[p]), l[p++] = m;
|
|
819
733
|
}
|
|
820
|
-
for (; h <=
|
|
821
|
-
const
|
|
822
|
-
|
|
734
|
+
for (; h <= d; ) {
|
|
735
|
+
const m = r[h++];
|
|
736
|
+
m !== null && ot(m);
|
|
823
737
|
}
|
|
824
|
-
return this.ut = c,
|
|
738
|
+
return this.ut = c, he(n, l), C;
|
|
825
739
|
}
|
|
826
|
-
}),
|
|
740
|
+
}), W = "...", q = (n, t) => {
|
|
827
741
|
let e = t - n + 1;
|
|
828
742
|
return Array.from({ length: e }, (i, s) => s + n);
|
|
829
|
-
},
|
|
743
|
+
}, lt = ({ itemCount: n, pageSize: t, siblingCount: e, currentPage: i }) => {
|
|
830
744
|
const s = Math.ceil(n / t);
|
|
831
745
|
if (e + 5 >= s)
|
|
832
|
-
return
|
|
833
|
-
const o = Math.max(i - e, 1), c = Math.min(i + e, s), a = o > 2, l = c < s - 2, $ = 1,
|
|
746
|
+
return q(1, s);
|
|
747
|
+
const o = Math.max(i - e, 1), c = Math.min(i + e, s), a = o > 2, l = c < s - 2, $ = 1, u = s;
|
|
834
748
|
if (!a && l) {
|
|
835
749
|
let h = 3 + 2 * e;
|
|
836
|
-
return [...
|
|
750
|
+
return [...q(1, h), W, s];
|
|
837
751
|
}
|
|
838
752
|
if (a && !l) {
|
|
839
|
-
let h = 3 + 2 * e,
|
|
840
|
-
return [$,
|
|
753
|
+
let h = 3 + 2 * e, d = q(s - h + 1, s);
|
|
754
|
+
return [$, W, ...d];
|
|
841
755
|
}
|
|
842
756
|
if (a && l) {
|
|
843
|
-
let h =
|
|
844
|
-
return [$,
|
|
757
|
+
let h = q(o, c);
|
|
758
|
+
return [$, W, ...h, W, u];
|
|
845
759
|
}
|
|
846
760
|
return [];
|
|
847
761
|
};
|
|
848
|
-
var
|
|
849
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
762
|
+
var de = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, T = (n, t, e, i) => {
|
|
763
|
+
for (var s = i > 1 ? void 0 : i ? pe(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
850
764
|
(o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
|
851
|
-
return i && s &&
|
|
765
|
+
return i && s && de(t, e, s), s;
|
|
852
766
|
};
|
|
853
|
-
let
|
|
767
|
+
let P = class extends b {
|
|
854
768
|
constructor() {
|
|
855
769
|
super(...arguments), this.itemCount = 0, this.pageSize = 50, this.initialPage = 1, this.siblingCount = 2, this.currentPage = this.initialPage, this.pages = [], this.changePage = (n) => {
|
|
856
|
-
if (n === this.currentPage ||
|
|
770
|
+
if (n === this.currentPage || // Next page is the same
|
|
771
|
+
n < 1 || // Next page is 0
|
|
772
|
+
n > this.pages[this.pages.length - 1])
|
|
857
773
|
return;
|
|
858
|
-
this.currentPage = n, this.pages = Tt(
|
|
859
|
-
this.itemCount,
|
|
860
|
-
this.pageSize,
|
|
861
|
-
this.siblingCount,
|
|
862
|
-
this.currentPage
|
|
863
|
-
);
|
|
864
774
|
const t = new CustomEvent("change-page", {
|
|
865
775
|
bubbles: !0,
|
|
866
776
|
composed: !0,
|
|
867
|
-
detail:
|
|
777
|
+
detail: n,
|
|
778
|
+
cancelable: !0
|
|
868
779
|
});
|
|
869
|
-
this.dispatchEvent(t)
|
|
780
|
+
this.dispatchEvent(t) && (this.currentPage = n, this.pages = lt({
|
|
781
|
+
itemCount: this.itemCount,
|
|
782
|
+
pageSize: this.pageSize,
|
|
783
|
+
siblingCount: this.siblingCount,
|
|
784
|
+
currentPage: this.currentPage
|
|
785
|
+
}));
|
|
870
786
|
}, this.next = () => {
|
|
871
787
|
this.changePage(this.currentPage + 1);
|
|
872
788
|
}, this.previous = () => {
|
|
@@ -874,24 +790,33 @@ let E = class extends m {
|
|
|
874
790
|
};
|
|
875
791
|
}
|
|
876
792
|
connectedCallback() {
|
|
877
|
-
super.connectedCallback(), this.currentPage = this.initialPage, this.pages =
|
|
878
|
-
this.itemCount,
|
|
879
|
-
this.pageSize,
|
|
880
|
-
this.siblingCount,
|
|
881
|
-
this.currentPage
|
|
882
|
-
);
|
|
793
|
+
super.connectedCallback(), this.currentPage = this.initialPage, this.pages = lt({
|
|
794
|
+
itemCount: this.itemCount,
|
|
795
|
+
pageSize: this.pageSize,
|
|
796
|
+
siblingCount: this.siblingCount,
|
|
797
|
+
currentPage: this.currentPage
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
attributeChangedCallback(n, t, e) {
|
|
801
|
+
super.attributeChangedCallback(n, t, e), n === "initial-page" && (this.currentPage = this.initialPage), this.pages = lt({
|
|
802
|
+
itemCount: this.itemCount,
|
|
803
|
+
pageSize: this.pageSize,
|
|
804
|
+
siblingCount: this.siblingCount,
|
|
805
|
+
currentPage: this.currentPage,
|
|
806
|
+
[n]: e
|
|
807
|
+
});
|
|
883
808
|
}
|
|
884
809
|
render() {
|
|
885
|
-
return
|
|
810
|
+
return _`
|
|
886
811
|
<alliance-paginator-button
|
|
887
812
|
@click=${this.previous}
|
|
888
813
|
?disabled=${this.currentPage === 1}
|
|
889
814
|
icon="left"
|
|
890
815
|
></alliance-paginator-button>
|
|
891
816
|
|
|
892
|
-
${
|
|
817
|
+
${ue(
|
|
893
818
|
this.pages,
|
|
894
|
-
(n) => n === "..." ?
|
|
819
|
+
(n) => n === "..." ? _`<telia-label>...</telia-label>` : _`<alliance-paginator-button
|
|
895
820
|
page=${n}
|
|
896
821
|
@click=${() => this.changePage(n)}
|
|
897
822
|
?selected=${this.currentPage === n}
|
|
@@ -906,80 +831,212 @@ let E = class extends m {
|
|
|
906
831
|
`;
|
|
907
832
|
}
|
|
908
833
|
};
|
|
909
|
-
|
|
834
|
+
P.styles = M`
|
|
910
835
|
:host {
|
|
911
836
|
display: flex;
|
|
912
837
|
flex-direction: row;
|
|
913
838
|
place-items: center;
|
|
914
|
-
gap: ${
|
|
839
|
+
gap: ${f(Y.spacing8)};
|
|
915
840
|
}
|
|
916
841
|
|
|
917
842
|
:host .telia-label {
|
|
918
|
-
color: ${
|
|
843
|
+
color: ${f(Z.purple700)};
|
|
919
844
|
}
|
|
920
845
|
|
|
921
846
|
span {
|
|
922
847
|
display: block;
|
|
923
848
|
}
|
|
924
849
|
`;
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
],
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
],
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
],
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
],
|
|
937
|
-
|
|
850
|
+
T([
|
|
851
|
+
y({ type: Number, attribute: "item-count" })
|
|
852
|
+
], P.prototype, "itemCount", 2);
|
|
853
|
+
T([
|
|
854
|
+
y({ type: Number, attribute: "page-size" })
|
|
855
|
+
], P.prototype, "pageSize", 2);
|
|
856
|
+
T([
|
|
857
|
+
y({ type: Number, attribute: "initial-page" })
|
|
858
|
+
], P.prototype, "initialPage", 2);
|
|
859
|
+
T([
|
|
860
|
+
y({ type: Number, attribute: "sibling-count" })
|
|
861
|
+
], P.prototype, "siblingCount", 2);
|
|
862
|
+
T([
|
|
938
863
|
Vt()
|
|
939
|
-
],
|
|
940
|
-
|
|
864
|
+
], P.prototype, "currentPage", 2);
|
|
865
|
+
T([
|
|
941
866
|
Vt()
|
|
942
|
-
],
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
],
|
|
946
|
-
var
|
|
947
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
867
|
+
], P.prototype, "pages", 2);
|
|
868
|
+
P = T([
|
|
869
|
+
x("alliance-paginator")
|
|
870
|
+
], P);
|
|
871
|
+
var $e = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, B = (n, t, e, i) => {
|
|
872
|
+
for (var s = i > 1 ? void 0 : i ? ve(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
948
873
|
(o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
|
949
|
-
return i && s &&
|
|
950
|
-
},
|
|
951
|
-
let
|
|
874
|
+
return i && s && $e(t, e, s), s;
|
|
875
|
+
}, Wt = /* @__PURE__ */ ((n) => (n.Left = "left", n.Right = "right", n))(Wt || {});
|
|
876
|
+
let O = class extends b {
|
|
952
877
|
constructor() {
|
|
953
878
|
super(...arguments), this.selected = !1, this.disabled = !1, this.clickable = !0;
|
|
954
879
|
}
|
|
955
880
|
renderContent() {
|
|
956
|
-
return this.icon === "left" ?
|
|
881
|
+
return this.icon === "left" ? _`<telia-icon size="sm" svg="${Jt.svg}" />` : this.icon === "right" ? _`<telia-icon size="sm" svg="${Ft.svg}" />` : _`<span>${this.page}</span>`;
|
|
957
882
|
}
|
|
958
883
|
render() {
|
|
959
|
-
return
|
|
960
|
-
?disabled=${this.disabled}
|
|
961
|
-
variant=${this.selected ? "primary" : "tertiary-purple"}
|
|
962
|
-
>
|
|
963
|
-
${this.renderContent()}
|
|
964
|
-
</telia-button> `;
|
|
884
|
+
return _`<telia-button ?disabled=${this.disabled} variant=${this.selected ? "primary" : "tertiary-purple"}>${this.renderContent()}</telia-button> `;
|
|
965
885
|
}
|
|
966
886
|
};
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
],
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
],
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
],
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
],
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
],
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
],
|
|
887
|
+
B([
|
|
888
|
+
y({ type: Wt })
|
|
889
|
+
], O.prototype, "icon", 2);
|
|
890
|
+
B([
|
|
891
|
+
y({ type: String })
|
|
892
|
+
], O.prototype, "page", 2);
|
|
893
|
+
B([
|
|
894
|
+
y({ type: Boolean })
|
|
895
|
+
], O.prototype, "selected", 2);
|
|
896
|
+
B([
|
|
897
|
+
y({ type: Boolean })
|
|
898
|
+
], O.prototype, "disabled", 2);
|
|
899
|
+
B([
|
|
900
|
+
y({ type: Boolean })
|
|
901
|
+
], O.prototype, "clickable", 2);
|
|
902
|
+
O = B([
|
|
903
|
+
x("alliance-paginator-button")
|
|
904
|
+
], O);
|
|
905
|
+
var ge = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, _e = (n, t, e, i) => {
|
|
906
|
+
for (var s = i > 1 ? void 0 : i ? fe(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
907
|
+
(o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
|
908
|
+
return i && s && ge(t, e, s), s;
|
|
909
|
+
};
|
|
910
|
+
let ht = class extends b {
|
|
911
|
+
render() {
|
|
912
|
+
return _` <alliance-tb>
|
|
913
|
+
<slot></slot>
|
|
914
|
+
</alliance-tb>`;
|
|
915
|
+
}
|
|
916
|
+
};
|
|
917
|
+
ht.styles = M`
|
|
918
|
+
:host {
|
|
919
|
+
display: table;
|
|
920
|
+
border-collapse: collapse;
|
|
921
|
+
width: 100%;
|
|
922
|
+
}
|
|
923
|
+
`;
|
|
924
|
+
ht = _e([
|
|
925
|
+
x("alliance-table")
|
|
926
|
+
], ht);
|
|
927
|
+
var ye = Object.defineProperty, be = Object.getOwnPropertyDescriptor, me = (n, t, e, i) => {
|
|
928
|
+
for (var s = i > 1 ? void 0 : i ? be(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
929
|
+
(o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
|
930
|
+
return i && s && ye(t, e, s), s;
|
|
931
|
+
};
|
|
932
|
+
let ct = class extends b {
|
|
933
|
+
render() {
|
|
934
|
+
return _`<slot></slot>`;
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
ct.styles = M`
|
|
938
|
+
:host {
|
|
939
|
+
display: table-row-group;
|
|
940
|
+
vertical-align: middle;
|
|
941
|
+
border-color: inherit;
|
|
942
|
+
}
|
|
943
|
+
`;
|
|
944
|
+
ct = me([
|
|
945
|
+
x("alliance-tb")
|
|
946
|
+
], ct);
|
|
947
|
+
var Ae = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, Ee = (n, t, e, i) => {
|
|
948
|
+
for (var s = i > 1 ? void 0 : i ? Pe(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
949
|
+
(o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
|
950
|
+
return i && s && Ae(t, e, s), s;
|
|
951
|
+
};
|
|
952
|
+
let ut = class extends b {
|
|
953
|
+
render() {
|
|
954
|
+
return _` <slot></slot> `;
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
ut.styles = M`
|
|
958
|
+
:host {
|
|
959
|
+
display: table-cell;
|
|
960
|
+
vertical-align: inherit;
|
|
961
|
+
padding: ${f(Y.spacing24)};
|
|
962
|
+
}
|
|
963
|
+
`;
|
|
964
|
+
ut = Ee([
|
|
965
|
+
x("alliance-td")
|
|
966
|
+
], ut);
|
|
967
|
+
var Se = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, qt = (n, t, e, i) => {
|
|
968
|
+
for (var s = i > 1 ? void 0 : i ? Ce(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
969
|
+
(o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
|
970
|
+
return i && s && Se(t, e, s), s;
|
|
971
|
+
};
|
|
972
|
+
let Q = class extends b {
|
|
973
|
+
constructor() {
|
|
974
|
+
super(...arguments), this.label = "";
|
|
975
|
+
}
|
|
976
|
+
render() {
|
|
977
|
+
return _`<telia-heading tag="h4" variant="title-100">${this.label}</telia-heading>`;
|
|
978
|
+
}
|
|
979
|
+
};
|
|
980
|
+
Q.styles = M`
|
|
981
|
+
:host {
|
|
982
|
+
display: table-cell;
|
|
983
|
+
padding: ${f(Y.spacing24)};
|
|
984
|
+
}
|
|
985
|
+
`;
|
|
986
|
+
qt([
|
|
987
|
+
y({ type: String })
|
|
988
|
+
], Q.prototype, "label", 2);
|
|
989
|
+
Q = qt([
|
|
990
|
+
x("alliance-th")
|
|
991
|
+
], Q);
|
|
992
|
+
var we = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, Kt = (n, t, e, i) => {
|
|
993
|
+
for (var s = i > 1 ? void 0 : i ? Oe(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
994
|
+
(o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
|
995
|
+
return i && s && we(t, e, s), s;
|
|
996
|
+
};
|
|
997
|
+
let X = class extends b {
|
|
998
|
+
constructor() {
|
|
999
|
+
super(...arguments), this.clickable = !1;
|
|
1000
|
+
}
|
|
1001
|
+
render() {
|
|
1002
|
+
return _`
|
|
1003
|
+
${this.clickable ? xe : ""}
|
|
1004
|
+
<slot></slot>
|
|
1005
|
+
`;
|
|
1006
|
+
}
|
|
1007
|
+
};
|
|
1008
|
+
X.styles = M`
|
|
1009
|
+
:host {
|
|
1010
|
+
display: table-row;
|
|
1011
|
+
border-bottom: ${f(Zt.widthXs)} solid ${f(Z.gray200)};
|
|
1012
|
+
}
|
|
1013
|
+
`;
|
|
1014
|
+
Kt([
|
|
1015
|
+
y({ type: Boolean })
|
|
1016
|
+
], X.prototype, "clickable", 2);
|
|
1017
|
+
X = Kt([
|
|
1018
|
+
x("alliance-tr")
|
|
1019
|
+
], X);
|
|
1020
|
+
const xe = _`<style>
|
|
1021
|
+
:host {
|
|
1022
|
+
background-color: transparent;
|
|
1023
|
+
transition: background-color ${f(gt.duration150)} ${f(gt.easeIn)};
|
|
1024
|
+
cursor: pointer;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
:host(:hover),
|
|
1028
|
+
:host(:focus-visible),
|
|
1029
|
+
:host(:focus) {
|
|
1030
|
+
background-color: ${f(Z.gray200)};
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
:host(:active) {
|
|
1034
|
+
background-color: ${f(Z.gray300)};
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
:host(:focus-visible) {
|
|
1038
|
+
outline: solid ${f(ft.focusBorderWidth)} ${f(ft.focusColor)};
|
|
1039
|
+
outline-offset: ${f(Y.spacing4)};
|
|
1040
|
+
}
|
|
1041
|
+
</style>`;
|
|
985
1042
|
//# sourceMappingURL=index.js.map
|