@oslokommune/punkt-react 12.34.1 → 12.34.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/punkt-react.es.js +142 -135
- package/dist/punkt-react.umd.js +77 -74
- package/package.json +4 -4
package/dist/punkt-react.es.js
CHANGED
|
@@ -5679,7 +5679,7 @@ function dL() {
|
|
|
5679
5679
|
for (var c = 0; c < o.length && c < a.length; c++) if (!Sa(a[c], o[c])) return !1;
|
|
5680
5680
|
return !0;
|
|
5681
5681
|
}
|
|
5682
|
-
function
|
|
5682
|
+
function sn(a, o, c, m, b, S) {
|
|
5683
5683
|
if (h = S, k = o, o.memoizedState = null, o.updateQueue = null, o.lanes = 0, tn.current = a === null || a.memoizedState === null ? Ph : op, a = c(m, b), ee) {
|
|
5684
5684
|
S = 0;
|
|
5685
5685
|
do {
|
|
@@ -6135,7 +6135,7 @@ Error generating stack: ` + S.message + `
|
|
|
6135
6135
|
function $i(a, o, c, m, b) {
|
|
6136
6136
|
c = c.render;
|
|
6137
6137
|
var S = o.ref;
|
|
6138
|
-
return Qn(o, b), m =
|
|
6138
|
+
return Qn(o, b), m = sn(a, o, c, m, S, b), c = jt(), a !== null && !Vr ? (o.updateQueue = a.updateQueue, o.flags &= -2053, a.lanes &= ~b, to(a, o, b)) : (rr && c && wl(o), o.flags |= 1, xa(a, o, m, b), o.child);
|
|
6139
6139
|
}
|
|
6140
6140
|
function Ac(a, o, c, m, b) {
|
|
6141
6141
|
if (a === null) {
|
|
@@ -6172,7 +6172,7 @@ Error generating stack: ` + S.message + `
|
|
|
6172
6172
|
}
|
|
6173
6173
|
function xg(a, o, c, m, b) {
|
|
6174
6174
|
var S = $r(c) ? ja : Hn.current;
|
|
6175
|
-
return S = Ei(o, S), Qn(o, b), c =
|
|
6175
|
+
return S = Ei(o, S), Qn(o, b), c = sn(a, o, c, m, S, b), m = jt(), a !== null && !Vr ? (o.updateQueue = a.updateQueue, o.flags &= -2053, a.lanes &= ~b, to(a, o, b)) : (rr && m && wl(o), o.flags |= 1, xa(a, o, c, b), o.child);
|
|
6176
6176
|
}
|
|
6177
6177
|
function Bh(a, o, c, m, b) {
|
|
6178
6178
|
if ($r(c)) {
|
|
@@ -7953,7 +7953,7 @@ Error generating stack: ` + S.message + `
|
|
|
7953
7953
|
var m = o.type;
|
|
7954
7954
|
Pc(a, o), a = o.pendingProps;
|
|
7955
7955
|
var b = Ei(o, Hn.current);
|
|
7956
|
-
Qn(o, c), b =
|
|
7956
|
+
Qn(o, c), b = sn(null, o, m, a, b, c);
|
|
7957
7957
|
var S = jt();
|
|
7958
7958
|
return o.flags |= 1, typeof b == "object" && b !== null && typeof b.render == "function" && b.$$typeof === void 0 ? (o.tag = 1, o.memoizedState = null, o.updateQueue = null, $r(m) ? (S = !0, za(o)) : S = !1, o.memoizedState = b.state !== null && b.state !== void 0 ? b.state : null, Zf(o), b.updater = Rh, o.stateNode = b, b._reactInternals = o, sp(o, m, a, c), o = $c(null, o, m, !0, S, c)) : (o.tag = 0, rr && S && wl(o), xa(null, o, b, c), o = o.child), o;
|
|
7959
7959
|
case 16:
|
|
@@ -11231,7 +11231,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
11231
11231
|
), Ee = (
|
|
11232
11232
|
/* */
|
|
11233
11233
|
1
|
|
11234
|
-
),
|
|
11234
|
+
), sn = (
|
|
11235
11235
|
/* */
|
|
11236
11236
|
2
|
|
11237
11237
|
), jt = (
|
|
@@ -11335,7 +11335,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
11335
11335
|
{
|
|
11336
11336
|
if (e & Ee)
|
|
11337
11337
|
return "Sync";
|
|
11338
|
-
if (e &
|
|
11338
|
+
if (e & sn)
|
|
11339
11339
|
return "InputContinuousHydration";
|
|
11340
11340
|
if (e & jt)
|
|
11341
11341
|
return "InputContinuous";
|
|
@@ -11364,8 +11364,8 @@ Check the render method of \`` + e + "`." : "";
|
|
|
11364
11364
|
switch (Cu(e)) {
|
|
11365
11365
|
case Ee:
|
|
11366
11366
|
return Ee;
|
|
11367
|
-
case
|
|
11368
|
-
return
|
|
11367
|
+
case sn:
|
|
11368
|
+
return sn;
|
|
11369
11369
|
case jt:
|
|
11370
11370
|
return jt;
|
|
11371
11371
|
case Tt:
|
|
@@ -11461,7 +11461,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
11461
11461
|
function bg(e, t) {
|
|
11462
11462
|
switch (e) {
|
|
11463
11463
|
case Ee:
|
|
11464
|
-
case
|
|
11464
|
+
case sn:
|
|
11465
11465
|
case jt:
|
|
11466
11466
|
return t + 250;
|
|
11467
11467
|
case Tt:
|
|
@@ -11529,7 +11529,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
11529
11529
|
return (e & lr) === e;
|
|
11530
11530
|
}
|
|
11531
11531
|
function Lh(e, t) {
|
|
11532
|
-
var s =
|
|
11532
|
+
var s = sn | jt | Tt | It;
|
|
11533
11533
|
return (t & s) !== ae;
|
|
11534
11534
|
}
|
|
11535
11535
|
function Ay(e, t) {
|
|
@@ -11615,7 +11615,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
11615
11615
|
var s = Cu(t), u;
|
|
11616
11616
|
switch (s) {
|
|
11617
11617
|
case jt:
|
|
11618
|
-
u =
|
|
11618
|
+
u = sn;
|
|
11619
11619
|
break;
|
|
11620
11620
|
case It:
|
|
11621
11621
|
u = Tt;
|
|
@@ -22466,7 +22466,7 @@ let Jm = class {
|
|
|
22466
22466
|
* Copyright 2018 Google LLC
|
|
22467
22467
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22468
22468
|
*/
|
|
22469
|
-
const
|
|
22469
|
+
const on = rh(class extends Jm {
|
|
22470
22470
|
constructor(r) {
|
|
22471
22471
|
var n;
|
|
22472
22472
|
if (super(r), r.type !== ql.ATTRIBUTE || r.name !== "class" || ((n = r.strings) == null ? void 0 : n.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
@@ -22680,7 +22680,7 @@ let EL = class extends Jm {
|
|
|
22680
22680
|
const hn = () => new TL();
|
|
22681
22681
|
let TL = class {
|
|
22682
22682
|
};
|
|
22683
|
-
const ND = /* @__PURE__ */ new WeakMap(),
|
|
22683
|
+
const ND = /* @__PURE__ */ new WeakMap(), ln = rh(class extends EL {
|
|
22684
22684
|
render(r) {
|
|
22685
22685
|
return nt;
|
|
22686
22686
|
}
|
|
@@ -22841,34 +22841,41 @@ let Wl = class extends aa {
|
|
|
22841
22841
|
"pkt-alert--compact": this.compact,
|
|
22842
22842
|
[`pkt-alert--${this.skin}`]: this.skin,
|
|
22843
22843
|
"pkt-hide": this._isClosed
|
|
22844
|
+
}, i = {
|
|
22845
|
+
"pkt-alert__grid": !0,
|
|
22846
|
+
"pkt-alert__noTitle": !this.title,
|
|
22847
|
+
"pkt-alert__noDate": !this.date
|
|
22844
22848
|
};
|
|
22845
22849
|
return Ae`
|
|
22846
|
-
<div class=${
|
|
22847
|
-
<
|
|
22848
|
-
|
|
22849
|
-
|
|
22850
|
-
|
|
22851
|
-
|
|
22852
|
-
|
|
22853
|
-
${this.closeAlert ? Ae`
|
|
22854
|
-
<div class="pkt-alert__close">
|
|
22855
|
-
<button
|
|
22856
|
-
type="button"
|
|
22857
|
-
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
22858
|
-
tabindex="0"
|
|
22859
|
-
aria-label="close"
|
|
22860
|
-
@click=${this.close}
|
|
22861
|
-
>
|
|
22862
|
-
<pkt-icon name="close" class="pkt-btn__icon" aria-hidden="true"></pkt-icon>
|
|
22863
|
-
</button>
|
|
22864
|
-
</div>
|
|
22865
|
-
` : nt}
|
|
22866
|
-
${this.title ? Ae`<div class="pkt-alert__title">${this.title}</div>` : nt}
|
|
22850
|
+
<div class=${on(n)}>
|
|
22851
|
+
<div class=${on(i)}>
|
|
22852
|
+
<pkt-icon
|
|
22853
|
+
class="pkt-alert__icon"
|
|
22854
|
+
aria-hidden="true"
|
|
22855
|
+
name=${this.skin === "info" ? "alert-information" : `alert-${this.skin}`}
|
|
22856
|
+
></pkt-icon>
|
|
22867
22857
|
|
|
22868
|
-
|
|
22858
|
+
${this.closeAlert ? Ae`
|
|
22859
|
+
<div class="pkt-alert__close">
|
|
22860
|
+
<pkt-button
|
|
22861
|
+
tabindex="0"
|
|
22862
|
+
aria-label="close"
|
|
22863
|
+
size=${this.compact ? "small" : "medium"}
|
|
22864
|
+
type="button"
|
|
22865
|
+
skin="tertiary"
|
|
22866
|
+
iconName="close"
|
|
22867
|
+
variant="icon-only"
|
|
22868
|
+
@click=${this.close}
|
|
22869
|
+
>
|
|
22870
|
+
</pkt-button>
|
|
22871
|
+
</div>
|
|
22872
|
+
` : nt}
|
|
22873
|
+
${this.title ? Ae`<div class="pkt-alert__title">${this.title}</div>` : nt}
|
|
22869
22874
|
|
|
22870
|
-
|
|
22875
|
+
<div class="pkt-alert__text" ${ln(this.defaultSlot)}></div>
|
|
22871
22876
|
|
|
22877
|
+
${this.date ? Ae`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>` : nt}
|
|
22878
|
+
</div>
|
|
22872
22879
|
</div>
|
|
22873
22880
|
`;
|
|
22874
22881
|
}
|
|
@@ -22921,7 +22928,7 @@ let qm = class extends Um {
|
|
|
22921
22928
|
return Ae`
|
|
22922
22929
|
<div
|
|
22923
22930
|
part="container"
|
|
22924
|
-
class=${
|
|
22931
|
+
class=${on(n)}
|
|
22925
22932
|
data-testid="pkt-accordion"
|
|
22926
22933
|
aria-labelledby=${this.ariaLabelledBy}
|
|
22927
22934
|
>
|
|
@@ -22960,10 +22967,10 @@ let hf = class extends aa {
|
|
|
22960
22967
|
};
|
|
22961
22968
|
return Ae`
|
|
22962
22969
|
<details
|
|
22963
|
-
class=${
|
|
22970
|
+
class=${on(n)}
|
|
22964
22971
|
id=${this.id}
|
|
22965
22972
|
?open=${this.isOpen}
|
|
22966
|
-
${
|
|
22973
|
+
${ln(this.accordionItemRef)}
|
|
22967
22974
|
>
|
|
22968
22975
|
<summary class="pkt-accordion-item__title" id=${`pkt-accordion-item-summary-${this.id}`}>
|
|
22969
22976
|
${this.title}
|
|
@@ -22978,7 +22985,7 @@ let hf = class extends aa {
|
|
|
22978
22985
|
id="pkt-accordion-item__content-${this.id}"
|
|
22979
22986
|
role="region"
|
|
22980
22987
|
>
|
|
22981
|
-
<div class="pkt-accordion-item__content-inner" ${
|
|
22988
|
+
<div class="pkt-accordion-item__content-inner" ${ln(this.defaultSlot)}></div>
|
|
22982
22989
|
</div>
|
|
22983
22990
|
</details>
|
|
22984
22991
|
`;
|
|
@@ -23076,7 +23083,7 @@ let uo = class extends aa {
|
|
|
23076
23083
|
path="https://punkt-cdn.oslo.kommune.no/12.34/animations/"
|
|
23077
23084
|
></pkt-icon>` : nt}
|
|
23078
23085
|
${this.variant !== "label-only" ? Ae`<pkt-icon class="pkt-btn__icon pkt-icon" name=${this.iconName}></pkt-icon>` : nt}
|
|
23079
|
-
<span class="pkt-btn__text" ${
|
|
23086
|
+
<span class="pkt-btn__text" ${ln(this.defaultSlot)}></span>
|
|
23080
23087
|
${this.variant === "icons-right-and-left" ? Ae`<pkt-icon class="pkt-btn__icon" name=${this.secondIconName}></pkt-icon>` : nt}
|
|
23081
23088
|
</div>
|
|
23082
23089
|
`;
|
|
@@ -24779,7 +24786,7 @@ let or = class extends aa {
|
|
|
24779
24786
|
"pkt-cal-in-range-last": this.range && this.selected.length === 2 && v === this.selected[1],
|
|
24780
24787
|
"pkt-cal-range-hover": this.rangeHovered !== null && v === Qa(this.rangeHovered)
|
|
24781
24788
|
};
|
|
24782
|
-
return Ae`<td class=${
|
|
24789
|
+
return Ae`<td class=${on(R)}>
|
|
24783
24790
|
<div
|
|
24784
24791
|
?aria-selected=${x}
|
|
24785
24792
|
role="gridcell"
|
|
@@ -25105,20 +25112,20 @@ let Ks = class extends aa {
|
|
|
25105
25112
|
};
|
|
25106
25113
|
return this.closeTag ? Ae`
|
|
25107
25114
|
<button
|
|
25108
|
-
class=${
|
|
25115
|
+
class=${on(i)}
|
|
25109
25116
|
type=${this.type}
|
|
25110
25117
|
@click=${this.close}
|
|
25111
25118
|
aria-label=${En(this.ariaLabel || void 0)}
|
|
25112
25119
|
aria-description=${En(this._ariaDescription || void 0)}
|
|
25113
25120
|
>
|
|
25114
25121
|
${this.iconName && Ae`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
|
|
25115
|
-
<span ${
|
|
25122
|
+
<span ${ln(this.defaultSlot)}></span>
|
|
25116
25123
|
<pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
|
|
25117
25124
|
</button>
|
|
25118
25125
|
` : Ae`
|
|
25119
|
-
<span class=${
|
|
25126
|
+
<span class=${on(n)}>
|
|
25120
25127
|
${this.iconName && Ae`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
|
|
25121
|
-
<span ${
|
|
25128
|
+
<span ${ln(this.defaultSlot)}></span>
|
|
25122
25129
|
</span>
|
|
25123
25130
|
`;
|
|
25124
25131
|
}
|
|
@@ -25185,7 +25192,7 @@ let td = class extends aa {
|
|
|
25185
25192
|
[`pkt-card--${this.direction}`]: this.direction
|
|
25186
25193
|
};
|
|
25187
25194
|
return Ae`
|
|
25188
|
-
<div class=${
|
|
25195
|
+
<div class=${on(n)}>
|
|
25189
25196
|
${this.image.src && Ae`
|
|
25190
25197
|
<div class="pkt-card__image">
|
|
25191
25198
|
<img src=${this.image.src} alt=${this.image.alt || ""} />
|
|
@@ -25210,7 +25217,7 @@ let td = class extends aa {
|
|
|
25210
25217
|
` : nt}
|
|
25211
25218
|
${this.heading && Ae`<h3 class="pkt-txt-30-medium">${this.heading}</h3>`}
|
|
25212
25219
|
${this.subheading && Ae`<p class="pkt-txt-20-light">${this.subheading}</p>`}
|
|
25213
|
-
${this.defaultSlot && Ae`<div class="pkt-card__content" ${
|
|
25220
|
+
${this.defaultSlot && Ae`<div class="pkt-card__content" ${ln(this.defaultSlot)}></div>`}
|
|
25214
25221
|
</div>
|
|
25215
25222
|
</div>
|
|
25216
25223
|
`;
|
|
@@ -25606,7 +25613,7 @@ let mf = class extends aa {
|
|
|
25606
25613
|
<span class="pkt-btn__text">${Yk(this.helptextDropdownButton)}</span>
|
|
25607
25614
|
</button>
|
|
25608
25615
|
<div
|
|
25609
|
-
class="${
|
|
25616
|
+
class="${on({
|
|
25610
25617
|
"pkt-inputwrapper__helptext": !0,
|
|
25611
25618
|
"pkt-inputwrapper__helptext-expandable-open": this.isHelpTextOpen,
|
|
25612
25619
|
"pkt-inputwrapper__helptext-expandable-closed": !this.isHelpTextOpen
|
|
@@ -25617,7 +25624,7 @@ let mf = class extends aa {
|
|
|
25617
25624
|
</div>` : nt;
|
|
25618
25625
|
return Ae`${Ae`<div class="pkt-inputwrapper__helptext-container">
|
|
25619
25626
|
<div class="pkt-inputwrapper__helptext" id="${this.forId}-helptext">
|
|
25620
|
-
<div class="pkt-contents" ${
|
|
25627
|
+
<div class="pkt-contents" ${ln(this.defaultSlot)} name="helptext"></div>
|
|
25621
25628
|
${this.helptext && Yk(this.helptext)}
|
|
25622
25629
|
</div>
|
|
25623
25630
|
${n()}
|
|
@@ -25669,7 +25676,7 @@ let kr = class extends aa {
|
|
|
25669
25676
|
"pkt-tag--thin-text": !0,
|
|
25670
25677
|
"pkt-tag--blue-light": this.optionalTag,
|
|
25671
25678
|
"pkt-tag--beige": !this.optionalTag && this.requiredTag
|
|
25672
|
-
}, l = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : nt, d = () => this.optionalTag || this.requiredTag ? Ae`<span class=${
|
|
25679
|
+
}, l = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : nt, d = () => this.optionalTag || this.requiredTag ? Ae`<span class=${on(i)}
|
|
25673
25680
|
>${this.optionalTag ? this.optionalText : this.requiredTag ? this.requiredText : nt}</span
|
|
25674
25681
|
>` : nt, g = () => this.useWrapper ? this.hasFieldset ? Ae`<legend
|
|
25675
25682
|
class="pkt-inputwrapper__legend"
|
|
@@ -25700,7 +25707,7 @@ let kr = class extends aa {
|
|
|
25700
25707
|
@toggleHelpText=${(N) => {
|
|
25701
25708
|
this.toggleDropdown(N);
|
|
25702
25709
|
}}
|
|
25703
|
-
${
|
|
25710
|
+
${ln(this.helptextSlot)}
|
|
25704
25711
|
name="helptext"
|
|
25705
25712
|
></pkt-helptext>
|
|
25706
25713
|
`, D = () => this.counter ? Ae`<div class="pkt-input__counter" aria-live="polite" aria-atomic="true">
|
|
@@ -25718,12 +25725,12 @@ let kr = class extends aa {
|
|
|
25718
25725
|
</div>` : nt, E = () => Ae`
|
|
25719
25726
|
${g()} ${v()}
|
|
25720
25727
|
${this.counterPosition === "top" ? D() : nt}
|
|
25721
|
-
<div class="pkt-contents" ${
|
|
25728
|
+
<div class="pkt-contents" ${ln(this.defaultSlot)}></div>
|
|
25722
25729
|
${this.counterPosition === "bottom" ? D() : nt} ${x()}
|
|
25723
25730
|
`, A = () => this.hasFieldset ? Ae`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${l}">
|
|
25724
25731
|
${E()}
|
|
25725
25732
|
</fieldset>` : Ae`<div class="pkt-inputwrapper__fieldset">${E()}</div>`;
|
|
25726
|
-
return Ae`<div class=${
|
|
25733
|
+
return Ae`<div class=${on(n)}>${A()}</div> `;
|
|
25727
25734
|
}
|
|
25728
25735
|
toggleDropdown(n) {
|
|
25729
25736
|
this.dispatchEvent(
|
|
@@ -25838,7 +25845,7 @@ let hi = class extends aa {
|
|
|
25838
25845
|
render() {
|
|
25839
25846
|
return Ae`
|
|
25840
25847
|
<div
|
|
25841
|
-
class=${
|
|
25848
|
+
class=${on({
|
|
25842
25849
|
"pkt-listbox": !0,
|
|
25843
25850
|
"pkt-listbox__open": this.isOpen,
|
|
25844
25851
|
"pkt-txt-16-light": !0
|
|
@@ -25882,7 +25889,7 @@ let hi = class extends aa {
|
|
|
25882
25889
|
}}
|
|
25883
25890
|
aria-selected=${n.selected ? "true" : "false"}
|
|
25884
25891
|
@keydown=${this.handleOptionKeydown}
|
|
25885
|
-
class=${
|
|
25892
|
+
class=${on({
|
|
25886
25893
|
"pkt-listbox__option": !0,
|
|
25887
25894
|
"pkt-listbox__option--selected": !!(!this.isMultiSelect && n.selected),
|
|
25888
25895
|
"pkt-listbox__option--checkBox": this.isMultiSelect
|
|
@@ -26235,10 +26242,10 @@ let Gr = class extends cn {
|
|
|
26235
26242
|
class="pkt-combobox__wrapper"
|
|
26236
26243
|
@labelClick=${this.handleInputClick}
|
|
26237
26244
|
>
|
|
26238
|
-
<div class="pkt-contents" ${
|
|
26245
|
+
<div class="pkt-contents" ${ln(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
26239
26246
|
<div class="pkt-combobox" @focusout=${this.handleFocusOut}>
|
|
26240
26247
|
<div
|
|
26241
|
-
class=${
|
|
26248
|
+
class=${on({
|
|
26242
26249
|
"pkt-combobox__input": !0,
|
|
26243
26250
|
"pkt-combobox__input--fullwidth": this.fullwidth,
|
|
26244
26251
|
"pkt-combobox__input--open": this._isOptionsOpen,
|
|
@@ -26255,7 +26262,7 @@ let Gr = class extends cn {
|
|
|
26255
26262
|
@click=${this.handleArrowClick}
|
|
26256
26263
|
@keydown=${this.handleArrowClick}
|
|
26257
26264
|
id="${this.id}-arrow"
|
|
26258
|
-
${
|
|
26265
|
+
${ln(this.arrowRef)}
|
|
26259
26266
|
aria-expanded=${this._isOptionsOpen}
|
|
26260
26267
|
aria-controls="${this.id}-listbox"
|
|
26261
26268
|
aria-haspopup="listbox"
|
|
@@ -26266,14 +26273,14 @@ let Gr = class extends cn {
|
|
|
26266
26273
|
tabindex="${this.disabled ? "-1" : "0"}"
|
|
26267
26274
|
>
|
|
26268
26275
|
<pkt-icon
|
|
26269
|
-
class=${
|
|
26276
|
+
class=${on({
|
|
26270
26277
|
"pkt-combobox__arrow-icon": !0,
|
|
26271
26278
|
"pkt-combobox__arrow-icon--open": this._isOptionsOpen
|
|
26272
26279
|
})}
|
|
26273
26280
|
name="chevron-thin-down"
|
|
26274
26281
|
></pkt-icon>
|
|
26275
26282
|
</div>
|
|
26276
|
-
<div ${
|
|
26283
|
+
<div ${ln(this.focusRef)} tabindex="-1" @keydown=${this.handleArrowClick}></div>
|
|
26277
26284
|
</div>
|
|
26278
26285
|
|
|
26279
26286
|
<pkt-listbox
|
|
@@ -26294,7 +26301,7 @@ let Gr = class extends cn {
|
|
|
26294
26301
|
@close-options=${() => this._isOptionsOpen = !1}
|
|
26295
26302
|
.searchValue=${this._search || null}
|
|
26296
26303
|
.maxLength=${this.maxlength || 0}
|
|
26297
|
-
${
|
|
26304
|
+
${ln(this.listboxRef)}
|
|
26298
26305
|
></pkt-listbox>
|
|
26299
26306
|
</div>
|
|
26300
26307
|
|
|
@@ -26324,7 +26331,7 @@ let Gr = class extends cn {
|
|
|
26324
26331
|
aria-activedescendant=${En(
|
|
26325
26332
|
this._value[0] && this.findValueInOptions(this._value[0]) ? `${this.id}-listbox-${this.findIndexInOptions(this._value[0])}` : void 0
|
|
26326
26333
|
)}
|
|
26327
|
-
${
|
|
26334
|
+
${ln(this.inputRef)}
|
|
26328
26335
|
/>
|
|
26329
26336
|
</div>
|
|
26330
26337
|
` : Ae`
|
|
@@ -26333,7 +26340,7 @@ let Gr = class extends cn {
|
|
|
26333
26340
|
id="${this.id}-input"
|
|
26334
26341
|
name=${(this.name || this.id) + "-input"}
|
|
26335
26342
|
.value=${this._value.join(",")}
|
|
26336
|
-
${
|
|
26343
|
+
${ln(this.inputRef)}
|
|
26337
26344
|
/>
|
|
26338
26345
|
`;
|
|
26339
26346
|
}
|
|
@@ -26660,14 +26667,14 @@ let Js = class extends cn {
|
|
|
26660
26667
|
n.has("defaultChecked") && !this.checked && (this.checked = this.defaultChecked), super.firstUpdated(n);
|
|
26661
26668
|
}
|
|
26662
26669
|
render() {
|
|
26663
|
-
const n =
|
|
26670
|
+
const n = on({
|
|
26664
26671
|
"pkt-input-check__input": !0,
|
|
26665
26672
|
"pkt-input-check__input--tile": this.hasTile,
|
|
26666
26673
|
"pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
|
|
26667
|
-
}), i =
|
|
26674
|
+
}), i = on({
|
|
26668
26675
|
"pkt-input-check__input-checkbox": !0,
|
|
26669
26676
|
"pkt-input-check__input-checkbox--error": this.hasError
|
|
26670
|
-
}), l =
|
|
26677
|
+
}), l = on({
|
|
26671
26678
|
"pkt-input-check__input-label": !0,
|
|
26672
26679
|
"pkt-input-check__input-label--left": this.labelPosition === "left",
|
|
26673
26680
|
"pkt-input-check__input-label--right": this.labelPosition === "right",
|
|
@@ -26688,7 +26695,7 @@ let Js = class extends cn {
|
|
|
26688
26695
|
type="checkbox"
|
|
26689
26696
|
?disabled=${this.disabled}
|
|
26690
26697
|
name=${this.name + "-internal"}
|
|
26691
|
-
${
|
|
26698
|
+
${ln(this.inputRef)}
|
|
26692
26699
|
@change=${this.toggleChecked}
|
|
26693
26700
|
@blur=${this.onBlur}
|
|
26694
26701
|
@focus=${this.onFocus}
|
|
@@ -26811,7 +26818,7 @@ let Yr = class extends cn {
|
|
|
26811
26818
|
renderInput() {
|
|
26812
26819
|
return Ae`
|
|
26813
26820
|
<input
|
|
26814
|
-
class="${
|
|
26821
|
+
class="${on(this.inputClasses)}"
|
|
26815
26822
|
.type=${this.inputType}
|
|
26816
26823
|
id="${this.id}-input"
|
|
26817
26824
|
.value=${this._value[0] ?? ""}
|
|
@@ -26838,7 +26845,7 @@ let Yr = class extends cn {
|
|
|
26838
26845
|
@change=${(n) => {
|
|
26839
26846
|
n.stopImmediatePropagation();
|
|
26840
26847
|
}}
|
|
26841
|
-
${
|
|
26848
|
+
${ln(this.inputRef)}
|
|
26842
26849
|
/>
|
|
26843
26850
|
`;
|
|
26844
26851
|
}
|
|
@@ -26850,7 +26857,7 @@ let Yr = class extends cn {
|
|
|
26850
26857
|
return Ae`
|
|
26851
26858
|
${this.showRangeLabels ? Ae` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` : nt}
|
|
26852
26859
|
<input
|
|
26853
|
-
class=${
|
|
26860
|
+
class=${on(this.inputClasses)}
|
|
26854
26861
|
.type=${this.inputType}
|
|
26855
26862
|
id="${this.id}-input"
|
|
26856
26863
|
.value=${this._value[0] ?? ""}
|
|
@@ -26881,14 +26888,14 @@ let Yr = class extends cn {
|
|
|
26881
26888
|
@change=${(i) => {
|
|
26882
26889
|
i.stopImmediatePropagation();
|
|
26883
26890
|
}}
|
|
26884
|
-
${
|
|
26891
|
+
${ln(this.inputRef)}
|
|
26885
26892
|
/>
|
|
26886
|
-
<div class="${
|
|
26893
|
+
<div class="${on(n)}" id="${this.id}-to-label">
|
|
26887
26894
|
${this.strings.generic.to}
|
|
26888
26895
|
</div>
|
|
26889
26896
|
${this.showRangeLabels ? nt : Ae` <div class="pkt-input-separator">–</div> `}
|
|
26890
26897
|
<input
|
|
26891
|
-
class=${
|
|
26898
|
+
class=${on(this.inputClasses)}
|
|
26892
26899
|
.type=${this.inputType}
|
|
26893
26900
|
id="${this.id}-to"
|
|
26894
26901
|
aria-labelledby="${this.id}-to-label"
|
|
@@ -26930,14 +26937,14 @@ let Yr = class extends cn {
|
|
|
26930
26937
|
@change=${(i) => {
|
|
26931
26938
|
i.stopImmediatePropagation();
|
|
26932
26939
|
}}
|
|
26933
|
-
${
|
|
26940
|
+
${ln(this.inputRefTo)}
|
|
26934
26941
|
/>
|
|
26935
26942
|
`;
|
|
26936
26943
|
}
|
|
26937
26944
|
renderMultipleInput() {
|
|
26938
26945
|
return Ae`
|
|
26939
26946
|
<input
|
|
26940
|
-
class=${
|
|
26947
|
+
class=${on(this.inputClasses)}
|
|
26941
26948
|
.type=${this.inputType}
|
|
26942
26949
|
id="${this.id}-input"
|
|
26943
26950
|
min=${En(this.min)}
|
|
@@ -26962,7 +26969,7 @@ let Yr = class extends cn {
|
|
|
26962
26969
|
@change=${(n) => {
|
|
26963
26970
|
n.stopImmediatePropagation();
|
|
26964
26971
|
}}
|
|
26965
|
-
${
|
|
26972
|
+
${ln(this.inputRef)}
|
|
26966
26973
|
/>
|
|
26967
26974
|
`;
|
|
26968
26975
|
}
|
|
@@ -26998,7 +27005,7 @@ let Yr = class extends cn {
|
|
|
26998
27005
|
this.calendarOpen && this.handleFocusOut(n);
|
|
26999
27006
|
}}
|
|
27000
27007
|
id="${this.id}-popup"
|
|
27001
|
-
${
|
|
27008
|
+
${ln(this.popupRef)}
|
|
27002
27009
|
>
|
|
27003
27010
|
<pkt-calendar
|
|
27004
27011
|
id="${this.id}-calendar"
|
|
@@ -27019,7 +27026,7 @@ let Yr = class extends cn {
|
|
|
27019
27026
|
@close=${() => {
|
|
27020
27027
|
this.onBlur(), this.hideCalendar();
|
|
27021
27028
|
}}
|
|
27022
|
-
${
|
|
27029
|
+
${ln(this.calRef)}
|
|
27023
27030
|
></pkt-calendar>
|
|
27024
27031
|
</div>`;
|
|
27025
27032
|
}
|
|
@@ -27060,7 +27067,7 @@ let Yr = class extends cn {
|
|
|
27060
27067
|
.ariaDescribedBy=${this.ariaDescribedBy}
|
|
27061
27068
|
class="pkt-datepicker"
|
|
27062
27069
|
>
|
|
27063
|
-
<div class="pkt-contents" ${
|
|
27070
|
+
<div class="pkt-contents" ${ln(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
27064
27071
|
${this.multiple ? this.renderTags() : nt}
|
|
27065
27072
|
<div
|
|
27066
27073
|
class="pkt-datepicker__inputs ${this.range && this.showRangeLabels ? "pkt-input__range-inputs" : ""}"
|
|
@@ -27068,11 +27075,11 @@ let Yr = class extends cn {
|
|
|
27068
27075
|
<div class="pkt-input__container">
|
|
27069
27076
|
${this.range ? this.renderRangeInput() : this.multiple ? this.renderMultipleInput() : this.renderInput()}
|
|
27070
27077
|
<button
|
|
27071
|
-
class="${
|
|
27078
|
+
class="${on(this.buttonClasses)}"
|
|
27072
27079
|
type="button"
|
|
27073
27080
|
@click=${this.toggleCalendar}
|
|
27074
27081
|
?disabled=${this.disabled}
|
|
27075
|
-
${
|
|
27082
|
+
${ln(this.btnRef)}
|
|
27076
27083
|
>
|
|
27077
27084
|
<pkt-icon name="calendar"></pkt-icon>
|
|
27078
27085
|
<span class="pkt-btn__text">${this.strings.calendar.buttonAltText}</span>
|
|
@@ -27198,12 +27205,12 @@ let gf = class extends aa {
|
|
|
27198
27205
|
"pkt-link--external": this.external
|
|
27199
27206
|
};
|
|
27200
27207
|
return Ae`<a
|
|
27201
|
-
class=${
|
|
27208
|
+
class=${on(n)}
|
|
27202
27209
|
href=${this.href}
|
|
27203
27210
|
@click=${this.handleClick}
|
|
27204
27211
|
.target=${this.target}
|
|
27205
27212
|
.rel=${this.external ? "noopener noreferrer" : nt}
|
|
27206
|
-
>${this.iconName ? Ae`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>` : ""} <span ${
|
|
27213
|
+
>${this.iconName ? Ae`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>` : ""} <span ${ln(this.defaultSlot)}>Link</span></a
|
|
27207
27214
|
>`;
|
|
27208
27215
|
}
|
|
27209
27216
|
handleClick() {
|
|
@@ -27254,7 +27261,7 @@ let nd = class extends aa {
|
|
|
27254
27261
|
${this.iconName && Ae`<pkt-icon class="pkt-link__icon" name="${this.iconName}" />`}
|
|
27255
27262
|
${this.title && Ae`<div class=${i}>${this.title}</div>`}
|
|
27256
27263
|
|
|
27257
|
-
<div class="pkt-linkcard__text" ${
|
|
27264
|
+
<div class="pkt-linkcard__text" ${ln(this.defaultSlot)}></div>
|
|
27258
27265
|
</a>
|
|
27259
27266
|
`;
|
|
27260
27267
|
}
|
|
@@ -27296,11 +27303,11 @@ let Gu = class extends aa {
|
|
|
27296
27303
|
r.has("delay") && this.setupLoader();
|
|
27297
27304
|
}
|
|
27298
27305
|
render() {
|
|
27299
|
-
const r =
|
|
27306
|
+
const r = on({
|
|
27300
27307
|
"pkt-loader": !0,
|
|
27301
27308
|
[`pkt-loader--${this.inline ? "inline" : "box"}`]: !0,
|
|
27302
27309
|
[`pkt-loader--${this.size}`]: !0
|
|
27303
|
-
}), n =
|
|
27310
|
+
}), n = on({
|
|
27304
27311
|
"pkt-contents": !0,
|
|
27305
27312
|
"pkt-hide": this.isLoading
|
|
27306
27313
|
});
|
|
@@ -27313,7 +27320,7 @@ let Gu = class extends aa {
|
|
|
27313
27320
|
></pkt-icon>
|
|
27314
27321
|
${this.message && Ae`<p>${this.message}</p>`}
|
|
27315
27322
|
</div>` : nt}
|
|
27316
|
-
<div class=${n} ${
|
|
27323
|
+
<div class=${n} ${ln(this.defaultSlot)}></div>
|
|
27317
27324
|
</div>`;
|
|
27318
27325
|
}
|
|
27319
27326
|
getVariant(r) {
|
|
@@ -27393,7 +27400,7 @@ let vf = class extends aa {
|
|
|
27393
27400
|
"pkt-messagebox--closable": this.closable,
|
|
27394
27401
|
"pkt-hide": this._isClosed
|
|
27395
27402
|
};
|
|
27396
|
-
return Ae`<div class=${
|
|
27403
|
+
return Ae`<div class=${on(r)}>
|
|
27397
27404
|
${this.closable ? Ae`<div class="pkt-messagebox__close">
|
|
27398
27405
|
<button
|
|
27399
27406
|
@click=${this.close}
|
|
@@ -27403,7 +27410,7 @@ let vf = class extends aa {
|
|
|
27403
27410
|
</button>
|
|
27404
27411
|
</div>` : nt}
|
|
27405
27412
|
${this.title ? Ae`<div class="pkt-messagebox__title">${this.title}</div>` : nt}
|
|
27406
|
-
<div class="pkt-messagebox__text" ${
|
|
27413
|
+
<div class="pkt-messagebox__text" ${ln(this.defaultSlot)}></div>
|
|
27407
27414
|
</div>`;
|
|
27408
27415
|
}
|
|
27409
27416
|
};
|
|
@@ -27506,21 +27513,21 @@ let Yu = class extends aa {
|
|
|
27506
27513
|
};
|
|
27507
27514
|
return Ae`
|
|
27508
27515
|
<dialog
|
|
27509
|
-
class=${
|
|
27510
|
-
${
|
|
27516
|
+
class=${on(n)}
|
|
27517
|
+
${ln(this.dialogRef)}
|
|
27511
27518
|
aria-labelledby="pkt-modal__headingText"
|
|
27512
27519
|
aria-describedby="pkt-modal__content"
|
|
27513
27520
|
@close=${(D) => this.close(D, !0)}
|
|
27514
27521
|
>
|
|
27515
27522
|
<div class="pkt-modal__header">
|
|
27516
27523
|
<div class="pkt-modal__header-background"></div>
|
|
27517
|
-
${this.headingText ? Ae`<h1 id="pkt-modal__headingText" class=${
|
|
27524
|
+
${this.headingText ? Ae`<h1 id="pkt-modal__headingText" class=${on(i)}>
|
|
27518
27525
|
${this.headingText}
|
|
27519
27526
|
</h1>` : nt}
|
|
27520
|
-
${this.hideCloseButton ? nt : Ae`<div class="${
|
|
27527
|
+
${this.hideCloseButton ? nt : Ae`<div class="${on(g)}">
|
|
27521
27528
|
<pkt-button
|
|
27522
27529
|
@click=${(D) => this.close(D)}
|
|
27523
|
-
class=${
|
|
27530
|
+
class=${on(v)}
|
|
27524
27531
|
aria-label="close"
|
|
27525
27532
|
iconname="close"
|
|
27526
27533
|
variant="icon-only"
|
|
@@ -27531,8 +27538,8 @@ let Yu = class extends aa {
|
|
|
27531
27538
|
<div class="pkt-modal__container">
|
|
27532
27539
|
<div
|
|
27533
27540
|
id="pkt-modal__content"
|
|
27534
|
-
class=${
|
|
27535
|
-
${
|
|
27541
|
+
class=${on(l)}
|
|
27542
|
+
${ln(this.defaultSlot)}
|
|
27536
27543
|
></div>
|
|
27537
27544
|
</div>
|
|
27538
27545
|
</dialog>
|
|
@@ -27610,16 +27617,16 @@ let ra = class extends aa {
|
|
|
27610
27617
|
super.updated(r), r.has("valueCurrent") && this.labelRef.value && (this.labelWidth = this.labelRef.value.getBoundingClientRect().width || 0), r.has("id") && this.id && (this.progressBarId = this.id), (r.has("statusType") || r.has("id") || r.has("ariaLabelledby")) && (this.progressbarId = this.id || Xp(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`), (r.has("ariaValueText") || r.has("valueCurrent") || r.has("valueMax")) && (this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || ""), this.syncAttributes();
|
|
27611
27618
|
}
|
|
27612
27619
|
render() {
|
|
27613
|
-
const r = this.statusType !== "none", n = this.valueMax - this.valueMin, i = this.valueCurrent / n * 100, l = this.statusType === "fraction" ? Math.round(i) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), d = `${this.valueCurrent} av ${n}`, g =
|
|
27620
|
+
const r = this.statusType !== "none", n = this.valueMax - this.valueMin, i = this.valueCurrent / n * 100, l = this.statusType === "fraction" ? Math.round(i) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), d = `${this.valueCurrent} av ${n}`, g = on({
|
|
27614
27621
|
"pkt-progressbar__bar": !0,
|
|
27615
27622
|
[`pkt-progressbar__bar--${this.skin}`]: !!this.skin
|
|
27616
|
-
}), v =
|
|
27623
|
+
}), v = on({
|
|
27617
27624
|
"pkt-progressbar__title": !0,
|
|
27618
27625
|
"pkt-progressbar__title-center": this.titlePosition === "center"
|
|
27619
|
-
}), D =
|
|
27626
|
+
}), D = on({
|
|
27620
27627
|
"pkt-progressbar__status": !0,
|
|
27621
27628
|
"pkt-progressbar__status--center": this.statusPlacement === "center"
|
|
27622
|
-
}), x =
|
|
27629
|
+
}), x = on({
|
|
27623
27630
|
"pkt-progressbar__status-placement--following": this.statusPlacement === "following",
|
|
27624
27631
|
"pkt-progressbar__status-placement--center": this.statusPlacement === "center",
|
|
27625
27632
|
"pkt-progressbar__status-placement--left": this.statusPlacement === "left"
|
|
@@ -27639,7 +27646,7 @@ let ra = class extends aa {
|
|
|
27639
27646
|
</div>
|
|
27640
27647
|
|
|
27641
27648
|
${r ? Ae`<div class=${D}>
|
|
27642
|
-
<span class=${x} ${
|
|
27649
|
+
<span class=${x} ${ln(this.labelRef)}>
|
|
27643
27650
|
${this.statusType === "percentage" ? `${l}%` : d}
|
|
27644
27651
|
</span>
|
|
27645
27652
|
</div>` : nt}
|
|
@@ -27732,11 +27739,11 @@ let Qu = class extends cn {
|
|
|
27732
27739
|
r.has("checked") && this.checked !== null && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0, (r.get("checked") === "" || r.get("checked") === "true" || r.get("checked") === !0) !== this._checked && this.toggleChecked()), super.updated(r);
|
|
27733
27740
|
}
|
|
27734
27741
|
render() {
|
|
27735
|
-
const r =
|
|
27742
|
+
const r = on({
|
|
27736
27743
|
"pkt-input-check__input": !0,
|
|
27737
27744
|
"pkt-input-check__input--tile": this.hasTile,
|
|
27738
27745
|
"pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
|
|
27739
|
-
}), n =
|
|
27746
|
+
}), n = on({
|
|
27740
27747
|
"pkt-input-check__input-checkbox": !0,
|
|
27741
27748
|
"pkt-input-check__input-checkbox--error": this.hasError
|
|
27742
27749
|
});
|
|
@@ -27750,7 +27757,7 @@ let Qu = class extends cn {
|
|
|
27750
27757
|
role="radio"
|
|
27751
27758
|
?disabled=${this.disabled}
|
|
27752
27759
|
name=${this.name + "-internal"}
|
|
27753
|
-
${
|
|
27760
|
+
${ln(this.inputRef)}
|
|
27754
27761
|
@change=${this.toggleChecked}
|
|
27755
27762
|
@input=${this.onInput}
|
|
27756
27763
|
@blur=${this.onBlur}
|
|
@@ -27834,7 +27841,7 @@ let eh = class extends cn {
|
|
|
27834
27841
|
super.updated(n), n.has("value") && (this.counterCurrent = ((i = this.value) == null ? void 0 : i.length) || 0, this.valueChanged(this.value, n.get("value"))), n.has("id") && !this.name && this.id && (this.name = this.id);
|
|
27835
27842
|
}
|
|
27836
27843
|
render() {
|
|
27837
|
-
const n =
|
|
27844
|
+
const n = on({
|
|
27838
27845
|
"pkt-input": !0,
|
|
27839
27846
|
"pkt-input--fullwidth": this.fullwidth,
|
|
27840
27847
|
"pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
|
|
@@ -27861,9 +27868,9 @@ let eh = class extends cn {
|
|
|
27861
27868
|
.requiredText=${this.requiredText}
|
|
27862
27869
|
class="pkt-textarea"
|
|
27863
27870
|
>
|
|
27864
|
-
<div class="pkt-contents" ${
|
|
27871
|
+
<div class="pkt-contents" ${ln(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
27865
27872
|
<textarea
|
|
27866
|
-
${
|
|
27873
|
+
${ln(this.inputRef)}
|
|
27867
27874
|
class=${n}
|
|
27868
27875
|
id=${this.id + "-input"}
|
|
27869
27876
|
name=${(this.name || this.id) + "-input"}
|
|
@@ -27926,7 +27933,7 @@ let Zs = class extends cn {
|
|
|
27926
27933
|
super.updated(n), n.has("value") && (this.counterCurrent = ((i = this.value) == null ? void 0 : i.length) || 0, this.valueChanged(this.value, n.get("value"))), n.has("id") && !this.name && this.id && (this.name = this.id);
|
|
27927
27934
|
}
|
|
27928
27935
|
render() {
|
|
27929
|
-
const n = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, i =
|
|
27936
|
+
const n = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, i = on({
|
|
27930
27937
|
"pkt-input": !0,
|
|
27931
27938
|
"pkt-input--fullwidth": this.fullwidth,
|
|
27932
27939
|
"pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
|
|
@@ -27955,11 +27962,11 @@ let Zs = class extends cn {
|
|
|
27955
27962
|
.requiredText=${this.requiredText}
|
|
27956
27963
|
class="pkt-textinput"
|
|
27957
27964
|
>
|
|
27958
|
-
<div class="pkt-contents" ${
|
|
27965
|
+
<div class="pkt-contents" ${ln(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
27959
27966
|
<div class="pkt-input__container">
|
|
27960
27967
|
${this.prefix ? Ae`<div class="pkt-input-prefix">${this.prefix}</div>` : nt}
|
|
27961
27968
|
<input
|
|
27962
|
-
${
|
|
27969
|
+
${ln(this.inputRef)}
|
|
27963
27970
|
class=${i}
|
|
27964
27971
|
type=${this.type}
|
|
27965
27972
|
name=${(this.name || this.id) + "-input"}
|
|
@@ -28114,7 +28121,7 @@ let Gm = class extends cn {
|
|
|
28114
28121
|
@blur=${(n) => {
|
|
28115
28122
|
this.onBlur(), n.stopImmediatePropagation();
|
|
28116
28123
|
}}
|
|
28117
|
-
${
|
|
28124
|
+
${ln(this.inputRef)}
|
|
28118
28125
|
>
|
|
28119
28126
|
${this._options.length > 0 && this._options.map(
|
|
28120
28127
|
(n) => Ae`<option
|
|
@@ -28126,7 +28133,7 @@ let Gm = class extends cn {
|
|
|
28126
28133
|
</option>`
|
|
28127
28134
|
)}
|
|
28128
28135
|
</select>
|
|
28129
|
-
<div class="pkt-contents" ${
|
|
28136
|
+
<div class="pkt-contents" ${ln(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
28130
28137
|
</pkt-input-wrapper>
|
|
28131
28138
|
`;
|
|
28132
28139
|
}
|
|
@@ -28170,7 +28177,7 @@ let Ym = class extends aa {
|
|
|
28170
28177
|
"pkt-darkmode": this.darkmode
|
|
28171
28178
|
};
|
|
28172
28179
|
return Ae`
|
|
28173
|
-
<div class="${
|
|
28180
|
+
<div class="${on(r)}">
|
|
28174
28181
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
28175
28182
|
|
|
28176
28183
|
<h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
|
|
@@ -28178,11 +28185,11 @@ let Ym = class extends aa {
|
|
|
28178
28185
|
<div>${this.renderList(this.doStuff(this._list))}</div>
|
|
28179
28186
|
|
|
28180
28187
|
<h2 class="pkt-txt-22">Slot</h2>
|
|
28181
|
-
<div ${
|
|
28188
|
+
<div ${ln(this.defaultSlot)}>defaultSlotRef</div>
|
|
28182
28189
|
<h2 class="pkt-txt-22">Named slot</h2>
|
|
28183
28190
|
<select
|
|
28184
28191
|
name="named-slot"
|
|
28185
|
-
${
|
|
28192
|
+
${ln(this.namedSlot)}
|
|
28186
28193
|
@change=${(n) => alert(n.target.value)}
|
|
28187
28194
|
>
|
|
28188
28195
|
namedSlotRef
|
|
@@ -32230,9 +32237,9 @@ Expected it to be ${C}.`;
|
|
|
32230
32237
|
if (Ee.length === 0) throw new Error("Must contain one or more image candidate strings.");
|
|
32231
32238
|
return Ee;
|
|
32232
32239
|
}
|
|
32233
|
-
ae = we, k = Ve(au), C = [], k.slice(-1) === "," ? (k = k.replace(Yi, ""), jt()) :
|
|
32240
|
+
ae = we, k = Ve(au), C = [], k.slice(-1) === "," ? (k = k.replace(Yi, ""), jt()) : sn();
|
|
32234
32241
|
}
|
|
32235
|
-
function
|
|
32242
|
+
function sn() {
|
|
32236
32243
|
for (Ve(dl), $ = "", I = "in descriptor"; ; ) {
|
|
32237
32244
|
if (ee = f.charAt(we), I === "in descriptor") if (Vo(ee)) $ && (C.push($), $ = "", I = "after descriptor");
|
|
32238
32245
|
else if (ee === ",") {
|
|
@@ -32268,16 +32275,16 @@ Expected it to be ${C}.`;
|
|
|
32268
32275
|
}
|
|
32269
32276
|
var Et = { width: "w", height: "h", density: "x" }, Ke = Object.keys(Et);
|
|
32270
32277
|
function At(f) {
|
|
32271
|
-
let h = De(f), k = Ke.filter((Ee) => h.some((
|
|
32278
|
+
let h = De(f), k = Ke.filter((Ee) => h.some((sn) => Object.prototype.hasOwnProperty.call(sn, Ee)));
|
|
32272
32279
|
if (k.length > 1) throw new Error("Mixed descriptor in srcset is not supported");
|
|
32273
32280
|
let [C] = k, $ = Et[C], I = h.map((Ee) => Ee.source.value), ee = Math.max(...I.map((Ee) => Ee.length)), we = h.map((Ee) => Ee[C] ? String(Ee[C].value) : ""), ae = we.map((Ee) => {
|
|
32274
|
-
let
|
|
32275
|
-
return
|
|
32281
|
+
let sn = Ee.indexOf(".");
|
|
32282
|
+
return sn === -1 ? Ee.length : sn;
|
|
32276
32283
|
}), Ve = Math.max(...ae);
|
|
32277
|
-
return zi(Ln([",", Yt], I.map((Ee,
|
|
32278
|
-
let jt = [Ee], Tt = we[
|
|
32284
|
+
return zi(Ln([",", Yt], I.map((Ee, sn) => {
|
|
32285
|
+
let jt = [Ee], Tt = we[sn];
|
|
32279
32286
|
if (Tt) {
|
|
32280
|
-
let It = ee - Ee.length + 1, Vn = Ve - ae[
|
|
32287
|
+
let It = ee - Ee.length + 1, Vn = Ve - ae[sn], lr = " ".repeat(It + Vn);
|
|
32281
32288
|
jt.push(wn(lr, " "), Tt + $);
|
|
32282
32289
|
}
|
|
32283
32290
|
return jt;
|
|
@@ -32439,7 +32446,7 @@ Expected it to be ${C}.`;
|
|
|
32439
32446
|
var C;
|
|
32440
32447
|
let { node: $ } = f;
|
|
32441
32448
|
if (!Qi($.attrs)) return $.isSelfClosing ? " " : "";
|
|
32442
|
-
let I = ((C = $.prev) == null ? void 0 : C.type) === "comment" && sc($.prev.value), ee = typeof I == "boolean" ? () => I : Array.isArray(I) ? (
|
|
32449
|
+
let I = ((C = $.prev) == null ? void 0 : C.type) === "comment" && sc($.prev.value), ee = typeof I == "boolean" ? () => I : Array.isArray(I) ? (sn) => I.includes(sn.rawName) : () => !1, we = f.map(({ node: sn }) => ee(sn) ? me(h.originalText.slice(iu(sn), ou(sn))) : k(), "attrs"), ae = $.type === "element" && $.fullName === "script" && $.attrs.length === 1 && $.attrs[0].fullName === "src" && $.children.length === 0, Ve = h.singleAttributePerLine && $.attrs.length > 1 && !ei($, h) ? dn : Yt, Ee = [ot([ae ? " " : Yt, Ln(Ve, we)])];
|
|
32443
32450
|
return $.firstChild && lc($.firstChild) || $.isSelfClosing && pl($.parent) || ae ? Ee.push($.isSelfClosing ? " " : "") : Ee.push(h.bracketSameLine ? $.isSelfClosing ? " " : "" : $.isSelfClosing ? Yt : gn), Ee;
|
|
32444
32451
|
}
|
|
32445
32452
|
function pd(f) {
|
|
@@ -32594,8 +32601,8 @@ Expected it to be ${C}.`;
|
|
|
32594
32601
|
}
|
|
32595
32602
|
return Sa(I, h, k);
|
|
32596
32603
|
}
|
|
32597
|
-
let ae = [], Ve = [], Ee = [],
|
|
32598
|
-
return jt && (Vi(we.prev) ? ae.push(dn, dn) : jt === dn ? ae.push(dn) : gr(we.prev) ? Ve.push(jt) : Ve.push(wn("", gn, { groupId: $[ee - 1] }))), Tt && (Vi(we) ? gr(we.next) &&
|
|
32604
|
+
let ae = [], Ve = [], Ee = [], sn = [], jt = we.prev ? Cs(we.prev, we) : "", Tt = we.next ? Cs(we, we.next) : "";
|
|
32605
|
+
return jt && (Vi(we.prev) ? ae.push(dn, dn) : jt === dn ? ae.push(dn) : gr(we.prev) ? Ve.push(jt) : Ve.push(wn("", gn, { groupId: $[ee - 1] }))), Tt && (Vi(we) ? gr(we.next) && sn.push(dn, dn) : Tt === dn ? gr(we.next) && sn.push(dn) : Ee.push(Tt)), [...ae, Qe([...Ve, Qe([Sa(I, h, k), ...Ee], { id: $[ee] })]), ...sn];
|
|
32599
32606
|
}, "children");
|
|
32600
32607
|
}
|
|
32601
32608
|
function vd(f, h, k) {
|
|
@@ -33827,7 +33834,7 @@ If '${f}' is a directive input, make sure the directive is imported by the curre
|
|
|
33827
33834
|
let I = (Tt) => (It, ...Vn) => Tt(It.toLowerCase(), ...Vn), ee = C ? this.getTagDefinition : I(this.getTagDefinition), we = (Tt) => ee(Tt).getContentType(), ae = C ? $ : I($), Ve = ri(f, h, $ ? (Tt, It, Vn, lr) => {
|
|
33828
33835
|
let yr = ae(Tt, It, Vn, lr);
|
|
33829
33836
|
return yr !== void 0 ? yr : we(Tt);
|
|
33830
|
-
} : we, k), Ee = k && k.canSelfClose || !1,
|
|
33837
|
+
} : we, k), Ee = k && k.canSelfClose || !1, sn = k && k.allowHtmComponentClosingTags || !1, jt = new xr(Ve.tokens, ee, Ee, sn, C);
|
|
33831
33838
|
return jt.build(), new Sh(jt.rootNodes, Ve.errors.concat(jt.errors));
|
|
33832
33839
|
}
|
|
33833
33840
|
}, xr = class pA {
|
|
@@ -33930,8 +33937,8 @@ If '${f}' is a directive input, make sure the directive is imported by the curre
|
|
|
33930
33937
|
let Tt = this.getTagDefinition(I);
|
|
33931
33938
|
this.canSelfClose || Tt.canSelfClose || ni(I) !== null || Tt.isVoid || this.errors.push(Ur.create(I, h.sourceSpan, `Only void, custom and foreign elements can be self closed "${h.parts[1]}"`));
|
|
33932
33939
|
} else this._peek.type === 1 && (this._advance(), ee = !1);
|
|
33933
|
-
let we = this._peek.sourceSpan.fullStart, ae = new en(h.sourceSpan.start, we, h.sourceSpan.fullStart), Ve = new en(h.sourceSpan.start, we, h.sourceSpan.fullStart), Ee = new en(h.sourceSpan.start.moveBy(1), h.sourceSpan.end),
|
|
33934
|
-
this._pushContainer(
|
|
33940
|
+
let we = this._peek.sourceSpan.fullStart, ae = new en(h.sourceSpan.start, we, h.sourceSpan.fullStart), Ve = new en(h.sourceSpan.start, we, h.sourceSpan.fullStart), Ee = new en(h.sourceSpan.start.moveBy(1), h.sourceSpan.end), sn = new Jo(I, $, [], ae, Ve, void 0, Ee), jt = this._getContainer();
|
|
33941
|
+
this._pushContainer(sn, jt instanceof Jo && this.getTagDefinition(jt.name).isClosedByChild(sn.name)), ee ? this._popContainer(I, Jo, ae) : h.type === 4 && (this._popContainer(I, Jo, null), this.errors.push(Ur.create(I, ae, `Opening tag "${I}" not terminated.`)));
|
|
33935
33942
|
}
|
|
33936
33943
|
_pushContainer(h, k) {
|
|
33937
33944
|
k && this._containerStack.pop(), this._addToParent(h), this._containerStack.push(h);
|
|
@@ -34192,20 +34199,20 @@ ${h}`, k), I = C;
|
|
|
34192
34199
|
(f.type === "plural" || f.type === "select") && (f.clause = f.type, f.type = "angularIcuExpression"), f.type === "expansionCase" && (f.type = "angularIcuCase");
|
|
34193
34200
|
}
|
|
34194
34201
|
function Su(f, h, k) {
|
|
34195
|
-
let { name: C, canSelfClose: $ = !0, normalizeTagName: I = !1, normalizeAttributeName: ee = !1, allowHtmComponentClosingTags: we = !1, isTagNameCaseSensitive: ae = !1, shouldParseAsRawText: Ve } = h, { rootNodes: Ee, errors:
|
|
34202
|
+
let { name: C, canSelfClose: $ = !0, normalizeTagName: I = !1, normalizeAttributeName: ee = !1, allowHtmComponentClosingTags: we = !1, isTagNameCaseSensitive: ae = !1, shouldParseAsRawText: Ve } = h, { rootNodes: Ee, errors: sn } = Fd(f, { canSelfClose: $, allowHtmComponentClosingTags: we, isTagNameCaseSensitive: ae, getTagContentType: Ve ? (...dt) => Ve(...dt) ? Ci.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: C === "angular" ? !0 : void 0, tokenizeAngularLetDeclaration: C === "angular" ? !0 : void 0 });
|
|
34196
34203
|
if (C === "vue") {
|
|
34197
34204
|
if (Ee.some((pr) => pr.type === "docType" && pr.value === "html" || pr.type === "element" && pr.name.toLowerCase() === "html")) return Su(f, Sc, k);
|
|
34198
34205
|
let dt, nn = () => dt ?? (dt = Fd(f, { canSelfClose: $, allowHtmComponentClosingTags: we, isTagNameCaseSensitive: ae })), br = (pr) => nn().rootNodes.find(({ startSourceSpan: Hr }) => Hr && Hr.start.offset === pr.startSourceSpan.start.offset) ?? pr;
|
|
34199
34206
|
for (let [pr, Hr] of Ee.entries()) {
|
|
34200
34207
|
let { endSourceSpan: ns, startSourceSpan: Nd } = Hr;
|
|
34201
|
-
if (ns === null)
|
|
34208
|
+
if (ns === null) sn = nn().errors, Ee[pr] = br(Hr);
|
|
34202
34209
|
else if (xl(Hr, k)) {
|
|
34203
34210
|
let xc = nn().errors.find((Ls) => Ls.span.start.offset > Nd.start.offset && Ls.span.start.offset < ns.end.offset);
|
|
34204
34211
|
xc && $d(xc), Ee[pr] = br(Hr);
|
|
34205
34212
|
}
|
|
34206
34213
|
}
|
|
34207
34214
|
}
|
|
34208
|
-
|
|
34215
|
+
sn.length > 0 && $d(sn[0]);
|
|
34209
34216
|
let jt = (dt) => {
|
|
34210
34217
|
let nn = dt.name.startsWith(":") ? dt.name.slice(1).split(":")[0] : null, br = dt.nameSpan.toString(), pr = nn !== null && br.startsWith(`${nn}:`), Hr = pr ? br.slice(nn.length + 1) : br;
|
|
34211
34218
|
dt.name = Hr, dt.namespace = nn, dt.hasExplicitNamespace = pr;
|
|
@@ -34262,7 +34269,7 @@ ${h}`, k), I = C;
|
|
|
34262
34269
|
let jt = new kd(ee, 0, 0, 0), Tt = jt.moveBy($.raw.length);
|
|
34263
34270
|
$.sourceSpan = new en(jt, Tt), Ve.children.unshift($);
|
|
34264
34271
|
}
|
|
34265
|
-
let Ee = new ai(Ve),
|
|
34272
|
+
let Ee = new ai(Ve), sn = (jt, Tt) => {
|
|
34266
34273
|
let { offset: It } = Tt, Vn = V(!1, f.slice(0, It), /[^\n\r]/gu, " "), lr = Os(Vn + jt, h, k, !1);
|
|
34267
34274
|
lr.sourceSpan = new en(Tt, sr(!1, lr.children, -1).sourceSpan.end);
|
|
34268
34275
|
let yr = lr.children[0];
|
|
@@ -34270,7 +34277,7 @@ ${h}`, k), I = C;
|
|
|
34270
34277
|
};
|
|
34271
34278
|
return Ee.walk((jt) => {
|
|
34272
34279
|
if (jt.type === "comment") {
|
|
34273
|
-
let Tt = ts(jt,
|
|
34280
|
+
let Tt = ts(jt, sn);
|
|
34274
34281
|
Tt && jt.parent.replaceChild(jt, Tt);
|
|
34275
34282
|
}
|
|
34276
34283
|
kc(jt), _o(jt), wc(jt);
|