@oslokommune/punkt-elements 16.18.0 → 16.19.0
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 +17 -0
- package/dist/{accordion-CU2tJ5vn.js → accordion-BjYsEbSM.js} +19 -19
- package/dist/{accordion-DDZkjXFb.cjs → accordion-DaeWPWod.cjs} +5 -5
- package/dist/{alert-D_eXGOez.js → alert-BkzC5mVu.js} +22 -22
- package/dist/{alert-NyLr62jZ.cjs → alert-D_45dWPn.cjs} +6 -6
- package/dist/{async-directive-CaQiqjyV.js → async-directive-Cz6tcqge.js} +2 -2
- package/dist/async-directive-DO1QtVmf.cjs +1 -0
- package/dist/{backlink-CTu44BHn.js → backlink-BXAdgAte.js} +6 -6
- package/dist/{backlink-BsQ0Rmxj.cjs → backlink-C42-3OG3.cjs} +2 -2
- package/dist/{breadcrumbs-BNZ1L-0q.cjs → breadcrumbs-CkjeLh3U.cjs} +6 -6
- package/dist/{breadcrumbs-DPnoURvl.js → breadcrumbs-Dkb9TxMp.js} +15 -15
- package/dist/{button-ZYlrRRfu.js → button-CR-KWhTT.js} +21 -21
- package/dist/{button-DsGvcLIn.cjs → button-Dwv11n6R.cjs} +7 -7
- package/dist/{calendar-CDDVoUby.cjs → calendar-Buvxe4l_.cjs} +11 -11
- package/dist/{calendar-VOqO5um6.js → calendar-DAq6iJdx.js} +50 -50
- package/dist/{card-B4oDGIRP.js → card-5PydU247.js} +43 -43
- package/dist/{card-DZuZy0ay.cjs → card-C__IlsUa.cjs} +26 -26
- package/dist/{checkbox-CF5mSBR5.js → checkbox-CC1X7fw4.js} +23 -23
- package/dist/{checkbox-BerAYcfK.cjs → checkbox-DzMc0AJX.cjs} +10 -10
- package/dist/class-map-B8Ja0q7n.cjs +1 -0
- package/dist/{class-map-C8HuhNzZ.js → class-map-DH9hlJny.js} +7 -8
- package/dist/{combobox-BDYoPZmg.js → combobox-D-DY7YcW.js} +42 -42
- package/dist/{combobox-Ct9gCFa1.cjs → combobox-x4tBGP3F.cjs} +17 -17
- package/dist/components/heading/heading.d.ts +5 -8
- package/dist/{consent-BME_rQ2w.cjs → consent-BB3g_ByO.cjs} +3 -3
- package/dist/{consent-1IUuWZAh.js → consent-Y14WZ0JS.js} +8 -8
- package/dist/{datepicker-ByqXCpCd.cjs → datepicker-BFI-3stE.cjs} +20 -20
- package/dist/{datepicker-BGpoabCM.js → datepicker-CRk7aiwH.js} +57 -57
- package/dist/{directive-helpers-Dkv2gKgs.js → directive-helpers-Cep_4cpj.js} +1 -1
- package/dist/{directive-helpers-D1QSxY17.cjs → directive-helpers-f36YZFOG.cjs} +1 -1
- package/dist/element-CXAtr6Gu.cjs +2 -0
- package/dist/{element-cZ85T_aa.js → element-CduG0XyF.js} +47 -23
- package/dist/{element-with-slot-4J2o3SeU.js → element-with-slot-BVj9MXzi.js} +5 -6
- package/dist/element-with-slot-Cmxb9h4H.cjs +1 -0
- package/dist/{fileupload-B6W7qOQT.js → fileupload-C8muj8qd.js} +149 -149
- package/dist/{fileupload-a2OL3dzG.cjs → fileupload-YtsrgQTY.cjs} +40 -40
- package/dist/{header-BZFSan0_.cjs → header-CjBip0zj.cjs} +57 -57
- package/dist/{header-BgVpJMHQ.js → header-DONTGbD9.js} +130 -130
- package/dist/{header-menu-BXzVVOHq.js → header-menu-BU-ylGrJ.js} +45 -45
- package/dist/{header-menu-BLngov1D.cjs → header-menu-CnW7nzmF.cjs} +24 -24
- package/dist/heading-3o4Dk0Wn.js +80 -0
- package/dist/heading-C40-NX0r.cjs +1 -0
- package/dist/{helptext-BeU-enix.js → helptext-C2aQBBo_.js} +12 -12
- package/dist/{helptext-DWMFqMnV.cjs → helptext-DNLg43eI.cjs} +4 -4
- package/dist/icon-Dw6I0HDV.cjs +1 -0
- package/dist/{icon-CZQkrK6B.js → icon-LaKyBKON.js} +18 -19
- package/dist/if-defined-LTjAScFG.cjs +1 -0
- package/dist/{if-defined-Cjj8qN-Z.js → if-defined-VShASPdu.js} +1 -1
- package/dist/{input-element-D0egtEnr.cjs → input-element-BHQVt4Q9.cjs} +1 -1
- package/dist/{input-element-B1ciW1N2.js → input-element-BrmkXIXi.js} +30 -30
- package/dist/{input-wrapper-oYcbCFow.js → input-wrapper-B6WowlWG.js} +33 -33
- package/dist/{input-wrapper-Y98KV-sy.cjs → input-wrapper-Dhkt20WW.cjs} +17 -17
- package/dist/{link-BMMIjg50.cjs → link-B5ur0Rym.cjs} +4 -4
- package/dist/{link-CT0LB3S7.js → link-ClUNY__5.js} +13 -13
- package/dist/linkcard-BIcCW-qw.cjs +13 -0
- package/dist/{linkcard-Bz5zb69P.js → linkcard-DNJm5FvA.js} +15 -15
- package/dist/{listbox-0NHJvNjz.js → listbox-DXMIBv3y.js} +35 -35
- package/dist/{listbox-CcThiNBY.cjs → listbox-DbEobJNx.cjs} +14 -14
- package/dist/{loader-8T6M0FCQ.cjs → loader-Uap9qDsV.cjs} +5 -5
- package/dist/{loader-Cbrc4FFx.js → loader-gKdQpOOQ.js} +12 -12
- package/dist/{messagebox-C6LHT78_.cjs → messagebox-BqBxXK8c.cjs} +5 -5
- package/dist/{messagebox-TKKUVTo4.js → messagebox-XRFecqyS.js} +15 -15
- package/dist/{modal-BVHH8koz.js → modal-CWgeT-RP.js} +19 -19
- package/dist/{modal-CRzbtqL3.cjs → modal-CrYHKOmr.cjs} +8 -8
- package/dist/pkt-accordion.cjs +1 -1
- package/dist/pkt-accordion.js +1 -1
- package/dist/pkt-alert.cjs +1 -1
- package/dist/pkt-alert.js +1 -1
- package/dist/pkt-backlink.cjs +1 -1
- package/dist/pkt-backlink.js +1 -1
- package/dist/pkt-breadcrumbs.cjs +1 -1
- package/dist/pkt-breadcrumbs.js +1 -1
- package/dist/pkt-button.cjs +1 -1
- package/dist/pkt-button.js +1 -1
- package/dist/pkt-calendar.cjs +1 -1
- package/dist/pkt-calendar.js +1 -1
- package/dist/pkt-card.cjs +1 -1
- package/dist/pkt-card.js +1 -1
- package/dist/pkt-checkbox.cjs +1 -1
- package/dist/pkt-checkbox.js +1 -1
- package/dist/pkt-combobox.cjs +1 -1
- package/dist/pkt-combobox.js +1 -1
- package/dist/pkt-consent.cjs +1 -1
- package/dist/pkt-consent.js +1 -1
- package/dist/pkt-datepicker.cjs +1 -1
- package/dist/pkt-datepicker.js +1 -1
- package/dist/pkt-fileupload.cjs +1 -1
- package/dist/pkt-fileupload.js +1 -1
- package/dist/pkt-header-menu.cjs +1 -1
- package/dist/pkt-header-menu.js +1 -1
- package/dist/pkt-header.cjs +1 -1
- package/dist/pkt-header.js +1 -1
- package/dist/pkt-heading.cjs +1 -1
- package/dist/pkt-heading.js +1 -1
- package/dist/pkt-helptext.cjs +1 -1
- package/dist/pkt-helptext.js +1 -1
- package/dist/pkt-icon.cjs +1 -1
- package/dist/pkt-icon.js +1 -1
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +32 -32
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +1 -1
- package/dist/pkt-link.cjs +1 -1
- package/dist/pkt-link.js +1 -1
- package/dist/pkt-linkcard.cjs +1 -1
- package/dist/pkt-linkcard.js +1 -1
- package/dist/pkt-listbox.cjs +1 -1
- package/dist/pkt-listbox.js +1 -1
- package/dist/pkt-loader.cjs +1 -1
- package/dist/pkt-loader.js +1 -1
- package/dist/pkt-messagebox.cjs +1 -1
- package/dist/pkt-messagebox.js +1 -1
- package/dist/pkt-modal.cjs +1 -1
- package/dist/pkt-modal.js +1 -1
- package/dist/{pkt-options-controller-CCB15L_G.js → pkt-options-controller-BTNtjEIS.js} +1 -1
- package/dist/{pkt-options-controller-CeAQ-D-i.cjs → pkt-options-controller-CBM8xHwR.cjs} +1 -1
- package/dist/pkt-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +1 -1
- package/dist/pkt-radiobutton.cjs +1 -1
- package/dist/pkt-radiobutton.js +1 -1
- package/dist/pkt-searchinput.cjs +1 -1
- package/dist/pkt-searchinput.js +1 -1
- package/dist/pkt-select.cjs +1 -1
- package/dist/pkt-select.js +1 -1
- package/dist/pkt-tabs.cjs +1 -1
- package/dist/pkt-tabs.js +1 -1
- package/dist/pkt-tag.cjs +1 -1
- package/dist/pkt-tag.js +1 -1
- package/dist/pkt-textarea.cjs +1 -1
- package/dist/pkt-textarea.js +1 -1
- package/dist/pkt-textinput.cjs +1 -1
- package/dist/pkt-textinput.js +1 -1
- package/dist/pkt-timepicker.cjs +1 -1
- package/dist/pkt-timepicker.js +1 -1
- package/dist/{progressbar-C-5oESiB.js → progressbar-B0P_vmGD.js} +23 -24
- package/dist/progressbar-DADdvDl5.cjs +17 -0
- package/dist/{radiobutton-B1Xg6XzP.cjs → radiobutton-BfURufrZ.cjs} +8 -8
- package/dist/{radiobutton-BAn1V_mQ.js → radiobutton-C6zERHoy.js} +20 -20
- package/dist/{ref-RS8Uv6uC.js → ref-BgoHEsEt.js} +7 -8
- package/dist/ref-CBdWMlde.cjs +1 -0
- package/dist/{repeat-DV1O43YU.js → repeat-CKIii8Mi.js} +15 -16
- package/dist/repeat-CRRgmzVn.cjs +1 -0
- package/dist/{searchinput-DUgZb_zm.cjs → searchinput-BrxfRzez.cjs} +13 -13
- package/dist/{searchinput-C9FP89qD.js → searchinput-fPvXHu2O.js} +31 -31
- package/dist/{select-DkKIW7zD.js → select-BIgFPp42.js} +13 -13
- package/dist/{select-DAs8kzN4.cjs → select-DzZHv6Bz.cjs} +3 -3
- package/dist/{tabs-ClI1XQDt.js → tabs-BJx6wwXD.js} +29 -29
- package/dist/{tabs-CN_RIMWg.cjs → tabs-DxQy8U-0.cjs} +7 -7
- package/dist/{tag-vgKH9B4k.cjs → tag-CBFz0R9N.cjs} +5 -5
- package/dist/{tag-DSZ-czu-.js → tag-CzlnHhho.js} +19 -19
- package/dist/textarea-M_S9WK7s.cjs +46 -0
- package/dist/{textarea-BfjI6d7Q.js → textarea-qHtkhelz.js} +24 -25
- package/dist/{textinput-DhoupEyI.js → textinput-CZrBM-Fj.js} +26 -26
- package/dist/{textinput-BM66vo5e.cjs → textinput-C_6kvf87.cjs} +12 -12
- package/dist/{timepicker-CtRGbypF.js → timepicker-O0iCeJyW.js} +51 -51
- package/dist/{timepicker-C4oRmmRd.cjs → timepicker-WiYLAncb.cjs} +20 -20
- package/package.json +2 -2
- package/src/components/card/card.ts +1 -1
- package/src/components/heading/heading.test.ts +79 -70
- package/src/components/heading/heading.ts +40 -78
- package/dist/async-directive-B9P1Qa0k.cjs +0 -1
- package/dist/class-map-CJ-msbHs.cjs +0 -1
- package/dist/directive-3THFsVew.js +0 -28
- package/dist/directive-CJ2giQBZ.cjs +0 -1
- package/dist/element-DjtxO-1r.cjs +0 -2
- package/dist/element-with-slot-CWoTGA1B.cjs +0 -1
- package/dist/heading-BxvE80bb.js +0 -73
- package/dist/heading-DRJTS27k.cjs +0 -1
- package/dist/icon-PbaC9uUg.cjs +0 -1
- package/dist/if-defined-XKOD_t_V.cjs +0 -1
- package/dist/linkcard-CupEMkvj.cjs +0 -13
- package/dist/progressbar-C0g830Tk.cjs +0 -17
- package/dist/ref-BaJ0mBT_.cjs +0 -1
- package/dist/repeat-DaDFvx86.cjs +0 -1
- package/dist/textarea-C7YiheLo.cjs +0 -46
- /package/dist/{booleanish-CRaKZ75t.js → booleanish-BmcOU-43.js} +0 -0
- /package/dist/{booleanish-B5EFqFpJ.cjs → booleanish-jJLlnr6-.cjs} +0 -0
- /package/dist/{classutils-z8YsPlOf.cjs → classutils-CVTzKF0J.cjs} +0 -0
- /package/dist/{classutils-DEL164Ur.js → classutils-lVbGcvjN.js} +0 -0
- /package/dist/{converters-Bffq_YDm.cjs → converters-C_66kHUN.cjs} +0 -0
- /package/dist/{converters-jauYkvNh.js → converters-DSQXaDQ_.js} +0 -0
- /package/dist/{dialog-polyfill.esm-B7W3teD0.js → dialog-polyfill.esm-0dVT8G1o.js} +0 -0
- /package/dist/{dialog-polyfill.esm-BnAQvMQO.cjs → dialog-polyfill.esm-CYs2AHP1.cjs} +0 -0
- /package/dist/{focus-modality-controller-pzSZkDkH.js → focus-modality-controller-CaUqYdk0.js} +0 -0
- /package/dist/{focus-modality-controller-BSZAQk8y.cjs → focus-modality-controller-wI5SR8wH.cjs} +0 -0
- /package/dist/{input-wrapper-CQGoyLdZ.cjs → input-wrapper-CYCCx8MP.cjs} +0 -0
- /package/dist/{input-wrapper-DwSsP39J.js → input-wrapper-kw2y6Jp_.js} +0 -0
- /package/dist/{utils-BOOZ0ppt.js → utils-CUqCKGvp.js} +0 -0
- /package/dist/{utils-CM67Oudc.cjs → utils-CjAbIttF.cjs} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as s } from "./class-map-
|
|
3
|
-
import { n as c, t as l } from "./element-with-slot-
|
|
4
|
-
import "./icon-
|
|
5
|
-
import { t as u } from "./if-defined-
|
|
6
|
-
import "./button-
|
|
7
|
-
import { n as d, t as f } from "./ref-
|
|
8
|
-
import { t as p } from "./booleanish-
|
|
9
|
-
import "./link-
|
|
10
|
-
import "./textinput-
|
|
1
|
+
import { a as e, d as t, n, o as r, p as i, s as a, t as o } from "./element-CduG0XyF.js";
|
|
2
|
+
import { t as s } from "./class-map-DH9hlJny.js";
|
|
3
|
+
import { n as c, t as l } from "./element-with-slot-BVj9MXzi.js";
|
|
4
|
+
import "./icon-LaKyBKON.js";
|
|
5
|
+
import { t as u } from "./if-defined-VShASPdu.js";
|
|
6
|
+
import "./button-CR-KWhTT.js";
|
|
7
|
+
import { n as d, t as f } from "./ref-BgoHEsEt.js";
|
|
8
|
+
import { t as p } from "./booleanish-BmcOU-43.js";
|
|
9
|
+
import "./link-ClUNY__5.js";
|
|
10
|
+
import "./textinput-CZrBM-Fj.js";
|
|
11
11
|
//#region ../../shared-types/header.ts
|
|
12
12
|
var m = (e) => typeof e.target == "string" ? {
|
|
13
13
|
title: e.title,
|
|
@@ -46,38 +46,38 @@ var m = (e) => typeof e.target == "string" ? {
|
|
|
46
46
|
handleMenuItemClick(e) {
|
|
47
47
|
"onClick" in e && typeof e.onClick == "function" && e.onClick();
|
|
48
48
|
}
|
|
49
|
-
renderLinkOrButton(e,
|
|
50
|
-
let
|
|
49
|
+
renderLinkOrButton(e, n) {
|
|
50
|
+
let r = "href" in e, a = s({
|
|
51
51
|
"pkt-user-menu__link": !0,
|
|
52
|
-
"pkt-link-button": !
|
|
53
|
-
"pkt-link": !
|
|
54
|
-
"pkt-link--icon-left": !
|
|
55
|
-
[
|
|
52
|
+
"pkt-link-button": !r,
|
|
53
|
+
"pkt-link": !r,
|
|
54
|
+
"pkt-link--icon-left": !r,
|
|
55
|
+
[n || ""]: !!n
|
|
56
56
|
});
|
|
57
|
-
return
|
|
57
|
+
return r ? i`
|
|
58
58
|
<pkt-link
|
|
59
|
-
icon-name=${e.iconName ||
|
|
59
|
+
icon-name=${e.iconName || t}
|
|
60
60
|
href=${e.href}
|
|
61
61
|
aria-hidden="true"
|
|
62
|
-
class="pkt-user-menu__link ${
|
|
62
|
+
class="pkt-user-menu__link ${n || ""}"
|
|
63
63
|
>
|
|
64
64
|
${e.title}
|
|
65
65
|
</pkt-link>
|
|
66
|
-
` :
|
|
66
|
+
` : i`
|
|
67
67
|
<button class=${a} type="button" @click=${() => this.handleMenuItemClick(e)}>
|
|
68
|
-
${e.iconName ?
|
|
68
|
+
${e.iconName ? i`<pkt-icon
|
|
69
69
|
name=${e.iconName}
|
|
70
70
|
class="pkt-link__icon"
|
|
71
71
|
aria-hidden="true"
|
|
72
|
-
></pkt-icon>` :
|
|
72
|
+
></pkt-icon>` : t}
|
|
73
73
|
${e.title}
|
|
74
74
|
</button>
|
|
75
75
|
`;
|
|
76
76
|
}
|
|
77
77
|
renderLinkSection(e) {
|
|
78
|
-
return
|
|
78
|
+
return i`
|
|
79
79
|
<ul class="pkt-user-menu__sublist">
|
|
80
|
-
${e.map((e) =>
|
|
80
|
+
${e.map((e) => i`
|
|
81
81
|
<li class="pkt-user-menu__subitem">${this.renderLinkOrButton(e)}</li>
|
|
82
82
|
`)}
|
|
83
83
|
</ul>
|
|
@@ -85,36 +85,36 @@ var m = (e) => typeof e.target == "string" ? {
|
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
87
|
let e = this.userMenu?.map(h);
|
|
88
|
-
return
|
|
88
|
+
return i`
|
|
89
89
|
<nav class="pkt-user-menu" aria-label="Meny for innlogget bruker">
|
|
90
90
|
<ul class="pkt-user-menu__list">
|
|
91
91
|
<!-- User section -->
|
|
92
|
-
${this.user ?
|
|
92
|
+
${this.user ? i`
|
|
93
93
|
<li class="pkt-user-menu__item">
|
|
94
94
|
<div class="pkt-user-menu__label">Pålogget som</div>
|
|
95
95
|
<div class="pkt-user-menu__name" translate="no">${this.user.name}</div>
|
|
96
|
-
${this.formattedLastLoggedIn ?
|
|
96
|
+
${this.formattedLastLoggedIn ? i`
|
|
97
97
|
<div class="pkt-user-menu__last-logged-in">
|
|
98
98
|
Sist pålogget: <time>${this.formattedLastLoggedIn}</time>
|
|
99
99
|
</div>
|
|
100
|
-
` :
|
|
100
|
+
` : t}
|
|
101
101
|
</li>
|
|
102
|
-
` :
|
|
102
|
+
` : t}
|
|
103
103
|
|
|
104
104
|
<!-- User menu items -->
|
|
105
|
-
${e && e.length > 0 ?
|
|
105
|
+
${e && e.length > 0 ? i`
|
|
106
106
|
<li class="pkt-user-menu__item">${this.renderLinkSection(e)}</li>
|
|
107
|
-
` :
|
|
107
|
+
` : t}
|
|
108
108
|
|
|
109
109
|
<!-- Representing section -->
|
|
110
|
-
${this.representing ?
|
|
110
|
+
${this.representing ? i`
|
|
111
111
|
<li class="pkt-user-menu__item">
|
|
112
112
|
<div class="pkt-user-menu__label">Representerer</div>
|
|
113
113
|
<div class="pkt-user-menu__name" translate="no">${this.representing.name}</div>
|
|
114
|
-
${this.representing.orgNumber ?
|
|
114
|
+
${this.representing.orgNumber ? i`<div class="pkt-user-menu__org-number">
|
|
115
115
|
Org.nr. ${this.representing.orgNumber}
|
|
116
|
-
</div>` :
|
|
117
|
-
${this.canChangeRepresentation ?
|
|
116
|
+
</div>` : t}
|
|
117
|
+
${this.canChangeRepresentation ? i`
|
|
118
118
|
<ul class="pkt-user-menu__sublist mt-size-16">
|
|
119
119
|
<li class="pkt-user-menu__subitem">
|
|
120
120
|
${this.renderLinkOrButton({
|
|
@@ -124,12 +124,12 @@ var m = (e) => typeof e.target == "string" ? {
|
|
|
124
124
|
})}
|
|
125
125
|
</li>
|
|
126
126
|
</ul>
|
|
127
|
-
` :
|
|
127
|
+
` : t}
|
|
128
128
|
</li>
|
|
129
|
-
` :
|
|
129
|
+
` : t}
|
|
130
130
|
|
|
131
131
|
<!-- Change representation without representing object -->
|
|
132
|
-
${!this.representing && this.canChangeRepresentation ?
|
|
132
|
+
${!this.representing && this.canChangeRepresentation ? i`
|
|
133
133
|
<li class="pkt-user-menu__item">
|
|
134
134
|
<ul class="pkt-user-menu__sublist">
|
|
135
135
|
<li class="pkt-user-menu__subitem">
|
|
@@ -141,10 +141,10 @@ var m = (e) => typeof e.target == "string" ? {
|
|
|
141
141
|
</li>
|
|
142
142
|
</ul>
|
|
143
143
|
</li>
|
|
144
|
-
` :
|
|
144
|
+
` : t}
|
|
145
145
|
|
|
146
146
|
<!-- Logout -->
|
|
147
|
-
${this.logoutOnClick ?
|
|
147
|
+
${this.logoutOnClick ? i`
|
|
148
148
|
<li class="pkt-user-menu__item">
|
|
149
149
|
${this.renderLinkOrButton({
|
|
150
150
|
title: "Logg ut",
|
|
@@ -152,29 +152,29 @@ var m = (e) => typeof e.target == "string" ? {
|
|
|
152
152
|
onClick: () => this.handleLogout()
|
|
153
153
|
})}
|
|
154
154
|
</li>
|
|
155
|
-
` :
|
|
155
|
+
` : t}
|
|
156
156
|
</ul>
|
|
157
157
|
</nav>
|
|
158
158
|
`;
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
-
|
|
161
|
+
n([r({ type: Object })], _.prototype, "user", void 0), n([r({
|
|
162
162
|
type: String,
|
|
163
163
|
attribute: "formatted-last-logged-in"
|
|
164
|
-
})], _.prototype, "formattedLastLoggedIn", void 0),
|
|
164
|
+
})], _.prototype, "formattedLastLoggedIn", void 0), n([r({ type: Object })], _.prototype, "representing", void 0), n([r({
|
|
165
165
|
type: Array,
|
|
166
166
|
attribute: "user-menu"
|
|
167
|
-
})], _.prototype, "userMenu", void 0),
|
|
167
|
+
})], _.prototype, "userMenu", void 0), n([r({
|
|
168
168
|
type: Boolean,
|
|
169
169
|
attribute: "can-change-representation",
|
|
170
170
|
converter: p
|
|
171
|
-
})], _.prototype, "canChangeRepresentation", void 0),
|
|
171
|
+
})], _.prototype, "canChangeRepresentation", void 0), n([r({
|
|
172
172
|
type: Boolean,
|
|
173
173
|
attribute: "logout-on-click",
|
|
174
174
|
converter: p
|
|
175
175
|
})], _.prototype, "logoutOnClick", void 0);
|
|
176
176
|
try {
|
|
177
|
-
|
|
177
|
+
a("pkt-header-user-menu")(_);
|
|
178
178
|
} catch {
|
|
179
179
|
console.warn("Forsøker å definere <pkt-header-user-menu>, men den er allerede definert");
|
|
180
180
|
}
|
|
@@ -324,17 +324,17 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
324
324
|
return this.hasLogOut && (this.logOutButtonPlacement === "userMenu" || this.logOutButtonPlacement === "both");
|
|
325
325
|
}
|
|
326
326
|
renderLogo() {
|
|
327
|
-
if (this.hideLogo) return
|
|
328
|
-
let e =
|
|
327
|
+
if (this.hideLogo) return t;
|
|
328
|
+
let e = i`
|
|
329
329
|
<pkt-icon name="oslologo" aria-hidden="true" path=${v}></pkt-icon>
|
|
330
330
|
`;
|
|
331
|
-
return this.logoLink && typeof this.logoLink == "string" ?
|
|
331
|
+
return this.logoLink && typeof this.logoLink == "string" ? i`
|
|
332
332
|
<span class="pkt-header-service__logo">
|
|
333
333
|
<a href=${this.logoLink} aria-label="Tilbake til forside" @click=${this.handleLogoClick}>
|
|
334
334
|
${e}
|
|
335
335
|
</a>
|
|
336
336
|
</span>
|
|
337
|
-
` : this.hasAttribute("logo-link") ?
|
|
337
|
+
` : this.hasAttribute("logo-link") ? i`
|
|
338
338
|
<span class="pkt-header-service__logo">
|
|
339
339
|
<button
|
|
340
340
|
aria-label="Tilbake til forside"
|
|
@@ -344,12 +344,12 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
344
344
|
${e}
|
|
345
345
|
</button>
|
|
346
346
|
</span>
|
|
347
|
-
` :
|
|
347
|
+
` : i`
|
|
348
348
|
<span class="pkt-header-service__logo" @click=${this.handleLogoClick}>${e}</span>
|
|
349
349
|
`;
|
|
350
350
|
}
|
|
351
351
|
renderServiceName() {
|
|
352
|
-
return this.serviceName ? this.serviceLink && typeof this.serviceLink == "string" ?
|
|
352
|
+
return this.serviceName ? this.serviceLink && typeof this.serviceLink == "string" ? i`
|
|
353
353
|
<span class="pkt-header-service__service-name" translate="no">
|
|
354
354
|
<pkt-link
|
|
355
355
|
href=${this.serviceLink}
|
|
@@ -359,7 +359,7 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
359
359
|
${this.serviceName}
|
|
360
360
|
</pkt-link>
|
|
361
361
|
</span>
|
|
362
|
-
` : this.hasAttribute("service-link") ?
|
|
362
|
+
` : this.hasAttribute("service-link") ? i`
|
|
363
363
|
<span class="pkt-header-service__service-name" translate="no">
|
|
364
364
|
<button
|
|
365
365
|
class="pkt-link-button pkt-link pkt-header-service__service-link"
|
|
@@ -368,28 +368,28 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
368
368
|
${this.serviceName}
|
|
369
369
|
</button>
|
|
370
370
|
</span>
|
|
371
|
-
` :
|
|
371
|
+
` : i`
|
|
372
372
|
<span class="pkt-header-service__service-name" translate="no" @click=${this.handleServiceClick}>
|
|
373
373
|
<span class="pkt-header-service__service-link">${this.serviceName}</span>
|
|
374
374
|
</span>
|
|
375
|
-
` :
|
|
375
|
+
` : t;
|
|
376
376
|
}
|
|
377
377
|
renderSlotContainer() {
|
|
378
|
-
if (!this.hasSlotContent()) return
|
|
378
|
+
if (!this.hasSlotContent()) return t;
|
|
379
379
|
let e = s({
|
|
380
380
|
"pkt-header-service__slot-container": !0,
|
|
381
381
|
"is-open": this.openMenu === "slot"
|
|
382
|
-
}),
|
|
382
|
+
}), n = s({
|
|
383
383
|
"pkt-header-service__slot-content": !0,
|
|
384
384
|
"align-right": this.alignSlotRight
|
|
385
385
|
});
|
|
386
|
-
return
|
|
386
|
+
return i`
|
|
387
387
|
<div
|
|
388
388
|
class=${e}
|
|
389
389
|
@focusout=${(e) => this.handleFocusOut(e, "slot")}
|
|
390
390
|
${d(this.slotContainerRef)}
|
|
391
391
|
>
|
|
392
|
-
${this.isTablet && this.hasSlotContent() ?
|
|
392
|
+
${this.isTablet && this.hasSlotContent() ? i`
|
|
393
393
|
<pkt-button
|
|
394
394
|
skin="secondary"
|
|
395
395
|
variant=${this.slotMenuVariant}
|
|
@@ -403,12 +403,12 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
403
403
|
>
|
|
404
404
|
${this.slotMenuText}
|
|
405
405
|
</pkt-button>
|
|
406
|
-
` :
|
|
406
|
+
` : t}
|
|
407
407
|
<div
|
|
408
|
-
class=${
|
|
408
|
+
class=${n}
|
|
409
409
|
id="mobile-slot-menu"
|
|
410
|
-
role=${this.isTablet ? "menu" :
|
|
411
|
-
aria-label=${this.isTablet ? "Meny" :
|
|
410
|
+
role=${this.isTablet ? "menu" : t}
|
|
411
|
+
aria-label=${this.isTablet ? "Meny" : t}
|
|
412
412
|
${d(this.slotContentRef)}
|
|
413
413
|
>
|
|
414
414
|
${c(this)}
|
|
@@ -417,17 +417,17 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
417
417
|
`;
|
|
418
418
|
}
|
|
419
419
|
renderSearch() {
|
|
420
|
-
if (!this.showSearch) return
|
|
420
|
+
if (!this.showSearch) return t;
|
|
421
421
|
if (this.isTablet) {
|
|
422
422
|
let e = s({
|
|
423
423
|
"pkt-header-service__search-container": !0,
|
|
424
424
|
"is-open": this.openMenu === "search"
|
|
425
|
-
}),
|
|
425
|
+
}), n = s({
|
|
426
426
|
"pkt-header-service__mobile-menu": !0,
|
|
427
427
|
"is-open": this.openMenu === "search",
|
|
428
428
|
"align-right": this.alignSearchRight
|
|
429
429
|
});
|
|
430
|
-
return
|
|
430
|
+
return i`
|
|
431
431
|
<div
|
|
432
432
|
class=${e}
|
|
433
433
|
@focusout=${(e) => this.handleFocusOut(e, "search")}
|
|
@@ -446,8 +446,8 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
446
446
|
>
|
|
447
447
|
Søk
|
|
448
448
|
</pkt-button>
|
|
449
|
-
<div class=${
|
|
450
|
-
${this.openMenu === "search" ?
|
|
449
|
+
<div class=${n} ${d(this.searchMenuRef)}>
|
|
450
|
+
${this.openMenu === "search" ? i`
|
|
451
451
|
<pkt-textinput
|
|
452
452
|
id="mobile-search-menu"
|
|
453
453
|
class="pkt-header-service__search-input"
|
|
@@ -463,12 +463,12 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
463
463
|
e.key === "Enter" && this.handleSearch(e.target.value);
|
|
464
464
|
}}
|
|
465
465
|
></pkt-textinput>
|
|
466
|
-
` :
|
|
466
|
+
` : t}
|
|
467
467
|
</div>
|
|
468
468
|
</div>
|
|
469
469
|
`;
|
|
470
470
|
}
|
|
471
|
-
return
|
|
471
|
+
return i`
|
|
472
472
|
<pkt-textinput
|
|
473
473
|
id="header-service-search"
|
|
474
474
|
class="pkt-header-service__search-input"
|
|
@@ -483,13 +483,13 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
483
483
|
`;
|
|
484
484
|
}
|
|
485
485
|
renderUserButton() {
|
|
486
|
-
if (!this.user) return
|
|
486
|
+
if (!this.user) return t;
|
|
487
487
|
let e = s({
|
|
488
488
|
"pkt-header-service__user-menu": this.isMobile === !1,
|
|
489
489
|
"pkt-header-service__mobile-menu": this.isMobile === !0,
|
|
490
490
|
"is-open": this.openMenu === "user"
|
|
491
491
|
});
|
|
492
|
-
return
|
|
492
|
+
return i`
|
|
493
493
|
<div
|
|
494
494
|
class="pkt-header-service__user-container"
|
|
495
495
|
@focusout=${(e) => this.handleFocusOut(e, "user")}
|
|
@@ -511,11 +511,11 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
511
511
|
<span class="pkt-sr-only">Brukermeny: </span>
|
|
512
512
|
<span translate="no">${this.representing?.name || this.user.name}</span>
|
|
513
513
|
</pkt-button>
|
|
514
|
-
${this.openMenu === "user" && this.user ?
|
|
514
|
+
${this.openMenu === "user" && this.user ? i`
|
|
515
515
|
<div class=${e}>
|
|
516
516
|
<pkt-header-user-menu
|
|
517
517
|
.user=${this.user}
|
|
518
|
-
formatted-last-logged-in=${this.formattedLastLoggedIn ||
|
|
518
|
+
formatted-last-logged-in=${this.formattedLastLoggedIn || t}
|
|
519
519
|
.representing=${this.representing}
|
|
520
520
|
.userMenu=${this.userMenu}
|
|
521
521
|
?can-change-representation=${this.canChangeRepresentation}
|
|
@@ -527,7 +527,7 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
527
527
|
@log-out=${this.handleLogout}
|
|
528
528
|
></pkt-header-user-menu>
|
|
529
529
|
</div>
|
|
530
|
-
` :
|
|
530
|
+
` : t}
|
|
531
531
|
</div>
|
|
532
532
|
`;
|
|
533
533
|
}
|
|
@@ -540,17 +540,17 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
540
540
|
"pkt-header-service--fixed": this.isFixed,
|
|
541
541
|
"pkt-header-service--scroll-to-hide": this.shouldHideOnScroll,
|
|
542
542
|
"pkt-header-service--hidden": this.isHidden
|
|
543
|
-
}),
|
|
543
|
+
}), n = s({
|
|
544
544
|
"pkt-header-service__logo-area": !0,
|
|
545
545
|
"pkt-header-service__logo-area--without-service": !this.serviceName
|
|
546
546
|
});
|
|
547
|
-
return
|
|
547
|
+
return i`
|
|
548
548
|
<header class=${e} ${d(this.headerRef)}>
|
|
549
|
-
<div class=${
|
|
549
|
+
<div class=${n}>${this.renderLogo()} ${this.renderServiceName()}</div>
|
|
550
550
|
|
|
551
|
-
${this.hasSlotContent() || this.showSearch || this.showLogoutInHeader ?
|
|
551
|
+
${this.hasSlotContent() || this.showSearch || this.showLogoutInHeader ? i`<div class="pkt-header-service__content">
|
|
552
552
|
${this.renderSlotContainer()} ${this.renderSearch()}
|
|
553
|
-
${this.isTablet && this.showLogoutInHeader ?
|
|
553
|
+
${this.isTablet && this.showLogoutInHeader ? i`
|
|
554
554
|
<pkt-button
|
|
555
555
|
skin="secondary"
|
|
556
556
|
size=${this.isMobile ? "small" : "medium"}
|
|
@@ -560,11 +560,11 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
560
560
|
>
|
|
561
561
|
Logg ut
|
|
562
562
|
</pkt-button>
|
|
563
|
-
` :
|
|
564
|
-
</div>` :
|
|
565
|
-
${this.user || !this.isTablet && this.showLogoutInHeader ?
|
|
563
|
+
` : t}
|
|
564
|
+
</div>` : t}
|
|
565
|
+
${this.user || !this.isTablet && this.showLogoutInHeader ? i`<div class="pkt-header-service__user">
|
|
566
566
|
${this.renderUserButton()}
|
|
567
|
-
${!this.isTablet && this.showLogoutInHeader ?
|
|
567
|
+
${!this.isTablet && this.showLogoutInHeader ? i`
|
|
568
568
|
<pkt-button
|
|
569
569
|
skin="tertiary"
|
|
570
570
|
size="medium"
|
|
@@ -574,14 +574,14 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
574
574
|
>
|
|
575
575
|
Logg ut
|
|
576
576
|
</pkt-button>
|
|
577
|
-
` :
|
|
578
|
-
</div>` :
|
|
577
|
+
` : t}
|
|
578
|
+
</div>` : t}
|
|
579
579
|
</header>
|
|
580
580
|
`;
|
|
581
581
|
}
|
|
582
582
|
render() {
|
|
583
583
|
let e = this.renderHeader();
|
|
584
|
-
return this.isFixed ?
|
|
584
|
+
return this.isFixed ? i`
|
|
585
585
|
<div class="pkt-header-service-wrapper">
|
|
586
586
|
${e}
|
|
587
587
|
<div class=${s({
|
|
@@ -595,67 +595,67 @@ var v = "https://punkt-cdn.oslo.kommune.no/latest/logos/", y = class extends l {
|
|
|
595
595
|
` : e;
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
|
-
|
|
598
|
+
n([r({
|
|
599
599
|
type: String,
|
|
600
600
|
attribute: "service-name"
|
|
601
|
-
})], y.prototype, "serviceName", void 0),
|
|
601
|
+
})], y.prototype, "serviceName", void 0), n([r({
|
|
602
602
|
type: String,
|
|
603
603
|
attribute: "service-link"
|
|
604
|
-
})], y.prototype, "serviceLink", void 0),
|
|
604
|
+
})], y.prototype, "serviceLink", void 0), n([r({
|
|
605
605
|
type: String,
|
|
606
606
|
attribute: "logo-link"
|
|
607
|
-
})], y.prototype, "logoLink", void 0),
|
|
607
|
+
})], y.prototype, "logoLink", void 0), n([r({
|
|
608
608
|
type: String,
|
|
609
609
|
attribute: "search-placeholder"
|
|
610
|
-
})], y.prototype, "searchPlaceholder", void 0),
|
|
610
|
+
})], y.prototype, "searchPlaceholder", void 0), n([r({
|
|
611
611
|
type: String,
|
|
612
612
|
attribute: "search-value"
|
|
613
|
-
})], y.prototype, "searchValue", void 0),
|
|
613
|
+
})], y.prototype, "searchValue", void 0), n([r({
|
|
614
614
|
type: Number,
|
|
615
615
|
attribute: "mobile-breakpoint"
|
|
616
|
-
})], y.prototype, "mobileBreakpoint", void 0),
|
|
616
|
+
})], y.prototype, "mobileBreakpoint", void 0), n([r({
|
|
617
617
|
type: Number,
|
|
618
618
|
attribute: "tablet-breakpoint"
|
|
619
|
-
})], y.prototype, "tabletBreakpoint", void 0),
|
|
619
|
+
})], y.prototype, "tabletBreakpoint", void 0), n([r({
|
|
620
620
|
type: String,
|
|
621
621
|
attribute: "opened-menu"
|
|
622
|
-
})], y.prototype, "openedMenu", void 0),
|
|
622
|
+
})], y.prototype, "openedMenu", void 0), n([r({
|
|
623
623
|
type: String,
|
|
624
624
|
attribute: "log-out-button-placement"
|
|
625
|
-
})], y.prototype, "logOutButtonPlacement", void 0),
|
|
625
|
+
})], y.prototype, "logOutButtonPlacement", void 0), n([r({ type: String })], y.prototype, "position", void 0), n([r({
|
|
626
626
|
type: String,
|
|
627
627
|
attribute: "scroll-behavior"
|
|
628
|
-
})], y.prototype, "scrollBehavior", void 0),
|
|
628
|
+
})], y.prototype, "scrollBehavior", void 0), n([r({
|
|
629
629
|
type: String,
|
|
630
630
|
attribute: "slot-menu-variant"
|
|
631
|
-
})], y.prototype, "slotMenuVariant", void 0),
|
|
631
|
+
})], y.prototype, "slotMenuVariant", void 0), n([r({
|
|
632
632
|
type: String,
|
|
633
633
|
attribute: "slot-menu-text"
|
|
634
|
-
})], y.prototype, "slotMenuText", void 0),
|
|
634
|
+
})], y.prototype, "slotMenuText", void 0), n([r({
|
|
635
635
|
type: Boolean,
|
|
636
636
|
attribute: "hide-logo",
|
|
637
637
|
converter: p
|
|
638
|
-
})], y.prototype, "hideLogo", void 0),
|
|
638
|
+
})], y.prototype, "hideLogo", void 0), n([r({
|
|
639
639
|
type: Boolean,
|
|
640
640
|
converter: p
|
|
641
|
-
})], y.prototype, "compact", void 0),
|
|
641
|
+
})], y.prototype, "compact", void 0), n([r({
|
|
642
642
|
type: Boolean,
|
|
643
643
|
attribute: "show-search",
|
|
644
644
|
converter: p
|
|
645
|
-
})], y.prototype, "showSearch", void 0),
|
|
645
|
+
})], y.prototype, "showSearch", void 0), n([r({
|
|
646
646
|
type: Boolean,
|
|
647
647
|
attribute: "can-change-representation",
|
|
648
648
|
converter: p
|
|
649
|
-
})], y.prototype, "canChangeRepresentation", void 0),
|
|
649
|
+
})], y.prototype, "canChangeRepresentation", void 0), n([r({
|
|
650
650
|
type: Boolean,
|
|
651
651
|
attribute: "has-log-out",
|
|
652
652
|
converter: p
|
|
653
|
-
})], y.prototype, "hasLogOut", void 0),
|
|
653
|
+
})], y.prototype, "hasLogOut", void 0), n([r({ type: Object })], y.prototype, "user", void 0), n([r({
|
|
654
654
|
type: Array,
|
|
655
655
|
attribute: "user-menu"
|
|
656
|
-
})], y.prototype, "userMenu", void 0),
|
|
656
|
+
})], y.prototype, "userMenu", void 0), n([r({ type: Object })], y.prototype, "representing", void 0), n([e()], y.prototype, "isMobile", void 0), n([e()], y.prototype, "isTablet", void 0), n([e()], y.prototype, "openMenu", void 0), n([e()], y.prototype, "isHidden", void 0), n([e()], y.prototype, "componentWidth", void 0), n([e()], y.prototype, "alignSlotRight", void 0), n([e()], y.prototype, "alignSearchRight", void 0);
|
|
657
657
|
try {
|
|
658
|
-
|
|
658
|
+
a("pkt-header-service")(y);
|
|
659
659
|
} catch {
|
|
660
660
|
console.warn("Forsøker å definere <pkt-header-service>, men den er allerede definert");
|
|
661
661
|
}
|
|
@@ -680,7 +680,7 @@ var b = class extends l {
|
|
|
680
680
|
] : this.userMenu;
|
|
681
681
|
}
|
|
682
682
|
render() {
|
|
683
|
-
return
|
|
683
|
+
return i`
|
|
684
684
|
<pkt-header-service
|
|
685
685
|
service-name=${u(this.serviceName)}
|
|
686
686
|
service-link=${u(this.serviceLink)}
|
|
@@ -704,78 +704,78 @@ var b = class extends l {
|
|
|
704
704
|
.userMenu=${this.effectiveUserMenu}
|
|
705
705
|
.representing=${this.representing}
|
|
706
706
|
>
|
|
707
|
-
${this.hasSlotContent() ?
|
|
707
|
+
${this.hasSlotContent() ? i`<div class="pkt-contents">${c(this)}</div>` : t}
|
|
708
708
|
</pkt-header-service>
|
|
709
709
|
`;
|
|
710
710
|
}
|
|
711
711
|
};
|
|
712
|
-
|
|
712
|
+
n([r({
|
|
713
713
|
type: String,
|
|
714
714
|
attribute: "service-name"
|
|
715
|
-
})], b.prototype, "serviceName", void 0),
|
|
715
|
+
})], b.prototype, "serviceName", void 0), n([r({
|
|
716
716
|
type: String,
|
|
717
717
|
attribute: "service-link"
|
|
718
|
-
})], b.prototype, "serviceLink", void 0),
|
|
718
|
+
})], b.prototype, "serviceLink", void 0), n([r({
|
|
719
719
|
type: String,
|
|
720
720
|
attribute: "logo-link"
|
|
721
|
-
})], b.prototype, "logoLink", void 0),
|
|
721
|
+
})], b.prototype, "logoLink", void 0), n([r({
|
|
722
722
|
type: String,
|
|
723
723
|
attribute: "search-placeholder"
|
|
724
|
-
})], b.prototype, "searchPlaceholder", void 0),
|
|
724
|
+
})], b.prototype, "searchPlaceholder", void 0), n([r({
|
|
725
725
|
type: String,
|
|
726
726
|
attribute: "search-value"
|
|
727
|
-
})], b.prototype, "searchValue", void 0),
|
|
727
|
+
})], b.prototype, "searchValue", void 0), n([r({
|
|
728
728
|
type: Number,
|
|
729
729
|
attribute: "mobile-breakpoint"
|
|
730
|
-
})], b.prototype, "mobileBreakpoint", void 0),
|
|
730
|
+
})], b.prototype, "mobileBreakpoint", void 0), n([r({
|
|
731
731
|
type: Number,
|
|
732
732
|
attribute: "tablet-breakpoint"
|
|
733
|
-
})], b.prototype, "tabletBreakpoint", void 0),
|
|
733
|
+
})], b.prototype, "tabletBreakpoint", void 0), n([r({
|
|
734
734
|
type: String,
|
|
735
735
|
attribute: "opened-menu"
|
|
736
|
-
})], b.prototype, "openedMenu", void 0),
|
|
736
|
+
})], b.prototype, "openedMenu", void 0), n([r({
|
|
737
737
|
type: String,
|
|
738
738
|
attribute: "log-out-button-placement"
|
|
739
|
-
})], b.prototype, "logOutButtonPlacement", void 0),
|
|
739
|
+
})], b.prototype, "logOutButtonPlacement", void 0), n([r({ type: String })], b.prototype, "position", void 0), n([r({
|
|
740
740
|
type: String,
|
|
741
741
|
attribute: "scroll-behavior"
|
|
742
|
-
})], b.prototype, "scrollBehavior", void 0),
|
|
742
|
+
})], b.prototype, "scrollBehavior", void 0), n([r({
|
|
743
743
|
type: String,
|
|
744
744
|
attribute: "slot-menu-variant"
|
|
745
|
-
})], b.prototype, "slotMenuVariant", void 0),
|
|
745
|
+
})], b.prototype, "slotMenuVariant", void 0), n([r({
|
|
746
746
|
type: String,
|
|
747
747
|
attribute: "slot-menu-text"
|
|
748
|
-
})], b.prototype, "slotMenuText", void 0),
|
|
748
|
+
})], b.prototype, "slotMenuText", void 0), n([r({
|
|
749
749
|
type: Boolean,
|
|
750
750
|
attribute: "hide-logo",
|
|
751
751
|
converter: p
|
|
752
|
-
})], b.prototype, "hideLogo", void 0),
|
|
752
|
+
})], b.prototype, "hideLogo", void 0), n([r({
|
|
753
753
|
type: Boolean,
|
|
754
754
|
converter: p
|
|
755
|
-
})], b.prototype, "compact", void 0),
|
|
755
|
+
})], b.prototype, "compact", void 0), n([r({
|
|
756
756
|
type: Boolean,
|
|
757
757
|
attribute: "show-search",
|
|
758
758
|
converter: p
|
|
759
|
-
})], b.prototype, "showSearch", void 0),
|
|
759
|
+
})], b.prototype, "showSearch", void 0), n([r({
|
|
760
760
|
type: Boolean,
|
|
761
761
|
attribute: "can-change-representation",
|
|
762
762
|
converter: p
|
|
763
|
-
})], b.prototype, "canChangeRepresentation", void 0),
|
|
763
|
+
})], b.prototype, "canChangeRepresentation", void 0), n([r({
|
|
764
764
|
type: Boolean,
|
|
765
765
|
attribute: "has-log-out",
|
|
766
766
|
converter: p
|
|
767
|
-
})], b.prototype, "hasLogOut", void 0),
|
|
767
|
+
})], b.prototype, "hasLogOut", void 0), n([r({ type: Object })], b.prototype, "user", void 0), n([r({
|
|
768
768
|
type: Array,
|
|
769
769
|
attribute: "user-menu"
|
|
770
|
-
})], b.prototype, "userMenu", void 0),
|
|
770
|
+
})], b.prototype, "userMenu", void 0), n([r({ type: Object })], b.prototype, "representing", void 0), n([r({
|
|
771
771
|
type: Array,
|
|
772
772
|
attribute: "user-menu-footer"
|
|
773
|
-
})], b.prototype, "userMenuFooter", void 0),
|
|
773
|
+
})], b.prototype, "userMenuFooter", void 0), n([r({
|
|
774
774
|
type: Array,
|
|
775
775
|
attribute: "user-options"
|
|
776
776
|
})], b.prototype, "userOptions", void 0);
|
|
777
777
|
try {
|
|
778
|
-
|
|
778
|
+
a("pkt-header")(b);
|
|
779
779
|
} catch {
|
|
780
780
|
console.warn("Forsøker å definere <pkt-header>, men den er allerede definert");
|
|
781
781
|
}
|