nve-designsystem 3.1.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 +6 -6
- 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,167 +1,148 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (this.src)
|
|
134
|
-
return W`<img src=${this.src} alt=${X(this.alt)} />`;
|
|
135
|
-
const i = q[this.name];
|
|
136
|
-
return i ? W`${Y(i)}` : !this.src && this.iconLoaded ? W`<span
|
|
1
|
+
import { r as e, t } from "../../chunks/chunk.js";
|
|
2
|
+
import { a as n, t as r } from "../../chunks/lit.js";
|
|
3
|
+
import { a as i, o as a, s as o, t as s } from "../../chunks/decorate.js";
|
|
4
|
+
import { t as c } from "../../chunks/class-map.js";
|
|
5
|
+
import { t as l } from "../../chunks/if-defined.js";
|
|
6
|
+
import { t as u } from "../../chunks/unsafe-html.js";
|
|
7
|
+
import d from "./nve-icon.styles.js";
|
|
8
|
+
import { offlineIcons as f } from "./offline-icons.js";
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/nve-icon/nve-icon.component.ts
|
|
11
|
+
var p = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
12
|
+
(function() {
|
|
13
|
+
function e(e, t) {
|
|
14
|
+
document.addEventListener ? e.addEventListener("scroll", t, !1) : e.attachEvent("scroll", t);
|
|
15
|
+
}
|
|
16
|
+
function n(e) {
|
|
17
|
+
document.body ? e() : document.addEventListener ? document.addEventListener("DOMContentLoaded", function t() {
|
|
18
|
+
document.removeEventListener("DOMContentLoaded", t), e();
|
|
19
|
+
}) : document.attachEvent("onreadystatechange", function t() {
|
|
20
|
+
(document.readyState == "interactive" || document.readyState == "complete") && (document.detachEvent("onreadystatechange", t), e());
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function r(e) {
|
|
24
|
+
this.g = document.createElement("div"), this.g.setAttribute("aria-hidden", "true"), this.g.appendChild(document.createTextNode(e)), this.h = document.createElement("span"), this.i = document.createElement("span"), this.m = document.createElement("span"), this.j = document.createElement("span"), this.l = -1, this.h.style.cssText = "max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;", this.i.style.cssText = "max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;", this.j.style.cssText = "max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;", this.m.style.cssText = "display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;", this.h.appendChild(this.m), this.i.appendChild(this.j), this.g.appendChild(this.h), this.g.appendChild(this.i);
|
|
25
|
+
}
|
|
26
|
+
function i(e, t) {
|
|
27
|
+
e.g.style.cssText = "max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:" + t + ";";
|
|
28
|
+
}
|
|
29
|
+
function a(e) {
|
|
30
|
+
var t = e.g.offsetWidth, n = t + 100;
|
|
31
|
+
return e.j.style.width = n + "px", e.i.scrollLeft = n, e.h.scrollLeft = e.h.scrollWidth + 100, e.l === t ? !1 : (e.l = t, !0);
|
|
32
|
+
}
|
|
33
|
+
function o(t, n) {
|
|
34
|
+
function r() {
|
|
35
|
+
var e = i;
|
|
36
|
+
a(e) && e.g.parentNode !== null && n(e.l);
|
|
37
|
+
}
|
|
38
|
+
var i = t;
|
|
39
|
+
e(t.h, r), e(t.i, r), a(t);
|
|
40
|
+
}
|
|
41
|
+
function s(e, t, n) {
|
|
42
|
+
t ||= {}, n ||= window, this.family = e, this.style = t.style || "normal", this.weight = t.weight || "normal", this.stretch = t.stretch || "normal", this.context = n;
|
|
43
|
+
}
|
|
44
|
+
var c = null, l = null, u = null, d = null;
|
|
45
|
+
function f(e) {
|
|
46
|
+
return l === null && (p(e) && /Apple/.test(window.navigator.vendor) ? (e = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent), l = !!e && 603 > parseInt(e[1], 10)) : l = !1), l;
|
|
47
|
+
}
|
|
48
|
+
function p(e) {
|
|
49
|
+
return d === null && (d = !!e.document.fonts), d;
|
|
50
|
+
}
|
|
51
|
+
function m(e, t) {
|
|
52
|
+
var n = e.style, r = e.weight;
|
|
53
|
+
if (u === null) {
|
|
54
|
+
var i = document.createElement("div");
|
|
55
|
+
try {
|
|
56
|
+
i.style.font = "condensed 100px sans-serif";
|
|
57
|
+
} catch {}
|
|
58
|
+
u = i.style.font !== "";
|
|
59
|
+
}
|
|
60
|
+
return [
|
|
61
|
+
n,
|
|
62
|
+
r,
|
|
63
|
+
u ? e.stretch : "",
|
|
64
|
+
"100px",
|
|
65
|
+
t
|
|
66
|
+
].join(" ");
|
|
67
|
+
}
|
|
68
|
+
s.prototype.load = function(e, t) {
|
|
69
|
+
var a = this, s = e || "BESbswy", l = 0, u = t || 3e3, d = (/* @__PURE__ */ new Date()).getTime();
|
|
70
|
+
return new Promise(function(e, t) {
|
|
71
|
+
if (p(a.context) && !f(a.context)) {
|
|
72
|
+
var h = new Promise(function(e, t) {
|
|
73
|
+
function n() {
|
|
74
|
+
(/* @__PURE__ */ new Date()).getTime() - d >= u ? t(Error("" + u + "ms timeout exceeded")) : a.context.document.fonts.load(m(a, "\"" + a.family + "\""), s).then(function(t) {
|
|
75
|
+
1 <= t.length ? e() : setTimeout(n, 25);
|
|
76
|
+
}, t);
|
|
77
|
+
}
|
|
78
|
+
n();
|
|
79
|
+
}), g = new Promise(function(e, t) {
|
|
80
|
+
l = setTimeout(function() {
|
|
81
|
+
t(Error("" + u + "ms timeout exceeded"));
|
|
82
|
+
}, u);
|
|
83
|
+
});
|
|
84
|
+
Promise.race([g, h]).then(function() {
|
|
85
|
+
clearTimeout(l), e(a);
|
|
86
|
+
}, t);
|
|
87
|
+
} else n(function() {
|
|
88
|
+
function n() {
|
|
89
|
+
var t;
|
|
90
|
+
(t = _ != -1 && v != -1 || _ != -1 && y != -1 || v != -1 && y != -1) && ((t = _ != v && _ != y && v != y) || (c === null && (t = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent), c = !!t && (536 > parseInt(t[1], 10) || parseInt(t[1], 10) === 536 && 11 >= parseInt(t[2], 10))), t = c && (_ == b && v == b && y == b || _ == x && v == x && y == x || _ == S && v == S && y == S)), t = !t), t && (C.parentNode !== null && C.parentNode.removeChild(C), clearTimeout(l), e(a));
|
|
91
|
+
}
|
|
92
|
+
function f() {
|
|
93
|
+
if ((/* @__PURE__ */ new Date()).getTime() - d >= u) C.parentNode !== null && C.parentNode.removeChild(C), t(Error("" + u + "ms timeout exceeded"));
|
|
94
|
+
else {
|
|
95
|
+
var e = a.context.document.hidden;
|
|
96
|
+
(!0 === e || e === void 0) && (_ = p.g.offsetWidth, v = h.g.offsetWidth, y = g.g.offsetWidth, n()), l = setTimeout(f, 50);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
var p = new r(s), h = new r(s), g = new r(s), _ = -1, v = -1, y = -1, b = -1, x = -1, S = -1, C = document.createElement("div");
|
|
100
|
+
C.dir = "ltr", i(p, m(a, "sans-serif")), i(h, m(a, "serif")), i(g, m(a, "monospace")), C.appendChild(p.g), C.appendChild(h.g), C.appendChild(g.g), a.context.document.body.appendChild(C), b = p.g.offsetWidth, x = h.g.offsetWidth, S = g.g.offsetWidth, f(), o(p, function(e) {
|
|
101
|
+
_ = e, n();
|
|
102
|
+
}), i(p, m(a, "\"" + a.family + "\",sans-serif")), o(h, function(e) {
|
|
103
|
+
v = e, n();
|
|
104
|
+
}), i(h, m(a, "\"" + a.family + "\",serif")), o(g, function(e) {
|
|
105
|
+
y = e, n();
|
|
106
|
+
}), i(g, m(a, "\"" + a.family + "\",monospace"));
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
}, typeof t == "object" ? t.exports = s : (window.FontFaceObserver = s, window.FontFaceObserver.prototype.load = s.prototype.load);
|
|
110
|
+
})();
|
|
111
|
+
})))(), 1), m = class extends r {
|
|
112
|
+
constructor(...e) {
|
|
113
|
+
super(...e), this.library = "Sharp", this.name = "", this.src = "", this.alt = void 0, this.iconLoaded = !1;
|
|
114
|
+
}
|
|
115
|
+
static {
|
|
116
|
+
this.styles = [d];
|
|
117
|
+
}
|
|
118
|
+
firstUpdated() {
|
|
119
|
+
if (!this.src && !f[this.name]) {
|
|
120
|
+
if (!document.getElementById(`material-icons-${this.library.toLowerCase()}`)) {
|
|
121
|
+
let e = document.createElement("link");
|
|
122
|
+
e.id = `material-icons-${this.library.toLowerCase()}`, e.rel = "stylesheet", e.href = `https://fonts.googleapis.com/css2?family=Material+Symbols+${this.library}:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200`, document.head.appendChild(e);
|
|
123
|
+
}
|
|
124
|
+
new p.default(`Material Symbols ${this.library}`).load().then(() => {
|
|
125
|
+
this.iconLoaded = !0, this.requestUpdate();
|
|
126
|
+
}).catch();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
render() {
|
|
130
|
+
if (this.src) return n`<img src=${this.src} alt=${l(this.alt)} />`;
|
|
131
|
+
let e = f[this.name];
|
|
132
|
+
return e ? n`${u(e)}` : !this.src && this.iconLoaded ? n`<span
|
|
137
133
|
part="icon"
|
|
138
|
-
class=${
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
class=${c({
|
|
135
|
+
"material-outlined": this.library === "Outlined",
|
|
136
|
+
"material-sharp": this.library === "Sharp"
|
|
137
|
+
})}
|
|
142
138
|
>${this.name}</span
|
|
143
|
-
>` :
|
|
144
|
-
|
|
145
|
-
};
|
|
146
|
-
y.styles = [Q];
|
|
147
|
-
T([
|
|
148
|
-
$()
|
|
149
|
-
], y.prototype, "library", 2);
|
|
150
|
-
T([
|
|
151
|
-
$({ type: String, reflect: !0 })
|
|
152
|
-
], y.prototype, "name", 2);
|
|
153
|
-
T([
|
|
154
|
-
$()
|
|
155
|
-
], y.prototype, "src", 2);
|
|
156
|
-
T([
|
|
157
|
-
$()
|
|
158
|
-
], y.prototype, "alt", 2);
|
|
159
|
-
T([
|
|
160
|
-
K()
|
|
161
|
-
], y.prototype, "iconLoaded", 2);
|
|
162
|
-
y = T([
|
|
163
|
-
J("nve-icon")
|
|
164
|
-
], y);
|
|
165
|
-
export {
|
|
166
|
-
y as default
|
|
139
|
+
>` : n`<nve-skeleton class="placeholder" effect="sheen"></nve-skeleton>`;
|
|
140
|
+
}
|
|
167
141
|
};
|
|
142
|
+
s([a()], m.prototype, "library", void 0), s([a({
|
|
143
|
+
type: String,
|
|
144
|
+
reflect: !0
|
|
145
|
+
})], m.prototype, "name", void 0), s([a()], m.prototype, "src", void 0), s([a()], m.prototype, "alt", void 0), s([i()], m.prototype, "iconLoaded", void 0), m = s([o("nve-icon")], m);
|
|
146
|
+
var h = m;
|
|
147
|
+
//#endregion
|
|
148
|
+
export { h as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { u as e } from "../../chunks/lit.js";
|
|
2
|
+
//#region src/components/nve-icon/nve-icon.styles.ts
|
|
3
|
+
var t = e`
|
|
3
4
|
/* Brukes i dropdown. Eneste måten å override shadow dom for å rotere expand_more ikonet når menyen åpner */
|
|
4
5
|
:host([name='expand_more']) {
|
|
5
6
|
transform: var(--icon-rotation, none);
|
|
@@ -22,6 +23,11 @@ const r = e`
|
|
|
22
23
|
height: var(--icon-size);
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
:is(svg) {
|
|
27
|
+
width: var(--icon-size);
|
|
28
|
+
height: var(--icon-size);
|
|
29
|
+
}
|
|
30
|
+
|
|
25
31
|
/* we need it to center the icon */
|
|
26
32
|
:is(span) {
|
|
27
33
|
display: inline-flex;
|
|
@@ -43,11 +49,10 @@ const r = e`
|
|
|
43
49
|
.material-sharp {
|
|
44
50
|
font-family: 'Material Symbols Sharp';
|
|
45
51
|
}
|
|
46
|
-
|
|
52
|
+
|
|
47
53
|
svg {
|
|
48
54
|
fill: currentColor;
|
|
49
55
|
}
|
|
50
56
|
`;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { t as default };
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
//#region src/components/nve-icon/offline-icons.ts
|
|
2
|
+
var e = {
|
|
3
|
+
arrow_forward: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#000000\"><path d=\"M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z\"/></svg>",
|
|
4
|
+
check_circle: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\" fill=\"#000000\"><path d=\"m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z\"/></svg>",
|
|
5
|
+
chevron_backward: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\" fill=\"#000000\"><path d=\"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z\"/></svg>",
|
|
6
|
+
chevron_forward: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\" fill=\"#000000\"><path d=\"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z\"/></svg>",
|
|
7
|
+
close: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\" fill=\"#000000\"><path d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\"/></svg>",
|
|
8
|
+
download: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#000000\"><path d=\"M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM160-160v-200h80v120h480v-120h80v200H160Z\"/></svg>",
|
|
9
|
+
error: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\" fill=\"#000000\"><path d=\"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z\"/></svg>",
|
|
10
|
+
info: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\" fill=\"#000000\"><path d=\"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z\"/></svg>",
|
|
11
|
+
lock: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\" fill=\"#000000\"><path d=\"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z\"/></svg>",
|
|
12
|
+
mail: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#000000\"><path d=\"M80-160v-640h800v640H80Zm400-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z\"/></svg>",
|
|
13
|
+
open_in_new: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\" fill=\"#000000\"><path d=\"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z\"/></svg>",
|
|
14
|
+
warning: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\" fill=\"#000000\"><path d=\"m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z\"/></svg>"
|
|
14
15
|
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { e as offlineIcons };
|
|
@@ -1,100 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { i as p } from "../../chunks/chunk.XA43ZQPC.js";
|
|
4
|
-
import "../../chunks/lit-element.js";
|
|
5
|
-
import "../../chunks/chunk.SI4ACBFK.js";
|
|
6
|
-
import "../../chunks/chunk.3RPBFEDE.js";
|
|
7
|
-
import "../../chunks/chunk.6CTB5ZDJ.js";
|
|
8
|
-
import "../../chunks/chunk.YHLNUJ7P.js";
|
|
9
|
-
import "../../chunks/chunk.4TUIT776.js";
|
|
10
|
-
import h from "./nve-input.styles.js";
|
|
11
|
-
import { o as f } from "../../chunks/if-defined.js";
|
|
12
|
-
var m = Object.defineProperty, y = Object.getOwnPropertyDescriptor, o = (e, r, a, s) => {
|
|
13
|
-
for (var t = s > 1 ? void 0 : s ? y(r, a) : r, n = e.length - 1, d; n >= 0; n--)
|
|
14
|
-
(d = e[n]) && (t = (s ? d(r, a, t) : d(t)) || t);
|
|
15
|
-
return s && t && m(r, a, t), t;
|
|
16
|
-
};
|
|
17
|
-
let i = class extends p {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(), this.requiredLabel = "*Obligatorisk", this.testId = "", this.noValidation = !1, this.alreadyInvalid = !1;
|
|
20
|
-
}
|
|
21
|
-
connectedCallback() {
|
|
22
|
-
super.connectedCallback(), this.addEventListener("sl-invalid", (e) => {
|
|
23
|
-
e.preventDefault(), this.alreadyInvalid || this.makeInvalid();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
disconnectedCallback() {
|
|
27
|
-
super.disconnectedCallback(), this.removeEventListener("sl-invalid", this.makeInvalid);
|
|
28
|
-
}
|
|
29
|
-
firstUpdated() {
|
|
30
|
-
super.firstUpdated(), this.requiredLabel && this.style.setProperty("--sl-input-required-content", `"${this.requiredLabel}"`);
|
|
31
|
-
const e = this.shadowRoot?.querySelector("input");
|
|
32
|
-
e && f(this.autocomplete) && this.autocomplete === "false" && e.setAttribute("aria-autocomplete", "none");
|
|
33
|
-
}
|
|
34
|
-
updated(e) {
|
|
35
|
-
super.updated(e);
|
|
36
|
-
const r = this.hasAttribute("data-user-invalid");
|
|
37
|
-
if (e.has("inputId") && this.updateInputId(), r && !this.alreadyInvalid && this.makeInvalid(), r || this.resetValidation(), e.has("readonly") && this.shadowRoot) {
|
|
38
|
-
const a = e.get("readonly"), s = this.readonly;
|
|
39
|
-
if (!a && s) {
|
|
40
|
-
if (!this.shadowRoot.querySelector("slot[name=suffix]").assignedElements().length) {
|
|
41
|
-
const t = document.createElement("nve-icon");
|
|
42
|
-
t.setAttribute("id", "readonly-icon"), t.setAttribute("name", "visibility"), t.setAttribute("slot", "suffix"), this.appendChild(t);
|
|
43
|
-
}
|
|
44
|
-
} else if (!s && a) {
|
|
45
|
-
const t = this.shadowRoot.querySelector("slot[name=suffix]").assignedElements().find((n) => n.id === "readonly-icon");
|
|
46
|
-
t && t.remove();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
updateInputId() {
|
|
51
|
-
const e = this.shadowRoot?.querySelector("input");
|
|
52
|
-
e && this.inputId && (e.id = this.inputId);
|
|
53
|
-
}
|
|
54
|
-
makeInvalid() {
|
|
55
|
-
this.noValidation || (this.showErrorIcon(), this.showErrorMessage(), this.alreadyInvalid = !0);
|
|
56
|
-
}
|
|
57
|
-
resetValidation() {
|
|
58
|
-
this.hideErrorIcon(), this.style.setProperty("--nve-input-error-message", ""), this.alreadyInvalid = !1;
|
|
59
|
-
}
|
|
60
|
-
showErrorMessage() {
|
|
61
|
-
this.errorMessage || (this.errorMessage = this.validationMessage), this.style.setProperty("--nve-input-error-message", `"${this.errorMessage}"`);
|
|
62
|
-
}
|
|
63
|
-
showErrorIcon() {
|
|
64
|
-
const e = document.createElement("nve-icon");
|
|
65
|
-
e.setAttribute("id", "error-icon"), e.setAttribute("name", "error"), e.setAttribute("slot", "suffix");
|
|
66
|
-
const r = getComputedStyle(document.documentElement).getPropertyValue(
|
|
67
|
-
"--color-feedback-background-emphasized-error"
|
|
68
|
-
);
|
|
69
|
-
e.style.color = r.trim(), this.appendChild(e);
|
|
70
|
-
}
|
|
71
|
-
hideErrorIcon() {
|
|
72
|
-
const e = this.querySelector("#error-icon");
|
|
73
|
-
e && e.remove();
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
i.styles = [p.styles, h];
|
|
77
|
-
o([
|
|
78
|
-
l()
|
|
79
|
-
], i.prototype, "requiredLabel", 2);
|
|
80
|
-
o([
|
|
81
|
-
l({ reflect: !0 })
|
|
82
|
-
], i.prototype, "errorMessage", 2);
|
|
83
|
-
o([
|
|
84
|
-
l({ reflect: !0, type: String })
|
|
85
|
-
], i.prototype, "testId", 2);
|
|
86
|
-
o([
|
|
87
|
-
l({ type: String, reflect: !0 })
|
|
88
|
-
], i.prototype, "inputId", 2);
|
|
89
|
-
o([
|
|
90
|
-
l({ type: Boolean })
|
|
91
|
-
], i.prototype, "noValidation", 2);
|
|
92
|
-
o([
|
|
93
|
-
c()
|
|
94
|
-
], i.prototype, "alreadyInvalid", 2);
|
|
95
|
-
i = o([
|
|
96
|
-
u("nve-input")
|
|
97
|
-
], i);
|
|
98
|
-
export {
|
|
99
|
-
i as default
|
|
100
|
-
};
|
|
1
|
+
import { t as e } from "../../chunks/nve-input.component.js";
|
|
2
|
+
export { e as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { u as e } from "../../chunks/lit.js";
|
|
2
|
+
//#region src/components/nve-input/nve-input.styles.ts
|
|
3
|
+
var t = e`
|
|
3
4
|
:host {
|
|
4
5
|
/* Overstyring av shoelace-token-verdier */
|
|
5
6
|
|
|
@@ -100,6 +101,5 @@ const e = r`
|
|
|
100
101
|
font-size: var(--font-size-medium);
|
|
101
102
|
}
|
|
102
103
|
`;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
};
|
|
104
|
+
//#endregion
|
|
105
|
+
export { t as default };
|