@oslokommune/punkt-elements 16.0.5 → 16.1.0

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.
Files changed (151) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{accordionitem-CHXGzgLv.js → accordionitem-Cj74XruR.js} +31 -31
  3. package/dist/accordionitem-D7sWqDM_.cjs +34 -0
  4. package/dist/alert-C95U_RZ0.cjs +33 -0
  5. package/dist/{alert-BHSd2Vpj.js → alert-ca_hFi-u.js} +19 -20
  6. package/dist/async-directive-B158h3ba.cjs +5 -0
  7. package/dist/async-directive-CKx6pubI.js +65 -0
  8. package/dist/{button-CHUuxLQV.js → button-BRovt5nm.js} +10 -11
  9. package/dist/button-BXN_JPaH.cjs +27 -0
  10. package/dist/{card-Db9QSEqh.cjs → card-DfHo45CG.cjs} +11 -13
  11. package/dist/{card-CmfUyl_s.js → card-DvgCTN4B.js} +47 -51
  12. package/dist/{checkbox-D6nltMuc.js → checkbox-CbIUMIYt.js} +2 -2
  13. package/dist/{checkbox-Cpyay9_l.cjs → checkbox-mmn3v9ry.cjs} +1 -1
  14. package/dist/{combobox-TKTemUxN.js → combobox-CwW0md6G.js} +31 -31
  15. package/dist/combobox-TKL44xnV.cjs +135 -0
  16. package/dist/{consent-BQLkfN3d.cjs → consent-CIhFwuFO.cjs} +1 -1
  17. package/dist/{consent-knPF4PS_.js → consent-CgS1L1xF.js} +1 -1
  18. package/dist/{datepicker-CPNcXd-o.cjs → datepicker-oN9L0Wnm.cjs} +14 -14
  19. package/dist/{datepicker-MuQYeXhL.js → datepicker-qRWWzmbo.js} +51 -51
  20. package/dist/element-with-slot-1djk8KXi.js +240 -0
  21. package/dist/element-with-slot-yT8k1Z37.cjs +1 -0
  22. package/dist/helptext-B366oeR9.cjs +24 -0
  23. package/dist/{helptext-TFpeGJ1P.js → helptext-DepcDYFV.js} +32 -39
  24. package/dist/index.d.ts +39 -90
  25. package/dist/input-element-Xe9FTi2a.cjs +1 -0
  26. package/dist/{input-element-BGNbdzy2.js → input-element-n5U38pZ1.js} +8 -7
  27. package/dist/{input-wrapper-CaUY90qz.js → input-wrapper-B__6jW4U.js} +25 -28
  28. package/dist/{input-wrapper-JU4D2TGu.cjs → input-wrapper-BdFdJU-k.cjs} +7 -9
  29. package/dist/link-DLjXMpvi.cjs +7 -0
  30. package/dist/link-oGYvBLYL.js +53 -0
  31. package/dist/linkcard-BhVIc18n.js +54 -0
  32. package/dist/linkcard-C20WC6Nw.cjs +13 -0
  33. package/dist/{loader-BF9K1VCZ.js → loader-BHt9i5Xp.js} +12 -13
  34. package/dist/{loader-C1LI8Q4z.cjs → loader-DxAGCcNF.cjs} +2 -2
  35. package/dist/messagebox-B8LW0PSQ.cjs +13 -0
  36. package/dist/messagebox-DkspcMQg.js +69 -0
  37. package/dist/modal-Bfk_ncLQ.cjs +36 -0
  38. package/dist/{modal-CGHWsjk8.js → modal-p1rvuP8e.js} +26 -27
  39. package/dist/pkt-accordion.cjs +1 -1
  40. package/dist/pkt-accordion.js +2 -2
  41. package/dist/pkt-alert.cjs +1 -1
  42. package/dist/pkt-alert.js +1 -1
  43. package/dist/pkt-button.cjs +1 -1
  44. package/dist/pkt-button.js +1 -1
  45. package/dist/pkt-card.cjs +1 -1
  46. package/dist/pkt-card.js +1 -1
  47. package/dist/pkt-checkbox.cjs +1 -1
  48. package/dist/pkt-checkbox.js +1 -1
  49. package/dist/pkt-combobox.cjs +1 -1
  50. package/dist/pkt-combobox.js +1 -1
  51. package/dist/pkt-consent.cjs +1 -1
  52. package/dist/pkt-consent.js +1 -1
  53. package/dist/pkt-datepicker.cjs +1 -1
  54. package/dist/pkt-datepicker.js +2 -2
  55. package/dist/pkt-header.cjs +16 -17
  56. package/dist/pkt-header.js +62 -69
  57. package/dist/pkt-helptext.cjs +1 -1
  58. package/dist/pkt-helptext.js +1 -1
  59. package/dist/pkt-index.cjs +1 -1
  60. package/dist/pkt-index.js +22 -22
  61. package/dist/pkt-input-wrapper.cjs +1 -1
  62. package/dist/pkt-input-wrapper.js +1 -1
  63. package/dist/pkt-link.cjs +1 -1
  64. package/dist/pkt-link.js +1 -1
  65. package/dist/pkt-linkcard.cjs +1 -1
  66. package/dist/pkt-linkcard.js +1 -1
  67. package/dist/pkt-loader.cjs +1 -1
  68. package/dist/pkt-loader.js +1 -1
  69. package/dist/pkt-messagebox.cjs +1 -1
  70. package/dist/pkt-messagebox.js +1 -1
  71. package/dist/pkt-modal.cjs +1 -1
  72. package/dist/pkt-modal.js +1 -1
  73. package/dist/pkt-options-controller-DIeKSpWv.cjs +1 -0
  74. package/dist/{pkt-options-controller-Z-bPox7n.js → pkt-options-controller-W4ITGQy9.js} +1 -1
  75. package/dist/pkt-progressbar.cjs +1 -1
  76. package/dist/pkt-progressbar.js +2 -2
  77. package/dist/pkt-radiobutton.cjs +1 -1
  78. package/dist/pkt-radiobutton.js +1 -1
  79. package/dist/pkt-select.cjs +1 -1
  80. package/dist/pkt-select.js +1 -1
  81. package/dist/pkt-tabs.cjs +1 -1
  82. package/dist/pkt-tabs.js +2 -2
  83. package/dist/pkt-tag.cjs +1 -1
  84. package/dist/pkt-tag.js +1 -1
  85. package/dist/pkt-textarea.cjs +1 -1
  86. package/dist/pkt-textarea.js +1 -1
  87. package/dist/pkt-textinput.cjs +1 -1
  88. package/dist/pkt-textinput.js +1 -1
  89. package/dist/{progressbar-Bxh335uT.cjs → progressbar-CC9Qr82_.cjs} +1 -1
  90. package/dist/{progressbar-GSA4Md1u.js → progressbar-CcX-xiPI.js} +1 -1
  91. package/dist/{radiobutton-CNHCpKn0.cjs → radiobutton-BUDQYAH-.cjs} +1 -1
  92. package/dist/{radiobutton-DgC27mb0.js → radiobutton-RW3h0tJj.js} +2 -2
  93. package/dist/ref-DBGHvw2G.js +42 -0
  94. package/dist/ref-DahIePMT.cjs +5 -0
  95. package/dist/select-PuEeK4jQ.cjs +49 -0
  96. package/dist/{select-7VuYtPZv.js → select-iXKeM3yz.js} +37 -37
  97. package/dist/{tabitem-DQRzgAT4.js → tabitem-DZSzwag2.js} +30 -30
  98. package/dist/{tabitem-BKv4eN0a.cjs → tabitem-Jenus4Qd.cjs} +13 -13
  99. package/dist/{tag-DZPqFiem.js → tag-CIWBLpjv.js} +17 -18
  100. package/dist/tag-DeE1OpmF.cjs +27 -0
  101. package/dist/{textarea-VpCEjVFx.js → textarea-DR9lVDN-.js} +13 -13
  102. package/dist/{textarea-CO7Ikug5.cjs → textarea-DtiYQWjy.cjs} +7 -7
  103. package/dist/{textinput-C2AZ9ss2.js → textinput-0Bttvt9V.js} +22 -22
  104. package/dist/{textinput-DRFZU3dA.cjs → textinput-cKrjvbJW.cjs} +9 -9
  105. package/package.json +2 -2
  106. package/src/components/accordion/accordionitem.ts +4 -6
  107. package/src/components/alert/alert.ts +4 -8
  108. package/src/components/button/button.ts +4 -12
  109. package/src/components/card/card.ts +4 -19
  110. package/src/components/combobox/combobox-base.ts +0 -5
  111. package/src/components/combobox/combobox-utils.ts +1 -1
  112. package/src/components/combobox/combobox.ts +2 -1
  113. package/src/components/datepicker/datepicker.ts +2 -8
  114. package/src/components/header/header-service.ts +5 -19
  115. package/src/components/header/header.ts +4 -13
  116. package/src/components/helptext/helptext.test.ts +2 -12
  117. package/src/components/helptext/helptext.ts +5 -19
  118. package/src/components/input-wrapper/input-wrapper.test.ts +3 -3
  119. package/src/components/input-wrapper/input-wrapper.ts +5 -16
  120. package/src/components/link/link.ts +4 -12
  121. package/src/components/linkcard/linkcard.test.ts +2 -2
  122. package/src/components/linkcard/linkcard.ts +4 -13
  123. package/src/components/loader/loader.ts +4 -12
  124. package/src/components/messagebox/messagebox.ts +4 -9
  125. package/src/components/modal/modal.ts +4 -7
  126. package/src/components/select/select.ts +2 -5
  127. package/src/components/tabs/tabitem.ts +4 -7
  128. package/src/components/tabs/tabs.ts +4 -13
  129. package/src/components/tag/tag.ts +6 -12
  130. package/src/components/textarea/textarea.ts +2 -8
  131. package/src/components/textinput/textinput.ts +2 -8
  132. package/dist/accordionitem-To95GT6b.cjs +0 -34
  133. package/dist/alert-BDXWFRcf.cjs +0 -33
  134. package/dist/button-VWxZW89G.cjs +0 -27
  135. package/dist/combobox-DX2BLzIm.cjs +0 -135
  136. package/dist/helptext-BjW1WdOn.cjs +0 -24
  137. package/dist/input-element-CSDVA3Y6.cjs +0 -1
  138. package/dist/link-Bscfb6s9.js +0 -54
  139. package/dist/link-CDuv1jxx.cjs +0 -7
  140. package/dist/linkcard-3WUL0CpY.cjs +0 -13
  141. package/dist/linkcard-wNgRxJ-S.js +0 -55
  142. package/dist/messagebox-Dmot5szX.cjs +0 -13
  143. package/dist/messagebox-LBEzcr6B.js +0 -70
  144. package/dist/modal-S9MOKOaz.cjs +0 -37
  145. package/dist/pkt-options-controller-BogGk-6J.cjs +0 -1
  146. package/dist/pkt-slot-controller-D4nKlom5.cjs +0 -1
  147. package/dist/pkt-slot-controller-D7CrjM52.js +0 -95
  148. package/dist/ref-CxLwrCxt.cjs +0 -9
  149. package/dist/ref-Dma3n3i8.js +0 -102
  150. package/dist/select-PWPy5gTB.cjs +0 -49
  151. package/dist/tag-DmbgBCKu.cjs +0 -27
