@oslokommune/punkt-elements 13.0.0 → 13.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/checkbox-CTRbpbye.js +120 -0
- package/dist/checkbox-wJ26voZd.cjs +30 -0
- package/dist/{combobox-DWYPzXj-.cjs → combobox-CijGa9Fr.cjs} +3 -2
- package/dist/{combobox-BREXxMeO.js → combobox-Cwg9Rkmz.js} +3 -2
- package/dist/{datepicker-SYeGnXRZ.cjs → datepicker-BhrUneAP.cjs} +2 -1
- package/dist/{datepicker-DH4ZFMxD.js → datepicker-CEfh3TTA.js} +3 -2
- package/dist/index.d.ts +14 -1
- package/dist/{input-element-CHjLWeKt.cjs → input-element-C4xJoM-X.cjs} +1 -1
- package/dist/{input-element-Cco4PA2M.js → input-element-NnrDmp4r.js} +14 -11
- package/dist/{input-wrapper-BND8tUg_.cjs → input-wrapper-CZ-a00V7.cjs} +16 -14
- package/dist/input-wrapper-Dr__Sxql.js +189 -0
- 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-datepicker.cjs +1 -1
- package/dist/pkt-datepicker.js +1 -1
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +8 -8
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +1 -1
- package/dist/pkt-radiobutton.cjs +1 -1
- package/dist/pkt-radiobutton.js +1 -1
- package/dist/pkt-select.cjs +1 -1
- package/dist/pkt-select.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/radiobutton-CWxiIVfA.js +111 -0
- package/dist/radiobutton-CdT6v1oq.cjs +31 -0
- package/dist/{select-DGHoBmbb.js → select-CsgDatCa.js} +14 -13
- package/dist/{select-BwwF5Gki.cjs → select-DUeTm8ac.cjs} +11 -10
- package/dist/{textarea-BrW98O-a.js → textarea-BZL8Mkm0.js} +5 -4
- package/dist/{textarea-PHo1w92l.cjs → textarea-CPXsMFUq.cjs} +2 -1
- package/dist/{textinput-BrBGjHZc.js → textinput-DjPhmmkB.js} +3 -2
- package/dist/{textinput-CS0OHykQ.cjs → textinput-aNI5kibM.cjs} +2 -1
- package/package.json +3 -3
- package/src/components/checkbox/checkbox.ts +22 -1
- package/src/components/combobox/combobox.ts +2 -0
- package/src/components/datepicker/datepicker.ts +1 -0
- package/src/components/input-wrapper/input-wrapper.ts +14 -18
- package/src/components/radiobutton/radiobutton.ts +22 -1
- package/src/components/select/select.ts +1 -0
- package/src/components/textarea/textarea.ts +1 -0
- package/src/components/textinput/textinput.ts +1 -0
- package/dist/checkbox-CJ4tK9RC.cjs +0 -26
- package/dist/checkbox-cD_5LDzV.js +0 -101
- package/dist/input-wrapper-_Lk9HzHU.js +0 -190
- package/dist/radiobutton-0vVqu-GU.cjs +0 -27
- package/dist/radiobutton-BcFRJFvI.js +0 -92
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
"use strict";const t=require("./element-6DBpyGQm.cjs"),g=require("./pkt-slot-controller-BzddBp7z.cjs"),u=require("./ref-iJtiv3o2.cjs"),
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";const t=require("./element-6DBpyGQm.cjs"),g=require("./pkt-slot-controller-BzddBp7z.cjs"),u=require("./ref-iJtiv3o2.cjs"),b=require("./if-defined-Cni-RHLS.cjs"),x=require("./icon-B_ryAy4Q.cjs"),y=require("./class-map-BBG2gMX4.cjs"),$=require("./stringutils-CkVRq4jP.cjs"),s=require("./input-wrapper-EoSAbU-U.cjs");require("./helptext-CzQX6YVE.cjs");var I=Object.defineProperty,P=Object.getOwnPropertyDescriptor,e=(r,p,i,n)=>{for(var o=n>1?void 0:n?P(p,i):p,l=r.length-1,a;l>=0;l--)(a=r[l])&&(o=(n?a(p,i,o):a(o))||o);return n&&o&&I(p,i,o),o};const W={fromAttribute(r){return r==null?!1:r===""||r==="true"||r===!0?!0:r==="false"||r===!1?!1:!!r},toAttribute(r){return r?"true":"false"}};exports.PktInputWrapper=class extends t.PktElement{constructor(){super(),this.defaultSlot=u.e(),this.helptextSlot=u.e(),this.forId=$.uuidish(),this.label="",this.helptext=null,this.helptextDropdown=null,this.helptextDropdownButton=null,this.counter=s.specs.props.counter.default,this.counterCurrent=0,this.counterMaxLength=0,this.counterError=null,this.counterPosition="bottom",this.optionalTag=s.specs.props.optionalTag.default,this.optionalText=s.specs.props.optionalText.default,this.requiredTag=s.specs.props.requiredTag.default,this.requiredText=s.specs.props.requiredText.default,this.tagText=null,this.hasError=s.specs.props.hasError.default,this.errorMessage="",this.disabled=s.specs.props.disabled.default,this.inline=s.specs.props.inline.default,this.ariaDescribedby=void 0,this.hasFieldset=s.specs.props.hasFieldset.default,this.role="group",this.useWrapper=s.specs.props.useWrapper.default,this.slotController=new g.PktSlotController(this,this.defaultSlot,this.helptextSlot)}updated(p){super.updated(p)}render(){const p={"pkt-inputwrapper":!0,"pkt-inputwrapper--error":this.hasError,"pkt-inputwrapper--disabled":this.disabled,"pkt-inputwrapper--inline":this.inline},i="pkt-tag pkt-tag--small pkt-tag--thin-text",n=this.ariaDescribedby?this.ariaDescribedby:this.helptext?`${this.forId}-helptext`:t.E,o=()=>t.x`
|
|
2
|
+
${this.tagText?t.x`<span class=${i+" pkt-tag--gray"}>${this.tagText}</span>`:t.E}
|
|
3
|
+
${this.optionalTag?t.x`<span class=${i+" pkt-tag--blue-light"}>${this.optionalText}</span>`:t.E}
|
|
4
|
+
${this.requiredTag?t.x`<span class=${i+" pkt-tag--beige"}>${this.requiredText}</span>`:t.E}
|
|
5
|
+
`,l=()=>this.useWrapper?this.hasFieldset?t.x`<legend
|
|
4
6
|
class="pkt-inputwrapper__legend"
|
|
5
7
|
id="${this.forId}-label"
|
|
6
8
|
@click=${this.handleLabelClick}
|
|
7
9
|
>
|
|
8
|
-
${this.label} ${
|
|
10
|
+
${this.label} ${o()}
|
|
9
11
|
</legend>`:t.x`<label
|
|
10
12
|
class="pkt-inputwrapper__label"
|
|
11
13
|
for="${this.forId}"
|
|
12
|
-
aria-describedby="${
|
|
14
|
+
aria-describedby="${n}"
|
|
13
15
|
id="${this.forId}-label"
|
|
14
16
|
@click=${this.handleLabelClick}
|
|
15
|
-
>${this.label}${
|
|
17
|
+
>${this.label}${o()}</label
|
|
16
18
|
>`:t.x`<label
|
|
17
19
|
for="${this.forId}"
|
|
18
20
|
class="pkt-sr-only"
|
|
19
|
-
aria-describedby="${
|
|
21
|
+
aria-describedby="${n}"
|
|
20
22
|
id="${this.forId}-label"
|
|
21
23
|
>
|
|
22
24
|
${this.label}
|
|
23
25
|
</label>`,a=()=>t.x`
|
|
24
26
|
<pkt-helptext
|
|
25
|
-
class="${
|
|
27
|
+
class="${b.o(this.useWrapper?void 0:"pkt-hide")}"
|
|
26
28
|
.forId=${this.forId}
|
|
27
29
|
.helptext=${this.helptext}
|
|
28
30
|
.helptextDropdown=${this.helptextDropdown}
|
|
29
|
-
.helptextDropdownButton=${this.helptextDropdownButton||
|
|
30
|
-
@toggleHelpText=${
|
|
31
|
+
.helptextDropdownButton=${this.helptextDropdownButton||s.specs.props.helptextDropdownButton.default}
|
|
32
|
+
@toggleHelpText=${f=>{this.toggleDropdown(f)}}
|
|
31
33
|
${u.n(this.helptextSlot)}
|
|
32
34
|
name="helptext"
|
|
33
35
|
></pkt-helptext>
|
|
34
36
|
`,h=()=>this.counter?t.x`<div class="pkt-input__counter" aria-live="polite" aria-atomic="true">
|
|
35
37
|
${this.counterError?this.counterError:t.E} ${this.counterCurrent||0}
|
|
36
38
|
${this.counterMaxLength?`/${this.counterMaxLength}`:t.E}
|
|
37
|
-
</div>`:t.E,
|
|
39
|
+
</div>`:t.E,c=()=>this.hasError&&this.errorMessage?t.x`<div
|
|
38
40
|
role="alert"
|
|
39
41
|
class="pkt-alert pkt-alert--error pkt-alert--compact"
|
|
40
42
|
aria-live="assertive"
|
|
@@ -49,7 +51,7 @@
|
|
|
49
51
|
${this.counterPosition==="top"?h():t.E}
|
|
50
52
|
<div class="pkt-contents" ${u.n(this.defaultSlot)}></div>
|
|
51
53
|
${this.counterPosition==="bottom"?h():t.E}
|
|
52
|
-
${
|
|
53
|
-
`,k=()=>this.hasFieldset?t.x`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${
|
|
54
|
+
${c()}
|
|
55
|
+
`,k=()=>this.hasFieldset?t.x`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${n}">
|
|
54
56
|
${d()}
|
|
55
|
-
</fieldset>`:t.x`<div class="pkt-inputwrapper__fieldset">${d()}</div>`;return t.x`<div class=${
|
|
57
|
+
</fieldset>`:t.x`<div class="pkt-inputwrapper__fieldset">${d()}</div>`;return t.x`<div class=${y.e(p)}>${k()}</div> `}toggleDropdown(p){this.dispatchEvent(new CustomEvent("toggleHelpText",{bubbles:!1,detail:{isOpen:p.detail.isOpen}}))}handleLabelClick(p){this.disabled&&(p.preventDefault(),p.stopImmediatePropagation()),this.dispatchEvent(new CustomEvent("labelClick",{bubbles:!0,composed:!0,detail:"label clicked"}))}};e([t.n({type:String})],exports.PktInputWrapper.prototype,"forId",2);e([t.n({type:String})],exports.PktInputWrapper.prototype,"label",2);e([t.n({type:String})],exports.PktInputWrapper.prototype,"helptext",2);e([t.n({type:String})],exports.PktInputWrapper.prototype,"helptextDropdown",2);e([t.n({type:String})],exports.PktInputWrapper.prototype,"helptextDropdownButton",2);e([t.n({type:Boolean})],exports.PktInputWrapper.prototype,"counter",2);e([t.n({type:Number})],exports.PktInputWrapper.prototype,"counterCurrent",2);e([t.n({type:Number})],exports.PktInputWrapper.prototype,"counterMaxLength",2);e([t.n({type:String})],exports.PktInputWrapper.prototype,"counterError",2);e([t.n({type:String,reflect:!1})],exports.PktInputWrapper.prototype,"counterPosition",2);e([t.n({type:Boolean})],exports.PktInputWrapper.prototype,"optionalTag",2);e([t.n({type:String})],exports.PktInputWrapper.prototype,"optionalText",2);e([t.n({type:Boolean})],exports.PktInputWrapper.prototype,"requiredTag",2);e([t.n({type:String})],exports.PktInputWrapper.prototype,"requiredText",2);e([t.n({type:String})],exports.PktInputWrapper.prototype,"tagText",2);e([t.n({type:Boolean})],exports.PktInputWrapper.prototype,"hasError",2);e([t.n({type:String})],exports.PktInputWrapper.prototype,"errorMessage",2);e([t.n({type:Boolean})],exports.PktInputWrapper.prototype,"disabled",2);e([t.n({type:Boolean})],exports.PktInputWrapper.prototype,"inline",2);e([t.n({type:String})],exports.PktInputWrapper.prototype,"ariaDescribedby",2);e([t.n({type:Boolean})],exports.PktInputWrapper.prototype,"hasFieldset",2);e([t.n({type:String,reflect:!0})],exports.PktInputWrapper.prototype,"role",2);e([t.n({type:Boolean,reflect:!0,converter:W})],exports.PktInputWrapper.prototype,"useWrapper",2);exports.PktInputWrapper=e([t.t("pkt-input-wrapper")],exports.PktInputWrapper);
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { P as x, E as i, x as p, n as r, a as m } from "./element-CgEWt74-.js";
|
|
2
|
+
import { P as k } from "./pkt-slot-controller-BPGj-LC5.js";
|
|
3
|
+
import { e as f, n as b } from "./ref-BBYSqgeW.js";
|
|
4
|
+
import { o as w } from "./if-defined-CmuO4Vz9.js";
|
|
5
|
+
import { o as v } from "./icon-CC1js8eR.js";
|
|
6
|
+
import { e as T } from "./class-map-BpTj9gtz.js";
|
|
7
|
+
import { u as E } from "./stringutils-DJjRa8dG.js";
|
|
8
|
+
import { s } from "./input-wrapper-8iKEzDRZ.js";
|
|
9
|
+
import "./helptext-B7eI0iBQ.js";
|
|
10
|
+
var S = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, e = (o, a, n, h) => {
|
|
11
|
+
for (var l = h > 1 ? void 0 : h ? _(a, n) : a, u = o.length - 1, d; u >= 0; u--)
|
|
12
|
+
(d = o[u]) && (l = (h ? d(a, n, l) : d(l)) || l);
|
|
13
|
+
return h && l && S(a, n, l), l;
|
|
14
|
+
};
|
|
15
|
+
const D = {
|
|
16
|
+
fromAttribute(o) {
|
|
17
|
+
return o == null ? !1 : o === "" || o === "true" || o === !0 ? !0 : o === "false" || o === !1 ? !1 : !!o;
|
|
18
|
+
},
|
|
19
|
+
toAttribute(o) {
|
|
20
|
+
return o ? "true" : "false";
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
let t = class extends x {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(), this.defaultSlot = f(), this.helptextSlot = f(), this.forId = E(), this.label = "", this.helptext = null, this.helptextDropdown = null, this.helptextDropdownButton = null, this.counter = s.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.counterError = null, this.counterPosition = "bottom", this.optionalTag = s.props.optionalTag.default, this.optionalText = s.props.optionalText.default, this.requiredTag = s.props.requiredTag.default, this.requiredText = s.props.requiredText.default, this.tagText = null, this.hasError = s.props.hasError.default, this.errorMessage = "", this.disabled = s.props.disabled.default, this.inline = s.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = s.props.hasFieldset.default, this.role = "group", this.useWrapper = s.props.useWrapper.default, this.slotController = new k(this, this.defaultSlot, this.helptextSlot);
|
|
26
|
+
}
|
|
27
|
+
updated(o) {
|
|
28
|
+
super.updated(o);
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
const o = {
|
|
32
|
+
"pkt-inputwrapper": !0,
|
|
33
|
+
"pkt-inputwrapper--error": this.hasError,
|
|
34
|
+
"pkt-inputwrapper--disabled": this.disabled,
|
|
35
|
+
"pkt-inputwrapper--inline": this.inline
|
|
36
|
+
}, a = "pkt-tag pkt-tag--small pkt-tag--thin-text", n = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : i, h = () => p`
|
|
37
|
+
${this.tagText ? p`<span class=${a + " pkt-tag--gray"}>${this.tagText}</span>` : i}
|
|
38
|
+
${this.optionalTag ? p`<span class=${a + " pkt-tag--blue-light"}>${this.optionalText}</span>` : i}
|
|
39
|
+
${this.requiredTag ? p`<span class=${a + " pkt-tag--beige"}>${this.requiredText}</span>` : i}
|
|
40
|
+
`, l = () => this.useWrapper ? this.hasFieldset ? p`<legend
|
|
41
|
+
class="pkt-inputwrapper__legend"
|
|
42
|
+
id="${this.forId}-label"
|
|
43
|
+
@click=${this.handleLabelClick}
|
|
44
|
+
>
|
|
45
|
+
${this.label} ${h()}
|
|
46
|
+
</legend>` : p`<label
|
|
47
|
+
class="pkt-inputwrapper__label"
|
|
48
|
+
for="${this.forId}"
|
|
49
|
+
aria-describedby="${n}"
|
|
50
|
+
id="${this.forId}-label"
|
|
51
|
+
@click=${this.handleLabelClick}
|
|
52
|
+
>${this.label}${h()}</label
|
|
53
|
+
>` : p`<label
|
|
54
|
+
for="${this.forId}"
|
|
55
|
+
class="pkt-sr-only"
|
|
56
|
+
aria-describedby="${n}"
|
|
57
|
+
id="${this.forId}-label"
|
|
58
|
+
>
|
|
59
|
+
${this.label}
|
|
60
|
+
</label>`, u = () => p`
|
|
61
|
+
<pkt-helptext
|
|
62
|
+
class="${w(this.useWrapper ? void 0 : "pkt-hide")}"
|
|
63
|
+
.forId=${this.forId}
|
|
64
|
+
.helptext=${this.helptext}
|
|
65
|
+
.helptextDropdown=${this.helptextDropdown}
|
|
66
|
+
.helptextDropdownButton=${this.helptextDropdownButton || s.props.helptextDropdownButton.default}
|
|
67
|
+
@toggleHelpText=${($) => {
|
|
68
|
+
this.toggleDropdown($);
|
|
69
|
+
}}
|
|
70
|
+
${b(this.helptextSlot)}
|
|
71
|
+
name="helptext"
|
|
72
|
+
></pkt-helptext>
|
|
73
|
+
`, d = () => this.counter ? p`<div class="pkt-input__counter" aria-live="polite" aria-atomic="true">
|
|
74
|
+
${this.counterError ? this.counterError : i} ${this.counterCurrent || 0}
|
|
75
|
+
${this.counterMaxLength ? `/${this.counterMaxLength}` : i}
|
|
76
|
+
</div>` : i, g = () => this.hasError && this.errorMessage ? p`<div
|
|
77
|
+
role="alert"
|
|
78
|
+
class="pkt-alert pkt-alert--error pkt-alert--compact"
|
|
79
|
+
aria-live="assertive"
|
|
80
|
+
aria-atomic="true"
|
|
81
|
+
id="${this.forId}-error"
|
|
82
|
+
>
|
|
83
|
+
<pkt-icon name="alert-error" class="pkt-alert__icon"></pkt-icon>
|
|
84
|
+
<div class="pkt-alert__text">${v(this.errorMessage)}</div>
|
|
85
|
+
</div>` : i, c = () => p`
|
|
86
|
+
${l()}
|
|
87
|
+
${u()}
|
|
88
|
+
${this.counterPosition === "top" ? d() : i}
|
|
89
|
+
<div class="pkt-contents" ${b(this.defaultSlot)}></div>
|
|
90
|
+
${this.counterPosition === "bottom" ? d() : i}
|
|
91
|
+
${g()}
|
|
92
|
+
`, y = () => this.hasFieldset ? p`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${n}">
|
|
93
|
+
${c()}
|
|
94
|
+
</fieldset>` : p`<div class="pkt-inputwrapper__fieldset">${c()}</div>`;
|
|
95
|
+
return p`<div class=${T(o)}>${y()}</div> `;
|
|
96
|
+
}
|
|
97
|
+
toggleDropdown(o) {
|
|
98
|
+
this.dispatchEvent(
|
|
99
|
+
new CustomEvent("toggleHelpText", {
|
|
100
|
+
bubbles: !1,
|
|
101
|
+
detail: { isOpen: o.detail.isOpen }
|
|
102
|
+
})
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
handleLabelClick(o) {
|
|
106
|
+
this.disabled && (o.preventDefault(), o.stopImmediatePropagation()), this.dispatchEvent(
|
|
107
|
+
new CustomEvent("labelClick", {
|
|
108
|
+
bubbles: !0,
|
|
109
|
+
composed: !0,
|
|
110
|
+
detail: "label clicked"
|
|
111
|
+
})
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
e([
|
|
116
|
+
r({ type: String })
|
|
117
|
+
], t.prototype, "forId", 2);
|
|
118
|
+
e([
|
|
119
|
+
r({ type: String })
|
|
120
|
+
], t.prototype, "label", 2);
|
|
121
|
+
e([
|
|
122
|
+
r({ type: String })
|
|
123
|
+
], t.prototype, "helptext", 2);
|
|
124
|
+
e([
|
|
125
|
+
r({ type: String })
|
|
126
|
+
], t.prototype, "helptextDropdown", 2);
|
|
127
|
+
e([
|
|
128
|
+
r({ type: String })
|
|
129
|
+
], t.prototype, "helptextDropdownButton", 2);
|
|
130
|
+
e([
|
|
131
|
+
r({ type: Boolean })
|
|
132
|
+
], t.prototype, "counter", 2);
|
|
133
|
+
e([
|
|
134
|
+
r({ type: Number })
|
|
135
|
+
], t.prototype, "counterCurrent", 2);
|
|
136
|
+
e([
|
|
137
|
+
r({ type: Number })
|
|
138
|
+
], t.prototype, "counterMaxLength", 2);
|
|
139
|
+
e([
|
|
140
|
+
r({ type: String })
|
|
141
|
+
], t.prototype, "counterError", 2);
|
|
142
|
+
e([
|
|
143
|
+
r({ type: String, reflect: !1 })
|
|
144
|
+
], t.prototype, "counterPosition", 2);
|
|
145
|
+
e([
|
|
146
|
+
r({ type: Boolean })
|
|
147
|
+
], t.prototype, "optionalTag", 2);
|
|
148
|
+
e([
|
|
149
|
+
r({ type: String })
|
|
150
|
+
], t.prototype, "optionalText", 2);
|
|
151
|
+
e([
|
|
152
|
+
r({ type: Boolean })
|
|
153
|
+
], t.prototype, "requiredTag", 2);
|
|
154
|
+
e([
|
|
155
|
+
r({ type: String })
|
|
156
|
+
], t.prototype, "requiredText", 2);
|
|
157
|
+
e([
|
|
158
|
+
r({ type: String })
|
|
159
|
+
], t.prototype, "tagText", 2);
|
|
160
|
+
e([
|
|
161
|
+
r({ type: Boolean })
|
|
162
|
+
], t.prototype, "hasError", 2);
|
|
163
|
+
e([
|
|
164
|
+
r({ type: String })
|
|
165
|
+
], t.prototype, "errorMessage", 2);
|
|
166
|
+
e([
|
|
167
|
+
r({ type: Boolean })
|
|
168
|
+
], t.prototype, "disabled", 2);
|
|
169
|
+
e([
|
|
170
|
+
r({ type: Boolean })
|
|
171
|
+
], t.prototype, "inline", 2);
|
|
172
|
+
e([
|
|
173
|
+
r({ type: String })
|
|
174
|
+
], t.prototype, "ariaDescribedby", 2);
|
|
175
|
+
e([
|
|
176
|
+
r({ type: Boolean })
|
|
177
|
+
], t.prototype, "hasFieldset", 2);
|
|
178
|
+
e([
|
|
179
|
+
r({ type: String, reflect: !0 })
|
|
180
|
+
], t.prototype, "role", 2);
|
|
181
|
+
e([
|
|
182
|
+
r({ type: Boolean, reflect: !0, converter: D })
|
|
183
|
+
], t.prototype, "useWrapper", 2);
|
|
184
|
+
t = e([
|
|
185
|
+
m("pkt-input-wrapper")
|
|
186
|
+
], t);
|
|
187
|
+
export {
|
|
188
|
+
t as P
|
|
189
|
+
};
|
package/dist/pkt-checkbox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./checkbox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./checkbox-wJ26voZd.cjs"),t=e.PktCheckbox;Object.defineProperty(exports,"PktCheckbox",{enumerable:!0,get:()=>e.PktCheckbox});exports.default=t;
|
package/dist/pkt-checkbox.js
CHANGED
package/dist/pkt-combobox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./combobox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./combobox-CijGa9Fr.cjs"),o=e.PktCombobox;Object.defineProperty(exports,"PktCombobox",{enumerable:!0,get:()=>e.PktCombobox});exports.default=o;
|
package/dist/pkt-combobox.js
CHANGED
package/dist/pkt-datepicker.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./datepicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./datepicker-BhrUneAP.cjs"),t=e.PktDatepicker;Object.defineProperty(exports,"PktDatepicker",{enumerable:!0,get:()=>e.PktDatepicker});exports.default=t;
|
package/dist/pkt-datepicker.js
CHANGED
package/dist/pkt-index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./alert-BH0lJ2ny.cjs"),l=require("./accordionitem-DjAWPtsn.cjs"),d=require("./backlink-C5jQRMwJ.cjs"),b=require("./button-CDocR7iN.cjs"),k=require("./calendar-BZe2D4Sr.cjs"),m=require("./card-Bx36j0q4.cjs"),g=require("./combobox-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./alert-BH0lJ2ny.cjs"),l=require("./accordionitem-DjAWPtsn.cjs"),d=require("./backlink-C5jQRMwJ.cjs"),b=require("./button-CDocR7iN.cjs"),k=require("./calendar-BZe2D4Sr.cjs"),m=require("./card-Bx36j0q4.cjs"),g=require("./combobox-CijGa9Fr.cjs"),h=require("./consent-DrS71kvz.cjs"),f=require("./checkbox-wJ26voZd.cjs"),t=require("./element-6DBpyGQm.cjs"),y=require("./pkt-slot-controller-BzddBp7z.cjs"),s=require("./ref-iJtiv3o2.cjs"),O=require("./class-map-BBG2gMX4.cjs"),j=require("./datepicker-BhrUneAP.cjs"),q=require("./helptext-CzQX6YVE.cjs"),x=require("./heading-BRE_iFtR.cjs"),C=require("./icon-B_ryAy4Q.cjs"),v=require("./input-wrapper-CZ-a00V7.cjs"),S=require("./link-DTkjNlmy.cjs"),$=require("./linkcard-BlMhPNry.cjs"),L=require("./loader-CHPxY9c6.cjs"),_=require("./messagebox-CqUBJs_D.cjs"),A=require("./modal-BdA5aWGU.cjs"),B=require("./progressbar-DhMBXkww.cjs"),p=require("./radiobutton-CdT6v1oq.cjs"),T=require("./tag-DPk3fpEg.cjs"),I=require("./textarea-CPXsMFUq.cjs"),M=require("./textinput-aNI5kibM.cjs"),R=require("./select-DUeTm8ac.cjs");var H=Object.defineProperty,w=Object.getOwnPropertyDescriptor,o=(a,e,r,i)=>{for(var n=i>1?void 0:i?w(e,r):e,u=a.length-1,c;u>=0;u--)(c=a[u])&&(n=(i?c(e,r,n):c(n))||n);return i&&n&&H(e,r,n),n};exports.PktComponent=class extends t.PktElement{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=s.e(),this.namedSlot=s.e(),this.slotController=new y.PktSlotController(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(e=>{this._list.push(e.toUpperCase())}),super.connectedCallback()}render(){const e={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return t.x`
|
|
2
2
|
<div class="${O.e(e)}">
|
|
3
3
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
4
4
|
|
package/dist/pkt-index.js
CHANGED
|
@@ -5,29 +5,29 @@ import { P as T } from "./button-DrrEvUy9.js";
|
|
|
5
5
|
import { c as f } from "./calendar-DevQhOup.js";
|
|
6
6
|
import { P as D } from "./calendar-DevQhOup.js";
|
|
7
7
|
import { P as G } from "./card-Djnd-pgo.js";
|
|
8
|
-
import { P as K } from "./combobox-
|
|
8
|
+
import { P as K } from "./combobox-Cwg9Rkmz.js";
|
|
9
9
|
import { P as U } from "./consent-CftYu8Di.js";
|
|
10
|
-
import { P as q } from "./checkbox-
|
|
10
|
+
import { P as q } from "./checkbox-CTRbpbye.js";
|
|
11
11
|
import { P as k, t as h, x as P, n, a as c } from "./element-CgEWt74-.js";
|
|
12
12
|
import { P as x } from "./pkt-slot-controller-BPGj-LC5.js";
|
|
13
13
|
import { e as m, n as d } from "./ref-BBYSqgeW.js";
|
|
14
14
|
import { e as u } from "./class-map-BpTj9gtz.js";
|
|
15
|
-
import { P as F } from "./datepicker-
|
|
15
|
+
import { P as F } from "./datepicker-CEfh3TTA.js";
|
|
16
16
|
import { P as Q } from "./helptext-B7eI0iBQ.js";
|
|
17
17
|
import { P as X } from "./heading-D6jXE_Mz.js";
|
|
18
18
|
import { P as Z } from "./icon-CC1js8eR.js";
|
|
19
|
-
import { P as et } from "./input-wrapper-
|
|
19
|
+
import { P as et } from "./input-wrapper-Dr__Sxql.js";
|
|
20
20
|
import { P as ot } from "./link-C76H6Qf1.js";
|
|
21
21
|
import { P as at } from "./linkcard-BVEsUPwG.js";
|
|
22
22
|
import { P as it } from "./loader-Da4IOk_T.js";
|
|
23
23
|
import { P as lt } from "./messagebox-DwGdcdm7.js";
|
|
24
24
|
import { P as mt } from "./modal-DcXPnFus.js";
|
|
25
25
|
import { P as ft } from "./progressbar-Dj_mI_A6.js";
|
|
26
|
-
import { P as ht, P as ct } from "./radiobutton-
|
|
26
|
+
import { P as ht, P as ct } from "./radiobutton-CWxiIVfA.js";
|
|
27
27
|
import { P as ut } from "./tag-BWm6s48d.js";
|
|
28
|
-
import { P as vt } from "./textarea-
|
|
29
|
-
import { P as bt } from "./textinput-
|
|
30
|
-
import { P as $t } from "./select-
|
|
28
|
+
import { P as vt } from "./textarea-BZL8Mkm0.js";
|
|
29
|
+
import { P as bt } from "./textinput-DjPhmmkB.js";
|
|
30
|
+
import { P as $t } from "./select-CsgDatCa.js";
|
|
31
31
|
var g = Object.defineProperty, v = Object.getOwnPropertyDescriptor, s = (t, e, i, a) => {
|
|
32
32
|
for (var r = a > 1 ? void 0 : a ? v(e, i) : e, p = t.length - 1, l; p >= 0; p--)
|
|
33
33
|
(l = t[p]) && (r = (a ? l(e, i, r) : l(r)) || r);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./input-wrapper-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./input-wrapper-CZ-a00V7.cjs"),t=e.PktInputWrapper;Object.defineProperty(exports,"PktInputWrapper",{enumerable:!0,get:()=>e.PktInputWrapper});exports.default=t;
|
package/dist/pkt-radiobutton.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./radiobutton-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./radiobutton-CdT6v1oq.cjs"),e=t.PktRadioButton;Object.defineProperty(exports,"PktRadioButton",{enumerable:!0,get:()=>t.PktRadioButton});exports.default=e;
|
package/dist/pkt-radiobutton.js
CHANGED
package/dist/pkt-select.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./select-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./select-DUeTm8ac.cjs"),t=e.PktSelect;Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>e.PktSelect});exports.default=t;
|
package/dist/pkt-select.js
CHANGED
package/dist/pkt-textarea.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textarea-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textarea-CPXsMFUq.cjs"),t=e.PktTextarea;Object.defineProperty(exports,"PktTextarea",{enumerable:!0,get:()=>e.PktTextarea});exports.default=t;
|
package/dist/pkt-textarea.js
CHANGED
package/dist/pkt-textinput.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textinput-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textinput-aNI5kibM.cjs"),t=e.PktTextinput;Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>e.PktTextinput});exports.default=t;
|
package/dist/pkt-textinput.js
CHANGED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { x as h, E as n, n as s, a as d } from "./element-CgEWt74-.js";
|
|
2
|
+
import { r as k } from "./state-Bo2bck5_.js";
|
|
3
|
+
import { P as f } from "./input-element-NnrDmp4r.js";
|
|
4
|
+
import { e as g, n as y } from "./ref-BBYSqgeW.js";
|
|
5
|
+
import { e as u } from "./class-map-BpTj9gtz.js";
|
|
6
|
+
var $ = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (e, p, c, l) => {
|
|
7
|
+
for (var a = l > 1 ? void 0 : l ? b(p, c) : p, r = e.length - 1, o; r >= 0; r--)
|
|
8
|
+
(o = e[r]) && (a = (l ? o(p, c, a) : o(a)) || a);
|
|
9
|
+
return l && a && $(p, c, a), a;
|
|
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, p, c) {
|
|
19
|
+
e === "defaultChecked" && (this._checked = this.defaultChecked), e === "checked" && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0), super.attributeChangedCallback(e, p, 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
|
+
}), p = 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", a = () => 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} ${a()}
|
|
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=${p}
|
|
49
|
+
type="radio"
|
|
50
|
+
role="radio"
|
|
51
|
+
?disabled=${this.disabled}
|
|
52
|
+
form=""
|
|
53
|
+
name=${this.name + "-internal"}
|
|
54
|
+
${y(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
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";const t=require("./element-6DBpyGQm.cjs"),r=require("./state-DPobt-Yz.cjs"),u=require("./input-element-C4xJoM-X.cjs"),h=require("./ref-iJtiv3o2.cjs"),c=require("./class-map-BBG2gMX4.cjs");var d=Object.defineProperty,k=Object.getOwnPropertyDescriptor,i=(p,e,n,a)=>{for(var s=a>1?void 0:a?k(e,n):e,o=p.length-1,l;o>=0;o--)(l=p[o])&&(s=(a?l(e,n,s):l(s))||s);return a&&s&&d(e,n,s),s};exports.PktRadioButton=class extends u.PktInputElement{constructor(){super(...arguments),this.inputRef=h.e(),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}connectedCallback(){super.connectedCallback()}attributeChangedCallback(e,n,a){e==="defaultChecked"&&(this._checked=this.defaultChecked),e==="checked"&&(this._checked=this.checked===""||this.checked==="true"||this.checked===!0),super.attributeChangedCallback(e,n,a)}render(){const e=c.e({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),n=c.e({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError}),a=c.e({"pkt-input-check__input-label":!0,"pkt-input-check__input-label--disabled":this.disabled,"pkt-sr-only":this.hideLabel}),s="pkt-tag pkt-tag--small pkt-tag--thin-text",o=()=>t.x`
|
|
2
|
+
${this.tagText?t.x`<span class=${s+" pkt-tag--gray"}>${this.tagText}</span>`:t.E}
|
|
3
|
+
${this.optionalTag?t.x`<span class=${s+" pkt-tag--blue-light"}>${this.optionalText}</span>`:t.E}
|
|
4
|
+
${this.requiredTag?t.x`<span class=${s+" pkt-tag--beige"}>${this.requiredText}</span>`:t.E}
|
|
5
|
+
`,l=()=>t.x`
|
|
6
|
+
<label class=${a} for=${this.id+"-internal"}>
|
|
7
|
+
${this.label} ${o()}
|
|
8
|
+
${this.checkHelptext?t.x`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>`:t.E}
|
|
9
|
+
</label>
|
|
10
|
+
`;return t.x`
|
|
11
|
+
<div class="pkt-input-check">
|
|
12
|
+
<div class=${e}>
|
|
13
|
+
<input
|
|
14
|
+
id=${this.id+"-internal"}
|
|
15
|
+
class=${n}
|
|
16
|
+
type="radio"
|
|
17
|
+
role="radio"
|
|
18
|
+
?disabled=${this.disabled}
|
|
19
|
+
form=""
|
|
20
|
+
name=${this.name+"-internal"}
|
|
21
|
+
${h.n(this.inputRef)}
|
|
22
|
+
@change=${this.toggleChecked}
|
|
23
|
+
@input=${this.onInput}
|
|
24
|
+
@blur=${this.onBlur}
|
|
25
|
+
@focus=${this.onFocus}
|
|
26
|
+
?checked=${this.checked}
|
|
27
|
+
/>
|
|
28
|
+
${l()}
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
`}toggleChecked(e=null){e&&e.preventDefault(),e&&e.stopImmediatePropagation(),this.touched=!0,this.inputRef.value&&(this._checked=this.inputRef.value.matches(":checked"),this.valueChecked(this._checked))}};i([t.n({type:String,reflect:!0})],exports.PktRadioButton.prototype,"value",2);i([t.n({type:String})],exports.PktRadioButton.prototype,"checkHelptext",2);i([t.n({type:Boolean})],exports.PktRadioButton.prototype,"defaultChecked",2);i([t.n({type:Boolean})],exports.PktRadioButton.prototype,"hasTile",2);i([t.n({type:Boolean,reflect:!0})],exports.PktRadioButton.prototype,"checked",2);i([t.n({type:String,reflect:!0})],exports.PktRadioButton.prototype,"type",2);i([t.n({type:String})],exports.PktRadioButton.prototype,"tagText",2);i([t.n({type:Boolean})],exports.PktRadioButton.prototype,"optionalTag",2);i([t.n({type:String})],exports.PktRadioButton.prototype,"optionalText",2);i([t.n({type:Boolean})],exports.PktRadioButton.prototype,"requiredTag",2);i([t.n({type:String})],exports.PktRadioButton.prototype,"requiredText",2);i([r.r()],exports.PktRadioButton.prototype,"_checked",2);exports.PktRadioButton=i([t.t("pkt-radiobutton")],exports.PktRadioButton);
|
|
@@ -2,16 +2,16 @@ import { x as p, n as c, a as v } from "./element-CgEWt74-.js";
|
|
|
2
2
|
import { r as f } from "./state-Bo2bck5_.js";
|
|
3
3
|
import { e as u, n as d } from "./ref-BBYSqgeW.js";
|
|
4
4
|
import { o } from "./if-defined-CmuO4Vz9.js";
|
|
5
|
-
import { P as b } from "./input-element-
|
|
5
|
+
import { P as b } from "./input-element-NnrDmp4r.js";
|
|
6
6
|
import { P as $ } from "./pkt-options-controller-CZO1nxZ8.js";
|
|
7
7
|
import { P as x } from "./pkt-slot-controller-BPGj-LC5.js";
|
|
8
|
-
import "./input-wrapper-
|
|
9
|
-
var m = Object.defineProperty, g = Object.getOwnPropertyDescriptor,
|
|
8
|
+
import "./input-wrapper-Dr__Sxql.js";
|
|
9
|
+
var m = Object.defineProperty, g = Object.getOwnPropertyDescriptor, n = (t, e, s, i) => {
|
|
10
10
|
for (var l = i > 1 ? void 0 : i ? g(e, s) : e, a = t.length - 1, r; a >= 0; a--)
|
|
11
11
|
(r = t[a]) && (l = (i ? r(e, s, l) : r(l)) || l);
|
|
12
12
|
return i && l && m(e, s, l), l;
|
|
13
13
|
};
|
|
14
|
-
let
|
|
14
|
+
let h = class extends b {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(), this.inputRef = u(), this.helptextSlot = u(), this.options = [], this.value = "", this._options = [], this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new $(this), this.slotController = new x(this, this.helptextSlot), this.slotController.skipOptions = !0;
|
|
17
17
|
}
|
|
@@ -95,6 +95,7 @@ let n = class extends b {
|
|
|
95
95
|
label=${o(this.label)}
|
|
96
96
|
optionalText=${o(this.optionalText)}
|
|
97
97
|
requiredText=${o(this.requiredText)}
|
|
98
|
+
tagText=${o(this.tagText)}
|
|
98
99
|
>
|
|
99
100
|
<select
|
|
100
101
|
class=${t}
|
|
@@ -138,18 +139,18 @@ let n = class extends b {
|
|
|
138
139
|
return t == null || isNaN(t) ? null : t;
|
|
139
140
|
}
|
|
140
141
|
};
|
|
141
|
-
|
|
142
|
+
n([
|
|
142
143
|
c({ type: Array })
|
|
143
|
-
],
|
|
144
|
-
|
|
144
|
+
], h.prototype, "options", 2);
|
|
145
|
+
n([
|
|
145
146
|
c({ type: String })
|
|
146
|
-
],
|
|
147
|
-
|
|
147
|
+
], h.prototype, "value", 2);
|
|
148
|
+
n([
|
|
148
149
|
f()
|
|
149
|
-
],
|
|
150
|
-
|
|
150
|
+
], h.prototype, "_options", 2);
|
|
151
|
+
h = n([
|
|
151
152
|
v("pkt-select")
|
|
152
|
-
],
|
|
153
|
+
], h);
|
|
153
154
|
export {
|
|
154
|
-
|
|
155
|
+
h as P
|
|
155
156
|
};
|