@oslokommune/punkt-react 13.19.0 → 13.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/punkt-react.es.js +590 -577
- package/dist/punkt-react.umd.js +35 -27
- package/package.json +3 -3
- package/src/components/tag/Tag.tsx +10 -7
package/dist/punkt-react.es.js
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
import { jsx as h, jsxs as x, Fragment as Wt } from "react/jsx-runtime";
|
|
37
|
-
import mt, { createContext as Oa, forwardRef as Z, useContext as Ma, useState as
|
|
37
|
+
import mt, { createContext as Oa, forwardRef as Z, useContext as Ma, useState as ke, useEffect as De, useCallback as Ls, useRef as Bs, Fragment as un, createRef as mn, createElement as fn, Children as Os, isValidElement as gn, cloneElement as vn, useMemo as bn } from "react";
|
|
38
38
|
import { Link as Gs } from "react-router-dom";
|
|
39
39
|
const Pa = Oa({}), kn = () => Ma(Pa), yn = Z(
|
|
40
40
|
({ compact: i = !1, skin: t = "borderless", ariaLabelledBy: e, children: s, name: a, className: n }, r) => {
|
|
@@ -94,9 +94,9 @@ const $n = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
94
94
|
* Copyright 2017 Google LLC
|
|
95
95
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
96
96
|
*/
|
|
97
|
-
const Qi = globalThis, ts = Qi.trustedTypes, Js = ts ? ts.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Da = "$lit$", ve = `lit$${Math.random().toFixed(9).slice(2)}$`, Ia = "?" + ve, _n = `<${Ia}>`,
|
|
98
|
-
\f\r]`, fi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xs = /-->/g, Qs = />/g,
|
|
99
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ta = /'/g, ea = /"/g, Ra = /^(?:script|style|textarea|title)$/i, xn = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), u = xn(1),
|
|
97
|
+
const Qi = globalThis, ts = Qi.trustedTypes, Js = ts ? ts.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Da = "$lit$", ve = `lit$${Math.random().toFixed(9).slice(2)}$`, Ia = "?" + ve, _n = `<${Ia}>`, Ie = document, Ai = () => Ie.createComment(""), Ei = (i) => i === null || typeof i != "object" && typeof i != "function", Vs = Array.isArray, wn = (i) => Vs(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", bs = `[
|
|
98
|
+
\f\r]`, fi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xs = /-->/g, Qs = />/g, Te = RegExp(`>|${bs}(?:([^\\s"'>=/]+)(${bs}*=${bs}*(?:[^
|
|
99
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ta = /'/g, ea = /"/g, Ra = /^(?:script|style|textarea|title)$/i, xn = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), u = xn(1), St = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ia = /* @__PURE__ */ new WeakMap(), Oe = Ie.createTreeWalker(Ie, 129);
|
|
100
100
|
function La(i, t) {
|
|
101
101
|
if (!Vs(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
102
102
|
return Js !== void 0 ? Js.createHTML(t) : t;
|
|
@@ -107,8 +107,8 @@ const Sn = (i, t) => {
|
|
|
107
107
|
for (let l = 0; l < e; l++) {
|
|
108
108
|
const d = i[l];
|
|
109
109
|
let p, m, f = -1, y = 0;
|
|
110
|
-
for (; y < d.length && (r.lastIndex = y, m = r.exec(d), m !== null); ) y = r.lastIndex, r === fi ? m[1] === "!--" ? r = Xs : m[1] !== void 0 ? r = Qs : m[2] !== void 0 ? (Ra.test(m[2]) && (a = RegExp("</" + m[2], "g")), r =
|
|
111
|
-
const b = r ===
|
|
110
|
+
for (; y < d.length && (r.lastIndex = y, m = r.exec(d), m !== null); ) y = r.lastIndex, r === fi ? m[1] === "!--" ? r = Xs : m[1] !== void 0 ? r = Qs : m[2] !== void 0 ? (Ra.test(m[2]) && (a = RegExp("</" + m[2], "g")), r = Te) : m[3] !== void 0 && (r = Te) : r === Te ? m[0] === ">" ? (r = a ?? fi, f = -1) : m[1] === void 0 ? f = -2 : (f = r.lastIndex - m[2].length, p = m[1], r = m[3] === void 0 ? Te : m[3] === '"' ? ea : ta) : r === ea || r === ta ? r = Te : r === Xs || r === Qs ? r = fi : (r = Te, a = void 0);
|
|
111
|
+
const b = r === Te && i[l + 1].startsWith("/>") ? " " : "";
|
|
112
112
|
n += r === fi ? d + _n : f >= 0 ? (s.push(p), d.slice(0, f) + Da + d.slice(f) + ve + b) : d + ve + (f === -2 ? l : b);
|
|
113
113
|
}
|
|
114
114
|
return [La(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
@@ -119,11 +119,11 @@ let Ms = class Ba {
|
|
|
119
119
|
this.parts = [];
|
|
120
120
|
let n = 0, r = 0;
|
|
121
121
|
const l = t.length - 1, d = this.parts, [p, m] = Sn(t, e);
|
|
122
|
-
if (this.el = Ba.createElement(p, s),
|
|
122
|
+
if (this.el = Ba.createElement(p, s), Oe.currentNode = this.el.content, e === 2 || e === 3) {
|
|
123
123
|
const f = this.el.content.firstChild;
|
|
124
124
|
f.replaceWith(...f.childNodes);
|
|
125
125
|
}
|
|
126
|
-
for (; (a =
|
|
126
|
+
for (; (a = Oe.nextNode()) !== null && d.length < l; ) {
|
|
127
127
|
if (a.nodeType === 1) {
|
|
128
128
|
if (a.hasAttributes()) for (const f of a.getAttributeNames()) if (f.endsWith(Da)) {
|
|
129
129
|
const y = m[r++], b = a.getAttribute(f).split(ve), k = /([.?@])?(.*)/.exec(y);
|
|
@@ -133,7 +133,7 @@ let Ms = class Ba {
|
|
|
133
133
|
const f = a.textContent.split(ve), y = f.length - 1;
|
|
134
134
|
if (y > 0) {
|
|
135
135
|
a.textContent = ts ? ts.emptyScript : "";
|
|
136
|
-
for (let b = 0; b < y; b++) a.append(f[b], Ai()),
|
|
136
|
+
for (let b = 0; b < y; b++) a.append(f[b], Ai()), Oe.nextNode(), d.push({ type: 2, index: ++n });
|
|
137
137
|
a.append(f[y], Ai());
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -146,13 +146,13 @@ let Ms = class Ba {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
static createElement(t, e) {
|
|
149
|
-
const s =
|
|
149
|
+
const s = Ie.createElement("template");
|
|
150
150
|
return s.innerHTML = t, s;
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
function ti(i, t, e = i, s) {
|
|
154
154
|
var a, n;
|
|
155
|
-
if (t ===
|
|
155
|
+
if (t === St) return t;
|
|
156
156
|
let r = s !== void 0 ? (a = e._$Co) == null ? void 0 : a[s] : e._$Cl;
|
|
157
157
|
const l = Ei(t) ? void 0 : t._$litDirective$;
|
|
158
158
|
return (r == null ? void 0 : r.constructor) !== l && ((n = r == null ? void 0 : r._$AO) == null || n.call(r, !1), l === void 0 ? r = void 0 : (r = new l(i), r._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = r : e._$Cl = r), r !== void 0 && (t = ti(i, r._$AS(i, t.values), r, s)), t;
|
|
@@ -168,17 +168,17 @@ let Cn = class {
|
|
|
168
168
|
return this._$AM._$AU;
|
|
169
169
|
}
|
|
170
170
|
u(t) {
|
|
171
|
-
const { el: { content: e }, parts: s } = this._$AD, a = ((t == null ? void 0 : t.creationScope) ??
|
|
172
|
-
|
|
173
|
-
let n =
|
|
171
|
+
const { el: { content: e }, parts: s } = this._$AD, a = ((t == null ? void 0 : t.creationScope) ?? Ie).importNode(e, !0);
|
|
172
|
+
Oe.currentNode = a;
|
|
173
|
+
let n = Oe.nextNode(), r = 0, l = 0, d = s[0];
|
|
174
174
|
for (; d !== void 0; ) {
|
|
175
175
|
if (r === d.index) {
|
|
176
176
|
let p;
|
|
177
177
|
d.type === 2 ? p = new rs(n, n.nextSibling, this, t) : d.type === 1 ? p = new d.ctor(n, d.name, d.strings, this, t) : d.type === 6 && (p = new En(n, this, t)), this._$AV.push(p), d = s[++l];
|
|
178
178
|
}
|
|
179
|
-
r !== (d == null ? void 0 : d.index) && (n =
|
|
179
|
+
r !== (d == null ? void 0 : d.index) && (n = Oe.nextNode(), r++);
|
|
180
180
|
}
|
|
181
|
-
return
|
|
181
|
+
return Oe.currentNode = Ie, a;
|
|
182
182
|
}
|
|
183
183
|
p(t) {
|
|
184
184
|
let e = 0;
|
|
@@ -204,7 +204,7 @@ let Cn = class {
|
|
|
204
204
|
return this._$AB;
|
|
205
205
|
}
|
|
206
206
|
_$AI(t, e = this) {
|
|
207
|
-
t = ti(this, t, e), Ei(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !==
|
|
207
|
+
t = ti(this, t, e), Ei(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== St && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : wn(t) ? this.k(t) : this._(t);
|
|
208
208
|
}
|
|
209
209
|
O(t) {
|
|
210
210
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -213,7 +213,7 @@ let Cn = class {
|
|
|
213
213
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
214
214
|
}
|
|
215
215
|
_(t) {
|
|
216
|
-
this._$AH !== $ && Ei(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
216
|
+
this._$AH !== $ && Ei(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Ie.createTextNode(t)), this._$AH = t;
|
|
217
217
|
}
|
|
218
218
|
$(t) {
|
|
219
219
|
var e;
|
|
@@ -259,11 +259,11 @@ let Cn = class {
|
|
|
259
259
|
_$AI(t, e = this, s, a) {
|
|
260
260
|
const n = this.strings;
|
|
261
261
|
let r = !1;
|
|
262
|
-
if (n === void 0) t = ti(this, t, e, 0), r = !Ei(t) || t !== this._$AH && t !==
|
|
262
|
+
if (n === void 0) t = ti(this, t, e, 0), r = !Ei(t) || t !== this._$AH && t !== St, r && (this._$AH = t);
|
|
263
263
|
else {
|
|
264
264
|
const l = t;
|
|
265
265
|
let d, p;
|
|
266
|
-
for (t = n[0], d = 0; d < n.length - 1; d++) p = ti(this, l[s + d], e, d), p ===
|
|
266
|
+
for (t = n[0], d = 0; d < n.length - 1; d++) p = ti(this, l[s + d], e, d), p === St && (p = this._$AH[d]), r || (r = !Ei(p) || p !== this._$AH[d]), p === $ ? t = $ : t !== $ && (t += (p ?? "") + n[d + 1]), this._$AH[d] = p;
|
|
267
267
|
}
|
|
268
268
|
r && !a && this.j(t);
|
|
269
269
|
}
|
|
@@ -289,7 +289,7 @@ let Cn = class {
|
|
|
289
289
|
super(t, e, s, a, n), this.type = 5;
|
|
290
290
|
}
|
|
291
291
|
_$AI(t, e = this) {
|
|
292
|
-
if ((t = ti(this, t, e, 0) ?? $) ===
|
|
292
|
+
if ((t = ti(this, t, e, 0) ?? $) === St) return;
|
|
293
293
|
const s = this._$AH, a = t === $ && s !== $ || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== $ && (s === $ || a);
|
|
294
294
|
a && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
295
295
|
}
|
|
@@ -399,7 +399,7 @@ const { is: Rn, defineProperty: Ln, getOwnPropertyDescriptor: Bn, getOwnProperty
|
|
|
399
399
|
return e;
|
|
400
400
|
} }, Fs = (i, t) => !Rn(i, t), la = { attribute: !0, type: String, converter: es, reflect: !1, useDefault: !1, hasChanged: Fs };
|
|
401
401
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), ei.litPropertyMetadata ?? (ei.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
402
|
-
let
|
|
402
|
+
let Ze = class extends HTMLElement {
|
|
403
403
|
static addInitializer(t) {
|
|
404
404
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
405
405
|
}
|
|
@@ -602,7 +602,7 @@ let Ye = class extends HTMLElement {
|
|
|
602
602
|
firstUpdated(t) {
|
|
603
603
|
}
|
|
604
604
|
};
|
|
605
|
-
|
|
605
|
+
Ze.elementStyles = [], Ze.shadowRootOptions = { mode: "open" }, Ze[Ti("elementProperties")] = /* @__PURE__ */ new Map(), Ze[Ti("finalized")] = /* @__PURE__ */ new Map(), oa == null || oa({ ReactiveElement: Ze }), (ei.reactiveElementVersions ?? (ei.reactiveElementVersions = [])).push("2.1.1");
|
|
606
606
|
/**
|
|
607
607
|
* @license
|
|
608
608
|
* Copyright 2017 Google LLC
|
|
@@ -641,7 +641,7 @@ function o(i) {
|
|
|
641
641
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
642
642
|
*/
|
|
643
643
|
const Oi = globalThis;
|
|
644
|
-
let
|
|
644
|
+
let Je = class extends Ze {
|
|
645
645
|
constructor() {
|
|
646
646
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
647
647
|
}
|
|
@@ -663,15 +663,15 @@ let Ze = class extends Ye {
|
|
|
663
663
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
664
664
|
}
|
|
665
665
|
render() {
|
|
666
|
-
return
|
|
666
|
+
return St;
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
var ha;
|
|
670
|
-
|
|
670
|
+
Je._$litElement$ = !0, Je.finalized = !0, (ha = Oi.litElementHydrateSupport) == null || ha.call(Oi, { LitElement: Je });
|
|
671
671
|
const da = Oi.litElementPolyfillSupport;
|
|
672
|
-
da == null || da({ LitElement:
|
|
672
|
+
da == null || da({ LitElement: Je });
|
|
673
673
|
(Oi.litElementVersions ?? (Oi.litElementVersions = [])).push("4.2.1");
|
|
674
|
-
const zn = { hi: "Hei!" }, Wn = { from: "Fra", to: "Til" }, Kn = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, Gn = { month: "Måned", year: "År", days: ["Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag", "Søndag"], daysShort: ["Man", "Tir", "Ons", "Tor", "Fre", "Lør", "Søn"], months: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"], monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"], week: "Uke", prevMonth: "Forrige måned", nextMonth: "Neste måned" }, Yn = { search: { placeholder: "Søk…" }, labels: { optional: "Valgfritt", required: "Må fylles ut" }, messages: { required: "Dette feltet er påkrevd", invalid: "Ugyldig verdi", invalidPattern: "Ugyldig format", tooShort: "For kort", tooLong: "For lang", rangeUnderflow: "For lav verdi", rangeOverflow: "For høy verdi", rangeUnderflowMin: "Verdien må være større enn eller lik {min}.", rangeOverflowMax: "Verdien må være mindre enn eller lik {max}.", dateUnderflow: "For tidlig dato", dateOverflow: "For sen dato" }, helptext: { helptextDropdownButton: "Les mer" }, date: { multiple: "Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato." } },
|
|
674
|
+
const zn = { hi: "Hei!" }, Wn = { from: "Fra", to: "Til" }, Kn = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, Gn = { month: "Måned", year: "År", days: ["Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag", "Søndag"], daysShort: ["Man", "Tir", "Ons", "Tor", "Fre", "Lør", "Søn"], months: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"], monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"], week: "Uke", prevMonth: "Forrige måned", nextMonth: "Neste måned" }, Yn = { search: { placeholder: "Søk…" }, labels: { optional: "Valgfritt", required: "Må fylles ut" }, messages: { required: "Dette feltet er påkrevd", invalid: "Ugyldig verdi", invalidPattern: "Ugyldig format", tooShort: "For kort", tooLong: "For lang", rangeUnderflow: "For lav verdi", rangeOverflow: "For høy verdi", rangeUnderflowMin: "Verdien må være større enn eller lik {min}.", rangeOverflowMax: "Verdien må være mindre enn eller lik {max}.", dateUnderflow: "For tidlig dato", dateOverflow: "For sen dato" }, helptext: { helptextDropdownButton: "Les mer" }, date: { multiple: "Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato." } }, wt = {
|
|
675
675
|
example: zn,
|
|
676
676
|
generic: Wn,
|
|
677
677
|
calendar: Kn,
|
|
@@ -683,9 +683,9 @@ var Zn = Object.defineProperty, Fa = (i, t, e, s) => {
|
|
|
683
683
|
(r = i[n]) && (a = r(t, e, a) || a);
|
|
684
684
|
return a && Zn(t, e, a), a;
|
|
685
685
|
};
|
|
686
|
-
let ls = class extends
|
|
686
|
+
let ls = class extends Je {
|
|
687
687
|
constructor() {
|
|
688
|
-
super(...arguments), this.strings =
|
|
688
|
+
super(...arguments), this.strings = wt, this.role = null;
|
|
689
689
|
}
|
|
690
690
|
/**
|
|
691
691
|
* Add support for Hot Module Reloading in dev mode
|
|
@@ -713,7 +713,7 @@ let K = class extends ls {
|
|
|
713
713
|
* Copyright 2017 Google LLC
|
|
714
714
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
715
715
|
*/
|
|
716
|
-
const zt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 },
|
|
716
|
+
const zt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, Ue = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
717
717
|
let li = class {
|
|
718
718
|
constructor(t) {
|
|
719
719
|
}
|
|
@@ -735,7 +735,7 @@ let li = class {
|
|
|
735
735
|
* Copyright 2018 Google LLC
|
|
736
736
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
737
737
|
*/
|
|
738
|
-
const
|
|
738
|
+
const M = Ue(class extends li {
|
|
739
739
|
constructor(i) {
|
|
740
740
|
var t;
|
|
741
741
|
if (super(i), i.type !== zt.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
@@ -756,7 +756,7 @@ const O = Fe(class extends li {
|
|
|
756
756
|
const r = !!t[n];
|
|
757
757
|
r === this.st.has(n) || (s = this.nt) != null && s.has(n) || (r ? (a.add(n), this.st.add(n)) : (a.remove(n), this.st.delete(n)));
|
|
758
758
|
}
|
|
759
|
-
return
|
|
759
|
+
return St;
|
|
760
760
|
}
|
|
761
761
|
});
|
|
762
762
|
/**
|
|
@@ -773,7 +773,7 @@ function Ua(i, t) {
|
|
|
773
773
|
function gi(i) {
|
|
774
774
|
return i.classList && (i.classList.contains("_dialog_overlay") || i.classList.contains("backdrop")) ? !0 : typeof i.hasAttribute == "function" && i.hasAttribute("data-skip");
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Xe(i) {
|
|
777
777
|
return i.nodeName === "OPTION" || i.nodeName === "DATA";
|
|
778
778
|
}
|
|
779
779
|
function Jn(i, t) {
|
|
@@ -799,7 +799,7 @@ let rt = class {
|
|
|
799
799
|
// ********* UPDATE NODES *********
|
|
800
800
|
updateNodes() {
|
|
801
801
|
this.nodes = [], Array.from(this.host.childNodes).forEach((t) => {
|
|
802
|
-
gi(t) ||
|
|
802
|
+
gi(t) || Xe(t) && this.skipOptions || (!Ua(t, this.slots) || ks(t)) && this.nodes.push(t);
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
805
|
// ********* UPDATE SLOTS *********
|
|
@@ -839,9 +839,9 @@ let rt = class {
|
|
|
839
839
|
let e = !1;
|
|
840
840
|
t.forEach((s) => {
|
|
841
841
|
s.type === "childList" && (s.addedNodes.forEach((a) => {
|
|
842
|
-
gi(a) ||
|
|
842
|
+
gi(a) || Xe(a) && this.skipOptions || (Jn(a, this.slots) || ks(a)) && (this.nodes.push(a), e = !0);
|
|
843
843
|
}), s.removedNodes.forEach((a) => {
|
|
844
|
-
gi(a) ||
|
|
844
|
+
gi(a) || Xe(a) && this.skipOptions || (this.nodes = this.nodes.filter((n) => n !== a), e = !0);
|
|
845
845
|
}));
|
|
846
846
|
}), e && this.updateSlots();
|
|
847
847
|
}
|
|
@@ -882,7 +882,7 @@ const { I: Xn } = On, Ha = (i) => i.strings === void 0, ca = () => document.crea
|
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
return e;
|
|
885
|
-
},
|
|
885
|
+
}, Ne = (i, t, e = i) => (i._$AI(t, e), i), Qn = {}, qa = (i, t = Qn) => i._$AH = t, tr = (i) => i._$AH, ys = (i) => {
|
|
886
886
|
i._$AR(), i._$AA.remove();
|
|
887
887
|
};
|
|
888
888
|
/**
|
|
@@ -953,7 +953,7 @@ let ar = class extends li {
|
|
|
953
953
|
const A = () => new nr();
|
|
954
954
|
let nr = class {
|
|
955
955
|
};
|
|
956
|
-
const $s = /* @__PURE__ */ new WeakMap(), E =
|
|
956
|
+
const $s = /* @__PURE__ */ new WeakMap(), E = Ue(class extends ar {
|
|
957
957
|
render(i) {
|
|
958
958
|
return $;
|
|
959
959
|
}
|
|
@@ -995,7 +995,7 @@ let ss = class extends li {
|
|
|
995
995
|
}
|
|
996
996
|
render(t) {
|
|
997
997
|
if (t === $ || t == null) return this._t = void 0, this.it = t;
|
|
998
|
-
if (t ===
|
|
998
|
+
if (t === St) return t;
|
|
999
999
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
1000
1000
|
if (t === this.it) return this._t;
|
|
1001
1001
|
this.it = t;
|
|
@@ -1004,7 +1004,7 @@ let ss = class extends li {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
};
|
|
1006
1006
|
ss.directiveName = "unsafeHTML", ss.resultType = 1;
|
|
1007
|
-
const Ji =
|
|
1007
|
+
const Ji = Ue(ss);
|
|
1008
1008
|
/**
|
|
1009
1009
|
* @license
|
|
1010
1010
|
* Copyright 2017 Google LLC
|
|
@@ -1013,7 +1013,7 @@ const Ji = Fe(ss);
|
|
|
1013
1013
|
let Ps = class extends ss {
|
|
1014
1014
|
};
|
|
1015
1015
|
Ps.directiveName = "unsafeSVG", Ps.resultType = 2;
|
|
1016
|
-
const pa =
|
|
1016
|
+
const pa = Ue(Ps);
|
|
1017
1017
|
var rr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, Ri = (i, t, e, s) => {
|
|
1018
1018
|
for (var a = s > 1 ? void 0 : s ? or(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
1019
1019
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
@@ -1030,7 +1030,7 @@ const lr = (i) => new Promise((t) => setTimeout(t, i)), Xi = '<svg xmlns="http:/
|
|
|
1030
1030
|
window.pktFetch(t + i + ".svg").then((a) => a.ok ? a.text() : (console.error("Missing icon: " + t + i + ".svg"), Xi)).then((a) => (a !== Xi && s && localStorage.setItem(t + i + ".svg", a), _s[t + i + ".svg"] = "fetched", a))
|
|
1031
1031
|
)) : Promise.resolve(Xi);
|
|
1032
1032
|
};
|
|
1033
|
-
let
|
|
1033
|
+
let Re = class extends K {
|
|
1034
1034
|
constructor() {
|
|
1035
1035
|
super(...arguments), this.path = typeof window < "u" ? window.pktIconPath : Ds, this.name = "", this.icon = pa(Xi), this._updatedProps = [];
|
|
1036
1036
|
}
|
|
@@ -1054,19 +1054,19 @@ let De = class extends K {
|
|
|
1054
1054
|
};
|
|
1055
1055
|
Ri([
|
|
1056
1056
|
o({ type: String, reflect: !1 })
|
|
1057
|
-
],
|
|
1057
|
+
], Re.prototype, "path", 2);
|
|
1058
1058
|
Ri([
|
|
1059
1059
|
o({ type: String, reflect: !0 })
|
|
1060
|
-
],
|
|
1060
|
+
], Re.prototype, "name", 2);
|
|
1061
1061
|
Ri([
|
|
1062
1062
|
o({ type: SVGElement })
|
|
1063
|
-
],
|
|
1063
|
+
], Re.prototype, "icon", 2);
|
|
1064
1064
|
Ri([
|
|
1065
1065
|
o({ type: Array, noAccessor: !0 })
|
|
1066
|
-
],
|
|
1067
|
-
|
|
1066
|
+
], Re.prototype, "_updatedProps", 2);
|
|
1067
|
+
Re = Ri([
|
|
1068
1068
|
j("pkt-icon")
|
|
1069
|
-
],
|
|
1069
|
+
], Re);
|
|
1070
1070
|
/**
|
|
1071
1071
|
* @license
|
|
1072
1072
|
* Copyright 2018 Google LLC
|
|
@@ -1121,7 +1121,7 @@ let ft = class extends K {
|
|
|
1121
1121
|
};
|
|
1122
1122
|
return u`
|
|
1123
1123
|
<button
|
|
1124
|
-
class=${
|
|
1124
|
+
class=${M(e)}
|
|
1125
1125
|
type=${this.type}
|
|
1126
1126
|
?disabled=${!!this.disabled}
|
|
1127
1127
|
aria-busy=${C(this.isLoading ? "true" : void 0)}
|
|
@@ -1229,8 +1229,8 @@ let Kt = class extends K {
|
|
|
1229
1229
|
"pkt-alert__noDate": !this.date
|
|
1230
1230
|
};
|
|
1231
1231
|
return u`
|
|
1232
|
-
<div class=${
|
|
1233
|
-
<div class=${
|
|
1232
|
+
<div class=${M(t)} aria-live=${this["aria-live"]}>
|
|
1233
|
+
<div class=${M(e)}>
|
|
1234
1234
|
<pkt-icon
|
|
1235
1235
|
class="pkt-alert__icon"
|
|
1236
1236
|
aria-hidden="true"
|
|
@@ -1298,7 +1298,7 @@ var fr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, Li = (i, t
|
|
|
1298
1298
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
1299
1299
|
return s && a && fr(t, e, a), a;
|
|
1300
1300
|
};
|
|
1301
|
-
let ii = class extends
|
|
1301
|
+
let ii = class extends Je {
|
|
1302
1302
|
constructor() {
|
|
1303
1303
|
super(...arguments), this.ariaLabelledBy = "", this.compact = !1, this.skin = "borderless", this.name = "";
|
|
1304
1304
|
}
|
|
@@ -1330,7 +1330,7 @@ let ii = class extends Ze {
|
|
|
1330
1330
|
return u`
|
|
1331
1331
|
<div
|
|
1332
1332
|
part="container"
|
|
1333
|
-
class=${
|
|
1333
|
+
class=${M(t)}
|
|
1334
1334
|
data-testid="pkt-accordion"
|
|
1335
1335
|
aria-labelledby=${this.ariaLabelledBy}
|
|
1336
1336
|
>
|
|
@@ -1354,12 +1354,12 @@ Li([
|
|
|
1354
1354
|
ii = Li([
|
|
1355
1355
|
j("pkt-accordion")
|
|
1356
1356
|
], ii);
|
|
1357
|
-
var vr = Object.defineProperty, br = Object.getOwnPropertyDescriptor,
|
|
1357
|
+
var vr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, He = (i, t, e, s) => {
|
|
1358
1358
|
for (var a = s > 1 ? void 0 : s ? br(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
1359
1359
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
1360
1360
|
return s && a && vr(t, e, a), a;
|
|
1361
1361
|
};
|
|
1362
|
-
let
|
|
1362
|
+
let ye = class extends K {
|
|
1363
1363
|
constructor() {
|
|
1364
1364
|
super(), this.defaultOpen = !1, this.title = "", this.skin = void 0, this.compact = !1, this.isOpen = !1, this.name = void 0, this.accordionItemRef = A(), this.defaultSlot = A(), this.slotController = new rt(this, this.defaultSlot);
|
|
1365
1365
|
}
|
|
@@ -1374,7 +1374,7 @@ let ke = class extends K {
|
|
|
1374
1374
|
};
|
|
1375
1375
|
return u`
|
|
1376
1376
|
<details
|
|
1377
|
-
class=${
|
|
1377
|
+
class=${M(t)}
|
|
1378
1378
|
id=${this.id}
|
|
1379
1379
|
?open=${this.isOpen}
|
|
1380
1380
|
${E(this.accordionItemRef)}
|
|
@@ -1399,27 +1399,27 @@ let ke = class extends K {
|
|
|
1399
1399
|
`;
|
|
1400
1400
|
}
|
|
1401
1401
|
};
|
|
1402
|
-
|
|
1402
|
+
He([
|
|
1403
1403
|
o({ type: Boolean })
|
|
1404
|
-
],
|
|
1405
|
-
|
|
1404
|
+
], ye.prototype, "defaultOpen", 2);
|
|
1405
|
+
He([
|
|
1406
1406
|
o({ type: String })
|
|
1407
|
-
],
|
|
1408
|
-
|
|
1407
|
+
], ye.prototype, "title", 2);
|
|
1408
|
+
He([
|
|
1409
1409
|
o({ type: String, reflect: !0 })
|
|
1410
|
-
],
|
|
1411
|
-
|
|
1410
|
+
], ye.prototype, "skin", 2);
|
|
1411
|
+
He([
|
|
1412
1412
|
o({ type: Boolean, reflect: !0 })
|
|
1413
|
-
],
|
|
1414
|
-
|
|
1413
|
+
], ye.prototype, "compact", 2);
|
|
1414
|
+
He([
|
|
1415
1415
|
o({ type: Boolean, reflect: !0 })
|
|
1416
|
-
],
|
|
1417
|
-
|
|
1416
|
+
], ye.prototype, "isOpen", 2);
|
|
1417
|
+
He([
|
|
1418
1418
|
o({ type: String, reflect: !0 })
|
|
1419
|
-
],
|
|
1420
|
-
|
|
1419
|
+
], ye.prototype, "name", 2);
|
|
1420
|
+
ye = He([
|
|
1421
1421
|
j("pkt-accordion-item")
|
|
1422
|
-
],
|
|
1422
|
+
], ye);
|
|
1423
1423
|
var kr = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, hs = (i, t, e, s) => {
|
|
1424
1424
|
for (var a = s > 1 ? void 0 : s ? yr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
1425
1425
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
@@ -1465,11 +1465,11 @@ const Ka = 6048e5, $r = 864e5, ua = Symbol.for("constructDateFrom");
|
|
|
1465
1465
|
function ee(i, t) {
|
|
1466
1466
|
return typeof i == "function" ? i(t) : i && typeof i == "object" && ua in i ? i[ua](t) : i instanceof Date ? new i.constructor(t) : new Date(t);
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function Lt(i, t) {
|
|
1469
1469
|
return ee(t || i, i);
|
|
1470
1470
|
}
|
|
1471
1471
|
function ws(i, t, e) {
|
|
1472
|
-
const s =
|
|
1472
|
+
const s = Lt(i, void 0);
|
|
1473
1473
|
return isNaN(t) ? ee(i, NaN) : (t && s.setDate(s.getDate() + t), s);
|
|
1474
1474
|
}
|
|
1475
1475
|
let _r = {};
|
|
@@ -1478,14 +1478,14 @@ function ds() {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
function Mi(i, t) {
|
|
1480
1480
|
var e, s, a, n;
|
|
1481
|
-
const r = ds(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.weekStartsOn) ?? r.weekStartsOn ?? ((n = (a = r.locale) == null ? void 0 : a.options) == null ? void 0 : n.weekStartsOn) ?? 0, d =
|
|
1481
|
+
const r = ds(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.weekStartsOn) ?? r.weekStartsOn ?? ((n = (a = r.locale) == null ? void 0 : a.options) == null ? void 0 : n.weekStartsOn) ?? 0, d = Lt(i, t == null ? void 0 : t.in), p = d.getDay(), m = (p < l ? 7 : 0) + p - l;
|
|
1482
1482
|
return d.setDate(d.getDate() - m), d.setHours(0, 0, 0, 0), d;
|
|
1483
1483
|
}
|
|
1484
1484
|
function as(i, t) {
|
|
1485
1485
|
return Mi(i, { ...t, weekStartsOn: 1 });
|
|
1486
1486
|
}
|
|
1487
1487
|
function Ga(i, t) {
|
|
1488
|
-
const e =
|
|
1488
|
+
const e = Lt(i, void 0), s = e.getFullYear(), a = ee(e, 0);
|
|
1489
1489
|
a.setFullYear(s + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
1490
1490
|
const n = as(a), r = ee(e, 0);
|
|
1491
1491
|
r.setFullYear(s, 0, 4), r.setHours(0, 0, 0, 0);
|
|
@@ -1493,7 +1493,7 @@ function Ga(i, t) {
|
|
|
1493
1493
|
return e.getTime() >= n.getTime() ? s + 1 : e.getTime() >= l.getTime() ? s : s - 1;
|
|
1494
1494
|
}
|
|
1495
1495
|
function ma(i) {
|
|
1496
|
-
const t =
|
|
1496
|
+
const t = Lt(i), e = new Date(
|
|
1497
1497
|
Date.UTC(
|
|
1498
1498
|
t.getFullYear(),
|
|
1499
1499
|
t.getMonth(),
|
|
@@ -1514,7 +1514,7 @@ function Ya(i, ...t) {
|
|
|
1514
1514
|
return t.map(e);
|
|
1515
1515
|
}
|
|
1516
1516
|
function fa(i, t) {
|
|
1517
|
-
const e =
|
|
1517
|
+
const e = Lt(i, void 0);
|
|
1518
1518
|
return e.setHours(0, 0, 0, 0), e;
|
|
1519
1519
|
}
|
|
1520
1520
|
function wr(i, t, e) {
|
|
@@ -1533,7 +1533,7 @@ function Sr(i) {
|
|
|
1533
1533
|
return i instanceof Date || typeof i == "object" && Object.prototype.toString.call(i) === "[object Date]";
|
|
1534
1534
|
}
|
|
1535
1535
|
function Cr(i) {
|
|
1536
|
-
return !(!Sr(i) && typeof i != "number" || isNaN(+
|
|
1536
|
+
return !(!Sr(i) && typeof i != "number" || isNaN(+Lt(i)));
|
|
1537
1537
|
}
|
|
1538
1538
|
function Tr(i, t) {
|
|
1539
1539
|
const [e, s] = Ya(i, t.start, t.end);
|
|
@@ -1551,7 +1551,7 @@ function xs(i, t) {
|
|
|
1551
1551
|
return a ? d.reverse() : d;
|
|
1552
1552
|
}
|
|
1553
1553
|
function Nr(i, t) {
|
|
1554
|
-
const e =
|
|
1554
|
+
const e = Lt(i, void 0);
|
|
1555
1555
|
return e.setFullYear(e.getFullYear(), 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1556
1556
|
}
|
|
1557
1557
|
const Ar = {
|
|
@@ -1986,16 +1986,16 @@ const Gr = /^(\d+)(th|st|nd|rd)?/i, Yr = /\d+/i, Zr = {
|
|
|
1986
1986
|
}
|
|
1987
1987
|
};
|
|
1988
1988
|
function lo(i, t) {
|
|
1989
|
-
const e =
|
|
1989
|
+
const e = Lt(i, void 0);
|
|
1990
1990
|
return wr(e, Nr(e)) + 1;
|
|
1991
1991
|
}
|
|
1992
1992
|
function ho(i, t) {
|
|
1993
|
-
const e =
|
|
1993
|
+
const e = Lt(i, void 0), s = +as(e) - +xr(e);
|
|
1994
1994
|
return Math.round(s / Ka) + 1;
|
|
1995
1995
|
}
|
|
1996
1996
|
function Za(i, t) {
|
|
1997
1997
|
var e, s, a, n;
|
|
1998
|
-
const r =
|
|
1998
|
+
const r = Lt(i, t == null ? void 0 : t.in), l = r.getFullYear(), d = ds(), p = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.firstWeekContainsDate) ?? d.firstWeekContainsDate ?? ((n = (a = d.locale) == null ? void 0 : a.options) == null ? void 0 : n.firstWeekContainsDate) ?? 1, m = ee((t == null ? void 0 : t.in) || i, 0);
|
|
1999
1999
|
m.setFullYear(l + 1, 0, p), m.setHours(0, 0, 0, 0);
|
|
2000
2000
|
const f = Mi(m, t), y = ee((t == null ? void 0 : t.in) || i, 0);
|
|
2001
2001
|
y.setFullYear(l, 0, p), y.setHours(0, 0, 0, 0);
|
|
@@ -2008,7 +2008,7 @@ function co(i, t) {
|
|
|
2008
2008
|
return p.setFullYear(d, 0, l), p.setHours(0, 0, 0, 0), Mi(p, t);
|
|
2009
2009
|
}
|
|
2010
2010
|
function Ja(i, t) {
|
|
2011
|
-
const e =
|
|
2011
|
+
const e = Lt(i, t == null ? void 0 : t.in), s = +Mi(e, t) - +co(e, t);
|
|
2012
2012
|
return Math.round(s / Ka) + 1;
|
|
2013
2013
|
}
|
|
2014
2014
|
function q(i, t) {
|
|
@@ -2069,7 +2069,7 @@ const fe = {
|
|
|
2069
2069
|
);
|
|
2070
2070
|
return q(a, t.length);
|
|
2071
2071
|
}
|
|
2072
|
-
},
|
|
2072
|
+
}, Ye = {
|
|
2073
2073
|
midnight: "midnight",
|
|
2074
2074
|
noon: "noon",
|
|
2075
2075
|
morning: "morning",
|
|
@@ -2459,7 +2459,7 @@ const fe = {
|
|
|
2459
2459
|
b: function(i, t, e) {
|
|
2460
2460
|
const s = i.getHours();
|
|
2461
2461
|
let a;
|
|
2462
|
-
switch (s === 12 ? a =
|
|
2462
|
+
switch (s === 12 ? a = Ye.noon : s === 0 ? a = Ye.midnight : a = s / 12 >= 1 ? "pm" : "am", t) {
|
|
2463
2463
|
case "b":
|
|
2464
2464
|
case "bb":
|
|
2465
2465
|
return e.dayPeriod(a, {
|
|
@@ -2488,7 +2488,7 @@ const fe = {
|
|
|
2488
2488
|
B: function(i, t, e) {
|
|
2489
2489
|
const s = i.getHours();
|
|
2490
2490
|
let a;
|
|
2491
|
-
switch (s >= 17 ? a =
|
|
2491
|
+
switch (s >= 17 ? a = Ye.evening : s >= 12 ? a = Ye.afternoon : s >= 4 ? a = Ye.morning : a = Ye.night, t) {
|
|
2492
2492
|
case "B":
|
|
2493
2493
|
case "BB":
|
|
2494
2494
|
case "BBB":
|
|
@@ -2557,7 +2557,7 @@ const fe = {
|
|
|
2557
2557
|
// so this token always has the same output as `XX`
|
|
2558
2558
|
case "XXXX":
|
|
2559
2559
|
case "XX":
|
|
2560
|
-
return
|
|
2560
|
+
return Ee(s);
|
|
2561
2561
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
2562
2562
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2563
2563
|
// so this token always has the same output as `XXX`
|
|
@@ -2565,7 +2565,7 @@ const fe = {
|
|
|
2565
2565
|
case "XXX":
|
|
2566
2566
|
// Hours and minutes with `:` delimiter
|
|
2567
2567
|
default:
|
|
2568
|
-
return
|
|
2568
|
+
return Ee(s, ":");
|
|
2569
2569
|
}
|
|
2570
2570
|
},
|
|
2571
2571
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -2580,7 +2580,7 @@ const fe = {
|
|
|
2580
2580
|
// so this token always has the same output as `xx`
|
|
2581
2581
|
case "xxxx":
|
|
2582
2582
|
case "xx":
|
|
2583
|
-
return
|
|
2583
|
+
return Ee(s);
|
|
2584
2584
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
2585
2585
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2586
2586
|
// so this token always has the same output as `xxx`
|
|
@@ -2588,7 +2588,7 @@ const fe = {
|
|
|
2588
2588
|
case "xxx":
|
|
2589
2589
|
// Hours and minutes with `:` delimiter
|
|
2590
2590
|
default:
|
|
2591
|
-
return
|
|
2591
|
+
return Ee(s, ":");
|
|
2592
2592
|
}
|
|
2593
2593
|
},
|
|
2594
2594
|
// Timezone (GMT)
|
|
@@ -2603,7 +2603,7 @@ const fe = {
|
|
|
2603
2603
|
// Long
|
|
2604
2604
|
case "OOOO":
|
|
2605
2605
|
default:
|
|
2606
|
-
return "GMT" +
|
|
2606
|
+
return "GMT" + Ee(s, ":");
|
|
2607
2607
|
}
|
|
2608
2608
|
},
|
|
2609
2609
|
// Timezone (specific non-location)
|
|
@@ -2618,7 +2618,7 @@ const fe = {
|
|
|
2618
2618
|
// Long
|
|
2619
2619
|
case "zzzz":
|
|
2620
2620
|
default:
|
|
2621
|
-
return "GMT" +
|
|
2621
|
+
return "GMT" + Ee(s, ":");
|
|
2622
2622
|
}
|
|
2623
2623
|
},
|
|
2624
2624
|
// Seconds timestamp
|
|
@@ -2636,9 +2636,9 @@ function va(i, t = "") {
|
|
|
2636
2636
|
return n === 0 ? e + String(a) : e + String(a) + t + q(n, 2);
|
|
2637
2637
|
}
|
|
2638
2638
|
function ba(i, t) {
|
|
2639
|
-
return i % 60 === 0 ? (i > 0 ? "-" : "+") + q(Math.abs(i) / 60, 2) :
|
|
2639
|
+
return i % 60 === 0 ? (i > 0 ? "-" : "+") + q(Math.abs(i) / 60, 2) : Ee(i, t);
|
|
2640
2640
|
}
|
|
2641
|
-
function
|
|
2641
|
+
function Ee(i, t = "") {
|
|
2642
2642
|
const e = i > 0 ? "-" : "+", s = Math.abs(i), a = q(Math.trunc(s / 60), 2), n = q(s % 60, 2);
|
|
2643
2643
|
return e + a + t + n;
|
|
2644
2644
|
}
|
|
@@ -2708,7 +2708,7 @@ function yo(i, t, e) {
|
|
|
2708
2708
|
const $o = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, _o = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, wo = /^'([^]*?)'?$/, xo = /''/g, So = /[a-zA-Z]/;
|
|
2709
2709
|
function Co(i, t, e) {
|
|
2710
2710
|
var s, a, n, r;
|
|
2711
|
-
const l = ds(), d = l.locale ?? oo, p = l.firstWeekContainsDate ?? ((a = (s = l.locale) == null ? void 0 : s.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, m = l.weekStartsOn ?? ((r = (n = l.locale) == null ? void 0 : n.options) == null ? void 0 : r.weekStartsOn) ?? 0, f =
|
|
2711
|
+
const l = ds(), d = l.locale ?? oo, p = l.firstWeekContainsDate ?? ((a = (s = l.locale) == null ? void 0 : s.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, m = l.weekStartsOn ?? ((r = (n = l.locale) == null ? void 0 : n.options) == null ? void 0 : r.weekStartsOn) ?? 0, f = Lt(i, void 0);
|
|
2712
2712
|
if (!Cr(f))
|
|
2713
2713
|
throw new RangeError("Invalid time value");
|
|
2714
2714
|
let y = t.match(_o).map((k) => {
|
|
@@ -2751,7 +2751,7 @@ function To(i) {
|
|
|
2751
2751
|
return t ? t[1].replace(xo, "'") : i;
|
|
2752
2752
|
}
|
|
2753
2753
|
function No(i, t) {
|
|
2754
|
-
const e =
|
|
2754
|
+
const e = Lt(i, void 0).getDay();
|
|
2755
2755
|
return e === 0 ? 7 : e;
|
|
2756
2756
|
}
|
|
2757
2757
|
function Ao(i, t, e = "long") {
|
|
@@ -2763,7 +2763,7 @@ function Ao(i, t, e = "long") {
|
|
|
2763
2763
|
}).format(t).split(/\s/g).slice(2).join(" ");
|
|
2764
2764
|
}
|
|
2765
2765
|
const ya = {}, _i = {};
|
|
2766
|
-
function
|
|
2766
|
+
function Me(i, t) {
|
|
2767
2767
|
try {
|
|
2768
2768
|
const e = (ya[i] || (ya[i] = new Intl.DateTimeFormat("en-US", {
|
|
2769
2769
|
timeZone: i,
|
|
@@ -2784,7 +2784,7 @@ function $a(i, t) {
|
|
|
2784
2784
|
let wi = class xi extends Date {
|
|
2785
2785
|
//#region static
|
|
2786
2786
|
constructor(...t) {
|
|
2787
|
-
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(
|
|
2787
|
+
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(Me(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), Qa(this), Is(this)) : this.setTime(Date.now());
|
|
2788
2788
|
}
|
|
2789
2789
|
static tz(t, ...e) {
|
|
2790
2790
|
return e.length ? new xi(...e, t) : new xi(Date.now(), t);
|
|
@@ -2795,7 +2795,7 @@ let wi = class xi extends Date {
|
|
|
2795
2795
|
return new xi(+this, t);
|
|
2796
2796
|
}
|
|
2797
2797
|
getTimezoneOffset() {
|
|
2798
|
-
const t = -
|
|
2798
|
+
const t = -Me(this.timeZone, this);
|
|
2799
2799
|
return t > 0 ? Math.floor(t) : Math.ceil(t);
|
|
2800
2800
|
}
|
|
2801
2801
|
//#endregion
|
|
@@ -2823,13 +2823,13 @@ Object.getOwnPropertyNames(Date.prototype).forEach((i) => {
|
|
|
2823
2823
|
}));
|
|
2824
2824
|
});
|
|
2825
2825
|
function Is(i) {
|
|
2826
|
-
i.internal.setTime(+i), i.internal.setUTCSeconds(i.internal.getUTCSeconds() - Math.round(-
|
|
2826
|
+
i.internal.setTime(+i), i.internal.setUTCSeconds(i.internal.getUTCSeconds() - Math.round(-Me(i.timeZone, i) * 60));
|
|
2827
2827
|
}
|
|
2828
2828
|
function Oo(i) {
|
|
2829
2829
|
Date.prototype.setFullYear.call(i, i.internal.getUTCFullYear(), i.internal.getUTCMonth(), i.internal.getUTCDate()), Date.prototype.setHours.call(i, i.internal.getUTCHours(), i.internal.getUTCMinutes(), i.internal.getUTCSeconds(), i.internal.getUTCMilliseconds()), Qa(i);
|
|
2830
2830
|
}
|
|
2831
2831
|
function Qa(i) {
|
|
2832
|
-
const t =
|
|
2832
|
+
const t = Me(i.timeZone, i), e = t > 0 ? Math.floor(t) : Math.ceil(t), s = /* @__PURE__ */ new Date(+i);
|
|
2833
2833
|
s.setUTCHours(s.getUTCHours() - 1);
|
|
2834
2834
|
const a = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset(), n = -(/* @__PURE__ */ new Date(+s)).getTimezoneOffset(), r = a - n, l = Date.prototype.getHours.apply(i) !== i.internal.getUTCHours();
|
|
2835
2835
|
r && l && i.internal.setUTCMinutes(i.internal.getUTCMinutes() + r);
|
|
@@ -2837,12 +2837,12 @@ function Qa(i) {
|
|
|
2837
2837
|
d && Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + d);
|
|
2838
2838
|
const p = /* @__PURE__ */ new Date(+i);
|
|
2839
2839
|
p.setUTCSeconds(0);
|
|
2840
|
-
const m = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, f = Math.round(-(
|
|
2840
|
+
const m = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, f = Math.round(-(Me(i.timeZone, i) * 60)) % 60;
|
|
2841
2841
|
(f || m) && (i.internal.setUTCSeconds(i.internal.getUTCSeconds() + f), Date.prototype.setUTCSeconds.call(i, Date.prototype.getUTCSeconds.call(i) + f + m));
|
|
2842
|
-
const y =
|
|
2842
|
+
const y = Me(i.timeZone, i), b = y > 0 ? Math.floor(y) : Math.ceil(y), k = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset() - b, w = b !== e, S = k - d;
|
|
2843
2843
|
if (w && S) {
|
|
2844
2844
|
Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + S);
|
|
2845
|
-
const
|
|
2845
|
+
const O = Me(i.timeZone, i), N = O > 0 ? Math.floor(O) : Math.ceil(O), I = b - N;
|
|
2846
2846
|
I && (i.internal.setUTCMinutes(i.internal.getUTCMinutes() + I), Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + I));
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
@@ -2907,7 +2907,7 @@ const Mo = (i = window.pktTz) => {
|
|
|
2907
2907
|
const t = new Rs((/* @__PURE__ */ new Date()).toISOString(), i);
|
|
2908
2908
|
return t.setHours(0, 0, 0, 0), isNaN(t.getTime()) ? /* @__PURE__ */ new Date() : new Date(t.getFullYear(), t.getMonth(), t.getDate());
|
|
2909
2909
|
};
|
|
2910
|
-
function
|
|
2910
|
+
function $e(i) {
|
|
2911
2911
|
if (!i || i === "") return /* @__PURE__ */ new Date();
|
|
2912
2912
|
if (/^\d{4}-\d{2}-\d{2}$/.test(i)) {
|
|
2913
2913
|
const [t, e, s] = i.split("-").map(Number);
|
|
@@ -2923,16 +2923,16 @@ const nt = (i) => {
|
|
|
2923
2923
|
if (!i || isNaN(i.getTime())) return "";
|
|
2924
2924
|
const t = i.getFullYear(), e = String(i.getMonth() + 1).padStart(2, "0"), s = String(i.getDate()).padStart(2, "0");
|
|
2925
2925
|
return `${t}-${e}-${s}`;
|
|
2926
|
-
},
|
|
2926
|
+
}, _e = (i) => {
|
|
2927
2927
|
if (!i)
|
|
2928
2928
|
return null;
|
|
2929
|
-
const t =
|
|
2929
|
+
const t = $e(i);
|
|
2930
2930
|
return isNaN(t.getTime()) ? null : t;
|
|
2931
2931
|
}, wa = (i, t) => {
|
|
2932
2932
|
const e = de(i);
|
|
2933
2933
|
return isNaN(e.getTime()) ? "" : Co(e, t);
|
|
2934
2934
|
}, de = (i = "", t) => {
|
|
2935
|
-
const e = typeof i == "string" ?
|
|
2935
|
+
const e = typeof i == "string" ? $e(i) : i;
|
|
2936
2936
|
return !e || isNaN(e.getTime()) ? /* @__PURE__ */ new Date() : e;
|
|
2937
2937
|
}, ge = (i, t, e = 1) => {
|
|
2938
2938
|
if (typeof i != "number" || typeof t != "number" || typeof e != "number" || isNaN(i) || isNaN(t) || isNaN(e))
|
|
@@ -2955,24 +2955,24 @@ const nt = (i) => {
|
|
|
2955
2955
|
const e = i.getDay().toString();
|
|
2956
2956
|
return t.includes(e);
|
|
2957
2957
|
}, tn = (i, t, e, s, a) => !(!i || isNaN(i.getTime()) || !Do(i, t, e) || s && Io(i, s) || a && Ro(i, a)), Lo = (i, t, e, s, a) => i.filter((n) => {
|
|
2958
|
-
const r =
|
|
2958
|
+
const r = _e(n);
|
|
2959
2959
|
return r && tn(r, t, e, s, a);
|
|
2960
2960
|
}), en = (i) => i.slice().sort((t, e) => {
|
|
2961
|
-
const s =
|
|
2961
|
+
const s = _e(t), a = _e(e);
|
|
2962
2962
|
return !s || !a ? 0 : s.getTime() - a.getTime();
|
|
2963
2963
|
}), Bo = (i, t) => {
|
|
2964
|
-
const e =
|
|
2964
|
+
const e = _e(i), s = _e(t);
|
|
2965
2965
|
return !e || !s ? !1 : e <= s;
|
|
2966
|
-
}, Ci = (i) => i ? Array.isArray(i) ? i.filter(Boolean) : String(i).split(",").map((t) => t.trim()).filter(Boolean) : [], Vo = (i) => i.join(","), sn = (i) => Ci(i), jo = (i) => i ?
|
|
2966
|
+
}, Ci = (i) => i ? Array.isArray(i) ? i.filter(Boolean) : String(i).split(",").map((t) => t.trim()).filter(Boolean) : [], Vo = (i) => i.join(","), sn = (i) => Ci(i), jo = (i) => i ? $e(i) : null, Fo = (i) => {
|
|
2967
2967
|
if (typeof i == "string")
|
|
2968
|
-
return i.split(",").map((t) =>
|
|
2968
|
+
return i.split(",").map((t) => $e(t));
|
|
2969
2969
|
if (Array.isArray(i))
|
|
2970
|
-
return i.map((t) =>
|
|
2970
|
+
return i.map((t) => $e(t));
|
|
2971
2971
|
}, hi = {
|
|
2972
2972
|
csvToArray: sn,
|
|
2973
2973
|
stringToDate: jo,
|
|
2974
2974
|
stringsToDate: Fo
|
|
2975
|
-
}, Uo = { earliest: { default: null }, latest: { default: null }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, maxMultiple: { default: 4 }, range: { default: !1 } },
|
|
2975
|
+
}, Uo = { earliest: { default: null }, latest: { default: null }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, maxMultiple: { default: 4 }, range: { default: !1 } }, Ae = {
|
|
2976
2976
|
props: Uo
|
|
2977
2977
|
};
|
|
2978
2978
|
var Ho = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, W = (i, t, e, s) => {
|
|
@@ -2982,7 +2982,7 @@ var Ho = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, W = (i, t,
|
|
|
2982
2982
|
};
|
|
2983
2983
|
let z = class extends K {
|
|
2984
2984
|
constructor() {
|
|
2985
|
-
super(...arguments), this.multiple =
|
|
2985
|
+
super(...arguments), this.multiple = Ae.props.multiple.default, this.maxMultiple = Ae.props.maxMultiple.default, this.range = Ae.props.range.default, this.weeknumbers = Ae.props.weeknumbers.default, this.withcontrols = Ae.props.withcontrols.default, this.selected = [], this.earliest = Ae.props.earliest.default, this.latest = Ae.props.latest.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.dayStrings = this.strings.dates.daysShort, this.dayStringsLong = this.strings.dates.days, this.monthStrings = this.strings.dates.months, this.weekString = this.strings.dates.week, this.prevMonthString = this.strings.dates.prevMonth, this.nextMonthString = this.strings.dates.nextMonth, this._selected = [], this.year = 0, this.month = 0, this.week = 0, this.rangeHovered = null, this.inRange = {}, this.focusedDate = null, this.selectableDates = [], this.currentmonthtouched = !1, this.tabIndexSet = 0;
|
|
2986
2986
|
}
|
|
2987
2987
|
/**
|
|
2988
2988
|
* Runs on mount, used to set up various values and whatever you need to run
|
|
@@ -3003,7 +3003,7 @@ let z = class extends K {
|
|
|
3003
3003
|
this.addEventListener("keydown", this.handleKeydown);
|
|
3004
3004
|
}
|
|
3005
3005
|
convertSelected() {
|
|
3006
|
-
if (typeof this.selected == "string" && (this.selected = this.selected.split(",")), this.selected.length === 1 && this.selected[0] === "" && (this.selected = []), this._selected = this.selected.map((t) =>
|
|
3006
|
+
if (typeof this.selected == "string" && (this.selected = this.selected.split(",")), this.selected.length === 1 && this.selected[0] === "" && (this.selected = []), this._selected = this.selected.map((t) => $e(t)), this.range && this.selected.length === 2) {
|
|
3007
3007
|
const t = xs({
|
|
3008
3008
|
start: this._selected[0],
|
|
3009
3009
|
end: this._selected[1]
|
|
@@ -3021,7 +3021,7 @@ let z = class extends K {
|
|
|
3021
3021
|
}
|
|
3022
3022
|
setCurrentMonth() {
|
|
3023
3023
|
if (this.currentmonth === null && !this.currentmonthtouched && (this.currentmonthtouched = !0), this.selected.length && this.selected[0] !== "") {
|
|
3024
|
-
const t =
|
|
3024
|
+
const t = $e(this.selected[this.selected.length - 1]);
|
|
3025
3025
|
this.currentmonth = isNaN(t.getTime()) ? yi(/* @__PURE__ */ new Date()) : t;
|
|
3026
3026
|
} else this.currentmonth === null && (this.currentmonth = yi(/* @__PURE__ */ new Date()));
|
|
3027
3027
|
(!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth = yi(/* @__PURE__ */ new Date())), this.year = this.currentmonth.getFullYear(), this.month = this.currentmonth.getMonth();
|
|
@@ -3201,12 +3201,12 @@ let z = class extends K {
|
|
|
3201
3201
|
"pkt-calendar__date--range-start": this.range && (this.selected.length === 2 || this.rangeHovered !== null) && n === this.selected[0],
|
|
3202
3202
|
"pkt-calendar__date--range-end": this.range && this.selected.length === 2 && n === this.selected[1]
|
|
3203
3203
|
};
|
|
3204
|
-
return u`<td class=${
|
|
3204
|
+
return u`<td class=${M(f)}>
|
|
3205
3205
|
<button
|
|
3206
3206
|
type="button"
|
|
3207
3207
|
aria-pressed=${l ? "true" : "false"}
|
|
3208
3208
|
?disabled=${p}
|
|
3209
|
-
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only ${
|
|
3209
|
+
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only ${M(
|
|
3210
3210
|
y
|
|
3211
3211
|
)}"
|
|
3212
3212
|
@mouseover=${() => this.range && !this.isExcluded(a) && this.handleRangeHover(a)}
|
|
@@ -3521,19 +3521,27 @@ let Gt = class extends K {
|
|
|
3521
3521
|
};
|
|
3522
3522
|
return this.closeTag ? u`
|
|
3523
3523
|
<button
|
|
3524
|
-
class=${
|
|
3524
|
+
class=${M(e)}
|
|
3525
3525
|
type=${this.type}
|
|
3526
3526
|
@click=${this.close}
|
|
3527
3527
|
aria-label=${C(this.ariaLabel || void 0)}
|
|
3528
3528
|
aria-description=${C(this._ariaDescription || void 0)}
|
|
3529
3529
|
>
|
|
3530
|
-
${this.iconName && u`<pkt-icon
|
|
3530
|
+
${this.iconName && u`<pkt-icon
|
|
3531
|
+
class="pkt-tag__icon"
|
|
3532
|
+
name=${this.iconName}
|
|
3533
|
+
aria-hidden="true"
|
|
3534
|
+
></pkt-icon>`}
|
|
3531
3535
|
<span ${E(this.defaultSlot)}></span>
|
|
3532
3536
|
<pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
|
|
3533
3537
|
</button>
|
|
3534
3538
|
` : u`
|
|
3535
|
-
<span class=${
|
|
3536
|
-
${this.iconName && u`<pkt-icon
|
|
3539
|
+
<span class=${M(t)}>
|
|
3540
|
+
${this.iconName && u`<pkt-icon
|
|
3541
|
+
class="pkt-tag__icon"
|
|
3542
|
+
name=${this.iconName}
|
|
3543
|
+
aria-hidden="true"
|
|
3544
|
+
></pkt-icon>`}
|
|
3537
3545
|
<span ${E(this.defaultSlot)}></span>
|
|
3538
3546
|
</span>
|
|
3539
3547
|
`;
|
|
@@ -3574,7 +3582,7 @@ var Go = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, Bi = (i, t
|
|
|
3574
3582
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
3575
3583
|
return s && a && Go(t, e, a), a;
|
|
3576
3584
|
};
|
|
3577
|
-
let
|
|
3585
|
+
let Le = class extends ls {
|
|
3578
3586
|
constructor() {
|
|
3579
3587
|
super(...arguments), this.size = void 0, this.level = 2, this.visuallyHidden = !1, this.align = void 0;
|
|
3580
3588
|
}
|
|
@@ -3628,20 +3636,20 @@ let Ie = class extends ls {
|
|
|
3628
3636
|
};
|
|
3629
3637
|
Bi([
|
|
3630
3638
|
o({ type: String, reflect: !0 })
|
|
3631
|
-
],
|
|
3639
|
+
], Le.prototype, "size", 2);
|
|
3632
3640
|
Bi([
|
|
3633
3641
|
o({ type: Number, reflect: !0 })
|
|
3634
|
-
],
|
|
3642
|
+
], Le.prototype, "level", 2);
|
|
3635
3643
|
Bi([
|
|
3636
3644
|
o({ type: Boolean, reflect: !0 })
|
|
3637
|
-
],
|
|
3645
|
+
], Le.prototype, "visuallyHidden", 2);
|
|
3638
3646
|
Bi([
|
|
3639
3647
|
o({ type: String, reflect: !0 })
|
|
3640
|
-
],
|
|
3641
|
-
|
|
3648
|
+
], Le.prototype, "align", 2);
|
|
3649
|
+
Le = Bi([
|
|
3642
3650
|
j("pkt-heading")
|
|
3643
|
-
],
|
|
3644
|
-
const Zo = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } },
|
|
3651
|
+
], Le);
|
|
3652
|
+
const Zo = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } }, Qe = {
|
|
3645
3653
|
props: Zo
|
|
3646
3654
|
};
|
|
3647
3655
|
var Jo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, bt = (i, t, e, s) => {
|
|
@@ -3652,10 +3660,10 @@ var Jo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, bt = (i, t
|
|
|
3652
3660
|
let lt = class extends K {
|
|
3653
3661
|
//Constructor
|
|
3654
3662
|
constructor() {
|
|
3655
|
-
super(), this.defaultSlot = A(), this.ariaLabel = "", this.metaLead = null, this.borderOnHover = !0, this.clickCardLink = null, this.metaTrail = null, this.layout =
|
|
3663
|
+
super(), this.defaultSlot = A(), this.ariaLabel = "", this.metaLead = null, this.borderOnHover = !0, this.clickCardLink = null, this.metaTrail = null, this.layout = Qe.props.layout.default, this.heading = "", this.headinglevel = 3, this.image = {
|
|
3656
3664
|
src: "",
|
|
3657
3665
|
alt: ""
|
|
3658
|
-
}, this.imageShape = "square", this.openLinkInNewTab = !1, this.padding =
|
|
3666
|
+
}, this.imageShape = "square", this.openLinkInNewTab = !1, this.padding = Qe.props.padding.default, this.skin = Qe.props.skin.default, this.subheading = "", this.tagPosition = "top", this.tags = [], this.slotController = new rt(this, this.defaultSlot);
|
|
3659
3667
|
}
|
|
3660
3668
|
connectedCallback() {
|
|
3661
3669
|
super.connectedCallback();
|
|
@@ -3674,7 +3682,7 @@ let lt = class extends K {
|
|
|
3674
3682
|
}, a = ((t = this.ariaLabel) == null ? void 0 : t.trim()) || (this.heading ? `${this.heading} lenkekort` : "lenkekort"), n = ((e = this.ariaLabel) == null ? void 0 : e.trim()) || (this.heading ? this.heading : "kort");
|
|
3675
3683
|
return u`
|
|
3676
3684
|
<article
|
|
3677
|
-
class=${
|
|
3685
|
+
class=${M(s)}
|
|
3678
3686
|
aria-label=${C(this.clickCardLink ? a : n)}
|
|
3679
3687
|
>
|
|
3680
3688
|
${this.renderImage()}
|
|
@@ -3696,7 +3704,7 @@ let lt = class extends K {
|
|
|
3696
3704
|
};
|
|
3697
3705
|
return u`
|
|
3698
3706
|
${this.image.src && u`
|
|
3699
|
-
<div class=${
|
|
3707
|
+
<div class=${M(t)}>
|
|
3700
3708
|
<img src=${this.image.src} alt=${this.image.alt || ""} />
|
|
3701
3709
|
</div>
|
|
3702
3710
|
`}
|
|
@@ -3764,7 +3772,7 @@ let lt = class extends K {
|
|
|
3764
3772
|
return u`
|
|
3765
3773
|
${this.tags.length > 0 ? u`
|
|
3766
3774
|
<div
|
|
3767
|
-
class=${
|
|
3775
|
+
class=${M(t)}
|
|
3768
3776
|
role="list"
|
|
3769
3777
|
aria-label=${this.tags.length > 1 ? "merkelapper" : "merkelapp"}
|
|
3770
3778
|
>
|
|
@@ -3842,10 +3850,10 @@ bt([
|
|
|
3842
3850
|
type: String,
|
|
3843
3851
|
converter: {
|
|
3844
3852
|
fromAttribute: (i) => {
|
|
3845
|
-
const t =
|
|
3853
|
+
const t = Qe.props.skin.type;
|
|
3846
3854
|
return i && t.includes(i) ? i : (i && !t.includes(i) && console.warn(
|
|
3847
|
-
`Invalid skin value "${i}". Using default skin "${
|
|
3848
|
-
),
|
|
3855
|
+
`Invalid skin value "${i}". Using default skin "${Qe.props.skin.default}".`
|
|
3856
|
+
), Qe.props.skin.default);
|
|
3849
3857
|
},
|
|
3850
3858
|
toAttribute: (i) => i
|
|
3851
3859
|
}
|
|
@@ -3872,7 +3880,7 @@ const xa = (i, t, e) => {
|
|
|
3872
3880
|
const s = /* @__PURE__ */ new Map();
|
|
3873
3881
|
for (let a = t; a <= e; a++) s.set(i[a], a);
|
|
3874
3882
|
return s;
|
|
3875
|
-
}, Us =
|
|
3883
|
+
}, Us = Ue(class extends li {
|
|
3876
3884
|
constructor(i) {
|
|
3877
3885
|
if (super(i), i.type !== zt.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
3878
3886
|
}
|
|
@@ -3894,33 +3902,33 @@ const xa = (i, t, e) => {
|
|
|
3894
3902
|
let p, m, f = 0, y = a.length - 1, b = 0, k = n.length - 1;
|
|
3895
3903
|
for (; f <= y && b <= k; ) if (a[f] === null) f++;
|
|
3896
3904
|
else if (a[y] === null) y--;
|
|
3897
|
-
else if (l[f] === r[b]) d[b] =
|
|
3898
|
-
else if (l[y] === r[k]) d[k] =
|
|
3899
|
-
else if (l[f] === r[k]) d[k] =
|
|
3900
|
-
else if (l[y] === r[b]) d[b] =
|
|
3905
|
+
else if (l[f] === r[b]) d[b] = Ne(a[f], n[b]), f++, b++;
|
|
3906
|
+
else if (l[y] === r[k]) d[k] = Ne(a[y], n[k]), y--, k--;
|
|
3907
|
+
else if (l[f] === r[k]) d[k] = Ne(a[f], n[k]), vi(i, d[k + 1], a[f]), f++, k--;
|
|
3908
|
+
else if (l[y] === r[b]) d[b] = Ne(a[y], n[b]), vi(i, a[f], a[y]), y--, b++;
|
|
3901
3909
|
else if (p === void 0 && (p = xa(r, b, k), m = xa(l, f, y)), p.has(l[f])) if (p.has(l[y])) {
|
|
3902
3910
|
const w = m.get(r[b]), S = w !== void 0 ? a[w] : null;
|
|
3903
3911
|
if (S === null) {
|
|
3904
|
-
const
|
|
3905
|
-
|
|
3906
|
-
} else d[b] =
|
|
3912
|
+
const O = vi(i, a[f]);
|
|
3913
|
+
Ne(O, n[b]), d[b] = O;
|
|
3914
|
+
} else d[b] = Ne(S, n[b]), vi(i, a[f], S), a[w] = null;
|
|
3907
3915
|
b++;
|
|
3908
3916
|
} else ys(a[y]), y--;
|
|
3909
3917
|
else ys(a[f]), f++;
|
|
3910
3918
|
for (; b <= k; ) {
|
|
3911
3919
|
const w = vi(i, d[k + 1]);
|
|
3912
|
-
|
|
3920
|
+
Ne(w, n[b]), d[b++] = w;
|
|
3913
3921
|
}
|
|
3914
3922
|
for (; f <= y; ) {
|
|
3915
3923
|
const w = a[f++];
|
|
3916
3924
|
w !== null && ys(w);
|
|
3917
3925
|
}
|
|
3918
|
-
return this.ut = r, qa(i, d),
|
|
3926
|
+
return this.ut = r, qa(i, d), St;
|
|
3919
3927
|
}
|
|
3920
3928
|
}), Sa = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).toString(16)).slice(-16), Qo = (i) => new Promise((t) => setTimeout(t, i)), be = () => {
|
|
3921
3929
|
const i = Sa(), t = Sa();
|
|
3922
3930
|
return i.slice(0, 8) + "-" + i.slice(8, 12) + "-4" + i.slice(13) + "-a" + t.slice(1, 4) + "-" + t.slice(4);
|
|
3923
|
-
}, tl = { helptextDropdownButton: { default: "Les mer <span class='pkt-sr-only'>om feltet</span>" }, counter: { default: !1 }, optionalTag: { default: !1 }, optionalText: { default: "Valgfritt" }, requiredTag: { default: !1 }, requiredText: { default: "Må fylles ut" }, hasError: { default: !1 }, disabled: { default: !1 }, inline: { default: !1 }, hasFieldset: { default: !1 }, useWrapper: { default: !0 } },
|
|
3931
|
+
}, tl = { helptextDropdownButton: { default: "Les mer <span class='pkt-sr-only'>om feltet</span>" }, counter: { default: !1 }, optionalTag: { default: !1 }, optionalText: { default: "Valgfritt" }, requiredTag: { default: !1 }, requiredText: { default: "Må fylles ut" }, hasError: { default: !1 }, disabled: { default: !1 }, inline: { default: !1 }, hasFieldset: { default: !1 }, useWrapper: { default: !0 } }, Dt = {
|
|
3924
3932
|
props: tl
|
|
3925
3933
|
};
|
|
3926
3934
|
var el = {}, Ca;
|
|
@@ -3970,7 +3978,7 @@ function il() {
|
|
|
3970
3978
|
ariaValueNow: "aria-valuenow",
|
|
3971
3979
|
ariaValueText: "aria-valuetext",
|
|
3972
3980
|
role: "role"
|
|
3973
|
-
},
|
|
3981
|
+
}, O = (g, c) => {
|
|
3974
3982
|
for (let v in S) {
|
|
3975
3983
|
c[v] = null;
|
|
3976
3984
|
let _ = null;
|
|
@@ -3987,7 +3995,7 @@ function il() {
|
|
|
3987
3995
|
};
|
|
3988
3996
|
function N(g) {
|
|
3989
3997
|
const c = a.get(g), { form: v } = c;
|
|
3990
|
-
le(g, v, c),
|
|
3998
|
+
le(g, v, c), xt(g, c.labels);
|
|
3991
3999
|
}
|
|
3992
4000
|
const I = (g, c = !1) => {
|
|
3993
4001
|
const v = document.createTreeWalker(g, NodeFilter.SHOW_ELEMENT, {
|
|
@@ -3998,11 +4006,11 @@ function il() {
|
|
|
3998
4006
|
let _ = v.nextNode();
|
|
3999
4007
|
const D = !c || g.disabled;
|
|
4000
4008
|
for (; _; )
|
|
4001
|
-
_.formDisabledCallback && D &&
|
|
4009
|
+
_.formDisabledCallback && D && Et(_, g.disabled), _ = v.nextNode();
|
|
4002
4010
|
}, T = { attributes: !0, attributeFilter: ["disabled", "name"] }, H = he() ? new MutationObserver((g) => {
|
|
4003
4011
|
for (const c of g) {
|
|
4004
4012
|
const v = c.target;
|
|
4005
|
-
if (c.attributeName === "disabled" && (v.constructor.formAssociated ?
|
|
4013
|
+
if (c.attributeName === "disabled" && (v.constructor.formAssociated ? Et(v, v.hasAttribute("disabled")) : v.localName === "fieldset" && I(v)), c.attributeName === "name" && v.constructor.formAssociated) {
|
|
4006
4014
|
const _ = a.get(v), D = p.get(v);
|
|
4007
4015
|
_.setFormValue(D);
|
|
4008
4016
|
}
|
|
@@ -4012,11 +4020,11 @@ function il() {
|
|
|
4012
4020
|
g.forEach((c) => {
|
|
4013
4021
|
const { addedNodes: v, removedNodes: _ } = c, D = Array.from(v), V = Array.from(_);
|
|
4014
4022
|
D.forEach((U) => {
|
|
4015
|
-
var
|
|
4023
|
+
var Mt;
|
|
4016
4024
|
if (a.has(U) && U.constructor.formAssociated && N(U), m.has(U)) {
|
|
4017
4025
|
const ut = m.get(U);
|
|
4018
|
-
Object.keys(S).filter((
|
|
4019
|
-
st(U, S[
|
|
4026
|
+
Object.keys(S).filter((Pt) => ut[Pt] !== null).forEach((Pt) => {
|
|
4027
|
+
st(U, S[Pt], ut[Pt]);
|
|
4020
4028
|
}), m.delete(U);
|
|
4021
4029
|
}
|
|
4022
4030
|
if (w.has(U)) {
|
|
@@ -4024,34 +4032,34 @@ function il() {
|
|
|
4024
4032
|
st(U, "internals-valid", ut.validity.valid.toString()), st(U, "internals-invalid", (!ut.validity.valid).toString()), st(U, "aria-invalid", (!ut.validity.valid).toString()), w.delete(U);
|
|
4025
4033
|
}
|
|
4026
4034
|
if (U.localName === "form") {
|
|
4027
|
-
const ut = d.get(U),
|
|
4035
|
+
const ut = d.get(U), Pt = document.createTreeWalker(U, NodeFilter.SHOW_ELEMENT, {
|
|
4028
4036
|
acceptNode(vs) {
|
|
4029
4037
|
return a.has(vs) && vs.constructor.formAssociated && !(ut && ut.has(vs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
4030
4038
|
}
|
|
4031
4039
|
});
|
|
4032
|
-
let mi =
|
|
4040
|
+
let mi = Pt.nextNode();
|
|
4033
4041
|
for (; mi; )
|
|
4034
|
-
N(mi), mi =
|
|
4042
|
+
N(mi), mi = Pt.nextNode();
|
|
4035
4043
|
}
|
|
4036
|
-
U.localName === "fieldset" && ((
|
|
4044
|
+
U.localName === "fieldset" && ((Mt = H.observe) === null || Mt === void 0 || Mt.call(H, U, T), I(U, !0));
|
|
4037
4045
|
}), V.forEach((U) => {
|
|
4038
|
-
const
|
|
4039
|
-
|
|
4046
|
+
const Mt = a.get(U);
|
|
4047
|
+
Mt && s.get(Mt) && Ot(Mt), l.has(U) && l.get(U).disconnect();
|
|
4040
4048
|
});
|
|
4041
4049
|
});
|
|
4042
4050
|
}
|
|
4043
|
-
function
|
|
4051
|
+
function _t(g) {
|
|
4044
4052
|
g.forEach((c) => {
|
|
4045
4053
|
const { removedNodes: v } = c;
|
|
4046
4054
|
v.forEach((_) => {
|
|
4047
4055
|
const D = b.get(c.target);
|
|
4048
|
-
a.has(_) &&
|
|
4056
|
+
a.has(_) && Ce(_), D.disconnect();
|
|
4049
4057
|
});
|
|
4050
4058
|
});
|
|
4051
4059
|
}
|
|
4052
4060
|
const pt = (g) => {
|
|
4053
4061
|
var c, v;
|
|
4054
|
-
const _ = new MutationObserver(
|
|
4062
|
+
const _ = new MutationObserver(_t);
|
|
4055
4063
|
!((c = window == null ? void 0 : window.ShadyDOM) === null || c === void 0) && c.inUse && g.mode && g.host && (g = g.host), (v = _.observe) === null || v === void 0 || v.call(_, g, { childList: !0 }), b.set(g, _);
|
|
4056
4064
|
};
|
|
4057
4065
|
he() && new MutationObserver(G);
|
|
@@ -4060,9 +4068,9 @@ function il() {
|
|
|
4060
4068
|
subtree: !0
|
|
4061
4069
|
}, st = (g, c, v) => {
|
|
4062
4070
|
g.getAttribute(c) !== v && g.setAttribute(c, v);
|
|
4063
|
-
},
|
|
4071
|
+
}, Et = (g, c) => {
|
|
4064
4072
|
g.toggleAttribute("internals-disabled", c), c ? st(g, "aria-disabled", "true") : g.removeAttribute("aria-disabled"), g.formDisabledCallback && g.formDisabledCallback.apply(g, [c]);
|
|
4065
|
-
},
|
|
4073
|
+
}, Ot = (g) => {
|
|
4066
4074
|
s.get(g).forEach((c) => {
|
|
4067
4075
|
c.remove();
|
|
4068
4076
|
}), s.set(g, []);
|
|
@@ -4072,7 +4080,7 @@ function il() {
|
|
|
4072
4080
|
}, R = (g, c) => {
|
|
4073
4081
|
var v;
|
|
4074
4082
|
s.set(c, []), (v = H.observe) === null || v === void 0 || v.call(H, g, T);
|
|
4075
|
-
},
|
|
4083
|
+
}, xt = (g, c) => {
|
|
4076
4084
|
if (c.length) {
|
|
4077
4085
|
Array.from(c).forEach((_) => _.addEventListener("click", g.click.bind(g)));
|
|
4078
4086
|
let v = c[0].id;
|
|
@@ -4085,7 +4093,7 @@ function il() {
|
|
|
4085
4093
|
Qt(Ut(g.target));
|
|
4086
4094
|
}, te = (g) => {
|
|
4087
4095
|
Qt(Ut(g.target));
|
|
4088
|
-
},
|
|
4096
|
+
}, xe = (g) => {
|
|
4089
4097
|
const c = ["button[type=submit]", "input[type=submit]", "button:not([type])"].map((v) => `${v}:not([disabled])`).map((v) => `${v}:not([form])${g.id ? `,${v}[form='${g.id}']` : ""}`).join(",");
|
|
4090
4098
|
g.addEventListener("click", (v) => {
|
|
4091
4099
|
if (v.target.closest(c)) {
|
|
@@ -4095,7 +4103,7 @@ function il() {
|
|
|
4095
4103
|
_.size && Array.from(_).reverse().map((D) => a.get(D).reportValidity()).includes(!1) && v.preventDefault();
|
|
4096
4104
|
}
|
|
4097
4105
|
});
|
|
4098
|
-
},
|
|
4106
|
+
}, We = (g) => {
|
|
4099
4107
|
const c = d.get(g.target);
|
|
4100
4108
|
c && c.size && c.forEach((v) => {
|
|
4101
4109
|
v.constructor.formAssociated && v.formResetCallback && v.formResetCallback.apply(v);
|
|
@@ -4107,7 +4115,7 @@ function il() {
|
|
|
4107
4115
|
_.add(g);
|
|
4108
4116
|
else {
|
|
4109
4117
|
const D = /* @__PURE__ */ new Set();
|
|
4110
|
-
D.add(g), d.set(c, D),
|
|
4118
|
+
D.add(g), d.set(c, D), xe(c), c.addEventListener("reset", We), c.addEventListener("input", oe), c.addEventListener("change", te);
|
|
4111
4119
|
}
|
|
4112
4120
|
r.set(c, { ref: g, internals: v }), g.constructor.formAssociated && g.formAssociatedCallback && setTimeout(() => {
|
|
4113
4121
|
g.formAssociatedCallback.apply(g, [c]);
|
|
@@ -4119,15 +4127,15 @@ function il() {
|
|
|
4119
4127
|
}, ot = (g, c, v = DOMException) => {
|
|
4120
4128
|
if (!g.constructor.formAssociated)
|
|
4121
4129
|
throw new v(c);
|
|
4122
|
-
},
|
|
4130
|
+
}, Se = (g, c, v) => {
|
|
4123
4131
|
const _ = d.get(g);
|
|
4124
4132
|
return _ && _.size && _.forEach((D) => {
|
|
4125
4133
|
a.get(D)[v]() || (c = !1);
|
|
4126
4134
|
}), c;
|
|
4127
|
-
},
|
|
4135
|
+
}, Ce = (g) => {
|
|
4128
4136
|
if (g.constructor.formAssociated) {
|
|
4129
4137
|
const c = a.get(g), { labels: v, form: _ } = c;
|
|
4130
|
-
|
|
4138
|
+
xt(g, v), le(g, _, c);
|
|
4131
4139
|
}
|
|
4132
4140
|
};
|
|
4133
4141
|
function he() {
|
|
@@ -4143,8 +4151,8 @@ function il() {
|
|
|
4143
4151
|
for (let v in g)
|
|
4144
4152
|
v !== "valid" && g[v] !== !1 && (c = !1);
|
|
4145
4153
|
return c;
|
|
4146
|
-
},
|
|
4147
|
-
function
|
|
4154
|
+
}, Ke = /* @__PURE__ */ new WeakMap();
|
|
4155
|
+
function Ge(g, c) {
|
|
4148
4156
|
g.toggleAttribute(c, !0), g.part && g.part.add(c);
|
|
4149
4157
|
}
|
|
4150
4158
|
class ui extends Set {
|
|
@@ -4154,14 +4162,14 @@ function il() {
|
|
|
4154
4162
|
constructor(c) {
|
|
4155
4163
|
if (super(), !c || !c.tagName || c.tagName.indexOf("-") === -1)
|
|
4156
4164
|
throw new TypeError("Illegal constructor");
|
|
4157
|
-
|
|
4165
|
+
Ke.set(this, c);
|
|
4158
4166
|
}
|
|
4159
4167
|
add(c) {
|
|
4160
4168
|
if (!/^--/.test(c) || typeof c != "string")
|
|
4161
4169
|
throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${c} must start with '--'.`);
|
|
4162
|
-
const v = super.add(c), _ =
|
|
4163
|
-
return _.isConnected ?
|
|
4164
|
-
|
|
4170
|
+
const v = super.add(c), _ = Ke.get(this), D = `state${c}`;
|
|
4171
|
+
return _.isConnected ? Ge(_, D) : setTimeout(() => {
|
|
4172
|
+
Ge(_, D);
|
|
4165
4173
|
}), v;
|
|
4166
4174
|
}
|
|
4167
4175
|
clear() {
|
|
@@ -4170,7 +4178,7 @@ function il() {
|
|
|
4170
4178
|
super.clear();
|
|
4171
4179
|
}
|
|
4172
4180
|
delete(c) {
|
|
4173
|
-
const v = super.delete(c), _ =
|
|
4181
|
+
const v = super.delete(c), _ = Ke.get(this);
|
|
4174
4182
|
return _.isConnected ? (_.toggleAttribute(`state${c}`, !1), _.part && _.part.remove(`state${c}`)) : setTimeout(() => {
|
|
4175
4183
|
_.toggleAttribute(`state${c}`, !1), _.part && _.part.remove(`state${c}`);
|
|
4176
4184
|
}), v;
|
|
@@ -4214,19 +4222,19 @@ function il() {
|
|
|
4214
4222
|
HTMLFormElement.prototype.reportValidity = _;
|
|
4215
4223
|
function v(...V) {
|
|
4216
4224
|
let U = g.apply(this, V);
|
|
4217
|
-
return
|
|
4225
|
+
return Se(this, U, "checkValidity");
|
|
4218
4226
|
}
|
|
4219
4227
|
function _(...V) {
|
|
4220
4228
|
let U = c.apply(this, V);
|
|
4221
|
-
return
|
|
4229
|
+
return Se(this, U, "reportValidity");
|
|
4222
4230
|
}
|
|
4223
4231
|
const { get: D } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
|
|
4224
4232
|
Object.defineProperty(HTMLFormElement.prototype, "elements", {
|
|
4225
4233
|
get(...V) {
|
|
4226
|
-
const U = D.call(this, ...V),
|
|
4227
|
-
if (
|
|
4234
|
+
const U = D.call(this, ...V), Mt = Array.from(d.get(this) || []);
|
|
4235
|
+
if (Mt.length === 0)
|
|
4228
4236
|
return U;
|
|
4229
|
-
const ut = Array.from(U).concat(
|
|
4237
|
+
const ut = Array.from(U).concat(Mt).sort((Pt, mi) => Pt.compareDocumentPosition ? Pt.compareDocumentPosition(mi) & 2 ? 1 : -1 : 0);
|
|
4230
4238
|
return new zi(ut);
|
|
4231
4239
|
}
|
|
4232
4240
|
});
|
|
@@ -4239,7 +4247,7 @@ function il() {
|
|
|
4239
4247
|
if (!c || !c.tagName || c.tagName.indexOf("-") === -1)
|
|
4240
4248
|
throw new TypeError("Illegal constructor");
|
|
4241
4249
|
const v = c.getRootNode(), _ = new us();
|
|
4242
|
-
this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this),
|
|
4250
|
+
this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this), O(c, this), R(c, this), Object.seal(this), v instanceof DocumentFragment && pt(v);
|
|
4243
4251
|
}
|
|
4244
4252
|
checkValidity() {
|
|
4245
4253
|
const c = t.get(this);
|
|
@@ -4279,7 +4287,7 @@ function il() {
|
|
|
4279
4287
|
}
|
|
4280
4288
|
setFormValue(c) {
|
|
4281
4289
|
const v = t.get(this);
|
|
4282
|
-
if (ot(v, "Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),
|
|
4290
|
+
if (ot(v, "Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."), Ot(this), c != null && !(c instanceof FormData)) {
|
|
4283
4291
|
if (v.getAttribute("name")) {
|
|
4284
4292
|
const _ = at(v, this);
|
|
4285
4293
|
_.value = c;
|
|
@@ -4298,12 +4306,12 @@ function il() {
|
|
|
4298
4306
|
throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");
|
|
4299
4307
|
y.set(this, _);
|
|
4300
4308
|
const V = e.get(this), U = {};
|
|
4301
|
-
for (const
|
|
4302
|
-
U[
|
|
4309
|
+
for (const Pt in c)
|
|
4310
|
+
U[Pt] = c[Pt];
|
|
4303
4311
|
Object.keys(U).length === 0 && Ui(V);
|
|
4304
|
-
const
|
|
4305
|
-
delete
|
|
4306
|
-
const { valid: ut } = ms(V,
|
|
4312
|
+
const Mt = Object.assign(Object.assign({}, V), U);
|
|
4313
|
+
delete Mt.valid;
|
|
4314
|
+
const { valid: ut } = ms(V, Mt, this.form);
|
|
4307
4315
|
if (!ut && !v)
|
|
4308
4316
|
throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");
|
|
4309
4317
|
n.set(this, ut ? "" : v), D.isConnected ? (D.toggleAttribute("internals-invalid", !ut), D.toggleAttribute("internals-valid", ut), st(D, "aria-invalid", `${!ut}`)) : w.set(D, this);
|
|
@@ -4364,7 +4372,7 @@ function il() {
|
|
|
4364
4372
|
if (_.formAssociated) {
|
|
4365
4373
|
const V = _.prototype.connectedCallback;
|
|
4366
4374
|
_.prototype.connectedCallback = function() {
|
|
4367
|
-
k.has(this) || (k.set(this, !0), this.hasAttribute("disabled") &&
|
|
4375
|
+
k.has(this) || (k.set(this, !0), this.hasAttribute("disabled") && Et(this, !0)), V != null && V.apply(this), Ce(this);
|
|
4368
4376
|
};
|
|
4369
4377
|
}
|
|
4370
4378
|
c.call(this, v, _, D);
|
|
@@ -4413,24 +4421,24 @@ const al = {
|
|
|
4413
4421
|
};
|
|
4414
4422
|
let P = class extends K {
|
|
4415
4423
|
constructor() {
|
|
4416
|
-
super(), this.defaultValue = null, this.disabled = !1, this.readonly = !1, this.required = !1, this.max = null, this.maxlength = null, this.min = null, this.minlength = null, this.step = null, this.ariaDescribedBy = null, this.ariaLabelledby = null, this.name = "", this.pattern = null, this.placeholder = null, this.id = be(), this.counter = !1, this.hasError = !1, this.inline = !1, this.hasFieldset = !1, this.optionalTag = !1, this.requiredTag = !1, this.skipForwardTestid = !1, this.useWrapper = !0, this.fullwidth = !1, this.counterMaxLength = 0, this.errorMessage = "", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton =
|
|
4424
|
+
super(), this.defaultValue = null, this.disabled = !1, this.readonly = !1, this.required = !1, this.max = null, this.maxlength = null, this.min = null, this.minlength = null, this.step = null, this.ariaDescribedBy = null, this.ariaLabelledby = null, this.name = "", this.pattern = null, this.placeholder = null, this.id = be(), this.counter = !1, this.hasError = !1, this.inline = !1, this.hasFieldset = !1, this.optionalTag = !1, this.requiredTag = !1, this.skipForwardTestid = !1, this.useWrapper = !0, this.fullwidth = !1, this.counterMaxLength = 0, this.errorMessage = "", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Dt.props.helptextDropdownButton.default, this.label = null, this.optionalText = wt.forms.labels.optional, this.requiredText = wt.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
|
|
4417
4425
|
}
|
|
4418
4426
|
static get formAssociated() {
|
|
4419
4427
|
return !0;
|
|
4420
4428
|
}
|
|
4421
4429
|
manageValidity(t) {
|
|
4422
4430
|
var e, s, a, n, r, l, d, p, m, f, y;
|
|
4423
|
-
t && (this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 },
|
|
4431
|
+
t && (this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, wt.forms.messages.required, t) : (e = t.validity) != null && e.typeMismatch || (s = t.validity) != null && s.badInput ? this.internals.setValidity({ typeMismatch: !0 }, wt.forms.messages.invalid, t) : (a = t.validity) != null && a.patternMismatch ? this.internals.setValidity(
|
|
4424
4432
|
{ patternMismatch: !0 },
|
|
4425
|
-
|
|
4433
|
+
wt.forms.messages.invalidPattern,
|
|
4426
4434
|
t
|
|
4427
|
-
) : (n = t.validity) != null && n.tooShort || this.minlength && this.minlength > 0 && this.value.length < this.minlength ? this.internals.setValidity({ tooShort: !0 },
|
|
4435
|
+
) : (n = t.validity) != null && n.tooShort || this.minlength && this.minlength > 0 && this.value.length < this.minlength ? this.internals.setValidity({ tooShort: !0 }, wt.forms.messages.tooShort, t) : (r = t.validity) != null && r.tooLong || this.maxlength && this.maxlength > 0 && this.value.length > this.maxlength ? this.internals.setValidity({ tooLong: !0 }, wt.forms.messages.tooLong, t) : (l = t.validity) != null && l.rangeUnderflow ? this.internals.setValidity(
|
|
4428
4436
|
{ rangeUnderflow: !0 },
|
|
4429
|
-
this.min ?
|
|
4437
|
+
this.min ? wt.forms.messages.rangeUnderflowMin.replace("{min}", (d = this.min) == null ? void 0 : d.toString()) : wt.forms.messages.rangeUnderflow,
|
|
4430
4438
|
t
|
|
4431
|
-
) : (p = t.validity) != null && p.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 },
|
|
4439
|
+
) : (p = t.validity) != null && p.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, wt.forms.messages.invalid, t) : (m = t.validity) != null && m.rangeOverflow ? this.internals.setValidity(
|
|
4432
4440
|
{ rangeOverflow: !0 },
|
|
4433
|
-
this.max ?
|
|
4441
|
+
this.max ? wt.forms.messages.rangeOverflowMax.replace("{max}", (f = this.max) == null ? void 0 : f.toString()) : wt.forms.messages.rangeOverflow,
|
|
4434
4442
|
t
|
|
4435
4443
|
) : (y = t.validity) != null && y.customError ? this.internals.setValidity({ customError: !0 }, t.validationMessage, t) : this.internals.setValidity({}));
|
|
4436
4444
|
}
|
|
@@ -4659,21 +4667,21 @@ let an = class {
|
|
|
4659
4667
|
let e = !1;
|
|
4660
4668
|
t.forEach((s) => {
|
|
4661
4669
|
s.type === "childList" && (s.addedNodes.forEach((a) => {
|
|
4662
|
-
|
|
4670
|
+
Xe(a) && (this.addNode(a), e = !0);
|
|
4663
4671
|
}), s.removedNodes.forEach((a) => {
|
|
4664
|
-
|
|
4665
|
-
})), s.type === "attributes" &&
|
|
4672
|
+
Xe(a) && (this.nodes = this.nodes.filter((n) => n !== a), e = !0);
|
|
4673
|
+
})), s.type === "attributes" && Xe(s.target) && (this.addNode(s.target), e = !0);
|
|
4666
4674
|
}), e && this.createOptions();
|
|
4667
4675
|
}
|
|
4668
4676
|
};
|
|
4669
|
-
var nl = Object.defineProperty, rl = Object.getOwnPropertyDescriptor,
|
|
4677
|
+
var nl = Object.defineProperty, rl = Object.getOwnPropertyDescriptor, qe = (i, t, e, s) => {
|
|
4670
4678
|
for (var a = s > 1 ? void 0 : s ? rl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
4671
4679
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
4672
4680
|
return s && a && nl(t, e, a), a;
|
|
4673
4681
|
};
|
|
4674
4682
|
let ce = class extends K {
|
|
4675
4683
|
constructor() {
|
|
4676
|
-
super(), this.defaultSlot = A(), this.forId = be(), this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton =
|
|
4684
|
+
super(), this.defaultSlot = A(), this.forId = be(), this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Dt.props.helptextDropdownButton.default, this.isHelpTextOpen = !1, this.filledSlots = /* @__PURE__ */ new Set(), this.slotController = new rt(this, this.defaultSlot);
|
|
4677
4685
|
}
|
|
4678
4686
|
updateSlots(t) {
|
|
4679
4687
|
this.filledSlots = new Set(t);
|
|
@@ -4687,7 +4695,7 @@ let ce = class extends K {
|
|
|
4687
4695
|
detail: { isOpen: a }
|
|
4688
4696
|
})
|
|
4689
4697
|
);
|
|
4690
|
-
}, e =
|
|
4698
|
+
}, e = M({
|
|
4691
4699
|
"pkt-inputwrapper__helptext-container": !0,
|
|
4692
4700
|
"pkt-inputwrapper__has-helptext": this.helptext || this.helptextDropdown || this.filledSlots.size > 0
|
|
4693
4701
|
}), s = () => this.helptextDropdown ? u`<div class="pkt-inputwrapper__helptext-expandable">
|
|
@@ -4703,7 +4711,7 @@ let ce = class extends K {
|
|
|
4703
4711
|
<span class="pkt-btn__text">${Ji(this.helptextDropdownButton)}</span>
|
|
4704
4712
|
</button>
|
|
4705
4713
|
<div
|
|
4706
|
-
class="${
|
|
4714
|
+
class="${M({
|
|
4707
4715
|
"pkt-inputwrapper__helptext": !0,
|
|
4708
4716
|
"pkt-inputwrapper__helptext-expandable-open": this.isHelpTextOpen,
|
|
4709
4717
|
"pkt-inputwrapper__helptext-expandable-closed": !this.isHelpTextOpen
|
|
@@ -4721,25 +4729,25 @@ let ce = class extends K {
|
|
|
4721
4729
|
</div>`}`;
|
|
4722
4730
|
}
|
|
4723
4731
|
};
|
|
4724
|
-
|
|
4732
|
+
qe([
|
|
4725
4733
|
o({ type: String, reflect: !0 })
|
|
4726
4734
|
], ce.prototype, "forId", 2);
|
|
4727
|
-
|
|
4735
|
+
qe([
|
|
4728
4736
|
o({ type: String })
|
|
4729
4737
|
], ce.prototype, "helptext", 2);
|
|
4730
|
-
|
|
4738
|
+
qe([
|
|
4731
4739
|
o({ type: String })
|
|
4732
4740
|
], ce.prototype, "helptextDropdown", 2);
|
|
4733
|
-
|
|
4741
|
+
qe([
|
|
4734
4742
|
o({ type: String })
|
|
4735
4743
|
], ce.prototype, "helptextDropdownButton", 2);
|
|
4736
|
-
|
|
4744
|
+
qe([
|
|
4737
4745
|
B()
|
|
4738
4746
|
], ce.prototype, "isHelpTextOpen", 2);
|
|
4739
|
-
|
|
4747
|
+
qe([
|
|
4740
4748
|
B()
|
|
4741
4749
|
], ce.prototype, "filledSlots", 2);
|
|
4742
|
-
ce =
|
|
4750
|
+
ce = qe([
|
|
4743
4751
|
j("pkt-helptext")
|
|
4744
4752
|
], ce);
|
|
4745
4753
|
var ol = Object.defineProperty, ll = Object.getOwnPropertyDescriptor, X = (i, t, e, s) => {
|
|
@@ -4757,7 +4765,7 @@ const hl = {
|
|
|
4757
4765
|
};
|
|
4758
4766
|
let Y = class extends K {
|
|
4759
4767
|
constructor() {
|
|
4760
|
-
super(), this.defaultSlot = A(), this.helptextSlot = A(), this.forId = be(), this.label = "", this.helptext = null, this.helptextDropdown = null, this.helptextDropdownButton = null, this.counter =
|
|
4768
|
+
super(), this.defaultSlot = A(), this.helptextSlot = A(), this.forId = be(), this.label = "", this.helptext = null, this.helptextDropdown = null, this.helptextDropdownButton = null, this.counter = Dt.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.counterError = null, this.counterPosition = "bottom", this.optionalTag = Dt.props.optionalTag.default, this.optionalText = Dt.props.optionalText.default, this.requiredTag = Dt.props.requiredTag.default, this.requiredText = Dt.props.requiredText.default, this.tagText = null, this.hasError = Dt.props.hasError.default, this.errorMessage = "", this.disabled = Dt.props.disabled.default, this.inline = Dt.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = Dt.props.hasFieldset.default, this.role = "group", this.useWrapper = Dt.props.useWrapper.default, this.slotController = new rt(this, this.defaultSlot, this.helptextSlot);
|
|
4761
4769
|
}
|
|
4762
4770
|
updated(t) {
|
|
4763
4771
|
super.updated(t);
|
|
@@ -4798,7 +4806,7 @@ let Y = class extends K {
|
|
|
4798
4806
|
.forId=${this.forId}
|
|
4799
4807
|
.helptext=${this.helptext}
|
|
4800
4808
|
.helptextDropdown=${this.helptextDropdown}
|
|
4801
|
-
.helptextDropdownButton=${this.helptextDropdownButton ||
|
|
4809
|
+
.helptextDropdownButton=${this.helptextDropdownButton || Dt.props.helptextDropdownButton.default}
|
|
4802
4810
|
@toggleHelpText=${(f) => {
|
|
4803
4811
|
this.toggleDropdown(f);
|
|
4804
4812
|
}}
|
|
@@ -4826,7 +4834,7 @@ let Y = class extends K {
|
|
|
4826
4834
|
`, m = () => this.hasFieldset ? u`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${s}">
|
|
4827
4835
|
${p()}
|
|
4828
4836
|
</fieldset>` : u`<div class="pkt-inputwrapper__fieldset">${p()}</div>`;
|
|
4829
|
-
return u`<div class=${
|
|
4837
|
+
return u`<div class=${M(t)}>${m()}</div> `;
|
|
4830
4838
|
}
|
|
4831
4839
|
toggleDropdown(t) {
|
|
4832
4840
|
this.dispatchEvent(
|
|
@@ -4836,8 +4844,8 @@ let Y = class extends K {
|
|
|
4836
4844
|
})
|
|
4837
4845
|
);
|
|
4838
4846
|
}
|
|
4839
|
-
handleLabelClick(
|
|
4840
|
-
this.
|
|
4847
|
+
handleLabelClick() {
|
|
4848
|
+
this.dispatchEvent(
|
|
4841
4849
|
new CustomEvent("labelClick", {
|
|
4842
4850
|
bubbles: !0,
|
|
4843
4851
|
composed: !0,
|
|
@@ -4941,7 +4949,7 @@ let gt = class extends K {
|
|
|
4941
4949
|
render() {
|
|
4942
4950
|
return u`
|
|
4943
4951
|
<div
|
|
4944
|
-
class=${
|
|
4952
|
+
class=${M({
|
|
4945
4953
|
"pkt-listbox": !0,
|
|
4946
4954
|
"pkt-listbox__open": this.isOpen,
|
|
4947
4955
|
"pkt-txt-16-light": !0
|
|
@@ -4985,7 +4993,7 @@ let gt = class extends K {
|
|
|
4985
4993
|
}}
|
|
4986
4994
|
aria-selected=${t.selected ? "true" : "false"}
|
|
4987
4995
|
@keydown=${this.handleOptionKeydown}
|
|
4988
|
-
class=${
|
|
4996
|
+
class=${M({
|
|
4989
4997
|
"pkt-listbox__option": !0,
|
|
4990
4998
|
"pkt-listbox__option--selected": !!(!this.isMultiSelect && t.selected),
|
|
4991
4999
|
"pkt-listbox__option--checkBox": this.isMultiSelect
|
|
@@ -5057,7 +5065,7 @@ let gt = class extends K {
|
|
|
5057
5065
|
type="text"
|
|
5058
5066
|
aria-label="Søk i listen"
|
|
5059
5067
|
form=""
|
|
5060
|
-
placeholder=${this.searchPlaceholder ||
|
|
5068
|
+
placeholder=${this.searchPlaceholder || wt.forms.search.placeholder}
|
|
5061
5069
|
@input=${this.handleSearchInput}
|
|
5062
5070
|
@keydown=${this.handleSearchKeydown}
|
|
5063
5071
|
.value=${this.searchValue}
|
|
@@ -5359,7 +5367,7 @@ let Q = class extends P {
|
|
|
5359
5367
|
<div class="pkt-contents" ${E(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
5360
5368
|
<div class="pkt-combobox" @focusout=${this.handleFocusOut}>
|
|
5361
5369
|
<div
|
|
5362
|
-
class=${
|
|
5370
|
+
class=${M({
|
|
5363
5371
|
"pkt-combobox__input": !0,
|
|
5364
5372
|
"pkt-combobox__input--fullwidth": this.fullwidth,
|
|
5365
5373
|
"pkt-combobox__input--open": this._isOptionsOpen,
|
|
@@ -5389,7 +5397,7 @@ let Q = class extends P {
|
|
|
5389
5397
|
tabindex="${this.disabled ? "-1" : "0"}"
|
|
5390
5398
|
>
|
|
5391
5399
|
<pkt-icon
|
|
5392
|
-
class=${
|
|
5400
|
+
class=${M({
|
|
5393
5401
|
"pkt-combobox__arrow-icon": !0,
|
|
5394
5402
|
"pkt-combobox__arrow-icon--open": this._isOptionsOpen
|
|
5395
5403
|
})}
|
|
@@ -5557,7 +5565,11 @@ let Q = class extends P {
|
|
|
5557
5565
|
}
|
|
5558
5566
|
handleInputClick(t) {
|
|
5559
5567
|
var e, s;
|
|
5560
|
-
|
|
5568
|
+
if (this.disabled) {
|
|
5569
|
+
t.preventDefault(), t.stopImmediatePropagation();
|
|
5570
|
+
return;
|
|
5571
|
+
}
|
|
5572
|
+
t.currentTarget && t.currentTarget !== this.arrowRef.value && ((e = this.inputRef.value) == null ? void 0 : e.type) !== "hidden" ? ((s = this.inputRef.value) == null || s.focus(), this.requestUpdate()) : this.handleArrowClick(t);
|
|
5561
5573
|
}
|
|
5562
5574
|
handlePlaceholderClick(t) {
|
|
5563
5575
|
this.disabled || (t.stopPropagation(), this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.focus(), this._inputFocus = !0, this.requestUpdate()));
|
|
@@ -5972,14 +5984,14 @@ let vt = class extends P {
|
|
|
5972
5984
|
t.has("defaultChecked") && !this.checked && (this.checked = this.defaultChecked), t.has("checked") && this.inputRef.value && (this.inputRef.value.checked = this.checked === "" || this.checked === "true" || this.checked === !0), t.has("indeterminate") && this.inputRef.value && (this.inputRef.value.indeterminate = this.indeterminate === "" || this.indeterminate === "true" || this.indeterminate === !0), super.updated(t);
|
|
5973
5985
|
}
|
|
5974
5986
|
render() {
|
|
5975
|
-
const t =
|
|
5987
|
+
const t = M({
|
|
5976
5988
|
"pkt-input-check__input": !0,
|
|
5977
5989
|
"pkt-input-check__input--tile": this.hasTile,
|
|
5978
5990
|
"pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
|
|
5979
|
-
}), e =
|
|
5991
|
+
}), e = M({
|
|
5980
5992
|
"pkt-input-check__input-checkbox": !0,
|
|
5981
5993
|
"pkt-input-check__input-checkbox--error": this.hasError
|
|
5982
|
-
}), s =
|
|
5994
|
+
}), s = M({
|
|
5983
5995
|
"pkt-input-check__input-label": !0,
|
|
5984
5996
|
"pkt-input-check__input-label--disabled": this.disabled,
|
|
5985
5997
|
"pkt-input-check__input-label--left": this.labelPosition === "left",
|
|
@@ -6102,7 +6114,7 @@ let ai = class extends K {
|
|
|
6102
6114
|
"pkt-date-tags": !0,
|
|
6103
6115
|
[this.className]: !0
|
|
6104
6116
|
}, u`
|
|
6105
|
-
<div class=${
|
|
6117
|
+
<div class=${M(this.classes)} aria-live="polite">
|
|
6106
6118
|
${Array.isArray(this.dates) && this.dates[0] ? Us(
|
|
6107
6119
|
en((this.dates ?? []).filter(Boolean)),
|
|
6108
6120
|
(t) => t,
|
|
@@ -6141,7 +6153,7 @@ ai = Vi([
|
|
|
6141
6153
|
], ai);
|
|
6142
6154
|
const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, range: { default: !1 } }, $i = {
|
|
6143
6155
|
props: xl
|
|
6144
|
-
},
|
|
6156
|
+
}, Be = () => {
|
|
6145
6157
|
const i = navigator.userAgent;
|
|
6146
6158
|
return !!(/iP(hone|od|ad)/.test(i) || /Macintosh/.test(i) && "ontouchend" in document);
|
|
6147
6159
|
}, Yi = {
|
|
@@ -6175,7 +6187,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6175
6187
|
* Mobile Safari does not play well with type="date" amd custom datepickers
|
|
6176
6188
|
*/
|
|
6177
6189
|
getInputType() {
|
|
6178
|
-
return
|
|
6190
|
+
return Be() ? "text" : "date";
|
|
6179
6191
|
}
|
|
6180
6192
|
}, Pi = {
|
|
6181
6193
|
/**
|
|
@@ -6286,11 +6298,11 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6286
6298
|
const r = i.target;
|
|
6287
6299
|
if (r.value) {
|
|
6288
6300
|
a(r);
|
|
6289
|
-
const l =
|
|
6301
|
+
const l = _e(r.value);
|
|
6290
6302
|
l && t[0] !== r.value && t[1] && (s(), (n = e == null ? void 0 : e.value) == null || n.handleDateSelect(l));
|
|
6291
6303
|
} else t[0] && s();
|
|
6292
6304
|
}
|
|
6293
|
-
},
|
|
6305
|
+
}, Pe = {
|
|
6294
6306
|
/**
|
|
6295
6307
|
* Handles common keyboard interactions for datepicker inputs
|
|
6296
6308
|
*/
|
|
@@ -6306,12 +6318,12 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6306
6318
|
(e === "Enter" || e === " " || e === "Space") && (i.preventDefault(), t(i));
|
|
6307
6319
|
}
|
|
6308
6320
|
};
|
|
6309
|
-
var Cl = Object.defineProperty, Tl = Object.getOwnPropertyDescriptor,
|
|
6321
|
+
var Cl = Object.defineProperty, Tl = Object.getOwnPropertyDescriptor, Bt = (i, t, e, s) => {
|
|
6310
6322
|
for (var a = s > 1 ? void 0 : s ? Tl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6311
6323
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6312
6324
|
return s && a && Cl(t, e, a), a;
|
|
6313
6325
|
};
|
|
6314
|
-
let
|
|
6326
|
+
let Ct = class extends K {
|
|
6315
6327
|
constructor() {
|
|
6316
6328
|
super(...arguments), this.open = !1, this.multiple = !1, this.range = !1, this.weeknumbers = !1, this.withcontrols = !1, this.maxMultiple = null, this.selected = [], this.earliest = null, this.latest = null, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.popupRef = A(), this.calendarRef = A(), this.handleDocumentClick = (t) => {
|
|
6317
6329
|
if (!this.open) return;
|
|
@@ -6357,7 +6369,7 @@ let St = class extends K {
|
|
|
6357
6369
|
const t = { "pkt-calendar-popup": !0, show: this.open, hide: !this.open };
|
|
6358
6370
|
return u`
|
|
6359
6371
|
<div
|
|
6360
|
-
class="${
|
|
6372
|
+
class="${M(t)}"
|
|
6361
6373
|
${E(this.popupRef)}
|
|
6362
6374
|
id="date-popup"
|
|
6363
6375
|
?hidden=${!this.open}
|
|
@@ -6389,51 +6401,51 @@ let St = class extends K {
|
|
|
6389
6401
|
`;
|
|
6390
6402
|
}
|
|
6391
6403
|
};
|
|
6392
|
-
|
|
6404
|
+
Bt([
|
|
6393
6405
|
o({ type: Boolean, reflect: !0 })
|
|
6394
|
-
],
|
|
6395
|
-
|
|
6406
|
+
], Ct.prototype, "open", 2);
|
|
6407
|
+
Bt([
|
|
6396
6408
|
o({ type: Boolean })
|
|
6397
|
-
],
|
|
6398
|
-
|
|
6409
|
+
], Ct.prototype, "multiple", 2);
|
|
6410
|
+
Bt([
|
|
6399
6411
|
o({ type: Boolean })
|
|
6400
|
-
],
|
|
6401
|
-
|
|
6412
|
+
], Ct.prototype, "range", 2);
|
|
6413
|
+
Bt([
|
|
6402
6414
|
o({ type: Boolean })
|
|
6403
|
-
],
|
|
6404
|
-
|
|
6415
|
+
], Ct.prototype, "weeknumbers", 2);
|
|
6416
|
+
Bt([
|
|
6405
6417
|
o({ type: Boolean })
|
|
6406
|
-
],
|
|
6407
|
-
|
|
6418
|
+
], Ct.prototype, "withcontrols", 2);
|
|
6419
|
+
Bt([
|
|
6408
6420
|
o({ type: Number })
|
|
6409
|
-
],
|
|
6410
|
-
|
|
6421
|
+
], Ct.prototype, "maxMultiple", 2);
|
|
6422
|
+
Bt([
|
|
6411
6423
|
o({ type: Array })
|
|
6412
|
-
],
|
|
6413
|
-
|
|
6424
|
+
], Ct.prototype, "selected", 2);
|
|
6425
|
+
Bt([
|
|
6414
6426
|
o({ type: String })
|
|
6415
|
-
],
|
|
6416
|
-
|
|
6427
|
+
], Ct.prototype, "earliest", 2);
|
|
6428
|
+
Bt([
|
|
6417
6429
|
o({ type: String })
|
|
6418
|
-
],
|
|
6419
|
-
|
|
6430
|
+
], Ct.prototype, "latest", 2);
|
|
6431
|
+
Bt([
|
|
6420
6432
|
o({ type: Array })
|
|
6421
|
-
],
|
|
6422
|
-
|
|
6433
|
+
], Ct.prototype, "excludedates", 2);
|
|
6434
|
+
Bt([
|
|
6423
6435
|
o({ type: Array })
|
|
6424
|
-
],
|
|
6425
|
-
|
|
6436
|
+
], Ct.prototype, "excludeweekdays", 2);
|
|
6437
|
+
Bt([
|
|
6426
6438
|
o({ type: String })
|
|
6427
|
-
],
|
|
6428
|
-
|
|
6439
|
+
], Ct.prototype, "currentmonth", 2);
|
|
6440
|
+
Ct = Bt([
|
|
6429
6441
|
j("pkt-datepicker-popup")
|
|
6430
|
-
],
|
|
6442
|
+
], Ct);
|
|
6431
6443
|
var Nl = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, qt = (i, t, e, s) => {
|
|
6432
6444
|
for (var a = s > 1 ? void 0 : s ? Al(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6433
6445
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6434
6446
|
return s && a && Nl(t, e, a), a;
|
|
6435
6447
|
};
|
|
6436
|
-
let
|
|
6448
|
+
let It = class extends K {
|
|
6437
6449
|
constructor() {
|
|
6438
6450
|
super(...arguments), this.value = "", this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.inputClasses = {}, this.strings = { calendar: { buttonAltText: "Åpne kalender" } }, this.inputRef = A(), this.btnRef = A();
|
|
6439
6451
|
}
|
|
@@ -6506,7 +6518,7 @@ let Dt = class extends K {
|
|
|
6506
6518
|
return u`
|
|
6507
6519
|
<div class="pkt-input__container">
|
|
6508
6520
|
<input
|
|
6509
|
-
class="${
|
|
6521
|
+
class="${M(this.inputClasses)}"
|
|
6510
6522
|
.type=${this.inputType}
|
|
6511
6523
|
id="${this.id}-input"
|
|
6512
6524
|
.value=${this.value}
|
|
@@ -6522,7 +6534,7 @@ let Dt = class extends K {
|
|
|
6522
6534
|
t.preventDefault(), this.dispatchToggleCalendar(t);
|
|
6523
6535
|
}}
|
|
6524
6536
|
?disabled=${this.disabled}
|
|
6525
|
-
@keydown=${(t) =>
|
|
6537
|
+
@keydown=${(t) => Pe.handleInputKeydown(
|
|
6526
6538
|
t,
|
|
6527
6539
|
(e) => this.dispatchToggleCalendar(e),
|
|
6528
6540
|
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
@@ -6539,7 +6551,7 @@ let Dt = class extends K {
|
|
|
6539
6551
|
this.dispatchInput(t), t.stopImmediatePropagation();
|
|
6540
6552
|
}}
|
|
6541
6553
|
@focus=${() => {
|
|
6542
|
-
this.dispatchFocus(),
|
|
6554
|
+
this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6543
6555
|
}}
|
|
6544
6556
|
@blur=${(t) => {
|
|
6545
6557
|
this.dispatchBlur(t), this.dispatchManageValidity(t.target), this.dispatchEvent(
|
|
@@ -6556,10 +6568,10 @@ let Dt = class extends K {
|
|
|
6556
6568
|
${E(this.inputRef)}
|
|
6557
6569
|
/>
|
|
6558
6570
|
<button
|
|
6559
|
-
class="${
|
|
6571
|
+
class="${M(Di.getButtonClasses())}"
|
|
6560
6572
|
type="button"
|
|
6561
6573
|
@click=${(t) => this.dispatchToggleCalendar(t)}
|
|
6562
|
-
@keydown=${(t) =>
|
|
6574
|
+
@keydown=${(t) => Pe.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
|
|
6563
6575
|
?disabled=${this.disabled}
|
|
6564
6576
|
${E(this.btnRef)}
|
|
6565
6577
|
>
|
|
@@ -6572,46 +6584,46 @@ let Dt = class extends K {
|
|
|
6572
6584
|
};
|
|
6573
6585
|
qt([
|
|
6574
6586
|
o({ type: String })
|
|
6575
|
-
],
|
|
6587
|
+
], It.prototype, "value", 2);
|
|
6576
6588
|
qt([
|
|
6577
6589
|
o({ type: String })
|
|
6578
|
-
],
|
|
6590
|
+
], It.prototype, "inputType", 2);
|
|
6579
6591
|
qt([
|
|
6580
6592
|
o({ type: String })
|
|
6581
|
-
],
|
|
6593
|
+
], It.prototype, "id", 2);
|
|
6582
6594
|
qt([
|
|
6583
6595
|
o({ type: String })
|
|
6584
|
-
],
|
|
6596
|
+
], It.prototype, "min", 2);
|
|
6585
6597
|
qt([
|
|
6586
6598
|
o({ type: String })
|
|
6587
|
-
],
|
|
6599
|
+
], It.prototype, "max", 2);
|
|
6588
6600
|
qt([
|
|
6589
6601
|
o({ type: String })
|
|
6590
|
-
],
|
|
6602
|
+
], It.prototype, "placeholder", 2);
|
|
6591
6603
|
qt([
|
|
6592
6604
|
o({ type: Boolean })
|
|
6593
|
-
],
|
|
6605
|
+
], It.prototype, "readonly", 2);
|
|
6594
6606
|
qt([
|
|
6595
6607
|
o({ type: Boolean })
|
|
6596
|
-
],
|
|
6608
|
+
], It.prototype, "disabled", 2);
|
|
6597
6609
|
qt([
|
|
6598
6610
|
o({ type: Object })
|
|
6599
|
-
],
|
|
6611
|
+
], It.prototype, "inputClasses", 2);
|
|
6600
6612
|
qt([
|
|
6601
6613
|
o({ type: Object })
|
|
6602
|
-
],
|
|
6614
|
+
], It.prototype, "internals", 2);
|
|
6603
6615
|
qt([
|
|
6604
6616
|
o({ type: Object })
|
|
6605
|
-
],
|
|
6606
|
-
|
|
6617
|
+
], It.prototype, "strings", 2);
|
|
6618
|
+
It = qt([
|
|
6607
6619
|
j("pkt-datepicker-single")
|
|
6608
|
-
],
|
|
6609
|
-
var El = Object.defineProperty, Ol = Object.getOwnPropertyDescriptor,
|
|
6620
|
+
], It);
|
|
6621
|
+
var El = Object.defineProperty, Ol = Object.getOwnPropertyDescriptor, Vt = (i, t, e, s) => {
|
|
6610
6622
|
for (var a = s > 1 ? void 0 : s ? Ol(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6611
6623
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6612
6624
|
return s && a && El(t, e, a), a;
|
|
6613
6625
|
};
|
|
6614
|
-
let
|
|
6626
|
+
let Tt = class extends K {
|
|
6615
6627
|
constructor() {
|
|
6616
6628
|
super(...arguments), this.value = [], this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.showRangeLabels = !1, this.inputClasses = {}, this.strings = { generic: { from: "Fra", to: "Til" } }, this.inputRef = A(), this.inputRefTo = A(), this.btnRef = A();
|
|
6617
6629
|
}
|
|
@@ -6689,7 +6701,7 @@ let Ct = class extends K {
|
|
|
6689
6701
|
<div class="pkt-input__container">
|
|
6690
6702
|
${this.showRangeLabels ? u` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` : $}
|
|
6691
6703
|
<input
|
|
6692
|
-
class=${
|
|
6704
|
+
class=${M(this.inputClasses)}
|
|
6693
6705
|
.type=${this.inputType}
|
|
6694
6706
|
id="${this.id}-input"
|
|
6695
6707
|
.value=${this.value[0] ?? ""}
|
|
@@ -6704,7 +6716,7 @@ let Ct = class extends K {
|
|
|
6704
6716
|
@touchend=${(e) => {
|
|
6705
6717
|
e.preventDefault(), this.dispatchToggleCalendar(e);
|
|
6706
6718
|
}}
|
|
6707
|
-
@keydown=${(e) =>
|
|
6719
|
+
@keydown=${(e) => Pe.handleInputKeydown(
|
|
6708
6720
|
e,
|
|
6709
6721
|
(s) => this.dispatchToggleCalendar(s),
|
|
6710
6722
|
() => Pi.submitFormOrFallback(
|
|
@@ -6727,7 +6739,7 @@ let Ct = class extends K {
|
|
|
6727
6739
|
this.dispatchInput(e), e.stopImmediatePropagation();
|
|
6728
6740
|
}}
|
|
6729
6741
|
@focus=${() => {
|
|
6730
|
-
this.dispatchFocus(),
|
|
6742
|
+
this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6731
6743
|
}}
|
|
6732
6744
|
@blur=${(e) => {
|
|
6733
6745
|
this.dispatchEvent(
|
|
@@ -6747,12 +6759,12 @@ let Ct = class extends K {
|
|
|
6747
6759
|
}}
|
|
6748
6760
|
${E(this.inputRef)}
|
|
6749
6761
|
/>
|
|
6750
|
-
<div class="${
|
|
6762
|
+
<div class="${M(t)}" id="${this.id}-to-label">
|
|
6751
6763
|
${this.strings.generic.to}
|
|
6752
6764
|
</div>
|
|
6753
6765
|
${this.showRangeLabels ? $ : u` <div class="pkt-input-separator">–</div> `}
|
|
6754
6766
|
<input
|
|
6755
|
-
class=${
|
|
6767
|
+
class=${M(this.inputClasses)}
|
|
6756
6768
|
.type=${this.inputType}
|
|
6757
6769
|
id="${this.id}-to"
|
|
6758
6770
|
aria-labelledby="${this.id}-to-label"
|
|
@@ -6768,7 +6780,7 @@ let Ct = class extends K {
|
|
|
6768
6780
|
@touchend=${(e) => {
|
|
6769
6781
|
e.preventDefault(), this.dispatchToggleCalendar(e);
|
|
6770
6782
|
}}
|
|
6771
|
-
@keydown=${(e) =>
|
|
6783
|
+
@keydown=${(e) => Pe.handleInputKeydown(
|
|
6772
6784
|
e,
|
|
6773
6785
|
(s) => this.dispatchToggleCalendar(s),
|
|
6774
6786
|
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
@@ -6785,7 +6797,7 @@ let Ct = class extends K {
|
|
|
6785
6797
|
this.dispatchInput(e), e.stopImmediatePropagation();
|
|
6786
6798
|
}}
|
|
6787
6799
|
@focus=${() => {
|
|
6788
|
-
this.dispatchFocus(),
|
|
6800
|
+
this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6789
6801
|
}}
|
|
6790
6802
|
@blur=${(e) => {
|
|
6791
6803
|
this.dispatchBlur(e), e.target.value && (this.dispatchManageValidity(e.target), this.dispatchEvent(
|
|
@@ -6808,10 +6820,10 @@ let Ct = class extends K {
|
|
|
6808
6820
|
${E(this.inputRefTo)}
|
|
6809
6821
|
/>
|
|
6810
6822
|
<button
|
|
6811
|
-
class="${
|
|
6823
|
+
class="${M(Di.getButtonClasses())}"
|
|
6812
6824
|
type="button"
|
|
6813
6825
|
@click=${(e) => this.dispatchToggleCalendar(e)}
|
|
6814
|
-
@keydown=${(e) =>
|
|
6826
|
+
@keydown=${(e) => Pe.handleButtonKeydown(e, (s) => this.dispatchToggleCalendar(s))}
|
|
6815
6827
|
?disabled=${this.disabled}
|
|
6816
6828
|
${E(this.btnRef)}
|
|
6817
6829
|
>
|
|
@@ -6822,51 +6834,51 @@ let Ct = class extends K {
|
|
|
6822
6834
|
`;
|
|
6823
6835
|
}
|
|
6824
6836
|
};
|
|
6825
|
-
|
|
6837
|
+
Vt([
|
|
6826
6838
|
o({ type: Array })
|
|
6827
|
-
],
|
|
6828
|
-
|
|
6839
|
+
], Tt.prototype, "value", 2);
|
|
6840
|
+
Vt([
|
|
6829
6841
|
o({ type: String })
|
|
6830
|
-
],
|
|
6831
|
-
|
|
6842
|
+
], Tt.prototype, "inputType", 2);
|
|
6843
|
+
Vt([
|
|
6832
6844
|
o({ type: String })
|
|
6833
|
-
],
|
|
6834
|
-
|
|
6845
|
+
], Tt.prototype, "id", 2);
|
|
6846
|
+
Vt([
|
|
6835
6847
|
o({ type: String })
|
|
6836
|
-
],
|
|
6837
|
-
|
|
6848
|
+
], Tt.prototype, "min", 2);
|
|
6849
|
+
Vt([
|
|
6838
6850
|
o({ type: String })
|
|
6839
|
-
],
|
|
6840
|
-
|
|
6851
|
+
], Tt.prototype, "max", 2);
|
|
6852
|
+
Vt([
|
|
6841
6853
|
o({ type: String })
|
|
6842
|
-
],
|
|
6843
|
-
|
|
6854
|
+
], Tt.prototype, "placeholder", 2);
|
|
6855
|
+
Vt([
|
|
6844
6856
|
o({ type: Boolean })
|
|
6845
|
-
],
|
|
6846
|
-
|
|
6857
|
+
], Tt.prototype, "readonly", 2);
|
|
6858
|
+
Vt([
|
|
6847
6859
|
o({ type: Boolean })
|
|
6848
|
-
],
|
|
6849
|
-
|
|
6860
|
+
], Tt.prototype, "disabled", 2);
|
|
6861
|
+
Vt([
|
|
6850
6862
|
o({ type: Boolean })
|
|
6851
|
-
],
|
|
6852
|
-
|
|
6863
|
+
], Tt.prototype, "showRangeLabels", 2);
|
|
6864
|
+
Vt([
|
|
6853
6865
|
o({ type: Object })
|
|
6854
|
-
],
|
|
6855
|
-
|
|
6866
|
+
], Tt.prototype, "inputClasses", 2);
|
|
6867
|
+
Vt([
|
|
6856
6868
|
o({ type: Object })
|
|
6857
|
-
],
|
|
6858
|
-
|
|
6869
|
+
], Tt.prototype, "internals", 2);
|
|
6870
|
+
Vt([
|
|
6859
6871
|
o({ type: Object })
|
|
6860
|
-
],
|
|
6861
|
-
|
|
6872
|
+
], Tt.prototype, "strings", 2);
|
|
6873
|
+
Tt = Vt([
|
|
6862
6874
|
j("pkt-datepicker-range")
|
|
6863
|
-
],
|
|
6864
|
-
var Ml = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor,
|
|
6875
|
+
], Tt);
|
|
6876
|
+
var Ml = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, jt = (i, t, e, s) => {
|
|
6865
6877
|
for (var a = s > 1 ? void 0 : s ? Pl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6866
6878
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6867
6879
|
return s && a && Ml(t, e, a), a;
|
|
6868
6880
|
};
|
|
6869
|
-
let
|
|
6881
|
+
let Nt = class extends K {
|
|
6870
6882
|
constructor() {
|
|
6871
6883
|
super(...arguments), this.value = [], this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.inputClasses = {}, this.strings = { calendar: { buttonAltText: "Åpne kalender" } }, this.inputRef = A(), this.btnRef = A();
|
|
6872
6884
|
}
|
|
@@ -6942,7 +6954,7 @@ let Tt = class extends K {
|
|
|
6942
6954
|
return u`
|
|
6943
6955
|
<div class="pkt-input__container">
|
|
6944
6956
|
<input
|
|
6945
|
-
class=${
|
|
6957
|
+
class=${M(this.inputClasses)}
|
|
6946
6958
|
.type=${this.inputType}
|
|
6947
6959
|
id="${this.id}-input"
|
|
6948
6960
|
min=${C(this.min)}
|
|
@@ -6963,9 +6975,9 @@ let Tt = class extends K {
|
|
|
6963
6975
|
this.dispatchInput(t), t.stopImmediatePropagation();
|
|
6964
6976
|
}}
|
|
6965
6977
|
@focus=${() => {
|
|
6966
|
-
this.dispatchFocus(),
|
|
6978
|
+
this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6967
6979
|
}}
|
|
6968
|
-
@keydown=${(t) =>
|
|
6980
|
+
@keydown=${(t) => Pe.handleInputKeydown(
|
|
6969
6981
|
t,
|
|
6970
6982
|
(e) => this.dispatchToggleCalendar(e),
|
|
6971
6983
|
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
@@ -6982,10 +6994,10 @@ let Tt = class extends K {
|
|
|
6982
6994
|
${E(this.inputRef)}
|
|
6983
6995
|
/>
|
|
6984
6996
|
<button
|
|
6985
|
-
class="${
|
|
6997
|
+
class="${M(Di.getButtonClasses())}"
|
|
6986
6998
|
type="button"
|
|
6987
6999
|
@click=${(t) => this.dispatchToggleCalendar(t)}
|
|
6988
|
-
@keydown=${(t) =>
|
|
7000
|
+
@keydown=${(t) => Pe.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
|
|
6989
7001
|
?disabled=${this.disabled}
|
|
6990
7002
|
${E(this.btnRef)}
|
|
6991
7003
|
>
|
|
@@ -6996,45 +7008,45 @@ let Tt = class extends K {
|
|
|
6996
7008
|
`;
|
|
6997
7009
|
}
|
|
6998
7010
|
};
|
|
6999
|
-
|
|
7011
|
+
jt([
|
|
7000
7012
|
o({ type: Array })
|
|
7001
|
-
],
|
|
7002
|
-
|
|
7013
|
+
], Nt.prototype, "value", 2);
|
|
7014
|
+
jt([
|
|
7003
7015
|
o({ type: String })
|
|
7004
|
-
],
|
|
7005
|
-
|
|
7016
|
+
], Nt.prototype, "inputType", 2);
|
|
7017
|
+
jt([
|
|
7006
7018
|
o({ type: String })
|
|
7007
|
-
],
|
|
7008
|
-
|
|
7019
|
+
], Nt.prototype, "id", 2);
|
|
7020
|
+
jt([
|
|
7009
7021
|
o({ type: String })
|
|
7010
|
-
],
|
|
7011
|
-
|
|
7022
|
+
], Nt.prototype, "min", 2);
|
|
7023
|
+
jt([
|
|
7012
7024
|
o({ type: String })
|
|
7013
|
-
],
|
|
7014
|
-
|
|
7025
|
+
], Nt.prototype, "max", 2);
|
|
7026
|
+
jt([
|
|
7015
7027
|
o({ type: String })
|
|
7016
|
-
],
|
|
7017
|
-
|
|
7028
|
+
], Nt.prototype, "placeholder", 2);
|
|
7029
|
+
jt([
|
|
7018
7030
|
o({ type: Boolean })
|
|
7019
|
-
],
|
|
7020
|
-
|
|
7031
|
+
], Nt.prototype, "readonly", 2);
|
|
7032
|
+
jt([
|
|
7021
7033
|
o({ type: Boolean })
|
|
7022
|
-
],
|
|
7023
|
-
|
|
7034
|
+
], Nt.prototype, "disabled", 2);
|
|
7035
|
+
jt([
|
|
7024
7036
|
o({ type: Number })
|
|
7025
|
-
],
|
|
7026
|
-
|
|
7037
|
+
], Nt.prototype, "maxlength", 2);
|
|
7038
|
+
jt([
|
|
7027
7039
|
o({ type: Object })
|
|
7028
|
-
],
|
|
7029
|
-
|
|
7040
|
+
], Nt.prototype, "inputClasses", 2);
|
|
7041
|
+
jt([
|
|
7030
7042
|
o({ type: Object })
|
|
7031
|
-
],
|
|
7032
|
-
|
|
7043
|
+
], Nt.prototype, "internals", 2);
|
|
7044
|
+
jt([
|
|
7033
7045
|
o({ type: Object })
|
|
7034
|
-
],
|
|
7035
|
-
|
|
7046
|
+
], Nt.prototype, "strings", 2);
|
|
7047
|
+
Nt = jt([
|
|
7036
7048
|
j("pkt-datepicker-multiple")
|
|
7037
|
-
],
|
|
7049
|
+
], Nt);
|
|
7038
7050
|
var Dl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, dt = (i, t, e, s) => {
|
|
7039
7051
|
for (var a = s > 1 ? void 0 : s ? Il(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7040
7052
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
@@ -7199,7 +7211,7 @@ let tt = class extends P {
|
|
|
7199
7211
|
}}
|
|
7200
7212
|
@handle-date-select=${(i) => {
|
|
7201
7213
|
var t, e;
|
|
7202
|
-
const s =
|
|
7214
|
+
const s = _e(i.detail);
|
|
7203
7215
|
s && this._value[1] !== nt(s) && ((e = (t = this.calRef) == null ? void 0 : t.value) == null || e.handleDateSelect(s));
|
|
7204
7216
|
}}
|
|
7205
7217
|
@input-changed=${() => {
|
|
@@ -7254,7 +7266,7 @@ let tt = class extends P {
|
|
|
7254
7266
|
.latest=${this.max}
|
|
7255
7267
|
.excludedates=${Array.isArray(this.excludedates) ? this.excludedates : this.excludedates.split(",")}
|
|
7256
7268
|
.excludeweekdays=${this.excludeweekdays}
|
|
7257
|
-
.currentmonth=${this.currentmonth ?
|
|
7269
|
+
.currentmonth=${this.currentmonth ? $e(this.currentmonth) : null}
|
|
7258
7270
|
@date-selected=${(i) => {
|
|
7259
7271
|
this.value = Ts.processDateSelection(i.detail, this.multiple, this.range), this._value = i.detail, Ts.updateInputValues(
|
|
7260
7272
|
this.inputRef,
|
|
@@ -7313,7 +7325,7 @@ let tt = class extends P {
|
|
|
7313
7325
|
id-base=${this.id}
|
|
7314
7326
|
@date-tag-removed=${(i) => {
|
|
7315
7327
|
var t;
|
|
7316
|
-
const e = this.datepickerPopupRef.value, s =
|
|
7328
|
+
const e = this.datepickerPopupRef.value, s = _e(i.detail);
|
|
7317
7329
|
e && s && typeof e.handleDateSelect == "function" ? e.handleDateSelect(s) : (t = this.calRef.value) == null || t.handleDateSelect(s);
|
|
7318
7330
|
}}
|
|
7319
7331
|
></pkt-date-tags>` : $}
|
|
@@ -7337,10 +7349,10 @@ let tt = class extends P {
|
|
|
7337
7349
|
var i;
|
|
7338
7350
|
const t = this.datepickerPopupRef.value;
|
|
7339
7351
|
if (this.calendarOpen = !0, t && typeof t.show == "function") {
|
|
7340
|
-
t.show(),
|
|
7352
|
+
t.show(), Be() && t.focusOnCurrentDate();
|
|
7341
7353
|
return;
|
|
7342
7354
|
}
|
|
7343
|
-
await Qo(20), this.handleCalendarPosition(),
|
|
7355
|
+
await Qo(20), this.handleCalendarPosition(), Be() && ((i = this.calRef.value) == null || i.focusOnCurrentDate());
|
|
7344
7356
|
}
|
|
7345
7357
|
hideCalendar() {
|
|
7346
7358
|
const i = this.datepickerPopupRef.value;
|
|
@@ -7431,7 +7443,7 @@ var Ll = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor, di = (i, t
|
|
|
7431
7443
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7432
7444
|
return s && a && Ll(t, e, a), a;
|
|
7433
7445
|
};
|
|
7434
|
-
let
|
|
7446
|
+
let Ve = class extends K {
|
|
7435
7447
|
constructor() {
|
|
7436
7448
|
super(), this.defaultSlot = A(), this.href = Ta.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = !1, this.target = Ta.props.target.default, this.slotController = new rt(this, this.defaultSlot);
|
|
7437
7449
|
}
|
|
@@ -7443,7 +7455,7 @@ let Le = class extends K {
|
|
|
7443
7455
|
"pkt-link--external": this.external
|
|
7444
7456
|
};
|
|
7445
7457
|
return u`<a
|
|
7446
|
-
class=${
|
|
7458
|
+
class=${M(t)}
|
|
7447
7459
|
href=${this.href}
|
|
7448
7460
|
.target=${this.target}
|
|
7449
7461
|
.rel=${this.external ? "noopener noreferrer" : $}
|
|
@@ -7453,28 +7465,28 @@ let Le = class extends K {
|
|
|
7453
7465
|
};
|
|
7454
7466
|
di([
|
|
7455
7467
|
o({ type: String, reflect: !0 })
|
|
7456
|
-
],
|
|
7468
|
+
], Ve.prototype, "href", 2);
|
|
7457
7469
|
di([
|
|
7458
7470
|
o({ type: String, reflect: !0 })
|
|
7459
|
-
],
|
|
7471
|
+
], Ve.prototype, "iconName", 2);
|
|
7460
7472
|
di([
|
|
7461
7473
|
o({ type: String, reflect: !0 })
|
|
7462
|
-
],
|
|
7474
|
+
], Ve.prototype, "iconPosition", 2);
|
|
7463
7475
|
di([
|
|
7464
7476
|
o({ type: Boolean, reflect: !0 })
|
|
7465
|
-
],
|
|
7477
|
+
], Ve.prototype, "external", 2);
|
|
7466
7478
|
di([
|
|
7467
7479
|
o({ type: String, reflect: !0 })
|
|
7468
|
-
],
|
|
7469
|
-
|
|
7480
|
+
], Ve.prototype, "target", 2);
|
|
7481
|
+
Ve = di([
|
|
7470
7482
|
j("pkt-link")
|
|
7471
|
-
],
|
|
7472
|
-
var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor,
|
|
7483
|
+
], Ve);
|
|
7484
|
+
var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, ze = (i, t, e, s) => {
|
|
7473
7485
|
for (var a = s > 1 ? void 0 : s ? jl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7474
7486
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7475
7487
|
return s && a && Vl(t, e, a), a;
|
|
7476
7488
|
};
|
|
7477
|
-
let
|
|
7489
|
+
let we = class extends K {
|
|
7478
7490
|
constructor() {
|
|
7479
7491
|
super(), this.defaultSlot = A(), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal", this.slotController = new rt(this, this.defaultSlot);
|
|
7480
7492
|
}
|
|
@@ -7495,27 +7507,27 @@ let _e = class extends K {
|
|
|
7495
7507
|
`;
|
|
7496
7508
|
}
|
|
7497
7509
|
};
|
|
7498
|
-
|
|
7510
|
+
ze([
|
|
7499
7511
|
o({ type: String, reflect: !0 })
|
|
7500
|
-
],
|
|
7501
|
-
|
|
7512
|
+
], we.prototype, "title", 2);
|
|
7513
|
+
ze([
|
|
7502
7514
|
o({ type: String, reflect: !0 })
|
|
7503
|
-
],
|
|
7504
|
-
|
|
7515
|
+
], we.prototype, "href", 2);
|
|
7516
|
+
ze([
|
|
7505
7517
|
o({ type: String, reflect: !0 })
|
|
7506
|
-
],
|
|
7507
|
-
|
|
7518
|
+
], we.prototype, "iconName", 2);
|
|
7519
|
+
ze([
|
|
7508
7520
|
o({ type: Boolean, reflect: !0 })
|
|
7509
|
-
],
|
|
7510
|
-
|
|
7521
|
+
], we.prototype, "external", 2);
|
|
7522
|
+
ze([
|
|
7511
7523
|
o({ type: Boolean, reflect: !0 })
|
|
7512
|
-
],
|
|
7513
|
-
|
|
7524
|
+
], we.prototype, "openInNewTab", 2);
|
|
7525
|
+
ze([
|
|
7514
7526
|
o({ type: String, reflect: !0 })
|
|
7515
|
-
],
|
|
7516
|
-
|
|
7527
|
+
], we.prototype, "skin", 2);
|
|
7528
|
+
we = ze([
|
|
7517
7529
|
j("pkt-linkcard")
|
|
7518
|
-
],
|
|
7530
|
+
], we);
|
|
7519
7531
|
var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, pe = (i, t, e, s) => {
|
|
7520
7532
|
for (var a = s > 1 ? void 0 : s ? Ul(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7521
7533
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
@@ -7533,11 +7545,11 @@ let Yt = class extends K {
|
|
|
7533
7545
|
t.has("delay") && this.setupLoader();
|
|
7534
7546
|
}
|
|
7535
7547
|
render() {
|
|
7536
|
-
const t =
|
|
7548
|
+
const t = M({
|
|
7537
7549
|
"pkt-loader": !0,
|
|
7538
7550
|
[`pkt-loader--${this.inline ? "inline" : "box"}`]: !0,
|
|
7539
7551
|
[`pkt-loader--${this.size}`]: !0
|
|
7540
|
-
}), e =
|
|
7552
|
+
}), e = M({
|
|
7541
7553
|
"pkt-contents": !0,
|
|
7542
7554
|
"pkt-hide": this.isLoading
|
|
7543
7555
|
});
|
|
@@ -7609,7 +7621,7 @@ var ql = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, ci = (i, t
|
|
|
7609
7621
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7610
7622
|
return s && a && ql(t, e, a), a;
|
|
7611
7623
|
};
|
|
7612
|
-
let
|
|
7624
|
+
let je = class extends K {
|
|
7613
7625
|
constructor() {
|
|
7614
7626
|
super(), this.defaultSlot = A(), this.closable = Ns.props.closable.default, this.compact = Ns.props.compact.default, this.title = "", this.skin = Ns.props.skin.default, this._isClosed = !1, this.close = (i) => {
|
|
7615
7627
|
this._isClosed = !0, this.dispatchEvent(new CustomEvent("close", { detail: { origin: i }, bubbles: !0 })), this.dispatchEvent(new CustomEvent("on-close", { detail: { origin: i }, bubbles: !0 }));
|
|
@@ -7628,7 +7640,7 @@ let Be = class extends K {
|
|
|
7628
7640
|
"pkt-messagebox--closable": this.closable,
|
|
7629
7641
|
"pkt-hide": this._isClosed
|
|
7630
7642
|
};
|
|
7631
|
-
return u`<div class=${
|
|
7643
|
+
return u`<div class=${M(i)}>
|
|
7632
7644
|
${this.closable ? u`<div class="pkt-messagebox__close">
|
|
7633
7645
|
<button
|
|
7634
7646
|
@click=${this.close}
|
|
@@ -7645,22 +7657,22 @@ let Be = class extends K {
|
|
|
7645
7657
|
};
|
|
7646
7658
|
ci([
|
|
7647
7659
|
o({ type: Boolean, reflect: !0 })
|
|
7648
|
-
],
|
|
7660
|
+
], je.prototype, "closable", 2);
|
|
7649
7661
|
ci([
|
|
7650
7662
|
o({ type: Boolean, reflect: !0 })
|
|
7651
|
-
],
|
|
7663
|
+
], je.prototype, "compact", 2);
|
|
7652
7664
|
ci([
|
|
7653
7665
|
o({ type: String, reflect: !0 })
|
|
7654
|
-
],
|
|
7666
|
+
], je.prototype, "title", 2);
|
|
7655
7667
|
ci([
|
|
7656
7668
|
o({ type: String, reflect: !0 })
|
|
7657
|
-
],
|
|
7669
|
+
], je.prototype, "skin", 2);
|
|
7658
7670
|
ci([
|
|
7659
7671
|
B()
|
|
7660
|
-
],
|
|
7661
|
-
|
|
7672
|
+
], je.prototype, "_isClosed", 2);
|
|
7673
|
+
je = ci([
|
|
7662
7674
|
j("pkt-messagebox")
|
|
7663
|
-
],
|
|
7675
|
+
], je);
|
|
7664
7676
|
const Wl = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, As = {
|
|
7665
7677
|
props: Wl
|
|
7666
7678
|
};
|
|
@@ -7669,7 +7681,7 @@ var Kl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, Xt = (i, t
|
|
|
7669
7681
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7670
7682
|
return s && a && Kl(t, e, a), a;
|
|
7671
7683
|
};
|
|
7672
|
-
let
|
|
7684
|
+
let Rt = class extends K {
|
|
7673
7685
|
constructor() {
|
|
7674
7686
|
super(), this.headingText = "", this.removePadding = !1, this.hideCloseButton = As.props.hideCloseButton.default, this.closeOnBackdropClick = As.props.closeOnBackdropClick.default, this.closeButtonSkin = "blue", this.size = As.props.size.default, this.variant = "dialog", this.drawerPosition = "right", this.transparentBackdrop = !1, this.defaultSlot = A(), this.dialogRef = A(), this._isOpen = !1, this.close = (t, e = !1) => {
|
|
7675
7687
|
var s;
|
|
@@ -7736,7 +7748,7 @@ let It = class extends K {
|
|
|
7736
7748
|
};
|
|
7737
7749
|
return u`
|
|
7738
7750
|
<dialog
|
|
7739
|
-
class=${
|
|
7751
|
+
class=${M(t)}
|
|
7740
7752
|
${E(this.dialogRef)}
|
|
7741
7753
|
aria-labelledby="pkt-modal__headingText"
|
|
7742
7754
|
aria-describedby="pkt-modal__content"
|
|
@@ -7745,10 +7757,10 @@ let It = class extends K {
|
|
|
7745
7757
|
<div class="pkt-modal__wrapper">
|
|
7746
7758
|
${this.headingText || !this.hideCloseButton ? u`<div class="pkt-modal__header">
|
|
7747
7759
|
<div class="pkt-modal__header-background"></div>
|
|
7748
|
-
${this.headingText ? u`<h1 id="pkt-modal__headingText" class=${
|
|
7760
|
+
${this.headingText ? u`<h1 id="pkt-modal__headingText" class=${M(e)}>
|
|
7749
7761
|
${this.headingText}
|
|
7750
7762
|
</h1>` : u`<div class="pkt-modal__headingText"></div>`}
|
|
7751
|
-
${this.hideCloseButton ? u`<div class="pkt-modal__noCloseButton"></div>` : u`<div class="${
|
|
7763
|
+
${this.hideCloseButton ? u`<div class="pkt-modal__noCloseButton"></div>` : u`<div class="${M(n)}">
|
|
7752
7764
|
<pkt-button
|
|
7753
7765
|
@click=${(r) => this.close(r)}
|
|
7754
7766
|
aria-label="close"
|
|
@@ -7764,7 +7776,7 @@ let It = class extends K {
|
|
|
7764
7776
|
<div class="pkt-modal__container">
|
|
7765
7777
|
<div
|
|
7766
7778
|
id="pkt-modal__content"
|
|
7767
|
-
class=${
|
|
7779
|
+
class=${M(s)}
|
|
7768
7780
|
${E(this.defaultSlot)}
|
|
7769
7781
|
></div>
|
|
7770
7782
|
</div>
|
|
@@ -7775,43 +7787,43 @@ let It = class extends K {
|
|
|
7775
7787
|
};
|
|
7776
7788
|
Xt([
|
|
7777
7789
|
o({ type: String })
|
|
7778
|
-
],
|
|
7790
|
+
], Rt.prototype, "headingText", 2);
|
|
7779
7791
|
Xt([
|
|
7780
7792
|
o({ type: Boolean })
|
|
7781
|
-
],
|
|
7793
|
+
], Rt.prototype, "removePadding", 2);
|
|
7782
7794
|
Xt([
|
|
7783
7795
|
o({ type: Boolean })
|
|
7784
|
-
],
|
|
7796
|
+
], Rt.prototype, "hideCloseButton", 2);
|
|
7785
7797
|
Xt([
|
|
7786
7798
|
o({ type: Boolean })
|
|
7787
|
-
],
|
|
7799
|
+
], Rt.prototype, "closeOnBackdropClick", 2);
|
|
7788
7800
|
Xt([
|
|
7789
7801
|
o({ type: String })
|
|
7790
|
-
],
|
|
7802
|
+
], Rt.prototype, "closeButtonSkin", 2);
|
|
7791
7803
|
Xt([
|
|
7792
7804
|
o({ type: String })
|
|
7793
|
-
],
|
|
7805
|
+
], Rt.prototype, "size", 2);
|
|
7794
7806
|
Xt([
|
|
7795
7807
|
o({ type: String })
|
|
7796
|
-
],
|
|
7808
|
+
], Rt.prototype, "variant", 2);
|
|
7797
7809
|
Xt([
|
|
7798
7810
|
o({ type: String })
|
|
7799
|
-
],
|
|
7811
|
+
], Rt.prototype, "drawerPosition", 2);
|
|
7800
7812
|
Xt([
|
|
7801
7813
|
o({ type: Boolean })
|
|
7802
|
-
],
|
|
7814
|
+
], Rt.prototype, "transparentBackdrop", 2);
|
|
7803
7815
|
Xt([
|
|
7804
7816
|
B()
|
|
7805
|
-
],
|
|
7806
|
-
|
|
7817
|
+
], Rt.prototype, "_isOpen", 2);
|
|
7818
|
+
Rt = Xt([
|
|
7807
7819
|
j("pkt-modal")
|
|
7808
|
-
],
|
|
7820
|
+
], Rt);
|
|
7809
7821
|
/**
|
|
7810
7822
|
* @license
|
|
7811
7823
|
* Copyright 2018 Google LLC
|
|
7812
7824
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7813
7825
|
*/
|
|
7814
|
-
const nn = "important", Yl = " !" + nn, Zl =
|
|
7826
|
+
const nn = "important", Yl = " !" + nn, Zl = Ue(class extends li {
|
|
7815
7827
|
constructor(i) {
|
|
7816
7828
|
var t;
|
|
7817
7829
|
if (super(i), i.type !== zt.ATTRIBUTE || i.name !== "style" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
@@ -7834,7 +7846,7 @@ const nn = "important", Yl = " !" + nn, Zl = Fe(class extends li {
|
|
|
7834
7846
|
s.includes("-") || n ? e.setProperty(s, n ? a.slice(0, -11) : a, n ? nn : "") : e[s] = a;
|
|
7835
7847
|
}
|
|
7836
7848
|
}
|
|
7837
|
-
return
|
|
7849
|
+
return St;
|
|
7838
7850
|
}
|
|
7839
7851
|
});
|
|
7840
7852
|
var Jl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
|
|
@@ -7853,16 +7865,16 @@ let et = class extends K {
|
|
|
7853
7865
|
super.updated(i), i.has("valueCurrent") && this.labelRef.value && (this.labelWidth = this.labelRef.value.getBoundingClientRect().width || 0), i.has("id") && this.id && (this.progressBarId = this.id), (i.has("statusType") || i.has("id") || i.has("ariaLabelledby")) && (this.progressbarId = this.id || be(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`), (i.has("ariaValueText") || i.has("valueCurrent") || i.has("valueMax")) && (this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || ""), this.syncAttributes();
|
|
7854
7866
|
}
|
|
7855
7867
|
render() {
|
|
7856
|
-
const i = this.statusType !== "none", t = this.valueMax - this.valueMin, e = this.valueCurrent / t * 100, s = this.statusType === "fraction" ? Math.round(e) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), a = `${this.valueCurrent} av ${t}`, n =
|
|
7868
|
+
const i = this.statusType !== "none", t = this.valueMax - this.valueMin, e = this.valueCurrent / t * 100, s = this.statusType === "fraction" ? Math.round(e) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), a = `${this.valueCurrent} av ${t}`, n = M({
|
|
7857
7869
|
"pkt-progressbar__bar": !0,
|
|
7858
7870
|
[`pkt-progressbar__bar--${this.skin}`]: !!this.skin
|
|
7859
|
-
}), r =
|
|
7871
|
+
}), r = M({
|
|
7860
7872
|
"pkt-progressbar__title": !0,
|
|
7861
7873
|
"pkt-progressbar__title-center": this.titlePosition === "center"
|
|
7862
|
-
}), l =
|
|
7874
|
+
}), l = M({
|
|
7863
7875
|
"pkt-progressbar__status": !0,
|
|
7864
7876
|
"pkt-progressbar__status--center": this.statusPlacement === "center"
|
|
7865
|
-
}), d =
|
|
7877
|
+
}), d = M({
|
|
7866
7878
|
"pkt-progressbar__status-placement--following": this.statusPlacement === "following",
|
|
7867
7879
|
"pkt-progressbar__status-placement--center": this.statusPlacement === "center",
|
|
7868
7880
|
"pkt-progressbar__status-placement--left": this.statusPlacement === "left"
|
|
@@ -7956,12 +7968,12 @@ ct([
|
|
|
7956
7968
|
et = ct([
|
|
7957
7969
|
j("pkt-progressbar")
|
|
7958
7970
|
], et);
|
|
7959
|
-
var Ql = Object.defineProperty, th = Object.getOwnPropertyDescriptor,
|
|
7971
|
+
var Ql = Object.defineProperty, th = Object.getOwnPropertyDescriptor, Ft = (i, t, e, s) => {
|
|
7960
7972
|
for (var a = s > 1 ? void 0 : s ? th(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7961
7973
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7962
7974
|
return s && a && Ql(t, e, a), a;
|
|
7963
7975
|
};
|
|
7964
|
-
let
|
|
7976
|
+
let At = class extends P {
|
|
7965
7977
|
constructor() {
|
|
7966
7978
|
super(...arguments), this.inputRef = A(), this.value = "", this.checkHelptext = null, this.defaultChecked = !1, this.hasTile = !1, this.checked = null, this.type = "radio", this.tagText = null, this.optionalTag = !1, this.optionalText = "Valgfritt", this.requiredTag = !1, this.requiredText = "Må fylles ut", this._checked = !1;
|
|
7967
7979
|
}
|
|
@@ -7972,14 +7984,14 @@ let Nt = class extends P {
|
|
|
7972
7984
|
i === "defaultChecked" && (this._checked = this.defaultChecked), i === "checked" && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0), super.attributeChangedCallback(i, t, e);
|
|
7973
7985
|
}
|
|
7974
7986
|
render() {
|
|
7975
|
-
const i =
|
|
7987
|
+
const i = M({
|
|
7976
7988
|
"pkt-input-check__input": !0,
|
|
7977
7989
|
"pkt-input-check__input--tile": this.hasTile,
|
|
7978
7990
|
"pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
|
|
7979
|
-
}), t =
|
|
7991
|
+
}), t = M({
|
|
7980
7992
|
"pkt-input-check__input-checkbox": !0,
|
|
7981
7993
|
"pkt-input-check__input-checkbox--error": this.hasError
|
|
7982
|
-
}), e =
|
|
7994
|
+
}), e = M({
|
|
7983
7995
|
"pkt-input-check__input-label": !0,
|
|
7984
7996
|
"pkt-input-check__input-label--disabled": this.disabled,
|
|
7985
7997
|
"pkt-sr-only": this.hideLabel
|
|
@@ -8020,45 +8032,45 @@ let Nt = class extends P {
|
|
|
8020
8032
|
i && i.preventDefault(), i && i.stopImmediatePropagation(), this.touched = !0, this.inputRef.value && (this._checked = this.inputRef.value.matches(":checked"), this.valueChecked(this._checked));
|
|
8021
8033
|
}
|
|
8022
8034
|
};
|
|
8023
|
-
|
|
8035
|
+
Ft([
|
|
8024
8036
|
o({ type: String, reflect: !0 })
|
|
8025
|
-
],
|
|
8026
|
-
|
|
8037
|
+
], At.prototype, "value", 2);
|
|
8038
|
+
Ft([
|
|
8027
8039
|
o({ type: String })
|
|
8028
|
-
],
|
|
8029
|
-
|
|
8040
|
+
], At.prototype, "checkHelptext", 2);
|
|
8041
|
+
Ft([
|
|
8030
8042
|
o({ type: Boolean })
|
|
8031
|
-
],
|
|
8032
|
-
|
|
8043
|
+
], At.prototype, "defaultChecked", 2);
|
|
8044
|
+
Ft([
|
|
8033
8045
|
o({ type: Boolean })
|
|
8034
|
-
],
|
|
8035
|
-
|
|
8046
|
+
], At.prototype, "hasTile", 2);
|
|
8047
|
+
Ft([
|
|
8036
8048
|
o({ type: Boolean, reflect: !0 })
|
|
8037
|
-
],
|
|
8038
|
-
|
|
8049
|
+
], At.prototype, "checked", 2);
|
|
8050
|
+
Ft([
|
|
8039
8051
|
o({ type: String, reflect: !0 })
|
|
8040
|
-
],
|
|
8041
|
-
|
|
8052
|
+
], At.prototype, "type", 2);
|
|
8053
|
+
Ft([
|
|
8042
8054
|
o({ type: String })
|
|
8043
|
-
],
|
|
8044
|
-
|
|
8055
|
+
], At.prototype, "tagText", 2);
|
|
8056
|
+
Ft([
|
|
8045
8057
|
o({ type: Boolean })
|
|
8046
|
-
],
|
|
8047
|
-
|
|
8058
|
+
], At.prototype, "optionalTag", 2);
|
|
8059
|
+
Ft([
|
|
8048
8060
|
o({ type: String })
|
|
8049
|
-
],
|
|
8050
|
-
|
|
8061
|
+
], At.prototype, "optionalText", 2);
|
|
8062
|
+
Ft([
|
|
8051
8063
|
o({ type: Boolean })
|
|
8052
|
-
],
|
|
8053
|
-
|
|
8064
|
+
], At.prototype, "requiredTag", 2);
|
|
8065
|
+
Ft([
|
|
8054
8066
|
o({ type: String })
|
|
8055
|
-
],
|
|
8056
|
-
|
|
8067
|
+
], At.prototype, "requiredText", 2);
|
|
8068
|
+
Ft([
|
|
8057
8069
|
B()
|
|
8058
|
-
],
|
|
8059
|
-
|
|
8070
|
+
], At.prototype, "_checked", 2);
|
|
8071
|
+
At = Ft([
|
|
8060
8072
|
j("pkt-radiobutton")
|
|
8061
|
-
],
|
|
8073
|
+
], At);
|
|
8062
8074
|
/**
|
|
8063
8075
|
* @license
|
|
8064
8076
|
* Copyright 2021 Google LLC
|
|
@@ -8224,7 +8236,7 @@ var nh = Object.defineProperty, rh = Object.getOwnPropertyDescriptor, pi = (i, t
|
|
|
8224
8236
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8225
8237
|
return s && a && nh(t, e, a), a;
|
|
8226
8238
|
};
|
|
8227
|
-
let
|
|
8239
|
+
let Fe = class extends K {
|
|
8228
8240
|
constructor() {
|
|
8229
8241
|
super(), this.arrowNav = !0, this.disableArrowNav = !1, this.tabRefs = [], this.tabCount = 0, this.defaultSlot = A(), this.context = {
|
|
8230
8242
|
useArrowNav: this.useArrowNav,
|
|
@@ -8276,23 +8288,23 @@ let Ve = class extends K {
|
|
|
8276
8288
|
};
|
|
8277
8289
|
pi([
|
|
8278
8290
|
o({ type: Boolean, reflect: !0, attribute: "arrow-nav" })
|
|
8279
|
-
],
|
|
8291
|
+
], Fe.prototype, "arrowNav", 2);
|
|
8280
8292
|
pi([
|
|
8281
8293
|
o({ type: Boolean, reflect: !0, attribute: "disable-arrow-nav" })
|
|
8282
|
-
],
|
|
8294
|
+
], Fe.prototype, "disableArrowNav", 2);
|
|
8283
8295
|
pi([
|
|
8284
8296
|
B()
|
|
8285
|
-
],
|
|
8297
|
+
], Fe.prototype, "tabRefs", 2);
|
|
8286
8298
|
pi([
|
|
8287
8299
|
B()
|
|
8288
|
-
],
|
|
8300
|
+
], Fe.prototype, "tabCount", 2);
|
|
8289
8301
|
pi([
|
|
8290
8302
|
sh({ context: on }),
|
|
8291
8303
|
B()
|
|
8292
|
-
],
|
|
8293
|
-
|
|
8304
|
+
], Fe.prototype, "context", 2);
|
|
8305
|
+
Fe = pi([
|
|
8294
8306
|
j("pkt-tabs")
|
|
8295
|
-
],
|
|
8307
|
+
], Fe);
|
|
8296
8308
|
var oh = Object.defineProperty, lh = Object.getOwnPropertyDescriptor, ue = (i, t, e, s) => {
|
|
8297
8309
|
for (var a = s > 1 ? void 0 : s ? lh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8298
8310
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
@@ -8384,7 +8396,7 @@ ie = ue([
|
|
|
8384
8396
|
* Copyright 2020 Google LLC
|
|
8385
8397
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8386
8398
|
*/
|
|
8387
|
-
const hh =
|
|
8399
|
+
const hh = Ue(class extends li {
|
|
8388
8400
|
constructor(i) {
|
|
8389
8401
|
if (super(i), i.type !== zt.PROPERTY && i.type !== zt.ATTRIBUTE && i.type !== zt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
8390
8402
|
if (!Ha(i)) throw Error("`live` bindings can only contain a single expression");
|
|
@@ -8393,13 +8405,13 @@ const hh = Fe(class extends li {
|
|
|
8393
8405
|
return i;
|
|
8394
8406
|
}
|
|
8395
8407
|
update(i, [t]) {
|
|
8396
|
-
if (t ===
|
|
8408
|
+
if (t === St || t === $) return t;
|
|
8397
8409
|
const e = i.element, s = i.name;
|
|
8398
8410
|
if (i.type === zt.PROPERTY) {
|
|
8399
|
-
if (t === e[s]) return
|
|
8411
|
+
if (t === e[s]) return St;
|
|
8400
8412
|
} else if (i.type === zt.BOOLEAN_ATTRIBUTE) {
|
|
8401
|
-
if (!!t === e.hasAttribute(s)) return
|
|
8402
|
-
} else if (i.type === zt.ATTRIBUTE && e.getAttribute(s) === t + "") return
|
|
8413
|
+
if (!!t === e.hasAttribute(s)) return St;
|
|
8414
|
+
} else if (i.type === zt.ATTRIBUTE && e.getAttribute(s) === t + "") return St;
|
|
8403
8415
|
return qa(i), t;
|
|
8404
8416
|
}
|
|
8405
8417
|
});
|
|
@@ -8420,7 +8432,7 @@ let ni = class extends P {
|
|
|
8420
8432
|
super.updated(t), t.has("value") && (this.counterCurrent = ((e = this.value) == null ? void 0 : e.length) || 0, this.valueChanged(this.value, t.get("value"))), t.has("id") && !this.name && this.id && (this.name = this.id);
|
|
8421
8433
|
}
|
|
8422
8434
|
render() {
|
|
8423
|
-
const t =
|
|
8435
|
+
const t = M({
|
|
8424
8436
|
"pkt-input": !0,
|
|
8425
8437
|
"pkt-input--fullwidth": this.fullwidth,
|
|
8426
8438
|
"pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
|
|
@@ -8513,7 +8525,7 @@ let Zt = class extends P {
|
|
|
8513
8525
|
super.updated(t), t.has("value") && (this.counterCurrent = ((e = this.value) == null ? void 0 : e.length) || 0, this.valueChanged(this.value, t.get("value"))), t.has("id") && !this.name && this.id && (this.name = this.id);
|
|
8514
8526
|
}
|
|
8515
8527
|
render() {
|
|
8516
|
-
const t = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, e =
|
|
8528
|
+
const t = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, e = M({
|
|
8517
8529
|
"pkt-input": !0,
|
|
8518
8530
|
"pkt-input--fullwidth": this.fullwidth,
|
|
8519
8531
|
"pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
|
|
@@ -8823,7 +8835,7 @@ let ri = class extends K {
|
|
|
8823
8835
|
"pkt-darkmode": this.darkmode
|
|
8824
8836
|
};
|
|
8825
8837
|
return u`
|
|
8826
|
-
<div class="${
|
|
8838
|
+
<div class="${M(i)}">
|
|
8827
8839
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
8828
8840
|
|
|
8829
8841
|
<h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
|
|
@@ -8843,7 +8855,7 @@ let ri = class extends K {
|
|
|
8843
8855
|
|
|
8844
8856
|
<h2 class="pkt-txt-22">Knapp som emitter en event</h2>
|
|
8845
8857
|
<button type="button" @click=${() => this.handleGreeting()}>
|
|
8846
|
-
Si ${
|
|
8858
|
+
Si ${wt.example.hi}
|
|
8847
8859
|
</button>
|
|
8848
8860
|
</div>
|
|
8849
8861
|
`;
|
|
@@ -8889,7 +8901,7 @@ ri = Fi([
|
|
|
8889
8901
|
], ri);
|
|
8890
8902
|
const L = Jt({
|
|
8891
8903
|
tagName: "pkt-icon",
|
|
8892
|
-
elementClass:
|
|
8904
|
+
elementClass: Re,
|
|
8893
8905
|
react: mt,
|
|
8894
8906
|
displayName: "PktIcon",
|
|
8895
8907
|
events: {}
|
|
@@ -8907,11 +8919,11 @@ const L = Jt({
|
|
|
8907
8919
|
onClick: p,
|
|
8908
8920
|
onToggle: m
|
|
8909
8921
|
}, f) => {
|
|
8910
|
-
const [y, b] =
|
|
8911
|
-
|
|
8922
|
+
const [y, b] = ke(i), { name: k } = kn(), w = l || k, S = n !== void 0 ? n : y;
|
|
8923
|
+
De(() => {
|
|
8912
8924
|
n === void 0 && b(i);
|
|
8913
8925
|
}, [i, n]);
|
|
8914
|
-
const
|
|
8926
|
+
const O = (T) => {
|
|
8915
8927
|
const G = T.currentTarget.open;
|
|
8916
8928
|
n === void 0 && b(G), m == null || m(T);
|
|
8917
8929
|
}, N = (T) => {
|
|
@@ -8933,7 +8945,7 @@ const L = Jt({
|
|
|
8933
8945
|
open: S,
|
|
8934
8946
|
onClick: N,
|
|
8935
8947
|
name: w,
|
|
8936
|
-
onToggle:
|
|
8948
|
+
onToggle: O,
|
|
8937
8949
|
children: [
|
|
8938
8950
|
/* @__PURE__ */ x("summary", { className: "pkt-accordion-item__title", id: `pkt-accordion-item-summary-${t}`, children: [
|
|
8939
8951
|
e,
|
|
@@ -9002,7 +9014,7 @@ const ht = /* @__PURE__ */ kh($h), ln = ({
|
|
|
9002
9014
|
className: p,
|
|
9003
9015
|
...m
|
|
9004
9016
|
}) => {
|
|
9005
|
-
const [f, y] =
|
|
9017
|
+
const [f, y] = ke(!1), b = {
|
|
9006
9018
|
"pkt-alert": !0,
|
|
9007
9019
|
"pkt-alert--compact": e,
|
|
9008
9020
|
[`pkt-alert--${d}`]: d,
|
|
@@ -9110,7 +9122,7 @@ const oi = Z(
|
|
|
9110
9122
|
loadingAnimationPath: k = window.pktAnimationPath,
|
|
9111
9123
|
...w
|
|
9112
9124
|
}, S) => {
|
|
9113
|
-
const
|
|
9125
|
+
const O = [
|
|
9114
9126
|
t,
|
|
9115
9127
|
"pkt-btn",
|
|
9116
9128
|
a && `pkt-btn--${a}`,
|
|
@@ -9129,7 +9141,7 @@ const oi = Z(
|
|
|
9129
9141
|
"aria-busy": y || void 0,
|
|
9130
9142
|
"aria-disabled": b || void 0,
|
|
9131
9143
|
disabled: b,
|
|
9132
|
-
className:
|
|
9144
|
+
className: O,
|
|
9133
9145
|
type: d,
|
|
9134
9146
|
ref: S,
|
|
9135
9147
|
children: [
|
|
@@ -9172,13 +9184,13 @@ const Sh = Z(
|
|
|
9172
9184
|
optionalText: k = "Valgfritt",
|
|
9173
9185
|
requiredTag: w,
|
|
9174
9186
|
requiredText: S = "Må fylles ut",
|
|
9175
|
-
tagText:
|
|
9187
|
+
tagText: O,
|
|
9176
9188
|
...N
|
|
9177
9189
|
}, I) => {
|
|
9178
9190
|
const T = Bs(null);
|
|
9179
|
-
|
|
9191
|
+
De(() => {
|
|
9180
9192
|
T.current && y !== void 0 && (T.current.indeterminate = y);
|
|
9181
|
-
}, [y]),
|
|
9193
|
+
}, [y]), De(() => {
|
|
9182
9194
|
typeof I == "function" ? I(T.current) : I && (I.current = T.current);
|
|
9183
9195
|
}, [I]);
|
|
9184
9196
|
const H = [r, "pkt-input-check"].filter(Boolean).join(" "), G = [
|
|
@@ -9186,16 +9198,16 @@ const Sh = Z(
|
|
|
9186
9198
|
e ? "pkt-input-check__input-label--disabled" : "",
|
|
9187
9199
|
`pkt-input-check__input-label--${p}`,
|
|
9188
9200
|
d ? "pkt-sr-only" : ""
|
|
9189
|
-
].filter(Boolean).join(" "),
|
|
9201
|
+
].filter(Boolean).join(" "), _t = [
|
|
9190
9202
|
"pkt-input-check__input",
|
|
9191
9203
|
t ? "pkt-input-check__input--tile" : "",
|
|
9192
9204
|
e && t ? "pkt-input-check__input--tile-disabled" : ""
|
|
9193
9205
|
].filter(Boolean).join(" "), pt = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ x(Wt, { children: [
|
|
9194
|
-
|
|
9206
|
+
O && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--gray", children: O }),
|
|
9195
9207
|
b && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--blue-light", children: k }),
|
|
9196
9208
|
w && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--beige", children: S })
|
|
9197
9209
|
] });
|
|
9198
|
-
return /* @__PURE__ */ h("div", { className: H, children: /* @__PURE__ */ x("div", { className:
|
|
9210
|
+
return /* @__PURE__ */ h("div", { className: H, children: /* @__PURE__ */ x("div", { className: _t, children: [
|
|
9199
9211
|
p === "left" && /* @__PURE__ */ x("label", { className: G, htmlFor: i, children: [
|
|
9200
9212
|
s,
|
|
9201
9213
|
" ",
|
|
@@ -9289,7 +9301,7 @@ const Yd = ({
|
|
|
9289
9301
|
console.log(w.detail);
|
|
9290
9302
|
}
|
|
9291
9303
|
}) => {
|
|
9292
|
-
var S,
|
|
9304
|
+
var S, O;
|
|
9293
9305
|
const w = [s, "pkt-footer"].filter(Boolean).join(" ");
|
|
9294
9306
|
return /* @__PURE__ */ h("footer", { className: w, "data-mode": "dark", children: /* @__PURE__ */ x("div", { className: "pkt-footer__container", children: [
|
|
9295
9307
|
/* @__PURE__ */ x("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
@@ -9316,7 +9328,7 @@ const Yd = ({
|
|
|
9316
9328
|
/* @__PURE__ */ h("h2", { className: "pkt-footer__title", children: t.title }),
|
|
9317
9329
|
/* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
|
|
9318
9330
|
t.text && /* @__PURE__ */ h("li", { className: "pkt-footer__text", children: t.text }),
|
|
9319
|
-
(
|
|
9331
|
+
(O = t.links) == null ? void 0 : O.map((N, I) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
|
|
9320
9332
|
"a",
|
|
9321
9333
|
{
|
|
9322
9334
|
className: `pkt-footer__link ${N.external ? "pkt-link--external" : ""}`,
|
|
@@ -9491,32 +9503,32 @@ const Yd = ({
|
|
|
9491
9503
|
logOut: k,
|
|
9492
9504
|
changeRepresentation: w,
|
|
9493
9505
|
children: S,
|
|
9494
|
-
...
|
|
9506
|
+
...O
|
|
9495
9507
|
}, N) => {
|
|
9496
9508
|
const I = mt.useMemo(() => typeof (n == null ? void 0 : n.lastLoggedIn) == "string" ? n.lastLoggedIn : n != null && n.lastLoggedIn ? new Date(n.lastLoggedIn).toLocaleString("nb-NO", {
|
|
9497
9509
|
year: "numeric",
|
|
9498
9510
|
month: "long",
|
|
9499
9511
|
day: "numeric"
|
|
9500
|
-
}) : "", [n]), [T, H] = mt.useState(!1), [G,
|
|
9501
|
-
mt.useEffect(() => (document && (document.addEventListener("mouseup",
|
|
9502
|
-
document && (document.removeEventListener("mouseup",
|
|
9512
|
+
}) : "", [n]), [T, H] = mt.useState(!1), [G, _t] = mt.useState(0), [pt, J] = mt.useState(!1), st = mt.useRef(null);
|
|
9513
|
+
mt.useEffect(() => (document && (document.addEventListener("mouseup", Ot), window.addEventListener("scroll", at)), () => {
|
|
9514
|
+
document && (document.removeEventListener("mouseup", Ot), window.removeEventListener("scroll", at));
|
|
9503
9515
|
}));
|
|
9504
|
-
const
|
|
9516
|
+
const Et = () => {
|
|
9505
9517
|
J(!pt);
|
|
9506
|
-
},
|
|
9518
|
+
}, Ot = (R) => {
|
|
9507
9519
|
st.current && !st.current.contains(R.target) && J(!1);
|
|
9508
9520
|
}, at = () => {
|
|
9509
9521
|
if (a) {
|
|
9510
9522
|
const R = window.pageYOffset || document.documentElement.scrollTop;
|
|
9511
9523
|
if (R < 0 || Math.abs(R - G) < 60)
|
|
9512
9524
|
return;
|
|
9513
|
-
H(R > G),
|
|
9525
|
+
H(R > G), _t(R);
|
|
9514
9526
|
}
|
|
9515
9527
|
};
|
|
9516
9528
|
return /* @__PURE__ */ x(
|
|
9517
9529
|
"header",
|
|
9518
9530
|
{
|
|
9519
|
-
...
|
|
9531
|
+
...O,
|
|
9520
9532
|
id: "pkt-header",
|
|
9521
9533
|
"data-testid": "pkt-header",
|
|
9522
9534
|
"aria-label": "Topp",
|
|
@@ -9582,7 +9594,7 @@ const Yd = ({
|
|
|
9582
9594
|
role: "button",
|
|
9583
9595
|
"aria-controls": "pktUserDropdown",
|
|
9584
9596
|
"aria-expanded": pt,
|
|
9585
|
-
onClick:
|
|
9597
|
+
onClick: Et,
|
|
9586
9598
|
children: [
|
|
9587
9599
|
/* @__PURE__ */ h(L, { name: "user", className: "pkt-btn__icon" }),
|
|
9588
9600
|
/* @__PURE__ */ h("span", { className: "pkt-header__user-fullname", translate: "no", children: (l == null ? void 0 : l.name) || (n == null ? void 0 : n.name) }),
|
|
@@ -9601,13 +9613,13 @@ const Yd = ({
|
|
|
9601
9613
|
/* @__PURE__ */ h("time", { children: I })
|
|
9602
9614
|
] })
|
|
9603
9615
|
] }),
|
|
9604
|
-
r && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: r.map((R,
|
|
9616
|
+
r && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: r.map((R, xt) => /* @__PURE__ */ h("li", { children: typeof R.target == "string" ? /* @__PURE__ */ x("a", { href: R.target, className: "pkt-link", children: [
|
|
9605
9617
|
R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
|
|
9606
9618
|
R.title
|
|
9607
9619
|
] }) : /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: R.target, children: [
|
|
9608
9620
|
R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
|
|
9609
9621
|
R.title
|
|
9610
|
-
] }) }, `userMenu-${
|
|
9622
|
+
] }) }, `userMenu-${xt}`)) }) }),
|
|
9611
9623
|
(l || m) && /* @__PURE__ */ x("li", { children: [
|
|
9612
9624
|
l && /* @__PURE__ */ x(Wt, { children: [
|
|
9613
9625
|
/* @__PURE__ */ h("div", { className: "pkt-user-menu__label", children: "Representerer" }),
|
|
@@ -9623,19 +9635,19 @@ const Yd = ({
|
|
|
9623
9635
|
] }) }) })
|
|
9624
9636
|
] }),
|
|
9625
9637
|
/* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: (d || !y) && /* @__PURE__ */ x(Wt, { children: [
|
|
9626
|
-
d == null ? void 0 : d.map((R,
|
|
9638
|
+
d == null ? void 0 : d.map((R, xt) => /* @__PURE__ */ h("li", { children: typeof R.target == "string" ? /* @__PURE__ */ x("a", { href: R.target, className: "pkt-link", children: [
|
|
9627
9639
|
R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
|
|
9628
9640
|
R.title
|
|
9629
9641
|
] }) : /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: R.target, children: [
|
|
9630
9642
|
R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
|
|
9631
9643
|
R.title
|
|
9632
|
-
] }) }, `userOptions-${
|
|
9644
|
+
] }) }, `userOptions-${xt}`)),
|
|
9633
9645
|
!y && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: k, children: [
|
|
9634
9646
|
/* @__PURE__ */ h(L, { name: "exit", className: "pkt-link__icon" }),
|
|
9635
9647
|
"Logg ut"
|
|
9636
9648
|
] }) })
|
|
9637
9649
|
] }) }) }),
|
|
9638
|
-
p && /* @__PURE__ */ h("li", { className: "footer", children: /* @__PURE__ */ h("ul", { className: "pkt-list-horizontal bordered", children: p.map((R,
|
|
9650
|
+
p && /* @__PURE__ */ h("li", { className: "footer", children: /* @__PURE__ */ h("ul", { className: "pkt-list-horizontal bordered", children: p.map((R, xt) => /* @__PURE__ */ h("li", { children: typeof R.target == "string" ? /* @__PURE__ */ h("a", { href: R.target, className: "pkt-link", children: R.title }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: R.target, children: R.title }) }, `userMenuFooter-${xt}`)) }) })
|
|
9639
9651
|
] })
|
|
9640
9652
|
]
|
|
9641
9653
|
}
|
|
@@ -9660,7 +9672,7 @@ const Yd = ({
|
|
|
9660
9672
|
}
|
|
9661
9673
|
), Eh = Jt({
|
|
9662
9674
|
tagName: "pkt-heading",
|
|
9663
|
-
elementClass:
|
|
9675
|
+
elementClass: Le,
|
|
9664
9676
|
react: mt,
|
|
9665
9677
|
displayName: "PktHeading"
|
|
9666
9678
|
}), Oh = Z(({ children: i, ...t }, e) => /* @__PURE__ */ h(Eh, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
|
|
@@ -9704,34 +9716,34 @@ const ps = Z(
|
|
|
9704
9716
|
errorMessage: k,
|
|
9705
9717
|
disabled: w = !1,
|
|
9706
9718
|
inline: S = !1,
|
|
9707
|
-
ariaDescribedby:
|
|
9719
|
+
ariaDescribedby: O,
|
|
9708
9720
|
useWrapper: N = !0,
|
|
9709
9721
|
children: I,
|
|
9710
9722
|
className: T = "",
|
|
9711
9723
|
hasFieldset: H = !1,
|
|
9712
9724
|
role: G = "group",
|
|
9713
|
-
counterPosition:
|
|
9725
|
+
counterPosition: _t = "bottom"
|
|
9714
9726
|
}, pt) => {
|
|
9715
|
-
const [J, st] =
|
|
9727
|
+
const [J, st] = ke(!1), Et = O || (e ? `${i}-helptext` : void 0), Ot = !!n, at = Ot && _t === "top", R = Ot && _t === "bottom", xt = () => st((ot) => !ot), Qt = [
|
|
9716
9728
|
"pkt-inputwrapper",
|
|
9717
9729
|
T,
|
|
9718
9730
|
b ? "pkt-inputwrapper--error" : "",
|
|
9719
9731
|
w ? "pkt-inputwrapper--disabled" : "",
|
|
9720
9732
|
S ? "pkt-inputwrapper--inline" : ""
|
|
9721
|
-
].filter(Boolean).join(" "), oe = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), te = () =>
|
|
9733
|
+
].filter(Boolean).join(" "), oe = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), te = () => Ot ? /* @__PURE__ */ x("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": "true", children: [
|
|
9722
9734
|
r,
|
|
9723
9735
|
l ? `/${l}` : ""
|
|
9724
|
-
] }) : null,
|
|
9736
|
+
] }) : null, xe = () => /* @__PURE__ */ x(Wt, { children: [
|
|
9725
9737
|
y && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--gray", children: y }),
|
|
9726
9738
|
d && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--blue-light", children: p }),
|
|
9727
9739
|
m && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--beige", children: f })
|
|
9728
|
-
] }),
|
|
9740
|
+
] }), We = () => {
|
|
9729
9741
|
const ot = /* @__PURE__ */ x(Wt, { children: [
|
|
9730
9742
|
t,
|
|
9731
9743
|
" ",
|
|
9732
|
-
|
|
9744
|
+
xe()
|
|
9733
9745
|
] });
|
|
9734
|
-
return N ? H ? /* @__PURE__ */ h("legend", { className: "pkt-inputwrapper__legend", id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { className: "pkt-inputwrapper__label", htmlFor: i, "aria-describedby":
|
|
9746
|
+
return N ? H ? /* @__PURE__ */ h("legend", { className: "pkt-inputwrapper__legend", id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { className: "pkt-inputwrapper__label", htmlFor: i, "aria-describedby": Et, id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { htmlFor: i, className: "pkt-sr-only", "aria-describedby": Et, id: `${i}-label`, children: t });
|
|
9735
9747
|
}, le = () => !e && !s ? null : /* @__PURE__ */ x(Wt, { children: [
|
|
9736
9748
|
e && N && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__helptext", id: `${i}-helptext`, children: e }),
|
|
9737
9749
|
s && /* @__PURE__ */ x("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
|
|
@@ -9743,7 +9755,7 @@ const ps = Z(
|
|
|
9743
9755
|
variant: "icon-right",
|
|
9744
9756
|
iconName: J ? "chevron-thin-up" : "chevron-thin-down",
|
|
9745
9757
|
className: "pkt-link pkt-link--icon-right",
|
|
9746
|
-
onClick:
|
|
9758
|
+
onClick: xt,
|
|
9747
9759
|
children: /* @__PURE__ */ h(
|
|
9748
9760
|
"span",
|
|
9749
9761
|
{
|
|
@@ -9763,14 +9775,14 @@ const ps = Z(
|
|
|
9763
9775
|
)
|
|
9764
9776
|
] })
|
|
9765
9777
|
] }), Ut = /* @__PURE__ */ x(Wt, { children: [
|
|
9766
|
-
|
|
9778
|
+
We(),
|
|
9767
9779
|
le(),
|
|
9768
9780
|
at && /* @__PURE__ */ h(te, {}),
|
|
9769
9781
|
I,
|
|
9770
9782
|
R && /* @__PURE__ */ h(te, {}),
|
|
9771
9783
|
b && k && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ h(ln, { skin: "error", "aria-live": "assertive", role: "alert", id: `${i}-error`, compact: !0, children: k }) })
|
|
9772
9784
|
] });
|
|
9773
|
-
return /* @__PURE__ */ h("div", { className: Qt, ref: pt, role: G, children: H ? /* @__PURE__ */ h("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby":
|
|
9785
|
+
return /* @__PURE__ */ h("div", { className: Qt, ref: pt, role: G, children: H ? /* @__PURE__ */ h("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": Et, children: Ut }) : /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__fieldset", children: Ut }) });
|
|
9774
9786
|
}
|
|
9775
9787
|
);
|
|
9776
9788
|
ps.displayName = "PktInputWrapper";
|
|
@@ -9852,7 +9864,7 @@ const Vh = ({
|
|
|
9852
9864
|
onClose: r,
|
|
9853
9865
|
...l
|
|
9854
9866
|
}) => {
|
|
9855
|
-
const [d, p] =
|
|
9867
|
+
const [d, p] = ke(!1), m = {
|
|
9856
9868
|
"pkt-messagebox": !0,
|
|
9857
9869
|
"pkt-messagebox--compact": a,
|
|
9858
9870
|
[`pkt-messagebox--${e}`]: e,
|
|
@@ -9878,7 +9890,7 @@ const Vh = ({
|
|
|
9878
9890
|
Vh.displayName = "PktMessagebox";
|
|
9879
9891
|
const jh = Jt({
|
|
9880
9892
|
tagName: "pkt-modal",
|
|
9881
|
-
elementClass:
|
|
9893
|
+
elementClass: Rt,
|
|
9882
9894
|
react: mt,
|
|
9883
9895
|
displayName: "PktModal",
|
|
9884
9896
|
events: {}
|
|
@@ -9915,7 +9927,7 @@ const qh = Z(
|
|
|
9915
9927
|
tagText: k,
|
|
9916
9928
|
...w
|
|
9917
9929
|
}, S) => {
|
|
9918
|
-
const
|
|
9930
|
+
const O = [s, "pkt-input-check"].filter(Boolean).join(" "), N = [
|
|
9919
9931
|
"pkt-input-check__input",
|
|
9920
9932
|
a ? "pkt-input-check__input--tile" : "",
|
|
9921
9933
|
n && a ? "pkt-input-check__input--tile-disabled" : ""
|
|
@@ -9927,7 +9939,7 @@ const qh = Z(
|
|
|
9927
9939
|
m && /* @__PURE__ */ h("span", { className: H + " pkt-tag--blue-light", children: f }),
|
|
9928
9940
|
y && /* @__PURE__ */ h("span", { className: H + " pkt-tag--beige", children: b })
|
|
9929
9941
|
] });
|
|
9930
|
-
return /* @__PURE__ */ h("div", { className:
|
|
9942
|
+
return /* @__PURE__ */ h("div", { className: O, children: /* @__PURE__ */ x("div", { className: N, children: [
|
|
9931
9943
|
/* @__PURE__ */ h(
|
|
9932
9944
|
"input",
|
|
9933
9945
|
{
|
|
@@ -9971,7 +9983,7 @@ const Xd = Z(
|
|
|
9971
9983
|
}, w) => {
|
|
9972
9984
|
const S = (T, H) => {
|
|
9973
9985
|
T ? T() : b && b(H);
|
|
9974
|
-
},
|
|
9986
|
+
}, O = (T) => {
|
|
9975
9987
|
d = T.target.value;
|
|
9976
9988
|
}, N = `pkt-searchinput pkt-searchinput--${i} ${e ? "pkt-searchinput--fullwidth" : ""}`;
|
|
9977
9989
|
let I;
|
|
@@ -9993,7 +10005,7 @@ const Xd = Z(
|
|
|
9993
10005
|
"aria-autocomplete": "list",
|
|
9994
10006
|
ref: w,
|
|
9995
10007
|
"aria-controls": `${s}-suggestions`,
|
|
9996
|
-
onChange: f ||
|
|
10008
|
+
onChange: f || O,
|
|
9997
10009
|
onKeyUp: y && ((T) => {
|
|
9998
10010
|
T.key === "Enter" && (T.preventDefault(), y(d));
|
|
9999
10011
|
}),
|
|
@@ -10053,7 +10065,7 @@ const Xd = Z(
|
|
|
10053
10065
|
name: k,
|
|
10054
10066
|
optionalTag: w = !1,
|
|
10055
10067
|
optionalText: S,
|
|
10056
|
-
requiredTag:
|
|
10068
|
+
requiredTag: O = !1,
|
|
10057
10069
|
requiredText: N,
|
|
10058
10070
|
tagText: I,
|
|
10059
10071
|
...T
|
|
@@ -10070,7 +10082,7 @@ const Xd = Z(
|
|
|
10070
10082
|
helptextDropdownButton: p,
|
|
10071
10083
|
optionalTag: w,
|
|
10072
10084
|
optionalText: S,
|
|
10073
|
-
requiredTag:
|
|
10085
|
+
requiredTag: O,
|
|
10074
10086
|
requiredText: N,
|
|
10075
10087
|
tagText: I,
|
|
10076
10088
|
hasError: r,
|
|
@@ -10179,20 +10191,21 @@ const Xd = Z(
|
|
|
10179
10191
|
"aria-description": m,
|
|
10180
10192
|
...f
|
|
10181
10193
|
}, y) => {
|
|
10182
|
-
const [b, k] =
|
|
10194
|
+
const [b, k] = ke(!1), w = Ls(() => {
|
|
10183
10195
|
k(!0), d && d();
|
|
10184
|
-
}, [k]), S = Bs(null),
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10196
|
+
}, [k]), S = Bs(null), [O, N] = ke("");
|
|
10197
|
+
De(() => {
|
|
10198
|
+
var G, _t;
|
|
10199
|
+
N(((_t = (G = S.current) == null ? void 0 : G.textContent) == null ? void 0 : _t.trim()) ?? "");
|
|
10200
|
+
}, [i]);
|
|
10201
|
+
const I = bn(() => {
|
|
10202
|
+
if (a && !l) return O && `Klikk for å fjerne ${O}` || m;
|
|
10203
|
+
}, [a, l, O, m]), T = {
|
|
10191
10204
|
"pkt-tag": !0,
|
|
10192
10205
|
[`pkt-tag--${s}`]: !!s,
|
|
10193
10206
|
[`pkt-tag--${t}`]: !!t,
|
|
10194
10207
|
[`pkt-tag--${e}`]: !!e
|
|
10195
|
-
},
|
|
10208
|
+
}, H = {
|
|
10196
10209
|
"pkt-tag": !0,
|
|
10197
10210
|
"pkt-btn": !0,
|
|
10198
10211
|
"pkt-btn--tertiary": !0,
|
|
@@ -10206,11 +10219,11 @@ const Xd = Z(
|
|
|
10206
10219
|
"button",
|
|
10207
10220
|
{
|
|
10208
10221
|
...f,
|
|
10209
|
-
className: ht(
|
|
10222
|
+
className: ht(H, n),
|
|
10210
10223
|
type: p,
|
|
10211
10224
|
onClick: w,
|
|
10212
10225
|
"aria-label": l,
|
|
10213
|
-
"aria-description":
|
|
10226
|
+
"aria-description": I,
|
|
10214
10227
|
ref: y,
|
|
10215
10228
|
children: [
|
|
10216
10229
|
r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r }),
|
|
@@ -10218,8 +10231,8 @@ const Xd = Z(
|
|
|
10218
10231
|
/* @__PURE__ */ h(L, { className: "pkt-tag__close-btn", name: "close" })
|
|
10219
10232
|
]
|
|
10220
10233
|
}
|
|
10221
|
-
) : /* @__PURE__ */ x("span", { ...f, className: ht(
|
|
10222
|
-
r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r }),
|
|
10234
|
+
) : /* @__PURE__ */ x("span", { ...f, className: ht(T, n), ref: y, children: [
|
|
10235
|
+
r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r, "aria-hidden": "true" }),
|
|
10223
10236
|
/* @__PURE__ */ h("span", { ref: S, children: i })
|
|
10224
10237
|
] });
|
|
10225
10238
|
}
|
|
@@ -10231,13 +10244,13 @@ const dn = Z(
|
|
|
10231
10244
|
"aria-selected": m ? !!t : void 0,
|
|
10232
10245
|
"aria-controls": n,
|
|
10233
10246
|
role: m ? "tab" : void 0,
|
|
10234
|
-
onKeyUp: (
|
|
10235
|
-
onClick: (
|
|
10236
|
-
b(d), s == null || s(
|
|
10247
|
+
onKeyUp: (O) => y(d, O),
|
|
10248
|
+
onClick: (O) => {
|
|
10249
|
+
b(d), s == null || s(O);
|
|
10237
10250
|
},
|
|
10238
10251
|
tabIndex: t || !m ? void 0 : -1,
|
|
10239
|
-
ref: (
|
|
10240
|
-
f(d,
|
|
10252
|
+
ref: (O) => {
|
|
10253
|
+
f(d, O), typeof p == "function" ? p(O) : p && (p.current = O);
|
|
10241
10254
|
}
|
|
10242
10255
|
}, S = /* @__PURE__ */ x(Wt, { children: [
|
|
10243
10256
|
a && /* @__PURE__ */ h(L, { name: a, className: "pkt-icon--small" }),
|
|
@@ -10256,19 +10269,19 @@ const cn = Oa(null), Gh = () => {
|
|
|
10256
10269
|
}, lc = Z(
|
|
10257
10270
|
({ arrowNav: i = !0, disableArrowNav: t = !1, tabs: e, onTabSelected: s, children: a }, n) => {
|
|
10258
10271
|
const r = Bs([]), l = i && !t, p = a && Os.count(a) > 0 ? Os.count(a) : (e == null ? void 0 : e.length) || 0;
|
|
10259
|
-
|
|
10272
|
+
De(() => {
|
|
10260
10273
|
r.current = r.current.slice(0, p);
|
|
10261
10274
|
}, [p]);
|
|
10262
10275
|
const m = (k) => {
|
|
10263
10276
|
const w = e == null ? void 0 : e[k];
|
|
10264
10277
|
w != null && w.action && w.action(k), s && s(k);
|
|
10265
10278
|
}, f = (k, w) => {
|
|
10266
|
-
var S,
|
|
10267
|
-
l && (w.code === "ArrowLeft" && k !== 0 && ((S = r.current[k - 1]) == null || S.focus()), w.code === "ArrowRight" && k < p - 1 && ((
|
|
10279
|
+
var S, O;
|
|
10280
|
+
l && (w.code === "ArrowLeft" && k !== 0 && ((S = r.current[k - 1]) == null || S.focus()), w.code === "ArrowRight" && k < p - 1 && ((O = r.current[k + 1]) == null || O.focus()), (w.code === "ArrowDown" || w.code === "Space") && m(k));
|
|
10268
10281
|
}, y = (k, w) => {
|
|
10269
10282
|
r.current[k] = w;
|
|
10270
10283
|
}, b = e == null ? void 0 : e.map((k, w) => {
|
|
10271
|
-
var S,
|
|
10284
|
+
var S, O;
|
|
10272
10285
|
return /* @__PURE__ */ h(
|
|
10273
10286
|
dn,
|
|
10274
10287
|
{
|
|
@@ -10278,7 +10291,7 @@ const cn = Oa(null), Gh = () => {
|
|
|
10278
10291
|
icon: k.icon,
|
|
10279
10292
|
controls: k.controls,
|
|
10280
10293
|
tag: (S = k.tag) == null ? void 0 : S.text,
|
|
10281
|
-
tagSkin: (
|
|
10294
|
+
tagSkin: (O = k.tag) == null ? void 0 : O.skin,
|
|
10282
10295
|
index: w,
|
|
10283
10296
|
children: k.text
|
|
10284
10297
|
},
|
|
@@ -10306,28 +10319,28 @@ const cn = Oa(null), Gh = () => {
|
|
|
10306
10319
|
label: k,
|
|
10307
10320
|
name: w,
|
|
10308
10321
|
optionalTag: S = !1,
|
|
10309
|
-
optionalText:
|
|
10322
|
+
optionalText: O,
|
|
10310
10323
|
requiredTag: N = !1,
|
|
10311
10324
|
requiredText: I,
|
|
10312
10325
|
tagText: T = null,
|
|
10313
10326
|
placeholder: H,
|
|
10314
10327
|
rows: G,
|
|
10315
|
-
useWrapper:
|
|
10328
|
+
useWrapper: _t = !0,
|
|
10316
10329
|
onChange: pt,
|
|
10317
10330
|
value: J,
|
|
10318
10331
|
autoComplete: st = "off",
|
|
10319
|
-
minLength:
|
|
10320
|
-
maxLength:
|
|
10332
|
+
minLength: Et,
|
|
10333
|
+
maxLength: Ot,
|
|
10321
10334
|
readOnly: at = !1,
|
|
10322
10335
|
skipForwardTestid: R = !1,
|
|
10323
|
-
...
|
|
10336
|
+
...xt
|
|
10324
10337
|
}, Qt) => {
|
|
10325
|
-
const oe = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`,
|
|
10326
|
-
var
|
|
10327
|
-
if (s && Ut(((he = (
|
|
10328
|
-
return pt(
|
|
10338
|
+
const oe = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`, xe = `${te}-label`, We = e || xe, [le, Ut] = ke(0), ot = (Se) => {
|
|
10339
|
+
var Ce, he;
|
|
10340
|
+
if (s && Ut(((he = (Ce = Se.currentTarget) == null ? void 0 : Ce.value) == null ? void 0 : he.length) || 0), pt)
|
|
10341
|
+
return pt(Se);
|
|
10329
10342
|
};
|
|
10330
|
-
return
|
|
10343
|
+
return De(() => {
|
|
10331
10344
|
J !== void 0 && Ut((J == null ? void 0 : J.length) || 0);
|
|
10332
10345
|
}, [J]), /* @__PURE__ */ h(
|
|
10333
10346
|
ps,
|
|
@@ -10344,11 +10357,11 @@ const cn = Oa(null), Gh = () => {
|
|
|
10344
10357
|
inline: y,
|
|
10345
10358
|
label: k,
|
|
10346
10359
|
optionalTag: S,
|
|
10347
|
-
optionalText:
|
|
10360
|
+
optionalText: O,
|
|
10348
10361
|
requiredTag: N,
|
|
10349
10362
|
requiredText: I,
|
|
10350
10363
|
tagText: T,
|
|
10351
|
-
useWrapper:
|
|
10364
|
+
useWrapper: _t,
|
|
10352
10365
|
counter: s,
|
|
10353
10366
|
counterCurrent: le,
|
|
10354
10367
|
counterMaxLength: a,
|
|
@@ -10362,15 +10375,15 @@ const cn = Oa(null), Gh = () => {
|
|
|
10362
10375
|
placeholder: H,
|
|
10363
10376
|
disabled: r,
|
|
10364
10377
|
rows: G,
|
|
10365
|
-
"aria-labelledby":
|
|
10378
|
+
"aria-labelledby": We,
|
|
10366
10379
|
"aria-invalid": d,
|
|
10367
10380
|
"aria-errormessage": `${i}-error`,
|
|
10368
|
-
...
|
|
10381
|
+
...xt,
|
|
10369
10382
|
onChange: ot,
|
|
10370
10383
|
value: J,
|
|
10371
10384
|
autoComplete: st,
|
|
10372
|
-
minLength:
|
|
10373
|
-
maxLength:
|
|
10385
|
+
minLength: Et,
|
|
10386
|
+
maxLength: Ot,
|
|
10374
10387
|
"data-skip-forward-testid": R ? "true" : void 0
|
|
10375
10388
|
}
|
|
10376
10389
|
)
|
|
@@ -10396,38 +10409,38 @@ const cn = Oa(null), Gh = () => {
|
|
|
10396
10409
|
inline: k = !1,
|
|
10397
10410
|
fullwidth: w = !1,
|
|
10398
10411
|
label: S,
|
|
10399
|
-
name:
|
|
10412
|
+
name: O,
|
|
10400
10413
|
optionalTag: N = !1,
|
|
10401
10414
|
optionalText: I,
|
|
10402
10415
|
requiredTag: T = !1,
|
|
10403
10416
|
requiredText: H,
|
|
10404
10417
|
tagText: G = null,
|
|
10405
|
-
placeholder:
|
|
10418
|
+
placeholder: _t,
|
|
10406
10419
|
prefix: pt,
|
|
10407
10420
|
suffix: J,
|
|
10408
10421
|
type: st = "text",
|
|
10409
|
-
useWrapper:
|
|
10410
|
-
omitSearchIcon:
|
|
10422
|
+
useWrapper: Et = !0,
|
|
10423
|
+
omitSearchIcon: Ot = !1,
|
|
10411
10424
|
value: at,
|
|
10412
10425
|
minLength: R,
|
|
10413
|
-
maxLength:
|
|
10426
|
+
maxLength: xt,
|
|
10414
10427
|
min: Qt,
|
|
10415
10428
|
max: oe,
|
|
10416
10429
|
step: te,
|
|
10417
|
-
size:
|
|
10418
|
-
readonly:
|
|
10430
|
+
size: xe,
|
|
10431
|
+
readonly: We,
|
|
10419
10432
|
required: le,
|
|
10420
10433
|
dataTestid: Ut,
|
|
10421
10434
|
onChange: ot,
|
|
10422
|
-
skipForwardTestid:
|
|
10423
|
-
...
|
|
10435
|
+
skipForwardTestid: Se = !1,
|
|
10436
|
+
...Ce
|
|
10424
10437
|
}, he) => {
|
|
10425
|
-
const us = [r, "pkt-textinput"].join(" "), Ui = st === "search" && !b && !
|
|
10438
|
+
const us = [r, "pkt-textinput"].join(" "), Ui = st === "search" && !b && !Ot, ms = st === "date" && at ? at.slice(0, 10) : at, [Hi, Ke] = ke((at == null ? void 0 : at.length) || 0), Ge = `${i}`, ui = `${Ge}-label`, qi = e || ui, fs = (me) => {
|
|
10426
10439
|
var zi, Wi;
|
|
10427
|
-
a &&
|
|
10440
|
+
a && Ke(((Wi = (zi = me.currentTarget) == null ? void 0 : zi.value) == null ? void 0 : Wi.length) || 0), ot && ot(me);
|
|
10428
10441
|
};
|
|
10429
|
-
return
|
|
10430
|
-
at !== void 0 &&
|
|
10442
|
+
return De(() => {
|
|
10443
|
+
at !== void 0 && Ke((at == null ? void 0 : at.length) || 0);
|
|
10431
10444
|
}, [at]), /* @__PURE__ */ h(
|
|
10432
10445
|
ps,
|
|
10433
10446
|
{
|
|
@@ -10435,7 +10448,7 @@ const cn = Oa(null), Gh = () => {
|
|
|
10435
10448
|
className: us,
|
|
10436
10449
|
disabled: l,
|
|
10437
10450
|
errorMessage: d,
|
|
10438
|
-
forId:
|
|
10451
|
+
forId: Ge,
|
|
10439
10452
|
hasError: p,
|
|
10440
10453
|
helptext: m,
|
|
10441
10454
|
helptextDropdown: f,
|
|
@@ -10447,7 +10460,7 @@ const cn = Oa(null), Gh = () => {
|
|
|
10447
10460
|
requiredTag: T,
|
|
10448
10461
|
requiredText: H,
|
|
10449
10462
|
tagText: G,
|
|
10450
|
-
useWrapper:
|
|
10463
|
+
useWrapper: Et,
|
|
10451
10464
|
counter: a,
|
|
10452
10465
|
counterCurrent: Hi,
|
|
10453
10466
|
counterMaxLength: n,
|
|
@@ -10456,20 +10469,20 @@ const cn = Oa(null), Gh = () => {
|
|
|
10456
10469
|
{
|
|
10457
10470
|
className: "pkt-input__container",
|
|
10458
10471
|
"data-testid": Ut,
|
|
10459
|
-
"data-skip-forward-testid":
|
|
10472
|
+
"data-skip-forward-testid": Se ? "true" : void 0,
|
|
10460
10473
|
children: [
|
|
10461
10474
|
pt && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: pt }),
|
|
10462
10475
|
/* @__PURE__ */ h(
|
|
10463
10476
|
"input",
|
|
10464
10477
|
{
|
|
10465
|
-
...
|
|
10478
|
+
...Ce,
|
|
10466
10479
|
ref: he,
|
|
10467
10480
|
className: `pkt-input ${w ? "pkt-input--fullwidth" : ""} ${n && Hi > n ? "pkt-input--counter-error" : ""}`,
|
|
10468
10481
|
type: st,
|
|
10469
|
-
name: `${
|
|
10482
|
+
name: `${O || i}`,
|
|
10470
10483
|
value: ms,
|
|
10471
|
-
id:
|
|
10472
|
-
placeholder:
|
|
10484
|
+
id: Ge,
|
|
10485
|
+
placeholder: _t,
|
|
10473
10486
|
autoComplete: s,
|
|
10474
10487
|
disabled: l,
|
|
10475
10488
|
"aria-invalid": p,
|
|
@@ -10480,8 +10493,8 @@ const cn = Oa(null), Gh = () => {
|
|
|
10480
10493
|
onChange: fs,
|
|
10481
10494
|
step: te,
|
|
10482
10495
|
minLength: R,
|
|
10483
|
-
maxLength:
|
|
10484
|
-
size:
|
|
10496
|
+
maxLength: xt,
|
|
10497
|
+
size: xe,
|
|
10485
10498
|
required: le
|
|
10486
10499
|
}
|
|
10487
10500
|
),
|