@@ -1,4 +1,4 @@
1
- import { i as r } from "./pkt-slot-controller-D7CrjM52.js";
1
+ import { i as r } from "./element-with-slot-1djk8KXi.js";
2
2
  class o {
3
3
  constructor(t) {
4
4
  this.nodes = [], this.options = [], this.generation = 0, this.host = t, this.host.addController(this), this.nodes = [], this.options = [], this.observer = new MutationObserver((e) => this.handleMutations(e));
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./progressbar-Bxh335uT.cjs");Object.defineProperty(exports,"PktProgressbar",{enumerable:!0,get:()=>e.PktProgressbar});exports.default=e.PktProgressbar$1;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./progressbar-CC9Qr82_.cjs");Object.defineProperty(exports,"PktProgressbar",{enumerable:!0,get:()=>e.PktProgressbar});exports.default=e.PktProgressbar$1;
@@ -1,5 +1,5 @@
1
- import { a } from "./progressbar-GSA4Md1u.js";
2
- import { P as t } from "./progressbar-GSA4Md1u.js";
1
+ import { a } from "./progressbar-CcX-xiPI.js";
2
+ import { P as t } from "./progressbar-CcX-xiPI.js";
3
3
  export {
4
4
  t as PktProgressbar,
5
5
  a as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./radiobutton-CNHCpKn0.cjs"),e=t.PktRadioButton;Object.defineProperty(exports,"PktRadioButton",{enumerable:!0,get:()=>t.PktRadioButton});exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./radiobutton-BUDQYAH-.cjs"),e=t.PktRadioButton;Object.defineProperty(exports,"PktRadioButton",{enumerable:!0,get:()=>t.PktRadioButton});exports.default=e;
@@ -1,4 +1,4 @@
1
- import { P as t } from "./radiobutton-DgC27mb0.js";
1
+ import { P as t } from "./radiobutton-RW3h0tJj.js";
2
2
  const a = t;
3
3
  export {
4
4
  t as PktRadioButton,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./select-PWPy5gTB.cjs"),t=e.PktSelect;Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>e.PktSelect});exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./select-PuEeK4jQ.cjs"),t=e.PktSelect;Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>e.PktSelect});exports.default=t;
