@duyluonganduin/acl-web-components 0.0.54 → 0.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acl-web-components.cjs +1 -1
- package/dist/acl-web-components.d.ts +101 -0
- package/dist/acl-web-components.iife.js +264 -220
- package/dist/acl-web-components.js +1 -1
- package/dist/{anduin-table-BBX4cI0Y.cjs → anduin-table-7Z4ank66.cjs} +264 -220
- package/dist/{anduin-table-BSCDZ052.js → anduin-table-s1dOpgPU.js} +1083 -981
- package/dist/jsx.d.ts +3 -0
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +101 -0
- package/dist/react.js +2 -2
- package/package.json +1 -1
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const V2 = globalThis,
|
|
7
|
-
let
|
|
6
|
+
const V2 = globalThis, D5 = V2.ShadowRoot && (V2.ShadyCSS === void 0 || V2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, B5 = Symbol(), p3 = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let j3 = class {
|
|
8
8
|
constructor(e, t, o) {
|
|
9
|
-
if (this._$cssResult$ = !0, o !==
|
|
9
|
+
if (this._$cssResult$ = !0, o !== B5) 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 (D5 && e === void 0) {
|
|
16
16
|
const o = t !== void 0 && t.length === 1;
|
|
17
|
-
o && (e =
|
|
17
|
+
o && (e = p3.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), o && p3.set(t, e));
|
|
18
18
|
}
|
|
19
19
|
return e;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let T3 = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const be = (r) => new j3(typeof r == "string" ? r : r + "", void 0, B5), g = (r, ...e) => {
|
|
26
26
|
const t = r.length === 1 ? r[0] : e.reduce((o, i, n) => o + ((l) => {
|
|
27
27
|
if (l._$cssResult$ === !0) return l.cssText;
|
|
28
28
|
if (typeof l == "number") return l;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + l + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(i) + r[n + 1], r[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
31
|
+
return new j3(t, r, B5);
|
|
32
|
+
}, He = (r, e) => {
|
|
33
|
+
if (D5) r.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
34
34
|
else for (const t of e) {
|
|
35
35
|
const o = document.createElement("style"), i = V2.litNonce;
|
|
36
36
|
i !== void 0 && o.setAttribute("nonce", i), o.textContent = t.cssText, r.appendChild(o);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, h3 = D5 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
|
|
39
39
|
let t = "";
|
|
40
40
|
for (const o of e.cssRules) t += o.cssText;
|
|
41
|
-
return
|
|
41
|
+
return be(t);
|
|
42
42
|
})(r) : r;
|
|
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: ye, defineProperty: _e, getOwnPropertyDescriptor: Le, getOwnPropertyNames: Ve, getOwnPropertySymbols: xe, getPrototypeOf: Me } = Object, p1 = globalThis, u3 = p1.trustedTypes, we = u3 ? u3.emptyScript : "", N2 = p1.reactiveElementPolyfillSupport, t2 = (r, e) => r, x2 = { toAttribute(r, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
r = r ?
|
|
51
|
+
r = r ? we : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,8 +73,8 @@ const { is: me, defineProperty: He, getOwnPropertyDescriptor: ye, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return t;
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
76
|
+
} }, P5 = (r, e) => !ye(r, e), g3 = { attribute: !0, type: String, converter: x2, reflect: !1, useDefault: !1, hasChanged: P5 };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), p1.litPropertyMetadata ?? (p1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let B1 = class extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
@@ -82,14 +82,14 @@ let B1 = class extends HTMLElement {
|
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(e, t =
|
|
85
|
+
static createProperty(e, t = g3) {
|
|
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 o = Symbol(), i = this.getPropertyDescriptor(e, o, t);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && _e(this.prototype, e, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(e, t, o) {
|
|
92
|
-
const { get: i, set: n } =
|
|
92
|
+
const { get: i, set: n } = Le(this.prototype, e) ?? { get() {
|
|
93
93
|
return this[t];
|
|
94
94
|
}, set(l) {
|
|
95
95
|
this[t] = l;
|
|
@@ -100,17 +100,17 @@ let B1 = class extends HTMLElement {
|
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(e) {
|
|
103
|
-
return this.elementProperties.get(e) ??
|
|
103
|
+
return this.elementProperties.get(e) ?? g3;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const e =
|
|
106
|
+
if (this.hasOwnProperty(t2("elementProperties"))) return;
|
|
107
|
+
const e = Me(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, o = [...
|
|
111
|
+
if (this.hasOwnProperty(t2("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(t2("properties"))) {
|
|
113
|
+
const t = this.properties, o = [...Ve(t), ...xe(t)];
|
|
114
114
|
for (const i of o) this.createProperty(i, t[i]);
|
|
115
115
|
}
|
|
116
116
|
const e = this[Symbol.metadata];
|
|
@@ -129,8 +129,8 @@ let B1 = class extends HTMLElement {
|
|
|
129
129
|
const t = [];
|
|
130
130
|
if (Array.isArray(e)) {
|
|
131
131
|
const o = new Set(e.flat(1 / 0).reverse());
|
|
132
|
-
for (const i of o) t.unshift(
|
|
133
|
-
} else e !== void 0 && t.push(
|
|
132
|
+
for (const i of o) t.unshift(h3(i));
|
|
133
|
+
} else e !== void 0 && t.push(h3(e));
|
|
134
134
|
return t;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(e, t) {
|
|
@@ -159,7 +159,7 @@ let B1 = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return He(e, this.constructor.elementStyles), e;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var e;
|
|
@@ -184,7 +184,7 @@ let B1 = class extends HTMLElement {
|
|
|
184
184
|
var n;
|
|
185
185
|
const o = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, o);
|
|
186
186
|
if (i !== void 0 && o.reflect === !0) {
|
|
187
|
-
const l = (((n = o.converter) == null ? void 0 : n.toAttribute) !== void 0 ? o.converter :
|
|
187
|
+
const l = (((n = o.converter) == null ? void 0 : n.toAttribute) !== void 0 ? o.converter : x2).toAttribute(t, o.type);
|
|
188
188
|
this._$Em = e, l == null ? this.removeAttribute(i) : this.setAttribute(i, l), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -192,7 +192,7 @@ let B1 = class extends HTMLElement {
|
|
|
192
192
|
var n, l;
|
|
193
193
|
const o = this.constructor, i = o._$Eh.get(e);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
const d = o.getPropertyOptions(i), c = typeof d.converter == "function" ? { fromAttribute: d.converter } : ((n = d.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? d.converter :
|
|
195
|
+
const d = o.getPropertyOptions(i), c = typeof d.converter == "function" ? { fromAttribute: d.converter } : ((n = d.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? d.converter : x2;
|
|
196
196
|
this._$Em = i;
|
|
197
197
|
const C = c.fromAttribute(t, d.type);
|
|
198
198
|
this[i] = C ?? ((l = this._$Ej) == null ? void 0 : l.get(i)) ?? C, this._$Em = null;
|
|
@@ -202,7 +202,7 @@ let B1 = class extends HTMLElement {
|
|
|
202
202
|
var l;
|
|
203
203
|
if (e !== void 0) {
|
|
204
204
|
const d = this.constructor;
|
|
205
|
-
if (i === !1 && (n = this[e]), o ?? (o = d.getPropertyOptions(e)), !((o.hasChanged ??
|
|
205
|
+
if (i === !1 && (n = this[e]), o ?? (o = d.getPropertyOptions(e)), !((o.hasChanged ?? P5)(n, t) || o.useDefault && o.reflect && n === ((l = this._$Ej) == null ? void 0 : l.get(e)) && !this.hasAttribute(d._$Eu(e, o)))) return;
|
|
206
206
|
this.C(e, t, o);
|
|
207
207
|
}
|
|
208
208
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -278,59 +278,59 @@ let B1 = class extends HTMLElement {
|
|
|
278
278
|
firstUpdated(e) {
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
B1.elementStyles = [], B1.shadowRootOptions = { mode: "open" }, B1[
|
|
281
|
+
B1.elementStyles = [], B1.shadowRootOptions = { mode: "open" }, B1[t2("elementProperties")] = /* @__PURE__ */ new Map(), B1[t2("finalized")] = /* @__PURE__ */ new Map(), N2 == null || N2({ ReactiveElement: B1 }), (p1.reactiveElementVersions ?? (p1.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]`, q1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
290
|
-
function
|
|
291
|
-
if (!
|
|
292
|
-
return
|
|
287
|
+
const i2 = globalThis, f3 = (r) => r, M2 = i2.trustedTypes, v3 = M2 ? M2.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, U3 = "$lit$", C1 = `lit$${Math.random().toFixed(9).slice(2)}$`, G3 = "?" + C1, Ze = `<${G3}>`, M1 = document, n2 = () => M1.createComment(""), r2 = (r) => r === null || typeof r != "object" && typeof r != "function", F5 = Array.isArray, ke = (r) => F5(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", j2 = `[
|
|
288
|
+
\f\r]`, q1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, m3 = /-->/g, b3 = />/g, _1 = RegExp(`>|${j2}(?:([^\\s"'>=/]+)(${j2}*=${j2}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), H3 = /'/g, y3 = /"/g, K3 = /^(?:script|style|textarea|title)$/i, W3 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), s = W3(1), w2 = W3(2), w1 = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), _3 = /* @__PURE__ */ new WeakMap(), V1 = M1.createTreeWalker(M1, 129);
|
|
290
|
+
function Y3(r, e) {
|
|
291
|
+
if (!F5(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
+
return v3 !== void 0 ? v3.createHTML(e) : e;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const Re = (r, e) => {
|
|
295
295
|
const t = r.length - 1, o = [];
|
|
296
296
|
let i, n = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", l = q1;
|
|
297
297
|
for (let d = 0; d < t; d++) {
|
|
298
298
|
const c = r[d];
|
|
299
|
-
let C, p, f = -1,
|
|
300
|
-
for (;
|
|
301
|
-
const
|
|
302
|
-
n += l === q1 ? c +
|
|
299
|
+
let C, p, f = -1, b = 0;
|
|
300
|
+
for (; b < c.length && (l.lastIndex = b, p = l.exec(c), p !== null); ) b = l.lastIndex, l === q1 ? p[1] === "!--" ? l = m3 : p[1] !== void 0 ? l = b3 : p[2] !== void 0 ? (K3.test(p[2]) && (i = RegExp("</" + p[2], "g")), l = _1) : p[3] !== void 0 && (l = _1) : l === _1 ? p[0] === ">" ? (l = i ?? q1, f = -1) : p[1] === void 0 ? f = -2 : (f = l.lastIndex - p[2].length, C = p[1], l = p[3] === void 0 ? _1 : p[3] === '"' ? y3 : H3) : l === y3 || l === H3 ? l = _1 : l === m3 || l === b3 ? l = q1 : (l = _1, i = void 0);
|
|
301
|
+
const m = l === _1 && r[d + 1].startsWith("/>") ? " " : "";
|
|
302
|
+
n += l === q1 ? c + Ze : f >= 0 ? (o.push(C), c.slice(0, f) + U3 + c.slice(f) + C1 + m) : c + C1 + (f === -2 ? d : m);
|
|
303
303
|
}
|
|
304
|
-
return [
|
|
304
|
+
return [Y3(r, n + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
|
|
305
305
|
};
|
|
306
|
-
class
|
|
306
|
+
class l2 {
|
|
307
307
|
constructor({ strings: e, _$litType$: t }, o) {
|
|
308
308
|
let i;
|
|
309
309
|
this.parts = [];
|
|
310
310
|
let n = 0, l = 0;
|
|
311
|
-
const d = e.length - 1, c = this.parts, [C, p] =
|
|
312
|
-
if (this.el =
|
|
311
|
+
const d = e.length - 1, c = this.parts, [C, p] = Re(e, t);
|
|
312
|
+
if (this.el = l2.createElement(C, o), V1.currentNode = this.el.content, t === 2 || t === 3) {
|
|
313
313
|
const f = this.el.content.firstChild;
|
|
314
314
|
f.replaceWith(...f.childNodes);
|
|
315
315
|
}
|
|
316
|
-
for (; (i =
|
|
316
|
+
for (; (i = V1.nextNode()) !== null && c.length < d; ) {
|
|
317
317
|
if (i.nodeType === 1) {
|
|
318
|
-
if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(
|
|
319
|
-
const
|
|
320
|
-
c.push({ type: 1, index: n, name:
|
|
321
|
-
} else f.startsWith(
|
|
322
|
-
if (
|
|
323
|
-
const f = i.textContent.split(
|
|
324
|
-
if (
|
|
325
|
-
i.textContent =
|
|
326
|
-
for (let
|
|
327
|
-
i.append(f[
|
|
318
|
+
if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(U3)) {
|
|
319
|
+
const b = p[l++], m = i.getAttribute(f).split(C1), V = /([.?@])?(.*)/.exec(b);
|
|
320
|
+
c.push({ type: 1, index: n, name: V[2], strings: m, ctor: V[1] === "." ? Ee : V[1] === "?" ? ze : V[1] === "@" ? Se : I2 }), i.removeAttribute(f);
|
|
321
|
+
} else f.startsWith(C1) && (c.push({ type: 6, index: n }), i.removeAttribute(f));
|
|
322
|
+
if (K3.test(i.tagName)) {
|
|
323
|
+
const f = i.textContent.split(C1), b = f.length - 1;
|
|
324
|
+
if (b > 0) {
|
|
325
|
+
i.textContent = M2 ? M2.emptyScript : "";
|
|
326
|
+
for (let m = 0; m < b; m++) i.append(f[m], n2()), V1.nextNode(), c.push({ type: 2, index: ++n });
|
|
327
|
+
i.append(f[b], n2());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
330
|
+
} else if (i.nodeType === 8) if (i.data === G3) c.push({ type: 2, index: n });
|
|
331
331
|
else {
|
|
332
332
|
let f = -1;
|
|
333
|
-
for (; (f = i.data.indexOf(
|
|
333
|
+
for (; (f = i.data.indexOf(C1, f + 1)) !== -1; ) c.push({ type: 7, index: n }), f += C1.length - 1;
|
|
334
334
|
}
|
|
335
335
|
n++;
|
|
336
336
|
}
|
|
@@ -344,10 +344,10 @@ function F1(r, e, t = r, o) {
|
|
|
344
344
|
var l, d;
|
|
345
345
|
if (e === w1) return e;
|
|
346
346
|
let i = o !== void 0 ? (l = t._$Co) == null ? void 0 : l[o] : t._$Cl;
|
|
347
|
-
const n =
|
|
347
|
+
const n = r2(e) ? void 0 : e._$litDirective$;
|
|
348
348
|
return (i == null ? void 0 : i.constructor) !== n && ((d = i == null ? void 0 : i._$AO) == null || d.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, t, o)), o !== void 0 ? (t._$Co ?? (t._$Co = []))[o] = i : t._$Cl = i), i !== void 0 && (e = F1(r, i._$AS(r, e.values), i, o)), e;
|
|
349
349
|
}
|
|
350
|
-
class
|
|
350
|
+
class $e {
|
|
351
351
|
constructor(e, t) {
|
|
352
352
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
353
353
|
}
|
|
@@ -359,23 +359,23 @@ class ke {
|
|
|
359
359
|
}
|
|
360
360
|
u(e) {
|
|
361
361
|
const { el: { content: t }, parts: o } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? M1).importNode(t, !0);
|
|
362
|
-
|
|
363
|
-
let n =
|
|
362
|
+
V1.currentNode = i;
|
|
363
|
+
let n = V1.nextNode(), l = 0, d = 0, c = o[0];
|
|
364
364
|
for (; c !== void 0; ) {
|
|
365
365
|
if (l === c.index) {
|
|
366
366
|
let C;
|
|
367
|
-
c.type === 2 ? C = new
|
|
367
|
+
c.type === 2 ? C = new _2(n, n.nextSibling, this, e) : c.type === 1 ? C = new c.ctor(n, c.name, c.strings, this, e) : c.type === 6 && (C = new Ae(n, this, e)), this._$AV.push(C), c = o[++d];
|
|
368
368
|
}
|
|
369
|
-
l !== (c == null ? void 0 : c.index) && (n =
|
|
369
|
+
l !== (c == null ? void 0 : c.index) && (n = V1.nextNode(), l++);
|
|
370
370
|
}
|
|
371
|
-
return
|
|
371
|
+
return V1.currentNode = M1, i;
|
|
372
372
|
}
|
|
373
373
|
p(e) {
|
|
374
374
|
let t = 0;
|
|
375
375
|
for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(e, o, t), t += o.strings.length - 2) : o._$AI(e[t])), t++;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
class
|
|
378
|
+
class _2 {
|
|
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 y2 {
|
|
|
395
395
|
return this._$AB;
|
|
396
396
|
}
|
|
397
397
|
_$AI(e, t = this) {
|
|
398
|
-
e = F1(this, e, t),
|
|
398
|
+
e = F1(this, e, t), r2(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== w1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ke(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 y2 {
|
|
|
404
404
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
405
405
|
}
|
|
406
406
|
_(e) {
|
|
407
|
-
this._$AH !== u &&
|
|
407
|
+
this._$AH !== u && r2(this._$AH) ? this._$AA.nextSibling.data = e : this.T(M1.createTextNode(e)), this._$AH = e;
|
|
408
408
|
}
|
|
409
409
|
$(e) {
|
|
410
410
|
var n;
|
|
411
|
-
const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el =
|
|
411
|
+
const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = l2.createElement(Y3(o.h, o.h[0]), this.options)), o);
|
|
412
412
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(t);
|
|
413
413
|
else {
|
|
414
|
-
const l = new
|
|
414
|
+
const l = new $e(i, this), d = l.u(this.options);
|
|
415
415
|
l.p(t), this.T(d), this._$AH = l;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
_$AC(e) {
|
|
419
|
-
let t =
|
|
420
|
-
return t === void 0 &&
|
|
419
|
+
let t = _3.get(e.strings);
|
|
420
|
+
return t === void 0 && _3.set(e.strings, t = new l2(e)), t;
|
|
421
421
|
}
|
|
422
422
|
k(e) {
|
|
423
|
-
|
|
423
|
+
F5(this._$AH) || (this._$AH = [], this._$AR());
|
|
424
424
|
const t = this._$AH;
|
|
425
425
|
let o, i = 0;
|
|
426
|
-
for (const n of e) i === t.length ? t.push(o = new
|
|
426
|
+
for (const n of e) i === t.length ? t.push(o = new _2(this.O(n2()), this.O(n2()), this, this.options)) : o = t[i], o._$AI(n), i++;
|
|
427
427
|
i < t.length && (this._$AR(o && o._$AB.nextSibling, i), t.length = i);
|
|
428
428
|
}
|
|
429
429
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
430
430
|
var o;
|
|
431
431
|
for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, t); e !== this._$AB; ) {
|
|
432
|
-
const i =
|
|
433
|
-
|
|
432
|
+
const i = f3(e).nextSibling;
|
|
433
|
+
f3(e).remove(), e = i;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
setConnected(e) {
|
|
@@ -438,7 +438,7 @@ class y2 {
|
|
|
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 I2 {
|
|
442
442
|
get tagName() {
|
|
443
443
|
return this.element.tagName;
|
|
444
444
|
}
|
|
@@ -451,11 +451,11 @@ class P2 {
|
|
|
451
451
|
_$AI(e, t = this, o, i) {
|
|
452
452
|
const n = this.strings;
|
|
453
453
|
let l = !1;
|
|
454
|
-
if (n === void 0) e = F1(this, e, t, 0), l = !
|
|
454
|
+
if (n === void 0) e = F1(this, e, t, 0), l = !r2(e) || e !== this._$AH && e !== w1, l && (this._$AH = e);
|
|
455
455
|
else {
|
|
456
456
|
const d = e;
|
|
457
457
|
let c, C;
|
|
458
|
-
for (e = n[0], c = 0; c < n.length - 1; c++) C = F1(this, d[o + c], t, c), C === w1 && (C = this._$AH[c]), l || (l = !
|
|
458
|
+
for (e = n[0], c = 0; c < n.length - 1; c++) C = F1(this, d[o + c], t, c), C === w1 && (C = this._$AH[c]), l || (l = !r2(C) || C !== this._$AH[c]), C === u ? e = u : e !== u && (e += (C ?? "") + n[c + 1]), this._$AH[c] = C;
|
|
459
459
|
}
|
|
460
460
|
l && !i && this.j(e);
|
|
461
461
|
}
|
|
@@ -463,7 +463,7 @@ class P2 {
|
|
|
463
463
|
e === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
class
|
|
466
|
+
class Ee extends I2 {
|
|
467
467
|
constructor() {
|
|
468
468
|
super(...arguments), this.type = 3;
|
|
469
469
|
}
|
|
@@ -471,7 +471,7 @@ class Re extends P2 {
|
|
|
471
471
|
this.element[this.name] = e === u ? void 0 : e;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class ze extends I2 {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(...arguments), this.type = 4;
|
|
477
477
|
}
|
|
@@ -479,7 +479,7 @@ class $e extends P2 {
|
|
|
479
479
|
this.element.toggleAttribute(this.name, !!e && e !== u);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
class
|
|
482
|
+
class Se extends I2 {
|
|
483
483
|
constructor(e, t, o, i, n) {
|
|
484
484
|
super(e, t, o, i, n), this.type = 5;
|
|
485
485
|
}
|
|
@@ -493,7 +493,7 @@ class Ee extends P2 {
|
|
|
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 Ae {
|
|
497
497
|
constructor(e, t, o) {
|
|
498
498
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = o;
|
|
499
499
|
}
|
|
@@ -504,14 +504,14 @@ class ze {
|
|
|
504
504
|
F1(this, e);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
const
|
|
507
|
+
const U2 = i2.litHtmlPolyfillSupport;
|
|
508
|
+
U2 == null || U2(l2, _2), (i2.litHtmlVersions ?? (i2.litHtmlVersions = [])).push("3.3.2");
|
|
509
|
+
const De = (r, e, t) => {
|
|
510
510
|
const o = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
511
511
|
let i = o._$litPart$;
|
|
512
512
|
if (i === void 0) {
|
|
513
513
|
const n = (t == null ? void 0 : t.renderBefore) ?? null;
|
|
514
|
-
o._$litPart$ = i = new
|
|
514
|
+
o._$litPart$ = i = new _2(e.insertBefore(n2(), n), n, void 0, t ?? {});
|
|
515
515
|
}
|
|
516
516
|
return i._$AI(r), i;
|
|
517
517
|
};
|
|
@@ -532,7 +532,7 @@ let h = class extends B1 {
|
|
|
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 = De(t, this.renderRoot, this.renderOptions);
|
|
536
536
|
}
|
|
537
537
|
connectedCallback() {
|
|
538
538
|
var e;
|
|
@@ -546,17 +546,17 @@ let h = class extends B1 {
|
|
|
546
546
|
return w1;
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
|
-
var
|
|
550
|
-
h._$litElement$ = !0, h.finalized = !0, (
|
|
551
|
-
const
|
|
552
|
-
|
|
549
|
+
var N3;
|
|
550
|
+
h._$litElement$ = !0, h.finalized = !0, (N3 = x1.litElementHydrateSupport) == null || N3.call(x1, { LitElement: h });
|
|
551
|
+
const G2 = x1.litElementPolyfillSupport;
|
|
552
|
+
G2 == null || G2({ LitElement: h });
|
|
553
553
|
(x1.litElementVersions ?? (x1.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 Be = { attribute: !0, type: String, converter: x2, reflect: !1, hasChanged: P5 }, Pe = (r = Be, e, t) => {
|
|
560
560
|
const { kind: o, metadata: i } = t;
|
|
561
561
|
let n = globalThis.litPropertyMetadata.get(i);
|
|
562
562
|
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), o === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(t.name, r), o === "accessor") {
|
|
@@ -578,7 +578,7 @@ const Ae = { attribute: !0, type: String, converter: L2, reflect: !1, hasChanged
|
|
|
578
578
|
throw Error("Unsupported decorator location: " + o);
|
|
579
579
|
};
|
|
580
580
|
function a(r) {
|
|
581
|
-
return (e, t) => typeof t == "object" ?
|
|
581
|
+
return (e, t) => typeof t == "object" ? Pe(r, e, t) : ((o, i, n) => {
|
|
582
582
|
const l = i.hasOwnProperty(n);
|
|
583
583
|
return i.constructor.createProperty(n, o), l ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
|
584
584
|
})(r, e, t);
|
|
@@ -596,7 +596,7 @@ function H(r) {
|
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
const
|
|
599
|
+
const Fe = (r, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, t), t);
|
|
600
600
|
/**
|
|
601
601
|
* @license
|
|
602
602
|
* Copyright 2017 Google LLC
|
|
@@ -608,17 +608,17 @@ function z(r, e) {
|
|
|
608
608
|
var d;
|
|
609
609
|
return ((d = l.renderRoot) == null ? void 0 : d.querySelector(r)) ?? null;
|
|
610
610
|
};
|
|
611
|
-
return
|
|
611
|
+
return Fe(t, o, { get() {
|
|
612
612
|
return n(this);
|
|
613
613
|
} });
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
var
|
|
616
|
+
var Oe = Object.defineProperty, q3 = (r, e, t, o) => {
|
|
617
617
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
618
618
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
619
|
-
return i &&
|
|
619
|
+
return i && Oe(e, t, i), i;
|
|
620
620
|
};
|
|
621
|
-
const
|
|
621
|
+
const N5 = class N5 extends h {
|
|
622
622
|
constructor() {
|
|
623
623
|
super(...arguments), this.size = "medium", this.percent = "";
|
|
624
624
|
}
|
|
@@ -641,7 +641,7 @@ const F5 = class F5 extends h {
|
|
|
641
641
|
let i;
|
|
642
642
|
o ? i = 0.75 * Math.PI * e : i = (1 - Math.max(0, Math.min(1, parseFloat(this.percent) || 0))) * Math.PI * e;
|
|
643
643
|
const n = t / 2, l = t + e, d = e / 2, c = Math.PI * e;
|
|
644
|
-
return
|
|
644
|
+
return w2`
|
|
645
645
|
<svg
|
|
646
646
|
class=${o ? "spinner" : ""}
|
|
647
647
|
width="${e}px"
|
|
@@ -675,31 +675,31 @@ const F5 = class F5 extends h {
|
|
|
675
675
|
`;
|
|
676
676
|
}
|
|
677
677
|
};
|
|
678
|
-
|
|
678
|
+
N5.styles = g`
|
|
679
679
|
:host { display: inline-block; line-height: 0; font-family: var(--font-sans); }
|
|
680
680
|
.spinner { animation: circle 0.6s linear infinite; }
|
|
681
681
|
@keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
|
682
682
|
`;
|
|
683
|
-
let
|
|
684
|
-
|
|
683
|
+
let a2 = N5;
|
|
684
|
+
q3([
|
|
685
685
|
a()
|
|
686
|
-
],
|
|
687
|
-
|
|
686
|
+
], a2.prototype, "size");
|
|
687
|
+
q3([
|
|
688
688
|
a()
|
|
689
|
-
],
|
|
690
|
-
customElements.get("anduin-spinner") || customElements.define("anduin-spinner",
|
|
691
|
-
var
|
|
689
|
+
], a2.prototype, "percent");
|
|
690
|
+
customElements.get("anduin-spinner") || customElements.define("anduin-spinner", a2);
|
|
691
|
+
var Ie = Object.defineProperty, X3 = (r, e, t, o) => {
|
|
692
692
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
693
693
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
694
|
-
return i &&
|
|
694
|
+
return i && Ie(e, t, i), i;
|
|
695
695
|
};
|
|
696
|
-
const
|
|
696
|
+
const L3 = "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", Te = { small: 16, medium: 24, large: 32 }, j5 = class j5 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 = Te[this.size] ?? 16;
|
|
702
|
+
return w2`
|
|
703
703
|
<svg
|
|
704
704
|
xmlns="http://www.w3.org/2000/svg"
|
|
705
705
|
width="${e}"
|
|
@@ -708,13 +708,13 @@ const y3 = "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="${L3}"/>
|
|
712
|
+
<path class="star star-2" d="${L3}"/>
|
|
713
713
|
</svg>
|
|
714
714
|
`;
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
|
-
|
|
717
|
+
j5.styles = g`
|
|
718
718
|
:host { display: inline-block; line-height: 0; }
|
|
719
719
|
|
|
720
720
|
/* ── Colors ─────────────────────────────────────────────────── */
|
|
@@ -753,15 +753,15 @@ O5.styles = g`
|
|
|
753
753
|
100% { transform: translate(12px, 12px) scale(0.5); opacity: 0; }
|
|
754
754
|
}
|
|
755
755
|
`;
|
|
756
|
-
let
|
|
757
|
-
|
|
756
|
+
let s2 = j5;
|
|
757
|
+
X3([
|
|
758
758
|
a({ reflect: !0 })
|
|
759
|
-
],
|
|
760
|
-
|
|
759
|
+
], s2.prototype, "size");
|
|
760
|
+
X3([
|
|
761
761
|
a({ reflect: !0 })
|
|
762
|
-
],
|
|
763
|
-
customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner",
|
|
764
|
-
const
|
|
762
|
+
], s2.prototype, "color");
|
|
763
|
+
customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", s2);
|
|
764
|
+
const V3 = {
|
|
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" }],
|
|
@@ -1122,18 +1122,18 @@ const _3 = {
|
|
|
1122
1122
|
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" }],
|
|
1123
1123
|
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" }]
|
|
1124
1124
|
};
|
|
1125
|
-
var
|
|
1125
|
+
var Ne = Object.defineProperty, J3 = (r, e, t, o) => {
|
|
1126
1126
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1127
1127
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1128
|
-
return i &&
|
|
1128
|
+
return i && Ne(e, t, i), i;
|
|
1129
1129
|
};
|
|
1130
|
-
const
|
|
1130
|
+
const U5 = class U5 extends h {
|
|
1131
1131
|
constructor() {
|
|
1132
1132
|
super(...arguments), this.name = "", this.size = 16;
|
|
1133
1133
|
}
|
|
1134
1134
|
render() {
|
|
1135
|
-
const e = this.name &&
|
|
1136
|
-
return
|
|
1135
|
+
const e = this.name && V3[this.name] ? V3[this.name] : [], t = !this.name;
|
|
1136
|
+
return w2`
|
|
1137
1137
|
<svg
|
|
1138
1138
|
class=${t ? "icon--hidden" : ""}
|
|
1139
1139
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1143,7 +1143,7 @@ const I5 = class I5 extends h {
|
|
|
1143
1143
|
viewBox="0 0 16 16"
|
|
1144
1144
|
>
|
|
1145
1145
|
${e.map(
|
|
1146
|
-
(o) =>
|
|
1146
|
+
(o) => w2`
|
|
1147
1147
|
<path
|
|
1148
1148
|
fill="currentColor"
|
|
1149
1149
|
d="${o.d}"
|
|
@@ -1155,24 +1155,24 @@ const I5 = class I5 extends h {
|
|
|
1155
1155
|
`;
|
|
1156
1156
|
}
|
|
1157
1157
|
};
|
|
1158
|
-
|
|
1158
|
+
U5.styles = g`
|
|
1159
1159
|
:host { display: block; line-height: 0; font-family: var(--font-sans); }
|
|
1160
1160
|
.icon--hidden { display: none; }
|
|
1161
1161
|
`;
|
|
1162
|
-
let
|
|
1163
|
-
|
|
1162
|
+
let d2 = U5;
|
|
1163
|
+
J3([
|
|
1164
1164
|
a()
|
|
1165
|
-
],
|
|
1166
|
-
|
|
1165
|
+
], d2.prototype, "name");
|
|
1166
|
+
J3([
|
|
1167
1167
|
a({ type: Number })
|
|
1168
|
-
],
|
|
1169
|
-
customElements.get("anduin-icon") || customElements.define("anduin-icon",
|
|
1170
|
-
var
|
|
1168
|
+
], d2.prototype, "size");
|
|
1169
|
+
customElements.get("anduin-icon") || customElements.define("anduin-icon", d2);
|
|
1170
|
+
var je = Object.defineProperty, Ue = (r, e, t, o) => {
|
|
1171
1171
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1172
1172
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1173
|
-
return i &&
|
|
1173
|
+
return i && je(e, t, i), i;
|
|
1174
1174
|
};
|
|
1175
|
-
const
|
|
1175
|
+
const Q3 = g`
|
|
1176
1176
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1177
1177
|
.badge {
|
|
1178
1178
|
border-radius: 9999px;
|
|
@@ -1199,7 +1199,7 @@ const X3 = g`
|
|
|
1199
1199
|
.badge--bold-warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1200
1200
|
.badge--hidden { display: none; }
|
|
1201
1201
|
`;
|
|
1202
|
-
function
|
|
1202
|
+
function ee(r) {
|
|
1203
1203
|
return {
|
|
1204
1204
|
gray: "badge--light-gray",
|
|
1205
1205
|
primary: "badge--light-primary",
|
|
@@ -1213,27 +1213,27 @@ function J3(r) {
|
|
|
1213
1213
|
boldDanger: "badge--bold-danger"
|
|
1214
1214
|
}[r || "gray"] || "badge--light-gray";
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const G5 = class G5 extends h {
|
|
1217
1217
|
constructor() {
|
|
1218
1218
|
super(...arguments), this.variant = "gray";
|
|
1219
1219
|
}
|
|
1220
1220
|
render() {
|
|
1221
|
-
const e =
|
|
1221
|
+
const e = ee(this.variant);
|
|
1222
1222
|
return s`<div class="badge ${e}" part="badge"><slot></slot></div>`;
|
|
1223
1223
|
}
|
|
1224
1224
|
};
|
|
1225
|
-
|
|
1226
|
-
let
|
|
1227
|
-
|
|
1225
|
+
G5.styles = [Q3];
|
|
1226
|
+
let Z2 = G5;
|
|
1227
|
+
Ue([
|
|
1228
1228
|
a()
|
|
1229
|
-
],
|
|
1230
|
-
customElements.get("anduin-badge") || customElements.define("anduin-badge",
|
|
1231
|
-
var
|
|
1229
|
+
], Z2.prototype, "variant");
|
|
1230
|
+
customElements.get("anduin-badge") || customElements.define("anduin-badge", Z2);
|
|
1231
|
+
var Ge = Object.defineProperty, te = (r, e, t, o) => {
|
|
1232
1232
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1233
1233
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1234
|
-
return i &&
|
|
1234
|
+
return i && Ge(e, t, i), i;
|
|
1235
1235
|
};
|
|
1236
|
-
const
|
|
1236
|
+
const K5 = class K5 extends h {
|
|
1237
1237
|
constructor() {
|
|
1238
1238
|
super(...arguments), this.variant = "gray", this.count = 0;
|
|
1239
1239
|
}
|
|
@@ -1241,7 +1241,7 @@ const N5 = class N5 extends h {
|
|
|
1241
1241
|
return e > 99 ? "99+" : e.toString();
|
|
1242
1242
|
}
|
|
1243
1243
|
render() {
|
|
1244
|
-
const e =
|
|
1244
|
+
const e = ee(this.variant), t = this.count === 0, o = this.count > 0 && this.count < 10, i = [
|
|
1245
1245
|
"badge",
|
|
1246
1246
|
e,
|
|
1247
1247
|
t ? "badge--hidden" : "",
|
|
@@ -1250,24 +1250,24 @@ const N5 = class N5 extends h {
|
|
|
1250
1250
|
return s`<div class="${i}" part="badge">${this.formatCount(this.count)}</div>`;
|
|
1251
1251
|
}
|
|
1252
1252
|
};
|
|
1253
|
-
|
|
1254
|
-
let
|
|
1255
|
-
|
|
1253
|
+
K5.styles = [Q3];
|
|
1254
|
+
let c2 = K5;
|
|
1255
|
+
te([
|
|
1256
1256
|
a()
|
|
1257
|
-
],
|
|
1258
|
-
|
|
1257
|
+
], c2.prototype, "variant");
|
|
1258
|
+
te([
|
|
1259
1259
|
a({ type: Number })
|
|
1260
|
-
],
|
|
1261
|
-
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count",
|
|
1262
|
-
var
|
|
1260
|
+
], c2.prototype, "count");
|
|
1261
|
+
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", c2);
|
|
1262
|
+
var Ke = Object.defineProperty, B = (r, e, t, o) => {
|
|
1263
1263
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1264
1264
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1265
|
-
return i &&
|
|
1265
|
+
return i && Ke(e, t, i), i;
|
|
1266
1266
|
};
|
|
1267
|
-
function
|
|
1267
|
+
function We(r) {
|
|
1268
1268
|
return r.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1269
1269
|
}
|
|
1270
|
-
const
|
|
1270
|
+
const W5 = class W5 extends h {
|
|
1271
1271
|
constructor() {
|
|
1272
1272
|
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 = "";
|
|
1273
1273
|
}
|
|
@@ -1284,7 +1284,7 @@ const j5 = class j5 extends h {
|
|
|
1284
1284
|
return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
|
|
1285
1285
|
}
|
|
1286
1286
|
getSizeKebab() {
|
|
1287
|
-
return
|
|
1287
|
+
return We(this.size);
|
|
1288
1288
|
}
|
|
1289
1289
|
iconSize() {
|
|
1290
1290
|
return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
|
|
@@ -1328,7 +1328,7 @@ const j5 = class j5 extends h {
|
|
|
1328
1328
|
`;
|
|
1329
1329
|
}
|
|
1330
1330
|
};
|
|
1331
|
-
|
|
1331
|
+
W5.styles = g`
|
|
1332
1332
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1333
1333
|
:host([full-width]) { display: block; width: 100%; }
|
|
1334
1334
|
.button {
|
|
@@ -1441,7 +1441,7 @@ j5.styles = g`
|
|
|
1441
1441
|
.button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
|
|
1442
1442
|
.button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
|
|
1443
1443
|
`;
|
|
1444
|
-
let k =
|
|
1444
|
+
let k = W5;
|
|
1445
1445
|
B([
|
|
1446
1446
|
H()
|
|
1447
1447
|
], k.prototype, "iconOnly");
|
|
@@ -1488,12 +1488,12 @@ B([
|
|
|
1488
1488
|
a()
|
|
1489
1489
|
], k.prototype, "label");
|
|
1490
1490
|
customElements.get("anduin-button") || customElements.define("anduin-button", k);
|
|
1491
|
-
var
|
|
1491
|
+
var Ye = Object.defineProperty, qe = (r, e, t, o) => {
|
|
1492
1492
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1493
1493
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1494
|
-
return i &&
|
|
1494
|
+
return i && Ye(e, t, i), i;
|
|
1495
1495
|
};
|
|
1496
|
-
const
|
|
1496
|
+
const Y5 = class Y5 extends h {
|
|
1497
1497
|
constructor() {
|
|
1498
1498
|
super(...arguments), this.variant = "gray";
|
|
1499
1499
|
}
|
|
@@ -1506,7 +1506,7 @@ const U5 = class U5 extends h {
|
|
|
1506
1506
|
`;
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
1509
|
-
|
|
1509
|
+
Y5.styles = g`
|
|
1510
1510
|
:host { display: block; font-family: var(--font-sans); }
|
|
1511
1511
|
.callout {
|
|
1512
1512
|
display: flex; align-items: center; justify-content: center;
|
|
@@ -1518,17 +1518,17 @@ U5.styles = g`
|
|
|
1518
1518
|
.callout--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1519
1519
|
.callout--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1520
1520
|
`;
|
|
1521
|
-
let
|
|
1522
|
-
|
|
1521
|
+
let k2 = Y5;
|
|
1522
|
+
qe([
|
|
1523
1523
|
a()
|
|
1524
|
-
],
|
|
1525
|
-
customElements.get("anduin-callout") || customElements.define("anduin-callout",
|
|
1526
|
-
var
|
|
1524
|
+
], k2.prototype, "variant");
|
|
1525
|
+
customElements.get("anduin-callout") || customElements.define("anduin-callout", k2);
|
|
1526
|
+
var Xe = Object.defineProperty, ie = (r, e, t, o) => {
|
|
1527
1527
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1528
1528
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1529
|
-
return i &&
|
|
1529
|
+
return i && Xe(e, t, i), i;
|
|
1530
1530
|
};
|
|
1531
|
-
const
|
|
1531
|
+
const q5 = class q5 extends h {
|
|
1532
1532
|
constructor() {
|
|
1533
1533
|
super(...arguments), this.direction = "horizontal", this.hasContent = !1;
|
|
1534
1534
|
}
|
|
@@ -1559,7 +1559,7 @@ const G5 = class G5 extends h {
|
|
|
1559
1559
|
</div>` : s`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
|
|
1560
1560
|
}
|
|
1561
1561
|
};
|
|
1562
|
-
|
|
1562
|
+
q5.styles = g`
|
|
1563
1563
|
:host { display: block; width: 100%; font-family: var(--font-sans); }
|
|
1564
1564
|
:host([direction="vertical"]) { width: auto; height: 100%; }
|
|
1565
1565
|
.divider--horizontal { margin-top: 8px; margin-bottom: 8px; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; text-align: center; }
|
|
@@ -1569,20 +1569,20 @@ G5.styles = g`
|
|
|
1569
1569
|
.divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
|
|
1570
1570
|
.divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
|
|
1571
1571
|
`;
|
|
1572
|
-
let
|
|
1573
|
-
|
|
1572
|
+
let C2 = q5;
|
|
1573
|
+
ie([
|
|
1574
1574
|
a({ reflect: !0 })
|
|
1575
|
-
],
|
|
1576
|
-
|
|
1575
|
+
], C2.prototype, "direction");
|
|
1576
|
+
ie([
|
|
1577
1577
|
H()
|
|
1578
|
-
],
|
|
1579
|
-
customElements.get("anduin-divider") || customElements.define("anduin-divider",
|
|
1580
|
-
var
|
|
1578
|
+
], C2.prototype, "hasContent");
|
|
1579
|
+
customElements.get("anduin-divider") || customElements.define("anduin-divider", C2);
|
|
1580
|
+
var Je = Object.defineProperty, Qe = (r, e, t, o) => {
|
|
1581
1581
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1582
1582
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1583
|
-
return i &&
|
|
1583
|
+
return i && Je(e, t, i), i;
|
|
1584
1584
|
};
|
|
1585
|
-
const
|
|
1585
|
+
const X5 = class X5 extends h {
|
|
1586
1586
|
constructor() {
|
|
1587
1587
|
super(...arguments), this.variant = "gray";
|
|
1588
1588
|
}
|
|
@@ -1590,7 +1590,7 @@ const K5 = class K5 extends h {
|
|
|
1590
1590
|
return s`<div class="dot dot--${this.variant}" part="dot"></div>`;
|
|
1591
1591
|
}
|
|
1592
1592
|
};
|
|
1593
|
-
|
|
1593
|
+
X5.styles = g`
|
|
1594
1594
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1595
1595
|
.dot { width: 10px; height: 10px; border-radius: 9999px; }
|
|
1596
1596
|
.dot--gray { background-color: var(--color-semantic-gray-6); color: var(--color-semantic-gray-0); }
|
|
@@ -1599,17 +1599,17 @@ K5.styles = g`
|
|
|
1599
1599
|
.dot--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1600
1600
|
.dot--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1601
1601
|
`;
|
|
1602
|
-
let
|
|
1603
|
-
|
|
1602
|
+
let R2 = X5;
|
|
1603
|
+
Qe([
|
|
1604
1604
|
a()
|
|
1605
|
-
],
|
|
1606
|
-
customElements.get("anduin-dot") || customElements.define("anduin-dot",
|
|
1607
|
-
var
|
|
1605
|
+
], R2.prototype, "variant");
|
|
1606
|
+
customElements.get("anduin-dot") || customElements.define("anduin-dot", R2);
|
|
1607
|
+
var e7 = Object.defineProperty, oe = (r, e, t, o) => {
|
|
1608
1608
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1609
1609
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1610
|
-
return i &&
|
|
1610
|
+
return i && e7(e, t, i), i;
|
|
1611
1611
|
};
|
|
1612
|
-
const
|
|
1612
|
+
const J5 = class J5 extends h {
|
|
1613
1613
|
constructor() {
|
|
1614
1614
|
super(...arguments), this.percent = "", this.height = "medium";
|
|
1615
1615
|
}
|
|
@@ -1625,7 +1625,7 @@ const W5 = class W5 extends h {
|
|
|
1625
1625
|
`;
|
|
1626
1626
|
}
|
|
1627
1627
|
};
|
|
1628
|
-
|
|
1628
|
+
J5.styles = g`
|
|
1629
1629
|
:host { display: block; font-family: var(--font-sans); }
|
|
1630
1630
|
.progress { overflow-x: hidden; position: relative; border-radius: 9999px; }
|
|
1631
1631
|
.progress__fill {
|
|
@@ -1641,20 +1641,20 @@ W5.styles = g`
|
|
|
1641
1641
|
to { transform: translateX(330%); }
|
|
1642
1642
|
}
|
|
1643
1643
|
`;
|
|
1644
|
-
let
|
|
1645
|
-
|
|
1644
|
+
let p2 = J5;
|
|
1645
|
+
oe([
|
|
1646
1646
|
a()
|
|
1647
|
-
],
|
|
1648
|
-
|
|
1647
|
+
], p2.prototype, "percent");
|
|
1648
|
+
oe([
|
|
1649
1649
|
a()
|
|
1650
|
-
],
|
|
1651
|
-
customElements.get("anduin-progress") || customElements.define("anduin-progress",
|
|
1652
|
-
var
|
|
1650
|
+
], p2.prototype, "height");
|
|
1651
|
+
customElements.get("anduin-progress") || customElements.define("anduin-progress", p2);
|
|
1652
|
+
var t7 = Object.defineProperty, G1 = (r, e, t, o) => {
|
|
1653
1653
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1654
1654
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1655
|
-
return i &&
|
|
1655
|
+
return i && t7(e, t, i), i;
|
|
1656
1656
|
};
|
|
1657
|
-
const
|
|
1657
|
+
const Q5 = class Q5 extends h {
|
|
1658
1658
|
constructor() {
|
|
1659
1659
|
super(...arguments), this.effect = "pulse", this.shape = "rectangle", this.height = "", this.width = "100%", this.duration = 1500, this.fontSize = "";
|
|
1660
1660
|
}
|
|
@@ -1673,7 +1673,7 @@ const Y5 = class Y5 extends h {
|
|
|
1673
1673
|
`;
|
|
1674
1674
|
}
|
|
1675
1675
|
};
|
|
1676
|
-
|
|
1676
|
+
Q5.styles = g`
|
|
1677
1677
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1678
1678
|
.skeleton { background-color: var(--color-gray-3); position: relative; overflow: hidden; }
|
|
1679
1679
|
.skeleton--circle { border-radius: 9999px; }
|
|
@@ -1692,7 +1692,7 @@ Y5.styles = g`
|
|
|
1692
1692
|
0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
|
|
1693
1693
|
}
|
|
1694
1694
|
`;
|
|
1695
|
-
let o1 =
|
|
1695
|
+
let o1 = Q5;
|
|
1696
1696
|
G1([
|
|
1697
1697
|
a()
|
|
1698
1698
|
], o1.prototype, "effect");
|
|
@@ -1712,12 +1712,12 @@ G1([
|
|
|
1712
1712
|
a({ attribute: "font-size" })
|
|
1713
1713
|
], o1.prototype, "fontSize");
|
|
1714
1714
|
customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", o1);
|
|
1715
|
-
var
|
|
1715
|
+
var i7 = Object.defineProperty, o7 = (r, e, t, o) => {
|
|
1716
1716
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1717
1717
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1718
|
-
return i &&
|
|
1718
|
+
return i && i7(e, t, i), i;
|
|
1719
1719
|
};
|
|
1720
|
-
const
|
|
1720
|
+
const e4 = class e4 extends h {
|
|
1721
1721
|
constructor() {
|
|
1722
1722
|
super(...arguments), this.height = "256px";
|
|
1723
1723
|
}
|
|
@@ -1732,28 +1732,28 @@ const q5 = class q5 extends h {
|
|
|
1732
1732
|
`;
|
|
1733
1733
|
}
|
|
1734
1734
|
};
|
|
1735
|
-
|
|
1735
|
+
e4.styles = g`
|
|
1736
1736
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1737
1737
|
.loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
|
|
1738
1738
|
.loading-state__indicator { color: var(--color-primary-4); }
|
|
1739
1739
|
.loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-gray-6); }
|
|
1740
1740
|
`;
|
|
1741
|
-
let
|
|
1742
|
-
|
|
1741
|
+
let $2 = e4;
|
|
1742
|
+
o7([
|
|
1743
1743
|
a()
|
|
1744
|
-
],
|
|
1745
|
-
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state",
|
|
1746
|
-
var
|
|
1744
|
+
], $2.prototype, "height");
|
|
1745
|
+
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", $2);
|
|
1746
|
+
var n7 = Object.defineProperty, O5 = (r, e, t, o) => {
|
|
1747
1747
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1748
1748
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1749
|
-
return i &&
|
|
1749
|
+
return i && n7(e, t, i), i;
|
|
1750
1750
|
};
|
|
1751
|
-
const
|
|
1751
|
+
const ne = "anduin-field:label-click", u1 = "anduin-field:label-click-coordinated", t4 = class t4 extends h {
|
|
1752
1752
|
constructor() {
|
|
1753
1753
|
super(...arguments), this.orientation = "vertical";
|
|
1754
1754
|
}
|
|
1755
1755
|
connectedCallback() {
|
|
1756
|
-
super.connectedCallback(), this.addEventListener(
|
|
1756
|
+
super.connectedCallback(), this.addEventListener(ne, (e) => {
|
|
1757
1757
|
const t = e;
|
|
1758
1758
|
this.dispatchEvent(new CustomEvent(u1, {
|
|
1759
1759
|
detail: t.detail,
|
|
@@ -1771,17 +1771,17 @@ const ie = "anduin-field:label-click", u1 = "anduin-field:label-click-coordinate
|
|
|
1771
1771
|
`;
|
|
1772
1772
|
}
|
|
1773
1773
|
};
|
|
1774
|
-
|
|
1774
|
+
t4.styles = g`
|
|
1775
1775
|
:host { display: block; font-family: var(--font-sans); }
|
|
1776
1776
|
.field { display: flex; flex-wrap: wrap; }
|
|
1777
1777
|
.field--vertical { flex-direction: column; row-gap: 4px; }
|
|
1778
1778
|
.field--horizontal { column-gap: 4px; }
|
|
1779
1779
|
`;
|
|
1780
|
-
let
|
|
1781
|
-
|
|
1780
|
+
let E2 = t4;
|
|
1781
|
+
O5([
|
|
1782
1782
|
a()
|
|
1783
|
-
],
|
|
1784
|
-
const
|
|
1783
|
+
], E2.prototype, "orientation");
|
|
1784
|
+
const i4 = class i4 extends h {
|
|
1785
1785
|
constructor() {
|
|
1786
1786
|
super(...arguments), this.htmlfor = "", this.required = !1;
|
|
1787
1787
|
}
|
|
@@ -1789,7 +1789,7 @@ const J5 = class J5 extends h {
|
|
|
1789
1789
|
super.connectedCallback();
|
|
1790
1790
|
}
|
|
1791
1791
|
onLabelClick(e) {
|
|
1792
|
-
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(
|
|
1792
|
+
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(ne, {
|
|
1793
1793
|
detail: this.htmlfor,
|
|
1794
1794
|
bubbles: !0,
|
|
1795
1795
|
composed: !0
|
|
@@ -1808,59 +1808,59 @@ const J5 = class J5 extends h {
|
|
|
1808
1808
|
`;
|
|
1809
1809
|
}
|
|
1810
1810
|
};
|
|
1811
|
-
|
|
1811
|
+
i4.styles = g`
|
|
1812
1812
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1813
1813
|
.field-label { font-size: 13px; line-height: 20px; font-weight: 600; cursor: default; color: var(--color-gray-8, #101828); }
|
|
1814
1814
|
.field-label__required { color: var(--color-danger-5); }
|
|
1815
1815
|
`;
|
|
1816
|
-
let
|
|
1817
|
-
|
|
1816
|
+
let h2 = i4;
|
|
1817
|
+
O5([
|
|
1818
1818
|
a()
|
|
1819
|
-
],
|
|
1820
|
-
|
|
1819
|
+
], h2.prototype, "htmlfor");
|
|
1820
|
+
O5([
|
|
1821
1821
|
a({ type: Boolean })
|
|
1822
|
-
],
|
|
1823
|
-
const
|
|
1822
|
+
], h2.prototype, "required");
|
|
1823
|
+
const o4 = class o4 extends h {
|
|
1824
1824
|
render() {
|
|
1825
1825
|
return s`<div class="field-description" part="description"><slot></slot></div>`;
|
|
1826
1826
|
}
|
|
1827
1827
|
};
|
|
1828
|
-
|
|
1828
|
+
o4.styles = g`
|
|
1829
1829
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1830
1830
|
.field-description { display: block; line-height: 16px; font-size: 11px; color: var(--color-gray-7); }
|
|
1831
1831
|
`;
|
|
1832
|
-
let
|
|
1833
|
-
const
|
|
1832
|
+
let t5 = o4;
|
|
1833
|
+
const n4 = class n4 extends h {
|
|
1834
1834
|
render() {
|
|
1835
1835
|
return s`<div class="field-error" part="error"><slot></slot></div>`;
|
|
1836
1836
|
}
|
|
1837
1837
|
};
|
|
1838
|
-
|
|
1838
|
+
n4.styles = g`
|
|
1839
1839
|
:host { display: block; font-family: var(--font-sans); }
|
|
1840
1840
|
.field-error { color: var(--color-danger-4); }
|
|
1841
1841
|
`;
|
|
1842
|
-
let
|
|
1843
|
-
const
|
|
1842
|
+
let i5 = n4;
|
|
1843
|
+
const r4 = class r4 extends h {
|
|
1844
1844
|
render() {
|
|
1845
1845
|
return s`<div class="field-group" part="group"><slot></slot></div>`;
|
|
1846
1846
|
}
|
|
1847
1847
|
};
|
|
1848
|
-
|
|
1848
|
+
r4.styles = g`
|
|
1849
1849
|
:host { display: block; font-family: var(--font-sans); }
|
|
1850
1850
|
.field-group { display: flex; flex-direction: column; row-gap: 24px; }
|
|
1851
1851
|
`;
|
|
1852
|
-
let
|
|
1853
|
-
customElements.get("anduin-field") || customElements.define("anduin-field",
|
|
1854
|
-
customElements.get("anduin-field-label") || customElements.define("anduin-field-label",
|
|
1855
|
-
customElements.get("anduin-field-description") || customElements.define("anduin-field-description",
|
|
1856
|
-
customElements.get("anduin-field-error") || customElements.define("anduin-field-error",
|
|
1857
|
-
customElements.get("anduin-field-group") || customElements.define("anduin-field-group",
|
|
1858
|
-
var
|
|
1852
|
+
let o5 = r4;
|
|
1853
|
+
customElements.get("anduin-field") || customElements.define("anduin-field", E2);
|
|
1854
|
+
customElements.get("anduin-field-label") || customElements.define("anduin-field-label", h2);
|
|
1855
|
+
customElements.get("anduin-field-description") || customElements.define("anduin-field-description", t5);
|
|
1856
|
+
customElements.get("anduin-field-error") || customElements.define("anduin-field-error", i5);
|
|
1857
|
+
customElements.get("anduin-field-group") || customElements.define("anduin-field-group", o5);
|
|
1858
|
+
var r7 = Object.defineProperty, L2 = (r, e, t, o) => {
|
|
1859
1859
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1860
1860
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1861
|
-
return i &&
|
|
1861
|
+
return i && r7(e, t, i), i;
|
|
1862
1862
|
};
|
|
1863
|
-
const
|
|
1863
|
+
const l7 = "anduin-checkbox:change", l4 = class l4 extends h {
|
|
1864
1864
|
constructor() {
|
|
1865
1865
|
super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
|
|
1866
1866
|
}
|
|
@@ -1873,7 +1873,7 @@ const n7 = "anduin-checkbox:change", i4 = class i4 extends h {
|
|
|
1873
1873
|
});
|
|
1874
1874
|
}
|
|
1875
1875
|
toggle() {
|
|
1876
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
1876
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(l7, {
|
|
1877
1877
|
detail: this.checked,
|
|
1878
1878
|
bubbles: !0,
|
|
1879
1879
|
composed: !0
|
|
@@ -1914,7 +1914,7 @@ const n7 = "anduin-checkbox:change", i4 = class i4 extends h {
|
|
|
1914
1914
|
`;
|
|
1915
1915
|
}
|
|
1916
1916
|
};
|
|
1917
|
-
|
|
1917
|
+
l4.styles = g`
|
|
1918
1918
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
1919
1919
|
|
|
1920
1920
|
label {
|
|
@@ -1952,29 +1952,29 @@ i4.styles = g`
|
|
|
1952
1952
|
.checkbox__icon { position: absolute; inset: 0; pointer-events: none; color: var(--color-gray-4); display: flex; align-items: center; justify-content: center; }
|
|
1953
1953
|
.checkbox__icon--visible { color: var(--color-gray-0); }
|
|
1954
1954
|
`;
|
|
1955
|
-
let
|
|
1956
|
-
|
|
1955
|
+
let g1 = l4;
|
|
1956
|
+
L2([
|
|
1957
1957
|
a({ type: Boolean })
|
|
1958
|
-
],
|
|
1959
|
-
|
|
1958
|
+
], g1.prototype, "checked");
|
|
1959
|
+
L2([
|
|
1960
1960
|
a({ type: Boolean })
|
|
1961
|
-
],
|
|
1962
|
-
|
|
1961
|
+
], g1.prototype, "disabled");
|
|
1962
|
+
L2([
|
|
1963
1963
|
a({ type: Boolean })
|
|
1964
|
-
],
|
|
1965
|
-
|
|
1964
|
+
], g1.prototype, "indeterminate");
|
|
1965
|
+
L2([
|
|
1966
1966
|
a({ type: Boolean })
|
|
1967
|
-
],
|
|
1968
|
-
|
|
1967
|
+
], g1.prototype, "readonly");
|
|
1968
|
+
L2([
|
|
1969
1969
|
a()
|
|
1970
|
-
],
|
|
1971
|
-
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox",
|
|
1972
|
-
var
|
|
1970
|
+
], g1.prototype, "inputid");
|
|
1971
|
+
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", g1);
|
|
1972
|
+
var a7 = Object.defineProperty, K = (r, e, t, o) => {
|
|
1973
1973
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1974
1974
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1975
|
-
return i &&
|
|
1975
|
+
return i && a7(e, t, i), i;
|
|
1976
1976
|
};
|
|
1977
|
-
const
|
|
1977
|
+
const x3 = "anduin-input:change", s7 = "anduin-input:clear", P2 = class P2 extends h {
|
|
1978
1978
|
constructor() {
|
|
1979
1979
|
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;
|
|
1980
1980
|
}
|
|
@@ -1990,8 +1990,37 @@ const V3 = "anduin-input:change", l7 = "anduin-input:clear", o4 = class o4 exten
|
|
|
1990
1990
|
updated() {
|
|
1991
1991
|
this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
|
|
1992
1992
|
}
|
|
1993
|
+
/**
|
|
1994
|
+
* Runs `fn` against the inner `<input>` now, or once the first render has
|
|
1995
|
+
* made it. A wrapper's ref is live before Lit's first render (a microtask
|
|
1996
|
+
* after connection), and a call made then would otherwise find no input and
|
|
1997
|
+
* do nothing — the "open focused, value selected" case is exactly that.
|
|
1998
|
+
*/
|
|
1999
|
+
_withInput(e) {
|
|
2000
|
+
this.inputEl ? e(this.inputEl) : this.updateComplete.then(() => {
|
|
2001
|
+
this.inputEl && e(this.inputEl);
|
|
2002
|
+
});
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* Focuses the inner `<input>` (via `delegatesFocus`). A disabled input stays
|
|
2006
|
+
* unfocusable, as a native one is.
|
|
2007
|
+
*/
|
|
2008
|
+
focus(e) {
|
|
2009
|
+
this.inputEl ? super.focus(e) : this.updateComplete.then(() => super.focus(e));
|
|
2010
|
+
}
|
|
2011
|
+
/**
|
|
2012
|
+
* Selects the whole value so the next keystroke replaces it — e.g. from an
|
|
2013
|
+
* `onFocus` handler. Like the native `select()`, it also focuses the field.
|
|
2014
|
+
*/
|
|
2015
|
+
select() {
|
|
2016
|
+
this._withInput((e) => e.select());
|
|
2017
|
+
}
|
|
2018
|
+
/** Forwards to the inner `<input>`'s `setSelectionRange`. */
|
|
2019
|
+
setSelectionRange(e, t, o) {
|
|
2020
|
+
this._withInput((i) => i.setSelectionRange(e, t, o));
|
|
2021
|
+
}
|
|
1993
2022
|
onInput() {
|
|
1994
|
-
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(
|
|
2023
|
+
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(x3, {
|
|
1995
2024
|
detail: this.value,
|
|
1996
2025
|
bubbles: !0,
|
|
1997
2026
|
composed: !0
|
|
@@ -1999,7 +2028,7 @@ const V3 = "anduin-input:change", l7 = "anduin-input:clear", o4 = class o4 exten
|
|
|
1999
2028
|
}
|
|
2000
2029
|
onClear() {
|
|
2001
2030
|
var e;
|
|
2002
|
-
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(
|
|
2031
|
+
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(x3, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(s7, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
|
|
2003
2032
|
}
|
|
2004
2033
|
render() {
|
|
2005
2034
|
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", o = !!this.startIcon, i = !!this.endIcon || this.clearable && !!this.value, n = this.clearable && !!this.value && !this.disabled && !this.readonly, l = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", d = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
|
|
@@ -2043,7 +2072,7 @@ const V3 = "anduin-input:change", l7 = "anduin-input:clear", o4 = class o4 exten
|
|
|
2043
2072
|
`;
|
|
2044
2073
|
}
|
|
2045
2074
|
};
|
|
2046
|
-
|
|
2075
|
+
P2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, P2.styles = g`
|
|
2047
2076
|
:host { display: block; font-family: var(--font-sans); }
|
|
2048
2077
|
|
|
2049
2078
|
.input-wrapper { position: relative; display: flex; align-items: center; }
|
|
@@ -2097,7 +2126,7 @@ o4.styles = g`
|
|
|
2097
2126
|
}
|
|
2098
2127
|
.input__clear:hover { color: var(--color-gray-7); }
|
|
2099
2128
|
`;
|
|
2100
|
-
let P =
|
|
2129
|
+
let P = P2;
|
|
2101
2130
|
K([
|
|
2102
2131
|
a()
|
|
2103
2132
|
], P.prototype, "value");
|
|
@@ -2132,12 +2161,12 @@ K([
|
|
|
2132
2161
|
z("input")
|
|
2133
2162
|
], P.prototype, "inputEl");
|
|
2134
2163
|
customElements.get("anduin-input") || customElements.define("anduin-input", P);
|
|
2135
|
-
var
|
|
2164
|
+
var d7 = Object.defineProperty, H1 = (r, e, t, o) => {
|
|
2136
2165
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2137
2166
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2138
|
-
return i &&
|
|
2167
|
+
return i && d7(e, t, i), i;
|
|
2139
2168
|
};
|
|
2140
|
-
const
|
|
2169
|
+
const c7 = "anduin-textarea:change", F2 = class F2 extends h {
|
|
2141
2170
|
constructor() {
|
|
2142
2171
|
super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
|
|
2143
2172
|
}
|
|
@@ -2153,8 +2182,26 @@ const s7 = "anduin-textarea:change", n4 = class n4 extends h {
|
|
|
2153
2182
|
updated() {
|
|
2154
2183
|
this.textareaEl && this.textareaEl.value !== this.value && (this.textareaEl.value = this.value);
|
|
2155
2184
|
}
|
|
2185
|
+
/** Runs `fn` against the inner `<textarea>` now, or once the first render has made it (see `anduin-input`). */
|
|
2186
|
+
_withTextarea(e) {
|
|
2187
|
+
this.textareaEl ? e(this.textareaEl) : this.updateComplete.then(() => {
|
|
2188
|
+
this.textareaEl && e(this.textareaEl);
|
|
2189
|
+
});
|
|
2190
|
+
}
|
|
2191
|
+
/** Focuses the inner `<textarea>` (via `delegatesFocus`). A disabled one stays unfocusable. */
|
|
2192
|
+
focus(e) {
|
|
2193
|
+
this.textareaEl ? super.focus(e) : this.updateComplete.then(() => super.focus(e));
|
|
2194
|
+
}
|
|
2195
|
+
/** Selects the whole value so typing replaces it. Like the native `select()`, it also focuses the field. */
|
|
2196
|
+
select() {
|
|
2197
|
+
this._withTextarea((e) => e.select());
|
|
2198
|
+
}
|
|
2199
|
+
/** Forwards to the inner `<textarea>`'s `setSelectionRange`. */
|
|
2200
|
+
setSelectionRange(e, t, o) {
|
|
2201
|
+
this._withTextarea((i) => i.setSelectionRange(e, t, o));
|
|
2202
|
+
}
|
|
2156
2203
|
onInput() {
|
|
2157
|
-
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(
|
|
2204
|
+
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(c7, {
|
|
2158
2205
|
detail: this.value,
|
|
2159
2206
|
bubbles: !0,
|
|
2160
2207
|
composed: !0
|
|
@@ -2179,7 +2226,7 @@ const s7 = "anduin-textarea:change", n4 = class n4 extends h {
|
|
|
2179
2226
|
`;
|
|
2180
2227
|
}
|
|
2181
2228
|
};
|
|
2182
|
-
|
|
2229
|
+
F2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, F2.styles = g`
|
|
2183
2230
|
:host { display: block; font-family: var(--font-sans); }
|
|
2184
2231
|
|
|
2185
2232
|
.textarea {
|
|
@@ -2196,46 +2243,46 @@ n4.styles = g`
|
|
|
2196
2243
|
.textarea--warning { border-color: var(--color-warning-4); }
|
|
2197
2244
|
.textarea--loading { border-color: var(--color-gray-4); }
|
|
2198
2245
|
`;
|
|
2199
|
-
let
|
|
2200
|
-
|
|
2246
|
+
let G = F2;
|
|
2247
|
+
H1([
|
|
2201
2248
|
a()
|
|
2202
|
-
],
|
|
2203
|
-
|
|
2249
|
+
], G.prototype, "value");
|
|
2250
|
+
H1([
|
|
2204
2251
|
a({ type: Boolean })
|
|
2205
|
-
],
|
|
2206
|
-
|
|
2252
|
+
], G.prototype, "disabled");
|
|
2253
|
+
H1([
|
|
2207
2254
|
a({ type: Boolean })
|
|
2208
|
-
],
|
|
2209
|
-
|
|
2255
|
+
], G.prototype, "readonly");
|
|
2256
|
+
H1([
|
|
2210
2257
|
a()
|
|
2211
|
-
],
|
|
2212
|
-
|
|
2258
|
+
], G.prototype, "placeholder");
|
|
2259
|
+
H1([
|
|
2213
2260
|
a()
|
|
2214
|
-
],
|
|
2215
|
-
|
|
2261
|
+
], G.prototype, "inputid");
|
|
2262
|
+
H1([
|
|
2216
2263
|
a({ type: Number })
|
|
2217
|
-
],
|
|
2218
|
-
|
|
2264
|
+
], G.prototype, "rows");
|
|
2265
|
+
H1([
|
|
2219
2266
|
a()
|
|
2220
|
-
],
|
|
2221
|
-
|
|
2267
|
+
], G.prototype, "status");
|
|
2268
|
+
H1([
|
|
2222
2269
|
z("textarea")
|
|
2223
|
-
],
|
|
2224
|
-
customElements.get("anduin-textarea") || customElements.define("anduin-textarea",
|
|
2225
|
-
var
|
|
2270
|
+
], G.prototype, "textareaEl");
|
|
2271
|
+
customElements.get("anduin-textarea") || customElements.define("anduin-textarea", G);
|
|
2272
|
+
var C7 = Object.defineProperty, N = (r, e, t, o) => {
|
|
2226
2273
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2227
2274
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2228
|
-
return i &&
|
|
2275
|
+
return i && C7(e, t, i), i;
|
|
2229
2276
|
};
|
|
2230
|
-
const
|
|
2277
|
+
const re = "anduin-tab:trigger-click", T2 = "anduin-tab:value-changed", p7 = "anduin-tab:change", a4 = class a4 extends h {
|
|
2231
2278
|
constructor() {
|
|
2232
2279
|
super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
|
|
2233
2280
|
}
|
|
2234
2281
|
connectedCallback() {
|
|
2235
|
-
super.connectedCallback(), this.addEventListener(
|
|
2282
|
+
super.connectedCallback(), this.addEventListener(re, (e) => {
|
|
2236
2283
|
e.stopPropagation();
|
|
2237
2284
|
const t = e;
|
|
2238
|
-
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(
|
|
2285
|
+
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(p7, { detail: t.detail, bubbles: !0, composed: !0 }));
|
|
2239
2286
|
}), requestAnimationFrame(() => {
|
|
2240
2287
|
const e = this.value || this.defaultValue;
|
|
2241
2288
|
e && (this.value || (this.value = e), this.broadcastValueChanged(e));
|
|
@@ -2248,19 +2295,19 @@ const oe = "anduin-tab:trigger-click", F2 = "anduin-tab:value-changed", c7 = "an
|
|
|
2248
2295
|
}
|
|
2249
2296
|
}
|
|
2250
2297
|
broadcastValueChanged(e) {
|
|
2251
|
-
this.dispatchEvent(new CustomEvent(
|
|
2298
|
+
this.dispatchEvent(new CustomEvent(T2, { detail: e, bubbles: !1, composed: !1 }));
|
|
2252
2299
|
}
|
|
2253
2300
|
render() {
|
|
2254
2301
|
return s`<div class="tabs" part="tabs"><slot></slot></div>`;
|
|
2255
2302
|
}
|
|
2256
2303
|
};
|
|
2257
|
-
|
|
2304
|
+
a4.styles = g`
|
|
2258
2305
|
:host { display: flex; flex-direction: column; font-family: var(--font-sans); }
|
|
2259
2306
|
:host([fill]) { flex: 1; min-height: 0; --_tab-fill-flex: 1; --_tab-fill-height: 100%; }
|
|
2260
2307
|
.tabs { display: flex; flex-direction: column; width: 100%; }
|
|
2261
2308
|
:host([fill]) .tabs { flex: 1; min-height: 0; }
|
|
2262
2309
|
`;
|
|
2263
|
-
let O1 =
|
|
2310
|
+
let O1 = a4;
|
|
2264
2311
|
N([
|
|
2265
2312
|
a({ attribute: "default-value" })
|
|
2266
2313
|
], O1.prototype, "defaultValue");
|
|
@@ -2270,14 +2317,14 @@ N([
|
|
|
2270
2317
|
N([
|
|
2271
2318
|
a({ type: Boolean, reflect: !0 })
|
|
2272
2319
|
], O1.prototype, "fill");
|
|
2273
|
-
const
|
|
2320
|
+
const s4 = class s4 extends h {
|
|
2274
2321
|
constructor() {
|
|
2275
2322
|
super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
|
|
2276
2323
|
}
|
|
2277
2324
|
connectedCallback() {
|
|
2278
2325
|
super.connectedCallback();
|
|
2279
2326
|
const e = this.closest("anduin-tabs");
|
|
2280
|
-
e && e.addEventListener(
|
|
2327
|
+
e && e.addEventListener(T2, (t) => {
|
|
2281
2328
|
const o = t;
|
|
2282
2329
|
this.lastActiveValue = o.detail, requestAnimationFrame(() => {
|
|
2283
2330
|
this.animateIndicator(o.detail);
|
|
@@ -2314,7 +2361,7 @@ const l4 = class l4 extends h {
|
|
|
2314
2361
|
`;
|
|
2315
2362
|
}
|
|
2316
2363
|
};
|
|
2317
|
-
|
|
2364
|
+
s4.styles = g`
|
|
2318
2365
|
:host { display: block; font-family: var(--font-sans); }
|
|
2319
2366
|
/* Transparent by default so the list picks up whatever it sits on. Set a
|
|
2320
2367
|
* background via anduin-tabs-list::part(tabs-list) when one is wanted. */
|
|
@@ -2331,27 +2378,27 @@ l4.styles = g`
|
|
|
2331
2378
|
left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
|
|
2332
2379
|
}
|
|
2333
2380
|
`;
|
|
2334
|
-
let u2 =
|
|
2381
|
+
let u2 = s4;
|
|
2335
2382
|
N([
|
|
2336
2383
|
a()
|
|
2337
2384
|
], u2.prototype, "alignment");
|
|
2338
2385
|
N([
|
|
2339
2386
|
z(".tabs-list__indicator")
|
|
2340
2387
|
], u2.prototype, "indicator");
|
|
2341
|
-
const
|
|
2388
|
+
const d4 = class d4 extends h {
|
|
2342
2389
|
constructor() {
|
|
2343
2390
|
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
|
|
2344
2391
|
}
|
|
2345
2392
|
connectedCallback() {
|
|
2346
2393
|
super.connectedCallback();
|
|
2347
2394
|
const e = this.closest("anduin-tabs");
|
|
2348
|
-
e && e.addEventListener(
|
|
2395
|
+
e && e.addEventListener(T2, (t) => {
|
|
2349
2396
|
const o = t;
|
|
2350
2397
|
this.isActive = o.detail === this.value;
|
|
2351
2398
|
});
|
|
2352
2399
|
}
|
|
2353
2400
|
onClick() {
|
|
2354
|
-
this.dispatchEvent(new CustomEvent(
|
|
2401
|
+
this.dispatchEvent(new CustomEvent(re, { detail: this.value, bubbles: !0, composed: !0 }));
|
|
2355
2402
|
}
|
|
2356
2403
|
render() {
|
|
2357
2404
|
return s`
|
|
@@ -2372,7 +2419,7 @@ const a4 = class a4 extends h {
|
|
|
2372
2419
|
`;
|
|
2373
2420
|
}
|
|
2374
2421
|
};
|
|
2375
|
-
|
|
2422
|
+
d4.styles = g`
|
|
2376
2423
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2377
2424
|
.tab-trigger {
|
|
2378
2425
|
cursor: pointer; background: none; border: none; display: block;
|
|
@@ -2395,7 +2442,7 @@ a4.styles = g`
|
|
|
2395
2442
|
color: var(--color-gray-7); white-space: nowrap;
|
|
2396
2443
|
}
|
|
2397
2444
|
`;
|
|
2398
|
-
let n1 =
|
|
2445
|
+
let n1 = d4;
|
|
2399
2446
|
N([
|
|
2400
2447
|
a({ reflect: !0 })
|
|
2401
2448
|
], n1.prototype, "value");
|
|
@@ -2414,14 +2461,14 @@ N([
|
|
|
2414
2461
|
N([
|
|
2415
2462
|
H()
|
|
2416
2463
|
], n1.prototype, "isActive");
|
|
2417
|
-
const
|
|
2464
|
+
const c4 = class c4 extends h {
|
|
2418
2465
|
constructor() {
|
|
2419
2466
|
super(...arguments), this.value = "", this.isActive = !1;
|
|
2420
2467
|
}
|
|
2421
2468
|
connectedCallback() {
|
|
2422
2469
|
super.connectedCallback();
|
|
2423
2470
|
const e = this.closest("anduin-tabs");
|
|
2424
|
-
e && e.addEventListener(
|
|
2471
|
+
e && e.addEventListener(T2, (t) => {
|
|
2425
2472
|
const o = t;
|
|
2426
2473
|
this.isActive = o.detail === this.value;
|
|
2427
2474
|
});
|
|
@@ -2437,28 +2484,28 @@ const s4 = class s4 extends h {
|
|
|
2437
2484
|
`;
|
|
2438
2485
|
}
|
|
2439
2486
|
};
|
|
2440
|
-
|
|
2487
|
+
c4.styles = g`
|
|
2441
2488
|
:host { display: block; font-family: var(--font-sans); flex: var(--_tab-fill-flex, 0 0 auto); min-height: 0; }
|
|
2442
2489
|
:host(:not([active])) { display: none; }
|
|
2443
2490
|
.tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
|
|
2444
2491
|
`;
|
|
2445
|
-
let
|
|
2492
|
+
let g2 = c4;
|
|
2446
2493
|
N([
|
|
2447
2494
|
a()
|
|
2448
|
-
],
|
|
2495
|
+
], g2.prototype, "value");
|
|
2449
2496
|
N([
|
|
2450
2497
|
H()
|
|
2451
|
-
],
|
|
2498
|
+
], g2.prototype, "isActive");
|
|
2452
2499
|
customElements.get("anduin-tabs") || customElements.define("anduin-tabs", O1);
|
|
2453
2500
|
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", u2);
|
|
2454
2501
|
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", n1);
|
|
2455
|
-
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content",
|
|
2456
|
-
var
|
|
2502
|
+
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", g2);
|
|
2503
|
+
var h7 = Object.defineProperty, I5 = (r, e, t, o) => {
|
|
2457
2504
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2458
2505
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2459
|
-
return i &&
|
|
2506
|
+
return i && h7(e, t, i), i;
|
|
2460
2507
|
};
|
|
2461
|
-
const
|
|
2508
|
+
const u7 = "anduin-tag-close:click", g7 = {
|
|
2462
2509
|
gray: "tag--light-gray",
|
|
2463
2510
|
primary: "tag--light-primary",
|
|
2464
2511
|
success: "tag--light-success",
|
|
@@ -2483,7 +2530,7 @@ const p7 = "anduin-tag-close:click", u7 = {
|
|
|
2483
2530
|
customYellow: "tag--custom-yellow",
|
|
2484
2531
|
customYellowGreen: "tag--custom-yellow-green",
|
|
2485
2532
|
customYellowOrange: "tag--custom-yellow-orange"
|
|
2486
|
-
},
|
|
2533
|
+
}, f7 = {
|
|
2487
2534
|
gray: "tag__icon--light-gray",
|
|
2488
2535
|
primary: "tag__icon--light-primary",
|
|
2489
2536
|
success: "tag__icon--light-success",
|
|
@@ -2508,12 +2555,12 @@ const p7 = "anduin-tag-close:click", u7 = {
|
|
|
2508
2555
|
customMagenta: "tag__icon--custom-magenta",
|
|
2509
2556
|
customBlueGreen: "tag__icon--custom-blue-green",
|
|
2510
2557
|
customPink: "tag__icon--custom-pink"
|
|
2511
|
-
},
|
|
2558
|
+
}, C4 = class C4 extends h {
|
|
2512
2559
|
constructor() {
|
|
2513
2560
|
super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
|
|
2514
2561
|
}
|
|
2515
2562
|
render() {
|
|
2516
|
-
const e =
|
|
2563
|
+
const e = g7[this.variant] || "tag--light-gray", t = f7[this.variant] || "tag__icon--light-gray";
|
|
2517
2564
|
return s`
|
|
2518
2565
|
<div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
|
|
2519
2566
|
${this.icon ? s`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : u}
|
|
@@ -2523,7 +2570,7 @@ const p7 = "anduin-tag-close:click", u7 = {
|
|
|
2523
2570
|
`;
|
|
2524
2571
|
}
|
|
2525
2572
|
};
|
|
2526
|
-
|
|
2573
|
+
C4.styles = g`
|
|
2527
2574
|
:host { display: inline-flex; max-width: 100%; font-family: var(--font-sans); }
|
|
2528
2575
|
.tag {
|
|
2529
2576
|
font-weight: 500; font-size: 11px; height: 20px; padding-left: 6px; padding-right: 6px;
|
|
@@ -2571,19 +2618,19 @@ d4.styles = g`
|
|
|
2571
2618
|
.tag--custom-yellow-green { color: var(--color-gray-9); background-color: rgb(174,207,85); }
|
|
2572
2619
|
.tag--custom-yellow-orange { color: var(--color-gray-9); background-color: rgb(255,193,107); }
|
|
2573
2620
|
`;
|
|
2574
|
-
let I1 =
|
|
2575
|
-
|
|
2621
|
+
let I1 = C4;
|
|
2622
|
+
I5([
|
|
2576
2623
|
a()
|
|
2577
2624
|
], I1.prototype, "variant");
|
|
2578
|
-
|
|
2625
|
+
I5([
|
|
2579
2626
|
a()
|
|
2580
2627
|
], I1.prototype, "icon");
|
|
2581
|
-
|
|
2628
|
+
I5([
|
|
2582
2629
|
a({ type: Boolean })
|
|
2583
2630
|
], I1.prototype, "disabled");
|
|
2584
|
-
const
|
|
2631
|
+
const p4 = class p4 extends h {
|
|
2585
2632
|
onClick() {
|
|
2586
|
-
this.dispatchEvent(new CustomEvent(
|
|
2633
|
+
this.dispatchEvent(new CustomEvent(u7, { bubbles: !0, composed: !0 }));
|
|
2587
2634
|
}
|
|
2588
2635
|
render() {
|
|
2589
2636
|
return s`
|
|
@@ -2593,7 +2640,7 @@ const c4 = class c4 extends h {
|
|
|
2593
2640
|
`;
|
|
2594
2641
|
}
|
|
2595
2642
|
};
|
|
2596
|
-
|
|
2643
|
+
p4.styles = g`
|
|
2597
2644
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2598
2645
|
.tag-close__button {
|
|
2599
2646
|
flex: none; width: 16px; height: 16px; display: flex; align-items: center;
|
|
@@ -2603,15 +2650,15 @@ c4.styles = g`
|
|
|
2603
2650
|
.tag-close__button:hover { opacity: 0.7; }
|
|
2604
2651
|
.tag-close__button:active { opacity: 0.5; }
|
|
2605
2652
|
`;
|
|
2606
|
-
let
|
|
2653
|
+
let n5 = p4;
|
|
2607
2654
|
customElements.get("anduin-tag") || customElements.define("anduin-tag", I1);
|
|
2608
|
-
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close",
|
|
2609
|
-
var
|
|
2655
|
+
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", n5);
|
|
2656
|
+
var v7 = Object.defineProperty, F = (r, e, t, o) => {
|
|
2610
2657
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2611
2658
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2612
|
-
return i &&
|
|
2659
|
+
return i && v7(e, t, i), i;
|
|
2613
2660
|
};
|
|
2614
|
-
const
|
|
2661
|
+
const m7 = "anduin-toggle-group:change", b7 = "anduin-toggle-group-item:change", H7 = "anduin-toggle-group-item:select", y7 = "anduin-toggle-group-item:deselect", r5 = "anduin-toggle-group-item:item-click", h4 = class h4 extends h {
|
|
2615
2662
|
constructor() {
|
|
2616
2663
|
super(...arguments), this.mode = "single", this.defaultValue = "", this.value = null, this.size = "medium", this.variant = "gray", this.gap = !1, this.internalValue = [], this.userInteracted = !1, this.onItemClick = (e) => {
|
|
2617
2664
|
var c;
|
|
@@ -2623,7 +2670,7 @@ const f7 = "anduin-toggle-group:change", v7 = "anduin-toggle-group-item:change",
|
|
|
2623
2670
|
if (d == null || d.emitSelectionChange(!n), this.mode === "single" && !n)
|
|
2624
2671
|
for (const C of i)
|
|
2625
2672
|
(c = this.items.find((p) => p.value === C)) == null || c.emitSelectionChange(!1);
|
|
2626
|
-
this.dispatchEvent(new CustomEvent(
|
|
2673
|
+
this.dispatchEvent(new CustomEvent(m7, {
|
|
2627
2674
|
detail: l.join(" "),
|
|
2628
2675
|
bubbles: !0,
|
|
2629
2676
|
composed: !0
|
|
@@ -2634,16 +2681,16 @@ const f7 = "anduin-toggle-group:change", v7 = "anduin-toggle-group-item:change",
|
|
|
2634
2681
|
return this.value != null;
|
|
2635
2682
|
}
|
|
2636
2683
|
get selection() {
|
|
2637
|
-
return this.isControlled ?
|
|
2684
|
+
return this.isControlled ? K2(this.value) : this.internalValue;
|
|
2638
2685
|
}
|
|
2639
2686
|
connectedCallback() {
|
|
2640
|
-
super.connectedCallback(), this.hasUpdated || (this.internalValue =
|
|
2687
|
+
super.connectedCallback(), this.hasUpdated || (this.internalValue = K2(this.defaultValue)), this.addEventListener(r5, this.onItemClick);
|
|
2641
2688
|
}
|
|
2642
2689
|
willUpdate(e) {
|
|
2643
|
-
e.has("defaultValue") && !this.isControlled && !this.userInteracted && (this.internalValue =
|
|
2690
|
+
e.has("defaultValue") && !this.isControlled && !this.userInteracted && (this.internalValue = K2(this.defaultValue));
|
|
2644
2691
|
}
|
|
2645
2692
|
disconnectedCallback() {
|
|
2646
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
2693
|
+
super.disconnectedCallback(), this.removeEventListener(r5, this.onItemClick);
|
|
2647
2694
|
}
|
|
2648
2695
|
updated() {
|
|
2649
2696
|
this.syncItems();
|
|
@@ -2664,7 +2711,7 @@ const f7 = "anduin-toggle-group:change", v7 = "anduin-toggle-group-item:change",
|
|
|
2664
2711
|
`;
|
|
2665
2712
|
}
|
|
2666
2713
|
};
|
|
2667
|
-
|
|
2714
|
+
h4.styles = g`
|
|
2668
2715
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
2669
2716
|
.toggle-group { display: inline-flex; align-items: center; }
|
|
2670
2717
|
.toggle-group--small {
|
|
@@ -2698,7 +2745,7 @@ C4.styles = g`
|
|
|
2698
2745
|
/* Gapped pills stand alone, so each keeps all four borders. */
|
|
2699
2746
|
.toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
|
|
2700
2747
|
`;
|
|
2701
|
-
let Y =
|
|
2748
|
+
let Y = h4;
|
|
2702
2749
|
F([
|
|
2703
2750
|
a()
|
|
2704
2751
|
], Y.prototype, "mode");
|
|
@@ -2720,17 +2767,17 @@ F([
|
|
|
2720
2767
|
F([
|
|
2721
2768
|
H()
|
|
2722
2769
|
], Y.prototype, "internalValue");
|
|
2723
|
-
const
|
|
2770
|
+
const u4 = class u4 extends h {
|
|
2724
2771
|
constructor() {
|
|
2725
2772
|
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.selected = !1, this.groupSize = "medium", this.groupVariant = "gray", this.groupMode = "single";
|
|
2726
2773
|
}
|
|
2727
2774
|
/** Called by the parent group when the user's action changes this item's selection. */
|
|
2728
2775
|
emitSelectionChange(e) {
|
|
2729
|
-
this.dispatchEvent(new CustomEvent(
|
|
2776
|
+
this.dispatchEvent(new CustomEvent(b7, {
|
|
2730
2777
|
detail: e,
|
|
2731
2778
|
bubbles: !0,
|
|
2732
2779
|
composed: !0
|
|
2733
|
-
})), this.dispatchEvent(new CustomEvent(e ?
|
|
2780
|
+
})), this.dispatchEvent(new CustomEvent(e ? H7 : y7, {
|
|
2734
2781
|
detail: this.value,
|
|
2735
2782
|
bubbles: !0,
|
|
2736
2783
|
composed: !0
|
|
@@ -2740,7 +2787,7 @@ const p4 = class p4 extends h {
|
|
|
2740
2787
|
(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")));
|
|
2741
2788
|
}
|
|
2742
2789
|
onClick() {
|
|
2743
|
-
this.dispatchEvent(new CustomEvent(
|
|
2790
|
+
this.dispatchEvent(new CustomEvent(r5, {
|
|
2744
2791
|
detail: this.value,
|
|
2745
2792
|
bubbles: !0,
|
|
2746
2793
|
composed: !0
|
|
@@ -2770,7 +2817,7 @@ const p4 = class p4 extends h {
|
|
|
2770
2817
|
`;
|
|
2771
2818
|
}
|
|
2772
2819
|
};
|
|
2773
|
-
|
|
2820
|
+
u4.styles = g`
|
|
2774
2821
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2775
2822
|
.toggle-item {
|
|
2776
2823
|
position: relative; z-index: 0; box-sizing: border-box;
|
|
@@ -2806,7 +2853,7 @@ p4.styles = g`
|
|
|
2806
2853
|
.toggle-item--selected .toggle-item__icon { color: var(--color-gray-7); }
|
|
2807
2854
|
.toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-4); }
|
|
2808
2855
|
`;
|
|
2809
|
-
let q =
|
|
2856
|
+
let q = u4;
|
|
2810
2857
|
F([
|
|
2811
2858
|
a({ reflect: !0 })
|
|
2812
2859
|
], q.prototype, "value");
|
|
@@ -2828,17 +2875,17 @@ F([
|
|
|
2828
2875
|
F([
|
|
2829
2876
|
a({ attribute: !1 })
|
|
2830
2877
|
], q.prototype, "groupMode");
|
|
2831
|
-
function
|
|
2878
|
+
function K2(r) {
|
|
2832
2879
|
return r.split(" ").map((e) => e.trim()).filter(Boolean);
|
|
2833
2880
|
}
|
|
2834
2881
|
customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group", Y);
|
|
2835
2882
|
customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item", q);
|
|
2836
|
-
var
|
|
2883
|
+
var _7 = Object.defineProperty, le = (r, e, t, o) => {
|
|
2837
2884
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2838
2885
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2839
|
-
return i &&
|
|
2886
|
+
return i && _7(e, t, i), i;
|
|
2840
2887
|
};
|
|
2841
|
-
const
|
|
2888
|
+
const ae = "anduin-tooltip:show", T5 = "anduin-tooltip:hide", se = "anduin-tooltip:trigger-mounted", de = "anduin-tooltip:content-popup-mounted", ce = "anduin-tooltip:content-popup-unmounted", Ce = "anduin-tooltip:visibility-changed", L7 = [
|
|
2842
2889
|
"top-start",
|
|
2843
2890
|
"top-center",
|
|
2844
2891
|
"top-end",
|
|
@@ -2852,7 +2899,7 @@ const re = "anduin-tooltip:show", P5 = "anduin-tooltip:hide", le = "anduin-toolt
|
|
|
2852
2899
|
"left-center",
|
|
2853
2900
|
"left-end"
|
|
2854
2901
|
];
|
|
2855
|
-
function
|
|
2902
|
+
function M3(r, e, t, o, i) {
|
|
2856
2903
|
switch (o) {
|
|
2857
2904
|
case "top-start":
|
|
2858
2905
|
return { left: r.left, top: r.top - t - i };
|
|
@@ -2882,43 +2929,43 @@ function L3(r, e, t, o, i) {
|
|
|
2882
2929
|
return { left: 0, top: 0 };
|
|
2883
2930
|
}
|
|
2884
2931
|
}
|
|
2885
|
-
function
|
|
2932
|
+
function w3(r, e) {
|
|
2886
2933
|
return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
|
|
2887
2934
|
}
|
|
2888
|
-
function
|
|
2935
|
+
function Z3(r, e) {
|
|
2889
2936
|
const t = Math.max(r.left, e.left), o = Math.max(r.top, e.top), i = Math.min(r.right, e.right), n = Math.min(r.bottom, e.bottom);
|
|
2890
2937
|
return i < t || n < o ? 0 : (i - t) * (n - o);
|
|
2891
2938
|
}
|
|
2892
|
-
function
|
|
2939
|
+
function V7(r, e, t, o = 8) {
|
|
2893
2940
|
const i = window.innerWidth, n = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: n }, d = e.width, c = e.height;
|
|
2894
|
-
if (!
|
|
2941
|
+
if (!w3(
|
|
2895
2942
|
{ left: r.left, top: r.top, right: r.right, bottom: r.bottom },
|
|
2896
2943
|
l
|
|
2897
2944
|
)) return null;
|
|
2898
|
-
const C =
|
|
2945
|
+
const C = M3(r, d, c, t, o), p = L7.map((m) => ({ p: m, off: M3(r, d, c, m, o) })).filter(({ off: m }) => w3({ left: m.left, top: m.top, right: m.left + d, bottom: m.top + c }, l));
|
|
2899
2946
|
if (p.length === 0)
|
|
2900
2947
|
return {
|
|
2901
2948
|
placement: t,
|
|
2902
2949
|
left: Math.round(Math.min(Math.max(C.left, 0), i - d)),
|
|
2903
2950
|
top: Math.round(Math.min(Math.max(C.top, 0), n - c))
|
|
2904
2951
|
};
|
|
2905
|
-
p.sort((
|
|
2906
|
-
const _ = { left:
|
|
2952
|
+
p.sort((m, V) => {
|
|
2953
|
+
const _ = { left: m.off.left, top: m.off.top, right: m.off.left + d, bottom: m.off.top + c }, v = { left: V.off.left, top: V.off.top, right: V.off.left + d, bottom: V.off.top + c }, x = Z3(_, l), M = Z3(v, l);
|
|
2907
2954
|
if (M !== x) return M - x;
|
|
2908
|
-
const S = Math.abs(
|
|
2909
|
-
return S -
|
|
2955
|
+
const S = Math.abs(m.off.left - C.left) + Math.abs(m.off.top - C.top), U = Math.abs(V.off.left - C.left) + Math.abs(V.off.top - C.top);
|
|
2956
|
+
return S - U;
|
|
2910
2957
|
});
|
|
2911
|
-
const { p: f, off:
|
|
2958
|
+
const { p: f, off: b } = p[0];
|
|
2912
2959
|
return {
|
|
2913
2960
|
placement: f,
|
|
2914
|
-
left: Math.round(Math.min(Math.max(
|
|
2915
|
-
top: Math.round(Math.min(Math.max(
|
|
2961
|
+
left: Math.round(Math.min(Math.max(b.left, 0), i - d)),
|
|
2962
|
+
top: Math.round(Math.min(Math.max(b.top, 0), n - c))
|
|
2916
2963
|
};
|
|
2917
2964
|
}
|
|
2918
|
-
function
|
|
2965
|
+
function l5(r) {
|
|
2919
2966
|
return r.split("-")[0] || "top";
|
|
2920
2967
|
}
|
|
2921
|
-
function
|
|
2968
|
+
function x7(r, e, t) {
|
|
2922
2969
|
let o = !1, i = t.length - 1;
|
|
2923
2970
|
for (let n = 0; n < t.length; n++) {
|
|
2924
2971
|
const l = t[n][0], d = t[n][1], c = t[i][0], C = t[i][1];
|
|
@@ -2926,20 +2973,20 @@ function V7(r, e, t) {
|
|
|
2926
2973
|
}
|
|
2927
2974
|
return o;
|
|
2928
2975
|
}
|
|
2929
|
-
const
|
|
2976
|
+
const g4 = class g4 extends h {
|
|
2930
2977
|
constructor() {
|
|
2931
2978
|
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;
|
|
2932
2979
|
}
|
|
2933
2980
|
connectedCallback() {
|
|
2934
|
-
super.connectedCallback(), this.addEventListener(
|
|
2981
|
+
super.connectedCallback(), this.addEventListener(se, (e) => {
|
|
2935
2982
|
e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
|
|
2936
|
-
}), this.addEventListener(
|
|
2983
|
+
}), this.addEventListener(de, (e) => {
|
|
2937
2984
|
e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
|
|
2938
|
-
}), this.addEventListener(
|
|
2985
|
+
}), this.addEventListener(ce, (e) => {
|
|
2939
2986
|
e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
|
|
2940
|
-
}), this.addEventListener(
|
|
2987
|
+
}), this.addEventListener(ae, (e) => {
|
|
2941
2988
|
e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
|
|
2942
|
-
}), this.addEventListener(
|
|
2989
|
+
}), this.addEventListener(T5, (e) => {
|
|
2943
2990
|
e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
|
|
2944
2991
|
});
|
|
2945
2992
|
}
|
|
@@ -2970,11 +3017,11 @@ const u4 = class u4 extends h {
|
|
|
2970
3017
|
this.containingBlockLeft = i.left, this.containingBlockTop = i.top, t.style.transform = o;
|
|
2971
3018
|
}
|
|
2972
3019
|
positionPopup(e, t, o) {
|
|
2973
|
-
const i = t.getBoundingClientRect(), n = e.getBoundingClientRect(), l =
|
|
3020
|
+
const i = t.getBoundingClientRect(), n = e.getBoundingClientRect(), l = V7(i, n, o, 8);
|
|
2974
3021
|
if (l) {
|
|
2975
3022
|
const d = e;
|
|
2976
3023
|
d.style.transform = `translate(${l.left - this.containingBlockLeft}px, ${l.top - this.containingBlockTop}px)`;
|
|
2977
|
-
const c =
|
|
3024
|
+
const c = l5(l.placement), C = l5(o);
|
|
2978
3025
|
if (c !== C) {
|
|
2979
3026
|
const p = e.querySelector(".tooltip-arrow");
|
|
2980
3027
|
p && (p.classList.remove(`tooltip-arrow--${C}`), p.classList.add(`tooltip-arrow--${c}`));
|
|
@@ -2982,13 +3029,13 @@ const u4 = class u4 extends h {
|
|
|
2982
3029
|
}
|
|
2983
3030
|
}
|
|
2984
3031
|
broadcastVisibilityChanged(e) {
|
|
2985
|
-
this.dispatchEvent(new CustomEvent(
|
|
3032
|
+
this.dispatchEvent(new CustomEvent(Ce, { detail: e, bubbles: !1, composed: !1 }));
|
|
2986
3033
|
}
|
|
2987
3034
|
render() {
|
|
2988
3035
|
return s`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
|
|
2989
3036
|
}
|
|
2990
3037
|
};
|
|
2991
|
-
|
|
3038
|
+
g4.styles = g`
|
|
2992
3039
|
/* inline-flex, not inline-block: the wrapper is purely structural (it exists
|
|
2993
3040
|
to position the popup), so it must not add height of its own. As an
|
|
2994
3041
|
inline-block it establishes a line box, and an inline-level trigger sits
|
|
@@ -2999,39 +3046,39 @@ u4.styles = g`
|
|
|
2999
3046
|
:host { display: inline-flex; position: relative; max-width: 100%; font-family: var(--font-sans); }
|
|
3000
3047
|
.tooltip-root { display: inline-flex; position: relative; max-width: 100%; }
|
|
3001
3048
|
`;
|
|
3002
|
-
let
|
|
3003
|
-
|
|
3049
|
+
let f2 = g4;
|
|
3050
|
+
le([
|
|
3004
3051
|
a({ type: Boolean })
|
|
3005
|
-
],
|
|
3006
|
-
|
|
3052
|
+
], f2.prototype, "disabled");
|
|
3053
|
+
le([
|
|
3007
3054
|
a()
|
|
3008
|
-
],
|
|
3009
|
-
const
|
|
3055
|
+
], f2.prototype, "placement");
|
|
3056
|
+
const f4 = class f4 extends h {
|
|
3010
3057
|
firstUpdated() {
|
|
3011
3058
|
requestAnimationFrame(() => {
|
|
3012
|
-
this.dispatchEvent(new CustomEvent(
|
|
3059
|
+
this.dispatchEvent(new CustomEvent(se, { detail: this, bubbles: !0, composed: !0 }));
|
|
3013
3060
|
}), this.addEventListener("pointerenter", () => {
|
|
3014
|
-
this.dispatchEvent(new CustomEvent(
|
|
3061
|
+
this.dispatchEvent(new CustomEvent(ae, { bubbles: !0, composed: !0 }));
|
|
3015
3062
|
}), this.addEventListener("click", () => {
|
|
3016
|
-
this.dispatchEvent(new CustomEvent(
|
|
3063
|
+
this.dispatchEvent(new CustomEvent(T5, { bubbles: !0, composed: !0 }));
|
|
3017
3064
|
});
|
|
3018
3065
|
}
|
|
3019
3066
|
render() {
|
|
3020
3067
|
return s`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
|
|
3021
3068
|
}
|
|
3022
3069
|
};
|
|
3023
|
-
|
|
3070
|
+
f4.styles = g`
|
|
3024
3071
|
:host { display: inline-block; max-width: 100%; font-family: var(--font-sans); }
|
|
3025
3072
|
.tooltip-trigger { display: flex; align-items: center; max-width: 100%; }
|
|
3026
3073
|
`;
|
|
3027
|
-
let
|
|
3028
|
-
const
|
|
3074
|
+
let a5 = f4;
|
|
3075
|
+
const v4 = class v4 extends h {
|
|
3029
3076
|
constructor() {
|
|
3030
3077
|
super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
|
|
3031
3078
|
var n, l;
|
|
3032
3079
|
if (!this.graceArea) return;
|
|
3033
3080
|
const t = e.target, o = ((n = this.triggerEl) == null ? void 0 : n.contains(t)) ?? !1, i = ((l = this.popupEl) == null ? void 0 : l.contains(t)) ?? !1;
|
|
3034
|
-
o || i ? this.graceArea = null :
|
|
3081
|
+
o || i ? this.graceArea = null : x7(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(T5, { bubbles: !0, composed: !0 })));
|
|
3035
3082
|
}, this.handleTriggerLeave = (e) => {
|
|
3036
3083
|
this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
|
|
3037
3084
|
}, this.handleContentLeave = (e) => {
|
|
@@ -3041,7 +3088,7 @@ const g4 = class g4 extends h {
|
|
|
3041
3088
|
connectedCallback() {
|
|
3042
3089
|
super.connectedCallback();
|
|
3043
3090
|
const e = this.closest("anduin-tooltip");
|
|
3044
|
-
e && e.addEventListener(
|
|
3091
|
+
e && e.addEventListener(Ce, (t) => {
|
|
3045
3092
|
const o = t.detail;
|
|
3046
3093
|
o.startsWith("show:") ? this.showPopup(o.slice(5)) : this.hidePopup();
|
|
3047
3094
|
});
|
|
@@ -3067,7 +3114,7 @@ const g4 = class g4 extends h {
|
|
|
3067
3114
|
}
|
|
3068
3115
|
showPopup(e) {
|
|
3069
3116
|
this.hidePopup();
|
|
3070
|
-
const t =
|
|
3117
|
+
const t = l5(e), o = document.createElement("div");
|
|
3071
3118
|
o.className = "tooltip-popup", o.setAttribute("role", "tooltip");
|
|
3072
3119
|
const i = document.createElement("div");
|
|
3073
3120
|
i.className = `tooltip-arrow tooltip-arrow--${t}`;
|
|
@@ -3080,16 +3127,16 @@ const g4 = class g4 extends h {
|
|
|
3080
3127
|
const c = d.querySelector("anduin-tooltip-trigger");
|
|
3081
3128
|
c && this.setupGraceAreaListeners(c, o);
|
|
3082
3129
|
}
|
|
3083
|
-
this.dispatchEvent(new CustomEvent(
|
|
3130
|
+
this.dispatchEvent(new CustomEvent(de, { detail: o, bubbles: !0, composed: !0 }));
|
|
3084
3131
|
}
|
|
3085
3132
|
hidePopup() {
|
|
3086
|
-
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(
|
|
3133
|
+
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(ce, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
|
|
3087
3134
|
}
|
|
3088
3135
|
render() {
|
|
3089
3136
|
return s`<div class="tooltip-content-wrapper"></div>`;
|
|
3090
3137
|
}
|
|
3091
3138
|
};
|
|
3092
|
-
|
|
3139
|
+
v4.styles = g`
|
|
3093
3140
|
:host {
|
|
3094
3141
|
display: contents;
|
|
3095
3142
|
--tooltip-bg: var(--anduin-tooltip-content-background, var(--color-gray-9));
|
|
@@ -3113,16 +3160,16 @@ g4.styles = g`
|
|
|
3113
3160
|
.tooltip-arrow--left { right: -4px; top: 50%; transform: translateY(-50%); border-left-color: var(--tooltip-bg); border-right: none; }
|
|
3114
3161
|
.tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
|
|
3115
3162
|
`;
|
|
3116
|
-
let
|
|
3117
|
-
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip",
|
|
3118
|
-
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger",
|
|
3119
|
-
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content",
|
|
3120
|
-
var
|
|
3163
|
+
let s5 = v4;
|
|
3164
|
+
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", f2);
|
|
3165
|
+
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", a5);
|
|
3166
|
+
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", s5);
|
|
3167
|
+
var M7 = Object.defineProperty, w7 = (r, e, t, o) => {
|
|
3121
3168
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3122
3169
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3123
|
-
return i &&
|
|
3170
|
+
return i && M7(e, t, i), i;
|
|
3124
3171
|
};
|
|
3125
|
-
const
|
|
3172
|
+
const Z7 = "anduin-well-close:click", m4 = class m4 extends h {
|
|
3126
3173
|
constructor() {
|
|
3127
3174
|
super(...arguments), this.variant = "gray";
|
|
3128
3175
|
}
|
|
@@ -3142,7 +3189,7 @@ const M7 = "anduin-well-close:click", f4 = class f4 extends h {
|
|
|
3142
3189
|
`;
|
|
3143
3190
|
}
|
|
3144
3191
|
};
|
|
3145
|
-
|
|
3192
|
+
m4.styles = g`
|
|
3146
3193
|
:host {
|
|
3147
3194
|
display: block;
|
|
3148
3195
|
font-family: var(--font-sans);
|
|
@@ -3217,14 +3264,14 @@ f4.styles = g`
|
|
|
3217
3264
|
color: var(--color-warning-4);
|
|
3218
3265
|
}
|
|
3219
3266
|
`;
|
|
3220
|
-
let
|
|
3221
|
-
|
|
3267
|
+
let z2 = m4;
|
|
3268
|
+
w7([
|
|
3222
3269
|
a()
|
|
3223
|
-
],
|
|
3224
|
-
const
|
|
3270
|
+
], z2.prototype, "variant");
|
|
3271
|
+
const b4 = class b4 extends h {
|
|
3225
3272
|
onClick() {
|
|
3226
3273
|
this.dispatchEvent(
|
|
3227
|
-
new CustomEvent(
|
|
3274
|
+
new CustomEvent(Z7, { bubbles: !0, composed: !0 })
|
|
3228
3275
|
);
|
|
3229
3276
|
}
|
|
3230
3277
|
render() {
|
|
@@ -3239,7 +3286,7 @@ const v4 = class v4 extends h {
|
|
|
3239
3286
|
`;
|
|
3240
3287
|
}
|
|
3241
3288
|
};
|
|
3242
|
-
|
|
3289
|
+
b4.styles = g`
|
|
3243
3290
|
:host {
|
|
3244
3291
|
display: inline-block;
|
|
3245
3292
|
font-family: var(--font-sans);
|
|
@@ -3264,15 +3311,15 @@ v4.styles = g`
|
|
|
3264
3311
|
background-color: var(--color-gray-3);
|
|
3265
3312
|
}
|
|
3266
3313
|
`;
|
|
3267
|
-
let
|
|
3268
|
-
customElements.get("anduin-well") || customElements.define("anduin-well",
|
|
3269
|
-
customElements.get("anduin-well-close") || customElements.define("anduin-well-close",
|
|
3270
|
-
var
|
|
3314
|
+
let d5 = b4;
|
|
3315
|
+
customElements.get("anduin-well") || customElements.define("anduin-well", z2);
|
|
3316
|
+
customElements.get("anduin-well-close") || customElements.define("anduin-well-close", d5);
|
|
3317
|
+
var k7 = Object.defineProperty, k1 = (r, e, t, o) => {
|
|
3271
3318
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3272
3319
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3273
|
-
return i &&
|
|
3320
|
+
return i && k7(e, t, i), i;
|
|
3274
3321
|
};
|
|
3275
|
-
const
|
|
3322
|
+
const c5 = "anduin-popover:close", C5 = "anduin-popover:open-change", H4 = class H4 extends h {
|
|
3276
3323
|
constructor() {
|
|
3277
3324
|
super(...arguments), this.open = !1, this.placement = "bottom-start", this.fullWidth = !1, this._visible = !1, this._closing = !1, this._closeTransitionEndHandler = null, this._onOutsideClick = (e) => {
|
|
3278
3325
|
e.composedPath().includes(this) || (this.open = !1);
|
|
@@ -3286,13 +3333,13 @@ const r5 = "anduin-popover:close", l5 = "anduin-popover:open-change", b4 = class
|
|
|
3286
3333
|
this.open = !this.open;
|
|
3287
3334
|
}
|
|
3288
3335
|
connectedCallback() {
|
|
3289
|
-
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(
|
|
3336
|
+
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(c5, this._onPopoverClose);
|
|
3290
3337
|
}
|
|
3291
3338
|
disconnectedCallback() {
|
|
3292
|
-
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(
|
|
3339
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(c5, this._onPopoverClose);
|
|
3293
3340
|
}
|
|
3294
3341
|
updated(e) {
|
|
3295
|
-
e.has("open") && (this.dispatchEvent(new CustomEvent(
|
|
3342
|
+
e.has("open") && (this.dispatchEvent(new CustomEvent(C5, {
|
|
3296
3343
|
detail: this.open,
|
|
3297
3344
|
bubbles: !0,
|
|
3298
3345
|
composed: !0
|
|
@@ -3321,11 +3368,11 @@ const r5 = "anduin-popover:close", l5 = "anduin-popover:open-change", b4 = class
|
|
|
3321
3368
|
const n = t.getBoundingClientRect();
|
|
3322
3369
|
t.style.transform = i;
|
|
3323
3370
|
const l = t.getBoundingClientRect(), d = 4, c = window.innerWidth, C = window.innerHeight, p = 8;
|
|
3324
|
-
let f = 0,
|
|
3325
|
-
const
|
|
3326
|
-
|
|
3327
|
-
const
|
|
3328
|
-
|
|
3371
|
+
let f = 0, b = 0, m = "bottom";
|
|
3372
|
+
const V = !this.placement.startsWith("top"), _ = C - o.bottom - d, v = o.top - d, x = _ >= l.height, M = v >= l.height, S = V ? x || _ >= v : !M && x;
|
|
3373
|
+
m = S ? "bottom" : "top", b = S ? o.bottom + d : o.top - l.height - d;
|
|
3374
|
+
const U = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
|
|
3375
|
+
U === "start" ? f = o.left : U === "end" ? f = o.right - l.width : f = o.left + o.width / 2 - l.width / 2, f = Math.max(p, Math.min(f, c - l.width - p)), b = Math.max(p, Math.min(b, C - l.height - p)), t.style.transform = `translate(${Math.round(f - n.left)}px, ${Math.round(b - n.top)}px)`, t.dataset.side = m;
|
|
3329
3376
|
}
|
|
3330
3377
|
render() {
|
|
3331
3378
|
return s`
|
|
@@ -3340,7 +3387,7 @@ const r5 = "anduin-popover:close", l5 = "anduin-popover:open-change", b4 = class
|
|
|
3340
3387
|
`;
|
|
3341
3388
|
}
|
|
3342
3389
|
};
|
|
3343
|
-
|
|
3390
|
+
H4.styles = g`
|
|
3344
3391
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
3345
3392
|
:host([full-width]) { display: block; width: 100%; }
|
|
3346
3393
|
|
|
@@ -3393,7 +3440,7 @@ b4.styles = g`
|
|
|
3393
3440
|
transform: none;
|
|
3394
3441
|
}
|
|
3395
3442
|
`;
|
|
3396
|
-
let X =
|
|
3443
|
+
let X = H4;
|
|
3397
3444
|
k1([
|
|
3398
3445
|
a({ type: Boolean, reflect: !0 })
|
|
3399
3446
|
], X.prototype, "open");
|
|
@@ -3416,23 +3463,23 @@ k1([
|
|
|
3416
3463
|
z(".popover__panel")
|
|
3417
3464
|
], X.prototype, "_panelEl");
|
|
3418
3465
|
customElements.get("anduin-popover") || customElements.define("anduin-popover", X);
|
|
3419
|
-
const
|
|
3466
|
+
const y4 = class y4 extends h {
|
|
3420
3467
|
_onClick() {
|
|
3421
|
-
this.dispatchEvent(new CustomEvent(
|
|
3468
|
+
this.dispatchEvent(new CustomEvent(c5, { bubbles: !0, composed: !0 }));
|
|
3422
3469
|
}
|
|
3423
3470
|
render() {
|
|
3424
3471
|
return s`<span @click=${this._onClick}><slot></slot></span>`;
|
|
3425
3472
|
}
|
|
3426
3473
|
};
|
|
3427
|
-
|
|
3428
|
-
let
|
|
3429
|
-
customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close",
|
|
3430
|
-
var
|
|
3474
|
+
y4.styles = g`:host { display: contents; }`;
|
|
3475
|
+
let p5 = y4;
|
|
3476
|
+
customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", p5);
|
|
3477
|
+
var R7 = Object.defineProperty, R1 = (r, e, t, o) => {
|
|
3431
3478
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3432
3479
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3433
|
-
return i &&
|
|
3480
|
+
return i && R7(e, t, i), i;
|
|
3434
3481
|
};
|
|
3435
|
-
const
|
|
3482
|
+
const h5 = "anduin-menu-item:click", _4 = class _4 extends h {
|
|
3436
3483
|
constructor() {
|
|
3437
3484
|
super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
|
|
3438
3485
|
e.composedPath().includes(this) || (this.open = !1);
|
|
@@ -3446,10 +3493,10 @@ const s5 = "anduin-menu-item:click", H4 = class H4 extends h {
|
|
|
3446
3493
|
this.open = !this.open;
|
|
3447
3494
|
}
|
|
3448
3495
|
connectedCallback() {
|
|
3449
|
-
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(
|
|
3496
|
+
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(h5, this._onItemClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
|
|
3450
3497
|
}
|
|
3451
3498
|
disconnectedCallback() {
|
|
3452
|
-
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(
|
|
3499
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(h5, this._onItemClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
|
|
3453
3500
|
}
|
|
3454
3501
|
updated(e) {
|
|
3455
3502
|
e.has("open") && this.open && requestAnimationFrame(() => this._updatePosition());
|
|
@@ -3498,7 +3545,7 @@ const s5 = "anduin-menu-item:click", H4 = class H4 extends h {
|
|
|
3498
3545
|
`;
|
|
3499
3546
|
}
|
|
3500
3547
|
};
|
|
3501
|
-
|
|
3548
|
+
_4.styles = g`
|
|
3502
3549
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
3503
3550
|
|
|
3504
3551
|
.menu__trigger { display: inline-block; }
|
|
@@ -3541,7 +3588,7 @@ H4.styles = g`
|
|
|
3541
3588
|
transform: scale(1) translateY(0);
|
|
3542
3589
|
}
|
|
3543
3590
|
`;
|
|
3544
|
-
let Z1 =
|
|
3591
|
+
let Z1 = _4;
|
|
3545
3592
|
R1([
|
|
3546
3593
|
a({ type: Boolean, reflect: !0 })
|
|
3547
3594
|
], Z1.prototype, "open");
|
|
@@ -3554,12 +3601,12 @@ R1([
|
|
|
3554
3601
|
R1([
|
|
3555
3602
|
z(".menu__panel")
|
|
3556
3603
|
], Z1.prototype, "_panelEl");
|
|
3557
|
-
const
|
|
3604
|
+
const L4 = class L4 extends h {
|
|
3558
3605
|
constructor() {
|
|
3559
3606
|
super(...arguments), this.icon = "", this.variant = "default", this.disabled = !1;
|
|
3560
3607
|
}
|
|
3561
3608
|
_onClick() {
|
|
3562
|
-
this.dispatchEvent(new CustomEvent(
|
|
3609
|
+
this.dispatchEvent(new CustomEvent(h5, { bubbles: !0, composed: !0 }));
|
|
3563
3610
|
}
|
|
3564
3611
|
render() {
|
|
3565
3612
|
return s`
|
|
@@ -3576,7 +3623,7 @@ const y4 = class y4 extends h {
|
|
|
3576
3623
|
`;
|
|
3577
3624
|
}
|
|
3578
3625
|
};
|
|
3579
|
-
|
|
3626
|
+
L4.styles = g`
|
|
3580
3627
|
:host { display: block; width: 100%; font-family: var(--font-sans); }
|
|
3581
3628
|
.menu-item {
|
|
3582
3629
|
display: flex;
|
|
@@ -3606,7 +3653,7 @@ y4.styles = g`
|
|
|
3606
3653
|
anduin-icon { color: var(--color-gray-7); }
|
|
3607
3654
|
.menu-item--danger anduin-icon { color: var(--color-danger-4); }
|
|
3608
3655
|
`;
|
|
3609
|
-
let T1 =
|
|
3656
|
+
let T1 = L4;
|
|
3610
3657
|
R1([
|
|
3611
3658
|
a()
|
|
3612
3659
|
], T1.prototype, "icon");
|
|
@@ -3618,41 +3665,41 @@ R1([
|
|
|
3618
3665
|
], T1.prototype, "disabled");
|
|
3619
3666
|
customElements.get("anduin-menu") || customElements.define("anduin-menu", Z1);
|
|
3620
3667
|
customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", T1);
|
|
3621
|
-
var
|
|
3668
|
+
var $7 = Object.defineProperty, $1 = (r, e, t, o) => {
|
|
3622
3669
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3623
3670
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3624
|
-
return i &&
|
|
3671
|
+
return i && $7(e, t, i), i;
|
|
3625
3672
|
};
|
|
3626
|
-
const Q1 = "anduin-close",
|
|
3627
|
-
let
|
|
3628
|
-
function
|
|
3629
|
-
typeof document > "u" || (
|
|
3673
|
+
const Q1 = "anduin-close", W2 = "anduin-after-close", Y2 = 300, q2 = 200, k3 = 250;
|
|
3674
|
+
let o2 = 0, pe = "";
|
|
3675
|
+
function E7() {
|
|
3676
|
+
typeof document > "u" || (o2 === 0 && (pe = document.body.style.overflow, document.body.style.overflow = "hidden"), o2++);
|
|
3630
3677
|
}
|
|
3631
|
-
function
|
|
3632
|
-
typeof document > "u" ||
|
|
3678
|
+
function R3() {
|
|
3679
|
+
typeof document > "u" || o2 !== 0 && (o2--, o2 === 0 && (document.body.style.overflow = pe));
|
|
3633
3680
|
}
|
|
3634
|
-
var
|
|
3635
|
-
const
|
|
3681
|
+
var h1;
|
|
3682
|
+
const y1 = (h1 = class extends h {
|
|
3636
3683
|
constructor() {
|
|
3637
3684
|
super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.maxWidth = "480", this.fullscreen = !1, this._leaving = !1, this._holdsScrollLock = !1, this.onAnduinClose = (e) => {
|
|
3638
|
-
e.
|
|
3685
|
+
e.stopPropagation();
|
|
3639
3686
|
};
|
|
3640
3687
|
}
|
|
3641
3688
|
updated(e) {
|
|
3642
3689
|
if (e.has("maxWidth")) {
|
|
3643
|
-
const t = this.maxWidth, o =
|
|
3690
|
+
const t = this.maxWidth, o = h1._PRESETS.has(t) ? `${t}px` : t;
|
|
3644
3691
|
this.style.setProperty("--_modal-width", o);
|
|
3645
3692
|
}
|
|
3646
|
-
e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown"), this._holdsScrollLock || (this._holdsScrollLock = !0,
|
|
3693
|
+
e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown"), this._holdsScrollLock || (this._holdsScrollLock = !0, E7())) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(
|
|
3647
3694
|
() => {
|
|
3648
|
-
this._leaving = !1, this.classList.remove("is-shown"), this._holdsScrollLock && (this._holdsScrollLock = !1,
|
|
3649
|
-
new CustomEvent(
|
|
3695
|
+
this._leaving = !1, this.classList.remove("is-shown"), this._holdsScrollLock && (this._holdsScrollLock = !1, R3()), this.dispatchEvent(
|
|
3696
|
+
new CustomEvent(W2, {
|
|
3650
3697
|
bubbles: !0,
|
|
3651
3698
|
composed: !0
|
|
3652
3699
|
})
|
|
3653
3700
|
);
|
|
3654
3701
|
},
|
|
3655
|
-
Math.max(
|
|
3702
|
+
Math.max(q2, k3)
|
|
3656
3703
|
)));
|
|
3657
3704
|
}
|
|
3658
3705
|
dispatch(e) {
|
|
@@ -3667,10 +3714,10 @@ const H1 = (p1 = class extends h {
|
|
|
3667
3714
|
this.dispatch(Q1);
|
|
3668
3715
|
}
|
|
3669
3716
|
connectedCallback() {
|
|
3670
|
-
super.connectedCallback(), this.addEventListener(Q1, this.onAnduinClose);
|
|
3717
|
+
super.connectedCallback(), this.addEventListener(Q1, this.onAnduinClose), this.addEventListener(W2, this.onAnduinClose);
|
|
3671
3718
|
}
|
|
3672
3719
|
disconnectedCallback() {
|
|
3673
|
-
super.disconnectedCallback(), this.removeEventListener(Q1, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1,
|
|
3720
|
+
super.disconnectedCallback(), this.removeEventListener(Q1, this.onAnduinClose), this.removeEventListener(W2, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, R3());
|
|
3674
3721
|
}
|
|
3675
3722
|
render() {
|
|
3676
3723
|
const e = this._leaving, t = this.fullscreen;
|
|
@@ -3712,7 +3759,7 @@ const H1 = (p1 = class extends h {
|
|
|
3712
3759
|
</div>
|
|
3713
3760
|
`;
|
|
3714
3761
|
}
|
|
3715
|
-
},
|
|
3762
|
+
}, h1.styles = g`
|
|
3716
3763
|
:host {
|
|
3717
3764
|
display: none;
|
|
3718
3765
|
font-family: var(--font-sans);
|
|
@@ -3784,11 +3831,11 @@ const H1 = (p1 = class extends h {
|
|
|
3784
3831
|
inset: 0;
|
|
3785
3832
|
background: rgba(50, 60, 77, 0.6);
|
|
3786
3833
|
cursor: default;
|
|
3787
|
-
animation: overlayIn ${
|
|
3834
|
+
animation: overlayIn ${Y2}ms cubic-bezier(0.2, 0, 0, 1)
|
|
3788
3835
|
forwards;
|
|
3789
3836
|
}
|
|
3790
3837
|
.overlay.is-leaving {
|
|
3791
|
-
animation: overlayOut ${
|
|
3838
|
+
animation: overlayOut ${k3}ms
|
|
3792
3839
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3793
3840
|
}
|
|
3794
3841
|
.modal-wrapper {
|
|
@@ -3814,11 +3861,11 @@ const H1 = (p1 = class extends h {
|
|
|
3814
3861
|
0 8px 24px 0 rgba(29, 41, 57, 0.12),
|
|
3815
3862
|
0 2px 8px 0 rgba(29, 41, 57, 0.08);
|
|
3816
3863
|
flex-shrink: 0;
|
|
3817
|
-
animation: modalIn ${
|
|
3864
|
+
animation: modalIn ${Y2}ms cubic-bezier(0.05, 0.7, 0.1, 1)
|
|
3818
3865
|
forwards;
|
|
3819
3866
|
}
|
|
3820
3867
|
.modal.is-leaving {
|
|
3821
|
-
animation: modalOut ${
|
|
3868
|
+
animation: modalOut ${q2}ms
|
|
3822
3869
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3823
3870
|
}
|
|
3824
3871
|
.modal-wrapper--fullscreen {
|
|
@@ -3848,11 +3895,11 @@ const H1 = (p1 = class extends h {
|
|
|
3848
3895
|
max-height: 100%;
|
|
3849
3896
|
height: 100%;
|
|
3850
3897
|
box-shadow: none;
|
|
3851
|
-
animation: modalFullscreenIn ${
|
|
3898
|
+
animation: modalFullscreenIn ${Y2}ms
|
|
3852
3899
|
cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
|
|
3853
3900
|
}
|
|
3854
3901
|
.modal--fullscreen.is-leaving {
|
|
3855
|
-
animation: modalFullscreenOut ${
|
|
3902
|
+
animation: modalFullscreenOut ${q2}ms
|
|
3856
3903
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3857
3904
|
}
|
|
3858
3905
|
.header {
|
|
@@ -3898,37 +3945,37 @@ const H1 = (p1 = class extends h {
|
|
|
3898
3945
|
padding: 16px 24px;
|
|
3899
3946
|
border-top: 1px solid var(--color-gray-3, #e4e7ec);
|
|
3900
3947
|
}
|
|
3901
|
-
`,
|
|
3948
|
+
`, h1._PRESETS = /* @__PURE__ */ new Set([
|
|
3902
3949
|
"480",
|
|
3903
3950
|
"600",
|
|
3904
3951
|
"720",
|
|
3905
3952
|
"960",
|
|
3906
3953
|
"1160"
|
|
3907
|
-
]),
|
|
3954
|
+
]), h1);
|
|
3908
3955
|
$1([
|
|
3909
3956
|
a({ type: Boolean, reflect: !0 })
|
|
3910
|
-
],
|
|
3957
|
+
], y1.prototype, "open");
|
|
3911
3958
|
$1([
|
|
3912
3959
|
a()
|
|
3913
|
-
],
|
|
3960
|
+
], y1.prototype, "heading");
|
|
3914
3961
|
$1([
|
|
3915
3962
|
a({ type: Boolean, attribute: "hide-header" })
|
|
3916
|
-
],
|
|
3963
|
+
], y1.prototype, "hideHeader");
|
|
3917
3964
|
$1([
|
|
3918
3965
|
a({ type: Boolean, attribute: "hide-footer" })
|
|
3919
|
-
],
|
|
3966
|
+
], y1.prototype, "hideFooter");
|
|
3920
3967
|
$1([
|
|
3921
3968
|
a({ attribute: "max-width" })
|
|
3922
|
-
],
|
|
3969
|
+
], y1.prototype, "maxWidth");
|
|
3923
3970
|
$1([
|
|
3924
3971
|
a({ type: Boolean })
|
|
3925
|
-
],
|
|
3972
|
+
], y1.prototype, "fullscreen");
|
|
3926
3973
|
$1([
|
|
3927
3974
|
H()
|
|
3928
|
-
],
|
|
3929
|
-
let
|
|
3930
|
-
customElements.get("anduin-modal") || customElements.define("anduin-modal",
|
|
3931
|
-
class
|
|
3975
|
+
], y1.prototype, "_leaving");
|
|
3976
|
+
let z7 = y1;
|
|
3977
|
+
customElements.get("anduin-modal") || customElements.define("anduin-modal", z7);
|
|
3978
|
+
class S7 extends HTMLElement {
|
|
3932
3979
|
constructor() {
|
|
3933
3980
|
super(...arguments), this._onClick = () => {
|
|
3934
3981
|
this.dispatchEvent(
|
|
@@ -3943,13 +3990,13 @@ class z7 extends HTMLElement {
|
|
|
3943
3990
|
this.removeEventListener("click", this._onClick);
|
|
3944
3991
|
}
|
|
3945
3992
|
}
|
|
3946
|
-
customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close",
|
|
3947
|
-
var
|
|
3993
|
+
customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", S7);
|
|
3994
|
+
var A7 = Object.defineProperty, a1 = (r, e, t, o) => {
|
|
3948
3995
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3949
3996
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3950
|
-
return i &&
|
|
3997
|
+
return i && A7(e, t, i), i;
|
|
3951
3998
|
};
|
|
3952
|
-
const
|
|
3999
|
+
const u5 = "anduin-radio:change", D7 = "anduin-radio-group:change", V4 = class V4 extends h {
|
|
3953
4000
|
constructor() {
|
|
3954
4001
|
super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
|
|
3955
4002
|
}
|
|
@@ -3962,7 +4009,7 @@ const d5 = "anduin-radio:change", A7 = "anduin-radio-group:change", _4 = class _
|
|
|
3962
4009
|
});
|
|
3963
4010
|
}
|
|
3964
4011
|
_select() {
|
|
3965
|
-
this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(
|
|
4012
|
+
this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(u5, {
|
|
3966
4013
|
detail: this.value,
|
|
3967
4014
|
bubbles: !0,
|
|
3968
4015
|
composed: !0
|
|
@@ -4003,7 +4050,7 @@ const d5 = "anduin-radio:change", A7 = "anduin-radio-group:change", _4 = class _
|
|
|
4003
4050
|
`;
|
|
4004
4051
|
}
|
|
4005
4052
|
};
|
|
4006
|
-
|
|
4053
|
+
V4.styles = g`
|
|
4007
4054
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
4008
4055
|
|
|
4009
4056
|
label {
|
|
@@ -4074,7 +4121,7 @@ _4.styles = g`
|
|
|
4074
4121
|
transform: scale(1);
|
|
4075
4122
|
}
|
|
4076
4123
|
`;
|
|
4077
|
-
let r1 =
|
|
4124
|
+
let r1 = V4;
|
|
4078
4125
|
a1([
|
|
4079
4126
|
a({ type: Boolean })
|
|
4080
4127
|
], r1.prototype, "checked");
|
|
@@ -4094,14 +4141,14 @@ a1([
|
|
|
4094
4141
|
a()
|
|
4095
4142
|
], r1.prototype, "inputid");
|
|
4096
4143
|
customElements.get("anduin-radio") || customElements.define("anduin-radio", r1);
|
|
4097
|
-
const
|
|
4144
|
+
const x4 = class x4 extends h {
|
|
4098
4145
|
constructor() {
|
|
4099
4146
|
super(...arguments), this.value = "", this.name = "", this.orientation = "vertical", this._onRadioChange = (e) => {
|
|
4100
4147
|
const o = e.detail;
|
|
4101
4148
|
o !== this.value && (this.value = o, this.querySelectorAll("anduin-radio").forEach((i) => {
|
|
4102
4149
|
const n = i;
|
|
4103
4150
|
n.checked = n.value === o;
|
|
4104
|
-
}), this.dispatchEvent(new CustomEvent(
|
|
4151
|
+
}), this.dispatchEvent(new CustomEvent(D7, {
|
|
4105
4152
|
detail: o,
|
|
4106
4153
|
bubbles: !0,
|
|
4107
4154
|
composed: !0
|
|
@@ -4109,10 +4156,10 @@ const V4 = class V4 extends h {
|
|
|
4109
4156
|
};
|
|
4110
4157
|
}
|
|
4111
4158
|
connectedCallback() {
|
|
4112
|
-
super.connectedCallback(), this.addEventListener(
|
|
4159
|
+
super.connectedCallback(), this.addEventListener(u5, this._onRadioChange);
|
|
4113
4160
|
}
|
|
4114
4161
|
disconnectedCallback() {
|
|
4115
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
4162
|
+
super.disconnectedCallback(), this.removeEventListener(u5, this._onRadioChange);
|
|
4116
4163
|
}
|
|
4117
4164
|
render() {
|
|
4118
4165
|
return s`
|
|
@@ -4122,7 +4169,7 @@ const V4 = class V4 extends h {
|
|
|
4122
4169
|
`;
|
|
4123
4170
|
}
|
|
4124
4171
|
};
|
|
4125
|
-
|
|
4172
|
+
x4.styles = g`
|
|
4126
4173
|
:host { display: block; font-family: var(--font-sans); }
|
|
4127
4174
|
|
|
4128
4175
|
.group {
|
|
@@ -4132,7 +4179,7 @@ V4.styles = g`
|
|
|
4132
4179
|
.group--vertical { flex-direction: column; }
|
|
4133
4180
|
.group--horizontal { flex-direction: row; flex-wrap: wrap; align-items: center; }
|
|
4134
4181
|
`;
|
|
4135
|
-
let N1 =
|
|
4182
|
+
let N1 = x4;
|
|
4136
4183
|
a1([
|
|
4137
4184
|
a()
|
|
4138
4185
|
], N1.prototype, "value");
|
|
@@ -4143,12 +4190,12 @@ a1([
|
|
|
4143
4190
|
a()
|
|
4144
4191
|
], N1.prototype, "orientation");
|
|
4145
4192
|
customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", N1);
|
|
4146
|
-
var
|
|
4193
|
+
var B7 = Object.defineProperty, E1 = (r, e, t, o) => {
|
|
4147
4194
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
4148
4195
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
4149
|
-
return i &&
|
|
4196
|
+
return i && B7(e, t, i), i;
|
|
4150
4197
|
};
|
|
4151
|
-
const
|
|
4198
|
+
const $3 = [
|
|
4152
4199
|
{ bg: "#6172F3", text: "#ffffff" },
|
|
4153
4200
|
{ bg: "#B692F6", text: "#ffffff" },
|
|
4154
4201
|
{ bg: "#F670C7", text: "#ffffff" },
|
|
@@ -4158,17 +4205,17 @@ const k3 = [
|
|
|
4158
4205
|
{ bg: "#F97066", text: "#ffffff" },
|
|
4159
4206
|
{ bg: "#7A5AF8", text: "#ffffff" }
|
|
4160
4207
|
];
|
|
4161
|
-
function
|
|
4208
|
+
function P7(r) {
|
|
4162
4209
|
let e = 0;
|
|
4163
4210
|
for (let t = 0; t < r.length; t++) e = e * 31 + r.charCodeAt(t) >>> 0;
|
|
4164
|
-
return
|
|
4211
|
+
return $3[e % $3.length];
|
|
4165
4212
|
}
|
|
4166
|
-
function
|
|
4213
|
+
function F7(r, e = 2) {
|
|
4167
4214
|
var i;
|
|
4168
4215
|
const t = r.trim().split(/\s+/), o = ((i = t[0]) == null ? void 0 : i[0]) ?? "";
|
|
4169
4216
|
return e < 2 || t.length === 1 ? o.toUpperCase() : (o + (t[t.length - 1][0] ?? "")).toUpperCase();
|
|
4170
4217
|
}
|
|
4171
|
-
const
|
|
4218
|
+
const M4 = class M4 extends h {
|
|
4172
4219
|
constructor() {
|
|
4173
4220
|
super(...arguments), this.src = "", this.name = "", this.alt = "", this.icon = "", this.size = 32, this.shape = "circle", this._imgError = !1;
|
|
4174
4221
|
}
|
|
@@ -4179,7 +4226,7 @@ const L4 = class L4 extends h {
|
|
|
4179
4226
|
return this.size <= 16 ? 10 : this.size <= 20 ? 12 : this.size <= 24 ? 14 : 18;
|
|
4180
4227
|
}
|
|
4181
4228
|
render() {
|
|
4182
|
-
const e = !!this.src && !this._imgError, t = this.name || this.icon ?
|
|
4229
|
+
const e = !!this.src && !this._imgError, t = this.name || this.icon ? P7(this.name || this.icon) : { bg: "#F2F4F7", text: "#667085" }, o = this.name ? F7(this.name, this.size <= 20 ? 1 : 2) : "";
|
|
4183
4230
|
return s`
|
|
4184
4231
|
<div
|
|
4185
4232
|
class="avatar avatar--${this.shape} avatar--${this.size}"
|
|
@@ -4197,7 +4244,7 @@ const L4 = class L4 extends h {
|
|
|
4197
4244
|
`;
|
|
4198
4245
|
}
|
|
4199
4246
|
};
|
|
4200
|
-
|
|
4247
|
+
M4.styles = g`
|
|
4201
4248
|
:host { display: inline-flex; }
|
|
4202
4249
|
|
|
4203
4250
|
.avatar {
|
|
@@ -4226,7 +4273,7 @@ L4.styles = g`
|
|
|
4226
4273
|
display: block;
|
|
4227
4274
|
}
|
|
4228
4275
|
`;
|
|
4229
|
-
let J =
|
|
4276
|
+
let J = M4;
|
|
4230
4277
|
E1([
|
|
4231
4278
|
a()
|
|
4232
4279
|
], J.prototype, "src");
|
|
@@ -4254,8 +4301,8 @@ customElements.get("anduin-avatar") || customElements.define("anduin-avatar", J)
|
|
|
4254
4301
|
* Copyright 2017 Google LLC
|
|
4255
4302
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4256
4303
|
*/
|
|
4257
|
-
const
|
|
4258
|
-
class
|
|
4304
|
+
const O7 = { CHILD: 2 }, I7 = (r) => (...e) => ({ _$litDirective$: r, values: e });
|
|
4305
|
+
class T7 {
|
|
4259
4306
|
constructor(e) {
|
|
4260
4307
|
}
|
|
4261
4308
|
get _$AU() {
|
|
@@ -4276,9 +4323,9 @@ class I7 {
|
|
|
4276
4323
|
* Copyright 2017 Google LLC
|
|
4277
4324
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4278
4325
|
*/
|
|
4279
|
-
class
|
|
4326
|
+
class g5 extends T7 {
|
|
4280
4327
|
constructor(e) {
|
|
4281
|
-
if (super(e), this.it = u, e.type !==
|
|
4328
|
+
if (super(e), this.it = u, e.type !== O7.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
4282
4329
|
}
|
|
4283
4330
|
render(e) {
|
|
4284
4331
|
if (e === u || e == null) return this._t = void 0, this.it = e;
|
|
@@ -4290,16 +4337,16 @@ class c5 extends I7 {
|
|
|
4290
4337
|
return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
|
|
4291
4338
|
}
|
|
4292
4339
|
}
|
|
4293
|
-
|
|
4340
|
+
g5.directiveName = "unsafeHTML", g5.resultType = 1;
|
|
4294
4341
|
/**
|
|
4295
4342
|
* @license
|
|
4296
4343
|
* Copyright 2017 Google LLC
|
|
4297
4344
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4298
4345
|
*/
|
|
4299
|
-
class
|
|
4346
|
+
class f5 extends g5 {
|
|
4300
4347
|
}
|
|
4301
|
-
|
|
4302
|
-
const
|
|
4348
|
+
f5.directiveName = "unsafeSVG", f5.resultType = 2;
|
|
4349
|
+
const N7 = I7(f5), j7 = {
|
|
4303
4350
|
archive: {
|
|
4304
4351
|
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"/>
|
|
4305
4352
|
<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"/>
|
|
@@ -4543,26 +4590,26 @@ const T7 = O7(C5), N7 = {
|
|
|
4543
4590
|
<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"/>
|
|
4544
4591
|
<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"/>` }
|
|
4545
4592
|
}
|
|
4546
|
-
},
|
|
4547
|
-
function
|
|
4548
|
-
const t =
|
|
4593
|
+
}, U7 = [32, 24, 16];
|
|
4594
|
+
function G7(r, e) {
|
|
4595
|
+
const t = j7[r];
|
|
4549
4596
|
if (!t) return null;
|
|
4550
4597
|
if (t[e]) return t[e];
|
|
4551
|
-
for (const o of
|
|
4598
|
+
for (const o of U7)
|
|
4552
4599
|
if (t[o]) return t[o];
|
|
4553
4600
|
return null;
|
|
4554
4601
|
}
|
|
4555
|
-
var
|
|
4602
|
+
var K7 = Object.defineProperty, he = (r, e, t, o) => {
|
|
4556
4603
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
4557
4604
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
4558
|
-
return i &&
|
|
4605
|
+
return i && K7(e, t, i), i;
|
|
4559
4606
|
};
|
|
4560
|
-
const
|
|
4607
|
+
const w4 = class w4 extends h {
|
|
4561
4608
|
constructor() {
|
|
4562
4609
|
super(...arguments), this.type = "pdf", this.size = 32;
|
|
4563
4610
|
}
|
|
4564
4611
|
render() {
|
|
4565
|
-
const e =
|
|
4612
|
+
const e = G7(this.type, this.size);
|
|
4566
4613
|
return e ? s`
|
|
4567
4614
|
<svg
|
|
4568
4615
|
width=${this.size}
|
|
@@ -4573,35 +4620,35 @@ const x4 = class x4 extends h {
|
|
|
4573
4620
|
aria-label="${this.type} file"
|
|
4574
4621
|
role="img"
|
|
4575
4622
|
>
|
|
4576
|
-
${
|
|
4623
|
+
${N7(e.paths)}
|
|
4577
4624
|
</svg>
|
|
4578
4625
|
` : u;
|
|
4579
4626
|
}
|
|
4580
4627
|
};
|
|
4581
|
-
|
|
4628
|
+
w4.styles = g`
|
|
4582
4629
|
:host { display: inline-flex; align-items: center; justify-content: center; }
|
|
4583
4630
|
svg { display: block; }
|
|
4584
4631
|
`;
|
|
4585
|
-
let
|
|
4586
|
-
|
|
4632
|
+
let v2 = w4;
|
|
4633
|
+
he([
|
|
4587
4634
|
a()
|
|
4588
|
-
],
|
|
4589
|
-
|
|
4635
|
+
], v2.prototype, "type");
|
|
4636
|
+
he([
|
|
4590
4637
|
a({ type: Number })
|
|
4591
|
-
],
|
|
4592
|
-
customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon",
|
|
4593
|
-
var
|
|
4638
|
+
], v2.prototype, "size");
|
|
4639
|
+
customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", v2);
|
|
4640
|
+
var W7 = Object.defineProperty, z1 = (r, e, t, o) => {
|
|
4594
4641
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
4595
4642
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
4596
|
-
return i &&
|
|
4643
|
+
return i && W7(e, t, i), i;
|
|
4597
4644
|
};
|
|
4598
|
-
const
|
|
4645
|
+
const E3 = {
|
|
4599
4646
|
gray: "info",
|
|
4600
4647
|
primary: "infoCircleLine",
|
|
4601
4648
|
success: "checkCircle",
|
|
4602
4649
|
warning: "warning",
|
|
4603
4650
|
danger: "error"
|
|
4604
|
-
},
|
|
4651
|
+
}, Y7 = "anduin-toast:dismiss", Z4 = class Z4 extends h {
|
|
4605
4652
|
constructor() {
|
|
4606
4653
|
super(...arguments), this.variant = "gray", this.heading = "", this.description = "", this._dismissing = !1;
|
|
4607
4654
|
}
|
|
@@ -4612,7 +4659,7 @@ const R3 = {
|
|
|
4612
4659
|
const e = (o) => {
|
|
4613
4660
|
var i;
|
|
4614
4661
|
o.propertyName === "opacity" && ((i = this._toastEl) == null || i.removeEventListener("transitionend", e), this.dispatchEvent(
|
|
4615
|
-
new CustomEvent(
|
|
4662
|
+
new CustomEvent(Y7, { bubbles: !0, composed: !0 })
|
|
4616
4663
|
));
|
|
4617
4664
|
};
|
|
4618
4665
|
(t = this._toastEl) == null || t.addEventListener("transitionend", e);
|
|
@@ -4621,7 +4668,7 @@ const R3 = {
|
|
|
4621
4668
|
this.dismiss();
|
|
4622
4669
|
}
|
|
4623
4670
|
render() {
|
|
4624
|
-
const e =
|
|
4671
|
+
const e = E3[this.variant] ?? E3.gray;
|
|
4625
4672
|
return s`
|
|
4626
4673
|
<div
|
|
4627
4674
|
class="toast toast--${this.variant} ${this._dismissing ? "toast--dismissing" : ""}"
|
|
@@ -4647,7 +4694,7 @@ const R3 = {
|
|
|
4647
4694
|
`;
|
|
4648
4695
|
}
|
|
4649
4696
|
};
|
|
4650
|
-
|
|
4697
|
+
Z4.styles = g`
|
|
4651
4698
|
:host {
|
|
4652
4699
|
display: block;
|
|
4653
4700
|
font-family: var(--font-sans);
|
|
@@ -4775,24 +4822,24 @@ M4.styles = g`
|
|
|
4775
4822
|
background: var(--color-gray-3, #d0d5dd);
|
|
4776
4823
|
}
|
|
4777
4824
|
`;
|
|
4778
|
-
let
|
|
4825
|
+
let f1 = Z4;
|
|
4779
4826
|
z1([
|
|
4780
4827
|
a()
|
|
4781
|
-
],
|
|
4828
|
+
], f1.prototype, "variant");
|
|
4782
4829
|
z1([
|
|
4783
4830
|
a()
|
|
4784
|
-
],
|
|
4831
|
+
], f1.prototype, "heading");
|
|
4785
4832
|
z1([
|
|
4786
4833
|
a()
|
|
4787
|
-
],
|
|
4834
|
+
], f1.prototype, "description");
|
|
4788
4835
|
z1([
|
|
4789
4836
|
H()
|
|
4790
|
-
],
|
|
4837
|
+
], f1.prototype, "_dismissing");
|
|
4791
4838
|
z1([
|
|
4792
4839
|
z(".toast")
|
|
4793
|
-
],
|
|
4794
|
-
customElements.get("anduin-toast") || customElements.define("anduin-toast",
|
|
4795
|
-
const
|
|
4840
|
+
], f1.prototype, "_toastEl");
|
|
4841
|
+
customElements.get("anduin-toast") || customElements.define("anduin-toast", f1);
|
|
4842
|
+
const k4 = class k4 extends h {
|
|
4796
4843
|
constructor() {
|
|
4797
4844
|
super(...arguments), this.position = "bottom-left", this._toasts = [], this._nextId = 0;
|
|
4798
4845
|
}
|
|
@@ -4836,7 +4883,7 @@ const w4 = class w4 extends h {
|
|
|
4836
4883
|
`;
|
|
4837
4884
|
}
|
|
4838
4885
|
};
|
|
4839
|
-
|
|
4886
|
+
k4.styles = g`
|
|
4840
4887
|
:host {
|
|
4841
4888
|
display: contents;
|
|
4842
4889
|
pointer-events: none;
|
|
@@ -4883,17 +4930,17 @@ w4.styles = g`
|
|
|
4883
4930
|
align-items: flex-end;
|
|
4884
4931
|
}
|
|
4885
4932
|
`;
|
|
4886
|
-
let
|
|
4933
|
+
let m2 = k4;
|
|
4887
4934
|
z1([
|
|
4888
4935
|
a()
|
|
4889
|
-
],
|
|
4936
|
+
], m2.prototype, "position");
|
|
4890
4937
|
z1([
|
|
4891
4938
|
H()
|
|
4892
|
-
],
|
|
4893
|
-
customElements.get("anduin-toaster") || customElements.define("anduin-toaster",
|
|
4939
|
+
], m2.prototype, "_toasts");
|
|
4940
|
+
customElements.get("anduin-toaster") || customElements.define("anduin-toaster", m2);
|
|
4894
4941
|
const j0 = {
|
|
4895
4942
|
show(r) {
|
|
4896
|
-
return
|
|
4943
|
+
return q7(r.position).show(r);
|
|
4897
4944
|
},
|
|
4898
4945
|
success(r, e, t) {
|
|
4899
4946
|
return this.show({ ...t, variant: "success", heading: r, description: e });
|
|
@@ -4910,23 +4957,23 @@ const j0 = {
|
|
|
4910
4957
|
gray(r, e, t) {
|
|
4911
4958
|
return this.show({ ...t, variant: "gray", heading: r, description: e });
|
|
4912
4959
|
}
|
|
4913
|
-
},
|
|
4914
|
-
function
|
|
4915
|
-
if (
|
|
4960
|
+
}, X2 = /* @__PURE__ */ new Map();
|
|
4961
|
+
function q7(r = "bottom-left") {
|
|
4962
|
+
if (X2.has(r)) return X2.get(r);
|
|
4916
4963
|
const e = document.createElement("anduin-toaster");
|
|
4917
|
-
return e.position = r, document.body.appendChild(e),
|
|
4964
|
+
return e.position = r, document.body.appendChild(e), X2.set(r, e), e;
|
|
4918
4965
|
}
|
|
4919
|
-
var
|
|
4966
|
+
var X7 = Object.defineProperty, ue = (r, e, t, o) => {
|
|
4920
4967
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
4921
4968
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
4922
|
-
return i &&
|
|
4969
|
+
return i && X7(e, t, i), i;
|
|
4923
4970
|
};
|
|
4924
|
-
const
|
|
4971
|
+
const J7 = "anduin-switcher:change", R4 = class R4 extends h {
|
|
4925
4972
|
constructor() {
|
|
4926
4973
|
super(...arguments), this.checked = !1, this.disabled = !1;
|
|
4927
4974
|
}
|
|
4928
4975
|
onChange() {
|
|
4929
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
4976
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(J7, {
|
|
4930
4977
|
detail: this.checked,
|
|
4931
4978
|
bubbles: !0,
|
|
4932
4979
|
composed: !0
|
|
@@ -4950,7 +4997,7 @@ const X7 = "anduin-switcher:change", Z4 = class Z4 extends h {
|
|
|
4950
4997
|
`;
|
|
4951
4998
|
}
|
|
4952
4999
|
};
|
|
4953
|
-
|
|
5000
|
+
R4.styles = g`
|
|
4954
5001
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
4955
5002
|
|
|
4956
5003
|
label {
|
|
@@ -5014,20 +5061,20 @@ Z4.styles = g`
|
|
|
5014
5061
|
line-height: 20px;
|
|
5015
5062
|
}
|
|
5016
5063
|
`;
|
|
5017
|
-
let b2 =
|
|
5018
|
-
|
|
5064
|
+
let b2 = R4;
|
|
5065
|
+
ue([
|
|
5019
5066
|
a({ type: Boolean })
|
|
5020
5067
|
], b2.prototype, "checked");
|
|
5021
|
-
|
|
5068
|
+
ue([
|
|
5022
5069
|
a({ type: Boolean })
|
|
5023
5070
|
], b2.prototype, "disabled");
|
|
5024
5071
|
customElements.get("anduin-switcher") || customElements.define("anduin-switcher", b2);
|
|
5025
|
-
var
|
|
5072
|
+
var Q7 = Object.defineProperty, D = (r, e, t, o) => {
|
|
5026
5073
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
5027
5074
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5028
|
-
return i &&
|
|
5075
|
+
return i && Q7(e, t, i), i;
|
|
5029
5076
|
};
|
|
5030
|
-
const
|
|
5077
|
+
const z3 = "anduin-dropdown:change", $4 = class $4 extends h {
|
|
5031
5078
|
constructor() {
|
|
5032
5079
|
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) => {
|
|
5033
5080
|
var t;
|
|
@@ -5059,14 +5106,14 @@ const $3 = "anduin-dropdown:change", k4 = class k4 extends h {
|
|
|
5059
5106
|
e.key === "Escape" && (this._open = !1, this._query = "", (t = this._triggerEl) == null || t.focus());
|
|
5060
5107
|
}
|
|
5061
5108
|
_onClear(e) {
|
|
5062
|
-
e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(
|
|
5109
|
+
e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(z3, {
|
|
5063
5110
|
detail: "",
|
|
5064
5111
|
bubbles: !0,
|
|
5065
5112
|
composed: !0
|
|
5066
5113
|
}));
|
|
5067
5114
|
}
|
|
5068
5115
|
_selectOption(e) {
|
|
5069
|
-
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(
|
|
5116
|
+
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(z3, {
|
|
5070
5117
|
detail: e.value,
|
|
5071
5118
|
bubbles: !0,
|
|
5072
5119
|
composed: !0
|
|
@@ -5081,7 +5128,7 @@ const $3 = "anduin-dropdown:change", k4 = class k4 extends h {
|
|
|
5081
5128
|
t.style.transform = i;
|
|
5082
5129
|
const l = t.querySelector(".panel__inner");
|
|
5083
5130
|
l && (l.style.minWidth = `${o.width}px`);
|
|
5084
|
-
const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8,
|
|
5131
|
+
const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, b = p - o.bottom - c, m = o.top - c, _ = d.height <= b || b >= m ? o.bottom + c : o.top - d.height - c;
|
|
5085
5132
|
let v = o.left;
|
|
5086
5133
|
this.placement === "bottom-end" ? v = o.right - d.width : this.placement === "bottom" && (v = o.left + o.width / 2 - d.width / 2), v = Math.max(f, Math.min(v, C - d.width - f));
|
|
5087
5134
|
const x = Math.max(f, Math.min(_, p - d.height - f));
|
|
@@ -5152,7 +5199,7 @@ const $3 = "anduin-dropdown:change", k4 = class k4 extends h {
|
|
|
5152
5199
|
`;
|
|
5153
5200
|
}
|
|
5154
5201
|
};
|
|
5155
|
-
|
|
5202
|
+
$4.styles = g`
|
|
5156
5203
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
5157
5204
|
:host([full-width]) { display: block; width: 100%; }
|
|
5158
5205
|
:host([full-width]) .trigger { width: 100%; }
|
|
@@ -5332,7 +5379,7 @@ k4.styles = g`
|
|
|
5332
5379
|
text-align: center;
|
|
5333
5380
|
}
|
|
5334
5381
|
`;
|
|
5335
|
-
let Z =
|
|
5382
|
+
let Z = $4;
|
|
5336
5383
|
D([
|
|
5337
5384
|
a()
|
|
5338
5385
|
], Z.prototype, "value");
|
|
@@ -5382,24 +5429,26 @@ D([
|
|
|
5382
5429
|
z("anduin-input")
|
|
5383
5430
|
], Z.prototype, "_searchEl");
|
|
5384
5431
|
customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", Z);
|
|
5385
|
-
var
|
|
5432
|
+
var e0 = Object.defineProperty, s1 = (r, e, t, o) => {
|
|
5386
5433
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
5387
5434
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5388
|
-
return i &&
|
|
5435
|
+
return i && e0(e, t, i), i;
|
|
5389
5436
|
};
|
|
5390
|
-
const
|
|
5437
|
+
const e2 = "anduin-close", J2 = "anduin-after-close", t0 = 300, S3 = 250, i0 = /* @__PURE__ */ new Map([
|
|
5391
5438
|
["320", 320],
|
|
5392
5439
|
["360", 360],
|
|
5393
5440
|
["400", 400],
|
|
5394
5441
|
["640", 640]
|
|
5395
|
-
]),
|
|
5442
|
+
]), E4 = class E4 extends h {
|
|
5396
5443
|
constructor() {
|
|
5397
|
-
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.
|
|
5444
|
+
super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.defaultWidth = "320", this.placement = "right", this.allowInteractOutside = !1, this._leaving = !1, this._width = 320, this._resizing = !1, this._startX = 0, this._startWidth = 0, this._stopAtSelf = (e) => {
|
|
5445
|
+
e.stopPropagation();
|
|
5446
|
+
}, this._onResizeStart = (e) => {
|
|
5398
5447
|
this._resizing = !0, this._startX = e.clientX, this._startWidth = this._width, e.currentTarget.setPointerCapture(e.pointerId), e.preventDefault();
|
|
5399
5448
|
}, this._onResizeMove = (e) => {
|
|
5400
5449
|
var n;
|
|
5401
5450
|
if (!this._resizing) return;
|
|
5402
|
-
const t = this._startX - e.clientX, o = Math.max(
|
|
5451
|
+
const t = this.placement === "left" ? e.clientX - this._startX : this._startX - e.clientX, o = Math.max(
|
|
5403
5452
|
200,
|
|
5404
5453
|
Math.min(window.innerWidth * 0.9, this._startWidth + t)
|
|
5405
5454
|
);
|
|
@@ -5416,23 +5465,29 @@ const p5 = "anduin-close", e0 = "anduin-after-close", t0 = 300, E3 = 250, i0 = /
|
|
|
5416
5465
|
updated(e) {
|
|
5417
5466
|
e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(() => {
|
|
5418
5467
|
this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
|
|
5419
|
-
new CustomEvent(
|
|
5468
|
+
new CustomEvent(J2, {
|
|
5420
5469
|
bubbles: !0,
|
|
5421
5470
|
composed: !0
|
|
5422
5471
|
})
|
|
5423
5472
|
);
|
|
5424
|
-
},
|
|
5473
|
+
}, S3)));
|
|
5425
5474
|
}
|
|
5426
5475
|
_dispatch(e) {
|
|
5427
5476
|
this.dispatchEvent(
|
|
5428
5477
|
new CustomEvent(e, { bubbles: !0, composed: !0 })
|
|
5429
5478
|
);
|
|
5430
5479
|
}
|
|
5480
|
+
connectedCallback() {
|
|
5481
|
+
super.connectedCallback(), this.addEventListener(e2, this._stopAtSelf), this.addEventListener(J2, this._stopAtSelf);
|
|
5482
|
+
}
|
|
5483
|
+
disconnectedCallback() {
|
|
5484
|
+
super.disconnectedCallback(), this.removeEventListener(e2, this._stopAtSelf), this.removeEventListener(J2, this._stopAtSelf);
|
|
5485
|
+
}
|
|
5431
5486
|
_onClose() {
|
|
5432
|
-
this._dispatch(
|
|
5487
|
+
this._dispatch(e2);
|
|
5433
5488
|
}
|
|
5434
5489
|
_onBackdropClick() {
|
|
5435
|
-
this._dispatch(
|
|
5490
|
+
this._dispatch(e2);
|
|
5436
5491
|
}
|
|
5437
5492
|
render() {
|
|
5438
5493
|
const e = this._leaving;
|
|
@@ -5475,7 +5530,7 @@ const p5 = "anduin-close", e0 = "anduin-after-close", t0 = 300, E3 = 250, i0 = /
|
|
|
5475
5530
|
`;
|
|
5476
5531
|
}
|
|
5477
5532
|
};
|
|
5478
|
-
|
|
5533
|
+
E4.styles = g`
|
|
5479
5534
|
:host {
|
|
5480
5535
|
display: none;
|
|
5481
5536
|
font-family: var(--font-sans);
|
|
@@ -5504,6 +5559,25 @@ R4.styles = g`
|
|
|
5504
5559
|
transform: translateX(100%);
|
|
5505
5560
|
}
|
|
5506
5561
|
}
|
|
5562
|
+
/* Mirrors of the two above for placement="left". A separate pair, rather
|
|
5563
|
+
than one pair driven by a custom property, so the right-hand drawer's
|
|
5564
|
+
animation stays exactly the rules it always was. */
|
|
5565
|
+
@keyframes drawerInLeft {
|
|
5566
|
+
from {
|
|
5567
|
+
transform: translateX(-100%);
|
|
5568
|
+
}
|
|
5569
|
+
to {
|
|
5570
|
+
transform: translateX(0);
|
|
5571
|
+
}
|
|
5572
|
+
}
|
|
5573
|
+
@keyframes drawerOutLeft {
|
|
5574
|
+
from {
|
|
5575
|
+
transform: translateX(0);
|
|
5576
|
+
}
|
|
5577
|
+
to {
|
|
5578
|
+
transform: translateX(-100%);
|
|
5579
|
+
}
|
|
5580
|
+
}
|
|
5507
5581
|
/* Transparent backdrop — only rendered when dismiss-on-outside-click is set */
|
|
5508
5582
|
.backdrop {
|
|
5509
5583
|
position: absolute;
|
|
@@ -5529,9 +5603,24 @@ R4.styles = g`
|
|
|
5529
5603
|
pointer-events: auto;
|
|
5530
5604
|
}
|
|
5531
5605
|
.drawer.is-leaving {
|
|
5532
|
-
animation: drawerOut ${
|
|
5606
|
+
animation: drawerOut ${S3}ms
|
|
5533
5607
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
5534
5608
|
}
|
|
5609
|
+
/* placement="left": every rule above that assumes the right edge, flipped.
|
|
5610
|
+
Anchor to the left, cast the shadow rightward (towards the page, away
|
|
5611
|
+
from the edge it is pinned to), and slide in and out past the left edge.
|
|
5612
|
+
Only animation-name changes, so duration and easing stay shared. */
|
|
5613
|
+
:host([placement="left"]) .drawer {
|
|
5614
|
+
left: 0;
|
|
5615
|
+
right: auto;
|
|
5616
|
+
box-shadow:
|
|
5617
|
+
8px 0 24px 0 rgba(29, 41, 57, 0.12),
|
|
5618
|
+
2px 0 8px 0 rgba(29, 41, 57, 0.08);
|
|
5619
|
+
animation-name: drawerInLeft;
|
|
5620
|
+
}
|
|
5621
|
+
:host([placement="left"]) .drawer.is-leaving {
|
|
5622
|
+
animation-name: drawerOutLeft;
|
|
5623
|
+
}
|
|
5535
5624
|
@media (max-width: 640px) {
|
|
5536
5625
|
.drawer {
|
|
5537
5626
|
top: 0;
|
|
@@ -5542,6 +5631,11 @@ R4.styles = g`
|
|
|
5542
5631
|
max-width: 100%;
|
|
5543
5632
|
min-width: unset;
|
|
5544
5633
|
}
|
|
5634
|
+
/* The placement="left" rule's right: auto outranks the bare .drawer
|
|
5635
|
+
above on specificity, so full-screen has to be restated for it. */
|
|
5636
|
+
:host([placement="left"]) .drawer {
|
|
5637
|
+
right: 0;
|
|
5638
|
+
}
|
|
5545
5639
|
.resize-handle {
|
|
5546
5640
|
display: none;
|
|
5547
5641
|
}
|
|
@@ -5559,6 +5653,11 @@ R4.styles = g`
|
|
|
5559
5653
|
.resize-handle:hover {
|
|
5560
5654
|
background: var(--color-primary-3, #84caff);
|
|
5561
5655
|
}
|
|
5656
|
+
/* The handle sits on the edge that faces the page — the one you pull. */
|
|
5657
|
+
:host([placement="left"]) .resize-handle {
|
|
5658
|
+
left: auto;
|
|
5659
|
+
right: 0;
|
|
5660
|
+
}
|
|
5562
5661
|
.header {
|
|
5563
5662
|
flex-shrink: 0;
|
|
5564
5663
|
display: flex;
|
|
@@ -5593,37 +5692,40 @@ R4.styles = g`
|
|
|
5593
5692
|
border-top: 1px solid var(--color-gray-3, #e4e7ec);
|
|
5594
5693
|
}
|
|
5595
5694
|
`;
|
|
5596
|
-
let
|
|
5597
|
-
|
|
5695
|
+
let j = E4;
|
|
5696
|
+
s1([
|
|
5598
5697
|
a({ type: Boolean, reflect: !0 })
|
|
5599
|
-
],
|
|
5600
|
-
|
|
5698
|
+
], j.prototype, "open");
|
|
5699
|
+
s1([
|
|
5601
5700
|
a()
|
|
5602
|
-
],
|
|
5603
|
-
|
|
5701
|
+
], j.prototype, "heading");
|
|
5702
|
+
s1([
|
|
5604
5703
|
a({ type: Boolean, attribute: "hide-header" })
|
|
5605
|
-
],
|
|
5606
|
-
|
|
5704
|
+
], j.prototype, "hideHeader");
|
|
5705
|
+
s1([
|
|
5607
5706
|
a({ type: Boolean, attribute: "hide-footer" })
|
|
5608
|
-
],
|
|
5609
|
-
|
|
5707
|
+
], j.prototype, "hideFooter");
|
|
5708
|
+
s1([
|
|
5610
5709
|
a({ attribute: "default-width" })
|
|
5611
|
-
],
|
|
5612
|
-
|
|
5710
|
+
], j.prototype, "defaultWidth");
|
|
5711
|
+
s1([
|
|
5712
|
+
a({ reflect: !0 })
|
|
5713
|
+
], j.prototype, "placement");
|
|
5714
|
+
s1([
|
|
5613
5715
|
a({ type: Boolean, attribute: "allow-interact-outside" })
|
|
5614
|
-
],
|
|
5615
|
-
|
|
5716
|
+
], j.prototype, "allowInteractOutside");
|
|
5717
|
+
s1([
|
|
5616
5718
|
H()
|
|
5617
|
-
],
|
|
5618
|
-
|
|
5719
|
+
], j.prototype, "_leaving");
|
|
5720
|
+
s1([
|
|
5619
5721
|
H()
|
|
5620
|
-
],
|
|
5621
|
-
customElements.get("anduin-drawer") || customElements.define("anduin-drawer",
|
|
5722
|
+
], j.prototype, "_width");
|
|
5723
|
+
customElements.get("anduin-drawer") || customElements.define("anduin-drawer", j);
|
|
5622
5724
|
class o0 extends HTMLElement {
|
|
5623
5725
|
constructor() {
|
|
5624
5726
|
super(...arguments), this._onClick = () => {
|
|
5625
5727
|
this.dispatchEvent(
|
|
5626
|
-
new CustomEvent(
|
|
5728
|
+
new CustomEvent(e2, { bubbles: !0, composed: !0 })
|
|
5627
5729
|
);
|
|
5628
5730
|
};
|
|
5629
5731
|
}
|
|
@@ -5640,7 +5742,7 @@ var n0 = Object.defineProperty, R = (r, e, t, o) => {
|
|
|
5640
5742
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5641
5743
|
return i && n0(e, t, i), i;
|
|
5642
5744
|
};
|
|
5643
|
-
const
|
|
5745
|
+
const Q2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "anduin-suggestion:clear", z4 = class z4 extends h {
|
|
5644
5746
|
constructor() {
|
|
5645
5747
|
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) => {
|
|
5646
5748
|
var t;
|
|
@@ -5680,7 +5782,7 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
|
|
|
5680
5782
|
this._openPanel();
|
|
5681
5783
|
}
|
|
5682
5784
|
_onInput() {
|
|
5683
|
-
this.value = this._inputEl.value, this._open || this._openPanel(), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(
|
|
5785
|
+
this.value = this._inputEl.value, this._open || this._openPanel(), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(Q2, {
|
|
5684
5786
|
detail: this.value,
|
|
5685
5787
|
bubbles: !0,
|
|
5686
5788
|
composed: !0
|
|
@@ -5713,7 +5815,7 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
|
|
|
5713
5815
|
}
|
|
5714
5816
|
_selectSuggestion(e) {
|
|
5715
5817
|
var t;
|
|
5716
|
-
this.value = e.value, this._inputEl && (this._inputEl.value = e.value), this._open = !1, this.dispatchEvent(new CustomEvent(
|
|
5818
|
+
this.value = e.value, this._inputEl && (this._inputEl.value = e.value), this._open = !1, this.dispatchEvent(new CustomEvent(Q2, {
|
|
5717
5819
|
detail: this.value,
|
|
5718
5820
|
bubbles: !0,
|
|
5719
5821
|
composed: !0
|
|
@@ -5725,7 +5827,7 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
|
|
|
5725
5827
|
}
|
|
5726
5828
|
_onClear() {
|
|
5727
5829
|
var e;
|
|
5728
|
-
this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(
|
|
5830
|
+
this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(Q2, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(l0, { bubbles: !0, composed: !0 })), (e = this._inputEl) == null || e.focus();
|
|
5729
5831
|
}
|
|
5730
5832
|
_updatePosition() {
|
|
5731
5833
|
var M;
|
|
@@ -5737,7 +5839,7 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
|
|
|
5737
5839
|
t.style.transform = i;
|
|
5738
5840
|
const l = t.querySelector(".panel__inner");
|
|
5739
5841
|
l && (l.style.minWidth = `${o.width}px`);
|
|
5740
|
-
const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8,
|
|
5842
|
+
const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, b = p - o.bottom - c, m = o.top - c, _ = d.height <= b || b >= m ? o.bottom + c : o.top - d.height - c;
|
|
5741
5843
|
let v = o.left;
|
|
5742
5844
|
v = Math.max(f, Math.min(v, C - d.width - f));
|
|
5743
5845
|
const x = Math.max(f, Math.min(_, p - d.height - f));
|
|
@@ -5799,8 +5901,8 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
|
|
|
5799
5901
|
@mouseenter=${() => {
|
|
5800
5902
|
this._activeIndex = f;
|
|
5801
5903
|
}}
|
|
5802
|
-
@mousedown=${(
|
|
5803
|
-
|
|
5904
|
+
@mousedown=${(b) => {
|
|
5905
|
+
b.preventDefault(), this._selectSuggestion(p);
|
|
5804
5906
|
}}
|
|
5805
5907
|
>
|
|
5806
5908
|
${p.icon ? s`<anduin-icon name=${p.icon} size="16"></anduin-icon>` : u}
|
|
@@ -5813,7 +5915,7 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
|
|
|
5813
5915
|
`;
|
|
5814
5916
|
}
|
|
5815
5917
|
};
|
|
5816
|
-
|
|
5918
|
+
z4.styles = g`
|
|
5817
5919
|
:host { display: block; font-family: var(--font-sans); position: relative; }
|
|
5818
5920
|
|
|
5819
5921
|
.input-wrapper { position: relative; display: flex; align-items: center; }
|
|
@@ -5926,7 +6028,7 @@ $4.styles = g`
|
|
|
5926
6028
|
text-align: center;
|
|
5927
6029
|
}
|
|
5928
6030
|
`;
|
|
5929
|
-
let w =
|
|
6031
|
+
let w = z4;
|
|
5930
6032
|
R([
|
|
5931
6033
|
a()
|
|
5932
6034
|
], w.prototype, "value");
|
|
@@ -5987,7 +6089,7 @@ var a0 = Object.defineProperty, W = (r, e, t, o) => {
|
|
|
5987
6089
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5988
6090
|
return i && a0(e, t, i), i;
|
|
5989
6091
|
};
|
|
5990
|
-
const s0 = "anduin-navigation:change",
|
|
6092
|
+
const s0 = "anduin-navigation:change", v5 = "anduin-navigation-item:item-click", S4 = class S4 extends h {
|
|
5991
6093
|
constructor() {
|
|
5992
6094
|
super(...arguments), this.defaultValue = "", this.value = null, this.theme = "light", this.alignment = "left", this.internalValue = "", this.onItemClick = (e) => {
|
|
5993
6095
|
e.stopPropagation();
|
|
@@ -6006,10 +6108,10 @@ const s0 = "anduin-navigation:change", u5 = "anduin-navigation-item:item-click",
|
|
|
6006
6108
|
return this.isControlled ? this.value : this.internalValue;
|
|
6007
6109
|
}
|
|
6008
6110
|
connectedCallback() {
|
|
6009
|
-
super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue), this.addEventListener(
|
|
6111
|
+
super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue), this.addEventListener(v5, this.onItemClick);
|
|
6010
6112
|
}
|
|
6011
6113
|
disconnectedCallback() {
|
|
6012
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
6114
|
+
super.disconnectedCallback(), this.removeEventListener(v5, this.onItemClick);
|
|
6013
6115
|
}
|
|
6014
6116
|
updated() {
|
|
6015
6117
|
this.syncItems();
|
|
@@ -6030,7 +6132,7 @@ const s0 = "anduin-navigation:change", u5 = "anduin-navigation-item:item-click",
|
|
|
6030
6132
|
`;
|
|
6031
6133
|
}
|
|
6032
6134
|
};
|
|
6033
|
-
|
|
6135
|
+
S4.styles = g`
|
|
6034
6136
|
:host {
|
|
6035
6137
|
display: block;
|
|
6036
6138
|
font-family: var(--font-sans);
|
|
@@ -6073,23 +6175,23 @@ E4.styles = g`
|
|
|
6073
6175
|
.navigation--center { justify-content: center; }
|
|
6074
6176
|
.navigation--right { justify-content: flex-end; }
|
|
6075
6177
|
`;
|
|
6076
|
-
let
|
|
6178
|
+
let v1 = S4;
|
|
6077
6179
|
W([
|
|
6078
6180
|
a({ attribute: "default-value" })
|
|
6079
|
-
],
|
|
6181
|
+
], v1.prototype, "defaultValue");
|
|
6080
6182
|
W([
|
|
6081
6183
|
a()
|
|
6082
|
-
],
|
|
6184
|
+
], v1.prototype, "value");
|
|
6083
6185
|
W([
|
|
6084
6186
|
a({ reflect: !0 })
|
|
6085
|
-
],
|
|
6187
|
+
], v1.prototype, "theme");
|
|
6086
6188
|
W([
|
|
6087
6189
|
a()
|
|
6088
|
-
],
|
|
6190
|
+
], v1.prototype, "alignment");
|
|
6089
6191
|
W([
|
|
6090
6192
|
H()
|
|
6091
|
-
],
|
|
6092
|
-
const
|
|
6193
|
+
], v1.prototype, "internalValue");
|
|
6194
|
+
const A4 = class A4 extends h {
|
|
6093
6195
|
constructor() {
|
|
6094
6196
|
super(...arguments), this.value = "", this.startIcon = "", this.href = "", this.disabled = !1, this.selected = !1, this.theme = "light";
|
|
6095
6197
|
}
|
|
@@ -6098,7 +6200,7 @@ const z4 = class z4 extends h {
|
|
|
6098
6200
|
e.preventDefault();
|
|
6099
6201
|
return;
|
|
6100
6202
|
}
|
|
6101
|
-
this.dispatchEvent(new CustomEvent(
|
|
6203
|
+
this.dispatchEvent(new CustomEvent(v5, {
|
|
6102
6204
|
detail: this.value,
|
|
6103
6205
|
bubbles: !0,
|
|
6104
6206
|
composed: !0
|
|
@@ -6136,7 +6238,7 @@ const z4 = class z4 extends h {
|
|
|
6136
6238
|
`;
|
|
6137
6239
|
}
|
|
6138
6240
|
};
|
|
6139
|
-
|
|
6241
|
+
A4.styles = g`
|
|
6140
6242
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
6141
6243
|
.nav-item {
|
|
6142
6244
|
box-sizing: border-box;
|
|
@@ -6181,7 +6283,7 @@ z4.styles = g`
|
|
|
6181
6283
|
}
|
|
6182
6284
|
.nav-item__icon { display: flex; }
|
|
6183
6285
|
`;
|
|
6184
|
-
let l1 =
|
|
6286
|
+
let l1 = A4;
|
|
6185
6287
|
W([
|
|
6186
6288
|
a()
|
|
6187
6289
|
], l1.prototype, "value");
|
|
@@ -6200,21 +6302,21 @@ W([
|
|
|
6200
6302
|
W([
|
|
6201
6303
|
a({ attribute: !1 })
|
|
6202
6304
|
], l1.prototype, "theme");
|
|
6203
|
-
customElements.get("anduin-navigation") || customElements.define("anduin-navigation",
|
|
6305
|
+
customElements.get("anduin-navigation") || customElements.define("anduin-navigation", v1);
|
|
6204
6306
|
customElements.get("anduin-navigation-item") || customElements.define("anduin-navigation-item", l1);
|
|
6205
6307
|
var d0 = Object.defineProperty, S1 = (r, e, t, o) => {
|
|
6206
6308
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
6207
6309
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
6208
6310
|
return i && d0(e, t, i), i;
|
|
6209
6311
|
};
|
|
6210
|
-
const c0 = "anduin-resizable:resize",
|
|
6211
|
-
function
|
|
6312
|
+
const c0 = "anduin-resizable:resize", ge = "anduin-resizable-panel", A3 = (r) => !!r && r.tagName.toLowerCase() === ge;
|
|
6313
|
+
function D3(r, e, t) {
|
|
6212
6314
|
const o = (r || "").trim();
|
|
6213
6315
|
if (!o) return t;
|
|
6214
6316
|
const i = parseFloat(o);
|
|
6215
6317
|
return Number.isNaN(i) ? t : o.endsWith("%") ? i / 100 * e : i;
|
|
6216
6318
|
}
|
|
6217
|
-
const
|
|
6319
|
+
const D4 = class D4 extends h {
|
|
6218
6320
|
constructor() {
|
|
6219
6321
|
super(...arguments), this.orientation = "horizontal";
|
|
6220
6322
|
}
|
|
@@ -6230,7 +6332,7 @@ const S4 = class S4 extends h {
|
|
|
6230
6332
|
return this.isVertical ? e.height : e.width;
|
|
6231
6333
|
}
|
|
6232
6334
|
get panels() {
|
|
6233
|
-
return Array.from(this.querySelectorAll(`:scope > ${
|
|
6335
|
+
return Array.from(this.querySelectorAll(`:scope > ${ge}`));
|
|
6234
6336
|
}
|
|
6235
6337
|
updated() {
|
|
6236
6338
|
for (const e of this.querySelectorAll(":scope > anduin-resizable-handle"))
|
|
@@ -6255,7 +6357,7 @@ const S4 = class S4 extends h {
|
|
|
6255
6357
|
`;
|
|
6256
6358
|
}
|
|
6257
6359
|
};
|
|
6258
|
-
|
|
6360
|
+
D4.styles = g`
|
|
6259
6361
|
:host { display: block; width: 100%; height: 100%; font-family: var(--font-sans); }
|
|
6260
6362
|
.panel-group {
|
|
6261
6363
|
display: flex; flex-direction: row;
|
|
@@ -6263,11 +6365,11 @@ S4.styles = g`
|
|
|
6263
6365
|
}
|
|
6264
6366
|
.panel-group--vertical { flex-direction: column; }
|
|
6265
6367
|
`;
|
|
6266
|
-
let
|
|
6368
|
+
let S2 = D4;
|
|
6267
6369
|
S1([
|
|
6268
6370
|
a({ reflect: !0 })
|
|
6269
|
-
],
|
|
6270
|
-
const
|
|
6371
|
+
], S2.prototype, "orientation");
|
|
6372
|
+
const B4 = class B4 extends h {
|
|
6271
6373
|
constructor() {
|
|
6272
6374
|
super(...arguments), this.defaultSize = "", this.minSize = "", this.maxSize = "", this.applied = !1;
|
|
6273
6375
|
}
|
|
@@ -6290,20 +6392,20 @@ const A4 = class A4 extends h {
|
|
|
6290
6392
|
return e ? t.height : t.width;
|
|
6291
6393
|
}
|
|
6292
6394
|
minPx(e) {
|
|
6293
|
-
return
|
|
6395
|
+
return D3(this.minSize, e, 0);
|
|
6294
6396
|
}
|
|
6295
6397
|
maxPx(e) {
|
|
6296
|
-
return
|
|
6398
|
+
return D3(this.maxSize, e, e);
|
|
6297
6399
|
}
|
|
6298
6400
|
render() {
|
|
6299
6401
|
return s`<div class="panel" part="panel"><slot></slot></div>`;
|
|
6300
6402
|
}
|
|
6301
6403
|
};
|
|
6302
|
-
|
|
6404
|
+
B4.styles = g`
|
|
6303
6405
|
:host { display: block; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; font-family: var(--font-sans); }
|
|
6304
6406
|
.panel { width: 100%; height: 100%; overflow: hidden; }
|
|
6305
6407
|
`;
|
|
6306
|
-
let j1 =
|
|
6408
|
+
let j1 = B4;
|
|
6307
6409
|
S1([
|
|
6308
6410
|
a({ attribute: "default-size" })
|
|
6309
6411
|
], j1.prototype, "defaultSize");
|
|
@@ -6313,7 +6415,7 @@ S1([
|
|
|
6313
6415
|
S1([
|
|
6314
6416
|
a({ attribute: "max-size" })
|
|
6315
6417
|
], j1.prototype, "maxSize");
|
|
6316
|
-
const
|
|
6418
|
+
const P4 = class P4 extends h {
|
|
6317
6419
|
constructor() {
|
|
6318
6420
|
super(...arguments), this.withHandle = !1, this.groupVertical = !1, this.dragging = !1, this.group = null, this.startPos = 0, this.startPrevPx = 0, this.combinedPx = 0, this.combinedGrow = 0, this.activePointerId = null, this.onPointerDown = (e) => {
|
|
6319
6421
|
const t = this.closest("anduin-resizable-panel-group"), o = this.prevPanel, i = this.nextPanel;
|
|
@@ -6359,10 +6461,10 @@ const D4 = class D4 extends h {
|
|
|
6359
6461
|
this.groupVertical = e, this.setAttribute("aria-orientation", e ? "horizontal" : "vertical");
|
|
6360
6462
|
}
|
|
6361
6463
|
get prevPanel() {
|
|
6362
|
-
return
|
|
6464
|
+
return A3(this.previousElementSibling) ? this.previousElementSibling : null;
|
|
6363
6465
|
}
|
|
6364
6466
|
get nextPanel() {
|
|
6365
|
-
return
|
|
6467
|
+
return A3(this.nextElementSibling) ? this.nextElementSibling : null;
|
|
6366
6468
|
}
|
|
6367
6469
|
endDrag() {
|
|
6368
6470
|
if (!(!this.dragging && this.activePointerId === null)) {
|
|
@@ -6409,7 +6511,7 @@ const D4 = class D4 extends h {
|
|
|
6409
6511
|
`;
|
|
6410
6512
|
}
|
|
6411
6513
|
};
|
|
6412
|
-
|
|
6514
|
+
P4.styles = g`
|
|
6413
6515
|
:host { display: block; flex: 0 0 auto; position: relative; z-index: 1; outline: none; font-family: var(--font-sans); }
|
|
6414
6516
|
.handle {
|
|
6415
6517
|
position: relative; display: flex; align-items: center; justify-content: center;
|
|
@@ -6430,7 +6532,7 @@ D4.styles = g`
|
|
|
6430
6532
|
.handle:hover .handle__grip, .handle--dragging .handle__grip, :host(:focus-visible) .handle__grip { opacity: 1; }
|
|
6431
6533
|
.handle--vertical .handle__grip { transform: rotate(90deg); }
|
|
6432
6534
|
`;
|
|
6433
|
-
let U1 =
|
|
6535
|
+
let U1 = P4;
|
|
6434
6536
|
S1([
|
|
6435
6537
|
a({ type: Boolean, attribute: "with-handle" })
|
|
6436
6538
|
], U1.prototype, "withHandle");
|
|
@@ -6440,7 +6542,7 @@ S1([
|
|
|
6440
6542
|
S1([
|
|
6441
6543
|
H()
|
|
6442
6544
|
], U1.prototype, "dragging");
|
|
6443
|
-
customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group",
|
|
6545
|
+
customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", S2);
|
|
6444
6546
|
customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", j1);
|
|
6445
6547
|
customElements.get("anduin-resizable-handle") || customElements.define("anduin-resizable-handle", U1);
|
|
6446
6548
|
var C0 = Object.defineProperty, K1 = (r, e, t, o) => {
|
|
@@ -6448,12 +6550,12 @@ var C0 = Object.defineProperty, K1 = (r, e, t, o) => {
|
|
|
6448
6550
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
6449
6551
|
return i && C0(e, t, i), i;
|
|
6450
6552
|
};
|
|
6451
|
-
const p0 = "anduin-pagination:change",
|
|
6553
|
+
const p0 = "anduin-pagination:change", m5 = "anduin-pagination:jump";
|
|
6452
6554
|
function X1(r, e) {
|
|
6453
6555
|
const t = Math.max(e - r + 1, 0);
|
|
6454
6556
|
return Array.from({ length: t }, (o, i) => r + i);
|
|
6455
6557
|
}
|
|
6456
|
-
const
|
|
6558
|
+
const F4 = class F4 extends h {
|
|
6457
6559
|
constructor() {
|
|
6458
6560
|
super(...arguments), this.numberOfPages = 0, this.defaultValue = 1, this.value = null, this.internalValue = 1, this.indicatorReady = !1, this.onJump = (e) => {
|
|
6459
6561
|
e.stopPropagation(), this.goTo(e.detail === "first" ? 1 : this.count);
|
|
@@ -6470,10 +6572,10 @@ const B4 = class B4 extends h {
|
|
|
6470
6572
|
return Math.min(Math.max(Math.floor(e || 1), 1), Math.max(this.count, 1));
|
|
6471
6573
|
}
|
|
6472
6574
|
connectedCallback() {
|
|
6473
|
-
super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue || 1), this.addEventListener(
|
|
6575
|
+
super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue || 1), this.addEventListener(m5, this.onJump);
|
|
6474
6576
|
}
|
|
6475
6577
|
disconnectedCallback() {
|
|
6476
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
6578
|
+
super.disconnectedCallback(), this.removeEventListener(m5, this.onJump);
|
|
6477
6579
|
}
|
|
6478
6580
|
/** MUI-style windowing: boundaryCount = 1, siblingCount = 1. */
|
|
6479
6581
|
buildItems() {
|
|
@@ -6583,7 +6685,7 @@ const B4 = class B4 extends h {
|
|
|
6583
6685
|
`;
|
|
6584
6686
|
}
|
|
6585
6687
|
};
|
|
6586
|
-
|
|
6688
|
+
F4.styles = g`
|
|
6587
6689
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
6588
6690
|
:host(:not([number-of-pages])),
|
|
6589
6691
|
:host([number-of-pages='0']),
|
|
@@ -6646,26 +6748,26 @@ B4.styles = g`
|
|
|
6646
6748
|
align-items: stretch;
|
|
6647
6749
|
}
|
|
6648
6750
|
`;
|
|
6649
|
-
let
|
|
6751
|
+
let m1 = F4;
|
|
6650
6752
|
K1([
|
|
6651
6753
|
a({ type: Number, attribute: "number-of-pages", reflect: !0 })
|
|
6652
|
-
],
|
|
6754
|
+
], m1.prototype, "numberOfPages");
|
|
6653
6755
|
K1([
|
|
6654
6756
|
a({ type: Number, attribute: "default-value" })
|
|
6655
|
-
],
|
|
6757
|
+
], m1.prototype, "defaultValue");
|
|
6656
6758
|
K1([
|
|
6657
6759
|
a({ type: Number })
|
|
6658
|
-
],
|
|
6760
|
+
], m1.prototype, "value");
|
|
6659
6761
|
K1([
|
|
6660
6762
|
H()
|
|
6661
|
-
],
|
|
6763
|
+
], m1.prototype, "internalValue");
|
|
6662
6764
|
K1([
|
|
6663
6765
|
z(".pagination__indicator")
|
|
6664
|
-
],
|
|
6665
|
-
const
|
|
6766
|
+
], m1.prototype, "indicatorEl");
|
|
6767
|
+
const O4 = class O4 extends h {
|
|
6666
6768
|
constructor() {
|
|
6667
6769
|
super(...arguments), this.disabled = !1, this.icon = "", this.label = "", this.target = "first", this.onClick = () => {
|
|
6668
|
-
this.disabled || this.dispatchEvent(new CustomEvent(
|
|
6770
|
+
this.disabled || this.dispatchEvent(new CustomEvent(m5, {
|
|
6669
6771
|
detail: this.target,
|
|
6670
6772
|
bubbles: !0,
|
|
6671
6773
|
composed: !0
|
|
@@ -6688,32 +6790,32 @@ const P4 = class P4 extends h {
|
|
|
6688
6790
|
`;
|
|
6689
6791
|
}
|
|
6690
6792
|
};
|
|
6691
|
-
|
|
6793
|
+
O4.styles = g`
|
|
6692
6794
|
:host { display: inline-flex; }
|
|
6693
6795
|
`;
|
|
6694
|
-
let
|
|
6796
|
+
let H2 = O4;
|
|
6695
6797
|
K1([
|
|
6696
6798
|
a({ type: Boolean })
|
|
6697
|
-
],
|
|
6698
|
-
class
|
|
6799
|
+
], H2.prototype, "disabled");
|
|
6800
|
+
class h0 extends H2 {
|
|
6699
6801
|
constructor() {
|
|
6700
6802
|
super(...arguments), this.icon = "chevronVerticalLeft", this.label = "Go to first page", this.target = "first";
|
|
6701
6803
|
}
|
|
6702
6804
|
}
|
|
6703
|
-
class
|
|
6805
|
+
class u0 extends H2 {
|
|
6704
6806
|
constructor() {
|
|
6705
6807
|
super(...arguments), this.icon = "chevronVerticalRight", this.label = "Go to last page", this.target = "last";
|
|
6706
6808
|
}
|
|
6707
6809
|
}
|
|
6708
|
-
customElements.get("anduin-pagination") || customElements.define("anduin-pagination",
|
|
6709
|
-
customElements.get("anduin-pagination-first-page") || customElements.define("anduin-pagination-first-page",
|
|
6710
|
-
customElements.get("anduin-pagination-last-page") || customElements.define("anduin-pagination-last-page",
|
|
6711
|
-
const
|
|
6810
|
+
customElements.get("anduin-pagination") || customElements.define("anduin-pagination", m1);
|
|
6811
|
+
customElements.get("anduin-pagination-first-page") || customElements.define("anduin-pagination-first-page", h0);
|
|
6812
|
+
customElements.get("anduin-pagination-last-page") || customElements.define("anduin-pagination-last-page", u0);
|
|
6813
|
+
const I4 = class I4 extends h {
|
|
6712
6814
|
render() {
|
|
6713
6815
|
return s`<div class="timeline"><slot></slot></div>`;
|
|
6714
6816
|
}
|
|
6715
6817
|
};
|
|
6716
|
-
|
|
6818
|
+
I4.styles = g`
|
|
6717
6819
|
:host {
|
|
6718
6820
|
display: block;
|
|
6719
6821
|
}
|
|
@@ -6727,8 +6829,8 @@ F4.styles = g`
|
|
|
6727
6829
|
flex-direction: column;
|
|
6728
6830
|
}
|
|
6729
6831
|
`;
|
|
6730
|
-
let
|
|
6731
|
-
const
|
|
6832
|
+
let b5 = I4;
|
|
6833
|
+
const T4 = class T4 extends h {
|
|
6732
6834
|
render() {
|
|
6733
6835
|
return s`
|
|
6734
6836
|
<div class="item">
|
|
@@ -6738,7 +6840,7 @@ const O4 = class O4 extends h {
|
|
|
6738
6840
|
`;
|
|
6739
6841
|
}
|
|
6740
6842
|
};
|
|
6741
|
-
|
|
6843
|
+
T4.styles = g`
|
|
6742
6844
|
/* Host padding-left: 29px positions the rail so the dot center
|
|
6743
6845
|
* (29 + 7 = 36px from left edge) aligns with the timeline axis. */
|
|
6744
6846
|
:host {
|
|
@@ -6828,13 +6930,13 @@ O4.styles = g`
|
|
|
6828
6930
|
padding-bottom: 0;
|
|
6829
6931
|
}
|
|
6830
6932
|
`;
|
|
6831
|
-
let
|
|
6832
|
-
const
|
|
6933
|
+
let H5 = T4;
|
|
6934
|
+
const N4 = class N4 extends h {
|
|
6833
6935
|
render() {
|
|
6834
6936
|
return s`<div class="date"><slot></slot></div>`;
|
|
6835
6937
|
}
|
|
6836
6938
|
};
|
|
6837
|
-
|
|
6939
|
+
N4.styles = g`
|
|
6838
6940
|
:host {
|
|
6839
6941
|
display: block;
|
|
6840
6942
|
}
|
|
@@ -6846,25 +6948,25 @@ I4.styles = g`
|
|
|
6846
6948
|
color: var(--color-gray-7);
|
|
6847
6949
|
}
|
|
6848
6950
|
`;
|
|
6849
|
-
let
|
|
6850
|
-
const
|
|
6951
|
+
let y5 = N4;
|
|
6952
|
+
const j4 = class j4 extends h {
|
|
6851
6953
|
render() {
|
|
6852
6954
|
return s`<div class="title"><slot></slot></div>`;
|
|
6853
6955
|
}
|
|
6854
6956
|
};
|
|
6855
|
-
|
|
6957
|
+
j4.styles = g`
|
|
6856
6958
|
/* Block-level element inheriting the parent's font size and color. */
|
|
6857
6959
|
:host {
|
|
6858
6960
|
display: block;
|
|
6859
6961
|
}
|
|
6860
6962
|
`;
|
|
6861
|
-
let
|
|
6862
|
-
const
|
|
6963
|
+
let _5 = j4;
|
|
6964
|
+
const U4 = class U4 extends h {
|
|
6863
6965
|
render() {
|
|
6864
6966
|
return s`<div class="group__items"><slot></slot></div>`;
|
|
6865
6967
|
}
|
|
6866
6968
|
};
|
|
6867
|
-
|
|
6969
|
+
U4.styles = g`
|
|
6868
6970
|
:host {
|
|
6869
6971
|
display: block;
|
|
6870
6972
|
}
|
|
@@ -6883,13 +6985,13 @@ N4.styles = g`
|
|
|
6883
6985
|
flex-direction: column;
|
|
6884
6986
|
}
|
|
6885
6987
|
`;
|
|
6886
|
-
let
|
|
6887
|
-
const
|
|
6988
|
+
let L5 = U4;
|
|
6989
|
+
const G4 = class G4 extends h {
|
|
6888
6990
|
render() {
|
|
6889
6991
|
return s`<div class="label-center"><div class="label-pill"><slot></slot></div></div>`;
|
|
6890
6992
|
}
|
|
6891
6993
|
};
|
|
6892
|
-
|
|
6994
|
+
G4.styles = g`
|
|
6893
6995
|
/* Sticky positioning keeps the label visible while scrolling. The gray-0
|
|
6894
6996
|
* background covers content behind it during scroll. z-index: 1 ensures the
|
|
6895
6997
|
* label sits above item dots and rails. */
|
|
@@ -6947,19 +7049,19 @@ j4.styles = g`
|
|
|
6947
7049
|
font-weight: 600;
|
|
6948
7050
|
}
|
|
6949
7051
|
`;
|
|
6950
|
-
let
|
|
6951
|
-
customElements.get("anduin-timeline") || customElements.define("anduin-timeline",
|
|
6952
|
-
customElements.get("anduin-timeline-item") || customElements.define("anduin-timeline-item",
|
|
6953
|
-
customElements.get("anduin-timeline-date") || customElements.define("anduin-timeline-date",
|
|
6954
|
-
customElements.get("anduin-timeline-title") || customElements.define("anduin-timeline-title",
|
|
6955
|
-
customElements.get("anduin-timeline-group") || customElements.define("anduin-timeline-group",
|
|
6956
|
-
customElements.get("anduin-timeline-label") || customElements.define("anduin-timeline-label",
|
|
7052
|
+
let V5 = G4;
|
|
7053
|
+
customElements.get("anduin-timeline") || customElements.define("anduin-timeline", b5);
|
|
7054
|
+
customElements.get("anduin-timeline-item") || customElements.define("anduin-timeline-item", H5);
|
|
7055
|
+
customElements.get("anduin-timeline-date") || customElements.define("anduin-timeline-date", y5);
|
|
7056
|
+
customElements.get("anduin-timeline-title") || customElements.define("anduin-timeline-title", _5);
|
|
7057
|
+
customElements.get("anduin-timeline-group") || customElements.define("anduin-timeline-group", L5);
|
|
7058
|
+
customElements.get("anduin-timeline-label") || customElements.define("anduin-timeline-label", V5);
|
|
6957
7059
|
var g0 = Object.defineProperty, A1 = (r, e, t, o) => {
|
|
6958
7060
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
6959
7061
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
6960
7062
|
return i && g0(e, t, i), i;
|
|
6961
7063
|
};
|
|
6962
|
-
const f0 = "anduin-sidebar:select",
|
|
7064
|
+
const f0 = "anduin-sidebar:select", K4 = class K4 extends h {
|
|
6963
7065
|
connectedCallback() {
|
|
6964
7066
|
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "navigation");
|
|
6965
7067
|
}
|
|
@@ -6967,7 +7069,7 @@ const f0 = "anduin-sidebar:select", U4 = class U4 extends h {
|
|
|
6967
7069
|
return s`<div class="sidebar" part="sidebar"><slot></slot></div>`;
|
|
6968
7070
|
}
|
|
6969
7071
|
};
|
|
6970
|
-
|
|
7072
|
+
K4.styles = g`
|
|
6971
7073
|
:host {
|
|
6972
7074
|
display: flex;
|
|
6973
7075
|
flex-direction: column;
|
|
@@ -6982,13 +7084,13 @@ U4.styles = g`
|
|
|
6982
7084
|
min-height: 0;
|
|
6983
7085
|
}
|
|
6984
7086
|
`;
|
|
6985
|
-
let
|
|
6986
|
-
const
|
|
7087
|
+
let x5 = K4;
|
|
7088
|
+
const W4 = class W4 extends h {
|
|
6987
7089
|
render() {
|
|
6988
7090
|
return s`<div class="sidebar-content" part="content"><slot></slot></div>`;
|
|
6989
7091
|
}
|
|
6990
7092
|
};
|
|
6991
|
-
|
|
7093
|
+
W4.styles = g`
|
|
6992
7094
|
:host {
|
|
6993
7095
|
display: flex;
|
|
6994
7096
|
flex-direction: column;
|
|
@@ -7003,8 +7105,8 @@ G4.styles = g`
|
|
|
7003
7105
|
padding: 12px 16px;
|
|
7004
7106
|
}
|
|
7005
7107
|
`;
|
|
7006
|
-
let
|
|
7007
|
-
const
|
|
7108
|
+
let M5 = W4;
|
|
7109
|
+
const Y4 = class Y4 extends h {
|
|
7008
7110
|
constructor() {
|
|
7009
7111
|
super(...arguments), this.divider = !1;
|
|
7010
7112
|
}
|
|
@@ -7012,7 +7114,7 @@ const K4 = class K4 extends h {
|
|
|
7012
7114
|
return s`<div class="sidebar-header" part="header"><slot></slot></div>`;
|
|
7013
7115
|
}
|
|
7014
7116
|
};
|
|
7015
|
-
|
|
7117
|
+
Y4.styles = g`
|
|
7016
7118
|
:host {
|
|
7017
7119
|
display: block;
|
|
7018
7120
|
flex: 0 0 auto;
|
|
@@ -7023,11 +7125,11 @@ K4.styles = g`
|
|
|
7023
7125
|
border-bottom: 1px solid var(--color-gray-3);
|
|
7024
7126
|
}
|
|
7025
7127
|
`;
|
|
7026
|
-
let
|
|
7128
|
+
let A2 = Y4;
|
|
7027
7129
|
A1([
|
|
7028
7130
|
a({ type: Boolean, reflect: !0 })
|
|
7029
|
-
],
|
|
7030
|
-
const
|
|
7131
|
+
], A2.prototype, "divider");
|
|
7132
|
+
const q4 = class q4 extends h {
|
|
7031
7133
|
constructor() {
|
|
7032
7134
|
super(...arguments), this.divider = !1;
|
|
7033
7135
|
}
|
|
@@ -7035,7 +7137,7 @@ const W4 = class W4 extends h {
|
|
|
7035
7137
|
return s`<div class="sidebar-footer" part="footer"><slot></slot></div>`;
|
|
7036
7138
|
}
|
|
7037
7139
|
};
|
|
7038
|
-
|
|
7140
|
+
q4.styles = g`
|
|
7039
7141
|
:host {
|
|
7040
7142
|
display: block;
|
|
7041
7143
|
flex: 0 0 auto;
|
|
@@ -7046,16 +7148,16 @@ W4.styles = g`
|
|
|
7046
7148
|
border-top: 1px solid var(--color-gray-3);
|
|
7047
7149
|
}
|
|
7048
7150
|
`;
|
|
7049
|
-
let
|
|
7151
|
+
let D2 = q4;
|
|
7050
7152
|
A1([
|
|
7051
7153
|
a({ type: Boolean, reflect: !0 })
|
|
7052
|
-
],
|
|
7053
|
-
const
|
|
7154
|
+
], D2.prototype, "divider");
|
|
7155
|
+
const X4 = class X4 extends h {
|
|
7054
7156
|
render() {
|
|
7055
7157
|
return s`<div class="sidebar-group" part="group" role="group"><slot></slot></div>`;
|
|
7056
7158
|
}
|
|
7057
7159
|
};
|
|
7058
|
-
|
|
7160
|
+
X4.styles = g`
|
|
7059
7161
|
:host {
|
|
7060
7162
|
display: block;
|
|
7061
7163
|
}
|
|
@@ -7065,8 +7167,8 @@ Y4.styles = g`
|
|
|
7065
7167
|
gap: 4px;
|
|
7066
7168
|
}
|
|
7067
7169
|
`;
|
|
7068
|
-
let
|
|
7069
|
-
const
|
|
7170
|
+
let w5 = X4;
|
|
7171
|
+
const J4 = class J4 extends h {
|
|
7070
7172
|
render() {
|
|
7071
7173
|
return s`
|
|
7072
7174
|
<div class="sidebar-group-label" part="group-label">
|
|
@@ -7077,7 +7179,7 @@ const q4 = class q4 extends h {
|
|
|
7077
7179
|
`;
|
|
7078
7180
|
}
|
|
7079
7181
|
};
|
|
7080
|
-
|
|
7182
|
+
J4.styles = g`
|
|
7081
7183
|
:host {
|
|
7082
7184
|
display: block;
|
|
7083
7185
|
}
|
|
@@ -7109,13 +7211,13 @@ q4.styles = g`
|
|
|
7109
7211
|
padding-right: 6px;
|
|
7110
7212
|
}
|
|
7111
7213
|
`;
|
|
7112
|
-
let
|
|
7113
|
-
const
|
|
7214
|
+
let Z5 = J4;
|
|
7215
|
+
const Q4 = class Q4 extends h {
|
|
7114
7216
|
render() {
|
|
7115
7217
|
return s`<div class="sidebar-menu" part="menu"><slot></slot></div>`;
|
|
7116
7218
|
}
|
|
7117
7219
|
};
|
|
7118
|
-
|
|
7220
|
+
Q4.styles = g`
|
|
7119
7221
|
:host {
|
|
7120
7222
|
display: block;
|
|
7121
7223
|
}
|
|
@@ -7125,8 +7227,8 @@ X4.styles = g`
|
|
|
7125
7227
|
gap: 2px;
|
|
7126
7228
|
}
|
|
7127
7229
|
`;
|
|
7128
|
-
let
|
|
7129
|
-
const
|
|
7230
|
+
let k5 = Q4;
|
|
7231
|
+
const e3 = class e3 extends h {
|
|
7130
7232
|
constructor() {
|
|
7131
7233
|
super(...arguments), this.startIcon = "", this.selected = !1, this.disabled = !1, this.href = "", this.openNewTab = !1, this.onClick = (e) => {
|
|
7132
7234
|
if (this.disabled) {
|
|
@@ -7182,7 +7284,7 @@ const J4 = class J4 extends h {
|
|
|
7182
7284
|
`;
|
|
7183
7285
|
}
|
|
7184
7286
|
};
|
|
7185
|
-
|
|
7287
|
+
e3.styles = g`
|
|
7186
7288
|
:host {
|
|
7187
7289
|
display: block;
|
|
7188
7290
|
}
|
|
@@ -7265,7 +7367,7 @@ J4.styles = g`
|
|
|
7265
7367
|
padding-right: 6px;
|
|
7266
7368
|
}
|
|
7267
7369
|
`;
|
|
7268
|
-
let b1 =
|
|
7370
|
+
let b1 = e3;
|
|
7269
7371
|
A1([
|
|
7270
7372
|
a({ attribute: "start-icon" })
|
|
7271
7373
|
], b1.prototype, "startIcon");
|
|
@@ -7281,7 +7383,7 @@ A1([
|
|
|
7281
7383
|
A1([
|
|
7282
7384
|
a({ type: Boolean, attribute: "open-new-tab" })
|
|
7283
7385
|
], b1.prototype, "openNewTab");
|
|
7284
|
-
const
|
|
7386
|
+
const t3 = class t3 extends h {
|
|
7285
7387
|
connectedCallback() {
|
|
7286
7388
|
super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "action");
|
|
7287
7389
|
}
|
|
@@ -7289,7 +7391,7 @@ const Q4 = class Q4 extends h {
|
|
|
7289
7391
|
return s`<div class="sidebar-action" part="action"><slot></slot></div>`;
|
|
7290
7392
|
}
|
|
7291
7393
|
};
|
|
7292
|
-
|
|
7394
|
+
t3.styles = g`
|
|
7293
7395
|
:host {
|
|
7294
7396
|
display: flex;
|
|
7295
7397
|
align-items: center;
|
|
@@ -7299,8 +7401,8 @@ Q4.styles = g`
|
|
|
7299
7401
|
align-items: center;
|
|
7300
7402
|
}
|
|
7301
7403
|
`;
|
|
7302
|
-
let
|
|
7303
|
-
const
|
|
7404
|
+
let R5 = t3;
|
|
7405
|
+
const i3 = class i3 extends h {
|
|
7304
7406
|
connectedCallback() {
|
|
7305
7407
|
super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "badge");
|
|
7306
7408
|
}
|
|
@@ -7308,7 +7410,7 @@ const e3 = class e3 extends h {
|
|
|
7308
7410
|
return s`<div class="sidebar-badge" part="badge"><slot></slot></div>`;
|
|
7309
7411
|
}
|
|
7310
7412
|
};
|
|
7311
|
-
|
|
7413
|
+
i3.styles = g`
|
|
7312
7414
|
:host {
|
|
7313
7415
|
display: flex;
|
|
7314
7416
|
align-items: center;
|
|
@@ -7318,8 +7420,8 @@ e3.styles = g`
|
|
|
7318
7420
|
align-items: center;
|
|
7319
7421
|
}
|
|
7320
7422
|
`;
|
|
7321
|
-
let
|
|
7322
|
-
const
|
|
7423
|
+
let $5 = i3;
|
|
7424
|
+
const o3 = class o3 extends h {
|
|
7323
7425
|
connectedCallback() {
|
|
7324
7426
|
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "separator");
|
|
7325
7427
|
}
|
|
@@ -7327,7 +7429,7 @@ const t3 = class t3 extends h {
|
|
|
7327
7429
|
return s`<div class="sidebar-separator" part="separator"></div>`;
|
|
7328
7430
|
}
|
|
7329
7431
|
};
|
|
7330
|
-
|
|
7432
|
+
o3.styles = g`
|
|
7331
7433
|
:host {
|
|
7332
7434
|
display: block;
|
|
7333
7435
|
}
|
|
@@ -7336,18 +7438,18 @@ t3.styles = g`
|
|
|
7336
7438
|
background-color: var(--color-gray-3);
|
|
7337
7439
|
}
|
|
7338
7440
|
`;
|
|
7339
|
-
let
|
|
7340
|
-
customElements.get("anduin-sidebar") || customElements.define("anduin-sidebar",
|
|
7341
|
-
customElements.get("anduin-sidebar-content") || customElements.define("anduin-sidebar-content",
|
|
7342
|
-
customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header",
|
|
7343
|
-
customElements.get("anduin-sidebar-footer") || customElements.define("anduin-sidebar-footer",
|
|
7344
|
-
customElements.get("anduin-sidebar-group") || customElements.define("anduin-sidebar-group",
|
|
7345
|
-
customElements.get("anduin-sidebar-group-label") || customElements.define("anduin-sidebar-group-label",
|
|
7346
|
-
customElements.get("anduin-sidebar-menu") || customElements.define("anduin-sidebar-menu",
|
|
7441
|
+
let E5 = o3;
|
|
7442
|
+
customElements.get("anduin-sidebar") || customElements.define("anduin-sidebar", x5);
|
|
7443
|
+
customElements.get("anduin-sidebar-content") || customElements.define("anduin-sidebar-content", M5);
|
|
7444
|
+
customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", A2);
|
|
7445
|
+
customElements.get("anduin-sidebar-footer") || customElements.define("anduin-sidebar-footer", D2);
|
|
7446
|
+
customElements.get("anduin-sidebar-group") || customElements.define("anduin-sidebar-group", w5);
|
|
7447
|
+
customElements.get("anduin-sidebar-group-label") || customElements.define("anduin-sidebar-group-label", Z5);
|
|
7448
|
+
customElements.get("anduin-sidebar-menu") || customElements.define("anduin-sidebar-menu", k5);
|
|
7347
7449
|
customElements.get("anduin-sidebar-menu-item") || customElements.define("anduin-sidebar-menu-item", b1);
|
|
7348
|
-
customElements.get("anduin-sidebar-action") || customElements.define("anduin-sidebar-action",
|
|
7349
|
-
customElements.get("anduin-sidebar-badge") || customElements.define("anduin-sidebar-badge",
|
|
7350
|
-
customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator",
|
|
7450
|
+
customElements.get("anduin-sidebar-action") || customElements.define("anduin-sidebar-action", R5);
|
|
7451
|
+
customElements.get("anduin-sidebar-badge") || customElements.define("anduin-sidebar-badge", $5);
|
|
7452
|
+
customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator", E5);
|
|
7351
7453
|
function A(r) {
|
|
7352
7454
|
if (!r) return null;
|
|
7353
7455
|
const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r.trim());
|
|
@@ -7355,7 +7457,7 @@ function A(r) {
|
|
|
7355
7457
|
const [t, o, i] = [Number(e[1]), Number(e[2]), Number(e[3])], n = new Date(t, o - 1, i);
|
|
7356
7458
|
return n.getFullYear() !== t || n.getMonth() !== o - 1 || n.getDate() !== i ? null : n;
|
|
7357
7459
|
}
|
|
7358
|
-
function
|
|
7460
|
+
function L1(r) {
|
|
7359
7461
|
const e = (t) => String(t).padStart(2, "0");
|
|
7360
7462
|
return `${r.getFullYear()}-${e(r.getMonth() + 1)}-${e(r.getDate())}`;
|
|
7361
7463
|
}
|
|
@@ -7363,19 +7465,19 @@ function P1() {
|
|
|
7363
7465
|
const r = /* @__PURE__ */ new Date();
|
|
7364
7466
|
return new Date(r.getFullYear(), r.getMonth(), r.getDate());
|
|
7365
7467
|
}
|
|
7366
|
-
function
|
|
7468
|
+
function c1(r, e) {
|
|
7367
7469
|
const t = r.getFullYear(), o = r.getMonth() + e, i = new Date(t, o + 1, 0).getDate();
|
|
7368
7470
|
return new Date(t, o, Math.min(r.getDate(), i));
|
|
7369
7471
|
}
|
|
7370
7472
|
function v0(r, e) {
|
|
7371
7473
|
return new Date(r, e + 1, 0).getDate();
|
|
7372
7474
|
}
|
|
7373
|
-
var
|
|
7475
|
+
var m0 = Object.defineProperty, e1 = (r, e, t, o) => {
|
|
7374
7476
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
7375
7477
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
7376
|
-
return i &&
|
|
7478
|
+
return i && m0(e, t, i), i;
|
|
7377
7479
|
};
|
|
7378
|
-
const
|
|
7480
|
+
const y2 = "anduin-calendar:change", z5 = "anduin-calendar:day-hover", B3 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], P3 = [
|
|
7379
7481
|
"January",
|
|
7380
7482
|
"February",
|
|
7381
7483
|
"March",
|
|
@@ -7388,7 +7490,7 @@ const H2 = "anduin-calendar:change", k5 = "anduin-calendar:day-hover", A3 = ["Ja
|
|
|
7388
7490
|
"October",
|
|
7389
7491
|
"November",
|
|
7390
7492
|
"December"
|
|
7391
|
-
],
|
|
7493
|
+
], b0 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], F3 = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
|
7392
7494
|
function D1(r, e) {
|
|
7393
7495
|
return new Date(r.getFullYear(), r.getMonth(), r.getDate() + e);
|
|
7394
7496
|
}
|
|
@@ -7396,7 +7498,7 @@ function H0(r) {
|
|
|
7396
7498
|
const e = ["th", "st", "nd", "rd"], t = r % 100;
|
|
7397
7499
|
return `${r}${e[(t - 20) % 10] ?? e[t] ?? e[0]}`;
|
|
7398
7500
|
}
|
|
7399
|
-
const
|
|
7501
|
+
const n3 = class n3 extends h {
|
|
7400
7502
|
constructor() {
|
|
7401
7503
|
super(...arguments), this.value = "", this.minDate = "", this.maxDate = "", this.rangeStart = "", this.rangeEnd = "", this.rangeMode = !1, this._viewMonth = P1().getMonth(), this._viewYear = P1().getFullYear(), this._focus = "", this._openSelect = null, this._viewSeeded = !1, this._pendingFocus = !1, this._onOutsideClick = (e) => {
|
|
7402
7504
|
this._openSelect && !e.composedPath().includes(this) && (this._openSelect = null);
|
|
@@ -7444,13 +7546,13 @@ const i3 = class i3 extends h {
|
|
|
7444
7546
|
}
|
|
7445
7547
|
// ── Navigation ──────────────────────────────────────────────────
|
|
7446
7548
|
_shiftMonth(e) {
|
|
7447
|
-
const t =
|
|
7549
|
+
const t = c1(new Date(this._viewYear, this._viewMonth, 1), e);
|
|
7448
7550
|
this._viewYear = t.getFullYear(), this._viewMonth = t.getMonth(), this._viewSeeded = !0;
|
|
7449
7551
|
}
|
|
7450
7552
|
/** Move the roving focus, pulling the displayed month along with it. */
|
|
7451
7553
|
_moveFocus(e, t) {
|
|
7452
7554
|
const o = this._clamp(t);
|
|
7453
|
-
this._isDisabled(o) || (this._focus =
|
|
7555
|
+
this._isDisabled(o) || (this._focus = L1(o), (o.getMonth() !== e.getMonth() || o.getFullYear() !== e.getFullYear()) && (this._viewYear = o.getFullYear(), this._viewMonth = o.getMonth(), this._viewSeeded = !0), this._pendingFocus = !0);
|
|
7454
7556
|
}
|
|
7455
7557
|
_onGridKeyDown(e) {
|
|
7456
7558
|
const t = A(this._focus) ?? this._defaultFocusDate();
|
|
@@ -7458,16 +7560,16 @@ const i3 = class i3 extends h {
|
|
|
7458
7560
|
// Shift turns the horizontal arrows into month steps and the vertical
|
|
7459
7561
|
// ones into year steps.
|
|
7460
7562
|
case "ArrowLeft":
|
|
7461
|
-
this._moveFocus(t, e.shiftKey ?
|
|
7563
|
+
this._moveFocus(t, e.shiftKey ? c1(t, -1) : D1(t, -1));
|
|
7462
7564
|
break;
|
|
7463
7565
|
case "ArrowRight":
|
|
7464
|
-
this._moveFocus(t, e.shiftKey ?
|
|
7566
|
+
this._moveFocus(t, e.shiftKey ? c1(t, 1) : D1(t, 1));
|
|
7465
7567
|
break;
|
|
7466
7568
|
case "ArrowUp":
|
|
7467
|
-
this._moveFocus(t, e.shiftKey ?
|
|
7569
|
+
this._moveFocus(t, e.shiftKey ? c1(t, -12) : D1(t, -7));
|
|
7468
7570
|
break;
|
|
7469
7571
|
case "ArrowDown":
|
|
7470
|
-
this._moveFocus(t, e.shiftKey ?
|
|
7572
|
+
this._moveFocus(t, e.shiftKey ? c1(t, 12) : D1(t, 7));
|
|
7471
7573
|
break;
|
|
7472
7574
|
case "Home":
|
|
7473
7575
|
this._moveFocus(t, D1(t, -t.getDay()));
|
|
@@ -7476,10 +7578,10 @@ const i3 = class i3 extends h {
|
|
|
7476
7578
|
this._moveFocus(t, D1(t, 6 - t.getDay()));
|
|
7477
7579
|
break;
|
|
7478
7580
|
case "PageUp":
|
|
7479
|
-
this._moveFocus(t,
|
|
7581
|
+
this._moveFocus(t, c1(t, e.shiftKey ? -12 : -1));
|
|
7480
7582
|
break;
|
|
7481
7583
|
case "PageDown":
|
|
7482
|
-
this._moveFocus(t,
|
|
7584
|
+
this._moveFocus(t, c1(t, e.shiftKey ? 12 : 1));
|
|
7483
7585
|
break;
|
|
7484
7586
|
case "Enter":
|
|
7485
7587
|
case " ":
|
|
@@ -7492,11 +7594,11 @@ const i3 = class i3 extends h {
|
|
|
7492
7594
|
}
|
|
7493
7595
|
// ── Selection ───────────────────────────────────────────────────
|
|
7494
7596
|
_pick(e) {
|
|
7495
|
-
const t =
|
|
7496
|
-
this.value = t, this._focus = t, this.dispatchEvent(new CustomEvent(
|
|
7597
|
+
const t = L1(e);
|
|
7598
|
+
this.value = t, this._focus = t, this.dispatchEvent(new CustomEvent(y2, { detail: t, bubbles: !0, composed: !0 }));
|
|
7497
7599
|
}
|
|
7498
7600
|
_emitHover(e) {
|
|
7499
|
-
this.dispatchEvent(new CustomEvent(
|
|
7601
|
+
this.dispatchEvent(new CustomEvent(z5, { detail: e, bubbles: !0, composed: !0 }));
|
|
7500
7602
|
}
|
|
7501
7603
|
/** The day that owns `tabindex="0"` when nothing has been focused yet. */
|
|
7502
7604
|
_defaultFocusDate() {
|
|
@@ -7555,15 +7657,15 @@ const i3 = class i3 extends h {
|
|
|
7555
7657
|
}
|
|
7556
7658
|
// ── Render ──────────────────────────────────────────────────────
|
|
7557
7659
|
render() {
|
|
7558
|
-
const e =
|
|
7660
|
+
const e = L1(P1()), t = A(this.value), o = A(this.rangeStart), i = A(this.rangeEnd), n = this.rangeMode || !!(o || i), l = L1(this._defaultFocusDate()), d = new Date(this._viewYear, this._viewMonth, 1), c = new Date(this._viewYear, this._viewMonth + 1, 0).getDate(), C = d.getDay(), p = [
|
|
7559
7661
|
...Array.from({ length: C }, () => null),
|
|
7560
7662
|
...Array.from({ length: c }, (_, v) => v + 1)
|
|
7561
7663
|
];
|
|
7562
7664
|
for (; p.length % 7 !== 0; ) p.push(null);
|
|
7563
|
-
const f = Array.from({ length: p.length / 7 }, (_, v) => p.slice(v * 7, v * 7 + 7)),
|
|
7665
|
+
const f = Array.from({ length: p.length / 7 }, (_, v) => p.slice(v * 7, v * 7 + 7)), b = `${P3[this._viewMonth]} ${this._viewYear}`, m = (() => {
|
|
7564
7666
|
const _ = this._min;
|
|
7565
7667
|
return _ ? new Date(this._viewYear, this._viewMonth, 0).getTime() < _.getTime() : !1;
|
|
7566
|
-
})(),
|
|
7668
|
+
})(), V = (() => {
|
|
7567
7669
|
const _ = this._max;
|
|
7568
7670
|
return _ ? new Date(this._viewYear, this._viewMonth + 1, 1).getTime() > _.getTime() : !1;
|
|
7569
7671
|
})();
|
|
@@ -7575,15 +7677,15 @@ const i3 = class i3 extends h {
|
|
|
7575
7677
|
size="small"
|
|
7576
7678
|
start-icon="chevronLeft"
|
|
7577
7679
|
label="Previous month"
|
|
7578
|
-
?disabled=${
|
|
7680
|
+
?disabled=${m}
|
|
7579
7681
|
@click=${() => this._shiftMonth(-1)}
|
|
7580
7682
|
></anduin-button>
|
|
7581
7683
|
<div class="calendar__header-spacer"></div>
|
|
7582
7684
|
${this._renderSelect(
|
|
7583
7685
|
"month",
|
|
7584
|
-
|
|
7686
|
+
B3[this._viewMonth],
|
|
7585
7687
|
"Choose the month",
|
|
7586
|
-
|
|
7688
|
+
B3.map((_, v) => ({ value: v, label: _, selected: v === this._viewMonth })),
|
|
7587
7689
|
(_) => this._selectMonth(_)
|
|
7588
7690
|
)}
|
|
7589
7691
|
${this._renderSelect(
|
|
@@ -7599,7 +7701,7 @@ const i3 = class i3 extends h {
|
|
|
7599
7701
|
size="small"
|
|
7600
7702
|
start-icon="chevronRight"
|
|
7601
7703
|
label="Next month"
|
|
7602
|
-
?disabled=${
|
|
7704
|
+
?disabled=${V}
|
|
7603
7705
|
@click=${() => this._shiftMonth(1)}
|
|
7604
7706
|
></anduin-button>
|
|
7605
7707
|
</div>
|
|
@@ -7609,14 +7711,14 @@ const i3 = class i3 extends h {
|
|
|
7609
7711
|
part="grid"
|
|
7610
7712
|
role="grid"
|
|
7611
7713
|
aria-multiselectable="false"
|
|
7612
|
-
aria-label="${
|
|
7714
|
+
aria-label="${b}"
|
|
7613
7715
|
@keydown=${this._onGridKeyDown}
|
|
7614
7716
|
@mouseleave=${() => this._emitHover(null)}
|
|
7615
7717
|
>
|
|
7616
7718
|
<thead aria-hidden="true">
|
|
7617
7719
|
<tr>
|
|
7618
|
-
${
|
|
7619
|
-
<th class="calendar__day-header" aria-label="${
|
|
7720
|
+
${b0.map((_, v) => s`
|
|
7721
|
+
<th class="calendar__day-header" aria-label="${F3[v]}">${_}</th>
|
|
7620
7722
|
`)}
|
|
7621
7723
|
</tr>
|
|
7622
7724
|
</thead>
|
|
@@ -7625,40 +7727,40 @@ const i3 = class i3 extends h {
|
|
|
7625
7727
|
<tr>
|
|
7626
7728
|
${_.map((v) => {
|
|
7627
7729
|
if (v === null) return s`<td class="calendar__day-cell"></td>`;
|
|
7628
|
-
const x = new Date(this._viewYear, this._viewMonth, v), M =
|
|
7730
|
+
const x = new Date(this._viewYear, this._viewMonth, v), M = L1(x), S = x.getTime(), U = this._isDisabled(x), Y1 = !!o && S === o.getTime(), t1 = !!i && S === i.getTime(), c3 = !!o && !!i && S > o.getTime() && S < i.getTime(), C3 = !n && !!t && S === t.getTime(), ve = [
|
|
7629
7731
|
"calendar__day-cell",
|
|
7630
|
-
|
|
7732
|
+
c3 ? "calendar__day-cell--in-range" : "",
|
|
7631
7733
|
// Only tint the edge cell when it actually opens a span —
|
|
7632
7734
|
// a lone start marker shouldn't paint a half-rounded block.
|
|
7633
7735
|
Y1 && i ? "calendar__day-cell--range-start" : "",
|
|
7634
7736
|
t1 && o ? "calendar__day-cell--range-end" : ""
|
|
7635
|
-
].filter(Boolean).join(" "),
|
|
7737
|
+
].filter(Boolean).join(" "), me = [
|
|
7636
7738
|
"calendar__day-button",
|
|
7637
7739
|
M === e ? "calendar__day-button--today" : "",
|
|
7638
|
-
|
|
7740
|
+
C3 ? "calendar__day-button--selected" : "",
|
|
7639
7741
|
Y1 ? "calendar__day-button--range-start" : "",
|
|
7640
7742
|
t1 ? "calendar__day-button--range-end" : "",
|
|
7641
|
-
|
|
7642
|
-
|
|
7743
|
+
c3 ? "calendar__day-button--in-range" : "",
|
|
7744
|
+
U ? "calendar__day-button--disabled" : ""
|
|
7643
7745
|
].filter(Boolean).join(" ");
|
|
7644
7746
|
return s`
|
|
7645
7747
|
<td
|
|
7646
|
-
class="${
|
|
7748
|
+
class="${ve}"
|
|
7647
7749
|
role="gridcell"
|
|
7648
|
-
aria-selected="${
|
|
7750
|
+
aria-selected="${C3 || Y1 || t1}"
|
|
7649
7751
|
>
|
|
7650
7752
|
<button
|
|
7651
7753
|
type="button"
|
|
7652
|
-
class="${
|
|
7754
|
+
class="${me}"
|
|
7653
7755
|
part="day"
|
|
7654
|
-
aria-disabled="${
|
|
7655
|
-
aria-label="${
|
|
7756
|
+
aria-disabled="${U}"
|
|
7757
|
+
aria-label="${F3[x.getDay()]}, ${P3[x.getMonth()]} ${H0(v)}, ${x.getFullYear()}"
|
|
7656
7758
|
tabindex="${M === l ? 0 : -1}"
|
|
7657
7759
|
@click=${() => {
|
|
7658
|
-
|
|
7760
|
+
U || this._pick(x);
|
|
7659
7761
|
}}
|
|
7660
7762
|
@mouseenter=${() => {
|
|
7661
|
-
|
|
7763
|
+
U || this._emitHover(M);
|
|
7662
7764
|
}}
|
|
7663
7765
|
>${v}</button>
|
|
7664
7766
|
</td>
|
|
@@ -7672,7 +7774,7 @@ const i3 = class i3 extends h {
|
|
|
7672
7774
|
`;
|
|
7673
7775
|
}
|
|
7674
7776
|
};
|
|
7675
|
-
|
|
7777
|
+
n3.styles = g`
|
|
7676
7778
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
7677
7779
|
|
|
7678
7780
|
.calendar { display: flex; flex-direction: column; font-family: inherit; font-size: 13px; }
|
|
@@ -7767,7 +7869,7 @@ i3.styles = g`
|
|
|
7767
7869
|
.calendar__day-button--in-range { color: var(--color-primary-7, var(--color-primary-5)); }
|
|
7768
7870
|
.calendar__day-button--in-range:hover { background-color: var(--color-primary-2); }
|
|
7769
7871
|
`;
|
|
7770
|
-
let T =
|
|
7872
|
+
let T = n3;
|
|
7771
7873
|
e1([
|
|
7772
7874
|
a({ reflect: !0 })
|
|
7773
7875
|
], T.prototype, "value");
|
|
@@ -7804,7 +7906,7 @@ var y0 = Object.defineProperty, W1 = (r, e, t, o) => {
|
|
|
7804
7906
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
7805
7907
|
return i && y0(e, t, i), i;
|
|
7806
7908
|
};
|
|
7807
|
-
const _0 = "anduin-date-range:change",
|
|
7909
|
+
const _0 = "anduin-date-range:change", r3 = class r3 extends h {
|
|
7808
7910
|
constructor() {
|
|
7809
7911
|
super(...arguments), this.startDate = "", this.endDate = "", this.minDate = "", this.maxDate = "", this._anchor = null, this._hover = null, this._panels = /* @__PURE__ */ new Map(), this._pushedValue = /* @__PURE__ */ new Map(), this._onCalendarChange = (e) => {
|
|
7810
7912
|
e.stopPropagation();
|
|
@@ -7825,10 +7927,10 @@ const _0 = "anduin-date-range:change", o3 = class o3 extends h {
|
|
|
7825
7927
|
};
|
|
7826
7928
|
}
|
|
7827
7929
|
connectedCallback() {
|
|
7828
|
-
super.connectedCallback(), this.addEventListener(
|
|
7930
|
+
super.connectedCallback(), this.addEventListener(y2, this._onCalendarChange), this.addEventListener(z5, this._onCalendarHover);
|
|
7829
7931
|
}
|
|
7830
7932
|
disconnectedCallback() {
|
|
7831
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
7933
|
+
super.disconnectedCallback(), this.removeEventListener(y2, this._onCalendarChange), this.removeEventListener(z5, this._onCalendarHover);
|
|
7832
7934
|
}
|
|
7833
7935
|
updated() {
|
|
7834
7936
|
this._sync();
|
|
@@ -7857,7 +7959,7 @@ const _0 = "anduin-date-range:change", o3 = class o3 extends h {
|
|
|
7857
7959
|
* after it on the right. Falls back to today when there's no range yet. */
|
|
7858
7960
|
_panelValue(e) {
|
|
7859
7961
|
const t = A(this.startDate) ?? P1();
|
|
7860
|
-
return
|
|
7962
|
+
return L1(e === "start" ? t : c1(t, 1));
|
|
7861
7963
|
}
|
|
7862
7964
|
/** The range the calendars should paint — the live preview while selecting,
|
|
7863
7965
|
* otherwise the committed range. */
|
|
@@ -7875,10 +7977,10 @@ const _0 = "anduin-date-range:change", o3 = class o3 extends h {
|
|
|
7875
7977
|
return s`<div class="date-range" part="date-range"><slot></slot></div>`;
|
|
7876
7978
|
}
|
|
7877
7979
|
};
|
|
7878
|
-
|
|
7980
|
+
r3.styles = g`
|
|
7879
7981
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
7880
7982
|
`;
|
|
7881
|
-
let Q =
|
|
7983
|
+
let Q = r3;
|
|
7882
7984
|
W1([
|
|
7883
7985
|
a({ attribute: "start-date", reflect: !0 })
|
|
7884
7986
|
], Q.prototype, "startDate");
|
|
@@ -7897,7 +7999,7 @@ W1([
|
|
|
7897
7999
|
W1([
|
|
7898
8000
|
H()
|
|
7899
8001
|
], Q.prototype, "_hover");
|
|
7900
|
-
const
|
|
8002
|
+
const l3 = class l3 extends h {
|
|
7901
8003
|
constructor() {
|
|
7902
8004
|
super(...arguments), this._host = null;
|
|
7903
8005
|
}
|
|
@@ -7926,21 +8028,21 @@ const n3 = class n3 extends h {
|
|
|
7926
8028
|
return s`<anduin-calendar part="calendar" range-mode></anduin-calendar>`;
|
|
7927
8029
|
}
|
|
7928
8030
|
};
|
|
7929
|
-
|
|
8031
|
+
l3.styles = g`
|
|
7930
8032
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
7931
8033
|
`;
|
|
7932
|
-
let
|
|
7933
|
-
class
|
|
8034
|
+
let B2 = l3;
|
|
8035
|
+
class L0 extends B2 {
|
|
7934
8036
|
constructor() {
|
|
7935
8037
|
super(...arguments), this.panelRole = "start";
|
|
7936
8038
|
}
|
|
7937
8039
|
}
|
|
7938
|
-
class
|
|
8040
|
+
class V0 extends B2 {
|
|
7939
8041
|
constructor() {
|
|
7940
8042
|
super(...arguments), this.panelRole = "end";
|
|
7941
8043
|
}
|
|
7942
8044
|
}
|
|
7943
|
-
const
|
|
8045
|
+
const a3 = class a3 extends h {
|
|
7944
8046
|
render() {
|
|
7945
8047
|
return s`
|
|
7946
8048
|
<div class="date-range-default" part="layout">
|
|
@@ -7950,30 +8052,30 @@ const r3 = class r3 extends h {
|
|
|
7950
8052
|
`;
|
|
7951
8053
|
}
|
|
7952
8054
|
};
|
|
7953
|
-
|
|
8055
|
+
a3.styles = g`
|
|
7954
8056
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
7955
8057
|
|
|
7956
8058
|
.date-range-default { display: flex; flex-direction: row; gap: 16px; }
|
|
7957
8059
|
`;
|
|
7958
|
-
let
|
|
8060
|
+
let S5 = a3;
|
|
7959
8061
|
customElements.get("anduin-date-range") || customElements.define("anduin-date-range", Q);
|
|
7960
|
-
customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default",
|
|
7961
|
-
customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start",
|
|
7962
|
-
customElements.get("anduin-date-range-end") || customElements.define("anduin-date-range-end",
|
|
8062
|
+
customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", S5);
|
|
8063
|
+
customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", L0);
|
|
8064
|
+
customElements.get("anduin-date-range-end") || customElements.define("anduin-date-range-end", V0);
|
|
7963
8065
|
var x0 = Object.defineProperty, O = (r, e, t, o) => {
|
|
7964
8066
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
7965
8067
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
7966
8068
|
return i && x0(e, t, i), i;
|
|
7967
8069
|
};
|
|
7968
|
-
const
|
|
8070
|
+
const A5 = "anduin-date-input:change", O3 = { M: "month", d: "day", y: "year" };
|
|
7969
8071
|
function M0(r) {
|
|
7970
8072
|
const e = [];
|
|
7971
8073
|
let t = 0, o = 0;
|
|
7972
8074
|
for (; o < r.length; ) {
|
|
7973
|
-
const i = r[o], n =
|
|
8075
|
+
const i = r[o], n = O3[i];
|
|
7974
8076
|
if (!n) {
|
|
7975
8077
|
let d = "";
|
|
7976
|
-
for (; o < r.length && !
|
|
8078
|
+
for (; o < r.length && !O3[r[o]]; ) d += r[o++];
|
|
7977
8079
|
e.push({ literal: d }), t += d.length;
|
|
7978
8080
|
continue;
|
|
7979
8081
|
}
|
|
@@ -7983,10 +8085,10 @@ function M0(r) {
|
|
|
7983
8085
|
}
|
|
7984
8086
|
return e;
|
|
7985
8087
|
}
|
|
7986
|
-
function
|
|
8088
|
+
function e5(r) {
|
|
7987
8089
|
return r.type === "year" ? 10 ** r.length - 1 : r.length === 1 ? 9 : r.type === "month" ? 12 : 31;
|
|
7988
8090
|
}
|
|
7989
|
-
const J1 = 1,
|
|
8091
|
+
const J1 = 1, O2 = class O2 extends h {
|
|
7990
8092
|
constructor() {
|
|
7991
8093
|
super(...arguments), this.format = "MM/dd/yyyy", this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.status = "", this.startIcon = "", this.minDate = "", this.maxDate = "", this.inputid = "", this._digits = [], this._active = 0, this._buffer = "", this._pendingSelection = null, this._tokens = [], this._segments = [], this._onFieldLabelClick = (e) => {
|
|
7992
8094
|
const t = e.detail;
|
|
@@ -8039,7 +8141,7 @@ const J1 = 1, B2 = class B2 extends h {
|
|
|
8039
8141
|
return;
|
|
8040
8142
|
}
|
|
8041
8143
|
const o = this._clampToBounds(e);
|
|
8042
|
-
this._digits = o, this.value = this._composeValue(), this.dispatchEvent(new CustomEvent(
|
|
8144
|
+
this._digits = o, this.value = this._composeValue(), this.dispatchEvent(new CustomEvent(A5, {
|
|
8043
8145
|
detail: this.value,
|
|
8044
8146
|
bubbles: !0,
|
|
8045
8147
|
composed: !0
|
|
@@ -8057,14 +8159,14 @@ const J1 = 1, B2 = class B2 extends h {
|
|
|
8057
8159
|
if (!t && !o) return e;
|
|
8058
8160
|
const i = this._indexOfType("month"), n = this._indexOfType("day"), l = this._indexOfType("year");
|
|
8059
8161
|
if (i < 0 || n < 0 || l < 0) return e;
|
|
8060
|
-
const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C, v0(d, c - 1)), f = new Date(d, c - 1, p),
|
|
8061
|
-
if (!
|
|
8162
|
+
const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C, v0(d, c - 1)), f = new Date(d, c - 1, p), b = t && f.getTime() < t.getTime() ? t : o && f.getTime() > o.getTime() ? o : null;
|
|
8163
|
+
if (!b) {
|
|
8062
8164
|
if (p === C) return e;
|
|
8063
|
-
const
|
|
8064
|
-
return
|
|
8165
|
+
const V = [...e];
|
|
8166
|
+
return V[n] = String(p).padStart(this._segments[n].length, "0"), V;
|
|
8065
8167
|
}
|
|
8066
|
-
const
|
|
8067
|
-
return
|
|
8168
|
+
const m = [...e];
|
|
8169
|
+
return m[l] = String(b.getFullYear()).padStart(this._segments[l].length, "0").slice(-this._segments[l].length), m[i] = String(b.getMonth() + 1).padStart(this._segments[i].length, "0"), m[n] = String(b.getDate()).padStart(this._segments[n].length, "0"), m;
|
|
8068
8170
|
}
|
|
8069
8171
|
// ── Selection ───────────────────────────────────────────────────
|
|
8070
8172
|
_focusSegment(e) {
|
|
@@ -8096,7 +8198,7 @@ const J1 = 1, B2 = class B2 extends h {
|
|
|
8096
8198
|
_writeSegment(e, t) {
|
|
8097
8199
|
const o = this._segments[e];
|
|
8098
8200
|
if (!o) return;
|
|
8099
|
-
const i = Math.min(Math.max(Number(t), J1),
|
|
8201
|
+
const i = Math.min(Math.max(Number(t), J1), e5(o)), n = [...this._digits];
|
|
8100
8202
|
n[e] = String(i).padStart(o.length, "0"), this._buffer = "", this._setDigits(n);
|
|
8101
8203
|
}
|
|
8102
8204
|
/** Commit any half-typed digits so they aren't stranded on blur or navigation. */
|
|
@@ -8115,7 +8217,7 @@ const J1 = 1, B2 = class B2 extends h {
|
|
|
8115
8217
|
return;
|
|
8116
8218
|
}
|
|
8117
8219
|
const l = Number(i.padEnd(o.length, "0")), d = Number(i.padEnd(o.length, "9"));
|
|
8118
|
-
if (l >
|
|
8220
|
+
if (l > e5(o) || d < J1) {
|
|
8119
8221
|
this._commitBuffer(t, i, !0);
|
|
8120
8222
|
return;
|
|
8121
8223
|
}
|
|
@@ -8124,7 +8226,7 @@ const J1 = 1, B2 = class B2 extends h {
|
|
|
8124
8226
|
_step(e) {
|
|
8125
8227
|
const t = this._active, o = this._segments[t];
|
|
8126
8228
|
if (!o) return;
|
|
8127
|
-
const i =
|
|
8229
|
+
const i = e5(o), n = this._digits[t];
|
|
8128
8230
|
let l;
|
|
8129
8231
|
n === null ? l = e > 0 ? J1 : i : (l = Number(n) + e, l > i && (l = J1), l < J1 && (l = i));
|
|
8130
8232
|
const d = [...this._digits];
|
|
@@ -8202,7 +8304,7 @@ const J1 = 1, B2 = class B2 extends h {
|
|
|
8202
8304
|
`;
|
|
8203
8305
|
}
|
|
8204
8306
|
};
|
|
8205
|
-
|
|
8307
|
+
O2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, O2.styles = g`
|
|
8206
8308
|
:host { display: block; font-family: var(--font-sans); }
|
|
8207
8309
|
|
|
8208
8310
|
.date-input-container { position: relative; display: flex; align-items: center; }
|
|
@@ -8253,7 +8355,7 @@ B2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, B2.styles
|
|
|
8253
8355
|
.date-input--warning { border-color: var(--color-warning-4); }
|
|
8254
8356
|
.date-input--loading { border-color: var(--color-gray-4); }
|
|
8255
8357
|
`;
|
|
8256
|
-
let $ =
|
|
8358
|
+
let $ = O2;
|
|
8257
8359
|
O([
|
|
8258
8360
|
a()
|
|
8259
8361
|
], $.prototype, "format");
|
|
@@ -8302,13 +8404,13 @@ var w0 = Object.defineProperty, I = (r, e, t, o) => {
|
|
|
8302
8404
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8303
8405
|
return i && w0(e, t, i), i;
|
|
8304
8406
|
};
|
|
8305
|
-
const Z0 = "anduin-date-picker:change",
|
|
8407
|
+
const Z0 = "anduin-date-picker:change", fe = { M: "month", d: "day", y: "year" };
|
|
8306
8408
|
function k0(r, e) {
|
|
8307
8409
|
if (!r) return null;
|
|
8308
8410
|
const t = {};
|
|
8309
8411
|
let o = 0, i = 0;
|
|
8310
8412
|
for (; i < e.length; ) {
|
|
8311
|
-
const d = e[i], c =
|
|
8413
|
+
const d = e[i], c = fe[d];
|
|
8312
8414
|
if (!c) {
|
|
8313
8415
|
i++, o++;
|
|
8314
8416
|
continue;
|
|
@@ -8332,7 +8434,7 @@ function R0(r, e) {
|
|
|
8332
8434
|
};
|
|
8333
8435
|
let o = "", i = 0;
|
|
8334
8436
|
for (; i < e.length; ) {
|
|
8335
|
-
const n = e[i], l =
|
|
8437
|
+
const n = e[i], l = fe[n];
|
|
8336
8438
|
if (!l) {
|
|
8337
8439
|
o += n, i++;
|
|
8338
8440
|
continue;
|
|
@@ -8344,7 +8446,7 @@ function R0(r, e) {
|
|
|
8344
8446
|
}
|
|
8345
8447
|
return o;
|
|
8346
8448
|
}
|
|
8347
|
-
const
|
|
8449
|
+
const s3 = class s3 extends h {
|
|
8348
8450
|
constructor() {
|
|
8349
8451
|
super(...arguments), this.format = "MM/dd/yyyy", this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.status = "", this.startIcon = "", this.minDate = "", this.maxDate = "", this.placement = "bottom-start", this.inputid = "", this._open = !1, this._onPopoverOpenChange = (e) => {
|
|
8350
8452
|
e.stopPropagation(), this._open = e.detail;
|
|
@@ -8362,10 +8464,10 @@ const l3 = class l3 extends h {
|
|
|
8362
8464
|
};
|
|
8363
8465
|
}
|
|
8364
8466
|
connectedCallback() {
|
|
8365
|
-
super.connectedCallback(), this.addEventListener(
|
|
8467
|
+
super.connectedCallback(), this.addEventListener(A5, this._onInputChange), this.addEventListener(y2, this._onCalendarChange), this.addEventListener(C5, this._onPopoverOpenChange), this.addEventListener("keydown", this._onKeyDown);
|
|
8366
8468
|
}
|
|
8367
8469
|
disconnectedCallback() {
|
|
8368
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
8470
|
+
super.disconnectedCallback(), this.removeEventListener(A5, this._onInputChange), this.removeEventListener(y2, this._onCalendarChange), this.removeEventListener(C5, this._onPopoverOpenChange), this.removeEventListener("keydown", this._onKeyDown);
|
|
8369
8471
|
}
|
|
8370
8472
|
_closePopover() {
|
|
8371
8473
|
this._popoverEl && (this._popoverEl.open = !1), this._open = !1;
|
|
@@ -8377,7 +8479,7 @@ const l3 = class l3 extends h {
|
|
|
8377
8479
|
/** ISO form of the value, for driving the calendar. */
|
|
8378
8480
|
get _isoValue() {
|
|
8379
8481
|
const e = this._date;
|
|
8380
|
-
return e ?
|
|
8482
|
+
return e ? L1(e) : "";
|
|
8381
8483
|
}
|
|
8382
8484
|
_emit(e) {
|
|
8383
8485
|
this.value = e, this.dispatchEvent(new CustomEvent(Z0, {
|
|
@@ -8420,7 +8522,7 @@ const l3 = class l3 extends h {
|
|
|
8420
8522
|
`;
|
|
8421
8523
|
}
|
|
8422
8524
|
};
|
|
8423
|
-
|
|
8525
|
+
s3.styles = g`
|
|
8424
8526
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8425
8527
|
|
|
8426
8528
|
.datepicker { display: block; }
|
|
@@ -8430,7 +8532,7 @@ l3.styles = g`
|
|
|
8430
8532
|
/* The popover contributes 8px; the calendar reads better with 16px total. */
|
|
8431
8533
|
.datepicker__panel { padding: 8px; display: flex; flex-direction: column; }
|
|
8432
8534
|
`;
|
|
8433
|
-
let E =
|
|
8535
|
+
let E = s3;
|
|
8434
8536
|
I([
|
|
8435
8537
|
a()
|
|
8436
8538
|
], E.prototype, "format");
|
|
@@ -8474,12 +8576,12 @@ I([
|
|
|
8474
8576
|
z("anduin-popover")
|
|
8475
8577
|
], E.prototype, "_popoverEl");
|
|
8476
8578
|
customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker", E);
|
|
8477
|
-
var $0 = Object.defineProperty,
|
|
8579
|
+
var $0 = Object.defineProperty, L = (r, e, t, o) => {
|
|
8478
8580
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
8479
8581
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8480
8582
|
return i && $0(e, t, i), i;
|
|
8481
8583
|
};
|
|
8482
|
-
const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-table:row-click", A0 = "anduin-table:selection-change", D0 = "anduin-table:cell-context-menu", B0 = "anduin-table:row-expand", P0 = "anduin-table:row-collapse", F0 = "anduin-table:group-toggle",
|
|
8584
|
+
const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-table:row-click", A0 = "anduin-table:selection-change", D0 = "anduin-table:cell-context-menu", B0 = "anduin-table:row-expand", P0 = "anduin-table:row-collapse", F0 = "anduin-table:group-toggle", I3 = "anduin-table:column-resize", T3 = 40, i1 = (r) => r.type === "selection", d1 = (r, e) => {
|
|
8483
8585
|
if (!e) return;
|
|
8484
8586
|
let t = r;
|
|
8485
8587
|
for (const o of e.split(".")) {
|
|
@@ -8487,7 +8589,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8487
8589
|
t = t[o];
|
|
8488
8590
|
}
|
|
8489
8591
|
return t;
|
|
8490
|
-
}, O0 = (r, e) => r === e ? 0 : r == null ? 1 : e == null ? -1 : typeof r == "number" && typeof e == "number" ? r - e : typeof r == "boolean" && typeof e == "boolean" ? Number(r) - Number(e) : r instanceof Date && e instanceof Date ? r.getTime() - e.getTime() : String(r).localeCompare(String(e), void 0, { numeric: !0, sensitivity: "base" }),
|
|
8592
|
+
}, O0 = (r, e) => r === e ? 0 : r == null ? 1 : e == null ? -1 : typeof r == "number" && typeof e == "number" ? r - e : typeof r == "boolean" && typeof e == "boolean" ? Number(r) - Number(e) : r instanceof Date && e instanceof Date ? r.getTime() - e.getTime() : String(r).localeCompare(String(e), void 0, { numeric: !0, sensitivity: "base" }), d3 = class d3 extends h {
|
|
8491
8593
|
constructor() {
|
|
8492
8594
|
super(...arguments), this.columns = [], this.data = [], this.layout = "fit-data", this.renderMode = "basic", this.rowHeight = 40, this.height = "", this.maxHeight = "", this.minHeight = "", this.resizableColumns = !0, this.hideHeader = !1, this.loading = !1, this.selectable = "clickable", this.indexColumn = "id", this.columnAlign = "left", this.columnVerticalAlign = "middle", this.sortField = "", this.sortDirection = "asc", this.dataTree = !1, this.treeChildrenField = "children", this.treeChildIndent = 20, this.groupBy = "", this.selectedRows = [], this.expandedKeys = /* @__PURE__ */ new Set(), this.collapsedGroups = /* @__PURE__ */ new Set(), this.virtualScrollTop = 0, this.viewportHeight = 0, this.scrolledX = !1, this.scrollableXEnd = !1, this.resizedWidths = {}, this.resizingKey = "", this.rangeAnchorKey = null, this.isDraggingRange = !1, this.dragBaseKeys = [], this.dragSelects = !0, this.autoExpandedKeys = /* @__PURE__ */ new Set(), this.resizeDrag = null, this.resizeFrame = 0, this.renderSelectedKeys = /* @__PURE__ */ new Set(), this.renderSelectableRows = [], this.cachedRenderRows = [], this.rowsDirty = !0, this.onWindowMouseUp = () => {
|
|
8493
8595
|
this.isDraggingRange = !1;
|
|
@@ -8503,7 +8605,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8503
8605
|
}));
|
|
8504
8606
|
}, this.onResizeEnd = (e) => {
|
|
8505
8607
|
const t = this.resizeDrag;
|
|
8506
|
-
t && (this.resizeFrame && (cancelAnimationFrame(this.resizeFrame), this.resizeFrame = 0), this.resizedWidths = { ...this.resizedWidths, [t.key]: t.width }, this.resizeDrag = null, this.resizingKey = "", this.dispatchEvent(new CustomEvent(
|
|
8608
|
+
t && (this.resizeFrame && (cancelAnimationFrame(this.resizeFrame), this.resizeFrame = 0), this.resizedWidths = { ...this.resizedWidths, [t.key]: t.width }, this.resizeDrag = null, this.resizingKey = "", this.dispatchEvent(new CustomEvent(I3, {
|
|
8507
8609
|
detail: { column: e, field: t.key, width: t.width },
|
|
8508
8610
|
bubbles: !0,
|
|
8509
8611
|
composed: !0
|
|
@@ -8556,7 +8658,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8556
8658
|
// ── Row keys & selection helpers ────────────────────────────────────────
|
|
8557
8659
|
/** A stable identity for a row, used for selection and expansion state. */
|
|
8558
8660
|
keyFor(e, t) {
|
|
8559
|
-
const o =
|
|
8661
|
+
const o = d1(e, this.indexColumn);
|
|
8560
8662
|
return o == null ? `__index:${t}` : String(o);
|
|
8561
8663
|
}
|
|
8562
8664
|
get selectedKeySet() {
|
|
@@ -8620,7 +8722,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8620
8722
|
sortRows(e) {
|
|
8621
8723
|
const t = this.sortedColumn;
|
|
8622
8724
|
if (!t) return e;
|
|
8623
|
-
const o = this.sortDirection === "desc" ? -1 : 1, i = t.sortWith ? (n, l) => t.sortWith({ a: n, b: l }) : (n, l) => O0(
|
|
8725
|
+
const o = this.sortDirection === "desc" ? -1 : 1, i = t.sortWith ? (n, l) => t.sortWith({ a: n, b: l }) : (n, l) => O0(d1(n, t.field), d1(l, t.field));
|
|
8624
8726
|
return [...e].sort((n, l) => i(n, l) * o);
|
|
8625
8727
|
}
|
|
8626
8728
|
onHeaderClick(e) {
|
|
@@ -8644,14 +8746,14 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8644
8746
|
buildFlatRows(e, t) {
|
|
8645
8747
|
const o = [];
|
|
8646
8748
|
return e.forEach((i, n) => {
|
|
8647
|
-
const l = this.keyFor(i, n), d = this.dataTree ?
|
|
8749
|
+
const l = this.keyFor(i, n), d = this.dataTree ? d1(i, this.treeChildrenField) : void 0, c = Array.isArray(d) && d.length > 0, C = c && this.isExpanded(l, i);
|
|
8648
8750
|
o.push({ kind: "row", data: i, key: l, depth: t, hasChildren: c, expanded: C }), C && o.push(...this.buildFlatRows(this.sortRows(d), t + 1));
|
|
8649
8751
|
}), o;
|
|
8650
8752
|
}
|
|
8651
8753
|
buildGroupedRows() {
|
|
8652
8754
|
const e = /* @__PURE__ */ new Map();
|
|
8653
8755
|
this.data.forEach((o) => {
|
|
8654
|
-
const i =
|
|
8756
|
+
const i = d1(o, this.groupBy), n = String(i), l = e.get(n);
|
|
8655
8757
|
l ? l.rows.push(o) : e.set(n, { value: i, rows: [o] });
|
|
8656
8758
|
});
|
|
8657
8759
|
const t = [];
|
|
@@ -8682,7 +8784,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8682
8784
|
expandAll() {
|
|
8683
8785
|
const e = /* @__PURE__ */ new Set(), t = (o) => {
|
|
8684
8786
|
o.forEach((i, n) => {
|
|
8685
|
-
const l =
|
|
8787
|
+
const l = d1(i, this.treeChildrenField);
|
|
8686
8788
|
Array.isArray(l) && l.length > 0 && (e.add(this.keyFor(i, n)), t(l));
|
|
8687
8789
|
});
|
|
8688
8790
|
};
|
|
@@ -8703,7 +8805,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8703
8805
|
const t = /* @__PURE__ */ new Map(), o = (n) => {
|
|
8704
8806
|
n.forEach((l, d) => {
|
|
8705
8807
|
t.set(this.keyFor(l, d), l);
|
|
8706
|
-
const c = this.dataTree ?
|
|
8808
|
+
const c = this.dataTree ? d1(l, this.treeChildrenField) : void 0;
|
|
8707
8809
|
Array.isArray(c) && o(c);
|
|
8708
8810
|
});
|
|
8709
8811
|
};
|
|
@@ -8835,7 +8937,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8835
8937
|
*/
|
|
8836
8938
|
fitColumnsMinWidth() {
|
|
8837
8939
|
return this.layout !== "fit-columns" || !this.columns.some((e) => e.minWidth) ? 0 : this.columns.reduce((e, t, o) => {
|
|
8838
|
-
const i = i1(t) && !t.width && !t.minWidth ?
|
|
8940
|
+
const i = i1(t) && !t.width && !t.minWidth ? T3 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
|
|
8839
8941
|
return e + i;
|
|
8840
8942
|
}, 0);
|
|
8841
8943
|
}
|
|
@@ -8861,7 +8963,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8861
8963
|
const i = this.columnKey(t, o);
|
|
8862
8964
|
if (this.resizedWidths[i] === void 0) return;
|
|
8863
8965
|
const n = { ...this.resizedWidths };
|
|
8864
|
-
delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(
|
|
8966
|
+
delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(I3, {
|
|
8865
8967
|
detail: { column: t, field: i, width: null },
|
|
8866
8968
|
bubbles: !0,
|
|
8867
8969
|
composed: !0
|
|
@@ -8905,14 +9007,14 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8905
9007
|
></span>
|
|
8906
9008
|
` : u;
|
|
8907
9009
|
if (i1(e)) {
|
|
8908
|
-
const v = this.renderSelectableRows, x = this.renderSelectedKeys, M = v.filter((t1) => x.has(t1.key)).length, S = v.length > 0 && M === v.length,
|
|
9010
|
+
const v = this.renderSelectableRows, x = this.renderSelectedKeys, M = v.filter((t1) => x.has(t1.key)).length, S = v.length > 0 && M === v.length, U = M > 0 && !S, Y1 = e.renderHeader ? e.renderHeader({
|
|
8909
9011
|
areAllRowsSelected: S,
|
|
8910
9012
|
hasSelectedRow: M > 0,
|
|
8911
9013
|
onChange: (t1) => this.toggleAllRows(t1)
|
|
8912
9014
|
}) : s`
|
|
8913
9015
|
<anduin-checkbox
|
|
8914
9016
|
.checked=${S}
|
|
8915
|
-
.indeterminate=${
|
|
9017
|
+
.indeterminate=${U}
|
|
8916
9018
|
aria-label="${S ? "Deselect all rows" : "Select all rows"}"
|
|
8917
9019
|
@anduin-checkbox:change=${(t1) => {
|
|
8918
9020
|
t1.stopPropagation(), this.toggleAllRows(!S);
|
|
@@ -8929,10 +9031,10 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8929
9031
|
><div class="${C}">${Y1}</div>${f}</th>
|
|
8930
9032
|
`;
|
|
8931
9033
|
}
|
|
8932
|
-
const
|
|
9034
|
+
const b = this.sortField === e.field, m = b ? this.sortDirection : null, V = e.renderHeader ? e.renderHeader({ column: e, sortDirection: m }) : s`<span class="table__header-text">${e.title ?? ""}</span>`, _ = e.isSortable ? s`
|
|
8933
9035
|
<anduin-icon
|
|
8934
|
-
class="table__sort-icon ${
|
|
8935
|
-
name="${
|
|
9036
|
+
class="table__sort-icon ${b ? "table__sort-icon--active" : ""}"
|
|
9037
|
+
name="${m === "desc" ? "caretDown" : "caretUp"}"
|
|
8936
9038
|
size="16"
|
|
8937
9039
|
></anduin-icon>
|
|
8938
9040
|
` : u;
|
|
@@ -8944,12 +9046,12 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8944
9046
|
data-col="${t}"
|
|
8945
9047
|
style="${d}"
|
|
8946
9048
|
tabindex="${e.isSortable ? "0" : u}"
|
|
8947
|
-
aria-sort="${
|
|
9049
|
+
aria-sort="${b ? m === "desc" ? "descending" : "ascending" : e.isSortable ? "none" : u}"
|
|
8948
9050
|
@click=${() => this.onHeaderClick(e)}
|
|
8949
9051
|
@keydown=${(v) => {
|
|
8950
9052
|
e.isSortable && (v.key !== "Enter" && v.key !== " " || (v.preventDefault(), this.onHeaderClick(e)));
|
|
8951
9053
|
}}
|
|
8952
|
-
><div class="${C}">${
|
|
9054
|
+
><div class="${C}">${V}${_}</div>${f}</th>
|
|
8953
9055
|
`;
|
|
8954
9056
|
}
|
|
8955
9057
|
renderCell(e, t, o, i) {
|
|
@@ -8963,13 +9065,13 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8963
9065
|
this.sizingClass(o, i)
|
|
8964
9066
|
].filter(Boolean).join(" "), C = this.cellStyle(o, i);
|
|
8965
9067
|
if (i1(o)) {
|
|
8966
|
-
const
|
|
9068
|
+
const V = this.renderSelectedKeys.has(e.key), _ = this.rowIsDisabled(e.data), v = (M) => this.setRowSelected(e, M), x = o.renderCell ? o.renderCell({ data: e.data, isChecked: V, isDisabled: _, onChange: v }) : s`
|
|
8967
9069
|
<anduin-checkbox
|
|
8968
|
-
.checked=${
|
|
9070
|
+
.checked=${V}
|
|
8969
9071
|
.disabled=${_}
|
|
8970
|
-
aria-label="${
|
|
9072
|
+
aria-label="${V ? "Deselect row" : "Select row"}"
|
|
8971
9073
|
@anduin-checkbox:change=${(M) => {
|
|
8972
|
-
M.stopPropagation(), v(!
|
|
9074
|
+
M.stopPropagation(), v(!V);
|
|
8973
9075
|
}}
|
|
8974
9076
|
></anduin-checkbox>
|
|
8975
9077
|
`;
|
|
@@ -8983,7 +9085,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8983
9085
|
>${x}</td>
|
|
8984
9086
|
`;
|
|
8985
9087
|
}
|
|
8986
|
-
const p =
|
|
9088
|
+
const p = d1(e.data, o.field), f = o.renderCell ? o.renderCell({ data: e.data, value: p, rowIndex: t, column: o }) : p == null ? u : String(p), m = this.dataTree && i === this.firstDataColumnIndex ? s`
|
|
8987
9089
|
<div class="table__tree-cell" style="padding-left:${e.depth * this.treeChildIndent}px">
|
|
8988
9090
|
${e.hasChildren ? s`
|
|
8989
9091
|
<button
|
|
@@ -8991,8 +9093,8 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
8991
9093
|
type="button"
|
|
8992
9094
|
aria-expanded="${e.expanded}"
|
|
8993
9095
|
aria-label="${e.expanded ? "Collapse row" : "Expand row"}"
|
|
8994
|
-
@click=${(
|
|
8995
|
-
|
|
9096
|
+
@click=${(V) => {
|
|
9097
|
+
V.stopPropagation(), this.toggleTreeRow(e);
|
|
8996
9098
|
}}
|
|
8997
9099
|
>
|
|
8998
9100
|
<anduin-icon
|
|
@@ -9010,8 +9112,8 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
9010
9112
|
part="cell"
|
|
9011
9113
|
data-col="${i}"
|
|
9012
9114
|
style="${C}"
|
|
9013
|
-
@contextmenu=${(
|
|
9014
|
-
>${
|
|
9115
|
+
@contextmenu=${(V) => this.onCellContextMenu(V, e, t, o)}
|
|
9116
|
+
>${m}</td>
|
|
9015
9117
|
`;
|
|
9016
9118
|
}
|
|
9017
9119
|
get firstDataColumnIndex() {
|
|
@@ -9088,8 +9190,8 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
9088
9190
|
].filter(Boolean).join(" ");
|
|
9089
9191
|
let n = e, l = 0, d = 0, c = 0;
|
|
9090
9192
|
if (this.renderMode === "virtual" && e.length > 0) {
|
|
9091
|
-
const p = Math.ceil((this.viewportHeight || 400) / this.rowHeight), f = Math.max(0, Math.floor(this.virtualScrollTop / this.rowHeight) - 6),
|
|
9092
|
-
n = e.slice(f,
|
|
9193
|
+
const p = Math.ceil((this.viewportHeight || 400) / this.rowHeight), f = Math.max(0, Math.floor(this.virtualScrollTop / this.rowHeight) - 6), b = Math.min(e.length, f + p + 12);
|
|
9194
|
+
n = e.slice(f, b), l = f * this.rowHeight, d = (e.length - b) * this.rowHeight, c = f;
|
|
9093
9195
|
}
|
|
9094
9196
|
return s`
|
|
9095
9197
|
<div class="${i}" part="table" style="${t}">
|
|
@@ -9125,7 +9227,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
|
|
|
9125
9227
|
`;
|
|
9126
9228
|
}
|
|
9127
9229
|
};
|
|
9128
|
-
|
|
9230
|
+
d3.styles = g`
|
|
9129
9231
|
:host {
|
|
9130
9232
|
display: flex;
|
|
9131
9233
|
flex-direction: column;
|
|
@@ -9342,7 +9444,7 @@ a3.styles = g`
|
|
|
9342
9444
|
text-align: right;
|
|
9343
9445
|
}
|
|
9344
9446
|
.table__cell--selection {
|
|
9345
|
-
width: ${
|
|
9447
|
+
width: ${T3}px;
|
|
9346
9448
|
padding: 8px 0 8px 12px;
|
|
9347
9449
|
}
|
|
9348
9450
|
|
|
@@ -9491,261 +9593,261 @@ a3.styles = g`
|
|
|
9491
9593
|
cursor: progress;
|
|
9492
9594
|
}
|
|
9493
9595
|
`;
|
|
9494
|
-
let y =
|
|
9495
|
-
|
|
9596
|
+
let y = d3;
|
|
9597
|
+
L([
|
|
9496
9598
|
a({ attribute: !1 })
|
|
9497
9599
|
], y.prototype, "columns");
|
|
9498
|
-
|
|
9600
|
+
L([
|
|
9499
9601
|
a({ attribute: !1 })
|
|
9500
9602
|
], y.prototype, "data");
|
|
9501
|
-
|
|
9603
|
+
L([
|
|
9502
9604
|
a({ reflect: !0 })
|
|
9503
9605
|
], y.prototype, "layout");
|
|
9504
|
-
|
|
9606
|
+
L([
|
|
9505
9607
|
a({ attribute: "render-mode", reflect: !0 })
|
|
9506
9608
|
], y.prototype, "renderMode");
|
|
9507
|
-
|
|
9609
|
+
L([
|
|
9508
9610
|
a({ type: Number, attribute: "row-height" })
|
|
9509
9611
|
], y.prototype, "rowHeight");
|
|
9510
|
-
|
|
9612
|
+
L([
|
|
9511
9613
|
a()
|
|
9512
9614
|
], y.prototype, "height");
|
|
9513
|
-
|
|
9615
|
+
L([
|
|
9514
9616
|
a({ attribute: "max-height" })
|
|
9515
9617
|
], y.prototype, "maxHeight");
|
|
9516
|
-
|
|
9618
|
+
L([
|
|
9517
9619
|
a({ attribute: "min-height" })
|
|
9518
9620
|
], y.prototype, "minHeight");
|
|
9519
|
-
|
|
9621
|
+
L([
|
|
9520
9622
|
a({
|
|
9521
9623
|
attribute: "resizable-columns",
|
|
9522
9624
|
converter: (r) => r !== "false"
|
|
9523
9625
|
})
|
|
9524
9626
|
], y.prototype, "resizableColumns");
|
|
9525
|
-
|
|
9627
|
+
L([
|
|
9526
9628
|
a({ type: Boolean, attribute: "hide-header", reflect: !0 })
|
|
9527
9629
|
], y.prototype, "hideHeader");
|
|
9528
|
-
|
|
9630
|
+
L([
|
|
9529
9631
|
a({ type: Boolean, reflect: !0 })
|
|
9530
9632
|
], y.prototype, "loading");
|
|
9531
|
-
|
|
9633
|
+
L([
|
|
9532
9634
|
a({ reflect: !0 })
|
|
9533
9635
|
], y.prototype, "selectable");
|
|
9534
|
-
|
|
9636
|
+
L([
|
|
9535
9637
|
a({ attribute: "index-column" })
|
|
9536
9638
|
], y.prototype, "indexColumn");
|
|
9537
|
-
|
|
9639
|
+
L([
|
|
9538
9640
|
a({ attribute: "column-align" })
|
|
9539
9641
|
], y.prototype, "columnAlign");
|
|
9540
|
-
|
|
9642
|
+
L([
|
|
9541
9643
|
a({ attribute: "column-vertical-align" })
|
|
9542
9644
|
], y.prototype, "columnVerticalAlign");
|
|
9543
|
-
|
|
9645
|
+
L([
|
|
9544
9646
|
a({ attribute: "sort-field" })
|
|
9545
9647
|
], y.prototype, "sortField");
|
|
9546
|
-
|
|
9648
|
+
L([
|
|
9547
9649
|
a({ attribute: "sort-direction" })
|
|
9548
9650
|
], y.prototype, "sortDirection");
|
|
9549
|
-
|
|
9651
|
+
L([
|
|
9550
9652
|
a({ type: Boolean, attribute: "data-tree", reflect: !0 })
|
|
9551
9653
|
], y.prototype, "dataTree");
|
|
9552
|
-
|
|
9654
|
+
L([
|
|
9553
9655
|
a({ attribute: "tree-children-field" })
|
|
9554
9656
|
], y.prototype, "treeChildrenField");
|
|
9555
|
-
|
|
9657
|
+
L([
|
|
9556
9658
|
a({ type: Number, attribute: "tree-child-indent" })
|
|
9557
9659
|
], y.prototype, "treeChildIndent");
|
|
9558
|
-
|
|
9660
|
+
L([
|
|
9559
9661
|
a({ attribute: "group-by" })
|
|
9560
9662
|
], y.prototype, "groupBy");
|
|
9561
|
-
|
|
9663
|
+
L([
|
|
9562
9664
|
a({ attribute: !1 })
|
|
9563
9665
|
], y.prototype, "selectedRows");
|
|
9564
|
-
|
|
9666
|
+
L([
|
|
9565
9667
|
a({ attribute: !1 })
|
|
9566
9668
|
], y.prototype, "isRowDisabled");
|
|
9567
|
-
|
|
9669
|
+
L([
|
|
9568
9670
|
a({ attribute: !1 })
|
|
9569
9671
|
], y.prototype, "onStartExpanded");
|
|
9570
|
-
|
|
9672
|
+
L([
|
|
9571
9673
|
a({ attribute: !1 })
|
|
9572
9674
|
], y.prototype, "rowClass");
|
|
9573
|
-
|
|
9675
|
+
L([
|
|
9574
9676
|
a({ attribute: !1 })
|
|
9575
9677
|
], y.prototype, "renderGroupHeader");
|
|
9576
|
-
|
|
9678
|
+
L([
|
|
9577
9679
|
H()
|
|
9578
9680
|
], y.prototype, "expandedKeys");
|
|
9579
|
-
|
|
9681
|
+
L([
|
|
9580
9682
|
H()
|
|
9581
9683
|
], y.prototype, "collapsedGroups");
|
|
9582
|
-
|
|
9684
|
+
L([
|
|
9583
9685
|
H()
|
|
9584
9686
|
], y.prototype, "virtualScrollTop");
|
|
9585
|
-
|
|
9687
|
+
L([
|
|
9586
9688
|
H()
|
|
9587
9689
|
], y.prototype, "viewportHeight");
|
|
9588
|
-
|
|
9690
|
+
L([
|
|
9589
9691
|
H()
|
|
9590
9692
|
], y.prototype, "scrolledX");
|
|
9591
|
-
|
|
9693
|
+
L([
|
|
9592
9694
|
H()
|
|
9593
9695
|
], y.prototype, "scrollableXEnd");
|
|
9594
|
-
|
|
9696
|
+
L([
|
|
9595
9697
|
H()
|
|
9596
9698
|
], y.prototype, "resizedWidths");
|
|
9597
|
-
|
|
9699
|
+
L([
|
|
9598
9700
|
H()
|
|
9599
9701
|
], y.prototype, "resizingKey");
|
|
9600
9702
|
customElements.get("anduin-table") || customElements.define("anduin-table", y);
|
|
9601
9703
|
export {
|
|
9602
|
-
|
|
9704
|
+
k5 as $,
|
|
9603
9705
|
J as A,
|
|
9604
|
-
|
|
9706
|
+
$2 as B,
|
|
9605
9707
|
Z1 as C,
|
|
9606
9708
|
T1 as D,
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9709
|
+
z7 as E,
|
|
9710
|
+
S7 as F,
|
|
9711
|
+
v1 as G,
|
|
9610
9712
|
l1 as H,
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9713
|
+
m1 as I,
|
|
9714
|
+
h0 as J,
|
|
9715
|
+
u0 as K,
|
|
9614
9716
|
X as L,
|
|
9615
|
-
|
|
9616
|
-
|
|
9717
|
+
p5 as M,
|
|
9718
|
+
p2 as N,
|
|
9617
9719
|
r1 as O,
|
|
9618
9720
|
N1 as P,
|
|
9619
9721
|
U1 as Q,
|
|
9620
9722
|
j1 as R,
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9723
|
+
S2 as S,
|
|
9724
|
+
x5 as T,
|
|
9725
|
+
R5 as U,
|
|
9726
|
+
$5 as V,
|
|
9727
|
+
M5 as W,
|
|
9728
|
+
D2 as X,
|
|
9729
|
+
w5 as Y,
|
|
9730
|
+
Z5 as Z,
|
|
9731
|
+
A2 as _,
|
|
9732
|
+
Z2 as a,
|
|
9631
9733
|
z0 as a$,
|
|
9632
9734
|
b1 as a0,
|
|
9633
|
-
|
|
9735
|
+
E5 as a1,
|
|
9634
9736
|
o1 as a2,
|
|
9635
|
-
|
|
9636
|
-
|
|
9737
|
+
s2 as a3,
|
|
9738
|
+
a2 as a4,
|
|
9637
9739
|
w as a5,
|
|
9638
9740
|
b2 as a6,
|
|
9639
|
-
|
|
9741
|
+
g2 as a7,
|
|
9640
9742
|
n1 as a8,
|
|
9641
9743
|
y as a9,
|
|
9642
9744
|
_0 as aA,
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9745
|
+
J2 as aB,
|
|
9746
|
+
e2 as aC,
|
|
9747
|
+
z3 as aD,
|
|
9748
|
+
ne as aE,
|
|
9647
9749
|
u1 as aF,
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9750
|
+
j7 as aG,
|
|
9751
|
+
x3 as aH,
|
|
9752
|
+
s7 as aI,
|
|
9753
|
+
h5 as aJ,
|
|
9754
|
+
W2 as aK,
|
|
9653
9755
|
Q1 as aL,
|
|
9654
9756
|
s0 as aM,
|
|
9655
|
-
|
|
9757
|
+
v5 as aN,
|
|
9656
9758
|
p0 as aO,
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
|
|
9759
|
+
m5 as aP,
|
|
9760
|
+
c5 as aQ,
|
|
9761
|
+
C5 as aR,
|
|
9762
|
+
u5 as aS,
|
|
9763
|
+
D7 as aT,
|
|
9662
9764
|
c0 as aU,
|
|
9663
9765
|
f0 as aV,
|
|
9664
|
-
|
|
9766
|
+
Q2 as aW,
|
|
9665
9767
|
l0 as aX,
|
|
9666
9768
|
r0 as aY,
|
|
9667
|
-
|
|
9769
|
+
J7 as aZ,
|
|
9668
9770
|
D0 as a_,
|
|
9669
9771
|
O1 as aa,
|
|
9670
9772
|
u2 as ab,
|
|
9671
9773
|
I1 as ac,
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9774
|
+
n5 as ad,
|
|
9775
|
+
G as ae,
|
|
9776
|
+
b5 as af,
|
|
9777
|
+
y5 as ag,
|
|
9778
|
+
L5 as ah,
|
|
9779
|
+
H5 as ai,
|
|
9780
|
+
V5 as aj,
|
|
9781
|
+
_5 as ak,
|
|
9782
|
+
f1 as al,
|
|
9783
|
+
m2 as am,
|
|
9682
9784
|
Y as an,
|
|
9683
9785
|
q as ao,
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9786
|
+
f2 as ap,
|
|
9787
|
+
s5 as aq,
|
|
9788
|
+
a5 as ar,
|
|
9789
|
+
z2 as as,
|
|
9790
|
+
d5 as at,
|
|
9791
|
+
Q3 as au,
|
|
9792
|
+
y2 as av,
|
|
9793
|
+
z5 as aw,
|
|
9794
|
+
l7 as ax,
|
|
9795
|
+
A5 as ay,
|
|
9694
9796
|
Z0 as az,
|
|
9695
|
-
|
|
9696
|
-
|
|
9797
|
+
c2 as b,
|
|
9798
|
+
I3 as b0,
|
|
9697
9799
|
F0 as b1,
|
|
9698
9800
|
S0 as b2,
|
|
9699
9801
|
P0 as b3,
|
|
9700
9802
|
B0 as b4,
|
|
9701
9803
|
A0 as b5,
|
|
9702
9804
|
E0 as b6,
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9805
|
+
p7 as b7,
|
|
9806
|
+
re as b8,
|
|
9807
|
+
T2 as b9,
|
|
9808
|
+
u7 as ba,
|
|
9809
|
+
c7 as bb,
|
|
9810
|
+
m7 as bc,
|
|
9811
|
+
b7 as bd,
|
|
9812
|
+
r5 as be,
|
|
9813
|
+
y7 as bf,
|
|
9814
|
+
H7 as bg,
|
|
9815
|
+
de as bh,
|
|
9816
|
+
ce as bi,
|
|
9817
|
+
T5 as bj,
|
|
9818
|
+
ae as bk,
|
|
9819
|
+
se as bl,
|
|
9820
|
+
Ce as bm,
|
|
9821
|
+
Z7 as bn,
|
|
9822
|
+
c1 as bo,
|
|
9823
|
+
L1 as bp,
|
|
9824
|
+
ee as bq,
|
|
9723
9825
|
A as br,
|
|
9724
|
-
|
|
9826
|
+
G7 as bs,
|
|
9725
9827
|
P1 as bt,
|
|
9726
9828
|
j0 as bu,
|
|
9727
9829
|
k as c,
|
|
9728
9830
|
T as d,
|
|
9729
|
-
|
|
9730
|
-
|
|
9831
|
+
k2 as e,
|
|
9832
|
+
g1 as f,
|
|
9731
9833
|
$ as g,
|
|
9732
9834
|
E as h,
|
|
9733
9835
|
Q as i,
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9836
|
+
S5 as j,
|
|
9837
|
+
V0 as k,
|
|
9838
|
+
B2 as l,
|
|
9839
|
+
L0 as m,
|
|
9840
|
+
C2 as n,
|
|
9841
|
+
R2 as o,
|
|
9842
|
+
j as p,
|
|
9741
9843
|
o0 as q,
|
|
9742
9844
|
Z as r,
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9845
|
+
E2 as s,
|
|
9846
|
+
t5 as t,
|
|
9847
|
+
i5 as u,
|
|
9848
|
+
o5 as v,
|
|
9849
|
+
h2 as w,
|
|
9850
|
+
v2 as x,
|
|
9851
|
+
d2 as y,
|
|
9750
9852
|
P as z
|
|
9751
9853
|
};
|