@oslokommune/punkt-elements
Version:
Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo
694 lines (693 loc) • 23.3 kB
JavaScript
//#region ../../node_modules/lit-html/lit-html.js
var e = globalThis, t = (e) => e, n = e.trustedTypes, r = n ? n.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, i = "$lit$", a = `lit$${Math.random().toFixed(9).slice(2)}$`, o = "?" + a, s = `<${o}>`, c = document, l = () => c.createComment(""), u = (e) => e === null || typeof e != "object" && typeof e != "function", d = Array.isArray, f = (e) => d(e) || typeof e?.[Symbol.iterator] == "function", p = "[ \n\f\r]", m = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, h = /-->/g, g = />/g, _ = RegExp(`>|${p}(?:([^\\s"'>=/]+)(${p}*=${p}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), v = /'/g, y = /"/g, b = /^(?:script|style|textarea|title)$/i, x = ((e) => (t, ...n) => ({
_$litType$: e,
strings: t,
values: n
}))(1), S = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), w = /* @__PURE__ */ new WeakMap(), T = c.createTreeWalker(c, 129);
function E(e, t) {
if (!d(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
return r === void 0 ? t : r.createHTML(t);
}
var D = (e, t) => {
let n = e.length - 1, r = [], o, c = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", l = m;
for (let t = 0; t < n; t++) {
let n = e[t], u, d, f = -1, p = 0;
for (; p < n.length && (l.lastIndex = p, d = l.exec(n), d !== null);) p = l.lastIndex, l === m ? d[1] === "!--" ? l = h : d[1] === void 0 ? d[2] === void 0 ? d[3] !== void 0 && (l = _) : (b.test(d[2]) && (o = RegExp("</" + d[2], "g")), l = _) : l = g : l === _ ? d[0] === ">" ? (l = o ?? m, f = -1) : d[1] === void 0 ? f = -2 : (f = l.lastIndex - d[2].length, u = d[1], l = d[3] === void 0 ? _ : d[3] === "\"" ? y : v) : l === y || l === v ? l = _ : l === h || l === g ? l = m : (l = _, o = void 0);
let x = l === _ && e[t + 1].startsWith("/>") ? " " : "";
c += l === m ? n + s : f >= 0 ? (r.push(u), n.slice(0, f) + i + n.slice(f) + a + x) : n + a + (f === -2 ? t : x);
}
return [E(e, c + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
}, O = class e {
constructor({ strings: t, _$litType$: r }, s) {
let c;
this.parts = [];
let u = 0, d = 0, f = t.length - 1, p = this.parts, [m, h] = D(t, r);
if (this.el = e.createElement(m, s), T.currentNode = this.el.content, r === 2 || r === 3) {
let e = this.el.content.firstChild;
e.replaceWith(...e.childNodes);
}
for (; (c = T.nextNode()) !== null && p.length < f;) {
if (c.nodeType === 1) {
if (c.hasAttributes()) for (let e of c.getAttributeNames()) if (e.endsWith(i)) {
let t = h[d++], n = c.getAttribute(e).split(a), r = /([.?@])?(.*)/.exec(t);
p.push({
type: 1,
index: u,
name: r[2],
strings: n,
ctor: r[1] === "." ? N : r[1] === "?" ? P : r[1] === "@" ? F : M
}), c.removeAttribute(e);
} else e.startsWith(a) && (p.push({
type: 6,
index: u
}), c.removeAttribute(e));
if (b.test(c.tagName)) {
let e = c.textContent.split(a), t = e.length - 1;
if (t > 0) {
c.textContent = n ? n.emptyScript : "";
for (let n = 0; n < t; n++) c.append(e[n], l()), T.nextNode(), p.push({
type: 2,
index: ++u
});
c.append(e[t], l());
}
}
} else if (c.nodeType === 8) if (c.data === o) p.push({
type: 2,
index: u
});
else {
let e = -1;
for (; (e = c.data.indexOf(a, e + 1)) !== -1;) p.push({
type: 7,
index: u
}), e += a.length - 1;
}
u++;
}
}
static createElement(e, t) {
let n = c.createElement("template");
return n.innerHTML = e, n;
}
};
function k(e, t, n = e, r) {
if (t === S) return t;
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = u(t) ? void 0 : t._$litDirective$;
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = k(e, i._$AS(e, t.values), i, r)), t;
}
var A = class {
constructor(e, t) {
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
}
get parentNode() {
return this._$AM.parentNode;
}
get _$AU() {
return this._$AM._$AU;
}
u(e) {
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? c).importNode(t, !0);
T.currentNode = r;
let i = T.nextNode(), a = 0, o = 0, s = n[0];
for (; s !== void 0;) {
if (a === s.index) {
let t;
s.type === 2 ? t = new j(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new I(i, this, e)), this._$AV.push(t), s = n[++o];
}
a !== s?.index && (i = T.nextNode(), a++);
}
return T.currentNode = c, r;
}
p(e) {
let t = 0;
for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
}
}, j = class e {
get _$AU() {
return this._$AM?._$AU ?? this._$Cv;
}
constructor(e, t, n, r) {
this.type = 2, this._$AH = C, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
}
get parentNode() {
let e = this._$AA.parentNode, t = this._$AM;
return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
}
get startNode() {
return this._$AA;
}
get endNode() {
return this._$AB;
}
_$AI(e, t = this) {
e = k(this, e, t), u(e) ? e === C || e == null || e === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : e !== this._$AH && e !== S && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? f(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
}
O(e) {
return this._$AA.parentNode.insertBefore(e, this._$AB);
}
T(e) {
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
}
_(e) {
this._$AH !== C && u(this._$AH) ? this._$AA.nextSibling.data = e : this.T(c.createTextNode(e)), this._$AH = e;
}
$(e) {
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = O.createElement(E(n.h, n.h[0]), this.options)), n);
if (this._$AH?._$AD === r) this._$AH.p(t);
else {
let e = new A(r, this), n = e.u(this.options);
e.p(t), this.T(n), this._$AH = e;
}
}
_$AC(e) {
let t = w.get(e.strings);
return t === void 0 && w.set(e.strings, t = new O(e)), t;
}
k(t) {
d(this._$AH) || (this._$AH = [], this._$AR());
let n = this._$AH, r, i = 0;
for (let a of t) i === n.length ? n.push(r = new e(this.O(l()), this.O(l()), this, this.options)) : r = n[i], r._$AI(a), i++;
i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
}
_$AR(e = this._$AA.nextSibling, n) {
for (this._$AP?.(!1, !0, n); e !== this._$AB;) {
let n = t(e).nextSibling;
t(e).remove(), e = n;
}
}
setConnected(e) {
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
}
}, M = class {
get tagName() {
return this.element.tagName;
}
get _$AU() {
return this._$AM._$AU;
}
constructor(e, t, n, r, i) {
this.type = 1, this._$AH = C, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = C;
}
_$AI(e, t = this, n, r) {
let i = this.strings, a = !1;
if (i === void 0) e = k(this, e, t, 0), a = !u(e) || e !== this._$AH && e !== S, a && (this._$AH = e);
else {
let r = e, o, s;
for (e = i[0], o = 0; o < i.length - 1; o++) s = k(this, r[n + o], t, o), s === S && (s = this._$AH[o]), a ||= !u(s) || s !== this._$AH[o], s === C ? e = C : e !== C && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
}
a && !r && this.j(e);
}
j(e) {
e === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
}
}, N = class extends M {
constructor() {
super(...arguments), this.type = 3;
}
j(e) {
this.element[this.name] = e === C ? void 0 : e;
}
}, P = class extends M {
constructor() {
super(...arguments), this.type = 4;
}
j(e) {
this.element.toggleAttribute(this.name, !!e && e !== C);
}
}, F = class extends M {
constructor(e, t, n, r, i) {
super(e, t, n, r, i), this.type = 5;
}
_$AI(e, t = this) {
if ((e = k(this, e, t, 0) ?? C) === S) return;
let n = this._$AH, r = e === C && n !== C || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== C && (n === C || r);
r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
}
handleEvent(e) {
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
}
}, I = class {
constructor(e, t, n) {
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
}
get _$AU() {
return this._$AM._$AU;
}
_$AI(e) {
k(this, e);
}
}, ee = {
M: i,
P: a,
A: o,
C: 1,
L: D,
R: A,
D: f,
V: k,
I: j,
H: M,
N: P,
U: F,
B: N,
F: I
}, te = e.litHtmlPolyfillSupport;
te?.(O, j), (e.litHtmlVersions ??= []).push("3.3.2");
var ne = (e, t, n) => {
let r = n?.renderBefore ?? t, i = r._$litPart$;
if (i === void 0) {
let e = n?.renderBefore ?? null;
r._$litPart$ = i = new j(t.insertBefore(l(), e), e, void 0, n ?? {});
}
return i._$AI(e), i;
}, re = (e) => (t, n) => {
n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
customElements.define(e, t);
});
}, L = globalThis, R = L.ShadowRoot && (L.ShadyCSS === void 0 || L.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, z = Symbol(), B = /* @__PURE__ */ new WeakMap(), ie = class {
constructor(e, t, n) {
if (this._$cssResult$ = !0, n !== z) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
this.cssText = e, this.t = t;
}
get styleSheet() {
let e = this.o, t = this.t;
if (R && e === void 0) {
let n = t !== void 0 && t.length === 1;
n && (e = B.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && B.set(t, e));
}
return e;
}
toString() {
return this.cssText;
}
}, ae = (e) => new ie(typeof e == "string" ? e : e + "", void 0, z), oe = (e, t) => {
if (R) e.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
else for (let n of t) {
let t = document.createElement("style"), r = L.litNonce;
r !== void 0 && t.setAttribute("nonce", r), t.textContent = n.cssText, e.appendChild(t);
}
}, V = R ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
let t = "";
for (let n of e.cssRules) t += n.cssText;
return ae(t);
})(e) : e, { is: se, defineProperty: ce, getOwnPropertyDescriptor: le, getOwnPropertyNames: ue, getOwnPropertySymbols: de, getPrototypeOf: fe } = Object, H = globalThis, U = H.trustedTypes, pe = U ? U.emptyScript : "", me = H.reactiveElementPolyfillSupport, W = (e, t) => e, G = {
toAttribute(e, t) {
switch (t) {
case Boolean:
e = e ? pe : null;
break;
case Object:
case Array: e = e == null ? e : JSON.stringify(e);
}
return e;
},
fromAttribute(e, t) {
let n = e;
switch (t) {
case Boolean:
n = e !== null;
break;
case Number:
n = e === null ? null : Number(e);
break;
case Object:
case Array: try {
n = JSON.parse(e);
} catch {
n = null;
}
}
return n;
}
}, K = (e, t) => !se(e, t), q = {
attribute: !0,
type: String,
converter: G,
reflect: !1,
useDefault: !1,
hasChanged: K
};
Symbol.metadata ??= Symbol("metadata"), H.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
var J = class extends HTMLElement {
static addInitializer(e) {
this._$Ei(), (this.l ??= []).push(e);
}
static get observedAttributes() {
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
}
static createProperty(e, t = q) {
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
r !== void 0 && ce(this.prototype, e, r);
}
}
static getPropertyDescriptor(e, t, n) {
let { get: r, set: i } = le(this.prototype, e) ?? {
get() {
return this[t];
},
set(e) {
this[t] = e;
}
};
return {
get: r,
set(t) {
let a = r?.call(this);
i?.call(this, t), this.requestUpdate(e, a, n);
},
configurable: !0,
enumerable: !0
};
}
static getPropertyOptions(e) {
return this.elementProperties.get(e) ?? q;
}
static _$Ei() {
if (this.hasOwnProperty(W("elementProperties"))) return;
let e = fe(this);
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
}
static finalize() {
if (this.hasOwnProperty(W("finalized"))) return;
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(W("properties"))) {
let e = this.properties, t = [...ue(e), ...de(e)];
for (let n of t) this.createProperty(n, e[n]);
}
let e = this[Symbol.metadata];
if (e !== null) {
let t = litPropertyMetadata.get(e);
if (t !== void 0) for (let [e, n] of t) this.elementProperties.set(e, n);
}
this._$Eh = /* @__PURE__ */ new Map();
for (let [e, t] of this.elementProperties) {
let n = this._$Eu(e, t);
n !== void 0 && this._$Eh.set(n, e);
}
this.elementStyles = this.finalizeStyles(this.styles);
}
static finalizeStyles(e) {
let t = [];
if (Array.isArray(e)) {
let n = new Set(e.flat(Infinity).reverse());
for (let e of n) t.unshift(V(e));
} else e !== void 0 && t.push(V(e));
return t;
}
static _$Eu(e, t) {
let n = t.attribute;
return !1 === n ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
}
constructor() {
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
}
_$Ev() {
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((e) => e(this));
}
addController(e) {
(this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
}
removeController(e) {
this._$EO?.delete(e);
}
_$E_() {
let e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
for (let n of t.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
e.size > 0 && (this._$Ep = e);
}
createRenderRoot() {
let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
return oe(e, this.constructor.elementStyles), e;
}
connectedCallback() {
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
}
enableUpdating(e) {}
disconnectedCallback() {
this._$EO?.forEach((e) => e.hostDisconnected?.());
}
attributeChangedCallback(e, t, n) {
this._$AK(e, n);
}
_$ET(e, t) {
let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
if (r !== void 0 && !0 === n.reflect) {
let i = (n.converter?.toAttribute === void 0 ? G : n.converter).toAttribute(t, n.type);
this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
}
}
_$AK(e, t) {
let n = this.constructor, r = n._$Eh.get(e);
if (r !== void 0 && this._$Em !== r) {
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? G : e.converter;
this._$Em = r;
let a = i.fromAttribute(t, e.type);
this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
}
}
requestUpdate(e, t, n, r = !1, i) {
if (e !== void 0) {
let a = this.constructor;
if (!1 === r && (i = this[e]), n ??= a.getPropertyOptions(e), !((n.hasChanged ?? K)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(a._$Eu(e, n)))) return;
this.C(e, t, n);
}
!1 === this.isUpdatePending && (this._$ES = this._$EP());
}
C(e, t, { useDefault: n, reflect: r, wrapped: i }, a) {
n && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, a ?? t ?? this[e]), !0 !== i || a !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (t = void 0), this._$AL.set(e, t)), !0 === r && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
}
async _$EP() {
this.isUpdatePending = !0;
try {
await this._$ES;
} catch (e) {
Promise.reject(e);
}
let e = this.scheduleUpdate();
return e != null && await e, !this.isUpdatePending;
}
scheduleUpdate() {
return this.performUpdate();
}
performUpdate() {
if (!this.isUpdatePending) return;
if (!this.hasUpdated) {
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
for (let [e, t] of this._$Ep) this[e] = t;
this._$Ep = void 0;
}
let e = this.constructor.elementProperties;
if (e.size > 0) for (let [t, n] of e) {
let { wrapped: e } = n, r = this[t];
!0 !== e || this._$AL.has(t) || r === void 0 || this.C(t, void 0, n, r);
}
}
let e = !1, t = this._$AL;
try {
e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach((e) => e.hostUpdate?.()), this.update(t)) : this._$EM();
} catch (t) {
throw e = !1, this._$EM(), t;
}
e && this._$AE(t);
}
willUpdate(e) {}
_$AE(e) {
this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
}
_$EM() {
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
}
get updateComplete() {
return this.getUpdateComplete();
}
getUpdateComplete() {
return this._$ES;
}
shouldUpdate(e) {
return !0;
}
update(e) {
this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
}
updated(e) {}
firstUpdated(e) {}
};
J.elementStyles = [], J.shadowRootOptions = { mode: "open" }, J[W("elementProperties")] = /* @__PURE__ */ new Map(), J[W("finalized")] = /* @__PURE__ */ new Map(), me?.({ ReactiveElement: J }), (H.reactiveElementVersions ??= []).push("2.1.2");
//#endregion
//#region ../../node_modules/@lit/reactive-element/decorators/property.js
var he = {
attribute: !0,
type: String,
converter: G,
reflect: !1,
hasChanged: K
}, ge = (e = he, t, n) => {
let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
let { name: r } = n;
return {
set(n) {
let i = t.get.call(this);
t.set.call(this, n), this.requestUpdate(r, i, e, !0, n);
},
init(t) {
return t !== void 0 && this.C(r, void 0, e, t), t;
}
};
}
if (r === "setter") {
let { name: r } = n;
return function(n) {
let i = this[r];
t.call(this, n), this.requestUpdate(r, i, e, !0, n);
};
}
throw Error("Unsupported decorator location: " + r);
};
function Y(e) {
return (t, n) => typeof n == "object" ? ge(e, t, n) : ((e, t, n) => {
let r = t.hasOwnProperty(n);
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
})(e, t, n);
}
//#endregion
//#region ../../node_modules/@lit/reactive-element/decorators/state.js
function _e(e) {
return Y({
...e,
state: !0,
attribute: !1
});
}
//#endregion
//#region ../../node_modules/lit-element/lit-element.js
var X = globalThis, Z = class extends J {
constructor() {
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
}
createRenderRoot() {
let e = super.createRenderRoot();
return this.renderOptions.renderBefore ??= e.firstChild, e;
}
update(e) {
let t = this.render();
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ne(t, this.renderRoot, this.renderOptions);
}
connectedCallback() {
super.connectedCallback(), this._$Do?.setConnected(!0);
}
disconnectedCallback() {
super.disconnectedCallback(), this._$Do?.setConnected(!1);
}
render() {
return S;
}
};
Z._$litElement$ = !0, Z.finalized = !0, X.litElementHydrateSupport?.({ LitElement: Z });
var ve = X.litElementPolyfillSupport;
ve?.({ LitElement: Z }), (X.litElementVersions ??= []).push("4.2.2");
var ye = {
example: { hi: "Hei!" },
generic: {
from: "Fra",
to: "Til"
},
calendar: {
buttonAltText: "Åpne kalender",
deleteDate: "Fjern dato"
},
dates: {
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"
},
timepicker: {
hours: "Timer",
minutes: "Minutter",
openPicker: "Åpne tidspunkt-velger",
prevTime: "Forrige tidspunkt",
nextTime: "Neste tidspunkt",
selectTime: "Velg tidspunkt"
},
forms: {
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." }
}
};
//#endregion
//#region \0@oxc-project+runtime@0.124.0/helpers/decorate.js
function Q(e, t, n, r) {
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
return i > 3 && a && Object.defineProperty(t, n, a), a;
}
//#endregion
//#region src/base-elements/element.ts
var $ = class extends Z {
constructor(...e) {
super(...e), this.strings = ye, this.role = null;
}
hotReplacedCallback() {
this.requestUpdate();
}
};
Q([Y({ type: Object })], $.prototype, "strings", void 0), Q([Y({ type: String })], $.prototype, "role", void 0);
var be = class extends $ {
createRenderRoot() {
return this;
}
};
//#endregion
export { Z as a, re as c, x as d, ee as f, ye as i, C as l, $ as n, _e as o, Q as r, Y as s, be as t, S as u };