@oslokommune/punkt-elements 17.1.2 → 18.0.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 (249) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/{accordion-BeLvLPrB.js → accordion-1_pdxTgJ.js} +27 -27
  3. package/dist/{accordion-B3GBlvUC.cjs → accordion-DobbH-Sv.cjs} +5 -5
  4. package/dist/{alert-Cs4Rmq_J.cjs → alert-COeHz6o2.cjs} +6 -6
  5. package/dist/{alert-DKK_Tb9J.js → alert-xspFetQ8.js} +26 -26
  6. package/dist/{async-directive-Da7TJpnq.cjs → async-directive-B5pcIMfO.cjs} +1 -1
  7. package/dist/{async-directive-BPf6K-V2.js → async-directive-D2Sht790.js} +5 -5
  8. package/dist/{backlink-D1y26pj3.js → backlink-C0jZFnZ2.js} +8 -8
  9. package/dist/{backlink-CMmrKTe4.cjs → backlink-ZMhqHaVs.cjs} +3 -3
  10. package/dist/base-elements/element.d.ts +13 -1
  11. package/dist/base-elements/input-element.d.ts +4 -2
  12. package/dist/{breadcrumbs-B6JGhJgC.cjs → breadcrumbs-BS64xd1s.cjs} +7 -7
  13. package/dist/{breadcrumbs-CcTQ3Grm.js → breadcrumbs-BvMownZN.js} +16 -16
  14. package/dist/{button-2-OSPJkj.js → button-C44vNLFC.js} +28 -28
  15. package/dist/{button-CE97NQIk.cjs → button-CR4CXtnj.cjs} +7 -7
  16. package/dist/{calendar-kn4SrtJy.cjs → calendar-DQ4byeom.cjs} +28 -27
  17. package/dist/{calendar-pOW3R5Pw.js → calendar-DgjCKMMV.js} +82 -68
  18. package/dist/{card-zQ0eKRMV.js → card-DhHqC265.js} +44 -44
  19. package/dist/{card-CETDFkxR.cjs → card-Dpqi6HVt.cjs} +26 -26
  20. package/dist/{checkbox-CH7NpINF.js → checkbox-BQ1K57AB.js} +23 -23
  21. package/dist/{checkbox-CQNr_sEg.cjs → checkbox-CXQxbiaX.cjs} +11 -11
  22. package/dist/{class-map-BeimMvPv.cjs → class-map-CzCE5pqG.cjs} +1 -1
  23. package/dist/{class-map-CnWCnBSX.js → class-map-F1DJHyb7.js} +3 -3
  24. package/dist/{combobox-Bvg0UO9w.cjs → combobox-BV4oDiII.cjs} +19 -18
  25. package/dist/{combobox-CRdYYlxu.js → combobox-DPck39I2.js} +55 -54
  26. package/dist/components/calendar/calendar.d.ts +21 -6
  27. package/dist/components/checkbox/checkbox.d.ts +4 -2
  28. package/dist/components/combobox/combobox-base.d.ts +2 -1
  29. package/dist/components/consent/strings.d.ts +1 -85
  30. package/dist/components/datepicker/datepicker-base.d.ts +0 -3
  31. package/dist/components/datepicker/datepicker-multiple.d.ts +0 -2
  32. package/dist/components/datepicker/datepicker-range.d.ts +0 -2
  33. package/dist/components/datepicker/datepicker-single.d.ts +0 -2
  34. package/dist/components/datepicker/datepicker-utils.d.ts +2 -1
  35. package/dist/components/fileupload/fileupload-base.d.ts +3 -2
  36. package/dist/components/header/header-service.d.ts +3 -1
  37. package/dist/components/header/header.d.ts +2 -1
  38. package/dist/components/helptext/helptext.d.ts +2 -1
  39. package/dist/components/index.d.ts +2 -0
  40. package/dist/components/input-wrapper/input-wrapper.d.ts +4 -2
  41. package/dist/components/radiobutton/radiobutton.d.ts +4 -2
  42. package/dist/components/searchinput/searchinput.d.ts +2 -1
  43. package/dist/{consent-DZEkhgJ1.js → consent-BneInZov.js} +10 -10
  44. package/dist/{consent-CyY3RyoC.cjs → consent-_N9foluG.cjs} +5 -5
  45. package/dist/controllers/strings-controller.d.ts +27 -0
  46. package/dist/{datepicker-VTqSDQk5.cjs → datepicker-9NX5qt2z.cjs} +38 -37
  47. package/dist/{datepicker-ButIas85.js → datepicker-nSSSr1U7.js} +104 -104
  48. package/dist/{directive-helpers-CI8YZqku.js → directive-helpers-BARw3nEZ.js} +1 -1
  49. package/dist/{directive-helpers-BlAV5EQD.cjs → directive-helpers-D6AAMFKs.cjs} +1 -1
  50. package/dist/docs/components/fileupload.d.ts +1 -0
  51. package/dist/element-B8OGznK0.cjs +2 -0
  52. package/dist/{element-ChsFgr_B.js → element-BKSPVgs2.js} +240 -100
  53. package/dist/{element-with-slot-Bj7nm7fO.cjs → element-with-slot-DTxILHVv.cjs} +1 -1
  54. package/dist/{element-with-slot-BvG9ctC-.js → element-with-slot-YUAUFRqw.js} +4 -4
  55. package/dist/fileupload-D05VSbEP.cjs +402 -0
  56. package/dist/{fileupload-D5IQ9HDe.js → fileupload-E0LGGNgj.js} +370 -380
  57. package/dist/{footer-DbYQUYNR.cjs → footer-DBApIdGh.cjs} +32 -32
  58. package/dist/{footer-DrR64HiK.js → footer-DYilVBMC.js} +91 -91
  59. package/dist/format-B8meU8Tm.cjs +1 -0
  60. package/dist/format-BTeSVkED.js +18 -0
  61. package/dist/{header-ClgIac6n.cjs → header-B7tbX-Ok.cjs} +84 -84
  62. package/dist/{header-menu-BAsUNKSx.cjs → header-menu-1FFWhvNc.cjs} +24 -24
  63. package/dist/{header-menu-hVPXsb8g.js → header-menu-D522-VTV.js} +75 -75
  64. package/dist/{header-KvJ1mGwA.js → header-v3GWAzOK.js} +267 -264
  65. package/dist/{heading-CFmiSuCQ.cjs → heading-CvytvcL7.cjs} +1 -1
  66. package/dist/{heading-g-_IUB5T.js → heading-rx_oSCqe.js} +16 -16
  67. package/dist/helptext-DYFdcylX.cjs +27 -0
  68. package/dist/{helptext-DZng1D5i.js → helptext-LShGPm-b.js} +18 -19
  69. package/dist/{icon-9iwd2F2l.cjs → icon-BmMC09mi.cjs} +1 -1
  70. package/dist/{icon-D-LA22xD.js → icon-HYU1f54x.js} +17 -17
  71. package/dist/{if-defined-CGzIlZ9-.js → if-defined-BF8XcDi5.js} +1 -1
  72. package/dist/if-defined-CVYApOgK.cjs +1 -0
  73. package/dist/{input-element-DBMNBplu.js → input-element-D07DmR34.js} +121 -120
  74. package/dist/input-element-DumGj_oJ.cjs +1 -0
  75. package/dist/input-wrapper-Cci_wTvD.js +308 -0
  76. package/dist/input-wrapper-DDfapoRX.cjs +58 -0
  77. package/dist/{link-DK7gvmnj.cjs → link-11g2ZNin.cjs} +4 -4
  78. package/dist/{link-D-Eqm5KH.js → link-CQK0SH4H.js} +13 -13
  79. package/dist/{linkcard-zqbg7Oqm.js → linkcard-B4GlmjJ6.js} +16 -16
  80. package/dist/linkcard-DNYsVlV6.cjs +13 -0
  81. package/dist/{listbox-Dc4rGdPi.cjs → listbox-BlFRhyI7.cjs} +15 -15
  82. package/dist/{listbox-va_E8afs.js → listbox-wd_OofyF.js} +100 -99
  83. package/dist/{loader-D_RDICnw.js → loader-0C3qVk16.js} +14 -14
  84. package/dist/{loader-CMUkVJmE.cjs → loader-B9u2qUlR.cjs} +5 -5
  85. package/dist/{messagebox-Cv8LaSxv.cjs → messagebox-BD5tGmT-.cjs} +5 -5
  86. package/dist/{messagebox-Cw-OWDya.js → messagebox-C-y1ICmr.js} +15 -15
  87. package/dist/{modal-BtInv031.cjs → modal-BzPGQYCs.cjs} +8 -8
  88. package/dist/{modal-D0t_X2dX.js → modal-Cghs3w-d.js} +20 -20
  89. package/dist/pkt-accordion.cjs +1 -1
  90. package/dist/pkt-accordion.js +1 -1
  91. package/dist/pkt-alert.cjs +1 -1
  92. package/dist/pkt-alert.js +1 -1
  93. package/dist/pkt-backlink.cjs +1 -1
  94. package/dist/pkt-backlink.js +1 -1
  95. package/dist/pkt-breadcrumbs.cjs +1 -1
  96. package/dist/pkt-breadcrumbs.js +1 -1
  97. package/dist/pkt-button.cjs +1 -1
  98. package/dist/pkt-button.js +1 -1
  99. package/dist/pkt-calendar.cjs +1 -1
  100. package/dist/pkt-calendar.js +1 -1
  101. package/dist/pkt-card.cjs +1 -1
  102. package/dist/pkt-card.js +1 -1
  103. package/dist/pkt-checkbox.cjs +1 -1
  104. package/dist/pkt-checkbox.js +1 -1
  105. package/dist/pkt-combobox.cjs +1 -1
  106. package/dist/pkt-combobox.js +1 -1
  107. package/dist/pkt-consent.cjs +1 -1
  108. package/dist/pkt-consent.js +1 -1
  109. package/dist/pkt-datepicker.cjs +1 -1
  110. package/dist/pkt-datepicker.js +1 -1
  111. package/dist/pkt-fileupload.cjs +1 -1
  112. package/dist/pkt-fileupload.js +1 -1
  113. package/dist/pkt-footer.cjs +1 -1
  114. package/dist/pkt-footer.js +1 -1
  115. package/dist/pkt-header-menu.cjs +1 -1
  116. package/dist/pkt-header-menu.js +1 -1
  117. package/dist/pkt-header.cjs +1 -1
  118. package/dist/pkt-header.js +1 -1
  119. package/dist/pkt-heading.cjs +1 -1
  120. package/dist/pkt-heading.js +1 -1
  121. package/dist/pkt-helptext.cjs +1 -1
  122. package/dist/pkt-helptext.js +1 -1
  123. package/dist/pkt-icon.cjs +1 -1
  124. package/dist/pkt-icon.js +1 -1
  125. package/dist/pkt-index.cjs +1 -1
  126. package/dist/pkt-index.js +35 -34
  127. package/dist/pkt-input-wrapper.cjs +1 -1
  128. package/dist/pkt-input-wrapper.js +1 -1
  129. package/dist/pkt-link.cjs +1 -1
  130. package/dist/pkt-link.js +1 -1
  131. package/dist/pkt-linkcard.cjs +1 -1
  132. package/dist/pkt-linkcard.js +1 -1
  133. package/dist/pkt-listbox.cjs +1 -1
  134. package/dist/pkt-listbox.js +1 -1
  135. package/dist/pkt-loader.cjs +1 -1
  136. package/dist/pkt-loader.js +1 -1
  137. package/dist/pkt-messagebox.cjs +1 -1
  138. package/dist/pkt-messagebox.js +1 -1
  139. package/dist/pkt-modal.cjs +1 -1
  140. package/dist/pkt-modal.js +1 -1
  141. package/dist/{pkt-options-controller-C5EBX2T0.cjs → pkt-options-controller-CEEAqXaB.cjs} +1 -1
  142. package/dist/{pkt-options-controller-B77vH3PE.js → pkt-options-controller-PtjhmTGk.js} +1 -1
  143. package/dist/pkt-progressbar.cjs +1 -1
  144. package/dist/pkt-progressbar.js +1 -1
  145. package/dist/pkt-radiobutton.cjs +1 -1
  146. package/dist/pkt-radiobutton.js +1 -1
  147. package/dist/pkt-searchinput.cjs +1 -1
  148. package/dist/pkt-searchinput.js +1 -1
  149. package/dist/pkt-select.cjs +1 -1
  150. package/dist/pkt-select.js +1 -1
  151. package/dist/pkt-tabs.cjs +1 -1
  152. package/dist/pkt-tabs.js +1 -1
  153. package/dist/pkt-tag.cjs +1 -1
  154. package/dist/pkt-tag.js +1 -1
  155. package/dist/pkt-textarea.cjs +1 -1
  156. package/dist/pkt-textarea.js +1 -1
  157. package/dist/pkt-textinput.cjs +1 -1
  158. package/dist/pkt-textinput.js +1 -1
  159. package/dist/pkt-timepicker.cjs +1 -1
  160. package/dist/pkt-timepicker.js +1 -1
  161. package/dist/{progressbar-CbcfLerF.js → progressbar-BexQQw1o.js} +21 -21
  162. package/dist/{progressbar-D5MmnQId.cjs → progressbar-X9mSvpjw.cjs} +5 -5
  163. package/dist/{radiobutton-BUnf3EPi.js → radiobutton-CkhTasn4.js} +24 -24
  164. package/dist/{radiobutton-DpsO1F-8.cjs → radiobutton-ln29Ad3U.cjs} +8 -8
  165. package/dist/{ref-CQoEIIp0.cjs → ref-CHbJYtKE.cjs} +1 -1
  166. package/dist/{ref-CWD6PjVd.js → ref-Chc_DZAb.js} +2 -2
  167. package/dist/{repeat-sY6B7fAT.cjs → repeat-CHDs__rN.cjs} +1 -1
  168. package/dist/{repeat-C02g7d5S.js → repeat-P9SMlKd5.js} +4 -4
  169. package/dist/searchinput-CPgMEAZZ.cjs +60 -0
  170. package/dist/{searchinput-DwnjsvJ1.js → searchinput-Da7dKHBH.js} +43 -43
  171. package/dist/{select-BOJi6H6T.cjs → select-DCuvdAuK.cjs} +4 -3
  172. package/dist/{select-DMre80qs.js → select-jabMSjft.js} +21 -20
  173. package/dist/shared-strings/consent.d.ts +71 -0
  174. package/dist/shared-strings/format.d.ts +21 -0
  175. package/dist/shared-strings/index.d.ts +14 -0
  176. package/dist/shared-strings/nb.d.ts +118 -0
  177. package/dist/shared-strings/resolve.d.ts +12 -0
  178. package/dist/shared-strings/store.d.ts +27 -0
  179. package/dist/shared-strings/types.d.ts +29 -0
  180. package/dist/shared-types/fileupload.d.ts +0 -27
  181. package/dist/shared-types/index.d.ts +1 -2
  182. package/dist/shared-utils/combobox/index.d.ts +1 -0
  183. package/dist/shared-utils/combobox/input-utils.d.ts +2 -1
  184. package/dist/shared-utils/combobox/messages.d.ts +7 -0
  185. package/dist/shared-utils/combobox/option-utils.d.ts +2 -1
  186. package/dist/shared-utils/combobox/selection-manager.d.ts +3 -2
  187. package/dist/{tabs-Cf9ai0FD.cjs → tabs-DV5CQNDL.cjs} +7 -7
  188. package/dist/{tabs-TvxgbrCF.js → tabs-D_hoi1zu.js} +32 -32
  189. package/dist/tag-BxYulmZn.cjs +27 -0
  190. package/dist/{tag-Ds6n1LIs.js → tag-DK5SgKry.js} +33 -32
  191. package/dist/tests/strings-override.test.d.ts +0 -0
  192. package/dist/{textarea-vfzIcXhX.js → textarea-BR7Riace.js} +30 -29
  193. package/dist/{textarea-BydiLM9Z.cjs → textarea-ffBD_VHq.cjs} +3 -2
  194. package/dist/{textinput-CMP2jPP_.js → textinput-CRNrsRNV.js} +28 -27
  195. package/dist/{textinput-DGdicNSx.cjs → textinput-CtHFzAux.cjs} +13 -12
  196. package/dist/timepicker-AfgJipo6.cjs +196 -0
  197. package/dist/{timepicker-ClwgYywH.js → timepicker-ixs_E5RY.js} +67 -64
  198. package/package.json +3 -3
  199. package/src/components/backlink/backlink.ts +1 -1
  200. package/src/components/breadcrumbs/breadcrumbs.ts +1 -1
  201. package/src/components/calendar/calendar.ts +56 -26
  202. package/src/components/checkbox/checkbox.test.ts +0 -2
  203. package/src/components/checkbox/checkbox.ts +8 -4
  204. package/src/components/combobox/combobox-base.ts +2 -1
  205. package/src/components/combobox/combobox-value.ts +10 -9
  206. package/src/components/combobox/combobox.selection.test.ts +5 -1
  207. package/src/components/combobox/combobox.ts +4 -1
  208. package/src/components/consent/strings.ts +1 -125
  209. package/src/components/datepicker/date-tags.ts +4 -1
  210. package/src/components/datepicker/datepicker-base.ts +2 -6
  211. package/src/components/datepicker/datepicker-multiple.ts +0 -3
  212. package/src/components/datepicker/datepicker-range.ts +4 -7
  213. package/src/components/datepicker/datepicker-single.ts +0 -3
  214. package/src/components/datepicker/datepicker-utils.test.ts +5 -5
  215. package/src/components/datepicker/datepicker-utils.ts +6 -11
  216. package/src/components/datepicker/datepicker.ts +8 -1
  217. package/src/components/fileupload/fileupload-base.ts +25 -16
  218. package/src/components/fileupload/fileupload-renderers.ts +2 -1
  219. package/src/components/fileupload/fileupload.test.ts +16 -0
  220. package/src/components/fileupload/fileupload.ts +19 -15
  221. package/src/components/header/header-global.ts +3 -3
  222. package/src/components/header/header-service.ts +13 -8
  223. package/src/components/header/header.ts +2 -1
  224. package/src/components/helptext/helptext.test.ts +1 -1
  225. package/src/components/helptext/helptext.ts +3 -3
  226. package/src/components/index.ts +9 -0
  227. package/src/components/input-wrapper/input-wrapper.ts +18 -10
  228. package/src/components/listbox/listbox.ts +3 -3
  229. package/src/components/radiobutton/radiobutton.ts +8 -4
  230. package/src/components/searchinput/searchinput.ts +5 -3
  231. package/src/components/select/select.ts +1 -0
  232. package/src/components/tag/tag.ts +2 -1
  233. package/src/components/textarea/textarea.ts +1 -0
  234. package/src/components/textinput/textinput.ts +1 -0
  235. package/src/components/timepicker/timepicker.ts +23 -21
  236. package/dist/element-BA8v6S7z.cjs +0 -2
  237. package/dist/fileupload-BeWiTAoW.cjs +0 -401
  238. package/dist/helptext-CTtKJcML.cjs +0 -27
  239. package/dist/if-defined-B89_ZeCj.cjs +0 -1
  240. package/dist/input-element-DYmQw-fH.cjs +0 -1
  241. package/dist/input-wrapper-BmxNvznr.js +0 -128
  242. package/dist/input-wrapper-D-fPaTbY.js +0 -176
  243. package/dist/input-wrapper-D5PR0rJn.cjs +0 -1
  244. package/dist/input-wrapper-Q-B-aBeb.cjs +0 -54
  245. package/dist/linkcard-B29cmZqh.cjs +0 -13
  246. package/dist/searchinput-Bh975rjX.cjs +0 -60
  247. package/dist/tag-CzojNU7z.cjs +0 -27
  248. package/dist/timepicker-DYrnLHqN.cjs +0 -195
  249. package/dist/translations/no.json.d.ts +0 -94
