@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,24 +1,18 @@
1
- import { a as e, d as t, n, o as r, p as i, s as a, t as o } from "./element-ChsFgr_B.js";
2
- import { t as s } from "./class-map-CnWCnBSX.js";
3
- import { n as c } from "./element-with-slot-BvG9ctC-.js";
4
- import "./icon-D-LA22xD.js";
5
- import { t as l } from "./if-defined-CGzIlZ9-.js";
6
- import { n as u, t as d } from "./ref-CWD6PjVd.js";
1
+ import { _ as e, d as t, h as n, l as r, n as i, s as a, t as o, u as s } from "./element-BKSPVgs2.js";
2
+ import { t as c } from "./class-map-F1DJHyb7.js";
3
+ import { n as ee } from "./element-with-slot-YUAUFRqw.js";
4
+ import "./icon-HYU1f54x.js";
5
+ import { t as l } from "./if-defined-BF8XcDi5.js";
6
+ import { n as u, t as d } from "./ref-Chc_DZAb.js";
7
7
  import { a as f, c as p, d as m, h, i as g, m as _, n as v, r as y, s as b, t as x, u as S } from "./converters-CkjLSYpa.js";
8
- import "./calendar-pOW3R5Pw.js";
9
- import "./tag-Ds6n1LIs.js";
10
- import { t as C } from "./repeat-C02g7d5S.js";
8
+ import "./calendar-DgjCKMMV.js";
9
+ import "./tag-DK5SgKry.js";
10
+ import { t as C } from "./repeat-P9SMlKd5.js";
11
11
  import { n as w, t as T } from "./utils-BwF4QSrq.js";
12
- import { t as E } from "./input-element-DBMNBplu.js";
13
- import "./input-wrapper-BmxNvznr.js";
14
- //#region ../../shared-types/datepicker.ts
15
- var D = { calendar: { buttonAltText: "Åpne kalender" } }, O = {
16
- calendar: { buttonAltText: "Åpne kalender" },
17
- generic: {
18
- from: "Fra",
19
- to: "Til"
20
- }
21
- }, k = class extends o {
12
+ import { t as E } from "./input-element-D07DmR34.js";
13
+ import "./input-wrapper-Cci_wTvD.js";
14
+ //#region src/components/datepicker/date-tags.ts
15
+ var D = class extends o {
22
16
  constructor(...e) {
23
17
  super(...e), this.dates = [], this.dateformat = "dd.MM.yyyy", this.className = "pkt-datepicker__tags", this.idBase = w();
24
18
  }
@@ -26,35 +20,35 @@ var D = { calendar: { buttonAltText: "Åpne kalender" } }, O = {
26
20
  return this.classes = {
27
21
  "pkt-date-tags": !0,
28
22
  [this.className]: !0
29
- }, i`
30
- <div class=${s(this.classes)} aria-live="polite">
31
- ${Array.isArray(this.dates) && this.dates[0] ? C(h((this.dates ?? []).filter(Boolean)), (e) => e, (e) => i` <pkt-tag
32
- id=${this.idBase + e + "-tag"}
23
+ }, e`
24
+ <div class=${c(this.classes)} aria-live="polite">
25
+ ${Array.isArray(this.dates) && this.dates[0] ? C(h((this.dates ?? []).filter(Boolean)), (e) => e, (t) => e` <pkt-tag
26
+ id=${this.idBase + t + "-tag"}
33
27
  closeTag
34
28
  @close=${() => {
35
- this.dispatchEvent(new CustomEvent("date-tag-removed", { detail: e }));
29
+ this.dispatchEvent(new CustomEvent("date-tag-removed", { detail: t }));
36
30
  }}
37
- .ariaLabel=${`${this.strings?.calendar.deleteDate} ${p(e, this.dateformat)}`}
31
+ .ariaLabel=${`${this.pktStrings.get("datepicker").deleteDate} ${p(t, this.dateformat)}`}
38
32
  >
39
- <time datetime=${e}>${p(e, this.dateformat)}</time>
40
- </pkt-tag>`) : t}
33
+ <time datetime=${t}>${p(t, this.dateformat)}</time>
34
+ </pkt-tag>`) : n}
41
35
  </div>
