@oslokommune/punkt-elements 12.34.0 → 12.34.1
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/dist/accordion.d.ts +2 -2
- package/dist/{alert-CrBZnND3.cjs → alert-95eHgC1T.cjs} +4 -2
- package/dist/{alert-DjT5NY6b.js → alert-C6OiBFis.js} +16 -14
- package/dist/alert.d.ts +2 -2
- package/dist/backlink.d.ts +2 -2
- package/dist/button.d.ts +2 -2
- package/dist/calendar.d.ts +2 -2
- package/dist/card.d.ts +2 -2
- package/dist/checkbox.d.ts +2 -2
- package/dist/combobox.d.ts +2 -2
- package/dist/datepicker.d.ts +2 -2
- package/dist/helptext.d.ts +2 -2
- package/dist/icon.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/input-wrapper.d.ts +2 -2
- package/dist/link.d.ts +2 -2
- package/dist/linkcard.d.ts +2 -2
- package/dist/listbox.d.ts +2 -2
- package/dist/loader.d.ts +2 -2
- package/dist/messagebox.d.ts +2 -2
- package/dist/modal.d.ts +2 -2
- package/dist/pkt-alert.cjs +1 -1
- package/dist/pkt-alert.js +1 -1
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +1 -1
- package/dist/progressbar.d.ts +2 -2
- package/dist/radiobutton.d.ts +2 -2
- package/dist/select.d.ts +2 -2
- package/dist/tag.d.ts +2 -2
- package/dist/textarea.d.ts +2 -2
- package/dist/textinput.d.ts +2 -2
- package/package.json +3 -3
- package/src/components/alert/alert.ts +2 -0
package/dist/accordion.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
"use strict";const u=require("./class-map-BjTUtIEl.cjs"),e=require("./element-BYpg5e6C.cjs"),d=require("./state-y7tCw3bg.cjs"),h=require("./pkt-slot-controller-plQxXRvV.cjs"),c=require("./ref-BbKbXwub.cjs"),k=require("./classutils-BwNK82ZQ.cjs");require("./icon-Cc4gVHxd.cjs");const f={skin:{default:"info"},ariaLive:{default:"polite"},compact:{default:!1},closeAlert:{default:!1}},a={props:f};var v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,
|
|
1
|
+
"use strict";const u=require("./class-map-BjTUtIEl.cjs"),e=require("./element-BYpg5e6C.cjs"),d=require("./state-y7tCw3bg.cjs"),h=require("./pkt-slot-controller-plQxXRvV.cjs"),c=require("./ref-BbKbXwub.cjs"),k=require("./classutils-BwNK82ZQ.cjs");require("./icon-Cc4gVHxd.cjs");const f={skin:{default:"info"},ariaLive:{default:"polite"},compact:{default:!1},closeAlert:{default:!1}},a={props:f};var v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,i=(o,t,r,s)=>{for(var l=s>1?void 0:s?b(t,r):t,n=o.length-1,p;n>=0;n--)(p=o[n])&&(l=(s?p(t,r,l):p(l))||l);return s&&l&&v(t,r,l),l};exports.PktAlert=class extends e.PktElement{constructor(){super(),this.defaultSlot=c.e(),this.compact=a.props.compact.default,this.title="",this.skin=a.props.skin.default,this.ariaLive=a.props.ariaLive.default,this["aria-live"]=null,this.closeAlert=a.props.closeAlert.default,this.date=null,this._isClosed=!1,this.close=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:t},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:t},bubbles:!0,composed:!0}))},this.slotController=new h.PktSlotController(this,this.defaultSlot),this._isClosed=!1}connectedCallback(){super.connectedCallback(),this["aria-live"]=this.getAttribute("aria-live")||this.ariaLive}attributeChangedCallback(t,r,s){t==="ariaLive"&&(this["aria-live"]=s),super.attributeChangedCallback(t,r,s)}updated(t){super.updated(t),t.has("ariaLive")&&(this["aria-live"]=this.ariaLive),t.has("_isClosed")&&k.updateClassAttribute(this,"pkt-hide",this._isClosed)}render(){const t={"pkt-alert":!0,"pkt-alert--compact":this.compact,[`pkt-alert--${this.skin}`]:this.skin,"pkt-hide":this._isClosed};return e.x`
|
|
2
2
|
<div class=${u.e(t)}>
|
|
3
3
|
<pkt-icon
|
|
4
4
|
class="pkt-alert__icon"
|
|
5
|
+
aria-hidden="true"
|
|
5
6
|
name=${this.skin==="info"?"alert-information":`alert-${this.skin}`}
|
|
6
7
|
></pkt-icon>
|
|
7
8
|
|
|
@@ -23,5 +24,6 @@
|
|
|
23
24
|
<div class="pkt-alert__text" ${c.n(this.defaultSlot)}></div>
|
|
24
25
|
|
|
25
26
|
${this.date?e.x`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>`:e.E}
|
|
27
|
+
|
|
26
28
|
</div>
|
|
27
|
-
`}};
|
|
29
|
+
`}};i([e.n({type:Boolean,reflect:!1})],exports.PktAlert.prototype,"compact",2);i([e.n({type:String,reflect:!0})],exports.PktAlert.prototype,"title",2);i([e.n({type:String,reflect:!0})],exports.PktAlert.prototype,"skin",2);i([e.n({type:String})],exports.PktAlert.prototype,"ariaLive",2);i([e.n({type:String,reflect:!0})],exports.PktAlert.prototype,"aria-live",2);i([e.n({type:Boolean,reflect:!0})],exports.PktAlert.prototype,"closeAlert",2);i([e.n({type:String,reflect:!0})],exports.PktAlert.prototype,"date",2);i([d.r()],exports.PktAlert.prototype,"_isClosed",2);exports.PktAlert=i([e.t("pkt-alert")],exports.PktAlert);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { e as h } from "./class-map-D4QK1bDP.js";
|
|
2
|
-
import { P as f, E as u, x as p, n as
|
|
2
|
+
import { P as f, E as u, x as p, n as a, a as v } from "./element-J964Wi0N.js";
|
|
3
3
|
import { r as k } from "./state-fdb9lRrL.js";
|
|
4
4
|
import { P as m } from "./pkt-slot-controller-DFrc5O93.js";
|
|
5
5
|
import { e as b, n as _ } from "./ref-3rhflVgg.js";
|
|
@@ -21,10 +21,10 @@ const y = {
|
|
|
21
21
|
}, n = {
|
|
22
22
|
props: y
|
|
23
23
|
};
|
|
24
|
-
var $ = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (t,
|
|
25
|
-
for (var s = o > 1 ? void 0 : o ? S(
|
|
26
|
-
(d = t[c]) && (s = (o ? d(
|
|
27
|
-
return o && s && $(
|
|
24
|
+
var $ = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (t, l, r, o) => {
|
|
25
|
+
for (var s = o > 1 ? void 0 : o ? S(l, r) : l, c = t.length - 1, d; c >= 0; c--)
|
|
26
|
+
(d = t[c]) && (s = (o ? d(l, r, s) : d(s)) || s);
|
|
27
|
+
return o && s && $(l, r, s), s;
|
|
28
28
|
};
|
|
29
29
|
let e = class extends f {
|
|
30
30
|
constructor() {
|
|
@@ -40,8 +40,8 @@ let e = class extends f {
|
|
|
40
40
|
connectedCallback() {
|
|
41
41
|
super.connectedCallback(), this["aria-live"] = this.getAttribute("aria-live") || this.ariaLive;
|
|
42
42
|
}
|
|
43
|
-
attributeChangedCallback(t,
|
|
44
|
-
t === "ariaLive" && (this["aria-live"] = r), super.attributeChangedCallback(t,
|
|
43
|
+
attributeChangedCallback(t, l, r) {
|
|
44
|
+
t === "ariaLive" && (this["aria-live"] = r), super.attributeChangedCallback(t, l, r);
|
|
45
45
|
}
|
|
46
46
|
updated(t) {
|
|
47
47
|
super.updated(t), t.has("ariaLive") && (this["aria-live"] = this.ariaLive), t.has("_isClosed") && C(this, "pkt-hide", this._isClosed);
|
|
@@ -58,6 +58,7 @@ let e = class extends f {
|
|
|
58
58
|
<div class=${h(t)}>
|
|
59
59
|
<pkt-icon
|
|
60
60
|
class="pkt-alert__icon"
|
|
61
|
+
aria-hidden="true"
|
|
61
62
|
name=${this.skin === "info" ? "alert-information" : `alert-${this.skin}`}
|
|
62
63
|
></pkt-icon>
|
|
63
64
|
|
|
@@ -79,30 +80,31 @@ let e = class extends f {
|
|
|
79
80
|
<div class="pkt-alert__text" ${_(this.defaultSlot)}></div>
|
|
80
81
|
|
|
81
82
|
${this.date ? p`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>` : u}
|
|
83
|
+
|
|
82
84
|
</div>
|
|
83
85
|
`;
|
|
84
86
|
}
|
|
85
87
|
};
|
|
86
88
|
i([
|
|
87
|
-
|
|
89
|
+
a({ type: Boolean, reflect: !1 })
|
|
88
90
|
], e.prototype, "compact", 2);
|
|
89
91
|
i([
|
|
90
|
-
|
|
92
|
+
a({ type: String, reflect: !0 })
|
|
91
93
|
], e.prototype, "title", 2);
|
|
92
94
|
i([
|
|
93
|
-
|
|
95
|
+
a({ type: String, reflect: !0 })
|
|
94
96
|
], e.prototype, "skin", 2);
|
|
95
97
|
i([
|
|
96
|
-
|
|
98
|
+
a({ type: String })
|
|
97
99
|
], e.prototype, "ariaLive", 2);
|
|
98
100
|
i([
|
|
99
|
-
|
|
101
|
+
a({ type: String, reflect: !0 })
|
|
100
102
|
], e.prototype, "aria-live", 2);
|
|
101
103
|
i([
|
|
102
|
-
|
|
104
|
+
a({ type: Boolean, reflect: !0 })
|
|
103
105
|
], e.prototype, "closeAlert", 2);
|
|
104
106
|
i([
|
|
105
|
-
|
|
107
|
+
a({ type: String, reflect: !0 })
|
|
106
108
|
], e.prototype, "date", 2);
|
|
107
109
|
i([
|
|
108
110
|
k()
|
package/dist/alert.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/backlink.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/button.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/calendar.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/card.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/checkbox.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/combobox.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/datepicker.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/helptext.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/icon.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1132,14 +1132,14 @@ declare global {
|
|
|
1132
1132
|
|
|
1133
1133
|
declare global {
|
|
1134
1134
|
interface HTMLElementTagNameMap {
|
|
1135
|
-
'pkt-
|
|
1135
|
+
'pkt-icon': PktIcon;
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
1138
|
|
|
1139
1139
|
|
|
1140
1140
|
declare global {
|
|
1141
1141
|
interface HTMLElementTagNameMap {
|
|
1142
|
-
'pkt-
|
|
1142
|
+
'pkt-listbox': PktListbox;
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
1145
|
|
package/dist/input-wrapper.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/link.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/linkcard.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/listbox.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/loader.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/messagebox.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/modal.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/pkt-alert.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./alert-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./alert-95eHgC1T.cjs"),t=e.PktAlert;Object.defineProperty(exports,"PktAlert",{enumerable:!0,get:()=>e.PktAlert});exports.default=t;
|
package/dist/pkt-alert.js
CHANGED
package/dist/pkt-index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./alert-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./alert-95eHgC1T.cjs"),l=require("./accordionitem-DDnUkCJP.cjs"),P=require("./backlink-1p-ADrG8.cjs"),b=require("./button-5tOMyPEx.cjs"),p=require("./calendar-BU7DqDLG.cjs"),m=require("./card-a_Cs18EQ.cjs"),g=require("./combobox-DqHwVglB.cjs"),h=require("./checkbox-bsBqWqcn.cjs"),t=require("./element-BYpg5e6C.cjs"),f=require("./pkt-slot-controller-plQxXRvV.cjs"),s=require("./ref-BbKbXwub.cjs"),y=require("./class-map-BjTUtIEl.cjs"),x=require("./datepicker-DW6AdQ9X.cjs"),O=require("./helptext-OW48aGy8.cjs"),j=require("./icon-Cc4gVHxd.cjs"),q=require("./input-wrapper-DmVnotQ2.cjs"),C=require("./link-3uccc2MM.cjs"),v=require("./linkcard-P1I3dzQb.cjs"),S=require("./loader-CM7wLajY.cjs"),$=require("./messagebox-CD8fS0Ym.cjs"),L=require("./modal-DOCsiHGv.cjs"),_=require("./progressbar-BmI-K95y.cjs"),k=require("./radiobutton-CJYNTtFF.cjs"),A=require("./tag-Dg2-c_OZ.cjs"),B=require("./textarea-go_AyeP-.cjs"),T=require("./textinput-FvLq5W70.cjs"),I=require("./select-Swc0c6lZ.cjs");var M=Object.defineProperty,R=Object.getOwnPropertyDescriptor,o=(a,e,r,i)=>{for(var n=i>1?void 0:i?R(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&&M(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 f.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="${y.e(e)}">
|
|
3
3
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
4
4
|
|
package/dist/pkt-index.js
CHANGED
package/dist/progressbar.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/radiobutton.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/select.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/tag.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/textarea.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/textinput.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ declare global {
|
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'pkt-
|
|
13
|
+
'pkt-icon': PktIcon;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'pkt-
|
|
20
|
+
'pkt-listbox': PktListbox;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-elements",
|
|
3
|
-
"version": "12.34.
|
|
3
|
+
"version": "12.34.1",
|
|
4
4
|
"description": "Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@oslokommune/punkt-assets": "^12.30.1",
|
|
33
|
-
"@oslokommune/punkt-css": "^12.34.
|
|
33
|
+
"@oslokommune/punkt-css": "^12.34.1",
|
|
34
34
|
"sass": "^1.78.0",
|
|
35
35
|
"typescript": "^5.6.2",
|
|
36
36
|
"vite": "^5.4.18",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
58
58
|
},
|
|
59
59
|
"license": "MIT",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "62e323745bcb2f3d3a27ff2f05090680fbeaeef7"
|
|
61
61
|
}
|
|
@@ -82,6 +82,7 @@ export class PktAlert extends PktElement implements IPktAlert {
|
|
|
82
82
|
<div class=${classMap(classes)}>
|
|
83
83
|
<pkt-icon
|
|
84
84
|
class="pkt-alert__icon"
|
|
85
|
+
aria-hidden="true"
|
|
85
86
|
name=${this.skin === 'info' ? 'alert-information' : `alert-${this.skin}`}
|
|
86
87
|
></pkt-icon>
|
|
87
88
|
|
|
@@ -107,6 +108,7 @@ export class PktAlert extends PktElement implements IPktAlert {
|
|
|
107
108
|
${this.date
|
|
108
109
|
? html`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>`
|
|
109
110
|
: nothing}
|
|
111
|
+
|
|
110
112
|
</div>
|
|
111
113
|
`
|
|
112
114
|
}
|