@oslokommune/punkt-react 13.18.1 → 13.18.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/index.d.ts +1 -0
- package/dist/punkt-react.es.js +362 -354
- package/dist/punkt-react.umd.js +84 -84
- package/package.json +3 -3
- package/src/components/combobox/Combobox.tsx +1 -0
package/dist/punkt-react.es.js
CHANGED
|
@@ -34,9 +34,9 @@
|
|
|
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
|
|
37
|
+
import mt, { createContext as Oa, forwardRef as Z, useContext as Ma, useState as je, useEffect as Qe, 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
|
-
const
|
|
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) => {
|
|
41
41
|
const l = [
|
|
42
42
|
"pkt-accordion",
|
|
@@ -44,7 +44,7 @@ const Ma = Oa({}), kn = () => Pa(Ma), yn = Z(
|
|
|
44
44
|
t && `pkt-accordion--${t}`,
|
|
45
45
|
n
|
|
46
46
|
].filter(Boolean).join(" ");
|
|
47
|
-
return /* @__PURE__ */ h(
|
|
47
|
+
return /* @__PURE__ */ h(Pa.Provider, { value: { name: a }, children: /* @__PURE__ */ h(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
50
|
ref: 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}>`,
|
|
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}>`, Pe = document, Ai = () => Pe.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
98
|
\f\r]`, fi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xs = /-->/g, Qs = />/g, Ce = 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), xt = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ia = /* @__PURE__ */ new WeakMap(), Ee =
|
|
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), xt = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ia = /* @__PURE__ */ new WeakMap(), Ee = Pe.createTreeWalker(Pe, 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;
|
|
@@ -113,7 +113,7 @@ const Sn = (i, t) => {
|
|
|
113
113
|
}
|
|
114
114
|
return [La(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
115
115
|
};
|
|
116
|
-
let
|
|
116
|
+
let Ms = class Ba {
|
|
117
117
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
118
118
|
let a;
|
|
119
119
|
this.parts = [];
|
|
@@ -146,7 +146,7 @@ let Ps = class Ba {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
static createElement(t, e) {
|
|
149
|
-
const s =
|
|
149
|
+
const s = Pe.createElement("template");
|
|
150
150
|
return s.innerHTML = t, s;
|
|
151
151
|
}
|
|
152
152
|
};
|
|
@@ -168,7 +168,7 @@ 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) ??
|
|
171
|
+
const { el: { content: e }, parts: s } = this._$AD, a = ((t == null ? void 0 : t.creationScope) ?? Pe).importNode(e, !0);
|
|
172
172
|
Ee.currentNode = a;
|
|
173
173
|
let n = Ee.nextNode(), r = 0, l = 0, d = s[0];
|
|
174
174
|
for (; d !== void 0; ) {
|
|
@@ -178,7 +178,7 @@ let Cn = class {
|
|
|
178
178
|
}
|
|
179
179
|
r !== (d == null ? void 0 : d.index) && (n = Ee.nextNode(), r++);
|
|
180
180
|
}
|
|
181
|
-
return Ee.currentNode =
|
|
181
|
+
return Ee.currentNode = Pe, a;
|
|
182
182
|
}
|
|
183
183
|
p(t) {
|
|
184
184
|
let e = 0;
|
|
@@ -213,11 +213,11 @@ 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(Pe.createTextNode(t)), this._$AH = t;
|
|
217
217
|
}
|
|
218
218
|
$(t) {
|
|
219
219
|
var e;
|
|
220
|
-
const { values: s, _$litType$: a } = t, n = typeof a == "number" ? this._$AC(t) : (a.el === void 0 && (a.el =
|
|
220
|
+
const { values: s, _$litType$: a } = t, n = typeof a == "number" ? this._$AC(t) : (a.el === void 0 && (a.el = Ms.createElement(La(a.h, a.h[0]), this.options)), a);
|
|
221
221
|
if (((e = this._$AH) == null ? void 0 : e._$AD) === n) this._$AH.p(s);
|
|
222
222
|
else {
|
|
223
223
|
const r = new Cn(n, this), l = r.u(this.options);
|
|
@@ -226,7 +226,7 @@ let Cn = class {
|
|
|
226
226
|
}
|
|
227
227
|
_$AC(t) {
|
|
228
228
|
let e = ia.get(t.strings);
|
|
229
|
-
return e === void 0 && ia.set(t.strings, e = new
|
|
229
|
+
return e === void 0 && ia.set(t.strings, e = new Ms(t)), e;
|
|
230
230
|
}
|
|
231
231
|
k(t) {
|
|
232
232
|
Vs(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -309,8 +309,8 @@ let Cn = class {
|
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
311
|
const On = { I: rs }, sa = Qi.litHtmlPolyfillSupport;
|
|
312
|
-
sa == null || sa(
|
|
313
|
-
const
|
|
312
|
+
sa == null || sa(Ms, rs), (Qi.litHtmlVersions ?? (Qi.litHtmlVersions = [])).push("3.3.1");
|
|
313
|
+
const Mn = (i, t, e) => {
|
|
314
314
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
315
315
|
let a = s._$litPart$;
|
|
316
316
|
if (a === void 0) {
|
|
@@ -335,7 +335,7 @@ const j = (i) => (t, e) => {
|
|
|
335
335
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
336
336
|
*/
|
|
337
337
|
const Zi = globalThis, js = Zi.ShadowRoot && (Zi.ShadyCSS === void 0 || Zi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ja = Symbol(), aa = /* @__PURE__ */ new WeakMap();
|
|
338
|
-
let
|
|
338
|
+
let Pn = class {
|
|
339
339
|
constructor(t, e, s) {
|
|
340
340
|
if (this._$cssResult$ = !0, s !== ja) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
341
341
|
this.cssText = t, this.t = e;
|
|
@@ -353,7 +353,7 @@ let Mn = class {
|
|
|
353
353
|
return this.cssText;
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
|
-
const Dn = (i) => new
|
|
356
|
+
const Dn = (i) => new Pn(typeof i == "string" ? i : i + "", void 0, ja), In = (i, t) => {
|
|
357
357
|
if (js) i.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
|
|
358
358
|
else for (const e of t) {
|
|
359
359
|
const s = document.createElement("style"), a = Zi.litNonce;
|
|
@@ -652,7 +652,7 @@ let Ze = class extends Ye {
|
|
|
652
652
|
}
|
|
653
653
|
update(t) {
|
|
654
654
|
const e = this.render();
|
|
655
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
655
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Mn(e, this.renderRoot, this.renderOptions);
|
|
656
656
|
}
|
|
657
657
|
connectedCallback() {
|
|
658
658
|
var t;
|
|
@@ -1010,10 +1010,10 @@ const Ji = Fe(ss);
|
|
|
1010
1010
|
* Copyright 2017 Google LLC
|
|
1011
1011
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1012
1012
|
*/
|
|
1013
|
-
let
|
|
1013
|
+
let Ps = class extends ss {
|
|
1014
1014
|
};
|
|
1015
|
-
|
|
1016
|
-
const pa = Fe(
|
|
1015
|
+
Ps.directiveName = "unsafeSVG", Ps.resultType = 2;
|
|
1016
|
+
const pa = Fe(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);
|
|
@@ -1476,13 +1476,13 @@ let _r = {};
|
|
|
1476
1476
|
function ds() {
|
|
1477
1477
|
return _r;
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function Mi(i, t) {
|
|
1480
1480
|
var e, s, a, n;
|
|
1481
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 = Rt(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
|
-
return
|
|
1485
|
+
return Mi(i, { ...t, weekStartsOn: 1 });
|
|
1486
1486
|
}
|
|
1487
1487
|
function Ga(i, t) {
|
|
1488
1488
|
const e = Rt(i, void 0), s = e.getFullYear(), a = ee(e, 0);
|
|
@@ -1632,12 +1632,12 @@ const Or = {
|
|
|
1632
1632
|
long: "MMMM do, y",
|
|
1633
1633
|
medium: "MMM d, y",
|
|
1634
1634
|
short: "MM/dd/yyyy"
|
|
1635
|
-
},
|
|
1635
|
+
}, Mr = {
|
|
1636
1636
|
full: "h:mm:ss a zzzz",
|
|
1637
1637
|
long: "h:mm:ss a z",
|
|
1638
1638
|
medium: "h:mm:ss a",
|
|
1639
1639
|
short: "h:mm a"
|
|
1640
|
-
},
|
|
1640
|
+
}, Pr = {
|
|
1641
1641
|
full: "{{date}} 'at' {{time}}",
|
|
1642
1642
|
long: "{{date}} 'at' {{time}}",
|
|
1643
1643
|
medium: "{{date}}, {{time}}",
|
|
@@ -1648,11 +1648,11 @@ const Or = {
|
|
|
1648
1648
|
defaultWidth: "full"
|
|
1649
1649
|
}),
|
|
1650
1650
|
time: Ss({
|
|
1651
|
-
formats:
|
|
1651
|
+
formats: Mr,
|
|
1652
1652
|
defaultWidth: "full"
|
|
1653
1653
|
}),
|
|
1654
1654
|
dateTime: Ss({
|
|
1655
|
-
formats:
|
|
1655
|
+
formats: Pr,
|
|
1656
1656
|
defaultWidth: "full"
|
|
1657
1657
|
})
|
|
1658
1658
|
}, Ir = {
|
|
@@ -1997,18 +1997,18 @@ function Za(i, t) {
|
|
|
1997
1997
|
var e, s, a, n;
|
|
1998
1998
|
const r = Rt(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
|
-
const f =
|
|
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);
|
|
2002
|
-
const b =
|
|
2002
|
+
const b = Mi(y, t);
|
|
2003
2003
|
return +r >= +f ? l + 1 : +r >= +b ? l : l - 1;
|
|
2004
2004
|
}
|
|
2005
2005
|
function co(i, t) {
|
|
2006
2006
|
var e, s, a, n;
|
|
2007
2007
|
const r = ds(), l = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((n = (a = r.locale) == null ? void 0 : a.options) == null ? void 0 : n.firstWeekContainsDate) ?? 1, d = Za(i, t), p = ee((t == null ? void 0 : t.in) || i, 0);
|
|
2008
|
-
return p.setFullYear(d, 0, l), p.setHours(0, 0, 0, 0),
|
|
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 = Rt(i, t == null ? void 0 : t.in), s = +
|
|
2011
|
+
const e = Rt(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) {
|
|
@@ -2842,7 +2842,7 @@ function Qa(i) {
|
|
|
2842
2842
|
const y = Oe(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 M = Oe(i.timeZone, i), N = M > 0 ? Math.floor(M) : Math.ceil(M), 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
|
}
|
|
@@ -2903,7 +2903,7 @@ let Rs = class Si extends wi {
|
|
|
2903
2903
|
//#endregion
|
|
2904
2904
|
};
|
|
2905
2905
|
window.pktTz = window.pktTz === void 0 ? "Europe/Oslo" : window.pktTz;
|
|
2906
|
-
const
|
|
2906
|
+
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
|
};
|
|
@@ -2942,7 +2942,7 @@ const nt = (i) => {
|
|
|
2942
2942
|
}, yi = (i) => {
|
|
2943
2943
|
let t;
|
|
2944
2944
|
return typeof i == "number" ? t = new Rs(i, window.pktTz) : t = new Rs(i, window.pktTz), t.setHours(12, 0, 0, 0), t;
|
|
2945
|
-
},
|
|
2945
|
+
}, Po = (i) => !i || isNaN(i.getTime()) ? "" : new Intl.DateTimeFormat("no", { dateStyle: "full", timeZone: window.pktTz }).format(i), Do = (i, t, e) => {
|
|
2946
2946
|
if (!i || isNaN(i.getTime())) return !1;
|
|
2947
2947
|
const s = t ? de(t) : null, a = e ? de(e) : null;
|
|
2948
2948
|
return !(s && i < s || a && i > a);
|
|
@@ -3181,7 +3181,7 @@ let z = class extends K {
|
|
|
3181
3181
|
}
|
|
3182
3182
|
renderDayView(t, e) {
|
|
3183
3183
|
var s;
|
|
3184
|
-
const a = ge(this.year, this.month, t), n = nt(a), r = n === nt(e), l = this.selected.includes(n), d =
|
|
3184
|
+
const a = ge(this.year, this.month, t), n = nt(a), r = n === nt(e), l = this.selected.includes(n), d = Po(a), p = this.isExcluded(a) || !l && this.multiple && this.maxMultiple > 0 && this.selected.length >= this.maxMultiple, m = this.focusedDate ? this.focusedDate === n && !p ? "0" : "-1" : !p && this.tabIndexSet === 0 || this.tabIndexSet === t ? "0" : "-1";
|
|
3185
3185
|
m === "0" && (this.tabIndexSet = t), this.selectableDates.push({ currentDateISO: n, isDisabled: p, tabindex: m });
|
|
3186
3186
|
const f = {
|
|
3187
3187
|
"pkt-cal-today": r,
|
|
@@ -3229,7 +3229,7 @@ let z = class extends K {
|
|
|
3229
3229
|
</td>`;
|
|
3230
3230
|
}
|
|
3231
3231
|
renderCalendarBody() {
|
|
3232
|
-
const t =
|
|
3232
|
+
const t = Mo(), e = ge(this.year, this.month, 1), s = ge(this.year, this.month + 1, 0), a = (e.getDay() + 6) % 7, n = s.getDate(), r = Math.ceil((n + a) / 7), l = ge(this.year, this.month, 0).getDate();
|
|
3233
3233
|
let d = 1;
|
|
3234
3234
|
this.week = Ja(ge(this.year, this.month, 1));
|
|
3235
3235
|
const p = [];
|
|
@@ -3901,8 +3901,8 @@ const xa = (i, t, e) => {
|
|
|
3901
3901
|
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
3902
|
const w = m.get(r[b]), S = w !== void 0 ? a[w] : null;
|
|
3903
3903
|
if (S === null) {
|
|
3904
|
-
const
|
|
3905
|
-
Te(
|
|
3904
|
+
const M = vi(i, a[f]);
|
|
3905
|
+
Te(M, n[b]), d[b] = M;
|
|
3906
3906
|
} else d[b] = Te(S, n[b]), vi(i, a[f], S), a[w] = null;
|
|
3907
3907
|
b++;
|
|
3908
3908
|
} else ys(a[y]), y--;
|
|
@@ -3920,7 +3920,7 @@ const xa = (i, t, e) => {
|
|
|
3920
3920
|
}), Sa = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).toString(16)).slice(-16), Qo = (i) => new Promise((t) => setTimeout(t, i)), be = () => {
|
|
3921
3921
|
const i = Sa(), t = Sa();
|
|
3922
3922
|
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 } },
|
|
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 } }, Pt = {
|
|
3924
3924
|
props: tl
|
|
3925
3925
|
};
|
|
3926
3926
|
var el = {}, Ca;
|
|
@@ -3970,7 +3970,7 @@ function il() {
|
|
|
3970
3970
|
ariaValueNow: "aria-valuenow",
|
|
3971
3971
|
ariaValueText: "aria-valuetext",
|
|
3972
3972
|
role: "role"
|
|
3973
|
-
},
|
|
3973
|
+
}, M = (g, c) => {
|
|
3974
3974
|
for (let v in S) {
|
|
3975
3975
|
c[v] = null;
|
|
3976
3976
|
let _ = null;
|
|
@@ -4015,8 +4015,8 @@ function il() {
|
|
|
4015
4015
|
var Ot;
|
|
4016
4016
|
if (a.has(U) && U.constructor.formAssociated && N(U), m.has(U)) {
|
|
4017
4017
|
const ut = m.get(U);
|
|
4018
|
-
Object.keys(S).filter((
|
|
4019
|
-
st(U, S[
|
|
4018
|
+
Object.keys(S).filter((Mt) => ut[Mt] !== null).forEach((Mt) => {
|
|
4019
|
+
st(U, S[Mt], ut[Mt]);
|
|
4020
4020
|
}), m.delete(U);
|
|
4021
4021
|
}
|
|
4022
4022
|
if (w.has(U)) {
|
|
@@ -4024,14 +4024,14 @@ function il() {
|
|
|
4024
4024
|
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
4025
|
}
|
|
4026
4026
|
if (U.localName === "form") {
|
|
4027
|
-
const ut = d.get(U),
|
|
4027
|
+
const ut = d.get(U), Mt = document.createTreeWalker(U, NodeFilter.SHOW_ELEMENT, {
|
|
4028
4028
|
acceptNode(vs) {
|
|
4029
4029
|
return a.has(vs) && vs.constructor.formAssociated && !(ut && ut.has(vs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
4030
4030
|
}
|
|
4031
4031
|
});
|
|
4032
|
-
let mi =
|
|
4032
|
+
let mi = Mt.nextNode();
|
|
4033
4033
|
for (; mi; )
|
|
4034
|
-
N(mi), mi =
|
|
4034
|
+
N(mi), mi = Mt.nextNode();
|
|
4035
4035
|
}
|
|
4036
4036
|
U.localName === "fieldset" && ((Ot = H.observe) === null || Ot === void 0 || Ot.call(H, U, T), I(U, !0));
|
|
4037
4037
|
}), V.forEach((U) => {
|
|
@@ -4226,7 +4226,7 @@ function il() {
|
|
|
4226
4226
|
const U = D.call(this, ...V), Ot = Array.from(d.get(this) || []);
|
|
4227
4227
|
if (Ot.length === 0)
|
|
4228
4228
|
return U;
|
|
4229
|
-
const ut = Array.from(U).concat(Ot).sort((
|
|
4229
|
+
const ut = Array.from(U).concat(Ot).sort((Mt, mi) => Mt.compareDocumentPosition ? Mt.compareDocumentPosition(mi) & 2 ? 1 : -1 : 0);
|
|
4230
4230
|
return new zi(ut);
|
|
4231
4231
|
}
|
|
4232
4232
|
});
|
|
@@ -4239,7 +4239,7 @@ function il() {
|
|
|
4239
4239
|
if (!c || !c.tagName || c.tagName.indexOf("-") === -1)
|
|
4240
4240
|
throw new TypeError("Illegal constructor");
|
|
4241
4241
|
const v = c.getRootNode(), _ = new us();
|
|
4242
|
-
this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this),
|
|
4242
|
+
this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this), M(c, this), R(c, this), Object.seal(this), v instanceof DocumentFragment && pt(v);
|
|
4243
4243
|
}
|
|
4244
4244
|
checkValidity() {
|
|
4245
4245
|
const c = t.get(this);
|
|
@@ -4298,8 +4298,8 @@ function il() {
|
|
|
4298
4298
|
throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");
|
|
4299
4299
|
y.set(this, _);
|
|
4300
4300
|
const V = e.get(this), U = {};
|
|
4301
|
-
for (const
|
|
4302
|
-
U[
|
|
4301
|
+
for (const Mt in c)
|
|
4302
|
+
U[Mt] = c[Mt];
|
|
4303
4303
|
Object.keys(U).length === 0 && Ui(V);
|
|
4304
4304
|
const Ot = Object.assign(Object.assign({}, V), U);
|
|
4305
4305
|
delete Ot.valid;
|
|
@@ -4403,9 +4403,17 @@ var sl = Object.defineProperty, F = (i, t, e, s) => {
|
|
|
4403
4403
|
(r = i[n]) && (a = r(t, e, a) || a);
|
|
4404
4404
|
return a && sl(t, e, a), a;
|
|
4405
4405
|
};
|
|
4406
|
-
|
|
4406
|
+
const al = {
|
|
4407
|
+
fromAttribute(i) {
|
|
4408
|
+
return i == null ? !1 : i === "" || i === "true" || i === !0 ? !0 : i === "false" || i === !1 ? !1 : !!i;
|
|
4409
|
+
},
|
|
4410
|
+
toAttribute(i) {
|
|
4411
|
+
return i ? "true" : "false";
|
|
4412
|
+
}
|
|
4413
|
+
};
|
|
4414
|
+
let P = class extends K {
|
|
4407
4415
|
constructor() {
|
|
4408
|
-
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 =
|
|
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 = Pt.props.helptextDropdownButton.default, this.label = null, this.optionalText = _t.forms.labels.optional, this.requiredText = _t.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
|
|
4409
4417
|
}
|
|
4410
4418
|
static get formAssociated() {
|
|
4411
4419
|
return !0;
|
|
@@ -4520,109 +4528,109 @@ let M = class extends K {
|
|
|
4520
4528
|
};
|
|
4521
4529
|
F([
|
|
4522
4530
|
o()
|
|
4523
|
-
],
|
|
4531
|
+
], P.prototype, "defaultValue");
|
|
4524
4532
|
F([
|
|
4525
4533
|
o({ type: Boolean, reflect: !0 })
|
|
4526
|
-
],
|
|
4534
|
+
], P.prototype, "disabled");
|
|
4527
4535
|
F([
|
|
4528
4536
|
o({ type: Boolean, reflect: !0 })
|
|
4529
|
-
],
|
|
4537
|
+
], P.prototype, "readonly");
|
|
4530
4538
|
F([
|
|
4531
4539
|
o({ type: Boolean, reflect: !0 })
|
|
4532
|
-
],
|
|
4540
|
+
], P.prototype, "required");
|
|
4533
4541
|
F([
|
|
4534
4542
|
o({ type: Number, reflect: !0 })
|
|
4535
|
-
],
|
|
4543
|
+
], P.prototype, "max");
|
|
4536
4544
|
F([
|
|
4537
4545
|
o({ type: Number, reflect: !0 })
|
|
4538
|
-
],
|
|
4546
|
+
], P.prototype, "maxlength");
|
|
4539
4547
|
F([
|
|
4540
4548
|
o({ type: Number, reflect: !0 })
|
|
4541
|
-
],
|
|
4549
|
+
], P.prototype, "min");
|
|
4542
4550
|
F([
|
|
4543
4551
|
o({ type: Number, reflect: !0 })
|
|
4544
|
-
],
|
|
4552
|
+
], P.prototype, "minlength");
|
|
4545
4553
|
F([
|
|
4546
4554
|
o({ type: Number, reflect: !0 })
|
|
4547
|
-
],
|
|
4555
|
+
], P.prototype, "step");
|
|
4548
4556
|
F([
|
|
4549
4557
|
o({ type: String })
|
|
4550
|
-
],
|
|
4558
|
+
], P.prototype, "ariaDescribedBy");
|
|
4551
4559
|
F([
|
|
4552
4560
|
o({ type: String })
|
|
4553
|
-
],
|
|
4561
|
+
], P.prototype, "ariaLabelledby");
|
|
4554
4562
|
F([
|
|
4555
4563
|
o({ type: String, reflect: !0 })
|
|
4556
|
-
],
|
|
4564
|
+
], P.prototype, "name");
|
|
4557
4565
|
F([
|
|
4558
4566
|
o({ type: String, reflect: !0 })
|
|
4559
|
-
],
|
|
4567
|
+
], P.prototype, "pattern");
|
|
4560
4568
|
F([
|
|
4561
4569
|
o({ type: String, reflect: !0 })
|
|
4562
|
-
],
|
|
4570
|
+
], P.prototype, "placeholder");
|
|
4563
4571
|
F([
|
|
4564
4572
|
o({ type: String, reflect: !0 })
|
|
4565
|
-
],
|
|
4573
|
+
], P.prototype, "id");
|
|
4566
4574
|
F([
|
|
4567
4575
|
o({ type: Boolean })
|
|
4568
|
-
],
|
|
4576
|
+
], P.prototype, "counter");
|
|
4569
4577
|
F([
|
|
4570
4578
|
o({ type: Boolean })
|
|
4571
|
-
],
|
|
4579
|
+
], P.prototype, "hasError");
|
|
4572
4580
|
F([
|
|
4573
4581
|
o({ type: Boolean })
|
|
4574
|
-
],
|
|
4582
|
+
], P.prototype, "inline");
|
|
4575
4583
|
F([
|
|
4576
4584
|
o({ type: Boolean })
|
|
4577
|
-
],
|
|
4585
|
+
], P.prototype, "hasFieldset");
|
|
4578
4586
|
F([
|
|
4579
4587
|
o({ type: Boolean })
|
|
4580
|
-
],
|
|
4588
|
+
], P.prototype, "optionalTag");
|
|
4581
4589
|
F([
|
|
4582
4590
|
o({ type: Boolean })
|
|
4583
|
-
],
|
|
4591
|
+
], P.prototype, "requiredTag");
|
|
4584
4592
|
F([
|
|
4585
4593
|
o({ type: Boolean })
|
|
4586
|
-
],
|
|
4594
|
+
], P.prototype, "skipForwardTestid");
|
|
4587
4595
|
F([
|
|
4588
|
-
o({ type: Boolean, reflect: !
|
|
4589
|
-
],
|
|
4596
|
+
o({ type: Boolean, reflect: !0, converter: al })
|
|
4597
|
+
], P.prototype, "useWrapper");
|
|
4590
4598
|
F([
|
|
4591
4599
|
o({ type: Boolean, reflect: !0 })
|
|
4592
|
-
],
|
|
4600
|
+
], P.prototype, "fullwidth");
|
|
4593
4601
|
F([
|
|
4594
4602
|
o({ type: Number })
|
|
4595
|
-
],
|
|
4603
|
+
], P.prototype, "counterMaxLength");
|
|
4596
4604
|
F([
|
|
4597
4605
|
o({ type: String })
|
|
4598
|
-
],
|
|
4606
|
+
], P.prototype, "errorMessage");
|
|
4599
4607
|
F([
|
|
4600
4608
|
o({ type: String })
|
|
4601
|
-
],
|
|
4609
|
+
], P.prototype, "helptext");
|
|
4602
4610
|
F([
|
|
4603
4611
|
o({ type: String })
|
|
4604
|
-
],
|
|
4612
|
+
], P.prototype, "helptextDropdown");
|
|
4605
4613
|
F([
|
|
4606
4614
|
o({ type: String, reflect: !1 })
|
|
4607
|
-
],
|
|
4615
|
+
], P.prototype, "helptextDropdownButton");
|
|
4608
4616
|
F([
|
|
4609
4617
|
o({ type: String })
|
|
4610
|
-
],
|
|
4618
|
+
], P.prototype, "label");
|
|
4611
4619
|
F([
|
|
4612
4620
|
o({ type: String, reflect: !1 })
|
|
4613
|
-
],
|
|
4621
|
+
], P.prototype, "optionalText");
|
|
4614
4622
|
F([
|
|
4615
4623
|
o({ type: String, reflect: !1 })
|
|
4616
|
-
],
|
|
4624
|
+
], P.prototype, "requiredText");
|
|
4617
4625
|
F([
|
|
4618
4626
|
o({ type: String, reflect: !1 })
|
|
4619
|
-
],
|
|
4627
|
+
], P.prototype, "tagText");
|
|
4620
4628
|
F([
|
|
4621
4629
|
o({ type: String, attribute: "data-testid" })
|
|
4622
|
-
],
|
|
4630
|
+
], P.prototype, "dataTestid");
|
|
4623
4631
|
F([
|
|
4624
4632
|
B()
|
|
4625
|
-
],
|
|
4633
|
+
], P.prototype, "touched");
|
|
4626
4634
|
let an = class {
|
|
4627
4635
|
constructor(t) {
|
|
4628
4636
|
this.nodes = [], this.options = [], this.host = t, this.host.addController(this), this.nodes = [], this.options = [], this.observer = new MutationObserver((e) => this.handleMutations(e));
|
|
@@ -4658,14 +4666,14 @@ let an = class {
|
|
|
4658
4666
|
}), e && this.createOptions();
|
|
4659
4667
|
}
|
|
4660
4668
|
};
|
|
4661
|
-
var
|
|
4662
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
4669
|
+
var nl = Object.defineProperty, rl = Object.getOwnPropertyDescriptor, He = (i, t, e, s) => {
|
|
4670
|
+
for (var a = s > 1 ? void 0 : s ? rl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
4663
4671
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
4664
|
-
return s && a &&
|
|
4672
|
+
return s && a && nl(t, e, a), a;
|
|
4665
4673
|
};
|
|
4666
4674
|
let ce = class extends K {
|
|
4667
4675
|
constructor() {
|
|
4668
|
-
super(), this.defaultSlot = A(), this.forId = be(), this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton =
|
|
4676
|
+
super(), this.defaultSlot = A(), this.forId = be(), this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Pt.props.helptextDropdownButton.default, this.isHelpTextOpen = !1, this.filledSlots = /* @__PURE__ */ new Set(), this.slotController = new rt(this, this.defaultSlot);
|
|
4669
4677
|
}
|
|
4670
4678
|
updateSlots(t) {
|
|
4671
4679
|
this.filledSlots = new Set(t);
|
|
@@ -4734,12 +4742,12 @@ He([
|
|
|
4734
4742
|
ce = He([
|
|
4735
4743
|
j("pkt-helptext")
|
|
4736
4744
|
], ce);
|
|
4737
|
-
var
|
|
4738
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
4745
|
+
var ol = Object.defineProperty, ll = Object.getOwnPropertyDescriptor, X = (i, t, e, s) => {
|
|
4746
|
+
for (var a = s > 1 ? void 0 : s ? ll(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
4739
4747
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
4740
|
-
return s && a &&
|
|
4748
|
+
return s && a && ol(t, e, a), a;
|
|
4741
4749
|
};
|
|
4742
|
-
const
|
|
4750
|
+
const hl = {
|
|
4743
4751
|
fromAttribute(i) {
|
|
4744
4752
|
return i == null ? !1 : i === "" || i === "true" || i === !0 ? !0 : i === "false" || i === !1 ? !1 : !!i;
|
|
4745
4753
|
},
|
|
@@ -4749,7 +4757,7 @@ const ll = {
|
|
|
4749
4757
|
};
|
|
4750
4758
|
let Y = class extends K {
|
|
4751
4759
|
constructor() {
|
|
4752
|
-
super(), this.defaultSlot = A(), this.helptextSlot = A(), this.forId = be(), this.label = "", this.helptext = null, this.helptextDropdown = null, this.helptextDropdownButton = null, this.counter =
|
|
4760
|
+
super(), this.defaultSlot = A(), this.helptextSlot = A(), this.forId = be(), this.label = "", this.helptext = null, this.helptextDropdown = null, this.helptextDropdownButton = null, this.counter = Pt.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.counterError = null, this.counterPosition = "bottom", this.optionalTag = Pt.props.optionalTag.default, this.optionalText = Pt.props.optionalText.default, this.requiredTag = Pt.props.requiredTag.default, this.requiredText = Pt.props.requiredText.default, this.tagText = null, this.hasError = Pt.props.hasError.default, this.errorMessage = "", this.disabled = Pt.props.disabled.default, this.inline = Pt.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = Pt.props.hasFieldset.default, this.role = "group", this.useWrapper = Pt.props.useWrapper.default, this.slotController = new rt(this, this.defaultSlot, this.helptextSlot);
|
|
4753
4761
|
}
|
|
4754
4762
|
updated(t) {
|
|
4755
4763
|
super.updated(t);
|
|
@@ -4790,7 +4798,7 @@ let Y = class extends K {
|
|
|
4790
4798
|
.forId=${this.forId}
|
|
4791
4799
|
.helptext=${this.helptext}
|
|
4792
4800
|
.helptextDropdown=${this.helptextDropdown}
|
|
4793
|
-
.helptextDropdownButton=${this.helptextDropdownButton ||
|
|
4801
|
+
.helptextDropdownButton=${this.helptextDropdownButton || Pt.props.helptextDropdownButton.default}
|
|
4794
4802
|
@toggleHelpText=${(f) => {
|
|
4795
4803
|
this.toggleDropdown(f);
|
|
4796
4804
|
}}
|
|
@@ -4905,15 +4913,15 @@ X([
|
|
|
4905
4913
|
o({ type: String, reflect: !0 })
|
|
4906
4914
|
], Y.prototype, "role", 2);
|
|
4907
4915
|
X([
|
|
4908
|
-
o({ type: Boolean, reflect: !0, converter:
|
|
4916
|
+
o({ type: Boolean, reflect: !0, converter: hl })
|
|
4909
4917
|
], Y.prototype, "useWrapper", 2);
|
|
4910
4918
|
Y = X([
|
|
4911
4919
|
j("pkt-input-wrapper")
|
|
4912
4920
|
], Y);
|
|
4913
|
-
var
|
|
4914
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
4921
|
+
var dl = Object.defineProperty, cl = Object.getOwnPropertyDescriptor, yt = (i, t, e, s) => {
|
|
4922
|
+
for (var a = s > 1 ? void 0 : s ? cl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
4915
4923
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
4916
|
-
return s && a &&
|
|
4924
|
+
return s && a && dl(t, e, a), a;
|
|
4917
4925
|
};
|
|
4918
4926
|
let gt = class extends K {
|
|
4919
4927
|
constructor() {
|
|
@@ -5261,17 +5269,17 @@ yt([
|
|
|
5261
5269
|
gt = yt([
|
|
5262
5270
|
j("pkt-listbox")
|
|
5263
5271
|
], gt);
|
|
5264
|
-
const
|
|
5265
|
-
props:
|
|
5272
|
+
const pl = { displayValueAs: { default: "label" } }, ul = {
|
|
5273
|
+
props: pl
|
|
5266
5274
|
};
|
|
5267
|
-
var
|
|
5268
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
5275
|
+
var ml = Object.defineProperty, fl = Object.getOwnPropertyDescriptor, it = (i, t, e, s) => {
|
|
5276
|
+
for (var a = s > 1 ? void 0 : s ? fl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
5269
5277
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
5270
|
-
return s && a &&
|
|
5278
|
+
return s && a && ml(t, e, a), a;
|
|
5271
5279
|
};
|
|
5272
|
-
let Q = class extends
|
|
5280
|
+
let Q = class extends P {
|
|
5273
5281
|
constructor() {
|
|
5274
|
-
super(), this.helptextSlot = A(), this.value = "", this.options = [], this.defaultOptions = [], this.allowUserInput = !1, this.typeahead = !1, this.includeSearch = !1, this.searchPlaceholder = "", this.multiple = !1, this.maxlength = null, this.displayValueAs =
|
|
5282
|
+
super(), this.helptextSlot = A(), this.value = "", this.options = [], this.defaultOptions = [], this.allowUserInput = !1, this.typeahead = !1, this.includeSearch = !1, this.searchPlaceholder = "", this.multiple = !1, this.maxlength = null, this.displayValueAs = ul.props.displayValueAs.default, this.tagPlacement = null, this._options = [], this._isOptionsOpen = !1, this._value = [], this._userInfoMessage = "", this._addValueText = null, this._maxIsReached = !1, this._search = "", this._inputFocus = !1, this._editingSingleValue = !1, this.inputRef = A(), this.arrowRef = A(), this.listboxRef = A(), this.focusRef = A(), this.optionTagRef = A(), this.optionsController = new an(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
|
|
5275
5283
|
}
|
|
5276
5284
|
// Lifecycle methods
|
|
5277
5285
|
connectedCallback() {
|
|
@@ -5343,7 +5351,7 @@ let Q = class extends M {
|
|
|
5343
5351
|
?requiredTag=${this.requiredTag}
|
|
5344
5352
|
.requiredText=${this.requiredText}
|
|
5345
5353
|
.tagText=${this.tagText}
|
|
5346
|
-
|
|
5354
|
+
useWrapper=${this.useWrapper}
|
|
5347
5355
|
.forId=${this.allowUserInput || this.typeahead ? this.id + "-input" : this.id + "-arrow"}
|
|
5348
5356
|
class="pkt-combobox__wrapper"
|
|
5349
5357
|
@labelClick=${this.handleInputClick}
|
|
@@ -5775,7 +5783,7 @@ it([
|
|
|
5775
5783
|
Q = it([
|
|
5776
5784
|
j("pkt-combobox")
|
|
5777
5785
|
], Q);
|
|
5778
|
-
const
|
|
5786
|
+
const gl = {
|
|
5779
5787
|
i18n: {
|
|
5780
5788
|
nb: {
|
|
5781
5789
|
contentPresentation: {
|
|
@@ -5828,13 +5836,13 @@ const fl = {
|
|
|
5828
5836
|
}
|
|
5829
5837
|
}
|
|
5830
5838
|
};
|
|
5831
|
-
var
|
|
5832
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
5839
|
+
var vl = Object.defineProperty, bl = Object.getOwnPropertyDescriptor, ne = (i, t, e, s) => {
|
|
5840
|
+
for (var a = s > 1 ? void 0 : s ? bl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
5833
5841
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
5834
|
-
return s && a &&
|
|
5842
|
+
return s && a && vl(t, e, a), a;
|
|
5835
5843
|
};
|
|
5836
5844
|
let Cs = null;
|
|
5837
|
-
function
|
|
5845
|
+
function kl() {
|
|
5838
5846
|
return Cs || (Cs = new Promise((i, t) => {
|
|
5839
5847
|
if (document.querySelector("#oslo-consent-script")) {
|
|
5840
5848
|
i();
|
|
@@ -5851,7 +5859,7 @@ let Ht = class extends K {
|
|
|
5851
5859
|
super(), this.devMode = !1, this.hotjarId = null, this.googleAnalyticsId = null, this.cookieDomain = null, this.cookieSecure = null, this.cookieExpiryDays = null, this.triggerType = "button", this.triggerText = null, this.i18nLanguage = "nb";
|
|
5852
5860
|
}
|
|
5853
5861
|
connectedCallback() {
|
|
5854
|
-
super.connectedCallback(), this.triggerText = this.triggerText ||
|
|
5862
|
+
super.connectedCallback(), this.triggerText = this.triggerText || gl.i18n[this.i18nLanguage].contentPresentation.buttons.settings;
|
|
5855
5863
|
}
|
|
5856
5864
|
disconnectedCallback() {
|
|
5857
5865
|
var t;
|
|
@@ -5877,7 +5885,7 @@ let Ht = class extends K {
|
|
|
5877
5885
|
);
|
|
5878
5886
|
}
|
|
5879
5887
|
async firstUpdated(t) {
|
|
5880
|
-
window.cookieBanner_googleAnalyticsId = this.googleAnalyticsId, window.cookieBanner_hotjarId = this.hotjarId, this.cookieDomain && (window.cookieBanner_cookieDomain = this.cookieDomain), this.cookieSecure && (window.cookieBanner_cookieSecure = this.cookieSecure), this.cookieExpiryDays && (window.cookieBanner_cookieExpiryDays = this.cookieExpiryDays), this.devMode && (window.cookieBanner_devMode = this.devMode), await
|
|
5888
|
+
window.cookieBanner_googleAnalyticsId = this.googleAnalyticsId, window.cookieBanner_hotjarId = this.hotjarId, this.cookieDomain && (window.cookieBanner_cookieDomain = this.cookieDomain), this.cookieSecure && (window.cookieBanner_cookieSecure = this.cookieSecure), this.cookieExpiryDays && (window.cookieBanner_cookieExpiryDays = this.cookieExpiryDays), this.devMode && (window.cookieBanner_devMode = this.devMode), await kl(), this.triggerInit();
|
|
5881
5889
|
}
|
|
5882
5890
|
triggerInit() {
|
|
5883
5891
|
window.document.dispatchEvent(
|
|
@@ -5942,12 +5950,12 @@ ne([
|
|
|
5942
5950
|
Ht = ne([
|
|
5943
5951
|
j("pkt-consent")
|
|
5944
5952
|
], Ht);
|
|
5945
|
-
var
|
|
5946
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
5953
|
+
var yl = Object.defineProperty, $l = Object.getOwnPropertyDescriptor, $t = (i, t, e, s) => {
|
|
5954
|
+
for (var a = s > 1 ? void 0 : s ? $l(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
5947
5955
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
5948
|
-
return s && a &&
|
|
5956
|
+
return s && a && yl(t, e, a), a;
|
|
5949
5957
|
};
|
|
5950
|
-
let vt = class extends
|
|
5958
|
+
let vt = class extends P {
|
|
5951
5959
|
constructor() {
|
|
5952
5960
|
super(...arguments), this.inputRef = A(), this.value = "", this.checkHelptext = null, this.defaultChecked = !1, this.hasTile = !1, this.isSwitch = !1, this.labelPosition = "right", this.hideLabel = !1, this.checked = null, this.indeterminate = !1, this.type = "checkbox", this.tagText = null, this.optionalTag = !1, this.optionalText = "Valgfritt", this.requiredTag = !1, this.requiredText = "Må fylles ut";
|
|
5953
5961
|
}
|
|
@@ -6080,10 +6088,10 @@ $t([
|
|
|
6080
6088
|
vt = $t([
|
|
6081
6089
|
j("pkt-checkbox")
|
|
6082
6090
|
], vt);
|
|
6083
|
-
var
|
|
6084
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
6091
|
+
var _l = Object.defineProperty, wl = Object.getOwnPropertyDescriptor, Vi = (i, t, e, s) => {
|
|
6092
|
+
for (var a = s > 1 ? void 0 : s ? wl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6085
6093
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6086
|
-
return s && a &&
|
|
6094
|
+
return s && a && _l(t, e, a), a;
|
|
6087
6095
|
};
|
|
6088
6096
|
let ai = class extends K {
|
|
6089
6097
|
constructor() {
|
|
@@ -6131,8 +6139,8 @@ Vi([
|
|
|
6131
6139
|
ai = Vi([
|
|
6132
6140
|
j("pkt-date-tags")
|
|
6133
6141
|
], ai);
|
|
6134
|
-
const
|
|
6135
|
-
props:
|
|
6142
|
+
const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, range: { default: !1 } }, $i = {
|
|
6143
|
+
props: xl
|
|
6136
6144
|
}, Re = () => {
|
|
6137
6145
|
const i = navigator.userAgent;
|
|
6138
6146
|
return !!(/iP(hone|od|ad)/.test(i) || /Macintosh/.test(i) && "ontouchend" in document);
|
|
@@ -6161,7 +6169,7 @@ const wl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6161
6169
|
filterSelectableDates(i, t, e, s, a) {
|
|
6162
6170
|
return Lo(i, t, e, s, a);
|
|
6163
6171
|
}
|
|
6164
|
-
},
|
|
6172
|
+
}, Sl = {
|
|
6165
6173
|
/**
|
|
6166
6174
|
* Determines the appropriate input type based on device
|
|
6167
6175
|
* Mobile Safari does not play well with type="date" amd custom datepickers
|
|
@@ -6169,7 +6177,7 @@ const wl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6169
6177
|
getInputType() {
|
|
6170
6178
|
return Re() ? "text" : "date";
|
|
6171
6179
|
}
|
|
6172
|
-
},
|
|
6180
|
+
}, Pi = {
|
|
6173
6181
|
/**
|
|
6174
6182
|
* Submits the form that contains the given element
|
|
6175
6183
|
*/
|
|
@@ -6282,7 +6290,7 @@ const wl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6282
6290
|
l && t[0] !== r.value && t[1] && (s(), (n = e == null ? void 0 : e.value) == null || n.handleDateSelect(l));
|
|
6283
6291
|
} else t[0] && s();
|
|
6284
6292
|
}
|
|
6285
|
-
},
|
|
6293
|
+
}, Me = {
|
|
6286
6294
|
/**
|
|
6287
6295
|
* Handles common keyboard interactions for datepicker inputs
|
|
6288
6296
|
*/
|
|
@@ -6298,10 +6306,10 @@ const wl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
|
|
|
6298
6306
|
(e === "Enter" || e === " " || e === "Space") && (i.preventDefault(), t(i));
|
|
6299
6307
|
}
|
|
6300
6308
|
};
|
|
6301
|
-
var
|
|
6302
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
6309
|
+
var Cl = Object.defineProperty, Tl = Object.getOwnPropertyDescriptor, Lt = (i, t, e, s) => {
|
|
6310
|
+
for (var a = s > 1 ? void 0 : s ? Tl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6303
6311
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6304
|
-
return s && a &&
|
|
6312
|
+
return s && a && Cl(t, e, a), a;
|
|
6305
6313
|
};
|
|
6306
6314
|
let St = class extends K {
|
|
6307
6315
|
constructor() {
|
|
@@ -6420,10 +6428,10 @@ Lt([
|
|
|
6420
6428
|
St = Lt([
|
|
6421
6429
|
j("pkt-datepicker-popup")
|
|
6422
6430
|
], St);
|
|
6423
|
-
var
|
|
6424
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
6431
|
+
var Nl = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, qt = (i, t, e, s) => {
|
|
6432
|
+
for (var a = s > 1 ? void 0 : s ? Al(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6425
6433
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6426
|
-
return s && a &&
|
|
6434
|
+
return s && a && Nl(t, e, a), a;
|
|
6427
6435
|
};
|
|
6428
6436
|
let Dt = class extends K {
|
|
6429
6437
|
constructor() {
|
|
@@ -6514,10 +6522,10 @@ let Dt = class extends K {
|
|
|
6514
6522
|
t.preventDefault(), this.dispatchToggleCalendar(t);
|
|
6515
6523
|
}}
|
|
6516
6524
|
?disabled=${this.disabled}
|
|
6517
|
-
@keydown=${(t) =>
|
|
6525
|
+
@keydown=${(t) => Me.handleInputKeydown(
|
|
6518
6526
|
t,
|
|
6519
6527
|
(e) => this.dispatchToggleCalendar(e),
|
|
6520
|
-
() =>
|
|
6528
|
+
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
6521
6529
|
var e;
|
|
6522
6530
|
return (e = this.inputRef.value) == null ? void 0 : e.blur();
|
|
6523
6531
|
}),
|
|
@@ -6551,7 +6559,7 @@ let Dt = class extends K {
|
|
|
6551
6559
|
class="${O(Di.getButtonClasses())}"
|
|
6552
6560
|
type="button"
|
|
6553
6561
|
@click=${(t) => this.dispatchToggleCalendar(t)}
|
|
6554
|
-
@keydown=${(t) =>
|
|
6562
|
+
@keydown=${(t) => Me.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
|
|
6555
6563
|
?disabled=${this.disabled}
|
|
6556
6564
|
${E(this.btnRef)}
|
|
6557
6565
|
>
|
|
@@ -6598,10 +6606,10 @@ qt([
|
|
|
6598
6606
|
Dt = qt([
|
|
6599
6607
|
j("pkt-datepicker-single")
|
|
6600
6608
|
], Dt);
|
|
6601
|
-
var
|
|
6602
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
6609
|
+
var El = Object.defineProperty, Ol = Object.getOwnPropertyDescriptor, Bt = (i, t, e, s) => {
|
|
6610
|
+
for (var a = s > 1 ? void 0 : s ? Ol(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6603
6611
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6604
|
-
return s && a &&
|
|
6612
|
+
return s && a && El(t, e, a), a;
|
|
6605
6613
|
};
|
|
6606
6614
|
let Ct = class extends K {
|
|
6607
6615
|
constructor() {
|
|
@@ -6696,10 +6704,10 @@ let Ct = class extends K {
|
|
|
6696
6704
|
@touchend=${(e) => {
|
|
6697
6705
|
e.preventDefault(), this.dispatchToggleCalendar(e);
|
|
6698
6706
|
}}
|
|
6699
|
-
@keydown=${(e) =>
|
|
6707
|
+
@keydown=${(e) => Me.handleInputKeydown(
|
|
6700
6708
|
e,
|
|
6701
6709
|
(s) => this.dispatchToggleCalendar(s),
|
|
6702
|
-
() =>
|
|
6710
|
+
() => Pi.submitFormOrFallback(
|
|
6703
6711
|
this.internals,
|
|
6704
6712
|
() => {
|
|
6705
6713
|
var s;
|
|
@@ -6760,10 +6768,10 @@ let Ct = class extends K {
|
|
|
6760
6768
|
@touchend=${(e) => {
|
|
6761
6769
|
e.preventDefault(), this.dispatchToggleCalendar(e);
|
|
6762
6770
|
}}
|
|
6763
|
-
@keydown=${(e) =>
|
|
6771
|
+
@keydown=${(e) => Me.handleInputKeydown(
|
|
6764
6772
|
e,
|
|
6765
6773
|
(s) => this.dispatchToggleCalendar(s),
|
|
6766
|
-
() =>
|
|
6774
|
+
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
6767
6775
|
var s;
|
|
6768
6776
|
return (s = this.inputRefTo.value) == null ? void 0 : s.blur();
|
|
6769
6777
|
}),
|
|
@@ -6803,7 +6811,7 @@ let Ct = class extends K {
|
|
|
6803
6811
|
class="${O(Di.getButtonClasses())}"
|
|
6804
6812
|
type="button"
|
|
6805
6813
|
@click=${(e) => this.dispatchToggleCalendar(e)}
|
|
6806
|
-
@keydown=${(e) =>
|
|
6814
|
+
@keydown=${(e) => Me.handleButtonKeydown(e, (s) => this.dispatchToggleCalendar(s))}
|
|
6807
6815
|
?disabled=${this.disabled}
|
|
6808
6816
|
${E(this.btnRef)}
|
|
6809
6817
|
>
|
|
@@ -6853,10 +6861,10 @@ Bt([
|
|
|
6853
6861
|
Ct = Bt([
|
|
6854
6862
|
j("pkt-datepicker-range")
|
|
6855
6863
|
], Ct);
|
|
6856
|
-
var
|
|
6864
|
+
var Ml = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, Vt = (i, t, e, s) => {
|
|
6857
6865
|
for (var a = s > 1 ? void 0 : s ? Pl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
6858
6866
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
6859
|
-
return s && a &&
|
|
6867
|
+
return s && a && Ml(t, e, a), a;
|
|
6860
6868
|
};
|
|
6861
6869
|
let Tt = class extends K {
|
|
6862
6870
|
constructor() {
|
|
@@ -6957,10 +6965,10 @@ let Tt = class extends K {
|
|
|
6957
6965
|
@focus=${() => {
|
|
6958
6966
|
this.dispatchFocus(), Re() && this.dispatchToggleCalendar(new Event("focus"));
|
|
6959
6967
|
}}
|
|
6960
|
-
@keydown=${(t) =>
|
|
6968
|
+
@keydown=${(t) => Me.handleInputKeydown(
|
|
6961
6969
|
t,
|
|
6962
6970
|
(e) => this.dispatchToggleCalendar(e),
|
|
6963
|
-
() =>
|
|
6971
|
+
() => Pi.submitFormOrFallback(this.internals, () => {
|
|
6964
6972
|
var e;
|
|
6965
6973
|
return (e = this.inputRef.value) == null ? void 0 : e.blur();
|
|
6966
6974
|
}),
|
|
@@ -6977,7 +6985,7 @@ let Tt = class extends K {
|
|
|
6977
6985
|
class="${O(Di.getButtonClasses())}"
|
|
6978
6986
|
type="button"
|
|
6979
6987
|
@click=${(t) => this.dispatchToggleCalendar(t)}
|
|
6980
|
-
@keydown=${(t) =>
|
|
6988
|
+
@keydown=${(t) => Me.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
|
|
6981
6989
|
?disabled=${this.disabled}
|
|
6982
6990
|
${E(this.btnRef)}
|
|
6983
6991
|
>
|
|
@@ -7027,12 +7035,12 @@ Vt([
|
|
|
7027
7035
|
Tt = Vt([
|
|
7028
7036
|
j("pkt-datepicker-multiple")
|
|
7029
7037
|
], Tt);
|
|
7030
|
-
var
|
|
7031
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7038
|
+
var Dl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, dt = (i, t, e, s) => {
|
|
7039
|
+
for (var a = s > 1 ? void 0 : s ? Il(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7032
7040
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7033
|
-
return s && a &&
|
|
7041
|
+
return s && a && Dl(t, e, a), a;
|
|
7034
7042
|
};
|
|
7035
|
-
let tt = class extends
|
|
7043
|
+
let tt = class extends P {
|
|
7036
7044
|
/**
|
|
7037
7045
|
* Housekeeping / lifecycle methods
|
|
7038
7046
|
*/
|
|
@@ -7053,7 +7061,7 @@ let tt = class extends M {
|
|
|
7053
7061
|
* Computed properties
|
|
7054
7062
|
*/
|
|
7055
7063
|
get inputType() {
|
|
7056
|
-
return
|
|
7064
|
+
return Sl.getInputType();
|
|
7057
7065
|
}
|
|
7058
7066
|
connectedCallback() {
|
|
7059
7067
|
super.connectedCallback(), this.timezone && this.timezone !== window.pktTz && (window.pktTz = this.timezone), this.name = Yi.normalizeNameForMultiple(this.name, this.multiple, this.range) || this.name;
|
|
@@ -7187,7 +7195,7 @@ let tt = class extends M {
|
|
|
7187
7195
|
}}
|
|
7188
7196
|
@manage-validity=${(i) => this.manageValidity(i.detail)}
|
|
7189
7197
|
@validate-date-input=${(i) => {
|
|
7190
|
-
|
|
7198
|
+
Pi.validateDateInput(i.detail, this.internals, this.min, this.max, this.strings);
|
|
7191
7199
|
}}
|
|
7192
7200
|
@handle-date-select=${(i) => {
|
|
7193
7201
|
var t, e;
|
|
@@ -7286,7 +7294,7 @@ let tt = class extends M {
|
|
|
7286
7294
|
?required=${this.required}
|
|
7287
7295
|
?optionalTag=${this.optionalTag}
|
|
7288
7296
|
?requiredTag=${this.requiredTag}
|
|
7289
|
-
|
|
7297
|
+
useWrapper=${this.useWrapper}
|
|
7290
7298
|
.optionalText=${this.optionalText}
|
|
7291
7299
|
.requiredText=${this.requiredText}
|
|
7292
7300
|
.tagText=${this.tagText}
|
|
@@ -7415,13 +7423,13 @@ dt([
|
|
|
7415
7423
|
tt = dt([
|
|
7416
7424
|
j("pkt-datepicker")
|
|
7417
7425
|
], tt);
|
|
7418
|
-
const
|
|
7419
|
-
props:
|
|
7426
|
+
const Rl = { href: { default: "#" }, target: { default: "_self" } }, Ta = {
|
|
7427
|
+
props: Rl
|
|
7420
7428
|
};
|
|
7421
|
-
var
|
|
7422
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7429
|
+
var Ll = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor, di = (i, t, e, s) => {
|
|
7430
|
+
for (var a = s > 1 ? void 0 : s ? Bl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7423
7431
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7424
|
-
return s && a &&
|
|
7432
|
+
return s && a && Ll(t, e, a), a;
|
|
7425
7433
|
};
|
|
7426
7434
|
let Le = class extends K {
|
|
7427
7435
|
constructor() {
|
|
@@ -7461,10 +7469,10 @@ di([
|
|
|
7461
7469
|
Le = di([
|
|
7462
7470
|
j("pkt-link")
|
|
7463
7471
|
], Le);
|
|
7464
|
-
var
|
|
7465
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7472
|
+
var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, qe = (i, t, e, s) => {
|
|
7473
|
+
for (var a = s > 1 ? void 0 : s ? jl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7466
7474
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7467
|
-
return s && a &&
|
|
7475
|
+
return s && a && Vl(t, e, a), a;
|
|
7468
7476
|
};
|
|
7469
7477
|
let _e = class extends K {
|
|
7470
7478
|
constructor() {
|
|
@@ -7508,10 +7516,10 @@ qe([
|
|
|
7508
7516
|
_e = qe([
|
|
7509
7517
|
j("pkt-linkcard")
|
|
7510
7518
|
], _e);
|
|
7511
|
-
var
|
|
7512
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7519
|
+
var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, pe = (i, t, e, s) => {
|
|
7520
|
+
for (var a = s > 1 ? void 0 : s ? Ul(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7513
7521
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7514
|
-
return s && a &&
|
|
7522
|
+
return s && a && Fl(t, e, a), a;
|
|
7515
7523
|
};
|
|
7516
7524
|
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.18/animations/";
|
|
7517
7525
|
let Yt = class extends K {
|
|
@@ -7593,13 +7601,13 @@ pe([
|
|
|
7593
7601
|
Yt = pe([
|
|
7594
7602
|
j("pkt-loader")
|
|
7595
7603
|
], Yt);
|
|
7596
|
-
const
|
|
7597
|
-
props:
|
|
7604
|
+
const Hl = { skin: { default: "beige" }, compact: { default: !1 }, closable: { default: !1 } }, Ns = {
|
|
7605
|
+
props: Hl
|
|
7598
7606
|
};
|
|
7599
|
-
var
|
|
7600
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7607
|
+
var ql = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, ci = (i, t, e, s) => {
|
|
7608
|
+
for (var a = s > 1 ? void 0 : s ? zl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7601
7609
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7602
|
-
return s && a &&
|
|
7610
|
+
return s && a && ql(t, e, a), a;
|
|
7603
7611
|
};
|
|
7604
7612
|
let Be = class extends K {
|
|
7605
7613
|
constructor() {
|
|
@@ -7653,13 +7661,13 @@ ci([
|
|
|
7653
7661
|
Be = ci([
|
|
7654
7662
|
j("pkt-messagebox")
|
|
7655
7663
|
], Be);
|
|
7656
|
-
const
|
|
7657
|
-
props:
|
|
7664
|
+
const Wl = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, As = {
|
|
7665
|
+
props: Wl
|
|
7658
7666
|
};
|
|
7659
|
-
var
|
|
7660
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7667
|
+
var Kl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, Xt = (i, t, e, s) => {
|
|
7668
|
+
for (var a = s > 1 ? void 0 : s ? Gl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7661
7669
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7662
|
-
return s && a &&
|
|
7670
|
+
return s && a && Kl(t, e, a), a;
|
|
7663
7671
|
};
|
|
7664
7672
|
let It = class extends K {
|
|
7665
7673
|
constructor() {
|
|
@@ -7803,7 +7811,7 @@ It = Xt([
|
|
|
7803
7811
|
* Copyright 2018 Google LLC
|
|
7804
7812
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7805
7813
|
*/
|
|
7806
|
-
const nn = "important",
|
|
7814
|
+
const nn = "important", Yl = " !" + nn, Zl = Fe(class extends li {
|
|
7807
7815
|
constructor(i) {
|
|
7808
7816
|
var t;
|
|
7809
7817
|
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.");
|
|
@@ -7822,17 +7830,17 @@ const nn = "important", Gl = " !" + nn, Yl = Fe(class extends li {
|
|
|
7822
7830
|
const a = t[s];
|
|
7823
7831
|
if (a != null) {
|
|
7824
7832
|
this.ft.add(s);
|
|
7825
|
-
const n = typeof a == "string" && a.endsWith(
|
|
7833
|
+
const n = typeof a == "string" && a.endsWith(Yl);
|
|
7826
7834
|
s.includes("-") || n ? e.setProperty(s, n ? a.slice(0, -11) : a, n ? nn : "") : e[s] = a;
|
|
7827
7835
|
}
|
|
7828
7836
|
}
|
|
7829
7837
|
return xt;
|
|
7830
7838
|
}
|
|
7831
7839
|
});
|
|
7832
|
-
var
|
|
7833
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7840
|
+
var Jl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
|
|
7841
|
+
for (var a = s > 1 ? void 0 : s ? Xl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7834
7842
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7835
|
-
return s && a &&
|
|
7843
|
+
return s && a && Jl(t, e, a), a;
|
|
7836
7844
|
};
|
|
7837
7845
|
let et = class extends K {
|
|
7838
7846
|
constructor() {
|
|
@@ -7862,7 +7870,7 @@ let et = class extends K {
|
|
|
7862
7870
|
return u` <div
|
|
7863
7871
|
class="pkt-progressbar__container"
|
|
7864
7872
|
.ref=${this.progressBarRef}
|
|
7865
|
-
style=${
|
|
7873
|
+
style=${Zl({
|
|
7866
7874
|
"--pkt-progress-label-width": `${this.labelWidth}px`,
|
|
7867
7875
|
"--pkt-progress-width": `${s}%`
|
|
7868
7876
|
})}
|
|
@@ -7948,12 +7956,12 @@ ct([
|
|
|
7948
7956
|
et = ct([
|
|
7949
7957
|
j("pkt-progressbar")
|
|
7950
7958
|
], et);
|
|
7951
|
-
var
|
|
7952
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
7959
|
+
var Ql = Object.defineProperty, th = Object.getOwnPropertyDescriptor, jt = (i, t, e, s) => {
|
|
7960
|
+
for (var a = s > 1 ? void 0 : s ? th(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
7953
7961
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
7954
|
-
return s && a &&
|
|
7962
|
+
return s && a && Ql(t, e, a), a;
|
|
7955
7963
|
};
|
|
7956
|
-
let Nt = class extends
|
|
7964
|
+
let Nt = class extends P {
|
|
7957
7965
|
constructor() {
|
|
7958
7966
|
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;
|
|
7959
7967
|
}
|
|
@@ -8096,7 +8104,7 @@ let Na = class {
|
|
|
8096
8104
|
* Copyright 2021 Google LLC
|
|
8097
8105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8098
8106
|
*/
|
|
8099
|
-
class
|
|
8107
|
+
class eh {
|
|
8100
8108
|
get value() {
|
|
8101
8109
|
return this.o;
|
|
8102
8110
|
}
|
|
@@ -8129,11 +8137,11 @@ class th {
|
|
|
8129
8137
|
* Copyright 2021 Google LLC
|
|
8130
8138
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8131
8139
|
*/
|
|
8132
|
-
let
|
|
8140
|
+
let ih = class extends Event {
|
|
8133
8141
|
constructor(i, t) {
|
|
8134
8142
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = i, this.contextTarget = t;
|
|
8135
8143
|
}
|
|
8136
|
-
}, Aa = class extends
|
|
8144
|
+
}, Aa = class extends eh {
|
|
8137
8145
|
constructor(t, e, s) {
|
|
8138
8146
|
var a, n;
|
|
8139
8147
|
super(e.context !== void 0 ? e.initialValue : s), this.onContextRequest = (r) => {
|
|
@@ -8151,7 +8159,7 @@ let eh = class extends Event {
|
|
|
8151
8159
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
8152
8160
|
}
|
|
8153
8161
|
hostConnected() {
|
|
8154
|
-
this.host.dispatchEvent(new
|
|
8162
|
+
this.host.dispatchEvent(new ih(this.context, this.host));
|
|
8155
8163
|
}
|
|
8156
8164
|
};
|
|
8157
8165
|
/**
|
|
@@ -8159,7 +8167,7 @@ let eh = class extends Event {
|
|
|
8159
8167
|
* Copyright 2017 Google LLC
|
|
8160
8168
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8161
8169
|
*/
|
|
8162
|
-
function
|
|
8170
|
+
function sh({ context: i }) {
|
|
8163
8171
|
return (t, e) => {
|
|
8164
8172
|
const s = /* @__PURE__ */ new WeakMap();
|
|
8165
8173
|
if (typeof e == "object") return { get() {
|
|
@@ -8197,7 +8205,7 @@ function ih({ context: i }) {
|
|
|
8197
8205
|
* Copyright 2022 Google LLC
|
|
8198
8206
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8199
8207
|
*/
|
|
8200
|
-
function
|
|
8208
|
+
function ah({ context: i, subscribe: t }) {
|
|
8201
8209
|
return (e, s) => {
|
|
8202
8210
|
typeof s == "object" ? s.addInitializer((function() {
|
|
8203
8211
|
new Na(this, { context: i, callback: (a) => {
|
|
@@ -8211,10 +8219,10 @@ function sh({ context: i, subscribe: t }) {
|
|
|
8211
8219
|
};
|
|
8212
8220
|
}
|
|
8213
8221
|
const on = Symbol("pkt-tabs-context");
|
|
8214
|
-
var
|
|
8215
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8222
|
+
var nh = Object.defineProperty, rh = Object.getOwnPropertyDescriptor, pi = (i, t, e, s) => {
|
|
8223
|
+
for (var a = s > 1 ? void 0 : s ? rh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8216
8224
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8217
|
-
return s && a &&
|
|
8225
|
+
return s && a && nh(t, e, a), a;
|
|
8218
8226
|
};
|
|
8219
8227
|
let Ve = class extends K {
|
|
8220
8228
|
constructor() {
|
|
@@ -8279,16 +8287,16 @@ pi([
|
|
|
8279
8287
|
B()
|
|
8280
8288
|
], Ve.prototype, "tabCount", 2);
|
|
8281
8289
|
pi([
|
|
8282
|
-
|
|
8290
|
+
sh({ context: on }),
|
|
8283
8291
|
B()
|
|
8284
8292
|
], Ve.prototype, "context", 2);
|
|
8285
8293
|
Ve = pi([
|
|
8286
8294
|
j("pkt-tabs")
|
|
8287
8295
|
], Ve);
|
|
8288
|
-
var
|
|
8289
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8296
|
+
var oh = Object.defineProperty, lh = Object.getOwnPropertyDescriptor, ue = (i, t, e, s) => {
|
|
8297
|
+
for (var a = s > 1 ? void 0 : s ? lh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8290
8298
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8291
|
-
return s && a &&
|
|
8299
|
+
return s && a && oh(t, e, a), a;
|
|
8292
8300
|
};
|
|
8293
8301
|
let ie = class extends K {
|
|
8294
8302
|
constructor() {
|
|
@@ -8365,7 +8373,7 @@ ue([
|
|
|
8365
8373
|
o({ type: Number, reflect: !0 })
|
|
8366
8374
|
], ie.prototype, "index", 2);
|
|
8367
8375
|
ue([
|
|
8368
|
-
|
|
8376
|
+
ah({ context: on, subscribe: !0 }),
|
|
8369
8377
|
o({ attribute: !1 })
|
|
8370
8378
|
], ie.prototype, "context", 2);
|
|
8371
8379
|
ie = ue([
|
|
@@ -8376,7 +8384,7 @@ ie = ue([
|
|
|
8376
8384
|
* Copyright 2020 Google LLC
|
|
8377
8385
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8378
8386
|
*/
|
|
8379
|
-
const
|
|
8387
|
+
const hh = Fe(class extends li {
|
|
8380
8388
|
constructor(i) {
|
|
8381
8389
|
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");
|
|
8382
8390
|
if (!Ha(i)) throw Error("`live` bindings can only contain a single expression");
|
|
@@ -8395,12 +8403,12 @@ const lh = Fe(class extends li {
|
|
|
8395
8403
|
return qa(i), t;
|
|
8396
8404
|
}
|
|
8397
8405
|
});
|
|
8398
|
-
var
|
|
8399
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8406
|
+
var dh = Object.defineProperty, ch = Object.getOwnPropertyDescriptor, ji = (i, t, e, s) => {
|
|
8407
|
+
for (var a = s > 1 ? void 0 : s ? ch(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8400
8408
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8401
|
-
return s && a &&
|
|
8409
|
+
return s && a && dh(t, e, a), a;
|
|
8402
8410
|
};
|
|
8403
|
-
let ni = class extends
|
|
8411
|
+
let ni = class extends P {
|
|
8404
8412
|
constructor() {
|
|
8405
8413
|
super(), this.inputRef = A(), this.helptextSlot = A(), this.value = "", this.autocomplete = "off", this.rows = null, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
|
|
8406
8414
|
}
|
|
@@ -8426,7 +8434,7 @@ let ni = class extends M {
|
|
|
8426
8434
|
?optionalTag=${this.optionalTag}
|
|
8427
8435
|
?required=${this.required}
|
|
8428
8436
|
?requiredTag=${this.requiredTag}
|
|
8429
|
-
|
|
8437
|
+
useWrapper=${this.useWrapper}
|
|
8430
8438
|
.ariaDescribedBy=${this.ariaDescribedBy}
|
|
8431
8439
|
.counterCurrent=${this.counterCurrent}
|
|
8432
8440
|
.counterMaxLength=${this.counterMaxLength}
|
|
@@ -8447,7 +8455,7 @@ let ni = class extends M {
|
|
|
8447
8455
|
id=${this.id + "-input"}
|
|
8448
8456
|
name=${(this.name || this.id) + "-input"}
|
|
8449
8457
|
placeholder=${C(this.placeholder)}
|
|
8450
|
-
.value=${
|
|
8458
|
+
.value=${hh(this.value)}
|
|
8451
8459
|
minlength=${C(this.minlength)}
|
|
8452
8460
|
maxlength=${C(this.maxlength)}
|
|
8453
8461
|
?readonly=${this.readonly}
|
|
@@ -8488,12 +8496,12 @@ ji([
|
|
|
8488
8496
|
ni = ji([
|
|
8489
8497
|
j("pkt-textarea")
|
|
8490
8498
|
], ni);
|
|
8491
|
-
var
|
|
8492
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8499
|
+
var ph = Object.defineProperty, uh = Object.getOwnPropertyDescriptor, re = (i, t, e, s) => {
|
|
8500
|
+
for (var a = s > 1 ? void 0 : s ? uh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8493
8501
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8494
|
-
return s && a &&
|
|
8502
|
+
return s && a && ph(t, e, a), a;
|
|
8495
8503
|
};
|
|
8496
|
-
let Zt = class extends
|
|
8504
|
+
let Zt = class extends P {
|
|
8497
8505
|
constructor() {
|
|
8498
8506
|
super(), this.inputRef = A(), this.helptextSlot = A(), this.value = "", this.type = "text", this.size = null, this.autocomplete = null, this.iconNameRight = null, this.prefix = null, this.suffix = null, this.omitSearchIcon = !1, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
|
|
8499
8507
|
}
|
|
@@ -8521,7 +8529,7 @@ let Zt = class extends M {
|
|
|
8521
8529
|
?optionalTag=${this.optionalTag}
|
|
8522
8530
|
?required=${this.required}
|
|
8523
8531
|
?requiredTag=${this.requiredTag}
|
|
8524
|
-
|
|
8532
|
+
useWrapper=${this.useWrapper}
|
|
8525
8533
|
.ariaDescribedBy=${this.ariaDescribedBy}
|
|
8526
8534
|
.counterCurrent=${this.counterCurrent}
|
|
8527
8535
|
.counterMaxLength=${this.counterMaxLength}
|
|
@@ -8626,12 +8634,12 @@ re([
|
|
|
8626
8634
|
Zt = re([
|
|
8627
8635
|
j("pkt-textinput")
|
|
8628
8636
|
], Zt);
|
|
8629
|
-
var
|
|
8630
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8637
|
+
var mh = Object.defineProperty, fh = Object.getOwnPropertyDescriptor, cs = (i, t, e, s) => {
|
|
8638
|
+
for (var a = s > 1 ? void 0 : s ? fh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8631
8639
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8632
|
-
return s && a &&
|
|
8640
|
+
return s && a && mh(t, e, a), a;
|
|
8633
8641
|
};
|
|
8634
|
-
let Ii = class extends
|
|
8642
|
+
let Ii = class extends P {
|
|
8635
8643
|
constructor() {
|
|
8636
8644
|
super(), this.inputRef = A(), this.helptextSlot = A(), this._optionsProp = [], this.value = "", this._options = [], this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new an(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
|
|
8637
8645
|
}
|
|
@@ -8721,7 +8729,7 @@ let Ii = class extends M {
|
|
|
8721
8729
|
?inline=${this.inline}
|
|
8722
8730
|
?optionalTag=${this.optionalTag}
|
|
8723
8731
|
?requiredTag=${this.requiredTag}
|
|
8724
|
-
|
|
8732
|
+
useWrapper=${this.useWrapper}
|
|
8725
8733
|
ariaDescribedBy=${C(this.ariaDescribedBy)}
|
|
8726
8734
|
class="pkt-select"
|
|
8727
8735
|
errorMessage=${C(this.errorMessage)}
|
|
@@ -8788,10 +8796,10 @@ cs([
|
|
|
8788
8796
|
Ii = cs([
|
|
8789
8797
|
j("pkt-select")
|
|
8790
8798
|
], Ii);
|
|
8791
|
-
var
|
|
8792
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
8799
|
+
var gh = Object.defineProperty, vh = Object.getOwnPropertyDescriptor, Fi = (i, t, e, s) => {
|
|
8800
|
+
for (var a = s > 1 ? void 0 : s ? vh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
8793
8801
|
(r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
|
|
8794
|
-
return s && a &&
|
|
8802
|
+
return s && a && gh(t, e, a), a;
|
|
8795
8803
|
};
|
|
8796
8804
|
let ri = class extends K {
|
|
8797
8805
|
constructor() {
|
|
@@ -8885,7 +8893,7 @@ const L = Jt({
|
|
|
8885
8893
|
react: mt,
|
|
8886
8894
|
displayName: "PktIcon",
|
|
8887
8895
|
events: {}
|
|
8888
|
-
}),
|
|
8896
|
+
}), bh = Z(
|
|
8889
8897
|
({
|
|
8890
8898
|
defaultOpen: i = !1,
|
|
8891
8899
|
id: t,
|
|
@@ -8903,7 +8911,7 @@ const L = Jt({
|
|
|
8903
8911
|
Qe(() => {
|
|
8904
8912
|
n === void 0 && b(i);
|
|
8905
8913
|
}, [i, n]);
|
|
8906
|
-
const
|
|
8914
|
+
const M = (T) => {
|
|
8907
8915
|
const G = T.currentTarget.open;
|
|
8908
8916
|
n === void 0 && b(G), m == null || m(T);
|
|
8909
8917
|
}, N = (T) => {
|
|
@@ -8925,7 +8933,7 @@ const L = Jt({
|
|
|
8925
8933
|
open: S,
|
|
8926
8934
|
onClick: N,
|
|
8927
8935
|
name: w,
|
|
8928
|
-
onToggle:
|
|
8936
|
+
onToggle: M,
|
|
8929
8937
|
children: [
|
|
8930
8938
|
/* @__PURE__ */ x("summary", { className: "pkt-accordion-item__title", id: `pkt-accordion-item-summary-${t}`, children: [
|
|
8931
8939
|
e,
|
|
@@ -8937,8 +8945,8 @@ const L = Jt({
|
|
|
8937
8945
|
);
|
|
8938
8946
|
}
|
|
8939
8947
|
);
|
|
8940
|
-
|
|
8941
|
-
function
|
|
8948
|
+
bh.displayName = "PktAccordionItem";
|
|
8949
|
+
function kh(i) {
|
|
8942
8950
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
8943
8951
|
}
|
|
8944
8952
|
var Es = { exports: {} };
|
|
@@ -8948,7 +8956,7 @@ var Es = { exports: {} };
|
|
|
8948
8956
|
http://jedwatson.github.io/classnames
|
|
8949
8957
|
*/
|
|
8950
8958
|
var Ea;
|
|
8951
|
-
function
|
|
8959
|
+
function yh() {
|
|
8952
8960
|
return Ea || (Ea = 1, (function(i) {
|
|
8953
8961
|
(function() {
|
|
8954
8962
|
var t = {}.hasOwnProperty;
|
|
@@ -8980,8 +8988,8 @@ function kh() {
|
|
|
8980
8988
|
})();
|
|
8981
8989
|
})(Es)), Es.exports;
|
|
8982
8990
|
}
|
|
8983
|
-
var
|
|
8984
|
-
const ht = /* @__PURE__ */
|
|
8991
|
+
var $h = yh();
|
|
8992
|
+
const ht = /* @__PURE__ */ kh($h), ln = ({
|
|
8985
8993
|
children: i,
|
|
8986
8994
|
closeAlert: t,
|
|
8987
8995
|
compact: e,
|
|
@@ -9038,14 +9046,14 @@ const ht = /* @__PURE__ */ bh(yh), ln = ({
|
|
|
9038
9046
|
] }) });
|
|
9039
9047
|
};
|
|
9040
9048
|
ln.displayName = "PktAlert";
|
|
9041
|
-
const
|
|
9049
|
+
const _h = Jt({
|
|
9042
9050
|
tagName: "pkt-backlink",
|
|
9043
9051
|
elementClass: si,
|
|
9044
9052
|
react: mt,
|
|
9045
9053
|
displayName: "PktBackLink"
|
|
9046
9054
|
});
|
|
9047
|
-
|
|
9048
|
-
const
|
|
9055
|
+
_h.displayName = "PktBackLink";
|
|
9056
|
+
const Gd = Z(
|
|
9049
9057
|
({ breadcrumbs: i, navigationType: t, className: e, ...s }, a) => {
|
|
9050
9058
|
const n = i, r = n[n.length - 2], l = [e, "pkt-breadcrumbs"].filter(Boolean).join(" ");
|
|
9051
9059
|
return /* @__PURE__ */ x("nav", { ref: a, "aria-label": "brødsmulemeny", className: l, children: [
|
|
@@ -9102,7 +9110,7 @@ const oi = Z(
|
|
|
9102
9110
|
loadingAnimationPath: k = window.pktAnimationPath,
|
|
9103
9111
|
...w
|
|
9104
9112
|
}, S) => {
|
|
9105
|
-
const
|
|
9113
|
+
const M = [
|
|
9106
9114
|
t,
|
|
9107
9115
|
"pkt-btn",
|
|
9108
9116
|
a && `pkt-btn--${a}`,
|
|
@@ -9121,7 +9129,7 @@ const oi = Z(
|
|
|
9121
9129
|
"aria-busy": y || void 0,
|
|
9122
9130
|
"aria-disabled": b || void 0,
|
|
9123
9131
|
disabled: b,
|
|
9124
|
-
className:
|
|
9132
|
+
className: M,
|
|
9125
9133
|
type: d,
|
|
9126
9134
|
ref: S,
|
|
9127
9135
|
children: [
|
|
@@ -9135,17 +9143,17 @@ const oi = Z(
|
|
|
9135
9143
|
}
|
|
9136
9144
|
);
|
|
9137
9145
|
oi.displayName = "PktButton";
|
|
9138
|
-
const
|
|
9146
|
+
const wh = Jt({
|
|
9139
9147
|
tagName: "pkt-card",
|
|
9140
9148
|
elementClass: lt,
|
|
9141
9149
|
react: mt,
|
|
9142
9150
|
displayName: "PktCard",
|
|
9143
9151
|
events: {}
|
|
9144
|
-
}),
|
|
9145
|
-
({ children: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9152
|
+
}), xh = Z(
|
|
9153
|
+
({ children: i, ...t }, e) => /* @__PURE__ */ h(wh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9146
9154
|
);
|
|
9147
|
-
|
|
9148
|
-
const
|
|
9155
|
+
xh.displayName = "PktCard";
|
|
9156
|
+
const Sh = Z(
|
|
9149
9157
|
({
|
|
9150
9158
|
id: i,
|
|
9151
9159
|
hasTile: t = !1,
|
|
@@ -9164,7 +9172,7 @@ const xh = Z(
|
|
|
9164
9172
|
optionalText: k = "Valgfritt",
|
|
9165
9173
|
requiredTag: w,
|
|
9166
9174
|
requiredText: S = "Må fylles ut",
|
|
9167
|
-
tagText:
|
|
9175
|
+
tagText: M,
|
|
9168
9176
|
...N
|
|
9169
9177
|
}, I) => {
|
|
9170
9178
|
const T = Bs(null);
|
|
@@ -9183,7 +9191,7 @@ const xh = Z(
|
|
|
9183
9191
|
t ? "pkt-input-check__input--tile" : "",
|
|
9184
9192
|
e && t ? "pkt-input-check__input--tile-disabled" : ""
|
|
9185
9193
|
].filter(Boolean).join(" "), pt = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ x(Wt, { children: [
|
|
9186
|
-
|
|
9194
|
+
M && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--gray", children: M }),
|
|
9187
9195
|
b && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--blue-light", children: k }),
|
|
9188
9196
|
w && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--beige", children: S })
|
|
9189
9197
|
] });
|
|
@@ -9216,8 +9224,8 @@ const xh = Z(
|
|
|
9216
9224
|
] }) });
|
|
9217
9225
|
}
|
|
9218
9226
|
);
|
|
9219
|
-
|
|
9220
|
-
const
|
|
9227
|
+
Sh.displayName = "PktCheckbox";
|
|
9228
|
+
const Ch = Jt({
|
|
9221
9229
|
tagName: "pkt-combobox",
|
|
9222
9230
|
elementClass: Q,
|
|
9223
9231
|
react: mt,
|
|
@@ -9231,11 +9239,11 @@ const Sh = Jt({
|
|
|
9231
9239
|
onValueChange: "value-change",
|
|
9232
9240
|
onToggleHelpText: "toggleHelpText"
|
|
9233
9241
|
}
|
|
9234
|
-
}),
|
|
9242
|
+
}), Th = Z(({ children: i, helptext: t, ...e }, s) => /* @__PURE__ */ x(Ch, { ...e, ref: s, children: [
|
|
9235
9243
|
t && /* @__PURE__ */ h("div", { slot: "helptext", className: "pkt-contents", children: t }),
|
|
9236
9244
|
i
|
|
9237
9245
|
] }));
|
|
9238
|
-
|
|
9246
|
+
Th.displayName = "PktCombobox";
|
|
9239
9247
|
const Hs = Jt({
|
|
9240
9248
|
tagName: "pkt-consent",
|
|
9241
9249
|
elementClass: Ht,
|
|
@@ -9246,7 +9254,7 @@ const Hs = Jt({
|
|
|
9246
9254
|
}
|
|
9247
9255
|
});
|
|
9248
9256
|
Hs.displayName = "PktConsent";
|
|
9249
|
-
const
|
|
9257
|
+
const Nh = Jt({
|
|
9250
9258
|
tagName: "pkt-datepicker",
|
|
9251
9259
|
elementClass: tt,
|
|
9252
9260
|
react: mt,
|
|
@@ -9258,11 +9266,11 @@ const Th = Jt({
|
|
|
9258
9266
|
onValueChange: "value-change",
|
|
9259
9267
|
onToggleHelpText: "toggleHelpText"
|
|
9260
9268
|
}
|
|
9261
|
-
}),
|
|
9262
|
-
({ helptext: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9269
|
+
}), Ah = Z(
|
|
9270
|
+
({ helptext: i, ...t }, e) => /* @__PURE__ */ h(Nh, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", slot: "helptext", children: i }) })
|
|
9263
9271
|
);
|
|
9264
|
-
|
|
9265
|
-
const
|
|
9272
|
+
Ah.displayName = "PktDatepicker";
|
|
9273
|
+
const Yd = ({
|
|
9266
9274
|
columnOne: i,
|
|
9267
9275
|
columnTwo: t,
|
|
9268
9276
|
socialLinks: e,
|
|
@@ -9281,7 +9289,7 @@ const Gd = ({
|
|
|
9281
9289
|
console.log(w.detail);
|
|
9282
9290
|
}
|
|
9283
9291
|
}) => {
|
|
9284
|
-
var S,
|
|
9292
|
+
var S, M;
|
|
9285
9293
|
const w = [s, "pkt-footer"].filter(Boolean).join(" ");
|
|
9286
9294
|
return /* @__PURE__ */ h("footer", { className: w, "data-mode": "dark", children: /* @__PURE__ */ x("div", { className: "pkt-footer__container", children: [
|
|
9287
9295
|
/* @__PURE__ */ x("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
@@ -9308,7 +9316,7 @@ const Gd = ({
|
|
|
9308
9316
|
/* @__PURE__ */ h("h2", { className: "pkt-footer__title", children: t.title }),
|
|
9309
9317
|
/* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
|
|
9310
9318
|
t.text && /* @__PURE__ */ h("li", { className: "pkt-footer__text", children: t.text }),
|
|
9311
|
-
(
|
|
9319
|
+
(M = t.links) == null ? void 0 : M.map((N, I) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
|
|
9312
9320
|
"a",
|
|
9313
9321
|
{
|
|
9314
9322
|
className: `pkt-footer__link ${N.external ? "pkt-link--external" : ""}`,
|
|
@@ -9392,7 +9400,7 @@ const Gd = ({
|
|
|
9392
9400
|
) }, `sociallinks-${I}`)) })
|
|
9393
9401
|
] })
|
|
9394
9402
|
] }) });
|
|
9395
|
-
},
|
|
9403
|
+
}, Zd = ({
|
|
9396
9404
|
links: i = [],
|
|
9397
9405
|
openLinksInNewTab: t = !1,
|
|
9398
9406
|
personvernOgInfoLink: e = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
@@ -9464,7 +9472,7 @@ const Gd = ({
|
|
|
9464
9472
|
}
|
|
9465
9473
|
) })
|
|
9466
9474
|
] }) }) });
|
|
9467
|
-
},
|
|
9475
|
+
}, Jd = Z(
|
|
9468
9476
|
({
|
|
9469
9477
|
className: i,
|
|
9470
9478
|
logoLink: t = "https://www.oslo.kommune.no/",
|
|
@@ -9483,7 +9491,7 @@ const Gd = ({
|
|
|
9483
9491
|
logOut: k,
|
|
9484
9492
|
changeRepresentation: w,
|
|
9485
9493
|
children: S,
|
|
9486
|
-
...
|
|
9494
|
+
...M
|
|
9487
9495
|
}, N) => {
|
|
9488
9496
|
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", {
|
|
9489
9497
|
year: "numeric",
|
|
@@ -9508,7 +9516,7 @@ const Gd = ({
|
|
|
9508
9516
|
return /* @__PURE__ */ x(
|
|
9509
9517
|
"header",
|
|
9510
9518
|
{
|
|
9511
|
-
...
|
|
9519
|
+
...M,
|
|
9512
9520
|
id: "pkt-header",
|
|
9513
9521
|
"data-testid": "pkt-header",
|
|
9514
9522
|
"aria-label": "Topp",
|
|
@@ -9650,14 +9658,14 @@ const Gd = ({
|
|
|
9650
9658
|
}
|
|
9651
9659
|
);
|
|
9652
9660
|
}
|
|
9653
|
-
),
|
|
9661
|
+
), Eh = Jt({
|
|
9654
9662
|
tagName: "pkt-heading",
|
|
9655
9663
|
elementClass: Ie,
|
|
9656
9664
|
react: mt,
|
|
9657
9665
|
displayName: "PktHeading"
|
|
9658
|
-
}),
|
|
9659
|
-
|
|
9660
|
-
const
|
|
9666
|
+
}), Oh = Z(({ children: i, ...t }, e) => /* @__PURE__ */ h(Eh, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
|
|
9667
|
+
Oh.displayName = "PktHeading";
|
|
9668
|
+
const Mh = Jt({
|
|
9661
9669
|
tagName: "pkt-helptext",
|
|
9662
9670
|
elementClass: ce,
|
|
9663
9671
|
react: mt,
|
|
@@ -9666,17 +9674,17 @@ const Oh = Jt({
|
|
|
9666
9674
|
onToggleHelpText: "toggleHelpText"
|
|
9667
9675
|
}
|
|
9668
9676
|
}), Ph = Z(
|
|
9669
|
-
({ children: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9677
|
+
({ children: i, ...t }, e) => /* @__PURE__ */ h(Mh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9670
9678
|
);
|
|
9671
9679
|
Ph.displayName = "PktHelptext";
|
|
9672
|
-
const
|
|
9680
|
+
const Dh = Z(
|
|
9673
9681
|
({ label: i, id: t, children: e, ...s }, a) => /* @__PURE__ */ x("div", { className: "pkt-form-group", children: [
|
|
9674
9682
|
/* @__PURE__ */ h("label", { htmlFor: t, className: "pkt-form-label", children: i }),
|
|
9675
9683
|
/* @__PURE__ */ h("input", { className: "pkt-form-input", id: t, ...s, ref: a }),
|
|
9676
9684
|
e
|
|
9677
9685
|
] })
|
|
9678
9686
|
);
|
|
9679
|
-
|
|
9687
|
+
Dh.displayName = "PktInput";
|
|
9680
9688
|
const ps = Z(
|
|
9681
9689
|
({
|
|
9682
9690
|
forId: i,
|
|
@@ -9696,7 +9704,7 @@ const ps = Z(
|
|
|
9696
9704
|
errorMessage: k,
|
|
9697
9705
|
disabled: w = !1,
|
|
9698
9706
|
inline: S = !1,
|
|
9699
|
-
ariaDescribedby:
|
|
9707
|
+
ariaDescribedby: M,
|
|
9700
9708
|
useWrapper: N = !0,
|
|
9701
9709
|
children: I,
|
|
9702
9710
|
className: T = "",
|
|
@@ -9704,7 +9712,7 @@ const ps = Z(
|
|
|
9704
9712
|
role: G = "group",
|
|
9705
9713
|
counterPosition: Ft = "bottom"
|
|
9706
9714
|
}, pt) => {
|
|
9707
|
-
const [J, st] = je(!1), At =
|
|
9715
|
+
const [J, st] = je(!1), At = M || (e ? `${i}-helptext` : void 0), Et = !!n, at = Et && Ft === "top", R = Et && Ft === "bottom", wt = () => st((ot) => !ot), Qt = [
|
|
9708
9716
|
"pkt-inputwrapper",
|
|
9709
9717
|
T,
|
|
9710
9718
|
b ? "pkt-inputwrapper--error" : "",
|
|
@@ -9766,7 +9774,7 @@ const ps = Z(
|
|
|
9766
9774
|
}
|
|
9767
9775
|
);
|
|
9768
9776
|
ps.displayName = "PktInputWrapper";
|
|
9769
|
-
const
|
|
9777
|
+
const Ih = ({
|
|
9770
9778
|
href: i,
|
|
9771
9779
|
iconName: t,
|
|
9772
9780
|
className: e,
|
|
@@ -9794,8 +9802,8 @@ const Dh = ({
|
|
|
9794
9802
|
]
|
|
9795
9803
|
}
|
|
9796
9804
|
);
|
|
9797
|
-
|
|
9798
|
-
const
|
|
9805
|
+
Ih.displayName = "PktLink";
|
|
9806
|
+
const Rh = ({
|
|
9799
9807
|
children: i,
|
|
9800
9808
|
skin: t,
|
|
9801
9809
|
title: e,
|
|
@@ -9823,18 +9831,18 @@ const Ih = ({
|
|
|
9823
9831
|
}
|
|
9824
9832
|
);
|
|
9825
9833
|
};
|
|
9826
|
-
|
|
9827
|
-
const
|
|
9834
|
+
Rh.displayName = "PktLinkCard";
|
|
9835
|
+
const Lh = Jt({
|
|
9828
9836
|
tagName: "pkt-loader",
|
|
9829
9837
|
elementClass: Yt,
|
|
9830
9838
|
react: mt,
|
|
9831
9839
|
displayName: "PktLoader",
|
|
9832
9840
|
events: {}
|
|
9833
|
-
}),
|
|
9834
|
-
({ children: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9841
|
+
}), Bh = Z(
|
|
9842
|
+
({ children: i, ...t }, e) => /* @__PURE__ */ h(Lh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9835
9843
|
);
|
|
9836
|
-
|
|
9837
|
-
const
|
|
9844
|
+
Bh.displayName = "PktLoader";
|
|
9845
|
+
const Vh = ({
|
|
9838
9846
|
children: i,
|
|
9839
9847
|
className: t,
|
|
9840
9848
|
skin: e,
|
|
@@ -9867,28 +9875,28 @@ const Bh = ({
|
|
|
9867
9875
|
/* @__PURE__ */ h("div", { className: "pkt-messagebox__text", children: i })
|
|
9868
9876
|
] });
|
|
9869
9877
|
};
|
|
9870
|
-
|
|
9871
|
-
const
|
|
9878
|
+
Vh.displayName = "PktMessagebox";
|
|
9879
|
+
const jh = Jt({
|
|
9872
9880
|
tagName: "pkt-modal",
|
|
9873
9881
|
elementClass: It,
|
|
9874
9882
|
react: mt,
|
|
9875
9883
|
displayName: "PktModal",
|
|
9876
9884
|
events: {}
|
|
9877
|
-
}),
|
|
9878
|
-
({ children: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9885
|
+
}), Fh = Z(
|
|
9886
|
+
({ children: i, ...t }, e) => /* @__PURE__ */ h(jh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9879
9887
|
);
|
|
9880
|
-
|
|
9881
|
-
const
|
|
9888
|
+
Fh.displayName = "PktModal";
|
|
9889
|
+
const Uh = Jt({
|
|
9882
9890
|
tagName: "pkt-progressbar",
|
|
9883
9891
|
elementClass: et,
|
|
9884
9892
|
react: mt,
|
|
9885
9893
|
displayName: "PktProgressbar",
|
|
9886
9894
|
events: {}
|
|
9887
|
-
}),
|
|
9888
|
-
({ children: i, ...t }, e) => /* @__PURE__ */ h(
|
|
9895
|
+
}), Hh = Z(
|
|
9896
|
+
({ children: i, ...t }, e) => /* @__PURE__ */ h(Uh, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
|
|
9889
9897
|
);
|
|
9890
|
-
|
|
9891
|
-
const
|
|
9898
|
+
Hh.displayName = "PktProgressbar";
|
|
9899
|
+
const qh = Z(
|
|
9892
9900
|
({
|
|
9893
9901
|
id: i,
|
|
9894
9902
|
name: t,
|
|
@@ -9907,7 +9915,7 @@ const Hh = Z(
|
|
|
9907
9915
|
tagText: k,
|
|
9908
9916
|
...w
|
|
9909
9917
|
}, S) => {
|
|
9910
|
-
const
|
|
9918
|
+
const M = [s, "pkt-input-check"].filter(Boolean).join(" "), N = [
|
|
9911
9919
|
"pkt-input-check__input",
|
|
9912
9920
|
a ? "pkt-input-check__input--tile" : "",
|
|
9913
9921
|
n && a ? "pkt-input-check__input--tile-disabled" : ""
|
|
@@ -9919,7 +9927,7 @@ const Hh = Z(
|
|
|
9919
9927
|
m && /* @__PURE__ */ h("span", { className: H + " pkt-tag--blue-light", children: f }),
|
|
9920
9928
|
y && /* @__PURE__ */ h("span", { className: H + " pkt-tag--beige", children: b })
|
|
9921
9929
|
] });
|
|
9922
|
-
return /* @__PURE__ */ h("div", { className:
|
|
9930
|
+
return /* @__PURE__ */ h("div", { className: M, children: /* @__PURE__ */ x("div", { className: N, children: [
|
|
9923
9931
|
/* @__PURE__ */ h(
|
|
9924
9932
|
"input",
|
|
9925
9933
|
{
|
|
@@ -9942,8 +9950,8 @@ const Hh = Z(
|
|
|
9942
9950
|
] }) });
|
|
9943
9951
|
}
|
|
9944
9952
|
);
|
|
9945
|
-
|
|
9946
|
-
const
|
|
9953
|
+
qh.displayName = "PktRadioButton";
|
|
9954
|
+
const Xd = Z(
|
|
9947
9955
|
({
|
|
9948
9956
|
appearance: i = "local",
|
|
9949
9957
|
disabled: t = !1,
|
|
@@ -9963,7 +9971,7 @@ const Jd = Z(
|
|
|
9963
9971
|
}, w) => {
|
|
9964
9972
|
const S = (T, H) => {
|
|
9965
9973
|
T ? T() : b && b(H);
|
|
9966
|
-
},
|
|
9974
|
+
}, M = (T) => {
|
|
9967
9975
|
d = T.target.value;
|
|
9968
9976
|
}, N = `pkt-searchinput pkt-searchinput--${i} ${e ? "pkt-searchinput--fullwidth" : ""}`;
|
|
9969
9977
|
let I;
|
|
@@ -9985,7 +9993,7 @@ const Jd = Z(
|
|
|
9985
9993
|
"aria-autocomplete": "list",
|
|
9986
9994
|
ref: w,
|
|
9987
9995
|
"aria-controls": `${s}-suggestions`,
|
|
9988
|
-
onChange: f ||
|
|
9996
|
+
onChange: f || M,
|
|
9989
9997
|
onKeyUp: y && ((T) => {
|
|
9990
9998
|
T.key === "Enter" && (T.preventDefault(), y(d));
|
|
9991
9999
|
}),
|
|
@@ -10026,7 +10034,7 @@ const Jd = Z(
|
|
|
10026
10034
|
] })
|
|
10027
10035
|
);
|
|
10028
10036
|
}
|
|
10029
|
-
),
|
|
10037
|
+
), Qd = Z(
|
|
10030
10038
|
({
|
|
10031
10039
|
ariaDescribedby: i,
|
|
10032
10040
|
ariaLabelledby: t,
|
|
@@ -10045,7 +10053,7 @@ const Jd = Z(
|
|
|
10045
10053
|
name: k,
|
|
10046
10054
|
optionalTag: w = !1,
|
|
10047
10055
|
optionalText: S,
|
|
10048
|
-
requiredTag:
|
|
10056
|
+
requiredTag: M = !1,
|
|
10049
10057
|
requiredText: N,
|
|
10050
10058
|
tagText: I,
|
|
10051
10059
|
...T
|
|
@@ -10062,7 +10070,7 @@ const Jd = Z(
|
|
|
10062
10070
|
helptextDropdownButton: p,
|
|
10063
10071
|
optionalTag: w,
|
|
10064
10072
|
optionalText: S,
|
|
10065
|
-
requiredTag:
|
|
10073
|
+
requiredTag: M,
|
|
10066
10074
|
requiredText: N,
|
|
10067
10075
|
tagText: I,
|
|
10068
10076
|
hasError: r,
|
|
@@ -10088,22 +10096,22 @@ const Jd = Z(
|
|
|
10088
10096
|
}
|
|
10089
10097
|
);
|
|
10090
10098
|
}
|
|
10091
|
-
),
|
|
10099
|
+
), zh = /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: /* @__PURE__ */ h("circle", { cx: "12", cy: "12", r: "7", style: { fill: "var(--pkt-color-grays-grey-200, #CCC)" } }) }), Wh = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
|
|
10092
10100
|
/* @__PURE__ */ h("circle", { opacity: ".15", cx: "12", cy: "12", r: "12", fill: "#2A2859" }),
|
|
10093
10101
|
/* @__PURE__ */ h("circle", { cx: "12", cy: "12", r: "6", fill: "#2A2859" })
|
|
10094
|
-
] }),
|
|
10102
|
+
] }), Kh = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
|
|
10095
10103
|
/* @__PURE__ */ h("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
|
|
10096
10104
|
/* @__PURE__ */ h("path", { d: "m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z", fill: "#F1FDFF" })
|
|
10097
|
-
] }),
|
|
10105
|
+
] }), tc = ({ children: i, className: t, status: e = "incomplete", title: s }) => /* @__PURE__ */ x("li", { className: ht("pkt-step", t, `pkt-step--${e}`), "data-testid": "pkt-step", children: [
|
|
10098
10106
|
/* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--1", "aria-hidden": !0 }),
|
|
10099
10107
|
/* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--2", "aria-hidden": !0 }),
|
|
10100
|
-
/* @__PURE__ */ h("span", { className: ht("pkt-step__indicator"), children: e === "current" ?
|
|
10108
|
+
/* @__PURE__ */ h("span", { className: ht("pkt-step__indicator"), children: e === "current" ? Wh : e === "completed" ? Kh : zh }),
|
|
10101
10109
|
/* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--3", "aria-hidden": !0 }),
|
|
10102
10110
|
/* @__PURE__ */ x("div", { className: "pkt-step__wrapper", children: [
|
|
10103
10111
|
/* @__PURE__ */ h("div", { className: "pkt-step__title", children: s }),
|
|
10104
10112
|
/* @__PURE__ */ h("div", { className: "pkt-step__content", children: i })
|
|
10105
10113
|
] })
|
|
10106
|
-
] }),
|
|
10114
|
+
] }), ec = Z(
|
|
10107
10115
|
({
|
|
10108
10116
|
activeStep: i,
|
|
10109
10117
|
className: t,
|
|
@@ -10125,7 +10133,7 @@ const Jd = Z(
|
|
|
10125
10133
|
}) : m);
|
|
10126
10134
|
return /* @__PURE__ */ h("ol", { "data-testid": "pkt-stepper", className: d, ref: l, ...r, children: p });
|
|
10127
10135
|
}
|
|
10128
|
-
),
|
|
10136
|
+
), ic = ({
|
|
10129
10137
|
className: i,
|
|
10130
10138
|
compact: t = !1,
|
|
10131
10139
|
skin: e = "basic",
|
|
@@ -10146,7 +10154,7 @@ const Jd = Z(
|
|
|
10146
10154
|
...n,
|
|
10147
10155
|
children: a
|
|
10148
10156
|
}
|
|
10149
|
-
),
|
|
10157
|
+
), sc = ({ id: i, children: t, className: e, ...s }) => /* @__PURE__ */ h("tbody", { id: i, className: ht(e, "pkt-table__body", {}), ...s, role: "rowgroup", children: t }), ac = ({ children: i, className: t, dataLabel: e, ...s }) => /* @__PURE__ */ h(
|
|
10150
10158
|
"td",
|
|
10151
10159
|
{
|
|
10152
10160
|
className: ht(t, "pkt-table__data-cell", {}),
|
|
@@ -10156,7 +10164,7 @@ const Jd = Z(
|
|
|
10156
10164
|
...s,
|
|
10157
10165
|
children: i
|
|
10158
10166
|
}
|
|
10159
|
-
),
|
|
10167
|
+
), nc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("thead", { className: ht(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), rc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("th", { className: ht(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), oc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("tr", { className: ht(i, "pkt-table__row", {}), role: "row", ...e, children: t }), hn = Z(
|
|
10160
10168
|
({
|
|
10161
10169
|
children: i,
|
|
10162
10170
|
skin: t,
|
|
@@ -10173,7 +10181,7 @@ const Jd = Z(
|
|
|
10173
10181
|
}, y) => {
|
|
10174
10182
|
const [b, k] = je(!1), w = Ls(() => {
|
|
10175
10183
|
k(!0), d && d();
|
|
10176
|
-
}, [k]), S = Bs(null),
|
|
10184
|
+
}, [k]), S = Bs(null), M = bn(() => {
|
|
10177
10185
|
var T, H;
|
|
10178
10186
|
if (a && !l) {
|
|
10179
10187
|
const G = (H = (T = S.current) == null ? void 0 : T.textContent) == null ? void 0 : H.trim();
|
|
@@ -10202,7 +10210,7 @@ const Jd = Z(
|
|
|
10202
10210
|
type: p,
|
|
10203
10211
|
onClick: w,
|
|
10204
10212
|
"aria-label": l,
|
|
10205
|
-
"aria-description":
|
|
10213
|
+
"aria-description": M,
|
|
10206
10214
|
ref: y,
|
|
10207
10215
|
children: [
|
|
10208
10216
|
r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r }),
|
|
@@ -10219,17 +10227,17 @@ const Jd = Z(
|
|
|
10219
10227
|
hn.displayName = "PktTag";
|
|
10220
10228
|
const dn = Z(
|
|
10221
10229
|
({ children: i, active: t, href: e, onClick: s, icon: a, controls: n, tag: r, tagSkin: l, index: d = 0 }, p) => {
|
|
10222
|
-
const { arrowNav: m, registerTabRef: f, handleKeyPress: y, selectTab: b } =
|
|
10230
|
+
const { arrowNav: m, registerTabRef: f, handleKeyPress: y, selectTab: b } = Gh(), w = {
|
|
10223
10231
|
"aria-selected": m ? !!t : void 0,
|
|
10224
10232
|
"aria-controls": n,
|
|
10225
10233
|
role: m ? "tab" : void 0,
|
|
10226
|
-
onKeyUp: (
|
|
10227
|
-
onClick: (
|
|
10228
|
-
b(d), s == null || s(
|
|
10234
|
+
onKeyUp: (M) => y(d, M),
|
|
10235
|
+
onClick: (M) => {
|
|
10236
|
+
b(d), s == null || s(M);
|
|
10229
10237
|
},
|
|
10230
10238
|
tabIndex: t || !m ? void 0 : -1,
|
|
10231
|
-
ref: (
|
|
10232
|
-
f(d,
|
|
10239
|
+
ref: (M) => {
|
|
10240
|
+
f(d, M), typeof p == "function" ? p(M) : p && (p.current = M);
|
|
10233
10241
|
}
|
|
10234
10242
|
}, S = /* @__PURE__ */ x(Wt, { children: [
|
|
10235
10243
|
a && /* @__PURE__ */ h(L, { name: a, className: "pkt-icon--small" }),
|
|
@@ -10240,12 +10248,12 @@ const dn = Z(
|
|
|
10240
10248
|
}
|
|
10241
10249
|
);
|
|
10242
10250
|
dn.displayName = "PktTabItem";
|
|
10243
|
-
const cn = Oa(null),
|
|
10244
|
-
const i =
|
|
10251
|
+
const cn = Oa(null), Gh = () => {
|
|
10252
|
+
const i = Ma(cn);
|
|
10245
10253
|
if (!i)
|
|
10246
10254
|
throw new Error("TabItem must be used within a Tabs component");
|
|
10247
10255
|
return i;
|
|
10248
|
-
},
|
|
10256
|
+
}, lc = Z(
|
|
10249
10257
|
({ arrowNav: i = !0, disableArrowNav: t = !1, tabs: e, onTabSelected: s, children: a }, n) => {
|
|
10250
10258
|
const r = Bs([]), l = i && !t, p = a && Os.count(a) > 0 ? Os.count(a) : (e == null ? void 0 : e.length) || 0;
|
|
10251
10259
|
Qe(() => {
|
|
@@ -10255,12 +10263,12 @@ const cn = Oa(null), Kh = () => {
|
|
|
10255
10263
|
const w = e == null ? void 0 : e[k];
|
|
10256
10264
|
w != null && w.action && w.action(k), s && s(k);
|
|
10257
10265
|
}, f = (k, w) => {
|
|
10258
|
-
var S,
|
|
10259
|
-
l && (w.code === "ArrowLeft" && k !== 0 && ((S = r.current[k - 1]) == null || S.focus()), w.code === "ArrowRight" && k < p - 1 && ((
|
|
10266
|
+
var S, M;
|
|
10267
|
+
l && (w.code === "ArrowLeft" && k !== 0 && ((S = r.current[k - 1]) == null || S.focus()), w.code === "ArrowRight" && k < p - 1 && ((M = r.current[k + 1]) == null || M.focus()), (w.code === "ArrowDown" || w.code === "Space") && m(k));
|
|
10260
10268
|
}, y = (k, w) => {
|
|
10261
10269
|
r.current[k] = w;
|
|
10262
10270
|
}, b = e == null ? void 0 : e.map((k, w) => {
|
|
10263
|
-
var S,
|
|
10271
|
+
var S, M;
|
|
10264
10272
|
return /* @__PURE__ */ h(
|
|
10265
10273
|
dn,
|
|
10266
10274
|
{
|
|
@@ -10270,7 +10278,7 @@ const cn = Oa(null), Kh = () => {
|
|
|
10270
10278
|
icon: k.icon,
|
|
10271
10279
|
controls: k.controls,
|
|
10272
10280
|
tag: (S = k.tag) == null ? void 0 : S.text,
|
|
10273
|
-
tagSkin: (
|
|
10281
|
+
tagSkin: (M = k.tag) == null ? void 0 : M.skin,
|
|
10274
10282
|
index: w,
|
|
10275
10283
|
children: k.text
|
|
10276
10284
|
},
|
|
@@ -10279,7 +10287,7 @@ const cn = Oa(null), Kh = () => {
|
|
|
10279
10287
|
});
|
|
10280
10288
|
return /* @__PURE__ */ h(cn.Provider, { value: { arrowNav: l, registerTabRef: y, handleKeyPress: f, selectTab: m }, children: /* @__PURE__ */ h("div", { className: "pkt-tabs", ref: n, children: /* @__PURE__ */ h("div", { className: "pkt-tabs__list", role: l ? "tablist" : "navigation", children: a || b }) }) });
|
|
10281
10289
|
}
|
|
10282
|
-
),
|
|
10290
|
+
), hc = Z(
|
|
10283
10291
|
({
|
|
10284
10292
|
id: i,
|
|
10285
10293
|
ariaDescribedby: t,
|
|
@@ -10298,7 +10306,7 @@ const cn = Oa(null), Kh = () => {
|
|
|
10298
10306
|
label: k,
|
|
10299
10307
|
name: w,
|
|
10300
10308
|
optionalTag: S = !1,
|
|
10301
|
-
optionalText:
|
|
10309
|
+
optionalText: M,
|
|
10302
10310
|
requiredTag: N = !1,
|
|
10303
10311
|
requiredText: I,
|
|
10304
10312
|
tagText: T = null,
|
|
@@ -10336,7 +10344,7 @@ const cn = Oa(null), Kh = () => {
|
|
|
10336
10344
|
inline: y,
|
|
10337
10345
|
label: k,
|
|
10338
10346
|
optionalTag: S,
|
|
10339
|
-
optionalText:
|
|
10347
|
+
optionalText: M,
|
|
10340
10348
|
requiredTag: N,
|
|
10341
10349
|
requiredText: I,
|
|
10342
10350
|
tagText: T,
|
|
@@ -10369,7 +10377,7 @@ const cn = Oa(null), Kh = () => {
|
|
|
10369
10377
|
}
|
|
10370
10378
|
);
|
|
10371
10379
|
}
|
|
10372
|
-
),
|
|
10380
|
+
), dc = Z(
|
|
10373
10381
|
({
|
|
10374
10382
|
id: i,
|
|
10375
10383
|
ariaDescribedby: t,
|
|
@@ -10388,7 +10396,7 @@ const cn = Oa(null), Kh = () => {
|
|
|
10388
10396
|
inline: k = !1,
|
|
10389
10397
|
fullwidth: w = !1,
|
|
10390
10398
|
label: S,
|
|
10391
|
-
name:
|
|
10399
|
+
name: M,
|
|
10392
10400
|
optionalTag: N = !1,
|
|
10393
10401
|
optionalText: I,
|
|
10394
10402
|
requiredTag: T = !1,
|
|
@@ -10458,7 +10466,7 @@ const cn = Oa(null), Kh = () => {
|
|
|
10458
10466
|
ref: he,
|
|
10459
10467
|
className: `pkt-input ${w ? "pkt-input--fullwidth" : ""} ${n && Hi > n ? "pkt-input--counter-error" : ""}`,
|
|
10460
10468
|
type: st,
|
|
10461
|
-
name: `${
|
|
10469
|
+
name: `${M || i}`,
|
|
10462
10470
|
value: ms,
|
|
10463
10471
|
id: Ke,
|
|
10464
10472
|
placeholder: Ft,
|
|
@@ -10493,44 +10501,44 @@ const cn = Oa(null), Kh = () => {
|
|
|
10493
10501
|
);
|
|
10494
10502
|
export {
|
|
10495
10503
|
yn as PktAccordion,
|
|
10496
|
-
|
|
10504
|
+
bh as PktAccordionItem,
|
|
10497
10505
|
ln as PktAlert,
|
|
10498
|
-
|
|
10499
|
-
|
|
10506
|
+
_h as PktBackLink,
|
|
10507
|
+
Gd as PktBreadcrumbs,
|
|
10500
10508
|
oi as PktButton,
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10509
|
+
xh as PktCard,
|
|
10510
|
+
Sh as PktCheckbox,
|
|
10511
|
+
Th as PktCombobox,
|
|
10504
10512
|
Hs as PktConsent,
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10513
|
+
Ah as PktDatepicker,
|
|
10514
|
+
Yd as PktFooter,
|
|
10515
|
+
Zd as PktFooterSimple,
|
|
10516
|
+
Jd as PktHeader,
|
|
10517
|
+
Oh as PktHeading,
|
|
10510
10518
|
Ph as PktHelptext,
|
|
10511
10519
|
L as PktIcon,
|
|
10512
|
-
|
|
10520
|
+
Dh as PktInput,
|
|
10513
10521
|
ps as PktInputWrapper,
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10522
|
+
Ih as PktLink,
|
|
10523
|
+
Rh as PktLinkCard,
|
|
10524
|
+
Bh as PktLoader,
|
|
10525
|
+
Vh as PktMessagebox,
|
|
10526
|
+
Fh as PktModal,
|
|
10527
|
+
Hh as PktProgressbar,
|
|
10528
|
+
qh as PktRadioButton,
|
|
10529
|
+
Xd as PktSearchInput,
|
|
10530
|
+
Qd as PktSelect,
|
|
10531
|
+
tc as PktStep,
|
|
10532
|
+
ec as PktStepper,
|
|
10525
10533
|
dn as PktTabItem,
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10534
|
+
ic as PktTable,
|
|
10535
|
+
sc as PktTableBody,
|
|
10536
|
+
ac as PktTableDataCell,
|
|
10537
|
+
nc as PktTableHeader,
|
|
10538
|
+
rc as PktTableHeaderCell,
|
|
10539
|
+
oc as PktTableRow,
|
|
10540
|
+
lc as PktTabs,
|
|
10533
10541
|
hn as PktTag,
|
|
10534
|
-
|
|
10535
|
-
|
|
10542
|
+
hc as PktTextarea,
|
|
10543
|
+
dc as PktTextinput
|
|
10536
10544
|
};
|