@duyluonganduin/acl-web-components 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acl-web-components.cjs +1 -1
- package/dist/acl-web-components.d.ts +7 -0
- package/dist/acl-web-components.iife.js +154 -104
- package/dist/acl-web-components.js +54 -53
- package/dist/{anduin-suggestion-CQz20-Zh.js → anduin-suggestion-BcQlCfVG.js} +641 -565
- package/dist/anduin-suggestion-Dm0pHzzk.cjs +2409 -0
- package/dist/jsx.d.ts +8 -0
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +9 -0
- package/dist/react.js +104 -103
- package/package.json +1 -1
- package/dist/anduin-suggestion-CYvS3luw.cjs +0 -2359
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
let
|
|
6
|
+
const D1 = globalThis, b2 = D1.ShadowRoot && (D1.ShadyCSS === void 0 || D1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, m2 = Symbol(), V5 = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let T5 = class {
|
|
8
8
|
constructor(e, t, i) {
|
|
9
|
-
if (this._$cssResult$ = !0, i !==
|
|
9
|
+
if (this._$cssResult$ = !0, i !== m2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = e, this.t = t;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let e = this.o;
|
|
14
14
|
const t = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (b2 && e === void 0) {
|
|
16
16
|
const i = t !== void 0 && t.length === 1;
|
|
17
|
-
i && (e =
|
|
17
|
+
i && (e = V5.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && V5.set(t, e));
|
|
18
18
|
}
|
|
19
19
|
return e;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let O5 = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const p4 = (l) => new T5(typeof l == "string" ? l : l + "", void 0, m2), g = (l, ...e) => {
|
|
26
26
|
const t = l.length === 1 ? l[0] : e.reduce((i, o, r) => i + ((n) => {
|
|
27
27
|
if (n._$cssResult$ === !0) return n.cssText;
|
|
28
28
|
if (typeof n == "number") return n;
|
|
29
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
30
|
})(o) + l[r + 1], l[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
31
|
+
return new T5(t, l, m2);
|
|
32
|
+
}, u4 = (l, e) => {
|
|
33
|
+
if (b2) l.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
34
34
|
else for (const t of e) {
|
|
35
|
-
const i = document.createElement("style"), o =
|
|
35
|
+
const i = document.createElement("style"), o = D1.litNonce;
|
|
36
36
|
o !== void 0 && i.setAttribute("nonce", o), i.textContent = t.cssText, l.appendChild(i);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, L5 = b2 ? (l) => l : (l) => l instanceof CSSStyleSheet ? ((e) => {
|
|
39
39
|
let t = "";
|
|
40
40
|
for (const i of e.cssRules) t += i.cssText;
|
|
41
|
-
return
|
|
41
|
+
return p4(t);
|
|
42
42
|
})(l) : l;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: h4, defineProperty: v4, getOwnPropertyDescriptor: g4, getOwnPropertyNames: f4, getOwnPropertySymbols: H4, getPrototypeOf: V4 } = Object, N = globalThis, b5 = N.trustedTypes, L4 = b5 ? b5.emptyScript : "", J1 = N.reactiveElementPolyfillSupport, H1 = (l, e) => l, I1 = { toAttribute(l, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
l = l ?
|
|
51
|
+
l = l ? L4 : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,7 +73,7 @@ const { is: d4, defineProperty: c4, getOwnPropertyDescriptor: p4, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return t;
|
|
76
|
-
} },
|
|
76
|
+
} }, M2 = (l, e) => !h4(l, e), m5 = { attribute: !0, type: String, converter: I1, reflect: !1, useDefault: !1, hasChanged: M2 };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), N.litPropertyMetadata ?? (N.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let a1 = class extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
@@ -82,14 +82,14 @@ let a1 = class extends HTMLElement {
|
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(e, t =
|
|
85
|
+
static createProperty(e, t = m5) {
|
|
86
86
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
87
87
|
const i = Symbol(), o = this.getPropertyDescriptor(e, i, t);
|
|
88
|
-
o !== void 0 &&
|
|
88
|
+
o !== void 0 && v4(this.prototype, e, o);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(e, t, i) {
|
|
92
|
-
const { get: o, set: r } =
|
|
92
|
+
const { get: o, set: r } = g4(this.prototype, e) ?? { get() {
|
|
93
93
|
return this[t];
|
|
94
94
|
}, set(n) {
|
|
95
95
|
this[t] = n;
|
|
@@ -100,17 +100,17 @@ let a1 = class extends HTMLElement {
|
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(e) {
|
|
103
|
-
return this.elementProperties.get(e) ??
|
|
103
|
+
return this.elementProperties.get(e) ?? m5;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
106
|
if (this.hasOwnProperty(H1("elementProperties"))) return;
|
|
107
|
-
const e =
|
|
107
|
+
const e = V4(this);
|
|
108
108
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(H1("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H1("properties"))) {
|
|
113
|
-
const t = this.properties, i = [...
|
|
113
|
+
const t = this.properties, i = [...f4(t), ...H4(t)];
|
|
114
114
|
for (const o of i) this.createProperty(o, t[o]);
|
|
115
115
|
}
|
|
116
116
|
const e = this[Symbol.metadata];
|
|
@@ -129,8 +129,8 @@ let a1 = class extends HTMLElement {
|
|
|
129
129
|
const t = [];
|
|
130
130
|
if (Array.isArray(e)) {
|
|
131
131
|
const i = new Set(e.flat(1 / 0).reverse());
|
|
132
|
-
for (const o of i) t.unshift(
|
|
133
|
-
} else e !== void 0 && t.push(
|
|
132
|
+
for (const o of i) t.unshift(L5(o));
|
|
133
|
+
} else e !== void 0 && t.push(L5(e));
|
|
134
134
|
return t;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(e, t) {
|
|
@@ -159,7 +159,7 @@ let a1 = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return u4(e, this.constructor.elementStyles), e;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var e;
|
|
@@ -184,7 +184,7 @@ let a1 = class extends HTMLElement {
|
|
|
184
184
|
var r;
|
|
185
185
|
const i = this.constructor.elementProperties.get(e), o = this.constructor._$Eu(e, i);
|
|
186
186
|
if (o !== void 0 && i.reflect === !0) {
|
|
187
|
-
const n = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter :
|
|
187
|
+
const n = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : I1).toAttribute(t, i.type);
|
|
188
188
|
this._$Em = e, n == null ? this.removeAttribute(o) : this.setAttribute(o, n), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -192,7 +192,7 @@ let a1 = class extends HTMLElement {
|
|
|
192
192
|
var r, n;
|
|
193
193
|
const i = this.constructor, o = i._$Eh.get(e);
|
|
194
194
|
if (o !== void 0 && this._$Em !== o) {
|
|
195
|
-
const a = i.getPropertyOptions(o), d = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
195
|
+
const a = i.getPropertyOptions(o), d = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : I1;
|
|
196
196
|
this._$Em = o;
|
|
197
197
|
const p = d.fromAttribute(t, a.type);
|
|
198
198
|
this[o] = p ?? ((n = this._$Ej) == null ? void 0 : n.get(o)) ?? p, this._$Em = null;
|
|
@@ -202,7 +202,7 @@ let a1 = class extends HTMLElement {
|
|
|
202
202
|
var n;
|
|
203
203
|
if (e !== void 0) {
|
|
204
204
|
const a = this.constructor;
|
|
205
|
-
if (o === !1 && (r = this[e]), i ?? (i = a.getPropertyOptions(e)), !((i.hasChanged ??
|
|
205
|
+
if (o === !1 && (r = this[e]), i ?? (i = a.getPropertyOptions(e)), !((i.hasChanged ?? M2)(r, t) || i.useDefault && i.reflect && r === ((n = this._$Ej) == null ? void 0 : n.get(e)) && !this.hasAttribute(a._$Eu(e, i)))) return;
|
|
206
206
|
this.C(e, t, i);
|
|
207
207
|
}
|
|
208
208
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -278,56 +278,56 @@ let a1 = class extends HTMLElement {
|
|
|
278
278
|
firstUpdated(e) {
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
a1.elementStyles = [], a1.shadowRootOptions = { mode: "open" }, a1[H1("elementProperties")] = /* @__PURE__ */ new Map(), a1[H1("finalized")] = /* @__PURE__ */ new Map(),
|
|
281
|
+
a1.elementStyles = [], a1.shadowRootOptions = { mode: "open" }, a1[H1("elementProperties")] = /* @__PURE__ */ new Map(), a1[H1("finalized")] = /* @__PURE__ */ new Map(), J1 == null || J1({ ReactiveElement: a1 }), (N.reactiveElementVersions ?? (N.reactiveElementVersions = [])).push("2.1.2");
|
|
282
282
|
/**
|
|
283
283
|
* @license
|
|
284
284
|
* Copyright 2017 Google LLC
|
|
285
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
286
|
*/
|
|
287
|
-
const V1 = globalThis,
|
|
288
|
-
\f\r]`, g1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
290
|
-
function
|
|
291
|
-
if (!
|
|
292
|
-
return
|
|
287
|
+
const V1 = globalThis, M5 = (l) => l, T1 = V1.trustedTypes, y5 = T1 ? T1.createPolicy("lit-html", { createHTML: (l) => l }) : void 0, N5 = "$lit$", T = `lit$${Math.random().toFixed(9).slice(2)}$`, j5 = "?" + T, b4 = `<${j5}>`, e1 = document, L1 = () => e1.createComment(""), b1 = (l) => l === null || typeof l != "object" && typeof l != "function", y2 = Array.isArray, m4 = (l) => y2(l) || typeof (l == null ? void 0 : l[Symbol.iterator]) == "function", Q1 = `[
|
|
288
|
+
\f\r]`, g1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Z5 = /-->/g, _5 = />/g, K = RegExp(`>|${Q1}(?:([^\\s"'>=/]+)(${Q1}*=${Q1}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), x5 = /'/g, w5 = /"/g, U5 = /^(?:script|style|textarea|title)$/i, q5 = (l) => (e, ...t) => ({ _$litType$: l, strings: e, values: t }), s = q5(1), N1 = q5(2), t1 = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), R5 = /* @__PURE__ */ new WeakMap(), J = e1.createTreeWalker(e1, 129);
|
|
290
|
+
function W5(l, e) {
|
|
291
|
+
if (!y2(l) || !l.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
+
return y5 !== void 0 ? y5.createHTML(e) : e;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const M4 = (l, e) => {
|
|
295
295
|
const t = l.length - 1, i = [];
|
|
296
296
|
let o, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = g1;
|
|
297
297
|
for (let a = 0; a < t; a++) {
|
|
298
298
|
const d = l[a];
|
|
299
299
|
let p, u, v = -1, H = 0;
|
|
300
|
-
for (; H < d.length && (n.lastIndex = H, u = n.exec(d), u !== null); ) H = n.lastIndex, n === g1 ? u[1] === "!--" ? n =
|
|
300
|
+
for (; H < d.length && (n.lastIndex = H, u = n.exec(d), u !== null); ) H = n.lastIndex, n === g1 ? u[1] === "!--" ? n = Z5 : u[1] !== void 0 ? n = _5 : u[2] !== void 0 ? (U5.test(u[2]) && (o = RegExp("</" + u[2], "g")), n = K) : u[3] !== void 0 && (n = K) : n === K ? u[0] === ">" ? (n = o ?? g1, v = -1) : u[1] === void 0 ? v = -2 : (v = n.lastIndex - u[2].length, p = u[1], n = u[3] === void 0 ? K : u[3] === '"' ? w5 : x5) : n === w5 || n === x5 ? n = K : n === Z5 || n === _5 ? n = g1 : (n = K, o = void 0);
|
|
301
301
|
const f = n === K && l[a + 1].startsWith("/>") ? " " : "";
|
|
302
|
-
r += n === g1 ? d +
|
|
302
|
+
r += n === g1 ? d + b4 : v >= 0 ? (i.push(p), d.slice(0, v) + N5 + d.slice(v) + T + f) : d + T + (v === -2 ? a : f);
|
|
303
303
|
}
|
|
304
|
-
return [
|
|
304
|
+
return [W5(l, r + (l[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
305
305
|
};
|
|
306
306
|
class m1 {
|
|
307
307
|
constructor({ strings: e, _$litType$: t }, i) {
|
|
308
308
|
let o;
|
|
309
309
|
this.parts = [];
|
|
310
310
|
let r = 0, n = 0;
|
|
311
|
-
const a = e.length - 1, d = this.parts, [p, u] =
|
|
311
|
+
const a = e.length - 1, d = this.parts, [p, u] = M4(e, t);
|
|
312
312
|
if (this.el = m1.createElement(p, i), J.currentNode = this.el.content, t === 2 || t === 3) {
|
|
313
313
|
const v = this.el.content.firstChild;
|
|
314
314
|
v.replaceWith(...v.childNodes);
|
|
315
315
|
}
|
|
316
316
|
for (; (o = J.nextNode()) !== null && d.length < a; ) {
|
|
317
317
|
if (o.nodeType === 1) {
|
|
318
|
-
if (o.hasAttributes()) for (const v of o.getAttributeNames()) if (v.endsWith(
|
|
318
|
+
if (o.hasAttributes()) for (const v of o.getAttributeNames()) if (v.endsWith(N5)) {
|
|
319
319
|
const H = u[n++], f = o.getAttribute(v).split(T), Z = /([.?@])?(.*)/.exec(H);
|
|
320
|
-
d.push({ type: 1, index: r, name: Z[2], strings: f, ctor: Z[1] === "." ?
|
|
320
|
+
d.push({ type: 1, index: r, name: Z[2], strings: f, ctor: Z[1] === "." ? Z4 : Z[1] === "?" ? _4 : Z[1] === "@" ? x4 : X1 }), o.removeAttribute(v);
|
|
321
321
|
} else v.startsWith(T) && (d.push({ type: 6, index: r }), o.removeAttribute(v));
|
|
322
|
-
if (
|
|
322
|
+
if (U5.test(o.tagName)) {
|
|
323
323
|
const v = o.textContent.split(T), H = v.length - 1;
|
|
324
324
|
if (H > 0) {
|
|
325
|
-
o.textContent =
|
|
325
|
+
o.textContent = T1 ? T1.emptyScript : "";
|
|
326
326
|
for (let f = 0; f < H; f++) o.append(v[f], L1()), J.nextNode(), d.push({ type: 2, index: ++r });
|
|
327
327
|
o.append(v[H], L1());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
} else if (o.nodeType === 8) if (o.data ===
|
|
330
|
+
} else if (o.nodeType === 8) if (o.data === j5) d.push({ type: 2, index: r });
|
|
331
331
|
else {
|
|
332
332
|
let v = -1;
|
|
333
333
|
for (; (v = o.data.indexOf(T, v + 1)) !== -1; ) d.push({ type: 7, index: r }), v += T.length - 1;
|
|
@@ -347,7 +347,7 @@ function s1(l, e, t = l, i) {
|
|
|
347
347
|
const r = b1(e) ? void 0 : e._$litDirective$;
|
|
348
348
|
return (o == null ? void 0 : o.constructor) !== r && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), r === void 0 ? o = void 0 : (o = new r(l), o._$AT(l, t, i)), i !== void 0 ? (t._$Co ?? (t._$Co = []))[i] = o : t._$Cl = o), o !== void 0 && (e = s1(l, o._$AS(l, e.values), o, i)), e;
|
|
349
349
|
}
|
|
350
|
-
class
|
|
350
|
+
class y4 {
|
|
351
351
|
constructor(e, t) {
|
|
352
352
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
353
353
|
}
|
|
@@ -364,7 +364,7 @@ class L4 {
|
|
|
364
364
|
for (; d !== void 0; ) {
|
|
365
365
|
if (n === d.index) {
|
|
366
366
|
let p;
|
|
367
|
-
d.type === 2 ? p = new
|
|
367
|
+
d.type === 2 ? p = new S1(r, r.nextSibling, this, e) : d.type === 1 ? p = new d.ctor(r, d.name, d.strings, this, e) : d.type === 6 && (p = new w4(r, this, e)), this._$AV.push(p), d = i[++a];
|
|
368
368
|
}
|
|
369
369
|
n !== (d == null ? void 0 : d.index) && (r = J.nextNode(), n++);
|
|
370
370
|
}
|
|
@@ -375,7 +375,7 @@ class L4 {
|
|
|
375
375
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, t), t += i.strings.length - 2) : i._$AI(e[t])), t++;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
class
|
|
378
|
+
class S1 {
|
|
379
379
|
get _$AU() {
|
|
380
380
|
var e;
|
|
381
381
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
@@ -395,7 +395,7 @@ class z1 {
|
|
|
395
395
|
return this._$AB;
|
|
396
396
|
}
|
|
397
397
|
_$AI(e, t = this) {
|
|
398
|
-
e = s1(this, e, t), b1(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== t1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) :
|
|
398
|
+
e = s1(this, e, t), b1(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== t1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : m4(e) ? this.k(e) : this._(e);
|
|
399
399
|
}
|
|
400
400
|
O(e) {
|
|
401
401
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -408,29 +408,29 @@ class z1 {
|
|
|
408
408
|
}
|
|
409
409
|
$(e) {
|
|
410
410
|
var r;
|
|
411
|
-
const { values: t, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = m1.createElement(
|
|
411
|
+
const { values: t, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = m1.createElement(W5(i.h, i.h[0]), this.options)), i);
|
|
412
412
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(t);
|
|
413
413
|
else {
|
|
414
|
-
const n = new
|
|
414
|
+
const n = new y4(o, this), a = n.u(this.options);
|
|
415
415
|
n.p(t), this.T(a), this._$AH = n;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
_$AC(e) {
|
|
419
|
-
let t =
|
|
420
|
-
return t === void 0 &&
|
|
419
|
+
let t = R5.get(e.strings);
|
|
420
|
+
return t === void 0 && R5.set(e.strings, t = new m1(e)), t;
|
|
421
421
|
}
|
|
422
422
|
k(e) {
|
|
423
|
-
|
|
423
|
+
y2(this._$AH) || (this._$AH = [], this._$AR());
|
|
424
424
|
const t = this._$AH;
|
|
425
425
|
let i, o = 0;
|
|
426
|
-
for (const r of e) o === t.length ? t.push(i = new
|
|
426
|
+
for (const r of e) o === t.length ? t.push(i = new S1(this.O(L1()), this.O(L1()), this, this.options)) : i = t[o], i._$AI(r), o++;
|
|
427
427
|
o < t.length && (this._$AR(i && i._$AB.nextSibling, o), t.length = o);
|
|
428
428
|
}
|
|
429
429
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
430
430
|
var i;
|
|
431
431
|
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, t); e !== this._$AB; ) {
|
|
432
|
-
const o =
|
|
433
|
-
|
|
432
|
+
const o = M5(e).nextSibling;
|
|
433
|
+
M5(e).remove(), e = o;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
setConnected(e) {
|
|
@@ -438,7 +438,7 @@ class z1 {
|
|
|
438
438
|
this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class X1 {
|
|
442
442
|
get tagName() {
|
|
443
443
|
return this.element.tagName;
|
|
444
444
|
}
|
|
@@ -463,7 +463,7 @@ class G1 {
|
|
|
463
463
|
e === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
class
|
|
466
|
+
class Z4 extends X1 {
|
|
467
467
|
constructor() {
|
|
468
468
|
super(...arguments), this.type = 3;
|
|
469
469
|
}
|
|
@@ -471,7 +471,7 @@ class b4 extends G1 {
|
|
|
471
471
|
this.element[this.name] = e === c ? void 0 : e;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class _4 extends X1 {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(...arguments), this.type = 4;
|
|
477
477
|
}
|
|
@@ -479,7 +479,7 @@ class m4 extends G1 {
|
|
|
479
479
|
this.element.toggleAttribute(this.name, !!e && e !== c);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
class
|
|
482
|
+
class x4 extends X1 {
|
|
483
483
|
constructor(e, t, i, o, r) {
|
|
484
484
|
super(e, t, i, o, r), this.type = 5;
|
|
485
485
|
}
|
|
@@ -493,7 +493,7 @@ class M4 extends G1 {
|
|
|
493
493
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
class
|
|
496
|
+
class w4 {
|
|
497
497
|
constructor(e, t, i) {
|
|
498
498
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
|
|
499
499
|
}
|
|
@@ -504,14 +504,14 @@ class y4 {
|
|
|
504
504
|
s1(this, e);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
const
|
|
507
|
+
const e2 = V1.litHtmlPolyfillSupport;
|
|
508
|
+
e2 == null || e2(m1, S1), (V1.litHtmlVersions ?? (V1.litHtmlVersions = [])).push("3.3.2");
|
|
509
|
+
const R4 = (l, e, t) => {
|
|
510
510
|
const i = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
511
511
|
let o = i._$litPart$;
|
|
512
512
|
if (o === void 0) {
|
|
513
513
|
const r = (t == null ? void 0 : t.renderBefore) ?? null;
|
|
514
|
-
i._$litPart$ = o = new
|
|
514
|
+
i._$litPart$ = o = new S1(e.insertBefore(L1(), r), r, void 0, t ?? {});
|
|
515
515
|
}
|
|
516
516
|
return o._$AI(l), o;
|
|
517
517
|
};
|
|
@@ -532,7 +532,7 @@ let h = class extends a1 {
|
|
|
532
532
|
}
|
|
533
533
|
update(e) {
|
|
534
534
|
const t = this.render();
|
|
535
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
535
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = R4(t, this.renderRoot, this.renderOptions);
|
|
536
536
|
}
|
|
537
537
|
connectedCallback() {
|
|
538
538
|
var e;
|
|
@@ -546,17 +546,17 @@ let h = class extends a1 {
|
|
|
546
546
|
return t1;
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
|
-
var
|
|
550
|
-
h._$litElement$ = !0, h.finalized = !0, (
|
|
551
|
-
const
|
|
552
|
-
|
|
549
|
+
var I5;
|
|
550
|
+
h._$litElement$ = !0, h.finalized = !0, (I5 = Q.litElementHydrateSupport) == null || I5.call(Q, { LitElement: h });
|
|
551
|
+
const t2 = Q.litElementPolyfillSupport;
|
|
552
|
+
t2 == null || t2({ LitElement: h });
|
|
553
553
|
(Q.litElementVersions ?? (Q.litElementVersions = [])).push("4.2.2");
|
|
554
554
|
/**
|
|
555
555
|
* @license
|
|
556
556
|
* Copyright 2017 Google LLC
|
|
557
557
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
558
558
|
*/
|
|
559
|
-
const
|
|
559
|
+
const k4 = { attribute: !0, type: String, converter: I1, reflect: !1, hasChanged: M2 }, $4 = (l = k4, e, t) => {
|
|
560
560
|
const { kind: i, metadata: o } = t;
|
|
561
561
|
let r = globalThis.litPropertyMetadata.get(o);
|
|
562
562
|
if (r === void 0 && globalThis.litPropertyMetadata.set(o, r = /* @__PURE__ */ new Map()), i === "setter" && ((l = Object.create(l)).wrapped = !0), r.set(t.name, l), i === "accessor") {
|
|
@@ -578,7 +578,7 @@ const _4 = { attribute: !0, type: String, converter: D1, reflect: !1, hasChanged
|
|
|
578
578
|
throw Error("Unsupported decorator location: " + i);
|
|
579
579
|
};
|
|
580
580
|
function C(l) {
|
|
581
|
-
return (e, t) => typeof t == "object" ?
|
|
581
|
+
return (e, t) => typeof t == "object" ? $4(l, e, t) : ((i, o, r) => {
|
|
582
582
|
const n = o.hasOwnProperty(r);
|
|
583
583
|
return o.constructor.createProperty(r, i), n ? Object.getOwnPropertyDescriptor(o, r) : void 0;
|
|
584
584
|
})(l, e, t);
|
|
@@ -596,7 +596,7 @@ function M(l) {
|
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
const
|
|
599
|
+
const E4 = (l, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(l, e, t), t);
|
|
600
600
|
/**
|
|
601
601
|
* @license
|
|
602
602
|
* Copyright 2017 Google LLC
|
|
@@ -608,17 +608,17 @@ function R(l, e) {
|
|
|
608
608
|
var a;
|
|
609
609
|
return ((a = n.renderRoot) == null ? void 0 : a.querySelector(l)) ?? null;
|
|
610
610
|
};
|
|
611
|
-
return
|
|
611
|
+
return E4(t, i, { get() {
|
|
612
612
|
return r(this);
|
|
613
613
|
} });
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
var
|
|
616
|
+
var A4 = Object.defineProperty, G5 = (l, e, t, i) => {
|
|
617
617
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
618
618
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
619
|
-
return o &&
|
|
619
|
+
return o && A4(e, t, o), o;
|
|
620
620
|
};
|
|
621
|
-
const
|
|
621
|
+
const w2 = class w2 extends h {
|
|
622
622
|
constructor() {
|
|
623
623
|
super(...arguments), this.size = "medium", this.percent = "";
|
|
624
624
|
}
|
|
@@ -641,7 +641,7 @@ const x2 = class x2 extends h {
|
|
|
641
641
|
let o;
|
|
642
642
|
i ? o = 0.75 * Math.PI * e : o = (1 - Math.max(0, Math.min(1, parseFloat(this.percent) || 0))) * Math.PI * e;
|
|
643
643
|
const r = t / 2, n = t + e, a = e / 2, d = Math.PI * e;
|
|
644
|
-
return
|
|
644
|
+
return N1`
|
|
645
645
|
<svg
|
|
646
646
|
class=${i ? "spinner" : ""}
|
|
647
647
|
width="${e}px"
|
|
@@ -675,20 +675,93 @@ const x2 = class x2 extends h {
|
|
|
675
675
|
`;
|
|
676
676
|
}
|
|
677
677
|
};
|
|
678
|
-
|
|
678
|
+
w2.styles = g`
|
|
679
679
|
:host { display: inline-block; line-height: 0; font-family: var(--font-sans); }
|
|
680
680
|
.spinner { animation: circle 0.6s linear infinite; }
|
|
681
681
|
@keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
|
682
682
|
`;
|
|
683
|
-
let M1 =
|
|
684
|
-
|
|
683
|
+
let M1 = w2;
|
|
684
|
+
G5([
|
|
685
685
|
C()
|
|
686
686
|
], M1.prototype, "size");
|
|
687
|
-
|
|
687
|
+
G5([
|
|
688
688
|
C()
|
|
689
689
|
], M1.prototype, "percent");
|
|
690
690
|
customElements.get("anduin-spinner") || customElements.define("anduin-spinner", M1);
|
|
691
|
-
|
|
691
|
+
var B4 = Object.defineProperty, Y5 = (l, e, t, i) => {
|
|
692
|
+
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
693
|
+
(n = l[r]) && (o = n(e, t, o) || o);
|
|
694
|
+
return o && B4(e, t, o), o;
|
|
695
|
+
};
|
|
696
|
+
const k5 = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.63534 5.88184C9.71811 6.10553 9.89447 6.28189 10.1182 6.36466L12.4664 7.23359C13.1779 7.49685 13.1779 8.50314 12.4664 8.76641L10.1182 9.63534C9.89447 9.71811 9.71811 9.89447 9.63534 10.1182L8.76641 12.4664C8.50314 13.1779 7.49685 13.1779 7.23359 12.4664L6.36466 10.1182C6.28189 9.89447 6.10553 9.71811 5.88185 9.63534L3.5336 8.76641C2.82213 8.50314 2.82213 7.49685 3.5336 7.23359L5.88184 6.36466C6.10553 6.28189 6.28189 6.10553 6.36466 5.88185L7.23359 3.5336Z", z4 = { small: 16, medium: 24, large: 32 }, R2 = class R2 extends h {
|
|
697
|
+
constructor() {
|
|
698
|
+
super(...arguments), this.size = "small", this.color = "default";
|
|
699
|
+
}
|
|
700
|
+
render() {
|
|
701
|
+
const e = z4[this.size] ?? 16;
|
|
702
|
+
return N1`
|
|
703
|
+
<svg
|
|
704
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
705
|
+
width="${e}"
|
|
706
|
+
height="${e}"
|
|
707
|
+
viewBox="0 0 16 16"
|
|
708
|
+
fill="currentColor"
|
|
709
|
+
overflow="visible"
|
|
710
|
+
>
|
|
711
|
+
<path class="star" d="${k5}"/>
|
|
712
|
+
<path class="star star-2" d="${k5}"/>
|
|
713
|
+
</svg>
|
|
714
|
+
`;
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
R2.styles = g`
|
|
718
|
+
:host { display: inline-block; line-height: 0; }
|
|
719
|
+
|
|
720
|
+
/* ── Colors ─────────────────────────────────────────────────── */
|
|
721
|
+
:host([color="primary"]) { color: var(--color-primary-4); }
|
|
722
|
+
:host([color="success"]) { color: var(--color-success-4); }
|
|
723
|
+
:host([color="warning"]) { color: var(--color-warning-4); }
|
|
724
|
+
:host([color="danger"]) { color: var(--color-danger-4); }
|
|
725
|
+
|
|
726
|
+
/* ── Star base ──────────────────────────────────────────────── */
|
|
727
|
+
.star {
|
|
728
|
+
transform-box: fill-box;
|
|
729
|
+
transform-origin: center;
|
|
730
|
+
animation: sparkle-sm 2s linear infinite;
|
|
731
|
+
opacity: 0;
|
|
732
|
+
}
|
|
733
|
+
.star-2 { animation-delay: 1s; }
|
|
734
|
+
|
|
735
|
+
/* ── Size-specific animation names ──────────────────────────── */
|
|
736
|
+
:host([size="medium"]) .star { animation-name: sparkle-md; }
|
|
737
|
+
:host([size="large"]) .star { animation-name: sparkle-lg; }
|
|
738
|
+
|
|
739
|
+
/* ── Keyframes ──────────────────────────────────────────────── */
|
|
740
|
+
@keyframes sparkle-sm {
|
|
741
|
+
0% { transform: translate(-6px, -6px) scale(0.5); opacity: 0; }
|
|
742
|
+
50% { transform: translate(0, 0) scale(1); opacity: 1; }
|
|
743
|
+
100% { transform: translate(6px, 6px) scale(0.5); opacity: 0; }
|
|
744
|
+
}
|
|
745
|
+
@keyframes sparkle-md {
|
|
746
|
+
0% { transform: translate(-9px, -9px) scale(0.5); opacity: 0; }
|
|
747
|
+
50% { transform: translate(0, 0) scale(1); opacity: 1; }
|
|
748
|
+
100% { transform: translate(9px, 9px) scale(0.5); opacity: 0; }
|
|
749
|
+
}
|
|
750
|
+
@keyframes sparkle-lg {
|
|
751
|
+
0% { transform: translate(-12px, -12px) scale(0.5); opacity: 0; }
|
|
752
|
+
50% { transform: translate(0, 0) scale(1); opacity: 1; }
|
|
753
|
+
100% { transform: translate(12px, 12px) scale(0.5); opacity: 0; }
|
|
754
|
+
}
|
|
755
|
+
`;
|
|
756
|
+
let y1 = R2;
|
|
757
|
+
Y5([
|
|
758
|
+
C({ reflect: !0 })
|
|
759
|
+
], y1.prototype, "size");
|
|
760
|
+
Y5([
|
|
761
|
+
C({ reflect: !0 })
|
|
762
|
+
], y1.prototype, "color");
|
|
763
|
+
customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", y1);
|
|
764
|
+
const $5 = {
|
|
692
765
|
access: [{ d: "M13 2.5H3C2.72386 2.5 2.5 2.72386 2.5 3V5.75H1V3C1 1.89543 1.89543 1 3 1H13C14.1046 1 15 1.89543 15 3V13C15 14.1046 14.1046 15 13 15H3C1.89543 15 1 14.1046 1 13V10.25H2.5V13C2.5 13.2761 2.72386 13.5 3 13.5H13C13.2761 13.5 13.5 13.2761 13.5 13V3C13.5 2.72386 13.2761 2.5 13 2.5ZM7.53033 4.21979C7.23744 3.9269 6.76256 3.9269 6.46967 4.21979C6.17678 4.51269 6.17678 4.98756 6.46967 5.28045L8.43922 7.25L0.75 7.25C0.335786 7.25 0 7.58579 0 8C0 8.41421 0.335786 8.75 0.75 8.75L8.43946 8.75L6.46967 10.7198C6.17678 11.0127 6.17678 11.4876 6.46967 11.7805C6.76256 12.0733 7.23744 12.0733 7.53033 11.7805L10.7803 8.53044C11.0732 8.23755 11.0732 7.76268 10.7803 7.46978L7.53033 4.21979Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
693
766
|
alignCenter: [{ d: "M2 1C1.44772 1 1 1.44772 1 2C1 2.55228 1.44772 3 2 3H14C14.5523 3 15 2.55228 15 2C15 1.44772 14.5523 1 14 1H2ZM2 9C1.44772 9 1 9.44771 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44771 14.5523 9 14 9H2ZM4 6C4 5.44772 4.44772 5 5 5H11C11.5523 5 12 5.44772 12 6C12 6.55228 11.5523 7 11 7H5C4.44772 7 4 6.55228 4 6ZM5 13C4.44772 13 4 13.4477 4 14C4 14.5523 4.44772 15 5 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13H5Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
694
767
|
alignJustify: [{ d: "M2 1C1.44772 1 1 1.44772 1 2C1 2.55228 1.44772 3 2 3H14C14.5523 3 15 2.55228 15 2C15 1.44772 14.5523 1 14 1H2ZM2 9C1.44772 9 1 9.44771 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44771 14.5523 9 14 9H2ZM1 6C1 5.44772 1.44772 5 2 5H14C14.5523 5 15 5.44772 15 6C15 6.55228 14.5523 7 14 7H2C1.44772 7 1 6.55228 1 6ZM2 13C1.44772 13 1 13.4477 1 14C1 14.5523 1.44772 15 2 15H14C14.5523 15 15 14.5523 15 14C15 13.4477 14.5523 13 14 13H2Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
@@ -836,6 +909,7 @@ const w5 = {
|
|
|
836
909
|
fastBackward: [{ d: "M2.5 4.75C2.5 4.33579 2.16421 4 1.75 4C1.33579 4 1 4.33579 1 4.75V11.25C1 11.6642 1.33579 12 1.75 12C2.16421 12 2.5 11.6642 2.5 11.25V4.75ZM4.34907 7.24109L8.17507 4.12109C8.49907 3.84409 9.00007 4.07409 9.00007 4.50109V11.4991C9.00007 11.9261 8.49907 12.1561 8.17507 11.8791L4.34907 8.76009C3.88307 8.36009 3.88307 7.64009 4.34907 7.24109ZM10.3491 7.24109L14.1751 4.12109C14.4991 3.84409 15.0001 4.07409 15.0001 4.50109V11.4991C15.0001 11.9261 14.4991 12.1561 14.1751 11.8791L10.3491 8.76009C9.88307 8.36009 9.88307 7.64009 10.3491 7.24109Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
837
910
|
fastForward: [{ d: "M14.25 4C14.6642 4 15 4.33579 15 4.75V11.25C15 11.6642 14.6642 12 14.25 12C13.8358 12 13.5 11.6642 13.5 11.25V4.75C13.5 4.33579 13.8358 4 14.25 4ZM1.825 4.12111C1.501 3.84411 1 4.07411 1 4.50111V11.4991C1 11.9261 1.501 12.1561 1.825 11.8791L5.651 8.75911C6.116 8.36011 6.116 7.64011 5.651 7.24011L1.825 4.12111ZM7.825 4.12111C7.501 3.84411 7 4.07411 7 4.50111V11.4991C7 11.9261 7.501 12.1561 7.825 11.8791L11.651 8.75911C12.117 8.36011 12.117 7.64011 11.651 7.24011L7.825 4.12111Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
838
911
|
fileAdd: [{ d: "M3.75 1.5C3.61193 1.5 3.5 1.61193 3.5 1.75V14.25C3.5 14.3881 3.61193 14.5 3.75 14.5H8.33276C8.55486 15.0601 8.88043 15.568 9.28588 16H3.75C2.7835 16 2 15.2165 2 14.25V1.75C2 0.783502 2.7835 0 3.75 0H9.08579C9.54992 0 9.99504 0.184375 10.3232 0.512563L13.4874 3.67678C13.8156 4.00497 14 4.45008 14 4.91421V8.16619C13.6017 8.05783 13.1826 8 12.75 8C12.6661 8 12.5828 8.00217 12.5 8.00647V6H9.75C8.7835 6 8 5.2165 8 4.25V1.5H3.75ZM9.5 1.81066L12.1893 4.5H9.75C9.61193 4.5 9.5 4.38807 9.5 4.25V1.81066ZM12.75 9.49994C13.1642 9.49994 13.5 9.83573 13.5 10.2499V11.9999H15.25C15.6642 11.9999 16 12.3357 16 12.7499C16 13.1642 15.6642 13.4999 15.25 13.4999H13.5V15.2499C13.5 15.6642 13.1642 15.9999 12.75 15.9999C12.3358 15.9999 12 15.6642 12 15.2499V13.4999H10.25C9.83579 13.4999 9.5 13.1642 9.5 12.7499C9.5 12.3357 9.83579 11.9999 10.25 11.9999H12V10.2499C12 9.83573 12.3358 9.49994 12.75 9.49994Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
912
|
+
fileArchive: [{ d: "M9.08594 0C9.55001 4.00268e-05 9.99509 0.184542 10.3232 0.512695L13.4873 3.67676C13.8155 4.00491 14 4.44999 14 4.91406V14.25C14 15.2165 13.2165 16 12.25 16H3.75C2.7835 16 2 15.2165 2 14.25V1.75C2 0.783502 2.7835 0 3.75 0H9.08594ZM7 1.5C7 1.77614 6.77614 2 6.5 2H6V3H6.5C6.77614 3 7 3.22386 7 3.5C7 3.77614 6.77614 4 6.5 4H6V5H6.5C6.77614 5 7 5.22386 7 5.5C7 5.77614 6.77614 6 6.5 6H6V7H6.5C6.77614 7 7 7.22386 7 7.5V11C7 11.5523 6.55228 12 6 12H5C4.44772 12 4 11.5523 4 11V8.5C4 8.22386 4.22386 8 4.5 8H5V7H4.5C4.22386 7 4 6.77614 4 6.5C4 6.22386 4.22386 6 4.5 6H5V5H4.5C4.22386 5 4 4.77614 4 4.5C4 4.22386 4.22386 4 4.5 4H5V3H4.5C4.22386 3 4 2.77614 4 2.5C4 2.22386 4.22386 2 4.5 2H5V1.5H3.75C3.61193 1.5 3.5 1.61193 3.5 1.75V14.25C3.5 14.3881 3.61193 14.5 3.75 14.5H12.25C12.3881 14.5 12.5 14.3881 12.5 14.25V6H9.75C8.7835 6 8 5.2165 8 4.25V1.5H7ZM5 11H6V10H5V11ZM9.5 4.25C9.5 4.38807 9.61193 4.5 9.75 4.5H12.1895L9.5 1.81055V4.25Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
839
913
|
fileAudio: [{ d: "M11.5 4C11.7761 4 12 4.22386 12 4.5V6C12 6.27614 11.7761 6.5 11.5 6.5H9V10C9 11.1046 8.10457 12 7 12C5.89543 12 5 11.1046 5 10C5 8.89543 5.89543 8 7 8C7.36429 8 7.70583 8.09741 8 8.26758V4.5C8 4.22386 8.22386 4 8.5 4H11.5Z", fillRule: "", clipRule: "" }, { d: "M13 1C14.1046 1 15 1.89543 15 3V13C15 14.0357 14.2128 14.887 13.2041 14.9893L13 15H3L2.7959 14.9893C1.85435 14.8938 1.1062 14.1457 1.01074 13.2041L1 13V3C1 1.89543 1.89543 1 3 1H13ZM3 2.5C2.72386 2.5 2.5 2.72386 2.5 3V13C2.5 13.2761 2.72386 13.5 3 13.5H13C13.2761 13.5 13.5 13.2761 13.5 13V3C13.5 2.72386 13.2761 2.5 13 2.5H3Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
840
914
|
fileBlueprint: [{ d: "M6.5 13.5H5C4.72386 13.5 4.5 13.2761 4.5 13V10H6.5V13.5Z", fillRule: "", clipRule: "" }, { d: "M11.5 13C11.5 13.2761 11.2761 13.5 11 13.5H7.5V10H11.5V13Z", fillRule: "", clipRule: "" }, { d: "M11 7C11.2761 7 11.5 7.22386 11.5 7.5V9H4.5V7.5C4.5 7.22386 4.72386 7 5 7H11Z", fillRule: "", clipRule: "" }, { d: "M9.08594 0C9.55001 4.00268e-05 9.99509 0.184542 10.3232 0.512695L13.4873 3.67676C13.8155 4.00491 14 4.44999 14 4.91406V14.25C14 15.2165 13.2165 16 12.25 16H3.75C2.7835 16 2 15.2165 2 14.25V1.75C2 0.783502 2.7835 0 3.75 0H9.08594ZM3.75 1.5C3.61193 1.5 3.5 1.61193 3.5 1.75V14.25C3.5 14.3881 3.61193 14.5 3.75 14.5H12.25C12.3881 14.5 12.5 14.3881 12.5 14.25V6H9.75C8.7835 6 8 5.2165 8 4.25V1.5H3.75ZM9.5 4.25C9.5 4.38807 9.61193 4.5 9.75 4.5H12.1895L9.5 1.81055V4.25Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
841
915
|
fileBrush: [{ d: "M9.0859 0C9.54998 4.00266e-05 9.99505 0.184542 10.3232 0.512693L13.4873 3.67674C13.8154 4.0049 13.9999 4.44997 13.9999 4.91404V5.99998H9.74996C8.78347 5.99998 7.99997 5.21648 7.99997 4.24998V1.49999H3.74999C3.61192 1.49999 3.49999 1.61192 3.49999 1.74999V14.2499C3.49999 14.388 3.61191 14.4999 3.74999 14.4999H5.99998V15.9999H3.74999C2.78349 15.9999 1.99999 15.2164 1.99999 14.2499V1.74999C1.99999 0.783499 2.78349 0 3.74999 0H9.0859ZM9.49996 4.24998C9.49996 4.38805 9.61189 4.49998 9.74996 4.49998H12.1894L9.49996 1.81054V4.24998Z", fillRule: "evenodd", clipRule: "evenodd" }, { d: "M14.5595 13.7187C14.6934 13.8369 14.8013 13.9813 14.8769 14.1425C14.9526 14.3039 14.9941 14.4793 14.999 14.6572C15.0052 14.835 14.9745 15.012 14.9091 15.1777C14.8436 15.3435 14.7446 15.4947 14.6181 15.621C14.49 15.7474 14.3372 15.8461 14.1689 15.9111C14.0005 15.9761 13.8201 16.0062 13.6396 15.999C13.4615 15.9933 13.2863 15.9519 13.1249 15.8769C12.9636 15.8018 12.8196 15.6946 12.7011 15.5624L9.22262 11.7246C9.2401 11.718 9.258 11.7109 9.27536 11.7041C9.6122 11.5703 9.91814 11.3691 10.1748 11.1132C10.4096 10.879 10.5989 10.6028 10.7324 10.2998L14.5595 13.7187Z", fillRule: "", clipRule: "" }, { d: "M6.39353 7.10739C6.49717 6.96797 6.6969 6.97114 6.83298 7.07907C7.42814 7.55092 7.88161 7.50655 8.30173 7.46579C8.7112 7.42607 9.08906 7.38994 9.5361 7.83688C9.72471 8.0062 9.87706 8.21226 9.98336 8.44235C10.0896 8.67233 10.1475 8.92153 10.1543 9.17477C10.1609 9.42812 10.1165 9.68063 10.0224 9.91598C9.92837 10.1513 9.78683 10.3649 9.60739 10.5439C9.42795 10.7229 9.21406 10.8635 8.97848 10.957C8.74289 11.0505 8.49062 11.0951 8.23727 11.0878C7.98397 11.0805 7.73464 11.0218 7.50485 10.915C7.33243 10.8348 7.17404 10.7283 7.03415 10.6005L6.91208 10.4775C6.00899 9.56828 5.66717 8.08514 6.39353 7.10739Z", fillRule: "", clipRule: "" }],
|
|
@@ -970,7 +1044,8 @@ const w5 = {
|
|
|
970
1044
|
sortNumberAsc: [{ d: "M13 0.750183C13 0.48015 12.8548 0.230963 12.6199 0.0977683C12.385 -0.0354263 12.0967 -0.0320632 11.8649 0.106573L9.36495 1.60225C9.00949 1.8149 8.89373 2.27545 9.10639 2.63091C9.31905 2.98636 9.7796 3.10212 10.1351 2.88946L11.5 2.07286V6.24524C11.5 6.65945 11.8358 6.99524 12.25 6.99524C12.6642 6.99524 13 6.65945 13 6.24524V0.750183ZM11.5 8C12.8807 8 14 9.11929 14 10.5V13.5C14 14.8807 12.8807 16 11.5 16C10.3672 16 9.34517 15.2472 9.03729 14.2162C8.91876 13.8193 9.14443 13.4014 9.54132 13.2829C9.93822 13.1644 10.356 13.39 10.4746 13.7869C10.5979 14.2001 11.0484 14.5 11.5 14.5C12.0523 14.5 12.5 14.0523 12.5 13.5V12.792C12.1938 12.9258 11.8556 13 11.5 13C10.1193 13 9 11.8807 9 10.5C9 9.11929 10.1193 8 11.5 8ZM11.5 9.5C10.9477 9.5 10.5 9.94772 10.5 10.5C10.5 11.0523 10.9477 11.5 11.5 11.5C12.0523 11.5 12.5 11.0523 12.5 10.5C12.5 9.94772 12.0523 9.5 11.5 9.5ZM2.75 8C3.16421 8 3.5 8.33579 3.5 8.75L3.5 13.4393L4.21967 12.7197C4.51256 12.4268 4.98743 12.4268 5.28033 12.7197C5.57322 13.0126 5.57322 13.4874 5.28033 13.7803L3.28034 15.7803C3.27008 15.7906 3.25955 15.8005 3.24877 15.8101C3.11623 15.9282 2.94149 16 2.75 16C2.54172 16 2.35327 15.9151 2.21737 15.778L0.219671 13.7803C-0.0732227 13.4874 -0.0732239 13.0126 0.219669 12.7197C0.512561 12.4268 0.987435 12.4268 1.28033 12.7197L2 13.4393L2 8.75C2 8.33579 2.33579 8 2.75 8Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
971
1045
|
sortNumberDes: [{ d: "M9 2.5C9 1.11929 10.1193 0 11.5 0C12.8807 0 14 1.11929 14 2.5L14 5.50002C14 6.88073 12.8807 8.00002 11.5 8.00002C10.3672 8.00002 9.34109 7.23217 9.0332 6.20117C8.91468 5.80428 9.14034 5.38645 9.53724 5.26792C9.93413 5.1494 10.352 5.37506 10.4705 5.77196C10.5939 6.18511 11.0484 6.50002 11.5 6.50002C12.0523 6.50002 12.5 6.0523 12.5 5.50002V4.79198C12.1938 4.92578 11.8556 5 11.5 5C10.1193 5 9 3.88071 9 2.5ZM11.5 1.5C10.9477 1.5 10.5 1.94772 10.5 2.5C10.5 3.05228 10.9477 3.5 11.5 3.5C12.0523 3.5 12.5 3.05228 12.5 2.5C12.5 1.94772 12.0523 1.5 11.5 1.5ZM13 9.75018C13 9.48015 12.8548 9.23096 12.6199 9.09777C12.385 8.96457 12.0967 8.96794 11.8649 9.10657L9.36495 10.6022C9.00949 10.8149 8.89373 11.2755 9.10639 11.6309C9.31905 11.9864 9.7796 12.1021 10.1351 11.8895L11.5 11.0729V15.2452C11.5 15.6594 11.8358 15.9952 12.25 15.9952C12.6642 15.9952 13 15.6594 13 15.2452V9.75018ZM2.75 8C3.16421 8 3.5 8.33579 3.5 8.75L3.5 13.4393L4.21967 12.7197C4.51256 12.4268 4.98743 12.4268 5.28033 12.7197C5.57322 13.0126 5.57322 13.4874 5.28033 13.7803L3.28034 15.7803C3.27008 15.7906 3.25955 15.8005 3.24877 15.8101C3.11623 15.9282 2.94149 16 2.75 16C2.54172 16 2.35327 15.9151 2.21737 15.778L0.219671 13.7803C-0.0732227 13.4874 -0.0732239 13.0126 0.219669 12.7197C0.512561 12.4268 0.987435 12.4268 1.28033 12.7197L2 13.4393L2 8.75C2 8.33579 2.33579 8 2.75 8Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
972
1046
|
spacer: [{ d: "M0 0.75C0 0.335786 0.335786 0 0.75 0H15.25C15.6642 0 16 0.335786 16 0.75C16 1.16421 15.6642 1.5 15.25 1.5H0.75C0.335786 1.5 0 1.16421 0 0.75Z M7.46967 3.21967C7.76256 2.92678 8.23744 2.92678 8.53033 3.21967L10.7809 5.47022C11.0738 5.76311 11.0738 6.23799 10.7809 6.53088C10.488 6.82377 10.0131 6.82377 9.72022 6.53088L8.75 5.56066V10.4393L9.71943 9.46991C10.0123 9.17702 10.4872 9.17702 10.7801 9.46991C11.073 9.76281 11.073 10.2377 10.7801 10.5306L8.53033 12.7803C8.23744 13.0732 7.76256 13.0732 7.46967 12.7803L5.21991 10.5306C4.92702 10.2377 4.92702 9.76281 5.21991 9.46991C5.51281 9.17702 5.98768 9.17702 6.28057 9.46991L7.25 10.4393L7.25 5.56066L6.27978 6.53088C5.98689 6.82377 5.51201 6.82377 5.21912 6.53088C4.92623 6.23799 4.92623 5.76311 5.21912 5.47022L7.46967 3.21967Z M0.75 14.5C0.335786 14.5 0 14.8358 0 15.25C0 15.6642 0.335786 16 0.75 16H15.25C15.6642 16 16 15.6642 16 15.25C16 14.8358 15.6642 14.5 15.25 14.5H0.75Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
973
|
-
|
|
1047
|
+
sparkle: [{ d: "M6.92295 1.75171C7.29122 0.749431 8.70878 0.749428 9.07705 1.75171L10.2835 5.03519C10.3996 5.35127 10.6487 5.60037 10.9648 5.7165L14.2483 6.92295C15.2506 7.29122 15.2506 8.70878 14.2483 9.07705L10.9648 10.2835C10.6487 10.3996 10.3996 10.6487 10.2835 10.9648L9.07705 14.2483C8.70878 15.2506 7.29122 15.2506 6.92295 14.2483L5.7165 10.9648C5.60037 10.6487 5.35127 10.3996 5.0352 10.2835L1.75171 9.07705C0.749431 8.70878 0.749428 7.29122 1.75171 6.92295L5.03519 5.7165C5.35127 5.60037 5.60037 5.35127 5.7165 5.0352L6.92295 1.75171Z", fillRule: "", clipRule: "" }],
|
|
1048
|
+
sparkles: [{ d: "M4.76056 5.23522C5.08842 4.35033 6.33989 4.35037 6.66779 5.23522L7.61213 7.78698C7.71514 8.06537 7.93529 8.28454 8.21369 8.38756L10.7645 9.3319C11.65 9.65956 11.65 10.9124 10.7645 11.2401L8.21369 12.1844C7.93529 12.2875 7.71514 12.5066 7.61213 12.785L6.66779 15.3368C6.33994 16.2218 5.08838 16.2218 4.76056 15.3368L3.81623 12.785C3.71326 12.5067 3.49386 12.2875 3.21564 12.1844L0.663885 11.2401C-0.22162 10.9124 -0.22162 9.65956 0.663885 9.3319L3.21564 8.38756C3.49384 8.28448 3.71326 8.06523 3.81623 7.78698L4.76056 5.23522ZM11.9666 0.410999C12.1832 -0.137345 12.96 -0.137305 13.1766 0.410999L13.7547 1.87877C13.8207 2.04615 13.9536 2.17884 14.1209 2.24498L15.5887 2.82408C16.1374 3.04051 16.1374 3.81664 15.5887 4.03307L14.1209 4.61217C13.9536 4.67831 13.8207 4.81099 13.7547 4.97838L13.1766 6.44615C12.96 6.99456 12.1831 6.9946 11.9666 6.44615L11.3885 4.97838C11.3225 4.81094 11.1897 4.67829 11.0223 4.61217L9.55451 4.03307C9.00591 3.81659 9.00589 3.04054 9.55451 2.82408L11.0223 2.24498C11.1897 2.17886 11.3225 2.0462 11.3885 1.87877L11.9666 0.410999Z", fillRule: "", clipRule: "" }],
|
|
974
1049
|
square: [{ d: "M3 5C3 3.89543 3.89543 3 5 3H11C12.1046 3 13 3.89543 13 5V11C13 12.1046 12.1046 13 11 13H5C3.89543 13 3 12.1046 3 11V5Z", fillRule: "", clipRule: "" }],
|
|
975
1050
|
stack: [{ d: "M1 2.75C1 2.33579 1.33579 2 1.75 2H14.25C14.6642 2 15 2.33579 15 2.75C15 3.16421 14.6642 3.5 14.25 3.5H1.75C1.33579 3.5 1 3.16421 1 2.75Z M1 13.25C1 12.8358 1.33579 12.5 1.75 12.5H14.25C14.6642 12.5 15 12.8358 15 13.25C15 13.6642 14.6642 14 14.25 14H1.75C1.33579 14 1 13.6642 1 13.25Z M5 6C4.44772 6 4 6.44772 4 7V9C4 9.55228 4.44772 10 5 10H11C11.5523 10 12 9.55228 12 9V7C12 6.44772 11.5523 6 11 6H5Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
976
1051
|
star: [{ d: "M7.54282 0.311683C7.71382 -0.09893 8.29552 -0.0989301 8.46651 0.311683L10.3776 4.90063C10.4479 5.0695 10.6048 5.18652 10.7867 5.2058L15.5565 5.71138C15.9818 5.75646 16.1581 6.27988 15.8467 6.5731L12.232 9.97719C12.1056 10.0962 12.05 10.2723 12.085 10.4423L13.1079 15.409C13.1963 15.8384 12.7287 16.1658 12.3554 15.9358L8.26709 13.417C8.10619 13.3178 7.90315 13.3178 7.74224 13.417L3.65391 15.9358C3.28059 16.1658 2.81303 15.8384 2.90147 15.409L3.92434 10.4423C3.95936 10.2723 3.90372 10.0962 3.77732 9.97719L0.162618 6.5731C-0.148747 6.27988 0.0275558 5.75646 0.452875 5.71138L5.22267 5.2058C5.40457 5.18652 5.56145 5.0695 5.63178 4.90063L7.54282 0.311683Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
@@ -1031,18 +1106,18 @@ const w5 = {
|
|
|
1031
1106
|
zoomOut: [{ d: "M4.5 6.25C4.08579 6.25 3.75 6.58579 3.75 7C3.75 7.41421 4.08579 7.75 4.5 7.75H9.5C9.91421 7.75 10.25 7.41421 10.25 7C10.25 6.58579 9.91421 6.25 9.5 6.25H4.5ZM7 14C8.57591 14 10.0302 13.4792 11.2001 12.6004C11.2281 12.6376 11.259 12.6733 11.2929 12.7071L14.2929 15.7071C14.6834 16.0976 15.3166 16.0976 15.7071 15.7071C16.0976 15.3166 16.0976 14.6834 15.7071 14.2929L12.7071 11.2929C12.6733 11.259 12.6376 11.2281 12.6004 11.2001C13.4792 10.0302 14 8.57591 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14ZM7 12.5C10.0376 12.5 12.5 10.0376 12.5 7C12.5 3.96243 10.0376 1.5 7 1.5C3.96243 1.5 1.5 3.96243 1.5 7C1.5 10.0376 3.96243 12.5 7 12.5Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
1032
1107
|
zz: [{ d: "M9.75 1.02686C9.33579 1.02686 9 1.36264 9 1.77686C9 2.19107 9.33579 2.52686 9.75 2.52686H12.8186L9.13336 7.84995C8.97457 8.07931 8.9562 8.37784 9.08567 8.62494C9.21513 8.87203 9.47104 9.02686 9.75 9.02686H14.25C14.6642 9.02686 15 8.69107 15 8.27686C15 7.86264 14.6642 7.52686 14.25 7.52686H11.1814L14.8666 2.20376C15.0254 1.97441 15.0438 1.67587 14.9143 1.42878C14.7849 1.18168 14.529 1.02686 14.25 1.02686H9.75ZM1.75 7.02686C1.33579 7.02686 1 7.36264 1 7.77686C1 8.19107 1.33579 8.52686 1.75 8.52686H4.81858L1.13336 13.8499C0.974572 14.0793 0.956201 14.3778 1.08567 14.6249C1.21513 14.872 1.47104 15.0269 1.75 15.0269H6.25C6.66422 15.0269 7 14.6911 7 14.2769C7 13.8626 6.66422 13.5269 6.25 13.5269H3.18143L6.86665 8.20376C7.02543 7.97441 7.0438 7.67587 6.91434 7.42878C6.78487 7.18168 6.52896 7.02686 6.25 7.02686H1.75Z", fillRule: "evenodd", clipRule: "evenodd" }]
|
|
1033
1108
|
};
|
|
1034
|
-
var
|
|
1109
|
+
var S4 = Object.defineProperty, X5 = (l, e, t, i) => {
|
|
1035
1110
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1036
1111
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1037
|
-
return o &&
|
|
1112
|
+
return o && S4(e, t, o), o;
|
|
1038
1113
|
};
|
|
1039
|
-
const
|
|
1114
|
+
const k2 = class k2 extends h {
|
|
1040
1115
|
constructor() {
|
|
1041
1116
|
super(...arguments), this.name = "", this.size = 16;
|
|
1042
1117
|
}
|
|
1043
1118
|
render() {
|
|
1044
|
-
const e = this.name &&
|
|
1045
|
-
return
|
|
1119
|
+
const e = this.name && $5[this.name] ? $5[this.name] : [], t = !this.name;
|
|
1120
|
+
return N1`
|
|
1046
1121
|
<svg
|
|
1047
1122
|
class=${t ? "icon--hidden" : ""}
|
|
1048
1123
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1052,7 +1127,7 @@ const w2 = class w2 extends h {
|
|
|
1052
1127
|
viewBox="0 0 16 16"
|
|
1053
1128
|
>
|
|
1054
1129
|
${e.map(
|
|
1055
|
-
(i) =>
|
|
1130
|
+
(i) => N1`
|
|
1056
1131
|
<path
|
|
1057
1132
|
fill="currentColor"
|
|
1058
1133
|
d="${i.d}"
|
|
@@ -1064,24 +1139,24 @@ const w2 = class w2 extends h {
|
|
|
1064
1139
|
`;
|
|
1065
1140
|
}
|
|
1066
1141
|
};
|
|
1067
|
-
|
|
1142
|
+
k2.styles = g`
|
|
1068
1143
|
:host { display: block; line-height: 0; font-family: var(--font-sans); }
|
|
1069
1144
|
.icon--hidden { display: none; }
|
|
1070
1145
|
`;
|
|
1071
|
-
let
|
|
1072
|
-
|
|
1146
|
+
let Z1 = k2;
|
|
1147
|
+
X5([
|
|
1073
1148
|
C()
|
|
1074
|
-
],
|
|
1075
|
-
|
|
1149
|
+
], Z1.prototype, "name");
|
|
1150
|
+
X5([
|
|
1076
1151
|
C({ type: Number })
|
|
1077
|
-
],
|
|
1078
|
-
customElements.get("anduin-icon") || customElements.define("anduin-icon",
|
|
1079
|
-
var
|
|
1152
|
+
], Z1.prototype, "size");
|
|
1153
|
+
customElements.get("anduin-icon") || customElements.define("anduin-icon", Z1);
|
|
1154
|
+
var P4 = Object.defineProperty, F4 = (l, e, t, i) => {
|
|
1080
1155
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1081
1156
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1082
|
-
return o &&
|
|
1157
|
+
return o && P4(e, t, o), o;
|
|
1083
1158
|
};
|
|
1084
|
-
const
|
|
1159
|
+
const K5 = g`
|
|
1085
1160
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1086
1161
|
.badge {
|
|
1087
1162
|
border-radius: 9999px;
|
|
@@ -1108,7 +1183,7 @@ const W5 = g`
|
|
|
1108
1183
|
.badge--bold-warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1109
1184
|
.badge--hidden { display: none; }
|
|
1110
1185
|
`;
|
|
1111
|
-
function
|
|
1186
|
+
function J5(l) {
|
|
1112
1187
|
return {
|
|
1113
1188
|
gray: "badge--light-gray",
|
|
1114
1189
|
primary: "badge--light-primary",
|
|
@@ -1122,27 +1197,27 @@ function G5(l) {
|
|
|
1122
1197
|
boldDanger: "badge--bold-danger"
|
|
1123
1198
|
}[l || "gray"] || "badge--light-gray";
|
|
1124
1199
|
}
|
|
1125
|
-
const
|
|
1200
|
+
const $2 = class $2 extends h {
|
|
1126
1201
|
constructor() {
|
|
1127
1202
|
super(...arguments), this.variant = "gray";
|
|
1128
1203
|
}
|
|
1129
1204
|
render() {
|
|
1130
|
-
const e =
|
|
1205
|
+
const e = J5(this.variant);
|
|
1131
1206
|
return s`<div class="badge ${e}" part="badge"><slot></slot></div>`;
|
|
1132
1207
|
}
|
|
1133
1208
|
};
|
|
1134
|
-
|
|
1135
|
-
let
|
|
1136
|
-
|
|
1209
|
+
$2.styles = [K5];
|
|
1210
|
+
let j1 = $2;
|
|
1211
|
+
F4([
|
|
1137
1212
|
C()
|
|
1138
|
-
],
|
|
1139
|
-
customElements.get("anduin-badge") || customElements.define("anduin-badge",
|
|
1140
|
-
var
|
|
1213
|
+
], j1.prototype, "variant");
|
|
1214
|
+
customElements.get("anduin-badge") || customElements.define("anduin-badge", j1);
|
|
1215
|
+
var O4 = Object.defineProperty, Q5 = (l, e, t, i) => {
|
|
1141
1216
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1142
1217
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1143
|
-
return o &&
|
|
1218
|
+
return o && O4(e, t, o), o;
|
|
1144
1219
|
};
|
|
1145
|
-
const
|
|
1220
|
+
const E2 = class E2 extends h {
|
|
1146
1221
|
constructor() {
|
|
1147
1222
|
super(...arguments), this.variant = "gray", this.count = 0;
|
|
1148
1223
|
}
|
|
@@ -1150,7 +1225,7 @@ const k2 = class k2 extends h {
|
|
|
1150
1225
|
return e > 99 ? "99+" : e.toString();
|
|
1151
1226
|
}
|
|
1152
1227
|
render() {
|
|
1153
|
-
const e =
|
|
1228
|
+
const e = J5(this.variant), t = this.count === 0, i = this.count > 0 && this.count < 10, o = [
|
|
1154
1229
|
"badge",
|
|
1155
1230
|
e,
|
|
1156
1231
|
t ? "badge--hidden" : "",
|
|
@@ -1159,24 +1234,24 @@ const k2 = class k2 extends h {
|
|
|
1159
1234
|
return s`<div class="${o}" part="badge">${this.formatCount(this.count)}</div>`;
|
|
1160
1235
|
}
|
|
1161
1236
|
};
|
|
1162
|
-
|
|
1163
|
-
let
|
|
1164
|
-
|
|
1237
|
+
E2.styles = [K5];
|
|
1238
|
+
let _1 = E2;
|
|
1239
|
+
Q5([
|
|
1165
1240
|
C()
|
|
1166
|
-
],
|
|
1167
|
-
|
|
1241
|
+
], _1.prototype, "variant");
|
|
1242
|
+
Q5([
|
|
1168
1243
|
C({ type: Number })
|
|
1169
|
-
],
|
|
1170
|
-
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count",
|
|
1171
|
-
var
|
|
1244
|
+
], _1.prototype, "count");
|
|
1245
|
+
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", _1);
|
|
1246
|
+
var D4 = Object.defineProperty, _ = (l, e, t, i) => {
|
|
1172
1247
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1173
1248
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1174
|
-
return o &&
|
|
1249
|
+
return o && D4(e, t, o), o;
|
|
1175
1250
|
};
|
|
1176
|
-
function
|
|
1251
|
+
function I4(l) {
|
|
1177
1252
|
return l.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1178
1253
|
}
|
|
1179
|
-
const
|
|
1254
|
+
const A2 = class A2 extends h {
|
|
1180
1255
|
constructor() {
|
|
1181
1256
|
super(...arguments), this.iconOnly = !1, this.appearance = "filled", this.variant = "", this.size = "medium", this.disabled = !1, this.loading = !1, this.fullWidth = !1, this.pill = !1, this.selected = !1, this.href = "", this.openNewTab = !1, this.download = "", this.startIcon = "", this.endIcon = "", this.label = "";
|
|
1182
1257
|
}
|
|
@@ -1193,7 +1268,7 @@ const $2 = class $2 extends h {
|
|
|
1193
1268
|
return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
|
|
1194
1269
|
}
|
|
1195
1270
|
getSizeKebab() {
|
|
1196
|
-
return
|
|
1271
|
+
return I4(this.size);
|
|
1197
1272
|
}
|
|
1198
1273
|
iconSize() {
|
|
1199
1274
|
return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
|
|
@@ -1237,7 +1312,7 @@ const $2 = class $2 extends h {
|
|
|
1237
1312
|
`;
|
|
1238
1313
|
}
|
|
1239
1314
|
};
|
|
1240
|
-
|
|
1315
|
+
A2.styles = g`
|
|
1241
1316
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1242
1317
|
:host([full-width]) { display: block; width: 100%; }
|
|
1243
1318
|
.button {
|
|
@@ -1339,7 +1414,7 @@ $2.styles = g`
|
|
|
1339
1414
|
.button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
|
|
1340
1415
|
.button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
|
|
1341
1416
|
`;
|
|
1342
|
-
let b =
|
|
1417
|
+
let b = A2;
|
|
1343
1418
|
_([
|
|
1344
1419
|
M()
|
|
1345
1420
|
], b.prototype, "iconOnly");
|
|
@@ -1386,12 +1461,12 @@ _([
|
|
|
1386
1461
|
C()
|
|
1387
1462
|
], b.prototype, "label");
|
|
1388
1463
|
customElements.get("anduin-button") || customElements.define("anduin-button", b);
|
|
1389
|
-
var
|
|
1464
|
+
var T4 = Object.defineProperty, N4 = (l, e, t, i) => {
|
|
1390
1465
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1391
1466
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1392
|
-
return o &&
|
|
1467
|
+
return o && T4(e, t, o), o;
|
|
1393
1468
|
};
|
|
1394
|
-
const
|
|
1469
|
+
const B2 = class B2 extends h {
|
|
1395
1470
|
constructor() {
|
|
1396
1471
|
super(...arguments), this.variant = "gray";
|
|
1397
1472
|
}
|
|
@@ -1404,7 +1479,7 @@ const E2 = class E2 extends h {
|
|
|
1404
1479
|
`;
|
|
1405
1480
|
}
|
|
1406
1481
|
};
|
|
1407
|
-
|
|
1482
|
+
B2.styles = g`
|
|
1408
1483
|
:host { display: block; font-family: var(--font-sans); }
|
|
1409
1484
|
.callout {
|
|
1410
1485
|
display: flex; align-items: center; justify-content: center;
|
|
@@ -1416,17 +1491,17 @@ E2.styles = g`
|
|
|
1416
1491
|
.callout--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1417
1492
|
.callout--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1418
1493
|
`;
|
|
1419
|
-
let
|
|
1420
|
-
|
|
1494
|
+
let U1 = B2;
|
|
1495
|
+
N4([
|
|
1421
1496
|
C()
|
|
1422
|
-
],
|
|
1423
|
-
customElements.get("anduin-callout") || customElements.define("anduin-callout",
|
|
1424
|
-
var
|
|
1497
|
+
], U1.prototype, "variant");
|
|
1498
|
+
customElements.get("anduin-callout") || customElements.define("anduin-callout", U1);
|
|
1499
|
+
var j4 = Object.defineProperty, e4 = (l, e, t, i) => {
|
|
1425
1500
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1426
1501
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1427
|
-
return o &&
|
|
1502
|
+
return o && j4(e, t, o), o;
|
|
1428
1503
|
};
|
|
1429
|
-
const
|
|
1504
|
+
const z2 = class z2 extends h {
|
|
1430
1505
|
constructor() {
|
|
1431
1506
|
super(...arguments), this.direction = "horizontal", this.hasContent = !1;
|
|
1432
1507
|
}
|
|
@@ -1457,7 +1532,7 @@ const A2 = class A2 extends h {
|
|
|
1457
1532
|
</div>` : s`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
|
|
1458
1533
|
}
|
|
1459
1534
|
};
|
|
1460
|
-
|
|
1535
|
+
z2.styles = g`
|
|
1461
1536
|
:host { display: block; width: 100%; font-family: var(--font-sans); }
|
|
1462
1537
|
:host([direction="vertical"]) { width: auto; height: 100%; }
|
|
1463
1538
|
.divider--horizontal { margin-top: 8px; margin-bottom: 8px; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; text-align: center; }
|
|
@@ -1467,20 +1542,20 @@ A2.styles = g`
|
|
|
1467
1542
|
.divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
|
|
1468
1543
|
.divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
|
|
1469
1544
|
`;
|
|
1470
|
-
let
|
|
1471
|
-
|
|
1545
|
+
let x1 = z2;
|
|
1546
|
+
e4([
|
|
1472
1547
|
C({ reflect: !0 })
|
|
1473
|
-
],
|
|
1474
|
-
|
|
1548
|
+
], x1.prototype, "direction");
|
|
1549
|
+
e4([
|
|
1475
1550
|
M()
|
|
1476
|
-
],
|
|
1477
|
-
customElements.get("anduin-divider") || customElements.define("anduin-divider",
|
|
1478
|
-
var
|
|
1551
|
+
], x1.prototype, "hasContent");
|
|
1552
|
+
customElements.get("anduin-divider") || customElements.define("anduin-divider", x1);
|
|
1553
|
+
var U4 = Object.defineProperty, q4 = (l, e, t, i) => {
|
|
1479
1554
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1480
1555
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1481
|
-
return o &&
|
|
1556
|
+
return o && U4(e, t, o), o;
|
|
1482
1557
|
};
|
|
1483
|
-
const
|
|
1558
|
+
const S2 = class S2 extends h {
|
|
1484
1559
|
constructor() {
|
|
1485
1560
|
super(...arguments), this.variant = "gray";
|
|
1486
1561
|
}
|
|
@@ -1488,7 +1563,7 @@ const B2 = class B2 extends h {
|
|
|
1488
1563
|
return s`<div class="dot dot--${this.variant}" part="dot"></div>`;
|
|
1489
1564
|
}
|
|
1490
1565
|
};
|
|
1491
|
-
|
|
1566
|
+
S2.styles = g`
|
|
1492
1567
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1493
1568
|
.dot { width: 10px; height: 10px; border-radius: 9999px; }
|
|
1494
1569
|
.dot--gray { background-color: var(--color-semantic-gray-6); color: var(--color-semantic-gray-0); }
|
|
@@ -1497,17 +1572,17 @@ B2.styles = g`
|
|
|
1497
1572
|
.dot--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1498
1573
|
.dot--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1499
1574
|
`;
|
|
1500
|
-
let
|
|
1501
|
-
|
|
1575
|
+
let q1 = S2;
|
|
1576
|
+
q4([
|
|
1502
1577
|
C()
|
|
1503
|
-
],
|
|
1504
|
-
customElements.get("anduin-dot") || customElements.define("anduin-dot",
|
|
1505
|
-
var
|
|
1578
|
+
], q1.prototype, "variant");
|
|
1579
|
+
customElements.get("anduin-dot") || customElements.define("anduin-dot", q1);
|
|
1580
|
+
var W4 = Object.defineProperty, t4 = (l, e, t, i) => {
|
|
1506
1581
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1507
1582
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1508
|
-
return o &&
|
|
1583
|
+
return o && W4(e, t, o), o;
|
|
1509
1584
|
};
|
|
1510
|
-
const
|
|
1585
|
+
const P2 = class P2 extends h {
|
|
1511
1586
|
constructor() {
|
|
1512
1587
|
super(...arguments), this.percent = "", this.height = "medium";
|
|
1513
1588
|
}
|
|
@@ -1523,7 +1598,7 @@ const z2 = class z2 extends h {
|
|
|
1523
1598
|
`;
|
|
1524
1599
|
}
|
|
1525
1600
|
};
|
|
1526
|
-
|
|
1601
|
+
P2.styles = g`
|
|
1527
1602
|
:host { display: block; font-family: var(--font-sans); }
|
|
1528
1603
|
.progress { overflow-x: hidden; position: relative; border-radius: 9999px; }
|
|
1529
1604
|
.progress__fill {
|
|
@@ -1539,20 +1614,20 @@ z2.styles = g`
|
|
|
1539
1614
|
to { transform: translateX(330%); }
|
|
1540
1615
|
}
|
|
1541
1616
|
`;
|
|
1542
|
-
let
|
|
1543
|
-
|
|
1617
|
+
let w1 = P2;
|
|
1618
|
+
t4([
|
|
1544
1619
|
C()
|
|
1545
|
-
],
|
|
1546
|
-
|
|
1620
|
+
], w1.prototype, "percent");
|
|
1621
|
+
t4([
|
|
1547
1622
|
C()
|
|
1548
|
-
],
|
|
1549
|
-
customElements.get("anduin-progress") || customElements.define("anduin-progress",
|
|
1550
|
-
var
|
|
1623
|
+
], w1.prototype, "height");
|
|
1624
|
+
customElements.get("anduin-progress") || customElements.define("anduin-progress", w1);
|
|
1625
|
+
var G4 = Object.defineProperty, h1 = (l, e, t, i) => {
|
|
1551
1626
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1552
1627
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1553
|
-
return o &&
|
|
1628
|
+
return o && G4(e, t, o), o;
|
|
1554
1629
|
};
|
|
1555
|
-
const
|
|
1630
|
+
const F2 = class F2 extends h {
|
|
1556
1631
|
constructor() {
|
|
1557
1632
|
super(...arguments), this.effect = "pulse", this.shape = "rectangle", this.height = "", this.width = "100%", this.duration = 1500, this.fontSize = "";
|
|
1558
1633
|
}
|
|
@@ -1571,7 +1646,7 @@ const S2 = class S2 extends h {
|
|
|
1571
1646
|
`;
|
|
1572
1647
|
}
|
|
1573
1648
|
};
|
|
1574
|
-
|
|
1649
|
+
F2.styles = g`
|
|
1575
1650
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1576
1651
|
.skeleton { background-color: var(--color-gray-3); position: relative; overflow: hidden; }
|
|
1577
1652
|
.skeleton--circle { border-radius: 9999px; }
|
|
@@ -1590,32 +1665,32 @@ S2.styles = g`
|
|
|
1590
1665
|
0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
|
|
1591
1666
|
}
|
|
1592
1667
|
`;
|
|
1593
|
-
let
|
|
1668
|
+
let P = F2;
|
|
1594
1669
|
h1([
|
|
1595
1670
|
C()
|
|
1596
|
-
],
|
|
1671
|
+
], P.prototype, "effect");
|
|
1597
1672
|
h1([
|
|
1598
1673
|
C()
|
|
1599
|
-
],
|
|
1674
|
+
], P.prototype, "shape");
|
|
1600
1675
|
h1([
|
|
1601
1676
|
C()
|
|
1602
|
-
],
|
|
1677
|
+
], P.prototype, "height");
|
|
1603
1678
|
h1([
|
|
1604
1679
|
C()
|
|
1605
|
-
],
|
|
1680
|
+
], P.prototype, "width");
|
|
1606
1681
|
h1([
|
|
1607
1682
|
C({ type: Number })
|
|
1608
|
-
],
|
|
1683
|
+
], P.prototype, "duration");
|
|
1609
1684
|
h1([
|
|
1610
1685
|
C({ attribute: "font-size" })
|
|
1611
|
-
],
|
|
1612
|
-
customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton",
|
|
1613
|
-
var
|
|
1686
|
+
], P.prototype, "fontSize");
|
|
1687
|
+
customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", P);
|
|
1688
|
+
var Y4 = Object.defineProperty, X4 = (l, e, t, i) => {
|
|
1614
1689
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1615
1690
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1616
|
-
return o &&
|
|
1691
|
+
return o && Y4(e, t, o), o;
|
|
1617
1692
|
};
|
|
1618
|
-
const
|
|
1693
|
+
const O2 = class O2 extends h {
|
|
1619
1694
|
constructor() {
|
|
1620
1695
|
super(...arguments), this.height = "256px";
|
|
1621
1696
|
}
|
|
@@ -1630,28 +1705,28 @@ const F2 = class F2 extends h {
|
|
|
1630
1705
|
`;
|
|
1631
1706
|
}
|
|
1632
1707
|
};
|
|
1633
|
-
|
|
1708
|
+
O2.styles = g`
|
|
1634
1709
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1635
1710
|
.loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
|
|
1636
1711
|
.loading-state__indicator { color: var(--color-primary-4); }
|
|
1637
1712
|
.loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-gray-6); }
|
|
1638
1713
|
`;
|
|
1639
|
-
let
|
|
1640
|
-
|
|
1714
|
+
let W1 = O2;
|
|
1715
|
+
X4([
|
|
1641
1716
|
C()
|
|
1642
|
-
],
|
|
1643
|
-
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state",
|
|
1644
|
-
var
|
|
1717
|
+
], W1.prototype, "height");
|
|
1718
|
+
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", W1);
|
|
1719
|
+
var K4 = Object.defineProperty, Z2 = (l, e, t, i) => {
|
|
1645
1720
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1646
1721
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1647
|
-
return o &&
|
|
1722
|
+
return o && K4(e, t, o), o;
|
|
1648
1723
|
};
|
|
1649
|
-
const
|
|
1724
|
+
const o4 = "anduin-field:label-click", v1 = "anduin-field:label-click-coordinated", D2 = class D2 extends h {
|
|
1650
1725
|
constructor() {
|
|
1651
1726
|
super(...arguments), this.orientation = "vertical";
|
|
1652
1727
|
}
|
|
1653
1728
|
connectedCallback() {
|
|
1654
|
-
super.connectedCallback(), this.addEventListener(
|
|
1729
|
+
super.connectedCallback(), this.addEventListener(o4, (e) => {
|
|
1655
1730
|
const t = e;
|
|
1656
1731
|
this.dispatchEvent(new CustomEvent(v1, {
|
|
1657
1732
|
detail: t.detail,
|
|
@@ -1669,17 +1744,17 @@ const J5 = "anduin-field:label-click", v1 = "anduin-field:label-click-coordinate
|
|
|
1669
1744
|
`;
|
|
1670
1745
|
}
|
|
1671
1746
|
};
|
|
1672
|
-
|
|
1747
|
+
D2.styles = g`
|
|
1673
1748
|
:host { display: block; font-family: var(--font-sans); }
|
|
1674
1749
|
.field { display: flex; flex-wrap: wrap; }
|
|
1675
1750
|
.field--vertical { flex-direction: column; row-gap: 4px; }
|
|
1676
1751
|
.field--horizontal { column-gap: 4px; }
|
|
1677
1752
|
`;
|
|
1678
|
-
let
|
|
1679
|
-
|
|
1753
|
+
let G1 = D2;
|
|
1754
|
+
Z2([
|
|
1680
1755
|
C()
|
|
1681
|
-
],
|
|
1682
|
-
const
|
|
1756
|
+
], G1.prototype, "orientation");
|
|
1757
|
+
const I2 = class I2 extends h {
|
|
1683
1758
|
constructor() {
|
|
1684
1759
|
super(...arguments), this.htmlfor = "", this.required = !1;
|
|
1685
1760
|
}
|
|
@@ -1687,7 +1762,7 @@ const O2 = class O2 extends h {
|
|
|
1687
1762
|
super.connectedCallback();
|
|
1688
1763
|
}
|
|
1689
1764
|
onLabelClick(e) {
|
|
1690
|
-
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(
|
|
1765
|
+
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(o4, {
|
|
1691
1766
|
detail: this.htmlfor,
|
|
1692
1767
|
bubbles: !0,
|
|
1693
1768
|
composed: !0
|
|
@@ -1706,59 +1781,59 @@ const O2 = class O2 extends h {
|
|
|
1706
1781
|
`;
|
|
1707
1782
|
}
|
|
1708
1783
|
};
|
|
1709
|
-
|
|
1784
|
+
I2.styles = g`
|
|
1710
1785
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1711
1786
|
.field-label { font-size: 13px; line-height: 20px; font-weight: 600; cursor: default; color: var(--color-gray-8, #101828); }
|
|
1712
1787
|
.field-label__required { color: var(--color-danger-5); }
|
|
1713
1788
|
`;
|
|
1714
|
-
let
|
|
1715
|
-
|
|
1789
|
+
let R1 = I2;
|
|
1790
|
+
Z2([
|
|
1716
1791
|
C()
|
|
1717
|
-
],
|
|
1718
|
-
|
|
1792
|
+
], R1.prototype, "htmlfor");
|
|
1793
|
+
Z2([
|
|
1719
1794
|
C({ type: Boolean })
|
|
1720
|
-
],
|
|
1721
|
-
const
|
|
1795
|
+
], R1.prototype, "required");
|
|
1796
|
+
const T2 = class T2 extends h {
|
|
1722
1797
|
render() {
|
|
1723
1798
|
return s`<div class="field-description" part="description"><slot></slot></div>`;
|
|
1724
1799
|
}
|
|
1725
1800
|
};
|
|
1726
|
-
|
|
1801
|
+
T2.styles = g`
|
|
1727
1802
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1728
1803
|
.field-description { display: block; line-height: 16px; font-size: 11px; color: var(--color-gray-7); }
|
|
1729
1804
|
`;
|
|
1730
|
-
let
|
|
1731
|
-
const
|
|
1805
|
+
let n2 = T2;
|
|
1806
|
+
const N2 = class N2 extends h {
|
|
1732
1807
|
render() {
|
|
1733
1808
|
return s`<div class="field-error" part="error"><slot></slot></div>`;
|
|
1734
1809
|
}
|
|
1735
1810
|
};
|
|
1736
|
-
|
|
1811
|
+
N2.styles = g`
|
|
1737
1812
|
:host { display: block; font-family: var(--font-sans); }
|
|
1738
1813
|
.field-error { color: var(--color-danger-4); }
|
|
1739
1814
|
`;
|
|
1740
|
-
let
|
|
1741
|
-
const
|
|
1815
|
+
let C2 = N2;
|
|
1816
|
+
const j2 = class j2 extends h {
|
|
1742
1817
|
render() {
|
|
1743
1818
|
return s`<div class="field-group" part="group"><slot></slot></div>`;
|
|
1744
1819
|
}
|
|
1745
1820
|
};
|
|
1746
|
-
|
|
1821
|
+
j2.styles = g`
|
|
1747
1822
|
:host { display: block; font-family: var(--font-sans); }
|
|
1748
1823
|
.field-group { display: flex; flex-direction: column; row-gap: 24px; }
|
|
1749
1824
|
`;
|
|
1750
|
-
let
|
|
1751
|
-
customElements.get("anduin-field") || customElements.define("anduin-field",
|
|
1752
|
-
customElements.get("anduin-field-label") || customElements.define("anduin-field-label",
|
|
1753
|
-
customElements.get("anduin-field-description") || customElements.define("anduin-field-description",
|
|
1754
|
-
customElements.get("anduin-field-error") || customElements.define("anduin-field-error",
|
|
1755
|
-
customElements.get("anduin-field-group") || customElements.define("anduin-field-group",
|
|
1756
|
-
var
|
|
1825
|
+
let a2 = j2;
|
|
1826
|
+
customElements.get("anduin-field") || customElements.define("anduin-field", G1);
|
|
1827
|
+
customElements.get("anduin-field-label") || customElements.define("anduin-field-label", R1);
|
|
1828
|
+
customElements.get("anduin-field-description") || customElements.define("anduin-field-description", n2);
|
|
1829
|
+
customElements.get("anduin-field-error") || customElements.define("anduin-field-error", C2);
|
|
1830
|
+
customElements.get("anduin-field-group") || customElements.define("anduin-field-group", a2);
|
|
1831
|
+
var J4 = Object.defineProperty, P1 = (l, e, t, i) => {
|
|
1757
1832
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1758
1833
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1759
|
-
return o &&
|
|
1834
|
+
return o && J4(e, t, o), o;
|
|
1760
1835
|
};
|
|
1761
|
-
const
|
|
1836
|
+
const Q4 = "anduin-checkbox:change", U2 = class U2 extends h {
|
|
1762
1837
|
constructor() {
|
|
1763
1838
|
super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
|
|
1764
1839
|
}
|
|
@@ -1771,7 +1846,7 @@ const W4 = "anduin-checkbox:change", N2 = class N2 extends h {
|
|
|
1771
1846
|
});
|
|
1772
1847
|
}
|
|
1773
1848
|
toggle() {
|
|
1774
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
1849
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(Q4, {
|
|
1775
1850
|
detail: this.checked,
|
|
1776
1851
|
bubbles: !0,
|
|
1777
1852
|
composed: !0
|
|
@@ -1812,7 +1887,7 @@ const W4 = "anduin-checkbox:change", N2 = class N2 extends h {
|
|
|
1812
1887
|
`;
|
|
1813
1888
|
}
|
|
1814
1889
|
};
|
|
1815
|
-
|
|
1890
|
+
U2.styles = g`
|
|
1816
1891
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
1817
1892
|
|
|
1818
1893
|
label {
|
|
@@ -1850,29 +1925,29 @@ N2.styles = g`
|
|
|
1850
1925
|
.checkbox__icon { position: absolute; inset: 0; pointer-events: none; color: var(--color-gray-4); display: flex; align-items: center; justify-content: center; }
|
|
1851
1926
|
.checkbox__icon--visible { color: var(--color-gray-0); }
|
|
1852
1927
|
`;
|
|
1853
|
-
let U =
|
|
1854
|
-
|
|
1928
|
+
let U = U2;
|
|
1929
|
+
P1([
|
|
1855
1930
|
C({ type: Boolean })
|
|
1856
1931
|
], U.prototype, "checked");
|
|
1857
|
-
|
|
1932
|
+
P1([
|
|
1858
1933
|
C({ type: Boolean })
|
|
1859
1934
|
], U.prototype, "disabled");
|
|
1860
|
-
|
|
1935
|
+
P1([
|
|
1861
1936
|
C({ type: Boolean })
|
|
1862
1937
|
], U.prototype, "indeterminate");
|
|
1863
|
-
|
|
1938
|
+
P1([
|
|
1864
1939
|
C({ type: Boolean })
|
|
1865
1940
|
], U.prototype, "readonly");
|
|
1866
|
-
|
|
1941
|
+
P1([
|
|
1867
1942
|
C()
|
|
1868
1943
|
], U.prototype, "inputid");
|
|
1869
1944
|
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", U);
|
|
1870
|
-
var
|
|
1945
|
+
var e3 = Object.defineProperty, A = (l, e, t, i) => {
|
|
1871
1946
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1872
1947
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1873
|
-
return o &&
|
|
1948
|
+
return o && e3(e, t, o), o;
|
|
1874
1949
|
};
|
|
1875
|
-
const
|
|
1950
|
+
const E5 = "anduin-input:change", t3 = "anduin-input:clear", q2 = class q2 extends h {
|
|
1876
1951
|
constructor() {
|
|
1877
1952
|
super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1;
|
|
1878
1953
|
}
|
|
@@ -1889,7 +1964,7 @@ const R5 = "anduin-input:change", Y4 = "anduin-input:clear", j2 = class j2 exten
|
|
|
1889
1964
|
this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
|
|
1890
1965
|
}
|
|
1891
1966
|
onInput() {
|
|
1892
|
-
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(
|
|
1967
|
+
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(E5, {
|
|
1893
1968
|
detail: this.value,
|
|
1894
1969
|
bubbles: !0,
|
|
1895
1970
|
composed: !0
|
|
@@ -1897,7 +1972,7 @@ const R5 = "anduin-input:change", Y4 = "anduin-input:clear", j2 = class j2 exten
|
|
|
1897
1972
|
}
|
|
1898
1973
|
onClear() {
|
|
1899
1974
|
var e;
|
|
1900
|
-
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(
|
|
1975
|
+
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(E5, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(t3, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
|
|
1901
1976
|
}
|
|
1902
1977
|
render() {
|
|
1903
1978
|
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", i = !!this.startIcon, o = !!this.endIcon || this.clearable && !!this.value, r = this.clearable && !!this.value && !this.disabled && !this.readonly, n = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", a = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
|
|
@@ -1941,7 +2016,7 @@ const R5 = "anduin-input:change", Y4 = "anduin-input:clear", j2 = class j2 exten
|
|
|
1941
2016
|
`;
|
|
1942
2017
|
}
|
|
1943
2018
|
};
|
|
1944
|
-
|
|
2019
|
+
q2.styles = g`
|
|
1945
2020
|
:host { display: block; font-family: var(--font-sans); }
|
|
1946
2021
|
|
|
1947
2022
|
.input-wrapper { position: relative; display: flex; align-items: center; }
|
|
@@ -1995,7 +2070,7 @@ j2.styles = g`
|
|
|
1995
2070
|
}
|
|
1996
2071
|
.input__clear:hover { color: var(--color-gray-7); }
|
|
1997
2072
|
`;
|
|
1998
|
-
let w =
|
|
2073
|
+
let w = q2;
|
|
1999
2074
|
A([
|
|
2000
2075
|
C()
|
|
2001
2076
|
], w.prototype, "value");
|
|
@@ -2030,12 +2105,12 @@ A([
|
|
|
2030
2105
|
R("input")
|
|
2031
2106
|
], w.prototype, "inputEl");
|
|
2032
2107
|
customElements.get("anduin-input") || customElements.define("anduin-input", w);
|
|
2033
|
-
var
|
|
2108
|
+
var o3 = Object.defineProperty, W = (l, e, t, i) => {
|
|
2034
2109
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2035
2110
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2036
|
-
return o &&
|
|
2111
|
+
return o && o3(e, t, o), o;
|
|
2037
2112
|
};
|
|
2038
|
-
const
|
|
2113
|
+
const i3 = "anduin-textarea:change", W2 = class W2 extends h {
|
|
2039
2114
|
constructor() {
|
|
2040
2115
|
super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
|
|
2041
2116
|
}
|
|
@@ -2052,7 +2127,7 @@ const K4 = "anduin-textarea:change", U2 = class U2 extends h {
|
|
|
2052
2127
|
this.textareaEl && this.textareaEl.value !== this.value && (this.textareaEl.value = this.value);
|
|
2053
2128
|
}
|
|
2054
2129
|
onInput() {
|
|
2055
|
-
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(
|
|
2130
|
+
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(i3, {
|
|
2056
2131
|
detail: this.value,
|
|
2057
2132
|
bubbles: !0,
|
|
2058
2133
|
composed: !0
|
|
@@ -2077,7 +2152,7 @@ const K4 = "anduin-textarea:change", U2 = class U2 extends h {
|
|
|
2077
2152
|
`;
|
|
2078
2153
|
}
|
|
2079
2154
|
};
|
|
2080
|
-
|
|
2155
|
+
W2.styles = g`
|
|
2081
2156
|
:host { display: block; font-family: var(--font-sans); }
|
|
2082
2157
|
|
|
2083
2158
|
.textarea {
|
|
@@ -2094,7 +2169,7 @@ U2.styles = g`
|
|
|
2094
2169
|
.textarea--warning { border-color: var(--color-warning-4); }
|
|
2095
2170
|
.textarea--loading { border-color: var(--color-gray-4); }
|
|
2096
2171
|
`;
|
|
2097
|
-
let $ =
|
|
2172
|
+
let $ = W2;
|
|
2098
2173
|
W([
|
|
2099
2174
|
C()
|
|
2100
2175
|
], $.prototype, "value");
|
|
@@ -2120,20 +2195,20 @@ W([
|
|
|
2120
2195
|
R("textarea")
|
|
2121
2196
|
], $.prototype, "textareaEl");
|
|
2122
2197
|
customElements.get("anduin-textarea") || customElements.define("anduin-textarea", $);
|
|
2123
|
-
var
|
|
2198
|
+
var l3 = Object.defineProperty, k = (l, e, t, i) => {
|
|
2124
2199
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2125
2200
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2126
|
-
return o &&
|
|
2201
|
+
return o && l3(e, t, o), o;
|
|
2127
2202
|
};
|
|
2128
|
-
const
|
|
2203
|
+
const i4 = "anduin-tab:trigger-click", K1 = "anduin-tab:value-changed", r3 = "anduin-tab:change", G2 = class G2 extends h {
|
|
2129
2204
|
constructor() {
|
|
2130
2205
|
super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
|
|
2131
2206
|
}
|
|
2132
2207
|
connectedCallback() {
|
|
2133
|
-
super.connectedCallback(), this.addEventListener(
|
|
2208
|
+
super.connectedCallback(), this.addEventListener(i4, (e) => {
|
|
2134
2209
|
e.stopPropagation();
|
|
2135
2210
|
const t = e;
|
|
2136
|
-
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(
|
|
2211
|
+
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(r3, { detail: t.detail, bubbles: !0, composed: !0 }));
|
|
2137
2212
|
}), requestAnimationFrame(() => {
|
|
2138
2213
|
const e = this.value || this.defaultValue;
|
|
2139
2214
|
e && (this.value || (this.value = e), this.broadcastValueChanged(e));
|
|
@@ -2143,19 +2218,19 @@ const Q5 = "anduin-tab:trigger-click", Y1 = "anduin-tab:value-changed", Q4 = "an
|
|
|
2143
2218
|
e.has("value") && this.value && this.broadcastValueChanged(this.value);
|
|
2144
2219
|
}
|
|
2145
2220
|
broadcastValueChanged(e) {
|
|
2146
|
-
this.dispatchEvent(new CustomEvent(
|
|
2221
|
+
this.dispatchEvent(new CustomEvent(K1, { detail: e, bubbles: !1, composed: !1 }));
|
|
2147
2222
|
}
|
|
2148
2223
|
render() {
|
|
2149
2224
|
return s`<div class="tabs" part="tabs"><slot></slot></div>`;
|
|
2150
2225
|
}
|
|
2151
2226
|
};
|
|
2152
|
-
|
|
2227
|
+
G2.styles = g`
|
|
2153
2228
|
:host { display: flex; flex-direction: column; font-family: var(--font-sans); }
|
|
2154
2229
|
:host([fill]) { flex: 1; min-height: 0; --_tab-fill-flex: 1; --_tab-fill-height: 100%; }
|
|
2155
2230
|
.tabs { display: flex; flex-direction: column; width: 100%; }
|
|
2156
2231
|
:host([fill]) .tabs { flex: 1; min-height: 0; }
|
|
2157
2232
|
`;
|
|
2158
|
-
let d1 =
|
|
2233
|
+
let d1 = G2;
|
|
2159
2234
|
k([
|
|
2160
2235
|
C({ attribute: "default-value" })
|
|
2161
2236
|
], d1.prototype, "defaultValue");
|
|
@@ -2165,14 +2240,14 @@ k([
|
|
|
2165
2240
|
k([
|
|
2166
2241
|
C({ type: Boolean, reflect: !0 })
|
|
2167
2242
|
], d1.prototype, "fill");
|
|
2168
|
-
const
|
|
2243
|
+
const Y2 = class Y2 extends h {
|
|
2169
2244
|
constructor() {
|
|
2170
2245
|
super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
|
|
2171
2246
|
}
|
|
2172
2247
|
connectedCallback() {
|
|
2173
2248
|
super.connectedCallback();
|
|
2174
2249
|
const e = this.closest("anduin-tabs");
|
|
2175
|
-
e && e.addEventListener(
|
|
2250
|
+
e && e.addEventListener(K1, (t) => {
|
|
2176
2251
|
const i = t;
|
|
2177
2252
|
this.lastActiveValue = i.detail, requestAnimationFrame(() => {
|
|
2178
2253
|
this.animateIndicator(i.detail);
|
|
@@ -2208,7 +2283,7 @@ const W2 = class W2 extends h {
|
|
|
2208
2283
|
`;
|
|
2209
2284
|
}
|
|
2210
2285
|
};
|
|
2211
|
-
|
|
2286
|
+
Y2.styles = g`
|
|
2212
2287
|
:host { display: block; font-family: var(--font-sans); }
|
|
2213
2288
|
.tabs-list {
|
|
2214
2289
|
display: flex; background-color: var(--color-gray-0);
|
|
@@ -2223,27 +2298,27 @@ W2.styles = g`
|
|
|
2223
2298
|
left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
|
|
2224
2299
|
}
|
|
2225
2300
|
`;
|
|
2226
|
-
let
|
|
2301
|
+
let k1 = Y2;
|
|
2227
2302
|
k([
|
|
2228
2303
|
C()
|
|
2229
|
-
],
|
|
2304
|
+
], k1.prototype, "alignment");
|
|
2230
2305
|
k([
|
|
2231
2306
|
R(".tabs-list__indicator")
|
|
2232
|
-
],
|
|
2233
|
-
const
|
|
2307
|
+
], k1.prototype, "indicator");
|
|
2308
|
+
const X2 = class X2 extends h {
|
|
2234
2309
|
constructor() {
|
|
2235
2310
|
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
|
|
2236
2311
|
}
|
|
2237
2312
|
connectedCallback() {
|
|
2238
2313
|
super.connectedCallback();
|
|
2239
2314
|
const e = this.closest("anduin-tabs");
|
|
2240
|
-
e && e.addEventListener(
|
|
2315
|
+
e && e.addEventListener(K1, (t) => {
|
|
2241
2316
|
const i = t;
|
|
2242
2317
|
this.isActive = i.detail === this.value;
|
|
2243
2318
|
});
|
|
2244
2319
|
}
|
|
2245
2320
|
onClick() {
|
|
2246
|
-
this.dispatchEvent(new CustomEvent(
|
|
2321
|
+
this.dispatchEvent(new CustomEvent(i4, { detail: this.value, bubbles: !0, composed: !0 }));
|
|
2247
2322
|
}
|
|
2248
2323
|
render() {
|
|
2249
2324
|
return s`
|
|
@@ -2264,7 +2339,7 @@ const G2 = class G2 extends h {
|
|
|
2264
2339
|
`;
|
|
2265
2340
|
}
|
|
2266
2341
|
};
|
|
2267
|
-
|
|
2342
|
+
X2.styles = g`
|
|
2268
2343
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2269
2344
|
.tab-trigger {
|
|
2270
2345
|
cursor: pointer; background: none; border: none; display: block;
|
|
@@ -2287,33 +2362,33 @@ G2.styles = g`
|
|
|
2287
2362
|
color: var(--color-gray-7); white-space: nowrap;
|
|
2288
2363
|
}
|
|
2289
2364
|
`;
|
|
2290
|
-
let
|
|
2365
|
+
let F = X2;
|
|
2291
2366
|
k([
|
|
2292
2367
|
C()
|
|
2293
|
-
],
|
|
2368
|
+
], F.prototype, "value");
|
|
2294
2369
|
k([
|
|
2295
2370
|
C({ attribute: "start-icon" })
|
|
2296
|
-
],
|
|
2371
|
+
], F.prototype, "startIcon");
|
|
2297
2372
|
k([
|
|
2298
2373
|
C({ type: Boolean })
|
|
2299
|
-
],
|
|
2374
|
+
], F.prototype, "disabled");
|
|
2300
2375
|
k([
|
|
2301
2376
|
C({ type: Boolean, attribute: "show-badge" })
|
|
2302
|
-
],
|
|
2377
|
+
], F.prototype, "showBadge");
|
|
2303
2378
|
k([
|
|
2304
2379
|
C({ attribute: "badge-count" })
|
|
2305
|
-
],
|
|
2380
|
+
], F.prototype, "badgeCount");
|
|
2306
2381
|
k([
|
|
2307
2382
|
M()
|
|
2308
|
-
],
|
|
2309
|
-
const
|
|
2383
|
+
], F.prototype, "isActive");
|
|
2384
|
+
const K2 = class K2 extends h {
|
|
2310
2385
|
constructor() {
|
|
2311
2386
|
super(...arguments), this.value = "", this.isActive = !1;
|
|
2312
2387
|
}
|
|
2313
2388
|
connectedCallback() {
|
|
2314
2389
|
super.connectedCallback();
|
|
2315
2390
|
const e = this.closest("anduin-tabs");
|
|
2316
|
-
e && e.addEventListener(
|
|
2391
|
+
e && e.addEventListener(K1, (t) => {
|
|
2317
2392
|
const i = t;
|
|
2318
2393
|
this.isActive = i.detail === this.value;
|
|
2319
2394
|
});
|
|
@@ -2329,28 +2404,28 @@ const Y2 = class Y2 extends h {
|
|
|
2329
2404
|
`;
|
|
2330
2405
|
}
|
|
2331
2406
|
};
|
|
2332
|
-
|
|
2407
|
+
K2.styles = g`
|
|
2333
2408
|
:host { display: block; font-family: var(--font-sans); flex: var(--_tab-fill-flex, 0 0 auto); min-height: 0; }
|
|
2334
2409
|
:host(:not([active])) { display: none; }
|
|
2335
2410
|
.tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
|
|
2336
2411
|
`;
|
|
2337
|
-
let
|
|
2412
|
+
let $1 = K2;
|
|
2338
2413
|
k([
|
|
2339
2414
|
C()
|
|
2340
|
-
],
|
|
2415
|
+
], $1.prototype, "value");
|
|
2341
2416
|
k([
|
|
2342
2417
|
M()
|
|
2343
|
-
],
|
|
2418
|
+
], $1.prototype, "isActive");
|
|
2344
2419
|
customElements.get("anduin-tabs") || customElements.define("anduin-tabs", d1);
|
|
2345
|
-
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list",
|
|
2346
|
-
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger",
|
|
2347
|
-
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content",
|
|
2348
|
-
var
|
|
2420
|
+
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", k1);
|
|
2421
|
+
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", F);
|
|
2422
|
+
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", $1);
|
|
2423
|
+
var n3 = Object.defineProperty, _2 = (l, e, t, i) => {
|
|
2349
2424
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2350
2425
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2351
|
-
return o &&
|
|
2426
|
+
return o && n3(e, t, o), o;
|
|
2352
2427
|
};
|
|
2353
|
-
const
|
|
2428
|
+
const C3 = "anduin-tag-close:click", a3 = {
|
|
2354
2429
|
gray: "tag--light-gray",
|
|
2355
2430
|
primary: "tag--light-primary",
|
|
2356
2431
|
success: "tag--light-success",
|
|
@@ -2375,7 +2450,7 @@ const t3 = "anduin-tag-close:click", o3 = {
|
|
|
2375
2450
|
customYellow: "tag--custom-yellow",
|
|
2376
2451
|
customYellowGreen: "tag--custom-yellow-green",
|
|
2377
2452
|
customYellowOrange: "tag--custom-yellow-orange"
|
|
2378
|
-
},
|
|
2453
|
+
}, s3 = {
|
|
2379
2454
|
gray: "tag__icon--light-gray",
|
|
2380
2455
|
primary: "tag__icon--light-primary",
|
|
2381
2456
|
success: "tag__icon--light-success",
|
|
@@ -2400,12 +2475,12 @@ const t3 = "anduin-tag-close:click", o3 = {
|
|
|
2400
2475
|
customMagenta: "tag__icon--custom-magenta",
|
|
2401
2476
|
customBlueGreen: "tag__icon--custom-blue-green",
|
|
2402
2477
|
customPink: "tag__icon--custom-pink"
|
|
2403
|
-
},
|
|
2478
|
+
}, J2 = class J2 extends h {
|
|
2404
2479
|
constructor() {
|
|
2405
2480
|
super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
|
|
2406
2481
|
}
|
|
2407
2482
|
render() {
|
|
2408
|
-
const e =
|
|
2483
|
+
const e = a3[this.variant] || "tag--light-gray", t = s3[this.variant] || "tag__icon--light-gray";
|
|
2409
2484
|
return s`
|
|
2410
2485
|
<div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
|
|
2411
2486
|
${this.icon ? s`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : c}
|
|
@@ -2415,7 +2490,7 @@ const t3 = "anduin-tag-close:click", o3 = {
|
|
|
2415
2490
|
`;
|
|
2416
2491
|
}
|
|
2417
2492
|
};
|
|
2418
|
-
|
|
2493
|
+
J2.styles = g`
|
|
2419
2494
|
:host { display: inline-flex; max-width: 100%; font-family: var(--font-sans); }
|
|
2420
2495
|
.tag {
|
|
2421
2496
|
font-weight: 500; font-size: 11px; height: 20px; padding-left: 6px; padding-right: 6px;
|
|
@@ -2463,19 +2538,19 @@ X2.styles = g`
|
|
|
2463
2538
|
.tag--custom-yellow-green { color: var(--color-gray-9); background-color: rgb(174,207,85); }
|
|
2464
2539
|
.tag--custom-yellow-orange { color: var(--color-gray-9); background-color: rgb(255,193,107); }
|
|
2465
2540
|
`;
|
|
2466
|
-
let c1 =
|
|
2467
|
-
|
|
2541
|
+
let c1 = J2;
|
|
2542
|
+
_2([
|
|
2468
2543
|
C()
|
|
2469
2544
|
], c1.prototype, "variant");
|
|
2470
|
-
|
|
2545
|
+
_2([
|
|
2471
2546
|
C()
|
|
2472
2547
|
], c1.prototype, "icon");
|
|
2473
|
-
|
|
2548
|
+
_2([
|
|
2474
2549
|
C({ type: Boolean })
|
|
2475
2550
|
], c1.prototype, "disabled");
|
|
2476
|
-
const
|
|
2551
|
+
const Q2 = class Q2 extends h {
|
|
2477
2552
|
onClick() {
|
|
2478
|
-
this.dispatchEvent(new CustomEvent(
|
|
2553
|
+
this.dispatchEvent(new CustomEvent(C3, { bubbles: !0, composed: !0 }));
|
|
2479
2554
|
}
|
|
2480
2555
|
render() {
|
|
2481
2556
|
return s`
|
|
@@ -2485,7 +2560,7 @@ const K2 = class K2 extends h {
|
|
|
2485
2560
|
`;
|
|
2486
2561
|
}
|
|
2487
2562
|
};
|
|
2488
|
-
|
|
2563
|
+
Q2.styles = g`
|
|
2489
2564
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2490
2565
|
.tag-close__button {
|
|
2491
2566
|
flex: none; width: 16px; height: 16px; display: flex; align-items: center;
|
|
@@ -2495,15 +2570,15 @@ K2.styles = g`
|
|
|
2495
2570
|
.tag-close__button:hover { opacity: 0.7; }
|
|
2496
2571
|
.tag-close__button:active { opacity: 0.5; }
|
|
2497
2572
|
`;
|
|
2498
|
-
let
|
|
2573
|
+
let s2 = Q2;
|
|
2499
2574
|
customElements.get("anduin-tag") || customElements.define("anduin-tag", c1);
|
|
2500
|
-
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close",
|
|
2501
|
-
var
|
|
2575
|
+
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", s2);
|
|
2576
|
+
var d3 = Object.defineProperty, l4 = (l, e, t, i) => {
|
|
2502
2577
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2503
2578
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2504
|
-
return o &&
|
|
2579
|
+
return o && d3(e, t, o), o;
|
|
2505
2580
|
};
|
|
2506
|
-
const
|
|
2581
|
+
const r4 = "anduin-tooltip:show", x2 = "anduin-tooltip:hide", n4 = "anduin-tooltip:trigger-mounted", C4 = "anduin-tooltip:content-popup-mounted", a4 = "anduin-tooltip:content-popup-unmounted", s4 = "anduin-tooltip:visibility-changed", c3 = [
|
|
2507
2582
|
"top-start",
|
|
2508
2583
|
"top-center",
|
|
2509
2584
|
"top-end",
|
|
@@ -2517,7 +2592,7 @@ const t4 = "anduin-tooltip:show", _2 = "anduin-tooltip:hide", o4 = "anduin-toolt
|
|
|
2517
2592
|
"left-center",
|
|
2518
2593
|
"left-end"
|
|
2519
2594
|
];
|
|
2520
|
-
function
|
|
2595
|
+
function A5(l, e, t, i, o) {
|
|
2521
2596
|
switch (i) {
|
|
2522
2597
|
case "top-start":
|
|
2523
2598
|
return { left: l.left, top: l.top - t - o };
|
|
@@ -2547,20 +2622,20 @@ function k5(l, e, t, i, o) {
|
|
|
2547
2622
|
return { left: 0, top: 0 };
|
|
2548
2623
|
}
|
|
2549
2624
|
}
|
|
2550
|
-
function
|
|
2625
|
+
function B5(l, e) {
|
|
2551
2626
|
return e.right >= l.left && e.left <= l.right && e.top <= l.bottom && e.bottom >= l.top;
|
|
2552
2627
|
}
|
|
2553
|
-
function
|
|
2628
|
+
function z5(l, e) {
|
|
2554
2629
|
const t = Math.max(l.left, e.left), i = Math.max(l.top, e.top), o = Math.min(l.right, e.right), r = Math.min(l.bottom, e.bottom);
|
|
2555
2630
|
return o < t || r < i ? 0 : (o - t) * (r - i);
|
|
2556
2631
|
}
|
|
2557
|
-
function
|
|
2632
|
+
function p3(l, e, t, i = 8) {
|
|
2558
2633
|
const o = window.innerWidth, r = window.innerHeight, n = { left: 0, top: 0, right: o, bottom: r }, a = e.width, d = e.height;
|
|
2559
|
-
if (
|
|
2634
|
+
if (!B5(
|
|
2560
2635
|
{ left: l.left, top: l.top, right: l.right, bottom: l.bottom },
|
|
2561
2636
|
n
|
|
2562
2637
|
)) return null;
|
|
2563
|
-
const p =
|
|
2638
|
+
const p = A5(l, a, d, t, i), u = c3.map((f) => ({ p: f, off: A5(l, a, d, f, i) })).filter(({ off: f }) => B5({ left: f.left, top: f.top, right: f.left + a, bottom: f.top + d }, n));
|
|
2564
2639
|
if (u.length === 0)
|
|
2565
2640
|
return {
|
|
2566
2641
|
placement: t,
|
|
@@ -2568,10 +2643,10 @@ function n3(l, e, t, i = 8) {
|
|
|
2568
2643
|
top: Math.round(Math.min(Math.max(p.top, 0), r - d))
|
|
2569
2644
|
};
|
|
2570
2645
|
u.sort((f, Z) => {
|
|
2571
|
-
const I = { left: f.off.left, top: f.off.top, right: f.off.left + a, bottom: f.off.top + d }, x = { left: Z.off.left, top: Z.off.top, right: Z.off.left + a, bottom: Z.off.top + d }, S =
|
|
2646
|
+
const I = { left: f.off.left, top: f.off.top, right: f.off.left + a, bottom: f.off.top + d }, x = { left: Z.off.left, top: Z.off.top, right: Z.off.left + a, bottom: Z.off.top + d }, S = z5(I, n), X = z5(x, n);
|
|
2572
2647
|
if (X !== S) return X - S;
|
|
2573
|
-
const F1 = Math.abs(f.off.left - p.left) + Math.abs(f.off.top - p.top),
|
|
2574
|
-
return F1 -
|
|
2648
|
+
const F1 = Math.abs(f.off.left - p.left) + Math.abs(f.off.top - p.top), O1 = Math.abs(Z.off.left - p.left) + Math.abs(Z.off.top - p.top);
|
|
2649
|
+
return F1 - O1;
|
|
2575
2650
|
});
|
|
2576
2651
|
const { p: v, off: H } = u[0];
|
|
2577
2652
|
return {
|
|
@@ -2580,10 +2655,10 @@ function n3(l, e, t, i = 8) {
|
|
|
2580
2655
|
top: Math.round(Math.min(Math.max(H.top, 0), r - d))
|
|
2581
2656
|
};
|
|
2582
2657
|
}
|
|
2583
|
-
function
|
|
2658
|
+
function d2(l) {
|
|
2584
2659
|
return l.split("-")[0] || "top";
|
|
2585
2660
|
}
|
|
2586
|
-
function
|
|
2661
|
+
function u3(l, e, t) {
|
|
2587
2662
|
let i = !1, o = t.length - 1;
|
|
2588
2663
|
for (let r = 0; r < t.length; r++) {
|
|
2589
2664
|
const n = t[r][0], a = t[r][1], d = t[o][0], p = t[o][1];
|
|
@@ -2591,20 +2666,20 @@ function C3(l, e, t) {
|
|
|
2591
2666
|
}
|
|
2592
2667
|
return i;
|
|
2593
2668
|
}
|
|
2594
|
-
const
|
|
2669
|
+
const e5 = class e5 extends h {
|
|
2595
2670
|
constructor() {
|
|
2596
2671
|
super(...arguments), this.disabled = !1, this.placement = "top-center", this.triggerElement = null, this.contentPopupElement = null, this.containingBlockLeft = 0, this.containingBlockTop = 0, this.rafId = 0, this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN, this.isVisible = !1;
|
|
2597
2672
|
}
|
|
2598
2673
|
connectedCallback() {
|
|
2599
|
-
super.connectedCallback(), this.addEventListener(
|
|
2674
|
+
super.connectedCallback(), this.addEventListener(n4, (e) => {
|
|
2600
2675
|
e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
|
|
2601
|
-
}), this.addEventListener(
|
|
2676
|
+
}), this.addEventListener(C4, (e) => {
|
|
2602
2677
|
e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
|
|
2603
|
-
}), this.addEventListener(
|
|
2678
|
+
}), this.addEventListener(a4, (e) => {
|
|
2604
2679
|
e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
|
|
2605
|
-
}), this.addEventListener(
|
|
2680
|
+
}), this.addEventListener(r4, (e) => {
|
|
2606
2681
|
e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
|
|
2607
|
-
}), this.addEventListener(
|
|
2682
|
+
}), this.addEventListener(x2, (e) => {
|
|
2608
2683
|
e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
|
|
2609
2684
|
});
|
|
2610
2685
|
}
|
|
@@ -2635,11 +2710,11 @@ const J2 = class J2 extends h {
|
|
|
2635
2710
|
this.containingBlockLeft = o.left, this.containingBlockTop = o.top, t.style.transform = i;
|
|
2636
2711
|
}
|
|
2637
2712
|
positionPopup(e, t, i) {
|
|
2638
|
-
const o = t.getBoundingClientRect(), r = e.getBoundingClientRect(), n =
|
|
2713
|
+
const o = t.getBoundingClientRect(), r = e.getBoundingClientRect(), n = p3(o, r, i, 8);
|
|
2639
2714
|
if (n) {
|
|
2640
2715
|
const a = e;
|
|
2641
2716
|
a.style.transform = `translate(${n.left - this.containingBlockLeft}px, ${n.top - this.containingBlockTop}px)`;
|
|
2642
|
-
const d =
|
|
2717
|
+
const d = d2(n.placement), p = d2(i);
|
|
2643
2718
|
if (d !== p) {
|
|
2644
2719
|
const u = e.querySelector(".tooltip-arrow");
|
|
2645
2720
|
u && (u.classList.remove(`tooltip-arrow--${p}`), u.classList.add(`tooltip-arrow--${d}`));
|
|
@@ -2647,49 +2722,49 @@ const J2 = class J2 extends h {
|
|
|
2647
2722
|
}
|
|
2648
2723
|
}
|
|
2649
2724
|
broadcastVisibilityChanged(e) {
|
|
2650
|
-
this.dispatchEvent(new CustomEvent(
|
|
2725
|
+
this.dispatchEvent(new CustomEvent(s4, { detail: e, bubbles: !1, composed: !1 }));
|
|
2651
2726
|
}
|
|
2652
2727
|
render() {
|
|
2653
2728
|
return s`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
|
|
2654
2729
|
}
|
|
2655
2730
|
};
|
|
2656
|
-
|
|
2731
|
+
e5.styles = g`
|
|
2657
2732
|
:host { display: inline-block; position: relative; max-width: 100%; font-family: var(--font-sans); }
|
|
2658
2733
|
.tooltip-root { display: inline-block; position: relative; max-width: 100%; }
|
|
2659
2734
|
`;
|
|
2660
|
-
let
|
|
2661
|
-
|
|
2735
|
+
let E1 = e5;
|
|
2736
|
+
l4([
|
|
2662
2737
|
C({ type: Boolean })
|
|
2663
|
-
],
|
|
2664
|
-
|
|
2738
|
+
], E1.prototype, "disabled");
|
|
2739
|
+
l4([
|
|
2665
2740
|
C()
|
|
2666
|
-
],
|
|
2667
|
-
const
|
|
2741
|
+
], E1.prototype, "placement");
|
|
2742
|
+
const t5 = class t5 extends h {
|
|
2668
2743
|
firstUpdated() {
|
|
2669
2744
|
requestAnimationFrame(() => {
|
|
2670
|
-
this.dispatchEvent(new CustomEvent(
|
|
2745
|
+
this.dispatchEvent(new CustomEvent(n4, { detail: this, bubbles: !0, composed: !0 }));
|
|
2671
2746
|
}), this.addEventListener("pointerenter", () => {
|
|
2672
|
-
this.dispatchEvent(new CustomEvent(
|
|
2747
|
+
this.dispatchEvent(new CustomEvent(r4, { bubbles: !0, composed: !0 }));
|
|
2673
2748
|
}), this.addEventListener("click", () => {
|
|
2674
|
-
this.dispatchEvent(new CustomEvent(
|
|
2749
|
+
this.dispatchEvent(new CustomEvent(x2, { bubbles: !0, composed: !0 }));
|
|
2675
2750
|
});
|
|
2676
2751
|
}
|
|
2677
2752
|
render() {
|
|
2678
2753
|
return s`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
|
|
2679
2754
|
}
|
|
2680
2755
|
};
|
|
2681
|
-
|
|
2756
|
+
t5.styles = g`
|
|
2682
2757
|
:host { display: inline-block; max-width: 100%; font-family: var(--font-sans); }
|
|
2683
2758
|
.tooltip-trigger { display: flex; align-items: center; max-width: 100%; }
|
|
2684
2759
|
`;
|
|
2685
|
-
let
|
|
2686
|
-
const
|
|
2760
|
+
let c2 = t5;
|
|
2761
|
+
const o5 = class o5 extends h {
|
|
2687
2762
|
constructor() {
|
|
2688
2763
|
super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
|
|
2689
2764
|
var r, n;
|
|
2690
2765
|
if (!this.graceArea) return;
|
|
2691
2766
|
const t = e.target, i = ((r = this.triggerEl) == null ? void 0 : r.contains(t)) ?? !1, o = ((n = this.popupEl) == null ? void 0 : n.contains(t)) ?? !1;
|
|
2692
|
-
i || o ? this.graceArea = null :
|
|
2767
|
+
i || o ? this.graceArea = null : u3(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(x2, { bubbles: !0, composed: !0 })));
|
|
2693
2768
|
}, this.handleTriggerLeave = (e) => {
|
|
2694
2769
|
this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
|
|
2695
2770
|
}, this.handleContentLeave = (e) => {
|
|
@@ -2699,7 +2774,7 @@ const e5 = class e5 extends h {
|
|
|
2699
2774
|
connectedCallback() {
|
|
2700
2775
|
super.connectedCallback();
|
|
2701
2776
|
const e = this.closest("anduin-tooltip");
|
|
2702
|
-
e && e.addEventListener(
|
|
2777
|
+
e && e.addEventListener(s4, (t) => {
|
|
2703
2778
|
const i = t.detail;
|
|
2704
2779
|
i.startsWith("show:") ? this.showPopup(i.slice(5)) : this.hidePopup();
|
|
2705
2780
|
});
|
|
@@ -2725,7 +2800,7 @@ const e5 = class e5 extends h {
|
|
|
2725
2800
|
}
|
|
2726
2801
|
showPopup(e) {
|
|
2727
2802
|
this.hidePopup();
|
|
2728
|
-
const t =
|
|
2803
|
+
const t = d2(e), i = document.createElement("div");
|
|
2729
2804
|
i.className = "tooltip-popup", i.setAttribute("role", "tooltip");
|
|
2730
2805
|
const o = document.createElement("div");
|
|
2731
2806
|
o.className = `tooltip-arrow tooltip-arrow--${t}`;
|
|
@@ -2738,16 +2813,16 @@ const e5 = class e5 extends h {
|
|
|
2738
2813
|
const d = a.querySelector("anduin-tooltip-trigger");
|
|
2739
2814
|
d && this.setupGraceAreaListeners(d, i);
|
|
2740
2815
|
}
|
|
2741
|
-
this.dispatchEvent(new CustomEvent(
|
|
2816
|
+
this.dispatchEvent(new CustomEvent(C4, { detail: i, bubbles: !0, composed: !0 }));
|
|
2742
2817
|
}
|
|
2743
2818
|
hidePopup() {
|
|
2744
|
-
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(
|
|
2819
|
+
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(a4, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
|
|
2745
2820
|
}
|
|
2746
2821
|
render() {
|
|
2747
2822
|
return s`<div class="tooltip-content-wrapper"></div>`;
|
|
2748
2823
|
}
|
|
2749
2824
|
};
|
|
2750
|
-
|
|
2825
|
+
o5.styles = g`
|
|
2751
2826
|
:host {
|
|
2752
2827
|
display: contents;
|
|
2753
2828
|
--tooltip-bg: var(--anduin-tooltip-content-background, var(--color-gray-9));
|
|
@@ -2771,16 +2846,16 @@ e5.styles = g`
|
|
|
2771
2846
|
.tooltip-arrow--left { right: -4px; top: 50%; transform: translateY(-50%); border-left-color: var(--tooltip-bg); border-right: none; }
|
|
2772
2847
|
.tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
|
|
2773
2848
|
`;
|
|
2774
|
-
let
|
|
2775
|
-
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip",
|
|
2776
|
-
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger",
|
|
2777
|
-
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content",
|
|
2778
|
-
var
|
|
2849
|
+
let p2 = o5;
|
|
2850
|
+
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", E1);
|
|
2851
|
+
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", c2);
|
|
2852
|
+
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", p2);
|
|
2853
|
+
var h3 = Object.defineProperty, v3 = (l, e, t, i) => {
|
|
2779
2854
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2780
2855
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2781
|
-
return o &&
|
|
2856
|
+
return o && h3(e, t, o), o;
|
|
2782
2857
|
};
|
|
2783
|
-
const
|
|
2858
|
+
const g3 = "anduin-well-close:click", i5 = class i5 extends h {
|
|
2784
2859
|
constructor() {
|
|
2785
2860
|
super(...arguments), this.variant = "gray";
|
|
2786
2861
|
}
|
|
@@ -2799,7 +2874,7 @@ const d3 = "anduin-well-close:click", t5 = class t5 extends h {
|
|
|
2799
2874
|
`;
|
|
2800
2875
|
}
|
|
2801
2876
|
};
|
|
2802
|
-
|
|
2877
|
+
i5.styles = g`
|
|
2803
2878
|
:host {
|
|
2804
2879
|
display: block;
|
|
2805
2880
|
font-family: var(--font-sans);
|
|
@@ -2864,14 +2939,14 @@ t5.styles = g`
|
|
|
2864
2939
|
color: var(--color-warning-4);
|
|
2865
2940
|
}
|
|
2866
2941
|
`;
|
|
2867
|
-
let
|
|
2868
|
-
|
|
2942
|
+
let Y1 = i5;
|
|
2943
|
+
v3([
|
|
2869
2944
|
C()
|
|
2870
|
-
],
|
|
2871
|
-
const
|
|
2945
|
+
], Y1.prototype, "variant");
|
|
2946
|
+
const l5 = class l5 extends h {
|
|
2872
2947
|
onClick() {
|
|
2873
2948
|
this.dispatchEvent(
|
|
2874
|
-
new CustomEvent(
|
|
2949
|
+
new CustomEvent(g3, { bubbles: !0, composed: !0 })
|
|
2875
2950
|
);
|
|
2876
2951
|
}
|
|
2877
2952
|
render() {
|
|
@@ -2886,7 +2961,7 @@ const o5 = class o5 extends h {
|
|
|
2886
2961
|
`;
|
|
2887
2962
|
}
|
|
2888
2963
|
};
|
|
2889
|
-
|
|
2964
|
+
l5.styles = g`
|
|
2890
2965
|
:host {
|
|
2891
2966
|
display: inline-block;
|
|
2892
2967
|
font-family: var(--font-sans);
|
|
@@ -2911,15 +2986,15 @@ o5.styles = g`
|
|
|
2911
2986
|
background-color: var(--color-gray-3);
|
|
2912
2987
|
}
|
|
2913
2988
|
`;
|
|
2914
|
-
let
|
|
2915
|
-
customElements.get("anduin-well") || customElements.define("anduin-well",
|
|
2916
|
-
customElements.get("anduin-well-close") || customElements.define("anduin-well-close",
|
|
2917
|
-
var
|
|
2989
|
+
let u2 = l5;
|
|
2990
|
+
customElements.get("anduin-well") || customElements.define("anduin-well", Y1);
|
|
2991
|
+
customElements.get("anduin-well-close") || customElements.define("anduin-well-close", u2);
|
|
2992
|
+
var f3 = Object.defineProperty, i1 = (l, e, t, i) => {
|
|
2918
2993
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2919
2994
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2920
|
-
return o &&
|
|
2995
|
+
return o && f3(e, t, o), o;
|
|
2921
2996
|
};
|
|
2922
|
-
const
|
|
2997
|
+
const h2 = "anduin-popover:close", r5 = class r5 extends h {
|
|
2923
2998
|
constructor() {
|
|
2924
2999
|
super(...arguments), this.open = !1, this.placement = "bottom-start", this.fullWidth = !1, this._visible = !1, this._closing = !1, this._closeTransitionEndHandler = null, this._onOutsideClick = (e) => {
|
|
2925
3000
|
var t;
|
|
@@ -2934,10 +3009,10 @@ const u2 = "anduin-popover:close", i5 = class i5 extends h {
|
|
|
2934
3009
|
this.open = !this.open;
|
|
2935
3010
|
}
|
|
2936
3011
|
connectedCallback() {
|
|
2937
|
-
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(
|
|
3012
|
+
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(h2, this._onPopoverClose);
|
|
2938
3013
|
}
|
|
2939
3014
|
disconnectedCallback() {
|
|
2940
|
-
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(
|
|
3015
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(h2, this._onPopoverClose);
|
|
2941
3016
|
}
|
|
2942
3017
|
updated(e) {
|
|
2943
3018
|
e.has("open") && (this.open ? (this._cancelCloseAnimation(), this._closing = !1, this._visible = !0, requestAnimationFrame(() => this._updatePosition())) : this._startCloseAnimation());
|
|
@@ -2968,8 +3043,8 @@ const u2 = "anduin-popover:close", i5 = class i5 extends h {
|
|
|
2968
3043
|
let v = 0, H = 0, f = "bottom";
|
|
2969
3044
|
const Z = !this.placement.startsWith("top"), I = p - i.bottom - a, x = i.top - a, S = I >= n.height, X = x >= n.height, F1 = Z ? S || I >= x : !X && S;
|
|
2970
3045
|
f = F1 ? "bottom" : "top", H = F1 ? i.bottom + a : i.top - n.height - a;
|
|
2971
|
-
const
|
|
2972
|
-
|
|
3046
|
+
const O1 = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
|
|
3047
|
+
O1 === "start" ? v = i.left : O1 === "end" ? v = i.right - n.width : v = i.left + i.width / 2 - n.width / 2, v = Math.max(u, Math.min(v, d - n.width - u)), H = Math.max(u, Math.min(H, p - n.height - u)), t.style.transform = `translate(${Math.round(v - r.left)}px, ${Math.round(H - r.top)}px)`, t.dataset.side = f;
|
|
2973
3048
|
}
|
|
2974
3049
|
render() {
|
|
2975
3050
|
return s`
|
|
@@ -2984,7 +3059,7 @@ const u2 = "anduin-popover:close", i5 = class i5 extends h {
|
|
|
2984
3059
|
`;
|
|
2985
3060
|
}
|
|
2986
3061
|
};
|
|
2987
|
-
|
|
3062
|
+
r5.styles = g`
|
|
2988
3063
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2989
3064
|
:host([full-width]) { display: block; width: 100%; }
|
|
2990
3065
|
|
|
@@ -3037,7 +3112,7 @@ i5.styles = g`
|
|
|
3037
3112
|
transform: none;
|
|
3038
3113
|
}
|
|
3039
3114
|
`;
|
|
3040
|
-
let B =
|
|
3115
|
+
let B = r5;
|
|
3041
3116
|
i1([
|
|
3042
3117
|
C({ type: Boolean, reflect: !0 })
|
|
3043
3118
|
], B.prototype, "open");
|
|
@@ -3060,23 +3135,23 @@ i1([
|
|
|
3060
3135
|
R(".popover__panel")
|
|
3061
3136
|
], B.prototype, "_panelEl");
|
|
3062
3137
|
customElements.get("anduin-popover") || customElements.define("anduin-popover", B);
|
|
3063
|
-
const
|
|
3138
|
+
const n5 = class n5 extends h {
|
|
3064
3139
|
_onClick() {
|
|
3065
|
-
this.dispatchEvent(new CustomEvent(
|
|
3140
|
+
this.dispatchEvent(new CustomEvent(h2, { bubbles: !0, composed: !0 }));
|
|
3066
3141
|
}
|
|
3067
3142
|
render() {
|
|
3068
3143
|
return s`<span @click=${this._onClick}><slot></slot></span>`;
|
|
3069
3144
|
}
|
|
3070
3145
|
};
|
|
3071
|
-
|
|
3072
|
-
let
|
|
3073
|
-
customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close",
|
|
3074
|
-
var
|
|
3146
|
+
n5.styles = g`:host { display: contents; }`;
|
|
3147
|
+
let v2 = n5;
|
|
3148
|
+
customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", v2);
|
|
3149
|
+
var H3 = Object.defineProperty, l1 = (l, e, t, i) => {
|
|
3075
3150
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
3076
3151
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
3077
|
-
return o &&
|
|
3152
|
+
return o && H3(e, t, o), o;
|
|
3078
3153
|
};
|
|
3079
|
-
const
|
|
3154
|
+
const g2 = "anduin-menu-item:click", C5 = class C5 extends h {
|
|
3080
3155
|
constructor() {
|
|
3081
3156
|
super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
|
|
3082
3157
|
var t;
|
|
@@ -3091,10 +3166,10 @@ const v2 = "anduin-menu-item:click", r5 = class r5 extends h {
|
|
|
3091
3166
|
this.open = !this.open;
|
|
3092
3167
|
}
|
|
3093
3168
|
connectedCallback() {
|
|
3094
|
-
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(
|
|
3169
|
+
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(g2, this._onItemClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
|
|
3095
3170
|
}
|
|
3096
3171
|
disconnectedCallback() {
|
|
3097
|
-
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(
|
|
3172
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(g2, this._onItemClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
|
|
3098
3173
|
}
|
|
3099
3174
|
updated(e) {
|
|
3100
3175
|
e.has("open") && this.open && requestAnimationFrame(() => this._updatePosition());
|
|
@@ -3143,7 +3218,7 @@ const v2 = "anduin-menu-item:click", r5 = class r5 extends h {
|
|
|
3143
3218
|
`;
|
|
3144
3219
|
}
|
|
3145
3220
|
};
|
|
3146
|
-
|
|
3221
|
+
C5.styles = g`
|
|
3147
3222
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
3148
3223
|
|
|
3149
3224
|
.menu__trigger { display: inline-block; }
|
|
@@ -3186,7 +3261,7 @@ r5.styles = g`
|
|
|
3186
3261
|
transform: scale(1) translateY(0);
|
|
3187
3262
|
}
|
|
3188
3263
|
`;
|
|
3189
|
-
let o1 =
|
|
3264
|
+
let o1 = C5;
|
|
3190
3265
|
l1([
|
|
3191
3266
|
C({ type: Boolean, reflect: !0 })
|
|
3192
3267
|
], o1.prototype, "open");
|
|
@@ -3199,12 +3274,12 @@ l1([
|
|
|
3199
3274
|
l1([
|
|
3200
3275
|
R(".menu__panel")
|
|
3201
3276
|
], o1.prototype, "_panelEl");
|
|
3202
|
-
const
|
|
3277
|
+
const a5 = class a5 extends h {
|
|
3203
3278
|
constructor() {
|
|
3204
3279
|
super(...arguments), this.icon = "", this.variant = "default", this.disabled = !1;
|
|
3205
3280
|
}
|
|
3206
3281
|
_onClick() {
|
|
3207
|
-
this.dispatchEvent(new CustomEvent(
|
|
3282
|
+
this.dispatchEvent(new CustomEvent(g2, { bubbles: !0, composed: !0 }));
|
|
3208
3283
|
}
|
|
3209
3284
|
render() {
|
|
3210
3285
|
return s`
|
|
@@ -3221,7 +3296,7 @@ const n5 = class n5 extends h {
|
|
|
3221
3296
|
`;
|
|
3222
3297
|
}
|
|
3223
3298
|
};
|
|
3224
|
-
|
|
3299
|
+
a5.styles = g`
|
|
3225
3300
|
:host { display: block; width: 100%; font-family: var(--font-sans); }
|
|
3226
3301
|
.menu-item {
|
|
3227
3302
|
display: flex;
|
|
@@ -3251,7 +3326,7 @@ n5.styles = g`
|
|
|
3251
3326
|
anduin-icon { color: var(--color-gray-7); }
|
|
3252
3327
|
.menu-item--danger anduin-icon { color: var(--color-danger-4); }
|
|
3253
3328
|
`;
|
|
3254
|
-
let p1 =
|
|
3329
|
+
let p1 = a5;
|
|
3255
3330
|
l1([
|
|
3256
3331
|
C()
|
|
3257
3332
|
], p1.prototype, "icon");
|
|
@@ -3263,12 +3338,12 @@ l1([
|
|
|
3263
3338
|
], p1.prototype, "disabled");
|
|
3264
3339
|
customElements.get("anduin-menu") || customElements.define("anduin-menu", o1);
|
|
3265
3340
|
customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", p1);
|
|
3266
|
-
var
|
|
3341
|
+
var V3 = Object.defineProperty, r1 = (l, e, t, i) => {
|
|
3267
3342
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
3268
3343
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
3269
|
-
return o &&
|
|
3344
|
+
return o && V3(e, t, o), o;
|
|
3270
3345
|
};
|
|
3271
|
-
const f1 = "anduin-close",
|
|
3346
|
+
const f1 = "anduin-close", L3 = "anduin-after-close", o2 = 300, i2 = 200, S5 = 250;
|
|
3272
3347
|
var j;
|
|
3273
3348
|
const G = (j = class extends h {
|
|
3274
3349
|
constructor() {
|
|
@@ -3284,13 +3359,13 @@ const G = (j = class extends h {
|
|
|
3284
3359
|
e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(
|
|
3285
3360
|
() => {
|
|
3286
3361
|
this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
|
|
3287
|
-
new CustomEvent(
|
|
3362
|
+
new CustomEvent(L3, {
|
|
3288
3363
|
bubbles: !0,
|
|
3289
3364
|
composed: !0
|
|
3290
3365
|
})
|
|
3291
3366
|
);
|
|
3292
3367
|
},
|
|
3293
|
-
Math.max(
|
|
3368
|
+
Math.max(i2, S5)
|
|
3294
3369
|
)));
|
|
3295
3370
|
}
|
|
3296
3371
|
dispatch(e) {
|
|
@@ -3422,11 +3497,11 @@ const G = (j = class extends h {
|
|
|
3422
3497
|
inset: 0;
|
|
3423
3498
|
background: rgba(50, 60, 77, 0.6);
|
|
3424
3499
|
cursor: default;
|
|
3425
|
-
animation: overlayIn ${
|
|
3500
|
+
animation: overlayIn ${o2}ms cubic-bezier(0.2, 0, 0, 1)
|
|
3426
3501
|
forwards;
|
|
3427
3502
|
}
|
|
3428
3503
|
.overlay.is-leaving {
|
|
3429
|
-
animation: overlayOut ${
|
|
3504
|
+
animation: overlayOut ${S5}ms
|
|
3430
3505
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3431
3506
|
}
|
|
3432
3507
|
.modal-wrapper {
|
|
@@ -3452,11 +3527,11 @@ const G = (j = class extends h {
|
|
|
3452
3527
|
0 8px 24px 0 rgba(29, 41, 57, 0.12),
|
|
3453
3528
|
0 2px 8px 0 rgba(29, 41, 57, 0.08);
|
|
3454
3529
|
flex-shrink: 0;
|
|
3455
|
-
animation: modalIn ${
|
|
3530
|
+
animation: modalIn ${o2}ms cubic-bezier(0.05, 0.7, 0.1, 1)
|
|
3456
3531
|
forwards;
|
|
3457
3532
|
}
|
|
3458
3533
|
.modal.is-leaving {
|
|
3459
|
-
animation: modalOut ${
|
|
3534
|
+
animation: modalOut ${i2}ms
|
|
3460
3535
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3461
3536
|
}
|
|
3462
3537
|
.modal-wrapper--fullscreen {
|
|
@@ -3486,11 +3561,11 @@ const G = (j = class extends h {
|
|
|
3486
3561
|
max-height: 100%;
|
|
3487
3562
|
height: 100%;
|
|
3488
3563
|
box-shadow: none;
|
|
3489
|
-
animation: modalFullscreenIn ${
|
|
3564
|
+
animation: modalFullscreenIn ${o2}ms
|
|
3490
3565
|
cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
|
|
3491
3566
|
}
|
|
3492
3567
|
.modal--fullscreen.is-leaving {
|
|
3493
|
-
animation: modalFullscreenOut ${
|
|
3568
|
+
animation: modalFullscreenOut ${i2}ms
|
|
3494
3569
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3495
3570
|
}
|
|
3496
3571
|
.header {
|
|
@@ -3564,9 +3639,9 @@ r1([
|
|
|
3564
3639
|
r1([
|
|
3565
3640
|
M()
|
|
3566
3641
|
], G.prototype, "_leaving");
|
|
3567
|
-
let
|
|
3568
|
-
customElements.get("anduin-modal") || customElements.define("anduin-modal",
|
|
3569
|
-
class
|
|
3642
|
+
let b3 = G;
|
|
3643
|
+
customElements.get("anduin-modal") || customElements.define("anduin-modal", b3);
|
|
3644
|
+
class m3 extends HTMLElement {
|
|
3570
3645
|
constructor() {
|
|
3571
3646
|
super(...arguments), this._onClick = () => {
|
|
3572
3647
|
this.dispatchEvent(
|
|
@@ -3581,13 +3656,13 @@ class g3 extends HTMLElement {
|
|
|
3581
3656
|
this.removeEventListener("click", this._onClick);
|
|
3582
3657
|
}
|
|
3583
3658
|
}
|
|
3584
|
-
customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close",
|
|
3585
|
-
var
|
|
3659
|
+
customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", m3);
|
|
3660
|
+
var M3 = Object.defineProperty, D = (l, e, t, i) => {
|
|
3586
3661
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
3587
3662
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
3588
|
-
return o &&
|
|
3663
|
+
return o && M3(e, t, o), o;
|
|
3589
3664
|
};
|
|
3590
|
-
const
|
|
3665
|
+
const f2 = "anduin-radio:change", y3 = "anduin-radio-group:change", s5 = class s5 extends h {
|
|
3591
3666
|
constructor() {
|
|
3592
3667
|
super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
|
|
3593
3668
|
}
|
|
@@ -3600,7 +3675,7 @@ const g2 = "anduin-radio:change", H3 = "anduin-radio-group:change", C5 = class C
|
|
|
3600
3675
|
});
|
|
3601
3676
|
}
|
|
3602
3677
|
_select() {
|
|
3603
|
-
this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(
|
|
3678
|
+
this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(f2, {
|
|
3604
3679
|
detail: this.value,
|
|
3605
3680
|
bubbles: !0,
|
|
3606
3681
|
composed: !0
|
|
@@ -3641,7 +3716,7 @@ const g2 = "anduin-radio:change", H3 = "anduin-radio-group:change", C5 = class C
|
|
|
3641
3716
|
`;
|
|
3642
3717
|
}
|
|
3643
3718
|
};
|
|
3644
|
-
|
|
3719
|
+
s5.styles = g`
|
|
3645
3720
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
3646
3721
|
|
|
3647
3722
|
label {
|
|
@@ -3712,7 +3787,7 @@ C5.styles = g`
|
|
|
3712
3787
|
transform: scale(1);
|
|
3713
3788
|
}
|
|
3714
3789
|
`;
|
|
3715
|
-
let O =
|
|
3790
|
+
let O = s5;
|
|
3716
3791
|
D([
|
|
3717
3792
|
C({ type: Boolean })
|
|
3718
3793
|
], O.prototype, "checked");
|
|
@@ -3732,14 +3807,14 @@ D([
|
|
|
3732
3807
|
C()
|
|
3733
3808
|
], O.prototype, "inputid");
|
|
3734
3809
|
customElements.get("anduin-radio") || customElements.define("anduin-radio", O);
|
|
3735
|
-
const
|
|
3810
|
+
const d5 = class d5 extends h {
|
|
3736
3811
|
constructor() {
|
|
3737
3812
|
super(...arguments), this.value = "", this.name = "", this.orientation = "vertical", this._onRadioChange = (e) => {
|
|
3738
3813
|
const i = e.detail;
|
|
3739
3814
|
i !== this.value && (this.value = i, this.querySelectorAll("anduin-radio").forEach((o) => {
|
|
3740
3815
|
const r = o;
|
|
3741
3816
|
r.checked = r.value === i;
|
|
3742
|
-
}), this.dispatchEvent(new CustomEvent(
|
|
3817
|
+
}), this.dispatchEvent(new CustomEvent(y3, {
|
|
3743
3818
|
detail: i,
|
|
3744
3819
|
bubbles: !0,
|
|
3745
3820
|
composed: !0
|
|
@@ -3747,10 +3822,10 @@ const a5 = class a5 extends h {
|
|
|
3747
3822
|
};
|
|
3748
3823
|
}
|
|
3749
3824
|
connectedCallback() {
|
|
3750
|
-
super.connectedCallback(), this.addEventListener(
|
|
3825
|
+
super.connectedCallback(), this.addEventListener(f2, this._onRadioChange);
|
|
3751
3826
|
}
|
|
3752
3827
|
disconnectedCallback() {
|
|
3753
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
3828
|
+
super.disconnectedCallback(), this.removeEventListener(f2, this._onRadioChange);
|
|
3754
3829
|
}
|
|
3755
3830
|
render() {
|
|
3756
3831
|
return s`
|
|
@@ -3760,7 +3835,7 @@ const a5 = class a5 extends h {
|
|
|
3760
3835
|
`;
|
|
3761
3836
|
}
|
|
3762
3837
|
};
|
|
3763
|
-
|
|
3838
|
+
d5.styles = g`
|
|
3764
3839
|
:host { display: block; font-family: var(--font-sans); }
|
|
3765
3840
|
|
|
3766
3841
|
.group {
|
|
@@ -3770,7 +3845,7 @@ a5.styles = g`
|
|
|
3770
3845
|
.group--vertical { flex-direction: column; }
|
|
3771
3846
|
.group--horizontal { flex-direction: row; flex-wrap: wrap; align-items: center; }
|
|
3772
3847
|
`;
|
|
3773
|
-
let u1 =
|
|
3848
|
+
let u1 = d5;
|
|
3774
3849
|
D([
|
|
3775
3850
|
C()
|
|
3776
3851
|
], u1.prototype, "value");
|
|
@@ -3781,12 +3856,12 @@ D([
|
|
|
3781
3856
|
C()
|
|
3782
3857
|
], u1.prototype, "orientation");
|
|
3783
3858
|
customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", u1);
|
|
3784
|
-
var
|
|
3859
|
+
var Z3 = Object.defineProperty, n1 = (l, e, t, i) => {
|
|
3785
3860
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
3786
3861
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
3787
|
-
return o &&
|
|
3862
|
+
return o && Z3(e, t, o), o;
|
|
3788
3863
|
};
|
|
3789
|
-
const
|
|
3864
|
+
const P5 = [
|
|
3790
3865
|
{ bg: "#6172F3", text: "#ffffff" },
|
|
3791
3866
|
{ bg: "#B692F6", text: "#ffffff" },
|
|
3792
3867
|
{ bg: "#F670C7", text: "#ffffff" },
|
|
@@ -3796,17 +3871,17 @@ const B5 = [
|
|
|
3796
3871
|
{ bg: "#F97066", text: "#ffffff" },
|
|
3797
3872
|
{ bg: "#7A5AF8", text: "#ffffff" }
|
|
3798
3873
|
];
|
|
3799
|
-
function
|
|
3874
|
+
function _3(l) {
|
|
3800
3875
|
let e = 0;
|
|
3801
3876
|
for (let t = 0; t < l.length; t++) e = e * 31 + l.charCodeAt(t) >>> 0;
|
|
3802
|
-
return
|
|
3877
|
+
return P5[e % P5.length];
|
|
3803
3878
|
}
|
|
3804
|
-
function
|
|
3879
|
+
function x3(l) {
|
|
3805
3880
|
var t;
|
|
3806
3881
|
const e = l.trim().split(/\s+/);
|
|
3807
3882
|
return e.length === 1 ? ((t = e[0][0]) == null ? void 0 : t.toUpperCase()) ?? "" : ((e[0][0] ?? "") + (e[e.length - 1][0] ?? "")).toUpperCase();
|
|
3808
3883
|
}
|
|
3809
|
-
const
|
|
3884
|
+
const c5 = class c5 extends h {
|
|
3810
3885
|
constructor() {
|
|
3811
3886
|
super(...arguments), this.src = "", this.name = "", this.alt = "", this.icon = "", this.size = 32, this.shape = "circle", this._imgError = !1;
|
|
3812
3887
|
}
|
|
@@ -3817,7 +3892,7 @@ const s5 = class s5 extends h {
|
|
|
3817
3892
|
return this.size <= 16 ? 10 : this.size <= 20 ? 12 : this.size <= 24 ? 14 : 18;
|
|
3818
3893
|
}
|
|
3819
3894
|
render() {
|
|
3820
|
-
const e = !!this.src && !this._imgError, t = this.name || this.icon ?
|
|
3895
|
+
const e = !!this.src && !this._imgError, t = this.name || this.icon ? _3(this.name || this.icon) : { bg: "#F2F4F7", text: "#667085" }, i = this.name ? x3(this.name) : "";
|
|
3821
3896
|
return s`
|
|
3822
3897
|
<div
|
|
3823
3898
|
class="avatar avatar--${this.shape} avatar--${this.size}"
|
|
@@ -3835,7 +3910,7 @@ const s5 = class s5 extends h {
|
|
|
3835
3910
|
`;
|
|
3836
3911
|
}
|
|
3837
3912
|
};
|
|
3838
|
-
|
|
3913
|
+
c5.styles = g`
|
|
3839
3914
|
:host { display: inline-flex; }
|
|
3840
3915
|
|
|
3841
3916
|
.avatar {
|
|
@@ -3864,7 +3939,7 @@ s5.styles = g`
|
|
|
3864
3939
|
display: block;
|
|
3865
3940
|
}
|
|
3866
3941
|
`;
|
|
3867
|
-
let z =
|
|
3942
|
+
let z = c5;
|
|
3868
3943
|
n1([
|
|
3869
3944
|
C()
|
|
3870
3945
|
], z.prototype, "src");
|
|
@@ -3892,8 +3967,8 @@ customElements.get("anduin-avatar") || customElements.define("anduin-avatar", z)
|
|
|
3892
3967
|
* Copyright 2017 Google LLC
|
|
3893
3968
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3894
3969
|
*/
|
|
3895
|
-
const
|
|
3896
|
-
class
|
|
3970
|
+
const w3 = { CHILD: 2 }, R3 = (l) => (...e) => ({ _$litDirective$: l, values: e });
|
|
3971
|
+
class k3 {
|
|
3897
3972
|
constructor(e) {
|
|
3898
3973
|
}
|
|
3899
3974
|
get _$AU() {
|
|
@@ -3914,9 +3989,9 @@ class y3 {
|
|
|
3914
3989
|
* Copyright 2017 Google LLC
|
|
3915
3990
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3916
3991
|
*/
|
|
3917
|
-
class
|
|
3992
|
+
class H2 extends k3 {
|
|
3918
3993
|
constructor(e) {
|
|
3919
|
-
if (super(e), this.it = c, e.type !==
|
|
3994
|
+
if (super(e), this.it = c, e.type !== w3.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
3920
3995
|
}
|
|
3921
3996
|
render(e) {
|
|
3922
3997
|
if (e === c || e == null) return this._t = void 0, this.it = e;
|
|
@@ -3928,16 +4003,16 @@ class f2 extends y3 {
|
|
|
3928
4003
|
return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
|
|
3929
4004
|
}
|
|
3930
4005
|
}
|
|
3931
|
-
|
|
4006
|
+
H2.directiveName = "unsafeHTML", H2.resultType = 1;
|
|
3932
4007
|
/**
|
|
3933
4008
|
* @license
|
|
3934
4009
|
* Copyright 2017 Google LLC
|
|
3935
4010
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3936
4011
|
*/
|
|
3937
|
-
class
|
|
4012
|
+
class V2 extends H2 {
|
|
3938
4013
|
}
|
|
3939
|
-
|
|
3940
|
-
const
|
|
4014
|
+
V2.directiveName = "unsafeSVG", V2.resultType = 2;
|
|
4015
|
+
const $3 = R3(V2), E3 = {
|
|
3941
4016
|
archive: {
|
|
3942
4017
|
16: { viewBox: "0 0 16 16", paths: `<path d="M2 1.5C2 0.671573 2.67157 0 3.5 0H9.17157C9.70201 0 10.2107 0.210714 10.5858 0.585786L13.4142 3.41421C13.7893 3.78929 14 4.29799 14 4.82843V14.5C14 15.3284 13.3284 16 12.5 16H3.5C2.67157 16 2 15.3284 2 14.5V1.5Z" fill="white"/>
|
|
3943
4018
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 5.5C13 5.22386 12.7761 5 12.5 5H9.5C9.22386 5 9 4.77614 9 4.5V1.5C9 1.22386 8.77614 1 8.5 1H6H3.5C3.22386 1 3 1.22386 3 1.5V14.5C3 14.7761 3.22386 15 3.5 15H12.5C12.7761 15 13 14.7761 13 14.5V8V5.5ZM14 8V14.5C14 15.3284 13.3284 16 12.5 16H3.5C2.67157 16 2 15.3284 2 14.5V1.5C2 0.671573 2.67157 0 3.5 0H6H9.17157C9.70201 0 10.2107 0.210714 10.5858 0.585786L13.4142 3.41421C13.7893 3.78929 14 4.29799 14 4.82843V8Z" fill="#CCD2DB"/>
|
|
@@ -4181,26 +4256,26 @@ const Z3 = M3(H2), _3 = {
|
|
|
4181
4256
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 2H18.5H18.5147C18.8078 2 19.0982 2.02573 19.3829 2.07593C19.7452 2.22622 20 2.58335 20 3V8C20 8.55228 20.4477 9 21 9H26C26.4166 9 26.7738 9.25482 26.9241 9.6171C26.9743 9.90183 27 10.1922 27 10.4853V29C27 29.5523 26.5523 30 26 30H6C5.44772 30 5 29.5523 5 29V3C5 2.44772 5.44772 2 6 2ZM27.9804 10C27.9934 10.1608 28 10.3227 28 10.4853V29C28 30.1046 27.1046 31 26 31H6C4.89543 31 4 30.1046 4 29V3C4 1.89543 4.89543 1 6 1H18.5H18.5147C20.0951 1 21.6113 1.62353 22.7342 2.73435C22.742 2.742 22.7497 2.74967 22.7574 2.75736L26.2426 6.24264L26.5858 6.58579C27.4913 7.49129 28 8.71942 28 10H27.9804Z" fill="#AADAF9"/>
|
|
4182
4257
|
<path d="M18.875 21.5385L20.3324 13.4117C20.3751 13.1734 20.5825 13 20.8246 13H22.1261C22.4436 13 22.6808 13.2921 22.6154 13.6029L20.3023 24.6029C20.2536 24.8343 20.0494 25 19.813 25H18.2572C18.0243 25 17.8223 24.8393 17.77 24.6124L16.0078 16.9725L14.2457 24.6124C14.1933 24.8393 13.9913 25 13.7584 25H12.2027C11.9662 25 11.762 24.8343 11.7134 24.6029L9.40022 13.6029C9.33487 13.2921 9.57198 13 9.88952 13H11.1916C11.4335 13 11.6406 13.1731 11.6836 13.4111L13.1484 21.522L14.9371 13.3926C14.9875 13.1633 15.1906 13 15.4254 13H16.6053C16.8403 13 17.0436 13.1636 17.0938 13.3932L18.875 21.5385Z" fill="#1075DC"/>` }
|
|
4183
4258
|
}
|
|
4184
|
-
},
|
|
4185
|
-
function
|
|
4186
|
-
const t =
|
|
4259
|
+
}, A3 = [32, 24, 16];
|
|
4260
|
+
function B3(l, e) {
|
|
4261
|
+
const t = E3[l];
|
|
4187
4262
|
if (!t) return null;
|
|
4188
4263
|
if (t[e]) return t[e];
|
|
4189
|
-
for (const i of
|
|
4264
|
+
for (const i of A3)
|
|
4190
4265
|
if (t[i]) return t[i];
|
|
4191
4266
|
return null;
|
|
4192
4267
|
}
|
|
4193
|
-
var
|
|
4268
|
+
var z3 = Object.defineProperty, d4 = (l, e, t, i) => {
|
|
4194
4269
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
4195
4270
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
4196
|
-
return o &&
|
|
4271
|
+
return o && z3(e, t, o), o;
|
|
4197
4272
|
};
|
|
4198
|
-
const
|
|
4273
|
+
const p5 = class p5 extends h {
|
|
4199
4274
|
constructor() {
|
|
4200
4275
|
super(...arguments), this.type = "pdf", this.size = 32;
|
|
4201
4276
|
}
|
|
4202
4277
|
render() {
|
|
4203
|
-
const e =
|
|
4278
|
+
const e = B3(this.type, this.size);
|
|
4204
4279
|
return e ? s`
|
|
4205
4280
|
<svg
|
|
4206
4281
|
width=${this.size}
|
|
@@ -4211,35 +4286,35 @@ const d5 = class d5 extends h {
|
|
|
4211
4286
|
aria-label="${this.type} file"
|
|
4212
4287
|
role="img"
|
|
4213
4288
|
>
|
|
4214
|
-
${
|
|
4289
|
+
${$3(e.paths)}
|
|
4215
4290
|
</svg>
|
|
4216
4291
|
` : c;
|
|
4217
4292
|
}
|
|
4218
4293
|
};
|
|
4219
|
-
|
|
4294
|
+
p5.styles = g`
|
|
4220
4295
|
:host { display: inline-flex; align-items: center; justify-content: center; }
|
|
4221
4296
|
svg { display: block; }
|
|
4222
4297
|
`;
|
|
4223
|
-
let
|
|
4224
|
-
|
|
4298
|
+
let A1 = p5;
|
|
4299
|
+
d4([
|
|
4225
4300
|
C()
|
|
4226
|
-
],
|
|
4227
|
-
|
|
4301
|
+
], A1.prototype, "type");
|
|
4302
|
+
d4([
|
|
4228
4303
|
C({ type: Number })
|
|
4229
|
-
],
|
|
4230
|
-
customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon",
|
|
4231
|
-
var
|
|
4304
|
+
], A1.prototype, "size");
|
|
4305
|
+
customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", A1);
|
|
4306
|
+
var S3 = Object.defineProperty, C1 = (l, e, t, i) => {
|
|
4232
4307
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
4233
4308
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
4234
|
-
return o &&
|
|
4309
|
+
return o && S3(e, t, o), o;
|
|
4235
4310
|
};
|
|
4236
|
-
const
|
|
4311
|
+
const F5 = {
|
|
4237
4312
|
gray: "info",
|
|
4238
4313
|
primary: "infoCircleLine",
|
|
4239
4314
|
success: "checkCircle",
|
|
4240
4315
|
warning: "warning",
|
|
4241
4316
|
danger: "error"
|
|
4242
|
-
},
|
|
4317
|
+
}, P3 = "anduin-toast:dismiss", u5 = class u5 extends h {
|
|
4243
4318
|
constructor() {
|
|
4244
4319
|
super(...arguments), this.variant = "gray", this.heading = "", this.description = "", this._dismissing = !1;
|
|
4245
4320
|
}
|
|
@@ -4250,7 +4325,7 @@ const z5 = {
|
|
|
4250
4325
|
const e = (i) => {
|
|
4251
4326
|
var o;
|
|
4252
4327
|
i.propertyName === "opacity" && ((o = this._toastEl) == null || o.removeEventListener("transitionend", e), this.dispatchEvent(
|
|
4253
|
-
new CustomEvent(
|
|
4328
|
+
new CustomEvent(P3, { bubbles: !0, composed: !0 })
|
|
4254
4329
|
));
|
|
4255
4330
|
};
|
|
4256
4331
|
(t = this._toastEl) == null || t.addEventListener("transitionend", e);
|
|
@@ -4259,7 +4334,7 @@ const z5 = {
|
|
|
4259
4334
|
this.dismiss();
|
|
4260
4335
|
}
|
|
4261
4336
|
render() {
|
|
4262
|
-
const e =
|
|
4337
|
+
const e = F5[this.variant] ?? F5.gray;
|
|
4263
4338
|
return s`
|
|
4264
4339
|
<div
|
|
4265
4340
|
class="toast toast--${this.variant} ${this._dismissing ? "toast--dismissing" : ""}"
|
|
@@ -4285,7 +4360,7 @@ const z5 = {
|
|
|
4285
4360
|
`;
|
|
4286
4361
|
}
|
|
4287
4362
|
};
|
|
4288
|
-
|
|
4363
|
+
u5.styles = g`
|
|
4289
4364
|
:host {
|
|
4290
4365
|
display: block;
|
|
4291
4366
|
font-family: var(--font-sans);
|
|
@@ -4413,7 +4488,7 @@ c5.styles = g`
|
|
|
4413
4488
|
background: var(--color-gray-3, #d0d5dd);
|
|
4414
4489
|
}
|
|
4415
4490
|
`;
|
|
4416
|
-
let q =
|
|
4491
|
+
let q = u5;
|
|
4417
4492
|
C1([
|
|
4418
4493
|
C()
|
|
4419
4494
|
], q.prototype, "variant");
|
|
@@ -4430,7 +4505,7 @@ C1([
|
|
|
4430
4505
|
R(".toast")
|
|
4431
4506
|
], q.prototype, "_toastEl");
|
|
4432
4507
|
customElements.get("anduin-toast") || customElements.define("anduin-toast", q);
|
|
4433
|
-
const
|
|
4508
|
+
const h5 = class h5 extends h {
|
|
4434
4509
|
constructor() {
|
|
4435
4510
|
super(...arguments), this.position = "bottom-left", this._toasts = [], this._nextId = 0;
|
|
4436
4511
|
}
|
|
@@ -4474,7 +4549,7 @@ const p5 = class p5 extends h {
|
|
|
4474
4549
|
`;
|
|
4475
4550
|
}
|
|
4476
4551
|
};
|
|
4477
|
-
|
|
4552
|
+
h5.styles = g`
|
|
4478
4553
|
:host {
|
|
4479
4554
|
display: contents;
|
|
4480
4555
|
pointer-events: none;
|
|
@@ -4521,17 +4596,17 @@ p5.styles = g`
|
|
|
4521
4596
|
align-items: flex-end;
|
|
4522
4597
|
}
|
|
4523
4598
|
`;
|
|
4524
|
-
let
|
|
4599
|
+
let B1 = h5;
|
|
4525
4600
|
C1([
|
|
4526
4601
|
C()
|
|
4527
|
-
],
|
|
4602
|
+
], B1.prototype, "position");
|
|
4528
4603
|
C1([
|
|
4529
4604
|
M()
|
|
4530
|
-
],
|
|
4531
|
-
customElements.get("anduin-toaster") || customElements.define("anduin-toaster",
|
|
4532
|
-
const
|
|
4605
|
+
], B1.prototype, "_toasts");
|
|
4606
|
+
customElements.get("anduin-toaster") || customElements.define("anduin-toaster", B1);
|
|
4607
|
+
const Q3 = {
|
|
4533
4608
|
show(l) {
|
|
4534
|
-
return
|
|
4609
|
+
return F3(l.position).show(l);
|
|
4535
4610
|
},
|
|
4536
4611
|
success(l, e, t) {
|
|
4537
4612
|
return this.show({ ...t, variant: "success", heading: l, description: e });
|
|
@@ -4548,23 +4623,23 @@ const W3 = {
|
|
|
4548
4623
|
gray(l, e, t) {
|
|
4549
4624
|
return this.show({ ...t, variant: "gray", heading: l, description: e });
|
|
4550
4625
|
}
|
|
4551
|
-
},
|
|
4552
|
-
function
|
|
4553
|
-
if (
|
|
4626
|
+
}, l2 = /* @__PURE__ */ new Map();
|
|
4627
|
+
function F3(l = "bottom-left") {
|
|
4628
|
+
if (l2.has(l)) return l2.get(l);
|
|
4554
4629
|
const e = document.createElement("anduin-toaster");
|
|
4555
|
-
return e.position = l, document.body.appendChild(e),
|
|
4630
|
+
return e.position = l, document.body.appendChild(e), l2.set(l, e), e;
|
|
4556
4631
|
}
|
|
4557
|
-
var
|
|
4632
|
+
var O3 = Object.defineProperty, c4 = (l, e, t, i) => {
|
|
4558
4633
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
4559
4634
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
4560
|
-
return o &&
|
|
4635
|
+
return o && O3(e, t, o), o;
|
|
4561
4636
|
};
|
|
4562
|
-
const
|
|
4637
|
+
const D3 = "anduin-switcher:change", v5 = class v5 extends h {
|
|
4563
4638
|
constructor() {
|
|
4564
4639
|
super(...arguments), this.checked = !1, this.disabled = !1;
|
|
4565
4640
|
}
|
|
4566
4641
|
onChange() {
|
|
4567
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
4642
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(D3, {
|
|
4568
4643
|
detail: this.checked,
|
|
4569
4644
|
bubbles: !0,
|
|
4570
4645
|
composed: !0
|
|
@@ -4588,7 +4663,7 @@ const B3 = "anduin-switcher:change", u5 = class u5 extends h {
|
|
|
4588
4663
|
`;
|
|
4589
4664
|
}
|
|
4590
4665
|
};
|
|
4591
|
-
|
|
4666
|
+
v5.styles = g`
|
|
4592
4667
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
4593
4668
|
|
|
4594
4669
|
label {
|
|
@@ -4652,20 +4727,20 @@ u5.styles = g`
|
|
|
4652
4727
|
line-height: 20px;
|
|
4653
4728
|
}
|
|
4654
4729
|
`;
|
|
4655
|
-
let
|
|
4656
|
-
|
|
4730
|
+
let z1 = v5;
|
|
4731
|
+
c4([
|
|
4657
4732
|
C({ type: Boolean })
|
|
4658
|
-
],
|
|
4659
|
-
|
|
4733
|
+
], z1.prototype, "checked");
|
|
4734
|
+
c4([
|
|
4660
4735
|
C({ type: Boolean })
|
|
4661
|
-
],
|
|
4662
|
-
customElements.get("anduin-switcher") || customElements.define("anduin-switcher",
|
|
4663
|
-
var
|
|
4736
|
+
], z1.prototype, "disabled");
|
|
4737
|
+
customElements.get("anduin-switcher") || customElements.define("anduin-switcher", z1);
|
|
4738
|
+
var I3 = Object.defineProperty, y = (l, e, t, i) => {
|
|
4664
4739
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
4665
4740
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
4666
|
-
return o &&
|
|
4741
|
+
return o && I3(e, t, o), o;
|
|
4667
4742
|
};
|
|
4668
|
-
const
|
|
4743
|
+
const O5 = "anduin-dropdown:change", g5 = class g5 extends h {
|
|
4669
4744
|
constructor() {
|
|
4670
4745
|
super(...arguments), this.value = "", this.placeholder = "Select...", this.options = [], this.icon = "", this.searchable = !0, this.disabled = !1, this.placement = "bottom-start", this.appearance = "filled", this.variant = "gray0", this.size = "default", this.fullWidth = !1, this._open = !1, this._query = "", this._onOutsideClick = (e) => {
|
|
4671
4746
|
var t;
|
|
@@ -4697,14 +4772,14 @@ const S5 = "anduin-dropdown:change", h5 = class h5 extends h {
|
|
|
4697
4772
|
e.key === "Escape" && (this._open = !1, this._query = "", (t = this._triggerEl) == null || t.focus());
|
|
4698
4773
|
}
|
|
4699
4774
|
_onClear(e) {
|
|
4700
|
-
e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(
|
|
4775
|
+
e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(O5, {
|
|
4701
4776
|
detail: "",
|
|
4702
4777
|
bubbles: !0,
|
|
4703
4778
|
composed: !0
|
|
4704
4779
|
}));
|
|
4705
4780
|
}
|
|
4706
4781
|
_selectOption(e) {
|
|
4707
|
-
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(
|
|
4782
|
+
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(O5, {
|
|
4708
4783
|
detail: e.value,
|
|
4709
4784
|
bubbles: !0,
|
|
4710
4785
|
composed: !0
|
|
@@ -4790,7 +4865,7 @@ const S5 = "anduin-dropdown:change", h5 = class h5 extends h {
|
|
|
4790
4865
|
`;
|
|
4791
4866
|
}
|
|
4792
4867
|
};
|
|
4793
|
-
|
|
4868
|
+
g5.styles = g`
|
|
4794
4869
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
4795
4870
|
:host([full-width]) { display: block; width: 100%; }
|
|
4796
4871
|
:host([full-width]) .trigger { width: 100%; }
|
|
@@ -4970,7 +5045,7 @@ h5.styles = g`
|
|
|
4970
5045
|
text-align: center;
|
|
4971
5046
|
}
|
|
4972
5047
|
`;
|
|
4973
|
-
let L =
|
|
5048
|
+
let L = g5;
|
|
4974
5049
|
y([
|
|
4975
5050
|
C()
|
|
4976
5051
|
], L.prototype, "value");
|
|
@@ -5020,17 +5095,17 @@ y([
|
|
|
5020
5095
|
R("anduin-input")
|
|
5021
5096
|
], L.prototype, "_searchEl");
|
|
5022
5097
|
customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", L);
|
|
5023
|
-
var
|
|
5098
|
+
var T3 = Object.defineProperty, Y = (l, e, t, i) => {
|
|
5024
5099
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
5025
5100
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
5026
|
-
return o &&
|
|
5101
|
+
return o && T3(e, t, o), o;
|
|
5027
5102
|
};
|
|
5028
|
-
const
|
|
5103
|
+
const L2 = "anduin-close", N3 = "anduin-after-close", j3 = 300, D5 = 250, U3 = /* @__PURE__ */ new Map([
|
|
5029
5104
|
["320", 320],
|
|
5030
5105
|
["360", 360],
|
|
5031
5106
|
["400", 400],
|
|
5032
5107
|
["640", 640]
|
|
5033
|
-
]),
|
|
5108
|
+
]), f5 = class f5 extends h {
|
|
5034
5109
|
constructor() {
|
|
5035
5110
|
super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.defaultWidth = "320", this.allowInteractOutside = !1, this._leaving = !1, this._width = 320, this._resizing = !1, this._startX = 0, this._startWidth = 0, this._onResizeStart = (e) => {
|
|
5036
5111
|
this._resizing = !0, this._startX = e.clientX, this._startWidth = this._width, e.currentTarget.setPointerCapture(e.pointerId), e.preventDefault();
|
|
@@ -5049,17 +5124,17 @@ const V2 = "anduin-close", F3 = "anduin-after-close", P3 = 300, F5 = 250, O3 = /
|
|
|
5049
5124
|
};
|
|
5050
5125
|
}
|
|
5051
5126
|
willUpdate(e) {
|
|
5052
|
-
e.has("defaultWidth") && (this._width =
|
|
5127
|
+
e.has("defaultWidth") && (this._width = U3.get(this.defaultWidth) ?? (parseInt(this.defaultWidth) || 320));
|
|
5053
5128
|
}
|
|
5054
5129
|
updated(e) {
|
|
5055
5130
|
e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(() => {
|
|
5056
5131
|
this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
|
|
5057
|
-
new CustomEvent(
|
|
5132
|
+
new CustomEvent(N3, {
|
|
5058
5133
|
bubbles: !0,
|
|
5059
5134
|
composed: !0
|
|
5060
5135
|
})
|
|
5061
5136
|
);
|
|
5062
|
-
},
|
|
5137
|
+
}, D5)));
|
|
5063
5138
|
}
|
|
5064
5139
|
_dispatch(e) {
|
|
5065
5140
|
this.dispatchEvent(
|
|
@@ -5067,10 +5142,10 @@ const V2 = "anduin-close", F3 = "anduin-after-close", P3 = 300, F5 = 250, O3 = /
|
|
|
5067
5142
|
);
|
|
5068
5143
|
}
|
|
5069
5144
|
_onClose() {
|
|
5070
|
-
this._dispatch(
|
|
5145
|
+
this._dispatch(L2);
|
|
5071
5146
|
}
|
|
5072
5147
|
_onBackdropClick() {
|
|
5073
|
-
this._dispatch(
|
|
5148
|
+
this._dispatch(L2);
|
|
5074
5149
|
}
|
|
5075
5150
|
render() {
|
|
5076
5151
|
const e = this._leaving;
|
|
@@ -5113,7 +5188,7 @@ const V2 = "anduin-close", F3 = "anduin-after-close", P3 = 300, F5 = 250, O3 = /
|
|
|
5113
5188
|
`;
|
|
5114
5189
|
}
|
|
5115
5190
|
};
|
|
5116
|
-
|
|
5191
|
+
f5.styles = g`
|
|
5117
5192
|
:host {
|
|
5118
5193
|
display: none;
|
|
5119
5194
|
font-family: var(--font-sans);
|
|
@@ -5160,14 +5235,14 @@ v5.styles = g`
|
|
|
5160
5235
|
box-shadow:
|
|
5161
5236
|
-8px 0 24px 0 rgba(29, 41, 57, 0.12),
|
|
5162
5237
|
-2px 0 8px 0 rgba(29, 41, 57, 0.08);
|
|
5163
|
-
animation: drawerIn ${
|
|
5238
|
+
animation: drawerIn ${j3}ms cubic-bezier(0.05, 0.7, 0.1, 1)
|
|
5164
5239
|
forwards;
|
|
5165
5240
|
min-width: 200px;
|
|
5166
5241
|
max-width: 90vw;
|
|
5167
5242
|
pointer-events: auto;
|
|
5168
5243
|
}
|
|
5169
5244
|
.drawer.is-leaving {
|
|
5170
|
-
animation: drawerOut ${
|
|
5245
|
+
animation: drawerOut ${D5}ms
|
|
5171
5246
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
5172
5247
|
}
|
|
5173
5248
|
@media (max-width: 640px) {
|
|
@@ -5231,7 +5306,7 @@ v5.styles = g`
|
|
|
5231
5306
|
border-top: 1px solid var(--color-gray-3, #e4e7ec);
|
|
5232
5307
|
}
|
|
5233
5308
|
`;
|
|
5234
|
-
let E =
|
|
5309
|
+
let E = f5;
|
|
5235
5310
|
Y([
|
|
5236
5311
|
C({ type: Boolean, reflect: !0 })
|
|
5237
5312
|
], E.prototype, "open");
|
|
@@ -5257,11 +5332,11 @@ Y([
|
|
|
5257
5332
|
M()
|
|
5258
5333
|
], E.prototype, "_width");
|
|
5259
5334
|
customElements.get("anduin-drawer") || customElements.define("anduin-drawer", E);
|
|
5260
|
-
class
|
|
5335
|
+
class q3 extends HTMLElement {
|
|
5261
5336
|
constructor() {
|
|
5262
5337
|
super(...arguments), this._onClick = () => {
|
|
5263
5338
|
this.dispatchEvent(
|
|
5264
|
-
new CustomEvent(
|
|
5339
|
+
new CustomEvent(L2, { bubbles: !0, composed: !0 })
|
|
5265
5340
|
);
|
|
5266
5341
|
};
|
|
5267
5342
|
}
|
|
@@ -5272,13 +5347,13 @@ class D3 extends HTMLElement {
|
|
|
5272
5347
|
this.removeEventListener("click", this._onClick);
|
|
5273
5348
|
}
|
|
5274
5349
|
}
|
|
5275
|
-
customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close",
|
|
5276
|
-
var
|
|
5350
|
+
customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", q3);
|
|
5351
|
+
var W3 = Object.defineProperty, m = (l, e, t, i) => {
|
|
5277
5352
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
5278
5353
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
5279
|
-
return o &&
|
|
5354
|
+
return o && W3(e, t, o), o;
|
|
5280
5355
|
};
|
|
5281
|
-
const
|
|
5356
|
+
const r2 = "anduin-suggestion:change", G3 = "anduin-suggestion:select", Y3 = "anduin-suggestion:clear", H5 = class H5 extends h {
|
|
5282
5357
|
constructor() {
|
|
5283
5358
|
super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1, this.suggestions = [], this.filter = !1, this.hideWhenEmpty = !1, this.emptyText = "No suggestions", this._open = !1, this._activeIndex = -1, this._onDocumentMouseDown = (e) => {
|
|
5284
5359
|
var t;
|
|
@@ -5318,7 +5393,7 @@ const i2 = "anduin-suggestion:change", T3 = "anduin-suggestion:select", N3 = "an
|
|
|
5318
5393
|
this._openPanel();
|
|
5319
5394
|
}
|
|
5320
5395
|
_onInput() {
|
|
5321
|
-
this.value = this._inputEl.value, this._open || this._openPanel(), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(
|
|
5396
|
+
this.value = this._inputEl.value, this._open || this._openPanel(), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(r2, {
|
|
5322
5397
|
detail: this.value,
|
|
5323
5398
|
bubbles: !0,
|
|
5324
5399
|
composed: !0
|
|
@@ -5351,11 +5426,11 @@ const i2 = "anduin-suggestion:change", T3 = "anduin-suggestion:select", N3 = "an
|
|
|
5351
5426
|
}
|
|
5352
5427
|
_selectSuggestion(e) {
|
|
5353
5428
|
var t;
|
|
5354
|
-
this.value = e.value, this._inputEl && (this._inputEl.value = e.value), this._open = !1, this.dispatchEvent(new CustomEvent(
|
|
5429
|
+
this.value = e.value, this._inputEl && (this._inputEl.value = e.value), this._open = !1, this.dispatchEvent(new CustomEvent(r2, {
|
|
5355
5430
|
detail: this.value,
|
|
5356
5431
|
bubbles: !0,
|
|
5357
5432
|
composed: !0
|
|
5358
|
-
})), this.dispatchEvent(new CustomEvent(
|
|
5433
|
+
})), this.dispatchEvent(new CustomEvent(G3, {
|
|
5359
5434
|
detail: e,
|
|
5360
5435
|
bubbles: !0,
|
|
5361
5436
|
composed: !0
|
|
@@ -5363,7 +5438,7 @@ const i2 = "anduin-suggestion:change", T3 = "anduin-suggestion:select", N3 = "an
|
|
|
5363
5438
|
}
|
|
5364
5439
|
_onClear() {
|
|
5365
5440
|
var e;
|
|
5366
|
-
this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(
|
|
5441
|
+
this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(r2, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(Y3, { bubbles: !0, composed: !0 })), (e = this._inputEl) == null || e.focus();
|
|
5367
5442
|
}
|
|
5368
5443
|
_updatePosition() {
|
|
5369
5444
|
var X;
|
|
@@ -5451,7 +5526,7 @@ const i2 = "anduin-suggestion:change", T3 = "anduin-suggestion:select", N3 = "an
|
|
|
5451
5526
|
`;
|
|
5452
5527
|
}
|
|
5453
5528
|
};
|
|
5454
|
-
|
|
5529
|
+
H5.styles = g`
|
|
5455
5530
|
:host { display: block; font-family: var(--font-sans); position: relative; }
|
|
5456
5531
|
|
|
5457
5532
|
.input-wrapper { position: relative; display: flex; align-items: center; }
|
|
@@ -5564,7 +5639,7 @@ g5.styles = g`
|
|
|
5564
5639
|
text-align: center;
|
|
5565
5640
|
}
|
|
5566
5641
|
`;
|
|
5567
|
-
let V =
|
|
5642
|
+
let V = H5;
|
|
5568
5643
|
m([
|
|
5569
5644
|
C()
|
|
5570
5645
|
], V.prototype, "value");
|
|
@@ -5621,86 +5696,87 @@ m([
|
|
|
5621
5696
|
], V.prototype, "_panelEl");
|
|
5622
5697
|
customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", V);
|
|
5623
5698
|
export {
|
|
5624
|
-
|
|
5699
|
+
o4 as $,
|
|
5625
5700
|
z as A,
|
|
5626
5701
|
O as B,
|
|
5627
5702
|
u1 as C,
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5703
|
+
P as D,
|
|
5704
|
+
y1 as E,
|
|
5705
|
+
M1 as F,
|
|
5706
|
+
V as G,
|
|
5707
|
+
z1 as H,
|
|
5708
|
+
$1 as I,
|
|
5709
|
+
F as J,
|
|
5710
|
+
d1 as K,
|
|
5711
|
+
k1 as L,
|
|
5712
|
+
c1 as M,
|
|
5713
|
+
s2 as N,
|
|
5714
|
+
$ as O,
|
|
5715
|
+
q as P,
|
|
5716
|
+
B1 as Q,
|
|
5717
|
+
E1 as R,
|
|
5718
|
+
p2 as S,
|
|
5719
|
+
c2 as T,
|
|
5720
|
+
Y1 as U,
|
|
5721
|
+
u2 as V,
|
|
5722
|
+
K5 as W,
|
|
5723
|
+
Q4 as X,
|
|
5724
|
+
N3 as Y,
|
|
5725
|
+
L2 as Z,
|
|
5726
|
+
O5 as _,
|
|
5727
|
+
j1 as a,
|
|
5728
|
+
v1 as a0,
|
|
5729
|
+
E3 as a1,
|
|
5730
|
+
E5 as a2,
|
|
5731
|
+
t3 as a3,
|
|
5732
|
+
g2 as a4,
|
|
5733
|
+
L3 as a5,
|
|
5734
|
+
f1 as a6,
|
|
5735
|
+
h2 as a7,
|
|
5736
|
+
f2 as a8,
|
|
5737
|
+
y3 as a9,
|
|
5738
|
+
r2 as aa,
|
|
5739
|
+
Y3 as ab,
|
|
5740
|
+
G3 as ac,
|
|
5741
|
+
D3 as ad,
|
|
5742
|
+
r3 as ae,
|
|
5743
|
+
i4 as af,
|
|
5744
|
+
K1 as ag,
|
|
5745
|
+
C3 as ah,
|
|
5746
|
+
i3 as ai,
|
|
5747
|
+
C4 as aj,
|
|
5748
|
+
a4 as ak,
|
|
5749
|
+
x2 as al,
|
|
5750
|
+
r4 as am,
|
|
5751
|
+
n4 as an,
|
|
5752
|
+
s4 as ao,
|
|
5753
|
+
g3 as ap,
|
|
5754
|
+
J5 as aq,
|
|
5755
|
+
B3 as ar,
|
|
5756
|
+
Q3 as as,
|
|
5757
|
+
_1 as b,
|
|
5682
5758
|
b as c,
|
|
5683
|
-
|
|
5759
|
+
U1 as d,
|
|
5684
5760
|
U as e,
|
|
5685
|
-
|
|
5686
|
-
|
|
5761
|
+
x1 as f,
|
|
5762
|
+
q1 as g,
|
|
5687
5763
|
E as h,
|
|
5688
|
-
|
|
5764
|
+
q3 as i,
|
|
5689
5765
|
L as j,
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5766
|
+
G1 as k,
|
|
5767
|
+
n2 as l,
|
|
5768
|
+
C2 as m,
|
|
5769
|
+
a2 as n,
|
|
5770
|
+
R1 as o,
|
|
5771
|
+
A1 as p,
|
|
5772
|
+
Z1 as q,
|
|
5697
5773
|
w as r,
|
|
5698
|
-
|
|
5774
|
+
W1 as s,
|
|
5699
5775
|
o1 as t,
|
|
5700
5776
|
p1 as u,
|
|
5701
|
-
|
|
5702
|
-
|
|
5777
|
+
b3 as v,
|
|
5778
|
+
m3 as w,
|
|
5703
5779
|
B as x,
|
|
5704
|
-
|
|
5705
|
-
|
|
5780
|
+
v2 as y,
|
|
5781
|
+
w1 as z
|
|
5706
5782
|
};
|