@duyluonganduin/acl-web-components 0.0.57 → 0.0.58
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.iife.js +111 -107
- package/dist/acl-web-components.js +1 -1
- package/dist/{anduin-table-CgbMyPrV.cjs → anduin-table-Brto8nKz.cjs} +16 -12
- package/dist/{anduin-table-DGYmi5iv.js → anduin-table-gTUL80nN.js} +386 -382
- package/dist/react.cjs +1 -1
- package/dist/react.js +2 -2
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const k2 = globalThis, T5 = k2.ShadowRoot && (k2.ShadyCSS === void 0 || k2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, I5 = Symbol(),
|
|
7
|
-
let
|
|
6
|
+
const k2 = globalThis, T5 = k2.ShadowRoot && (k2.ShadyCSS === void 0 || k2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, I5 = Symbol(), be = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let e3 = class {
|
|
8
8
|
constructor(e, t, o) {
|
|
9
9
|
if (this._$cssResult$ = !0, o !== I5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = e, this.t = t;
|
|
@@ -14,7 +14,7 @@ let ee = class {
|
|
|
14
14
|
const t = this.t;
|
|
15
15
|
if (T5 && e === void 0) {
|
|
16
16
|
const o = t !== void 0 && t.length === 1;
|
|
17
|
-
o && (e =
|
|
17
|
+
o && (e = be.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), o && be.set(t, e));
|
|
18
18
|
}
|
|
19
19
|
return e;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let ee = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const t3 = (r) => new e3(typeof r == "string" ? r : r + "", void 0, I5), 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
|
-
}, $
|
|
31
|
+
return new e3(t, r, I5);
|
|
32
|
+
}, $3 = (r, e) => {
|
|
33
33
|
if (T5) 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 = k2.litNonce;
|
|
36
36
|
i !== void 0 && o.setAttribute("nonce", i), o.textContent = t.cssText, r.appendChild(o);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, ye = T5 ? (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 t3(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: E3, defineProperty: z3, getOwnPropertyDescriptor: S3, getOwnPropertyNames: A3, getOwnPropertySymbols: D3, getPrototypeOf: P3 } = Object, p1 = globalThis, He = p1.trustedTypes, B3 = He ? He.emptyScript : "", K2 = p1.reactiveElementPolyfillSupport, r2 = (r, e) => r, R2 = { toAttribute(r, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
r = r ?
|
|
51
|
+
r = r ? B3 : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,7 +73,7 @@ const { is: Ee, defineProperty: ze, getOwnPropertyDescriptor: Se, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return t;
|
|
76
|
-
} }, N5 = (r, e) => !
|
|
76
|
+
} }, N5 = (r, e) => !E3(r, e), _e = { attribute: !0, type: String, converter: R2, reflect: !1, useDefault: !1, hasChanged: N5 };
|
|
77
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) {
|
|
@@ -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 = _e) {
|
|
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 && z3(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 } = S3(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) ?? _e;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
106
|
if (this.hasOwnProperty(r2("elementProperties"))) return;
|
|
107
|
-
const e =
|
|
107
|
+
const e = P3(this);
|
|
108
108
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(r2("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(r2("properties"))) {
|
|
113
|
-
const t = this.properties, o = [...
|
|
113
|
+
const t = this.properties, o = [...A3(t), ...D3(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(ye(i));
|
|
133
|
+
} else e !== void 0 && t.push(ye(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 $3(e, this.constructor.elementStyles), e;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var e;
|
|
@@ -284,42 +284,42 @@ B1.elementStyles = [], B1.shadowRootOptions = { mode: "open" }, B1[r2("elementPr
|
|
|
284
284
|
* Copyright 2017 Google LLC
|
|
285
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
286
|
*/
|
|
287
|
-
const l2 = globalThis,
|
|
288
|
-
\f\r]`, J1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
290
|
-
function
|
|
287
|
+
const l2 = globalThis, Le = (r) => r, $2 = l2.trustedTypes, Ve = $2 ? $2.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, i3 = "$lit$", C1 = `lit$${Math.random().toFixed(9).slice(2)}$`, o3 = "?" + C1, F3 = `<${o3}>`, w1 = document, a2 = () => w1.createComment(""), d2 = (r) => r === null || typeof r != "object" && typeof r != "function", j5 = Array.isArray, O3 = (r) => j5(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", W2 = `[
|
|
288
|
+
\f\r]`, J1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, xe = /-->/g, Me = />/g, _1 = RegExp(`>|${W2}(?:([^\\s"'>=/]+)(${W2}*=${W2}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), we = /'/g, Ze = /"/g, n3 = /^(?:script|style|textarea|title)$/i, r3 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), a = r3(1), c2 = r3(2), Z1 = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), ke = /* @__PURE__ */ new WeakMap(), V1 = w1.createTreeWalker(w1, 129);
|
|
290
|
+
function l3(r, e) {
|
|
291
291
|
if (!j5(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
-
return
|
|
292
|
+
return Ve !== void 0 ? Ve.createHTML(e) : e;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const T3 = (r, e) => {
|
|
295
295
|
const t = r.length - 1, o = [];
|
|
296
296
|
let i, n = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", l = J1;
|
|
297
297
|
for (let d = 0; d < t; d++) {
|
|
298
298
|
const c = r[d];
|
|
299
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 === J1 ? p[1] === "!--" ? l =
|
|
300
|
+
for (; b < c.length && (l.lastIndex = b, p = l.exec(c), p !== null); ) b = l.lastIndex, l === J1 ? p[1] === "!--" ? l = xe : p[1] !== void 0 ? l = Me : p[2] !== void 0 ? (n3.test(p[2]) && (i = RegExp("</" + p[2], "g")), l = _1) : p[3] !== void 0 && (l = _1) : l === _1 ? p[0] === ">" ? (l = i ?? J1, 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] === '"' ? Ze : we) : l === Ze || l === we ? l = _1 : l === xe || l === Me ? l = J1 : (l = _1, i = void 0);
|
|
301
301
|
const m = l === _1 && r[d + 1].startsWith("/>") ? " " : "";
|
|
302
|
-
n += l === J1 ? c +
|
|
302
|
+
n += l === J1 ? c + F3 : f >= 0 ? (o.push(C), c.slice(0, f) + i3 + c.slice(f) + C1 + m) : c + C1 + (f === -2 ? d : m);
|
|
303
303
|
}
|
|
304
|
-
return [
|
|
304
|
+
return [l3(r, n + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
|
|
305
305
|
};
|
|
306
306
|
class C2 {
|
|
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] =
|
|
311
|
+
const d = e.length - 1, c = this.parts, [C, p] = T3(e, t);
|
|
312
312
|
if (this.el = C2.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
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(
|
|
318
|
+
if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(i3)) {
|
|
319
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] === "." ?
|
|
320
|
+
c.push({ type: 1, index: n, name: V[2], strings: m, ctor: V[1] === "." ? N3 : V[1] === "?" ? j3 : V[1] === "@" ? U3 : U2 }), i.removeAttribute(f);
|
|
321
321
|
} else f.startsWith(C1) && (c.push({ type: 6, index: n }), i.removeAttribute(f));
|
|
322
|
-
if (
|
|
322
|
+
if (n3.test(i.tagName)) {
|
|
323
323
|
const f = i.textContent.split(C1), b = f.length - 1;
|
|
324
324
|
if (b > 0) {
|
|
325
325
|
i.textContent = $2 ? $2.emptyScript : "";
|
|
@@ -327,7 +327,7 @@ class C2 {
|
|
|
327
327
|
i.append(f[b], a2());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
330
|
+
} else if (i.nodeType === 8) if (i.data === o3) c.push({ type: 2, index: n });
|
|
331
331
|
else {
|
|
332
332
|
let f = -1;
|
|
333
333
|
for (; (f = i.data.indexOf(C1, f + 1)) !== -1; ) c.push({ type: 7, index: n }), f += C1.length - 1;
|
|
@@ -347,7 +347,7 @@ function O1(r, e, t = r, o) {
|
|
|
347
347
|
const n = d2(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 = O1(r, i._$AS(r, e.values), i, o)), e;
|
|
349
349
|
}
|
|
350
|
-
class
|
|
350
|
+
class I3 {
|
|
351
351
|
constructor(e, t) {
|
|
352
352
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
353
353
|
}
|
|
@@ -364,7 +364,7 @@ class Ie {
|
|
|
364
364
|
for (; c !== void 0; ) {
|
|
365
365
|
if (l === c.index) {
|
|
366
366
|
let C;
|
|
367
|
-
c.type === 2 ? C = new w2(n, n.nextSibling, this, e) : c.type === 1 ? C = new c.ctor(n, c.name, c.strings, this, e) : c.type === 6 && (C = new
|
|
367
|
+
c.type === 2 ? C = new w2(n, n.nextSibling, this, e) : c.type === 1 ? C = new c.ctor(n, c.name, c.strings, this, e) : c.type === 6 && (C = new G3(n, this, e)), this._$AV.push(C), c = o[++d];
|
|
368
368
|
}
|
|
369
369
|
l !== (c == null ? void 0 : c.index) && (n = V1.nextNode(), l++);
|
|
370
370
|
}
|
|
@@ -395,7 +395,7 @@ class w2 {
|
|
|
395
395
|
return this._$AB;
|
|
396
396
|
}
|
|
397
397
|
_$AI(e, t = this) {
|
|
398
|
-
e = O1(this, e, t), d2(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== Z1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) :
|
|
398
|
+
e = O1(this, e, t), d2(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== Z1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : O3(e) ? this.k(e) : this._(e);
|
|
399
399
|
}
|
|
400
400
|
O(e) {
|
|
401
401
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -408,16 +408,16 @@ class w2 {
|
|
|
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 = C2.createElement(
|
|
411
|
+
const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = C2.createElement(l3(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 I3(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 = ke.get(e.strings);
|
|
420
|
+
return t === void 0 && ke.set(e.strings, t = new C2(e)), t;
|
|
421
421
|
}
|
|
422
422
|
k(e) {
|
|
423
423
|
j5(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -429,8 +429,8 @@ class w2 {
|
|
|
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 = Le(e).nextSibling;
|
|
433
|
+
Le(e).remove(), e = i;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
setConnected(e) {
|
|
@@ -463,7 +463,7 @@ class U2 {
|
|
|
463
463
|
e === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
class
|
|
466
|
+
class N3 extends U2 {
|
|
467
467
|
constructor() {
|
|
468
468
|
super(...arguments), this.type = 3;
|
|
469
469
|
}
|
|
@@ -471,7 +471,7 @@ class Ne extends U2 {
|
|
|
471
471
|
this.element[this.name] = e === u ? void 0 : e;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class j3 extends U2 {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(...arguments), this.type = 4;
|
|
477
477
|
}
|
|
@@ -479,7 +479,7 @@ class je extends U2 {
|
|
|
479
479
|
this.element.toggleAttribute(this.name, !!e && e !== u);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
class
|
|
482
|
+
class U3 extends U2 {
|
|
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 Ue extends U2 {
|
|
|
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 G3 {
|
|
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
|
}
|
|
@@ -506,7 +506,7 @@ class Ge {
|
|
|
506
506
|
}
|
|
507
507
|
const Y2 = l2.litHtmlPolyfillSupport;
|
|
508
508
|
Y2 == null || Y2(C2, w2), (l2.litHtmlVersions ?? (l2.litHtmlVersions = [])).push("3.3.2");
|
|
509
|
-
const
|
|
509
|
+
const K3 = (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) {
|
|
@@ -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 = K3(t, this.renderRoot, this.renderOptions);
|
|
536
536
|
}
|
|
537
537
|
connectedCallback() {
|
|
538
538
|
var e;
|
|
@@ -546,8 +546,8 @@ let h = class extends B1 {
|
|
|
546
546
|
return Z1;
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
|
-
var
|
|
550
|
-
h._$litElement$ = !0, h.finalized = !0, (
|
|
549
|
+
var Qe;
|
|
550
|
+
h._$litElement$ = !0, h.finalized = !0, (Qe = M1.litElementHydrateSupport) == null || Qe.call(M1, { LitElement: h });
|
|
551
551
|
const q2 = M1.litElementPolyfillSupport;
|
|
552
552
|
q2 == null || q2({ LitElement: h });
|
|
553
553
|
(M1.litElementVersions ?? (M1.litElementVersions = [])).push("4.2.2");
|
|
@@ -556,7 +556,7 @@ q2 == null || q2({ LitElement: h });
|
|
|
556
556
|
* Copyright 2017 Google LLC
|
|
557
557
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
558
558
|
*/
|
|
559
|
-
const
|
|
559
|
+
const W3 = { attribute: !0, type: String, converter: R2, reflect: !1, hasChanged: N5 }, Y3 = (r = W3, 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 We = { attribute: !0, type: String, converter: R2, reflect: !1, hasChanged
|
|
|
578
578
|
throw Error("Unsupported decorator location: " + o);
|
|
579
579
|
};
|
|
580
580
|
function s(r) {
|
|
581
|
-
return (e, t) => typeof t == "object" ?
|
|
581
|
+
return (e, t) => typeof t == "object" ? Y3(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);
|
|
@@ -588,7 +588,7 @@ function s(r) {
|
|
|
588
588
|
* Copyright 2017 Google LLC
|
|
589
589
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
590
590
|
*/
|
|
591
|
-
function
|
|
591
|
+
function y(r) {
|
|
592
592
|
return s({ ...r, state: !0, attribute: !1 });
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -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 q3 = (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,15 +608,15 @@ function R(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 q3(t, o, { get() {
|
|
612
612
|
return n(this);
|
|
613
613
|
} });
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
var
|
|
616
|
+
var X3 = Object.defineProperty, s3 = (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 && X3(e, t, i), i;
|
|
620
620
|
};
|
|
621
621
|
const Y5 = class Y5 extends h {
|
|
622
622
|
constructor() {
|
|
@@ -681,24 +681,24 @@ Y5.styles = g`
|
|
|
681
681
|
@keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
|
682
682
|
`;
|
|
683
683
|
let p2 = Y5;
|
|
684
|
-
|
|
684
|
+
s3([
|
|
685
685
|
s()
|
|
686
686
|
], p2.prototype, "size");
|
|
687
|
-
|
|
687
|
+
s3([
|
|
688
688
|
s()
|
|
689
689
|
], p2.prototype, "percent");
|
|
690
690
|
customElements.get("anduin-spinner") || customElements.define("anduin-spinner", p2);
|
|
691
|
-
var
|
|
691
|
+
var J3 = Object.defineProperty, a3 = (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 && J3(e, t, i), i;
|
|
695
695
|
};
|
|
696
|
-
const
|
|
696
|
+
const Re = "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", Q3 = { small: 16, medium: 24, large: 32 }, q5 = class q5 extends h {
|
|
697
697
|
constructor() {
|
|
698
698
|
super(...arguments), this.size = "small", this.color = "default";
|
|
699
699
|
}
|
|
700
700
|
render() {
|
|
701
|
-
const e =
|
|
701
|
+
const e = Q3[this.size] ?? 16;
|
|
702
702
|
return c2`
|
|
703
703
|
<svg
|
|
704
704
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -708,8 +708,8 @@ const R3 = "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="${Re}"/>
|
|
712
|
+
<path class="star star-2" d="${Re}"/>
|
|
713
713
|
</svg>
|
|
714
714
|
`;
|
|
715
715
|
}
|
|
@@ -754,10 +754,10 @@ q5.styles = g`
|
|
|
754
754
|
}
|
|
755
755
|
`;
|
|
756
756
|
let h2 = q5;
|
|
757
|
-
|
|
757
|
+
a3([
|
|
758
758
|
s({ reflect: !0 })
|
|
759
759
|
], h2.prototype, "size");
|
|
760
|
-
|
|
760
|
+
a3([
|
|
761
761
|
s({ reflect: !0 })
|
|
762
762
|
], h2.prototype, "color");
|
|
763
763
|
customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", h2);
|
|
@@ -766,7 +766,7 @@ var e7 = Object.defineProperty, U5 = (r, e, t, o) => {
|
|
|
766
766
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
767
767
|
return i && e7(e, t, i), i;
|
|
768
768
|
};
|
|
769
|
-
const
|
|
769
|
+
const d3 = [
|
|
770
770
|
{
|
|
771
771
|
index: 1,
|
|
772
772
|
d: "M62.5473 18.7416L54.9042 14.3289L44.2017 19.8592L44.1897 8.14288L40.4782 6L36.7581 8.1621L36.7873 32.0482L62.5473 18.7416Z",
|
|
@@ -809,7 +809,7 @@ const de = [
|
|
|
809
809
|
originY: 39.0175,
|
|
810
810
|
delay: -0.97
|
|
811
811
|
}
|
|
812
|
-
], $
|
|
812
|
+
], $e = 20, Ee = 5, t7 = 900, i7 = 160, ze = 2, o7 = "cubic-bezier(0.22, 0.61, 0.36, 1)", X2 = 180, t2 = "ai-spinner--loading", i2 = "ai-spinner--settling", x1 = "ai-spinner__segment", n7 = d3.map(
|
|
813
813
|
(r) => `
|
|
814
814
|
.${x1}--${r.index} {
|
|
815
815
|
transform-origin: ${r.originX}px ${r.originY}px;
|
|
@@ -823,10 +823,10 @@ const de = [
|
|
|
823
823
|
).join(`
|
|
824
824
|
`), X5 = class X5 extends h {
|
|
825
825
|
constructor() {
|
|
826
|
-
super(...arguments), this.state = "loading", this.size = $
|
|
826
|
+
super(...arguments), this.state = "loading", this.size = $e;
|
|
827
827
|
}
|
|
828
828
|
render() {
|
|
829
|
-
const e = this.size > 0 ? this.size : $
|
|
829
|
+
const e = this.size > 0 ? this.size : $e;
|
|
830
830
|
return a`
|
|
831
831
|
<div class="ai-spinner">
|
|
832
832
|
<svg
|
|
@@ -838,7 +838,7 @@ const de = [
|
|
|
838
838
|
fill="none"
|
|
839
839
|
aria-hidden="true"
|
|
840
840
|
>
|
|
841
|
-
${
|
|
841
|
+
${d3.map(
|
|
842
842
|
(t) => c2`
|
|
843
843
|
<path
|
|
844
844
|
class="${x1} ${x1}--${t.index}"
|
|
@@ -862,7 +862,7 @@ const de = [
|
|
|
862
862
|
const t = this.wrapper;
|
|
863
863
|
if (!t) return;
|
|
864
864
|
const o = this.currentRotationDegrees(t), i = t.classList.contains(t2) || t.classList.contains(i2);
|
|
865
|
-
e ? (this.cancelSettle(t), this.cancelSegmentRest(t), o !== null && o >=
|
|
865
|
+
e ? (this.cancelSettle(t), this.cancelSegmentRest(t), o !== null && o >= ze ? t.style.setProperty("animation-delay", `${-(o / 360 * Ee)}s`) : t.style.removeProperty("animation-delay"), t.classList.add(t2)) : i && (o !== null && 360 - o >= ze ? (this.cancelSettle(t), t.classList.remove(t2), this.startSettle(t, o)) : this.restSegments(t));
|
|
866
866
|
}
|
|
867
867
|
/** The mark's current rotation in [0, 360), or null when it is not rotating (static, or reduced motion). */
|
|
868
868
|
currentRotationDegrees(e) {
|
|
@@ -945,7 +945,7 @@ X5.styles = g`
|
|
|
945
945
|
}
|
|
946
946
|
|
|
947
947
|
.ai-spinner--loading {
|
|
948
|
-
animation: ai-spinner-spin ${
|
|
948
|
+
animation: ai-spinner-spin ${Ee}s linear infinite;
|
|
949
949
|
will-change: transform;
|
|
950
950
|
}
|
|
951
951
|
|
|
@@ -958,7 +958,7 @@ X5.styles = g`
|
|
|
958
958
|
animation: ai-spinner-pulse 1.52s linear infinite;
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
-
${
|
|
961
|
+
${t3(n7)}
|
|
962
962
|
|
|
963
963
|
@keyframes ai-spinner-spin {
|
|
964
964
|
to {
|
|
@@ -1008,7 +1008,7 @@ U5([
|
|
|
1008
1008
|
R(".ai-spinner")
|
|
1009
1009
|
], T1.prototype, "wrapper");
|
|
1010
1010
|
customElements.get("anduin-ai-spinner") || customElements.define("anduin-ai-spinner", T1);
|
|
1011
|
-
const
|
|
1011
|
+
const Se = {
|
|
1012
1012
|
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" }],
|
|
1013
1013
|
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" }],
|
|
1014
1014
|
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" }],
|
|
@@ -1369,7 +1369,7 @@ const S3 = {
|
|
|
1369
1369
|
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" }],
|
|
1370
1370
|
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" }]
|
|
1371
1371
|
};
|
|
1372
|
-
var r7 = Object.defineProperty,
|
|
1372
|
+
var r7 = Object.defineProperty, c3 = (r, e, t, o) => {
|
|
1373
1373
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1374
1374
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1375
1375
|
return i && r7(e, t, i), i;
|
|
@@ -1379,7 +1379,7 @@ const J5 = class J5 extends h {
|
|
|
1379
1379
|
super(...arguments), this.name = "", this.size = 16;
|
|
1380
1380
|
}
|
|
1381
1381
|
render() {
|
|
1382
|
-
const e = this.name &&
|
|
1382
|
+
const e = this.name && Se[this.name] ? Se[this.name] : [], t = !this.name;
|
|
1383
1383
|
return c2`
|
|
1384
1384
|
<svg
|
|
1385
1385
|
class=${t ? "icon--hidden" : ""}
|
|
@@ -1407,10 +1407,10 @@ J5.styles = g`
|
|
|
1407
1407
|
.icon--hidden { display: none; }
|
|
1408
1408
|
`;
|
|
1409
1409
|
let u2 = J5;
|
|
1410
|
-
|
|
1410
|
+
c3([
|
|
1411
1411
|
s()
|
|
1412
1412
|
], u2.prototype, "name");
|
|
1413
|
-
|
|
1413
|
+
c3([
|
|
1414
1414
|
s({ type: Number })
|
|
1415
1415
|
], u2.prototype, "size");
|
|
1416
1416
|
customElements.get("anduin-icon") || customElements.define("anduin-icon", u2);
|
|
@@ -1419,7 +1419,7 @@ var l7 = Object.defineProperty, s7 = (r, e, t, o) => {
|
|
|
1419
1419
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1420
1420
|
return i && l7(e, t, i), i;
|
|
1421
1421
|
};
|
|
1422
|
-
const
|
|
1422
|
+
const C3 = g`
|
|
1423
1423
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1424
1424
|
.badge {
|
|
1425
1425
|
border-radius: 9999px;
|
|
@@ -1446,7 +1446,7 @@ const Ce = g`
|
|
|
1446
1446
|
.badge--bold-warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1447
1447
|
.badge--hidden { display: none; }
|
|
1448
1448
|
`;
|
|
1449
|
-
function
|
|
1449
|
+
function p3(r) {
|
|
1450
1450
|
return {
|
|
1451
1451
|
gray: "badge--light-gray",
|
|
1452
1452
|
primary: "badge--light-primary",
|
|
@@ -1465,17 +1465,17 @@ const Q5 = class Q5 extends h {
|
|
|
1465
1465
|
super(...arguments), this.variant = "gray";
|
|
1466
1466
|
}
|
|
1467
1467
|
render() {
|
|
1468
|
-
const e =
|
|
1468
|
+
const e = p3(this.variant);
|
|
1469
1469
|
return a`<div class="badge ${e}" part="badge"><slot></slot></div>`;
|
|
1470
1470
|
}
|
|
1471
1471
|
};
|
|
1472
|
-
Q5.styles = [
|
|
1472
|
+
Q5.styles = [C3];
|
|
1473
1473
|
let E2 = Q5;
|
|
1474
1474
|
s7([
|
|
1475
1475
|
s()
|
|
1476
1476
|
], E2.prototype, "variant");
|
|
1477
1477
|
customElements.get("anduin-badge") || customElements.define("anduin-badge", E2);
|
|
1478
|
-
var a7 = Object.defineProperty,
|
|
1478
|
+
var a7 = Object.defineProperty, h3 = (r, e, t, o) => {
|
|
1479
1479
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1480
1480
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1481
1481
|
return i && a7(e, t, i), i;
|
|
@@ -1488,7 +1488,7 @@ const e4 = class e4 extends h {
|
|
|
1488
1488
|
return e > 99 ? "99+" : e.toString();
|
|
1489
1489
|
}
|
|
1490
1490
|
render() {
|
|
1491
|
-
const e =
|
|
1491
|
+
const e = p3(this.variant), t = this.count === 0, o = this.count > 0 && this.count < 10, i = [
|
|
1492
1492
|
"badge",
|
|
1493
1493
|
e,
|
|
1494
1494
|
t ? "badge--hidden" : "",
|
|
@@ -1497,12 +1497,12 @@ const e4 = class e4 extends h {
|
|
|
1497
1497
|
return a`<div class="${i}" part="badge">${this.formatCount(this.count)}</div>`;
|
|
1498
1498
|
}
|
|
1499
1499
|
};
|
|
1500
|
-
e4.styles = [
|
|
1500
|
+
e4.styles = [C3];
|
|
1501
1501
|
let g2 = e4;
|
|
1502
|
-
|
|
1502
|
+
h3([
|
|
1503
1503
|
s()
|
|
1504
1504
|
], g2.prototype, "variant");
|
|
1505
|
-
|
|
1505
|
+
h3([
|
|
1506
1506
|
s({ type: Number })
|
|
1507
1507
|
], g2.prototype, "count");
|
|
1508
1508
|
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", g2);
|
|
@@ -1690,7 +1690,7 @@ t4.styles = g`
|
|
|
1690
1690
|
`;
|
|
1691
1691
|
let k = t4;
|
|
1692
1692
|
P([
|
|
1693
|
-
|
|
1693
|
+
y()
|
|
1694
1694
|
], k.prototype, "iconOnly");
|
|
1695
1695
|
P([
|
|
1696
1696
|
s({ converter: (r) => r || "filled" })
|
|
@@ -1770,7 +1770,7 @@ p7([
|
|
|
1770
1770
|
s()
|
|
1771
1771
|
], z2.prototype, "variant");
|
|
1772
1772
|
customElements.get("anduin-callout") || customElements.define("anduin-callout", z2);
|
|
1773
|
-
var h7 = Object.defineProperty,
|
|
1773
|
+
var h7 = Object.defineProperty, u3 = (r, e, t, o) => {
|
|
1774
1774
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1775
1775
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1776
1776
|
return i && h7(e, t, i), i;
|
|
@@ -1817,11 +1817,11 @@ o4.styles = g`
|
|
|
1817
1817
|
.divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
|
|
1818
1818
|
`;
|
|
1819
1819
|
let f2 = o4;
|
|
1820
|
-
|
|
1820
|
+
u3([
|
|
1821
1821
|
s({ reflect: !0 })
|
|
1822
1822
|
], f2.prototype, "direction");
|
|
1823
|
-
|
|
1824
|
-
|
|
1823
|
+
u3([
|
|
1824
|
+
y()
|
|
1825
1825
|
], f2.prototype, "hasContent");
|
|
1826
1826
|
customElements.get("anduin-divider") || customElements.define("anduin-divider", f2);
|
|
1827
1827
|
var u7 = Object.defineProperty, g7 = (r, e, t, o) => {
|
|
@@ -1851,7 +1851,7 @@ g7([
|
|
|
1851
1851
|
s()
|
|
1852
1852
|
], S2.prototype, "variant");
|
|
1853
1853
|
customElements.get("anduin-dot") || customElements.define("anduin-dot", S2);
|
|
1854
|
-
var f7 = Object.defineProperty,
|
|
1854
|
+
var f7 = Object.defineProperty, g3 = (r, e, t, o) => {
|
|
1855
1855
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1856
1856
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1857
1857
|
return i && f7(e, t, i), i;
|
|
@@ -1889,10 +1889,10 @@ r4.styles = g`
|
|
|
1889
1889
|
}
|
|
1890
1890
|
`;
|
|
1891
1891
|
let v2 = r4;
|
|
1892
|
-
|
|
1892
|
+
g3([
|
|
1893
1893
|
s()
|
|
1894
1894
|
], v2.prototype, "percent");
|
|
1895
|
-
|
|
1895
|
+
g3([
|
|
1896
1896
|
s()
|
|
1897
1897
|
], v2.prototype, "height");
|
|
1898
1898
|
customElements.get("anduin-progress") || customElements.define("anduin-progress", v2);
|
|
@@ -1990,17 +1990,17 @@ b7([
|
|
|
1990
1990
|
s()
|
|
1991
1991
|
], A2.prototype, "height");
|
|
1992
1992
|
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", A2);
|
|
1993
|
-
var
|
|
1993
|
+
var y7 = Object.defineProperty, G5 = (r, e, t, o) => {
|
|
1994
1994
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1995
1995
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1996
|
-
return i &&
|
|
1996
|
+
return i && y7(e, t, i), i;
|
|
1997
1997
|
};
|
|
1998
|
-
const
|
|
1998
|
+
const f3 = "anduin-field:label-click", u1 = "anduin-field:label-click-coordinated", a4 = class a4 extends h {
|
|
1999
1999
|
constructor() {
|
|
2000
2000
|
super(...arguments), this.orientation = "vertical";
|
|
2001
2001
|
}
|
|
2002
2002
|
connectedCallback() {
|
|
2003
|
-
super.connectedCallback(), this.addEventListener(
|
|
2003
|
+
super.connectedCallback(), this.addEventListener(f3, (e) => {
|
|
2004
2004
|
const t = e;
|
|
2005
2005
|
this.dispatchEvent(new CustomEvent(u1, {
|
|
2006
2006
|
detail: t.detail,
|
|
@@ -2036,7 +2036,7 @@ const d4 = class d4 extends h {
|
|
|
2036
2036
|
super.connectedCallback();
|
|
2037
2037
|
}
|
|
2038
2038
|
onLabelClick(e) {
|
|
2039
|
-
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(
|
|
2039
|
+
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(f3, {
|
|
2040
2040
|
detail: this.htmlfor,
|
|
2041
2041
|
bubbles: !0,
|
|
2042
2042
|
composed: !0
|
|
@@ -2102,10 +2102,10 @@ customElements.get("anduin-field-label") || customElements.define("anduin-field-
|
|
|
2102
2102
|
customElements.get("anduin-field-description") || customElements.define("anduin-field-description", l5);
|
|
2103
2103
|
customElements.get("anduin-field-error") || customElements.define("anduin-field-error", s5);
|
|
2104
2104
|
customElements.get("anduin-field-group") || customElements.define("anduin-field-group", a5);
|
|
2105
|
-
var
|
|
2105
|
+
var H7 = Object.defineProperty, Z2 = (r, e, t, o) => {
|
|
2106
2106
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2107
2107
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2108
|
-
return i &&
|
|
2108
|
+
return i && H7(e, t, i), i;
|
|
2109
2109
|
};
|
|
2110
2110
|
const _7 = "anduin-checkbox:change", h4 = class h4 extends h {
|
|
2111
2111
|
constructor() {
|
|
@@ -2221,7 +2221,7 @@ var L7 = Object.defineProperty, K = (r, e, t, o) => {
|
|
|
2221
2221
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2222
2222
|
return i && L7(e, t, i), i;
|
|
2223
2223
|
};
|
|
2224
|
-
const
|
|
2224
|
+
const Ae = "anduin-input:change", V7 = "anduin-input:clear", I2 = class I2 extends h {
|
|
2225
2225
|
constructor() {
|
|
2226
2226
|
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;
|
|
2227
2227
|
}
|
|
@@ -2267,7 +2267,7 @@ const A3 = "anduin-input:change", V7 = "anduin-input:clear", I2 = class I2 exten
|
|
|
2267
2267
|
this._withInput((i) => i.setSelectionRange(e, t, o));
|
|
2268
2268
|
}
|
|
2269
2269
|
onInput() {
|
|
2270
|
-
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(
|
|
2270
|
+
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(Ae, {
|
|
2271
2271
|
detail: this.value,
|
|
2272
2272
|
bubbles: !0,
|
|
2273
2273
|
composed: !0
|
|
@@ -2275,7 +2275,7 @@ const A3 = "anduin-input:change", V7 = "anduin-input:clear", I2 = class I2 exten
|
|
|
2275
2275
|
}
|
|
2276
2276
|
onClear() {
|
|
2277
2277
|
var e;
|
|
2278
|
-
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(
|
|
2278
|
+
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(Ae, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(V7, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
|
|
2279
2279
|
}
|
|
2280
2280
|
render() {
|
|
2281
2281
|
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";
|
|
@@ -2408,7 +2408,7 @@ K([
|
|
|
2408
2408
|
R("input")
|
|
2409
2409
|
], B.prototype, "inputEl");
|
|
2410
2410
|
customElements.get("anduin-input") || customElements.define("anduin-input", B);
|
|
2411
|
-
var x7 = Object.defineProperty,
|
|
2411
|
+
var x7 = Object.defineProperty, y1 = (r, e, t, o) => {
|
|
2412
2412
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2413
2413
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2414
2414
|
return i && x7(e, t, i), i;
|
|
@@ -2491,28 +2491,28 @@ N2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, N2.styles
|
|
|
2491
2491
|
.textarea--loading { border-color: var(--color-gray-4); }
|
|
2492
2492
|
`;
|
|
2493
2493
|
let G = N2;
|
|
2494
|
-
|
|
2494
|
+
y1([
|
|
2495
2495
|
s()
|
|
2496
2496
|
], G.prototype, "value");
|
|
2497
|
-
|
|
2497
|
+
y1([
|
|
2498
2498
|
s({ type: Boolean })
|
|
2499
2499
|
], G.prototype, "disabled");
|
|
2500
|
-
|
|
2500
|
+
y1([
|
|
2501
2501
|
s({ type: Boolean })
|
|
2502
2502
|
], G.prototype, "readonly");
|
|
2503
|
-
|
|
2503
|
+
y1([
|
|
2504
2504
|
s()
|
|
2505
2505
|
], G.prototype, "placeholder");
|
|
2506
|
-
|
|
2506
|
+
y1([
|
|
2507
2507
|
s()
|
|
2508
2508
|
], G.prototype, "inputid");
|
|
2509
|
-
|
|
2509
|
+
y1([
|
|
2510
2510
|
s({ type: Number })
|
|
2511
2511
|
], G.prototype, "rows");
|
|
2512
|
-
|
|
2512
|
+
y1([
|
|
2513
2513
|
s()
|
|
2514
2514
|
], G.prototype, "status");
|
|
2515
|
-
|
|
2515
|
+
y1([
|
|
2516
2516
|
R("textarea")
|
|
2517
2517
|
], G.prototype, "textareaEl");
|
|
2518
2518
|
customElements.get("anduin-textarea") || customElements.define("anduin-textarea", G);
|
|
@@ -2521,12 +2521,12 @@ var w7 = Object.defineProperty, N = (r, e, t, o) => {
|
|
|
2521
2521
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2522
2522
|
return i && w7(e, t, i), i;
|
|
2523
2523
|
};
|
|
2524
|
-
const
|
|
2524
|
+
const v3 = "anduin-tab:trigger-click", G2 = "anduin-tab:value-changed", Z7 = "anduin-tab:change", u4 = class u4 extends h {
|
|
2525
2525
|
constructor() {
|
|
2526
2526
|
super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
|
|
2527
2527
|
}
|
|
2528
2528
|
connectedCallback() {
|
|
2529
|
-
super.connectedCallback(), this.addEventListener(
|
|
2529
|
+
super.connectedCallback(), this.addEventListener(v3, (e) => {
|
|
2530
2530
|
e.stopPropagation();
|
|
2531
2531
|
const t = e;
|
|
2532
2532
|
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(Z7, { detail: t.detail, bubbles: !0, composed: !0 }));
|
|
@@ -2645,7 +2645,7 @@ const f4 = class f4 extends h {
|
|
|
2645
2645
|
});
|
|
2646
2646
|
}
|
|
2647
2647
|
onClick() {
|
|
2648
|
-
this.dispatchEvent(new CustomEvent(
|
|
2648
|
+
this.dispatchEvent(new CustomEvent(v3, { detail: this.value, bubbles: !0, composed: !0 }));
|
|
2649
2649
|
}
|
|
2650
2650
|
render() {
|
|
2651
2651
|
return a`
|
|
@@ -2706,7 +2706,7 @@ N([
|
|
|
2706
2706
|
s({ attribute: "badge-count" })
|
|
2707
2707
|
], n1.prototype, "badgeCount");
|
|
2708
2708
|
N([
|
|
2709
|
-
|
|
2709
|
+
y()
|
|
2710
2710
|
], n1.prototype, "isActive");
|
|
2711
2711
|
const v4 = class v4 extends h {
|
|
2712
2712
|
constructor() {
|
|
@@ -2736,17 +2736,17 @@ v4.styles = g`
|
|
|
2736
2736
|
:host(:not([active])) { display: none; }
|
|
2737
2737
|
.tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
|
|
2738
2738
|
`;
|
|
2739
|
-
let
|
|
2739
|
+
let y2 = v4;
|
|
2740
2740
|
N([
|
|
2741
2741
|
s()
|
|
2742
|
-
],
|
|
2742
|
+
], y2.prototype, "value");
|
|
2743
2743
|
N([
|
|
2744
|
-
|
|
2745
|
-
],
|
|
2744
|
+
y()
|
|
2745
|
+
], y2.prototype, "isActive");
|
|
2746
2746
|
customElements.get("anduin-tabs") || customElements.define("anduin-tabs", I1);
|
|
2747
2747
|
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", b2);
|
|
2748
2748
|
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", n1);
|
|
2749
|
-
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content",
|
|
2749
|
+
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", y2);
|
|
2750
2750
|
var k7 = Object.defineProperty, K5 = (r, e, t, o) => {
|
|
2751
2751
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2752
2752
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
@@ -2905,7 +2905,7 @@ var z7 = Object.defineProperty, F = (r, e, t, o) => {
|
|
|
2905
2905
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2906
2906
|
return i && z7(e, t, i), i;
|
|
2907
2907
|
};
|
|
2908
|
-
const S7 = "anduin-toggle-group:change", A7 = "anduin-toggle-group-item:change", D7 = "anduin-toggle-group-item:select", P7 = "anduin-toggle-group-item:deselect", c5 = "anduin-toggle-group-item:item-click",
|
|
2908
|
+
const S7 = "anduin-toggle-group:change", A7 = "anduin-toggle-group-item:change", D7 = "anduin-toggle-group-item:select", P7 = "anduin-toggle-group-item:deselect", c5 = "anduin-toggle-group-item:item-click", y4 = class y4 extends h {
|
|
2909
2909
|
constructor() {
|
|
2910
2910
|
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) => {
|
|
2911
2911
|
var c;
|
|
@@ -2958,7 +2958,7 @@ const S7 = "anduin-toggle-group:change", A7 = "anduin-toggle-group-item:change",
|
|
|
2958
2958
|
`;
|
|
2959
2959
|
}
|
|
2960
2960
|
};
|
|
2961
|
-
|
|
2961
|
+
y4.styles = g`
|
|
2962
2962
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
2963
2963
|
.toggle-group { display: inline-flex; align-items: center; }
|
|
2964
2964
|
.toggle-group--small {
|
|
@@ -2992,7 +2992,7 @@ H4.styles = g`
|
|
|
2992
2992
|
/* Gapped pills stand alone, so each keeps all four borders. */
|
|
2993
2993
|
.toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
|
|
2994
2994
|
`;
|
|
2995
|
-
let Y =
|
|
2995
|
+
let Y = y4;
|
|
2996
2996
|
F([
|
|
2997
2997
|
s()
|
|
2998
2998
|
], Y.prototype, "mode");
|
|
@@ -3012,9 +3012,9 @@ F([
|
|
|
3012
3012
|
s({ type: Boolean })
|
|
3013
3013
|
], Y.prototype, "gap");
|
|
3014
3014
|
F([
|
|
3015
|
-
|
|
3015
|
+
y()
|
|
3016
3016
|
], Y.prototype, "internalValue");
|
|
3017
|
-
const
|
|
3017
|
+
const H4 = class H4 extends h {
|
|
3018
3018
|
constructor() {
|
|
3019
3019
|
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.selected = !1, this.groupSize = "medium", this.groupVariant = "gray", this.groupMode = "single";
|
|
3020
3020
|
}
|
|
@@ -3064,7 +3064,7 @@ const y4 = class y4 extends h {
|
|
|
3064
3064
|
`;
|
|
3065
3065
|
}
|
|
3066
3066
|
};
|
|
3067
|
-
|
|
3067
|
+
H4.styles = g`
|
|
3068
3068
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
3069
3069
|
.toggle-item {
|
|
3070
3070
|
position: relative; z-index: 0; box-sizing: border-box;
|
|
@@ -3100,7 +3100,7 @@ y4.styles = g`
|
|
|
3100
3100
|
.toggle-item--selected .toggle-item__icon { color: var(--color-gray-7); }
|
|
3101
3101
|
.toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-4); }
|
|
3102
3102
|
`;
|
|
3103
|
-
let q =
|
|
3103
|
+
let q = H4;
|
|
3104
3104
|
F([
|
|
3105
3105
|
s({ reflect: !0 })
|
|
3106
3106
|
], q.prototype, "value");
|
|
@@ -3127,12 +3127,12 @@ function J2(r) {
|
|
|
3127
3127
|
}
|
|
3128
3128
|
customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group", Y);
|
|
3129
3129
|
customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item", q);
|
|
3130
|
-
var B7 = Object.defineProperty,
|
|
3130
|
+
var B7 = Object.defineProperty, m3 = (r, e, t, o) => {
|
|
3131
3131
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3132
3132
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3133
3133
|
return i && B7(e, t, i), i;
|
|
3134
3134
|
};
|
|
3135
|
-
const
|
|
3135
|
+
const b3 = "anduin-tooltip:show", W5 = "anduin-tooltip:hide", y3 = "anduin-tooltip:trigger-mounted", H3 = "anduin-tooltip:content-popup-mounted", _3 = "anduin-tooltip:content-popup-unmounted", L3 = "anduin-tooltip:visibility-changed", F7 = [
|
|
3136
3136
|
"top-start",
|
|
3137
3137
|
"top-center",
|
|
3138
3138
|
"top-end",
|
|
@@ -3146,7 +3146,7 @@ const be = "anduin-tooltip:show", W5 = "anduin-tooltip:hide", He = "anduin-toolt
|
|
|
3146
3146
|
"left-center",
|
|
3147
3147
|
"left-end"
|
|
3148
3148
|
];
|
|
3149
|
-
function
|
|
3149
|
+
function De(r, e, t, o, i) {
|
|
3150
3150
|
switch (o) {
|
|
3151
3151
|
case "top-start":
|
|
3152
3152
|
return { left: r.left, top: r.top - t - i };
|
|
@@ -3176,20 +3176,20 @@ function D3(r, e, t, o, i) {
|
|
|
3176
3176
|
return { left: 0, top: 0 };
|
|
3177
3177
|
}
|
|
3178
3178
|
}
|
|
3179
|
-
function
|
|
3179
|
+
function Pe(r, e) {
|
|
3180
3180
|
return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
|
|
3181
3181
|
}
|
|
3182
|
-
function
|
|
3182
|
+
function Be(r, e) {
|
|
3183
3183
|
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);
|
|
3184
3184
|
return i < t || n < o ? 0 : (i - t) * (n - o);
|
|
3185
3185
|
}
|
|
3186
3186
|
function O7(r, e, t, o = 8) {
|
|
3187
3187
|
const i = window.innerWidth, n = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: n }, d = e.width, c = e.height;
|
|
3188
|
-
if (!
|
|
3188
|
+
if (!Pe(
|
|
3189
3189
|
{ left: r.left, top: r.top, right: r.right, bottom: r.bottom },
|
|
3190
3190
|
l
|
|
3191
3191
|
)) return null;
|
|
3192
|
-
const C =
|
|
3192
|
+
const C = De(r, d, c, t, o), p = F7.map((m) => ({ p: m, off: De(r, d, c, m, o) })).filter(({ off: m }) => Pe({ left: m.left, top: m.top, right: m.left + d, bottom: m.top + c }, l));
|
|
3193
3193
|
if (p.length === 0)
|
|
3194
3194
|
return {
|
|
3195
3195
|
placement: t,
|
|
@@ -3197,7 +3197,7 @@ function O7(r, e, t, o = 8) {
|
|
|
3197
3197
|
top: Math.round(Math.min(Math.max(C.top, 0), n - c))
|
|
3198
3198
|
};
|
|
3199
3199
|
p.sort((m, V) => {
|
|
3200
|
-
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 =
|
|
3200
|
+
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 = Be(_, l), M = Be(v, l);
|
|
3201
3201
|
if (M !== x) return M - x;
|
|
3202
3202
|
const A = 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);
|
|
3203
3203
|
return A - U;
|
|
@@ -3225,13 +3225,13 @@ const _4 = class _4 extends h {
|
|
|
3225
3225
|
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;
|
|
3226
3226
|
}
|
|
3227
3227
|
connectedCallback() {
|
|
3228
|
-
super.connectedCallback(), this.addEventListener(
|
|
3228
|
+
super.connectedCallback(), this.addEventListener(y3, (e) => {
|
|
3229
3229
|
e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
|
|
3230
|
-
}), this.addEventListener(
|
|
3230
|
+
}), this.addEventListener(H3, (e) => {
|
|
3231
3231
|
e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
|
|
3232
|
-
}), this.addEventListener(
|
|
3232
|
+
}), this.addEventListener(_3, (e) => {
|
|
3233
3233
|
e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
|
|
3234
|
-
}), this.addEventListener(
|
|
3234
|
+
}), this.addEventListener(b3, (e) => {
|
|
3235
3235
|
e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
|
|
3236
3236
|
}), this.addEventListener(W5, (e) => {
|
|
3237
3237
|
e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
|
|
@@ -3276,7 +3276,7 @@ const _4 = class _4 extends h {
|
|
|
3276
3276
|
}
|
|
3277
3277
|
}
|
|
3278
3278
|
broadcastVisibilityChanged(e) {
|
|
3279
|
-
this.dispatchEvent(new CustomEvent(
|
|
3279
|
+
this.dispatchEvent(new CustomEvent(L3, { detail: e, bubbles: !1, composed: !1 }));
|
|
3280
3280
|
}
|
|
3281
3281
|
render() {
|
|
3282
3282
|
return a`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
|
|
@@ -3293,19 +3293,19 @@ _4.styles = g`
|
|
|
3293
3293
|
:host { display: inline-flex; position: relative; max-width: 100%; font-family: var(--font-sans); }
|
|
3294
3294
|
.tooltip-root { display: inline-flex; position: relative; max-width: 100%; }
|
|
3295
3295
|
`;
|
|
3296
|
-
let
|
|
3297
|
-
|
|
3296
|
+
let H2 = _4;
|
|
3297
|
+
m3([
|
|
3298
3298
|
s({ type: Boolean })
|
|
3299
|
-
],
|
|
3300
|
-
|
|
3299
|
+
], H2.prototype, "disabled");
|
|
3300
|
+
m3([
|
|
3301
3301
|
s()
|
|
3302
|
-
],
|
|
3302
|
+
], H2.prototype, "placement");
|
|
3303
3303
|
const L4 = class L4 extends h {
|
|
3304
3304
|
firstUpdated() {
|
|
3305
3305
|
requestAnimationFrame(() => {
|
|
3306
|
-
this.dispatchEvent(new CustomEvent(
|
|
3306
|
+
this.dispatchEvent(new CustomEvent(y3, { detail: this, bubbles: !0, composed: !0 }));
|
|
3307
3307
|
}), this.addEventListener("pointerenter", () => {
|
|
3308
|
-
this.dispatchEvent(new CustomEvent(
|
|
3308
|
+
this.dispatchEvent(new CustomEvent(b3, { bubbles: !0, composed: !0 }));
|
|
3309
3309
|
}), this.addEventListener("click", () => {
|
|
3310
3310
|
this.dispatchEvent(new CustomEvent(W5, { bubbles: !0, composed: !0 }));
|
|
3311
3311
|
});
|
|
@@ -3335,7 +3335,7 @@ const V4 = class V4 extends h {
|
|
|
3335
3335
|
connectedCallback() {
|
|
3336
3336
|
super.connectedCallback();
|
|
3337
3337
|
const e = this.closest("anduin-tooltip");
|
|
3338
|
-
e && e.addEventListener(
|
|
3338
|
+
e && e.addEventListener(L3, (t) => {
|
|
3339
3339
|
const o = t.detail;
|
|
3340
3340
|
o.startsWith("show:") ? this.showPopup(o.slice(5)) : this.hidePopup();
|
|
3341
3341
|
});
|
|
@@ -3374,10 +3374,10 @@ const V4 = class V4 extends h {
|
|
|
3374
3374
|
const c = d.querySelector("anduin-tooltip-trigger");
|
|
3375
3375
|
c && this.setupGraceAreaListeners(c, o);
|
|
3376
3376
|
}
|
|
3377
|
-
this.dispatchEvent(new CustomEvent(
|
|
3377
|
+
this.dispatchEvent(new CustomEvent(H3, { detail: o, bubbles: !0, composed: !0 }));
|
|
3378
3378
|
}
|
|
3379
3379
|
hidePopup() {
|
|
3380
|
-
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(
|
|
3380
|
+
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(_3, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
|
|
3381
3381
|
}
|
|
3382
3382
|
render() {
|
|
3383
3383
|
return a`<div class="tooltip-content-wrapper"></div>`;
|
|
@@ -3408,7 +3408,7 @@ V4.styles = g`
|
|
|
3408
3408
|
.tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
|
|
3409
3409
|
`;
|
|
3410
3410
|
let h5 = V4;
|
|
3411
|
-
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip",
|
|
3411
|
+
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", H2);
|
|
3412
3412
|
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", p5);
|
|
3413
3413
|
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", h5);
|
|
3414
3414
|
var I7 = Object.defineProperty, N7 = (r, e, t, o) => {
|
|
@@ -3698,10 +3698,10 @@ R1([
|
|
|
3698
3698
|
s({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
3699
3699
|
], X.prototype, "fullWidth");
|
|
3700
3700
|
R1([
|
|
3701
|
-
|
|
3701
|
+
y()
|
|
3702
3702
|
], X.prototype, "_visible");
|
|
3703
3703
|
R1([
|
|
3704
|
-
|
|
3704
|
+
y()
|
|
3705
3705
|
], X.prototype, "_closing");
|
|
3706
3706
|
R1([
|
|
3707
3707
|
R(".popover__trigger")
|
|
@@ -3917,16 +3917,16 @@ var K7 = Object.defineProperty, E1 = (r, e, t, o) => {
|
|
|
3917
3917
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3918
3918
|
return i && K7(e, t, i), i;
|
|
3919
3919
|
};
|
|
3920
|
-
const o2 = "anduin-close", Q2 = "anduin-after-close", e5 = 300, t5 = 200,
|
|
3921
|
-
let s2 = 0,
|
|
3920
|
+
const o2 = "anduin-close", Q2 = "anduin-after-close", e5 = 300, t5 = 200, Fe = 250;
|
|
3921
|
+
let s2 = 0, V3 = "";
|
|
3922
3922
|
function W7() {
|
|
3923
|
-
typeof document > "u" || (s2 === 0 && (
|
|
3923
|
+
typeof document > "u" || (s2 === 0 && (V3 = document.body.style.overflow, document.body.style.overflow = "hidden"), s2++);
|
|
3924
3924
|
}
|
|
3925
|
-
function
|
|
3926
|
-
typeof document > "u" || s2 !== 0 && (s2--, s2 === 0 && (document.body.style.overflow =
|
|
3925
|
+
function Oe() {
|
|
3926
|
+
typeof document > "u" || s2 !== 0 && (s2--, s2 === 0 && (document.body.style.overflow = V3));
|
|
3927
3927
|
}
|
|
3928
3928
|
var h1;
|
|
3929
|
-
const
|
|
3929
|
+
const H1 = (h1 = class extends h {
|
|
3930
3930
|
constructor() {
|
|
3931
3931
|
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) => {
|
|
3932
3932
|
e.stopPropagation();
|
|
@@ -3939,14 +3939,14 @@ const y1 = (h1 = class extends h {
|
|
|
3939
3939
|
}
|
|
3940
3940
|
e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown"), this._holdsScrollLock || (this._holdsScrollLock = !0, W7())) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(
|
|
3941
3941
|
() => {
|
|
3942
|
-
this._leaving = !1, this.classList.remove("is-shown"), this._holdsScrollLock && (this._holdsScrollLock = !1,
|
|
3942
|
+
this._leaving = !1, this.classList.remove("is-shown"), this._holdsScrollLock && (this._holdsScrollLock = !1, Oe()), this.dispatchEvent(
|
|
3943
3943
|
new CustomEvent(Q2, {
|
|
3944
3944
|
bubbles: !0,
|
|
3945
3945
|
composed: !0
|
|
3946
3946
|
})
|
|
3947
3947
|
);
|
|
3948
3948
|
},
|
|
3949
|
-
Math.max(t5,
|
|
3949
|
+
Math.max(t5, Fe)
|
|
3950
3950
|
)));
|
|
3951
3951
|
}
|
|
3952
3952
|
dispatch(e) {
|
|
@@ -3964,7 +3964,7 @@ const y1 = (h1 = class extends h {
|
|
|
3964
3964
|
super.connectedCallback(), this.addEventListener(o2, this.onAnduinClose), this.addEventListener(Q2, this.onAnduinClose);
|
|
3965
3965
|
}
|
|
3966
3966
|
disconnectedCallback() {
|
|
3967
|
-
super.disconnectedCallback(), this.removeEventListener(o2, this.onAnduinClose), this.removeEventListener(Q2, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1,
|
|
3967
|
+
super.disconnectedCallback(), this.removeEventListener(o2, this.onAnduinClose), this.removeEventListener(Q2, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, Oe());
|
|
3968
3968
|
}
|
|
3969
3969
|
render() {
|
|
3970
3970
|
const e = this._leaving, t = this.fullscreen;
|
|
@@ -4082,7 +4082,7 @@ const y1 = (h1 = class extends h {
|
|
|
4082
4082
|
forwards;
|
|
4083
4083
|
}
|
|
4084
4084
|
.overlay.is-leaving {
|
|
4085
|
-
animation: overlayOut ${
|
|
4085
|
+
animation: overlayOut ${Fe}ms
|
|
4086
4086
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
4087
4087
|
}
|
|
4088
4088
|
.modal-wrapper {
|
|
@@ -4201,26 +4201,26 @@ const y1 = (h1 = class extends h {
|
|
|
4201
4201
|
]), h1);
|
|
4202
4202
|
E1([
|
|
4203
4203
|
s({ type: Boolean, reflect: !0 })
|
|
4204
|
-
],
|
|
4204
|
+
], H1.prototype, "open");
|
|
4205
4205
|
E1([
|
|
4206
4206
|
s()
|
|
4207
|
-
],
|
|
4207
|
+
], H1.prototype, "heading");
|
|
4208
4208
|
E1([
|
|
4209
4209
|
s({ type: Boolean, attribute: "hide-header" })
|
|
4210
|
-
],
|
|
4210
|
+
], H1.prototype, "hideHeader");
|
|
4211
4211
|
E1([
|
|
4212
4212
|
s({ type: Boolean, attribute: "hide-footer" })
|
|
4213
|
-
],
|
|
4213
|
+
], H1.prototype, "hideFooter");
|
|
4214
4214
|
E1([
|
|
4215
4215
|
s({ attribute: "max-width" })
|
|
4216
|
-
],
|
|
4216
|
+
], H1.prototype, "maxWidth");
|
|
4217
4217
|
E1([
|
|
4218
4218
|
s({ type: Boolean })
|
|
4219
|
-
],
|
|
4219
|
+
], H1.prototype, "fullscreen");
|
|
4220
4220
|
E1([
|
|
4221
|
-
|
|
4222
|
-
],
|
|
4223
|
-
let Y7 =
|
|
4221
|
+
y()
|
|
4222
|
+
], H1.prototype, "_leaving");
|
|
4223
|
+
let Y7 = H1;
|
|
4224
4224
|
customElements.get("anduin-modal") || customElements.define("anduin-modal", Y7);
|
|
4225
4225
|
class q7 extends HTMLElement {
|
|
4226
4226
|
constructor() {
|
|
@@ -4442,7 +4442,7 @@ var Q7 = Object.defineProperty, z1 = (r, e, t, o) => {
|
|
|
4442
4442
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
4443
4443
|
return i && Q7(e, t, i), i;
|
|
4444
4444
|
};
|
|
4445
|
-
const
|
|
4445
|
+
const Te = [
|
|
4446
4446
|
{ bg: "#6172F3", text: "#ffffff" },
|
|
4447
4447
|
{ bg: "#B692F6", text: "#ffffff" },
|
|
4448
4448
|
{ bg: "#F670C7", text: "#ffffff" },
|
|
@@ -4455,7 +4455,7 @@ const T3 = [
|
|
|
4455
4455
|
function e0(r) {
|
|
4456
4456
|
let e = 0;
|
|
4457
4457
|
for (let t = 0; t < r.length; t++) e = e * 31 + r.charCodeAt(t) >>> 0;
|
|
4458
|
-
return
|
|
4458
|
+
return Te[e % Te.length];
|
|
4459
4459
|
}
|
|
4460
4460
|
function t0(r, e = 2) {
|
|
4461
4461
|
var i;
|
|
@@ -4540,7 +4540,7 @@ z1([
|
|
|
4540
4540
|
s()
|
|
4541
4541
|
], J.prototype, "shape");
|
|
4542
4542
|
z1([
|
|
4543
|
-
|
|
4543
|
+
y()
|
|
4544
4544
|
], J.prototype, "_imgError");
|
|
4545
4545
|
customElements.get("anduin-avatar") || customElements.define("anduin-avatar", J);
|
|
4546
4546
|
/**
|
|
@@ -4570,7 +4570,7 @@ class n0 {
|
|
|
4570
4570
|
* Copyright 2017 Google LLC
|
|
4571
4571
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4572
4572
|
*/
|
|
4573
|
-
class
|
|
4573
|
+
class y5 extends n0 {
|
|
4574
4574
|
constructor(e) {
|
|
4575
4575
|
if (super(e), this.it = u, e.type !== i0.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
4576
4576
|
}
|
|
@@ -4584,16 +4584,16 @@ class H5 extends n0 {
|
|
|
4584
4584
|
return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
|
|
4585
4585
|
}
|
|
4586
4586
|
}
|
|
4587
|
-
|
|
4587
|
+
y5.directiveName = "unsafeHTML", y5.resultType = 1;
|
|
4588
4588
|
/**
|
|
4589
4589
|
* @license
|
|
4590
4590
|
* Copyright 2017 Google LLC
|
|
4591
4591
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4592
4592
|
*/
|
|
4593
|
-
class
|
|
4593
|
+
class H5 extends y5 {
|
|
4594
4594
|
}
|
|
4595
|
-
|
|
4596
|
-
const r0 = o0(
|
|
4595
|
+
H5.directiveName = "unsafeSVG", H5.resultType = 2;
|
|
4596
|
+
const r0 = o0(H5), l0 = {
|
|
4597
4597
|
archive: {
|
|
4598
4598
|
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"/>
|
|
4599
4599
|
<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"/>
|
|
@@ -4846,7 +4846,7 @@ function a0(r, e) {
|
|
|
4846
4846
|
if (t[o]) return t[o];
|
|
4847
4847
|
return null;
|
|
4848
4848
|
}
|
|
4849
|
-
var d0 = Object.defineProperty,
|
|
4849
|
+
var d0 = Object.defineProperty, x3 = (r, e, t, o) => {
|
|
4850
4850
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
4851
4851
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
4852
4852
|
return i && d0(e, t, i), i;
|
|
@@ -4877,10 +4877,10 @@ S4.styles = g`
|
|
|
4877
4877
|
svg { display: block; }
|
|
4878
4878
|
`;
|
|
4879
4879
|
let _2 = S4;
|
|
4880
|
-
|
|
4880
|
+
x3([
|
|
4881
4881
|
s()
|
|
4882
4882
|
], _2.prototype, "type");
|
|
4883
|
-
|
|
4883
|
+
x3([
|
|
4884
4884
|
s({ type: Number })
|
|
4885
4885
|
], _2.prototype, "size");
|
|
4886
4886
|
customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", _2);
|
|
@@ -4889,7 +4889,7 @@ var c0 = Object.defineProperty, S1 = (r, e, t, o) => {
|
|
|
4889
4889
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
4890
4890
|
return i && c0(e, t, i), i;
|
|
4891
4891
|
};
|
|
4892
|
-
const
|
|
4892
|
+
const Ie = {
|
|
4893
4893
|
gray: "info",
|
|
4894
4894
|
primary: "infoCircleLine",
|
|
4895
4895
|
success: "checkCircle",
|
|
@@ -4915,7 +4915,7 @@ const I3 = {
|
|
|
4915
4915
|
this.dismiss();
|
|
4916
4916
|
}
|
|
4917
4917
|
render() {
|
|
4918
|
-
const e =
|
|
4918
|
+
const e = Ie[this.variant] ?? Ie.gray;
|
|
4919
4919
|
return a`
|
|
4920
4920
|
<div
|
|
4921
4921
|
class="toast toast--${this.variant} ${this._dismissing ? "toast--dismissing" : ""}"
|
|
@@ -5080,7 +5080,7 @@ S1([
|
|
|
5080
5080
|
s()
|
|
5081
5081
|
], f1.prototype, "description");
|
|
5082
5082
|
S1([
|
|
5083
|
-
|
|
5083
|
+
y()
|
|
5084
5084
|
], f1.prototype, "_dismissing");
|
|
5085
5085
|
S1([
|
|
5086
5086
|
R(".toast")
|
|
@@ -5182,7 +5182,7 @@ S1([
|
|
|
5182
5182
|
s()
|
|
5183
5183
|
], L2.prototype, "position");
|
|
5184
5184
|
S1([
|
|
5185
|
-
|
|
5185
|
+
y()
|
|
5186
5186
|
], L2.prototype, "_toasts");
|
|
5187
5187
|
customElements.get("anduin-toaster") || customElements.define("anduin-toaster", L2);
|
|
5188
5188
|
const lt = {
|
|
@@ -5210,7 +5210,7 @@ function p0(r = "bottom-left") {
|
|
|
5210
5210
|
const e = document.createElement("anduin-toaster");
|
|
5211
5211
|
return e.position = r, document.body.appendChild(e), i5.set(r, e), e;
|
|
5212
5212
|
}
|
|
5213
|
-
var h0 = Object.defineProperty,
|
|
5213
|
+
var h0 = Object.defineProperty, M3 = (r, e, t, o) => {
|
|
5214
5214
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
5215
5215
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5216
5216
|
return i && h0(e, t, i), i;
|
|
@@ -5309,10 +5309,10 @@ P4.styles = g`
|
|
|
5309
5309
|
}
|
|
5310
5310
|
`;
|
|
5311
5311
|
let V2 = P4;
|
|
5312
|
-
|
|
5312
|
+
M3([
|
|
5313
5313
|
s({ type: Boolean })
|
|
5314
5314
|
], V2.prototype, "checked");
|
|
5315
|
-
|
|
5315
|
+
M3([
|
|
5316
5316
|
s({ type: Boolean })
|
|
5317
5317
|
], V2.prototype, "disabled");
|
|
5318
5318
|
customElements.get("anduin-switcher") || customElements.define("anduin-switcher", V2);
|
|
@@ -5321,7 +5321,7 @@ var g0 = Object.defineProperty, S = (r, e, t, o) => {
|
|
|
5321
5321
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5322
5322
|
return i && g0(e, t, i), i;
|
|
5323
5323
|
};
|
|
5324
|
-
const
|
|
5324
|
+
const Ne = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
5325
5325
|
constructor() {
|
|
5326
5326
|
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.clearable = !0, this._open = !1, this._query = "", this._onOutsideClick = (e) => {
|
|
5327
5327
|
var t;
|
|
@@ -5353,14 +5353,14 @@ const N3 = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
|
5353
5353
|
e.key === "Escape" && (this._open = !1, this._query = "", (t = this._triggerEl) == null || t.focus());
|
|
5354
5354
|
}
|
|
5355
5355
|
_onClear(e) {
|
|
5356
|
-
e.stopPropagation(), this.clearable && (this.value = "", this.dispatchEvent(new CustomEvent(
|
|
5356
|
+
e.stopPropagation(), this.clearable && (this.value = "", this.dispatchEvent(new CustomEvent(Ne, {
|
|
5357
5357
|
detail: "",
|
|
5358
5358
|
bubbles: !0,
|
|
5359
5359
|
composed: !0
|
|
5360
5360
|
})));
|
|
5361
5361
|
}
|
|
5362
5362
|
_selectOption(e) {
|
|
5363
|
-
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(
|
|
5363
|
+
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(Ne, {
|
|
5364
5364
|
detail: e.value,
|
|
5365
5365
|
bubbles: !0,
|
|
5366
5366
|
composed: !0
|
|
@@ -5387,7 +5387,7 @@ const N3 = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
|
5387
5387
|
return this.options.filter((t) => t.label.toLowerCase().includes(e));
|
|
5388
5388
|
}
|
|
5389
5389
|
render() {
|
|
5390
|
-
const e = this.options.find((
|
|
5390
|
+
const e = this.options.find((l) => l.value === this.value), t = (e == null ? void 0 : e.label) ?? "", o = e ? e.icon ?? "" : this.icon, i = this._filteredOptions, n = this.clearable && !!this.value && !this.disabled;
|
|
5391
5391
|
return a`
|
|
5392
5392
|
<button
|
|
5393
5393
|
class="trigger trigger--${this.appearance} trigger--${this.variant}${this.size === "small" ? " trigger--small" : ""}${this.value ? " has-value" : ""}"
|
|
@@ -5400,11 +5400,11 @@ const N3 = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
|
5400
5400
|
>
|
|
5401
5401
|
${o && t ? a`<anduin-icon name="${o}" size="16"></anduin-icon>` : u}
|
|
5402
5402
|
<span class="trigger__label${t ? "" : " trigger__label--placeholder"}">${t || this.placeholder}</span>
|
|
5403
|
-
<span class="trigger__caret${
|
|
5403
|
+
<span class="trigger__caret${n ? " trigger__caret--clearable" : ""}">
|
|
5404
5404
|
<span class="trigger__chevron">
|
|
5405
5405
|
<anduin-icon name="caretDown" size="16"></anduin-icon>
|
|
5406
5406
|
</span>
|
|
5407
|
-
${
|
|
5407
|
+
${n ? a`
|
|
5408
5408
|
<span class="trigger__clear" @click=${this._onClear}>
|
|
5409
5409
|
<anduin-icon name="crossSmall" size="16"></anduin-icon>
|
|
5410
5410
|
</span>
|
|
@@ -5419,25 +5419,25 @@ const N3 = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
|
5419
5419
|
<anduin-input
|
|
5420
5420
|
placeholder="Search ..."
|
|
5421
5421
|
.value=${this._query}
|
|
5422
|
-
@anduin-input:change=${(
|
|
5423
|
-
this._query =
|
|
5422
|
+
@anduin-input:change=${(l) => {
|
|
5423
|
+
this._query = l.detail;
|
|
5424
5424
|
}}
|
|
5425
5425
|
></anduin-input>
|
|
5426
5426
|
</div>
|
|
5427
5427
|
` : u}
|
|
5428
5428
|
<div class="options">
|
|
5429
|
-
${i.length ? i.map((
|
|
5429
|
+
${i.length ? i.map((l) => a`
|
|
5430
5430
|
<div
|
|
5431
5431
|
class="option"
|
|
5432
5432
|
role="option"
|
|
5433
|
-
aria-selected=${
|
|
5434
|
-
@click=${() => this._selectOption(
|
|
5433
|
+
aria-selected=${l.value === this.value}
|
|
5434
|
+
@click=${() => this._selectOption(l)}
|
|
5435
5435
|
>
|
|
5436
5436
|
<span class="option__check">
|
|
5437
|
-
${
|
|
5437
|
+
${l.value === this.value ? a`<anduin-icon name="checkSmall" size="16"></anduin-icon>` : u}
|
|
5438
5438
|
</span>
|
|
5439
|
-
${
|
|
5440
|
-
<span class="option__label">${
|
|
5439
|
+
${l.icon ? a`<anduin-icon name="${l.icon}" size="16"></anduin-icon>` : u}
|
|
5440
|
+
<span class="option__label">${l.label}</span>
|
|
5441
5441
|
</div>
|
|
5442
5442
|
`) : a`<div class="empty">No results</div>`}
|
|
5443
5443
|
</div>
|
|
@@ -5559,8 +5559,12 @@ B4.styles = g`
|
|
|
5559
5559
|
}
|
|
5560
5560
|
.trigger__clear:hover { color: var(--color-gray-9, #101828); background-color: var(--color-gray-3); }
|
|
5561
5561
|
.trigger__clear:active { background-color: var(--color-gray-4); }
|
|
5562
|
-
/* Scoped to --clearable so
|
|
5563
|
-
|
|
5562
|
+
/* Scoped to --clearable so the chevron only fades when there is a × to
|
|
5563
|
+
reveal: unscoped, it fades out to show a × that is not there and the caret
|
|
5564
|
+
is simply gone while hovered. --clearable is set under exactly the
|
|
5565
|
+
condition the × renders (clearable, a value, not disabled) — not on
|
|
5566
|
+
the clearable flag alone, which left a filter resting on '' or a disabled
|
|
5567
|
+
dropdown with no caret on hover. */
|
|
5564
5568
|
.trigger__caret--clearable:hover .trigger__chevron { opacity: 0; }
|
|
5565
5569
|
.trigger__caret:hover .trigger__clear { opacity: 1; }
|
|
5566
5570
|
|
|
@@ -5666,10 +5670,10 @@ S([
|
|
|
5666
5670
|
s({ converter: (r) => r !== "false" })
|
|
5667
5671
|
], Z.prototype, "clearable");
|
|
5668
5672
|
S([
|
|
5669
|
-
|
|
5673
|
+
y()
|
|
5670
5674
|
], Z.prototype, "_open");
|
|
5671
5675
|
S([
|
|
5672
|
-
|
|
5676
|
+
y()
|
|
5673
5677
|
], Z.prototype, "_query");
|
|
5674
5678
|
S([
|
|
5675
5679
|
R(".trigger")
|
|
@@ -5686,7 +5690,7 @@ var f0 = Object.defineProperty, a1 = (r, e, t, o) => {
|
|
|
5686
5690
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5687
5691
|
return i && f0(e, t, i), i;
|
|
5688
5692
|
};
|
|
5689
|
-
const n2 = "anduin-close", o5 = "anduin-after-close", v0 = 300,
|
|
5693
|
+
const n2 = "anduin-close", o5 = "anduin-after-close", v0 = 300, je = 250, m0 = /* @__PURE__ */ new Map([
|
|
5690
5694
|
["320", 320],
|
|
5691
5695
|
["360", 360],
|
|
5692
5696
|
["400", 400],
|
|
@@ -5722,7 +5726,7 @@ const n2 = "anduin-close", o5 = "anduin-after-close", v0 = 300, j3 = 250, m0 = /
|
|
|
5722
5726
|
composed: !0
|
|
5723
5727
|
})
|
|
5724
5728
|
);
|
|
5725
|
-
},
|
|
5729
|
+
}, je)));
|
|
5726
5730
|
}
|
|
5727
5731
|
_dispatch(e) {
|
|
5728
5732
|
this.dispatchEvent(
|
|
@@ -5855,7 +5859,7 @@ F4.styles = g`
|
|
|
5855
5859
|
pointer-events: auto;
|
|
5856
5860
|
}
|
|
5857
5861
|
.drawer.is-leaving {
|
|
5858
|
-
animation: drawerOut ${
|
|
5862
|
+
animation: drawerOut ${je}ms
|
|
5859
5863
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
5860
5864
|
}
|
|
5861
5865
|
/* placement="left": every rule above that assumes the right edge, flipped.
|
|
@@ -5967,10 +5971,10 @@ a1([
|
|
|
5967
5971
|
s({ type: Boolean, attribute: "allow-interact-outside" })
|
|
5968
5972
|
], j.prototype, "allowInteractOutside");
|
|
5969
5973
|
a1([
|
|
5970
|
-
|
|
5974
|
+
y()
|
|
5971
5975
|
], j.prototype, "_leaving");
|
|
5972
5976
|
a1([
|
|
5973
|
-
|
|
5977
|
+
y()
|
|
5974
5978
|
], j.prototype, "_width");
|
|
5975
5979
|
customElements.get("anduin-drawer") || customElements.define("anduin-drawer", j);
|
|
5976
5980
|
class b0 extends HTMLElement {
|
|
@@ -5989,12 +5993,12 @@ class b0 extends HTMLElement {
|
|
|
5989
5993
|
}
|
|
5990
5994
|
}
|
|
5991
5995
|
customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", b0);
|
|
5992
|
-
var
|
|
5996
|
+
var y0 = Object.defineProperty, $ = (r, e, t, o) => {
|
|
5993
5997
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
5994
5998
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5995
|
-
return i &&
|
|
5999
|
+
return i && y0(e, t, i), i;
|
|
5996
6000
|
};
|
|
5997
|
-
const n5 = "anduin-suggestion:change",
|
|
6001
|
+
const n5 = "anduin-suggestion:change", H0 = "anduin-suggestion:select", _0 = "anduin-suggestion:clear", O4 = class O4 extends h {
|
|
5998
6002
|
constructor() {
|
|
5999
6003
|
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) => {
|
|
6000
6004
|
var t;
|
|
@@ -6071,7 +6075,7 @@ const n5 = "anduin-suggestion:change", y0 = "anduin-suggestion:select", _0 = "an
|
|
|
6071
6075
|
detail: this.value,
|
|
6072
6076
|
bubbles: !0,
|
|
6073
6077
|
composed: !0
|
|
6074
|
-
})), this.dispatchEvent(new CustomEvent(
|
|
6078
|
+
})), this.dispatchEvent(new CustomEvent(H0, {
|
|
6075
6079
|
detail: e,
|
|
6076
6080
|
bubbles: !0,
|
|
6077
6081
|
composed: !0
|
|
@@ -6324,10 +6328,10 @@ $([
|
|
|
6324
6328
|
s({ attribute: "empty-text" })
|
|
6325
6329
|
], w.prototype, "emptyText");
|
|
6326
6330
|
$([
|
|
6327
|
-
|
|
6331
|
+
y()
|
|
6328
6332
|
], w.prototype, "_open");
|
|
6329
6333
|
$([
|
|
6330
|
-
|
|
6334
|
+
y()
|
|
6331
6335
|
], w.prototype, "_activeIndex");
|
|
6332
6336
|
$([
|
|
6333
6337
|
R("input")
|
|
@@ -6441,7 +6445,7 @@ W([
|
|
|
6441
6445
|
s()
|
|
6442
6446
|
], v1.prototype, "alignment");
|
|
6443
6447
|
W([
|
|
6444
|
-
|
|
6448
|
+
y()
|
|
6445
6449
|
], v1.prototype, "internalValue");
|
|
6446
6450
|
const I4 = class I4 extends h {
|
|
6447
6451
|
constructor() {
|
|
@@ -6561,8 +6565,8 @@ var x0 = Object.defineProperty, A1 = (r, e, t, o) => {
|
|
|
6561
6565
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
6562
6566
|
return i && x0(e, t, i), i;
|
|
6563
6567
|
};
|
|
6564
|
-
const M0 = "anduin-resizable:resize",
|
|
6565
|
-
function
|
|
6568
|
+
const M0 = "anduin-resizable:resize", w3 = "anduin-resizable-panel", Ue = (r) => !!r && r.tagName.toLowerCase() === w3;
|
|
6569
|
+
function Ge(r, e, t) {
|
|
6566
6570
|
const o = (r || "").trim();
|
|
6567
6571
|
if (!o) return t;
|
|
6568
6572
|
const i = parseFloat(o);
|
|
@@ -6584,7 +6588,7 @@ const N4 = class N4 extends h {
|
|
|
6584
6588
|
return this.isVertical ? e.height : e.width;
|
|
6585
6589
|
}
|
|
6586
6590
|
get panels() {
|
|
6587
|
-
return Array.from(this.querySelectorAll(`:scope > ${
|
|
6591
|
+
return Array.from(this.querySelectorAll(`:scope > ${w3}`));
|
|
6588
6592
|
}
|
|
6589
6593
|
updated() {
|
|
6590
6594
|
for (const e of this.querySelectorAll(":scope > anduin-resizable-handle"))
|
|
@@ -6644,10 +6648,10 @@ const j4 = class j4 extends h {
|
|
|
6644
6648
|
return e ? t.height : t.width;
|
|
6645
6649
|
}
|
|
6646
6650
|
minPx(e) {
|
|
6647
|
-
return
|
|
6651
|
+
return Ge(this.minSize, e, 0);
|
|
6648
6652
|
}
|
|
6649
6653
|
maxPx(e) {
|
|
6650
|
-
return
|
|
6654
|
+
return Ge(this.maxSize, e, e);
|
|
6651
6655
|
}
|
|
6652
6656
|
render() {
|
|
6653
6657
|
return a`<div class="panel" part="panel"><slot></slot></div>`;
|
|
@@ -6713,10 +6717,10 @@ const U4 = class U4 extends h {
|
|
|
6713
6717
|
this.groupVertical = e, this.setAttribute("aria-orientation", e ? "horizontal" : "vertical");
|
|
6714
6718
|
}
|
|
6715
6719
|
get prevPanel() {
|
|
6716
|
-
return
|
|
6720
|
+
return Ue(this.previousElementSibling) ? this.previousElementSibling : null;
|
|
6717
6721
|
}
|
|
6718
6722
|
get nextPanel() {
|
|
6719
|
-
return
|
|
6723
|
+
return Ue(this.nextElementSibling) ? this.nextElementSibling : null;
|
|
6720
6724
|
}
|
|
6721
6725
|
endDrag() {
|
|
6722
6726
|
if (!(!this.dragging && this.activePointerId === null)) {
|
|
@@ -6789,10 +6793,10 @@ A1([
|
|
|
6789
6793
|
s({ type: Boolean, attribute: "with-handle" })
|
|
6790
6794
|
], K1.prototype, "withHandle");
|
|
6791
6795
|
A1([
|
|
6792
|
-
|
|
6796
|
+
y()
|
|
6793
6797
|
], K1.prototype, "groupVertical");
|
|
6794
6798
|
A1([
|
|
6795
|
-
|
|
6799
|
+
y()
|
|
6796
6800
|
], K1.prototype, "dragging");
|
|
6797
6801
|
customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", B2);
|
|
6798
6802
|
customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", G1);
|
|
@@ -7011,7 +7015,7 @@ Y1([
|
|
|
7011
7015
|
s({ type: Number })
|
|
7012
7016
|
], m1.prototype, "value");
|
|
7013
7017
|
Y1([
|
|
7014
|
-
|
|
7018
|
+
y()
|
|
7015
7019
|
], m1.prototype, "internalValue");
|
|
7016
7020
|
Y1([
|
|
7017
7021
|
R(".pagination__indicator")
|
|
@@ -7313,7 +7317,7 @@ var $0 = Object.defineProperty, D1 = (r, e, t, o) => {
|
|
|
7313
7317
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
7314
7318
|
return i && $0(e, t, i), i;
|
|
7315
7319
|
};
|
|
7316
|
-
const E0 = "anduin-sidebar:select",
|
|
7320
|
+
const E0 = "anduin-sidebar:select", ee = class ee extends h {
|
|
7317
7321
|
connectedCallback() {
|
|
7318
7322
|
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "navigation");
|
|
7319
7323
|
}
|
|
@@ -7321,7 +7325,7 @@ const E0 = "anduin-sidebar:select", e3 = class e3 extends h {
|
|
|
7321
7325
|
return a`<div class="sidebar" part="sidebar"><slot></slot></div>`;
|
|
7322
7326
|
}
|
|
7323
7327
|
};
|
|
7324
|
-
|
|
7328
|
+
ee.styles = g`
|
|
7325
7329
|
:host {
|
|
7326
7330
|
display: flex;
|
|
7327
7331
|
flex-direction: column;
|
|
@@ -7336,13 +7340,13 @@ e3.styles = g`
|
|
|
7336
7340
|
min-height: 0;
|
|
7337
7341
|
}
|
|
7338
7342
|
`;
|
|
7339
|
-
let R5 =
|
|
7340
|
-
const
|
|
7343
|
+
let R5 = ee;
|
|
7344
|
+
const te = class te extends h {
|
|
7341
7345
|
render() {
|
|
7342
7346
|
return a`<div class="sidebar-content" part="content"><slot></slot></div>`;
|
|
7343
7347
|
}
|
|
7344
7348
|
};
|
|
7345
|
-
|
|
7349
|
+
te.styles = g`
|
|
7346
7350
|
:host {
|
|
7347
7351
|
display: flex;
|
|
7348
7352
|
flex-direction: column;
|
|
@@ -7357,8 +7361,8 @@ t3.styles = g`
|
|
|
7357
7361
|
padding: 12px 16px;
|
|
7358
7362
|
}
|
|
7359
7363
|
`;
|
|
7360
|
-
let $5 =
|
|
7361
|
-
const
|
|
7364
|
+
let $5 = te;
|
|
7365
|
+
const ie = class ie extends h {
|
|
7362
7366
|
constructor() {
|
|
7363
7367
|
super(...arguments), this.divider = !1;
|
|
7364
7368
|
}
|
|
@@ -7366,7 +7370,7 @@ const i3 = class i3 extends h {
|
|
|
7366
7370
|
return a`<div class="sidebar-header" part="header"><slot></slot></div>`;
|
|
7367
7371
|
}
|
|
7368
7372
|
};
|
|
7369
|
-
|
|
7373
|
+
ie.styles = g`
|
|
7370
7374
|
:host {
|
|
7371
7375
|
display: block;
|
|
7372
7376
|
flex: 0 0 auto;
|
|
@@ -7377,11 +7381,11 @@ i3.styles = g`
|
|
|
7377
7381
|
border-bottom: 1px solid var(--color-gray-3);
|
|
7378
7382
|
}
|
|
7379
7383
|
`;
|
|
7380
|
-
let F2 =
|
|
7384
|
+
let F2 = ie;
|
|
7381
7385
|
D1([
|
|
7382
7386
|
s({ type: Boolean, reflect: !0 })
|
|
7383
7387
|
], F2.prototype, "divider");
|
|
7384
|
-
const
|
|
7388
|
+
const oe = class oe extends h {
|
|
7385
7389
|
constructor() {
|
|
7386
7390
|
super(...arguments), this.divider = !1;
|
|
7387
7391
|
}
|
|
@@ -7389,7 +7393,7 @@ const o3 = class o3 extends h {
|
|
|
7389
7393
|
return a`<div class="sidebar-footer" part="footer"><slot></slot></div>`;
|
|
7390
7394
|
}
|
|
7391
7395
|
};
|
|
7392
|
-
|
|
7396
|
+
oe.styles = g`
|
|
7393
7397
|
:host {
|
|
7394
7398
|
display: block;
|
|
7395
7399
|
flex: 0 0 auto;
|
|
@@ -7400,16 +7404,16 @@ o3.styles = g`
|
|
|
7400
7404
|
border-top: 1px solid var(--color-gray-3);
|
|
7401
7405
|
}
|
|
7402
7406
|
`;
|
|
7403
|
-
let O2 =
|
|
7407
|
+
let O2 = oe;
|
|
7404
7408
|
D1([
|
|
7405
7409
|
s({ type: Boolean, reflect: !0 })
|
|
7406
7410
|
], O2.prototype, "divider");
|
|
7407
|
-
const
|
|
7411
|
+
const ne = class ne extends h {
|
|
7408
7412
|
render() {
|
|
7409
7413
|
return a`<div class="sidebar-group" part="group" role="group"><slot></slot></div>`;
|
|
7410
7414
|
}
|
|
7411
7415
|
};
|
|
7412
|
-
|
|
7416
|
+
ne.styles = g`
|
|
7413
7417
|
:host {
|
|
7414
7418
|
display: block;
|
|
7415
7419
|
}
|
|
@@ -7419,8 +7423,8 @@ n3.styles = g`
|
|
|
7419
7423
|
gap: 4px;
|
|
7420
7424
|
}
|
|
7421
7425
|
`;
|
|
7422
|
-
let E5 =
|
|
7423
|
-
const
|
|
7426
|
+
let E5 = ne;
|
|
7427
|
+
const re = class re extends h {
|
|
7424
7428
|
render() {
|
|
7425
7429
|
return a`
|
|
7426
7430
|
<div class="sidebar-group-label" part="group-label">
|
|
@@ -7431,7 +7435,7 @@ const r3 = class r3 extends h {
|
|
|
7431
7435
|
`;
|
|
7432
7436
|
}
|
|
7433
7437
|
};
|
|
7434
|
-
|
|
7438
|
+
re.styles = g`
|
|
7435
7439
|
:host {
|
|
7436
7440
|
display: block;
|
|
7437
7441
|
}
|
|
@@ -7463,13 +7467,13 @@ r3.styles = g`
|
|
|
7463
7467
|
padding-right: 6px;
|
|
7464
7468
|
}
|
|
7465
7469
|
`;
|
|
7466
|
-
let z5 =
|
|
7467
|
-
const
|
|
7470
|
+
let z5 = re;
|
|
7471
|
+
const le = class le extends h {
|
|
7468
7472
|
render() {
|
|
7469
7473
|
return a`<div class="sidebar-menu" part="menu"><slot></slot></div>`;
|
|
7470
7474
|
}
|
|
7471
7475
|
};
|
|
7472
|
-
|
|
7476
|
+
le.styles = g`
|
|
7473
7477
|
:host {
|
|
7474
7478
|
display: block;
|
|
7475
7479
|
}
|
|
@@ -7479,8 +7483,8 @@ l3.styles = g`
|
|
|
7479
7483
|
gap: 2px;
|
|
7480
7484
|
}
|
|
7481
7485
|
`;
|
|
7482
|
-
let S5 =
|
|
7483
|
-
const
|
|
7486
|
+
let S5 = le;
|
|
7487
|
+
const se = class se extends h {
|
|
7484
7488
|
constructor() {
|
|
7485
7489
|
super(...arguments), this.startIcon = "", this.selected = !1, this.disabled = !1, this.href = "", this.openNewTab = !1, this.onClick = (e) => {
|
|
7486
7490
|
if (this.disabled) {
|
|
@@ -7536,7 +7540,7 @@ const s3 = class s3 extends h {
|
|
|
7536
7540
|
`;
|
|
7537
7541
|
}
|
|
7538
7542
|
};
|
|
7539
|
-
|
|
7543
|
+
se.styles = g`
|
|
7540
7544
|
:host {
|
|
7541
7545
|
display: block;
|
|
7542
7546
|
}
|
|
@@ -7619,7 +7623,7 @@ s3.styles = g`
|
|
|
7619
7623
|
padding-right: 6px;
|
|
7620
7624
|
}
|
|
7621
7625
|
`;
|
|
7622
|
-
let b1 =
|
|
7626
|
+
let b1 = se;
|
|
7623
7627
|
D1([
|
|
7624
7628
|
s({ attribute: "start-icon" })
|
|
7625
7629
|
], b1.prototype, "startIcon");
|
|
@@ -7635,7 +7639,7 @@ D1([
|
|
|
7635
7639
|
D1([
|
|
7636
7640
|
s({ type: Boolean, attribute: "open-new-tab" })
|
|
7637
7641
|
], b1.prototype, "openNewTab");
|
|
7638
|
-
const
|
|
7642
|
+
const ae = class ae extends h {
|
|
7639
7643
|
connectedCallback() {
|
|
7640
7644
|
super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "action");
|
|
7641
7645
|
}
|
|
@@ -7643,7 +7647,7 @@ const a3 = class a3 extends h {
|
|
|
7643
7647
|
return a`<div class="sidebar-action" part="action"><slot></slot></div>`;
|
|
7644
7648
|
}
|
|
7645
7649
|
};
|
|
7646
|
-
|
|
7650
|
+
ae.styles = g`
|
|
7647
7651
|
:host {
|
|
7648
7652
|
display: flex;
|
|
7649
7653
|
align-items: center;
|
|
@@ -7653,8 +7657,8 @@ a3.styles = g`
|
|
|
7653
7657
|
align-items: center;
|
|
7654
7658
|
}
|
|
7655
7659
|
`;
|
|
7656
|
-
let A5 =
|
|
7657
|
-
const
|
|
7660
|
+
let A5 = ae;
|
|
7661
|
+
const de = class de extends h {
|
|
7658
7662
|
connectedCallback() {
|
|
7659
7663
|
super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "badge");
|
|
7660
7664
|
}
|
|
@@ -7662,7 +7666,7 @@ const d3 = class d3 extends h {
|
|
|
7662
7666
|
return a`<div class="sidebar-badge" part="badge"><slot></slot></div>`;
|
|
7663
7667
|
}
|
|
7664
7668
|
};
|
|
7665
|
-
|
|
7669
|
+
de.styles = g`
|
|
7666
7670
|
:host {
|
|
7667
7671
|
display: flex;
|
|
7668
7672
|
align-items: center;
|
|
@@ -7672,8 +7676,8 @@ d3.styles = g`
|
|
|
7672
7676
|
align-items: center;
|
|
7673
7677
|
}
|
|
7674
7678
|
`;
|
|
7675
|
-
let D5 =
|
|
7676
|
-
const
|
|
7679
|
+
let D5 = de;
|
|
7680
|
+
const ce = class ce extends h {
|
|
7677
7681
|
connectedCallback() {
|
|
7678
7682
|
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "separator");
|
|
7679
7683
|
}
|
|
@@ -7681,7 +7685,7 @@ const c3 = class c3 extends h {
|
|
|
7681
7685
|
return a`<div class="sidebar-separator" part="separator"></div>`;
|
|
7682
7686
|
}
|
|
7683
7687
|
};
|
|
7684
|
-
|
|
7688
|
+
ce.styles = g`
|
|
7685
7689
|
:host {
|
|
7686
7690
|
display: block;
|
|
7687
7691
|
}
|
|
@@ -7690,7 +7694,7 @@ c3.styles = g`
|
|
|
7690
7694
|
background-color: var(--color-gray-3);
|
|
7691
7695
|
}
|
|
7692
7696
|
`;
|
|
7693
|
-
let P5 =
|
|
7697
|
+
let P5 = ce;
|
|
7694
7698
|
customElements.get("anduin-sidebar") || customElements.define("anduin-sidebar", R5);
|
|
7695
7699
|
customElements.get("anduin-sidebar-content") || customElements.define("anduin-sidebar-content", $5);
|
|
7696
7700
|
customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", F2);
|
|
@@ -7729,7 +7733,7 @@ var S0 = Object.defineProperty, e1 = (r, e, t, o) => {
|
|
|
7729
7733
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
7730
7734
|
return i && S0(e, t, i), i;
|
|
7731
7735
|
};
|
|
7732
|
-
const M2 = "anduin-calendar:change", B5 = "anduin-calendar:day-hover",
|
|
7736
|
+
const M2 = "anduin-calendar:change", B5 = "anduin-calendar:day-hover", Ke = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], We = [
|
|
7733
7737
|
"January",
|
|
7734
7738
|
"February",
|
|
7735
7739
|
"March",
|
|
@@ -7742,7 +7746,7 @@ const M2 = "anduin-calendar:change", B5 = "anduin-calendar:day-hover", K3 = ["Ja
|
|
|
7742
7746
|
"October",
|
|
7743
7747
|
"November",
|
|
7744
7748
|
"December"
|
|
7745
|
-
], A0 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
7749
|
+
], A0 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], Ye = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
|
7746
7750
|
function P1(r, e) {
|
|
7747
7751
|
return new Date(r.getFullYear(), r.getMonth(), r.getDate() + e);
|
|
7748
7752
|
}
|
|
@@ -7750,7 +7754,7 @@ function D0(r) {
|
|
|
7750
7754
|
const e = ["th", "st", "nd", "rd"], t = r % 100;
|
|
7751
7755
|
return `${r}${e[(t - 20) % 10] ?? e[t] ?? e[0]}`;
|
|
7752
7756
|
}
|
|
7753
|
-
const
|
|
7757
|
+
const Ce = class Ce extends h {
|
|
7754
7758
|
constructor() {
|
|
7755
7759
|
super(...arguments), this.value = "", this.minDate = "", this.maxDate = "", this.rangeStart = "", this.rangeEnd = "", this.rangeMode = !1, this._viewMonth = F1().getMonth(), this._viewYear = F1().getFullYear(), this._focus = "", this._openSelect = null, this._viewSeeded = !1, this._pendingFocus = !1, this._onOutsideClick = (e) => {
|
|
7756
7760
|
this._openSelect && !e.composedPath().includes(this) && (this._openSelect = null);
|
|
@@ -7914,7 +7918,7 @@ const C3 = class C3 extends h {
|
|
|
7914
7918
|
...Array.from({ length: c }, (_, v) => v + 1)
|
|
7915
7919
|
];
|
|
7916
7920
|
for (; p.length % 7 !== 0; ) p.push(null);
|
|
7917
|
-
const f = Array.from({ length: p.length / 7 }, (_, v) => p.slice(v * 7, v * 7 + 7)), b = `${
|
|
7921
|
+
const f = Array.from({ length: p.length / 7 }, (_, v) => p.slice(v * 7, v * 7 + 7)), b = `${We[this._viewMonth]} ${this._viewYear}`, m = (() => {
|
|
7918
7922
|
const _ = this._min;
|
|
7919
7923
|
return _ ? new Date(this._viewYear, this._viewMonth, 0).getTime() < _.getTime() : !1;
|
|
7920
7924
|
})(), V = (() => {
|
|
@@ -7935,9 +7939,9 @@ const C3 = class C3 extends h {
|
|
|
7935
7939
|
<div class="calendar__header-spacer"></div>
|
|
7936
7940
|
${this._renderSelect(
|
|
7937
7941
|
"month",
|
|
7938
|
-
|
|
7942
|
+
Ke[this._viewMonth],
|
|
7939
7943
|
"Choose the month",
|
|
7940
|
-
|
|
7944
|
+
Ke.map((_, v) => ({ value: v, label: _, selected: v === this._viewMonth })),
|
|
7941
7945
|
(_) => this._selectMonth(_)
|
|
7942
7946
|
)}
|
|
7943
7947
|
${this._renderSelect(
|
|
@@ -7970,7 +7974,7 @@ const C3 = class C3 extends h {
|
|
|
7970
7974
|
<thead aria-hidden="true">
|
|
7971
7975
|
<tr>
|
|
7972
7976
|
${A0.map((_, v) => a`
|
|
7973
|
-
<th class="calendar__day-header" aria-label="${
|
|
7977
|
+
<th class="calendar__day-header" aria-label="${Ye[v]}">${_}</th>
|
|
7974
7978
|
`)}
|
|
7975
7979
|
</tr>
|
|
7976
7980
|
</thead>
|
|
@@ -7979,34 +7983,34 @@ const C3 = class C3 extends h {
|
|
|
7979
7983
|
<tr>
|
|
7980
7984
|
${_.map((v) => {
|
|
7981
7985
|
if (v === null) return a`<td class="calendar__day-cell"></td>`;
|
|
7982
|
-
const x = new Date(this._viewYear, this._viewMonth, v), M = L1(x), A = x.getTime(), U = this._isDisabled(x), X1 = !!o && A === o.getTime(), t1 = !!i && A === i.getTime(),
|
|
7986
|
+
const x = new Date(this._viewYear, this._viewMonth, v), M = L1(x), A = x.getTime(), U = this._isDisabled(x), X1 = !!o && A === o.getTime(), t1 = !!i && A === i.getTime(), ve = !!o && !!i && A > o.getTime() && A < i.getTime(), me = !n && !!t && A === t.getTime(), k3 = [
|
|
7983
7987
|
"calendar__day-cell",
|
|
7984
|
-
|
|
7988
|
+
ve ? "calendar__day-cell--in-range" : "",
|
|
7985
7989
|
// Only tint the edge cell when it actually opens a span —
|
|
7986
7990
|
// a lone start marker shouldn't paint a half-rounded block.
|
|
7987
7991
|
X1 && i ? "calendar__day-cell--range-start" : "",
|
|
7988
7992
|
t1 && o ? "calendar__day-cell--range-end" : ""
|
|
7989
|
-
].filter(Boolean).join(" "),
|
|
7993
|
+
].filter(Boolean).join(" "), R3 = [
|
|
7990
7994
|
"calendar__day-button",
|
|
7991
7995
|
M === e ? "calendar__day-button--today" : "",
|
|
7992
|
-
|
|
7996
|
+
me ? "calendar__day-button--selected" : "",
|
|
7993
7997
|
X1 ? "calendar__day-button--range-start" : "",
|
|
7994
7998
|
t1 ? "calendar__day-button--range-end" : "",
|
|
7995
|
-
|
|
7999
|
+
ve ? "calendar__day-button--in-range" : "",
|
|
7996
8000
|
U ? "calendar__day-button--disabled" : ""
|
|
7997
8001
|
].filter(Boolean).join(" ");
|
|
7998
8002
|
return a`
|
|
7999
8003
|
<td
|
|
8000
|
-
class="${
|
|
8004
|
+
class="${k3}"
|
|
8001
8005
|
role="gridcell"
|
|
8002
|
-
aria-selected="${
|
|
8006
|
+
aria-selected="${me || X1 || t1}"
|
|
8003
8007
|
>
|
|
8004
8008
|
<button
|
|
8005
8009
|
type="button"
|
|
8006
|
-
class="${
|
|
8010
|
+
class="${R3}"
|
|
8007
8011
|
part="day"
|
|
8008
8012
|
aria-disabled="${U}"
|
|
8009
|
-
aria-label="${
|
|
8013
|
+
aria-label="${Ye[x.getDay()]}, ${We[x.getMonth()]} ${D0(v)}, ${x.getFullYear()}"
|
|
8010
8014
|
tabindex="${M === l ? 0 : -1}"
|
|
8011
8015
|
@click=${() => {
|
|
8012
8016
|
U || this._pick(x);
|
|
@@ -8026,7 +8030,7 @@ const C3 = class C3 extends h {
|
|
|
8026
8030
|
`;
|
|
8027
8031
|
}
|
|
8028
8032
|
};
|
|
8029
|
-
|
|
8033
|
+
Ce.styles = g`
|
|
8030
8034
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8031
8035
|
|
|
8032
8036
|
.calendar { display: flex; flex-direction: column; font-family: inherit; font-size: 13px; }
|
|
@@ -8121,7 +8125,7 @@ C3.styles = g`
|
|
|
8121
8125
|
.calendar__day-button--in-range { color: var(--color-primary-7, var(--color-primary-5)); }
|
|
8122
8126
|
.calendar__day-button--in-range:hover { background-color: var(--color-primary-2); }
|
|
8123
8127
|
`;
|
|
8124
|
-
let I =
|
|
8128
|
+
let I = Ce;
|
|
8125
8129
|
e1([
|
|
8126
8130
|
s({ reflect: !0 })
|
|
8127
8131
|
], I.prototype, "value");
|
|
@@ -8141,16 +8145,16 @@ e1([
|
|
|
8141
8145
|
s({ type: Boolean, attribute: "range-mode" })
|
|
8142
8146
|
], I.prototype, "rangeMode");
|
|
8143
8147
|
e1([
|
|
8144
|
-
|
|
8148
|
+
y()
|
|
8145
8149
|
], I.prototype, "_viewMonth");
|
|
8146
8150
|
e1([
|
|
8147
|
-
|
|
8151
|
+
y()
|
|
8148
8152
|
], I.prototype, "_viewYear");
|
|
8149
8153
|
e1([
|
|
8150
|
-
|
|
8154
|
+
y()
|
|
8151
8155
|
], I.prototype, "_focus");
|
|
8152
8156
|
e1([
|
|
8153
|
-
|
|
8157
|
+
y()
|
|
8154
8158
|
], I.prototype, "_openSelect");
|
|
8155
8159
|
customElements.get("anduin-calendar") || customElements.define("anduin-calendar", I);
|
|
8156
8160
|
var P0 = Object.defineProperty, q1 = (r, e, t, o) => {
|
|
@@ -8158,7 +8162,7 @@ var P0 = Object.defineProperty, q1 = (r, e, t, o) => {
|
|
|
8158
8162
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8159
8163
|
return i && P0(e, t, i), i;
|
|
8160
8164
|
};
|
|
8161
|
-
const B0 = "anduin-date-range:change",
|
|
8165
|
+
const B0 = "anduin-date-range:change", pe = class pe extends h {
|
|
8162
8166
|
constructor() {
|
|
8163
8167
|
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) => {
|
|
8164
8168
|
e.stopPropagation();
|
|
@@ -8229,10 +8233,10 @@ const B0 = "anduin-date-range:change", p3 = class p3 extends h {
|
|
|
8229
8233
|
return a`<div class="date-range" part="date-range"><slot></slot></div>`;
|
|
8230
8234
|
}
|
|
8231
8235
|
};
|
|
8232
|
-
|
|
8236
|
+
pe.styles = g`
|
|
8233
8237
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8234
8238
|
`;
|
|
8235
|
-
let Q =
|
|
8239
|
+
let Q = pe;
|
|
8236
8240
|
q1([
|
|
8237
8241
|
s({ attribute: "start-date", reflect: !0 })
|
|
8238
8242
|
], Q.prototype, "startDate");
|
|
@@ -8246,12 +8250,12 @@ q1([
|
|
|
8246
8250
|
s({ attribute: "max-date" })
|
|
8247
8251
|
], Q.prototype, "maxDate");
|
|
8248
8252
|
q1([
|
|
8249
|
-
|
|
8253
|
+
y()
|
|
8250
8254
|
], Q.prototype, "_anchor");
|
|
8251
8255
|
q1([
|
|
8252
|
-
|
|
8256
|
+
y()
|
|
8253
8257
|
], Q.prototype, "_hover");
|
|
8254
|
-
const
|
|
8258
|
+
const he = class he extends h {
|
|
8255
8259
|
constructor() {
|
|
8256
8260
|
super(...arguments), this._host = null;
|
|
8257
8261
|
}
|
|
@@ -8280,10 +8284,10 @@ const h3 = class h3 extends h {
|
|
|
8280
8284
|
return a`<anduin-calendar part="calendar" range-mode></anduin-calendar>`;
|
|
8281
8285
|
}
|
|
8282
8286
|
};
|
|
8283
|
-
|
|
8287
|
+
he.styles = g`
|
|
8284
8288
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8285
8289
|
`;
|
|
8286
|
-
let T2 =
|
|
8290
|
+
let T2 = he;
|
|
8287
8291
|
class F0 extends T2 {
|
|
8288
8292
|
constructor() {
|
|
8289
8293
|
super(...arguments), this.panelRole = "start";
|
|
@@ -8294,7 +8298,7 @@ class O0 extends T2 {
|
|
|
8294
8298
|
super(...arguments), this.panelRole = "end";
|
|
8295
8299
|
}
|
|
8296
8300
|
}
|
|
8297
|
-
const
|
|
8301
|
+
const ue = class ue extends h {
|
|
8298
8302
|
render() {
|
|
8299
8303
|
return a`
|
|
8300
8304
|
<div class="date-range-default" part="layout">
|
|
@@ -8304,12 +8308,12 @@ const u3 = class u3 extends h {
|
|
|
8304
8308
|
`;
|
|
8305
8309
|
}
|
|
8306
8310
|
};
|
|
8307
|
-
|
|
8311
|
+
ue.styles = g`
|
|
8308
8312
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8309
8313
|
|
|
8310
8314
|
.date-range-default { display: flex; flex-direction: row; gap: 16px; }
|
|
8311
8315
|
`;
|
|
8312
|
-
let F5 =
|
|
8316
|
+
let F5 = ue;
|
|
8313
8317
|
customElements.get("anduin-date-range") || customElements.define("anduin-date-range", Q);
|
|
8314
8318
|
customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", F5);
|
|
8315
8319
|
customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", F0);
|
|
@@ -8319,15 +8323,15 @@ var T0 = Object.defineProperty, O = (r, e, t, o) => {
|
|
|
8319
8323
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8320
8324
|
return i && T0(e, t, i), i;
|
|
8321
8325
|
};
|
|
8322
|
-
const O5 = "anduin-date-input:change",
|
|
8326
|
+
const O5 = "anduin-date-input:change", qe = { M: "month", d: "day", y: "year" };
|
|
8323
8327
|
function I0(r) {
|
|
8324
8328
|
const e = [];
|
|
8325
8329
|
let t = 0, o = 0;
|
|
8326
8330
|
for (; o < r.length; ) {
|
|
8327
|
-
const i = r[o], n =
|
|
8331
|
+
const i = r[o], n = qe[i];
|
|
8328
8332
|
if (!n) {
|
|
8329
8333
|
let d = "";
|
|
8330
|
-
for (; o < r.length && !
|
|
8334
|
+
for (; o < r.length && !qe[r[o]]; ) d += r[o++];
|
|
8331
8335
|
e.push({ literal: d }), t += d.length;
|
|
8332
8336
|
continue;
|
|
8333
8337
|
}
|
|
@@ -8639,13 +8643,13 @@ O([
|
|
|
8639
8643
|
s()
|
|
8640
8644
|
], E.prototype, "inputid");
|
|
8641
8645
|
O([
|
|
8642
|
-
|
|
8646
|
+
y()
|
|
8643
8647
|
], E.prototype, "_digits");
|
|
8644
8648
|
O([
|
|
8645
|
-
|
|
8649
|
+
y()
|
|
8646
8650
|
], E.prototype, "_active");
|
|
8647
8651
|
O([
|
|
8648
|
-
|
|
8652
|
+
y()
|
|
8649
8653
|
], E.prototype, "_buffer");
|
|
8650
8654
|
O([
|
|
8651
8655
|
R("input")
|
|
@@ -8656,13 +8660,13 @@ var N0 = Object.defineProperty, T = (r, e, t, o) => {
|
|
|
8656
8660
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8657
8661
|
return i && N0(e, t, i), i;
|
|
8658
8662
|
};
|
|
8659
|
-
const j0 = "anduin-date-picker:change",
|
|
8663
|
+
const j0 = "anduin-date-picker:change", Z3 = { M: "month", d: "day", y: "year" };
|
|
8660
8664
|
function U0(r, e) {
|
|
8661
8665
|
if (!r) return null;
|
|
8662
8666
|
const t = {};
|
|
8663
8667
|
let o = 0, i = 0;
|
|
8664
8668
|
for (; i < e.length; ) {
|
|
8665
|
-
const d = e[i], c =
|
|
8669
|
+
const d = e[i], c = Z3[d];
|
|
8666
8670
|
if (!c) {
|
|
8667
8671
|
i++, o++;
|
|
8668
8672
|
continue;
|
|
@@ -8686,7 +8690,7 @@ function G0(r, e) {
|
|
|
8686
8690
|
};
|
|
8687
8691
|
let o = "", i = 0;
|
|
8688
8692
|
for (; i < e.length; ) {
|
|
8689
|
-
const n = e[i], l =
|
|
8693
|
+
const n = e[i], l = Z3[n];
|
|
8690
8694
|
if (!l) {
|
|
8691
8695
|
o += n, i++;
|
|
8692
8696
|
continue;
|
|
@@ -8698,7 +8702,7 @@ function G0(r, e) {
|
|
|
8698
8702
|
}
|
|
8699
8703
|
return o;
|
|
8700
8704
|
}
|
|
8701
|
-
const
|
|
8705
|
+
const ge = class ge extends h {
|
|
8702
8706
|
constructor() {
|
|
8703
8707
|
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) => {
|
|
8704
8708
|
e.stopPropagation(), this._open = e.detail;
|
|
@@ -8774,7 +8778,7 @@ const g3 = class g3 extends h {
|
|
|
8774
8778
|
`;
|
|
8775
8779
|
}
|
|
8776
8780
|
};
|
|
8777
|
-
|
|
8781
|
+
ge.styles = g`
|
|
8778
8782
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8779
8783
|
|
|
8780
8784
|
.datepicker { display: block; }
|
|
@@ -8784,7 +8788,7 @@ g3.styles = g`
|
|
|
8784
8788
|
/* The popover contributes 8px; the calendar reads better with 16px total. */
|
|
8785
8789
|
.datepicker__panel { padding: 8px; display: flex; flex-direction: column; }
|
|
8786
8790
|
`;
|
|
8787
|
-
let z =
|
|
8791
|
+
let z = ge;
|
|
8788
8792
|
T([
|
|
8789
8793
|
s()
|
|
8790
8794
|
], z.prototype, "format");
|
|
@@ -8819,7 +8823,7 @@ T([
|
|
|
8819
8823
|
s()
|
|
8820
8824
|
], z.prototype, "inputid");
|
|
8821
8825
|
T([
|
|
8822
|
-
|
|
8826
|
+
y()
|
|
8823
8827
|
], z.prototype, "_open");
|
|
8824
8828
|
T([
|
|
8825
8829
|
R("anduin-date-input")
|
|
@@ -8833,7 +8837,7 @@ var K0 = Object.defineProperty, L = (r, e, t, o) => {
|
|
|
8833
8837
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8834
8838
|
return i && K0(e, t, i), i;
|
|
8835
8839
|
};
|
|
8836
|
-
const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-table:row-click", X0 = "anduin-table:selection-change", J0 = "anduin-table:cell-context-menu", Q0 = "anduin-table:row-expand", et = "anduin-table:row-collapse", tt = "anduin-table:group-toggle",
|
|
8840
|
+
const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-table:row-click", X0 = "anduin-table:selection-change", J0 = "anduin-table:cell-context-menu", Q0 = "anduin-table:row-expand", et = "anduin-table:row-collapse", tt = "anduin-table:group-toggle", Xe = "anduin-table:column-resize", Je = 40, i1 = (r) => r.type === "selection", d1 = (r, e) => {
|
|
8837
8841
|
if (!e) return;
|
|
8838
8842
|
let t = r;
|
|
8839
8843
|
for (const o of e.split(".")) {
|
|
@@ -8841,7 +8845,7 @@ const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-t
|
|
|
8841
8845
|
t = t[o];
|
|
8842
8846
|
}
|
|
8843
8847
|
return t;
|
|
8844
|
-
}, it = (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" }),
|
|
8848
|
+
}, it = (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" }), fe = class fe extends h {
|
|
8845
8849
|
constructor() {
|
|
8846
8850
|
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 = () => {
|
|
8847
8851
|
this.isDraggingRange = !1;
|
|
@@ -8857,7 +8861,7 @@ const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-t
|
|
|
8857
8861
|
}));
|
|
8858
8862
|
}, this.onResizeEnd = (e) => {
|
|
8859
8863
|
const t = this.resizeDrag;
|
|
8860
|
-
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(
|
|
8864
|
+
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(Xe, {
|
|
8861
8865
|
detail: { column: e, field: t.key, width: t.width },
|
|
8862
8866
|
bubbles: !0,
|
|
8863
8867
|
composed: !0
|
|
@@ -9189,7 +9193,7 @@ const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-t
|
|
|
9189
9193
|
*/
|
|
9190
9194
|
fitColumnsMinWidth() {
|
|
9191
9195
|
return this.layout !== "fit-columns" || !this.columns.some((e) => e.minWidth) ? 0 : this.columns.reduce((e, t, o) => {
|
|
9192
|
-
const i = i1(t) && !t.width && !t.minWidth ?
|
|
9196
|
+
const i = i1(t) && !t.width && !t.minWidth ? Je : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
|
|
9193
9197
|
return e + i;
|
|
9194
9198
|
}, 0);
|
|
9195
9199
|
}
|
|
@@ -9215,7 +9219,7 @@ const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-t
|
|
|
9215
9219
|
const i = this.columnKey(t, o);
|
|
9216
9220
|
if (this.resizedWidths[i] === void 0) return;
|
|
9217
9221
|
const n = { ...this.resizedWidths };
|
|
9218
|
-
delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(
|
|
9222
|
+
delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(Xe, {
|
|
9219
9223
|
detail: { column: t, field: i, width: null },
|
|
9220
9224
|
bubbles: !0,
|
|
9221
9225
|
composed: !0
|
|
@@ -9479,7 +9483,7 @@ const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-t
|
|
|
9479
9483
|
`;
|
|
9480
9484
|
}
|
|
9481
9485
|
};
|
|
9482
|
-
|
|
9486
|
+
fe.styles = g`
|
|
9483
9487
|
:host {
|
|
9484
9488
|
display: flex;
|
|
9485
9489
|
flex-direction: column;
|
|
@@ -9696,7 +9700,7 @@ f3.styles = g`
|
|
|
9696
9700
|
text-align: right;
|
|
9697
9701
|
}
|
|
9698
9702
|
.table__cell--selection {
|
|
9699
|
-
width: ${
|
|
9703
|
+
width: ${Je}px;
|
|
9700
9704
|
padding: 8px 0 8px 12px;
|
|
9701
9705
|
}
|
|
9702
9706
|
|
|
@@ -9845,113 +9849,113 @@ f3.styles = g`
|
|
|
9845
9849
|
cursor: progress;
|
|
9846
9850
|
}
|
|
9847
9851
|
`;
|
|
9848
|
-
let
|
|
9852
|
+
let H = fe;
|
|
9849
9853
|
L([
|
|
9850
9854
|
s({ attribute: !1 })
|
|
9851
|
-
],
|
|
9855
|
+
], H.prototype, "columns");
|
|
9852
9856
|
L([
|
|
9853
9857
|
s({ attribute: !1 })
|
|
9854
|
-
],
|
|
9858
|
+
], H.prototype, "data");
|
|
9855
9859
|
L([
|
|
9856
9860
|
s({ reflect: !0 })
|
|
9857
|
-
],
|
|
9861
|
+
], H.prototype, "layout");
|
|
9858
9862
|
L([
|
|
9859
9863
|
s({ attribute: "render-mode", reflect: !0 })
|
|
9860
|
-
],
|
|
9864
|
+
], H.prototype, "renderMode");
|
|
9861
9865
|
L([
|
|
9862
9866
|
s({ type: Number, attribute: "row-height" })
|
|
9863
|
-
],
|
|
9867
|
+
], H.prototype, "rowHeight");
|
|
9864
9868
|
L([
|
|
9865
9869
|
s()
|
|
9866
|
-
],
|
|
9870
|
+
], H.prototype, "height");
|
|
9867
9871
|
L([
|
|
9868
9872
|
s({ attribute: "max-height" })
|
|
9869
|
-
],
|
|
9873
|
+
], H.prototype, "maxHeight");
|
|
9870
9874
|
L([
|
|
9871
9875
|
s({ attribute: "min-height" })
|
|
9872
|
-
],
|
|
9876
|
+
], H.prototype, "minHeight");
|
|
9873
9877
|
L([
|
|
9874
9878
|
s({
|
|
9875
9879
|
attribute: "resizable-columns",
|
|
9876
9880
|
converter: (r) => r !== "false"
|
|
9877
9881
|
})
|
|
9878
|
-
],
|
|
9882
|
+
], H.prototype, "resizableColumns");
|
|
9879
9883
|
L([
|
|
9880
9884
|
s({ type: Boolean, attribute: "hide-header", reflect: !0 })
|
|
9881
|
-
],
|
|
9885
|
+
], H.prototype, "hideHeader");
|
|
9882
9886
|
L([
|
|
9883
9887
|
s({ type: Boolean, reflect: !0 })
|
|
9884
|
-
],
|
|
9888
|
+
], H.prototype, "loading");
|
|
9885
9889
|
L([
|
|
9886
9890
|
s({ reflect: !0 })
|
|
9887
|
-
],
|
|
9891
|
+
], H.prototype, "selectable");
|
|
9888
9892
|
L([
|
|
9889
9893
|
s({ attribute: "index-column" })
|
|
9890
|
-
],
|
|
9894
|
+
], H.prototype, "indexColumn");
|
|
9891
9895
|
L([
|
|
9892
9896
|
s({ attribute: "column-align" })
|
|
9893
|
-
],
|
|
9897
|
+
], H.prototype, "columnAlign");
|
|
9894
9898
|
L([
|
|
9895
9899
|
s({ attribute: "column-vertical-align" })
|
|
9896
|
-
],
|
|
9900
|
+
], H.prototype, "columnVerticalAlign");
|
|
9897
9901
|
L([
|
|
9898
9902
|
s({ attribute: "sort-field" })
|
|
9899
|
-
],
|
|
9903
|
+
], H.prototype, "sortField");
|
|
9900
9904
|
L([
|
|
9901
9905
|
s({ attribute: "sort-direction" })
|
|
9902
|
-
],
|
|
9906
|
+
], H.prototype, "sortDirection");
|
|
9903
9907
|
L([
|
|
9904
9908
|
s({ type: Boolean, attribute: "data-tree", reflect: !0 })
|
|
9905
|
-
],
|
|
9909
|
+
], H.prototype, "dataTree");
|
|
9906
9910
|
L([
|
|
9907
9911
|
s({ attribute: "tree-children-field" })
|
|
9908
|
-
],
|
|
9912
|
+
], H.prototype, "treeChildrenField");
|
|
9909
9913
|
L([
|
|
9910
9914
|
s({ type: Number, attribute: "tree-child-indent" })
|
|
9911
|
-
],
|
|
9915
|
+
], H.prototype, "treeChildIndent");
|
|
9912
9916
|
L([
|
|
9913
9917
|
s({ attribute: "group-by" })
|
|
9914
|
-
],
|
|
9918
|
+
], H.prototype, "groupBy");
|
|
9915
9919
|
L([
|
|
9916
9920
|
s({ attribute: !1 })
|
|
9917
|
-
],
|
|
9921
|
+
], H.prototype, "selectedRows");
|
|
9918
9922
|
L([
|
|
9919
9923
|
s({ attribute: !1 })
|
|
9920
|
-
],
|
|
9924
|
+
], H.prototype, "isRowDisabled");
|
|
9921
9925
|
L([
|
|
9922
9926
|
s({ attribute: !1 })
|
|
9923
|
-
],
|
|
9927
|
+
], H.prototype, "onStartExpanded");
|
|
9924
9928
|
L([
|
|
9925
9929
|
s({ attribute: !1 })
|
|
9926
|
-
],
|
|
9930
|
+
], H.prototype, "rowClass");
|
|
9927
9931
|
L([
|
|
9928
9932
|
s({ attribute: !1 })
|
|
9929
|
-
],
|
|
9933
|
+
], H.prototype, "renderGroupHeader");
|
|
9930
9934
|
L([
|
|
9931
|
-
|
|
9932
|
-
],
|
|
9935
|
+
y()
|
|
9936
|
+
], H.prototype, "expandedKeys");
|
|
9933
9937
|
L([
|
|
9934
|
-
|
|
9935
|
-
],
|
|
9938
|
+
y()
|
|
9939
|
+
], H.prototype, "collapsedGroups");
|
|
9936
9940
|
L([
|
|
9937
|
-
|
|
9938
|
-
],
|
|
9941
|
+
y()
|
|
9942
|
+
], H.prototype, "virtualScrollTop");
|
|
9939
9943
|
L([
|
|
9940
|
-
|
|
9941
|
-
],
|
|
9944
|
+
y()
|
|
9945
|
+
], H.prototype, "viewportHeight");
|
|
9942
9946
|
L([
|
|
9943
|
-
|
|
9944
|
-
],
|
|
9947
|
+
y()
|
|
9948
|
+
], H.prototype, "scrolledX");
|
|
9945
9949
|
L([
|
|
9946
|
-
|
|
9947
|
-
],
|
|
9950
|
+
y()
|
|
9951
|
+
], H.prototype, "scrollableXEnd");
|
|
9948
9952
|
L([
|
|
9949
|
-
|
|
9950
|
-
],
|
|
9953
|
+
y()
|
|
9954
|
+
], H.prototype, "resizedWidths");
|
|
9951
9955
|
L([
|
|
9952
|
-
|
|
9953
|
-
],
|
|
9954
|
-
customElements.get("anduin-table") || customElements.define("anduin-table",
|
|
9956
|
+
y()
|
|
9957
|
+
], H.prototype, "resizingKey");
|
|
9958
|
+
customElements.get("anduin-table") || customElements.define("anduin-table", H);
|
|
9955
9959
|
export {
|
|
9956
9960
|
F2 as $,
|
|
9957
9961
|
T1 as A,
|
|
@@ -9991,17 +9995,17 @@ export {
|
|
|
9991
9995
|
p2 as a5,
|
|
9992
9996
|
w as a6,
|
|
9993
9997
|
V2 as a7,
|
|
9994
|
-
|
|
9998
|
+
y2 as a8,
|
|
9995
9999
|
n1 as a9,
|
|
9996
10000
|
j0 as aA,
|
|
9997
10001
|
B0 as aB,
|
|
9998
10002
|
o5 as aC,
|
|
9999
10003
|
n2 as aD,
|
|
10000
|
-
|
|
10001
|
-
|
|
10004
|
+
Ne as aE,
|
|
10005
|
+
f3 as aF,
|
|
10002
10006
|
u1 as aG,
|
|
10003
10007
|
l0 as aH,
|
|
10004
|
-
|
|
10008
|
+
Ae as aI,
|
|
10005
10009
|
V7 as aJ,
|
|
10006
10010
|
m5 as aK,
|
|
10007
10011
|
Q2 as aL,
|
|
@@ -10018,9 +10022,9 @@ export {
|
|
|
10018
10022
|
E0 as aW,
|
|
10019
10023
|
n5 as aX,
|
|
10020
10024
|
_0 as aY,
|
|
10021
|
-
|
|
10025
|
+
H0 as aZ,
|
|
10022
10026
|
u0 as a_,
|
|
10023
|
-
|
|
10027
|
+
H as aa,
|
|
10024
10028
|
I1 as ab,
|
|
10025
10029
|
b2 as ac,
|
|
10026
10030
|
N1 as ad,
|
|
@@ -10036,19 +10040,19 @@ export {
|
|
|
10036
10040
|
L2 as an,
|
|
10037
10041
|
Y as ao,
|
|
10038
10042
|
q as ap,
|
|
10039
|
-
|
|
10043
|
+
H2 as aq,
|
|
10040
10044
|
h5 as ar,
|
|
10041
10045
|
p5 as as,
|
|
10042
10046
|
P2 as at,
|
|
10043
10047
|
u5 as au,
|
|
10044
|
-
|
|
10048
|
+
C3 as av,
|
|
10045
10049
|
M2 as aw,
|
|
10046
10050
|
B5 as ax,
|
|
10047
10051
|
_7 as ay,
|
|
10048
10052
|
O5 as az,
|
|
10049
10053
|
E2 as b,
|
|
10050
10054
|
Y0 as b0,
|
|
10051
|
-
|
|
10055
|
+
Xe as b1,
|
|
10052
10056
|
tt as b2,
|
|
10053
10057
|
q0 as b3,
|
|
10054
10058
|
et as b4,
|
|
@@ -10056,7 +10060,7 @@ export {
|
|
|
10056
10060
|
X0 as b6,
|
|
10057
10061
|
W0 as b7,
|
|
10058
10062
|
Z7 as b8,
|
|
10059
|
-
|
|
10063
|
+
v3 as b9,
|
|
10060
10064
|
G2 as ba,
|
|
10061
10065
|
R7 as bb,
|
|
10062
10066
|
M7 as bc,
|
|
@@ -10065,16 +10069,16 @@ export {
|
|
|
10065
10069
|
c5 as bf,
|
|
10066
10070
|
P7 as bg,
|
|
10067
10071
|
D7 as bh,
|
|
10068
|
-
|
|
10069
|
-
|
|
10072
|
+
H3 as bi,
|
|
10073
|
+
_3 as bj,
|
|
10070
10074
|
W5 as bk,
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10075
|
+
b3 as bl,
|
|
10076
|
+
y3 as bm,
|
|
10077
|
+
L3 as bn,
|
|
10074
10078
|
j7 as bo,
|
|
10075
10079
|
c1 as bp,
|
|
10076
10080
|
L1 as bq,
|
|
10077
|
-
|
|
10081
|
+
p3 as br,
|
|
10078
10082
|
D as bs,
|
|
10079
10083
|
a0 as bt,
|
|
10080
10084
|
F1 as bu,
|