@@ -1,15 +1,15 @@
1
- import { a as e, d as t, n, o as r, p as i, s as a } from "./element-ChsFgr_B.js";
2
- import { t as o } from "./class-map-CnWCnBSX.js";
3
- import { n as s } from "./element-with-slot-BvG9ctC-.js";
4
- import "./icon-D-LA22xD.js";
5
- import { t as c } from "./if-defined-CGzIlZ9-.js";
6
- import { n as l, t as u } from "./ref-CWD6PjVd.js";
7
- import "./tag-Ds6n1LIs.js";
8
- import { t as d } from "./repeat-C02g7d5S.js";
9
- import { a as f, c as p, i as m, o as h, r as g, s as _ } from "./listbox-va_E8afs.js";
10
- import { t as v } from "./input-element-DBMNBplu.js";
11
- import { t as y } from "./pkt-options-controller-B77vH3PE.js";
12
- import "./input-wrapper-BmxNvznr.js";
1
+ import { _ as e, d as t, h as n, l as r, n as i, u as a } from "./element-BKSPVgs2.js";
2
+ import { t as o } from "./class-map-F1DJHyb7.js";
3
+ import { n as s } from "./element-with-slot-YUAUFRqw.js";
4
+ import "./icon-HYU1f54x.js";
5
+ import { t as c } from "./if-defined-BF8XcDi5.js";
6
+ import { n as l, t as u } from "./ref-Chc_DZAb.js";
7
+ import "./tag-DK5SgKry.js";
8
+ import { t as d } from "./repeat-P9SMlKd5.js";
9
+ import { a as f, c as p, i as m, o as h, r as g, s as _ } from "./listbox-wd_OofyF.js";
10
+ import { t as v } from "./input-element-D07DmR34.js";
11
+ import { t as y } from "./pkt-options-controller-PtjhmTGk.js";
12
+ import "./input-wrapper-Cci_wTvD.js";
13
13
  //#region ../../shared-utils/combobox/input-utils.ts
