@ucalgary-design-system/all-components 1.0.1
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/README.md +68 -0
- package/bundle/ArrowDown-Cl_pe6x-.js +7 -0
- package/bundle/ArrowLeft-D_pb7-h_.js +7 -0
- package/bundle/ArrowRight-0rOUWttV.js +7 -0
- package/bundle/ArrowUp-Kh8KmpaI.js +7 -0
- package/bundle/ArrowUpDown-SqD4IUq6.js +7 -0
- package/bundle/Attachment-DMa7gLVG.js +7 -0
- package/bundle/Camera-BisfqTvi.js +7 -0
- package/bundle/Chat-DQxghIy_.js +10 -0
- package/bundle/Checkmark-BKXPef9h.js +7 -0
- package/bundle/CheckmarkCircle-ChmWwela.js +8 -0
- package/bundle/CheckmarkCircleFilled-Cqky64AP.js +7 -0
- package/bundle/ChevronDown-CkkPhuqR.js +7 -0
- package/bundle/ChevronDownCircle-Bzjl-oG1.js +8 -0
- package/bundle/ChevronDownCircleFilled-BZZIQ64Y.js +7 -0
- package/bundle/ChevronLeft-wuwMWp0P.js +7 -0
- package/bundle/ChevronLeftCircle-C5GskojN.js +8 -0
- package/bundle/ChevronLeftCircleFilled-Fx_qs9nb.js +7 -0
- package/bundle/ChevronRight-PCxxo-vc.js +7 -0
- package/bundle/ChevronRightCircle-Dkk7XKGY.js +8 -0
- package/bundle/ChevronRightCircleFilled-DNCABv_Q.js +7 -0
- package/bundle/ChevronUp-CjSX0sjw.js +7 -0
- package/bundle/ChevronUpCircle-DRUN_nTK.js +8 -0
- package/bundle/ChevronUpCircleFilled-DehyXbZK.js +7 -0
- package/bundle/ChevronsDown-Lh2I5g0q.js +8 -0
- package/bundle/ChevronsLeft-Dfl7AHgm.js +8 -0
- package/bundle/ChevronsRight-BN_IZIoy.js +8 -0
- package/bundle/ChevronsUp-BfPLVHMy.js +8 -0
- package/bundle/Clock-CSuR6yaZ.js +7 -0
- package/bundle/Close-Q4saba4i.js +7 -0
- package/bundle/CloseCircle-CvQ3NuZa.js +8 -0
- package/bundle/CloseCircleFilled-D2iZDSfq.js +7 -0
- package/bundle/CloseOctagon-DMLRi0q5.js +8 -0
- package/bundle/CloseOctagonFilled-CMwoRq8j.js +7 -0
- package/bundle/CloudArrowUp-C2uwNhcc.js +9 -0
- package/bundle/Code-ohqcUUQN.js +8 -0
- package/bundle/Copy-CpvqWx-k.js +8 -0
- package/bundle/Dot-Cumkgd-m.js +6 -0
- package/bundle/Download-BJ_DfleZ.js +8 -0
- package/bundle/Ellipsis-CpY1HejQ.js +7 -0
- package/bundle/EllipsisVertical-CEEYMsqG.js +7 -0
- package/bundle/ExclamationMark-exzrOBwL.js +8 -0
- package/bundle/ExternalLink-eS9P88AV.js +9 -0
- package/bundle/Eye-w9TfhO68.js +7 -0
- package/bundle/EyeOff-DUEm4ukn.js +7 -0
- package/bundle/File-Cybg1CXH.js +8 -0
- package/bundle/FileInput-1n1FWyo-.js +7 -0
- package/bundle/Filter-D9y9ugj2.js +12 -0
- package/bundle/Folder-CU8qYUHQ.js +7 -0
- package/bundle/GridView-BPdfFYj_.js +10 -0
- package/bundle/Home-ChwjHVJb.js +7 -0
- package/bundle/Image-ChylX7xd.js +9 -0
- package/bundle/Link-BKFFnXyT.js +8 -0
- package/bundle/ListView-U-9qAnWr.js +7 -0
- package/bundle/Lock-Bwz5_UjA.js +8 -0
- package/bundle/LogIn-U5Bnfjit.js +7 -0
- package/bundle/LogOut-CX1os0_t.js +9 -0
- package/bundle/Mail-B2VEFWPt.js +7 -0
- package/bundle/Map-D5XWb3YY.js +8 -0
- package/bundle/Megaphone-Do5-_w2j.js +8 -0
- package/bundle/Menu-Brh_TbFf.js +9 -0
- package/bundle/Minus-CueXUCgb.js +7 -0
- package/bundle/MinusCircle-DUmUcGyz.js +8 -0
- package/bundle/MinusCircleFilled-Cq7IrW21.js +7 -0
- package/bundle/Mobile-D7KMmpMV.js +8 -0
- package/bundle/Move-CX01BEbW.js +12 -0
- package/bundle/Notification-Ds-KwATs.js +8 -0
- package/bundle/Play-nTzXnaQP.js +7 -0
- package/bundle/Plus-Dh_kC216.js +7 -0
- package/bundle/PlusCircle-CdRf8LPK.js +14 -0
- package/bundle/PlusCircleFilled-DfOMIUx7.js +7 -0
- package/bundle/QuestionMark-DOiTgLQi.js +9 -0
- package/bundle/QuestionMarkFilled-BBfYnj6K.js +7 -0
- package/bundle/Reload-_znxvsCW.js +8 -0
- package/bundle/Search-BFX6nBPy.js +7 -0
- package/bundle/Send-kLNJhN0M.js +7 -0
- package/bundle/Settings-Dx5Wxwg6.js +6 -0
- package/bundle/Shield-B3tfbLxv.js +7 -0
- package/bundle/ShoppingCart-DeZy9s4R.js +8 -0
- package/bundle/Shuffle-DPJBz-Nj.js +11 -0
- package/bundle/Sparkles-By12VrmM.js +7 -0
- package/bundle/Split-ByvhCugq.js +10 -0
- package/bundle/ThumbUp-BqCiXb5D.js +7 -0
- package/bundle/TrashCan-B1y4NnTj.js +9 -0
- package/bundle/Upload-DXqVc3Ix.js +7 -0
- package/bundle/UserProfile-DXmBd5b6.js +7 -0
- package/bundle/Warning-CE3ENqy1.js +9 -0
- package/bundle/WarningFilled-B3b0eySj.js +7 -0
- package/bundle/WarningOctagon-DPF5eWBs.js +9 -0
- package/bundle/WarningOctagonFilled-km4EmkS4.js +7 -0
- package/bundle/WarningTriangle-CKnOc38N.js +9 -0
- package/bundle/WarningTriangleFilled-CbuoHfN_.js +7 -0
- package/bundle/ZoomIn-BT-hX4R6.js +8 -0
- package/bundle/ZoomOut-B6ILbkP8.js +8 -0
- package/bundle/all-components.css +1 -0
- package/bundle/index.js +1909 -0
- package/index.js +10 -0
- package/package.json +29 -0
package/bundle/index.js
ADDED
|
@@ -0,0 +1,1909 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const ie = globalThis, ye = ie.ShadowRoot && (ie.ShadyCSS === void 0 || ie.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ge = Symbol(), Ce = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let Ne = class {
|
|
8
|
+
constructor(t, r, i) {
|
|
9
|
+
if (this._$cssResult$ = !0, i !== ge) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
|
+
this.cssText = t, this.t = r;
|
|
11
|
+
}
|
|
12
|
+
get styleSheet() {
|
|
13
|
+
let t = this.o;
|
|
14
|
+
const r = this.t;
|
|
15
|
+
if (ye && t === void 0) {
|
|
16
|
+
const i = r !== void 0 && r.length === 1;
|
|
17
|
+
i && (t = Ce.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Ce.set(r, t));
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
}
|
|
21
|
+
toString() {
|
|
22
|
+
return this.cssText;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const w = (e) => new Ne(typeof e == "string" ? e : e + "", void 0, ge), ce = (e, ...t) => {
|
|
26
|
+
const r = e.length === 1 ? e[0] : t.reduce((i, o, s) => i + ((n) => {
|
|
27
|
+
if (n._$cssResult$ === !0) return n.cssText;
|
|
28
|
+
if (typeof n == "number") return n;
|
|
29
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
+
})(o) + e[s + 1], e[0]);
|
|
31
|
+
return new Ne(r, e, ge);
|
|
32
|
+
}, Ze = (e, t) => {
|
|
33
|
+
if (ye) e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
|
|
34
|
+
else for (const r of t) {
|
|
35
|
+
const i = document.createElement("style"), o = ie.litNonce;
|
|
36
|
+
o !== void 0 && i.setAttribute("nonce", o), i.textContent = r.cssText, e.appendChild(i);
|
|
37
|
+
}
|
|
38
|
+
}, Se = ye ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
39
|
+
let r = "";
|
|
40
|
+
for (const i of t.cssRules) r += i.cssText;
|
|
41
|
+
return w(r);
|
|
42
|
+
})(e) : e;
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2017 Google LLC
|
|
46
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
+
*/
|
|
48
|
+
const { is: Ye, defineProperty: Qe, getOwnPropertyDescriptor: et, getOwnPropertyNames: tt, getOwnPropertySymbols: rt, getPrototypeOf: ot } = Object, T = globalThis, Oe = T.trustedTypes, it = Oe ? Oe.emptyScript : "", pe = T.reactiveElementPolyfillSupport, F = (e, t) => e, se = { toAttribute(e, t) {
|
|
49
|
+
switch (t) {
|
|
50
|
+
case Boolean:
|
|
51
|
+
e = e ? it : null;
|
|
52
|
+
break;
|
|
53
|
+
case Object:
|
|
54
|
+
case Array:
|
|
55
|
+
e = e == null ? e : JSON.stringify(e);
|
|
56
|
+
}
|
|
57
|
+
return e;
|
|
58
|
+
}, fromAttribute(e, t) {
|
|
59
|
+
let r = e;
|
|
60
|
+
switch (t) {
|
|
61
|
+
case Boolean:
|
|
62
|
+
r = e !== null;
|
|
63
|
+
break;
|
|
64
|
+
case Number:
|
|
65
|
+
r = e === null ? null : Number(e);
|
|
66
|
+
break;
|
|
67
|
+
case Object:
|
|
68
|
+
case Array:
|
|
69
|
+
try {
|
|
70
|
+
r = JSON.parse(e);
|
|
71
|
+
} catch {
|
|
72
|
+
r = null;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return r;
|
|
76
|
+
} }, xe = (e, t) => !Ye(e, t), Pe = { attribute: !0, type: String, converter: se, reflect: !1, hasChanged: xe };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), T.litPropertyMetadata ?? (T.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
class M extends HTMLElement {
|
|
79
|
+
static addInitializer(t) {
|
|
80
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
81
|
+
}
|
|
82
|
+
static get observedAttributes() {
|
|
83
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
|
+
}
|
|
85
|
+
static createProperty(t, r = Pe) {
|
|
86
|
+
if (r.state && (r.attribute = !1), this._$Ei(), this.elementProperties.set(t, r), !r.noAccessor) {
|
|
87
|
+
const i = Symbol(), o = this.getPropertyDescriptor(t, i, r);
|
|
88
|
+
o !== void 0 && Qe(this.prototype, t, o);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
static getPropertyDescriptor(t, r, i) {
|
|
92
|
+
const { get: o, set: s } = et(this.prototype, t) ?? { get() {
|
|
93
|
+
return this[r];
|
|
94
|
+
}, set(n) {
|
|
95
|
+
this[r] = n;
|
|
96
|
+
} };
|
|
97
|
+
return { get() {
|
|
98
|
+
return o == null ? void 0 : o.call(this);
|
|
99
|
+
}, set(n) {
|
|
100
|
+
const d = o == null ? void 0 : o.call(this);
|
|
101
|
+
s.call(this, n), this.requestUpdate(t, d, i);
|
|
102
|
+
}, configurable: !0, enumerable: !0 };
|
|
103
|
+
}
|
|
104
|
+
static getPropertyOptions(t) {
|
|
105
|
+
return this.elementProperties.get(t) ?? Pe;
|
|
106
|
+
}
|
|
107
|
+
static _$Ei() {
|
|
108
|
+
if (this.hasOwnProperty(F("elementProperties"))) return;
|
|
109
|
+
const t = ot(this);
|
|
110
|
+
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
111
|
+
}
|
|
112
|
+
static finalize() {
|
|
113
|
+
if (this.hasOwnProperty(F("finalized"))) return;
|
|
114
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(F("properties"))) {
|
|
115
|
+
const r = this.properties, i = [...tt(r), ...rt(r)];
|
|
116
|
+
for (const o of i) this.createProperty(o, r[o]);
|
|
117
|
+
}
|
|
118
|
+
const t = this[Symbol.metadata];
|
|
119
|
+
if (t !== null) {
|
|
120
|
+
const r = litPropertyMetadata.get(t);
|
|
121
|
+
if (r !== void 0) for (const [i, o] of r) this.elementProperties.set(i, o);
|
|
122
|
+
}
|
|
123
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
124
|
+
for (const [r, i] of this.elementProperties) {
|
|
125
|
+
const o = this._$Eu(r, i);
|
|
126
|
+
o !== void 0 && this._$Eh.set(o, r);
|
|
127
|
+
}
|
|
128
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
129
|
+
}
|
|
130
|
+
static finalizeStyles(t) {
|
|
131
|
+
const r = [];
|
|
132
|
+
if (Array.isArray(t)) {
|
|
133
|
+
const i = new Set(t.flat(1 / 0).reverse());
|
|
134
|
+
for (const o of i) r.unshift(Se(o));
|
|
135
|
+
} else t !== void 0 && r.push(Se(t));
|
|
136
|
+
return r;
|
|
137
|
+
}
|
|
138
|
+
static _$Eu(t, r) {
|
|
139
|
+
const i = r.attribute;
|
|
140
|
+
return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
141
|
+
}
|
|
142
|
+
constructor() {
|
|
143
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
144
|
+
}
|
|
145
|
+
_$Ev() {
|
|
146
|
+
var t;
|
|
147
|
+
this._$ES = new Promise((r) => this.enableUpdating = r), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((r) => r(this));
|
|
148
|
+
}
|
|
149
|
+
addController(t) {
|
|
150
|
+
var r;
|
|
151
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((r = t.hostConnected) == null || r.call(t));
|
|
152
|
+
}
|
|
153
|
+
removeController(t) {
|
|
154
|
+
var r;
|
|
155
|
+
(r = this._$EO) == null || r.delete(t);
|
|
156
|
+
}
|
|
157
|
+
_$E_() {
|
|
158
|
+
const t = /* @__PURE__ */ new Map(), r = this.constructor.elementProperties;
|
|
159
|
+
for (const i of r.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
160
|
+
t.size > 0 && (this._$Ep = t);
|
|
161
|
+
}
|
|
162
|
+
createRenderRoot() {
|
|
163
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
164
|
+
return Ze(t, this.constructor.elementStyles), t;
|
|
165
|
+
}
|
|
166
|
+
connectedCallback() {
|
|
167
|
+
var t;
|
|
168
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((r) => {
|
|
169
|
+
var i;
|
|
170
|
+
return (i = r.hostConnected) == null ? void 0 : i.call(r);
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
enableUpdating(t) {
|
|
174
|
+
}
|
|
175
|
+
disconnectedCallback() {
|
|
176
|
+
var t;
|
|
177
|
+
(t = this._$EO) == null || t.forEach((r) => {
|
|
178
|
+
var i;
|
|
179
|
+
return (i = r.hostDisconnected) == null ? void 0 : i.call(r);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
attributeChangedCallback(t, r, i) {
|
|
183
|
+
this._$AK(t, i);
|
|
184
|
+
}
|
|
185
|
+
_$EC(t, r) {
|
|
186
|
+
var s;
|
|
187
|
+
const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
|
|
188
|
+
if (o !== void 0 && i.reflect === !0) {
|
|
189
|
+
const n = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : se).toAttribute(r, i.type);
|
|
190
|
+
this._$Em = t, n == null ? this.removeAttribute(o) : this.setAttribute(o, n), this._$Em = null;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
_$AK(t, r) {
|
|
194
|
+
var s;
|
|
195
|
+
const i = this.constructor, o = i._$Eh.get(t);
|
|
196
|
+
if (o !== void 0 && this._$Em !== o) {
|
|
197
|
+
const n = i.getPropertyOptions(o), d = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((s = n.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? n.converter : se;
|
|
198
|
+
this._$Em = o, this[o] = d.fromAttribute(r, n.type), this._$Em = null;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
requestUpdate(t, r, i) {
|
|
202
|
+
if (t !== void 0) {
|
|
203
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? xe)(this[t], r)) return;
|
|
204
|
+
this.P(t, r, i);
|
|
205
|
+
}
|
|
206
|
+
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
207
|
+
}
|
|
208
|
+
P(t, r, i) {
|
|
209
|
+
this._$AL.has(t) || this._$AL.set(t, r), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
|
210
|
+
}
|
|
211
|
+
async _$ET() {
|
|
212
|
+
this.isUpdatePending = !0;
|
|
213
|
+
try {
|
|
214
|
+
await this._$ES;
|
|
215
|
+
} catch (r) {
|
|
216
|
+
Promise.reject(r);
|
|
217
|
+
}
|
|
218
|
+
const t = this.scheduleUpdate();
|
|
219
|
+
return t != null && await t, !this.isUpdatePending;
|
|
220
|
+
}
|
|
221
|
+
scheduleUpdate() {
|
|
222
|
+
return this.performUpdate();
|
|
223
|
+
}
|
|
224
|
+
performUpdate() {
|
|
225
|
+
var i;
|
|
226
|
+
if (!this.isUpdatePending) return;
|
|
227
|
+
if (!this.hasUpdated) {
|
|
228
|
+
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
229
|
+
for (const [s, n] of this._$Ep) this[s] = n;
|
|
230
|
+
this._$Ep = void 0;
|
|
231
|
+
}
|
|
232
|
+
const o = this.constructor.elementProperties;
|
|
233
|
+
if (o.size > 0) for (const [s, n] of o) n.wrapped !== !0 || this._$AL.has(s) || this[s] === void 0 || this.P(s, this[s], n);
|
|
234
|
+
}
|
|
235
|
+
let t = !1;
|
|
236
|
+
const r = this._$AL;
|
|
237
|
+
try {
|
|
238
|
+
t = this.shouldUpdate(r), t ? (this.willUpdate(r), (i = this._$EO) == null || i.forEach((o) => {
|
|
239
|
+
var s;
|
|
240
|
+
return (s = o.hostUpdate) == null ? void 0 : s.call(o);
|
|
241
|
+
}), this.update(r)) : this._$EU();
|
|
242
|
+
} catch (o) {
|
|
243
|
+
throw t = !1, this._$EU(), o;
|
|
244
|
+
}
|
|
245
|
+
t && this._$AE(r);
|
|
246
|
+
}
|
|
247
|
+
willUpdate(t) {
|
|
248
|
+
}
|
|
249
|
+
_$AE(t) {
|
|
250
|
+
var r;
|
|
251
|
+
(r = this._$EO) == null || r.forEach((i) => {
|
|
252
|
+
var o;
|
|
253
|
+
return (o = i.hostUpdated) == null ? void 0 : o.call(i);
|
|
254
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
255
|
+
}
|
|
256
|
+
_$EU() {
|
|
257
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
258
|
+
}
|
|
259
|
+
get updateComplete() {
|
|
260
|
+
return this.getUpdateComplete();
|
|
261
|
+
}
|
|
262
|
+
getUpdateComplete() {
|
|
263
|
+
return this._$ES;
|
|
264
|
+
}
|
|
265
|
+
shouldUpdate(t) {
|
|
266
|
+
return !0;
|
|
267
|
+
}
|
|
268
|
+
update(t) {
|
|
269
|
+
this._$Ej && (this._$Ej = this._$Ej.forEach((r) => this._$EC(r, this[r]))), this._$EU();
|
|
270
|
+
}
|
|
271
|
+
updated(t) {
|
|
272
|
+
}
|
|
273
|
+
firstUpdated(t) {
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
M.elementStyles = [], M.shadowRootOptions = { mode: "open" }, M[F("elementProperties")] = /* @__PURE__ */ new Map(), M[F("finalized")] = /* @__PURE__ */ new Map(), pe == null || pe({ ReactiveElement: M }), (T.reactiveElementVersions ?? (T.reactiveElementVersions = [])).push("2.0.4");
|
|
277
|
+
/**
|
|
278
|
+
* @license
|
|
279
|
+
* Copyright 2017 Google LLC
|
|
280
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
281
|
+
*/
|
|
282
|
+
const K = globalThis, ne = K.trustedTypes, Ee = ne ? ne.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, He = "$lit$", I = `lit$${Math.random().toFixed(9).slice(2)}$`, ze = "?" + I, st = `<${ze}>`, U = document, W = () => U.createComment(""), G = (e) => e === null || typeof e != "object" && typeof e != "function", $e = Array.isArray, nt = (e) => $e(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", ue = `[
|
|
283
|
+
\f\r]`, V = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ie = /-->/g, Te = />/g, L = RegExp(`>|${ue}(?:([^\\s"'>=/]+)(${ue}*=${ue}*(?:[^
|
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), De = /'/g, Re = /"/g, Me = /^(?:script|style|textarea|title)$/i, lt = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), h = lt(1), R = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), Le = /* @__PURE__ */ new WeakMap(), q = U.createTreeWalker(U, 129);
|
|
285
|
+
function je(e, t) {
|
|
286
|
+
if (!$e(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
287
|
+
return Ee !== void 0 ? Ee.createHTML(t) : t;
|
|
288
|
+
}
|
|
289
|
+
const at = (e, t) => {
|
|
290
|
+
const r = e.length - 1, i = [];
|
|
291
|
+
let o, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = V;
|
|
292
|
+
for (let d = 0; d < r; d++) {
|
|
293
|
+
const a = e[d];
|
|
294
|
+
let f, b, u = -1, C = 0;
|
|
295
|
+
for (; C < a.length && (n.lastIndex = C, b = n.exec(a), b !== null); ) C = n.lastIndex, n === V ? b[1] === "!--" ? n = Ie : b[1] !== void 0 ? n = Te : b[2] !== void 0 ? (Me.test(b[2]) && (o = RegExp("</" + b[2], "g")), n = L) : b[3] !== void 0 && (n = L) : n === L ? b[0] === ">" ? (n = o ?? V, u = -1) : b[1] === void 0 ? u = -2 : (u = n.lastIndex - b[2].length, f = b[1], n = b[3] === void 0 ? L : b[3] === '"' ? Re : De) : n === Re || n === De ? n = L : n === Ie || n === Te ? n = V : (n = L, o = void 0);
|
|
296
|
+
const E = n === L && e[d + 1].startsWith("/>") ? " " : "";
|
|
297
|
+
s += n === V ? a + st : u >= 0 ? (i.push(f), a.slice(0, u) + He + a.slice(u) + I + E) : a + I + (u === -2 ? d : E);
|
|
298
|
+
}
|
|
299
|
+
return [je(e, s + (e[r] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
300
|
+
};
|
|
301
|
+
class J {
|
|
302
|
+
constructor({ strings: t, _$litType$: r }, i) {
|
|
303
|
+
let o;
|
|
304
|
+
this.parts = [];
|
|
305
|
+
let s = 0, n = 0;
|
|
306
|
+
const d = t.length - 1, a = this.parts, [f, b] = at(t, r);
|
|
307
|
+
if (this.el = J.createElement(f, i), q.currentNode = this.el.content, r === 2 || r === 3) {
|
|
308
|
+
const u = this.el.content.firstChild;
|
|
309
|
+
u.replaceWith(...u.childNodes);
|
|
310
|
+
}
|
|
311
|
+
for (; (o = q.nextNode()) !== null && a.length < d; ) {
|
|
312
|
+
if (o.nodeType === 1) {
|
|
313
|
+
if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(He)) {
|
|
314
|
+
const C = b[n++], E = o.getAttribute(u).split(I), re = /([.?@])?(.*)/.exec(C);
|
|
315
|
+
a.push({ type: 1, index: s, name: re[2], strings: E, ctor: re[1] === "." ? dt : re[1] === "?" ? ht : re[1] === "@" ? pt : de }), o.removeAttribute(u);
|
|
316
|
+
} else u.startsWith(I) && (a.push({ type: 6, index: s }), o.removeAttribute(u));
|
|
317
|
+
if (Me.test(o.tagName)) {
|
|
318
|
+
const u = o.textContent.split(I), C = u.length - 1;
|
|
319
|
+
if (C > 0) {
|
|
320
|
+
o.textContent = ne ? ne.emptyScript : "";
|
|
321
|
+
for (let E = 0; E < C; E++) o.append(u[E], W()), q.nextNode(), a.push({ type: 2, index: ++s });
|
|
322
|
+
o.append(u[C], W());
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
} else if (o.nodeType === 8) if (o.data === ze) a.push({ type: 2, index: s });
|
|
326
|
+
else {
|
|
327
|
+
let u = -1;
|
|
328
|
+
for (; (u = o.data.indexOf(I, u + 1)) !== -1; ) a.push({ type: 7, index: s }), u += I.length - 1;
|
|
329
|
+
}
|
|
330
|
+
s++;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
static createElement(t, r) {
|
|
334
|
+
const i = U.createElement("template");
|
|
335
|
+
return i.innerHTML = t, i;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
function j(e, t, r = e, i) {
|
|
339
|
+
var n, d;
|
|
340
|
+
if (t === R) return t;
|
|
341
|
+
let o = i !== void 0 ? (n = r._$Co) == null ? void 0 : n[i] : r._$Cl;
|
|
342
|
+
const s = G(t) ? void 0 : t._$litDirective$;
|
|
343
|
+
return (o == null ? void 0 : o.constructor) !== s && ((d = o == null ? void 0 : o._$AO) == null || d.call(o, !1), s === void 0 ? o = void 0 : (o = new s(e), o._$AT(e, r, i)), i !== void 0 ? (r._$Co ?? (r._$Co = []))[i] = o : r._$Cl = o), o !== void 0 && (t = j(e, o._$AS(e, t.values), o, i)), t;
|
|
344
|
+
}
|
|
345
|
+
class ct {
|
|
346
|
+
constructor(t, r) {
|
|
347
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r;
|
|
348
|
+
}
|
|
349
|
+
get parentNode() {
|
|
350
|
+
return this._$AM.parentNode;
|
|
351
|
+
}
|
|
352
|
+
get _$AU() {
|
|
353
|
+
return this._$AM._$AU;
|
|
354
|
+
}
|
|
355
|
+
u(t) {
|
|
356
|
+
const { el: { content: r }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? U).importNode(r, !0);
|
|
357
|
+
q.currentNode = o;
|
|
358
|
+
let s = q.nextNode(), n = 0, d = 0, a = i[0];
|
|
359
|
+
for (; a !== void 0; ) {
|
|
360
|
+
if (n === a.index) {
|
|
361
|
+
let f;
|
|
362
|
+
a.type === 2 ? f = new Q(s, s.nextSibling, this, t) : a.type === 1 ? f = new a.ctor(s, a.name, a.strings, this, t) : a.type === 6 && (f = new ut(s, this, t)), this._$AV.push(f), a = i[++d];
|
|
363
|
+
}
|
|
364
|
+
n !== (a == null ? void 0 : a.index) && (s = q.nextNode(), n++);
|
|
365
|
+
}
|
|
366
|
+
return q.currentNode = U, o;
|
|
367
|
+
}
|
|
368
|
+
p(t) {
|
|
369
|
+
let r = 0;
|
|
370
|
+
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, r), r += i.strings.length - 2) : i._$AI(t[r])), r++;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
class Q {
|
|
374
|
+
get _$AU() {
|
|
375
|
+
var t;
|
|
376
|
+
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
377
|
+
}
|
|
378
|
+
constructor(t, r, i, o) {
|
|
379
|
+
this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = t, this._$AB = r, this._$AM = i, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
|
|
380
|
+
}
|
|
381
|
+
get parentNode() {
|
|
382
|
+
let t = this._$AA.parentNode;
|
|
383
|
+
const r = this._$AM;
|
|
384
|
+
return r !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = r.parentNode), t;
|
|
385
|
+
}
|
|
386
|
+
get startNode() {
|
|
387
|
+
return this._$AA;
|
|
388
|
+
}
|
|
389
|
+
get endNode() {
|
|
390
|
+
return this._$AB;
|
|
391
|
+
}
|
|
392
|
+
_$AI(t, r = this) {
|
|
393
|
+
t = j(this, t, r), G(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== R && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : nt(t) ? this.k(t) : this._(t);
|
|
394
|
+
}
|
|
395
|
+
O(t) {
|
|
396
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
397
|
+
}
|
|
398
|
+
T(t) {
|
|
399
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
400
|
+
}
|
|
401
|
+
_(t) {
|
|
402
|
+
this._$AH !== c && G(this._$AH) ? this._$AA.nextSibling.data = t : this.T(U.createTextNode(t)), this._$AH = t;
|
|
403
|
+
}
|
|
404
|
+
$(t) {
|
|
405
|
+
var s;
|
|
406
|
+
const { values: r, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = J.createElement(je(i.h, i.h[0]), this.options)), i);
|
|
407
|
+
if (((s = this._$AH) == null ? void 0 : s._$AD) === o) this._$AH.p(r);
|
|
408
|
+
else {
|
|
409
|
+
const n = new ct(o, this), d = n.u(this.options);
|
|
410
|
+
n.p(r), this.T(d), this._$AH = n;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
_$AC(t) {
|
|
414
|
+
let r = Le.get(t.strings);
|
|
415
|
+
return r === void 0 && Le.set(t.strings, r = new J(t)), r;
|
|
416
|
+
}
|
|
417
|
+
k(t) {
|
|
418
|
+
$e(this._$AH) || (this._$AH = [], this._$AR());
|
|
419
|
+
const r = this._$AH;
|
|
420
|
+
let i, o = 0;
|
|
421
|
+
for (const s of t) o === r.length ? r.push(i = new Q(this.O(W()), this.O(W()), this, this.options)) : i = r[o], i._$AI(s), o++;
|
|
422
|
+
o < r.length && (this._$AR(i && i._$AB.nextSibling, o), r.length = o);
|
|
423
|
+
}
|
|
424
|
+
_$AR(t = this._$AA.nextSibling, r) {
|
|
425
|
+
var i;
|
|
426
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, r); t && t !== this._$AB; ) {
|
|
427
|
+
const o = t.nextSibling;
|
|
428
|
+
t.remove(), t = o;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
setConnected(t) {
|
|
432
|
+
var r;
|
|
433
|
+
this._$AM === void 0 && (this._$Cv = t, (r = this._$AP) == null || r.call(this, t));
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
class de {
|
|
437
|
+
get tagName() {
|
|
438
|
+
return this.element.tagName;
|
|
439
|
+
}
|
|
440
|
+
get _$AU() {
|
|
441
|
+
return this._$AM._$AU;
|
|
442
|
+
}
|
|
443
|
+
constructor(t, r, i, o, s) {
|
|
444
|
+
this.type = 1, this._$AH = c, this._$AN = void 0, this.element = t, this.name = r, this._$AM = o, this.options = s, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = c;
|
|
445
|
+
}
|
|
446
|
+
_$AI(t, r = this, i, o) {
|
|
447
|
+
const s = this.strings;
|
|
448
|
+
let n = !1;
|
|
449
|
+
if (s === void 0) t = j(this, t, r, 0), n = !G(t) || t !== this._$AH && t !== R, n && (this._$AH = t);
|
|
450
|
+
else {
|
|
451
|
+
const d = t;
|
|
452
|
+
let a, f;
|
|
453
|
+
for (t = s[0], a = 0; a < s.length - 1; a++) f = j(this, d[i + a], r, a), f === R && (f = this._$AH[a]), n || (n = !G(f) || f !== this._$AH[a]), f === c ? t = c : t !== c && (t += (f ?? "") + s[a + 1]), this._$AH[a] = f;
|
|
454
|
+
}
|
|
455
|
+
n && !o && this.j(t);
|
|
456
|
+
}
|
|
457
|
+
j(t) {
|
|
458
|
+
t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
class dt extends de {
|
|
462
|
+
constructor() {
|
|
463
|
+
super(...arguments), this.type = 3;
|
|
464
|
+
}
|
|
465
|
+
j(t) {
|
|
466
|
+
this.element[this.name] = t === c ? void 0 : t;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
class ht extends de {
|
|
470
|
+
constructor() {
|
|
471
|
+
super(...arguments), this.type = 4;
|
|
472
|
+
}
|
|
473
|
+
j(t) {
|
|
474
|
+
this.element.toggleAttribute(this.name, !!t && t !== c);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
class pt extends de {
|
|
478
|
+
constructor(t, r, i, o, s) {
|
|
479
|
+
super(t, r, i, o, s), this.type = 5;
|
|
480
|
+
}
|
|
481
|
+
_$AI(t, r = this) {
|
|
482
|
+
if ((t = j(this, t, r, 0) ?? c) === R) return;
|
|
483
|
+
const i = this._$AH, o = t === c && i !== c || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, s = t !== c && (i === c || o);
|
|
484
|
+
o && this.element.removeEventListener(this.name, this, i), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
485
|
+
}
|
|
486
|
+
handleEvent(t) {
|
|
487
|
+
var r;
|
|
488
|
+
typeof this._$AH == "function" ? this._$AH.call(((r = this.options) == null ? void 0 : r.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
class ut {
|
|
492
|
+
constructor(t, r, i) {
|
|
493
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = i;
|
|
494
|
+
}
|
|
495
|
+
get _$AU() {
|
|
496
|
+
return this._$AM._$AU;
|
|
497
|
+
}
|
|
498
|
+
_$AI(t) {
|
|
499
|
+
j(this, t);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
const fe = K.litHtmlPolyfillSupport;
|
|
503
|
+
fe == null || fe(J, Q), (K.litHtmlVersions ?? (K.litHtmlVersions = [])).push("3.2.1");
|
|
504
|
+
const ft = (e, t, r) => {
|
|
505
|
+
const i = (r == null ? void 0 : r.renderBefore) ?? t;
|
|
506
|
+
let o = i._$litPart$;
|
|
507
|
+
if (o === void 0) {
|
|
508
|
+
const s = (r == null ? void 0 : r.renderBefore) ?? null;
|
|
509
|
+
i._$litPart$ = o = new Q(t.insertBefore(W(), s), s, void 0, r ?? {});
|
|
510
|
+
}
|
|
511
|
+
return o._$AI(e), o;
|
|
512
|
+
};
|
|
513
|
+
/**
|
|
514
|
+
* @license
|
|
515
|
+
* Copyright 2017 Google LLC
|
|
516
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
517
|
+
*/
|
|
518
|
+
let D = class extends M {
|
|
519
|
+
constructor() {
|
|
520
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
521
|
+
}
|
|
522
|
+
createRenderRoot() {
|
|
523
|
+
var r;
|
|
524
|
+
const t = super.createRenderRoot();
|
|
525
|
+
return (r = this.renderOptions).renderBefore ?? (r.renderBefore = t.firstChild), t;
|
|
526
|
+
}
|
|
527
|
+
update(t) {
|
|
528
|
+
const r = this.render();
|
|
529
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ft(r, this.renderRoot, this.renderOptions);
|
|
530
|
+
}
|
|
531
|
+
connectedCallback() {
|
|
532
|
+
var t;
|
|
533
|
+
super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
|
|
534
|
+
}
|
|
535
|
+
disconnectedCallback() {
|
|
536
|
+
var t;
|
|
537
|
+
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
538
|
+
}
|
|
539
|
+
render() {
|
|
540
|
+
return R;
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
var Ue;
|
|
544
|
+
D._$litElement$ = !0, D.finalized = !0, (Ue = globalThis.litElementHydrateSupport) == null || Ue.call(globalThis, { LitElement: D });
|
|
545
|
+
const be = globalThis.litElementPolyfillSupport;
|
|
546
|
+
be == null || be({ LitElement: D });
|
|
547
|
+
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
548
|
+
/**
|
|
549
|
+
* @license
|
|
550
|
+
* Copyright 2017 Google LLC
|
|
551
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
552
|
+
*/
|
|
553
|
+
const v = (e) => (t, r) => {
|
|
554
|
+
r !== void 0 ? r.addInitializer(() => {
|
|
555
|
+
customElements.define(e, t);
|
|
556
|
+
}) : customElements.define(e, t);
|
|
557
|
+
};
|
|
558
|
+
/**
|
|
559
|
+
* @license
|
|
560
|
+
* Copyright 2017 Google LLC
|
|
561
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
562
|
+
*/
|
|
563
|
+
const bt = { attribute: !0, type: String, converter: se, reflect: !1, hasChanged: xe }, mt = (e = bt, t, r) => {
|
|
564
|
+
const { kind: i, metadata: o } = r;
|
|
565
|
+
let s = globalThis.litPropertyMetadata.get(o);
|
|
566
|
+
if (s === void 0 && globalThis.litPropertyMetadata.set(o, s = /* @__PURE__ */ new Map()), s.set(r.name, e), i === "accessor") {
|
|
567
|
+
const { name: n } = r;
|
|
568
|
+
return { set(d) {
|
|
569
|
+
const a = t.get.call(this);
|
|
570
|
+
t.set.call(this, d), this.requestUpdate(n, a, e);
|
|
571
|
+
}, init(d) {
|
|
572
|
+
return d !== void 0 && this.P(n, void 0, e), d;
|
|
573
|
+
} };
|
|
574
|
+
}
|
|
575
|
+
if (i === "setter") {
|
|
576
|
+
const { name: n } = r;
|
|
577
|
+
return function(d) {
|
|
578
|
+
const a = this[n];
|
|
579
|
+
t.call(this, d), this.requestUpdate(n, a, e);
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
throw Error("Unsupported decorator location: " + i);
|
|
583
|
+
};
|
|
584
|
+
function l(e) {
|
|
585
|
+
return (t, r) => typeof r == "object" ? mt(e, t, r) : ((i, o, s) => {
|
|
586
|
+
const n = o.hasOwnProperty(s);
|
|
587
|
+
return o.constructor.createProperty(s, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(o, s) : void 0;
|
|
588
|
+
})(e, t, r);
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* @license
|
|
592
|
+
* Copyright 2017 Google LLC
|
|
593
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
594
|
+
*/
|
|
595
|
+
function _e(e) {
|
|
596
|
+
return l({ ...e, state: !0, attribute: !1 });
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* @license
|
|
600
|
+
* Copyright 2017 Google LLC
|
|
601
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
602
|
+
*/
|
|
603
|
+
const Be = (e, t, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, r), r);
|
|
604
|
+
/**
|
|
605
|
+
* @license
|
|
606
|
+
* Copyright 2021 Google LLC
|
|
607
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
608
|
+
*/
|
|
609
|
+
function Ve(e) {
|
|
610
|
+
return (t, r) => {
|
|
611
|
+
const { slot: i, selector: o } = e ?? {}, s = "slot" + (i ? `[name=${i}]` : ":not([name])");
|
|
612
|
+
return Be(t, r, { get() {
|
|
613
|
+
var a;
|
|
614
|
+
const n = (a = this.renderRoot) == null ? void 0 : a.querySelector(s), d = (n == null ? void 0 : n.assignedElements(e)) ?? [];
|
|
615
|
+
return o === void 0 ? d : d.filter((f) => f.matches(o));
|
|
616
|
+
} });
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* @license
|
|
621
|
+
* Copyright 2017 Google LLC
|
|
622
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
623
|
+
*/
|
|
624
|
+
function vt(e) {
|
|
625
|
+
return (t, r) => {
|
|
626
|
+
const { slot: i } = {}, o = "slot" + (i ? `[name=${i}]` : ":not([name])");
|
|
627
|
+
return Be(t, r, { get() {
|
|
628
|
+
var n;
|
|
629
|
+
const s = (n = this.renderRoot) == null ? void 0 : n.querySelector(o);
|
|
630
|
+
return (s == null ? void 0 : s.assignedNodes(e)) ?? [];
|
|
631
|
+
} });
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* @license
|
|
636
|
+
* Copyright 2018 Google LLC
|
|
637
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
638
|
+
*/
|
|
639
|
+
const qe = (e) => e ?? c;
|
|
640
|
+
var yt = Object.getOwnPropertyDescriptor, gt = (e, t, r, i) => {
|
|
641
|
+
for (var o = i > 1 ? void 0 : i ? yt(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
642
|
+
(n = e[s]) && (o = n(o) || o);
|
|
643
|
+
return o;
|
|
644
|
+
};
|
|
645
|
+
let p = class extends D {
|
|
646
|
+
};
|
|
647
|
+
p.styles = ce`
|
|
648
|
+
|
|
649
|
+
:host {
|
|
650
|
+
font-family: var(--ucds-font-sans-serif-family);
|
|
651
|
+
font-size: var(--ucds-font-base-size);
|
|
652
|
+
line-height: var(--ucds-font-base-line-height);
|
|
653
|
+
color: var(--ucds-color-text-primary);
|
|
654
|
+
|
|
655
|
+
/* Try to make font rendering consistent across various systems. */
|
|
656
|
+
-webkit-font-smoothing: antialiased;
|
|
657
|
+
text-rendering: optimizeLegibility;
|
|
658
|
+
|
|
659
|
+
*,
|
|
660
|
+
*:before,
|
|
661
|
+
*:after {
|
|
662
|
+
box-sizing: border-box;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
button,
|
|
667
|
+
input,
|
|
668
|
+
textarea,
|
|
669
|
+
select {
|
|
670
|
+
font: inherit;
|
|
671
|
+
color: inherit;
|
|
672
|
+
}
|
|
673
|
+
`;
|
|
674
|
+
p = gt([
|
|
675
|
+
v("base-element")
|
|
676
|
+
], p);
|
|
677
|
+
/**
|
|
678
|
+
* @license
|
|
679
|
+
* Copyright 2017 Google LLC
|
|
680
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
681
|
+
*/
|
|
682
|
+
const Fe = { ATTRIBUTE: 1, CHILD: 2 }, Ke = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
|
683
|
+
class We {
|
|
684
|
+
constructor(t) {
|
|
685
|
+
}
|
|
686
|
+
get _$AU() {
|
|
687
|
+
return this._$AM._$AU;
|
|
688
|
+
}
|
|
689
|
+
_$AT(t, r, i) {
|
|
690
|
+
this._$Ct = t, this._$AM = r, this._$Ci = i;
|
|
691
|
+
}
|
|
692
|
+
_$AS(t, r) {
|
|
693
|
+
return this.update(t, r);
|
|
694
|
+
}
|
|
695
|
+
update(t, r) {
|
|
696
|
+
return this.render(...r);
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* @license
|
|
701
|
+
* Copyright 2017 Google LLC
|
|
702
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
703
|
+
*/
|
|
704
|
+
let me = class extends We {
|
|
705
|
+
constructor(t) {
|
|
706
|
+
if (super(t), this.it = c, t.type !== Fe.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
707
|
+
}
|
|
708
|
+
render(t) {
|
|
709
|
+
if (t === c || t == null) return this._t = void 0, this.it = t;
|
|
710
|
+
if (t === R) return t;
|
|
711
|
+
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
712
|
+
if (t === this.it) return this._t;
|
|
713
|
+
this.it = t;
|
|
714
|
+
const r = [t];
|
|
715
|
+
return r.raw = r, this._t = { _$litType$: this.constructor.resultType, strings: r, values: [] };
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
me.directiveName = "unsafeHTML", me.resultType = 1;
|
|
719
|
+
/**
|
|
720
|
+
* @license
|
|
721
|
+
* Copyright 2017 Google LLC
|
|
722
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
723
|
+
*/
|
|
724
|
+
class ve extends me {
|
|
725
|
+
}
|
|
726
|
+
ve.directiveName = "unsafeSVG", ve.resultType = 2;
|
|
727
|
+
const xt = Ke(ve);
|
|
728
|
+
/**
|
|
729
|
+
* @license
|
|
730
|
+
* Copyright 2018 Google LLC
|
|
731
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
732
|
+
*/
|
|
733
|
+
const Ge = Ke(class extends We {
|
|
734
|
+
constructor(e) {
|
|
735
|
+
var t;
|
|
736
|
+
if (super(e), e.type !== Fe.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
737
|
+
}
|
|
738
|
+
render(e) {
|
|
739
|
+
return " " + Object.keys(e).filter((t) => e[t]).join(" ") + " ";
|
|
740
|
+
}
|
|
741
|
+
update(e, [t]) {
|
|
742
|
+
var i, o;
|
|
743
|
+
if (this.st === void 0) {
|
|
744
|
+
this.st = /* @__PURE__ */ new Set(), e.strings !== void 0 && (this.nt = new Set(e.strings.join(" ").split(/\s/).filter((s) => s !== "")));
|
|
745
|
+
for (const s in t) t[s] && !((i = this.nt) != null && i.has(s)) && this.st.add(s);
|
|
746
|
+
return this.render(t);
|
|
747
|
+
}
|
|
748
|
+
const r = e.element.classList;
|
|
749
|
+
for (const s of this.st) s in t || (r.remove(s), this.st.delete(s));
|
|
750
|
+
for (const s in t) {
|
|
751
|
+
const n = !!t[s];
|
|
752
|
+
n === this.st.has(s) || (o = this.nt) != null && o.has(s) || (n ? (r.add(s), this.st.add(s)) : (r.remove(s), this.st.delete(s)));
|
|
753
|
+
}
|
|
754
|
+
return R;
|
|
755
|
+
}
|
|
756
|
+
}), oe = {
|
|
757
|
+
arrowDown: () => import("./ArrowDown-Cl_pe6x-.js").then((e) => e.default),
|
|
758
|
+
arrowLeft: () => import("./ArrowLeft-D_pb7-h_.js").then((e) => e.default),
|
|
759
|
+
arrowRight: () => import("./ArrowRight-0rOUWttV.js").then((e) => e.default),
|
|
760
|
+
arrowUp: () => import("./ArrowUp-Kh8KmpaI.js").then((e) => e.default),
|
|
761
|
+
arrowUpDown: () => import("./ArrowUpDown-SqD4IUq6.js").then((e) => e.default),
|
|
762
|
+
attachment: () => import("./Attachment-DMa7gLVG.js").then((e) => e.default),
|
|
763
|
+
camera: () => import("./Camera-BisfqTvi.js").then((e) => e.default),
|
|
764
|
+
chat: () => import("./Chat-DQxghIy_.js").then((e) => e.default),
|
|
765
|
+
checkmark: () => import("./Checkmark-BKXPef9h.js").then((e) => e.default),
|
|
766
|
+
checkmarkCircle: () => import("./CheckmarkCircle-ChmWwela.js").then((e) => e.default),
|
|
767
|
+
checkmarkCircleFilled: () => import("./CheckmarkCircleFilled-Cqky64AP.js").then((e) => e.default),
|
|
768
|
+
chevronDown: () => import("./ChevronDown-CkkPhuqR.js").then((e) => e.default),
|
|
769
|
+
chevronDownCircle: () => import("./ChevronDownCircle-Bzjl-oG1.js").then((e) => e.default),
|
|
770
|
+
chevronDownCircleFilled: () => import("./ChevronDownCircleFilled-BZZIQ64Y.js").then((e) => e.default),
|
|
771
|
+
chevronLeft: () => import("./ChevronLeft-wuwMWp0P.js").then((e) => e.default),
|
|
772
|
+
chevronLeftCircle: () => import("./ChevronLeftCircle-C5GskojN.js").then((e) => e.default),
|
|
773
|
+
chevronLeftCircleFilled: () => import("./ChevronLeftCircleFilled-Fx_qs9nb.js").then((e) => e.default),
|
|
774
|
+
chevronRight: () => import("./ChevronRight-PCxxo-vc.js").then((e) => e.default),
|
|
775
|
+
chevronRightCircle: () => import("./ChevronRightCircle-Dkk7XKGY.js").then((e) => e.default),
|
|
776
|
+
chevronRightCircleFilled: () => import("./ChevronRightCircleFilled-DNCABv_Q.js").then((e) => e.default),
|
|
777
|
+
chevronUp: () => import("./ChevronUp-CjSX0sjw.js").then((e) => e.default),
|
|
778
|
+
chevronUpCircle: () => import("./ChevronUpCircle-DRUN_nTK.js").then((e) => e.default),
|
|
779
|
+
chevronUpCircleFilled: () => import("./ChevronUpCircleFilled-DehyXbZK.js").then((e) => e.default),
|
|
780
|
+
chevronsDown: () => import("./ChevronsDown-Lh2I5g0q.js").then((e) => e.default),
|
|
781
|
+
chevronsLeft: () => import("./ChevronsLeft-Dfl7AHgm.js").then((e) => e.default),
|
|
782
|
+
chevronsRight: () => import("./ChevronsRight-BN_IZIoy.js").then((e) => e.default),
|
|
783
|
+
chevronsUp: () => import("./ChevronsUp-BfPLVHMy.js").then((e) => e.default),
|
|
784
|
+
clock: () => import("./Clock-CSuR6yaZ.js").then((e) => e.default),
|
|
785
|
+
close: () => import("./Close-Q4saba4i.js").then((e) => e.default),
|
|
786
|
+
closeCircle: () => import("./CloseCircle-CvQ3NuZa.js").then((e) => e.default),
|
|
787
|
+
closeCircleFilled: () => import("./CloseCircleFilled-D2iZDSfq.js").then((e) => e.default),
|
|
788
|
+
closeOctagon: () => import("./CloseOctagon-DMLRi0q5.js").then((e) => e.default),
|
|
789
|
+
closeOctagonFilled: () => import("./CloseOctagonFilled-CMwoRq8j.js").then((e) => e.default),
|
|
790
|
+
cloudArrowUp: () => import("./CloudArrowUp-C2uwNhcc.js").then((e) => e.default),
|
|
791
|
+
code: () => import("./Code-ohqcUUQN.js").then((e) => e.default),
|
|
792
|
+
copy: () => import("./Copy-CpvqWx-k.js").then((e) => e.default),
|
|
793
|
+
dot: () => import("./Dot-Cumkgd-m.js").then((e) => e.default),
|
|
794
|
+
download: () => import("./Download-BJ_DfleZ.js").then((e) => e.default),
|
|
795
|
+
ellipsis: () => import("./Ellipsis-CpY1HejQ.js").then((e) => e.default),
|
|
796
|
+
ellipsisVertical: () => import("./EllipsisVertical-CEEYMsqG.js").then((e) => e.default),
|
|
797
|
+
exclamationMark: () => import("./ExclamationMark-exzrOBwL.js").then((e) => e.default),
|
|
798
|
+
externalLink: () => import("./ExternalLink-eS9P88AV.js").then((e) => e.default),
|
|
799
|
+
eye: () => import("./Eye-w9TfhO68.js").then((e) => e.default),
|
|
800
|
+
eyeOff: () => import("./EyeOff-DUEm4ukn.js").then((e) => e.default),
|
|
801
|
+
file: () => import("./File-Cybg1CXH.js").then((e) => e.default),
|
|
802
|
+
fileInput: () => import("./FileInput-1n1FWyo-.js").then((e) => e.default),
|
|
803
|
+
filter: () => import("./Filter-D9y9ugj2.js").then((e) => e.default),
|
|
804
|
+
folder: () => import("./Folder-CU8qYUHQ.js").then((e) => e.default),
|
|
805
|
+
gridView: () => import("./GridView-BPdfFYj_.js").then((e) => e.default),
|
|
806
|
+
home: () => import("./Home-ChwjHVJb.js").then((e) => e.default),
|
|
807
|
+
image: () => import("./Image-ChylX7xd.js").then((e) => e.default),
|
|
808
|
+
link: () => import("./Link-BKFFnXyT.js").then((e) => e.default),
|
|
809
|
+
listView: () => import("./ListView-U-9qAnWr.js").then((e) => e.default),
|
|
810
|
+
lock: () => import("./Lock-Bwz5_UjA.js").then((e) => e.default),
|
|
811
|
+
logIn: () => import("./LogIn-U5Bnfjit.js").then((e) => e.default),
|
|
812
|
+
logOut: () => import("./LogOut-CX1os0_t.js").then((e) => e.default),
|
|
813
|
+
mail: () => import("./Mail-B2VEFWPt.js").then((e) => e.default),
|
|
814
|
+
map: () => import("./Map-D5XWb3YY.js").then((e) => e.default),
|
|
815
|
+
megaphone: () => import("./Megaphone-Do5-_w2j.js").then((e) => e.default),
|
|
816
|
+
menu: () => import("./Menu-Brh_TbFf.js").then((e) => e.default),
|
|
817
|
+
minus: () => import("./Minus-CueXUCgb.js").then((e) => e.default),
|
|
818
|
+
minusCircle: () => import("./MinusCircle-DUmUcGyz.js").then((e) => e.default),
|
|
819
|
+
minusCircleFilled: () => import("./MinusCircleFilled-Cq7IrW21.js").then((e) => e.default),
|
|
820
|
+
mobile: () => import("./Mobile-D7KMmpMV.js").then((e) => e.default),
|
|
821
|
+
move: () => import("./Move-CX01BEbW.js").then((e) => e.default),
|
|
822
|
+
notification: () => import("./Notification-Ds-KwATs.js").then((e) => e.default),
|
|
823
|
+
play: () => import("./Play-nTzXnaQP.js").then((e) => e.default),
|
|
824
|
+
plus: () => import("./Plus-Dh_kC216.js").then((e) => e.default),
|
|
825
|
+
plusCircle: () => import("./PlusCircle-CdRf8LPK.js").then((e) => e.default),
|
|
826
|
+
plusCircleFilled: () => import("./PlusCircleFilled-DfOMIUx7.js").then((e) => e.default),
|
|
827
|
+
questionMark: () => import("./QuestionMark-DOiTgLQi.js").then((e) => e.default),
|
|
828
|
+
questionMarkFilled: () => import("./QuestionMarkFilled-BBfYnj6K.js").then((e) => e.default),
|
|
829
|
+
reload: () => import("./Reload-_znxvsCW.js").then((e) => e.default),
|
|
830
|
+
search: () => import("./Search-BFX6nBPy.js").then((e) => e.default),
|
|
831
|
+
send: () => import("./Send-kLNJhN0M.js").then((e) => e.default),
|
|
832
|
+
settings: () => import("./Settings-Dx5Wxwg6.js").then((e) => e.default),
|
|
833
|
+
shield: () => import("./Shield-B3tfbLxv.js").then((e) => e.default),
|
|
834
|
+
shoppingCart: () => import("./ShoppingCart-DeZy9s4R.js").then((e) => e.default),
|
|
835
|
+
shuffle: () => import("./Shuffle-DPJBz-Nj.js").then((e) => e.default),
|
|
836
|
+
sparkles: () => import("./Sparkles-By12VrmM.js").then((e) => e.default),
|
|
837
|
+
split: () => import("./Split-ByvhCugq.js").then((e) => e.default),
|
|
838
|
+
thumbUp: () => import("./ThumbUp-BqCiXb5D.js").then((e) => e.default),
|
|
839
|
+
trashCan: () => import("./TrashCan-B1y4NnTj.js").then((e) => e.default),
|
|
840
|
+
upload: () => import("./Upload-DXqVc3Ix.js").then((e) => e.default),
|
|
841
|
+
userProfile: () => import("./UserProfile-DXmBd5b6.js").then((e) => e.default),
|
|
842
|
+
warning: () => import("./Warning-CE3ENqy1.js").then((e) => e.default),
|
|
843
|
+
warningFilled: () => import("./WarningFilled-B3b0eySj.js").then((e) => e.default),
|
|
844
|
+
warningOctagon: () => import("./WarningOctagon-DPF5eWBs.js").then((e) => e.default),
|
|
845
|
+
warningOctagonFilled: () => import("./WarningOctagonFilled-km4EmkS4.js").then((e) => e.default),
|
|
846
|
+
warningTriangle: () => import("./WarningTriangle-CKnOc38N.js").then((e) => e.default),
|
|
847
|
+
warningTriangleFilled: () => import("./WarningTriangleFilled-CbuoHfN_.js").then((e) => e.default),
|
|
848
|
+
zoomIn: () => import("./ZoomIn-BT-hX4R6.js").then((e) => e.default),
|
|
849
|
+
zoomOut: () => import("./ZoomOut-B6ILbkP8.js").then((e) => e.default)
|
|
850
|
+
};
|
|
851
|
+
async function $t(e) {
|
|
852
|
+
try {
|
|
853
|
+
return e in oe ? await oe[e]() : (console.warn(`[ucds-icon] Icon "${e}" was not found. Falling back to questionMark.`), await oe.questionMark());
|
|
854
|
+
} catch (t) {
|
|
855
|
+
return console.warn(`[ucds-icon] Failed to load "${e}". Falling back to questionMark.`, t), oe.questionMark();
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
const _t = ":host{display:inline-flex;align-items:center;justify-content:center;height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content}.icon{display:inline-flex;width:24px;height:24px;color:currentColor}.icon svg{width:100%;height:100%;fill:currentColor}.icon--color-primary{color:var(--ucds-color-icon-primary)}.icon--color-primary-inverse{color:var(--ucds-color-icon-primary-inverse)}.icon--color-action-rest{color:var(--ucds-color-action-rest)}.icon--color-berry{color:var(--ucds-color-palette-berry-600)}.icon--color-disabled{color:var(--ucds-color-forms-input-element-disabled)}.icon--size-16{width:16px;height:16px}.icon--size-20{width:20px;height:20px}.icon--size-24{width:24px;height:24px}.icon--size-32{width:32px;height:32px}";
|
|
859
|
+
var wt = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, H = (e, t, r, i) => {
|
|
860
|
+
for (var o = i > 1 ? void 0 : i ? kt(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
861
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
862
|
+
return i && o && wt(t, r, o), o;
|
|
863
|
+
};
|
|
864
|
+
let S = class extends p {
|
|
865
|
+
constructor() {
|
|
866
|
+
super(...arguments), this.size = "24", this.accessible = !1, this.svg = null;
|
|
867
|
+
}
|
|
868
|
+
async willUpdate(e) {
|
|
869
|
+
this.name === void 0 && (console.warn("[ucds-icon] No icon name was found. Falling back to questionMark."), this.name = "questionMark"), e.has("name") && this.name && (this.svg = await $t(this.name));
|
|
870
|
+
}
|
|
871
|
+
render() {
|
|
872
|
+
const e = {
|
|
873
|
+
icon: !0,
|
|
874
|
+
[`icon--color-${this.color}`]: !!this.color,
|
|
875
|
+
[`icon--size-${this.size}`]: !!this.size
|
|
876
|
+
};
|
|
877
|
+
let t = this.svg;
|
|
878
|
+
return t && (this.accessible ? this.accessibleLabel ? t = t.replace(/<svg\b([^>]*)>/, `<svg$1 role="img" aria-label="${this.accessibleLabel}">`) : console.warn("[ucds-icon] Icon marked as accessible, but no accessible-label provided.") : t = t.replace(/<svg\b([^>]*)>/, '<svg$1 aria-hidden="true">')), h`<span class=${Ge(e)}>${xt(t)}</span>`;
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
S.styles = [
|
|
882
|
+
p.styles,
|
|
883
|
+
w(_t)
|
|
884
|
+
];
|
|
885
|
+
H([
|
|
886
|
+
l({ type: String, attribute: "accessible-label" })
|
|
887
|
+
], S.prototype, "accessibleLabel", 2);
|
|
888
|
+
H([
|
|
889
|
+
l({ type: String })
|
|
890
|
+
], S.prototype, "color", 2);
|
|
891
|
+
H([
|
|
892
|
+
l({ type: String })
|
|
893
|
+
], S.prototype, "name", 2);
|
|
894
|
+
H([
|
|
895
|
+
l({ type: String })
|
|
896
|
+
], S.prototype, "size", 2);
|
|
897
|
+
H([
|
|
898
|
+
l({ type: Boolean })
|
|
899
|
+
], S.prototype, "accessible", 2);
|
|
900
|
+
H([
|
|
901
|
+
_e()
|
|
902
|
+
], S.prototype, "svg", 2);
|
|
903
|
+
S = H([
|
|
904
|
+
v("ucds-icon")
|
|
905
|
+
], S);
|
|
906
|
+
const At = ":host{display:block}button{all:unset}.btn{display:inline-block;position:relative;padding:16px 36px;border-radius:50px;font-size:16px;line-height:16px;font-weight:600;text-decoration:none;color:var(--ucds-color-text-primary-inverse);transition:background-color .5s ease;cursor:pointer}.btn:active{padding:14px 34px;margin:2px}.btn:focus-visible{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.btn.inverse{background-color:var(--ucds-color-action-inverse-rest);color:var(--ucds-color-text-primary)}.btn.inverse:hover,.btn.inverse:focus{background-color:var(--ucds-color-action-inverse-hover);border-color:var(--ucds-color-action-inverse-hover);color:var(--ucds-color-text-primary)}.btn.inverse:active{background-color:var(--ucds-color-action-inverse-active)}.btn.inverse:focus-visible{outline:var(--ucds-color-action-inverse-focus) 2px solid;outline-offset:2px}ucds-icon{color:currentColor;opacity:0;transition:right .5s,opacity .5s;position:absolute;right:50px;top:50%;transform:translateY(-50%)}.btn:hover ucds-icon,.btn:focus ucds-icon,.btn:active ucds-icon{opacity:1;right:12px}.solid{background-color:var(--ucds-color-action-rest)}.solid:hover,.solid:focus{background-color:var(--ucds-color-action-hover)}.solid:active{background-color:var(--ucds-color-action-active)}.outline{padding:14px 34px;border:2px solid var(--ucds-color-action-secondary-rest);color:var(--ucds-color-action-secondary-rest)}.outline:hover,.outline:focus,.outline:active{color:var(--ucds-color-text-primary-inverse)}.outline:hover,.outline:focus{background-color:var(--ucds-color-action-secondary-hover);border-color:var(--ucds-color-action-secondary-hover)}.outline:active{padding:12px 32px;background-color:var(--ucds-color-action-secondary-active);border-color:var(--ucds-color-action-secondary-active)}.outline.inverse{background-color:transparent;color:var(--ucds-color-text-primary-inverse);border-color:var(--ucds-color-action-inverse-rest)}.solid-accent{background-color:var(--ucds-color-action-secondary-rest);border-color:var(--ucds-color-action-secondary-rest);color:var(--ucds-color-text-primary-inverse)}.solid-accent:hover,.solid-accent:focus{background-color:var(--ucds-color-action-secondary-hover)}.solid-accent:active{background-color:var(--ucds-color-action-secondary-active)}";
|
|
907
|
+
var Ct = Object.defineProperty, St = Object.getOwnPropertyDescriptor, ee = (e, t, r, i) => {
|
|
908
|
+
for (var o = i > 1 ? void 0 : i ? St(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
909
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
910
|
+
return i && o && Ct(t, r, o), o;
|
|
911
|
+
};
|
|
912
|
+
let N = class extends p {
|
|
913
|
+
constructor() {
|
|
914
|
+
super(...arguments), this._variant = "solid", this.href = "", this.type = "button", this.inverse = !1;
|
|
915
|
+
}
|
|
916
|
+
get variant() {
|
|
917
|
+
return this._variant;
|
|
918
|
+
}
|
|
919
|
+
set variant(e) {
|
|
920
|
+
const t = ["solid", "outline", "solid-accent"];
|
|
921
|
+
this._variant = t.includes(e) ? e : "solid";
|
|
922
|
+
}
|
|
923
|
+
handleClick(e) {
|
|
924
|
+
if (this.type === "submit") {
|
|
925
|
+
const t = this.closest("form");
|
|
926
|
+
t && (e.preventDefault(), t.requestSubmit());
|
|
927
|
+
} else if (this.type === "reset") {
|
|
928
|
+
const t = this.closest("form");
|
|
929
|
+
t && (e.preventDefault(), t.reset());
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
render() {
|
|
933
|
+
const e = `btn ${this.variant} ${this.inverse ? "inverse" : ""}`, t = h`
|
|
934
|
+
<slot></slot>
|
|
935
|
+
<ucds-icon name="arrowRight" size="20"></ucds-icon>
|
|
936
|
+
`;
|
|
937
|
+
return this.href ? h`
|
|
938
|
+
<a class=${e} href=${qe(this.href)} @click=${this.handleClick}>
|
|
939
|
+
${t}
|
|
940
|
+
</a>` : h`
|
|
941
|
+
<button class=${e} type=${qe(this.type)} @click=${this.handleClick}>
|
|
942
|
+
${t}
|
|
943
|
+
</button>`;
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
N.styles = [
|
|
947
|
+
p.styles,
|
|
948
|
+
w(At)
|
|
949
|
+
];
|
|
950
|
+
ee([
|
|
951
|
+
l({ type: String })
|
|
952
|
+
], N.prototype, "variant", 1);
|
|
953
|
+
ee([
|
|
954
|
+
l({ type: String })
|
|
955
|
+
], N.prototype, "href", 2);
|
|
956
|
+
ee([
|
|
957
|
+
l({ type: String })
|
|
958
|
+
], N.prototype, "type", 2);
|
|
959
|
+
ee([
|
|
960
|
+
l({ type: Boolean })
|
|
961
|
+
], N.prototype, "inverse", 2);
|
|
962
|
+
N = ee([
|
|
963
|
+
v("ucds-button")
|
|
964
|
+
], N);
|
|
965
|
+
const Ot = ".button-group{display:flex;gap:16px;flex-direction:row;align-items:flex-start;flex-wrap:wrap}.button-group.align-center{align-items:center}.button-group.vertical{flex-direction:column}.button-group.horizontal.align-center{justify-content:center}";
|
|
966
|
+
var Pt = Object.defineProperty, Et = Object.getOwnPropertyDescriptor, we = (e, t, r, i) => {
|
|
967
|
+
for (var o = i > 1 ? void 0 : i ? Et(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
968
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
969
|
+
return i && o && Pt(t, r, o), o;
|
|
970
|
+
};
|
|
971
|
+
let X = class extends p {
|
|
972
|
+
constructor() {
|
|
973
|
+
super(...arguments), this.alignment = "start", this.vertical = !1;
|
|
974
|
+
}
|
|
975
|
+
render() {
|
|
976
|
+
return h`
|
|
977
|
+
<div class="button-group
|
|
978
|
+
${`align-${this.alignment}`}
|
|
979
|
+
${this.vertical ? "vertical" : "horizontal"}
|
|
980
|
+
">
|
|
981
|
+
<slot></slot>
|
|
982
|
+
</div>
|
|
983
|
+
`;
|
|
984
|
+
}
|
|
985
|
+
};
|
|
986
|
+
X.styles = [
|
|
987
|
+
p.styles,
|
|
988
|
+
w(Ot)
|
|
989
|
+
];
|
|
990
|
+
we([
|
|
991
|
+
l({ type: String })
|
|
992
|
+
], X.prototype, "alignment", 2);
|
|
993
|
+
we([
|
|
994
|
+
l({ type: Boolean, reflect: !0 })
|
|
995
|
+
], X.prototype, "vertical", 2);
|
|
996
|
+
X = we([
|
|
997
|
+
v("ucds-button-group")
|
|
998
|
+
], X);
|
|
999
|
+
var It = Object.defineProperty, Tt = Object.getOwnPropertyDescriptor, Je = (e, t, r, i) => {
|
|
1000
|
+
for (var o = i > 1 ? void 0 : i ? Tt(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1001
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
1002
|
+
return i && o && It(t, r, o), o;
|
|
1003
|
+
};
|
|
1004
|
+
let le = class extends D {
|
|
1005
|
+
constructor() {
|
|
1006
|
+
super(...arguments), this.text = "";
|
|
1007
|
+
}
|
|
1008
|
+
get errorText() {
|
|
1009
|
+
return this.text.trim() || "An error has occurred.";
|
|
1010
|
+
}
|
|
1011
|
+
render() {
|
|
1012
|
+
return h`
|
|
1013
|
+
<span class="error-text">
|
|
1014
|
+
<ucds-icon name="warningTriangleFilled" size="20" color="action-rest"></ucds-icon>
|
|
1015
|
+
${this.errorText}
|
|
1016
|
+
</span>
|
|
1017
|
+
`;
|
|
1018
|
+
}
|
|
1019
|
+
};
|
|
1020
|
+
le.styles = ce`
|
|
1021
|
+
|
|
1022
|
+
:host {
|
|
1023
|
+
font-size: 14px;
|
|
1024
|
+
line-height: 18px;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.error-text {
|
|
1028
|
+
display: flex;
|
|
1029
|
+
gap: 4px;
|
|
1030
|
+
vertical-align: center;
|
|
1031
|
+
color: var(--ucds-color-feedback-error-light);
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
ucds-icon {
|
|
1035
|
+
fill: var(--ucds-color-feedback-error-light);
|
|
1036
|
+
}
|
|
1037
|
+
`;
|
|
1038
|
+
Je([
|
|
1039
|
+
l({ type: String })
|
|
1040
|
+
], le.prototype, "text", 2);
|
|
1041
|
+
le = Je([
|
|
1042
|
+
v("form-error-message")
|
|
1043
|
+
], le);
|
|
1044
|
+
var Dt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, ke = (e, t, r, i) => {
|
|
1045
|
+
for (var o = i > 1 ? void 0 : i ? Rt(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1046
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
1047
|
+
return i && o && Dt(t, r, o), o;
|
|
1048
|
+
};
|
|
1049
|
+
let Z = class extends D {
|
|
1050
|
+
constructor() {
|
|
1051
|
+
super(...arguments), this.text = "";
|
|
1052
|
+
}
|
|
1053
|
+
render() {
|
|
1054
|
+
return h`
|
|
1055
|
+
<span class="help-text" ?disabled="${this.disabled}">
|
|
1056
|
+
${this.text}
|
|
1057
|
+
</span>
|
|
1058
|
+
`;
|
|
1059
|
+
}
|
|
1060
|
+
};
|
|
1061
|
+
Z.styles = ce`
|
|
1062
|
+
|
|
1063
|
+
:host {
|
|
1064
|
+
font-size: 14px;
|
|
1065
|
+
line-height: 18px;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.help-text {
|
|
1069
|
+
display: flex;
|
|
1070
|
+
color: var(--ucds-color-text-secondary);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
[disabled] {
|
|
1074
|
+
color: var(--ucds-color-text-disabled);
|
|
1075
|
+
}
|
|
1076
|
+
`;
|
|
1077
|
+
ke([
|
|
1078
|
+
l({ type: String })
|
|
1079
|
+
], Z.prototype, "text", 2);
|
|
1080
|
+
ke([
|
|
1081
|
+
l({ type: Boolean, reflect: !0 })
|
|
1082
|
+
], Z.prototype, "disabled", 2);
|
|
1083
|
+
Z = ke([
|
|
1084
|
+
v("form-help-message")
|
|
1085
|
+
], Z);
|
|
1086
|
+
var Lt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, te = (e, t, r, i) => {
|
|
1087
|
+
for (var o = i > 1 ? void 0 : i ? qt(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1088
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
1089
|
+
return i && o && Lt(t, r, o), o;
|
|
1090
|
+
};
|
|
1091
|
+
let y = class extends D {
|
|
1092
|
+
constructor() {
|
|
1093
|
+
super(...arguments), this.for = "", this.text = "", this.disabled = !1, this.required = !1;
|
|
1094
|
+
}
|
|
1095
|
+
static requiredAsteriskTemplate() {
|
|
1096
|
+
return h`<span class="required-asterisk" aria-hidden="true">*</span><span class="visible-hidden">required</span>`;
|
|
1097
|
+
}
|
|
1098
|
+
render() {
|
|
1099
|
+
return h`
|
|
1100
|
+
<label class="form-label" for="${this.for}" ?disabled=${this.disabled}>
|
|
1101
|
+
${this.text}${this.required ? h`${y.requiredAsteriskTemplate()}` : c}
|
|
1102
|
+
</label>
|
|
1103
|
+
`;
|
|
1104
|
+
}
|
|
1105
|
+
};
|
|
1106
|
+
y.styles = ce`
|
|
1107
|
+
|
|
1108
|
+
:host {
|
|
1109
|
+
display: flex;
|
|
1110
|
+
line-height: 20px;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
.form-label {
|
|
1114
|
+
font-weight: var(--ucds-font-base-weight-bold);
|
|
1115
|
+
text-align: left;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.required-asterisk {
|
|
1119
|
+
margin-left: 4px;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
/* @todo: Better Way??? */
|
|
1123
|
+
.visible-hidden {
|
|
1124
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
1125
|
+
height: 1px;
|
|
1126
|
+
overflow: hidden;
|
|
1127
|
+
position: absolute;
|
|
1128
|
+
white-space: nowrap;
|
|
1129
|
+
width: 1px;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
[disabled] {
|
|
1133
|
+
color: var(--ucds-color-text-disabled);
|
|
1134
|
+
}
|
|
1135
|
+
`;
|
|
1136
|
+
te([
|
|
1137
|
+
l({ type: String })
|
|
1138
|
+
], y.prototype, "for", 2);
|
|
1139
|
+
te([
|
|
1140
|
+
l({ type: String })
|
|
1141
|
+
], y.prototype, "text", 2);
|
|
1142
|
+
te([
|
|
1143
|
+
l({ type: Boolean, reflect: !0 })
|
|
1144
|
+
], y.prototype, "disabled", 2);
|
|
1145
|
+
te([
|
|
1146
|
+
l({ type: Boolean })
|
|
1147
|
+
], y.prototype, "required", 2);
|
|
1148
|
+
y = te([
|
|
1149
|
+
v("form-label")
|
|
1150
|
+
], y);
|
|
1151
|
+
const Ut = ':host{display:block}.form-checkbox{display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing);width:var(--ucds-form-element-width);max-width:var(--ucds-form-element-maxwidth);--formRadioCheckboxHeight: 1.25rem;--checkmarkHeight: .625rem;--radioHeight: .625rem}.form-checkbox input[type=checkbox],.form-checkbox input[type=radio]{position:absolute;opacity:0}.form-checkbox input[type=checkbox]+label,.form-checkbox input[type=radio]+label{display:flex;position:relative;width:100%;max-width:555px;padding-left:28px;line-height:var(--formRadioCheckboxHeight);cursor:pointer}.form-checkbox input[type=checkbox]+label .checkbox-control,.form-checkbox input[type=radio]+label .checkbox-control{content:"";display:block;position:absolute;width:var(--formRadioCheckboxHeight);height:var(--formRadioCheckboxHeight);top:0;left:0;background-color:var(--ucds-color-palette-white);border:var(--ucds-form-element-border-width) solid var(--ucds-color-forms-input-border-rest);transition:background-color .5s ease,border-color .5s ease}.form-checkbox input[type=checkbox]:hover+label .checkbox-control,.form-checkbox input[type=radio]:hover+label .checkbox-control{border-color:var(--ucds-color-forms-input-border-hover)}.form-checkbox input[type=checkbox]:active:not(:disabled)+label .checkbox-control,.form-checkbox input[type=checkbox]:focus:not(:disabled)+label .checkbox-control,.form-checkbox input[type=radio]:active:not(:disabled)+label .checkbox-control,.form-checkbox input[type=radio]:focus:not(:disabled)+label .checkbox-control{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.form-checkbox input[type=checkbox]:checked+label .checkbox-control,.form-checkbox input[type=radio]:checked+label .checkbox-control{background-color:var(--ucds-color-forms-input-background-selected);border-color:var(--ucds-color-forms-input-border-selected)}.form-checkbox input[type=checkbox]:checked+label .checkbox-control ucds-icon,.form-checkbox input[type=radio]:checked+label .checkbox-control ucds-icon{color:var(--ucds-color-icon-primary-inverse)}.form-checkbox input[type=checkbox]:disabled+label,.form-checkbox input[type=radio]:disabled+label{color:var(--ucds-color-text-disabled);cursor:default}.form-checkbox input[type=checkbox]:disabled+label .checkbox-control,.form-checkbox input[type=radio]:disabled+label .checkbox-control{background-color:transparent;border-color:var(--ucds-color-forms-input-border-disabled)}.form-checkbox input[type=checkbox]:disabled:checked+label .checkbox-control,.form-checkbox input[type=radio]:disabled:checked+label .checkbox-control{background-color:var(--ucds-color-forms-input-background-disabled);border-color:var(--ucds-color-forms-input-border-disabled)}.form-checkbox input[type=checkbox][error]:not(:disabled)+label .checkbox-control,.form-checkbox input[type=checkbox][errors]:not(:disabled)+label .checkbox-control,.form-checkbox input[type=radio][error]:not(:disabled)+label .checkbox-control,.form-checkbox input[type=radio][errors]:not(:disabled)+label .checkbox-control{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.form-checkbox input[type=checkbox][error]:not(:disabled)+label .checkbox-control ucds-icon,.form-checkbox input[type=checkbox][errors]:not(:disabled)+label .checkbox-control ucds-icon,.form-checkbox input[type=radio][error]:not(:disabled)+label .checkbox-control ucds-icon,.form-checkbox input[type=radio][errors]:not(:disabled)+label .checkbox-control ucds-icon{color:var(--ucds-color-feedback-error-light)}.form-checkbox input[type=checkbox]+label .checkbox-control{border-radius:4px}';
|
|
1152
|
+
var Nt = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor, k = (e, t, r, i) => {
|
|
1153
|
+
for (var o = i > 1 ? void 0 : i ? Ht(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1154
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
1155
|
+
return i && o && Nt(t, r, o), o;
|
|
1156
|
+
};
|
|
1157
|
+
let g = class extends p {
|
|
1158
|
+
constructor() {
|
|
1159
|
+
super(), this.checkboxID = "checkbox", this.checkboxName = "", this.value = "", this.checked = !1, this.disabled = !1, this.required = !1, this.errors = !1, this.error = !1, this.internals = this.attachInternals();
|
|
1160
|
+
}
|
|
1161
|
+
// Update the internal form value.
|
|
1162
|
+
_updateInternals() {
|
|
1163
|
+
var t;
|
|
1164
|
+
this.internals.setFormValue(this.checked ? this.value : null, this.checked ? "true" : ""), this.setAttribute("aria-checked", String(this.checked));
|
|
1165
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input");
|
|
1166
|
+
e.checked = this.checked;
|
|
1167
|
+
}
|
|
1168
|
+
// Handle change event.
|
|
1169
|
+
_handleChange({ target: e }) {
|
|
1170
|
+
const t = e;
|
|
1171
|
+
this.checked = t.checked, this._updateInternals();
|
|
1172
|
+
}
|
|
1173
|
+
// Initialize component and warn if required properties have not been set.
|
|
1174
|
+
firstUpdated(e) {
|
|
1175
|
+
super.firstUpdated(e), this.form = this.internals.form, this._updateInternals(), this.checkboxName || console.error(`${this.localName}: Property 'name' is required and was not set.`), this.value || console.error(`${this.localName}: Property 'value' is required and was not set.`);
|
|
1176
|
+
}
|
|
1177
|
+
// Catch non-click changes.
|
|
1178
|
+
update(e) {
|
|
1179
|
+
super.update(e), e.has("checked") && e.get("checked") !== void 0 && this._updateInternals();
|
|
1180
|
+
}
|
|
1181
|
+
// Reset form state.
|
|
1182
|
+
formResetCallback() {
|
|
1183
|
+
this.checked = !1, this._updateInternals();
|
|
1184
|
+
}
|
|
1185
|
+
formStateRestoreCallback(e) {
|
|
1186
|
+
this.checked = String(e).toLowerCase() === "true";
|
|
1187
|
+
}
|
|
1188
|
+
render() {
|
|
1189
|
+
return h`
|
|
1190
|
+
<div class="form-checkbox">
|
|
1191
|
+
<input
|
|
1192
|
+
type="checkbox"
|
|
1193
|
+
id="${this.checkboxID}"
|
|
1194
|
+
name="${this.checkboxName}"
|
|
1195
|
+
.value="${this.value}"
|
|
1196
|
+
?checked="${this.checked}"
|
|
1197
|
+
?disabled="${this.disabled}"
|
|
1198
|
+
?required="${this.required}"
|
|
1199
|
+
?errors="${this.errors}"
|
|
1200
|
+
?error="${this.error}"
|
|
1201
|
+
@change=${this._handleChange}
|
|
1202
|
+
/>
|
|
1203
|
+
<label for="${this.checkboxID}" ?disabled=${this.disabled}>
|
|
1204
|
+
<span class="checkbox-control">
|
|
1205
|
+
${this.checked ? h`<ucds-icon name="checkmark" size="16"></ucds-icon>` : ""}
|
|
1206
|
+
</span>
|
|
1207
|
+
<span><slot>Checkbox Label</slot>${this.required ? h`${y.requiredAsteriskTemplate()}` : c}</span>
|
|
1208
|
+
</label>
|
|
1209
|
+
${this.error && !this.disabled ? h`<form-error-message text="${this.errorText}"></form-error-message>` : c}
|
|
1210
|
+
${this.helpText ? h`<form-help-message text="${this.helpText}" ?disabled="${this.disabled}"></form-help-message>` : c}
|
|
1211
|
+
</div>
|
|
1212
|
+
`;
|
|
1213
|
+
}
|
|
1214
|
+
};
|
|
1215
|
+
g.styles = [
|
|
1216
|
+
p.styles,
|
|
1217
|
+
y.styles,
|
|
1218
|
+
w(Ut)
|
|
1219
|
+
];
|
|
1220
|
+
g.formAssociated = !0;
|
|
1221
|
+
k([
|
|
1222
|
+
l({ type: String, attribute: "input-id" })
|
|
1223
|
+
], g.prototype, "checkboxID", 2);
|
|
1224
|
+
k([
|
|
1225
|
+
l({ type: String, attribute: "name" })
|
|
1226
|
+
], g.prototype, "checkboxName", 2);
|
|
1227
|
+
k([
|
|
1228
|
+
l({ type: String })
|
|
1229
|
+
], g.prototype, "value", 2);
|
|
1230
|
+
k([
|
|
1231
|
+
l({ type: Boolean, reflect: !0 })
|
|
1232
|
+
], g.prototype, "checked", 2);
|
|
1233
|
+
k([
|
|
1234
|
+
l({ type: Boolean, reflect: !0 })
|
|
1235
|
+
], g.prototype, "disabled", 2);
|
|
1236
|
+
k([
|
|
1237
|
+
l({ type: Boolean, reflect: !0 })
|
|
1238
|
+
], g.prototype, "required", 2);
|
|
1239
|
+
k([
|
|
1240
|
+
l({ type: Boolean, reflect: !0 })
|
|
1241
|
+
], g.prototype, "errors", 2);
|
|
1242
|
+
k([
|
|
1243
|
+
l({ type: Boolean, reflect: !0 })
|
|
1244
|
+
], g.prototype, "error", 2);
|
|
1245
|
+
k([
|
|
1246
|
+
l({ type: String, attribute: "error-text" })
|
|
1247
|
+
], g.prototype, "errorText", 2);
|
|
1248
|
+
k([
|
|
1249
|
+
l({ type: String, attribute: "help-text" })
|
|
1250
|
+
], g.prototype, "helpText", 2);
|
|
1251
|
+
g = k([
|
|
1252
|
+
v("ucds-checkbox")
|
|
1253
|
+
], g);
|
|
1254
|
+
const zt = ":host{display:block;max-width:100%}.chip{position:relative;display:inline-flex;flex-direction:row;align-items:center;gap:4px;max-width:100%;height:32px;padding:4px 10px 4px 12px;border-radius:50px;border:1px solid var(--ucds-color-action-secondary-rest);transition:background-color .5s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.chip .label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chip .label,.chip ucds-icon{color:var(--ucds-color-action-secondary-rest)}.chip:hover .label,.chip:hover ucds-icon,.chip:focus .label,.chip:focus ucds-icon,.chip:active .label,.chip:active ucds-icon{color:var(--ucds-color-text-primary-inverse)}.chip:hover,.chip:focus{background-color:var(--ucds-color-action-secondary-hover);border-color:var(--ucds-color-action-secondary-hover)}.chip:active{background-color:var(--ucds-color-action-secondary-active);border-color:var(--ucds-color-action-secondary-active);height:30px;padding-right:9px;padding-left:11px;margin:1px}.chip:focus-visible{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}";
|
|
1255
|
+
var Mt = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, he = (e, t, r, i) => {
|
|
1256
|
+
for (var o = i > 1 ? void 0 : i ? jt(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1257
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
1258
|
+
return i && o && Mt(t, r, o), o;
|
|
1259
|
+
};
|
|
1260
|
+
let B = class extends p {
|
|
1261
|
+
// Allow component .focus() to highlight the shadow chip element.
|
|
1262
|
+
focus() {
|
|
1263
|
+
var t;
|
|
1264
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[tabindex]");
|
|
1265
|
+
e == null || e.focus();
|
|
1266
|
+
}
|
|
1267
|
+
// Remove the Chip from the DOM.
|
|
1268
|
+
removeChip() {
|
|
1269
|
+
if (this.chipID) {
|
|
1270
|
+
const e = new CustomEvent("chipRemoved", {
|
|
1271
|
+
bubbles: !0,
|
|
1272
|
+
composed: !0,
|
|
1273
|
+
detail: { element: this }
|
|
1274
|
+
});
|
|
1275
|
+
this.dispatchEvent(e);
|
|
1276
|
+
}
|
|
1277
|
+
this.remove();
|
|
1278
|
+
}
|
|
1279
|
+
// Handle click event.
|
|
1280
|
+
_handleClick() {
|
|
1281
|
+
this.removeChip();
|
|
1282
|
+
}
|
|
1283
|
+
// Handle keydown event (backspace/delete to remove).
|
|
1284
|
+
_handleKeydown(e) {
|
|
1285
|
+
(e.key === "Backspace" || e.key === "Delete") && (e.preventDefault(), this.removeChip());
|
|
1286
|
+
}
|
|
1287
|
+
// Update the Aria label to include slot text + accessibility instructions.
|
|
1288
|
+
_handleSlotChange() {
|
|
1289
|
+
var t;
|
|
1290
|
+
const e = this._defaultSlotNodes;
|
|
1291
|
+
if (e[0].nodeType === Node.TEXT_NODE) {
|
|
1292
|
+
const r = (t = e[0].textContent) == null ? void 0 : t.trim();
|
|
1293
|
+
this.ariaLabel = `${r} (Press backspace/delete key to remove)`;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
render() {
|
|
1297
|
+
return h`
|
|
1298
|
+
<div id="${this.chipID ?? c}" class="chip" role="button" aria-label="${this.ariaLabel}" tabindex="0" @keydown="${this._handleKeydown}">
|
|
1299
|
+
<span class="label"><slot @slotchange="${this._handleSlotChange}">...</slot></span>
|
|
1300
|
+
<ucds-icon name="close" size="16" accessible-label="Remove" accessible="true" @click=${this._handleClick}></ucds-icon>
|
|
1301
|
+
</div>
|
|
1302
|
+
`;
|
|
1303
|
+
}
|
|
1304
|
+
};
|
|
1305
|
+
B.styles = [
|
|
1306
|
+
p.styles,
|
|
1307
|
+
w(zt)
|
|
1308
|
+
];
|
|
1309
|
+
he([
|
|
1310
|
+
vt()
|
|
1311
|
+
], B.prototype, "_defaultSlotNodes", 2);
|
|
1312
|
+
he([
|
|
1313
|
+
l({ type: String })
|
|
1314
|
+
], B.prototype, "ariaLabel", 2);
|
|
1315
|
+
he([
|
|
1316
|
+
l({ type: String, attribute: "chip-id" })
|
|
1317
|
+
], B.prototype, "chipID", 2);
|
|
1318
|
+
B = he([
|
|
1319
|
+
v("ucds-chip")
|
|
1320
|
+
], B);
|
|
1321
|
+
const Bt = ":host{display:block}.chip-group{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px}";
|
|
1322
|
+
var Vt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, Xe = (e, t, r, i) => {
|
|
1323
|
+
for (var o = i > 1 ? void 0 : i ? Ft(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1324
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
1325
|
+
return i && o && Vt(t, r, o), o;
|
|
1326
|
+
};
|
|
1327
|
+
let ae = class extends p {
|
|
1328
|
+
// Focus the next sibling of the Chip being removed.
|
|
1329
|
+
_focusNextSiblingOf(e) {
|
|
1330
|
+
const t = this._defaultSlotNodes, r = t.indexOf(e);
|
|
1331
|
+
if (r >= 0) {
|
|
1332
|
+
const i = t[r + 1] || t[r - 1];
|
|
1333
|
+
i instanceof HTMLElement && i.focus();
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
// Capture the removal of a child Chip.
|
|
1337
|
+
_onChildRemove(e) {
|
|
1338
|
+
const t = e.detail.element;
|
|
1339
|
+
this._focusNextSiblingOf(t);
|
|
1340
|
+
}
|
|
1341
|
+
connectedCallback() {
|
|
1342
|
+
super.connectedCallback && super.connectedCallback(), this.addEventListener("chipRemoved", this._onChildRemove);
|
|
1343
|
+
}
|
|
1344
|
+
disconnectedCallback() {
|
|
1345
|
+
super.disconnectedCallback && super.disconnectedCallback(), this.removeEventListener("chipRemoved", this._onChildRemove);
|
|
1346
|
+
}
|
|
1347
|
+
render() {
|
|
1348
|
+
return h`
|
|
1349
|
+
<div class="chip-group">
|
|
1350
|
+
<slot></slot>
|
|
1351
|
+
</div>
|
|
1352
|
+
`;
|
|
1353
|
+
}
|
|
1354
|
+
};
|
|
1355
|
+
ae.styles = [
|
|
1356
|
+
p.styles,
|
|
1357
|
+
w(Bt)
|
|
1358
|
+
];
|
|
1359
|
+
Xe([
|
|
1360
|
+
Ve()
|
|
1361
|
+
], ae.prototype, "_defaultSlotNodes", 2);
|
|
1362
|
+
ae = Xe([
|
|
1363
|
+
v("ucds-chip-group")
|
|
1364
|
+
], ae);
|
|
1365
|
+
const Kt = ':host{position:relative;display:block}.dropdown-wrapper{display:flex;flex-direction:column;gap:8px;align-items:start}.dropdown,.menu,.toggle,.dropdown-wrapper{min-width:115px;max-width:var(--ucds-form-element-maxwidth);width:var(--ucds-form-element-width)}.dropdown{position:relative}.toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;height:48px;padding:0 var(--ucds-form-element-horizontal-padding);font-family:var(--ucds-font-proxima-nova-family);font-size:var(--ucds-font-base-size);border:var(--ucds-color-forms-input-border-rest) solid var(--ucds-form-element-border-width);border-radius:var(--ucds-form-element-border-radius);background-color:var(--ucds-color-forms-input-background-rest)}.toggle:focus{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.toggle .selected-label-wrapper{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toggle ucds-icon{color:var(--ucds-color-action-rest);transition:transform .5s ease}.toggle.error{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.toggle:hover{border-color:var(--ucds-color-forms-input-border-hover);cursor:pointer}.toggle.disabled{border-color:var(--ucds-color-forms-input-border-disabled);color:var(--ucds-color-text-disabled);cursor:not-allowed;pointer-events:none}.toggle.disabled ucds-icon{color:var(--ucds-color-forms-input-element-disabled)}.menu{position:absolute;background:var(--ucds-color-forms-input-background-rest);border:var(--ucds-color-forms-input-border-rest) solid var(--ucds-form-element-border-width);border-radius:var(--ucds-form-element-border-radius);display:none;cursor:pointer;list-style:none;margin:0;padding:12px;flex-direction:column;gap:8px;overflow-y:auto;z-index:100;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}:host([open]) .menu{display:flex}:host([open]) ucds-icon{transform:rotateX(180deg)}:host([data-open-direction="up"]) .menu{bottom:calc(100% + 8px)}:host([data-open-direction="down"]) .menu{top:calc(100% + 8px)}';
|
|
1366
|
+
var Wt = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor, $ = (e, t, r, i) => {
|
|
1367
|
+
for (var o = i > 1 ? void 0 : i ? Gt(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1368
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
1369
|
+
return i && o && Wt(t, r, o), o;
|
|
1370
|
+
};
|
|
1371
|
+
let m = class extends p {
|
|
1372
|
+
// == Constructor ==
|
|
1373
|
+
constructor() {
|
|
1374
|
+
super(), this.initialValue = "", this.initialLabel = "", this._isOutsideClickListenerAttached = !1, this.scrollHandler = () => this._adjustDropdownDirection(), this.resizeObserver = new ResizeObserver(() => this._adjustDropdownDirection()), this.errorText = "", this.inputId = "", this.label = "", this.name = "", this.selectedLabel = "- Select -", this.disabled = !1, this.error = !1, this.open = !1, this.required = !1, this.activeIndex = -1, this._value = "", this.internals = this.attachInternals();
|
|
1375
|
+
}
|
|
1376
|
+
// == Accessors ==
|
|
1377
|
+
/** Returns the current value of the dropdown. */
|
|
1378
|
+
get value() {
|
|
1379
|
+
return this._value;
|
|
1380
|
+
}
|
|
1381
|
+
/** Updates the value, triggers reactivity and form value update. */
|
|
1382
|
+
set value(e) {
|
|
1383
|
+
const t = this._value;
|
|
1384
|
+
this._value = e, this.internals.setFormValue(this._value), this.requestUpdate("value", t);
|
|
1385
|
+
}
|
|
1386
|
+
// == Lifecycle methods ==
|
|
1387
|
+
connectedCallback() {
|
|
1388
|
+
super.connectedCallback && super.connectedCallback(), this.addEventListener("keydown", this._handleKeydown), this._boundOutsideClickHandler = this._handleOutsideClick.bind(this);
|
|
1389
|
+
}
|
|
1390
|
+
disconnectedCallback() {
|
|
1391
|
+
super.disconnectedCallback && super.disconnectedCallback(), this.removeEventListener("keydown", this._handleKeydown), this._removeOutsideClickListener();
|
|
1392
|
+
}
|
|
1393
|
+
firstUpdated() {
|
|
1394
|
+
const e = this.items.find((t) => t.hasAttribute("selected"));
|
|
1395
|
+
queueMicrotask(() => {
|
|
1396
|
+
var t;
|
|
1397
|
+
!this.value && e ? (this.initialValue = e.value, this.initialLabel = (t = e.textContent) == null ? void 0 : t.trim(), this.value = this.initialValue, this.selectedLabel = this.initialLabel, this.activeIndex = this.items.indexOf(e)) : (this.initialValue = "", this.initialLabel = this.selectedLabel), this._syncSelectedItem();
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
// == Event handlers ==
|
|
1401
|
+
/** Handles keyboard navigation and interaction. */
|
|
1402
|
+
_handleKeydown(e) {
|
|
1403
|
+
var r, i;
|
|
1404
|
+
const t = (r = this.shadowRoot) == null ? void 0 : r.querySelector(".toggle");
|
|
1405
|
+
if (!this.open) {
|
|
1406
|
+
if (["ArrowDown", "ArrowUp", " "].includes(e.key)) {
|
|
1407
|
+
this._toggleMenu();
|
|
1408
|
+
const o = this.items.findIndex((s) => s.hasAttribute("selected"));
|
|
1409
|
+
this.activeIndex = o >= 0 ? o : 0, this.updateComplete.then(() => this._focusActiveItem()), e.preventDefault(), e.stopImmediatePropagation();
|
|
1410
|
+
} else if (["ArrowLeft", "ArrowRight"].includes(e.key)) {
|
|
1411
|
+
e.preventDefault(), e.stopImmediatePropagation();
|
|
1412
|
+
const o = this.items.find((d) => d.hasAttribute("selected")), s = o ? this.items.indexOf(o) : -1;
|
|
1413
|
+
let n = s;
|
|
1414
|
+
e.key === "ArrowLeft" ? n = Math.max(s - 1, 0) : e.key === "ArrowRight" && (n = Math.min(s + 1, this.items.length - 1)), n !== this.activeIndex && (this.activeIndex = n, this.value = this.items[this.activeIndex].value, this.selectedLabel = (i = this.items[this.activeIndex].textContent) == null ? void 0 : i.trim(), this._syncSelectedItem(), this.dispatchEvent(new CustomEvent("change", {
|
|
1415
|
+
detail: { value: this.value, selectedLabel: this.selectedLabel },
|
|
1416
|
+
bubbles: !0,
|
|
1417
|
+
composed: !0
|
|
1418
|
+
})));
|
|
1419
|
+
}
|
|
1420
|
+
return;
|
|
1421
|
+
}
|
|
1422
|
+
switch (e.key) {
|
|
1423
|
+
case "ArrowDown":
|
|
1424
|
+
e.preventDefault(), this.activeIndex = Math.min(this.activeIndex + 1, this.items.length - 1), this._focusActiveItem();
|
|
1425
|
+
break;
|
|
1426
|
+
case "ArrowUp":
|
|
1427
|
+
e.preventDefault(), this.activeIndex = Math.max(this.activeIndex - 1, 0), this._focusActiveItem();
|
|
1428
|
+
break;
|
|
1429
|
+
case "Escape":
|
|
1430
|
+
this._toggleMenu(), t == null || t.focus();
|
|
1431
|
+
break;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
/** Handles selection of an item via custom `dropdown-select` event. */
|
|
1435
|
+
_handleSelection(e) {
|
|
1436
|
+
this.value = e.detail.value, this.selectedLabel = e.detail.selectedLabel, this._syncSelectedItem(), queueMicrotask(() => {
|
|
1437
|
+
var i;
|
|
1438
|
+
const t = this.items.find((o) => o.hasAttribute("selected"));
|
|
1439
|
+
this.activeIndex = this.items.indexOf(t), this._toggleMenu();
|
|
1440
|
+
const r = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".toggle");
|
|
1441
|
+
r == null || r.focus();
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
/** Closes the dropdown when clicking outside. */
|
|
1445
|
+
_handleOutsideClick(e) {
|
|
1446
|
+
var t;
|
|
1447
|
+
if (this.open) {
|
|
1448
|
+
const r = e.composedPath(), i = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".menu");
|
|
1449
|
+
(!i || !r.includes(i)) && (this.open = !1, this._removeOutsideClickListener());
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
// == Form-associated methods ==
|
|
1453
|
+
/** Called when parent form is reset. */
|
|
1454
|
+
formResetCallback() {
|
|
1455
|
+
var t;
|
|
1456
|
+
this.value = this.initialValue;
|
|
1457
|
+
const e = this.items.find((r) => r.value === this.initialValue);
|
|
1458
|
+
e ? (this.selectedLabel = (t = e.textContent) == null ? void 0 : t.trim(), this.activeIndex = this.items.indexOf(e)) : (this.selectedLabel = this.initialLabel, this.activeIndex = -1), this._syncSelectedItem();
|
|
1459
|
+
}
|
|
1460
|
+
/** Called when form state is restored. */
|
|
1461
|
+
formStateRestoreCallback(e) {
|
|
1462
|
+
var r;
|
|
1463
|
+
const t = this.items.find((i) => i.value === e);
|
|
1464
|
+
t ? (this.selectedLabel = (r = t.textContent) == null ? void 0 : r.trim(), this.activeIndex = this.items.indexOf(t), this._syncSelectedItem(), this.value = e) : console.warn("No matching item found during restore");
|
|
1465
|
+
}
|
|
1466
|
+
// == Private methods ==
|
|
1467
|
+
/** Opens or closes the dropdown. */
|
|
1468
|
+
_toggleMenu() {
|
|
1469
|
+
this.disabled || (this.open = !this.open), this.open ? (this._adjustDropdownDirection(), window.addEventListener("scroll", this.scrollHandler, !0), window.addEventListener("resize", this.scrollHandler), this.resizeObserver.observe(this), this._isOutsideClickListenerAttached || setTimeout(() => {
|
|
1470
|
+
document.addEventListener("click", this._boundOutsideClickHandler), this._isOutsideClickListenerAttached = !0;
|
|
1471
|
+
}, 0)) : (this._removeOutsideClickListener(), window.removeEventListener("scroll", this.scrollHandler, !0), window.removeEventListener("resize", this.scrollHandler), this.resizeObserver.disconnect());
|
|
1472
|
+
}
|
|
1473
|
+
/** Marks selected item visually based on value. */
|
|
1474
|
+
_syncSelectedItem() {
|
|
1475
|
+
this.items.forEach((e) => {
|
|
1476
|
+
const t = e;
|
|
1477
|
+
t.selected = t.value === this.value;
|
|
1478
|
+
});
|
|
1479
|
+
}
|
|
1480
|
+
/** Determines if dropdown should open upward or downward based on viewport space. */
|
|
1481
|
+
_adjustDropdownDirection() {
|
|
1482
|
+
var n, d;
|
|
1483
|
+
const t = ((n = this.shadowRoot) == null ? void 0 : n.querySelector(".dropdown")).getBoundingClientRect(), r = t.top, i = window.innerHeight - t.bottom, o = i >= r ? "down" : "up";
|
|
1484
|
+
this.setAttribute("data-open-direction", o);
|
|
1485
|
+
const s = (d = this.shadowRoot) == null ? void 0 : d.querySelector(".menu");
|
|
1486
|
+
if (s) {
|
|
1487
|
+
const a = o === "down" ? i - 16 : r - 16;
|
|
1488
|
+
s.style.maxHeight = `${a}px`;
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
/** Focuses the currently active item (for keyboard nav). */
|
|
1492
|
+
_focusActiveItem() {
|
|
1493
|
+
var e, t;
|
|
1494
|
+
if (this.items.length > 0 && this.activeIndex > -1) {
|
|
1495
|
+
const r = (t = (e = this.items[this.activeIndex]) == null ? void 0 : e.shadowRoot) == null ? void 0 : t.querySelector(".dropdown-item");
|
|
1496
|
+
r == null || r.focus();
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
/** Helper to remove the outside click handler and update _isOutsideClickListenerAttached at the same time. */
|
|
1500
|
+
_removeOutsideClickListener() {
|
|
1501
|
+
this._isOutsideClickListenerAttached && (document.removeEventListener("click", this._boundOutsideClickHandler), this._isOutsideClickListenerAttached = !1);
|
|
1502
|
+
}
|
|
1503
|
+
// == Render ==
|
|
1504
|
+
render() {
|
|
1505
|
+
const e = {
|
|
1506
|
+
disabled: this.disabled,
|
|
1507
|
+
error: this.error
|
|
1508
|
+
};
|
|
1509
|
+
return h`
|
|
1510
|
+
<div class="dropdown-wrapper">
|
|
1511
|
+
${this.label ? h`
|
|
1512
|
+
<form-label id="${this.inputId}-label" for="${this.inputId}" text="${this.label}" ?required="${this.required}" ?disabled="${this.disabled}"></form-label>` : c}
|
|
1513
|
+
<div class="dropdown">
|
|
1514
|
+
<div class="toggle ${Ge(e)}"
|
|
1515
|
+
aria-disabled="${this.disabled ? !0 : c}"
|
|
1516
|
+
role="button"
|
|
1517
|
+
tabindex="${this.disabled ? "-1" : "0"}"
|
|
1518
|
+
@click="${this._toggleMenu}"
|
|
1519
|
+
@keydown=${this._handleKeydown}
|
|
1520
|
+
aria-expanded="${this.open}">
|
|
1521
|
+
<div class="selected-label-wrapper">
|
|
1522
|
+
${this.selectedLabel}
|
|
1523
|
+
</div>
|
|
1524
|
+
<ucds-icon name="chevronDown" size="24"></ucds-icon>
|
|
1525
|
+
</div>
|
|
1526
|
+
<div class="menu" ?open="${this.open}" role="listbox" aria-labelledby="${this.inputId}-label" @dropdown-select=${this._handleSelection}>
|
|
1527
|
+
<slot></slot>
|
|
1528
|
+
</div>
|
|
1529
|
+
</div>
|
|
1530
|
+
${this.error ? h`<form-error-message text="${this.errorText}"></form-error-message>` : c}
|
|
1531
|
+
</div>
|
|
1532
|
+
`;
|
|
1533
|
+
}
|
|
1534
|
+
};
|
|
1535
|
+
m.styles = [
|
|
1536
|
+
p.styles,
|
|
1537
|
+
w(Kt)
|
|
1538
|
+
];
|
|
1539
|
+
m.formAssociated = !0;
|
|
1540
|
+
$([
|
|
1541
|
+
l({ type: String, attribute: "error-text" })
|
|
1542
|
+
], m.prototype, "errorText", 2);
|
|
1543
|
+
$([
|
|
1544
|
+
l({ type: String, attribute: "input-id" })
|
|
1545
|
+
], m.prototype, "inputId", 2);
|
|
1546
|
+
$([
|
|
1547
|
+
l({ type: String })
|
|
1548
|
+
], m.prototype, "label", 2);
|
|
1549
|
+
$([
|
|
1550
|
+
l({ type: String, reflect: !0 })
|
|
1551
|
+
], m.prototype, "name", 2);
|
|
1552
|
+
$([
|
|
1553
|
+
l({ type: String, attribute: "selected-label" })
|
|
1554
|
+
], m.prototype, "selectedLabel", 2);
|
|
1555
|
+
$([
|
|
1556
|
+
l({ type: Boolean, reflect: !0 })
|
|
1557
|
+
], m.prototype, "disabled", 2);
|
|
1558
|
+
$([
|
|
1559
|
+
l({ type: Boolean, reflect: !0 })
|
|
1560
|
+
], m.prototype, "error", 2);
|
|
1561
|
+
$([
|
|
1562
|
+
l({ type: Boolean, reflect: !0 })
|
|
1563
|
+
], m.prototype, "open", 2);
|
|
1564
|
+
$([
|
|
1565
|
+
l({ type: Boolean, reflect: !0 })
|
|
1566
|
+
], m.prototype, "required", 2);
|
|
1567
|
+
$([
|
|
1568
|
+
_e()
|
|
1569
|
+
], m.prototype, "activeIndex", 2);
|
|
1570
|
+
$([
|
|
1571
|
+
_e()
|
|
1572
|
+
], m.prototype, "_value", 2);
|
|
1573
|
+
$([
|
|
1574
|
+
Ve({ selector: "ucds-dropdown-item" })
|
|
1575
|
+
], m.prototype, "items", 2);
|
|
1576
|
+
m = $([
|
|
1577
|
+
v("ucds-dropdown")
|
|
1578
|
+
], m);
|
|
1579
|
+
const Jt = ".dropdown-item{display:flex;gap:4px;align-items:center;padding:10px 6px 10px 26px;border-radius:8px}.dropdown-item ucds-icon{display:none}.dropdown-item .dropdown-item-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-item:hover,.dropdown-item:active,.dropdown-item:focus{background-color:var(--ucds-color-palette-berry-900);outline:none}.dropdown-item.selected{padding-left:6px}.dropdown-item.selected ucds-icon{display:inline-flex}";
|
|
1580
|
+
var Xt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, Ae = (e, t, r, i) => {
|
|
1581
|
+
for (var o = i > 1 ? void 0 : i ? Zt(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1582
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
1583
|
+
return i && o && Xt(t, r, o), o;
|
|
1584
|
+
};
|
|
1585
|
+
let Y = class extends p {
|
|
1586
|
+
constructor() {
|
|
1587
|
+
super(...arguments), this.value = "", this.selected = !1;
|
|
1588
|
+
}
|
|
1589
|
+
// == Private methods ==
|
|
1590
|
+
/** Called when the item is clicked or activated via keyboard. */
|
|
1591
|
+
_select() {
|
|
1592
|
+
var t;
|
|
1593
|
+
const e = (t = this.textContent) == null ? void 0 : t.trim();
|
|
1594
|
+
this.selected = !0, this.dispatchEvent(new CustomEvent("dropdown-select", {
|
|
1595
|
+
detail: { value: this.value, selectedLabel: e },
|
|
1596
|
+
bubbles: !0,
|
|
1597
|
+
composed: !0
|
|
1598
|
+
}));
|
|
1599
|
+
}
|
|
1600
|
+
/** Handle Enter, Tab, or Esc key to activate the item. */
|
|
1601
|
+
_handleKeydown(e) {
|
|
1602
|
+
(e.key === "Enter" || e.key === "Tab" || e.key === "Esc") && (e.preventDefault(), this._select());
|
|
1603
|
+
}
|
|
1604
|
+
// == Render ==
|
|
1605
|
+
render() {
|
|
1606
|
+
return h`
|
|
1607
|
+
<div class="dropdown-item ${this.selected ? "selected" : ""}"
|
|
1608
|
+
aria-selected="${this.selected ? !0 : c}"
|
|
1609
|
+
role="option"
|
|
1610
|
+
tabindex="-1"
|
|
1611
|
+
@click=${this._select}
|
|
1612
|
+
@keydown=${this._handleKeydown}
|
|
1613
|
+
>
|
|
1614
|
+
<ucds-icon name="checkmark" size="16" color="berry"></ucds-icon>
|
|
1615
|
+
<span class="dropdown-item-text"><slot></slot></span>
|
|
1616
|
+
</div>
|
|
1617
|
+
`;
|
|
1618
|
+
}
|
|
1619
|
+
};
|
|
1620
|
+
Y.styles = [
|
|
1621
|
+
p.styles,
|
|
1622
|
+
w(Jt)
|
|
1623
|
+
];
|
|
1624
|
+
Ae([
|
|
1625
|
+
l({ type: String })
|
|
1626
|
+
], Y.prototype, "value", 2);
|
|
1627
|
+
Ae([
|
|
1628
|
+
l({ type: Boolean, reflect: !0 })
|
|
1629
|
+
], Y.prototype, "selected", 2);
|
|
1630
|
+
Y = Ae([
|
|
1631
|
+
v("ucds-dropdown-item")
|
|
1632
|
+
], Y);
|
|
1633
|
+
const Yt = ":host{display:block}.form-fieldset{width:var(--ucds-form-element-width);max-width:var(--ucds-form-element-maxwidth);display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing)}.form-fieldset fieldset{border:none;padding:0;margin:0;display:flex;flex-direction:column;gap:var(--ucds-form-component-inter-spacing)}.form-fieldset fieldset legend{font-weight:var(--ucds-font-base-weight-bold);margin-bottom:var(--ucds-form-component-inter-spacing);padding:0}.form-fieldset fieldset legend:disabled{color:var(--ucds-color-text-disabled)}.form-fieldset fieldset:not(:last-child){margin-bottom:var(--ucds-form-component-intra-spacing)}";
|
|
1634
|
+
var Qt = Object.defineProperty, er = Object.getOwnPropertyDescriptor, z = (e, t, r, i) => {
|
|
1635
|
+
for (var o = i > 1 ? void 0 : i ? er(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1636
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
1637
|
+
return i && o && Qt(t, r, o), o;
|
|
1638
|
+
};
|
|
1639
|
+
let O = class extends p {
|
|
1640
|
+
constructor() {
|
|
1641
|
+
super(...arguments), this.label = "", this.disabled = !1, this.required = !1, this.error = !1;
|
|
1642
|
+
}
|
|
1643
|
+
// Iterate over children (checkboxes/radios) and update disabled/errored states.
|
|
1644
|
+
_updateChildren() {
|
|
1645
|
+
if (this.hasChildNodes())
|
|
1646
|
+
for (const e of this.children)
|
|
1647
|
+
e.disabled = this.disabled, e.errors = this.error, e.error = !1, e.required = !1;
|
|
1648
|
+
}
|
|
1649
|
+
// Catch & handle any updates to the fieldset disabled/errored states.
|
|
1650
|
+
update(e) {
|
|
1651
|
+
super.update(e), (e.has("disabled") || e.has("error")) && this._updateChildren();
|
|
1652
|
+
}
|
|
1653
|
+
// Initialize component and warn if required properties have not been set.
|
|
1654
|
+
firstUpdated(e) {
|
|
1655
|
+
super.firstUpdated(e), this.label || console.error(`${this.localName}: Property 'label' is required and was not set.`);
|
|
1656
|
+
}
|
|
1657
|
+
render() {
|
|
1658
|
+
return h`
|
|
1659
|
+
<div class="form-fieldset">
|
|
1660
|
+
<fieldset ?error=${this.error} ?disabled=${this.disabled}>
|
|
1661
|
+
${this.label ? h`<legend ?disabled=${this.disabled}>${this.label}${this.required ? h`${y.requiredAsteriskTemplate()}` : c}</legend>` : c}
|
|
1662
|
+
<slot>Please provide at least two <ucds-radio> or <ucds-checkbox> child elements</slot>
|
|
1663
|
+
</fieldset>
|
|
1664
|
+
${this.error && !this.disabled ? h`<form-error-message text="${this.errorText}"></form-error-message>` : c}
|
|
1665
|
+
${this.helpText ? h`<form-help-message text="${this.helpText}" ?disabled="${this.disabled}"></form-help-message>` : c}
|
|
1666
|
+
</div>
|
|
1667
|
+
`;
|
|
1668
|
+
}
|
|
1669
|
+
};
|
|
1670
|
+
O.styles = [
|
|
1671
|
+
p.styles,
|
|
1672
|
+
y.styles,
|
|
1673
|
+
w(Yt)
|
|
1674
|
+
];
|
|
1675
|
+
z([
|
|
1676
|
+
l({ type: String })
|
|
1677
|
+
], O.prototype, "label", 2);
|
|
1678
|
+
z([
|
|
1679
|
+
l({ type: Boolean, reflect: !0 })
|
|
1680
|
+
], O.prototype, "disabled", 2);
|
|
1681
|
+
z([
|
|
1682
|
+
l({ type: Boolean, reflect: !0 })
|
|
1683
|
+
], O.prototype, "required", 2);
|
|
1684
|
+
z([
|
|
1685
|
+
l({ type: Boolean, reflect: !0 })
|
|
1686
|
+
], O.prototype, "error", 2);
|
|
1687
|
+
z([
|
|
1688
|
+
l({ type: String, attribute: "error-text" })
|
|
1689
|
+
], O.prototype, "errorText", 2);
|
|
1690
|
+
z([
|
|
1691
|
+
l({ type: String, attribute: "help-text" })
|
|
1692
|
+
], O.prototype, "helpText", 2);
|
|
1693
|
+
O = z([
|
|
1694
|
+
v("ucds-fieldset")
|
|
1695
|
+
], O);
|
|
1696
|
+
const tr = ':host{display:block}.form-radio{display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing);width:var(--ucds-form-element-width);max-width:var(--ucds-form-element-maxwidth);--formRadioCheckboxHeight: 1.25rem;--checkmarkHeight: .625rem;--radioHeight: .625rem}.form-radio input[type=checkbox],.form-radio input[type=radio]{position:absolute;opacity:0}.form-radio input[type=checkbox]+label,.form-radio input[type=radio]+label{display:flex;position:relative;width:100%;max-width:555px;padding-left:28px;line-height:var(--formRadioCheckboxHeight);cursor:pointer}.form-radio input[type=checkbox]+label .radio-control,.form-radio input[type=radio]+label .radio-control{content:"";display:block;position:absolute;width:var(--formRadioCheckboxHeight);height:var(--formRadioCheckboxHeight);top:0;left:0;background-color:var(--ucds-color-palette-white);border:var(--ucds-form-element-border-width) solid var(--ucds-color-forms-input-border-rest);transition:background-color .5s ease,border-color .5s ease}.form-radio input[type=checkbox]:hover+label .radio-control,.form-radio input[type=radio]:hover+label .radio-control{border-color:var(--ucds-color-forms-input-border-hover)}.form-radio input[type=checkbox]:active:not(:disabled)+label .radio-control,.form-radio input[type=checkbox]:focus:not(:disabled)+label .radio-control,.form-radio input[type=radio]:active:not(:disabled)+label .radio-control,.form-radio input[type=radio]:focus:not(:disabled)+label .radio-control{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.form-radio input[type=checkbox]:checked+label .radio-control,.form-radio input[type=radio]:checked+label .radio-control{background-color:var(--ucds-color-forms-input-background-selected);border-color:var(--ucds-color-forms-input-border-selected)}.form-radio input[type=checkbox]:checked+label .radio-control ucds-icon,.form-radio input[type=radio]:checked+label .radio-control ucds-icon{transform:scale(75%);color:var(--ucds-color-icon-primary-inverse)}.form-radio input[type=checkbox]:disabled+label,.form-radio input[type=radio]:disabled+label{color:var(--ucds-color-text-disabled);cursor:default}.form-radio input[type=checkbox]:disabled+label .radio-control,.form-radio input[type=radio]:disabled+label .radio-control{background-color:transparent;border-color:var(--ucds-color-forms-input-border-disabled)}.form-radio input[type=checkbox]:disabled:checked+label .radio-control,.form-radio input[type=radio]:disabled:checked+label .radio-control{background-color:var(--ucds-color-forms-input-background-disabled);border-color:var(--ucds-color-forms-input-border-disabled)}.form-radio input[type=checkbox][error]:not(:disabled)+label .radio-control,.form-radio input[type=checkbox][errors]:not(:disabled)+label .radio-control,.form-radio input[type=radio][error]:not(:disabled)+label .radio-control,.form-radio input[type=radio][errors]:not(:disabled)+label .radio-control{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.form-radio input[type=checkbox][error]:not(:disabled)+label .radio-control ucds-icon,.form-radio input[type=checkbox][errors]:not(:disabled)+label .radio-control ucds-icon,.form-radio input[type=radio][error]:not(:disabled)+label .radio-control ucds-icon,.form-radio input[type=radio][errors]:not(:disabled)+label .radio-control ucds-icon{color:var(--ucds-color-feedback-error-light)}.form-radio input[type=radio]+label .radio-control{border-radius:50%}';
|
|
1697
|
+
var rr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, A = (e, t, r, i) => {
|
|
1698
|
+
for (var o = i > 1 ? void 0 : i ? or(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1699
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
1700
|
+
return i && o && rr(t, r, o), o;
|
|
1701
|
+
};
|
|
1702
|
+
let x = class extends p {
|
|
1703
|
+
constructor() {
|
|
1704
|
+
super(), this.radioID = "radio", this.radioName = "", this.value = "", this.checked = !1, this.disabled = !1, this.required = !1, this.errors = !1, this.error = !1, this.internals = this.attachInternals();
|
|
1705
|
+
}
|
|
1706
|
+
// Iterate over sibling radios and reset form state.
|
|
1707
|
+
_uncheckOtherRadios() {
|
|
1708
|
+
var r;
|
|
1709
|
+
if (!this.radioName) {
|
|
1710
|
+
console.error(`${this.localName}: Property 'name' is required for radio button group functionality and was not set.`);
|
|
1711
|
+
return;
|
|
1712
|
+
}
|
|
1713
|
+
const e = this.form || this.getRootNode(), t = Array.from(e.querySelectorAll(this.localName));
|
|
1714
|
+
for (const i of t)
|
|
1715
|
+
i !== this && i.form === this.form && i.radioName === this.radioName && (i.checked = !1, (r = i._updateInternals) == null || r.call(i));
|
|
1716
|
+
}
|
|
1717
|
+
// Update the internal form value.
|
|
1718
|
+
_updateInternals() {
|
|
1719
|
+
var t;
|
|
1720
|
+
this.internals.setFormValue(this.checked ? this.value : null, this.checked ? "true" : ""), this.setAttribute("aria-checked", String(this.checked));
|
|
1721
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input");
|
|
1722
|
+
e.checked = this.checked;
|
|
1723
|
+
}
|
|
1724
|
+
// Handle change event.
|
|
1725
|
+
_handleChange({ target: e }) {
|
|
1726
|
+
const t = e;
|
|
1727
|
+
this.checked = t.checked, this._updateInternals(), this._uncheckOtherRadios();
|
|
1728
|
+
}
|
|
1729
|
+
// Initialize component and warn if required properties have not been set.
|
|
1730
|
+
firstUpdated(e) {
|
|
1731
|
+
super.firstUpdated(e), this.form = this.internals.form, this._updateInternals(), this.radioName || console.error(`${this.localName}: Property 'name' is required and was not set.`), this.value || console.error(`${this.localName}: Property 'value' is required and was not set.`);
|
|
1732
|
+
}
|
|
1733
|
+
// Catch non-click changes.
|
|
1734
|
+
update(e) {
|
|
1735
|
+
super.update(e), e.has("checked") && e.get("checked") !== void 0 && this._updateInternals();
|
|
1736
|
+
}
|
|
1737
|
+
// Reset form state.
|
|
1738
|
+
formResetCallback() {
|
|
1739
|
+
this.checked = !1, this._updateInternals();
|
|
1740
|
+
}
|
|
1741
|
+
formStateRestoreCallback(e) {
|
|
1742
|
+
this.checked = String(e).toLowerCase() === "true", this.checked && this._uncheckOtherRadios();
|
|
1743
|
+
}
|
|
1744
|
+
render() {
|
|
1745
|
+
return h`
|
|
1746
|
+
<div class="form-radio">
|
|
1747
|
+
<input
|
|
1748
|
+
type="radio"
|
|
1749
|
+
id="${this.radioID}"
|
|
1750
|
+
name="${this.radioName}"
|
|
1751
|
+
.value="${this.value}"
|
|
1752
|
+
?checked="${this.checked}"
|
|
1753
|
+
?disabled="${this.disabled}"
|
|
1754
|
+
?required="${this.required}"
|
|
1755
|
+
?errors="${this.errors}"
|
|
1756
|
+
?error="${this.error}"
|
|
1757
|
+
@change=${this._handleChange}
|
|
1758
|
+
/>
|
|
1759
|
+
<label for="${this.radioID}" ?disabled=${this.disabled}>
|
|
1760
|
+
<span class="radio-control">
|
|
1761
|
+
${this.checked ? h`<ucds-icon name="dot" size="16"></ucds-icon>` : ""}
|
|
1762
|
+
</span>
|
|
1763
|
+
<span><slot>Radio Label</slot>${this.required ? h`${y.requiredAsteriskTemplate()}` : c}</span>
|
|
1764
|
+
</label>
|
|
1765
|
+
${this.error && !this.disabled ? h`<form-error-message text="${this.errorText}"></form-error-message>` : c}
|
|
1766
|
+
${this.helpText ? h`<form-help-message text="${this.helpText}" ?disabled="${this.disabled}"></form-help-message>` : c}
|
|
1767
|
+
</div>
|
|
1768
|
+
`;
|
|
1769
|
+
}
|
|
1770
|
+
};
|
|
1771
|
+
x.styles = [
|
|
1772
|
+
p.styles,
|
|
1773
|
+
y.styles,
|
|
1774
|
+
w(tr)
|
|
1775
|
+
];
|
|
1776
|
+
x.formAssociated = !0;
|
|
1777
|
+
A([
|
|
1778
|
+
l({ type: String, attribute: "input-id" })
|
|
1779
|
+
], x.prototype, "radioID", 2);
|
|
1780
|
+
A([
|
|
1781
|
+
l({ type: String, attribute: "name" })
|
|
1782
|
+
], x.prototype, "radioName", 2);
|
|
1783
|
+
A([
|
|
1784
|
+
l({ type: String })
|
|
1785
|
+
], x.prototype, "value", 2);
|
|
1786
|
+
A([
|
|
1787
|
+
l({ type: Boolean, reflect: !0 })
|
|
1788
|
+
], x.prototype, "checked", 2);
|
|
1789
|
+
A([
|
|
1790
|
+
l({ type: Boolean, reflect: !0 })
|
|
1791
|
+
], x.prototype, "disabled", 2);
|
|
1792
|
+
A([
|
|
1793
|
+
l({ type: Boolean, reflect: !0 })
|
|
1794
|
+
], x.prototype, "required", 2);
|
|
1795
|
+
A([
|
|
1796
|
+
l({ type: Boolean, reflect: !0 })
|
|
1797
|
+
], x.prototype, "errors", 2);
|
|
1798
|
+
A([
|
|
1799
|
+
l({ type: Boolean, reflect: !0 })
|
|
1800
|
+
], x.prototype, "error", 2);
|
|
1801
|
+
A([
|
|
1802
|
+
l({ type: String, attribute: "error-text" })
|
|
1803
|
+
], x.prototype, "errorText", 2);
|
|
1804
|
+
A([
|
|
1805
|
+
l({ type: String, attribute: "help-text" })
|
|
1806
|
+
], x.prototype, "helpText", 2);
|
|
1807
|
+
x = A([
|
|
1808
|
+
v("ucds-radio")
|
|
1809
|
+
], x);
|
|
1810
|
+
const ir = ":host{display:block}.form-text{display:flex;flex-direction:column;gap:var(--ucds-form-component-intra-spacing);align-items:start;max-width:var(--ucds-form-element-maxwidth)}.form-text input{display:block;height:var(--ucds-form-element-height);width:var(--ucds-form-element-width);padding-left:var(--ucds-form-element-horizontal-padding);padding-right:var(--ucds-form-element-horizontal-padding);line-height:16px;background-color:var(--ucds-color-forms-input-background-rest);border:var(--ucds-form-element-border-width) solid var(--ucds-color-forms-input-border-rest);border-radius:var(--ucds-form-element-border-radius);transition:border-color .5s ease;text-align:left}.form-text input::-moz-placeholder{font-style:italic;color:var(--ucds-color-text-secondary)}.form-text input::placeholder{font-style:italic;color:var(--ucds-color-text-secondary)}.form-text input[error]{background-color:var(--ucds-color-feedback-error-background-light);border-color:var(--ucds-color-feedback-error-light)}.form-text input:hover{border-color:var(--ucds-color-forms-input-border-hover)}.form-text input:focus{outline:var(--ucds-color-action-focus) 2px solid;outline-offset:2px}.form-text.disabled input{color:var(--ucds-color-text-disabled);background-color:transparent;border-color:var(--ucds-color-forms-input-border-disabled)}.form-text.disabled input::-moz-placeholder{color:var(--ucds-color-text-disabled)}.form-text.disabled input::placeholder{color:var(--ucds-color-text-disabled)}";
|
|
1811
|
+
var sr = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, P = (e, t, r, i) => {
|
|
1812
|
+
for (var o = i > 1 ? void 0 : i ? nr(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1813
|
+
(n = e[s]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
1814
|
+
return i && o && sr(t, r, o), o;
|
|
1815
|
+
};
|
|
1816
|
+
let _ = class extends p {
|
|
1817
|
+
constructor() {
|
|
1818
|
+
super(), this.errorText = "", this.helpText = "", this.inputId = "", this.label = "", this._value = "", this.disabled = !1, this.error = !1, this.required = !1, this.internals = this.attachInternals();
|
|
1819
|
+
}
|
|
1820
|
+
get value() {
|
|
1821
|
+
return this._value;
|
|
1822
|
+
}
|
|
1823
|
+
set value(e) {
|
|
1824
|
+
const t = this._value;
|
|
1825
|
+
e !== t && (this._value = e, this.requestUpdate("value", t), this.internals.setFormValue(this._value));
|
|
1826
|
+
}
|
|
1827
|
+
updated(e) {
|
|
1828
|
+
e.has("label") && !this.label && console.error("Property 'label' is required and was not set.");
|
|
1829
|
+
}
|
|
1830
|
+
handleInput(e) {
|
|
1831
|
+
const t = e.target;
|
|
1832
|
+
this.value = t.value;
|
|
1833
|
+
}
|
|
1834
|
+
formResetCallback() {
|
|
1835
|
+
this.value = "";
|
|
1836
|
+
}
|
|
1837
|
+
formStateRestoreCallback(e) {
|
|
1838
|
+
this.value = e;
|
|
1839
|
+
}
|
|
1840
|
+
checkValidity() {
|
|
1841
|
+
return this.internals.checkValidity();
|
|
1842
|
+
}
|
|
1843
|
+
reportValidity() {
|
|
1844
|
+
return this.internals.reportValidity();
|
|
1845
|
+
}
|
|
1846
|
+
render() {
|
|
1847
|
+
return h`
|
|
1848
|
+
<div class="form-text ${this.disabled ? "disabled" : ""} ${this.required ? "required" : ""}">
|
|
1849
|
+
${this.label ? h`<form-label for="${this.inputId}" text="${this.label}" ?required="${this.required}" ?disabled="${this.disabled}"></form-label>` : c}
|
|
1850
|
+
<input
|
|
1851
|
+
type="text"
|
|
1852
|
+
id="${this.inputId}"
|
|
1853
|
+
?disabled=${this.disabled}
|
|
1854
|
+
?required=${this.required}
|
|
1855
|
+
?error=${this.error}
|
|
1856
|
+
.value="${this.value}"
|
|
1857
|
+
placeholder="${this.placeholder ?? c}"
|
|
1858
|
+
@input=${this.handleInput}>
|
|
1859
|
+
${this.error ? h`<form-error-message text="${this.errorText}"></form-error-message>` : c}
|
|
1860
|
+
${this.helpText ? h`<form-help-message text="${this.helpText}" ?disabled="${this.disabled}"></form-help-message>` : c}
|
|
1861
|
+
</div>
|
|
1862
|
+
`;
|
|
1863
|
+
}
|
|
1864
|
+
};
|
|
1865
|
+
_.styles = [
|
|
1866
|
+
p.styles,
|
|
1867
|
+
w(ir)
|
|
1868
|
+
];
|
|
1869
|
+
_.formAssociated = !0;
|
|
1870
|
+
P([
|
|
1871
|
+
l({ type: String, attribute: "error-text" })
|
|
1872
|
+
], _.prototype, "errorText", 2);
|
|
1873
|
+
P([
|
|
1874
|
+
l({ type: String, attribute: "help-text" })
|
|
1875
|
+
], _.prototype, "helpText", 2);
|
|
1876
|
+
P([
|
|
1877
|
+
l({ type: String, attribute: "input-id" })
|
|
1878
|
+
], _.prototype, "inputId", 2);
|
|
1879
|
+
P([
|
|
1880
|
+
l({ type: String })
|
|
1881
|
+
], _.prototype, "label", 2);
|
|
1882
|
+
P([
|
|
1883
|
+
l({ type: String, reflect: !0 })
|
|
1884
|
+
], _.prototype, "placeholder", 2);
|
|
1885
|
+
P([
|
|
1886
|
+
l({ type: Boolean, reflect: !0 })
|
|
1887
|
+
], _.prototype, "disabled", 2);
|
|
1888
|
+
P([
|
|
1889
|
+
l({ type: Boolean, reflect: !0 })
|
|
1890
|
+
], _.prototype, "error", 2);
|
|
1891
|
+
P([
|
|
1892
|
+
l({ type: Boolean, reflect: !0 })
|
|
1893
|
+
], _.prototype, "required", 2);
|
|
1894
|
+
_ = P([
|
|
1895
|
+
v("ucds-text-input")
|
|
1896
|
+
], _);
|
|
1897
|
+
export {
|
|
1898
|
+
N as Button,
|
|
1899
|
+
X as ButtonGroup,
|
|
1900
|
+
g as Checkbox,
|
|
1901
|
+
B as Chip,
|
|
1902
|
+
ae as ChipGroup,
|
|
1903
|
+
m as Dropdown,
|
|
1904
|
+
Y as DropdownItem,
|
|
1905
|
+
O as Fieldset,
|
|
1906
|
+
S as Icon,
|
|
1907
|
+
x as Radio,
|
|
1908
|
+
_ as TextInput
|
|
1909
|
+
};
|