nve-designsystem 0.1.32 → 0.1.34
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/components/nve-icon/nve-icon.component.d.ts +3 -4
- package/nve-designsystem.js +116 -106
- package/nve-designsystem.umd.cjs +40 -33
- package/package.json +1 -1
|
@@ -5,11 +5,10 @@ import { LitElement } from 'lit';
|
|
|
5
5
|
* @see https://fonts.google.com/icons
|
|
6
6
|
*/
|
|
7
7
|
export default class NveIcon extends LitElement {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
8
|
+
static styles: import("lit").CSSResult[];
|
|
9
|
+
/** Navnet på ikonet i Material Symbols-biblioteket */
|
|
11
10
|
name: string;
|
|
12
|
-
|
|
11
|
+
protected firstUpdated(): void;
|
|
13
12
|
render(): import("lit-html").TemplateResult<1>;
|
|
14
13
|
}
|
|
15
14
|
declare global {
|
package/nve-designsystem.js
CHANGED
|
@@ -17753,6 +17753,14 @@ const Rd = $`
|
|
|
17753
17753
|
margin-left: var(--spacing-x-small, 0.5rem);
|
|
17754
17754
|
}
|
|
17755
17755
|
|
|
17756
|
+
:host ::slotted(nve-icon) {
|
|
17757
|
+
font-size: 24px;
|
|
17758
|
+
}
|
|
17759
|
+
|
|
17760
|
+
:host([size='small']) ::slotted(nve-icon) {
|
|
17761
|
+
font-size: 20px;
|
|
17762
|
+
}
|
|
17763
|
+
|
|
17756
17764
|
:host::part(label) {
|
|
17757
17765
|
margin: 0 var(--spacing-x-small, 0.5rem);
|
|
17758
17766
|
font: var(--label-medium);
|
|
@@ -18031,48 +18039,50 @@ class Wd {
|
|
|
18031
18039
|
this.host.shadowRoot.removeEventListener("slotchange", this.handleSlotChange);
|
|
18032
18040
|
}
|
|
18033
18041
|
}
|
|
18034
|
-
|
|
18035
|
-
|
|
18042
|
+
const Kd = $`
|
|
18043
|
+
:host {
|
|
18044
|
+
/* Apply Material Icons font-family to the Shadow DOM */
|
|
18045
|
+
font-family: 'Material Symbols Outlined';
|
|
18046
|
+
}
|
|
18047
|
+
/* Brukes i dropdown. Eneste måten å override shadow dom for å rotere expand_more ikonet når menyen åpner */
|
|
18048
|
+
:host([name='expand_more']) {
|
|
18049
|
+
transform: var(--icon-rotation, none);
|
|
18050
|
+
transition: transform 0.3s ease;
|
|
18051
|
+
}
|
|
18052
|
+
|
|
18053
|
+
/* we need it to center the icon */
|
|
18054
|
+
:is(span) {
|
|
18055
|
+
display: inline-flex;
|
|
18056
|
+
line-height: 24px;
|
|
18057
|
+
font-weight: var(--font-weight-regular);
|
|
18058
|
+
}
|
|
18059
|
+
`;
|
|
18060
|
+
var Xd = Object.defineProperty, Gd = Object.getOwnPropertyDescriptor, xi = (t, e, r, o) => {
|
|
18061
|
+
for (var s = o > 1 ? void 0 : o ? Gd(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18036
18062
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18037
|
-
return o && s &&
|
|
18063
|
+
return o && s && Xd(e, r, s), s;
|
|
18038
18064
|
};
|
|
18039
18065
|
let Vr = class extends ie {
|
|
18040
18066
|
constructor() {
|
|
18041
18067
|
super(...arguments), this.name = "";
|
|
18042
18068
|
}
|
|
18069
|
+
firstUpdated() {
|
|
18070
|
+
}
|
|
18043
18071
|
render() {
|
|
18044
18072
|
return v`<span class="material-symbols-outlined">${this.name}</span>`;
|
|
18045
18073
|
}
|
|
18046
18074
|
};
|
|
18047
|
-
Vr.styles =
|
|
18048
|
-
:host {
|
|
18049
|
-
/* Apply Material Icons font-family to the Shadow DOM */
|
|
18050
|
-
font-family: 'Material Symbols Outlined';
|
|
18051
|
-
|
|
18052
|
-
}
|
|
18053
|
-
/* Brukes i dropdown. Eneste måten å override shadow dom for å rotere expand_more ikonet når menyen åpner */
|
|
18054
|
-
:host([name="expand_more"]) {
|
|
18055
|
-
transform: var(--icon-rotation, none);
|
|
18056
|
-
transition: transform 0.3s ease;
|
|
18057
|
-
}
|
|
18058
|
-
|
|
18059
|
-
/* we need it to center the icon */
|
|
18060
|
-
:is(span) {
|
|
18061
|
-
display: inline-flex;
|
|
18062
|
-
line-height: 24px;
|
|
18063
|
-
font-weight: var(--font-weight-regular);
|
|
18064
|
-
}
|
|
18065
|
-
`;
|
|
18075
|
+
Vr.styles = [Kd];
|
|
18066
18076
|
xi([
|
|
18067
18077
|
l({ reflect: !0 })
|
|
18068
18078
|
], Vr.prototype, "name", 2);
|
|
18069
18079
|
Vr = xi([
|
|
18070
18080
|
rt("nve-icon")
|
|
18071
18081
|
], Vr);
|
|
18072
|
-
var
|
|
18073
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
18082
|
+
var Yd = Object.defineProperty, Qd = Object.getOwnPropertyDescriptor, Zd = (t, e, r, o) => {
|
|
18083
|
+
for (var s = o > 1 ? void 0 : o ? Qd(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18074
18084
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18075
|
-
return o && s &&
|
|
18085
|
+
return o && s && Yd(e, r, s), s;
|
|
18076
18086
|
};
|
|
18077
18087
|
let xo = class extends Ks {
|
|
18078
18088
|
constructor() {
|
|
@@ -18080,13 +18090,13 @@ let xo = class extends Ks {
|
|
|
18080
18090
|
}
|
|
18081
18091
|
};
|
|
18082
18092
|
xo.styles = [Ks.styles];
|
|
18083
|
-
xo =
|
|
18093
|
+
xo = Zd([
|
|
18084
18094
|
rt("nve-tooltip")
|
|
18085
18095
|
], xo);
|
|
18086
|
-
var
|
|
18087
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
18096
|
+
var Jd = Object.defineProperty, th = Object.getOwnPropertyDescriptor, wr = (t, e, r, o) => {
|
|
18097
|
+
for (var s = o > 1 ? void 0 : o ? th(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18088
18098
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18089
|
-
return o && s &&
|
|
18099
|
+
return o && s && Jd(e, r, s), s;
|
|
18090
18100
|
};
|
|
18091
18101
|
let xe = class extends ie {
|
|
18092
18102
|
constructor() {
|
|
@@ -18126,7 +18136,7 @@ wr([
|
|
|
18126
18136
|
xe = wr([
|
|
18127
18137
|
rt("nve-label")
|
|
18128
18138
|
], xe);
|
|
18129
|
-
const
|
|
18139
|
+
const eh = $`
|
|
18130
18140
|
:host {
|
|
18131
18141
|
--sl-checkbox-required-content: '*Obligatorisk';
|
|
18132
18142
|
}
|
|
@@ -18181,10 +18191,10 @@ function ko(t, e, r) {
|
|
|
18181
18191
|
o.toggleAttribute(r, e);
|
|
18182
18192
|
});
|
|
18183
18193
|
}
|
|
18184
|
-
var
|
|
18185
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
18194
|
+
var rh = Object.defineProperty, oh = Object.getOwnPropertyDescriptor, Pt = (t, e, r, o) => {
|
|
18195
|
+
for (var s = o > 1 ? void 0 : o ? oh(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18186
18196
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18187
|
-
return o && s &&
|
|
18197
|
+
return o && s && rh(e, r, s), s;
|
|
18188
18198
|
};
|
|
18189
18199
|
let yt = class extends ie {
|
|
18190
18200
|
constructor() {
|
|
@@ -18284,7 +18294,7 @@ let yt = class extends ie {
|
|
|
18284
18294
|
`;
|
|
18285
18295
|
}
|
|
18286
18296
|
};
|
|
18287
|
-
yt.styles = [
|
|
18297
|
+
yt.styles = [eh];
|
|
18288
18298
|
Pt([
|
|
18289
18299
|
l({ type: Boolean, reflect: !0 })
|
|
18290
18300
|
], yt.prototype, "disabled", 2);
|
|
@@ -18321,7 +18331,7 @@ Pt([
|
|
|
18321
18331
|
yt = Pt([
|
|
18322
18332
|
rt("nve-checkbox-group")
|
|
18323
18333
|
], yt);
|
|
18324
|
-
const
|
|
18334
|
+
const sh = $`
|
|
18325
18335
|
:host {
|
|
18326
18336
|
--header-spacing: var(--spacing-x-large, 2rem);
|
|
18327
18337
|
--body-spacing: var(--spacing-x-large, 2rem);
|
|
@@ -18370,10 +18380,10 @@ const oh = $`
|
|
|
18370
18380
|
background-color: rgba(13, 13, 14, 0.40);
|
|
18371
18381
|
}
|
|
18372
18382
|
`;
|
|
18373
|
-
var
|
|
18374
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
18383
|
+
var ih = Object.defineProperty, ah = Object.getOwnPropertyDescriptor, jo = (t, e, r, o) => {
|
|
18384
|
+
for (var s = o > 1 ? void 0 : o ? ah(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18375
18385
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18376
|
-
return o && s &&
|
|
18386
|
+
return o && s && ih(e, r, s), s;
|
|
18377
18387
|
};
|
|
18378
18388
|
let nr = class extends fi {
|
|
18379
18389
|
constructor() {
|
|
@@ -18406,7 +18416,7 @@ let nr = class extends fi {
|
|
|
18406
18416
|
}
|
|
18407
18417
|
}
|
|
18408
18418
|
};
|
|
18409
|
-
nr.styles = [fi.styles,
|
|
18419
|
+
nr.styles = [fi.styles, sh];
|
|
18410
18420
|
jo([
|
|
18411
18421
|
l({ type: String, reflect: !0 })
|
|
18412
18422
|
], nr.prototype, "icon", 2);
|
|
@@ -18416,10 +18426,10 @@ jo([
|
|
|
18416
18426
|
nr = jo([
|
|
18417
18427
|
rt("nve-dialog")
|
|
18418
18428
|
], nr);
|
|
18419
|
-
var
|
|
18420
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
18429
|
+
var nh = Object.defineProperty, lh = Object.getOwnPropertyDescriptor, ch = (t, e, r, o) => {
|
|
18430
|
+
for (var s = o > 1 ? void 0 : o ? lh(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18421
18431
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18422
|
-
return o && s &&
|
|
18432
|
+
return o && s && nh(e, r, s), s;
|
|
18423
18433
|
};
|
|
18424
18434
|
let $o = class extends ui {
|
|
18425
18435
|
constructor() {
|
|
@@ -18436,27 +18446,27 @@ $o.styles = [
|
|
|
18436
18446
|
}
|
|
18437
18447
|
`
|
|
18438
18448
|
];
|
|
18439
|
-
$o =
|
|
18449
|
+
$o = ch([
|
|
18440
18450
|
rt("nve-divider")
|
|
18441
18451
|
], $o);
|
|
18442
|
-
function
|
|
18452
|
+
function dh(t) {
|
|
18443
18453
|
return !!(t.offsetParent || t.offsetWidth || t.offsetHeight || t.getClientRects().length);
|
|
18444
18454
|
}
|
|
18445
|
-
function
|
|
18455
|
+
function hh(t) {
|
|
18446
18456
|
const e = t.tagName.toLowerCase();
|
|
18447
|
-
return t.getAttribute("tabindex") === "-1" || t.hasAttribute("disabled") || e === "input" && t.getAttribute("type") === "radio" && !t.hasAttribute("checked") || !
|
|
18457
|
+
return t.getAttribute("tabindex") === "-1" || t.hasAttribute("disabled") || e === "input" && t.getAttribute("type") === "radio" && !t.hasAttribute("checked") || !dh(t) || window.getComputedStyle(t).visibility === "hidden" ? !1 : (e === "audio" || e === "video") && t.hasAttribute("controls") || t.hasAttribute("tabindex") || t.hasAttribute("contenteditable") && t.getAttribute("contenteditable") !== "false" ? !0 : ["button", "input", "select", "textarea", "a", "audio", "video", "summary"].includes(e);
|
|
18448
18458
|
}
|
|
18449
|
-
function
|
|
18450
|
-
const e =
|
|
18459
|
+
function uh(t) {
|
|
18460
|
+
const e = ph(t), r = e[0] ?? null, o = e[e.length - 1] ?? null;
|
|
18451
18461
|
return { start: r, end: o };
|
|
18452
18462
|
}
|
|
18453
|
-
function
|
|
18463
|
+
function ph(t) {
|
|
18454
18464
|
const e = [];
|
|
18455
18465
|
function r(o) {
|
|
18456
18466
|
if (o instanceof Element) {
|
|
18457
18467
|
if (o.hasAttribute("inert"))
|
|
18458
18468
|
return;
|
|
18459
|
-
!e.includes(o) &&
|
|
18469
|
+
!e.includes(o) && hh(o) && e.push(o);
|
|
18460
18470
|
const s = (a) => {
|
|
18461
18471
|
var n;
|
|
18462
18472
|
return ((n = a.getRootNode({ composed: !0 })) == null ? void 0 : n.host) !== t;
|
|
@@ -18474,15 +18484,15 @@ function uh(t) {
|
|
|
18474
18484
|
return (Number(s.getAttribute("tabindex")) || 0) - a;
|
|
18475
18485
|
});
|
|
18476
18486
|
}
|
|
18477
|
-
const
|
|
18487
|
+
const fh = $`
|
|
18478
18488
|
:host([open]) {
|
|
18479
18489
|
--icon-rotation: rotate(180deg);
|
|
18480
18490
|
}
|
|
18481
18491
|
`;
|
|
18482
|
-
var
|
|
18483
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
18492
|
+
var bh = Object.defineProperty, mh = Object.getOwnPropertyDescriptor, gh = (t, e, r, o) => {
|
|
18493
|
+
for (var s = o > 1 ? void 0 : o ? mh(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18484
18494
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18485
|
-
return o && s &&
|
|
18495
|
+
return o && s && bh(e, r, s), s;
|
|
18486
18496
|
};
|
|
18487
18497
|
let Co = class extends pi {
|
|
18488
18498
|
constructor() {
|
|
@@ -18495,7 +18505,7 @@ let Co = class extends pi {
|
|
|
18495
18505
|
return this.panel.assignedElements({ flatten: !0 }).find((t) => t.tagName.toLowerCase() === "nve-menu");
|
|
18496
18506
|
}
|
|
18497
18507
|
updateAccessibleTrigger() {
|
|
18498
|
-
const e = this.trigger.assignedElements({ flatten: !0 }).find((o) =>
|
|
18508
|
+
const e = this.trigger.assignedElements({ flatten: !0 }).find((o) => uh(o).start);
|
|
18499
18509
|
let r;
|
|
18500
18510
|
if (e) {
|
|
18501
18511
|
switch (e.tagName.toLowerCase()) {
|
|
@@ -18509,11 +18519,11 @@ let Co = class extends pi {
|
|
|
18509
18519
|
}
|
|
18510
18520
|
}
|
|
18511
18521
|
};
|
|
18512
|
-
Co.styles = [pi.styles,
|
|
18513
|
-
Co =
|
|
18522
|
+
Co.styles = [pi.styles, fh];
|
|
18523
|
+
Co = gh([
|
|
18514
18524
|
rt("nve-dropdown")
|
|
18515
18525
|
], Co);
|
|
18516
|
-
const
|
|
18526
|
+
const vh = $`
|
|
18517
18527
|
:host {
|
|
18518
18528
|
/* Overstyring av shoelace-token-verdier */
|
|
18519
18529
|
|
|
@@ -18592,10 +18602,10 @@ const gh = $`
|
|
|
18592
18602
|
margin-inline-start: unset;
|
|
18593
18603
|
}
|
|
18594
18604
|
`;
|
|
18595
|
-
var
|
|
18596
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
18605
|
+
var yh = Object.defineProperty, _h = Object.getOwnPropertyDescriptor, Wr = (t, e, r, o) => {
|
|
18606
|
+
for (var s = o > 1 ? void 0 : o ? _h(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18597
18607
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18598
|
-
return o && s &&
|
|
18608
|
+
return o && s && yh(e, r, s), s;
|
|
18599
18609
|
};
|
|
18600
18610
|
let Pe = class extends li {
|
|
18601
18611
|
constructor() {
|
|
@@ -18639,7 +18649,7 @@ let Pe = class extends li {
|
|
|
18639
18649
|
e && e.remove();
|
|
18640
18650
|
}
|
|
18641
18651
|
};
|
|
18642
|
-
Pe.styles = [li.styles,
|
|
18652
|
+
Pe.styles = [li.styles, vh];
|
|
18643
18653
|
Wr([
|
|
18644
18654
|
l()
|
|
18645
18655
|
], Pe.prototype, "requiredLabel", 2);
|
|
@@ -18652,7 +18662,7 @@ Wr([
|
|
|
18652
18662
|
Pe = Wr([
|
|
18653
18663
|
rt("nve-input")
|
|
18654
18664
|
], Pe);
|
|
18655
|
-
const
|
|
18665
|
+
const wh = $`
|
|
18656
18666
|
|
|
18657
18667
|
:host{
|
|
18658
18668
|
padding: 0px;
|
|
@@ -18661,21 +18671,21 @@ const _h = $`
|
|
|
18661
18671
|
box-shadow: var(--soft);
|
|
18662
18672
|
}
|
|
18663
18673
|
`;
|
|
18664
|
-
var
|
|
18665
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
18674
|
+
var xh = Object.defineProperty, kh = Object.getOwnPropertyDescriptor, $h = (t, e, r, o) => {
|
|
18675
|
+
for (var s = o > 1 ? void 0 : o ? kh(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18666
18676
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18667
|
-
return o && s &&
|
|
18677
|
+
return o && s && xh(e, r, s), s;
|
|
18668
18678
|
};
|
|
18669
18679
|
let So = class extends ni {
|
|
18670
18680
|
constructor() {
|
|
18671
18681
|
super();
|
|
18672
18682
|
}
|
|
18673
18683
|
};
|
|
18674
|
-
So.styles = [ni.styles,
|
|
18675
|
-
So =
|
|
18684
|
+
So.styles = [ni.styles, wh];
|
|
18685
|
+
So = $h([
|
|
18676
18686
|
rt("nve-menu")
|
|
18677
18687
|
], So);
|
|
18678
|
-
const
|
|
18688
|
+
const Ch = $`
|
|
18679
18689
|
:host {
|
|
18680
18690
|
position: relative;
|
|
18681
18691
|
}
|
|
@@ -18782,10 +18792,10 @@ const $h = $`
|
|
|
18782
18792
|
color:var(--neutrals-foreground-subtle);
|
|
18783
18793
|
}
|
|
18784
18794
|
`;
|
|
18785
|
-
var
|
|
18786
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
18795
|
+
var Sh = Object.defineProperty, zh = Object.getOwnPropertyDescriptor, Ue = (t, e, r, o) => {
|
|
18796
|
+
for (var s = o > 1 ? void 0 : o ? zh(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18787
18797
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18788
|
-
return o && s &&
|
|
18798
|
+
return o && s && Sh(e, r, s), s;
|
|
18789
18799
|
};
|
|
18790
18800
|
let de = class extends ai {
|
|
18791
18801
|
constructor() {
|
|
@@ -18798,7 +18808,7 @@ let de = class extends ai {
|
|
|
18798
18808
|
super.updated(t), t.has("subtext") && this.style.setProperty("--nve-menu-item-subtext", `"${this.subtext}"`);
|
|
18799
18809
|
}
|
|
18800
18810
|
};
|
|
18801
|
-
de.styles = [ai.styles,
|
|
18811
|
+
de.styles = [ai.styles, Ch];
|
|
18802
18812
|
Ue([
|
|
18803
18813
|
l({ type: String, reflect: !0 })
|
|
18804
18814
|
], de.prototype, "subtext", 2);
|
|
@@ -18817,7 +18827,7 @@ Ue([
|
|
|
18817
18827
|
de = Ue([
|
|
18818
18828
|
rt("nve-menu-item")
|
|
18819
18829
|
], de);
|
|
18820
|
-
const
|
|
18830
|
+
const Ah = $`
|
|
18821
18831
|
/* Vis hover effekt på control-delen */
|
|
18822
18832
|
:host(:hover)::part(control) {
|
|
18823
18833
|
color: var(--neutrals-foreground-subtle);
|
|
@@ -18882,24 +18892,24 @@ const zh = $`
|
|
|
18882
18892
|
transform: scale(1.75);
|
|
18883
18893
|
}
|
|
18884
18894
|
`;
|
|
18885
|
-
var
|
|
18886
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
18895
|
+
var Eh = Object.defineProperty, Oh = Object.getOwnPropertyDescriptor, Th = (t, e, r, o) => {
|
|
18896
|
+
for (var s = o > 1 ? void 0 : o ? Oh(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18887
18897
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18888
|
-
return o && s &&
|
|
18898
|
+
return o && s && Eh(e, r, s), s;
|
|
18889
18899
|
};
|
|
18890
18900
|
let zo = class extends Zs {
|
|
18891
18901
|
constructor() {
|
|
18892
18902
|
super();
|
|
18893
18903
|
}
|
|
18894
18904
|
};
|
|
18895
|
-
zo.styles = [Zs.styles,
|
|
18896
|
-
zo =
|
|
18905
|
+
zo.styles = [Zs.styles, Ah];
|
|
18906
|
+
zo = Th([
|
|
18897
18907
|
rt("nve-radio")
|
|
18898
18908
|
], zo);
|
|
18899
|
-
var
|
|
18900
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
18909
|
+
var Lh = Object.defineProperty, Ih = Object.getOwnPropertyDescriptor, Ph = (t, e, r, o) => {
|
|
18910
|
+
for (var s = o > 1 ? void 0 : o ? Ih(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18901
18911
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
18902
|
-
return o && s &&
|
|
18912
|
+
return o && s && Lh(e, r, s), s;
|
|
18903
18913
|
};
|
|
18904
18914
|
let Ao = class extends ti {
|
|
18905
18915
|
constructor() {
|
|
@@ -18908,10 +18918,10 @@ let Ao = class extends ti {
|
|
|
18908
18918
|
// TODO: style nve-radio-button
|
|
18909
18919
|
};
|
|
18910
18920
|
Ao.styles = [ti.styles];
|
|
18911
|
-
Ao =
|
|
18921
|
+
Ao = Ph([
|
|
18912
18922
|
rt("nve-radio-button")
|
|
18913
18923
|
], Ao);
|
|
18914
|
-
const
|
|
18924
|
+
const Dh = $`
|
|
18915
18925
|
:host {
|
|
18916
18926
|
/* Overstyring av shoelace-token-verdier */
|
|
18917
18927
|
|
|
@@ -18976,7 +18986,7 @@ const Ph = $`
|
|
|
18976
18986
|
flex-direction: column;
|
|
18977
18987
|
}
|
|
18978
18988
|
`;
|
|
18979
|
-
function
|
|
18989
|
+
function Mh(t, e) {
|
|
18980
18990
|
const r = {
|
|
18981
18991
|
waitUntilFirstUpdate: !1,
|
|
18982
18992
|
...e
|
|
@@ -18994,10 +19004,10 @@ function Dh(t, e) {
|
|
|
18994
19004
|
};
|
|
18995
19005
|
};
|
|
18996
19006
|
}
|
|
18997
|
-
var
|
|
18998
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
19007
|
+
var Rh = Object.defineProperty, Vh = Object.getOwnPropertyDescriptor, pe = (t, e, r, o) => {
|
|
19008
|
+
for (var s = o > 1 ? void 0 : o ? Vh(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
18999
19009
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
19000
|
-
return o && s &&
|
|
19010
|
+
return o && s && Rh(e, r, s), s;
|
|
19001
19011
|
};
|
|
19002
19012
|
let Wt = class extends ei {
|
|
19003
19013
|
constructor() {
|
|
@@ -19077,7 +19087,7 @@ let Wt = class extends ei {
|
|
|
19077
19087
|
this.errorMessageCopy = "", ko(t, !1, "data-invalid"), this.setCustomValidity(""), this.style.removeProperty("--radio-group-error-message");
|
|
19078
19088
|
}
|
|
19079
19089
|
};
|
|
19080
|
-
Wt.styles = [ei.styles,
|
|
19090
|
+
Wt.styles = [ei.styles, Dh];
|
|
19081
19091
|
pe([
|
|
19082
19092
|
l({ reflect: !0 })
|
|
19083
19093
|
], Wt.prototype, "orientation", 2);
|
|
@@ -19097,15 +19107,15 @@ pe([
|
|
|
19097
19107
|
T()
|
|
19098
19108
|
], Wt.prototype, "errorMessageCopy", 2);
|
|
19099
19109
|
pe([
|
|
19100
|
-
|
|
19110
|
+
Mh("disabled")
|
|
19101
19111
|
], Wt.prototype, "connectedCallback", 1);
|
|
19102
19112
|
Wt = pe([
|
|
19103
19113
|
rt("nve-radio-group")
|
|
19104
19114
|
], Wt);
|
|
19105
|
-
var
|
|
19106
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
19115
|
+
var Bh = Object.defineProperty, Fh = Object.getOwnPropertyDescriptor, Uh = (t, e, r, o) => {
|
|
19116
|
+
for (var s = o > 1 ? void 0 : o ? Fh(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
19107
19117
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
19108
|
-
return o && s &&
|
|
19118
|
+
return o && s && Bh(e, r, s), s;
|
|
19109
19119
|
};
|
|
19110
19120
|
let Eo = class extends Gs {
|
|
19111
19121
|
constructor() {
|
|
@@ -19121,10 +19131,10 @@ Eo.styles = [
|
|
|
19121
19131
|
}
|
|
19122
19132
|
`
|
|
19123
19133
|
];
|
|
19124
|
-
Eo =
|
|
19134
|
+
Eo = Uh([
|
|
19125
19135
|
rt("nve-spinner")
|
|
19126
19136
|
], Eo);
|
|
19127
|
-
const
|
|
19137
|
+
const Nh = $`
|
|
19128
19138
|
:host::part(combobox) {
|
|
19129
19139
|
font: var(--body-small);
|
|
19130
19140
|
color: var(--neutrals-foreground-primary, #0d0d0e);
|
|
@@ -19159,10 +19169,10 @@ const Uh = $`
|
|
|
19159
19169
|
background-color: var(--neutrals-background-primary-contrast, #eff8fc);
|
|
19160
19170
|
}
|
|
19161
19171
|
`;
|
|
19162
|
-
var
|
|
19163
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
19172
|
+
var Hh = Object.defineProperty, qh = Object.getOwnPropertyDescriptor, jh = (t, e, r, o) => {
|
|
19173
|
+
for (var s = o > 1 ? void 0 : o ? qh(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
19164
19174
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
19165
|
-
return o && s &&
|
|
19175
|
+
return o && s && Hh(e, r, s), s;
|
|
19166
19176
|
};
|
|
19167
19177
|
let Oo = class extends Ys {
|
|
19168
19178
|
constructor() {
|
|
@@ -19195,11 +19205,11 @@ let Oo = class extends Ys {
|
|
|
19195
19205
|
return this.querySelector("nve-option");
|
|
19196
19206
|
}
|
|
19197
19207
|
};
|
|
19198
|
-
Oo.styles = [Ys.styles,
|
|
19199
|
-
Oo =
|
|
19208
|
+
Oo.styles = [Ys.styles, Nh];
|
|
19209
|
+
Oo = jh([
|
|
19200
19210
|
rt("nve-select")
|
|
19201
19211
|
], Oo);
|
|
19202
|
-
const
|
|
19212
|
+
const Wh = $`
|
|
19203
19213
|
:host {
|
|
19204
19214
|
font: var(--body-small);
|
|
19205
19215
|
color: var(--neutrals-foreground-primary, #0d0d0e);
|
|
@@ -19235,10 +19245,10 @@ const jh = $`
|
|
|
19235
19245
|
background-color: var(--neutrals-background-primary, #fff);
|
|
19236
19246
|
}
|
|
19237
19247
|
`;
|
|
19238
|
-
var
|
|
19239
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
19248
|
+
var Kh = Object.defineProperty, Xh = Object.getOwnPropertyDescriptor, Gh = (t, e, r, o) => {
|
|
19249
|
+
for (var s = o > 1 ? void 0 : o ? Xh(e, r) : e, a = t.length - 1, n; a >= 0; a--)
|
|
19240
19250
|
(n = t[a]) && (s = (o ? n(e, r, s) : n(s)) || s);
|
|
19241
|
-
return o && s &&
|
|
19251
|
+
return o && s && Kh(e, r, s), s;
|
|
19242
19252
|
};
|
|
19243
19253
|
let To = class extends si {
|
|
19244
19254
|
constructor() {
|
|
@@ -19251,8 +19261,8 @@ let To = class extends si {
|
|
|
19251
19261
|
e != null && e.hasAttribute("filled") ? this.toggleAttribute("filled", !0) : this.toggleAttribute("filled", !1);
|
|
19252
19262
|
}
|
|
19253
19263
|
};
|
|
19254
|
-
To.styles = [si.styles,
|
|
19255
|
-
To =
|
|
19264
|
+
To.styles = [si.styles, Wh];
|
|
19265
|
+
To = Gh([
|
|
19256
19266
|
rt("nve-option")
|
|
19257
19267
|
], To);
|
|
19258
19268
|
export {
|
package/nve-designsystem.umd.cjs
CHANGED
|
@@ -737,7 +737,7 @@
|
|
|
737
737
|
background: var(--arrow-color);
|
|
738
738
|
z-index: -1;
|
|
739
739
|
}
|
|
740
|
-
`;const se=Math.min,wt=Math.max,kr=Math.round,Cr=Math.floor,ie=t=>({x:t,y:t}),sa={left:"right",right:"left",bottom:"top",top:"bottom"},ia={start:"end",end:"start"};function oo(t,e,r){return wt(t,se(e,r))}function Ae(t,e){return typeof t=="function"?t(e):t}function ae(t){return t.split("-")[0]}function Ee(t){return t.split("-")[1]}function ss(t){return t==="x"?"y":"x"}function so(t){return t==="y"?"height":"width"}function Je(t){return["top","bottom"].includes(ae(t))?"y":"x"}function io(t){return ss(Je(t))}function aa(t,e,r){r===void 0&&(r=!1);const o=Ee(t),s=io(t),i=so(s);let n=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(n=$r(n)),[n,$r(n)]}function na(t){const e=$r(t);return[ao(t),e,ao(e)]}function ao(t){return t.replace(/start|end/g,e=>ia[e])}function la(t,e,r){const o=["left","right"],s=["right","left"],i=["top","bottom"],n=["bottom","top"];switch(t){case"top":case"bottom":return r?e?s:o:e?o:s;case"left":case"right":return e?i:n;default:return[]}}function ca(t,e,r,o){const s=Ee(t);let i=la(ae(t),r==="start",o);return s&&(i=i.map(n=>n+"-"+s),e&&(i=i.concat(i.map(ao)))),i}function $r(t){return t.replace(/left|right|bottom|top/g,e=>sa[e])}function da(t){return{top:0,right:0,bottom:0,left:0,...t}}function is(t){return typeof t!="number"?da(t):{top:t,right:t,bottom:t,left:t}}function Sr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function as(t,e,r){let{reference:o,floating:s}=t;const i=Je(e),n=io(e),d=so(n),c=ae(e),h=i==="y",b=o.x+o.width/2-s.width/2,u=o.y+o.height/2-s.height/2,p=o[d]/2-s[d]/2;let f;switch(c){case"top":f={x:b,y:o.y-s.height};break;case"bottom":f={x:b,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:u};break;case"left":f={x:o.x-s.width,y:u};break;default:f={x:o.x,y:o.y}}switch(Ee(e)){case"start":f[n]-=p*(r&&h?-1:1);break;case"end":f[n]+=p*(r&&h?-1:1);break}return f}const ha=async(t,e,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:i=[],platform:n}=r,d=i.filter(Boolean),c=await(n.isRTL==null?void 0:n.isRTL(e));let h=await n.getElementRects({reference:t,floating:e,strategy:s}),{x:b,y:u}=as(h,o,c),p=o,f={},m=0;for(let _=0;_<d.length;_++){const{name:z,fn:T}=d[_],{x,y:S,data:v,reset:w}=await T({x:b,y:u,initialPlacement:o,placement:p,strategy:s,middlewareData:f,rects:h,platform:n,elements:{reference:t,floating:e}});if(b=x??b,u=S??u,f={...f,[z]:{...f[z],...v}},w&&m<=50){m++,typeof w=="object"&&(w.placement&&(p=w.placement),w.rects&&(h=w.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:s}):w.rects),{x:b,y:u}=as(h,p,c)),_=-1;continue}}return{x:b,y:u,placement:p,strategy:s,middlewareData:f}};async function no(t,e){var r;e===void 0&&(e={});const{x:o,y:s,platform:i,rects:n,elements:d,strategy:c}=t,{boundary:h="clippingAncestors",rootBoundary:b="viewport",elementContext:u="floating",altBoundary:p=!1,padding:f=0}=Ae(e,t),m=is(f),z=d[p?u==="floating"?"reference":"floating":u],T=Sr(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(z)))==null||r?z:z.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:h,rootBoundary:b,strategy:c})),x=u==="floating"?{...n.floating,x:o,y:s}:n.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),v=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},w=Sr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:S,strategy:c}):x);return{top:(T.top-w.top+m.top)/v.y,bottom:(w.bottom-T.bottom+m.bottom)/v.y,left:(T.left-w.left+m.left)/v.x,right:(w.right-T.right+m.right)/v.x}}const ua=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:s,rects:i,platform:n,elements:d,middlewareData:c}=e,{element:h,padding:b=0}=Ae(t,e)||{};if(h==null)return{};const u=is(b),p={x:r,y:o},f=io(s),m=so(f),_=await n.getDimensions(h),z=f==="y",T=z?"top":"left",x=z?"bottom":"right",S=z?"clientHeight":"clientWidth",v=i.reference[m]+i.reference[f]-p[f]-i.floating[m],w=p[f]-i.reference[f],E=await(n.getOffsetParent==null?void 0:n.getOffsetParent(h));let N=E?E[S]:0;(!N||!await(n.isElement==null?void 0:n.isElement(E)))&&(N=d.floating[S]||i.floating[m]);const B=v/2-w/2,M=N/2-_[m]/2-1,D=se(u[T],M),bt=se(u[x],M),tt=D,Tt=N-_[m]-bt,ht=N/2-_[m]/2+B,vt=oo(tt,ht,Tt),Ht=!c.arrow&&Ee(s)!=null&&ht!=vt&&i.reference[m]/2-(ht<tt?D:bt)-_[m]/2<0,te=Ht?ht<tt?ht-tt:ht-Tt:0;return{[f]:p[f]+te,data:{[f]:vt,centerOffset:ht-vt-te,...Ht&&{alignmentOffset:te}},reset:Ht}}}),pa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,o;const{placement:s,middlewareData:i,rects:n,initialPlacement:d,platform:c,elements:h}=e,{mainAxis:b=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:_=!0,...z}=Ae(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const T=ae(s),x=ae(d)===d,S=await(c.isRTL==null?void 0:c.isRTL(h.floating)),v=p||(x||!_?[$r(d)]:na(d));!p&&m!=="none"&&v.push(...ca(d,_,m,S));const w=[d,...v],E=await no(e,z),N=[];let B=((o=i.flip)==null?void 0:o.overflows)||[];if(b&&N.push(E[T]),u){const tt=aa(s,n,S);N.push(E[tt[0]],E[tt[1]])}if(B=[...B,{placement:s,overflows:N}],!N.every(tt=>tt<=0)){var M,D;const tt=(((M=i.flip)==null?void 0:M.index)||0)+1,Tt=w[tt];if(Tt)return{data:{index:tt,overflows:B},reset:{placement:Tt}};let ht=(D=B.filter(vt=>vt.overflows[0]<=0).sort((vt,Ht)=>vt.overflows[1]-Ht.overflows[1])[0])==null?void 0:D.placement;if(!ht)switch(f){case"bestFit":{var bt;const vt=(bt=B.map(Ht=>[Ht.placement,Ht.overflows.filter(te=>te>0).reduce((te,zh)=>te+zh,0)]).sort((Ht,te)=>Ht[1]-te[1])[0])==null?void 0:bt[0];vt&&(ht=vt);break}case"initialPlacement":ht=d;break}if(s!==ht)return{reset:{placement:ht}}}return{}}}};async function fa(t,e){const{placement:r,platform:o,elements:s}=t,i=await(o.isRTL==null?void 0:o.isRTL(s.floating)),n=ae(r),d=Ee(r),c=Je(r)==="y",h=["left","top"].includes(n)?-1:1,b=i&&c?-1:1,u=Ae(e,t);let{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return d&&typeof m=="number"&&(f=d==="end"?m*-1:m),c?{x:f*b,y:p*h}:{x:p*h,y:f*b}}const ba=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:o}=e,s=await fa(e,t);return{x:r+s.x,y:o+s.y,data:s}}}},ma=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:s}=e,{mainAxis:i=!0,crossAxis:n=!1,limiter:d={fn:z=>{let{x:T,y:x}=z;return{x:T,y:x}}},...c}=Ae(t,e),h={x:r,y:o},b=await no(e,c),u=Je(ae(s)),p=ss(u);let f=h[p],m=h[u];if(i){const z=p==="y"?"top":"left",T=p==="y"?"bottom":"right",x=f+b[z],S=f-b[T];f=oo(x,f,S)}if(n){const z=u==="y"?"top":"left",T=u==="y"?"bottom":"right",x=m+b[z],S=m-b[T];m=oo(x,m,S)}const _=d.fn({...e,[p]:f,[u]:m});return{..._,data:{x:_.x-r,y:_.y-o}}}}},ns=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:s,elements:i}=e,{apply:n=()=>{},...d}=Ae(t,e),c=await no(e,d),h=ae(r),b=Ee(r),u=Je(r)==="y",{width:p,height:f}=o.floating;let m,_;h==="top"||h==="bottom"?(m=h,_=b===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(_=h,m=b==="end"?"top":"bottom");const z=f-c[m],T=p-c[_],x=!e.middlewareData.shift;let S=z,v=T;if(u){const E=p-c.left-c.right;v=b||x?se(T,E):E}else{const E=f-c.top-c.bottom;S=b||x?se(z,E):E}if(x&&!b){const E=wt(c.left,0),N=wt(c.right,0),B=wt(c.top,0),M=wt(c.bottom,0);u?v=p-2*(E!==0||N!==0?E+N:wt(c.left,c.right)):S=f-2*(B!==0||M!==0?B+M:wt(c.top,c.bottom))}await n({...e,availableWidth:v,availableHeight:S});const w=await s.getDimensions(i.floating);return p!==w.width||f!==w.height?{reset:{rects:!0}}:{}}}};function ne(t){return ls(t)?(t.nodeName||"").toLowerCase():"#document"}function xt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Qt(t){var e;return(e=(ls(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ls(t){return t instanceof Node||t instanceof xt(t).Node}function Zt(t){return t instanceof Element||t instanceof xt(t).Element}function jt(t){return t instanceof HTMLElement||t instanceof xt(t).HTMLElement}function cs(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof xt(t).ShadowRoot}function tr(t){const{overflow:e,overflowX:r,overflowY:o,display:s}=It(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(s)}function ga(t){return["table","td","th"].includes(ne(t))}function lo(t){const e=co(),r=It(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function va(t){let e=Oe(t);for(;jt(e)&&!zr(e);){if(lo(e))return e;e=Oe(e)}return null}function co(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zr(t){return["html","body","#document"].includes(ne(t))}function It(t){return xt(t).getComputedStyle(t)}function Ar(t){return Zt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Oe(t){if(ne(t)==="html")return t;const e=t.assignedSlot||t.parentNode||cs(t)&&t.host||Qt(t);return cs(e)?e.host:e}function ds(t){const e=Oe(t);return zr(e)?t.ownerDocument?t.ownerDocument.body:t.body:jt(e)&&tr(e)?e:ds(e)}function er(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=ds(t),i=s===((o=t.ownerDocument)==null?void 0:o.body),n=xt(s);return i?e.concat(n,n.visualViewport||[],tr(s)?s:[],n.frameElement&&r?er(n.frameElement):[]):e.concat(s,er(s,[],r))}function hs(t){const e=It(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const s=jt(t),i=s?t.offsetWidth:r,n=s?t.offsetHeight:o,d=kr(r)!==i||kr(o)!==n;return d&&(r=i,o=n),{width:r,height:o,$:d}}function ho(t){return Zt(t)?t:t.contextElement}function Te(t){const e=ho(t);if(!jt(e))return ie(1);const r=e.getBoundingClientRect(),{width:o,height:s,$:i}=hs(e);let n=(i?kr(r.width):r.width)/o,d=(i?kr(r.height):r.height)/s;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}const ya=ie(0);function us(t){const e=xt(t);return!co()||!e.visualViewport?ya:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _a(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==xt(t)?!1:e}function ve(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=ho(t);let n=ie(1);e&&(o?Zt(o)&&(n=Te(o)):n=Te(t));const d=_a(i,r,o)?us(i):ie(0);let c=(s.left+d.x)/n.x,h=(s.top+d.y)/n.y,b=s.width/n.x,u=s.height/n.y;if(i){const p=xt(i),f=o&&Zt(o)?xt(o):o;let m=p.frameElement;for(;m&&o&&f!==p;){const _=Te(m),z=m.getBoundingClientRect(),T=It(m),x=z.left+(m.clientLeft+parseFloat(T.paddingLeft))*_.x,S=z.top+(m.clientTop+parseFloat(T.paddingTop))*_.y;c*=_.x,h*=_.y,b*=_.x,u*=_.y,c+=x,h+=S,m=xt(m).frameElement}}return Sr({width:b,height:u,x:c,y:h})}function wa(t){let{rect:e,offsetParent:r,strategy:o}=t;const s=jt(r),i=Qt(r);if(r===i)return e;let n={scrollLeft:0,scrollTop:0},d=ie(1);const c=ie(0);if((s||!s&&o!=="fixed")&&((ne(r)!=="body"||tr(i))&&(n=Ar(r)),jt(r))){const h=ve(r);d=Te(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}return{width:e.width*d.x,height:e.height*d.y,x:e.x*d.x-n.scrollLeft*d.x+c.x,y:e.y*d.y-n.scrollTop*d.y+c.y}}function xa(t){return Array.from(t.getClientRects())}function ps(t){return ve(Qt(t)).left+Ar(t).scrollLeft}function ka(t){const e=Qt(t),r=Ar(t),o=t.ownerDocument.body,s=wt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=wt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let n=-r.scrollLeft+ps(t);const d=-r.scrollTop;return It(o).direction==="rtl"&&(n+=wt(e.clientWidth,o.clientWidth)-s),{width:s,height:i,x:n,y:d}}function Ca(t,e){const r=xt(t),o=Qt(t),s=r.visualViewport;let i=o.clientWidth,n=o.clientHeight,d=0,c=0;if(s){i=s.width,n=s.height;const h=co();(!h||h&&e==="fixed")&&(d=s.offsetLeft,c=s.offsetTop)}return{width:i,height:n,x:d,y:c}}function $a(t,e){const r=ve(t,!0,e==="fixed"),o=r.top+t.clientTop,s=r.left+t.clientLeft,i=jt(t)?Te(t):ie(1),n=t.clientWidth*i.x,d=t.clientHeight*i.y,c=s*i.x,h=o*i.y;return{width:n,height:d,x:c,y:h}}function fs(t,e,r){let o;if(e==="viewport")o=Ca(t,r);else if(e==="document")o=ka(Qt(t));else if(Zt(e))o=$a(e,r);else{const s=us(t);o={...e,x:e.x-s.x,y:e.y-s.y}}return Sr(o)}function bs(t,e){const r=Oe(t);return r===e||!Zt(r)||zr(r)?!1:It(r).position==="fixed"||bs(r,e)}function Sa(t,e){const r=e.get(t);if(r)return r;let o=er(t,[],!1).filter(d=>Zt(d)&&ne(d)!=="body"),s=null;const i=It(t).position==="fixed";let n=i?Oe(t):t;for(;Zt(n)&&!zr(n);){const d=It(n),c=lo(n);!c&&d.position==="fixed"&&(s=null),(i?!c&&!s:!c&&d.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||tr(n)&&!c&&bs(t,n))?o=o.filter(b=>b!==n):s=d,n=Oe(n)}return e.set(t,o),o}function za(t){let{element:e,boundary:r,rootBoundary:o,strategy:s}=t;const n=[...r==="clippingAncestors"?Sa(e,this._c):[].concat(r),o],d=n[0],c=n.reduce((h,b)=>{const u=fs(e,b,s);return h.top=wt(u.top,h.top),h.right=se(u.right,h.right),h.bottom=se(u.bottom,h.bottom),h.left=wt(u.left,h.left),h},fs(e,d,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Aa(t){return hs(t)}function Ea(t,e,r){const o=jt(e),s=Qt(e),i=r==="fixed",n=ve(t,!0,i,e);let d={scrollLeft:0,scrollTop:0};const c=ie(0);if(o||!o&&!i)if((ne(e)!=="body"||tr(s))&&(d=Ar(e)),o){const h=ve(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else s&&(c.x=ps(s));return{x:n.left+d.scrollLeft-c.x,y:n.top+d.scrollTop-c.y,width:n.width,height:n.height}}function ms(t,e){return!jt(t)||It(t).position==="fixed"?null:e?e(t):t.offsetParent}function gs(t,e){const r=xt(t);if(!jt(t))return r;let o=ms(t,e);for(;o&&ga(o)&&It(o).position==="static";)o=ms(o,e);return o&&(ne(o)==="html"||ne(o)==="body"&&It(o).position==="static"&&!lo(o))?r:o||va(t)||r}const Oa=async function(t){let{reference:e,floating:r,strategy:o}=t;const s=this.getOffsetParent||gs,i=this.getDimensions;return{reference:Ea(e,await s(r),o),floating:{x:0,y:0,...await i(r)}}};function Ta(t){return It(t).direction==="rtl"}const Er={convertOffsetParentRelativeRectToViewportRelativeRect:wa,getDocumentElement:Qt,getClippingRect:za,getOffsetParent:gs,getElementRects:Oa,getClientRects:xa,getDimensions:Aa,getScale:Te,isElement:Zt,isRTL:Ta};function Ia(t,e){let r=null,o;const s=Qt(t);function i(){clearTimeout(o),r&&r.disconnect(),r=null}function n(d,c){d===void 0&&(d=!1),c===void 0&&(c=1),i();const{left:h,top:b,width:u,height:p}=t.getBoundingClientRect();if(d||e(),!u||!p)return;const f=Cr(b),m=Cr(s.clientWidth-(h+u)),_=Cr(s.clientHeight-(b+p)),z=Cr(h),x={rootMargin:-f+"px "+-m+"px "+-_+"px "+-z+"px",threshold:wt(0,se(1,c))||1};let S=!0;function v(w){const E=w[0].intersectionRatio;if(E!==c){if(!S)return n();E?n(!1,E):o=setTimeout(()=>{n(!1,1e-7)},100)}S=!1}try{r=new IntersectionObserver(v,{...x,root:s.ownerDocument})}catch{r=new IntersectionObserver(v,x)}r.observe(t)}return n(!0),i}function La(t,e,r,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,h=ho(t),b=s||i?[...h?er(h):[],...er(e)]:[];b.forEach(T=>{s&&T.addEventListener("scroll",r,{passive:!0}),i&&T.addEventListener("resize",r)});const u=h&&d?Ia(h,r):null;let p=-1,f=null;n&&(f=new ResizeObserver(T=>{let[x]=T;x&&x.target===h&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{f&&f.observe(e)})),r()}),h&&!c&&f.observe(h),f.observe(e));let m,_=c?ve(t):null;c&&z();function z(){const T=ve(t);_&&(T.x!==_.x||T.y!==_.y||T.width!==_.width||T.height!==_.height)&&r(),_=T,m=requestAnimationFrame(z)}return r(),()=>{b.forEach(T=>{s&&T.removeEventListener("scroll",r),i&&T.removeEventListener("resize",r)}),u&&u(),f&&f.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const Da=(t,e,r)=>{const o=new Map,s={platform:Er,...r},i={...s.platform,_c:o};return ha(t,e,{...s,platform:i})};function Pa(t){return Ma(t)}function uo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ma(t){for(let e=t;e;e=uo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=uo(t);e;e=uo(e)){if(!(e instanceof Element))continue;const r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}function Ra(t){return t!==null&&typeof t=="object"&&"getBoundingClientRect"in t}var W=class extends A{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||Ra(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=La(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;const t=[ba({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(ns({apply:({rects:r})=>{const o=this.sync==="width"||this.sync==="both",s=this.sync==="height"||this.sync==="both";this.popup.style.width=o?`${r.reference.width}px`:"",this.popup.style.height=s?`${r.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(pa({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ma({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(ns({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:r,availableHeight:o})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${o}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${r}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(ua({element:this.arrowEl,padding:this.arrowPadding}));const e=this.strategy==="absolute"?r=>Er.getOffsetParent(r,Pa):Er.getOffsetParent;Da(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:Ne(Xt({},Er),{getOffsetParent:e})}).then(({x:r,y:o,middlewareData:s,placement:i})=>{const n=getComputedStyle(this).direction==="rtl",d={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${r}px`,top:`${o}px`}),this.arrow){const c=s.arrow.x,h=s.arrow.y;let b="",u="",p="",f="";if(this.arrowPlacement==="start"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";b=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",u=n?m:"",f=n?"":m}else if(this.arrowPlacement==="end"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";u=n?"":m,f=n?m:"",p=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(f=typeof c=="number"?"calc(50% - var(--arrow-size-diagonal))":"",b=typeof h=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(f=typeof c=="number"?`${c}px`:"",b=typeof h=="number"?`${h}px`:"");Object.assign(this.arrowEl.style,{top:b,right:u,bottom:p,left:f,[d]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sl-reposition")}render(){return y`
|
|
740
|
+
`;const se=Math.min,wt=Math.max,kr=Math.round,Cr=Math.floor,ie=t=>({x:t,y:t}),sa={left:"right",right:"left",bottom:"top",top:"bottom"},ia={start:"end",end:"start"};function oo(t,e,r){return wt(t,se(e,r))}function Ae(t,e){return typeof t=="function"?t(e):t}function ae(t){return t.split("-")[0]}function Ee(t){return t.split("-")[1]}function ss(t){return t==="x"?"y":"x"}function so(t){return t==="y"?"height":"width"}function Je(t){return["top","bottom"].includes(ae(t))?"y":"x"}function io(t){return ss(Je(t))}function aa(t,e,r){r===void 0&&(r=!1);const o=Ee(t),s=io(t),i=so(s);let n=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(n=$r(n)),[n,$r(n)]}function na(t){const e=$r(t);return[ao(t),e,ao(e)]}function ao(t){return t.replace(/start|end/g,e=>ia[e])}function la(t,e,r){const o=["left","right"],s=["right","left"],i=["top","bottom"],n=["bottom","top"];switch(t){case"top":case"bottom":return r?e?s:o:e?o:s;case"left":case"right":return e?i:n;default:return[]}}function ca(t,e,r,o){const s=Ee(t);let i=la(ae(t),r==="start",o);return s&&(i=i.map(n=>n+"-"+s),e&&(i=i.concat(i.map(ao)))),i}function $r(t){return t.replace(/left|right|bottom|top/g,e=>sa[e])}function da(t){return{top:0,right:0,bottom:0,left:0,...t}}function is(t){return typeof t!="number"?da(t):{top:t,right:t,bottom:t,left:t}}function Sr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function as(t,e,r){let{reference:o,floating:s}=t;const i=Je(e),n=io(e),d=so(n),c=ae(e),h=i==="y",b=o.x+o.width/2-s.width/2,u=o.y+o.height/2-s.height/2,p=o[d]/2-s[d]/2;let f;switch(c){case"top":f={x:b,y:o.y-s.height};break;case"bottom":f={x:b,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:u};break;case"left":f={x:o.x-s.width,y:u};break;default:f={x:o.x,y:o.y}}switch(Ee(e)){case"start":f[n]-=p*(r&&h?-1:1);break;case"end":f[n]+=p*(r&&h?-1:1);break}return f}const ha=async(t,e,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:i=[],platform:n}=r,d=i.filter(Boolean),c=await(n.isRTL==null?void 0:n.isRTL(e));let h=await n.getElementRects({reference:t,floating:e,strategy:s}),{x:b,y:u}=as(h,o,c),p=o,f={},m=0;for(let _=0;_<d.length;_++){const{name:z,fn:T}=d[_],{x,y:S,data:v,reset:w}=await T({x:b,y:u,initialPlacement:o,placement:p,strategy:s,middlewareData:f,rects:h,platform:n,elements:{reference:t,floating:e}});if(b=x??b,u=S??u,f={...f,[z]:{...f[z],...v}},w&&m<=50){m++,typeof w=="object"&&(w.placement&&(p=w.placement),w.rects&&(h=w.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:s}):w.rects),{x:b,y:u}=as(h,p,c)),_=-1;continue}}return{x:b,y:u,placement:p,strategy:s,middlewareData:f}};async function no(t,e){var r;e===void 0&&(e={});const{x:o,y:s,platform:i,rects:n,elements:d,strategy:c}=t,{boundary:h="clippingAncestors",rootBoundary:b="viewport",elementContext:u="floating",altBoundary:p=!1,padding:f=0}=Ae(e,t),m=is(f),z=d[p?u==="floating"?"reference":"floating":u],T=Sr(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(z)))==null||r?z:z.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:h,rootBoundary:b,strategy:c})),x=u==="floating"?{...n.floating,x:o,y:s}:n.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),v=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},w=Sr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:S,strategy:c}):x);return{top:(T.top-w.top+m.top)/v.y,bottom:(w.bottom-T.bottom+m.bottom)/v.y,left:(T.left-w.left+m.left)/v.x,right:(w.right-T.right+m.right)/v.x}}const ua=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:s,rects:i,platform:n,elements:d,middlewareData:c}=e,{element:h,padding:b=0}=Ae(t,e)||{};if(h==null)return{};const u=is(b),p={x:r,y:o},f=io(s),m=so(f),_=await n.getDimensions(h),z=f==="y",T=z?"top":"left",x=z?"bottom":"right",S=z?"clientHeight":"clientWidth",v=i.reference[m]+i.reference[f]-p[f]-i.floating[m],w=p[f]-i.reference[f],E=await(n.getOffsetParent==null?void 0:n.getOffsetParent(h));let N=E?E[S]:0;(!N||!await(n.isElement==null?void 0:n.isElement(E)))&&(N=d.floating[S]||i.floating[m]);const B=v/2-w/2,M=N/2-_[m]/2-1,D=se(u[T],M),bt=se(u[x],M),tt=D,Tt=N-_[m]-bt,ht=N/2-_[m]/2+B,vt=oo(tt,ht,Tt),Ht=!c.arrow&&Ee(s)!=null&&ht!=vt&&i.reference[m]/2-(ht<tt?D:bt)-_[m]/2<0,te=Ht?ht<tt?ht-tt:ht-Tt:0;return{[f]:p[f]+te,data:{[f]:vt,centerOffset:ht-vt-te,...Ht&&{alignmentOffset:te}},reset:Ht}}}),pa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,o;const{placement:s,middlewareData:i,rects:n,initialPlacement:d,platform:c,elements:h}=e,{mainAxis:b=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:_=!0,...z}=Ae(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const T=ae(s),x=ae(d)===d,S=await(c.isRTL==null?void 0:c.isRTL(h.floating)),v=p||(x||!_?[$r(d)]:na(d));!p&&m!=="none"&&v.push(...ca(d,_,m,S));const w=[d,...v],E=await no(e,z),N=[];let B=((o=i.flip)==null?void 0:o.overflows)||[];if(b&&N.push(E[T]),u){const tt=aa(s,n,S);N.push(E[tt[0]],E[tt[1]])}if(B=[...B,{placement:s,overflows:N}],!N.every(tt=>tt<=0)){var M,D;const tt=(((M=i.flip)==null?void 0:M.index)||0)+1,Tt=w[tt];if(Tt)return{data:{index:tt,overflows:B},reset:{placement:Tt}};let ht=(D=B.filter(vt=>vt.overflows[0]<=0).sort((vt,Ht)=>vt.overflows[1]-Ht.overflows[1])[0])==null?void 0:D.placement;if(!ht)switch(f){case"bestFit":{var bt;const vt=(bt=B.map(Ht=>[Ht.placement,Ht.overflows.filter(te=>te>0).reduce((te,Ah)=>te+Ah,0)]).sort((Ht,te)=>Ht[1]-te[1])[0])==null?void 0:bt[0];vt&&(ht=vt);break}case"initialPlacement":ht=d;break}if(s!==ht)return{reset:{placement:ht}}}return{}}}};async function fa(t,e){const{placement:r,platform:o,elements:s}=t,i=await(o.isRTL==null?void 0:o.isRTL(s.floating)),n=ae(r),d=Ee(r),c=Je(r)==="y",h=["left","top"].includes(n)?-1:1,b=i&&c?-1:1,u=Ae(e,t);let{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return d&&typeof m=="number"&&(f=d==="end"?m*-1:m),c?{x:f*b,y:p*h}:{x:p*h,y:f*b}}const ba=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:o}=e,s=await fa(e,t);return{x:r+s.x,y:o+s.y,data:s}}}},ma=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:s}=e,{mainAxis:i=!0,crossAxis:n=!1,limiter:d={fn:z=>{let{x:T,y:x}=z;return{x:T,y:x}}},...c}=Ae(t,e),h={x:r,y:o},b=await no(e,c),u=Je(ae(s)),p=ss(u);let f=h[p],m=h[u];if(i){const z=p==="y"?"top":"left",T=p==="y"?"bottom":"right",x=f+b[z],S=f-b[T];f=oo(x,f,S)}if(n){const z=u==="y"?"top":"left",T=u==="y"?"bottom":"right",x=m+b[z],S=m-b[T];m=oo(x,m,S)}const _=d.fn({...e,[p]:f,[u]:m});return{..._,data:{x:_.x-r,y:_.y-o}}}}},ns=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:s,elements:i}=e,{apply:n=()=>{},...d}=Ae(t,e),c=await no(e,d),h=ae(r),b=Ee(r),u=Je(r)==="y",{width:p,height:f}=o.floating;let m,_;h==="top"||h==="bottom"?(m=h,_=b===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(_=h,m=b==="end"?"top":"bottom");const z=f-c[m],T=p-c[_],x=!e.middlewareData.shift;let S=z,v=T;if(u){const E=p-c.left-c.right;v=b||x?se(T,E):E}else{const E=f-c.top-c.bottom;S=b||x?se(z,E):E}if(x&&!b){const E=wt(c.left,0),N=wt(c.right,0),B=wt(c.top,0),M=wt(c.bottom,0);u?v=p-2*(E!==0||N!==0?E+N:wt(c.left,c.right)):S=f-2*(B!==0||M!==0?B+M:wt(c.top,c.bottom))}await n({...e,availableWidth:v,availableHeight:S});const w=await s.getDimensions(i.floating);return p!==w.width||f!==w.height?{reset:{rects:!0}}:{}}}};function ne(t){return ls(t)?(t.nodeName||"").toLowerCase():"#document"}function xt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Qt(t){var e;return(e=(ls(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ls(t){return t instanceof Node||t instanceof xt(t).Node}function Zt(t){return t instanceof Element||t instanceof xt(t).Element}function jt(t){return t instanceof HTMLElement||t instanceof xt(t).HTMLElement}function cs(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof xt(t).ShadowRoot}function tr(t){const{overflow:e,overflowX:r,overflowY:o,display:s}=It(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(s)}function ga(t){return["table","td","th"].includes(ne(t))}function lo(t){const e=co(),r=It(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function va(t){let e=Oe(t);for(;jt(e)&&!zr(e);){if(lo(e))return e;e=Oe(e)}return null}function co(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zr(t){return["html","body","#document"].includes(ne(t))}function It(t){return xt(t).getComputedStyle(t)}function Ar(t){return Zt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Oe(t){if(ne(t)==="html")return t;const e=t.assignedSlot||t.parentNode||cs(t)&&t.host||Qt(t);return cs(e)?e.host:e}function ds(t){const e=Oe(t);return zr(e)?t.ownerDocument?t.ownerDocument.body:t.body:jt(e)&&tr(e)?e:ds(e)}function er(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=ds(t),i=s===((o=t.ownerDocument)==null?void 0:o.body),n=xt(s);return i?e.concat(n,n.visualViewport||[],tr(s)?s:[],n.frameElement&&r?er(n.frameElement):[]):e.concat(s,er(s,[],r))}function hs(t){const e=It(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const s=jt(t),i=s?t.offsetWidth:r,n=s?t.offsetHeight:o,d=kr(r)!==i||kr(o)!==n;return d&&(r=i,o=n),{width:r,height:o,$:d}}function ho(t){return Zt(t)?t:t.contextElement}function Te(t){const e=ho(t);if(!jt(e))return ie(1);const r=e.getBoundingClientRect(),{width:o,height:s,$:i}=hs(e);let n=(i?kr(r.width):r.width)/o,d=(i?kr(r.height):r.height)/s;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}const ya=ie(0);function us(t){const e=xt(t);return!co()||!e.visualViewport?ya:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _a(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==xt(t)?!1:e}function ve(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=ho(t);let n=ie(1);e&&(o?Zt(o)&&(n=Te(o)):n=Te(t));const d=_a(i,r,o)?us(i):ie(0);let c=(s.left+d.x)/n.x,h=(s.top+d.y)/n.y,b=s.width/n.x,u=s.height/n.y;if(i){const p=xt(i),f=o&&Zt(o)?xt(o):o;let m=p.frameElement;for(;m&&o&&f!==p;){const _=Te(m),z=m.getBoundingClientRect(),T=It(m),x=z.left+(m.clientLeft+parseFloat(T.paddingLeft))*_.x,S=z.top+(m.clientTop+parseFloat(T.paddingTop))*_.y;c*=_.x,h*=_.y,b*=_.x,u*=_.y,c+=x,h+=S,m=xt(m).frameElement}}return Sr({width:b,height:u,x:c,y:h})}function wa(t){let{rect:e,offsetParent:r,strategy:o}=t;const s=jt(r),i=Qt(r);if(r===i)return e;let n={scrollLeft:0,scrollTop:0},d=ie(1);const c=ie(0);if((s||!s&&o!=="fixed")&&((ne(r)!=="body"||tr(i))&&(n=Ar(r)),jt(r))){const h=ve(r);d=Te(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}return{width:e.width*d.x,height:e.height*d.y,x:e.x*d.x-n.scrollLeft*d.x+c.x,y:e.y*d.y-n.scrollTop*d.y+c.y}}function xa(t){return Array.from(t.getClientRects())}function ps(t){return ve(Qt(t)).left+Ar(t).scrollLeft}function ka(t){const e=Qt(t),r=Ar(t),o=t.ownerDocument.body,s=wt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=wt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let n=-r.scrollLeft+ps(t);const d=-r.scrollTop;return It(o).direction==="rtl"&&(n+=wt(e.clientWidth,o.clientWidth)-s),{width:s,height:i,x:n,y:d}}function Ca(t,e){const r=xt(t),o=Qt(t),s=r.visualViewport;let i=o.clientWidth,n=o.clientHeight,d=0,c=0;if(s){i=s.width,n=s.height;const h=co();(!h||h&&e==="fixed")&&(d=s.offsetLeft,c=s.offsetTop)}return{width:i,height:n,x:d,y:c}}function $a(t,e){const r=ve(t,!0,e==="fixed"),o=r.top+t.clientTop,s=r.left+t.clientLeft,i=jt(t)?Te(t):ie(1),n=t.clientWidth*i.x,d=t.clientHeight*i.y,c=s*i.x,h=o*i.y;return{width:n,height:d,x:c,y:h}}function fs(t,e,r){let o;if(e==="viewport")o=Ca(t,r);else if(e==="document")o=ka(Qt(t));else if(Zt(e))o=$a(e,r);else{const s=us(t);o={...e,x:e.x-s.x,y:e.y-s.y}}return Sr(o)}function bs(t,e){const r=Oe(t);return r===e||!Zt(r)||zr(r)?!1:It(r).position==="fixed"||bs(r,e)}function Sa(t,e){const r=e.get(t);if(r)return r;let o=er(t,[],!1).filter(d=>Zt(d)&&ne(d)!=="body"),s=null;const i=It(t).position==="fixed";let n=i?Oe(t):t;for(;Zt(n)&&!zr(n);){const d=It(n),c=lo(n);!c&&d.position==="fixed"&&(s=null),(i?!c&&!s:!c&&d.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||tr(n)&&!c&&bs(t,n))?o=o.filter(b=>b!==n):s=d,n=Oe(n)}return e.set(t,o),o}function za(t){let{element:e,boundary:r,rootBoundary:o,strategy:s}=t;const n=[...r==="clippingAncestors"?Sa(e,this._c):[].concat(r),o],d=n[0],c=n.reduce((h,b)=>{const u=fs(e,b,s);return h.top=wt(u.top,h.top),h.right=se(u.right,h.right),h.bottom=se(u.bottom,h.bottom),h.left=wt(u.left,h.left),h},fs(e,d,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Aa(t){return hs(t)}function Ea(t,e,r){const o=jt(e),s=Qt(e),i=r==="fixed",n=ve(t,!0,i,e);let d={scrollLeft:0,scrollTop:0};const c=ie(0);if(o||!o&&!i)if((ne(e)!=="body"||tr(s))&&(d=Ar(e)),o){const h=ve(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else s&&(c.x=ps(s));return{x:n.left+d.scrollLeft-c.x,y:n.top+d.scrollTop-c.y,width:n.width,height:n.height}}function ms(t,e){return!jt(t)||It(t).position==="fixed"?null:e?e(t):t.offsetParent}function gs(t,e){const r=xt(t);if(!jt(t))return r;let o=ms(t,e);for(;o&&ga(o)&&It(o).position==="static";)o=ms(o,e);return o&&(ne(o)==="html"||ne(o)==="body"&&It(o).position==="static"&&!lo(o))?r:o||va(t)||r}const Oa=async function(t){let{reference:e,floating:r,strategy:o}=t;const s=this.getOffsetParent||gs,i=this.getDimensions;return{reference:Ea(e,await s(r),o),floating:{x:0,y:0,...await i(r)}}};function Ta(t){return It(t).direction==="rtl"}const Er={convertOffsetParentRelativeRectToViewportRelativeRect:wa,getDocumentElement:Qt,getClippingRect:za,getOffsetParent:gs,getElementRects:Oa,getClientRects:xa,getDimensions:Aa,getScale:Te,isElement:Zt,isRTL:Ta};function Ia(t,e){let r=null,o;const s=Qt(t);function i(){clearTimeout(o),r&&r.disconnect(),r=null}function n(d,c){d===void 0&&(d=!1),c===void 0&&(c=1),i();const{left:h,top:b,width:u,height:p}=t.getBoundingClientRect();if(d||e(),!u||!p)return;const f=Cr(b),m=Cr(s.clientWidth-(h+u)),_=Cr(s.clientHeight-(b+p)),z=Cr(h),x={rootMargin:-f+"px "+-m+"px "+-_+"px "+-z+"px",threshold:wt(0,se(1,c))||1};let S=!0;function v(w){const E=w[0].intersectionRatio;if(E!==c){if(!S)return n();E?n(!1,E):o=setTimeout(()=>{n(!1,1e-7)},100)}S=!1}try{r=new IntersectionObserver(v,{...x,root:s.ownerDocument})}catch{r=new IntersectionObserver(v,x)}r.observe(t)}return n(!0),i}function La(t,e,r,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,h=ho(t),b=s||i?[...h?er(h):[],...er(e)]:[];b.forEach(T=>{s&&T.addEventListener("scroll",r,{passive:!0}),i&&T.addEventListener("resize",r)});const u=h&&d?Ia(h,r):null;let p=-1,f=null;n&&(f=new ResizeObserver(T=>{let[x]=T;x&&x.target===h&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{f&&f.observe(e)})),r()}),h&&!c&&f.observe(h),f.observe(e));let m,_=c?ve(t):null;c&&z();function z(){const T=ve(t);_&&(T.x!==_.x||T.y!==_.y||T.width!==_.width||T.height!==_.height)&&r(),_=T,m=requestAnimationFrame(z)}return r(),()=>{b.forEach(T=>{s&&T.removeEventListener("scroll",r),i&&T.removeEventListener("resize",r)}),u&&u(),f&&f.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const Da=(t,e,r)=>{const o=new Map,s={platform:Er,...r},i={...s.platform,_c:o};return ha(t,e,{...s,platform:i})};function Pa(t){return Ma(t)}function uo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ma(t){for(let e=t;e;e=uo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=uo(t);e;e=uo(e)){if(!(e instanceof Element))continue;const r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}function Ra(t){return t!==null&&typeof t=="object"&&"getBoundingClientRect"in t}var W=class extends A{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||Ra(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=La(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;const t=[ba({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(ns({apply:({rects:r})=>{const o=this.sync==="width"||this.sync==="both",s=this.sync==="height"||this.sync==="both";this.popup.style.width=o?`${r.reference.width}px`:"",this.popup.style.height=s?`${r.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(pa({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ma({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(ns({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:r,availableHeight:o})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${o}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${r}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(ua({element:this.arrowEl,padding:this.arrowPadding}));const e=this.strategy==="absolute"?r=>Er.getOffsetParent(r,Pa):Er.getOffsetParent;Da(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:Ne(Xt({},Er),{getOffsetParent:e})}).then(({x:r,y:o,middlewareData:s,placement:i})=>{const n=getComputedStyle(this).direction==="rtl",d={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${r}px`,top:`${o}px`}),this.arrow){const c=s.arrow.x,h=s.arrow.y;let b="",u="",p="",f="";if(this.arrowPlacement==="start"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";b=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",u=n?m:"",f=n?"":m}else if(this.arrowPlacement==="end"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";u=n?"":m,f=n?m:"",p=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(f=typeof c=="number"?"calc(50% - var(--arrow-size-diagonal))":"",b=typeof h=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(f=typeof c=="number"?`${c}px`:"",b=typeof h=="number"?`${h}px`:"");Object.assign(this.arrowEl.style,{top:b,right:u,bottom:p,left:f,[d]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sl-reposition")}render(){return y`
|
|
741
741
|
<slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
|
|
742
742
|
|
|
743
743
|
<div
|
|
@@ -7260,6 +7260,14 @@
|
|
|
7260
7260
|
margin-left: var(--spacing-x-small, 0.5rem);
|
|
7261
7261
|
}
|
|
7262
7262
|
|
|
7263
|
+
:host ::slotted(nve-icon) {
|
|
7264
|
+
font-size: 24px;
|
|
7265
|
+
}
|
|
7266
|
+
|
|
7267
|
+
:host([size='small']) ::slotted(nve-icon) {
|
|
7268
|
+
font-size: 20px;
|
|
7269
|
+
}
|
|
7270
|
+
|
|
7263
7271
|
:host::part(label) {
|
|
7264
7272
|
margin: 0 var(--spacing-x-small, 0.5rem);
|
|
7265
7273
|
font: var(--label-medium);
|
|
@@ -7458,32 +7466,31 @@
|
|
|
7458
7466
|
cursor: pointer;
|
|
7459
7467
|
margin-left: var(--spacing-xx-small);
|
|
7460
7468
|
}
|
|
7461
|
-
`;class Cd{constructor(e,...r){this.slotNames=[],this.handleSlotChange=o=>{const s=o.target;(this.slotNames.includes("[default]")&&!s.name||s.name&&this.slotNames.includes(s.name))&&this.host.requestUpdate()},(this.host=e).addController(this),this.slotNames=r}hasDefaultSlot(){return[...this.host.childNodes].some(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent.trim()!=="")return!0;if(e.nodeType===e.ELEMENT_NODE){const r=e;if(r.tagName.toLowerCase()==="sl-visually-hidden")return!1;if(!r.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(e){return this.get(e)!==null}get(e){return this.host.querySelector(`:scope > [slot="${e}"]`)}test(e){return e==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(e)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}}
|
|
7462
|
-
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
:
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
}
|
|
7469
|
+
`;class Cd{constructor(e,...r){this.slotNames=[],this.handleSlotChange=o=>{const s=o.target;(this.slotNames.includes("[default]")&&!s.name||s.name&&this.slotNames.includes(s.name))&&this.host.requestUpdate()},(this.host=e).addController(this),this.slotNames=r}hasDefaultSlot(){return[...this.host.childNodes].some(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent.trim()!=="")return!0;if(e.nodeType===e.ELEMENT_NODE){const r=e;if(r.tagName.toLowerCase()==="sl-visually-hidden")return!1;if(!r.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(e){return this.get(e)!==null}get(e){return this.host.querySelector(`:scope > [slot="${e}"]`)}test(e){return e==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(e)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}}const $d=$`
|
|
7470
|
+
:host {
|
|
7471
|
+
/* Apply Material Icons font-family to the Shadow DOM */
|
|
7472
|
+
font-family: 'Material Symbols Outlined';
|
|
7473
|
+
}
|
|
7474
|
+
/* Brukes i dropdown. Eneste måten å override shadow dom for å rotere expand_more ikonet når menyen åpner */
|
|
7475
|
+
:host([name='expand_more']) {
|
|
7476
|
+
transform: var(--icon-rotation, none);
|
|
7477
|
+
transition: transform 0.3s ease;
|
|
7478
|
+
}
|
|
7472
7479
|
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
+
/* we need it to center the icon */
|
|
7481
|
+
:is(span) {
|
|
7482
|
+
display: inline-flex;
|
|
7483
|
+
line-height: 24px;
|
|
7484
|
+
font-weight: var(--font-weight-regular);
|
|
7485
|
+
}
|
|
7486
|
+
`;var Sd=Object.defineProperty,zd=Object.getOwnPropertyDescriptor,ri=(t,e,r,o)=>{for(var s=o>1?void 0:o?zd(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&Sd(e,r,s),s};g.NveIcon=class extends oe{constructor(){super(...arguments),this.name=""}firstUpdated(){}render(){return y`<span class="material-symbols-outlined">${this.name}</span>`}},g.NveIcon.styles=[$d],ri([l({reflect:!0})],g.NveIcon.prototype,"name",2),g.NveIcon=ri([et("nve-icon")],g.NveIcon);var Ad=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,Od=(t,e,r,o)=>{for(var s=o>1?void 0:o?Ed(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&Ad(e,r,s),s};g.NveTooltip=class extends vs{constructor(){super()}},g.NveTooltip.styles=[vs.styles],g.NveTooltip=Od([et("nve-tooltip")],g.NveTooltip);var Td=Object.defineProperty,Id=Object.getOwnPropertyDescriptor,br=(t,e,r,o)=>{for(var s=o>1?void 0:o?Id(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&Td(e,r,s),s};g.NveLabel=class extends oe{constructor(){super(...arguments),this.hasSlotController=new Cd(this,"tooltip"),this.value="",this.size="small",this.light=!1,this.tooltip=void 0}renderInfoIconWithTooltip(){let e=this.tooltip;return e!=null&&e.length||(e=this.hasSlotController.get("tooltip")),e?y`<nve-tooltip placement="top">
|
|
7480
7487
|
<div slot="content">${e}</div>
|
|
7481
7488
|
<nve-icon class="nve-info-icon" name="Info"></nve-icon>
|
|
7482
7489
|
</nve-tooltip>`:y``}renderValueProperty(){return this.value.length?y` <label part="form-control-label" class="form-control__label" aria-hidden="false">
|
|
7483
7490
|
<slot name="label">${this.value}</slot>
|
|
7484
7491
|
</label>`:y` <label part="form-control-label" class="form-control__label" aria-hidden="false">
|
|
7485
7492
|
<slot></slot>
|
|
7486
|
-
</label>`}render(){return y` ${this.renderValueProperty()} ${this.renderInfoIconWithTooltip()} `}},g.NveLabel.styles=[kd],br([l({reflect:!0})],g.NveLabel.prototype,"value",2),br([l({reflect:!0})],g.NveLabel.prototype,"size",2),br([l({type:Boolean,reflect:!0})],g.NveLabel.prototype,"light",2),br([l({reflect:!0})],g.NveLabel.prototype,"tooltip",2),g.NveLabel=br([et("nve-label")],g.NveLabel);const
|
|
7493
|
+
</label>`}render(){return y` ${this.renderValueProperty()} ${this.renderInfoIconWithTooltip()} `}},g.NveLabel.styles=[kd],br([l({reflect:!0})],g.NveLabel.prototype,"value",2),br([l({reflect:!0})],g.NveLabel.prototype,"size",2),br([l({type:Boolean,reflect:!0})],g.NveLabel.prototype,"light",2),br([l({reflect:!0})],g.NveLabel.prototype,"tooltip",2),g.NveLabel=br([et("nve-label")],g.NveLabel);const Ld=$`
|
|
7487
7494
|
:host {
|
|
7488
7495
|
--sl-checkbox-required-content: '*Obligatorisk';
|
|
7489
7496
|
}
|
|
@@ -7532,7 +7539,7 @@
|
|
|
7532
7539
|
font: var(--body-xsmall);
|
|
7533
7540
|
color: var(--feedback-background-emphasized-error);
|
|
7534
7541
|
}
|
|
7535
|
-
`;function $o(t,e,r){t.forEach(o=>{o.toggleAttribute(r,e)})}var
|
|
7542
|
+
`;function $o(t,e,r){t.forEach(o=>{o.toggleAttribute(r,e)})}var Dd=Object.defineProperty,Pd=Object.getOwnPropertyDescriptor,Dt=(t,e,r,o)=>{for(var s=o>1?void 0:o?Pd(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&Dd(e,r,s),s};g.NveCheckboxGroup=class extends oe{constructor(){super(),this.disabled=!1,this.required=!1,this.orientation="vertical",this.requiredLabel="*Obligatorisk",this.showErrorMessage=!1,this.isCustomValidationError=!1,this.updateSelectedValues=e=>{if(!this.selectedValues)return;const r=e.target;if(r.checked)this.selectedValues.push(r.value);else{const o=this.selectedValues.findIndex(s=>s===r.value);o!==-1&&this.selectedValues.splice(o,1)}this.requestUpdate()}}connectedCallback(){super.connectedCallback();const e=this.closest("form");e==null||e.addEventListener("submit",this.handleSubmit.bind(this)),this.addEventListener("sl-change",this.handleChange.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sl-change",this.handleChange),this.removeEventListener("submit",this.handleSubmit)}firstUpdated(){var r;if(this.requiredLabel&&this.style.setProperty("--sl-checkbox-required-content",`"${this.requiredLabel}"`),!((r=this.selectedValues)!=null&&r.length))return;Array.from(this.querySelectorAll("nve-checkbox")).forEach(o=>{var s;(s=this.selectedValues)!=null&&s.includes(o.value)?o.checked=!0:o.checked=!1})}updated(e){if(super.updated(e),e.has("disabled")){const r=Array.from(this.querySelectorAll("nve-checkbox"));$o(r,this.disabled,"disabled")}}setCustomValidity(e=""){const r=!e.length;r?this.resetValidation():(this.errorMessage=e,this.makeInvalid()),this.isCustomValidationError=!r,this.toggleValidationAttributes(r)}handleSubmit(e){e.preventDefault(),this.checkValidity()}handleChange(e){this.updateSelectedValues(e),this.checkValidity()}checkValidity(){if(!this.required||this.isCustomValidationError)return;let e=!0;this.required&&(e=this.checkIfRequiredValid()),e?this.resetValidation():this.makeInvalid(),this.toggleValidationAttributes(e)}toggleValidationAttributes(e){this.toggleAttribute("data-valid",e),this.toggleAttribute("data-user-valid",e),this.toggleAttribute("data-invalid",!e),this.toggleAttribute("data-user-invalid",!e)}resetValidation(){Array.from(this.querySelectorAll("nve-checkbox")).forEach(r=>{r.toggleAttribute("data-user-invalid",!1),r.setCustomValidity("")}),this.showErrorMessage=!1}makeInvalid(){Array.from(this.querySelectorAll("nve-checkbox")).forEach(o=>{o.toggleAttribute("data-user-invalid",!0),o.setCustomValidity(this.errorMessage||"Error")}),this.showErrorMessage=!0;const r=new Event("sl-invalid",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}checkIfRequiredValid(){return Array.from(this.querySelectorAll("nve-checkbox")).some(o=>o.checked)}render(){return y`
|
|
7536
7543
|
<fieldset
|
|
7537
7544
|
class="checkbox-group"
|
|
7538
7545
|
aria-required=${this.required}
|
|
@@ -7548,7 +7555,7 @@
|
|
|
7548
7555
|
>${this.errorMessage||null}</span
|
|
7549
7556
|
>`:null}
|
|
7550
7557
|
</fieldset>
|
|
7551
|
-
`}},g.NveCheckboxGroup.styles=[
|
|
7558
|
+
`}},g.NveCheckboxGroup.styles=[Ld],Dt([l({type:Boolean,reflect:!0})],g.NveCheckboxGroup.prototype,"disabled",2),Dt([l({type:Boolean,reflect:!0})],g.NveCheckboxGroup.prototype,"required",2),Dt([l()],g.NveCheckboxGroup.prototype,"label",2),Dt([l()],g.NveCheckboxGroup.prototype,"tooltip",2),Dt([l()],g.NveCheckboxGroup.prototype,"orientation",2),Dt([l()],g.NveCheckboxGroup.prototype,"errorMessage",2),Dt([l()],g.NveCheckboxGroup.prototype,"requiredLabel",2),Dt([l({type:Array})],g.NveCheckboxGroup.prototype,"selectedValues",2),Dt([C("slot")],g.NveCheckboxGroup.prototype,"slot",2),Dt([I()],g.NveCheckboxGroup.prototype,"showErrorMessage",2),Dt([I()],g.NveCheckboxGroup.prototype,"isCustomValidationError",2),g.NveCheckboxGroup=Dt([et("nve-checkbox-group")],g.NveCheckboxGroup);const Md=$`
|
|
7552
7559
|
:host {
|
|
7553
7560
|
--header-spacing: var(--spacing-x-large, 2rem);
|
|
7554
7561
|
--body-spacing: var(--spacing-x-large, 2rem);
|
|
@@ -7596,17 +7603,17 @@
|
|
|
7596
7603
|
.dialog__overlay {
|
|
7597
7604
|
background-color: rgba(13, 13, 14, 0.40);
|
|
7598
7605
|
}
|
|
7599
|
-
`;var
|
|
7606
|
+
`;var Rd=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,So=(t,e,r,o)=>{for(var s=o>1?void 0:o?Nd(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&Rd(e,r,s),s};g.NveDialog=class extends Us{constructor(){super(),this.icon="",this.disableBackground=!1}handleRequestClose(e){this.disableBackground&&e.detail.source==="overlay"&&e.preventDefault()}updated(e){super.updated(e),e.has("disableBackground")&&this.addEventListener("sl-request-close",this.handleRequestClose),this.updateIcon()}updateIcon(){var r;const e=(r=this.shadowRoot)==null?void 0:r.querySelector(".dialog__title");if(e instanceof HTMLElement){const o=this.icon?`"${this.icon}"`:"none";e.style.setProperty("--title-icon",o)}}},g.NveDialog.styles=[Us.styles,Md],So([l({type:String,reflect:!0})],g.NveDialog.prototype,"icon",2),So([l({type:Boolean,reflect:!0})],g.NveDialog.prototype,"disableBackground",2),g.NveDialog=So([et("nve-dialog")],g.NveDialog);var Bd=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,Fd=(t,e,r,o)=>{for(var s=o>1?void 0:o?Vd(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&Bd(e,r,s),s};g.NveDivider=class extends Vs{constructor(){super()}},g.NveDivider.styles=[Vs.styles,$`
|
|
7600
7607
|
:host {
|
|
7601
7608
|
--color: var(--neutrals-border-default);
|
|
7602
7609
|
--width: var(--border-width-default, 1px);
|
|
7603
7610
|
--spacing: var(--spacing-xx-small, 0.25rem);
|
|
7604
7611
|
}
|
|
7605
|
-
`],g.NveDivider=
|
|
7612
|
+
`],g.NveDivider=Fd([et("nve-divider")],g.NveDivider);function Ud(t){return!!(t.offsetParent||t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Hd(t){const e=t.tagName.toLowerCase();return t.getAttribute("tabindex")==="-1"||t.hasAttribute("disabled")||e==="input"&&t.getAttribute("type")==="radio"&&!t.hasAttribute("checked")||!Ud(t)||window.getComputedStyle(t).visibility==="hidden"?!1:(e==="audio"||e==="video")&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(e)}function qd(t){const e=jd(t),r=e[0]??null,o=e[e.length-1]??null;return{start:r,end:o}}function jd(t){const e=[];function r(o){if(o instanceof Element){if(o.hasAttribute("inert"))return;!e.includes(o)&&Hd(o)&&e.push(o);const s=i=>{var n;return((n=i.getRootNode({composed:!0}))==null?void 0:n.host)!==t};o instanceof HTMLSlotElement&&s(o)&&o.assignedElements({flatten:!0}).forEach(i=>{i instanceof HTMLElement&&r(i)}),o.shadowRoot!==null&&o.shadowRoot.mode==="open"&&r(o.shadowRoot)}[...o.children].forEach(s=>{s instanceof HTMLElement&&r(s)})}return r(t),e.sort((o,s)=>{const i=Number(o.getAttribute("tabindex"))||0;return(Number(s.getAttribute("tabindex"))||0)-i})}const Wd=$`
|
|
7606
7613
|
:host([open]) {
|
|
7607
7614
|
--icon-rotation: rotate(180deg);
|
|
7608
7615
|
}
|
|
7609
|
-
`;var
|
|
7616
|
+
`;var Gd=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,Xd=(t,e,r,o)=>{for(var s=o>1?void 0:o?Kd(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&Gd(e,r,s),s};g.NveDropdown=class extends Fs{constructor(){super(),this.handlePanelSelect=e=>{const r=e.target;!this.stayOpenOnSelect&&r.tagName.toLowerCase()==="nve-menu"&&this.focusOnTrigger()}}getMenu(){return this.panel.assignedElements({flatten:!0}).find(e=>e.tagName.toLowerCase()==="nve-menu")}updateAccessibleTrigger(){const r=this.trigger.assignedElements({flatten:!0}).find(s=>qd(s).start);let o;if(r){switch(r.tagName.toLowerCase()){case"nve-button":o=r.button;break;default:o=r}o.setAttribute("aria-haspopup","true"),o.setAttribute("aria-expanded",this.open?"true":"false")}}},g.NveDropdown.styles=[Fs.styles,Wd],g.NveDropdown=Xd([et("nve-dropdown")],g.NveDropdown);const Yd=$`
|
|
7610
7617
|
:host {
|
|
7611
7618
|
/* Overstyring av shoelace-token-verdier */
|
|
7612
7619
|
|
|
@@ -7684,7 +7691,7 @@
|
|
|
7684
7691
|
justify-content: space-between;
|
|
7685
7692
|
margin-inline-start: unset;
|
|
7686
7693
|
}
|
|
7687
|
-
`;var
|
|
7694
|
+
`;var Qd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,Br=(t,e,r,o)=>{for(var s=o>1?void 0:o?Zd(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&Qd(e,r,s),s};g.NveInput=class extends Ps{constructor(){super(),this.requiredLabel="*Obligatorisk",this.alreadyInvalid=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("sl-invalid",e=>{e.preventDefault(),this.alreadyInvalid||this.makeInvalid()})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sl-invalid",this.makeInvalid)}firstUpdated(){super.firstUpdated(),this.requiredLabel&&this.style.setProperty("--sl-input-required-content",`"${this.requiredLabel}"`)}updated(e){super.updated(e);const r=this.hasAttribute("data-user-invalid");r&&!this.alreadyInvalid&&this.makeInvalid(),r||this.resetValidation()}makeInvalid(){this.showErrorIcon(),this.showErrorMessage(),this.alreadyInvalid=!0}resetValidation(){this.hideErrorIcon(),this.style.setProperty("--nve-input-error-message",""),this.alreadyInvalid=!1}showErrorMessage(){this.errorMessage||(this.errorMessage=this.validationMessage),this.style.setProperty("--nve-input-error-message",`"${this.errorMessage}"`)}showErrorIcon(){const e=this,r=document.createElement("nve-icon");r.setAttribute("name","error"),r.setAttribute("slot","suffix");const o=getComputedStyle(document.documentElement).getPropertyValue("--feedback-background-emphasized-error");r.style.color=o.trim(),e.appendChild(r)}hideErrorIcon(){const r=this.querySelector('[slot="suffix"]');r&&r.remove()}},g.NveInput.styles=[Ps.styles,Yd],Br([l()],g.NveInput.prototype,"requiredLabel",2),Br([l({reflect:!0})],g.NveInput.prototype,"errorMessage",2),Br([I()],g.NveInput.prototype,"alreadyInvalid",2),g.NveInput=Br([et("nve-input")],g.NveInput);const Jd=$`
|
|
7688
7695
|
|
|
7689
7696
|
:host{
|
|
7690
7697
|
padding: 0px;
|
|
@@ -7692,7 +7699,7 @@
|
|
|
7692
7699
|
border: none;
|
|
7693
7700
|
box-shadow: var(--soft);
|
|
7694
7701
|
}
|
|
7695
|
-
`;var
|
|
7702
|
+
`;var th=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,rh=(t,e,r,o)=>{for(var s=o>1?void 0:o?eh(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&th(e,r,s),s};g.NveMenu=class extends Ds{constructor(){super()}},g.NveMenu.styles=[Ds.styles,Jd],g.NveMenu=rh([et("nve-menu")],g.NveMenu);const oh=$`
|
|
7696
7703
|
:host {
|
|
7697
7704
|
position: relative;
|
|
7698
7705
|
}
|
|
@@ -7798,7 +7805,7 @@
|
|
|
7798
7805
|
:host::part(submenu-icon) {
|
|
7799
7806
|
color:var(--neutrals-foreground-subtle);
|
|
7800
7807
|
}
|
|
7801
|
-
`;var
|
|
7808
|
+
`;var sh=Object.defineProperty,ih=Object.getOwnPropertyDescriptor,Re=(t,e,r,o)=>{for(var s=o>1?void 0:o?ih(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&sh(e,r,s),s};g.NveMenuItem=class extends Ls{constructor(){super(),this.subtext="",this.dividerTop=!1,this.dividerBottom=!1,this.indent=!1,this.category=!1}updated(e){super.updated(e),e.has("subtext")&&this.style.setProperty("--nve-menu-item-subtext",`"${this.subtext}"`)}},g.NveMenuItem.styles=[Ls.styles,oh],Re([l({type:String,reflect:!0})],g.NveMenuItem.prototype,"subtext",2),Re([l({type:Boolean,reflect:!0})],g.NveMenuItem.prototype,"dividerTop",2),Re([l({type:Boolean,reflect:!0})],g.NveMenuItem.prototype,"dividerBottom",2),Re([l({type:Boolean,reflect:!0})],g.NveMenuItem.prototype,"indent",2),Re([l({type:Boolean,reflect:!0})],g.NveMenuItem.prototype,"category",2),g.NveMenuItem=Re([et("nve-menu-item")],g.NveMenuItem);const ah=$`
|
|
7802
7809
|
/* Vis hover effekt på control-delen */
|
|
7803
7810
|
:host(:hover)::part(control) {
|
|
7804
7811
|
color: var(--neutrals-foreground-subtle);
|
|
@@ -7862,7 +7869,7 @@
|
|
|
7862
7869
|
sl-icon::part(checked-icon) {
|
|
7863
7870
|
transform: scale(1.75);
|
|
7864
7871
|
}
|
|
7865
|
-
`;var
|
|
7872
|
+
`;var nh=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,ch=(t,e,r,o)=>{for(var s=o>1?void 0:o?lh(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&nh(e,r,s),s};g.NveRadio=class extends $s{constructor(){super()}},g.NveRadio.styles=[$s.styles,ah],g.NveRadio=ch([et("nve-radio")],g.NveRadio);var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,uh=(t,e,r,o)=>{for(var s=o>1?void 0:o?hh(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&dh(e,r,s),s};g.NveRadioButton=class extends zs{constructor(){super()}},g.NveRadioButton.styles=[zs.styles],g.NveRadioButton=uh([et("nve-radio-button")],g.NveRadioButton);const ph=$`
|
|
7866
7873
|
:host {
|
|
7867
7874
|
/* Overstyring av shoelace-token-verdier */
|
|
7868
7875
|
|
|
@@ -7926,11 +7933,11 @@
|
|
|
7926
7933
|
:host([vertical])::part(form-control-input) {
|
|
7927
7934
|
flex-direction: column;
|
|
7928
7935
|
}
|
|
7929
|
-
`;function
|
|
7936
|
+
`;function fh(t,e){const r={waitUntilFirstUpdate:!1,...e};return(o,s)=>{const{update:i}=o,n=Array.isArray(t)?t:[t];o.update=function(d){n.forEach(c=>{const h=c;if(d.has(h)){const b=d.get(h),u=this[h];b!==u&&(!r.waitUntilFirstUpdate||this.hasUpdated)&&this[s](b,u)}}),i.call(this,d)}}}var bh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,he=(t,e,r,o)=>{for(var s=o>1?void 0:o?mh(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&bh(e,r,s),s};g.NveRadioGroup=class extends As{constructor(){super(),this.orientation="vertical",this.disabled=!1,this.requiredLabel="*Obligatorisk",this.alreadyInvalid=!1,this.errorMessageCopy="",this.getAllRadios=function(){return[...this.querySelectorAll("sl-radio, sl-radio-button, nve-radio, nve-radio-button")]},this.handleRadioClick=function(e){const r=e.target.closest("sl-radio, sl-radio-button, nve-radio, nve-radio-button"),o=this.getAllRadios(),s=this.value;if(!r||r.disabled)return;const i=r.shadowRoot.querySelectorAll("span[part='base']");i.length>0&&i[0].focus(),this.value=r.value,o.forEach(n=>n.checked=n===r),this.value!==s&&(this.emit("sl-change"),this.emit("sl-input"))},this.syncRadioElements=async function(){var r,o,s;const e=this.getAllRadios();if(await Promise.all(e.map(async i=>{await i.updateComplete,i.checked=i.value===this.value,i.size=this.size})),this.hasButtonGroup=e.some(i=>i.tagName.toLowerCase()==="sl-radio-button"||i.tagName.toLowerCase()==="nve-radio-button"),!e.some(i=>i.checked))if(this.hasButtonGroup){const i=(r=e[0].shadowRoot)==null?void 0:r.querySelector("button");i&&(i.tabIndex=0)}else e[0].tabIndex=0;if(this.hasButtonGroup){const i=((o=this.shadowRoot)==null?void 0:o.querySelector("sl-button-group"))||((s=this.shadowRoot)==null?void 0:s.querySelector("nve-button-group"));i&&(i.disableRole=!0)}},this.syncRadios=function(){if(customElements.get("sl-radio")&&customElements.get("sl-radio-button")||customElements.get("nve-radio")&&customElements.get("nve-radio-button")){this.syncRadioElements();return}customElements.get("sl-radio")||customElements.get("nve-radio")?this.syncRadioElements():customElements.whenDefined("sl-radio").then(()=>this.syncRadios()),customElements.get("sl-radio-button")||customElements.get("nve-radio-button")?this.syncRadioElements():(customElements.whenDefined("sl-radio-button").then(()=>this.syncRadios()),customElements.whenDefined("nve-radio-button").then(()=>this.syncRadios()))}}connectedCallback(){super.connectedCallback(),this.errorMessageCopy=this.errorMessage||"",this.addEventListener("sl-invalid",e=>{e.preventDefault(),this.alreadyInvalid||this.makeInvalid()}),this.addEventListener("sl-change",this.resetValidation.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sl-invalid",this.makeInvalid),this.removeEventListener("sl-change",this.resetValidation)}updated(e){super.updated(e),e.has("requiredLabel")&&this.style.setProperty("--sl-input-required-content",`"${this.requiredLabel}"`);const r=this.hasAttribute("data-user-invalid");r&&!this.alreadyInvalid&&this.makeInvalid(),r||this.resetValidation()}handlePropChange(e,r){const o=this.getAllRadios();return r!==e?(o.forEach(i=>{i.was_disabled===void 0?i.was_disabled=i.disabled:e===!0?i.disabled=i.was_disabled:(i.was_disabled=i.disabled,i.disabled=!0)}),!0):!1}makeInvalid(){const e=this.getAllRadios();$o(e,!0,"data-invalid"),this.errorMessageCopy||(this.errorMessageCopy=this.validationMessage),this.setCustomValidity(this.errorMessageCopy),this.style.setProperty("--radio-group-error-message",`"${this.errorMessageCopy}"`)}resetValidation(){const e=this.getAllRadios();this.errorMessageCopy="",$o(e,!1,"data-invalid"),this.setCustomValidity(""),this.style.removeProperty("--radio-group-error-message")}},g.NveRadioGroup.styles=[As.styles,ph],he([l({reflect:!0})],g.NveRadioGroup.prototype,"orientation",2),he([l({type:Boolean,reflect:!0})],g.NveRadioGroup.prototype,"disabled",2),he([l({reflect:!0})],g.NveRadioGroup.prototype,"errorMessage",2),he([l()],g.NveRadioGroup.prototype,"requiredLabel",2),he([I()],g.NveRadioGroup.prototype,"alreadyInvalid",2),he([I()],g.NveRadioGroup.prototype,"errorMessageCopy",2),he([fh("disabled")],g.NveRadioGroup.prototype,"connectedCallback",1),g.NveRadioGroup=he([et("nve-radio-group")],g.NveRadioGroup);var gh=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,yh=(t,e,r,o)=>{for(var s=o>1?void 0:o?vh(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&gh(e,r,s),s};g.NveSpinner=class extends xs{constructor(){super()}},g.NveSpinner.styles=[xs.styles,$`
|
|
7930
7937
|
.spinner__track {
|
|
7931
7938
|
stroke: transparent;
|
|
7932
7939
|
}
|
|
7933
|
-
`],g.NveSpinner=
|
|
7940
|
+
`],g.NveSpinner=yh([et("nve-spinner")],g.NveSpinner);const _h=$`
|
|
7934
7941
|
:host::part(combobox) {
|
|
7935
7942
|
font: var(--body-small);
|
|
7936
7943
|
color: var(--neutrals-foreground-primary, #0d0d0e);
|
|
@@ -7964,7 +7971,7 @@
|
|
|
7964
7971
|
:host([filled])::part(listbox) {
|
|
7965
7972
|
background-color: var(--neutrals-background-primary-contrast, #eff8fc);
|
|
7966
7973
|
}
|
|
7967
|
-
`;var
|
|
7974
|
+
`;var wh=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,kh=(t,e,r,o)=>{for(var s=o>1?void 0:o?xh(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&wh(e,r,s),s};g.NveSelect=class extends ks{constructor(){super()}firstUpdated(e){var o;super.firstUpdated(e);const r=(o=this.shadowRoot)==null?void 0:o.querySelector("sl-popup");r==null||r.setAttribute("distance","3")}handleOptionClick(e){const o=e.target.closest("nve-option"),s=this.value;o&&!o.disabled&&(this.multiple?this.toggleOptionSelection(o):this.setSelectedOptions(o),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==s&&this.updateComplete.then(()=>{this.emit("sl-input"),this.emit("sl-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const e=this.getAllOptions(),r=Array.isArray(this.value)?this.value:[this.value],o=[];customElements.get("nve-option")?(e.forEach(s=>o.push(s.value)),this.setSelectedOptions(e.filter(s=>r.includes(s.value)))):customElements.whenDefined("nve-option").then(()=>this.handleDefaultSlotChange())}getAllOptions(){return[...this.querySelectorAll("nve-option")]}getFirstOption(){return this.querySelector("nve-option")}},g.NveSelect.styles=[ks.styles,_h],g.NveSelect=kh([et("nve-select")],g.NveSelect);const Ch=$`
|
|
7968
7975
|
:host {
|
|
7969
7976
|
font: var(--body-small);
|
|
7970
7977
|
color: var(--neutrals-foreground-primary, #0d0d0e);
|
|
@@ -7999,4 +8006,4 @@
|
|
|
7999
8006
|
:host([filled]) .option--hover:not(.option--current):not(.option--disabled):hover {
|
|
8000
8007
|
background-color: var(--neutrals-background-primary, #fff);
|
|
8001
8008
|
}
|
|
8002
|
-
`;var
|
|
8009
|
+
`;var $h=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,zh=(t,e,r,o)=>{for(var s=o>1?void 0:o?Sh(e,r):e,i=t.length-1,n;i>=0;i--)(n=t[i])&&(s=(o?n(e,r,s):n(s))||s);return o&&s&&$h(e,r,s),s};g.NveOption=class extends Ts{constructor(){super()}firstUpdated(e){super.firstUpdated(e);const r=this.closest("nve-select");r!=null&&r.hasAttribute("filled")?this.toggleAttribute("filled",!0):this.toggleAttribute("filled",!1)}},g.NveOption.styles=[Ts.styles,Ch],g.NveOption=zh([et("nve-option")],g.NveOption),Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
|