nve-designsystem 3.10.0 → 3.10.2
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/unsafe-html.js +4 -4
- package/components/nve-icon/nve-icon.styles.js +6 -1
- package/components/nve-icon/offline-icons.js +11 -11
- package/components/nve-textarea/nve-textarea.component.d.ts +1 -1
- package/components/nve-textarea/nve-textarea.component.js +1 -1
- package/custom-elements.json +17185 -2616
- package/package.json +10 -4
- package/vscode.css-custom-data.json +1261 -51
- package/vscode.html-custom-data.json +2798 -50
package/chunks/unsafe-html.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { E as r, T as s } from "./lit-element.js";
|
|
2
|
-
import {
|
|
3
|
-
class e extends
|
|
2
|
+
import { a as n, i as o, t as c } from "./class-map.js";
|
|
3
|
+
class e extends o {
|
|
4
4
|
constructor(t) {
|
|
5
|
-
if (super(t), this.it = r, t.type !==
|
|
5
|
+
if (super(t), this.it = r, t.type !== c.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
6
6
|
}
|
|
7
7
|
render(t) {
|
|
8
8
|
if (t === r || t == null) return this._t = void 0, this.it = t;
|
|
@@ -15,7 +15,7 @@ class e extends n {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
e.directiveName = "unsafeHTML", e.resultType = 1;
|
|
18
|
-
const l =
|
|
18
|
+
const l = n(e);
|
|
19
19
|
export {
|
|
20
20
|
l as o
|
|
21
21
|
};
|
|
@@ -22,6 +22,11 @@ const r = e`
|
|
|
22
22
|
height: var(--icon-size);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
:is(svg) {
|
|
26
|
+
width: var(--icon-size);
|
|
27
|
+
height: var(--icon-size);
|
|
28
|
+
}
|
|
29
|
+
|
|
25
30
|
/* we need it to center the icon */
|
|
26
31
|
:is(span) {
|
|
27
32
|
display: inline-flex;
|
|
@@ -43,7 +48,7 @@ const r = e`
|
|
|
43
48
|
.material-sharp {
|
|
44
49
|
font-family: 'Material Symbols Sharp';
|
|
45
50
|
}
|
|
46
|
-
|
|
51
|
+
|
|
47
52
|
svg {
|
|
48
53
|
fill: currentColor;
|
|
49
54
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
check_circle: '<svg xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
chevron_backward: '<svg xmlns="http://www.w3.org/2000/svg"
|
|
4
|
-
chevron_forward: '<svg xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
close: '<svg xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
error: '<svg xmlns="http://www.w3.org/2000/svg"
|
|
7
|
-
info: '<svg xmlns="http://www.w3.org/2000/svg"
|
|
8
|
-
lock: '<svg xmlns="http://www.w3.org/2000/svg"
|
|
9
|
-
open_in_new: '<svg xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
warning: '<svg xmlns="http://www.w3.org/2000/svg"
|
|
1
|
+
const q = {
|
|
2
|
+
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>',
|
|
3
|
+
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>',
|
|
4
|
+
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>',
|
|
5
|
+
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>',
|
|
6
|
+
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>',
|
|
7
|
+
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>',
|
|
8
|
+
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>',
|
|
9
|
+
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>',
|
|
10
|
+
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>'
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
q as offlineIcons
|
|
14
14
|
};
|
|
@@ -57,7 +57,7 @@ export default class NveTextarea extends LitElement implements INveComponent {
|
|
|
57
57
|
/** Kontrollerer om og hvordan tekstinnput automatisk blir gjort stor som det blir skrevet inn av brukeren. */
|
|
58
58
|
autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
|
59
59
|
/** Indikerer om nettleserens autokorrekturfunksjon er på eller av. */
|
|
60
|
-
autocorrect
|
|
60
|
+
autocorrect: "on" | "off";
|
|
61
61
|
/** Indikerer om nettleserens autokorrekturfunksjon er på eller av. */
|
|
62
62
|
tooltip?: string;
|
|
63
63
|
/**
|
|
@@ -15,7 +15,7 @@ var x = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, t = (i, l, a
|
|
|
15
15
|
};
|
|
16
16
|
let e = class extends m {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(), this.name = "", this.value = "", this.title = "", this.filled = !1, this.label = "", this.helpText = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.required = !1, this.requiredLabel = "*Obligatorisk", this.autocapitalize = "off", this.testId = "", this.showErrorMessage = !1, this.touched = !1, this.resizeObserver = null;
|
|
18
|
+
super(), this.name = "", this.value = "", this.title = "", this.filled = !1, this.label = "", this.helpText = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.required = !1, this.requiredLabel = "*Obligatorisk", this.autocapitalize = "off", this.autocorrect = "off", this.testId = "", this.showErrorMessage = !1, this.touched = !1, this.resizeObserver = null;
|
|
19
19
|
}
|
|
20
20
|
firstUpdated() {
|
|
21
21
|
if (this.requiredLabel && this.style.setProperty("--textarea-required-content", `"${this.requiredLabel}"`), this.required) {
|