42
36
  `;
43
37
  }
44
38
  };
45
- n([r({ type: Array })], k.prototype, "dates", void 0), n([r({ type: String })], k.prototype, "dateformat", void 0), n([r({
39
+ i([s({ type: Array })], D.prototype, "dates", void 0), i([s({ type: String })], D.prototype, "dateformat", void 0), i([s({
46
40
  type: String,
47
41
  attribute: "class"
48
- })], k.prototype, "className", void 0), n([r({
42
+ })], D.prototype, "className", void 0), i([s({
49
43
  type: String,
50
44
  attribute: "id-base"
51
- })], k.prototype, "idBase", void 0);
45
+ })], D.prototype, "idBase", void 0);
52
46
  try {
53
- a("pkt-date-tags")(k);
47
+ t("pkt-date-tags")(D);
54
48
  } catch {
55
49
  console.warn("Forsøker å definere <pkt-date-tags>, men den er allerede definert");
56
50
  }
57
- var A = {
51
+ var O = {
58
52
  name: "pkt-datepicker",
59
53
  react: "PktDatepicker",
60
54
  "css-class": "pkt-datepicker",
@@ -334,10 +328,10 @@ var A = {
334
328
  description: "Returnerer en <code>string[]</code> med valgte datoer i ISO-format. I range-modus utløses kun når begge datoer er valgt."
335
329
  }
336
330
  }
337
- }, j = () => {
331
+ }, k = () => {
338
332
  let e = navigator.userAgent;
339
333
  return !!(/iP(hone|od|ad)/.test(e) || /Macintosh/.test(e) && "ontouchend" in document);
340
- }, M = () => j() ? "text" : "date", N = (e) => !e || e.length !== 2 || S(e[0], e[1]), ee = (e) => h(e), te = (e, t, n, r, i) => g(e, t, n, r, i), P = (e, t, n, r, i, a, o = "medium") => ({
334
+ }, A = () => k() ? "text" : "date", j = (e) => !e || e.length !== 2 || S(e[0], e[1]), M = (e) => h(e), N = (e, t, n, r, i) => g(e, t, n, r, i), P = (e, t, n, r, i, a, o = "medium") => ({
341
335
  "pkt-input": !0,
342
336
  "pkt-datepicker__input": !0,
343
337
  [`pkt-input--${o}`]: !0,
@@ -367,10 +361,10 @@ var A = {
367
361
  let { key: n } = e;
368
362
  (n === "Enter" || n === " " || n === "Space") && (e.preventDefault(), t(e));
369
363
  }, V = {
370
- validateRangeOrder: N,
371
- sortDates: ee,
372
- filterSelectableDates: te
373
- }, H = { getInputType: M }, U = {
364
+ validateRangeOrder: j,
365
+ sortDates: M,
366
+ filterSelectableDates: N
367
+ }, H = { getInputType: A }, U = {
374
368
  submitForm(e) {
375
369
  let t = e.internals?.form;
376
370
  t && t.requestSubmit();
@@ -380,8 +374,13 @@ var A = {
380
374
  n ? n.requestSubmit() : t();
381
375
  },
382
376
  validateDateInput(e, t, n, r, i) {
383
- let a = e.value;
384
- a && (n && n > a ? t.setValidity({ rangeUnderflow: !0 }, i?.forms?.messages?.rangeUnderflow || "Value is below minimum", e) : r && r < a && t.setValidity({ rangeOverflow: !0 }, i?.forms?.messages?.rangeOverflow || "Value is above maximum", e));
377
+ let o = e.value;
378
+ if (!o) return;
379
+ let s = {
380
+ ...a.validation,
381
+ ...i
382
+ };
383
+ n && n > o ? t.setValidity({ rangeUnderflow: !0 }, s.dateUnderflow, e) : r && r < o && t.setValidity({ rangeOverflow: !0 }, s.dateOverflow, e);
385
384
  }
386
385
  }, W = {
387
386
  addToSelected(e, t, n, r) {
@@ -472,20 +471,20 @@ var A = {
472
471
  }));
473
472
  }
474
473
  render() {
475
- let e = {
474
+ let t = {
476
475
  "pkt-calendar-popup": !0,
477
476
  show: this.open,
478
477
  hide: !this.open
479
478
  };
480
- return i`
479
+ return e`
481
480
  <div
482
- class="${s(e)}"
481
+ class="${c(t)}"
483
482
  ${u(this.popupRef)}
484
483
  id="date-popup"
485
484
  ?hidden=${!this.open}
486
485
  aria-hidden="${!this.open}"
487
486
  >
488
- ${this.open || this._hasBeenOpened ? i`<pkt-calendar
487
+ ${this.open || this._hasBeenOpened ? e`<pkt-calendar
489
488
  ${u(this.calendarRef)}
490
489
  ?multiple=${this.multiple}
491
490
  ?range=${this.range}
@@ -512,17 +511,17 @@ var A = {
512
511
  composed: !0
513
512
  }));
514
513
  }}
515
- ></pkt-calendar>` : t}
514
+ ></pkt-calendar>` : n}
516
515
  </div>
517
516
  `;
518
517
  }
519
518
  };
520
- n([r({
519
+ i([s({
521
520
  type: Boolean,
522
521
  reflect: !0
523
- })], J.prototype, "open", void 0), n([r({ type: Boolean })], J.prototype, "multiple", void 0), n([r({ type: Boolean })], J.prototype, "range", void 0), n([r({ type: Boolean })], J.prototype, "weeknumbers", void 0), n([r({ type: Boolean })], J.prototype, "withcontrols", void 0), n([r({ type: Number })], J.prototype, "maxMultiple", void 0), n([r({ type: Array })], J.prototype, "selected", void 0), n([r({ type: String })], J.prototype, "earliest", void 0), n([r({ type: String })], J.prototype, "latest", void 0), n([r({ type: Array })], J.prototype, "excludedates", void 0), n([r({ type: Array })], J.prototype, "excludeweekdays", void 0), n([r({ type: String })], J.prototype, "currentmonth", void 0), n([r({ type: String })], J.prototype, "today", void 0), n([e()], J.prototype, "_hasBeenOpened", void 0);
522
+ })], J.prototype, "open", void 0), i([s({ type: Boolean })], J.prototype, "multiple", void 0), i([s({ type: Boolean })], J.prototype, "range", void 0), i([s({ type: Boolean })], J.prototype, "weeknumbers", void 0), i([s({ type: Boolean })], J.prototype, "withcontrols", void 0), i([s({ type: Number })], J.prototype, "maxMultiple", void 0), i([s({ type: Array })], J.prototype, "selected", void 0), i([s({ type: String })], J.prototype, "earliest", void 0), i([s({ type: String })], J.prototype, "latest", void 0), i([s({ type: Array })], J.prototype, "excludedates", void 0), i([s({ type: Array })], J.prototype, "excludeweekdays", void 0), i([s({ type: String })], J.prototype, "currentmonth", void 0), i([s({ type: String })], J.prototype, "today", void 0), i([r()], J.prototype, "_hasBeenOpened", void 0);
524
523
  try {
525
- a("pkt-datepicker-popup")(J);
524
+ t("pkt-datepicker-popup")(J);
526
525
  } catch {
527
526
  console.warn("Forsøker å definere <pkt-datepicker-popup>, men den er allerede definert");
528
527
  }
@@ -576,9 +575,9 @@ var Y = class extends o {
576
575
  }));
577
576
  }