@@ -1,4 +1,4 @@
1
- import { P as t } from "./select-7VuYtPZv.js";
1
+ import { P as t } from "./select-iXKeM3yz.js";
2
2
  const a = t;
3
3
  export {
4
4
  t as PktSelect,
package/dist/pkt-tabs.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./tabitem-BKv4eN0a.cjs");exports.PktTabItem=e.PktTabItem_default;exports.PktTabs=e.PktTabs;exports.default=e.PktTabs;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./tabitem-Jenus4Qd.cjs");exports.PktTabItem=e.PktTabItem_default;exports.PktTabs=e.PktTabs;exports.default=e.PktTabs;
package/dist/pkt-tabs.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as t } from "./tabitem-DQRzgAT4.js";
2
- import { P as e } from "./tabitem-DQRzgAT4.js";
1
+ import { a as t } from "./tabitem-DZSzwag2.js";
2
+ import { P as e } from "./tabitem-DZSzwag2.js";
3
3
  export {
4
4
  e as PktTabItem,
5
5
  t as PktTabs,
package/dist/pkt-tag.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./tag-DmbgBCKu.cjs"),t=e.PktTag;Object.defineProperty(exports,"PktTag",{enumerable:!0,get:()=>e.PktTag});exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./tag-DeE1OpmF.cjs"),t=e.PktTag;Object.defineProperty(exports,"PktTag",{enumerable:!0,get:()=>e.PktTag});exports.default=t;
package/dist/pkt-tag.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P as a } from "./tag-DZPqFiem.js";
1
+ import { P as a } from "./tag-CIWBLpjv.js";
2
2
  const o = a;
3
3
  export {
4
4
  a as PktTag,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textarea-CO7Ikug5.cjs"),t=e.PktTextarea;Object.defineProperty(exports,"PktTextarea",{enumerable:!0,get:()=>e.PktTextarea});exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textarea-DtiYQWjy.cjs"),t=e.PktTextarea;Object.defineProperty(exports,"PktTextarea",{enumerable:!0,get:()=>e.PktTextarea});exports.default=t;
@@ -1,4 +1,4 @@
1
- import { P as a } from "./textarea-VpCEjVFx.js";
1
+ import { P as a } from "./textarea-DR9lVDN-.js";
2
2
  const e = a;
3
3
  export {
4
4
  a as PktTextarea,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textinput-DRFZU3dA.cjs"),t=e.PktTextinput;Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>e.PktTextinput});exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textinput-cKrjvbJW.cjs"),t=e.PktTextinput;Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>e.PktTextinput});exports.default=t;
@@ -1,4 +1,4 @@
1
- import { P as t } from "./textinput-C2AZ9ss2.js";
1
+ import { P as t } from "./textinput-0Bttvt9V.js";
2
2
  const p = t;
