@oslokommune/punkt-elements 12.6.1 → 12.6.4
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/{class-map-DunDFQn7.js → class-map-CC5YmUWA.js} +1 -1
- package/dist/{class-map-Ch54kkX5.cjs → class-map-DuDzlp5t.cjs} +1 -1
- package/dist/{index-CyqOyy_9.js → index-CBp5twsn.js} +1 -1
- package/dist/{index-DSyh6tUw.cjs → index-D8H97G5s.cjs} +1 -1
- package/dist/{index-BI6-RUqp.js → index-D8wkW6WM.js} +114 -106
- package/dist/{index-BNOnscrA.cjs → index-OhFn59AM.cjs} +22 -16
- package/dist/{index-CsTujnXs.js → index-d6Lj2RhC.js} +2 -0
- package/dist/{index-Bpc07w_P.cjs → index-kJnGegz8.cjs} +1 -1
- package/dist/pkt-alert.cjs +1 -1
- package/dist/pkt-alert.js +4 -4
- package/dist/pkt-calendar.cjs +1 -1
- package/dist/pkt-calendar.js +4 -4
- package/dist/pkt-card.cjs +1 -1
- package/dist/pkt-card.js +4 -4
- package/dist/pkt-component-template.cjs +1 -1
- package/dist/pkt-component-template.js +3 -3
- package/dist/pkt-datepicker.cjs +11 -8
- package/dist/pkt-datepicker.js +9 -6
- package/dist/pkt-element.cjs +1 -1
- package/dist/pkt-element.js +1 -1
- package/dist/pkt-icon.cjs +1 -1
- package/dist/pkt-icon.js +2 -2
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +2 -2
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +4 -4
- package/dist/pkt-link.cjs +1 -1
- package/dist/pkt-link.js +4 -4
- package/dist/pkt-messagebox.cjs +1 -1
- package/dist/pkt-messagebox.js +4 -4
- package/dist/pkt-tag.cjs +1 -1
- package/dist/pkt-tag.js +4 -4
- package/dist/{ref-C3InMDfU.cjs → ref-Bi2ZZNQq.cjs} +1 -1
- package/dist/{ref-By_W8A-f.js → ref-bB529lv7.js} +1 -1
- package/package.json +3 -3
- package/src/components/calendar/index.ts +13 -4
- package/src/components/datepicker/index.ts +4 -1
package/dist/pkt-index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./pkt-alert.cjs"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./pkt-alert.cjs"),t=require("./index-OhFn59AM.cjs"),r=require("./pkt-card.cjs"),n=require("./pkt-component-template.cjs"),o=require("./pkt-datepicker.cjs"),u=require("./index-kJnGegz8.cjs"),a=require("./pkt-input-wrapper.cjs"),c=require("./pkt-link.cjs"),i=require("./pkt-messagebox.cjs"),P=require("./pkt-tag.cjs");Object.defineProperty(exports,"PktAlert",{enumerable:!0,get:()=>e.PktAlert});Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>t.PktCalendar});Object.defineProperty(exports,"PktCard",{enumerable:!0,get:()=>r.PktCard});Object.defineProperty(exports,"PktComponent",{enumerable:!0,get:()=>n.PktComponent});Object.defineProperty(exports,"PktDatepicker",{enumerable:!0,get:()=>o.PktDatepicker});Object.defineProperty(exports,"PktIcon",{enumerable:!0,get:()=>u.PktIcon});Object.defineProperty(exports,"PktInputWrapper",{enumerable:!0,get:()=>a.PktInputWrapper});Object.defineProperty(exports,"PktLink",{enumerable:!0,get:()=>c.PktLink});Object.defineProperty(exports,"PktMessagebox",{enumerable:!0,get:()=>i.PktMessagebox});Object.defineProperty(exports,"PktTag",{enumerable:!0,get:()=>P.PktTag});
|
package/dist/pkt-index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PktAlert as t } from "./pkt-alert.js";
|
|
2
|
-
import { P as p } from "./index-
|
|
2
|
+
import { P as p } from "./index-D8wkW6WM.js";
|
|
3
3
|
import { PktCard as P } from "./pkt-card.js";
|
|
4
4
|
import { PktComponent as x } from "./pkt-component-template.js";
|
|
5
5
|
import { PktDatepicker as a } from "./pkt-datepicker.js";
|
|
6
|
-
import { P as s } from "./index-
|
|
6
|
+
import { P as s } from "./index-CBp5twsn.js";
|
|
7
7
|
import { PktInputWrapper as c } from "./pkt-input-wrapper.js";
|
|
8
8
|
import { PktLink as g } from "./pkt-link.js";
|
|
9
9
|
import { PktMessagebox as l } from "./pkt-messagebox.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D8H97G5s.cjs"),k=require("./ref-Bi2ZZNQq.cjs"),c=require("./index-kJnGegz8.cjs"),u=require("./class-map-DuDzlp5t.cjs"),$=require("./directive-DtixNHDT.cjs");/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2020 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as w, v as T, E as o, x as i, n as r } from "./index-
|
|
2
|
-
import { e as _, P as D, n as I } from "./ref-
|
|
3
|
-
import { o as f } from "./index-
|
|
4
|
-
import { e as c } from "./class-map-
|
|
1
|
+
import { P as w, v as T, E as o, x as i, n as r } from "./index-d6Lj2RhC.js";
|
|
2
|
+
import { e as _, P as D, n as I } from "./ref-bB529lv7.js";
|
|
3
|
+
import { o as f } from "./index-CBp5twsn.js";
|
|
4
|
+
import { e as c } from "./class-map-CC5YmUWA.js";
|
|
5
5
|
import { t as E } from "./directive-Cxhakbpr.js";
|
|
6
6
|
/**
|
|
7
7
|
* @license
|
package/dist/pkt-link.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D8H97G5s.cjs"),c=require("./ref-Bi2ZZNQq.cjs"),k=require("./class-map-DuDzlp5t.cjs"),h=require("./directive-DtixNHDT.cjs");require("./index-kJnGegz8.cjs");const f="pkt-link",u=!0,d={href:{name:"URL",description:"URL til lenken",type:"string",default:"#"},target:{name:"Mål",description:"Mål for lenken",type:["_blank","_self","_parent","_top"],default:"_self"},iconName:{name:"Ikon",description:"Ikon som skal vises ved siden av lenketeksten",type:"icon"},iconPosition:{name:"Ikonposisjon",description:"Posisjonen til ikonet i forhold til lenketeksten",type:["left","right"]},external:{name:"Ekstern lenke",description:"Vis ikon for ekstern lenke",type:"boolean",default:!1}},m={default:{description:"Innholdet i lenken"}},p={name:f,"css-class":"pkt-link","dark-mode":!0,isElement:u,props:d,slots:m};var P=Object.defineProperty,y=Object.getOwnPropertyDescriptor,i=(s,n,r,o)=>{for(var t=o>1?void 0:o?y(n,r):n,l=s.length-1,a;l>=0;l--)(a=s[l])&&(t=(o?a(n,r,t):a(t))||t);return o&&t&&P(n,r,t),t};exports.PktLink=class extends e.PktElement{constructor(){super(),this.defaultSlot=c.e(),this.href=p.props.href.default,this.iconName=void 0,this.iconPosition=void 0,this.external=p.props.external.default,this.target=p.props.target.default,this.slotController=new c.PktSlotController(this,this.defaultSlot)}render(){const n={"pkt-link":!0,"pkt-link--icon-left":!!this.iconName&&this.iconPosition==="left"||!!(this.iconName&&!this.iconPosition),"pkt-link--icon-right":!!this.iconName&&this.iconPosition==="right","pkt-link--external":this.external};return e.x`<a
|
|
2
2
|
class=${k.e(n)}
|
|
3
3
|
href=${this.href}
|
|
4
4
|
@click=${this.handleClick}
|
package/dist/pkt-link.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as f, x as k, E as h, n as i } from "./index-
|
|
2
|
-
import { e as m, P as d, n as u } from "./ref-
|
|
3
|
-
import { e as P } from "./class-map-
|
|
1
|
+
import { P as f, x as k, E as h, n as i } from "./index-d6Lj2RhC.js";
|
|
2
|
+
import { e as m, P as d, n as u } from "./ref-bB529lv7.js";
|
|
3
|
+
import { e as P } from "./class-map-CC5YmUWA.js";
|
|
4
4
|
import { t as y } from "./directive-Cxhakbpr.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-CBp5twsn.js";
|
|
6
6
|
const g = "pkt-link", v = !0, _ = {
|
|
7
7
|
href: {
|
|
8
8
|
name: "URL",
|
package/dist/pkt-messagebox.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D8H97G5s.cjs"),c=require("./ref-Bi2ZZNQq.cjs"),b=require("./class-map-DuDzlp5t.cjs"),d=require("./directive-DtixNHDT.cjs");require("./index-kJnGegz8.cjs");const k="pkt-messagebox",u=!0,g={onClose:{description:"React: Event som trigges når meldingsboksen lukkes"},"on-close":{description:"Vue: Event som trigges når meldingsboksen lukkes"}},m={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}},h={default:{description:"Innholdet i meldingsboksen"}},p={name:k,"css-class":"pkt-messagebox",isElement:u,events:g,props:m,slots:h};var f=Object.defineProperty,x=Object.getOwnPropertyDescriptor,o=(i,t,n,l)=>{for(var s=l>1?void 0:l?x(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&&f(t,n,s),s};exports.PktMessagebox=class extends e.PktElement{constructor(){super(),this.defaultSlot=c.e(),this.closable=p.props.closable.default,this.compact=p.props.compact.default,this.title="",this.skin=p.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 c.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=${b.e(t)}>
|
|
2
2
|
${this.closable?e.x`<div class="pkt-messagebox__close">
|
|
3
3
|
<button
|
|
4
4
|
@click=${this.close}
|
package/dist/pkt-messagebox.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as b, P as k, x as c, E as d, n } from "./index-
|
|
2
|
-
import { e as u, P as g, n as h } from "./ref-
|
|
3
|
-
import { e as f } from "./class-map-
|
|
1
|
+
import { r as b, P as k, x as c, E as d, n } from "./index-d6Lj2RhC.js";
|
|
2
|
+
import { e as u, P as g, n as h } from "./ref-bB529lv7.js";
|
|
3
|
+
import { e as f } from "./class-map-CC5YmUWA.js";
|
|
4
4
|
import { t as v } from "./directive-Cxhakbpr.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-CBp5twsn.js";
|
|
6
6
|
const _ = "pkt-messagebox", x = !0, y = {
|
|
7
7
|
onClose: {
|
|
8
8
|
description: "React: Event som trigges når meldingsboksen lukkes"
|
package/dist/pkt-tag.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./class-map-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./class-map-DuDzlp5t.cjs"),g=require("./directive-DtixNHDT.cjs"),t=require("./index-D8H97G5s.cjs"),o=require("./ref-Bi2ZZNQq.cjs");require("./index-kJnGegz8.cjs");const h="pkt-tag",d=!0,f={closeTag:{type:"boolean",required:!1,default:!1},size:{required:!1,default:"medium",type:["small","medium","large"]},iconName:{type:"string",required:!1},skin:{required:!1,default:"blue",type:["blue","green","red","beige","yellow","gray","blue-light"]},textStyle:{required:!1,default:"normal-text",type:["thin-text","normal-text"]},type:{required:!1,default:"button",type:["button","submit","reset"]},ariaLabel:{type:"string",required:!1,default:"close"}},k={default:{description:"Teksten til tag"}},a={name:h,"css-class":"pkt-tag",isElement:d,props:f,slots:k};var y=Object.defineProperty,b=Object.getOwnPropertyDescriptor,s=(n,e,l,r)=>{for(var i=r>1?void 0:r?b(e,l):e,p=n.length-1,c;p>=0;p--)(c=n[p])&&(i=(r?c(e,l,i):c(i))||i);return r&&i&&y(e,l,i),i};exports.PktTag=class extends t.PktElement{constructor(){super(),this.defaultSlot=o.e(),this.closeTag=a.props.closeTag.default,this.size=a.props.size.default,this.skin=a.props.skin.default,this.textStyle=a.props.textStyle.default,this.iconName=void 0,this.type=a.props.type.default,this.ariaLabel=a.props.ariaLabel.default,this._isClosed=!1,this.close=e=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:e},bubbles:!0,composed:!0}))},this.slotController=new o.PktSlotController(this,this.defaultSlot),this._isClosed=!1}render(){const e={"pkt-tag":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle},l={"pkt-tag":!0,"pkt-btn":!0,"pkt-btn--tertiary":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle,"pkt-btn--icons-right-and-left":this.closeTag&&!!this.iconName,"pkt-hide":this._isClosed};return this.closeTag?t.x`
|
|
2
2
|
<button
|
|
3
3
|
class=${u.e(l)}
|
|
4
4
|
type=${this.type}
|
package/dist/pkt-tag.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as h } from "./class-map-
|
|
1
|
+
import { e as h } from "./class-map-CC5YmUWA.js";
|
|
2
2
|
import { t as d } from "./directive-Cxhakbpr.js";
|
|
3
|
-
import { r as y, P as g, x as p, n as l } from "./index-
|
|
4
|
-
import { e as m, P as k, n as f } from "./ref-
|
|
5
|
-
import "./index-
|
|
3
|
+
import { r as y, P as g, x as p, n as l } from "./index-d6Lj2RhC.js";
|
|
4
|
+
import { e as m, P as k, n as f } from "./ref-bB529lv7.js";
|
|
5
|
+
import "./index-CBp5twsn.js";
|
|
6
6
|
const b = "pkt-tag", S = !0, $ = {
|
|
7
7
|
closeTag: {
|
|
8
8
|
type: "boolean",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const A=require("./index-
|
|
1
|
+
"use strict";const A=require("./index-D8H97G5s.cjs"),a=require("./directive-DtixNHDT.cjs");class p{constructor(e,...s){this.nodes=[],this.host=e,this.host.addController(this),this.slots=s,this.nodes=[]}hostConnected(){Array.from(this.host.childNodes).forEach(e=>{var s;if(e.nodeName==="#text"){if((s=e.nodeValue)!=null&&s.trim()){const i=document==null?void 0:document.createElement("template");i.content.appendChild(e),this.nodes.push(i)}}else this.nodes.push(e)})}hostUpdated(){this.slots.forEach(e=>{if(!e.value)return;const s=e.value.getAttribute("name"),i=this.nodes.flatMap(o=>o.getAttribute&&o.getAttribute("slot")==s?this.nodeFromElement(o,e):[]);i.length&&e.value.replaceChildren(...i)})}nodeFromElement(e,s){var i;return e===((i=s.value)==null?void 0:i.parentNode)?[]:e instanceof HTMLTemplateElement?Array.from(e.content.childNodes):e}}/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2020 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-elements",
|
|
3
|
-
"version": "12.6.
|
|
3
|
+
"version": "12.6.4",
|
|
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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@oslokommune/punkt-assets": "^12.4.0",
|
|
31
|
-
"@oslokommune/punkt-css": "^12.
|
|
31
|
+
"@oslokommune/punkt-css": "^12.6.3",
|
|
32
32
|
"sass": "^1.78.0",
|
|
33
33
|
"typescript": "^5.6.2",
|
|
34
34
|
"vite": "^5.4.4",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
56
56
|
},
|
|
57
57
|
"license": "MIT",
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "e365aa2a36162a15aaa55bb5b404132a54b989a2"
|
|
59
59
|
}
|
|
@@ -167,6 +167,9 @@ export class PktCalendar extends PktElement {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
handleArrowKey(e: KeyboardEvent, direction: number) {
|
|
170
|
+
if ((e.target as HTMLElement)?.nodeName === 'INPUT') return
|
|
171
|
+
if ((e.target as HTMLElement)?.nodeName === 'SELECT') return
|
|
172
|
+
if ((e.target as HTMLElement)?.nodeName === 'BUTTON') return
|
|
170
173
|
e.preventDefault()
|
|
171
174
|
if (!this.focusedDate) {
|
|
172
175
|
this.focusOnCurrentDate()
|
|
@@ -213,7 +216,8 @@ export class PktCalendar extends PktElement {
|
|
|
213
216
|
>
|
|
214
217
|
<nav class="pkt-cal-month-nav">
|
|
215
218
|
<div>
|
|
216
|
-
<
|
|
219
|
+
<button
|
|
220
|
+
type="button"
|
|
217
221
|
@click=${this.isPrevMonthAllowed() && this.prevMonth}
|
|
218
222
|
@keydown=${(e: KeyboardEvent) => {
|
|
219
223
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -230,11 +234,12 @@ export class PktCalendar extends PktElement {
|
|
|
230
234
|
>
|
|
231
235
|
<pkt-icon class="pkt-btn__icon" name="chevron-thin-left"></pkt-icon>
|
|
232
236
|
<span class="pkt-btn__text">${this.prevMonthString}</span>
|
|
233
|
-
</
|
|
237
|
+
</button>
|
|
234
238
|
</div>
|
|
235
239
|
${this.renderMonthNav()}
|
|
236
240
|
<div>
|
|
237
|
-
<
|
|
241
|
+
<button
|
|
242
|
+
type="button"
|
|
238
243
|
@click=${this.isNextMonthAllowed() && this.nextMonth}
|
|
239
244
|
@keydown=${(e: KeyboardEvent) => {
|
|
240
245
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -251,7 +256,7 @@ export class PktCalendar extends PktElement {
|
|
|
251
256
|
>
|
|
252
257
|
<pkt-icon class="pkt-btn__icon" name="chevron-thin-right"></pkt-icon>
|
|
253
258
|
<span class="pkt-btn__text">${this.nextMonthString}</span>
|
|
254
|
-
</
|
|
259
|
+
</button>
|
|
255
260
|
</div>
|
|
256
261
|
</nav>
|
|
257
262
|
<table
|
|
@@ -283,8 +288,10 @@ export class PktCalendar extends PktElement {
|
|
|
283
288
|
if (this.withcontrols) {
|
|
284
289
|
monthView.push(
|
|
285
290
|
html`<div class="pkt-cal-month-picker">
|
|
291
|
+
<label for="${this.id}-monthnav" class="pkt-hide">${this.strings.dates.month}</label>
|
|
286
292
|
<select
|
|
287
293
|
class="pkt-input pkt-input-compact"
|
|
294
|
+
id="${this.id}-monthnav"
|
|
288
295
|
@change=${(e: any) => {
|
|
289
296
|
this.changeMonth(this.year, e.target.value)
|
|
290
297
|
}}
|
|
@@ -294,8 +301,10 @@ export class PktCalendar extends PktElement {
|
|
|
294
301
|
html`<option value=${index} ?selected=${this.month === index}>${month}</option>`,
|
|
295
302
|
)}
|
|
296
303
|
</select>
|
|
304
|
+
<label for="${this.id}-yearnav" class="pkt-hide">${this.strings.dates.year}</label>
|
|
297
305
|
<input
|
|
298
306
|
class="pkt-input pkt-cal-input-year pkt-input-compact"
|
|
307
|
+
id="${this.id}-yearnav"
|
|
299
308
|
type="number"
|
|
300
309
|
size="4"
|
|
301
310
|
placeholder="0000"
|
|
@@ -323,11 +323,12 @@ export class PktDatepicker extends PktInputElement {
|
|
|
323
323
|
}}
|
|
324
324
|
${ref(this.inputRef)}
|
|
325
325
|
/>
|
|
326
|
-
<div class="pkt-input-prefix">Til</div>
|
|
326
|
+
<div class="pkt-input-prefix" id="${this.id}-to-label">Til</div>
|
|
327
327
|
<input
|
|
328
328
|
class=${classMap(this.inputClasses)}
|
|
329
329
|
.type=${this.inputType}
|
|
330
330
|
id="${this.id}-to"
|
|
331
|
+
aria-labelledby="${this.id}-to-label"
|
|
331
332
|
.value=${this._value[1] ?? ''}
|
|
332
333
|
min=${this.min}
|
|
333
334
|
max=${this.max}
|
|
@@ -461,6 +462,7 @@ export class PktDatepicker extends PktInputElement {
|
|
|
461
462
|
${ref(this.popupRef)}
|
|
462
463
|
>
|
|
463
464
|
<pkt-calendar
|
|
465
|
+
id="${this.id}-calendar"
|
|
464
466
|
?multiple=${this.multiple}
|
|
465
467
|
?range=${this.range}
|
|
466
468
|
?weeknumbers=${this.weeknumbers}
|
|
@@ -527,6 +529,7 @@ export class PktDatepicker extends PktInputElement {
|
|
|
527
529
|
: this.renderInput()}
|
|
528
530
|
<button
|
|
529
531
|
class="${classMap(this.buttonClasses)}"
|
|
532
|
+
type="button"
|
|
530
533
|
@click=${this.toggleCalendar}
|
|
531
534
|
?disabled=${this.disabled}
|
|
532
535
|
${ref(this.btnRef)}
|