@oslokommune/punkt-elements 12.36.2 → 12.37.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/CHANGELOG.md +35 -0
- package/dist/{button-B6uRE7uT.js → button-BYZHwPtW.js} +1 -1
- package/dist/{button-BNdVIhUp.cjs → button-iCBnadXj.cjs} +1 -1
- package/dist/{checkbox-CyYfA2fu.js → checkbox-Cz3sIWt0.js} +1 -1
- package/dist/{checkbox-CqatE-eX.cjs → checkbox-U8aPrLjG.cjs} +1 -1
- package/dist/{combobox-D9NKnao2.cjs → combobox-AbD1tkKx.cjs} +1 -1
- package/dist/{combobox-CELUAZxF.js → combobox-Bsaj6Z6Y.js} +1 -1
- package/dist/consent-B888aPfK.js +161 -0
- package/dist/consent-CFgCfRsF.cjs +11 -0
- package/dist/consent.d.ts +1 -0
- package/dist/{datepicker-cR9MtXOh.cjs → datepicker-BAn16Z8U.cjs} +16 -16
- package/dist/{datepicker-CpkTwszH.js → datepicker-cNYYOtBI.js} +116 -103
- package/dist/index.d.ts +24 -1
- package/dist/input-element-XmmyUZmB.cjs +1 -0
- package/dist/{input-element-Bic-t96S.js → input-element-aQDMXDVQ.js} +31 -26
- package/dist/{modal-B-varrJT.js → modal-DIwagdAc.js} +1 -1
- package/dist/modal-OC0efchb.cjs +33 -0
- package/dist/pkt-button.cjs +1 -1
- package/dist/pkt-button.js +1 -1
- package/dist/pkt-checkbox.cjs +1 -1
- package/dist/pkt-checkbox.js +1 -1
- package/dist/pkt-combobox.cjs +1 -1
- package/dist/pkt-combobox.js +1 -1
- package/dist/pkt-consent.cjs +1 -0
- package/dist/pkt-consent.js +6 -0
- package/dist/pkt-datepicker.cjs +1 -1
- package/dist/pkt-datepicker.js +1 -1
- package/dist/pkt-index.cjs +3 -3
- package/dist/pkt-index.js +42 -40
- package/dist/pkt-modal.cjs +1 -1
- package/dist/pkt-modal.js +1 -1
- package/dist/pkt-radiobutton.cjs +1 -1
- package/dist/pkt-radiobutton.js +1 -1
- package/dist/pkt-select.cjs +1 -1
- package/dist/pkt-select.js +1 -1
- package/dist/pkt-textarea.cjs +1 -1
- package/dist/pkt-textarea.js +1 -1
- package/dist/pkt-textinput.cjs +1 -1
- package/dist/pkt-textinput.js +1 -1
- package/dist/{radiobutton-CIW0FvT8.cjs → radiobutton-DtL-nc1b.cjs} +1 -1
- package/dist/{radiobutton-DtHuz7qn.js → radiobutton-DtpGqoci.js} +1 -1
- package/dist/{select-DbRLz-7l.js → select-BO7s0ym6.js} +1 -1
- package/dist/{select-BJziJVde.cjs → select-CsrHon8V.cjs} +1 -1
- package/dist/{textarea-CiA4IzMs.js → textarea-BdjszjRh.js} +1 -1
- package/dist/{textarea-qX4Inr1X.cjs → textarea-vr4tUfJ3.cjs} +1 -1
- package/dist/{textinput-CrxjZNEq.js → textinput-D-hYhwtS.js} +31 -24
- package/dist/{textinput-BlsgLNwW.cjs → textinput-DTKG8h7M.cjs} +4 -3
- package/package.json +5 -4
- package/src/components/button/button.ts +1 -0
- package/src/components/consent/consent.ts +146 -0
- package/src/components/consent/index.ts +6 -0
- package/src/components/consent/strings.ts +125 -0
- package/src/components/datepicker/datepicker.ts +36 -4
- package/src/components/index.ts +3 -0
- package/src/components/modal/modal.ts +1 -1
- package/src/components/textinput/textinput.ts +10 -0
- package/dist/input-element-C9ma8cdz.cjs +0 -1
- package/dist/modal-cPcTJriW.cjs +0 -33
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";const d=require("./class-map-DCyaICmy.cjs"),l=require("./element-BSypUpzA.cjs"),h=require("./state-B5KCNjEd.cjs"),k=require("./pkt-slot-controller-plQxXRvV.cjs"),r=require("./ref-BvbyvXRH.cjs");require("./icon-BnKGwYjj.cjs");const m={hideCloseButton:{default:!1},closeOnBackdropClick:{default:!1},size:{default:"medium"}},p={props:m};var f=Object.defineProperty,v=Object.getOwnPropertyDescriptor,i=(c,e,t,s)=>{for(var o=s>1?void 0:s?v(e,t):e,n=c.length-1,a;n>=0;n--)(a=c[n])&&(o=(s?a(e,t,o):a(o))||o);return s&&o&&f(e,t,o),o};exports.PktModal=class extends l.PktElement{constructor(){super(),this.headingText="",this.removePadding=!1,this.hideCloseButton=p.props.hideCloseButton.default,this.closeOnBackdropClick=p.props.closeOnBackdropClick.default,this.closeButtonSkin="blue",this.size=p.props.size.default,this.defaultSlot=r.e(),this.dialogRef=r.e(),this._isOpen=!1,this.close=(e,t=!1)=>{var o;if(!this._isOpen)return;this._isOpen=!1,document.body.classList.remove("pkt-modal--open");const s=document.activeElement;s&&!this.isElementInViewport(s)&&s.scrollIntoView({behavior:"smooth",block:"nearest"}),this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0,composed:!0})),t||(o=this.dialogRef.value)==null||o.close(),this.requestUpdate()},this.showModal=(e=null)=>{var s;this._isOpen=!0,(s=this.dialogRef.value)==null||s.showModal();const t=document.querySelector(".pkt-modal");requestAnimationFrame(()=>{var o;this.dialogRef.value&&((o=this.dialogRef.value)==null||o.focus())}),t&&document.body.classList.add("pkt-modal--open"),this.dispatchEvent(new CustomEvent("showModal",{detail:{origin:e},bubbles:!0,composed:!0})),this.requestUpdate()},this.slotController=new k.PktSlotController(this,this.defaultSlot),this._isOpen=!1}async connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("click",this.handleBackdropClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleBackdropClick)}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},s={"pkt-modal__content":!0,"pkt-txt-18-light":!0},o=this.closeButtonSkin==="blue",n={"pkt-modal__closeButton":!0,[`pkt-modal__closeButton--${this.closeButtonSkin}`]:!0},a={"pkt-btn":!0,[`pkt-btn--${o?"tertiary":"primary"}`]:!0,"pkt-btn--icon-only":!0,"pkt-btn--medium":!0};return l.x`
|
|
2
|
+
<dialog
|
|
3
|
+
class=${d.e(e)}
|
|
4
|
+
${r.n(this.dialogRef)}
|
|
5
|
+
aria-labelledby="pkt-modal__headingText"
|
|
6
|
+
aria-describedby="pkt-modal__content"
|
|
7
|
+
@close=${u=>this.close(u,!0)}
|
|
8
|
+
>
|
|
9
|
+
<div class="pkt-modal__header">
|
|
10
|
+
<div class="pkt-modal__header-background"></div>
|
|
11
|
+
${this.headingText?l.x`<h1 id="pkt-modal__headingText" class=${d.e(t)}>
|
|
12
|
+
${this.headingText}
|
|
13
|
+
</h1>`:l.E}
|
|
14
|
+
${this.hideCloseButton?l.E:l.x`<div class="${d.e(n)}">
|
|
15
|
+
<pkt-button
|
|
16
|
+
@click=${u=>this.close(u)}
|
|
17
|
+
class=${d.e(a)}
|
|
18
|
+
aria-label="close"
|
|
19
|
+
iconname="close"
|
|
20
|
+
variant="icon-only"
|
|
21
|
+
>
|
|
22
|
+
</pkt-button>
|
|
23
|
+
</div>`}
|
|
24
|
+
</div>
|
|
25
|
+
<div class="pkt-modal__container">
|
|
26
|
+
<div
|
|
27
|
+
id="pkt-modal__content"
|
|
28
|
+
class=${d.e(s)}
|
|
29
|
+
${r.n(this.defaultSlot)}
|
|
30
|
+
></div>
|
|
31
|
+
</div>
|
|
32
|
+
</dialog>
|
|
33
|
+
`}};i([l.n({type:String,reflect:!0})],exports.PktModal.prototype,"headingText",2);i([l.n({type:Boolean,reflect:!0})],exports.PktModal.prototype,"removePadding",2);i([l.n({type:Boolean,reflect:!0})],exports.PktModal.prototype,"hideCloseButton",2);i([l.n({type:Boolean,reflect:!0})],exports.PktModal.prototype,"closeOnBackdropClick",2);i([l.n({type:String,reflect:!0})],exports.PktModal.prototype,"closeButtonSkin",2);i([l.n({type:String,reflect:!0})],exports.PktModal.prototype,"size",2);i([h.r()],exports.PktModal.prototype,"_isOpen",2);exports.PktModal=i([l.t("pkt-modal")],exports.PktModal);
|
package/dist/pkt-button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./button-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./button-iCBnadXj.cjs"),e=t.PktButton;Object.defineProperty(exports,"PktButton",{enumerable:!0,get:()=>t.PktButton});exports.default=e;
|
package/dist/pkt-button.js
CHANGED
package/dist/pkt-checkbox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./checkbox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./checkbox-U8aPrLjG.cjs"),t=e.PktCheckbox;Object.defineProperty(exports,"PktCheckbox",{enumerable:!0,get:()=>e.PktCheckbox});exports.default=t;
|
package/dist/pkt-checkbox.js
CHANGED
package/dist/pkt-combobox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./combobox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./combobox-AbD1tkKx.cjs"),o=e.PktCombobox;Object.defineProperty(exports,"PktCombobox",{enumerable:!0,get:()=>e.PktCombobox});exports.default=o;
|
package/dist/pkt-combobox.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./consent-CFgCfRsF.cjs"),t=e.PktConsent;Object.defineProperty(exports,"PktConsent",{enumerable:!0,get:()=>e.PktConsent});exports.default=t;
|
package/dist/pkt-datepicker.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./datepicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./datepicker-BAn16Z8U.cjs"),t=e.PktDatepicker;Object.defineProperty(exports,"PktDatepicker",{enumerable:!0,get:()=>e.PktDatepicker});exports.default=t;
|
package/dist/pkt-datepicker.js
CHANGED
package/dist/pkt-index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
<div class="${
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./alert-DWIElKEZ.cjs"),l=require("./accordionitem-cvsySqgK.cjs"),d=require("./backlink-HHM21crL.cjs"),b=require("./button-iCBnadXj.cjs"),k=require("./calendar-CYY42kN4.cjs"),m=require("./card-BDcr3PII.cjs"),g=require("./combobox-AbD1tkKx.cjs"),h=require("./consent-CFgCfRsF.cjs"),f=require("./checkbox-U8aPrLjG.cjs"),t=require("./element-BSypUpzA.cjs"),y=require("./pkt-slot-controller-plQxXRvV.cjs"),s=require("./ref-BvbyvXRH.cjs"),O=require("./class-map-DCyaICmy.cjs"),j=require("./datepicker-BAn16Z8U.cjs"),q=require("./helptext-CCnYxYA9.cjs"),x=require("./heading-CP3NaeWE.cjs"),C=require("./icon-BnKGwYjj.cjs"),v=require("./input-wrapper-Cn929YTV.cjs"),S=require("./link-CnibgS3c.cjs"),$=require("./linkcard-DPGX1kb1.cjs"),L=require("./loader-BN4q8pSl.cjs"),_=require("./messagebox-BWJr42m9.cjs"),A=require("./modal-OC0efchb.cjs"),B=require("./progressbar-DiRfScnB.cjs"),p=require("./radiobutton-DtL-nc1b.cjs"),T=require("./tag-CgkUxA5D.cjs"),I=require("./textarea-vr4tUfJ3.cjs"),M=require("./textinput-DTKG8h7M.cjs"),R=require("./select-CsrHon8V.cjs");var H=Object.defineProperty,w=Object.getOwnPropertyDescriptor,o=(a,e,r,i)=>{for(var n=i>1?void 0:i?w(e,r):e,u=a.length-1,c;u>=0;u--)(c=a[u])&&(n=(i?c(e,r,n):c(n))||n);return i&&n&&H(e,r,n),n};exports.PktComponent=class extends t.PktElement{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=s.e(),this.namedSlot=s.e(),this.slotController=new y.PktSlotController(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(e=>{this._list.push(e.toUpperCase())}),super.connectedCallback()}render(){const e={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return t.x`
|
|
2
|
+
<div class="${O.e(e)}">
|
|
3
3
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
4
4
|
|
|
5
5
|
<h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
<ul>
|
|
27
27
|
${e.map(r=>t.x`<li>${r}</li>`)}
|
|
28
28
|
</ul>
|
|
29
|
-
`}doStuff(e){return e.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};o([t.n({type:String})],exports.PktComponent.prototype,"string",2);o([t.n({converter:
|
|
29
|
+
`}doStuff(e){return e.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};o([t.n({type:String})],exports.PktComponent.prototype,"string",2);o([t.n({converter:k.csvToArray})],exports.PktComponent.prototype,"strings",2);o([t.n({type:Boolean})],exports.PktComponent.prototype,"darkmode",2);o([t.n({type:Array})],exports.PktComponent.prototype,"_list",2);exports.PktComponent=o([t.t("pkt-component")],exports.PktComponent);Object.defineProperty(exports,"PktAlert",{enumerable:!0,get:()=>P.PktAlert});exports.PktAccordion=l.PktAccordion;exports.PktAccordionItem=l.PktAccordionItem;Object.defineProperty(exports,"PktBackLink",{enumerable:!0,get:()=>d.PktBackLink});Object.defineProperty(exports,"PktButton",{enumerable:!0,get:()=>b.PktButton});Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>k.PktCalendar});Object.defineProperty(exports,"PktCard",{enumerable:!0,get:()=>m.PktCard});Object.defineProperty(exports,"PktCombobox",{enumerable:!0,get:()=>g.PktCombobox});Object.defineProperty(exports,"PktConsent",{enumerable:!0,get:()=>h.PktConsent});Object.defineProperty(exports,"PktCheckbox",{enumerable:!0,get:()=>f.PktCheckbox});Object.defineProperty(exports,"PktDatepicker",{enumerable:!0,get:()=>j.PktDatepicker});Object.defineProperty(exports,"PktHelptext",{enumerable:!0,get:()=>q.PktHelptext});Object.defineProperty(exports,"PktHeading",{enumerable:!0,get:()=>x.PktHeading});Object.defineProperty(exports,"PktIcon",{enumerable:!0,get:()=>C.PktIcon});Object.defineProperty(exports,"PktInputWrapper",{enumerable:!0,get:()=>v.PktInputWrapper});Object.defineProperty(exports,"PktLink",{enumerable:!0,get:()=>S.PktLink});Object.defineProperty(exports,"PktLinkCard",{enumerable:!0,get:()=>$.PktLinkCard});Object.defineProperty(exports,"PktLoader",{enumerable:!0,get:()=>L.PktLoader});Object.defineProperty(exports,"PktMessagebox",{enumerable:!0,get:()=>_.PktMessagebox});Object.defineProperty(exports,"PktModal",{enumerable:!0,get:()=>A.PktModal});Object.defineProperty(exports,"PktProgressbar",{enumerable:!0,get:()=>B.PktProgressbar});Object.defineProperty(exports,"PktRadioButton",{enumerable:!0,get:()=>p.PktRadioButton});Object.defineProperty(exports,"PktRadiobutton",{enumerable:!0,get:()=>p.PktRadioButton});Object.defineProperty(exports,"PktTag",{enumerable:!0,get:()=>T.PktTag});Object.defineProperty(exports,"PktTextarea",{enumerable:!0,get:()=>I.PktTextarea});Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>M.PktTextinput});Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>R.PktSelect});
|
package/dist/pkt-index.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { P as A } from "./alert-B5lVS6Qs.js";
|
|
2
2
|
import { P as B, a as E } from "./accordionitem-Db-3WiJS.js";
|
|
3
3
|
import { P as O } from "./backlink-hvyJmwrO.js";
|
|
4
|
-
import { P as T } from "./button-
|
|
4
|
+
import { P as T } from "./button-BYZHwPtW.js";
|
|
5
5
|
import { c as f } from "./calendar-KDcOWD6V.js";
|
|
6
6
|
import { P as D } from "./calendar-KDcOWD6V.js";
|
|
7
7
|
import { P as G } from "./card-B5zTEmH1.js";
|
|
8
|
-
import { P as K } from "./combobox-
|
|
9
|
-
import { P as U } from "./
|
|
10
|
-
import { P as
|
|
8
|
+
import { P as K } from "./combobox-Bsaj6Z6Y.js";
|
|
9
|
+
import { P as U } from "./consent-B888aPfK.js";
|
|
10
|
+
import { P as q } from "./checkbox-Cz3sIWt0.js";
|
|
11
|
+
import { P as k, t as h, x as P, n, a as c } from "./element-DjjF_tEh.js";
|
|
11
12
|
import { P as x } from "./pkt-slot-controller-DFrc5O93.js";
|
|
12
13
|
import { e as m, n as d } from "./ref-iIffqQAI.js";
|
|
13
14
|
import { e as u } from "./class-map-KyMqi0fa.js";
|
|
14
|
-
import { P as
|
|
15
|
-
import { P as
|
|
16
|
-
import { P as
|
|
17
|
-
import { P as
|
|
18
|
-
import { P as
|
|
19
|
-
import { P as
|
|
20
|
-
import { P as
|
|
21
|
-
import { P as
|
|
22
|
-
import { P as
|
|
23
|
-
import { P as
|
|
24
|
-
import { P as
|
|
25
|
-
import { P as
|
|
26
|
-
import { P as
|
|
27
|
-
import { P as
|
|
28
|
-
import { P as
|
|
29
|
-
import { P as
|
|
15
|
+
import { P as F } from "./datepicker-cNYYOtBI.js";
|
|
16
|
+
import { P as Q } from "./helptext-BLHAJ1aC.js";
|
|
17
|
+
import { P as X } from "./heading-BkC05ohM.js";
|
|
18
|
+
import { P as Z } from "./icon-Beoxup8E.js";
|
|
19
|
+
import { P as et } from "./input-wrapper-CeeNYbDA.js";
|
|
20
|
+
import { P as ot } from "./link-BYI8VNGd.js";
|
|
21
|
+
import { P as at } from "./linkcard--zuuAt_v.js";
|
|
22
|
+
import { P as it } from "./loader-DgIiyYBl.js";
|
|
23
|
+
import { P as lt } from "./messagebox-cme5VbUM.js";
|
|
24
|
+
import { P as mt } from "./modal-DIwagdAc.js";
|
|
25
|
+
import { P as ft } from "./progressbar-BKt_aj7f.js";
|
|
26
|
+
import { P as ht, P as ct } from "./radiobutton-DtpGqoci.js";
|
|
27
|
+
import { P as ut } from "./tag-CGnj4c1Z.js";
|
|
28
|
+
import { P as vt } from "./textarea-BdjszjRh.js";
|
|
29
|
+
import { P as bt } from "./textinput-D-hYhwtS.js";
|
|
30
|
+
import { P as $t } from "./select-BO7s0ym6.js";
|
|
30
31
|
var g = Object.defineProperty, v = Object.getOwnPropertyDescriptor, s = (t, e, i, a) => {
|
|
31
32
|
for (var r = a > 1 ? void 0 : a ? v(e, i) : e, p = t.length - 1, l; p >= 0; p--)
|
|
32
33
|
(l = t[p]) && (r = (a ? l(e, i, r) : l(r)) || r);
|
|
33
34
|
return a && r && g(e, i, r), r;
|
|
34
35
|
};
|
|
35
|
-
let o = class extends
|
|
36
|
+
let o = class extends k {
|
|
36
37
|
constructor() {
|
|
37
38
|
super(), this.string = "", this.strings = [], this.darkmode = !1, this._list = [], this.defaultSlot = m(), this.namedSlot = m(), this.slotController = new x(this, this.defaultSlot, this.namedSlot);
|
|
38
39
|
}
|
|
@@ -74,7 +75,7 @@ let o = class extends h {
|
|
|
74
75
|
|
|
75
76
|
<h2 class="pkt-txt-22">Knapp som emitter en event</h2>
|
|
76
77
|
<button type="button" @click=${() => this.handleGreeting()}>
|
|
77
|
-
Si ${
|
|
78
|
+
Si ${h.example.hi}
|
|
78
79
|
</button>
|
|
79
80
|
</div>
|
|
80
81
|
`;
|
|
@@ -126,24 +127,25 @@ export {
|
|
|
126
127
|
T as PktButton,
|
|
127
128
|
D as PktCalendar,
|
|
128
129
|
G as PktCard,
|
|
129
|
-
|
|
130
|
+
q as PktCheckbox,
|
|
130
131
|
K as PktCombobox,
|
|
131
132
|
o as PktComponent,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
Z as
|
|
137
|
-
et as
|
|
138
|
-
ot as
|
|
139
|
-
at as
|
|
140
|
-
it as
|
|
141
|
-
lt as
|
|
142
|
-
mt as
|
|
143
|
-
ft as
|
|
144
|
-
ht as
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
ut as
|
|
148
|
-
vt as
|
|
133
|
+
U as PktConsent,
|
|
134
|
+
F as PktDatepicker,
|
|
135
|
+
X as PktHeading,
|
|
136
|
+
Q as PktHelptext,
|
|
137
|
+
Z as PktIcon,
|
|
138
|
+
et as PktInputWrapper,
|
|
139
|
+
ot as PktLink,
|
|
140
|
+
at as PktLinkCard,
|
|
141
|
+
it as PktLoader,
|
|
142
|
+
lt as PktMessagebox,
|
|
143
|
+
mt as PktModal,
|
|
144
|
+
ft as PktProgressbar,
|
|
145
|
+
ht as PktRadioButton,
|
|
146
|
+
ct as PktRadiobutton,
|
|
147
|
+
$t as PktSelect,
|
|
148
|
+
ut as PktTag,
|
|
149
|
+
vt as PktTextarea,
|
|
150
|
+
bt as PktTextinput
|
|
149
151
|
};
|
package/dist/pkt-modal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./modal-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./modal-OC0efchb.cjs"),t=e.PktModal;Object.defineProperty(exports,"PktModal",{enumerable:!0,get:()=>e.PktModal});exports.default=t;
|
package/dist/pkt-modal.js
CHANGED
package/dist/pkt-radiobutton.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./radiobutton-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./radiobutton-DtL-nc1b.cjs"),e=t.PktRadioButton;Object.defineProperty(exports,"PktRadioButton",{enumerable:!0,get:()=>t.PktRadioButton});exports.default=e;
|
package/dist/pkt-radiobutton.js
CHANGED
package/dist/pkt-select.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./select-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./select-CsrHon8V.cjs"),t=e.PktSelect;Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>e.PktSelect});exports.default=t;
|
package/dist/pkt-select.js
CHANGED
package/dist/pkt-textarea.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textarea-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textarea-vr4tUfJ3.cjs"),t=e.PktTextarea;Object.defineProperty(exports,"PktTextarea",{enumerable:!0,get:()=>e.PktTextarea});exports.default=t;
|
package/dist/pkt-textarea.js
CHANGED
package/dist/pkt-textinput.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textinput-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textinput-DTKG8h7M.cjs"),t=e.PktTextinput;Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>e.PktTextinput});exports.default=t;
|
package/dist/pkt-textinput.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("./element-BSypUpzA.cjs"),a=require("./state-B5KCNjEd.cjs"),p=require("./input-element-
|
|
1
|
+
"use strict";const t=require("./element-BSypUpzA.cjs"),a=require("./state-B5KCNjEd.cjs"),p=require("./input-element-XmmyUZmB.cjs"),d=require("./ref-BvbyvXRH.cjs"),o=require("./class-map-DCyaICmy.cjs");var k=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=(u,e,c,s)=>{for(var h=s>1?void 0:s?r(e,c):e,n=u.length-1,l;n>=0;n--)(l=u[n])&&(h=(s?l(e,c,h):l(h))||h);return s&&h&&k(e,c,h),h};exports.PktRadioButton=class extends p.PktInputElement{constructor(){super(...arguments),this.inputRef=d.e(),this.value="",this.checkHelptext=null,this.defaultChecked=!1,this.hasTile=!1,this.checked=null,this.type="radio",this._checked=!1}connectedCallback(){super.connectedCallback()}attributeChangedCallback(e,c,s){e==="defaultChecked"&&(this._checked=this.defaultChecked),e==="checked"&&(this._checked=this.checked===""||this.checked==="true"||this.checked===!0),super.attributeChangedCallback(e,c,s)}updated(e){e.has("checked")&&this.checked!==null&&(this._checked=this.checked===""||this.checked==="true"||this.checked===!0,(e.get("checked")===""||e.get("checked")==="true"||e.get("checked")===!0)!==this._checked&&this.toggleChecked()),super.updated(e)}render(){const e=o.e({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),c=o.e({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError});return t.x`
|
|
2
2
|
<div class="pkt-input-check">
|
|
3
3
|
<div class=${e}>
|
|
4
4
|
<input
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as n, x as r, n as s, a as o } from "./element-DjjF_tEh.js";
|
|
2
2
|
import { r as k } from "./state-BtbpSrdV.js";
|
|
3
|
-
import { P as f } from "./input-element-
|
|
3
|
+
import { P as f } from "./input-element-aQDMXDVQ.js";
|
|
4
4
|
import { e as _, n as b } from "./ref-iIffqQAI.js";
|
|
5
5
|
import { e as a } from "./class-map-KyMqi0fa.js";
|
|
6
6
|
var C = Object.defineProperty, v = Object.getOwnPropertyDescriptor, i = (e, t, l, p) => {
|
|
@@ -2,7 +2,7 @@ import { x as h, n as c, a as $ } from "./element-DjjF_tEh.js";
|
|
|
2
2
|
import { r as b } from "./state-BtbpSrdV.js";
|
|
3
3
|
import { e as u, n as d } from "./ref-iIffqQAI.js";
|
|
4
4
|
import { o as s } from "./if-defined-BErSJCeJ.js";
|
|
5
|
-
import { P as v } from "./input-element-
|
|
5
|
+
import { P as v } from "./input-element-aQDMXDVQ.js";
|
|
6
6
|
import { P as f } from "./pkt-options-controller-CFmzX4xL.js";
|
|
7
7
|
import { P as m } from "./pkt-slot-controller-DFrc5O93.js";
|
|
8
8
|
import "./input-wrapper-CeeNYbDA.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("./element-BSypUpzA.cjs"),u=require("./state-B5KCNjEd.cjs"),l=require("./ref-BvbyvXRH.cjs"),o=require("./if-defined-a3sotaUr.cjs"),d=require("./input-element-
|
|
1
|
+
"use strict";const r=require("./element-BSypUpzA.cjs"),u=require("./state-B5KCNjEd.cjs"),l=require("./ref-BvbyvXRH.cjs"),o=require("./if-defined-a3sotaUr.cjs"),d=require("./input-element-XmmyUZmB.cjs"),c=require("./pkt-options-controller-TJ1apYGF.cjs"),$=require("./pkt-slot-controller-plQxXRvV.cjs");require("./input-wrapper-Cn929YTV.cjs");var b=Object.defineProperty,v=Object.getOwnPropertyDescriptor,n=(a,e,t,i)=>{for(var s=i>1?void 0:i?v(e,t):e,p=a.length-1,h;p>=0;p--)(h=a[p])&&(s=(i?h(e,t,s):h(s))||s);return i&&s&&b(e,t,s),s};exports.PktSelect=class extends d.PktInputElement{constructor(){super(),this.inputRef=l.e(),this.helptextSlot=l.e(),this.options=[],this.value="",this._options=[],this.optionsController=new c.PktOptionsSlotController(this),this.slotController=new $.PktSlotController(this,this.helptextSlot),this.slotController.skipOptions=!0}connectedCallback(){super.connectedCallback();const e=this.options.length>0,t=this.optionsController.nodes.length&&this.optionsController.nodes.length>0;!e&&t?this.optionsController.nodes.forEach(i=>{const s={value:i.getAttribute("value")||i.textContent||"",label:i.textContent||i.getAttribute("value")||"",disabled:!!i.getAttribute("disabled")};i.getAttribute("selected")&&!this.value&&(this.value=s.value),this._options.push(s)}):this._options=this.options}attributeChangedCallback(e,t,i){e==="options"&&(this._options=i?JSON.parse(i):[]),e==="value"&&this.value!==t&&this.valueChanged(i,t),super.attributeChangedCallback(e,t,i)}updated(e){var t;super.updated(e),e.has("value")&&(this.counterCurrent=((t=this.value)==null?void 0:t.length)||0,this.valueChanged(this.value,e.get("value"))),e.has("id")&&!this.name&&this.id&&(this.name=this.id)}firstUpdated(e){super.firstUpdated(e),this.options.length&&(this._options=this.options)}render(){const e=`pkt-input ${this.fullwidth?"pkt-input--fullwidth":""}`;return r.x`
|
|
2
2
|
<pkt-input-wrapper
|
|
3
3
|
?counter=${this.counter}
|
|
4
4
|
?disabled=${this.disabled}
|
|
@@ -5,7 +5,7 @@ import { e as m, n as c } from "./ref-iIffqQAI.js";
|
|
|
5
5
|
import { e as v } from "./class-map-KyMqi0fa.js";
|
|
6
6
|
import { e as b, i as T, t as a } from "./directive-oAbCiebi.js";
|
|
7
7
|
import { f as y, m as w } from "./directive-helpers-8uS_Izwn.js";
|
|
8
|
-
import { P as C } from "./input-element-
|
|
8
|
+
import { P as C } from "./input-element-aQDMXDVQ.js";
|
|
9
9
|
import { P as E } from "./pkt-slot-controller-DFrc5O93.js";
|
|
10
10
|
import "./input-wrapper-CeeNYbDA.js";
|
|
11
11
|
import "./icon-Beoxup8E.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("./element-BSypUpzA.cjs"),p=require("./if-defined-a3sotaUr.cjs"),c=require("./state-B5KCNjEd.cjs"),l=require("./ref-BvbyvXRH.cjs"),$=require("./class-map-DCyaICmy.cjs"),a=require("./directive-C7oCP5Bh.cjs"),d=require("./directive-helpers-CG7Oxal3.cjs"),x=require("./input-element-
|
|
1
|
+
"use strict";const s=require("./element-BSypUpzA.cjs"),p=require("./if-defined-a3sotaUr.cjs"),c=require("./state-B5KCNjEd.cjs"),l=require("./ref-BvbyvXRH.cjs"),$=require("./class-map-DCyaICmy.cjs"),a=require("./directive-C7oCP5Bh.cjs"),d=require("./directive-helpers-CG7Oxal3.cjs"),x=require("./input-element-XmmyUZmB.cjs"),T=require("./pkt-slot-controller-plQxXRvV.cjs");require("./input-wrapper-Cn929YTV.cjs");require("./icon-BnKGwYjj.cjs");/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2020 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { E as p, x as h, n as
|
|
1
|
+
import { E as p, x as h, n as a, a as $ } from "./element-DjjF_tEh.js";
|
|
2
2
|
import { o as c } from "./if-defined-BErSJCeJ.js";
|
|
3
3
|
import { r as f } from "./state-BtbpSrdV.js";
|
|
4
4
|
import { e as d, n as m } from "./ref-iIffqQAI.js";
|
|
5
5
|
import { e as g } from "./class-map-KyMqi0fa.js";
|
|
6
|
-
import { P as x } from "./input-element-
|
|
6
|
+
import { P as x } from "./input-element-aQDMXDVQ.js";
|
|
7
7
|
import { P as y } from "./pkt-slot-controller-DFrc5O93.js";
|
|
8
8
|
import "./input-wrapper-CeeNYbDA.js";
|
|
9
9
|
import "./icon-Beoxup8E.js";
|
|
10
|
-
var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor,
|
|
11
|
-
for (var
|
|
12
|
-
(u = e[l]) && (
|
|
13
|
-
return t &&
|
|
10
|
+
var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor, o = (e, i, r, t) => {
|
|
11
|
+
for (var n = t > 1 ? void 0 : t ? b(i, r) : i, l = e.length - 1, u; l >= 0; l--)
|
|
12
|
+
(u = e[l]) && (n = (t ? u(i, r, n) : u(n)) || n);
|
|
13
|
+
return t && n && v(i, r, n), n;
|
|
14
14
|
};
|
|
15
15
|
let s = class extends x {
|
|
16
16
|
constructor() {
|
|
@@ -84,6 +84,13 @@ let s = class extends x {
|
|
|
84
84
|
}}
|
|
85
85
|
@blur=${(t) => {
|
|
86
86
|
this.value = t.target.value, this.onBlur(), t.stopImmediatePropagation();
|
|
87
|
+
}}
|
|
88
|
+
@keydown=${(t) => {
|
|
89
|
+
var n;
|
|
90
|
+
if (t.key === "Enter") {
|
|
91
|
+
const l = this.internals.form;
|
|
92
|
+
l ? l.requestSubmit() : (n = this.inputRef.value) == null || n.blur();
|
|
93
|
+
}
|
|
87
94
|
}}
|
|
88
95
|
/>
|
|
89
96
|
${this.suffix ? h`<div class="pkt-input-suffix">
|
|
@@ -104,34 +111,34 @@ let s = class extends x {
|
|
|
104
111
|
`;
|
|
105
112
|
}
|
|
106
113
|
};
|
|
107
|
-
|
|
108
|
-
|
|
114
|
+
o([
|
|
115
|
+
a({ type: String, reflect: !0 })
|
|
109
116
|
], s.prototype, "value", 2);
|
|
110
|
-
|
|
111
|
-
|
|
117
|
+
o([
|
|
118
|
+
a({ type: String })
|
|
112
119
|
], s.prototype, "type", 2);
|
|
113
|
-
|
|
114
|
-
|
|
120
|
+
o([
|
|
121
|
+
a({ type: Number })
|
|
115
122
|
], s.prototype, "size", 2);
|
|
116
|
-
|
|
117
|
-
|
|
123
|
+
o([
|
|
124
|
+
a({ type: String })
|
|
118
125
|
], s.prototype, "autocomplete", 2);
|
|
119
|
-
|
|
120
|
-
|
|
126
|
+
o([
|
|
127
|
+
a({ type: String })
|
|
121
128
|
], s.prototype, "iconNameRight", 2);
|
|
122
|
-
|
|
123
|
-
|
|
129
|
+
o([
|
|
130
|
+
a({ type: String })
|
|
124
131
|
], s.prototype, "prefix", 2);
|
|
125
|
-
|
|
126
|
-
|
|
132
|
+
o([
|
|
133
|
+
a({ type: String })
|
|
127
134
|
], s.prototype, "suffix", 2);
|
|
128
|
-
|
|
129
|
-
|
|
135
|
+
o([
|
|
136
|
+
a({ type: Boolean })
|
|
130
137
|
], s.prototype, "omitSearchIcon", 2);
|
|
131
|
-
|
|
138
|
+
o([
|
|
132
139
|
f()
|
|
133
140
|
], s.prototype, "counterCurrent", 2);
|
|
134
|
-
s =
|
|
141
|
+
s = o([
|
|
135
142
|
$("pkt-textinput")
|
|
136
143
|
], s);
|
|
137
144
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("./element-BSypUpzA.cjs"),u=require("./if-defined-a3sotaUr.cjs"),l=require("./state-B5KCNjEd.cjs"),
|
|
1
|
+
"use strict";const t=require("./element-BSypUpzA.cjs"),u=require("./if-defined-a3sotaUr.cjs"),l=require("./state-B5KCNjEd.cjs"),a=require("./ref-BvbyvXRH.cjs"),c=require("./class-map-DCyaICmy.cjs"),d=require("./input-element-XmmyUZmB.cjs"),x=require("./pkt-slot-controller-plQxXRvV.cjs");require("./input-wrapper-Cn929YTV.cjs");require("./icon-BnKGwYjj.cjs");var $=Object.defineProperty,f=Object.getOwnPropertyDescriptor,r=(h,i,s,n)=>{for(var e=n>1?void 0:n?f(i,s):i,o=h.length-1,p;o>=0;o--)(p=h[o])&&(e=(n?p(i,s,e):p(e))||e);return n&&e&&$(i,s,e),e};exports.PktTextinput=class extends d.PktInputElement{constructor(){super(),this.inputRef=a.e(),this.helptextSlot=a.e(),this.value="",this.type="text",this.size=null,this.autocomplete=null,this.iconNameRight=null,this.prefix=null,this.suffix=null,this.omitSearchIcon=!1,this.counterCurrent=0,this.slotController=new x.PktSlotController(this,this.helptextSlot)}attributeChangedCallback(i,s,n){i==="value"&&this.value!==s&&(this.counterCurrent=n?n.length:0,this.valueChanged(n,s)),super.attributeChangedCallback(i,s,n)}updated(i){var s;super.updated(i),i.has("value")&&(this.counterCurrent=((s=this.value)==null?void 0:s.length)||0,this.valueChanged(this.value,i.get("value"))),i.has("id")&&!this.name&&this.id&&(this.name=this.id)}render(){const i=this.type==="search"&&!this.iconNameRight&&!this.omitSearchIcon,s=c.e({"pkt-input":!0,"pkt-input--fullwidth":this.fullwidth,"pkt-input--counter-error":this.counter&&this.counterMaxLength&&this.value.length&&this.value.length>this.counterMaxLength}),n=this.ariaLabelledby||`${this.id}-input-label`;return t.x`
|
|
2
2
|
<pkt-input-wrapper
|
|
3
3
|
label="${this.label}"
|
|
4
4
|
?counter=${this.counter}
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
.requiredText=${this.requiredText}
|
|
23
23
|
class="pkt-textinput"
|
|
24
24
|
>
|
|
25
|
-
<div class="pkt-contents" ${
|
|
25
|
+
<div class="pkt-contents" ${a.n(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
26
26
|
<div class="pkt-input__container">
|
|
27
27
|
${this.prefix?t.x`<div class="pkt-input-prefix">${this.prefix}</div>`:t.E}
|
|
28
28
|
<input
|
|
29
|
-
${
|
|
29
|
+
${a.n(this.inputRef)}
|
|
30
30
|
class=${s}
|
|
31
31
|
type=${this.type}
|
|
32
32
|
name=${(this.name||this.id)+"-input"}
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
@change=${e=>{e.stopImmediatePropagation()}}
|
|
47
47
|
@focus=${e=>{this.onFocus(),e.stopImmediatePropagation()}}
|
|
48
48
|
@blur=${e=>{this.value=e.target.value,this.onBlur(),e.stopImmediatePropagation()}}
|
|
49
|
+
@keydown=${e=>{var o;if(e.key==="Enter"){const p=this.internals.form;p?p.requestSubmit():(o=this.inputRef.value)==null||o.blur()}}}
|
|
49
50
|
/>
|
|
50
51
|
${this.suffix?t.x`<div class="pkt-input-suffix">
|
|
51
52
|
${this.suffix}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-elements",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.37.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",
|
|
@@ -23,14 +23,15 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@date-fns/tz": "^1.2.0",
|
|
25
25
|
"@lit-labs/router": "^0.1.3",
|
|
26
|
+
"@oslokommune/cookie-manager": "^1.1.0",
|
|
26
27
|
"date-fns": "^4.1.0",
|
|
27
28
|
"lit": "^3.3.0",
|
|
28
29
|
"react-dom": ">=18.2.22",
|
|
29
30
|
"urlpattern-polyfill": "^10.0.0"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"@oslokommune/punkt-assets": "^12.
|
|
33
|
-
"@oslokommune/punkt-css": "^12.
|
|
33
|
+
"@oslokommune/punkt-assets": "^12.37.0",
|
|
34
|
+
"@oslokommune/punkt-css": "^12.37.0",
|
|
34
35
|
"sass": "^1.78.0",
|
|
35
36
|
"typescript": "^5.6.2",
|
|
36
37
|
"vite": "^5.4.18",
|
|
@@ -57,5 +58,5 @@
|
|
|
57
58
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
58
59
|
},
|
|
59
60
|
"license": "MIT",
|
|
60
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "d45fb53f62fd8dff86a140774b531c7df33910d9"
|
|
61
62
|
}
|
|
@@ -82,6 +82,7 @@ export class PktButton extends PktElement<IPktButton> implements IPktButton {
|
|
|
82
82
|
super.updated(_changedProperties)
|
|
83
83
|
|
|
84
84
|
this.setAttribute('role', 'button')
|
|
85
|
+
this.internals.role = 'button'
|
|
85
86
|
|
|
86
87
|
if (this.disabled) {
|
|
87
88
|
if (this.getAttribute('tabindex') !== '-1') {
|