578
577
  renderCalendarButton() {
579
- return i`
578
+ return e`
580
579
  <button
581
- class="${s(G.getButtonClasses(this.inputSize))}"
580
+ class="${c(G.getButtonClasses(this.inputSize))}"
582
581
  type="button"
583
582
  @click=${(e) => this.dispatchToggleCalendar(e)}
584
583
  @keydown=${(e) => {
@@ -589,7 +588,7 @@ var Y = class extends o {
589
588
  ${this.btnRef}
590
589
  >
591
590
  <pkt-icon name="calendar"></pkt-icon>
592
- <span class="pkt-btn__text">${this.strings.calendar?.buttonAltText || "Åpne kalender"}</span>
591
+ <span class="pkt-btn__text">${this.pktStrings.get("datepicker").openPicker}</span>
593
592
  </button>
594
593
  `;
595
594
  }
@@ -597,12 +596,12 @@ var Y = class extends o {
597
596
  return this;
598
597
  }
599
598
  };
600
- n([r({ type: String })], Y.prototype, "inputType", void 0), n([r({ type: String })], Y.prototype, "id", void 0), n([r({ type: String })], Y.prototype, "min", void 0), n([r({ type: String })], Y.prototype, "max", void 0), n([r({ type: String })], Y.prototype, "placeholder", void 0), n([r({ type: Boolean })], Y.prototype, "readonly", void 0), n([r({ type: Boolean })], Y.prototype, "disabled", void 0), n([r({ type: Object })], Y.prototype, "inputClasses", void 0), n([r({ type: String })], Y.prototype, "inputSize", void 0), n([r({ type: Object })], Y.prototype, "internals", void 0);
599
+ i([s({ type: String })], Y.prototype, "inputType", void 0), i([s({ type: String })], Y.prototype, "id", void 0), i([s({ type: String })], Y.prototype, "min", void 0), i([s({ type: String })], Y.prototype, "max", void 0), i([s({ type: String })], Y.prototype, "placeholder", void 0), i([s({ type: Boolean })], Y.prototype, "readonly", void 0), i([s({ type: Boolean })], Y.prototype, "disabled", void 0), i([s({ type: Object })], Y.prototype, "inputClasses", void 0), i([s({ type: String })], Y.prototype, "inputSize", void 0), i([s({ type: Object })], Y.prototype, "internals", void 0);
601
600
  //#endregion
602
601
  //#region src/components/datepicker/datepicker-single.ts
603
602
  var X = class extends Y {
604
603
  constructor(...e) {
605
- super(...e), this.value = "", this.strings = D;
604
+ super(...e), this.value = "";
606
605
  }
607
606
  dispatchManageValidity(e) {
608
607
  this.dispatchEvent(new CustomEvent("manage-validity", {
@@ -612,10 +611,10 @@ var X = class extends Y {
612
611
  }));
613
612
  }
614
613
  render() {
615
- return i`
614
+ return e`
616
615
  <div class="pkt-input__container">
617
616
  <input
618
- class="${s(this.inputClasses)}"
617
+ class="${c(this.inputClasses)}"
619
618
  .type=${this.inputType}
620
619
  id="${this.id}-input"
621
620
  .value=${this.value}
@@ -636,7 +635,7 @@ var X = class extends Y {
636
635
  this.dispatchInput(e), e.stopImmediatePropagation();
637
636
  }}
638
637
  @focus=${() => {
639
- this.dispatchFocus(), j() && this.dispatchToggleCalendar(new Event("focus"));
638
+ this.dispatchFocus(), k() && this.dispatchToggleCalendar(new Event("focus"));
640
639
  }}
641
640
  @blur=${(e) => {
642
641
  this.dispatchBlur(e), this.dispatchManageValidity(e.target), this.dispatchEvent(new CustomEvent("value-change", {
@@ -655,9 +654,9 @@ var X = class extends Y {
655
654
  `;
656
655
  }
657
656
  };
658
- n([r({ type: String })], X.prototype, "value", void 0), n([r({ type: Object })], X.prototype, "strings", void 0);
657
+ i([s({ type: String })], X.prototype, "value", void 0);
659
658
  try {
660
- a("pkt-datepicker-single")(X);
659
+ t("pkt-datepicker-single")(X);
661
660
  } catch {
662
661
  console.warn("Forsøker å definere <pkt-datepicker-single>, men den er allerede definert");
663
662
  }
@@ -665,21 +664,21 @@ try {
665
664
  //#region src/components/datepicker/datepicker-range.ts
666
665
  var Z = class extends Y {
667
666
  constructor(...e) {
668
- super(...e), this.value = [], this.label = "", this.showRangeLabels = !1, this.strings = O, this.inputRefTo = d();
667
+ super(...e), this.value = [], this.label = "", this.showRangeLabels = !1, this.inputRefTo = d();
669
668
  }
670
669
  get inputElementTo() {
671
670
  return this.inputRefTo.value;
672
671
  }
673
672
  render() {
674
- let e = G.getRangeLabelClasses(this.showRangeLabels);
675
- return i`
673
+ let t = G.getRangeLabelClasses(this.showRangeLabels);
674
+ return e`
676
675
  <div class="pkt-input__container">
677
- ${this.showRangeLabels ? i` <div class="pkt-input-prefix">${this.strings.generic?.from}</div> ` : t}
676
+ ${this.showRangeLabels ? e` <div class="pkt-input-prefix">${this.pktStrings.get("generic").from}</div> ` : n}
678
677
  <input
679
- class=${s(this.inputClasses)}
678
+ class=${c(this.inputClasses)}
680
679
  .type=${this.inputType}
681
680
  id="${this.id}-input"
682
- aria-label="${this.label} ${this.strings.generic?.from ?? "Fra"}"
681
+ aria-label="${this.label} ${this.pktStrings.get("generic").from}"
683
682
  .value=${this.value[0] ?? ""}
684
683
  min=${l(this.min)}
685
684
  max=${l(this.max)}
@@ -697,7 +696,7 @@ var Z = class extends Y {
697
696
  this.dispatchInput(e), e.stopImmediatePropagation();
698
697
  }}
699
698
  @focus=${() => {
700
- this.dispatchFocus(), j() && this.dispatchToggleCalendar(new Event("focus"));
699
+ this.dispatchFocus(), k() && this.dispatchToggleCalendar(new Event("focus"));
701
700
  }}
702
701
  @blur=${(e) => {
703
702
  this.dispatchBlur(e), this.dispatchEvent(new CustomEvent("range-blur", {
@@ -715,15 +714,15 @@ var Z = class extends Y {
715
714
  }}
716
715
  ${u(this.inputRef)}
717
716
  />
718
- <div class="${s(e)}" id="${this.id}-to-label">
719
- ${this.strings.generic?.to}
717
+ <div class="${c(t)}" id="${this.id}-to-label">
718
+ ${this.pktStrings.get("generic").to}
720
719
  </div>
721
- ${this.showRangeLabels ? t : i` <div class="pkt-input-separator">–</div> `}
720
+ ${this.showRangeLabels ? n : e` <div class="pkt-input-separator">–</div> `}
722
721
  <input
723
- class=${s(this.inputClasses)}
722
+ class=${c(this.inputClasses)}
724
723
  .type=${this.inputType}
725
724
  id="${this.id}-to"
726
- aria-label="${this.label} ${this.strings.generic?.to ?? "Til"}"
725
+ aria-label="${this.label} ${this.pktStrings.get("generic").to}"
727
726
  .value=${this.value[1] ?? ""}
728
727
  min=${l(this.min)}
729
728
  max=${l(this.max)}
@@ -741,7 +740,7 @@ var Z = class extends Y {
741
740
  this.dispatchInput(e), e.stopImmediatePropagation();
742
741
  }}
743
742
  @focus=${() => {
744
- this.dispatchFocus(), j() && this.dispatchToggleCalendar(new Event("focus"));
743
+ this.dispatchFocus(), k() && this.dispatchToggleCalendar(new Event("focus"));
745
744
  }}
746
745
  @blur=${(e) => {
747
746
  this.dispatchBlur(e), this.dispatchEvent(new CustomEvent("range-blur", {
@@ -764,9 +763,9 @@ var Z = class extends Y {
764
763
  `;
765
764
  }
766
765
  };
767
- n([r({ type: Array })], Z.prototype, "value", void 0), n([r({ type: String })], Z.prototype, "label", void 0), n([r({ type: Boolean })], Z.prototype, "showRangeLabels", void 0), n([r({ type: Object })], Z.prototype, "strings", void 0);
766
+ i([s({ type: Array })], Z.prototype, "value", void 0), i([s({ type: String })], Z.prototype, "label", void 0), i([s({ type: Boolean })], Z.prototype, "showRangeLabels", void 0);
768
767
  try {
769
- a("pkt-datepicker-range")(Z);
768
+ t("pkt-datepicker-range")(Z);
770
769
  } catch {
771
770
  console.warn("Forsøker å definere <pkt-datepicker-range>, men den er allerede definert");
772
771
  }
@@ -774,7 +773,7 @@ try {
774
773
  //#region src/components/datepicker/datepicker-multiple.ts
775
774
  var Q = class extends Y {
776
775
  constructor(...e) {
777
- super(...e), this.value = [], this.strings = D;
776
+ super(...e), this.value = [];
778
777
  }
779
778
  get isInputDisabled() {
780
779
  return this.disabled || this.maxlength !== void 0 && this.maxlength !== null && this.value.length >= this.maxlength;
@@ -787,10 +786,10 @@ var Q = class extends Y {
787
786
  }));
788
787
  }
789
788
  render() {
790
- return i`
789
+ return e`
791
790
  <div class="pkt-input__container">
792
791
  <input
793
- class=${s(this.inputClasses)}
792
+ class=${c(this.inputClasses)}
794
793
  .type=${this.inputType}
795
794
  id="${this.id}-input"
796
795
  min=${l(this.min)}
@@ -811,7 +810,7 @@ var Q = class extends Y {
811
810
  this.dispatchInput(e), e.stopImmediatePropagation();
812
811
  }}
813
812
  @focus=${() => {
814
- this.dispatchFocus(), j() && this.dispatchToggleCalendar(new Event("focus"));
813
+ this.dispatchFocus(), k() && this.dispatchToggleCalendar(new Event("focus"));
815
814
  }}
816
815
  @keydown=${(e) => q.handleInputKeydown(e, (e) => this.dispatchToggleCalendar(e), () => U.submitFormOrFallback(this.internals, () => this.inputRef.value?.blur()), void 0, void 0, (e) => this.dispatchAddToSelected(e))}
817
816
  @change=${(e) => {
@@ -824,9 +823,9 @@ var Q = class extends Y {
824
823
  `;
825
824
  }
826
825
  };
827
- n([r({ type: Array })], Q.prototype, "value", void 0), n([r({ type: Number })], Q.prototype, "maxlength", void 0), n([r({ type: Object })], Q.prototype, "strings", void 0);
826
+ i([s({ type: Array })], Q.prototype, "value", void 0), i([s({ type: Number })], Q.prototype, "maxlength", void 0);
828
827
  try {
829
- a("pkt-datepicker-multiple")(Q);
828
+ t("pkt-datepicker-multiple")(Q);
830
829
  } catch {
831
830
  console.warn("Forsøker å definere <pkt-datepicker-multiple>, men den er allerede definert");
832
831
  }
@@ -834,7 +833,7 @@ try {
834
833
  //#region src/components/datepicker/datepicker.ts
835
834
  var $ = class extends E {
836
835
  constructor(...e) {
837
- super(...e), this._valueProperty = "", this._valueProcessing = !1, this.datepickerPopupRef = d(), this._value = [], this.label = "Datovelger", this.dateformat = A.props.dateformat.default, this.multiple = A.props.multiple.default, this.maxlength = null, this.range = A.props.range.default, this.showRangeLabels = !1, this.min = null, this.max = null, this.weeknumbers = A.props.weeknumbers.default, this.withcontrols = A.props.withcontrols.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.today = null, this.calendarOpen = !1, this.timezone = "Europe/Oslo", this.inputClasses = {}, this.calRef = d(), this.popupRef = d(), this.singleInputRef = d(), this.rangeInputRef = d(), this.multipleInputRef = d(), this.addToSelected = (e) => {
836
+ super(...e), this._valueProperty = "", this._valueProcessing = !1, this.datepickerPopupRef = d(), this._value = [], this.label = "Datovelger", this.dateformat = O.props.dateformat.default, this.multiple = O.props.multiple.default, this.maxlength = null, this.range = O.props.range.default, this.showRangeLabels = !1, this.min = null, this.max = null, this.weeknumbers = O.props.weeknumbers.default, this.withcontrols = O.props.withcontrols.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.today = null, this.calendarOpen = !1, this.timezone = "Europe/Oslo", this.inputClasses = {}, this.calRef = d(), this.popupRef = d(), this.singleInputRef = d(), this.rangeInputRef = d(), this.multipleInputRef = d(), this.addToSelected = (e) => {
838
837
  let t = this.datepickerPopupRef.value;
839
838
  return t && typeof t.addToSelected == "function" ? t.addToSelected(e, this.min, this.max) : W.addToSelected(e, this.calRef, this.min, this.max);
840
839
  };
@@ -905,7 +904,7 @@ var $ = class extends E {
905
904
  return { value: this.currentButtonElement };
906
905
  }
907
906
  renderInput() {
908
- return i`
907
+ return e`
909
908
  <pkt-datepicker-single
910
909
  .value=${this._value[0] ?? ""}
911
910
  .inputType=${this.inputType}
@@ -937,7 +936,7 @@ var $ = class extends E {
937
936
  `;
938
937
  }
939
938
  renderRangeInput() {
940
- return i`
939
+ return e`
941
940
  <pkt-datepicker-range
942
941
  .value=${this._value}
943
942
  .inputType=${this.inputType}
@@ -973,7 +972,7 @@ var $ = class extends E {
973
972
  }}
974
973
  @manage-validity=${(e) => this.manageValidity(e.detail)}
975
974
  @validate-date-input=${(e) => {
976
- U.validateDateInput(e.detail, this.internals, this.min, this.max, this.strings);
975
+ U.validateDateInput(e.detail, this.internals, this.min, this.max, this.pktStrings.get("validation"));
977
976
  }}
978
977
  @handle-date-select=${(e) => {
979
978
  let t = b(e.detail);
@@ -990,7 +989,7 @@ var $ = class extends E {
990
989
  `;
991
990
  }
992
991
  renderMultipleInput() {
993
- return i`
992
+ return e`
994
993
  <pkt-datepicker-multiple
995
994
  .value=${this._value}
996
995
  .inputType=${this.inputType}
@@ -1020,7 +1019,7 @@ var $ = class extends E {
1020
1019
  `;
1021
1020
  }
1022
1021
  renderCalendar() {
1023
- return i`
1022
+ return e`
1024
1023
  <pkt-datepicker-popup
1025
1024
  class="pkt-contents"
1026
1025
  ?open=${this.calendarOpen}
@@ -1047,8 +1046,9 @@ var $ = class extends E {
1047
1046
  `;
1048
1047
  }
1049
1048
  render() {
1050
- return this.inputClasses = G.getInputClasses(this.fullwidth, this.showRangeLabels, this.multiple, this.range, this.readonly, this.inputType, this.inputSize), i`
1049
+ return this.inputClasses = G.getInputClasses(this.fullwidth, this.showRangeLabels, this.multiple, this.range, this.readonly, this.inputType, this.inputSize), e`
1051
1050
  <pkt-input-wrapper
1051
+ .strings=${this.strings}
1052
1052
  label="${this.label}"
1053
1053
  forId="${this.id}-input"
1054
1054
  ?counter=${this.multiple && !!this.maxlength}
@@ -1072,8 +1072,8 @@ var $ = class extends E {
1072
1072
  .ariaDescribedby=${this.ariaDescribedby}
1073
1073
  .size=${this.inputSize}
1074
1074
  >
1075
- <div class="pkt-contents" slot="helptext">${c(this, "helptext")}</div>
1076
- ${this.multiple ? i`<pkt-date-tags
1075
+ <div class="pkt-contents" slot="helptext">${ee(this, "helptext")}</div>
1076
+ ${this.multiple ? e`<pkt-date-tags
1077
1077
  .dates=${this._value}
1078
1078
  dateformat=${this.dateformat}
1079
1079
  strings=${this.strings}
@@ -1082,7 +1082,7 @@ var $ = class extends E {
1082
1082
  let t = this.datepickerPopupRef.value, n = b(e.detail);
1083
1083
  t && n && typeof t.handleDateSelect == "function" ? t.handleDateSelect(n) : this.calRef.value?.handleDateSelect(n);
1084
1084
  }}
1085
- ></pkt-date-tags>` : t}
1085
+ ></pkt-date-tags>` : n}
1086
1086
  <div class="pkt-datepicker__inputs ${this.range ? "pkt-input__range-inputs" : ""}">
1087
1087
  ${this.range ? this.renderRangeInput() : this.multiple ? this.renderMultipleInput() : this.renderInput()}
1088
1088
  </div>
@@ -1097,10 +1097,10 @@ var $ = class extends E {
1097
1097
  async showCalendar() {
1098
1098
  let e = this.datepickerPopupRef.value;
1099
1099
  if (this.calendarOpen = !0, e && typeof e.show == "function") {
1100
- e.show(), j() && e.focusOnCurrentDate();
1100
+ e.show(), k() && e.focusOnCurrentDate();
1101
1101
  return;
1102
1102
  }
1103
- await T(20), this.handleCalendarPosition(), j() && this.calRef.value?.focusOnCurrentDate();
1103
+ await T(20), this.handleCalendarPosition(), k() && this.calRef.value?.focusOnCurrentDate();
1104
1104
  }
1105
1105
  hideCalendar() {
1106
1106
  let e = this.datepickerPopupRef.value;
@@ -1127,42 +1127,42 @@ var $ = class extends E {
1127
1127
  }));
1128
1128
  }
1129
1129
  };
1130
- n([r({
1130
+ i([s({
1131
1131
  type: String,
1132
1132
  reflect: !0
1133
- })], $.prototype, "value", null), n([r({
1133
+ })], $.prototype, "value", null), i([s({
1134
1134
  type: String,
1135
1135
  reflect: !0
1136
- })], $.prototype, "label", void 0), n([r({ type: String })], $.prototype, "dateformat", void 0), n([r({
1136
+ })], $.prototype, "label", void 0), i([s({ type: String })], $.prototype, "dateformat", void 0), i([s({
1137
1137
  type: Boolean,
1138
1138
  reflect: !0
1139
- })], $.prototype, "multiple", void 0), n([r({
1139
+ })], $.prototype, "multiple", void 0), i([s({
1140
1140
  type: Number,
1141
1141
  reflect: !0
1142
- })], $.prototype, "maxlength", void 0), n([r({
1142
+ })], $.prototype, "maxlength", void 0), i([s({
1143
1143
  type: Boolean,
1144
1144
  reflect: !0
1145
- })], $.prototype, "range", void 0), n([r({
1145
+ })], $.prototype, "range", void 0), i([s({
1146
1146
  type: Boolean,
1147
1147
  attribute: "show-range-labels"
1148
- })], $.prototype, "showRangeLabels", void 0), n([r({
1148
+ })], $.prototype, "showRangeLabels", void 0), i([s({
1149
1149
  type: String,
1150
1150
  reflect: !0
1151
- })], $.prototype, "min", void 0), n([r({
1151
+ })], $.prototype, "min", void 0), i([s({
1152
1152
  type: String,
1153
1153
  reflect: !0
1154
- })], $.prototype, "max", void 0), n([r({ type: Boolean })], $.prototype, "weeknumbers", void 0), n([r({
1154
+ })], $.prototype, "max", void 0), i([s({ type: Boolean })], $.prototype, "weeknumbers", void 0), i([s({
1155
1155
  type: Boolean,
1156
1156
  reflect: !0
1157
- })], $.prototype, "withcontrols", void 0), n([r({ converter: x.csvToArray })], $.prototype, "excludedates", void 0), n([r({ converter: x.csvToArray })], $.prototype, "excludeweekdays", void 0), n([r({ type: String })], $.prototype, "currentmonth", void 0), n([r({ type: String })], $.prototype, "today", void 0), n([r({
1157
+ })], $.prototype, "withcontrols", void 0), i([s({ converter: x.csvToArray })], $.prototype, "excludedates", void 0), i([s({ converter: x.csvToArray })], $.prototype, "excludeweekdays", void 0), i([s({ type: String })], $.prototype, "currentmonth", void 0), i([s({ type: String })], $.prototype, "today", void 0), i([s({
1158
1158
  type: Boolean,
1159
1159
  reflect: !0,
1160
1160
  attribute: "calendar-open"
1161
- })], $.prototype, "calendarOpen", void 0), n([r({ type: String })], $.prototype, "timezone", void 0), n([e()], $.prototype, "inputClasses", void 0);
1161
+ })], $.prototype, "calendarOpen", void 0), i([s({ type: String })], $.prototype, "timezone", void 0), i([r()], $.prototype, "inputClasses", void 0);
1162
1162
  try {
1163
- a("pkt-datepicker")($);
1163
+ t("pkt-datepicker")($);
1164
1164
  } catch {
1165
1165
  console.warn("Forsøker å definere <pkt-datepicker>, men den er allerede definert");
1166
1166
  }
1167
1167
  //#endregion
1168
- export { k as a, X as i, Q as n, Z as r, $ as t };
1168
+ export { D as a, X as i, Q as n, Z as r, $ as t };
@@ -1,4 +1,4 @@
1
- import { m as e } from "./element-ChsFgr_B.js";
1
+ import { v as e } from "./element-BKSPVgs2.js";
2
2
  //#region ../../node_modules/lit-html/directive-helpers.js
3
3
  var { I: t } = e, n = (e) => e, r = (e) => e.strings === void 0, i = () => document.createComment(""), a = (e, r, a) => {
4
4
  let o = e._$AA.parentNode, s = r === void 0 ? e._$AB : r._$AA;
@@ -1 +1 @@
1
- var{I:e}=require("./element-BA8v6S7z.cjs").m,t=e=>e,n=e=>e.strings===void 0,r=()=>document.createComment(``),i=(n,i,a)=>{let o=n._$AA.parentNode,s=i===void 0?n._$AB:i._$AA;if(a===void 0)a=new e(o.insertBefore(r(),s),o.insertBefore(r(),s),n,n.options);else{let e=a._$AB.nextSibling,r=a._$AM,i=r!==n;if(i){let e;a._$AQ?.(n),a._$AM=n,a._$AP!==void 0&&(e=n._$AU)!==r._$AU&&a._$AP(e)}if(e!==s||i){let n=a._$AA;for(;n!==e;){let e=t(n).nextSibling;t(o).insertBefore(n,s),n=e}}}return a},a=(e,t,n=e)=>(e._$AI(t,n),e),o={},s=(e,t=o)=>e._$AH=t,c=e=>e._$AH,l=e=>{e._$AR(),e._$AA.remove()};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
1
+ var{I:e}=require("./element-B8OGznK0.cjs").v,t=e=>e,n=e=>e.strings===void 0,r=()=>document.createComment(``),i=(n,i,a)=>{let o=n._$AA.parentNode,s=i===void 0?n._$AB:i._$AA;if(a===void 0)a=new e(o.insertBefore(r(),s),o.insertBefore(r(),s),n,n.options);else{let e=a._$AB.nextSibling,r=a._$AM,i=r!==n;if(i){let e;a._$AQ?.(n),a._$AM=n,a._$AP!==void 0&&(e=n._$AU)!==r._$AU&&a._$AP(e)}if(e!==s||i){let n=a._$AA;for(;n!==e;){let e=t(n).nextSibling;t(o).insertBefore(n,s),n=e}}}return a},a=(e,t,n=e)=>(e._$AI(t,n),e),o={},s=(e,t=o)=>e._$AH=t,c=e=>e._$AH,l=e=>{e._$AR(),e._$AA.remove()};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
@@ -4,6 +4,7 @@ export declare class FileUploadDocs extends PktElement {
4
4
  private required;
5
5
  private transferPreset;
6
6
  private validationPreset;
7
+ private overrideDropZone;
7
8
  private filesFilename;
8
9
  private filesThumbnail;
9
10
  private transfersFilename;
@@ -0,0 +1,2 @@
1
+ var e=globalThis,t=e=>e,n=e.trustedTypes,r=n?n.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,i=`$lit$`,a=`lit$${Math.random().toFixed(9).slice(2)}$`,o=`?`+a,s=`<${o}>`,c=document,l=()=>c.createComment(``),u=e=>e===null||typeof e!=`object`&&typeof e!=`function`,d=Array.isArray,f=e=>d(e)||typeof e?.[Symbol.iterator]==`function`,p=`[
2
+ \f\r]`,m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,h=/-->/g,g=/>/g,_=RegExp(`>|${p}(?:([^\\s"'>=/]+)(${p}*=${p}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),v=/'/g,y=/"/g,b=/^(?:script|style|textarea|title)$/i,x=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),S=Symbol.for(`lit-noChange`),C=Symbol.for(`lit-nothing`),w=new WeakMap,T=c.createTreeWalker(c,129);function E(e,t){if(!d(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return r===void 0?t:r.createHTML(t)}var D=(e,t)=>{let n=e.length-1,r=[],o,c=t===2?`<svg>`:t===3?`<math>`:``,l=m;for(let t=0;t<n;t++){let n=e[t],u,d,f=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===m?d[1]===`!--`?l=h:d[1]===void 0?d[2]===void 0?d[3]!==void 0&&(l=_):(b.test(d[2])&&(o=RegExp(`</`+d[2],`g`)),l=_):l=g:l===_?d[0]===`>`?(l=o??m,f=-1):d[1]===void 0?f=-2:(f=l.lastIndex-d[2].length,u=d[1],l=d[3]===void 0?_:d[3]===`"`?y:v):l===y||l===v?l=_:l===h||l===g?l=m:(l=_,o=void 0);let x=l===_&&e[t+1].startsWith(`/>`)?` `:``;c+=l===m?n+s:f>=0?(r.push(u),n.slice(0,f)+i+n.slice(f)+a+x):n+a+(f===-2?t:x)}return[E(e,c+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},O=class e{constructor({strings:t,_$litType$:r},s){let c;this.parts=[];let u=0,d=0,f=t.length-1,p=this.parts,[m,h]=D(t,r);if(this.el=e.createElement(m,s),T.currentNode=this.el.content,r===2||r===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(c=T.nextNode())!==null&&p.length<f;){if(c.nodeType===1){if(c.hasAttributes())for(let e of c.getAttributeNames())if(e.endsWith(i)){let t=h[d++],n=c.getAttribute(e).split(a),r=/([.?@])?(.*)/.exec(t);p.push({type:1,index:u,name:r[2],strings:n,ctor:r[1]===`.`?N:r[1]===`?`?ee:r[1]===`@`?te:M}),c.removeAttribute(e)}else e.startsWith(a)&&(p.push({type:6,index:u}),c.removeAttribute(e));if(b.test(c.tagName)){let e=c.textContent.split(a),t=e.length-1;if(t>0){c.textContent=n?n.emptyScript:``;for(let n=0;n<t;n++)c.append(e[n],l()),T.nextNode(),p.push({type:2,index:++u});c.append(e[t],l())}}}else if(c.nodeType===8){if(c.data===o)p.push({type:2,index:u});else{let e=-1;for(;(e=c.data.indexOf(a,e+1))!==-1;)p.push({type:7,index:u}),e+=a.length-1}}u++}}static createElement(e,t){let n=c.createElement(`template`);return n.innerHTML=e,n}};function k(e,t,n=e,r){if(t===S)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=u(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=k(e,i._$AS(e,t.values),i,r)),t}var A=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??c).importNode(t,!0);T.currentNode=r;let i=T.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new j(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new ne(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=T.nextNode(),a++)}return T.currentNode=c,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},j=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=k(this,e,t),u(e)?e===C||e==null||e===``?(this._$AH!==C&&this._$AR(),this._$AH=C):e!==this._$AH&&e!==S&&this._(e):e._$litType$===void 0?e.nodeType===void 0?f(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==C&&u(this._$AH)?this._$AA.nextSibling.data=e:this.T(c.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=O.createElement(E(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new A(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=w.get(e.strings);return t===void 0&&w.set(e.strings,t=new O(e)),t}k(t){d(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(l()),this.O(l()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);e!==this._$AB;){let n=t(e).nextSibling;t(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},M=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=C,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=C}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=k(this,e,t,0),a=!u(e)||e!==this._$AH&&e!==S,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=k(this,r[n+o],t,o),s===S&&(s=this._$AH[o]),a||=!u(s)||s!==this._$AH[o],s===C?e=C:e!==C&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},N=class extends M{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===C?void 0:e}},ee=class extends M{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==C)}},te=class extends M{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=k(this,e,t,0)??C)===S)return;let n=this._$AH,r=e===C&&n!==C||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==C&&(n===C||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ne=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){k(this,e)}},re={M:i,P:a,A:o,C:1,L:D,R:A,D:f,V:k,I:j,H:M,N:ee,U:te,B:N,F:ne},ie=e.litHtmlPolyfillSupport;ie?.(O,j),(e.litHtmlVersions??=[]).push(`3.3.3`);var ae=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new j(t.insertBefore(l(),e),e,void 0,n??{})}return i._$AI(e),i},oe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},se=e=>(...t)=>({_$litDirective$:e,values:t}),ce=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},le=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},P=globalThis,F=P.ShadowRoot&&(P.ShadyCSS===void 0||P.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,I=Symbol(),L=new WeakMap,ue=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==I)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(F&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=L.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&L.set(t,e))}return e}toString(){return this.cssText}},de=e=>new ue(typeof e==`string`?e:e+``,void 0,I),fe=(e,t)=>{if(F)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=P.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},R=F?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return de(t)})(e):e,{is:pe,defineProperty:me,getOwnPropertyDescriptor:he,getOwnPropertyNames:ge,getOwnPropertySymbols:_e,getPrototypeOf:ve}=Object,z=globalThis,B=z.trustedTypes,ye=B?B.emptyScript:``,be=z.reactiveElementPolyfillSupport,V=(e,t)=>e,H={toAttribute(e,t){switch(t){case Boolean:e=e?ye:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},U=(e,t)=>!pe(e,t),xe={attribute:!0,type:String,converter:H,reflect:!1,useDefault:!1,hasChanged:U};Symbol.metadata??=Symbol(`metadata`),z.litPropertyMetadata??=new WeakMap;var W=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=xe){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&me(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=he(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??xe}static _$Ei(){if(this.hasOwnProperty(V(`elementProperties`)))return;let e=ve(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(V(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(V(`properties`))){let e=this.properties,t=[...ge(e),..._e(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(R(e))}else e!==void 0&&t.push(R(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return fe(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?H:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?H:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??U)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};W.elementStyles=[],W.shadowRootOptions={mode:`open`},W[V(`elementProperties`)]=new Map,W[V(`finalized`)]=new Map,be?.({ReactiveElement:W}),(z.reactiveElementVersions??=[]).push(`2.1.2`);var Se={attribute:!0,type:String,converter:H,reflect:!1,hasChanged:U},Ce=(e=Se,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function G(e){return(t,n)=>typeof n==`object`?Ce(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function we(e){return G({...e,state:!0,attribute:!1})}var K=globalThis,q=class extends W{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ae(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return S}};q._$litElement$=!0,q.finalized=!0,K.litElementHydrateSupport?.({LitElement:q});var Te=K.litElementPolyfillSupport;Te?.({LitElement:q}),(K.litElementVersions??=[]).push(`4.2.2`);var J={generic:{from:`Fra`,to:`Til`,close:`Lukk`},forms:{optional:`Valgfritt`,required:`Må fylles ut`,readMore:`Les mer <span class='pkt-sr-only'>om feltet</span>`},validation:{valueMissing:`Dette feltet er påkrevd`,typeMismatch:`Ugyldig verdi`,patternMismatch:`Ugyldig format`,tooShort:`For kort`,tooLong:`For lang`,rangeUnderflow:`For lav verdi`,rangeOverflow:`For høy verdi`,rangeUnderflowMin:`Verdien må være større enn eller lik {min}.`,rangeOverflowMax:`Verdien må være mindre enn eller lik {max}.`,stepMismatch:`Må treffe på steget som er definert i elementet`,timeStepMismatch:`Må treffe på et steg, for eksempel 0, {step} minutter`,timeStepMismatchHour:`Må treffe på hver hele time`,timeStepMismatchHalfHour:`Må treffe på hver hele eller halve time`,dateUnderflow:`For tidlig dato`,dateOverflow:`For sen dato`,counterExceeded:`Du har brukt {current} av {max}`},dates:{month:`Måned`,year:`År`,week:`Uke`,days:[`Mandag`,`Tirsdag`,`Onsdag`,`Torsdag`,`Fredag`,`Lørdag`,`Søndag`],daysShort:[`Man`,`Tir`,`Ons`,`Tor`,`Fre`,`Lør`,`Søn`],months:[`Januar`,`Februar`,`Mars`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Desember`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Des`]},calendar:{prevMonth:`Forrige måned`,nextMonth:`Neste måned`},datepicker:{openPicker:`Åpne kalender`,deleteDate:`Fjern dato`},timepicker:{hours:`Timer`,minutes:`Minutter`,openPicker:`Åpne tidspunkt-velger`,prevTime:`Forrige tidspunkt`,nextTime:`Neste tidspunkt`,selectTime:`Velg tidspunkt`},searchinput:{placeholder:`Søk…`,submit:`Søk`},backlink:{label:`Gå tilbake til forrige side`},breadcrumbs:{ariaLabel:`brødsmulemeny`},tag:{remove:`Klikk for å fjerne {label}`},header:{search:`Søk`,menu:`Meny`,openMenu:`Åpne meny`,openSearch:`Åpne søkefelt`},listbox:{searchLabel:`Søk i listen`,searchPlaceholder:`Søk…`},combobox:{noResults:`Ingen treff i søket`,maxSelected:`Maks antall valg nådd`,tooManySelected:`For mange valgt`,alreadySelected:`Verdien er allerede valgt`,valueAdded:`Ny verdi lagt til`,noValidValue:`Ingen gyldig verdi valgt`},fileupload:{dropZoneDragMultiple:`Dra filer hit for å laste dem opp eller`,dropZoneDragSingle:`Dra en fil hit for å laste den opp eller`,dropZoneDragMultipleThumbnail:`Dra bilder hit for å laste dem opp eller`,dropZoneDragSingleThumbnail:`Dra et bilde hit for å laste det opp eller`,dropZoneDragActiveMultiple:`Slipp filene her`,dropZoneDragActiveSingle:`Slipp filen her`,dropZoneDragActiveMultipleThumbnail:`Slipp bildene her`,dropZoneDragActiveSingleThumbnail:`Slipp bildet her`,dropZoneOpenFileDialogMultiple:`velg filer`,dropZoneOpenFileDialogSingle:`velg en fil`,dropZoneOpenFileDialogMultipleThumbnail:`velg fra kamerarull`,dropZoneOpenFileDialogSingleThumbnail:`velg fra kamerarull`,supportedFormatsPrefix:`Format:`,invalidFormat:`Ugyldig filtype. Tillatte formater: {formats}`,sizeTooLarge:`Filen er for stor. Maks størrelse er {maxSize}.`,requiredMissing:`Du må laste opp minst én fil.`,genericValidationRejection:`Filen ble avvist av validering.`,unknownFilename:`Ukjent fil`,previewFallbackName:`Forhåndsvisning`,previewImage:`Forhåndsvis bilde {filename}`,fileLabelOne:`fil`,fileLabelOther:`filer`,srFileAdded:`Filen «{filename}» er lagt til`,srFilesAdded:`{count} filer er lagt til`,srFilesUploadedOfTotal:`{uploaded} av {total} {label} lastet opp`,srFilesFailedOfTotal:`Feil ved opplasting: {failed} av {total} {label} feilet`}},Y=Symbol.for(`@oslokommune/punkt-strings`);function X(){let e=globalThis;return e[Y]||(e[Y]={overrides:{},listeners:new Set}),e[Y]}function Ee(e){let t=X(),n={...t.overrides};for(let t of Object.keys(e)){let r=e[t];r&&(n[t]={...n[t],...r})}t.overrides=n,t.listeners.forEach(e=>e())}function De(){return X().overrides}function Oe(){let e=X();e.overrides={},e.listeners.forEach(e=>e())}function ke(e){let t=X();return t.listeners.add(e),()=>{t.listeners.delete(e)}}var Ae=new Map;function je(e,t){if(t)for(let n of Object.keys(t)){let r=t[n];r!==void 0&&(e[n]=r)}}function Me(e){return!!e&&Object.keys(e).length>0}function Ne(e){let t=De(),n=Ae.get(e);if(n&&n.overrides===t)return n.value;let r=t[e],i;if(Me(r)){let t={...J[e]};je(t,r),i=t}else i=J[e];return Ae.set(e,{overrides:t,value:i}),i}function Z(e,...t){let n=t.filter(t=>Me(t?.[e])),r=Ne(e);if(n.length===0)return r;let i={...r};for(let t of n)je(i,t?.[e]);return i}function Pe(e,...t){let n={};for(let r of e)n[r]=Z(r,...t);return n}var Fe=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=ke(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}get(e){return Z(e,this.host.strings)}getAll(e){return Pe(e,this.host.strings)}};function Q(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var $=class extends q{constructor(...e){super(...e),this.pktStrings=new Fe(this),this.role=null}hotReplacedCallback(){this.requestUpdate()}};Q([G({type:Object})],$.prototype,`strings`,void 0),Q([G({type:String})],$.prototype,`role`,void 0);var Ie=class extends ${createRenderRoot(){return this}};Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return re}});