@telia-ace/alliance-ui 1.0.6-next.4 → 1.0.6-next.5

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/chunks/alliance-modal-f2ab100c.js +154 -0
  3. package/chunks/alliance-modal-f2ab100c.js.map +1 -0
  4. package/chunks/alliance-paginator-button-83c050bc.js +181 -0
  5. package/chunks/alliance-paginator-button-83c050bc.js.map +1 -0
  6. package/chunks/alliance-table-row-67a6becb.js +142 -0
  7. package/chunks/alliance-table-row-67a6becb.js.map +1 -0
  8. package/chunks/{close-cf3fd2c4.js → chevron-right-788ce8a9.js} +4 -5
  9. package/chunks/chevron-right-788ce8a9.js.map +1 -0
  10. package/chunks/close-7d423291.js +5 -0
  11. package/chunks/close-7d423291.js.map +1 -0
  12. package/chunks/{variables-07547793.js → index-57f6bd40.js} +25 -30
  13. package/chunks/index-57f6bd40.js.map +1 -0
  14. package/chunks/query-assigned-elements-4285356d.js +605 -0
  15. package/chunks/query-assigned-elements-4285356d.js.map +1 -0
  16. package/chunks/repeat-bf84f01f.js +134 -0
  17. package/chunks/repeat-bf84f01f.js.map +1 -0
  18. package/chunks/variables-ecb680f0.js +8 -0
  19. package/chunks/variables-ecb680f0.js.map +1 -0
  20. package/components/alliance-modal/alliance-modal.d.ts +4 -2
  21. package/components/alliance-modal.js +12 -0
  22. package/components/alliance-modal.js.map +1 -0
  23. package/components/alliance-paginator/alliance-paginator.d.ts +5 -2
  24. package/components/alliance-paginator.js +12 -0
  25. package/components/alliance-paginator.js.map +1 -0
  26. package/components/alliance-table.js +8 -0
  27. package/components/alliance-table.js.map +1 -0
  28. package/components/index.d.ts +2 -0
  29. package/components/index.js +13 -1185
  30. package/components/index.js.map +1 -1
  31. package/package.json +5 -1
  32. package/voca/foundations/index.js +4 -3
  33. package/voca/foundations/index.js.map +1 -1
  34. package/voca/icons/index.js +3 -2
  35. package/voca/icons/index.js.map +1 -1
  36. package/chunks/close-cf3fd2c4.js.map +0 -1
  37. package/chunks/variables-07547793.js.map +0 -1
@@ -1,1189 +1,17 @@
1
+ import "../chunks/alliance-modal-f2ab100c.js";
2
+ import "../chunks/alliance-paginator-button-83c050bc.js";
3
+ import "../chunks/alliance-table-row-67a6becb.js";
4
+ import "../chunks/query-assigned-elements-4285356d.js";
5
+ import "../chunks/repeat-bf84f01f.js";
1
6
  import "../chunks/telia-button2-d25eddda.js";
2
- import "../chunks/telia-heading2-9d3ab48b.js";
3
- import "../chunks/telia-icon2-34bf5aef.js";
4
- import { l as it, c as x, b as dt, s as Yt, a as Gt, d as b, m as yt, f as mt } from "../chunks/variables-07547793.js";
5
- import { c as te, a as ee, b as ie } from "../chunks/close-cf3fd2c4.js";
6
- import "../chunks/telia-label2-4d674e5e.js";
7
7
  import "../chunks/index-17652cf7.js";
8
- import "../chunks/telia-vst2-1a7f7bd6.js";
8
+ import "../chunks/telia-icon2-34bf5aef.js";
9
9
  import "../chunks/getSvgContent-f2389ce0.js";
