@oslokommune/punkt-elements 16.6.2 → 16.7.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 +18 -0
- package/dist/{accordionitem-D7sWqDM_.cjs → accordionitem-D1Agl1bB.cjs} +1 -1
- package/dist/{accordionitem-Cj74XruR.js → accordionitem-ZlaXvjt5.js} +5 -5
- package/dist/{alert-ca_hFi-u.js → alert-BuAXrnKl.js} +6 -6
- package/dist/{alert-C95U_RZ0.cjs → alert-DFkFNTxh.cjs} +1 -1
- package/dist/{async-directive-CKx6pubI.js → async-directive-CMzWMlZ5.js} +1 -1
- package/dist/{async-directive-B158h3ba.cjs → async-directive-DoMuclel.cjs} +1 -1
- package/dist/{backlink-CQoNgoa-.cjs → backlink-EiAXUUZP.cjs} +1 -1
- package/dist/{backlink-C68H4Z3b.js → backlink-V4DAt17e.js} +3 -3
- package/dist/{button-BRovt5nm.js → button-DEyvt1LI.js} +5 -5
- package/dist/{button-BXN_JPaH.cjs → button-DYv5Dg4M.cjs} +1 -1
- package/dist/{calendar-43Y_6FD8.cjs → calendar-HIE9nxcc.cjs} +1 -1
- package/dist/{calendar-B5Xwl8mV.js → calendar-S63oreVW.js} +4 -4
- package/dist/{card-DfHo45CG.cjs → card-CyeH6l1c.cjs} +1 -1
- package/dist/{card-DvgCTN4B.js → card-DDiLfuO4.js} +7 -7
- package/dist/{checkbox-mmn3v9ry.cjs → checkbox-BLlwTABj.cjs} +1 -1
- package/dist/{checkbox-CbIUMIYt.js → checkbox-ejBUa5qQ.js} +4 -4
- package/dist/{class-map-3ADKve8g.js → class-map-CEnykyO_.js} +1 -1
- package/dist/{class-map-Bokp1SoS.cjs → class-map-CsENJXf1.cjs} +1 -1
- package/dist/{combobox-CwW0md6G.js → combobox-BmxSecfE.js} +13 -13
- package/dist/{combobox-TKL44xnV.cjs → combobox-Hb2V-fPX.cjs} +1 -1
- package/dist/{consent-CgS1L1xF.js → consent-iXyx5v6J.js} +3 -3
- package/dist/{consent-CIhFwuFO.cjs → consent-ruWAEVXW.cjs} +1 -1
- package/dist/{datepicker-qRWWzmbo.js → datepicker-CZl7b8Na.js} +12 -12
- package/dist/{datepicker-oN9L0Wnm.cjs → datepicker-D2H7U6MS.cjs} +1 -1
- package/dist/{directive-helpers-B3Vpl3xV.cjs → directive-helpers-BP2WOx60.cjs} +1 -1
- package/dist/{directive-helpers-CyPtA1_i.js → directive-helpers-rm-28gIj.js} +1 -1
- package/dist/{element-CV9utnHJ.js → element-CPpT3rFQ.js} +68 -67
- package/dist/{element-CMTfByxQ.cjs → element-gR_VtSiD.cjs} +6 -6
- package/dist/{element-with-slot-1djk8KXi.js → element-with-slot-Dqk6-TRR.js} +2 -2
- package/dist/{element-with-slot-yT8k1Z37.cjs → element-with-slot-ZX-up7jO.cjs} +1 -1
- package/dist/{heading-D9R5UBcv.js → heading-CKt7cVn7.js} +1 -1
- package/dist/{heading-B0XRE0lq.cjs → heading-Cvz8m1xL.cjs} +1 -1
- package/dist/{helptext-B366oeR9.cjs → helptext-5Mzp65-F.cjs} +1 -1
- package/dist/{helptext-DepcDYFV.js → helptext-jIoWRcCF.js} +5 -5
- package/dist/{icon-D0IQAVwS.js → icon-BlKA8YuW.js} +1 -1
- package/dist/{icon-Dj0oZZSa.cjs → icon-Bqj9oBbl.cjs} +1 -1
- package/dist/{if-defined-rXcLNTzN.js → if-defined-B0krMLad.js} +1 -1
- package/dist/{if-defined-hKKmbsI8.cjs → if-defined-BOW3ODSj.cjs} +1 -1
- package/dist/index.d.ts +92 -0
- package/dist/{input-element-n5U38pZ1.js → input-element-8nLwuQS4.js} +3 -3
- package/dist/{input-element-Xe9FTi2a.cjs → input-element-DdVhUvva.cjs} +1 -1
- package/dist/{input-wrapper-BdFdJU-k.cjs → input-wrapper-B0MkQ0IZ.cjs} +1 -1
- package/dist/{input-wrapper-B__6jW4U.js → input-wrapper-B2JpK016.js} +7 -7
- package/dist/{link-DLjXMpvi.cjs → link-R_lNhViF.cjs} +1 -1
- package/dist/{link-oGYvBLYL.js → link-Z_GizclR.js} +4 -4
- package/dist/{linkcard-BhVIc18n.js → linkcard-BlQvdB1a.js} +4 -4
- package/dist/{linkcard-C20WC6Nw.cjs → linkcard-C7HbSLlX.cjs} +1 -1
- package/dist/{listbox-CS4WQOuf.js → listbox-BQKDZvZn.js} +5 -5
- package/dist/{listbox-OAVh_U7u.cjs → listbox-CGgV9MAe.cjs} +1 -1
- package/dist/{loader-BHt9i5Xp.js → loader-Ci3CHU8k.js} +5 -5
- package/dist/{loader-DxAGCcNF.cjs → loader-e2gs_1xz.cjs} +1 -1
- package/dist/{messagebox-DkspcMQg.js → messagebox-Bf-XMlvW.js} +5 -5
- package/dist/{messagebox-B8LW0PSQ.cjs → messagebox-D67w71VX.cjs} +1 -1
- package/dist/{modal-mWn5pjs8.cjs → modal-CyvEkbfQ.cjs} +1 -1
- package/dist/{modal-D3u6ueP5.js → modal-DzGe1g8Z.js} +6 -6
- package/dist/pkt-accordion.cjs +1 -1
- package/dist/pkt-accordion.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/pkt-header.cjs +1 -1
- package/dist/pkt-header.js +10 -10
- 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 +33 -31
- 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-DIeKSpWv.cjs → pkt-options-controller-5LXbEzuk.cjs} +1 -1
- package/dist/{pkt-options-controller-W4ITGQy9.js → pkt-options-controller-B5YalfCb.js} +1 -1
- package/dist/pkt-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +2 -2
- package/dist/pkt-radiobutton.cjs +1 -1
- package/dist/pkt-radiobutton.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 +2 -2
- 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 +188 -0
- package/dist/pkt-timepicker.js +552 -0
- package/dist/{progressbar-CcX-xiPI.js → progressbar-By7e0lEI.js} +5 -5
- package/dist/{progressbar-CC9Qr82_.cjs → progressbar-DsJ2B9Vm.cjs} +1 -1
- package/dist/{radiobutton-RW3h0tJj.js → radiobutton-6frNG9J_.js} +5 -5
- package/dist/{radiobutton-BUDQYAH-.cjs → radiobutton-Bv-BZ1Hw.cjs} +1 -1
- package/dist/{ref-DBGHvw2G.js → ref-Bg_Swj5w.js} +2 -2
- package/dist/{ref-DahIePMT.cjs → ref-CL-Xk9Xm.cjs} +1 -1
- package/dist/{repeat-DnlRNf63.js → repeat-BD8TKgJb.js} +2 -2
- package/dist/{repeat-C-FJ2vfy.cjs → repeat-Cfq8CDlf.cjs} +1 -1
- package/dist/{select-iXKeM3yz.js → select-CXZt1nHS.js} +8 -8
- package/dist/{select-PuEeK4jQ.cjs → select-WFhS4Vfp.cjs} +1 -1
- package/dist/{state-l4hGZdFJ.js → state-C_1EOo3D.js} +1 -1
- package/dist/{state-BNgpvY-A.cjs → state-Dg-53wQ8.cjs} +1 -1
- package/dist/{tabitem-DZSzwag2.js → tabitem-CB8wkKmv.js} +5 -5
- package/dist/{tabitem-Jenus4Qd.cjs → tabitem-DZpspU4Q.cjs} +1 -1
- package/dist/{tag-CIWBLpjv.js → tag-BuCpqaks.js} +6 -6
- package/dist/{tag-DeE1OpmF.cjs → tag-X6xdjR0N.cjs} +1 -1
- package/dist/{textarea-DR9lVDN-.js → textarea-Bzuymclz.js} +10 -10
- package/dist/{textarea-DtiYQWjy.cjs → textarea-DoeHJ7HR.cjs} +1 -1
- package/dist/{textinput-0Bttvt9V.js → textinput-9lHjs4ce.js} +9 -9
- package/dist/{textinput-cKrjvbJW.cjs → textinput-BNsLd26i.cjs} +1 -1
- package/dist/timepicker.d.ts +1 -0
- package/package.json +2 -3
- package/src/components/index.ts +3 -0
- package/src/components/timepicker/index.ts +2 -0
- package/src/components/timepicker/timepicker.test.ts +453 -0
- package/src/components/timepicker/timepicker.ts +787 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as p, b as c, n as a, t as g } from "./element-
|
|
2
|
-
import "./button-
|
|
3
|
-
import "./icon-
|
|
1
|
+
import { P as p, b as c, n as a, t as g } from "./element-CPpT3rFQ.js";
|
|
2
|
+
import "./button-DEyvt1LI.js";
|
|
3
|
+
import "./icon-BlKA8YuW.js";
|
|
4
4
|
const u = {
|
|
5
5
|
i18n: {
|
|
6
6
|
nb: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("./element-
|
|
1
|
+
"use strict";const o=require("./element-gR_VtSiD.cjs");require("./button-DYv5Dg4M.cjs");require("./icon-Bqj9oBbl.cjs");const k={i18n:{nb:{contentPresentation:{title:"Oslo kommune bruker informasjonskapsler",description:["For at nettstedet skal fungere og være trygt, bruker Oslo kommune informasjonskapsler. Noen er teknisk nødvendige, mens andre sikrer ulik funksjonalitet.","Godtar du alle informasjonskapsler, tillater du også at vi samler inn data om statistikk og brukeradferd. Da hjelper du oss med å lage et bedre nettsted uten at du trenger å dele noe personlig informasjon med oss."],buttons:{accept:"Godta alle",reject:"Kun nødvendige",settings:"Innstillinger for informasjonskapsler"}},contentSettings:{title:"Innstillinger for informasjonskapsler",description:["Her kan du velge hvilke typer informasjonskapsler du vil tillate. Tillatelsen gjelder i 90 dager. Husk at nødvendige informasjonskapsler ikke kan velges bort.","Du kan når som helst endre innstillingene og finne mer informasjon nederst på nettstedet under «Innstillinger for informasjonskapsler» og «Personvern og informasjonskapsler»."],buttons:{back:"Tilbake",save:"Lagre innstillinger"}}},en:{contentPresentation:{title:"Before you visit Oslo kommune ...",description:["This website uses cookies to make improvements. In this context, we need your consent to measure the traffic on the website in relation to statistics and feedback.","To read more about what we use cookies for, go to our privacy declaration which you will find at the bottom of our websites."],buttons:{accept:"Yes, I accept",reject:"Only necessary",settings:"Go to settings"}},contentSettings:{title:"Her kan du aktivt velge mellom ulike informasjonskapsler",description:["For å lese mer om hva vi bruker informasjonskapsler til gå til vår personvernserklering som du finner på våre nettsider"],buttons:{back:"Back",save:"Save settings"}}}}};var d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,s=(r,e,t,n)=>{for(var i=n>1?void 0:n?p(e,t):e,a=r.length-1,l;a>=0;a--)(l=r[a])&&(i=(n?l(e,t,i):l(i))||i);return n&&i&&d(e,t,i),i};let c=null;function u(){return c||(c=new Promise((r,e)=>{if(document.querySelector("#oslo-consent-script")){r();return}const t=document.createElement("script");t.src="https://cdn.web.oslo.kommune.no/cb/cb-v1.1.0.js",t.id="oslo-consent-script",t.onload=()=>r(),t.onerror=e,document.head.appendChild(t);const n=document.createElement("link");n.href="https://cdn.web.oslo.kommune.no/cb/cb-v1.1.0.css",n.type="text/css",n.rel="stylesheet",n.id="oslo-consent-styles",document.head.appendChild(n)}),c)}exports.PktConsent=class extends o.PktElement{constructor(){super(),this.devMode=!1,this.hotjarId=null,this.googleAnalyticsId=null,this.cookieDomain=null,this.cookieSecure=null,this.cookieExpiryDays=null,this.triggerType="button",this.triggerText=null,this.i18nLanguage="nb"}connectedCallback(){super.connectedCallback(),this.triggerText=this.triggerText||k.i18n[this.i18nLanguage].contentPresentation.buttons.settings}disconnectedCallback(){var e;super.disconnectedCallback(),this._cookieEventHandler&&((e=window.__cookieEvents)==null||e.off("CookieManager.setCookie",this._cookieEventHandler))}returnJsonOrObject(e){let t;try{t=JSON.parse(e)}catch{t=e}return t}emitCookieConsents(e){const n=this.returnJsonOrObject(e.value).items.reduce((i,a)=>(i[a.name]=a.consent,i),{});this.dispatchEvent(new CustomEvent("toggle-consent",{detail:n,bubbles:!0,cancelable:!1}))}async firstUpdated(e){window.cookieBanner_googleAnalyticsId=this.googleAnalyticsId,window.cookieBanner_hotjarId=this.hotjarId,this.cookieDomain&&(window.cookieBanner_cookieDomain=this.cookieDomain),this.cookieSecure&&(window.cookieBanner_cookieSecure=this.cookieSecure),this.cookieExpiryDays&&(window.cookieBanner_cookieExpiryDays=this.cookieExpiryDays),this.devMode&&(window.cookieBanner_devMode=this.devMode),await u(),this.triggerInit()}triggerInit(){window.document.dispatchEvent(new Event("CookieBannerReady",{bubbles:!0,cancelable:!0})),window.cookieBanner.cookieConsent.validateConsentCookie().then(e=>{if(e){const n={value:window.cookieBanner.cookieConsent.getConsentCookie()};window.setTimeout(()=>this.emitCookieConsents(n),0),this._cookieEventHandler&&window.__cookieEvents.off("CookieManager.setCookie",this._cookieEventHandler),this._cookieEventHandler=i=>{this.emitCookieConsents(i)},window.__cookieEvents.on("CookieManager.setCookie",this._cookieEventHandler)}})}openModal(e){var t;e.preventDefault(),(t=window.cookieBanner)!=null&&t.cookieConsent||this.triggerInit(),setTimeout(()=>window.cookieBanner.openCookieModal())}render(){return this.triggerType==="link"?o.b`<a href="#" class="pkt-link" @click=${this.openModal}>${this.triggerText}</a>`:this.triggerType==="footerlink"?o.b`<a href="#" class="pkt-footer__link" @click=${this.openModal}>
|
|
2
2
|
<pkt-icon name="chevron-right" class="pkt-footer__link-icon"></pkt-icon>
|
|
3
3
|
${this.triggerText}
|
|
4
4
|
</a>`:this.triggerType==="icon"?o.b`<pkt-button
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { P as L, A as D, b as h, n as r, t as x } from "./element-
|
|
2
|
-
import { r as z } from "./state-
|
|
3
|
-
import { s as H, f as N, a as Q, i as X, n as k, b as j, c as W, v as I, d as Y, p as Z, e as G } from "./calendar-
|
|
4
|
-
import { P as ee } from "./input-element-
|
|
5
|
-
import { e as m, n as v } from "./ref-
|
|
6
|
-
import "./icon-
|
|
7
|
-
import "./input-wrapper-
|
|
8
|
-
import { e as $ } from "./class-map-
|
|
9
|
-
import { c as te } from "./repeat-
|
|
10
|
-
import "./tag-
|
|
1
|
+
import { P as L, A as D, b as h, n as r, t as x } from "./element-CPpT3rFQ.js";
|
|
2
|
+
import { r as z } from "./state-C_1EOo3D.js";
|
|
3
|
+
import { s as H, f as N, a as Q, i as X, n as k, b as j, c as W, v as I, d as Y, p as Z, e as G } from "./calendar-S63oreVW.js";
|
|
4
|
+
import { P as ee } from "./input-element-8nLwuQS4.js";
|
|
5
|
+
import { e as m, n as v } from "./ref-Bg_Swj5w.js";
|
|
6
|
+
import "./icon-BlKA8YuW.js";
|
|
7
|
+
import "./input-wrapper-B2JpK016.js";
|
|
8
|
+
import { e as $ } from "./class-map-CEnykyO_.js";
|
|
9
|
+
import { c as te } from "./repeat-BD8TKgJb.js";
|
|
10
|
+
import "./tag-BuCpqaks.js";
|
|
11
11
|
import { u as se, s as ie } from "./utils-DznhwRXm.js";
|
|
12
|
-
import { o as f } from "./if-defined-
|
|
13
|
-
import { s as ae } from "./element-with-slot-
|
|
12
|
+
import { o as f } from "./if-defined-B0krMLad.js";
|
|
13
|
+
import { s as ae } from "./element-with-slot-Dqk6-TRR.js";
|
|
14
14
|
const J = {
|
|
15
15
|
calendar: { buttonAltText: "Åpne kalender" }
|
|
16
16
|
}, ne = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("./element-
|
|
1
|
+
"use strict";const l=require("./element-gR_VtSiD.cjs"),I=require("./state-Dg-53wQ8.cjs"),u=require("./calendar-HIE9nxcc.cjs"),A=require("./input-element-DdVhUvva.cjs"),o=require("./ref-CL-Xk9Xm.cjs");require("./icon-Bqj9oBbl.cjs");require("./input-wrapper-B0MkQ0IZ.cjs");const m=require("./class-map-CsENJXf1.cjs"),M=require("./repeat-Cfq8CDlf.cjs");require("./tag-X6xdjR0N.cjs");const O=require("./utils-byXsEz1u.cjs"),g=require("./if-defined-BOW3ODSj.cjs"),F=require("./element-with-slot-ZX-up7jO.cjs"),B={calendar:{buttonAltText:"Åpne kalender"}},j={calendar:{buttonAltText:"Åpne kalender"},generic:{from:"Fra",to:"Til"}};var q=Object.defineProperty,L=Object.getOwnPropertyDescriptor,k=(s,e,t,a)=>{for(var i=a>1?void 0:a?L(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(a?n(e,t,i):n(i))||i);return a&&i&&q(e,t,i),i};exports.PktDateTags=class extends l.PktElement{constructor(){super(...arguments),this.dates=[],this.dateformat="dd.MM.yyyy",this.className="pkt-datepicker__tags",this.idBase=O.uuidish()}render(){return this.classes={"pkt-date-tags":!0,[this.className]:!0},l.b`
|
|
2
2
|
<div class=${m.e(this.classes)} aria-live="polite">
|
|
3
3
|
${Array.isArray(this.dates)&&this.dates[0]?M.c(u.sortDateStrings((this.dates??[]).filter(Boolean)),e=>e,e=>{var t;return l.b` <pkt-tag
|
|
4
4
|
id=${this.idBase+e+"-tag"}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const P = globalThis, V = (r) => r,
|
|
7
|
-
\f\r]`, w = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, W = /-->/g, Z = />/g,
|
|
8
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), K = /'/g, G = /"/g, nt = /^(?:script|style|textarea|title)$/i, ut = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }),
|
|
6
|
+
const P = globalThis, V = (r) => r, k = P.trustedTypes, J = k ? k.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, it = "$lit$", f = `lit$${Math.random().toFixed(9).slice(2)}$`, rt = "?" + f, dt = `<${rt}>`, y = document, x = () => y.createComment(""), U = (r) => r === null || typeof r != "object" && typeof r != "function", F = Array.isArray, pt = (r) => F(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", R = `[
|
|
7
|
+
\f\r]`, w = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, W = /-->/g, Z = />/g, m = RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^
|
|
8
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), K = /'/g, G = /"/g, nt = /^(?:script|style|textarea|title)$/i, ut = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Ft = ut(1), S = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Q = /* @__PURE__ */ new WeakMap(), g = y.createTreeWalker(y, 129);
|
|
9
9
|
function ot(r, t) {
|
|
10
|
-
if (!
|
|
10
|
+
if (!F(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
11
11
|
return J !== void 0 ? J.createHTML(t) : t;
|
|
12
12
|
}
|
|
13
13
|
const $t = (r, t) => {
|
|
@@ -16,8 +16,8 @@ const $t = (r, t) => {
|
|
|
16
16
|
for (let a = 0; a < e; a++) {
|
|
17
17
|
const h = r[a];
|
|
18
18
|
let c, p, l = -1, u = 0;
|
|
19
|
-
for (; u < h.length && (o.lastIndex = u, p = o.exec(h), p !== null); ) u = o.lastIndex, o === w ? p[1] === "!--" ? o = W : p[1] !== void 0 ? o = Z : p[2] !== void 0 ? (nt.test(p[2]) && (i = RegExp("</" + p[2], "g")), o =
|
|
20
|
-
const $ = o ===
|
|
19
|
+
for (; u < h.length && (o.lastIndex = u, p = o.exec(h), p !== null); ) u = o.lastIndex, o === w ? p[1] === "!--" ? o = W : p[1] !== void 0 ? o = Z : p[2] !== void 0 ? (nt.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = m) : p[3] !== void 0 && (o = m) : o === m ? p[0] === ">" ? (o = i ?? w, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, c = p[1], o = p[3] === void 0 ? m : p[3] === '"' ? G : K) : o === G || o === K ? o = m : o === W || o === Z ? o = w : (o = m, i = void 0);
|
|
20
|
+
const $ = o === m && r[a + 1].startsWith("/>") ? " " : "";
|
|
21
21
|
n += o === w ? h + dt : l >= 0 ? (s.push(c), h.slice(0, l) + it + h.slice(l) + f + $) : h + f + (l === -2 ? a : $);
|
|
22
22
|
}
|
|
23
23
|
return [ot(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
@@ -28,22 +28,22 @@ let z = class ht {
|
|
|
28
28
|
this.parts = [];
|
|
29
29
|
let n = 0, o = 0;
|
|
30
30
|
const a = t.length - 1, h = this.parts, [c, p] = $t(t, e);
|
|
31
|
-
if (this.el = ht.createElement(c, s),
|
|
31
|
+
if (this.el = ht.createElement(c, s), g.currentNode = this.el.content, e === 2 || e === 3) {
|
|
32
32
|
const l = this.el.content.firstChild;
|
|
33
33
|
l.replaceWith(...l.childNodes);
|
|
34
34
|
}
|
|
35
|
-
for (; (i =
|
|
35
|
+
for (; (i = g.nextNode()) !== null && h.length < a; ) {
|
|
36
36
|
if (i.nodeType === 1) {
|
|
37
37
|
if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(it)) {
|
|
38
|
-
const u = p[o++], $ = i.getAttribute(l).split(f),
|
|
39
|
-
h.push({ type: 1, index: n, name:
|
|
38
|
+
const u = p[o++], $ = i.getAttribute(l).split(f), O = /([.?@])?(.*)/.exec(u);
|
|
39
|
+
h.push({ type: 1, index: n, name: O[2], strings: $, ctor: O[1] === "." ? _t : O[1] === "?" ? mt : O[1] === "@" ? gt : N }), i.removeAttribute(l);
|
|
40
40
|
} else l.startsWith(f) && (h.push({ type: 6, index: n }), i.removeAttribute(l));
|
|
41
41
|
if (nt.test(i.tagName)) {
|
|
42
42
|
const l = i.textContent.split(f), u = l.length - 1;
|
|
43
43
|
if (u > 0) {
|
|
44
|
-
i.textContent =
|
|
45
|
-
for (let $ = 0; $ < u; $++) i.append(l[$],
|
|
46
|
-
i.append(l[u],
|
|
44
|
+
i.textContent = k ? k.emptyScript : "";
|
|
45
|
+
for (let $ = 0; $ < u; $++) i.append(l[$], x()), g.nextNode(), h.push({ type: 2, index: ++n });
|
|
46
|
+
i.append(l[u], x());
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
} else if (i.nodeType === 8) if (i.data === rt) h.push({ type: 2, index: n });
|
|
@@ -59,12 +59,12 @@ let z = class ht {
|
|
|
59
59
|
return s.innerHTML = t, s;
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
function
|
|
62
|
+
function E(r, t, e = r, s) {
|
|
63
63
|
var o, a;
|
|
64
|
-
if (t ===
|
|
64
|
+
if (t === S) return t;
|
|
65
65
|
let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
|
66
|
-
const n =
|
|
67
|
-
return (i == null ? void 0 : i.constructor) !== n && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t =
|
|
66
|
+
const n = U(t) ? void 0 : t._$litDirective$;
|
|
67
|
+
return (i == null ? void 0 : i.constructor) !== n && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = E(r, i._$AS(r, t.values), i, s)), t;
|
|
68
68
|
}
|
|
69
69
|
class ft {
|
|
70
70
|
constructor(t, e) {
|
|
@@ -78,16 +78,16 @@ class ft {
|
|
|
78
78
|
}
|
|
79
79
|
u(t) {
|
|
80
80
|
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? y).importNode(e, !0);
|
|
81
|
-
|
|
82
|
-
let n =
|
|
81
|
+
g.currentNode = i;
|
|
82
|
+
let n = g.nextNode(), o = 0, a = 0, h = s[0];
|
|
83
83
|
for (; h !== void 0; ) {
|
|
84
84
|
if (o === h.index) {
|
|
85
85
|
let c;
|
|
86
86
|
h.type === 2 ? c = new b(n, n.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (c = new At(n, this, t)), this._$AV.push(c), h = s[++a];
|
|
87
87
|
}
|
|
88
|
-
o !== (h == null ? void 0 : h.index) && (n =
|
|
88
|
+
o !== (h == null ? void 0 : h.index) && (n = g.nextNode(), o++);
|
|
89
89
|
}
|
|
90
|
-
return
|
|
90
|
+
return g.currentNode = y, i;
|
|
91
91
|
}
|
|
92
92
|
p(t) {
|
|
93
93
|
let e = 0;
|
|
@@ -114,7 +114,7 @@ class b {
|
|
|
114
114
|
return this._$AB;
|
|
115
115
|
}
|
|
116
116
|
_$AI(t, e = this) {
|
|
117
|
-
t =
|
|
117
|
+
t = E(this, t, e), U(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== S && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : pt(t) ? this.k(t) : this._(t);
|
|
118
118
|
}
|
|
119
119
|
O(t) {
|
|
120
120
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -123,7 +123,7 @@ class b {
|
|
|
123
123
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
124
124
|
}
|
|
125
125
|
_(t) {
|
|
126
|
-
this._$AH !== d &&
|
|
126
|
+
this._$AH !== d && U(this._$AH) ? this._$AA.nextSibling.data = t : this.T(y.createTextNode(t)), this._$AH = t;
|
|
127
127
|
}
|
|
128
128
|
$(t) {
|
|
129
129
|
var n;
|
|
@@ -139,10 +139,10 @@ class b {
|
|
|
139
139
|
return e === void 0 && Q.set(t.strings, e = new z(t)), e;
|
|
140
140
|
}
|
|
141
141
|
k(t) {
|
|
142
|
-
|
|
142
|
+
F(this._$AH) || (this._$AH = [], this._$AR());
|
|
143
143
|
const e = this._$AH;
|
|
144
144
|
let s, i = 0;
|
|
145
|
-
for (const n of t) i === e.length ? e.push(s = new b(this.O(
|
|
145
|
+
for (const n of t) i === e.length ? e.push(s = new b(this.O(x()), this.O(x()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
|
146
146
|
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
147
147
|
}
|
|
148
148
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -170,11 +170,11 @@ class N {
|
|
|
170
170
|
_$AI(t, e = this, s, i) {
|
|
171
171
|
const n = this.strings;
|
|
172
172
|
let o = !1;
|
|
173
|
-
if (n === void 0) t =
|
|
173
|
+
if (n === void 0) t = E(this, t, e, 0), o = !U(t) || t !== this._$AH && t !== S, o && (this._$AH = t);
|
|
174
174
|
else {
|
|
175
175
|
const a = t;
|
|
176
176
|
let h, c;
|
|
177
|
-
for (t = n[0], h = 0; h < n.length - 1; h++) c =
|
|
177
|
+
for (t = n[0], h = 0; h < n.length - 1; h++) c = E(this, a[s + h], e, h), c === S && (c = this._$AH[h]), o || (o = !U(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + n[h + 1]), this._$AH[h] = c;
|
|
178
178
|
}
|
|
179
179
|
o && !i && this.j(t);
|
|
180
180
|
}
|
|
@@ -190,7 +190,7 @@ class _t extends N {
|
|
|
190
190
|
this.element[this.name] = t === d ? void 0 : t;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
class
|
|
193
|
+
class mt extends N {
|
|
194
194
|
constructor() {
|
|
195
195
|
super(...arguments), this.type = 4;
|
|
196
196
|
}
|
|
@@ -198,12 +198,12 @@ class gt extends N {
|
|
|
198
198
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
class
|
|
201
|
+
class gt extends N {
|
|
202
202
|
constructor(t, e, s, i, n) {
|
|
203
203
|
super(t, e, s, i, n), this.type = 5;
|
|
204
204
|
}
|
|
205
205
|
_$AI(t, e = this) {
|
|
206
|
-
if ((t =
|
|
206
|
+
if ((t = E(this, t, e, 0) ?? d) === S) return;
|
|
207
207
|
const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== d && (s === d || i);
|
|
208
208
|
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
209
209
|
}
|
|
@@ -220,7 +220,7 @@ class At {
|
|
|
220
220
|
return this._$AM._$AU;
|
|
221
221
|
}
|
|
222
222
|
_$AI(t) {
|
|
223
|
-
|
|
223
|
+
E(this, t);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
const It = { I: b }, D = P.litHtmlPolyfillSupport;
|
|
@@ -230,7 +230,7 @@ const yt = (r, t, e) => {
|
|
|
230
230
|
let i = s._$litPart$;
|
|
231
231
|
if (i === void 0) {
|
|
232
232
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
233
|
-
s._$litPart$ = i = new b(t.insertBefore(
|
|
233
|
+
s._$litPart$ = i = new b(t.insertBefore(x(), n), n, void 0, e ?? {});
|
|
234
234
|
}
|
|
235
235
|
return i._$AI(r), i;
|
|
236
236
|
};
|
|
@@ -239,7 +239,7 @@ const yt = (r, t, e) => {
|
|
|
239
239
|
* Copyright 2017 Google LLC
|
|
240
240
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
241
241
|
*/
|
|
242
|
-
const
|
|
242
|
+
const Bt = (r) => (t, e) => {
|
|
243
243
|
e !== void 0 ? e.addInitializer(() => {
|
|
244
244
|
customElements.define(r, t);
|
|
245
245
|
}) : customElements.define(r, t);
|
|
@@ -249,7 +249,7 @@ const Ft = (r) => (t, e) => {
|
|
|
249
249
|
* Copyright 2019 Google LLC
|
|
250
250
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
251
251
|
*/
|
|
252
|
-
const T = globalThis,
|
|
252
|
+
const T = globalThis, I = T.ShadowRoot && (T.ShadyCSS === void 0 || T.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, at = Symbol(), X = /* @__PURE__ */ new WeakMap();
|
|
253
253
|
let vt = class {
|
|
254
254
|
constructor(t, e, s) {
|
|
255
255
|
if (this._$cssResult$ = !0, s !== at) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -258,7 +258,7 @@ let vt = class {
|
|
|
258
258
|
get styleSheet() {
|
|
259
259
|
let t = this.o;
|
|
260
260
|
const e = this.t;
|
|
261
|
-
if (
|
|
261
|
+
if (I && t === void 0) {
|
|
262
262
|
const s = e !== void 0 && e.length === 1;
|
|
263
263
|
s && (t = X.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && X.set(e, t));
|
|
264
264
|
}
|
|
@@ -268,26 +268,26 @@ let vt = class {
|
|
|
268
268
|
return this.cssText;
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
|
-
const
|
|
272
|
-
if (
|
|
271
|
+
const St = (r) => new vt(typeof r == "string" ? r : r + "", void 0, at), Et = (r, t) => {
|
|
272
|
+
if (I) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
273
273
|
else for (const e of t) {
|
|
274
274
|
const s = document.createElement("style"), i = T.litNonce;
|
|
275
275
|
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
|
276
276
|
}
|
|
277
|
-
}, Y =
|
|
277
|
+
}, Y = I ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
278
278
|
let e = "";
|
|
279
279
|
for (const s of t.cssRules) e += s.cssText;
|
|
280
|
-
return
|
|
280
|
+
return St(e);
|
|
281
281
|
})(r) : r;
|
|
282
282
|
/**
|
|
283
283
|
* @license
|
|
284
284
|
* Copyright 2017 Google LLC
|
|
285
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
286
|
*/
|
|
287
|
-
const { is: bt, defineProperty: wt, getOwnPropertyDescriptor: Pt, getOwnPropertyNames: Ct, getOwnPropertySymbols:
|
|
287
|
+
const { is: bt, defineProperty: wt, getOwnPropertyDescriptor: Pt, getOwnPropertyNames: Ct, getOwnPropertySymbols: Mt, getPrototypeOf: xt } = Object, _ = globalThis, tt = _.trustedTypes, Ut = tt ? tt.emptyScript : "", j = _.reactiveElementPolyfillSupport, C = (r, t) => r, H = { toAttribute(r, t) {
|
|
288
288
|
switch (t) {
|
|
289
289
|
case Boolean:
|
|
290
|
-
r = r ?
|
|
290
|
+
r = r ? Ut : null;
|
|
291
291
|
break;
|
|
292
292
|
case Object:
|
|
293
293
|
case Array:
|
|
@@ -312,7 +312,7 @@ const { is: bt, defineProperty: wt, getOwnPropertyDescriptor: Pt, getOwnProperty
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return e;
|
|
315
|
-
} }, B = (r, t) => !bt(r, t), et = { attribute: !0, type: String, converter:
|
|
315
|
+
} }, B = (r, t) => !bt(r, t), et = { attribute: !0, type: String, converter: H, reflect: !1, useDefault: !1, hasChanged: B };
|
|
316
316
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
317
317
|
class v extends HTMLElement {
|
|
318
318
|
static addInitializer(t) {
|
|
@@ -343,13 +343,13 @@ class v extends HTMLElement {
|
|
|
343
343
|
}
|
|
344
344
|
static _$Ei() {
|
|
345
345
|
if (this.hasOwnProperty(C("elementProperties"))) return;
|
|
346
|
-
const t =
|
|
346
|
+
const t = xt(this);
|
|
347
347
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
348
348
|
}
|
|
349
349
|
static finalize() {
|
|
350
350
|
if (this.hasOwnProperty(C("finalized"))) return;
|
|
351
351
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(C("properties"))) {
|
|
352
|
-
const e = this.properties, s = [...Ct(e), ...
|
|
352
|
+
const e = this.properties, s = [...Ct(e), ...Mt(e)];
|
|
353
353
|
for (const i of s) this.createProperty(i, e[i]);
|
|
354
354
|
}
|
|
355
355
|
const t = this[Symbol.metadata];
|
|
@@ -398,7 +398,7 @@ class v extends HTMLElement {
|
|
|
398
398
|
}
|
|
399
399
|
createRenderRoot() {
|
|
400
400
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
401
|
-
return
|
|
401
|
+
return Et(t, this.constructor.elementStyles), t;
|
|
402
402
|
}
|
|
403
403
|
connectedCallback() {
|
|
404
404
|
var t;
|
|
@@ -423,7 +423,7 @@ class v extends HTMLElement {
|
|
|
423
423
|
var n;
|
|
424
424
|
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
425
425
|
if (i !== void 0 && s.reflect === !0) {
|
|
426
|
-
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter :
|
|
426
|
+
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : H).toAttribute(e, s.type);
|
|
427
427
|
this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
@@ -431,7 +431,7 @@ class v extends HTMLElement {
|
|
|
431
431
|
var n, o;
|
|
432
432
|
const s = this.constructor, i = s._$Eh.get(t);
|
|
433
433
|
if (i !== void 0 && this._$Em !== i) {
|
|
434
|
-
const a = s.getPropertyOptions(i), h = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter :
|
|
434
|
+
const a = s.getPropertyOptions(i), h = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : H;
|
|
435
435
|
this._$Em = i;
|
|
436
436
|
const c = h.fromAttribute(e, a.type);
|
|
437
437
|
this[i] = c ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? c, this._$Em = null;
|
|
@@ -523,7 +523,7 @@ v.elementStyles = [], v.shadowRootOptions = { mode: "open" }, v[C("elementProper
|
|
|
523
523
|
* Copyright 2017 Google LLC
|
|
524
524
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
525
525
|
*/
|
|
526
|
-
const
|
|
526
|
+
const Ot = { attribute: !0, type: String, converter: H, reflect: !1, hasChanged: B }, Tt = (r = Ot, t, e) => {
|
|
527
527
|
const { kind: s, metadata: i } = e;
|
|
528
528
|
let n = globalThis.litPropertyMetadata.get(i);
|
|
529
529
|
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(e.name, r), s === "accessor") {
|
|
@@ -556,7 +556,7 @@ function lt(r) {
|
|
|
556
556
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
557
557
|
*/
|
|
558
558
|
const A = globalThis;
|
|
559
|
-
class
|
|
559
|
+
class M extends v {
|
|
560
560
|
constructor() {
|
|
561
561
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
562
562
|
}
|
|
@@ -578,29 +578,30 @@ class x extends v {
|
|
|
578
578
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
579
579
|
}
|
|
580
580
|
render() {
|
|
581
|
-
return
|
|
581
|
+
return S;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
var st;
|
|
585
|
-
|
|
585
|
+
M._$litElement$ = !0, M.finalized = !0, (st = A.litElementHydrateSupport) == null || st.call(A, { LitElement: M });
|
|
586
586
|
const L = A.litElementPolyfillSupport;
|
|
587
|
-
L == null || L({ LitElement:
|
|
587
|
+
L == null || L({ LitElement: M });
|
|
588
588
|
(A.litElementVersions ?? (A.litElementVersions = [])).push("4.2.2");
|
|
589
|
-
const
|
|
590
|
-
example:
|
|
591
|
-
generic:
|
|
589
|
+
const kt = { hi: "Hei!" }, Ht = { from: "Fra", to: "Til" }, Nt = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, Rt = { month: "Måned", year: "År", 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"], week: "Uke", prevMonth: "Forrige måned", nextMonth: "Neste måned" }, Dt = { hours: "Timer", minutes: "Minutter", openPicker: "Åpne tidspunkt-velger", prevTime: "Forrige tidspunkt", nextTime: "Neste tidspunkt", selectTime: "Velg tidspunkt" }, jt = { search: { placeholder: "Søk…" }, labels: { optional: "Valgfritt", required: "Må fylles ut" }, messages: { required: "Dette feltet er påkrevd", invalid: "Ugyldig verdi", invalidPattern: "Ugyldig format", tooShort: "For kort", tooLong: "For lang", rangeUnderflow: "For lav verdi", rangeOverflow: "For høy verdi", 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", rangeUnderflowMin: "Verdien må være større enn eller lik {min}.", rangeOverflowMax: "Verdien må være mindre enn eller lik {max}.", dateUnderflow: "For tidlig dato", dateOverflow: "For sen dato" }, helptext: { helptextDropdownButton: "Les mer" }, date: { multiple: "Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato." } }, Lt = {
|
|
590
|
+
example: kt,
|
|
591
|
+
generic: Ht,
|
|
592
592
|
calendar: Nt,
|
|
593
593
|
dates: Rt,
|
|
594
|
-
|
|
594
|
+
timepicker: Dt,
|
|
595
|
+
forms: jt
|
|
595
596
|
};
|
|
596
|
-
var
|
|
597
|
+
var zt = Object.defineProperty, ct = (r, t, e, s) => {
|
|
597
598
|
for (var i = void 0, n = r.length - 1, o; n >= 0; n--)
|
|
598
599
|
(o = r[n]) && (i = o(t, e, i) || i);
|
|
599
|
-
return i &&
|
|
600
|
+
return i && zt(t, e, i), i;
|
|
600
601
|
};
|
|
601
|
-
class q extends
|
|
602
|
+
class q extends M {
|
|
602
603
|
constructor() {
|
|
603
|
-
super(...arguments), this.strings =
|
|
604
|
+
super(...arguments), this.strings = Lt, this.role = null;
|
|
604
605
|
}
|
|
605
606
|
/**
|
|
606
607
|
* Add support for Hot Module Reloading in dev mode
|
|
@@ -615,7 +616,7 @@ ct([
|
|
|
615
616
|
ct([
|
|
616
617
|
lt({ type: String })
|
|
617
618
|
], q.prototype, "role");
|
|
618
|
-
class
|
|
619
|
+
class Vt extends q {
|
|
619
620
|
/**
|
|
620
621
|
* Make sure the component renders in light DOM instead of shadow DOM
|
|
621
622
|
*/
|
|
@@ -625,13 +626,13 @@ class qt extends q {
|
|
|
625
626
|
}
|
|
626
627
|
export {
|
|
627
628
|
d as A,
|
|
628
|
-
E,
|
|
629
|
-
|
|
629
|
+
S as E,
|
|
630
|
+
Vt as P,
|
|
630
631
|
q as a,
|
|
631
|
-
|
|
632
|
-
|
|
632
|
+
Ft as b,
|
|
633
|
+
M as i,
|
|
633
634
|
It as j,
|
|
634
635
|
lt as n,
|
|
635
|
-
|
|
636
|
-
|
|
636
|
+
Lt as s,
|
|
637
|
+
Bt as t
|
|
637
638
|
};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const C=globalThis,J=r=>r,
|
|
6
|
-
\f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,K=/>/g,
|
|
7
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,Q=/"/g,ot=/^(?:script|style|textarea|title)$/i,$t=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),ft=$t(1),v=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),X=new WeakMap,
|
|
5
|
+
*/const C=globalThis,J=r=>r,T=C.trustedTypes,W=T?T.createPolicy("lit-html",{createHTML:r=>r}):void 0,rt="$lit$",f=`lit$${Math.random().toFixed(9).slice(2)}$`,nt="?"+f,pt=`<${nt}>`,y=document,x=()=>y.createComment(""),U=r=>r===null||typeof r!="object"&&typeof r!="function",I=Array.isArray,ut=r=>I(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",D=`[
|
|
6
|
+
\f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,K=/>/g,m=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^
|
|
7
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,Q=/"/g,ot=/^(?:script|style|textarea|title)$/i,$t=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),ft=$t(1),v=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),X=new WeakMap,g=y.createTreeWalker(y,129);function ht(r,t){if(!I(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return W!==void 0?W.createHTML(t):t}const _t=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":t===3?"<math>":"",o=P;for(let a=0;a<e;a++){const h=r[a];let c,p,l=-1,u=0;for(;u<h.length&&(o.lastIndex=u,p=o.exec(h),p!==null);)u=o.lastIndex,o===P?p[1]==="!--"?o=Z:p[1]!==void 0?o=K:p[2]!==void 0?(ot.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=m):p[3]!==void 0&&(o=m):o===m?p[0]===">"?(o=i??P,l=-1):p[1]===void 0?l=-2:(l=o.lastIndex-p[2].length,c=p[1],o=p[3]===void 0?m:p[3]==='"'?Q:G):o===Q||o===G?o=m:o===Z||o===K?o=P:(o=m,i=void 0);const $=o===m&&r[a+1].startsWith("/>")?" ":"";n+=o===P?h+pt:l>=0?(s.push(c),h.slice(0,l)+rt+h.slice(l)+f+$):h+f+(l===-2?a:$)}return[ht(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let F=class at{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const a=t.length-1,h=this.parts,[c,p]=_t(t,e);if(this.el=at.createElement(c,s),g.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=g.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(rt)){const u=p[o++],$=i.getAttribute(l).split(f),O=/([.?@])?(.*)/.exec(u);h.push({type:1,index:n,name:O[2],strings:$,ctor:O[1]==="."?gt:O[1]==="?"?At:O[1]==="@"?yt:N}),i.removeAttribute(l)}else l.startsWith(f)&&(h.push({type:6,index:n}),i.removeAttribute(l));if(ot.test(i.tagName)){const l=i.textContent.split(f),u=l.length-1;if(u>0){i.textContent=T?T.emptyScript:"";for(let $=0;$<u;$++)i.append(l[$],x()),g.nextNode(),h.push({type:2,index:++n});i.append(l[u],x())}}}else if(i.nodeType===8)if(i.data===nt)h.push({type:2,index:n});else{let l=-1;for(;(l=i.data.indexOf(f,l+1))!==-1;)h.push({type:7,index:n}),l+=f.length-1}n++}}static createElement(t,e){const s=y.createElement("template");return s.innerHTML=t,s}};function b(r,t,e=r,s){var o,a;if(t===v)return t;let i=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=U(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=b(r,i._$AS(r,t.values),i,s)),t}class mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??y).importNode(e,!0);g.currentNode=i;let n=g.nextNode(),o=0,a=0,h=s[0];for(;h!==void 0;){if(o===h.index){let c;h.type===2?c=new w(n,n.nextSibling,this,t):h.type===1?c=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(c=new vt(n,this,t)),this._$AV.push(c),h=s[++a]}o!==(h==null?void 0:h.index)&&(n=g.nextNode(),o++)}return g.currentNode=y,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class w{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=b(this,t,e),U(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==v&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ut(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&U(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=F.createElement(ht(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const o=new mt(i,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=X.get(t.strings);return e===void 0&&X.set(t.strings,e=new F(t)),e}k(t){I(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new w(this.O(x()),this.O(x()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t!==this._$AB;){const i=J(t).nextSibling;J(t).remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class N{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(n===void 0)t=b(this,t,e,0),o=!U(t)||t!==this._$AH&&t!==v,o&&(this._$AH=t);else{const a=t;let h,c;for(t=n[0],h=0;h<n.length-1;h++)c=b(this,a[s+h],e,h),c===v&&(c=this._$AH[h]),o||(o=!U(c)||c!==this._$AH[h]),c===d?t=d:t!==d&&(t+=(c??"")+n[h+1]),this._$AH[h]=c}o&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class gt extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class At extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class yt extends N{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=b(this,t,e,0)??d)===v)return;const s=this._$AH,i=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==d&&(s===d||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class vt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){b(this,t)}}const Et={I:w},j=C.litHtmlPolyfillSupport;j==null||j(F,w),(C.litHtmlVersions??(C.litHtmlVersions=[])).push("3.3.2");const St=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new w(t.insertBefore(x(),n),n,void 0,e??{})}return i._$AI(r),i};/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2019 Google LLC
|
|
14
14
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
|
-
*/const
|
|
15
|
+
*/const k=globalThis,B=k.ShadowRoot&&(k.ShadyCSS===void 0||k.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lt=Symbol(),Y=new WeakMap;let wt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==lt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Y.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Y.set(e,t))}return t}toString(){return this.cssText}};const Pt=r=>new wt(typeof r=="string"?r:r+"",void 0,lt),Ct=(r,t)=>{if(B)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=k.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},tt=B?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Pt(e)})(r):r;/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const{is:
|
|
19
|
+
*/const{is:Mt,defineProperty:xt,getOwnPropertyDescriptor:Ut,getOwnPropertyNames:Ot,getOwnPropertySymbols:kt,getPrototypeOf:Tt}=Object,_=globalThis,et=_.trustedTypes,Ht=et?et.emptyScript:"",L=_.reactiveElementPolyfillSupport,M=(r,t)=>r,H={toAttribute(r,t){switch(t){case Boolean:r=r?Ht:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},q=(r,t)=>!Mt(r,t),st={attribute:!0,type:String,converter:H,reflect:!1,useDefault:!1,hasChanged:q};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),_.litPropertyMetadata??(_.litPropertyMetadata=new WeakMap);class E extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=st){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&xt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=Ut(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:i,set(o){const a=i==null?void 0:i.call(this);n==null||n.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??st}static _$Ei(){if(this.hasOwnProperty(M("elementProperties")))return;const t=Tt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(M("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(M("properties"))){const e=this.properties,s=[...Ot(e),...kt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(tt(i))}else t!==void 0&&e.push(tt(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ct(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:H).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n,o;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const a=s.getPropertyOptions(i),h=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)==null?void 0:n.fromAttribute)!==void 0?a.converter:H;this._$Em=i;const c=h.fromAttribute(e,a.type);this[i]=c??((o=this._$Ej)==null?void 0:o.get(i))??c,this._$Em=null}}requestUpdate(t,e,s,i=!1,n){var o;if(t!==void 0){const a=this.constructor;if(i===!1&&(n=this[t]),s??(s=a.getPropertyOptions(t)),!((s.hasChanged??q)(n,e)||s.useDefault&&s.reflect&&n===((o=this._$Ej)==null?void 0:o.get(t))&&!this.hasAttribute(a._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i){const{wrapped:a}=o,h=this[n];a!==!0||this._$AL.has(n)||h===void 0||this.C(n,void 0,o,h)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[M("elementProperties")]=new Map,E[M("finalized")]=new Map,L==null||L({ReactiveElement:E}),(_.reactiveElementVersions??(_.reactiveElementVersions=[])).push("2.1.2");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const A=globalThis;class S extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=St(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return v}}var it;S._$litElement$=!0,S.finalized=!0,(it=A.litElementHydrateSupport)==null||it.call(A,{LitElement:S});const z=A.litElementPolyfillSupport;z==null||z({LitElement:S});(A.litElementVersions??(A.litElementVersions=[])).push("4.2.2");const Dt={hi:"Hei!"},jt={from:"Fra",to:"Til"},Lt={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},zt={month:"Måned",year:"År",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"],week:"Uke",prevMonth:"Forrige måned",nextMonth:"Neste måned"},It={search:{placeholder:"Søk…"},labels:{optional:"Valgfritt",required:"Må fylles ut"},messages:{required:"Dette feltet er påkrevd",invalid:"Ugyldig verdi",invalidPattern:"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}.",dateUnderflow:"For tidlig dato",dateOverflow:"For sen dato"},helptext:{helptextDropdownButton:"Les mer"},date:{multiple:"Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."}},ct={example:Dt,generic:jt,calendar:Lt,dates:zt,forms:It};var
|
|
27
|
+
*/const A=globalThis;class S extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=St(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return v}}var it;S._$litElement$=!0,S.finalized=!0,(it=A.litElementHydrateSupport)==null||it.call(A,{LitElement:S});const z=A.litElementPolyfillSupport;z==null||z({LitElement:S});(A.litElementVersions??(A.litElementVersions=[])).push("4.2.2");const Dt={hi:"Hei!"},jt={from:"Fra",to:"Til"},Lt={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},zt={month:"Måned",year:"År",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"],week:"Uke",prevMonth:"Forrige måned",nextMonth:"Neste måned"},Ft={hours:"Timer",minutes:"Minutter",openPicker:"Åpne tidspunkt-velger",prevTime:"Forrige tidspunkt",nextTime:"Neste tidspunkt",selectTime:"Velg tidspunkt"},It={search:{placeholder:"Søk…"},labels:{optional:"Valgfritt",required:"Må fylles ut"},messages:{required:"Dette feltet er påkrevd",invalid:"Ugyldig verdi",invalidPattern:"Ugyldig format",tooShort:"For kort",tooLong:"For lang",rangeUnderflow:"For lav verdi",rangeOverflow:"For høy verdi",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",rangeUnderflowMin:"Verdien må være større enn eller lik {min}.",rangeOverflowMax:"Verdien må være mindre enn eller lik {max}.",dateUnderflow:"For tidlig dato",dateOverflow:"For sen dato"},helptext:{helptextDropdownButton:"Les mer"},date:{multiple:"Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."}},ct={example:Dt,generic:jt,calendar:Lt,dates:zt,timepicker:Ft,forms:It};var Bt=Object.defineProperty,dt=(r,t,e,s)=>{for(var i=void 0,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=o(t,e,i)||i);return i&&Bt(t,e,i),i};class R extends S{constructor(){super(...arguments),this.strings=ct,this.role=null}hotReplacedCallback(){this.requestUpdate()}}dt([V({type:Object})],R.prototype,"strings");dt([V({type:String})],R.prototype,"role");class qt extends R{createRenderRoot(){return this}}exports.A=d;exports.E=v;exports.PktElement=qt;exports.PktShadowElement=R;exports.b=ft;exports.i=S;exports.j=Et;exports.n=V;exports.strings=ct;exports.t=bt;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as l, P as C } from "./element-
|
|
2
|
-
import { f as y } from "./async-directive-
|
|
1
|
+
import { E as l, P as C } from "./element-CPpT3rFQ.js";
|
|
2
|
+
import { f as y } from "./async-directive-CMzWMlZ5.js";
|
|
3
3
|
import { e as O, t as D } from "./directive-oAbCiebi.js";
|
|
4
4
|
function T(s) {
|
|
5
5
|
return s.classList && (s.classList.contains("_dialog_overlay") || s.classList.contains("backdrop")) ? !0 : typeof s.hasAttribute == "function" && s.hasAttribute("data-skip");
|