@oslokommune/punkt-elements 12.17.2 → 12.18.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/alert-BbVWu2lm.cjs +27 -0
- package/dist/alert-Dh6A96vo.js +159 -0
- package/dist/{index-D2jSRMrn.js → calendar-BUqcNvfI.js} +41 -29
- package/dist/calendar-QSulz7im.cjs +108 -0
- package/dist/card-B0GPdG5M.cjs +23 -0
- package/dist/card-kWt0BA2a.js +170 -0
- package/dist/{class-map-a5HUzP83.cjs → class-map-Boa7BqCc.cjs} +2 -2
- package/dist/{class-map-CBvUV2N3.js → class-map-hz16xq5a.js} +9 -10
- package/dist/datepicker-BHepKxof.cjs +154 -0
- package/dist/datepicker-iNCYioZ9.js +659 -0
- package/dist/helptext--4FLdAWi.js +194 -0
- package/dist/helptext-iZEgxz2U.cjs +23 -0
- package/dist/icon-CdMQ6zBT.cjs +250 -0
- package/dist/{index-CFDwiDTU.js → icon-wUXeHiBk.js} +7371 -7559
- package/dist/if-defined-DEDlGbAc.cjs +5 -0
- package/dist/if-defined-ZFE4ti2t.js +10 -0
- package/dist/index.d.ts +96 -51
- package/dist/input-element-D1Vls6A5.js +184 -0
- package/dist/input-element-DPKoFVwJ.cjs +1 -0
- package/dist/{input-wrapper-6vTrKtsW.js → input-wrapper-BTQk3W8T.js} +10 -10
- package/dist/input-wrapper-D-PNRJB_.cjs +46 -0
- package/dist/link-BpqavGSD.cjs +8 -0
- package/dist/link-Bx9nVgZi.js +108 -0
- package/dist/{linkcard-BlWQ8jOv.js → linkcard-CUrbzjLK.js} +16 -17
- package/dist/linkcard-DSu3A4Yx.cjs +13 -0
- package/dist/messagebox-C1aWoQbu.cjs +12 -0
- package/dist/messagebox-LpiVQIoM.js +107 -0
- package/dist/{modal-DYTVJjYh.cjs → modal-Avai5eVz.cjs} +2 -2
- package/dist/{modal-3OZTPqee.js → modal-Co1YFmHi.js} +8 -8
- package/dist/pkt-alert.cjs +1 -27
- package/dist/pkt-alert.js +4 -157
- package/dist/pkt-calendar.cjs +1 -1
- package/dist/pkt-calendar.js +4 -7
- package/dist/pkt-card.cjs +1 -23
- package/dist/pkt-card.js +4 -168
- package/dist/pkt-datepicker.cjs +1 -154
- package/dist/pkt-datepicker.js +4 -657
- package/dist/pkt-helptext.cjs +1 -1
- package/dist/pkt-helptext.js +1 -1
- package/dist/pkt-icon.cjs +1 -1
- package/dist/pkt-icon.js +4 -4
- package/dist/pkt-index.cjs +29 -1
- package/dist/pkt-index.js +127 -30
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +1 -1
- package/dist/pkt-link.cjs +1 -8
- package/dist/pkt-link.js +4 -107
- package/dist/pkt-linkcard.cjs +1 -1
- package/dist/pkt-linkcard.js +1 -1
- package/dist/pkt-messagebox.cjs +1 -12
- package/dist/pkt-messagebox.js +4 -105
- package/dist/pkt-modal.cjs +1 -1
- package/dist/pkt-modal.js +1 -1
- package/dist/pkt-progressbar.cjs +1 -0
- package/dist/pkt-progressbar.js +6 -0
- package/dist/pkt-slot-controller-Ckk_yV0j.cjs +1 -0
- package/dist/pkt-slot-controller-RJvOnbF4.js +61 -0
- package/dist/pkt-tag.cjs +1 -17
- package/dist/pkt-tag.js +4 -148
- 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/progressbar-BS_oawSB.js +150 -0
- package/dist/progressbar-CuXkbAhJ.cjs +32 -0
- package/dist/ref-DCOsLZQg.cjs +13 -0
- package/dist/ref-DuFGTLVX.js +142 -0
- package/dist/state-BfyXV7EL.js +12 -0
- package/dist/state-SKYD8kRO.cjs +5 -0
- package/dist/stringutils-CkVRq4jP.cjs +1 -0
- package/dist/stringutils-DJjRa8dG.js +7 -0
- package/dist/tag-CGy2mSLE.cjs +17 -0
- package/dist/tag-DGFgUF3l.js +150 -0
- package/dist/{textarea-BTpJjEhO.js → textarea-BAGWR1Hi.js} +29 -29
- package/dist/textarea-BiUrhAlk.cjs +48 -0
- package/dist/{textinput-BIhQEr8z.cjs → textinput-CHOR5PPp.cjs} +2 -2
- package/dist/{textinput-CVo5wG14.js → textinput-pJ3N8m6g.js} +23 -23
- package/package.json +2 -2
- package/src/components/alert/alert.ts +115 -0
- package/src/components/alert/index.ts +4 -113
- package/src/components/calendar/calendar.ts +711 -0
- package/src/components/calendar/index.ts +3 -711
- package/src/components/card/card.ts +78 -0
- package/src/components/card/index.ts +4 -77
- package/src/components/datepicker/datepicker.ts +619 -0
- package/src/components/datepicker/index.ts +3 -618
- package/src/components/helptext/helptext.ts +2 -2
- package/src/components/icon/icon.ts +99 -0
- package/src/components/icon/index.ts +3 -98
- package/src/components/index.ts +29 -15
- package/src/components/input-wrapper/input-wrapper.ts +2 -2
- package/src/components/link/index.ts +3 -56
- package/src/components/link/link.ts +57 -0
- package/src/components/linkcard/index.ts +1 -1
- package/src/components/linkcard/linkcard.ts +5 -6
- package/src/components/messagebox/index.ts +4 -69
- package/src/components/messagebox/messagebox.ts +69 -0
- package/src/components/modal/index.ts +0 -1
- package/src/components/modal/modal.ts +5 -7
- package/src/components/progressbar/index.ts +12 -0
- package/src/components/progressbar/progressbar.ts +144 -0
- package/src/components/tag/index.ts +4 -109
- package/src/components/tag/tag.ts +118 -0
- package/src/components/textarea/textarea.ts +5 -4
- package/src/components/textinput/textinput.ts +3 -3
- package/dist/converters-DNCwIFwr.js +0 -17
- package/dist/converters-DhM11VlY.cjs +0 -1
- package/dist/custom-element-B-TlBwRu.cjs +0 -9
- package/dist/custom-element-CWfU4dcr.js +0 -38
- package/dist/element.d.ts +0 -8
- package/dist/helptext-DBolvFI4.js +0 -72
- package/dist/helptext-_fMLOOCL.cjs +0 -23
- package/dist/index-CR7t1zY9.cjs +0 -238
- package/dist/index-CmTjXoAb.cjs +0 -9
- package/dist/index-RwtTBIhT.js +0 -88
- package/dist/index-tvpcg-ad.cjs +0 -108
- package/dist/input-wrapper-DX41tnbj.cjs +0 -46
- package/dist/linkcard-Det6CJ5D.cjs +0 -13
- package/dist/pkt-component-template.cjs +0 -29
- package/dist/pkt-component-template.js +0 -99
- package/dist/pkt-element.cjs +0 -1
- package/dist/pkt-element.js +0 -5
- package/dist/ref-C2yPtMJA.cjs +0 -13
- package/dist/ref-CaiKp3S2.js +0 -202
- package/dist/textarea-B45ZZYpx.cjs +0 -48
- package/src/components/component-template/index.ts +0 -129
- package/src/components/element/index.ts +0 -353
- /package/dist/{component-template.d.ts → progressbar.d.ts} +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { P as f, x as k, E as h, n as i, t as m } from "./icon-wUXeHiBk.js";
|
|
2
|
+
import { P as d } from "./pkt-slot-controller-RJvOnbF4.js";
|
|
3
|
+
import { e as u, n as P } from "./ref-DuFGTLVX.js";
|
|
4
|
+
import { e as y } from "./class-map-hz16xq5a.js";
|
|
5
|
+
const g = "pkt-link", v = !0, _ = {
|
|
6
|
+
href: {
|
|
7
|
+
name: "URL",
|
|
8
|
+
description: "URL til lenken",
|
|
9
|
+
type: "string",
|
|
10
|
+
default: "#"
|
|
11
|
+
},
|
|
12
|
+
target: {
|
|
13
|
+
name: "Mål",
|
|
14
|
+
description: "Mål for lenken",
|
|
15
|
+
type: [
|
|
16
|
+
"_blank",
|
|
17
|
+
"_self",
|
|
18
|
+
"_parent",
|
|
19
|
+
"_top"
|
|
20
|
+
],
|
|
21
|
+
default: "_self"
|
|
22
|
+
},
|
|
23
|
+
iconName: {
|
|
24
|
+
name: "Ikon",
|
|
25
|
+
description: "Ikon som skal vises ved siden av lenketeksten",
|
|
26
|
+
type: "icon"
|
|
27
|
+
},
|
|
28
|
+
iconPosition: {
|
|
29
|
+
name: "Ikonposisjon",
|
|
30
|
+
description: "Posisjonen til ikonet i forhold til lenketeksten",
|
|
31
|
+
type: [
|
|
32
|
+
"left",
|
|
33
|
+
"right"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
external: {
|
|
37
|
+
name: "Ekstern lenke",
|
|
38
|
+
description: "Vis ikon for ekstern lenke",
|
|
39
|
+
type: "boolean",
|
|
40
|
+
default: !1
|
|
41
|
+
}
|
|
42
|
+
}, x = {
|
|
43
|
+
default: {
|
|
44
|
+
description: "Innholdet i lenken"
|
|
45
|
+
}
|
|
46
|
+
}, c = {
|
|
47
|
+
name: g,
|
|
48
|
+
"css-class": "pkt-link",
|
|
49
|
+
"dark-mode": !0,
|
|
50
|
+
isElement: v,
|
|
51
|
+
props: _,
|
|
52
|
+
slots: x
|
|
53
|
+
};
|
|
54
|
+
var $ = Object.defineProperty, N = Object.getOwnPropertyDescriptor, n = (o, s, l, r) => {
|
|
55
|
+
for (var e = r > 1 ? void 0 : r ? N(s, l) : s, a = o.length - 1, p; a >= 0; a--)
|
|
56
|
+
(p = o[a]) && (e = (r ? p(s, l, e) : p(e)) || e);
|
|
57
|
+
return r && e && $(s, l, e), e;
|
|
58
|
+
};
|
|
59
|
+
let t = class extends f {
|
|
60
|
+
constructor() {
|
|
61
|
+
super(), this.defaultSlot = u(), this.href = c.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = c.props.external.default, this.target = c.props.target.default, this.slotController = new d(this, this.defaultSlot);
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
const o = {
|
|
65
|
+
"pkt-link": !0,
|
|
66
|
+
"pkt-link--icon-left": !!this.iconName && this.iconPosition === "left" || !!(this.iconName && !this.iconPosition),
|
|
67
|
+
"pkt-link--icon-right": !!this.iconName && this.iconPosition === "right",
|
|
68
|
+
"pkt-link--external": this.external
|
|
69
|
+
};
|
|
70
|
+
return k`<a
|
|
71
|
+
class=${y(o)}
|
|
72
|
+
href=${this.href}
|
|
73
|
+
@click=${this.handleClick}
|
|
74
|
+
.target=${this.target}
|
|
75
|
+
.rel=${this.external ? "noopener noreferrer" : h}
|
|
76
|
+
>${this.iconName ? k`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>` : ""} <span ${P(this.defaultSlot)}>Link</span></a
|
|
77
|
+
>`;
|
|
78
|
+
}
|
|
79
|
+
handleClick() {
|
|
80
|
+
this.dispatchEvent(
|
|
81
|
+
new CustomEvent("click", {
|
|
82
|
+
detail: "pkt-link-clicked",
|
|
83
|
+
bubbles: !0
|
|
84
|
+
})
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
n([
|
|
89
|
+
i({ type: String, reflect: !0 })
|
|
90
|
+
], t.prototype, "href", 2);
|
|
91
|
+
n([
|
|
92
|
+
i({ type: String, reflect: !0 })
|
|
93
|
+
], t.prototype, "iconName", 2);
|
|
94
|
+
n([
|
|
95
|
+
i({ type: String, reflect: !0 })
|
|
96
|
+
], t.prototype, "iconPosition", 2);
|
|
97
|
+
n([
|
|
98
|
+
i({ type: Boolean, reflect: !0 })
|
|
99
|
+
], t.prototype, "external", 2);
|
|
100
|
+
n([
|
|
101
|
+
i({ type: String, reflect: !0 })
|
|
102
|
+
], t.prototype, "target", 2);
|
|
103
|
+
t = n([
|
|
104
|
+
m("pkt-link")
|
|
105
|
+
], t);
|
|
106
|
+
export {
|
|
107
|
+
t as P
|
|
108
|
+
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { P as f, x as c, n } from "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return o && e && _(i, s, e), e;
|
|
1
|
+
import { P as f, x as c, n as i, t as h } from "./icon-wUXeHiBk.js";
|
|
2
|
+
import { e as k, n as u } from "./ref-DuFGTLVX.js";
|
|
3
|
+
import { P as _ } from "./pkt-slot-controller-RJvOnbF4.js";
|
|
4
|
+
var d = Object.defineProperty, m = Object.getOwnPropertyDescriptor, r = (l, n, s, o) => {
|
|
5
|
+
for (var e = o > 1 ? void 0 : o ? m(n, s) : n, a = l.length - 1, p; a >= 0; a--)
|
|
6
|
+
(p = l[a]) && (e = (o ? p(n, s, e) : p(e)) || e);
|
|
7
|
+
return o && e && d(n, s, e), e;
|
|
9
8
|
};
|
|
10
9
|
let t = class extends f {
|
|
11
10
|
constructor() {
|
|
12
|
-
super(), this.defaultSlot = k(), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal", this.slotController = new
|
|
11
|
+
super(), this.defaultSlot = k(), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal", this.slotController = new _(this, this.defaultSlot);
|
|
13
12
|
}
|
|
14
13
|
render() {
|
|
15
|
-
const l = ["pkt-linkcard", this.skin && `pkt-linkcard--${this.skin}`].filter(Boolean).join(" "),
|
|
14
|
+
const l = ["pkt-linkcard", this.skin && `pkt-linkcard--${this.skin}`].filter(Boolean).join(" "), n = ["pkt-linkcard__title", this.external && "pkt-link pkt-link--external"].filter(Boolean).join(" ");
|
|
16
15
|
return c`
|
|
17
16
|
<a
|
|
18
17
|
href=${this.href}
|
|
@@ -21,7 +20,7 @@ let t = class extends f {
|
|
|
21
20
|
rel=${this.openInNewTab ?? "noopener noreferrer"}
|
|
22
21
|
>
|
|
23
22
|
${this.iconName && c`<pkt-icon class="pkt-link__icon" name="${this.iconName}" />`}
|
|
24
|
-
${this.title && c`<div class=${
|
|
23
|
+
${this.title && c`<div class=${n}>${this.title}</div>`}
|
|
25
24
|
|
|
26
25
|
<div class="pkt-linkcard__text" ${u(this.defaultSlot)}></div>
|
|
27
26
|
</a>
|
|
@@ -29,22 +28,22 @@ let t = class extends f {
|
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
30
|
r([
|
|
32
|
-
|
|
31
|
+
i({ type: String, reflect: !0 })
|
|
33
32
|
], t.prototype, "title", 2);
|
|
34
33
|
r([
|
|
35
|
-
|
|
34
|
+
i({ type: String, reflect: !0 })
|
|
36
35
|
], t.prototype, "href", 2);
|
|
37
36
|
r([
|
|
38
|
-
|
|
37
|
+
i({ type: String, reflect: !0 })
|
|
39
38
|
], t.prototype, "iconName", 2);
|
|
40
39
|
r([
|
|
41
|
-
|
|
40
|
+
i({ type: Boolean, reflect: !0 })
|
|
42
41
|
], t.prototype, "external", 2);
|
|
43
42
|
r([
|
|
44
|
-
|
|
43
|
+
i({ type: Boolean, reflect: !0 })
|
|
45
44
|
], t.prototype, "openInNewTab", 2);
|
|
46
45
|
r([
|
|
47
|
-
|
|
46
|
+
i({ type: String, reflect: !0 })
|
|
48
47
|
], t.prototype, "skin", 2);
|
|
49
48
|
t = r([
|
|
50
49
|
h("pkt-linkcard")
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";const t=require("./icon-CdMQ6zBT.cjs"),k=require("./ref-DCOsLZQg.cjs"),p=require("./pkt-slot-controller-Ckk_yV0j.cjs");var c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,r=(s,n,i,l)=>{for(var e=l>1?void 0:l?h(n,i):n,o=s.length-1,a;o>=0;o--)(a=s[o])&&(e=(l?a(n,i,e):a(e))||e);return l&&e&&c(n,i,e),e};exports.PktLinkCard=class extends t.PktElement{constructor(){super(),this.defaultSlot=k.e(),this.title="",this.href="#",this.iconName="",this.external=!1,this.openInNewTab=!1,this.skin="normal",this.slotController=new p.PktSlotController(this,this.defaultSlot)}render(){const n=["pkt-linkcard",this.skin&&`pkt-linkcard--${this.skin}`].filter(Boolean).join(" "),i=["pkt-linkcard__title",this.external&&"pkt-link pkt-link--external"].filter(Boolean).join(" ");return t.x`
|
|
2
|
+
<a
|
|
3
|
+
href=${this.href}
|
|
4
|
+
class=${n}
|
|
5
|
+
target=${this.openInNewTab?"_blank":"_self"}
|
|
6
|
+
rel=${this.openInNewTab??"noopener noreferrer"}
|
|
7
|
+
>
|
|
8
|
+
${this.iconName&&t.x`<pkt-icon class="pkt-link__icon" name="${this.iconName}" />`}
|
|
9
|
+
${this.title&&t.x`<div class=${i}>${this.title}</div>`}
|
|
10
|
+
|
|
11
|
+
<div class="pkt-linkcard__text" ${k.n(this.defaultSlot)}></div>
|
|
12
|
+
</a>
|
|
13
|
+
`}};r([t.n({type:String,reflect:!0})],exports.PktLinkCard.prototype,"title",2);r([t.n({type:String,reflect:!0})],exports.PktLinkCard.prototype,"href",2);r([t.n({type:String,reflect:!0})],exports.PktLinkCard.prototype,"iconName",2);r([t.n({type:Boolean,reflect:!0})],exports.PktLinkCard.prototype,"external",2);r([t.n({type:Boolean,reflect:!0})],exports.PktLinkCard.prototype,"openInNewTab",2);r([t.n({type:String,reflect:!0})],exports.PktLinkCard.prototype,"skin",2);exports.PktLinkCard=r([t.t("pkt-linkcard")],exports.PktLinkCard);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";const e=require("./icon-CdMQ6zBT.cjs"),b=require("./pkt-slot-controller-Ckk_yV0j.cjs"),p=require("./ref-DCOsLZQg.cjs"),k=require("./class-map-Boa7BqCc.cjs"),d=require("./state-SKYD8kRO.cjs"),u="pkt-messagebox",g=!0,m={onClose:{description:"React: Event som trigges når meldingsboksen lukkes"},"on-close":{description:"Vue: Event som trigges når meldingsboksen lukkes"}},h={title:{name:"Tittel",description:"Tittelen på meldingsboksen",type:"string"},skin:{name:"Utseende",description:"Velg farge på meldingsboksen",type:["beige","blue","red","green"],default:"beige"},compact:{name:"Kompakt",description:"Gjør meldingsboksen mindre",type:"boolean",default:!1},closable:{name:"Kan lukkes",description:"Viser lukkeknapp",type:"boolean",default:!1}},f={default:{description:"Innholdet i meldingsboksen"}},c={name:u,"css-class":"pkt-messagebox",isElement:g,events:m,props:h,slots:f};var x=Object.defineProperty,v=Object.getOwnPropertyDescriptor,o=(i,t,n,l)=>{for(var s=l>1?void 0:l?v(t,n):t,r=i.length-1,a;r>=0;r--)(a=i[r])&&(s=(l?a(t,n,s):a(s))||s);return l&&s&&x(t,n,s),s};exports.PktMessagebox=class extends e.PktElement{constructor(){super(),this.defaultSlot=p.e(),this.closable=c.props.closable.default,this.compact=c.props.compact.default,this.title="",this.skin=c.props.skin.default,this._isClosed=!1,this.close=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:t},bubbles:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:t},bubbles:!0}))},this.slotController=new b.PktSlotController(this,this.defaultSlot),this._isClosed=!1}render(){const t={"pkt-messagebox":!0,"pkt-messagebox--compact":this.compact,[`pkt-messagebox--${this.skin}`]:this.skin,"pkt-messagebox--closable":this.closable,"pkt-hide":this._isClosed};return e.x`<div class=${k.e(t)}>
|
|
2
|
+
${this.closable?e.x`<div class="pkt-messagebox__close">
|
|
3
|
+
<button
|
|
4
|
+
@click=${this.close}
|
|
5
|
+
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
6
|
+
>
|
|
7
|
+
<pkt-icon name="close" class="pkt-link__icon"></pkt-icon>
|
|
8
|
+
</button>
|
|
9
|
+
</div>`:e.E}
|
|
10
|
+
${this.title?e.x`<div class="pkt-messagebox__title">${this.title}</div>`:e.E}
|
|
11
|
+
<div class="pkt-messagebox__text" ${p.n(this.defaultSlot)}></div>
|
|
12
|
+
</div>`}};o([e.n({type:Boolean,reflect:!0})],exports.PktMessagebox.prototype,"closable",2);o([e.n({type:Boolean,reflect:!0})],exports.PktMessagebox.prototype,"compact",2);o([e.n({type:String,reflect:!0})],exports.PktMessagebox.prototype,"title",2);o([e.n({type:String,reflect:!0})],exports.PktMessagebox.prototype,"skin",2);o([d.r()],exports.PktMessagebox.prototype,"_isClosed",2);exports.PktMessagebox=o([e.t("pkt-messagebox")],exports.PktMessagebox);
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { P as b, x as c, E as d, n, t as k } from "./icon-wUXeHiBk.js";
|
|
2
|
+
import { P as u } from "./pkt-slot-controller-RJvOnbF4.js";
|
|
3
|
+
import { e as g, n as f } from "./ref-DuFGTLVX.js";
|
|
4
|
+
import { e as h } from "./class-map-hz16xq5a.js";
|
|
5
|
+
import { r as v } from "./state-BfyXV7EL.js";
|
|
6
|
+
const _ = "pkt-messagebox", x = !0, y = {
|
|
7
|
+
onClose: {
|
|
8
|
+
description: "React: Event som trigges når meldingsboksen lukkes"
|
|
9
|
+
},
|
|
10
|
+
"on-close": {
|
|
11
|
+
description: "Vue: Event som trigges når meldingsboksen lukkes"
|
|
12
|
+
}
|
|
13
|
+
}, C = {
|
|
14
|
+
title: {
|
|
15
|
+
name: "Tittel",
|
|
16
|
+
description: "Tittelen på meldingsboksen",
|
|
17
|
+
type: "string"
|
|
18
|
+
},
|
|
19
|
+
skin: {
|
|
20
|
+
name: "Utseende",
|
|
21
|
+
description: "Velg farge på meldingsboksen",
|
|
22
|
+
type: [
|
|
23
|
+
"beige",
|
|
24
|
+
"blue",
|
|
25
|
+
"red",
|
|
26
|
+
"green"
|
|
27
|
+
],
|
|
28
|
+
default: "beige"
|
|
29
|
+
},
|
|
30
|
+
compact: {
|
|
31
|
+
name: "Kompakt",
|
|
32
|
+
description: "Gjør meldingsboksen mindre",
|
|
33
|
+
type: "boolean",
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
36
|
+
closable: {
|
|
37
|
+
name: "Kan lukkes",
|
|
38
|
+
description: "Viser lukkeknapp",
|
|
39
|
+
type: "boolean",
|
|
40
|
+
default: !1
|
|
41
|
+
}
|
|
42
|
+
}, E = {
|
|
43
|
+
default: {
|
|
44
|
+
description: "Innholdet i meldingsboksen"
|
|
45
|
+
}
|
|
46
|
+
}, m = {
|
|
47
|
+
name: _,
|
|
48
|
+
"css-class": "pkt-messagebox",
|
|
49
|
+
isElement: x,
|
|
50
|
+
events: y,
|
|
51
|
+
props: C,
|
|
52
|
+
slots: E
|
|
53
|
+
};
|
|
54
|
+
var P = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, o = (e, l, p, i) => {
|
|
55
|
+
for (var t = i > 1 ? void 0 : i ? $(l, p) : l, r = e.length - 1, a; r >= 0; r--)
|
|
56
|
+
(a = e[r]) && (t = (i ? a(l, p, t) : a(t)) || t);
|
|
57
|
+
return i && t && P(l, p, t), t;
|
|
58
|
+
};
|
|
59
|
+
let s = class extends b {
|
|
60
|
+
constructor() {
|
|
61
|
+
super(), this.defaultSlot = g(), this.closable = m.props.closable.default, this.compact = m.props.compact.default, this.title = "", this.skin = m.props.skin.default, this._isClosed = !1, this.close = (e) => {
|
|
62
|
+
this._isClosed = !0, this.dispatchEvent(new CustomEvent("close", { detail: { origin: e }, bubbles: !0 })), this.dispatchEvent(new CustomEvent("on-close", { detail: { origin: e }, bubbles: !0 }));
|
|
63
|
+
}, this.slotController = new u(this, this.defaultSlot), this._isClosed = !1;
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
const e = {
|
|
67
|
+
"pkt-messagebox": !0,
|
|
68
|
+
"pkt-messagebox--compact": this.compact,
|
|
69
|
+
[`pkt-messagebox--${this.skin}`]: this.skin,
|
|
70
|
+
"pkt-messagebox--closable": this.closable,
|
|
71
|
+
"pkt-hide": this._isClosed
|
|
72
|
+
};
|
|
73
|
+
return c`<div class=${h(e)}>
|
|
74
|
+
${this.closable ? c`<div class="pkt-messagebox__close">
|
|
75
|
+
<button
|
|
76
|
+
@click=${this.close}
|
|
77
|
+
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
78
|
+
>
|
|
79
|
+
<pkt-icon name="close" class="pkt-link__icon"></pkt-icon>
|
|
80
|
+
</button>
|
|
81
|
+
</div>` : d}
|
|
82
|
+
${this.title ? c`<div class="pkt-messagebox__title">${this.title}</div>` : d}
|
|
83
|
+
<div class="pkt-messagebox__text" ${f(this.defaultSlot)}></div>
|
|
84
|
+
</div>`;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
o([
|
|
88
|
+
n({ type: Boolean, reflect: !0 })
|
|
89
|
+
], s.prototype, "closable", 2);
|
|
90
|
+
o([
|
|
91
|
+
n({ type: Boolean, reflect: !0 })
|
|
92
|
+
], s.prototype, "compact", 2);
|
|
93
|
+
o([
|
|
94
|
+
n({ type: String, reflect: !0 })
|
|
95
|
+
], s.prototype, "title", 2);
|
|
96
|
+
o([
|
|
97
|
+
n({ type: String, reflect: !0 })
|
|
98
|
+
], s.prototype, "skin", 2);
|
|
99
|
+
o([
|
|
100
|
+
v()
|
|
101
|
+
], s.prototype, "_isClosed", 2);
|
|
102
|
+
s = o([
|
|
103
|
+
k("pkt-messagebox")
|
|
104
|
+
], s);
|
|
105
|
+
export {
|
|
106
|
+
s as P
|
|
107
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./class-map-
|
|
1
|
+
"use strict";const c=require("./class-map-Boa7BqCc.cjs"),n=require("./icon-CdMQ6zBT.cjs"),k=require("./state-SKYD8kRO.cjs"),u=require("./pkt-slot-controller-Ckk_yV0j.cjs"),a=require("./ref-DCOsLZQg.cjs"),m="pkt-modal",h=!0,g={"background-click":{description:"Event som trigges når bakgrunnen trykkes på"},close:{description:"Event som trigges når meldingsboksen lukkes"}},f={headingText:{name:"Heading text",description:"Heading tekst på modalen",type:"string"},hideCloseButton:{name:"Gjem 'Lukk'-knapp",description:"Gjemmer lukkeknappen. Dersom denne er satt til true, vil ikke lukkeknappen vises, og dermed er det viktig at man tilbyr en annen måte som f.eks. en knapp for å lukke modalen på.",type:"boolean",default:!1},closeOnBackdropClick:{name:"Lukk modalen når bakgrunnen trykkes på",description:"Lukk modalen når bakgrunnen trykkes på",type:"boolean",default:!1},size:{name:"Størrelse",description:"Størrelsen på modalen",type:["small","medium","large"],default:"medium"}},v={default:{description:"Innholdet i meldingen. Her tilbyr vi støtteklasser for å style 1-3 knapper i modalen."}},p={name:m,"css-class":"pkt-modal",isElements:h,events:g,props:f,slots:v};var b=Object.defineProperty,y=Object.getOwnPropertyDescriptor,i=(d,e,t,o)=>{for(var s=o>1?void 0:o?y(e,t):e,l=d.length-1,r;l>=0;l--)(r=d[l])&&(s=(o?r(e,t,s):r(s))||s);return o&&s&&b(e,t,s),s};exports.PktModal=class extends n.PktElement{constructor(){super(),this.headingText="",this.removePadding=!1,this.hideCloseButton=p.props.hideCloseButton.default,this.closeOnBackdropClick=p.props.closeOnBackdropClick.default,this.size=p.props.size.default,this.defaultSlot=a.e(),this.dialogRef=a.e(),this._isOpen=!1,this.close=(e,t=!1)=>{var l;this._isOpen=!1,t||(l=this.dialogRef.value)==null||l.close();const o=document.activeElement;o&&!this.isElementInViewport(o)&&o.scrollIntoView({behavior:"smooth",block:"nearest"}),this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0,composed:!0})),document.querySelector(".pkt-modal")&&document.body.classList.remove("pkt-modal--open"),this.requestUpdate()},this.showModal=e=>{var o;this._isOpen=!0,(o=this.dialogRef.value)==null||o.showModal(),document.querySelector(".pkt-modal")&&document.body.classList.add("pkt-modal--open"),this.dispatchEvent(new CustomEvent("showModal",{detail:{origin:e},bubbles:!0,composed:!0})),this.requestUpdate()},this.slotController=new u.PktSlotController(this,this.defaultSlot),this._isOpen=!1}async connectedCallback(){var e;super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown.bind(this)),document.addEventListener("click",this.handleBackdropClick.bind(this)),(e=this.dialogRef.value)==null||e.addEventListener("submit",t=>this.close(t,!0))}disconnectedCallback(){var e;super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown.bind(this)),document.removeEventListener("click",this.handleBackdropClick.bind(this)),(e=this.dialogRef.value)==null||e.removeEventListener("submit",t=>this.close(t,!0))}handleKeyDown(e){e.key==="Escape"&&this.close(e)}handleBackdropClick(e){var t;this.closeOnBackdropClick&&e.target===((t=this.dialogRef)==null?void 0:t.value)&&this.close(e)}isElementInViewport(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}render(){const e={"pkt-modal":!0,"pkt-modal--removePadding":this.removePadding??!1,"pkt-modal--noHeadingText":this.headingText===""||this.headingText===void 0,[`pkt-modal--${this.size}`]:this.size!==void 0},t={"pkt-modal__headingText":!0,"pkt-txt-24":!0},o={"pkt-modal__content":!0,"pkt-txt-18-light":!0};return n.x`
|
|
2
2
|
<dialog
|
|
3
3
|
class=${c.e(e)}
|
|
4
4
|
aria-modal=${this._isOpen}
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
${a.n(this.defaultSlot)}
|
|
28
28
|
></div>
|
|
29
29
|
</dialog>
|
|
30
|
-
`}};i([n.n({type:String,reflect:!0})],exports.PktModal.prototype,"headingText",2);i([n.n({type:Boolean,reflect:!0})],exports.PktModal.prototype,"removePadding",2);i([n.n({type:Boolean,reflect:!0})],exports.PktModal.prototype,"hideCloseButton",2);i([n.n({type:Boolean,reflect:!0})],exports.PktModal.prototype,"closeOnBackdropClick",2);i([n.n({type:String,reflect:!0})],exports.PktModal.prototype,"size",2);i([
|
|
30
|
+
`}};i([n.n({type:String,reflect:!0})],exports.PktModal.prototype,"headingText",2);i([n.n({type:Boolean,reflect:!0})],exports.PktModal.prototype,"removePadding",2);i([n.n({type:Boolean,reflect:!0})],exports.PktModal.prototype,"hideCloseButton",2);i([n.n({type:Boolean,reflect:!0})],exports.PktModal.prototype,"closeOnBackdropClick",2);i([n.n({type:String,reflect:!0})],exports.PktModal.prototype,"size",2);i([k.r()],exports.PktModal.prototype,"_isOpen",2);exports.PktModal=i([n.t("pkt-modal")],exports.PktModal);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as c } from "./class-map-
|
|
2
|
-
import {
|
|
3
|
-
import { r as
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
1
|
+
import { e as c } from "./class-map-hz16xq5a.js";
|
|
2
|
+
import { P as g, x as p, E as h, n as a, t as f } from "./icon-wUXeHiBk.js";
|
|
3
|
+
import { r as v } from "./state-BfyXV7EL.js";
|
|
4
|
+
import { P as b } from "./pkt-slot-controller-RJvOnbF4.js";
|
|
5
|
+
import { e as k, n as u } from "./ref-DuFGTLVX.js";
|
|
6
6
|
const y = "pkt-modal", _ = !0, C = {
|
|
7
7
|
"background-click": {
|
|
8
8
|
description: "Event som trigges når bakgrunnen trykkes på"
|
|
@@ -55,7 +55,7 @@ var B = Object.defineProperty, x = Object.getOwnPropertyDescriptor, l = (e, t, o
|
|
|
55
55
|
(r = e[d]) && (s = (i ? r(t, o, s) : r(s)) || s);
|
|
56
56
|
return i && s && B(t, o, s), s;
|
|
57
57
|
};
|
|
58
|
-
let n = class extends
|
|
58
|
+
let n = class extends g {
|
|
59
59
|
constructor() {
|
|
60
60
|
super(), this.headingText = "", this.removePadding = !1, this.hideCloseButton = m.props.hideCloseButton.default, this.closeOnBackdropClick = m.props.closeOnBackdropClick.default, this.size = m.props.size.default, this.defaultSlot = k(), this.dialogRef = k(), this._isOpen = !1, this.close = (e, t = !1) => {
|
|
61
61
|
var s;
|
|
@@ -152,10 +152,10 @@ l([
|
|
|
152
152
|
a({ type: String, reflect: !0 })
|
|
153
153
|
], n.prototype, "size", 2);
|
|
154
154
|
l([
|
|
155
|
-
|
|
155
|
+
v()
|
|
156
156
|
], n.prototype, "_isOpen", 2);
|
|
157
157
|
n = l([
|
|
158
|
-
|
|
158
|
+
f("pkt-modal")
|
|
159
159
|
], n);
|
|
160
160
|
export {
|
|
161
161
|
n as P
|
package/dist/pkt-alert.cjs
CHANGED
|
@@ -1,27 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
2
|
-
<div class=${d.e(e)}>
|
|
3
|
-
<pkt-icon
|
|
4
|
-
class="pkt-alert__icon"
|
|
5
|
-
name=${this.skin==="info"?"alert-information":`alert-${this.skin}`}
|
|
6
|
-
></pkt-icon>
|
|
7
|
-
|
|
8
|
-
${this.closeAlert?t.x`
|
|
9
|
-
<div class="pkt-alert__close">
|
|
10
|
-
<button
|
|
11
|
-
type="button"
|
|
12
|
-
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
13
|
-
tabindex="0"
|
|
14
|
-
aria-label="close"
|
|
15
|
-
@click=${this.close}
|
|
16
|
-
>
|
|
17
|
-
<pkt-icon name="close" class="pkt-btn__icon" aria-hidden="true"></pkt-icon>
|
|
18
|
-
</button>
|
|
19
|
-
</div>
|
|
20
|
-
`:t.E}
|
|
21
|
-
${this.title?t.x`<div class="pkt-alert__title">${this.title}</div>`:t.E}
|
|
22
|
-
|
|
23
|
-
<div class="pkt-alert__text" ${c.n(this.defaultSlot)}></div>
|
|
24
|
-
|
|
25
|
-
${this.date?t.x`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>`:t.E}
|
|
26
|
-
</div>
|
|
27
|
-
`}};i([t.n({type:Boolean,reflect:!1})],exports.PktAlert.prototype,"compact",2);i([t.n({type:String,reflect:!0})],exports.PktAlert.prototype,"title",2);i([t.n({type:String,reflect:!0})],exports.PktAlert.prototype,"skin",2);i([t.n({type:String})],exports.PktAlert.prototype,"ariaLive",2);i([t.n({type:String,reflect:!0})],exports.PktAlert.prototype,"aria-live",2);i([t.n({type:Boolean,reflect:!0})],exports.PktAlert.prototype,"closeAlert",2);i([t.n({type:String,reflect:!0})],exports.PktAlert.prototype,"date",2);i([t.r()],exports.PktAlert.prototype,"_isClosed",2);exports.PktAlert=i([k.t("pkt-alert")],exports.PktAlert);
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./alert-BbVWu2lm.cjs"),t=e.PktAlert;Object.defineProperty(exports,"PktAlert",{enumerable:!0,get:()=>e.PktAlert});exports.default=t;
|
package/dist/pkt-alert.js
CHANGED
|
@@ -1,159 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { r as v, P as h, x as n, E as u, n as l } from "./index-CFDwiDTU.js";
|
|
4
|
-
import { e as f, P as b, n as y } from "./ref-CaiKp3S2.js";
|
|
5
|
-
import "./index-RwtTBIhT.js";
|
|
6
|
-
const _ = "pkt-alert", g = !0, C = {
|
|
7
|
-
onClose: {
|
|
8
|
-
description: "React: Klikk-event for 'Lukk'-knappen"
|
|
9
|
-
},
|
|
10
|
-
close: {
|
|
11
|
-
description: "Vue: Klikk-event for 'Lukk'-knappen"
|
|
12
|
-
}
|
|
13
|
-
}, $ = {
|
|
14
|
-
title: {
|
|
15
|
-
name: "Tittel",
|
|
16
|
-
description: "Tittelen som vises øverst i på meldingen",
|
|
17
|
-
type: "string"
|
|
18
|
-
},
|
|
19
|
-
skin: {
|
|
20
|
-
name: "Utseende",
|
|
21
|
-
description: "Hvordan type melding er dette?",
|
|
22
|
-
type: [
|
|
23
|
-
"info",
|
|
24
|
-
"success",
|
|
25
|
-
"warning",
|
|
26
|
-
"error"
|
|
27
|
-
],
|
|
28
|
-
default: "info"
|
|
29
|
-
},
|
|
30
|
-
date: {
|
|
31
|
-
name: "Sist oppdatert",
|
|
32
|
-
description: "Dato som vises nederst i på meldingen",
|
|
33
|
-
type: "string"
|
|
34
|
-
},
|
|
35
|
-
ariaLive: {
|
|
36
|
-
name: "aria-live",
|
|
37
|
-
description: "Hvordan skal skjermleseren lese opp meldingen?",
|
|
38
|
-
type: [
|
|
39
|
-
"off",
|
|
40
|
-
"polite",
|
|
41
|
-
"assertive"
|
|
42
|
-
],
|
|
43
|
-
default: "polite"
|
|
44
|
-
},
|
|
45
|
-
compact: {
|
|
46
|
-
name: "Kompakt",
|
|
47
|
-
description: "Gjør meldingen mindre",
|
|
48
|
-
type: "boolean",
|
|
49
|
-
default: !1
|
|
50
|
-
},
|
|
51
|
-
closeAlert: {
|
|
52
|
-
name: "Vis 'Lukk'-knapp",
|
|
53
|
-
description: "Viser 'Lukk'-knappen",
|
|
54
|
-
type: "boolean",
|
|
55
|
-
default: !1
|
|
56
|
-
}
|
|
57
|
-
}, L = {
|
|
58
|
-
default: {
|
|
59
|
-
description: "Innholdet i meldingen"
|
|
60
|
-
}
|
|
61
|
-
}, p = {
|
|
62
|
-
name: _,
|
|
63
|
-
"css-class": "pkt-alert",
|
|
64
|
-
"dark-mode": !0,
|
|
65
|
-
isElement: g,
|
|
66
|
-
events: C,
|
|
67
|
-
props: $,
|
|
68
|
-
slots: L
|
|
69
|
-
};
|
|
70
|
-
var S = Object.defineProperty, E = Object.getOwnPropertyDescriptor, i = (t, r, o, a) => {
|
|
71
|
-
for (var s = a > 1 ? void 0 : a ? E(r, o) : r, c = t.length - 1, d; c >= 0; c--)
|
|
72
|
-
(d = t[c]) && (s = (a ? d(r, o, s) : d(s)) || s);
|
|
73
|
-
return a && s && S(r, o, s), s;
|
|
74
|
-
};
|
|
75
|
-
let e = class extends h {
|
|
76
|
-
constructor() {
|
|
77
|
-
super(), this.defaultSlot = f(), this.compact = p.props.compact.default, this.title = "", this.skin = p.props.skin.default, this.ariaLive = p.props.ariaLive.default, this["aria-live"] = null, this.closeAlert = p.props.closeAlert.default, this.date = null, this._isClosed = !1, this.close = (t) => {
|
|
78
|
-
this._isClosed = !0, this.dispatchEvent(
|
|
79
|
-
new CustomEvent("close", { detail: { origin: t }, bubbles: !0, composed: !0 })
|
|
80
|
-
), this.dispatchEvent(
|
|
81
|
-
new CustomEvent("on-close", { detail: { origin: t }, bubbles: !0, composed: !0 })
|
|
82
|
-
);
|
|
83
|
-
}, this.slotController = new b(this, this.defaultSlot), this._isClosed = !1;
|
|
84
|
-
}
|
|
85
|
-
connectedCallback() {
|
|
86
|
-
super.connectedCallback(), this["aria-live"] = this.getAttribute("aria-live") || this.ariaLive;
|
|
87
|
-
}
|
|
88
|
-
attributeChangedCallback(t, r, o) {
|
|
89
|
-
t === "ariaLive" && (this["aria-live"] = o);
|
|
90
|
-
}
|
|
91
|
-
updated(t) {
|
|
92
|
-
super.updated(t), t.has("ariaLive") && (this["aria-live"] = this.ariaLive);
|
|
93
|
-
}
|
|
94
|
-
render() {
|
|
95
|
-
const t = {
|
|
96
|
-
"pkt-alert": !0,
|
|
97
|
-
"pkt-alert--compact": this.compact,
|
|
98
|
-
[`pkt-alert--${this.skin}`]: this.skin,
|
|
99
|
-
"pkt-hide": this._isClosed
|
|
100
|
-
};
|
|
101
|
-
return n`
|
|
102
|
-
<div class=${k(t)}>
|
|
103
|
-
<pkt-icon
|
|
104
|
-
class="pkt-alert__icon"
|
|
105
|
-
name=${this.skin === "info" ? "alert-information" : `alert-${this.skin}`}
|
|
106
|
-
></pkt-icon>
|
|
107
|
-
|
|
108
|
-
${this.closeAlert ? n`
|
|
109
|
-
<div class="pkt-alert__close">
|
|
110
|
-
<button
|
|
111
|
-
type="button"
|
|
112
|
-
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
113
|
-
tabindex="0"
|
|
114
|
-
aria-label="close"
|
|
115
|
-
@click=${this.close}
|
|
116
|
-
>
|
|
117
|
-
<pkt-icon name="close" class="pkt-btn__icon" aria-hidden="true"></pkt-icon>
|
|
118
|
-
</button>
|
|
119
|
-
</div>
|
|
120
|
-
` : u}
|
|
121
|
-
${this.title ? n`<div class="pkt-alert__title">${this.title}</div>` : u}
|
|
122
|
-
|
|
123
|
-
<div class="pkt-alert__text" ${y(this.defaultSlot)}></div>
|
|
124
|
-
|
|
125
|
-
${this.date ? n`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>` : u}
|
|
126
|
-
</div>
|
|
127
|
-
`;
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
i([
|
|
131
|
-
l({ type: Boolean, reflect: !1 })
|
|
132
|
-
], e.prototype, "compact", 2);
|
|
133
|
-
i([
|
|
134
|
-
l({ type: String, reflect: !0 })
|
|
135
|
-
], e.prototype, "title", 2);
|
|
136
|
-
i([
|
|
137
|
-
l({ type: String, reflect: !0 })
|
|
138
|
-
], e.prototype, "skin", 2);
|
|
139
|
-
i([
|
|
140
|
-
l({ type: String })
|
|
141
|
-
], e.prototype, "ariaLive", 2);
|
|
142
|
-
i([
|
|
143
|
-
l({ type: String, reflect: !0 })
|
|
144
|
-
], e.prototype, "aria-live", 2);
|
|
145
|
-
i([
|
|
146
|
-
l({ type: Boolean, reflect: !0 })
|
|
147
|
-
], e.prototype, "closeAlert", 2);
|
|
148
|
-
i([
|
|
149
|
-
l({ type: String, reflect: !0 })
|
|
150
|
-
], e.prototype, "date", 2);
|
|
151
|
-
i([
|
|
152
|
-
v()
|
|
153
|
-
], e.prototype, "_isClosed", 2);
|
|
154
|
-
e = i([
|
|
155
|
-
m("pkt-alert")
|
|
156
|
-
], e);
|
|
1
|
+
import { P as t } from "./alert-Dh6A96vo.js";
|
|
2
|
+
const e = t;
|
|
157
3
|
export {
|
|
158
|
-
|
|
4
|
+
t as PktAlert,
|
|
5
|
+
e as default
|
|
159
6
|
};
|
package/dist/pkt-calendar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./calendar-QSulz7im.cjs"),t=e.PktCalendar;Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>e.PktCalendar});exports.default=t;
|
package/dist/pkt-calendar.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
|
|
3
|
-
import "./custom-element-CWfU4dcr.js";
|
|
4
|
-
import "./class-map-CBvUV2N3.js";
|
|
5
|
-
import { P as e } from "./index-D2jSRMrn.js";
|
|
6
|
-
import "./index-RwtTBIhT.js";
|
|
1
|
+
import { P as a } from "./calendar-BUqcNvfI.js";
|
|
2
|
+
const r = a;
|
|
7
3
|
export {
|
|
8
|
-
|
|
4
|
+
a as PktCalendar,
|
|
5
|
+
r as default
|
|
9
6
|
};
|
package/dist/pkt-card.cjs
CHANGED
|
@@ -1,23 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
2
|
-
<div class=${c.e(i)}>
|
|
3
|
-
${this.image.src&&t.x`
|
|
4
|
-
<div class="pkt-card__image">
|
|
5
|
-
<img src=${this.image.src} alt=${this.image.alt||""} />
|
|
6
|
-
</div>
|
|
7
|
-
`}
|
|
8
|
-
<div class="pkt-card__wrapper">
|
|
9
|
-
${this.tags.length>0?t.x`
|
|
10
|
-
<div class="pkt-card__tags">
|
|
11
|
-
${this.tags.map(s=>t.x`
|
|
12
|
-
<pkt-tag textStyle="normal-text" size="medium" skin=${s.skin}>
|
|
13
|
-
${s.text}
|
|
14
|
-
</pkt-tag>
|
|
15
|
-
`)}
|
|
16
|
-
</div>
|
|
17
|
-
`:t.E}
|
|
18
|
-
${this.heading&&t.x`<h3 class="pkt-txt-30-medium">${this.heading}</h3>`}
|
|
19
|
-
${this.subheading&&t.x`<p class="pkt-txt-20-light">${this.subheading}</p>`}
|
|
20
|
-
${this.defaultSlot&&t.x`<div class="pkt-card__content" ${d.n(this.defaultSlot)}></div>`}
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
`}};r([t.n({type:String,reflect:!0})],exports.PktCard.prototype,"skin",2);r([t.n({type:String,reflect:!0})],exports.PktCard.prototype,"direction",2);r([t.n({type:Object,reflect:!0})],exports.PktCard.prototype,"image",2);r([t.n({type:String,reflect:!0})],exports.PktCard.prototype,"heading",2);r([t.n({type:String,reflect:!0})],exports.PktCard.prototype,"subheading",2);r([t.n({type:Array,reflect:!0})],exports.PktCard.prototype,"tags",2);exports.PktCard=r([g.t("pkt-card")],exports.PktCard);
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./card-B0GPdG5M.cjs"),t=e.PktCard;Object.defineProperty(exports,"PktCard",{enumerable:!0,get:()=>e.PktCard});exports.default=t;
|