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,15 +1,15 @@
1
- import { s as e } from "./lit.js";
2
- //#region node_modules/lit-html/static.js
1
+ import { a as e } from "./lit.js";
2
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/static.js
3
3
  var t = Symbol.for(""), n = (e) => {
4
4
  if (e?.r === t) return e?._$litStatic$;
5
5
  }, r = (e) => ({
6
6
  _$litStatic$: e,
7
7
  r: t
8
8
  }), i = (e, ...n) => ({
9
- _$litStatic$: n.reduce(((t, n, r) => t + ((e) => {
9
+ _$litStatic$: n.reduce((t, n, r) => t + ((e) => {
10
10
  if (e._$litStatic$ !== void 0) return e._$litStatic$;
11
11
  throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`);
12
- })(n) + e[r + 1]), e[0]),
12
+ })(n) + e[r + 1], e[0]),
13
13
  r: t
14
14
  }), a = /* @__PURE__ */ new Map(), o = ((e) => (t, ...r) => {
15
15
  let i = r.length, o, s, c = [], l = [], u, d = 0, f = !1;
@@ -1,6 +1,6 @@
1
1
  import { n as e, r as t } from "./lit.js";
2
2
  import { i as n, n as r, r as i } from "./class-map.js";
3
- //#region node_modules/lit-html/directives/unsafe-html.js
3
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/directives/unsafe-html.js
4
4
  var a = class extends i {
5
5
  constructor(t) {
6
6
  if (super(t), this.it = e, t.type !== n.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  //#region src/components/nve-accordion/nve-accordion.component.ts
4
4
  var a = class extends t {
@@ -0,0 +1,40 @@
1
+ import { LitElement } from 'lit';
2
+ import { INveComponent } from '../../interfaces/NveComponent.interface';
3
+ /**
4
+ * Viser utsatte himmelretninger som en kompassrose.
5
+ * Rosen er delt opp i 8 sektorer. Utsatte sektorer vises i rødt.
6
+ * Er laget for å vise hvilke himmelretninger et skredproblem gjelder for, men kan selvfølgelig også brukes til andre ting.
7
+ * @cssproperty --aspect-rose-size - Høyde og bredde på komponenten. 90px er standard.
8
+ * @cssproperty --aspect-rose-outline-color - Farge på sirkelens omriss. Standard er #c6c6c5.
9
+ * @cssproperty --aspect-rose-affected-color - Farge på utsatte sektorer. Standard er #d21523.
10
+ * @cssproperty --aspect-rose-unaffected-color - Farge på ikke-utsatte sektorer. Standard er #e3e3e3.
11
+ */
12
+ export default class NveAspectRose extends LitElement implements INveComponent {
13
+ testId: string | undefined;
14
+ /**
15
+ * 8-tegns binærtekst som representerer utsatte sektorer.
16
+ * Starter med nordlig sektor og går deretter med klokka.
17
+ * Eksempel: "00111110"
18
+ */
19
+ value: string;
20
+ /** Språk for himmelretningene. Blir satt til engelsk om lang starter på 'en'. Standard er norsk. */
21
+ lang: string;
22
+ /**
23
+ * Tilgjengelig tittel.
24
+ * Vises som aria-label på SVG-elementet og som <title> i SVG.
25
+ * Standardverdi avhenger av språket: 'Utsatte sektorer' for norsk, 'Affected aspects' for engelsk.
26
+ * Du kan overstyre denne teksten.
27
+ */
28
+ label: string | undefined;
29
+ static styles: import('lit').CSSResult[];
30
+ private isEnglish;
31
+ private get effectiveLabel();
32
+ private get directions();
33
+ private readonly rotations;
34
+ render(): import('lit-html').TemplateResult<1>;
35
+ }
36
+ declare global {
37
+ interface HTMLElementTagNameMap {
38
+ 'nve-aspect-rose': NveAspectRose;
39
+ }
40
+ }
@@ -0,0 +1,90 @@
1
+ import { a as e, s as t, t as n } from "../../chunks/lit.js";
2
+ import { o as r, s as i, t as a } from "../../chunks/decorate.js";
3
+ import { t as o } from "../../chunks/if-defined.js";
4
+ import s from "./nve-aspect-rose.styles.js";
5
+ //#region src/components/nve-aspect-rose/nve-aspect-rose.component.ts
6
+ var c = class extends n {
7
+ constructor(...e) {
8
+ super(...e), this.testId = void 0, this.value = "00000000", this.lang = "no", this.label = void 0, this.rotations = [
9
+ -22.5,
10
+ 22.5,
11
+ 67.5,
12
+ 112.5,
13
+ 157.5,
14
+ 202.5,
15
+ 247.5,
16
+ 292.5
17
+ ];
18
+ }
19
+ static {
20
+ this.styles = [s];
21
+ }
22
+ isEnglish() {
23
+ return this.lang.toLowerCase().startsWith("en");
24
+ }
25
+ get effectiveLabel() {
26
+ return this.label ?? (this.isEnglish() ? "Affected aspects" : "Utsatte sektorer");
27
+ }
28
+ get directions() {
29
+ return [
30
+ {
31
+ cx: 45,
32
+ cy: 9,
33
+ label: "N"
34
+ },
35
+ {
36
+ cx: 81,
37
+ cy: 45,
38
+ label: this.isEnglish() ? "E" : "Ø"
39
+ },
40
+ {
41
+ cx: 45,
42
+ cy: 81,
43
+ label: "S"
44
+ },
45
+ {
46
+ cx: 9,
47
+ cy: 45,
48
+ label: this.isEnglish() ? "W" : "V"
49
+ }
50
+ ];
51
+ }
52
+ render() {
53
+ let n = /^[01]{8}$/.test(this.value) ? this.value : "00000000";
54
+ return e`
55
+ <svg
56
+ xmlns="http://www.w3.org/2000/svg"
57
+ viewBox="0 0 90 90"
58
+ width="100%"
59
+ height="100%"
60
+ role="img"
61
+ aria-label=${this.effectiveLabel}
62
+ testid=${o(this.testId)}
63
+ >
64
+ ${t`<title>${this.effectiveLabel}</title>`}
65
+ <g>
66
+ ${this.rotations.map((e, r) => t`
67
+ <path
68
+ d="M 45 9 A 36 36 0 0 1 70.45584412271572 19.54415587728429 L 45 45 Z"
69
+ transform="rotate(${e} 45 45)"
70
+ stroke-width="1"
71
+ stroke="var(--aspect-rose-outline-color, #c6c6c5)"
72
+ class=${n[r] === "1" ? "sector-affected" : "sector-unaffected"}
73
+ ></path>
74
+ `)}
75
+ <circle cx="45" cy="45" r="36" fill="none" stroke-width="1" class="circle-outline"></circle>
76
+ </g>
77
+ ${this.directions.map(({ cx: e, cy: n, label: r }) => t`
78
+ <g>
79
+ <circle cx=${e} cy=${n} r="7.2" stroke-width="1" stroke="var(--aspect-rose-outline-color, #c6c6c5)" fill="#fff"></circle>
80
+ <text x=${e} y=${n} dy="3.168" text-anchor="middle" fill="#6a7a7b">${r}</text>
81
+ </g>
82
+ `)}
83
+ </svg>
84
+ `;
85
+ }
86
+ };
87
+ a([r({ type: String })], c.prototype, "testId", void 0), a([r({ type: String })], c.prototype, "value", void 0), a([r({ type: String })], c.prototype, "lang", void 0), a([r({ type: String })], c.prototype, "label", void 0), c = a([i("nve-aspect-rose")], c);
88
+ var l = c;
89
+ //#endregion
90
+ export { l as default };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { u as e } from "../../chunks/lit.js";
2
+ //#region src/components/nve-aspect-rose/nve-aspect-rose.styles.ts
3
+ var t = e`
4
+ :host {
5
+ display: inline-block;
6
+ width: var(--aspect-rose-size, 90px);
7
+ height: var(--aspect-rose-size, 90px);
8
+ }
9
+
10
+ text {
11
+ font-family: 'Source Sans 3', sans-serif;
12
+ font-weight: var(--font-weight-regular);
13
+ font-size: 0.67rem;
14
+ }
15
+
16
+ .circle-outline {
17
+ stroke: var(--aspect-rose-outline-color, #c6c6c5);
18
+ }
19
+ .sector-affected {
20
+ fill: var(--aspect-rose-affected-color, #d21523);
21
+ }
22
+ .sector-unaffected {
23
+ fill: var(--aspect-rose-unaffected-color, #e3e3e3);
24
+ }
25
+ `;
26
+ //#endregion
27
+ export { t as default };
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import { t as a } from "../../chunks/class-map.js";
4
4
  import o from "./nve-badge.styles.js";
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import a from "./nve-carousel-thumbnail.styles.js";
4
4
  //#region src/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.ts
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { a as n, o as r, s as i, t as a } from "../../chunks/decorate.js";
3
3
  import { t as o } from "../../chunks/unsafe-html.js";
4
4
  import { n as s, t as c } from "../../chunks/ref.js";
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  //#region src/components/nve-darkmode-switch/nve-darkmode-switch.component.ts
4
4
  var a = class extends t {
@@ -6,7 +6,8 @@ var a = class extends t {
6
6
  super(), this.testId = "", this.darkmode = !1, this.darkmodeclass = "darkmode", this.localStorageVariable = "preferdarkmode";
7
7
  }
8
8
  toggleDarkmode(e) {
9
- this.darkmode = !!e.target.checked, localStorage.setItem(this.localStorageVariable, this.darkmode.toString()), this.darkmode ? document.documentElement.classList.add(this.darkmodeclass) : document.documentElement.classList.remove(this.darkmodeclass);
9
+ let t = e.target;
10
+ this.darkmode = !!t?.checked, localStorage.setItem(this.localStorageVariable, this.darkmode.toString()), this.darkmode ? document.documentElement.classList.add(this.darkmodeclass) : document.documentElement.classList.remove(this.darkmodeclass);
10
11
  }
11
12
  connectedCallback() {
12
13
  super.connectedCallback();
@@ -1,5 +1,5 @@
1
1
  import { r as e, t } from "../../chunks/chunk.js";
2
- import { s as n, t as r } from "../../chunks/lit.js";
2
+ import { a as n, t as r } from "../../chunks/lit.js";
3
3
  import { a as i, o as a, s as o, t as s } from "../../chunks/decorate.js";
4
4
  import { t as c } from "../../chunks/class-map.js";
5
5
  import { t as l } from "../../chunks/if-defined.js";
@@ -1,4 +1,4 @@
1
- import { n as e, s as t, t as n } from "../../chunks/lit.js";
1
+ import { a as e, n as t, t as n } from "../../chunks/lit.js";
2
2
  import { o as r, s as i, t as a } from "../../chunks/decorate.js";
3
3
  import { t as o } from "../../chunks/class-map.js";
4
4
  import { t as s } from "../../chunks/if-defined.js";
@@ -22,17 +22,17 @@ var l = class extends n {
22
22
  }
23
23
  }
24
24
  renderContent() {
25
- return t`
25
+ return e`
26
26
  <slot name="icon"></slot>
27
27
  <div class="link-card__content">
28
28
  <div part="label" class="link-card__label">${this.label}</div>
29
- ${this.additionalText ? t`<div part="additional-text" class="link-card__additional-text">${this.additionalText}</div>` : e}
29
+ ${this.additionalText ? e`<div part="additional-text" class="link-card__additional-text">${this.additionalText}</div>` : t}
30
30
  </div>
31
31
  <nve-icon aria-hidden="true" slot="suffix" name="${this.getIconName()}"></nve-icon>
32
32
  `;
33
33
  }
34
34
  render() {
35
- return this.parentElement?.tagName.toLowerCase() === "a" || this.parentElement?.getAttribute("role") === "link" ? t` <div
35
+ return this.parentElement?.tagName.toLowerCase() === "a" || this.parentElement?.getAttribute("role") === "link" ? e` <div
36
36
  part="link-card"
37
37
  testId="${s(this.testId)}"
38
38
  class=${o({
@@ -42,14 +42,14 @@ var l = class extends n {
42
42
  })}
43
43
  >
44
44
  ${this.renderContent()}
45
- </div>` : t`
45
+ </div>` : e`
46
46
  <a
47
47
  testId="${s(this.testId)}"
48
48
  ?download=${this.clickAction === "download"}
49
49
  part="link-card"
50
50
  class="link-card link-card--${this.size} link-card--${this.variant}"
51
51
  href=${s(this.clickAction === "mail" ? `mailto:${this.href}` : this.href)}
52
- target=${this.clickAction === "external" ? "_blank" : e}
52
+ target=${this.clickAction === "external" ? "_blank" : t}
53
53
  >${this.renderContent()}
54
54
  </a>
55
55
  `;
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import { t as a } from "../../chunks/class-map.js";
4
4
  import "../nve-icon/nve-icon.component.js";
@@ -1,4 +1,4 @@
1
- import { n as e, s as t, t as n } from "../../chunks/lit.js";
1
+ import { a as e, n as t, t as n } from "../../chunks/lit.js";
2
2
  import { o as r, s as i, t as a } from "../../chunks/decorate.js";
3
3
  import { t as o } from "../../chunks/if-defined.js";
4
4
  import "../nve-icon/nve-icon.component.js";
@@ -20,34 +20,34 @@ var c = class extends n {
20
20
  }
21
21
  }
22
22
  renderContent() {
23
- return t`
23
+ return e`
24
24
  <div part="content" class="navigation-card__content">
25
- ${this.iconPath ? t`<img
25
+ ${this.iconPath ? e`<img
26
26
  part="leading-icon"
27
27
  src="${this.iconPath}"
28
28
  alt=""
29
29
  aria-hidden="true"
30
30
  class="navigation-card__icon"
31
- />` : e}
31
+ />` : t}
32
32
  <h2 part="label" class="navigation-card__label">${this.label}</h2>
33
- ${!this.iconPath && this.additionalText ? t`<p part="additional-text" class="navigation-card__additional-text">${this.additionalText}</p>` : e}
33
+ ${!this.iconPath && this.additionalText ? e`<p part="additional-text" class="navigation-card__additional-text">${this.additionalText}</p>` : t}
34
34
  </div>
35
35
  <nve-icon aria-hidden="true" name="${this.getIconName()}" class="navigation-card__arrow" />
36
36
  `;
37
37
  }
38
38
  render() {
39
- return this.parentElement?.tagName.toLowerCase() === "a" || this.parentElement?.getAttribute("role") === "link" ? t`
39
+ return this.parentElement?.tagName.toLowerCase() === "a" || this.parentElement?.getAttribute("role") === "link" ? e`
40
40
  <div part="navigation-card" class="navigation-card" testid=${o(this.testId)}>
41
41
  ${this.renderContent()}
42
42
  </div>
43
- ` : t`
43
+ ` : e`
44
44
  <a
45
45
  testid=${o(this.testId)}
46
46
  ?download=${this.clickAction === "download"}
47
47
  part="navigation-card"
48
48
  class="navigation-card"
49
49
  href="${o(this.href)}"
50
- target=${this.clickAction === "external" ? "_blank" : e}
50
+ target=${this.clickAction === "external" ? "_blank" : t}
51
51
  >
52
52
  ${this.renderContent()}
53
53
  </a>
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import a from "./nve-paragraph.styles.js";
4
4
  //#region src/components/nve-paragraph/nve-paragraph.component.ts
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../../chunks/lit.js";
1
+ import { a as e, t } from "../../../chunks/lit.js";
2
2
  import { o as n, r, s as i, t as a } from "../../../chunks/decorate.js";
3
3
  import o from "./nve-step.styles.js";
4
4
  //#region src/components/nve-stepper/nve-step/nve-step.component.ts
@@ -6,7 +6,7 @@ var s = /* @__PURE__ */ function(e) {
6
6
  return e[e.NotStarted = 0] = "NotStarted", e[e.Started = 1] = "Started", e[e.Active = 2] = "Active", e[e.Done = 3] = "Done", e[e.Error = 4] = "Error", e;
7
7
  }({}), c = class extends t {
8
8
  constructor(...e) {
9
- super(...e), this.label = "", this.index = 0, this.state = s.NotStarted, this.selectedStepIndex = 0, this.isSelected = !1, this.isLast = !1, this.entranceAllowed = !1, this.orientation = "horizontal", this.hideStateText = !1, this.hideDescriptions = !1;
9
+ super(...e), this.label = "", this.index = 0, this.state = 0, this.selectedStepIndex = 0, this.isSelected = !1, this.isLast = !1, this.entranceAllowed = !1, this.orientation = "horizontal", this.hideStateText = !1, this.hideDescriptions = !1;
10
10
  }
11
11
  firstUpdated() {
12
12
  this.style.setProperty("--flex-grow", this.isLast ? "0" : "1");
@@ -23,19 +23,19 @@ var s = /* @__PURE__ */ function(e) {
23
23
  iconForState(e) {
24
24
  let t = "";
25
25
  switch (e) {
26
- case s.NotStarted:
26
+ case 0:
27
27
  t = "circle";
28
28
  break;
29
- case s.Active:
29
+ case 2:
30
30
  t = "radio_button_checked";
31
31
  break;
32
- case s.Started:
32
+ case 1:
33
33
  t = "trip_origin";
34
34
  break;
35
- case s.Done:
35
+ case 3:
36
36
  t = "check_circle";
37
37
  break;
38
- case s.Error:
38
+ case 4:
39
39
  t = "error";
40
40
  break;
41
41
  default:
@@ -46,35 +46,35 @@ var s = /* @__PURE__ */ function(e) {
46
46
  }
47
47
  getStateText(e) {
48
48
  switch (e) {
49
- case s.NotStarted: return "Ikke påbegynt";
50
- case s.Active: return "Aktiv";
51
- case s.Started: return "Påbegynt";
52
- case s.Done: return "Fullført";
53
- case s.Error: return "Feil";
49
+ case 0: return "Ikke påbegynt";
50
+ case 2: return "Aktiv";
51
+ case 1: return "Påbegynt";
52
+ case 3: return "Fullført";
53
+ case 4: return "Feil";
54
54
  default: return "Ikke påbegynt";
55
55
  }
56
56
  }
57
57
  getStateColorClass(e) {
58
58
  switch (e) {
59
- case s.NotStarted: return "state-not-started-color";
60
- case s.Active: return "state-started-color";
61
- case s.Done: return "state-done-color";
62
- case s.Error: return "state-error-color";
59
+ case 0: return "state-not-started-color";
60
+ case 2: return "state-started-color";
61
+ case 3: return "state-done-color";
62
+ case 4: return "state-error-color";
63
63
  default: return "state-not-started-color";
64
64
  }
65
65
  }
66
66
  getLabelClass(e) {
67
67
  switch (e) {
68
- case s.NotStarted: return "state-not-started-color";
69
- case s.Error: return "state-error-color";
68
+ case 0: return "state-not-started-color";
69
+ case 4: return "state-error-color";
70
70
  default: return "";
71
71
  }
72
72
  }
73
73
  getIconClass(e) {
74
74
  switch (e) {
75
- case s.Started: return "";
76
- case s.NotStarted: return "state-not-started-icon-color filled-icon";
77
- case s.Error: return "state-error-color filled-icon";
75
+ case 1: return "";
76
+ case 0: return "state-not-started-icon-color filled-icon";
77
+ case 4: return "state-error-color filled-icon";
78
78
  default: return "filled-icon";
79
79
  }
80
80
  }
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import a from "./nve-stepper-mobile.styles.js";
4
4
  //#region src/components/nve-stepper/nve-stepper-mobile.component.ts
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import { StepState as a } from "./nve-step/nve-step.component.js";
4
4
  import o from "./nve-stepper.styles.js";
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { a as n, o as r, r as i, s as a, t as o } from "../../chunks/decorate.js";
3
3
  import { t as s } from "../../chunks/class-map.js";
4
4
  import { t as c } from "../../chunks/if-defined.js";
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import { t as a } from "../../chunks/class-map.js";
4
4
  import o from "./nve-tab.styles.js";
@@ -1,4 +1,4 @@
1
- import { n as e, s as t, t as n } from "../../chunks/lit.js";
1
+ import { a as e, n as t, t as n } from "../../chunks/lit.js";
2
2
  import { a as r, o as i, s as a, t as o } from "../../chunks/decorate.js";
3
3
  import { t as s } from "../../chunks/class-map.js";
4
4
  import { t as c } from "../../chunks/if-defined.js";
@@ -157,7 +157,7 @@ var d = class extends n {
157
157
  }
158
158
  }
159
159
  render() {
160
- return t`
160
+ return e`
161
161
  <div
162
162
  part="base"
163
163
  class="tab-group"
@@ -175,7 +175,7 @@ var d = class extends n {
175
175
  >
176
176
  <slot name="nav"></slot>
177
177
  </div>
178
- ${this.canScrollBack && this.isOverflow ? t`
178
+ ${this.canScrollBack && this.isOverflow ? e`
179
179
  <div
180
180
  aria-hidden="true"
181
181
  part="button-backward-base"
@@ -185,8 +185,8 @@ var d = class extends n {
185
185
  <nve-icon name="chevron_backward"></nve-icon>
186
186
  </nve-button>
187
187
  </div>
188
- ` : e}
189
- ${this.canScrollForward && this.isOverflow ? t`
188
+ ` : t}
189
+ ${this.canScrollForward && this.isOverflow ? e`
190
190
  <div
191
191
  part="button-forward-base"
192
192
  aria-hidden="true"
@@ -196,7 +196,7 @@ var d = class extends n {
196
196
  <nve-icon name="chevron_forward"></nve-icon>
197
197
  </nve-button>
198
198
  </div>
199
- ` : e}
199
+ ` : t}
200
200
  </div>
201
201
  <slot part="body"></slot>
202
202
  </div>
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import a from "./nve-tab-panel.styles.js";
4
4
  //#region src/components/nve-tab-panel/nve-tab-panel.component.ts
@@ -1,4 +1,4 @@
1
- import { n as e, s as t, t as n } from "../../chunks/lit.js";
1
+ import { a as e, n as t, t as n } from "../../chunks/lit.js";
2
2
  import { o as r, s as i, t as a } from "../../chunks/decorate.js";
3
3
  import { t as o } from "../../chunks/class-map.js";
4
4
  import s from "./nve-tag.styles.js";
@@ -20,7 +20,7 @@ var c = class extends n {
20
20
  this.dispatchEvent(e);
21
21
  }
22
22
  render() {
23
- return t`
23
+ return e`
24
24
  <span
25
25
  part="base"
26
26
  class=${o({
@@ -38,20 +38,20 @@ var c = class extends n {
38
38
  })}
39
39
  >
40
40
  <slot name="prefix"
41
- >${this.dot ? t`<svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
41
+ >${this.dot ? e`<svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
42
42
  <circle cx="5.5" cy="5" r="5" fill="currentcolor" />
43
- </svg> ` : e}</slot
43
+ </svg> ` : t}</slot
44
44
  >
45
45
  <slot part="text"></slot>
46
46
  <slot name="extra" part="extra">${this.extraText}</slot>
47
- ${this.closeable ? t`<button
47
+ ${this.closeable ? e`<button
48
48
  part="close"
49
49
  class="tag-close"
50
50
  aria-label="${this.closeAriaLabel}"
51
51
  @click=${this.closeButtonClick}
52
52
  >
53
53
  <nve-icon name="close"></nve-icon>
54
- </button>` : e}
54
+ </button>` : t}
55
55
  </span>
56
56
  `;
57
57
  }
@@ -1,4 +1,4 @@
1
- import { n as e, s as t, t as n } from "../../chunks/lit.js";
1
+ import { a as e, n as t, t as n } from "../../chunks/lit.js";
2
2
  import { a as r, o as i, r as a, s as o, t as s } from "../../chunks/decorate.js";
3
3
  import { t as c } from "../../chunks/class-map.js";
4
4
  import { t as l } from "../../chunks/if-defined.js";
@@ -62,20 +62,20 @@ var f = class extends n {
62
62
  }
63
63
  render() {
64
64
  let n = !!this.querySelector("[slot=\"label\"]");
65
- return t`
65
+ return e`
66
66
  <div part="form-control" class=${c({
67
67
  "form-control": !0,
68
68
  "form-control--has-label": this.label
69
69
  })}>
70
- ${n ? t`<slot name="label"></slot>` : this.label ? t`<nve-label
70
+ ${n ? e`<slot name="label"></slot>` : this.label ? e`<nve-label
71
71
  id="label"
72
72
  value=${this.label}
73
73
  size="small"
74
74
  tooltip=${l(this.tooltip)}
75
- ></nve-label>` : e}
76
- ${this.helpText ? t` <div part="help-text-container" class="textarea__help-text__container">
75
+ ></nve-label>` : t}
76
+ ${this.helpText ? e` <div part="help-text-container" class="textarea__help-text__container">
77
77
  <span class="textarea__help-text" aria-hidden=${this.helpText ? "false" : "true"}>${this.helpText}</span>
78
- </div>` : e}
78
+ </div>` : t}
79
79
 
80
80
  <div part="base" class="textarea__base">
81
81
  <textarea
@@ -105,15 +105,15 @@ var f = class extends n {
105
105
  Må gjøres sånn fordi vi vil ikke begrense textarea__base brede til fit-content (da textarea kan aldri ta så mye plass som er
106
106
  tilgjengelig i nettleseren og man må alltid sette brede på den manuelt. Nei takk.) -->
107
107
  <!-- Foreløpig kan man ha enten 'lock' eller 'error' ikone -->
108
- ${this.disabled || this.showErrorMessage ? t`<div class="textarea__icon__container">
109
- ${this.disabled ? t`<nve-icon name="lock"></nve-icon>` : null}
110
- ${this.showErrorMessage ? t`<nve-icon class="textarea__icon--error" name="error"></nve-icon>` : null}
111
- </div>` : e}
108
+ ${this.disabled || this.showErrorMessage ? e`<div class="textarea__icon__container">
109
+ ${this.disabled ? e`<nve-icon name="lock"></nve-icon>` : null}
110
+ ${this.showErrorMessage ? e`<nve-icon class="textarea__icon--error" name="error"></nve-icon>` : null}
111
+ </div>` : t}
112
112
  </div>
113
113
  <div part="hint-text-container" class="textarea__hint-text__container">
114
114
  <!-- Ikke vis hint dersom feil -->
115
- ${!this.showErrorMessage && this.hint ? t`<span class="textarea__hint" aria-hidden=${this.hint ? "false" : "true"}>${this.hint}</span>` : e}
116
- ${this.showErrorMessage ? t`<span class="textarea__help-text textarea__help-text--error">${this.errorMessage}</span>` : e}
115
+ ${!this.showErrorMessage && this.hint ? e`<span class="textarea__hint" aria-hidden=${this.hint ? "false" : "true"}>${this.hint}</span>` : t}
116
+ ${this.showErrorMessage ? e`<span class="textarea__help-text textarea__help-text--error">${this.errorMessage}</span>` : t}
117
117
  </div>
118
118
  </div>
119
119
  `;