@telia-ace/alliance-ui 1.0.4 → 1.0.5-next.0

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