nve-designsystem 4.3.0 → 4.5.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 (82) hide show
  1. package/chunks/chunk.2PCBEMQZ.js +4 -4
  2. package/chunks/chunk.36O46B5H.js +2 -2
  3. package/chunks/chunk.4TUIT776.js +1 -1
  4. package/chunks/chunk.5JY5FUCG.js +325 -344
  5. package/chunks/chunk.5P45LHIX.js +2 -2
  6. package/chunks/chunk.6CTB5ZDJ.js +16 -4
  7. package/chunks/chunk.B4BZKR24.js +2 -2
  8. package/chunks/chunk.D5YQDJ7X.js +3 -3
  9. package/chunks/chunk.EA437WHD.js +1 -1
  10. package/chunks/chunk.GI7VDIWX.js +1 -1
  11. package/chunks/chunk.GMYPQTFK.js +1 -1
  12. package/chunks/chunk.HVTXQL7M.js +3 -3
  13. package/chunks/chunk.IKV4VH3T.js +3 -3
  14. package/chunks/chunk.IVVHNXMC.js +2 -2
  15. package/chunks/chunk.JHOXTQXA.js +3 -3
  16. package/chunks/chunk.JXOKFADN.js +3 -3
  17. package/chunks/chunk.K7JGTRV7.js +1 -1
  18. package/chunks/chunk.KPLQLAWP.js +3 -3
  19. package/chunks/chunk.LD4M4QGE.js +1 -1
  20. package/chunks/chunk.MSKEYBDI.js +3 -3
  21. package/chunks/chunk.NYIIDP5N.js +1 -1
  22. package/chunks/chunk.RWUUFNUL.js +2 -2
  23. package/chunks/chunk.SAPQLUO4.js +4 -4
  24. package/chunks/chunk.SI4ACBFK.js +1 -1
  25. package/chunks/chunk.TP2GB2HO.js +4 -4
  26. package/chunks/chunk.UDWRA64J.js +3 -3
  27. package/chunks/chunk.URTPIBTY.js +3 -3
  28. package/chunks/chunk.VESXC477.js +1 -1
  29. package/chunks/chunk.XA43ZQPC.js +3 -3
  30. package/chunks/chunk.XQ2OKYYA.js +3 -3
  31. package/chunks/chunk.XZNBUGX7.js +1 -1
  32. package/chunks/chunk.YHLNUJ7P.js +2 -2
  33. package/chunks/chunk.ZH2AND3P.js +8 -8
  34. package/chunks/chunk.ZL53POKZ.js +2 -2
  35. package/chunks/class-map.js +3 -3
  36. package/chunks/decorate.js +11 -11
  37. package/chunks/directive-helpers.js +3 -3
  38. package/chunks/if-defined.js +1 -1
  39. package/chunks/lit.js +88 -86
  40. package/chunks/live.js +8 -8
  41. package/chunks/nve-alert.component.js +9 -9
  42. package/chunks/nve-carousel-item.component.js +1 -1
  43. package/chunks/nve-checkbox-group.component.js +7 -7
  44. package/chunks/nve-label.component.js +1 -1
  45. package/chunks/nve-warning-level.component.js +4 -4
  46. package/chunks/ref.js +4 -4
  47. package/chunks/shoelace.js +771 -771
  48. package/chunks/static-html.js +4 -4
  49. package/chunks/unsafe-html.js +1 -1
  50. package/components/nve-accordion/nve-accordion.component.js +1 -1
  51. package/components/nve-aspect-rose/nve-aspect-rose.component.d.ts +40 -0
  52. package/components/nve-aspect-rose/nve-aspect-rose.component.js +90 -0
  53. package/components/nve-aspect-rose/nve-aspect-rose.styles.d.ts +2 -0
  54. package/components/nve-aspect-rose/nve-aspect-rose.styles.js +27 -0
  55. package/components/nve-badge/nve-badge.component.js +1 -1
  56. package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +1 -1
  57. package/components/nve-combobox/nve-combobox.component.js +1 -1
  58. package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +3 -2
  59. package/components/nve-icon/nve-icon.component.js +1 -1
  60. package/components/nve-link-card/nve-link-card.component.js +6 -6
  61. package/components/nve-message-card/nve-message-card.component.js +1 -1
  62. package/components/nve-navigation-card/nve-navigation-card.component.js +8 -8
  63. package/components/nve-paragraph/nve-paragraph.component.js +1 -1
  64. package/components/nve-stepper/nve-step/nve-step.component.js +21 -21
  65. package/components/nve-stepper/nve-stepper-mobile.component.js +1 -1
  66. package/components/nve-stepper/nve-stepper.component.js +1 -1
  67. package/components/nve-switch/nve-switch.component.js +1 -1
  68. package/components/nve-tab/nve-tab.component.js +1 -1
  69. package/components/nve-tab-group/nve-tab-group.component.js +6 -6
  70. package/components/nve-tab-panel/nve-tab-panel.component.js +1 -1
  71. package/components/nve-tag/nve-tag.component.js +6 -6
  72. package/components/nve-textarea/nve-textarea.component.js +12 -12
  73. package/css/nve.css +54 -45
  74. package/css/nve_dark.css +16 -7
  75. package/css/rme.css +54 -45
  76. package/css/rme_dark.css +16 -7
  77. package/css/varsom.css +54 -45
  78. package/css/varsom_dark.css +16 -7
  79. package/custom-elements.json +97 -1
  80. package/nve-designsystem.d.ts +2 -1
  81. package/nve-designsystem.js +43 -42
  82. package/package.json +5 -5
