@duyluonganduin/acl-web-components 0.0.67 → 0.0.68
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 +67 -4
- package/dist/acl-web-components.iife.js +311 -222
- package/dist/acl-web-components.js +1 -1
- package/dist/{anduin-table-Cqv_JQvT.js → anduin-table-0_-QLHyg.js} +891 -720
- package/dist/{anduin-table-CYE2vNGN.cjs → anduin-table-D9R2qRAW.cjs} +228 -139
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +67 -4
- package/dist/react.js +2 -2
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const $2 = globalThis, N5 = $2.ShadowRoot && ($2.ShadyCSS === void 0 || $2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, j5 = Symbol(),
|
|
7
|
-
let
|
|
6
|
+
const $2 = globalThis, N5 = $2.ShadowRoot && ($2.ShadyCSS === void 0 || $2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, j5 = Symbol(), _t = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let o4 = class {
|
|
8
8
|
constructor(e, t, o) {
|
|
9
9
|
if (this._$cssResult$ = !0, o !== j5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = e, this.t = t;
|
|
@@ -14,7 +14,7 @@ let o3 = class {
|
|
|
14
14
|
const t = this.t;
|
|
15
15
|
if (N5 && e === void 0) {
|
|
16
16
|
const o = t !== void 0 && t.length === 1;
|
|
17
|
-
o && (e =
|
|
17
|
+
o && (e = _t.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), o && _t.set(t, e));
|
|
18
18
|
}
|
|
19
19
|
return e;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let o3 = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const n4 = (r) => new o4(typeof r == "string" ? r : r + "", void 0, j5), g = (r, ...e) => {
|
|
26
26
|
const t = r.length === 1 ? r[0] : e.reduce((o, i, n) => o + ((l) => {
|
|
27
27
|
if (l._$cssResult$ === !0) return l.cssText;
|
|
28
28
|
if (typeof l == "number") return l;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + l + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(i) + r[n + 1], r[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
31
|
+
return new o4(t, r, j5);
|
|
32
|
+
}, S4 = (r, e) => {
|
|
33
33
|
if (N5) 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 = $2.litNonce;
|
|
36
36
|
i !== void 0 && o.setAttribute("nonce", i), o.textContent = t.cssText, r.appendChild(o);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, Lt = N5 ? (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 n4(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: A4, defineProperty: D4, getOwnPropertyDescriptor: P4, getOwnPropertyNames: B4, getOwnPropertySymbols: T4, getPrototypeOf: F4 } = Object, h1 = globalThis, Vt = h1.trustedTypes, I4 = Vt ? Vt.emptyScript : "", Y2 = h1.reactiveElementPolyfillSupport, s2 = (r, e) => r, E2 = { toAttribute(r, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
r = r ?
|
|
51
|
+
r = r ? I4 : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,23 +73,23 @@ const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return t;
|
|
76
|
-
} }, U5 = (r, e) => !
|
|
76
|
+
} }, U5 = (r, e) => !A4(r, e), xt = { attribute: !0, type: String, converter: E2, reflect: !1, useDefault: !1, hasChanged: U5 };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), h1.litPropertyMetadata ?? (h1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
-
let
|
|
78
|
+
let F1 = class extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
81
81
|
}
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(e, t =
|
|
85
|
+
static createProperty(e, t = xt) {
|
|
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 && D4(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 } = P4(this.prototype, e) ?? { get() {
|
|
93
93
|
return this[t];
|
|
94
94
|
}, set(l) {
|
|
95
95
|
this[t] = l;
|
|
@@ -100,17 +100,17 @@ let O1 = 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) ?? xt;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
106
|
if (this.hasOwnProperty(s2("elementProperties"))) return;
|
|
107
|
-
const e =
|
|
107
|
+
const e = F4(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(s2("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(s2("properties"))) {
|
|
113
|
-
const t = this.properties, o = [...
|
|
113
|
+
const t = this.properties, o = [...B4(t), ...T4(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 O1 = 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(Lt(i));
|
|
133
|
+
} else e !== void 0 && t.push(Lt(e));
|
|
134
134
|
return t;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(e, t) {
|
|
@@ -159,7 +159,7 @@ let O1 = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return S4(e, this.constructor.elementStyles), e;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var e;
|
|
@@ -278,48 +278,48 @@ let O1 = class extends HTMLElement {
|
|
|
278
278
|
firstUpdated(e) {
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
|
|
281
|
+
F1.elementStyles = [], F1.shadowRootOptions = { mode: "open" }, F1[s2("elementProperties")] = /* @__PURE__ */ new Map(), F1[s2("finalized")] = /* @__PURE__ */ new Map(), Y2 == null || Y2({ ReactiveElement: F1 }), (h1.reactiveElementVersions ?? (h1.reactiveElementVersions = [])).push("2.1.2");
|
|
282
282
|
/**
|
|
283
283
|
* @license
|
|
284
284
|
* Copyright 2017 Google LLC
|
|
285
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
286
|
*/
|
|
287
|
-
const a2 = globalThis,
|
|
288
|
-
\f\r]`, e2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
290
|
-
function
|
|
287
|
+
const a2 = globalThis, wt = (r) => r, z2 = a2.trustedTypes, Mt = z2 ? z2.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, r4 = "$lit$", p1 = `lit$${Math.random().toFixed(9).slice(2)}$`, l4 = "?" + p1, O4 = `<${l4}>`, k1 = document, c2 = () => k1.createComment(""), C2 = (r) => r === null || typeof r != "object" && typeof r != "function", G5 = Array.isArray, N4 = (r) => G5(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", q2 = `[
|
|
288
|
+
\f\r]`, e2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Zt = /-->/g, kt = />/g, V1 = RegExp(`>|${q2}(?:([^\\s"'>=/]+)(${q2}*=${q2}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Rt = /'/g, $t = /"/g, s4 = /^(?:script|style|textarea|title)$/i, a4 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), a = a4(1), u2 = a4(2), R1 = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Et = /* @__PURE__ */ new WeakMap(), w1 = k1.createTreeWalker(k1, 129);
|
|
290
|
+
function d4(r, e) {
|
|
291
291
|
if (!G5(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
-
return
|
|
292
|
+
return Mt !== void 0 ? Mt.createHTML(e) : e;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const j4 = (r, e) => {
|
|
295
295
|
const t = r.length - 1, o = [];
|
|
296
296
|
let i, n = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", l = e2;
|
|
297
297
|
for (let d = 0; d < t; d++) {
|
|
298
298
|
const c = r[d];
|
|
299
299
|
let C, p, f = -1, H = 0;
|
|
300
|
-
for (; H < c.length && (l.lastIndex = H, p = l.exec(c), p !== null); ) H = l.lastIndex, l === e2 ? p[1] === "!--" ? l =
|
|
300
|
+
for (; H < c.length && (l.lastIndex = H, p = l.exec(c), p !== null); ) H = l.lastIndex, l === e2 ? p[1] === "!--" ? l = Zt : p[1] !== void 0 ? l = kt : p[2] !== void 0 ? (s4.test(p[2]) && (i = RegExp("</" + p[2], "g")), l = V1) : p[3] !== void 0 && (l = V1) : l === V1 ? p[0] === ">" ? (l = i ?? e2, f = -1) : p[1] === void 0 ? f = -2 : (f = l.lastIndex - p[2].length, C = p[1], l = p[3] === void 0 ? V1 : p[3] === '"' ? $t : Rt) : l === $t || l === Rt ? l = V1 : l === Zt || l === kt ? l = e2 : (l = V1, i = void 0);
|
|
301
301
|
const m = l === V1 && r[d + 1].startsWith("/>") ? " " : "";
|
|
302
|
-
n += l === e2 ? c +
|
|
302
|
+
n += l === e2 ? c + O4 : f >= 0 ? (o.push(C), c.slice(0, f) + r4 + c.slice(f) + p1 + m) : c + p1 + (f === -2 ? d : m);
|
|
303
303
|
}
|
|
304
|
-
return [
|
|
304
|
+
return [d4(r, n + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
|
|
305
305
|
};
|
|
306
306
|
class p2 {
|
|
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] = j4(e, t);
|
|
312
312
|
if (this.el = p2.createElement(C, o), w1.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 = w1.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(r4)) {
|
|
319
319
|
const H = p[l++], m = i.getAttribute(f).split(p1), V = /([.?@])?(.*)/.exec(H);
|
|
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] === "." ? G4 : V[1] === "?" ? K4 : V[1] === "@" ? W4 : K2 }), i.removeAttribute(f);
|
|
321
321
|
} else f.startsWith(p1) && (c.push({ type: 6, index: n }), i.removeAttribute(f));
|
|
322
|
-
if (
|
|
322
|
+
if (s4.test(i.tagName)) {
|
|
323
323
|
const f = i.textContent.split(p1), H = f.length - 1;
|
|
324
324
|
if (H > 0) {
|
|
325
325
|
i.textContent = z2 ? z2.emptyScript : "";
|
|
@@ -327,7 +327,7 @@ class p2 {
|
|
|
327
327
|
i.append(f[H], c2());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
330
|
+
} else if (i.nodeType === 8) if (i.data === l4) c.push({ type: 2, index: n });
|
|
331
331
|
else {
|
|
332
332
|
let f = -1;
|
|
333
333
|
for (; (f = i.data.indexOf(p1, f + 1)) !== -1; ) c.push({ type: 7, index: n }), f += p1.length - 1;
|
|
@@ -340,14 +340,14 @@ class p2 {
|
|
|
340
340
|
return o.innerHTML = e, o;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function O1(r, e, t = r, o) {
|
|
344
344
|
var l, d;
|
|
345
345
|
if (e === R1) return e;
|
|
346
346
|
let i = o !== void 0 ? (l = t._$Co) == null ? void 0 : l[o] : t._$Cl;
|
|
347
347
|
const n = C2(e) ? void 0 : e._$litDirective$;
|
|
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 =
|
|
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 U4 {
|
|
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 U3 {
|
|
|
364
364
|
for (; c !== void 0; ) {
|
|
365
365
|
if (l === c.index) {
|
|
366
366
|
let C;
|
|
367
|
-
c.type === 2 ? C = new k2(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 k2(n, n.nextSibling, this, e) : c.type === 1 ? C = new c.ctor(n, c.name, c.strings, this, e) : c.type === 6 && (C = new Y4(n, this, e)), this._$AV.push(C), c = o[++d];
|
|
368
368
|
}
|
|
369
369
|
l !== (c == null ? void 0 : c.index) && (n = w1.nextNode(), l++);
|
|
370
370
|
}
|
|
@@ -395,7 +395,7 @@ class k2 {
|
|
|
395
395
|
return this._$AB;
|
|
396
396
|
}
|
|
397
397
|
_$AI(e, t = this) {
|
|
398
|
-
e =
|
|
398
|
+
e = O1(this, e, t), C2(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== R1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : N4(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 k2 {
|
|
|
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 = p2.createElement(
|
|
411
|
+
const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = p2.createElement(d4(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 U4(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 = Et.get(e.strings);
|
|
420
|
+
return t === void 0 && Et.set(e.strings, t = new p2(e)), t;
|
|
421
421
|
}
|
|
422
422
|
k(e) {
|
|
423
423
|
G5(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -429,8 +429,8 @@ class k2 {
|
|
|
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 = wt(e).nextSibling;
|
|
433
|
+
wt(e).remove(), e = i;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
setConnected(e) {
|
|
@@ -451,11 +451,11 @@ class K2 {
|
|
|
451
451
|
_$AI(e, t = this, o, i) {
|
|
452
452
|
const n = this.strings;
|
|
453
453
|
let l = !1;
|
|
454
|
-
if (n === void 0) e =
|
|
454
|
+
if (n === void 0) e = O1(this, e, t, 0), l = !C2(e) || e !== this._$AH && e !== R1, l && (this._$AH = e);
|
|
455
455
|
else {
|
|
456
456
|
const d = e;
|
|
457
457
|
let c, C;
|
|
458
|
-
for (e = n[0], c = 0; c < n.length - 1; c++) C =
|
|
458
|
+
for (e = n[0], c = 0; c < n.length - 1; c++) C = O1(this, d[o + c], t, c), C === R1 && (C = this._$AH[c]), l || (l = !C2(C) || C !== this._$AH[c]), C === u ? e = u : e !== u && (e += (C ?? "") + n[c + 1]), this._$AH[c] = C;
|
|
459
459
|
}
|
|
460
460
|
l && !i && this.j(e);
|
|
461
461
|
}
|
|
@@ -463,7 +463,7 @@ class K2 {
|
|
|
463
463
|
e === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
class
|
|
466
|
+
class G4 extends K2 {
|
|
467
467
|
constructor() {
|
|
468
468
|
super(...arguments), this.type = 3;
|
|
469
469
|
}
|
|
@@ -471,7 +471,7 @@ class G3 extends K2 {
|
|
|
471
471
|
this.element[this.name] = e === u ? void 0 : e;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class K4 extends K2 {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(...arguments), this.type = 4;
|
|
477
477
|
}
|
|
@@ -479,12 +479,12 @@ class K3 extends K2 {
|
|
|
479
479
|
this.element.toggleAttribute(this.name, !!e && e !== u);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
class
|
|
482
|
+
class W4 extends K2 {
|
|
483
483
|
constructor(e, t, o, i, n) {
|
|
484
484
|
super(e, t, o, i, n), this.type = 5;
|
|
485
485
|
}
|
|
486
486
|
_$AI(e, t = this) {
|
|
487
|
-
if ((e =
|
|
487
|
+
if ((e = O1(this, e, t, 0) ?? u) === R1) return;
|
|
488
488
|
const o = this._$AH, i = e === u && o !== u || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, n = e !== u && (o === u || i);
|
|
489
489
|
i && this.element.removeEventListener(this.name, this, o), n && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
490
490
|
}
|
|
@@ -493,7 +493,7 @@ class W3 extends K2 {
|
|
|
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 Y4 {
|
|
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
|
}
|
|
@@ -501,12 +501,12 @@ class Y3 {
|
|
|
501
501
|
return this._$AM._$AU;
|
|
502
502
|
}
|
|
503
503
|
_$AI(e) {
|
|
504
|
-
|
|
504
|
+
O1(this, e);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
const X2 = a2.litHtmlPolyfillSupport;
|
|
508
508
|
X2 == null || X2(p2, k2), (a2.litHtmlVersions ?? (a2.litHtmlVersions = [])).push("3.3.2");
|
|
509
|
-
const
|
|
509
|
+
const q4 = (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) {
|
|
@@ -521,7 +521,7 @@ const q3 = (r, e, t) => {
|
|
|
521
521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
522
522
|
*/
|
|
523
523
|
const Z1 = globalThis;
|
|
524
|
-
let h = class extends
|
|
524
|
+
let h = class extends F1 {
|
|
525
525
|
constructor() {
|
|
526
526
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
527
527
|
}
|
|
@@ -532,7 +532,7 @@ let h = class extends O1 {
|
|
|
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 = q4(t, this.renderRoot, this.renderOptions);
|
|
536
536
|
}
|
|
537
537
|
connectedCallback() {
|
|
538
538
|
var e;
|
|
@@ -546,8 +546,8 @@ let h = class extends O1 {
|
|
|
546
546
|
return R1;
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
|
-
var
|
|
550
|
-
h._$litElement$ = !0, h.finalized = !0, (
|
|
549
|
+
var i4;
|
|
550
|
+
h._$litElement$ = !0, h.finalized = !0, (i4 = Z1.litElementHydrateSupport) == null || i4.call(Z1, { LitElement: h });
|
|
551
551
|
const J2 = Z1.litElementPolyfillSupport;
|
|
552
552
|
J2 == null || J2({ LitElement: h });
|
|
553
553
|
(Z1.litElementVersions ?? (Z1.litElementVersions = [])).push("4.2.2");
|
|
@@ -556,7 +556,7 @@ J2 == null || J2({ LitElement: h });
|
|
|
556
556
|
* Copyright 2017 Google LLC
|
|
557
557
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
558
558
|
*/
|
|
559
|
-
const
|
|
559
|
+
const X4 = { attribute: !0, type: String, converter: E2, reflect: !1, hasChanged: U5 }, J4 = (r = X4, 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 X3 = { attribute: !0, type: String, converter: E2, 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" ? J4(r, e, t) : ((o, i, n) => {
|
|
582
582
|
const l = i.hasOwnProperty(n);
|
|
583
583
|
return i.constructor.createProperty(n, o), l ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
|
584
584
|
})(r, e, t);
|
|
@@ -596,27 +596,27 @@ function b(r) {
|
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
const
|
|
599
|
+
const Q4 = (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
|
|
603
603
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
604
604
|
*/
|
|
605
|
-
function
|
|
605
|
+
function R(r, e) {
|
|
606
606
|
return (t, o, i) => {
|
|
607
607
|
const n = (l) => {
|
|
608
608
|
var d;
|
|
609
609
|
return ((d = l.renderRoot) == null ? void 0 : d.querySelector(r)) ?? null;
|
|
610
610
|
};
|
|
611
|
-
return
|
|
611
|
+
return Q4(t, o, { get() {
|
|
612
612
|
return n(this);
|
|
613
613
|
} });
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
var
|
|
616
|
+
var e3 = Object.defineProperty, c4 = (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 && e3(e, t, i), i;
|
|
620
620
|
};
|
|
621
621
|
const X5 = class X5 extends h {
|
|
622
622
|
constructor() {
|
|
@@ -681,24 +681,24 @@ X5.styles = g`
|
|
|
681
681
|
@keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
|
682
682
|
`;
|
|
683
683
|
let h2 = X5;
|
|
684
|
-
|
|
684
|
+
c4([
|
|
685
685
|
s()
|
|
686
686
|
], h2.prototype, "size");
|
|
687
|
-
|
|
687
|
+
c4([
|
|
688
688
|
s()
|
|
689
689
|
], h2.prototype, "percent");
|
|
690
690
|
customElements.get("anduin-spinner") || customElements.define("anduin-spinner", h2);
|
|
691
|
-
var
|
|
691
|
+
var t3 = Object.defineProperty, C4 = (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 && t3(e, t, i), i;
|
|
695
695
|
};
|
|
696
|
-
const
|
|
696
|
+
const zt = "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", i3 = { small: 16, medium: 24, large: 32 }, J5 = class J5 extends h {
|
|
697
697
|
constructor() {
|
|
698
698
|
super(...arguments), this.size = "small", this.color = "default";
|
|
699
699
|
}
|
|
700
700
|
render() {
|
|
701
|
-
const e =
|
|
701
|
+
const e = i3[this.size] ?? 16;
|
|
702
702
|
return u2`
|
|
703
703
|
<svg
|
|
704
704
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -708,8 +708,8 @@ const z4 = "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="${zt}"/>
|
|
712
|
+
<path class="star star-2" d="${zt}"/>
|
|
713
713
|
</svg>
|
|
714
714
|
`;
|
|
715
715
|
}
|
|
@@ -754,19 +754,19 @@ J5.styles = g`
|
|
|
754
754
|
}
|
|
755
755
|
`;
|
|
756
756
|
let g2 = J5;
|
|
757
|
-
|
|
757
|
+
C4([
|
|
758
758
|
s({ reflect: !0 })
|
|
759
759
|
], g2.prototype, "size");
|
|
760
|
-
|
|
760
|
+
C4([
|
|
761
761
|
s({ reflect: !0 })
|
|
762
762
|
], g2.prototype, "color");
|
|
763
763
|
customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", g2);
|
|
764
|
-
var
|
|
764
|
+
var o3 = Object.defineProperty, K5 = (r, e, t, o) => {
|
|
765
765
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
766
766
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
767
|
-
return i &&
|
|
767
|
+
return i && o3(e, t, i), i;
|
|
768
768
|
};
|
|
769
|
-
const
|
|
769
|
+
const u4 = [
|
|
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 u3 = [
|
|
|
809
809
|
originY: 39.0175,
|
|
810
810
|
delay: -0.97
|
|
811
811
|
}
|
|
812
|
-
],
|
|
812
|
+
], St = 20, At = 5, n3 = 900, r3 = 160, Dt = 2, l3 = "cubic-bezier(0.22, 0.61, 0.36, 1)", Q2 = 180, o2 = "ai-spinner--loading", n2 = "ai-spinner--settling", M1 = "ai-spinner__segment", s3 = u4.map(
|
|
813
813
|
(r) => `
|
|
814
814
|
.${M1}--${r.index} {
|
|
815
815
|
transform-origin: ${r.originX}px ${r.originY}px;
|
|
@@ -823,10 +823,10 @@ const u3 = [
|
|
|
823
823
|
).join(`
|
|
824
824
|
`), Q5 = class Q5 extends h {
|
|
825
825
|
constructor() {
|
|
826
|
-
super(...arguments), this.state = "loading", this.size =
|
|
826
|
+
super(...arguments), this.state = "loading", this.size = St;
|
|
827
827
|
}
|
|
828
828
|
render() {
|
|
829
|
-
const e = this.size > 0 ? this.size :
|
|
829
|
+
const e = this.size > 0 ? this.size : St;
|
|
830
830
|
return a`
|
|
831
831
|
<div class="ai-spinner">
|
|
832
832
|
<svg
|
|
@@ -838,7 +838,7 @@ const u3 = [
|
|
|
838
838
|
fill="none"
|
|
839
839
|
aria-hidden="true"
|
|
840
840
|
>
|
|
841
|
-
${
|
|
841
|
+
${u4.map(
|
|
842
842
|
(t) => u2`
|
|
843
843
|
<path
|
|
844
844
|
class="${M1} ${M1}--${t.index}"
|
|
@@ -862,7 +862,7 @@ const u3 = [
|
|
|
862
862
|
const t = this.wrapper;
|
|
863
863
|
if (!t) return;
|
|
864
864
|
const o = this.currentRotationDegrees(t), i = t.classList.contains(o2) || t.classList.contains(n2);
|
|
865
|
-
e ? (this.cancelSettle(t), this.cancelSegmentRest(t), o !== null && o >=
|
|
865
|
+
e ? (this.cancelSettle(t), this.cancelSegmentRest(t), o !== null && o >= Dt ? t.style.setProperty("animation-delay", `${-(o / 360 * At)}s`) : t.style.removeProperty("animation-delay"), t.classList.add(o2)) : i && (o !== null && 360 - o >= Dt ? (this.cancelSettle(t), t.classList.remove(o2), 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) {
|
|
@@ -874,8 +874,8 @@ const u3 = [
|
|
|
874
874
|
return i < 0 ? i + 360 : i;
|
|
875
875
|
}
|
|
876
876
|
startSettle(e, t) {
|
|
877
|
-
const o = 360 - t, i = Math.max(
|
|
878
|
-
e.classList.add(n2), e.style.setProperty("transition", "none"), e.style.setProperty("transform", `rotate(${t}deg)`), e.offsetHeight, e.style.setProperty("transition", `transform ${i}ms ${
|
|
877
|
+
const o = 360 - t, i = Math.max(r3, o / 360 * n3);
|
|
878
|
+
e.classList.add(n2), e.style.setProperty("transition", "none"), e.style.setProperty("transform", `rotate(${t}deg)`), e.offsetHeight, e.style.setProperty("transition", `transform ${i}ms ${l3}`), e.style.setProperty("transform", "rotate(360deg)"), this.settleListener = (n) => {
|
|
879
879
|
n.target === e && n.propertyName === "transform" && this.restSegments(e);
|
|
880
880
|
}, e.addEventListener("transitionend", this.settleListener);
|
|
881
881
|
}
|
|
@@ -947,7 +947,7 @@ Q5.styles = g`
|
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
.ai-spinner--loading {
|
|
950
|
-
animation: ai-spinner-spin ${
|
|
950
|
+
animation: ai-spinner-spin ${At}s linear infinite;
|
|
951
951
|
will-change: transform;
|
|
952
952
|
}
|
|
953
953
|
|
|
@@ -960,7 +960,7 @@ Q5.styles = g`
|
|
|
960
960
|
animation: ai-spinner-pulse 1.52s linear infinite;
|
|
961
961
|
}
|
|
962
962
|
|
|
963
|
-
${
|
|
963
|
+
${n4(s3)}
|
|
964
964
|
|
|
965
965
|
@keyframes ai-spinner-spin {
|
|
966
966
|
to {
|
|
@@ -1007,10 +1007,10 @@ K5([
|
|
|
1007
1007
|
s({ type: Number, reflect: !0 })
|
|
1008
1008
|
], N1.prototype, "size");
|
|
1009
1009
|
K5([
|
|
1010
|
-
|
|
1010
|
+
R(".ai-spinner")
|
|
1011
1011
|
], N1.prototype, "wrapper");
|
|
1012
1012
|
customElements.get("anduin-ai-spinner") || customElements.define("anduin-ai-spinner", N1);
|
|
1013
|
-
const
|
|
1013
|
+
const Pt = {
|
|
1014
1014
|
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" }],
|
|
1015
1015
|
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" }],
|
|
1016
1016
|
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" }],
|
|
@@ -1372,17 +1372,17 @@ const P4 = {
|
|
|
1372
1372
|
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" }],
|
|
1373
1373
|
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" }]
|
|
1374
1374
|
};
|
|
1375
|
-
var
|
|
1375
|
+
var a3 = Object.defineProperty, p4 = (r, e, t, o) => {
|
|
1376
1376
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1377
1377
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1378
|
-
return i &&
|
|
1378
|
+
return i && a3(e, t, i), i;
|
|
1379
1379
|
};
|
|
1380
1380
|
const ee = class ee extends h {
|
|
1381
1381
|
constructor() {
|
|
1382
1382
|
super(...arguments), this.name = "", this.size = 16;
|
|
1383
1383
|
}
|
|
1384
1384
|
render() {
|
|
1385
|
-
const e = this.name &&
|
|
1385
|
+
const e = this.name && Pt[this.name] ? Pt[this.name] : [], t = !this.name;
|
|
1386
1386
|
return u2`
|
|
1387
1387
|
<svg
|
|
1388
1388
|
class=${t ? "icon--hidden" : ""}
|
|
@@ -1410,19 +1410,19 @@ ee.styles = g`
|
|
|
1410
1410
|
.icon--hidden { display: none; }
|
|
1411
1411
|
`;
|
|
1412
1412
|
let f2 = ee;
|
|
1413
|
-
|
|
1413
|
+
p4([
|
|
1414
1414
|
s()
|
|
1415
1415
|
], f2.prototype, "name");
|
|
1416
|
-
|
|
1416
|
+
p4([
|
|
1417
1417
|
s({ type: Number })
|
|
1418
1418
|
], f2.prototype, "size");
|
|
1419
1419
|
customElements.get("anduin-icon") || customElements.define("anduin-icon", f2);
|
|
1420
|
-
var
|
|
1420
|
+
var d3 = Object.defineProperty, c3 = (r, e, t, o) => {
|
|
1421
1421
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1422
1422
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1423
|
-
return i &&
|
|
1423
|
+
return i && d3(e, t, i), i;
|
|
1424
1424
|
};
|
|
1425
|
-
const
|
|
1425
|
+
const h4 = g`
|
|
1426
1426
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1427
1427
|
.badge {
|
|
1428
1428
|
border-radius: 9999px;
|
|
@@ -1450,7 +1450,7 @@ const h3 = g`
|
|
|
1450
1450
|
.badge--bold-warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
|
|
1451
1451
|
.badge--hidden { display: none; }
|
|
1452
1452
|
`;
|
|
1453
|
-
function
|
|
1453
|
+
function g4(r) {
|
|
1454
1454
|
return {
|
|
1455
1455
|
gray: "badge--light-gray",
|
|
1456
1456
|
primary: "badge--light-primary",
|
|
@@ -1469,20 +1469,20 @@ const te = class te extends h {
|
|
|
1469
1469
|
super(...arguments), this.variant = "gray";
|
|
1470
1470
|
}
|
|
1471
1471
|
render() {
|
|
1472
|
-
const e =
|
|
1472
|
+
const e = g4(this.variant);
|
|
1473
1473
|
return a`<div class="badge ${e}" part="badge"><slot></slot></div>`;
|
|
1474
1474
|
}
|
|
1475
1475
|
};
|
|
1476
|
-
te.styles = [
|
|
1476
|
+
te.styles = [h4];
|
|
1477
1477
|
let S2 = te;
|
|
1478
|
-
|
|
1478
|
+
c3([
|
|
1479
1479
|
s()
|
|
1480
1480
|
], S2.prototype, "variant");
|
|
1481
1481
|
customElements.get("anduin-badge") || customElements.define("anduin-badge", S2);
|
|
1482
|
-
var
|
|
1482
|
+
var C3 = Object.defineProperty, f4 = (r, e, t, o) => {
|
|
1483
1483
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1484
1484
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1485
|
-
return i &&
|
|
1485
|
+
return i && C3(e, t, i), i;
|
|
1486
1486
|
};
|
|
1487
1487
|
const ie = class ie extends h {
|
|
1488
1488
|
constructor() {
|
|
@@ -1492,7 +1492,7 @@ const ie = class ie extends h {
|
|
|
1492
1492
|
return e > 99 ? "99+" : e.toString();
|
|
1493
1493
|
}
|
|
1494
1494
|
render() {
|
|
1495
|
-
const e =
|
|
1495
|
+
const e = g4(this.variant), t = this.count === 0, o = this.count > 0 && this.count < 10, i = [
|
|
1496
1496
|
"badge",
|
|
1497
1497
|
e,
|
|
1498
1498
|
t ? "badge--hidden" : "",
|
|
@@ -1501,21 +1501,21 @@ const ie = class ie extends h {
|
|
|
1501
1501
|
return a`<div class="${i}" part="badge">${this.formatCount(this.count)}</div>`;
|
|
1502
1502
|
}
|
|
1503
1503
|
};
|
|
1504
|
-
ie.styles = [
|
|
1504
|
+
ie.styles = [h4];
|
|
1505
1505
|
let v2 = ie;
|
|
1506
|
-
|
|
1506
|
+
f4([
|
|
1507
1507
|
s()
|
|
1508
1508
|
], v2.prototype, "variant");
|
|
1509
|
-
|
|
1509
|
+
f4([
|
|
1510
1510
|
s({ type: Number })
|
|
1511
1511
|
], v2.prototype, "count");
|
|
1512
1512
|
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", v2);
|
|
1513
|
-
var
|
|
1513
|
+
var u3 = Object.defineProperty, I = (r, e, t, o) => {
|
|
1514
1514
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1515
1515
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1516
|
-
return i &&
|
|
1516
|
+
return i && u3(e, t, i), i;
|
|
1517
1517
|
};
|
|
1518
|
-
function
|
|
1518
|
+
function p3(r) {
|
|
1519
1519
|
return r.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1520
1520
|
}
|
|
1521
1521
|
const oe = class oe extends h {
|
|
@@ -1535,7 +1535,7 @@ const oe = class oe extends h {
|
|
|
1535
1535
|
return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
|
|
1536
1536
|
}
|
|
1537
1537
|
getSizeKebab() {
|
|
1538
|
-
return
|
|
1538
|
+
return p3(this.size);
|
|
1539
1539
|
}
|
|
1540
1540
|
iconSize() {
|
|
1541
1541
|
return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
|
|
@@ -1742,10 +1742,10 @@ I([
|
|
|
1742
1742
|
s()
|
|
1743
1743
|
], E.prototype, "label");
|
|
1744
1744
|
customElements.get("anduin-button") || customElements.define("anduin-button", E);
|
|
1745
|
-
var
|
|
1745
|
+
var h3 = Object.defineProperty, g3 = (r, e, t, o) => {
|
|
1746
1746
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1747
1747
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1748
|
-
return i &&
|
|
1748
|
+
return i && h3(e, t, i), i;
|
|
1749
1749
|
};
|
|
1750
1750
|
const ne = class ne extends h {
|
|
1751
1751
|
constructor() {
|
|
@@ -1773,14 +1773,14 @@ ne.styles = g`
|
|
|
1773
1773
|
.callout--warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
|
|
1774
1774
|
`;
|
|
1775
1775
|
let A2 = ne;
|
|
1776
|
-
|
|
1776
|
+
g3([
|
|
1777
1777
|
s()
|
|
1778
1778
|
], A2.prototype, "variant");
|
|
1779
1779
|
customElements.get("anduin-callout") || customElements.define("anduin-callout", A2);
|
|
1780
|
-
var
|
|
1780
|
+
var f3 = Object.defineProperty, v4 = (r, e, t, o) => {
|
|
1781
1781
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1782
1782
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1783
|
-
return i &&
|
|
1783
|
+
return i && f3(e, t, i), i;
|
|
1784
1784
|
};
|
|
1785
1785
|
const re = class re extends h {
|
|
1786
1786
|
constructor() {
|
|
@@ -1824,17 +1824,17 @@ re.styles = g`
|
|
|
1824
1824
|
.divider__line--vertical { border-left: 1px solid var(--color-border); justify-self: center; }
|
|
1825
1825
|
`;
|
|
1826
1826
|
let b2 = re;
|
|
1827
|
-
|
|
1827
|
+
v4([
|
|
1828
1828
|
s({ reflect: !0 })
|
|
1829
1829
|
], b2.prototype, "direction");
|
|
1830
|
-
|
|
1830
|
+
v4([
|
|
1831
1831
|
b()
|
|
1832
1832
|
], b2.prototype, "hasContent");
|
|
1833
1833
|
customElements.get("anduin-divider") || customElements.define("anduin-divider", b2);
|
|
1834
|
-
var
|
|
1834
|
+
var v3 = Object.defineProperty, b3 = (r, e, t, o) => {
|
|
1835
1835
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1836
1836
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1837
|
-
return i &&
|
|
1837
|
+
return i && v3(e, t, i), i;
|
|
1838
1838
|
};
|
|
1839
1839
|
const le = class le extends h {
|
|
1840
1840
|
constructor() {
|
|
@@ -1855,14 +1855,14 @@ le.styles = g`
|
|
|
1855
1855
|
.dot--warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
|
|
1856
1856
|
`;
|
|
1857
1857
|
let D2 = le;
|
|
1858
|
-
|
|
1858
|
+
b3([
|
|
1859
1859
|
s()
|
|
1860
1860
|
], D2.prototype, "variant");
|
|
1861
1861
|
customElements.get("anduin-dot") || customElements.define("anduin-dot", D2);
|
|
1862
|
-
var
|
|
1862
|
+
var m3 = Object.defineProperty, b4 = (r, e, t, o) => {
|
|
1863
1863
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1864
1864
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1865
|
-
return i &&
|
|
1865
|
+
return i && m3(e, t, i), i;
|
|
1866
1866
|
};
|
|
1867
1867
|
const se = class se extends h {
|
|
1868
1868
|
constructor() {
|
|
@@ -1897,17 +1897,17 @@ se.styles = g`
|
|
|
1897
1897
|
}
|
|
1898
1898
|
`;
|
|
1899
1899
|
let m2 = se;
|
|
1900
|
-
|
|
1900
|
+
b4([
|
|
1901
1901
|
s()
|
|
1902
1902
|
], m2.prototype, "percent");
|
|
1903
|
-
|
|
1903
|
+
b4([
|
|
1904
1904
|
s()
|
|
1905
1905
|
], m2.prototype, "height");
|
|
1906
1906
|
customElements.get("anduin-progress") || customElements.define("anduin-progress", m2);
|
|
1907
|
-
var
|
|
1907
|
+
var H3 = Object.defineProperty, q1 = (r, e, t, o) => {
|
|
1908
1908
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1909
1909
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1910
|
-
return i &&
|
|
1910
|
+
return i && H3(e, t, i), i;
|
|
1911
1911
|
};
|
|
1912
1912
|
const ae = class ae extends h {
|
|
1913
1913
|
constructor() {
|
|
@@ -1967,10 +1967,10 @@ q1([
|
|
|
1967
1967
|
s({ attribute: "font-size" })
|
|
1968
1968
|
], r1.prototype, "fontSize");
|
|
1969
1969
|
customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", r1);
|
|
1970
|
-
var
|
|
1970
|
+
var y3 = Object.defineProperty, _3 = (r, e, t, o) => {
|
|
1971
1971
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1972
1972
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1973
|
-
return i &&
|
|
1973
|
+
return i && y3(e, t, i), i;
|
|
1974
1974
|
};
|
|
1975
1975
|
const de = class de extends h {
|
|
1976
1976
|
constructor() {
|
|
@@ -1994,21 +1994,21 @@ de.styles = g`
|
|
|
1994
1994
|
.loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-subtle-foreground); }
|
|
1995
1995
|
`;
|
|
1996
1996
|
let P2 = de;
|
|
1997
|
-
|
|
1997
|
+
_3([
|
|
1998
1998
|
s()
|
|
1999
1999
|
], P2.prototype, "height");
|
|
2000
2000
|
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", P2);
|
|
2001
|
-
var
|
|
2001
|
+
var L3 = Object.defineProperty, W5 = (r, e, t, o) => {
|
|
2002
2002
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2003
2003
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2004
|
-
return i &&
|
|
2004
|
+
return i && L3(e, t, i), i;
|
|
2005
2005
|
};
|
|
2006
|
-
const
|
|
2006
|
+
const m4 = "anduin-field:label-click", f1 = "anduin-field:label-click-coordinated", ce = class ce extends h {
|
|
2007
2007
|
constructor() {
|
|
2008
2008
|
super(...arguments), this.orientation = "vertical";
|
|
2009
2009
|
}
|
|
2010
2010
|
connectedCallback() {
|
|
2011
|
-
super.connectedCallback(), this.addEventListener(
|
|
2011
|
+
super.connectedCallback(), this.addEventListener(m4, (e) => {
|
|
2012
2012
|
const t = e;
|
|
2013
2013
|
this.dispatchEvent(new CustomEvent(f1, {
|
|
2014
2014
|
detail: t.detail,
|
|
@@ -2044,7 +2044,7 @@ const Ce = class Ce extends h {
|
|
|
2044
2044
|
super.connectedCallback();
|
|
2045
2045
|
}
|
|
2046
2046
|
onLabelClick(e) {
|
|
2047
|
-
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(
|
|
2047
|
+
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(m4, {
|
|
2048
2048
|
detail: this.htmlfor,
|
|
2049
2049
|
bubbles: !0,
|
|
2050
2050
|
composed: !0
|
|
@@ -2110,12 +2110,12 @@ customElements.get("anduin-field-label") || customElements.define("anduin-field-
|
|
|
2110
2110
|
customElements.get("anduin-field-description") || customElements.define("anduin-field-description", a5);
|
|
2111
2111
|
customElements.get("anduin-field-error") || customElements.define("anduin-field-error", d5);
|
|
2112
2112
|
customElements.get("anduin-field-group") || customElements.define("anduin-field-group", c5);
|
|
2113
|
-
var
|
|
2113
|
+
var V3 = Object.defineProperty, R2 = (r, e, t, o) => {
|
|
2114
2114
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2115
2115
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2116
|
-
return i &&
|
|
2116
|
+
return i && V3(e, t, i), i;
|
|
2117
2117
|
};
|
|
2118
|
-
const
|
|
2118
|
+
const x3 = "anduin-checkbox:change", ge = class ge extends h {
|
|
2119
2119
|
constructor() {
|
|
2120
2120
|
super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
|
|
2121
2121
|
}
|
|
@@ -2128,7 +2128,7 @@ const xt = "anduin-checkbox:change", ge = class ge extends h {
|
|
|
2128
2128
|
});
|
|
2129
2129
|
}
|
|
2130
2130
|
toggle() {
|
|
2131
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
2131
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(x3, {
|
|
2132
2132
|
detail: this.checked,
|
|
2133
2133
|
bubbles: !0,
|
|
2134
2134
|
composed: !0
|
|
@@ -2224,17 +2224,87 @@ R2([
|
|
|
2224
2224
|
s()
|
|
2225
2225
|
], v1.prototype, "inputid");
|
|
2226
2226
|
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", v1);
|
|
2227
|
-
var
|
|
2227
|
+
var w3 = Object.defineProperty, z = (r, e, t, o) => {
|
|
2228
2228
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2229
2229
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2230
|
-
return i &&
|
|
2230
|
+
return i && w3(e, t, i), i;
|
|
2231
2231
|
};
|
|
2232
|
-
const
|
|
2232
|
+
const Bt = "anduin-input:change", M3 = "anduin-input:clear", j2 = class j2 extends h {
|
|
2233
2233
|
constructor() {
|
|
2234
|
-
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.type = "text", this.autocomplete = "", this.name = "", this.revealable = !1, this._revealed = !1
|
|
2234
|
+
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.type = "text", this.autocomplete = "", this.name = "", this.revealable = !1, this._revealed = !1, this._slotted = null, this._slottedType = "text", this._slottedTypeAttr = null, this._slottedFresh = !1, this._written = /* @__PURE__ */ new Map(), this._onSlottedInput = () => this.onInput(), this._onSlottedChange = () => {
|
|
2235
|
+
this._slotted && this._slotted.value !== this.value && this.onInput();
|
|
2236
|
+
};
|
|
2237
|
+
}
|
|
2238
|
+
/** The `<input>` everything acts on: the slotted one if present, else the inner one. */
|
|
2239
|
+
get inputEl() {
|
|
2240
|
+
return this._slotted ?? this._innerInput ?? void 0;
|
|
2241
|
+
}
|
|
2242
|
+
_findSlotted() {
|
|
2243
|
+
for (const e of Array.from(this.children))
|
|
2244
|
+
if (e.localName === "input" && e.getAttribute("slot") === "input") return e;
|
|
2245
|
+
return null;
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
* Adopts (or lets go of) a consumer's native `<input slot="input">`.
|
|
2249
|
+
*
|
|
2250
|
+
* The reason this exists: the inner `<input>` lives in a shadow root, and
|
|
2251
|
+
* Safari's AutoFill (iCloud Keychain) — and other password managers to
|
|
2252
|
+
* varying degrees — do not reliably find, fill, save or suggest passwords
|
|
2253
|
+
* for a field there. They look for a light-DOM input, ideally inside a
|
|
2254
|
+
* <form> next to a username field. `type`, `autocomplete` and `name` (0.0.67)
|
|
2255
|
+
* reach the inner input but cannot fix that, so a sign-in form slots its own.
|
|
2256
|
+
*
|
|
2257
|
+
* On adoption the value is reconciled once: a non-empty host value wins (it
|
|
2258
|
+
* is what a controlled React `value` says), otherwise the input's own value —
|
|
2259
|
+
* typed before upgrade, or already autofilled — becomes the host's, quietly.
|
|
2260
|
+
*/
|
|
2261
|
+
_setSlotted(e) {
|
|
2262
|
+
if (e === this._slotted) return;
|
|
2263
|
+
const t = this._slotted;
|
|
2264
|
+
if (t) {
|
|
2265
|
+
t.removeEventListener("input", this._onSlottedInput), t.removeEventListener("change", this._onSlottedChange);
|
|
2266
|
+
for (const [o, i] of this._written)
|
|
2267
|
+
t.getAttribute(o) === i && t.removeAttribute(o);
|
|
2268
|
+
t.getAttribute("type") !== this._slottedTypeAttr && (this._slottedTypeAttr === null ? t.removeAttribute("type") : t.setAttribute("type", this._slottedTypeAttr));
|
|
2269
|
+
}
|
|
2270
|
+
this._written = /* @__PURE__ */ new Map(), this._revealed = !1, this._slotted = e, e && (e.addEventListener("input", this._onSlottedInput), e.addEventListener("change", this._onSlottedChange), this._slottedTypeAttr = e.getAttribute("type"), this._slottedType = (this._slottedTypeAttr || "text").toLowerCase(), this.value ? e.value = this.value : e.value && (this.value = e.value), this._slottedFresh = !0);
|
|
2271
|
+
}
|
|
2272
|
+
onSlotChange() {
|
|
2273
|
+
this._setSlotted(this._findSlotted());
|
|
2274
|
+
}
|
|
2275
|
+
/** The type the field has when not revealed. */
|
|
2276
|
+
get _baseType() {
|
|
2277
|
+
return this.type && this.type !== "text" ? this.type : this._slotted ? this._slottedType : "text";
|
|
2278
|
+
}
|
|
2279
|
+
/**
|
|
2280
|
+
* Writes a host prop onto the slotted input as an attribute: only when the
|
|
2281
|
+
* prop is non-empty (or `true`), and never over an attribute the consumer
|
|
2282
|
+
* set. Clearing a prop removes only an attribute this element wrote.
|
|
2283
|
+
*/
|
|
2284
|
+
_writeAttr(e, t, o) {
|
|
2285
|
+
const i = e.getAttribute(t), n = this._written.get(t);
|
|
2286
|
+
if (i !== null && i !== n) return;
|
|
2287
|
+
const l = o === !0 ? "" : o || null;
|
|
2288
|
+
l === null ? (i !== null && e.removeAttribute(t), this._written.delete(t)) : (i !== l && e.setAttribute(t, l), this._written.set(t, l));
|
|
2289
|
+
}
|
|
2290
|
+
_syncSlotted(e, t) {
|
|
2291
|
+
const o = this._slottedFresh;
|
|
2292
|
+
this._slottedFresh = !1;
|
|
2293
|
+
const i = [
|
|
2294
|
+
["inputid", "id", this.inputid],
|
|
2295
|
+
["name", "name", this.name],
|
|
2296
|
+
["autocomplete", "autocomplete", this.autocomplete],
|
|
2297
|
+
["placeholder", "placeholder", this.placeholder],
|
|
2298
|
+
["disabled", "disabled", this.disabled],
|
|
2299
|
+
["readonly", "readonly", this.readonly]
|
|
2300
|
+
];
|
|
2301
|
+
for (const [d, c, C] of i)
|
|
2302
|
+
(o || t.has(d)) && this._writeAttr(e, c, C);
|
|
2303
|
+
const l = this._baseType === "password" && this.revealable && this._revealed ? "text" : this._baseType;
|
|
2304
|
+
e.type !== l && (e.type = l), (o || t.has("value")) && e.value !== this.value && (e.value = this.value);
|
|
2235
2305
|
}
|
|
2236
2306
|
connectedCallback() {
|
|
2237
|
-
super.connectedCallback();
|
|
2307
|
+
super.connectedCallback(), this._setSlotted(this._findSlotted());
|
|
2238
2308
|
const e = this.closest("anduin-field");
|
|
2239
2309
|
e && e.addEventListener(f1, (t) => {
|
|
2240
2310
|
var i;
|
|
@@ -2243,9 +2313,13 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
|
|
|
2243
2313
|
});
|
|
2244
2314
|
}
|
|
2245
2315
|
willUpdate(e) {
|
|
2246
|
-
(e.has("type") && this.
|
|
2316
|
+
((e.has("type") || e.has("_slottedType")) && this._baseType !== "password" || e.has("revealable") && !this.revealable) && (this._revealed = !1);
|
|
2247
2317
|
}
|
|
2248
|
-
updated() {
|
|
2318
|
+
updated(e) {
|
|
2319
|
+
if (this._slotted) {
|
|
2320
|
+
this._syncSlotted(this._slotted, e);
|
|
2321
|
+
return;
|
|
2322
|
+
}
|
|
2249
2323
|
this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
|
|
2250
2324
|
}
|
|
2251
2325
|
/**
|
|
@@ -2264,7 +2338,7 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
|
|
|
2264
2338
|
* unfocusable, as a native one is.
|
|
2265
2339
|
*/
|
|
2266
2340
|
focus(e) {
|
|
2267
|
-
this.inputEl ? super.focus(e) : this.updateComplete.then(() => super.focus(e));
|
|
2341
|
+
this._slotted ? this._slotted.focus(e) : this.inputEl ? super.focus(e) : this.updateComplete.then(() => super.focus(e));
|
|
2268
2342
|
}
|
|
2269
2343
|
/**
|
|
2270
2344
|
* Selects the whole value so the next keystroke replaces it — e.g. from an
|
|
@@ -2278,15 +2352,15 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
|
|
|
2278
2352
|
this._withInput((i) => i.setSelectionRange(e, t, o));
|
|
2279
2353
|
}
|
|
2280
2354
|
onInput() {
|
|
2281
|
-
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(
|
|
2355
|
+
this.inputEl && (this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(Bt, {
|
|
2282
2356
|
detail: this.value,
|
|
2283
2357
|
bubbles: !0,
|
|
2284
2358
|
composed: !0
|
|
2285
|
-
}));
|
|
2359
|
+
})));
|
|
2286
2360
|
}
|
|
2287
2361
|
onClear() {
|
|
2288
2362
|
var e;
|
|
2289
|
-
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(
|
|
2363
|
+
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(Bt, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(M3, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
|
|
2290
2364
|
}
|
|
2291
2365
|
/**
|
|
2292
2366
|
* Pointer presses on the reveal button must not move focus off the input:
|
|
@@ -2311,17 +2385,19 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
|
|
|
2311
2385
|
*
|
|
2312
2386
|
* Restored only while the input still has focus: an unfocused
|
|
2313
2387
|
* `setSelectionRange` can pull focus in some engines, and a keyboard user
|
|
2314
|
-
* pressing the button is sitting on the button, not the input.
|
|
2388
|
+
* pressing the button is sitting on the button, not the input. "Has focus"
|
|
2389
|
+
* is asked of the input's own root: the shadow root for the inner input,
|
|
2390
|
+
* the document (or an enclosing shadow root) for a slotted one.
|
|
2315
2391
|
*/
|
|
2316
2392
|
onRevealToggle() {
|
|
2317
2393
|
const e = this.inputEl, t = (e == null ? void 0 : e.selectionStart) ?? null, o = (e == null ? void 0 : e.selectionEnd) ?? null, i = (e == null ? void 0 : e.selectionDirection) ?? void 0;
|
|
2318
2394
|
this._revealed = !this._revealed, this.updateComplete.then(() => {
|
|
2319
|
-
|
|
2320
|
-
e && t !== null && o !== null && (
|
|
2395
|
+
const n = e == null ? void 0 : e.getRootNode();
|
|
2396
|
+
e && t !== null && o !== null && (n == null ? void 0 : n.activeElement) === e && (e.getBoundingClientRect(), e.setSelectionRange(t, o, i ?? void 0));
|
|
2321
2397
|
});
|
|
2322
2398
|
}
|
|
2323
2399
|
render() {
|
|
2324
|
-
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.
|
|
2400
|
+
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._baseType === "password" && this.revealable, n = !!this.endIcon || this.clearable && !!this.value || i, l = this.clearable && !!this.value && !this.disabled && !this.readonly, d = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", c = this.size === "small" ? "10" : this.size === "large" ? "16" : "14", C = i && this._revealed ? "text" : this._baseType, p = i ? (l ? Number(c) + 2 : 0) + (this.endIcon ? Number(d) + 2 : 0) : 0;
|
|
2325
2401
|
return a`
|
|
2326
2402
|
<div class="input-wrapper">
|
|
2327
2403
|
${o ? a`
|
|
@@ -2330,7 +2406,24 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
|
|
|
2330
2406
|
</span>
|
|
2331
2407
|
` : u}
|
|
2332
2408
|
|
|
2333
|
-
|
|
2409
|
+
<!--
|
|
2410
|
+
Always rendered, so a native input slotted later is still seen
|
|
2411
|
+
(slotchange). Empty, it is display: contents and draws nothing, so
|
|
2412
|
+
an element with no slotted input lays out exactly as before.
|
|
2413
|
+
-->
|
|
2414
|
+
<slot
|
|
2415
|
+
name="input"
|
|
2416
|
+
class="input-slot ${e}
|
|
2417
|
+
${o ? "input--has-start" : ""}
|
|
2418
|
+
${n ? "input--has-end" : ""}
|
|
2419
|
+
${this.disabled ? "input--disabled" : ""}
|
|
2420
|
+
${this.readonly ? "input--readonly" : ""}
|
|
2421
|
+
${t}"
|
|
2422
|
+
style=${p && this._slotted ? `--_end-extra: ${p}px` : u}
|
|
2423
|
+
@slotchange=${this.onSlotChange}
|
|
2424
|
+
></slot>
|
|
2425
|
+
|
|
2426
|
+
${this._slotted ? u : a`<input
|
|
2334
2427
|
class="input ${e}
|
|
2335
2428
|
${o ? "input--has-start" : ""}
|
|
2336
2429
|
${n ? "input--has-end" : ""}
|
|
@@ -2347,7 +2440,7 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
|
|
|
2347
2440
|
placeholder=${this.placeholder || ""}
|
|
2348
2441
|
part="input"
|
|
2349
2442
|
@input=${this.onInput}
|
|
2350
|
-
|
|
2443
|
+
/>`}
|
|
2351
2444
|
|
|
2352
2445
|
${n ? a`
|
|
2353
2446
|
<span class="input__end">
|
|
@@ -2445,63 +2538,141 @@ j2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, j2.styles
|
|
|
2445
2538
|
pointer press (which keeps focus in the input anyway) draws nothing. */
|
|
2446
2539
|
.input__reveal:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 1px; }
|
|
2447
2540
|
.input__reveal:disabled { cursor: not-allowed; }
|
|
2541
|
+
|
|
2542
|
+
/*
|
|
2543
|
+
* A native <input slot="input"> from the consumer, drawn the same as the
|
|
2544
|
+
* inner one above. Every rule mirrors one of the .input rules, keyed off
|
|
2545
|
+
* classes on the <slot> (the host's state) instead of on the input, so
|
|
2546
|
+
* nothing is ever written into the consumer's class attribute.
|
|
2547
|
+
*
|
|
2548
|
+
* Everything here is !important, and that is the point rather than a
|
|
2549
|
+
* shortcut. A slotted input is styled by both trees, and for normal
|
|
2550
|
+
* declarations the outer tree wins over ::slotted() whatever the
|
|
2551
|
+
* specificity or layer — so a page's reset (Tailwind's preflight sets
|
|
2552
|
+
* font: inherit, padding: 0, border: 0 solid, border-radius: 0 and a
|
|
2553
|
+
* transparent background on every input) would flatten the field. For
|
|
2554
|
+
* !important declarations the order flips and the shadow tree wins, which
|
|
2555
|
+
* is what makes the slotted field look like the inner one on any page.
|
|
2556
|
+
* The cost is that page CSS cannot restyle it, which is also true of the
|
|
2557
|
+
* inner input (it is reachable only through ::part(input)).
|
|
2558
|
+
*
|
|
2559
|
+
* Specificities are kept in the same order as the .input rules: base <
|
|
2560
|
+
* size < icon padding, then disabled / readonly / status, then :focus and
|
|
2561
|
+
* :active last at equal specificity, so a focused invalid field shows the
|
|
2562
|
+
* ring colour exactly as the inner input does.
|
|
2563
|
+
*
|
|
2564
|
+
* The UA styles the inner input with font-weight 400, no margin, normal
|
|
2565
|
+
* letter-spacing and no shadow; a page's input rules can change all of
|
|
2566
|
+
* those on a light-DOM input, so they are pinned here too.
|
|
2567
|
+
*/
|
|
2568
|
+
.input-slot::slotted(input) {
|
|
2569
|
+
display: block !important; width: 100% !important; min-width: 0 !important; margin: 0 !important;
|
|
2570
|
+
border: 1px solid var(--color-input) !important; border-radius: 4px !important;
|
|
2571
|
+
transition: all 0.1s, box-shadow 0.3s ease !important; line-height: 20px !important;
|
|
2572
|
+
color: var(--color-foreground) !important; background-color: var(--color-background) !important;
|
|
2573
|
+
box-sizing: border-box !important; font-family: var(--font-sans) !important;
|
|
2574
|
+
font-weight: 400 !important; font-style: normal !important; letter-spacing: normal !important;
|
|
2575
|
+
text-transform: none !important; text-indent: 0 !important; box-shadow: none !important; opacity: 1 !important;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
.input-slot.input--small::slotted(input) { height: 24px !important; padding: 0 6px !important; font-size: 11px !important; }
|
|
2579
|
+
.input-slot.input--default::slotted(input) { height: 32px !important; padding: 0 12px !important; font-size: 13px !important; }
|
|
2580
|
+
.input-slot.input--large::slotted(input) { height: 40px !important; padding: 0 16px !important; font-size: 15px !important; }
|
|
2581
|
+
|
|
2582
|
+
.input--has-start.input--small::slotted(input) { padding-left: 26px !important; }
|
|
2583
|
+
.input--has-start.input--default::slotted(input) { padding-left: 32px !important; }
|
|
2584
|
+
.input--has-start.input--large::slotted(input) { padding-left: 42px !important; }
|
|
2585
|
+
|
|
2586
|
+
/* --_end-extra is set on the <slot>; the slotted input inherits it there. */
|
|
2587
|
+
.input--has-end.input--small::slotted(input) { padding-right: calc(26px + var(--_end-extra, 0px)) !important; }
|
|
2588
|
+
.input--has-end.input--default::slotted(input) { padding-right: calc(32px + var(--_end-extra, 0px)) !important; }
|
|
2589
|
+
.input--has-end.input--large::slotted(input) { padding-right: calc(42px + var(--_end-extra, 0px)) !important; }
|
|
2590
|
+
|
|
2591
|
+
/* :disabled as well as the host's flag, so an input the consumer disables
|
|
2592
|
+
directly greys out too. */
|
|
2593
|
+
.input-slot.input--disabled::slotted(input),
|
|
2594
|
+
.input-slot::slotted(input:disabled) { color: var(--color-muted-foreground) !important; background-color: var(--color-disabled) !important; cursor: not-allowed !important; }
|
|
2595
|
+
.input-slot.input--readonly::slotted(input),
|
|
2596
|
+
.input-slot::slotted(input[readonly]) { background-color: var(--color-secondary) !important; }
|
|
2597
|
+
.input-slot.input--valid::slotted(input) { border-color: var(--color-success) !important; }
|
|
2598
|
+
.input-slot.input--invalid::slotted(input) { border-color: var(--color-destructive) !important; }
|
|
2599
|
+
.input-slot.input--warning::slotted(input) { border-color: var(--color-warning-active) !important; }
|
|
2600
|
+
.input-slot.input--loading::slotted(input) { border-color: var(--color-input) !important; }
|
|
2601
|
+
|
|
2602
|
+
/*
|
|
2603
|
+
* The inner input sets no placeholder colour, so it shows the browser's
|
|
2604
|
+
* own. A page's reset usually restyles ::placeholder on light-DOM inputs
|
|
2605
|
+
* (Tailwind's makes it 50% of currentColor), so the slotted one is
|
|
2606
|
+
* reverted to the user-agent value — whatever this browser draws for the
|
|
2607
|
+
* inner input — rather than to a guessed grey.
|
|
2608
|
+
*/
|
|
2609
|
+
.input-slot::slotted(input)::placeholder { color: revert !important; opacity: revert !important; }
|
|
2610
|
+
|
|
2611
|
+
.input-slot::slotted(input:focus) { outline: none !important; border-color: var(--color-ring) !important; }
|
|
2612
|
+
.input-slot::slotted(input:active) { box-shadow: 0 0 0 2px var(--color-ring-subtle) !important; }
|
|
2448
2613
|
`;
|
|
2449
|
-
let
|
|
2450
|
-
|
|
2614
|
+
let M = j2;
|
|
2615
|
+
z([
|
|
2451
2616
|
s()
|
|
2452
|
-
],
|
|
2453
|
-
|
|
2617
|
+
], M.prototype, "value");
|
|
2618
|
+
z([
|
|
2454
2619
|
s()
|
|
2455
|
-
],
|
|
2456
|
-
|
|
2620
|
+
], M.prototype, "size");
|
|
2621
|
+
z([
|
|
2457
2622
|
s({ type: Boolean })
|
|
2458
|
-
],
|
|
2459
|
-
|
|
2623
|
+
], M.prototype, "disabled");
|
|
2624
|
+
z([
|
|
2460
2625
|
s({ type: Boolean })
|
|
2461
|
-
],
|
|
2462
|
-
|
|
2626
|
+
], M.prototype, "readonly");
|
|
2627
|
+
z([
|
|
2463
2628
|
s()
|
|
2464
|
-
],
|
|
2465
|
-
|
|
2629
|
+
], M.prototype, "placeholder");
|
|
2630
|
+
z([
|
|
2466
2631
|
s()
|
|
2467
|
-
],
|
|
2468
|
-
|
|
2632
|
+
], M.prototype, "inputid");
|
|
2633
|
+
z([
|
|
2469
2634
|
s()
|
|
2470
|
-
],
|
|
2471
|
-
|
|
2635
|
+
], M.prototype, "status");
|
|
2636
|
+
z([
|
|
2472
2637
|
s({ attribute: "start-icon" })
|
|
2473
|
-
],
|
|
2474
|
-
|
|
2638
|
+
], M.prototype, "startIcon");
|
|
2639
|
+
z([
|
|
2475
2640
|
s({ attribute: "end-icon" })
|
|
2476
|
-
],
|
|
2477
|
-
|
|
2641
|
+
], M.prototype, "endIcon");
|
|
2642
|
+
z([
|
|
2478
2643
|
s({ type: Boolean })
|
|
2479
|
-
],
|
|
2480
|
-
|
|
2644
|
+
], M.prototype, "clearable");
|
|
2645
|
+
z([
|
|
2481
2646
|
s()
|
|
2482
|
-
],
|
|
2483
|
-
|
|
2647
|
+
], M.prototype, "type");
|
|
2648
|
+
z([
|
|
2484
2649
|
s()
|
|
2485
|
-
],
|
|
2486
|
-
|
|
2650
|
+
], M.prototype, "autocomplete");
|
|
2651
|
+
z([
|
|
2487
2652
|
s()
|
|
2488
|
-
],
|
|
2489
|
-
|
|
2653
|
+
], M.prototype, "name");
|
|
2654
|
+
z([
|
|
2490
2655
|
s({ type: Boolean })
|
|
2491
|
-
],
|
|
2492
|
-
|
|
2656
|
+
], M.prototype, "revealable");
|
|
2657
|
+
z([
|
|
2493
2658
|
b()
|
|
2494
|
-
],
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
],
|
|
2498
|
-
|
|
2499
|
-
|
|
2659
|
+
], M.prototype, "_revealed");
|
|
2660
|
+
z([
|
|
2661
|
+
b()
|
|
2662
|
+
], M.prototype, "_slotted");
|
|
2663
|
+
z([
|
|
2664
|
+
b()
|
|
2665
|
+
], M.prototype, "_slottedType");
|
|
2666
|
+
z([
|
|
2667
|
+
R("input.input")
|
|
2668
|
+
], M.prototype, "_innerInput");
|
|
2669
|
+
customElements.get("anduin-input") || customElements.define("anduin-input", M);
|
|
2670
|
+
var Z3 = Object.defineProperty, H4 = (r, e, t, o) => {
|
|
2500
2671
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2501
2672
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2502
|
-
return i &&
|
|
2673
|
+
return i && Z3(e, t, i), i;
|
|
2503
2674
|
};
|
|
2504
|
-
const
|
|
2675
|
+
const y4 = "anduin-tooltip:show", Y5 = "anduin-tooltip:hide", _4 = "anduin-tooltip:trigger-mounted", L4 = "anduin-tooltip:content-popup-mounted", V4 = "anduin-tooltip:content-popup-unmounted", x4 = "anduin-tooltip:visibility-changed", k3 = [
|
|
2505
2676
|
"top-start",
|
|
2506
2677
|
"top-center",
|
|
2507
2678
|
"top-end",
|
|
@@ -2515,7 +2686,7 @@ const _3 = "anduin-tooltip:show", Y5 = "anduin-tooltip:hide", y3 = "anduin-toolt
|
|
|
2515
2686
|
"left-center",
|
|
2516
2687
|
"left-end"
|
|
2517
2688
|
];
|
|
2518
|
-
function
|
|
2689
|
+
function Tt(r, e, t, o, i) {
|
|
2519
2690
|
switch (o) {
|
|
2520
2691
|
case "top-start":
|
|
2521
2692
|
return { left: r.left, top: r.top - t - i };
|
|
@@ -2545,20 +2716,20 @@ function F4(r, e, t, o, i) {
|
|
|
2545
2716
|
return { left: 0, top: 0 };
|
|
2546
2717
|
}
|
|
2547
2718
|
}
|
|
2548
|
-
function
|
|
2719
|
+
function Ft(r, e) {
|
|
2549
2720
|
return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
|
|
2550
2721
|
}
|
|
2551
|
-
function
|
|
2722
|
+
function It(r, e) {
|
|
2552
2723
|
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);
|
|
2553
2724
|
return i < t || n < o ? 0 : (i - t) * (n - o);
|
|
2554
2725
|
}
|
|
2555
|
-
function
|
|
2726
|
+
function R3(r, e, t, o = 8) {
|
|
2556
2727
|
const i = window.innerWidth, n = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: n }, d = e.width, c = e.height;
|
|
2557
|
-
if (!
|
|
2728
|
+
if (!Ft(
|
|
2558
2729
|
{ left: r.left, top: r.top, right: r.right, bottom: r.bottom },
|
|
2559
2730
|
l
|
|
2560
2731
|
)) return null;
|
|
2561
|
-
const C =
|
|
2732
|
+
const C = Tt(r, d, c, t, o), p = k3.map((m) => ({ p: m, off: Tt(r, d, c, m, o) })).filter(({ off: m }) => Ft({ left: m.left, top: m.top, right: m.left + d, bottom: m.top + c }, l));
|
|
2562
2733
|
if (p.length === 0)
|
|
2563
2734
|
return {
|
|
2564
2735
|
placement: t,
|
|
@@ -2566,10 +2737,10 @@ function Rt(r, e, t, o = 8) {
|
|
|
2566
2737
|
top: Math.round(Math.min(Math.max(C.top, 0), n - c))
|
|
2567
2738
|
};
|
|
2568
2739
|
p.sort((m, V) => {
|
|
2569
|
-
const
|
|
2740
|
+
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 = It(_, l), w = It(v, l);
|
|
2570
2741
|
if (w !== x) return w - x;
|
|
2571
|
-
const
|
|
2572
|
-
return
|
|
2742
|
+
const B = Math.abs(m.off.left - C.left) + Math.abs(m.off.top - C.top), W = Math.abs(V.off.left - C.left) + Math.abs(V.off.top - C.top);
|
|
2743
|
+
return B - W;
|
|
2573
2744
|
});
|
|
2574
2745
|
const { p: f, off: H } = p[0];
|
|
2575
2746
|
return {
|
|
@@ -2581,7 +2752,7 @@ function Rt(r, e, t, o = 8) {
|
|
|
2581
2752
|
function C5(r) {
|
|
2582
2753
|
return r.split("-")[0] || "top";
|
|
2583
2754
|
}
|
|
2584
|
-
function $
|
|
2755
|
+
function $3(r, e, t) {
|
|
2585
2756
|
let o = !1, i = t.length - 1;
|
|
2586
2757
|
for (let n = 0; n < t.length; n++) {
|
|
2587
2758
|
const l = t[n][0], d = t[n][1], c = t[i][0], C = t[i][1];
|
|
@@ -2594,13 +2765,13 @@ const fe = class fe extends h {
|
|
|
2594
2765
|
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;
|
|
2595
2766
|
}
|
|
2596
2767
|
connectedCallback() {
|
|
2597
|
-
super.connectedCallback(), this.addEventListener(
|
|
2768
|
+
super.connectedCallback(), this.addEventListener(_4, (e) => {
|
|
2598
2769
|
e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
|
|
2599
|
-
}), this.addEventListener(
|
|
2770
|
+
}), this.addEventListener(L4, (e) => {
|
|
2600
2771
|
e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
|
|
2601
|
-
}), this.addEventListener(
|
|
2772
|
+
}), this.addEventListener(V4, (e) => {
|
|
2602
2773
|
e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
|
|
2603
|
-
}), this.addEventListener(
|
|
2774
|
+
}), this.addEventListener(y4, (e) => {
|
|
2604
2775
|
e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
|
|
2605
2776
|
}), this.addEventListener(Y5, (e) => {
|
|
2606
2777
|
e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
|
|
@@ -2633,7 +2804,7 @@ const fe = class fe extends h {
|
|
|
2633
2804
|
this.containingBlockLeft = i.left, this.containingBlockTop = i.top, t.style.transform = o;
|
|
2634
2805
|
}
|
|
2635
2806
|
positionPopup(e, t, o) {
|
|
2636
|
-
const i = t.getBoundingClientRect(), n = e.getBoundingClientRect(), l =
|
|
2807
|
+
const i = t.getBoundingClientRect(), n = e.getBoundingClientRect(), l = R3(i, n, o, 8);
|
|
2637
2808
|
if (l) {
|
|
2638
2809
|
const d = e;
|
|
2639
2810
|
d.style.transform = `translate(${l.left - this.containingBlockLeft}px, ${l.top - this.containingBlockTop}px)`;
|
|
@@ -2645,7 +2816,7 @@ const fe = class fe extends h {
|
|
|
2645
2816
|
}
|
|
2646
2817
|
}
|
|
2647
2818
|
broadcastVisibilityChanged(e) {
|
|
2648
|
-
this.dispatchEvent(new CustomEvent(
|
|
2819
|
+
this.dispatchEvent(new CustomEvent(x4, { detail: e, bubbles: !1, composed: !1 }));
|
|
2649
2820
|
}
|
|
2650
2821
|
render() {
|
|
2651
2822
|
return a`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
|
|
@@ -2662,19 +2833,19 @@ fe.styles = g`
|
|
|
2662
2833
|
:host { display: inline-flex; position: relative; max-width: 100%; font-family: var(--font-sans); }
|
|
2663
2834
|
.tooltip-root { display: inline-flex; position: relative; max-width: 100%; }
|
|
2664
2835
|
`;
|
|
2665
|
-
let
|
|
2666
|
-
|
|
2836
|
+
let y2 = fe;
|
|
2837
|
+
H4([
|
|
2667
2838
|
s({ type: Boolean })
|
|
2668
|
-
],
|
|
2669
|
-
|
|
2839
|
+
], y2.prototype, "disabled");
|
|
2840
|
+
H4([
|
|
2670
2841
|
s()
|
|
2671
|
-
],
|
|
2842
|
+
], y2.prototype, "placement");
|
|
2672
2843
|
const ve = class ve extends h {
|
|
2673
2844
|
firstUpdated() {
|
|
2674
2845
|
requestAnimationFrame(() => {
|
|
2675
|
-
this.dispatchEvent(new CustomEvent(
|
|
2846
|
+
this.dispatchEvent(new CustomEvent(_4, { detail: this, bubbles: !0, composed: !0 }));
|
|
2676
2847
|
}), this.addEventListener("pointerenter", () => {
|
|
2677
|
-
this.dispatchEvent(new CustomEvent(
|
|
2848
|
+
this.dispatchEvent(new CustomEvent(y4, { bubbles: !0, composed: !0 }));
|
|
2678
2849
|
}), this.addEventListener("click", () => {
|
|
2679
2850
|
this.dispatchEvent(new CustomEvent(Y5, { bubbles: !0, composed: !0 }));
|
|
2680
2851
|
});
|
|
@@ -2694,7 +2865,7 @@ const be = class be extends h {
|
|
|
2694
2865
|
var n, l;
|
|
2695
2866
|
if (!this.graceArea) return;
|
|
2696
2867
|
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;
|
|
2697
|
-
o || i ? this.graceArea = null : $
|
|
2868
|
+
o || i ? this.graceArea = null : $3(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(Y5, { bubbles: !0, composed: !0 })));
|
|
2698
2869
|
}, this.handleTriggerLeave = (e) => {
|
|
2699
2870
|
this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
|
|
2700
2871
|
}, this.handleContentLeave = (e) => {
|
|
@@ -2704,7 +2875,7 @@ const be = class be extends h {
|
|
|
2704
2875
|
connectedCallback() {
|
|
2705
2876
|
super.connectedCallback();
|
|
2706
2877
|
const e = this.closest("anduin-tooltip");
|
|
2707
|
-
e && e.addEventListener(
|
|
2878
|
+
e && e.addEventListener(x4, (t) => {
|
|
2708
2879
|
const o = t.detail;
|
|
2709
2880
|
o.startsWith("show:") ? this.showPopup(o.slice(5)) : this.hidePopup();
|
|
2710
2881
|
});
|
|
@@ -2743,10 +2914,10 @@ const be = class be extends h {
|
|
|
2743
2914
|
const c = d.querySelector("anduin-tooltip-trigger");
|
|
2744
2915
|
c && this.setupGraceAreaListeners(c, o);
|
|
2745
2916
|
}
|
|
2746
|
-
this.dispatchEvent(new CustomEvent(
|
|
2917
|
+
this.dispatchEvent(new CustomEvent(L4, { detail: o, bubbles: !0, composed: !0 }));
|
|
2747
2918
|
}
|
|
2748
2919
|
hidePopup() {
|
|
2749
|
-
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(
|
|
2920
|
+
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(V4, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
|
|
2750
2921
|
}
|
|
2751
2922
|
render() {
|
|
2752
2923
|
return a`<div class="tooltip-content-wrapper"></div>`;
|
|
@@ -2777,15 +2948,15 @@ be.styles = g`
|
|
|
2777
2948
|
.tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
|
|
2778
2949
|
`;
|
|
2779
2950
|
let p5 = be;
|
|
2780
|
-
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip",
|
|
2951
|
+
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", y2);
|
|
2781
2952
|
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", u5);
|
|
2782
2953
|
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", p5);
|
|
2783
|
-
var
|
|
2954
|
+
var E3 = Object.defineProperty, F = (r, e, t, o) => {
|
|
2784
2955
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2785
2956
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2786
|
-
return i &&
|
|
2957
|
+
return i && E3(e, t, i), i;
|
|
2787
2958
|
};
|
|
2788
|
-
const
|
|
2959
|
+
const z3 = "anduin-inline-edit:save", S3 = "anduin-inline-edit:cancel", A3 = "anduin-inline-edit:edit", me = class me extends h {
|
|
2789
2960
|
constructor() {
|
|
2790
2961
|
super(...arguments), this.value = "", this.placeholder = "", this.size = "medium", this.mode = "view", this.disabled = !1, this.clickToEdit = !1, this.hideSwitcher = !1, this.editLabel = "Edit", this._editing = !1, this._draft = "", this._error = "", this._hasSlotted = !1, this._openWidth = 0;
|
|
2791
2962
|
}
|
|
@@ -2801,11 +2972,11 @@ const zt = "anduin-inline-edit:save", St = "anduin-inline-edit:cancel", At = "an
|
|
|
2801
2972
|
*/
|
|
2802
2973
|
async edit() {
|
|
2803
2974
|
var e, t, o;
|
|
2804
|
-
this.disabled || (this._editing || (this._openWidth = ((e = this._text) == null ? void 0 : e.getBoundingClientRect().width) ?? 0, this._draft = this.value, this._error = this._runValidate(this.value), this._editing = !0, this.dispatchEvent(new CustomEvent(
|
|
2975
|
+
this.disabled || (this._editing || (this._openWidth = ((e = this._text) == null ? void 0 : e.getBoundingClientRect().width) ?? 0, this._draft = this.value, this._error = this._runValidate(this.value), this._editing = !0, this.dispatchEvent(new CustomEvent(A3, { bubbles: !0, composed: !0 }))), await this.updateComplete, (t = this._field) == null || t.focus(), (o = this._field) == null || o.select());
|
|
2805
2976
|
}
|
|
2806
2977
|
/** Leaves edit mode without saving and fires `anduin-inline-edit:cancel`. A no-op in view mode. */
|
|
2807
2978
|
cancel() {
|
|
2808
|
-
this._editing && (this._exit(), this.dispatchEvent(new CustomEvent(
|
|
2979
|
+
this._editing && (this._exit(), this.dispatchEvent(new CustomEvent(S3, { bubbles: !0, composed: !0 })));
|
|
2809
2980
|
}
|
|
2810
2981
|
/**
|
|
2811
2982
|
* Saves the draft and returns to view mode, as Enter does. Does nothing while
|
|
@@ -2819,7 +2990,7 @@ const zt = "anduin-inline-edit:save", St = "anduin-inline-edit:cancel", At = "an
|
|
|
2819
2990
|
this.cancel();
|
|
2820
2991
|
return;
|
|
2821
2992
|
}
|
|
2822
|
-
this.value = e, this._exit(), this.dispatchEvent(new CustomEvent(
|
|
2993
|
+
this.value = e, this._exit(), this.dispatchEvent(new CustomEvent(z3, { detail: e, bubbles: !0, composed: !0 }));
|
|
2823
2994
|
}
|
|
2824
2995
|
_exit() {
|
|
2825
2996
|
this._editing = !1, this._draft = this.value, this._error = "";
|
|
@@ -2993,61 +3164,61 @@ me.styles = g`
|
|
|
2993
3164
|
.field--medium { min-height: 32px; padding-left: 12px; padding-right: 12px; }
|
|
2994
3165
|
`;
|
|
2995
3166
|
let $ = me;
|
|
2996
|
-
|
|
3167
|
+
F([
|
|
2997
3168
|
s()
|
|
2998
3169
|
], $.prototype, "value");
|
|
2999
|
-
|
|
3170
|
+
F([
|
|
3000
3171
|
s()
|
|
3001
3172
|
], $.prototype, "placeholder");
|
|
3002
|
-
|
|
3173
|
+
F([
|
|
3003
3174
|
s()
|
|
3004
3175
|
], $.prototype, "size");
|
|
3005
|
-
|
|
3176
|
+
F([
|
|
3006
3177
|
s()
|
|
3007
3178
|
], $.prototype, "mode");
|
|
3008
|
-
|
|
3179
|
+
F([
|
|
3009
3180
|
s({ type: Boolean, reflect: !0 })
|
|
3010
3181
|
], $.prototype, "disabled");
|
|
3011
|
-
|
|
3182
|
+
F([
|
|
3012
3183
|
s({ type: Boolean, attribute: "click-to-edit", reflect: !0 })
|
|
3013
3184
|
], $.prototype, "clickToEdit");
|
|
3014
|
-
|
|
3185
|
+
F([
|
|
3015
3186
|
s({ type: Boolean, attribute: "hide-switcher", reflect: !0 })
|
|
3016
3187
|
], $.prototype, "hideSwitcher");
|
|
3017
|
-
|
|
3188
|
+
F([
|
|
3018
3189
|
s({ attribute: "edit-label" })
|
|
3019
3190
|
], $.prototype, "editLabel");
|
|
3020
|
-
|
|
3191
|
+
F([
|
|
3021
3192
|
s({ attribute: !1 })
|
|
3022
3193
|
], $.prototype, "validate");
|
|
3023
|
-
|
|
3194
|
+
F([
|
|
3024
3195
|
b()
|
|
3025
3196
|
], $.prototype, "_editing");
|
|
3026
|
-
|
|
3197
|
+
F([
|
|
3027
3198
|
b()
|
|
3028
3199
|
], $.prototype, "_draft");
|
|
3029
|
-
|
|
3200
|
+
F([
|
|
3030
3201
|
b()
|
|
3031
3202
|
], $.prototype, "_error");
|
|
3032
|
-
|
|
3203
|
+
F([
|
|
3033
3204
|
b()
|
|
3034
3205
|
], $.prototype, "_hasSlotted");
|
|
3035
|
-
|
|
3206
|
+
F([
|
|
3036
3207
|
b()
|
|
3037
3208
|
], $.prototype, "_openWidth");
|
|
3038
|
-
|
|
3039
|
-
|
|
3209
|
+
F([
|
|
3210
|
+
R(".field")
|
|
3040
3211
|
], $.prototype, "_field");
|
|
3041
|
-
|
|
3042
|
-
|
|
3212
|
+
F([
|
|
3213
|
+
R(".text")
|
|
3043
3214
|
], $.prototype, "_text");
|
|
3044
3215
|
customElements.get("anduin-inline-edit") || customElements.define("anduin-inline-edit", $);
|
|
3045
|
-
var
|
|
3216
|
+
var D3 = Object.defineProperty, _1 = (r, e, t, o) => {
|
|
3046
3217
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3047
3218
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3048
|
-
return i &&
|
|
3219
|
+
return i && D3(e, t, i), i;
|
|
3049
3220
|
};
|
|
3050
|
-
const
|
|
3221
|
+
const P3 = "anduin-textarea:change", U2 = class U2 extends h {
|
|
3051
3222
|
constructor() {
|
|
3052
3223
|
super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
|
|
3053
3224
|
}
|
|
@@ -3082,7 +3253,7 @@ const Pt = "anduin-textarea:change", U2 = class U2 extends h {
|
|
|
3082
3253
|
this._withTextarea((i) => i.setSelectionRange(e, t, o));
|
|
3083
3254
|
}
|
|
3084
3255
|
onInput() {
|
|
3085
|
-
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(
|
|
3256
|
+
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(P3, {
|
|
3086
3257
|
detail: this.value,
|
|
3087
3258
|
bubbles: !0,
|
|
3088
3259
|
composed: !0
|
|
@@ -3126,45 +3297,45 @@ U2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, U2.styles
|
|
|
3126
3297
|
.textarea--loading { border-color: var(--color-input); }
|
|
3127
3298
|
`;
|
|
3128
3299
|
let Y = U2;
|
|
3129
|
-
|
|
3300
|
+
_1([
|
|
3130
3301
|
s()
|
|
3131
3302
|
], Y.prototype, "value");
|
|
3132
|
-
|
|
3303
|
+
_1([
|
|
3133
3304
|
s({ type: Boolean })
|
|
3134
3305
|
], Y.prototype, "disabled");
|
|
3135
|
-
|
|
3306
|
+
_1([
|
|
3136
3307
|
s({ type: Boolean })
|
|
3137
3308
|
], Y.prototype, "readonly");
|
|
3138
|
-
|
|
3309
|
+
_1([
|
|
3139
3310
|
s()
|
|
3140
3311
|
], Y.prototype, "placeholder");
|
|
3141
|
-
|
|
3312
|
+
_1([
|
|
3142
3313
|
s()
|
|
3143
3314
|
], Y.prototype, "inputid");
|
|
3144
|
-
|
|
3315
|
+
_1([
|
|
3145
3316
|
s({ type: Number })
|
|
3146
3317
|
], Y.prototype, "rows");
|
|
3147
|
-
|
|
3318
|
+
_1([
|
|
3148
3319
|
s()
|
|
3149
3320
|
], Y.prototype, "status");
|
|
3150
|
-
|
|
3151
|
-
|
|
3321
|
+
_1([
|
|
3322
|
+
R("textarea")
|
|
3152
3323
|
], Y.prototype, "textareaEl");
|
|
3153
3324
|
customElements.get("anduin-textarea") || customElements.define("anduin-textarea", Y);
|
|
3154
|
-
var
|
|
3325
|
+
var B3 = Object.defineProperty, G = (r, e, t, o) => {
|
|
3155
3326
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3156
3327
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3157
|
-
return i &&
|
|
3328
|
+
return i && B3(e, t, i), i;
|
|
3158
3329
|
};
|
|
3159
|
-
const
|
|
3330
|
+
const w4 = "anduin-tab:trigger-click", W2 = "anduin-tab:value-changed", T3 = "anduin-tab:change", He = class He extends h {
|
|
3160
3331
|
constructor() {
|
|
3161
3332
|
super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
|
|
3162
3333
|
}
|
|
3163
3334
|
connectedCallback() {
|
|
3164
|
-
super.connectedCallback(), this.addEventListener(
|
|
3335
|
+
super.connectedCallback(), this.addEventListener(w4, (e) => {
|
|
3165
3336
|
e.stopPropagation();
|
|
3166
3337
|
const t = e;
|
|
3167
|
-
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(
|
|
3338
|
+
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(T3, { detail: t.detail, bubbles: !0, composed: !0 }));
|
|
3168
3339
|
}), requestAnimationFrame(() => {
|
|
3169
3340
|
const e = this.value || this.defaultValue;
|
|
3170
3341
|
e && (this.value || (this.value = e), this.broadcastValueChanged(e));
|
|
@@ -3199,7 +3370,7 @@ G([
|
|
|
3199
3370
|
G([
|
|
3200
3371
|
s({ type: Boolean, reflect: !0 })
|
|
3201
3372
|
], j1.prototype, "fill");
|
|
3202
|
-
const
|
|
3373
|
+
const ye = class ye extends h {
|
|
3203
3374
|
constructor() {
|
|
3204
3375
|
super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
|
|
3205
3376
|
}
|
|
@@ -3243,7 +3414,7 @@ const _e = class _e extends h {
|
|
|
3243
3414
|
`;
|
|
3244
3415
|
}
|
|
3245
3416
|
};
|
|
3246
|
-
|
|
3417
|
+
ye.styles = g`
|
|
3247
3418
|
:host { display: block; font-family: var(--font-sans); }
|
|
3248
3419
|
/* Transparent by default so the list picks up whatever it sits on. Set a
|
|
3249
3420
|
* background via anduin-tabs-list::part(tabs-list) when one is wanted. */
|
|
@@ -3260,14 +3431,14 @@ _e.styles = g`
|
|
|
3260
3431
|
left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
|
|
3261
3432
|
}
|
|
3262
3433
|
`;
|
|
3263
|
-
let
|
|
3434
|
+
let _2 = ye;
|
|
3264
3435
|
G([
|
|
3265
3436
|
s()
|
|
3266
|
-
],
|
|
3437
|
+
], _2.prototype, "alignment");
|
|
3267
3438
|
G([
|
|
3268
|
-
|
|
3269
|
-
],
|
|
3270
|
-
const
|
|
3439
|
+
R(".tabs-list__indicator")
|
|
3440
|
+
], _2.prototype, "indicator");
|
|
3441
|
+
const _e = class _e extends h {
|
|
3271
3442
|
constructor() {
|
|
3272
3443
|
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
|
|
3273
3444
|
}
|
|
@@ -3280,7 +3451,7 @@ const ye = class ye extends h {
|
|
|
3280
3451
|
});
|
|
3281
3452
|
}
|
|
3282
3453
|
onClick() {
|
|
3283
|
-
this.dispatchEvent(new CustomEvent(
|
|
3454
|
+
this.dispatchEvent(new CustomEvent(w4, { detail: this.value, bubbles: !0, composed: !0 }));
|
|
3284
3455
|
}
|
|
3285
3456
|
render() {
|
|
3286
3457
|
return a`
|
|
@@ -3301,7 +3472,7 @@ const ye = class ye extends h {
|
|
|
3301
3472
|
`;
|
|
3302
3473
|
}
|
|
3303
3474
|
};
|
|
3304
|
-
|
|
3475
|
+
_e.styles = g`
|
|
3305
3476
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
3306
3477
|
.tab-trigger {
|
|
3307
3478
|
cursor: pointer; background: none; border: none; display: block;
|
|
@@ -3324,7 +3495,7 @@ ye.styles = g`
|
|
|
3324
3495
|
color: var(--color-neutral-subtle-foreground); white-space: nowrap;
|
|
3325
3496
|
}
|
|
3326
3497
|
`;
|
|
3327
|
-
let l1 =
|
|
3498
|
+
let l1 = _e;
|
|
3328
3499
|
G([
|
|
3329
3500
|
s({ reflect: !0 })
|
|
3330
3501
|
], l1.prototype, "value");
|
|
@@ -3379,15 +3550,15 @@ G([
|
|
|
3379
3550
|
b()
|
|
3380
3551
|
], L2.prototype, "isActive");
|
|
3381
3552
|
customElements.get("anduin-tabs") || customElements.define("anduin-tabs", j1);
|
|
3382
|
-
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list",
|
|
3553
|
+
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", _2);
|
|
3383
3554
|
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", l1);
|
|
3384
3555
|
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", L2);
|
|
3385
|
-
var
|
|
3556
|
+
var F3 = Object.defineProperty, q5 = (r, e, t, o) => {
|
|
3386
3557
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3387
3558
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3388
|
-
return i &&
|
|
3559
|
+
return i && F3(e, t, i), i;
|
|
3389
3560
|
};
|
|
3390
|
-
const
|
|
3561
|
+
const I3 = "anduin-tag-close:click", O3 = {
|
|
3391
3562
|
gray: "tag--light-gray",
|
|
3392
3563
|
primary: "tag--light-primary",
|
|
3393
3564
|
success: "tag--light-success",
|
|
@@ -3412,7 +3583,7 @@ const It = "anduin-tag-close:click", Tt = {
|
|
|
3412
3583
|
customYellow: "tag--custom-yellow",
|
|
3413
3584
|
customYellowGreen: "tag--custom-yellow-green",
|
|
3414
3585
|
customYellowOrange: "tag--custom-yellow-orange"
|
|
3415
|
-
},
|
|
3586
|
+
}, N3 = {
|
|
3416
3587
|
gray: "tag__icon--light-gray",
|
|
3417
3588
|
primary: "tag__icon--light-primary",
|
|
3418
3589
|
success: "tag__icon--light-success",
|
|
@@ -3442,7 +3613,7 @@ const It = "anduin-tag-close:click", Tt = {
|
|
|
3442
3613
|
super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
|
|
3443
3614
|
}
|
|
3444
3615
|
render() {
|
|
3445
|
-
const e =
|
|
3616
|
+
const e = O3[this.variant] || "tag--light-gray", t = N3[this.variant] || "tag__icon--light-gray";
|
|
3446
3617
|
return a`
|
|
3447
3618
|
<div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
|
|
3448
3619
|
${this.icon ? a`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : u}
|
|
@@ -3516,7 +3687,7 @@ q5([
|
|
|
3516
3687
|
], U1.prototype, "disabled");
|
|
3517
3688
|
const xe = class xe extends h {
|
|
3518
3689
|
onClick() {
|
|
3519
|
-
this.dispatchEvent(new CustomEvent(
|
|
3690
|
+
this.dispatchEvent(new CustomEvent(I3, { bubbles: !0, composed: !0 }));
|
|
3520
3691
|
}
|
|
3521
3692
|
render() {
|
|
3522
3693
|
return a`
|
|
@@ -3539,12 +3710,12 @@ xe.styles = g`
|
|
|
3539
3710
|
let h5 = xe;
|
|
3540
3711
|
customElements.get("anduin-tag") || customElements.define("anduin-tag", U1);
|
|
3541
3712
|
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", h5);
|
|
3542
|
-
var
|
|
3713
|
+
var j3 = Object.defineProperty, O = (r, e, t, o) => {
|
|
3543
3714
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3544
3715
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3545
|
-
return i &&
|
|
3716
|
+
return i && j3(e, t, i), i;
|
|
3546
3717
|
};
|
|
3547
|
-
const
|
|
3718
|
+
const U3 = "anduin-toggle-group:change", G3 = "anduin-toggle-group-item:change", K3 = "anduin-toggle-group-item:select", W3 = "anduin-toggle-group-item:deselect", g5 = "anduin-toggle-group-item:item-click", we = class we extends h {
|
|
3548
3719
|
constructor() {
|
|
3549
3720
|
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) => {
|
|
3550
3721
|
var c;
|
|
@@ -3556,7 +3727,7 @@ const Ut = "anduin-toggle-group:change", Gt = "anduin-toggle-group-item:change",
|
|
|
3556
3727
|
if (d == null || d.emitSelectionChange(!n), this.mode === "single" && !n)
|
|
3557
3728
|
for (const C of i)
|
|
3558
3729
|
(c = this.items.find((p) => p.value === C)) == null || c.emitSelectionChange(!1);
|
|
3559
|
-
this.dispatchEvent(new CustomEvent(
|
|
3730
|
+
this.dispatchEvent(new CustomEvent(U3, {
|
|
3560
3731
|
detail: l.join(" "),
|
|
3561
3732
|
bubbles: !0,
|
|
3562
3733
|
composed: !0
|
|
@@ -3632,25 +3803,25 @@ we.styles = g`
|
|
|
3632
3803
|
.toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
|
|
3633
3804
|
`;
|
|
3634
3805
|
let X = we;
|
|
3635
|
-
|
|
3806
|
+
O([
|
|
3636
3807
|
s()
|
|
3637
3808
|
], X.prototype, "mode");
|
|
3638
|
-
|
|
3809
|
+
O([
|
|
3639
3810
|
s({ attribute: "default-value" })
|
|
3640
3811
|
], X.prototype, "defaultValue");
|
|
3641
|
-
|
|
3812
|
+
O([
|
|
3642
3813
|
s()
|
|
3643
3814
|
], X.prototype, "value");
|
|
3644
|
-
|
|
3815
|
+
O([
|
|
3645
3816
|
s()
|
|
3646
3817
|
], X.prototype, "size");
|
|
3647
|
-
|
|
3818
|
+
O([
|
|
3648
3819
|
s()
|
|
3649
3820
|
], X.prototype, "variant");
|
|
3650
|
-
|
|
3821
|
+
O([
|
|
3651
3822
|
s({ type: Boolean })
|
|
3652
3823
|
], X.prototype, "gap");
|
|
3653
|
-
|
|
3824
|
+
O([
|
|
3654
3825
|
b()
|
|
3655
3826
|
], X.prototype, "internalValue");
|
|
3656
3827
|
const Me = class Me extends h {
|
|
@@ -3659,11 +3830,11 @@ const Me = class Me extends h {
|
|
|
3659
3830
|
}
|
|
3660
3831
|
/** Called by the parent group when the user's action changes this item's selection. */
|
|
3661
3832
|
emitSelectionChange(e) {
|
|
3662
|
-
this.dispatchEvent(new CustomEvent(
|
|
3833
|
+
this.dispatchEvent(new CustomEvent(G3, {
|
|
3663
3834
|
detail: e,
|
|
3664
3835
|
bubbles: !0,
|
|
3665
3836
|
composed: !0
|
|
3666
|
-
})), this.dispatchEvent(new CustomEvent(e ?
|
|
3837
|
+
})), this.dispatchEvent(new CustomEvent(e ? K3 : W3, {
|
|
3667
3838
|
detail: this.value,
|
|
3668
3839
|
bubbles: !0,
|
|
3669
3840
|
composed: !0
|
|
@@ -3740,25 +3911,25 @@ Me.styles = g`
|
|
|
3740
3911
|
.toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-icon); }
|
|
3741
3912
|
`;
|
|
3742
3913
|
let J = Me;
|
|
3743
|
-
|
|
3914
|
+
O([
|
|
3744
3915
|
s({ reflect: !0 })
|
|
3745
3916
|
], J.prototype, "value");
|
|
3746
|
-
|
|
3917
|
+
O([
|
|
3747
3918
|
s({ attribute: "start-icon" })
|
|
3748
3919
|
], J.prototype, "startIcon");
|
|
3749
|
-
|
|
3920
|
+
O([
|
|
3750
3921
|
s({ type: Boolean })
|
|
3751
3922
|
], J.prototype, "disabled");
|
|
3752
|
-
|
|
3923
|
+
O([
|
|
3753
3924
|
s({ attribute: !1 })
|
|
3754
3925
|
], J.prototype, "selected");
|
|
3755
|
-
|
|
3926
|
+
O([
|
|
3756
3927
|
s({ attribute: !1 })
|
|
3757
3928
|
], J.prototype, "groupSize");
|
|
3758
|
-
|
|
3929
|
+
O([
|
|
3759
3930
|
s({ attribute: !1 })
|
|
3760
3931
|
], J.prototype, "groupVariant");
|
|
3761
|
-
|
|
3932
|
+
O([
|
|
3762
3933
|
s({ attribute: !1 })
|
|
3763
3934
|
], J.prototype, "groupMode");
|
|
3764
3935
|
function e5(r) {
|
|
@@ -3766,12 +3937,12 @@ function e5(r) {
|
|
|
3766
3937
|
}
|
|
3767
3938
|
customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group", X);
|
|
3768
3939
|
customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item", J);
|
|
3769
|
-
var
|
|
3940
|
+
var Y3 = Object.defineProperty, q3 = (r, e, t, o) => {
|
|
3770
3941
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3771
3942
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3772
|
-
return i &&
|
|
3943
|
+
return i && Y3(e, t, i), i;
|
|
3773
3944
|
};
|
|
3774
|
-
const
|
|
3945
|
+
const X3 = "anduin-well-close:click", Ze = class Ze extends h {
|
|
3775
3946
|
constructor() {
|
|
3776
3947
|
super(...arguments), this.variant = "gray";
|
|
3777
3948
|
}
|
|
@@ -3869,14 +4040,14 @@ Ze.styles = g`
|
|
|
3869
4040
|
color: var(--color-warning-active);
|
|
3870
4041
|
}
|
|
3871
4042
|
`;
|
|
3872
|
-
let
|
|
3873
|
-
|
|
4043
|
+
let T2 = Ze;
|
|
4044
|
+
q3([
|
|
3874
4045
|
s()
|
|
3875
|
-
],
|
|
4046
|
+
], T2.prototype, "variant");
|
|
3876
4047
|
const ke = class ke extends h {
|
|
3877
4048
|
onClick() {
|
|
3878
4049
|
this.dispatchEvent(
|
|
3879
|
-
new CustomEvent(
|
|
4050
|
+
new CustomEvent(X3, { bubbles: !0, composed: !0 })
|
|
3880
4051
|
);
|
|
3881
4052
|
}
|
|
3882
4053
|
render() {
|
|
@@ -3917,12 +4088,12 @@ ke.styles = g`
|
|
|
3917
4088
|
}
|
|
3918
4089
|
`;
|
|
3919
4090
|
let f5 = ke;
|
|
3920
|
-
customElements.get("anduin-well") || customElements.define("anduin-well",
|
|
4091
|
+
customElements.get("anduin-well") || customElements.define("anduin-well", T2);
|
|
3921
4092
|
customElements.get("anduin-well-close") || customElements.define("anduin-well-close", f5);
|
|
3922
|
-
var
|
|
4093
|
+
var J3 = Object.defineProperty, E1 = (r, e, t, o) => {
|
|
3923
4094
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3924
4095
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3925
|
-
return i &&
|
|
4096
|
+
return i && J3(e, t, i), i;
|
|
3926
4097
|
};
|
|
3927
4098
|
const v5 = "anduin-popover:close", b5 = "anduin-popover:open-change", Re = class Re extends h {
|
|
3928
4099
|
constructor() {
|
|
@@ -3974,8 +4145,8 @@ const v5 = "anduin-popover:close", b5 = "anduin-popover:open-change", Re = class
|
|
|
3974
4145
|
t.style.transform = i;
|
|
3975
4146
|
const l = t.getBoundingClientRect(), d = 4, c = window.innerWidth, C = window.innerHeight, p = 8;
|
|
3976
4147
|
let f = 0, H = 0, m = "bottom";
|
|
3977
|
-
const V = !this.placement.startsWith("top"),
|
|
3978
|
-
m =
|
|
4148
|
+
const V = !this.placement.startsWith("top"), _ = C - o.bottom - d, v = o.top - d, x = _ >= l.height, w = v >= l.height, B = V ? x || _ >= v : !w && x;
|
|
4149
|
+
m = B ? "bottom" : "top", H = B ? o.bottom + d : o.top - l.height - d;
|
|
3979
4150
|
const W = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
|
|
3980
4151
|
W === "start" ? f = o.left : W === "end" ? f = o.right - l.width : f = o.left + o.width / 2 - l.width / 2, f = Math.max(p, Math.min(f, c - l.width - p)), H = Math.max(p, Math.min(H, C - l.height - p)), t.style.transform = `translate(${Math.round(f - n.left)}px, ${Math.round(H - n.top)}px)`, t.dataset.side = m;
|
|
3981
4152
|
}
|
|
@@ -4063,10 +4234,10 @@ E1([
|
|
|
4063
4234
|
b()
|
|
4064
4235
|
], Q.prototype, "_closing");
|
|
4065
4236
|
E1([
|
|
4066
|
-
|
|
4237
|
+
R(".popover__trigger")
|
|
4067
4238
|
], Q.prototype, "_triggerEl");
|
|
4068
4239
|
E1([
|
|
4069
|
-
|
|
4240
|
+
R(".popover__panel")
|
|
4070
4241
|
], Q.prototype, "_panelEl");
|
|
4071
4242
|
customElements.get("anduin-popover") || customElements.define("anduin-popover", Q);
|
|
4072
4243
|
const $e = class $e extends h {
|
|
@@ -4080,10 +4251,10 @@ const $e = class $e extends h {
|
|
|
4080
4251
|
$e.styles = g`:host { display: contents; }`;
|
|
4081
4252
|
let m5 = $e;
|
|
4082
4253
|
customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", m5);
|
|
4083
|
-
var
|
|
4254
|
+
var Q3 = Object.defineProperty, z1 = (r, e, t, o) => {
|
|
4084
4255
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
4085
4256
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
4086
|
-
return i &&
|
|
4257
|
+
return i && Q3(e, t, i), i;
|
|
4087
4258
|
};
|
|
4088
4259
|
const H5 = "anduin-menu-item:click", Ee = class Ee extends h {
|
|
4089
4260
|
constructor() {
|
|
@@ -4202,10 +4373,10 @@ z1([
|
|
|
4202
4373
|
s()
|
|
4203
4374
|
], $1.prototype, "placement");
|
|
4204
4375
|
z1([
|
|
4205
|
-
|
|
4376
|
+
R(".menu__trigger")
|
|
4206
4377
|
], $1.prototype, "_triggerEl");
|
|
4207
4378
|
z1([
|
|
4208
|
-
|
|
4379
|
+
R(".menu__panel")
|
|
4209
4380
|
], $1.prototype, "_panelEl");
|
|
4210
4381
|
const ze = class ze extends h {
|
|
4211
4382
|
constructor() {
|
|
@@ -4276,13 +4447,13 @@ var e7 = Object.defineProperty, S1 = (r, e, t, o) => {
|
|
|
4276
4447
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
4277
4448
|
return i && e7(e, t, i), i;
|
|
4278
4449
|
};
|
|
4279
|
-
const r2 = "anduin-close", t5 = "anduin-after-close", i5 = 300, o5 = 200,
|
|
4280
|
-
let d2 = 0,
|
|
4450
|
+
const r2 = "anduin-close", t5 = "anduin-after-close", i5 = 300, o5 = 200, Ot = 250;
|
|
4451
|
+
let d2 = 0, M4 = "";
|
|
4281
4452
|
function t7() {
|
|
4282
|
-
typeof document > "u" || (d2 === 0 && (
|
|
4453
|
+
typeof document > "u" || (d2 === 0 && (M4 = document.body.style.overflow, document.body.style.overflow = "hidden"), d2++);
|
|
4283
4454
|
}
|
|
4284
|
-
function
|
|
4285
|
-
typeof document > "u" || d2 !== 0 && (d2--, d2 === 0 && (document.body.style.overflow =
|
|
4455
|
+
function Nt() {
|
|
4456
|
+
typeof document > "u" || d2 !== 0 && (d2--, d2 === 0 && (document.body.style.overflow = M4));
|
|
4286
4457
|
}
|
|
4287
4458
|
var g1;
|
|
4288
4459
|
const L1 = (g1 = class extends h {
|
|
@@ -4298,14 +4469,14 @@ const L1 = (g1 = class extends h {
|
|
|
4298
4469
|
}
|
|
4299
4470
|
e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown"), this._holdsScrollLock || (this._holdsScrollLock = !0, t7())) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(
|
|
4300
4471
|
() => {
|
|
4301
|
-
this._leaving = !1, this.classList.remove("is-shown"), this._holdsScrollLock && (this._holdsScrollLock = !1,
|
|
4472
|
+
this._leaving = !1, this.classList.remove("is-shown"), this._holdsScrollLock && (this._holdsScrollLock = !1, Nt()), this.dispatchEvent(
|
|
4302
4473
|
new CustomEvent(t5, {
|
|
4303
4474
|
bubbles: !0,
|
|
4304
4475
|
composed: !0
|
|
4305
4476
|
})
|
|
4306
4477
|
);
|
|
4307
4478
|
},
|
|
4308
|
-
Math.max(o5,
|
|
4479
|
+
Math.max(o5, Ot)
|
|
4309
4480
|
)));
|
|
4310
4481
|
}
|
|
4311
4482
|
dispatch(e) {
|
|
@@ -4323,7 +4494,7 @@ const L1 = (g1 = class extends h {
|
|
|
4323
4494
|
super.connectedCallback(), this.addEventListener(r2, this.onAnduinClose), this.addEventListener(t5, this.onAnduinClose);
|
|
4324
4495
|
}
|
|
4325
4496
|
disconnectedCallback() {
|
|
4326
|
-
super.disconnectedCallback(), this.removeEventListener(r2, this.onAnduinClose), this.removeEventListener(t5, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1,
|
|
4497
|
+
super.disconnectedCallback(), this.removeEventListener(r2, this.onAnduinClose), this.removeEventListener(t5, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, Nt());
|
|
4327
4498
|
}
|
|
4328
4499
|
render() {
|
|
4329
4500
|
const e = this._leaving, t = this.fullscreen;
|
|
@@ -4441,7 +4612,7 @@ const L1 = (g1 = class extends h {
|
|
|
4441
4612
|
forwards;
|
|
4442
4613
|
}
|
|
4443
4614
|
.overlay.is-leaving {
|
|
4444
|
-
animation: overlayOut ${
|
|
4615
|
+
animation: overlayOut ${Ot}ms
|
|
4445
4616
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
4446
4617
|
}
|
|
4447
4618
|
.modal-wrapper {
|
|
@@ -4602,7 +4773,7 @@ var n7 = Object.defineProperty, d1 = (r, e, t, o) => {
|
|
|
4602
4773
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
4603
4774
|
return i && n7(e, t, i), i;
|
|
4604
4775
|
};
|
|
4605
|
-
const
|
|
4776
|
+
const y5 = "anduin-radio:change", r7 = "anduin-radio-group:change", Se = class Se extends h {
|
|
4606
4777
|
constructor() {
|
|
4607
4778
|
super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
|
|
4608
4779
|
}
|
|
@@ -4615,7 +4786,7 @@ const _5 = "anduin-radio:change", r7 = "anduin-radio-group:change", Se = class S
|
|
|
4615
4786
|
});
|
|
4616
4787
|
}
|
|
4617
4788
|
_select() {
|
|
4618
|
-
this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(
|
|
4789
|
+
this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(y5, {
|
|
4619
4790
|
detail: this.value,
|
|
4620
4791
|
bubbles: !0,
|
|
4621
4792
|
composed: !0
|
|
@@ -4762,10 +4933,10 @@ const Ae = class Ae extends h {
|
|
|
4762
4933
|
};
|
|
4763
4934
|
}
|
|
4764
4935
|
connectedCallback() {
|
|
4765
|
-
super.connectedCallback(), this.addEventListener(
|
|
4936
|
+
super.connectedCallback(), this.addEventListener(y5, this._onRadioChange);
|
|
4766
4937
|
}
|
|
4767
4938
|
disconnectedCallback() {
|
|
4768
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
4939
|
+
super.disconnectedCallback(), this.removeEventListener(y5, this._onRadioChange);
|
|
4769
4940
|
}
|
|
4770
4941
|
render() {
|
|
4771
4942
|
return a`
|
|
@@ -4801,7 +4972,7 @@ var l7 = Object.defineProperty, A1 = (r, e, t, o) => {
|
|
|
4801
4972
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
4802
4973
|
return i && l7(e, t, i), i;
|
|
4803
4974
|
};
|
|
4804
|
-
const
|
|
4975
|
+
const jt = [
|
|
4805
4976
|
{ bg: "#6172F3", text: "#ffffff" },
|
|
4806
4977
|
{ bg: "#B692F6", text: "#ffffff" },
|
|
4807
4978
|
{ bg: "#F670C7", text: "#ffffff" },
|
|
@@ -4814,7 +4985,7 @@ const j4 = [
|
|
|
4814
4985
|
function s7(r) {
|
|
4815
4986
|
let e = 0;
|
|
4816
4987
|
for (let t = 0; t < r.length; t++) e = e * 31 + r.charCodeAt(t) >>> 0;
|
|
4817
|
-
return
|
|
4988
|
+
return jt[e % jt.length];
|
|
4818
4989
|
}
|
|
4819
4990
|
function a7(r, e = 2) {
|
|
4820
4991
|
var i;
|
|
@@ -4929,7 +5100,7 @@ class C7 {
|
|
|
4929
5100
|
* Copyright 2017 Google LLC
|
|
4930
5101
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4931
5102
|
*/
|
|
4932
|
-
class
|
|
5103
|
+
class _5 extends C7 {
|
|
4933
5104
|
constructor(e) {
|
|
4934
5105
|
if (super(e), this.it = u, e.type !== d7.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
4935
5106
|
}
|
|
@@ -4943,13 +5114,13 @@ class y5 extends C7 {
|
|
|
4943
5114
|
return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
|
|
4944
5115
|
}
|
|
4945
5116
|
}
|
|
4946
|
-
|
|
5117
|
+
_5.directiveName = "unsafeHTML", _5.resultType = 1;
|
|
4947
5118
|
/**
|
|
4948
5119
|
* @license
|
|
4949
5120
|
* Copyright 2017 Google LLC
|
|
4950
5121
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4951
5122
|
*/
|
|
4952
|
-
class L5 extends
|
|
5123
|
+
class L5 extends _5 {
|
|
4953
5124
|
}
|
|
4954
5125
|
L5.directiveName = "unsafeSVG", L5.resultType = 2;
|
|
4955
5126
|
const u7 = c7(L5), p7 = {
|
|
@@ -5205,7 +5376,7 @@ function g7(r, e) {
|
|
|
5205
5376
|
if (t[o]) return t[o];
|
|
5206
5377
|
return null;
|
|
5207
5378
|
}
|
|
5208
|
-
var f7 = Object.defineProperty,
|
|
5379
|
+
var f7 = Object.defineProperty, Z4 = (r, e, t, o) => {
|
|
5209
5380
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
5210
5381
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5211
5382
|
return i && f7(e, t, i), i;
|
|
@@ -5236,10 +5407,10 @@ Pe.styles = g`
|
|
|
5236
5407
|
svg { display: block; }
|
|
5237
5408
|
`;
|
|
5238
5409
|
let V2 = Pe;
|
|
5239
|
-
|
|
5410
|
+
Z4([
|
|
5240
5411
|
s()
|
|
5241
5412
|
], V2.prototype, "type");
|
|
5242
|
-
|
|
5413
|
+
Z4([
|
|
5243
5414
|
s({ type: Number })
|
|
5244
5415
|
], V2.prototype, "size");
|
|
5245
5416
|
customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", V2);
|
|
@@ -5248,7 +5419,7 @@ var v7 = Object.defineProperty, D1 = (r, e, t, o) => {
|
|
|
5248
5419
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5249
5420
|
return i && v7(e, t, i), i;
|
|
5250
5421
|
};
|
|
5251
|
-
const
|
|
5422
|
+
const Ut = {
|
|
5252
5423
|
gray: "info",
|
|
5253
5424
|
primary: "infoCircleLine",
|
|
5254
5425
|
success: "checkCircle",
|
|
@@ -5274,7 +5445,7 @@ const U4 = {
|
|
|
5274
5445
|
this.dismiss();
|
|
5275
5446
|
}
|
|
5276
5447
|
render() {
|
|
5277
|
-
const e =
|
|
5448
|
+
const e = Ut[this.variant] ?? Ut.gray;
|
|
5278
5449
|
return a`
|
|
5279
5450
|
<div
|
|
5280
5451
|
class="toast toast--${this.variant} ${this._dismissing ? "toast--dismissing" : ""}"
|
|
@@ -5443,10 +5614,10 @@ D1([
|
|
|
5443
5614
|
b()
|
|
5444
5615
|
], b1.prototype, "_dismissing");
|
|
5445
5616
|
D1([
|
|
5446
|
-
|
|
5617
|
+
R(".toast")
|
|
5447
5618
|
], b1.prototype, "_toastEl");
|
|
5448
5619
|
customElements.get("anduin-toast") || customElements.define("anduin-toast", b1);
|
|
5449
|
-
const
|
|
5620
|
+
const Te = class Te extends h {
|
|
5450
5621
|
constructor() {
|
|
5451
5622
|
super(...arguments), this.position = "bottom-left", this._toasts = [], this._nextId = 0;
|
|
5452
5623
|
}
|
|
@@ -5490,7 +5661,7 @@ const Fe = class Fe extends h {
|
|
|
5490
5661
|
`;
|
|
5491
5662
|
}
|
|
5492
5663
|
};
|
|
5493
|
-
|
|
5664
|
+
Te.styles = g`
|
|
5494
5665
|
:host {
|
|
5495
5666
|
display: contents;
|
|
5496
5667
|
pointer-events: none;
|
|
@@ -5537,7 +5708,7 @@ Fe.styles = g`
|
|
|
5537
5708
|
align-items: flex-end;
|
|
5538
5709
|
}
|
|
5539
5710
|
`;
|
|
5540
|
-
let x2 =
|
|
5711
|
+
let x2 = Te;
|
|
5541
5712
|
D1([
|
|
5542
5713
|
s()
|
|
5543
5714
|
], x2.prototype, "position");
|
|
@@ -5570,17 +5741,17 @@ function m7(r = "bottom-left") {
|
|
|
5570
5741
|
const e = document.createElement("anduin-toaster");
|
|
5571
5742
|
return e.position = r, document.body.appendChild(e), n5.set(r, e), e;
|
|
5572
5743
|
}
|
|
5573
|
-
var H7 = Object.defineProperty,
|
|
5744
|
+
var H7 = Object.defineProperty, k4 = (r, e, t, o) => {
|
|
5574
5745
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
5575
5746
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5576
5747
|
return i && H7(e, t, i), i;
|
|
5577
5748
|
};
|
|
5578
|
-
const
|
|
5749
|
+
const y7 = "anduin-switcher:change", Fe = class Fe extends h {
|
|
5579
5750
|
constructor() {
|
|
5580
5751
|
super(...arguments), this.checked = !1, this.disabled = !1;
|
|
5581
5752
|
}
|
|
5582
5753
|
onChange() {
|
|
5583
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
5754
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(y7, {
|
|
5584
5755
|
detail: this.checked,
|
|
5585
5756
|
bubbles: !0,
|
|
5586
5757
|
composed: !0
|
|
@@ -5604,7 +5775,7 @@ const _7 = "anduin-switcher:change", Oe = class Oe extends h {
|
|
|
5604
5775
|
`;
|
|
5605
5776
|
}
|
|
5606
5777
|
};
|
|
5607
|
-
|
|
5778
|
+
Fe.styles = g`
|
|
5608
5779
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
5609
5780
|
|
|
5610
5781
|
label {
|
|
@@ -5668,20 +5839,20 @@ Oe.styles = g`
|
|
|
5668
5839
|
line-height: 20px;
|
|
5669
5840
|
}
|
|
5670
5841
|
`;
|
|
5671
|
-
let w2 =
|
|
5672
|
-
|
|
5842
|
+
let w2 = Fe;
|
|
5843
|
+
k4([
|
|
5673
5844
|
s({ type: Boolean })
|
|
5674
5845
|
], w2.prototype, "checked");
|
|
5675
|
-
|
|
5846
|
+
k4([
|
|
5676
5847
|
s({ type: Boolean })
|
|
5677
5848
|
], w2.prototype, "disabled");
|
|
5678
5849
|
customElements.get("anduin-switcher") || customElements.define("anduin-switcher", w2);
|
|
5679
|
-
var
|
|
5850
|
+
var _7 = Object.defineProperty, S = (r, e, t, o) => {
|
|
5680
5851
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
5681
5852
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5682
|
-
return i &&
|
|
5853
|
+
return i && _7(e, t, i), i;
|
|
5683
5854
|
};
|
|
5684
|
-
const
|
|
5855
|
+
const Gt = "anduin-dropdown:change", Ie = class Ie extends h {
|
|
5685
5856
|
constructor() {
|
|
5686
5857
|
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) => {
|
|
5687
5858
|
var t;
|
|
@@ -5740,14 +5911,14 @@ const G4 = "anduin-dropdown:change", Ie = class Ie extends h {
|
|
|
5740
5911
|
}
|
|
5741
5912
|
}
|
|
5742
5913
|
_onClear(e) {
|
|
5743
|
-
e.stopPropagation(), this.clearable && (this.value = "", this.dispatchEvent(new CustomEvent(
|
|
5914
|
+
e.stopPropagation(), this.clearable && (this.value = "", this.dispatchEvent(new CustomEvent(Gt, {
|
|
5744
5915
|
detail: "",
|
|
5745
5916
|
bubbles: !0,
|
|
5746
5917
|
composed: !0
|
|
5747
5918
|
})));
|
|
5748
5919
|
}
|
|
5749
5920
|
_selectOption(e) {
|
|
5750
|
-
e.disabled || (this.value = e.value, this._open = !1, this._query = "", this._activeIndex = -1, this.dispatchEvent(new CustomEvent(
|
|
5921
|
+
e.disabled || (this.value = e.value, this._open = !1, this._query = "", this._activeIndex = -1, this.dispatchEvent(new CustomEvent(Gt, {
|
|
5751
5922
|
detail: e.value,
|
|
5752
5923
|
bubbles: !0,
|
|
5753
5924
|
composed: !0
|
|
@@ -5762,10 +5933,10 @@ const G4 = "anduin-dropdown:change", Ie = class Ie extends h {
|
|
|
5762
5933
|
t.style.transform = i;
|
|
5763
5934
|
const l = t.querySelector(".panel__inner");
|
|
5764
5935
|
l && (l.style.minWidth = `${o.width}px`);
|
|
5765
|
-
const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, H = p - o.bottom - c, m = o.top - c,
|
|
5936
|
+
const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, H = p - o.bottom - c, m = o.top - c, _ = d.height <= H || H >= m ? o.bottom + c : o.top - d.height - c;
|
|
5766
5937
|
let v = o.left;
|
|
5767
5938
|
this.placement === "bottom-end" ? v = o.right - d.width : this.placement === "bottom" && (v = o.left + o.width / 2 - d.width / 2), v = Math.max(f, Math.min(v, C - d.width - f));
|
|
5768
|
-
const x = Math.max(f, Math.min(
|
|
5939
|
+
const x = Math.max(f, Math.min(_, p - d.height - f));
|
|
5769
5940
|
t.style.transform = `translate(${Math.round(v - n.left)}px, ${Math.round(x - n.top)}px)`;
|
|
5770
5941
|
}
|
|
5771
5942
|
get _filteredOptions() {
|
|
@@ -6087,73 +6258,73 @@ Ie.styles = g`
|
|
|
6087
6258
|
text-align: center;
|
|
6088
6259
|
}
|
|
6089
6260
|
`;
|
|
6090
|
-
let
|
|
6091
|
-
|
|
6261
|
+
let Z = Ie;
|
|
6262
|
+
S([
|
|
6092
6263
|
s()
|
|
6093
|
-
],
|
|
6094
|
-
|
|
6264
|
+
], Z.prototype, "value");
|
|
6265
|
+
S([
|
|
6095
6266
|
s()
|
|
6096
|
-
],
|
|
6097
|
-
|
|
6267
|
+
], Z.prototype, "placeholder");
|
|
6268
|
+
S([
|
|
6098
6269
|
s({ attribute: !1 })
|
|
6099
|
-
],
|
|
6100
|
-
|
|
6270
|
+
], Z.prototype, "options");
|
|
6271
|
+
S([
|
|
6101
6272
|
s()
|
|
6102
|
-
],
|
|
6103
|
-
|
|
6273
|
+
], Z.prototype, "icon");
|
|
6274
|
+
S([
|
|
6104
6275
|
s({ type: Boolean })
|
|
6105
|
-
],
|
|
6106
|
-
|
|
6276
|
+
], Z.prototype, "searchable");
|
|
6277
|
+
S([
|
|
6107
6278
|
s({ type: Boolean })
|
|
6108
|
-
],
|
|
6109
|
-
|
|
6279
|
+
], Z.prototype, "disabled");
|
|
6280
|
+
S([
|
|
6110
6281
|
s()
|
|
6111
|
-
],
|
|
6112
|
-
|
|
6282
|
+
], Z.prototype, "placement");
|
|
6283
|
+
S([
|
|
6113
6284
|
s()
|
|
6114
|
-
],
|
|
6115
|
-
|
|
6285
|
+
], Z.prototype, "appearance");
|
|
6286
|
+
S([
|
|
6116
6287
|
s()
|
|
6117
|
-
],
|
|
6118
|
-
|
|
6288
|
+
], Z.prototype, "variant");
|
|
6289
|
+
S([
|
|
6119
6290
|
s()
|
|
6120
|
-
],
|
|
6121
|
-
|
|
6291
|
+
], Z.prototype, "size");
|
|
6292
|
+
S([
|
|
6122
6293
|
s({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
6123
|
-
],
|
|
6124
|
-
|
|
6294
|
+
], Z.prototype, "fullWidth");
|
|
6295
|
+
S([
|
|
6125
6296
|
s({ converter: (r) => r !== "false" })
|
|
6126
|
-
],
|
|
6127
|
-
|
|
6297
|
+
], Z.prototype, "clearable");
|
|
6298
|
+
S([
|
|
6128
6299
|
b()
|
|
6129
|
-
],
|
|
6130
|
-
|
|
6300
|
+
], Z.prototype, "_open");
|
|
6301
|
+
S([
|
|
6131
6302
|
b()
|
|
6132
|
-
],
|
|
6133
|
-
|
|
6303
|
+
], Z.prototype, "_query");
|
|
6304
|
+
S([
|
|
6134
6305
|
b()
|
|
6135
|
-
],
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
],
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
],
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
],
|
|
6145
|
-
customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown",
|
|
6306
|
+
], Z.prototype, "_activeIndex");
|
|
6307
|
+
S([
|
|
6308
|
+
R(".trigger")
|
|
6309
|
+
], Z.prototype, "_triggerEl");
|
|
6310
|
+
S([
|
|
6311
|
+
R(".panel")
|
|
6312
|
+
], Z.prototype, "_panelEl");
|
|
6313
|
+
S([
|
|
6314
|
+
R("anduin-input")
|
|
6315
|
+
], Z.prototype, "_searchEl");
|
|
6316
|
+
customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", Z);
|
|
6146
6317
|
var L7 = Object.defineProperty, c1 = (r, e, t, o) => {
|
|
6147
6318
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
6148
6319
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
6149
6320
|
return i && L7(e, t, i), i;
|
|
6150
6321
|
};
|
|
6151
|
-
const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300,
|
|
6322
|
+
const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, Kt = 250, x7 = /* @__PURE__ */ new Map([
|
|
6152
6323
|
["320", 320],
|
|
6153
6324
|
["360", 360],
|
|
6154
6325
|
["400", 400],
|
|
6155
6326
|
["640", 640]
|
|
6156
|
-
]),
|
|
6327
|
+
]), Oe = class Oe extends h {
|
|
6157
6328
|
constructor() {
|
|
6158
6329
|
super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.defaultWidth = "320", this.placement = "right", this.allowInteractOutside = !1, this._leaving = !1, this._width = 320, this._resizing = !1, this._startX = 0, this._startWidth = 0, this._stopAtSelf = (e) => {
|
|
6159
6330
|
e.stopPropagation();
|
|
@@ -6184,7 +6355,7 @@ const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
|
|
|
6184
6355
|
composed: !0
|
|
6185
6356
|
})
|
|
6186
6357
|
);
|
|
6187
|
-
},
|
|
6358
|
+
}, Kt)));
|
|
6188
6359
|
}
|
|
6189
6360
|
_dispatch(e) {
|
|
6190
6361
|
this.dispatchEvent(
|
|
@@ -6244,7 +6415,7 @@ const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
|
|
|
6244
6415
|
`;
|
|
6245
6416
|
}
|
|
6246
6417
|
};
|
|
6247
|
-
|
|
6418
|
+
Oe.styles = g`
|
|
6248
6419
|
:host {
|
|
6249
6420
|
display: none;
|
|
6250
6421
|
font-family: var(--font-sans);
|
|
@@ -6318,7 +6489,7 @@ Te.styles = g`
|
|
|
6318
6489
|
pointer-events: auto;
|
|
6319
6490
|
}
|
|
6320
6491
|
.drawer.is-leaving {
|
|
6321
|
-
animation: drawerOut ${
|
|
6492
|
+
animation: drawerOut ${Kt}ms
|
|
6322
6493
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
6323
6494
|
}
|
|
6324
6495
|
/* placement="left": every rule above that assumes the right edge, flipped.
|
|
@@ -6407,7 +6578,7 @@ Te.styles = g`
|
|
|
6407
6578
|
border-top: 1px solid var(--color-border);
|
|
6408
6579
|
}
|
|
6409
6580
|
`;
|
|
6410
|
-
let K =
|
|
6581
|
+
let K = Oe;
|
|
6411
6582
|
c1([
|
|
6412
6583
|
s({ type: Boolean, reflect: !0 })
|
|
6413
6584
|
], K.prototype, "open");
|
|
@@ -6452,7 +6623,7 @@ class w7 extends HTMLElement {
|
|
|
6452
6623
|
}
|
|
6453
6624
|
}
|
|
6454
6625
|
customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", w7);
|
|
6455
|
-
var M7 = Object.defineProperty,
|
|
6626
|
+
var M7 = Object.defineProperty, A = (r, e, t, o) => {
|
|
6456
6627
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
6457
6628
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
6458
6629
|
return i && M7(e, t, i), i;
|
|
@@ -6554,10 +6725,10 @@ const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "an
|
|
|
6554
6725
|
t.style.transform = i;
|
|
6555
6726
|
const l = t.querySelector(".panel__inner");
|
|
6556
6727
|
l && (l.style.minWidth = `${o.width}px`);
|
|
6557
|
-
const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, H = p - o.bottom - c, m = o.top - c,
|
|
6728
|
+
const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, H = p - o.bottom - c, m = o.top - c, _ = d.height <= H || H >= m ? o.bottom + c : o.top - d.height - c;
|
|
6558
6729
|
let v = o.left;
|
|
6559
6730
|
v = Math.max(f, Math.min(v, C - d.width - f));
|
|
6560
|
-
const x = Math.max(f, Math.min(
|
|
6731
|
+
const x = Math.max(f, Math.min(_, p - d.height - f));
|
|
6561
6732
|
t.style.transform = `translate(${Math.round(v - n.left)}px, ${Math.round(x - n.top)}px)`;
|
|
6562
6733
|
}
|
|
6563
6734
|
render() {
|
|
@@ -6743,62 +6914,62 @@ Ne.styles = g`
|
|
|
6743
6914
|
text-align: center;
|
|
6744
6915
|
}
|
|
6745
6916
|
`;
|
|
6746
|
-
let
|
|
6747
|
-
|
|
6917
|
+
let k = Ne;
|
|
6918
|
+
A([
|
|
6748
6919
|
s()
|
|
6749
|
-
],
|
|
6750
|
-
|
|
6920
|
+
], k.prototype, "value");
|
|
6921
|
+
A([
|
|
6751
6922
|
s()
|
|
6752
|
-
],
|
|
6753
|
-
|
|
6923
|
+
], k.prototype, "size");
|
|
6924
|
+
A([
|
|
6754
6925
|
s({ type: Boolean })
|
|
6755
|
-
],
|
|
6756
|
-
|
|
6926
|
+
], k.prototype, "disabled");
|
|
6927
|
+
A([
|
|
6757
6928
|
s({ type: Boolean })
|
|
6758
|
-
],
|
|
6759
|
-
|
|
6929
|
+
], k.prototype, "readonly");
|
|
6930
|
+
A([
|
|
6760
6931
|
s()
|
|
6761
|
-
],
|
|
6762
|
-
|
|
6932
|
+
], k.prototype, "placeholder");
|
|
6933
|
+
A([
|
|
6763
6934
|
s()
|
|
6764
|
-
],
|
|
6765
|
-
|
|
6935
|
+
], k.prototype, "inputid");
|
|
6936
|
+
A([
|
|
6766
6937
|
s()
|
|
6767
|
-
],
|
|
6768
|
-
|
|
6938
|
+
], k.prototype, "status");
|
|
6939
|
+
A([
|
|
6769
6940
|
s({ attribute: "start-icon" })
|
|
6770
|
-
],
|
|
6771
|
-
|
|
6941
|
+
], k.prototype, "startIcon");
|
|
6942
|
+
A([
|
|
6772
6943
|
s({ attribute: "end-icon" })
|
|
6773
|
-
],
|
|
6774
|
-
|
|
6944
|
+
], k.prototype, "endIcon");
|
|
6945
|
+
A([
|
|
6775
6946
|
s({ type: Boolean })
|
|
6776
|
-
],
|
|
6777
|
-
|
|
6947
|
+
], k.prototype, "clearable");
|
|
6948
|
+
A([
|
|
6778
6949
|
s({ attribute: !1 })
|
|
6779
|
-
],
|
|
6780
|
-
|
|
6950
|
+
], k.prototype, "suggestions");
|
|
6951
|
+
A([
|
|
6781
6952
|
s({ type: Boolean })
|
|
6782
|
-
],
|
|
6783
|
-
|
|
6953
|
+
], k.prototype, "filter");
|
|
6954
|
+
A([
|
|
6784
6955
|
s({ type: Boolean, attribute: "hide-when-empty" })
|
|
6785
|
-
],
|
|
6786
|
-
|
|
6956
|
+
], k.prototype, "hideWhenEmpty");
|
|
6957
|
+
A([
|
|
6787
6958
|
s({ attribute: "empty-text" })
|
|
6788
|
-
],
|
|
6789
|
-
|
|
6959
|
+
], k.prototype, "emptyText");
|
|
6960
|
+
A([
|
|
6790
6961
|
b()
|
|
6791
|
-
],
|
|
6792
|
-
|
|
6962
|
+
], k.prototype, "_open");
|
|
6963
|
+
A([
|
|
6793
6964
|
b()
|
|
6794
|
-
],
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
],
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
],
|
|
6801
|
-
customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion",
|
|
6965
|
+
], k.prototype, "_activeIndex");
|
|
6966
|
+
A([
|
|
6967
|
+
R("input")
|
|
6968
|
+
], k.prototype, "_inputEl");
|
|
6969
|
+
A([
|
|
6970
|
+
R(".panel")
|
|
6971
|
+
], k.prototype, "_panelEl");
|
|
6972
|
+
customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", k);
|
|
6802
6973
|
var R7 = Object.defineProperty, q = (r, e, t, o) => {
|
|
6803
6974
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
6804
6975
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
@@ -7024,8 +7195,8 @@ var E7 = Object.defineProperty, P1 = (r, e, t, o) => {
|
|
|
7024
7195
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
7025
7196
|
return i && E7(e, t, i), i;
|
|
7026
7197
|
};
|
|
7027
|
-
const z7 = "anduin-resizable:resize",
|
|
7028
|
-
function
|
|
7198
|
+
const z7 = "anduin-resizable:resize", R4 = "anduin-resizable-panel", Wt = (r) => !!r && r.tagName.toLowerCase() === R4;
|
|
7199
|
+
function Yt(r, e, t) {
|
|
7029
7200
|
const o = (r || "").trim();
|
|
7030
7201
|
if (!o) return t;
|
|
7031
7202
|
const i = parseFloat(o);
|
|
@@ -7047,7 +7218,7 @@ const Ge = class Ge extends h {
|
|
|
7047
7218
|
return this.isVertical ? e.height : e.width;
|
|
7048
7219
|
}
|
|
7049
7220
|
get panels() {
|
|
7050
|
-
return Array.from(this.querySelectorAll(`:scope > ${
|
|
7221
|
+
return Array.from(this.querySelectorAll(`:scope > ${R4}`));
|
|
7051
7222
|
}
|
|
7052
7223
|
updated() {
|
|
7053
7224
|
for (const e of this.querySelectorAll(":scope > anduin-resizable-handle"))
|
|
@@ -7080,10 +7251,10 @@ Ge.styles = g`
|
|
|
7080
7251
|
}
|
|
7081
7252
|
.panel-group--vertical { flex-direction: column; }
|
|
7082
7253
|
`;
|
|
7083
|
-
let
|
|
7254
|
+
let F2 = Ge;
|
|
7084
7255
|
P1([
|
|
7085
7256
|
s({ reflect: !0 })
|
|
7086
|
-
],
|
|
7257
|
+
], F2.prototype, "orientation");
|
|
7087
7258
|
const Ke = class Ke extends h {
|
|
7088
7259
|
constructor() {
|
|
7089
7260
|
super(...arguments), this.defaultSize = "", this.minSize = "", this.maxSize = "", this.applied = !1;
|
|
@@ -7107,10 +7278,10 @@ const Ke = class Ke extends h {
|
|
|
7107
7278
|
return e ? t.height : t.width;
|
|
7108
7279
|
}
|
|
7109
7280
|
minPx(e) {
|
|
7110
|
-
return
|
|
7281
|
+
return Yt(this.minSize, e, 0);
|
|
7111
7282
|
}
|
|
7112
7283
|
maxPx(e) {
|
|
7113
|
-
return
|
|
7284
|
+
return Yt(this.maxSize, e, e);
|
|
7114
7285
|
}
|
|
7115
7286
|
render() {
|
|
7116
7287
|
return a`<div class="panel" part="panel"><slot></slot></div>`;
|
|
@@ -7176,10 +7347,10 @@ const We = class We extends h {
|
|
|
7176
7347
|
this.groupVertical = e, this.setAttribute("aria-orientation", e ? "horizontal" : "vertical");
|
|
7177
7348
|
}
|
|
7178
7349
|
get prevPanel() {
|
|
7179
|
-
return
|
|
7350
|
+
return Wt(this.previousElementSibling) ? this.previousElementSibling : null;
|
|
7180
7351
|
}
|
|
7181
7352
|
get nextPanel() {
|
|
7182
|
-
return
|
|
7353
|
+
return Wt(this.nextElementSibling) ? this.nextElementSibling : null;
|
|
7183
7354
|
}
|
|
7184
7355
|
endDrag() {
|
|
7185
7356
|
if (!(!this.dragging && this.activePointerId === null)) {
|
|
@@ -7257,7 +7428,7 @@ P1([
|
|
|
7257
7428
|
P1([
|
|
7258
7429
|
b()
|
|
7259
7430
|
], Y1.prototype, "dragging");
|
|
7260
|
-
customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group",
|
|
7431
|
+
customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", F2);
|
|
7261
7432
|
customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", W1);
|
|
7262
7433
|
customElements.get("anduin-resizable-handle") || customElements.define("anduin-resizable-handle", Y1);
|
|
7263
7434
|
var S7 = Object.defineProperty, X1 = (r, e, t, o) => {
|
|
@@ -7477,7 +7648,7 @@ X1([
|
|
|
7477
7648
|
b()
|
|
7478
7649
|
], H1.prototype, "internalValue");
|
|
7479
7650
|
X1([
|
|
7480
|
-
|
|
7651
|
+
R(".pagination__indicator")
|
|
7481
7652
|
], H1.prototype, "indicatorEl");
|
|
7482
7653
|
const qe = class qe extends h {
|
|
7483
7654
|
constructor() {
|
|
@@ -7664,24 +7835,24 @@ Qe.styles = g`
|
|
|
7664
7835
|
}
|
|
7665
7836
|
`;
|
|
7666
7837
|
let Z5 = Qe;
|
|
7667
|
-
const
|
|
7838
|
+
const et = class et extends h {
|
|
7668
7839
|
render() {
|
|
7669
7840
|
return a`<div class="title"><slot></slot></div>`;
|
|
7670
7841
|
}
|
|
7671
7842
|
};
|
|
7672
|
-
|
|
7843
|
+
et.styles = g`
|
|
7673
7844
|
/* Block-level element inheriting the parent's font size and color. */
|
|
7674
7845
|
:host {
|
|
7675
7846
|
display: block;
|
|
7676
7847
|
}
|
|
7677
7848
|
`;
|
|
7678
|
-
let k5 =
|
|
7679
|
-
const
|
|
7849
|
+
let k5 = et;
|
|
7850
|
+
const tt = class tt extends h {
|
|
7680
7851
|
render() {
|
|
7681
7852
|
return a`<div class="group__items"><slot></slot></div>`;
|
|
7682
7853
|
}
|
|
7683
7854
|
};
|
|
7684
|
-
|
|
7855
|
+
tt.styles = g`
|
|
7685
7856
|
:host {
|
|
7686
7857
|
display: block;
|
|
7687
7858
|
}
|
|
@@ -7700,13 +7871,13 @@ t4.styles = g`
|
|
|
7700
7871
|
flex-direction: column;
|
|
7701
7872
|
}
|
|
7702
7873
|
`;
|
|
7703
|
-
let R5 =
|
|
7704
|
-
const
|
|
7874
|
+
let R5 = tt;
|
|
7875
|
+
const it = class it extends h {
|
|
7705
7876
|
render() {
|
|
7706
7877
|
return a`<div class="label-center"><div class="label-pill"><slot></slot></div></div>`;
|
|
7707
7878
|
}
|
|
7708
7879
|
};
|
|
7709
|
-
|
|
7880
|
+
it.styles = g`
|
|
7710
7881
|
/* Sticky positioning keeps the label visible while scrolling. The gray-0
|
|
7711
7882
|
* background covers content behind it during scroll. z-index: 1 ensures the
|
|
7712
7883
|
* label sits above item dots and rails. */
|
|
@@ -7764,7 +7935,7 @@ i4.styles = g`
|
|
|
7764
7935
|
font-weight: 600;
|
|
7765
7936
|
}
|
|
7766
7937
|
`;
|
|
7767
|
-
let $5 =
|
|
7938
|
+
let $5 = it;
|
|
7768
7939
|
customElements.get("anduin-timeline") || customElements.define("anduin-timeline", w5);
|
|
7769
7940
|
customElements.get("anduin-timeline-item") || customElements.define("anduin-timeline-item", M5);
|
|
7770
7941
|
customElements.get("anduin-timeline-date") || customElements.define("anduin-timeline-date", Z5);
|
|
@@ -7776,7 +7947,7 @@ var B7 = Object.defineProperty, B1 = (r, e, t, o) => {
|
|
|
7776
7947
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
7777
7948
|
return i && B7(e, t, i), i;
|
|
7778
7949
|
};
|
|
7779
|
-
const
|
|
7950
|
+
const T7 = "anduin-sidebar:select", ot = class ot extends h {
|
|
7780
7951
|
connectedCallback() {
|
|
7781
7952
|
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "navigation");
|
|
7782
7953
|
}
|
|
@@ -7784,7 +7955,7 @@ const F7 = "anduin-sidebar:select", o4 = class o4 extends h {
|
|
|
7784
7955
|
return a`<div class="sidebar" part="sidebar"><slot></slot></div>`;
|
|
7785
7956
|
}
|
|
7786
7957
|
};
|
|
7787
|
-
|
|
7958
|
+
ot.styles = g`
|
|
7788
7959
|
:host {
|
|
7789
7960
|
display: flex;
|
|
7790
7961
|
flex-direction: column;
|
|
@@ -7799,13 +7970,13 @@ o4.styles = g`
|
|
|
7799
7970
|
min-height: 0;
|
|
7800
7971
|
}
|
|
7801
7972
|
`;
|
|
7802
|
-
let E5 =
|
|
7803
|
-
const
|
|
7973
|
+
let E5 = ot;
|
|
7974
|
+
const nt = class nt extends h {
|
|
7804
7975
|
render() {
|
|
7805
7976
|
return a`<div class="sidebar-content" part="content"><slot></slot></div>`;
|
|
7806
7977
|
}
|
|
7807
7978
|
};
|
|
7808
|
-
|
|
7979
|
+
nt.styles = g`
|
|
7809
7980
|
:host {
|
|
7810
7981
|
display: flex;
|
|
7811
7982
|
flex-direction: column;
|
|
@@ -7820,8 +7991,8 @@ n4.styles = g`
|
|
|
7820
7991
|
padding: 12px 16px;
|
|
7821
7992
|
}
|
|
7822
7993
|
`;
|
|
7823
|
-
let z5 =
|
|
7824
|
-
const
|
|
7994
|
+
let z5 = nt;
|
|
7995
|
+
const rt = class rt extends h {
|
|
7825
7996
|
constructor() {
|
|
7826
7997
|
super(...arguments), this.divider = !1;
|
|
7827
7998
|
}
|
|
@@ -7829,7 +8000,7 @@ const r4 = class r4 extends h {
|
|
|
7829
8000
|
return a`<div class="sidebar-header" part="header"><slot></slot></div>`;
|
|
7830
8001
|
}
|
|
7831
8002
|
};
|
|
7832
|
-
|
|
8003
|
+
rt.styles = g`
|
|
7833
8004
|
:host {
|
|
7834
8005
|
display: block;
|
|
7835
8006
|
flex: 0 0 auto;
|
|
@@ -7840,11 +8011,11 @@ r4.styles = g`
|
|
|
7840
8011
|
border-bottom: 1px solid var(--color-border);
|
|
7841
8012
|
}
|
|
7842
8013
|
`;
|
|
7843
|
-
let I2 =
|
|
8014
|
+
let I2 = rt;
|
|
7844
8015
|
B1([
|
|
7845
8016
|
s({ type: Boolean, reflect: !0 })
|
|
7846
8017
|
], I2.prototype, "divider");
|
|
7847
|
-
const
|
|
8018
|
+
const lt = class lt extends h {
|
|
7848
8019
|
constructor() {
|
|
7849
8020
|
super(...arguments), this.divider = !1;
|
|
7850
8021
|
}
|
|
@@ -7852,7 +8023,7 @@ const l4 = class l4 extends h {
|
|
|
7852
8023
|
return a`<div class="sidebar-footer" part="footer"><slot></slot></div>`;
|
|
7853
8024
|
}
|
|
7854
8025
|
};
|
|
7855
|
-
|
|
8026
|
+
lt.styles = g`
|
|
7856
8027
|
:host {
|
|
7857
8028
|
display: block;
|
|
7858
8029
|
flex: 0 0 auto;
|
|
@@ -7863,16 +8034,16 @@ l4.styles = g`
|
|
|
7863
8034
|
border-top: 1px solid var(--color-border);
|
|
7864
8035
|
}
|
|
7865
8036
|
`;
|
|
7866
|
-
let
|
|
8037
|
+
let O2 = lt;
|
|
7867
8038
|
B1([
|
|
7868
8039
|
s({ type: Boolean, reflect: !0 })
|
|
7869
|
-
],
|
|
7870
|
-
const
|
|
8040
|
+
], O2.prototype, "divider");
|
|
8041
|
+
const st = class st extends h {
|
|
7871
8042
|
render() {
|
|
7872
8043
|
return a`<div class="sidebar-group" part="group" role="group"><slot></slot></div>`;
|
|
7873
8044
|
}
|
|
7874
8045
|
};
|
|
7875
|
-
|
|
8046
|
+
st.styles = g`
|
|
7876
8047
|
:host {
|
|
7877
8048
|
display: block;
|
|
7878
8049
|
}
|
|
@@ -7882,8 +8053,8 @@ s4.styles = g`
|
|
|
7882
8053
|
gap: 4px;
|
|
7883
8054
|
}
|
|
7884
8055
|
`;
|
|
7885
|
-
let S5 =
|
|
7886
|
-
const
|
|
8056
|
+
let S5 = st;
|
|
8057
|
+
const at = class at extends h {
|
|
7887
8058
|
render() {
|
|
7888
8059
|
return a`
|
|
7889
8060
|
<div class="sidebar-group-label" part="group-label">
|
|
@@ -7894,7 +8065,7 @@ const a4 = class a4 extends h {
|
|
|
7894
8065
|
`;
|
|
7895
8066
|
}
|
|
7896
8067
|
};
|
|
7897
|
-
|
|
8068
|
+
at.styles = g`
|
|
7898
8069
|
:host {
|
|
7899
8070
|
display: block;
|
|
7900
8071
|
}
|
|
@@ -7926,13 +8097,13 @@ a4.styles = g`
|
|
|
7926
8097
|
padding-right: 6px;
|
|
7927
8098
|
}
|
|
7928
8099
|
`;
|
|
7929
|
-
let A5 =
|
|
7930
|
-
const
|
|
8100
|
+
let A5 = at;
|
|
8101
|
+
const dt = class dt extends h {
|
|
7931
8102
|
render() {
|
|
7932
8103
|
return a`<div class="sidebar-menu" part="menu"><slot></slot></div>`;
|
|
7933
8104
|
}
|
|
7934
8105
|
};
|
|
7935
|
-
|
|
8106
|
+
dt.styles = g`
|
|
7936
8107
|
:host {
|
|
7937
8108
|
display: block;
|
|
7938
8109
|
}
|
|
@@ -7942,15 +8113,15 @@ d4.styles = g`
|
|
|
7942
8113
|
gap: 2px;
|
|
7943
8114
|
}
|
|
7944
8115
|
`;
|
|
7945
|
-
let D5 =
|
|
7946
|
-
const
|
|
8116
|
+
let D5 = dt;
|
|
8117
|
+
const ct = class ct extends h {
|
|
7947
8118
|
constructor() {
|
|
7948
8119
|
super(...arguments), this.startIcon = "", this.selected = !1, this.disabled = !1, this.href = "", this.openNewTab = !1, this.onClick = (e) => {
|
|
7949
8120
|
if (this.disabled) {
|
|
7950
8121
|
e.preventDefault(), e.stopPropagation();
|
|
7951
8122
|
return;
|
|
7952
8123
|
}
|
|
7953
|
-
this.dispatchEvent(new CustomEvent(
|
|
8124
|
+
this.dispatchEvent(new CustomEvent(T7, {
|
|
7954
8125
|
detail: this,
|
|
7955
8126
|
bubbles: !0,
|
|
7956
8127
|
composed: !0
|
|
@@ -7999,7 +8170,7 @@ const c4 = class c4 extends h {
|
|
|
7999
8170
|
`;
|
|
8000
8171
|
}
|
|
8001
8172
|
};
|
|
8002
|
-
|
|
8173
|
+
ct.styles = g`
|
|
8003
8174
|
:host {
|
|
8004
8175
|
display: block;
|
|
8005
8176
|
}
|
|
@@ -8082,23 +8253,23 @@ c4.styles = g`
|
|
|
8082
8253
|
padding-right: 6px;
|
|
8083
8254
|
}
|
|
8084
8255
|
`;
|
|
8085
|
-
let
|
|
8256
|
+
let y1 = ct;
|
|
8086
8257
|
B1([
|
|
8087
8258
|
s({ attribute: "start-icon" })
|
|
8088
|
-
],
|
|
8259
|
+
], y1.prototype, "startIcon");
|
|
8089
8260
|
B1([
|
|
8090
8261
|
s({ type: Boolean, reflect: !0 })
|
|
8091
|
-
],
|
|
8262
|
+
], y1.prototype, "selected");
|
|
8092
8263
|
B1([
|
|
8093
8264
|
s({ type: Boolean, reflect: !0 })
|
|
8094
|
-
],
|
|
8265
|
+
], y1.prototype, "disabled");
|
|
8095
8266
|
B1([
|
|
8096
8267
|
s()
|
|
8097
|
-
],
|
|
8268
|
+
], y1.prototype, "href");
|
|
8098
8269
|
B1([
|
|
8099
8270
|
s({ type: Boolean, attribute: "open-new-tab" })
|
|
8100
|
-
],
|
|
8101
|
-
const
|
|
8271
|
+
], y1.prototype, "openNewTab");
|
|
8272
|
+
const Ct = class Ct extends h {
|
|
8102
8273
|
connectedCallback() {
|
|
8103
8274
|
super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "action");
|
|
8104
8275
|
}
|
|
@@ -8106,7 +8277,7 @@ const C4 = class C4 extends h {
|
|
|
8106
8277
|
return a`<div class="sidebar-action" part="action"><slot></slot></div>`;
|
|
8107
8278
|
}
|
|
8108
8279
|
};
|
|
8109
|
-
|
|
8280
|
+
Ct.styles = g`
|
|
8110
8281
|
:host {
|
|
8111
8282
|
display: flex;
|
|
8112
8283
|
align-items: center;
|
|
@@ -8116,8 +8287,8 @@ C4.styles = g`
|
|
|
8116
8287
|
align-items: center;
|
|
8117
8288
|
}
|
|
8118
8289
|
`;
|
|
8119
|
-
let P5 =
|
|
8120
|
-
const
|
|
8290
|
+
let P5 = Ct;
|
|
8291
|
+
const ut = class ut extends h {
|
|
8121
8292
|
connectedCallback() {
|
|
8122
8293
|
super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "badge");
|
|
8123
8294
|
}
|
|
@@ -8125,7 +8296,7 @@ const u4 = class u4 extends h {
|
|
|
8125
8296
|
return a`<div class="sidebar-badge" part="badge"><slot></slot></div>`;
|
|
8126
8297
|
}
|
|
8127
8298
|
};
|
|
8128
|
-
|
|
8299
|
+
ut.styles = g`
|
|
8129
8300
|
:host {
|
|
8130
8301
|
display: flex;
|
|
8131
8302
|
align-items: center;
|
|
@@ -8135,8 +8306,8 @@ u4.styles = g`
|
|
|
8135
8306
|
align-items: center;
|
|
8136
8307
|
}
|
|
8137
8308
|
`;
|
|
8138
|
-
let B5 =
|
|
8139
|
-
const
|
|
8309
|
+
let B5 = ut;
|
|
8310
|
+
const pt = class pt extends h {
|
|
8140
8311
|
connectedCallback() {
|
|
8141
8312
|
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "separator");
|
|
8142
8313
|
}
|
|
@@ -8144,7 +8315,7 @@ const p4 = class p4 extends h {
|
|
|
8144
8315
|
return a`<div class="sidebar-separator" part="separator"></div>`;
|
|
8145
8316
|
}
|
|
8146
8317
|
};
|
|
8147
|
-
|
|
8318
|
+
pt.styles = g`
|
|
8148
8319
|
:host {
|
|
8149
8320
|
display: block;
|
|
8150
8321
|
}
|
|
@@ -8153,19 +8324,19 @@ p4.styles = g`
|
|
|
8153
8324
|
background-color: var(--color-border);
|
|
8154
8325
|
}
|
|
8155
8326
|
`;
|
|
8156
|
-
let
|
|
8327
|
+
let T5 = pt;
|
|
8157
8328
|
customElements.get("anduin-sidebar") || customElements.define("anduin-sidebar", E5);
|
|
8158
8329
|
customElements.get("anduin-sidebar-content") || customElements.define("anduin-sidebar-content", z5);
|
|
8159
8330
|
customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", I2);
|
|
8160
|
-
customElements.get("anduin-sidebar-footer") || customElements.define("anduin-sidebar-footer",
|
|
8331
|
+
customElements.get("anduin-sidebar-footer") || customElements.define("anduin-sidebar-footer", O2);
|
|
8161
8332
|
customElements.get("anduin-sidebar-group") || customElements.define("anduin-sidebar-group", S5);
|
|
8162
8333
|
customElements.get("anduin-sidebar-group-label") || customElements.define("anduin-sidebar-group-label", A5);
|
|
8163
8334
|
customElements.get("anduin-sidebar-menu") || customElements.define("anduin-sidebar-menu", D5);
|
|
8164
|
-
customElements.get("anduin-sidebar-menu-item") || customElements.define("anduin-sidebar-menu-item",
|
|
8335
|
+
customElements.get("anduin-sidebar-menu-item") || customElements.define("anduin-sidebar-menu-item", y1);
|
|
8165
8336
|
customElements.get("anduin-sidebar-action") || customElements.define("anduin-sidebar-action", P5);
|
|
8166
8337
|
customElements.get("anduin-sidebar-badge") || customElements.define("anduin-sidebar-badge", B5);
|
|
8167
|
-
customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator",
|
|
8168
|
-
function
|
|
8338
|
+
customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator", T5);
|
|
8339
|
+
function T(r) {
|
|
8169
8340
|
if (!r) return null;
|
|
8170
8341
|
const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r.trim());
|
|
8171
8342
|
if (!e) return null;
|
|
@@ -8184,7 +8355,7 @@ function u1(r, e) {
|
|
|
8184
8355
|
const t = r.getFullYear(), o = r.getMonth() + e, i = new Date(t, o + 1, 0).getDate();
|
|
8185
8356
|
return new Date(t, o, Math.min(r.getDate(), i));
|
|
8186
8357
|
}
|
|
8187
|
-
function
|
|
8358
|
+
function F7(r, e) {
|
|
8188
8359
|
return new Date(r, e + 1, 0).getDate();
|
|
8189
8360
|
}
|
|
8190
8361
|
var I7 = Object.defineProperty, i1 = (r, e, t, o) => {
|
|
@@ -8192,7 +8363,7 @@ var I7 = Object.defineProperty, i1 = (r, e, t, o) => {
|
|
|
8192
8363
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8193
8364
|
return i && I7(e, t, i), i;
|
|
8194
8365
|
};
|
|
8195
|
-
const Z2 = "anduin-calendar:change",
|
|
8366
|
+
const Z2 = "anduin-calendar:change", F5 = "anduin-calendar:day-hover", qt = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Xt = [
|
|
8196
8367
|
"January",
|
|
8197
8368
|
"February",
|
|
8198
8369
|
"March",
|
|
@@ -8205,15 +8376,15 @@ const Z2 = "anduin-calendar:change", O5 = "anduin-calendar:day-hover", q4 = ["Ja
|
|
|
8205
8376
|
"October",
|
|
8206
8377
|
"November",
|
|
8207
8378
|
"December"
|
|
8208
|
-
],
|
|
8209
|
-
function
|
|
8379
|
+
], O7 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], Jt = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
|
8380
|
+
function T1(r, e) {
|
|
8210
8381
|
return new Date(r.getFullYear(), r.getMonth(), r.getDate() + e);
|
|
8211
8382
|
}
|
|
8212
8383
|
function N7(r) {
|
|
8213
8384
|
const e = ["th", "st", "nd", "rd"], t = r % 100;
|
|
8214
8385
|
return `${r}${e[(t - 20) % 10] ?? e[t] ?? e[0]}`;
|
|
8215
8386
|
}
|
|
8216
|
-
const
|
|
8387
|
+
const ht = class ht extends h {
|
|
8217
8388
|
constructor() {
|
|
8218
8389
|
super(...arguments), this.value = "", this.minDate = "", this.maxDate = "", this.rangeStart = "", this.rangeEnd = "", this.rangeMode = !1, this._viewMonth = I1().getMonth(), this._viewYear = I1().getFullYear(), this._focus = "", this._openSelect = null, this._viewSeeded = !1, this._pendingFocus = !1, this._onOutsideClick = (e) => {
|
|
8219
8390
|
this._openSelect && !e.composedPath().includes(this) && (this._openSelect = null);
|
|
@@ -8227,7 +8398,7 @@ const h4 = class h4 extends h {
|
|
|
8227
8398
|
}
|
|
8228
8399
|
willUpdate(e) {
|
|
8229
8400
|
if (e.has("value")) {
|
|
8230
|
-
const t =
|
|
8401
|
+
const t = T(this.value);
|
|
8231
8402
|
if (t)
|
|
8232
8403
|
this._viewYear = t.getFullYear(), this._viewMonth = t.getMonth(), this._viewSeeded = !0;
|
|
8233
8404
|
else if (!this._viewSeeded) {
|
|
@@ -8245,10 +8416,10 @@ const h4 = class h4 extends h {
|
|
|
8245
8416
|
}
|
|
8246
8417
|
// ── Constraints ─────────────────────────────────────────────────
|
|
8247
8418
|
get _min() {
|
|
8248
|
-
return
|
|
8419
|
+
return T(this.minDate);
|
|
8249
8420
|
}
|
|
8250
8421
|
get _max() {
|
|
8251
|
-
return
|
|
8422
|
+
return T(this.maxDate);
|
|
8252
8423
|
}
|
|
8253
8424
|
_isDisabled(e) {
|
|
8254
8425
|
const t = this._min, o = this._max;
|
|
@@ -8270,27 +8441,27 @@ const h4 = class h4 extends h {
|
|
|
8270
8441
|
this._isDisabled(o) || (this._focus = x1(o), (o.getMonth() !== e.getMonth() || o.getFullYear() !== e.getFullYear()) && (this._viewYear = o.getFullYear(), this._viewMonth = o.getMonth(), this._viewSeeded = !0), this._pendingFocus = !0);
|
|
8271
8442
|
}
|
|
8272
8443
|
_onGridKeyDown(e) {
|
|
8273
|
-
const t =
|
|
8444
|
+
const t = T(this._focus) ?? this._defaultFocusDate();
|
|
8274
8445
|
switch (e.key) {
|
|
8275
8446
|
// Shift turns the horizontal arrows into month steps and the vertical
|
|
8276
8447
|
// ones into year steps.
|
|
8277
8448
|
case "ArrowLeft":
|
|
8278
|
-
this._moveFocus(t, e.shiftKey ? u1(t, -1) :
|
|
8449
|
+
this._moveFocus(t, e.shiftKey ? u1(t, -1) : T1(t, -1));
|
|
8279
8450
|
break;
|
|
8280
8451
|
case "ArrowRight":
|
|
8281
|
-
this._moveFocus(t, e.shiftKey ? u1(t, 1) :
|
|
8452
|
+
this._moveFocus(t, e.shiftKey ? u1(t, 1) : T1(t, 1));
|
|
8282
8453
|
break;
|
|
8283
8454
|
case "ArrowUp":
|
|
8284
|
-
this._moveFocus(t, e.shiftKey ? u1(t, -12) :
|
|
8455
|
+
this._moveFocus(t, e.shiftKey ? u1(t, -12) : T1(t, -7));
|
|
8285
8456
|
break;
|
|
8286
8457
|
case "ArrowDown":
|
|
8287
|
-
this._moveFocus(t, e.shiftKey ? u1(t, 12) :
|
|
8458
|
+
this._moveFocus(t, e.shiftKey ? u1(t, 12) : T1(t, 7));
|
|
8288
8459
|
break;
|
|
8289
8460
|
case "Home":
|
|
8290
|
-
this._moveFocus(t,
|
|
8461
|
+
this._moveFocus(t, T1(t, -t.getDay()));
|
|
8291
8462
|
break;
|
|
8292
8463
|
case "End":
|
|
8293
|
-
this._moveFocus(t,
|
|
8464
|
+
this._moveFocus(t, T1(t, 6 - t.getDay()));
|
|
8294
8465
|
break;
|
|
8295
8466
|
case "PageUp":
|
|
8296
8467
|
this._moveFocus(t, u1(t, e.shiftKey ? -12 : -1));
|
|
@@ -8313,14 +8484,14 @@ const h4 = class h4 extends h {
|
|
|
8313
8484
|
this.value = t, this._focus = t, this.dispatchEvent(new CustomEvent(Z2, { detail: t, bubbles: !0, composed: !0 }));
|
|
8314
8485
|
}
|
|
8315
8486
|
_emitHover(e) {
|
|
8316
|
-
this.dispatchEvent(new CustomEvent(
|
|
8487
|
+
this.dispatchEvent(new CustomEvent(F5, { detail: e, bubbles: !0, composed: !0 }));
|
|
8317
8488
|
}
|
|
8318
8489
|
/** The day that owns `tabindex="0"` when nothing has been focused yet. */
|
|
8319
8490
|
_defaultFocusDate() {
|
|
8320
|
-
const e =
|
|
8491
|
+
const e = T(this._focus);
|
|
8321
8492
|
if (e && e.getMonth() === this._viewMonth && e.getFullYear() === this._viewYear)
|
|
8322
8493
|
return e;
|
|
8323
|
-
const t =
|
|
8494
|
+
const t = T(this.value);
|
|
8324
8495
|
if (t && t.getMonth() === this._viewMonth && t.getFullYear() === this._viewYear)
|
|
8325
8496
|
return t;
|
|
8326
8497
|
const o = I1();
|
|
@@ -8372,17 +8543,17 @@ const h4 = class h4 extends h {
|
|
|
8372
8543
|
}
|
|
8373
8544
|
// ── Render ──────────────────────────────────────────────────────
|
|
8374
8545
|
render() {
|
|
8375
|
-
const e = x1(I1()), t =
|
|
8546
|
+
const e = x1(I1()), t = T(this.value), o = T(this.rangeStart), i = T(this.rangeEnd), n = this.rangeMode || !!(o || i), l = x1(this._defaultFocusDate()), d = new Date(this._viewYear, this._viewMonth, 1), c = new Date(this._viewYear, this._viewMonth + 1, 0).getDate(), C = d.getDay(), p = [
|
|
8376
8547
|
...Array.from({ length: C }, () => null),
|
|
8377
|
-
...Array.from({ length: c }, (
|
|
8548
|
+
...Array.from({ length: c }, (_, v) => v + 1)
|
|
8378
8549
|
];
|
|
8379
8550
|
for (; p.length % 7 !== 0; ) p.push(null);
|
|
8380
|
-
const f = Array.from({ length: p.length / 7 }, (
|
|
8381
|
-
const
|
|
8382
|
-
return
|
|
8551
|
+
const f = Array.from({ length: p.length / 7 }, (_, v) => p.slice(v * 7, v * 7 + 7)), H = `${Xt[this._viewMonth]} ${this._viewYear}`, m = (() => {
|
|
8552
|
+
const _ = this._min;
|
|
8553
|
+
return _ ? new Date(this._viewYear, this._viewMonth, 0).getTime() < _.getTime() : !1;
|
|
8383
8554
|
})(), V = (() => {
|
|
8384
|
-
const
|
|
8385
|
-
return
|
|
8555
|
+
const _ = this._max;
|
|
8556
|
+
return _ ? new Date(this._viewYear, this._viewMonth + 1, 1).getTime() > _.getTime() : !1;
|
|
8386
8557
|
})();
|
|
8387
8558
|
return a`
|
|
8388
8559
|
<div class="calendar" part="calendar">
|
|
@@ -8398,17 +8569,17 @@ const h4 = class h4 extends h {
|
|
|
8398
8569
|
<div class="calendar__header-spacer"></div>
|
|
8399
8570
|
${this._renderSelect(
|
|
8400
8571
|
"month",
|
|
8401
|
-
|
|
8572
|
+
qt[this._viewMonth],
|
|
8402
8573
|
"Choose the month",
|
|
8403
|
-
|
|
8404
|
-
(
|
|
8574
|
+
qt.map((_, v) => ({ value: v, label: _, selected: v === this._viewMonth })),
|
|
8575
|
+
(_) => this._selectMonth(_)
|
|
8405
8576
|
)}
|
|
8406
8577
|
${this._renderSelect(
|
|
8407
8578
|
"year",
|
|
8408
8579
|
String(this._viewYear),
|
|
8409
8580
|
"Choose the year",
|
|
8410
|
-
this._yearOptions.map((
|
|
8411
|
-
(
|
|
8581
|
+
this._yearOptions.map((_) => ({ value: _, label: String(_), selected: _ === this._viewYear })),
|
|
8582
|
+
(_) => this._selectYear(_)
|
|
8412
8583
|
)}
|
|
8413
8584
|
<div class="calendar__header-spacer"></div>
|
|
8414
8585
|
<anduin-button
|
|
@@ -8432,44 +8603,44 @@ const h4 = class h4 extends h {
|
|
|
8432
8603
|
>
|
|
8433
8604
|
<thead aria-hidden="true">
|
|
8434
8605
|
<tr>
|
|
8435
|
-
${
|
|
8436
|
-
<th class="calendar__day-header" aria-label="${
|
|
8606
|
+
${O7.map((_, v) => a`
|
|
8607
|
+
<th class="calendar__day-header" aria-label="${Jt[v]}">${_}</th>
|
|
8437
8608
|
`)}
|
|
8438
8609
|
</tr>
|
|
8439
8610
|
</thead>
|
|
8440
8611
|
<tbody>
|
|
8441
|
-
${f.map((
|
|
8612
|
+
${f.map((_) => a`
|
|
8442
8613
|
<tr>
|
|
8443
|
-
${
|
|
8614
|
+
${_.map((v) => {
|
|
8444
8615
|
if (v === null) return a`<td class="calendar__day-cell"></td>`;
|
|
8445
|
-
const x = new Date(this._viewYear, this._viewMonth, v), w = x1(x),
|
|
8616
|
+
const x = new Date(this._viewYear, this._viewMonth, v), w = x1(x), B = x.getTime(), W = this._isDisabled(x), Q1 = !!o && B === o.getTime(), o1 = !!i && B === i.getTime(), Ht = !!o && !!i && B > o.getTime() && B < i.getTime(), yt = !n && !!t && B === t.getTime(), E4 = [
|
|
8446
8617
|
"calendar__day-cell",
|
|
8447
|
-
|
|
8618
|
+
Ht ? "calendar__day-cell--in-range" : "",
|
|
8448
8619
|
// Only tint the edge cell when it actually opens a span —
|
|
8449
8620
|
// a lone start marker shouldn't paint a half-rounded block.
|
|
8450
8621
|
Q1 && i ? "calendar__day-cell--range-start" : "",
|
|
8451
8622
|
o1 && o ? "calendar__day-cell--range-end" : ""
|
|
8452
|
-
].filter(Boolean).join(" "),
|
|
8623
|
+
].filter(Boolean).join(" "), z4 = [
|
|
8453
8624
|
"calendar__day-button",
|
|
8454
8625
|
w === e ? "calendar__day-button--today" : "",
|
|
8455
|
-
|
|
8626
|
+
yt ? "calendar__day-button--selected" : "",
|
|
8456
8627
|
Q1 ? "calendar__day-button--range-start" : "",
|
|
8457
8628
|
o1 ? "calendar__day-button--range-end" : "",
|
|
8458
|
-
|
|
8629
|
+
Ht ? "calendar__day-button--in-range" : "",
|
|
8459
8630
|
W ? "calendar__day-button--disabled" : ""
|
|
8460
8631
|
].filter(Boolean).join(" ");
|
|
8461
8632
|
return a`
|
|
8462
8633
|
<td
|
|
8463
|
-
class="${
|
|
8634
|
+
class="${E4}"
|
|
8464
8635
|
role="gridcell"
|
|
8465
|
-
aria-selected="${
|
|
8636
|
+
aria-selected="${yt || Q1 || o1}"
|
|
8466
8637
|
>
|
|
8467
8638
|
<button
|
|
8468
8639
|
type="button"
|
|
8469
|
-
class="${
|
|
8640
|
+
class="${z4}"
|
|
8470
8641
|
part="day"
|
|
8471
8642
|
aria-disabled="${W}"
|
|
8472
|
-
aria-label="${
|
|
8643
|
+
aria-label="${Jt[x.getDay()]}, ${Xt[x.getMonth()]} ${N7(v)}, ${x.getFullYear()}"
|
|
8473
8644
|
tabindex="${w === l ? 0 : -1}"
|
|
8474
8645
|
@click=${() => {
|
|
8475
8646
|
W || this._pick(x);
|
|
@@ -8489,7 +8660,7 @@ const h4 = class h4 extends h {
|
|
|
8489
8660
|
`;
|
|
8490
8661
|
}
|
|
8491
8662
|
};
|
|
8492
|
-
|
|
8663
|
+
ht.styles = g`
|
|
8493
8664
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8494
8665
|
|
|
8495
8666
|
.calendar { display: flex; flex-direction: column; font-family: inherit; font-size: 13px; }
|
|
@@ -8584,7 +8755,7 @@ h4.styles = g`
|
|
|
8584
8755
|
.calendar__day-button--in-range { color: var(--color-primary-subtle-foreground); }
|
|
8585
8756
|
.calendar__day-button--in-range:hover { background-color: var(--color-primary-subtle-active); }
|
|
8586
8757
|
`;
|
|
8587
|
-
let U =
|
|
8758
|
+
let U = ht;
|
|
8588
8759
|
i1([
|
|
8589
8760
|
s({ reflect: !0 })
|
|
8590
8761
|
], U.prototype, "value");
|
|
@@ -8621,12 +8792,12 @@ var j7 = Object.defineProperty, J1 = (r, e, t, o) => {
|
|
|
8621
8792
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8622
8793
|
return i && j7(e, t, i), i;
|
|
8623
8794
|
};
|
|
8624
|
-
const U7 = "anduin-date-range:change",
|
|
8795
|
+
const U7 = "anduin-date-range:change", gt = class gt extends h {
|
|
8625
8796
|
constructor() {
|
|
8626
8797
|
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) => {
|
|
8627
8798
|
e.stopPropagation();
|
|
8628
8799
|
const t = e.detail;
|
|
8629
|
-
if (!
|
|
8800
|
+
if (!T(t)) return;
|
|
8630
8801
|
if (this._anchor === null) {
|
|
8631
8802
|
this._anchor = t, this._hover = null;
|
|
8632
8803
|
return;
|
|
@@ -8642,10 +8813,10 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
|
|
|
8642
8813
|
};
|
|
8643
8814
|
}
|
|
8644
8815
|
connectedCallback() {
|
|
8645
|
-
super.connectedCallback(), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(
|
|
8816
|
+
super.connectedCallback(), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(F5, this._onCalendarHover);
|
|
8646
8817
|
}
|
|
8647
8818
|
disconnectedCallback() {
|
|
8648
|
-
super.disconnectedCallback(), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(
|
|
8819
|
+
super.disconnectedCallback(), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(F5, this._onCalendarHover);
|
|
8649
8820
|
}
|
|
8650
8821
|
updated() {
|
|
8651
8822
|
this._sync();
|
|
@@ -8673,7 +8844,7 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
|
|
|
8673
8844
|
/** Which month each panel opens on: the start date on the left, the month
|
|
8674
8845
|
* after it on the right. Falls back to today when there's no range yet. */
|
|
8675
8846
|
_panelValue(e) {
|
|
8676
|
-
const t =
|
|
8847
|
+
const t = T(this.startDate) ?? I1();
|
|
8677
8848
|
return x1(e === "start" ? t : u1(t, 1));
|
|
8678
8849
|
}
|
|
8679
8850
|
/** The range the calendars should paint — the live preview while selecting,
|
|
@@ -8685,17 +8856,17 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
|
|
|
8685
8856
|
return [e, t];
|
|
8686
8857
|
}
|
|
8687
8858
|
_sorted(e, t) {
|
|
8688
|
-
const o =
|
|
8859
|
+
const o = T(e), i = T(t);
|
|
8689
8860
|
return !o || !i ? [e, t] : o.getTime() <= i.getTime() ? [e, t] : [t, e];
|
|
8690
8861
|
}
|
|
8691
8862
|
render() {
|
|
8692
8863
|
return a`<div class="date-range" part="date-range"><slot></slot></div>`;
|
|
8693
8864
|
}
|
|
8694
8865
|
};
|
|
8695
|
-
|
|
8866
|
+
gt.styles = g`
|
|
8696
8867
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8697
8868
|
`;
|
|
8698
|
-
let t1 =
|
|
8869
|
+
let t1 = gt;
|
|
8699
8870
|
J1([
|
|
8700
8871
|
s({ attribute: "start-date", reflect: !0 })
|
|
8701
8872
|
], t1.prototype, "startDate");
|
|
@@ -8714,7 +8885,7 @@ J1([
|
|
|
8714
8885
|
J1([
|
|
8715
8886
|
b()
|
|
8716
8887
|
], t1.prototype, "_hover");
|
|
8717
|
-
const
|
|
8888
|
+
const ft = class ft extends h {
|
|
8718
8889
|
constructor() {
|
|
8719
8890
|
super(...arguments), this._host = null;
|
|
8720
8891
|
}
|
|
@@ -8743,10 +8914,10 @@ const f4 = class f4 extends h {
|
|
|
8743
8914
|
return a`<anduin-calendar part="calendar" range-mode></anduin-calendar>`;
|
|
8744
8915
|
}
|
|
8745
8916
|
};
|
|
8746
|
-
|
|
8917
|
+
ft.styles = g`
|
|
8747
8918
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8748
8919
|
`;
|
|
8749
|
-
let N2 =
|
|
8920
|
+
let N2 = ft;
|
|
8750
8921
|
class G7 extends N2 {
|
|
8751
8922
|
constructor() {
|
|
8752
8923
|
super(...arguments), this.panelRole = "start";
|
|
@@ -8757,7 +8928,7 @@ class K7 extends N2 {
|
|
|
8757
8928
|
super(...arguments), this.panelRole = "end";
|
|
8758
8929
|
}
|
|
8759
8930
|
}
|
|
8760
|
-
const
|
|
8931
|
+
const vt = class vt extends h {
|
|
8761
8932
|
render() {
|
|
8762
8933
|
return a`
|
|
8763
8934
|
<div class="date-range-default" part="layout">
|
|
@@ -8767,12 +8938,12 @@ const v4 = class v4 extends h {
|
|
|
8767
8938
|
`;
|
|
8768
8939
|
}
|
|
8769
8940
|
};
|
|
8770
|
-
|
|
8941
|
+
vt.styles = g`
|
|
8771
8942
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
8772
8943
|
|
|
8773
8944
|
.date-range-default { display: flex; flex-direction: row; gap: 16px; }
|
|
8774
8945
|
`;
|
|
8775
|
-
let I5 =
|
|
8946
|
+
let I5 = vt;
|
|
8776
8947
|
customElements.get("anduin-date-range") || customElements.define("anduin-date-range", t1);
|
|
8777
8948
|
customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", I5);
|
|
8778
8949
|
customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", G7);
|
|
@@ -8782,15 +8953,15 @@ var W7 = Object.defineProperty, N = (r, e, t, o) => {
|
|
|
8782
8953
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8783
8954
|
return i && W7(e, t, i), i;
|
|
8784
8955
|
};
|
|
8785
|
-
const
|
|
8956
|
+
const O5 = "anduin-date-input:change", Qt = { M: "month", d: "day", y: "year" };
|
|
8786
8957
|
function Y7(r) {
|
|
8787
8958
|
const e = [];
|
|
8788
8959
|
let t = 0, o = 0;
|
|
8789
8960
|
for (; o < r.length; ) {
|
|
8790
|
-
const i = r[o], n =
|
|
8961
|
+
const i = r[o], n = Qt[i];
|
|
8791
8962
|
if (!n) {
|
|
8792
8963
|
let d = "";
|
|
8793
|
-
for (; o < r.length && !
|
|
8964
|
+
for (; o < r.length && !Qt[r[o]]; ) d += r[o++];
|
|
8794
8965
|
e.push({ literal: d }), t += d.length;
|
|
8795
8966
|
continue;
|
|
8796
8967
|
}
|
|
@@ -8856,7 +9027,7 @@ const i2 = 1, G2 = class G2 extends h {
|
|
|
8856
9027
|
return;
|
|
8857
9028
|
}
|
|
8858
9029
|
const o = this._clampToBounds(e);
|
|
8859
|
-
this._digits = o, this.value = this._composeValue(), this.dispatchEvent(new CustomEvent(
|
|
9030
|
+
this._digits = o, this.value = this._composeValue(), this.dispatchEvent(new CustomEvent(O5, {
|
|
8860
9031
|
detail: this.value,
|
|
8861
9032
|
bubbles: !0,
|
|
8862
9033
|
composed: !0
|
|
@@ -8870,11 +9041,11 @@ const i2 = 1, G2 = class G2 extends h {
|
|
|
8870
9041
|
* carries a full date — a partial format like `MM/dd` has no year to compare.
|
|
8871
9042
|
*/
|
|
8872
9043
|
_clampToBounds(e) {
|
|
8873
|
-
const t =
|
|
9044
|
+
const t = T(this.minDate), o = T(this.maxDate);
|
|
8874
9045
|
if (!t && !o) return e;
|
|
8875
9046
|
const i = this._indexOfType("month"), n = this._indexOfType("day"), l = this._indexOfType("year");
|
|
8876
9047
|
if (i < 0 || n < 0 || l < 0) return e;
|
|
8877
|
-
const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C,
|
|
9048
|
+
const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C, F7(d, c - 1)), f = new Date(d, c - 1, p), H = t && f.getTime() < t.getTime() ? t : o && f.getTime() > o.getTime() ? o : null;
|
|
8878
9049
|
if (!H) {
|
|
8879
9050
|
if (p === C) return e;
|
|
8880
9051
|
const V = [...e];
|
|
@@ -9070,62 +9241,62 @@ G2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, G2.styles
|
|
|
9070
9241
|
.date-input--warning { border-color: var(--color-warning-active); }
|
|
9071
9242
|
.date-input--loading { border-color: var(--color-input); }
|
|
9072
9243
|
`;
|
|
9073
|
-
let
|
|
9244
|
+
let D = G2;
|
|
9074
9245
|
N([
|
|
9075
9246
|
s()
|
|
9076
|
-
],
|
|
9247
|
+
], D.prototype, "format");
|
|
9077
9248
|
N([
|
|
9078
9249
|
s()
|
|
9079
|
-
],
|
|
9250
|
+
], D.prototype, "value");
|
|
9080
9251
|
N([
|
|
9081
9252
|
s()
|
|
9082
|
-
],
|
|
9253
|
+
], D.prototype, "size");
|
|
9083
9254
|
N([
|
|
9084
9255
|
s({ type: Boolean })
|
|
9085
|
-
],
|
|
9256
|
+
], D.prototype, "disabled");
|
|
9086
9257
|
N([
|
|
9087
9258
|
s({ type: Boolean })
|
|
9088
|
-
],
|
|
9259
|
+
], D.prototype, "readonly");
|
|
9089
9260
|
N([
|
|
9090
9261
|
s()
|
|
9091
|
-
],
|
|
9262
|
+
], D.prototype, "status");
|
|
9092
9263
|
N([
|
|
9093
9264
|
s({ attribute: "start-icon" })
|
|
9094
|
-
],
|
|
9265
|
+
], D.prototype, "startIcon");
|
|
9095
9266
|
N([
|
|
9096
9267
|
s({ attribute: "min-date" })
|
|
9097
|
-
],
|
|
9268
|
+
], D.prototype, "minDate");
|
|
9098
9269
|
N([
|
|
9099
9270
|
s({ attribute: "max-date" })
|
|
9100
|
-
],
|
|
9271
|
+
], D.prototype, "maxDate");
|
|
9101
9272
|
N([
|
|
9102
9273
|
s()
|
|
9103
|
-
],
|
|
9274
|
+
], D.prototype, "inputid");
|
|
9104
9275
|
N([
|
|
9105
9276
|
b()
|
|
9106
|
-
],
|
|
9277
|
+
], D.prototype, "_digits");
|
|
9107
9278
|
N([
|
|
9108
9279
|
b()
|
|
9109
|
-
],
|
|
9280
|
+
], D.prototype, "_active");
|
|
9110
9281
|
N([
|
|
9111
9282
|
b()
|
|
9112
|
-
],
|
|
9283
|
+
], D.prototype, "_buffer");
|
|
9113
9284
|
N([
|
|
9114
|
-
|
|
9115
|
-
],
|
|
9116
|
-
customElements.get("anduin-date-input") || customElements.define("anduin-date-input",
|
|
9285
|
+
R("input")
|
|
9286
|
+
], D.prototype, "_inputEl");
|
|
9287
|
+
customElements.get("anduin-date-input") || customElements.define("anduin-date-input", D);
|
|
9117
9288
|
var q7 = Object.defineProperty, j = (r, e, t, o) => {
|
|
9118
9289
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
9119
9290
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
9120
9291
|
return i && q7(e, t, i), i;
|
|
9121
9292
|
};
|
|
9122
|
-
const X7 = "anduin-date-picker:change", $
|
|
9293
|
+
const X7 = "anduin-date-picker:change", $4 = { M: "month", d: "day", y: "year" };
|
|
9123
9294
|
function J7(r, e) {
|
|
9124
9295
|
if (!r) return null;
|
|
9125
9296
|
const t = {};
|
|
9126
9297
|
let o = 0, i = 0;
|
|
9127
9298
|
for (; i < e.length; ) {
|
|
9128
|
-
const d = e[i], c = $
|
|
9299
|
+
const d = e[i], c = $4[d];
|
|
9129
9300
|
if (!c) {
|
|
9130
9301
|
i++, o++;
|
|
9131
9302
|
continue;
|
|
@@ -9149,7 +9320,7 @@ function Q7(r, e) {
|
|
|
9149
9320
|
};
|
|
9150
9321
|
let o = "", i = 0;
|
|
9151
9322
|
for (; i < e.length; ) {
|
|
9152
|
-
const n = e[i], l = $
|
|
9323
|
+
const n = e[i], l = $4[n];
|
|
9153
9324
|
if (!l) {
|
|
9154
9325
|
o += n, i++;
|
|
9155
9326
|
continue;
|
|
@@ -9161,7 +9332,7 @@ function Q7(r, e) {
|
|
|
9161
9332
|
}
|
|
9162
9333
|
return o;
|
|
9163
9334
|
}
|
|
9164
|
-
const
|
|
9335
|
+
const bt = class bt extends h {
|
|
9165
9336
|
constructor() {
|
|
9166
9337
|
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) => {
|
|
9167
9338
|
e.stopPropagation(), this._open = e.detail;
|
|
@@ -9169,7 +9340,7 @@ const b4 = class b4 extends h {
|
|
|
9169
9340
|
e.stopPropagation(), this._emit(e.detail);
|
|
9170
9341
|
}, this._onCalendarChange = (e) => {
|
|
9171
9342
|
e.stopPropagation();
|
|
9172
|
-
const t =
|
|
9343
|
+
const t = T(e.detail);
|
|
9173
9344
|
t && (this._emit(Q7(t, this.format)), this._closePopover());
|
|
9174
9345
|
}, this._onKeyDown = (e) => {
|
|
9175
9346
|
var t;
|
|
@@ -9179,10 +9350,10 @@ const b4 = class b4 extends h {
|
|
|
9179
9350
|
};
|
|
9180
9351
|
}
|
|
9181
9352
|
connectedCallback() {
|
|
9182
|
-
super.connectedCallback(), this.addEventListener(
|
|
9353
|
+
super.connectedCallback(), this.addEventListener(O5, this._onInputChange), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(b5, this._onPopoverOpenChange), this.addEventListener("keydown", this._onKeyDown);
|
|
9183
9354
|
}
|
|
9184
9355
|
disconnectedCallback() {
|
|
9185
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
9356
|
+
super.disconnectedCallback(), this.removeEventListener(O5, this._onInputChange), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(b5, this._onPopoverOpenChange), this.removeEventListener("keydown", this._onKeyDown);
|
|
9186
9357
|
}
|
|
9187
9358
|
_closePopover() {
|
|
9188
9359
|
this._popoverEl && (this._popoverEl.open = !1), this._open = !1;
|
|
@@ -9237,7 +9408,7 @@ const b4 = class b4 extends h {
|
|
|
9237
9408
|
`;
|
|
9238
9409
|
}
|
|
9239
9410
|
};
|
|
9240
|
-
|
|
9411
|
+
bt.styles = g`
|
|
9241
9412
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
9242
9413
|
|
|
9243
9414
|
.datepicker { display: block; }
|
|
@@ -9247,56 +9418,56 @@ b4.styles = g`
|
|
|
9247
9418
|
/* The popover contributes 8px; the calendar reads better with 16px total. */
|
|
9248
9419
|
.datepicker__panel { padding: 8px; display: flex; flex-direction: column; }
|
|
9249
9420
|
`;
|
|
9250
|
-
let
|
|
9421
|
+
let P = bt;
|
|
9251
9422
|
j([
|
|
9252
9423
|
s()
|
|
9253
|
-
],
|
|
9424
|
+
], P.prototype, "format");
|
|
9254
9425
|
j([
|
|
9255
9426
|
s()
|
|
9256
|
-
],
|
|
9427
|
+
], P.prototype, "value");
|
|
9257
9428
|
j([
|
|
9258
9429
|
s()
|
|
9259
|
-
],
|
|
9430
|
+
], P.prototype, "size");
|
|
9260
9431
|
j([
|
|
9261
9432
|
s({ type: Boolean })
|
|
9262
|
-
],
|
|
9433
|
+
], P.prototype, "disabled");
|
|
9263
9434
|
j([
|
|
9264
9435
|
s({ type: Boolean })
|
|
9265
|
-
],
|
|
9436
|
+
], P.prototype, "readonly");
|
|
9266
9437
|
j([
|
|
9267
9438
|
s()
|
|
9268
|
-
],
|
|
9439
|
+
], P.prototype, "status");
|
|
9269
9440
|
j([
|
|
9270
9441
|
s({ attribute: "start-icon" })
|
|
9271
|
-
],
|
|
9442
|
+
], P.prototype, "startIcon");
|
|
9272
9443
|
j([
|
|
9273
9444
|
s({ attribute: "min-date" })
|
|
9274
|
-
],
|
|
9445
|
+
], P.prototype, "minDate");
|
|
9275
9446
|
j([
|
|
9276
9447
|
s({ attribute: "max-date" })
|
|
9277
|
-
],
|
|
9448
|
+
], P.prototype, "maxDate");
|
|
9278
9449
|
j([
|
|
9279
9450
|
s()
|
|
9280
|
-
],
|
|
9451
|
+
], P.prototype, "placement");
|
|
9281
9452
|
j([
|
|
9282
9453
|
s()
|
|
9283
|
-
],
|
|
9454
|
+
], P.prototype, "inputid");
|
|
9284
9455
|
j([
|
|
9285
9456
|
b()
|
|
9286
|
-
],
|
|
9457
|
+
], P.prototype, "_open");
|
|
9287
9458
|
j([
|
|
9288
|
-
|
|
9289
|
-
],
|
|
9459
|
+
R("anduin-date-input")
|
|
9460
|
+
], P.prototype, "_inputEl");
|
|
9290
9461
|
j([
|
|
9291
|
-
|
|
9292
|
-
],
|
|
9293
|
-
customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker",
|
|
9462
|
+
R("anduin-popover")
|
|
9463
|
+
], P.prototype, "_popoverEl");
|
|
9464
|
+
customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker", P);
|
|
9294
9465
|
var e0 = Object.defineProperty, L = (r, e, t, o) => {
|
|
9295
9466
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
9296
9467
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
9297
9468
|
return i && e0(e, t, i), i;
|
|
9298
9469
|
};
|
|
9299
|
-
const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-table:row-click", n0 = "anduin-table:selection-change", r0 = "anduin-table:cell-context-menu", l0 = "anduin-table:row-expand", s0 = "anduin-table:row-collapse", a0 = "anduin-table:group-toggle",
|
|
9470
|
+
const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-table:row-click", n0 = "anduin-table:selection-change", r0 = "anduin-table:cell-context-menu", l0 = "anduin-table:row-expand", s0 = "anduin-table:row-collapse", a0 = "anduin-table:group-toggle", e4 = "anduin-table:column-resize", t4 = 40, n1 = (r) => r.type === "selection", C1 = (r, e) => {
|
|
9300
9471
|
if (!e) return;
|
|
9301
9472
|
let t = r;
|
|
9302
9473
|
for (const o of e.split(".")) {
|
|
@@ -9304,7 +9475,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9304
9475
|
t = t[o];
|
|
9305
9476
|
}
|
|
9306
9477
|
return t;
|
|
9307
|
-
}, d0 = (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" }),
|
|
9478
|
+
}, d0 = (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" }), mt = class mt extends h {
|
|
9308
9479
|
constructor() {
|
|
9309
9480
|
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 = () => {
|
|
9310
9481
|
this.isDraggingRange = !1;
|
|
@@ -9320,7 +9491,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9320
9491
|
}));
|
|
9321
9492
|
}, this.onResizeEnd = (e) => {
|
|
9322
9493
|
const t = this.resizeDrag;
|
|
9323
|
-
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(
|
|
9494
|
+
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(e4, {
|
|
9324
9495
|
detail: { column: e, field: t.key, width: t.width },
|
|
9325
9496
|
bubbles: !0,
|
|
9326
9497
|
composed: !0
|
|
@@ -9652,7 +9823,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9652
9823
|
*/
|
|
9653
9824
|
fitColumnsMinWidth() {
|
|
9654
9825
|
return this.layout !== "fit-columns" || !this.columns.some((e) => e.minWidth) ? 0 : this.columns.reduce((e, t, o) => {
|
|
9655
|
-
const i = n1(t) && !t.width && !t.minWidth ?
|
|
9826
|
+
const i = n1(t) && !t.width && !t.minWidth ? t4 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
|
|
9656
9827
|
return e + i;
|
|
9657
9828
|
}, 0);
|
|
9658
9829
|
}
|
|
@@ -9678,7 +9849,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9678
9849
|
const i = this.columnKey(t, o);
|
|
9679
9850
|
if (this.resizedWidths[i] === void 0) return;
|
|
9680
9851
|
const n = { ...this.resizedWidths };
|
|
9681
|
-
delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(
|
|
9852
|
+
delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(e4, {
|
|
9682
9853
|
detail: { column: t, field: i, width: null },
|
|
9683
9854
|
bubbles: !0,
|
|
9684
9855
|
composed: !0
|
|
@@ -9722,17 +9893,17 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9722
9893
|
></span>
|
|
9723
9894
|
` : u;
|
|
9724
9895
|
if (n1(e)) {
|
|
9725
|
-
const v = this.renderSelectableRows, x = this.renderSelectedKeys, w = v.filter((o1) => x.has(o1.key)).length,
|
|
9726
|
-
areAllRowsSelected:
|
|
9896
|
+
const v = this.renderSelectableRows, x = this.renderSelectedKeys, w = v.filter((o1) => x.has(o1.key)).length, B = v.length > 0 && w === v.length, W = w > 0 && !B, Q1 = e.renderHeader ? e.renderHeader({
|
|
9897
|
+
areAllRowsSelected: B,
|
|
9727
9898
|
hasSelectedRow: w > 0,
|
|
9728
9899
|
onChange: (o1) => this.toggleAllRows(o1)
|
|
9729
9900
|
}) : a`
|
|
9730
9901
|
<anduin-checkbox
|
|
9731
|
-
.checked=${
|
|
9902
|
+
.checked=${B}
|
|
9732
9903
|
.indeterminate=${W}
|
|
9733
|
-
aria-label="${
|
|
9904
|
+
aria-label="${B ? "Deselect all rows" : "Select all rows"}"
|
|
9734
9905
|
@anduin-checkbox:change=${(o1) => {
|
|
9735
|
-
o1.stopPropagation(), this.toggleAllRows(!
|
|
9906
|
+
o1.stopPropagation(), this.toggleAllRows(!B);
|
|
9736
9907
|
}}
|
|
9737
9908
|
></anduin-checkbox>
|
|
9738
9909
|
`;
|
|
@@ -9746,7 +9917,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9746
9917
|
><div class="${C}">${Q1}</div>${f}</th>
|
|
9747
9918
|
`;
|
|
9748
9919
|
}
|
|
9749
|
-
const H = this.sortField === e.field, m = H ? this.sortDirection : null, V = e.renderHeader ? e.renderHeader({ column: e, sortDirection: m }) : a`<span class="table__header-text">${e.title ?? ""}</span>`,
|
|
9920
|
+
const H = this.sortField === e.field, m = H ? this.sortDirection : null, V = e.renderHeader ? e.renderHeader({ column: e, sortDirection: m }) : a`<span class="table__header-text">${e.title ?? ""}</span>`, _ = e.isSortable ? a`
|
|
9750
9921
|
<anduin-icon
|
|
9751
9922
|
class="table__sort-icon ${H ? "table__sort-icon--active" : ""}"
|
|
9752
9923
|
name="${m === "desc" ? "caretDown" : "caretUp"}"
|
|
@@ -9766,7 +9937,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9766
9937
|
@keydown=${(v) => {
|
|
9767
9938
|
e.isSortable && (v.key !== "Enter" && v.key !== " " || (v.preventDefault(), this.onHeaderClick(e)));
|
|
9768
9939
|
}}
|
|
9769
|
-
><div class="${C}">${V}${
|
|
9940
|
+
><div class="${C}">${V}${_}</div>${f}</th>
|
|
9770
9941
|
`;
|
|
9771
9942
|
}
|
|
9772
9943
|
renderCell(e, t, o, i) {
|
|
@@ -9780,10 +9951,10 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9780
9951
|
this.sizingClass(o, i)
|
|
9781
9952
|
].filter(Boolean).join(" "), C = this.cellStyle(o, i);
|
|
9782
9953
|
if (n1(o)) {
|
|
9783
|
-
const V = this.renderSelectedKeys.has(e.key),
|
|
9954
|
+
const V = this.renderSelectedKeys.has(e.key), _ = this.rowIsDisabled(e.data), v = (w) => this.setRowSelected(e, w), x = o.renderCell ? o.renderCell({ data: e.data, isChecked: V, isDisabled: _, onChange: v }) : a`
|
|
9784
9955
|
<anduin-checkbox
|
|
9785
9956
|
.checked=${V}
|
|
9786
|
-
.disabled=${
|
|
9957
|
+
.disabled=${_}
|
|
9787
9958
|
aria-label="${V ? "Deselect row" : "Select row"}"
|
|
9788
9959
|
@anduin-checkbox:change=${(w) => {
|
|
9789
9960
|
w.stopPropagation(), v(!V);
|
|
@@ -9942,7 +10113,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9942
10113
|
`;
|
|
9943
10114
|
}
|
|
9944
10115
|
};
|
|
9945
|
-
|
|
10116
|
+
mt.styles = g`
|
|
9946
10117
|
:host {
|
|
9947
10118
|
display: flex;
|
|
9948
10119
|
flex-direction: column;
|
|
@@ -10162,7 +10333,7 @@ m4.styles = g`
|
|
|
10162
10333
|
text-align: right;
|
|
10163
10334
|
}
|
|
10164
10335
|
.table__cell--selection {
|
|
10165
|
-
width: ${
|
|
10336
|
+
width: ${t4}px;
|
|
10166
10337
|
padding: 8px 0 8px 12px;
|
|
10167
10338
|
}
|
|
10168
10339
|
|
|
@@ -10312,118 +10483,118 @@ m4.styles = g`
|
|
|
10312
10483
|
cursor: progress;
|
|
10313
10484
|
}
|
|
10314
10485
|
`;
|
|
10315
|
-
let
|
|
10486
|
+
let y = mt;
|
|
10316
10487
|
L([
|
|
10317
10488
|
s({ attribute: !1 })
|
|
10318
|
-
],
|
|
10489
|
+
], y.prototype, "columns");
|
|
10319
10490
|
L([
|
|
10320
10491
|
s({ attribute: !1 })
|
|
10321
|
-
],
|
|
10492
|
+
], y.prototype, "data");
|
|
10322
10493
|
L([
|
|
10323
10494
|
s({ reflect: !0 })
|
|
10324
|
-
],
|
|
10495
|
+
], y.prototype, "layout");
|
|
10325
10496
|
L([
|
|
10326
10497
|
s({ attribute: "render-mode", reflect: !0 })
|
|
10327
|
-
],
|
|
10498
|
+
], y.prototype, "renderMode");
|
|
10328
10499
|
L([
|
|
10329
10500
|
s({ type: Number, attribute: "row-height" })
|
|
10330
|
-
],
|
|
10501
|
+
], y.prototype, "rowHeight");
|
|
10331
10502
|
L([
|
|
10332
10503
|
s()
|
|
10333
|
-
],
|
|
10504
|
+
], y.prototype, "height");
|
|
10334
10505
|
L([
|
|
10335
10506
|
s({ attribute: "max-height" })
|
|
10336
|
-
],
|
|
10507
|
+
], y.prototype, "maxHeight");
|
|
10337
10508
|
L([
|
|
10338
10509
|
s({ attribute: "min-height" })
|
|
10339
|
-
],
|
|
10510
|
+
], y.prototype, "minHeight");
|
|
10340
10511
|
L([
|
|
10341
10512
|
s({
|
|
10342
10513
|
attribute: "resizable-columns",
|
|
10343
10514
|
converter: (r) => r !== "false"
|
|
10344
10515
|
})
|
|
10345
|
-
],
|
|
10516
|
+
], y.prototype, "resizableColumns");
|
|
10346
10517
|
L([
|
|
10347
10518
|
s({ type: Boolean, attribute: "hide-header", reflect: !0 })
|
|
10348
|
-
],
|
|
10519
|
+
], y.prototype, "hideHeader");
|
|
10349
10520
|
L([
|
|
10350
10521
|
s({ type: Boolean, reflect: !0 })
|
|
10351
|
-
],
|
|
10522
|
+
], y.prototype, "loading");
|
|
10352
10523
|
L([
|
|
10353
10524
|
s({ reflect: !0 })
|
|
10354
|
-
],
|
|
10525
|
+
], y.prototype, "selectable");
|
|
10355
10526
|
L([
|
|
10356
10527
|
s({ attribute: "index-column" })
|
|
10357
|
-
],
|
|
10528
|
+
], y.prototype, "indexColumn");
|
|
10358
10529
|
L([
|
|
10359
10530
|
s({ attribute: "column-align" })
|
|
10360
|
-
],
|
|
10531
|
+
], y.prototype, "columnAlign");
|
|
10361
10532
|
L([
|
|
10362
10533
|
s({ attribute: "column-vertical-align" })
|
|
10363
|
-
],
|
|
10534
|
+
], y.prototype, "columnVerticalAlign");
|
|
10364
10535
|
L([
|
|
10365
10536
|
s({ attribute: "sort-field" })
|
|
10366
|
-
],
|
|
10537
|
+
], y.prototype, "sortField");
|
|
10367
10538
|
L([
|
|
10368
10539
|
s({ attribute: "sort-direction" })
|
|
10369
|
-
],
|
|
10540
|
+
], y.prototype, "sortDirection");
|
|
10370
10541
|
L([
|
|
10371
10542
|
s({ type: Boolean, attribute: "data-tree", reflect: !0 })
|
|
10372
|
-
],
|
|
10543
|
+
], y.prototype, "dataTree");
|
|
10373
10544
|
L([
|
|
10374
10545
|
s({ attribute: "tree-children-field" })
|
|
10375
|
-
],
|
|
10546
|
+
], y.prototype, "treeChildrenField");
|
|
10376
10547
|
L([
|
|
10377
10548
|
s({ type: Number, attribute: "tree-child-indent" })
|
|
10378
|
-
],
|
|
10549
|
+
], y.prototype, "treeChildIndent");
|
|
10379
10550
|
L([
|
|
10380
10551
|
s({ attribute: "group-by" })
|
|
10381
|
-
],
|
|
10552
|
+
], y.prototype, "groupBy");
|
|
10382
10553
|
L([
|
|
10383
10554
|
s({ attribute: !1 })
|
|
10384
|
-
],
|
|
10555
|
+
], y.prototype, "selectedRows");
|
|
10385
10556
|
L([
|
|
10386
10557
|
s({ attribute: !1 })
|
|
10387
|
-
],
|
|
10558
|
+
], y.prototype, "isRowDisabled");
|
|
10388
10559
|
L([
|
|
10389
10560
|
s({ attribute: !1 })
|
|
10390
|
-
],
|
|
10561
|
+
], y.prototype, "onStartExpanded");
|
|
10391
10562
|
L([
|
|
10392
10563
|
s({ attribute: !1 })
|
|
10393
|
-
],
|
|
10564
|
+
], y.prototype, "rowClass");
|
|
10394
10565
|
L([
|
|
10395
10566
|
s({ attribute: !1 })
|
|
10396
|
-
],
|
|
10567
|
+
], y.prototype, "renderGroupHeader");
|
|
10397
10568
|
L([
|
|
10398
10569
|
b()
|
|
10399
|
-
],
|
|
10570
|
+
], y.prototype, "expandedKeys");
|
|
10400
10571
|
L([
|
|
10401
10572
|
b()
|
|
10402
|
-
],
|
|
10573
|
+
], y.prototype, "collapsedGroups");
|
|
10403
10574
|
L([
|
|
10404
10575
|
b()
|
|
10405
|
-
],
|
|
10576
|
+
], y.prototype, "virtualScrollTop");
|
|
10406
10577
|
L([
|
|
10407
10578
|
b()
|
|
10408
|
-
],
|
|
10579
|
+
], y.prototype, "viewportHeight");
|
|
10409
10580
|
L([
|
|
10410
10581
|
b()
|
|
10411
|
-
],
|
|
10582
|
+
], y.prototype, "scrolledX");
|
|
10412
10583
|
L([
|
|
10413
10584
|
b()
|
|
10414
|
-
],
|
|
10585
|
+
], y.prototype, "scrollableXEnd");
|
|
10415
10586
|
L([
|
|
10416
10587
|
b()
|
|
10417
|
-
],
|
|
10588
|
+
], y.prototype, "resizedWidths");
|
|
10418
10589
|
L([
|
|
10419
10590
|
b()
|
|
10420
|
-
],
|
|
10421
|
-
customElements.get("anduin-table") || customElements.define("anduin-table",
|
|
10591
|
+
], y.prototype, "resizingKey");
|
|
10592
|
+
customElements.get("anduin-table") || customElements.define("anduin-table", y);
|
|
10422
10593
|
export {
|
|
10423
10594
|
A5 as $,
|
|
10424
10595
|
N1 as A,
|
|
10425
10596
|
$ as B,
|
|
10426
|
-
|
|
10597
|
+
M as C,
|
|
10427
10598
|
P2 as D,
|
|
10428
10599
|
$1 as E,
|
|
10429
10600
|
G1 as F,
|
|
@@ -10441,39 +10612,39 @@ export {
|
|
|
10441
10612
|
K1 as R,
|
|
10442
10613
|
Y1 as S,
|
|
10443
10614
|
W1 as T,
|
|
10444
|
-
|
|
10615
|
+
F2 as U,
|
|
10445
10616
|
E5 as V,
|
|
10446
10617
|
P5 as W,
|
|
10447
10618
|
B5 as X,
|
|
10448
10619
|
z5 as Y,
|
|
10449
|
-
|
|
10620
|
+
O2 as Z,
|
|
10450
10621
|
S5 as _,
|
|
10451
10622
|
e1 as a,
|
|
10452
10623
|
l5 as a$,
|
|
10453
10624
|
I2 as a0,
|
|
10454
10625
|
D5 as a1,
|
|
10455
|
-
|
|
10456
|
-
|
|
10626
|
+
y1 as a2,
|
|
10627
|
+
T5 as a3,
|
|
10457
10628
|
r1 as a4,
|
|
10458
10629
|
g2 as a5,
|
|
10459
10630
|
h2 as a6,
|
|
10460
|
-
|
|
10631
|
+
k as a7,
|
|
10461
10632
|
w2 as a8,
|
|
10462
10633
|
L2 as a9,
|
|
10463
|
-
|
|
10634
|
+
O5 as aA,
|
|
10464
10635
|
X7 as aB,
|
|
10465
10636
|
U7 as aC,
|
|
10466
10637
|
r5 as aD,
|
|
10467
10638
|
l2 as aE,
|
|
10468
|
-
|
|
10469
|
-
|
|
10639
|
+
Gt as aF,
|
|
10640
|
+
m4 as aG,
|
|
10470
10641
|
f1 as aH,
|
|
10471
10642
|
p7 as aI,
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10643
|
+
S3 as aJ,
|
|
10644
|
+
A3 as aK,
|
|
10645
|
+
z3 as aL,
|
|
10646
|
+
Bt as aM,
|
|
10647
|
+
M3 as aN,
|
|
10477
10648
|
H5 as aO,
|
|
10478
10649
|
t5 as aP,
|
|
10479
10650
|
r2 as aQ,
|
|
@@ -10483,14 +10654,14 @@ export {
|
|
|
10483
10654
|
x5 as aU,
|
|
10484
10655
|
v5 as aV,
|
|
10485
10656
|
b5 as aW,
|
|
10486
|
-
|
|
10657
|
+
y5 as aX,
|
|
10487
10658
|
r7 as aY,
|
|
10488
10659
|
z7 as aZ,
|
|
10489
|
-
|
|
10660
|
+
T7 as a_,
|
|
10490
10661
|
l1 as aa,
|
|
10491
|
-
|
|
10662
|
+
y as ab,
|
|
10492
10663
|
j1 as ac,
|
|
10493
|
-
|
|
10664
|
+
_2 as ad,
|
|
10494
10665
|
U1 as ae,
|
|
10495
10666
|
h5 as af,
|
|
10496
10667
|
Y as ag,
|
|
@@ -10504,49 +10675,49 @@ export {
|
|
|
10504
10675
|
x2 as ao,
|
|
10505
10676
|
X as ap,
|
|
10506
10677
|
J as aq,
|
|
10507
|
-
|
|
10678
|
+
y2 as ar,
|
|
10508
10679
|
p5 as as,
|
|
10509
10680
|
u5 as at,
|
|
10510
|
-
|
|
10681
|
+
T2 as au,
|
|
10511
10682
|
f5 as av,
|
|
10512
|
-
|
|
10683
|
+
h4 as aw,
|
|
10513
10684
|
Z2 as ax,
|
|
10514
|
-
|
|
10515
|
-
|
|
10685
|
+
F5 as ay,
|
|
10686
|
+
x3 as az,
|
|
10516
10687
|
S2 as b,
|
|
10517
10688
|
k7 as b0,
|
|
10518
10689
|
Z7 as b1,
|
|
10519
|
-
|
|
10690
|
+
y7 as b2,
|
|
10520
10691
|
r0 as b3,
|
|
10521
10692
|
i0 as b4,
|
|
10522
|
-
|
|
10693
|
+
e4 as b5,
|
|
10523
10694
|
a0 as b6,
|
|
10524
10695
|
o0 as b7,
|
|
10525
10696
|
s0 as b8,
|
|
10526
10697
|
l0 as b9,
|
|
10527
10698
|
n0 as ba,
|
|
10528
10699
|
t0 as bb,
|
|
10529
|
-
|
|
10530
|
-
|
|
10700
|
+
T3 as bc,
|
|
10701
|
+
w4 as bd,
|
|
10531
10702
|
W2 as be,
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10703
|
+
I3 as bf,
|
|
10704
|
+
P3 as bg,
|
|
10705
|
+
U3 as bh,
|
|
10706
|
+
G3 as bi,
|
|
10536
10707
|
g5 as bj,
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10708
|
+
W3 as bk,
|
|
10709
|
+
K3 as bl,
|
|
10710
|
+
L4 as bm,
|
|
10711
|
+
V4 as bn,
|
|
10541
10712
|
Y5 as bo,
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10713
|
+
y4 as bp,
|
|
10714
|
+
_4 as bq,
|
|
10715
|
+
x4 as br,
|
|
10716
|
+
X3 as bs,
|
|
10546
10717
|
u1 as bt,
|
|
10547
10718
|
x1 as bu,
|
|
10548
|
-
|
|
10549
|
-
|
|
10719
|
+
g4 as bv,
|
|
10720
|
+
T as bw,
|
|
10550
10721
|
g7 as bx,
|
|
10551
10722
|
I1 as by,
|
|
10552
10723
|
p0 as bz,
|
|
@@ -10555,8 +10726,8 @@ export {
|
|
|
10555
10726
|
U as e,
|
|
10556
10727
|
A2 as f,
|
|
10557
10728
|
v1 as g,
|
|
10558
|
-
|
|
10559
|
-
|
|
10729
|
+
D as h,
|
|
10730
|
+
P as i,
|
|
10560
10731
|
t1 as j,
|
|
10561
10732
|
I5 as k,
|
|
10562
10733
|
K7 as l,
|
|
@@ -10566,7 +10737,7 @@ export {
|
|
|
10566
10737
|
D2 as p,
|
|
10567
10738
|
K as q,
|
|
10568
10739
|
w7 as r,
|
|
10569
|
-
|
|
10740
|
+
Z as s,
|
|
10570
10741
|
B2 as t,
|
|
10571
10742
|
a5 as u,
|
|
10572
10743
|
d5 as v,
|