nve-designsystem 0.1.73 → 0.1.74

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.
@@ -43,6 +43,8 @@ export default class NveStep extends LitElement {
43
43
  disableClick: boolean;
44
44
  /** Retningen stegene skal gå i: horisontal eller vertikal */
45
45
  orientation: 'horizontal' | 'vertical';
46
+ /** Brukes for å justere høyden for den vertikale skilleveggen blir så høy som nær Step har en description. */
47
+ descriptionElement: HTMLElement;
46
48
  /** Metode som kjøres første gang komponenten er lagt til i DOM */
47
49
  firstUpdated(): void;
48
50
  /** Metode som kjøres hver gang komponentens oppdateres */
@@ -82,6 +84,8 @@ export default class NveStep extends LitElement {
82
84
  getDividerColorClass(): string;
83
85
  /** Håndterer klikk på steget */
84
86
  onClick(): void;
87
+ /** 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. */
88
+ updateVerticalDividerHeight(): void;
85
89
  /** Render divideren mellom stegene */
86
90
  renderDivider(): TemplateResult | string;
87
91
  /** Render beskrivelsen av steget */
@@ -1,11 +1,12 @@
1
- import { s as h, x as o } from "../../../chunks/lit-element.js";
1
+ import { s as h, x as c } from "../../../chunks/lit-element.js";
2
2
  import { n as r, t as p } from "../../../chunks/property.js";
3
- import v from "./nve-step.styles.js";
4
- var u = Object.defineProperty, f = Object.getOwnPropertyDescriptor, s = (t, i, c, l) => {
5
- for (var a = l > 1 ? void 0 : l ? f(i, c) : i, n = t.length - 1, d; n >= 0; n--)
6
- (d = t[n]) && (a = (l ? d(i, c, a) : d(a)) || a);
7
- return l && a && u(i, c, a), a;
8
- }, C = /* @__PURE__ */ ((t) => (t[t.NotStarted = 0] = "NotStarted", t[t.Started = 1] = "Started", t[t.Done = 2] = "Done", t[t.Error = 3] = "Error", t))(C || {});
3
+ import { e as v } from "../../../chunks/query.js";
4
+ import u from "./nve-step.styles.js";
5
+ var f = Object.defineProperty, C = Object.getOwnPropertyDescriptor, s = (t, i, o, l) => {
6
+ for (var a = l > 1 ? void 0 : l ? C(i, o) : i, n = t.length - 1, d; n >= 0; n--)
7
+ (d = t[n]) && (a = (l ? d(i, o, a) : d(a)) || a);
8
+ return l && a && f(i, o, a), a;
9
+ }, y = /* @__PURE__ */ ((t) => (t[t.NotStarted = 0] = "NotStarted", t[t.Started = 1] = "Started", t[t.Done = 2] = "Done", t[t.Error = 3] = "Error", t))(y || {});
9
10
  let e = class extends h {
10
11
  constructor() {
11
12
  super(...arguments), this.title = "", this.spaceBetweenSteps = 200, this.index = 0, this.description = "", this.state = 0, this.selectedStepIndex = 0, this.isSelected = !1, this.isLast = !1, this.entranceAllowed = !1, this.disableClick = !1, this.orientation = "horizontal";
@@ -16,7 +17,7 @@ let e = class extends h {
16
17
  }
17
18
  /** Metode som kjøres hver gang komponentens oppdateres */
18
19
  updated() {
19
- this.style.setProperty("line-color", this.isLast ? "0" : "1");
20
+ this.isOrientationVertical() && this.updateVerticalDividerHeight(), this.style.setProperty("line-color", this.isLast ? "0" : "1");
20
21
  }
21
22
  /** Sjekker om orienteringen er vertikal */
22
23
  isOrientationVertical() {
@@ -125,10 +126,15 @@ let e = class extends h {
125
126
  onClick() {
126
127
  this.disableClick || this.dispatchEvent(new CustomEvent("clicked", { detail: { index: this.index } }));
127
128
  }
129
+ /** 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. */
130
+ updateVerticalDividerHeight() {
131
+ const i = this.descriptionElement.offsetHeight + 24, o = this.shadowRoot.querySelector(".vertical-divider-container .divider-vertical");
132
+ o && (o.style.height = `${i}px`);
133
+ }
128
134
  /** Render divideren mellom stegene */
129
135
  renderDivider() {
130
136
  const t = this.isOrientationVertical() ? "divider-vertical" : "divider-horizontal";
131
- return this.isLast ? "" : o`
137
+ return this.isLast ? "" : c`
132
138
  <div class="vertical-divider-container">
133
139
  <div
134
140
  style="${this.isOrientationVertical() ? `height:${this.spaceBetweenSteps}px` : `min-width:${this.spaceBetweenSteps}px`}"
@@ -138,11 +144,11 @@ let e = class extends h {
138
144
  }
139
145
  /** Render beskrivelsen av steget */
140
146
  renderDescription() {
141
- return this.description ? o`<div class="step-description">${this.description}</div>` : "";
147
+ return this.description ? c`<div class="step-description ${this.orientation === "vertical" ? "step-description-max-width-vertical" : "step-description-max-width-horizontal"}">${this.description}</div>` : "";
142
148
  }
143
149
  /** Render vertikalt steg */
144
150
  renderVerticalStep() {
145
- return o`
151
+ return c`
146
152
  <div class="vertical-container">
147
153
  <div class="step-figure-vertical">
148
154
  <div
@@ -157,15 +163,17 @@ let e = class extends h {
157
163
  <div class="step-title step-title-vertical ${this.getTitleClass(this.state)}">${this.title}</div>
158
164
  <div class="step-state ${this.getStateColorClass(this.state)}">
159
165
  ${this.getStateText(this.state)}
160
- </div>
166
+ </div>
167
+ <div>
161
168
  ${this.renderDescription()}
169
+ </div>
162
170
  </div>
163
171
  </div>
164
172
  `;
165
173
  }
166
174
  /** Render metoden for komponenten */
167
175
  render() {
168
- return this.isOrientationVertical() ? this.renderVerticalStep() : o`
176
+ return this.isOrientationVertical() ? this.renderVerticalStep() : c`
169
177
  <div class="step-figure">
170
178
  <span
171
179
  @click="${this.onClick}"
@@ -185,7 +193,7 @@ let e = class extends h {
185
193
  `;
186
194
  }
187
195
  };
188
- e.styles = [v];
196
+ e.styles = [u];
189
197
  s([
190
198
  r({ reflect: !0 })
191
199
  ], e.prototype, "title", 2);
@@ -219,10 +227,13 @@ s([
219
227
  s([
220
228
  r()
221
229
  ], e.prototype, "orientation", 2);
230
+ s([
231
+ v(".step-description")
232
+ ], e.prototype, "descriptionElement", 2);
222
233
  e = s([
223
234
  p("nve-step")
224
235
  ], e);
225
236
  export {
226
- C as StepState,
237
+ y as StepState,
227
238
  e as default
228
239
  };
@@ -1,148 +1,171 @@
1
1
  import { i as e } from "../../../chunks/lit-element.js";
2
- const o = e`
2
+ const r = e`
3
3
  :host {
4
- flex-grow: var(--flex-grow, 1);
5
- }
6
-
7
- .step-figure {
8
- position: relative;
9
- display: flex;
10
- align-items: center;
11
- font-size: 2rem;
12
- }
13
-
14
- .filled-icon {
15
- font-variation-settings:
16
- 'FILL' 1,
17
- 'wght' 300,
18
- 'GRAD' 1,
19
- 'opsz' 48 !important;
20
- }
21
-
22
- .clickable {
23
- cursor: pointer;
24
- }
25
-
26
- .disable-click {
27
- cursor: default;
28
- }
29
-
30
- .divider-horizontal {
31
- height: 2px;
32
- flex-grow: 1;
33
- }
34
-
35
- .text-container {
36
- padding-right: 1.5rem; /*24px; */
37
- }
38
-
39
- .step-title {
40
- color: var(--neutrals-foreground-primary, #0D0D0E);
41
-
42
- /* Label/medium */
43
- font-family: "Source Sans Pro";
44
- font-size: 1.125rem; /*18px; */
45
- font-style: normal;
46
- font-weight: 600;
47
- line-height: 110%;
48
- padding-top: 0.75rem; /*12px;*/
49
- }
50
-
51
- .step-state {
52
- /* Label/x-small-light */
53
- font-family: "Source Sans Pro";
54
- font-size: 0.875rem;/*14px;*/
55
- font-style: normal;
56
- font-weight: 400;
57
- line-height: 110%;
58
- padding-top: 0.25rem; /*4px;*/
59
-
60
- }
61
-
62
- .step-description {
63
- color: var(--neutrals-foreground-primary, #0D0D0E);
64
-
65
- /* Label/small-light */
66
- font-family: "Source Sans Pro";
67
- font-size: 1rem; /*16px; */
68
- font-style: normal;
69
- font-weight: 400;
70
- line-height: 110%;
71
- padding-top: 0.625rem; /*10px; */
72
- }
73
-
74
-
75
- .divider-not-reached-color {
76
- /* TODO the token --neutrals-background-secondary gives wrong color #c8eaf9 instead of #E4E5E7
77
- color:var(--neutrals-background-secondary, #E4E5E7); */
78
- background:#E4E5E7;
79
- }
80
-
81
- .divider-reached-color {
82
- background: var(--neutrals-foreground-primary, #0D0D0E);
83
- }
84
-
85
- .state-not-started-icon-color {
86
- /* TODO the token --neutrals-background-secondary gives wrong color #c8eaf9 instead of #E4E5E7
87
- color:var(--neutrals-background-secondary, #E4E5E7); */
88
- color:#E4E5E7;
89
- }
90
-
91
- .state-not-started-color {
92
- color: var(--neutrals-foreground-subtle, #60656C);
93
- }
94
-
95
- .state-started-color {
96
- color: var(--feedback-background-emphasized-info, #1E6FDC);
97
- }
98
-
99
- .state-done-color {
100
- /* TODO the token feeedback is misspelled, should be feedback but --feedback-foreground-emphasized-success gives color */
101
- color: var(--feeedback-foreground-emphasized-success, #00814B);
102
- }
103
-
104
- .state-error-color {
105
- color: var(--feedback-background-emphasized-error, #CC0000);
106
- }
107
-
108
- .vertical-container {
109
- display: flex;
110
- align-items: flex-start;
111
- }
112
-
113
- .divider-horizontal {
114
- height: 2px;
115
- flex-grow: 1;
116
- }
117
-
118
- .divider-vertical {
119
- width: 2px;
120
- align-self: stretch;
121
- }
122
-
123
- .step-figure-vertical {
124
- display: flex;
125
- font-size: 2rem;
126
- flex-direction: column;
127
- }
128
-
129
- .vertical-divider-container {
130
- display: flex;
131
- justify-content: center;
132
- padding-top: 1.5px;
133
- }
4
+ flex-grow: var(--flex-grow, 1);
5
+ }
6
+
7
+ .step-figure {
8
+ position: relative;
9
+ display: flex;
10
+ align-items: center;
11
+ font-size: 2rem;
12
+ width: 100%;
13
+ }
14
+
15
+ .filled-icon {
16
+ font-variation-settings:
17
+ 'FILL' 1,
18
+ 'wght' 300,
19
+ 'GRAD' 1,
20
+ 'opsz' 48 !important;
21
+ }
22
+
23
+ .clickable {
24
+ cursor: pointer;
25
+ }
26
+
27
+ .disable-click {
28
+ cursor: default;
29
+ }
30
+
31
+ .divider-horizontal {
32
+ height: 2px;
33
+ flex-grow: 1;
34
+ width: 100%;
35
+ }
36
+
37
+ .text-container {
38
+ padding-right: 1.5rem; /*24px; */
39
+ width: 100%;
40
+ }
41
+
42
+ .step-title {
43
+ color: var(--neutrals-foreground-primary, #0D0D0E);
44
+
45
+ /* Label/medium */
46
+ font-family: "Source Sans Pro";
47
+ font-size: 1.125rem; /*18px; */
48
+ font-style: normal;
49
+ font-weight: 600;
50
+ line-height: 110%;
51
+ padding-top: 0.75rem; /*12px;*/
52
+ }
53
+
54
+ .step-state {
55
+ /* Label/x-small-light */
56
+ font-family: "Source Sans Pro";
57
+ font-size: 0.875rem;/*14px;*/
58
+ font-style: normal;
59
+ font-weight: 400;
60
+ line-height: 110%;
61
+ padding-top: 0.25rem; /*4px;*/
62
+
63
+ }
64
+
65
+ .step-description {
66
+ color: var(--neutrals-foreground-primary, #0D0D0E);
134
67
 
135
- .text-container-vertical {
136
- padding-left: 1.5rem; /*24px; */
137
- justify-content: center;
138
- }
68
+ /* Label/small-light */
69
+ font-family: "Source Sans Pro";
70
+ font-size: 1rem; /*16px; */
71
+ font-style: normal;
72
+ font-weight: 400;
73
+ line-height: 110%;
74
+ padding-top: 0.625rem; /*10px; */
75
+ }
76
+
77
+ .step-description-max-width-vertical {
78
+ max-width:430px;
79
+ padding-bottom: var(--spacing-large, 1.5rem);
80
+ }
81
+
82
+ .step-description-max-width-horizontal {
83
+ max-width:150px;
84
+ }
85
+
86
+ .divider-not-reached-color {
87
+ /* TODO the token --neutrals-background-secondary gives wrong color #c8eaf9 instead of #E4E5E7
88
+ color:var(--neutrals-background-secondary, #E4E5E7); */
89
+ background:#E4E5E7;
90
+ }
91
+
92
+ .divider-reached-color {
93
+ background: var(--neutrals-foreground-primary, #0D0D0E);
94
+ }
95
+
96
+ .state-not-started-icon-color {
97
+ /* TODO the token --neutrals-background-secondary gives wrong color #c8eaf9 instead of #E4E5E7
98
+ color:var(--neutrals-background-secondary, #E4E5E7); */
99
+ color:#E4E5E7;
100
+ }
101
+
102
+ .state-not-started-color {
103
+ color: var(--neutrals-foreground-subtle, #60656C);
104
+ }
105
+
106
+ .state-started-color {
107
+ color: var(--feedback-background-emphasized-info, #1E6FDC);
108
+ }
109
+
110
+ .state-done-color {
111
+ /* TODO the token feeedback is misspelled, should be feedback but --feedback-foreground-emphasized-success gives color */
112
+ color: var(--feeedback-foreground-emphasized-success, #00814B);
113
+ }
114
+
115
+ .state-error-color {
116
+ color: var(--feedback-background-emphasized-error, #CC0000);
117
+ }
118
+
119
+ .vertical-container {
120
+ display: flex;
121
+ align-items: flex-start;
122
+ width: 100%;
123
+ }
124
+
125
+ .divider-horizontal {
126
+ height: 2px;
127
+ flex-grow: 1;
128
+ width: 100%;
129
+ }
130
+
131
+ .divider-vertical {
132
+ width: 2px;
133
+ flex-grow: 1;
134
+ width: 100%;
135
+ }
136
+
137
+ .step-figure-vertical {
138
+ display: flex;
139
+ font-size: 2rem;
140
+ flex-direction: column;
141
+ align-items: center;
142
+ width: 100%;
143
+ flex:1;
144
+ }
145
+
146
+ .vertical-divider-container {
147
+ display: flex;
148
+ justify-content: center;
149
+ flex-grow: 1;
150
+ height: 100%;
151
+ width: 2px;
152
+ padding-top:1px;
153
+ }
154
+
155
+ .text-container-vertical {
156
+ padding-left: 8px;
157
+ justify-content: center;
158
+ display: flex;
159
+ flex-direction: column;
160
+ flex:10;
161
+ }
139
162
 
140
- .step-title-vertical {
141
- padding-top: 0;
142
- align-self: flex-start;
163
+ .step-title-vertical {
164
+ padding-top: 0;
165
+ align-self: flex-start;
143
166
  }
144
167
 
145
168
  `;
146
169
  export {
147
- o as default
170
+ r as default
148
171
  };
@@ -1,7 +1,7 @@
1
1
  import { CSSResultArray, LitElement, TemplateResult } from 'lit';
2
2
  import { StepProps } from './nve-step/nve-step.component';
3
3
  /** Interface for stepper-komponenten */
4
- export interface INveStepper extends HTMLElement {
4
+ export interface INveStepper {
5
5
  /** Går til neste steg */
6
6
  nextStep?(): void;
7
7
  /** Går til forrige steg */
@@ -1,7 +1,7 @@
1
1
  import { s as c, x as p } from "../../chunks/lit-element.js";
2
- import { n, t as S } from "../../chunks/property.js";
2
+ import { n, t as u } from "../../chunks/property.js";
3
3
  import { StepState as a } from "./nve-step/nve-step.component.js";
4
- import u from "./nve-stepper.styles.js";
4
+ import S from "./nve-stepper.styles.js";
5
5
  import "./nve-stepper-mobile.component.js";
6
6
  var v = Object.defineProperty, f = Object.getOwnPropertyDescriptor, i = (e, t, d, o) => {
7
7
  for (var r = o > 1 ? void 0 : o ? f(t, d) : t, l = e.length - 1, h; l >= 0; l--)
@@ -135,7 +135,7 @@ let s = class extends c {
135
135
  ` : p`
136
136
  <div class="stepper ${this.orientation}">
137
137
  ${this.isOrientationVertical() ? "" : this.renderBackButton()}
138
- <div class="steps-container ${this.orientation}">
138
+ <div class="steps-container ${this.orientation} ${this.hideStepButtons ? "" : "steps-container-with-buttons"}">
139
139
  ${this.steps.map(
140
140
  (e, t) => p`
141
141
  <nve-step
@@ -162,7 +162,7 @@ let s = class extends c {
162
162
  `;
163
163
  }
164
164
  };
165
- s.styles = [u];
165
+ s.styles = [S];
166
166
  i([
167
167
  n()
168
168
  ], s.prototype, "orientation", 2);
@@ -191,7 +191,7 @@ i([
191
191
  n({ type: Boolean })
192
192
  ], s.prototype, "displayMobileVersion", 2);
193
193
  s = i([
194
- S("nve-stepper")
194
+ u("nve-stepper")
195
195
  ], s);
196
196
  export {
197
197
  s as default
@@ -33,9 +33,10 @@ const n = e`
33
33
  .vertical-btn-container {
34
34
  display: flex;
35
35
  width: 100%;
36
- padding: 20px 60px 20px 60px;
36
+ padding: 20px 60px;
37
37
  justify-content: space-between;
38
38
  box-sizing: border-box;
39
+ max-width: 600px;
39
40
  }
40
41
 
41
42
  .vertical {
@@ -44,11 +45,12 @@ const n = e`
44
45
 
45
46
  .steps-container {
46
47
  display: flex;
47
- padding: 20px 60px 20px 60px;
48
48
  flex-grow: 1;
49
49
  }
50
50
 
51
-
51
+ .steps-container-with-buttons {
52
+ padding: 20px 60px;
53
+ }
52
54
 
53
55
  `;
54
56
  export {
@@ -343,6 +343,77 @@
343
343
  }
344
344
  ]
345
345
  },
346
+ {
347
+ "kind": "javascript-module",
348
+ "path": "components/nve-badge/nve-badge.js",
349
+ "declarations": [
350
+ {
351
+ "kind": "class",
352
+ "description": "En liten etikett som vanligvis vises inne i eller i nærheten av en annen større grensesnittkomponent, som representerer en status, egenskap eller andre metadata.",
353
+ "name": "NveBadge",
354
+ "members": [
355
+ {
356
+ "kind": "field",
357
+ "name": "styles",
358
+ "type": {
359
+ "text": "array"
360
+ },
361
+ "static": true,
362
+ "default": "[styles]"
363
+ },
364
+ {
365
+ "kind": "field",
366
+ "name": "variant",
367
+ "type": {
368
+ "text": "string"
369
+ },
370
+ "default": "'primary'",
371
+ "description": "= primary, success, neutral, warning, danger, brand"
372
+ },
373
+ {
374
+ "kind": "field",
375
+ "name": "size",
376
+ "type": {
377
+ "text": "string"
378
+ },
379
+ "default": "'medium'",
380
+ "description": "= small, medium eller large"
381
+ },
382
+ {
383
+ "kind": "field",
384
+ "name": "low",
385
+ "type": {
386
+ "text": "boolean"
387
+ },
388
+ "default": "false",
389
+ "description": "= gir lysere bakgrunnsfarge"
390
+ },
391
+ {
392
+ "kind": "method",
393
+ "name": "render"
394
+ }
395
+ ],
396
+ "superclass": {
397
+ "name": "LitElement",
398
+ "package": "lit"
399
+ },
400
+ "tagNameWithoutPrefix": "badge",
401
+ "tagName": "nve-badge",
402
+ "customElement": true,
403
+ "jsDoc": "/**\n * En liten etikett som vanligvis vises inne i eller i nærheten av en annen større grensesnittkomponent, som representerer en status, egenskap eller andre metadata.\n * @property {string} size = small, medium eller large\n * @property {string} variant = primary, success, neutral, warning, danger, brand\n * @property {boolean} low = gir lysere bakgrunnsfarge\n */"
404
+ }
405
+ ],
406
+ "exports": [
407
+ {
408
+ "kind": "js",
409
+ "name": "default",
410
+ "declaration": {
411
+ "name": "NveBadge",
412
+ "module": "components/nve-badge/nve-badge.js"
413
+ }
414
+ }
415
+ ]
416
+ },
346
417
  {
347
418
  "kind": "javascript-module",
348
419
  "path": "components/nve-button/nve-button.js",
@@ -1159,77 +1230,6 @@
1159
1230
  }
1160
1231
  ]
1161
1232
  },
1162
- {
1163
- "kind": "javascript-module",
1164
- "path": "components/nve-badge/nve-badge.js",
1165
- "declarations": [
1166
- {
1167
- "kind": "class",
1168
- "description": "En liten etikett som vanligvis vises inne i eller i nærheten av en annen større grensesnittkomponent, som representerer en status, egenskap eller andre metadata.",
1169
- "name": "NveBadge",
1170
- "members": [
1171
- {
1172
- "kind": "field",
1173
- "name": "styles",
1174
- "type": {
1175
- "text": "array"
1176
- },
1177
- "static": true,
1178
- "default": "[styles]"
1179
- },
1180
- {
1181
- "kind": "field",
1182
- "name": "variant",
1183
- "type": {
1184
- "text": "string"
1185
- },
1186
- "default": "'primary'",
1187
- "description": "= primary, success, neutral, warning, danger, brand"
1188
- },
1189
- {
1190
- "kind": "field",
1191
- "name": "size",
1192
- "type": {
1193
- "text": "string"
1194
- },
1195
- "default": "'medium'",
1196
- "description": "= small, medium eller large"
1197
- },
1198
- {
1199
- "kind": "field",
1200
- "name": "low",
1201
- "type": {
1202
- "text": "boolean"
1203
- },
1204
- "default": "false",
1205
- "description": "= gir lysere bakgrunnsfarge"
1206
- },
1207
- {
1208
- "kind": "method",
1209
- "name": "render"
1210
- }
1211
- ],
1212
- "superclass": {
1213
- "name": "LitElement",
1214
- "package": "lit"
1215
- },
1216
- "tagNameWithoutPrefix": "badge",
1217
- "tagName": "nve-badge",
1218
- "customElement": true,
1219
- "jsDoc": "/**\n * En liten etikett som vanligvis vises inne i eller i nærheten av en annen større grensesnittkomponent, som representerer en status, egenskap eller andre metadata.\n * @property {string} size = small, medium eller large\n * @property {string} variant = primary, success, neutral, warning, danger, brand\n * @property {boolean} low = gir lysere bakgrunnsfarge\n */"
1220
- }
1221
- ],
1222
- "exports": [
1223
- {
1224
- "kind": "js",
1225
- "name": "default",
1226
- "declaration": {
1227
- "name": "NveBadge",
1228
- "module": "components/nve-badge/nve-badge.js"
1229
- }
1230
- }
1231
- ]
1232
- },
1233
1233
  {
1234
1234
  "kind": "javascript-module",
1235
1235
  "path": "components/nve-checkbox/nve-checkbox.js",
@@ -9392,6 +9392,14 @@
9392
9392
  "default": "'horizontal'",
9393
9393
  "description": "Retningen stegene skal gå i: horisontal eller vertikal"
9394
9394
  },
9395
+ {
9396
+ "kind": "field",
9397
+ "name": "descriptionElement",
9398
+ "type": {
9399
+ "text": "HTMLElement"
9400
+ },
9401
+ "description": "Brukes for å justere høyden for den vertikale skilleveggen blir så høy som nær Step har en description."
9402
+ },
9395
9403
  {
9396
9404
  "kind": "method",
9397
9405
  "name": "firstUpdated",
@@ -9557,6 +9565,16 @@
9557
9565
  },
9558
9566
  "description": "Håndterer klikk på steget"
9559
9567
  },
9568
+ {
9569
+ "kind": "method",
9570
+ "name": "updateVerticalDividerHeight",
9571
+ "return": {
9572
+ "type": {
9573
+ "text": "void"
9574
+ }
9575
+ },
9576
+ "description": "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."
9577
+ },
9560
9578
  {
9561
9579
  "kind": "method",
9562
9580
  "name": "renderDivider",
@@ -9633,7 +9651,7 @@
9633
9651
  "package": {
9634
9652
  "name": "nve-designsystem",
9635
9653
  "description": "Designsystem for NVE",
9636
- "version": "0.1.72",
9654
+ "version": "0.1.73",
9637
9655
  "author": {
9638
9656
  "name": "NVE",
9639
9657
  "email": "nve@nve.no"
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "MIT",
9
9
  "homepage": "https://github.com/NVE/Designsystem/",
10
- "version": "0.1.73",
10
+ "version": "0.1.74",
11
11
  "customElements": "custom-elements.json",
12
12
  "exports": {
13
13
  ".": {