@@ -1,9 +1,9 @@
1
1
  import { c as e, l as t } from "./lit.js";
2
- //#region node_modules/@lit/reactive-element/decorators/custom-element.js
2
+ //#region .pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js
3
3
  var n = (e) => (t, n) => {
4
- n === void 0 ? customElements.define(e, t) : n.addInitializer((() => {
4
+ n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
5
5
  customElements.define(e, t);
6
- }));
6
+ });
7
7
  }, r = {
8
8
  attribute: !0,
9
9
  type: String,
@@ -17,7 +17,7 @@ var n = (e) => (t, n) => {
17
17
  return {
18
18
  set(n) {
19
19
  let i = t.get.call(this);
20
- t.set.call(this, n), this.requestUpdate(r, i, e);
20
+ t.set.call(this, n), this.requestUpdate(r, i, e, !0, n);
21
21
  },
22
22
  init(t) {
23
23
  return t !== void 0 && this.C(r, void 0, e, t), t;
@@ -28,7 +28,7 @@ var n = (e) => (t, n) => {
28
28
  let { name: r } = n;
29
29
  return function(n) {
30
30
  let i = this[r];
31
- t.call(this, n), this.requestUpdate(r, i, e);
31
+ t.call(this, n), this.requestUpdate(r, i, e, !0, n);
32
32
  };
33
33
  }
34
34
  throw Error("Unsupported decorator location: " + i);
@@ -40,7 +40,7 @@ function a(e) {
40
40
  })(e, t, n);
41
41
  }
42
42
  //#endregion
43
- //#region node_modules/@lit/reactive-element/decorators/state.js
43
+ //#region .pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js
44
44
  function o(e) {
45
45
  return a({
46
46
  ...e,
@@ -49,7 +49,7 @@ function o(e) {
49
49
  });
50
50
  }
51
51
  //#endregion
52
- //#region node_modules/@lit/reactive-element/decorators/event-options.js
52
+ //#region .pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/event-options.js
53
53
  function s(e) {
54
54
  return (t, n) => {
55
55
  let r = typeof t == "function" ? t : t[n];
@@ -57,10 +57,10 @@ function s(e) {
57
57
  };
58
58
  }
59
59
  //#endregion
60
- //#region node_modules/@lit/reactive-element/decorators/base.js
60
+ //#region .pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/base.js
61
61
  var c = (e, t, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, n), n);
62
62
  //#endregion
63
- //#region node_modules/@lit/reactive-element/decorators/query.js
63
+ //#region .pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query.js
64
64
  function l(e, t) {
65
65
  return (n, r, i) => {
66
66
  let a = (t) => t.renderRoot?.querySelector(e) ?? null;
@@ -87,14 +87,14 @@ function l(e, t) {
87
87
  };
88
88
  }
89
89
  //#endregion
90
- //#region node_modules/@lit/reactive-element/decorators/query-async.js
90
+ //#region .pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query-async.js
91
91
  function u(e) {
92
92
  return (t, n) => c(t, n, { async get() {
93
93
  return await this.updateComplete, this.renderRoot?.querySelector(e) ?? null;
94
94
  } });
95
95
  }
96
96
  //#endregion
97
- //#region \0@oxc-project+runtime@0.128.0/helpers/decorate.js
97
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
98
98
  function d(e, t, n, r) {
99
99
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
100
100
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
@@ -1,5 +1,5 @@
1
- import { i as e } from "./lit.js";
2
- //#region node_modules/lit-html/directive-helpers.js
1
+ import { o as e } from "./lit.js";
2
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/directive-helpers.js
3
3
  var { I: t } = e, n = (e, t) => t === void 0 ? e?._$litType$ !== void 0 : e?._$litType$ === t, r = (e) => e.strings === void 0, i = {}, a = (e, t = i) => e._$AH = t;
4
4
  //#endregion
5
- export { r as n, a as r, n as t };
5
+ export { a as n, r, n as t };
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./lit.js";
2
- //#region node_modules/lit-html/directives/if-defined.js
2
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/directives/if-defined.js
3
3
  var t = (t) => t ?? e;
4
4
  //#endregion
5
5
  export { t };
package/chunks/lit.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region node_modules/@lit/reactive-element/css-tag.js
1
+ //#region .pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js
2
2
  var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, n = Symbol(), r = /* @__PURE__ */ new WeakMap(), i = class {
3
3
  constructor(e, t, r) {
4
4
  if (this._$cssResult$ = !0, r !== n) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -15,12 +15,12 @@ var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nat
15
15
  toString() {
16
16
  return this.cssText;
17
17
  }
18
- }, a = (e) => new i(typeof e == "string" ? e : e + "", void 0, n), o = (e, ...t) => new i(e.length === 1 ? e[0] : t.reduce(((t, n, r) => t + ((e) => {
18
+ }, a = (e) => new i(typeof e == "string" ? e : e + "", void 0, n), o = (e, ...t) => new i(e.length === 1 ? e[0] : t.reduce((t, n, r) => t + ((e) => {
19
19
  if (!0 === e._$cssResult$) return e.cssText;
20
20
  if (typeof e == "number") return e;
21
21
  throw Error("Value passed to 'css' function must be a 'css' function result: " + e + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
22
- })(n) + e[r + 1]), e[0]), e, n), s = (n, r) => {
23
- if (t) n.adoptedStyleSheets = r.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
22
+ })(n) + e[r + 1], e[0]), e, n), s = (n, r) => {
23
+ if (t) n.adoptedStyleSheets = r.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
24
24
  else for (let t of r) {
25
25
  let r = document.createElement("style"), i = e.litNonce;
26
26
  i !== void 0 && r.setAttribute("nonce", i), r.textContent = t.cssText, n.appendChild(r);
@@ -141,7 +141,7 @@ var v = class extends HTMLElement {
141
141
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
142
142
  }
143
143
  _$Ev() {
144
- this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((e) => e(this)));
144
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((e) => e(this));
145
145
  }
146
146
  addController(e) {
147
147
  (this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
@@ -159,11 +159,11 @@ var v = class extends HTMLElement {
159
159
  return s(e, this.constructor.elementStyles), e;
160
160
  }
161
161
  connectedCallback() {
162
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
162
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
163
163
  }
164
164
  enableUpdating(e) {}
165
165
  disconnectedCallback() {
166
- this._$EO?.forEach(((e) => e.hostDisconnected?.()));
166
+ this._$EO?.forEach((e) => e.hostDisconnected?.());
167
167
  }
168
168
  attributeChangedCallback(e, t, n) {
169
169
  this._$AK(e, n);
@@ -179,13 +179,15 @@ var v = class extends HTMLElement {
179
179
  let n = this.constructor, r = n._$Eh.get(e);
180
180
  if (r !== void 0 && this._$Em !== r) {
181
181
  let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? h : e.converter;
182
- this._$Em = r, this[r] = i.fromAttribute(t, e.type) ?? this._$Ej?.get(r) ?? null, this._$Em = null;
182
+ this._$Em = r;
183
+ let a = i.fromAttribute(t, e.type);
184
+ this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
183
185
  }
184
186
  }
185
- requestUpdate(e, t, n) {
187
+ requestUpdate(e, t, n, r = !1, i) {
186
188
  if (e !== void 0) {
187
- let r = this.constructor, i = this[e];
188
- if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? g)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
189
+ let a = this.constructor;
190
+ if (!1 === r && (i = this[e]), n ??= a.getPropertyOptions(e), !((n.hasChanged ?? g)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(a._$Eu(e, n)))) return;
189
191
  this.C(e, t, n);
190
192
  }
191
193
  !1 === this.isUpdatePending && (this._$ES = this._$EP());
@@ -221,7 +223,7 @@ var v = class extends HTMLElement {
221
223
  }
222
224
  let e = !1, t = this._$AL;
223
225
  try {
224
- e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((e) => e.hostUpdate?.())), this.update(t)) : this._$EM();
226
+ e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach((e) => e.hostUpdate?.()), this.update(t)) : this._$EM();
225
227
  } catch (t) {
226
228
  throw e = !1, this._$EM(), t;
227
229
  }
@@ -229,7 +231,7 @@ var v = class extends HTMLElement {
229
231
  }
230
232
  willUpdate(e) {}
231
233
  _$AE(e) {
232
- this._$EO?.forEach(((e) => e.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
234
+ this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
233
235
  }
234
236
  _$EM() {
235
237
  this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
@@ -244,42 +246,42 @@ var v = class extends HTMLElement {
244
246
  return !0;
245
247
  }
246
248
  update(e) {
247
- this._$Eq &&= this._$Eq.forEach(((e) => this._$ET(e, this[e]))), this._$EM();
249
+ this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
248
250
  }
249
251
  updated(e) {}
250
252
  firstUpdated(e) {}
251
253
  };
252
- v.elementStyles = [], v.shadowRootOptions = { mode: "open" }, v[m("elementProperties")] = /* @__PURE__ */ new Map(), v[m("finalized")] = /* @__PURE__ */ new Map(), ie?.({ ReactiveElement: v }), (f.reactiveElementVersions ??= []).push("2.1.0");
254
+ v.elementStyles = [], v.shadowRootOptions = { mode: "open" }, v[m("elementProperties")] = /* @__PURE__ */ new Map(), v[m("finalized")] = /* @__PURE__ */ new Map(), ie?.({ ReactiveElement: v }), (f.reactiveElementVersions ??= []).push("2.1.2");
253
255
  //#endregion
254
- //#region node_modules/lit-html/lit-html.js
255
- var y = globalThis, b = y.trustedTypes, x = b ? b.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, S = "$lit$", C = `lit$${Math.random().toFixed(9).slice(2)}$`, w = "?" + C, ae = `<${w}>`, T = document, E = () => T.createComment(""), D = (e) => e === null || typeof e != "object" && typeof e != "function", O = Array.isArray, k = (e) => O(e) || typeof e?.[Symbol.iterator] == "function", A = "[ \n\f\r]", j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, M = /-->/g, N = />/g, P = RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), F = /'/g, I = /"/g, L = /^(?:script|style|textarea|title)$/i, R = (e) => (t, ...n) => ({
256
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/lit-html.js
257
+ var y = globalThis, b = (e) => e, x = y.trustedTypes, ae = x ? x.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, S = "$lit$", C = `lit$${Math.random().toFixed(9).slice(2)}$`, w = "?" + C, oe = `<${w}>`, T = document, E = () => T.createComment(""), D = (e) => e === null || typeof e != "object" && typeof e != "function", O = Array.isArray, k = (e) => O(e) || typeof e?.[Symbol.iterator] == "function", A = "[ \n\f\r]", j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, se = /-->/g, M = />/g, N = RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), P = /'/g, F = /"/g, I = /^(?:script|style|textarea|title)$/i, L = (e) => (t, ...n) => ({
256
258
  _$litType$: e,
257
259
  strings: t,
258
260
  values: n
259
- }), oe = R(1), se = R(2), ce = R(3), z = Symbol.for("lit-noChange"), B = Symbol.for("lit-nothing"), V = /* @__PURE__ */ new WeakMap(), H = T.createTreeWalker(T, 129);
260
- function U(e, t) {
261
+ }), ce = L(1), le = L(2), ue = L(3), R = Symbol.for("lit-noChange"), z = Symbol.for("lit-nothing"), B = /* @__PURE__ */ new WeakMap(), V = T.createTreeWalker(T, 129);
262
+ function H(e, t) {
261
263
  if (!O(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
262
- return x === void 0 ? t : x.createHTML(t);
264
+ return ae === void 0 ? t : ae.createHTML(t);
263
265
  }
264
- var W = (e, t) => {
266
+ var U = (e, t) => {
265
267
  let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = j;
266
268
  for (let t = 0; t < n; t++) {
267
269
  let n = e[t], s, c, l = -1, u = 0;
268
- for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === j ? c[1] === "!--" ? o = M : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = P) : (L.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = P) : o = N : o === P ? c[0] === ">" ? (o = i ?? j, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? P : c[3] === "\"" ? I : F) : o === I || o === F ? o = P : o === M || o === N ? o = j : (o = P, i = void 0);
269
- let d = o === P && e[t + 1].startsWith("/>") ? " " : "";
270
- a += o === j ? n + ae : l >= 0 ? (r.push(s), n.slice(0, l) + S + n.slice(l) + C + d) : n + C + (l === -2 ? t : d);
270
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === j ? c[1] === "!--" ? o = se : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = N) : (I.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = N) : o = M : o === N ? c[0] === ">" ? (o = i ?? j, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? N : c[3] === "\"" ? F : P) : o === F || o === P ? o = N : o === se || o === M ? o = j : (o = N, i = void 0);
271
+ let d = o === N && e[t + 1].startsWith("/>") ? " " : "";
272
+ a += o === j ? n + oe : l >= 0 ? (r.push(s), n.slice(0, l) + S + n.slice(l) + C + d) : n + C + (l === -2 ? t : d);
271
273
  }
272
- return [U(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
273
- }, G = class e {
274
+ return [H(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
275
+ }, W = class e {
274
276
  constructor({ strings: t, _$litType$: n }, r) {
275
277
  let i;
276
278
  this.parts = [];
277
- let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = W(t, n);
278
- if (this.el = e.createElement(l, r), H.currentNode = this.el.content, n === 2 || n === 3) {
279
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = U(t, n);
280
+ if (this.el = e.createElement(l, r), V.currentNode = this.el.content, n === 2 || n === 3) {
279
281
  let e = this.el.content.firstChild;
280
282
  e.replaceWith(...e.childNodes);
281
283
  }
282
- for (; (i = H.nextNode()) !== null && c.length < s;) {
284
+ for (; (i = V.nextNode()) !== null && c.length < s;) {
283
285
  if (i.nodeType === 1) {
284
286
  if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(S)) {
285
287
  let t = u[o++], n = i.getAttribute(e).split(C), r = /([.?@])?(.*)/.exec(t);
@@ -288,17 +290,17 @@ var W = (e, t) => {
288
290
  index: a,
289
291
  name: r[2],
290
292
  strings: n,
291
- ctor: r[1] === "." ? X : r[1] === "?" ? Z : r[1] === "@" ? le : Y
293
+ ctor: r[1] === "." ? Y : r[1] === "?" ? X : r[1] === "@" ? de : J
292
294
  }), i.removeAttribute(e);
293
295
  } else e.startsWith(C) && (c.push({
294
296
  type: 6,
295
297
  index: a
296
298
  }), i.removeAttribute(e));
297
- if (L.test(i.tagName)) {
299
+ if (I.test(i.tagName)) {
298
300
  let e = i.textContent.split(C), t = e.length - 1;
299
301
  if (t > 0) {
300
- i.textContent = b ? b.emptyScript : "";
301
- for (let n = 0; n < t; n++) i.append(e[n], E()), H.nextNode(), c.push({
302
+ i.textContent = x ? x.emptyScript : "";
303
+ for (let n = 0; n < t; n++) i.append(e[n], E()), V.nextNode(), c.push({
302
304
  type: 2,
303
305
  index: ++a
304
306
  });
@@ -324,12 +326,12 @@ var W = (e, t) => {
324
326
  return n.innerHTML = e, n;
325
327
  }
326
328
  };
327
- function K(e, t, n = e, r) {
328
- if (t === z) return t;
329
+ function G(e, t, n = e, r) {
330
+ if (t === R) return t;
329
331
  let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = D(t) ? void 0 : t._$litDirective$;
330
- return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = K(e, i._$AS(e, t.values), i, r)), t;
332
+ return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = G(e, i._$AS(e, t.values), i, r)), t;
331
333
  }
332
- var q = class {
334
+ var K = class {
333
335
  constructor(e, t) {
334
336
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
335
337
  }
@@ -341,27 +343,27 @@ var q = class {
341
343
  }
342
344
  u(e) {
343
345
  let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? T).importNode(t, !0);
344
- H.currentNode = r;
345
- let i = H.nextNode(), a = 0, o = 0, s = n[0];
346
+ V.currentNode = r;
347
+ let i = V.nextNode(), a = 0, o = 0, s = n[0];
346
348
  for (; s !== void 0;) {
347
349
  if (a === s.index) {
348
350
  let t;
349
- s.type === 2 ? t = new J(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new ue(i, this, e)), this._$AV.push(t), s = n[++o];
351
+ s.type === 2 ? t = new q(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new Z(i, this, e)), this._$AV.push(t), s = n[++o];
350
352
  }
351
- a !== s?.index && (i = H.nextNode(), a++);
353
+ a !== s?.index && (i = V.nextNode(), a++);
352
354
  }
353
- return H.currentNode = T, r;
355
+ return V.currentNode = T, r;
354
356
  }
355
357
  p(e) {
356
358
  let t = 0;
357
359
  for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
358
360
  }
359
- }, J = class e {
361
+ }, q = class e {
360
362
  get _$AU() {
361
363
  return this._$AM?._$AU ?? this._$Cv;
362
364
  }
363
365
  constructor(e, t, n, r) {
364
- this.type = 2, this._$AH = B, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
366
+ this.type = 2, this._$AH = z, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
365
367
  }
366
368
  get parentNode() {
367
369
  let e = this._$AA.parentNode, t = this._$AM;
@@ -374,7 +376,7 @@ var q = class {
374
376
  return this._$AB;
375
377
  }
376
378
  _$AI(e, t = this) {
377
- e = K(this, e, t), D(e) ? e === B || e == null || e === "" ? (this._$AH !== B && this._$AR(), this._$AH = B) : e !== this._$AH && e !== z && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? k(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
379
+ e = G(this, e, t), D(e) ? e === z || e == null || e === "" ? (this._$AH !== z && this._$AR(), this._$AH = z) : e !== this._$AH && e !== R && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? k(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
378
380
  }
379
381
  O(e) {
380
382
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -383,19 +385,19 @@ var q = class {
383
385
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
384
386
  }
385
387
  _(e) {
386
- this._$AH !== B && D(this._$AH) ? this._$AA.nextSibling.data = e : this.T(T.createTextNode(e)), this._$AH = e;
388
+ this._$AH !== z && D(this._$AH) ? this._$AA.nextSibling.data = e : this.T(T.createTextNode(e)), this._$AH = e;
387
389
  }
388
390
  $(e) {
389
- let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = G.createElement(U(n.h, n.h[0]), this.options)), n);
391
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = W.createElement(H(n.h, n.h[0]), this.options)), n);
390
392
  if (this._$AH?._$AD === r) this._$AH.p(t);
391
393
  else {
392
- let e = new q(r, this), n = e.u(this.options);
394
+ let e = new K(r, this), n = e.u(this.options);
393
395
  e.p(t), this.T(n), this._$AH = e;
394
396
  }
395
397
  }
396
398
  _$AC(e) {
397
- let t = V.get(e.strings);
398
- return t === void 0 && V.set(e.strings, t = new G(e)), t;
399
+ let t = B.get(e.strings);
400
+ return t === void 0 && B.set(e.strings, t = new W(e)), t;
399
401
  }
400
402
  k(t) {
401
403
  O(this._$AH) || (this._$AH = [], this._$AR());
@@ -404,15 +406,15 @@ var q = class {
404
406
  i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
405
407
  }
406
408
  _$AR(e = this._$AA.nextSibling, t) {
407
- for (this._$AP?.(!1, !0, t); e && e !== this._$AB;) {
408
- let t = e.nextSibling;
409
- e.remove(), e = t;
409
+ for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
410
+ let t = b(e).nextSibling;
411
+ b(e).remove(), e = t;
410
412
  }
411
413
  }
412
414
  setConnected(e) {
413
415
  this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
414
416
  }
415
- }, Y = class {
417
+ }, J = class {
416
418
  get tagName() {
417
419
  return this.element.tagName;
418
420
  }
@@ -420,47 +422,47 @@ var q = class {
420
422
  return this._$AM._$AU;
421
423
  }
422
424
  constructor(e, t, n, r, i) {
423
- this.type = 1, this._$AH = B, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = B;
425
+ this.type = 1, this._$AH = z, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = z;
424
426
  }
425
427
  _$AI(e, t = this, n, r) {
426
428
  let i = this.strings, a = !1;
427
- if (i === void 0) e = K(this, e, t, 0), a = !D(e) || e !== this._$AH && e !== z, a && (this._$AH = e);
429
+ if (i === void 0) e = G(this, e, t, 0), a = !D(e) || e !== this._$AH && e !== R, a && (this._$AH = e);
428
430
  else {
429
431
  let r = e, o, s;
430
- for (e = i[0], o = 0; o < i.length - 1; o++) s = K(this, r[n + o], t, o), s === z && (s = this._$AH[o]), a ||= !D(s) || s !== this._$AH[o], s === B ? e = B : e !== B && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
432
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = G(this, r[n + o], t, o), s === R && (s = this._$AH[o]), a ||= !D(s) || s !== this._$AH[o], s === z ? e = z : e !== z && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
431
433
  }
432
434
  a && !r && this.j(e);
433
435
  }
434
436
  j(e) {
435
- e === B ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
437
+ e === z ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
436
438
  }
437
- }, X = class extends Y {
439
+ }, Y = class extends J {
438
440
  constructor() {
439
441
  super(...arguments), this.type = 3;
440
442
  }
441
443
  j(e) {
442
- this.element[this.name] = e === B ? void 0 : e;
444
+ this.element[this.name] = e === z ? void 0 : e;
443
445
  }
444
- }, Z = class extends Y {
446
+ }, X = class extends J {
445
447
  constructor() {
446
448
  super(...arguments), this.type = 4;
447
449
  }
448
450
  j(e) {
449
- this.element.toggleAttribute(this.name, !!e && e !== B);
451
+ this.element.toggleAttribute(this.name, !!e && e !== z);
450
452
  }
451
- }, le = class extends Y {
453
+ }, de = class extends J {
452
454
  constructor(e, t, n, r, i) {
453
455
  super(e, t, n, r, i), this.type = 5;
454
456
  }
455
457
  _$AI(e, t = this) {
456
- if ((e = K(this, e, t, 0) ?? B) === z) return;
457
- let n = this._$AH, r = e === B && n !== B || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== B && (n === B || r);
458
+ if ((e = G(this, e, t, 0) ?? z) === R) return;
459
+ let n = this._$AH, r = e === z && n !== z || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== z && (n === z || r);
458
460
  r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
459
461
  }
460
462
  handleEvent(e) {
461
463
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
462
464
  }
463
- }, ue = class {
465
+ }, Z = class {
464
466
  constructor(e, t, n) {
465
467
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
466
468
  }
@@ -468,30 +470,30 @@ var q = class {
468
470
  return this._$AM._$AU;
469
471
  }
470
472
  _$AI(e) {
471
- K(this, e);
473
+ G(this, e);
472
474
  }
473
- }, de = {
475
+ }, fe = {
474
476
  M: S,
475
477
  P: C,
476
478
  A: w,
477
479
  C: 1,
478
- L: W,
479
- R: q,
480
+ L: U,
481
+ R: K,
480
482
  D: k,
481
- V: K,
482
- I: J,
483
- H: Y,
484
- N: Z,
485
- U: le,
486
- B: X,
487
- F: ue
488
- }, fe = y.litHtmlPolyfillSupport;
489
- fe?.(G, J), (y.litHtmlVersions ??= []).push("3.3.0");
490
- var pe = (e, t, n) => {
483
+ V: G,
484
+ I: q,
485
+ H: J,
486
+ N: X,
487
+ U: de,
488
+ B: Y,
489
+ F: Z
490
+ }, pe = y.litHtmlPolyfillSupport;
491
+ pe?.(W, q), (y.litHtmlVersions ??= []).push("3.3.3");
492
+ var me = (e, t, n) => {
491
493
  let r = n?.renderBefore ?? t, i = r._$litPart$;
492
494
  if (i === void 0) {
493
495
  let e = n?.renderBefore ?? null;
494
- r._$litPart$ = i = new J(t.insertBefore(E(), e), e, void 0, n ?? {});
496
+ r._$litPart$ = i = new q(t.insertBefore(E(), e), e, void 0, n ?? {});
495
497
  }
496
498
  return i._$AI(e), i;
497
499
  }, Q = globalThis, $ = class extends v {
@@ -504,7 +506,7 @@ var pe = (e, t, n) => {
504
506
  }
505
507
  update(e) {
506
508
  let t = this.render();
507
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = pe(t, this.renderRoot, this.renderOptions);
509
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = me(t, this.renderRoot, this.renderOptions);
508
510
  }
509
511
  connectedCallback() {
510
512
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -513,11 +515,11 @@ var pe = (e, t, n) => {
513
515
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
514
516
  }
515
517
  render() {
516
- return z;
518
+ return R;
517
519
  }
518
520
  };
519
521
  $._$litElement$ = !0, $.finalized = !0, Q.litElementHydrateSupport?.({ LitElement: $ });
520
- var me = Q.litElementPolyfillSupport;
521
- me?.({ LitElement: $ }), (Q.litElementVersions ??= []).push("4.2.0");
522
+ var he = Q.litElementPolyfillSupport;
523
+ he?.({ LitElement: $ }), (Q.litElementVersions ??= []).push("4.2.2");
522
524
  //#endregion
523
- export { se as a, g as c, de as i, h as l, B as n, ce as o, z as r, oe as s, $ as t, o as u };
525
+ export { ce as a, g as c, ue as i, h as l, z as n, fe as o, R as r, le as s, $ as t, o as u };
package/chunks/live.js CHANGED
@@ -1,24 +1,24 @@
1
1
  import { n as e, r as t } from "./lit.js";
2
2
  import { n, r } from "./directive-helpers.js";
3
3
  import { i, n as a, r as o } from "./class-map.js";
4
- //#region node_modules/lit-html/directives/live.js
4
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/directives/live.js
5
5
  var s = a(class extends o {
6
6
  constructor(e) {
7
7
  if (super(e), e.type !== i.PROPERTY && e.type !== i.ATTRIBUTE && e.type !== i.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
8
- if (!n(e)) throw Error("`live` bindings can only contain a single expression");
8
+ if (!r(e)) throw Error("`live` bindings can only contain a single expression");
9
9
  }
10
10
  render(e) {
11
11
  return e;
12
12
  }
13
- update(n, [a]) {
13
+ update(r, [a]) {
14
14
  if (a === t || a === e) return a;
15
- let o = n.element, s = n.name;
16
- if (n.type === i.PROPERTY) {
15
+ let o = r.element, s = r.name;
16
+ if (r.type === i.PROPERTY) {
17
17
  if (a === o[s]) return t;
18
- } else if (n.type === i.BOOLEAN_ATTRIBUTE) {
18
+ } else if (r.type === i.BOOLEAN_ATTRIBUTE) {
19
19
  if (!!a === o.hasAttribute(s)) return t;
20
- } else if (n.type === i.ATTRIBUTE && o.getAttribute(s) === a + "") return t;
21
- return r(n), a;
20
+ } else if (r.type === i.ATTRIBUTE && o.getAttribute(s) === a + "") return t;
21
+ return n(r), a;
22
22
  }
23
23
  });
24
24
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as e, s as t, t as n } from "./lit.js";
1
+ import { a as e, n as t, t as n } from "./lit.js";
2
2
  import { o as r, r as i, s as a, t as o } from "./decorate.js";
3
3
  import { t as s } from "./class-map.js";
4
4
  import c from "../components/nve-alert/nve-alert.styles.js";
@@ -113,7 +113,7 @@ var d, f = class extends n {
113
113
  };
114
114
  }
115
115
  render() {
116
- return t`
116
+ return e`
117
117
  <div
118
118
  role="alert"
119
119
  part="base"
@@ -130,17 +130,17 @@ var d, f = class extends n {
130
130
  })}
131
131
  >
132
132
  <div part="icon" class="alert__icon">
133
- ${this.showIcon === "true" ? t`
133
+ ${this.showIcon === "true" ? e`
134
134
  <div part="icon" class="alert__icon">
135
- ${this.getVariantIconName() ? t`<nve-icon name="${this.getVariantIconName()}"></nve-icon>` : t`<slot name="icon"></slot>`}
135
+ ${this.getVariantIconName() ? e`<nve-icon name="${this.getVariantIconName()}"></nve-icon>` : e`<slot name="icon"></slot>`}
136
136
  </div>
137
- ` : e}
137
+ ` : t}
138
138
  </div>
139
139
  <div part="label">
140
- ${this.label ? t` <label part="label">${this.label}</label>` : t`<slot name="label"></slot>`}
140
+ ${this.label ? e` <label part="label">${this.label}</label>` : e`<slot name="label"></slot>`}
141
141
  </div>
142
- <div part="message" class="alert__message">${this.text ? this.text : t`<slot></slot>`}</div>
143
- ${this.closable ? t`
142
+ <div part="message" class="alert__message">${this.text ? this.text : e`<slot></slot>`}</div>
143
+ ${this.closable ? e`
144
144
  <button
145
145
  @click=${this.handleCloseClick}
146
146
  class="alert__button"
@@ -149,7 +149,7 @@ var d, f = class extends n {
149
149
  >
150
150
  <nve-icon name="close"></nve-icon>
151
151
  </button>
152
- ` : e}
152
+ ` : t}
153
153
  </div>
154
154
  `;
155
155
  }
@@ -1,4 +1,4 @@
1
- import { s as e } from "./lit.js";
1
+ import { a as e } from "./lit.js";
2
2
  import { o as t, s as n, t as r } from "./decorate.js";
3
3
  import "./chunk.4TUIT776.js";
4
4
  import { t as i } from "./chunk.IKV4VH3T.js";
@@ -1,4 +1,4 @@
1
- import { n as e, s as t, t as n } from "./lit.js";
1
+ import { a as e, n as t, t as n } from "./lit.js";
2
2
  import { a as r, o as i, r as a, s as o, t as s } from "./decorate.js";
3
3
  import "./nve-label.component.js";
4
4
  import c from "../components/nve-checkbox-group/nve-checkbox-group.styles.js";
@@ -80,7 +80,7 @@ var d = class extends n {
80
80
  return Array.from(this.querySelectorAll("nve-checkbox")).some((e) => e.checked);
81
81
  }
82
82
  render() {
83
- return t`
83
+ return e`
84
84
  <fieldset
85
85
  class="checkbox-group"
86
86
  aria-required=${this.required}
@@ -88,13 +88,13 @@ var d = class extends n {
88
88
  aria-describedby="error-message"
89
89
  aria-errormessage="error-message"
90
90
  >
91
- ${this.label ? t`<div class="checkbox-group__label">
91
+ ${this.label ? e`<div class="checkbox-group__label">
92
92
  <nve-label id="label" value=${this.label} size="small" tooltip=${this.tooltip}></nve-label>
93
- </div>` : e}
93
+ </div>` : t}
94
94
  <slot class="checkbox-group__checkboxes"></slot>
95
- ${this.showErrorMessage ? t`<span role="alert" id="error-message" class="checkbox-group__error-message"
96
- >${this.errorMessage || e}</span
97
- >` : e}
95
+ ${this.showErrorMessage ? e`<span role="alert" id="error-message" class="checkbox-group__error-message"
96
+ >${this.errorMessage || t}</span
97
+ >` : t}
98
98
  </fieldset>
99
99
  `;
100
100
  }
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "./lit.js";
1
+ import { a as e, t } from "./lit.js";
2
2
  import { o as n, s as r, t as i } from "./decorate.js";
3
3
  import { t as a } from "./if-defined.js";
4
4
  import "../components/nve-icon/nve-icon.component.js";