14
14
  var b = (e, t, n) => {
15
15
  switch (e) {
@@ -499,31 +499,31 @@ var b = (e, t, n) => {
499
499
  }
500
500
  valueChanged() {}
501
501
  };
502
- n([r({
502
+ i([a({
503
503
  type: String,
504
504
  reflect: !0
505
- })], O.prototype, "value", void 0), n([r({ type: Array })], O.prototype, "options", void 0), n([r({
505
+ })], O.prototype, "value", void 0), i([a({ type: Array })], O.prototype, "options", void 0), i([a({
506
506
  type: Array,
507
507
  attribute: "default-options"
508
- })], O.prototype, "defaultOptions", void 0), n([r({
508
+ })], O.prototype, "defaultOptions", void 0), i([a({
509
509
  type: Boolean,
510
510
  attribute: "allow-user-input"
511
- })], O.prototype, "allowUserInput", void 0), n([r({ type: Boolean })], O.prototype, "typeahead", void 0), n([r({
511
+ })], O.prototype, "allowUserInput", void 0), i([a({ type: Boolean })], O.prototype, "typeahead", void 0), i([a({
512
512
  type: Boolean,
513
513
  attribute: "include-search"
514
- })], O.prototype, "includeSearch", void 0), n([r({
514
+ })], O.prototype, "includeSearch", void 0), i([a({
515
515
  type: String,
516
516
  attribute: "search-placeholder"
517
- })], O.prototype, "searchPlaceholder", void 0), n([r({ type: Boolean })], O.prototype, "multiple", void 0), n([r({ type: Number })], O.prototype, "maxlength", void 0), n([r({
517
+ })], O.prototype, "searchPlaceholder", void 0), i([a({ type: Boolean })], O.prototype, "multiple", void 0), i([a({ type: Number })], O.prototype, "maxlength", void 0), i([a({
518
518
  type: String,
519
519
  attribute: "display-value-as"
520
- })], O.prototype, "displayValueAs", void 0), n([r({
520
+ })], O.prototype, "displayValueAs", void 0), i([a({
521
521
  type: String,
522
522
  attribute: "tag-placement"
523
- })], O.prototype, "tagPlacement", void 0), n([r({
523
+ })], O.prototype, "tagPlacement", void 0), i([a({
524
524
  type: Boolean,
525
525
  attribute: "open"
526
- })], O.prototype, "isOpen", void 0), n([e()], O.prototype, "_options", void 0), n([e()], O.prototype, "_value", void 0), n([e()], O.prototype, "_isOptionsOpen", void 0), n([e()], O.prototype, "_userInfoMessage", void 0), n([e()], O.prototype, "_addValueText", void 0), n([e()], O.prototype, "_maxIsReached", void 0), n([e()], O.prototype, "_search", void 0), n([e()], O.prototype, "_inputFocus", void 0);
526
+ })], O.prototype, "isOpen", void 0), i([r()], O.prototype, "_options", void 0), i([r()], O.prototype, "_value", void 0), i([r()], O.prototype, "_isOptionsOpen", void 0), i([r()], O.prototype, "_userInfoMessage", void 0), i([r()], O.prototype, "_addValueText", void 0), i([r()], O.prototype, "_maxIsReached", void 0), i([r()], O.prototype, "_search", void 0), i([r()], O.prototype, "_inputFocus", void 0);
527
527
  //#endregion
528
528
  //#region src/components/combobox/combobox-value.ts
529
529
  var k = class extends O {
@@ -531,14 +531,14 @@ var k = class extends O {
531
531
  if (this.disabled) return;
532
532
  this.touched = !0, this._userInfoMessage = "", this._addValueText = null;
533
533
  let t = m(this.options, e)?.value || null, n = this._value.includes(e || t || ""), r = !!t, i = this._options.find((t) => t.value === e)?.disabled || !1, a = !e?.trim(), o = !this.multiple, s = this.multiple, c = p(this._value.length, this.maxlength), l = !1, u = !0, d = "", f = "";
534
- i || (!r && this.allowUserInput && !a ? (this.addNewUserValue(e), d = "Ny verdi lagt til", l = s) : !r && !this.allowUserInput ? (o && this._value[0] && this.removeValue(this._value[0]), u = !1, l = !0, d = "Ingen treff i søket") : n ? (this.removeValue(t), l = !0, o && this._hasTextInput && this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "")) : a && o ? (this.removeAllSelected(), l = !0) : o ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(t), l = !1) : s && !c ? (this.setSelected(t), l = !0) : s && c ? (d = "Maks antall valg nådd", u = !1, f = e) : (o && this.removeAllSelected(), d = "Ingen gyldig verdi valgt", u = !1, l = !0, f = e), this._isOptionsOpen = l, l || (o && this._hasTextInput && (this._suppressNextOpen = !0), window.setTimeout(() => {
534
+ i || (!r && this.allowUserInput && !a ? (this.addNewUserValue(e), d = "valueAdded", l = s) : !r && !this.allowUserInput ? (o && this._value[0] && this.removeValue(this._value[0]), u = !1, l = !0, d = "noResults") : n ? (this.removeValue(t), l = !0, o && this._hasTextInput && this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "")) : a && o ? (this.removeAllSelected(), l = !0) : o ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(t), l = !1) : s && !c ? (this.setSelected(t), l = !0) : s && c ? (d = "maxSelected", u = !1, f = e) : (o && this.removeAllSelected(), d = "noValidValue", u = !1, l = !0, f = e), this._isOptionsOpen = l, l || (o && this._hasTextInput && (this._suppressNextOpen = !0), window.setTimeout(() => {
535
535
  this.focusTrigger();
536
536
  }, 0)), this._userInfoMessage = d, this._search = f || "", this.resetComboboxInput(u), s && this.updateMaxReached());
537
537
  }
538
538
  setSelected(e) {
539
539
  if (!this._value.includes(e)) {
540
540
  if (this.multiple && p(this._value.length, this.maxlength)) {
541
- this._userInfoMessage = "Maks antall valg nådd";
541
+ this._userInfoMessage = "maxSelected";
542
542
  return;
543
543
  }
544
544
  !this.multiple && this.removeAllSelected(), this._value = e ? [...this._value, e] : this._value, w.markOptionSelected(this._options, e), this.resetComboboxInput(!0);
@@ -553,7 +553,7 @@ var k = class extends O {
553
553
  addAllOptions() {
554
554
  if (this.multiple) {
555
555
  if (this.maxlength && this._options.length > this.maxlength) {
556
- this._userInfoMessage = "For mange valgt";
556
+ this._userInfoMessage = "tooManySelected";
557
557
  return;
558
558
  }
559
559
  this._value = this._options.map((e) => e.value), w.markAllSelected(this._options), this.requestUpdate();
@@ -565,7 +565,7 @@ var k = class extends O {
565
565
  addValue() {
566
566
  let e = this.inputRef.value?.value.trim() || "";
567
567
  if (this._search = e, e && this._value.includes(e)) {
568
- this.resetComboboxInput(!0), this._userInfoMessage = "Verdien er allerede valgt";
568
+ this.resetComboboxInput(!0), this._userInfoMessage = "alreadySelected";
569
569
  return;
570
570
  }
571
571
  this.toggleValue(e);
@@ -855,8 +855,9 @@ var k = class extends O {
855
855
  super.attributeChangedCallback(e, t, n);
856
856
  }
857
857
  render() {
858
- return i`
858
+ return e`
859
859
  <pkt-input-wrapper
860
+ .strings=${this.strings}
860
861
  .size=${this.inputSize}
861
862
  .label=${this.label}
862
863
  .helptext=${this.helptext}
@@ -902,12 +903,12 @@ var k = class extends O {
902
903
  aria-description=${c(this._selectionDescription || void 0)}
903
904
  tabindex=${this._hasTextInput || this.disabled ? "-1" : "0"}
904
905
  @click=${this.handleInputClick}
905
- @keydown=${this._hasTextInput ? t : this.handleSelectOnlyKeydown}
906
+ @keydown=${this._hasTextInput ? n : this.handleSelectOnlyKeydown}
906
907
  ${l(this.triggerRef)}
907
908
  >
908
- ${!this._hasTextInput && this.placeholder && (!this._value.length || this.multiple && this.tagPlacement == "outside") && !this._inputFocus ? i`<span class="pkt-combobox__placeholder" @click=${this.handlePlaceholderClick}
909
+ ${!this._hasTextInput && this.placeholder && (!this._value.length || this.multiple && this.tagPlacement == "outside") && !this._inputFocus ? e`<span class="pkt-combobox__placeholder" @click=${this.handlePlaceholderClick}
909
910
  >${this.placeholder}</span
910
- >` : this.tagPlacement === "outside" ? t : this.renderSingleOrMultipleValues()}
911
+ >` : this.tagPlacement === "outside" ? n : this.renderSingleOrMultipleValues()}
911
912
  ${this.renderInputField()}
912
913
  <pkt-icon
913
914
  class=${o({
@@ -930,7 +931,7 @@ var k = class extends O {
930
931
  ?allow-user-input=${this.allowUserInput && !this._maxIsReached}
931
932
  ?max-is-reached=${this._maxIsReached}
932
933
  .customUserInput=${c(this._addValueText)}
933
- .userMessage=${this._userInfoMessage}
934
+ .userMessage=${this._userInfoMessage ? this.pktStrings.get("combobox")[this._userInfoMessage] : ""}
934
935
  @search=${this.handleSearch}
935
936
  @option-toggle=${this.handleOptionToggled}
936
937
  @select-all=${this.addAllOptions}
@@ -942,14 +943,14 @@ var k = class extends O {
942
943
  ></pkt-listbox>
943
944
  </div>
944
945
 
945
- ${this.tagPlacement === "outside" && this.multiple ? i`<div class="pkt-combobox__tags-outside">
946
+ ${this.tagPlacement === "outside" && this.multiple ? e`<div class="pkt-combobox__tags-outside">
946
947
  ${this.renderSingleOrMultipleValues()}
947
- </div>` : t}
948
+ </div>` : n}
948
949
  </pkt-input-wrapper>
949
950
  `;
950
951
  }
951
952
  renderInputField() {
952
- return this.typeahead || this.allowUserInput ? i`
953
+ return this.typeahead || this.allowUserInput ? e`
953
954
  <div class="pkt-combobox__input-div combobox__input">
954
955
  <input
955
956
  type="text"
@@ -974,7 +975,7 @@ var k = class extends O {
974
975
  ${l(this.inputRef)}
975
976
  />
976
977
  </div>
977
- ` : i`
978
+ ` : e`
978
979
  <input
979
980
  type="hidden"
980
981
  id="${this.id}-input"
@@ -985,23 +986,23 @@ var k = class extends O {
985
986
  `;
986
987
  }
987
988
  renderSingleOrMultipleValues() {
988
- if (!this.multiple && this._hasTextInput) return t;
989
- let e = !this.multiple, n = this.renderValueTag(m(this.options, this._value[0])), r = this.tagPlacement === "outside", a = i`
989
+ if (!this.multiple && this._hasTextInput) return n;
990
+ let t = !this.multiple, r = this.renderValueTag(m(this.options, this._value[0])), i = this.tagPlacement === "outside", a = e`
990
991
  <ul role="list" class="pkt-combobox__tag-list">
991
- ${d(this._value, (e) => e, (e, n) => {
992
- let a = m(this.options, e), o = a?.tagSkinColor;
993
- return i`
992
+ ${d(this._value, (e) => e, (t, r) => {
993
+ let a = m(this.options, t), o = a?.tagSkinColor;
994
+ return e`
994
995
  <li
995
996
  role="listitem"
996
- @click=${r ? t : (e) => e.stopPropagation()}
997
- @mousedown=${r ? t : (e) => e.preventDefault()}
997
+ @click=${i ? n : (e) => e.stopPropagation()}
998
+ @mousedown=${i ? n : (e) => e.preventDefault()}
998
999
  >
999
1000
  <pkt-tag
1000
1001
  skin=${o || "blue-dark"}
1001
1002
  ?closeTag=${!this.disabled}
1002
- .buttonTabindex=${r ? void 0 : -1}
1003
- @close=${() => this.handleTagRemove(e)}
1004
- @keydown=${r ? t : (e) => this.handleTagKeydown(e, n)}
1003
+ .buttonTabindex=${i ? void 0 : -1}
1004
+ @close=${() => this.handleTagRemove(t)}
1005
+ @keydown=${i ? n : (e) => this.handleTagKeydown(e, r)}
1005
1006
  >
1006
1007
  ${this.renderValueTag(a)}
1007
1008
  </pkt-tag>
@@ -1010,25 +1011,25 @@ var k = class extends O {
1010
1011
  })}
1011
1012
  </ul>
1012
1013
  `;
1013
- return e ? n : a;
1014
+ return t ? r : a;
1014
1015
  }
1015
- renderValueTag(e) {
1016
- if (!e) return "";
1016
+ renderValueTag(t) {
1017
+ if (!t) return "";
1017
1018
  switch (this.displayValueAs) {
1018
- case "prefixAndValue": return i`<span class="pkt-combobox__value" data-focusfix=${this.id}
1019
- >${e.prefix || ""} ${e.value}</span
1019
+ case "prefixAndValue": return e`<span class="pkt-combobox__value" data-focusfix=${this.id}
1020
+ >${t.prefix || ""} ${t.value}</span
1020
1021
  >`;
1021
- case "value": return i`<span class="pkt-combobox__value" data-focusfix=${this.id}
1022
- >${e.value}</span
1022
+ case "value": return e`<span class="pkt-combobox__value" data-focusfix=${this.id}
1023
+ >${t.value}</span
1023
1024
  >`;
1024
- default: return i`<span class="pkt-combobox__value" data-focusfix=${this.id}
1025
- >${e.label || e.value}</span
1025
+ default: return e`<span class="pkt-combobox__value" data-focusfix=${this.id}
1026
+ >${t.label || t.value}</span
1026
1027
  >`;
1027
1028
  }
1028
1029
  }
1029
1030
  };
1030
1031
  try {
1031
- a("pkt-combobox")(j);
1032
+ t("pkt-combobox")(j);
1032
1033
  } catch {
1033
1034
  console.warn("Forsøker å definere <pkt-combobox>, men den er allerede definert");
1034
1035
  }
@@ -13,12 +13,27 @@ export declare class PktCalendar extends PktElement {
13
13
  withcontrols: boolean;
14
14
  currentmonth: Date | null;
15
15
  today: string | null;
16
- dayStrings: string[];
17
- dayStringsLong: string[];
18
- monthStrings: string[];
19
- weekString: string;
20
- prevMonthString: string;
21
- nextMonthString: string;
16
+ /** @deprecated Bruk `strings={{ dates: { daysShort: [...] } }}` eller `setPktStrings()`. */
17
+ dayStrings?: string[];
18
+ /** @deprecated Bruk `strings={{ dates: { days: [...] } }}` eller `setPktStrings()`. */
19
+ dayStringsLong?: string[];
20
+ /** @deprecated Bruk `strings={{ dates: { months: [...] } }}` eller `setPktStrings()`. */
21
+ monthStrings?: string[];
22
+ /** @deprecated Bruk `strings={{ dates: { week: '...' } }}` eller `setPktStrings()`. */
23
+ weekString?: string;
24
+ /** @deprecated Bruk `strings={{ calendar: { prevMonth: '...' } }}` eller `setPktStrings()`. */
25
+ prevMonthString?: string;
26
+ /** @deprecated Bruk `strings={{ calendar: { nextMonth: '...' } }}` eller `setPktStrings()`. */
27
+ nextMonthString?: string;
28
+ /** Datonavn og navigasjonstekster, med de utfasede enkeltpropene lagt oppå. */
29
+ protected get calendarStrings(): {
30
+ daysShort: string[];
31
+ days: string[];
32
+ months: string[];
33
+ week: string;
34
+ prevMonth: string;
35
+ nextMonth: string;
36
+ };
22
37
  private _selected;
23
38
  private inRange;
24
39
  private rangeHovered;
@@ -17,9 +17,11 @@ export declare class PktCheckbox extends PktInputElement<Props> {
17
17
  type: string;
18
18
  tagText: string | null;
19
19
  optionalTag: boolean;
20
- optionalText: string;
20
+ /** @deprecated Bruk `strings={{ forms: { optional: '…' } }}` eller `setPktStrings()`. */
21
+ optionalText?: string;
21
22
  requiredTag: boolean;
22
- requiredText: string;
23
+ /** @deprecated Bruk `strings={{ forms: { required: '…' } }}` eller `setPktStrings()`. */
24
+ requiredText?: string;
23
25
  connectedCallback(): void;
24
26
  attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
25
27
  protected firstUpdated(_changedProperties: PropertyValues): void;
@@ -2,6 +2,7 @@ import { Ref } from 'lit/directives/ref.js';
2
2
  import { PktInputElement } from '../../base-elements/input-element';
3
3
  import { IPktComboboxOption, TPktComboboxTagPlacement } from './combobox-types';
4
4
  import { default as PktListbox } from '../listbox';
5
+ import { TComboboxMessageKey } from '../../shared-utils/combobox';
5
6
  /**
6
7
  * Base class for PktCombobox.
7
8
  * Declares all reactive properties, state, refs, and simple helpers.
@@ -23,7 +24,7 @@ export declare class ComboboxBase extends PktInputElement {
23
24
  _options: IPktComboboxOption[];
24
25
  protected _value: string[];
25
26
  protected _isOptionsOpen: boolean;
26
- protected _userInfoMessage: string;
27
+ protected _userInfoMessage: TComboboxMessageKey;
27
28
  protected _addValueText: string | null;
28
29
  protected _maxIsReached: boolean;
29
30
  protected _search: string;
@@ -1,85 +1 @@
1
- export declare const consentStrings: {
2
- i18n: {
3
- nb: {
4
- contentPresentation: {
5
- title: string;
6
- description: string[];
7
- buttons: {
8
- accept: string;
9
- reject: string;
10
- settings: string;
11
- };
12
- };
13
- contentSettings: {
14
- title: string;
15
- description: string[];
16
- buttons: {
17
- back: string;
18
- save: string;
19
- };
20
- };
21
- };
22
- en: {
23
- contentPresentation: {
24
- title: string;
25
- description: string[];
26
- buttons: {
27
- accept: string;
28
- reject: string;
29
- settings: string;
30
- };
31
- };
32
- contentSettings: {
33
- title: string;
34
- description: string[];
35
- buttons: {
36
- back: string;
37
- save: string;
38
- };
39
- };
40
- };
41
- };
42
- cookies: ({
43
- name: string;
44
- defaultValue: null;
45
- i18n: {
46
- nb: {
47
- title: string;
48
- description: string;
49
- buttons: {
50
- yes: string;
51
- no: string;
52
- };
53
- };
54
- en: {
55
- title: string;
56
- description: string;
57
- buttons: {
58
- yes: string;
59
- no: string;
60
- };
61
- };
62
- };
63
- } | {
64
- name: string;
65
- defaultValue: boolean;
66
- i18n: {
67
- nb: {
68
- title: string;
69
- description: string;
70
- buttons: {
71
- yes: string;
72
- no: string;
73
- };
74
- };
75
- en: {
76
- title: string;
77
- description: string;
78
- buttons: {
79
- yes: string;
80
- no: string;
81
- };
82
- };
83
- };
84
- })[];
85
- };
1
+ export { consentStrings } from '../../shared-strings/consent';
@@ -1,7 +1,6 @@
1
1
  import { TemplateResult } from 'lit';
2
2
  import { Ref } from 'lit/directives/ref.js';
3
3
  import { PktElement } from '../../base-elements/element';
4
- import { IDatepickerStrings } from './datepicker-types';
5
4
  import { TPktInputSize } from '../../shared-types/size';
6
5
  /**
7
6
  * Abstract base class for datepicker input components
@@ -10,7 +9,6 @@ import { TPktInputSize } from '../../shared-types/size';
10
9
  * used by all three datepicker input types (single, multiple, range).
11
10
  *
12
11
  * Subclasses must implement:
13
- * - `strings` property with component-specific defaults
14
12
  * - `render()` method with component-specific template
15
13
  */
16
14
  export declare abstract class PktDatepickerBase extends PktElement {
@@ -24,7 +22,6 @@ export declare abstract class PktDatepickerBase extends PktElement {
24
22
  inputClasses: Record<string, boolean>;
25
23
  inputSize: TPktInputSize;
26
24
  internals?: ElementInternals;
27
- abstract strings: IDatepickerStrings;
28
25
  inputRef: Ref<HTMLInputElement>;
29
26
  btnRef: Ref<HTMLButtonElement>;
30
27
  get inputElement(): HTMLInputElement | undefined;
@@ -1,9 +1,7 @@
1
1
  import { PktDatepickerBase } from './datepicker-base';
2
- import { IDatepickerStrings } from './datepicker-types';
3
2
  export declare class PktDatepickerMultiple extends PktDatepickerBase {
4
3
  value: string[];
5
4
  maxlength?: number;
6
- strings: IDatepickerStrings;
7
5
  get isInputDisabled(): boolean;
8
6
  private dispatchAddToSelected;
9
7
  render(): import('lit-html').TemplateResult<1>;
@@ -1,11 +1,9 @@
1
1
  import { Ref } from 'lit/directives/ref.js';
2
2
  import { PktDatepickerBase } from './datepicker-base';
3
- import { IDatepickerStrings } from './datepicker-types';
4
3
  export declare class PktDatepickerRange extends PktDatepickerBase {
5
4
  value: string[];
6
5
  label: string;
7
6
  showRangeLabels: boolean;
8
- strings: IDatepickerStrings;
9
7
  inputRefTo: Ref<HTMLInputElement>;
10
8
  get inputElementTo(): HTMLInputElement | undefined;
11
9
  render(): import('lit-html').TemplateResult<1>;
@@ -1,8 +1,6 @@
1
1
  import { PktDatepickerBase } from './datepicker-base';
2
- import { IDatepickerStrings } from './datepicker-types';
3
2
  export declare class PktDatepickerSingle extends PktDatepickerBase {
4
3
  value: string;
5
- strings: IDatepickerStrings;
6
4
  private dispatchManageValidity;
7
5
  render(): import('lit-html').TemplateResult<1>;
8
6
  }
@@ -1,5 +1,6 @@
1
1
  import { Ref } from 'lit/directives/ref.js';
2
2
  import { PktCalendar } from '../calendar/calendar';
3
+ import { TPktStrings } from '../../shared-strings';
3
4
  /**
4
5
  * Utility functions for PktDatepicker component
5
6
  *
@@ -29,7 +30,7 @@ export declare const inputTypeUtils: {
29
30
  export declare const formUtils: {
30
31
  submitForm(element: HTMLElement): void;
31
32
  submitFormOrFallback(internals: any, fallbackAction: () => void): void;
32
- validateDateInput(input: HTMLInputElement, internals: any, min?: string | null, max?: string | null, strings?: any): void;
33
+ validateDateInput(input: HTMLInputElement, internals: any, min?: string | null, max?: string | null, messages?: Partial<TPktStrings["validation"]>): void;
33
34
  };
34
35
  /**
35
36
  * Calendar interaction utilities
@@ -55,7 +55,8 @@ export declare abstract class PktFileUploadBase extends PktElement<IPktFileUploa
55
55
  /** Show "Valgfritt" tag in the input wrapper. */
56
56
  optionalTag: boolean;
57
57
  /** Label text for the optional tag. */
58
- optionalText: string;
58
+ /** @deprecated Bruk `strings={{ forms: { optional: '…' } }}` eller `setPktStrings()`. */
59
+ optionalText?: string;
59
60
  /** Show "Må fylles ut" tag in the input wrapper. */
60
61
  requiredTag: boolean;
61
62
  /** Label text for the required tag. */
@@ -78,7 +79,7 @@ export declare abstract class PktFileUploadBase extends PktElement<IPktFileUploa
78
79
  private thumbnailFileById;
79
80
  private connectedForm;
80
81
  private addedAnnouncementTimer;
81
- private readonly requiredSelectionMessage;
82
+ private get requiredSelectionMessage();
82
83
  protected get isControlled(): boolean;
83
84
  /** True if the component itself wants to show an error (internal validation or external prop). */
84
85
  protected get hasEffectiveError(): boolean;
@@ -6,7 +6,8 @@ export declare class PktHeaderService extends PktElementWithSlot<IPktHeader> imp
6
6
  serviceLink?: string;
7
7
  logoLink: string;
8
8
  logoPath: string | undefined;
9
- searchPlaceholder: string;
9
+ /** @deprecated Bruk `strings={{ header: { search: '…' } }}` eller `setPktStrings()`. */
10
+ searchPlaceholder?: string;
10
11
  searchValue: string;
11
12
  mobileBreakpoint: number;
12
13
  tabletBreakpoint: number;
@@ -58,6 +59,7 @@ export declare class PktHeaderService extends PktElementWithSlot<IPktHeader> imp
58
59
  private get shouldHideOnScroll();
59
60
  private get showLogoutInHeader();
60
61
  private get showLogoutInUserMenu();
62
+ private get headerStrings();
61
63
  private renderLogo;
62
64
  private renderServiceName;
63
65
  private renderSlotContainer;
@@ -21,7 +21,8 @@ export declare class PktHeader extends PktElementWithSlot<IPktHeader> implements
21
21
  serviceLink?: string;
22
22
  logoLink?: string;
23
23
  logoPath?: string;
24
- searchPlaceholder: string;
24
+ /** @deprecated Bruk `strings={{ header: { search: '…' } }}` eller `setPktStrings()`. */
25
+ searchPlaceholder?: string;
25
26
  searchValue: string;
26
27
  mobileBreakpoint: number;
27
28
  tabletBreakpoint: number;
@@ -3,7 +3,8 @@ export declare class PktHelptext extends PktElementWithSlot {
3
3
  forId: string;
4
4
  helptext: string;
5
5
  helptextDropdown: string;
6
- helptextDropdownButton: string;
6
+ /** @deprecated Bruk `strings={{ forms: { readMore: '…' } }}` eller `setPktStrings()`. */
7
+ helptextDropdownButton?: string;
7
8
  isHelpTextOpen: boolean;
8
9
  render(): import('lit-html').TemplateResult<1>;
9
10
  }
@@ -51,3 +51,5 @@ export type { IPktFooter, IPktFooterSimple, IPktFooterColumn, IPktFooterLink, }
51
51
  export type { FileItem, IPktFileUpload, TFileComment, TQueueItemOperation, TQueueOperationContext, TQueueOperationLabel, TFileTransfer, TFileUploadItemRenderer, TTransferCancelledDetail, TTransferProgress, TFileValidateDetail, TFileValidator, TUploadStrategy, } from './fileupload';
52
52
  export type { IPktTimepicker } from './timepicker';
53
53
  export type { IPktSearchInput, IPktSearchInputSuggestion, TPktSearchInputAppearance, TPktSearchInputMethod, } from './searchinput';
54
+ export { getPktStrings, nb as pktStringsNb, resetPktStrings, setPktStrings, subscribePktStrings, } from '../shared-strings';
55
+ export type { TPktStrings, TPktStringsNamespace, TPktStringsOverride } from '../shared-strings';
@@ -21,9 +21,11 @@ export declare class PktInputWrapper extends PktElementWithSlot<Props> {
21
21
  counterError: string | null;
22
22
  counterPosition: TCounterPosition;
23
23
  optionalTag: boolean;
24
- optionalText: string;
24
+ /** @deprecated Bruk `strings={{ forms: { optional: '…' } }}` eller `setPktStrings()`. */
25
+ optionalText?: string;
25
26
  requiredTag: boolean;
26
- requiredText: string;
27
+ /** @deprecated Bruk `strings={{ forms: { required: '…' } }}` eller `setPktStrings()`. */
28
+ requiredText?: string;
27
29
  tagText: string | null;
28
30
  hasError: boolean;
29
31
  errorMessage: string;
@@ -12,9 +12,11 @@ export declare class PktRadioButton extends PktInputElement<Props> {
12
12
  type: string;
13
13
  tagText: string | null;
14
14
  optionalTag: boolean;
15
- optionalText: string;
15
+ /** @deprecated Bruk `strings={{ forms: { optional: '…' } }}` eller `setPktStrings()`. */
16
+ optionalText?: string;
16
17
  requiredTag: boolean;
17
- requiredText: string;
18
+ /** @deprecated Bruk `strings={{ forms: { required: '…' } }}` eller `setPktStrings()`. */
19
+ requiredText?: string;
18
20
  _checked: boolean;
19
21
  connectedCallback(): void;
20
22
  attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
@@ -12,7 +12,8 @@ export declare class PktSearchInput extends PktElement<IPktSearchInput> implemen
12
12
  id: string;
13
13
  label: string | undefined;
14
14
  name: string | undefined;
15
- placeholder: string;
15
+ /** @deprecated Bruk `strings={{ searchinput: { placeholder: '…' } }}` eller `setPktStrings()`. */
16
+ placeholder?: string;
16
17
  value: string;
17
18
  suggestions: IPktSearchInputSuggestion[] | undefined;
18
19
  action: string | undefined;
@@ -1,6 +1,6 @@
1
- import { n as e, o as t, p as n, s as r, t as i } from "./element-ChsFgr_B.js";
2
- import "./button-2-OSPJkj.js";
3
- //#region src/components/consent/strings.ts
1
+ import { _ as e, d as t, n, t as r, u as i } from "./element-BKSPVgs2.js";
2
+ import "./button-C44vNLFC.js";
3
+ //#region ../../shared-strings/consent.ts
4
4
  var a = {
5
5
  i18n: {
6
6
  nb: {
@@ -130,7 +130,7 @@ var c = (e) => {
130
130
  } catch {
131
131
  return e;
132
132
  }
133
- }, l = (e) => c(e.value).items.reduce((e, t) => (e[t.name] = t.consent, e), {}), u = class extends i {
133
+ }, l = (e) => c(e.value).items.reduce((e, t) => (e[t.name] = t.consent, e), {}), u = class extends r {
134
134
  constructor(...e) {
135
135
  super(...e), this.devMode = !1, this.hotjarId = null, this.googleAnalyticsId = null, this.cookieDomain = null, this.cookieSecure = null, this.cookieExpiryDays = null, this.triggerType = "button", this.triggerText = null, this.i18nLanguage = "nb";
136
136
  }
@@ -171,29 +171,29 @@ var c = (e) => {
171
171
  e.preventDefault(), window.cookieBanner?.cookieConsent || this.triggerInit(), setTimeout(() => window.cookieBanner?.openCookieModal());
172
172
  }
173
173
  render() {
174
- return this.triggerType === "link" ? n`<a href="#" class="pkt-link" aria-haspopup="dialog" @click=${this.openModal}
174
+ return this.triggerType === "link" ? e`<a href="#" class="pkt-link" aria-haspopup="dialog" @click=${this.openModal}
175
175
  >${this.triggerText}</a
176
- >` : this.triggerType === "footerlink" ? n`<a
176
+ >` : this.triggerType === "footerlink" ? e`<a
177
177
  href="#"
178
178
  class="pkt-footer__link"
179
179
  aria-haspopup="dialog"
180
180
  @click=${this.openModal}
181
181
  >${this.triggerText}</a
182
- >` : this.triggerType === "icon" ? n`<pkt-button
182
+ >` : this.triggerType === "icon" ? e`<pkt-button
183
183
  skin="tertiary"
184
184
  variant="icon-only"
185
185
  iconName="cookie"
186
186
  aria-haspopup="dialog"
187
187
  @click=${this.openModal}
188
188
  >${this.triggerText}</pkt-button
189
- >` : n`<pkt-button aria-haspopup="dialog" @click=${this.openModal}
189
+ >` : e`<pkt-button aria-haspopup="dialog" @click=${this.openModal}
190
190
  >${this.triggerText}</pkt-button
191
191
  >`;
192
192
  }
193
193
  };
194
- e([t({ type: Boolean })], u.prototype, "devMode", void 0), e([t({ type: String })], u.prototype, "hotjarId", void 0), e([t({ type: String })], u.prototype, "googleAnalyticsId", void 0), e([t({ type: String })], u.prototype, "cookieDomain", void 0), e([t({ type: String })], u.prototype, "cookieSecure", void 0), e([t({ type: String })], u.prototype, "cookieExpiryDays", void 0), e([t({ type: String })], u.prototype, "triggerType", void 0), e([t({ type: String })], u.prototype, "triggerText", void 0), e([t({ type: String })], u.prototype, "i18nLanguage", void 0);
194
+ n([i({ type: Boolean })], u.prototype, "devMode", void 0), n([i({ type: String })], u.prototype, "hotjarId", void 0), n([i({ type: String })], u.prototype, "googleAnalyticsId", void 0), n([i({ type: String })], u.prototype, "cookieDomain", void 0), n([i({ type: String })], u.prototype, "cookieSecure", void 0), n([i({ type: String })], u.prototype, "cookieExpiryDays", void 0), n([i({ type: String })], u.prototype, "triggerType", void 0), n([i({ type: String })], u.prototype, "triggerText", void 0), n([i({ type: String })], u.prototype, "i18nLanguage", void 0);
195
195
  try {
196
- r("pkt-consent")(u);
196
+ t("pkt-consent")(u);
197
197
  } catch {
198
198
  console.warn("Forsøker å definere <pkt-consent>, men den er allerede definert");
199
199
  }