10
- /**
11
- * @license
12
- * Copyright 2019 Google LLC
13
- * SPDX-License-Identifier: BSD-3-Clause
14
- */
15
- const X = window, gt = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ft = Symbol(), At = /* @__PURE__ */ new WeakMap();
16
- let Mt = class {
17
- constructor(t, e, i) {
18
- if (this._$cssResult$ = !0, i !== ft)
19
- throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
20
- this.cssText = t, this.t = e;
21
- }
22
- get styleSheet() {
23
- let t = this.o;
24
- const e = this.t;
25
- if (gt && t === void 0) {
26
- const i = e !== void 0 && e.length === 1;
27
- i && (t = At.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && At.set(e, t));
28
- }
29
- return t;
30
- }
31
- toString() {
32
- return this.cssText;
33
- }
34
- };
35
- const d = (n) => new Mt(typeof n == "string" ? n : n + "", void 0, ft), N = (n, ...t) => {
36
- const e = n.length === 1 ? n[0] : t.reduce((i, s, r) => i + ((o) => {
37
- if (o._$cssResult$ === !0)
38
- return o.cssText;
39
- if (typeof o == "number")
40
- return o;
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.");
42
- })(s) + n[r + 1], n[0]);
43
- return new Mt(e, n, ft);
44
- }, se = (n, t) => {
45
- gt ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
46
- const i = document.createElement("style"), s = X.litNonce;
47
- s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, n.appendChild(i);
48
- });
49
- }, Pt = gt ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
50
- let e = "";
51
- for (const i of t.cssRules)
52
- e += i.cssText;
53
- return d(e);
54
- })(n) : n;
55
- /**
56
- * @license
57
- * Copyright 2017 Google LLC
58
- * SPDX-License-Identifier: BSD-3-Clause
59
- */
60
- var st;
61
- const F = window, Et = F.trustedTypes, ne = Et ? Et.emptyScript : "", Ct = F.reactiveElementPolyfillSupport, ut = { toAttribute(n, t) {
62
- switch (t) {
63
- case Boolean:
64
- n = n ? ne : null;
65
- break;
66
- case Object:
67
- case Array:
68
- n = n == null ? n : JSON.stringify(n);
69
- }
70
- return n;
71
- }, fromAttribute(n, t) {
72
- let e = n;
73
- switch (t) {
74
- case Boolean:
75
- e = n !== null;
76
- break;
77
- case Number:
78
- e = n === null ? null : Number(n);
79
- break;
80
- case Object:
81
- case Array:
82
- try {
83
- e = JSON.parse(n);
84
- } catch {
85
- e = null;
86
- }
87
- }
88
- return e;
89
- } }, kt = (n, t) => t !== n && (t == t || n == n), nt = { attribute: !0, type: String, converter: ut, reflect: !1, hasChanged: kt };
90
- let R = class extends HTMLElement {
91
- constructor() {
92
- super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
93
- }
94
- static addInitializer(t) {
95
- var e;
96
- this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);
97
- }
98
- static get observedAttributes() {
99
- this.finalize();
100
- const t = [];
101
- return this.elementProperties.forEach((e, i) => {
102
- const s = this._$Ep(i, e);
103
- s !== void 0 && (this._$Ev.set(s, i), t.push(s));
104
- }), t;
105
- }
106
- static createProperty(t, e = nt) {
107
- if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
108
- const i = typeof t == "symbol" ? Symbol() : "__" + t, s = this.getPropertyDescriptor(t, i, e);
109
- s !== void 0 && Object.defineProperty(this.prototype, t, s);
110
- }
111
- }
112
- static getPropertyDescriptor(t, e, i) {
113
- return { get() {
114
- return this[e];
115
- }, set(s) {
116
- const r = this[t];
117
- this[e] = s, this.requestUpdate(t, r, i);
118
- }, configurable: !0, enumerable: !0 };
119
- }
120
- static getPropertyOptions(t) {
121
- return this.elementProperties.get(t) || nt;
122
- }
123
- static finalize() {
124
- if (this.hasOwnProperty("finalized"))
125
- return !1;
126
- this.finalized = !0;
127
- const t = Object.getPrototypeOf(this);
128
- if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
129
- const e = this.properties, i = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
130
- for (const s of i)
131
- this.createProperty(s, e[s]);
132
- }
133
- return this.elementStyles = this.finalizeStyles(this.styles), !0;
134
- }
135
- static finalizeStyles(t) {
136
- const e = [];
137
- if (Array.isArray(t)) {
138
- const i = new Set(t.flat(1 / 0).reverse());
139
- for (const s of i)
140
- e.unshift(Pt(s));
141
- } else
142
- t !== void 0 && e.push(Pt(t));
143
- return e;
144
- }
145
- static _$Ep(t, e) {
146
- const i = e.attribute;
147
- return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
148
- }
149
- u() {
150
- var t;
151
- 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));
152
- }
153
- addController(t) {
154
- var e, i;
155
- ((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((i = t.hostConnected) === null || i === void 0 || i.call(t));
156
- }
157
- removeController(t) {
158
- var e;
159
- (e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
160
- }
161
- _$Eg() {
162
- this.constructor.elementProperties.forEach((t, e) => {
163
- this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
164
- });
165
- }
166
- createRenderRoot() {
167
- var t;
168
- const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
169
- return se(e, this.constructor.elementStyles), e;
170
- }
171
- connectedCallback() {
172
- var t;
173
- this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
174
- var i;
175
- return (i = e.hostConnected) === null || i === void 0 ? void 0 : i.call(e);
176
- });
177
- }
178
- enableUpdating(t) {
179
- }
180
- disconnectedCallback() {
181
- var t;
182
- (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
183
- var i;
184
- return (i = e.hostDisconnected) === null || i === void 0 ? void 0 : i.call(e);
185
- });
186
- }
187
- attributeChangedCallback(t, e, i) {
188
- this._$AK(t, i);
189
- }
190
- _$EO(t, e, i = nt) {
191
- var s;
192
- const r = this.constructor._$Ep(t, i);
193
- if (r !== void 0 && i.reflect === !0) {
194
- const o = (((s = i.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? i.converter : ut).toAttribute(e, i.type);
195
- this._$El = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$El = null;
196
- }
197
- }
198
- _$AK(t, e) {
199
- var i;
200
- const s = this.constructor, r = s._$Ev.get(t);
201
- if (r !== void 0 && this._$El !== r) {
202
- const o = s.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) === null || i === void 0 ? void 0 : i.fromAttribute) !== void 0 ? o.converter : ut;
203
- this._$El = r, this[r] = c.fromAttribute(e, o.type), this._$El = null;
204
- }
205
- }
206
- requestUpdate(t, e, i) {
207
- let s = !0;
208
- t !== void 0 && (((i = i || this.constructor.getPropertyOptions(t)).hasChanged || kt)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, i))) : s = !1), !this.isUpdatePending && s && (this._$E_ = this._$Ej());
209
- }
210
- async _$Ej() {
211
- this.isUpdatePending = !0;
212
- try {
213
- await this._$E_;
214
- } catch (e) {
215
- Promise.reject(e);
216
- }
217
- const t = this.scheduleUpdate();
218
- return t != null && await t, !this.isUpdatePending;
219
- }
220
- scheduleUpdate() {
221
- return this.performUpdate();
222
- }
223
- performUpdate() {
224
- var t;
225
- if (!this.isUpdatePending)
226
- return;
227
- this.hasUpdated, this._$Ei && (this._$Ei.forEach((s, r) => this[r] = s), this._$Ei = void 0);
228
- let e = !1;
229
- const i = this._$AL;
230
- try {
231
- e = this.shouldUpdate(i), e ? (this.willUpdate(i), (t = this._$ES) === null || t === void 0 || t.forEach((s) => {
232
- var r;
233
- return (r = s.hostUpdate) === null || r === void 0 ? void 0 : r.call(s);
234
- }), this.update(i)) : this._$Ek();
235
- } catch (s) {
236
- throw e = !1, this._$Ek(), s;
237
- }
238
- e && this._$AE(i);
239
- }
240
- willUpdate(t) {
241
- }
242
- _$AE(t) {
243
- var e;
244
- (e = this._$ES) === null || e === void 0 || e.forEach((i) => {
245
- var s;
246
- return (s = i.hostUpdated) === null || s === void 0 ? void 0 : s.call(i);
247
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
248
- }
249
- _$Ek() {
250
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
251
- }
252
- get updateComplete() {
253
- return this.getUpdateComplete();
254
- }
255
- getUpdateComplete() {
256
- return this._$E_;
257
- }
258
- shouldUpdate(t) {
259
- return !0;
260
- }
261
- update(t) {
262
- this._$EC !== void 0 && (this._$EC.forEach((e, i) => this._$EO(i, this[i], e)), this._$EC = void 0), this._$Ek();
263
- }
264
- updated(t) {
265
- }
266
- firstUpdated(t) {
267
- }
268
- };
269
- R.finalized = !0, R.elementProperties = /* @__PURE__ */ new Map(), R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, Ct == null || Ct({ ReactiveElement: R }), ((st = F.reactiveElementVersions) !== null && st !== void 0 ? st : F.reactiveElementVersions = []).push("1.6.1");
270
- /**
271
- * @license
272
- * Copyright 2017 Google LLC
273
- * SPDX-License-Identifier: BSD-3-Clause
274
- */
275
- var rt;
276
- const Q = window, M = Q.trustedTypes, wt = M ? M.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, P = `lit$${(Math.random() + "").slice(9)}$`, _t = "?" + P, re = `<${_t}>`, k = document, V = (n = "") => k.createComment(n), W = (n) => n === null || typeof n != "object" && typeof n != "function", zt = Array.isArray, jt = (n) => zt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", L = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, St = /-->/g, xt = />/g, w = RegExp(`>|[
277
- \f\r](?:([^\\s"'>=/]+)([
278
- \f\r]*=[
279
- \f\r]*(?:[^
280
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ot = /'/g, Tt = /"/g, Bt = /^(?:script|style|textarea|title)$/i, oe = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), _ = oe(1), O = Symbol.for("lit-noChange"), f = Symbol.for("lit-nothing"), Ut = /* @__PURE__ */ new WeakMap(), D = k.createTreeWalker(k, 129, null, !1), Lt = (n, t) => {
281
- const e = n.length - 1, i = [];
282
- let s, r = t === 2 ? "<svg>" : "", o = L;
283
- for (let a = 0; a < e; a++) {
284
- const l = n[a];
285
- let v, u, h = -1, p = 0;
286
- for (; p < l.length && (o.lastIndex = p, u = o.exec(l), u !== null); )
287
- p = o.lastIndex, o === L ? u[1] === "!--" ? o = St : u[1] !== void 0 ? o = xt : u[2] !== void 0 ? (Bt.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = w) : u[3] !== void 0 && (o = w) : o === w ? u[0] === ">" ? (o = s ?? L, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, v = u[1], o = u[3] === void 0 ? w : u[3] === '"' ? Tt : Ot) : o === Tt || o === Ot ? o = w : o === St || o === xt ? o = L : (o = w, s = void 0);
288
- const $ = o === w && n[a + 1].startsWith("/>") ? " " : "";
289
- r += o === L ? l + re : h >= 0 ? (i.push(v), l.slice(0, h) + "$lit$" + l.slice(h) + P + $) : l + P + (h === -2 ? (i.push(void 0), a) : $);
290
- }
291
- const c = r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "");
292
- if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
293
- throw Error("invalid template strings array");
294
- return [wt !== void 0 ? wt.createHTML(c) : c, i];
295
- };
296
- class K {
297
- constructor({ strings: t, _$litType$: e }, i) {
298
- let s;
299
- this.parts = [];
300
- let r = 0, o = 0;
301
- const c = t.length - 1, a = this.parts, [l, v] = Lt(t, e);
302
- if (this.el = K.createElement(l, i), D.currentNode = this.el.content, e === 2) {
303
- const u = this.el.content, h = u.firstChild;
304
- h.remove(), u.append(...h.childNodes);
305
- }
306
- for (; (s = D.nextNode()) !== null && a.length < c; ) {
307
- if (s.nodeType === 1) {
308
- if (s.hasAttributes()) {
309
- const u = [];
310
- for (const h of s.getAttributeNames())
311
- if (h.endsWith("$lit$") || h.startsWith(P)) {
312
- const p = v[o++];
313
- if (u.push(h), p !== void 0) {
314
- const $ = s.getAttribute(p.toLowerCase() + "$lit$").split(P), g = /([.?@])?(.*)/.exec(p);
315
- a.push({ type: 1, index: r, name: g[2], strings: $, ctor: g[1] === "." ? Vt : g[1] === "?" ? Wt : g[1] === "@" ? Kt : q });
316
- } else
317
- a.push({ type: 6, index: r });
318
- }
319
- for (const h of u)
320
- s.removeAttribute(h);
321
- }
322
- if (Bt.test(s.tagName)) {
323
- const u = s.textContent.split(P), h = u.length - 1;
324
- if (h > 0) {
325
- s.textContent = M ? M.emptyScript : "";
326
- for (let p = 0; p < h; p++)
327
- s.append(u[p], V()), D.nextNode(), a.push({ type: 2, index: ++r });
328
- s.append(u[h], V());
329
- }
330
- }
331
- } else if (s.nodeType === 8)
332
- if (s.data === _t)
333
- a.push({ type: 2, index: r });
334
- else {
335
- let u = -1;
336
- for (; (u = s.data.indexOf(P, u + 1)) !== -1; )
337
- a.push({ type: 7, index: r }), u += P.length - 1;
338
- }
339
- r++;
340
- }
341
- }
342
- static createElement(t, e) {
343
- const i = k.createElement("template");
344
- return i.innerHTML = t, i;
345
- }
346
- }
347
- function T(n, t, e = n, i) {
348
- var s, r, o, c;
349
- if (t === O)
350
- return t;
351
- let a = i !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[i] : e._$Cl;
352
- const l = W(t) ? void 0 : t._$litDirective$;
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 = T(n, a._$AS(n, t.values), a, i)), t;
354
- }
355
- class It {
356
- constructor(t, e) {
357
- this.u = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
358
- }
359
- get parentNode() {
360
- return this._$AM.parentNode;
361
- }
362
- get _$AU() {
363
- return this._$AM._$AU;
364
- }
365
- v(t) {
366
- var e;
367
- const { el: { content: i }, parts: s } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : k).importNode(i, !0);
368
- D.currentNode = r;
369
- let o = D.nextNode(), c = 0, a = 0, l = s[0];
370
- for (; l !== void 0; ) {
371
- if (c === l.index) {
372
- let v;
373
- l.type === 2 ? v = new j(o, o.nextSibling, this, t) : l.type === 1 ? v = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (v = new qt(o, this, t)), this.u.push(v), l = s[++a];
374
- }
375
- c !== (l == null ? void 0 : l.index) && (o = D.nextNode(), c++);
376
- }
377
- return r;
378
- }
379
- p(t) {
380
- let e = 0;
381
- for (const i of this.u)
382
- i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
383
- }
384
- }
385
- class j {
386
- constructor(t, e, i, s) {
387
- var r;
388
- this.type = 2, this._$AH = f, 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;
389
- }
390
- get _$AU() {
391
- var t, e;
392
- return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cm;
393
- }
394
- get parentNode() {
395
- let t = this._$AA.parentNode;
396
- const e = this._$AM;
397
- return e !== void 0 && t.nodeType === 11 && (t = e.parentNode), t;
398
- }
399
- get startNode() {
400
- return this._$AA;
401
- }
402
- get endNode() {
403
- return this._$AB;
404
- }
405
- _$AI(t, e = this) {
406
- t = T(this, t, e), W(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== O && this.g(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : jt(t) ? this.k(t) : this.g(t);
407
- }
408
- O(t, e = this._$AB) {
409
- return this._$AA.parentNode.insertBefore(t, e);
410
- }
411
- T(t) {
412
- this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
413
- }
414
- g(t) {
415
- this._$AH !== f && W(this._$AH) ? this._$AA.nextSibling.data = t : this.T(k.createTextNode(t)), this._$AH = t;
416
- }
417
- $(t) {
418
- var e;
419
- const { values: i, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = K.createElement(s.h, this.options)), s);
420
- if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
421
- this._$AH.p(i);
422
- else {
423
- const o = new It(r, this), c = o.v(this.options);
424
- o.p(i), this.T(c), this._$AH = o;
425
- }
426
- }
427
- _$AC(t) {
428
- let e = Ut.get(t.strings);
429
- return e === void 0 && Ut.set(t.strings, e = new K(t)), e;
430
- }
431
- k(t) {
432
- zt(this._$AH) || (this._$AH = [], this._$AR());
433
- const e = this._$AH;
434
- let i, s = 0;
435
- for (const r of t)
436
- s === e.length ? e.push(i = new j(this.O(V()), this.O(V()), this, this.options)) : i = e[s], i._$AI(r), s++;
437
- s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
438
- }
439
- _$AR(t = this._$AA.nextSibling, e) {
440
- var i;
441
- for ((i = this._$AP) === null || i === void 0 || i.call(this, !1, !0, e); t && t !== this._$AB; ) {
442
- const s = t.nextSibling;
443
- t.remove(), t = s;
444
- }
445
- }
446
- setConnected(t) {
447
- var e;
448
- this._$AM === void 0 && (this._$Cm = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
449
- }
450
- }
451
- class q {
452
- constructor(t, e, i, s, r) {
453
- this.type = 1, this._$AH = f, 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 = f;
454
- }
455
- get tagName() {
456
- return this.element.tagName;
457
- }
458
- get _$AU() {
459
- return this._$AM._$AU;
460
- }
461
- _$AI(t, e = this, i, s) {
462
- const r = this.strings;
463
- let o = !1;
464
- if (r === void 0)
465
- t = T(this, t, e, 0), o = !W(t) || t !== this._$AH && t !== O, o && (this._$AH = t);
466
- else {
467
- const c = t;
468
- let a, l;
469
- for (t = r[0], a = 0; a < r.length - 1; a++)
470
- l = T(this, c[i + a], e, a), l === O && (l = this._$AH[a]), o || (o = !W(l) || l !== this._$AH[a]), l === f ? t = f : t !== f && (t += (l ?? "") + r[a + 1]), this._$AH[a] = l;
471
- }
472
- o && !s && this.j(t);
473
- }
474
- j(t) {
475
- t === f ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
476
- }
477
- }
478
- class Vt extends q {
479
- constructor() {
480
- super(...arguments), this.type = 3;
481
- }
482
- j(t) {
483
- this.element[this.name] = t === f ? void 0 : t;
484
- }
485
- }
486
- const le = M ? M.emptyScript : "";
487
- class Wt extends q {
488
- constructor() {
489
- super(...arguments), this.type = 4;
490
- }
491
- j(t) {
492
- t && t !== f ? this.element.setAttribute(this.name, le) : this.element.removeAttribute(this.name);
493
- }
494
- }
495
- class Kt extends q {
496
- constructor(t, e, i, s, r) {
497
- super(t, e, i, s, r), this.type = 5;
498
- }
499
- _$AI(t, e = this) {
500
- var i;
501
- if ((t = (i = T(this, t, e, 0)) !== null && i !== void 0 ? i : f) === O)
502
- return;
503
- const s = this._$AH, r = t === f && s !== f || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== f && (s === f || r);
504
- r && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
505
- }
506
- handleEvent(t) {
507
- var e, i;
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);
509
- }
510
- }
511
- class qt {
512
- constructor(t, e, i) {
513
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
514
- }
515
- get _$AU() {
516
- return this._$AM._$AU;
517
- }
518
- _$AI(t) {
519
- T(this, t);
520
- }
521
- }
522
- const ae = { P: "$lit$", A: P, M: _t, C: 1, L: Lt, R: It, D: jt, V: T, I: j, H: q, N: Wt, U: Kt, B: Vt, F: qt }, Nt = Q.litHtmlPolyfillSupport;
523
- Nt == null || Nt(K, j), ((rt = Q.litHtmlVersions) !== null && rt !== void 0 ? rt : Q.litHtmlVersions = []).push("2.6.1");
524
- const he = (n, t, e) => {
525
- var i, s;
526
- const r = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : t;
527
- let o = r._$litPart$;
528
- if (o === void 0) {
529
- const c = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;
530
- r._$litPart$ = o = new j(t.insertBefore(V(), c), c, void 0, e ?? {});
531
- }
532
- return o._$AI(n), o;
533
- };
534
- /**
535
- * @license
536
- * Copyright 2017 Google LLC
537
- * SPDX-License-Identifier: BSD-3-Clause
538
- */
539
- var ot, lt;
540
- let m = class extends R {
541
- constructor() {
542
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
543
- }
544
- createRenderRoot() {
545
- var t, e;
546
- const i = super.createRenderRoot();
547
- return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = i.firstChild), i;
548
- }
549
- update(t) {
550
- const e = this.render();
551
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = he(e, this.renderRoot, this.renderOptions);
552
- }
553
- connectedCallback() {
554
- var t;
555
- super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
556
- }
557
- disconnectedCallback() {
558
- var t;
559
- super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
560
- }
561
- render() {
562
- return O;
563
- }
564
- };
565
- m.finalized = !0, m._$litElement$ = !0, (ot = globalThis.litElementHydrateSupport) === null || ot === void 0 || ot.call(globalThis, { LitElement: m });
566
- const Ht = globalThis.litElementPolyfillSupport;
567
- Ht == null || Ht({ LitElement: m });
568
- ((lt = globalThis.litElementVersions) !== null && lt !== void 0 ? lt : globalThis.litElementVersions = []).push("3.2.2");
569
- /**
570
- * @license
571
- * Copyright 2017 Google LLC
572
- * SPDX-License-Identifier: BSD-3-Clause
573
- */
574
- const C = (n) => (t) => typeof t == "function" ? ((e, i) => (customElements.define(e, i), i))(n, t) : ((e, i) => {
575
- const { kind: s, elements: r } = i;
576
- return { kind: s, elements: r, finisher(o) {
577
- customElements.define(e, o);
578
- } };
579
- })(n, t);
580
- /**
581
- * @license
582
- * Copyright 2017 Google LLC
583
- * SPDX-License-Identifier: BSD-3-Clause
584
- */
585
- const ce = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
586
- e.createProperty(t.key, n);
587
- } } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
588
- typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
589
- }, finisher(e) {
590
- e.createProperty(t.key, n);
591
- } };
592
- function y(n) {
593
- return (t, e) => e !== void 0 ? ((i, s, r) => {
594
- s.constructor.createProperty(r, i);
595
- })(n, t, e) : ce(n, t);
596
- }
597
- /**
598
- * @license
599
- * Copyright 2017 Google LLC
600
- * SPDX-License-Identifier: BSD-3-Clause
601
- */
602
- function Zt(n) {
603
- return y({ ...n, state: !0 });
604
- }
605
- /**
606
- * @license
607
- * Copyright 2021 Google LLC
608
- * SPDX-License-Identifier: BSD-3-Clause
609
- */
610
- var at;
611
- ((at = window.HTMLSlotElement) === null || at === void 0 ? void 0 : at.prototype.assignedElements) != null;
612
- /**
613
- * @license
614
- * Copyright 2017 Google LLC
615
- * SPDX-License-Identifier: BSD-3-Clause
616
- */
617
- const de = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ue = (n) => (...t) => ({ _$litDirective$: n, values: t });
618
- class pe {
619
- constructor(t) {
620
- }
621
- get _$AU() {
622
- return this._$AM._$AU;
623
- }
624
- _$AT(t, e, i) {
625
- this._$Ct = t, this._$AM = e, this._$Ci = i;
626
- }
627
- _$AS(t, e) {
628
- return this.update(t, e);
629
- }
630
- update(t, e) {
631
- return this.render(...e);
632
- }
633
- }
634
- /**
635
- * @license
636
- * Copyright 2020 Google LLC
637
- * SPDX-License-Identifier: BSD-3-Clause
638
- */
639
- const { I: $e } = ae, Rt = () => document.createComment(""), I = (n, t, e) => {
640
- var i;
641
- const s = n._$AA.parentNode, r = t === void 0 ? n._$AB : t._$AA;
642
- if (e === void 0) {
643
- const o = s.insertBefore(Rt(), r), c = s.insertBefore(Rt(), r);
644
- e = new $e(o, c, n, n.options);
645
- } else {
646
- const o = e._$AB.nextSibling, c = e._$AM, a = c !== n;
647
- if (a) {
648
- let l;
649
- (i = e._$AQ) === null || i === void 0 || i.call(e, n), e._$AM = n, e._$AP !== void 0 && (l = n._$AU) !== c._$AU && e._$AP(l);
650
- }
651
- if (o !== r || a) {
652
- let l = e._$AA;
653
- for (; l !== o; ) {
654
- const v = l.nextSibling;
655
- s.insertBefore(l, r), l = v;
656
- }
657
- }
658
- }
659
- return e;
660
- }, S = (n, t, e = n) => (n._$AI(t, e), n), ve = {}, ge = (n, t = ve) => n._$AH = t, fe = (n) => n._$AH, ht = (n) => {
661
- var t;
662
- (t = n._$AP) === null || t === void 0 || t.call(n, !1, !0);
663
- let e = n._$AA;
664
- const i = n._$AB.nextSibling;
665
- for (; e !== i; ) {
666
- const s = e.nextSibling;
667
- e.remove(), e = s;
668
- }
669
- };
670
- /**
671
- * @license
672
- * Copyright 2017 Google LLC
673
- * SPDX-License-Identifier: BSD-3-Clause
674
- */
675
- const Dt = (n, t, e) => {
676
- const i = /* @__PURE__ */ new Map();
677
- for (let s = t; s <= e; s++)
678
- i.set(n[s], s);
679
- return i;
680
- }, Jt = ue(class extends pe {
681
- constructor(n) {
682
- if (super(n), n.type !== de.CHILD)
683
- throw Error("repeat() can only be used in text expressions");
684
- }
685
- ht(n, t, e) {
686
- let i;
687
- e === void 0 ? e = t : t !== void 0 && (i = t);
688
- const s = [], r = [];
689
- let o = 0;
690
- for (const c of n)
691
- s[o] = i ? i(c, o) : o, r[o] = e(c, o), o++;
692
- return { values: r, keys: s };
693
- }
694
- render(n, t, e) {
695
- return this.ht(n, t, e).values;
696
- }
697
- update(n, [t, e, i]) {
698
- var s;
699
- const r = fe(n), { values: o, keys: c } = this.ht(t, e, i);
700
- if (!Array.isArray(r))
701
- return this.ut = c, o;
702
- const a = (s = this.ut) !== null && s !== void 0 ? s : this.ut = [], l = [];
703
- let v, u, h = 0, p = r.length - 1, $ = 0, g = o.length - 1;
704
- for (; h <= p && $ <= g; )
705
- if (r[h] === null)
706
- h++;
707
- else if (r[p] === null)
708
- p--;
709
- else if (a[h] === c[$])
710
- l[$] = S(r[h], o[$]), h++, $++;
711
- else if (a[p] === c[g])
712
- l[g] = S(r[p], o[g]), p--, g--;
713
- else if (a[h] === c[g])
714
- l[g] = S(r[h], o[g]), I(n, l[g + 1], r[h]), h++, g--;
715
- else if (a[p] === c[$])
716
- l[$] = S(r[p], o[$]), I(n, r[h], r[p]), p--, $++;
717
- else if (v === void 0 && (v = Dt(c, $, g), u = Dt(a, h, p)), v.has(a[h]))
718
- if (v.has(a[p])) {
719
- const A = u.get(c[$]), et = A !== void 0 ? r[A] : null;
720
- if (et === null) {
721
- const bt = I(n, r[h]);
722
- S(bt, o[$]), l[$] = bt;
723
- } else
724
- l[$] = S(et, o[$]), I(n, r[h], et), r[A] = null;
725
- $++;
726
- } else
727
- ht(r[p]), p--;
728
- else
729
- ht(r[h]), h++;
730
- for (; $ <= g; ) {
731
- const A = I(n, l[g + 1]);
732
- S(A, o[$]), l[$++] = A;
733
- }
734
- for (; h <= p; ) {
735
- const A = r[h++];
736
- A !== null && ht(A);
737
- }
738
- return this.ut = c, ge(n, l), O;
739
- }
740
- });
741
- var _e = Object.defineProperty, be = Object.getOwnPropertyDescriptor, tt = (n, t, e, i) => {
742
- for (var s = i > 1 ? void 0 : i ? be(t, e) : t, r = n.length - 1, o; r >= 0; r--)
743
- (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
744
- return i && s && _e(t, e, s), s;
745
- };
746
- let z = class extends m {
747
- constructor() {
748
- super(...arguments), this.header = "", this.actions = [], this.onBackdropClick = () => this.action("close"), this.onCloseClick = () => this.action("close"), this.onKeyDown = (n) => {
749
- n.defaultPrevented || n.key === "Escape" && this.action("close");
750
- }, this.action = (n) => {
751
- const t = new CustomEvent("action", {
752
- bubbles: !0,
753
- composed: !0,
754
- detail: n,
755
- cancelable: !0
756
- });
757
- return this.dispatchEvent(t);
758
- };
759
- }
760
- connectedCallback() {
761
- super.connectedCallback(), window.addEventListener("keydown", this.onKeyDown);
762
- }
763
- disconnectedCallback() {
764
- window.removeEventListener("keydown", this.onKeyDown), super.disconnectedCallback();
765
- }
766
- render() {
767
- return _`
768
- ${this.contain && _`<style>
769
- :host {
770
- position: static !important;
771
- }
772
- .backdrop {
773
- position: absolute !important;
774
- }
775
- </style>`}
776
- <div class="backdrop" @keydown=${console.log} @click=${this.onBackdropClick}></div>
777
- <div class="container">
778
- <dialog open>
779
- <div class="header">
780
- <telia-heading tag="h3" variant="title-100">${this.header}</telia-heading>
781
- <telia-button size="sm" variant="text" @click=${this.onCloseClick}
782
- ><telia-icon size="md" svg="${te.svg}"
783
- /></telia-button>
784
- </div>
785
- <div class="body">
786
- <slot></slot>
787
- </div>
788
- ${this.actions.length ? _`
789
- <div class="footer">
790
- ${Jt(
791
- this.actions,
792
- (n) => _`
793
- <telia-button
794
- disabled="${n.disabled ? "true" : "false"}"
795
- variant="${n.variant || "primary"}"
796
- size="md"
797
- @click=${() => this.action(n.action)}
798
- >
799
- ${n.label}
800
- </telia-button>
801
- `
802
- )}
803
- </div>
804
- ` : ""}
805
- </dialog>
806
- </div>
807
- `;
808
- }
809
- };
810
- z.styles = N`
811
- :host {
812
- inset: 0;
813
- position: fixed;
814
- z-index: ${d(parseInt(it.modal))};
815
- }
816
-
817
- .backdrop {
818
- inset: 0;
819
- position: absolute;
820
- z-index: ${d(parseInt(it.modal) - 1)};
821
- background-color: ${d(x.black)};
822
- opacity: 0.3;
823
- }
824
-
825
- .container {
826
- margin: 0 auto;
827
- display: flex;
828
- justify-content: center;
829
- align-items: flex-start;
830
- overflow-x: hidden;
831
- overflow-y: overlay;
832
- height: 100%;
833
- width: 100%;
834
- }
835
-
836
- dialog {
837
- background-color: ${d(x.white)};
838
- border-radius: ${d(dt.radiusLg)};
839
- box-shadow: ${d(Yt.md)};
840
- z-index: ${d(parseInt(it.modal) + 2)};
841
- max-width: ${d(Gt.breakpointLg)};
842
- margin: ${d(b.spacing128)} ${d(b.spacing24)};
843
- display: block;
844
- position: static;
845
- padding: 0;
846
- border: none;
847
- }
848
-
849
- .header {
850
- position: relative;
851
- padding: ${d(b.spacing32)};
852
- border-bottom: ${d(dt.widthXs)} solid ${d(x.gray200)};
853
- }
854
-
855
- .header telia-button {
856
- position: absolute;
857
- top: ${d(b.spacing20)};
858
- right: ${d(b.spacing20)};
859
- }
860
-
861
- .body {
862
- padding: 0 ${d(b.spacing32)};
863
- margin: ${d(b.spacing24)} 0;
864
- min-width: calc(${d(b.spacing128)} * 2);
865
- }
866
-
867
- .footer {
868
- display: flex;
869
- justify-content: flex-end;
870
- gap: ${d(b.spacing24)};
871
- padding: 0 ${d(b.spacing32)};
872
- margin: ${d(b.spacing24)} 0;
873
- }
874
- `;
875
- tt([
876
- y({ type: String, attribute: "header" })
877
- ], z.prototype, "header", 2);
878
- tt([
879
- y({ type: Array })
880
- ], z.prototype, "actions", 2);
881
- tt([
882
- y({ type: Boolean, attribute: "contain" })
883
- ], z.prototype, "contain", 2);
884
- z = tt([
885
- C("alliance-modal")
886
- ], z);
887
- const Z = "...", J = (n, t) => {
888
- let e = t - n + 1;
889
- return Array.from({ length: e }, (i, s) => s + n);
890
- }, ct = ({ itemCount: n, pageSize: t, siblingCount: e, currentPage: i }) => {
891
- const s = Math.ceil(n / t);
892
- if (e + 5 >= s)
893
- return J(1, s);
894
- const o = Math.max(i - e, 1), c = Math.min(i + e, s), a = o > 2, l = c < s - 2, v = 1, u = s;
895
- if (!a && l) {
896
- let h = 3 + 2 * e;
897
- return [...J(1, h), Z, s];
898
- }
899
- if (a && !l) {
900
- let h = 3 + 2 * e, p = J(s - h + 1, s);
901
- return [v, Z, ...p];
902
- }
903
- if (a && l) {
904
- let h = J(o, c);
905
- return [v, Z, ...h, Z, u];
906
- }
907
- return [];
908
- };
909
- var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, H = (n, t, e, i) => {
910
- for (var s = i > 1 ? void 0 : i ? me(t, e) : t, r = n.length - 1, o; r >= 0; r--)
911
- (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
912
- return i && s && ye(t, e, s), s;
913
- };
914
- let E = class extends m {
915
- constructor() {
916
- super(...arguments), this.itemCount = 0, this.pageSize = 50, this.initialPage = 1, this.siblingCount = 2, this.currentPage = this.initialPage, this.pages = [], this.changePage = (n) => {
917
- if (n === this.currentPage || // Next page is the same
918
- n < 1 || // Next page is 0
919
- n > this.pages[this.pages.length - 1])
920
- return;
921
- const t = new CustomEvent("change-page", {
922
- bubbles: !0,
923
- composed: !0,
924
- detail: n,
925
- cancelable: !0
926
- });
927
- this.dispatchEvent(t) && (this.currentPage = n, this.pages = ct({
928
- itemCount: this.itemCount,
929
- pageSize: this.pageSize,
930
- siblingCount: this.siblingCount,
931
- currentPage: this.currentPage
932
- }));
933
- }, this.next = () => {
934
- this.changePage(this.currentPage + 1);
935
- }, this.previous = () => {
936
- this.changePage(this.currentPage - 1);
937
- };
938
- }
939
- connectedCallback() {
940
- super.connectedCallback(), this.currentPage = this.initialPage, this.pages = ct({
941
- itemCount: this.itemCount,
942
- pageSize: this.pageSize,
943
- siblingCount: this.siblingCount,
944
- currentPage: this.currentPage
945
- });
946
- }
947
- attributeChangedCallback(n, t, e) {
948
- super.attributeChangedCallback(n, t, e), n === "initial-page" && (this.currentPage = this.initialPage), this.pages = ct({
949
- itemCount: this.itemCount,
950
- pageSize: this.pageSize,
951
- siblingCount: this.siblingCount,
952
- currentPage: this.currentPage,
953
- [n]: e
954
- });
955
- }
956
- render() {
957
- return _`
958
- <alliance-paginator-button
959
- @click=${this.previous}
960
- ?disabled=${this.currentPage === 1}
961
- icon="left"
962
- ></alliance-paginator-button>
963
-
964
- ${Jt(
965
- this.pages,
966
- (n) => n === "..." ? _`<telia-label>...</telia-label>` : _`<alliance-paginator-button
967
- page=${n}
968
- @click=${() => this.changePage(n)}
969
- ?selected=${this.currentPage === n}
970
- ></alliance-paginator-button>`
971
- )}
972
-
973
- <alliance-paginator-button
974
- @click=${this.next}
975
- ?disabled=${this.currentPage === this.pages[this.pages.length - 1]}
976
- icon="right"
977
- ></alliance-paginator-button>
978
- `;
979
- }
980
- };
981
- E.styles = N`
982
- :host {
983
- display: flex;
984
- flex-direction: row;
985
- place-items: center;
986
- gap: ${d(b.spacing8)};
987
- }
988
-
989
- :host .telia-label {
990
- color: ${d(x.purple700)};
991
- }
992
-
993
- span {
994
- display: block;
995
- }
996
- `;
997
- H([
998
- y({ type: Number, attribute: "item-count" })
999
- ], E.prototype, "itemCount", 2);
1000
- H([
1001
- y({ type: Number, attribute: "page-size" })
1002
- ], E.prototype, "pageSize", 2);
1003
- H([
1004
- y({ type: Number, attribute: "initial-page" })
1005
- ], E.prototype, "initialPage", 2);
1006
- H([
1007
- y({ type: Number, attribute: "sibling-count" })
1008
- ], E.prototype, "siblingCount", 2);
1009
- H([
1010
- Zt()
1011
- ], E.prototype, "currentPage", 2);
1012
- H([
1013
- Zt()
1014
- ], E.prototype, "pages", 2);
1015
- E = H([
1016
- C("alliance-paginator")
1017
- ], E);
1018
- var Ae = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, B = (n, t, e, i) => {
1019
- for (var s = i > 1 ? void 0 : i ? Pe(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1020
- (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1021
- return i && s && Ae(t, e, s), s;
1022
- }, Xt = /* @__PURE__ */ ((n) => (n.Left = "left", n.Right = "right", n))(Xt || {});
1023
- let U = class extends m {
1024
- constructor() {
1025
- super(...arguments), this.selected = !1, this.disabled = !1, this.clickable = !0;
1026
- }
1027
- renderContent() {
1028
- return this.icon === "left" ? _`<telia-icon size="sm" svg="${ee.svg}" />` : this.icon === "right" ? _`<telia-icon size="sm" svg="${ie.svg}" />` : _`<span>${this.page}</span>`;
1029
- }
1030
- render() {
1031
- return _`<telia-button ?disabled=${this.disabled} variant=${this.selected ? "primary" : "tertiary-purple"}>${this.renderContent()}</telia-button> `;
1032
- }
1033
- };
1034
- B([
1035
- y({ type: Xt })
1036
- ], U.prototype, "icon", 2);
1037
- B([
1038
- y({ type: String })
1039
- ], U.prototype, "page", 2);
1040
- B([
1041
- y({ type: Boolean })
1042
- ], U.prototype, "selected", 2);
1043
- B([
1044
- y({ type: Boolean })
1045
- ], U.prototype, "disabled", 2);
1046
- B([
1047
- y({ type: Boolean })
1048
- ], U.prototype, "clickable", 2);
1049
- U = B([
1050
- C("alliance-paginator-button")
1051
- ], U);
1052
- var Ee = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, we = (n, t, e, i) => {
1053
- for (var s = i > 1 ? void 0 : i ? Ce(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1054
- (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1055
- return i && s && Ee(t, e, s), s;
1056
- };
1057
- let pt = class extends m {
1058
- render() {
1059
- return _` <alliance-tb>
1060
- <slot></slot>
1061
- </alliance-tb>`;
1062
- }
1063
- };
1064
- pt.styles = N`
1065
- :host {
1066
- display: table;
1067
- border-collapse: collapse;
1068
- width: 100%;
1069
- }
1070
- `;
1071
- pt = we([
1072
- C("alliance-table")
1073
- ], pt);
1074
- var Se = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, Oe = (n, t, e, i) => {
1075
- for (var s = i > 1 ? void 0 : i ? xe(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1076
- (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1077
- return i && s && Se(t, e, s), s;
1078
- };
1079
- let $t = class extends m {
1080
- render() {
1081
- return _`<slot></slot>`;
1082
- }
1083
- };
1084
- $t.styles = N`
1085
- :host {
1086
- display: table-row-group;
1087
- vertical-align: middle;
1088
- border-color: inherit;
1089
- }
1090
- `;
1091
- $t = Oe([
1092
- C("alliance-tb")
1093
- ], $t);
1094
- var Te = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, Ne = (n, t, e, i) => {
1095
- for (var s = i > 1 ? void 0 : i ? Ue(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1096
- (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1097
- return i && s && Te(t, e, s), s;
1098
- };
1099
- let vt = class extends m {
1100
- render() {
1101
- return _` <slot></slot> `;
1102
- }
1103
- };
1104
- vt.styles = N`
1105
- :host {
1106
- display: table-cell;
1107
- vertical-align: inherit;
1108
- padding: ${d(b.spacing24)};
1109
- }
1110
- `;
1111
- vt = Ne([
1112
- C("alliance-td")
1113
- ], vt);
1114
- var He = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, Ft = (n, t, e, i) => {
1115
- for (var s = i > 1 ? void 0 : i ? Re(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1116
- (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1117
- return i && s && He(t, e, s), s;
1118
- };
1119
- let Y = class extends m {
1120
- constructor() {
1121
- super(...arguments), this.label = "";
1122
- }
1123
- render() {
1124
- return _`<telia-heading tag="h4" variant="title-100">${this.label}</telia-heading>`;
1125
- }
1126
- };
1127
- Y.styles = N`
1128
- :host {
1129
- display: table-cell;
1130
- padding: ${d(b.spacing24)};
1131
- }
1132
- `;
1133
- Ft([
1134
- y({ type: String })
1135
- ], Y.prototype, "label", 2);
1136
- Y = Ft([
1137
- C("alliance-th")
1138
- ], Y);
1139
- var De = Object.defineProperty, Me = Object.getOwnPropertyDescriptor, Qt = (n, t, e, i) => {
1140
- for (var s = i > 1 ? void 0 : i ? Me(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1141
- (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1142
- return i && s && De(t, e, s), s;
1143
- };
1144
- let G = class extends m {
1145
- constructor() {
1146
- super(...arguments), this.clickable = !1;
1147
- }
1148
- render() {
1149
- return _`
1150
- ${this.clickable ? ke : ""}
1151
- <slot></slot>
1152
- `;
1153
- }
1154
- };
1155
- G.styles = N`
1156
- :host {
1157
- display: table-row;
1158
- border-bottom: ${d(dt.widthXs)} solid ${d(x.gray200)};
1159
- }
1160
- `;
1161
- Qt([
1162
- y({ type: Boolean })
1163
- ], G.prototype, "clickable", 2);
1164
- G = Qt([
1165
- C("alliance-tr")
1166
- ], G);
1167
- const ke = _`<style>
1168
- :host {
1169
- background-color: transparent;
1170
- transition: background-color ${d(yt.duration150)} ${d(yt.easeIn)};
1171
- cursor: pointer;
1172
- }
1173
-
1174
- :host(:hover),
1175
- :host(:focus-visible),
1176
- :host(:focus) {
1177
- background-color: ${d(x.gray200)};
1178
- }
1179
-
1180
- :host(:active) {
1181
- background-color: ${d(x.gray300)};
1182
- }
1183
-
1184
- :host(:focus-visible) {
1185
- outline: solid ${d(mt.focusBorderWidth)} ${d(mt.focusColor)};
1186
- outline-offset: ${d(b.spacing4)};
1187
- }
1188
- </style>`;
10
+ import "../chunks/telia-vst2-1a7f7bd6.js";
11
+ import "../chunks/telia-heading2-9d3ab48b.js";
12
+ import "../chunks/index-57f6bd40.js";
13
+ import "../chunks/close-7d423291.js";
14
+ import "../chunks/telia-label2-4d674e5e.js";
15
+ import "../chunks/chevron-right-788ce8a9.js";
16
+ import "../chunks/variables-ecb680f0.js";
1189
17
  //# sourceMappingURL=index.js.map