@duyluonganduin/acl-web-components 0.0.57 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acl-web-components.cjs +1 -1
- package/dist/acl-web-components.d.ts +24 -0
- package/dist/acl-web-components.iife.js +188 -148
- package/dist/acl-web-components.js +1 -1
- package/dist/{anduin-table-DGYmi5iv.js → anduin-table-DRPTUmAM.js} +635 -563
- package/dist/{anduin-table-CgbMyPrV.cjs → anduin-table-X2lYnMwn.cjs} +74 -34
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +24 -0
- package/dist/react.js +2 -2
- package/package.json +1 -1
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const k2 = globalThis,
|
|
7
|
-
let
|
|
6
|
+
const k2 = globalThis, I5 = k2.ShadowRoot && (k2.ShadyCSS === void 0 || k2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, T5 = Symbol(), be = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let e3 = class {
|
|
8
8
|
constructor(e, t, o) {
|
|
9
|
-
if (this._$cssResult$ = !0, o !==
|
|
9
|
+
if (this._$cssResult$ = !0, o !== T5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = e, this.t = t;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let e = this.o;
|
|
14
14
|
const t = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (I5 && 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, T5), g = (r, ...e) => {
|
|
26
26
|
const t = r.length === 1 ? r[0] : e.reduce((o, i, n) => o + ((l) => {
|
|
27
27
|
if (l._$cssResult$ === !0) return l.cssText;
|
|
28
28
|
if (typeof l == "number") return l;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + l + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(i) + r[n + 1], r[0]);
|
|
31
|
-
return new
|
|
32
|
-
}, $
|
|
33
|
-
if (
|
|
31
|
+
return new e3(t, r, T5);
|
|
32
|
+
}, $3 = (r, e) => {
|
|
33
|
+
if (I5) 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 = I5 ? (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 I3 = (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] = I3(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 T3 {
|
|
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 T3(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 {
|
|
@@ -997,18 +997,18 @@ X5.styles = g`
|
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
999
|
`;
|
|
1000
|
-
let
|
|
1000
|
+
let I1 = X5;
|
|
1001
1001
|
U5([
|
|
1002
1002
|
s({ reflect: !0 })
|
|
1003
|
-
],
|
|
1003
|
+
], I1.prototype, "state");
|
|
1004
1004
|
U5([
|
|
1005
1005
|
s({ type: Number, reflect: !0 })
|
|
1006
|
-
],
|
|
1006
|
+
], I1.prototype, "size");
|
|
1007
1007
|
U5([
|
|
1008
1008
|
R(".ai-spinner")
|
|
1009
|
-
],
|
|
1010
|
-
customElements.get("anduin-ai-spinner") || customElements.define("anduin-ai-spinner",
|
|
1011
|
-
const
|
|
1009
|
+
], I1.prototype, "wrapper");
|
|
1010
|
+
customElements.get("anduin-ai-spinner") || customElements.define("anduin-ai-spinner", I1);
|
|
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", T2 = class T2 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";
|
|
@@ -2319,7 +2319,7 @@ const A3 = "anduin-input:change", V7 = "anduin-input:clear", I2 = class I2 exten
|
|
|
2319
2319
|
`;
|
|
2320
2320
|
}
|
|
2321
2321
|
};
|
|
2322
|
-
|
|
2322
|
+
T2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, T2.styles = g`
|
|
2323
2323
|
:host { display: block; font-family: var(--font-sans); }
|
|
2324
2324
|
|
|
2325
2325
|
.input-wrapper { position: relative; display: flex; align-items: center; }
|
|
@@ -2373,7 +2373,7 @@ I2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, I2.styles
|
|
|
2373
2373
|
}
|
|
2374
2374
|
.input__clear:hover { color: var(--color-gray-7); }
|
|
2375
2375
|
`;
|
|
2376
|
-
let B =
|
|
2376
|
+
let B = T2;
|
|
2377
2377
|
K([
|
|
2378
2378
|
s()
|
|
2379
2379
|
], B.prototype, "value");
|
|
@@ -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 }));
|
|
@@ -2554,16 +2554,16 @@ u4.styles = g`
|
|
|
2554
2554
|
.tabs { display: flex; flex-direction: column; width: 100%; }
|
|
2555
2555
|
:host([fill]) .tabs { flex: 1; min-height: 0; }
|
|
2556
2556
|
`;
|
|
2557
|
-
let
|
|
2557
|
+
let T1 = u4;
|
|
2558
2558
|
N([
|
|
2559
2559
|
s({ attribute: "default-value" })
|
|
2560
|
-
],
|
|
2560
|
+
], T1.prototype, "defaultValue");
|
|
2561
2561
|
N([
|
|
2562
2562
|
s()
|
|
2563
|
-
],
|
|
2563
|
+
], T1.prototype, "value");
|
|
2564
2564
|
N([
|
|
2565
2565
|
s({ type: Boolean, reflect: !0 })
|
|
2566
|
-
],
|
|
2566
|
+
], T1.prototype, "fill");
|
|
2567
2567
|
const g4 = class g4 extends h {
|
|
2568
2568
|
constructor() {
|
|
2569
2569
|
super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
|
|
@@ -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
|
-
],
|
|
2746
|
-
customElements.get("anduin-tabs") || customElements.define("anduin-tabs",
|
|
2744
|
+
y()
|
|
2745
|
+
], y2.prototype, "isActive");
|
|
2746
|
+
customElements.get("anduin-tabs") || customElements.define("anduin-tabs", T1);
|
|
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;
|
|
@@ -3212,7 +3212,7 @@ function O7(r, e, t, o = 8) {
|
|
|
3212
3212
|
function C5(r) {
|
|
3213
3213
|
return r.split("-")[0] || "top";
|
|
3214
3214
|
}
|
|
3215
|
-
function
|
|
3215
|
+
function I7(r, e, t) {
|
|
3216
3216
|
let o = !1, i = t.length - 1;
|
|
3217
3217
|
for (let n = 0; n < t.length; n++) {
|
|
3218
3218
|
const l = t[n][0], d = t[n][1], c = t[i][0], C = t[i][1];
|
|
@@ -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
|
});
|
|
@@ -3325,7 +3325,7 @@ const V4 = class V4 extends h {
|
|
|
3325
3325
|
var n, l;
|
|
3326
3326
|
if (!this.graceArea) return;
|
|
3327
3327
|
const t = e.target, o = ((n = this.triggerEl) == null ? void 0 : n.contains(t)) ?? !1, i = ((l = this.popupEl) == null ? void 0 : l.contains(t)) ?? !1;
|
|
3328
|
-
o || i ? this.graceArea = null :
|
|
3328
|
+
o || i ? this.graceArea = null : I7(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(W5, { bubbles: !0, composed: !0 })));
|
|
3329
3329
|
}, this.handleTriggerLeave = (e) => {
|
|
3330
3330
|
this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
|
|
3331
3331
|
}, this.handleContentLeave = (e) => {
|
|
@@ -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,13 +3408,13 @@ 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
|
-
var
|
|
3414
|
+
var T7 = Object.defineProperty, N7 = (r, e, t, o) => {
|
|
3415
3415
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3416
3416
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3417
|
-
return i &&
|
|
3417
|
+
return i && T7(e, t, i), i;
|
|
3418
3418
|
};
|
|
3419
3419
|
const j7 = "anduin-well-close:click", x4 = class x4 extends h {
|
|
3420
3420
|
constructor() {
|
|
@@ -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 Ie = [
|
|
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 Ie[e % Ie.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 Te = {
|
|
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 = Te[this.variant] ?? Te.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,23 +5309,23 @@ 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);
|
|
5319
|
-
var g0 = Object.defineProperty,
|
|
5319
|
+
var g0 = Object.defineProperty, $ = (r, e, t, o) => {
|
|
5320
5320
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
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
|
-
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) => {
|
|
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._activeIndex = -1, this._onOutsideClick = (e) => {
|
|
5327
5327
|
var t;
|
|
5328
|
-
!this.contains(e.target) && !((t = this.shadowRoot) != null && t.contains(e.target)) && (this._open = !1, this._query = "");
|
|
5328
|
+
!this.contains(e.target) && !((t = this.shadowRoot) != null && t.contains(e.target)) && (this._open = !1, this._query = "", this._activeIndex = -1);
|
|
5329
5329
|
}, this._onScrollOrResize = () => {
|
|
5330
5330
|
this._open && this._updatePosition();
|
|
5331
5331
|
};
|
|
@@ -5337,34 +5337,61 @@ const N3 = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
|
5337
5337
|
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
|
|
5338
5338
|
}
|
|
5339
5339
|
updated(e) {
|
|
5340
|
-
|
|
5341
|
-
|
|
5340
|
+
var t, o;
|
|
5341
|
+
e.has("_activeIndex") && this._activeIndex >= 0 && ((o = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".option--active")) == null || o.scrollIntoView({ block: "nearest" })), e.has("_open") && this._open && requestAnimationFrame(() => {
|
|
5342
|
+
var i, n;
|
|
5342
5343
|
if (this._updatePosition(), this.searchable) {
|
|
5343
|
-
const
|
|
5344
|
-
|
|
5344
|
+
const l = (n = (i = this._searchEl) == null ? void 0 : i.shadowRoot) == null ? void 0 : n.querySelector("input");
|
|
5345
|
+
l == null || l.focus();
|
|
5345
5346
|
}
|
|
5346
5347
|
});
|
|
5347
5348
|
}
|
|
5348
5349
|
_onTriggerClick() {
|
|
5349
|
-
this.disabled || (this._open = !this._open, this._open || (this._query = ""));
|
|
5350
|
+
this.disabled || (this._open = !this._open, this._activeIndex = -1, this._open || (this._query = ""));
|
|
5350
5351
|
}
|
|
5352
|
+
// Bound on both the trigger and the panel, so it hears keys whether focus is
|
|
5353
|
+
// on the trigger (searchable off) or in the search input (keydown is composed
|
|
5354
|
+
// and bubbles out of anduin-input's shadow root). Before 0.0.59 only Escape
|
|
5355
|
+
// was handled; the arrows and Enter are new and act only while the panel is
|
|
5356
|
+
// open, so a closed dropdown's keyboard behaviour is unchanged.
|
|
5351
5357
|
_onKeyDown(e) {
|
|
5352
5358
|
var t;
|
|
5353
|
-
e.key === "Escape"
|
|
5359
|
+
if (e.key === "Escape") {
|
|
5360
|
+
this._open = !1, this._query = "", this._activeIndex = -1, (t = this._triggerEl) == null || t.focus();
|
|
5361
|
+
return;
|
|
5362
|
+
}
|
|
5363
|
+
if (this._open) {
|
|
5364
|
+
if (e.key === "ArrowDown" || e.key === "ArrowUp")
|
|
5365
|
+
e.preventDefault(), this._moveActive(e.key === "ArrowDown" ? 1 : -1);
|
|
5366
|
+
else if (e.key === "Enter" && this._activeIndex >= 0) {
|
|
5367
|
+
e.preventDefault();
|
|
5368
|
+
const o = this._filteredOptions[this._activeIndex];
|
|
5369
|
+
o && this._selectOption(o);
|
|
5370
|
+
}
|
|
5371
|
+
}
|
|
5372
|
+
}
|
|
5373
|
+
/** Step the highlight by `dir`, skipping disabled rows; stays put at either end. */
|
|
5374
|
+
_moveActive(e) {
|
|
5375
|
+
const t = this._filteredOptions;
|
|
5376
|
+
for (let o = this._activeIndex + e; o >= 0 && o < t.length; o += e)
|
|
5377
|
+
if (!t[o].disabled) {
|
|
5378
|
+
this._activeIndex = o;
|
|
5379
|
+
return;
|
|
5380
|
+
}
|
|
5354
5381
|
}
|
|
5355
5382
|
_onClear(e) {
|
|
5356
|
-
e.stopPropagation(), this.clearable && (this.value = "", this.dispatchEvent(new CustomEvent(
|
|
5383
|
+
e.stopPropagation(), this.clearable && (this.value = "", this.dispatchEvent(new CustomEvent(Ne, {
|
|
5357
5384
|
detail: "",
|
|
5358
5385
|
bubbles: !0,
|
|
5359
5386
|
composed: !0
|
|
5360
5387
|
})));
|
|
5361
5388
|
}
|
|
5362
5389
|
_selectOption(e) {
|
|
5363
|
-
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(
|
|
5390
|
+
e.disabled || (this.value = e.value, this._open = !1, this._query = "", this._activeIndex = -1, this.dispatchEvent(new CustomEvent(Ne, {
|
|
5364
5391
|
detail: e.value,
|
|
5365
5392
|
bubbles: !0,
|
|
5366
5393
|
composed: !0
|
|
5367
|
-
}));
|
|
5394
|
+
})));
|
|
5368
5395
|
}
|
|
5369
5396
|
_updatePosition() {
|
|
5370
5397
|
const e = this._triggerEl, t = this._panelEl;
|
|
@@ -5387,7 +5414,7 @@ const N3 = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
|
5387
5414
|
return this.options.filter((t) => t.label.toLowerCase().includes(e));
|
|
5388
5415
|
}
|
|
5389
5416
|
render() {
|
|
5390
|
-
const e = this.options.find((
|
|
5417
|
+
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
5418
|
return a`
|
|
5392
5419
|
<button
|
|
5393
5420
|
class="trigger trigger--${this.appearance} trigger--${this.variant}${this.size === "small" ? " trigger--small" : ""}${this.value ? " has-value" : ""}"
|
|
@@ -5400,11 +5427,11 @@ const N3 = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
|
5400
5427
|
>
|
|
5401
5428
|
${o && t ? a`<anduin-icon name="${o}" size="16"></anduin-icon>` : u}
|
|
5402
5429
|
<span class="trigger__label${t ? "" : " trigger__label--placeholder"}">${t || this.placeholder}</span>
|
|
5403
|
-
<span class="trigger__caret${
|
|
5430
|
+
<span class="trigger__caret${n ? " trigger__caret--clearable" : ""}">
|
|
5404
5431
|
<span class="trigger__chevron">
|
|
5405
5432
|
<anduin-icon name="caretDown" size="16"></anduin-icon>
|
|
5406
5433
|
</span>
|
|
5407
|
-
${
|
|
5434
|
+
${n ? a`
|
|
5408
5435
|
<span class="trigger__clear" @click=${this._onClear}>
|
|
5409
5436
|
<anduin-icon name="crossSmall" size="16"></anduin-icon>
|
|
5410
5437
|
</span>
|
|
@@ -5419,25 +5446,32 @@ const N3 = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
|
5419
5446
|
<anduin-input
|
|
5420
5447
|
placeholder="Search ..."
|
|
5421
5448
|
.value=${this._query}
|
|
5422
|
-
@anduin-input:change=${(
|
|
5423
|
-
this._query =
|
|
5449
|
+
@anduin-input:change=${(l) => {
|
|
5450
|
+
this._query = l.detail, this._activeIndex = -1;
|
|
5424
5451
|
}}
|
|
5425
5452
|
></anduin-input>
|
|
5426
5453
|
</div>
|
|
5427
5454
|
` : u}
|
|
5428
5455
|
<div class="options">
|
|
5429
|
-
${i.length ? i.map((
|
|
5456
|
+
${i.length ? i.map((l, d) => a`
|
|
5430
5457
|
<div
|
|
5431
|
-
class="option"
|
|
5458
|
+
class="option${l.disabled ? " option--disabled" : ""}${l.description ? " option--described" : ""}${d === this._activeIndex ? " option--active" : ""}"
|
|
5432
5459
|
role="option"
|
|
5433
|
-
aria-selected=${
|
|
5434
|
-
|
|
5460
|
+
aria-selected=${l.value === this.value}
|
|
5461
|
+
aria-disabled=${l.disabled ? "true" : u}
|
|
5462
|
+
@click=${() => this._selectOption(l)}
|
|
5463
|
+
@mouseenter=${() => {
|
|
5464
|
+
this._activeIndex >= 0 && !l.disabled && (this._activeIndex = d);
|
|
5465
|
+
}}
|
|
5435
5466
|
>
|
|
5436
5467
|
<span class="option__check">
|
|
5437
|
-
${
|
|
5468
|
+
${l.value === this.value ? a`<anduin-icon name="checkSmall" size="16"></anduin-icon>` : u}
|
|
5438
5469
|
</span>
|
|
5439
|
-
${
|
|
5440
|
-
|
|
5470
|
+
${l.icon ? a`<anduin-icon name="${l.icon}" size="16"></anduin-icon>` : u}
|
|
5471
|
+
${l.description ? a`<span class="option__text">
|
|
5472
|
+
<span class="option__label">${l.label}</span>
|
|
5473
|
+
<span class="option__description" part="option-description">${l.description}</span>
|
|
5474
|
+
</span>` : a`<span class="option__label">${l.label}</span>`}
|
|
5441
5475
|
</div>
|
|
5442
5476
|
`) : a`<div class="empty">No results</div>`}
|
|
5443
5477
|
</div>
|
|
@@ -5559,8 +5593,12 @@ B4.styles = g`
|
|
|
5559
5593
|
}
|
|
5560
5594
|
.trigger__clear:hover { color: var(--color-gray-9, #101828); background-color: var(--color-gray-3); }
|
|
5561
5595
|
.trigger__clear:active { background-color: var(--color-gray-4); }
|
|
5562
|
-
/* Scoped to --clearable so
|
|
5563
|
-
|
|
5596
|
+
/* Scoped to --clearable so the chevron only fades when there is a × to
|
|
5597
|
+
reveal: unscoped, it fades out to show a × that is not there and the caret
|
|
5598
|
+
is simply gone while hovered. --clearable is set under exactly the
|
|
5599
|
+
condition the × renders (clearable, a value, not disabled) — not on
|
|
5600
|
+
the clearable flag alone, which left a filter resting on '' or a disabled
|
|
5601
|
+
dropdown with no caret on hover. */
|
|
5564
5602
|
.trigger__caret--clearable:hover .trigger__chevron { opacity: 0; }
|
|
5565
5603
|
.trigger__caret:hover .trigger__clear { opacity: 1; }
|
|
5566
5604
|
|
|
@@ -5618,9 +5656,40 @@ B4.styles = g`
|
|
|
5618
5656
|
}
|
|
5619
5657
|
.option:hover { background: var(--color-gray-2, #f2f4f7); }
|
|
5620
5658
|
.option:active { background: var(--color-gray-3, #e4e7ec); }
|
|
5659
|
+
/* Keyboard highlight. The same fill as :hover, so a row reached by arrow
|
|
5660
|
+
keys reads exactly like one under the pointer. Only ever set by a key
|
|
5661
|
+
press (see _activeIndex), so a dropdown driven by the mouse alone paints
|
|
5662
|
+
as it always did. */
|
|
5663
|
+
.option--active { background: var(--color-gray-2, #f2f4f7); }
|
|
5621
5664
|
.option__check { flex-shrink: 0; width: 16px; display: flex; align-items: center; color: var(--color-gray-7, #344054); }
|
|
5622
5665
|
.option__label { flex: 1; min-width: 0; }
|
|
5623
5666
|
|
|
5667
|
+
/* Disabled option: visible but unavailable. Opacity 0.5 is the design
|
|
5668
|
+
system's own value for anduin-select-item[disabled]. The cursor is
|
|
5669
|
+
default rather than its not-allowed, to match this library's disabled
|
|
5670
|
+
trigger (.trigger:disabled) — nothing here uses not-allowed. Hover and
|
|
5671
|
+
press draw no fill, so the row never pretends it can be picked. */
|
|
5672
|
+
.option--disabled { opacity: 0.5; cursor: default; }
|
|
5673
|
+
.option--disabled:hover,
|
|
5674
|
+
.option--disabled:active { background: transparent; }
|
|
5675
|
+
|
|
5676
|
+
/* Option with a description: two lines. The label keeps its own line and
|
|
5677
|
+
typography; the description sits under it at 12px in gray-6 (the
|
|
5678
|
+
placeholder's ink — lighter than the gray-9 label, still legible on a
|
|
5679
|
+
dimmed disabled row). The row aligns to the top so the check and icon line
|
|
5680
|
+
up with the label rather than the middle of the block; each is 16px tall
|
|
5681
|
+
against a 20px label line, hence the 2px nudge. Rows without a
|
|
5682
|
+
description never get --described, so their height is unchanged. */
|
|
5683
|
+
.option--described { align-items: flex-start; }
|
|
5684
|
+
.option--described > .option__check,
|
|
5685
|
+
.option--described > anduin-icon { margin-top: 2px; }
|
|
5686
|
+
.option__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
5687
|
+
.option__description {
|
|
5688
|
+
font-size: 12px;
|
|
5689
|
+
line-height: 16px;
|
|
5690
|
+
color: var(--color-gray-6, #667085);
|
|
5691
|
+
}
|
|
5692
|
+
|
|
5624
5693
|
.empty {
|
|
5625
5694
|
padding: 12px 16px;
|
|
5626
5695
|
font-size: 13px;
|
|
@@ -5628,65 +5697,68 @@ B4.styles = g`
|
|
|
5628
5697
|
text-align: center;
|
|
5629
5698
|
}
|
|
5630
5699
|
`;
|
|
5631
|
-
let
|
|
5632
|
-
|
|
5700
|
+
let w = B4;
|
|
5701
|
+
$([
|
|
5633
5702
|
s()
|
|
5634
|
-
],
|
|
5635
|
-
|
|
5703
|
+
], w.prototype, "value");
|
|
5704
|
+
$([
|
|
5636
5705
|
s()
|
|
5637
|
-
],
|
|
5638
|
-
|
|
5706
|
+
], w.prototype, "placeholder");
|
|
5707
|
+
$([
|
|
5639
5708
|
s({ attribute: !1 })
|
|
5640
|
-
],
|
|
5641
|
-
|
|
5709
|
+
], w.prototype, "options");
|
|
5710
|
+
$([
|
|
5642
5711
|
s()
|
|
5643
|
-
],
|
|
5644
|
-
|
|
5712
|
+
], w.prototype, "icon");
|
|
5713
|
+
$([
|
|
5645
5714
|
s({ type: Boolean })
|
|
5646
|
-
],
|
|
5647
|
-
|
|
5715
|
+
], w.prototype, "searchable");
|
|
5716
|
+
$([
|
|
5648
5717
|
s({ type: Boolean })
|
|
5649
|
-
],
|
|
5650
|
-
|
|
5718
|
+
], w.prototype, "disabled");
|
|
5719
|
+
$([
|
|
5651
5720
|
s()
|
|
5652
|
-
],
|
|
5653
|
-
|
|
5721
|
+
], w.prototype, "placement");
|
|
5722
|
+
$([
|
|
5654
5723
|
s()
|
|
5655
|
-
],
|
|
5656
|
-
|
|
5724
|
+
], w.prototype, "appearance");
|
|
5725
|
+
$([
|
|
5657
5726
|
s()
|
|
5658
|
-
],
|
|
5659
|
-
|
|
5727
|
+
], w.prototype, "variant");
|
|
5728
|
+
$([
|
|
5660
5729
|
s()
|
|
5661
|
-
],
|
|
5662
|
-
|
|
5730
|
+
], w.prototype, "size");
|
|
5731
|
+
$([
|
|
5663
5732
|
s({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
5664
|
-
],
|
|
5665
|
-
|
|
5733
|
+
], w.prototype, "fullWidth");
|
|
5734
|
+
$([
|
|
5666
5735
|
s({ converter: (r) => r !== "false" })
|
|
5667
|
-
],
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
],
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
],
|
|
5674
|
-
|
|
5736
|
+
], w.prototype, "clearable");
|
|
5737
|
+
$([
|
|
5738
|
+
y()
|
|
5739
|
+
], w.prototype, "_open");
|
|
5740
|
+
$([
|
|
5741
|
+
y()
|
|
5742
|
+
], w.prototype, "_query");
|
|
5743
|
+
$([
|
|
5744
|
+
y()
|
|
5745
|
+
], w.prototype, "_activeIndex");
|
|
5746
|
+
$([
|
|
5675
5747
|
R(".trigger")
|
|
5676
|
-
],
|
|
5677
|
-
|
|
5748
|
+
], w.prototype, "_triggerEl");
|
|
5749
|
+
$([
|
|
5678
5750
|
R(".panel")
|
|
5679
|
-
],
|
|
5680
|
-
|
|
5751
|
+
], w.prototype, "_panelEl");
|
|
5752
|
+
$([
|
|
5681
5753
|
R("anduin-input")
|
|
5682
|
-
],
|
|
5683
|
-
customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown",
|
|
5754
|
+
], w.prototype, "_searchEl");
|
|
5755
|
+
customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", w);
|
|
5684
5756
|
var f0 = Object.defineProperty, a1 = (r, e, t, o) => {
|
|
5685
5757
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
5686
5758
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5687
5759
|
return i && f0(e, t, i), i;
|
|
5688
5760
|
};
|
|
5689
|
-
const n2 = "anduin-close", o5 = "anduin-after-close", v0 = 300,
|
|
5761
|
+
const n2 = "anduin-close", o5 = "anduin-after-close", v0 = 300, je = 250, m0 = /* @__PURE__ */ new Map([
|
|
5690
5762
|
["320", 320],
|
|
5691
5763
|
["360", 360],
|
|
5692
5764
|
["400", 400],
|
|
@@ -5722,7 +5794,7 @@ const n2 = "anduin-close", o5 = "anduin-after-close", v0 = 300, j3 = 250, m0 = /
|
|
|
5722
5794
|
composed: !0
|
|
5723
5795
|
})
|
|
5724
5796
|
);
|
|
5725
|
-
},
|
|
5797
|
+
}, je)));
|
|
5726
5798
|
}
|
|
5727
5799
|
_dispatch(e) {
|
|
5728
5800
|
this.dispatchEvent(
|
|
@@ -5855,7 +5927,7 @@ F4.styles = g`
|
|
|
5855
5927
|
pointer-events: auto;
|
|
5856
5928
|
}
|
|
5857
5929
|
.drawer.is-leaving {
|
|
5858
|
-
animation: drawerOut ${
|
|
5930
|
+
animation: drawerOut ${je}ms
|
|
5859
5931
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
5860
5932
|
}
|
|
5861
5933
|
/* placement="left": every rule above that assumes the right edge, flipped.
|
|
@@ -5967,10 +6039,10 @@ a1([
|
|
|
5967
6039
|
s({ type: Boolean, attribute: "allow-interact-outside" })
|
|
5968
6040
|
], j.prototype, "allowInteractOutside");
|
|
5969
6041
|
a1([
|
|
5970
|
-
|
|
6042
|
+
y()
|
|
5971
6043
|
], j.prototype, "_leaving");
|
|
5972
6044
|
a1([
|
|
5973
|
-
|
|
6045
|
+
y()
|
|
5974
6046
|
], j.prototype, "_width");
|
|
5975
6047
|
customElements.get("anduin-drawer") || customElements.define("anduin-drawer", j);
|
|
5976
6048
|
class b0 extends HTMLElement {
|
|
@@ -5989,12 +6061,12 @@ class b0 extends HTMLElement {
|
|
|
5989
6061
|
}
|
|
5990
6062
|
}
|
|
5991
6063
|
customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", b0);
|
|
5992
|
-
var
|
|
6064
|
+
var y0 = Object.defineProperty, E = (r, e, t, o) => {
|
|
5993
6065
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
5994
6066
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5995
|
-
return i &&
|
|
6067
|
+
return i && y0(e, t, i), i;
|
|
5996
6068
|
};
|
|
5997
|
-
const n5 = "anduin-suggestion:change",
|
|
6069
|
+
const n5 = "anduin-suggestion:change", H0 = "anduin-suggestion:select", _0 = "anduin-suggestion:clear", O4 = class O4 extends h {
|
|
5998
6070
|
constructor() {
|
|
5999
6071
|
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
6072
|
var t;
|
|
@@ -6071,7 +6143,7 @@ const n5 = "anduin-suggestion:change", y0 = "anduin-suggestion:select", _0 = "an
|
|
|
6071
6143
|
detail: this.value,
|
|
6072
6144
|
bubbles: !0,
|
|
6073
6145
|
composed: !0
|
|
6074
|
-
})), this.dispatchEvent(new CustomEvent(
|
|
6146
|
+
})), this.dispatchEvent(new CustomEvent(H0, {
|
|
6075
6147
|
detail: e,
|
|
6076
6148
|
bubbles: !0,
|
|
6077
6149
|
composed: !0
|
|
@@ -6280,68 +6352,68 @@ O4.styles = g`
|
|
|
6280
6352
|
text-align: center;
|
|
6281
6353
|
}
|
|
6282
6354
|
`;
|
|
6283
|
-
let
|
|
6284
|
-
|
|
6355
|
+
let Z = O4;
|
|
6356
|
+
E([
|
|
6285
6357
|
s()
|
|
6286
|
-
],
|
|
6287
|
-
|
|
6358
|
+
], Z.prototype, "value");
|
|
6359
|
+
E([
|
|
6288
6360
|
s()
|
|
6289
|
-
],
|
|
6290
|
-
|
|
6361
|
+
], Z.prototype, "size");
|
|
6362
|
+
E([
|
|
6291
6363
|
s({ type: Boolean })
|
|
6292
|
-
],
|
|
6293
|
-
|
|
6364
|
+
], Z.prototype, "disabled");
|
|
6365
|
+
E([
|
|
6294
6366
|
s({ type: Boolean })
|
|
6295
|
-
],
|
|
6296
|
-
|
|
6367
|
+
], Z.prototype, "readonly");
|
|
6368
|
+
E([
|
|
6297
6369
|
s()
|
|
6298
|
-
],
|
|
6299
|
-
|
|
6370
|
+
], Z.prototype, "placeholder");
|
|
6371
|
+
E([
|
|
6300
6372
|
s()
|
|
6301
|
-
],
|
|
6302
|
-
|
|
6373
|
+
], Z.prototype, "inputid");
|
|
6374
|
+
E([
|
|
6303
6375
|
s()
|
|
6304
|
-
],
|
|
6305
|
-
|
|
6376
|
+
], Z.prototype, "status");
|
|
6377
|
+
E([
|
|
6306
6378
|
s({ attribute: "start-icon" })
|
|
6307
|
-
],
|
|
6308
|
-
|
|
6379
|
+
], Z.prototype, "startIcon");
|
|
6380
|
+
E([
|
|
6309
6381
|
s({ attribute: "end-icon" })
|
|
6310
|
-
],
|
|
6311
|
-
|
|
6382
|
+
], Z.prototype, "endIcon");
|
|
6383
|
+
E([
|
|
6312
6384
|
s({ type: Boolean })
|
|
6313
|
-
],
|
|
6314
|
-
|
|
6385
|
+
], Z.prototype, "clearable");
|
|
6386
|
+
E([
|
|
6315
6387
|
s({ attribute: !1 })
|
|
6316
|
-
],
|
|
6317
|
-
|
|
6388
|
+
], Z.prototype, "suggestions");
|
|
6389
|
+
E([
|
|
6318
6390
|
s({ type: Boolean })
|
|
6319
|
-
],
|
|
6320
|
-
|
|
6391
|
+
], Z.prototype, "filter");
|
|
6392
|
+
E([
|
|
6321
6393
|
s({ type: Boolean, attribute: "hide-when-empty" })
|
|
6322
|
-
],
|
|
6323
|
-
|
|
6394
|
+
], Z.prototype, "hideWhenEmpty");
|
|
6395
|
+
E([
|
|
6324
6396
|
s({ attribute: "empty-text" })
|
|
6325
|
-
],
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
],
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
],
|
|
6332
|
-
|
|
6397
|
+
], Z.prototype, "emptyText");
|
|
6398
|
+
E([
|
|
6399
|
+
y()
|
|
6400
|
+
], Z.prototype, "_open");
|
|
6401
|
+
E([
|
|
6402
|
+
y()
|
|
6403
|
+
], Z.prototype, "_activeIndex");
|
|
6404
|
+
E([
|
|
6333
6405
|
R("input")
|
|
6334
|
-
],
|
|
6335
|
-
|
|
6406
|
+
], Z.prototype, "_inputEl");
|
|
6407
|
+
E([
|
|
6336
6408
|
R(".panel")
|
|
6337
|
-
],
|
|
6338
|
-
customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion",
|
|
6409
|
+
], Z.prototype, "_panelEl");
|
|
6410
|
+
customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", Z);
|
|
6339
6411
|
var L0 = Object.defineProperty, W = (r, e, t, o) => {
|
|
6340
6412
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
6341
6413
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
6342
6414
|
return i && L0(e, t, i), i;
|
|
6343
6415
|
};
|
|
6344
|
-
const V0 = "anduin-navigation:change", _5 = "anduin-navigation-item:item-click",
|
|
6416
|
+
const V0 = "anduin-navigation:change", _5 = "anduin-navigation-item:item-click", I4 = class I4 extends h {
|
|
6345
6417
|
constructor() {
|
|
6346
6418
|
super(...arguments), this.defaultValue = "", this.value = null, this.theme = "light", this.alignment = "left", this.internalValue = "", this.onItemClick = (e) => {
|
|
6347
6419
|
e.stopPropagation();
|
|
@@ -6384,7 +6456,7 @@ const V0 = "anduin-navigation:change", _5 = "anduin-navigation-item:item-click",
|
|
|
6384
6456
|
`;
|
|
6385
6457
|
}
|
|
6386
6458
|
};
|
|
6387
|
-
|
|
6459
|
+
I4.styles = g`
|
|
6388
6460
|
:host {
|
|
6389
6461
|
display: block;
|
|
6390
6462
|
font-family: var(--font-sans);
|
|
@@ -6427,7 +6499,7 @@ T4.styles = g`
|
|
|
6427
6499
|
.navigation--center { justify-content: center; }
|
|
6428
6500
|
.navigation--right { justify-content: flex-end; }
|
|
6429
6501
|
`;
|
|
6430
|
-
let v1 =
|
|
6502
|
+
let v1 = I4;
|
|
6431
6503
|
W([
|
|
6432
6504
|
s({ attribute: "default-value" })
|
|
6433
6505
|
], v1.prototype, "defaultValue");
|
|
@@ -6441,9 +6513,9 @@ W([
|
|
|
6441
6513
|
s()
|
|
6442
6514
|
], v1.prototype, "alignment");
|
|
6443
6515
|
W([
|
|
6444
|
-
|
|
6516
|
+
y()
|
|
6445
6517
|
], v1.prototype, "internalValue");
|
|
6446
|
-
const
|
|
6518
|
+
const T4 = class T4 extends h {
|
|
6447
6519
|
constructor() {
|
|
6448
6520
|
super(...arguments), this.value = "", this.startIcon = "", this.href = "", this.disabled = !1, this.selected = !1, this.theme = "light";
|
|
6449
6521
|
}
|
|
@@ -6490,7 +6562,7 @@ const I4 = class I4 extends h {
|
|
|
6490
6562
|
`;
|
|
6491
6563
|
}
|
|
6492
6564
|
};
|
|
6493
|
-
|
|
6565
|
+
T4.styles = g`
|
|
6494
6566
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
6495
6567
|
.nav-item {
|
|
6496
6568
|
box-sizing: border-box;
|
|
@@ -6535,7 +6607,7 @@ I4.styles = g`
|
|
|
6535
6607
|
}
|
|
6536
6608
|
.nav-item__icon { display: flex; }
|
|
6537
6609
|
`;
|
|
6538
|
-
let l1 =
|
|
6610
|
+
let l1 = T4;
|
|
6539
6611
|
W([
|
|
6540
6612
|
s()
|
|
6541
6613
|
], l1.prototype, "value");
|
|
@@ -6561,8 +6633,8 @@ var x0 = Object.defineProperty, A1 = (r, e, t, o) => {
|
|
|
6561
6633
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
6562
6634
|
return i && x0(e, t, i), i;
|
|
6563
6635
|
};
|
|
6564
|
-
const M0 = "anduin-resizable:resize",
|
|
6565
|
-
function
|
|
6636
|
+
const M0 = "anduin-resizable:resize", w3 = "anduin-resizable-panel", Ue = (r) => !!r && r.tagName.toLowerCase() === w3;
|
|
6637
|
+
function Ge(r, e, t) {
|
|
6566
6638
|
const o = (r || "").trim();
|
|
6567
6639
|
if (!o) return t;
|
|
6568
6640
|
const i = parseFloat(o);
|
|
@@ -6584,7 +6656,7 @@ const N4 = class N4 extends h {
|
|
|
6584
6656
|
return this.isVertical ? e.height : e.width;
|
|
6585
6657
|
}
|
|
6586
6658
|
get panels() {
|
|
6587
|
-
return Array.from(this.querySelectorAll(`:scope > ${
|
|
6659
|
+
return Array.from(this.querySelectorAll(`:scope > ${w3}`));
|
|
6588
6660
|
}
|
|
6589
6661
|
updated() {
|
|
6590
6662
|
for (const e of this.querySelectorAll(":scope > anduin-resizable-handle"))
|
|
@@ -6644,10 +6716,10 @@ const j4 = class j4 extends h {
|
|
|
6644
6716
|
return e ? t.height : t.width;
|
|
6645
6717
|
}
|
|
6646
6718
|
minPx(e) {
|
|
6647
|
-
return
|
|
6719
|
+
return Ge(this.minSize, e, 0);
|
|
6648
6720
|
}
|
|
6649
6721
|
maxPx(e) {
|
|
6650
|
-
return
|
|
6722
|
+
return Ge(this.maxSize, e, e);
|
|
6651
6723
|
}
|
|
6652
6724
|
render() {
|
|
6653
6725
|
return a`<div class="panel" part="panel"><slot></slot></div>`;
|
|
@@ -6713,10 +6785,10 @@ const U4 = class U4 extends h {
|
|
|
6713
6785
|
this.groupVertical = e, this.setAttribute("aria-orientation", e ? "horizontal" : "vertical");
|
|
6714
6786
|
}
|
|
6715
6787
|
get prevPanel() {
|
|
6716
|
-
return
|
|
6788
|
+
return Ue(this.previousElementSibling) ? this.previousElementSibling : null;
|
|
6717
6789
|
}
|
|
6718
6790
|
get nextPanel() {
|
|
6719
|
-
return
|
|
6791
|
+
return Ue(this.nextElementSibling) ? this.nextElementSibling : null;
|
|
6720
6792
|
}
|
|
6721
6793
|
endDrag() {
|
|
6722
6794
|
if (!(!this.dragging && this.activePointerId === null)) {
|
|
@@ -6789,10 +6861,10 @@ A1([
|
|
|
6789
6861
|
s({ type: Boolean, attribute: "with-handle" })
|
|
6790
6862
|
], K1.prototype, "withHandle");
|
|
6791
6863
|
A1([
|
|
6792
|
-
|
|
6864
|
+
y()
|
|
6793
6865
|
], K1.prototype, "groupVertical");
|
|
6794
6866
|
A1([
|
|
6795
|
-
|
|
6867
|
+
y()
|
|
6796
6868
|
], K1.prototype, "dragging");
|
|
6797
6869
|
customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", B2);
|
|
6798
6870
|
customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", G1);
|
|
@@ -7011,7 +7083,7 @@ Y1([
|
|
|
7011
7083
|
s({ type: Number })
|
|
7012
7084
|
], m1.prototype, "value");
|
|
7013
7085
|
Y1([
|
|
7014
|
-
|
|
7086
|
+
y()
|
|
7015
7087
|
], m1.prototype, "internalValue");
|
|
7016
7088
|
Y1([
|
|
7017
7089
|
R(".pagination__indicator")
|
|
@@ -7313,7 +7385,7 @@ var $0 = Object.defineProperty, D1 = (r, e, t, o) => {
|
|
|
7313
7385
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
7314
7386
|
return i && $0(e, t, i), i;
|
|
7315
7387
|
};
|
|
7316
|
-
const E0 = "anduin-sidebar:select",
|
|
7388
|
+
const E0 = "anduin-sidebar:select", ee = class ee extends h {
|
|
7317
7389
|
connectedCallback() {
|
|
7318
7390
|
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "navigation");
|
|
7319
7391
|
}
|
|
@@ -7321,7 +7393,7 @@ const E0 = "anduin-sidebar:select", e3 = class e3 extends h {
|
|
|
7321
7393
|
return a`<div class="sidebar" part="sidebar"><slot></slot></div>`;
|
|
7322
7394
|
}
|
|
7323
7395
|
};
|
|
7324
|
-
|
|
7396
|
+
ee.styles = g`
|
|
7325
7397
|
:host {
|
|
7326
7398
|
display: flex;
|
|
7327
7399
|
flex-direction: column;
|
|
@@ -7336,13 +7408,13 @@ e3.styles = g`
|
|
|
7336
7408
|
min-height: 0;
|
|
7337
7409
|
}
|
|
7338
7410
|
`;
|
|
7339
|
-
let R5 =
|
|
7340
|
-
const
|
|
7411
|
+
let R5 = ee;
|
|
7412
|
+
const te = class te extends h {
|
|
7341
7413
|
render() {
|
|
7342
7414
|
return a`<div class="sidebar-content" part="content"><slot></slot></div>`;
|
|
7343
7415
|
}
|
|
7344
7416
|
};
|
|
7345
|
-
|
|
7417
|
+
te.styles = g`
|
|
7346
7418
|
:host {
|
|
7347
7419
|
display: flex;
|
|
7348
7420
|
flex-direction: column;
|
|
@@ -7357,8 +7429,8 @@ t3.styles = g`
|
|
|
7357
7429
|
padding: 12px 16px;
|
|
7358
7430
|
}
|
|
7359
7431
|
`;
|
|
7360
|
-
let $5 =
|
|
7361
|
-
const
|
|
7432
|
+
let $5 = te;
|
|
7433
|
+
const ie = class ie extends h {
|
|
7362
7434
|
constructor() {
|
|
7363
7435
|
super(...arguments), this.divider = !1;
|
|
7364
7436
|
}
|
|
@@ -7366,7 +7438,7 @@ const i3 = class i3 extends h {
|
|
|
7366
7438
|
return a`<div class="sidebar-header" part="header"><slot></slot></div>`;
|
|
7367
7439
|
}
|
|
7368
7440
|
};
|
|
7369
|
-
|
|
7441
|
+
ie.styles = g`
|
|
7370
7442
|
:host {
|
|
7371
7443
|
display: block;
|
|
7372
7444
|
flex: 0 0 auto;
|
|
@@ -7377,11 +7449,11 @@ i3.styles = g`
|
|
|
7377
7449
|
border-bottom: 1px solid var(--color-gray-3);
|
|
7378
7450
|
}
|
|
7379
7451
|
`;
|
|
7380
|
-
let F2 =
|
|
7452
|
+
let F2 = ie;
|
|
7381
7453
|
D1([
|
|
7382
7454
|
s({ type: Boolean, reflect: !0 })
|
|
7383
7455
|
], F2.prototype, "divider");
|
|
7384
|
-
const
|
|
7456
|
+
const oe = class oe extends h {
|
|
7385
7457
|
constructor() {
|
|
7386
7458
|
super(...arguments), this.divider = !1;
|
|
7387
7459
|
}
|
|
@@ -7389,7 +7461,7 @@ const o3 = class o3 extends h {
|
|
|
7389
7461
|
return a`<div class="sidebar-footer" part="footer"><slot></slot></div>`;
|
|
7390
7462
|
}
|
|
7391
7463
|
};
|
|
7392
|
-
|
|
7464
|
+
oe.styles = g`
|
|
7393
7465
|
:host {
|
|
7394
7466
|
display: block;
|
|
7395
7467
|
flex: 0 0 auto;
|
|
@@ -7400,16 +7472,16 @@ o3.styles = g`
|
|
|
7400
7472
|
border-top: 1px solid var(--color-gray-3);
|
|
7401
7473
|
}
|
|
7402
7474
|
`;
|
|
7403
|
-
let O2 =
|
|
7475
|
+
let O2 = oe;
|
|
7404
7476
|
D1([
|
|
7405
7477
|
s({ type: Boolean, reflect: !0 })
|
|
7406
7478
|
], O2.prototype, "divider");
|
|
7407
|
-
const
|
|
7479
|
+
const ne = class ne extends h {
|
|
7408
7480
|
render() {
|
|
7409
7481
|
return a`<div class="sidebar-group" part="group" role="group"><slot></slot></div>`;
|
|
7410
7482
|
}
|
|
7411
7483
|
};
|
|
7412
|
-
|
|
7484
|
+
ne.styles = g`
|
|
7413
7485
|
:host {
|
|
7414
7486
|
display: block;
|
|
7415
7487
|
}
|
|
@@ -7419,8 +7491,8 @@ n3.styles = g`
|
|
|
7419
7491
|
gap: 4px;
|
|
7420
7492
|
}
|
|
7421
7493
|
`;
|
|
7422
|
-
let E5 =
|
|
7423
|
-
const
|
|
7494
|
+
let E5 = ne;
|
|
7495
|
+
const re = class re extends h {
|
|
7424
7496
|
render() {
|
|
7425
7497
|
return a`
|
|
7426
7498
|
<div class="sidebar-group-label" part="group-label">
|
|
@@ -7431,7 +7503,7 @@ const r3 = class r3 extends h {
|
|
|
7431
7503
|
`;
|
|
7432
7504
|
}
|
|
7433
7505
|
};
|
|
7434
|
-
|
|
7506
|
+
re.styles = g`
|
|
7435
7507
|
:host {
|
|
7436
7508
|
display: block;
|
|
7437
7509
|
}
|
|
@@ -7463,13 +7535,13 @@ r3.styles = g`
|
|
|
7463
7535
|
padding-right: 6px;
|
|
7464
7536
|
}
|
|
7465
7537
|
`;
|
|
7466
|
-
let z5 =
|
|
7467
|
-
const
|
|
7538
|
+
let z5 = re;
|
|
7539
|
+
const le = class le extends h {
|
|
7468
7540
|
render() {
|
|
7469
7541
|
return a`<div class="sidebar-menu" part="menu"><slot></slot></div>`;
|
|
7470
7542
|
}
|
|
7471
7543
|
};
|
|
7472
|
-
|
|
7544
|
+
le.styles = g`
|
|
7473
7545
|
:host {
|
|
7474
7546
|
display: block;
|
|
7475
7547
|
}
|
|
@@ -7479,8 +7551,8 @@ l3.styles = g`
|
|
|
7479
7551
|
gap: 2px;
|
|
7480
7552
|
}
|
|
7481
7553
|
`;
|
|
7482
|
-
let S5 =
|
|
7483
|
-
const
|
|
7554
|
+
let S5 = le;
|
|
7555
|
+
const se = class se extends h {
|
|
7484
7556
|
constructor() {
|
|
7485
7557
|
super(...arguments), this.startIcon = "", this.selected = !1, this.disabled = !1, this.href = "", this.openNewTab = !1, this.onClick = (e) => {
|
|
7486
7558
|
if (this.disabled) {
|
|
@@ -7536,7 +7608,7 @@ const s3 = class s3 extends h {
|
|
|
7536
7608
|
`;
|
|
7537
7609
|
}
|
|
7538
7610
|
};
|
|
7539
|
-
|
|
7611
|
+
se.styles = g`
|
|
7540
7612
|
:host {
|
|
7541
7613
|
display: block;
|
|
7542
7614
|
}
|
|
@@ -7619,7 +7691,7 @@ s3.styles = g`
|
|
|
7619
7691
|
padding-right: 6px;
|
|
7620
7692
|
}
|
|
7621
7693
|
`;
|
|
7622
|
-
let b1 =
|
|
7694
|
+
let b1 = se;
|
|
7623
7695
|
D1([
|
|
7624
7696
|
s({ attribute: "start-icon" })
|
|
7625
7697
|
], b1.prototype, "startIcon");
|
|
@@ -7635,7 +7707,7 @@ D1([
|
|
|
7635
7707
|
D1([
|
|
7636
7708
|
s({ type: Boolean, attribute: "open-new-tab" })
|
|
7637
7709
|
], b1.prototype, "openNewTab");
|
|
7638
|
-
const
|
|
7710
|
+
const ae = class ae extends h {
|
|
7639
7711
|
connectedCallback() {
|
|
7640
7712
|
super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "action");
|
|
7641
7713
|
}
|
|
@@ -7643,7 +7715,7 @@ const a3 = class a3 extends h {
|
|
|
7643
7715
|
return a`<div class="sidebar-action" part="action"><slot></slot></div>`;
|
|
7644
7716
|
}
|
|
7645
7717
|
};
|
|
7646
|
-
|
|
7718
|
+
ae.styles = g`
|
|
7647
7719
|
:host {
|
|
7648
7720
|
display: flex;
|
|
7649
7721
|
align-items: center;
|
|
@@ -7653,8 +7725,8 @@ a3.styles = g`
|
|
|
7653
7725
|
align-items: center;
|
|
7654
7726
|
}
|
|
7655
7727
|
`;
|
|
7656
|
-
let A5 =
|
|
7657
|
-
const
|
|
7728
|
+
let A5 = ae;
|
|
7729
|
+
const de = class de extends h {
|
|
7658
7730
|
connectedCallback() {
|
|
7659
7731
|
super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "badge");
|
|
7660
7732
|
}
|
|
@@ -7662,7 +7734,7 @@ const d3 = class d3 extends h {
|
|
|
7662
7734
|
return a`<div class="sidebar-badge" part="badge"><slot></slot></div>`;
|
|
7663
7735
|
}
|
|
7664
7736
|
};
|
|
7665
|
-
|
|
7737
|
+
de.styles = g`
|
|
7666
7738
|
:host {
|
|
7667
7739
|
display: flex;
|
|
7668
7740
|
align-items: center;
|
|
@@ -7672,8 +7744,8 @@ d3.styles = g`
|
|
|
7672
7744
|
align-items: center;
|
|
7673
7745
|
}
|
|
7674
7746
|
`;
|
|
7675
|
-
let D5 =
|
|
7676
|
-
const
|
|
7747
|
+
let D5 = de;
|
|
7748
|
+
const ce = class ce extends h {
|
|
7677
7749
|
connectedCallback() {
|
|
7678
7750
|
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "separator");
|
|
7679
7751
|
}
|
|
@@ -7681,7 +7753,7 @@ const c3 = class c3 extends h {
|
|
|
7681
7753
|
return a`<div class="sidebar-separator" part="separator"></div>`;
|
|
7682
7754
|
}
|
|
7683
7755
|
};
|
|
7684
|
-
|
|
7756
|
+
ce.styles = g`
|
|
7685
7757
|
:host {
|
|
7686
7758
|
display: block;
|
|
7687
7759
|
}
|
|
@@ -7690,7 +7762,7 @@ c3.styles = g`
|
|
|
7690
7762
|
background-color: var(--color-gray-3);
|
|
7691
7763
|
}
|
|
7692
7764
|
`;
|
|
7693
|
-
let P5 =
|
|
7765
|
+
let P5 = ce;
|
|
7694
7766
|
customElements.get("anduin-sidebar") || customElements.define("anduin-sidebar", R5);
|
|
7695
7767
|
customElements.get("anduin-sidebar-content") || customElements.define("anduin-sidebar-content", $5);
|
|
7696
7768
|
customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", F2);
|
|
@@ -7729,7 +7801,7 @@ var S0 = Object.defineProperty, e1 = (r, e, t, o) => {
|
|
|
7729
7801
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
7730
7802
|
return i && S0(e, t, i), i;
|
|
7731
7803
|
};
|
|
7732
|
-
const M2 = "anduin-calendar:change", B5 = "anduin-calendar:day-hover",
|
|
7804
|
+
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
7805
|
"January",
|
|
7734
7806
|
"February",
|
|
7735
7807
|
"March",
|
|
@@ -7742,7 +7814,7 @@ const M2 = "anduin-calendar:change", B5 = "anduin-calendar:day-hover", K3 = ["Ja
|
|
|
7742
7814
|
"October",
|
|
7743
7815
|
"November",
|
|
7744
7816
|
"December"
|
|
7745
|
-
], A0 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
7817
|
+
], A0 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], Ye = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
|
7746
7818
|
function P1(r, e) {
|
|
7747
7819
|
return new Date(r.getFullYear(), r.getMonth(), r.getDate() + e);
|
|
7748
7820
|
}
|
|
@@ -7750,7 +7822,7 @@ function D0(r) {
|
|
|
7750
7822
|
const e = ["th", "st", "nd", "rd"], t = r % 100;
|
|
7751
7823
|
return `${r}${e[(t - 20) % 10] ?? e[t] ?? e[0]}`;
|
|
7752
7824
|
}
|
|
7753
|
-
const
|
|
7825
|
+
const Ce = class Ce extends h {
|
|
7754
7826
|
constructor() {
|
|
7755
7827
|
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
7828
|
this._openSelect && !e.composedPath().includes(this) && (this._openSelect = null);
|
|
@@ -7914,7 +7986,7 @@ const C3 = class C3 extends h {
|
|
|
7914
7986
|
...Array.from({ length: c }, (_, v) => v + 1)
|
|
7915
7987
|
];
|
|
7916
7988
|
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 = `${
|
|
7989
|
+
const f = Array.from({ length: p.length / 7 }, (_, v) => p.slice(v * 7, v * 7 + 7)), b = `${We[this._viewMonth]} ${this._viewYear}`, m = (() => {
|
|
7918
7990
|
const _ = this._min;
|
|
7919
7991
|
return _ ? new Date(this._viewYear, this._viewMonth, 0).getTime() < _.getTime() : !1;
|
|
7920
7992
|
})(), V = (() => {
|
|
@@ -7935,9 +8007,9 @@ const C3 = class C3 extends h {
|
|
|
7935
8007
|
<div class="calendar__header-spacer"></div>
|
|
7936
8008
|
${this._renderSelect(
|
|
7937
8009
|
"month",
|
|
7938
|
-
|
|
8010
|
+
Ke[this._viewMonth],
|
|
7939
8011
|
"Choose the month",
|
|
7940
|
-
|
|
8012
|
+
Ke.map((_, v) => ({ value: v, label: _, selected: v === this._viewMonth })),
|
|
7941
8013
|
(_) => this._selectMonth(_)
|
|
7942
8014
|
)}
|
|
7943
8015
|
${this._renderSelect(
|
|
@@ -7970,7 +8042,7 @@ const C3 = class C3 extends h {
|
|
|
7970
8042
|
<thead aria-hidden="true">
|
|
7971
8043
|
<tr>
|
|
7972
8044
|
${A0.map((_, v) => a`
|
|
7973
|
-
<th class="calendar__day-header" aria-label="${
|
|
8045
|
+
<th class="calendar__day-header" aria-label="${Ye[v]}">${_}</th>
|
|
7974
8046
|
`)}
|
|
7975
8047
|
</tr>
|
|
7976
8048
|
</thead>
|
|
@@ -7979,34 +8051,34 @@ const C3 = class C3 extends h {
|
|
|
7979
8051
|
<tr>
|
|
7980
8052
|
${_.map((v) => {
|
|
7981
8053
|
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(),
|
|
8054
|
+
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
8055
|
"calendar__day-cell",
|
|
7984
|
-
|
|
8056
|
+
ve ? "calendar__day-cell--in-range" : "",
|
|
7985
8057
|
// Only tint the edge cell when it actually opens a span —
|
|
7986
8058
|
// a lone start marker shouldn't paint a half-rounded block.
|
|
7987
8059
|
X1 && i ? "calendar__day-cell--range-start" : "",
|
|
7988
8060
|
t1 && o ? "calendar__day-cell--range-end" : ""
|
|
7989
|
-
].filter(Boolean).join(" "),
|
|
8061
|
+
].filter(Boolean).join(" "), R3 = [
|
|
7990
8062
|
"calendar__day-button",
|
|
7991
8063
|
M === e ? "calendar__day-button--today" : "",
|
|
7992
|
-
|
|
8064
|
+
me ? "calendar__day-button--selected" : "",
|
|
7993
8065
|
X1 ? "calendar__day-button--range-start" : "",
|
|
7994
8066
|
t1 ? "calendar__day-button--range-end" : "",
|
|
7995
|
-
|
|
8067
|
+
ve ? "calendar__day-button--in-range" : "",
|
|
7996
8068
|
U ? "calendar__day-button--disabled" : ""
|
|
7997
8069
|
].filter(Boolean).join(" ");
|
|
7998
8070
|
return a`
|
|
7999
8071
|
<td
|
|
8000
|
-
class="${
|
|
8072
|
+
class="${k3}"
|
|
8001
8073
|
role="gridcell"
|
|
8002
|
-
aria-selected="${
|
|
8074
|
+
aria-selected="${me || X1 || t1}"
|
|
8003
8075
|
>
|
|
8004
8076
|
<button
|
|
8005
8077
|
type="button"
|
|
8006
|
-
class="${
|
|
8078
|
+
class="${R3}"
|
|
8007
8079
|
part="day"
|
|
8008
8080
|
aria-disabled="${U}"
|
|
8009
|
-
aria-label="${
|
|
8081
|
+
aria-label="${Ye[x.getDay()]}, ${We[x.getMonth()]} ${D0(v)}, ${x.getFullYear()}"
|
|
8010
8082
|
tabindex="${M === l ? 0 : -1}"
|
|
8011
8083
|
@click=${() => {
|
|
8012
8084
|
U || this._pick(x);
|
|
@@ -8026,7 +8098,7 @@ const C3 = class C3 extends h {
|
|
|
8026
8098
|
`;
|
|
8027
8099
|
}
|
|
8028
8100
|
};
|
|
8029
|
-
|
|
8101
|
+
Ce.styles = g`
|
|
8030
8102
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8031
8103
|
|
|
8032
8104
|
.calendar { display: flex; flex-direction: column; font-family: inherit; font-size: 13px; }
|
|
@@ -8121,44 +8193,44 @@ C3.styles = g`
|
|
|
8121
8193
|
.calendar__day-button--in-range { color: var(--color-primary-7, var(--color-primary-5)); }
|
|
8122
8194
|
.calendar__day-button--in-range:hover { background-color: var(--color-primary-2); }
|
|
8123
8195
|
`;
|
|
8124
|
-
let
|
|
8196
|
+
let T = Ce;
|
|
8125
8197
|
e1([
|
|
8126
8198
|
s({ reflect: !0 })
|
|
8127
|
-
],
|
|
8199
|
+
], T.prototype, "value");
|
|
8128
8200
|
e1([
|
|
8129
8201
|
s({ attribute: "min-date" })
|
|
8130
|
-
],
|
|
8202
|
+
], T.prototype, "minDate");
|
|
8131
8203
|
e1([
|
|
8132
8204
|
s({ attribute: "max-date" })
|
|
8133
|
-
],
|
|
8205
|
+
], T.prototype, "maxDate");
|
|
8134
8206
|
e1([
|
|
8135
8207
|
s({ attribute: "range-start" })
|
|
8136
|
-
],
|
|
8208
|
+
], T.prototype, "rangeStart");
|
|
8137
8209
|
e1([
|
|
8138
8210
|
s({ attribute: "range-end" })
|
|
8139
|
-
],
|
|
8211
|
+
], T.prototype, "rangeEnd");
|
|
8140
8212
|
e1([
|
|
8141
8213
|
s({ type: Boolean, attribute: "range-mode" })
|
|
8142
|
-
],
|
|
8214
|
+
], T.prototype, "rangeMode");
|
|
8143
8215
|
e1([
|
|
8144
|
-
|
|
8145
|
-
],
|
|
8216
|
+
y()
|
|
8217
|
+
], T.prototype, "_viewMonth");
|
|
8146
8218
|
e1([
|
|
8147
|
-
|
|
8148
|
-
],
|
|
8219
|
+
y()
|
|
8220
|
+
], T.prototype, "_viewYear");
|
|
8149
8221
|
e1([
|
|
8150
|
-
|
|
8151
|
-
],
|
|
8222
|
+
y()
|
|
8223
|
+
], T.prototype, "_focus");
|
|
8152
8224
|
e1([
|
|
8153
|
-
|
|
8154
|
-
],
|
|
8155
|
-
customElements.get("anduin-calendar") || customElements.define("anduin-calendar",
|
|
8225
|
+
y()
|
|
8226
|
+
], T.prototype, "_openSelect");
|
|
8227
|
+
customElements.get("anduin-calendar") || customElements.define("anduin-calendar", T);
|
|
8156
8228
|
var P0 = Object.defineProperty, q1 = (r, e, t, o) => {
|
|
8157
8229
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
8158
8230
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8159
8231
|
return i && P0(e, t, i), i;
|
|
8160
8232
|
};
|
|
8161
|
-
const B0 = "anduin-date-range:change",
|
|
8233
|
+
const B0 = "anduin-date-range:change", pe = class pe extends h {
|
|
8162
8234
|
constructor() {
|
|
8163
8235
|
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
8236
|
e.stopPropagation();
|
|
@@ -8229,10 +8301,10 @@ const B0 = "anduin-date-range:change", p3 = class p3 extends h {
|
|
|
8229
8301
|
return a`<div class="date-range" part="date-range"><slot></slot></div>`;
|
|
8230
8302
|
}
|
|
8231
8303
|
};
|
|
8232
|
-
|
|
8304
|
+
pe.styles = g`
|
|
8233
8305
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8234
8306
|
`;
|
|
8235
|
-
let Q =
|
|
8307
|
+
let Q = pe;
|
|
8236
8308
|
q1([
|
|
8237
8309
|
s({ attribute: "start-date", reflect: !0 })
|
|
8238
8310
|
], Q.prototype, "startDate");
|
|
@@ -8246,12 +8318,12 @@ q1([
|
|
|
8246
8318
|
s({ attribute: "max-date" })
|
|
8247
8319
|
], Q.prototype, "maxDate");
|
|
8248
8320
|
q1([
|
|
8249
|
-
|
|
8321
|
+
y()
|
|
8250
8322
|
], Q.prototype, "_anchor");
|
|
8251
8323
|
q1([
|
|
8252
|
-
|
|
8324
|
+
y()
|
|
8253
8325
|
], Q.prototype, "_hover");
|
|
8254
|
-
const
|
|
8326
|
+
const he = class he extends h {
|
|
8255
8327
|
constructor() {
|
|
8256
8328
|
super(...arguments), this._host = null;
|
|
8257
8329
|
}
|
|
@@ -8280,21 +8352,21 @@ const h3 = class h3 extends h {
|
|
|
8280
8352
|
return a`<anduin-calendar part="calendar" range-mode></anduin-calendar>`;
|
|
8281
8353
|
}
|
|
8282
8354
|
};
|
|
8283
|
-
|
|
8355
|
+
he.styles = g`
|
|
8284
8356
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8285
8357
|
`;
|
|
8286
|
-
let
|
|
8287
|
-
class F0 extends
|
|
8358
|
+
let I2 = he;
|
|
8359
|
+
class F0 extends I2 {
|
|
8288
8360
|
constructor() {
|
|
8289
8361
|
super(...arguments), this.panelRole = "start";
|
|
8290
8362
|
}
|
|
8291
8363
|
}
|
|
8292
|
-
class O0 extends
|
|
8364
|
+
class O0 extends I2 {
|
|
8293
8365
|
constructor() {
|
|
8294
8366
|
super(...arguments), this.panelRole = "end";
|
|
8295
8367
|
}
|
|
8296
8368
|
}
|
|
8297
|
-
const
|
|
8369
|
+
const ue = class ue extends h {
|
|
8298
8370
|
render() {
|
|
8299
8371
|
return a`
|
|
8300
8372
|
<div class="date-range-default" part="layout">
|
|
@@ -8304,30 +8376,30 @@ const u3 = class u3 extends h {
|
|
|
8304
8376
|
`;
|
|
8305
8377
|
}
|
|
8306
8378
|
};
|
|
8307
|
-
|
|
8379
|
+
ue.styles = g`
|
|
8308
8380
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8309
8381
|
|
|
8310
8382
|
.date-range-default { display: flex; flex-direction: row; gap: 16px; }
|
|
8311
8383
|
`;
|
|
8312
|
-
let F5 =
|
|
8384
|
+
let F5 = ue;
|
|
8313
8385
|
customElements.get("anduin-date-range") || customElements.define("anduin-date-range", Q);
|
|
8314
8386
|
customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", F5);
|
|
8315
8387
|
customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", F0);
|
|
8316
8388
|
customElements.get("anduin-date-range-end") || customElements.define("anduin-date-range-end", O0);
|
|
8317
|
-
var
|
|
8389
|
+
var I0 = Object.defineProperty, O = (r, e, t, o) => {
|
|
8318
8390
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
8319
8391
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8320
|
-
return i &&
|
|
8392
|
+
return i && I0(e, t, i), i;
|
|
8321
8393
|
};
|
|
8322
|
-
const O5 = "anduin-date-input:change",
|
|
8323
|
-
function
|
|
8394
|
+
const O5 = "anduin-date-input:change", qe = { M: "month", d: "day", y: "year" };
|
|
8395
|
+
function T0(r) {
|
|
8324
8396
|
const e = [];
|
|
8325
8397
|
let t = 0, o = 0;
|
|
8326
8398
|
for (; o < r.length; ) {
|
|
8327
|
-
const i = r[o], n =
|
|
8399
|
+
const i = r[o], n = qe[i];
|
|
8328
8400
|
if (!n) {
|
|
8329
8401
|
let d = "";
|
|
8330
|
-
for (; o < r.length && !
|
|
8402
|
+
for (; o < r.length && !qe[r[o]]; ) d += r[o++];
|
|
8331
8403
|
e.push({ literal: d }), t += d.length;
|
|
8332
8404
|
continue;
|
|
8333
8405
|
}
|
|
@@ -8357,7 +8429,7 @@ const e2 = 1, j2 = class j2 extends h {
|
|
|
8357
8429
|
super.disconnectedCallback(), (e = this.closest("anduin-field")) == null || e.removeEventListener(u1, this._onFieldLabelClick);
|
|
8358
8430
|
}
|
|
8359
8431
|
willUpdate(e) {
|
|
8360
|
-
e.has("format") ? (this._tokens =
|
|
8432
|
+
e.has("format") ? (this._tokens = T0(this.format), this._segments = this._tokens.flatMap((t) => "segment" in t ? [t.segment] : []), this._digits = this._segments.map(() => null), this._active = 0, this._buffer = "", this.value && this._adoptValue(this.value)) : e.has("value") && this.value !== this._composeValue() && this._adoptValue(this.value);
|
|
8361
8433
|
}
|
|
8362
8434
|
updated() {
|
|
8363
8435
|
const e = this._display();
|
|
@@ -8607,62 +8679,62 @@ j2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, j2.styles
|
|
|
8607
8679
|
.date-input--warning { border-color: var(--color-warning-4); }
|
|
8608
8680
|
.date-input--loading { border-color: var(--color-gray-4); }
|
|
8609
8681
|
`;
|
|
8610
|
-
let
|
|
8682
|
+
let z = j2;
|
|
8611
8683
|
O([
|
|
8612
8684
|
s()
|
|
8613
|
-
],
|
|
8685
|
+
], z.prototype, "format");
|
|
8614
8686
|
O([
|
|
8615
8687
|
s()
|
|
8616
|
-
],
|
|
8688
|
+
], z.prototype, "value");
|
|
8617
8689
|
O([
|
|
8618
8690
|
s()
|
|
8619
|
-
],
|
|
8691
|
+
], z.prototype, "size");
|
|
8620
8692
|
O([
|
|
8621
8693
|
s({ type: Boolean })
|
|
8622
|
-
],
|
|
8694
|
+
], z.prototype, "disabled");
|
|
8623
8695
|
O([
|
|
8624
8696
|
s({ type: Boolean })
|
|
8625
|
-
],
|
|
8697
|
+
], z.prototype, "readonly");
|
|
8626
8698
|
O([
|
|
8627
8699
|
s()
|
|
8628
|
-
],
|
|
8700
|
+
], z.prototype, "status");
|
|
8629
8701
|
O([
|
|
8630
8702
|
s({ attribute: "start-icon" })
|
|
8631
|
-
],
|
|
8703
|
+
], z.prototype, "startIcon");
|
|
8632
8704
|
O([
|
|
8633
8705
|
s({ attribute: "min-date" })
|
|
8634
|
-
],
|
|
8706
|
+
], z.prototype, "minDate");
|
|
8635
8707
|
O([
|
|
8636
8708
|
s({ attribute: "max-date" })
|
|
8637
|
-
],
|
|
8709
|
+
], z.prototype, "maxDate");
|
|
8638
8710
|
O([
|
|
8639
8711
|
s()
|
|
8640
|
-
],
|
|
8712
|
+
], z.prototype, "inputid");
|
|
8641
8713
|
O([
|
|
8642
|
-
|
|
8643
|
-
],
|
|
8714
|
+
y()
|
|
8715
|
+
], z.prototype, "_digits");
|
|
8644
8716
|
O([
|
|
8645
|
-
|
|
8646
|
-
],
|
|
8717
|
+
y()
|
|
8718
|
+
], z.prototype, "_active");
|
|
8647
8719
|
O([
|
|
8648
|
-
|
|
8649
|
-
],
|
|
8720
|
+
y()
|
|
8721
|
+
], z.prototype, "_buffer");
|
|
8650
8722
|
O([
|
|
8651
8723
|
R("input")
|
|
8652
|
-
],
|
|
8653
|
-
customElements.get("anduin-date-input") || customElements.define("anduin-date-input",
|
|
8654
|
-
var N0 = Object.defineProperty,
|
|
8724
|
+
], z.prototype, "_inputEl");
|
|
8725
|
+
customElements.get("anduin-date-input") || customElements.define("anduin-date-input", z);
|
|
8726
|
+
var N0 = Object.defineProperty, I = (r, e, t, o) => {
|
|
8655
8727
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
8656
8728
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8657
8729
|
return i && N0(e, t, i), i;
|
|
8658
8730
|
};
|
|
8659
|
-
const j0 = "anduin-date-picker:change",
|
|
8731
|
+
const j0 = "anduin-date-picker:change", Z3 = { M: "month", d: "day", y: "year" };
|
|
8660
8732
|
function U0(r, e) {
|
|
8661
8733
|
if (!r) return null;
|
|
8662
8734
|
const t = {};
|
|
8663
8735
|
let o = 0, i = 0;
|
|
8664
8736
|
for (; i < e.length; ) {
|
|
8665
|
-
const d = e[i], c =
|
|
8737
|
+
const d = e[i], c = Z3[d];
|
|
8666
8738
|
if (!c) {
|
|
8667
8739
|
i++, o++;
|
|
8668
8740
|
continue;
|
|
@@ -8686,7 +8758,7 @@ function G0(r, e) {
|
|
|
8686
8758
|
};
|
|
8687
8759
|
let o = "", i = 0;
|
|
8688
8760
|
for (; i < e.length; ) {
|
|
8689
|
-
const n = e[i], l =
|
|
8761
|
+
const n = e[i], l = Z3[n];
|
|
8690
8762
|
if (!l) {
|
|
8691
8763
|
o += n, i++;
|
|
8692
8764
|
continue;
|
|
@@ -8698,7 +8770,7 @@ function G0(r, e) {
|
|
|
8698
8770
|
}
|
|
8699
8771
|
return o;
|
|
8700
8772
|
}
|
|
8701
|
-
const
|
|
8773
|
+
const ge = class ge extends h {
|
|
8702
8774
|
constructor() {
|
|
8703
8775
|
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
8776
|
e.stopPropagation(), this._open = e.detail;
|
|
@@ -8774,7 +8846,7 @@ const g3 = class g3 extends h {
|
|
|
8774
8846
|
`;
|
|
8775
8847
|
}
|
|
8776
8848
|
};
|
|
8777
|
-
|
|
8849
|
+
ge.styles = g`
|
|
8778
8850
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8779
8851
|
|
|
8780
8852
|
.datepicker { display: block; }
|
|
@@ -8784,56 +8856,56 @@ g3.styles = g`
|
|
|
8784
8856
|
/* The popover contributes 8px; the calendar reads better with 16px total. */
|
|
8785
8857
|
.datepicker__panel { padding: 8px; display: flex; flex-direction: column; }
|
|
8786
8858
|
`;
|
|
8787
|
-
let
|
|
8788
|
-
|
|
8859
|
+
let S = ge;
|
|
8860
|
+
I([
|
|
8789
8861
|
s()
|
|
8790
|
-
],
|
|
8791
|
-
|
|
8862
|
+
], S.prototype, "format");
|
|
8863
|
+
I([
|
|
8792
8864
|
s()
|
|
8793
|
-
],
|
|
8794
|
-
|
|
8865
|
+
], S.prototype, "value");
|
|
8866
|
+
I([
|
|
8795
8867
|
s()
|
|
8796
|
-
],
|
|
8797
|
-
|
|
8868
|
+
], S.prototype, "size");
|
|
8869
|
+
I([
|
|
8798
8870
|
s({ type: Boolean })
|
|
8799
|
-
],
|
|
8800
|
-
|
|
8871
|
+
], S.prototype, "disabled");
|
|
8872
|
+
I([
|
|
8801
8873
|
s({ type: Boolean })
|
|
8802
|
-
],
|
|
8803
|
-
|
|
8874
|
+
], S.prototype, "readonly");
|
|
8875
|
+
I([
|
|
8804
8876
|
s()
|
|
8805
|
-
],
|
|
8806
|
-
|
|
8877
|
+
], S.prototype, "status");
|
|
8878
|
+
I([
|
|
8807
8879
|
s({ attribute: "start-icon" })
|
|
8808
|
-
],
|
|
8809
|
-
|
|
8880
|
+
], S.prototype, "startIcon");
|
|
8881
|
+
I([
|
|
8810
8882
|
s({ attribute: "min-date" })
|
|
8811
|
-
],
|
|
8812
|
-
|
|
8883
|
+
], S.prototype, "minDate");
|
|
8884
|
+
I([
|
|
8813
8885
|
s({ attribute: "max-date" })
|
|
8814
|
-
],
|
|
8815
|
-
|
|
8886
|
+
], S.prototype, "maxDate");
|
|
8887
|
+
I([
|
|
8816
8888
|
s()
|
|
8817
|
-
],
|
|
8818
|
-
|
|
8889
|
+
], S.prototype, "placement");
|
|
8890
|
+
I([
|
|
8819
8891
|
s()
|
|
8820
|
-
],
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
],
|
|
8824
|
-
|
|
8892
|
+
], S.prototype, "inputid");
|
|
8893
|
+
I([
|
|
8894
|
+
y()
|
|
8895
|
+
], S.prototype, "_open");
|
|
8896
|
+
I([
|
|
8825
8897
|
R("anduin-date-input")
|
|
8826
|
-
],
|
|
8827
|
-
|
|
8898
|
+
], S.prototype, "_inputEl");
|
|
8899
|
+
I([
|
|
8828
8900
|
R("anduin-popover")
|
|
8829
|
-
],
|
|
8830
|
-
customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker",
|
|
8901
|
+
], S.prototype, "_popoverEl");
|
|
8902
|
+
customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker", S);
|
|
8831
8903
|
var K0 = Object.defineProperty, L = (r, e, t, o) => {
|
|
8832
8904
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
8833
8905
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8834
8906
|
return i && K0(e, t, i), i;
|
|
8835
8907
|
};
|
|
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",
|
|
8908
|
+
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
8909
|
if (!e) return;
|
|
8838
8910
|
let t = r;
|
|
8839
8911
|
for (const o of e.split(".")) {
|
|
@@ -8841,7 +8913,7 @@ const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-t
|
|
|
8841
8913
|
t = t[o];
|
|
8842
8914
|
}
|
|
8843
8915
|
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" }),
|
|
8916
|
+
}, 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
8917
|
constructor() {
|
|
8846
8918
|
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
8919
|
this.isDraggingRange = !1;
|
|
@@ -8857,7 +8929,7 @@ const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-t
|
|
|
8857
8929
|
}));
|
|
8858
8930
|
}, this.onResizeEnd = (e) => {
|
|
8859
8931
|
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(
|
|
8932
|
+
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
8933
|
detail: { column: e, field: t.key, width: t.width },
|
|
8862
8934
|
bubbles: !0,
|
|
8863
8935
|
composed: !0
|
|
@@ -9189,7 +9261,7 @@ const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-t
|
|
|
9189
9261
|
*/
|
|
9190
9262
|
fitColumnsMinWidth() {
|
|
9191
9263
|
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 ?
|
|
9264
|
+
const i = i1(t) && !t.width && !t.minWidth ? Je : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
|
|
9193
9265
|
return e + i;
|
|
9194
9266
|
}, 0);
|
|
9195
9267
|
}
|
|
@@ -9215,7 +9287,7 @@ const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-t
|
|
|
9215
9287
|
const i = this.columnKey(t, o);
|
|
9216
9288
|
if (this.resizedWidths[i] === void 0) return;
|
|
9217
9289
|
const n = { ...this.resizedWidths };
|
|
9218
|
-
delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(
|
|
9290
|
+
delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(Xe, {
|
|
9219
9291
|
detail: { column: t, field: i, width: null },
|
|
9220
9292
|
bubbles: !0,
|
|
9221
9293
|
composed: !0
|
|
@@ -9479,7 +9551,7 @@ const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-t
|
|
|
9479
9551
|
`;
|
|
9480
9552
|
}
|
|
9481
9553
|
};
|
|
9482
|
-
|
|
9554
|
+
fe.styles = g`
|
|
9483
9555
|
:host {
|
|
9484
9556
|
display: flex;
|
|
9485
9557
|
flex-direction: column;
|
|
@@ -9696,7 +9768,7 @@ f3.styles = g`
|
|
|
9696
9768
|
text-align: right;
|
|
9697
9769
|
}
|
|
9698
9770
|
.table__cell--selection {
|
|
9699
|
-
width: ${
|
|
9771
|
+
width: ${Je}px;
|
|
9700
9772
|
padding: 8px 0 8px 12px;
|
|
9701
9773
|
}
|
|
9702
9774
|
|
|
@@ -9845,116 +9917,116 @@ f3.styles = g`
|
|
|
9845
9917
|
cursor: progress;
|
|
9846
9918
|
}
|
|
9847
9919
|
`;
|
|
9848
|
-
let
|
|
9920
|
+
let H = fe;
|
|
9849
9921
|
L([
|
|
9850
9922
|
s({ attribute: !1 })
|
|
9851
|
-
],
|
|
9923
|
+
], H.prototype, "columns");
|
|
9852
9924
|
L([
|
|
9853
9925
|
s({ attribute: !1 })
|
|
9854
|
-
],
|
|
9926
|
+
], H.prototype, "data");
|
|
9855
9927
|
L([
|
|
9856
9928
|
s({ reflect: !0 })
|
|
9857
|
-
],
|
|
9929
|
+
], H.prototype, "layout");
|
|
9858
9930
|
L([
|
|
9859
9931
|
s({ attribute: "render-mode", reflect: !0 })
|
|
9860
|
-
],
|
|
9932
|
+
], H.prototype, "renderMode");
|
|
9861
9933
|
L([
|
|
9862
9934
|
s({ type: Number, attribute: "row-height" })
|
|
9863
|
-
],
|
|
9935
|
+
], H.prototype, "rowHeight");
|
|
9864
9936
|
L([
|
|
9865
9937
|
s()
|
|
9866
|
-
],
|
|
9938
|
+
], H.prototype, "height");
|
|
9867
9939
|
L([
|
|
9868
9940
|
s({ attribute: "max-height" })
|
|
9869
|
-
],
|
|
9941
|
+
], H.prototype, "maxHeight");
|
|
9870
9942
|
L([
|
|
9871
9943
|
s({ attribute: "min-height" })
|
|
9872
|
-
],
|
|
9944
|
+
], H.prototype, "minHeight");
|
|
9873
9945
|
L([
|
|
9874
9946
|
s({
|
|
9875
9947
|
attribute: "resizable-columns",
|
|
9876
9948
|
converter: (r) => r !== "false"
|
|
9877
9949
|
})
|
|
9878
|
-
],
|
|
9950
|
+
], H.prototype, "resizableColumns");
|
|
9879
9951
|
L([
|
|
9880
9952
|
s({ type: Boolean, attribute: "hide-header", reflect: !0 })
|
|
9881
|
-
],
|
|
9953
|
+
], H.prototype, "hideHeader");
|
|
9882
9954
|
L([
|
|
9883
9955
|
s({ type: Boolean, reflect: !0 })
|
|
9884
|
-
],
|
|
9956
|
+
], H.prototype, "loading");
|
|
9885
9957
|
L([
|
|
9886
9958
|
s({ reflect: !0 })
|
|
9887
|
-
],
|
|
9959
|
+
], H.prototype, "selectable");
|
|
9888
9960
|
L([
|
|
9889
9961
|
s({ attribute: "index-column" })
|
|
9890
|
-
],
|
|
9962
|
+
], H.prototype, "indexColumn");
|
|
9891
9963
|
L([
|
|
9892
9964
|
s({ attribute: "column-align" })
|
|
9893
|
-
],
|
|
9965
|
+
], H.prototype, "columnAlign");
|
|
9894
9966
|
L([
|
|
9895
9967
|
s({ attribute: "column-vertical-align" })
|
|
9896
|
-
],
|
|
9968
|
+
], H.prototype, "columnVerticalAlign");
|
|
9897
9969
|
L([
|
|
9898
9970
|
s({ attribute: "sort-field" })
|
|
9899
|
-
],
|
|
9971
|
+
], H.prototype, "sortField");
|
|
9900
9972
|
L([
|
|
9901
9973
|
s({ attribute: "sort-direction" })
|
|
9902
|
-
],
|
|
9974
|
+
], H.prototype, "sortDirection");
|
|
9903
9975
|
L([
|
|
9904
9976
|
s({ type: Boolean, attribute: "data-tree", reflect: !0 })
|
|
9905
|
-
],
|
|
9977
|
+
], H.prototype, "dataTree");
|
|
9906
9978
|
L([
|
|
9907
9979
|
s({ attribute: "tree-children-field" })
|
|
9908
|
-
],
|
|
9980
|
+
], H.prototype, "treeChildrenField");
|
|
9909
9981
|
L([
|
|
9910
9982
|
s({ type: Number, attribute: "tree-child-indent" })
|
|
9911
|
-
],
|
|
9983
|
+
], H.prototype, "treeChildIndent");
|
|
9912
9984
|
L([
|
|
9913
9985
|
s({ attribute: "group-by" })
|
|
9914
|
-
],
|
|
9986
|
+
], H.prototype, "groupBy");
|
|
9915
9987
|
L([
|
|
9916
9988
|
s({ attribute: !1 })
|
|
9917
|
-
],
|
|
9989
|
+
], H.prototype, "selectedRows");
|
|
9918
9990
|
L([
|
|
9919
9991
|
s({ attribute: !1 })
|
|
9920
|
-
],
|
|
9992
|
+
], H.prototype, "isRowDisabled");
|
|
9921
9993
|
L([
|
|
9922
9994
|
s({ attribute: !1 })
|
|
9923
|
-
],
|
|
9995
|
+
], H.prototype, "onStartExpanded");
|
|
9924
9996
|
L([
|
|
9925
9997
|
s({ attribute: !1 })
|
|
9926
|
-
],
|
|
9998
|
+
], H.prototype, "rowClass");
|
|
9927
9999
|
L([
|
|
9928
10000
|
s({ attribute: !1 })
|
|
9929
|
-
],
|
|
10001
|
+
], H.prototype, "renderGroupHeader");
|
|
9930
10002
|
L([
|
|
9931
|
-
|
|
9932
|
-
],
|
|
10003
|
+
y()
|
|
10004
|
+
], H.prototype, "expandedKeys");
|
|
9933
10005
|
L([
|
|
9934
|
-
|
|
9935
|
-
],
|
|
10006
|
+
y()
|
|
10007
|
+
], H.prototype, "collapsedGroups");
|
|
9936
10008
|
L([
|
|
9937
|
-
|
|
9938
|
-
],
|
|
10009
|
+
y()
|
|
10010
|
+
], H.prototype, "virtualScrollTop");
|
|
9939
10011
|
L([
|
|
9940
|
-
|
|
9941
|
-
],
|
|
10012
|
+
y()
|
|
10013
|
+
], H.prototype, "viewportHeight");
|
|
9942
10014
|
L([
|
|
9943
|
-
|
|
9944
|
-
],
|
|
10015
|
+
y()
|
|
10016
|
+
], H.prototype, "scrolledX");
|
|
9945
10017
|
L([
|
|
9946
|
-
|
|
9947
|
-
],
|
|
10018
|
+
y()
|
|
10019
|
+
], H.prototype, "scrollableXEnd");
|
|
9948
10020
|
L([
|
|
9949
|
-
|
|
9950
|
-
],
|
|
10021
|
+
y()
|
|
10022
|
+
], H.prototype, "resizedWidths");
|
|
9951
10023
|
L([
|
|
9952
|
-
|
|
9953
|
-
],
|
|
9954
|
-
customElements.get("anduin-table") || customElements.define("anduin-table",
|
|
10024
|
+
y()
|
|
10025
|
+
], H.prototype, "resizingKey");
|
|
10026
|
+
customElements.get("anduin-table") || customElements.define("anduin-table", H);
|
|
9955
10027
|
export {
|
|
9956
10028
|
F2 as $,
|
|
9957
|
-
|
|
10029
|
+
I1 as A,
|
|
9958
10030
|
B,
|
|
9959
10031
|
A2 as C,
|
|
9960
10032
|
k1 as D,
|
|
@@ -9989,19 +10061,19 @@ export {
|
|
|
9989
10061
|
o1 as a3,
|
|
9990
10062
|
h2 as a4,
|
|
9991
10063
|
p2 as a5,
|
|
9992
|
-
|
|
10064
|
+
Z as a6,
|
|
9993
10065
|
V2 as a7,
|
|
9994
|
-
|
|
10066
|
+
y2 as a8,
|
|
9995
10067
|
n1 as a9,
|
|
9996
10068
|
j0 as aA,
|
|
9997
10069
|
B0 as aB,
|
|
9998
10070
|
o5 as aC,
|
|
9999
10071
|
n2 as aD,
|
|
10000
|
-
|
|
10001
|
-
|
|
10072
|
+
Ne as aE,
|
|
10073
|
+
f3 as aF,
|
|
10002
10074
|
u1 as aG,
|
|
10003
10075
|
l0 as aH,
|
|
10004
|
-
|
|
10076
|
+
Ae as aI,
|
|
10005
10077
|
V7 as aJ,
|
|
10006
10078
|
m5 as aK,
|
|
10007
10079
|
Q2 as aL,
|
|
@@ -10018,10 +10090,10 @@ export {
|
|
|
10018
10090
|
E0 as aW,
|
|
10019
10091
|
n5 as aX,
|
|
10020
10092
|
_0 as aY,
|
|
10021
|
-
|
|
10093
|
+
H0 as aZ,
|
|
10022
10094
|
u0 as a_,
|
|
10023
|
-
|
|
10024
|
-
|
|
10095
|
+
H as aa,
|
|
10096
|
+
T1 as ab,
|
|
10025
10097
|
b2 as ac,
|
|
10026
10098
|
N1 as ad,
|
|
10027
10099
|
d5 as ae,
|
|
@@ -10036,19 +10108,19 @@ export {
|
|
|
10036
10108
|
L2 as an,
|
|
10037
10109
|
Y as ao,
|
|
10038
10110
|
q as ap,
|
|
10039
|
-
|
|
10111
|
+
H2 as aq,
|
|
10040
10112
|
h5 as ar,
|
|
10041
10113
|
p5 as as,
|
|
10042
10114
|
P2 as at,
|
|
10043
10115
|
u5 as au,
|
|
10044
|
-
|
|
10116
|
+
C3 as av,
|
|
10045
10117
|
M2 as aw,
|
|
10046
10118
|
B5 as ax,
|
|
10047
10119
|
_7 as ay,
|
|
10048
10120
|
O5 as az,
|
|
10049
10121
|
E2 as b,
|
|
10050
10122
|
Y0 as b0,
|
|
10051
|
-
|
|
10123
|
+
Xe as b1,
|
|
10052
10124
|
tt as b2,
|
|
10053
10125
|
q0 as b3,
|
|
10054
10126
|
et as b4,
|
|
@@ -10056,7 +10128,7 @@ export {
|
|
|
10056
10128
|
X0 as b6,
|
|
10057
10129
|
W0 as b7,
|
|
10058
10130
|
Z7 as b8,
|
|
10059
|
-
|
|
10131
|
+
v3 as b9,
|
|
10060
10132
|
G2 as ba,
|
|
10061
10133
|
R7 as bb,
|
|
10062
10134
|
M7 as bc,
|
|
@@ -10065,37 +10137,37 @@ export {
|
|
|
10065
10137
|
c5 as bf,
|
|
10066
10138
|
P7 as bg,
|
|
10067
10139
|
D7 as bh,
|
|
10068
|
-
|
|
10069
|
-
|
|
10140
|
+
H3 as bi,
|
|
10141
|
+
_3 as bj,
|
|
10070
10142
|
W5 as bk,
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10143
|
+
b3 as bl,
|
|
10144
|
+
y3 as bm,
|
|
10145
|
+
L3 as bn,
|
|
10074
10146
|
j7 as bo,
|
|
10075
10147
|
c1 as bp,
|
|
10076
10148
|
L1 as bq,
|
|
10077
|
-
|
|
10149
|
+
p3 as br,
|
|
10078
10150
|
D as bs,
|
|
10079
10151
|
a0 as bt,
|
|
10080
10152
|
F1 as bu,
|
|
10081
10153
|
lt as bv,
|
|
10082
10154
|
g2 as c,
|
|
10083
10155
|
k as d,
|
|
10084
|
-
|
|
10156
|
+
T as e,
|
|
10085
10157
|
z2 as f,
|
|
10086
10158
|
g1 as g,
|
|
10087
|
-
|
|
10088
|
-
|
|
10159
|
+
z as h,
|
|
10160
|
+
S as i,
|
|
10089
10161
|
Q as j,
|
|
10090
10162
|
F5 as k,
|
|
10091
10163
|
O0 as l,
|
|
10092
|
-
|
|
10164
|
+
I2 as m,
|
|
10093
10165
|
F0 as n,
|
|
10094
10166
|
f2 as o,
|
|
10095
10167
|
S2 as p,
|
|
10096
10168
|
j as q,
|
|
10097
10169
|
b0 as r,
|
|
10098
|
-
|
|
10170
|
+
w as s,
|
|
10099
10171
|
D2 as t,
|
|
10100
10172
|
l5 as u,
|
|
10101
10173
|
s5 as v,
|