nve-designsystem 0.1.85 → 0.1.87

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.
@@ -3,13 +3,16 @@ import { INveComponent } from '../../interfaces/NveComponent.interface';
3
3
  /**
4
4
  * Selveste NVE-knappen.
5
5
  * Bruk href for å gjøre den om til en link.
6
- * Disse feltene skal ikke brukes: circle, caret og pill
6
+ * Disse feltene skal ikke brukes:caret og pill
7
+ * Circle attributte skal brukes kun når man viser bare et ikon.
7
8
  */
8
9
  export default class NveButton extends SlButton implements INveComponent {
9
10
  constructor();
10
11
  static styles: import("lit").CSSResultGroup[];
11
12
  size: 'small' | 'medium' | 'large';
12
13
  testId: string | undefined;
14
+ firstUpdated(): void;
15
+ updated(changedProperties: Map<string | number | symbol, unknown>): void;
13
16
  }
14
17
  declare global {
15
18
  interface HTMLElementTagNameMap {
@@ -1,30 +1,30 @@
1
- import { n as r, t as y } from "../../chunks/property.js";
1
+ import { n as i, t as y } from "../../chunks/property.js";
2
2
  import { S as v } from "../../chunks/chunk.I2FDN2OJ.js";
3
3
  import { F as C, v as g } from "../../chunks/chunk.UEQZEZFU.js";
4
4
  import { b as $ } from "../../chunks/chunk.MGOBPGE5.js";
5
- import { H as B } from "../../chunks/chunk.NYIIDP5N.js";
6
- import { L as _ } from "../../chunks/chunk.MAS2SHYD.js";
7
- import { S as x } from "../../chunks/chunk.2HU27ZWH.js";
8
- import { w as S } from "../../chunks/chunk.Q6ASPMKT.js";
9
- import { b as e, S as w } from "../../chunks/chunk.JS655M6J.js";
5
+ import { H as _ } from "../../chunks/chunk.NYIIDP5N.js";
6
+ import { L as B } from "../../chunks/chunk.MAS2SHYD.js";
7
+ import { S } from "../../chunks/chunk.2HU27ZWH.js";
8
+ import { w as x } from "../../chunks/chunk.Q6ASPMKT.js";
9
+ import { b as o, S as w } from "../../chunks/chunk.JS655M6J.js";
10
10
  import { e as F } from "../../chunks/class-map.js";
11
11
  import { s as c, n as f } from "../../chunks/static.js";
12
- import { o as s } from "../../chunks/if-defined.js";
12
+ import { o as n } from "../../chunks/if-defined.js";
13
13
  import { r as m } from "../../chunks/state.js";
14
- import { e as V } from "../../chunks/query.js";
15
- import z from "./nve-button.styles.js";
16
- var t = class extends w {
14
+ import { e as I } from "../../chunks/query.js";
15
+ import N from "./nve-button.styles.js";
16
+ var e = class extends w {
17
17
  constructor() {
18
18
  super(...arguments), this.formControlController = new C(this, {
19
- form: (o) => {
20
- if (o.hasAttribute("form")) {
21
- const i = o.getRootNode(), a = o.getAttribute("form");
22
- return i.getElementById(a);
19
+ form: (t) => {
20
+ if (t.hasAttribute("form")) {
21
+ const r = t.getRootNode(), l = t.getAttribute("form");
22
+ return r.getElementById(l);
23
23
  }
24
- return o.closest("form");
24
+ return t.closest("form");
25
25
  },
26
26
  assumeInteractionOn: ["click"]
27
- }), this.hasSlotController = new B(this, "[default]", "prefix", "suffix"), this.localize = new _(this), this.hasFocus = !1, this.invalid = !1, this.title = "", this.variant = "default", this.size = "medium", this.caret = !1, this.disabled = !1, this.loading = !1, this.outline = !1, this.pill = !1, this.circle = !1, this.type = "button", this.name = "", this.value = "", this.href = "", this.rel = "noreferrer noopener";
27
+ }), this.hasSlotController = new _(this, "[default]", "prefix", "suffix"), this.localize = new B(this), this.hasFocus = !1, this.invalid = !1, this.title = "", this.variant = "default", this.size = "medium", this.caret = !1, this.disabled = !1, this.loading = !1, this.outline = !1, this.pill = !1, this.circle = !1, this.type = "button", this.name = "", this.value = "", this.href = "", this.rel = "noreferrer noopener";
28
28
  }
29
29
  /** Gets the validity state object */
30
30
  get validity() {
@@ -46,8 +46,8 @@ var t = class extends w {
46
46
  handleClick() {
47
47
  this.type === "submit" && this.formControlController.submit(this), this.type === "reset" && this.formControlController.reset(this);
48
48
  }
49
- handleInvalid(o) {
50
- this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(o);
49
+ handleInvalid(t) {
50
+ this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(t);
51
51
  }
52
52
  isButton() {
53
53
  return !this.href;
@@ -63,8 +63,8 @@ var t = class extends w {
63
63
  this.button.click();
64
64
  }
65
65
  /** Sets focus on the button. */
66
- focus(o) {
67
- this.button.focus(o);
66
+ focus(t) {
67
+ this.button.focus(t);
68
68
  }
69
69
  /** Removes focus from the button. */
70
70
  blur() {
@@ -83,13 +83,13 @@ var t = class extends w {
83
83
  return this.isButton() ? this.button.reportValidity() : !0;
84
84
  }
85
85
  /** Sets a custom validation message. Pass an empty string to restore validity. */
86
- setCustomValidity(o) {
87
- this.isButton() && (this.button.setCustomValidity(o), this.formControlController.updateValidity());
86
+ setCustomValidity(t) {
87
+ this.isButton() && (this.button.setCustomValidity(t), this.formControlController.updateValidity());
88
88
  }
89
89
  render() {
90
- const o = this.isLink(), i = o ? c`a` : c`button`;
90
+ const t = this.isLink(), r = t ? c`a` : c`button`;
91
91
  return f`
92
- <${i}
92
+ <${r}
93
93
  part="base"
94
94
  class=${F({
95
95
  button: !0,
@@ -116,16 +116,16 @@ var t = class extends w {
116
116
  "button--has-prefix": this.hasSlotController.test("prefix"),
117
117
  "button--has-suffix": this.hasSlotController.test("suffix")
118
118
  })}
119
- ?disabled=${s(o ? void 0 : this.disabled)}
120
- type=${s(o ? void 0 : this.type)}
119
+ ?disabled=${n(t ? void 0 : this.disabled)}
120
+ type=${n(t ? void 0 : this.type)}
121
121
  title=${this.title}
122
- name=${s(o ? void 0 : this.name)}
123
- value=${s(o ? void 0 : this.value)}
124
- href=${s(o ? this.href : void 0)}
125
- target=${s(o ? this.target : void 0)}
126
- download=${s(o ? this.download : void 0)}
127
- rel=${s(o ? this.rel : void 0)}
128
- role=${s(o ? void 0 : "button")}
122
+ name=${n(t ? void 0 : this.name)}
123
+ value=${n(t ? void 0 : this.value)}
124
+ href=${n(t ? this.href : void 0)}
125
+ target=${n(t ? this.target : void 0)}
126
+ download=${n(t ? this.download : void 0)}
127
+ rel=${n(t ? this.rel : void 0)}
128
+ role=${n(t ? void 0 : "button")}
129
129
  aria-disabled=${this.disabled ? "true" : "false"}
130
130
  tabindex=${this.disabled ? "-1" : "0"}
131
131
  @blur=${this.handleBlur}
@@ -138,115 +138,135 @@ var t = class extends w {
138
138
  <slot name="suffix" part="suffix" class="button__suffix"></slot>
139
139
  ${this.caret ? f` <sl-icon part="caret" class="button__caret" library="system" name="caret"></sl-icon> ` : ""}
140
140
  ${this.loading ? f`<sl-spinner part="spinner"></sl-spinner>` : ""}
141
- </${i}>
141
+ </${r}>
142
142
  `;
143
143
  }
144
144
  };
145
- t.styles = $;
146
- t.dependencies = {
147
- "sl-icon": x,
145
+ e.styles = $;
146
+ e.dependencies = {
147
+ "sl-icon": S,
148
148
  "sl-spinner": v
149
149
  };
150
- e([
151
- V(".button")
152
- ], t.prototype, "button", 2);
153
- e([
150
+ o([
151
+ I(".button")
152
+ ], e.prototype, "button", 2);
153
+ o([
154
154
  m()
155
- ], t.prototype, "hasFocus", 2);
156
- e([
155
+ ], e.prototype, "hasFocus", 2);
156
+ o([
157
157
  m()
158
- ], t.prototype, "invalid", 2);
159
- e([
160
- r()
161
- ], t.prototype, "title", 2);
162
- e([
163
- r({ reflect: !0 })
164
- ], t.prototype, "variant", 2);
165
- e([
166
- r({ reflect: !0 })
167
- ], t.prototype, "size", 2);
168
- e([
169
- r({ type: Boolean, reflect: !0 })
170
- ], t.prototype, "caret", 2);
171
- e([
172
- r({ type: Boolean, reflect: !0 })
173
- ], t.prototype, "disabled", 2);
174
- e([
175
- r({ type: Boolean, reflect: !0 })
176
- ], t.prototype, "loading", 2);
177
- e([
178
- r({ type: Boolean, reflect: !0 })
179
- ], t.prototype, "outline", 2);
180
- e([
181
- r({ type: Boolean, reflect: !0 })
182
- ], t.prototype, "pill", 2);
183
- e([
184
- r({ type: Boolean, reflect: !0 })
185
- ], t.prototype, "circle", 2);
186
- e([
187
- r()
188
- ], t.prototype, "type", 2);
189
- e([
190
- r()
191
- ], t.prototype, "name", 2);
192
- e([
193
- r()
194
- ], t.prototype, "value", 2);
195
- e([
196
- r()
197
- ], t.prototype, "href", 2);
198
- e([
199
- r()
200
- ], t.prototype, "target", 2);
201
- e([
202
- r()
203
- ], t.prototype, "rel", 2);
204
- e([
205
- r()
206
- ], t.prototype, "download", 2);
207
- e([
208
- r()
209
- ], t.prototype, "form", 2);
210
- e([
211
- r({ attribute: "formaction" })
212
- ], t.prototype, "formAction", 2);
213
- e([
214
- r({ attribute: "formenctype" })
215
- ], t.prototype, "formEnctype", 2);
216
- e([
217
- r({ attribute: "formmethod" })
218
- ], t.prototype, "formMethod", 2);
219
- e([
220
- r({ attribute: "formnovalidate", type: Boolean })
221
- ], t.prototype, "formNoValidate", 2);
222
- e([
223
- r({ attribute: "formtarget" })
224
- ], t.prototype, "formTarget", 2);
225
- e([
226
- S("disabled", { waitUntilFirstUpdate: !0 })
227
- ], t.prototype, "handleDisabledChange", 1);
228
- var b = t;
229
- t.define("sl-button");
230
- var I = Object.defineProperty, k = Object.getOwnPropertyDescriptor, d = (o, i, a, u) => {
231
- for (var l = u > 1 ? void 0 : u ? k(i, a) : i, h = o.length - 1, p; h >= 0; h--)
232
- (p = o[h]) && (l = (u ? p(i, a, l) : p(l)) || l);
233
- return u && l && I(i, a, l), l;
158
+ ], e.prototype, "invalid", 2);
159
+ o([
160
+ i()
161
+ ], e.prototype, "title", 2);
162
+ o([
163
+ i({ reflect: !0 })
164
+ ], e.prototype, "variant", 2);
165
+ o([
166
+ i({ reflect: !0 })
167
+ ], e.prototype, "size", 2);
168
+ o([
169
+ i({ type: Boolean, reflect: !0 })
170
+ ], e.prototype, "caret", 2);
171
+ o([
172
+ i({ type: Boolean, reflect: !0 })
173
+ ], e.prototype, "disabled", 2);
174
+ o([
175
+ i({ type: Boolean, reflect: !0 })
176
+ ], e.prototype, "loading", 2);
177
+ o([
178
+ i({ type: Boolean, reflect: !0 })
179
+ ], e.prototype, "outline", 2);
180
+ o([
181
+ i({ type: Boolean, reflect: !0 })
182
+ ], e.prototype, "pill", 2);
183
+ o([
184
+ i({ type: Boolean, reflect: !0 })
185
+ ], e.prototype, "circle", 2);
186
+ o([
187
+ i()
188
+ ], e.prototype, "type", 2);
189
+ o([
190
+ i()
191
+ ], e.prototype, "name", 2);
192
+ o([
193
+ i()
194
+ ], e.prototype, "value", 2);
195
+ o([
196
+ i()
197
+ ], e.prototype, "href", 2);
198
+ o([
199
+ i()
200
+ ], e.prototype, "target", 2);
201
+ o([
202
+ i()
203
+ ], e.prototype, "rel", 2);
204
+ o([
205
+ i()
206
+ ], e.prototype, "download", 2);
207
+ o([
208
+ i()
209
+ ], e.prototype, "form", 2);
210
+ o([
211
+ i({ attribute: "formaction" })
212
+ ], e.prototype, "formAction", 2);
213
+ o([
214
+ i({ attribute: "formenctype" })
215
+ ], e.prototype, "formEnctype", 2);
216
+ o([
217
+ i({ attribute: "formmethod" })
218
+ ], e.prototype, "formMethod", 2);
219
+ o([
220
+ i({ attribute: "formnovalidate", type: Boolean })
221
+ ], e.prototype, "formNoValidate", 2);
222
+ o([
223
+ i({ attribute: "formtarget" })
224
+ ], e.prototype, "formTarget", 2);
225
+ o([
226
+ x("disabled", { waitUntilFirstUpdate: !0 })
227
+ ], e.prototype, "handleDisabledChange", 1);
228
+ var b = e;
229
+ e.define("sl-button");
230
+ var V = Object.defineProperty, z = Object.getOwnPropertyDescriptor, p = (t, r, l, a) => {
231
+ for (var s = a > 1 ? void 0 : a ? z(r, l) : r, u = t.length - 1, d; u >= 0; u--)
232
+ (d = t[u]) && (s = (a ? d(r, l, s) : d(s)) || s);
233
+ return a && s && V(r, l, s), s;
234
234
  };
235
- let n = class extends b {
235
+ let h = class extends b {
236
236
  constructor() {
237
237
  super(), this.size = "large", this.testId = void 0;
238
238
  }
239
+ // setter has-icon-only attributtet hvis det er kun ikone i standard sporet. Trengs for riktig styling.
240
+ firstUpdated() {
241
+ var r;
242
+ const t = (r = this.shadowRoot) == null ? void 0 : r.querySelector(".button__label");
243
+ if (t) {
244
+ const l = t.assignedNodes();
245
+ l.length === 1 && l[0].nodeName.toLowerCase() === "nve-icon" && this.setAttribute("has-icon-only", "");
246
+ }
247
+ }
248
+ // Hvis man har kun ikone i standard sporet og bruker loading attributtet, fjerner vi ikonet.
249
+ updated(t) {
250
+ var r;
251
+ if (super.updated(t), t.has("loading") && this.loading && this.hasAttribute("has-icon-only")) {
252
+ const l = (r = this.shadowRoot) == null ? void 0 : r.querySelector(".button__label");
253
+ if (l) {
254
+ const s = l.assignedNodes().find((u) => u.nodeName.toLowerCase() === "nve-icon");
255
+ s && s.parentNode && s.parentNode.removeChild(s);
256
+ }
257
+ }
258
+ }
239
259
  };
240
- n.styles = [b.styles, z];
241
- d([
242
- r({ reflect: !0 })
243
- ], n.prototype, "size", 2);
244
- d([
245
- r({ reflect: !0, type: String })
246
- ], n.prototype, "testId", 2);
247
- n = d([
260
+ h.styles = [b.styles, N];
261
+ p([
262
+ i({ reflect: !0 })
263
+ ], h.prototype, "size", 2);
264
+ p([
265
+ i({ reflect: !0, type: String })
266
+ ], h.prototype, "testId", 2);
267
+ h = p([
248
268
  y("nve-button")
249
- ], n);
269
+ ], h);
250
270
  export {
251
- n as default
271
+ h as default
252
272
  };
@@ -1,7 +1,11 @@
1
1
  import { i as t } from "../../chunks/lit-element.js";
2
- const n = t`
2
+ const a = t`
3
3
  /* kan ikke bruke gap fordi den lager rom mellom slots selv om de er tomme */
4
4
  /* derfor setter margin på ::part(label) og substraherer margin verdi i horizontal padding i selve .button klassen */
5
+ :host {
6
+ --nve-icon-color: inherit;
7
+ }
8
+
5
9
  .button {
6
10
  width: fit-content;
7
11
  align-items: center;
@@ -12,6 +16,30 @@ const n = t`
12
16
  transition: background-color 0.3s ease;
13
17
  }
14
18
 
19
+ :host([has-icon-only])::part(base) {
20
+ gap: unset;
21
+ }
22
+
23
+ :host([has-icon-only]) .button--small {
24
+ gap: unset;
25
+ padding: var(--spacing-xx-small);
26
+ min-width: unset;
27
+ }
28
+
29
+ :host([has-icon-only]) .button--medium {
30
+ gap: unset;
31
+ padding: var(--spacing-x-small);
32
+ min-width: unset;
33
+ }
34
+
35
+ :host([has-icon-only][circle])::part(base) {
36
+ width: unset;
37
+ }
38
+
39
+ :host([has-icon-only][loading])::part(spinner) {
40
+ margin-right: 0;
41
+ }
42
+
15
43
  .button ::slotted(nve-badge) {
16
44
  position: absolute;
17
45
  top: 0;
@@ -25,16 +53,14 @@ const n = t`
25
53
  --track-width: 2.5px;
26
54
  position: relative;
27
55
  top: 0;
56
+ font-size: 24px;
28
57
  left: 0;
29
58
  margin-right: var(--spacing-x-small);
30
59
  }
31
60
 
32
61
  :host ::slotted(nve-icon) {
33
62
  font-size: 24px;
34
- }
35
-
36
- :host([size='small']) ::slotted(nve-icon) {
37
- font-size: 20px;
63
+ color: var(--nve-icon-color);
38
64
  }
39
65
 
40
66
  :host::part(label) {
@@ -141,6 +167,12 @@ const n = t`
141
167
  border-radius: var(--border-radius-small, 4px);
142
168
  border: none;
143
169
  }
170
+
171
+ :host([variant='text'][circle]) .button.button--standard,
172
+ :host([variant='ghost'][circle]) .button.button--standard {
173
+ border-radius: 50%;
174
+ }
175
+
144
176
  :host([variant='text']) .button.button--standard:hover:not(.button--disabled),
145
177
  :host([variant='ghost']) .button.button--standard:hover:not(.button--disabled) {
146
178
  background-color: var(--interactive-ghost-background-hover);
@@ -175,5 +207,5 @@ const n = t`
175
207
  }
176
208
  `;
177
209
  export {
178
- n as default
210
+ a as default
179
211
  };
@@ -57,6 +57,8 @@ export default class NveStep extends LitElement {
57
57
  private renderDivider;
58
58
  private renderDescription;
59
59
  private isDescriptionValid;
60
+ /** Brukes for beregning av riktig høyde før divider. Description elementet har padding, så høyden før divider var for kort, så bruk denne funksjonen for regner ut riktig høyde. */
61
+ private updateVerticalDividerHeight;
60
62
  private renderVerticalStep;
61
63
  render(): TemplateResult;
62
64
  }
@@ -1,13 +1,13 @@
1
- import { s as p, x as n } from "../../../chunks/lit-element.js";
2
- import { n as s, t as h } from "../../../chunks/property.js";
1
+ import { s as h, x as c } from "../../../chunks/lit-element.js";
2
+ import { n as s, t as p } from "../../../chunks/property.js";
3
3
  import { e as v } from "../../../chunks/query.js";
4
4
  import u from "./nve-step.styles.js";
5
- var f = Object.defineProperty, y = Object.getOwnPropertyDescriptor, i = (t, r, c, a) => {
6
- for (var o = a > 1 ? void 0 : a ? y(r, c) : r, l = t.length - 1, d; l >= 0; l--)
7
- (d = t[l]) && (o = (a ? d(r, c, o) : d(o)) || o);
8
- return a && o && f(r, c, o), o;
9
- }, g = /* @__PURE__ */ ((t) => (t[t.NotStarted = 0] = "NotStarted", t[t.Started = 1] = "Started", t[t.Active = 2] = "Active", t[t.Done = 3] = "Done", t[t.Error = 4] = "Error", t))(g || {});
10
- let e = class extends p {
5
+ var f = Object.defineProperty, g = Object.getOwnPropertyDescriptor, r = (t, e, a, n) => {
6
+ for (var o = n > 1 ? void 0 : n ? g(e, a) : e, l = t.length - 1, d; l >= 0; l--)
7
+ (d = t[l]) && (o = (n ? d(e, a, o) : d(o)) || o);
8
+ return n && o && f(e, a, o), o;
9
+ }, y = /* @__PURE__ */ ((t) => (t[t.NotStarted = 0] = "NotStarted", t[t.Started = 1] = "Started", t[t.Active = 2] = "Active", t[t.Done = 3] = "Done", t[t.Error = 4] = "Error", t))(y || {});
10
+ let i = class extends h {
11
11
  constructor() {
12
12
  super(...arguments), this.title = "", this.index = 0, this.description = "", this.state = 0, this.selectedStepIndex = 0, this.isSelected = !1, this.isLast = !1, this.entranceAllowed = !1, this.orientation = "horizontal";
13
13
  }
@@ -17,34 +17,34 @@ let e = class extends p {
17
17
  }
18
18
  /** Metode som kjøres hver gang komponentens oppdateres */
19
19
  updated() {
20
- this.style.setProperty("line-color", this.isLast ? "0" : "1");
20
+ this.isOrientationVertical() && this.updateVerticalDividerHeight(), this.style.setProperty("line-color", this.isLast ? "0" : "1");
21
21
  }
22
22
  isOrientationVertical() {
23
23
  return this.orientation === "vertical";
24
24
  }
25
25
  iconForState(t) {
26
- let r = "";
26
+ let e = "";
27
27
  switch (t) {
28
28
  case 0:
29
- r = "circle";
29
+ e = "circle";
30
30
  break;
31
31
  case 2:
32
- r = "radio_button_checked";
32
+ e = "radio_button_checked";
33
33
  break;
34
34
  case 1:
35
- r = "trip_origin";
35
+ e = "trip_origin";
36
36
  break;
37
37
  case 3:
38
- r = "check_circle";
38
+ e = "check_circle";
39
39
  break;
40
40
  case 4:
41
- r = "error";
41
+ e = "error";
42
42
  break;
43
43
  default:
44
- r = "check_circle";
44
+ e = "check_circle";
45
45
  break;
46
46
  }
47
- return r;
47
+ return e;
48
48
  }
49
49
  getStateText(t) {
50
50
  switch (t) {
@@ -103,7 +103,7 @@ let e = class extends p {
103
103
  }
104
104
  renderDivider() {
105
105
  const t = this.isOrientationVertical() ? "divider-vertical" : "divider-horizontal";
106
- return this.isLast ? "" : n`
106
+ return this.isLast ? "" : c`
107
107
  <div class="vertical-divider-container">
108
108
  <div
109
109
  class="${t} ${this.getDividerColorClass()}"
@@ -111,13 +111,18 @@ let e = class extends p {
111
111
  </div>`;
112
112
  }
113
113
  renderDescription() {
114
- return this.isDescriptionValid(this.description) ? n`<div class="step-description ${this.orientation === "vertical" ? "step-description-max-width-vertical" : "step-description-max-width-horizontal"}">${this.description}</div>` : "";
114
+ return this.isDescriptionValid(this.description) ? c`<div class="step-description ${this.orientation === "vertical" ? "step-description-max-width-vertical" : "step-description-max-width-horizontal"}">${this.description}</div>` : "";
115
115
  }
116
116
  isDescriptionValid(t) {
117
117
  return t.trim().length > 0;
118
118
  }
119
+ /** Brukes for beregning av riktig høyde før divider. Description elementet har padding, så høyden før divider var for kort, så bruk denne funksjonen for regner ut riktig høyde. */
120
+ updateVerticalDividerHeight() {
121
+ const e = this.descriptionElement.offsetHeight + 24, a = this.shadowRoot.querySelector(".vertical-divider-container .divider-vertical");
122
+ a && (a.style.height = `${e}px`);
123
+ }
119
124
  renderVerticalStep() {
120
- return n`
125
+ return c`
121
126
  <div class="vertical-container">
122
127
  <div class="step-figure-vertical">
123
128
  <div
@@ -140,7 +145,7 @@ let e = class extends p {
140
145
  `;
141
146
  }
142
147
  render() {
143
- return this.isOrientationVertical() ? this.renderVerticalStep() : n`
148
+ return this.isOrientationVertical() ? this.renderVerticalStep() : c`
144
149
  <div class="step-figure">
145
150
  <span
146
151
  class=" ${this.getIconClass(this.state)}"
@@ -159,41 +164,41 @@ let e = class extends p {
159
164
  `;
160
165
  }
161
166
  };
162
- e.styles = [u];
163
- i([
167
+ i.styles = [u];
168
+ r([
164
169
  s({ reflect: !0 })
165
- ], e.prototype, "title", 2);
166
- i([
170
+ ], i.prototype, "title", 2);
171
+ r([
167
172
  s({ type: Number })
168
- ], e.prototype, "index", 2);
169
- i([
173
+ ], i.prototype, "index", 2);
174
+ r([
170
175
  s({ type: String })
171
- ], e.prototype, "description", 2);
172
- i([
176
+ ], i.prototype, "description", 2);
177
+ r([
173
178
  s({ type: Number })
174
- ], e.prototype, "state", 2);
175
- i([
179
+ ], i.prototype, "state", 2);
180
+ r([
176
181
  s({ type: Number })
177
- ], e.prototype, "selectedStepIndex", 2);
178
- i([
182
+ ], i.prototype, "selectedStepIndex", 2);
183
+ r([
179
184
  s({ type: Boolean, reflect: !0 })
180
- ], e.prototype, "isSelected", 2);
181
- i([
185
+ ], i.prototype, "isSelected", 2);
186
+ r([
182
187
  s({ type: Boolean })
183
- ], e.prototype, "isLast", 2);
184
- i([
188
+ ], i.prototype, "isLast", 2);
189
+ r([
185
190
  s({ type: Boolean })
186
- ], e.prototype, "entranceAllowed", 2);
187
- i([
191
+ ], i.prototype, "entranceAllowed", 2);
192
+ r([
188
193
  s()
189
- ], e.prototype, "orientation", 2);
190
- i([
194
+ ], i.prototype, "orientation", 2);
195
+ r([
191
196
  v(".step-description")
192
- ], e.prototype, "descriptionElement", 2);
193
- e = i([
194
- h("nve-step")
195
- ], e);
197
+ ], i.prototype, "descriptionElement", 2);
198
+ i = r([
199
+ p("nve-step")
200
+ ], i);
196
201
  export {
197
- g as StepState,
198
- e as default
202
+ y as StepState,
203
+ i as default
199
204
  };