@oslokommune/punkt-react 13.19.1 → 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 +583 -574
- package/dist/punkt-react.umd.js +34 -26
- 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(
|
|
@@ -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
|
})}
|
|
@@ -5976,14 +5984,14 @@ let vt = class extends P {
|
|
|
5976
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);
|
|
5977
5985
|
}
|
|
5978
5986
|
render() {
|
|
5979
|
-
const t =
|
|
5987
|
+
const t = M({
|
|
5980
5988
|
"pkt-input-check__input": !0,
|
|
5981
5989
|
"pkt-input-check__input--tile": this.hasTile,
|
|
5982
5990
|
"pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
|
|
5983
|
-
}), e =
|
|
5991
|
+
}), e = M({
|
|
5984
5992
|
"pkt-input-check__input-checkbox": !0,
|
|
5985
5993
|
"pkt-input-check__input-checkbox--error": this.hasError
|
|
5986
|
-
}), s =
|
|
5994
|
+
}), s = M({
|
|
5987
5995
|
"pkt-input-check__input-label": !0,
|
|
5988
5996
|
"pkt-input-check__input-label--disabled": this.disabled,
|
|
5989
5997
|
"pkt-input-check__input-label--left": this.labelPosition === "left",
|
|
@@ -6106,7 +6114,7 @@ let ai = class extends K {
|
|
|
6106
6114
|
"pkt-date-tags": !0,
|
|
6107
6115
|
[this.className]: !0
|
|
6108
6116
|
}, u`
|
|
6109
|
-
<div class=${
|
|
6117
|
+
<div class=${M(this.classes)} aria-live="polite">
|
|
6110
6118
|
${Array.isArray(this.dates) && this.dates[0] ? Us(
|
|
6111
6119
|
en((this.dates ?? []).filter(Boolean)),
|
|
6112
6120
|
(t) => t,
|
|
@@ -6145,7 +6153,7 @@ ai = Vi([
|
|
|
6145
6153
|
], ai);
|
|
6146
6154
|
const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, range: { default: !1 } }, $i = {
|
|
6147
6155
|
props: xl
|
|
6148
|
-
},
|
|
6156
|
+
}, Be = () => {
|
|
6149
6157
|
const i = navigator.userAgent;
|
|
6150
6158
|
return !!(/iP(hone|od|ad)/.test(i) || /Macintosh/.test(i) && "ontouchend" in document);
|
|
6151
6159
|
}, Yi = {
|
|
@@ -6179,7 +6187,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6179
6187
|
* Mobile Safari does not play well with type="date" amd custom datepickers
|
|
6180
6188
|
*/
|
|
6181
6189
|
getInputType() {
|
|
6182
|
-
return
|
|
6190
|
+
return Be() ? "text" : "date";
|
|
6183
6191
|
}
|
|
6184
6192
|
}, Pi = {
|
|
6185
6193
|
/**
|
|
@@ -6290,11 +6298,11 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6290
6298
|
const r = i.target;
|
|
6291
6299
|
if (r.value) {
|
|
6292
6300
|
a(r);
|
|
6293
|
-
const l =
|
|
6301
|
+
const l = _e(r.value);
|
|
6294
6302
|
l && t[0] !== r.value && t[1] && (s(), (n = e == null ? void 0 : e.value) == null || n.handleDateSelect(l));
|
|
6295
6303
|
} else t[0] && s();
|
|
6296
6304
|
}
|
|
6297
|
-
},
|
|
6305
|
+
}, Pe = {
|
|
6298
6306
|
/**
|
|
6299
6307
|
* Handles common keyboard interactions for datepicker inputs
|
|
6300
6308
|
*/
|
|
@@ -6310,12 +6318,12 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6310
6318
|
(e === "Enter" || e === " " || e === "Space") && (i.preventDefault(), t(i));
|
|
6311
6319
|
}
|
|
6312
6320
|
};
|
|
6313
|
-
var Cl = Object.defineProperty, Tl = Object.getOwnPropertyDescriptor,
|
|
6321
|
+
var Cl = Object.defineProperty, Tl = Object.getOwnPropertyDescriptor, Bt = (i, t, e, s) => {
|
|
6314
6322
|
for (var a = s > 1 ? void 0 : s ? Tl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6315
6323
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6316
6324
|
return s && a && Cl(t, e, a), a;
|
|
6317
6325
|
};
|
|
6318
|
-
let
|
|
6326
|
+
let Ct = class extends K {
|
|
6319
6327
|
constructor() {
|
|
6320
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) => {
|
|
6321
6329
|
if (!this.open) return;
|
|
@@ -6361,7 +6369,7 @@ let St = class extends K {
|
|
|
6361
6369
|
const t = { "pkt-calendar-popup": !0, show: this.open, hide: !this.open };
|
|
6362
6370
|
return u`
|
|
6363
6371
|
<div
|
|
6364
|
-
class="${
|
|
6372
|
+
class="${M(t)}"
|
|
6365
6373
|
${E(this.popupRef)}
|
|
6366
6374
|
id="date-popup"
|
|
6367
6375
|
?hidden=${!this.open}
|
|
@@ -6393,51 +6401,51 @@ let St = class extends K {
|
|
|
6393
6401
|
`;
|
|
6394
6402
|
}
|
|
6395
6403
|
};
|
|
6396
|
-
|
|
6404
|
+
Bt([
|
|
6397
6405
|
o({ type: Boolean, reflect: !0 })
|
|
6398
|
-
],
|
|
6399
|
-
|
|
6406
|
+
], Ct.prototype, "open", 2);
|
|
6407
|
+
Bt([
|
|
6400
6408
|
o({ type: Boolean })
|
|
6401
|
-
],
|
|
6402
|
-
|
|
6409
|
+
], Ct.prototype, "multiple", 2);
|
|
6410
|
+
Bt([
|
|
6403
6411
|
o({ type: Boolean })
|
|
6404
|
-
],
|
|
6405
|
-
|
|
6412
|
+
], Ct.prototype, "range", 2);
|
|
6413
|
+
Bt([
|
|
6406
6414
|
o({ type: Boolean })
|
|
6407
|
-
],
|
|
6408
|
-
|
|
6415
|
+
], Ct.prototype, "weeknumbers", 2);
|
|
6416
|
+
Bt([
|
|
6409
6417
|
o({ type: Boolean })
|
|
6410
|
-
],
|
|
6411
|
-
|
|
6418
|
+
], Ct.prototype, "withcontrols", 2);
|
|
6419
|
+
Bt([
|
|
6412
6420
|
o({ type: Number })
|
|
6413
|
-
],
|
|
6414
|
-
|
|
6421
|
+
], Ct.prototype, "maxMultiple", 2);
|
|
6422
|
+
Bt([
|
|
6415
6423
|
o({ type: Array })
|
|
6416
|
-
],
|
|
6417
|
-
|
|
6424
|
+
], Ct.prototype, "selected", 2);
|
|
6425
|
+
Bt([
|
|
6418
6426
|
o({ type: String })
|
|
6419
|
-
],
|
|
6420
|
-
|
|
6427
|
+
], Ct.prototype, "earliest", 2);
|
|
6428
|
+
Bt([
|
|
6421
6429
|
o({ type: String })
|
|
6422
|
-
],
|
|
6423
|
-
|
|
6430
|
+
], Ct.prototype, "latest", 2);
|
|
6431
|
+
Bt([
|
|
6424
6432
|
o({ type: Array })
|
|
6425
|
-
],
|
|
6426
|
-
|
|
6433
|
+
], Ct.prototype, "excludedates", 2);
|
|
6434
|
+
Bt([
|
|
6427
6435
|
o({ type: Array })
|
|
6428
|
-
],
|
|
6429
|
-
|
|
6436
|
+
], Ct.prototype, "excludeweekdays", 2);
|
|
6437
|
+
Bt([
|
|
6430
6438
|
o({ type: String })
|
|
6431
|
-
],
|
|
6432
|
-
|
|
6439
|
+
], Ct.prototype, "currentmonth", 2);
|
|
6440
|
+
Ct = Bt([
|
|
6433
6441
|
j("pkt-datepicker-popup")
|
|
6434
|
-
],
|
|
6442
|
+
], Ct);
|
|
6435
6443
|
var Nl = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, qt = (i, t, e, s) => {
|
|
6436
6444
|
for (var a = s > 1 ? void 0 : s ? Al(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6437
6445
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6438
6446
|
return s && a && Nl(t, e, a), a;
|
|
6439
6447
|
};
|
|
6440
|
-
let
|
|
6448
|
+
let It = class extends K {
|
|
6441
6449
|
constructor() {
|
|
6442
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();
|
|
6443
6451
|
}
|
|
@@ -6510,7 +6518,7 @@ let Dt = class extends K {
|
|
|
6510
6518
|
return u`
|
|
6511
6519
|
<div class="pkt-input__container">
|
|
6512
6520
|
<input
|
|
6513
|
-
class="${
|
|
6521
|
+
class="${M(this.inputClasses)}"
|
|
6514
6522
|
.type=${this.inputType}
|
|
6515
6523
|
id="${this.id}-input"
|
|
6516
6524
|
.value=${this.value}
|
|
@@ -6526,7 +6534,7 @@ let Dt = class extends K {
|
|
|
6526
6534
|
t.preventDefault(), this.dispatchToggleCalendar(t);
|
|
6527
6535
|
}}
|
|
6528
6536
|
?disabled=${this.disabled}
|
|
6529
|
-
@keydown=${(t) =>
|
|
6537
|
+
@keydown=${(t) => Pe.handleInputKeydown(
|
|
6530
6538
|
t,
|
|
6531
6539
|
(e) => this.dispatchToggleCalendar(e),
|
|
6532
6540
|
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
@@ -6543,7 +6551,7 @@ let Dt = class extends K {
|
|
|
6543
6551
|
this.dispatchInput(t), t.stopImmediatePropagation();
|
|
6544
6552
|
}}
|
|
6545
6553
|
@focus=${() => {
|
|
6546
|
-
this.dispatchFocus(),
|
|
6554
|
+
this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6547
6555
|
}}
|
|
6548
6556
|
@blur=${(t) => {
|
|
6549
6557
|
this.dispatchBlur(t), this.dispatchManageValidity(t.target), this.dispatchEvent(
|
|
@@ -6560,10 +6568,10 @@ let Dt = class extends K {
|
|
|
6560
6568
|
${E(this.inputRef)}
|
|
6561
6569
|
/>
|
|
6562
6570
|
<button
|
|
6563
|
-
class="${
|
|
6571
|
+
class="${M(Di.getButtonClasses())}"
|
|
6564
6572
|
type="button"
|
|
6565
6573
|
@click=${(t) => this.dispatchToggleCalendar(t)}
|
|
6566
|
-
@keydown=${(t) =>
|
|
6574
|
+
@keydown=${(t) => Pe.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
|
|
6567
6575
|
?disabled=${this.disabled}
|
|
6568
6576
|
${E(this.btnRef)}
|
|
6569
6577
|
>
|
|
@@ -6576,46 +6584,46 @@ let Dt = class extends K {
|
|
|
6576
6584
|
};
|
|
6577
6585
|
qt([
|
|
6578
6586
|
o({ type: String })
|
|
6579
|
-
],
|
|
6587
|
+
], It.prototype, "value", 2);
|
|
6580
6588
|
qt([
|
|
6581
6589
|
o({ type: String })
|
|
6582
|
-
],
|
|
6590
|
+
], It.prototype, "inputType", 2);
|
|
6583
6591
|
qt([
|
|
6584
6592
|
o({ type: String })
|
|
6585
|
-
],
|
|
6593
|
+
], It.prototype, "id", 2);
|
|
6586
6594
|
qt([
|
|
6587
6595
|
o({ type: String })
|
|
6588
|
-
],
|
|
6596
|
+
], It.prototype, "min", 2);
|
|
6589
6597
|
qt([
|
|
6590
6598
|
o({ type: String })
|
|
6591
|
-
],
|
|
6599
|
+
], It.prototype, "max", 2);
|
|
6592
6600
|
qt([
|
|
6593
6601
|
o({ type: String })
|
|
6594
|
-
],
|
|
6602
|
+
], It.prototype, "placeholder", 2);
|
|
6595
6603
|
qt([
|
|
6596
6604
|
o({ type: Boolean })
|
|
6597
|
-
],
|
|
6605
|
+
], It.prototype, "readonly", 2);
|
|
6598
6606
|
qt([
|
|
6599
6607
|
o({ type: Boolean })
|
|
6600
|
-
],
|
|
6608
|
+
], It.prototype, "disabled", 2);
|
|
6601
6609
|
qt([
|
|
6602
6610
|
o({ type: Object })
|
|
6603
|
-
],
|
|
6611
|
+
], It.prototype, "inputClasses", 2);
|
|
6604
6612
|
qt([
|
|
6605
6613
|
o({ type: Object })
|
|
6606
|
-
],
|
|
6614
|
+
], It.prototype, "internals", 2);
|
|
6607
6615
|
qt([
|
|
6608
6616
|
o({ type: Object })
|
|
6609
|
-
],
|
|
6610
|
-
|
|
6617
|
+
], It.prototype, "strings", 2);
|
|
6618
|
+
It = qt([
|
|
6611
6619
|
j("pkt-datepicker-single")
|
|
6612
|
-
],
|
|
6613
|
-
var El = Object.defineProperty, Ol = Object.getOwnPropertyDescriptor,
|
|
6620
|
+
], It);
|
|
6621
|
+
var El = Object.defineProperty, Ol = Object.getOwnPropertyDescriptor, Vt = (i, t, e, s) => {
|
|
6614
6622
|
for (var a = s > 1 ? void 0 : s ? Ol(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6615
6623
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6616
6624
|
return s && a && El(t, e, a), a;
|
|
6617
6625
|
};
|
|
6618
|
-
let
|
|
6626
|
+
let Tt = class extends K {
|
|
6619
6627
|
constructor() {
|
|
6620
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();
|
|
6621
6629
|
}
|
|
@@ -6693,7 +6701,7 @@ let Ct = class extends K {
|
|
|
6693
6701
|
<div class="pkt-input__container">
|
|
6694
6702
|
${this.showRangeLabels ? u` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` : $}
|
|
6695
6703
|
<input
|
|
6696
|
-
class=${
|
|
6704
|
+
class=${M(this.inputClasses)}
|
|
6697
6705
|
.type=${this.inputType}
|
|
6698
6706
|
id="${this.id}-input"
|
|
6699
6707
|
.value=${this.value[0] ?? ""}
|
|
@@ -6708,7 +6716,7 @@ let Ct = class extends K {
|
|
|
6708
6716
|
@touchend=${(e) => {
|
|
6709
6717
|
e.preventDefault(), this.dispatchToggleCalendar(e);
|
|
6710
6718
|
}}
|
|
6711
|
-
@keydown=${(e) =>
|
|
6719
|
+
@keydown=${(e) => Pe.handleInputKeydown(
|
|
6712
6720
|
e,
|
|
6713
6721
|
(s) => this.dispatchToggleCalendar(s),
|
|
6714
6722
|
() => Pi.submitFormOrFallback(
|
|
@@ -6731,7 +6739,7 @@ let Ct = class extends K {
|
|
|
6731
6739
|
this.dispatchInput(e), e.stopImmediatePropagation();
|
|
6732
6740
|
}}
|
|
6733
6741
|
@focus=${() => {
|
|
6734
|
-
this.dispatchFocus(),
|
|
6742
|
+
this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6735
6743
|
}}
|
|
6736
6744
|
@blur=${(e) => {
|
|
6737
6745
|
this.dispatchEvent(
|
|
@@ -6751,12 +6759,12 @@ let Ct = class extends K {
|
|
|
6751
6759
|
}}
|
|
6752
6760
|
${E(this.inputRef)}
|
|
6753
6761
|
/>
|
|
6754
|
-
<div class="${
|
|
6762
|
+
<div class="${M(t)}" id="${this.id}-to-label">
|
|
6755
6763
|
${this.strings.generic.to}
|
|
6756
6764
|
</div>
|
|
6757
6765
|
${this.showRangeLabels ? $ : u` <div class="pkt-input-separator">–</div> `}
|
|
6758
6766
|
<input
|
|
6759
|
-
class=${
|
|
6767
|
+
class=${M(this.inputClasses)}
|
|
6760
6768
|
.type=${this.inputType}
|
|
6761
6769
|
id="${this.id}-to"
|
|
6762
6770
|
aria-labelledby="${this.id}-to-label"
|
|
@@ -6772,7 +6780,7 @@ let Ct = class extends K {
|
|
|
6772
6780
|
@touchend=${(e) => {
|
|
6773
6781
|
e.preventDefault(), this.dispatchToggleCalendar(e);
|
|
6774
6782
|
}}
|
|
6775
|
-
@keydown=${(e) =>
|
|
6783
|
+
@keydown=${(e) => Pe.handleInputKeydown(
|
|
6776
6784
|
e,
|
|
6777
6785
|
(s) => this.dispatchToggleCalendar(s),
|
|
6778
6786
|
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
@@ -6789,7 +6797,7 @@ let Ct = class extends K {
|
|
|
6789
6797
|
this.dispatchInput(e), e.stopImmediatePropagation();
|
|
6790
6798
|
}}
|
|
6791
6799
|
@focus=${() => {
|
|
6792
|
-
this.dispatchFocus(),
|
|
6800
|
+
this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6793
6801
|
}}
|
|
6794
6802
|
@blur=${(e) => {
|
|
6795
6803
|
this.dispatchBlur(e), e.target.value && (this.dispatchManageValidity(e.target), this.dispatchEvent(
|
|
@@ -6812,10 +6820,10 @@ let Ct = class extends K {
|
|
|
6812
6820
|
${E(this.inputRefTo)}
|
|
6813
6821
|
/>
|
|
6814
6822
|
<button
|
|
6815
|
-
class="${
|
|
6823
|
+
class="${M(Di.getButtonClasses())}"
|
|
6816
6824
|
type="button"
|
|
6817
6825
|
@click=${(e) => this.dispatchToggleCalendar(e)}
|
|
6818
|
-
@keydown=${(e) =>
|
|
6826
|
+
@keydown=${(e) => Pe.handleButtonKeydown(e, (s) => this.dispatchToggleCalendar(s))}
|
|
6819
6827
|
?disabled=${this.disabled}
|
|
6820
6828
|
${E(this.btnRef)}
|
|
6821
6829
|
>
|
|
@@ -6826,51 +6834,51 @@ let Ct = class extends K {
|
|
|
6826
6834
|
`;
|
|
6827
6835
|
}
|
|
6828
6836
|
};
|
|
6829
|
-
|
|
6837
|
+
Vt([
|
|
6830
6838
|
o({ type: Array })
|
|
6831
|
-
],
|
|
6832
|
-
|
|
6839
|
+
], Tt.prototype, "value", 2);
|
|
6840
|
+
Vt([
|
|
6833
6841
|
o({ type: String })
|
|
6834
|
-
],
|
|
6835
|
-
|
|
6842
|
+
], Tt.prototype, "inputType", 2);
|
|
6843
|
+
Vt([
|
|
6836
6844
|
o({ type: String })
|
|
6837
|
-
],
|
|
6838
|
-
|
|
6845
|
+
], Tt.prototype, "id", 2);
|
|
6846
|
+
Vt([
|
|
6839
6847
|
o({ type: String })
|
|
6840
|
-
],
|
|
6841
|
-
|
|
6848
|
+
], Tt.prototype, "min", 2);
|
|
6849
|
+
Vt([
|
|
6842
6850
|
o({ type: String })
|
|
6843
|
-
],
|
|
6844
|
-
|
|
6851
|
+
], Tt.prototype, "max", 2);
|
|
6852
|
+
Vt([
|
|
6845
6853
|
o({ type: String })
|
|
6846
|
-
],
|
|
6847
|
-
|
|
6854
|
+
], Tt.prototype, "placeholder", 2);
|
|
6855
|
+
Vt([
|
|
6848
6856
|
o({ type: Boolean })
|
|
6849
|
-
],
|
|
6850
|
-
|
|
6857
|
+
], Tt.prototype, "readonly", 2);
|
|
6858
|
+
Vt([
|
|
6851
6859
|
o({ type: Boolean })
|
|
6852
|
-
],
|
|
6853
|
-
|
|
6860
|
+
], Tt.prototype, "disabled", 2);
|
|
6861
|
+
Vt([
|
|
6854
6862
|
o({ type: Boolean })
|
|
6855
|
-
],
|
|
6856
|
-
|
|
6863
|
+
], Tt.prototype, "showRangeLabels", 2);
|
|
6864
|
+
Vt([
|
|
6857
6865
|
o({ type: Object })
|
|
6858
|
-
],
|
|
6859
|
-
|
|
6866
|
+
], Tt.prototype, "inputClasses", 2);
|
|
6867
|
+
Vt([
|
|
6860
6868
|
o({ type: Object })
|
|
6861
|
-
],
|
|
6862
|
-
|
|
6869
|
+
], Tt.prototype, "internals", 2);
|
|
6870
|
+
Vt([
|
|
6863
6871
|
o({ type: Object })
|
|
6864
|
-
],
|
|
6865
|
-
|
|
6872
|
+
], Tt.prototype, "strings", 2);
|
|
6873
|
+
Tt = Vt([
|
|
6866
6874
|
j("pkt-datepicker-range")
|
|
6867
|
-
],
|
|
6868
|
-
var Ml = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor,
|
|
6875
|
+
], Tt);
|
|
6876
|
+
var Ml = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, jt = (i, t, e, s) => {
|
|
6869
6877
|
for (var a = s > 1 ? void 0 : s ? Pl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6870
6878
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6871
6879
|
return s && a && Ml(t, e, a), a;
|
|
6872
6880
|
};
|
|
6873
|
-
let
|
|
6881
|
+
let Nt = class extends K {
|
|
6874
6882
|
constructor() {
|
|
6875
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();
|
|
6876
6884
|
}
|
|
@@ -6946,7 +6954,7 @@ let Tt = class extends K {
|
|
|
6946
6954
|
return u`
|
|
6947
6955
|
<div class="pkt-input__container">
|
|
6948
6956
|
<input
|
|
6949
|
-
class=${
|
|
6957
|
+
class=${M(this.inputClasses)}
|
|
6950
6958
|
.type=${this.inputType}
|
|
6951
6959
|
id="${this.id}-input"
|
|
6952
6960
|
min=${C(this.min)}
|
|
@@ -6967,9 +6975,9 @@ let Tt = class extends K {
|
|
|
6967
6975
|
this.dispatchInput(t), t.stopImmediatePropagation();
|
|
6968
6976
|
}}
|
|
6969
6977
|
@focus=${() => {
|
|
6970
|
-
this.dispatchFocus(),
|
|
6978
|
+
this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6971
6979
|
}}
|
|
6972
|
-
@keydown=${(t) =>
|
|
6980
|
+
@keydown=${(t) => Pe.handleInputKeydown(
|
|
6973
6981
|
t,
|
|
6974
6982
|
(e) => this.dispatchToggleCalendar(e),
|
|
6975
6983
|
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
@@ -6986,10 +6994,10 @@ let Tt = class extends K {
|
|
|
6986
6994
|
${E(this.inputRef)}
|
|
6987
6995
|
/>
|
|
6988
6996
|
<button
|
|
6989
|
-
class="${
|
|
6997
|
+
class="${M(Di.getButtonClasses())}"
|
|
6990
6998
|
type="button"
|
|
6991
6999
|
@click=${(t) => this.dispatchToggleCalendar(t)}
|
|
6992
|
-
@keydown=${(t) =>
|
|
7000
|
+
@keydown=${(t) => Pe.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
|
|
6993
7001
|
?disabled=${this.disabled}
|
|
6994
7002
|
${E(this.btnRef)}
|
|
6995
7003
|
>
|
|
@@ -7000,45 +7008,45 @@ let Tt = class extends K {
|
|
|
7000
7008
|
`;
|
|
7001
7009
|
}
|
|
7002
7010
|
};
|
|
7003
|
-
|
|
7011
|
+
jt([
|
|
7004
7012
|
o({ type: Array })
|
|
7005
|
-
],
|
|
7006
|
-
|
|
7013
|
+
], Nt.prototype, "value", 2);
|
|
7014
|
+
jt([
|
|
7007
7015
|
o({ type: String })
|
|
7008
|
-
],
|
|
7009
|
-
|
|
7016
|
+
], Nt.prototype, "inputType", 2);
|
|
7017
|
+
jt([
|
|
7010
7018
|
o({ type: String })
|
|
7011
|
-
],
|
|
7012
|
-
|
|
7019
|
+
], Nt.prototype, "id", 2);
|
|
7020
|
+
jt([
|
|
7013
7021
|
o({ type: String })
|
|
7014
|
-
],
|
|
7015
|
-
|
|
7022
|
+
], Nt.prototype, "min", 2);
|
|
7023
|
+
jt([
|
|
7016
7024
|
o({ type: String })
|
|
7017
|
-
],
|
|
7018
|
-
|
|
7025
|
+
], Nt.prototype, "max", 2);
|
|
7026
|
+
jt([
|
|
7019
7027
|
o({ type: String })
|
|
7020
|
-
],
|
|
7021
|
-
|
|
7028
|
+
], Nt.prototype, "placeholder", 2);
|
|
7029
|
+
jt([
|
|
7022
7030
|
o({ type: Boolean })
|
|
7023
|
-
],
|
|
7024
|
-
|
|
7031
|
+
], Nt.prototype, "readonly", 2);
|
|
7032
|
+
jt([
|
|
7025
7033
|
o({ type: Boolean })
|
|
7026
|
-
],
|
|
7027
|
-
|
|
7034
|
+
], Nt.prototype, "disabled", 2);
|
|
7035
|
+
jt([
|
|
7028
7036
|
o({ type: Number })
|
|
7029
|
-
],
|
|
7030
|
-
|
|
7037
|
+
], Nt.prototype, "maxlength", 2);
|
|
7038
|
+
jt([
|
|
7031
7039
|
o({ type: Object })
|
|
7032
|
-
],
|
|
7033
|
-
|
|
7040
|
+
], Nt.prototype, "inputClasses", 2);
|
|
7041
|
+
jt([
|
|
7034
7042
|
o({ type: Object })
|
|
7035
|
-
],
|
|
7036
|
-
|
|
7043
|
+
], Nt.prototype, "internals", 2);
|
|
7044
|
+
jt([
|
|
7037
7045
|
o({ type: Object })
|
|
7038
|
-
],
|
|
7039
|
-
|
|
7046
|
+
], Nt.prototype, "strings", 2);
|
|
7047
|
+
Nt = jt([
|
|
7040
7048
|
j("pkt-datepicker-multiple")
|
|
7041
|
-
],
|
|
7049
|
+
], Nt);
|
|
7042
7050
|
var Dl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, dt = (i, t, e, s) => {
|
|
7043
7051
|
for (var a = s > 1 ? void 0 : s ? Il(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7044
7052
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
@@ -7203,7 +7211,7 @@ let tt = class extends P {
|
|
|
7203
7211
|
}}
|
|
7204
7212
|
@handle-date-select=${(i) => {
|
|
7205
7213
|
var t, e;
|
|
7206
|
-
const s =
|
|
7214
|
+
const s = _e(i.detail);
|
|
7207
7215
|
s && this._value[1] !== nt(s) && ((e = (t = this.calRef) == null ? void 0 : t.value) == null || e.handleDateSelect(s));
|
|
7208
7216
|
}}
|
|
7209
7217
|
@input-changed=${() => {
|
|
@@ -7258,7 +7266,7 @@ let tt = class extends P {
|
|
|
7258
7266
|
.latest=${this.max}
|
|
7259
7267
|
.excludedates=${Array.isArray(this.excludedates) ? this.excludedates : this.excludedates.split(",")}
|
|
7260
7268
|
.excludeweekdays=${this.excludeweekdays}
|
|
7261
|
-
.currentmonth=${this.currentmonth ?
|
|
7269
|
+
.currentmonth=${this.currentmonth ? $e(this.currentmonth) : null}
|
|
7262
7270
|
@date-selected=${(i) => {
|
|
7263
7271
|
this.value = Ts.processDateSelection(i.detail, this.multiple, this.range), this._value = i.detail, Ts.updateInputValues(
|
|
7264
7272
|
this.inputRef,
|
|
@@ -7317,7 +7325,7 @@ let tt = class extends P {
|
|
|
7317
7325
|
id-base=${this.id}
|
|
7318
7326
|
@date-tag-removed=${(i) => {
|
|
7319
7327
|
var t;
|
|
7320
|
-
const e = this.datepickerPopupRef.value, s =
|
|
7328
|
+
const e = this.datepickerPopupRef.value, s = _e(i.detail);
|
|
7321
7329
|
e && s && typeof e.handleDateSelect == "function" ? e.handleDateSelect(s) : (t = this.calRef.value) == null || t.handleDateSelect(s);
|
|
7322
7330
|
}}
|
|
7323
7331
|
></pkt-date-tags>` : $}
|
|
@@ -7341,10 +7349,10 @@ let tt = class extends P {
|
|
|
7341
7349
|
var i;
|
|
7342
7350
|
const t = this.datepickerPopupRef.value;
|
|
7343
7351
|
if (this.calendarOpen = !0, t && typeof t.show == "function") {
|
|
7344
|
-
t.show(),
|
|
7352
|
+
t.show(), Be() && t.focusOnCurrentDate();
|
|
7345
7353
|
return;
|
|
7346
7354
|
}
|
|
7347
|
-
await Qo(20), this.handleCalendarPosition(),
|
|
7355
|
+
await Qo(20), this.handleCalendarPosition(), Be() && ((i = this.calRef.value) == null || i.focusOnCurrentDate());
|
|
7348
7356
|
}
|
|
7349
7357
|
hideCalendar() {
|
|
7350
7358
|
const i = this.datepickerPopupRef.value;
|
|
@@ -7435,7 +7443,7 @@ var Ll = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor, di = (i, t
|
|
|
7435
7443
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7436
7444
|
return s && a && Ll(t, e, a), a;
|
|
7437
7445
|
};
|
|
7438
|
-
let
|
|
7446
|
+
let Ve = class extends K {
|
|
7439
7447
|
constructor() {
|
|
7440
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);
|
|
7441
7449
|
}
|
|
@@ -7447,7 +7455,7 @@ let Le = class extends K {
|
|
|
7447
7455
|
"pkt-link--external": this.external
|
|
7448
7456
|
};
|
|
7449
7457
|
return u`<a
|
|
7450
|
-
class=${
|
|
7458
|
+
class=${M(t)}
|
|
7451
7459
|
href=${this.href}
|
|
7452
7460
|
.target=${this.target}
|
|
7453
7461
|
.rel=${this.external ? "noopener noreferrer" : $}
|
|
@@ -7457,28 +7465,28 @@ let Le = class extends K {
|
|
|
7457
7465
|
};
|
|
7458
7466
|
di([
|
|
7459
7467
|
o({ type: String, reflect: !0 })
|
|
7460
|
-
],
|
|
7468
|
+
], Ve.prototype, "href", 2);
|
|
7461
7469
|
di([
|
|
7462
7470
|
o({ type: String, reflect: !0 })
|
|
7463
|
-
],
|
|
7471
|
+
], Ve.prototype, "iconName", 2);
|
|
7464
7472
|
di([
|
|
7465
7473
|
o({ type: String, reflect: !0 })
|
|
7466
|
-
],
|
|
7474
|
+
], Ve.prototype, "iconPosition", 2);
|
|
7467
7475
|
di([
|
|
7468
7476
|
o({ type: Boolean, reflect: !0 })
|
|
7469
|
-
],
|
|
7477
|
+
], Ve.prototype, "external", 2);
|
|
7470
7478
|
di([
|
|
7471
7479
|
o({ type: String, reflect: !0 })
|
|
7472
|
-
],
|
|
7473
|
-
|
|
7480
|
+
], Ve.prototype, "target", 2);
|
|
7481
|
+
Ve = di([
|
|
7474
7482
|
j("pkt-link")
|
|
7475
|
-
],
|
|
7476
|
-
var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor,
|
|
7483
|
+
], Ve);
|
|
7484
|
+
var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, ze = (i, t, e, s) => {
|
|
7477
7485
|
for (var a = s > 1 ? void 0 : s ? jl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7478
7486
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7479
7487
|
return s && a && Vl(t, e, a), a;
|
|
7480
7488
|
};
|
|
7481
|
-
let
|
|
7489
|
+
let we = class extends K {
|
|
7482
7490
|
constructor() {
|
|
7483
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);
|
|
7484
7492
|
}
|
|
@@ -7499,27 +7507,27 @@ let _e = class extends K {
|
|
|
7499
7507
|
`;
|
|
7500
7508
|
}
|
|
7501
7509
|
};
|
|
7502
|
-
|
|
7510
|
+
ze([
|
|
7503
7511
|
o({ type: String, reflect: !0 })
|
|
7504
|
-
],
|
|
7505
|
-
|
|
7512
|
+
], we.prototype, "title", 2);
|
|
7513
|
+
ze([
|
|
7506
7514
|
o({ type: String, reflect: !0 })
|
|
7507
|
-
],
|
|
7508
|
-
|
|
7515
|
+
], we.prototype, "href", 2);
|
|
7516
|
+
ze([
|
|
7509
7517
|
o({ type: String, reflect: !0 })
|
|
7510
|
-
],
|
|
7511
|
-
|
|
7518
|
+
], we.prototype, "iconName", 2);
|
|
7519
|
+
ze([
|
|
7512
7520
|
o({ type: Boolean, reflect: !0 })
|
|
7513
|
-
],
|
|
7514
|
-
|
|
7521
|
+
], we.prototype, "external", 2);
|
|
7522
|
+
ze([
|
|
7515
7523
|
o({ type: Boolean, reflect: !0 })
|
|
7516
|
-
],
|
|
7517
|
-
|
|
7524
|
+
], we.prototype, "openInNewTab", 2);
|
|
7525
|
+
ze([
|
|
7518
7526
|
o({ type: String, reflect: !0 })
|
|
7519
|
-
],
|
|
7520
|
-
|
|
7527
|
+
], we.prototype, "skin", 2);
|
|
7528
|
+
we = ze([
|
|
7521
7529
|
j("pkt-linkcard")
|
|
7522
|
-
],
|
|
7530
|
+
], we);
|
|
7523
7531
|
var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, pe = (i, t, e, s) => {
|
|
7524
7532
|
for (var a = s > 1 ? void 0 : s ? Ul(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7525
7533
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
@@ -7537,11 +7545,11 @@ let Yt = class extends K {
|
|
|
7537
7545
|
t.has("delay") && this.setupLoader();
|
|
7538
7546
|
}
|
|
7539
7547
|
render() {
|
|
7540
|
-
const t =
|
|
7548
|
+
const t = M({
|
|
7541
7549
|
"pkt-loader": !0,
|
|
7542
7550
|
[`pkt-loader--${this.inline ? "inline" : "box"}`]: !0,
|
|
7543
7551
|
[`pkt-loader--${this.size}`]: !0
|
|
7544
|
-
}), e =
|
|
7552
|
+
}), e = M({
|
|
7545
7553
|
"pkt-contents": !0,
|
|
7546
7554
|
"pkt-hide": this.isLoading
|
|
7547
7555
|
});
|
|
@@ -7613,7 +7621,7 @@ var ql = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, ci = (i, t
|
|
|
7613
7621
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7614
7622
|
return s && a && ql(t, e, a), a;
|
|
7615
7623
|
};
|
|
7616
|
-
let
|
|
7624
|
+
let je = class extends K {
|
|
7617
7625
|
constructor() {
|
|
7618
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) => {
|
|
7619
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 }));
|
|
@@ -7632,7 +7640,7 @@ let Be = class extends K {
|
|
|
7632
7640
|
"pkt-messagebox--closable": this.closable,
|
|
7633
7641
|
"pkt-hide": this._isClosed
|
|
7634
7642
|
};
|
|
7635
|
-
return u`<div class=${
|
|
7643
|
+
return u`<div class=${M(i)}>
|
|
7636
7644
|
${this.closable ? u`<div class="pkt-messagebox__close">
|
|
7637
7645
|
<button
|
|
7638
7646
|
@click=${this.close}
|
|
@@ -7649,22 +7657,22 @@ let Be = class extends K {
|
|
|
7649
7657
|
};
|
|
7650
7658
|
ci([
|
|
7651
7659
|
o({ type: Boolean, reflect: !0 })
|
|
7652
|
-
],
|
|
7660
|
+
], je.prototype, "closable", 2);
|
|
7653
7661
|
ci([
|
|
7654
7662
|
o({ type: Boolean, reflect: !0 })
|
|
7655
|
-
],
|
|
7663
|
+
], je.prototype, "compact", 2);
|
|
7656
7664
|
ci([
|
|
7657
7665
|
o({ type: String, reflect: !0 })
|
|
7658
|
-
],
|
|
7666
|
+
], je.prototype, "title", 2);
|
|
7659
7667
|
ci([
|
|
7660
7668
|
o({ type: String, reflect: !0 })
|
|
7661
|
-
],
|
|
7669
|
+
], je.prototype, "skin", 2);
|
|
7662
7670
|
ci([
|
|
7663
7671
|
B()
|
|
7664
|
-
],
|
|
7665
|
-
|
|
7672
|
+
], je.prototype, "_isClosed", 2);
|
|
7673
|
+
je = ci([
|
|
7666
7674
|
j("pkt-messagebox")
|
|
7667
|
-
],
|
|
7675
|
+
], je);
|
|
7668
7676
|
const Wl = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, As = {
|
|
7669
7677
|
props: Wl
|
|
7670
7678
|
};
|
|
@@ -7673,7 +7681,7 @@ var Kl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, Xt = (i, t
|
|
|
7673
7681
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7674
7682
|
return s && a && Kl(t, e, a), a;
|
|
7675
7683
|
};
|
|
7676
|
-
let
|
|
7684
|
+
let Rt = class extends K {
|
|
7677
7685
|
constructor() {
|
|
7678
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) => {
|
|
7679
7687
|
var s;
|
|
@@ -7740,7 +7748,7 @@ let It = class extends K {
|
|
|
7740
7748
|
};
|
|
7741
7749
|
return u`
|
|
7742
7750
|
<dialog
|
|
7743
|
-
class=${
|
|
7751
|
+
class=${M(t)}
|
|
7744
7752
|
${E(this.dialogRef)}
|
|
7745
7753
|
aria-labelledby="pkt-modal__headingText"
|
|
7746
7754
|
aria-describedby="pkt-modal__content"
|
|
@@ -7749,10 +7757,10 @@ let It = class extends K {
|
|
|
7749
7757
|
<div class="pkt-modal__wrapper">
|
|
7750
7758
|
${this.headingText || !this.hideCloseButton ? u`<div class="pkt-modal__header">
|
|
7751
7759
|
<div class="pkt-modal__header-background"></div>
|
|
7752
|
-
${this.headingText ? u`<h1 id="pkt-modal__headingText" class=${
|
|
7760
|
+
${this.headingText ? u`<h1 id="pkt-modal__headingText" class=${M(e)}>
|
|
7753
7761
|
${this.headingText}
|
|
7754
7762
|
</h1>` : u`<div class="pkt-modal__headingText"></div>`}
|
|
7755
|
-
${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)}">
|
|
7756
7764
|
<pkt-button
|
|
7757
7765
|
@click=${(r) => this.close(r)}
|
|
7758
7766
|
aria-label="close"
|
|
@@ -7768,7 +7776,7 @@ let It = class extends K {
|
|
|
7768
7776
|
<div class="pkt-modal__container">
|
|
7769
7777
|
<div
|
|
7770
7778
|
id="pkt-modal__content"
|
|
7771
|
-
class=${
|
|
7779
|
+
class=${M(s)}
|
|
7772
7780
|
${E(this.defaultSlot)}
|
|
7773
7781
|
></div>
|
|
7774
7782
|
</div>
|
|
@@ -7779,43 +7787,43 @@ let It = class extends K {
|
|
|
7779
7787
|
};
|
|
7780
7788
|
Xt([
|
|
7781
7789
|
o({ type: String })
|
|
7782
|
-
],
|
|
7790
|
+
], Rt.prototype, "headingText", 2);
|
|
7783
7791
|
Xt([
|
|
7784
7792
|
o({ type: Boolean })
|
|
7785
|
-
],
|
|
7793
|
+
], Rt.prototype, "removePadding", 2);
|
|
7786
7794
|
Xt([
|
|
7787
7795
|
o({ type: Boolean })
|
|
7788
|
-
],
|
|
7796
|
+
], Rt.prototype, "hideCloseButton", 2);
|
|
7789
7797
|
Xt([
|
|
7790
7798
|
o({ type: Boolean })
|
|
7791
|
-
],
|
|
7799
|
+
], Rt.prototype, "closeOnBackdropClick", 2);
|
|
7792
7800
|
Xt([
|
|
7793
7801
|
o({ type: String })
|
|
7794
|
-
],
|
|
7802
|
+
], Rt.prototype, "closeButtonSkin", 2);
|
|
7795
7803
|
Xt([
|
|
7796
7804
|
o({ type: String })
|
|
7797
|
-
],
|
|
7805
|
+
], Rt.prototype, "size", 2);
|
|
7798
7806
|
Xt([
|
|
7799
7807
|
o({ type: String })
|
|
7800
|
-
],
|
|
7808
|
+
], Rt.prototype, "variant", 2);
|
|
7801
7809
|
Xt([
|
|
7802
7810
|
o({ type: String })
|
|
7803
|
-
],
|
|
7811
|
+
], Rt.prototype, "drawerPosition", 2);
|
|
7804
7812
|
Xt([
|
|
7805
7813
|
o({ type: Boolean })
|
|
7806
|
-
],
|
|
7814
|
+
], Rt.prototype, "transparentBackdrop", 2);
|
|
7807
7815
|
Xt([
|
|
7808
7816
|
B()
|
|
7809
|
-
],
|
|
7810
|
-
|
|
7817
|
+
], Rt.prototype, "_isOpen", 2);
|
|
7818
|
+
Rt = Xt([
|
|
7811
7819
|
j("pkt-modal")
|
|
7812
|
-
],
|
|
7820
|
+
], Rt);
|
|
7813
7821
|
/**
|
|
7814
7822
|
* @license
|
|
7815
7823
|
* Copyright 2018 Google LLC
|
|
7816
7824
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7817
7825
|
*/
|
|
7818
|
-
const nn = "important", Yl = " !" + nn, Zl =
|
|
7826
|
+
const nn = "important", Yl = " !" + nn, Zl = Ue(class extends li {
|
|
7819
7827
|
constructor(i) {
|
|
7820
7828
|
var t;
|
|
7821
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.");
|
|
@@ -7838,7 +7846,7 @@ const nn = "important", Yl = " !" + nn, Zl = Fe(class extends li {
|
|
|
7838
7846
|
s.includes("-") || n ? e.setProperty(s, n ? a.slice(0, -11) : a, n ? nn : "") : e[s] = a;
|
|
7839
7847
|
}
|
|
7840
7848
|
}
|
|
7841
|
-
return
|
|
7849
|
+
return St;
|
|
7842
7850
|
}
|
|
7843
7851
|
});
|
|
7844
7852
|
var Jl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
|
|
@@ -7857,16 +7865,16 @@ let et = class extends K {
|
|
|
7857
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();
|
|
7858
7866
|
}
|
|
7859
7867
|
render() {
|
|
7860
|
-
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({
|
|
7861
7869
|
"pkt-progressbar__bar": !0,
|
|
7862
7870
|
[`pkt-progressbar__bar--${this.skin}`]: !!this.skin
|
|
7863
|
-
}), r =
|
|
7871
|
+
}), r = M({
|
|
7864
7872
|
"pkt-progressbar__title": !0,
|
|
7865
7873
|
"pkt-progressbar__title-center": this.titlePosition === "center"
|
|
7866
|
-
}), l =
|
|
7874
|
+
}), l = M({
|
|
7867
7875
|
"pkt-progressbar__status": !0,
|
|
7868
7876
|
"pkt-progressbar__status--center": this.statusPlacement === "center"
|
|
7869
|
-
}), d =
|
|
7877
|
+
}), d = M({
|
|
7870
7878
|
"pkt-progressbar__status-placement--following": this.statusPlacement === "following",
|
|
7871
7879
|
"pkt-progressbar__status-placement--center": this.statusPlacement === "center",
|
|
7872
7880
|
"pkt-progressbar__status-placement--left": this.statusPlacement === "left"
|
|
@@ -7960,12 +7968,12 @@ ct([
|
|
|
7960
7968
|
et = ct([
|
|
7961
7969
|
j("pkt-progressbar")
|
|
7962
7970
|
], et);
|
|
7963
|
-
var Ql = Object.defineProperty, th = Object.getOwnPropertyDescriptor,
|
|
7971
|
+
var Ql = Object.defineProperty, th = Object.getOwnPropertyDescriptor, Ft = (i, t, e, s) => {
|
|
7964
7972
|
for (var a = s > 1 ? void 0 : s ? th(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7965
7973
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7966
7974
|
return s && a && Ql(t, e, a), a;
|
|
7967
7975
|
};
|
|
7968
|
-
let
|
|
7976
|
+
let At = class extends P {
|
|
7969
7977
|
constructor() {
|
|
7970
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;
|
|
7971
7979
|
}
|
|
@@ -7976,14 +7984,14 @@ let Nt = class extends P {
|
|
|
7976
7984
|
i === "defaultChecked" && (this._checked = this.defaultChecked), i === "checked" && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0), super.attributeChangedCallback(i, t, e);
|
|
7977
7985
|
}
|
|
7978
7986
|
render() {
|
|
7979
|
-
const i =
|
|
7987
|
+
const i = M({
|
|
7980
7988
|
"pkt-input-check__input": !0,
|
|
7981
7989
|
"pkt-input-check__input--tile": this.hasTile,
|
|
7982
7990
|
"pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
|
|
7983
|
-
}), t =
|
|
7991
|
+
}), t = M({
|
|
7984
7992
|
"pkt-input-check__input-checkbox": !0,
|
|
7985
7993
|
"pkt-input-check__input-checkbox--error": this.hasError
|
|
7986
|
-
}), e =
|
|
7994
|
+
}), e = M({
|
|
7987
7995
|
"pkt-input-check__input-label": !0,
|
|
7988
7996
|
"pkt-input-check__input-label--disabled": this.disabled,
|
|
7989
7997
|
"pkt-sr-only": this.hideLabel
|
|
@@ -8024,45 +8032,45 @@ let Nt = class extends P {
|
|
|
8024
8032
|
i && i.preventDefault(), i && i.stopImmediatePropagation(), this.touched = !0, this.inputRef.value && (this._checked = this.inputRef.value.matches(":checked"), this.valueChecked(this._checked));
|
|
8025
8033
|
}
|
|
8026
8034
|
};
|
|
8027
|
-
|
|
8035
|
+
Ft([
|
|
8028
8036
|
o({ type: String, reflect: !0 })
|
|
8029
|
-
],
|
|
8030
|
-
|
|
8037
|
+
], At.prototype, "value", 2);
|
|
8038
|
+
Ft([
|
|
8031
8039
|
o({ type: String })
|
|
8032
|
-
],
|
|
8033
|
-
|
|
8040
|
+
], At.prototype, "checkHelptext", 2);
|
|
8041
|
+
Ft([
|
|
8034
8042
|
o({ type: Boolean })
|
|
8035
|
-
],
|
|
8036
|
-
|
|
8043
|
+
], At.prototype, "defaultChecked", 2);
|
|
8044
|
+
Ft([
|
|
8037
8045
|
o({ type: Boolean })
|
|
8038
|
-
],
|
|
8039
|
-
|
|
8046
|
+
], At.prototype, "hasTile", 2);
|
|
8047
|
+
Ft([
|
|
8040
8048
|
o({ type: Boolean, reflect: !0 })
|
|
8041
|
-
],
|
|
8042
|
-
|
|
8049
|
+
], At.prototype, "checked", 2);
|
|
8050
|
+
Ft([
|
|
8043
8051
|
o({ type: String, reflect: !0 })
|
|
8044
|
-
],
|
|
8045
|
-
|
|
8052
|
+
], At.prototype, "type", 2);
|
|
8053
|
+
Ft([
|
|
8046
8054
|
o({ type: String })
|
|
8047
|
-
],
|
|
8048
|
-
|
|
8055
|
+
], At.prototype, "tagText", 2);
|
|
8056
|
+
Ft([
|
|
8049
8057
|
o({ type: Boolean })
|
|
8050
|
-
],
|
|
8051
|
-
|
|
8058
|
+
], At.prototype, "optionalTag", 2);
|
|
8059
|
+
Ft([
|
|
8052
8060
|
o({ type: String })
|
|
8053
|
-
],
|
|
8054
|
-
|
|
8061
|
+
], At.prototype, "optionalText", 2);
|
|
8062
|
+
Ft([
|
|
8055
8063
|
o({ type: Boolean })
|
|
8056
|
-
],
|
|
8057
|
-
|
|
8064
|
+
], At.prototype, "requiredTag", 2);
|
|
8065
|
+
Ft([
|
|
8058
8066
|
o({ type: String })
|
|
8059
|
-
],
|
|
8060
|
-
|
|
8067
|
+
], At.prototype, "requiredText", 2);
|
|
8068
|
+
Ft([
|
|
8061
8069
|
B()
|
|
8062
|
-
],
|
|
8063
|
-
|
|
8070
|
+
], At.prototype, "_checked", 2);
|
|
8071
|
+
At = Ft([
|
|
8064
8072
|
j("pkt-radiobutton")
|
|
8065
|
-
],
|
|
8073
|
+
], At);
|
|
8066
8074
|
/**
|
|
8067
8075
|
* @license
|
|
8068
8076
|
* Copyright 2021 Google LLC
|
|
@@ -8228,7 +8236,7 @@ var nh = Object.defineProperty, rh = Object.getOwnPropertyDescriptor, pi = (i, t
|
|
|
8228
8236
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8229
8237
|
return s && a && nh(t, e, a), a;
|
|
8230
8238
|
};
|
|
8231
|
-
let
|
|
8239
|
+
let Fe = class extends K {
|
|
8232
8240
|
constructor() {
|
|
8233
8241
|
super(), this.arrowNav = !0, this.disableArrowNav = !1, this.tabRefs = [], this.tabCount = 0, this.defaultSlot = A(), this.context = {
|
|
8234
8242
|
useArrowNav: this.useArrowNav,
|
|
@@ -8280,23 +8288,23 @@ let Ve = class extends K {
|
|
|
8280
8288
|
};
|
|
8281
8289
|
pi([
|
|
8282
8290
|
o({ type: Boolean, reflect: !0, attribute: "arrow-nav" })
|
|
8283
|
-
],
|
|
8291
|
+
], Fe.prototype, "arrowNav", 2);
|
|
8284
8292
|
pi([
|
|
8285
8293
|
o({ type: Boolean, reflect: !0, attribute: "disable-arrow-nav" })
|
|
8286
|
-
],
|
|
8294
|
+
], Fe.prototype, "disableArrowNav", 2);
|
|
8287
8295
|
pi([
|
|
8288
8296
|
B()
|
|
8289
|
-
],
|
|
8297
|
+
], Fe.prototype, "tabRefs", 2);
|
|
8290
8298
|
pi([
|
|
8291
8299
|
B()
|
|
8292
|
-
],
|
|
8300
|
+
], Fe.prototype, "tabCount", 2);
|
|
8293
8301
|
pi([
|
|
8294
8302
|
sh({ context: on }),
|
|
8295
8303
|
B()
|
|
8296
|
-
],
|
|
8297
|
-
|
|
8304
|
+
], Fe.prototype, "context", 2);
|
|
8305
|
+
Fe = pi([
|
|
8298
8306
|
j("pkt-tabs")
|
|
8299
|
-
],
|
|
8307
|
+
], Fe);
|
|
8300
8308
|
var oh = Object.defineProperty, lh = Object.getOwnPropertyDescriptor, ue = (i, t, e, s) => {
|
|
8301
8309
|
for (var a = s > 1 ? void 0 : s ? lh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8302
8310
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
@@ -8388,7 +8396,7 @@ ie = ue([
|
|
|
8388
8396
|
* Copyright 2020 Google LLC
|
|
8389
8397
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8390
8398
|
*/
|
|
8391
|
-
const hh =
|
|
8399
|
+
const hh = Ue(class extends li {
|
|
8392
8400
|
constructor(i) {
|
|
8393
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");
|
|
8394
8402
|
if (!Ha(i)) throw Error("`live` bindings can only contain a single expression");
|
|
@@ -8397,13 +8405,13 @@ const hh = Fe(class extends li {
|
|
|
8397
8405
|
return i;
|
|
8398
8406
|
}
|
|
8399
8407
|
update(i, [t]) {
|
|
8400
|
-
if (t ===
|
|
8408
|
+
if (t === St || t === $) return t;
|
|
8401
8409
|
const e = i.element, s = i.name;
|
|
8402
8410
|
if (i.type === zt.PROPERTY) {
|
|
8403
|
-
if (t === e[s]) return
|
|
8411
|
+
if (t === e[s]) return St;
|
|
8404
8412
|
} else if (i.type === zt.BOOLEAN_ATTRIBUTE) {
|
|
8405
|
-
if (!!t === e.hasAttribute(s)) return
|
|
8406
|
-
} 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;
|
|
8407
8415
|
return qa(i), t;
|
|
8408
8416
|
}
|
|
8409
8417
|
});
|
|
@@ -8424,7 +8432,7 @@ let ni = class extends P {
|
|
|
8424
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);
|
|
8425
8433
|
}
|
|
8426
8434
|
render() {
|
|
8427
|
-
const t =
|
|
8435
|
+
const t = M({
|
|
8428
8436
|
"pkt-input": !0,
|
|
8429
8437
|
"pkt-input--fullwidth": this.fullwidth,
|
|
8430
8438
|
"pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
|
|
@@ -8517,7 +8525,7 @@ let Zt = class extends P {
|
|
|
8517
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);
|
|
8518
8526
|
}
|
|
8519
8527
|
render() {
|
|
8520
|
-
const t = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, e =
|
|
8528
|
+
const t = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, e = M({
|
|
8521
8529
|
"pkt-input": !0,
|
|
8522
8530
|
"pkt-input--fullwidth": this.fullwidth,
|
|
8523
8531
|
"pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
|
|
@@ -8827,7 +8835,7 @@ let ri = class extends K {
|
|
|
8827
8835
|
"pkt-darkmode": this.darkmode
|
|
8828
8836
|
};
|
|
8829
8837
|
return u`
|
|
8830
|
-
<div class="${
|
|
8838
|
+
<div class="${M(i)}">
|
|
8831
8839
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
8832
8840
|
|
|
8833
8841
|
<h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
|
|
@@ -8847,7 +8855,7 @@ let ri = class extends K {
|
|
|
8847
8855
|
|
|
8848
8856
|
<h2 class="pkt-txt-22">Knapp som emitter en event</h2>
|
|
8849
8857
|
<button type="button" @click=${() => this.handleGreeting()}>
|
|
8850
|
-
Si ${
|
|
8858
|
+
Si ${wt.example.hi}
|
|
8851
8859
|
</button>
|
|
8852
8860
|
</div>
|
|
8853
8861
|
`;
|
|
@@ -8893,7 +8901,7 @@ ri = Fi([
|
|
|
8893
8901
|
], ri);
|
|
8894
8902
|
const L = Jt({
|
|
8895
8903
|
tagName: "pkt-icon",
|
|
8896
|
-
elementClass:
|
|
8904
|
+
elementClass: Re,
|
|
8897
8905
|
react: mt,
|
|
8898
8906
|
displayName: "PktIcon",
|
|
8899
8907
|
events: {}
|
|
@@ -8911,11 +8919,11 @@ const L = Jt({
|
|
|
8911
8919
|
onClick: p,
|
|
8912
8920
|
onToggle: m
|
|
8913
8921
|
}, f) => {
|
|
8914
|
-
const [y, b] =
|
|
8915
|
-
|
|
8922
|
+
const [y, b] = ke(i), { name: k } = kn(), w = l || k, S = n !== void 0 ? n : y;
|
|
8923
|
+
De(() => {
|
|
8916
8924
|
n === void 0 && b(i);
|
|
8917
8925
|
}, [i, n]);
|
|
8918
|
-
const
|
|
8926
|
+
const O = (T) => {
|
|
8919
8927
|
const G = T.currentTarget.open;
|
|
8920
8928
|
n === void 0 && b(G), m == null || m(T);
|
|
8921
8929
|
}, N = (T) => {
|
|
@@ -8937,7 +8945,7 @@ const L = Jt({
|
|
|
8937
8945
|
open: S,
|
|
8938
8946
|
onClick: N,
|
|
8939
8947
|
name: w,
|
|
8940
|
-
onToggle:
|
|
8948
|
+
onToggle: O,
|
|
8941
8949
|
children: [
|
|
8942
8950
|
/* @__PURE__ */ x("summary", { className: "pkt-accordion-item__title", id: `pkt-accordion-item-summary-${t}`, children: [
|
|
8943
8951
|
e,
|
|
@@ -9006,7 +9014,7 @@ const ht = /* @__PURE__ */ kh($h), ln = ({
|
|
|
9006
9014
|
className: p,
|
|
9007
9015
|
...m
|
|
9008
9016
|
}) => {
|
|
9009
|
-
const [f, y] =
|
|
9017
|
+
const [f, y] = ke(!1), b = {
|
|
9010
9018
|
"pkt-alert": !0,
|
|
9011
9019
|
"pkt-alert--compact": e,
|
|
9012
9020
|
[`pkt-alert--${d}`]: d,
|
|
@@ -9114,7 +9122,7 @@ const oi = Z(
|
|
|
9114
9122
|
loadingAnimationPath: k = window.pktAnimationPath,
|
|
9115
9123
|
...w
|
|
9116
9124
|
}, S) => {
|
|
9117
|
-
const
|
|
9125
|
+
const O = [
|
|
9118
9126
|
t,
|
|
9119
9127
|
"pkt-btn",
|
|
9120
9128
|
a && `pkt-btn--${a}`,
|
|
@@ -9133,7 +9141,7 @@ const oi = Z(
|
|
|
9133
9141
|
"aria-busy": y || void 0,
|
|
9134
9142
|
"aria-disabled": b || void 0,
|
|
9135
9143
|
disabled: b,
|
|
9136
|
-
className:
|
|
9144
|
+
className: O,
|
|
9137
9145
|
type: d,
|
|
9138
9146
|
ref: S,
|
|
9139
9147
|
children: [
|
|
@@ -9176,13 +9184,13 @@ const Sh = Z(
|
|
|
9176
9184
|
optionalText: k = "Valgfritt",
|
|
9177
9185
|
requiredTag: w,
|
|
9178
9186
|
requiredText: S = "Må fylles ut",
|
|
9179
|
-
tagText:
|
|
9187
|
+
tagText: O,
|
|
9180
9188
|
...N
|
|
9181
9189
|
}, I) => {
|
|
9182
9190
|
const T = Bs(null);
|
|
9183
|
-
|
|
9191
|
+
De(() => {
|
|
9184
9192
|
T.current && y !== void 0 && (T.current.indeterminate = y);
|
|
9185
|
-
}, [y]),
|
|
9193
|
+
}, [y]), De(() => {
|
|
9186
9194
|
typeof I == "function" ? I(T.current) : I && (I.current = T.current);
|
|
9187
9195
|
}, [I]);
|
|
9188
9196
|
const H = [r, "pkt-input-check"].filter(Boolean).join(" "), G = [
|
|
@@ -9190,16 +9198,16 @@ const Sh = Z(
|
|
|
9190
9198
|
e ? "pkt-input-check__input-label--disabled" : "",
|
|
9191
9199
|
`pkt-input-check__input-label--${p}`,
|
|
9192
9200
|
d ? "pkt-sr-only" : ""
|
|
9193
|
-
].filter(Boolean).join(" "),
|
|
9201
|
+
].filter(Boolean).join(" "), _t = [
|
|
9194
9202
|
"pkt-input-check__input",
|
|
9195
9203
|
t ? "pkt-input-check__input--tile" : "",
|
|
9196
9204
|
e && t ? "pkt-input-check__input--tile-disabled" : ""
|
|
9197
9205
|
].filter(Boolean).join(" "), pt = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ x(Wt, { children: [
|
|
9198
|
-
|
|
9206
|
+
O && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--gray", children: O }),
|
|
9199
9207
|
b && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--blue-light", children: k }),
|
|
9200
9208
|
w && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--beige", children: S })
|
|
9201
9209
|
] });
|
|
9202
|
-
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: [
|
|
9203
9211
|
p === "left" && /* @__PURE__ */ x("label", { className: G, htmlFor: i, children: [
|
|
9204
9212
|
s,
|
|
9205
9213
|
" ",
|
|
@@ -9293,7 +9301,7 @@ const Yd = ({
|
|
|
9293
9301
|
console.log(w.detail);
|
|
9294
9302
|
}
|
|
9295
9303
|
}) => {
|
|
9296
|
-
var S,
|
|
9304
|
+
var S, O;
|
|
9297
9305
|
const w = [s, "pkt-footer"].filter(Boolean).join(" ");
|
|
9298
9306
|
return /* @__PURE__ */ h("footer", { className: w, "data-mode": "dark", children: /* @__PURE__ */ x("div", { className: "pkt-footer__container", children: [
|
|
9299
9307
|
/* @__PURE__ */ x("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
@@ -9320,7 +9328,7 @@ const Yd = ({
|
|
|
9320
9328
|
/* @__PURE__ */ h("h2", { className: "pkt-footer__title", children: t.title }),
|
|
9321
9329
|
/* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
|
|
9322
9330
|
t.text && /* @__PURE__ */ h("li", { className: "pkt-footer__text", children: t.text }),
|
|
9323
|
-
(
|
|
9331
|
+
(O = t.links) == null ? void 0 : O.map((N, I) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
|
|
9324
9332
|
"a",
|
|
9325
9333
|
{
|
|
9326
9334
|
className: `pkt-footer__link ${N.external ? "pkt-link--external" : ""}`,
|
|
@@ -9495,32 +9503,32 @@ const Yd = ({
|
|
|
9495
9503
|
logOut: k,
|
|
9496
9504
|
changeRepresentation: w,
|
|
9497
9505
|
children: S,
|
|
9498
|
-
...
|
|
9506
|
+
...O
|
|
9499
9507
|
}, N) => {
|
|
9500
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", {
|
|
9501
9509
|
year: "numeric",
|
|
9502
9510
|
month: "long",
|
|
9503
9511
|
day: "numeric"
|
|
9504
|
-
}) : "", [n]), [T, H] = mt.useState(!1), [G,
|
|
9505
|
-
mt.useEffect(() => (document && (document.addEventListener("mouseup",
|
|
9506
|
-
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));
|
|
9507
9515
|
}));
|
|
9508
|
-
const
|
|
9516
|
+
const Et = () => {
|
|
9509
9517
|
J(!pt);
|
|
9510
|
-
},
|
|
9518
|
+
}, Ot = (R) => {
|
|
9511
9519
|
st.current && !st.current.contains(R.target) && J(!1);
|
|
9512
9520
|
}, at = () => {
|
|
9513
9521
|
if (a) {
|
|
9514
9522
|
const R = window.pageYOffset || document.documentElement.scrollTop;
|
|
9515
9523
|
if (R < 0 || Math.abs(R - G) < 60)
|
|
9516
9524
|
return;
|
|
9517
|
-
H(R > G),
|
|
9525
|
+
H(R > G), _t(R);
|
|
9518
9526
|
}
|
|
9519
9527
|
};
|
|
9520
9528
|
return /* @__PURE__ */ x(
|
|
9521
9529
|
"header",
|
|
9522
9530
|
{
|
|
9523
|
-
...
|
|
9531
|
+
...O,
|
|
9524
9532
|
id: "pkt-header",
|
|
9525
9533
|
"data-testid": "pkt-header",
|
|
9526
9534
|
"aria-label": "Topp",
|
|
@@ -9586,7 +9594,7 @@ const Yd = ({
|
|
|
9586
9594
|
role: "button",
|
|
9587
9595
|
"aria-controls": "pktUserDropdown",
|
|
9588
9596
|
"aria-expanded": pt,
|
|
9589
|
-
onClick:
|
|
9597
|
+
onClick: Et,
|
|
9590
9598
|
children: [
|
|
9591
9599
|
/* @__PURE__ */ h(L, { name: "user", className: "pkt-btn__icon" }),
|
|
9592
9600
|
/* @__PURE__ */ h("span", { className: "pkt-header__user-fullname", translate: "no", children: (l == null ? void 0 : l.name) || (n == null ? void 0 : n.name) }),
|
|
@@ -9605,13 +9613,13 @@ const Yd = ({
|
|
|
9605
9613
|
/* @__PURE__ */ h("time", { children: I })
|
|
9606
9614
|
] })
|
|
9607
9615
|
] }),
|
|
9608
|
-
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: [
|
|
9609
9617
|
R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
|
|
9610
9618
|
R.title
|
|
9611
9619
|
] }) : /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: R.target, children: [
|
|
9612
9620
|
R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
|
|
9613
9621
|
R.title
|
|
9614
|
-
] }) }, `userMenu-${
|
|
9622
|
+
] }) }, `userMenu-${xt}`)) }) }),
|
|
9615
9623
|
(l || m) && /* @__PURE__ */ x("li", { children: [
|
|
9616
9624
|
l && /* @__PURE__ */ x(Wt, { children: [
|
|
9617
9625
|
/* @__PURE__ */ h("div", { className: "pkt-user-menu__label", children: "Representerer" }),
|
|
@@ -9627,19 +9635,19 @@ const Yd = ({
|
|
|
9627
9635
|
] }) }) })
|
|
9628
9636
|
] }),
|
|
9629
9637
|
/* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: (d || !y) && /* @__PURE__ */ x(Wt, { children: [
|
|
9630
|
-
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: [
|
|
9631
9639
|
R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
|
|
9632
9640
|
R.title
|
|
9633
9641
|
] }) : /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: R.target, children: [
|
|
9634
9642
|
R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
|
|
9635
9643
|
R.title
|
|
9636
|
-
] }) }, `userOptions-${
|
|
9644
|
+
] }) }, `userOptions-${xt}`)),
|
|
9637
9645
|
!y && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: k, children: [
|
|
9638
9646
|
/* @__PURE__ */ h(L, { name: "exit", className: "pkt-link__icon" }),
|
|
9639
9647
|
"Logg ut"
|
|
9640
9648
|
] }) })
|
|
9641
9649
|
] }) }) }),
|
|
9642
|
-
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}`)) }) })
|
|
9643
9651
|
] })
|
|
9644
9652
|
]
|
|
9645
9653
|
}
|
|
@@ -9664,7 +9672,7 @@ const Yd = ({
|
|
|
9664
9672
|
}
|
|
9665
9673
|
), Eh = Jt({
|
|
9666
9674
|
tagName: "pkt-heading",
|
|
9667
|
-
elementClass:
|
|
9675
|
+
elementClass: Le,
|
|
9668
9676
|
react: mt,
|
|
9669
9677
|
displayName: "PktHeading"
|
|
9670
9678
|
}), Oh = Z(({ children: i, ...t }, e) => /* @__PURE__ */ h(Eh, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
|
|
@@ -9708,34 +9716,34 @@ const ps = Z(
|
|
|
9708
9716
|
errorMessage: k,
|
|
9709
9717
|
disabled: w = !1,
|
|
9710
9718
|
inline: S = !1,
|
|
9711
|
-
ariaDescribedby:
|
|
9719
|
+
ariaDescribedby: O,
|
|
9712
9720
|
useWrapper: N = !0,
|
|
9713
9721
|
children: I,
|
|
9714
9722
|
className: T = "",
|
|
9715
9723
|
hasFieldset: H = !1,
|
|
9716
9724
|
role: G = "group",
|
|
9717
|
-
counterPosition:
|
|
9725
|
+
counterPosition: _t = "bottom"
|
|
9718
9726
|
}, pt) => {
|
|
9719
|
-
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 = [
|
|
9720
9728
|
"pkt-inputwrapper",
|
|
9721
9729
|
T,
|
|
9722
9730
|
b ? "pkt-inputwrapper--error" : "",
|
|
9723
9731
|
w ? "pkt-inputwrapper--disabled" : "",
|
|
9724
9732
|
S ? "pkt-inputwrapper--inline" : ""
|
|
9725
|
-
].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: [
|
|
9726
9734
|
r,
|
|
9727
9735
|
l ? `/${l}` : ""
|
|
9728
|
-
] }) : null,
|
|
9736
|
+
] }) : null, xe = () => /* @__PURE__ */ x(Wt, { children: [
|
|
9729
9737
|
y && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--gray", children: y }),
|
|
9730
9738
|
d && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--blue-light", children: p }),
|
|
9731
9739
|
m && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--beige", children: f })
|
|
9732
|
-
] }),
|
|
9740
|
+
] }), We = () => {
|
|
9733
9741
|
const ot = /* @__PURE__ */ x(Wt, { children: [
|
|
9734
9742
|
t,
|
|
9735
9743
|
" ",
|
|
9736
|
-
|
|
9744
|
+
xe()
|
|
9737
9745
|
] });
|
|
9738
|
-
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 });
|
|
9739
9747
|
}, le = () => !e && !s ? null : /* @__PURE__ */ x(Wt, { children: [
|
|
9740
9748
|
e && N && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__helptext", id: `${i}-helptext`, children: e }),
|
|
9741
9749
|
s && /* @__PURE__ */ x("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
|
|
@@ -9747,7 +9755,7 @@ const ps = Z(
|
|
|
9747
9755
|
variant: "icon-right",
|
|
9748
9756
|
iconName: J ? "chevron-thin-up" : "chevron-thin-down",
|
|
9749
9757
|
className: "pkt-link pkt-link--icon-right",
|
|
9750
|
-
onClick:
|
|
9758
|
+
onClick: xt,
|
|
9751
9759
|
children: /* @__PURE__ */ h(
|
|
9752
9760
|
"span",
|
|
9753
9761
|
{
|
|
@@ -9767,14 +9775,14 @@ const ps = Z(
|
|
|
9767
9775
|
)
|
|
9768
9776
|
] })
|
|
9769
9777
|
] }), Ut = /* @__PURE__ */ x(Wt, { children: [
|
|
9770
|
-
|
|
9778
|
+
We(),
|
|
9771
9779
|
le(),
|
|
9772
9780
|
at && /* @__PURE__ */ h(te, {}),
|
|
9773
9781
|
I,
|
|
9774
9782
|
R && /* @__PURE__ */ h(te, {}),
|
|
9775
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 }) })
|
|
9776
9784
|
] });
|
|
9777
|
-
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 }) });
|
|
9778
9786
|
}
|
|
9779
9787
|
);
|
|
9780
9788
|
ps.displayName = "PktInputWrapper";
|
|
@@ -9856,7 +9864,7 @@ const Vh = ({
|
|
|
9856
9864
|
onClose: r,
|
|
9857
9865
|
...l
|
|
9858
9866
|
}) => {
|
|
9859
|
-
const [d, p] =
|
|
9867
|
+
const [d, p] = ke(!1), m = {
|
|
9860
9868
|
"pkt-messagebox": !0,
|
|
9861
9869
|
"pkt-messagebox--compact": a,
|
|
9862
9870
|
[`pkt-messagebox--${e}`]: e,
|
|
@@ -9882,7 +9890,7 @@ const Vh = ({
|
|
|
9882
9890
|
Vh.displayName = "PktMessagebox";
|
|
9883
9891
|
const jh = Jt({
|
|
9884
9892
|
tagName: "pkt-modal",
|
|
9885
|
-
elementClass:
|
|
9893
|
+
elementClass: Rt,
|
|
9886
9894
|
react: mt,
|
|
9887
9895
|
displayName: "PktModal",
|
|
9888
9896
|
events: {}
|
|
@@ -9919,7 +9927,7 @@ const qh = Z(
|
|
|
9919
9927
|
tagText: k,
|
|
9920
9928
|
...w
|
|
9921
9929
|
}, S) => {
|
|
9922
|
-
const
|
|
9930
|
+
const O = [s, "pkt-input-check"].filter(Boolean).join(" "), N = [
|
|
9923
9931
|
"pkt-input-check__input",
|
|
9924
9932
|
a ? "pkt-input-check__input--tile" : "",
|
|
9925
9933
|
n && a ? "pkt-input-check__input--tile-disabled" : ""
|
|
@@ -9931,7 +9939,7 @@ const qh = Z(
|
|
|
9931
9939
|
m && /* @__PURE__ */ h("span", { className: H + " pkt-tag--blue-light", children: f }),
|
|
9932
9940
|
y && /* @__PURE__ */ h("span", { className: H + " pkt-tag--beige", children: b })
|
|
9933
9941
|
] });
|
|
9934
|
-
return /* @__PURE__ */ h("div", { className:
|
|
9942
|
+
return /* @__PURE__ */ h("div", { className: O, children: /* @__PURE__ */ x("div", { className: N, children: [
|
|
9935
9943
|
/* @__PURE__ */ h(
|
|
9936
9944
|
"input",
|
|
9937
9945
|
{
|
|
@@ -9975,7 +9983,7 @@ const Xd = Z(
|
|
|
9975
9983
|
}, w) => {
|
|
9976
9984
|
const S = (T, H) => {
|
|
9977
9985
|
T ? T() : b && b(H);
|
|
9978
|
-
},
|
|
9986
|
+
}, O = (T) => {
|
|
9979
9987
|
d = T.target.value;
|
|
9980
9988
|
}, N = `pkt-searchinput pkt-searchinput--${i} ${e ? "pkt-searchinput--fullwidth" : ""}`;
|
|
9981
9989
|
let I;
|
|
@@ -9997,7 +10005,7 @@ const Xd = Z(
|
|
|
9997
10005
|
"aria-autocomplete": "list",
|
|
9998
10006
|
ref: w,
|
|
9999
10007
|
"aria-controls": `${s}-suggestions`,
|
|
10000
|
-
onChange: f ||
|
|
10008
|
+
onChange: f || O,
|
|
10001
10009
|
onKeyUp: y && ((T) => {
|
|
10002
10010
|
T.key === "Enter" && (T.preventDefault(), y(d));
|
|
10003
10011
|
}),
|
|
@@ -10057,7 +10065,7 @@ const Xd = Z(
|
|
|
10057
10065
|
name: k,
|
|
10058
10066
|
optionalTag: w = !1,
|
|
10059
10067
|
optionalText: S,
|
|
10060
|
-
requiredTag:
|
|
10068
|
+
requiredTag: O = !1,
|
|
10061
10069
|
requiredText: N,
|
|
10062
10070
|
tagText: I,
|
|
10063
10071
|
...T
|
|
@@ -10074,7 +10082,7 @@ const Xd = Z(
|
|
|
10074
10082
|
helptextDropdownButton: p,
|
|
10075
10083
|
optionalTag: w,
|
|
10076
10084
|
optionalText: S,
|
|
10077
|
-
requiredTag:
|
|
10085
|
+
requiredTag: O,
|
|
10078
10086
|
requiredText: N,
|
|
10079
10087
|
tagText: I,
|
|
10080
10088
|
hasError: r,
|
|
@@ -10183,20 +10191,21 @@ const Xd = Z(
|
|
|
10183
10191
|
"aria-description": m,
|
|
10184
10192
|
...f
|
|
10185
10193
|
}, y) => {
|
|
10186
|
-
const [b, k] =
|
|
10194
|
+
const [b, k] = ke(!1), w = Ls(() => {
|
|
10187
10195
|
k(!0), d && d();
|
|
10188
|
-
}, [k]), S = Bs(null),
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
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 = {
|
|
10195
10204
|
"pkt-tag": !0,
|
|
10196
10205
|
[`pkt-tag--${s}`]: !!s,
|
|
10197
10206
|
[`pkt-tag--${t}`]: !!t,
|
|
10198
10207
|
[`pkt-tag--${e}`]: !!e
|
|
10199
|
-
},
|
|
10208
|
+
}, H = {
|
|
10200
10209
|
"pkt-tag": !0,
|
|
10201
10210
|
"pkt-btn": !0,
|
|
10202
10211
|
"pkt-btn--tertiary": !0,
|
|
@@ -10210,11 +10219,11 @@ const Xd = Z(
|
|
|
10210
10219
|
"button",
|
|
10211
10220
|
{
|
|
10212
10221
|
...f,
|
|
10213
|
-
className: ht(
|
|
10222
|
+
className: ht(H, n),
|
|
10214
10223
|
type: p,
|
|
10215
10224
|
onClick: w,
|
|
10216
10225
|
"aria-label": l,
|
|
10217
|
-
"aria-description":
|
|
10226
|
+
"aria-description": I,
|
|
10218
10227
|
ref: y,
|
|
10219
10228
|
children: [
|
|
10220
10229
|
r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r }),
|
|
@@ -10222,8 +10231,8 @@ const Xd = Z(
|
|
|
10222
10231
|
/* @__PURE__ */ h(L, { className: "pkt-tag__close-btn", name: "close" })
|
|
10223
10232
|
]
|
|
10224
10233
|
}
|
|
10225
|
-
) : /* @__PURE__ */ x("span", { ...f, className: ht(
|
|
10226
|
-
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" }),
|
|
10227
10236
|
/* @__PURE__ */ h("span", { ref: S, children: i })
|
|
10228
10237
|
] });
|
|
10229
10238
|
}
|
|
@@ -10235,13 +10244,13 @@ const dn = Z(
|
|
|
10235
10244
|
"aria-selected": m ? !!t : void 0,
|
|
10236
10245
|
"aria-controls": n,
|
|
10237
10246
|
role: m ? "tab" : void 0,
|
|
10238
|
-
onKeyUp: (
|
|
10239
|
-
onClick: (
|
|
10240
|
-
b(d), s == null || s(
|
|
10247
|
+
onKeyUp: (O) => y(d, O),
|
|
10248
|
+
onClick: (O) => {
|
|
10249
|
+
b(d), s == null || s(O);
|
|
10241
10250
|
},
|
|
10242
10251
|
tabIndex: t || !m ? void 0 : -1,
|
|
10243
|
-
ref: (
|
|
10244
|
-
f(d,
|
|
10252
|
+
ref: (O) => {
|
|
10253
|
+
f(d, O), typeof p == "function" ? p(O) : p && (p.current = O);
|
|
10245
10254
|
}
|
|
10246
10255
|
}, S = /* @__PURE__ */ x(Wt, { children: [
|
|
10247
10256
|
a && /* @__PURE__ */ h(L, { name: a, className: "pkt-icon--small" }),
|
|
@@ -10260,19 +10269,19 @@ const cn = Oa(null), Gh = () => {
|
|
|
10260
10269
|
}, lc = Z(
|
|
10261
10270
|
({ arrowNav: i = !0, disableArrowNav: t = !1, tabs: e, onTabSelected: s, children: a }, n) => {
|
|
10262
10271
|
const r = Bs([]), l = i && !t, p = a && Os.count(a) > 0 ? Os.count(a) : (e == null ? void 0 : e.length) || 0;
|
|
10263
|
-
|
|
10272
|
+
De(() => {
|
|
10264
10273
|
r.current = r.current.slice(0, p);
|
|
10265
10274
|
}, [p]);
|
|
10266
10275
|
const m = (k) => {
|
|
10267
10276
|
const w = e == null ? void 0 : e[k];
|
|
10268
10277
|
w != null && w.action && w.action(k), s && s(k);
|
|
10269
10278
|
}, f = (k, w) => {
|
|
10270
|
-
var S,
|
|
10271
|
-
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));
|
|
10272
10281
|
}, y = (k, w) => {
|
|
10273
10282
|
r.current[k] = w;
|
|
10274
10283
|
}, b = e == null ? void 0 : e.map((k, w) => {
|
|
10275
|
-
var S,
|
|
10284
|
+
var S, O;
|
|
10276
10285
|
return /* @__PURE__ */ h(
|
|
10277
10286
|
dn,
|
|
10278
10287
|
{
|
|
@@ -10282,7 +10291,7 @@ const cn = Oa(null), Gh = () => {
|
|
|
10282
10291
|
icon: k.icon,
|
|
10283
10292
|
controls: k.controls,
|
|
10284
10293
|
tag: (S = k.tag) == null ? void 0 : S.text,
|
|
10285
|
-
tagSkin: (
|
|
10294
|
+
tagSkin: (O = k.tag) == null ? void 0 : O.skin,
|
|
10286
10295
|
index: w,
|
|
10287
10296
|
children: k.text
|
|
10288
10297
|
},
|
|
@@ -10310,28 +10319,28 @@ const cn = Oa(null), Gh = () => {
|
|
|
10310
10319
|
label: k,
|
|
10311
10320
|
name: w,
|
|
10312
10321
|
optionalTag: S = !1,
|
|
10313
|
-
optionalText:
|
|
10322
|
+
optionalText: O,
|
|
10314
10323
|
requiredTag: N = !1,
|
|
10315
10324
|
requiredText: I,
|
|
10316
10325
|
tagText: T = null,
|
|
10317
10326
|
placeholder: H,
|
|
10318
10327
|
rows: G,
|
|
10319
|
-
useWrapper:
|
|
10328
|
+
useWrapper: _t = !0,
|
|
10320
10329
|
onChange: pt,
|
|
10321
10330
|
value: J,
|
|
10322
10331
|
autoComplete: st = "off",
|
|
10323
|
-
minLength:
|
|
10324
|
-
maxLength:
|
|
10332
|
+
minLength: Et,
|
|
10333
|
+
maxLength: Ot,
|
|
10325
10334
|
readOnly: at = !1,
|
|
10326
10335
|
skipForwardTestid: R = !1,
|
|
10327
|
-
...
|
|
10336
|
+
...xt
|
|
10328
10337
|
}, Qt) => {
|
|
10329
|
-
const oe = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`,
|
|
10330
|
-
var
|
|
10331
|
-
if (s && Ut(((he = (
|
|
10332
|
-
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);
|
|
10333
10342
|
};
|
|
10334
|
-
return
|
|
10343
|
+
return De(() => {
|
|
10335
10344
|
J !== void 0 && Ut((J == null ? void 0 : J.length) || 0);
|
|
10336
10345
|
}, [J]), /* @__PURE__ */ h(
|
|
10337
10346
|
ps,
|
|
@@ -10348,11 +10357,11 @@ const cn = Oa(null), Gh = () => {
|
|
|
10348
10357
|
inline: y,
|
|
10349
10358
|
label: k,
|
|
10350
10359
|
optionalTag: S,
|
|
10351
|
-
optionalText:
|
|
10360
|
+
optionalText: O,
|
|
10352
10361
|
requiredTag: N,
|
|
10353
10362
|
requiredText: I,
|
|
10354
10363
|
tagText: T,
|
|
10355
|
-
useWrapper:
|
|
10364
|
+
useWrapper: _t,
|
|
10356
10365
|
counter: s,
|
|
10357
10366
|
counterCurrent: le,
|
|
10358
10367
|
counterMaxLength: a,
|
|
@@ -10366,15 +10375,15 @@ const cn = Oa(null), Gh = () => {
|
|
|
10366
10375
|
placeholder: H,
|
|
10367
10376
|
disabled: r,
|
|
10368
10377
|
rows: G,
|
|
10369
|
-
"aria-labelledby":
|
|
10378
|
+
"aria-labelledby": We,
|
|
10370
10379
|
"aria-invalid": d,
|
|
10371
10380
|
"aria-errormessage": `${i}-error`,
|
|
10372
|
-
...
|
|
10381
|
+
...xt,
|
|
10373
10382
|
onChange: ot,
|
|
10374
10383
|
value: J,
|
|
10375
10384
|
autoComplete: st,
|
|
10376
|
-
minLength:
|
|
10377
|
-
maxLength:
|
|
10385
|
+
minLength: Et,
|
|
10386
|
+
maxLength: Ot,
|
|
10378
10387
|
"data-skip-forward-testid": R ? "true" : void 0
|
|
10379
10388
|
}
|
|
10380
10389
|
)
|
|
@@ -10400,38 +10409,38 @@ const cn = Oa(null), Gh = () => {
|
|
|
10400
10409
|
inline: k = !1,
|
|
10401
10410
|
fullwidth: w = !1,
|
|
10402
10411
|
label: S,
|
|
10403
|
-
name:
|
|
10412
|
+
name: O,
|
|
10404
10413
|
optionalTag: N = !1,
|
|
10405
10414
|
optionalText: I,
|
|
10406
10415
|
requiredTag: T = !1,
|
|
10407
10416
|
requiredText: H,
|
|
10408
10417
|
tagText: G = null,
|
|
10409
|
-
placeholder:
|
|
10418
|
+
placeholder: _t,
|
|
10410
10419
|
prefix: pt,
|
|
10411
10420
|
suffix: J,
|
|
10412
10421
|
type: st = "text",
|
|
10413
|
-
useWrapper:
|
|
10414
|
-
omitSearchIcon:
|
|
10422
|
+
useWrapper: Et = !0,
|
|
10423
|
+
omitSearchIcon: Ot = !1,
|
|
10415
10424
|
value: at,
|
|
10416
10425
|
minLength: R,
|
|
10417
|
-
maxLength:
|
|
10426
|
+
maxLength: xt,
|
|
10418
10427
|
min: Qt,
|
|
10419
10428
|
max: oe,
|
|
10420
10429
|
step: te,
|
|
10421
|
-
size:
|
|
10422
|
-
readonly:
|
|
10430
|
+
size: xe,
|
|
10431
|
+
readonly: We,
|
|
10423
10432
|
required: le,
|
|
10424
10433
|
dataTestid: Ut,
|
|
10425
10434
|
onChange: ot,
|
|
10426
|
-
skipForwardTestid:
|
|
10427
|
-
...
|
|
10435
|
+
skipForwardTestid: Se = !1,
|
|
10436
|
+
...Ce
|
|
10428
10437
|
}, he) => {
|
|
10429
|
-
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) => {
|
|
10430
10439
|
var zi, Wi;
|
|
10431
|
-
a &&
|
|
10440
|
+
a && Ke(((Wi = (zi = me.currentTarget) == null ? void 0 : zi.value) == null ? void 0 : Wi.length) || 0), ot && ot(me);
|
|
10432
10441
|
};
|
|
10433
|
-
return
|
|
10434
|
-
at !== void 0 &&
|
|
10442
|
+
return De(() => {
|
|
10443
|
+
at !== void 0 && Ke((at == null ? void 0 : at.length) || 0);
|
|
10435
10444
|
}, [at]), /* @__PURE__ */ h(
|
|
10436
10445
|
ps,
|
|
10437
10446
|
{
|
|
@@ -10439,7 +10448,7 @@ const cn = Oa(null), Gh = () => {
|
|
|
10439
10448
|
className: us,
|
|
10440
10449
|
disabled: l,
|
|
10441
10450
|
errorMessage: d,
|
|
10442
|
-
forId:
|
|
10451
|
+
forId: Ge,
|
|
10443
10452
|
hasError: p,
|
|
10444
10453
|
helptext: m,
|
|
10445
10454
|
helptextDropdown: f,
|
|
@@ -10451,7 +10460,7 @@ const cn = Oa(null), Gh = () => {
|
|
|
10451
10460
|
requiredTag: T,
|
|
10452
10461
|
requiredText: H,
|
|
10453
10462
|
tagText: G,
|
|
10454
|
-
useWrapper:
|
|
10463
|
+
useWrapper: Et,
|
|
10455
10464
|
counter: a,
|
|
10456
10465
|
counterCurrent: Hi,
|
|
10457
10466
|
counterMaxLength: n,
|
|
@@ -10460,20 +10469,20 @@ const cn = Oa(null), Gh = () => {
|
|
|
10460
10469
|
{
|
|
10461
10470
|
className: "pkt-input__container",
|
|
10462
10471
|
"data-testid": Ut,
|
|
10463
|
-
"data-skip-forward-testid":
|
|
10472
|
+
"data-skip-forward-testid": Se ? "true" : void 0,
|
|
10464
10473
|
children: [
|
|
10465
10474
|
pt && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: pt }),
|
|
10466
10475
|
/* @__PURE__ */ h(
|
|
10467
10476
|
"input",
|
|
10468
10477
|
{
|
|
10469
|
-
...
|
|
10478
|
+
...Ce,
|
|
10470
10479
|
ref: he,
|
|
10471
10480
|
className: `pkt-input ${w ? "pkt-input--fullwidth" : ""} ${n && Hi > n ? "pkt-input--counter-error" : ""}`,
|
|
10472
10481
|
type: st,
|
|
10473
|
-
name: `${
|
|
10482
|
+
name: `${O || i}`,
|
|
10474
10483
|
value: ms,
|
|
10475
|
-
id:
|
|
10476
|
-
placeholder:
|
|
10484
|
+
id: Ge,
|
|
10485
|
+
placeholder: _t,
|
|
10477
10486
|
autoComplete: s,
|
|
10478
10487
|
disabled: l,
|
|
10479
10488
|
"aria-invalid": p,
|
|
@@ -10484,8 +10493,8 @@ const cn = Oa(null), Gh = () => {
|
|
|
10484
10493
|
onChange: fs,
|
|
10485
10494
|
step: te,
|
|
10486
10495
|
minLength: R,
|
|
10487
|
-
maxLength:
|
|
10488
|
-
size:
|
|
10496
|
+
maxLength: xt,
|
|
10497
|
+
size: xe,
|
|
10489
10498
|
required: le
|
|
10490
10499
|
}
|
|
10491
10500
|
),
|