3
3
  export {
4
4
  t as PktTextinput,
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("./class-map-Bokp1SoS.cjs"),e=require("./element-CMTfByxQ.cjs"),p=require("./state-BNgpvY-A.cjs"),h=require("./ref-CxLwrCxt.cjs"),b=require("./directive-C7oCP5Bh.cjs"),d=require("./utils-byXsEz1u.cjs");require("./icon-Dj0oZZSa.cjs");/**
1
+ "use strict";const n=require("./class-map-Bokp1SoS.cjs"),e=require("./element-CMTfByxQ.cjs"),p=require("./state-BNgpvY-A.cjs"),h=require("./ref-DahIePMT.cjs"),b=require("./directive-C7oCP5Bh.cjs"),d=require("./utils-byXsEz1u.cjs");require("./icon-Dj0oZZSa.cjs");/**
2
2
  * @license
3
3
  * Copyright 2018 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,7 +1,7 @@
1
1
  import { e as n } from "./class-map-3ADKve8g.js";
2
2
  import { E as g, P as _, A as c, b, n as u, t as $ } from "./element-CV9utnHJ.js";
3
3
  import { r as h } from "./state-l4hGZdFJ.js";
4
- import { e as y, n as A } from "./ref-Dma3n3i8.js";
4
+ import { e as y, n as A } from "./ref-DBGHvw2G.js";
5
5
  import { e as x, i as T, t as k } from "./directive-oAbCiebi.js";
6
6
  import { u as d } from "./utils-DznhwRXm.js";
7
7
  import "./icon-D0IQAVwS.js";
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("./element-CMTfByxQ.cjs"),r=require("./state-BNgpvY-A.cjs"),u=require("./input-element-CSDVA3Y6.cjs"),h=require("./ref-CxLwrCxt.cjs"),c=require("./class-map-Bokp1SoS.cjs");var d=Object.defineProperty,k=Object.getOwnPropertyDescriptor,i=(p,e,n,a)=>{for(var s=a>1?void 0:a?k(e,n):e,o=p.length-1,l;o>=0;o--)(l=p[o])&&(s=(a?l(e,n,s):l(s))||s);return a&&s&&d(e,n,s),s};exports.PktRadioButton=class extends u.PktInputElement{constructor(){super(...arguments),this.inputRef=h.e(),this.value="",this.checkHelptext=null,this.defaultChecked=!1,this.hasTile=!1,this.checked=null,this.type="radio",this.tagText=null,this.optionalTag=!1,this.optionalText="Valgfritt",this.requiredTag=!1,this.requiredText="Må fylles ut",this._checked=!1}connectedCallback(){super.connectedCallback()}attributeChangedCallback(e,n,a){e==="defaultChecked"&&(this._checked=this.defaultChecked),e==="checked"&&(this._checked=this.checked===""||this.checked==="true"||this.checked===!0),super.attributeChangedCallback(e,n,a)}render(){const e=c.e({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),n=c.e({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError}),a=c.e({"pkt-input-check__input-label":!0,"pkt-input-check__input-label--disabled":this.disabled,"pkt-sr-only":this.hideLabel}),s="pkt-tag pkt-tag--small pkt-tag--thin-text",o=()=>t.b`
1
+ "use strict";const t=require("./element-CMTfByxQ.cjs"),r=require("./state-BNgpvY-A.cjs"),u=require("./input-element-Xe9FTi2a.cjs"),h=require("./ref-DahIePMT.cjs"),c=require("./class-map-Bokp1SoS.cjs");var d=Object.defineProperty,k=Object.getOwnPropertyDescriptor,i=(p,e,n,a)=>{for(var s=a>1?void 0:a?k(e,n):e,o=p.length-1,l;o>=0;o--)(l=p[o])&&(s=(a?l(e,n,s):l(s))||s);return a&&s&&d(e,n,s),s};exports.PktRadioButton=class extends u.PktInputElement{constructor(){super(...arguments),this.inputRef=h.e(),this.value="",this.checkHelptext=null,this.defaultChecked=!1,this.hasTile=!1,this.checked=null,this.type="radio",this.tagText=null,this.optionalTag=!1,this.optionalText="Valgfritt",this.requiredTag=!1,this.requiredText="Må fylles ut",this._checked=!1}connectedCallback(){super.connectedCallback()}attributeChangedCallback(e,n,a){e==="defaultChecked"&&(this._checked=this.defaultChecked),e==="checked"&&(this._checked=this.checked===""||this.checked==="true"||this.checked===!0),super.attributeChangedCallback(e,n,a)}render(){const e=c.e({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),n=c.e({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError}),a=c.e({"pkt-input-check__input-label":!0,"pkt-input-check__input-label--disabled":this.disabled,"pkt-sr-only":this.hideLabel}),s="pkt-tag pkt-tag--small pkt-tag--thin-text",o=()=>t.b`
2
2
  ${this.tagText?t.b`<span class=${s+" pkt-tag--gray"}>${this.tagText}</span>`:t.A}
3
3
  ${this.optionalTag?t.b`<span class=${s+" pkt-tag--blue-light"}>${this.optionalText}</span>`:t.A}
4
4
  ${this.requiredTag?t.b`<span class=${s+" pkt-tag--beige"}>${this.requiredText}</span>`:t.A}
@@ -1,7 +1,7 @@
1
1
  import { b as h, A as n, n as s, t as d } from "./element-CV9utnHJ.js";
2
2
  import { r as k } from "./state-l4hGZdFJ.js";
3
- import { P as f } from "./input-element-BGNbdzy2.js";
4
- import { e as g, n as b } from "./ref-Dma3n3i8.js";
3
+ import { P as f } from "./input-element-n5U38pZ1.js";
4
+ import { e as g, n as b } from "./ref-DBGHvw2G.js";
5
5
  import { e as u } from "./class-map-3ADKve8g.js";
6
6
  var y = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, i = (e, a, c, l) => {
7
7
  for (var p = l > 1 ? void 0 : l ? $(a, c) : a, r = e.length - 1, o; r >= 0; r--)
@@ -0,0 +1,42 @@
1
+ import { A as o } from "./element-CV9utnHJ.js";
2
+ import { f as n } from "./async-directive-CKx6pubI.js";
3
+ import { e as r } from "./directive-oAbCiebi.js";
4
+ /**
5
+ * @license
6
+ * Copyright 2020 Google LLC
7
+ * SPDX-License-Identifier: BSD-3-Clause
8
+ */
9
+ const G = () => new c();
10
+ class c {
11
+ }
12
+ const e = /* @__PURE__ */ new WeakMap(), p = r(class extends n {
13
+ render(t) {
14
+ return o;
15
+ }
16
+ update(t, [i]) {
17
+ var h;
18
+ const s = i !== this.G;
19
+ return s && this.G !== void 0 && this.rt(void 0), (s || this.lt !== this.ct) && (this.G = i, this.ht = (h = t.options) == null ? void 0 : h.host, this.rt(this.ct = t.element)), o;
20
+ }
21
+ rt(t) {
22
+ if (this.isConnected || (t = void 0), typeof this.G == "function") {
23
+ const i = this.ht ?? globalThis;
24
+ let s = e.get(i);
25
+ s === void 0 && (s = /* @__PURE__ */ new WeakMap(), e.set(i, s)), s.get(this.G) !== void 0 && this.G.call(this.ht, void 0), s.set(this.G, t), t !== void 0 && this.G.call(this.ht, t);
26
+ } else this.G.value = t;
27
+ }
28
+ get lt() {
29
+ var t, i;
30
+ return typeof this.G == "function" ? (t = e.get(this.ht ?? globalThis)) == null ? void 0 : t.get(this.G) : (i = this.G) == null ? void 0 : i.value;
31
+ }
32
+ disconnected() {
33
+ this.lt === this.ct && this.rt(void 0);
34
+ }
35
+ reconnected() {
36
+ this.rt(this.ct);
37
+ }
38
+ });
39
+ export {
40
+ G as e,
41
+ p as n
42
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";const n=require("./element-CMTfByxQ.cjs"),o=require("./async-directive-B158h3ba.cjs"),c=require("./directive-C7oCP5Bh.cjs");/**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const r=()=>new l;class l{}const s=new WeakMap,d=c.e(class extends o.f{render(t){return n.A}update(t,[e]){var h;const i=e!==this.G;return i&&this.G!==void 0&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=e,this.ht=(h=t.options)==null?void 0:h.host,this.rt(this.ct=t.element)),n.A}rt(t){if(this.isConnected||(t=void 0),typeof this.G=="function"){const e=this.ht??globalThis;let i=s.get(e);i===void 0&&(i=new WeakMap,s.set(e,i)),i.get(this.G)!==void 0&&this.G.call(this.ht,void 0),i.set(this.G,t),t!==void 0&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){var t,e;return typeof this.G=="function"?(t=s.get(this.ht??globalThis))==null?void 0:t.get(this.G):(e=this.G)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});exports.e=r;exports.n=d;
@@ -0,0 +1,49 @@
1
+ "use strict";const p=require("./element-CMTfByxQ.cjs"),a=require("./ref-DahIePMT.cjs"),l=require("./if-defined-hKKmbsI8.cjs"),c=require("./state-BNgpvY-A.cjs"),v=require("./input-element-Xe9FTi2a.cjs"),f=require("./pkt-options-controller-DIeKSpWv.cjs"),_=require("./element-with-slot-yT8k1Z37.cjs");require("./input-wrapper-BdFdJU-k.cjs");var $=Object.defineProperty,u=(r,t,e,i)=>{for(var s=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=n(t,e,s)||s);return s&&$(t,e,s),s};class h extends v.PktInputElement{constructor(){super(...arguments),this._optionsProp=[],this._options=[]}get options(){return this._options.map(t=>({...t,selected:this.isOptionSelected(t)}))}set options(t){this._optionsProp=t,this.requestUpdate("_optionsProp",this._options)}isOptionSelected(t){return Array.isArray(this.value)?this.value.includes(t.value):t.value===this.value}findOptionByValue(t){return this._options.find(e=>e.value===t)}getSelectedOptions(){return this._options.filter(t=>this.isOptionSelected(t))}parseOptions(){var i,s;const t=this._optionsProp.length>0,e=((s=(i=this.optionsController)==null?void 0:i.nodes)==null?void 0:s.length)&&this.optionsController.nodes.length>0;t?this._options=this._optionsProp:e&&(this._options=this.optionsController.options)}willUpdate(t){super.willUpdate(t),this.parseOptions()}}u([p.n({type:Array,attribute:"options"})],h.prototype,"_optionsProp");u([c.r()],h.prototype,"_options");var x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,d=(r,t,e,i)=>{for(var s=i>1?void 0:i?b(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&x(t,e,s),s};exports.PktSelect=class extends h{constructor(){super(),this.inputRef=a.e(),this.value="",this.selectedIndex=-1,this.selectedOptions=void 0,this.optionsController=new f.PktOptionsSlotController(this)}connectedCallback(){super.connectedCallback(),this.parseOptions(),this._options.forEach(t=>{t.selected&&!this.value&&(this.value=t.value)})}add(t,e){const i={value:t.value||t.text,label:t.text||t.value,selected:t.selected,disabled:t.disabled};if(e===void 0)this._options.push(i);else if(typeof e=="number")this._options.splice(e,0,i);else{const s=e.value||e.text,o=this._options.findIndex(n=>n.value===s);o>=0?this._options.splice(o,0,i):this._options.push(i)}t.selected&&(this.value=t.value||t.text,this.selectedIndex=this._options.findIndex(s=>s.value===this.value)),this.requestUpdate()}remove(t){var e;typeof t=="number"&&(this.selectedIndex===t&&(this.value=((e=this._options[0])==null?void 0:e.value)||""),this._options.splice(t,1),this.requestUpdate())}item(t){var e;return(e=this.inputRef.value)==null?void 0:e.item(t)}namedItem(t){var e;return(e=this.inputRef.value)==null?void 0:e.namedItem(t)}showPicker(){this.inputRef.value&&"showPicker"in this.inputRef.value&&this.inputRef.value.showPicker()}attributeChangedCallback(t,e,i){var s,o;t==="options"&&(this._options=i?JSON.parse(i):[]),t==="value"&&this.value!==e&&(this.selectedIndex=this.touched?this.returnNumberOrNull((s=this.inputRef.value)==null?void 0:s.selectedIndex):this._options.findIndex(n=>n.value===i),this.selectedOptions=(o=this.inputRef.value)==null?void 0:o.selectedOptions,this.valueChanged(i,e)),super.attributeChangedCallback(t,e,i)}update(t){var e,i;super.update(t),t.has("_optionsProp")&&this._optionsProp.length>0&&(this._options=this._optionsProp,this.requestUpdate("_options"),!this.value&&this._options.length>0&&(this.value=this._options[0].value,this.selectedIndex=0)),t.has("value")&&this.value!==t.get("value")&&(this.selectedIndex=this.touched?this.returnNumberOrNull((e=this.inputRef.value)==null?void 0:e.selectedIndex):this._options.findIndex(s=>s.value===this.value),this.selectedOptions=(i=this.inputRef.value)==null?void 0:i.selectedOptions,this.valueChanged(this.value,t.get("value"))),t.has("id")&&!this.name&&this.id&&(this.name=this.id)}firstUpdated(t){var e;super.firstUpdated(t),this._optionsProp.length&&(this._options=this._optionsProp),!this.value&&this._options.length>0?(this.value=this._options[0].value,this.selectedIndex=0):this.selectedIndex=this._options.findIndex(i=>i.value===this.value),this.selectedOptions=(e=this.inputRef.value)==null?void 0:e.selectedOptions}render(){const t=`pkt-input ${this.fullwidth?"pkt-input--fullwidth":""}`;return p.b`
2
+ <pkt-input-wrapper
3
+ ?counter=${this.counter}
4
+ ?disabled=${this.disabled}
5
+ ?hasError=${this.hasError}
6
+ ?hasFieldset=${this.hasFieldset}
7
+ ?inline=${this.inline}
8
+ ?optionalTag=${this.optionalTag}
9
+ ?requiredTag=${this.requiredTag}
10
+ useWrapper=${this.useWrapper}
11
+ ariaDescribedBy=${l.o(this.ariaDescribedBy)}
12
+ class="pkt-select"
13
+ errorMessage=${l.o(this.errorMessage)}
14
+ forId=${this.id+"-input"}
15
+ helptext=${l.o(this.helptext)}
16
+ helptextDropdown=${l.o(this.helptextDropdown)}
17
+ helptextDropdownButton=${l.o(this.helptextDropdownButton)}
18
+ label=${l.o(this.label)}
19
+ optionalText=${l.o(this.optionalText)}
20
+ requiredText=${l.o(this.requiredText)}
21
+ tagText=${l.o(this.tagText)}
22
+ >
23
+ <select
24
+ class=${t}
25
+ aria-invalid=${this.hasError}
26
+ aria-errormessage=${`${this.id}-error`}
27
+ aria-labelledby=${l.o(this.ariaLabelledby)}
28
+ ?disabled=${this.disabled}
29
+ id=${this.id+"-input"}
30
+ name=${(this.name||this.id)+"-input"}
31
+ value=${this.value}
32
+ @change=${e=>{this.touched=!0,this.value=e.target.value,e.stopImmediatePropagation()}}
33
+ @input=${e=>{this.onInput(),e.stopImmediatePropagation()}}
34
+ @focus=${e=>{this.onFocus(),e.stopImmediatePropagation()}}
35
+ @blur=${e=>{this.onBlur(),e.stopImmediatePropagation()}}
36
+ ${a.n(this.inputRef)}
37
+ >
38
+ ${this._options.length>0?this._options.map(e=>p.b`<option
39
+ value=${e.value}
40
+ ?selected=${this.value==e.value||e.selected}
41
+ ?disabled=${e.disabled}
42
+ ?hidden=${e.hidden}
43
+ >
44
+ ${e.label}
45
+ </option>`):""}
46
+ </select>
47
+ <div class="pkt-contents" slot="helptext">${_.slotContent(this,"helptext")}</div>
48
+ </pkt-input-wrapper>
49
+ `}returnNumberOrNull(t){return t==null||isNaN(t)?null:t}};d([p.n({type:String})],exports.PktSelect.prototype,"value",2);exports.PktSelect=d([p.t("pkt-select")],exports.PktSelect);
@@ -1,15 +1,15 @@
1
- import { n as c, b as a, t as _ } from "./element-CV9utnHJ.js";
2
- import { e as u, n as d } from "./ref-Dma3n3i8.js";
3
- import { o as n } from "./if-defined-rXcLNTzN.js";
1
+ import { n as u, b as a, t as v } from "./element-CV9utnHJ.js";
2
+ import { e as f, n as _ } from "./ref-DBGHvw2G.js";
3
+ import { o as l } from "./if-defined-rXcLNTzN.js";
4
4
  import { r as $ } from "./state-l4hGZdFJ.js";
5
- import { P as x } from "./input-element-BGNbdzy2.js";
6
- import { P as m } from "./pkt-options-controller-Z-bPox7n.js";
7
- import { P as b } from "./pkt-slot-controller-D7CrjM52.js";
8
- import "./input-wrapper-CaUY90qz.js";
9
- var P = Object.defineProperty, v = (e, t, s, o) => {
10
- for (var i = void 0, l = e.length - 1, p; l >= 0; l--)
11
- (p = e[l]) && (i = p(t, s, i) || i);
12
- return i && P(t, s, i), i;
5
+ import { P as x } from "./input-element-n5U38pZ1.js";
6
+ import { P as m } from "./pkt-options-controller-W4ITGQy9.js";
7
+ import { s as b } from "./element-with-slot-1djk8KXi.js";
8
+ import "./input-wrapper-B__6jW4U.js";
9
+ var g = Object.defineProperty, d = (e, t, s, o) => {
10
+ for (var i = void 0, n = e.length - 1, p; n >= 0; n--)
11
+ (p = e[n]) && (i = p(t, s, i) || i);
12
+ return i && g(t, s, i), i;
13
13
  };
14
14
  class h extends x {
15
15
  constructor() {
@@ -82,20 +82,20 @@ class h extends x {
82
82
  super.willUpdate(t), this.parseOptions();
83
83
  }
84
84
  }
85
- v([
86
- c({ type: Array, attribute: "options" })
85
+ d([
86
+ u({ type: Array, attribute: "options" })
87
87
  ], h.prototype, "_optionsProp");
88
- v([
88
+ d([
89
89
  $()
90
90
  ], h.prototype, "_options");
91
- var g = Object.defineProperty, O = Object.getOwnPropertyDescriptor, f = (e, t, s, o) => {
92
- for (var i = o > 1 ? void 0 : o ? O(t, s) : t, l = e.length - 1, p; l >= 0; l--)
93
- (p = e[l]) && (i = (o ? p(t, s, i) : p(i)) || i);
94
- return o && i && g(t, s, i), i;
91
+ var O = Object.defineProperty, P = Object.getOwnPropertyDescriptor, c = (e, t, s, o) => {
92
+ for (var i = o > 1 ? void 0 : o ? P(t, s) : t, n = e.length - 1, p; n >= 0; n--)
93
+ (p = e[n]) && (i = (o ? p(t, s, i) : p(i)) || i);
94
+ return o && i && O(t, s, i), i;
95
95
  };
96
96
  let r = class extends h {
97
97
  constructor() {
98
- super(), this.inputRef = u(), this.helptextSlot = u(), this.value = "", this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new m(this), this.slotController = new b(this, this.helptextSlot), this.slotController.skipOptions = !0;
98
+ super(), this.inputRef = f(), this.value = "", this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new m(this);
99
99
  }
100
100
  connectedCallback() {
101
101
  super.connectedCallback(), this.parseOptions(), this._options.forEach((e) => {
@@ -115,7 +115,7 @@ let r = class extends h {
115
115
  else if (typeof t == "number")
116
116
  this._options.splice(t, 0, s);
117
117
  else {
118
- const o = t.value || t.text, i = this._options.findIndex((l) => l.value === o);
118
+ const o = t.value || t.text, i = this._options.findIndex((n) => n.value === o);
119
119
  i >= 0 ? this._options.splice(i, 0, s) : this._options.push(s);
120
120
  }
121
121
  e.selected && (this.value = e.value || e.text, this.selectedIndex = this._options.findIndex((o) => o.value === this.value)), this.requestUpdate();
@@ -141,7 +141,7 @@ let r = class extends h {
141
141
  }
142
142
  attributeChangedCallback(e, t, s) {
143
143
  var o, i;
144
- e === "options" && (this._options = s ? JSON.parse(s) : []), e === "value" && this.value !== t && (this.selectedIndex = this.touched ? this.returnNumberOrNull((o = this.inputRef.value) == null ? void 0 : o.selectedIndex) : this._options.findIndex((l) => l.value === s), this.selectedOptions = (i = this.inputRef.value) == null ? void 0 : i.selectedOptions, this.valueChanged(s, t)), super.attributeChangedCallback(e, t, s);
144
+ e === "options" && (this._options = s ? JSON.parse(s) : []), e === "value" && this.value !== t && (this.selectedIndex = this.touched ? this.returnNumberOrNull((o = this.inputRef.value) == null ? void 0 : o.selectedIndex) : this._options.findIndex((n) => n.value === s), this.selectedOptions = (i = this.inputRef.value) == null ? void 0 : i.selectedOptions, this.valueChanged(s, t)), super.attributeChangedCallback(e, t, s);
145
145
  }
146
146
  update(e) {
147
147
  var t, s;
@@ -163,23 +163,23 @@ let r = class extends h {
163
163
  ?optionalTag=${this.optionalTag}
164
164
  ?requiredTag=${this.requiredTag}
165
165
  useWrapper=${this.useWrapper}
166
- ariaDescribedBy=${n(this.ariaDescribedBy)}
166
+ ariaDescribedBy=${l(this.ariaDescribedBy)}
167
167
  class="pkt-select"
168
- errorMessage=${n(this.errorMessage)}
168
+ errorMessage=${l(this.errorMessage)}
169
169
  forId=${this.id + "-input"}
170
- helptext=${n(this.helptext)}
171
- helptextDropdown=${n(this.helptextDropdown)}
172
- helptextDropdownButton=${n(this.helptextDropdownButton)}
173
- label=${n(this.label)}
174
- optionalText=${n(this.optionalText)}
175
- requiredText=${n(this.requiredText)}
176
- tagText=${n(this.tagText)}
170
+ helptext=${l(this.helptext)}
171
+ helptextDropdown=${l(this.helptextDropdown)}
172
+ helptextDropdownButton=${l(this.helptextDropdownButton)}
173
+ label=${l(this.label)}
174
+ optionalText=${l(this.optionalText)}
175
+ requiredText=${l(this.requiredText)}
176
+ tagText=${l(this.tagText)}
177
177
  >
178
178
  <select
179
179
  class=${e}
180
180
  aria-invalid=${this.hasError}
181
181
  aria-errormessage=${`${this.id}-error`}
182
- aria-labelledby=${n(this.ariaLabelledby)}
182
+ aria-labelledby=${l(this.ariaLabelledby)}
183
183
  ?disabled=${this.disabled}
184
184
  id=${this.id + "-input"}
185
185
  name=${(this.name || this.id) + "-input"}
@@ -196,7 +196,7 @@ let r = class extends h {
196
196
  @blur=${(t) => {
197
197
  this.onBlur(), t.stopImmediatePropagation();
198
198
  }}
199
- ${d(this.inputRef)}
199
+ ${_(this.inputRef)}
200
200
  >
201
201
  ${this._options.length > 0 ? this._options.map(
202
202
  (t) => a`<option
@@ -209,7 +209,7 @@ let r = class extends h {
209
209
  </option>`
210
210
  ) : ""}
211
211
  </select>
212
- <div class="pkt-contents" ${d(this.helptextSlot)} name="helptext" slot="helptext"></div>
212
+ <div class="pkt-contents" slot="helptext">${b(this, "helptext")}</div>
213
213
  </pkt-input-wrapper>
214
214
  `;
215
215
  }
@@ -217,11 +217,11 @@ let r = class extends h {
217
217
  return e == null || isNaN(e) ? null : e;
218
218
  }
219
219
  };
220
- f([
221
- c({ type: String })
220
+ c([
221
+ u({ type: String })
222
222
  ], r.prototype, "value", 2);
223
- r = f([
224
- _("pkt-select")
223
+ r = c([
224
+ v("pkt-select")
225
225
  ], r);
226
226
  export {
227
227
  r as P
@@ -1,14 +1,14 @@
1
- import { P as $, b as p, n as h, t as y } from "./element-CV9utnHJ.js";
2
- import { P as C } from "./pkt-slot-controller-D7CrjM52.js";
3
- import { r as w } from "./state-l4hGZdFJ.js";
4
- import { e as x, n as f } from "./ref-Dma3n3i8.js";
1
+ import { P as k, s as $ } from "./element-with-slot-1djk8KXi.js";
2
+ import { b as p, n as h, t as y } from "./element-CV9utnHJ.js";
3
+ import { r as f } from "./state-l4hGZdFJ.js";
4
+ import { e as _, n as w } from "./ref-DBGHvw2G.js";
5
5
  import { o as u } from "./if-defined-rXcLNTzN.js";
6
6
  /**
7
7
  * @license
8
8
  * Copyright 2021 Google LLC
9
9
  * SPDX-License-Identifier: BSD-3-Clause
10
10
  */
11
- let P = class extends Event {
11
+ let C = class extends Event {
12
12
  constructor(t, s, i, e) {
13
13
  super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = s, this.callback = i, this.subscribe = e ?? !1;
14
14
  }
@@ -40,7 +40,7 @@ let m = class {
40
40
  this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
41
41
  }
42
42
  dispatchRequest() {
43
- this.host.dispatchEvent(new P(this.context, this.host, this.t, this.subscribe));
43
+ this.host.dispatchEvent(new C(this.context, this.host, this.t, this.subscribe));
44
44
  }
45
45
  };
46
46
  /**
@@ -48,7 +48,7 @@ let m = class {
48
48
  * Copyright 2021 Google LLC
49
49
  * SPDX-License-Identifier: BSD-3-Clause
50
50
  */
51
- class _ {
51
+ class N {
52
52
  get value() {
53
53
  return this.o;
54
54
  }
@@ -81,12 +81,12 @@ class _ {
81
81
  * Copyright 2021 Google LLC
82
82
  * SPDX-License-Identifier: BSD-3-Clause
83
83
  */
84
- let N = class extends Event {
84
+ let R = class extends Event {
85
85
  constructor(t, s) {
86
86
  super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = s;
87
87
  }
88
88
  };
89
- class g extends _ {
89
+ class g extends N {
90
90
  constructor(t, s, i) {
91
91
  var e, n;
92
92
  super(s.context !== void 0 ? s.initialValue : i), this.onContextRequest = (r) => {
@@ -96,7 +96,7 @@ class g extends _ {
96
96
  }, this.onProviderRequest = (r) => {
97
97
  if (r.context !== this.context || (r.contextTarget ?? r.composedPath()[0]) === this.host) return;
98
98
  const a = /* @__PURE__ */ new Set();
99
- for (const [v, { consumerHost: k }] of this.subscriptions) a.has(v) || (a.add(v), k.dispatchEvent(new P(this.context, k, v, !0)));
99
+ for (const [v, { consumerHost: x }] of this.subscriptions) a.has(v) || (a.add(v), x.dispatchEvent(new C(this.context, x, v, !0)));
100
100
  r.stopPropagation();
101
101
  }, this.host = t, s.context !== void 0 ? this.context = s.context : this.context = s, this.attachListeners(), (n = (e = this.host).addController) == null || n.call(e, this);
102
102
  }
@@ -104,7 +104,7 @@ class g extends _ {
104
104
  this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
105
105
  }
106
106
  hostConnected() {
107
- this.host.dispatchEvent(new N(this.context, this.host));
107
+ this.host.dispatchEvent(new R(this.context, this.host));
108
108
  }
109
109
  }
110
110
  /**
@@ -112,7 +112,7 @@ class g extends _ {
112
112
  * Copyright 2017 Google LLC
113
113
  * SPDX-License-Identifier: BSD-3-Clause
114
114
  */
115
- function R({ context: o }) {
115
+ function A({ context: o }) {
116
116
  return (t, s) => {
117
117
  const i = /* @__PURE__ */ new WeakMap();
118
118
  if (typeof s == "object") return { get() {
@@ -150,7 +150,7 @@ function R({ context: o }) {
150
150
  * Copyright 2022 Google LLC
151
151
  * SPDX-License-Identifier: BSD-3-Clause
152
152
  */
153
- function A({ context: o, subscribe: t }) {
153
+ function O({ context: o, subscribe: t }) {
154
154
  return (s, i) => {
155
155
  typeof i == "object" ? i.addInitializer((function() {
156
156
  new m(this, { context: o, callback: (e) => {
@@ -163,20 +163,20 @@ function A({ context: o, subscribe: t }) {
163
163
  }));
164
164
  };
165
165
  }
166
- const S = Symbol("pkt-tabs-context");
167
- var O = Object.defineProperty, T = Object.getOwnPropertyDescriptor, d = (o, t, s, i) => {
166
+ const P = Symbol("pkt-tabs-context");
167
+ var S = Object.defineProperty, T = Object.getOwnPropertyDescriptor, d = (o, t, s, i) => {
168
168
  for (var e = i > 1 ? void 0 : i ? T(t, s) : t, n = o.length - 1, r; n >= 0; n--)
169
169
  (r = o[n]) && (e = (i ? r(t, s, e) : r(e)) || e);
170
- return i && e && O(t, s, e), e;
170
+ return i && e && S(t, s, e), e;
171
171
  };
172
- let b = class extends $ {
172
+ let b = class extends k {
173
173
  constructor() {
174
- super(), this.arrowNav = !0, this.disableArrowNav = !1, this.tabRefs = [], this.tabCount = 0, this.defaultSlot = x(), this.context = {
174
+ super(...arguments), this.arrowNav = !0, this.disableArrowNav = !1, this.tabRefs = [], this.tabCount = 0, this.context = {
175
175
  useArrowNav: this.useArrowNav,
176
176
  registerTab: this.registerTab.bind(this),
177
177
  handleClick: this.handleClick.bind(this),
178
178
  handleKeyUp: this.handleKeyUp.bind(this)
179
- }, this.slotController = new C(this, this.defaultSlot);
179
+ };
180
180
  }
181
181
  get useArrowNav() {
182
182
  return this.arrowNav && !this.disableArrowNav;
@@ -214,7 +214,7 @@ let b = class extends $ {
214
214
  const o = this.useArrowNav ? "tablist" : "navigation";
215
215
  return p`
216
216
  <div class="pkt-tabs">
217
- <div class="pkt-tabs__list" role=${o} ${f(this.defaultSlot)}></div>
217
+ <div class="pkt-tabs__list" role=${o}>${$(this)}</div>
218
218
  </div>
219
219
  `;
220
220
  }
@@ -226,14 +226,14 @@ d([
226
226
  h({ type: Boolean, reflect: !0, attribute: "disable-arrow-nav" })
227
227
  ], b.prototype, "disableArrowNav", 2);
228
228
  d([
229
- w()
229
+ f()
230
230
  ], b.prototype, "tabRefs", 2);
231
231
  d([
232
- w()
232
+ f()
233
233
  ], b.prototype, "tabCount", 2);
234
234
  d([
235
- R({ context: S }),
236
- w()
235
+ A({ context: P }),
236
+ f()
237
237
  ], b.prototype, "context", 2);
238
238
  b = d([
239
239
  y("pkt-tabs")
@@ -244,9 +244,9 @@ var j = Object.defineProperty, q = Object.getOwnPropertyDescriptor, l = (o, t, s
244
244
  (r = o[n]) && (e = (i ? r(t, s, e) : r(e)) || e);
245
245
  return i && e && j(t, s, e), e;
246
246
  };
247
- let c = class extends $ {
247
+ let c = class extends k {
248
248
  constructor() {
249
- super(), this.active = !1, this.href = "", this.icon = "", this.controls = "", this.tag = "", this.tagSkin = "blue", this.index = 0, this.elementRef = x(), this.defaultSlot = x(), this.slotController = new C(this, this.defaultSlot);
249
+ super(), this.active = !1, this.href = "", this.icon = "", this.controls = "", this.tag = "", this.tagSkin = "blue", this.index = 0, this.elementRef = _();
250
250
  }
251
251
  connectedCallback() {
252
252
  super.connectedCallback(), this.updateComplete.then(() => {
@@ -263,12 +263,12 @@ let c = class extends $ {
263
263
  var r;
264
264
  const o = ((r = this.context) == null ? void 0 : r.useArrowNav) ?? !0, t = this.active ? "active" : "", s = o ? "tab" : void 0, i = o ? this.active : void 0, e = this.active || !o ? void 0 : -1, n = p`
265
265
  ${this.icon ? p`<pkt-icon name=${this.icon} class="pkt-icon--small"></pkt-icon>` : ""}
266
- <span ${f(this.defaultSlot)}></span>
266
+ <span>${$(this)}</span>
267
267
  ${this.tag ? p`<pkt-tag skin=${this.tagSkin} size="small">${this.tag}</pkt-tag>` : ""}
268
268
  `;
269
269
  return this.href ? p`
270
270
  <a
271
- ${f(this.elementRef)}
271
+ ${w(this.elementRef)}
272
272
  href=${this.href}
273
273
  class="pkt-tabs__link ${t}"
274
274
  role=${u(s)}
@@ -282,7 +282,7 @@ let c = class extends $ {
282
282
  </a>
283
283
  ` : p`
284
284
  <button
285
- ${f(this.elementRef)}
285
+ ${w(this.elementRef)}
286
286
  type="button"
287
287
  class="pkt-tabs__button pkt-link-button ${t}"
288
288
  role=${u(s)}
@@ -319,7 +319,7 @@ l([
319
319
  h({ type: Number, reflect: !0 })
320
320
  ], c.prototype, "index", 2);
321
321
  l([
322
- A({ context: S, subscribe: !0 }),
322
+ O({ context: P, subscribe: !0 }),
323
323
  h({ attribute: !1 })
324
324
  ], c.prototype, "context", 2);
325
325
  c = l([