@duyluonganduin/acl-web-components 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/acl-web-components.cjs +1 -1
- package/dist/acl-web-components.d.ts +54 -0
- package/dist/acl-web-components.iife.js +199 -119
- package/dist/acl-web-components.js +75 -68
- package/dist/anduin-suggestion-Bk4AI23P.cjs +2500 -0
- package/dist/{anduin-suggestion-D3Sl4vcX.js → anduin-suggestion-BtKSMXua.js} +1312 -1083
- package/dist/jsx.d.ts +25 -0
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +62 -0
- package/dist/react.js +122 -106
- package/package.json +1 -1
- package/dist/anduin-suggestion-ChXDlWeZ.cjs +0 -2420
|
@@ -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 N1 = globalThis, Z2 = N1.ShadowRoot && (N1.ShadyCSS === void 0 || N1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _2 = Symbol(), Z5 = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let Y5 = class {
|
|
8
8
|
constructor(e, t, i) {
|
|
9
|
-
if (this._$cssResult$ = !0, i !==
|
|
9
|
+
if (this._$cssResult$ = !0, i !== _2) 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 (Z2 && e === void 0) {
|
|
16
16
|
const i = t !== void 0 && t.length === 1;
|
|
17
|
-
i && (e =
|
|
17
|
+
i && (e = Z5.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && Z5.set(t, e));
|
|
18
18
|
}
|
|
19
19
|
return e;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let T5 = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const V4 = (l) => new Y5(typeof l == "string" ? l : l + "", void 0, _2), v = (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 Y5(t, l, _2);
|
|
32
|
+
}, L4 = (l, e) => {
|
|
33
|
+
if (Z2) 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 = N1.litNonce;
|
|
36
36
|
o !== void 0 && i.setAttribute("nonce", o), i.textContent = t.cssText, l.appendChild(i);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, _5 = Z2 ? (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 V4(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: m4, defineProperty: b4, getOwnPropertyDescriptor: M4, getOwnPropertyNames: y4, getOwnPropertySymbols: Z4, getPrototypeOf: _4 } = Object, q = globalThis, x5 = q.trustedTypes, x4 = x5 ? x5.emptyScript : "", t2 = q.reactiveElementPolyfillSupport, m1 = (l, e) => l, j1 = { toAttribute(l, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
l = l ?
|
|
51
|
+
l = l ? x4 : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,44 +73,44 @@ const { is: h4, defineProperty: v4, getOwnPropertyDescriptor: g4, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return t;
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
78
|
-
let
|
|
76
|
+
} }, x2 = (l, e) => !m4(l, e), w5 = { attribute: !0, type: String, converter: j1, reflect: !1, useDefault: !1, hasChanged: x2 };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), q.litPropertyMetadata ?? (q.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
let c1 = class extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
81
81
|
}
|
|
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 = w5) {
|
|
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 && b4(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 } = M4(this.prototype, e) ?? { get() {
|
|
93
93
|
return this[t];
|
|
94
94
|
}, set(n) {
|
|
95
95
|
this[t] = n;
|
|
96
96
|
} };
|
|
97
97
|
return { get: o, set(n) {
|
|
98
|
-
const
|
|
99
|
-
r == null || r.call(this, n), this.requestUpdate(e,
|
|
98
|
+
const C = o == null ? void 0 : o.call(this);
|
|
99
|
+
r == null || r.call(this, n), this.requestUpdate(e, C, i);
|
|
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) ?? w5;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const e =
|
|
106
|
+
if (this.hasOwnProperty(m1("elementProperties"))) return;
|
|
107
|
+
const e = _4(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
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
-
const t = this.properties, i = [...
|
|
111
|
+
if (this.hasOwnProperty(m1("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(m1("properties"))) {
|
|
113
|
+
const t = this.properties, i = [...y4(t), ...Z4(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(_5(o));
|
|
133
|
+
} else e !== void 0 && t.push(_5(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 L4(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 : j1).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,17 +192,17 @@ 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
|
|
195
|
+
const C = i.getPropertyOptions(o), d = typeof C.converter == "function" ? { fromAttribute: C.converter } : ((r = C.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? C.converter : j1;
|
|
196
196
|
this._$Em = o;
|
|
197
|
-
const p = d.fromAttribute(t,
|
|
197
|
+
const p = d.fromAttribute(t, C.type);
|
|
198
198
|
this[o] = p ?? ((n = this._$Ej) == null ? void 0 : n.get(o)) ?? p, this._$Em = null;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
requestUpdate(e, t, i, o = !1, r) {
|
|
202
202
|
var n;
|
|
203
203
|
if (e !== void 0) {
|
|
204
|
-
const
|
|
205
|
-
if (o === !1 && (r = this[e]), i ?? (i =
|
|
204
|
+
const C = this.constructor;
|
|
205
|
+
if (o === !1 && (r = this[e]), i ?? (i = C.getPropertyOptions(e)), !((i.hasChanged ?? x2)(r, t) || i.useDefault && i.reflect && r === ((n = this._$Ej) == null ? void 0 : n.get(e)) && !this.hasAttribute(C._$Eu(e, i)))) return;
|
|
206
206
|
this.C(e, t, i);
|
|
207
207
|
}
|
|
208
208
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -233,8 +233,8 @@ let a1 = class extends HTMLElement {
|
|
|
233
233
|
}
|
|
234
234
|
const o = this.constructor.elementProperties;
|
|
235
235
|
if (o.size > 0) for (const [r, n] of o) {
|
|
236
|
-
const { wrapped:
|
|
237
|
-
|
|
236
|
+
const { wrapped: C } = n, d = this[r];
|
|
237
|
+
C !== !0 || this._$AL.has(r) || d === void 0 || this.C(r, void 0, n, d);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
let e = !1;
|
|
@@ -278,76 +278,76 @@ let a1 = class extends HTMLElement {
|
|
|
278
278
|
firstUpdated(e) {
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
|
|
281
|
+
c1.elementStyles = [], c1.shadowRootOptions = { mode: "open" }, c1[m1("elementProperties")] = /* @__PURE__ */ new Map(), c1[m1("finalized")] = /* @__PURE__ */ new Map(), t2 == null || t2({ ReactiveElement: c1 }), (q.reactiveElementVersions ?? (q.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
|
|
288
|
-
\f\r]`,
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
290
|
-
function
|
|
291
|
-
if (!
|
|
292
|
-
return
|
|
287
|
+
const b1 = globalThis, R5 = (l) => l, U1 = b1.trustedTypes, k5 = U1 ? U1.createPolicy("lit-html", { createHTML: (l) => l }) : void 0, X5 = "$lit$", U = `lit$${Math.random().toFixed(9).slice(2)}$`, K5 = "?" + U, w4 = `<${K5}>`, i1 = document, M1 = () => i1.createComment(""), y1 = (l) => l === null || typeof l != "object" && typeof l != "function", w2 = Array.isArray, R4 = (l) => w2(l) || typeof (l == null ? void 0 : l[Symbol.iterator]) == "function", o2 = `[
|
|
288
|
+
\f\r]`, V1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $5 = /-->/g, E5 = />/g, e1 = RegExp(`>|${o2}(?:([^\\s"'>=/]+)(${o2}*=${o2}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), A5 = /'/g, z5 = /"/g, J5 = /^(?:script|style|textarea|title)$/i, Q5 = (l) => (e, ...t) => ({ _$litType$: l, strings: e, values: t }), s = Q5(1), q1 = Q5(2), l1 = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), B5 = /* @__PURE__ */ new WeakMap(), t1 = i1.createTreeWalker(i1, 129);
|
|
290
|
+
function e4(l, e) {
|
|
291
|
+
if (!w2(l) || !l.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
+
return k5 !== void 0 ? k5.createHTML(e) : e;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const k4 = (l, e) => {
|
|
295
295
|
const t = l.length - 1, i = [];
|
|
296
|
-
let o, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n =
|
|
297
|
-
for (let
|
|
298
|
-
const d = l[
|
|
299
|
-
let p, u,
|
|
300
|
-
for (; H < d.length && (n.lastIndex = H, u = n.exec(d), u !== null); ) H = n.lastIndex, n ===
|
|
301
|
-
const f = n ===
|
|
302
|
-
r += n ===
|
|
303
|
-
}
|
|
304
|
-
return [
|
|
296
|
+
let o, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = V1;
|
|
297
|
+
for (let C = 0; C < t; C++) {
|
|
298
|
+
const d = l[C];
|
|
299
|
+
let p, u, g = -1, H = 0;
|
|
300
|
+
for (; H < d.length && (n.lastIndex = H, u = n.exec(d), u !== null); ) H = n.lastIndex, n === V1 ? u[1] === "!--" ? n = $5 : u[1] !== void 0 ? n = E5 : u[2] !== void 0 ? (J5.test(u[2]) && (o = RegExp("</" + u[2], "g")), n = e1) : u[3] !== void 0 && (n = e1) : n === e1 ? u[0] === ">" ? (n = o ?? V1, g = -1) : u[1] === void 0 ? g = -2 : (g = n.lastIndex - u[2].length, p = u[1], n = u[3] === void 0 ? e1 : u[3] === '"' ? z5 : A5) : n === z5 || n === A5 ? n = e1 : n === $5 || n === E5 ? n = V1 : (n = e1, o = void 0);
|
|
301
|
+
const f = n === e1 && l[C + 1].startsWith("/>") ? " " : "";
|
|
302
|
+
r += n === V1 ? d + w4 : g >= 0 ? (i.push(p), d.slice(0, g) + X5 + d.slice(g) + U + f) : d + U + (g === -2 ? C : f);
|
|
303
|
+
}
|
|
304
|
+
return [e4(l, r + (l[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
305
305
|
};
|
|
306
|
-
class
|
|
306
|
+
class Z1 {
|
|
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
|
|
312
|
-
if (this.el =
|
|
313
|
-
const
|
|
314
|
-
|
|
311
|
+
const C = e.length - 1, d = this.parts, [p, u] = k4(e, t);
|
|
312
|
+
if (this.el = Z1.createElement(p, i), t1.currentNode = this.el.content, t === 2 || t === 3) {
|
|
313
|
+
const g = this.el.content.firstChild;
|
|
314
|
+
g.replaceWith(...g.childNodes);
|
|
315
315
|
}
|
|
316
|
-
for (; (o =
|
|
316
|
+
for (; (o = t1.nextNode()) !== null && d.length < C; ) {
|
|
317
317
|
if (o.nodeType === 1) {
|
|
318
|
-
if (o.hasAttributes()) for (const
|
|
319
|
-
const H = u[n++], f = o.getAttribute(
|
|
320
|
-
d.push({ type: 1, index: r, name: Z[2], strings: f, ctor: Z[1] === "." ?
|
|
321
|
-
} else
|
|
322
|
-
if (
|
|
323
|
-
const
|
|
318
|
+
if (o.hasAttributes()) for (const g of o.getAttributeNames()) if (g.endsWith(X5)) {
|
|
319
|
+
const H = u[n++], f = o.getAttribute(g).split(U), Z = /([.?@])?(.*)/.exec(H);
|
|
320
|
+
d.push({ type: 1, index: r, name: Z[2], strings: f, ctor: Z[1] === "." ? E4 : Z[1] === "?" ? A4 : Z[1] === "@" ? z4 : Q1 }), o.removeAttribute(g);
|
|
321
|
+
} else g.startsWith(U) && (d.push({ type: 6, index: r }), o.removeAttribute(g));
|
|
322
|
+
if (J5.test(o.tagName)) {
|
|
323
|
+
const g = o.textContent.split(U), H = g.length - 1;
|
|
324
324
|
if (H > 0) {
|
|
325
|
-
o.textContent =
|
|
326
|
-
for (let f = 0; f < H; f++) o.append(
|
|
327
|
-
o.append(
|
|
325
|
+
o.textContent = U1 ? U1.emptyScript : "";
|
|
326
|
+
for (let f = 0; f < H; f++) o.append(g[f], M1()), t1.nextNode(), d.push({ type: 2, index: ++r });
|
|
327
|
+
o.append(g[H], M1());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
} else if (o.nodeType === 8) if (o.data ===
|
|
330
|
+
} else if (o.nodeType === 8) if (o.data === K5) d.push({ type: 2, index: r });
|
|
331
331
|
else {
|
|
332
|
-
let
|
|
333
|
-
for (; (
|
|
332
|
+
let g = -1;
|
|
333
|
+
for (; (g = o.data.indexOf(U, g + 1)) !== -1; ) d.push({ type: 7, index: r }), g += U.length - 1;
|
|
334
334
|
}
|
|
335
335
|
r++;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
static createElement(e, t) {
|
|
339
|
-
const i =
|
|
339
|
+
const i = i1.createElement("template");
|
|
340
340
|
return i.innerHTML = e, i;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
var n,
|
|
345
|
-
if (e ===
|
|
343
|
+
function p1(l, e, t = l, i) {
|
|
344
|
+
var n, C;
|
|
345
|
+
if (e === l1) return e;
|
|
346
346
|
let o = i !== void 0 ? (n = t._$Co) == null ? void 0 : n[i] : t._$Cl;
|
|
347
|
-
const r =
|
|
348
|
-
return (o == null ? void 0 : o.constructor) !== r && ((
|
|
347
|
+
const r = y1(e) ? void 0 : e._$litDirective$;
|
|
348
|
+
return (o == null ? void 0 : o.constructor) !== r && ((C = o == null ? void 0 : o._$AO) == null || C.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 = p1(l, o._$AS(l, e.values), o, i)), e;
|
|
349
349
|
}
|
|
350
|
-
class
|
|
350
|
+
class $4 {
|
|
351
351
|
constructor(e, t) {
|
|
352
352
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
353
353
|
}
|
|
@@ -358,24 +358,24 @@ class y4 {
|
|
|
358
358
|
return this._$AM._$AU;
|
|
359
359
|
}
|
|
360
360
|
u(e) {
|
|
361
|
-
const { el: { content: t }, parts: i } = this._$AD, o = ((e == null ? void 0 : e.creationScope) ??
|
|
362
|
-
|
|
363
|
-
let r =
|
|
361
|
+
const { el: { content: t }, parts: i } = this._$AD, o = ((e == null ? void 0 : e.creationScope) ?? i1).importNode(t, !0);
|
|
362
|
+
t1.currentNode = o;
|
|
363
|
+
let r = t1.nextNode(), n = 0, C = 0, d = i[0];
|
|
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 O1(r, r.nextSibling, this, e) : d.type === 1 ? p = new d.ctor(r, d.name, d.strings, this, e) : d.type === 6 && (p = new B4(r, this, e)), this._$AV.push(p), d = i[++C];
|
|
368
368
|
}
|
|
369
|
-
n !== (d == null ? void 0 : d.index) && (r =
|
|
369
|
+
n !== (d == null ? void 0 : d.index) && (r = t1.nextNode(), n++);
|
|
370
370
|
}
|
|
371
|
-
return
|
|
371
|
+
return t1.currentNode = i1, o;
|
|
372
372
|
}
|
|
373
373
|
p(e) {
|
|
374
374
|
let t = 0;
|
|
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 O1 {
|
|
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 S1 {
|
|
|
395
395
|
return this._$AB;
|
|
396
396
|
}
|
|
397
397
|
_$AI(e, t = this) {
|
|
398
|
-
e =
|
|
398
|
+
e = p1(this, e, t), y1(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== l1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : R4(e) ? this.k(e) : this._(e);
|
|
399
399
|
}
|
|
400
400
|
O(e) {
|
|
401
401
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -404,33 +404,33 @@ class S1 {
|
|
|
404
404
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
405
405
|
}
|
|
406
406
|
_(e) {
|
|
407
|
-
this._$AH !== c &&
|
|
407
|
+
this._$AH !== c && y1(this._$AH) ? this._$AA.nextSibling.data = e : this.T(i1.createTextNode(e)), this._$AH = e;
|
|
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 =
|
|
411
|
+
const { values: t, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = Z1.createElement(e4(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
|
|
415
|
-
n.p(t), this.T(
|
|
414
|
+
const n = new $4(o, this), C = n.u(this.options);
|
|
415
|
+
n.p(t), this.T(C), this._$AH = n;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
_$AC(e) {
|
|
419
|
-
let t =
|
|
420
|
-
return t === void 0 &&
|
|
419
|
+
let t = B5.get(e.strings);
|
|
420
|
+
return t === void 0 && B5.set(e.strings, t = new Z1(e)), t;
|
|
421
421
|
}
|
|
422
422
|
k(e) {
|
|
423
|
-
|
|
423
|
+
w2(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 O1(this.O(M1()), this.O(M1()), 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 = R5(e).nextSibling;
|
|
433
|
+
R5(e).remove(), e = o;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
setConnected(e) {
|
|
@@ -438,7 +438,7 @@ class S1 {
|
|
|
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 Q1 {
|
|
442
442
|
get tagName() {
|
|
443
443
|
return this.element.tagName;
|
|
444
444
|
}
|
|
@@ -451,11 +451,11 @@ class X1 {
|
|
|
451
451
|
_$AI(e, t = this, i, o) {
|
|
452
452
|
const r = this.strings;
|
|
453
453
|
let n = !1;
|
|
454
|
-
if (r === void 0) e =
|
|
454
|
+
if (r === void 0) e = p1(this, e, t, 0), n = !y1(e) || e !== this._$AH && e !== l1, n && (this._$AH = e);
|
|
455
455
|
else {
|
|
456
|
-
const
|
|
456
|
+
const C = e;
|
|
457
457
|
let d, p;
|
|
458
|
-
for (e = r[0], d = 0; d < r.length - 1; d++) p =
|
|
458
|
+
for (e = r[0], d = 0; d < r.length - 1; d++) p = p1(this, C[i + d], t, d), p === l1 && (p = this._$AH[d]), n || (n = !y1(p) || p !== this._$AH[d]), p === c ? e = c : e !== c && (e += (p ?? "") + r[d + 1]), this._$AH[d] = p;
|
|
459
459
|
}
|
|
460
460
|
n && !o && this.j(e);
|
|
461
461
|
}
|
|
@@ -463,7 +463,7 @@ class X1 {
|
|
|
463
463
|
e === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
class
|
|
466
|
+
class E4 extends Q1 {
|
|
467
467
|
constructor() {
|
|
468
468
|
super(...arguments), this.type = 3;
|
|
469
469
|
}
|
|
@@ -471,7 +471,7 @@ class Z4 extends X1 {
|
|
|
471
471
|
this.element[this.name] = e === c ? void 0 : e;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class A4 extends Q1 {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(...arguments), this.type = 4;
|
|
477
477
|
}
|
|
@@ -479,12 +479,12 @@ class _4 extends X1 {
|
|
|
479
479
|
this.element.toggleAttribute(this.name, !!e && e !== c);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
class
|
|
482
|
+
class z4 extends Q1 {
|
|
483
483
|
constructor(e, t, i, o, r) {
|
|
484
484
|
super(e, t, i, o, r), this.type = 5;
|
|
485
485
|
}
|
|
486
486
|
_$AI(e, t = this) {
|
|
487
|
-
if ((e =
|
|
487
|
+
if ((e = p1(this, e, t, 0) ?? c) === l1) return;
|
|
488
488
|
const i = this._$AH, o = e === c && i !== c || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, r = e !== c && (i === c || o);
|
|
489
489
|
o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
490
490
|
}
|
|
@@ -493,7 +493,7 @@ class x4 extends X1 {
|
|
|
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 B4 {
|
|
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
|
}
|
|
@@ -501,17 +501,17 @@ class w4 {
|
|
|
501
501
|
return this._$AM._$AU;
|
|
502
502
|
}
|
|
503
503
|
_$AI(e) {
|
|
504
|
-
|
|
504
|
+
p1(this, e);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
const
|
|
507
|
+
const i2 = b1.litHtmlPolyfillSupport;
|
|
508
|
+
i2 == null || i2(Z1, O1), (b1.litHtmlVersions ?? (b1.litHtmlVersions = [])).push("3.3.2");
|
|
509
|
+
const S4 = (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 O1(e.insertBefore(M1(), r), r, void 0, t ?? {});
|
|
515
515
|
}
|
|
516
516
|
return o._$AI(l), o;
|
|
517
517
|
};
|
|
@@ -520,8 +520,8 @@ const R4 = (l, e, t) => {
|
|
|
520
520
|
* Copyright 2017 Google LLC
|
|
521
521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
522
522
|
*/
|
|
523
|
-
const
|
|
524
|
-
let h = class extends
|
|
523
|
+
const o1 = globalThis;
|
|
524
|
+
let h = class extends c1 {
|
|
525
525
|
constructor() {
|
|
526
526
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
527
527
|
}
|
|
@@ -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 = S4(t, this.renderRoot, this.renderOptions);
|
|
536
536
|
}
|
|
537
537
|
connectedCallback() {
|
|
538
538
|
var e;
|
|
@@ -543,42 +543,42 @@ let h = class extends a1 {
|
|
|
543
543
|
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
|
544
544
|
}
|
|
545
545
|
render() {
|
|
546
|
-
return
|
|
546
|
+
return l1;
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
|
-
var
|
|
550
|
-
h._$litElement$ = !0, h.finalized = !0, (
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
(
|
|
549
|
+
var W5;
|
|
550
|
+
h._$litElement$ = !0, h.finalized = !0, (W5 = o1.litElementHydrateSupport) == null || W5.call(o1, { LitElement: h });
|
|
551
|
+
const l2 = o1.litElementPolyfillSupport;
|
|
552
|
+
l2 == null || l2({ LitElement: h });
|
|
553
|
+
(o1.litElementVersions ?? (o1.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 P4 = { attribute: !0, type: String, converter: j1, reflect: !1, hasChanged: x2 }, F4 = (l = P4, 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") {
|
|
563
563
|
const { name: n } = t;
|
|
564
|
-
return { set(
|
|
564
|
+
return { set(C) {
|
|
565
565
|
const d = e.get.call(this);
|
|
566
|
-
e.set.call(this,
|
|
567
|
-
}, init(
|
|
568
|
-
return
|
|
566
|
+
e.set.call(this, C), this.requestUpdate(n, d, l, !0, C);
|
|
567
|
+
}, init(C) {
|
|
568
|
+
return C !== void 0 && this.C(n, void 0, l, C), C;
|
|
569
569
|
} };
|
|
570
570
|
}
|
|
571
571
|
if (i === "setter") {
|
|
572
572
|
const { name: n } = t;
|
|
573
|
-
return function(
|
|
573
|
+
return function(C) {
|
|
574
574
|
const d = this[n];
|
|
575
|
-
e.call(this,
|
|
575
|
+
e.call(this, C), this.requestUpdate(n, d, l, !0, C);
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
578
|
throw Error("Unsupported decorator location: " + i);
|
|
579
579
|
};
|
|
580
|
-
function
|
|
581
|
-
return (e, t) => typeof t == "object" ?
|
|
580
|
+
function a(l) {
|
|
581
|
+
return (e, t) => typeof t == "object" ? F4(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);
|
|
@@ -589,36 +589,36 @@ function C(l) {
|
|
|
589
589
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
590
590
|
*/
|
|
591
591
|
function M(l) {
|
|
592
|
-
return
|
|
592
|
+
return a({ ...l, state: !0, attribute: !1 });
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
595
595
|
* @license
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
const
|
|
599
|
+
const O4 = (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
|
|
603
603
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
604
604
|
*/
|
|
605
|
-
function
|
|
605
|
+
function k(l, e) {
|
|
606
606
|
return (t, i, o) => {
|
|
607
607
|
const r = (n) => {
|
|
608
|
-
var
|
|
609
|
-
return ((
|
|
608
|
+
var C;
|
|
609
|
+
return ((C = n.renderRoot) == null ? void 0 : C.querySelector(l)) ?? null;
|
|
610
610
|
};
|
|
611
|
-
return
|
|
611
|
+
return O4(t, i, { get() {
|
|
612
612
|
return r(this);
|
|
613
613
|
} });
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
var
|
|
616
|
+
var D4 = Object.defineProperty, t4 = (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 && D4(e, t, o), o;
|
|
620
620
|
};
|
|
621
|
-
const
|
|
621
|
+
const E2 = class E2 extends h {
|
|
622
622
|
constructor() {
|
|
623
623
|
super(...arguments), this.size = "medium", this.percent = "";
|
|
624
624
|
}
|
|
@@ -640,8 +640,8 @@ const w2 = class w2 extends h {
|
|
|
640
640
|
const [e, t] = this.getSizeParams(this.size), i = this.percent === "" || this.percent === null;
|
|
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
|
-
const r = t / 2, n = t + e,
|
|
644
|
-
return
|
|
643
|
+
const r = t / 2, n = t + e, C = e / 2, d = Math.PI * e;
|
|
644
|
+
return q1`
|
|
645
645
|
<svg
|
|
646
646
|
class=${i ? "spinner" : ""}
|
|
647
647
|
width="${e}px"
|
|
@@ -654,9 +654,9 @@ const w2 = class w2 extends h {
|
|
|
654
654
|
stroke="currentColor"
|
|
655
655
|
stroke-linecap="round"
|
|
656
656
|
stroke-width="${t}px"
|
|
657
|
-
cx="${
|
|
658
|
-
cy="${
|
|
659
|
-
r="${
|
|
657
|
+
cx="${C}"
|
|
658
|
+
cy="${C}"
|
|
659
|
+
r="${C}"
|
|
660
660
|
stroke-opacity="0.2"
|
|
661
661
|
fill-opacity="0"
|
|
662
662
|
/>
|
|
@@ -664,9 +664,9 @@ const w2 = class w2 extends h {
|
|
|
664
664
|
stroke="currentColor"
|
|
665
665
|
stroke-linecap="round"
|
|
666
666
|
stroke-width="${t}px"
|
|
667
|
-
cx="${
|
|
668
|
-
cy="${
|
|
669
|
-
r="${
|
|
667
|
+
cx="${C}"
|
|
668
|
+
cy="${C}"
|
|
669
|
+
r="${C}"
|
|
670
670
|
fill-opacity="0"
|
|
671
671
|
stroke-dasharray="${d}"
|
|
672
672
|
stroke-dashoffset="${o}"
|
|
@@ -675,31 +675,31 @@ const w2 = class w2 extends h {
|
|
|
675
675
|
`;
|
|
676
676
|
}
|
|
677
677
|
};
|
|
678
|
-
|
|
678
|
+
E2.styles = v`
|
|
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
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
],
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
],
|
|
690
|
-
customElements.get("anduin-spinner") || customElements.define("anduin-spinner",
|
|
691
|
-
var
|
|
683
|
+
let _1 = E2;
|
|
684
|
+
t4([
|
|
685
|
+
a()
|
|
686
|
+
], _1.prototype, "size");
|
|
687
|
+
t4([
|
|
688
|
+
a()
|
|
689
|
+
], _1.prototype, "percent");
|
|
690
|
+
customElements.get("anduin-spinner") || customElements.define("anduin-spinner", _1);
|
|
691
|
+
var I4 = Object.defineProperty, o4 = (l, e, t, i) => {
|
|
692
692
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
693
693
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
694
|
-
return o &&
|
|
694
|
+
return o && I4(e, t, o), o;
|
|
695
695
|
};
|
|
696
|
-
const
|
|
696
|
+
const S5 = "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", T4 = { small: 16, medium: 24, large: 32 }, A2 = class A2 extends h {
|
|
697
697
|
constructor() {
|
|
698
698
|
super(...arguments), this.size = "small", this.color = "default";
|
|
699
699
|
}
|
|
700
700
|
render() {
|
|
701
|
-
const e =
|
|
702
|
-
return
|
|
701
|
+
const e = T4[this.size] ?? 16;
|
|
702
|
+
return q1`
|
|
703
703
|
<svg
|
|
704
704
|
xmlns="http://www.w3.org/2000/svg"
|
|
705
705
|
width="${e}"
|
|
@@ -708,13 +708,13 @@ const k5 = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.635
|
|
|
708
708
|
fill="currentColor"
|
|
709
709
|
overflow="visible"
|
|
710
710
|
>
|
|
711
|
-
<path class="star" d="${
|
|
712
|
-
<path class="star star-2" d="${
|
|
711
|
+
<path class="star" d="${S5}"/>
|
|
712
|
+
<path class="star star-2" d="${S5}"/>
|
|
713
713
|
</svg>
|
|
714
714
|
`;
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
|
-
|
|
717
|
+
A2.styles = v`
|
|
718
718
|
:host { display: inline-block; line-height: 0; }
|
|
719
719
|
|
|
720
720
|
/* ── Colors ─────────────────────────────────────────────────── */
|
|
@@ -753,15 +753,15 @@ R2.styles = g`
|
|
|
753
753
|
100% { transform: translate(12px, 12px) scale(0.5); opacity: 0; }
|
|
754
754
|
}
|
|
755
755
|
`;
|
|
756
|
-
let
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
],
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
],
|
|
763
|
-
customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner",
|
|
764
|
-
const
|
|
756
|
+
let x1 = A2;
|
|
757
|
+
o4([
|
|
758
|
+
a({ reflect: !0 })
|
|
759
|
+
], x1.prototype, "size");
|
|
760
|
+
o4([
|
|
761
|
+
a({ reflect: !0 })
|
|
762
|
+
], x1.prototype, "color");
|
|
763
|
+
customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", x1);
|
|
764
|
+
const P5 = {
|
|
765
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" }],
|
|
766
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" }],
|
|
767
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" }],
|
|
@@ -809,8 +809,12 @@ const $5 = {
|
|
|
809
809
|
channel: [{ d: "M12.4793 1.92502C12.576 1.52224 12.3278 1.11736 11.925 1.0207C11.5223 0.924032 11.1174 1.17218 11.0207 1.57496L10.1987 5H6.7413L7.47929 1.92503C7.57596 1.52225 7.32781 1.11738 6.92503 1.02071C6.52226 0.924043 6.11738 1.17219 6.02071 1.57497L5.1987 5H3C2.58579 5 2.25 5.33579 2.25 5.75C2.25 6.16421 2.58579 6.5 3 6.5H4.8387L4.1128 9.5246H1.99991C1.58569 9.5246 1.24991 9.86038 1.24991 10.2746C1.24991 10.6888 1.58569 11.0246 1.99991 11.0246H3.7528L3.02071 14.075C2.92404 14.4777 3.1722 14.8826 3.57497 14.9793C3.97775 15.076 4.38263 14.8278 4.47929 14.425L5.2954 11.0246H8.7528L8.02071 14.075C7.92404 14.4777 8.1722 14.8826 8.57497 14.9793C8.97775 15.0759 9.38263 14.8278 9.47929 14.425L10.2954 11.0246H12.2499C12.6641 11.0246 12.9999 10.6888 12.9999 10.2746C12.9999 9.86038 12.6641 9.5246 12.2499 9.5246H10.6554L11.3813 6.5H13.25C13.6642 6.5 14 6.16421 14 5.75C14 5.33579 13.6642 5 13.25 5H11.7413L12.4793 1.92502ZM9.1128 9.5246L9.8387 6.5H6.3813L5.6554 9.5246H9.1128Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
810
810
|
chartBarHorizontal: [{ d: "M14 6C14.5523 6 15 6.44772 15 7V8C15 8.55228 14.5523 9 14 9H5C4.44771 9 4 8.55228 4 8V7C4 6.44772 4.44772 6 5 6H14ZM12 11C12 10.4477 11.5523 10 11 10H5C4.44771 10 4 10.4477 4 11V12C4 12.5523 4.44771 13 5 13H11C11.5523 13 12 12.5523 12 12V11ZM2.5 1.75C2.5 1.33579 2.16421 1 1.75 1C1.33579 1 1 1.33579 1 1.75V14.25C1 14.6642 1.33579 15 1.75 15C2.16421 15 2.5 14.6642 2.5 14.25V1.75ZM10 3C10 2.44772 9.55228 2 9 2H5C4.44772 2 4 2.44772 4 3V4C4 4.55228 4.44772 5 5 5H9C9.55228 5 10 4.55228 10 4V3Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
811
811
|
chartBarVertical: [{ d: "M6 2C6 1.44771 6.44772 1 7 1H8C8.55228 1 9 1.44772 9 2V11C9 11.5523 8.55228 12 8 12H7C6.44772 12 6 11.5523 6 11V2ZM11 4C10.4477 4 10 4.44772 10 5V11C10 11.5523 10.4477 12 11 12H12C12.5523 12 13 11.5523 13 11V5C13 4.44772 12.5523 4 12 4H11ZM1.75 13.5C1.33579 13.5 1 13.8358 1 14.25C1 14.6642 1.33579 15 1.75 15H14.25C14.6642 15 15 14.6642 15 14.25C15 13.8358 14.6642 13.5 14.25 13.5H1.75ZM3 6C2.44772 6 2 6.44772 2 7V11C2 11.5523 2.44772 12 3 12H4C4.55228 12 5 11.5523 5 11V7C5 6.44772 4.55228 6 4 6H3Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
812
|
+
chartDonut: [{ d: "M3.65779 8.75026C3.89797 8.75026 4.10097 8.92235 4.17005 9.15239C4.6647 10.7995 6.19133 12 7.99953 12.0003C8.68483 12.0003 9.33009 11.8275 9.89398 11.5237C10.1054 11.4098 10.3705 11.4317 10.5403 11.6015L12.7119 13.7732C12.9202 13.9815 12.9048 14.325 12.6658 14.497C11.3523 15.4423 9.7412 16.0003 7.99953 16.0003C4.02239 16 0.724913 13.0971 0.106168 9.29482C0.0588771 9.00421 0.290877 8.75026 0.585313 8.75026H3.65779Z", fillRule: "evenodd", clipRule: "evenodd" }, { d: "M8.74953 0.585019C8.74953 0.290602 9.00344 0.0586084 9.29404 0.105868C13.0969 0.724321 15.9995 4.02261 15.9995 8.00026C15.9995 9.74229 15.4427 11.354 14.4973 12.6676C14.3252 12.9066 13.9817 12.9219 13.7735 12.7137L11.6009 10.5411C11.431 10.3712 11.4091 10.1061 11.5231 9.89467C11.827 9.33081 11.9995 8.68578 11.9995 8.00026C11.9995 6.19154 10.7994 4.66338 9.15177 4.16878C8.92169 4.09972 8.74953 3.89669 8.74953 3.65646V0.585019Z", fillRule: "evenodd", clipRule: "evenodd" }, { d: "M7.24953 3.65656C7.24953 3.89675 7.07747 4.09973 6.84744 4.16885C5.56523 4.55411 4.55489 5.56562 4.16999 6.8481C4.10094 7.07817 3.89793 7.25026 3.65772 7.25026H0.58527C0.29085 7.25026 0.0588489 6.99638 0.106113 6.70578C0.656021 3.32472 3.32407 0.65621 6.705 0.105937C6.99561 0.0586373 7.24953 0.290644 7.24953 0.585084V3.65656Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
813
|
+
chartLine: [{ d: "M1.75098 1C2.16486 1.00026 2.50081 1.33609 2.50098 1.75V9.40332L5.28125 6.4502L5.33691 6.39648C5.47343 6.27852 5.6489 6.21299 5.83105 6.21387C6.03892 6.21495 6.23688 6.30239 6.37793 6.45508L8.7832 9.06055L12.9883 3.74805C13.2454 3.4233 13.7172 3.36896 14.042 3.62598C14.3668 3.88307 14.4221 4.35491 14.165 4.67969L9.41504 10.6797C9.27896 10.8514 9.07443 10.9546 8.85547 10.9629C8.63651 10.9712 8.42504 10.8836 8.27637 10.7227L5.82129 8.0625L2.50098 11.5908V13.4912L14.252 13.5C14.6656 13.5008 15.0011 13.8372 15.001 14.251C15.0004 14.6648 14.6638 15 14.25 15L1.75 14.9912C1.33633 14.9907 1.00022 14.6549 1 14.2412V1.75C1.00016 1.33593 1.33686 1 1.75098 1Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
812
814
|
chartPie: [{ d: "M15.4291 4.62987C15.806 5.53982 16 6.51509 16 7.5H8.5V0C9.48492 0 10.4602 0.193993 11.3701 0.570903C12.2801 0.947814 13.1069 1.50026 13.8033 2.1967C14.4997 2.89314 15.0522 3.71993 15.4291 4.62987ZM12.8203 12.889C13.5895 11.7378 14 10.3845 14 9H7V2C5.61553 2 4.26216 2.41054 3.11101 3.17971C1.95987 3.94888 1.06266 5.04213 0.532846 6.32122C0.00303298 7.6003 -0.13559 9.00776 0.134506 10.3656C0.404603 11.7235 1.07129 12.9708 2.05026 13.9497C3.02922 14.9287 4.2765 15.5954 5.63437 15.8655C6.99224 16.1356 8.3997 15.997 9.67879 15.4672C10.9579 14.9373 12.0511 14.0401 12.8203 12.889Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
813
815
|
chartProgress: [{ d: "M5 2.5C5 1.67157 5.67157 1 6.5 1H12.5C13.3284 1 14 1.67157 14 2.5C14 3.32843 13.3284 4 12.5 4H6.5C5.67157 4 5 3.32843 5 2.5ZM1 7.5C1 6.67157 1.67157 6 2.5 6H8.5C9.32843 6 10 6.67157 10 7.5C10 8.32843 9.32843 9 8.5 9H2.5C1.67157 9 1 8.32843 1 7.5ZM7.5 11C6.67157 11 6 11.6716 6 12.5C6 13.3284 6.67157 14 7.5 14H13.5C14.3284 14 15 13.3284 15 12.5C15 11.6716 14.3284 11 13.5 11H7.5Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
816
|
+
chartProgressBar: [{ d: "M13 9C14.1046 9 15 9.89543 15 11V13C15 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 13V11C1 9.89543 1.89543 9 3 9H13ZM10 13.5H13C13.2761 13.5 13.5 13.2761 13.5 13V11C13.5 10.7239 13.2761 10.5 13 10.5H10V13.5Z", fillRule: "evenodd", clipRule: "evenodd" }, { d: "M13 1C14.1046 1 15 1.89543 15 3V5C15 6.03565 14.2128 6.887 13.2041 6.98926L13 7H3L2.7959 6.98926C1.85435 6.8938 1.1062 6.14565 1.01074 5.2041L1 5V3C1 1.89543 1.89543 1 3 1H13ZM6 5.5H13C13.2761 5.5 13.5 5.27614 13.5 5V3C13.5 2.72386 13.2761 2.5 13 2.5H6V5.5Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
817
|
+
chartValue: [{ d: "M11.75 6.5C11.9489 6.49795 12.1396 6.57518 12.2803 6.71582C12.4209 6.85643 12.5 7.04906 12.5 7.25C12.5 7.45094 12.4209 7.64357 12.2803 7.78418C12.1396 7.92483 11.9489 8.00205 11.75 8C11.6723 7.99921 11.5943 7.99884 11.5166 7.99805C10.9613 7.99241 10.4059 7.98611 9.85059 7.98047C9.82084 8.2627 9.7905 8.54492 9.76074 8.82715C10.179 8.68493 10.6451 8.6303 11.126 8.75391C11.9572 8.91313 12.7025 9.87111 12.6562 10.7285C12.6729 11.2873 12.4882 11.9599 11.998 12.4209C11.5129 12.8862 10.8656 13.0448 10.3154 13.0518C9.72521 13.0607 9.1729 12.8256 8.75488 12.4619C8.60919 12.3326 8.47534 12.1964 8.34473 11.9844C8.24033 11.8151 8.20838 11.6123 8.25879 11.4199C8.30914 11.2277 8.43765 11.0608 8.61328 10.958C8.78908 10.8552 8.99809 10.8255 9.19043 10.876C9.38254 10.9264 9.5434 11.0528 9.63965 11.2266C9.64562 11.2451 9.69357 11.3113 9.74609 11.3613C9.90784 11.5189 10.1208 11.6156 10.3154 11.6221C10.9766 11.6287 11.3092 11.3685 11.3438 10.7285C11.3532 10.317 11.1904 10.0646 10.79 9.9209C10.4666 9.81041 10.0323 9.76819 9.60059 9.87305C9.51249 9.89429 9.42522 9.92273 9.33887 9.95605C9.21599 10.024 9.07581 10.0553 8.93457 10.042C8.75095 10.0245 8.58077 9.9353 8.46191 9.79297C8.34322 9.65067 8.28521 9.46694 8.30078 9.2832C8.30733 9.20608 8.31377 9.12888 8.32031 9.05176C8.37322 8.42857 8.42561 7.80483 8.47852 7.18164C8.50994 6.81171 8.82895 6.53014 9.2002 6.52637C9.97233 6.51852 10.7445 6.5098 11.5166 6.50195C11.5943 6.50116 11.6723 6.50079 11.75 6.5Z", fillRule: "evenodd", clipRule: "evenodd" }, { d: "M6.74805 6.5C7.16209 6.50019 7.49803 6.83592 7.49805 7.25V8C7.49804 8.12212 7.46818 8.24262 7.41113 8.35059L5.16309 12.6006C4.96945 12.9667 4.51555 13.1067 4.14941 12.9131C3.7833 12.7194 3.64334 12.2656 3.83691 11.8994L5.89941 8H3.75C3.33579 8 3.00001 7.6642 3 7.25C3.00002 6.8358 3.3358 6.5 3.75 6.5H6.74805Z", fillRule: "evenodd", clipRule: "evenodd" }, { d: "M7.5 3C7.77614 3 8 3.22386 8 3.5V4C8 4.27614 7.77614 4.5 7.5 4.5H3.5C3.22386 4.5 3 4.27614 3 4V3.5C3 3.22386 3.22386 3 3.5 3H7.5Z", fillRule: "evenodd", clipRule: "evenodd" }, { d: "M14 0C15.1046 0 16 0.895431 16 2V14C16 15.1046 15.1046 16 14 16H2C0.895431 16 0 15.1046 0 14V2C0 0.895431 0.895431 0 2 0H14ZM2 1.5C1.72386 1.5 1.5 1.72386 1.5 2V14C1.5 14.2761 1.72386 14.5 2 14.5H14C14.2761 14.5 14.5 14.2761 14.5 14V2C14.5 1.72386 14.2761 1.5 14 1.5H2Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
814
818
|
check: [{ d: "M14.6643 3.25271C15.0772 3.6197 15.1143 4.25178 14.7471 4.6645L6.74009 13.6645C6.55686 13.8705 6.29671 13.9917 6.02108 13.9996C5.74544 14.0075 5.47877 13.9014 5.28403 13.7063L1.29218 9.70669C0.901926 9.31568 0.902708 8.68252 1.29393 8.29248C1.68514 7.90243 2.31865 7.90322 2.7089 8.29422L5.95055 11.5421L13.2517 3.33552C13.6189 2.9228 14.2514 2.88573 14.6643 3.25271Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
815
819
|
checkBold: [{ d: "M12.6431 4.23195C13.0673 4.58562 13.1245 5.2162 12.7708 5.64039L7.76806 11.6404C7.58798 11.8564 7.32529 11.9865 7.04437 11.999C6.76344 12.0115 6.49025 11.9051 6.29174 11.7059L3.30204 8.70638C2.91216 8.31521 2.91321 7.68205 3.30437 7.29217C3.69554 6.90229 4.32871 6.90333 4.71859 7.2945L6.93418 9.51741L11.2347 4.3596C11.5884 3.93542 12.219 3.87827 12.6431 4.23195Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
816
820
|
checkCircle: [{ d: "M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM11.8433 6.2127C12.0967 5.88502 12.0365 5.41398 11.7088 5.1606C11.3811 4.90722 10.9101 4.96744 10.6567 5.29512L6.95638 10.0804L5.30747 8.24827C5.03037 7.94039 4.55616 7.91544 4.24827 8.19253C3.94039 8.46963 3.91544 8.94384 4.19253 9.25173L6.44254 11.7517C6.59131 11.917 6.80575 12.0078 7.02798 11.9995C7.2502 11.9912 7.45729 11.8847 7.59332 11.7088L11.8433 6.2127Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
@@ -1106,18 +1110,18 @@ const $5 = {
|
|
|
1106
1110
|
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" }],
|
|
1107
1111
|
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" }]
|
|
1108
1112
|
};
|
|
1109
|
-
var
|
|
1113
|
+
var N4 = Object.defineProperty, i4 = (l, e, t, i) => {
|
|
1110
1114
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1111
1115
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1112
|
-
return o &&
|
|
1116
|
+
return o && N4(e, t, o), o;
|
|
1113
1117
|
};
|
|
1114
|
-
const
|
|
1118
|
+
const z2 = class z2 extends h {
|
|
1115
1119
|
constructor() {
|
|
1116
1120
|
super(...arguments), this.name = "", this.size = 16;
|
|
1117
1121
|
}
|
|
1118
1122
|
render() {
|
|
1119
|
-
const e = this.name &&
|
|
1120
|
-
return
|
|
1123
|
+
const e = this.name && P5[this.name] ? P5[this.name] : [], t = !this.name;
|
|
1124
|
+
return q1`
|
|
1121
1125
|
<svg
|
|
1122
1126
|
class=${t ? "icon--hidden" : ""}
|
|
1123
1127
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1127,7 +1131,7 @@ const k2 = class k2 extends h {
|
|
|
1127
1131
|
viewBox="0 0 16 16"
|
|
1128
1132
|
>
|
|
1129
1133
|
${e.map(
|
|
1130
|
-
(i) =>
|
|
1134
|
+
(i) => q1`
|
|
1131
1135
|
<path
|
|
1132
1136
|
fill="currentColor"
|
|
1133
1137
|
d="${i.d}"
|
|
@@ -1139,24 +1143,24 @@ const k2 = class k2 extends h {
|
|
|
1139
1143
|
`;
|
|
1140
1144
|
}
|
|
1141
1145
|
};
|
|
1142
|
-
|
|
1146
|
+
z2.styles = v`
|
|
1143
1147
|
:host { display: block; line-height: 0; font-family: var(--font-sans); }
|
|
1144
1148
|
.icon--hidden { display: none; }
|
|
1145
1149
|
`;
|
|
1146
|
-
let
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
],
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
],
|
|
1153
|
-
customElements.get("anduin-icon") || customElements.define("anduin-icon",
|
|
1154
|
-
var
|
|
1150
|
+
let w1 = z2;
|
|
1151
|
+
i4([
|
|
1152
|
+
a()
|
|
1153
|
+
], w1.prototype, "name");
|
|
1154
|
+
i4([
|
|
1155
|
+
a({ type: Number })
|
|
1156
|
+
], w1.prototype, "size");
|
|
1157
|
+
customElements.get("anduin-icon") || customElements.define("anduin-icon", w1);
|
|
1158
|
+
var j4 = Object.defineProperty, U4 = (l, e, t, i) => {
|
|
1155
1159
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1156
1160
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1157
|
-
return o &&
|
|
1161
|
+
return o && j4(e, t, o), o;
|
|
1158
1162
|
};
|
|
1159
|
-
const
|
|
1163
|
+
const l4 = v`
|
|
1160
1164
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1161
1165
|
.badge {
|
|
1162
1166
|
border-radius: 9999px;
|
|
@@ -1183,7 +1187,7 @@ const K5 = g`
|
|
|
1183
1187
|
.badge--bold-warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1184
1188
|
.badge--hidden { display: none; }
|
|
1185
1189
|
`;
|
|
1186
|
-
function
|
|
1190
|
+
function r4(l) {
|
|
1187
1191
|
return {
|
|
1188
1192
|
gray: "badge--light-gray",
|
|
1189
1193
|
primary: "badge--light-primary",
|
|
@@ -1197,27 +1201,27 @@ function J5(l) {
|
|
|
1197
1201
|
boldDanger: "badge--bold-danger"
|
|
1198
1202
|
}[l || "gray"] || "badge--light-gray";
|
|
1199
1203
|
}
|
|
1200
|
-
const
|
|
1204
|
+
const B2 = class B2 extends h {
|
|
1201
1205
|
constructor() {
|
|
1202
1206
|
super(...arguments), this.variant = "gray";
|
|
1203
1207
|
}
|
|
1204
1208
|
render() {
|
|
1205
|
-
const e =
|
|
1209
|
+
const e = r4(this.variant);
|
|
1206
1210
|
return s`<div class="badge ${e}" part="badge"><slot></slot></div>`;
|
|
1207
1211
|
}
|
|
1208
1212
|
};
|
|
1209
|
-
|
|
1210
|
-
let
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
],
|
|
1214
|
-
customElements.get("anduin-badge") || customElements.define("anduin-badge",
|
|
1215
|
-
var
|
|
1213
|
+
B2.styles = [l4];
|
|
1214
|
+
let G1 = B2;
|
|
1215
|
+
U4([
|
|
1216
|
+
a()
|
|
1217
|
+
], G1.prototype, "variant");
|
|
1218
|
+
customElements.get("anduin-badge") || customElements.define("anduin-badge", G1);
|
|
1219
|
+
var q4 = Object.defineProperty, n4 = (l, e, t, i) => {
|
|
1216
1220
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1217
1221
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1218
|
-
return o &&
|
|
1222
|
+
return o && q4(e, t, o), o;
|
|
1219
1223
|
};
|
|
1220
|
-
const
|
|
1224
|
+
const S2 = class S2 extends h {
|
|
1221
1225
|
constructor() {
|
|
1222
1226
|
super(...arguments), this.variant = "gray", this.count = 0;
|
|
1223
1227
|
}
|
|
@@ -1225,7 +1229,7 @@ const E2 = class E2 extends h {
|
|
|
1225
1229
|
return e > 99 ? "99+" : e.toString();
|
|
1226
1230
|
}
|
|
1227
1231
|
render() {
|
|
1228
|
-
const e =
|
|
1232
|
+
const e = r4(this.variant), t = this.count === 0, i = this.count > 0 && this.count < 10, o = [
|
|
1229
1233
|
"badge",
|
|
1230
1234
|
e,
|
|
1231
1235
|
t ? "badge--hidden" : "",
|
|
@@ -1234,24 +1238,24 @@ const E2 = class E2 extends h {
|
|
|
1234
1238
|
return s`<div class="${o}" part="badge">${this.formatCount(this.count)}</div>`;
|
|
1235
1239
|
}
|
|
1236
1240
|
};
|
|
1237
|
-
|
|
1238
|
-
let
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
],
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
],
|
|
1245
|
-
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count",
|
|
1246
|
-
var
|
|
1241
|
+
S2.styles = [l4];
|
|
1242
|
+
let R1 = S2;
|
|
1243
|
+
n4([
|
|
1244
|
+
a()
|
|
1245
|
+
], R1.prototype, "variant");
|
|
1246
|
+
n4([
|
|
1247
|
+
a({ type: Number })
|
|
1248
|
+
], R1.prototype, "count");
|
|
1249
|
+
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", R1);
|
|
1250
|
+
var G4 = Object.defineProperty, _ = (l, e, t, i) => {
|
|
1247
1251
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1248
1252
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1249
|
-
return o &&
|
|
1253
|
+
return o && G4(e, t, o), o;
|
|
1250
1254
|
};
|
|
1251
|
-
function
|
|
1255
|
+
function W4(l) {
|
|
1252
1256
|
return l.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1253
1257
|
}
|
|
1254
|
-
const
|
|
1258
|
+
const P2 = class P2 extends h {
|
|
1255
1259
|
constructor() {
|
|
1256
1260
|
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 = "";
|
|
1257
1261
|
}
|
|
@@ -1268,7 +1272,7 @@ const A2 = class A2 extends h {
|
|
|
1268
1272
|
return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
|
|
1269
1273
|
}
|
|
1270
1274
|
getSizeKebab() {
|
|
1271
|
-
return
|
|
1275
|
+
return W4(this.size);
|
|
1272
1276
|
}
|
|
1273
1277
|
iconSize() {
|
|
1274
1278
|
return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
|
|
@@ -1312,7 +1316,7 @@ const A2 = class A2 extends h {
|
|
|
1312
1316
|
`;
|
|
1313
1317
|
}
|
|
1314
1318
|
};
|
|
1315
|
-
|
|
1319
|
+
P2.styles = v`
|
|
1316
1320
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1317
1321
|
:host([full-width]) { display: block; width: 100%; }
|
|
1318
1322
|
.button {
|
|
@@ -1425,59 +1429,59 @@ A2.styles = g`
|
|
|
1425
1429
|
.button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
|
|
1426
1430
|
.button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
|
|
1427
1431
|
`;
|
|
1428
|
-
let
|
|
1432
|
+
let m = P2;
|
|
1429
1433
|
_([
|
|
1430
1434
|
M()
|
|
1431
|
-
],
|
|
1435
|
+
], m.prototype, "iconOnly");
|
|
1432
1436
|
_([
|
|
1433
|
-
|
|
1434
|
-
],
|
|
1437
|
+
a({ converter: (l) => l || "filled" })
|
|
1438
|
+
], m.prototype, "appearance");
|
|
1435
1439
|
_([
|
|
1436
|
-
|
|
1437
|
-
],
|
|
1440
|
+
a()
|
|
1441
|
+
], m.prototype, "variant");
|
|
1438
1442
|
_([
|
|
1439
|
-
|
|
1440
|
-
],
|
|
1443
|
+
a()
|
|
1444
|
+
], m.prototype, "size");
|
|
1441
1445
|
_([
|
|
1442
|
-
|
|
1443
|
-
],
|
|
1446
|
+
a({ type: Boolean })
|
|
1447
|
+
], m.prototype, "disabled");
|
|
1444
1448
|
_([
|
|
1445
|
-
|
|
1446
|
-
],
|
|
1449
|
+
a({ type: Boolean })
|
|
1450
|
+
], m.prototype, "loading");
|
|
1447
1451
|
_([
|
|
1448
|
-
|
|
1449
|
-
],
|
|
1452
|
+
a({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
1453
|
+
], m.prototype, "fullWidth");
|
|
1450
1454
|
_([
|
|
1451
|
-
|
|
1452
|
-
],
|
|
1455
|
+
a({ type: Boolean })
|
|
1456
|
+
], m.prototype, "pill");
|
|
1453
1457
|
_([
|
|
1454
|
-
|
|
1455
|
-
],
|
|
1458
|
+
a({ type: Boolean })
|
|
1459
|
+
], m.prototype, "selected");
|
|
1456
1460
|
_([
|
|
1457
|
-
|
|
1458
|
-
],
|
|
1461
|
+
a()
|
|
1462
|
+
], m.prototype, "href");
|
|
1459
1463
|
_([
|
|
1460
|
-
|
|
1461
|
-
],
|
|
1464
|
+
a({ type: Boolean, attribute: "open-new-tab" })
|
|
1465
|
+
], m.prototype, "openNewTab");
|
|
1462
1466
|
_([
|
|
1463
|
-
|
|
1464
|
-
],
|
|
1467
|
+
a()
|
|
1468
|
+
], m.prototype, "download");
|
|
1465
1469
|
_([
|
|
1466
|
-
|
|
1467
|
-
],
|
|
1470
|
+
a({ attribute: "start-icon" })
|
|
1471
|
+
], m.prototype, "startIcon");
|
|
1468
1472
|
_([
|
|
1469
|
-
|
|
1470
|
-
],
|
|
1473
|
+
a({ attribute: "end-icon" })
|
|
1474
|
+
], m.prototype, "endIcon");
|
|
1471
1475
|
_([
|
|
1472
|
-
|
|
1473
|
-
],
|
|
1474
|
-
customElements.get("anduin-button") || customElements.define("anduin-button",
|
|
1475
|
-
var
|
|
1476
|
+
a()
|
|
1477
|
+
], m.prototype, "label");
|
|
1478
|
+
customElements.get("anduin-button") || customElements.define("anduin-button", m);
|
|
1479
|
+
var Y4 = Object.defineProperty, X4 = (l, e, t, i) => {
|
|
1476
1480
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1477
1481
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1478
|
-
return o &&
|
|
1482
|
+
return o && Y4(e, t, o), o;
|
|
1479
1483
|
};
|
|
1480
|
-
const
|
|
1484
|
+
const F2 = class F2 extends h {
|
|
1481
1485
|
constructor() {
|
|
1482
1486
|
super(...arguments), this.variant = "gray";
|
|
1483
1487
|
}
|
|
@@ -1490,7 +1494,7 @@ const B2 = class B2 extends h {
|
|
|
1490
1494
|
`;
|
|
1491
1495
|
}
|
|
1492
1496
|
};
|
|
1493
|
-
|
|
1497
|
+
F2.styles = v`
|
|
1494
1498
|
:host { display: block; font-family: var(--font-sans); }
|
|
1495
1499
|
.callout {
|
|
1496
1500
|
display: flex; align-items: center; justify-content: center;
|
|
@@ -1502,17 +1506,17 @@ B2.styles = g`
|
|
|
1502
1506
|
.callout--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1503
1507
|
.callout--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1504
1508
|
`;
|
|
1505
|
-
let
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
],
|
|
1509
|
-
customElements.get("anduin-callout") || customElements.define("anduin-callout",
|
|
1510
|
-
var
|
|
1509
|
+
let W1 = F2;
|
|
1510
|
+
X4([
|
|
1511
|
+
a()
|
|
1512
|
+
], W1.prototype, "variant");
|
|
1513
|
+
customElements.get("anduin-callout") || customElements.define("anduin-callout", W1);
|
|
1514
|
+
var K4 = Object.defineProperty, a4 = (l, e, t, i) => {
|
|
1511
1515
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1512
1516
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1513
|
-
return o &&
|
|
1517
|
+
return o && K4(e, t, o), o;
|
|
1514
1518
|
};
|
|
1515
|
-
const
|
|
1519
|
+
const O2 = class O2 extends h {
|
|
1516
1520
|
constructor() {
|
|
1517
1521
|
super(...arguments), this.direction = "horizontal", this.hasContent = !1;
|
|
1518
1522
|
}
|
|
@@ -1543,7 +1547,7 @@ const z2 = class z2 extends h {
|
|
|
1543
1547
|
</div>` : s`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
|
|
1544
1548
|
}
|
|
1545
1549
|
};
|
|
1546
|
-
|
|
1550
|
+
O2.styles = v`
|
|
1547
1551
|
:host { display: block; width: 100%; font-family: var(--font-sans); }
|
|
1548
1552
|
:host([direction="vertical"]) { width: auto; height: 100%; }
|
|
1549
1553
|
.divider--horizontal { margin-top: 8px; margin-bottom: 8px; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; text-align: center; }
|
|
@@ -1553,20 +1557,20 @@ z2.styles = g`
|
|
|
1553
1557
|
.divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
|
|
1554
1558
|
.divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
|
|
1555
1559
|
`;
|
|
1556
|
-
let
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
],
|
|
1560
|
-
|
|
1560
|
+
let k1 = O2;
|
|
1561
|
+
a4([
|
|
1562
|
+
a({ reflect: !0 })
|
|
1563
|
+
], k1.prototype, "direction");
|
|
1564
|
+
a4([
|
|
1561
1565
|
M()
|
|
1562
|
-
],
|
|
1563
|
-
customElements.get("anduin-divider") || customElements.define("anduin-divider",
|
|
1564
|
-
var
|
|
1566
|
+
], k1.prototype, "hasContent");
|
|
1567
|
+
customElements.get("anduin-divider") || customElements.define("anduin-divider", k1);
|
|
1568
|
+
var J4 = Object.defineProperty, Q4 = (l, e, t, i) => {
|
|
1565
1569
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1566
1570
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1567
|
-
return o &&
|
|
1571
|
+
return o && J4(e, t, o), o;
|
|
1568
1572
|
};
|
|
1569
|
-
const
|
|
1573
|
+
const D2 = class D2 extends h {
|
|
1570
1574
|
constructor() {
|
|
1571
1575
|
super(...arguments), this.variant = "gray";
|
|
1572
1576
|
}
|
|
@@ -1574,7 +1578,7 @@ const S2 = class S2 extends h {
|
|
|
1574
1578
|
return s`<div class="dot dot--${this.variant}" part="dot"></div>`;
|
|
1575
1579
|
}
|
|
1576
1580
|
};
|
|
1577
|
-
|
|
1581
|
+
D2.styles = v`
|
|
1578
1582
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1579
1583
|
.dot { width: 10px; height: 10px; border-radius: 9999px; }
|
|
1580
1584
|
.dot--gray { background-color: var(--color-semantic-gray-6); color: var(--color-semantic-gray-0); }
|
|
@@ -1583,17 +1587,17 @@ S2.styles = g`
|
|
|
1583
1587
|
.dot--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1584
1588
|
.dot--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1585
1589
|
`;
|
|
1586
|
-
let
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
],
|
|
1590
|
-
customElements.get("anduin-dot") || customElements.define("anduin-dot",
|
|
1591
|
-
var
|
|
1590
|
+
let Y1 = D2;
|
|
1591
|
+
Q4([
|
|
1592
|
+
a()
|
|
1593
|
+
], Y1.prototype, "variant");
|
|
1594
|
+
customElements.get("anduin-dot") || customElements.define("anduin-dot", Y1);
|
|
1595
|
+
var e3 = Object.defineProperty, C4 = (l, e, t, i) => {
|
|
1592
1596
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1593
1597
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1594
|
-
return o &&
|
|
1598
|
+
return o && e3(e, t, o), o;
|
|
1595
1599
|
};
|
|
1596
|
-
const
|
|
1600
|
+
const I2 = class I2 extends h {
|
|
1597
1601
|
constructor() {
|
|
1598
1602
|
super(...arguments), this.percent = "", this.height = "medium";
|
|
1599
1603
|
}
|
|
@@ -1609,7 +1613,7 @@ const P2 = class P2 extends h {
|
|
|
1609
1613
|
`;
|
|
1610
1614
|
}
|
|
1611
1615
|
};
|
|
1612
|
-
|
|
1616
|
+
I2.styles = v`
|
|
1613
1617
|
:host { display: block; font-family: var(--font-sans); }
|
|
1614
1618
|
.progress { overflow-x: hidden; position: relative; border-radius: 9999px; }
|
|
1615
1619
|
.progress__fill {
|
|
@@ -1625,20 +1629,20 @@ P2.styles = g`
|
|
|
1625
1629
|
to { transform: translateX(330%); }
|
|
1626
1630
|
}
|
|
1627
1631
|
`;
|
|
1628
|
-
let
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
],
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
],
|
|
1635
|
-
customElements.get("anduin-progress") || customElements.define("anduin-progress",
|
|
1636
|
-
var
|
|
1632
|
+
let $1 = I2;
|
|
1633
|
+
C4([
|
|
1634
|
+
a()
|
|
1635
|
+
], $1.prototype, "percent");
|
|
1636
|
+
C4([
|
|
1637
|
+
a()
|
|
1638
|
+
], $1.prototype, "height");
|
|
1639
|
+
customElements.get("anduin-progress") || customElements.define("anduin-progress", $1);
|
|
1640
|
+
var t3 = Object.defineProperty, f1 = (l, e, t, i) => {
|
|
1637
1641
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1638
1642
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1639
|
-
return o &&
|
|
1643
|
+
return o && t3(e, t, o), o;
|
|
1640
1644
|
};
|
|
1641
|
-
const
|
|
1645
|
+
const T2 = class T2 extends h {
|
|
1642
1646
|
constructor() {
|
|
1643
1647
|
super(...arguments), this.effect = "pulse", this.shape = "rectangle", this.height = "", this.width = "100%", this.duration = 1500, this.fontSize = "";
|
|
1644
1648
|
}
|
|
@@ -1657,7 +1661,7 @@ const F2 = class F2 extends h {
|
|
|
1657
1661
|
`;
|
|
1658
1662
|
}
|
|
1659
1663
|
};
|
|
1660
|
-
|
|
1664
|
+
T2.styles = v`
|
|
1661
1665
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1662
1666
|
.skeleton { background-color: var(--color-gray-3); position: relative; overflow: hidden; }
|
|
1663
1667
|
.skeleton--circle { border-radius: 9999px; }
|
|
@@ -1676,32 +1680,32 @@ F2.styles = g`
|
|
|
1676
1680
|
0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
|
|
1677
1681
|
}
|
|
1678
1682
|
`;
|
|
1679
|
-
let
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
],
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
],
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
],
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
],
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
],
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
],
|
|
1698
|
-
customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton",
|
|
1699
|
-
var
|
|
1683
|
+
let D = T2;
|
|
1684
|
+
f1([
|
|
1685
|
+
a()
|
|
1686
|
+
], D.prototype, "effect");
|
|
1687
|
+
f1([
|
|
1688
|
+
a()
|
|
1689
|
+
], D.prototype, "shape");
|
|
1690
|
+
f1([
|
|
1691
|
+
a()
|
|
1692
|
+
], D.prototype, "height");
|
|
1693
|
+
f1([
|
|
1694
|
+
a()
|
|
1695
|
+
], D.prototype, "width");
|
|
1696
|
+
f1([
|
|
1697
|
+
a({ type: Number })
|
|
1698
|
+
], D.prototype, "duration");
|
|
1699
|
+
f1([
|
|
1700
|
+
a({ attribute: "font-size" })
|
|
1701
|
+
], D.prototype, "fontSize");
|
|
1702
|
+
customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", D);
|
|
1703
|
+
var o3 = Object.defineProperty, i3 = (l, e, t, i) => {
|
|
1700
1704
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1701
1705
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1702
|
-
return o &&
|
|
1706
|
+
return o && o3(e, t, o), o;
|
|
1703
1707
|
};
|
|
1704
|
-
const
|
|
1708
|
+
const N2 = class N2 extends h {
|
|
1705
1709
|
constructor() {
|
|
1706
1710
|
super(...arguments), this.height = "256px";
|
|
1707
1711
|
}
|
|
@@ -1716,30 +1720,30 @@ const O2 = class O2 extends h {
|
|
|
1716
1720
|
`;
|
|
1717
1721
|
}
|
|
1718
1722
|
};
|
|
1719
|
-
|
|
1723
|
+
N2.styles = v`
|
|
1720
1724
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1721
1725
|
.loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
|
|
1722
1726
|
.loading-state__indicator { color: var(--color-primary-4); }
|
|
1723
1727
|
.loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-gray-6); }
|
|
1724
1728
|
`;
|
|
1725
|
-
let
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
],
|
|
1729
|
-
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state",
|
|
1730
|
-
var
|
|
1729
|
+
let X1 = N2;
|
|
1730
|
+
i3([
|
|
1731
|
+
a()
|
|
1732
|
+
], X1.prototype, "height");
|
|
1733
|
+
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", X1);
|
|
1734
|
+
var l3 = Object.defineProperty, R2 = (l, e, t, i) => {
|
|
1731
1735
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1732
1736
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1733
|
-
return o &&
|
|
1737
|
+
return o && l3(e, t, o), o;
|
|
1734
1738
|
};
|
|
1735
|
-
const
|
|
1739
|
+
const s4 = "anduin-field:label-click", H1 = "anduin-field:label-click-coordinated", j2 = class j2 extends h {
|
|
1736
1740
|
constructor() {
|
|
1737
1741
|
super(...arguments), this.orientation = "vertical";
|
|
1738
1742
|
}
|
|
1739
1743
|
connectedCallback() {
|
|
1740
|
-
super.connectedCallback(), this.addEventListener(
|
|
1744
|
+
super.connectedCallback(), this.addEventListener(s4, (e) => {
|
|
1741
1745
|
const t = e;
|
|
1742
|
-
this.dispatchEvent(new CustomEvent(
|
|
1746
|
+
this.dispatchEvent(new CustomEvent(H1, {
|
|
1743
1747
|
detail: t.detail,
|
|
1744
1748
|
bubbles: !1,
|
|
1745
1749
|
composed: !1
|
|
@@ -1755,17 +1759,17 @@ const o4 = "anduin-field:label-click", v1 = "anduin-field:label-click-coordinate
|
|
|
1755
1759
|
`;
|
|
1756
1760
|
}
|
|
1757
1761
|
};
|
|
1758
|
-
|
|
1762
|
+
j2.styles = v`
|
|
1759
1763
|
:host { display: block; font-family: var(--font-sans); }
|
|
1760
1764
|
.field { display: flex; flex-wrap: wrap; }
|
|
1761
1765
|
.field--vertical { flex-direction: column; row-gap: 4px; }
|
|
1762
1766
|
.field--horizontal { column-gap: 4px; }
|
|
1763
1767
|
`;
|
|
1764
|
-
let
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
],
|
|
1768
|
-
const
|
|
1768
|
+
let K1 = j2;
|
|
1769
|
+
R2([
|
|
1770
|
+
a()
|
|
1771
|
+
], K1.prototype, "orientation");
|
|
1772
|
+
const U2 = class U2 extends h {
|
|
1769
1773
|
constructor() {
|
|
1770
1774
|
super(...arguments), this.htmlfor = "", this.required = !1;
|
|
1771
1775
|
}
|
|
@@ -1773,7 +1777,7 @@ const I2 = class I2 extends h {
|
|
|
1773
1777
|
super.connectedCallback();
|
|
1774
1778
|
}
|
|
1775
1779
|
onLabelClick(e) {
|
|
1776
|
-
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(
|
|
1780
|
+
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(s4, {
|
|
1777
1781
|
detail: this.htmlfor,
|
|
1778
1782
|
bubbles: !0,
|
|
1779
1783
|
composed: !0
|
|
@@ -1792,72 +1796,72 @@ const I2 = class I2 extends h {
|
|
|
1792
1796
|
`;
|
|
1793
1797
|
}
|
|
1794
1798
|
};
|
|
1795
|
-
|
|
1799
|
+
U2.styles = v`
|
|
1796
1800
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1797
1801
|
.field-label { font-size: 13px; line-height: 20px; font-weight: 600; cursor: default; color: var(--color-gray-8, #101828); }
|
|
1798
1802
|
.field-label__required { color: var(--color-danger-5); }
|
|
1799
1803
|
`;
|
|
1800
|
-
let
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
],
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
],
|
|
1807
|
-
const
|
|
1804
|
+
let E1 = U2;
|
|
1805
|
+
R2([
|
|
1806
|
+
a()
|
|
1807
|
+
], E1.prototype, "htmlfor");
|
|
1808
|
+
R2([
|
|
1809
|
+
a({ type: Boolean })
|
|
1810
|
+
], E1.prototype, "required");
|
|
1811
|
+
const q2 = class q2 extends h {
|
|
1808
1812
|
render() {
|
|
1809
1813
|
return s`<div class="field-description" part="description"><slot></slot></div>`;
|
|
1810
1814
|
}
|
|
1811
1815
|
};
|
|
1812
|
-
|
|
1816
|
+
q2.styles = v`
|
|
1813
1817
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1814
1818
|
.field-description { display: block; line-height: 16px; font-size: 11px; color: var(--color-gray-7); }
|
|
1815
1819
|
`;
|
|
1816
|
-
let
|
|
1817
|
-
const
|
|
1820
|
+
let s2 = q2;
|
|
1821
|
+
const G2 = class G2 extends h {
|
|
1818
1822
|
render() {
|
|
1819
1823
|
return s`<div class="field-error" part="error"><slot></slot></div>`;
|
|
1820
1824
|
}
|
|
1821
1825
|
};
|
|
1822
|
-
|
|
1826
|
+
G2.styles = v`
|
|
1823
1827
|
:host { display: block; font-family: var(--font-sans); }
|
|
1824
1828
|
.field-error { color: var(--color-danger-4); }
|
|
1825
1829
|
`;
|
|
1826
|
-
let
|
|
1827
|
-
const
|
|
1830
|
+
let d2 = G2;
|
|
1831
|
+
const W2 = class W2 extends h {
|
|
1828
1832
|
render() {
|
|
1829
1833
|
return s`<div class="field-group" part="group"><slot></slot></div>`;
|
|
1830
1834
|
}
|
|
1831
1835
|
};
|
|
1832
|
-
|
|
1836
|
+
W2.styles = v`
|
|
1833
1837
|
:host { display: block; font-family: var(--font-sans); }
|
|
1834
1838
|
.field-group { display: flex; flex-direction: column; row-gap: 24px; }
|
|
1835
1839
|
`;
|
|
1836
|
-
let
|
|
1837
|
-
customElements.get("anduin-field") || customElements.define("anduin-field",
|
|
1838
|
-
customElements.get("anduin-field-label") || customElements.define("anduin-field-label",
|
|
1839
|
-
customElements.get("anduin-field-description") || customElements.define("anduin-field-description",
|
|
1840
|
-
customElements.get("anduin-field-error") || customElements.define("anduin-field-error",
|
|
1841
|
-
customElements.get("anduin-field-group") || customElements.define("anduin-field-group",
|
|
1842
|
-
var
|
|
1840
|
+
let c2 = W2;
|
|
1841
|
+
customElements.get("anduin-field") || customElements.define("anduin-field", K1);
|
|
1842
|
+
customElements.get("anduin-field-label") || customElements.define("anduin-field-label", E1);
|
|
1843
|
+
customElements.get("anduin-field-description") || customElements.define("anduin-field-description", s2);
|
|
1844
|
+
customElements.get("anduin-field-error") || customElements.define("anduin-field-error", d2);
|
|
1845
|
+
customElements.get("anduin-field-group") || customElements.define("anduin-field-group", c2);
|
|
1846
|
+
var r3 = Object.defineProperty, D1 = (l, e, t, i) => {
|
|
1843
1847
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1844
1848
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1845
|
-
return o &&
|
|
1849
|
+
return o && r3(e, t, o), o;
|
|
1846
1850
|
};
|
|
1847
|
-
const
|
|
1851
|
+
const n3 = "anduin-checkbox:change", Y2 = class Y2 extends h {
|
|
1848
1852
|
constructor() {
|
|
1849
1853
|
super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
|
|
1850
1854
|
}
|
|
1851
1855
|
connectedCallback() {
|
|
1852
1856
|
super.connectedCallback();
|
|
1853
1857
|
const e = this.closest("anduin-field");
|
|
1854
|
-
e && e.addEventListener(
|
|
1858
|
+
e && e.addEventListener(H1, (t) => {
|
|
1855
1859
|
const i = t;
|
|
1856
1860
|
this.inputid && this.inputid === i.detail && !this.disabled && !this.readonly && this.toggle();
|
|
1857
1861
|
});
|
|
1858
1862
|
}
|
|
1859
1863
|
toggle() {
|
|
1860
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
1864
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(n3, {
|
|
1861
1865
|
detail: this.checked,
|
|
1862
1866
|
bubbles: !0,
|
|
1863
1867
|
composed: !0
|
|
@@ -1898,7 +1902,7 @@ const Q4 = "anduin-checkbox:change", U2 = class U2 extends h {
|
|
|
1898
1902
|
`;
|
|
1899
1903
|
}
|
|
1900
1904
|
};
|
|
1901
|
-
|
|
1905
|
+
Y2.styles = v`
|
|
1902
1906
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
1903
1907
|
|
|
1904
1908
|
label {
|
|
@@ -1936,36 +1940,36 @@ U2.styles = g`
|
|
|
1936
1940
|
.checkbox__icon { position: absolute; inset: 0; pointer-events: none; color: var(--color-gray-4); display: flex; align-items: center; justify-content: center; }
|
|
1937
1941
|
.checkbox__icon--visible { color: var(--color-gray-0); }
|
|
1938
1942
|
`;
|
|
1939
|
-
let
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
],
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
],
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
],
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
],
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
],
|
|
1955
|
-
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox",
|
|
1956
|
-
var
|
|
1943
|
+
let W = Y2;
|
|
1944
|
+
D1([
|
|
1945
|
+
a({ type: Boolean })
|
|
1946
|
+
], W.prototype, "checked");
|
|
1947
|
+
D1([
|
|
1948
|
+
a({ type: Boolean })
|
|
1949
|
+
], W.prototype, "disabled");
|
|
1950
|
+
D1([
|
|
1951
|
+
a({ type: Boolean })
|
|
1952
|
+
], W.prototype, "indeterminate");
|
|
1953
|
+
D1([
|
|
1954
|
+
a({ type: Boolean })
|
|
1955
|
+
], W.prototype, "readonly");
|
|
1956
|
+
D1([
|
|
1957
|
+
a()
|
|
1958
|
+
], W.prototype, "inputid");
|
|
1959
|
+
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", W);
|
|
1960
|
+
var a3 = Object.defineProperty, z = (l, e, t, i) => {
|
|
1957
1961
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
1958
1962
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
1959
|
-
return o &&
|
|
1963
|
+
return o && a3(e, t, o), o;
|
|
1960
1964
|
};
|
|
1961
|
-
const
|
|
1965
|
+
const F5 = "anduin-input:change", C3 = "anduin-input:clear", X2 = class X2 extends h {
|
|
1962
1966
|
constructor() {
|
|
1963
1967
|
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;
|
|
1964
1968
|
}
|
|
1965
1969
|
connectedCallback() {
|
|
1966
1970
|
super.connectedCallback();
|
|
1967
1971
|
const e = this.closest("anduin-field");
|
|
1968
|
-
e && e.addEventListener(
|
|
1972
|
+
e && e.addEventListener(H1, (t) => {
|
|
1969
1973
|
var o;
|
|
1970
1974
|
const i = t;
|
|
1971
1975
|
this.inputid && this.inputid === i.detail && ((o = this.inputEl) == null || o.focus());
|
|
@@ -1975,7 +1979,7 @@ const E5 = "anduin-input:change", t3 = "anduin-input:clear", q2 = class q2 exten
|
|
|
1975
1979
|
this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
|
|
1976
1980
|
}
|
|
1977
1981
|
onInput() {
|
|
1978
|
-
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(
|
|
1982
|
+
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(F5, {
|
|
1979
1983
|
detail: this.value,
|
|
1980
1984
|
bubbles: !0,
|
|
1981
1985
|
composed: !0
|
|
@@ -1983,10 +1987,10 @@ const E5 = "anduin-input:change", t3 = "anduin-input:clear", q2 = class q2 exten
|
|
|
1983
1987
|
}
|
|
1984
1988
|
onClear() {
|
|
1985
1989
|
var e;
|
|
1986
|
-
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(
|
|
1990
|
+
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(F5, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(C3, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
|
|
1987
1991
|
}
|
|
1988
1992
|
render() {
|
|
1989
|
-
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",
|
|
1993
|
+
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", C = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
|
|
1990
1994
|
return s`
|
|
1991
1995
|
<div class="input-wrapper">
|
|
1992
1996
|
${i ? s`
|
|
@@ -2015,7 +2019,7 @@ const E5 = "anduin-input:change", t3 = "anduin-input:clear", q2 = class q2 exten
|
|
|
2015
2019
|
<span class="input__end">
|
|
2016
2020
|
${r ? s`
|
|
2017
2021
|
<button class="input__clear" type="button" @click=${this.onClear} aria-label="Clear">
|
|
2018
|
-
<anduin-icon name="cross" size=${
|
|
2022
|
+
<anduin-icon name="cross" size=${C}></anduin-icon>
|
|
2019
2023
|
</button>
|
|
2020
2024
|
` : c}
|
|
2021
2025
|
${this.endIcon ? s`
|
|
@@ -2027,7 +2031,7 @@ const E5 = "anduin-input:change", t3 = "anduin-input:clear", q2 = class q2 exten
|
|
|
2027
2031
|
`;
|
|
2028
2032
|
}
|
|
2029
2033
|
};
|
|
2030
|
-
|
|
2034
|
+
X2.styles = v`
|
|
2031
2035
|
:host { display: block; font-family: var(--font-sans); }
|
|
2032
2036
|
|
|
2033
2037
|
.input-wrapper { position: relative; display: flex; align-items: center; }
|
|
@@ -2081,54 +2085,54 @@ q2.styles = g`
|
|
|
2081
2085
|
}
|
|
2082
2086
|
.input__clear:hover { color: var(--color-gray-7); }
|
|
2083
2087
|
`;
|
|
2084
|
-
let w =
|
|
2085
|
-
|
|
2086
|
-
|
|
2088
|
+
let w = X2;
|
|
2089
|
+
z([
|
|
2090
|
+
a()
|
|
2087
2091
|
], w.prototype, "value");
|
|
2088
|
-
|
|
2089
|
-
|
|
2092
|
+
z([
|
|
2093
|
+
a()
|
|
2090
2094
|
], w.prototype, "size");
|
|
2091
|
-
|
|
2092
|
-
|
|
2095
|
+
z([
|
|
2096
|
+
a({ type: Boolean })
|
|
2093
2097
|
], w.prototype, "disabled");
|
|
2094
|
-
|
|
2095
|
-
|
|
2098
|
+
z([
|
|
2099
|
+
a({ type: Boolean })
|
|
2096
2100
|
], w.prototype, "readonly");
|
|
2097
|
-
|
|
2098
|
-
|
|
2101
|
+
z([
|
|
2102
|
+
a()
|
|
2099
2103
|
], w.prototype, "placeholder");
|
|
2100
|
-
|
|
2101
|
-
|
|
2104
|
+
z([
|
|
2105
|
+
a()
|
|
2102
2106
|
], w.prototype, "inputid");
|
|
2103
|
-
|
|
2104
|
-
|
|
2107
|
+
z([
|
|
2108
|
+
a()
|
|
2105
2109
|
], w.prototype, "status");
|
|
2106
|
-
|
|
2107
|
-
|
|
2110
|
+
z([
|
|
2111
|
+
a({ attribute: "start-icon" })
|
|
2108
2112
|
], w.prototype, "startIcon");
|
|
2109
|
-
|
|
2110
|
-
|
|
2113
|
+
z([
|
|
2114
|
+
a({ attribute: "end-icon" })
|
|
2111
2115
|
], w.prototype, "endIcon");
|
|
2112
|
-
|
|
2113
|
-
|
|
2116
|
+
z([
|
|
2117
|
+
a({ type: Boolean })
|
|
2114
2118
|
], w.prototype, "clearable");
|
|
2115
|
-
|
|
2116
|
-
|
|
2119
|
+
z([
|
|
2120
|
+
k("input")
|
|
2117
2121
|
], w.prototype, "inputEl");
|
|
2118
2122
|
customElements.get("anduin-input") || customElements.define("anduin-input", w);
|
|
2119
|
-
var
|
|
2123
|
+
var s3 = Object.defineProperty, X = (l, e, t, i) => {
|
|
2120
2124
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2121
2125
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2122
|
-
return o &&
|
|
2126
|
+
return o && s3(e, t, o), o;
|
|
2123
2127
|
};
|
|
2124
|
-
const
|
|
2128
|
+
const d3 = "anduin-textarea:change", K2 = class K2 extends h {
|
|
2125
2129
|
constructor() {
|
|
2126
2130
|
super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
|
|
2127
2131
|
}
|
|
2128
2132
|
connectedCallback() {
|
|
2129
2133
|
super.connectedCallback();
|
|
2130
2134
|
const e = this.closest("anduin-field");
|
|
2131
|
-
e && e.addEventListener(
|
|
2135
|
+
e && e.addEventListener(H1, (t) => {
|
|
2132
2136
|
var o;
|
|
2133
2137
|
const i = t;
|
|
2134
2138
|
this.inputid && this.inputid === i.detail && ((o = this.textareaEl) == null || o.focus());
|
|
@@ -2138,7 +2142,7 @@ const i3 = "anduin-textarea:change", W2 = class W2 extends h {
|
|
|
2138
2142
|
this.textareaEl && this.textareaEl.value !== this.value && (this.textareaEl.value = this.value);
|
|
2139
2143
|
}
|
|
2140
2144
|
onInput() {
|
|
2141
|
-
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(
|
|
2145
|
+
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(d3, {
|
|
2142
2146
|
detail: this.value,
|
|
2143
2147
|
bubbles: !0,
|
|
2144
2148
|
composed: !0
|
|
@@ -2163,7 +2167,7 @@ const i3 = "anduin-textarea:change", W2 = class W2 extends h {
|
|
|
2163
2167
|
`;
|
|
2164
2168
|
}
|
|
2165
2169
|
};
|
|
2166
|
-
|
|
2170
|
+
K2.styles = v`
|
|
2167
2171
|
:host { display: block; font-family: var(--font-sans); }
|
|
2168
2172
|
|
|
2169
2173
|
.textarea {
|
|
@@ -2180,46 +2184,46 @@ W2.styles = g`
|
|
|
2180
2184
|
.textarea--warning { border-color: var(--color-warning-4); }
|
|
2181
2185
|
.textarea--loading { border-color: var(--color-gray-4); }
|
|
2182
2186
|
`;
|
|
2183
|
-
let
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
],
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
],
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
],
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
],
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
],
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
],
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
],
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
],
|
|
2208
|
-
customElements.get("anduin-textarea") || customElements.define("anduin-textarea",
|
|
2209
|
-
var
|
|
2187
|
+
let E = K2;
|
|
2188
|
+
X([
|
|
2189
|
+
a()
|
|
2190
|
+
], E.prototype, "value");
|
|
2191
|
+
X([
|
|
2192
|
+
a({ type: Boolean })
|
|
2193
|
+
], E.prototype, "disabled");
|
|
2194
|
+
X([
|
|
2195
|
+
a({ type: Boolean })
|
|
2196
|
+
], E.prototype, "readonly");
|
|
2197
|
+
X([
|
|
2198
|
+
a()
|
|
2199
|
+
], E.prototype, "placeholder");
|
|
2200
|
+
X([
|
|
2201
|
+
a()
|
|
2202
|
+
], E.prototype, "inputid");
|
|
2203
|
+
X([
|
|
2204
|
+
a({ type: Number })
|
|
2205
|
+
], E.prototype, "rows");
|
|
2206
|
+
X([
|
|
2207
|
+
a()
|
|
2208
|
+
], E.prototype, "status");
|
|
2209
|
+
X([
|
|
2210
|
+
k("textarea")
|
|
2211
|
+
], E.prototype, "textareaEl");
|
|
2212
|
+
customElements.get("anduin-textarea") || customElements.define("anduin-textarea", E);
|
|
2213
|
+
var c3 = Object.defineProperty, $ = (l, e, t, i) => {
|
|
2210
2214
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2211
2215
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2212
|
-
return o &&
|
|
2216
|
+
return o && c3(e, t, o), o;
|
|
2213
2217
|
};
|
|
2214
|
-
const
|
|
2218
|
+
const d4 = "anduin-tab:trigger-click", e2 = "anduin-tab:value-changed", p3 = "anduin-tab:change", J2 = class J2 extends h {
|
|
2215
2219
|
constructor() {
|
|
2216
2220
|
super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
|
|
2217
2221
|
}
|
|
2218
2222
|
connectedCallback() {
|
|
2219
|
-
super.connectedCallback(), this.addEventListener(
|
|
2223
|
+
super.connectedCallback(), this.addEventListener(d4, (e) => {
|
|
2220
2224
|
e.stopPropagation();
|
|
2221
2225
|
const t = e;
|
|
2222
|
-
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(
|
|
2226
|
+
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(p3, { detail: t.detail, bubbles: !0, composed: !0 }));
|
|
2223
2227
|
}), requestAnimationFrame(() => {
|
|
2224
2228
|
const e = this.value || this.defaultValue;
|
|
2225
2229
|
e && (this.value || (this.value = e), this.broadcastValueChanged(e));
|
|
@@ -2229,36 +2233,36 @@ const i4 = "anduin-tab:trigger-click", K1 = "anduin-tab:value-changed", r3 = "an
|
|
|
2229
2233
|
e.has("value") && this.value && this.broadcastValueChanged(this.value);
|
|
2230
2234
|
}
|
|
2231
2235
|
broadcastValueChanged(e) {
|
|
2232
|
-
this.dispatchEvent(new CustomEvent(
|
|
2236
|
+
this.dispatchEvent(new CustomEvent(e2, { detail: e, bubbles: !1, composed: !1 }));
|
|
2233
2237
|
}
|
|
2234
2238
|
render() {
|
|
2235
2239
|
return s`<div class="tabs" part="tabs"><slot></slot></div>`;
|
|
2236
2240
|
}
|
|
2237
2241
|
};
|
|
2238
|
-
|
|
2242
|
+
J2.styles = v`
|
|
2239
2243
|
:host { display: flex; flex-direction: column; font-family: var(--font-sans); }
|
|
2240
2244
|
:host([fill]) { flex: 1; min-height: 0; --_tab-fill-flex: 1; --_tab-fill-height: 100%; }
|
|
2241
2245
|
.tabs { display: flex; flex-direction: column; width: 100%; }
|
|
2242
2246
|
:host([fill]) .tabs { flex: 1; min-height: 0; }
|
|
2243
2247
|
`;
|
|
2244
|
-
let
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
],
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
],
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
],
|
|
2254
|
-
const
|
|
2248
|
+
let u1 = J2;
|
|
2249
|
+
$([
|
|
2250
|
+
a({ attribute: "default-value" })
|
|
2251
|
+
], u1.prototype, "defaultValue");
|
|
2252
|
+
$([
|
|
2253
|
+
a()
|
|
2254
|
+
], u1.prototype, "value");
|
|
2255
|
+
$([
|
|
2256
|
+
a({ type: Boolean, reflect: !0 })
|
|
2257
|
+
], u1.prototype, "fill");
|
|
2258
|
+
const Q2 = class Q2 extends h {
|
|
2255
2259
|
constructor() {
|
|
2256
2260
|
super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
|
|
2257
2261
|
}
|
|
2258
2262
|
connectedCallback() {
|
|
2259
2263
|
super.connectedCallback();
|
|
2260
2264
|
const e = this.closest("anduin-tabs");
|
|
2261
|
-
e && e.addEventListener(
|
|
2265
|
+
e && e.addEventListener(e2, (t) => {
|
|
2262
2266
|
const i = t;
|
|
2263
2267
|
this.lastActiveValue = i.detail, requestAnimationFrame(() => {
|
|
2264
2268
|
this.animateIndicator(i.detail);
|
|
@@ -2279,8 +2283,8 @@ const Y2 = class Y2 extends h {
|
|
|
2279
2283
|
for (let i = 0; i < t.length; i++) {
|
|
2280
2284
|
const o = t[i];
|
|
2281
2285
|
if (o.getAttribute("value") === e) {
|
|
2282
|
-
const r = o.getBoundingClientRect(), n = this.getBoundingClientRect(),
|
|
2283
|
-
this.indicator && (this.indicator.style.width = `${r.width}px`, this.indicator.style.transform = `translateX(${
|
|
2286
|
+
const r = o.getBoundingClientRect(), n = this.getBoundingClientRect(), C = r.left - n.left + this.scrollLeft;
|
|
2287
|
+
this.indicator && (this.indicator.style.width = `${r.width}px`, this.indicator.style.transform = `translateX(${C}px)`);
|
|
2284
2288
|
break;
|
|
2285
2289
|
}
|
|
2286
2290
|
}
|
|
@@ -2294,7 +2298,7 @@ const Y2 = class Y2 extends h {
|
|
|
2294
2298
|
`;
|
|
2295
2299
|
}
|
|
2296
2300
|
};
|
|
2297
|
-
|
|
2301
|
+
Q2.styles = v`
|
|
2298
2302
|
:host { display: block; font-family: var(--font-sans); }
|
|
2299
2303
|
.tabs-list {
|
|
2300
2304
|
display: flex; background-color: var(--color-gray-0);
|
|
@@ -2309,27 +2313,27 @@ Y2.styles = g`
|
|
|
2309
2313
|
left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
|
|
2310
2314
|
}
|
|
2311
2315
|
`;
|
|
2312
|
-
let
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
],
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
],
|
|
2319
|
-
const
|
|
2316
|
+
let A1 = Q2;
|
|
2317
|
+
$([
|
|
2318
|
+
a()
|
|
2319
|
+
], A1.prototype, "alignment");
|
|
2320
|
+
$([
|
|
2321
|
+
k(".tabs-list__indicator")
|
|
2322
|
+
], A1.prototype, "indicator");
|
|
2323
|
+
const e5 = class e5 extends h {
|
|
2320
2324
|
constructor() {
|
|
2321
2325
|
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
|
|
2322
2326
|
}
|
|
2323
2327
|
connectedCallback() {
|
|
2324
2328
|
super.connectedCallback();
|
|
2325
2329
|
const e = this.closest("anduin-tabs");
|
|
2326
|
-
e && e.addEventListener(
|
|
2330
|
+
e && e.addEventListener(e2, (t) => {
|
|
2327
2331
|
const i = t;
|
|
2328
2332
|
this.isActive = i.detail === this.value;
|
|
2329
2333
|
});
|
|
2330
2334
|
}
|
|
2331
2335
|
onClick() {
|
|
2332
|
-
this.dispatchEvent(new CustomEvent(
|
|
2336
|
+
this.dispatchEvent(new CustomEvent(d4, { detail: this.value, bubbles: !0, composed: !0 }));
|
|
2333
2337
|
}
|
|
2334
2338
|
render() {
|
|
2335
2339
|
return s`
|
|
@@ -2350,7 +2354,7 @@ const X2 = class X2 extends h {
|
|
|
2350
2354
|
`;
|
|
2351
2355
|
}
|
|
2352
2356
|
};
|
|
2353
|
-
|
|
2357
|
+
e5.styles = v`
|
|
2354
2358
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2355
2359
|
.tab-trigger {
|
|
2356
2360
|
cursor: pointer; background: none; border: none; display: block;
|
|
@@ -2373,33 +2377,33 @@ X2.styles = g`
|
|
|
2373
2377
|
color: var(--color-gray-7); white-space: nowrap;
|
|
2374
2378
|
}
|
|
2375
2379
|
`;
|
|
2376
|
-
let
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
],
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
],
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
],
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
],
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
],
|
|
2392
|
-
|
|
2380
|
+
let I = e5;
|
|
2381
|
+
$([
|
|
2382
|
+
a()
|
|
2383
|
+
], I.prototype, "value");
|
|
2384
|
+
$([
|
|
2385
|
+
a({ attribute: "start-icon" })
|
|
2386
|
+
], I.prototype, "startIcon");
|
|
2387
|
+
$([
|
|
2388
|
+
a({ type: Boolean })
|
|
2389
|
+
], I.prototype, "disabled");
|
|
2390
|
+
$([
|
|
2391
|
+
a({ type: Boolean, attribute: "show-badge" })
|
|
2392
|
+
], I.prototype, "showBadge");
|
|
2393
|
+
$([
|
|
2394
|
+
a({ attribute: "badge-count" })
|
|
2395
|
+
], I.prototype, "badgeCount");
|
|
2396
|
+
$([
|
|
2393
2397
|
M()
|
|
2394
|
-
],
|
|
2395
|
-
const
|
|
2398
|
+
], I.prototype, "isActive");
|
|
2399
|
+
const t5 = class t5 extends h {
|
|
2396
2400
|
constructor() {
|
|
2397
2401
|
super(...arguments), this.value = "", this.isActive = !1;
|
|
2398
2402
|
}
|
|
2399
2403
|
connectedCallback() {
|
|
2400
2404
|
super.connectedCallback();
|
|
2401
2405
|
const e = this.closest("anduin-tabs");
|
|
2402
|
-
e && e.addEventListener(
|
|
2406
|
+
e && e.addEventListener(e2, (t) => {
|
|
2403
2407
|
const i = t;
|
|
2404
2408
|
this.isActive = i.detail === this.value;
|
|
2405
2409
|
});
|
|
@@ -2415,28 +2419,28 @@ const K2 = class K2 extends h {
|
|
|
2415
2419
|
`;
|
|
2416
2420
|
}
|
|
2417
2421
|
};
|
|
2418
|
-
|
|
2422
|
+
t5.styles = v`
|
|
2419
2423
|
:host { display: block; font-family: var(--font-sans); flex: var(--_tab-fill-flex, 0 0 auto); min-height: 0; }
|
|
2420
2424
|
:host(:not([active])) { display: none; }
|
|
2421
2425
|
.tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
|
|
2422
2426
|
`;
|
|
2423
|
-
let
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
],
|
|
2427
|
-
|
|
2427
|
+
let z1 = t5;
|
|
2428
|
+
$([
|
|
2429
|
+
a()
|
|
2430
|
+
], z1.prototype, "value");
|
|
2431
|
+
$([
|
|
2428
2432
|
M()
|
|
2429
|
-
],
|
|
2430
|
-
customElements.get("anduin-tabs") || customElements.define("anduin-tabs",
|
|
2431
|
-
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list",
|
|
2432
|
-
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger",
|
|
2433
|
-
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content",
|
|
2434
|
-
var
|
|
2433
|
+
], z1.prototype, "isActive");
|
|
2434
|
+
customElements.get("anduin-tabs") || customElements.define("anduin-tabs", u1);
|
|
2435
|
+
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", A1);
|
|
2436
|
+
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", I);
|
|
2437
|
+
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", z1);
|
|
2438
|
+
var u3 = Object.defineProperty, k2 = (l, e, t, i) => {
|
|
2435
2439
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2436
2440
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2437
|
-
return o &&
|
|
2441
|
+
return o && u3(e, t, o), o;
|
|
2438
2442
|
};
|
|
2439
|
-
const
|
|
2443
|
+
const h3 = "anduin-tag-close:click", g3 = {
|
|
2440
2444
|
gray: "tag--light-gray",
|
|
2441
2445
|
primary: "tag--light-primary",
|
|
2442
2446
|
success: "tag--light-success",
|
|
@@ -2461,7 +2465,7 @@ const C3 = "anduin-tag-close:click", a3 = {
|
|
|
2461
2465
|
customYellow: "tag--custom-yellow",
|
|
2462
2466
|
customYellowGreen: "tag--custom-yellow-green",
|
|
2463
2467
|
customYellowOrange: "tag--custom-yellow-orange"
|
|
2464
|
-
},
|
|
2468
|
+
}, v3 = {
|
|
2465
2469
|
gray: "tag__icon--light-gray",
|
|
2466
2470
|
primary: "tag__icon--light-primary",
|
|
2467
2471
|
success: "tag__icon--light-success",
|
|
@@ -2486,12 +2490,12 @@ const C3 = "anduin-tag-close:click", a3 = {
|
|
|
2486
2490
|
customMagenta: "tag__icon--custom-magenta",
|
|
2487
2491
|
customBlueGreen: "tag__icon--custom-blue-green",
|
|
2488
2492
|
customPink: "tag__icon--custom-pink"
|
|
2489
|
-
},
|
|
2493
|
+
}, o5 = class o5 extends h {
|
|
2490
2494
|
constructor() {
|
|
2491
2495
|
super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
|
|
2492
2496
|
}
|
|
2493
2497
|
render() {
|
|
2494
|
-
const e =
|
|
2498
|
+
const e = g3[this.variant] || "tag--light-gray", t = v3[this.variant] || "tag__icon--light-gray";
|
|
2495
2499
|
return s`
|
|
2496
2500
|
<div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
|
|
2497
2501
|
${this.icon ? s`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : c}
|
|
@@ -2501,7 +2505,7 @@ const C3 = "anduin-tag-close:click", a3 = {
|
|
|
2501
2505
|
`;
|
|
2502
2506
|
}
|
|
2503
2507
|
};
|
|
2504
|
-
|
|
2508
|
+
o5.styles = v`
|
|
2505
2509
|
:host { display: inline-flex; max-width: 100%; font-family: var(--font-sans); }
|
|
2506
2510
|
.tag {
|
|
2507
2511
|
font-weight: 500; font-size: 11px; height: 20px; padding-left: 6px; padding-right: 6px;
|
|
@@ -2549,19 +2553,19 @@ J2.styles = g`
|
|
|
2549
2553
|
.tag--custom-yellow-green { color: var(--color-gray-9); background-color: rgb(174,207,85); }
|
|
2550
2554
|
.tag--custom-yellow-orange { color: var(--color-gray-9); background-color: rgb(255,193,107); }
|
|
2551
2555
|
`;
|
|
2552
|
-
let
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
],
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
],
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
],
|
|
2562
|
-
const
|
|
2556
|
+
let h1 = o5;
|
|
2557
|
+
k2([
|
|
2558
|
+
a()
|
|
2559
|
+
], h1.prototype, "variant");
|
|
2560
|
+
k2([
|
|
2561
|
+
a()
|
|
2562
|
+
], h1.prototype, "icon");
|
|
2563
|
+
k2([
|
|
2564
|
+
a({ type: Boolean })
|
|
2565
|
+
], h1.prototype, "disabled");
|
|
2566
|
+
const i5 = class i5 extends h {
|
|
2563
2567
|
onClick() {
|
|
2564
|
-
this.dispatchEvent(new CustomEvent(
|
|
2568
|
+
this.dispatchEvent(new CustomEvent(h3, { bubbles: !0, composed: !0 }));
|
|
2565
2569
|
}
|
|
2566
2570
|
render() {
|
|
2567
2571
|
return s`
|
|
@@ -2571,7 +2575,7 @@ const Q2 = class Q2 extends h {
|
|
|
2571
2575
|
`;
|
|
2572
2576
|
}
|
|
2573
2577
|
};
|
|
2574
|
-
|
|
2578
|
+
i5.styles = v`
|
|
2575
2579
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2576
2580
|
.tag-close__button {
|
|
2577
2581
|
flex: none; width: 16px; height: 16px; display: flex; align-items: center;
|
|
@@ -2581,15 +2585,233 @@ Q2.styles = g`
|
|
|
2581
2585
|
.tag-close__button:hover { opacity: 0.7; }
|
|
2582
2586
|
.tag-close__button:active { opacity: 0.5; }
|
|
2583
2587
|
`;
|
|
2584
|
-
let
|
|
2585
|
-
customElements.get("anduin-tag") || customElements.define("anduin-tag",
|
|
2586
|
-
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close",
|
|
2587
|
-
var
|
|
2588
|
+
let p2 = i5;
|
|
2589
|
+
customElements.get("anduin-tag") || customElements.define("anduin-tag", h1);
|
|
2590
|
+
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", p2);
|
|
2591
|
+
var f3 = Object.defineProperty, R = (l, e, t, i) => {
|
|
2588
2592
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2589
2593
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2590
|
-
return o &&
|
|
2594
|
+
return o && f3(e, t, o), o;
|
|
2591
2595
|
};
|
|
2592
|
-
const
|
|
2596
|
+
const H3 = "anduin-toggle-group:change", V3 = "anduin-toggle-group-item:change", L3 = "anduin-toggle-group-item:select", m3 = "anduin-toggle-group-item:deselect", u2 = "anduin-toggle-group-item:item-click", l5 = class l5 extends h {
|
|
2597
|
+
constructor() {
|
|
2598
|
+
super(...arguments), this.mode = "single", this.defaultValue = "", this.value = null, this.size = "medium", this.variant = "gray", this.gap = !1, this.internalValue = [], this.onItemClick = (e) => {
|
|
2599
|
+
var d;
|
|
2600
|
+
e.stopPropagation();
|
|
2601
|
+
const i = e.detail, o = this.selection, r = o.includes(i);
|
|
2602
|
+
let n;
|
|
2603
|
+
this.mode === "multiple" ? n = r ? o.filter((p) => p !== i) : [...o, i] : n = r ? [] : [i];
|
|
2604
|
+
const C = this.items.find((p) => p.value === i);
|
|
2605
|
+
if (C == null || C.emitSelectionChange(!r), this.mode === "single" && !r)
|
|
2606
|
+
for (const p of o)
|
|
2607
|
+
(d = this.items.find((u) => u.value === p)) == null || d.emitSelectionChange(!1);
|
|
2608
|
+
this.dispatchEvent(new CustomEvent(H3, {
|
|
2609
|
+
detail: n.join(" "),
|
|
2610
|
+
bubbles: !0,
|
|
2611
|
+
composed: !0
|
|
2612
|
+
})), this.isControlled || (this.internalValue = n);
|
|
2613
|
+
};
|
|
2614
|
+
}
|
|
2615
|
+
get isControlled() {
|
|
2616
|
+
return this.value != null;
|
|
2617
|
+
}
|
|
2618
|
+
get selection() {
|
|
2619
|
+
return this.isControlled ? O5(this.value) : this.internalValue;
|
|
2620
|
+
}
|
|
2621
|
+
connectedCallback() {
|
|
2622
|
+
super.connectedCallback(), this.hasUpdated || (this.internalValue = O5(this.defaultValue)), this.addEventListener(u2, this.onItemClick);
|
|
2623
|
+
}
|
|
2624
|
+
disconnectedCallback() {
|
|
2625
|
+
super.disconnectedCallback(), this.removeEventListener(u2, this.onItemClick);
|
|
2626
|
+
}
|
|
2627
|
+
updated() {
|
|
2628
|
+
this.syncItems();
|
|
2629
|
+
}
|
|
2630
|
+
get items() {
|
|
2631
|
+
return Array.from(this.querySelectorAll("anduin-toggle-group-item"));
|
|
2632
|
+
}
|
|
2633
|
+
syncItems() {
|
|
2634
|
+
const e = this.selection;
|
|
2635
|
+
for (const t of this.items)
|
|
2636
|
+
t.selected = e.includes(t.value), t.groupSize = this.size, t.groupVariant = this.variant, t.groupMode = this.mode;
|
|
2637
|
+
}
|
|
2638
|
+
render() {
|
|
2639
|
+
return s`
|
|
2640
|
+
<div class="toggle-group toggle-group--${this.size} ${this.gap ? "toggle-group--gap" : ""}" role="group" part="toggle-group">
|
|
2641
|
+
<slot @slotchange=${this.syncItems}></slot>
|
|
2642
|
+
</div>
|
|
2643
|
+
`;
|
|
2644
|
+
}
|
|
2645
|
+
};
|
|
2646
|
+
l5.styles = v`
|
|
2647
|
+
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
2648
|
+
.toggle-group { display: inline-flex; align-items: center; }
|
|
2649
|
+
.toggle-group--small {
|
|
2650
|
+
--toggle-group-item-height: 24px; --toggle-group-item-font-size: 11px;
|
|
2651
|
+
--toggle-group-item-padding: 0 8px; --toggle-group-item-line-height: 16px;
|
|
2652
|
+
--toggle-group-item-icon-gap: 4px;
|
|
2653
|
+
}
|
|
2654
|
+
.toggle-group--medium {
|
|
2655
|
+
--toggle-group-item-height: 32px; --toggle-group-item-font-size: 13px;
|
|
2656
|
+
--toggle-group-item-padding: 0 12px; --toggle-group-item-line-height: 20px;
|
|
2657
|
+
--toggle-group-item-icon-gap: 8px;
|
|
2658
|
+
}
|
|
2659
|
+
.toggle-group--large {
|
|
2660
|
+
--toggle-group-item-height: 40px; --toggle-group-item-font-size: 15px;
|
|
2661
|
+
--toggle-group-item-padding: 0 20px; --toggle-group-item-line-height: 20px;
|
|
2662
|
+
--toggle-group-item-icon-gap: 12px;
|
|
2663
|
+
}
|
|
2664
|
+
.toggle-group--free {
|
|
2665
|
+
--toggle-group-item-height: auto; --toggle-group-item-font-size: inherit;
|
|
2666
|
+
--toggle-group-item-padding: 0; --toggle-group-item-line-height: inherit;
|
|
2667
|
+
--toggle-group-item-icon-gap: 8px;
|
|
2668
|
+
}
|
|
2669
|
+
::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 0; margin-left: -1px; }
|
|
2670
|
+
::slotted(anduin-toggle-group-item:first-child) { --toggle-group-item-radius: 4px 0 0 4px; margin-left: 0; }
|
|
2671
|
+
::slotted(anduin-toggle-group-item:last-child) { --toggle-group-item-radius: 0 4px 4px 0; }
|
|
2672
|
+
::slotted(anduin-toggle-group-item:only-child) { --toggle-group-item-radius: 4px; }
|
|
2673
|
+
.toggle-group--gap { flex-wrap: wrap; gap: 8px; }
|
|
2674
|
+
.toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; margin-left: 0; }
|
|
2675
|
+
`;
|
|
2676
|
+
let B = l5;
|
|
2677
|
+
R([
|
|
2678
|
+
a()
|
|
2679
|
+
], B.prototype, "mode");
|
|
2680
|
+
R([
|
|
2681
|
+
a({ attribute: "default-value" })
|
|
2682
|
+
], B.prototype, "defaultValue");
|
|
2683
|
+
R([
|
|
2684
|
+
a()
|
|
2685
|
+
], B.prototype, "value");
|
|
2686
|
+
R([
|
|
2687
|
+
a()
|
|
2688
|
+
], B.prototype, "size");
|
|
2689
|
+
R([
|
|
2690
|
+
a()
|
|
2691
|
+
], B.prototype, "variant");
|
|
2692
|
+
R([
|
|
2693
|
+
a({ type: Boolean })
|
|
2694
|
+
], B.prototype, "gap");
|
|
2695
|
+
R([
|
|
2696
|
+
M()
|
|
2697
|
+
], B.prototype, "internalValue");
|
|
2698
|
+
const r5 = class r5 extends h {
|
|
2699
|
+
constructor() {
|
|
2700
|
+
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.selected = !1, this.groupSize = "medium", this.groupVariant = "gray", this.groupMode = "single";
|
|
2701
|
+
}
|
|
2702
|
+
/** Called by the parent group when the user's action changes this item's selection. */
|
|
2703
|
+
emitSelectionChange(e) {
|
|
2704
|
+
this.dispatchEvent(new CustomEvent(V3, {
|
|
2705
|
+
detail: e,
|
|
2706
|
+
bubbles: !0,
|
|
2707
|
+
composed: !0
|
|
2708
|
+
})), this.dispatchEvent(new CustomEvent(e ? L3 : m3, {
|
|
2709
|
+
detail: this.value,
|
|
2710
|
+
bubbles: !0,
|
|
2711
|
+
composed: !0
|
|
2712
|
+
}));
|
|
2713
|
+
}
|
|
2714
|
+
updated(e) {
|
|
2715
|
+
(e.has("selected") || e.has("groupMode")) && (this.groupMode === "single" ? (this.setAttribute("role", "radio"), this.setAttribute("aria-checked", String(this.selected))) : (this.removeAttribute("role"), this.removeAttribute("aria-checked")));
|
|
2716
|
+
}
|
|
2717
|
+
onClick() {
|
|
2718
|
+
this.dispatchEvent(new CustomEvent(u2, {
|
|
2719
|
+
detail: this.value,
|
|
2720
|
+
bubbles: !0,
|
|
2721
|
+
composed: !0
|
|
2722
|
+
}));
|
|
2723
|
+
}
|
|
2724
|
+
render() {
|
|
2725
|
+
const e = [
|
|
2726
|
+
"toggle-item",
|
|
2727
|
+
this.selected ? "toggle-item--selected" : "",
|
|
2728
|
+
this.disabled ? "toggle-item--disabled" : "",
|
|
2729
|
+
`toggle-item--variant-${this.groupVariant}`
|
|
2730
|
+
].filter(Boolean).join(" ");
|
|
2731
|
+
return s`
|
|
2732
|
+
<button
|
|
2733
|
+
type="button"
|
|
2734
|
+
class="${e}"
|
|
2735
|
+
aria-pressed="${this.selected}"
|
|
2736
|
+
?disabled=${this.disabled}
|
|
2737
|
+
part="toggle-item"
|
|
2738
|
+
@click=${this.onClick}
|
|
2739
|
+
>
|
|
2740
|
+
<div class="toggle-item__content">
|
|
2741
|
+
${this.startIcon ? s`<div class="toggle-item__icon"><anduin-icon name="${this.startIcon}" size="${this.groupSize === "small" ? 12 : 16}"></anduin-icon></div>` : c}
|
|
2742
|
+
<slot></slot>
|
|
2743
|
+
</div>
|
|
2744
|
+
</button>
|
|
2745
|
+
`;
|
|
2746
|
+
}
|
|
2747
|
+
};
|
|
2748
|
+
r5.styles = v`
|
|
2749
|
+
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2750
|
+
.toggle-item {
|
|
2751
|
+
position: relative; z-index: 0; box-sizing: border-box;
|
|
2752
|
+
display: flex; align-items: center; justify-content: center;
|
|
2753
|
+
background: none; border: 1px solid var(--color-gray-4);
|
|
2754
|
+
border-radius: var(--toggle-group-item-radius, 4px);
|
|
2755
|
+
color: var(--color-gray-7); cursor: pointer; font-family: inherit;
|
|
2756
|
+
font-size: var(--toggle-group-item-font-size, 13px); font-weight: 500;
|
|
2757
|
+
height: var(--toggle-group-item-height, 32px);
|
|
2758
|
+
line-height: var(--toggle-group-item-line-height, 20px);
|
|
2759
|
+
padding: var(--toggle-group-item-padding, 0 12px);
|
|
2760
|
+
white-space: nowrap;
|
|
2761
|
+
}
|
|
2762
|
+
.toggle-item:hover { z-index: 1; background-color: var(--color-gray-2); color: var(--color-gray-8); }
|
|
2763
|
+
.toggle-item:focus { outline: none; }
|
|
2764
|
+
.toggle-item:focus-visible {
|
|
2765
|
+
z-index: 2; outline: none;
|
|
2766
|
+
box-shadow: 0 0 0 3px oklch(from var(--color-primary-4) l c h / 0.5);
|
|
2767
|
+
}
|
|
2768
|
+
.toggle-item--selected { z-index: 1; background-color: var(--color-gray-3); color: var(--color-gray-8); }
|
|
2769
|
+
.toggle-item--selected:hover { background-color: var(--color-gray-4); }
|
|
2770
|
+
.toggle-item--variant-primary.toggle-item--selected {
|
|
2771
|
+
background-color: var(--color-primary-1); border-color: var(--color-primary-2);
|
|
2772
|
+
color: var(--color-primary-5);
|
|
2773
|
+
}
|
|
2774
|
+
.toggle-item--variant-primary.toggle-item--selected:hover { background-color: var(--color-primary-2); }
|
|
2775
|
+
.toggle-item--disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
|
|
2776
|
+
.toggle-item__content { display: flex; align-items: center; gap: var(--toggle-group-item-icon-gap, 8px); }
|
|
2777
|
+
.toggle-item__icon { display: flex; color: var(--color-gray-6); }
|
|
2778
|
+
.toggle-item:hover .toggle-item__icon { color: var(--color-gray-7); }
|
|
2779
|
+
.toggle-item--selected .toggle-item__icon { color: var(--color-gray-7); }
|
|
2780
|
+
.toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-4); }
|
|
2781
|
+
`;
|
|
2782
|
+
let S = r5;
|
|
2783
|
+
R([
|
|
2784
|
+
a()
|
|
2785
|
+
], S.prototype, "value");
|
|
2786
|
+
R([
|
|
2787
|
+
a({ attribute: "start-icon" })
|
|
2788
|
+
], S.prototype, "startIcon");
|
|
2789
|
+
R([
|
|
2790
|
+
a({ type: Boolean })
|
|
2791
|
+
], S.prototype, "disabled");
|
|
2792
|
+
R([
|
|
2793
|
+
a({ attribute: !1 })
|
|
2794
|
+
], S.prototype, "selected");
|
|
2795
|
+
R([
|
|
2796
|
+
a({ attribute: !1 })
|
|
2797
|
+
], S.prototype, "groupSize");
|
|
2798
|
+
R([
|
|
2799
|
+
a({ attribute: !1 })
|
|
2800
|
+
], S.prototype, "groupVariant");
|
|
2801
|
+
R([
|
|
2802
|
+
a({ attribute: !1 })
|
|
2803
|
+
], S.prototype, "groupMode");
|
|
2804
|
+
function O5(l) {
|
|
2805
|
+
return l.split(" ").map((e) => e.trim()).filter(Boolean);
|
|
2806
|
+
}
|
|
2807
|
+
customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group", B);
|
|
2808
|
+
customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item", S);
|
|
2809
|
+
var b3 = Object.defineProperty, c4 = (l, e, t, i) => {
|
|
2810
|
+
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2811
|
+
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2812
|
+
return o && b3(e, t, o), o;
|
|
2813
|
+
};
|
|
2814
|
+
const p4 = "anduin-tooltip:show", $2 = "anduin-tooltip:hide", u4 = "anduin-tooltip:trigger-mounted", h4 = "anduin-tooltip:content-popup-mounted", g4 = "anduin-tooltip:content-popup-unmounted", v4 = "anduin-tooltip:visibility-changed", M3 = [
|
|
2593
2815
|
"top-start",
|
|
2594
2816
|
"top-center",
|
|
2595
2817
|
"top-end",
|
|
@@ -2603,7 +2825,7 @@ const r4 = "anduin-tooltip:show", x2 = "anduin-tooltip:hide", n4 = "anduin-toolt
|
|
|
2603
2825
|
"left-center",
|
|
2604
2826
|
"left-end"
|
|
2605
2827
|
];
|
|
2606
|
-
function
|
|
2828
|
+
function D5(l, e, t, i, o) {
|
|
2607
2829
|
switch (i) {
|
|
2608
2830
|
case "top-start":
|
|
2609
2831
|
return { left: l.left, top: l.top - t - o };
|
|
@@ -2633,64 +2855,64 @@ function A5(l, e, t, i, o) {
|
|
|
2633
2855
|
return { left: 0, top: 0 };
|
|
2634
2856
|
}
|
|
2635
2857
|
}
|
|
2636
|
-
function
|
|
2858
|
+
function I5(l, e) {
|
|
2637
2859
|
return e.right >= l.left && e.left <= l.right && e.top <= l.bottom && e.bottom >= l.top;
|
|
2638
2860
|
}
|
|
2639
|
-
function
|
|
2861
|
+
function T5(l, e) {
|
|
2640
2862
|
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);
|
|
2641
2863
|
return o < t || r < i ? 0 : (o - t) * (r - i);
|
|
2642
2864
|
}
|
|
2643
|
-
function
|
|
2644
|
-
const o = window.innerWidth, r = window.innerHeight, n = { left: 0, top: 0, right: o, bottom: r },
|
|
2645
|
-
if (!
|
|
2865
|
+
function y3(l, e, t, i = 8) {
|
|
2866
|
+
const o = window.innerWidth, r = window.innerHeight, n = { left: 0, top: 0, right: o, bottom: r }, C = e.width, d = e.height;
|
|
2867
|
+
if (!I5(
|
|
2646
2868
|
{ left: l.left, top: l.top, right: l.right, bottom: l.bottom },
|
|
2647
2869
|
n
|
|
2648
2870
|
)) return null;
|
|
2649
|
-
const p =
|
|
2871
|
+
const p = D5(l, C, d, t, i), u = M3.map((f) => ({ p: f, off: D5(l, C, d, f, i) })).filter(({ off: f }) => I5({ left: f.left, top: f.top, right: f.left + C, bottom: f.top + d }, n));
|
|
2650
2872
|
if (u.length === 0)
|
|
2651
2873
|
return {
|
|
2652
2874
|
placement: t,
|
|
2653
|
-
left: Math.round(Math.min(Math.max(p.left, 0), o -
|
|
2875
|
+
left: Math.round(Math.min(Math.max(p.left, 0), o - C)),
|
|
2654
2876
|
top: Math.round(Math.min(Math.max(p.top, 0), r - d))
|
|
2655
2877
|
};
|
|
2656
2878
|
u.sort((f, Z) => {
|
|
2657
|
-
const
|
|
2658
|
-
if (
|
|
2659
|
-
const
|
|
2660
|
-
return
|
|
2879
|
+
const j = { left: f.off.left, top: f.off.top, right: f.off.left + C, bottom: f.off.top + d }, x = { left: Z.off.left, top: Z.off.top, right: Z.off.left + C, bottom: Z.off.top + d }, O = T5(j, n), Q = T5(x, n);
|
|
2880
|
+
if (Q !== O) return Q - O;
|
|
2881
|
+
const I1 = Math.abs(f.off.left - p.left) + Math.abs(f.off.top - p.top), T1 = Math.abs(Z.off.left - p.left) + Math.abs(Z.off.top - p.top);
|
|
2882
|
+
return I1 - T1;
|
|
2661
2883
|
});
|
|
2662
|
-
const { p:
|
|
2884
|
+
const { p: g, off: H } = u[0];
|
|
2663
2885
|
return {
|
|
2664
|
-
placement:
|
|
2665
|
-
left: Math.round(Math.min(Math.max(H.left, 0), o -
|
|
2886
|
+
placement: g,
|
|
2887
|
+
left: Math.round(Math.min(Math.max(H.left, 0), o - C)),
|
|
2666
2888
|
top: Math.round(Math.min(Math.max(H.top, 0), r - d))
|
|
2667
2889
|
};
|
|
2668
2890
|
}
|
|
2669
|
-
function
|
|
2891
|
+
function h2(l) {
|
|
2670
2892
|
return l.split("-")[0] || "top";
|
|
2671
2893
|
}
|
|
2672
|
-
function
|
|
2894
|
+
function Z3(l, e, t) {
|
|
2673
2895
|
let i = !1, o = t.length - 1;
|
|
2674
2896
|
for (let r = 0; r < t.length; r++) {
|
|
2675
|
-
const n = t[r][0],
|
|
2676
|
-
|
|
2897
|
+
const n = t[r][0], C = t[r][1], d = t[o][0], p = t[o][1];
|
|
2898
|
+
C > e != p > e && l < (d - n) * (e - C) / (p - C) + n && (i = !i), o = r;
|
|
2677
2899
|
}
|
|
2678
2900
|
return i;
|
|
2679
2901
|
}
|
|
2680
|
-
const
|
|
2902
|
+
const n5 = class n5 extends h {
|
|
2681
2903
|
constructor() {
|
|
2682
2904
|
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;
|
|
2683
2905
|
}
|
|
2684
2906
|
connectedCallback() {
|
|
2685
|
-
super.connectedCallback(), this.addEventListener(
|
|
2907
|
+
super.connectedCallback(), this.addEventListener(u4, (e) => {
|
|
2686
2908
|
e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
|
|
2687
|
-
}), this.addEventListener(
|
|
2909
|
+
}), this.addEventListener(h4, (e) => {
|
|
2688
2910
|
e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
|
|
2689
|
-
}), this.addEventListener(
|
|
2911
|
+
}), this.addEventListener(g4, (e) => {
|
|
2690
2912
|
e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
|
|
2691
|
-
}), this.addEventListener(
|
|
2913
|
+
}), this.addEventListener(p4, (e) => {
|
|
2692
2914
|
e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
|
|
2693
|
-
}), this.addEventListener(
|
|
2915
|
+
}), this.addEventListener($2, (e) => {
|
|
2694
2916
|
e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
|
|
2695
2917
|
});
|
|
2696
2918
|
}
|
|
@@ -2721,11 +2943,11 @@ const e5 = class e5 extends h {
|
|
|
2721
2943
|
this.containingBlockLeft = o.left, this.containingBlockTop = o.top, t.style.transform = i;
|
|
2722
2944
|
}
|
|
2723
2945
|
positionPopup(e, t, i) {
|
|
2724
|
-
const o = t.getBoundingClientRect(), r = e.getBoundingClientRect(), n =
|
|
2946
|
+
const o = t.getBoundingClientRect(), r = e.getBoundingClientRect(), n = y3(o, r, i, 8);
|
|
2725
2947
|
if (n) {
|
|
2726
|
-
const
|
|
2727
|
-
|
|
2728
|
-
const d =
|
|
2948
|
+
const C = e;
|
|
2949
|
+
C.style.transform = `translate(${n.left - this.containingBlockLeft}px, ${n.top - this.containingBlockTop}px)`;
|
|
2950
|
+
const d = h2(n.placement), p = h2(i);
|
|
2729
2951
|
if (d !== p) {
|
|
2730
2952
|
const u = e.querySelector(".tooltip-arrow");
|
|
2731
2953
|
u && (u.classList.remove(`tooltip-arrow--${p}`), u.classList.add(`tooltip-arrow--${d}`));
|
|
@@ -2733,49 +2955,49 @@ const e5 = class e5 extends h {
|
|
|
2733
2955
|
}
|
|
2734
2956
|
}
|
|
2735
2957
|
broadcastVisibilityChanged(e) {
|
|
2736
|
-
this.dispatchEvent(new CustomEvent(
|
|
2958
|
+
this.dispatchEvent(new CustomEvent(v4, { detail: e, bubbles: !1, composed: !1 }));
|
|
2737
2959
|
}
|
|
2738
2960
|
render() {
|
|
2739
2961
|
return s`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
|
|
2740
2962
|
}
|
|
2741
2963
|
};
|
|
2742
|
-
|
|
2964
|
+
n5.styles = v`
|
|
2743
2965
|
:host { display: inline-block; position: relative; max-width: 100%; font-family: var(--font-sans); }
|
|
2744
2966
|
.tooltip-root { display: inline-block; position: relative; max-width: 100%; }
|
|
2745
2967
|
`;
|
|
2746
|
-
let
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
],
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
],
|
|
2753
|
-
const
|
|
2968
|
+
let B1 = n5;
|
|
2969
|
+
c4([
|
|
2970
|
+
a({ type: Boolean })
|
|
2971
|
+
], B1.prototype, "disabled");
|
|
2972
|
+
c4([
|
|
2973
|
+
a()
|
|
2974
|
+
], B1.prototype, "placement");
|
|
2975
|
+
const a5 = class a5 extends h {
|
|
2754
2976
|
firstUpdated() {
|
|
2755
2977
|
requestAnimationFrame(() => {
|
|
2756
|
-
this.dispatchEvent(new CustomEvent(
|
|
2978
|
+
this.dispatchEvent(new CustomEvent(u4, { detail: this, bubbles: !0, composed: !0 }));
|
|
2757
2979
|
}), this.addEventListener("pointerenter", () => {
|
|
2758
|
-
this.dispatchEvent(new CustomEvent(
|
|
2980
|
+
this.dispatchEvent(new CustomEvent(p4, { bubbles: !0, composed: !0 }));
|
|
2759
2981
|
}), this.addEventListener("click", () => {
|
|
2760
|
-
this.dispatchEvent(new CustomEvent(
|
|
2982
|
+
this.dispatchEvent(new CustomEvent($2, { bubbles: !0, composed: !0 }));
|
|
2761
2983
|
});
|
|
2762
2984
|
}
|
|
2763
2985
|
render() {
|
|
2764
2986
|
return s`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
|
|
2765
2987
|
}
|
|
2766
2988
|
};
|
|
2767
|
-
|
|
2989
|
+
a5.styles = v`
|
|
2768
2990
|
:host { display: inline-block; max-width: 100%; font-family: var(--font-sans); }
|
|
2769
2991
|
.tooltip-trigger { display: flex; align-items: center; max-width: 100%; }
|
|
2770
2992
|
`;
|
|
2771
|
-
let
|
|
2772
|
-
const
|
|
2993
|
+
let g2 = a5;
|
|
2994
|
+
const C5 = class C5 extends h {
|
|
2773
2995
|
constructor() {
|
|
2774
2996
|
super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
|
|
2775
2997
|
var r, n;
|
|
2776
2998
|
if (!this.graceArea) return;
|
|
2777
2999
|
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;
|
|
2778
|
-
i || o ? this.graceArea = null :
|
|
3000
|
+
i || o ? this.graceArea = null : Z3(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent($2, { bubbles: !0, composed: !0 })));
|
|
2779
3001
|
}, this.handleTriggerLeave = (e) => {
|
|
2780
3002
|
this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
|
|
2781
3003
|
}, this.handleContentLeave = (e) => {
|
|
@@ -2785,7 +3007,7 @@ const o5 = class o5 extends h {
|
|
|
2785
3007
|
connectedCallback() {
|
|
2786
3008
|
super.connectedCallback();
|
|
2787
3009
|
const e = this.closest("anduin-tooltip");
|
|
2788
|
-
e && e.addEventListener(
|
|
3010
|
+
e && e.addEventListener(v4, (t) => {
|
|
2789
3011
|
const i = t.detail;
|
|
2790
3012
|
i.startsWith("show:") ? this.showPopup(i.slice(5)) : this.hidePopup();
|
|
2791
3013
|
});
|
|
@@ -2811,7 +3033,7 @@ const o5 = class o5 extends h {
|
|
|
2811
3033
|
}
|
|
2812
3034
|
showPopup(e) {
|
|
2813
3035
|
this.hidePopup();
|
|
2814
|
-
const t =
|
|
3036
|
+
const t = h2(e), i = document.createElement("div");
|
|
2815
3037
|
i.className = "tooltip-popup", i.setAttribute("role", "tooltip");
|
|
2816
3038
|
const o = document.createElement("div");
|
|
2817
3039
|
o.className = `tooltip-arrow tooltip-arrow--${t}`;
|
|
@@ -2819,21 +3041,21 @@ const o5 = class o5 extends h {
|
|
|
2819
3041
|
r.className = "tooltip-body", r.appendChild(document.createElement("slot")), i.appendChild(o), i.appendChild(r);
|
|
2820
3042
|
const n = this.shadowRoot.querySelector(".tooltip-content-wrapper");
|
|
2821
3043
|
n && n.appendChild(i), this.popupEl = i;
|
|
2822
|
-
const
|
|
2823
|
-
if (
|
|
2824
|
-
const d =
|
|
3044
|
+
const C = this.closest("anduin-tooltip");
|
|
3045
|
+
if (C) {
|
|
3046
|
+
const d = C.querySelector("anduin-tooltip-trigger");
|
|
2825
3047
|
d && this.setupGraceAreaListeners(d, i);
|
|
2826
3048
|
}
|
|
2827
|
-
this.dispatchEvent(new CustomEvent(
|
|
3049
|
+
this.dispatchEvent(new CustomEvent(h4, { detail: i, bubbles: !0, composed: !0 }));
|
|
2828
3050
|
}
|
|
2829
3051
|
hidePopup() {
|
|
2830
|
-
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(
|
|
3052
|
+
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(g4, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
|
|
2831
3053
|
}
|
|
2832
3054
|
render() {
|
|
2833
3055
|
return s`<div class="tooltip-content-wrapper"></div>`;
|
|
2834
3056
|
}
|
|
2835
3057
|
};
|
|
2836
|
-
|
|
3058
|
+
C5.styles = v`
|
|
2837
3059
|
:host {
|
|
2838
3060
|
display: contents;
|
|
2839
3061
|
--tooltip-bg: var(--anduin-tooltip-content-background, var(--color-gray-9));
|
|
@@ -2857,16 +3079,16 @@ o5.styles = g`
|
|
|
2857
3079
|
.tooltip-arrow--left { right: -4px; top: 50%; transform: translateY(-50%); border-left-color: var(--tooltip-bg); border-right: none; }
|
|
2858
3080
|
.tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
|
|
2859
3081
|
`;
|
|
2860
|
-
let
|
|
2861
|
-
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip",
|
|
2862
|
-
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger",
|
|
2863
|
-
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content",
|
|
2864
|
-
var
|
|
3082
|
+
let v2 = C5;
|
|
3083
|
+
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", B1);
|
|
3084
|
+
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", g2);
|
|
3085
|
+
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", v2);
|
|
3086
|
+
var _3 = Object.defineProperty, x3 = (l, e, t, i) => {
|
|
2865
3087
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
2866
3088
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
2867
|
-
return o &&
|
|
3089
|
+
return o && _3(e, t, o), o;
|
|
2868
3090
|
};
|
|
2869
|
-
const
|
|
3091
|
+
const w3 = "anduin-well-close:click", s5 = class s5 extends h {
|
|
2870
3092
|
constructor() {
|
|
2871
3093
|
super(...arguments), this.variant = "gray";
|
|
2872
3094
|
}
|
|
@@ -2885,7 +3107,7 @@ const g3 = "anduin-well-close:click", i5 = class i5 extends h {
|
|
|
2885
3107
|
`;
|
|
2886
3108
|
}
|
|
2887
3109
|
};
|
|
2888
|
-
|
|
3110
|
+
s5.styles = v`
|
|
2889
3111
|
:host {
|
|
2890
3112
|
display: block;
|
|
2891
3113
|
font-family: var(--font-sans);
|
|
@@ -2950,14 +3172,14 @@ i5.styles = g`
|
|
|
2950
3172
|
color: var(--color-warning-4);
|
|
2951
3173
|
}
|
|
2952
3174
|
`;
|
|
2953
|
-
let
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
],
|
|
2957
|
-
const
|
|
3175
|
+
let J1 = s5;
|
|
3176
|
+
x3([
|
|
3177
|
+
a()
|
|
3178
|
+
], J1.prototype, "variant");
|
|
3179
|
+
const d5 = class d5 extends h {
|
|
2958
3180
|
onClick() {
|
|
2959
3181
|
this.dispatchEvent(
|
|
2960
|
-
new CustomEvent(
|
|
3182
|
+
new CustomEvent(w3, { bubbles: !0, composed: !0 })
|
|
2961
3183
|
);
|
|
2962
3184
|
}
|
|
2963
3185
|
render() {
|
|
@@ -2972,7 +3194,7 @@ const l5 = class l5 extends h {
|
|
|
2972
3194
|
`;
|
|
2973
3195
|
}
|
|
2974
3196
|
};
|
|
2975
|
-
|
|
3197
|
+
d5.styles = v`
|
|
2976
3198
|
:host {
|
|
2977
3199
|
display: inline-block;
|
|
2978
3200
|
font-family: var(--font-sans);
|
|
@@ -2997,15 +3219,15 @@ l5.styles = g`
|
|
|
2997
3219
|
background-color: var(--color-gray-3);
|
|
2998
3220
|
}
|
|
2999
3221
|
`;
|
|
3000
|
-
let
|
|
3001
|
-
customElements.get("anduin-well") || customElements.define("anduin-well",
|
|
3002
|
-
customElements.get("anduin-well-close") || customElements.define("anduin-well-close",
|
|
3003
|
-
var
|
|
3222
|
+
let f2 = d5;
|
|
3223
|
+
customElements.get("anduin-well") || customElements.define("anduin-well", J1);
|
|
3224
|
+
customElements.get("anduin-well-close") || customElements.define("anduin-well-close", f2);
|
|
3225
|
+
var R3 = Object.defineProperty, n1 = (l, e, t, i) => {
|
|
3004
3226
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
3005
3227
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
3006
|
-
return o &&
|
|
3228
|
+
return o && R3(e, t, o), o;
|
|
3007
3229
|
};
|
|
3008
|
-
const
|
|
3230
|
+
const H2 = "anduin-popover:close", c5 = class c5 extends h {
|
|
3009
3231
|
constructor() {
|
|
3010
3232
|
super(...arguments), this.open = !1, this.placement = "bottom-start", this.fullWidth = !1, this._visible = !1, this._closing = !1, this._closeTransitionEndHandler = null, this._onOutsideClick = (e) => {
|
|
3011
3233
|
var t;
|
|
@@ -3020,10 +3242,10 @@ const h2 = "anduin-popover:close", r5 = class r5 extends h {
|
|
|
3020
3242
|
this.open = !this.open;
|
|
3021
3243
|
}
|
|
3022
3244
|
connectedCallback() {
|
|
3023
|
-
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(
|
|
3245
|
+
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);
|
|
3024
3246
|
}
|
|
3025
3247
|
disconnectedCallback() {
|
|
3026
|
-
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(
|
|
3248
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(H2, this._onPopoverClose);
|
|
3027
3249
|
}
|
|
3028
3250
|
updated(e) {
|
|
3029
3251
|
e.has("open") && (this.open ? (this._cancelCloseAnimation(), this._closing = !1, this._visible = !0, requestAnimationFrame(() => this._updatePosition())) : this._startCloseAnimation());
|
|
@@ -3050,12 +3272,12 @@ const h2 = "anduin-popover:close", r5 = class r5 extends h {
|
|
|
3050
3272
|
t.style.transform = "none";
|
|
3051
3273
|
const r = t.getBoundingClientRect();
|
|
3052
3274
|
t.style.transform = o;
|
|
3053
|
-
const n = t.getBoundingClientRect(),
|
|
3054
|
-
let
|
|
3055
|
-
const Z = !this.placement.startsWith("top"),
|
|
3056
|
-
f =
|
|
3057
|
-
const
|
|
3058
|
-
|
|
3275
|
+
const n = t.getBoundingClientRect(), C = 4, d = window.innerWidth, p = window.innerHeight, u = 8;
|
|
3276
|
+
let g = 0, H = 0, f = "bottom";
|
|
3277
|
+
const Z = !this.placement.startsWith("top"), j = p - i.bottom - C, x = i.top - C, O = j >= n.height, Q = x >= n.height, I1 = Z ? O || j >= x : !Q && O;
|
|
3278
|
+
f = I1 ? "bottom" : "top", H = I1 ? i.bottom + C : i.top - n.height - C;
|
|
3279
|
+
const T1 = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
|
|
3280
|
+
T1 === "start" ? g = i.left : T1 === "end" ? g = i.right - n.width : g = i.left + i.width / 2 - n.width / 2, g = Math.max(u, Math.min(g, d - n.width - u)), H = Math.max(u, Math.min(H, p - n.height - u)), t.style.transform = `translate(${Math.round(g - r.left)}px, ${Math.round(H - r.top)}px)`, t.dataset.side = f;
|
|
3059
3281
|
}
|
|
3060
3282
|
render() {
|
|
3061
3283
|
return s`
|
|
@@ -3070,7 +3292,7 @@ const h2 = "anduin-popover:close", r5 = class r5 extends h {
|
|
|
3070
3292
|
`;
|
|
3071
3293
|
}
|
|
3072
3294
|
};
|
|
3073
|
-
|
|
3295
|
+
c5.styles = v`
|
|
3074
3296
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
3075
3297
|
:host([full-width]) { display: block; width: 100%; }
|
|
3076
3298
|
|
|
@@ -3123,46 +3345,46 @@ r5.styles = g`
|
|
|
3123
3345
|
transform: none;
|
|
3124
3346
|
}
|
|
3125
3347
|
`;
|
|
3126
|
-
let
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
],
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
],
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
],
|
|
3136
|
-
|
|
3348
|
+
let P = c5;
|
|
3349
|
+
n1([
|
|
3350
|
+
a({ type: Boolean, reflect: !0 })
|
|
3351
|
+
], P.prototype, "open");
|
|
3352
|
+
n1([
|
|
3353
|
+
a()
|
|
3354
|
+
], P.prototype, "placement");
|
|
3355
|
+
n1([
|
|
3356
|
+
a({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
3357
|
+
], P.prototype, "fullWidth");
|
|
3358
|
+
n1([
|
|
3137
3359
|
M()
|
|
3138
|
-
],
|
|
3139
|
-
|
|
3360
|
+
], P.prototype, "_visible");
|
|
3361
|
+
n1([
|
|
3140
3362
|
M()
|
|
3141
|
-
],
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
],
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
],
|
|
3148
|
-
customElements.get("anduin-popover") || customElements.define("anduin-popover",
|
|
3149
|
-
const
|
|
3363
|
+
], P.prototype, "_closing");
|
|
3364
|
+
n1([
|
|
3365
|
+
k(".popover__trigger")
|
|
3366
|
+
], P.prototype, "_triggerEl");
|
|
3367
|
+
n1([
|
|
3368
|
+
k(".popover__panel")
|
|
3369
|
+
], P.prototype, "_panelEl");
|
|
3370
|
+
customElements.get("anduin-popover") || customElements.define("anduin-popover", P);
|
|
3371
|
+
const p5 = class p5 extends h {
|
|
3150
3372
|
_onClick() {
|
|
3151
|
-
this.dispatchEvent(new CustomEvent(
|
|
3373
|
+
this.dispatchEvent(new CustomEvent(H2, { bubbles: !0, composed: !0 }));
|
|
3152
3374
|
}
|
|
3153
3375
|
render() {
|
|
3154
3376
|
return s`<span @click=${this._onClick}><slot></slot></span>`;
|
|
3155
3377
|
}
|
|
3156
3378
|
};
|
|
3157
|
-
|
|
3158
|
-
let
|
|
3159
|
-
customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close",
|
|
3160
|
-
var
|
|
3379
|
+
p5.styles = v`:host { display: contents; }`;
|
|
3380
|
+
let V2 = p5;
|
|
3381
|
+
customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", V2);
|
|
3382
|
+
var k3 = Object.defineProperty, a1 = (l, e, t, i) => {
|
|
3161
3383
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
3162
3384
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
3163
|
-
return o &&
|
|
3385
|
+
return o && k3(e, t, o), o;
|
|
3164
3386
|
};
|
|
3165
|
-
const
|
|
3387
|
+
const L2 = "anduin-menu-item:click", u5 = class u5 extends h {
|
|
3166
3388
|
constructor() {
|
|
3167
3389
|
super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
|
|
3168
3390
|
var t;
|
|
@@ -3177,10 +3399,10 @@ const g2 = "anduin-menu-item:click", C5 = class C5 extends h {
|
|
|
3177
3399
|
this.open = !this.open;
|
|
3178
3400
|
}
|
|
3179
3401
|
connectedCallback() {
|
|
3180
|
-
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(
|
|
3402
|
+
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(L2, this._onItemClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
|
|
3181
3403
|
}
|
|
3182
3404
|
disconnectedCallback() {
|
|
3183
|
-
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(
|
|
3405
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(L2, this._onItemClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
|
|
3184
3406
|
}
|
|
3185
3407
|
updated(e) {
|
|
3186
3408
|
e.has("open") && this.open && requestAnimationFrame(() => this._updatePosition());
|
|
@@ -3192,26 +3414,26 @@ const g2 = "anduin-menu-item:click", C5 = class C5 extends h {
|
|
|
3192
3414
|
t.style.transform = "none";
|
|
3193
3415
|
const r = t.getBoundingClientRect();
|
|
3194
3416
|
t.style.transform = o;
|
|
3195
|
-
const n = t.getBoundingClientRect(),
|
|
3417
|
+
const n = t.getBoundingClientRect(), C = 4;
|
|
3196
3418
|
let d = 0, p = 0, u = "bottom";
|
|
3197
3419
|
switch (this.placement) {
|
|
3198
3420
|
case "bottom-start":
|
|
3199
|
-
d = i.left, p = i.bottom +
|
|
3421
|
+
d = i.left, p = i.bottom + C, u = "bottom";
|
|
3200
3422
|
break;
|
|
3201
3423
|
case "bottom-end":
|
|
3202
|
-
d = i.right - n.width, p = i.bottom +
|
|
3424
|
+
d = i.right - n.width, p = i.bottom + C, u = "bottom";
|
|
3203
3425
|
break;
|
|
3204
3426
|
case "bottom":
|
|
3205
|
-
d = i.left + i.width / 2 - n.width / 2, p = i.bottom +
|
|
3427
|
+
d = i.left + i.width / 2 - n.width / 2, p = i.bottom + C, u = "bottom";
|
|
3206
3428
|
break;
|
|
3207
3429
|
case "top-start":
|
|
3208
|
-
d = i.left, p = i.top - n.height -
|
|
3430
|
+
d = i.left, p = i.top - n.height - C, u = "top";
|
|
3209
3431
|
break;
|
|
3210
3432
|
case "top-end":
|
|
3211
|
-
d = i.right - n.width, p = i.top - n.height -
|
|
3433
|
+
d = i.right - n.width, p = i.top - n.height - C, u = "top";
|
|
3212
3434
|
break;
|
|
3213
3435
|
case "top":
|
|
3214
|
-
d = i.left + i.width / 2 - n.width / 2, p = i.top - n.height -
|
|
3436
|
+
d = i.left + i.width / 2 - n.width / 2, p = i.top - n.height - C, u = "top";
|
|
3215
3437
|
break;
|
|
3216
3438
|
}
|
|
3217
3439
|
t.style.transform = `translate(${Math.round(d - r.left)}px, ${Math.round(p - r.top)}px)`, t.dataset.side = u;
|
|
@@ -3229,7 +3451,7 @@ const g2 = "anduin-menu-item:click", C5 = class C5 extends h {
|
|
|
3229
3451
|
`;
|
|
3230
3452
|
}
|
|
3231
3453
|
};
|
|
3232
|
-
|
|
3454
|
+
u5.styles = v`
|
|
3233
3455
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
3234
3456
|
|
|
3235
3457
|
.menu__trigger { display: inline-block; }
|
|
@@ -3272,25 +3494,25 @@ C5.styles = g`
|
|
|
3272
3494
|
transform: scale(1) translateY(0);
|
|
3273
3495
|
}
|
|
3274
3496
|
`;
|
|
3275
|
-
let
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
],
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
],
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
],
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
],
|
|
3288
|
-
const
|
|
3497
|
+
let r1 = u5;
|
|
3498
|
+
a1([
|
|
3499
|
+
a({ type: Boolean, reflect: !0 })
|
|
3500
|
+
], r1.prototype, "open");
|
|
3501
|
+
a1([
|
|
3502
|
+
a()
|
|
3503
|
+
], r1.prototype, "placement");
|
|
3504
|
+
a1([
|
|
3505
|
+
k(".menu__trigger")
|
|
3506
|
+
], r1.prototype, "_triggerEl");
|
|
3507
|
+
a1([
|
|
3508
|
+
k(".menu__panel")
|
|
3509
|
+
], r1.prototype, "_panelEl");
|
|
3510
|
+
const h5 = class h5 extends h {
|
|
3289
3511
|
constructor() {
|
|
3290
3512
|
super(...arguments), this.icon = "", this.variant = "default", this.disabled = !1;
|
|
3291
3513
|
}
|
|
3292
3514
|
_onClick() {
|
|
3293
|
-
this.dispatchEvent(new CustomEvent(
|
|
3515
|
+
this.dispatchEvent(new CustomEvent(L2, { bubbles: !0, composed: !0 }));
|
|
3294
3516
|
}
|
|
3295
3517
|
render() {
|
|
3296
3518
|
return s`
|
|
@@ -3307,7 +3529,7 @@ const a5 = class a5 extends h {
|
|
|
3307
3529
|
`;
|
|
3308
3530
|
}
|
|
3309
3531
|
};
|
|
3310
|
-
|
|
3532
|
+
h5.styles = v`
|
|
3311
3533
|
:host { display: block; width: 100%; font-family: var(--font-sans); }
|
|
3312
3534
|
.menu-item {
|
|
3313
3535
|
display: flex;
|
|
@@ -3337,26 +3559,26 @@ a5.styles = g`
|
|
|
3337
3559
|
anduin-icon { color: var(--color-gray-7); }
|
|
3338
3560
|
.menu-item--danger anduin-icon { color: var(--color-danger-4); }
|
|
3339
3561
|
`;
|
|
3340
|
-
let
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
],
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
],
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
],
|
|
3350
|
-
customElements.get("anduin-menu") || customElements.define("anduin-menu",
|
|
3351
|
-
customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item",
|
|
3352
|
-
var
|
|
3562
|
+
let g1 = h5;
|
|
3563
|
+
a1([
|
|
3564
|
+
a()
|
|
3565
|
+
], g1.prototype, "icon");
|
|
3566
|
+
a1([
|
|
3567
|
+
a()
|
|
3568
|
+
], g1.prototype, "variant");
|
|
3569
|
+
a1([
|
|
3570
|
+
a({ type: Boolean })
|
|
3571
|
+
], g1.prototype, "disabled");
|
|
3572
|
+
customElements.get("anduin-menu") || customElements.define("anduin-menu", r1);
|
|
3573
|
+
customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", g1);
|
|
3574
|
+
var $3 = Object.defineProperty, C1 = (l, e, t, i) => {
|
|
3353
3575
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
3354
3576
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
3355
|
-
return o &&
|
|
3577
|
+
return o && $3(e, t, o), o;
|
|
3356
3578
|
};
|
|
3357
|
-
const
|
|
3358
|
-
var
|
|
3359
|
-
const
|
|
3579
|
+
const L1 = "anduin-close", E3 = "anduin-after-close", r2 = 300, n2 = 200, N5 = 250;
|
|
3580
|
+
var G;
|
|
3581
|
+
const K = (G = class extends h {
|
|
3360
3582
|
constructor() {
|
|
3361
3583
|
super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.maxWidth = "480", this.fullscreen = !1, this._leaving = !1, this.onAnduinClose = (e) => {
|
|
3362
3584
|
e.target !== this && e.stopPropagation();
|
|
@@ -3364,19 +3586,19 @@ const G = (j = class extends h {
|
|
|
3364
3586
|
}
|
|
3365
3587
|
updated(e) {
|
|
3366
3588
|
if (e.has("maxWidth")) {
|
|
3367
|
-
const t = this.maxWidth, i =
|
|
3589
|
+
const t = this.maxWidth, i = G._PRESETS.has(t) ? `${t}px` : t;
|
|
3368
3590
|
this.style.setProperty("--_modal-width", i);
|
|
3369
3591
|
}
|
|
3370
3592
|
e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(
|
|
3371
3593
|
() => {
|
|
3372
3594
|
this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
|
|
3373
|
-
new CustomEvent(
|
|
3595
|
+
new CustomEvent(E3, {
|
|
3374
3596
|
bubbles: !0,
|
|
3375
3597
|
composed: !0
|
|
3376
3598
|
})
|
|
3377
3599
|
);
|
|
3378
3600
|
},
|
|
3379
|
-
Math.max(
|
|
3601
|
+
Math.max(n2, N5)
|
|
3380
3602
|
)));
|
|
3381
3603
|
}
|
|
3382
3604
|
dispatch(e) {
|
|
@@ -3385,16 +3607,16 @@ const G = (j = class extends h {
|
|
|
3385
3607
|
);
|
|
3386
3608
|
}
|
|
3387
3609
|
onOverlayClick() {
|
|
3388
|
-
this.dispatch(
|
|
3610
|
+
this.dispatch(L1);
|
|
3389
3611
|
}
|
|
3390
3612
|
onClose() {
|
|
3391
|
-
this.dispatch(
|
|
3613
|
+
this.dispatch(L1);
|
|
3392
3614
|
}
|
|
3393
3615
|
connectedCallback() {
|
|
3394
|
-
super.connectedCallback(), this.addEventListener(
|
|
3616
|
+
super.connectedCallback(), this.addEventListener(L1, this.onAnduinClose);
|
|
3395
3617
|
}
|
|
3396
3618
|
disconnectedCallback() {
|
|
3397
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
3619
|
+
super.disconnectedCallback(), this.removeEventListener(L1, this.onAnduinClose);
|
|
3398
3620
|
}
|
|
3399
3621
|
render() {
|
|
3400
3622
|
const e = this._leaving, t = this.fullscreen;
|
|
@@ -3436,7 +3658,7 @@ const G = (j = class extends h {
|
|
|
3436
3658
|
</div>
|
|
3437
3659
|
`;
|
|
3438
3660
|
}
|
|
3439
|
-
},
|
|
3661
|
+
}, G.styles = v`
|
|
3440
3662
|
:host {
|
|
3441
3663
|
display: none;
|
|
3442
3664
|
font-family: var(--font-sans);
|
|
@@ -3508,11 +3730,11 @@ const G = (j = class extends h {
|
|
|
3508
3730
|
inset: 0;
|
|
3509
3731
|
background: rgba(50, 60, 77, 0.6);
|
|
3510
3732
|
cursor: default;
|
|
3511
|
-
animation: overlayIn ${
|
|
3733
|
+
animation: overlayIn ${r2}ms cubic-bezier(0.2, 0, 0, 1)
|
|
3512
3734
|
forwards;
|
|
3513
3735
|
}
|
|
3514
3736
|
.overlay.is-leaving {
|
|
3515
|
-
animation: overlayOut ${
|
|
3737
|
+
animation: overlayOut ${N5}ms
|
|
3516
3738
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3517
3739
|
}
|
|
3518
3740
|
.modal-wrapper {
|
|
@@ -3538,11 +3760,11 @@ const G = (j = class extends h {
|
|
|
3538
3760
|
0 8px 24px 0 rgba(29, 41, 57, 0.12),
|
|
3539
3761
|
0 2px 8px 0 rgba(29, 41, 57, 0.08);
|
|
3540
3762
|
flex-shrink: 0;
|
|
3541
|
-
animation: modalIn ${
|
|
3763
|
+
animation: modalIn ${r2}ms cubic-bezier(0.05, 0.7, 0.1, 1)
|
|
3542
3764
|
forwards;
|
|
3543
3765
|
}
|
|
3544
3766
|
.modal.is-leaving {
|
|
3545
|
-
animation: modalOut ${
|
|
3767
|
+
animation: modalOut ${n2}ms
|
|
3546
3768
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3547
3769
|
}
|
|
3548
3770
|
.modal-wrapper--fullscreen {
|
|
@@ -3572,11 +3794,11 @@ const G = (j = class extends h {
|
|
|
3572
3794
|
max-height: 100%;
|
|
3573
3795
|
height: 100%;
|
|
3574
3796
|
box-shadow: none;
|
|
3575
|
-
animation: modalFullscreenIn ${
|
|
3797
|
+
animation: modalFullscreenIn ${r2}ms
|
|
3576
3798
|
cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
|
|
3577
3799
|
}
|
|
3578
3800
|
.modal--fullscreen.is-leaving {
|
|
3579
|
-
animation: modalFullscreenOut ${
|
|
3801
|
+
animation: modalFullscreenOut ${n2}ms
|
|
3580
3802
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3581
3803
|
}
|
|
3582
3804
|
.header {
|
|
@@ -3622,41 +3844,41 @@ const G = (j = class extends h {
|
|
|
3622
3844
|
padding: 16px 24px;
|
|
3623
3845
|
border-top: 1px solid var(--color-gray-3, #e4e7ec);
|
|
3624
3846
|
}
|
|
3625
|
-
`,
|
|
3847
|
+
`, G._PRESETS = /* @__PURE__ */ new Set([
|
|
3626
3848
|
"480",
|
|
3627
3849
|
"600",
|
|
3628
3850
|
"720",
|
|
3629
3851
|
"960",
|
|
3630
3852
|
"1160"
|
|
3631
|
-
]),
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
],
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
],
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
],
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
],
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
],
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
],
|
|
3650
|
-
|
|
3853
|
+
]), G);
|
|
3854
|
+
C1([
|
|
3855
|
+
a({ type: Boolean, reflect: !0 })
|
|
3856
|
+
], K.prototype, "open");
|
|
3857
|
+
C1([
|
|
3858
|
+
a()
|
|
3859
|
+
], K.prototype, "heading");
|
|
3860
|
+
C1([
|
|
3861
|
+
a({ type: Boolean, attribute: "hide-header" })
|
|
3862
|
+
], K.prototype, "hideHeader");
|
|
3863
|
+
C1([
|
|
3864
|
+
a({ type: Boolean, attribute: "hide-footer" })
|
|
3865
|
+
], K.prototype, "hideFooter");
|
|
3866
|
+
C1([
|
|
3867
|
+
a({ attribute: "max-width" })
|
|
3868
|
+
], K.prototype, "maxWidth");
|
|
3869
|
+
C1([
|
|
3870
|
+
a({ type: Boolean })
|
|
3871
|
+
], K.prototype, "fullscreen");
|
|
3872
|
+
C1([
|
|
3651
3873
|
M()
|
|
3652
|
-
],
|
|
3653
|
-
let
|
|
3654
|
-
customElements.get("anduin-modal") || customElements.define("anduin-modal",
|
|
3655
|
-
class
|
|
3874
|
+
], K.prototype, "_leaving");
|
|
3875
|
+
let A3 = K;
|
|
3876
|
+
customElements.get("anduin-modal") || customElements.define("anduin-modal", A3);
|
|
3877
|
+
class z3 extends HTMLElement {
|
|
3656
3878
|
constructor() {
|
|
3657
3879
|
super(...arguments), this._onClick = () => {
|
|
3658
3880
|
this.dispatchEvent(
|
|
3659
|
-
new CustomEvent(
|
|
3881
|
+
new CustomEvent(L1, { bubbles: !0, composed: !0 })
|
|
3660
3882
|
);
|
|
3661
3883
|
};
|
|
3662
3884
|
}
|
|
@@ -3667,26 +3889,26 @@ class m3 extends HTMLElement {
|
|
|
3667
3889
|
this.removeEventListener("click", this._onClick);
|
|
3668
3890
|
}
|
|
3669
3891
|
}
|
|
3670
|
-
customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close",
|
|
3671
|
-
var
|
|
3892
|
+
customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", z3);
|
|
3893
|
+
var B3 = Object.defineProperty, N = (l, e, t, i) => {
|
|
3672
3894
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
3673
3895
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
3674
|
-
return o &&
|
|
3896
|
+
return o && B3(e, t, o), o;
|
|
3675
3897
|
};
|
|
3676
|
-
const
|
|
3898
|
+
const m2 = "anduin-radio:change", S3 = "anduin-radio-group:change", g5 = class g5 extends h {
|
|
3677
3899
|
constructor() {
|
|
3678
3900
|
super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
|
|
3679
3901
|
}
|
|
3680
3902
|
connectedCallback() {
|
|
3681
3903
|
super.connectedCallback();
|
|
3682
3904
|
const e = this.closest("anduin-field");
|
|
3683
|
-
e && e.addEventListener(
|
|
3905
|
+
e && e.addEventListener(H1, (t) => {
|
|
3684
3906
|
const i = t;
|
|
3685
3907
|
this.inputid && this.inputid === i.detail && !this.disabled && !this.readonly && this._select();
|
|
3686
3908
|
});
|
|
3687
3909
|
}
|
|
3688
3910
|
_select() {
|
|
3689
|
-
this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(
|
|
3911
|
+
this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(m2, {
|
|
3690
3912
|
detail: this.value,
|
|
3691
3913
|
bubbles: !0,
|
|
3692
3914
|
composed: !0
|
|
@@ -3727,7 +3949,7 @@ const f2 = "anduin-radio:change", y3 = "anduin-radio-group:change", s5 = class s
|
|
|
3727
3949
|
`;
|
|
3728
3950
|
}
|
|
3729
3951
|
};
|
|
3730
|
-
|
|
3952
|
+
g5.styles = v`
|
|
3731
3953
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
3732
3954
|
|
|
3733
3955
|
label {
|
|
@@ -3798,34 +4020,34 @@ s5.styles = g`
|
|
|
3798
4020
|
transform: scale(1);
|
|
3799
4021
|
}
|
|
3800
4022
|
`;
|
|
3801
|
-
let
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
],
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
],
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
],
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
],
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
],
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
],
|
|
3820
|
-
customElements.get("anduin-radio") || customElements.define("anduin-radio",
|
|
3821
|
-
const
|
|
4023
|
+
let T = g5;
|
|
4024
|
+
N([
|
|
4025
|
+
a({ type: Boolean })
|
|
4026
|
+
], T.prototype, "checked");
|
|
4027
|
+
N([
|
|
4028
|
+
a({ type: Boolean })
|
|
4029
|
+
], T.prototype, "disabled");
|
|
4030
|
+
N([
|
|
4031
|
+
a({ type: Boolean })
|
|
4032
|
+
], T.prototype, "readonly");
|
|
4033
|
+
N([
|
|
4034
|
+
a()
|
|
4035
|
+
], T.prototype, "value");
|
|
4036
|
+
N([
|
|
4037
|
+
a()
|
|
4038
|
+
], T.prototype, "name");
|
|
4039
|
+
N([
|
|
4040
|
+
a()
|
|
4041
|
+
], T.prototype, "inputid");
|
|
4042
|
+
customElements.get("anduin-radio") || customElements.define("anduin-radio", T);
|
|
4043
|
+
const v5 = class v5 extends h {
|
|
3822
4044
|
constructor() {
|
|
3823
4045
|
super(...arguments), this.value = "", this.name = "", this.orientation = "vertical", this._onRadioChange = (e) => {
|
|
3824
4046
|
const i = e.detail;
|
|
3825
4047
|
i !== this.value && (this.value = i, this.querySelectorAll("anduin-radio").forEach((o) => {
|
|
3826
4048
|
const r = o;
|
|
3827
4049
|
r.checked = r.value === i;
|
|
3828
|
-
}), this.dispatchEvent(new CustomEvent(
|
|
4050
|
+
}), this.dispatchEvent(new CustomEvent(S3, {
|
|
3829
4051
|
detail: i,
|
|
3830
4052
|
bubbles: !0,
|
|
3831
4053
|
composed: !0
|
|
@@ -3833,10 +4055,10 @@ const d5 = class d5 extends h {
|
|
|
3833
4055
|
};
|
|
3834
4056
|
}
|
|
3835
4057
|
connectedCallback() {
|
|
3836
|
-
super.connectedCallback(), this.addEventListener(
|
|
4058
|
+
super.connectedCallback(), this.addEventListener(m2, this._onRadioChange);
|
|
3837
4059
|
}
|
|
3838
4060
|
disconnectedCallback() {
|
|
3839
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
4061
|
+
super.disconnectedCallback(), this.removeEventListener(m2, this._onRadioChange);
|
|
3840
4062
|
}
|
|
3841
4063
|
render() {
|
|
3842
4064
|
return s`
|
|
@@ -3846,7 +4068,7 @@ const d5 = class d5 extends h {
|
|
|
3846
4068
|
`;
|
|
3847
4069
|
}
|
|
3848
4070
|
};
|
|
3849
|
-
|
|
4071
|
+
v5.styles = v`
|
|
3850
4072
|
:host { display: block; font-family: var(--font-sans); }
|
|
3851
4073
|
|
|
3852
4074
|
.group {
|
|
@@ -3856,23 +4078,23 @@ d5.styles = g`
|
|
|
3856
4078
|
.group--vertical { flex-direction: column; }
|
|
3857
4079
|
.group--horizontal { flex-direction: row; flex-wrap: wrap; align-items: center; }
|
|
3858
4080
|
`;
|
|
3859
|
-
let
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
],
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
],
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
],
|
|
3869
|
-
customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group",
|
|
3870
|
-
var
|
|
4081
|
+
let v1 = v5;
|
|
4082
|
+
N([
|
|
4083
|
+
a()
|
|
4084
|
+
], v1.prototype, "value");
|
|
4085
|
+
N([
|
|
4086
|
+
a()
|
|
4087
|
+
], v1.prototype, "name");
|
|
4088
|
+
N([
|
|
4089
|
+
a()
|
|
4090
|
+
], v1.prototype, "orientation");
|
|
4091
|
+
customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", v1);
|
|
4092
|
+
var P3 = Object.defineProperty, s1 = (l, e, t, i) => {
|
|
3871
4093
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
3872
4094
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
3873
|
-
return o &&
|
|
4095
|
+
return o && P3(e, t, o), o;
|
|
3874
4096
|
};
|
|
3875
|
-
const
|
|
4097
|
+
const j5 = [
|
|
3876
4098
|
{ bg: "#6172F3", text: "#ffffff" },
|
|
3877
4099
|
{ bg: "#B692F6", text: "#ffffff" },
|
|
3878
4100
|
{ bg: "#F670C7", text: "#ffffff" },
|
|
@@ -3882,17 +4104,17 @@ const P5 = [
|
|
|
3882
4104
|
{ bg: "#F97066", text: "#ffffff" },
|
|
3883
4105
|
{ bg: "#7A5AF8", text: "#ffffff" }
|
|
3884
4106
|
];
|
|
3885
|
-
function
|
|
4107
|
+
function F3(l) {
|
|
3886
4108
|
let e = 0;
|
|
3887
4109
|
for (let t = 0; t < l.length; t++) e = e * 31 + l.charCodeAt(t) >>> 0;
|
|
3888
|
-
return
|
|
4110
|
+
return j5[e % j5.length];
|
|
3889
4111
|
}
|
|
3890
|
-
function
|
|
4112
|
+
function O3(l) {
|
|
3891
4113
|
var t;
|
|
3892
4114
|
const e = l.trim().split(/\s+/);
|
|
3893
4115
|
return e.length === 1 ? ((t = e[0][0]) == null ? void 0 : t.toUpperCase()) ?? "" : ((e[0][0] ?? "") + (e[e.length - 1][0] ?? "")).toUpperCase();
|
|
3894
4116
|
}
|
|
3895
|
-
const
|
|
4117
|
+
const f5 = class f5 extends h {
|
|
3896
4118
|
constructor() {
|
|
3897
4119
|
super(...arguments), this.src = "", this.name = "", this.alt = "", this.icon = "", this.size = 32, this.shape = "circle", this._imgError = !1;
|
|
3898
4120
|
}
|
|
@@ -3903,7 +4125,7 @@ const c5 = class c5 extends h {
|
|
|
3903
4125
|
return this.size <= 16 ? 10 : this.size <= 20 ? 12 : this.size <= 24 ? 14 : 18;
|
|
3904
4126
|
}
|
|
3905
4127
|
render() {
|
|
3906
|
-
const e = !!this.src && !this._imgError, t = this.name || this.icon ?
|
|
4128
|
+
const e = !!this.src && !this._imgError, t = this.name || this.icon ? F3(this.name || this.icon) : { bg: "#F2F4F7", text: "#667085" }, i = this.name ? O3(this.name) : "";
|
|
3907
4129
|
return s`
|
|
3908
4130
|
<div
|
|
3909
4131
|
class="avatar avatar--${this.shape} avatar--${this.size}"
|
|
@@ -3921,7 +4143,7 @@ const c5 = class c5 extends h {
|
|
|
3921
4143
|
`;
|
|
3922
4144
|
}
|
|
3923
4145
|
};
|
|
3924
|
-
|
|
4146
|
+
f5.styles = v`
|
|
3925
4147
|
:host { display: inline-flex; }
|
|
3926
4148
|
|
|
3927
4149
|
.avatar {
|
|
@@ -3950,36 +4172,36 @@ c5.styles = g`
|
|
|
3950
4172
|
display: block;
|
|
3951
4173
|
}
|
|
3952
4174
|
`;
|
|
3953
|
-
let
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
],
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
],
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
],
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
],
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
],
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
],
|
|
3972
|
-
|
|
4175
|
+
let F = f5;
|
|
4176
|
+
s1([
|
|
4177
|
+
a()
|
|
4178
|
+
], F.prototype, "src");
|
|
4179
|
+
s1([
|
|
4180
|
+
a()
|
|
4181
|
+
], F.prototype, "name");
|
|
4182
|
+
s1([
|
|
4183
|
+
a()
|
|
4184
|
+
], F.prototype, "alt");
|
|
4185
|
+
s1([
|
|
4186
|
+
a()
|
|
4187
|
+
], F.prototype, "icon");
|
|
4188
|
+
s1([
|
|
4189
|
+
a({ type: Number })
|
|
4190
|
+
], F.prototype, "size");
|
|
4191
|
+
s1([
|
|
4192
|
+
a()
|
|
4193
|
+
], F.prototype, "shape");
|
|
4194
|
+
s1([
|
|
3973
4195
|
M()
|
|
3974
|
-
],
|
|
3975
|
-
customElements.get("anduin-avatar") || customElements.define("anduin-avatar",
|
|
4196
|
+
], F.prototype, "_imgError");
|
|
4197
|
+
customElements.get("anduin-avatar") || customElements.define("anduin-avatar", F);
|
|
3976
4198
|
/**
|
|
3977
4199
|
* @license
|
|
3978
4200
|
* Copyright 2017 Google LLC
|
|
3979
4201
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3980
4202
|
*/
|
|
3981
|
-
const
|
|
3982
|
-
class
|
|
4203
|
+
const D3 = { CHILD: 2 }, I3 = (l) => (...e) => ({ _$litDirective$: l, values: e });
|
|
4204
|
+
class T3 {
|
|
3983
4205
|
constructor(e) {
|
|
3984
4206
|
}
|
|
3985
4207
|
get _$AU() {
|
|
@@ -4000,13 +4222,13 @@ class k3 {
|
|
|
4000
4222
|
* Copyright 2017 Google LLC
|
|
4001
4223
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4002
4224
|
*/
|
|
4003
|
-
class
|
|
4225
|
+
class b2 extends T3 {
|
|
4004
4226
|
constructor(e) {
|
|
4005
|
-
if (super(e), this.it = c, e.type !==
|
|
4227
|
+
if (super(e), this.it = c, e.type !== D3.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
4006
4228
|
}
|
|
4007
4229
|
render(e) {
|
|
4008
4230
|
if (e === c || e == null) return this._t = void 0, this.it = e;
|
|
4009
|
-
if (e ===
|
|
4231
|
+
if (e === l1) return e;
|
|
4010
4232
|
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
4011
4233
|
if (e === this.it) return this._t;
|
|
4012
4234
|
this.it = e;
|
|
@@ -4014,16 +4236,16 @@ class H2 extends k3 {
|
|
|
4014
4236
|
return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
|
|
4015
4237
|
}
|
|
4016
4238
|
}
|
|
4017
|
-
|
|
4239
|
+
b2.directiveName = "unsafeHTML", b2.resultType = 1;
|
|
4018
4240
|
/**
|
|
4019
4241
|
* @license
|
|
4020
4242
|
* Copyright 2017 Google LLC
|
|
4021
4243
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4022
4244
|
*/
|
|
4023
|
-
class
|
|
4245
|
+
class M2 extends b2 {
|
|
4024
4246
|
}
|
|
4025
|
-
|
|
4026
|
-
const
|
|
4247
|
+
M2.directiveName = "unsafeSVG", M2.resultType = 2;
|
|
4248
|
+
const N3 = I3(M2), j3 = {
|
|
4027
4249
|
archive: {
|
|
4028
4250
|
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"/>
|
|
4029
4251
|
<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"/>
|
|
@@ -4267,26 +4489,26 @@ const $3 = R3(V2), E3 = {
|
|
|
4267
4489
|
<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"/>
|
|
4268
4490
|
<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"/>` }
|
|
4269
4491
|
}
|
|
4270
|
-
},
|
|
4271
|
-
function
|
|
4272
|
-
const t =
|
|
4492
|
+
}, U3 = [32, 24, 16];
|
|
4493
|
+
function q3(l, e) {
|
|
4494
|
+
const t = j3[l];
|
|
4273
4495
|
if (!t) return null;
|
|
4274
4496
|
if (t[e]) return t[e];
|
|
4275
|
-
for (const i of
|
|
4497
|
+
for (const i of U3)
|
|
4276
4498
|
if (t[i]) return t[i];
|
|
4277
4499
|
return null;
|
|
4278
4500
|
}
|
|
4279
|
-
var
|
|
4501
|
+
var G3 = Object.defineProperty, f4 = (l, e, t, i) => {
|
|
4280
4502
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
4281
4503
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
4282
|
-
return o &&
|
|
4504
|
+
return o && G3(e, t, o), o;
|
|
4283
4505
|
};
|
|
4284
|
-
const
|
|
4506
|
+
const H5 = class H5 extends h {
|
|
4285
4507
|
constructor() {
|
|
4286
4508
|
super(...arguments), this.type = "pdf", this.size = 32;
|
|
4287
4509
|
}
|
|
4288
4510
|
render() {
|
|
4289
|
-
const e =
|
|
4511
|
+
const e = q3(this.type, this.size);
|
|
4290
4512
|
return e ? s`
|
|
4291
4513
|
<svg
|
|
4292
4514
|
width=${this.size}
|
|
@@ -4297,35 +4519,35 @@ const p5 = class p5 extends h {
|
|
|
4297
4519
|
aria-label="${this.type} file"
|
|
4298
4520
|
role="img"
|
|
4299
4521
|
>
|
|
4300
|
-
${
|
|
4522
|
+
${N3(e.paths)}
|
|
4301
4523
|
</svg>
|
|
4302
4524
|
` : c;
|
|
4303
4525
|
}
|
|
4304
4526
|
};
|
|
4305
|
-
|
|
4527
|
+
H5.styles = v`
|
|
4306
4528
|
:host { display: inline-flex; align-items: center; justify-content: center; }
|
|
4307
4529
|
svg { display: block; }
|
|
4308
4530
|
`;
|
|
4309
|
-
let
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
],
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
],
|
|
4316
|
-
customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon",
|
|
4317
|
-
var
|
|
4531
|
+
let S1 = H5;
|
|
4532
|
+
f4([
|
|
4533
|
+
a()
|
|
4534
|
+
], S1.prototype, "type");
|
|
4535
|
+
f4([
|
|
4536
|
+
a({ type: Number })
|
|
4537
|
+
], S1.prototype, "size");
|
|
4538
|
+
customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", S1);
|
|
4539
|
+
var W3 = Object.defineProperty, d1 = (l, e, t, i) => {
|
|
4318
4540
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
4319
4541
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
4320
|
-
return o &&
|
|
4542
|
+
return o && W3(e, t, o), o;
|
|
4321
4543
|
};
|
|
4322
|
-
const
|
|
4544
|
+
const U5 = {
|
|
4323
4545
|
gray: "info",
|
|
4324
4546
|
primary: "infoCircleLine",
|
|
4325
4547
|
success: "checkCircle",
|
|
4326
4548
|
warning: "warning",
|
|
4327
4549
|
danger: "error"
|
|
4328
|
-
},
|
|
4550
|
+
}, Y3 = "anduin-toast:dismiss", V5 = class V5 extends h {
|
|
4329
4551
|
constructor() {
|
|
4330
4552
|
super(...arguments), this.variant = "gray", this.heading = "", this.description = "", this._dismissing = !1;
|
|
4331
4553
|
}
|
|
@@ -4336,7 +4558,7 @@ const F5 = {
|
|
|
4336
4558
|
const e = (i) => {
|
|
4337
4559
|
var o;
|
|
4338
4560
|
i.propertyName === "opacity" && ((o = this._toastEl) == null || o.removeEventListener("transitionend", e), this.dispatchEvent(
|
|
4339
|
-
new CustomEvent(
|
|
4561
|
+
new CustomEvent(Y3, { bubbles: !0, composed: !0 })
|
|
4340
4562
|
));
|
|
4341
4563
|
};
|
|
4342
4564
|
(t = this._toastEl) == null || t.addEventListener("transitionend", e);
|
|
@@ -4345,7 +4567,7 @@ const F5 = {
|
|
|
4345
4567
|
this.dismiss();
|
|
4346
4568
|
}
|
|
4347
4569
|
render() {
|
|
4348
|
-
const e =
|
|
4570
|
+
const e = U5[this.variant] ?? U5.gray;
|
|
4349
4571
|
return s`
|
|
4350
4572
|
<div
|
|
4351
4573
|
class="toast toast--${this.variant} ${this._dismissing ? "toast--dismissing" : ""}"
|
|
@@ -4371,7 +4593,7 @@ const F5 = {
|
|
|
4371
4593
|
`;
|
|
4372
4594
|
}
|
|
4373
4595
|
};
|
|
4374
|
-
|
|
4596
|
+
V5.styles = v`
|
|
4375
4597
|
:host {
|
|
4376
4598
|
display: block;
|
|
4377
4599
|
font-family: var(--font-sans);
|
|
@@ -4499,24 +4721,24 @@ u5.styles = g`
|
|
|
4499
4721
|
background: var(--color-gray-3, #d0d5dd);
|
|
4500
4722
|
}
|
|
4501
4723
|
`;
|
|
4502
|
-
let
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
],
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
],
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
],
|
|
4512
|
-
|
|
4724
|
+
let Y = V5;
|
|
4725
|
+
d1([
|
|
4726
|
+
a()
|
|
4727
|
+
], Y.prototype, "variant");
|
|
4728
|
+
d1([
|
|
4729
|
+
a()
|
|
4730
|
+
], Y.prototype, "heading");
|
|
4731
|
+
d1([
|
|
4732
|
+
a()
|
|
4733
|
+
], Y.prototype, "description");
|
|
4734
|
+
d1([
|
|
4513
4735
|
M()
|
|
4514
|
-
],
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
],
|
|
4518
|
-
customElements.get("anduin-toast") || customElements.define("anduin-toast",
|
|
4519
|
-
const
|
|
4736
|
+
], Y.prototype, "_dismissing");
|
|
4737
|
+
d1([
|
|
4738
|
+
k(".toast")
|
|
4739
|
+
], Y.prototype, "_toastEl");
|
|
4740
|
+
customElements.get("anduin-toast") || customElements.define("anduin-toast", Y);
|
|
4741
|
+
const L5 = class L5 extends h {
|
|
4520
4742
|
constructor() {
|
|
4521
4743
|
super(...arguments), this.position = "bottom-left", this._toasts = [], this._nextId = 0;
|
|
4522
4744
|
}
|
|
@@ -4560,7 +4782,7 @@ const h5 = class h5 extends h {
|
|
|
4560
4782
|
`;
|
|
4561
4783
|
}
|
|
4562
4784
|
};
|
|
4563
|
-
|
|
4785
|
+
L5.styles = v`
|
|
4564
4786
|
:host {
|
|
4565
4787
|
display: contents;
|
|
4566
4788
|
pointer-events: none;
|
|
@@ -4607,17 +4829,17 @@ h5.styles = g`
|
|
|
4607
4829
|
align-items: flex-end;
|
|
4608
4830
|
}
|
|
4609
4831
|
`;
|
|
4610
|
-
let
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
],
|
|
4614
|
-
|
|
4832
|
+
let P1 = L5;
|
|
4833
|
+
d1([
|
|
4834
|
+
a()
|
|
4835
|
+
], P1.prototype, "position");
|
|
4836
|
+
d1([
|
|
4615
4837
|
M()
|
|
4616
|
-
],
|
|
4617
|
-
customElements.get("anduin-toaster") || customElements.define("anduin-toaster",
|
|
4618
|
-
const
|
|
4838
|
+
], P1.prototype, "_toasts");
|
|
4839
|
+
customElements.get("anduin-toaster") || customElements.define("anduin-toaster", P1);
|
|
4840
|
+
const c7 = {
|
|
4619
4841
|
show(l) {
|
|
4620
|
-
return
|
|
4842
|
+
return X3(l.position).show(l);
|
|
4621
4843
|
},
|
|
4622
4844
|
success(l, e, t) {
|
|
4623
4845
|
return this.show({ ...t, variant: "success", heading: l, description: e });
|
|
@@ -4634,23 +4856,23 @@ const Q3 = {
|
|
|
4634
4856
|
gray(l, e, t) {
|
|
4635
4857
|
return this.show({ ...t, variant: "gray", heading: l, description: e });
|
|
4636
4858
|
}
|
|
4637
|
-
},
|
|
4638
|
-
function
|
|
4639
|
-
if (
|
|
4859
|
+
}, a2 = /* @__PURE__ */ new Map();
|
|
4860
|
+
function X3(l = "bottom-left") {
|
|
4861
|
+
if (a2.has(l)) return a2.get(l);
|
|
4640
4862
|
const e = document.createElement("anduin-toaster");
|
|
4641
|
-
return e.position = l, document.body.appendChild(e),
|
|
4863
|
+
return e.position = l, document.body.appendChild(e), a2.set(l, e), e;
|
|
4642
4864
|
}
|
|
4643
|
-
var
|
|
4865
|
+
var K3 = Object.defineProperty, H4 = (l, e, t, i) => {
|
|
4644
4866
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
4645
4867
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
4646
|
-
return o &&
|
|
4868
|
+
return o && K3(e, t, o), o;
|
|
4647
4869
|
};
|
|
4648
|
-
const
|
|
4870
|
+
const J3 = "anduin-switcher:change", m5 = class m5 extends h {
|
|
4649
4871
|
constructor() {
|
|
4650
4872
|
super(...arguments), this.checked = !1, this.disabled = !1;
|
|
4651
4873
|
}
|
|
4652
4874
|
onChange() {
|
|
4653
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
4875
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(J3, {
|
|
4654
4876
|
detail: this.checked,
|
|
4655
4877
|
bubbles: !0,
|
|
4656
4878
|
composed: !0
|
|
@@ -4674,7 +4896,7 @@ const D3 = "anduin-switcher:change", v5 = class v5 extends h {
|
|
|
4674
4896
|
`;
|
|
4675
4897
|
}
|
|
4676
4898
|
};
|
|
4677
|
-
|
|
4899
|
+
m5.styles = v`
|
|
4678
4900
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
4679
4901
|
|
|
4680
4902
|
label {
|
|
@@ -4738,20 +4960,20 @@ v5.styles = g`
|
|
|
4738
4960
|
line-height: 20px;
|
|
4739
4961
|
}
|
|
4740
4962
|
`;
|
|
4741
|
-
let
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
],
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
],
|
|
4748
|
-
customElements.get("anduin-switcher") || customElements.define("anduin-switcher",
|
|
4749
|
-
var
|
|
4963
|
+
let F1 = m5;
|
|
4964
|
+
H4([
|
|
4965
|
+
a({ type: Boolean })
|
|
4966
|
+
], F1.prototype, "checked");
|
|
4967
|
+
H4([
|
|
4968
|
+
a({ type: Boolean })
|
|
4969
|
+
], F1.prototype, "disabled");
|
|
4970
|
+
customElements.get("anduin-switcher") || customElements.define("anduin-switcher", F1);
|
|
4971
|
+
var Q3 = Object.defineProperty, y = (l, e, t, i) => {
|
|
4750
4972
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
4751
4973
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
4752
|
-
return o &&
|
|
4974
|
+
return o && Q3(e, t, o), o;
|
|
4753
4975
|
};
|
|
4754
|
-
const
|
|
4976
|
+
const q5 = "anduin-dropdown:change", b5 = class b5 extends h {
|
|
4755
4977
|
constructor() {
|
|
4756
4978
|
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) => {
|
|
4757
4979
|
var t;
|
|
@@ -4783,14 +5005,14 @@ const O5 = "anduin-dropdown:change", g5 = class g5 extends h {
|
|
|
4783
5005
|
e.key === "Escape" && (this._open = !1, this._query = "", (t = this._triggerEl) == null || t.focus());
|
|
4784
5006
|
}
|
|
4785
5007
|
_onClear(e) {
|
|
4786
|
-
e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(
|
|
5008
|
+
e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(q5, {
|
|
4787
5009
|
detail: "",
|
|
4788
5010
|
bubbles: !0,
|
|
4789
5011
|
composed: !0
|
|
4790
5012
|
}));
|
|
4791
5013
|
}
|
|
4792
5014
|
_selectOption(e) {
|
|
4793
|
-
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(
|
|
5015
|
+
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(q5, {
|
|
4794
5016
|
detail: e.value,
|
|
4795
5017
|
bubbles: !0,
|
|
4796
5018
|
composed: !0
|
|
@@ -4805,11 +5027,11 @@ const O5 = "anduin-dropdown:change", g5 = class g5 extends h {
|
|
|
4805
5027
|
t.style.transform = o;
|
|
4806
5028
|
const n = t.querySelector(".panel__inner");
|
|
4807
5029
|
n && (n.style.minWidth = `${i.width}px`);
|
|
4808
|
-
const
|
|
5030
|
+
const C = t.getBoundingClientRect(), d = 4, p = window.innerWidth, u = window.innerHeight, g = 8, H = u - i.bottom - d, f = i.top - d, j = C.height <= H || H >= f ? i.bottom + d : i.top - C.height - d;
|
|
4809
5031
|
let x = i.left;
|
|
4810
|
-
this.placement === "bottom-end" ? x = i.right -
|
|
4811
|
-
const
|
|
4812
|
-
t.style.transform = `translate(${Math.round(x - r.left)}px, ${Math.round(
|
|
5032
|
+
this.placement === "bottom-end" ? x = i.right - C.width : this.placement === "bottom" && (x = i.left + i.width / 2 - C.width / 2), x = Math.max(g, Math.min(x, p - C.width - g));
|
|
5033
|
+
const O = Math.max(g, Math.min(j, u - C.height - g));
|
|
5034
|
+
t.style.transform = `translate(${Math.round(x - r.left)}px, ${Math.round(O - r.top)}px)`;
|
|
4813
5035
|
}
|
|
4814
5036
|
get _filteredOptions() {
|
|
4815
5037
|
if (!this._query) return this.options;
|
|
@@ -4876,7 +5098,7 @@ const O5 = "anduin-dropdown:change", g5 = class g5 extends h {
|
|
|
4876
5098
|
`;
|
|
4877
5099
|
}
|
|
4878
5100
|
};
|
|
4879
|
-
|
|
5101
|
+
b5.styles = v`
|
|
4880
5102
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
4881
5103
|
:host([full-width]) { display: block; width: 100%; }
|
|
4882
5104
|
:host([full-width]) .trigger { width: 100%; }
|
|
@@ -5056,39 +5278,39 @@ g5.styles = g`
|
|
|
5056
5278
|
text-align: center;
|
|
5057
5279
|
}
|
|
5058
5280
|
`;
|
|
5059
|
-
let L =
|
|
5281
|
+
let L = b5;
|
|
5060
5282
|
y([
|
|
5061
|
-
|
|
5283
|
+
a()
|
|
5062
5284
|
], L.prototype, "value");
|
|
5063
5285
|
y([
|
|
5064
|
-
|
|
5286
|
+
a()
|
|
5065
5287
|
], L.prototype, "placeholder");
|
|
5066
5288
|
y([
|
|
5067
|
-
|
|
5289
|
+
a({ attribute: !1 })
|
|
5068
5290
|
], L.prototype, "options");
|
|
5069
5291
|
y([
|
|
5070
|
-
|
|
5292
|
+
a()
|
|
5071
5293
|
], L.prototype, "icon");
|
|
5072
5294
|
y([
|
|
5073
|
-
|
|
5295
|
+
a({ type: Boolean })
|
|
5074
5296
|
], L.prototype, "searchable");
|
|
5075
5297
|
y([
|
|
5076
|
-
|
|
5298
|
+
a({ type: Boolean })
|
|
5077
5299
|
], L.prototype, "disabled");
|
|
5078
5300
|
y([
|
|
5079
|
-
|
|
5301
|
+
a()
|
|
5080
5302
|
], L.prototype, "placement");
|
|
5081
5303
|
y([
|
|
5082
|
-
|
|
5304
|
+
a()
|
|
5083
5305
|
], L.prototype, "appearance");
|
|
5084
5306
|
y([
|
|
5085
|
-
|
|
5307
|
+
a()
|
|
5086
5308
|
], L.prototype, "variant");
|
|
5087
5309
|
y([
|
|
5088
|
-
|
|
5310
|
+
a()
|
|
5089
5311
|
], L.prototype, "size");
|
|
5090
5312
|
y([
|
|
5091
|
-
|
|
5313
|
+
a({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
5092
5314
|
], L.prototype, "fullWidth");
|
|
5093
5315
|
y([
|
|
5094
5316
|
M()
|
|
@@ -5097,26 +5319,26 @@ y([
|
|
|
5097
5319
|
M()
|
|
5098
5320
|
], L.prototype, "_query");
|
|
5099
5321
|
y([
|
|
5100
|
-
|
|
5322
|
+
k(".trigger")
|
|
5101
5323
|
], L.prototype, "_triggerEl");
|
|
5102
5324
|
y([
|
|
5103
|
-
|
|
5325
|
+
k(".panel")
|
|
5104
5326
|
], L.prototype, "_panelEl");
|
|
5105
5327
|
y([
|
|
5106
|
-
|
|
5328
|
+
k("anduin-input")
|
|
5107
5329
|
], L.prototype, "_searchEl");
|
|
5108
5330
|
customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", L);
|
|
5109
|
-
var
|
|
5331
|
+
var e7 = Object.defineProperty, J = (l, e, t, i) => {
|
|
5110
5332
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
5111
5333
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
5112
|
-
return o &&
|
|
5334
|
+
return o && e7(e, t, o), o;
|
|
5113
5335
|
};
|
|
5114
|
-
const
|
|
5336
|
+
const y2 = "anduin-close", t7 = "anduin-after-close", o7 = 300, G5 = 250, i7 = /* @__PURE__ */ new Map([
|
|
5115
5337
|
["320", 320],
|
|
5116
5338
|
["360", 360],
|
|
5117
5339
|
["400", 400],
|
|
5118
5340
|
["640", 640]
|
|
5119
|
-
]),
|
|
5341
|
+
]), M5 = class M5 extends h {
|
|
5120
5342
|
constructor() {
|
|
5121
5343
|
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) => {
|
|
5122
5344
|
this._resizing = !0, this._startX = e.clientX, this._startWidth = this._width, e.currentTarget.setPointerCapture(e.pointerId), e.preventDefault();
|
|
@@ -5135,17 +5357,17 @@ const L2 = "anduin-close", N3 = "anduin-after-close", j3 = 300, D5 = 250, U3 = /
|
|
|
5135
5357
|
};
|
|
5136
5358
|
}
|
|
5137
5359
|
willUpdate(e) {
|
|
5138
|
-
e.has("defaultWidth") && (this._width =
|
|
5360
|
+
e.has("defaultWidth") && (this._width = i7.get(this.defaultWidth) ?? (parseInt(this.defaultWidth) || 320));
|
|
5139
5361
|
}
|
|
5140
5362
|
updated(e) {
|
|
5141
5363
|
e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(() => {
|
|
5142
5364
|
this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
|
|
5143
|
-
new CustomEvent(
|
|
5365
|
+
new CustomEvent(t7, {
|
|
5144
5366
|
bubbles: !0,
|
|
5145
5367
|
composed: !0
|
|
5146
5368
|
})
|
|
5147
5369
|
);
|
|
5148
|
-
},
|
|
5370
|
+
}, G5)));
|
|
5149
5371
|
}
|
|
5150
5372
|
_dispatch(e) {
|
|
5151
5373
|
this.dispatchEvent(
|
|
@@ -5153,10 +5375,10 @@ const L2 = "anduin-close", N3 = "anduin-after-close", j3 = 300, D5 = 250, U3 = /
|
|
|
5153
5375
|
);
|
|
5154
5376
|
}
|
|
5155
5377
|
_onClose() {
|
|
5156
|
-
this._dispatch(
|
|
5378
|
+
this._dispatch(y2);
|
|
5157
5379
|
}
|
|
5158
5380
|
_onBackdropClick() {
|
|
5159
|
-
this._dispatch(
|
|
5381
|
+
this._dispatch(y2);
|
|
5160
5382
|
}
|
|
5161
5383
|
render() {
|
|
5162
5384
|
const e = this._leaving;
|
|
@@ -5199,7 +5421,7 @@ const L2 = "anduin-close", N3 = "anduin-after-close", j3 = 300, D5 = 250, U3 = /
|
|
|
5199
5421
|
`;
|
|
5200
5422
|
}
|
|
5201
5423
|
};
|
|
5202
|
-
|
|
5424
|
+
M5.styles = v`
|
|
5203
5425
|
:host {
|
|
5204
5426
|
display: none;
|
|
5205
5427
|
font-family: var(--font-sans);
|
|
@@ -5246,14 +5468,14 @@ f5.styles = g`
|
|
|
5246
5468
|
box-shadow:
|
|
5247
5469
|
-8px 0 24px 0 rgba(29, 41, 57, 0.12),
|
|
5248
5470
|
-2px 0 8px 0 rgba(29, 41, 57, 0.08);
|
|
5249
|
-
animation: drawerIn ${
|
|
5471
|
+
animation: drawerIn ${o7}ms cubic-bezier(0.05, 0.7, 0.1, 1)
|
|
5250
5472
|
forwards;
|
|
5251
5473
|
min-width: 200px;
|
|
5252
5474
|
max-width: 90vw;
|
|
5253
5475
|
pointer-events: auto;
|
|
5254
5476
|
}
|
|
5255
5477
|
.drawer.is-leaving {
|
|
5256
|
-
animation: drawerOut ${
|
|
5478
|
+
animation: drawerOut ${G5}ms
|
|
5257
5479
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
5258
5480
|
}
|
|
5259
5481
|
@media (max-width: 640px) {
|
|
@@ -5317,37 +5539,37 @@ f5.styles = g`
|
|
|
5317
5539
|
border-top: 1px solid var(--color-gray-3, #e4e7ec);
|
|
5318
5540
|
}
|
|
5319
5541
|
`;
|
|
5320
|
-
let
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
],
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
],
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
],
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
],
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
],
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
],
|
|
5339
|
-
|
|
5542
|
+
let A = M5;
|
|
5543
|
+
J([
|
|
5544
|
+
a({ type: Boolean, reflect: !0 })
|
|
5545
|
+
], A.prototype, "open");
|
|
5546
|
+
J([
|
|
5547
|
+
a()
|
|
5548
|
+
], A.prototype, "heading");
|
|
5549
|
+
J([
|
|
5550
|
+
a({ type: Boolean, attribute: "hide-header" })
|
|
5551
|
+
], A.prototype, "hideHeader");
|
|
5552
|
+
J([
|
|
5553
|
+
a({ type: Boolean, attribute: "hide-footer" })
|
|
5554
|
+
], A.prototype, "hideFooter");
|
|
5555
|
+
J([
|
|
5556
|
+
a({ attribute: "default-width" })
|
|
5557
|
+
], A.prototype, "defaultWidth");
|
|
5558
|
+
J([
|
|
5559
|
+
a({ type: Boolean, attribute: "allow-interact-outside" })
|
|
5560
|
+
], A.prototype, "allowInteractOutside");
|
|
5561
|
+
J([
|
|
5340
5562
|
M()
|
|
5341
|
-
],
|
|
5342
|
-
|
|
5563
|
+
], A.prototype, "_leaving");
|
|
5564
|
+
J([
|
|
5343
5565
|
M()
|
|
5344
|
-
],
|
|
5345
|
-
customElements.get("anduin-drawer") || customElements.define("anduin-drawer",
|
|
5346
|
-
class
|
|
5566
|
+
], A.prototype, "_width");
|
|
5567
|
+
customElements.get("anduin-drawer") || customElements.define("anduin-drawer", A);
|
|
5568
|
+
class l7 extends HTMLElement {
|
|
5347
5569
|
constructor() {
|
|
5348
5570
|
super(...arguments), this._onClick = () => {
|
|
5349
5571
|
this.dispatchEvent(
|
|
5350
|
-
new CustomEvent(
|
|
5572
|
+
new CustomEvent(y2, { bubbles: !0, composed: !0 })
|
|
5351
5573
|
);
|
|
5352
5574
|
};
|
|
5353
5575
|
}
|
|
@@ -5358,13 +5580,13 @@ class q3 extends HTMLElement {
|
|
|
5358
5580
|
this.removeEventListener("click", this._onClick);
|
|
5359
5581
|
}
|
|
5360
5582
|
}
|
|
5361
|
-
customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close",
|
|
5362
|
-
var
|
|
5583
|
+
customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", l7);
|
|
5584
|
+
var r7 = Object.defineProperty, b = (l, e, t, i) => {
|
|
5363
5585
|
for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
|
|
5364
5586
|
(n = l[r]) && (o = n(e, t, o) || o);
|
|
5365
|
-
return o &&
|
|
5587
|
+
return o && r7(e, t, o), o;
|
|
5366
5588
|
};
|
|
5367
|
-
const
|
|
5589
|
+
const C2 = "anduin-suggestion:change", n7 = "anduin-suggestion:select", a7 = "anduin-suggestion:clear", y5 = class y5 extends h {
|
|
5368
5590
|
constructor() {
|
|
5369
5591
|
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) => {
|
|
5370
5592
|
var t;
|
|
@@ -5376,7 +5598,7 @@ const r2 = "anduin-suggestion:change", G3 = "anduin-suggestion:select", Y3 = "an
|
|
|
5376
5598
|
connectedCallback() {
|
|
5377
5599
|
super.connectedCallback(), document.addEventListener("mousedown", this._onDocumentMouseDown), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
|
|
5378
5600
|
const e = this.closest("anduin-field");
|
|
5379
|
-
e && e.addEventListener(
|
|
5601
|
+
e && e.addEventListener(H1, (t) => {
|
|
5380
5602
|
var o;
|
|
5381
5603
|
const i = t;
|
|
5382
5604
|
this.inputid && this.inputid === i.detail && ((o = this._inputEl) == null || o.focus());
|
|
@@ -5404,7 +5626,7 @@ const r2 = "anduin-suggestion:change", G3 = "anduin-suggestion:select", Y3 = "an
|
|
|
5404
5626
|
this._openPanel();
|
|
5405
5627
|
}
|
|
5406
5628
|
_onInput() {
|
|
5407
|
-
this.value = this._inputEl.value, this._open || this._openPanel(), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(
|
|
5629
|
+
this.value = this._inputEl.value, this._open || this._openPanel(), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(C2, {
|
|
5408
5630
|
detail: this.value,
|
|
5409
5631
|
bubbles: !0,
|
|
5410
5632
|
composed: !0
|
|
@@ -5437,11 +5659,11 @@ const r2 = "anduin-suggestion:change", G3 = "anduin-suggestion:select", Y3 = "an
|
|
|
5437
5659
|
}
|
|
5438
5660
|
_selectSuggestion(e) {
|
|
5439
5661
|
var t;
|
|
5440
|
-
this.value = e.value, this._inputEl && (this._inputEl.value = e.value), this._open = !1, this.dispatchEvent(new CustomEvent(
|
|
5662
|
+
this.value = e.value, this._inputEl && (this._inputEl.value = e.value), this._open = !1, this.dispatchEvent(new CustomEvent(C2, {
|
|
5441
5663
|
detail: this.value,
|
|
5442
5664
|
bubbles: !0,
|
|
5443
5665
|
composed: !0
|
|
5444
|
-
})), this.dispatchEvent(new CustomEvent(
|
|
5666
|
+
})), this.dispatchEvent(new CustomEvent(n7, {
|
|
5445
5667
|
detail: e,
|
|
5446
5668
|
bubbles: !0,
|
|
5447
5669
|
composed: !0
|
|
@@ -5449,11 +5671,11 @@ const r2 = "anduin-suggestion:change", G3 = "anduin-suggestion:select", Y3 = "an
|
|
|
5449
5671
|
}
|
|
5450
5672
|
_onClear() {
|
|
5451
5673
|
var e;
|
|
5452
|
-
this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(
|
|
5674
|
+
this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(C2, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(a7, { bubbles: !0, composed: !0 })), (e = this._inputEl) == null || e.focus();
|
|
5453
5675
|
}
|
|
5454
5676
|
_updatePosition() {
|
|
5455
|
-
var
|
|
5456
|
-
const e = (
|
|
5677
|
+
var Q;
|
|
5678
|
+
const e = (Q = this.shadowRoot) == null ? void 0 : Q.querySelector(".input-wrapper"), t = this._panelEl;
|
|
5457
5679
|
if (!e || !t) return;
|
|
5458
5680
|
const i = e.getBoundingClientRect(), o = t.style.transform;
|
|
5459
5681
|
t.style.transform = "none";
|
|
@@ -5461,14 +5683,14 @@ const r2 = "anduin-suggestion:change", G3 = "anduin-suggestion:select", Y3 = "an
|
|
|
5461
5683
|
t.style.transform = o;
|
|
5462
5684
|
const n = t.querySelector(".panel__inner");
|
|
5463
5685
|
n && (n.style.minWidth = `${i.width}px`);
|
|
5464
|
-
const
|
|
5686
|
+
const C = t.getBoundingClientRect(), d = 4, p = window.innerWidth, u = window.innerHeight, g = 8, H = u - i.bottom - d, f = i.top - d, j = C.height <= H || H >= f ? i.bottom + d : i.top - C.height - d;
|
|
5465
5687
|
let x = i.left;
|
|
5466
|
-
x = Math.max(
|
|
5467
|
-
const
|
|
5468
|
-
t.style.transform = `translate(${Math.round(x - r.left)}px, ${Math.round(
|
|
5688
|
+
x = Math.max(g, Math.min(x, p - C.width - g));
|
|
5689
|
+
const O = Math.max(g, Math.min(j, u - C.height - g));
|
|
5690
|
+
t.style.transform = `translate(${Math.round(x - r.left)}px, ${Math.round(O - r.top)}px)`;
|
|
5469
5691
|
}
|
|
5470
5692
|
render() {
|
|
5471
|
-
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",
|
|
5693
|
+
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", C = this.size === "small" ? "10" : this.size === "large" ? "16" : "14", d = this._filteredSuggestions, p = this._open && (!this.hideWhenEmpty || d.length > 0);
|
|
5472
5694
|
return s`
|
|
5473
5695
|
<div class="input-wrapper">
|
|
5474
5696
|
${i ? s`
|
|
@@ -5502,7 +5724,7 @@ const r2 = "anduin-suggestion:change", G3 = "anduin-suggestion:select", Y3 = "an
|
|
|
5502
5724
|
<span class="input__end">
|
|
5503
5725
|
${r ? s`
|
|
5504
5726
|
<button class="input__clear" type="button" @click=${this._onClear} aria-label="Clear">
|
|
5505
|
-
<anduin-icon name="cross" size=${
|
|
5727
|
+
<anduin-icon name="cross" size=${C}></anduin-icon>
|
|
5506
5728
|
</button>
|
|
5507
5729
|
` : c}
|
|
5508
5730
|
${this.endIcon ? s`
|
|
@@ -5515,13 +5737,13 @@ const r2 = "anduin-suggestion:change", G3 = "anduin-suggestion:select", Y3 = "an
|
|
|
5515
5737
|
<div class="panel${p ? " panel--open" : ""}" part="panel">
|
|
5516
5738
|
<div class="panel__inner" role="listbox">
|
|
5517
5739
|
<div class="options">
|
|
5518
|
-
${d.length ? d.map((u,
|
|
5740
|
+
${d.length ? d.map((u, g) => s`
|
|
5519
5741
|
<div
|
|
5520
|
-
class="option${
|
|
5742
|
+
class="option${g === this._activeIndex ? " option--active" : ""}"
|
|
5521
5743
|
role="option"
|
|
5522
|
-
aria-selected=${
|
|
5744
|
+
aria-selected=${g === this._activeIndex}
|
|
5523
5745
|
@mouseenter=${() => {
|
|
5524
|
-
this._activeIndex =
|
|
5746
|
+
this._activeIndex = g;
|
|
5525
5747
|
}}
|
|
5526
5748
|
@mousedown=${(H) => {
|
|
5527
5749
|
H.preventDefault(), this._selectSuggestion(u);
|
|
@@ -5537,7 +5759,7 @@ const r2 = "anduin-suggestion:change", G3 = "anduin-suggestion:select", Y3 = "an
|
|
|
5537
5759
|
`;
|
|
5538
5760
|
}
|
|
5539
5761
|
};
|
|
5540
|
-
|
|
5762
|
+
y5.styles = v`
|
|
5541
5763
|
:host { display: block; font-family: var(--font-sans); position: relative; }
|
|
5542
5764
|
|
|
5543
5765
|
.input-wrapper { position: relative; display: flex; align-items: center; }
|
|
@@ -5650,144 +5872,151 @@ H5.styles = g`
|
|
|
5650
5872
|
text-align: center;
|
|
5651
5873
|
}
|
|
5652
5874
|
`;
|
|
5653
|
-
let V =
|
|
5654
|
-
|
|
5655
|
-
|
|
5875
|
+
let V = y5;
|
|
5876
|
+
b([
|
|
5877
|
+
a()
|
|
5656
5878
|
], V.prototype, "value");
|
|
5657
|
-
|
|
5658
|
-
|
|
5879
|
+
b([
|
|
5880
|
+
a()
|
|
5659
5881
|
], V.prototype, "size");
|
|
5660
|
-
|
|
5661
|
-
|
|
5882
|
+
b([
|
|
5883
|
+
a({ type: Boolean })
|
|
5662
5884
|
], V.prototype, "disabled");
|
|
5663
|
-
|
|
5664
|
-
|
|
5885
|
+
b([
|
|
5886
|
+
a({ type: Boolean })
|
|
5665
5887
|
], V.prototype, "readonly");
|
|
5666
|
-
|
|
5667
|
-
|
|
5888
|
+
b([
|
|
5889
|
+
a()
|
|
5668
5890
|
], V.prototype, "placeholder");
|
|
5669
|
-
|
|
5670
|
-
|
|
5891
|
+
b([
|
|
5892
|
+
a()
|
|
5671
5893
|
], V.prototype, "inputid");
|
|
5672
|
-
|
|
5673
|
-
|
|
5894
|
+
b([
|
|
5895
|
+
a()
|
|
5674
5896
|
], V.prototype, "status");
|
|
5675
|
-
|
|
5676
|
-
|
|
5897
|
+
b([
|
|
5898
|
+
a({ attribute: "start-icon" })
|
|
5677
5899
|
], V.prototype, "startIcon");
|
|
5678
|
-
|
|
5679
|
-
|
|
5900
|
+
b([
|
|
5901
|
+
a({ attribute: "end-icon" })
|
|
5680
5902
|
], V.prototype, "endIcon");
|
|
5681
|
-
|
|
5682
|
-
|
|
5903
|
+
b([
|
|
5904
|
+
a({ type: Boolean })
|
|
5683
5905
|
], V.prototype, "clearable");
|
|
5684
|
-
|
|
5685
|
-
|
|
5906
|
+
b([
|
|
5907
|
+
a({ attribute: !1 })
|
|
5686
5908
|
], V.prototype, "suggestions");
|
|
5687
|
-
|
|
5688
|
-
|
|
5909
|
+
b([
|
|
5910
|
+
a({ type: Boolean })
|
|
5689
5911
|
], V.prototype, "filter");
|
|
5690
|
-
|
|
5691
|
-
|
|
5912
|
+
b([
|
|
5913
|
+
a({ type: Boolean, attribute: "hide-when-empty" })
|
|
5692
5914
|
], V.prototype, "hideWhenEmpty");
|
|
5693
|
-
|
|
5694
|
-
|
|
5915
|
+
b([
|
|
5916
|
+
a({ attribute: "empty-text" })
|
|
5695
5917
|
], V.prototype, "emptyText");
|
|
5696
|
-
|
|
5918
|
+
b([
|
|
5697
5919
|
M()
|
|
5698
5920
|
], V.prototype, "_open");
|
|
5699
|
-
|
|
5921
|
+
b([
|
|
5700
5922
|
M()
|
|
5701
5923
|
], V.prototype, "_activeIndex");
|
|
5702
|
-
|
|
5703
|
-
|
|
5924
|
+
b([
|
|
5925
|
+
k("input")
|
|
5704
5926
|
], V.prototype, "_inputEl");
|
|
5705
|
-
|
|
5706
|
-
|
|
5927
|
+
b([
|
|
5928
|
+
k(".panel")
|
|
5707
5929
|
], V.prototype, "_panelEl");
|
|
5708
5930
|
customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", V);
|
|
5709
5931
|
export {
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5932
|
+
y2 as $,
|
|
5933
|
+
F as A,
|
|
5934
|
+
T as B,
|
|
5935
|
+
v1 as C,
|
|
5936
|
+
D,
|
|
5937
|
+
x1 as E,
|
|
5938
|
+
_1 as F,
|
|
5717
5939
|
V as G,
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5940
|
+
F1 as H,
|
|
5941
|
+
z1 as I,
|
|
5942
|
+
I as J,
|
|
5943
|
+
u1 as K,
|
|
5944
|
+
A1 as L,
|
|
5945
|
+
h1 as M,
|
|
5946
|
+
p2 as N,
|
|
5947
|
+
E as O,
|
|
5948
|
+
Y as P,
|
|
5949
|
+
P1 as Q,
|
|
5950
|
+
B as R,
|
|
5951
|
+
S,
|
|
5952
|
+
B1 as T,
|
|
5953
|
+
v2 as U,
|
|
5954
|
+
g2 as V,
|
|
5955
|
+
J1 as W,
|
|
5956
|
+
f2 as X,
|
|
5957
|
+
l4 as Y,
|
|
5958
|
+
n3 as Z,
|
|
5959
|
+
t7 as _,
|
|
5960
|
+
G1 as a,
|
|
5961
|
+
q5 as a0,
|
|
5962
|
+
s4 as a1,
|
|
5963
|
+
H1 as a2,
|
|
5964
|
+
j3 as a3,
|
|
5965
|
+
F5 as a4,
|
|
5966
|
+
C3 as a5,
|
|
5967
|
+
L2 as a6,
|
|
5968
|
+
E3 as a7,
|
|
5969
|
+
L1 as a8,
|
|
5970
|
+
H2 as a9,
|
|
5971
|
+
m2 as aa,
|
|
5972
|
+
S3 as ab,
|
|
5973
|
+
C2 as ac,
|
|
5974
|
+
a7 as ad,
|
|
5975
|
+
n7 as ae,
|
|
5976
|
+
J3 as af,
|
|
5977
|
+
p3 as ag,
|
|
5978
|
+
d4 as ah,
|
|
5979
|
+
e2 as ai,
|
|
5980
|
+
h3 as aj,
|
|
5981
|
+
d3 as ak,
|
|
5982
|
+
H3 as al,
|
|
5983
|
+
V3 as am,
|
|
5984
|
+
u2 as an,
|
|
5985
|
+
m3 as ao,
|
|
5986
|
+
L3 as ap,
|
|
5987
|
+
h4 as aq,
|
|
5988
|
+
g4 as ar,
|
|
5989
|
+
$2 as as,
|
|
5990
|
+
p4 as at,
|
|
5991
|
+
u4 as au,
|
|
5992
|
+
v4 as av,
|
|
5993
|
+
w3 as aw,
|
|
5994
|
+
r4 as ax,
|
|
5995
|
+
q3 as ay,
|
|
5996
|
+
c7 as az,
|
|
5997
|
+
R1 as b,
|
|
5998
|
+
m as c,
|
|
5999
|
+
W1 as d,
|
|
6000
|
+
W as e,
|
|
6001
|
+
k1 as f,
|
|
6002
|
+
Y1 as g,
|
|
6003
|
+
A as h,
|
|
6004
|
+
l7 as i,
|
|
5776
6005
|
L as j,
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
6006
|
+
K1 as k,
|
|
6007
|
+
s2 as l,
|
|
6008
|
+
d2 as m,
|
|
6009
|
+
c2 as n,
|
|
6010
|
+
E1 as o,
|
|
6011
|
+
S1 as p,
|
|
6012
|
+
w1 as q,
|
|
5784
6013
|
w as r,
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
6014
|
+
X1 as s,
|
|
6015
|
+
r1 as t,
|
|
6016
|
+
g1 as u,
|
|
6017
|
+
A3 as v,
|
|
6018
|
+
z3 as w,
|
|
6019
|
+
P as x,
|
|
6020
|
+
V2 as y,
|
|
6021
|
+
$1 as z
|
|
5793
6022
|
};
|