@oslokommune/punkt-elements 16.7.1 → 16.7.4
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 +35 -0
- package/dist/accordion-BB1JrONI.cjs +34 -0
- package/dist/accordion-nNH87Y60.js +130 -0
- package/dist/alert-BEEnTiCb.cjs +33 -0
- package/dist/alert-ePJuDtmm.js +171 -0
- package/dist/async-directive-B9P1Qa0k.cjs +1 -0
- package/dist/async-directive-CaQiqjyV.js +55 -0
- package/dist/backlink-Ba03LlbB.cjs +13 -0
- package/dist/backlink-CiwXrQYD.js +38 -0
- package/dist/booleanish-BmcOU-43.js +11 -0
- package/dist/booleanish-jJLlnr6-.cjs +1 -0
- package/dist/breadcrumbs-CD1zib3s.cjs +43 -0
- package/dist/breadcrumbs-CpuVqWhF.js +76 -0
- package/dist/button-BIpd1xJh.js +95 -0
- package/dist/button-D-TOBaJB.cjs +27 -0
- package/dist/calendar-BzEtOJla.js +2031 -0
- package/dist/calendar-E5jJLt8D.cjs +90 -0
- package/dist/card-BYJu1MYm.js +339 -0
- package/dist/card-CUFhMVim.cjs +87 -0
- package/dist/checkbox-BARDb9iV.cjs +31 -0
- package/dist/checkbox-Cspxcvt_.js +111 -0
- package/dist/class-map-C8HuhNzZ.js +27 -0
- package/dist/class-map-CJ-msbHs.cjs +1 -0
- package/dist/classutils-DEL164Ur.js +7 -0
- package/dist/classutils-z8YsPlOf.cjs +1 -0
- package/dist/combobox-BcdLZRDU.js +984 -0
- package/dist/combobox-CGbFTWq_.cjs +135 -0
- package/dist/consent-DeB_5sWH.js +197 -0
- package/dist/consent-hwu7pp3S.cjs +11 -0
- package/dist/datepicker-DpmlsnH_.cjs +273 -0
- package/dist/datepicker-OVd8pmnZ.js +1125 -0
- package/dist/dialog-polyfill.esm-1hPr0gl9.js +280 -0
- package/dist/dialog-polyfill.esm-D3Oinvk0.cjs +1 -0
- package/dist/directive-3THFsVew.js +28 -0
- package/dist/directive-CJ2giQBZ.cjs +1 -0
- package/dist/directive-helpers-D1QSxY17.cjs +1 -0
- package/dist/directive-helpers-Dkv2gKgs.js +25 -0
- package/dist/element-DjtxO-1r.cjs +2 -0
- package/dist/element-cZ85T_aa.js +693 -0
- package/dist/element-with-slot-4J2o3SeU.js +166 -0
- package/dist/element-with-slot-CWoTGA1B.cjs +1 -0
- package/dist/header-DWgPgGfS.cjs +304 -0
- package/dist/header-a6ztVNp3.js +782 -0
- package/dist/heading-BgSWIRii.cjs +1 -0
- package/dist/heading-DiQLPxdf.js +73 -0
- package/dist/helptext-CCBKKLus.js +65 -0
- package/dist/helptext-D-3QfZv5.cjs +24 -0
- package/dist/icon-Co72KtgF.js +86 -0
- package/dist/icon-Dr8sfT2X.cjs +1 -0
- package/dist/if-defined-Cjj8qN-Z.js +5 -0
- package/dist/if-defined-XKOD_t_V.cjs +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/input-element-B1yxcfz4.cjs +1 -0
- package/dist/input-element-Bw1s6NlF.js +643 -0
- package/dist/input-wrapper-BRuVELpK.cjs +54 -0
- package/dist/input-wrapper-CDyHTR1V.js +164 -0
- package/dist/input-wrapper-Dwd-_sKm.cjs +1 -0
- package/dist/input-wrapper-YfTmpSSY.js +117 -0
- package/dist/link-CKAFMz9j.js +89 -0
- package/dist/link-CyTCpI0k.cjs +7 -0
- package/dist/linkcard-B0KOGaGj.js +55 -0
- package/dist/linkcard-BE4-FewK.cjs +13 -0
- package/dist/listbox-DCA2JoPV.cjs +106 -0
- package/dist/listbox-DuBgTFvH.js +397 -0
- package/dist/loader-6kFZUErT.js +66 -0
- package/dist/loader-CX2rsC01.cjs +16 -0
- package/dist/messagebox-Cwlg5sOr.js +110 -0
- package/dist/messagebox-Din9X53b.cjs +13 -0
- package/dist/modal-C_wtsh9m.js +209 -0
- package/dist/modal-DS_wUOIv.cjs +36 -0
- package/dist/pkt-accordion.cjs +1 -1
- package/dist/pkt-accordion.js +2 -7
- package/dist/pkt-alert.cjs +1 -1
- package/dist/pkt-alert.js +2 -6
- package/dist/pkt-backlink.cjs +1 -1
- package/dist/pkt-backlink.js +2 -6
- package/dist/pkt-breadcrumbs.cjs +1 -43
- package/dist/pkt-breadcrumbs.js +2 -79
- package/dist/pkt-button.cjs +1 -1
- package/dist/pkt-button.js +2 -6
- package/dist/pkt-calendar.cjs +1 -1
- package/dist/pkt-calendar.js +2 -6
- package/dist/pkt-card.cjs +1 -1
- package/dist/pkt-card.js +2 -6
- package/dist/pkt-checkbox.cjs +1 -1
- package/dist/pkt-checkbox.js +2 -6
- package/dist/pkt-combobox.cjs +1 -1
- package/dist/pkt-combobox.js +2 -6
- package/dist/pkt-consent.cjs +1 -1
- package/dist/pkt-consent.js +2 -6
- package/dist/pkt-datepicker.cjs +1 -1
- package/dist/pkt-datepicker.js +5 -10
- package/dist/pkt-header.cjs +1 -304
- package/dist/pkt-header.js +2 -855
- package/dist/pkt-heading.cjs +1 -1
- package/dist/pkt-heading.js +2 -6
- package/dist/pkt-helptext.cjs +1 -1
- package/dist/pkt-helptext.js +2 -6
- package/dist/pkt-icon.cjs +1 -1
- package/dist/pkt-icon.js +2 -6
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +30 -66
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +2 -6
- package/dist/pkt-link.cjs +1 -1
- package/dist/pkt-link.js +2 -6
- package/dist/pkt-linkcard.cjs +1 -1
- package/dist/pkt-linkcard.js +2 -6
- package/dist/pkt-listbox.cjs +1 -1
- package/dist/pkt-listbox.js +2 -6
- package/dist/pkt-loader.cjs +1 -1
- package/dist/pkt-loader.js +2 -6
- package/dist/pkt-messagebox.cjs +1 -1
- package/dist/pkt-messagebox.js +2 -6
- package/dist/pkt-modal.cjs +1 -1
- package/dist/pkt-modal.js +2 -6
- package/dist/pkt-options-controller-CRrI6WMk.js +43 -0
- package/dist/pkt-options-controller-CXUGx134.cjs +1 -0
- package/dist/pkt-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +2 -6
- package/dist/pkt-radiobutton.cjs +1 -1
- package/dist/pkt-radiobutton.js +2 -6
- package/dist/pkt-select.cjs +1 -1
- package/dist/pkt-select.js +2 -6
- package/dist/pkt-tabs.cjs +1 -1
- package/dist/pkt-tabs.js +2 -7
- package/dist/pkt-tag.cjs +1 -1
- package/dist/pkt-tag.js +2 -6
- package/dist/pkt-textarea.cjs +1 -1
- package/dist/pkt-textarea.js +2 -6
- package/dist/pkt-textinput.cjs +1 -1
- package/dist/pkt-textinput.js +2 -6
- package/dist/pkt-timepicker.cjs +1 -191
- package/dist/pkt-timepicker.js +2 -558
- package/dist/progressbar-CdXtmOBb.cjs +17 -0
- package/dist/progressbar-Dy9AiYQz.js +113 -0
- package/dist/radiobutton-GOnpUbCW.cjs +31 -0
- package/dist/radiobutton-V_KPbup_.js +84 -0
- package/dist/ref-BaJ0mBT_.cjs +1 -0
- package/dist/ref-RS8Uv6uC.js +30 -0
- package/dist/repeat-Cepr3469.js +57 -0
- package/dist/repeat-CqcDYBxr.cjs +1 -0
- package/dist/select-BSAFd8Wa.js +164 -0
- package/dist/select-C2i8sOk5.cjs +49 -0
- package/dist/tabs-D8nL9rWx.cjs +37 -0
- package/dist/tabs-Y7utmJi9.js +318 -0
- package/dist/tag-DLthw5b4.cjs +27 -0
- package/dist/tag-VwykmuQR.js +179 -0
- package/dist/textarea-D7aGOyDf.cjs +46 -0
- package/dist/textarea-DYOBhJrN.js +115 -0
- package/dist/textinput-BUgntXnM.js +124 -0
- package/dist/textinput-DFh8_9cx.cjs +70 -0
- package/dist/timepicker-BIfE7KKJ.cjs +191 -0
- package/dist/timepicker-DaSwn1FA.js +503 -0
- package/dist/utils-CUqCKGvp.js +7 -0
- package/dist/utils-CjAbIttF.cjs +1 -0
- package/package.json +6 -6
- package/src/components/accordion/accordion.ts +6 -1
- package/src/components/accordion/accordionitem.ts +6 -1
- package/src/components/alert/alert.test.ts +1 -1
- package/src/components/alert/alert.ts +12 -7
- 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-utils.test.ts +16 -23
- 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 +6 -1
- package/dist/accordionitem-D1Agl1bB.cjs +0 -34
- package/dist/accordionitem-ZlaXvjt5.js +0 -138
- package/dist/alert-BuAXrnKl.js +0 -115
- package/dist/alert-DFkFNTxh.cjs +0 -33
- package/dist/async-directive-CMzWMlZ5.js +0 -65
- package/dist/async-directive-DoMuclel.cjs +0 -5
- package/dist/backlink-EiAXUUZP.cjs +0 -13
- package/dist/backlink-V4DAt17e.js +0 -47
- package/dist/booleanish-BKVonob4.cjs +0 -1
- package/dist/booleanish-C9R0tdXH.js +0 -11
- package/dist/button-DEyvt1LI.js +0 -137
- package/dist/button-DYv5Dg4M.cjs +0 -27
- package/dist/calendar-HIE9nxcc.cjs +0 -90
- package/dist/calendar-S63oreVW.js +0 -2138
- package/dist/card-CyeH6l1c.cjs +0 -87
- package/dist/card-DDiLfuO4.js +0 -231
- package/dist/checkbox-BLlwTABj.cjs +0 -31
- package/dist/checkbox-ejBUa5qQ.js +0 -145
- package/dist/class-map-CEnykyO_.js +0 -34
- package/dist/class-map-CsENJXf1.cjs +0 -5
- package/dist/classutils-BwNK82ZQ.cjs +0 -1
- package/dist/classutils-RQs1k6D9.js +0 -7
- package/dist/combobox-BmxSecfE.js +0 -818
- package/dist/combobox-Hb2V-fPX.cjs +0 -135
- package/dist/consent-iXyx5v6J.js +0 -173
- package/dist/consent-ruWAEVXW.cjs +0 -11
- package/dist/datepicker-CZl7b8Na.js +0 -1158
- package/dist/datepicker-D2H7U6MS.cjs +0 -273
- package/dist/dialog-polyfill.esm-CPKZe7AL.cjs +0 -1
- package/dist/dialog-polyfill.esm-CbjBMXAG.js +0 -395
- package/dist/directive-C7oCP5Bh.cjs +0 -5
- package/dist/directive-helpers-BP2WOx60.cjs +0 -5
- package/dist/directive-helpers-rm-28gIj.js +0 -38
- package/dist/directive-oAbCiebi.js +0 -27
- package/dist/element-CPpT3rFQ.js +0 -638
- package/dist/element-gR_VtSiD.cjs +0 -27
- package/dist/element-with-slot-Dqk6-TRR.js +0 -240
- package/dist/element-with-slot-ZX-up7jO.cjs +0 -1
- package/dist/heading-CKt7cVn7.js +0 -101
- 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/if-defined-B0krMLad.js +0 -10
- package/dist/if-defined-BOW3ODSj.cjs +0 -5
- package/dist/input-element-8nLwuQS4.js +0 -837
- package/dist/input-element-DdVhUvva.cjs +0 -1
- package/dist/input-wrapper-B0MkQ0IZ.cjs +0 -54
- package/dist/input-wrapper-B2JpK016.js +0 -179
- package/dist/input-wrapper-CDgenrYA.js +0 -6
- package/dist/input-wrapper-EoSAbU-U.cjs +0 -1
- 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-BQKDZvZn.js +0 -438
- package/dist/listbox-CGgV9MAe.cjs +0 -106
- package/dist/loader-Ci3CHU8k.js +0 -93
- 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/modal-DzGe1g8Z.js +0 -154
- package/dist/pkt-options-controller-5LXbEzuk.cjs +0 -1
- package/dist/pkt-options-controller-B5YalfCb.js +0 -39
- package/dist/progressbar-By7e0lEI.js +0 -162
- package/dist/progressbar-DsJ2B9Vm.cjs +0 -21
- package/dist/radiobutton-6frNG9J_.js +0 -111
- package/dist/radiobutton-Bv-BZ1Hw.cjs +0 -31
- package/dist/ref-Bg_Swj5w.js +0 -42
- package/dist/ref-CL-Xk9Xm.cjs +0 -5
- package/dist/repeat-BD8TKgJb.js +0 -61
- package/dist/repeat-Cfq8CDlf.cjs +0 -5
- package/dist/select-CXZt1nHS.js +0 -228
- package/dist/select-WFhS4Vfp.cjs +0 -49
- package/dist/state-C_1EOo3D.js +0 -12
- package/dist/state-Dg-53wQ8.cjs +0 -5
- package/dist/tabitem-CB8wkKmv.js +0 -332
- package/dist/tabitem-DZpspU4Q.cjs +0 -65
- package/dist/tag-BuCpqaks.js +0 -115
- package/dist/tag-X6xdjR0N.cjs +0 -27
- package/dist/textarea-Bzuymclz.js +0 -131
- package/dist/textarea-DoeHJ7HR.cjs +0 -50
- package/dist/textinput-9lHjs4ce.js +0 -150
- package/dist/textinput-BNsLd26i.cjs +0 -70
- package/dist/utils-DznhwRXm.js +0 -8
- package/dist/utils-byXsEz1u.cjs +0 -1
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { P as d, s as m } from "./element-with-slot-Dqk6-TRR.js";
|
|
2
|
-
import { A as u, b as n, n as p, t as h } from "./element-CPpT3rFQ.js";
|
|
3
|
-
import { e as f } from "./class-map-CEnykyO_.js";
|
|
4
|
-
import { r as k } from "./state-C_1EOo3D.js";
|
|
5
|
-
import "./icon-BlKA8YuW.js";
|
|
6
|
-
import { u as _ } from "./classutils-RQs1k6D9.js";
|
|
7
|
-
const v = { skin: { default: "beige" }, compact: { default: !1 }, closable: { default: !1 } }, b = {
|
|
8
|
-
props: v
|
|
9
|
-
};
|
|
10
|
-
var g = Object.defineProperty, x = Object.getOwnPropertyDescriptor, o = (t, i, a, l) => {
|
|
11
|
-
for (var s = l > 1 ? void 0 : l ? x(i, a) : i, r = t.length - 1, c; r >= 0; r--)
|
|
12
|
-
(c = t[r]) && (s = (l ? c(i, a, s) : c(s)) || s);
|
|
13
|
-
return l && s && g(i, a, s), s;
|
|
14
|
-
};
|
|
15
|
-
let e = class extends d {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(), this.closable = b.props.closable.default, this.compact = b.props.compact.default, this.title = "", this.skin = b.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") && _(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 n`<div class=${f(t)}>
|
|
35
|
-
${this.closable ? n`<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>` : u}
|
|
44
|
-
${this.title ? n`<div class="pkt-messagebox__title">${this.title}</div>` : u}
|
|
45
|
-
<div class="pkt-messagebox__text">${m(this)}</div>
|
|
46
|
-
</div>`;
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
o([
|
|
50
|
-
p({ type: Boolean, reflect: !0 })
|
|
51
|
-
], e.prototype, "closable", 2);
|
|
52
|
-
o([
|
|
53
|
-
p({ type: Boolean, reflect: !0 })
|
|
54
|
-
], e.prototype, "compact", 2);
|
|
55
|
-
o([
|
|
56
|
-
p({ type: String, reflect: !0 })
|
|
57
|
-
], e.prototype, "title", 2);
|
|
58
|
-
o([
|
|
59
|
-
p({ type: String, reflect: !0 })
|
|
60
|
-
], e.prototype, "skin", 2);
|
|
61
|
-
o([
|
|
62
|
-
k()
|
|
63
|
-
], e.prototype, "_isClosed", 2);
|
|
64
|
-
e = o([
|
|
65
|
-
h("pkt-messagebox")
|
|
66
|
-
], e);
|
|
67
|
-
export {
|
|
68
|
-
e as P
|
|
69
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./element-with-slot-ZX-up7jO.cjs"),e=require("./element-gR_VtSiD.cjs"),b=require("./class-map-CsENJXf1.cjs"),u=require("./state-Dg-53wQ8.cjs");require("./icon-Bqj9oBbl.cjs");const k=require("./classutils-BwNK82ZQ.cjs"),d={skin:{default:"beige"},compact:{default:!1},closable:{default:!1}},r={props:d};var h=Object.defineProperty,g=Object.getOwnPropertyDescriptor,o=(l,t,a,i)=>{for(var s=i>1?void 0:i?g(t,a):t,c=l.length-1,p;c>=0;c--)(p=l[c])&&(s=(i?p(t,a,s):p(s))||s);return i&&s&&h(t,a,s),s};exports.PktMessagebox=class extends n.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=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:t},bubbles:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:t},bubbles:!0}))},this._isClosed=!1}updated(t){super.updated(t),t.has("_isClosed")&&k.updateClassAttribute(this,"pkt-hide",this._isClosed)}render(){const t={"pkt-messagebox":!0,"pkt-messagebox--compact":this.compact,[`pkt-messagebox--${this.skin}`]:this.skin,"pkt-messagebox--closable":this.closable,"pkt-hide":this._isClosed};return e.b`<div class=${b.e(t)}>
|
|
2
|
-
${this.closable?e.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>`:e.A}
|
|
11
|
-
${this.title?e.b`<div class="pkt-messagebox__title">${this.title}</div>`:e.A}
|
|
12
|
-
<div class="pkt-messagebox__text">${n.slotContent(this)}</div>
|
|
13
|
-
</div>`}};o([e.n({type:Boolean,reflect:!0})],exports.PktMessagebox.prototype,"closable",2);o([e.n({type:Boolean,reflect:!0})],exports.PktMessagebox.prototype,"compact",2);o([e.n({type:String,reflect:!0})],exports.PktMessagebox.prototype,"title",2);o([e.n({type:String,reflect:!0})],exports.PktMessagebox.prototype,"skin",2);o([u.r()],exports.PktMessagebox.prototype,"_isClosed",2);exports.PktMessagebox=o([e.t("pkt-messagebox")],exports.PktMessagebox);
|
package/dist/modal-CyvEkbfQ.cjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";const d=require("./class-map-CsENJXf1.cjs"),o=require("./element-gR_VtSiD.cjs"),u=require("./state-Dg-53wQ8.cjs"),p=require("./element-with-slot-ZX-up7jO.cjs"),h=require("./ref-CL-Xk9Xm.cjs");require("./icon-Bqj9oBbl.cjs");const k={hideCloseButton:{default:!1},closeOnBackdropClick:{default:!1},size:{default:"medium"}},c={props:k};var m=Object.defineProperty,v=Object.getOwnPropertyDescriptor,n=(r,e,t,i)=>{for(var s=i>1?void 0:i?v(e,t):e,l=r.length-1,a;l>=0;l--)(a=r[l])&&(s=(i?a(e,t,s):a(s))||s);return i&&s&&m(e,t,s),s};exports.PktModal=class extends p.PktElementWithSlot{constructor(){super(),this.open=!1,this.headingText="",this.removePadding=!1,this.hideCloseButton=c.props.hideCloseButton.default,this.closeOnBackdropClick=c.props.closeOnBackdropClick.default,this.closeButtonSkin="blue",this.size=c.props.size.default,this.variant="dialog",this.drawerPosition="right",this.transparentBackdrop=!1,this.dialogRef=h.e(),this._isOpen=!1,this.close=(e,t=!1)=>{var s;if(!this._isOpen)return;this._isOpen=!1,this.open=!1,document.body.classList.remove("pkt-modal--open");const i=document.activeElement;i&&!this.isElementInViewport(i)&&i.scrollIntoView({behavior:"smooth",block:"nearest"}),this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0,composed:!0})),t||(s=this.dialogRef.value)==null||s.close(),this.requestUpdate()},this.showModal=(e=null)=>{var t;this._isOpen=!0,this.open=!0,(t=this.dialogRef.value)==null||t.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(i=>i.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 t;this.closeOnBackdropClick&&e.target===((t=this.dialogRef)==null?void 0:t.value)&&this.close(e)}isElementInViewport(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.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"},t={"pkt-modal__headingText":!0,"pkt-txt-24":!0},i={"pkt-modal__content":!0,"pkt-txt-18-light":!0},s=this.closeButtonSkin==="blue",l={"pkt-modal__closeButton":!0,[`pkt-modal__closeButton--${this.closeButtonSkin}`]:!0};return o.b`
|
|
2
|
-
<dialog
|
|
3
|
-
class=${d.e(e)}
|
|
4
|
-
${h.n(this.dialogRef)}
|
|
5
|
-
aria-labelledby=${this.headingText?"pkt-modal__headingText":o.A}
|
|
6
|
-
aria-describedby="pkt-modal__content"
|
|
7
|
-
@close=${a=>this.close(a,!0)}
|
|
8
|
-
>
|
|
9
|
-
<div class="pkt-modal__wrapper">
|
|
10
|
-
${this.headingText||!this.hideCloseButton?o.b`<div class="pkt-modal__header">
|
|
11
|
-
<div class="pkt-modal__header-background"></div>
|
|
12
|
-
${this.headingText?o.b`<h1 id="pkt-modal__headingText" class=${d.e(t)}>
|
|
13
|
-
${this.headingText}
|
|
14
|
-
</h1>`:o.b`<div class="pkt-modal__headingText"></div>`}
|
|
15
|
-
${this.hideCloseButton?o.b`<div class="pkt-modal__noCloseButton"></div>`:o.b`<div class="${d.e(l)}">
|
|
16
|
-
<pkt-button
|
|
17
|
-
@click=${a=>this.close(a)}
|
|
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>`:o.A}
|
|
28
|
-
<div class="pkt-modal__container">
|
|
29
|
-
<div
|
|
30
|
-
id="pkt-modal__content"
|
|
31
|
-
class=${d.e(i)}
|
|
32
|
-
>${p.slotContent(this)}</div>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</dialog>
|
|
36
|
-
`}};n([o.n({type:Boolean,reflect:!0})],exports.PktModal.prototype,"open",2);n([o.n({type:String})],exports.PktModal.prototype,"headingText",2);n([o.n({type:Boolean})],exports.PktModal.prototype,"removePadding",2);n([o.n({type:Boolean})],exports.PktModal.prototype,"hideCloseButton",2);n([o.n({type:Boolean})],exports.PktModal.prototype,"closeOnBackdropClick",2);n([o.n({type:String})],exports.PktModal.prototype,"closeButtonSkin",2);n([o.n({type:String})],exports.PktModal.prototype,"size",2);n([o.n({type:String})],exports.PktModal.prototype,"variant",2);n([o.n({type:String})],exports.PktModal.prototype,"drawerPosition",2);n([o.n({type:Boolean})],exports.PktModal.prototype,"transparentBackdrop",2);n([u.r()],exports.PktModal.prototype,"_isOpen",2);exports.PktModal=n([o.t("pkt-modal")],exports.PktModal);
|
package/dist/modal-DzGe1g8Z.js
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { e as p } from "./class-map-CEnykyO_.js";
|
|
2
|
-
import { A as u, b as r, n, t as m } from "./element-CPpT3rFQ.js";
|
|
3
|
-
import { r as k } from "./state-C_1EOo3D.js";
|
|
4
|
-
import { P as f, s as v } from "./element-with-slot-Dqk6-TRR.js";
|
|
5
|
-
import { e as g, n as _ } from "./ref-Bg_Swj5w.js";
|
|
6
|
-
import "./icon-BlKA8YuW.js";
|
|
7
|
-
const y = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, h = {
|
|
8
|
-
props: y
|
|
9
|
-
};
|
|
10
|
-
var w = Object.defineProperty, B = Object.getOwnPropertyDescriptor, i = (e, t, s, a) => {
|
|
11
|
-
for (var l = a > 1 ? void 0 : a ? B(t, s) : t, d = e.length - 1, c; d >= 0; d--)
|
|
12
|
-
(c = e[d]) && (l = (a ? c(t, s, l) : c(l)) || l);
|
|
13
|
-
return a && l && w(t, s, l), l;
|
|
14
|
-
};
|
|
15
|
-
let o = class extends f {
|
|
16
|
-
constructor() {
|
|
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 a;
|
|
19
|
-
if (!this._isOpen) return;
|
|
20
|
-
this._isOpen = !1, this.open = !1, document.body.classList.remove("pkt-modal--open");
|
|
21
|
-
const s = document.activeElement;
|
|
22
|
-
s && !this.isElementInViewport(s) && s.scrollIntoView({ behavior: "smooth", block: "nearest" }), this.dispatchEvent(
|
|
23
|
-
new CustomEvent("close", { detail: { origin: e }, bubbles: !0, composed: !0 })
|
|
24
|
-
), t || (a = this.dialogRef.value) == null || a.close(), this.requestUpdate();
|
|
25
|
-
}, this.showModal = (e = null) => {
|
|
26
|
-
var t;
|
|
27
|
-
this._isOpen = !0, this.open = !0, (t = this.dialogRef.value) == null || t.showModal(), document.body.classList.add("pkt-modal--open"), this.dispatchEvent(
|
|
28
|
-
new CustomEvent("showModal", { detail: { origin: e }, bubbles: !0, composed: !0 })
|
|
29
|
-
), this.requestUpdate();
|
|
30
|
-
}, this._isOpen = !1;
|
|
31
|
-
}
|
|
32
|
-
async connectedCallback() {
|
|
33
|
-
super.connectedCallback(), document.addEventListener("keydown", this.handleKeyDown.bind(this)), document.addEventListener("click", this.handleBackdropClick.bind(this));
|
|
34
|
-
}
|
|
35
|
-
disconnectedCallback() {
|
|
36
|
-
super.disconnectedCallback(), document.removeEventListener("keydown", this.handleKeyDown), document.removeEventListener("click", this.handleBackdropClick);
|
|
37
|
-
}
|
|
38
|
-
updated(e) {
|
|
39
|
-
super.updated(e), e.has("open") && (this.open && !this._isOpen ? this.showModal() : !this.open && this._isOpen && this.close(new Event("close"), !1));
|
|
40
|
-
}
|
|
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((s) => s.default)).registerDialog(this.dialogRef.value), this.dialogRef.value.addEventListener("close", () => {
|
|
43
|
-
this.close(new Event("close"), !0);
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
// P R I V A T E M E T H O D S
|
|
47
|
-
handleKeyDown(e) {
|
|
48
|
-
e.key === "Escape" && this.close(e);
|
|
49
|
-
}
|
|
50
|
-
handleBackdropClick(e) {
|
|
51
|
-
var t;
|
|
52
|
-
this.closeOnBackdropClick && e.target === ((t = this.dialogRef) == null ? void 0 : t.value) && this.close(e);
|
|
53
|
-
}
|
|
54
|
-
isElementInViewport(e) {
|
|
55
|
-
const t = e.getBoundingClientRect();
|
|
56
|
-
return t.top >= 0 && t.left >= 0 && t.bottom <= (window.innerHeight || document.documentElement.clientHeight) && t.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
57
|
-
}
|
|
58
|
-
render() {
|
|
59
|
-
const e = {
|
|
60
|
-
"pkt-modal": !0,
|
|
61
|
-
"pkt-modal--removePadding": this.removePadding ?? !1,
|
|
62
|
-
"pkt-modal--noHeadingText": this.headingText === "" || this.headingText === void 0,
|
|
63
|
-
"pkt-modal--noShadow": this.closeButtonSkin === "yellow-filled",
|
|
64
|
-
"pkt-modal--transparentBackdrop": this.transparentBackdrop ?? !1,
|
|
65
|
-
[`pkt-modal--${this.size}`]: this.size !== void 0,
|
|
66
|
-
[`pkt-modal__${this.variant}`]: this.variant !== void 0,
|
|
67
|
-
[`pkt-modal__drawer--${this.drawerPosition}`]: this.variant === "drawer"
|
|
68
|
-
}, t = {
|
|
69
|
-
"pkt-modal__headingText": !0,
|
|
70
|
-
"pkt-txt-24": !0
|
|
71
|
-
}, s = {
|
|
72
|
-
"pkt-modal__content": !0,
|
|
73
|
-
"pkt-txt-18-light": !0
|
|
74
|
-
}, a = this.closeButtonSkin === "blue", l = {
|
|
75
|
-
"pkt-modal__closeButton": !0,
|
|
76
|
-
[`pkt-modal__closeButton--${this.closeButtonSkin}`]: !0
|
|
77
|
-
};
|
|
78
|
-
return r`
|
|
79
|
-
<dialog
|
|
80
|
-
class=${p(e)}
|
|
81
|
-
${_(this.dialogRef)}
|
|
82
|
-
aria-labelledby=${this.headingText ? "pkt-modal__headingText" : u}
|
|
83
|
-
aria-describedby="pkt-modal__content"
|
|
84
|
-
@close=${(d) => this.close(d, !0)}
|
|
85
|
-
>
|
|
86
|
-
<div class="pkt-modal__wrapper">
|
|
87
|
-
${this.headingText || !this.hideCloseButton ? r`<div class="pkt-modal__header">
|
|
88
|
-
<div class="pkt-modal__header-background"></div>
|
|
89
|
-
${this.headingText ? r`<h1 id="pkt-modal__headingText" class=${p(t)}>
|
|
90
|
-
${this.headingText}
|
|
91
|
-
</h1>` : r`<div class="pkt-modal__headingText"></div>`}
|
|
92
|
-
${this.hideCloseButton ? r`<div class="pkt-modal__noCloseButton"></div>` : r`<div class="${p(l)}">
|
|
93
|
-
<pkt-button
|
|
94
|
-
@click=${(d) => this.close(d)}
|
|
95
|
-
aria-label="close"
|
|
96
|
-
iconname="close"
|
|
97
|
-
variant="icon-only"
|
|
98
|
-
size="medium"
|
|
99
|
-
skin=${a ? "tertiary" : "primary"}
|
|
100
|
-
>
|
|
101
|
-
Lukk
|
|
102
|
-
</pkt-button>
|
|
103
|
-
</div>`}
|
|
104
|
-
</div>` : u}
|
|
105
|
-
<div class="pkt-modal__container">
|
|
106
|
-
<div
|
|
107
|
-
id="pkt-modal__content"
|
|
108
|
-
class=${p(s)}
|
|
109
|
-
>${v(this)}</div>
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
</dialog>
|
|
113
|
-
`;
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
i([
|
|
117
|
-
n({ type: Boolean, reflect: !0 })
|
|
118
|
-
], o.prototype, "open", 2);
|
|
119
|
-
i([
|
|
120
|
-
n({ type: String })
|
|
121
|
-
], o.prototype, "headingText", 2);
|
|
122
|
-
i([
|
|
123
|
-
n({ type: Boolean })
|
|
124
|
-
], o.prototype, "removePadding", 2);
|
|
125
|
-
i([
|
|
126
|
-
n({ type: Boolean })
|
|
127
|
-
], o.prototype, "hideCloseButton", 2);
|
|
128
|
-
i([
|
|
129
|
-
n({ type: Boolean })
|
|
130
|
-
], o.prototype, "closeOnBackdropClick", 2);
|
|
131
|
-
i([
|
|
132
|
-
n({ type: String })
|
|
133
|
-
], o.prototype, "closeButtonSkin", 2);
|
|
134
|
-
i([
|
|
135
|
-
n({ type: String })
|
|
136
|
-
], o.prototype, "size", 2);
|
|
137
|
-
i([
|
|
138
|
-
n({ type: String })
|
|
139
|
-
], o.prototype, "variant", 2);
|
|
140
|
-
i([
|
|
141
|
-
n({ type: String })
|
|
142
|
-
], o.prototype, "drawerPosition", 2);
|
|
143
|
-
i([
|
|
144
|
-
n({ type: Boolean })
|
|
145
|
-
], o.prototype, "transparentBackdrop", 2);
|
|
146
|
-
i([
|
|
147
|
-
k()
|
|
148
|
-
], o.prototype, "_isOpen", 2);
|
|
149
|
-
o = i([
|
|
150
|
-
m("pkt-modal")
|
|
151
|
-
], o);
|
|
152
|
-
export {
|
|
153
|
-
o as P
|
|
154
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("./element-with-slot-ZX-up7jO.cjs");class a{constructor(t){this.nodes=[],this.options=[],this.generation=0,this.host=t,this.host.addController(this),this.nodes=[],this.options=[],this.observer=new MutationObserver(e=>this.handleMutations(e))}hostConnected(){Array.from(this.host.childNodes).forEach(t=>{(t.nodeName==="OPTION"||t.nodeName==="DATA")&&this.addNode(t)}),this.createOptions(),this.observer.observe(this.host,{childList:!0,subtree:!1,attributes:!0})}hostDisconnected(){this.observer.disconnect()}addNode(t){(t.nodeName==="OPTION"||t.nodeName==="DATA")&&(t.hasAttribute("hidden")&&!t.hasAttribute("data-skip")&&t.setAttribute("data-hidden","true"),!t.hasAttribute("hidden")&&t.hasAttribute("data-skip")&&t.hasAttribute("data-hidden")&&t.removeAttribute("data-hidden"),t.setAttribute("class","pkt-hide"),t.setAttribute("data-skip","true"),t.setAttribute("hidden","true"),this.nodes.push(t))}createOptions(){this.options=this.nodes.map(t=>({value:t.hasAttribute("value")?t.getAttribute("value")??"":t.textContent??"",label:t.textContent||t.getAttribute("value")||"",selected:t.hasAttribute("selected"),disabled:t.hasAttribute("disabled"),hidden:t.hasAttribute("data-hidden")})),this.generation++,this.host.requestUpdate()}handleMutations(t){let e=!1;t.forEach(s=>{s.type==="childList"&&(s.addedNodes.forEach(i=>{r.isOptionElement(i)&&(this.addNode(i),e=!0)}),s.removedNodes.forEach(i=>{r.isOptionElement(i)&&(this.nodes=this.nodes.filter(h=>h!==i),e=!0)})),s.type==="attributes"&&r.isOptionElement(s.target)&&(this.addNode(s.target),e=!0)}),e&&this.createOptions()}}exports.PktOptionsSlotController=a;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { i as r } from "./element-with-slot-Dqk6-TRR.js";
|
|
2
|
-
class o {
|
|
3
|
-
constructor(t) {
|
|
4
|
-
this.nodes = [], this.options = [], this.generation = 0, this.host = t, this.host.addController(this), this.nodes = [], this.options = [], this.observer = new MutationObserver((e) => this.handleMutations(e));
|
|
5
|
-
}
|
|
6
|
-
hostConnected() {
|
|
7
|
-
Array.from(this.host.childNodes).forEach((t) => {
|
|
8
|
-
(t.nodeName === "OPTION" || t.nodeName === "DATA") && this.addNode(t);
|
|
9
|
-
}), this.createOptions(), this.observer.observe(this.host, { childList: !0, subtree: !1, attributes: !0 });
|
|
10
|
-
}
|
|
11
|
-
hostDisconnected() {
|
|
12
|
-
this.observer.disconnect();
|
|
13
|
-
}
|
|
14
|
-
addNode(t) {
|
|
15
|
-
(t.nodeName === "OPTION" || t.nodeName === "DATA") && (t.hasAttribute("hidden") && !t.hasAttribute("data-skip") && t.setAttribute("data-hidden", "true"), !t.hasAttribute("hidden") && t.hasAttribute("data-skip") && t.hasAttribute("data-hidden") && t.removeAttribute("data-hidden"), t.setAttribute("class", "pkt-hide"), t.setAttribute("data-skip", "true"), t.setAttribute("hidden", "true"), this.nodes.push(t));
|
|
16
|
-
}
|
|
17
|
-
createOptions() {
|
|
18
|
-
this.options = this.nodes.map((t) => ({
|
|
19
|
-
value: t.hasAttribute("value") ? t.getAttribute("value") ?? "" : t.textContent ?? "",
|
|
20
|
-
label: t.textContent || t.getAttribute("value") || "",
|
|
21
|
-
selected: t.hasAttribute("selected"),
|
|
22
|
-
disabled: t.hasAttribute("disabled"),
|
|
23
|
-
hidden: t.hasAttribute("data-hidden")
|
|
24
|
-
})), this.generation++, this.host.requestUpdate();
|
|
25
|
-
}
|
|
26
|
-
handleMutations(t) {
|
|
27
|
-
let e = !1;
|
|
28
|
-
t.forEach((s) => {
|
|
29
|
-
s.type === "childList" && (s.addedNodes.forEach((i) => {
|
|
30
|
-
r(i) && (this.addNode(i), e = !0);
|
|
31
|
-
}), s.removedNodes.forEach((i) => {
|
|
32
|
-
r(i) && (this.nodes = this.nodes.filter((a) => a !== i), e = !0);
|
|
33
|
-
})), s.type === "attributes" && r(s.target) && (this.addNode(s.target), e = !0);
|
|
34
|
-
}), e && this.createOptions();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
o as P
|
|
39
|
-
};
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { e as n } from "./class-map-CEnykyO_.js";
|
|
2
|
-
import { E as g, P as _, A as c, b, n as u, t as $ } from "./element-CPpT3rFQ.js";
|
|
3
|
-
import { r as h } from "./state-C_1EOo3D.js";
|
|
4
|
-
import { e as y, n as A } from "./ref-Bg_Swj5w.js";
|
|
5
|
-
import { e as x, i as T, t as k } from "./directive-oAbCiebi.js";
|
|
6
|
-
import { u as d } from "./utils-DznhwRXm.js";
|
|
7
|
-
import "./icon-BlKA8YuW.js";
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright 2018 Google LLC
|
|
11
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/
|
|
13
|
-
const v = "important", C = " !" + v, M = x(class extends T {
|
|
14
|
-
constructor(t) {
|
|
15
|
-
var e;
|
|
16
|
-
if (super(t), t.type !== k.ATTRIBUTE || t.name !== "style" || ((e = t.strings) == null ? void 0 : e.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
17
|
-
}
|
|
18
|
-
render(t) {
|
|
19
|
-
return Object.keys(t).reduce((e, a) => {
|
|
20
|
-
const s = t[a];
|
|
21
|
-
return s == null ? e : e + `${a = a.includes("-") ? a : a.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s};`;
|
|
22
|
-
}, "");
|
|
23
|
-
}
|
|
24
|
-
update(t, [e]) {
|
|
25
|
-
const { style: a } = t.element;
|
|
26
|
-
if (this.ft === void 0) return this.ft = new Set(Object.keys(e)), this.render(e);
|
|
27
|
-
for (const s of this.ft) e[s] == null && (this.ft.delete(s), s.includes("-") ? a.removeProperty(s) : a[s] = null);
|
|
28
|
-
for (const s in e) {
|
|
29
|
-
const l = e[s];
|
|
30
|
-
if (l != null) {
|
|
31
|
-
this.ft.add(s);
|
|
32
|
-
const o = typeof l == "string" && l.endsWith(C);
|
|
33
|
-
s.includes("-") || o ? a.setProperty(s, o ? l.slice(0, -11) : l, o ? v : "") : a[s] = l;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return g;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
var L = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (t, e, a, s) => {
|
|
40
|
-
for (var l = s > 1 ? void 0 : s ? S(e, a) : e, o = t.length - 1, p; o >= 0; o--)
|
|
41
|
-
(p = t[o]) && (l = (s ? p(e, a, l) : p(l)) || l);
|
|
42
|
-
return s && l && L(e, a, l), l;
|
|
43
|
-
};
|
|
44
|
-
let r = class extends _ {
|
|
45
|
-
constructor() {
|
|
46
|
-
super(), this.ariaLabel = null, this.ariaLabelledby = null, this.ariaValueText = null, this.ariaLive = "polite", this.id = d(), this.role = "progressbar", this.skin = "dark-blue", this.statusPlacement = "following", this.statusType = "none", this.title = "", this.titlePosition = "left", this.valueCurrent = 0, this.valueMax = 100, this.valueMin = 0, this.labelWidth = 0, this.progressbarId = this.id, this.computedAriaLabelledby = null, this.computedAriaValueText = "", this.labelRef = y(), this.progressBarRef = y();
|
|
47
|
-
}
|
|
48
|
-
firstUpdated(t) {
|
|
49
|
-
super.firstUpdated(t), this.setComputedValues(), this.syncAttributes();
|
|
50
|
-
}
|
|
51
|
-
updated(t) {
|
|
52
|
-
super.updated(t), t.has("valueCurrent") && this.labelRef.value && (this.labelWidth = this.labelRef.value.getBoundingClientRect().width || 0), t.has("id") && this.id && (this.progressBarId = this.id), (t.has("statusType") || t.has("id") || t.has("ariaLabelledby")) && (this.progressbarId = this.id || d(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`), (t.has("ariaValueText") || t.has("valueCurrent") || t.has("valueMax")) && (this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || ""), this.syncAttributes();
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
const t = this.statusType !== "none", e = this.valueMax - this.valueMin, a = this.valueCurrent / e * 100, s = this.statusType === "fraction" ? Math.round(a) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), l = `${this.valueCurrent} av ${e}`, o = n({
|
|
56
|
-
"pkt-progressbar__bar": !0,
|
|
57
|
-
[`pkt-progressbar__bar--${this.skin}`]: !!this.skin
|
|
58
|
-
}), p = n({
|
|
59
|
-
"pkt-progressbar__title": !0,
|
|
60
|
-
"pkt-progressbar__title-center": this.titlePosition === "center"
|
|
61
|
-
}), f = n({
|
|
62
|
-
"pkt-progressbar__status": !0,
|
|
63
|
-
"pkt-progressbar__status--center": this.statusPlacement === "center"
|
|
64
|
-
}), m = n({
|
|
65
|
-
"pkt-progressbar__status-placement--following": this.statusPlacement === "following",
|
|
66
|
-
"pkt-progressbar__status-placement--center": this.statusPlacement === "center",
|
|
67
|
-
"pkt-progressbar__status-placement--left": this.statusPlacement === "left"
|
|
68
|
-
});
|
|
69
|
-
return b` <div
|
|
70
|
-
class="pkt-progressbar__container"
|
|
71
|
-
.ref=${this.progressBarRef}
|
|
72
|
-
style=${M({
|
|
73
|
-
"--pkt-progress-label-width": `${this.labelWidth}px`,
|
|
74
|
-
"--pkt-progress-width": `${s}%`
|
|
75
|
-
})}
|
|
76
|
-
>
|
|
77
|
-
${this.title ? b`<p id=${`${this.progressBarId}-title`} class=${p}>${this.title}</p>` : c}
|
|
78
|
-
|
|
79
|
-
<div class="pkt-progressbar__bar-wrapper">
|
|
80
|
-
<div class=${o}></div>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
${t ? b`<div class=${f}>
|
|
84
|
-
<span class=${m} ${A(this.labelRef)}>
|
|
85
|
-
${this.statusType === "percentage" ? `${s}%` : l}
|
|
86
|
-
</span>
|
|
87
|
-
</div>` : c}
|
|
88
|
-
</div>`;
|
|
89
|
-
}
|
|
90
|
-
// methods
|
|
91
|
-
setComputedValues() {
|
|
92
|
-
this.progressbarId = this.id || d(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`, this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || "";
|
|
93
|
-
}
|
|
94
|
-
syncAttributes() {
|
|
95
|
-
this._handleAttribute("aria-live", this.ariaLive), this._handleAttribute("aria-valuenow", this.valueCurrent), this._handleAttribute("aria-valuemin", this.valueMin), this._handleAttribute("aria-valuemax", this.valueMax), this._handleAttribute("aria-valuetext", this.computedAriaValueText), this._handleAttribute("aria-label", this.ariaLabel), this._handleAttribute("role", this.role), this._handleAttribute("aria-atomic", "true"), this._handleAttribute("id", this.progressbarId), this.ariaLabel || this._handleAttribute("aria-labelledby", this.computedAriaLabelledby);
|
|
96
|
-
}
|
|
97
|
-
_handleAttribute(t, e) {
|
|
98
|
-
e == null || e === "" ? this.removeAttribute(t) : this.setAttribute(t, String(e));
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
i([
|
|
102
|
-
u({ type: String })
|
|
103
|
-
], r.prototype, "ariaLabel", 2);
|
|
104
|
-
i([
|
|
105
|
-
u({ type: String, reflect: !0 })
|
|
106
|
-
], r.prototype, "ariaLabelledby", 2);
|
|
107
|
-
i([
|
|
108
|
-
u({ type: String, reflect: !0 })
|
|
109
|
-
], r.prototype, "ariaValueText", 2);
|
|
110
|
-
i([
|
|
111
|
-
u({ type: String })
|
|
112
|
-
], r.prototype, "ariaLive", 2);
|
|
113
|
-
i([
|
|
114
|
-
u({ type: String, reflect: !0 })
|
|
115
|
-
], r.prototype, "id", 2);
|
|
116
|
-
i([
|
|
117
|
-
u({ type: String })
|
|
118
|
-
], r.prototype, "role", 2);
|
|
119
|
-
i([
|
|
120
|
-
u({ type: String })
|
|
121
|
-
], r.prototype, "skin", 2);
|
|
122
|
-
i([
|
|
123
|
-
u({ type: String })
|
|
124
|
-
], r.prototype, "statusPlacement", 2);
|
|
125
|
-
i([
|
|
126
|
-
u({ type: String })
|
|
127
|
-
], r.prototype, "statusType", 2);
|
|
128
|
-
i([
|
|
129
|
-
u({ type: String, reflect: !0 })
|
|
130
|
-
], r.prototype, "title", 2);
|
|
131
|
-
i([
|
|
132
|
-
u({ type: String })
|
|
133
|
-
], r.prototype, "titlePosition", 2);
|
|
134
|
-
i([
|
|
135
|
-
u({ type: Number, reflect: !0 })
|
|
136
|
-
], r.prototype, "valueCurrent", 2);
|
|
137
|
-
i([
|
|
138
|
-
u({ type: Number })
|
|
139
|
-
], r.prototype, "valueMax", 2);
|
|
140
|
-
i([
|
|
141
|
-
u({ type: Number })
|
|
142
|
-
], r.prototype, "valueMin", 2);
|
|
143
|
-
i([
|
|
144
|
-
h()
|
|
145
|
-
], r.prototype, "labelWidth", 2);
|
|
146
|
-
i([
|
|
147
|
-
h()
|
|
148
|
-
], r.prototype, "progressbarId", 2);
|
|
149
|
-
i([
|
|
150
|
-
h()
|
|
151
|
-
], r.prototype, "computedAriaLabelledby", 2);
|
|
152
|
-
i([
|
|
153
|
-
h()
|
|
154
|
-
], r.prototype, "computedAriaValueText", 2);
|
|
155
|
-
r = i([
|
|
156
|
-
$("pkt-progressbar")
|
|
157
|
-
], r);
|
|
158
|
-
const W = r;
|
|
159
|
-
export {
|
|
160
|
-
r as P,
|
|
161
|
-
W as a
|
|
162
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./class-map-CsENJXf1.cjs"),e=require("./element-gR_VtSiD.cjs"),p=require("./state-Dg-53wQ8.cjs"),h=require("./ref-CL-Xk9Xm.cjs"),b=require("./directive-C7oCP5Bh.cjs"),d=require("./utils-byXsEz1u.cjs");require("./icon-Bqj9oBbl.cjs");/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2018 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const c="important",v=" !"+c,f=b.e(class extends b.i{constructor(l){var t;if(super(l),l.type!==b.t.ATTRIBUTE||l.name!=="style"||((t=l.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.")}render(l){return Object.keys(l).reduce((t,s)=>{const r=l[s];return r==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(l,[t]){const{style:s}=l.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?s.removeProperty(r):s[r]=null);for(const r in t){const i=t[r];if(i!=null){this.ft.add(r);const u=typeof i=="string"&&i.endsWith(v);r.includes("-")||u?s.setProperty(r,u?i.slice(0,-11):i,u?c:""):s[r]=i}}return e.E}});var k=Object.defineProperty,m=Object.getOwnPropertyDescriptor,a=(l,t,s,r)=>{for(var i=r>1?void 0:r?m(t,s):t,u=l.length-1,o;u>=0;u--)(o=l[u])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&k(t,s,i),i};exports.PktProgressbar=class extends e.PktElement{constructor(){super(),this.ariaLabel=null,this.ariaLabelledby=null,this.ariaValueText=null,this.ariaLive="polite",this.id=d.uuidish(),this.role="progressbar",this.skin="dark-blue",this.statusPlacement="following",this.statusType="none",this.title="",this.titlePosition="left",this.valueCurrent=0,this.valueMax=100,this.valueMin=0,this.labelWidth=0,this.progressbarId=this.id,this.computedAriaLabelledby=null,this.computedAriaValueText="",this.labelRef=h.e(),this.progressBarRef=h.e()}firstUpdated(t){super.firstUpdated(t),this.setComputedValues(),this.syncAttributes()}updated(t){super.updated(t),t.has("valueCurrent")&&this.labelRef.value&&(this.labelWidth=this.labelRef.value.getBoundingClientRect().width||0),t.has("id")&&this.id&&(this.progressBarId=this.id),(t.has("statusType")||t.has("id")||t.has("ariaLabelledby"))&&(this.progressbarId=this.id||d.uuidish(),this.computedAriaLabelledby=this.ariaLabelledby||`${this.progressbarId}-title`),(t.has("ariaValueText")||t.has("valueCurrent")||t.has("valueMax"))&&(this.computedAriaValueText=this.statusType==="fraction"&&!this.ariaValueText?`${this.valueCurrent} av ${this.valueMax-this.valueMin}`:this.ariaValueText||""),this.syncAttributes()}render(){const t=this.statusType!=="none",s=this.valueMax-this.valueMin,r=this.valueCurrent/s*100,i=this.statusType==="fraction"?Math.round(r):Math.round((this.valueCurrent-this.valueMin)/(this.valueMax-this.valueMin)*100),u=`${this.valueCurrent} av ${s}`,o=n.e({"pkt-progressbar__bar":!0,[`pkt-progressbar__bar--${this.skin}`]:!!this.skin}),g=n.e({"pkt-progressbar__title":!0,"pkt-progressbar__title-center":this.titlePosition==="center"}),y=n.e({"pkt-progressbar__status":!0,"pkt-progressbar__status--center":this.statusPlacement==="center"}),P=n.e({"pkt-progressbar__status-placement--following":this.statusPlacement==="following","pkt-progressbar__status-placement--center":this.statusPlacement==="center","pkt-progressbar__status-placement--left":this.statusPlacement==="left"});return e.b` <div
|
|
6
|
-
class="pkt-progressbar__container"
|
|
7
|
-
.ref=${this.progressBarRef}
|
|
8
|
-
style=${f({"--pkt-progress-label-width":`${this.labelWidth}px`,"--pkt-progress-width":`${i}%`})}
|
|
9
|
-
>
|
|
10
|
-
${this.title?e.b`<p id=${`${this.progressBarId}-title`} class=${g}>${this.title}</p>`:e.A}
|
|
11
|
-
|
|
12
|
-
<div class="pkt-progressbar__bar-wrapper">
|
|
13
|
-
<div class=${o}></div>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
${t?e.b`<div class=${y}>
|
|
17
|
-
<span class=${P} ${h.n(this.labelRef)}>
|
|
18
|
-
${this.statusType==="percentage"?`${i}%`:u}
|
|
19
|
-
</span>
|
|
20
|
-
</div>`:e.A}
|
|
21
|
-
</div>`}setComputedValues(){this.progressbarId=this.id||d.uuidish(),this.computedAriaLabelledby=this.ariaLabelledby||`${this.progressbarId}-title`,this.computedAriaValueText=this.statusType==="fraction"&&!this.ariaValueText?`${this.valueCurrent} av ${this.valueMax-this.valueMin}`:this.ariaValueText||""}syncAttributes(){this._handleAttribute("aria-live",this.ariaLive),this._handleAttribute("aria-valuenow",this.valueCurrent),this._handleAttribute("aria-valuemin",this.valueMin),this._handleAttribute("aria-valuemax",this.valueMax),this._handleAttribute("aria-valuetext",this.computedAriaValueText),this._handleAttribute("aria-label",this.ariaLabel),this._handleAttribute("role",this.role),this._handleAttribute("aria-atomic","true"),this._handleAttribute("id",this.progressbarId),this.ariaLabel||this._handleAttribute("aria-labelledby",this.computedAriaLabelledby)}_handleAttribute(t,s){s==null||s===""?this.removeAttribute(t):this.setAttribute(t,String(s))}};a([e.n({type:String})],exports.PktProgressbar.prototype,"ariaLabel",2);a([e.n({type:String,reflect:!0})],exports.PktProgressbar.prototype,"ariaLabelledby",2);a([e.n({type:String,reflect:!0})],exports.PktProgressbar.prototype,"ariaValueText",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"ariaLive",2);a([e.n({type:String,reflect:!0})],exports.PktProgressbar.prototype,"id",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"role",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"skin",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"statusPlacement",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"statusType",2);a([e.n({type:String,reflect:!0})],exports.PktProgressbar.prototype,"title",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"titlePosition",2);a([e.n({type:Number,reflect:!0})],exports.PktProgressbar.prototype,"valueCurrent",2);a([e.n({type:Number})],exports.PktProgressbar.prototype,"valueMax",2);a([e.n({type:Number})],exports.PktProgressbar.prototype,"valueMin",2);a([p.r()],exports.PktProgressbar.prototype,"labelWidth",2);a([p.r()],exports.PktProgressbar.prototype,"progressbarId",2);a([p.r()],exports.PktProgressbar.prototype,"computedAriaLabelledby",2);a([p.r()],exports.PktProgressbar.prototype,"computedAriaValueText",2);exports.PktProgressbar=a([e.t("pkt-progressbar")],exports.PktProgressbar);const _=exports.PktProgressbar;exports.PktProgressbar$1=_;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { b as h, A as n, n as s, t as d } from "./element-CPpT3rFQ.js";
|
|
2
|
-
import { r as k } from "./state-C_1EOo3D.js";
|
|
3
|
-
import { P as f } from "./input-element-8nLwuQS4.js";
|
|
4
|
-
import { e as g, n as b } from "./ref-Bg_Swj5w.js";
|
|
5
|
-
import { e as u } from "./class-map-CEnykyO_.js";
|
|
6
|
-
var y = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, i = (e, a, c, l) => {
|
|
7
|
-
for (var p = l > 1 ? void 0 : l ? $(a, c) : a, r = e.length - 1, o; r >= 0; r--)
|
|
8
|
-
(o = e[r]) && (p = (l ? o(a, c, p) : o(p)) || p);
|
|
9
|
-
return l && p && y(a, c, p), p;
|
|
10
|
-
};
|
|
11
|
-
let t = class extends f {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments), this.inputRef = g(), 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;
|
|
14
|
-
}
|
|
15
|
-
connectedCallback() {
|
|
16
|
-
super.connectedCallback();
|
|
17
|
-
}
|
|
18
|
-
attributeChangedCallback(e, a, c) {
|
|
19
|
-
e === "defaultChecked" && (this._checked = this.defaultChecked), e === "checked" && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0), super.attributeChangedCallback(e, a, c);
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
const e = u({
|
|
23
|
-
"pkt-input-check__input": !0,
|
|
24
|
-
"pkt-input-check__input--tile": this.hasTile,
|
|
25
|
-
"pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
|
|
26
|
-
}), a = u({
|
|
27
|
-
"pkt-input-check__input-checkbox": !0,
|
|
28
|
-
"pkt-input-check__input-checkbox--error": this.hasError
|
|
29
|
-
}), c = u({
|
|
30
|
-
"pkt-input-check__input-label": !0,
|
|
31
|
-
"pkt-input-check__input-label--disabled": this.disabled,
|
|
32
|
-
"pkt-sr-only": this.hideLabel
|
|
33
|
-
}), l = "pkt-tag pkt-tag--small pkt-tag--thin-text", p = () => h`
|
|
34
|
-
${this.tagText ? h`<span class=${l + " pkt-tag--gray"}>${this.tagText}</span>` : n}
|
|
35
|
-
${this.optionalTag ? h`<span class=${l + " pkt-tag--blue-light"}>${this.optionalText}</span>` : n}
|
|
36
|
-
${this.requiredTag ? h`<span class=${l + " pkt-tag--beige"}>${this.requiredText}</span>` : n}
|
|
37
|
-
`, r = () => h`
|
|
38
|
-
<label class=${c} for=${this.id + "-internal"}>
|
|
39
|
-
${this.label} ${p()}
|
|
40
|
-
${this.checkHelptext ? h`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>` : n}
|
|
41
|
-
</label>
|
|
42
|
-
`;
|
|
43
|
-
return h`
|
|
44
|
-
<div class="pkt-input-check">
|
|
45
|
-
<div class=${e}>
|
|
46
|
-
<input
|
|
47
|
-
id=${this.id + "-internal"}
|
|
48
|
-
class=${a}
|
|
49
|
-
type="radio"
|
|
50
|
-
role="radio"
|
|
51
|
-
?disabled=${this.disabled}
|
|
52
|
-
form=""
|
|
53
|
-
name=${this.name + "-internal"}
|
|
54
|
-
${b(this.inputRef)}
|
|
55
|
-
@change=${this.toggleChecked}
|
|
56
|
-
@input=${this.onInput}
|
|
57
|
-
@blur=${this.onBlur}
|
|
58
|
-
@focus=${this.onFocus}
|
|
59
|
-
?checked=${this.checked}
|
|
60
|
-
/>
|
|
61
|
-
${r()}
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
`;
|
|
65
|
-
}
|
|
66
|
-
toggleChecked(e = null) {
|
|
67
|
-
e && e.preventDefault(), e && e.stopImmediatePropagation(), this.touched = !0, this.inputRef.value && (this._checked = this.inputRef.value.matches(":checked"), this.valueChecked(this._checked));
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
i([
|
|
71
|
-
s({ type: String, reflect: !0 })
|
|
72
|
-
], t.prototype, "value", 2);
|
|
73
|
-
i([
|
|
74
|
-
s({ type: String })
|
|
75
|
-
], t.prototype, "checkHelptext", 2);
|
|
76
|
-
i([
|
|
77
|
-
s({ type: Boolean })
|
|
78
|
-
], t.prototype, "defaultChecked", 2);
|
|
79
|
-
i([
|
|
80
|
-
s({ type: Boolean })
|
|
81
|
-
], t.prototype, "hasTile", 2);
|
|
82
|
-
i([
|
|
83
|
-
s({ type: Boolean, reflect: !0 })
|
|
84
|
-
], t.prototype, "checked", 2);
|
|
85
|
-
i([
|
|
86
|
-
s({ type: String, reflect: !0 })
|
|
87
|
-
], t.prototype, "type", 2);
|
|
88
|
-
i([
|
|
89
|
-
s({ type: String })
|
|
90
|
-
], t.prototype, "tagText", 2);
|
|
91
|
-
i([
|
|
92
|
-
s({ type: Boolean })
|
|
93
|
-
], t.prototype, "optionalTag", 2);
|
|
94
|
-
i([
|
|
95
|
-
s({ type: String })
|
|
96
|
-
], t.prototype, "optionalText", 2);
|
|
97
|
-
i([
|
|
98
|
-
s({ type: Boolean })
|
|
99
|
-
], t.prototype, "requiredTag", 2);
|
|
100
|
-
i([
|
|
101
|
-
s({ type: String })
|
|
102
|
-
], t.prototype, "requiredText", 2);
|
|
103
|
-
i([
|
|
104
|
-
k()
|
|
105
|
-
], t.prototype, "_checked", 2);
|
|
106
|
-
t = i([
|
|
107
|
-
d("pkt-radiobutton")
|
|
108
|
-
], t);
|
|
109
|
-
export {
|
|
110
|
-
t as P
|
|
111
|
-
};
|