@politiet/sheriff-web-components 1.0.2 → 1.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/dist/playwright-util/custom-matchers.d.ts +1 -0
- package/dist/playwright-util/custom-matchers.d.ts.map +1 -1
- package/dist/playwright-util/custom-matchers.js +10 -0
- package/dist/playwright-util/custom-matchers.js.map +1 -1
- package/dist/playwright-util/form.d.ts +1 -1
- package/dist/playwright-util/form.d.ts.map +1 -1
- package/dist/playwright-util/form.js +12 -7
- package/dist/playwright-util/form.js.map +1 -1
- package/dist/react-wrappers/SDSTextFieldWrapper.js +1 -1
- package/dist/react-wrappers/SDSTextFieldWrapper.js.map +1 -1
- package/dist/sds-button/sds-button.d.ts.map +1 -1
- package/dist/sds-button/sds-button.js +3 -2
- package/dist/sds-button/sds-button.js.map +1 -1
- package/dist/sds-checkbox/sds-checkbox.d.ts +1 -0
- package/dist/sds-checkbox/sds-checkbox.d.ts.map +1 -1
- package/dist/sds-checkbox/sds-checkbox.js +9 -13
- package/dist/sds-checkbox/sds-checkbox.js.map +1 -1
- package/dist/sds-checkbox/sds-checkbox.spec.js +18 -12
- package/dist/sds-checkbox/sds-checkbox.spec.js.map +1 -1
- package/dist/sds-checkbox-group/sds-checkbox-group.d.ts.map +1 -1
- package/dist/sds-checkbox-group/sds-checkbox-group.js +3 -2
- package/dist/sds-checkbox-group/sds-checkbox-group.js.map +1 -1
- package/dist/sds-chip/sds-chip.d.ts +2 -0
- package/dist/sds-chip/sds-chip.d.ts.map +1 -1
- package/dist/sds-chip/sds-chip.js +13 -3
- package/dist/sds-chip/sds-chip.js.map +1 -1
- package/dist/sds-chip/sds-chip.styles.d.ts.map +1 -1
- package/dist/sds-chip/sds-chip.styles.js +9 -8
- package/dist/sds-chip/sds-chip.styles.js.map +1 -1
- package/dist/sds-detail/sds-detail.d.ts.map +1 -1
- package/dist/sds-detail/sds-detail.js +3 -2
- package/dist/sds-detail/sds-detail.js.map +1 -1
- package/dist/sds-heading/sds-heading.d.ts.map +1 -1
- package/dist/sds-heading/sds-heading.js +3 -2
- package/dist/sds-heading/sds-heading.js.map +1 -1
- package/dist/sds-icon/sds-icon.allowed-colors.d.ts +3 -0
- package/dist/sds-icon/sds-icon.allowed-colors.d.ts.map +1 -0
- package/dist/sds-icon/sds-icon.allowed-colors.js +17 -0
- package/dist/sds-icon/sds-icon.allowed-colors.js.map +1 -0
- package/dist/sds-icon/sds-icon.allowed-names.d.ts +3 -0
- package/dist/sds-icon/sds-icon.allowed-names.d.ts.map +1 -0
- package/dist/sds-icon/sds-icon.allowed-names.js +2 -0
- package/dist/sds-icon/sds-icon.allowed-names.js.map +1 -0
- package/dist/sds-icon/sds-icon.color-types.d.ts +2 -0
- package/dist/sds-icon/sds-icon.color-types.d.ts.map +1 -0
- package/dist/sds-icon/sds-icon.color-types.js +2 -0
- package/dist/sds-icon/sds-icon.color-types.js.map +1 -0
- package/dist/sds-icon/sds-icon.d.ts.map +1 -1
- package/dist/sds-icon/sds-icon.icon-types.d.ts +2 -0
- package/dist/sds-icon/sds-icon.icon-types.d.ts.map +1 -0
- package/dist/sds-icon/sds-icon.icon-types.js +2 -0
- package/dist/sds-icon/sds-icon.icon-types.js.map +1 -0
- package/dist/sds-icon/sds-icon.js +3 -2
- package/dist/sds-icon/sds-icon.js.map +1 -1
- package/dist/sds-label/sds-label.d.ts.map +1 -1
- package/dist/sds-label/sds-label.js +3 -2
- package/dist/sds-label/sds-label.js.map +1 -1
- package/dist/sds-link/sds-link.d.ts.map +1 -1
- package/dist/sds-link/sds-link.js +3 -2
- package/dist/sds-link/sds-link.js.map +1 -1
- package/dist/sds-loader/sds-loader.d.ts.map +1 -1
- package/dist/sds-loader/sds-loader.js +3 -2
- package/dist/sds-loader/sds-loader.js.map +1 -1
- package/dist/sds-nav-card/sds-nav-card.d.ts.map +1 -1
- package/dist/sds-nav-card/sds-nav-card.js +3 -2
- package/dist/sds-nav-card/sds-nav-card.js.map +1 -1
- package/dist/sds-notification/sds-notification.d.ts.map +1 -1
- package/dist/sds-notification/sds-notification.js +3 -2
- package/dist/sds-notification/sds-notification.js.map +1 -1
- package/dist/sds-paragraph/sds-paragraph.d.ts.map +1 -1
- package/dist/sds-paragraph/sds-paragraph.js +3 -2
- package/dist/sds-paragraph/sds-paragraph.js.map +1 -1
- package/dist/sds-radio/sds-radio.d.ts +1 -0
- package/dist/sds-radio/sds-radio.d.ts.map +1 -1
- package/dist/sds-radio/sds-radio.js +12 -6
- package/dist/sds-radio/sds-radio.js.map +1 -1
- package/dist/sds-radio/sds-radio.spec.d.ts +2 -0
- package/dist/sds-radio/sds-radio.spec.d.ts.map +1 -0
- package/dist/sds-radio/sds-radio.spec.js +71 -0
- package/dist/sds-radio/sds-radio.spec.js.map +1 -0
- package/dist/sds-radio/sds-radio.styles.js +1 -1
- package/dist/sds-radio/sds-radio.styles.js.map +1 -1
- package/dist/sds-radio-group/sds-radio-group.d.ts.map +1 -1
- package/dist/sds-radio-group/sds-radio-group.js +3 -2
- package/dist/sds-radio-group/sds-radio-group.js.map +1 -1
- package/dist/sds-switch/sds-switch.d.ts.map +1 -1
- package/dist/sds-switch/sds-switch.js +3 -2
- package/dist/sds-switch/sds-switch.js.map +1 -1
- package/dist/sds-text/sds-text.d.ts.map +1 -1
- package/dist/sds-text/sds-text.js +3 -2
- package/dist/sds-text/sds-text.js.map +1 -1
- package/dist/sds-textfield/sds-textfield.d.ts.map +1 -1
- package/dist/sds-textfield/sds-textfield.js +3 -2
- package/dist/sds-textfield/sds-textfield.js.map +1 -1
- package/dist/sds-textfield/sds-textfield.spec.d.ts +2 -0
- package/dist/sds-textfield/sds-textfield.spec.d.ts.map +1 -0
- package/dist/sds-textfield/sds-textfield.spec.js +139 -0
- package/dist/sds-textfield/sds-textfield.spec.js.map +1 -0
- package/dist/sheriff-web-components.js +307 -288
- package/dist/utils/guarded-custom-element.d.ts +5 -0
- package/dist/utils/guarded-custom-element.d.ts.map +1 -0
- package/dist/utils/guarded-custom-element.js +9 -0
- package/dist/utils/guarded-custom-element.js.map +1 -0
- package/dist/utils/hmr-helper.d.ts +2 -0
- package/dist/utils/hmr-helper.d.ts.map +1 -0
- package/dist/utils/hmr-helper.js +17 -0
- package/dist/utils/hmr-helper.js.map +1 -0
- package/dist/utils/safe-custom-element.d.ts +2 -0
- package/dist/utils/safe-custom-element.d.ts.map +1 -0
- package/dist/utils/safe-custom-element.js +9 -0
- package/dist/utils/safe-custom-element.js.map +1 -0
- package/package.json +1 -1
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const t$4 = globalThis, e$7 = t$4.ShadowRoot && (void 0 === t$4.ShadyCSS || t$4.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$
|
|
6
|
+
const t$4 = globalThis, e$7 = t$4.ShadowRoot && (void 0 === t$4.ShadyCSS || t$4.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$6 = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let n$3 = class n {
|
|
8
8
|
constructor(t2, e2, o2) {
|
|
9
|
-
if (this._$cssResult$ = true, o2 !== s$
|
|
9
|
+
if (this._$cssResult$ = true, o2 !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t2, this.t = e2;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
@@ -14,7 +14,7 @@ let n$3 = class n {
|
|
|
14
14
|
const s2 = this.t;
|
|
15
15
|
if (e$7 && void 0 === t2) {
|
|
16
16
|
const e2 = void 0 !== s2 && 1 === s2.length;
|
|
17
|
-
e2 && (t2 = o$
|
|
17
|
+
e2 && (t2 = o$6.get(s2)), void 0 === t2 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e2 && o$6.set(s2, t2));
|
|
18
18
|
}
|
|
19
19
|
return t2;
|
|
20
20
|
}
|
|
@@ -22,13 +22,13 @@ let n$3 = class n {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const r$
|
|
25
|
+
const r$4 = (t2) => new n$3("string" == typeof t2 ? t2 : t2 + "", void 0, s$2), i$4 = (t2, ...e2) => {
|
|
26
26
|
const o2 = 1 === t2.length ? t2[0] : e2.reduce((e3, s2, o3) => e3 + ((t3) => {
|
|
27
27
|
if (true === t3._$cssResult$) return t3.cssText;
|
|
28
28
|
if ("number" == typeof t3) return t3;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t3 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(s2) + t2[o3 + 1], t2[0]);
|
|
31
|
-
return new n$3(o2, t2, s$
|
|
31
|
+
return new n$3(o2, t2, s$2);
|
|
32
32
|
}, S$1 = (s2, o2) => {
|
|
33
33
|
if (e$7) s2.adoptedStyleSheets = o2.map((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet);
|
|
34
34
|
else for (const e2 of o2) {
|
|
@@ -38,14 +38,14 @@ const r$5 = (t2) => new n$3("string" == typeof t2 ? t2 : t2 + "", void 0, s$1),
|
|
|
38
38
|
}, c$2 = e$7 ? (t2) => t2 : (t2) => t2 instanceof CSSStyleSheet ? ((t3) => {
|
|
39
39
|
let e2 = "";
|
|
40
40
|
for (const s2 of t3.cssRules) e2 += s2.cssText;
|
|
41
|
-
return r$
|
|
41
|
+
return r$4(e2);
|
|
42
42
|
})(t2) : t2;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: i$3, defineProperty: e$6, getOwnPropertyDescriptor:
|
|
48
|
+
const { is: i$3, defineProperty: e$6, getOwnPropertyDescriptor: h$1, getOwnPropertyNames: r$3, getOwnPropertySymbols: o$5, getPrototypeOf: n$2 } = Object, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = (t2, s2) => t2, u$1 = { toAttribute(t2, s2) {
|
|
49
49
|
switch (s2) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
t2 = t2 ? l$1 : null;
|
|
@@ -56,53 +56,51 @@ const { is: i$3, defineProperty: e$6, getOwnPropertyDescriptor: r$4, getOwnPrope
|
|
|
56
56
|
}
|
|
57
57
|
return t2;
|
|
58
58
|
}, fromAttribute(t2, s2) {
|
|
59
|
-
let
|
|
59
|
+
let i3 = t2;
|
|
60
60
|
switch (s2) {
|
|
61
61
|
case Boolean:
|
|
62
|
-
|
|
62
|
+
i3 = null !== t2;
|
|
63
63
|
break;
|
|
64
64
|
case Number:
|
|
65
|
-
|
|
65
|
+
i3 = null === t2 ? null : Number(t2);
|
|
66
66
|
break;
|
|
67
67
|
case Object:
|
|
68
68
|
case Array:
|
|
69
69
|
try {
|
|
70
|
-
|
|
70
|
+
i3 = JSON.parse(t2);
|
|
71
71
|
} catch (t3) {
|
|
72
|
-
|
|
72
|
+
i3 = null;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
return
|
|
76
|
-
} }, f$1 = (t2, s2) => !i$3(t2, s2),
|
|
75
|
+
return i3;
|
|
76
|
+
} }, f$1 = (t2, s2) => !i$3(t2, s2), b = { attribute: true, type: String, converter: u$1, reflect: false, useDefault: false, hasChanged: f$1 };
|
|
77
77
|
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
78
|
-
class
|
|
78
|
+
let y$1 = class y extends HTMLElement {
|
|
79
79
|
static addInitializer(t2) {
|
|
80
80
|
this._$Ei(), (this.l ??= []).push(t2);
|
|
81
81
|
}
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(t2, s2 =
|
|
86
|
-
if (s2.state && (s2.attribute = false), this._$Ei(), this.elementProperties.set(t2, s2), !s2.noAccessor) {
|
|
87
|
-
const
|
|
88
|
-
void 0 !==
|
|
85
|
+
static createProperty(t2, s2 = b) {
|
|
86
|
+
if (s2.state && (s2.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t2) && ((s2 = Object.create(s2)).wrapped = true), this.elementProperties.set(t2, s2), !s2.noAccessor) {
|
|
87
|
+
const i3 = Symbol(), h2 = this.getPropertyDescriptor(t2, i3, s2);
|
|
88
|
+
void 0 !== h2 && e$6(this.prototype, t2, h2);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(t2, s2,
|
|
92
|
-
const { get: e2, set:
|
|
91
|
+
static getPropertyDescriptor(t2, s2, i3) {
|
|
92
|
+
const { get: e2, set: r2 } = h$1(this.prototype, t2) ?? { get() {
|
|
93
93
|
return this[s2];
|
|
94
94
|
}, set(t3) {
|
|
95
95
|
this[s2] = t3;
|
|
96
96
|
} };
|
|
97
|
-
return { get() {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const r3 = e2?.call(this);
|
|
101
|
-
h2.call(this, s3), this.requestUpdate(t2, r3, i2);
|
|
97
|
+
return { get: e2, set(s3) {
|
|
98
|
+
const h2 = e2?.call(this);
|
|
99
|
+
r2?.call(this, s3), this.requestUpdate(t2, h2, i3);
|
|
102
100
|
}, configurable: true, enumerable: true };
|
|
103
101
|
}
|
|
104
102
|
static getPropertyOptions(t2) {
|
|
105
|
-
return this.elementProperties.get(t2) ??
|
|
103
|
+
return this.elementProperties.get(t2) ?? b;
|
|
106
104
|
}
|
|
107
105
|
static _$Ei() {
|
|
108
106
|
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
@@ -112,32 +110,32 @@ class b extends HTMLElement {
|
|
|
112
110
|
static finalize() {
|
|
113
111
|
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
114
112
|
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
115
|
-
const t3 = this.properties, s2 = [...
|
|
116
|
-
for (const
|
|
113
|
+
const t3 = this.properties, s2 = [...r$3(t3), ...o$5(t3)];
|
|
114
|
+
for (const i3 of s2) this.createProperty(i3, t3[i3]);
|
|
117
115
|
}
|
|
118
116
|
const t2 = this[Symbol.metadata];
|
|
119
117
|
if (null !== t2) {
|
|
120
118
|
const s2 = litPropertyMetadata.get(t2);
|
|
121
|
-
if (void 0 !== s2) for (const [t3,
|
|
119
|
+
if (void 0 !== s2) for (const [t3, i3] of s2) this.elementProperties.set(t3, i3);
|
|
122
120
|
}
|
|
123
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
124
122
|
for (const [t3, s2] of this.elementProperties) {
|
|
125
|
-
const
|
|
126
|
-
void 0 !==
|
|
123
|
+
const i3 = this._$Eu(t3, s2);
|
|
124
|
+
void 0 !== i3 && this._$Eh.set(i3, t3);
|
|
127
125
|
}
|
|
128
126
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
129
127
|
}
|
|
130
128
|
static finalizeStyles(s2) {
|
|
131
|
-
const
|
|
129
|
+
const i3 = [];
|
|
132
130
|
if (Array.isArray(s2)) {
|
|
133
131
|
const e2 = new Set(s2.flat(1 / 0).reverse());
|
|
134
|
-
for (const s3 of e2)
|
|
135
|
-
} else void 0 !== s2 &&
|
|
136
|
-
return
|
|
132
|
+
for (const s3 of e2) i3.unshift(c$2(s3));
|
|
133
|
+
} else void 0 !== s2 && i3.push(c$2(s2));
|
|
134
|
+
return i3;
|
|
137
135
|
}
|
|
138
136
|
static _$Eu(t2, s2) {
|
|
139
|
-
const
|
|
140
|
-
return false ===
|
|
137
|
+
const i3 = s2.attribute;
|
|
138
|
+
return false === i3 ? void 0 : "string" == typeof i3 ? i3 : "string" == typeof t2 ? t2.toLowerCase() : void 0;
|
|
141
139
|
}
|
|
142
140
|
constructor() {
|
|
143
141
|
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
@@ -153,7 +151,7 @@ class b extends HTMLElement {
|
|
|
153
151
|
}
|
|
154
152
|
_$E_() {
|
|
155
153
|
const t2 = /* @__PURE__ */ new Map(), s2 = this.constructor.elementProperties;
|
|
156
|
-
for (const
|
|
154
|
+
for (const i3 of s2.keys()) this.hasOwnProperty(i3) && (t2.set(i3, this[i3]), delete this[i3]);
|
|
157
155
|
t2.size > 0 && (this._$Ep = t2);
|
|
158
156
|
}
|
|
159
157
|
createRenderRoot() {
|
|
@@ -168,34 +166,35 @@ class b extends HTMLElement {
|
|
|
168
166
|
disconnectedCallback() {
|
|
169
167
|
this._$EO?.forEach((t2) => t2.hostDisconnected?.());
|
|
170
168
|
}
|
|
171
|
-
attributeChangedCallback(t2, s2,
|
|
172
|
-
this._$AK(t2,
|
|
169
|
+
attributeChangedCallback(t2, s2, i3) {
|
|
170
|
+
this._$AK(t2, i3);
|
|
173
171
|
}
|
|
174
|
-
_$
|
|
175
|
-
const
|
|
176
|
-
if (void 0 !== e2 && true ===
|
|
177
|
-
const
|
|
178
|
-
this._$Em = t2, null ==
|
|
172
|
+
_$ET(t2, s2) {
|
|
173
|
+
const i3 = this.constructor.elementProperties.get(t2), e2 = this.constructor._$Eu(t2, i3);
|
|
174
|
+
if (void 0 !== e2 && true === i3.reflect) {
|
|
175
|
+
const h2 = (void 0 !== i3.converter?.toAttribute ? i3.converter : u$1).toAttribute(s2, i3.type);
|
|
176
|
+
this._$Em = t2, null == h2 ? this.removeAttribute(e2) : this.setAttribute(e2, h2), this._$Em = null;
|
|
179
177
|
}
|
|
180
178
|
}
|
|
181
179
|
_$AK(t2, s2) {
|
|
182
|
-
const
|
|
180
|
+
const i3 = this.constructor, e2 = i3._$Eh.get(t2);
|
|
183
181
|
if (void 0 !== e2 && this._$Em !== e2) {
|
|
184
|
-
const t3 =
|
|
185
|
-
this._$Em = e2, this[e2] =
|
|
182
|
+
const t3 = i3.getPropertyOptions(e2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== t3.converter?.fromAttribute ? t3.converter : u$1;
|
|
183
|
+
this._$Em = e2, this[e2] = h2.fromAttribute(s2, t3.type) ?? this._$Ej?.get(e2) ?? null, this._$Em = null;
|
|
186
184
|
}
|
|
187
185
|
}
|
|
188
|
-
requestUpdate(t2, s2,
|
|
186
|
+
requestUpdate(t2, s2, i3) {
|
|
189
187
|
if (void 0 !== t2) {
|
|
190
|
-
|
|
191
|
-
|
|
188
|
+
const e2 = this.constructor, h2 = this[t2];
|
|
189
|
+
if (i3 ??= e2.getPropertyOptions(t2), !((i3.hasChanged ?? f$1)(h2, s2) || i3.useDefault && i3.reflect && h2 === this._$Ej?.get(t2) && !this.hasAttribute(e2._$Eu(t2, i3)))) return;
|
|
190
|
+
this.C(t2, s2, i3);
|
|
192
191
|
}
|
|
193
|
-
false === this.isUpdatePending && (this._$ES = this._$
|
|
192
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
194
193
|
}
|
|
195
|
-
|
|
196
|
-
this._$AL.has(t2) || this._$AL.set(t2, s2), true ===
|
|
194
|
+
C(t2, s2, { useDefault: i3, reflect: e2, wrapped: h2 }, r2) {
|
|
195
|
+
i3 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t2) && (this._$Ej.set(t2, r2 ?? s2 ?? this[t2]), true !== h2 || void 0 !== r2) || (this._$AL.has(t2) || (this.hasUpdated || i3 || (s2 = void 0), this._$AL.set(t2, s2)), true === e2 && this._$Em !== t2 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t2));
|
|
197
196
|
}
|
|
198
|
-
async _$
|
|
197
|
+
async _$EP() {
|
|
199
198
|
this.isUpdatePending = true;
|
|
200
199
|
try {
|
|
201
200
|
await this._$ES;
|
|
@@ -216,14 +215,17 @@ class b extends HTMLElement {
|
|
|
216
215
|
this._$Ep = void 0;
|
|
217
216
|
}
|
|
218
217
|
const t3 = this.constructor.elementProperties;
|
|
219
|
-
if (t3.size > 0) for (const [s3,
|
|
218
|
+
if (t3.size > 0) for (const [s3, i3] of t3) {
|
|
219
|
+
const { wrapped: t4 } = i3, e2 = this[s3];
|
|
220
|
+
true !== t4 || this._$AL.has(s3) || void 0 === e2 || this.C(s3, void 0, i3, e2);
|
|
221
|
+
}
|
|
220
222
|
}
|
|
221
223
|
let t2 = false;
|
|
222
224
|
const s2 = this._$AL;
|
|
223
225
|
try {
|
|
224
|
-
t2 = this.shouldUpdate(s2), t2 ? (this.willUpdate(s2), this._$EO?.forEach((t3) => t3.hostUpdate?.()), this.update(s2)) : this._$
|
|
226
|
+
t2 = this.shouldUpdate(s2), t2 ? (this.willUpdate(s2), this._$EO?.forEach((t3) => t3.hostUpdate?.()), this.update(s2)) : this._$EM();
|
|
225
227
|
} catch (s3) {
|
|
226
|
-
throw t2 = false, this._$
|
|
228
|
+
throw t2 = false, this._$EM(), s3;
|
|
227
229
|
}
|
|
228
230
|
t2 && this._$AE(s2);
|
|
229
231
|
}
|
|
@@ -232,7 +234,7 @@ class b extends HTMLElement {
|
|
|
232
234
|
_$AE(t2) {
|
|
233
235
|
this._$EO?.forEach((t3) => t3.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t2)), this.updated(t2);
|
|
234
236
|
}
|
|
235
|
-
_$
|
|
237
|
+
_$EM() {
|
|
236
238
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
237
239
|
}
|
|
238
240
|
get updateComplete() {
|
|
@@ -245,40 +247,40 @@ class b extends HTMLElement {
|
|
|
245
247
|
return true;
|
|
246
248
|
}
|
|
247
249
|
update(t2) {
|
|
248
|
-
this._$
|
|
250
|
+
this._$Eq &&= this._$Eq.forEach((t3) => this._$ET(t3, this[t3])), this._$EM();
|
|
249
251
|
}
|
|
250
252
|
updated(t2) {
|
|
251
253
|
}
|
|
252
254
|
firstUpdated(t2) {
|
|
253
255
|
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
+
};
|
|
257
|
+
y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$1("elementProperties")] = /* @__PURE__ */ new Map(), y$1[d$1("finalized")] = /* @__PURE__ */ new Map(), p$1?.({ ReactiveElement: y$1 }), (a$1.reactiveElementVersions ??= []).push("2.1.0");
|
|
256
258
|
/**
|
|
257
259
|
* @license
|
|
258
260
|
* Copyright 2017 Google LLC
|
|
259
261
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
260
262
|
*/
|
|
261
|
-
const t$3 = globalThis, i$2 = t$3.trustedTypes, s = i$2 ? i$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$5 = "$lit$", h = `lit$${Math.random().toFixed(9).slice(2)}$`, o$
|
|
262
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i,
|
|
263
|
-
function P(t2,
|
|
263
|
+
const t$3 = globalThis, i$2 = t$3.trustedTypes, s$1 = i$2 ? i$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$5 = "$lit$", h = `lit$${Math.random().toFixed(9).slice(2)}$`, o$4 = "?" + h, n$1 = `<${o$4}>`, r$2 = document, l = () => r$2.createComment(""), c = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a = Array.isArray, u = (t2) => a(t2) || "function" == typeof t2?.[Symbol.iterator], d = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
264
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y2 = (t2) => (i3, ...s2) => ({ _$litType$: t2, strings: i3, values: s2 }), x = y2(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r$2.createTreeWalker(r$2, 129);
|
|
265
|
+
function P(t2, i3) {
|
|
264
266
|
if (!a(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
265
|
-
return void 0 !== s ? s.createHTML(
|
|
267
|
+
return void 0 !== s$1 ? s$1.createHTML(i3) : i3;
|
|
266
268
|
}
|
|
267
|
-
const V = (t2,
|
|
269
|
+
const V = (t2, i3) => {
|
|
268
270
|
const s2 = t2.length - 1, o2 = [];
|
|
269
|
-
let
|
|
270
|
-
for (let
|
|
271
|
-
const s3 = t2[
|
|
272
|
-
let a2, u2, d2 = -1,
|
|
273
|
-
for (;
|
|
274
|
-
const x2 = c2 === m && t2[
|
|
275
|
-
l2 += c2 === f ? s3 + n$1 : d2 >= 0 ? (o2.push(a2), s3.slice(0, d2) + e$5 + s3.slice(d2) + h + x2) : s3 + h + (-2 === d2 ?
|
|
276
|
-
}
|
|
277
|
-
return [P(t2, l2 + (t2[s2] || "<?>") + (2 ===
|
|
271
|
+
let r2, l2 = 2 === i3 ? "<svg>" : 3 === i3 ? "<math>" : "", c2 = f;
|
|
272
|
+
for (let i4 = 0; i4 < s2; i4++) {
|
|
273
|
+
const s3 = t2[i4];
|
|
274
|
+
let a2, u2, d2 = -1, y3 = 0;
|
|
275
|
+
for (; y3 < s3.length && (c2.lastIndex = y3, u2 = c2.exec(s3), null !== u2); ) y3 = c2.lastIndex, c2 === f ? "!--" === u2[1] ? c2 = v : void 0 !== u2[1] ? c2 = _ : void 0 !== u2[2] ? ($.test(u2[2]) && (r2 = RegExp("</" + u2[2], "g")), c2 = m) : void 0 !== u2[3] && (c2 = m) : c2 === m ? ">" === u2[0] ? (c2 = r2 ?? f, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m : '"' === u2[3] ? g : p) : c2 === g || c2 === p ? c2 = m : c2 === v || c2 === _ ? c2 = f : (c2 = m, r2 = void 0);
|
|
276
|
+
const x2 = c2 === m && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
277
|
+
l2 += c2 === f ? s3 + n$1 : d2 >= 0 ? (o2.push(a2), s3.slice(0, d2) + e$5 + s3.slice(d2) + h + x2) : s3 + h + (-2 === d2 ? i4 : x2);
|
|
278
|
+
}
|
|
279
|
+
return [P(t2, l2 + (t2[s2] || "<?>") + (2 === i3 ? "</svg>" : 3 === i3 ? "</math>" : "")), o2];
|
|
278
280
|
};
|
|
279
281
|
class N {
|
|
280
282
|
constructor({ strings: t2, _$litType$: s2 }, n3) {
|
|
281
|
-
let
|
|
283
|
+
let r2;
|
|
282
284
|
this.parts = [];
|
|
283
285
|
let c2 = 0, a2 = 0;
|
|
284
286
|
const u2 = t2.length - 1, d2 = this.parts, [f2, v2] = V(t2, s2);
|
|
@@ -286,42 +288,42 @@ class N {
|
|
|
286
288
|
const t3 = this.el.content.firstChild;
|
|
287
289
|
t3.replaceWith(...t3.childNodes);
|
|
288
290
|
}
|
|
289
|
-
for (; null !== (
|
|
290
|
-
if (1 ===
|
|
291
|
-
if (
|
|
292
|
-
const
|
|
293
|
-
d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I : "@" === e2[1] ? L : k }),
|
|
294
|
-
} else t3.startsWith(h) && (d2.push({ type: 6, index: c2 }),
|
|
295
|
-
if ($.test(
|
|
296
|
-
const t3 =
|
|
291
|
+
for (; null !== (r2 = C.nextNode()) && d2.length < u2; ) {
|
|
292
|
+
if (1 === r2.nodeType) {
|
|
293
|
+
if (r2.hasAttributes()) for (const t3 of r2.getAttributeNames()) if (t3.endsWith(e$5)) {
|
|
294
|
+
const i3 = v2[a2++], s3 = r2.getAttribute(t3).split(h), e2 = /([.?@])?(.*)/.exec(i3);
|
|
295
|
+
d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I : "@" === e2[1] ? L : k }), r2.removeAttribute(t3);
|
|
296
|
+
} else t3.startsWith(h) && (d2.push({ type: 6, index: c2 }), r2.removeAttribute(t3));
|
|
297
|
+
if ($.test(r2.tagName)) {
|
|
298
|
+
const t3 = r2.textContent.split(h), s3 = t3.length - 1;
|
|
297
299
|
if (s3 > 0) {
|
|
298
|
-
|
|
299
|
-
for (let
|
|
300
|
-
|
|
300
|
+
r2.textContent = i$2 ? i$2.emptyScript : "";
|
|
301
|
+
for (let i3 = 0; i3 < s3; i3++) r2.append(t3[i3], l()), C.nextNode(), d2.push({ type: 2, index: ++c2 });
|
|
302
|
+
r2.append(t3[s3], l());
|
|
301
303
|
}
|
|
302
304
|
}
|
|
303
|
-
} else if (8 ===
|
|
305
|
+
} else if (8 === r2.nodeType) if (r2.data === o$4) d2.push({ type: 2, index: c2 });
|
|
304
306
|
else {
|
|
305
307
|
let t3 = -1;
|
|
306
|
-
for (; -1 !== (t3 =
|
|
308
|
+
for (; -1 !== (t3 = r2.data.indexOf(h, t3 + 1)); ) d2.push({ type: 7, index: c2 }), t3 += h.length - 1;
|
|
307
309
|
}
|
|
308
310
|
c2++;
|
|
309
311
|
}
|
|
310
312
|
}
|
|
311
|
-
static createElement(t2,
|
|
312
|
-
const s2 = r$
|
|
313
|
+
static createElement(t2, i3) {
|
|
314
|
+
const s2 = r$2.createElement("template");
|
|
313
315
|
return s2.innerHTML = t2, s2;
|
|
314
316
|
}
|
|
315
317
|
}
|
|
316
|
-
function S(t2,
|
|
317
|
-
if (
|
|
318
|
+
function S(t2, i3, s2 = t2, e2) {
|
|
319
|
+
if (i3 === T) return i3;
|
|
318
320
|
let h2 = void 0 !== e2 ? s2._$Co?.[e2] : s2._$Cl;
|
|
319
|
-
const o2 = c(
|
|
320
|
-
return h2?.constructor !== o2 && (h2?._$AO?.(false), void 0 === o2 ? h2 = void 0 : (h2 = new o2(t2), h2._$AT(t2, s2, e2)), void 0 !== e2 ? (s2._$Co ??= [])[e2] = h2 : s2._$Cl = h2), void 0 !== h2 && (
|
|
321
|
+
const o2 = c(i3) ? void 0 : i3._$litDirective$;
|
|
322
|
+
return h2?.constructor !== o2 && (h2?._$AO?.(false), void 0 === o2 ? h2 = void 0 : (h2 = new o2(t2), h2._$AT(t2, s2, e2)), void 0 !== e2 ? (s2._$Co ??= [])[e2] = h2 : s2._$Cl = h2), void 0 !== h2 && (i3 = S(t2, h2._$AS(t2, i3.values), h2, e2)), i3;
|
|
321
323
|
}
|
|
322
324
|
class M {
|
|
323
|
-
constructor(t2,
|
|
324
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM =
|
|
325
|
+
constructor(t2, i3) {
|
|
326
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i3;
|
|
325
327
|
}
|
|
326
328
|
get parentNode() {
|
|
327
329
|
return this._$AM.parentNode;
|
|
@@ -330,34 +332,34 @@ class M {
|
|
|
330
332
|
return this._$AM._$AU;
|
|
331
333
|
}
|
|
332
334
|
u(t2) {
|
|
333
|
-
const { el: { content:
|
|
335
|
+
const { el: { content: i3 }, parts: s2 } = this._$AD, e2 = (t2?.creationScope ?? r$2).importNode(i3, true);
|
|
334
336
|
C.currentNode = e2;
|
|
335
337
|
let h2 = C.nextNode(), o2 = 0, n3 = 0, l2 = s2[0];
|
|
336
338
|
for (; void 0 !== l2; ) {
|
|
337
339
|
if (o2 === l2.index) {
|
|
338
|
-
let
|
|
339
|
-
2 === l2.type ?
|
|
340
|
+
let i4;
|
|
341
|
+
2 === l2.type ? i4 = new R(h2, h2.nextSibling, this, t2) : 1 === l2.type ? i4 = new l2.ctor(h2, l2.name, l2.strings, this, t2) : 6 === l2.type && (i4 = new z(h2, this, t2)), this._$AV.push(i4), l2 = s2[++n3];
|
|
340
342
|
}
|
|
341
343
|
o2 !== l2?.index && (h2 = C.nextNode(), o2++);
|
|
342
344
|
}
|
|
343
|
-
return C.currentNode = r$
|
|
345
|
+
return C.currentNode = r$2, e2;
|
|
344
346
|
}
|
|
345
347
|
p(t2) {
|
|
346
|
-
let
|
|
347
|
-
for (const s2 of this._$AV) void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2,
|
|
348
|
+
let i3 = 0;
|
|
349
|
+
for (const s2 of this._$AV) void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2, i3), i3 += s2.strings.length - 2) : s2._$AI(t2[i3])), i3++;
|
|
348
350
|
}
|
|
349
351
|
}
|
|
350
352
|
class R {
|
|
351
353
|
get _$AU() {
|
|
352
354
|
return this._$AM?._$AU ?? this._$Cv;
|
|
353
355
|
}
|
|
354
|
-
constructor(t2,
|
|
355
|
-
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t2, this._$AB =
|
|
356
|
+
constructor(t2, i3, s2, e2) {
|
|
357
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t2, this._$AB = i3, this._$AM = s2, this.options = e2, this._$Cv = e2?.isConnected ?? true;
|
|
356
358
|
}
|
|
357
359
|
get parentNode() {
|
|
358
360
|
let t2 = this._$AA.parentNode;
|
|
359
|
-
const
|
|
360
|
-
return void 0 !==
|
|
361
|
+
const i3 = this._$AM;
|
|
362
|
+
return void 0 !== i3 && 11 === t2?.nodeType && (t2 = i3.parentNode), t2;
|
|
361
363
|
}
|
|
362
364
|
get startNode() {
|
|
363
365
|
return this._$AA;
|
|
@@ -365,8 +367,8 @@ class R {
|
|
|
365
367
|
get endNode() {
|
|
366
368
|
return this._$AB;
|
|
367
369
|
}
|
|
368
|
-
_$AI(t2,
|
|
369
|
-
t2 = S(this, t2,
|
|
370
|
+
_$AI(t2, i3 = this) {
|
|
371
|
+
t2 = S(this, t2, i3), c(t2) ? t2 === E || null == t2 || "" === t2 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t2 !== this._$AH && t2 !== T && this._(t2) : void 0 !== t2._$litType$ ? this.$(t2) : void 0 !== t2.nodeType ? this.T(t2) : u(t2) ? this.k(t2) : this._(t2);
|
|
370
372
|
}
|
|
371
373
|
O(t2) {
|
|
372
374
|
return this._$AA.parentNode.insertBefore(t2, this._$AB);
|
|
@@ -375,31 +377,31 @@ class R {
|
|
|
375
377
|
this._$AH !== t2 && (this._$AR(), this._$AH = this.O(t2));
|
|
376
378
|
}
|
|
377
379
|
_(t2) {
|
|
378
|
-
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(r$
|
|
380
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(r$2.createTextNode(t2)), this._$AH = t2;
|
|
379
381
|
}
|
|
380
382
|
$(t2) {
|
|
381
|
-
const { values:
|
|
382
|
-
if (this._$AH?._$AD === e2) this._$AH.p(
|
|
383
|
+
const { values: i3, _$litType$: s2 } = t2, e2 = "number" == typeof s2 ? this._$AC(t2) : (void 0 === s2.el && (s2.el = N.createElement(P(s2.h, s2.h[0]), this.options)), s2);
|
|
384
|
+
if (this._$AH?._$AD === e2) this._$AH.p(i3);
|
|
383
385
|
else {
|
|
384
386
|
const t3 = new M(e2, this), s3 = t3.u(this.options);
|
|
385
|
-
t3.p(
|
|
387
|
+
t3.p(i3), this.T(s3), this._$AH = t3;
|
|
386
388
|
}
|
|
387
389
|
}
|
|
388
390
|
_$AC(t2) {
|
|
389
|
-
let
|
|
390
|
-
return void 0 ===
|
|
391
|
+
let i3 = A.get(t2.strings);
|
|
392
|
+
return void 0 === i3 && A.set(t2.strings, i3 = new N(t2)), i3;
|
|
391
393
|
}
|
|
392
394
|
k(t2) {
|
|
393
395
|
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
394
|
-
const
|
|
396
|
+
const i3 = this._$AH;
|
|
395
397
|
let s2, e2 = 0;
|
|
396
|
-
for (const h2 of t2) e2 ===
|
|
397
|
-
e2 <
|
|
398
|
+
for (const h2 of t2) e2 === i3.length ? i3.push(s2 = new R(this.O(l()), this.O(l()), this, this.options)) : s2 = i3[e2], s2._$AI(h2), e2++;
|
|
399
|
+
e2 < i3.length && (this._$AR(s2 && s2._$AB.nextSibling, e2), i3.length = e2);
|
|
398
400
|
}
|
|
399
|
-
_$AR(t2 = this._$AA.nextSibling,
|
|
400
|
-
for (this._$AP?.(false, true,
|
|
401
|
-
const
|
|
402
|
-
t2.remove(), t2 =
|
|
401
|
+
_$AR(t2 = this._$AA.nextSibling, i3) {
|
|
402
|
+
for (this._$AP?.(false, true, i3); t2 && t2 !== this._$AB; ) {
|
|
403
|
+
const i4 = t2.nextSibling;
|
|
404
|
+
t2.remove(), t2 = i4;
|
|
403
405
|
}
|
|
404
406
|
}
|
|
405
407
|
setConnected(t2) {
|
|
@@ -413,17 +415,17 @@ class k {
|
|
|
413
415
|
get _$AU() {
|
|
414
416
|
return this._$AM._$AU;
|
|
415
417
|
}
|
|
416
|
-
constructor(t2,
|
|
417
|
-
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t2, this.name =
|
|
418
|
+
constructor(t2, i3, s2, e2, h2) {
|
|
419
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t2, this.name = i3, this._$AM = e2, this.options = h2, s2.length > 2 || "" !== s2[0] || "" !== s2[1] ? (this._$AH = Array(s2.length - 1).fill(new String()), this.strings = s2) : this._$AH = E;
|
|
418
420
|
}
|
|
419
|
-
_$AI(t2,
|
|
421
|
+
_$AI(t2, i3 = this, s2, e2) {
|
|
420
422
|
const h2 = this.strings;
|
|
421
423
|
let o2 = false;
|
|
422
|
-
if (void 0 === h2) t2 = S(this, t2,
|
|
424
|
+
if (void 0 === h2) t2 = S(this, t2, i3, 0), o2 = !c(t2) || t2 !== this._$AH && t2 !== T, o2 && (this._$AH = t2);
|
|
423
425
|
else {
|
|
424
426
|
const e3 = t2;
|
|
425
|
-
let n3,
|
|
426
|
-
for (t2 = h2[0], n3 = 0; n3 < h2.length - 1; n3++)
|
|
427
|
+
let n3, r2;
|
|
428
|
+
for (t2 = h2[0], n3 = 0; n3 < h2.length - 1; n3++) r2 = S(this, e3[s2 + n3], i3, n3), r2 === T && (r2 = this._$AH[n3]), o2 ||= !c(r2) || r2 !== this._$AH[n3], r2 === E ? t2 = E : t2 !== E && (t2 += (r2 ?? "") + h2[n3 + 1]), this._$AH[n3] = r2;
|
|
427
429
|
}
|
|
428
430
|
o2 && !e2 && this.j(t2);
|
|
429
431
|
}
|
|
@@ -448,11 +450,11 @@ class I extends k {
|
|
|
448
450
|
}
|
|
449
451
|
}
|
|
450
452
|
class L extends k {
|
|
451
|
-
constructor(t2,
|
|
452
|
-
super(t2,
|
|
453
|
+
constructor(t2, i3, s2, e2, h2) {
|
|
454
|
+
super(t2, i3, s2, e2, h2), this.type = 5;
|
|
453
455
|
}
|
|
454
|
-
_$AI(t2,
|
|
455
|
-
if ((t2 = S(this, t2,
|
|
456
|
+
_$AI(t2, i3 = this) {
|
|
457
|
+
if ((t2 = S(this, t2, i3, 0) ?? E) === T) return;
|
|
456
458
|
const s2 = this._$AH, e2 = t2 === E && s2 !== E || t2.capture !== s2.capture || t2.once !== s2.once || t2.passive !== s2.passive, h2 = t2 !== E && (s2 === E || e2);
|
|
457
459
|
e2 && this.element.removeEventListener(this.name, this, s2), h2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
|
458
460
|
}
|
|
@@ -461,8 +463,8 @@ class L extends k {
|
|
|
461
463
|
}
|
|
462
464
|
}
|
|
463
465
|
class z {
|
|
464
|
-
constructor(t2,
|
|
465
|
-
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM =
|
|
466
|
+
constructor(t2, i3, s2) {
|
|
467
|
+
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = s2;
|
|
466
468
|
}
|
|
467
469
|
get _$AU() {
|
|
468
470
|
return this._$AM._$AU;
|
|
@@ -472,13 +474,13 @@ class z {
|
|
|
472
474
|
}
|
|
473
475
|
}
|
|
474
476
|
const j = t$3.litHtmlPolyfillSupport;
|
|
475
|
-
j?.(N, R), (t$3.litHtmlVersions ??= []).push("3.
|
|
476
|
-
const B = (t2,
|
|
477
|
-
const e2 = s2?.renderBefore ??
|
|
477
|
+
j?.(N, R), (t$3.litHtmlVersions ??= []).push("3.3.0");
|
|
478
|
+
const B = (t2, i3, s2) => {
|
|
479
|
+
const e2 = s2?.renderBefore ?? i3;
|
|
478
480
|
let h2 = e2._$litPart$;
|
|
479
481
|
if (void 0 === h2) {
|
|
480
482
|
const t3 = s2?.renderBefore ?? null;
|
|
481
|
-
e2._$litPart$ = h2 = new R(
|
|
483
|
+
e2._$litPart$ = h2 = new R(i3.insertBefore(l(), t3), t3, void 0, s2 ?? {});
|
|
482
484
|
}
|
|
483
485
|
return h2._$AI(t2), h2;
|
|
484
486
|
};
|
|
@@ -487,7 +489,8 @@ const B = (t2, i2, s2) => {
|
|
|
487
489
|
* Copyright 2017 Google LLC
|
|
488
490
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
489
491
|
*/
|
|
490
|
-
|
|
492
|
+
const s = globalThis;
|
|
493
|
+
let i$1 = class i extends y$1 {
|
|
491
494
|
constructor() {
|
|
492
495
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
493
496
|
}
|
|
@@ -496,8 +499,8 @@ let r$2 = class r extends b {
|
|
|
496
499
|
return this.renderOptions.renderBefore ??= t2.firstChild, t2;
|
|
497
500
|
}
|
|
498
501
|
update(t2) {
|
|
499
|
-
const
|
|
500
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = B(
|
|
502
|
+
const r2 = this.render();
|
|
503
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = B(r2, this.renderRoot, this.renderOptions);
|
|
501
504
|
}
|
|
502
505
|
connectedCallback() {
|
|
503
506
|
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
@@ -509,10 +512,10 @@ let r$2 = class r extends b {
|
|
|
509
512
|
return T;
|
|
510
513
|
}
|
|
511
514
|
};
|
|
512
|
-
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
(
|
|
515
|
+
i$1._$litElement$ = true, i$1["finalized"] = true, s.litElementHydrateSupport?.({ LitElement: i$1 });
|
|
516
|
+
const o$3 = s.litElementPolyfillSupport;
|
|
517
|
+
o$3?.({ LitElement: i$1 });
|
|
518
|
+
(s.litElementVersions ??= []).push("4.2.0");
|
|
516
519
|
/**
|
|
517
520
|
* @license
|
|
518
521
|
* Copyright 2017 Google LLC
|
|
@@ -528,31 +531,31 @@ const t$2 = (t2) => (e2, o2) => {
|
|
|
528
531
|
* Copyright 2017 Google LLC
|
|
529
532
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
530
533
|
*/
|
|
531
|
-
const o$2 = { attribute: true, type: String, converter: u$1, reflect: false, hasChanged: f$1 }, r$1 = (t2 = o$2, e2,
|
|
532
|
-
const { kind: n3, metadata:
|
|
533
|
-
let s2 = globalThis.litPropertyMetadata.get(
|
|
534
|
-
if (void 0 === s2 && globalThis.litPropertyMetadata.set(
|
|
535
|
-
const { name: o2 } =
|
|
536
|
-
return { set(
|
|
534
|
+
const o$2 = { attribute: true, type: String, converter: u$1, reflect: false, hasChanged: f$1 }, r$1 = (t2 = o$2, e2, r2) => {
|
|
535
|
+
const { kind: n3, metadata: i3 } = r2;
|
|
536
|
+
let s2 = globalThis.litPropertyMetadata.get(i3);
|
|
537
|
+
if (void 0 === s2 && globalThis.litPropertyMetadata.set(i3, s2 = /* @__PURE__ */ new Map()), "setter" === n3 && ((t2 = Object.create(t2)).wrapped = true), s2.set(r2.name, t2), "accessor" === n3) {
|
|
538
|
+
const { name: o2 } = r2;
|
|
539
|
+
return { set(r3) {
|
|
537
540
|
const n4 = e2.get.call(this);
|
|
538
|
-
e2.set.call(this,
|
|
541
|
+
e2.set.call(this, r3), this.requestUpdate(o2, n4, t2);
|
|
539
542
|
}, init(e3) {
|
|
540
|
-
return void 0 !== e3 && this.
|
|
543
|
+
return void 0 !== e3 && this.C(o2, void 0, t2, e3), e3;
|
|
541
544
|
} };
|
|
542
545
|
}
|
|
543
546
|
if ("setter" === n3) {
|
|
544
|
-
const { name: o2 } =
|
|
545
|
-
return function(
|
|
547
|
+
const { name: o2 } = r2;
|
|
548
|
+
return function(r3) {
|
|
546
549
|
const n4 = this[o2];
|
|
547
|
-
e2.call(this,
|
|
550
|
+
e2.call(this, r3), this.requestUpdate(o2, n4, t2);
|
|
548
551
|
};
|
|
549
552
|
}
|
|
550
553
|
throw Error("Unsupported decorator location: " + n3);
|
|
551
554
|
};
|
|
552
555
|
function n2(t2) {
|
|
553
556
|
return (e2, o2) => "object" == typeof o2 ? r$1(t2, e2, o2) : ((t3, e3, o3) => {
|
|
554
|
-
const
|
|
555
|
-
return e3.constructor.createProperty(o3,
|
|
557
|
+
const r2 = e3.hasOwnProperty(o3);
|
|
558
|
+
return e3.constructor.createProperty(o3, t3), r2 ? Object.getOwnPropertyDescriptor(e3, o3) : void 0;
|
|
556
559
|
})(t2, e2, o2);
|
|
557
560
|
}
|
|
558
561
|
/**
|
|
@@ -560,8 +563,8 @@ function n2(t2) {
|
|
|
560
563
|
* Copyright 2017 Google LLC
|
|
561
564
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
562
565
|
*/
|
|
563
|
-
function r2
|
|
564
|
-
return n2({ ...
|
|
566
|
+
function r(r2) {
|
|
567
|
+
return n2({ ...r2, state: true, attribute: false });
|
|
565
568
|
}
|
|
566
569
|
/**
|
|
567
570
|
* @license
|
|
@@ -574,8 +577,8 @@ const e$4 = (e2, t2, c2) => (c2.configurable = true, c2.enumerable = true, Refle
|
|
|
574
577
|
* Copyright 2017 Google LLC
|
|
575
578
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
576
579
|
*/
|
|
577
|
-
function e$3(e2,
|
|
578
|
-
return (n3, s2,
|
|
580
|
+
function e$3(e2, r2) {
|
|
581
|
+
return (n3, s2, i3) => {
|
|
579
582
|
const o2 = (t2) => t2.renderRoot?.querySelector(e2) ?? null;
|
|
580
583
|
return e$4(n3, s2, { get() {
|
|
581
584
|
return o2(this);
|
|
@@ -588,14 +591,14 @@ function e$3(e2, r3) {
|
|
|
588
591
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
589
592
|
*/
|
|
590
593
|
const t$1 = { ATTRIBUTE: 1, CHILD: 2 }, e$2 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
|
|
591
|
-
class
|
|
594
|
+
class i2 {
|
|
592
595
|
constructor(t2) {
|
|
593
596
|
}
|
|
594
597
|
get _$AU() {
|
|
595
598
|
return this._$AM._$AU;
|
|
596
599
|
}
|
|
597
|
-
_$AT(t2, e2,
|
|
598
|
-
this._$Ct = t2, this._$AM = e2, this._$Ci =
|
|
600
|
+
_$AT(t2, e2, i3) {
|
|
601
|
+
this._$Ct = t2, this._$AM = e2, this._$Ci = i3;
|
|
599
602
|
}
|
|
600
603
|
_$AS(t2, e2) {
|
|
601
604
|
return this.update(t2, e2);
|
|
@@ -609,24 +612,24 @@ class i {
|
|
|
609
612
|
* Copyright 2018 Google LLC
|
|
610
613
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
611
614
|
*/
|
|
612
|
-
const e$1 = e$2(class extends
|
|
615
|
+
const e$1 = e$2(class extends i2 {
|
|
613
616
|
constructor(t2) {
|
|
614
617
|
if (super(t2), t2.type !== t$1.ATTRIBUTE || "class" !== t2.name || t2.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
615
618
|
}
|
|
616
619
|
render(t2) {
|
|
617
620
|
return " " + Object.keys(t2).filter((s2) => t2[s2]).join(" ") + " ";
|
|
618
621
|
}
|
|
619
|
-
update(s2, [
|
|
622
|
+
update(s2, [i3]) {
|
|
620
623
|
if (void 0 === this.st) {
|
|
621
624
|
this.st = /* @__PURE__ */ new Set(), void 0 !== s2.strings && (this.nt = new Set(s2.strings.join(" ").split(/\s/).filter((t2) => "" !== t2)));
|
|
622
|
-
for (const t2 in
|
|
623
|
-
return this.render(
|
|
625
|
+
for (const t2 in i3) i3[t2] && !this.nt?.has(t2) && this.st.add(t2);
|
|
626
|
+
return this.render(i3);
|
|
624
627
|
}
|
|
625
|
-
const
|
|
626
|
-
for (const t2 of this.st) t2 in
|
|
627
|
-
for (const t2 in
|
|
628
|
-
const s3 = !!
|
|
629
|
-
s3 === this.st.has(t2) || this.nt?.has(t2) || (s3 ? (
|
|
628
|
+
const r2 = s2.element.classList;
|
|
629
|
+
for (const t2 of this.st) t2 in i3 || (r2.remove(t2), this.st.delete(t2));
|
|
630
|
+
for (const t2 in i3) {
|
|
631
|
+
const s3 = !!i3[t2];
|
|
632
|
+
s3 === this.st.has(t2) || this.nt?.has(t2) || (s3 ? (r2.add(t2), this.st.add(t2)) : (r2.remove(t2), this.st.delete(t2)));
|
|
630
633
|
}
|
|
631
634
|
return T;
|
|
632
635
|
}
|
|
@@ -637,6 +640,13 @@ const e$1 = e$2(class extends i {
|
|
|
637
640
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
638
641
|
*/
|
|
639
642
|
const o$1 = (o2) => o2 ?? E;
|
|
643
|
+
function guardedCustomElement(tagName) {
|
|
644
|
+
return (cls) => {
|
|
645
|
+
if (!customElements.get(tagName)) {
|
|
646
|
+
t$2(tagName)(cls);
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
}
|
|
640
650
|
const styles$h = i$4`
|
|
641
651
|
:host {
|
|
642
652
|
--_color-semantic-surface-critical-hover: #b32a23;
|
|
@@ -788,13 +798,13 @@ var __defProp$h = Object.defineProperty;
|
|
|
788
798
|
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
789
799
|
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
790
800
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
791
|
-
for (var
|
|
792
|
-
if (decorator = decorators[
|
|
801
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
802
|
+
if (decorator = decorators[i3])
|
|
793
803
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
794
804
|
if (kind && result) __defProp$h(target, key, result);
|
|
795
805
|
return result;
|
|
796
806
|
};
|
|
797
|
-
let SDSButton = class extends
|
|
807
|
+
let SDSButton = class extends i$1 {
|
|
798
808
|
constructor() {
|
|
799
809
|
super();
|
|
800
810
|
this.type = "button";
|
|
@@ -916,7 +926,7 @@ __decorateClass$h([
|
|
|
916
926
|
n2({ type: String, reflect: true })
|
|
917
927
|
], SDSButton.prototype, "form", 2);
|
|
918
928
|
SDSButton = __decorateClass$h([
|
|
919
|
-
|
|
929
|
+
guardedCustomElement("sds-button")
|
|
920
930
|
], SDSButton);
|
|
921
931
|
const styles$g = i$4`
|
|
922
932
|
:host {
|
|
@@ -1031,13 +1041,13 @@ var __defProp$g = Object.defineProperty;
|
|
|
1031
1041
|
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
1032
1042
|
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
1033
1043
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
1034
|
-
for (var
|
|
1035
|
-
if (decorator = decorators[
|
|
1044
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1045
|
+
if (decorator = decorators[i3])
|
|
1036
1046
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1037
1047
|
if (kind && result) __defProp$g(target, key, result);
|
|
1038
1048
|
return result;
|
|
1039
1049
|
};
|
|
1040
|
-
let SDSCheckbox = class extends
|
|
1050
|
+
let SDSCheckbox = class extends i$1 {
|
|
1041
1051
|
constructor() {
|
|
1042
1052
|
super();
|
|
1043
1053
|
this.checked = false;
|
|
@@ -1050,7 +1060,7 @@ let SDSCheckbox = class extends r$2 {
|
|
|
1050
1060
|
if (!this.disabled) {
|
|
1051
1061
|
const elem = event.target;
|
|
1052
1062
|
this.checked = elem.checked;
|
|
1053
|
-
this.internals.setFormValue(elem.checked ? elem.value :
|
|
1063
|
+
this.internals.setFormValue(elem.checked ? elem.value : null);
|
|
1054
1064
|
this._validate();
|
|
1055
1065
|
this.dispatchEvent(
|
|
1056
1066
|
new CustomEvent("change", {
|
|
@@ -1091,16 +1101,8 @@ let SDSCheckbox = class extends r$2 {
|
|
|
1091
1101
|
super.connectedCallback();
|
|
1092
1102
|
this._initialChecked = this.checked;
|
|
1093
1103
|
this.internals.role = "checkbox";
|
|
1094
|
-
if ("FormDataEvent" in window) {
|
|
1095
|
-
this.internals.form?.addEventListener("formdata", (event) => {
|
|
1096
|
-
if (this.disabled || !this.name || !this.checked) {
|
|
1097
|
-
return;
|
|
1098
|
-
}
|
|
1099
|
-
event.formData.set(this.name, this.value ?? "on");
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
1104
|
if (this.checked) {
|
|
1103
|
-
this.internals.setFormValue(this.value
|
|
1105
|
+
this.internals.setFormValue(this.value ?? "on");
|
|
1104
1106
|
}
|
|
1105
1107
|
}
|
|
1106
1108
|
firstUpdated(_changedProperties) {
|
|
@@ -1115,7 +1117,7 @@ let SDSCheckbox = class extends r$2 {
|
|
|
1115
1117
|
if (this.control) {
|
|
1116
1118
|
this.control.checked = this._initialChecked;
|
|
1117
1119
|
}
|
|
1118
|
-
const resetValue = this.checked
|
|
1120
|
+
const resetValue = this.checked ? this.value ?? "on" : null;
|
|
1119
1121
|
this.internals.setFormValue(resetValue);
|
|
1120
1122
|
this._validate();
|
|
1121
1123
|
}
|
|
@@ -1144,6 +1146,9 @@ let SDSCheckbox = class extends r$2 {
|
|
|
1144
1146
|
this._validate();
|
|
1145
1147
|
}
|
|
1146
1148
|
}
|
|
1149
|
+
get type() {
|
|
1150
|
+
return "checkbox";
|
|
1151
|
+
}
|
|
1147
1152
|
render() {
|
|
1148
1153
|
const checkboxClasses = {
|
|
1149
1154
|
"sds-checkbox": true,
|
|
@@ -1202,7 +1207,7 @@ __decorateClass$g([
|
|
|
1202
1207
|
e$3("#control")
|
|
1203
1208
|
], SDSCheckbox.prototype, "control", 2);
|
|
1204
1209
|
SDSCheckbox = __decorateClass$g([
|
|
1205
|
-
|
|
1210
|
+
guardedCustomElement("sds-checkbox")
|
|
1206
1211
|
], SDSCheckbox);
|
|
1207
1212
|
const styles$f = i$4`
|
|
1208
1213
|
:host {
|
|
@@ -1259,17 +1264,17 @@ const styles$f = i$4`
|
|
|
1259
1264
|
* Copyright 2017 Google LLC
|
|
1260
1265
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1261
1266
|
*/
|
|
1262
|
-
class e extends
|
|
1263
|
-
constructor(
|
|
1264
|
-
if (super(
|
|
1265
|
-
}
|
|
1266
|
-
render(
|
|
1267
|
-
if (
|
|
1268
|
-
if (
|
|
1269
|
-
if ("string" != typeof
|
|
1270
|
-
if (
|
|
1271
|
-
this.it =
|
|
1272
|
-
const s2 = [
|
|
1267
|
+
class e extends i2 {
|
|
1268
|
+
constructor(i3) {
|
|
1269
|
+
if (super(i3), this.it = E, i3.type !== t$1.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
1270
|
+
}
|
|
1271
|
+
render(r2) {
|
|
1272
|
+
if (r2 === E || null == r2) return this._t = void 0, this.it = r2;
|
|
1273
|
+
if (r2 === T) return r2;
|
|
1274
|
+
if ("string" != typeof r2) throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
1275
|
+
if (r2 === this.it) return this._t;
|
|
1276
|
+
this.it = r2;
|
|
1277
|
+
const s2 = [r2];
|
|
1273
1278
|
return s2.raw = s2, this._t = { _$litType$: this.constructor.resultType, strings: s2, values: [] };
|
|
1274
1279
|
}
|
|
1275
1280
|
}
|
|
@@ -1346,13 +1351,13 @@ var __defProp$f = Object.defineProperty;
|
|
|
1346
1351
|
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
1347
1352
|
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
1348
1353
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
1349
|
-
for (var
|
|
1350
|
-
if (decorator = decorators[
|
|
1354
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1355
|
+
if (decorator = decorators[i3])
|
|
1351
1356
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1352
1357
|
if (kind && result) __defProp$f(target, key, result);
|
|
1353
1358
|
return result;
|
|
1354
1359
|
};
|
|
1355
|
-
let SDSIcon = class extends
|
|
1360
|
+
let SDSIcon = class extends i$1 {
|
|
1356
1361
|
constructor() {
|
|
1357
1362
|
super(...arguments);
|
|
1358
1363
|
this.name = "";
|
|
@@ -1416,22 +1421,22 @@ __decorateClass$f([
|
|
|
1416
1421
|
n2({ type: String, reflect: true })
|
|
1417
1422
|
], SDSIcon.prototype, "label", 2);
|
|
1418
1423
|
__decorateClass$f([
|
|
1419
|
-
|
|
1424
|
+
r()
|
|
1420
1425
|
], SDSIcon.prototype, "svg", 2);
|
|
1421
1426
|
SDSIcon = __decorateClass$f([
|
|
1422
|
-
|
|
1427
|
+
guardedCustomElement("sds-icon")
|
|
1423
1428
|
], SDSIcon);
|
|
1424
1429
|
var __defProp$e = Object.defineProperty;
|
|
1425
1430
|
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
1426
1431
|
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
1427
1432
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
1428
|
-
for (var
|
|
1429
|
-
if (decorator = decorators[
|
|
1433
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1434
|
+
if (decorator = decorators[i3])
|
|
1430
1435
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1431
1436
|
if (kind && result) __defProp$e(target, key, result);
|
|
1432
1437
|
return result;
|
|
1433
1438
|
};
|
|
1434
|
-
let SDSCheckboxGroup = class extends
|
|
1439
|
+
let SDSCheckboxGroup = class extends i$1 {
|
|
1435
1440
|
constructor() {
|
|
1436
1441
|
super(...arguments);
|
|
1437
1442
|
this._selectedValues = [];
|
|
@@ -1486,10 +1491,10 @@ __decorateClass$e([
|
|
|
1486
1491
|
n2({ type: String, attribute: "error-message", reflect: true })
|
|
1487
1492
|
], SDSCheckboxGroup.prototype, "errorMessage", 2);
|
|
1488
1493
|
__decorateClass$e([
|
|
1489
|
-
|
|
1494
|
+
r()
|
|
1490
1495
|
], SDSCheckboxGroup.prototype, "_selectedValues", 2);
|
|
1491
1496
|
SDSCheckboxGroup = __decorateClass$e([
|
|
1492
|
-
|
|
1497
|
+
guardedCustomElement("sds-checkbox-group")
|
|
1493
1498
|
], SDSCheckboxGroup);
|
|
1494
1499
|
const styles$d = i$4`
|
|
1495
1500
|
.sds-chip {
|
|
@@ -1509,32 +1514,29 @@ const styles$d = i$4`
|
|
|
1509
1514
|
line-height: 1.25;
|
|
1510
1515
|
text-align: center;
|
|
1511
1516
|
|
|
1512
|
-
user-select:
|
|
1517
|
+
user-select: text;
|
|
1513
1518
|
cursor: pointer;
|
|
1514
1519
|
|
|
1515
|
-
&:has(
|
|
1520
|
+
&:has(:checked) {
|
|
1516
1521
|
background-color: var(--sds-color-semantic-surface-action-default);
|
|
1517
1522
|
border-color: var(--sds-color-semantic-surface-action-default);
|
|
1518
1523
|
color: var(--sds-color-semantic-text-on-action);
|
|
1519
1524
|
}
|
|
1520
1525
|
|
|
1521
|
-
&:has(
|
|
1522
|
-
input[type='checkbox'][disabled],
|
|
1523
|
-
input[type='checkbox']:checked[disabled]
|
|
1524
|
-
) {
|
|
1526
|
+
&:has(input[type='checkbox'][disabled], input[type='checkbox']:checked[disabled]) {
|
|
1525
1527
|
background-color: var(--sds-color-semantic-surface-disabled);
|
|
1526
1528
|
border: 2px solid var(--sds-color-semantic-surface-disabled);
|
|
1527
1529
|
color: var(--sds-color-semantic-text-disabled);
|
|
1528
1530
|
cursor: not-allowed;
|
|
1529
1531
|
}
|
|
1530
1532
|
|
|
1531
|
-
&:hover {
|
|
1533
|
+
&:not(:has([readonly])):hover {
|
|
1532
1534
|
background-color: var(--sds-color-semantic-surface-action-hover);
|
|
1533
1535
|
border-color: var(--sds-color-semantic-surface-action-hover);
|
|
1534
1536
|
color: var(--sds-color-semantic-text-on-action);
|
|
1535
1537
|
}
|
|
1536
1538
|
|
|
1537
|
-
&:active {
|
|
1539
|
+
&:not(:has([readonly])):active {
|
|
1538
1540
|
background-color: var(--sds-color-semantic-surface-action-active);
|
|
1539
1541
|
border: 2px solid var(--sds-color-semantic-surface-action-active);
|
|
1540
1542
|
}
|
|
@@ -1545,6 +1547,10 @@ const styles$d = i$4`
|
|
|
1545
1547
|
outline-offset: 2px;
|
|
1546
1548
|
}
|
|
1547
1549
|
|
|
1550
|
+
&:has([readonly]) {
|
|
1551
|
+
cursor: default;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1548
1554
|
&.sds-chip--small {
|
|
1549
1555
|
font-size: 0.875rem;
|
|
1550
1556
|
line-height: 1.125rem;
|
|
@@ -1569,23 +1575,25 @@ var __defProp$d = Object.defineProperty;
|
|
|
1569
1575
|
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
1570
1576
|
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
1571
1577
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
1572
|
-
for (var
|
|
1573
|
-
if (decorator = decorators[
|
|
1578
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1579
|
+
if (decorator = decorators[i3])
|
|
1574
1580
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1575
1581
|
if (kind && result) __defProp$d(target, key, result);
|
|
1576
1582
|
return result;
|
|
1577
1583
|
};
|
|
1578
|
-
let SDSChip = class extends
|
|
1584
|
+
let SDSChip = class extends i$1 {
|
|
1579
1585
|
constructor() {
|
|
1580
1586
|
super();
|
|
1581
1587
|
this.variant = "selectable";
|
|
1582
1588
|
this.size = "large";
|
|
1583
1589
|
this.checked = false;
|
|
1584
1590
|
this.disabled = false;
|
|
1591
|
+
this.readonly = false;
|
|
1585
1592
|
this._initialChecked = false;
|
|
1586
1593
|
this._toggle = (event) => {
|
|
1587
1594
|
event.preventDefault();
|
|
1588
1595
|
event.stopImmediatePropagation();
|
|
1596
|
+
if (this.disabled || this.readonly) return;
|
|
1589
1597
|
this.checked = !this.checked;
|
|
1590
1598
|
this.internals.setFormValue(this.checked && this.value ? this.value : "");
|
|
1591
1599
|
this.dispatchEvent(
|
|
@@ -1596,6 +1604,7 @@ let SDSChip = class extends r$2 {
|
|
|
1596
1604
|
);
|
|
1597
1605
|
};
|
|
1598
1606
|
this._remove = () => {
|
|
1607
|
+
if (this.disabled || this.readonly) return;
|
|
1599
1608
|
this.dispatchEvent(
|
|
1600
1609
|
new CustomEvent("sds-remove", {
|
|
1601
1610
|
bubbles: true,
|
|
@@ -1633,7 +1642,7 @@ let SDSChip = class extends r$2 {
|
|
|
1633
1642
|
"sds-chip": true,
|
|
1634
1643
|
"sds-chip--small": this.size === "small"
|
|
1635
1644
|
};
|
|
1636
|
-
if (this.variant === "removable") {
|
|
1645
|
+
if (this.variant === "removable" && !this.readonly) {
|
|
1637
1646
|
return x`<button class="${e$1(chipClasses)}" @click=${this._remove}>
|
|
1638
1647
|
<slot></slot>
|
|
1639
1648
|
<sds-icon name="close-material-outlined" size="s"></sds-icon>
|
|
@@ -1647,6 +1656,7 @@ let SDSChip = class extends r$2 {
|
|
|
1647
1656
|
value="${o$1(this.value)}"
|
|
1648
1657
|
?checked="${this.checked}"
|
|
1649
1658
|
?disabled="${this.disabled}"
|
|
1659
|
+
?readonly="${this.readonly}"
|
|
1650
1660
|
/>
|
|
1651
1661
|
<slot></slot>
|
|
1652
1662
|
</label>`;
|
|
@@ -1672,11 +1682,14 @@ __decorateClass$d([
|
|
|
1672
1682
|
__decorateClass$d([
|
|
1673
1683
|
n2({ type: Boolean, reflect: true })
|
|
1674
1684
|
], SDSChip.prototype, "disabled", 2);
|
|
1685
|
+
__decorateClass$d([
|
|
1686
|
+
n2({ type: Boolean, reflect: true })
|
|
1687
|
+
], SDSChip.prototype, "readonly", 2);
|
|
1675
1688
|
__decorateClass$d([
|
|
1676
1689
|
e$3("#control")
|
|
1677
1690
|
], SDSChip.prototype, "control", 2);
|
|
1678
1691
|
SDSChip = __decorateClass$d([
|
|
1679
|
-
|
|
1692
|
+
guardedCustomElement("sds-chip")
|
|
1680
1693
|
], SDSChip);
|
|
1681
1694
|
const styles$c = i$4`
|
|
1682
1695
|
:host {
|
|
@@ -1705,13 +1718,13 @@ var __defProp$c = Object.defineProperty;
|
|
|
1705
1718
|
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
1706
1719
|
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
1707
1720
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
1708
|
-
for (var
|
|
1709
|
-
if (decorator = decorators[
|
|
1721
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1722
|
+
if (decorator = decorators[i3])
|
|
1710
1723
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1711
1724
|
if (kind && result) __defProp$c(target, key, result);
|
|
1712
1725
|
return result;
|
|
1713
1726
|
};
|
|
1714
|
-
let SDSDetail = class extends
|
|
1727
|
+
let SDSDetail = class extends i$1 {
|
|
1715
1728
|
constructor() {
|
|
1716
1729
|
super(...arguments);
|
|
1717
1730
|
this.variation = "text";
|
|
@@ -1731,7 +1744,7 @@ __decorateClass$c([
|
|
|
1731
1744
|
n2({ type: String })
|
|
1732
1745
|
], SDSDetail.prototype, "variation", 2);
|
|
1733
1746
|
SDSDetail = __decorateClass$c([
|
|
1734
|
-
|
|
1747
|
+
guardedCustomElement("sds-detail")
|
|
1735
1748
|
], SDSDetail);
|
|
1736
1749
|
const styles$b = i$4`
|
|
1737
1750
|
:host {
|
|
@@ -1840,13 +1853,13 @@ var __defProp$b = Object.defineProperty;
|
|
|
1840
1853
|
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
1841
1854
|
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
1842
1855
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
1843
|
-
for (var
|
|
1844
|
-
if (decorator = decorators[
|
|
1856
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1857
|
+
if (decorator = decorators[i3])
|
|
1845
1858
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1846
1859
|
if (kind && result) __defProp$b(target, key, result);
|
|
1847
1860
|
return result;
|
|
1848
1861
|
};
|
|
1849
|
-
let SDSHeading = class extends
|
|
1862
|
+
let SDSHeading = class extends i$1 {
|
|
1850
1863
|
constructor() {
|
|
1851
1864
|
super(...arguments);
|
|
1852
1865
|
this.level = "h1";
|
|
@@ -1887,7 +1900,7 @@ __decorateClass$b([
|
|
|
1887
1900
|
n2({ type: String })
|
|
1888
1901
|
], SDSHeading.prototype, "as", 2);
|
|
1889
1902
|
SDSHeading = __decorateClass$b([
|
|
1890
|
-
|
|
1903
|
+
guardedCustomElement("sds-heading")
|
|
1891
1904
|
], SDSHeading);
|
|
1892
1905
|
const styles$a = i$4`
|
|
1893
1906
|
:host {
|
|
@@ -1922,13 +1935,13 @@ var __defProp$a = Object.defineProperty;
|
|
|
1922
1935
|
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
1923
1936
|
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
1924
1937
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
1925
|
-
for (var
|
|
1926
|
-
if (decorator = decorators[
|
|
1938
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1939
|
+
if (decorator = decorators[i3])
|
|
1927
1940
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1928
1941
|
if (kind && result) __defProp$a(target, key, result);
|
|
1929
1942
|
return result;
|
|
1930
1943
|
};
|
|
1931
|
-
let SDSLabel = class extends
|
|
1944
|
+
let SDSLabel = class extends i$1 {
|
|
1932
1945
|
constructor() {
|
|
1933
1946
|
super(...arguments);
|
|
1934
1947
|
this.size = "l";
|
|
@@ -1952,7 +1965,7 @@ __decorateClass$a([
|
|
|
1952
1965
|
n2({ type: String })
|
|
1953
1966
|
], SDSLabel.prototype, "for", 2);
|
|
1954
1967
|
SDSLabel = __decorateClass$a([
|
|
1955
|
-
|
|
1968
|
+
guardedCustomElement("sds-label")
|
|
1956
1969
|
], SDSLabel);
|
|
1957
1970
|
const styles$9 = i$4`
|
|
1958
1971
|
:host {
|
|
@@ -2030,13 +2043,13 @@ var __defProp$9 = Object.defineProperty;
|
|
|
2030
2043
|
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
2031
2044
|
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
2032
2045
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
2033
|
-
for (var
|
|
2034
|
-
if (decorator = decorators[
|
|
2046
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2047
|
+
if (decorator = decorators[i3])
|
|
2035
2048
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2036
2049
|
if (kind && result) __defProp$9(target, key, result);
|
|
2037
2050
|
return result;
|
|
2038
2051
|
};
|
|
2039
|
-
let SDSLink = class extends
|
|
2052
|
+
let SDSLink = class extends i$1 {
|
|
2040
2053
|
constructor() {
|
|
2041
2054
|
super(...arguments);
|
|
2042
2055
|
this.size = "m";
|
|
@@ -2065,7 +2078,7 @@ __decorateClass$9([
|
|
|
2065
2078
|
n2({ type: String })
|
|
2066
2079
|
], SDSLink.prototype, "target", 2);
|
|
2067
2080
|
SDSLink = __decorateClass$9([
|
|
2068
|
-
|
|
2081
|
+
guardedCustomElement("sds-link")
|
|
2069
2082
|
], SDSLink);
|
|
2070
2083
|
const styles$8 = i$4`
|
|
2071
2084
|
:host {
|
|
@@ -2108,13 +2121,13 @@ var __defProp$8 = Object.defineProperty;
|
|
|
2108
2121
|
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
2109
2122
|
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
2110
2123
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
2111
|
-
for (var
|
|
2112
|
-
if (decorator = decorators[
|
|
2124
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2125
|
+
if (decorator = decorators[i3])
|
|
2113
2126
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2114
2127
|
if (kind && result) __defProp$8(target, key, result);
|
|
2115
2128
|
return result;
|
|
2116
2129
|
};
|
|
2117
|
-
let SDSLoader = class extends
|
|
2130
|
+
let SDSLoader = class extends i$1 {
|
|
2118
2131
|
constructor() {
|
|
2119
2132
|
super(...arguments);
|
|
2120
2133
|
this.size = "large";
|
|
@@ -2137,7 +2150,7 @@ __decorateClass$8([
|
|
|
2137
2150
|
n2({ type: String, reflect: true })
|
|
2138
2151
|
], SDSLoader.prototype, "color", 2);
|
|
2139
2152
|
SDSLoader = __decorateClass$8([
|
|
2140
|
-
|
|
2153
|
+
guardedCustomElement("sds-loader")
|
|
2141
2154
|
], SDSLoader);
|
|
2142
2155
|
const styles$7 = i$4`
|
|
2143
2156
|
:host {
|
|
@@ -2291,13 +2304,13 @@ var __defProp$7 = Object.defineProperty;
|
|
|
2291
2304
|
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
2292
2305
|
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
2293
2306
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
2294
|
-
for (var
|
|
2295
|
-
if (decorator = decorators[
|
|
2307
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2308
|
+
if (decorator = decorators[i3])
|
|
2296
2309
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2297
2310
|
if (kind && result) __defProp$7(target, key, result);
|
|
2298
2311
|
return result;
|
|
2299
2312
|
};
|
|
2300
|
-
let SDSNavCard = class extends
|
|
2313
|
+
let SDSNavCard = class extends i$1 {
|
|
2301
2314
|
constructor() {
|
|
2302
2315
|
super(...arguments);
|
|
2303
2316
|
this.size = "large";
|
|
@@ -2374,13 +2387,13 @@ __decorateClass$7([
|
|
|
2374
2387
|
n2({ type: String, reflect: true })
|
|
2375
2388
|
], SDSNavCard.prototype, "link", 2);
|
|
2376
2389
|
__decorateClass$7([
|
|
2377
|
-
|
|
2390
|
+
r()
|
|
2378
2391
|
], SDSNavCard.prototype, "hasIcon", 2);
|
|
2379
2392
|
__decorateClass$7([
|
|
2380
2393
|
e$3("slot")
|
|
2381
2394
|
], SDSNavCard.prototype, "iconSlot", 2);
|
|
2382
2395
|
SDSNavCard = __decorateClass$7([
|
|
2383
|
-
|
|
2396
|
+
guardedCustomElement("sds-nav-card")
|
|
2384
2397
|
], SDSNavCard);
|
|
2385
2398
|
const styles$6 = i$4`
|
|
2386
2399
|
:host {
|
|
@@ -2544,8 +2557,8 @@ var __defProp$6 = Object.defineProperty;
|
|
|
2544
2557
|
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
2545
2558
|
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
2546
2559
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
2547
|
-
for (var
|
|
2548
|
-
if (decorator = decorators[
|
|
2560
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2561
|
+
if (decorator = decorators[i3])
|
|
2549
2562
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2550
2563
|
if (kind && result) __defProp$6(target, key, result);
|
|
2551
2564
|
return result;
|
|
@@ -2557,7 +2570,7 @@ const notificationIcons = {
|
|
|
2557
2570
|
warning: "warning-material-filled",
|
|
2558
2571
|
critical: "dangerous-material-filled"
|
|
2559
2572
|
};
|
|
2560
|
-
let SDSNotification = class extends
|
|
2573
|
+
let SDSNotification = class extends i$1 {
|
|
2561
2574
|
constructor() {
|
|
2562
2575
|
super(...arguments);
|
|
2563
2576
|
this.variant = "info";
|
|
@@ -2603,7 +2616,7 @@ __decorateClass$6([
|
|
|
2603
2616
|
n2({ type: String, attribute: "removable-label", reflect: true })
|
|
2604
2617
|
], SDSNotification.prototype, "removableLabel", 2);
|
|
2605
2618
|
SDSNotification = __decorateClass$6([
|
|
2606
|
-
|
|
2619
|
+
guardedCustomElement("sds-notification")
|
|
2607
2620
|
], SDSNotification);
|
|
2608
2621
|
const styles$5 = i$4`
|
|
2609
2622
|
:host {
|
|
@@ -2644,13 +2657,13 @@ var __defProp$5 = Object.defineProperty;
|
|
|
2644
2657
|
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
2645
2658
|
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
2646
2659
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
2647
|
-
for (var
|
|
2648
|
-
if (decorator = decorators[
|
|
2660
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2661
|
+
if (decorator = decorators[i3])
|
|
2649
2662
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2650
2663
|
if (kind && result) __defProp$5(target, key, result);
|
|
2651
2664
|
return result;
|
|
2652
2665
|
};
|
|
2653
|
-
let SDSParagraph = class extends
|
|
2666
|
+
let SDSParagraph = class extends i$1 {
|
|
2654
2667
|
constructor() {
|
|
2655
2668
|
super(...arguments);
|
|
2656
2669
|
this.size = "xl";
|
|
@@ -2671,7 +2684,7 @@ __decorateClass$5([
|
|
|
2671
2684
|
n2({ type: String })
|
|
2672
2685
|
], SDSParagraph.prototype, "size", 2);
|
|
2673
2686
|
SDSParagraph = __decorateClass$5([
|
|
2674
|
-
|
|
2687
|
+
guardedCustomElement("sds-paragraph")
|
|
2675
2688
|
], SDSParagraph);
|
|
2676
2689
|
const styles$4 = i$4`
|
|
2677
2690
|
:host {
|
|
@@ -2682,7 +2695,7 @@ const styles$4 = i$4`
|
|
|
2682
2695
|
align-items: flex-start;
|
|
2683
2696
|
cursor: pointer;
|
|
2684
2697
|
color: var(--sds-color-semantic-text-default);
|
|
2685
|
-
display:
|
|
2698
|
+
display: flex;
|
|
2686
2699
|
font-family: var(--sds-typography-font-family);
|
|
2687
2700
|
font-size: 1rem;
|
|
2688
2701
|
font-weight: 400;
|
|
@@ -2785,13 +2798,13 @@ var __defProp$4 = Object.defineProperty;
|
|
|
2785
2798
|
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
2786
2799
|
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
2787
2800
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
2788
|
-
for (var
|
|
2789
|
-
if (decorator = decorators[
|
|
2801
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2802
|
+
if (decorator = decorators[i3])
|
|
2790
2803
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2791
2804
|
if (kind && result) __defProp$4(target, key, result);
|
|
2792
2805
|
return result;
|
|
2793
2806
|
};
|
|
2794
|
-
let SDSRadio = class extends
|
|
2807
|
+
let SDSRadio = class extends i$1 {
|
|
2795
2808
|
constructor() {
|
|
2796
2809
|
super();
|
|
2797
2810
|
this.disabled = false;
|
|
@@ -2845,6 +2858,12 @@ let SDSRadio = class extends r$2 {
|
|
|
2845
2858
|
event.stopImmediatePropagation();
|
|
2846
2859
|
this.dispatchEvent(new CustomEvent("blur", { bubbles: true, composed: true }));
|
|
2847
2860
|
};
|
|
2861
|
+
this._handleClick = (event) => {
|
|
2862
|
+
event.stopImmediatePropagation();
|
|
2863
|
+
if (event.currentTarget === event.target && !this.disabled) {
|
|
2864
|
+
this.shadowRoot?.querySelector("input")?.click();
|
|
2865
|
+
}
|
|
2866
|
+
};
|
|
2848
2867
|
this.internals = this.attachInternals();
|
|
2849
2868
|
this.attachShadow({ mode: "open", delegatesFocus: true });
|
|
2850
2869
|
}
|
|
@@ -2895,7 +2914,7 @@ let SDSRadio = class extends r$2 {
|
|
|
2895
2914
|
formResetCallback() {
|
|
2896
2915
|
this.checked = this._initialChecked;
|
|
2897
2916
|
this.control.checked = this._initialChecked;
|
|
2898
|
-
this.internals.setFormValue(this.checked ? this.value ?? "on" :
|
|
2917
|
+
this.internals.setFormValue(this.checked ? this.value ?? "on" : null);
|
|
2899
2918
|
this._updateGroupValidation();
|
|
2900
2919
|
}
|
|
2901
2920
|
updated(changedProperties) {
|
|
@@ -2932,7 +2951,7 @@ let SDSRadio = class extends r$2 {
|
|
|
2932
2951
|
return this.internals.form;
|
|
2933
2952
|
}
|
|
2934
2953
|
get type() {
|
|
2935
|
-
return
|
|
2954
|
+
return "radio";
|
|
2936
2955
|
}
|
|
2937
2956
|
get validity() {
|
|
2938
2957
|
return this.internals.validity;
|
|
@@ -2975,7 +2994,7 @@ let SDSRadio = class extends r$2 {
|
|
|
2975
2994
|
"sds-radio__input--error": Boolean(this.error)
|
|
2976
2995
|
};
|
|
2977
2996
|
return x`
|
|
2978
|
-
<div class="${e$1(radioClasses)}">
|
|
2997
|
+
<div class="${e$1(radioClasses)}" @click="${this._handleClick}">
|
|
2979
2998
|
<label class="sds-radio__label">
|
|
2980
2999
|
<input
|
|
2981
3000
|
id="control"
|
|
@@ -3026,7 +3045,7 @@ __decorateClass$4([
|
|
|
3026
3045
|
e$3("#control")
|
|
3027
3046
|
], SDSRadio.prototype, "control", 2);
|
|
3028
3047
|
SDSRadio = __decorateClass$4([
|
|
3029
|
-
|
|
3048
|
+
guardedCustomElement("sds-radio")
|
|
3030
3049
|
], SDSRadio);
|
|
3031
3050
|
const styles$3 = i$4`
|
|
3032
3051
|
.sds-radio-group {
|
|
@@ -3077,13 +3096,13 @@ var __defProp$3 = Object.defineProperty;
|
|
|
3077
3096
|
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
3078
3097
|
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
3079
3098
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
3080
|
-
for (var
|
|
3081
|
-
if (decorator = decorators[
|
|
3099
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3100
|
+
if (decorator = decorators[i3])
|
|
3082
3101
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3083
3102
|
if (kind && result) __defProp$3(target, key, result);
|
|
3084
3103
|
return result;
|
|
3085
3104
|
};
|
|
3086
|
-
let SDSRadioGroup = class extends
|
|
3105
|
+
let SDSRadioGroup = class extends i$1 {
|
|
3087
3106
|
constructor() {
|
|
3088
3107
|
super(...arguments);
|
|
3089
3108
|
this._selectedValue = null;
|
|
@@ -3134,10 +3153,10 @@ __decorateClass$3([
|
|
|
3134
3153
|
n2({ type: String, attribute: "error-message" })
|
|
3135
3154
|
], SDSRadioGroup.prototype, "errorMessage", 2);
|
|
3136
3155
|
__decorateClass$3([
|
|
3137
|
-
|
|
3156
|
+
r()
|
|
3138
3157
|
], SDSRadioGroup.prototype, "_selectedValue", 2);
|
|
3139
3158
|
SDSRadioGroup = __decorateClass$3([
|
|
3140
|
-
|
|
3159
|
+
guardedCustomElement("sds-radio-group")
|
|
3141
3160
|
], SDSRadioGroup);
|
|
3142
3161
|
const styles$2 = i$4`
|
|
3143
3162
|
:host {
|
|
@@ -3266,13 +3285,13 @@ var __defProp$2 = Object.defineProperty;
|
|
|
3266
3285
|
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
3267
3286
|
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
3268
3287
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
3269
|
-
for (var
|
|
3270
|
-
if (decorator = decorators[
|
|
3288
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3289
|
+
if (decorator = decorators[i3])
|
|
3271
3290
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3272
3291
|
if (kind && result) __defProp$2(target, key, result);
|
|
3273
3292
|
return result;
|
|
3274
3293
|
};
|
|
3275
|
-
let SDSSwitch = class extends
|
|
3294
|
+
let SDSSwitch = class extends i$1 {
|
|
3276
3295
|
constructor() {
|
|
3277
3296
|
super();
|
|
3278
3297
|
this.disabled = false;
|
|
@@ -3396,7 +3415,7 @@ __decorateClass$2([
|
|
|
3396
3415
|
e$3("#control")
|
|
3397
3416
|
], SDSSwitch.prototype, "control", 2);
|
|
3398
3417
|
SDSSwitch = __decorateClass$2([
|
|
3399
|
-
|
|
3418
|
+
guardedCustomElement("sds-switch")
|
|
3400
3419
|
], SDSSwitch);
|
|
3401
3420
|
const styles$1 = i$4`
|
|
3402
3421
|
:host {
|
|
@@ -3431,13 +3450,13 @@ var __defProp$1 = Object.defineProperty;
|
|
|
3431
3450
|
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
3432
3451
|
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
3433
3452
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
3434
|
-
for (var
|
|
3435
|
-
if (decorator = decorators[
|
|
3453
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3454
|
+
if (decorator = decorators[i3])
|
|
3436
3455
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3437
3456
|
if (kind && result) __defProp$1(target, key, result);
|
|
3438
3457
|
return result;
|
|
3439
3458
|
};
|
|
3440
|
-
let SDSText = class extends
|
|
3459
|
+
let SDSText = class extends i$1 {
|
|
3441
3460
|
constructor() {
|
|
3442
3461
|
super(...arguments);
|
|
3443
3462
|
this.size = "l";
|
|
@@ -3458,7 +3477,7 @@ __decorateClass$1([
|
|
|
3458
3477
|
n2({ type: String })
|
|
3459
3478
|
], SDSText.prototype, "size", 2);
|
|
3460
3479
|
SDSText = __decorateClass$1([
|
|
3461
|
-
|
|
3480
|
+
guardedCustomElement("sds-text")
|
|
3462
3481
|
], SDSText);
|
|
3463
3482
|
const styles = i$4`
|
|
3464
3483
|
:host {
|
|
@@ -3578,13 +3597,13 @@ var __defProp = Object.defineProperty;
|
|
|
3578
3597
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3579
3598
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
3580
3599
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
3581
|
-
for (var
|
|
3582
|
-
if (decorator = decorators[
|
|
3600
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3601
|
+
if (decorator = decorators[i3])
|
|
3583
3602
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3584
3603
|
if (kind && result) __defProp(target, key, result);
|
|
3585
3604
|
return result;
|
|
3586
3605
|
};
|
|
3587
|
-
let SDSTextField = class extends
|
|
3606
|
+
let SDSTextField = class extends i$1 {
|
|
3588
3607
|
constructor() {
|
|
3589
3608
|
super();
|
|
3590
3609
|
this.type = "text";
|
|
@@ -3777,13 +3796,13 @@ __decorateClass([
|
|
|
3777
3796
|
n2({ type: Number, reflect: true })
|
|
3778
3797
|
], SDSTextField.prototype, "maxlength", 2);
|
|
3779
3798
|
__decorateClass([
|
|
3780
|
-
|
|
3799
|
+
r()
|
|
3781
3800
|
], SDSTextField.prototype, "hasIcon", 2);
|
|
3782
3801
|
__decorateClass([
|
|
3783
3802
|
e$3("#sds-textfield")
|
|
3784
3803
|
], SDSTextField.prototype, "control", 2);
|
|
3785
3804
|
SDSTextField = __decorateClass([
|
|
3786
|
-
|
|
3805
|
+
guardedCustomElement("sds-textfield")
|
|
3787
3806
|
], SDSTextField);
|
|
3788
3807
|
export {
|
|
3789
3808
|
SDSButton,
|