@oslokommune/punkt-elements 16.7.0 → 16.7.3
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 +34 -0
- package/dist/accordionitem-_9AiCIvd.cjs +34 -0
- package/dist/{accordionitem-ZlaXvjt5.js → accordionitem-dCfSrxh5.js} +57 -55
- package/dist/alert-BtOk8yRH.cjs +33 -0
- package/dist/{alert-BuAXrnKl.js → alert-DlY2_grU.js} +48 -46
- package/dist/backlink-Ce5Vldop.js +49 -0
- package/dist/backlink-y3dwjKPC.cjs +13 -0
- package/dist/button-B_TXwNzt.cjs +27 -0
- package/dist/{button-DEyvt1LI.js → button-BiY-wlKF.js} +79 -77
- package/dist/calendar-B2pji2zn.cjs +90 -0
- package/dist/{calendar-S63oreVW.js → calendar-DhjQDC4C.js} +689 -687
- package/dist/card-BwMNB5Bb.cjs +87 -0
- package/dist/{card-DDiLfuO4.js → card-CGlmcMSR.js} +99 -97
- package/dist/checkbox-BsJZYA26.js +147 -0
- package/dist/checkbox-CTY8f_qn.cjs +31 -0
- package/dist/{combobox-BmxSecfE.js → combobox-DSB5WOxg.js} +223 -226
- package/dist/{combobox-Hb2V-fPX.cjs → combobox-DbICIgKG.cjs} +4 -4
- package/dist/consent-DkOQpbsg.cjs +11 -0
- package/dist/{consent-iXyx5v6J.js → consent-SNWV_mMU.js} +48 -46
- package/dist/datepicker-BEWl9iz3.cjs +273 -0
- package/dist/{datepicker-CZl7b8Na.js → datepicker-euHyzXnb.js} +341 -329
- package/dist/{heading-CKt7cVn7.js → heading-D2tVS6lS.js} +30 -28
- package/dist/heading-DrzbgDb6.cjs +1 -0
- package/dist/helptext-BKtU4mas.js +82 -0
- package/dist/helptext-DcRC7wW2.cjs +24 -0
- package/dist/icon-CxQcIa5F.js +105 -0
- package/dist/icon-q81vqPK_.cjs +9 -0
- package/dist/input-wrapper-Bs4CRNst.js +181 -0
- package/dist/input-wrapper-Bv9aqqVq.cjs +54 -0
- package/dist/link-C0rl-86s.cjs +7 -0
- package/dist/link-Cdqgl60z.js +55 -0
- package/dist/linkcard-Dimu7Rlx.cjs +13 -0
- package/dist/linkcard-Lbq_UhjZ.js +56 -0
- package/dist/{listbox-BQKDZvZn.js → listbox-Bia4_tvN.js} +131 -129
- package/dist/listbox-La2GZQei.cjs +106 -0
- package/dist/loader-D1ugDXGV.cjs +16 -0
- package/dist/{loader-Ci3CHU8k.js → loader-DyN6RGC5.js} +51 -49
- package/dist/messagebox-BGMVm2t9.js +71 -0
- package/dist/messagebox-M0yIgCz9.cjs +13 -0
- package/dist/modal-CMO1RtIi.cjs +36 -0
- package/dist/{modal-DzGe1g8Z.js → modal-DjPQDE-Z.js} +53 -51
- package/dist/pkt-accordion.cjs +1 -1
- package/dist/pkt-accordion.js +2 -2
- package/dist/pkt-alert.cjs +1 -1
- package/dist/pkt-alert.js +3 -4
- package/dist/pkt-backlink.cjs +1 -1
- package/dist/pkt-backlink.js +2 -3
- package/dist/pkt-breadcrumbs.cjs +11 -11
- package/dist/pkt-breadcrumbs.js +30 -28
- package/dist/pkt-button.cjs +1 -1
- package/dist/pkt-button.js +3 -4
- package/dist/pkt-calendar.cjs +1 -1
- package/dist/pkt-calendar.js +2 -3
- package/dist/pkt-card.cjs +1 -1
- package/dist/pkt-card.js +2 -3
- package/dist/pkt-checkbox.cjs +1 -1
- package/dist/pkt-checkbox.js +3 -4
- package/dist/pkt-combobox.cjs +1 -1
- package/dist/pkt-combobox.js +3 -4
- package/dist/pkt-consent.cjs +1 -1
- package/dist/pkt-consent.js +2 -3
- package/dist/pkt-datepicker.cjs +1 -1
- package/dist/pkt-datepicker.js +7 -8
- package/dist/pkt-header.cjs +35 -35
- package/dist/pkt-header.js +224 -218
- package/dist/pkt-heading.cjs +1 -1
- package/dist/pkt-heading.js +3 -4
- package/dist/pkt-helptext.cjs +1 -1
- package/dist/pkt-helptext.js +3 -4
- package/dist/pkt-icon.cjs +1 -1
- package/dist/pkt-icon.js +3 -4
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +26 -26
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +2 -3
- package/dist/pkt-link.cjs +1 -1
- package/dist/pkt-link.js +2 -3
- package/dist/pkt-linkcard.cjs +1 -1
- package/dist/pkt-linkcard.js +3 -4
- package/dist/pkt-listbox.cjs +1 -1
- package/dist/pkt-listbox.js +3 -4
- package/dist/pkt-loader.cjs +1 -1
- package/dist/pkt-loader.js +3 -4
- package/dist/pkt-messagebox.cjs +1 -1
- package/dist/pkt-messagebox.js +3 -4
- package/dist/pkt-modal.cjs +1 -1
- package/dist/pkt-modal.js +3 -4
- package/dist/pkt-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +2 -3
- package/dist/pkt-radiobutton.cjs +1 -1
- package/dist/pkt-radiobutton.js +3 -4
- package/dist/pkt-select.cjs +1 -1
- package/dist/pkt-select.js +3 -4
- package/dist/pkt-tabs.cjs +1 -1
- package/dist/pkt-tabs.js +2 -2
- package/dist/pkt-tag.cjs +1 -1
- package/dist/pkt-tag.js +3 -4
- package/dist/pkt-textarea.cjs +1 -1
- package/dist/pkt-textarea.js +3 -4
- package/dist/pkt-textinput.cjs +1 -1
- package/dist/pkt-textinput.js +3 -4
- package/dist/pkt-timepicker.cjs +22 -19
- package/dist/pkt-timepicker.js +84 -76
- package/dist/progressbar-BqlMzkM_.cjs +21 -0
- package/dist/{progressbar-By7e0lEI.js → progressbar-sbHDFC12.js} +88 -88
- package/dist/radiobutton-5ZqVVtTT.cjs +31 -0
- package/dist/{radiobutton-6frNG9J_.js → radiobutton-D8Ai8ETa.js} +44 -42
- package/dist/select-De-n8on9.js +230 -0
- package/dist/select-dTWibR6_.cjs +49 -0
- package/dist/tabitem-B9-jeV97.js +334 -0
- package/dist/tabitem-BnhzqfW3.cjs +65 -0
- package/dist/tag-CbwO8yvD.cjs +27 -0
- package/dist/{tag-BuCpqaks.js → tag-D4FI5t3y.js} +42 -40
- package/dist/textarea-BmLaKzsc.cjs +50 -0
- package/dist/{textarea-Bzuymclz.js → textarea-CMiSJaYL.js} +62 -60
- package/dist/textinput-em9y4yrL.cjs +70 -0
- package/dist/{textinput-9lHjs4ce.js → textinput-r8udK0IX.js} +57 -55
- package/package.json +2 -2
- package/src/components/accordion/accordion.ts +6 -1
- package/src/components/accordion/accordionitem.ts +6 -1
- package/src/components/alert/alert.ts +6 -1
- package/src/components/backlink/backlink.ts +6 -1
- package/src/components/breadcrumbs/breadcrumbs.ts +6 -1
- package/src/components/button/button.ts +6 -1
- package/src/components/calendar/calendar.ts +6 -1
- package/src/components/card/card.ts +6 -1
- package/src/components/checkbox/checkbox.ts +6 -1
- package/src/components/combobox/combobox.ts +6 -1
- package/src/components/consent/consent.ts +6 -1
- package/src/components/datepicker/date-tags.ts +6 -1
- package/src/components/datepicker/datepicker-multiple.ts +6 -1
- package/src/components/datepicker/datepicker-popup.ts +6 -1
- package/src/components/datepicker/datepicker-range.ts +6 -1
- package/src/components/datepicker/datepicker-single.ts +6 -1
- package/src/components/datepicker/datepicker.ts +6 -1
- package/src/components/header/header-service.ts +6 -1
- package/src/components/header/header-user-menu.ts +6 -1
- package/src/components/header/header.ts +6 -1
- package/src/components/heading/heading.ts +6 -1
- package/src/components/helptext/helptext.ts +6 -1
- package/src/components/icon/icon.ts +6 -1
- package/src/components/input-wrapper/input-wrapper.ts +6 -1
- package/src/components/link/link.ts +6 -1
- package/src/components/linkcard/linkcard.ts +6 -1
- package/src/components/listbox/listbox.ts +6 -1
- package/src/components/loader/loader.ts +6 -1
- package/src/components/messagebox/messagebox.ts +6 -1
- package/src/components/modal/modal.ts +6 -1
- package/src/components/progressbar/progressbar.ts +6 -1
- package/src/components/radiobutton/radiobutton.ts +6 -1
- package/src/components/select/select.ts +6 -1
- package/src/components/tabs/tabitem.ts +6 -1
- package/src/components/tabs/tabs.ts +6 -1
- package/src/components/tag/tag.ts +6 -1
- package/src/components/textarea/textarea.ts +6 -1
- package/src/components/textinput/textinput.ts +6 -1
- package/src/components/timepicker/timepicker.ts +14 -2
- package/dist/accordionitem-D1Agl1bB.cjs +0 -34
- package/dist/alert-DFkFNTxh.cjs +0 -33
- package/dist/backlink-EiAXUUZP.cjs +0 -13
- package/dist/backlink-V4DAt17e.js +0 -47
- package/dist/button-DYv5Dg4M.cjs +0 -27
- package/dist/calendar-HIE9nxcc.cjs +0 -90
- package/dist/card-CyeH6l1c.cjs +0 -87
- package/dist/checkbox-BLlwTABj.cjs +0 -31
- package/dist/checkbox-ejBUa5qQ.js +0 -145
- package/dist/consent-ruWAEVXW.cjs +0 -11
- package/dist/datepicker-D2H7U6MS.cjs +0 -273
- package/dist/heading-Cvz8m1xL.cjs +0 -1
- package/dist/helptext-5Mzp65-F.cjs +0 -24
- package/dist/helptext-jIoWRcCF.js +0 -80
- package/dist/icon-BlKA8YuW.js +0 -103
- package/dist/icon-Bqj9oBbl.cjs +0 -9
- package/dist/input-wrapper-B0MkQ0IZ.cjs +0 -54
- package/dist/input-wrapper-B2JpK016.js +0 -179
- package/dist/link-R_lNhViF.cjs +0 -7
- package/dist/link-Z_GizclR.js +0 -53
- package/dist/linkcard-BlQvdB1a.js +0 -54
- package/dist/linkcard-C7HbSLlX.cjs +0 -13
- package/dist/listbox-CGgV9MAe.cjs +0 -106
- package/dist/loader-e2gs_1xz.cjs +0 -16
- package/dist/messagebox-Bf-XMlvW.js +0 -69
- package/dist/messagebox-D67w71VX.cjs +0 -13
- package/dist/modal-CyvEkbfQ.cjs +0 -36
- package/dist/progressbar-DsJ2B9Vm.cjs +0 -21
- package/dist/radiobutton-Bv-BZ1Hw.cjs +0 -31
- package/dist/select-CXZt1nHS.js +0 -228
- package/dist/select-WFhS4Vfp.cjs +0 -49
- package/dist/tabitem-CB8wkKmv.js +0 -332
- package/dist/tabitem-DZpspU4Q.cjs +0 -65
- package/dist/tag-X6xdjR0N.cjs +0 -27
- package/dist/textarea-DoeHJ7HR.cjs +0 -50
- package/dist/textinput-BNsLd26i.cjs +0 -70
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { P as
|
|
2
|
-
import { e as
|
|
3
|
-
import {
|
|
4
|
-
import { r as
|
|
5
|
-
import "./icon-
|
|
6
|
-
var
|
|
7
|
-
for (var
|
|
8
|
-
(
|
|
9
|
-
return
|
|
1
|
+
import { P as h, s as u } from "./element-with-slot-Dqk6-TRR.js";
|
|
2
|
+
import { e as d } from "./class-map-CEnykyO_.js";
|
|
3
|
+
import { t as m, A as y, b as l, n as s } from "./element-CPpT3rFQ.js";
|
|
4
|
+
import { r as c } from "./state-C_1EOo3D.js";
|
|
5
|
+
import "./icon-CxQcIa5F.js";
|
|
6
|
+
var k = Object.defineProperty, i = (o, e, r, g) => {
|
|
7
|
+
for (var a = void 0, n = o.length - 1, p; n >= 0; n--)
|
|
8
|
+
(p = o[n]) && (a = p(e, r, a) || a);
|
|
9
|
+
return a && k(e, r, a), a;
|
|
10
10
|
};
|
|
11
11
|
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/latest/animations/";
|
|
12
|
-
|
|
12
|
+
class t extends h {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments), this.delay = 0, this.inline = !1, this.isLoading = !0, this.message = null, this.size = "medium", this.variant = "shapes", this.loadingAnimationPath = window.pktAnimationPath, this._shouldDisplayLoader = !1;
|
|
15
15
|
}
|
|
16
16
|
connectedCallback() {
|
|
17
17
|
super.connectedCallback(), this._shouldDisplayLoader = this.delay === 0, this.delay > 0 && this.setupLoader();
|
|
18
18
|
}
|
|
19
|
-
updated(
|
|
20
|
-
|
|
19
|
+
updated(e) {
|
|
20
|
+
e.has("delay") && this.setupLoader();
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
const
|
|
23
|
+
const e = d({
|
|
24
24
|
"pkt-loader": !0,
|
|
25
25
|
[`pkt-loader--${this.inline ? "inline" : "box"}`]: !0,
|
|
26
26
|
[`pkt-loader--${this.size}`]: !0
|
|
27
|
-
}),
|
|
27
|
+
}), r = d({
|
|
28
28
|
"pkt-contents": !0,
|
|
29
29
|
"pkt-hide": this.isLoading
|
|
30
30
|
});
|
|
31
|
-
return
|
|
31
|
+
return l`<div
|
|
32
32
|
role="status"
|
|
33
33
|
aria-live="polite"
|
|
34
34
|
aria-busy=${this.isLoading ? "true" : "false"}
|
|
35
|
-
class=${
|
|
35
|
+
class=${e}
|
|
36
36
|
>
|
|
37
|
-
${this.isLoading && this._shouldDisplayLoader ?
|
|
37
|
+
${this.isLoading && this._shouldDisplayLoader ? l`<div class="pkt-loader__spinner">
|
|
38
38
|
<pkt-icon
|
|
39
39
|
name=${this.getVariant(this.variant)}
|
|
40
40
|
path=${this.loadingAnimationPath}
|
|
41
41
|
class="pkt-loader__svg pkt-loader__${this.variant}"
|
|
42
42
|
></pkt-icon>
|
|
43
|
-
${this.message &&
|
|
43
|
+
${this.message && l`<p>${this.message}</p>`}
|
|
44
44
|
</div>` : y}
|
|
45
|
-
<div class=${
|
|
45
|
+
<div class=${r}>${u(this)}</div>
|
|
46
46
|
</div>`;
|
|
47
47
|
}
|
|
48
|
-
getVariant(
|
|
49
|
-
switch (
|
|
48
|
+
getVariant(e) {
|
|
49
|
+
switch (e) {
|
|
50
50
|
case "blue":
|
|
51
51
|
return "spinner-blue";
|
|
52
52
|
case "rainbow":
|
|
@@ -60,34 +60,36 @@ let t = class extends u {
|
|
|
60
60
|
this._shouldDisplayLoader = !0, this.requestUpdate();
|
|
61
61
|
}, this.delay));
|
|
62
62
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
], t.prototype, "delay"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
], t.prototype, "inline"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
], t.prototype, "isLoading"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
], t.prototype, "message"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
], t.prototype, "size"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
], t.prototype, "variant"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
], t.prototype, "loadingAnimationPath"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
], t.prototype, "_shouldDisplayLoader"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
63
|
+
}
|
|
64
|
+
i([
|
|
65
|
+
s({ type: Number })
|
|
66
|
+
], t.prototype, "delay");
|
|
67
|
+
i([
|
|
68
|
+
s({ type: Boolean })
|
|
69
|
+
], t.prototype, "inline");
|
|
70
|
+
i([
|
|
71
|
+
s({ type: Boolean })
|
|
72
|
+
], t.prototype, "isLoading");
|
|
73
|
+
i([
|
|
74
|
+
s({ type: String })
|
|
75
|
+
], t.prototype, "message");
|
|
76
|
+
i([
|
|
77
|
+
s({ type: String })
|
|
78
|
+
], t.prototype, "size");
|
|
79
|
+
i([
|
|
80
|
+
s({ type: String })
|
|
81
|
+
], t.prototype, "variant");
|
|
82
|
+
i([
|
|
83
|
+
s({ type: String })
|
|
84
|
+
], t.prototype, "loadingAnimationPath");
|
|
85
|
+
i([
|
|
86
|
+
c()
|
|
87
|
+
], t.prototype, "_shouldDisplayLoader");
|
|
88
|
+
try {
|
|
89
|
+
m("pkt-loader")(t);
|
|
90
|
+
} catch {
|
|
91
|
+
console.warn("Forsøker å definere <pkt-loader>, men den er allerede definert");
|
|
92
|
+
}
|
|
91
93
|
export {
|
|
92
94
|
t as P
|
|
93
95
|
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { P as b, s as m } from "./element-with-slot-Dqk6-TRR.js";
|
|
2
|
+
import { t as u, A as d, b as r, n as l } from "./element-CPpT3rFQ.js";
|
|
3
|
+
import { e as k } from "./class-map-CEnykyO_.js";
|
|
4
|
+
import { r as h } from "./state-C_1EOo3D.js";
|
|
5
|
+
import "./icon-CxQcIa5F.js";
|
|
6
|
+
import { u as f } from "./classutils-RQs1k6D9.js";
|
|
7
|
+
const _ = { skin: { default: "beige" }, compact: { default: !1 }, closable: { default: !1 } }, p = {
|
|
8
|
+
props: _
|
|
9
|
+
};
|
|
10
|
+
var v = Object.defineProperty, o = (i, t, c, g) => {
|
|
11
|
+
for (var e = void 0, a = i.length - 1, n; a >= 0; a--)
|
|
12
|
+
(n = i[a]) && (e = n(t, c, e) || e);
|
|
13
|
+
return e && v(t, c, e), e;
|
|
14
|
+
};
|
|
15
|
+
class s extends b {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(), this.closable = p.props.closable.default, this.compact = p.props.compact.default, this.title = "", this.skin = p.props.skin.default, this._isClosed = !1, this.close = (t) => {
|
|
18
|
+
this._isClosed = !0, this.dispatchEvent(new CustomEvent("close", { detail: { origin: t }, bubbles: !0 })), this.dispatchEvent(new CustomEvent("on-close", { detail: { origin: t }, bubbles: !0 }));
|
|
19
|
+
}, this._isClosed = !1;
|
|
20
|
+
}
|
|
21
|
+
// Lifecycle
|
|
22
|
+
updated(t) {
|
|
23
|
+
super.updated(t), t.has("_isClosed") && f(this, "pkt-hide", this._isClosed);
|
|
24
|
+
}
|
|
25
|
+
// Render
|
|
26
|
+
render() {
|
|
27
|
+
const t = {
|
|
28
|
+
"pkt-messagebox": !0,
|
|
29
|
+
"pkt-messagebox--compact": this.compact,
|
|
30
|
+
[`pkt-messagebox--${this.skin}`]: this.skin,
|
|
31
|
+
"pkt-messagebox--closable": this.closable,
|
|
32
|
+
"pkt-hide": this._isClosed
|
|
33
|
+
};
|
|
34
|
+
return r`<div class=${k(t)}>
|
|
35
|
+
${this.closable ? r`<div class="pkt-messagebox__close">
|
|
36
|
+
<button
|
|
37
|
+
@click=${this.close}
|
|
38
|
+
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
39
|
+
aria-label="Lukk"
|
|
40
|
+
>
|
|
41
|
+
<pkt-icon name="close" class="pkt-link__icon"></pkt-icon>
|
|
42
|
+
</button>
|
|
43
|
+
</div>` : d}
|
|
44
|
+
${this.title ? r`<div class="pkt-messagebox__title">${this.title}</div>` : d}
|
|
45
|
+
<div class="pkt-messagebox__text">${m(this)}</div>
|
|
46
|
+
</div>`;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
o([
|
|
50
|
+
l({ type: Boolean, reflect: !0 })
|
|
51
|
+
], s.prototype, "closable");
|
|
52
|
+
o([
|
|
53
|
+
l({ type: Boolean, reflect: !0 })
|
|
54
|
+
], s.prototype, "compact");
|
|
55
|
+
o([
|
|
56
|
+
l({ type: String, reflect: !0 })
|
|
57
|
+
], s.prototype, "title");
|
|
58
|
+
o([
|
|
59
|
+
l({ type: String, reflect: !0 })
|
|
60
|
+
], s.prototype, "skin");
|
|
61
|
+
o([
|
|
62
|
+
h()
|
|
63
|
+
], s.prototype, "_isClosed");
|
|
64
|
+
try {
|
|
65
|
+
u("pkt-messagebox")(s);
|
|
66
|
+
} catch {
|
|
67
|
+
console.warn("Forsøker å definere <pkt-messagebox>, men den er allerede definert");
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
s as P
|
|
71
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";const p=require("./element-with-slot-ZX-up7jO.cjs"),t=require("./element-gR_VtSiD.cjs"),d=require("./class-map-CsENJXf1.cjs"),u=require("./state-Dg-53wQ8.cjs");require("./icon-q81vqPK_.cjs");const b=require("./classutils-BwNK82ZQ.cjs"),k={skin:{default:"beige"},compact:{default:!1},closable:{default:!1}},r={props:k};var h=Object.defineProperty,o=(l,e,c,m)=>{for(var i=void 0,a=l.length-1,n;a>=0;a--)(n=l[a])&&(i=n(e,c,i)||i);return i&&h(e,c,i),i};class s extends p.PktElementWithSlot{constructor(){super(),this.closable=r.props.closable.default,this.compact=r.props.compact.default,this.title="",this.skin=r.props.skin.default,this._isClosed=!1,this.close=e=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:e},bubbles:!0}))},this._isClosed=!1}updated(e){super.updated(e),e.has("_isClosed")&&b.updateClassAttribute(this,"pkt-hide",this._isClosed)}render(){const e={"pkt-messagebox":!0,"pkt-messagebox--compact":this.compact,[`pkt-messagebox--${this.skin}`]:this.skin,"pkt-messagebox--closable":this.closable,"pkt-hide":this._isClosed};return t.b`<div class=${d.e(e)}>
|
|
2
|
+
${this.closable?t.b`<div class="pkt-messagebox__close">
|
|
3
|
+
<button
|
|
4
|
+
@click=${this.close}
|
|
5
|
+
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
6
|
+
aria-label="Lukk"
|
|
7
|
+
>
|
|
8
|
+
<pkt-icon name="close" class="pkt-link__icon"></pkt-icon>
|
|
9
|
+
</button>
|
|
10
|
+
</div>`:t.A}
|
|
11
|
+
${this.title?t.b`<div class="pkt-messagebox__title">${this.title}</div>`:t.A}
|
|
12
|
+
<div class="pkt-messagebox__text">${p.slotContent(this)}</div>
|
|
13
|
+
</div>`}}o([t.n({type:Boolean,reflect:!0})],s.prototype,"closable");o([t.n({type:Boolean,reflect:!0})],s.prototype,"compact");o([t.n({type:String,reflect:!0})],s.prototype,"title");o([t.n({type:String,reflect:!0})],s.prototype,"skin");o([u.r()],s.prototype,"_isClosed");try{t.t("pkt-messagebox")(s)}catch{console.warn("Forsøker å definere <pkt-messagebox>, men den er allerede definert")}exports.PktMessagebox=s;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";const c=require("./class-map-CsENJXf1.cjs"),t=require("./element-gR_VtSiD.cjs"),k=require("./state-Dg-53wQ8.cjs"),h=require("./element-with-slot-ZX-up7jO.cjs"),u=require("./ref-CL-Xk9Xm.cjs");require("./icon-q81vqPK_.cjs");const m={hideCloseButton:{default:!1},closeOnBackdropClick:{default:!1},size:{default:"medium"}},p={props:m};var v=Object.defineProperty,n=(r,e,o,a)=>{for(var s=void 0,d=r.length-1,l;d>=0;d--)(l=r[d])&&(s=l(e,o,s)||s);return s&&v(e,o,s),s};class i extends h.PktElementWithSlot{constructor(){super(),this.open=!1,this.headingText="",this.removePadding=!1,this.hideCloseButton=p.props.hideCloseButton.default,this.closeOnBackdropClick=p.props.closeOnBackdropClick.default,this.closeButtonSkin="blue",this.size=p.props.size.default,this.variant="dialog",this.drawerPosition="right",this.transparentBackdrop=!1,this.dialogRef=u.e(),this._isOpen=!1,this.close=(e,o=!1)=>{var s;if(!this._isOpen)return;this._isOpen=!1,this.open=!1,document.body.classList.remove("pkt-modal--open");const a=document.activeElement;a&&!this.isElementInViewport(a)&&a.scrollIntoView({behavior:"smooth",block:"nearest"}),this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0,composed:!0})),o||(s=this.dialogRef.value)==null||s.close(),this.requestUpdate()},this.showModal=(e=null)=>{var o;this._isOpen=!0,this.open=!0,(o=this.dialogRef.value)==null||o.showModal(),document.body.classList.add("pkt-modal--open"),this.dispatchEvent(new CustomEvent("showModal",{detail:{origin:e},bubbles:!0,composed:!0})),this.requestUpdate()},this._isOpen=!1}async connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown.bind(this)),document.addEventListener("click",this.handleBackdropClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleBackdropClick)}updated(e){super.updated(e),e.has("open")&&(this.open&&!this._isOpen?this.showModal():!this.open&&this._isOpen&&this.close(new Event("close"),!1))}async firstUpdated(e){super.firstUpdated(e),this.dialogRef.value&&!window.HTMLDialogElement&&!this.dialogRef.value.showModal&&("document"in window&&"createElement"in document&&(await Promise.resolve().then(()=>require("./dialog-polyfill.esm-CPKZe7AL.cjs")).then(a=>a.default)).registerDialog(this.dialogRef.value),this.dialogRef.value.addEventListener("close",()=>{this.close(new Event("close"),!0)}))}handleKeyDown(e){e.key==="Escape"&&this.close(e)}handleBackdropClick(e){var o;this.closeOnBackdropClick&&e.target===((o=this.dialogRef)==null?void 0:o.value)&&this.close(e)}isElementInViewport(e){const o=e.getBoundingClientRect();return o.top>=0&&o.left>=0&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&o.right<=(window.innerWidth||document.documentElement.clientWidth)}render(){const e={"pkt-modal":!0,"pkt-modal--removePadding":this.removePadding??!1,"pkt-modal--noHeadingText":this.headingText===""||this.headingText===void 0,"pkt-modal--noShadow":this.closeButtonSkin==="yellow-filled","pkt-modal--transparentBackdrop":this.transparentBackdrop??!1,[`pkt-modal--${this.size}`]:this.size!==void 0,[`pkt-modal__${this.variant}`]:this.variant!==void 0,[`pkt-modal__drawer--${this.drawerPosition}`]:this.variant==="drawer"},o={"pkt-modal__headingText":!0,"pkt-txt-24":!0},a={"pkt-modal__content":!0,"pkt-txt-18-light":!0},s=this.closeButtonSkin==="blue",d={"pkt-modal__closeButton":!0,[`pkt-modal__closeButton--${this.closeButtonSkin}`]:!0};return t.b`
|
|
2
|
+
<dialog
|
|
3
|
+
class=${c.e(e)}
|
|
4
|
+
${u.n(this.dialogRef)}
|
|
5
|
+
aria-labelledby=${this.headingText?"pkt-modal__headingText":t.A}
|
|
6
|
+
aria-describedby="pkt-modal__content"
|
|
7
|
+
@close=${l=>this.close(l,!0)}
|
|
8
|
+
>
|
|
9
|
+
<div class="pkt-modal__wrapper">
|
|
10
|
+
${this.headingText||!this.hideCloseButton?t.b`<div class="pkt-modal__header">
|
|
11
|
+
<div class="pkt-modal__header-background"></div>
|
|
12
|
+
${this.headingText?t.b`<h1 id="pkt-modal__headingText" class=${c.e(o)}>
|
|
13
|
+
${this.headingText}
|
|
14
|
+
</h1>`:t.b`<div class="pkt-modal__headingText"></div>`}
|
|
15
|
+
${this.hideCloseButton?t.b`<div class="pkt-modal__noCloseButton"></div>`:t.b`<div class="${c.e(d)}">
|
|
16
|
+
<pkt-button
|
|
17
|
+
@click=${l=>this.close(l)}
|
|
18
|
+
aria-label="close"
|
|
19
|
+
iconname="close"
|
|
20
|
+
variant="icon-only"
|
|
21
|
+
size="medium"
|
|
22
|
+
skin=${s?"tertiary":"primary"}
|
|
23
|
+
>
|
|
24
|
+
Lukk
|
|
25
|
+
</pkt-button>
|
|
26
|
+
</div>`}
|
|
27
|
+
</div>`:t.A}
|
|
28
|
+
<div class="pkt-modal__container">
|
|
29
|
+
<div
|
|
30
|
+
id="pkt-modal__content"
|
|
31
|
+
class=${c.e(a)}
|
|
32
|
+
>${h.slotContent(this)}</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</dialog>
|
|
36
|
+
`}}n([t.n({type:Boolean,reflect:!0})],i.prototype,"open");n([t.n({type:String})],i.prototype,"headingText");n([t.n({type:Boolean})],i.prototype,"removePadding");n([t.n({type:Boolean})],i.prototype,"hideCloseButton");n([t.n({type:Boolean})],i.prototype,"closeOnBackdropClick");n([t.n({type:String})],i.prototype,"closeButtonSkin");n([t.n({type:String})],i.prototype,"size");n([t.n({type:String})],i.prototype,"variant");n([t.n({type:String})],i.prototype,"drawerPosition");n([t.n({type:Boolean})],i.prototype,"transparentBackdrop");n([k.r()],i.prototype,"_isOpen");try{t.t("pkt-modal")(i)}catch{console.warn("Forsøker å definere <pkt-modal>, men den er allerede definert")}exports.PktModal=i;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { e as
|
|
2
|
-
import { A as u, b as
|
|
1
|
+
import { e as c } from "./class-map-CEnykyO_.js";
|
|
2
|
+
import { t as m, A as u, b as d, n } from "./element-CPpT3rFQ.js";
|
|
3
3
|
import { r as k } from "./state-C_1EOo3D.js";
|
|
4
4
|
import { P as f, s as v } from "./element-with-slot-Dqk6-TRR.js";
|
|
5
5
|
import { e as g, n as _ } from "./ref-Bg_Swj5w.js";
|
|
6
|
-
import "./icon-
|
|
6
|
+
import "./icon-CxQcIa5F.js";
|
|
7
7
|
const y = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, h = {
|
|
8
8
|
props: y
|
|
9
9
|
};
|
|
10
|
-
var w = Object.defineProperty,
|
|
11
|
-
for (var
|
|
12
|
-
(
|
|
13
|
-
return
|
|
10
|
+
var w = Object.defineProperty, s = (p, e, t, a) => {
|
|
11
|
+
for (var i = void 0, r = p.length - 1, l; r >= 0; r--)
|
|
12
|
+
(l = p[r]) && (i = l(e, t, i) || i);
|
|
13
|
+
return i && w(e, t, i), i;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
class o extends f {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(), this.open = !1, this.headingText = "", this.removePadding = !1, this.hideCloseButton = h.props.hideCloseButton.default, this.closeOnBackdropClick = h.props.closeOnBackdropClick.default, this.closeButtonSkin = "blue", this.size = h.props.size.default, this.variant = "dialog", this.drawerPosition = "right", this.transparentBackdrop = !1, this.dialogRef = g(), this._isOpen = !1, this.close = (e, t = !1) => {
|
|
18
|
-
var
|
|
18
|
+
var i;
|
|
19
19
|
if (!this._isOpen) return;
|
|
20
20
|
this._isOpen = !1, this.open = !1, document.body.classList.remove("pkt-modal--open");
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const a = document.activeElement;
|
|
22
|
+
a && !this.isElementInViewport(a) && a.scrollIntoView({ behavior: "smooth", block: "nearest" }), this.dispatchEvent(
|
|
23
23
|
new CustomEvent("close", { detail: { origin: e }, bubbles: !0, composed: !0 })
|
|
24
|
-
), t || (
|
|
24
|
+
), t || (i = this.dialogRef.value) == null || i.close(), this.requestUpdate();
|
|
25
25
|
}, this.showModal = (e = null) => {
|
|
26
26
|
var t;
|
|
27
27
|
this._isOpen = !0, this.open = !0, (t = this.dialogRef.value) == null || t.showModal(), document.body.classList.add("pkt-modal--open"), this.dispatchEvent(
|
|
@@ -39,7 +39,7 @@ let o = class extends f {
|
|
|
39
39
|
super.updated(e), e.has("open") && (this.open && !this._isOpen ? this.showModal() : !this.open && this._isOpen && this.close(new Event("close"), !1));
|
|
40
40
|
}
|
|
41
41
|
async firstUpdated(e) {
|
|
42
|
-
super.firstUpdated(e), this.dialogRef.value && !window.HTMLDialogElement && !this.dialogRef.value.showModal && ("document" in window && "createElement" in document && (await import("./dialog-polyfill.esm-CbjBMXAG.js").then((
|
|
42
|
+
super.firstUpdated(e), this.dialogRef.value && !window.HTMLDialogElement && !this.dialogRef.value.showModal && ("document" in window && "createElement" in document && (await import("./dialog-polyfill.esm-CbjBMXAG.js").then((a) => a.default)).registerDialog(this.dialogRef.value), this.dialogRef.value.addEventListener("close", () => {
|
|
43
43
|
this.close(new Event("close"), !0);
|
|
44
44
|
}));
|
|
45
45
|
}
|
|
@@ -68,35 +68,35 @@ let o = class extends f {
|
|
|
68
68
|
}, t = {
|
|
69
69
|
"pkt-modal__headingText": !0,
|
|
70
70
|
"pkt-txt-24": !0
|
|
71
|
-
},
|
|
71
|
+
}, a = {
|
|
72
72
|
"pkt-modal__content": !0,
|
|
73
73
|
"pkt-txt-18-light": !0
|
|
74
|
-
},
|
|
74
|
+
}, i = this.closeButtonSkin === "blue", r = {
|
|
75
75
|
"pkt-modal__closeButton": !0,
|
|
76
76
|
[`pkt-modal__closeButton--${this.closeButtonSkin}`]: !0
|
|
77
77
|
};
|
|
78
|
-
return
|
|
78
|
+
return d`
|
|
79
79
|
<dialog
|
|
80
|
-
class=${
|
|
80
|
+
class=${c(e)}
|
|
81
81
|
${_(this.dialogRef)}
|
|
82
82
|
aria-labelledby=${this.headingText ? "pkt-modal__headingText" : u}
|
|
83
83
|
aria-describedby="pkt-modal__content"
|
|
84
|
-
@close=${(
|
|
84
|
+
@close=${(l) => this.close(l, !0)}
|
|
85
85
|
>
|
|
86
86
|
<div class="pkt-modal__wrapper">
|
|
87
|
-
${this.headingText || !this.hideCloseButton ?
|
|
87
|
+
${this.headingText || !this.hideCloseButton ? d`<div class="pkt-modal__header">
|
|
88
88
|
<div class="pkt-modal__header-background"></div>
|
|
89
|
-
${this.headingText ?
|
|
89
|
+
${this.headingText ? d`<h1 id="pkt-modal__headingText" class=${c(t)}>
|
|
90
90
|
${this.headingText}
|
|
91
|
-
</h1>` :
|
|
92
|
-
${this.hideCloseButton ?
|
|
91
|
+
</h1>` : d`<div class="pkt-modal__headingText"></div>`}
|
|
92
|
+
${this.hideCloseButton ? d`<div class="pkt-modal__noCloseButton"></div>` : d`<div class="${c(r)}">
|
|
93
93
|
<pkt-button
|
|
94
|
-
@click=${(
|
|
94
|
+
@click=${(l) => this.close(l)}
|
|
95
95
|
aria-label="close"
|
|
96
96
|
iconname="close"
|
|
97
97
|
variant="icon-only"
|
|
98
98
|
size="medium"
|
|
99
|
-
skin=${
|
|
99
|
+
skin=${i ? "tertiary" : "primary"}
|
|
100
100
|
>
|
|
101
101
|
Lukk
|
|
102
102
|
</pkt-button>
|
|
@@ -105,50 +105,52 @@ let o = class extends f {
|
|
|
105
105
|
<div class="pkt-modal__container">
|
|
106
106
|
<div
|
|
107
107
|
id="pkt-modal__content"
|
|
108
|
-
class=${
|
|
108
|
+
class=${c(a)}
|
|
109
109
|
>${v(this)}</div>
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
112
|
</dialog>
|
|
113
113
|
`;
|
|
114
114
|
}
|
|
115
|
-
}
|
|
116
|
-
|
|
115
|
+
}
|
|
116
|
+
s([
|
|
117
117
|
n({ type: Boolean, reflect: !0 })
|
|
118
|
-
], o.prototype, "open"
|
|
119
|
-
|
|
118
|
+
], o.prototype, "open");
|
|
119
|
+
s([
|
|
120
120
|
n({ type: String })
|
|
121
|
-
], o.prototype, "headingText"
|
|
122
|
-
|
|
121
|
+
], o.prototype, "headingText");
|
|
122
|
+
s([
|
|
123
123
|
n({ type: Boolean })
|
|
124
|
-
], o.prototype, "removePadding"
|
|
125
|
-
|
|
124
|
+
], o.prototype, "removePadding");
|
|
125
|
+
s([
|
|
126
126
|
n({ type: Boolean })
|
|
127
|
-
], o.prototype, "hideCloseButton"
|
|
128
|
-
|
|
127
|
+
], o.prototype, "hideCloseButton");
|
|
128
|
+
s([
|
|
129
129
|
n({ type: Boolean })
|
|
130
|
-
], o.prototype, "closeOnBackdropClick"
|
|
131
|
-
|
|
130
|
+
], o.prototype, "closeOnBackdropClick");
|
|
131
|
+
s([
|
|
132
132
|
n({ type: String })
|
|
133
|
-
], o.prototype, "closeButtonSkin"
|
|
134
|
-
|
|
133
|
+
], o.prototype, "closeButtonSkin");
|
|
134
|
+
s([
|
|
135
135
|
n({ type: String })
|
|
136
|
-
], o.prototype, "size"
|
|
137
|
-
|
|
136
|
+
], o.prototype, "size");
|
|
137
|
+
s([
|
|
138
138
|
n({ type: String })
|
|
139
|
-
], o.prototype, "variant"
|
|
140
|
-
|
|
139
|
+
], o.prototype, "variant");
|
|
140
|
+
s([
|
|
141
141
|
n({ type: String })
|
|
142
|
-
], o.prototype, "drawerPosition"
|
|
143
|
-
|
|
142
|
+
], o.prototype, "drawerPosition");
|
|
143
|
+
s([
|
|
144
144
|
n({ type: Boolean })
|
|
145
|
-
], o.prototype, "transparentBackdrop"
|
|
146
|
-
|
|
145
|
+
], o.prototype, "transparentBackdrop");
|
|
146
|
+
s([
|
|
147
147
|
k()
|
|
148
|
-
], o.prototype, "_isOpen"
|
|
149
|
-
|
|
150
|
-
m("pkt-modal")
|
|
151
|
-
|
|
148
|
+
], o.prototype, "_isOpen");
|
|
149
|
+
try {
|
|
150
|
+
m("pkt-modal")(o);
|
|
151
|
+
} catch {
|
|
152
|
+
console.warn("Forsøker å definere <pkt-modal>, men den er allerede definert");
|
|
153
|
+
}
|
|
152
154
|
export {
|
|
153
155
|
o as P
|
|
154
156
|
};
|
package/dist/pkt-accordion.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./accordionitem-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./accordionitem-_9AiCIvd.cjs");exports.PktAccordion=e.PktAccordion;exports.PktAccordionItem=e.PktAccordionItem;exports.default=e.PktAccordion;
|
package/dist/pkt-accordion.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as r } from "./accordionitem-
|
|
2
|
-
import { a as c } from "./accordionitem-
|
|
1
|
+
import { P as r } from "./accordionitem-dCfSrxh5.js";
|
|
2
|
+
import { a as c } from "./accordionitem-dCfSrxh5.js";
|
|
3
3
|
export {
|
|
4
4
|
r as PktAccordion,
|
|
5
5
|
c as PktAccordionItem,
|
package/dist/pkt-alert.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./alert-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./alert-BtOk8yRH.cjs");exports.PktAlert=e.PktAlert;exports.default=e.PktAlert;
|
package/dist/pkt-alert.js
CHANGED
package/dist/pkt-backlink.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./backlink-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./backlink-y3dwjKPC.cjs");exports.PktBackLink=e.PktBackLink;exports.default=e.PktBackLink;
|
package/dist/pkt-backlink.js
CHANGED
package/dist/pkt-breadcrumbs.cjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./element-gR_VtSiD.cjs");require("./icon-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./element-gR_VtSiD.cjs");require("./icon-q81vqPK_.cjs");var l=Object.defineProperty,d=(n,r,e,s)=>{for(var t=void 0,c=n.length-1,b;c>=0;c--)(b=n[c])&&(t=b(r,e,t)||t);return t&&l(r,e,t),t};class i extends a.PktElement{constructor(){super(...arguments),this.breadcrumbs=[]}handleLinkClick(r,e,s){const t=new CustomEvent("navigate",{detail:{item:e,index:s,originalEvent:r},bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(t)||r.preventDefault()}render(){if(!this.breadcrumbs||this.breadcrumbs.length===0)return a.A;const r=this.breadcrumbs[this.breadcrumbs.length-2];return a.b`
|
|
2
2
|
<nav class="pkt-breadcrumbs" aria-label="brødsmulemeny">
|
|
3
3
|
<ol class="pkt-breadcrumbs__list pkt-breadcrumbs--desktop">
|
|
4
|
-
${this.breadcrumbs.map((
|
|
4
|
+
${this.breadcrumbs.map((e,s)=>s===this.breadcrumbs.length-1?a.b`
|
|
5
5
|
<li class="pkt-breadcrumbs__item">
|
|
6
6
|
<span class="pkt-breadcrumbs__label" aria-current="true">
|
|
7
|
-
<span class="pkt-breadcrumbs__text">${
|
|
7
|
+
<span class="pkt-breadcrumbs__text">${e.text}</span>
|
|
8
8
|
</span>
|
|
9
9
|
</li>
|
|
10
10
|
`:a.b`
|
|
11
11
|
<li class="pkt-breadcrumbs__item">
|
|
12
12
|
<a
|
|
13
13
|
class="pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link"
|
|
14
|
-
href=${
|
|
15
|
-
@click=${
|
|
14
|
+
href=${e.href}
|
|
15
|
+
@click=${t=>this.handleLinkClick(t,e,s)}
|
|
16
16
|
>
|
|
17
17
|
<pkt-icon
|
|
18
18
|
class="pkt-icon pkt-breadcrumbs__icon pkt-link__icon"
|
|
19
19
|
name="chevron-thin-right"
|
|
20
20
|
aria-hidden="true"
|
|
21
21
|
></pkt-icon>
|
|
22
|
-
<span class="pkt-breadcrumbs__text">${
|
|
22
|
+
<span class="pkt-breadcrumbs__text">${e.text}</span>
|
|
23
23
|
</a>
|
|
24
24
|
</li>
|
|
25
25
|
`)}
|
|
26
26
|
</ol>
|
|
27
27
|
|
|
28
|
-
${
|
|
28
|
+
${r?a.b`
|
|
29
29
|
<a
|
|
30
30
|
class="pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile"
|
|
31
|
-
href=${
|
|
32
|
-
@click=${
|
|
31
|
+
href=${r.href}
|
|
32
|
+
@click=${e=>this.handleLinkClick(e,r,this.breadcrumbs.length-2)}
|
|
33
33
|
>
|
|
34
34
|
<pkt-icon
|
|
35
35
|
class="pkt-back-link__icon pkt-icon pkt-link__icon"
|
|
36
36
|
name="chevron-thin-left"
|
|
37
37
|
aria-hidden="true"
|
|
38
38
|
></pkt-icon>
|
|
39
|
-
<span class="pkt-breadcrumbs__text">${
|
|
39
|
+
<span class="pkt-breadcrumbs__text">${r.text}</span>
|
|
40
40
|
</a>
|
|
41
41
|
`:a.A}
|
|
42
42
|
</nav>
|
|
43
|
-
`}}
|
|
43
|
+
`}}d([a.n({type:Array})],i.prototype,"breadcrumbs");try{a.t("pkt-breadcrumbs")(i)}catch{console.warn("Forsøker å definere <pkt-breadcrumbs>, men den er allerede definert")}exports.PktBreadcrumbs=i;
|