@duyluonganduin/acl-web-components 0.0.61 → 0.0.63
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 +13 -0
- package/dist/acl-web-components.iife.js +45 -17
- package/dist/acl-web-components.js +1 -1
- package/dist/{anduin-table-D6X8sSGF.js → anduin-table-DGYFCUkj.js} +661 -630
- package/dist/{anduin-table-KkQzZaMG.cjs → anduin-table-DhBAEdvs.cjs} +211 -183
- package/dist/jsx.d.ts +2 -0
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +13 -0
- package/dist/react.js +2 -2
- package/package.json +1 -1
|
@@ -45,10 +45,10 @@ const n3 = (r) => new o3(typeof r == "string" ? r : r + "", void 0, j5), g = (r,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnPropertyNames: B3, getOwnPropertySymbols: F3, getPrototypeOf:
|
|
48
|
+
const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnPropertyNames: B3, getOwnPropertySymbols: F3, getPrototypeOf: O3 } = Object, u1 = globalThis, V4 = u1.trustedTypes, I3 = V4 ? V4.emptyScript : "", Y2 = u1.reactiveElementPolyfillSupport, a2 = (r, e) => r, E2 = { toAttribute(r, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
r = r ?
|
|
51
|
+
r = r ? I3 : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -75,7 +75,7 @@ const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnProperty
|
|
|
75
75
|
return t;
|
|
76
76
|
} }, U5 = (r, e) => !A3(r, e), x4 = { attribute: !0, type: String, converter: E2, reflect: !1, useDefault: !1, hasChanged: U5 };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), u1.litPropertyMetadata ?? (u1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
-
let
|
|
78
|
+
let O1 = class extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
81
81
|
}
|
|
@@ -103,13 +103,13 @@ let I1 = class extends HTMLElement {
|
|
|
103
103
|
return this.elementProperties.get(e) ?? x4;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const e =
|
|
106
|
+
if (this.hasOwnProperty(a2("elementProperties"))) return;
|
|
107
|
+
const e = O3(this);
|
|
108
108
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
111
|
+
if (this.hasOwnProperty(a2("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(a2("properties"))) {
|
|
113
113
|
const t = this.properties, o = [...B3(t), ...F3(t)];
|
|
114
114
|
for (const i of o) this.createProperty(i, t[i]);
|
|
115
115
|
}
|
|
@@ -278,15 +278,15 @@ let I1 = class extends HTMLElement {
|
|
|
278
278
|
firstUpdated(e) {
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
|
|
281
|
+
O1.elementStyles = [], O1.shadowRootOptions = { mode: "open" }, O1[a2("elementProperties")] = /* @__PURE__ */ new Map(), O1[a2("finalized")] = /* @__PURE__ */ new Map(), Y2 == null || Y2({ ReactiveElement: O1 }), (u1.reactiveElementVersions ?? (u1.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
|
|
287
|
+
const s2 = globalThis, M4 = (r) => r, z2 = s2.trustedTypes, w4 = z2 ? z2.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, r3 = "$lit$", h1 = `lit$${Math.random().toFixed(9).slice(2)}$`, l3 = "?" + h1, T3 = `<${l3}>`, k1 = document, c2 = () => k1.createComment(""), C2 = (r) => r === null || typeof r != "object" && typeof r != "function", G5 = Array.isArray, N3 = (r) => G5(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", q2 = `[
|
|
288
288
|
\f\r]`, e2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Z4 = /-->/g, k4 = />/g, V1 = RegExp(`>|${q2}(?:([^\\s"'>=/]+)(${q2}*=${q2}*(?:[^
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), R4 = /'/g, $4 = /"/g,
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), R4 = /'/g, $4 = /"/g, a3 = /^(?:script|style|textarea|title)$/i, s3 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), s = s3(1), p2 = s3(2), R1 = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), E4 = /* @__PURE__ */ new WeakMap(), M1 = k1.createTreeWalker(k1, 129);
|
|
290
290
|
function d3(r, e) {
|
|
291
291
|
if (!G5(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
292
|
return w4 !== void 0 ? w4.createHTML(e) : e;
|
|
@@ -297,7 +297,7 @@ const j3 = (r, e) => {
|
|
|
297
297
|
for (let d = 0; d < t; d++) {
|
|
298
298
|
const c = r[d];
|
|
299
299
|
let C, h, f = -1, y = 0;
|
|
300
|
-
for (; y < c.length && (l.lastIndex = y, h = l.exec(c), h !== null); ) y = l.lastIndex, l === e2 ? h[1] === "!--" ? l = Z4 : h[1] !== void 0 ? l = k4 : h[2] !== void 0 ? (
|
|
300
|
+
for (; y < c.length && (l.lastIndex = y, h = l.exec(c), h !== null); ) y = l.lastIndex, l === e2 ? h[1] === "!--" ? l = Z4 : h[1] !== void 0 ? l = k4 : h[2] !== void 0 ? (a3.test(h[2]) && (i = RegExp("</" + h[2], "g")), l = V1) : h[3] !== void 0 && (l = V1) : l === V1 ? h[0] === ">" ? (l = i ?? e2, f = -1) : h[1] === void 0 ? f = -2 : (f = l.lastIndex - h[2].length, C = h[1], l = h[3] === void 0 ? V1 : h[3] === '"' ? $4 : R4) : l === $4 || l === R4 ? l = V1 : l === Z4 || l === k4 ? l = e2 : (l = V1, i = void 0);
|
|
301
301
|
const b = l === V1 && r[d + 1].startsWith("/>") ? " " : "";
|
|
302
302
|
n += l === e2 ? c + T3 : f >= 0 ? (o.push(C), c.slice(0, f) + r3 + c.slice(f) + h1 + b) : c + h1 + (f === -2 ? d : b);
|
|
303
303
|
}
|
|
@@ -319,7 +319,7 @@ class h2 {
|
|
|
319
319
|
const y = h[l++], b = i.getAttribute(f).split(h1), V = /([.?@])?(.*)/.exec(y);
|
|
320
320
|
c.push({ type: 1, index: n, name: V[2], strings: b, ctor: V[1] === "." ? G3 : V[1] === "?" ? K3 : V[1] === "@" ? W3 : K2 }), i.removeAttribute(f);
|
|
321
321
|
} else f.startsWith(h1) && (c.push({ type: 6, index: n }), i.removeAttribute(f));
|
|
322
|
-
if (
|
|
322
|
+
if (a3.test(i.tagName)) {
|
|
323
323
|
const f = i.textContent.split(h1), y = f.length - 1;
|
|
324
324
|
if (y > 0) {
|
|
325
325
|
i.textContent = z2 ? z2.emptyScript : "";
|
|
@@ -504,8 +504,8 @@ class Y3 {
|
|
|
504
504
|
T1(this, e);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
const X2 =
|
|
508
|
-
X2 == null || X2(h2, k2), (
|
|
507
|
+
const X2 = s2.litHtmlPolyfillSupport;
|
|
508
|
+
X2 == null || X2(h2, k2), (s2.litHtmlVersions ?? (s2.litHtmlVersions = [])).push("3.3.2");
|
|
509
509
|
const q3 = (r, e, t) => {
|
|
510
510
|
const o = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
511
511
|
let i = o._$litPart$;
|
|
@@ -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 u = class extends
|
|
524
|
+
let u = class extends O1 {
|
|
525
525
|
constructor() {
|
|
526
526
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
527
527
|
}
|
|
@@ -577,7 +577,7 @@ const X3 = { attribute: !0, type: String, converter: E2, reflect: !1, hasChanged
|
|
|
577
577
|
}
|
|
578
578
|
throw Error("Unsupported decorator location: " + o);
|
|
579
579
|
};
|
|
580
|
-
function
|
|
580
|
+
function a(r) {
|
|
581
581
|
return (e, t) => typeof t == "object" ? J3(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;
|
|
@@ -589,7 +589,7 @@ function s(r) {
|
|
|
589
589
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
590
590
|
*/
|
|
591
591
|
function m(r) {
|
|
592
|
-
return
|
|
592
|
+
return a({ ...r, state: !0, attribute: !1 });
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
595
595
|
* @license
|
|
@@ -682,10 +682,10 @@ X5.styles = g`
|
|
|
682
682
|
`;
|
|
683
683
|
let u2 = X5;
|
|
684
684
|
c3([
|
|
685
|
-
|
|
685
|
+
a()
|
|
686
686
|
], u2.prototype, "size");
|
|
687
687
|
c3([
|
|
688
|
-
|
|
688
|
+
a()
|
|
689
689
|
], u2.prototype, "percent");
|
|
690
690
|
customElements.get("anduin-spinner") || customElements.define("anduin-spinner", u2);
|
|
691
691
|
var t7 = Object.defineProperty, C3 = (r, e, t, o) => {
|
|
@@ -755,10 +755,10 @@ J5.styles = g`
|
|
|
755
755
|
`;
|
|
756
756
|
let g2 = J5;
|
|
757
757
|
C3([
|
|
758
|
-
|
|
758
|
+
a({ reflect: !0 })
|
|
759
759
|
], g2.prototype, "size");
|
|
760
760
|
C3([
|
|
761
|
-
|
|
761
|
+
a({ reflect: !0 })
|
|
762
762
|
], g2.prototype, "color");
|
|
763
763
|
customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", g2);
|
|
764
764
|
var o7 = Object.defineProperty, K5 = (r, e, t, o) => {
|
|
@@ -809,7 +809,7 @@ const p3 = [
|
|
|
809
809
|
originY: 39.0175,
|
|
810
810
|
delay: -0.97
|
|
811
811
|
}
|
|
812
|
-
], S4 = 20, A4 = 5, n7 = 900, r7 = 160, D4 = 2, l7 = "cubic-bezier(0.22, 0.61, 0.36, 1)", Q2 = 180, o2 = "ai-spinner--loading", n2 = "ai-spinner--settling", w1 = "ai-spinner__segment",
|
|
812
|
+
], S4 = 20, A4 = 5, n7 = 900, r7 = 160, D4 = 2, l7 = "cubic-bezier(0.22, 0.61, 0.36, 1)", Q2 = 180, o2 = "ai-spinner--loading", n2 = "ai-spinner--settling", w1 = "ai-spinner__segment", a7 = p3.map(
|
|
813
813
|
(r) => `
|
|
814
814
|
.${w1}--${r.index} {
|
|
815
815
|
transform-origin: ${r.originX}px ${r.originY}px;
|
|
@@ -827,7 +827,7 @@ const p3 = [
|
|
|
827
827
|
}
|
|
828
828
|
render() {
|
|
829
829
|
const e = this.size > 0 ? this.size : S4;
|
|
830
|
-
return
|
|
830
|
+
return s`
|
|
831
831
|
<div class="ai-spinner">
|
|
832
832
|
<svg
|
|
833
833
|
class="ai-spinner__logo"
|
|
@@ -958,7 +958,7 @@ Q5.styles = g`
|
|
|
958
958
|
animation: ai-spinner-pulse 1.52s linear infinite;
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
-
${n3(
|
|
961
|
+
${n3(a7)}
|
|
962
962
|
|
|
963
963
|
@keyframes ai-spinner-spin {
|
|
964
964
|
to {
|
|
@@ -999,10 +999,10 @@ Q5.styles = g`
|
|
|
999
999
|
`;
|
|
1000
1000
|
let N1 = Q5;
|
|
1001
1001
|
K5([
|
|
1002
|
-
|
|
1002
|
+
a({ reflect: !0 })
|
|
1003
1003
|
], N1.prototype, "state");
|
|
1004
1004
|
K5([
|
|
1005
|
-
|
|
1005
|
+
a({ type: Number, reflect: !0 })
|
|
1006
1006
|
], N1.prototype, "size");
|
|
1007
1007
|
K5([
|
|
1008
1008
|
k(".ai-spinner")
|
|
@@ -1370,10 +1370,10 @@ const P4 = {
|
|
|
1370
1370
|
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" }],
|
|
1371
1371
|
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" }]
|
|
1372
1372
|
};
|
|
1373
|
-
var
|
|
1373
|
+
var s7 = Object.defineProperty, h3 = (r, e, t, o) => {
|
|
1374
1374
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1375
1375
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1376
|
-
return i &&
|
|
1376
|
+
return i && s7(e, t, i), i;
|
|
1377
1377
|
};
|
|
1378
1378
|
const ee = class ee extends u {
|
|
1379
1379
|
constructor() {
|
|
@@ -1409,10 +1409,10 @@ ee.styles = g`
|
|
|
1409
1409
|
`;
|
|
1410
1410
|
let f2 = ee;
|
|
1411
1411
|
h3([
|
|
1412
|
-
|
|
1412
|
+
a()
|
|
1413
1413
|
], f2.prototype, "name");
|
|
1414
1414
|
h3([
|
|
1415
|
-
|
|
1415
|
+
a({ type: Number })
|
|
1416
1416
|
], f2.prototype, "size");
|
|
1417
1417
|
customElements.get("anduin-icon") || customElements.define("anduin-icon", f2);
|
|
1418
1418
|
var d7 = Object.defineProperty, c7 = (r, e, t, o) => {
|
|
@@ -1467,13 +1467,13 @@ const te = class te extends u {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
render() {
|
|
1469
1469
|
const e = g3(this.variant);
|
|
1470
|
-
return
|
|
1470
|
+
return s`<div class="badge ${e}" part="badge"><slot></slot></div>`;
|
|
1471
1471
|
}
|
|
1472
1472
|
};
|
|
1473
1473
|
te.styles = [u3];
|
|
1474
1474
|
let S2 = te;
|
|
1475
1475
|
c7([
|
|
1476
|
-
|
|
1476
|
+
a()
|
|
1477
1477
|
], S2.prototype, "variant");
|
|
1478
1478
|
customElements.get("anduin-badge") || customElements.define("anduin-badge", S2);
|
|
1479
1479
|
var C7 = Object.defineProperty, f3 = (r, e, t, o) => {
|
|
@@ -1495,19 +1495,19 @@ const ie = class ie extends u {
|
|
|
1495
1495
|
t ? "badge--hidden" : "",
|
|
1496
1496
|
o ? "badge--square" : ""
|
|
1497
1497
|
].filter(Boolean).join(" ");
|
|
1498
|
-
return
|
|
1498
|
+
return s`<div class="${i}" part="badge">${this.formatCount(this.count)}</div>`;
|
|
1499
1499
|
}
|
|
1500
1500
|
};
|
|
1501
1501
|
ie.styles = [u3];
|
|
1502
1502
|
let v2 = ie;
|
|
1503
1503
|
f3([
|
|
1504
|
-
|
|
1504
|
+
a()
|
|
1505
1505
|
], v2.prototype, "variant");
|
|
1506
1506
|
f3([
|
|
1507
|
-
|
|
1507
|
+
a({ type: Number })
|
|
1508
1508
|
], v2.prototype, "count");
|
|
1509
1509
|
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", v2);
|
|
1510
|
-
var p7 = Object.defineProperty,
|
|
1510
|
+
var p7 = Object.defineProperty, F = (r, e, t, o) => {
|
|
1511
1511
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1512
1512
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1513
1513
|
return i && p7(e, t, i), i;
|
|
@@ -1549,15 +1549,15 @@ const oe = class oe extends u {
|
|
|
1549
1549
|
this.loading ? "button--loading" : "",
|
|
1550
1550
|
this.selected ? "button--selected" : "",
|
|
1551
1551
|
this.iconOnly && this.appearance !== "text" && !this.fullWidth ? "button--icon-only" : ""
|
|
1552
|
-
].filter(Boolean).join(" "), i =
|
|
1552
|
+
].filter(Boolean).join(" "), i = s`
|
|
1553
1553
|
<div class="button__content button__content--${t}">
|
|
1554
|
-
${this.startIcon ?
|
|
1554
|
+
${this.startIcon ? s`<anduin-icon name="${this.startIcon}" size="${this.iconSize()}"></anduin-icon>` : p}
|
|
1555
1555
|
<slot @slotchange=${this.onSlotChange}></slot>
|
|
1556
|
-
${this.endIcon ?
|
|
1556
|
+
${this.endIcon ? s`<anduin-icon name="${this.endIcon}" size="${this.iconSize()}"></anduin-icon>` : p}
|
|
1557
1557
|
</div>
|
|
1558
|
-
${this.loading && this.appearance !== "text" ?
|
|
1558
|
+
${this.loading && this.appearance !== "text" ? s`<div class="button__loading"><anduin-spinner size="small"></anduin-spinner></div>` : p}
|
|
1559
1559
|
`;
|
|
1560
|
-
return this.href ?
|
|
1560
|
+
return this.href ? s`
|
|
1561
1561
|
<a
|
|
1562
1562
|
class="${o}"
|
|
1563
1563
|
href="${this.disabled ? "" : this.href}"
|
|
@@ -1566,7 +1566,7 @@ const oe = class oe extends u {
|
|
|
1566
1566
|
download="${this.download || p}"
|
|
1567
1567
|
aria-label="${this.label || p}"
|
|
1568
1568
|
>${i}</a>
|
|
1569
|
-
` :
|
|
1569
|
+
` : s`
|
|
1570
1570
|
<button
|
|
1571
1571
|
type="button"
|
|
1572
1572
|
class="${o}"
|
|
@@ -1689,53 +1689,53 @@ oe.styles = g`
|
|
|
1689
1689
|
.button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
|
|
1690
1690
|
.button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
|
|
1691
1691
|
`;
|
|
1692
|
-
let
|
|
1693
|
-
|
|
1692
|
+
let $ = oe;
|
|
1693
|
+
F([
|
|
1694
1694
|
m()
|
|
1695
|
-
],
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
],
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
],
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
],
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
],
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
],
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
],
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
],
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
],
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
],
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
],
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
],
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
],
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
],
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
],
|
|
1738
|
-
customElements.get("anduin-button") || customElements.define("anduin-button",
|
|
1695
|
+
], $.prototype, "iconOnly");
|
|
1696
|
+
F([
|
|
1697
|
+
a({ converter: (r) => r || "filled" })
|
|
1698
|
+
], $.prototype, "appearance");
|
|
1699
|
+
F([
|
|
1700
|
+
a()
|
|
1701
|
+
], $.prototype, "variant");
|
|
1702
|
+
F([
|
|
1703
|
+
a()
|
|
1704
|
+
], $.prototype, "size");
|
|
1705
|
+
F([
|
|
1706
|
+
a({ type: Boolean })
|
|
1707
|
+
], $.prototype, "disabled");
|
|
1708
|
+
F([
|
|
1709
|
+
a({ type: Boolean })
|
|
1710
|
+
], $.prototype, "loading");
|
|
1711
|
+
F([
|
|
1712
|
+
a({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
1713
|
+
], $.prototype, "fullWidth");
|
|
1714
|
+
F([
|
|
1715
|
+
a({ type: Boolean })
|
|
1716
|
+
], $.prototype, "pill");
|
|
1717
|
+
F([
|
|
1718
|
+
a({ type: Boolean })
|
|
1719
|
+
], $.prototype, "selected");
|
|
1720
|
+
F([
|
|
1721
|
+
a()
|
|
1722
|
+
], $.prototype, "href");
|
|
1723
|
+
F([
|
|
1724
|
+
a({ type: Boolean, attribute: "open-new-tab" })
|
|
1725
|
+
], $.prototype, "openNewTab");
|
|
1726
|
+
F([
|
|
1727
|
+
a()
|
|
1728
|
+
], $.prototype, "download");
|
|
1729
|
+
F([
|
|
1730
|
+
a({ attribute: "start-icon" })
|
|
1731
|
+
], $.prototype, "startIcon");
|
|
1732
|
+
F([
|
|
1733
|
+
a({ attribute: "end-icon" })
|
|
1734
|
+
], $.prototype, "endIcon");
|
|
1735
|
+
F([
|
|
1736
|
+
a()
|
|
1737
|
+
], $.prototype, "label");
|
|
1738
|
+
customElements.get("anduin-button") || customElements.define("anduin-button", $);
|
|
1739
1739
|
var u7 = Object.defineProperty, g7 = (r, e, t, o) => {
|
|
1740
1740
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1741
1741
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
@@ -1746,7 +1746,7 @@ const ne = class ne extends u {
|
|
|
1746
1746
|
super(...arguments), this.variant = "gray";
|
|
1747
1747
|
}
|
|
1748
1748
|
render() {
|
|
1749
|
-
return
|
|
1749
|
+
return s`
|
|
1750
1750
|
<div class="callout callout--${this.variant}" part="callout">
|
|
1751
1751
|
<slot name="icon"></slot>
|
|
1752
1752
|
<div><slot></slot></div>
|
|
@@ -1768,7 +1768,7 @@ ne.styles = g`
|
|
|
1768
1768
|
`;
|
|
1769
1769
|
let A2 = ne;
|
|
1770
1770
|
g7([
|
|
1771
|
-
|
|
1771
|
+
a()
|
|
1772
1772
|
], A2.prototype, "variant");
|
|
1773
1773
|
customElements.get("anduin-callout") || customElements.define("anduin-callout", A2);
|
|
1774
1774
|
var f7 = Object.defineProperty, v3 = (r, e, t, o) => {
|
|
@@ -1794,17 +1794,17 @@ const re = class re extends u {
|
|
|
1794
1794
|
});
|
|
1795
1795
|
}
|
|
1796
1796
|
render() {
|
|
1797
|
-
return this.direction === "vertical" ? this.hasContent ?
|
|
1797
|
+
return this.direction === "vertical" ? this.hasContent ? s`
|
|
1798
1798
|
<div class="divider--vertical">
|
|
1799
1799
|
<div class="divider__line--vertical"></div>
|
|
1800
1800
|
<div><slot @slotchange=${this.onSlotChange}></slot></div>
|
|
1801
1801
|
<div class="divider__line--vertical"></div>
|
|
1802
|
-
</div>` :
|
|
1802
|
+
</div>` : s`<div class="divider--vertical divider--vertical-empty"><slot @slotchange=${this.onSlotChange}></slot></div>` : this.hasContent ? s`
|
|
1803
1803
|
<div class="divider--horizontal">
|
|
1804
1804
|
<div class="divider__line--horizontal"></div>
|
|
1805
1805
|
<div><slot @slotchange=${this.onSlotChange}></slot></div>
|
|
1806
1806
|
<div class="divider__line--horizontal"></div>
|
|
1807
|
-
</div>` :
|
|
1807
|
+
</div>` : s`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
|
|
1808
1808
|
}
|
|
1809
1809
|
};
|
|
1810
1810
|
re.styles = g`
|
|
@@ -1819,7 +1819,7 @@ re.styles = g`
|
|
|
1819
1819
|
`;
|
|
1820
1820
|
let m2 = re;
|
|
1821
1821
|
v3([
|
|
1822
|
-
|
|
1822
|
+
a({ reflect: !0 })
|
|
1823
1823
|
], m2.prototype, "direction");
|
|
1824
1824
|
v3([
|
|
1825
1825
|
m()
|
|
@@ -1835,7 +1835,7 @@ const le = class le extends u {
|
|
|
1835
1835
|
super(...arguments), this.variant = "gray";
|
|
1836
1836
|
}
|
|
1837
1837
|
render() {
|
|
1838
|
-
return
|
|
1838
|
+
return s`<div class="dot dot--${this.variant}" part="dot"></div>`;
|
|
1839
1839
|
}
|
|
1840
1840
|
};
|
|
1841
1841
|
le.styles = g`
|
|
@@ -1849,7 +1849,7 @@ le.styles = g`
|
|
|
1849
1849
|
`;
|
|
1850
1850
|
let D2 = le;
|
|
1851
1851
|
m7([
|
|
1852
|
-
|
|
1852
|
+
a()
|
|
1853
1853
|
], D2.prototype, "variant");
|
|
1854
1854
|
customElements.get("anduin-dot") || customElements.define("anduin-dot", D2);
|
|
1855
1855
|
var b7 = Object.defineProperty, m3 = (r, e, t, o) => {
|
|
@@ -1857,7 +1857,7 @@ var b7 = Object.defineProperty, m3 = (r, e, t, o) => {
|
|
|
1857
1857
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1858
1858
|
return i && b7(e, t, i), i;
|
|
1859
1859
|
};
|
|
1860
|
-
const
|
|
1860
|
+
const ae = class ae extends u {
|
|
1861
1861
|
constructor() {
|
|
1862
1862
|
super(...arguments), this.percent = "", this.height = "medium";
|
|
1863
1863
|
}
|
|
@@ -1865,7 +1865,7 @@ const se = class se extends u {
|
|
|
1865
1865
|
const e = this.height === "large" ? 8 : 3, t = this.percent === "" || this.percent === null;
|
|
1866
1866
|
let o = "";
|
|
1867
1867
|
const i = ["progress__fill"];
|
|
1868
|
-
return t ? i.push("progress__fill--indeterminate") : o = `width: ${Math.max(0, Math.min(1, parseFloat(this.percent) || 0)) * 100}%;`,
|
|
1868
|
+
return t ? i.push("progress__fill--indeterminate") : o = `width: ${Math.max(0, Math.min(1, parseFloat(this.percent) || 0)) * 100}%;`, s`
|
|
1869
1869
|
<div class="progress" style="height: ${e}px;" part="progress">
|
|
1870
1870
|
<div class="${i.join(" ")}" style="${o}"></div>
|
|
1871
1871
|
<div class="progress__background"></div>
|
|
@@ -1873,7 +1873,7 @@ const se = class se extends u {
|
|
|
1873
1873
|
`;
|
|
1874
1874
|
}
|
|
1875
1875
|
};
|
|
1876
|
-
|
|
1876
|
+
ae.styles = g`
|
|
1877
1877
|
:host { display: block; font-family: var(--font-sans); }
|
|
1878
1878
|
.progress { overflow-x: hidden; position: relative; border-radius: 9999px; }
|
|
1879
1879
|
.progress__fill {
|
|
@@ -1889,12 +1889,12 @@ se.styles = g`
|
|
|
1889
1889
|
to { transform: translateX(330%); }
|
|
1890
1890
|
}
|
|
1891
1891
|
`;
|
|
1892
|
-
let b2 =
|
|
1892
|
+
let b2 = ae;
|
|
1893
1893
|
m3([
|
|
1894
|
-
|
|
1894
|
+
a()
|
|
1895
1895
|
], b2.prototype, "percent");
|
|
1896
1896
|
m3([
|
|
1897
|
-
|
|
1897
|
+
a()
|
|
1898
1898
|
], b2.prototype, "height");
|
|
1899
1899
|
customElements.get("anduin-progress") || customElements.define("anduin-progress", b2);
|
|
1900
1900
|
var y7 = Object.defineProperty, q1 = (r, e, t, o) => {
|
|
@@ -1902,7 +1902,7 @@ var y7 = Object.defineProperty, q1 = (r, e, t, o) => {
|
|
|
1902
1902
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1903
1903
|
return i && y7(e, t, i), i;
|
|
1904
1904
|
};
|
|
1905
|
-
const
|
|
1905
|
+
const se = class se extends u {
|
|
1906
1906
|
constructor() {
|
|
1907
1907
|
super(...arguments), this.effect = "pulse", this.shape = "rectangle", this.height = "", this.width = "100%", this.duration = 1500, this.fontSize = "";
|
|
1908
1908
|
}
|
|
@@ -1914,14 +1914,14 @@ const ae = class ae extends u {
|
|
|
1914
1914
|
this.shape === "rectangle" ? "skeleton--rectangle" : "",
|
|
1915
1915
|
this.shape === "text" && this.fontSize ? "skeleton--text" : ""
|
|
1916
1916
|
].filter(Boolean).join(" "), t = this.shape === "text" && this.fontSize ? `--anduin-skeleton-font-size: ${this.fontSize};` : "", o = `${this.height ? `height: ${this.height};` : ""} width: ${this.width};`, i = this.effect === "pulse" ? `animation: skeleton-pulse ${this.duration}ms ease-in-out infinite;` : "";
|
|
1917
|
-
return
|
|
1917
|
+
return s`
|
|
1918
1918
|
<div class="${e}" style="${t} ${o} ${i}" part="skeleton">
|
|
1919
|
-
${this.effect === "wave" ?
|
|
1919
|
+
${this.effect === "wave" ? s`<div class="skeleton__wave" style="animation: skeleton-wave ${this.duration}ms linear infinite;"></div>` : ""}
|
|
1920
1920
|
</div>
|
|
1921
1921
|
`;
|
|
1922
1922
|
}
|
|
1923
1923
|
};
|
|
1924
|
-
|
|
1924
|
+
se.styles = g`
|
|
1925
1925
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1926
1926
|
.skeleton { background-color: var(--color-gray-3); position: relative; overflow: hidden; }
|
|
1927
1927
|
.skeleton--circle { border-radius: 9999px; }
|
|
@@ -1940,24 +1940,24 @@ ae.styles = g`
|
|
|
1940
1940
|
0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
|
|
1941
1941
|
}
|
|
1942
1942
|
`;
|
|
1943
|
-
let r1 =
|
|
1943
|
+
let r1 = se;
|
|
1944
1944
|
q1([
|
|
1945
|
-
|
|
1945
|
+
a()
|
|
1946
1946
|
], r1.prototype, "effect");
|
|
1947
1947
|
q1([
|
|
1948
|
-
|
|
1948
|
+
a()
|
|
1949
1949
|
], r1.prototype, "shape");
|
|
1950
1950
|
q1([
|
|
1951
|
-
|
|
1951
|
+
a()
|
|
1952
1952
|
], r1.prototype, "height");
|
|
1953
1953
|
q1([
|
|
1954
|
-
|
|
1954
|
+
a()
|
|
1955
1955
|
], r1.prototype, "width");
|
|
1956
1956
|
q1([
|
|
1957
|
-
|
|
1957
|
+
a({ type: Number })
|
|
1958
1958
|
], r1.prototype, "duration");
|
|
1959
1959
|
q1([
|
|
1960
|
-
|
|
1960
|
+
a({ attribute: "font-size" })
|
|
1961
1961
|
], r1.prototype, "fontSize");
|
|
1962
1962
|
customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", r1);
|
|
1963
1963
|
var H7 = Object.defineProperty, _7 = (r, e, t, o) => {
|
|
@@ -1970,7 +1970,7 @@ const de = class de extends u {
|
|
|
1970
1970
|
super(...arguments), this.height = "256px";
|
|
1971
1971
|
}
|
|
1972
1972
|
render() {
|
|
1973
|
-
return
|
|
1973
|
+
return s`
|
|
1974
1974
|
<div class="loading-state" style="height: ${this.height};" part="loading-state">
|
|
1975
1975
|
<div class="loading-state__indicator">
|
|
1976
1976
|
<anduin-spinner size="large"></anduin-spinner>
|
|
@@ -1988,7 +1988,7 @@ de.styles = g`
|
|
|
1988
1988
|
`;
|
|
1989
1989
|
let P2 = de;
|
|
1990
1990
|
_7([
|
|
1991
|
-
|
|
1991
|
+
a()
|
|
1992
1992
|
], P2.prototype, "height");
|
|
1993
1993
|
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", P2);
|
|
1994
1994
|
var L7 = Object.defineProperty, W5 = (r, e, t, o) => {
|
|
@@ -2012,7 +2012,7 @@ const b3 = "anduin-field:label-click", f1 = "anduin-field:label-click-coordinate
|
|
|
2012
2012
|
}
|
|
2013
2013
|
render() {
|
|
2014
2014
|
const e = this.orientation === "horizontal";
|
|
2015
|
-
return
|
|
2015
|
+
return s`
|
|
2016
2016
|
<div class="field ${e ? "field--horizontal" : "field--vertical"}" part="field">
|
|
2017
2017
|
<slot></slot>
|
|
2018
2018
|
</div>
|
|
@@ -2027,7 +2027,7 @@ ce.styles = g`
|
|
|
2027
2027
|
`;
|
|
2028
2028
|
let B2 = ce;
|
|
2029
2029
|
W5([
|
|
2030
|
-
|
|
2030
|
+
a()
|
|
2031
2031
|
], B2.prototype, "orientation");
|
|
2032
2032
|
const Ce = class Ce extends u {
|
|
2033
2033
|
constructor() {
|
|
@@ -2044,14 +2044,14 @@ const Ce = class Ce extends u {
|
|
|
2044
2044
|
})));
|
|
2045
2045
|
}
|
|
2046
2046
|
render() {
|
|
2047
|
-
return
|
|
2047
|
+
return s`
|
|
2048
2048
|
<label
|
|
2049
2049
|
class="field-label"
|
|
2050
2050
|
part="label"
|
|
2051
2051
|
for=${this.htmlfor || ""}
|
|
2052
2052
|
@click=${this.onLabelClick}
|
|
2053
2053
|
>
|
|
2054
|
-
<slot></slot>${this.required ?
|
|
2054
|
+
<slot></slot>${this.required ? s`<span class="field-label__required"> *</span>` : ""}
|
|
2055
2055
|
</label>
|
|
2056
2056
|
`;
|
|
2057
2057
|
}
|
|
@@ -2063,24 +2063,24 @@ Ce.styles = g`
|
|
|
2063
2063
|
`;
|
|
2064
2064
|
let y2 = Ce;
|
|
2065
2065
|
W5([
|
|
2066
|
-
|
|
2066
|
+
a()
|
|
2067
2067
|
], y2.prototype, "htmlfor");
|
|
2068
2068
|
W5([
|
|
2069
|
-
|
|
2069
|
+
a({ type: Boolean })
|
|
2070
2070
|
], y2.prototype, "required");
|
|
2071
2071
|
const pe = class pe extends u {
|
|
2072
2072
|
render() {
|
|
2073
|
-
return
|
|
2073
|
+
return s`<div class="field-description" part="description"><slot></slot></div>`;
|
|
2074
2074
|
}
|
|
2075
2075
|
};
|
|
2076
2076
|
pe.styles = g`
|
|
2077
2077
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2078
2078
|
.field-description { display: block; line-height: 16px; font-size: 11px; color: var(--color-gray-7); }
|
|
2079
2079
|
`;
|
|
2080
|
-
let
|
|
2080
|
+
let s5 = pe;
|
|
2081
2081
|
const he = class he extends u {
|
|
2082
2082
|
render() {
|
|
2083
|
-
return
|
|
2083
|
+
return s`<div class="field-error" part="error"><slot></slot></div>`;
|
|
2084
2084
|
}
|
|
2085
2085
|
};
|
|
2086
2086
|
he.styles = g`
|
|
@@ -2090,7 +2090,7 @@ he.styles = g`
|
|
|
2090
2090
|
let d5 = he;
|
|
2091
2091
|
const ue = class ue extends u {
|
|
2092
2092
|
render() {
|
|
2093
|
-
return
|
|
2093
|
+
return s`<div class="field-group" part="group"><slot></slot></div>`;
|
|
2094
2094
|
}
|
|
2095
2095
|
};
|
|
2096
2096
|
ue.styles = g`
|
|
@@ -2100,7 +2100,7 @@ ue.styles = g`
|
|
|
2100
2100
|
let c5 = ue;
|
|
2101
2101
|
customElements.get("anduin-field") || customElements.define("anduin-field", B2);
|
|
2102
2102
|
customElements.get("anduin-field-label") || customElements.define("anduin-field-label", y2);
|
|
2103
|
-
customElements.get("anduin-field-description") || customElements.define("anduin-field-description",
|
|
2103
|
+
customElements.get("anduin-field-description") || customElements.define("anduin-field-description", s5);
|
|
2104
2104
|
customElements.get("anduin-field-error") || customElements.define("anduin-field-error", d5);
|
|
2105
2105
|
customElements.get("anduin-field-group") || customElements.define("anduin-field-group", c5);
|
|
2106
2106
|
var V7 = Object.defineProperty, R2 = (r, e, t, o) => {
|
|
@@ -2138,7 +2138,7 @@ const x7 = "anduin-checkbox:change", ge = class ge extends u {
|
|
|
2138
2138
|
this.disabled && !this.indeterminate && !this.checked ? "checkbox__box--disabled" : "",
|
|
2139
2139
|
!this.indeterminate && !this.checked && !this.readonly && !this.disabled ? "checkbox__box--unchecked" : ""
|
|
2140
2140
|
].filter(Boolean).join(" "), t = this.indeterminate ? "minusBold" : this.checked ? "checkBold" : "", o = !this.disabled && !this.readonly, i = o ? 0 : -1;
|
|
2141
|
-
return
|
|
2141
|
+
return s`
|
|
2142
2142
|
<label class="${this.disabled ? "is-disabled" : ""}">
|
|
2143
2143
|
<div
|
|
2144
2144
|
class="checkbox ${o ? "checkbox--interactive" : ""} ${this.disabled ? "checkbox--disabled" : ""}"
|
|
@@ -2154,7 +2154,7 @@ const x7 = "anduin-checkbox:change", ge = class ge extends u {
|
|
|
2154
2154
|
/>
|
|
2155
2155
|
<div class="${e}" tabindex="${i}"></div>
|
|
2156
2156
|
<div class="checkbox__icon ${this.indeterminate || this.checked ? "checkbox__icon--visible" : ""}">
|
|
2157
|
-
${t ?
|
|
2157
|
+
${t ? s`<anduin-icon name="${t}" size="16"></anduin-icon>` : p}
|
|
2158
2158
|
</div>
|
|
2159
2159
|
</div>
|
|
2160
2160
|
<span class="checkbox__label"><slot></slot></span>
|
|
@@ -2202,19 +2202,19 @@ ge.styles = g`
|
|
|
2202
2202
|
`;
|
|
2203
2203
|
let v1 = ge;
|
|
2204
2204
|
R2([
|
|
2205
|
-
|
|
2205
|
+
a({ type: Boolean })
|
|
2206
2206
|
], v1.prototype, "checked");
|
|
2207
2207
|
R2([
|
|
2208
|
-
|
|
2208
|
+
a({ type: Boolean })
|
|
2209
2209
|
], v1.prototype, "disabled");
|
|
2210
2210
|
R2([
|
|
2211
|
-
|
|
2211
|
+
a({ type: Boolean })
|
|
2212
2212
|
], v1.prototype, "indeterminate");
|
|
2213
2213
|
R2([
|
|
2214
|
-
|
|
2214
|
+
a({ type: Boolean })
|
|
2215
2215
|
], v1.prototype, "readonly");
|
|
2216
2216
|
R2([
|
|
2217
|
-
|
|
2217
|
+
a()
|
|
2218
2218
|
], v1.prototype, "inputid");
|
|
2219
2219
|
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", v1);
|
|
2220
2220
|
var M7 = Object.defineProperty, Y = (r, e, t, o) => {
|
|
@@ -2280,9 +2280,9 @@ const B4 = "anduin-input:change", w7 = "anduin-input:clear", j2 = class j2 exten
|
|
|
2280
2280
|
}
|
|
2281
2281
|
render() {
|
|
2282
2282
|
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", o = !!this.startIcon, i = !!this.endIcon || this.clearable && !!this.value, n = this.clearable && !!this.value && !this.disabled && !this.readonly, l = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", d = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
|
|
2283
|
-
return
|
|
2283
|
+
return s`
|
|
2284
2284
|
<div class="input-wrapper">
|
|
2285
|
-
${o ?
|
|
2285
|
+
${o ? s`
|
|
2286
2286
|
<span class="input__start">
|
|
2287
2287
|
<anduin-icon name=${this.startIcon} size=${l}></anduin-icon>
|
|
2288
2288
|
</span>
|
|
@@ -2304,14 +2304,14 @@ const B4 = "anduin-input:change", w7 = "anduin-input:clear", j2 = class j2 exten
|
|
|
2304
2304
|
@input=${this.onInput}
|
|
2305
2305
|
/>
|
|
2306
2306
|
|
|
2307
|
-
${i ?
|
|
2307
|
+
${i ? s`
|
|
2308
2308
|
<span class="input__end">
|
|
2309
|
-
${n ?
|
|
2309
|
+
${n ? s`
|
|
2310
2310
|
<button class="input__clear" type="button" @click=${this.onClear} aria-label="Clear">
|
|
2311
2311
|
<anduin-icon name="cross" size=${d}></anduin-icon>
|
|
2312
2312
|
</button>
|
|
2313
2313
|
` : p}
|
|
2314
|
-
${this.endIcon ?
|
|
2314
|
+
${this.endIcon ? s`
|
|
2315
2315
|
<anduin-icon name=${this.endIcon} size=${l}></anduin-icon>
|
|
2316
2316
|
` : p}
|
|
2317
2317
|
</span>
|
|
@@ -2374,41 +2374,41 @@ j2.shadowRootOptions = { ...u.shadowRootOptions, delegatesFocus: !0 }, j2.styles
|
|
|
2374
2374
|
}
|
|
2375
2375
|
.input__clear:hover { color: var(--color-gray-7); }
|
|
2376
2376
|
`;
|
|
2377
|
-
let
|
|
2377
|
+
let O = j2;
|
|
2378
2378
|
Y([
|
|
2379
|
-
|
|
2380
|
-
],
|
|
2379
|
+
a()
|
|
2380
|
+
], O.prototype, "value");
|
|
2381
2381
|
Y([
|
|
2382
|
-
|
|
2383
|
-
],
|
|
2382
|
+
a()
|
|
2383
|
+
], O.prototype, "size");
|
|
2384
2384
|
Y([
|
|
2385
|
-
|
|
2386
|
-
],
|
|
2385
|
+
a({ type: Boolean })
|
|
2386
|
+
], O.prototype, "disabled");
|
|
2387
2387
|
Y([
|
|
2388
|
-
|
|
2389
|
-
],
|
|
2388
|
+
a({ type: Boolean })
|
|
2389
|
+
], O.prototype, "readonly");
|
|
2390
2390
|
Y([
|
|
2391
|
-
|
|
2392
|
-
],
|
|
2391
|
+
a()
|
|
2392
|
+
], O.prototype, "placeholder");
|
|
2393
2393
|
Y([
|
|
2394
|
-
|
|
2395
|
-
],
|
|
2394
|
+
a()
|
|
2395
|
+
], O.prototype, "inputid");
|
|
2396
2396
|
Y([
|
|
2397
|
-
|
|
2398
|
-
],
|
|
2397
|
+
a()
|
|
2398
|
+
], O.prototype, "status");
|
|
2399
2399
|
Y([
|
|
2400
|
-
|
|
2401
|
-
],
|
|
2400
|
+
a({ attribute: "start-icon" })
|
|
2401
|
+
], O.prototype, "startIcon");
|
|
2402
2402
|
Y([
|
|
2403
|
-
|
|
2404
|
-
],
|
|
2403
|
+
a({ attribute: "end-icon" })
|
|
2404
|
+
], O.prototype, "endIcon");
|
|
2405
2405
|
Y([
|
|
2406
|
-
|
|
2407
|
-
],
|
|
2406
|
+
a({ type: Boolean })
|
|
2407
|
+
], O.prototype, "clearable");
|
|
2408
2408
|
Y([
|
|
2409
2409
|
k("input")
|
|
2410
|
-
],
|
|
2411
|
-
customElements.get("anduin-input") || customElements.define("anduin-input",
|
|
2410
|
+
], O.prototype, "inputEl");
|
|
2411
|
+
customElements.get("anduin-input") || customElements.define("anduin-input", O);
|
|
2412
2412
|
var Z7 = Object.defineProperty, y3 = (r, e, t, o) => {
|
|
2413
2413
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2414
2414
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
@@ -2458,20 +2458,20 @@ function F4(r, e, t, o, i) {
|
|
|
2458
2458
|
return { left: 0, top: 0 };
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
|
-
function
|
|
2461
|
+
function O4(r, e) {
|
|
2462
2462
|
return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2464
|
+
function I4(r, e) {
|
|
2465
2465
|
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);
|
|
2466
2466
|
return i < t || n < o ? 0 : (i - t) * (n - o);
|
|
2467
2467
|
}
|
|
2468
2468
|
function R7(r, e, t, o = 8) {
|
|
2469
2469
|
const i = window.innerWidth, n = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: n }, d = e.width, c = e.height;
|
|
2470
|
-
if (!
|
|
2470
|
+
if (!O4(
|
|
2471
2471
|
{ left: r.left, top: r.top, right: r.right, bottom: r.bottom },
|
|
2472
2472
|
l
|
|
2473
2473
|
)) return null;
|
|
2474
|
-
const C = F4(r, d, c, t, o), h = k7.map((b) => ({ p: b, off: F4(r, d, c, b, o) })).filter(({ off: b }) =>
|
|
2474
|
+
const C = F4(r, d, c, t, o), h = k7.map((b) => ({ p: b, off: F4(r, d, c, b, o) })).filter(({ off: b }) => O4({ left: b.left, top: b.top, right: b.left + d, bottom: b.top + c }, l));
|
|
2475
2475
|
if (h.length === 0)
|
|
2476
2476
|
return {
|
|
2477
2477
|
placement: t,
|
|
@@ -2479,7 +2479,7 @@ function R7(r, e, t, o = 8) {
|
|
|
2479
2479
|
top: Math.round(Math.min(Math.max(C.top, 0), n - c))
|
|
2480
2480
|
};
|
|
2481
2481
|
h.sort((b, V) => {
|
|
2482
|
-
const _ = { left: b.off.left, top: b.off.top, right: b.off.left + d, bottom: b.off.top + c }, v = { left: V.off.left, top: V.off.top, right: V.off.left + d, bottom: V.off.top + c }, x =
|
|
2482
|
+
const _ = { left: b.off.left, top: b.off.top, right: b.off.left + d, bottom: b.off.top + c }, v = { left: V.off.left, top: V.off.top, right: V.off.left + d, bottom: V.off.top + c }, x = I4(_, l), M = I4(v, l);
|
|
2483
2483
|
if (M !== x) return M - x;
|
|
2484
2484
|
const D = Math.abs(b.off.left - C.left) + Math.abs(b.off.top - C.top), K = Math.abs(V.off.left - C.left) + Math.abs(V.off.top - C.top);
|
|
2485
2485
|
return D - K;
|
|
@@ -2561,7 +2561,7 @@ const fe = class fe extends u {
|
|
|
2561
2561
|
this.dispatchEvent(new CustomEvent(x3, { detail: e, bubbles: !1, composed: !1 }));
|
|
2562
2562
|
}
|
|
2563
2563
|
render() {
|
|
2564
|
-
return
|
|
2564
|
+
return s`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
|
|
2565
2565
|
}
|
|
2566
2566
|
};
|
|
2567
2567
|
fe.styles = g`
|
|
@@ -2577,10 +2577,10 @@ fe.styles = g`
|
|
|
2577
2577
|
`;
|
|
2578
2578
|
let H2 = fe;
|
|
2579
2579
|
y3([
|
|
2580
|
-
|
|
2580
|
+
a({ type: Boolean })
|
|
2581
2581
|
], H2.prototype, "disabled");
|
|
2582
2582
|
y3([
|
|
2583
|
-
|
|
2583
|
+
a()
|
|
2584
2584
|
], H2.prototype, "placement");
|
|
2585
2585
|
const ve = class ve extends u {
|
|
2586
2586
|
firstUpdated() {
|
|
@@ -2593,7 +2593,7 @@ const ve = class ve extends u {
|
|
|
2593
2593
|
});
|
|
2594
2594
|
}
|
|
2595
2595
|
render() {
|
|
2596
|
-
return
|
|
2596
|
+
return s`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
|
|
2597
2597
|
}
|
|
2598
2598
|
};
|
|
2599
2599
|
ve.styles = g`
|
|
@@ -2662,7 +2662,7 @@ const me = class me extends u {
|
|
|
2662
2662
|
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(V3, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
|
|
2663
2663
|
}
|
|
2664
2664
|
render() {
|
|
2665
|
-
return
|
|
2665
|
+
return s`<div class="tooltip-content-wrapper"></div>`;
|
|
2666
2666
|
}
|
|
2667
2667
|
};
|
|
2668
2668
|
me.styles = g`
|
|
@@ -2693,14 +2693,14 @@ let h5 = me;
|
|
|
2693
2693
|
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", H2);
|
|
2694
2694
|
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", p5);
|
|
2695
2695
|
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", h5);
|
|
2696
|
-
var E7 = Object.defineProperty,
|
|
2696
|
+
var E7 = Object.defineProperty, B = (r, e, t, o) => {
|
|
2697
2697
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2698
2698
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2699
2699
|
return i && E7(e, t, i), i;
|
|
2700
2700
|
};
|
|
2701
2701
|
const z7 = "anduin-inline-edit:save", S7 = "anduin-inline-edit:cancel", A7 = "anduin-inline-edit:edit", be = class be extends u {
|
|
2702
2702
|
constructor() {
|
|
2703
|
-
super(...arguments), this.value = "", this.placeholder = "", this.size = "medium", this.mode = "view", this.disabled = !1, this.clickToEdit = !1, this.editLabel = "Edit", this._editing = !1, this._draft = "", this._error = "", this._hasSlotted = !1, this._openWidth = 0;
|
|
2703
|
+
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;
|
|
2704
2704
|
}
|
|
2705
2705
|
/** Whether the element is in edit mode. Also reflected as the `editing` attribute. */
|
|
2706
2706
|
get editing() {
|
|
@@ -2775,14 +2775,14 @@ const z7 = "anduin-inline-edit:save", S7 = "anduin-inline-edit:cancel", A7 = "an
|
|
|
2775
2775
|
}
|
|
2776
2776
|
_renderView() {
|
|
2777
2777
|
const e = !this.value, t = this.clickToEdit && !this.disabled;
|
|
2778
|
-
return
|
|
2778
|
+
return s`
|
|
2779
2779
|
<div class="view" part="view">
|
|
2780
2780
|
<span
|
|
2781
2781
|
class="text ${t ? "text--clickable" : ""} ${e && !this._hasSlotted ? "text--placeholder" : ""}"
|
|
2782
2782
|
part="text"
|
|
2783
2783
|
@click=${this._onTextClick}
|
|
2784
2784
|
>${this._hasSlotted ? p : e ? this.placeholder : this.value}<slot @slotchange=${this._onSlotChange}></slot></span>
|
|
2785
|
-
${this.disabled ? p :
|
|
2785
|
+
${this.disabled || this.hideSwitcher ? p : s`
|
|
2786
2786
|
<anduin-tooltip class="switcher" part="switcher">
|
|
2787
2787
|
<anduin-tooltip-trigger>
|
|
2788
2788
|
<anduin-button
|
|
@@ -2801,7 +2801,7 @@ const z7 = "anduin-inline-edit:save", S7 = "anduin-inline-edit:cancel", A7 = "an
|
|
|
2801
2801
|
}
|
|
2802
2802
|
_renderEdit() {
|
|
2803
2803
|
const e = this.size === "small" ? "small" : "medium", t = !!this._error, o = this.size === "small" ? 14 : 26, i = this._openWidth ? `max(8em, ${Math.ceil(this._openWidth) + o}px + 2ch)` : "12em";
|
|
2804
|
-
return
|
|
2804
|
+
return s`
|
|
2805
2805
|
<div class="edit" part="edit">
|
|
2806
2806
|
<input
|
|
2807
2807
|
class="field field--${e} ${t ? "field--invalid" : ""}"
|
|
@@ -2903,53 +2903,56 @@ be.styles = g`
|
|
|
2903
2903
|
.field--small { min-height: 24px; padding-left: 6px; padding-right: 6px; }
|
|
2904
2904
|
.field--medium { min-height: 32px; padding-left: 12px; padding-right: 12px; }
|
|
2905
2905
|
`;
|
|
2906
|
-
let
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
],
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
],
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
],
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
],
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
],
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
],
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
],
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
],
|
|
2931
|
-
|
|
2906
|
+
let R = be;
|
|
2907
|
+
B([
|
|
2908
|
+
a()
|
|
2909
|
+
], R.prototype, "value");
|
|
2910
|
+
B([
|
|
2911
|
+
a()
|
|
2912
|
+
], R.prototype, "placeholder");
|
|
2913
|
+
B([
|
|
2914
|
+
a()
|
|
2915
|
+
], R.prototype, "size");
|
|
2916
|
+
B([
|
|
2917
|
+
a()
|
|
2918
|
+
], R.prototype, "mode");
|
|
2919
|
+
B([
|
|
2920
|
+
a({ type: Boolean, reflect: !0 })
|
|
2921
|
+
], R.prototype, "disabled");
|
|
2922
|
+
B([
|
|
2923
|
+
a({ type: Boolean, attribute: "click-to-edit", reflect: !0 })
|
|
2924
|
+
], R.prototype, "clickToEdit");
|
|
2925
|
+
B([
|
|
2926
|
+
a({ type: Boolean, attribute: "hide-switcher", reflect: !0 })
|
|
2927
|
+
], R.prototype, "hideSwitcher");
|
|
2928
|
+
B([
|
|
2929
|
+
a({ attribute: "edit-label" })
|
|
2930
|
+
], R.prototype, "editLabel");
|
|
2931
|
+
B([
|
|
2932
|
+
a({ attribute: !1 })
|
|
2933
|
+
], R.prototype, "validate");
|
|
2934
|
+
B([
|
|
2932
2935
|
m()
|
|
2933
|
-
],
|
|
2934
|
-
|
|
2936
|
+
], R.prototype, "_editing");
|
|
2937
|
+
B([
|
|
2935
2938
|
m()
|
|
2936
|
-
],
|
|
2937
|
-
|
|
2939
|
+
], R.prototype, "_draft");
|
|
2940
|
+
B([
|
|
2938
2941
|
m()
|
|
2939
|
-
],
|
|
2940
|
-
|
|
2942
|
+
], R.prototype, "_error");
|
|
2943
|
+
B([
|
|
2941
2944
|
m()
|
|
2942
|
-
],
|
|
2943
|
-
|
|
2945
|
+
], R.prototype, "_hasSlotted");
|
|
2946
|
+
B([
|
|
2944
2947
|
m()
|
|
2945
|
-
],
|
|
2946
|
-
|
|
2948
|
+
], R.prototype, "_openWidth");
|
|
2949
|
+
B([
|
|
2947
2950
|
k(".field")
|
|
2948
|
-
],
|
|
2949
|
-
|
|
2951
|
+
], R.prototype, "_field");
|
|
2952
|
+
B([
|
|
2950
2953
|
k(".text")
|
|
2951
|
-
],
|
|
2952
|
-
customElements.get("anduin-inline-edit") || customElements.define("anduin-inline-edit",
|
|
2954
|
+
], R.prototype, "_text");
|
|
2955
|
+
customElements.get("anduin-inline-edit") || customElements.define("anduin-inline-edit", R);
|
|
2953
2956
|
var D7 = Object.defineProperty, _1 = (r, e, t, o) => {
|
|
2954
2957
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2955
2958
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
@@ -2998,7 +3001,7 @@ const P7 = "anduin-textarea:change", U2 = class U2 extends u {
|
|
|
2998
3001
|
}
|
|
2999
3002
|
render() {
|
|
3000
3003
|
const e = this.status ? `textarea--${this.status}` : "";
|
|
3001
|
-
return
|
|
3004
|
+
return s`
|
|
3002
3005
|
<textarea
|
|
3003
3006
|
class="textarea
|
|
3004
3007
|
${this.disabled ? "textarea--disabled" : ""}
|
|
@@ -3034,25 +3037,25 @@ U2.shadowRootOptions = { ...u.shadowRootOptions, delegatesFocus: !0 }, U2.styles
|
|
|
3034
3037
|
`;
|
|
3035
3038
|
let W = U2;
|
|
3036
3039
|
_1([
|
|
3037
|
-
|
|
3040
|
+
a()
|
|
3038
3041
|
], W.prototype, "value");
|
|
3039
3042
|
_1([
|
|
3040
|
-
|
|
3043
|
+
a({ type: Boolean })
|
|
3041
3044
|
], W.prototype, "disabled");
|
|
3042
3045
|
_1([
|
|
3043
|
-
|
|
3046
|
+
a({ type: Boolean })
|
|
3044
3047
|
], W.prototype, "readonly");
|
|
3045
3048
|
_1([
|
|
3046
|
-
|
|
3049
|
+
a()
|
|
3047
3050
|
], W.prototype, "placeholder");
|
|
3048
3051
|
_1([
|
|
3049
|
-
|
|
3052
|
+
a()
|
|
3050
3053
|
], W.prototype, "inputid");
|
|
3051
3054
|
_1([
|
|
3052
|
-
|
|
3055
|
+
a({ type: Number })
|
|
3053
3056
|
], W.prototype, "rows");
|
|
3054
3057
|
_1([
|
|
3055
|
-
|
|
3058
|
+
a()
|
|
3056
3059
|
], W.prototype, "status");
|
|
3057
3060
|
_1([
|
|
3058
3061
|
k("textarea")
|
|
@@ -3087,7 +3090,7 @@ const M3 = "anduin-tab:trigger-click", W2 = "anduin-tab:value-changed", F7 = "an
|
|
|
3087
3090
|
this.dispatchEvent(new CustomEvent(W2, { detail: e, bubbles: !1, composed: !1 }));
|
|
3088
3091
|
}
|
|
3089
3092
|
render() {
|
|
3090
|
-
return
|
|
3093
|
+
return s`<div class="tabs" part="tabs"><slot></slot></div>`;
|
|
3091
3094
|
}
|
|
3092
3095
|
};
|
|
3093
3096
|
ye.styles = g`
|
|
@@ -3098,13 +3101,13 @@ ye.styles = g`
|
|
|
3098
3101
|
`;
|
|
3099
3102
|
let j1 = ye;
|
|
3100
3103
|
U([
|
|
3101
|
-
|
|
3104
|
+
a({ attribute: "default-value" })
|
|
3102
3105
|
], j1.prototype, "defaultValue");
|
|
3103
3106
|
U([
|
|
3104
|
-
|
|
3107
|
+
a()
|
|
3105
3108
|
], j1.prototype, "value");
|
|
3106
3109
|
U([
|
|
3107
|
-
|
|
3110
|
+
a({ type: Boolean, reflect: !0 })
|
|
3108
3111
|
], j1.prototype, "fill");
|
|
3109
3112
|
const He = class He extends u {
|
|
3110
3113
|
constructor() {
|
|
@@ -3142,7 +3145,7 @@ const He = class He extends u {
|
|
|
3142
3145
|
}
|
|
3143
3146
|
}
|
|
3144
3147
|
render() {
|
|
3145
|
-
return
|
|
3148
|
+
return s`
|
|
3146
3149
|
<div class="tabs-list tabs-list--${this.alignment}" role="tablist" aria-orientation="horizontal" part="tabs-list">
|
|
3147
3150
|
<slot></slot>
|
|
3148
3151
|
<div class="tabs-list__indicator"></div>
|
|
@@ -3169,7 +3172,7 @@ He.styles = g`
|
|
|
3169
3172
|
`;
|
|
3170
3173
|
let _2 = He;
|
|
3171
3174
|
U([
|
|
3172
|
-
|
|
3175
|
+
a()
|
|
3173
3176
|
], _2.prototype, "alignment");
|
|
3174
3177
|
U([
|
|
3175
3178
|
k(".tabs-list__indicator")
|
|
@@ -3190,7 +3193,7 @@ const _e = class _e extends u {
|
|
|
3190
3193
|
this.dispatchEvent(new CustomEvent(M3, { detail: this.value, bubbles: !0, composed: !0 }));
|
|
3191
3194
|
}
|
|
3192
3195
|
render() {
|
|
3193
|
-
return
|
|
3196
|
+
return s`
|
|
3194
3197
|
<button
|
|
3195
3198
|
class="tab-trigger ${this.isActive ? "tab-trigger--active" : "tab-trigger--normal"}"
|
|
3196
3199
|
role="tab"
|
|
@@ -3200,9 +3203,9 @@ const _e = class _e extends u {
|
|
|
3200
3203
|
@click=${this.onClick}
|
|
3201
3204
|
>
|
|
3202
3205
|
<div class="tab-trigger__content">
|
|
3203
|
-
${this.startIcon ?
|
|
3206
|
+
${this.startIcon ? s`<anduin-icon name="${this.startIcon}" size="16"></anduin-icon>` : p}
|
|
3204
3207
|
<slot></slot>
|
|
3205
|
-
${this.showBadge ?
|
|
3208
|
+
${this.showBadge ? s`<span class="tab-trigger__badge">${this.badgeCount}</span>` : p}
|
|
3206
3209
|
</div>
|
|
3207
3210
|
</button>
|
|
3208
3211
|
`;
|
|
@@ -3233,19 +3236,19 @@ _e.styles = g`
|
|
|
3233
3236
|
`;
|
|
3234
3237
|
let l1 = _e;
|
|
3235
3238
|
U([
|
|
3236
|
-
|
|
3239
|
+
a({ reflect: !0 })
|
|
3237
3240
|
], l1.prototype, "value");
|
|
3238
3241
|
U([
|
|
3239
|
-
|
|
3242
|
+
a({ attribute: "start-icon" })
|
|
3240
3243
|
], l1.prototype, "startIcon");
|
|
3241
3244
|
U([
|
|
3242
|
-
|
|
3245
|
+
a({ type: Boolean })
|
|
3243
3246
|
], l1.prototype, "disabled");
|
|
3244
3247
|
U([
|
|
3245
|
-
|
|
3248
|
+
a({ type: Boolean, attribute: "show-badge" })
|
|
3246
3249
|
], l1.prototype, "showBadge");
|
|
3247
3250
|
U([
|
|
3248
|
-
|
|
3251
|
+
a({ attribute: "badge-count" })
|
|
3249
3252
|
], l1.prototype, "badgeCount");
|
|
3250
3253
|
U([
|
|
3251
3254
|
m()
|
|
@@ -3266,7 +3269,7 @@ const Le = class Le extends u {
|
|
|
3266
3269
|
e.has("isActive") && this.toggleAttribute("active", this.isActive);
|
|
3267
3270
|
}
|
|
3268
3271
|
render() {
|
|
3269
|
-
return
|
|
3272
|
+
return s`
|
|
3270
3273
|
<div class="tab-content" role="tabpanel" tabindex="0" part="tab-content">
|
|
3271
3274
|
<slot></slot>
|
|
3272
3275
|
</div>
|
|
@@ -3280,7 +3283,7 @@ Le.styles = g`
|
|
|
3280
3283
|
`;
|
|
3281
3284
|
let L2 = Le;
|
|
3282
3285
|
U([
|
|
3283
|
-
|
|
3286
|
+
a()
|
|
3284
3287
|
], L2.prototype, "value");
|
|
3285
3288
|
U([
|
|
3286
3289
|
m()
|
|
@@ -3289,12 +3292,12 @@ customElements.get("anduin-tabs") || customElements.define("anduin-tabs", j1);
|
|
|
3289
3292
|
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", _2);
|
|
3290
3293
|
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", l1);
|
|
3291
3294
|
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", L2);
|
|
3292
|
-
var
|
|
3295
|
+
var O7 = Object.defineProperty, q5 = (r, e, t, o) => {
|
|
3293
3296
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3294
3297
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3295
|
-
return i &&
|
|
3298
|
+
return i && O7(e, t, i), i;
|
|
3296
3299
|
};
|
|
3297
|
-
const
|
|
3300
|
+
const I7 = "anduin-tag-close:click", T7 = {
|
|
3298
3301
|
gray: "tag--light-gray",
|
|
3299
3302
|
primary: "tag--light-primary",
|
|
3300
3303
|
success: "tag--light-success",
|
|
@@ -3350,9 +3353,9 @@ const O7 = "anduin-tag-close:click", T7 = {
|
|
|
3350
3353
|
}
|
|
3351
3354
|
render() {
|
|
3352
3355
|
const e = T7[this.variant] || "tag--light-gray", t = N7[this.variant] || "tag__icon--light-gray";
|
|
3353
|
-
return
|
|
3356
|
+
return s`
|
|
3354
3357
|
<div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
|
|
3355
|
-
${this.icon ?
|
|
3358
|
+
${this.icon ? s`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : p}
|
|
3356
3359
|
<div class="tag__label"><slot></slot></div>
|
|
3357
3360
|
<slot name="closeButton" class="tag__close"></slot>
|
|
3358
3361
|
</div>
|
|
@@ -3409,20 +3412,20 @@ Ve.styles = g`
|
|
|
3409
3412
|
`;
|
|
3410
3413
|
let U1 = Ve;
|
|
3411
3414
|
q5([
|
|
3412
|
-
|
|
3415
|
+
a()
|
|
3413
3416
|
], U1.prototype, "variant");
|
|
3414
3417
|
q5([
|
|
3415
|
-
|
|
3418
|
+
a()
|
|
3416
3419
|
], U1.prototype, "icon");
|
|
3417
3420
|
q5([
|
|
3418
|
-
|
|
3421
|
+
a({ type: Boolean })
|
|
3419
3422
|
], U1.prototype, "disabled");
|
|
3420
3423
|
const xe = class xe extends u {
|
|
3421
3424
|
onClick() {
|
|
3422
|
-
this.dispatchEvent(new CustomEvent(
|
|
3425
|
+
this.dispatchEvent(new CustomEvent(I7, { bubbles: !0, composed: !0 }));
|
|
3423
3426
|
}
|
|
3424
3427
|
render() {
|
|
3425
|
-
return
|
|
3428
|
+
return s`
|
|
3426
3429
|
<button class="tag-close__button" part="tag-close" @click=${this.onClick}>
|
|
3427
3430
|
<anduin-icon name="crossSmall" size="12"></anduin-icon>
|
|
3428
3431
|
</button>
|
|
@@ -3442,7 +3445,7 @@ xe.styles = g`
|
|
|
3442
3445
|
let u5 = xe;
|
|
3443
3446
|
customElements.get("anduin-tag") || customElements.define("anduin-tag", U1);
|
|
3444
3447
|
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", u5);
|
|
3445
|
-
var j7 = Object.defineProperty,
|
|
3448
|
+
var j7 = Object.defineProperty, I = (r, e, t, o) => {
|
|
3446
3449
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3447
3450
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3448
3451
|
return i && j7(e, t, i), i;
|
|
@@ -3493,7 +3496,7 @@ const U7 = "anduin-toggle-group:change", G7 = "anduin-toggle-group-item:change",
|
|
|
3493
3496
|
t.selected = e.includes(t.value), t.groupSize = this.size, t.groupVariant = this.variant, t.groupMode = this.mode;
|
|
3494
3497
|
}
|
|
3495
3498
|
render() {
|
|
3496
|
-
return
|
|
3499
|
+
return s`
|
|
3497
3500
|
<div class="toggle-group toggle-group--${this.size} ${this.gap ? "toggle-group--gap" : ""}" role="group" part="toggle-group">
|
|
3498
3501
|
<slot @slotchange=${this.syncItems}></slot>
|
|
3499
3502
|
</div>
|
|
@@ -3535,25 +3538,25 @@ Me.styles = g`
|
|
|
3535
3538
|
.toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
|
|
3536
3539
|
`;
|
|
3537
3540
|
let X = Me;
|
|
3538
|
-
|
|
3539
|
-
|
|
3541
|
+
I([
|
|
3542
|
+
a()
|
|
3540
3543
|
], X.prototype, "mode");
|
|
3541
|
-
|
|
3542
|
-
|
|
3544
|
+
I([
|
|
3545
|
+
a({ attribute: "default-value" })
|
|
3543
3546
|
], X.prototype, "defaultValue");
|
|
3544
|
-
|
|
3545
|
-
|
|
3547
|
+
I([
|
|
3548
|
+
a()
|
|
3546
3549
|
], X.prototype, "value");
|
|
3547
|
-
|
|
3548
|
-
|
|
3550
|
+
I([
|
|
3551
|
+
a()
|
|
3549
3552
|
], X.prototype, "size");
|
|
3550
|
-
|
|
3551
|
-
|
|
3553
|
+
I([
|
|
3554
|
+
a()
|
|
3552
3555
|
], X.prototype, "variant");
|
|
3553
|
-
|
|
3554
|
-
|
|
3556
|
+
I([
|
|
3557
|
+
a({ type: Boolean })
|
|
3555
3558
|
], X.prototype, "gap");
|
|
3556
|
-
|
|
3559
|
+
I([
|
|
3557
3560
|
m()
|
|
3558
3561
|
], X.prototype, "internalValue");
|
|
3559
3562
|
const we = class we extends u {
|
|
@@ -3589,7 +3592,7 @@ const we = class we extends u {
|
|
|
3589
3592
|
this.disabled ? "toggle-item--disabled" : "",
|
|
3590
3593
|
`toggle-item--variant-${this.groupVariant}`
|
|
3591
3594
|
].filter(Boolean).join(" ");
|
|
3592
|
-
return
|
|
3595
|
+
return s`
|
|
3593
3596
|
<button
|
|
3594
3597
|
type="button"
|
|
3595
3598
|
class="${e}"
|
|
@@ -3599,7 +3602,7 @@ const we = class we extends u {
|
|
|
3599
3602
|
@click=${this.onClick}
|
|
3600
3603
|
>
|
|
3601
3604
|
<div class="toggle-item__content">
|
|
3602
|
-
${this.startIcon ?
|
|
3605
|
+
${this.startIcon ? s`<div class="toggle-item__icon"><anduin-icon name="${this.startIcon}" size="${this.groupSize === "small" ? 12 : 16}"></anduin-icon></div>` : p}
|
|
3603
3606
|
<slot></slot>
|
|
3604
3607
|
</div>
|
|
3605
3608
|
</button>
|
|
@@ -3643,26 +3646,26 @@ we.styles = g`
|
|
|
3643
3646
|
.toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-4); }
|
|
3644
3647
|
`;
|
|
3645
3648
|
let J = we;
|
|
3646
|
-
|
|
3647
|
-
|
|
3649
|
+
I([
|
|
3650
|
+
a({ reflect: !0 })
|
|
3648
3651
|
], J.prototype, "value");
|
|
3649
|
-
|
|
3650
|
-
|
|
3652
|
+
I([
|
|
3653
|
+
a({ attribute: "start-icon" })
|
|
3651
3654
|
], J.prototype, "startIcon");
|
|
3652
|
-
|
|
3653
|
-
|
|
3655
|
+
I([
|
|
3656
|
+
a({ type: Boolean })
|
|
3654
3657
|
], J.prototype, "disabled");
|
|
3655
|
-
|
|
3656
|
-
|
|
3658
|
+
I([
|
|
3659
|
+
a({ attribute: !1 })
|
|
3657
3660
|
], J.prototype, "selected");
|
|
3658
|
-
|
|
3659
|
-
|
|
3661
|
+
I([
|
|
3662
|
+
a({ attribute: !1 })
|
|
3660
3663
|
], J.prototype, "groupSize");
|
|
3661
|
-
|
|
3662
|
-
|
|
3664
|
+
I([
|
|
3665
|
+
a({ attribute: !1 })
|
|
3663
3666
|
], J.prototype, "groupVariant");
|
|
3664
|
-
|
|
3665
|
-
|
|
3667
|
+
I([
|
|
3668
|
+
a({ attribute: !1 })
|
|
3666
3669
|
], J.prototype, "groupMode");
|
|
3667
3670
|
function e5(r) {
|
|
3668
3671
|
return r.split(" ").map((e) => e.trim()).filter(Boolean);
|
|
@@ -3679,7 +3682,7 @@ const X7 = "anduin-well-close:click", Ze = class Ze extends u {
|
|
|
3679
3682
|
super(...arguments), this.variant = "gray";
|
|
3680
3683
|
}
|
|
3681
3684
|
render() {
|
|
3682
|
-
return
|
|
3685
|
+
return s`
|
|
3683
3686
|
<div class="well well--${this.variant}" part="well">
|
|
3684
3687
|
<slot
|
|
3685
3688
|
name="icon"
|
|
@@ -3771,7 +3774,7 @@ Ze.styles = g`
|
|
|
3771
3774
|
`;
|
|
3772
3775
|
let F2 = Ze;
|
|
3773
3776
|
q7([
|
|
3774
|
-
|
|
3777
|
+
a()
|
|
3775
3778
|
], F2.prototype, "variant");
|
|
3776
3779
|
const ke = class ke extends u {
|
|
3777
3780
|
onClick() {
|
|
@@ -3780,7 +3783,7 @@ const ke = class ke extends u {
|
|
|
3780
3783
|
);
|
|
3781
3784
|
}
|
|
3782
3785
|
render() {
|
|
3783
|
-
return
|
|
3786
|
+
return s`
|
|
3784
3787
|
<button
|
|
3785
3788
|
class="well-close__button"
|
|
3786
3789
|
part="well-close"
|
|
@@ -3880,7 +3883,7 @@ const v5 = "anduin-popover:close", m5 = "anduin-popover:open-change", Re = class
|
|
|
3880
3883
|
K === "start" ? f = o.left : K === "end" ? f = o.right - l.width : f = o.left + o.width / 2 - l.width / 2, f = Math.max(h, Math.min(f, c - l.width - h)), y = Math.max(h, Math.min(y, C - l.height - h)), t.style.transform = `translate(${Math.round(f - n.left)}px, ${Math.round(y - n.top)}px)`, t.dataset.side = b;
|
|
3881
3884
|
}
|
|
3882
3885
|
render() {
|
|
3883
|
-
return
|
|
3886
|
+
return s`
|
|
3884
3887
|
<div class="popover__trigger" @click=${this._onTriggerClick} part="trigger">
|
|
3885
3888
|
<slot name="trigger"></slot>
|
|
3886
3889
|
</div>
|
|
@@ -3947,13 +3950,13 @@ Re.styles = g`
|
|
|
3947
3950
|
`;
|
|
3948
3951
|
let Q = Re;
|
|
3949
3952
|
E1([
|
|
3950
|
-
|
|
3953
|
+
a({ type: Boolean, reflect: !0 })
|
|
3951
3954
|
], Q.prototype, "open");
|
|
3952
3955
|
E1([
|
|
3953
|
-
|
|
3956
|
+
a()
|
|
3954
3957
|
], Q.prototype, "placement");
|
|
3955
3958
|
E1([
|
|
3956
|
-
|
|
3959
|
+
a({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
3957
3960
|
], Q.prototype, "fullWidth");
|
|
3958
3961
|
E1([
|
|
3959
3962
|
m()
|
|
@@ -3973,7 +3976,7 @@ const $e = class $e extends u {
|
|
|
3973
3976
|
this.dispatchEvent(new CustomEvent(v5, { bubbles: !0, composed: !0 }));
|
|
3974
3977
|
}
|
|
3975
3978
|
render() {
|
|
3976
|
-
return
|
|
3979
|
+
return s`<span @click=${this._onClick}><slot></slot></span>`;
|
|
3977
3980
|
}
|
|
3978
3981
|
};
|
|
3979
3982
|
$e.styles = g`:host { display: contents; }`;
|
|
@@ -4038,7 +4041,7 @@ const y5 = "anduin-menu-item:click", Ee = class Ee extends u {
|
|
|
4038
4041
|
t.style.transform = `translate(${Math.round(c - n.left)}px, ${Math.round(C - n.top)}px)`, t.dataset.side = h;
|
|
4039
4042
|
}
|
|
4040
4043
|
render() {
|
|
4041
|
-
return
|
|
4044
|
+
return s`
|
|
4042
4045
|
<div class="menu__trigger" @click=${this._onTriggerClick} part="trigger">
|
|
4043
4046
|
<slot name="trigger"></slot>
|
|
4044
4047
|
</div>
|
|
@@ -4095,10 +4098,10 @@ Ee.styles = g`
|
|
|
4095
4098
|
`;
|
|
4096
4099
|
let $1 = Ee;
|
|
4097
4100
|
z1([
|
|
4098
|
-
|
|
4101
|
+
a({ type: Boolean, reflect: !0 })
|
|
4099
4102
|
], $1.prototype, "open");
|
|
4100
4103
|
z1([
|
|
4101
|
-
|
|
4104
|
+
a()
|
|
4102
4105
|
], $1.prototype, "placement");
|
|
4103
4106
|
z1([
|
|
4104
4107
|
k(".menu__trigger")
|
|
@@ -4114,7 +4117,7 @@ const ze = class ze extends u {
|
|
|
4114
4117
|
this.dispatchEvent(new CustomEvent(y5, { bubbles: !0, composed: !0 }));
|
|
4115
4118
|
}
|
|
4116
4119
|
render() {
|
|
4117
|
-
return
|
|
4120
|
+
return s`
|
|
4118
4121
|
<button
|
|
4119
4122
|
class="menu-item ${this.variant === "danger" ? "menu-item--danger" : ""}"
|
|
4120
4123
|
role="menuitem"
|
|
@@ -4122,7 +4125,7 @@ const ze = class ze extends u {
|
|
|
4122
4125
|
part="menu-item"
|
|
4123
4126
|
@click=${this._onClick}
|
|
4124
4127
|
>
|
|
4125
|
-
${this.icon ?
|
|
4128
|
+
${this.icon ? s`<anduin-icon name="${this.icon}" size="16"></anduin-icon>` : p}
|
|
4126
4129
|
<span class="menu-item__label"><slot></slot></span>
|
|
4127
4130
|
</button>
|
|
4128
4131
|
`;
|
|
@@ -4160,13 +4163,13 @@ ze.styles = g`
|
|
|
4160
4163
|
`;
|
|
4161
4164
|
let G1 = ze;
|
|
4162
4165
|
z1([
|
|
4163
|
-
|
|
4166
|
+
a()
|
|
4164
4167
|
], G1.prototype, "icon");
|
|
4165
4168
|
z1([
|
|
4166
|
-
|
|
4169
|
+
a()
|
|
4167
4170
|
], G1.prototype, "variant");
|
|
4168
4171
|
z1([
|
|
4169
|
-
|
|
4172
|
+
a({ type: Boolean })
|
|
4170
4173
|
], G1.prototype, "disabled");
|
|
4171
4174
|
customElements.get("anduin-menu") || customElements.define("anduin-menu", $1);
|
|
4172
4175
|
customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", G1);
|
|
@@ -4226,7 +4229,7 @@ const L1 = (g1 = class extends u {
|
|
|
4226
4229
|
}
|
|
4227
4230
|
render() {
|
|
4228
4231
|
const e = this._leaving, t = this.fullscreen;
|
|
4229
|
-
return
|
|
4232
|
+
return s`
|
|
4230
4233
|
<div
|
|
4231
4234
|
class=${`overlay${e ? " is-leaving" : ""}`}
|
|
4232
4235
|
@click=${this.onOverlayClick}
|
|
@@ -4238,10 +4241,10 @@ const L1 = (g1 = class extends u {
|
|
|
4238
4241
|
aria-modal="true"
|
|
4239
4242
|
aria-labelledby="modal-title"
|
|
4240
4243
|
>
|
|
4241
|
-
${this.hideHeader ? p :
|
|
4244
|
+
${this.hideHeader ? p : s` <div class="header">
|
|
4242
4245
|
<div class="header-slot">
|
|
4243
4246
|
<slot name="header">
|
|
4244
|
-
${this.heading ?
|
|
4247
|
+
${this.heading ? s`<span id="modal-title" class="title"
|
|
4245
4248
|
>${this.heading}</span
|
|
4246
4249
|
>` : p}
|
|
4247
4250
|
</slot>
|
|
@@ -4259,7 +4262,7 @@ const L1 = (g1 = class extends u {
|
|
|
4259
4262
|
<div class="body">
|
|
4260
4263
|
<slot></slot>
|
|
4261
4264
|
</div>
|
|
4262
|
-
${this.hideFooter ? p :
|
|
4265
|
+
${this.hideFooter ? p : s`<div class="footer"><slot name="footer"></slot></div>`}
|
|
4263
4266
|
</div>
|
|
4264
4267
|
</div>
|
|
4265
4268
|
`;
|
|
@@ -4458,22 +4461,22 @@ const L1 = (g1 = class extends u {
|
|
|
4458
4461
|
"1160"
|
|
4459
4462
|
]), g1);
|
|
4460
4463
|
S1([
|
|
4461
|
-
|
|
4464
|
+
a({ type: Boolean, reflect: !0 })
|
|
4462
4465
|
], L1.prototype, "open");
|
|
4463
4466
|
S1([
|
|
4464
|
-
|
|
4467
|
+
a()
|
|
4465
4468
|
], L1.prototype, "heading");
|
|
4466
4469
|
S1([
|
|
4467
|
-
|
|
4470
|
+
a({ type: Boolean, attribute: "hide-header" })
|
|
4468
4471
|
], L1.prototype, "hideHeader");
|
|
4469
4472
|
S1([
|
|
4470
|
-
|
|
4473
|
+
a({ type: Boolean, attribute: "hide-footer" })
|
|
4471
4474
|
], L1.prototype, "hideFooter");
|
|
4472
4475
|
S1([
|
|
4473
|
-
|
|
4476
|
+
a({ attribute: "max-width" })
|
|
4474
4477
|
], L1.prototype, "maxWidth");
|
|
4475
4478
|
S1([
|
|
4476
|
-
|
|
4479
|
+
a({ type: Boolean })
|
|
4477
4480
|
], L1.prototype, "fullscreen");
|
|
4478
4481
|
S1([
|
|
4479
4482
|
m()
|
|
@@ -4531,7 +4534,7 @@ const H5 = "anduin-radio:change", rt = "anduin-radio-group:change", Se = class S
|
|
|
4531
4534
|
!this.checked && this.disabled ? "radio__circle--disabled" : "",
|
|
4532
4535
|
!this.checked && !this.readonly && !this.disabled ? "radio__circle--unchecked" : ""
|
|
4533
4536
|
].filter(Boolean).join(" ");
|
|
4534
|
-
return
|
|
4537
|
+
return s`
|
|
4535
4538
|
<label class="${this.disabled ? "is-disabled" : ""}">
|
|
4536
4539
|
<div
|
|
4537
4540
|
class="radio ${e ? "radio--interactive" : ""} ${this.disabled ? "radio--disabled" : ""}"
|
|
@@ -4626,26 +4629,26 @@ Se.styles = g`
|
|
|
4626
4629
|
transform: scale(1);
|
|
4627
4630
|
}
|
|
4628
4631
|
`;
|
|
4629
|
-
let
|
|
4632
|
+
let a1 = Se;
|
|
4630
4633
|
d1([
|
|
4631
|
-
|
|
4632
|
-
],
|
|
4634
|
+
a({ type: Boolean })
|
|
4635
|
+
], a1.prototype, "checked");
|
|
4633
4636
|
d1([
|
|
4634
|
-
|
|
4635
|
-
],
|
|
4637
|
+
a({ type: Boolean })
|
|
4638
|
+
], a1.prototype, "disabled");
|
|
4636
4639
|
d1([
|
|
4637
|
-
|
|
4638
|
-
],
|
|
4640
|
+
a({ type: Boolean })
|
|
4641
|
+
], a1.prototype, "readonly");
|
|
4639
4642
|
d1([
|
|
4640
|
-
|
|
4641
|
-
],
|
|
4643
|
+
a()
|
|
4644
|
+
], a1.prototype, "value");
|
|
4642
4645
|
d1([
|
|
4643
|
-
|
|
4644
|
-
],
|
|
4646
|
+
a()
|
|
4647
|
+
], a1.prototype, "name");
|
|
4645
4648
|
d1([
|
|
4646
|
-
|
|
4647
|
-
],
|
|
4648
|
-
customElements.get("anduin-radio") || customElements.define("anduin-radio",
|
|
4649
|
+
a()
|
|
4650
|
+
], a1.prototype, "inputid");
|
|
4651
|
+
customElements.get("anduin-radio") || customElements.define("anduin-radio", a1);
|
|
4649
4652
|
const Ae = class Ae extends u {
|
|
4650
4653
|
constructor() {
|
|
4651
4654
|
super(...arguments), this.value = "", this.name = "", this.orientation = "vertical", this._onRadioChange = (e) => {
|
|
@@ -4667,7 +4670,7 @@ const Ae = class Ae extends u {
|
|
|
4667
4670
|
super.disconnectedCallback(), this.removeEventListener(H5, this._onRadioChange);
|
|
4668
4671
|
}
|
|
4669
4672
|
render() {
|
|
4670
|
-
return
|
|
4673
|
+
return s`
|
|
4671
4674
|
<div class="group group--${this.orientation}" role="radiogroup" part="group">
|
|
4672
4675
|
<slot></slot>
|
|
4673
4676
|
</div>
|
|
@@ -4686,13 +4689,13 @@ Ae.styles = g`
|
|
|
4686
4689
|
`;
|
|
4687
4690
|
let K1 = Ae;
|
|
4688
4691
|
d1([
|
|
4689
|
-
|
|
4692
|
+
a()
|
|
4690
4693
|
], K1.prototype, "value");
|
|
4691
4694
|
d1([
|
|
4692
|
-
|
|
4695
|
+
a()
|
|
4693
4696
|
], K1.prototype, "name");
|
|
4694
4697
|
d1([
|
|
4695
|
-
|
|
4698
|
+
a()
|
|
4696
4699
|
], K1.prototype, "orientation");
|
|
4697
4700
|
customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", K1);
|
|
4698
4701
|
var lt = Object.defineProperty, A1 = (r, e, t, o) => {
|
|
@@ -4710,12 +4713,12 @@ const j4 = [
|
|
|
4710
4713
|
{ bg: "#F97066", text: "#ffffff" },
|
|
4711
4714
|
{ bg: "#7A5AF8", text: "#ffffff" }
|
|
4712
4715
|
];
|
|
4713
|
-
function
|
|
4716
|
+
function at(r) {
|
|
4714
4717
|
let e = 0;
|
|
4715
4718
|
for (let t = 0; t < r.length; t++) e = e * 31 + r.charCodeAt(t) >>> 0;
|
|
4716
4719
|
return j4[e % j4.length];
|
|
4717
4720
|
}
|
|
4718
|
-
function
|
|
4721
|
+
function st(r, e = 2) {
|
|
4719
4722
|
var i;
|
|
4720
4723
|
const t = r.trim().split(/\s+/), o = ((i = t[0]) == null ? void 0 : i[0]) ?? "";
|
|
4721
4724
|
return e < 2 || t.length === 1 ? o.toUpperCase() : (o + (t[t.length - 1][0] ?? "")).toUpperCase();
|
|
@@ -4731,8 +4734,8 @@ const De = class De extends u {
|
|
|
4731
4734
|
return this.size <= 16 ? 10 : this.size <= 20 ? 12 : this.size <= 24 ? 14 : 18;
|
|
4732
4735
|
}
|
|
4733
4736
|
render() {
|
|
4734
|
-
const e = !!this.src && !this._imgError, t = this.name || this.icon ?
|
|
4735
|
-
return
|
|
4737
|
+
const e = !!this.src && !this._imgError, t = this.name || this.icon ? at(this.name || this.icon) : { bg: "#F2F4F7", text: "#667085" }, o = this.name ? st(this.name, this.size <= 20 ? 1 : 2) : "";
|
|
4738
|
+
return s`
|
|
4736
4739
|
<div
|
|
4737
4740
|
class="avatar avatar--${this.shape} avatar--${this.size}"
|
|
4738
4741
|
style=${e ? "" : `background:${t.bg}`}
|
|
@@ -4740,7 +4743,7 @@ const De = class De extends u {
|
|
|
4740
4743
|
role="img"
|
|
4741
4744
|
part="avatar"
|
|
4742
4745
|
>
|
|
4743
|
-
${e ?
|
|
4746
|
+
${e ? s`<img src=${this.src} alt=${this.alt || this.name} @error=${this._onImgError} />` : this.icon ? s`<span style="color:${t.text};width:100%;height:100%;display:flex;align-items:center;justify-content:center"><anduin-icon name=${this.icon} size=${this._iconSize()}></anduin-icon></span>` : o ? s`<span style="color:${t.text};background:${t.bg};width:100%;height:100%;display:flex;align-items:center;justify-content:center">${o}</span>` : s`<span style="color:#98A2B3;background:#F2F4F7;width:100%;height:100%;display:flex;align-items:center;justify-content:center">
|
|
4744
4747
|
<svg width="60%" height="60%" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4745
4748
|
<path d="M8 8C9.93 8 11.5 6.43 11.5 4.5S9.93 1 8 1 4.5 2.57 4.5 4.5 6.07 8 8 8zm0 1.5C5.66 9.5 1 10.67 1 13v1h14v-1c0-2.33-4.66-3.5-7-3.5z" fill="currentColor"/>
|
|
4746
4749
|
</svg>
|
|
@@ -4780,22 +4783,22 @@ De.styles = g`
|
|
|
4780
4783
|
`;
|
|
4781
4784
|
let e1 = De;
|
|
4782
4785
|
A1([
|
|
4783
|
-
|
|
4786
|
+
a()
|
|
4784
4787
|
], e1.prototype, "src");
|
|
4785
4788
|
A1([
|
|
4786
|
-
|
|
4789
|
+
a({ reflect: !0 })
|
|
4787
4790
|
], e1.prototype, "name");
|
|
4788
4791
|
A1([
|
|
4789
|
-
|
|
4792
|
+
a()
|
|
4790
4793
|
], e1.prototype, "alt");
|
|
4791
4794
|
A1([
|
|
4792
|
-
|
|
4795
|
+
a()
|
|
4793
4796
|
], e1.prototype, "icon");
|
|
4794
4797
|
A1([
|
|
4795
|
-
|
|
4798
|
+
a({ type: Number })
|
|
4796
4799
|
], e1.prototype, "size");
|
|
4797
4800
|
A1([
|
|
4798
|
-
|
|
4801
|
+
a()
|
|
4799
4802
|
], e1.prototype, "shape");
|
|
4800
4803
|
A1([
|
|
4801
4804
|
m()
|
|
@@ -5115,7 +5118,7 @@ const Pe = class Pe extends u {
|
|
|
5115
5118
|
}
|
|
5116
5119
|
render() {
|
|
5117
5120
|
const e = gt(this.type, this.size);
|
|
5118
|
-
return e ?
|
|
5121
|
+
return e ? s`
|
|
5119
5122
|
<svg
|
|
5120
5123
|
width=${this.size}
|
|
5121
5124
|
height=${this.size}
|
|
@@ -5136,10 +5139,10 @@ Pe.styles = g`
|
|
|
5136
5139
|
`;
|
|
5137
5140
|
let V2 = Pe;
|
|
5138
5141
|
Z3([
|
|
5139
|
-
|
|
5142
|
+
a()
|
|
5140
5143
|
], V2.prototype, "type");
|
|
5141
5144
|
Z3([
|
|
5142
|
-
|
|
5145
|
+
a({ type: Number })
|
|
5143
5146
|
], V2.prototype, "size");
|
|
5144
5147
|
customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", V2);
|
|
5145
5148
|
var vt = Object.defineProperty, D1 = (r, e, t, o) => {
|
|
@@ -5174,7 +5177,7 @@ const U4 = {
|
|
|
5174
5177
|
}
|
|
5175
5178
|
render() {
|
|
5176
5179
|
const e = U4[this.variant] ?? U4.gray;
|
|
5177
|
-
return
|
|
5180
|
+
return s`
|
|
5178
5181
|
<div
|
|
5179
5182
|
class="toast toast--${this.variant} ${this._dismissing ? "toast--dismissing" : ""}"
|
|
5180
5183
|
part="toast"
|
|
@@ -5185,8 +5188,8 @@ const U4 = {
|
|
|
5185
5188
|
<anduin-icon name=${e} size="16"></anduin-icon>
|
|
5186
5189
|
</div>
|
|
5187
5190
|
<div class="toast__body">
|
|
5188
|
-
${this.heading ?
|
|
5189
|
-
${this.description ?
|
|
5191
|
+
${this.heading ? s`<div class="toast__title">${this.heading}</div>` : ""}
|
|
5192
|
+
${this.description ? s`<div class="toast__description">${this.description}</div>` : s`<div class="toast__description"><slot></slot></div>`}
|
|
5190
5193
|
</div>
|
|
5191
5194
|
<button
|
|
5192
5195
|
class="toast__close"
|
|
@@ -5329,13 +5332,13 @@ Be.styles = g`
|
|
|
5329
5332
|
`;
|
|
5330
5333
|
let m1 = Be;
|
|
5331
5334
|
D1([
|
|
5332
|
-
|
|
5335
|
+
a()
|
|
5333
5336
|
], m1.prototype, "variant");
|
|
5334
5337
|
D1([
|
|
5335
|
-
|
|
5338
|
+
a()
|
|
5336
5339
|
], m1.prototype, "heading");
|
|
5337
5340
|
D1([
|
|
5338
|
-
|
|
5341
|
+
a()
|
|
5339
5342
|
], m1.prototype, "description");
|
|
5340
5343
|
D1([
|
|
5341
5344
|
m()
|
|
@@ -5371,10 +5374,10 @@ const Fe = class Fe extends u {
|
|
|
5371
5374
|
e.stopPropagation(), this._removeById(t);
|
|
5372
5375
|
}
|
|
5373
5376
|
render() {
|
|
5374
|
-
return
|
|
5377
|
+
return s`
|
|
5375
5378
|
<div class="toaster toaster--${this.position}" part="toaster">
|
|
5376
5379
|
${this._toasts.map(
|
|
5377
|
-
({ id: e, opts: t }) =>
|
|
5380
|
+
({ id: e, opts: t }) => s`
|
|
5378
5381
|
<anduin-toast
|
|
5379
5382
|
data-id=${e}
|
|
5380
5383
|
variant=${t.variant ?? "gray"}
|
|
@@ -5437,7 +5440,7 @@ Fe.styles = g`
|
|
|
5437
5440
|
`;
|
|
5438
5441
|
let x2 = Fe;
|
|
5439
5442
|
D1([
|
|
5440
|
-
|
|
5443
|
+
a()
|
|
5441
5444
|
], x2.prototype, "position");
|
|
5442
5445
|
D1([
|
|
5443
5446
|
m()
|
|
@@ -5473,7 +5476,7 @@ var yt = Object.defineProperty, k3 = (r, e, t, o) => {
|
|
|
5473
5476
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5474
5477
|
return i && yt(e, t, i), i;
|
|
5475
5478
|
};
|
|
5476
|
-
const Ht = "anduin-switcher:change",
|
|
5479
|
+
const Ht = "anduin-switcher:change", Oe = class Oe extends u {
|
|
5477
5480
|
constructor() {
|
|
5478
5481
|
super(...arguments), this.checked = !1, this.disabled = !1;
|
|
5479
5482
|
}
|
|
@@ -5485,7 +5488,7 @@ const Ht = "anduin-switcher:change", Ie = class Ie extends u {
|
|
|
5485
5488
|
}));
|
|
5486
5489
|
}
|
|
5487
5490
|
render() {
|
|
5488
|
-
return
|
|
5491
|
+
return s`
|
|
5489
5492
|
<label class="${this.disabled ? "is-disabled" : ""}">
|
|
5490
5493
|
<div class="track${this.checked ? " track--checked" : ""}" part="track">
|
|
5491
5494
|
<input
|
|
@@ -5502,7 +5505,7 @@ const Ht = "anduin-switcher:change", Ie = class Ie extends u {
|
|
|
5502
5505
|
`;
|
|
5503
5506
|
}
|
|
5504
5507
|
};
|
|
5505
|
-
|
|
5508
|
+
Oe.styles = g`
|
|
5506
5509
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
5507
5510
|
|
|
5508
5511
|
label {
|
|
@@ -5566,12 +5569,12 @@ Ie.styles = g`
|
|
|
5566
5569
|
line-height: 20px;
|
|
5567
5570
|
}
|
|
5568
5571
|
`;
|
|
5569
|
-
let M2 =
|
|
5572
|
+
let M2 = Oe;
|
|
5570
5573
|
k3([
|
|
5571
|
-
|
|
5574
|
+
a({ type: Boolean })
|
|
5572
5575
|
], M2.prototype, "checked");
|
|
5573
5576
|
k3([
|
|
5574
|
-
|
|
5577
|
+
a({ type: Boolean })
|
|
5575
5578
|
], M2.prototype, "disabled");
|
|
5576
5579
|
customElements.get("anduin-switcher") || customElements.define("anduin-switcher", M2);
|
|
5577
5580
|
var _t = Object.defineProperty, E = (r, e, t, o) => {
|
|
@@ -5579,7 +5582,7 @@ var _t = Object.defineProperty, E = (r, e, t, o) => {
|
|
|
5579
5582
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5580
5583
|
return i && _t(e, t, i), i;
|
|
5581
5584
|
};
|
|
5582
|
-
const G4 = "anduin-dropdown:change",
|
|
5585
|
+
const G4 = "anduin-dropdown:change", Ie = class Ie extends u {
|
|
5583
5586
|
constructor() {
|
|
5584
5587
|
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) => {
|
|
5585
5588
|
var t;
|
|
@@ -5673,7 +5676,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends u {
|
|
|
5673
5676
|
}
|
|
5674
5677
|
render() {
|
|
5675
5678
|
const e = this.options.find((l) => l.value === this.value), t = (e == null ? void 0 : e.label) ?? "", o = e ? e.icon ?? "" : this.icon, i = this._filteredOptions, n = this.clearable && !!this.value && !this.disabled;
|
|
5676
|
-
return
|
|
5679
|
+
return s`
|
|
5677
5680
|
<button
|
|
5678
5681
|
class="trigger trigger--${this.appearance} trigger--${this.variant}${this.size === "small" ? " trigger--small" : ""}${this.value ? " has-value" : ""}"
|
|
5679
5682
|
part="trigger"
|
|
@@ -5683,13 +5686,13 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends u {
|
|
|
5683
5686
|
@click=${this._onTriggerClick}
|
|
5684
5687
|
@keydown=${this._onKeyDown}
|
|
5685
5688
|
>
|
|
5686
|
-
${o && t ?
|
|
5689
|
+
${o && t ? s`<anduin-icon name="${o}" size="16"></anduin-icon>` : p}
|
|
5687
5690
|
<span class="trigger__label${t ? "" : " trigger__label--placeholder"}">${t || this.placeholder}</span>
|
|
5688
5691
|
<span class="trigger__caret${n ? " trigger__caret--clearable" : ""}">
|
|
5689
5692
|
<span class="trigger__chevron">
|
|
5690
5693
|
<anduin-icon name="caretDown" size="16"></anduin-icon>
|
|
5691
5694
|
</span>
|
|
5692
|
-
${n ?
|
|
5695
|
+
${n ? s`
|
|
5693
5696
|
<span class="trigger__clear" @click=${this._onClear}>
|
|
5694
5697
|
<anduin-icon name="crossSmall" size="16"></anduin-icon>
|
|
5695
5698
|
</span>
|
|
@@ -5699,7 +5702,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends u {
|
|
|
5699
5702
|
|
|
5700
5703
|
<div class="panel${this._open ? " panel--open" : ""}" part="panel" @keydown=${this._onKeyDown}>
|
|
5701
5704
|
<div class="panel__inner" role="listbox">
|
|
5702
|
-
${this.searchable ?
|
|
5705
|
+
${this.searchable ? s`
|
|
5703
5706
|
<div class="search-wrap">
|
|
5704
5707
|
<anduin-input
|
|
5705
5708
|
placeholder="Search ..."
|
|
@@ -5711,7 +5714,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends u {
|
|
|
5711
5714
|
</div>
|
|
5712
5715
|
` : p}
|
|
5713
5716
|
<div class="options">
|
|
5714
|
-
${i.length ? i.map((l, d) =>
|
|
5717
|
+
${i.length ? i.map((l, d) => s`
|
|
5715
5718
|
<div
|
|
5716
5719
|
class="option${l.disabled ? " option--disabled" : ""}${l.description ? " option--described" : ""}${d === this._activeIndex ? " option--active" : ""}"
|
|
5717
5720
|
role="option"
|
|
@@ -5723,22 +5726,22 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends u {
|
|
|
5723
5726
|
}}
|
|
5724
5727
|
>
|
|
5725
5728
|
<span class="option__check">
|
|
5726
|
-
${l.value === this.value ?
|
|
5729
|
+
${l.value === this.value ? s`<anduin-icon name="checkSmall" size="16"></anduin-icon>` : p}
|
|
5727
5730
|
</span>
|
|
5728
|
-
${l.icon ?
|
|
5729
|
-
${l.description ?
|
|
5731
|
+
${l.icon ? s`<anduin-icon name="${l.icon}" size="16"></anduin-icon>` : p}
|
|
5732
|
+
${l.description ? s`<span class="option__text">
|
|
5730
5733
|
<span class="option__label">${l.label}</span>
|
|
5731
5734
|
<span class="option__description" part="option-description">${l.description}</span>
|
|
5732
|
-
</span>` :
|
|
5735
|
+
</span>` : s`<span class="option__label">${l.label}</span>`}
|
|
5733
5736
|
</div>
|
|
5734
|
-
`) :
|
|
5737
|
+
`) : s`<div class="empty">No results</div>`}
|
|
5735
5738
|
</div>
|
|
5736
5739
|
</div>
|
|
5737
5740
|
</div>
|
|
5738
5741
|
`;
|
|
5739
5742
|
}
|
|
5740
5743
|
};
|
|
5741
|
-
|
|
5744
|
+
Ie.styles = g`
|
|
5742
5745
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
5743
5746
|
:host([full-width]) { display: block; width: 100%; }
|
|
5744
5747
|
:host([full-width]) .trigger { width: 100%; }
|
|
@@ -5837,7 +5840,18 @@ Oe.styles = g`
|
|
|
5837
5840
|
}
|
|
5838
5841
|
.trigger--small { height: 24px; padding: 0 6px 0 8px; font-size: 11px; font-weight: 500; }
|
|
5839
5842
|
|
|
5840
|
-
|
|
5843
|
+
/* Caret and × take the trigger's ink (0.0.62). Both used to be pinned to
|
|
5844
|
+
gray (caret gray-7, × gray-6), which matched only outlined/plain gray9:
|
|
5845
|
+
an outlined primary dropdown drew blue text and a blue border around a
|
|
5846
|
+
gray caret, and a filled primary one a gray caret on blue — so a filter
|
|
5847
|
+
switched to variant="primary" to show it is active looked half-styled.
|
|
5848
|
+
currentColor makes every variant's caret match its own label — the gray
|
|
5849
|
+
ones included. A first cut kept gray0/gray9 pinned to gray-7 so they
|
|
5850
|
+
would look exactly as before, but that preserved two bugs: filled gray9
|
|
5851
|
+
drew a gray-7 caret on its gray-7 fill (invisible), and filled gray0 a
|
|
5852
|
+
gray-7 caret beside gray-8 text. Outlined/plain gray9 are unchanged in
|
|
5853
|
+
practice, since their text is gray-7 already. */
|
|
5854
|
+
.trigger__chevron { display: flex; transition: opacity 100ms; color: currentColor; }
|
|
5841
5855
|
.trigger__clear {
|
|
5842
5856
|
position: absolute;
|
|
5843
5857
|
inset: 0;
|
|
@@ -5846,11 +5860,28 @@ Oe.styles = g`
|
|
|
5846
5860
|
justify-content: center;
|
|
5847
5861
|
opacity: 0;
|
|
5848
5862
|
transition: opacity 100ms;
|
|
5849
|
-
color:
|
|
5863
|
+
color: currentColor;
|
|
5850
5864
|
border-radius: 3px;
|
|
5851
5865
|
}
|
|
5852
|
-
|
|
5853
|
-
|
|
5866
|
+
/* Hover/press plate on a coloured trigger: a tint of the ink itself, so it
|
|
5867
|
+
is a lighter blue under a white × on filled primary and a pale blue under
|
|
5868
|
+
a blue × on outlined primary. The gray variants' fixed gray-3 plate would
|
|
5869
|
+
put a white × on near-white on every filled variant. */
|
|
5870
|
+
.trigger__clear:hover { background-color: color-mix(in srgb, currentColor 16%, transparent); }
|
|
5871
|
+
.trigger__clear:active { background-color: color-mix(in srgb, currentColor 24%, transparent); }
|
|
5872
|
+
/* The × on the light-surface gray triggers keeps the subdued gray-6 at rest
|
|
5873
|
+
and gray-9 on a gray-3 plate when hovered, as before. Not filled gray9:
|
|
5874
|
+
its fill is gray-7, so a gray-6 × was as invisible there as the old
|
|
5875
|
+
caret; it takes currentColor (white) and the tint plate above. */
|
|
5876
|
+
.trigger--gray0 .trigger__clear,
|
|
5877
|
+
.trigger--outlined.trigger--gray9 .trigger__clear,
|
|
5878
|
+
.trigger--plain.trigger--gray9 .trigger__clear { color: var(--color-gray-6, #667085); }
|
|
5879
|
+
.trigger--gray0 .trigger__clear:hover,
|
|
5880
|
+
.trigger--outlined.trigger--gray9 .trigger__clear:hover,
|
|
5881
|
+
.trigger--plain.trigger--gray9 .trigger__clear:hover { color: var(--color-gray-9, #101828); background-color: var(--color-gray-3); }
|
|
5882
|
+
.trigger--gray0 .trigger__clear:active,
|
|
5883
|
+
.trigger--outlined.trigger--gray9 .trigger__clear:active,
|
|
5884
|
+
.trigger--plain.trigger--gray9 .trigger__clear:active { background-color: var(--color-gray-4); }
|
|
5854
5885
|
/* Scoped to --clearable so the chevron only fades when there is a × to
|
|
5855
5886
|
reveal: unscoped, it fades out to show a × that is not there and the caret
|
|
5856
5887
|
is simply gone while hovered. --clearable is set under exactly the
|
|
@@ -5955,42 +5986,42 @@ Oe.styles = g`
|
|
|
5955
5986
|
text-align: center;
|
|
5956
5987
|
}
|
|
5957
5988
|
`;
|
|
5958
|
-
let w =
|
|
5989
|
+
let w = Ie;
|
|
5959
5990
|
E([
|
|
5960
|
-
|
|
5991
|
+
a()
|
|
5961
5992
|
], w.prototype, "value");
|
|
5962
5993
|
E([
|
|
5963
|
-
|
|
5994
|
+
a()
|
|
5964
5995
|
], w.prototype, "placeholder");
|
|
5965
5996
|
E([
|
|
5966
|
-
|
|
5997
|
+
a({ attribute: !1 })
|
|
5967
5998
|
], w.prototype, "options");
|
|
5968
5999
|
E([
|
|
5969
|
-
|
|
6000
|
+
a()
|
|
5970
6001
|
], w.prototype, "icon");
|
|
5971
6002
|
E([
|
|
5972
|
-
|
|
6003
|
+
a({ type: Boolean })
|
|
5973
6004
|
], w.prototype, "searchable");
|
|
5974
6005
|
E([
|
|
5975
|
-
|
|
6006
|
+
a({ type: Boolean })
|
|
5976
6007
|
], w.prototype, "disabled");
|
|
5977
6008
|
E([
|
|
5978
|
-
|
|
6009
|
+
a()
|
|
5979
6010
|
], w.prototype, "placement");
|
|
5980
6011
|
E([
|
|
5981
|
-
|
|
6012
|
+
a()
|
|
5982
6013
|
], w.prototype, "appearance");
|
|
5983
6014
|
E([
|
|
5984
|
-
|
|
6015
|
+
a()
|
|
5985
6016
|
], w.prototype, "variant");
|
|
5986
6017
|
E([
|
|
5987
|
-
|
|
6018
|
+
a()
|
|
5988
6019
|
], w.prototype, "size");
|
|
5989
6020
|
E([
|
|
5990
|
-
|
|
6021
|
+
a({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
5991
6022
|
], w.prototype, "fullWidth");
|
|
5992
6023
|
E([
|
|
5993
|
-
|
|
6024
|
+
a({ converter: (r) => r !== "false" })
|
|
5994
6025
|
], w.prototype, "clearable");
|
|
5995
6026
|
E([
|
|
5996
6027
|
m()
|
|
@@ -6073,8 +6104,8 @@ const l2 = "anduin-close", r5 = "anduin-after-close", Vt = 300, K4 = 250, xt = /
|
|
|
6073
6104
|
}
|
|
6074
6105
|
render() {
|
|
6075
6106
|
const e = this._leaving;
|
|
6076
|
-
return
|
|
6077
|
-
${this.allowInteractOutside ? p :
|
|
6107
|
+
return s`
|
|
6108
|
+
${this.allowInteractOutside ? p : s`<div class="backdrop" @click=${this._onBackdropClick}></div>`}
|
|
6078
6109
|
<div
|
|
6079
6110
|
class=${`drawer${e ? " is-leaving" : ""}`}
|
|
6080
6111
|
style="width: ${this._width}px"
|
|
@@ -6089,9 +6120,9 @@ const l2 = "anduin-close", r5 = "anduin-after-close", Vt = 300, K4 = 250, xt = /
|
|
|
6089
6120
|
@pointerup=${this._onResizeEnd}
|
|
6090
6121
|
@pointercancel=${this._onResizeEnd}
|
|
6091
6122
|
></div>
|
|
6092
|
-
${this.hideHeader ? p :
|
|
6123
|
+
${this.hideHeader ? p : s` <div class="header">
|
|
6093
6124
|
<slot name="header">
|
|
6094
|
-
${this.heading ?
|
|
6125
|
+
${this.heading ? s`<span id="drawer-title" class="title"
|
|
6095
6126
|
>${this.heading}</span
|
|
6096
6127
|
>` : p}
|
|
6097
6128
|
</slot>
|
|
@@ -6107,7 +6138,7 @@ const l2 = "anduin-close", r5 = "anduin-after-close", Vt = 300, K4 = 250, xt = /
|
|
|
6107
6138
|
<div class="body">
|
|
6108
6139
|
<slot></slot>
|
|
6109
6140
|
</div>
|
|
6110
|
-
${this.hideFooter ? p :
|
|
6141
|
+
${this.hideFooter ? p : s`<div class="footer"><slot name="footer"></slot></div>`}
|
|
6111
6142
|
</div>
|
|
6112
6143
|
`;
|
|
6113
6144
|
}
|
|
@@ -6276,25 +6307,25 @@ Te.styles = g`
|
|
|
6276
6307
|
`;
|
|
6277
6308
|
let G = Te;
|
|
6278
6309
|
c1([
|
|
6279
|
-
|
|
6310
|
+
a({ type: Boolean, reflect: !0 })
|
|
6280
6311
|
], G.prototype, "open");
|
|
6281
6312
|
c1([
|
|
6282
|
-
|
|
6313
|
+
a()
|
|
6283
6314
|
], G.prototype, "heading");
|
|
6284
6315
|
c1([
|
|
6285
|
-
|
|
6316
|
+
a({ type: Boolean, attribute: "hide-header" })
|
|
6286
6317
|
], G.prototype, "hideHeader");
|
|
6287
6318
|
c1([
|
|
6288
|
-
|
|
6319
|
+
a({ type: Boolean, attribute: "hide-footer" })
|
|
6289
6320
|
], G.prototype, "hideFooter");
|
|
6290
6321
|
c1([
|
|
6291
|
-
|
|
6322
|
+
a({ attribute: "default-width" })
|
|
6292
6323
|
], G.prototype, "defaultWidth");
|
|
6293
6324
|
c1([
|
|
6294
|
-
|
|
6325
|
+
a({ reflect: !0 })
|
|
6295
6326
|
], G.prototype, "placement");
|
|
6296
6327
|
c1([
|
|
6297
|
-
|
|
6328
|
+
a({ type: Boolean, attribute: "allow-interact-outside" })
|
|
6298
6329
|
], G.prototype, "allowInteractOutside");
|
|
6299
6330
|
c1([
|
|
6300
6331
|
m()
|
|
@@ -6429,9 +6460,9 @@ const l5 = "anduin-suggestion:change", Zt = "anduin-suggestion:select", kt = "an
|
|
|
6429
6460
|
}
|
|
6430
6461
|
render() {
|
|
6431
6462
|
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", o = !!this.startIcon, i = !!this.endIcon || this.clearable && !!this.value, n = this.clearable && !!this.value && !this.disabled && !this.readonly, l = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", d = this.size === "small" ? "10" : this.size === "large" ? "16" : "14", c = this._filteredSuggestions, C = this._open && (!this.hideWhenEmpty || c.length > 0);
|
|
6432
|
-
return
|
|
6463
|
+
return s`
|
|
6433
6464
|
<div class="input-wrapper">
|
|
6434
|
-
${o ?
|
|
6465
|
+
${o ? s`
|
|
6435
6466
|
<span class="input__start">
|
|
6436
6467
|
<anduin-icon name=${this.startIcon} size=${l}></anduin-icon>
|
|
6437
6468
|
</span>
|
|
@@ -6458,14 +6489,14 @@ const l5 = "anduin-suggestion:change", Zt = "anduin-suggestion:select", kt = "an
|
|
|
6458
6489
|
@keydown=${this._onKeyDown}
|
|
6459
6490
|
/>
|
|
6460
6491
|
|
|
6461
|
-
${i ?
|
|
6492
|
+
${i ? s`
|
|
6462
6493
|
<span class="input__end">
|
|
6463
|
-
${n ?
|
|
6494
|
+
${n ? s`
|
|
6464
6495
|
<button class="input__clear" type="button" @click=${this._onClear} aria-label="Clear">
|
|
6465
6496
|
<anduin-icon name="cross" size=${d}></anduin-icon>
|
|
6466
6497
|
</button>
|
|
6467
6498
|
` : p}
|
|
6468
|
-
${this.endIcon ?
|
|
6499
|
+
${this.endIcon ? s`
|
|
6469
6500
|
<anduin-icon name=${this.endIcon} size=${l}></anduin-icon>
|
|
6470
6501
|
` : p}
|
|
6471
6502
|
</span>
|
|
@@ -6475,7 +6506,7 @@ const l5 = "anduin-suggestion:change", Zt = "anduin-suggestion:select", kt = "an
|
|
|
6475
6506
|
<div class="panel${C ? " panel--open" : ""}" part="panel">
|
|
6476
6507
|
<div class="panel__inner" role="listbox">
|
|
6477
6508
|
<div class="options">
|
|
6478
|
-
${c.length ? c.map((h, f) =>
|
|
6509
|
+
${c.length ? c.map((h, f) => s`
|
|
6479
6510
|
<div
|
|
6480
6511
|
class="option${f === this._activeIndex ? " option--active" : ""}"
|
|
6481
6512
|
role="option"
|
|
@@ -6487,10 +6518,10 @@ const l5 = "anduin-suggestion:change", Zt = "anduin-suggestion:select", kt = "an
|
|
|
6487
6518
|
y.preventDefault(), this._selectSuggestion(h);
|
|
6488
6519
|
}}
|
|
6489
6520
|
>
|
|
6490
|
-
${h.icon ?
|
|
6521
|
+
${h.icon ? s`<anduin-icon name=${h.icon} size="16"></anduin-icon>` : p}
|
|
6491
6522
|
<span class="option__label">${h.label ?? h.value}</span>
|
|
6492
6523
|
</div>
|
|
6493
|
-
`) :
|
|
6524
|
+
`) : s`<div class="empty">${this.emptyText}</div>`}
|
|
6494
6525
|
</div>
|
|
6495
6526
|
</div>
|
|
6496
6527
|
</div>
|
|
@@ -6612,46 +6643,46 @@ Ne.styles = g`
|
|
|
6612
6643
|
`;
|
|
6613
6644
|
let Z = Ne;
|
|
6614
6645
|
z([
|
|
6615
|
-
|
|
6646
|
+
a()
|
|
6616
6647
|
], Z.prototype, "value");
|
|
6617
6648
|
z([
|
|
6618
|
-
|
|
6649
|
+
a()
|
|
6619
6650
|
], Z.prototype, "size");
|
|
6620
6651
|
z([
|
|
6621
|
-
|
|
6652
|
+
a({ type: Boolean })
|
|
6622
6653
|
], Z.prototype, "disabled");
|
|
6623
6654
|
z([
|
|
6624
|
-
|
|
6655
|
+
a({ type: Boolean })
|
|
6625
6656
|
], Z.prototype, "readonly");
|
|
6626
6657
|
z([
|
|
6627
|
-
|
|
6658
|
+
a()
|
|
6628
6659
|
], Z.prototype, "placeholder");
|
|
6629
6660
|
z([
|
|
6630
|
-
|
|
6661
|
+
a()
|
|
6631
6662
|
], Z.prototype, "inputid");
|
|
6632
6663
|
z([
|
|
6633
|
-
|
|
6664
|
+
a()
|
|
6634
6665
|
], Z.prototype, "status");
|
|
6635
6666
|
z([
|
|
6636
|
-
|
|
6667
|
+
a({ attribute: "start-icon" })
|
|
6637
6668
|
], Z.prototype, "startIcon");
|
|
6638
6669
|
z([
|
|
6639
|
-
|
|
6670
|
+
a({ attribute: "end-icon" })
|
|
6640
6671
|
], Z.prototype, "endIcon");
|
|
6641
6672
|
z([
|
|
6642
|
-
|
|
6673
|
+
a({ type: Boolean })
|
|
6643
6674
|
], Z.prototype, "clearable");
|
|
6644
6675
|
z([
|
|
6645
|
-
|
|
6676
|
+
a({ attribute: !1 })
|
|
6646
6677
|
], Z.prototype, "suggestions");
|
|
6647
6678
|
z([
|
|
6648
|
-
|
|
6679
|
+
a({ type: Boolean })
|
|
6649
6680
|
], Z.prototype, "filter");
|
|
6650
6681
|
z([
|
|
6651
|
-
|
|
6682
|
+
a({ type: Boolean, attribute: "hide-when-empty" })
|
|
6652
6683
|
], Z.prototype, "hideWhenEmpty");
|
|
6653
6684
|
z([
|
|
6654
|
-
|
|
6685
|
+
a({ attribute: "empty-text" })
|
|
6655
6686
|
], Z.prototype, "emptyText");
|
|
6656
6687
|
z([
|
|
6657
6688
|
m()
|
|
@@ -6707,7 +6738,7 @@ const $t = "anduin-navigation:change", V5 = "anduin-navigation-item:item-click",
|
|
|
6707
6738
|
t.selected = t.value === e, t.theme = this.theme;
|
|
6708
6739
|
}
|
|
6709
6740
|
render() {
|
|
6710
|
-
return
|
|
6741
|
+
return s`
|
|
6711
6742
|
<div class="navigation navigation--${this.alignment}" role="navigation" part="navigation">
|
|
6712
6743
|
<slot @slotchange=${this.syncItems}></slot>
|
|
6713
6744
|
</div>
|
|
@@ -6759,16 +6790,16 @@ je.styles = g`
|
|
|
6759
6790
|
`;
|
|
6760
6791
|
let b1 = je;
|
|
6761
6792
|
q([
|
|
6762
|
-
|
|
6793
|
+
a({ attribute: "default-value" })
|
|
6763
6794
|
], b1.prototype, "defaultValue");
|
|
6764
6795
|
q([
|
|
6765
|
-
|
|
6796
|
+
a()
|
|
6766
6797
|
], b1.prototype, "value");
|
|
6767
6798
|
q([
|
|
6768
|
-
|
|
6799
|
+
a({ reflect: !0 })
|
|
6769
6800
|
], b1.prototype, "theme");
|
|
6770
6801
|
q([
|
|
6771
|
-
|
|
6802
|
+
a()
|
|
6772
6803
|
], b1.prototype, "alignment");
|
|
6773
6804
|
q([
|
|
6774
6805
|
m()
|
|
@@ -6796,11 +6827,11 @@ const Ue = class Ue extends u {
|
|
|
6796
6827
|
"nav-item",
|
|
6797
6828
|
this.selected ? "nav-item--active" : "",
|
|
6798
6829
|
this.disabled ? "nav-item--disabled" : ""
|
|
6799
|
-
].filter(Boolean).join(" "), t =
|
|
6800
|
-
${this.startIcon ?
|
|
6830
|
+
].filter(Boolean).join(" "), t = s`
|
|
6831
|
+
${this.startIcon ? s`<span class="nav-item__icon"><anduin-icon name="${this.startIcon}" size="16"></anduin-icon></span>` : p}
|
|
6801
6832
|
<slot></slot>
|
|
6802
6833
|
`;
|
|
6803
|
-
return this.href ?
|
|
6834
|
+
return this.href ? s`
|
|
6804
6835
|
<a
|
|
6805
6836
|
class="${e}"
|
|
6806
6837
|
href="${this.href}"
|
|
@@ -6808,7 +6839,7 @@ const Ue = class Ue extends u {
|
|
|
6808
6839
|
aria-current="${this.selected ? "page" : "false"}"
|
|
6809
6840
|
@click=${this.onClick}
|
|
6810
6841
|
>${t}</a>
|
|
6811
|
-
` :
|
|
6842
|
+
` : s`
|
|
6812
6843
|
<button
|
|
6813
6844
|
type="button"
|
|
6814
6845
|
class="${e}"
|
|
@@ -6865,27 +6896,27 @@ Ue.styles = g`
|
|
|
6865
6896
|
}
|
|
6866
6897
|
.nav-item__icon { display: flex; }
|
|
6867
6898
|
`;
|
|
6868
|
-
let
|
|
6899
|
+
let s1 = Ue;
|
|
6869
6900
|
q([
|
|
6870
|
-
|
|
6871
|
-
],
|
|
6901
|
+
a()
|
|
6902
|
+
], s1.prototype, "value");
|
|
6872
6903
|
q([
|
|
6873
|
-
|
|
6874
|
-
],
|
|
6904
|
+
a({ attribute: "start-icon" })
|
|
6905
|
+
], s1.prototype, "startIcon");
|
|
6875
6906
|
q([
|
|
6876
|
-
|
|
6877
|
-
],
|
|
6907
|
+
a()
|
|
6908
|
+
], s1.prototype, "href");
|
|
6878
6909
|
q([
|
|
6879
|
-
|
|
6880
|
-
],
|
|
6910
|
+
a({ type: Boolean })
|
|
6911
|
+
], s1.prototype, "disabled");
|
|
6881
6912
|
q([
|
|
6882
|
-
|
|
6883
|
-
],
|
|
6913
|
+
a({ attribute: !1 })
|
|
6914
|
+
], s1.prototype, "selected");
|
|
6884
6915
|
q([
|
|
6885
|
-
|
|
6886
|
-
],
|
|
6916
|
+
a({ attribute: !1 })
|
|
6917
|
+
], s1.prototype, "theme");
|
|
6887
6918
|
customElements.get("anduin-navigation") || customElements.define("anduin-navigation", b1);
|
|
6888
|
-
customElements.get("anduin-navigation-item") || customElements.define("anduin-navigation-item",
|
|
6919
|
+
customElements.get("anduin-navigation-item") || customElements.define("anduin-navigation-item", s1);
|
|
6889
6920
|
var Et = Object.defineProperty, P1 = (r, e, t, o) => {
|
|
6890
6921
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
6891
6922
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
@@ -6932,7 +6963,7 @@ const Ge = class Ge extends u {
|
|
|
6932
6963
|
t.forEach((i, n) => i.setGrow(o[n] / e * 100));
|
|
6933
6964
|
}
|
|
6934
6965
|
render() {
|
|
6935
|
-
return
|
|
6966
|
+
return s`
|
|
6936
6967
|
<div class="panel-group ${this.isVertical ? "panel-group--vertical" : ""}" part="panel-group">
|
|
6937
6968
|
<slot></slot>
|
|
6938
6969
|
</div>
|
|
@@ -6947,10 +6978,10 @@ Ge.styles = g`
|
|
|
6947
6978
|
}
|
|
6948
6979
|
.panel-group--vertical { flex-direction: column; }
|
|
6949
6980
|
`;
|
|
6950
|
-
let
|
|
6981
|
+
let O2 = Ge;
|
|
6951
6982
|
P1([
|
|
6952
|
-
|
|
6953
|
-
],
|
|
6983
|
+
a({ reflect: !0 })
|
|
6984
|
+
], O2.prototype, "orientation");
|
|
6954
6985
|
const Ke = class Ke extends u {
|
|
6955
6986
|
constructor() {
|
|
6956
6987
|
super(...arguments), this.defaultSize = "", this.minSize = "", this.maxSize = "", this.applied = !1;
|
|
@@ -6980,7 +7011,7 @@ const Ke = class Ke extends u {
|
|
|
6980
7011
|
return Y4(this.maxSize, e, e);
|
|
6981
7012
|
}
|
|
6982
7013
|
render() {
|
|
6983
|
-
return
|
|
7014
|
+
return s`<div class="panel" part="panel"><slot></slot></div>`;
|
|
6984
7015
|
}
|
|
6985
7016
|
};
|
|
6986
7017
|
Ke.styles = g`
|
|
@@ -6989,13 +7020,13 @@ Ke.styles = g`
|
|
|
6989
7020
|
`;
|
|
6990
7021
|
let W1 = Ke;
|
|
6991
7022
|
P1([
|
|
6992
|
-
|
|
7023
|
+
a({ attribute: "default-size" })
|
|
6993
7024
|
], W1.prototype, "defaultSize");
|
|
6994
7025
|
P1([
|
|
6995
|
-
|
|
7026
|
+
a({ attribute: "min-size" })
|
|
6996
7027
|
], W1.prototype, "minSize");
|
|
6997
7028
|
P1([
|
|
6998
|
-
|
|
7029
|
+
a({ attribute: "max-size" })
|
|
6999
7030
|
], W1.prototype, "maxSize");
|
|
7000
7031
|
const We = class We extends u {
|
|
7001
7032
|
constructor() {
|
|
@@ -7086,9 +7117,9 @@ const We = class We extends u {
|
|
|
7086
7117
|
this.groupVertical ? "handle--vertical" : "",
|
|
7087
7118
|
this.dragging ? "handle--dragging" : ""
|
|
7088
7119
|
].filter(Boolean).join(" ");
|
|
7089
|
-
return
|
|
7120
|
+
return s`
|
|
7090
7121
|
<div class="${e}" part="handle">
|
|
7091
|
-
${this.withHandle ?
|
|
7122
|
+
${this.withHandle ? s`<div class="handle__grip" part="grip"><anduin-icon name="ellipsisVertical" size="12" aria-label="Drag"></anduin-icon></div>` : p}
|
|
7092
7123
|
</div>
|
|
7093
7124
|
`;
|
|
7094
7125
|
}
|
|
@@ -7116,7 +7147,7 @@ We.styles = g`
|
|
|
7116
7147
|
`;
|
|
7117
7148
|
let Y1 = We;
|
|
7118
7149
|
P1([
|
|
7119
|
-
|
|
7150
|
+
a({ type: Boolean, attribute: "with-handle" })
|
|
7120
7151
|
], Y1.prototype, "withHandle");
|
|
7121
7152
|
P1([
|
|
7122
7153
|
m()
|
|
@@ -7124,7 +7155,7 @@ P1([
|
|
|
7124
7155
|
P1([
|
|
7125
7156
|
m()
|
|
7126
7157
|
], Y1.prototype, "dragging");
|
|
7127
|
-
customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group",
|
|
7158
|
+
customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", O2);
|
|
7128
7159
|
customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", W1);
|
|
7129
7160
|
customElements.get("anduin-resizable-handle") || customElements.define("anduin-resizable-handle", Y1);
|
|
7130
7161
|
var St = Object.defineProperty, X1 = (r, e, t, o) => {
|
|
@@ -7211,7 +7242,7 @@ const Ye = class Ye extends u {
|
|
|
7211
7242
|
const e = this.count;
|
|
7212
7243
|
if (e < 2) return p;
|
|
7213
7244
|
const t = this.selection, o = this.buildItems();
|
|
7214
|
-
return
|
|
7245
|
+
return s`
|
|
7215
7246
|
<div class="pagination">
|
|
7216
7247
|
<div class="pagination__indicator"></div>
|
|
7217
7248
|
<slot name="start" @slotchange=${this.onSlotChange}></slot>
|
|
@@ -7239,7 +7270,7 @@ const Ye = class Ye extends u {
|
|
|
7239
7270
|
renderItem(e, t) {
|
|
7240
7271
|
if (e.type === "page") {
|
|
7241
7272
|
const n = e.page === t;
|
|
7242
|
-
return
|
|
7273
|
+
return s`
|
|
7243
7274
|
<button
|
|
7244
7275
|
class="pagination__button ${n ? "pagination__button--active" : ""}"
|
|
7245
7276
|
aria-current=${n ? "page" : p}
|
|
@@ -7249,7 +7280,7 @@ const Ye = class Ye extends u {
|
|
|
7249
7280
|
`;
|
|
7250
7281
|
}
|
|
7251
7282
|
const { pages: o } = e, i = o.length > 1 ? `Pages ${o[0]} to ${o[o.length - 1]}` : `Page ${o[0]}`;
|
|
7252
|
-
return
|
|
7283
|
+
return s`
|
|
7253
7284
|
<anduin-menu placement="bottom">
|
|
7254
7285
|
<anduin-button
|
|
7255
7286
|
slot="trigger"
|
|
@@ -7259,7 +7290,7 @@ const Ye = class Ye extends u {
|
|
|
7259
7290
|
label=${i}
|
|
7260
7291
|
></anduin-button>
|
|
7261
7292
|
<div class="pagination__ellipsis-list">
|
|
7262
|
-
${o.map((n) =>
|
|
7293
|
+
${o.map((n) => s`
|
|
7263
7294
|
<anduin-menu-item @click=${() => this.goTo(n)}>${n}</anduin-menu-item>
|
|
7264
7295
|
`)}
|
|
7265
7296
|
</div>
|
|
@@ -7332,13 +7363,13 @@ Ye.styles = g`
|
|
|
7332
7363
|
`;
|
|
7333
7364
|
let y1 = Ye;
|
|
7334
7365
|
X1([
|
|
7335
|
-
|
|
7366
|
+
a({ type: Number, attribute: "number-of-pages", reflect: !0 })
|
|
7336
7367
|
], y1.prototype, "numberOfPages");
|
|
7337
7368
|
X1([
|
|
7338
|
-
|
|
7369
|
+
a({ type: Number, attribute: "default-value" })
|
|
7339
7370
|
], y1.prototype, "defaultValue");
|
|
7340
7371
|
X1([
|
|
7341
|
-
|
|
7372
|
+
a({ type: Number })
|
|
7342
7373
|
], y1.prototype, "value");
|
|
7343
7374
|
X1([
|
|
7344
7375
|
m()
|
|
@@ -7360,7 +7391,7 @@ const qe = class qe extends u {
|
|
|
7360
7391
|
super.connectedCallback(), this.getAttribute("slot") || this.setAttribute("slot", this.target === "first" ? "start" : "end");
|
|
7361
7392
|
}
|
|
7362
7393
|
render() {
|
|
7363
|
-
return
|
|
7394
|
+
return s`
|
|
7364
7395
|
<anduin-button
|
|
7365
7396
|
appearance="plain"
|
|
7366
7397
|
size="medium"
|
|
@@ -7377,7 +7408,7 @@ qe.styles = g`
|
|
|
7377
7408
|
`;
|
|
7378
7409
|
let w2 = qe;
|
|
7379
7410
|
X1([
|
|
7380
|
-
|
|
7411
|
+
a({ type: Boolean })
|
|
7381
7412
|
], w2.prototype, "disabled");
|
|
7382
7413
|
class Dt extends w2 {
|
|
7383
7414
|
constructor() {
|
|
@@ -7394,7 +7425,7 @@ customElements.get("anduin-pagination-first-page") || customElements.define("and
|
|
|
7394
7425
|
customElements.get("anduin-pagination-last-page") || customElements.define("anduin-pagination-last-page", Pt);
|
|
7395
7426
|
const Xe = class Xe extends u {
|
|
7396
7427
|
render() {
|
|
7397
|
-
return
|
|
7428
|
+
return s`<div class="timeline"><slot></slot></div>`;
|
|
7398
7429
|
}
|
|
7399
7430
|
};
|
|
7400
7431
|
Xe.styles = g`
|
|
@@ -7414,7 +7445,7 @@ Xe.styles = g`
|
|
|
7414
7445
|
let M5 = Xe;
|
|
7415
7446
|
const Je = class Je extends u {
|
|
7416
7447
|
render() {
|
|
7417
|
-
return
|
|
7448
|
+
return s`
|
|
7418
7449
|
<div class="item">
|
|
7419
7450
|
<div class="item__rail"><div class="item__dot"></div></div>
|
|
7420
7451
|
<div class="item__content"><slot></slot></div>
|
|
@@ -7515,7 +7546,7 @@ Je.styles = g`
|
|
|
7515
7546
|
let w5 = Je;
|
|
7516
7547
|
const Qe = class Qe extends u {
|
|
7517
7548
|
render() {
|
|
7518
|
-
return
|
|
7549
|
+
return s`<div class="date"><slot></slot></div>`;
|
|
7519
7550
|
}
|
|
7520
7551
|
};
|
|
7521
7552
|
Qe.styles = g`
|
|
@@ -7533,7 +7564,7 @@ Qe.styles = g`
|
|
|
7533
7564
|
let Z5 = Qe;
|
|
7534
7565
|
const e4 = class e4 extends u {
|
|
7535
7566
|
render() {
|
|
7536
|
-
return
|
|
7567
|
+
return s`<div class="title"><slot></slot></div>`;
|
|
7537
7568
|
}
|
|
7538
7569
|
};
|
|
7539
7570
|
e4.styles = g`
|
|
@@ -7545,7 +7576,7 @@ e4.styles = g`
|
|
|
7545
7576
|
let k5 = e4;
|
|
7546
7577
|
const t4 = class t4 extends u {
|
|
7547
7578
|
render() {
|
|
7548
|
-
return
|
|
7579
|
+
return s`<div class="group__items"><slot></slot></div>`;
|
|
7549
7580
|
}
|
|
7550
7581
|
};
|
|
7551
7582
|
t4.styles = g`
|
|
@@ -7570,7 +7601,7 @@ t4.styles = g`
|
|
|
7570
7601
|
let R5 = t4;
|
|
7571
7602
|
const i4 = class i4 extends u {
|
|
7572
7603
|
render() {
|
|
7573
|
-
return
|
|
7604
|
+
return s`<div class="label-center"><div class="label-pill"><slot></slot></div></div>`;
|
|
7574
7605
|
}
|
|
7575
7606
|
};
|
|
7576
7607
|
i4.styles = g`
|
|
@@ -7648,7 +7679,7 @@ const Ft = "anduin-sidebar:select", o4 = class o4 extends u {
|
|
|
7648
7679
|
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "navigation");
|
|
7649
7680
|
}
|
|
7650
7681
|
render() {
|
|
7651
|
-
return
|
|
7682
|
+
return s`<div class="sidebar" part="sidebar"><slot></slot></div>`;
|
|
7652
7683
|
}
|
|
7653
7684
|
};
|
|
7654
7685
|
o4.styles = g`
|
|
@@ -7669,7 +7700,7 @@ o4.styles = g`
|
|
|
7669
7700
|
let E5 = o4;
|
|
7670
7701
|
const n4 = class n4 extends u {
|
|
7671
7702
|
render() {
|
|
7672
|
-
return
|
|
7703
|
+
return s`<div class="sidebar-content" part="content"><slot></slot></div>`;
|
|
7673
7704
|
}
|
|
7674
7705
|
};
|
|
7675
7706
|
n4.styles = g`
|
|
@@ -7693,7 +7724,7 @@ const r4 = class r4 extends u {
|
|
|
7693
7724
|
super(...arguments), this.divider = !1;
|
|
7694
7725
|
}
|
|
7695
7726
|
render() {
|
|
7696
|
-
return
|
|
7727
|
+
return s`<div class="sidebar-header" part="header"><slot></slot></div>`;
|
|
7697
7728
|
}
|
|
7698
7729
|
};
|
|
7699
7730
|
r4.styles = g`
|
|
@@ -7707,16 +7738,16 @@ r4.styles = g`
|
|
|
7707
7738
|
border-bottom: 1px solid var(--color-gray-3);
|
|
7708
7739
|
}
|
|
7709
7740
|
`;
|
|
7710
|
-
let
|
|
7741
|
+
let I2 = r4;
|
|
7711
7742
|
B1([
|
|
7712
|
-
|
|
7713
|
-
],
|
|
7743
|
+
a({ type: Boolean, reflect: !0 })
|
|
7744
|
+
], I2.prototype, "divider");
|
|
7714
7745
|
const l4 = class l4 extends u {
|
|
7715
7746
|
constructor() {
|
|
7716
7747
|
super(...arguments), this.divider = !1;
|
|
7717
7748
|
}
|
|
7718
7749
|
render() {
|
|
7719
|
-
return
|
|
7750
|
+
return s`<div class="sidebar-footer" part="footer"><slot></slot></div>`;
|
|
7720
7751
|
}
|
|
7721
7752
|
};
|
|
7722
7753
|
l4.styles = g`
|
|
@@ -7732,14 +7763,14 @@ l4.styles = g`
|
|
|
7732
7763
|
`;
|
|
7733
7764
|
let T2 = l4;
|
|
7734
7765
|
B1([
|
|
7735
|
-
|
|
7766
|
+
a({ type: Boolean, reflect: !0 })
|
|
7736
7767
|
], T2.prototype, "divider");
|
|
7737
|
-
const
|
|
7768
|
+
const a4 = class a4 extends u {
|
|
7738
7769
|
render() {
|
|
7739
|
-
return
|
|
7770
|
+
return s`<div class="sidebar-group" part="group" role="group"><slot></slot></div>`;
|
|
7740
7771
|
}
|
|
7741
7772
|
};
|
|
7742
|
-
|
|
7773
|
+
a4.styles = g`
|
|
7743
7774
|
:host {
|
|
7744
7775
|
display: block;
|
|
7745
7776
|
}
|
|
@@ -7749,10 +7780,10 @@ s4.styles = g`
|
|
|
7749
7780
|
gap: 4px;
|
|
7750
7781
|
}
|
|
7751
7782
|
`;
|
|
7752
|
-
let S5 =
|
|
7753
|
-
const
|
|
7783
|
+
let S5 = a4;
|
|
7784
|
+
const s4 = class s4 extends u {
|
|
7754
7785
|
render() {
|
|
7755
|
-
return
|
|
7786
|
+
return s`
|
|
7756
7787
|
<div class="sidebar-group-label" part="group-label">
|
|
7757
7788
|
<span class="sidebar-group-label__text"><slot></slot></span>
|
|
7758
7789
|
<slot name="badge" class="sidebar-group-label__badge"></slot>
|
|
@@ -7761,7 +7792,7 @@ const a4 = class a4 extends u {
|
|
|
7761
7792
|
`;
|
|
7762
7793
|
}
|
|
7763
7794
|
};
|
|
7764
|
-
|
|
7795
|
+
s4.styles = g`
|
|
7765
7796
|
:host {
|
|
7766
7797
|
display: block;
|
|
7767
7798
|
}
|
|
@@ -7793,10 +7824,10 @@ a4.styles = g`
|
|
|
7793
7824
|
padding-right: 6px;
|
|
7794
7825
|
}
|
|
7795
7826
|
`;
|
|
7796
|
-
let A5 =
|
|
7827
|
+
let A5 = s4;
|
|
7797
7828
|
const d4 = class d4 extends u {
|
|
7798
7829
|
render() {
|
|
7799
|
-
return
|
|
7830
|
+
return s`<div class="sidebar-menu" part="menu"><slot></slot></div>`;
|
|
7800
7831
|
}
|
|
7801
7832
|
};
|
|
7802
7833
|
d4.styles = g`
|
|
@@ -7832,11 +7863,11 @@ const c4 = class c4 extends u {
|
|
|
7832
7863
|
].filter(Boolean).join(" "), t = [
|
|
7833
7864
|
"sidebar-menu-item",
|
|
7834
7865
|
this.disabled ? "sidebar-menu-item--disabled" : ""
|
|
7835
|
-
].filter(Boolean).join(" "), o =
|
|
7836
|
-
${this.startIcon ?
|
|
7866
|
+
].filter(Boolean).join(" "), o = s`
|
|
7867
|
+
${this.startIcon ? s`<anduin-icon class="sidebar-menu-item__icon" name="${this.startIcon}" size="16"></anduin-icon>` : p}
|
|
7837
7868
|
<span class="sidebar-menu-item__label"><slot></slot></span>
|
|
7838
7869
|
<slot name="badge" class="sidebar-menu-item__badge"></slot>
|
|
7839
|
-
`, i = this.href ?
|
|
7870
|
+
`, i = this.href ? s`
|
|
7840
7871
|
<a
|
|
7841
7872
|
class="${t}"
|
|
7842
7873
|
part="menu-item"
|
|
@@ -7848,7 +7879,7 @@ const c4 = class c4 extends u {
|
|
|
7848
7879
|
tabindex="${this.disabled ? "-1" : "0"}"
|
|
7849
7880
|
@click=${this.onClick}
|
|
7850
7881
|
>${o}</a>
|
|
7851
|
-
` :
|
|
7882
|
+
` : s`
|
|
7852
7883
|
<button
|
|
7853
7884
|
type="button"
|
|
7854
7885
|
class="${t}"
|
|
@@ -7858,7 +7889,7 @@ const c4 = class c4 extends u {
|
|
|
7858
7889
|
@click=${this.onClick}
|
|
7859
7890
|
>${o}</button>
|
|
7860
7891
|
`;
|
|
7861
|
-
return
|
|
7892
|
+
return s`
|
|
7862
7893
|
<div class="${e}">
|
|
7863
7894
|
${i}
|
|
7864
7895
|
<slot name="action" class="sidebar-menu-item__action"></slot>
|
|
@@ -7951,26 +7982,26 @@ c4.styles = g`
|
|
|
7951
7982
|
`;
|
|
7952
7983
|
let H1 = c4;
|
|
7953
7984
|
B1([
|
|
7954
|
-
|
|
7985
|
+
a({ attribute: "start-icon" })
|
|
7955
7986
|
], H1.prototype, "startIcon");
|
|
7956
7987
|
B1([
|
|
7957
|
-
|
|
7988
|
+
a({ type: Boolean, reflect: !0 })
|
|
7958
7989
|
], H1.prototype, "selected");
|
|
7959
7990
|
B1([
|
|
7960
|
-
|
|
7991
|
+
a({ type: Boolean, reflect: !0 })
|
|
7961
7992
|
], H1.prototype, "disabled");
|
|
7962
7993
|
B1([
|
|
7963
|
-
|
|
7994
|
+
a()
|
|
7964
7995
|
], H1.prototype, "href");
|
|
7965
7996
|
B1([
|
|
7966
|
-
|
|
7997
|
+
a({ type: Boolean, attribute: "open-new-tab" })
|
|
7967
7998
|
], H1.prototype, "openNewTab");
|
|
7968
7999
|
const C4 = class C4 extends u {
|
|
7969
8000
|
connectedCallback() {
|
|
7970
8001
|
super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "action");
|
|
7971
8002
|
}
|
|
7972
8003
|
render() {
|
|
7973
|
-
return
|
|
8004
|
+
return s`<div class="sidebar-action" part="action"><slot></slot></div>`;
|
|
7974
8005
|
}
|
|
7975
8006
|
};
|
|
7976
8007
|
C4.styles = g`
|
|
@@ -7989,7 +8020,7 @@ const p4 = class p4 extends u {
|
|
|
7989
8020
|
super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "badge");
|
|
7990
8021
|
}
|
|
7991
8022
|
render() {
|
|
7992
|
-
return
|
|
8023
|
+
return s`<div class="sidebar-badge" part="badge"><slot></slot></div>`;
|
|
7993
8024
|
}
|
|
7994
8025
|
};
|
|
7995
8026
|
p4.styles = g`
|
|
@@ -8008,7 +8039,7 @@ const h4 = class h4 extends u {
|
|
|
8008
8039
|
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "separator");
|
|
8009
8040
|
}
|
|
8010
8041
|
render() {
|
|
8011
|
-
return
|
|
8042
|
+
return s`<div class="sidebar-separator" part="separator"></div>`;
|
|
8012
8043
|
}
|
|
8013
8044
|
};
|
|
8014
8045
|
h4.styles = g`
|
|
@@ -8023,7 +8054,7 @@ h4.styles = g`
|
|
|
8023
8054
|
let F5 = h4;
|
|
8024
8055
|
customElements.get("anduin-sidebar") || customElements.define("anduin-sidebar", E5);
|
|
8025
8056
|
customElements.get("anduin-sidebar-content") || customElements.define("anduin-sidebar-content", z5);
|
|
8026
|
-
customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header",
|
|
8057
|
+
customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", I2);
|
|
8027
8058
|
customElements.get("anduin-sidebar-footer") || customElements.define("anduin-sidebar-footer", T2);
|
|
8028
8059
|
customElements.get("anduin-sidebar-group") || customElements.define("anduin-sidebar-group", S5);
|
|
8029
8060
|
customElements.get("anduin-sidebar-group-label") || customElements.define("anduin-sidebar-group-label", A5);
|
|
@@ -8043,7 +8074,7 @@ function x1(r) {
|
|
|
8043
8074
|
const e = (t) => String(t).padStart(2, "0");
|
|
8044
8075
|
return `${r.getFullYear()}-${e(r.getMonth() + 1)}-${e(r.getDate())}`;
|
|
8045
8076
|
}
|
|
8046
|
-
function
|
|
8077
|
+
function I1() {
|
|
8047
8078
|
const r = /* @__PURE__ */ new Date();
|
|
8048
8079
|
return new Date(r.getFullYear(), r.getMonth(), r.getDate());
|
|
8049
8080
|
}
|
|
@@ -8051,15 +8082,15 @@ function p1(r, e) {
|
|
|
8051
8082
|
const t = r.getFullYear(), o = r.getMonth() + e, i = new Date(t, o + 1, 0).getDate();
|
|
8052
8083
|
return new Date(t, o, Math.min(r.getDate(), i));
|
|
8053
8084
|
}
|
|
8054
|
-
function
|
|
8085
|
+
function Ot(r, e) {
|
|
8055
8086
|
return new Date(r, e + 1, 0).getDate();
|
|
8056
8087
|
}
|
|
8057
|
-
var
|
|
8088
|
+
var It = Object.defineProperty, i1 = (r, e, t, o) => {
|
|
8058
8089
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
8059
8090
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8060
|
-
return i &&
|
|
8091
|
+
return i && It(e, t, i), i;
|
|
8061
8092
|
};
|
|
8062
|
-
const Z2 = "anduin-calendar:change",
|
|
8093
|
+
const Z2 = "anduin-calendar:change", O5 = "anduin-calendar:day-hover", q4 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], X4 = [
|
|
8063
8094
|
"January",
|
|
8064
8095
|
"February",
|
|
8065
8096
|
"March",
|
|
@@ -8082,7 +8113,7 @@ function Nt(r) {
|
|
|
8082
8113
|
}
|
|
8083
8114
|
const u4 = class u4 extends u {
|
|
8084
8115
|
constructor() {
|
|
8085
|
-
super(...arguments), this.value = "", this.minDate = "", this.maxDate = "", this.rangeStart = "", this.rangeEnd = "", this.rangeMode = !1, this._viewMonth =
|
|
8116
|
+
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) => {
|
|
8086
8117
|
this._openSelect && !e.composedPath().includes(this) && (this._openSelect = null);
|
|
8087
8118
|
};
|
|
8088
8119
|
}
|
|
@@ -8098,7 +8129,7 @@ const u4 = class u4 extends u {
|
|
|
8098
8129
|
if (t)
|
|
8099
8130
|
this._viewYear = t.getFullYear(), this._viewMonth = t.getMonth(), this._viewSeeded = !0;
|
|
8100
8131
|
else if (!this._viewSeeded) {
|
|
8101
|
-
const o =
|
|
8132
|
+
const o = I1();
|
|
8102
8133
|
this._viewYear = o.getFullYear(), this._viewMonth = o.getMonth();
|
|
8103
8134
|
}
|
|
8104
8135
|
}
|
|
@@ -8180,7 +8211,7 @@ const u4 = class u4 extends u {
|
|
|
8180
8211
|
this.value = t, this._focus = t, this.dispatchEvent(new CustomEvent(Z2, { detail: t, bubbles: !0, composed: !0 }));
|
|
8181
8212
|
}
|
|
8182
8213
|
_emitHover(e) {
|
|
8183
|
-
this.dispatchEvent(new CustomEvent(
|
|
8214
|
+
this.dispatchEvent(new CustomEvent(O5, { detail: e, bubbles: !0, composed: !0 }));
|
|
8184
8215
|
}
|
|
8185
8216
|
/** The day that owns `tabindex="0"` when nothing has been focused yet. */
|
|
8186
8217
|
_defaultFocusDate() {
|
|
@@ -8190,7 +8221,7 @@ const u4 = class u4 extends u {
|
|
|
8190
8221
|
const t = P(this.value);
|
|
8191
8222
|
if (t && t.getMonth() === this._viewMonth && t.getFullYear() === this._viewYear)
|
|
8192
8223
|
return t;
|
|
8193
|
-
const o =
|
|
8224
|
+
const o = I1();
|
|
8194
8225
|
return o.getMonth() === this._viewMonth && o.getFullYear() === this._viewYear ? o : this._clamp(new Date(this._viewYear, this._viewMonth, 1));
|
|
8195
8226
|
}
|
|
8196
8227
|
// ── Month / year pickers ────────────────────────────────────────
|
|
@@ -8208,7 +8239,7 @@ const u4 = class u4 extends u {
|
|
|
8208
8239
|
}
|
|
8209
8240
|
_renderSelect(e, t, o, i, n) {
|
|
8210
8241
|
const l = this._openSelect === e;
|
|
8211
|
-
return
|
|
8242
|
+
return s`
|
|
8212
8243
|
<div class="calendar__select">
|
|
8213
8244
|
<anduin-button
|
|
8214
8245
|
appearance="text"
|
|
@@ -8221,9 +8252,9 @@ const u4 = class u4 extends u {
|
|
|
8221
8252
|
this._openSelect = l ? null : e;
|
|
8222
8253
|
}}
|
|
8223
8254
|
>${t}</anduin-button>
|
|
8224
|
-
${l ?
|
|
8255
|
+
${l ? s`
|
|
8225
8256
|
<div class="calendar__listbox" role="listbox" aria-label="${o}">
|
|
8226
|
-
${i.map((d) =>
|
|
8257
|
+
${i.map((d) => s`
|
|
8227
8258
|
<button
|
|
8228
8259
|
type="button"
|
|
8229
8260
|
class="calendar__option${d.selected ? " calendar__option--selected" : ""}"
|
|
@@ -8239,7 +8270,7 @@ const u4 = class u4 extends u {
|
|
|
8239
8270
|
}
|
|
8240
8271
|
// ── Render ──────────────────────────────────────────────────────
|
|
8241
8272
|
render() {
|
|
8242
|
-
const e = x1(
|
|
8273
|
+
const e = x1(I1()), t = P(this.value), o = P(this.rangeStart), i = P(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(), h = [
|
|
8243
8274
|
...Array.from({ length: C }, () => null),
|
|
8244
8275
|
...Array.from({ length: c }, (_, v) => v + 1)
|
|
8245
8276
|
];
|
|
@@ -8251,7 +8282,7 @@ const u4 = class u4 extends u {
|
|
|
8251
8282
|
const _ = this._max;
|
|
8252
8283
|
return _ ? new Date(this._viewYear, this._viewMonth + 1, 1).getTime() > _.getTime() : !1;
|
|
8253
8284
|
})();
|
|
8254
|
-
return
|
|
8285
|
+
return s`
|
|
8255
8286
|
<div class="calendar" part="calendar">
|
|
8256
8287
|
<div class="calendar__header" part="header">
|
|
8257
8288
|
<anduin-button
|
|
@@ -8299,16 +8330,16 @@ const u4 = class u4 extends u {
|
|
|
8299
8330
|
>
|
|
8300
8331
|
<thead aria-hidden="true">
|
|
8301
8332
|
<tr>
|
|
8302
|
-
${Tt.map((_, v) =>
|
|
8333
|
+
${Tt.map((_, v) => s`
|
|
8303
8334
|
<th class="calendar__day-header" aria-label="${J4[v]}">${_}</th>
|
|
8304
8335
|
`)}
|
|
8305
8336
|
</tr>
|
|
8306
8337
|
</thead>
|
|
8307
8338
|
<tbody>
|
|
8308
|
-
${f.map((_) =>
|
|
8339
|
+
${f.map((_) => s`
|
|
8309
8340
|
<tr>
|
|
8310
8341
|
${_.map((v) => {
|
|
8311
|
-
if (v === null) return
|
|
8342
|
+
if (v === null) return s`<td class="calendar__day-cell"></td>`;
|
|
8312
8343
|
const x = new Date(this._viewYear, this._viewMonth, v), M = x1(x), D = x.getTime(), K = this._isDisabled(x), Q1 = !!o && D === o.getTime(), o1 = !!i && D === i.getTime(), y4 = !!o && !!i && D > o.getTime() && D < i.getTime(), H4 = !n && !!t && D === t.getTime(), E3 = [
|
|
8313
8344
|
"calendar__day-cell",
|
|
8314
8345
|
y4 ? "calendar__day-cell--in-range" : "",
|
|
@@ -8325,7 +8356,7 @@ const u4 = class u4 extends u {
|
|
|
8325
8356
|
y4 ? "calendar__day-button--in-range" : "",
|
|
8326
8357
|
K ? "calendar__day-button--disabled" : ""
|
|
8327
8358
|
].filter(Boolean).join(" ");
|
|
8328
|
-
return
|
|
8359
|
+
return s`
|
|
8329
8360
|
<td
|
|
8330
8361
|
class="${E3}"
|
|
8331
8362
|
role="gridcell"
|
|
@@ -8453,22 +8484,22 @@ u4.styles = g`
|
|
|
8453
8484
|
`;
|
|
8454
8485
|
let j = u4;
|
|
8455
8486
|
i1([
|
|
8456
|
-
|
|
8487
|
+
a({ reflect: !0 })
|
|
8457
8488
|
], j.prototype, "value");
|
|
8458
8489
|
i1([
|
|
8459
|
-
|
|
8490
|
+
a({ attribute: "min-date" })
|
|
8460
8491
|
], j.prototype, "minDate");
|
|
8461
8492
|
i1([
|
|
8462
|
-
|
|
8493
|
+
a({ attribute: "max-date" })
|
|
8463
8494
|
], j.prototype, "maxDate");
|
|
8464
8495
|
i1([
|
|
8465
|
-
|
|
8496
|
+
a({ attribute: "range-start" })
|
|
8466
8497
|
], j.prototype, "rangeStart");
|
|
8467
8498
|
i1([
|
|
8468
|
-
|
|
8499
|
+
a({ attribute: "range-end" })
|
|
8469
8500
|
], j.prototype, "rangeEnd");
|
|
8470
8501
|
i1([
|
|
8471
|
-
|
|
8502
|
+
a({ type: Boolean, attribute: "range-mode" })
|
|
8472
8503
|
], j.prototype, "rangeMode");
|
|
8473
8504
|
i1([
|
|
8474
8505
|
m()
|
|
@@ -8509,10 +8540,10 @@ const Ut = "anduin-date-range:change", g4 = class g4 extends u {
|
|
|
8509
8540
|
};
|
|
8510
8541
|
}
|
|
8511
8542
|
connectedCallback() {
|
|
8512
|
-
super.connectedCallback(), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(
|
|
8543
|
+
super.connectedCallback(), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(O5, this._onCalendarHover);
|
|
8513
8544
|
}
|
|
8514
8545
|
disconnectedCallback() {
|
|
8515
|
-
super.disconnectedCallback(), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(
|
|
8546
|
+
super.disconnectedCallback(), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(O5, this._onCalendarHover);
|
|
8516
8547
|
}
|
|
8517
8548
|
updated() {
|
|
8518
8549
|
this._sync();
|
|
@@ -8540,7 +8571,7 @@ const Ut = "anduin-date-range:change", g4 = class g4 extends u {
|
|
|
8540
8571
|
/** Which month each panel opens on: the start date on the left, the month
|
|
8541
8572
|
* after it on the right. Falls back to today when there's no range yet. */
|
|
8542
8573
|
_panelValue(e) {
|
|
8543
|
-
const t = P(this.startDate) ??
|
|
8574
|
+
const t = P(this.startDate) ?? I1();
|
|
8544
8575
|
return x1(e === "start" ? t : p1(t, 1));
|
|
8545
8576
|
}
|
|
8546
8577
|
/** The range the calendars should paint — the live preview while selecting,
|
|
@@ -8556,7 +8587,7 @@ const Ut = "anduin-date-range:change", g4 = class g4 extends u {
|
|
|
8556
8587
|
return !o || !i ? [e, t] : o.getTime() <= i.getTime() ? [e, t] : [t, e];
|
|
8557
8588
|
}
|
|
8558
8589
|
render() {
|
|
8559
|
-
return
|
|
8590
|
+
return s`<div class="date-range" part="date-range"><slot></slot></div>`;
|
|
8560
8591
|
}
|
|
8561
8592
|
};
|
|
8562
8593
|
g4.styles = g`
|
|
@@ -8564,16 +8595,16 @@ g4.styles = g`
|
|
|
8564
8595
|
`;
|
|
8565
8596
|
let t1 = g4;
|
|
8566
8597
|
J1([
|
|
8567
|
-
|
|
8598
|
+
a({ attribute: "start-date", reflect: !0 })
|
|
8568
8599
|
], t1.prototype, "startDate");
|
|
8569
8600
|
J1([
|
|
8570
|
-
|
|
8601
|
+
a({ attribute: "end-date", reflect: !0 })
|
|
8571
8602
|
], t1.prototype, "endDate");
|
|
8572
8603
|
J1([
|
|
8573
|
-
|
|
8604
|
+
a({ attribute: "min-date" })
|
|
8574
8605
|
], t1.prototype, "minDate");
|
|
8575
8606
|
J1([
|
|
8576
|
-
|
|
8607
|
+
a({ attribute: "max-date" })
|
|
8577
8608
|
], t1.prototype, "maxDate");
|
|
8578
8609
|
J1([
|
|
8579
8610
|
m()
|
|
@@ -8607,7 +8638,7 @@ const f4 = class f4 extends u {
|
|
|
8607
8638
|
return null;
|
|
8608
8639
|
}
|
|
8609
8640
|
render() {
|
|
8610
|
-
return
|
|
8641
|
+
return s`<anduin-calendar part="calendar" range-mode></anduin-calendar>`;
|
|
8611
8642
|
}
|
|
8612
8643
|
};
|
|
8613
8644
|
f4.styles = g`
|
|
@@ -8626,7 +8657,7 @@ class Kt extends N2 {
|
|
|
8626
8657
|
}
|
|
8627
8658
|
const v4 = class v4 extends u {
|
|
8628
8659
|
render() {
|
|
8629
|
-
return
|
|
8660
|
+
return s`
|
|
8630
8661
|
<div class="date-range-default" part="layout">
|
|
8631
8662
|
<anduin-date-range-start part="start"></anduin-date-range-start>
|
|
8632
8663
|
<anduin-date-range-end part="end"></anduin-date-range-end>
|
|
@@ -8639,9 +8670,9 @@ v4.styles = g`
|
|
|
8639
8670
|
|
|
8640
8671
|
.date-range-default { display: flex; flex-direction: row; gap: 16px; }
|
|
8641
8672
|
`;
|
|
8642
|
-
let
|
|
8673
|
+
let I5 = v4;
|
|
8643
8674
|
customElements.get("anduin-date-range") || customElements.define("anduin-date-range", t1);
|
|
8644
|
-
customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default",
|
|
8675
|
+
customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", I5);
|
|
8645
8676
|
customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", Gt);
|
|
8646
8677
|
customElements.get("anduin-date-range-end") || customElements.define("anduin-date-range-end", Kt);
|
|
8647
8678
|
var Wt = Object.defineProperty, T = (r, e, t, o) => {
|
|
@@ -8667,7 +8698,7 @@ function Yt(r) {
|
|
|
8667
8698
|
}
|
|
8668
8699
|
return e;
|
|
8669
8700
|
}
|
|
8670
|
-
function
|
|
8701
|
+
function a5(r) {
|
|
8671
8702
|
return r.type === "year" ? 10 ** r.length - 1 : r.length === 1 ? 9 : r.type === "month" ? 12 : 31;
|
|
8672
8703
|
}
|
|
8673
8704
|
const i2 = 1, G2 = class G2 extends u {
|
|
@@ -8741,7 +8772,7 @@ const i2 = 1, G2 = class G2 extends u {
|
|
|
8741
8772
|
if (!t && !o) return e;
|
|
8742
8773
|
const i = this._indexOfType("month"), n = this._indexOfType("day"), l = this._indexOfType("year");
|
|
8743
8774
|
if (i < 0 || n < 0 || l < 0) return e;
|
|
8744
|
-
const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), h = Math.min(C,
|
|
8775
|
+
const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), h = Math.min(C, Ot(d, c - 1)), f = new Date(d, c - 1, h), y = t && f.getTime() < t.getTime() ? t : o && f.getTime() > o.getTime() ? o : null;
|
|
8745
8776
|
if (!y) {
|
|
8746
8777
|
if (h === C) return e;
|
|
8747
8778
|
const V = [...e];
|
|
@@ -8780,7 +8811,7 @@ const i2 = 1, G2 = class G2 extends u {
|
|
|
8780
8811
|
_writeSegment(e, t) {
|
|
8781
8812
|
const o = this._segments[e];
|
|
8782
8813
|
if (!o) return;
|
|
8783
|
-
const i = Math.min(Math.max(Number(t), i2),
|
|
8814
|
+
const i = Math.min(Math.max(Number(t), i2), a5(o)), n = [...this._digits];
|
|
8784
8815
|
n[e] = String(i).padStart(o.length, "0"), this._buffer = "", this._setDigits(n);
|
|
8785
8816
|
}
|
|
8786
8817
|
/** Commit any half-typed digits so they aren't stranded on blur or navigation. */
|
|
@@ -8799,7 +8830,7 @@ const i2 = 1, G2 = class G2 extends u {
|
|
|
8799
8830
|
return;
|
|
8800
8831
|
}
|
|
8801
8832
|
const l = Number(i.padEnd(o.length, "0")), d = Number(i.padEnd(o.length, "9"));
|
|
8802
|
-
if (l >
|
|
8833
|
+
if (l > a5(o) || d < i2) {
|
|
8803
8834
|
this._commitBuffer(t, i, !0);
|
|
8804
8835
|
return;
|
|
8805
8836
|
}
|
|
@@ -8808,7 +8839,7 @@ const i2 = 1, G2 = class G2 extends u {
|
|
|
8808
8839
|
_step(e) {
|
|
8809
8840
|
const t = this._active, o = this._segments[t];
|
|
8810
8841
|
if (!o) return;
|
|
8811
|
-
const i =
|
|
8842
|
+
const i = a5(o), n = this._digits[t];
|
|
8812
8843
|
let l;
|
|
8813
8844
|
n === null ? l = e > 0 ? i2 : i : (l = Number(n) + e, l > i && (l = i2), l < i2 && (l = i));
|
|
8814
8845
|
const d = [...this._digits];
|
|
@@ -8857,9 +8888,9 @@ const i2 = 1, G2 = class G2 extends u {
|
|
|
8857
8888
|
this.readonly ? "date-input--readonly" : "",
|
|
8858
8889
|
this.status ? `date-input--${this.status}` : ""
|
|
8859
8890
|
].filter(Boolean).join(" "), i = this.size === "small" ? "12" : "16";
|
|
8860
|
-
return
|
|
8891
|
+
return s`
|
|
8861
8892
|
<div class="${t}" part="container">
|
|
8862
|
-
${e ?
|
|
8893
|
+
${e ? s`<span class="date-input__icon" part="icon">
|
|
8863
8894
|
<anduin-icon name="${this.startIcon}" size="${i}"></anduin-icon>
|
|
8864
8895
|
</span>` : p}
|
|
8865
8896
|
<input
|
|
@@ -8939,34 +8970,34 @@ G2.shadowRootOptions = { ...u.shadowRootOptions, delegatesFocus: !0 }, G2.styles
|
|
|
8939
8970
|
`;
|
|
8940
8971
|
let S = G2;
|
|
8941
8972
|
T([
|
|
8942
|
-
|
|
8973
|
+
a()
|
|
8943
8974
|
], S.prototype, "format");
|
|
8944
8975
|
T([
|
|
8945
|
-
|
|
8976
|
+
a()
|
|
8946
8977
|
], S.prototype, "value");
|
|
8947
8978
|
T([
|
|
8948
|
-
|
|
8979
|
+
a()
|
|
8949
8980
|
], S.prototype, "size");
|
|
8950
8981
|
T([
|
|
8951
|
-
|
|
8982
|
+
a({ type: Boolean })
|
|
8952
8983
|
], S.prototype, "disabled");
|
|
8953
8984
|
T([
|
|
8954
|
-
|
|
8985
|
+
a({ type: Boolean })
|
|
8955
8986
|
], S.prototype, "readonly");
|
|
8956
8987
|
T([
|
|
8957
|
-
|
|
8988
|
+
a()
|
|
8958
8989
|
], S.prototype, "status");
|
|
8959
8990
|
T([
|
|
8960
|
-
|
|
8991
|
+
a({ attribute: "start-icon" })
|
|
8961
8992
|
], S.prototype, "startIcon");
|
|
8962
8993
|
T([
|
|
8963
|
-
|
|
8994
|
+
a({ attribute: "min-date" })
|
|
8964
8995
|
], S.prototype, "minDate");
|
|
8965
8996
|
T([
|
|
8966
|
-
|
|
8997
|
+
a({ attribute: "max-date" })
|
|
8967
8998
|
], S.prototype, "maxDate");
|
|
8968
8999
|
T([
|
|
8969
|
-
|
|
9000
|
+
a()
|
|
8970
9001
|
], S.prototype, "inputid");
|
|
8971
9002
|
T([
|
|
8972
9003
|
m()
|
|
@@ -9071,7 +9102,7 @@ const m4 = class m4 extends u {
|
|
|
9071
9102
|
}));
|
|
9072
9103
|
}
|
|
9073
9104
|
render() {
|
|
9074
|
-
return
|
|
9105
|
+
return s`
|
|
9075
9106
|
<div class="datepicker" part="datepicker">
|
|
9076
9107
|
<anduin-popover full-width placement=${this.placement}>
|
|
9077
9108
|
<anduin-date-input
|
|
@@ -9091,7 +9122,7 @@ const m4 = class m4 extends u {
|
|
|
9091
9122
|
></anduin-date-input>
|
|
9092
9123
|
|
|
9093
9124
|
<div class="datepicker__panel" part="panel">
|
|
9094
|
-
${this._open ?
|
|
9125
|
+
${this._open ? s`<anduin-calendar
|
|
9095
9126
|
part="calendar"
|
|
9096
9127
|
min-date=${this.minDate}
|
|
9097
9128
|
max-date=${this.maxDate}
|
|
@@ -9116,37 +9147,37 @@ m4.styles = g`
|
|
|
9116
9147
|
`;
|
|
9117
9148
|
let A = m4;
|
|
9118
9149
|
N([
|
|
9119
|
-
|
|
9150
|
+
a()
|
|
9120
9151
|
], A.prototype, "format");
|
|
9121
9152
|
N([
|
|
9122
|
-
|
|
9153
|
+
a()
|
|
9123
9154
|
], A.prototype, "value");
|
|
9124
9155
|
N([
|
|
9125
|
-
|
|
9156
|
+
a()
|
|
9126
9157
|
], A.prototype, "size");
|
|
9127
9158
|
N([
|
|
9128
|
-
|
|
9159
|
+
a({ type: Boolean })
|
|
9129
9160
|
], A.prototype, "disabled");
|
|
9130
9161
|
N([
|
|
9131
|
-
|
|
9162
|
+
a({ type: Boolean })
|
|
9132
9163
|
], A.prototype, "readonly");
|
|
9133
9164
|
N([
|
|
9134
|
-
|
|
9165
|
+
a()
|
|
9135
9166
|
], A.prototype, "status");
|
|
9136
9167
|
N([
|
|
9137
|
-
|
|
9168
|
+
a({ attribute: "start-icon" })
|
|
9138
9169
|
], A.prototype, "startIcon");
|
|
9139
9170
|
N([
|
|
9140
|
-
|
|
9171
|
+
a({ attribute: "min-date" })
|
|
9141
9172
|
], A.prototype, "minDate");
|
|
9142
9173
|
N([
|
|
9143
|
-
|
|
9174
|
+
a({ attribute: "max-date" })
|
|
9144
9175
|
], A.prototype, "maxDate");
|
|
9145
9176
|
N([
|
|
9146
|
-
|
|
9177
|
+
a()
|
|
9147
9178
|
], A.prototype, "placement");
|
|
9148
9179
|
N([
|
|
9149
|
-
|
|
9180
|
+
a()
|
|
9150
9181
|
], A.prototype, "inputid");
|
|
9151
9182
|
N([
|
|
9152
9183
|
m()
|
|
@@ -9163,7 +9194,7 @@ var e0 = Object.defineProperty, L = (r, e, t, o) => {
|
|
|
9163
9194
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
9164
9195
|
return i && e0(e, t, i), i;
|
|
9165
9196
|
};
|
|
9166
|
-
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",
|
|
9197
|
+
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", a0 = "anduin-table:row-collapse", s0 = "anduin-table:group-toggle", e3 = "anduin-table:column-resize", t3 = 40, n1 = (r) => r.type === "selection", C1 = (r, e) => {
|
|
9167
9198
|
if (!e) return;
|
|
9168
9199
|
let t = r;
|
|
9169
9200
|
for (const o of e.split(".")) {
|
|
@@ -9350,13 +9381,13 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9350
9381
|
toggleTreeRow(e) {
|
|
9351
9382
|
const t = !e.expanded, o = new Set(this.expandedKeys);
|
|
9352
9383
|
t ? o.add(e.key) : o.delete(e.key), this.expandedKeys = o, this.dispatchEvent(new CustomEvent(
|
|
9353
|
-
t ? l0 :
|
|
9384
|
+
t ? l0 : a0,
|
|
9354
9385
|
{ detail: { data: e.data, key: e.key, expanded: t }, bubbles: !0, composed: !0 }
|
|
9355
9386
|
));
|
|
9356
9387
|
}
|
|
9357
9388
|
toggleGroup(e) {
|
|
9358
9389
|
const t = !e.expanded, o = new Set(this.collapsedGroups);
|
|
9359
|
-
t ? o.delete(e.key) : o.add(e.key), this.collapsedGroups = o, this.dispatchEvent(new CustomEvent(
|
|
9390
|
+
t ? o.delete(e.key) : o.add(e.key), this.collapsedGroups = o, this.dispatchEvent(new CustomEvent(s0, {
|
|
9360
9391
|
detail: { value: e.value, rows: e.rows, expanded: t },
|
|
9361
9392
|
bubbles: !0,
|
|
9362
9393
|
composed: !0
|
|
@@ -9573,7 +9604,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9573
9604
|
].filter(Boolean).join(" "), d = this.cellStyle(e, t), c = e.headerAlign ?? e.align ?? this.columnAlign, C = [
|
|
9574
9605
|
"table__header-inner",
|
|
9575
9606
|
c !== "left" ? `table__header-inner--${c}` : ""
|
|
9576
|
-
].filter(Boolean).join(" "), h = this.columnKey(e, t), f = this.isColumnResizable(e) ?
|
|
9607
|
+
].filter(Boolean).join(" "), h = this.columnKey(e, t), f = this.isColumnResizable(e) ? s`
|
|
9577
9608
|
<span
|
|
9578
9609
|
class="table__resize-handle ${this.resizingKey === h ? "table__resize-handle--active" : ""}"
|
|
9579
9610
|
part="resize-handle"
|
|
@@ -9593,7 +9624,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9593
9624
|
areAllRowsSelected: D,
|
|
9594
9625
|
hasSelectedRow: M > 0,
|
|
9595
9626
|
onChange: (o1) => this.toggleAllRows(o1)
|
|
9596
|
-
}) :
|
|
9627
|
+
}) : s`
|
|
9597
9628
|
<anduin-checkbox
|
|
9598
9629
|
.checked=${D}
|
|
9599
9630
|
.indeterminate=${K}
|
|
@@ -9603,7 +9634,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9603
9634
|
}}
|
|
9604
9635
|
></anduin-checkbox>
|
|
9605
9636
|
`;
|
|
9606
|
-
return
|
|
9637
|
+
return s`
|
|
9607
9638
|
<th
|
|
9608
9639
|
class="${l}"
|
|
9609
9640
|
part="header-cell"
|
|
@@ -9613,14 +9644,14 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9613
9644
|
><div class="${C}">${Q1}</div>${f}</th>
|
|
9614
9645
|
`;
|
|
9615
9646
|
}
|
|
9616
|
-
const y = this.sortField === e.field, b = y ? this.sortDirection : null, V = e.renderHeader ? e.renderHeader({ column: e, sortDirection: b }) :
|
|
9647
|
+
const y = this.sortField === e.field, b = y ? this.sortDirection : null, V = e.renderHeader ? e.renderHeader({ column: e, sortDirection: b }) : s`<span class="table__header-text">${e.title ?? ""}</span>`, _ = e.isSortable ? s`
|
|
9617
9648
|
<anduin-icon
|
|
9618
9649
|
class="table__sort-icon ${y ? "table__sort-icon--active" : ""}"
|
|
9619
9650
|
name="${b === "desc" ? "caretDown" : "caretUp"}"
|
|
9620
9651
|
size="16"
|
|
9621
9652
|
></anduin-icon>
|
|
9622
9653
|
` : p;
|
|
9623
|
-
return
|
|
9654
|
+
return s`
|
|
9624
9655
|
<th
|
|
9625
9656
|
class="${l}"
|
|
9626
9657
|
part="header-cell"
|
|
@@ -9647,7 +9678,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9647
9678
|
this.sizingClass(o, i)
|
|
9648
9679
|
].filter(Boolean).join(" "), C = this.cellStyle(o, i);
|
|
9649
9680
|
if (n1(o)) {
|
|
9650
|
-
const V = this.renderSelectedKeys.has(e.key), _ = this.rowIsDisabled(e.data), v = (M) => this.setRowSelected(e, M), x = o.renderCell ? o.renderCell({ data: e.data, isChecked: V, isDisabled: _, onChange: v }) :
|
|
9681
|
+
const V = this.renderSelectedKeys.has(e.key), _ = this.rowIsDisabled(e.data), v = (M) => this.setRowSelected(e, M), x = o.renderCell ? o.renderCell({ data: e.data, isChecked: V, isDisabled: _, onChange: v }) : s`
|
|
9651
9682
|
<anduin-checkbox
|
|
9652
9683
|
.checked=${V}
|
|
9653
9684
|
.disabled=${_}
|
|
@@ -9657,7 +9688,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9657
9688
|
}}
|
|
9658
9689
|
></anduin-checkbox>
|
|
9659
9690
|
`;
|
|
9660
|
-
return
|
|
9691
|
+
return s`
|
|
9661
9692
|
<td
|
|
9662
9693
|
class="${c}"
|
|
9663
9694
|
part="cell"
|
|
@@ -9667,9 +9698,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9667
9698
|
>${x}</td>
|
|
9668
9699
|
`;
|
|
9669
9700
|
}
|
|
9670
|
-
const h = C1(e.data, o.field), f = o.renderCell ? o.renderCell({ data: e.data, value: h, rowIndex: t, column: o }) : h == null ? p : String(h), b = this.dataTree && i === this.firstDataColumnIndex ?
|
|
9701
|
+
const h = C1(e.data, o.field), f = o.renderCell ? o.renderCell({ data: e.data, value: h, rowIndex: t, column: o }) : h == null ? p : String(h), b = this.dataTree && i === this.firstDataColumnIndex ? s`
|
|
9671
9702
|
<div class="table__tree-cell" style="padding-left:${e.depth * this.treeChildIndent}px">
|
|
9672
|
-
${e.hasChildren ?
|
|
9703
|
+
${e.hasChildren ? s`
|
|
9673
9704
|
<button
|
|
9674
9705
|
class="table__tree-toggle"
|
|
9675
9706
|
type="button"
|
|
@@ -9684,11 +9715,11 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9684
9715
|
size="16"
|
|
9685
9716
|
></anduin-icon>
|
|
9686
9717
|
</button>
|
|
9687
|
-
` :
|
|
9718
|
+
` : s`<span class="table__tree-spacer"></span>`}
|
|
9688
9719
|
<span>${f}</span>
|
|
9689
9720
|
</div>
|
|
9690
9721
|
` : f;
|
|
9691
|
-
return
|
|
9722
|
+
return s`
|
|
9692
9723
|
<td
|
|
9693
9724
|
class="${c}"
|
|
9694
9725
|
part="cell"
|
|
@@ -9709,7 +9740,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9709
9740
|
o ? "table__row--selected" : "",
|
|
9710
9741
|
n
|
|
9711
9742
|
].filter(Boolean).join(" ");
|
|
9712
|
-
return
|
|
9743
|
+
return s`
|
|
9713
9744
|
<tr
|
|
9714
9745
|
class="${l}"
|
|
9715
9746
|
part="${n ? `row ${n}` : "row"}"
|
|
@@ -9720,16 +9751,16 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9720
9751
|
@mouseenter=${() => this.onRowMouseEnter(e)}
|
|
9721
9752
|
>
|
|
9722
9753
|
${this.columns.map((d, c) => this.renderCell(e, t, d, c))}
|
|
9723
|
-
${this.layout === "fit-data-fill" ?
|
|
9754
|
+
${this.layout === "fit-data-fill" ? s`<td class="table__cell" style="width:100%"></td>` : p}
|
|
9724
9755
|
</tr>
|
|
9725
9756
|
`;
|
|
9726
9757
|
}
|
|
9727
9758
|
renderGroupRow(e) {
|
|
9728
|
-
const t = this.renderGroupHeader ? this.renderGroupHeader(e.value, e.rows.length, e.rows) :
|
|
9759
|
+
const t = this.renderGroupHeader ? this.renderGroupHeader(e.value, e.rows.length, e.rows) : s`
|
|
9729
9760
|
<span>${String(e.value)}</span>
|
|
9730
9761
|
<span class="table__group-count">${e.rows.length}</span>
|
|
9731
9762
|
`;
|
|
9732
|
-
return
|
|
9763
|
+
return s`
|
|
9733
9764
|
<tr class="table__group-row" part="group-row">
|
|
9734
9765
|
<td class="table__group-cell" colspan="${this.columnCount}">
|
|
9735
9766
|
<button
|
|
@@ -9752,7 +9783,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9752
9783
|
return this.columns.length + (this.layout === "fit-data-fill" ? 1 : 0);
|
|
9753
9784
|
}
|
|
9754
9785
|
renderPlaceholder() {
|
|
9755
|
-
return
|
|
9786
|
+
return s`
|
|
9756
9787
|
<tr>
|
|
9757
9788
|
<td class="table__placeholder-cell" part="placeholder" colspan="${this.columnCount}">
|
|
9758
9789
|
<slot name="empty">No data to display</slot>
|
|
@@ -9775,32 +9806,32 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9775
9806
|
const h = Math.ceil((this.viewportHeight || 400) / this.rowHeight), f = Math.max(0, Math.floor(this.virtualScrollTop / this.rowHeight) - 6), y = Math.min(e.length, f + h + 12);
|
|
9776
9807
|
n = e.slice(f, y), l = f * this.rowHeight, d = (e.length - y) * this.rowHeight, c = f;
|
|
9777
9808
|
}
|
|
9778
|
-
return
|
|
9809
|
+
return s`
|
|
9779
9810
|
<div class="${i}" part="table" style="${t}">
|
|
9780
9811
|
<div class="table__scroll" part="scroll" @scroll=${this.onScroll}>
|
|
9781
9812
|
<table
|
|
9782
9813
|
class="table__el table__el--${this.layout}"
|
|
9783
9814
|
style="${o ? `min-width:${o}px` : ""}"
|
|
9784
9815
|
>
|
|
9785
|
-
${this.hideHeader ? p :
|
|
9816
|
+
${this.hideHeader ? p : s`
|
|
9786
9817
|
<thead part="header">
|
|
9787
9818
|
<tr class="table__header-row" part="header-row">
|
|
9788
9819
|
${this.columns.map((C, h) => this.renderHeaderCell(C, h))}
|
|
9789
|
-
${this.layout === "fit-data-fill" ?
|
|
9820
|
+
${this.layout === "fit-data-fill" ? s`<th class="table__header-cell" style="width:100%"></th>` : p}
|
|
9790
9821
|
</tr>
|
|
9791
9822
|
</thead>
|
|
9792
9823
|
`}
|
|
9793
9824
|
<tbody part="body">
|
|
9794
9825
|
${e.length === 0 ? this.renderPlaceholder() : p}
|
|
9795
|
-
${l > 0 ?
|
|
9826
|
+
${l > 0 ? s`<tr style="height:${l}px" aria-hidden="true"><td colspan="${this.columnCount}"></td></tr>` : p}
|
|
9796
9827
|
${n.map(
|
|
9797
9828
|
(C, h) => C.kind === "group" ? this.renderGroupRow(C) : this.renderRow(C, c + h)
|
|
9798
9829
|
)}
|
|
9799
|
-
${d > 0 ?
|
|
9830
|
+
${d > 0 ? s`<tr style="height:${d}px" aria-hidden="true"><td colspan="${this.columnCount}"></td></tr>` : p}
|
|
9800
9831
|
</tbody>
|
|
9801
9832
|
</table>
|
|
9802
9833
|
</div>
|
|
9803
|
-
${this.loading ?
|
|
9834
|
+
${this.loading ? s`
|
|
9804
9835
|
<div class="table__loading" part="loading">
|
|
9805
9836
|
<slot name="loading"><anduin-spinner size="medium"></anduin-spinner></slot>
|
|
9806
9837
|
</div>
|
|
@@ -10177,85 +10208,85 @@ b4.styles = g`
|
|
|
10177
10208
|
`;
|
|
10178
10209
|
let H = b4;
|
|
10179
10210
|
L([
|
|
10180
|
-
|
|
10211
|
+
a({ attribute: !1 })
|
|
10181
10212
|
], H.prototype, "columns");
|
|
10182
10213
|
L([
|
|
10183
|
-
|
|
10214
|
+
a({ attribute: !1 })
|
|
10184
10215
|
], H.prototype, "data");
|
|
10185
10216
|
L([
|
|
10186
|
-
|
|
10217
|
+
a({ reflect: !0 })
|
|
10187
10218
|
], H.prototype, "layout");
|
|
10188
10219
|
L([
|
|
10189
|
-
|
|
10220
|
+
a({ attribute: "render-mode", reflect: !0 })
|
|
10190
10221
|
], H.prototype, "renderMode");
|
|
10191
10222
|
L([
|
|
10192
|
-
|
|
10223
|
+
a({ type: Number, attribute: "row-height" })
|
|
10193
10224
|
], H.prototype, "rowHeight");
|
|
10194
10225
|
L([
|
|
10195
|
-
|
|
10226
|
+
a()
|
|
10196
10227
|
], H.prototype, "height");
|
|
10197
10228
|
L([
|
|
10198
|
-
|
|
10229
|
+
a({ attribute: "max-height" })
|
|
10199
10230
|
], H.prototype, "maxHeight");
|
|
10200
10231
|
L([
|
|
10201
|
-
|
|
10232
|
+
a({ attribute: "min-height" })
|
|
10202
10233
|
], H.prototype, "minHeight");
|
|
10203
10234
|
L([
|
|
10204
|
-
|
|
10235
|
+
a({
|
|
10205
10236
|
attribute: "resizable-columns",
|
|
10206
10237
|
converter: (r) => r !== "false"
|
|
10207
10238
|
})
|
|
10208
10239
|
], H.prototype, "resizableColumns");
|
|
10209
10240
|
L([
|
|
10210
|
-
|
|
10241
|
+
a({ type: Boolean, attribute: "hide-header", reflect: !0 })
|
|
10211
10242
|
], H.prototype, "hideHeader");
|
|
10212
10243
|
L([
|
|
10213
|
-
|
|
10244
|
+
a({ type: Boolean, reflect: !0 })
|
|
10214
10245
|
], H.prototype, "loading");
|
|
10215
10246
|
L([
|
|
10216
|
-
|
|
10247
|
+
a({ reflect: !0 })
|
|
10217
10248
|
], H.prototype, "selectable");
|
|
10218
10249
|
L([
|
|
10219
|
-
|
|
10250
|
+
a({ attribute: "index-column" })
|
|
10220
10251
|
], H.prototype, "indexColumn");
|
|
10221
10252
|
L([
|
|
10222
|
-
|
|
10253
|
+
a({ attribute: "column-align" })
|
|
10223
10254
|
], H.prototype, "columnAlign");
|
|
10224
10255
|
L([
|
|
10225
|
-
|
|
10256
|
+
a({ attribute: "column-vertical-align" })
|
|
10226
10257
|
], H.prototype, "columnVerticalAlign");
|
|
10227
10258
|
L([
|
|
10228
|
-
|
|
10259
|
+
a({ attribute: "sort-field" })
|
|
10229
10260
|
], H.prototype, "sortField");
|
|
10230
10261
|
L([
|
|
10231
|
-
|
|
10262
|
+
a({ attribute: "sort-direction" })
|
|
10232
10263
|
], H.prototype, "sortDirection");
|
|
10233
10264
|
L([
|
|
10234
|
-
|
|
10265
|
+
a({ type: Boolean, attribute: "data-tree", reflect: !0 })
|
|
10235
10266
|
], H.prototype, "dataTree");
|
|
10236
10267
|
L([
|
|
10237
|
-
|
|
10268
|
+
a({ attribute: "tree-children-field" })
|
|
10238
10269
|
], H.prototype, "treeChildrenField");
|
|
10239
10270
|
L([
|
|
10240
|
-
|
|
10271
|
+
a({ type: Number, attribute: "tree-child-indent" })
|
|
10241
10272
|
], H.prototype, "treeChildIndent");
|
|
10242
10273
|
L([
|
|
10243
|
-
|
|
10274
|
+
a({ attribute: "group-by" })
|
|
10244
10275
|
], H.prototype, "groupBy");
|
|
10245
10276
|
L([
|
|
10246
|
-
|
|
10277
|
+
a({ attribute: !1 })
|
|
10247
10278
|
], H.prototype, "selectedRows");
|
|
10248
10279
|
L([
|
|
10249
|
-
|
|
10280
|
+
a({ attribute: !1 })
|
|
10250
10281
|
], H.prototype, "isRowDisabled");
|
|
10251
10282
|
L([
|
|
10252
|
-
|
|
10283
|
+
a({ attribute: !1 })
|
|
10253
10284
|
], H.prototype, "onStartExpanded");
|
|
10254
10285
|
L([
|
|
10255
|
-
|
|
10286
|
+
a({ attribute: !1 })
|
|
10256
10287
|
], H.prototype, "rowClass");
|
|
10257
10288
|
L([
|
|
10258
|
-
|
|
10289
|
+
a({ attribute: !1 })
|
|
10259
10290
|
], H.prototype, "renderGroupHeader");
|
|
10260
10291
|
L([
|
|
10261
10292
|
m()
|
|
@@ -10285,26 +10316,26 @@ customElements.get("anduin-table") || customElements.define("anduin-table", H);
|
|
|
10285
10316
|
export {
|
|
10286
10317
|
A5 as $,
|
|
10287
10318
|
N1 as A,
|
|
10288
|
-
|
|
10289
|
-
|
|
10319
|
+
R as B,
|
|
10320
|
+
O as C,
|
|
10290
10321
|
P2 as D,
|
|
10291
10322
|
$1 as E,
|
|
10292
10323
|
G1 as F,
|
|
10293
10324
|
it as G,
|
|
10294
10325
|
ot as H,
|
|
10295
10326
|
b1 as I,
|
|
10296
|
-
|
|
10327
|
+
s1 as J,
|
|
10297
10328
|
y1 as K,
|
|
10298
10329
|
Dt as L,
|
|
10299
10330
|
Pt as M,
|
|
10300
10331
|
Q as N,
|
|
10301
10332
|
b5 as O,
|
|
10302
10333
|
b2 as P,
|
|
10303
|
-
|
|
10334
|
+
a1 as Q,
|
|
10304
10335
|
K1 as R,
|
|
10305
10336
|
Y1 as S,
|
|
10306
10337
|
W1 as T,
|
|
10307
|
-
|
|
10338
|
+
O2 as U,
|
|
10308
10339
|
E5 as V,
|
|
10309
10340
|
P5 as W,
|
|
10310
10341
|
B5 as X,
|
|
@@ -10313,7 +10344,7 @@ export {
|
|
|
10313
10344
|
S5 as _,
|
|
10314
10345
|
e1 as a,
|
|
10315
10346
|
l5 as a$,
|
|
10316
|
-
|
|
10347
|
+
I2 as a0,
|
|
10317
10348
|
D5 as a1,
|
|
10318
10349
|
H1 as a2,
|
|
10319
10350
|
F5 as a3,
|
|
@@ -10374,7 +10405,7 @@ export {
|
|
|
10374
10405
|
f5 as av,
|
|
10375
10406
|
u3 as aw,
|
|
10376
10407
|
Z2 as ax,
|
|
10377
|
-
|
|
10408
|
+
O5 as ay,
|
|
10378
10409
|
x7 as az,
|
|
10379
10410
|
S2 as b,
|
|
10380
10411
|
kt as b0,
|
|
@@ -10383,16 +10414,16 @@ export {
|
|
|
10383
10414
|
r0 as b3,
|
|
10384
10415
|
i0 as b4,
|
|
10385
10416
|
e3 as b5,
|
|
10386
|
-
|
|
10417
|
+
s0 as b6,
|
|
10387
10418
|
o0 as b7,
|
|
10388
|
-
|
|
10419
|
+
a0 as b8,
|
|
10389
10420
|
l0 as b9,
|
|
10390
10421
|
n0 as ba,
|
|
10391
10422
|
t0 as bb,
|
|
10392
10423
|
F7 as bc,
|
|
10393
10424
|
M3 as bd,
|
|
10394
10425
|
W2 as be,
|
|
10395
|
-
|
|
10426
|
+
I7 as bf,
|
|
10396
10427
|
P7 as bg,
|
|
10397
10428
|
U7 as bh,
|
|
10398
10429
|
G7 as bi,
|
|
@@ -10411,17 +10442,17 @@ export {
|
|
|
10411
10442
|
g3 as bv,
|
|
10412
10443
|
P as bw,
|
|
10413
10444
|
gt as bx,
|
|
10414
|
-
|
|
10445
|
+
I1 as by,
|
|
10415
10446
|
h0 as bz,
|
|
10416
10447
|
v2 as c,
|
|
10417
|
-
|
|
10448
|
+
$ as d,
|
|
10418
10449
|
j as e,
|
|
10419
10450
|
A2 as f,
|
|
10420
10451
|
v1 as g,
|
|
10421
10452
|
S as h,
|
|
10422
10453
|
A as i,
|
|
10423
10454
|
t1 as j,
|
|
10424
|
-
|
|
10455
|
+
I5 as k,
|
|
10425
10456
|
Kt as l,
|
|
10426
10457
|
N2 as m,
|
|
10427
10458
|
Gt as n,
|
|
@@ -10431,7 +10462,7 @@ export {
|
|
|
10431
10462
|
Mt as r,
|
|
10432
10463
|
w as s,
|
|
10433
10464
|
B2 as t,
|
|
10434
|
-
|
|
10465
|
+
s5 as u,
|
|
10435
10466
|
d5 as v,
|
|
10436
10467
|
c5 as w,
|
|
10437
10468
|
y2 as x,
|