nve-designsystem 3.2.0 → 3.3.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.
- package/chunks/chunk.2PCBEMQZ.js +163 -226
- package/chunks/chunk.36O46B5H.js +15 -15
- package/chunks/chunk.4TUIT776.js +78 -96
- package/chunks/chunk.5JY5FUCG.js +965 -1245
- package/chunks/chunk.5P45LHIX.js +668 -96
- package/chunks/chunk.6CTB5ZDJ.js +107 -100
- package/chunks/chunk.B4BZKR24.js +29 -39
- package/chunks/chunk.D5YQDJ7X.js +122 -166
- package/chunks/chunk.EA437WHD.js +5 -5
- package/chunks/chunk.GI7VDIWX.js +14 -15
- package/chunks/chunk.GMYPQTFK.js +18 -20
- package/chunks/chunk.HVTXQL7M.js +191 -215
- package/chunks/chunk.IKV4VH3T.js +18 -16
- package/chunks/chunk.IVVHNXMC.js +26 -27
- package/chunks/chunk.JHOXTQXA.js +65 -74
- package/chunks/chunk.JXOKFADN.js +63 -90
- package/chunks/chunk.K7JGTRV7.js +24 -23
- package/chunks/chunk.KPLQLAWP.js +132 -147
- package/chunks/chunk.LD4M4QGE.js +61 -74
- package/chunks/chunk.MSKEYBDI.js +53 -71
- package/chunks/chunk.NYIIDP5N.js +39 -45
- package/chunks/chunk.RWUUFNUL.js +91 -114
- package/chunks/chunk.SAPQLUO4.js +249 -228
- package/chunks/chunk.SI4ACBFK.js +139 -5
- package/chunks/chunk.TP2GB2HO.js +361 -460
- package/chunks/chunk.UDWRA64J.js +185 -223
- package/chunks/chunk.URTPIBTY.js +119 -151
- package/chunks/chunk.VESXC477.js +63 -66
- package/chunks/chunk.XA43ZQPC.js +198 -313
- package/chunks/chunk.XQ2OKYYA.js +25 -26
- package/chunks/chunk.XZNBUGX7.js +6 -6
- package/chunks/chunk.YHLNUJ7P.js +93 -116
- package/chunks/chunk.ZH2AND3P.js +340 -399
- package/chunks/chunk.ZL53POKZ.js +61 -156
- package/chunks/chunk.js +20 -0
- package/chunks/class-map.js +49 -45
- package/chunks/decorate.js +105 -0
- package/chunks/directive-helpers.js +5 -7
- package/chunks/if-defined.js +5 -5
- package/chunks/lit.js +525 -0
- package/chunks/live.js +24 -24
- package/chunks/nve-alert.component.js +163 -0
- package/chunks/nve-carousel-item.component.js +36 -0
- package/chunks/nve-carousel.component.js +41 -0
- package/chunks/nve-checkbox-group.component.js +114 -0
- package/chunks/nve-checkbox.component.js +28 -0
- package/chunks/nve-dialog.component.js +39 -0
- package/chunks/nve-divider.component.js +23 -0
- package/chunks/nve-drawer.component.js +40 -0
- package/chunks/nve-dropdown.component.js +83 -0
- package/chunks/nve-input.component.js +80 -0
- package/chunks/nve-label.component.js +89 -0
- package/chunks/nve-menu-item.component.js +35 -0
- package/chunks/nve-menu.component.js +17 -0
- package/chunks/nve-option.component.js +27 -0
- package/chunks/nve-popup.component.js +15 -0
- package/chunks/nve-radio-button.component.js +20 -0
- package/chunks/nve-radio-group.component.js +78 -0
- package/chunks/nve-radio.component.js +18 -0
- package/chunks/nve-select.component.js +58 -0
- package/chunks/nve-skeleton.component.js +20 -0
- package/chunks/nve-spinner.component.js +23 -0
- package/chunks/nve-tooltip.component.js +20 -0
- package/chunks/nve-warning-level.component.js +57 -0
- package/chunks/ref.js +75 -84
- package/chunks/shoelace.js +10006 -0
- package/chunks/static-html.js +27 -0
- package/chunks/unsafe-html.js +24 -20
- package/chunks/updateInvalidProperty.js +7 -7
- package/chunks/watch.js +20 -20
- package/components/nve-accordion/nve-accordion.component.js +24 -30
- package/components/nve-accordion-item/nve-accordion-item.component.js +30 -64
- package/components/nve-accordion-item/nve-accordion-item.styles.js +5 -5
- package/components/nve-alert/nve-alert.component.js +2 -227
- package/components/nve-alert/nve-alert.styles.js +45 -27
- package/components/nve-badge/nve-badge.component.js +41 -45
- package/components/nve-badge/nve-badge.styles.js +33 -31
- package/components/nve-button/nve-button.component.d.ts +110 -10
- package/components/nve-button/nve-button.component.js +146 -39
- package/components/nve-button/nve-button.styles.js +214 -157
- package/components/nve-carousel/nve-carousel.component.js +2 -47
- package/components/nve-carousel/nve-carousel.styles.js +6 -6
- package/components/nve-carousel-item/nve-carousel-item.component.js +2 -40
- package/components/nve-carousel-item/nve-carousel-item.styles.js +5 -5
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +44 -54
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.styles.js +5 -5
- package/components/nve-checkbox/nve-checkbox.component.js +2 -34
- package/components/nve-checkbox/nve-checkbox.styles.js +7 -7
- package/components/nve-checkbox-group/nve-checkbox-group.component.js +2 -152
- package/components/nve-checkbox-group/nve-checkbox-group.styles.js +5 -5
- package/components/nve-combobox/nve-combobox.component.js +222 -440
- package/components/nve-combobox/nve-combobox.styles.js +6 -6
- package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +32 -38
- package/components/nve-dialog/nve-dialog-styles.js +6 -6
- package/components/nve-dialog/nve-dialog.component.js +2 -54
- package/components/nve-divider/nve-divider.component.js +2 -30
- package/components/nve-drawer/nve-drawer.component.js +2 -44
- package/components/nve-drawer/nve-drawer.styles.js +6 -6
- package/components/nve-dropdown/nve-dropdown.component.js +2 -79
- package/components/nve-dropdown/nve-dropdown.styles.js +5 -5
- package/components/nve-heading/nve-heading.component.d.ts +29 -0
- package/components/nve-heading/nve-heading.component.js +45 -0
- package/components/nve-heading/nve-heading.styles.d.ts +2 -0
- package/components/nve-heading/nve-heading.styles.js +41 -0
- package/components/nve-icon/nve-icon.component.js +145 -164
- package/components/nve-icon/nve-icon.styles.js +11 -6
- package/components/nve-icon/offline-icons.js +16 -13
- package/components/nve-input/nve-input.component.js +2 -100
- package/components/nve-input/nve-input.styles.js +5 -5
- package/components/nve-label/nve-label.component.js +2 -115
- package/components/nve-label/nve-label.styles.js +5 -5
- package/components/nve-link-card/nve-link-card.component.d.ts +5 -2
- package/components/nve-link-card/nve-link-card.component.js +44 -80
- package/components/nve-link-card/nve-link-card.styles.js +71 -66
- package/components/nve-menu/nve-menu.component.js +2 -22
- package/components/nve-menu/nve-menu.styles.js +5 -5
- package/components/nve-menu-item/nve-menu-item.component.js +2 -43
- package/components/nve-menu-item/nve-menu-item.styles.js +7 -7
- package/components/nve-message-card/nve-message-card.component.js +61 -91
- package/components/nve-message-card/nve-message-card.styles.js +24 -27
- package/components/nve-navigation-card/nve-navigation-card.component.d.ts +52 -0
- package/components/nve-navigation-card/nve-navigation-card.component.js +60 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.d.ts +2 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.js +112 -0
- package/components/nve-option/nve-option.component.js +2 -41
- package/components/nve-option/nve-option.styles.js +5 -5
- package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
- package/components/nve-paragraph/nve-paragraph.component.js +26 -0
- package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
- package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
- package/components/nve-popup/nve-popup.component.js +2 -22
- package/components/nve-radio/nve-radio.component.js +2 -23
- package/components/nve-radio/nve-radio.styles.js +5 -5
- package/components/nve-radio-button/nve-radio-button.component.js +2 -25
- package/components/nve-radio-button/nve-radio-button.styles.js +5 -5
- package/components/nve-radio-group/nve-radio-group.component.js +2 -119
- package/components/nve-radio-group/nve-radio-group.styles.js +5 -5
- package/components/nve-relative-time/nve-relative-time.component.js +21 -56
- package/components/nve-relative-time/nve-relative-time.styles.js +5 -5
- package/components/nve-select/nve-select.component.js +2 -80
- package/components/nve-select/nve-select.styles.js +5 -5
- package/components/nve-skeleton/nve-skeleton.component.js +2 -27
- package/components/nve-skeleton/nve-skeleton.styles.js +5 -5
- package/components/nve-spinner/nve-spinner.component.js +2 -31
- package/components/nve-stepper/nve-step/nve-step.component.js +113 -173
- package/components/nve-stepper/nve-step/nve-step.styles.js +12 -12
- package/components/nve-stepper/nve-stepper-mobile.component.js +37 -49
- package/components/nve-stepper/nve-stepper-mobile.styles.js +7 -7
- package/components/nve-stepper/nve-stepper.component.js +94 -139
- package/components/nve-stepper/nve-stepper.styles.js +5 -5
- package/components/nve-switch/nve-switch.component.js +75 -107
- package/components/nve-switch/nve-switch.styles.js +7 -7
- package/components/nve-tab/nve-tab.component.js +30 -42
- package/components/nve-tab/nve-tab.styles.js +7 -7
- package/components/nve-tab-group/nve-tab-group.component.js +180 -260
- package/components/nve-tab-group/nve-tab-group.styles.js +5 -5
- package/components/nve-tab-panel/nve-tab-panel.component.js +21 -31
- package/components/nve-tab-panel/nve-tab-panel.styles.js +5 -5
- package/components/nve-tag/nve-tag.component.d.ts +3 -3
- package/components/nve-tag/nve-tag.component.js +71 -72
- package/components/nve-tag/nve-tag.styles.js +23 -22
- package/components/nve-textarea/nve-textarea.component.d.ts +3 -1
- package/components/nve-textarea/nve-textarea.component.js +112 -173
- package/components/nve-textarea/nve-textarea.styles.js +10 -5
- package/components/nve-tooltip/nve-tooltip.component.js +2 -30
- package/components/nve-tooltip/nve-tooltip.styles.js +5 -5
- package/components/nve-warning-level/nve-warning-level.component.js +2 -78
- package/components/nve-warning-level/nve-warning-level.styles.js +7 -7
- package/css/global.css +13 -55
- package/css/nve.css +1048 -393
- package/css/nve_dark.css +406 -305
- package/css/rme.css +1050 -395
- package/css/rme_dark.css +408 -307
- package/css/shoelace-styles.css +539 -0
- package/css/varsom.css +1046 -391
- package/css/varsom_dark.css +404 -303
- package/custom-elements.json +2905 -12389
- package/fonts/LICENSE.txt +37 -0
- package/fonts/SourceSans3-VariableFont_wght.woff2 +0 -0
- package/interfaces/NveComponent.interface.js +0 -1
- package/nve-designsystem.d.ts +5 -0
- package/nve-designsystem.js +46 -86
- package/package.json +26 -8
- package/registerIcons/systemLibraryCustomization.js +23 -91
- package/vite-env.d.js +0 -1
- package/chunks/chunk.3RPBFEDE.js +0 -162
- package/chunks/chunk.JCXLDPQF.js +0 -225
- package/chunks/chunk.JQBT7BOV.js +0 -8446
- package/chunks/chunk.MAQXLKQ7.js +0 -598
- package/chunks/lit-element.js +0 -508
- package/chunks/property.js +0 -37
- package/chunks/query.js +0 -13
- package/chunks/state.js +0 -7
- package/chunks/static.js +0 -26
- package/nve-designsystem.css +0 -1
- package/vscode.css-custom-data.json +0 -621
- package/vscode.html-custom-data.json +0 -2354
|
@@ -1,135 +1,112 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
getIconClass(t) {
|
|
90
|
-
switch (t) {
|
|
91
|
-
case 1:
|
|
92
|
-
return "";
|
|
93
|
-
case 0:
|
|
94
|
-
return "state-not-started-icon-color filled-icon";
|
|
95
|
-
case 4:
|
|
96
|
-
return "state-error-color filled-icon";
|
|
97
|
-
default:
|
|
98
|
-
return "filled-icon";
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
getDividerColorClass() {
|
|
102
|
-
return this.index < this.selectedStepIndex ? "divider-reached-color" : "divider-not-reached-color";
|
|
103
|
-
}
|
|
104
|
-
renderDivider() {
|
|
105
|
-
const t = this.isOrientationVertical() ? "divider-vertical" : "divider-horizontal";
|
|
106
|
-
return this.isLast ? "" : c` <div class="vertical-divider-container">
|
|
1
|
+
import { a as e, t } from "../../../chunks/lit.js";
|
|
2
|
+
import { o as n, r, s as i, t as a } from "../../../chunks/decorate.js";
|
|
3
|
+
import o from "./nve-step.styles.js";
|
|
4
|
+
//#region src/components/nve-stepper/nve-step/nve-step.component.ts
|
|
5
|
+
var s = /* @__PURE__ */ function(e) {
|
|
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
|
+
}({}), c = class extends t {
|
|
8
|
+
constructor(...e) {
|
|
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
|
+
}
|
|
11
|
+
firstUpdated() {
|
|
12
|
+
this.style.setProperty("--flex-grow", this.isLast ? "0" : "1");
|
|
13
|
+
}
|
|
14
|
+
updated() {
|
|
15
|
+
this.isOrientationVertical() && this.updateVerticalDividerHeight(), this.style.setProperty("line-color", this.isLast ? "0" : "1");
|
|
16
|
+
}
|
|
17
|
+
static {
|
|
18
|
+
this.styles = [o];
|
|
19
|
+
}
|
|
20
|
+
isOrientationVertical() {
|
|
21
|
+
return this.orientation === "vertical";
|
|
22
|
+
}
|
|
23
|
+
iconForState(e) {
|
|
24
|
+
let t = "";
|
|
25
|
+
switch (e) {
|
|
26
|
+
case 0:
|
|
27
|
+
t = "circle";
|
|
28
|
+
break;
|
|
29
|
+
case 2:
|
|
30
|
+
t = "radio_button_checked";
|
|
31
|
+
break;
|
|
32
|
+
case 1:
|
|
33
|
+
t = "trip_origin";
|
|
34
|
+
break;
|
|
35
|
+
case 3:
|
|
36
|
+
t = "check_circle";
|
|
37
|
+
break;
|
|
38
|
+
case 4:
|
|
39
|
+
t = "error";
|
|
40
|
+
break;
|
|
41
|
+
default:
|
|
42
|
+
t = "check_circle";
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
}
|
|
47
|
+
getStateText(e) {
|
|
48
|
+
switch (e) {
|
|
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
|
+
default: return "Ikke påbegynt";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
getStateColorClass(e) {
|
|
58
|
+
switch (e) {
|
|
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
|
+
default: return "state-not-started-color";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
getLabelClass(e) {
|
|
67
|
+
switch (e) {
|
|
68
|
+
case 0: return "state-not-started-color";
|
|
69
|
+
case 4: return "state-error-color";
|
|
70
|
+
default: return "";
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
getIconClass(e) {
|
|
74
|
+
switch (e) {
|
|
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
|
+
default: return "filled-icon";
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
getDividerColorClass() {
|
|
82
|
+
return this.index < this.selectedStepIndex ? "divider-reached-color" : "divider-not-reached-color";
|
|
83
|
+
}
|
|
84
|
+
renderDivider() {
|
|
85
|
+
let t = this.isOrientationVertical() ? "divider-vertical" : "divider-horizontal";
|
|
86
|
+
return this.isLast ? "" : e` <div class="vertical-divider-container">
|
|
107
87
|
<div class="${t} ${this.getDividerColorClass()}"></div>
|
|
108
88
|
</div>`;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
89
|
+
}
|
|
90
|
+
renderDescription() {
|
|
91
|
+
return this.isDescriptionValid(this.description) ? e`<div
|
|
112
92
|
class="step-description ${this.orientation === "vertical" ? "step-description-max-width-vertical" : "step-description-max-width-horizontal"}"
|
|
113
93
|
>
|
|
114
94
|
${this.description}
|
|
115
|
-
</div>` :
|
|
95
|
+
</div>` : e`<div
|
|
116
96
|
class="step-description empty-description ${this.orientation === "vertical" ? "step-description-max-width-vertical" : "step-description-max-width-horizontal"}"
|
|
117
97
|
></div>`;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
renderVerticalStep() {
|
|
132
|
-
return c`
|
|
98
|
+
}
|
|
99
|
+
isDescriptionValid(e) {
|
|
100
|
+
return !!e && e?.trim().length > 0;
|
|
101
|
+
}
|
|
102
|
+
updateVerticalDividerHeight() {
|
|
103
|
+
let e = 34;
|
|
104
|
+
this.descriptionElement && (e = this.descriptionElement.offsetHeight + 24);
|
|
105
|
+
let t = this.shadowRoot.querySelector(".vertical-divider-container .divider-vertical");
|
|
106
|
+
t && (t.style.height = `${e}px`);
|
|
107
|
+
}
|
|
108
|
+
renderVerticalStep() {
|
|
109
|
+
return e`
|
|
133
110
|
<div class="vertical-container">
|
|
134
111
|
<div class="step-figure-vertical">
|
|
135
112
|
<div class=" ${this.getIconClass(this.state)}">
|
|
@@ -146,9 +123,9 @@ let e = class extends h {
|
|
|
146
123
|
</div>
|
|
147
124
|
</div>
|
|
148
125
|
`;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
126
|
+
}
|
|
127
|
+
render() {
|
|
128
|
+
return this.isOrientationVertical() ? this.renderVerticalStep() : e`
|
|
152
129
|
<div class="step-figure">
|
|
153
130
|
<span class=" ${this.getIconClass(this.state)}">
|
|
154
131
|
<nve-icon slot="suffix" name="${this.iconForState(this.state)}"></nve-icon>
|
|
@@ -163,49 +140,12 @@ let e = class extends h {
|
|
|
163
140
|
${this.hideDescriptions ? "" : this.renderDescription()}
|
|
164
141
|
</div>
|
|
165
142
|
`;
|
|
166
|
-
|
|
167
|
-
};
|
|
168
|
-
e.styles = [u];
|
|
169
|
-
s([
|
|
170
|
-
r({ reflect: !0 })
|
|
171
|
-
], e.prototype, "label", 2);
|
|
172
|
-
s([
|
|
173
|
-
r({ type: Number })
|
|
174
|
-
], e.prototype, "index", 2);
|
|
175
|
-
s([
|
|
176
|
-
r({ type: String })
|
|
177
|
-
], e.prototype, "description", 2);
|
|
178
|
-
s([
|
|
179
|
-
r({ type: Number })
|
|
180
|
-
], e.prototype, "state", 2);
|
|
181
|
-
s([
|
|
182
|
-
r({ type: Number })
|
|
183
|
-
], e.prototype, "selectedStepIndex", 2);
|
|
184
|
-
s([
|
|
185
|
-
r({ type: Boolean, reflect: !0 })
|
|
186
|
-
], e.prototype, "isSelected", 2);
|
|
187
|
-
s([
|
|
188
|
-
r({ type: Boolean })
|
|
189
|
-
], e.prototype, "isLast", 2);
|
|
190
|
-
s([
|
|
191
|
-
r({ type: Boolean })
|
|
192
|
-
], e.prototype, "entranceAllowed", 2);
|
|
193
|
-
s([
|
|
194
|
-
r()
|
|
195
|
-
], e.prototype, "orientation", 2);
|
|
196
|
-
s([
|
|
197
|
-
r({ type: Boolean })
|
|
198
|
-
], e.prototype, "hideStateText", 2);
|
|
199
|
-
s([
|
|
200
|
-
r({ type: Boolean })
|
|
201
|
-
], e.prototype, "hideDescriptions", 2);
|
|
202
|
-
s([
|
|
203
|
-
v(".step-description")
|
|
204
|
-
], e.prototype, "descriptionElement", 2);
|
|
205
|
-
e = s([
|
|
206
|
-
p("nve-step")
|
|
207
|
-
], e);
|
|
208
|
-
export {
|
|
209
|
-
g as StepState,
|
|
210
|
-
e as default
|
|
143
|
+
}
|
|
211
144
|
};
|
|
145
|
+
a([n({ reflect: !0 })], c.prototype, "label", void 0), a([n({ type: Number })], c.prototype, "index", void 0), a([n({ type: String })], c.prototype, "description", void 0), a([n({ type: Number })], c.prototype, "state", void 0), a([n({ type: Number })], c.prototype, "selectedStepIndex", void 0), a([n({
|
|
146
|
+
type: Boolean,
|
|
147
|
+
reflect: !0
|
|
148
|
+
})], c.prototype, "isSelected", void 0), a([n({ type: Boolean })], c.prototype, "isLast", void 0), a([n({ type: Boolean })], c.prototype, "entranceAllowed", void 0), a([n()], c.prototype, "orientation", void 0), a([n({ type: Boolean })], c.prototype, "hideStateText", void 0), a([n({ type: Boolean })], c.prototype, "hideDescriptions", void 0), a([r(".step-description")], c.prototype, "descriptionElement", void 0), c = a([i("nve-step")], c);
|
|
149
|
+
var l = c;
|
|
150
|
+
//#endregion
|
|
151
|
+
export { s as StepState, l as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { u as e } from "../../../chunks/lit.js";
|
|
2
|
+
//#region src/components/nve-stepper/nve-step/nve-step.styles.ts
|
|
3
|
+
var t = e`
|
|
3
4
|
:host {
|
|
4
5
|
flex-grow: var(--flex-grow, 1);
|
|
5
6
|
}
|
|
@@ -47,7 +48,7 @@ const r = e`
|
|
|
47
48
|
color: var(--color-neutrals-foreground-primary, #0d0d0e);
|
|
48
49
|
|
|
49
50
|
/* Label/medium */
|
|
50
|
-
font-family: 'Source Sans
|
|
51
|
+
font-family: 'Source Sans 3';
|
|
51
52
|
font-size: 1.125rem; /*18px; */
|
|
52
53
|
font-style: normal;
|
|
53
54
|
font-weight: 600;
|
|
@@ -57,7 +58,7 @@ const r = e`
|
|
|
57
58
|
|
|
58
59
|
.step-state {
|
|
59
60
|
/* Label/x-small-light */
|
|
60
|
-
font-family: 'Source Sans
|
|
61
|
+
font-family: 'Source Sans 3';
|
|
61
62
|
font-size: 0.875rem; /*14px;*/
|
|
62
63
|
font-style: normal;
|
|
63
64
|
font-weight: 400;
|
|
@@ -69,7 +70,7 @@ const r = e`
|
|
|
69
70
|
color: var(--color-neutrals-foreground-primary, #0d0d0e);
|
|
70
71
|
|
|
71
72
|
/* Label/small-light */
|
|
72
|
-
font-family: 'Source Sans
|
|
73
|
+
font-family: 'Source Sans 3';
|
|
73
74
|
font-size: 1rem; /*16px; */
|
|
74
75
|
font-style: normal;
|
|
75
76
|
font-weight: 400;
|
|
@@ -104,19 +105,19 @@ const r = e`
|
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
.state-not-started-color {
|
|
107
|
-
color: var(--color-neutrals-foreground-subtle
|
|
108
|
+
color: var(--color-neutrals-foreground-subtle);
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
.state-started-color {
|
|
111
|
-
color: var(--color-feedback-
|
|
112
|
+
color: var(--color-feedback-foreground-info);
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
.state-done-color {
|
|
115
|
-
color: var(--color-
|
|
116
|
+
color: var(--color-feedback-foreground-success);
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
.state-error-color {
|
|
119
|
-
color: var(--color-feedback-
|
|
120
|
+
color: var(--color-feedback-foreground-error);
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
.vertical-container {
|
|
@@ -171,6 +172,5 @@ const r = e`
|
|
|
171
172
|
align-self: flex-start;
|
|
172
173
|
}
|
|
173
174
|
`;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
};
|
|
175
|
+
//#endregion
|
|
176
|
+
export { t as default };
|
|
@@ -1,60 +1,48 @@
|
|
|
1
|
-
import { a
|
|
2
|
-
import { n as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
render() {
|
|
29
|
-
const e = this.steps[this.selectedStepIndex.value], s = this.steps[this.selectedStepIndex.value + 1], l = this.selectedStepIndex.value === this.steps.length - 1;
|
|
30
|
-
return n`
|
|
1
|
+
import { a as e, t } from "../../chunks/lit.js";
|
|
2
|
+
import { o as n, s as r, t as i } from "../../chunks/decorate.js";
|
|
3
|
+
import a from "./nve-stepper-mobile.styles.js";
|
|
4
|
+
//#region src/components/nve-stepper/nve-stepper-mobile.component.ts
|
|
5
|
+
var o = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.steps = [], this.hideStepButtons = !1, this.selectedStepIndex = { value: 0 };
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = [a];
|
|
11
|
+
}
|
|
12
|
+
handleStepClick(e) {
|
|
13
|
+
this.dispatchEvent(new CustomEvent("step-click", {
|
|
14
|
+
detail: {
|
|
15
|
+
action: e,
|
|
16
|
+
currentIndex: this.selectedStepIndex.value,
|
|
17
|
+
step: this.steps[this.selectedStepIndex.value],
|
|
18
|
+
nextIndex: e === "next" ? this.selectedStepIndex.value + 1 : this.selectedStepIndex.value - 1,
|
|
19
|
+
nextStep: this.steps[e === "next" ? this.selectedStepIndex.value + 1 : this.selectedStepIndex.value - 1]
|
|
20
|
+
},
|
|
21
|
+
bubbles: !0,
|
|
22
|
+
composed: !0
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
let t = this.steps[this.selectedStepIndex.value], n = this.steps[this.selectedStepIndex.value + 1], r = this.selectedStepIndex.value === this.steps.length - 1;
|
|
27
|
+
return e`
|
|
31
28
|
<div class="mobile-stepper">
|
|
32
29
|
<div class="progress-circle">${this.selectedStepIndex.value + 1} of ${this.steps.length}</div>
|
|
33
30
|
<div class="step-info">
|
|
34
|
-
<div class="step-label">${
|
|
35
|
-
${this.hideStepButtons ? "" :
|
|
36
|
-
${
|
|
31
|
+
<div class="step-label">${t.label}</div>
|
|
32
|
+
${this.hideStepButtons ? "" : e` <div>
|
|
33
|
+
${r ? e` <div class="step-buttons next-button" @click=${() => this.handleStepClick("next")}>
|
|
37
34
|
Finish
|
|
38
|
-
</div>` :
|
|
39
|
-
Neste: ${
|
|
35
|
+
</div>` : e` <div class="step-buttons next-button" @click=${() => this.handleStepClick("next")}>
|
|
36
|
+
Neste: ${n.label}
|
|
40
37
|
</div>`}
|
|
41
38
|
<div class="step-buttons back-button" @click=${() => this.handleStepClick("prev")}>Forrige</div>
|
|
42
39
|
</div>`}
|
|
43
40
|
</div>
|
|
44
41
|
</div>
|
|
45
42
|
`;
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
i.styles = [h];
|
|
49
|
-
r([
|
|
50
|
-
v({ type: Array })
|
|
51
|
-
], i.prototype, "steps", 2);
|
|
52
|
-
r([
|
|
53
|
-
v({ type: Boolean })
|
|
54
|
-
], i.prototype, "hideStepButtons", 2);
|
|
55
|
-
i = r([
|
|
56
|
-
o("nve-stepper-mobile")
|
|
57
|
-
], i);
|
|
58
|
-
export {
|
|
59
|
-
i as default
|
|
43
|
+
}
|
|
60
44
|
};
|
|
45
|
+
i([n({ type: Array })], o.prototype, "steps", void 0), i([n({ type: Boolean })], o.prototype, "hideStepButtons", void 0), o = i([r("nve-stepper-mobile")], o);
|
|
46
|
+
var s = o;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { s as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { u as e } from "../../chunks/lit.js";
|
|
2
|
+
//#region src/components/nve-stepper/nve-stepper-mobile.styles.ts
|
|
3
|
+
var t = e`
|
|
3
4
|
.mobile-stepper {
|
|
4
5
|
display: flex;
|
|
5
6
|
align-items: center;
|
|
@@ -33,7 +34,7 @@ const r = e`
|
|
|
33
34
|
color: var(--color-neutrals-foreground-primary, #0d0d0e);
|
|
34
35
|
|
|
35
36
|
/* Label/medium */
|
|
36
|
-
font-family: 'Source Sans
|
|
37
|
+
font-family: 'Source Sans 3';
|
|
37
38
|
font-size: 1.125rem; /*18px; */
|
|
38
39
|
font-style: normal;
|
|
39
40
|
font-weight: 600;
|
|
@@ -51,7 +52,7 @@ const r = e`
|
|
|
51
52
|
|
|
52
53
|
.step-buttons {
|
|
53
54
|
/* Label/small-light */
|
|
54
|
-
font-family: 'Source Sans
|
|
55
|
+
font-family: 'Source Sans 3';
|
|
55
56
|
font-size: 1rem; /*16px; */
|
|
56
57
|
font-style: normal;
|
|
57
58
|
font-weight: 400;
|
|
@@ -60,6 +61,5 @@ const r = e`
|
|
|
60
61
|
cursor: pointer;
|
|
61
62
|
}
|
|
62
63
|
`;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { t as default };
|