@oslokommune/punkt-elements 17.1.3 → 18.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/{accordion-BeLvLPrB.js → accordion-CcUosZjL.js} +27 -27
- package/dist/{accordion-B3GBlvUC.cjs → accordion-k0pWTG1X.cjs} +5 -5
- package/dist/alert-BD8YVKia.cjs +35 -0
- package/dist/{alert-DKK_Tb9J.js → alert-Bmaly2Yo.js} +57 -52
- package/dist/{async-directive-BPf6K-V2.js → async-directive-COqx0IYj.js} +5 -5
- package/dist/{async-directive-Da7TJpnq.cjs → async-directive-DN2eg9gA.cjs} +1 -1
- package/dist/{backlink-D1y26pj3.js → backlink-C_ZO-ZbR.js} +9 -9
- package/dist/{backlink-CMmrKTe4.cjs → backlink-Ch64Pivx.cjs} +3 -3
- package/dist/base-elements/element.d.ts +13 -1
- package/dist/base-elements/input-element.d.ts +4 -2
- package/dist/{breadcrumbs-CcTQ3Grm.js → breadcrumbs-CF_gAbUk.js} +16 -16
- package/dist/{breadcrumbs-B6JGhJgC.cjs → breadcrumbs-CzzbardP.cjs} +7 -7
- package/dist/{button-2-OSPJkj.js → button-C1CQSASU.js} +28 -28
- package/dist/{button-CE97NQIk.cjs → button-CF3dNKeI.cjs} +7 -7
- package/dist/{calendar-kn4SrtJy.cjs → calendar-BxF81kB9.cjs} +28 -27
- package/dist/{calendar-pOW3R5Pw.js → calendar-DRmxORMc.js} +82 -68
- package/dist/{card-CETDFkxR.cjs → card-Cg1daj05.cjs} +26 -26
- package/dist/{card-zQ0eKRMV.js → card-W_Jb0Tlo.js} +44 -44
- package/dist/{checkbox-CQNr_sEg.cjs → checkbox-BHQv8lHq.cjs} +11 -11
- package/dist/{checkbox-CH7NpINF.js → checkbox-BQw2dMSX.js} +23 -23
- package/dist/{class-map-BeimMvPv.cjs → class-map-C33ixq7O.cjs} +1 -1
- package/dist/{class-map-CnWCnBSX.js → class-map-wh4Yi3oj.js} +3 -3
- package/dist/{combobox-Bvg0UO9w.cjs → combobox-BpZow9OU.cjs} +19 -18
- package/dist/{combobox-CRdYYlxu.js → combobox-C9wwnUfM.js} +55 -54
- package/dist/components/accordion/accordion.d.ts +2 -6
- package/dist/components/accordion/accordionitem.d.ts +2 -8
- package/dist/components/alert/alert.d.ts +2 -2
- package/dist/components/backlink/backlink.d.ts +4 -5
- package/dist/components/backlink/backlink.test.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +6 -7
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/calendar/calendar.d.ts +21 -6
- package/dist/components/checkbox/checkbox.d.ts +4 -2
- package/dist/components/combobox/combobox-base.d.ts +2 -1
- package/dist/components/consent/strings.d.ts +1 -85
- package/dist/components/datepicker/datepicker-base.d.ts +0 -3
- package/dist/components/datepicker/datepicker-multiple.d.ts +0 -2
- package/dist/components/datepicker/datepicker-range.d.ts +0 -2
- package/dist/components/datepicker/datepicker-single.d.ts +0 -2
- package/dist/components/datepicker/datepicker-utils.d.ts +2 -1
- package/dist/components/fileupload/fileupload-base.d.ts +7 -4
- package/dist/components/fileupload/fileupload-types.d.ts +5 -43
- package/dist/components/header/header-service.d.ts +3 -1
- package/dist/components/header/header.d.ts +2 -1
- package/dist/components/helptext/helptext.d.ts +2 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/input-wrapper/input-wrapper.d.ts +4 -2
- package/dist/components/radiobutton/radiobutton.d.ts +4 -2
- package/dist/components/searchinput/searchinput.d.ts +2 -1
- package/dist/{consent-CyY3RyoC.cjs → consent-CPtr7cBw.cjs} +5 -5
- package/dist/{consent-DZEkhgJ1.js → consent-D8MrqGKk.js} +10 -10
- package/dist/controllers/strings-controller.d.ts +27 -0
- package/dist/{datepicker-ButIas85.js → datepicker-D4YnAtWG.js} +104 -104
- package/dist/{datepicker-VTqSDQk5.cjs → datepicker-DaoumZT9.cjs} +38 -37
- package/dist/define-component-spec-BYOSeplU.js +6 -0
- package/dist/define-component-spec-DBNd2FJY.cjs +1 -0
- package/dist/{directive-helpers-CI8YZqku.js → directive-helpers-BWSAVe00.js} +1 -1
- package/dist/{directive-helpers-BlAV5EQD.cjs → directive-helpers-C6J4AkFk.cjs} +1 -1
- package/dist/docs/components/alert.d.ts +2 -3
- package/dist/docs/components/fileupload.d.ts +1 -0
- package/dist/element-DiFhBcIl.cjs +2 -0
- package/dist/{element-ChsFgr_B.js → element-WEzISABa.js} +241 -100
- package/dist/{element-with-slot-BvG9ctC-.js → element-with-slot-BKYUx4gb.js} +4 -4
- package/dist/{element-with-slot-Bj7nm7fO.cjs → element-with-slot-CBK4zrdN.cjs} +1 -1
- package/dist/{fileupload-D5IQ9HDe.js → fileupload-DEHSETw0.js} +340 -652
- package/dist/fileupload-DWu6FIMv.cjs +402 -0
- package/dist/{footer-DrR64HiK.js → footer-BJLEw6Ab.js} +91 -91
- package/dist/{footer-DbYQUYNR.cjs → footer-D_yYWkQ6.cjs} +32 -32
- package/dist/format-B8meU8Tm.cjs +1 -0
- package/dist/format-BTeSVkED.js +18 -0
- package/dist/{header-ClgIac6n.cjs → header-B7_4Cwaq.cjs} +84 -84
- package/dist/{header-KvJ1mGwA.js → header-DLVq7-dM.js} +267 -264
- package/dist/{header-menu-hVPXsb8g.js → header-menu-BsrrTjpT.js} +75 -75
- package/dist/{header-menu-BAsUNKSx.cjs → header-menu-m7nOOC1g.cjs} +24 -24
- package/dist/{heading-g-_IUB5T.js → heading-DSArgrDK.js} +16 -16
- package/dist/{heading-CFmiSuCQ.cjs → heading-_RPw2UW9.cjs} +1 -1
- package/dist/helptext-QMVsW5g6.cjs +27 -0
- package/dist/{helptext-DZng1D5i.js → helptext-dtVVufNH.js} +18 -19
- package/dist/{icon-D-LA22xD.js → icon-DEtOSWRK.js} +17 -17
- package/dist/{icon-9iwd2F2l.cjs → icon-DIavy2cB.cjs} +1 -1
- package/dist/{if-defined-CGzIlZ9-.js → if-defined-BmnvvxtR.js} +1 -1
- package/dist/if-defined-Dc3xFDaM.cjs +1 -0
- package/dist/input-element-DQY1Rpbp.cjs +1 -0
- package/dist/{input-element-DBMNBplu.js → input-element-IBypGOaV.js} +121 -120
- package/dist/input-wrapper-CQgAL1Br.js +308 -0
- package/dist/input-wrapper-mJZLVXy_.cjs +58 -0
- package/dist/link-DwLeY37f.js +131 -0
- package/dist/link-yk4IXDWm.cjs +7 -0
- package/dist/linkcard-BinKnxQF.cjs +13 -0
- package/dist/{linkcard-zqbg7Oqm.js → linkcard-D5DXpmXI.js} +16 -16
- package/dist/{listbox-Dc4rGdPi.cjs → listbox-C5zTRNAO.cjs} +15 -15
- package/dist/{listbox-va_E8afs.js → listbox-C8ooO8qZ.js} +100 -99
- package/dist/{loader-D_RDICnw.js → loader-C3HyayzL.js} +14 -14
- package/dist/{loader-CMUkVJmE.cjs → loader-DHF7M5Vn.cjs} +5 -5
- package/dist/{messagebox-Cv8LaSxv.cjs → messagebox-DqYf6VmQ.cjs} +5 -5
- package/dist/{messagebox-Cw-OWDya.js → messagebox-u8i3R5QA.js} +15 -15
- package/dist/{modal-BtInv031.cjs → modal-CnJ9y2TQ.cjs} +8 -8
- package/dist/{modal-D0t_X2dX.js → modal-V-jEe0aY.js} +20 -20
- package/dist/pkt-accordion.cjs +1 -1
- package/dist/pkt-accordion.js +1 -1
- package/dist/pkt-alert.cjs +1 -1
- package/dist/pkt-alert.js +1 -1
- package/dist/pkt-backlink.cjs +1 -1
- package/dist/pkt-backlink.js +1 -1
- package/dist/pkt-breadcrumbs.cjs +1 -1
- package/dist/pkt-breadcrumbs.js +1 -1
- package/dist/pkt-button.cjs +1 -1
- package/dist/pkt-button.js +1 -1
- package/dist/pkt-calendar.cjs +1 -1
- package/dist/pkt-calendar.js +1 -1
- package/dist/pkt-card.cjs +1 -1
- package/dist/pkt-card.js +1 -1
- package/dist/pkt-checkbox.cjs +1 -1
- package/dist/pkt-checkbox.js +1 -1
- package/dist/pkt-combobox.cjs +1 -1
- package/dist/pkt-combobox.js +1 -1
- package/dist/pkt-consent.cjs +1 -1
- package/dist/pkt-consent.js +1 -1
- package/dist/pkt-datepicker.cjs +1 -1
- package/dist/pkt-datepicker.js +1 -1
- package/dist/pkt-fileupload.cjs +1 -1
- package/dist/pkt-fileupload.js +1 -1
- package/dist/pkt-footer.cjs +1 -1
- package/dist/pkt-footer.js +1 -1
- package/dist/pkt-header-menu.cjs +1 -1
- package/dist/pkt-header-menu.js +1 -1
- package/dist/pkt-header.cjs +1 -1
- package/dist/pkt-header.js +1 -1
- package/dist/pkt-heading.cjs +1 -1
- package/dist/pkt-heading.js +1 -1
- package/dist/pkt-helptext.cjs +1 -1
- package/dist/pkt-helptext.js +1 -1
- package/dist/pkt-icon.cjs +1 -1
- package/dist/pkt-icon.js +1 -1
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +35 -34
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +1 -1
- package/dist/pkt-link.cjs +1 -1
- package/dist/pkt-link.js +1 -1
- package/dist/pkt-linkcard.cjs +1 -1
- package/dist/pkt-linkcard.js +1 -1
- package/dist/pkt-listbox.cjs +1 -1
- package/dist/pkt-listbox.js +1 -1
- package/dist/pkt-loader.cjs +1 -1
- package/dist/pkt-loader.js +1 -1
- package/dist/pkt-messagebox.cjs +1 -1
- package/dist/pkt-messagebox.js +1 -1
- package/dist/pkt-modal.cjs +1 -1
- package/dist/pkt-modal.js +1 -1
- package/dist/{pkt-options-controller-C5EBX2T0.cjs → pkt-options-controller-BhMNCWcc.cjs} +1 -1
- package/dist/{pkt-options-controller-B77vH3PE.js → pkt-options-controller-CuQ6SClv.js} +1 -1
- package/dist/pkt-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +1 -1
- package/dist/pkt-radiobutton.cjs +1 -1
- package/dist/pkt-radiobutton.js +1 -1
- package/dist/pkt-searchinput.cjs +1 -1
- package/dist/pkt-searchinput.js +1 -1
- package/dist/pkt-select.cjs +1 -1
- package/dist/pkt-select.js +1 -1
- package/dist/pkt-tabs.cjs +1 -1
- package/dist/pkt-tabs.js +1 -1
- package/dist/pkt-tag.cjs +1 -1
- package/dist/pkt-tag.js +1 -1
- package/dist/pkt-textarea.cjs +1 -1
- package/dist/pkt-textarea.js +1 -1
- package/dist/pkt-textinput.cjs +1 -1
- package/dist/pkt-textinput.js +1 -1
- package/dist/pkt-timepicker.cjs +1 -1
- package/dist/pkt-timepicker.js +1 -1
- package/dist/{progressbar-CbcfLerF.js → progressbar-DS4i8IWq.js} +21 -21
- package/dist/{progressbar-D5MmnQId.cjs → progressbar-DY5hxImR.cjs} +5 -5
- package/dist/{radiobutton-BUnf3EPi.js → radiobutton-BhvZztMZ.js} +24 -24
- package/dist/{radiobutton-DpsO1F-8.cjs → radiobutton-BswqwRnA.cjs} +8 -8
- package/dist/{ref-CQoEIIp0.cjs → ref-DZmN5Qgj.cjs} +1 -1
- package/dist/{ref-CWD6PjVd.js → ref-OU8ryfP6.js} +2 -2
- package/dist/{repeat-sY6B7fAT.cjs → repeat-DIa_g6WL.cjs} +1 -1
- package/dist/{repeat-C02g7d5S.js → repeat-Dx2H127b.js} +4 -4
- package/dist/{searchinput-DwnjsvJ1.js → searchinput-CJo1PpM7.js} +43 -43
- package/dist/searchinput-Cl46nW0r.cjs +60 -0
- package/dist/{select-DMre80qs.js → select-CBrjauXT.js} +21 -20
- package/dist/{select-BOJi6H6T.cjs → select-Dman8Skr.cjs} +4 -3
- package/dist/shared-strings/consent.d.ts +71 -0
- package/dist/shared-strings/format.d.ts +21 -0
- package/dist/shared-strings/index.d.ts +14 -0
- package/dist/shared-strings/nb.d.ts +121 -0
- package/dist/shared-strings/resolve.d.ts +12 -0
- package/dist/shared-strings/store.d.ts +27 -0
- package/dist/shared-strings/types.d.ts +40 -0
- package/dist/shared-types/accordion.d.ts +58 -0
- package/dist/shared-types/alert.d.ts +20 -0
- package/dist/shared-types/aria.d.ts +2 -1
- package/dist/shared-types/backlink.d.ts +23 -0
- package/dist/shared-types/breadcrumbs.d.ts +33 -0
- package/dist/shared-types/fileupload.d.ts +55 -28
- package/dist/shared-types/footer.d.ts +10 -0
- package/dist/shared-types/form-field.d.ts +45 -0
- package/dist/shared-types/header-footer.d.ts +2 -0
- package/dist/shared-types/index.d.ts +15 -6
- package/dist/shared-types/render-link.d.ts +22 -0
- package/dist/shared-types/skin.d.ts +2 -9
- package/dist/shared-utils/combobox/index.d.ts +1 -0
- package/dist/shared-utils/combobox/input-utils.d.ts +2 -1
- package/dist/shared-utils/combobox/messages.d.ts +7 -0
- package/dist/shared-utils/combobox/option-utils.d.ts +2 -1
- package/dist/shared-utils/combobox/selection-manager.d.ts +3 -2
- package/dist/{tabs-Cf9ai0FD.cjs → tabs-C1m5rSrR.cjs} +7 -7
- package/dist/{tabs-TvxgbrCF.js → tabs-Xu3mIedh.js} +32 -32
- package/dist/{tag-Ds6n1LIs.js → tag-Azkjhkeu.js} +33 -32
- package/dist/tag-BS6dDPxY.cjs +27 -0
- package/dist/tests/strings-override.test.d.ts +0 -0
- package/dist/{textarea-vfzIcXhX.js → textarea-D4qXcVGD.js} +30 -29
- package/dist/{textarea-BydiLM9Z.cjs → textarea-DftUkR6w.cjs} +3 -2
- package/dist/{textinput-DGdicNSx.cjs → textinput-Ar-1Sbqy.cjs} +13 -12
- package/dist/{textinput-CMP2jPP_.js → textinput-iCgwwNPU.js} +28 -27
- package/dist/{timepicker-ClwgYywH.js → timepicker-W6HVWtmA.js} +67 -64
- package/dist/timepicker-dpAF7h49.cjs +196 -0
- package/package.json +3 -3
- package/src/components/accordion/accordion.ts +2 -10
- package/src/components/accordion/accordionitem.ts +2 -9
- package/src/components/alert/alert.ts +19 -10
- package/src/components/backlink/backlink.test.ts +3 -3
- package/src/components/backlink/backlink.ts +5 -7
- package/src/components/breadcrumbs/breadcrumbs.ts +9 -10
- package/src/components/breadcrumbs/index.ts +1 -1
- package/src/components/calendar/calendar.ts +56 -26
- package/src/components/checkbox/checkbox.test.ts +0 -2
- package/src/components/checkbox/checkbox.ts +8 -4
- package/src/components/combobox/combobox-base.ts +2 -1
- package/src/components/combobox/combobox-value.ts +10 -9
- package/src/components/combobox/combobox.selection.test.ts +5 -1
- package/src/components/combobox/combobox.ts +4 -1
- package/src/components/consent/strings.ts +1 -125
- package/src/components/datepicker/date-tags.ts +4 -1
- package/src/components/datepicker/datepicker-base.ts +2 -6
- package/src/components/datepicker/datepicker-multiple.ts +0 -3
- package/src/components/datepicker/datepicker-range.ts +4 -7
- package/src/components/datepicker/datepicker-single.ts +0 -3
- package/src/components/datepicker/datepicker-utils.test.ts +5 -5
- package/src/components/datepicker/datepicker-utils.ts +6 -11
- package/src/components/datepicker/datepicker.ts +8 -1
- package/src/components/fileupload/fileupload-base.ts +29 -19
- package/src/components/fileupload/fileupload-renderers.ts +2 -1
- package/src/components/fileupload/fileupload-types.ts +5 -42
- package/src/components/fileupload/fileupload.test.ts +16 -0
- package/src/components/fileupload/fileupload.ts +19 -15
- package/src/components/header/header-global.ts +3 -3
- package/src/components/header/header-service.ts +13 -8
- package/src/components/header/header.ts +2 -1
- package/src/components/helptext/helptext.test.ts +1 -1
- package/src/components/helptext/helptext.ts +3 -3
- package/src/components/index.ts +10 -1
- package/src/components/input-wrapper/input-wrapper.ts +18 -10
- package/src/components/link/link.ts +8 -3
- package/src/components/listbox/listbox.ts +3 -3
- package/src/components/radiobutton/radiobutton.ts +8 -4
- package/src/components/searchinput/searchinput.ts +5 -3
- package/src/components/select/select.ts +1 -0
- package/src/components/tag/tag.ts +2 -1
- package/src/components/textarea/textarea.ts +1 -0
- package/src/components/textinput/textinput.ts +1 -0
- package/src/components/timepicker/timepicker.ts +23 -21
- package/dist/alert-Cs4Rmq_J.cjs +0 -33
- package/dist/element-BA8v6S7z.cjs +0 -2
- package/dist/fileupload-BeWiTAoW.cjs +0 -401
- package/dist/helptext-CTtKJcML.cjs +0 -27
- package/dist/if-defined-B89_ZeCj.cjs +0 -1
- package/dist/input-element-DYmQw-fH.cjs +0 -1
- package/dist/input-wrapper-BmxNvznr.js +0 -128
- package/dist/input-wrapper-D-fPaTbY.js +0 -176
- package/dist/input-wrapper-D5PR0rJn.cjs +0 -1
- package/dist/input-wrapper-Q-B-aBeb.cjs +0 -54
- package/dist/link-D-Eqm5KH.js +0 -98
- package/dist/link-DK7gvmnj.cjs +0 -7
- package/dist/linkcard-B29cmZqh.cjs +0 -13
- package/dist/searchinput-Bh975rjX.cjs +0 -60
- package/dist/tag-CzojNU7z.cjs +0 -27
- package/dist/timepicker-DYrnLHqN.cjs +0 -195
- package/dist/translations/no.json.d.ts +0 -94
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { n as
|
|
4
|
-
import "./icon-
|
|
5
|
-
import { t as l } from "./if-defined-
|
|
6
|
-
import { n as u, t as d } from "./ref-
|
|
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-WEzISABa.js";
|
|
2
|
+
import { t as c } from "./class-map-wh4Yi3oj.js";
|
|
3
|
+
import { n as ee } from "./element-with-slot-BKYUx4gb.js";
|
|
4
|
+
import "./icon-DEtOSWRK.js";
|
|
5
|
+
import { t as l } from "./if-defined-BmnvvxtR.js";
|
|
6
|
+
import { n as u, t as d } from "./ref-OU8ryfP6.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-
|
|
9
|
-
import "./tag-
|
|
10
|
-
import { t as C } from "./repeat-
|
|
8
|
+
import "./calendar-DRmxORMc.js";
|
|
9
|
+
import "./tag-Azkjhkeu.js";
|
|
10
|
+
import { t as C } from "./repeat-Dx2H127b.js";
|
|
11
11
|
import { n as w, t as T } from "./utils-BwF4QSrq.js";
|
|
12
|
-
import { t as E } from "./input-element-
|
|
13
|
-
import "./input-wrapper-
|
|
14
|
-
//#region
|
|
15
|
-
var D =
|
|
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-IBypGOaV.js";
|
|
13
|
+
import "./input-wrapper-CQgAL1Br.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
|
-
},
|
|
30
|
-
<div class=${
|
|
31
|
-
${Array.isArray(this.dates) && this.dates[0] ? C(h((this.dates ?? []).filter(Boolean)), (e) => e, (
|
|
32
|
-
id=${this.idBase +
|
|
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:
|
|
29
|
+
this.dispatchEvent(new CustomEvent("date-tag-removed", { detail: t }));
|
|
36
30
|
}}
|
|
37
|
-
.ariaLabel=${`${this.
|
|
31
|
+
.ariaLabel=${`${this.pktStrings.get("datepicker").deleteDate} ${p(t, this.dateformat)}`}
|
|
38
32
|
>
|
|
39
|
-
<time datetime=${
|
|
40
|
-
</pkt-tag>`) :
|
|
33
|
+
<time datetime=${t}>${p(t, this.dateformat)}</time>
|
|
34
|
+
</pkt-tag>`) : n}
|
|
41
35
|
</div>
|
|
42
36
|
`;
|
|
43
37
|
}
|
|
44
38
|
};
|
|
45
|
-
|
|
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
|
-
})],
|
|
42
|
+
})], D.prototype, "className", void 0), i([s({
|
|
49
43
|
type: String,
|
|
50
44
|
attribute: "id-base"
|
|
51
|
-
})],
|
|
45
|
+
})], D.prototype, "idBase", void 0);
|
|
52
46
|
try {
|
|
53
|
-
|
|
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
|
|
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
|
-
},
|
|
331
|
+
}, k = () => {
|
|
338
332
|
let e = navigator.userAgent;
|
|
339
333
|
return !!(/iP(hone|od|ad)/.test(e) || /Macintosh/.test(e) && "ontouchend" in document);
|
|
340
|
-
},
|
|
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:
|
|
371
|
-
sortDates:
|
|
372
|
-
filterSelectableDates:
|
|
373
|
-
}, H = { getInputType:
|
|
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
|
|
384
|
-
|
|
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
|
|
474
|
+
let t = {
|
|
476
475
|
"pkt-calendar-popup": !0,
|
|
477
476
|
show: this.open,
|
|
478
477
|
hide: !this.open
|
|
479
478
|
};
|
|
480
|
-
return
|
|
479
|
+
return e`
|
|
481
480
|
<div
|
|
482
|
-
class="${
|
|
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 ?
|
|
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>` :
|
|
514
|
+
></pkt-calendar>` : n}
|
|
516
515
|
</div>
|
|
517
516
|
`;
|
|
518
517
|
}
|
|
519
518
|
};
|
|
520
|
-
|
|
519
|
+
i([s({
|
|
521
520
|
type: Boolean,
|
|
522
521
|
reflect: !0
|
|
523
|
-
})], J.prototype, "open", 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
|
-
|
|
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
|
|
578
|
+
return e`
|
|
580
579
|
<button
|
|
581
|
-
class="${
|
|
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.
|
|
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
|
-
|
|
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 = ""
|
|
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
|
|
614
|
+
return e`
|
|
616
615
|
<div class="pkt-input__container">
|
|
617
616
|
<input
|
|
618
|
-
class="${
|
|
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(),
|
|
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
|
-
|
|
657
|
+
i([s({ type: String })], X.prototype, "value", void 0);
|
|
659
658
|
try {
|
|
660
|
-
|
|
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.
|
|
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
|
|
675
|
-
return
|
|
673
|
+
let t = G.getRangeLabelClasses(this.showRangeLabels);
|
|
674
|
+
return e`
|
|
676
675
|
<div class="pkt-input__container">
|
|
677
|
-
${this.showRangeLabels ?
|
|
676
|
+
${this.showRangeLabels ? e` <div class="pkt-input-prefix">${this.pktStrings.get("generic").from}</div> ` : n}
|
|
678
677
|
<input
|
|
679
|
-
class=${
|
|
678
|
+
class=${c(this.inputClasses)}
|
|
680
679
|
.type=${this.inputType}
|
|
681
680
|
id="${this.id}-input"
|
|
682
|
-
aria-label="${this.label} ${this.
|
|
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(),
|
|
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="${
|
|
719
|
-
${this.
|
|
717
|
+
<div class="${c(t)}" id="${this.id}-to-label">
|
|
718
|
+
${this.pktStrings.get("generic").to}
|
|
720
719
|
</div>
|
|
721
|
-
${this.showRangeLabels ?
|
|
720
|
+
${this.showRangeLabels ? n : e` <div class="pkt-input-separator">–</div> `}
|
|
722
721
|
<input
|
|
723
|
-
class=${
|
|
722
|
+
class=${c(this.inputClasses)}
|
|
724
723
|
.type=${this.inputType}
|
|
725
724
|
id="${this.id}-to"
|
|
726
|
-
aria-label="${this.label} ${this.
|
|
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(),
|
|
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
|
-
|
|
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
|
-
|
|
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 = []
|
|
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
|
|
789
|
+
return e`
|
|
791
790
|
<div class="pkt-input__container">
|
|
792
791
|
<input
|
|
793
|
-
class=${
|
|
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(),
|
|
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
|
-
|
|
826
|
+
i([s({ type: Array })], Q.prototype, "value", void 0), i([s({ type: Number })], Q.prototype, "maxlength", void 0);
|
|
828
827
|
try {
|
|
829
|
-
|
|
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 =
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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),
|
|
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">${
|
|
1076
|
-
${this.multiple ?
|
|
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>` :
|
|
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(),
|
|
1100
|
+
e.show(), k() && e.focusOnCurrentDate();
|
|
1101
1101
|
return;
|
|
1102
1102
|
}
|
|
1103
|
-
await T(20), this.handleCalendarPosition(),
|
|
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
|
-
|
|
1130
|
+
i([s({
|
|
1131
1131
|
type: String,
|
|
1132
1132
|
reflect: !0
|
|
1133
|
-
})], $.prototype, "value", null),
|
|
1133
|
+
})], $.prototype, "value", null), i([s({
|
|
1134
1134
|
type: String,
|
|
1135
1135
|
reflect: !0
|
|
1136
|
-
})], $.prototype, "label", void 0),
|
|
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),
|
|
1139
|
+
})], $.prototype, "multiple", void 0), i([s({
|
|
1140
1140
|
type: Number,
|
|
1141
1141
|
reflect: !0
|
|
1142
|
-
})], $.prototype, "maxlength", void 0),
|
|
1142
|
+
})], $.prototype, "maxlength", void 0), i([s({
|
|
1143
1143
|
type: Boolean,
|
|
1144
1144
|
reflect: !0
|
|
1145
|
-
})], $.prototype, "range", void 0),
|
|
1145
|
+
})], $.prototype, "range", void 0), i([s({
|
|
1146
1146
|
type: Boolean,
|
|
1147
1147
|
attribute: "show-range-labels"
|
|
1148
|
-
})], $.prototype, "showRangeLabels", void 0),
|
|
1148
|
+
})], $.prototype, "showRangeLabels", void 0), i([s({
|
|
1149
1149
|
type: String,
|
|
1150
1150
|
reflect: !0
|
|
1151
|
-
})], $.prototype, "min", void 0),
|
|
1151
|
+
})], $.prototype, "min", void 0), i([s({
|
|
1152
1152
|
type: String,
|
|
1153
1153
|
reflect: !0
|
|
1154
|
-
})], $.prototype, "max", void 0),
|
|
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),
|
|
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),
|
|
1161
|
+
})], $.prototype, "calendarOpen", void 0), i([s({ type: String })], $.prototype, "timezone", void 0), i([r()], $.prototype, "inputClasses", void 0);
|
|
1162
1162
|
try {
|
|
1163
|
-
|
|
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 {
|
|
1168
|
+
export { D as a, X as i, Q as n, Z as r, $ as t };
|