@duyluonganduin/acl-web-components 0.0.31 → 0.0.33
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 +74 -0
- package/dist/acl-web-components.iife.js +213 -175
- package/dist/acl-web-components.js +73 -69
- package/dist/{anduin-navigation-CKAX7m3F.js → anduin-resizable-DDazzVxw.js} +1213 -968
- package/dist/{anduin-navigation-ThZ7NdnT.cjs → anduin-resizable-DZFDqytP.cjs} +209 -171
- package/dist/jsx.d.ts +22 -0
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +82 -0
- package/dist/react.js +108 -99
- package/package.json +1 -1
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
let
|
|
6
|
+
const Y1 = globalThis, A2 = Y1.ShadowRoot && (Y1.ShadyCSS === void 0 || Y1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, B2 = Symbol(), O5 = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let d4 = class {
|
|
8
8
|
constructor(e, t, i) {
|
|
9
|
-
if (this._$cssResult$ = !0, i !==
|
|
9
|
+
if (this._$cssResult$ = !0, i !== B2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = e, this.t = t;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let e = this.o;
|
|
14
14
|
const t = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (A2 && e === void 0) {
|
|
16
16
|
const i = t !== void 0 && t.length === 1;
|
|
17
|
-
i && (e =
|
|
17
|
+
i && (e = O5.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && O5.set(t, e));
|
|
18
18
|
}
|
|
19
19
|
return e;
|
|
20
20
|
}
|
|
@@ -22,95 +22,95 @@ let t4 = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
const t =
|
|
25
|
+
const B4 = (r) => new d4(typeof r == "string" ? r : r + "", void 0, B2), g = (r, ...e) => {
|
|
26
|
+
const t = r.length === 1 ? r[0] : e.reduce((i, o, l) => i + ((n) => {
|
|
27
27
|
if (n._$cssResult$ === !0) return n.cssText;
|
|
28
28
|
if (typeof n == "number") return n;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
-
})(o) + l
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
30
|
+
})(o) + r[l + 1], r[0]);
|
|
31
|
+
return new d4(t, r, B2);
|
|
32
|
+
}, P4 = (r, e) => {
|
|
33
|
+
if (A2) r.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
34
34
|
else for (const t of e) {
|
|
35
|
-
const i = document.createElement("style"), o =
|
|
36
|
-
o !== void 0 && i.setAttribute("nonce", o), i.textContent = t.cssText,
|
|
35
|
+
const i = document.createElement("style"), o = Y1.litNonce;
|
|
36
|
+
o !== void 0 && i.setAttribute("nonce", o), i.textContent = t.cssText, r.appendChild(i);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, D5 = A2 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
|
|
39
39
|
let t = "";
|
|
40
40
|
for (const i of e.cssRules) t += i.cssText;
|
|
41
|
-
return
|
|
42
|
-
})(
|
|
41
|
+
return B4(t);
|
|
42
|
+
})(r) : r;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: S4, defineProperty: F4, getOwnPropertyDescriptor: O4, getOwnPropertyNames: D4, getOwnPropertySymbols: I4, getPrototypeOf: T4 } = Object, W = globalThis, I5 = W.trustedTypes, N4 = I5 ? I5.emptyScript : "", s2 = W.reactiveElementPolyfillSupport, x1 = (r, e) => r, X1 = { toAttribute(r, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
|
|
51
|
+
r = r ? N4 : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
55
|
-
|
|
55
|
+
r = r == null ? r : JSON.stringify(r);
|
|
56
56
|
}
|
|
57
|
-
return
|
|
58
|
-
}, fromAttribute(
|
|
59
|
-
let t =
|
|
57
|
+
return r;
|
|
58
|
+
}, fromAttribute(r, e) {
|
|
59
|
+
let t = r;
|
|
60
60
|
switch (e) {
|
|
61
61
|
case Boolean:
|
|
62
|
-
t =
|
|
62
|
+
t = r !== null;
|
|
63
63
|
break;
|
|
64
64
|
case Number:
|
|
65
|
-
t =
|
|
65
|
+
t = r === null ? null : Number(r);
|
|
66
66
|
break;
|
|
67
67
|
case Object:
|
|
68
68
|
case Array:
|
|
69
69
|
try {
|
|
70
|
-
t = JSON.parse(
|
|
70
|
+
t = JSON.parse(r);
|
|
71
71
|
} catch {
|
|
72
72
|
t = null;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return t;
|
|
76
|
-
} },
|
|
76
|
+
} }, P2 = (r, e) => !S4(r, e), T5 = { attribute: !0, type: String, converter: X1, reflect: !1, useDefault: !1, hasChanged: P2 };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), W.litPropertyMetadata ?? (W.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
-
let
|
|
78
|
+
let g1 = class extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
81
81
|
}
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(e, t =
|
|
85
|
+
static createProperty(e, t = T5) {
|
|
86
86
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
87
87
|
const i = Symbol(), o = this.getPropertyDescriptor(e, i, t);
|
|
88
|
-
o !== void 0 &&
|
|
88
|
+
o !== void 0 && F4(this.prototype, e, o);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(e, t, i) {
|
|
92
|
-
const { get: o, set:
|
|
92
|
+
const { get: o, set: l } = O4(this.prototype, e) ?? { get() {
|
|
93
93
|
return this[t];
|
|
94
94
|
}, set(n) {
|
|
95
95
|
this[t] = n;
|
|
96
96
|
} };
|
|
97
97
|
return { get: o, set(n) {
|
|
98
98
|
const s = o == null ? void 0 : o.call(this);
|
|
99
|
-
|
|
99
|
+
l == null || l.call(this, n), this.requestUpdate(e, s, i);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(e) {
|
|
103
|
-
return this.elementProperties.get(e) ??
|
|
103
|
+
return this.elementProperties.get(e) ?? T5;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const e =
|
|
106
|
+
if (this.hasOwnProperty(x1("elementProperties"))) return;
|
|
107
|
+
const e = T4(this);
|
|
108
108
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
-
const t = this.properties, i = [...
|
|
111
|
+
if (this.hasOwnProperty(x1("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(x1("properties"))) {
|
|
113
|
+
const t = this.properties, i = [...D4(t), ...I4(t)];
|
|
114
114
|
for (const o of i) this.createProperty(o, t[o]);
|
|
115
115
|
}
|
|
116
116
|
const e = this[Symbol.metadata];
|
|
@@ -129,8 +129,8 @@ let h1 = class extends HTMLElement {
|
|
|
129
129
|
const t = [];
|
|
130
130
|
if (Array.isArray(e)) {
|
|
131
131
|
const i = new Set(e.flat(1 / 0).reverse());
|
|
132
|
-
for (const o of i) t.unshift(
|
|
133
|
-
} else e !== void 0 && t.push(
|
|
132
|
+
for (const o of i) t.unshift(D5(o));
|
|
133
|
+
} else e !== void 0 && t.push(D5(e));
|
|
134
134
|
return t;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(e, t) {
|
|
@@ -159,7 +159,7 @@ let h1 = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return P4(e, this.constructor.elementStyles), e;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var e;
|
|
@@ -181,34 +181,34 @@ let h1 = class extends HTMLElement {
|
|
|
181
181
|
this._$AK(e, i);
|
|
182
182
|
}
|
|
183
183
|
_$ET(e, t) {
|
|
184
|
-
var
|
|
184
|
+
var l;
|
|
185
185
|
const i = this.constructor.elementProperties.get(e), o = this.constructor._$Eu(e, i);
|
|
186
186
|
if (o !== void 0 && i.reflect === !0) {
|
|
187
|
-
const n = (((
|
|
187
|
+
const n = (((l = i.converter) == null ? void 0 : l.toAttribute) !== void 0 ? i.converter : X1).toAttribute(t, i.type);
|
|
188
188
|
this._$Em = e, n == null ? this.removeAttribute(o) : this.setAttribute(o, n), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(e, t) {
|
|
192
|
-
var
|
|
192
|
+
var l, n;
|
|
193
193
|
const i = this.constructor, o = i._$Eh.get(e);
|
|
194
194
|
if (o !== void 0 && this._$Em !== o) {
|
|
195
|
-
const s = i.getPropertyOptions(o), d = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((
|
|
195
|
+
const s = i.getPropertyOptions(o), d = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((l = s.converter) == null ? void 0 : l.fromAttribute) !== void 0 ? s.converter : X1;
|
|
196
196
|
this._$Em = o;
|
|
197
197
|
const p = d.fromAttribute(t, s.type);
|
|
198
198
|
this[o] = p ?? ((n = this._$Ej) == null ? void 0 : n.get(o)) ?? p, this._$Em = null;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
requestUpdate(e, t, i, o = !1,
|
|
201
|
+
requestUpdate(e, t, i, o = !1, l) {
|
|
202
202
|
var n;
|
|
203
203
|
if (e !== void 0) {
|
|
204
204
|
const s = this.constructor;
|
|
205
|
-
if (o === !1 && (
|
|
205
|
+
if (o === !1 && (l = this[e]), i ?? (i = s.getPropertyOptions(e)), !((i.hasChanged ?? P2)(l, t) || i.useDefault && i.reflect && l === ((n = this._$Ej) == null ? void 0 : n.get(e)) && !this.hasAttribute(s._$Eu(e, i)))) return;
|
|
206
206
|
this.C(e, t, i);
|
|
207
207
|
}
|
|
208
208
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
209
209
|
}
|
|
210
|
-
C(e, t, { useDefault: i, reflect: o, wrapped:
|
|
211
|
-
i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, n ?? t ?? this[e]),
|
|
210
|
+
C(e, t, { useDefault: i, reflect: o, wrapped: l }, n) {
|
|
211
|
+
i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, n ?? t ?? this[e]), l !== !0 || n !== void 0) || (this._$AL.has(e) || (this.hasUpdated || i || (t = void 0), this._$AL.set(e, t)), o === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
|
|
212
212
|
}
|
|
213
213
|
async _$EP() {
|
|
214
214
|
this.isUpdatePending = !0;
|
|
@@ -228,21 +228,21 @@ let h1 = class extends HTMLElement {
|
|
|
228
228
|
if (!this.isUpdatePending) return;
|
|
229
229
|
if (!this.hasUpdated) {
|
|
230
230
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
231
|
-
for (const [
|
|
231
|
+
for (const [l, n] of this._$Ep) this[l] = n;
|
|
232
232
|
this._$Ep = void 0;
|
|
233
233
|
}
|
|
234
234
|
const o = this.constructor.elementProperties;
|
|
235
|
-
if (o.size > 0) for (const [
|
|
236
|
-
const { wrapped: s } = n, d = this[
|
|
237
|
-
s !== !0 || this._$AL.has(
|
|
235
|
+
if (o.size > 0) for (const [l, n] of o) {
|
|
236
|
+
const { wrapped: s } = n, d = this[l];
|
|
237
|
+
s !== !0 || this._$AL.has(l) || d === void 0 || this.C(l, void 0, n, d);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
let e = !1;
|
|
241
241
|
const t = this._$AL;
|
|
242
242
|
try {
|
|
243
243
|
e = this.shouldUpdate(t), e ? (this.willUpdate(t), (i = this._$EO) == null || i.forEach((o) => {
|
|
244
|
-
var
|
|
245
|
-
return (
|
|
244
|
+
var l;
|
|
245
|
+
return (l = o.hostUpdate) == null ? void 0 : l.call(o);
|
|
246
246
|
}), this.update(t)) : this._$EM();
|
|
247
247
|
} catch (o) {
|
|
248
248
|
throw e = !1, this._$EM(), o;
|
|
@@ -278,61 +278,61 @@ let h1 = class extends HTMLElement {
|
|
|
278
278
|
firstUpdated(e) {
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
|
|
281
|
+
g1.elementStyles = [], g1.shadowRootOptions = { mode: "open" }, g1[x1("elementProperties")] = /* @__PURE__ */ new Map(), g1[x1("finalized")] = /* @__PURE__ */ new Map(), s2 == null || s2({ ReactiveElement: g1 }), (W.reactiveElementVersions ?? (W.reactiveElementVersions = [])).push("2.1.2");
|
|
282
282
|
/**
|
|
283
283
|
* @license
|
|
284
284
|
* Copyright 2017 Google LLC
|
|
285
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
286
|
*/
|
|
287
|
-
const
|
|
288
|
-
\f\r]`,
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
290
|
-
function
|
|
291
|
-
if (!
|
|
292
|
-
return
|
|
287
|
+
const w1 = globalThis, N5 = (r) => r, K1 = w1.trustedTypes, j5 = K1 ? K1.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, c4 = "$lit$", q = `lit$${Math.random().toFixed(9).slice(2)}$`, p4 = "?" + q, j4 = `<${p4}>`, n1 = document, R1 = () => n1.createComment(""), k1 = (r) => r === null || typeof r != "object" && typeof r != "function", S2 = Array.isArray, U4 = (r) => S2(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", C2 = `[
|
|
288
|
+
\f\r]`, Z1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, U5 = /-->/g, G5 = />/g, i1 = RegExp(`>|${C2}(?:([^\\s"'>=/]+)(${C2}*=${C2}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), q5 = /'/g, W5 = /"/g, u4 = /^(?:script|style|textarea|title)$/i, h4 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), C = h4(1), J1 = h4(2), a1 = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), Y5 = /* @__PURE__ */ new WeakMap(), l1 = n1.createTreeWalker(n1, 129);
|
|
290
|
+
function g4(r, e) {
|
|
291
|
+
if (!S2(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
+
return j5 !== void 0 ? j5.createHTML(e) : e;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
295
|
-
const t =
|
|
296
|
-
let o,
|
|
294
|
+
const G4 = (r, e) => {
|
|
295
|
+
const t = r.length - 1, i = [];
|
|
296
|
+
let o, l = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = Z1;
|
|
297
297
|
for (let s = 0; s < t; s++) {
|
|
298
|
-
const d =
|
|
298
|
+
const d = r[s];
|
|
299
299
|
let p, h, v = -1, H = 0;
|
|
300
|
-
for (; H < d.length && (n.lastIndex = H, h = n.exec(d), h !== null); ) H = n.lastIndex, n ===
|
|
301
|
-
const f = n === i1 &&
|
|
302
|
-
|
|
300
|
+
for (; H < d.length && (n.lastIndex = H, h = n.exec(d), h !== null); ) H = n.lastIndex, n === Z1 ? h[1] === "!--" ? n = U5 : h[1] !== void 0 ? n = G5 : h[2] !== void 0 ? (u4.test(h[2]) && (o = RegExp("</" + h[2], "g")), n = i1) : h[3] !== void 0 && (n = i1) : n === i1 ? h[0] === ">" ? (n = o ?? Z1, v = -1) : h[1] === void 0 ? v = -2 : (v = n.lastIndex - h[2].length, p = h[1], n = h[3] === void 0 ? i1 : h[3] === '"' ? W5 : q5) : n === W5 || n === q5 ? n = i1 : n === U5 || n === G5 ? n = Z1 : (n = i1, o = void 0);
|
|
301
|
+
const f = n === i1 && r[s + 1].startsWith("/>") ? " " : "";
|
|
302
|
+
l += n === Z1 ? d + j4 : v >= 0 ? (i.push(p), d.slice(0, v) + c4 + d.slice(v) + q + f) : d + q + (v === -2 ? s : f);
|
|
303
303
|
}
|
|
304
|
-
return [
|
|
304
|
+
return [g4(r, l + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
305
305
|
};
|
|
306
|
-
class
|
|
306
|
+
class $1 {
|
|
307
307
|
constructor({ strings: e, _$litType$: t }, i) {
|
|
308
308
|
let o;
|
|
309
309
|
this.parts = [];
|
|
310
|
-
let
|
|
311
|
-
const s = e.length - 1, d = this.parts, [p, h] =
|
|
312
|
-
if (this.el =
|
|
310
|
+
let l = 0, n = 0;
|
|
311
|
+
const s = e.length - 1, d = this.parts, [p, h] = G4(e, t);
|
|
312
|
+
if (this.el = $1.createElement(p, i), l1.currentNode = this.el.content, t === 2 || t === 3) {
|
|
313
313
|
const v = this.el.content.firstChild;
|
|
314
314
|
v.replaceWith(...v.childNodes);
|
|
315
315
|
}
|
|
316
316
|
for (; (o = l1.nextNode()) !== null && d.length < s; ) {
|
|
317
317
|
if (o.nodeType === 1) {
|
|
318
|
-
if (o.hasAttributes()) for (const v of o.getAttributeNames()) if (v.endsWith(
|
|
319
|
-
const H = h[n++], f = o.getAttribute(v).split(
|
|
320
|
-
d.push({ type: 1, index:
|
|
321
|
-
} else v.startsWith(
|
|
322
|
-
if (
|
|
323
|
-
const v = o.textContent.split(
|
|
318
|
+
if (o.hasAttributes()) for (const v of o.getAttributeNames()) if (v.endsWith(c4)) {
|
|
319
|
+
const H = h[n++], f = o.getAttribute(v).split(q), Z = /([.?@])?(.*)/.exec(H);
|
|
320
|
+
d.push({ type: 1, index: l, name: Z[2], strings: f, ctor: Z[1] === "." ? W4 : Z[1] === "?" ? Y4 : Z[1] === "@" ? X4 : n2 }), o.removeAttribute(v);
|
|
321
|
+
} else v.startsWith(q) && (d.push({ type: 6, index: l }), o.removeAttribute(v));
|
|
322
|
+
if (u4.test(o.tagName)) {
|
|
323
|
+
const v = o.textContent.split(q), H = v.length - 1;
|
|
324
324
|
if (H > 0) {
|
|
325
|
-
o.textContent =
|
|
326
|
-
for (let f = 0; f < H; f++) o.append(v[f],
|
|
327
|
-
o.append(v[H],
|
|
325
|
+
o.textContent = K1 ? K1.emptyScript : "";
|
|
326
|
+
for (let f = 0; f < H; f++) o.append(v[f], R1()), l1.nextNode(), d.push({ type: 2, index: ++l });
|
|
327
|
+
o.append(v[H], R1());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
} else if (o.nodeType === 8) if (o.data ===
|
|
330
|
+
} else if (o.nodeType === 8) if (o.data === p4) d.push({ type: 2, index: l });
|
|
331
331
|
else {
|
|
332
332
|
let v = -1;
|
|
333
|
-
for (; (v = o.data.indexOf(
|
|
333
|
+
for (; (v = o.data.indexOf(q, v + 1)) !== -1; ) d.push({ type: 7, index: l }), v += q.length - 1;
|
|
334
334
|
}
|
|
335
|
-
|
|
335
|
+
l++;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
static createElement(e, t) {
|
|
@@ -340,14 +340,14 @@ class w1 {
|
|
|
340
340
|
return i.innerHTML = e, i;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function v1(r, e, t = r, i) {
|
|
344
344
|
var n, s;
|
|
345
345
|
if (e === a1) return e;
|
|
346
346
|
let o = i !== void 0 ? (n = t._$Co) == null ? void 0 : n[i] : t._$Cl;
|
|
347
|
-
const
|
|
348
|
-
return (o == null ? void 0 : o.constructor) !==
|
|
347
|
+
const l = k1(e) ? void 0 : e._$litDirective$;
|
|
348
|
+
return (o == null ? void 0 : o.constructor) !== l && ((s = o == null ? void 0 : o._$AO) == null || s.call(o, !1), l === void 0 ? o = void 0 : (o = new l(r), o._$AT(r, t, i)), i !== void 0 ? (t._$Co ?? (t._$Co = []))[i] = o : t._$Cl = o), o !== void 0 && (e = v1(r, o._$AS(r, e.values), o, i)), e;
|
|
349
349
|
}
|
|
350
|
-
class
|
|
350
|
+
class q4 {
|
|
351
351
|
constructor(e, t) {
|
|
352
352
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
353
353
|
}
|
|
@@ -360,13 +360,13 @@ class P4 {
|
|
|
360
360
|
u(e) {
|
|
361
361
|
const { el: { content: t }, parts: i } = this._$AD, o = ((e == null ? void 0 : e.creationScope) ?? n1).importNode(t, !0);
|
|
362
362
|
l1.currentNode = o;
|
|
363
|
-
let
|
|
363
|
+
let l = l1.nextNode(), n = 0, s = 0, d = i[0];
|
|
364
364
|
for (; d !== void 0; ) {
|
|
365
365
|
if (n === d.index) {
|
|
366
366
|
let p;
|
|
367
|
-
d.type === 2 ? p = new
|
|
367
|
+
d.type === 2 ? p = new U1(l, l.nextSibling, this, e) : d.type === 1 ? p = new d.ctor(l, d.name, d.strings, this, e) : d.type === 6 && (p = new K4(l, this, e)), this._$AV.push(p), d = i[++s];
|
|
368
368
|
}
|
|
369
|
-
n !== (d == null ? void 0 : d.index) && (
|
|
369
|
+
n !== (d == null ? void 0 : d.index) && (l = l1.nextNode(), n++);
|
|
370
370
|
}
|
|
371
371
|
return l1.currentNode = n1, o;
|
|
372
372
|
}
|
|
@@ -375,7 +375,7 @@ class P4 {
|
|
|
375
375
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, t), t += i.strings.length - 2) : i._$AI(e[t])), t++;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
class
|
|
378
|
+
class U1 {
|
|
379
379
|
get _$AU() {
|
|
380
380
|
var e;
|
|
381
381
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
@@ -395,7 +395,7 @@ class T1 {
|
|
|
395
395
|
return this._$AB;
|
|
396
396
|
}
|
|
397
397
|
_$AI(e, t = this) {
|
|
398
|
-
e =
|
|
398
|
+
e = v1(this, e, t), k1(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== a1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : U4(e) ? this.k(e) : this._(e);
|
|
399
399
|
}
|
|
400
400
|
O(e) {
|
|
401
401
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -404,33 +404,33 @@ class T1 {
|
|
|
404
404
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
405
405
|
}
|
|
406
406
|
_(e) {
|
|
407
|
-
this._$AH !== c &&
|
|
407
|
+
this._$AH !== c && k1(this._$AH) ? this._$AA.nextSibling.data = e : this.T(n1.createTextNode(e)), this._$AH = e;
|
|
408
408
|
}
|
|
409
409
|
$(e) {
|
|
410
|
-
var
|
|
411
|
-
const { values: t, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el =
|
|
412
|
-
if (((
|
|
410
|
+
var l;
|
|
411
|
+
const { values: t, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = $1.createElement(g4(i.h, i.h[0]), this.options)), i);
|
|
412
|
+
if (((l = this._$AH) == null ? void 0 : l._$AD) === o) this._$AH.p(t);
|
|
413
413
|
else {
|
|
414
|
-
const n = new
|
|
414
|
+
const n = new q4(o, this), s = n.u(this.options);
|
|
415
415
|
n.p(t), this.T(s), this._$AH = n;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
_$AC(e) {
|
|
419
|
-
let t =
|
|
420
|
-
return t === void 0 &&
|
|
419
|
+
let t = Y5.get(e.strings);
|
|
420
|
+
return t === void 0 && Y5.set(e.strings, t = new $1(e)), t;
|
|
421
421
|
}
|
|
422
422
|
k(e) {
|
|
423
|
-
|
|
423
|
+
S2(this._$AH) || (this._$AH = [], this._$AR());
|
|
424
424
|
const t = this._$AH;
|
|
425
425
|
let i, o = 0;
|
|
426
|
-
for (const
|
|
426
|
+
for (const l of e) o === t.length ? t.push(i = new U1(this.O(R1()), this.O(R1()), this, this.options)) : i = t[o], i._$AI(l), o++;
|
|
427
427
|
o < t.length && (this._$AR(i && i._$AB.nextSibling, o), t.length = o);
|
|
428
428
|
}
|
|
429
429
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
430
430
|
var i;
|
|
431
431
|
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, t); e !== this._$AB; ) {
|
|
432
|
-
const o =
|
|
433
|
-
|
|
432
|
+
const o = N5(e).nextSibling;
|
|
433
|
+
N5(e).remove(), e = o;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
setConnected(e) {
|
|
@@ -438,24 +438,24 @@ class T1 {
|
|
|
438
438
|
this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class n2 {
|
|
442
442
|
get tagName() {
|
|
443
443
|
return this.element.tagName;
|
|
444
444
|
}
|
|
445
445
|
get _$AU() {
|
|
446
446
|
return this._$AM._$AU;
|
|
447
447
|
}
|
|
448
|
-
constructor(e, t, i, o,
|
|
449
|
-
this.type = 1, this._$AH = c, this._$AN = void 0, this.element = e, this.name = t, this._$AM = o, this.options =
|
|
448
|
+
constructor(e, t, i, o, l) {
|
|
449
|
+
this.type = 1, this._$AH = c, this._$AN = void 0, this.element = e, this.name = t, this._$AM = o, this.options = l, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = c;
|
|
450
450
|
}
|
|
451
451
|
_$AI(e, t = this, i, o) {
|
|
452
|
-
const
|
|
452
|
+
const l = this.strings;
|
|
453
453
|
let n = !1;
|
|
454
|
-
if (
|
|
454
|
+
if (l === void 0) e = v1(this, e, t, 0), n = !k1(e) || e !== this._$AH && e !== a1, n && (this._$AH = e);
|
|
455
455
|
else {
|
|
456
456
|
const s = e;
|
|
457
457
|
let d, p;
|
|
458
|
-
for (e =
|
|
458
|
+
for (e = l[0], d = 0; d < l.length - 1; d++) p = v1(this, s[i + d], t, d), p === a1 && (p = this._$AH[d]), n || (n = !k1(p) || p !== this._$AH[d]), p === c ? e = c : e !== c && (e += (p ?? "") + l[d + 1]), this._$AH[d] = p;
|
|
459
459
|
}
|
|
460
460
|
n && !o && this.j(e);
|
|
461
461
|
}
|
|
@@ -463,7 +463,7 @@ class o2 {
|
|
|
463
463
|
e === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
class
|
|
466
|
+
class W4 extends n2 {
|
|
467
467
|
constructor() {
|
|
468
468
|
super(...arguments), this.type = 3;
|
|
469
469
|
}
|
|
@@ -471,7 +471,7 @@ class F4 extends o2 {
|
|
|
471
471
|
this.element[this.name] = e === c ? void 0 : e;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class Y4 extends n2 {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(...arguments), this.type = 4;
|
|
477
477
|
}
|
|
@@ -479,21 +479,21 @@ class O4 extends o2 {
|
|
|
479
479
|
this.element.toggleAttribute(this.name, !!e && e !== c);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
class
|
|
483
|
-
constructor(e, t, i, o,
|
|
484
|
-
super(e, t, i, o,
|
|
482
|
+
class X4 extends n2 {
|
|
483
|
+
constructor(e, t, i, o, l) {
|
|
484
|
+
super(e, t, i, o, l), this.type = 5;
|
|
485
485
|
}
|
|
486
486
|
_$AI(e, t = this) {
|
|
487
|
-
if ((e =
|
|
488
|
-
const i = this._$AH, o = e === c && i !== c || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive,
|
|
489
|
-
o && this.element.removeEventListener(this.name, this, i),
|
|
487
|
+
if ((e = v1(this, e, t, 0) ?? c) === a1) return;
|
|
488
|
+
const i = this._$AH, o = e === c && i !== c || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, l = e !== c && (i === c || o);
|
|
489
|
+
o && this.element.removeEventListener(this.name, this, i), l && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
490
490
|
}
|
|
491
491
|
handleEvent(e) {
|
|
492
492
|
var t;
|
|
493
493
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
class
|
|
496
|
+
class K4 {
|
|
497
497
|
constructor(e, t, i) {
|
|
498
498
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
|
|
499
499
|
}
|
|
@@ -501,19 +501,19 @@ class D4 {
|
|
|
501
501
|
return this._$AM._$AU;
|
|
502
502
|
}
|
|
503
503
|
_$AI(e) {
|
|
504
|
-
|
|
504
|
+
v1(this, e);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
const
|
|
507
|
+
const d2 = w1.litHtmlPolyfillSupport;
|
|
508
|
+
d2 == null || d2($1, U1), (w1.litHtmlVersions ?? (w1.litHtmlVersions = [])).push("3.3.2");
|
|
509
|
+
const J4 = (r, e, t) => {
|
|
510
510
|
const i = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
511
511
|
let o = i._$litPart$;
|
|
512
512
|
if (o === void 0) {
|
|
513
|
-
const
|
|
514
|
-
i._$litPart$ = o = new
|
|
513
|
+
const l = (t == null ? void 0 : t.renderBefore) ?? null;
|
|
514
|
+
i._$litPart$ = o = new U1(e.insertBefore(R1(), l), l, void 0, t ?? {});
|
|
515
515
|
}
|
|
516
|
-
return o._$AI(
|
|
516
|
+
return o._$AI(r), o;
|
|
517
517
|
};
|
|
518
518
|
/**
|
|
519
519
|
* @license
|
|
@@ -521,7 +521,7 @@ const T4 = (l, e, t) => {
|
|
|
521
521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
522
522
|
*/
|
|
523
523
|
const r1 = globalThis;
|
|
524
|
-
let u = class extends
|
|
524
|
+
let u = class extends g1 {
|
|
525
525
|
constructor() {
|
|
526
526
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
527
527
|
}
|
|
@@ -532,7 +532,7 @@ let u = class extends h1 {
|
|
|
532
532
|
}
|
|
533
533
|
update(e) {
|
|
534
534
|
const t = this.render();
|
|
535
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
535
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = J4(t, this.renderRoot, this.renderOptions);
|
|
536
536
|
}
|
|
537
537
|
connectedCallback() {
|
|
538
538
|
var e;
|
|
@@ -546,79 +546,79 @@ let u = class extends h1 {
|
|
|
546
546
|
return a1;
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
|
-
var
|
|
550
|
-
u._$litElement$ = !0, u.finalized = !0, (
|
|
551
|
-
const
|
|
552
|
-
|
|
549
|
+
var C4;
|
|
550
|
+
u._$litElement$ = !0, u.finalized = !0, (C4 = r1.litElementHydrateSupport) == null || C4.call(r1, { LitElement: u });
|
|
551
|
+
const c2 = r1.litElementPolyfillSupport;
|
|
552
|
+
c2 == null || c2({ LitElement: u });
|
|
553
553
|
(r1.litElementVersions ?? (r1.litElementVersions = [])).push("4.2.2");
|
|
554
554
|
/**
|
|
555
555
|
* @license
|
|
556
556
|
* Copyright 2017 Google LLC
|
|
557
557
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
558
558
|
*/
|
|
559
|
-
const
|
|
559
|
+
const Q4 = { attribute: !0, type: String, converter: X1, reflect: !1, hasChanged: P2 }, e3 = (r = Q4, e, t) => {
|
|
560
560
|
const { kind: i, metadata: o } = t;
|
|
561
|
-
let
|
|
562
|
-
if (
|
|
561
|
+
let l = globalThis.litPropertyMetadata.get(o);
|
|
562
|
+
if (l === void 0 && globalThis.litPropertyMetadata.set(o, l = /* @__PURE__ */ new Map()), i === "setter" && ((r = Object.create(r)).wrapped = !0), l.set(t.name, r), i === "accessor") {
|
|
563
563
|
const { name: n } = t;
|
|
564
564
|
return { set(s) {
|
|
565
565
|
const d = e.get.call(this);
|
|
566
|
-
e.set.call(this, s), this.requestUpdate(n, d,
|
|
566
|
+
e.set.call(this, s), this.requestUpdate(n, d, r, !0, s);
|
|
567
567
|
}, init(s) {
|
|
568
|
-
return s !== void 0 && this.C(n, void 0,
|
|
568
|
+
return s !== void 0 && this.C(n, void 0, r, s), s;
|
|
569
569
|
} };
|
|
570
570
|
}
|
|
571
571
|
if (i === "setter") {
|
|
572
572
|
const { name: n } = t;
|
|
573
573
|
return function(s) {
|
|
574
574
|
const d = this[n];
|
|
575
|
-
e.call(this, s), this.requestUpdate(n, d,
|
|
575
|
+
e.call(this, s), this.requestUpdate(n, d, r, !0, s);
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
578
|
throw Error("Unsupported decorator location: " + i);
|
|
579
579
|
};
|
|
580
|
-
function a(
|
|
581
|
-
return (e, t) => typeof t == "object" ?
|
|
582
|
-
const n = o.hasOwnProperty(
|
|
583
|
-
return o.constructor.createProperty(
|
|
584
|
-
})(
|
|
580
|
+
function a(r) {
|
|
581
|
+
return (e, t) => typeof t == "object" ? e3(r, e, t) : ((i, o, l) => {
|
|
582
|
+
const n = o.hasOwnProperty(l);
|
|
583
|
+
return o.constructor.createProperty(l, i), n ? Object.getOwnPropertyDescriptor(o, l) : void 0;
|
|
584
|
+
})(r, e, t);
|
|
585
585
|
}
|
|
586
586
|
/**
|
|
587
587
|
* @license
|
|
588
588
|
* Copyright 2017 Google LLC
|
|
589
589
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
590
590
|
*/
|
|
591
|
-
function
|
|
592
|
-
return a({ ...
|
|
591
|
+
function m(r) {
|
|
592
|
+
return a({ ...r, state: !0, attribute: !1 });
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
595
595
|
* @license
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
const
|
|
599
|
+
const t3 = (r, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, t), t);
|
|
600
600
|
/**
|
|
601
601
|
* @license
|
|
602
602
|
* Copyright 2017 Google LLC
|
|
603
603
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
604
604
|
*/
|
|
605
|
-
function k(
|
|
605
|
+
function k(r, e) {
|
|
606
606
|
return (t, i, o) => {
|
|
607
|
-
const
|
|
607
|
+
const l = (n) => {
|
|
608
608
|
var s;
|
|
609
|
-
return ((s = n.renderRoot) == null ? void 0 : s.querySelector(
|
|
609
|
+
return ((s = n.renderRoot) == null ? void 0 : s.querySelector(r)) ?? null;
|
|
610
610
|
};
|
|
611
|
-
return
|
|
612
|
-
return
|
|
611
|
+
return t3(t, i, { get() {
|
|
612
|
+
return l(this);
|
|
613
613
|
} });
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
var
|
|
617
|
-
for (var o = void 0,
|
|
618
|
-
(n = l
|
|
619
|
-
return o &&
|
|
616
|
+
var o3 = Object.defineProperty, v4 = (r, e, t, i) => {
|
|
617
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
618
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
619
|
+
return o && o3(e, t, o), o;
|
|
620
620
|
};
|
|
621
|
-
const
|
|
621
|
+
const I2 = class I2 extends u {
|
|
622
622
|
constructor() {
|
|
623
623
|
super(...arguments), this.size = "medium", this.percent = "";
|
|
624
624
|
}
|
|
@@ -640,14 +640,14 @@ const P2 = class P2 extends u {
|
|
|
640
640
|
const [e, t] = this.getSizeParams(this.size), i = this.percent === "" || this.percent === null;
|
|
641
641
|
let o;
|
|
642
642
|
i ? o = 0.75 * Math.PI * e : o = (1 - Math.max(0, Math.min(1, parseFloat(this.percent) || 0))) * Math.PI * e;
|
|
643
|
-
const
|
|
644
|
-
return
|
|
643
|
+
const l = t / 2, n = t + e, s = e / 2, d = Math.PI * e;
|
|
644
|
+
return J1`
|
|
645
645
|
<svg
|
|
646
646
|
class=${i ? "spinner" : ""}
|
|
647
647
|
width="${e}px"
|
|
648
648
|
height="${e}px"
|
|
649
649
|
transform="rotate(-90)"
|
|
650
|
-
viewBox="-${
|
|
650
|
+
viewBox="-${l} -${l} ${n} ${n}"
|
|
651
651
|
xmlns="http://www.w3.org/2000/svg"
|
|
652
652
|
>
|
|
653
653
|
<circle
|
|
@@ -675,31 +675,31 @@ const P2 = class P2 extends u {
|
|
|
675
675
|
`;
|
|
676
676
|
}
|
|
677
677
|
};
|
|
678
|
-
|
|
678
|
+
I2.styles = g`
|
|
679
679
|
:host { display: inline-block; line-height: 0; font-family: var(--font-sans); }
|
|
680
680
|
.spinner { animation: circle 0.6s linear infinite; }
|
|
681
681
|
@keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
|
682
682
|
`;
|
|
683
|
-
let
|
|
684
|
-
|
|
683
|
+
let E1 = I2;
|
|
684
|
+
v4([
|
|
685
685
|
a()
|
|
686
|
-
],
|
|
687
|
-
|
|
686
|
+
], E1.prototype, "size");
|
|
687
|
+
v4([
|
|
688
688
|
a()
|
|
689
|
-
],
|
|
690
|
-
customElements.get("anduin-spinner") || customElements.define("anduin-spinner",
|
|
691
|
-
var
|
|
692
|
-
for (var o = void 0,
|
|
693
|
-
(n = l
|
|
694
|
-
return o &&
|
|
689
|
+
], E1.prototype, "percent");
|
|
690
|
+
customElements.get("anduin-spinner") || customElements.define("anduin-spinner", E1);
|
|
691
|
+
var i3 = Object.defineProperty, f4 = (r, e, t, i) => {
|
|
692
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
693
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
694
|
+
return o && i3(e, t, o), o;
|
|
695
695
|
};
|
|
696
|
-
const
|
|
696
|
+
const X5 = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.63534 5.88184C9.71811 6.10553 9.89447 6.28189 10.1182 6.36466L12.4664 7.23359C13.1779 7.49685 13.1779 8.50314 12.4664 8.76641L10.1182 9.63534C9.89447 9.71811 9.71811 9.89447 9.63534 10.1182L8.76641 12.4664C8.50314 13.1779 7.49685 13.1779 7.23359 12.4664L6.36466 10.1182C6.28189 9.89447 6.10553 9.71811 5.88185 9.63534L3.5336 8.76641C2.82213 8.50314 2.82213 7.49685 3.5336 7.23359L5.88184 6.36466C6.10553 6.28189 6.28189 6.10553 6.36466 5.88185L7.23359 3.5336Z", l3 = { small: 16, medium: 24, large: 32 }, T2 = class T2 extends u {
|
|
697
697
|
constructor() {
|
|
698
698
|
super(...arguments), this.size = "small", this.color = "default";
|
|
699
699
|
}
|
|
700
700
|
render() {
|
|
701
|
-
const e =
|
|
702
|
-
return
|
|
701
|
+
const e = l3[this.size] ?? 16;
|
|
702
|
+
return J1`
|
|
703
703
|
<svg
|
|
704
704
|
xmlns="http://www.w3.org/2000/svg"
|
|
705
705
|
width="${e}"
|
|
@@ -708,13 +708,13 @@ const N5 = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.635
|
|
|
708
708
|
fill="currentColor"
|
|
709
709
|
overflow="visible"
|
|
710
710
|
>
|
|
711
|
-
<path class="star" d="${
|
|
712
|
-
<path class="star star-2" d="${
|
|
711
|
+
<path class="star" d="${X5}"/>
|
|
712
|
+
<path class="star star-2" d="${X5}"/>
|
|
713
713
|
</svg>
|
|
714
714
|
`;
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
|
-
|
|
717
|
+
T2.styles = g`
|
|
718
718
|
:host { display: inline-block; line-height: 0; }
|
|
719
719
|
|
|
720
720
|
/* ── Colors ─────────────────────────────────────────────────── */
|
|
@@ -753,15 +753,15 @@ F2.styles = g`
|
|
|
753
753
|
100% { transform: translate(12px, 12px) scale(0.5); opacity: 0; }
|
|
754
754
|
}
|
|
755
755
|
`;
|
|
756
|
-
let
|
|
757
|
-
|
|
756
|
+
let z1 = T2;
|
|
757
|
+
f4([
|
|
758
758
|
a({ reflect: !0 })
|
|
759
|
-
],
|
|
760
|
-
|
|
759
|
+
], z1.prototype, "size");
|
|
760
|
+
f4([
|
|
761
761
|
a({ reflect: !0 })
|
|
762
|
-
],
|
|
763
|
-
customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner",
|
|
764
|
-
const
|
|
762
|
+
], z1.prototype, "color");
|
|
763
|
+
customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", z1);
|
|
764
|
+
const K5 = {
|
|
765
765
|
access: [{ d: "M13 2.5H3C2.72386 2.5 2.5 2.72386 2.5 3V5.75H1V3C1 1.89543 1.89543 1 3 1H13C14.1046 1 15 1.89543 15 3V13C15 14.1046 14.1046 15 13 15H3C1.89543 15 1 14.1046 1 13V10.25H2.5V13C2.5 13.2761 2.72386 13.5 3 13.5H13C13.2761 13.5 13.5 13.2761 13.5 13V3C13.5 2.72386 13.2761 2.5 13 2.5ZM7.53033 4.21979C7.23744 3.9269 6.76256 3.9269 6.46967 4.21979C6.17678 4.51269 6.17678 4.98756 6.46967 5.28045L8.43922 7.25L0.75 7.25C0.335786 7.25 0 7.58579 0 8C0 8.41421 0.335786 8.75 0.75 8.75L8.43946 8.75L6.46967 10.7198C6.17678 11.0127 6.17678 11.4876 6.46967 11.7805C6.76256 12.0733 7.23744 12.0733 7.53033 11.7805L10.7803 8.53044C11.0732 8.23755 11.0732 7.76268 10.7803 7.46978L7.53033 4.21979Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
766
766
|
alignCenter: [{ d: "M2 1C1.44772 1 1 1.44772 1 2C1 2.55228 1.44772 3 2 3H14C14.5523 3 15 2.55228 15 2C15 1.44772 14.5523 1 14 1H2ZM2 9C1.44772 9 1 9.44771 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44771 14.5523 9 14 9H2ZM4 6C4 5.44772 4.44772 5 5 5H11C11.5523 5 12 5.44772 12 6C12 6.55228 11.5523 7 11 7H5C4.44772 7 4 6.55228 4 6ZM5 13C4.44772 13 4 13.4477 4 14C4 14.5523 4.44772 15 5 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13H5Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
767
767
|
alignJustify: [{ d: "M2 1C1.44772 1 1 1.44772 1 2C1 2.55228 1.44772 3 2 3H14C14.5523 3 15 2.55228 15 2C15 1.44772 14.5523 1 14 1H2ZM2 9C1.44772 9 1 9.44771 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44771 14.5523 9 14 9H2ZM1 6C1 5.44772 1.44772 5 2 5H14C14.5523 5 15 5.44772 15 6C15 6.55228 14.5523 7 14 7H2C1.44772 7 1 6.55228 1 6ZM2 13C1.44772 13 1 13.4477 1 14C1 14.5523 1.44772 15 2 15H14C14.5523 15 15 14.5523 15 14C15 13.4477 14.5523 13 14 13H2Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
@@ -1110,18 +1110,18 @@ const j5 = {
|
|
|
1110
1110
|
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" }],
|
|
1111
1111
|
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" }]
|
|
1112
1112
|
};
|
|
1113
|
-
var
|
|
1114
|
-
for (var o = void 0,
|
|
1115
|
-
(n = l
|
|
1116
|
-
return o &&
|
|
1113
|
+
var r3 = Object.defineProperty, H4 = (r, e, t, i) => {
|
|
1114
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1115
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1116
|
+
return o && r3(e, t, o), o;
|
|
1117
1117
|
};
|
|
1118
|
-
const
|
|
1118
|
+
const N2 = class N2 extends u {
|
|
1119
1119
|
constructor() {
|
|
1120
1120
|
super(...arguments), this.name = "", this.size = 16;
|
|
1121
1121
|
}
|
|
1122
1122
|
render() {
|
|
1123
|
-
const e = this.name &&
|
|
1124
|
-
return
|
|
1123
|
+
const e = this.name && K5[this.name] ? K5[this.name] : [], t = !this.name;
|
|
1124
|
+
return J1`
|
|
1125
1125
|
<svg
|
|
1126
1126
|
class=${t ? "icon--hidden" : ""}
|
|
1127
1127
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1131,7 +1131,7 @@ const O2 = class O2 extends u {
|
|
|
1131
1131
|
viewBox="0 0 16 16"
|
|
1132
1132
|
>
|
|
1133
1133
|
${e.map(
|
|
1134
|
-
(i) =>
|
|
1134
|
+
(i) => J1`
|
|
1135
1135
|
<path
|
|
1136
1136
|
fill="currentColor"
|
|
1137
1137
|
d="${i.d}"
|
|
@@ -1143,24 +1143,24 @@ const O2 = class O2 extends u {
|
|
|
1143
1143
|
`;
|
|
1144
1144
|
}
|
|
1145
1145
|
};
|
|
1146
|
-
|
|
1146
|
+
N2.styles = g`
|
|
1147
1147
|
:host { display: block; line-height: 0; font-family: var(--font-sans); }
|
|
1148
1148
|
.icon--hidden { display: none; }
|
|
1149
1149
|
`;
|
|
1150
|
-
let
|
|
1151
|
-
|
|
1150
|
+
let A1 = N2;
|
|
1151
|
+
H4([
|
|
1152
1152
|
a()
|
|
1153
|
-
],
|
|
1154
|
-
|
|
1153
|
+
], A1.prototype, "name");
|
|
1154
|
+
H4([
|
|
1155
1155
|
a({ type: Number })
|
|
1156
|
-
],
|
|
1157
|
-
customElements.get("anduin-icon") || customElements.define("anduin-icon",
|
|
1158
|
-
var
|
|
1159
|
-
for (var o = void 0,
|
|
1160
|
-
(n = l
|
|
1161
|
-
return o &&
|
|
1156
|
+
], A1.prototype, "size");
|
|
1157
|
+
customElements.get("anduin-icon") || customElements.define("anduin-icon", A1);
|
|
1158
|
+
var n3 = Object.defineProperty, a3 = (r, e, t, i) => {
|
|
1159
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1160
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1161
|
+
return o && n3(e, t, o), o;
|
|
1162
1162
|
};
|
|
1163
|
-
const
|
|
1163
|
+
const V4 = g`
|
|
1164
1164
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1165
1165
|
.badge {
|
|
1166
1166
|
border-radius: 9999px;
|
|
@@ -1187,7 +1187,7 @@ const d4 = g`
|
|
|
1187
1187
|
.badge--bold-warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1188
1188
|
.badge--hidden { display: none; }
|
|
1189
1189
|
`;
|
|
1190
|
-
function
|
|
1190
|
+
function m4(r) {
|
|
1191
1191
|
return {
|
|
1192
1192
|
gray: "badge--light-gray",
|
|
1193
1193
|
primary: "badge--light-primary",
|
|
@@ -1199,29 +1199,29 @@ function c4(l) {
|
|
|
1199
1199
|
boldSuccess: "badge--bold-success",
|
|
1200
1200
|
boldWarning: "badge--bold-warning",
|
|
1201
1201
|
boldDanger: "badge--bold-danger"
|
|
1202
|
-
}[
|
|
1202
|
+
}[r || "gray"] || "badge--light-gray";
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1204
|
+
const j2 = class j2 extends u {
|
|
1205
1205
|
constructor() {
|
|
1206
1206
|
super(...arguments), this.variant = "gray";
|
|
1207
1207
|
}
|
|
1208
1208
|
render() {
|
|
1209
|
-
const e =
|
|
1209
|
+
const e = m4(this.variant);
|
|
1210
1210
|
return C`<div class="badge ${e}" part="badge"><slot></slot></div>`;
|
|
1211
1211
|
}
|
|
1212
1212
|
};
|
|
1213
|
-
|
|
1214
|
-
let
|
|
1215
|
-
|
|
1213
|
+
j2.styles = [V4];
|
|
1214
|
+
let Q1 = j2;
|
|
1215
|
+
a3([
|
|
1216
1216
|
a()
|
|
1217
|
-
],
|
|
1218
|
-
customElements.get("anduin-badge") || customElements.define("anduin-badge",
|
|
1219
|
-
var
|
|
1220
|
-
for (var o = void 0,
|
|
1221
|
-
(n = l
|
|
1222
|
-
return o &&
|
|
1217
|
+
], Q1.prototype, "variant");
|
|
1218
|
+
customElements.get("anduin-badge") || customElements.define("anduin-badge", Q1);
|
|
1219
|
+
var s3 = Object.defineProperty, b4 = (r, e, t, i) => {
|
|
1220
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1221
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1222
|
+
return o && s3(e, t, o), o;
|
|
1223
1223
|
};
|
|
1224
|
-
const
|
|
1224
|
+
const U2 = class U2 extends u {
|
|
1225
1225
|
constructor() {
|
|
1226
1226
|
super(...arguments), this.variant = "gray", this.count = 0;
|
|
1227
1227
|
}
|
|
@@ -1229,7 +1229,7 @@ const D2 = class D2 extends u {
|
|
|
1229
1229
|
return e > 99 ? "99+" : e.toString();
|
|
1230
1230
|
}
|
|
1231
1231
|
render() {
|
|
1232
|
-
const e =
|
|
1232
|
+
const e = m4(this.variant), t = this.count === 0, i = this.count > 0 && this.count < 10, o = [
|
|
1233
1233
|
"badge",
|
|
1234
1234
|
e,
|
|
1235
1235
|
t ? "badge--hidden" : "",
|
|
@@ -1238,24 +1238,24 @@ const D2 = class D2 extends u {
|
|
|
1238
1238
|
return C`<div class="${o}" part="badge">${this.formatCount(this.count)}</div>`;
|
|
1239
1239
|
}
|
|
1240
1240
|
};
|
|
1241
|
-
|
|
1242
|
-
let
|
|
1243
|
-
|
|
1241
|
+
U2.styles = [V4];
|
|
1242
|
+
let B1 = U2;
|
|
1243
|
+
b4([
|
|
1244
1244
|
a()
|
|
1245
|
-
],
|
|
1246
|
-
|
|
1245
|
+
], B1.prototype, "variant");
|
|
1246
|
+
b4([
|
|
1247
1247
|
a({ type: Number })
|
|
1248
|
-
],
|
|
1249
|
-
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count",
|
|
1250
|
-
var
|
|
1251
|
-
for (var o = void 0,
|
|
1252
|
-
(n = l
|
|
1253
|
-
return o &&
|
|
1248
|
+
], B1.prototype, "count");
|
|
1249
|
+
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", B1);
|
|
1250
|
+
var C3 = Object.defineProperty, _ = (r, e, t, i) => {
|
|
1251
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1252
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1253
|
+
return o && C3(e, t, o), o;
|
|
1254
1254
|
};
|
|
1255
|
-
function
|
|
1256
|
-
return
|
|
1255
|
+
function d3(r) {
|
|
1256
|
+
return r.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1257
1257
|
}
|
|
1258
|
-
const
|
|
1258
|
+
const G2 = class G2 extends u {
|
|
1259
1259
|
constructor() {
|
|
1260
1260
|
super(...arguments), this.iconOnly = !1, this.appearance = "filled", this.variant = "", this.size = "medium", this.disabled = !1, this.loading = !1, this.fullWidth = !1, this.pill = !1, this.selected = !1, this.href = "", this.openNewTab = !1, this.download = "", this.startIcon = "", this.endIcon = "", this.label = "";
|
|
1261
1261
|
}
|
|
@@ -1272,7 +1272,7 @@ const T2 = class T2 extends u {
|
|
|
1272
1272
|
return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
|
|
1273
1273
|
}
|
|
1274
1274
|
getSizeKebab() {
|
|
1275
|
-
return
|
|
1275
|
+
return d3(this.size);
|
|
1276
1276
|
}
|
|
1277
1277
|
iconSize() {
|
|
1278
1278
|
return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
|
|
@@ -1316,7 +1316,7 @@ const T2 = class T2 extends u {
|
|
|
1316
1316
|
`;
|
|
1317
1317
|
}
|
|
1318
1318
|
};
|
|
1319
|
-
|
|
1319
|
+
G2.styles = g`
|
|
1320
1320
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1321
1321
|
:host([full-width]) { display: block; width: 100%; }
|
|
1322
1322
|
.button {
|
|
@@ -1429,59 +1429,59 @@ T2.styles = g`
|
|
|
1429
1429
|
.button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
|
|
1430
1430
|
.button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
|
|
1431
1431
|
`;
|
|
1432
|
-
let
|
|
1432
|
+
let L = G2;
|
|
1433
1433
|
_([
|
|
1434
|
-
|
|
1435
|
-
],
|
|
1434
|
+
m()
|
|
1435
|
+
], L.prototype, "iconOnly");
|
|
1436
1436
|
_([
|
|
1437
|
-
a({ converter: (
|
|
1438
|
-
],
|
|
1437
|
+
a({ converter: (r) => r || "filled" })
|
|
1438
|
+
], L.prototype, "appearance");
|
|
1439
1439
|
_([
|
|
1440
1440
|
a()
|
|
1441
|
-
],
|
|
1441
|
+
], L.prototype, "variant");
|
|
1442
1442
|
_([
|
|
1443
1443
|
a()
|
|
1444
|
-
],
|
|
1444
|
+
], L.prototype, "size");
|
|
1445
1445
|
_([
|
|
1446
1446
|
a({ type: Boolean })
|
|
1447
|
-
],
|
|
1447
|
+
], L.prototype, "disabled");
|
|
1448
1448
|
_([
|
|
1449
1449
|
a({ type: Boolean })
|
|
1450
|
-
],
|
|
1450
|
+
], L.prototype, "loading");
|
|
1451
1451
|
_([
|
|
1452
1452
|
a({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
1453
|
-
],
|
|
1453
|
+
], L.prototype, "fullWidth");
|
|
1454
1454
|
_([
|
|
1455
1455
|
a({ type: Boolean })
|
|
1456
|
-
],
|
|
1456
|
+
], L.prototype, "pill");
|
|
1457
1457
|
_([
|
|
1458
1458
|
a({ type: Boolean })
|
|
1459
|
-
],
|
|
1459
|
+
], L.prototype, "selected");
|
|
1460
1460
|
_([
|
|
1461
1461
|
a()
|
|
1462
|
-
],
|
|
1462
|
+
], L.prototype, "href");
|
|
1463
1463
|
_([
|
|
1464
1464
|
a({ type: Boolean, attribute: "open-new-tab" })
|
|
1465
|
-
],
|
|
1465
|
+
], L.prototype, "openNewTab");
|
|
1466
1466
|
_([
|
|
1467
1467
|
a()
|
|
1468
|
-
],
|
|
1468
|
+
], L.prototype, "download");
|
|
1469
1469
|
_([
|
|
1470
1470
|
a({ attribute: "start-icon" })
|
|
1471
|
-
],
|
|
1471
|
+
], L.prototype, "startIcon");
|
|
1472
1472
|
_([
|
|
1473
1473
|
a({ attribute: "end-icon" })
|
|
1474
|
-
],
|
|
1474
|
+
], L.prototype, "endIcon");
|
|
1475
1475
|
_([
|
|
1476
1476
|
a()
|
|
1477
|
-
],
|
|
1478
|
-
customElements.get("anduin-button") || customElements.define("anduin-button",
|
|
1479
|
-
var
|
|
1480
|
-
for (var o = void 0,
|
|
1481
|
-
(n = l
|
|
1482
|
-
return o &&
|
|
1477
|
+
], L.prototype, "label");
|
|
1478
|
+
customElements.get("anduin-button") || customElements.define("anduin-button", L);
|
|
1479
|
+
var c3 = Object.defineProperty, p3 = (r, e, t, i) => {
|
|
1480
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1481
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1482
|
+
return o && c3(e, t, o), o;
|
|
1483
1483
|
};
|
|
1484
|
-
const
|
|
1484
|
+
const q2 = class q2 extends u {
|
|
1485
1485
|
constructor() {
|
|
1486
1486
|
super(...arguments), this.variant = "gray";
|
|
1487
1487
|
}
|
|
@@ -1494,7 +1494,7 @@ const N2 = class N2 extends u {
|
|
|
1494
1494
|
`;
|
|
1495
1495
|
}
|
|
1496
1496
|
};
|
|
1497
|
-
|
|
1497
|
+
q2.styles = g`
|
|
1498
1498
|
:host { display: block; font-family: var(--font-sans); }
|
|
1499
1499
|
.callout {
|
|
1500
1500
|
display: flex; align-items: center; justify-content: center;
|
|
@@ -1506,17 +1506,17 @@ N2.styles = g`
|
|
|
1506
1506
|
.callout--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1507
1507
|
.callout--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1508
1508
|
`;
|
|
1509
|
-
let
|
|
1510
|
-
|
|
1509
|
+
let e2 = q2;
|
|
1510
|
+
p3([
|
|
1511
1511
|
a()
|
|
1512
|
-
],
|
|
1513
|
-
customElements.get("anduin-callout") || customElements.define("anduin-callout",
|
|
1514
|
-
var
|
|
1515
|
-
for (var o = void 0,
|
|
1516
|
-
(n = l
|
|
1517
|
-
return o &&
|
|
1512
|
+
], e2.prototype, "variant");
|
|
1513
|
+
customElements.get("anduin-callout") || customElements.define("anduin-callout", e2);
|
|
1514
|
+
var u3 = Object.defineProperty, L4 = (r, e, t, i) => {
|
|
1515
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1516
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1517
|
+
return o && u3(e, t, o), o;
|
|
1518
1518
|
};
|
|
1519
|
-
const
|
|
1519
|
+
const W2 = class W2 extends u {
|
|
1520
1520
|
constructor() {
|
|
1521
1521
|
super(...arguments), this.direction = "horizontal", this.hasContent = !1;
|
|
1522
1522
|
}
|
|
@@ -1529,8 +1529,8 @@ const j2 = class j2 extends u {
|
|
|
1529
1529
|
onSlotChange(e) {
|
|
1530
1530
|
const i = e.target.assignedNodes({ flatten: !0 });
|
|
1531
1531
|
this.hasContent = i.some((o) => {
|
|
1532
|
-
var
|
|
1533
|
-
return ((
|
|
1532
|
+
var l;
|
|
1533
|
+
return ((l = o.textContent) == null ? void 0 : l.trim()) !== "";
|
|
1534
1534
|
});
|
|
1535
1535
|
}
|
|
1536
1536
|
render() {
|
|
@@ -1547,7 +1547,7 @@ const j2 = class j2 extends u {
|
|
|
1547
1547
|
</div>` : C`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
|
|
1548
1548
|
}
|
|
1549
1549
|
};
|
|
1550
|
-
|
|
1550
|
+
W2.styles = g`
|
|
1551
1551
|
:host { display: block; width: 100%; font-family: var(--font-sans); }
|
|
1552
1552
|
:host([direction="vertical"]) { width: auto; height: 100%; }
|
|
1553
1553
|
.divider--horizontal { margin-top: 8px; margin-bottom: 8px; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; text-align: center; }
|
|
@@ -1557,20 +1557,20 @@ j2.styles = g`
|
|
|
1557
1557
|
.divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
|
|
1558
1558
|
.divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
|
|
1559
1559
|
`;
|
|
1560
|
-
let
|
|
1561
|
-
|
|
1560
|
+
let P1 = W2;
|
|
1561
|
+
L4([
|
|
1562
1562
|
a({ reflect: !0 })
|
|
1563
|
-
],
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
],
|
|
1567
|
-
customElements.get("anduin-divider") || customElements.define("anduin-divider",
|
|
1568
|
-
var
|
|
1569
|
-
for (var o = void 0,
|
|
1570
|
-
(n = l
|
|
1571
|
-
return o &&
|
|
1563
|
+
], P1.prototype, "direction");
|
|
1564
|
+
L4([
|
|
1565
|
+
m()
|
|
1566
|
+
], P1.prototype, "hasContent");
|
|
1567
|
+
customElements.get("anduin-divider") || customElements.define("anduin-divider", P1);
|
|
1568
|
+
var h3 = Object.defineProperty, g3 = (r, e, t, i) => {
|
|
1569
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1570
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1571
|
+
return o && h3(e, t, o), o;
|
|
1572
1572
|
};
|
|
1573
|
-
const
|
|
1573
|
+
const Y2 = class Y2 extends u {
|
|
1574
1574
|
constructor() {
|
|
1575
1575
|
super(...arguments), this.variant = "gray";
|
|
1576
1576
|
}
|
|
@@ -1578,7 +1578,7 @@ const U2 = class U2 extends u {
|
|
|
1578
1578
|
return C`<div class="dot dot--${this.variant}" part="dot"></div>`;
|
|
1579
1579
|
}
|
|
1580
1580
|
};
|
|
1581
|
-
|
|
1581
|
+
Y2.styles = g`
|
|
1582
1582
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1583
1583
|
.dot { width: 10px; height: 10px; border-radius: 9999px; }
|
|
1584
1584
|
.dot--gray { background-color: var(--color-semantic-gray-6); color: var(--color-semantic-gray-0); }
|
|
@@ -1587,17 +1587,17 @@ U2.styles = g`
|
|
|
1587
1587
|
.dot--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1588
1588
|
.dot--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1589
1589
|
`;
|
|
1590
|
-
let
|
|
1591
|
-
|
|
1590
|
+
let t2 = Y2;
|
|
1591
|
+
g3([
|
|
1592
1592
|
a()
|
|
1593
|
-
],
|
|
1594
|
-
customElements.get("anduin-dot") || customElements.define("anduin-dot",
|
|
1595
|
-
var
|
|
1596
|
-
for (var o = void 0,
|
|
1597
|
-
(n = l
|
|
1598
|
-
return o &&
|
|
1593
|
+
], t2.prototype, "variant");
|
|
1594
|
+
customElements.get("anduin-dot") || customElements.define("anduin-dot", t2);
|
|
1595
|
+
var v3 = Object.defineProperty, y4 = (r, e, t, i) => {
|
|
1596
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1597
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1598
|
+
return o && v3(e, t, o), o;
|
|
1599
1599
|
};
|
|
1600
|
-
const
|
|
1600
|
+
const X2 = class X2 extends u {
|
|
1601
1601
|
constructor() {
|
|
1602
1602
|
super(...arguments), this.percent = "", this.height = "medium";
|
|
1603
1603
|
}
|
|
@@ -1613,7 +1613,7 @@ const q2 = class q2 extends u {
|
|
|
1613
1613
|
`;
|
|
1614
1614
|
}
|
|
1615
1615
|
};
|
|
1616
|
-
|
|
1616
|
+
X2.styles = g`
|
|
1617
1617
|
:host { display: block; font-family: var(--font-sans); }
|
|
1618
1618
|
.progress { overflow-x: hidden; position: relative; border-radius: 9999px; }
|
|
1619
1619
|
.progress__fill {
|
|
@@ -1629,20 +1629,20 @@ q2.styles = g`
|
|
|
1629
1629
|
to { transform: translateX(330%); }
|
|
1630
1630
|
}
|
|
1631
1631
|
`;
|
|
1632
|
-
let
|
|
1633
|
-
|
|
1632
|
+
let S1 = X2;
|
|
1633
|
+
y4([
|
|
1634
1634
|
a()
|
|
1635
|
-
],
|
|
1636
|
-
|
|
1635
|
+
], S1.prototype, "percent");
|
|
1636
|
+
y4([
|
|
1637
1637
|
a()
|
|
1638
|
-
],
|
|
1639
|
-
customElements.get("anduin-progress") || customElements.define("anduin-progress",
|
|
1640
|
-
var
|
|
1641
|
-
for (var o = void 0,
|
|
1642
|
-
(n = l
|
|
1643
|
-
return o &&
|
|
1638
|
+
], S1.prototype, "height");
|
|
1639
|
+
customElements.get("anduin-progress") || customElements.define("anduin-progress", S1);
|
|
1640
|
+
var f3 = Object.defineProperty, y1 = (r, e, t, i) => {
|
|
1641
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1642
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1643
|
+
return o && f3(e, t, o), o;
|
|
1644
1644
|
};
|
|
1645
|
-
const
|
|
1645
|
+
const K2 = class K2 extends u {
|
|
1646
1646
|
constructor() {
|
|
1647
1647
|
super(...arguments), this.effect = "pulse", this.shape = "rectangle", this.height = "", this.width = "100%", this.duration = 1500, this.fontSize = "";
|
|
1648
1648
|
}
|
|
@@ -1661,7 +1661,7 @@ const G2 = class G2 extends u {
|
|
|
1661
1661
|
`;
|
|
1662
1662
|
}
|
|
1663
1663
|
};
|
|
1664
|
-
|
|
1664
|
+
K2.styles = g`
|
|
1665
1665
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1666
1666
|
.skeleton { background-color: var(--color-gray-3); position: relative; overflow: hidden; }
|
|
1667
1667
|
.skeleton--circle { border-radius: 9999px; }
|
|
@@ -1680,32 +1680,32 @@ G2.styles = g`
|
|
|
1680
1680
|
0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
|
|
1681
1681
|
}
|
|
1682
1682
|
`;
|
|
1683
|
-
let
|
|
1684
|
-
|
|
1683
|
+
let I = K2;
|
|
1684
|
+
y1([
|
|
1685
1685
|
a()
|
|
1686
|
-
],
|
|
1687
|
-
|
|
1686
|
+
], I.prototype, "effect");
|
|
1687
|
+
y1([
|
|
1688
1688
|
a()
|
|
1689
|
-
],
|
|
1690
|
-
|
|
1689
|
+
], I.prototype, "shape");
|
|
1690
|
+
y1([
|
|
1691
1691
|
a()
|
|
1692
|
-
],
|
|
1693
|
-
|
|
1692
|
+
], I.prototype, "height");
|
|
1693
|
+
y1([
|
|
1694
1694
|
a()
|
|
1695
|
-
],
|
|
1696
|
-
|
|
1695
|
+
], I.prototype, "width");
|
|
1696
|
+
y1([
|
|
1697
1697
|
a({ type: Number })
|
|
1698
|
-
],
|
|
1699
|
-
|
|
1698
|
+
], I.prototype, "duration");
|
|
1699
|
+
y1([
|
|
1700
1700
|
a({ attribute: "font-size" })
|
|
1701
|
-
],
|
|
1702
|
-
customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton",
|
|
1703
|
-
var
|
|
1704
|
-
for (var o = void 0,
|
|
1705
|
-
(n = l
|
|
1706
|
-
return o &&
|
|
1701
|
+
], I.prototype, "fontSize");
|
|
1702
|
+
customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", I);
|
|
1703
|
+
var H3 = Object.defineProperty, V3 = (r, e, t, i) => {
|
|
1704
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1705
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1706
|
+
return o && H3(e, t, o), o;
|
|
1707
1707
|
};
|
|
1708
|
-
const
|
|
1708
|
+
const J2 = class J2 extends u {
|
|
1709
1709
|
constructor() {
|
|
1710
1710
|
super(...arguments), this.height = "256px";
|
|
1711
1711
|
}
|
|
@@ -1720,30 +1720,30 @@ const W2 = class W2 extends u {
|
|
|
1720
1720
|
`;
|
|
1721
1721
|
}
|
|
1722
1722
|
};
|
|
1723
|
-
|
|
1723
|
+
J2.styles = g`
|
|
1724
1724
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1725
1725
|
.loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
|
|
1726
1726
|
.loading-state__indicator { color: var(--color-primary-4); }
|
|
1727
1727
|
.loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-gray-6); }
|
|
1728
1728
|
`;
|
|
1729
|
-
let
|
|
1730
|
-
|
|
1729
|
+
let o2 = J2;
|
|
1730
|
+
V3([
|
|
1731
1731
|
a()
|
|
1732
|
-
],
|
|
1733
|
-
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state",
|
|
1734
|
-
var
|
|
1735
|
-
for (var o = void 0,
|
|
1736
|
-
(n = l
|
|
1737
|
-
return o &&
|
|
1732
|
+
], o2.prototype, "height");
|
|
1733
|
+
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", o2);
|
|
1734
|
+
var m3 = Object.defineProperty, F2 = (r, e, t, i) => {
|
|
1735
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1736
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1737
|
+
return o && m3(e, t, o), o;
|
|
1738
1738
|
};
|
|
1739
|
-
const
|
|
1739
|
+
const M4 = "anduin-field:label-click", M1 = "anduin-field:label-click-coordinated", Q2 = class Q2 extends u {
|
|
1740
1740
|
constructor() {
|
|
1741
1741
|
super(...arguments), this.orientation = "vertical";
|
|
1742
1742
|
}
|
|
1743
1743
|
connectedCallback() {
|
|
1744
|
-
super.connectedCallback(), this.addEventListener(
|
|
1744
|
+
super.connectedCallback(), this.addEventListener(M4, (e) => {
|
|
1745
1745
|
const t = e;
|
|
1746
|
-
this.dispatchEvent(new CustomEvent(
|
|
1746
|
+
this.dispatchEvent(new CustomEvent(M1, {
|
|
1747
1747
|
detail: t.detail,
|
|
1748
1748
|
bubbles: !1,
|
|
1749
1749
|
composed: !1
|
|
@@ -1759,17 +1759,17 @@ const g4 = "anduin-field:label-click", m1 = "anduin-field:label-click-coordinate
|
|
|
1759
1759
|
`;
|
|
1760
1760
|
}
|
|
1761
1761
|
};
|
|
1762
|
-
|
|
1762
|
+
Q2.styles = g`
|
|
1763
1763
|
:host { display: block; font-family: var(--font-sans); }
|
|
1764
1764
|
.field { display: flex; flex-wrap: wrap; }
|
|
1765
1765
|
.field--vertical { flex-direction: column; row-gap: 4px; }
|
|
1766
1766
|
.field--horizontal { column-gap: 4px; }
|
|
1767
1767
|
`;
|
|
1768
|
-
let
|
|
1769
|
-
|
|
1768
|
+
let i2 = Q2;
|
|
1769
|
+
F2([
|
|
1770
1770
|
a()
|
|
1771
|
-
],
|
|
1772
|
-
const
|
|
1771
|
+
], i2.prototype, "orientation");
|
|
1772
|
+
const e5 = class e5 extends u {
|
|
1773
1773
|
constructor() {
|
|
1774
1774
|
super(...arguments), this.htmlfor = "", this.required = !1;
|
|
1775
1775
|
}
|
|
@@ -1777,7 +1777,7 @@ const X2 = class X2 extends u {
|
|
|
1777
1777
|
super.connectedCallback();
|
|
1778
1778
|
}
|
|
1779
1779
|
onLabelClick(e) {
|
|
1780
|
-
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(
|
|
1780
|
+
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(M4, {
|
|
1781
1781
|
detail: this.htmlfor,
|
|
1782
1782
|
bubbles: !0,
|
|
1783
1783
|
composed: !0
|
|
@@ -1796,72 +1796,72 @@ const X2 = class X2 extends u {
|
|
|
1796
1796
|
`;
|
|
1797
1797
|
}
|
|
1798
1798
|
};
|
|
1799
|
-
|
|
1799
|
+
e5.styles = g`
|
|
1800
1800
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1801
1801
|
.field-label { font-size: 13px; line-height: 20px; font-weight: 600; cursor: default; color: var(--color-gray-8, #101828); }
|
|
1802
1802
|
.field-label__required { color: var(--color-danger-5); }
|
|
1803
1803
|
`;
|
|
1804
|
-
let
|
|
1805
|
-
|
|
1804
|
+
let F1 = e5;
|
|
1805
|
+
F2([
|
|
1806
1806
|
a()
|
|
1807
|
-
],
|
|
1808
|
-
|
|
1807
|
+
], F1.prototype, "htmlfor");
|
|
1808
|
+
F2([
|
|
1809
1809
|
a({ type: Boolean })
|
|
1810
|
-
],
|
|
1811
|
-
const
|
|
1810
|
+
], F1.prototype, "required");
|
|
1811
|
+
const t5 = class t5 extends u {
|
|
1812
1812
|
render() {
|
|
1813
1813
|
return C`<div class="field-description" part="description"><slot></slot></div>`;
|
|
1814
1814
|
}
|
|
1815
1815
|
};
|
|
1816
|
-
|
|
1816
|
+
t5.styles = g`
|
|
1817
1817
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1818
1818
|
.field-description { display: block; line-height: 16px; font-size: 11px; color: var(--color-gray-7); }
|
|
1819
1819
|
`;
|
|
1820
|
-
let
|
|
1821
|
-
const
|
|
1820
|
+
let f2 = t5;
|
|
1821
|
+
const o5 = class o5 extends u {
|
|
1822
1822
|
render() {
|
|
1823
1823
|
return C`<div class="field-error" part="error"><slot></slot></div>`;
|
|
1824
1824
|
}
|
|
1825
1825
|
};
|
|
1826
|
-
|
|
1826
|
+
o5.styles = g`
|
|
1827
1827
|
:host { display: block; font-family: var(--font-sans); }
|
|
1828
1828
|
.field-error { color: var(--color-danger-4); }
|
|
1829
1829
|
`;
|
|
1830
|
-
let
|
|
1831
|
-
const
|
|
1830
|
+
let H2 = o5;
|
|
1831
|
+
const i5 = class i5 extends u {
|
|
1832
1832
|
render() {
|
|
1833
1833
|
return C`<div class="field-group" part="group"><slot></slot></div>`;
|
|
1834
1834
|
}
|
|
1835
1835
|
};
|
|
1836
|
-
|
|
1836
|
+
i5.styles = g`
|
|
1837
1837
|
:host { display: block; font-family: var(--font-sans); }
|
|
1838
1838
|
.field-group { display: flex; flex-direction: column; row-gap: 24px; }
|
|
1839
1839
|
`;
|
|
1840
|
-
let
|
|
1841
|
-
customElements.get("anduin-field") || customElements.define("anduin-field",
|
|
1842
|
-
customElements.get("anduin-field-label") || customElements.define("anduin-field-label",
|
|
1843
|
-
customElements.get("anduin-field-description") || customElements.define("anduin-field-description",
|
|
1844
|
-
customElements.get("anduin-field-error") || customElements.define("anduin-field-error",
|
|
1845
|
-
customElements.get("anduin-field-group") || customElements.define("anduin-field-group",
|
|
1846
|
-
var
|
|
1847
|
-
for (var o = void 0,
|
|
1848
|
-
(n = l
|
|
1849
|
-
return o &&
|
|
1840
|
+
let V2 = i5;
|
|
1841
|
+
customElements.get("anduin-field") || customElements.define("anduin-field", i2);
|
|
1842
|
+
customElements.get("anduin-field-label") || customElements.define("anduin-field-label", F1);
|
|
1843
|
+
customElements.get("anduin-field-description") || customElements.define("anduin-field-description", f2);
|
|
1844
|
+
customElements.get("anduin-field-error") || customElements.define("anduin-field-error", H2);
|
|
1845
|
+
customElements.get("anduin-field-group") || customElements.define("anduin-field-group", V2);
|
|
1846
|
+
var b3 = Object.defineProperty, G1 = (r, e, t, i) => {
|
|
1847
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1848
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1849
|
+
return o && b3(e, t, o), o;
|
|
1850
1850
|
};
|
|
1851
|
-
const
|
|
1851
|
+
const L3 = "anduin-checkbox:change", l5 = class l5 extends u {
|
|
1852
1852
|
constructor() {
|
|
1853
1853
|
super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
|
|
1854
1854
|
}
|
|
1855
1855
|
connectedCallback() {
|
|
1856
1856
|
super.connectedCallback();
|
|
1857
1857
|
const e = this.closest("anduin-field");
|
|
1858
|
-
e && e.addEventListener(
|
|
1858
|
+
e && e.addEventListener(M1, (t) => {
|
|
1859
1859
|
const i = t;
|
|
1860
1860
|
this.inputid && this.inputid === i.detail && !this.disabled && !this.readonly && this.toggle();
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
1863
|
toggle() {
|
|
1864
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
1864
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(L3, {
|
|
1865
1865
|
detail: this.checked,
|
|
1866
1866
|
bubbles: !0,
|
|
1867
1867
|
composed: !0
|
|
@@ -1902,7 +1902,7 @@ const p3 = "anduin-checkbox:change", e5 = class e5 extends u {
|
|
|
1902
1902
|
`;
|
|
1903
1903
|
}
|
|
1904
1904
|
};
|
|
1905
|
-
|
|
1905
|
+
l5.styles = g`
|
|
1906
1906
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
1907
1907
|
|
|
1908
1908
|
label {
|
|
@@ -1940,36 +1940,36 @@ e5.styles = g`
|
|
|
1940
1940
|
.checkbox__icon { position: absolute; inset: 0; pointer-events: none; color: var(--color-gray-4); display: flex; align-items: center; justify-content: center; }
|
|
1941
1941
|
.checkbox__icon--visible { color: var(--color-gray-0); }
|
|
1942
1942
|
`;
|
|
1943
|
-
let X =
|
|
1944
|
-
|
|
1943
|
+
let X = l5;
|
|
1944
|
+
G1([
|
|
1945
1945
|
a({ type: Boolean })
|
|
1946
1946
|
], X.prototype, "checked");
|
|
1947
|
-
|
|
1947
|
+
G1([
|
|
1948
1948
|
a({ type: Boolean })
|
|
1949
1949
|
], X.prototype, "disabled");
|
|
1950
|
-
|
|
1950
|
+
G1([
|
|
1951
1951
|
a({ type: Boolean })
|
|
1952
1952
|
], X.prototype, "indeterminate");
|
|
1953
|
-
|
|
1953
|
+
G1([
|
|
1954
1954
|
a({ type: Boolean })
|
|
1955
1955
|
], X.prototype, "readonly");
|
|
1956
|
-
|
|
1956
|
+
G1([
|
|
1957
1957
|
a()
|
|
1958
1958
|
], X.prototype, "inputid");
|
|
1959
1959
|
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", X);
|
|
1960
|
-
var
|
|
1961
|
-
for (var o = void 0,
|
|
1962
|
-
(n = l
|
|
1963
|
-
return o &&
|
|
1960
|
+
var y3 = Object.defineProperty, A = (r, e, t, i) => {
|
|
1961
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
1962
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
1963
|
+
return o && y3(e, t, o), o;
|
|
1964
1964
|
};
|
|
1965
|
-
const
|
|
1965
|
+
const J5 = "anduin-input:change", M3 = "anduin-input:clear", r5 = class r5 extends u {
|
|
1966
1966
|
constructor() {
|
|
1967
1967
|
super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1;
|
|
1968
1968
|
}
|
|
1969
1969
|
connectedCallback() {
|
|
1970
1970
|
super.connectedCallback();
|
|
1971
1971
|
const e = this.closest("anduin-field");
|
|
1972
|
-
e && e.addEventListener(
|
|
1972
|
+
e && e.addEventListener(M1, (t) => {
|
|
1973
1973
|
var o;
|
|
1974
1974
|
const i = t;
|
|
1975
1975
|
this.inputid && this.inputid === i.detail && ((o = this.inputEl) == null || o.focus());
|
|
@@ -1979,7 +1979,7 @@ const U5 = "anduin-input:change", h3 = "anduin-input:clear", t5 = class t5 exten
|
|
|
1979
1979
|
this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
|
|
1980
1980
|
}
|
|
1981
1981
|
onInput() {
|
|
1982
|
-
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(
|
|
1982
|
+
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(J5, {
|
|
1983
1983
|
detail: this.value,
|
|
1984
1984
|
bubbles: !0,
|
|
1985
1985
|
composed: !0
|
|
@@ -1987,10 +1987,10 @@ const U5 = "anduin-input:change", h3 = "anduin-input:clear", t5 = class t5 exten
|
|
|
1987
1987
|
}
|
|
1988
1988
|
onClear() {
|
|
1989
1989
|
var e;
|
|
1990
|
-
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(
|
|
1990
|
+
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(J5, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(M3, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
|
|
1991
1991
|
}
|
|
1992
1992
|
render() {
|
|
1993
|
-
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", i = !!this.startIcon, o = !!this.endIcon || this.clearable && !!this.value,
|
|
1993
|
+
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", i = !!this.startIcon, o = !!this.endIcon || this.clearable && !!this.value, l = this.clearable && !!this.value && !this.disabled && !this.readonly, n = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", s = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
|
|
1994
1994
|
return C`
|
|
1995
1995
|
<div class="input-wrapper">
|
|
1996
1996
|
${i ? C`
|
|
@@ -2017,7 +2017,7 @@ const U5 = "anduin-input:change", h3 = "anduin-input:clear", t5 = class t5 exten
|
|
|
2017
2017
|
|
|
2018
2018
|
${o ? C`
|
|
2019
2019
|
<span class="input__end">
|
|
2020
|
-
${
|
|
2020
|
+
${l ? C`
|
|
2021
2021
|
<button class="input__clear" type="button" @click=${this.onClear} aria-label="Clear">
|
|
2022
2022
|
<anduin-icon name="cross" size=${s}></anduin-icon>
|
|
2023
2023
|
</button>
|
|
@@ -2031,7 +2031,7 @@ const U5 = "anduin-input:change", h3 = "anduin-input:clear", t5 = class t5 exten
|
|
|
2031
2031
|
`;
|
|
2032
2032
|
}
|
|
2033
2033
|
};
|
|
2034
|
-
|
|
2034
|
+
r5.styles = g`
|
|
2035
2035
|
:host { display: block; font-family: var(--font-sans); }
|
|
2036
2036
|
|
|
2037
2037
|
.input-wrapper { position: relative; display: flex; align-items: center; }
|
|
@@ -2085,54 +2085,54 @@ t5.styles = g`
|
|
|
2085
2085
|
}
|
|
2086
2086
|
.input__clear:hover { color: var(--color-gray-7); }
|
|
2087
2087
|
`;
|
|
2088
|
-
let w =
|
|
2089
|
-
|
|
2088
|
+
let w = r5;
|
|
2089
|
+
A([
|
|
2090
2090
|
a()
|
|
2091
2091
|
], w.prototype, "value");
|
|
2092
|
-
|
|
2092
|
+
A([
|
|
2093
2093
|
a()
|
|
2094
2094
|
], w.prototype, "size");
|
|
2095
|
-
|
|
2095
|
+
A([
|
|
2096
2096
|
a({ type: Boolean })
|
|
2097
2097
|
], w.prototype, "disabled");
|
|
2098
|
-
|
|
2098
|
+
A([
|
|
2099
2099
|
a({ type: Boolean })
|
|
2100
2100
|
], w.prototype, "readonly");
|
|
2101
|
-
|
|
2101
|
+
A([
|
|
2102
2102
|
a()
|
|
2103
2103
|
], w.prototype, "placeholder");
|
|
2104
|
-
|
|
2104
|
+
A([
|
|
2105
2105
|
a()
|
|
2106
2106
|
], w.prototype, "inputid");
|
|
2107
|
-
|
|
2107
|
+
A([
|
|
2108
2108
|
a()
|
|
2109
2109
|
], w.prototype, "status");
|
|
2110
|
-
|
|
2110
|
+
A([
|
|
2111
2111
|
a({ attribute: "start-icon" })
|
|
2112
2112
|
], w.prototype, "startIcon");
|
|
2113
|
-
|
|
2113
|
+
A([
|
|
2114
2114
|
a({ attribute: "end-icon" })
|
|
2115
2115
|
], w.prototype, "endIcon");
|
|
2116
|
-
|
|
2116
|
+
A([
|
|
2117
2117
|
a({ type: Boolean })
|
|
2118
2118
|
], w.prototype, "clearable");
|
|
2119
|
-
|
|
2119
|
+
A([
|
|
2120
2120
|
k("input")
|
|
2121
2121
|
], w.prototype, "inputEl");
|
|
2122
2122
|
customElements.get("anduin-input") || customElements.define("anduin-input", w);
|
|
2123
|
-
var
|
|
2124
|
-
for (var o = void 0,
|
|
2125
|
-
(n = l
|
|
2126
|
-
return o &&
|
|
2123
|
+
var Z3 = Object.defineProperty, Q = (r, e, t, i) => {
|
|
2124
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
2125
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
2126
|
+
return o && Z3(e, t, o), o;
|
|
2127
2127
|
};
|
|
2128
|
-
const
|
|
2128
|
+
const _3 = "anduin-textarea:change", n5 = class n5 extends u {
|
|
2129
2129
|
constructor() {
|
|
2130
2130
|
super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
|
|
2131
2131
|
}
|
|
2132
2132
|
connectedCallback() {
|
|
2133
2133
|
super.connectedCallback();
|
|
2134
2134
|
const e = this.closest("anduin-field");
|
|
2135
|
-
e && e.addEventListener(
|
|
2135
|
+
e && e.addEventListener(M1, (t) => {
|
|
2136
2136
|
var o;
|
|
2137
2137
|
const i = t;
|
|
2138
2138
|
this.inputid && this.inputid === i.detail && ((o = this.textareaEl) == null || o.focus());
|
|
@@ -2142,7 +2142,7 @@ const v3 = "anduin-textarea:change", o5 = class o5 extends u {
|
|
|
2142
2142
|
this.textareaEl && this.textareaEl.value !== this.value && (this.textareaEl.value = this.value);
|
|
2143
2143
|
}
|
|
2144
2144
|
onInput() {
|
|
2145
|
-
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(
|
|
2145
|
+
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(_3, {
|
|
2146
2146
|
detail: this.value,
|
|
2147
2147
|
bubbles: !0,
|
|
2148
2148
|
composed: !0
|
|
@@ -2167,7 +2167,7 @@ const v3 = "anduin-textarea:change", o5 = class o5 extends u {
|
|
|
2167
2167
|
`;
|
|
2168
2168
|
}
|
|
2169
2169
|
};
|
|
2170
|
-
|
|
2170
|
+
n5.styles = g`
|
|
2171
2171
|
:host { display: block; font-family: var(--font-sans); }
|
|
2172
2172
|
|
|
2173
2173
|
.textarea {
|
|
@@ -2184,7 +2184,7 @@ o5.styles = g`
|
|
|
2184
2184
|
.textarea--warning { border-color: var(--color-warning-4); }
|
|
2185
2185
|
.textarea--loading { border-color: var(--color-gray-4); }
|
|
2186
2186
|
`;
|
|
2187
|
-
let E =
|
|
2187
|
+
let E = n5;
|
|
2188
2188
|
Q([
|
|
2189
2189
|
a()
|
|
2190
2190
|
], E.prototype, "value");
|
|
@@ -2210,20 +2210,20 @@ Q([
|
|
|
2210
2210
|
k("textarea")
|
|
2211
2211
|
], E.prototype, "textareaEl");
|
|
2212
2212
|
customElements.get("anduin-textarea") || customElements.define("anduin-textarea", E);
|
|
2213
|
-
var
|
|
2214
|
-
for (var o = void 0,
|
|
2215
|
-
(n = l
|
|
2216
|
-
return o &&
|
|
2213
|
+
var x3 = Object.defineProperty, $ = (r, e, t, i) => {
|
|
2214
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
2215
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
2216
|
+
return o && x3(e, t, o), o;
|
|
2217
2217
|
};
|
|
2218
|
-
const
|
|
2218
|
+
const Z4 = "anduin-tab:trigger-click", a2 = "anduin-tab:value-changed", w3 = "anduin-tab:change", a5 = class a5 extends u {
|
|
2219
2219
|
constructor() {
|
|
2220
2220
|
super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
|
|
2221
2221
|
}
|
|
2222
2222
|
connectedCallback() {
|
|
2223
|
-
super.connectedCallback(), this.addEventListener(
|
|
2223
|
+
super.connectedCallback(), this.addEventListener(Z4, (e) => {
|
|
2224
2224
|
e.stopPropagation();
|
|
2225
2225
|
const t = e;
|
|
2226
|
-
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(
|
|
2226
|
+
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(w3, { detail: t.detail, bubbles: !0, composed: !0 }));
|
|
2227
2227
|
}), requestAnimationFrame(() => {
|
|
2228
2228
|
const e = this.value || this.defaultValue;
|
|
2229
2229
|
e && (this.value || (this.value = e), this.broadcastValueChanged(e));
|
|
@@ -2236,36 +2236,36 @@ const v4 = "anduin-tab:trigger-click", i2 = "anduin-tab:value-changed", H3 = "an
|
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
2238
|
broadcastValueChanged(e) {
|
|
2239
|
-
this.dispatchEvent(new CustomEvent(
|
|
2239
|
+
this.dispatchEvent(new CustomEvent(a2, { detail: e, bubbles: !1, composed: !1 }));
|
|
2240
2240
|
}
|
|
2241
2241
|
render() {
|
|
2242
2242
|
return C`<div class="tabs" part="tabs"><slot></slot></div>`;
|
|
2243
2243
|
}
|
|
2244
2244
|
};
|
|
2245
|
-
|
|
2245
|
+
a5.styles = g`
|
|
2246
2246
|
:host { display: flex; flex-direction: column; font-family: var(--font-sans); }
|
|
2247
2247
|
:host([fill]) { flex: 1; min-height: 0; --_tab-fill-flex: 1; --_tab-fill-height: 100%; }
|
|
2248
2248
|
.tabs { display: flex; flex-direction: column; width: 100%; }
|
|
2249
2249
|
:host([fill]) .tabs { flex: 1; min-height: 0; }
|
|
2250
2250
|
`;
|
|
2251
|
-
let
|
|
2251
|
+
let f1 = a5;
|
|
2252
2252
|
$([
|
|
2253
2253
|
a({ attribute: "default-value" })
|
|
2254
|
-
],
|
|
2254
|
+
], f1.prototype, "defaultValue");
|
|
2255
2255
|
$([
|
|
2256
2256
|
a()
|
|
2257
|
-
],
|
|
2257
|
+
], f1.prototype, "value");
|
|
2258
2258
|
$([
|
|
2259
2259
|
a({ type: Boolean, reflect: !0 })
|
|
2260
|
-
],
|
|
2261
|
-
const
|
|
2260
|
+
], f1.prototype, "fill");
|
|
2261
|
+
const s5 = class s5 extends u {
|
|
2262
2262
|
constructor() {
|
|
2263
2263
|
super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
|
|
2264
2264
|
}
|
|
2265
2265
|
connectedCallback() {
|
|
2266
2266
|
super.connectedCallback();
|
|
2267
2267
|
const e = this.closest("anduin-tabs");
|
|
2268
|
-
e && e.addEventListener(
|
|
2268
|
+
e && e.addEventListener(a2, (t) => {
|
|
2269
2269
|
const i = t;
|
|
2270
2270
|
this.lastActiveValue = i.detail, requestAnimationFrame(() => {
|
|
2271
2271
|
this.animateIndicator(i.detail);
|
|
@@ -2302,7 +2302,7 @@ const l5 = class l5 extends u {
|
|
|
2302
2302
|
`;
|
|
2303
2303
|
}
|
|
2304
2304
|
};
|
|
2305
|
-
|
|
2305
|
+
s5.styles = g`
|
|
2306
2306
|
:host { display: block; font-family: var(--font-sans); }
|
|
2307
2307
|
.tabs-list {
|
|
2308
2308
|
display: flex; background-color: var(--color-gray-0);
|
|
@@ -2317,27 +2317,27 @@ l5.styles = g`
|
|
|
2317
2317
|
left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
|
|
2318
2318
|
}
|
|
2319
2319
|
`;
|
|
2320
|
-
let
|
|
2320
|
+
let O1 = s5;
|
|
2321
2321
|
$([
|
|
2322
2322
|
a()
|
|
2323
|
-
],
|
|
2323
|
+
], O1.prototype, "alignment");
|
|
2324
2324
|
$([
|
|
2325
2325
|
k(".tabs-list__indicator")
|
|
2326
|
-
],
|
|
2327
|
-
const
|
|
2326
|
+
], O1.prototype, "indicator");
|
|
2327
|
+
const C5 = class C5 extends u {
|
|
2328
2328
|
constructor() {
|
|
2329
2329
|
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
|
|
2330
2330
|
}
|
|
2331
2331
|
connectedCallback() {
|
|
2332
2332
|
super.connectedCallback();
|
|
2333
2333
|
const e = this.closest("anduin-tabs");
|
|
2334
|
-
e && e.addEventListener(
|
|
2334
|
+
e && e.addEventListener(a2, (t) => {
|
|
2335
2335
|
const i = t;
|
|
2336
2336
|
this.isActive = i.detail === this.value;
|
|
2337
2337
|
});
|
|
2338
2338
|
}
|
|
2339
2339
|
onClick() {
|
|
2340
|
-
this.dispatchEvent(new CustomEvent(
|
|
2340
|
+
this.dispatchEvent(new CustomEvent(Z4, { detail: this.value, bubbles: !0, composed: !0 }));
|
|
2341
2341
|
}
|
|
2342
2342
|
render() {
|
|
2343
2343
|
return C`
|
|
@@ -2358,7 +2358,7 @@ const r5 = class r5 extends u {
|
|
|
2358
2358
|
`;
|
|
2359
2359
|
}
|
|
2360
2360
|
};
|
|
2361
|
-
|
|
2361
|
+
C5.styles = g`
|
|
2362
2362
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2363
2363
|
.tab-trigger {
|
|
2364
2364
|
cursor: pointer; background: none; border: none; display: block;
|
|
@@ -2381,7 +2381,7 @@ r5.styles = g`
|
|
|
2381
2381
|
color: var(--color-gray-7); white-space: nowrap;
|
|
2382
2382
|
}
|
|
2383
2383
|
`;
|
|
2384
|
-
let T =
|
|
2384
|
+
let T = C5;
|
|
2385
2385
|
$([
|
|
2386
2386
|
a({ reflect: !0 })
|
|
2387
2387
|
], T.prototype, "value");
|
|
@@ -2398,16 +2398,16 @@ $([
|
|
|
2398
2398
|
a({ attribute: "badge-count" })
|
|
2399
2399
|
], T.prototype, "badgeCount");
|
|
2400
2400
|
$([
|
|
2401
|
-
|
|
2401
|
+
m()
|
|
2402
2402
|
], T.prototype, "isActive");
|
|
2403
|
-
const
|
|
2403
|
+
const d5 = class d5 extends u {
|
|
2404
2404
|
constructor() {
|
|
2405
2405
|
super(...arguments), this.value = "", this.isActive = !1;
|
|
2406
2406
|
}
|
|
2407
2407
|
connectedCallback() {
|
|
2408
2408
|
super.connectedCallback();
|
|
2409
2409
|
const e = this.closest("anduin-tabs");
|
|
2410
|
-
e && e.addEventListener(
|
|
2410
|
+
e && e.addEventListener(a2, (t) => {
|
|
2411
2411
|
const i = t;
|
|
2412
2412
|
this.isActive = i.detail === this.value;
|
|
2413
2413
|
});
|
|
@@ -2423,28 +2423,28 @@ const n5 = class n5 extends u {
|
|
|
2423
2423
|
`;
|
|
2424
2424
|
}
|
|
2425
2425
|
};
|
|
2426
|
-
|
|
2426
|
+
d5.styles = g`
|
|
2427
2427
|
:host { display: block; font-family: var(--font-sans); flex: var(--_tab-fill-flex, 0 0 auto); min-height: 0; }
|
|
2428
2428
|
:host(:not([active])) { display: none; }
|
|
2429
2429
|
.tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
|
|
2430
2430
|
`;
|
|
2431
|
-
let
|
|
2431
|
+
let D1 = d5;
|
|
2432
2432
|
$([
|
|
2433
2433
|
a()
|
|
2434
|
-
],
|
|
2434
|
+
], D1.prototype, "value");
|
|
2435
2435
|
$([
|
|
2436
|
-
|
|
2437
|
-
],
|
|
2438
|
-
customElements.get("anduin-tabs") || customElements.define("anduin-tabs",
|
|
2439
|
-
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list",
|
|
2436
|
+
m()
|
|
2437
|
+
], D1.prototype, "isActive");
|
|
2438
|
+
customElements.get("anduin-tabs") || customElements.define("anduin-tabs", f1);
|
|
2439
|
+
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", O1);
|
|
2440
2440
|
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", T);
|
|
2441
|
-
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content",
|
|
2442
|
-
var
|
|
2443
|
-
for (var o = void 0,
|
|
2444
|
-
(n = l
|
|
2445
|
-
return o &&
|
|
2441
|
+
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", D1);
|
|
2442
|
+
var R3 = Object.defineProperty, O2 = (r, e, t, i) => {
|
|
2443
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
2444
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
2445
|
+
return o && R3(e, t, o), o;
|
|
2446
2446
|
};
|
|
2447
|
-
const
|
|
2447
|
+
const k3 = "anduin-tag-close:click", $3 = {
|
|
2448
2448
|
gray: "tag--light-gray",
|
|
2449
2449
|
primary: "tag--light-primary",
|
|
2450
2450
|
success: "tag--light-success",
|
|
@@ -2469,7 +2469,7 @@ const L3 = "anduin-tag-close:click", m3 = {
|
|
|
2469
2469
|
customYellow: "tag--custom-yellow",
|
|
2470
2470
|
customYellowGreen: "tag--custom-yellow-green",
|
|
2471
2471
|
customYellowOrange: "tag--custom-yellow-orange"
|
|
2472
|
-
},
|
|
2472
|
+
}, E3 = {
|
|
2473
2473
|
gray: "tag__icon--light-gray",
|
|
2474
2474
|
primary: "tag__icon--light-primary",
|
|
2475
2475
|
success: "tag__icon--light-success",
|
|
@@ -2494,12 +2494,12 @@ const L3 = "anduin-tag-close:click", m3 = {
|
|
|
2494
2494
|
customMagenta: "tag__icon--custom-magenta",
|
|
2495
2495
|
customBlueGreen: "tag__icon--custom-blue-green",
|
|
2496
2496
|
customPink: "tag__icon--custom-pink"
|
|
2497
|
-
},
|
|
2497
|
+
}, c5 = class c5 extends u {
|
|
2498
2498
|
constructor() {
|
|
2499
2499
|
super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
|
|
2500
2500
|
}
|
|
2501
2501
|
render() {
|
|
2502
|
-
const e =
|
|
2502
|
+
const e = $3[this.variant] || "tag--light-gray", t = E3[this.variant] || "tag__icon--light-gray";
|
|
2503
2503
|
return C`
|
|
2504
2504
|
<div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
|
|
2505
2505
|
${this.icon ? C`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : c}
|
|
@@ -2509,7 +2509,7 @@ const L3 = "anduin-tag-close:click", m3 = {
|
|
|
2509
2509
|
`;
|
|
2510
2510
|
}
|
|
2511
2511
|
};
|
|
2512
|
-
|
|
2512
|
+
c5.styles = g`
|
|
2513
2513
|
:host { display: inline-flex; max-width: 100%; font-family: var(--font-sans); }
|
|
2514
2514
|
.tag {
|
|
2515
2515
|
font-weight: 500; font-size: 11px; height: 20px; padding-left: 6px; padding-right: 6px;
|
|
@@ -2557,19 +2557,19 @@ a5.styles = g`
|
|
|
2557
2557
|
.tag--custom-yellow-green { color: var(--color-gray-9); background-color: rgb(174,207,85); }
|
|
2558
2558
|
.tag--custom-yellow-orange { color: var(--color-gray-9); background-color: rgb(255,193,107); }
|
|
2559
2559
|
`;
|
|
2560
|
-
let
|
|
2561
|
-
|
|
2560
|
+
let H1 = c5;
|
|
2561
|
+
O2([
|
|
2562
2562
|
a()
|
|
2563
|
-
],
|
|
2564
|
-
|
|
2563
|
+
], H1.prototype, "variant");
|
|
2564
|
+
O2([
|
|
2565
2565
|
a()
|
|
2566
|
-
],
|
|
2567
|
-
|
|
2566
|
+
], H1.prototype, "icon");
|
|
2567
|
+
O2([
|
|
2568
2568
|
a({ type: Boolean })
|
|
2569
|
-
],
|
|
2570
|
-
const
|
|
2569
|
+
], H1.prototype, "disabled");
|
|
2570
|
+
const p5 = class p5 extends u {
|
|
2571
2571
|
onClick() {
|
|
2572
|
-
this.dispatchEvent(new CustomEvent(
|
|
2572
|
+
this.dispatchEvent(new CustomEvent(k3, { bubbles: !0, composed: !0 }));
|
|
2573
2573
|
}
|
|
2574
2574
|
render() {
|
|
2575
2575
|
return C`
|
|
@@ -2579,7 +2579,7 @@ const s5 = class s5 extends u {
|
|
|
2579
2579
|
`;
|
|
2580
2580
|
}
|
|
2581
2581
|
};
|
|
2582
|
-
|
|
2582
|
+
p5.styles = g`
|
|
2583
2583
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2584
2584
|
.tag-close__button {
|
|
2585
2585
|
flex: none; width: 16px; height: 16px; display: flex; align-items: center;
|
|
@@ -2589,27 +2589,27 @@ s5.styles = g`
|
|
|
2589
2589
|
.tag-close__button:hover { opacity: 0.7; }
|
|
2590
2590
|
.tag-close__button:active { opacity: 0.5; }
|
|
2591
2591
|
`;
|
|
2592
|
-
let
|
|
2593
|
-
customElements.get("anduin-tag") || customElements.define("anduin-tag",
|
|
2594
|
-
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close",
|
|
2595
|
-
var
|
|
2596
|
-
for (var o = void 0,
|
|
2597
|
-
(n = l
|
|
2598
|
-
return o &&
|
|
2592
|
+
let m2 = p5;
|
|
2593
|
+
customElements.get("anduin-tag") || customElements.define("anduin-tag", H1);
|
|
2594
|
+
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", m2);
|
|
2595
|
+
var z3 = Object.defineProperty, R = (r, e, t, i) => {
|
|
2596
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
2597
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
2598
|
+
return o && z3(e, t, o), o;
|
|
2599
2599
|
};
|
|
2600
|
-
const
|
|
2600
|
+
const A3 = "anduin-toggle-group:change", B3 = "anduin-toggle-group-item:change", P3 = "anduin-toggle-group-item:select", S3 = "anduin-toggle-group-item:deselect", b2 = "anduin-toggle-group-item:item-click", u5 = class u5 extends u {
|
|
2601
2601
|
constructor() {
|
|
2602
2602
|
super(...arguments), this.mode = "single", this.defaultValue = "", this.value = null, this.size = "medium", this.variant = "gray", this.gap = !1, this.internalValue = [], this.userInteracted = !1, this.onItemClick = (e) => {
|
|
2603
2603
|
var d;
|
|
2604
2604
|
e.stopPropagation();
|
|
2605
|
-
const i = e.detail, o = this.selection,
|
|
2605
|
+
const i = e.detail, o = this.selection, l = o.includes(i);
|
|
2606
2606
|
let n;
|
|
2607
|
-
this.mode === "multiple" ? n =
|
|
2607
|
+
this.mode === "multiple" ? n = l ? o.filter((p) => p !== i) : [...o, i] : n = l ? [] : [i];
|
|
2608
2608
|
const s = this.items.find((p) => p.value === i);
|
|
2609
|
-
if (s == null || s.emitSelectionChange(!
|
|
2609
|
+
if (s == null || s.emitSelectionChange(!l), this.mode === "single" && !l)
|
|
2610
2610
|
for (const p of o)
|
|
2611
2611
|
(d = this.items.find((h) => h.value === p)) == null || d.emitSelectionChange(!1);
|
|
2612
|
-
this.dispatchEvent(new CustomEvent(
|
|
2612
|
+
this.dispatchEvent(new CustomEvent(A3, {
|
|
2613
2613
|
detail: n.join(" "),
|
|
2614
2614
|
bubbles: !0,
|
|
2615
2615
|
composed: !0
|
|
@@ -2620,16 +2620,16 @@ const M3 = "anduin-toggle-group:change", Z3 = "anduin-toggle-group-item:change",
|
|
|
2620
2620
|
return this.value != null;
|
|
2621
2621
|
}
|
|
2622
2622
|
get selection() {
|
|
2623
|
-
return this.isControlled ?
|
|
2623
|
+
return this.isControlled ? p2(this.value) : this.internalValue;
|
|
2624
2624
|
}
|
|
2625
2625
|
connectedCallback() {
|
|
2626
|
-
super.connectedCallback(), this.hasUpdated || (this.internalValue =
|
|
2626
|
+
super.connectedCallback(), this.hasUpdated || (this.internalValue = p2(this.defaultValue)), this.addEventListener(b2, this.onItemClick);
|
|
2627
2627
|
}
|
|
2628
2628
|
willUpdate(e) {
|
|
2629
|
-
e.has("defaultValue") && !this.isControlled && !this.userInteracted && (this.internalValue =
|
|
2629
|
+
e.has("defaultValue") && !this.isControlled && !this.userInteracted && (this.internalValue = p2(this.defaultValue));
|
|
2630
2630
|
}
|
|
2631
2631
|
disconnectedCallback() {
|
|
2632
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
2632
|
+
super.disconnectedCallback(), this.removeEventListener(b2, this.onItemClick);
|
|
2633
2633
|
}
|
|
2634
2634
|
updated() {
|
|
2635
2635
|
this.syncItems();
|
|
@@ -2650,7 +2650,7 @@ const M3 = "anduin-toggle-group:change", Z3 = "anduin-toggle-group-item:change",
|
|
|
2650
2650
|
`;
|
|
2651
2651
|
}
|
|
2652
2652
|
};
|
|
2653
|
-
|
|
2653
|
+
u5.styles = g`
|
|
2654
2654
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
2655
2655
|
.toggle-group { display: inline-flex; align-items: center; }
|
|
2656
2656
|
.toggle-group--small {
|
|
@@ -2680,39 +2680,39 @@ C5.styles = g`
|
|
|
2680
2680
|
.toggle-group--gap { flex-wrap: wrap; gap: 8px; }
|
|
2681
2681
|
.toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; margin-left: 0; }
|
|
2682
2682
|
`;
|
|
2683
|
-
let
|
|
2683
|
+
let P = u5;
|
|
2684
2684
|
R([
|
|
2685
2685
|
a()
|
|
2686
|
-
],
|
|
2686
|
+
], P.prototype, "mode");
|
|
2687
2687
|
R([
|
|
2688
2688
|
a({ attribute: "default-value" })
|
|
2689
|
-
],
|
|
2689
|
+
], P.prototype, "defaultValue");
|
|
2690
2690
|
R([
|
|
2691
2691
|
a()
|
|
2692
|
-
],
|
|
2692
|
+
], P.prototype, "value");
|
|
2693
2693
|
R([
|
|
2694
2694
|
a()
|
|
2695
|
-
],
|
|
2695
|
+
], P.prototype, "size");
|
|
2696
2696
|
R([
|
|
2697
2697
|
a()
|
|
2698
|
-
],
|
|
2698
|
+
], P.prototype, "variant");
|
|
2699
2699
|
R([
|
|
2700
2700
|
a({ type: Boolean })
|
|
2701
|
-
],
|
|
2701
|
+
], P.prototype, "gap");
|
|
2702
2702
|
R([
|
|
2703
|
-
|
|
2704
|
-
],
|
|
2705
|
-
const
|
|
2703
|
+
m()
|
|
2704
|
+
], P.prototype, "internalValue");
|
|
2705
|
+
const h5 = class h5 extends u {
|
|
2706
2706
|
constructor() {
|
|
2707
2707
|
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.selected = !1, this.groupSize = "medium", this.groupVariant = "gray", this.groupMode = "single";
|
|
2708
2708
|
}
|
|
2709
2709
|
/** Called by the parent group when the user's action changes this item's selection. */
|
|
2710
2710
|
emitSelectionChange(e) {
|
|
2711
|
-
this.dispatchEvent(new CustomEvent(
|
|
2711
|
+
this.dispatchEvent(new CustomEvent(B3, {
|
|
2712
2712
|
detail: e,
|
|
2713
2713
|
bubbles: !0,
|
|
2714
2714
|
composed: !0
|
|
2715
|
-
})), this.dispatchEvent(new CustomEvent(e ?
|
|
2715
|
+
})), this.dispatchEvent(new CustomEvent(e ? P3 : S3, {
|
|
2716
2716
|
detail: this.value,
|
|
2717
2717
|
bubbles: !0,
|
|
2718
2718
|
composed: !0
|
|
@@ -2722,7 +2722,7 @@ const d5 = class d5 extends u {
|
|
|
2722
2722
|
(e.has("selected") || e.has("groupMode")) && (this.groupMode === "single" ? (this.setAttribute("role", "radio"), this.setAttribute("aria-checked", String(this.selected))) : (this.removeAttribute("role"), this.removeAttribute("aria-checked")));
|
|
2723
2723
|
}
|
|
2724
2724
|
onClick() {
|
|
2725
|
-
this.dispatchEvent(new CustomEvent(
|
|
2725
|
+
this.dispatchEvent(new CustomEvent(b2, {
|
|
2726
2726
|
detail: this.value,
|
|
2727
2727
|
bubbles: !0,
|
|
2728
2728
|
composed: !0
|
|
@@ -2752,7 +2752,7 @@ const d5 = class d5 extends u {
|
|
|
2752
2752
|
`;
|
|
2753
2753
|
}
|
|
2754
2754
|
};
|
|
2755
|
-
|
|
2755
|
+
h5.styles = g`
|
|
2756
2756
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2757
2757
|
.toggle-item {
|
|
2758
2758
|
position: relative; z-index: 0; box-sizing: border-box;
|
|
@@ -2786,39 +2786,39 @@ d5.styles = g`
|
|
|
2786
2786
|
.toggle-item--selected .toggle-item__icon { color: var(--color-gray-7); }
|
|
2787
2787
|
.toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-4); }
|
|
2788
2788
|
`;
|
|
2789
|
-
let
|
|
2789
|
+
let S = h5;
|
|
2790
2790
|
R([
|
|
2791
2791
|
a({ reflect: !0 })
|
|
2792
|
-
],
|
|
2792
|
+
], S.prototype, "value");
|
|
2793
2793
|
R([
|
|
2794
2794
|
a({ attribute: "start-icon" })
|
|
2795
|
-
],
|
|
2795
|
+
], S.prototype, "startIcon");
|
|
2796
2796
|
R([
|
|
2797
2797
|
a({ type: Boolean })
|
|
2798
|
-
],
|
|
2798
|
+
], S.prototype, "disabled");
|
|
2799
2799
|
R([
|
|
2800
2800
|
a({ attribute: !1 })
|
|
2801
|
-
],
|
|
2801
|
+
], S.prototype, "selected");
|
|
2802
2802
|
R([
|
|
2803
2803
|
a({ attribute: !1 })
|
|
2804
|
-
],
|
|
2804
|
+
], S.prototype, "groupSize");
|
|
2805
2805
|
R([
|
|
2806
2806
|
a({ attribute: !1 })
|
|
2807
|
-
],
|
|
2807
|
+
], S.prototype, "groupVariant");
|
|
2808
2808
|
R([
|
|
2809
2809
|
a({ attribute: !1 })
|
|
2810
|
-
],
|
|
2811
|
-
function
|
|
2812
|
-
return
|
|
2810
|
+
], S.prototype, "groupMode");
|
|
2811
|
+
function p2(r) {
|
|
2812
|
+
return r.split(" ").map((e) => e.trim()).filter(Boolean);
|
|
2813
2813
|
}
|
|
2814
|
-
customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group",
|
|
2815
|
-
customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item",
|
|
2816
|
-
var
|
|
2817
|
-
for (var o = void 0,
|
|
2818
|
-
(n = l
|
|
2819
|
-
return o &&
|
|
2814
|
+
customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group", P);
|
|
2815
|
+
customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item", S);
|
|
2816
|
+
var F3 = Object.defineProperty, _4 = (r, e, t, i) => {
|
|
2817
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
2818
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
2819
|
+
return o && F3(e, t, o), o;
|
|
2820
2820
|
};
|
|
2821
|
-
const
|
|
2821
|
+
const x4 = "anduin-tooltip:show", D2 = "anduin-tooltip:hide", w4 = "anduin-tooltip:trigger-mounted", R4 = "anduin-tooltip:content-popup-mounted", k4 = "anduin-tooltip:content-popup-unmounted", $4 = "anduin-tooltip:visibility-changed", O3 = [
|
|
2822
2822
|
"top-start",
|
|
2823
2823
|
"top-center",
|
|
2824
2824
|
"top-end",
|
|
@@ -2832,94 +2832,94 @@ const H4 = "anduin-tooltip:show", S2 = "anduin-tooltip:hide", V4 = "anduin-toolt
|
|
|
2832
2832
|
"left-center",
|
|
2833
2833
|
"left-end"
|
|
2834
2834
|
];
|
|
2835
|
-
function
|
|
2835
|
+
function Q5(r, e, t, i, o) {
|
|
2836
2836
|
switch (i) {
|
|
2837
2837
|
case "top-start":
|
|
2838
|
-
return { left:
|
|
2838
|
+
return { left: r.left, top: r.top - t - o };
|
|
2839
2839
|
case "top-center":
|
|
2840
|
-
return { left:
|
|
2840
|
+
return { left: r.left + r.width / 2 - e / 2, top: r.top - t - o };
|
|
2841
2841
|
case "top-end":
|
|
2842
|
-
return { left:
|
|
2842
|
+
return { left: r.left + r.width - e, top: r.top - t - o };
|
|
2843
2843
|
case "right-start":
|
|
2844
|
-
return { left:
|
|
2844
|
+
return { left: r.right + o, top: r.top };
|
|
2845
2845
|
case "right-center":
|
|
2846
|
-
return { left:
|
|
2846
|
+
return { left: r.right + o, top: r.top + r.height / 2 - t / 2 };
|
|
2847
2847
|
case "right-end":
|
|
2848
|
-
return { left:
|
|
2848
|
+
return { left: r.right + o, top: r.top + r.height - t };
|
|
2849
2849
|
case "bottom-start":
|
|
2850
|
-
return { left:
|
|
2850
|
+
return { left: r.left, top: r.bottom + o };
|
|
2851
2851
|
case "bottom-center":
|
|
2852
|
-
return { left:
|
|
2852
|
+
return { left: r.left + r.width / 2 - e / 2, top: r.bottom + o };
|
|
2853
2853
|
case "bottom-end":
|
|
2854
|
-
return { left:
|
|
2854
|
+
return { left: r.left + r.width - e, top: r.bottom + o };
|
|
2855
2855
|
case "left-start":
|
|
2856
|
-
return { left:
|
|
2856
|
+
return { left: r.left - e - o, top: r.top };
|
|
2857
2857
|
case "left-center":
|
|
2858
|
-
return { left:
|
|
2858
|
+
return { left: r.left - e - o, top: r.top + r.height / 2 - t / 2 };
|
|
2859
2859
|
case "left-end":
|
|
2860
|
-
return { left:
|
|
2860
|
+
return { left: r.left - e - o, top: r.top + r.height - t };
|
|
2861
2861
|
default:
|
|
2862
2862
|
return { left: 0, top: 0 };
|
|
2863
2863
|
}
|
|
2864
2864
|
}
|
|
2865
|
-
function
|
|
2866
|
-
return e.right >=
|
|
2865
|
+
function e4(r, e) {
|
|
2866
|
+
return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2869
|
-
const t = Math.max(
|
|
2870
|
-
return o < t ||
|
|
2868
|
+
function t4(r, e) {
|
|
2869
|
+
const t = Math.max(r.left, e.left), i = Math.max(r.top, e.top), o = Math.min(r.right, e.right), l = Math.min(r.bottom, e.bottom);
|
|
2870
|
+
return o < t || l < i ? 0 : (o - t) * (l - i);
|
|
2871
2871
|
}
|
|
2872
|
-
function
|
|
2873
|
-
const o = window.innerWidth,
|
|
2874
|
-
if (!
|
|
2875
|
-
{ left:
|
|
2872
|
+
function D3(r, e, t, i = 8) {
|
|
2873
|
+
const o = window.innerWidth, l = window.innerHeight, n = { left: 0, top: 0, right: o, bottom: l }, s = e.width, d = e.height;
|
|
2874
|
+
if (!e4(
|
|
2875
|
+
{ left: r.left, top: r.top, right: r.right, bottom: r.bottom },
|
|
2876
2876
|
n
|
|
2877
2877
|
)) return null;
|
|
2878
|
-
const p =
|
|
2878
|
+
const p = Q5(r, s, d, t, i), h = O3.map((f) => ({ p: f, off: Q5(r, s, d, f, i) })).filter(({ off: f }) => e4({ left: f.left, top: f.top, right: f.left + s, bottom: f.top + d }, n));
|
|
2879
2879
|
if (h.length === 0)
|
|
2880
2880
|
return {
|
|
2881
2881
|
placement: t,
|
|
2882
2882
|
left: Math.round(Math.min(Math.max(p.left, 0), o - s)),
|
|
2883
|
-
top: Math.round(Math.min(Math.max(p.top, 0),
|
|
2883
|
+
top: Math.round(Math.min(Math.max(p.top, 0), l - d))
|
|
2884
2884
|
};
|
|
2885
2885
|
h.sort((f, Z) => {
|
|
2886
|
-
const
|
|
2887
|
-
if (o1 !==
|
|
2888
|
-
const
|
|
2889
|
-
return
|
|
2886
|
+
const G = { left: f.off.left, top: f.off.top, right: f.off.left + s, bottom: f.off.top + d }, x = { left: Z.off.left, top: Z.off.top, right: Z.off.left + s, bottom: Z.off.top + d }, D = t4(G, n), o1 = t4(x, n);
|
|
2887
|
+
if (o1 !== D) return o1 - D;
|
|
2888
|
+
const q1 = Math.abs(f.off.left - p.left) + Math.abs(f.off.top - p.top), W1 = Math.abs(Z.off.left - p.left) + Math.abs(Z.off.top - p.top);
|
|
2889
|
+
return q1 - W1;
|
|
2890
2890
|
});
|
|
2891
2891
|
const { p: v, off: H } = h[0];
|
|
2892
2892
|
return {
|
|
2893
2893
|
placement: v,
|
|
2894
2894
|
left: Math.round(Math.min(Math.max(H.left, 0), o - s)),
|
|
2895
|
-
top: Math.round(Math.min(Math.max(H.top, 0),
|
|
2895
|
+
top: Math.round(Math.min(Math.max(H.top, 0), l - d))
|
|
2896
2896
|
};
|
|
2897
2897
|
}
|
|
2898
|
-
function
|
|
2899
|
-
return
|
|
2898
|
+
function L2(r) {
|
|
2899
|
+
return r.split("-")[0] || "top";
|
|
2900
2900
|
}
|
|
2901
|
-
function
|
|
2901
|
+
function I3(r, e, t) {
|
|
2902
2902
|
let i = !1, o = t.length - 1;
|
|
2903
|
-
for (let
|
|
2904
|
-
const n = t[
|
|
2905
|
-
s > e != p > e &&
|
|
2903
|
+
for (let l = 0; l < t.length; l++) {
|
|
2904
|
+
const n = t[l][0], s = t[l][1], d = t[o][0], p = t[o][1];
|
|
2905
|
+
s > e != p > e && r < (d - n) * (e - s) / (p - s) + n && (i = !i), o = l;
|
|
2906
2906
|
}
|
|
2907
2907
|
return i;
|
|
2908
2908
|
}
|
|
2909
|
-
const
|
|
2909
|
+
const g5 = class g5 extends u {
|
|
2910
2910
|
constructor() {
|
|
2911
2911
|
super(...arguments), this.disabled = !1, this.placement = "top-center", this.triggerElement = null, this.contentPopupElement = null, this.containingBlockLeft = 0, this.containingBlockTop = 0, this.rafId = 0, this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN, this.isVisible = !1;
|
|
2912
2912
|
}
|
|
2913
2913
|
connectedCallback() {
|
|
2914
|
-
super.connectedCallback(), this.addEventListener(
|
|
2914
|
+
super.connectedCallback(), this.addEventListener(w4, (e) => {
|
|
2915
2915
|
e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
|
|
2916
|
-
}), this.addEventListener(
|
|
2916
|
+
}), this.addEventListener(R4, (e) => {
|
|
2917
2917
|
e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
|
|
2918
|
-
}), this.addEventListener(
|
|
2918
|
+
}), this.addEventListener(k4, (e) => {
|
|
2919
2919
|
e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
|
|
2920
|
-
}), this.addEventListener(
|
|
2920
|
+
}), this.addEventListener(x4, (e) => {
|
|
2921
2921
|
e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
|
|
2922
|
-
}), this.addEventListener(
|
|
2922
|
+
}), this.addEventListener(D2, (e) => {
|
|
2923
2923
|
e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
|
|
2924
2924
|
});
|
|
2925
2925
|
}
|
|
@@ -2935,8 +2935,8 @@ const c5 = class c5 extends u {
|
|
|
2935
2935
|
startPositionLoop() {
|
|
2936
2936
|
this.stopPositionLoop(), this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN;
|
|
2937
2937
|
const e = this.triggerElement, t = this.contentPopupElement, i = this.placement, o = () => {
|
|
2938
|
-
const
|
|
2939
|
-
(
|
|
2938
|
+
const l = e.getBoundingClientRect();
|
|
2939
|
+
(l.top !== this.prevTriggerTop || l.left !== this.prevTriggerLeft) && (this.prevTriggerTop = l.top, this.prevTriggerLeft = l.left, this.positionPopup(t, e, i)), this.rafId = requestAnimationFrame(o);
|
|
2940
2940
|
};
|
|
2941
2941
|
this.rafId = requestAnimationFrame(o);
|
|
2942
2942
|
}
|
|
@@ -2950,11 +2950,11 @@ const c5 = class c5 extends u {
|
|
|
2950
2950
|
this.containingBlockLeft = o.left, this.containingBlockTop = o.top, t.style.transform = i;
|
|
2951
2951
|
}
|
|
2952
2952
|
positionPopup(e, t, i) {
|
|
2953
|
-
const o = t.getBoundingClientRect(),
|
|
2953
|
+
const o = t.getBoundingClientRect(), l = e.getBoundingClientRect(), n = D3(o, l, i, 8);
|
|
2954
2954
|
if (n) {
|
|
2955
2955
|
const s = e;
|
|
2956
2956
|
s.style.transform = `translate(${n.left - this.containingBlockLeft}px, ${n.top - this.containingBlockTop}px)`;
|
|
2957
|
-
const d =
|
|
2957
|
+
const d = L2(n.placement), p = L2(i);
|
|
2958
2958
|
if (d !== p) {
|
|
2959
2959
|
const h = e.querySelector(".tooltip-arrow");
|
|
2960
2960
|
h && (h.classList.remove(`tooltip-arrow--${p}`), h.classList.add(`tooltip-arrow--${d}`));
|
|
@@ -2962,49 +2962,49 @@ const c5 = class c5 extends u {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
}
|
|
2964
2964
|
broadcastVisibilityChanged(e) {
|
|
2965
|
-
this.dispatchEvent(new CustomEvent(
|
|
2965
|
+
this.dispatchEvent(new CustomEvent($4, { detail: e, bubbles: !1, composed: !1 }));
|
|
2966
2966
|
}
|
|
2967
2967
|
render() {
|
|
2968
2968
|
return C`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
|
|
2969
2969
|
}
|
|
2970
2970
|
};
|
|
2971
|
-
|
|
2971
|
+
g5.styles = g`
|
|
2972
2972
|
:host { display: inline-block; position: relative; max-width: 100%; font-family: var(--font-sans); }
|
|
2973
2973
|
.tooltip-root { display: inline-block; position: relative; max-width: 100%; }
|
|
2974
2974
|
`;
|
|
2975
|
-
let
|
|
2976
|
-
|
|
2975
|
+
let I1 = g5;
|
|
2976
|
+
_4([
|
|
2977
2977
|
a({ type: Boolean })
|
|
2978
|
-
],
|
|
2979
|
-
|
|
2978
|
+
], I1.prototype, "disabled");
|
|
2979
|
+
_4([
|
|
2980
2980
|
a()
|
|
2981
|
-
],
|
|
2982
|
-
const
|
|
2981
|
+
], I1.prototype, "placement");
|
|
2982
|
+
const v5 = class v5 extends u {
|
|
2983
2983
|
firstUpdated() {
|
|
2984
2984
|
requestAnimationFrame(() => {
|
|
2985
|
-
this.dispatchEvent(new CustomEvent(
|
|
2985
|
+
this.dispatchEvent(new CustomEvent(w4, { detail: this, bubbles: !0, composed: !0 }));
|
|
2986
2986
|
}), this.addEventListener("pointerenter", () => {
|
|
2987
|
-
this.dispatchEvent(new CustomEvent(
|
|
2987
|
+
this.dispatchEvent(new CustomEvent(x4, { bubbles: !0, composed: !0 }));
|
|
2988
2988
|
}), this.addEventListener("click", () => {
|
|
2989
|
-
this.dispatchEvent(new CustomEvent(
|
|
2989
|
+
this.dispatchEvent(new CustomEvent(D2, { bubbles: !0, composed: !0 }));
|
|
2990
2990
|
});
|
|
2991
2991
|
}
|
|
2992
2992
|
render() {
|
|
2993
2993
|
return C`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
|
|
2994
2994
|
}
|
|
2995
2995
|
};
|
|
2996
|
-
|
|
2996
|
+
v5.styles = g`
|
|
2997
2997
|
:host { display: inline-block; max-width: 100%; font-family: var(--font-sans); }
|
|
2998
2998
|
.tooltip-trigger { display: flex; align-items: center; max-width: 100%; }
|
|
2999
2999
|
`;
|
|
3000
|
-
let
|
|
3001
|
-
const
|
|
3000
|
+
let y2 = v5;
|
|
3001
|
+
const f5 = class f5 extends u {
|
|
3002
3002
|
constructor() {
|
|
3003
3003
|
super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
|
|
3004
|
-
var
|
|
3004
|
+
var l, n;
|
|
3005
3005
|
if (!this.graceArea) return;
|
|
3006
|
-
const t = e.target, i = ((
|
|
3007
|
-
i || o ? this.graceArea = null :
|
|
3006
|
+
const t = e.target, i = ((l = this.triggerEl) == null ? void 0 : l.contains(t)) ?? !1, o = ((n = this.popupEl) == null ? void 0 : n.contains(t)) ?? !1;
|
|
3007
|
+
i || o ? this.graceArea = null : I3(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(D2, { bubbles: !0, composed: !0 })));
|
|
3008
3008
|
}, this.handleTriggerLeave = (e) => {
|
|
3009
3009
|
this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
|
|
3010
3010
|
}, this.handleContentLeave = (e) => {
|
|
@@ -3014,7 +3014,7 @@ const u5 = class u5 extends u {
|
|
|
3014
3014
|
connectedCallback() {
|
|
3015
3015
|
super.connectedCallback();
|
|
3016
3016
|
const e = this.closest("anduin-tooltip");
|
|
3017
|
-
e && e.addEventListener(
|
|
3017
|
+
e && e.addEventListener($4, (t) => {
|
|
3018
3018
|
const i = t.detail;
|
|
3019
3019
|
i.startsWith("show:") ? this.showPopup(i.slice(5)) : this.hidePopup();
|
|
3020
3020
|
});
|
|
@@ -3023,9 +3023,9 @@ const u5 = class u5 extends u {
|
|
|
3023
3023
|
super.disconnectedCallback(), this.hidePopup();
|
|
3024
3024
|
}
|
|
3025
3025
|
createGraceArea(e, t, i) {
|
|
3026
|
-
const o = t.getBoundingClientRect(),
|
|
3026
|
+
const o = t.getBoundingClientRect(), l = i.clientX, n = i.clientY;
|
|
3027
3027
|
this.graceArea = [
|
|
3028
|
-
[
|
|
3028
|
+
[l, n],
|
|
3029
3029
|
[o.left, o.top],
|
|
3030
3030
|
[o.right, o.top],
|
|
3031
3031
|
[o.right, o.bottom],
|
|
@@ -3040,12 +3040,12 @@ const u5 = class u5 extends u {
|
|
|
3040
3040
|
}
|
|
3041
3041
|
showPopup(e) {
|
|
3042
3042
|
this.hidePopup();
|
|
3043
|
-
const t =
|
|
3043
|
+
const t = L2(e), i = document.createElement("div");
|
|
3044
3044
|
i.className = "tooltip-popup", i.setAttribute("role", "tooltip");
|
|
3045
3045
|
const o = document.createElement("div");
|
|
3046
3046
|
o.className = `tooltip-arrow tooltip-arrow--${t}`;
|
|
3047
|
-
const
|
|
3048
|
-
|
|
3047
|
+
const l = document.createElement("div");
|
|
3048
|
+
l.className = "tooltip-body", l.appendChild(document.createElement("slot")), i.appendChild(o), i.appendChild(l);
|
|
3049
3049
|
const n = this.shadowRoot.querySelector(".tooltip-content-wrapper");
|
|
3050
3050
|
n && n.appendChild(i), this.popupEl = i;
|
|
3051
3051
|
const s = this.closest("anduin-tooltip");
|
|
@@ -3053,16 +3053,16 @@ const u5 = class u5 extends u {
|
|
|
3053
3053
|
const d = s.querySelector("anduin-tooltip-trigger");
|
|
3054
3054
|
d && this.setupGraceAreaListeners(d, i);
|
|
3055
3055
|
}
|
|
3056
|
-
this.dispatchEvent(new CustomEvent(
|
|
3056
|
+
this.dispatchEvent(new CustomEvent(R4, { detail: i, bubbles: !0, composed: !0 }));
|
|
3057
3057
|
}
|
|
3058
3058
|
hidePopup() {
|
|
3059
|
-
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(
|
|
3059
|
+
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(k4, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
|
|
3060
3060
|
}
|
|
3061
3061
|
render() {
|
|
3062
3062
|
return C`<div class="tooltip-content-wrapper"></div>`;
|
|
3063
3063
|
}
|
|
3064
3064
|
};
|
|
3065
|
-
|
|
3065
|
+
f5.styles = g`
|
|
3066
3066
|
:host {
|
|
3067
3067
|
display: contents;
|
|
3068
3068
|
--tooltip-bg: var(--anduin-tooltip-content-background, var(--color-gray-9));
|
|
@@ -3086,16 +3086,16 @@ u5.styles = g`
|
|
|
3086
3086
|
.tooltip-arrow--left { right: -4px; top: 50%; transform: translateY(-50%); border-left-color: var(--tooltip-bg); border-right: none; }
|
|
3087
3087
|
.tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
|
|
3088
3088
|
`;
|
|
3089
|
-
let
|
|
3090
|
-
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip",
|
|
3091
|
-
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger",
|
|
3092
|
-
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content",
|
|
3093
|
-
var
|
|
3094
|
-
for (var o = void 0,
|
|
3095
|
-
(n = l
|
|
3096
|
-
return o &&
|
|
3089
|
+
let M2 = f5;
|
|
3090
|
+
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", I1);
|
|
3091
|
+
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", y2);
|
|
3092
|
+
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", M2);
|
|
3093
|
+
var T3 = Object.defineProperty, N3 = (r, e, t, i) => {
|
|
3094
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
3095
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
3096
|
+
return o && T3(e, t, o), o;
|
|
3097
3097
|
};
|
|
3098
|
-
const
|
|
3098
|
+
const j3 = "anduin-well-close:click", H5 = class H5 extends u {
|
|
3099
3099
|
constructor() {
|
|
3100
3100
|
super(...arguments), this.variant = "gray";
|
|
3101
3101
|
}
|
|
@@ -3114,7 +3114,7 @@ const z3 = "anduin-well-close:click", h5 = class h5 extends u {
|
|
|
3114
3114
|
`;
|
|
3115
3115
|
}
|
|
3116
3116
|
};
|
|
3117
|
-
|
|
3117
|
+
H5.styles = g`
|
|
3118
3118
|
:host {
|
|
3119
3119
|
display: block;
|
|
3120
3120
|
font-family: var(--font-sans);
|
|
@@ -3179,14 +3179,14 @@ h5.styles = g`
|
|
|
3179
3179
|
color: var(--color-warning-4);
|
|
3180
3180
|
}
|
|
3181
3181
|
`;
|
|
3182
|
-
let
|
|
3183
|
-
|
|
3182
|
+
let l2 = H5;
|
|
3183
|
+
N3([
|
|
3184
3184
|
a()
|
|
3185
|
-
],
|
|
3186
|
-
const
|
|
3185
|
+
], l2.prototype, "variant");
|
|
3186
|
+
const V5 = class V5 extends u {
|
|
3187
3187
|
onClick() {
|
|
3188
3188
|
this.dispatchEvent(
|
|
3189
|
-
new CustomEvent(
|
|
3189
|
+
new CustomEvent(j3, { bubbles: !0, composed: !0 })
|
|
3190
3190
|
);
|
|
3191
3191
|
}
|
|
3192
3192
|
render() {
|
|
@@ -3201,7 +3201,7 @@ const g5 = class g5 extends u {
|
|
|
3201
3201
|
`;
|
|
3202
3202
|
}
|
|
3203
3203
|
};
|
|
3204
|
-
|
|
3204
|
+
V5.styles = g`
|
|
3205
3205
|
:host {
|
|
3206
3206
|
display: inline-block;
|
|
3207
3207
|
font-family: var(--font-sans);
|
|
@@ -3226,15 +3226,15 @@ g5.styles = g`
|
|
|
3226
3226
|
background-color: var(--color-gray-3);
|
|
3227
3227
|
}
|
|
3228
3228
|
`;
|
|
3229
|
-
let
|
|
3230
|
-
customElements.get("anduin-well") || customElements.define("anduin-well",
|
|
3231
|
-
customElements.get("anduin-well-close") || customElements.define("anduin-well-close",
|
|
3232
|
-
var
|
|
3233
|
-
for (var o = void 0,
|
|
3234
|
-
(n = l
|
|
3235
|
-
return o &&
|
|
3229
|
+
let Z2 = V5;
|
|
3230
|
+
customElements.get("anduin-well") || customElements.define("anduin-well", l2);
|
|
3231
|
+
customElements.get("anduin-well-close") || customElements.define("anduin-well-close", Z2);
|
|
3232
|
+
var U3 = Object.defineProperty, C1 = (r, e, t, i) => {
|
|
3233
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
3234
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
3235
|
+
return o && U3(e, t, o), o;
|
|
3236
3236
|
};
|
|
3237
|
-
const
|
|
3237
|
+
const _2 = "anduin-popover:close", m5 = class m5 extends u {
|
|
3238
3238
|
constructor() {
|
|
3239
3239
|
super(...arguments), this.open = !1, this.placement = "bottom-start", this.fullWidth = !1, this._visible = !1, this._closing = !1, this._closeTransitionEndHandler = null, this._onOutsideClick = (e) => {
|
|
3240
3240
|
var t;
|
|
@@ -3249,10 +3249,10 @@ const b2 = "anduin-popover:close", v5 = class v5 extends u {
|
|
|
3249
3249
|
this.open = !this.open;
|
|
3250
3250
|
}
|
|
3251
3251
|
connectedCallback() {
|
|
3252
|
-
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(
|
|
3252
|
+
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(_2, this._onPopoverClose);
|
|
3253
3253
|
}
|
|
3254
3254
|
disconnectedCallback() {
|
|
3255
|
-
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(
|
|
3255
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(_2, this._onPopoverClose);
|
|
3256
3256
|
}
|
|
3257
3257
|
updated(e) {
|
|
3258
3258
|
e.has("open") && (this.open ? (this._cancelCloseAnimation(), this._closing = !1, this._visible = !0, requestAnimationFrame(() => this._updatePosition())) : this._startCloseAnimation());
|
|
@@ -3277,14 +3277,14 @@ const b2 = "anduin-popover:close", v5 = class v5 extends u {
|
|
|
3277
3277
|
if (!e || !t) return;
|
|
3278
3278
|
const i = e.getBoundingClientRect(), o = t.style.transform;
|
|
3279
3279
|
t.style.transform = "none";
|
|
3280
|
-
const
|
|
3280
|
+
const l = t.getBoundingClientRect();
|
|
3281
3281
|
t.style.transform = o;
|
|
3282
3282
|
const n = t.getBoundingClientRect(), s = 4, d = window.innerWidth, p = window.innerHeight, h = 8;
|
|
3283
3283
|
let v = 0, H = 0, f = "bottom";
|
|
3284
|
-
const Z = !this.placement.startsWith("top"),
|
|
3285
|
-
f =
|
|
3286
|
-
const
|
|
3287
|
-
|
|
3284
|
+
const Z = !this.placement.startsWith("top"), G = p - i.bottom - s, x = i.top - s, D = G >= n.height, o1 = x >= n.height, q1 = Z ? D || G >= x : !o1 && D;
|
|
3285
|
+
f = q1 ? "bottom" : "top", H = q1 ? i.bottom + s : i.top - n.height - s;
|
|
3286
|
+
const W1 = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
|
|
3287
|
+
W1 === "start" ? v = i.left : W1 === "end" ? v = i.right - n.width : v = i.left + i.width / 2 - n.width / 2, v = Math.max(h, Math.min(v, d - n.width - h)), H = Math.max(h, Math.min(H, p - n.height - h)), t.style.transform = `translate(${Math.round(v - l.left)}px, ${Math.round(H - l.top)}px)`, t.dataset.side = f;
|
|
3288
3288
|
}
|
|
3289
3289
|
render() {
|
|
3290
3290
|
return C`
|
|
@@ -3299,7 +3299,7 @@ const b2 = "anduin-popover:close", v5 = class v5 extends u {
|
|
|
3299
3299
|
`;
|
|
3300
3300
|
}
|
|
3301
3301
|
};
|
|
3302
|
-
|
|
3302
|
+
m5.styles = g`
|
|
3303
3303
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
3304
3304
|
:host([full-width]) { display: block; width: 100%; }
|
|
3305
3305
|
|
|
@@ -3352,7 +3352,7 @@ v5.styles = g`
|
|
|
3352
3352
|
transform: none;
|
|
3353
3353
|
}
|
|
3354
3354
|
`;
|
|
3355
|
-
let F =
|
|
3355
|
+
let F = m5;
|
|
3356
3356
|
C1([
|
|
3357
3357
|
a({ type: Boolean, reflect: !0 })
|
|
3358
3358
|
], F.prototype, "open");
|
|
@@ -3363,10 +3363,10 @@ C1([
|
|
|
3363
3363
|
a({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
3364
3364
|
], F.prototype, "fullWidth");
|
|
3365
3365
|
C1([
|
|
3366
|
-
|
|
3366
|
+
m()
|
|
3367
3367
|
], F.prototype, "_visible");
|
|
3368
3368
|
C1([
|
|
3369
|
-
|
|
3369
|
+
m()
|
|
3370
3370
|
], F.prototype, "_closing");
|
|
3371
3371
|
C1([
|
|
3372
3372
|
k(".popover__trigger")
|
|
@@ -3375,23 +3375,23 @@ C1([
|
|
|
3375
3375
|
k(".popover__panel")
|
|
3376
3376
|
], F.prototype, "_panelEl");
|
|
3377
3377
|
customElements.get("anduin-popover") || customElements.define("anduin-popover", F);
|
|
3378
|
-
const
|
|
3378
|
+
const b5 = class b5 extends u {
|
|
3379
3379
|
_onClick() {
|
|
3380
|
-
this.dispatchEvent(new CustomEvent(
|
|
3380
|
+
this.dispatchEvent(new CustomEvent(_2, { bubbles: !0, composed: !0 }));
|
|
3381
3381
|
}
|
|
3382
3382
|
render() {
|
|
3383
3383
|
return C`<span @click=${this._onClick}><slot></slot></span>`;
|
|
3384
3384
|
}
|
|
3385
3385
|
};
|
|
3386
|
-
|
|
3387
|
-
let
|
|
3388
|
-
customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close",
|
|
3389
|
-
var
|
|
3390
|
-
for (var o = void 0,
|
|
3391
|
-
(n = l
|
|
3392
|
-
return o &&
|
|
3386
|
+
b5.styles = g`:host { display: contents; }`;
|
|
3387
|
+
let x2 = b5;
|
|
3388
|
+
customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", x2);
|
|
3389
|
+
var G3 = Object.defineProperty, d1 = (r, e, t, i) => {
|
|
3390
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
3391
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
3392
|
+
return o && G3(e, t, o), o;
|
|
3393
3393
|
};
|
|
3394
|
-
const
|
|
3394
|
+
const w2 = "anduin-menu-item:click", L5 = class L5 extends u {
|
|
3395
3395
|
constructor() {
|
|
3396
3396
|
super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
|
|
3397
3397
|
var t;
|
|
@@ -3406,10 +3406,10 @@ const M2 = "anduin-menu-item:click", H5 = class H5 extends u {
|
|
|
3406
3406
|
this.open = !this.open;
|
|
3407
3407
|
}
|
|
3408
3408
|
connectedCallback() {
|
|
3409
|
-
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(
|
|
3409
|
+
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(w2, this._onItemClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
|
|
3410
3410
|
}
|
|
3411
3411
|
disconnectedCallback() {
|
|
3412
|
-
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(
|
|
3412
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(w2, this._onItemClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
|
|
3413
3413
|
}
|
|
3414
3414
|
updated(e) {
|
|
3415
3415
|
e.has("open") && this.open && requestAnimationFrame(() => this._updatePosition());
|
|
@@ -3419,7 +3419,7 @@ const M2 = "anduin-menu-item:click", H5 = class H5 extends u {
|
|
|
3419
3419
|
if (!e || !t) return;
|
|
3420
3420
|
const i = e.getBoundingClientRect(), o = t.style.transform;
|
|
3421
3421
|
t.style.transform = "none";
|
|
3422
|
-
const
|
|
3422
|
+
const l = t.getBoundingClientRect();
|
|
3423
3423
|
t.style.transform = o;
|
|
3424
3424
|
const n = t.getBoundingClientRect(), s = 4;
|
|
3425
3425
|
let d = 0, p = 0, h = "bottom";
|
|
@@ -3443,7 +3443,7 @@ const M2 = "anduin-menu-item:click", H5 = class H5 extends u {
|
|
|
3443
3443
|
d = i.left + i.width / 2 - n.width / 2, p = i.top - n.height - s, h = "top";
|
|
3444
3444
|
break;
|
|
3445
3445
|
}
|
|
3446
|
-
t.style.transform = `translate(${Math.round(d -
|
|
3446
|
+
t.style.transform = `translate(${Math.round(d - l.left)}px, ${Math.round(p - l.top)}px)`, t.dataset.side = h;
|
|
3447
3447
|
}
|
|
3448
3448
|
render() {
|
|
3449
3449
|
return C`
|
|
@@ -3458,7 +3458,7 @@ const M2 = "anduin-menu-item:click", H5 = class H5 extends u {
|
|
|
3458
3458
|
`;
|
|
3459
3459
|
}
|
|
3460
3460
|
};
|
|
3461
|
-
|
|
3461
|
+
L5.styles = g`
|
|
3462
3462
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
3463
3463
|
|
|
3464
3464
|
.menu__trigger { display: inline-block; }
|
|
@@ -3501,7 +3501,7 @@ H5.styles = g`
|
|
|
3501
3501
|
transform: scale(1) translateY(0);
|
|
3502
3502
|
}
|
|
3503
3503
|
`;
|
|
3504
|
-
let s1 =
|
|
3504
|
+
let s1 = L5;
|
|
3505
3505
|
d1([
|
|
3506
3506
|
a({ type: Boolean, reflect: !0 })
|
|
3507
3507
|
], s1.prototype, "open");
|
|
@@ -3514,12 +3514,12 @@ d1([
|
|
|
3514
3514
|
d1([
|
|
3515
3515
|
k(".menu__panel")
|
|
3516
3516
|
], s1.prototype, "_panelEl");
|
|
3517
|
-
const
|
|
3517
|
+
const y5 = class y5 extends u {
|
|
3518
3518
|
constructor() {
|
|
3519
3519
|
super(...arguments), this.icon = "", this.variant = "default", this.disabled = !1;
|
|
3520
3520
|
}
|
|
3521
3521
|
_onClick() {
|
|
3522
|
-
this.dispatchEvent(new CustomEvent(
|
|
3522
|
+
this.dispatchEvent(new CustomEvent(w2, { bubbles: !0, composed: !0 }));
|
|
3523
3523
|
}
|
|
3524
3524
|
render() {
|
|
3525
3525
|
return C`
|
|
@@ -3536,7 +3536,7 @@ const V5 = class V5 extends u {
|
|
|
3536
3536
|
`;
|
|
3537
3537
|
}
|
|
3538
3538
|
};
|
|
3539
|
-
|
|
3539
|
+
y5.styles = g`
|
|
3540
3540
|
:host { display: block; width: 100%; font-family: var(--font-sans); }
|
|
3541
3541
|
.menu-item {
|
|
3542
3542
|
display: flex;
|
|
@@ -3566,24 +3566,24 @@ V5.styles = g`
|
|
|
3566
3566
|
anduin-icon { color: var(--color-gray-7); }
|
|
3567
3567
|
.menu-item--danger anduin-icon { color: var(--color-danger-4); }
|
|
3568
3568
|
`;
|
|
3569
|
-
let
|
|
3569
|
+
let V1 = y5;
|
|
3570
3570
|
d1([
|
|
3571
3571
|
a()
|
|
3572
|
-
],
|
|
3572
|
+
], V1.prototype, "icon");
|
|
3573
3573
|
d1([
|
|
3574
3574
|
a()
|
|
3575
|
-
],
|
|
3575
|
+
], V1.prototype, "variant");
|
|
3576
3576
|
d1([
|
|
3577
3577
|
a({ type: Boolean })
|
|
3578
|
-
],
|
|
3578
|
+
], V1.prototype, "disabled");
|
|
3579
3579
|
customElements.get("anduin-menu") || customElements.define("anduin-menu", s1);
|
|
3580
|
-
customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item",
|
|
3581
|
-
var
|
|
3582
|
-
for (var o = void 0,
|
|
3583
|
-
(n = l
|
|
3584
|
-
return o &&
|
|
3580
|
+
customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", V1);
|
|
3581
|
+
var q3 = Object.defineProperty, c1 = (r, e, t, i) => {
|
|
3582
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
3583
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
3584
|
+
return o && q3(e, t, o), o;
|
|
3585
3585
|
};
|
|
3586
|
-
const
|
|
3586
|
+
const _1 = "anduin-close", W3 = "anduin-after-close", u2 = 300, h2 = 200, o4 = 250;
|
|
3587
3587
|
var Y;
|
|
3588
3588
|
const e1 = (Y = class extends u {
|
|
3589
3589
|
constructor() {
|
|
@@ -3599,13 +3599,13 @@ const e1 = (Y = class extends u {
|
|
|
3599
3599
|
e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(
|
|
3600
3600
|
() => {
|
|
3601
3601
|
this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
|
|
3602
|
-
new CustomEvent(
|
|
3602
|
+
new CustomEvent(W3, {
|
|
3603
3603
|
bubbles: !0,
|
|
3604
3604
|
composed: !0
|
|
3605
3605
|
})
|
|
3606
3606
|
);
|
|
3607
3607
|
},
|
|
3608
|
-
Math.max(
|
|
3608
|
+
Math.max(h2, o4)
|
|
3609
3609
|
)));
|
|
3610
3610
|
}
|
|
3611
3611
|
dispatch(e) {
|
|
@@ -3614,16 +3614,16 @@ const e1 = (Y = class extends u {
|
|
|
3614
3614
|
);
|
|
3615
3615
|
}
|
|
3616
3616
|
onOverlayClick() {
|
|
3617
|
-
this.dispatch(
|
|
3617
|
+
this.dispatch(_1);
|
|
3618
3618
|
}
|
|
3619
3619
|
onClose() {
|
|
3620
|
-
this.dispatch(
|
|
3620
|
+
this.dispatch(_1);
|
|
3621
3621
|
}
|
|
3622
3622
|
connectedCallback() {
|
|
3623
|
-
super.connectedCallback(), this.addEventListener(
|
|
3623
|
+
super.connectedCallback(), this.addEventListener(_1, this.onAnduinClose);
|
|
3624
3624
|
}
|
|
3625
3625
|
disconnectedCallback() {
|
|
3626
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
3626
|
+
super.disconnectedCallback(), this.removeEventListener(_1, this.onAnduinClose);
|
|
3627
3627
|
}
|
|
3628
3628
|
render() {
|
|
3629
3629
|
const e = this._leaving, t = this.fullscreen;
|
|
@@ -3737,11 +3737,11 @@ const e1 = (Y = class extends u {
|
|
|
3737
3737
|
inset: 0;
|
|
3738
3738
|
background: rgba(50, 60, 77, 0.6);
|
|
3739
3739
|
cursor: default;
|
|
3740
|
-
animation: overlayIn ${
|
|
3740
|
+
animation: overlayIn ${u2}ms cubic-bezier(0.2, 0, 0, 1)
|
|
3741
3741
|
forwards;
|
|
3742
3742
|
}
|
|
3743
3743
|
.overlay.is-leaving {
|
|
3744
|
-
animation: overlayOut ${
|
|
3744
|
+
animation: overlayOut ${o4}ms
|
|
3745
3745
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3746
3746
|
}
|
|
3747
3747
|
.modal-wrapper {
|
|
@@ -3767,11 +3767,11 @@ const e1 = (Y = class extends u {
|
|
|
3767
3767
|
0 8px 24px 0 rgba(29, 41, 57, 0.12),
|
|
3768
3768
|
0 2px 8px 0 rgba(29, 41, 57, 0.08);
|
|
3769
3769
|
flex-shrink: 0;
|
|
3770
|
-
animation: modalIn ${
|
|
3770
|
+
animation: modalIn ${u2}ms cubic-bezier(0.05, 0.7, 0.1, 1)
|
|
3771
3771
|
forwards;
|
|
3772
3772
|
}
|
|
3773
3773
|
.modal.is-leaving {
|
|
3774
|
-
animation: modalOut ${
|
|
3774
|
+
animation: modalOut ${h2}ms
|
|
3775
3775
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3776
3776
|
}
|
|
3777
3777
|
.modal-wrapper--fullscreen {
|
|
@@ -3801,11 +3801,11 @@ const e1 = (Y = class extends u {
|
|
|
3801
3801
|
max-height: 100%;
|
|
3802
3802
|
height: 100%;
|
|
3803
3803
|
box-shadow: none;
|
|
3804
|
-
animation: modalFullscreenIn ${
|
|
3804
|
+
animation: modalFullscreenIn ${u2}ms
|
|
3805
3805
|
cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
|
|
3806
3806
|
}
|
|
3807
3807
|
.modal--fullscreen.is-leaving {
|
|
3808
|
-
animation: modalFullscreenOut ${
|
|
3808
|
+
animation: modalFullscreenOut ${h2}ms
|
|
3809
3809
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3810
3810
|
}
|
|
3811
3811
|
.header {
|
|
@@ -3877,15 +3877,15 @@ c1([
|
|
|
3877
3877
|
a({ type: Boolean })
|
|
3878
3878
|
], e1.prototype, "fullscreen");
|
|
3879
3879
|
c1([
|
|
3880
|
-
|
|
3880
|
+
m()
|
|
3881
3881
|
], e1.prototype, "_leaving");
|
|
3882
|
-
let
|
|
3883
|
-
customElements.get("anduin-modal") || customElements.define("anduin-modal",
|
|
3884
|
-
class
|
|
3882
|
+
let Y3 = e1;
|
|
3883
|
+
customElements.get("anduin-modal") || customElements.define("anduin-modal", Y3);
|
|
3884
|
+
class X3 extends HTMLElement {
|
|
3885
3885
|
constructor() {
|
|
3886
3886
|
super(...arguments), this._onClick = () => {
|
|
3887
3887
|
this.dispatchEvent(
|
|
3888
|
-
new CustomEvent(
|
|
3888
|
+
new CustomEvent(_1, { bubbles: !0, composed: !0 })
|
|
3889
3889
|
);
|
|
3890
3890
|
};
|
|
3891
3891
|
}
|
|
@@ -3896,26 +3896,26 @@ class I3 extends HTMLElement {
|
|
|
3896
3896
|
this.removeEventListener("click", this._onClick);
|
|
3897
3897
|
}
|
|
3898
3898
|
}
|
|
3899
|
-
customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close",
|
|
3900
|
-
var
|
|
3901
|
-
for (var o = void 0,
|
|
3902
|
-
(n = l
|
|
3903
|
-
return o &&
|
|
3899
|
+
customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", X3);
|
|
3900
|
+
var K3 = Object.defineProperty, U = (r, e, t, i) => {
|
|
3901
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
3902
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
3903
|
+
return o && K3(e, t, o), o;
|
|
3904
3904
|
};
|
|
3905
|
-
const
|
|
3905
|
+
const R2 = "anduin-radio:change", J3 = "anduin-radio-group:change", M5 = class M5 extends u {
|
|
3906
3906
|
constructor() {
|
|
3907
3907
|
super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
|
|
3908
3908
|
}
|
|
3909
3909
|
connectedCallback() {
|
|
3910
3910
|
super.connectedCallback();
|
|
3911
3911
|
const e = this.closest("anduin-field");
|
|
3912
|
-
e && e.addEventListener(
|
|
3912
|
+
e && e.addEventListener(M1, (t) => {
|
|
3913
3913
|
const i = t;
|
|
3914
3914
|
this.inputid && this.inputid === i.detail && !this.disabled && !this.readonly && this._select();
|
|
3915
3915
|
});
|
|
3916
3916
|
}
|
|
3917
3917
|
_select() {
|
|
3918
|
-
this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(
|
|
3918
|
+
this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(R2, {
|
|
3919
3919
|
detail: this.value,
|
|
3920
3920
|
bubbles: !0,
|
|
3921
3921
|
composed: !0
|
|
@@ -3956,7 +3956,7 @@ const Z2 = "anduin-radio:change", T3 = "anduin-radio-group:change", L5 = class L
|
|
|
3956
3956
|
`;
|
|
3957
3957
|
}
|
|
3958
3958
|
};
|
|
3959
|
-
|
|
3959
|
+
M5.styles = g`
|
|
3960
3960
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
3961
3961
|
|
|
3962
3962
|
label {
|
|
@@ -4027,7 +4027,7 @@ L5.styles = g`
|
|
|
4027
4027
|
transform: scale(1);
|
|
4028
4028
|
}
|
|
4029
4029
|
`;
|
|
4030
|
-
let N =
|
|
4030
|
+
let N = M5;
|
|
4031
4031
|
U([
|
|
4032
4032
|
a({ type: Boolean })
|
|
4033
4033
|
], N.prototype, "checked");
|
|
@@ -4047,14 +4047,14 @@ U([
|
|
|
4047
4047
|
a()
|
|
4048
4048
|
], N.prototype, "inputid");
|
|
4049
4049
|
customElements.get("anduin-radio") || customElements.define("anduin-radio", N);
|
|
4050
|
-
const
|
|
4050
|
+
const Z5 = class Z5 extends u {
|
|
4051
4051
|
constructor() {
|
|
4052
4052
|
super(...arguments), this.value = "", this.name = "", this.orientation = "vertical", this._onRadioChange = (e) => {
|
|
4053
4053
|
const i = e.detail;
|
|
4054
4054
|
i !== this.value && (this.value = i, this.querySelectorAll("anduin-radio").forEach((o) => {
|
|
4055
|
-
const
|
|
4056
|
-
|
|
4057
|
-
}), this.dispatchEvent(new CustomEvent(
|
|
4055
|
+
const l = o;
|
|
4056
|
+
l.checked = l.value === i;
|
|
4057
|
+
}), this.dispatchEvent(new CustomEvent(J3, {
|
|
4058
4058
|
detail: i,
|
|
4059
4059
|
bubbles: !0,
|
|
4060
4060
|
composed: !0
|
|
@@ -4062,10 +4062,10 @@ const m5 = class m5 extends u {
|
|
|
4062
4062
|
};
|
|
4063
4063
|
}
|
|
4064
4064
|
connectedCallback() {
|
|
4065
|
-
super.connectedCallback(), this.addEventListener(
|
|
4065
|
+
super.connectedCallback(), this.addEventListener(R2, this._onRadioChange);
|
|
4066
4066
|
}
|
|
4067
4067
|
disconnectedCallback() {
|
|
4068
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
4068
|
+
super.disconnectedCallback(), this.removeEventListener(R2, this._onRadioChange);
|
|
4069
4069
|
}
|
|
4070
4070
|
render() {
|
|
4071
4071
|
return C`
|
|
@@ -4075,7 +4075,7 @@ const m5 = class m5 extends u {
|
|
|
4075
4075
|
`;
|
|
4076
4076
|
}
|
|
4077
4077
|
};
|
|
4078
|
-
|
|
4078
|
+
Z5.styles = g`
|
|
4079
4079
|
:host { display: block; font-family: var(--font-sans); }
|
|
4080
4080
|
|
|
4081
4081
|
.group {
|
|
@@ -4085,23 +4085,23 @@ m5.styles = g`
|
|
|
4085
4085
|
.group--vertical { flex-direction: column; }
|
|
4086
4086
|
.group--horizontal { flex-direction: row; flex-wrap: wrap; align-items: center; }
|
|
4087
4087
|
`;
|
|
4088
|
-
let
|
|
4088
|
+
let m1 = Z5;
|
|
4089
4089
|
U([
|
|
4090
4090
|
a()
|
|
4091
|
-
],
|
|
4091
|
+
], m1.prototype, "value");
|
|
4092
4092
|
U([
|
|
4093
4093
|
a()
|
|
4094
|
-
],
|
|
4094
|
+
], m1.prototype, "name");
|
|
4095
4095
|
U([
|
|
4096
4096
|
a()
|
|
4097
|
-
],
|
|
4098
|
-
customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group",
|
|
4099
|
-
var
|
|
4100
|
-
for (var o = void 0,
|
|
4101
|
-
(n = l
|
|
4102
|
-
return o &&
|
|
4097
|
+
], m1.prototype, "orientation");
|
|
4098
|
+
customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", m1);
|
|
4099
|
+
var Q3 = Object.defineProperty, p1 = (r, e, t, i) => {
|
|
4100
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
4101
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
4102
|
+
return o && Q3(e, t, o), o;
|
|
4103
4103
|
};
|
|
4104
|
-
const
|
|
4104
|
+
const i4 = [
|
|
4105
4105
|
{ bg: "#6172F3", text: "#ffffff" },
|
|
4106
4106
|
{ bg: "#B692F6", text: "#ffffff" },
|
|
4107
4107
|
{ bg: "#F670C7", text: "#ffffff" },
|
|
@@ -4111,17 +4111,17 @@ const X5 = [
|
|
|
4111
4111
|
{ bg: "#F97066", text: "#ffffff" },
|
|
4112
4112
|
{ bg: "#7A5AF8", text: "#ffffff" }
|
|
4113
4113
|
];
|
|
4114
|
-
function
|
|
4114
|
+
function e7(r) {
|
|
4115
4115
|
let e = 0;
|
|
4116
|
-
for (let t = 0; t <
|
|
4117
|
-
return
|
|
4116
|
+
for (let t = 0; t < r.length; t++) e = e * 31 + r.charCodeAt(t) >>> 0;
|
|
4117
|
+
return i4[e % i4.length];
|
|
4118
4118
|
}
|
|
4119
|
-
function
|
|
4119
|
+
function t7(r) {
|
|
4120
4120
|
var t;
|
|
4121
|
-
const e =
|
|
4121
|
+
const e = r.trim().split(/\s+/);
|
|
4122
4122
|
return e.length === 1 ? ((t = e[0][0]) == null ? void 0 : t.toUpperCase()) ?? "" : ((e[0][0] ?? "") + (e[e.length - 1][0] ?? "")).toUpperCase();
|
|
4123
4123
|
}
|
|
4124
|
-
const
|
|
4124
|
+
const _5 = class _5 extends u {
|
|
4125
4125
|
constructor() {
|
|
4126
4126
|
super(...arguments), this.src = "", this.name = "", this.alt = "", this.icon = "", this.size = 32, this.shape = "circle", this._imgError = !1;
|
|
4127
4127
|
}
|
|
@@ -4132,7 +4132,7 @@ const b5 = class b5 extends u {
|
|
|
4132
4132
|
return this.size <= 16 ? 10 : this.size <= 20 ? 12 : this.size <= 24 ? 14 : 18;
|
|
4133
4133
|
}
|
|
4134
4134
|
render() {
|
|
4135
|
-
const e = !!this.src && !this._imgError, t = this.name || this.icon ?
|
|
4135
|
+
const e = !!this.src && !this._imgError, t = this.name || this.icon ? e7(this.name || this.icon) : { bg: "#F2F4F7", text: "#667085" }, i = this.name ? t7(this.name) : "";
|
|
4136
4136
|
return C`
|
|
4137
4137
|
<div
|
|
4138
4138
|
class="avatar avatar--${this.shape} avatar--${this.size}"
|
|
@@ -4150,7 +4150,7 @@ const b5 = class b5 extends u {
|
|
|
4150
4150
|
`;
|
|
4151
4151
|
}
|
|
4152
4152
|
};
|
|
4153
|
-
|
|
4153
|
+
_5.styles = g`
|
|
4154
4154
|
:host { display: inline-flex; }
|
|
4155
4155
|
|
|
4156
4156
|
.avatar {
|
|
@@ -4179,7 +4179,7 @@ b5.styles = g`
|
|
|
4179
4179
|
display: block;
|
|
4180
4180
|
}
|
|
4181
4181
|
`;
|
|
4182
|
-
let O =
|
|
4182
|
+
let O = _5;
|
|
4183
4183
|
p1([
|
|
4184
4184
|
a()
|
|
4185
4185
|
], O.prototype, "src");
|
|
@@ -4199,7 +4199,7 @@ p1([
|
|
|
4199
4199
|
a()
|
|
4200
4200
|
], O.prototype, "shape");
|
|
4201
4201
|
p1([
|
|
4202
|
-
|
|
4202
|
+
m()
|
|
4203
4203
|
], O.prototype, "_imgError");
|
|
4204
4204
|
customElements.get("anduin-avatar") || customElements.define("anduin-avatar", O);
|
|
4205
4205
|
/**
|
|
@@ -4207,8 +4207,8 @@ customElements.get("anduin-avatar") || customElements.define("anduin-avatar", O)
|
|
|
4207
4207
|
* Copyright 2017 Google LLC
|
|
4208
4208
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4209
4209
|
*/
|
|
4210
|
-
const
|
|
4211
|
-
class
|
|
4210
|
+
const o7 = { CHILD: 2 }, i7 = (r) => (...e) => ({ _$litDirective$: r, values: e });
|
|
4211
|
+
class l7 {
|
|
4212
4212
|
constructor(e) {
|
|
4213
4213
|
}
|
|
4214
4214
|
get _$AU() {
|
|
@@ -4229,9 +4229,9 @@ class W3 {
|
|
|
4229
4229
|
* Copyright 2017 Google LLC
|
|
4230
4230
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4231
4231
|
*/
|
|
4232
|
-
class
|
|
4232
|
+
class k2 extends l7 {
|
|
4233
4233
|
constructor(e) {
|
|
4234
|
-
if (super(e), this.it = c, e.type !==
|
|
4234
|
+
if (super(e), this.it = c, e.type !== o7.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
4235
4235
|
}
|
|
4236
4236
|
render(e) {
|
|
4237
4237
|
if (e === c || e == null) return this._t = void 0, this.it = e;
|
|
@@ -4243,16 +4243,16 @@ class _2 extends W3 {
|
|
|
4243
4243
|
return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
|
|
4244
4244
|
}
|
|
4245
4245
|
}
|
|
4246
|
-
|
|
4246
|
+
k2.directiveName = "unsafeHTML", k2.resultType = 1;
|
|
4247
4247
|
/**
|
|
4248
4248
|
* @license
|
|
4249
4249
|
* Copyright 2017 Google LLC
|
|
4250
4250
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4251
4251
|
*/
|
|
4252
|
-
class
|
|
4252
|
+
class $2 extends k2 {
|
|
4253
4253
|
}
|
|
4254
|
-
|
|
4255
|
-
const
|
|
4254
|
+
$2.directiveName = "unsafeSVG", $2.resultType = 2;
|
|
4255
|
+
const r7 = i7($2), n7 = {
|
|
4256
4256
|
archive: {
|
|
4257
4257
|
16: { viewBox: "0 0 16 16", paths: `<path d="M2 1.5C2 0.671573 2.67157 0 3.5 0H9.17157C9.70201 0 10.2107 0.210714 10.5858 0.585786L13.4142 3.41421C13.7893 3.78929 14 4.29799 14 4.82843V14.5C14 15.3284 13.3284 16 12.5 16H3.5C2.67157 16 2 15.3284 2 14.5V1.5Z" fill="white"/>
|
|
4258
4258
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 5.5C13 5.22386 12.7761 5 12.5 5H9.5C9.22386 5 9 4.77614 9 4.5V1.5C9 1.22386 8.77614 1 8.5 1H6H3.5C3.22386 1 3 1.22386 3 1.5V14.5C3 14.7761 3.22386 15 3.5 15H12.5C12.7761 15 13 14.7761 13 14.5V8V5.5ZM14 8V14.5C14 15.3284 13.3284 16 12.5 16H3.5C2.67157 16 2 15.3284 2 14.5V1.5C2 0.671573 2.67157 0 3.5 0H6H9.17157C9.70201 0 10.2107 0.210714 10.5858 0.585786L13.4142 3.41421C13.7893 3.78929 14 4.29799 14 4.82843V8Z" fill="#CCD2DB"/>
|
|
@@ -4496,26 +4496,26 @@ const Y3 = G3(x2), X3 = {
|
|
|
4496
4496
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 2H18.5H18.5147C18.8078 2 19.0982 2.02573 19.3829 2.07593C19.7452 2.22622 20 2.58335 20 3V8C20 8.55228 20.4477 9 21 9H26C26.4166 9 26.7738 9.25482 26.9241 9.6171C26.9743 9.90183 27 10.1922 27 10.4853V29C27 29.5523 26.5523 30 26 30H6C5.44772 30 5 29.5523 5 29V3C5 2.44772 5.44772 2 6 2ZM27.9804 10C27.9934 10.1608 28 10.3227 28 10.4853V29C28 30.1046 27.1046 31 26 31H6C4.89543 31 4 30.1046 4 29V3C4 1.89543 4.89543 1 6 1H18.5H18.5147C20.0951 1 21.6113 1.62353 22.7342 2.73435C22.742 2.742 22.7497 2.74967 22.7574 2.75736L26.2426 6.24264L26.5858 6.58579C27.4913 7.49129 28 8.71942 28 10H27.9804Z" fill="#AADAF9"/>
|
|
4497
4497
|
<path d="M18.875 21.5385L20.3324 13.4117C20.3751 13.1734 20.5825 13 20.8246 13H22.1261C22.4436 13 22.6808 13.2921 22.6154 13.6029L20.3023 24.6029C20.2536 24.8343 20.0494 25 19.813 25H18.2572C18.0243 25 17.8223 24.8393 17.77 24.6124L16.0078 16.9725L14.2457 24.6124C14.1933 24.8393 13.9913 25 13.7584 25H12.2027C11.9662 25 11.762 24.8343 11.7134 24.6029L9.40022 13.6029C9.33487 13.2921 9.57198 13 9.88952 13H11.1916C11.4335 13 11.6406 13.1731 11.6836 13.4111L13.1484 21.522L14.9371 13.3926C14.9875 13.1633 15.1906 13 15.4254 13H16.6053C16.8403 13 17.0436 13.1636 17.0938 13.3932L18.875 21.5385Z" fill="#1075DC"/>` }
|
|
4498
4498
|
}
|
|
4499
|
-
},
|
|
4500
|
-
function
|
|
4501
|
-
const t =
|
|
4499
|
+
}, a7 = [32, 24, 16];
|
|
4500
|
+
function s7(r, e) {
|
|
4501
|
+
const t = n7[r];
|
|
4502
4502
|
if (!t) return null;
|
|
4503
4503
|
if (t[e]) return t[e];
|
|
4504
|
-
for (const i of
|
|
4504
|
+
for (const i of a7)
|
|
4505
4505
|
if (t[i]) return t[i];
|
|
4506
4506
|
return null;
|
|
4507
4507
|
}
|
|
4508
|
-
var
|
|
4509
|
-
for (var o = void 0,
|
|
4510
|
-
(n = l
|
|
4511
|
-
return o &&
|
|
4508
|
+
var C7 = Object.defineProperty, E4 = (r, e, t, i) => {
|
|
4509
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
4510
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
4511
|
+
return o && C7(e, t, o), o;
|
|
4512
4512
|
};
|
|
4513
|
-
const
|
|
4513
|
+
const x5 = class x5 extends u {
|
|
4514
4514
|
constructor() {
|
|
4515
4515
|
super(...arguments), this.type = "pdf", this.size = 32;
|
|
4516
4516
|
}
|
|
4517
4517
|
render() {
|
|
4518
|
-
const e =
|
|
4518
|
+
const e = s7(this.type, this.size);
|
|
4519
4519
|
return e ? C`
|
|
4520
4520
|
<svg
|
|
4521
4521
|
width=${this.size}
|
|
@@ -4526,35 +4526,35 @@ const y5 = class y5 extends u {
|
|
|
4526
4526
|
aria-label="${this.type} file"
|
|
4527
4527
|
role="img"
|
|
4528
4528
|
>
|
|
4529
|
-
${
|
|
4529
|
+
${r7(e.paths)}
|
|
4530
4530
|
</svg>
|
|
4531
4531
|
` : c;
|
|
4532
4532
|
}
|
|
4533
4533
|
};
|
|
4534
|
-
|
|
4534
|
+
x5.styles = g`
|
|
4535
4535
|
:host { display: inline-flex; align-items: center; justify-content: center; }
|
|
4536
4536
|
svg { display: block; }
|
|
4537
4537
|
`;
|
|
4538
|
-
let
|
|
4539
|
-
|
|
4538
|
+
let T1 = x5;
|
|
4539
|
+
E4([
|
|
4540
4540
|
a()
|
|
4541
|
-
],
|
|
4542
|
-
|
|
4541
|
+
], T1.prototype, "type");
|
|
4542
|
+
E4([
|
|
4543
4543
|
a({ type: Number })
|
|
4544
|
-
],
|
|
4545
|
-
customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon",
|
|
4546
|
-
var
|
|
4547
|
-
for (var o = void 0,
|
|
4548
|
-
(n = l
|
|
4549
|
-
return o &&
|
|
4544
|
+
], T1.prototype, "size");
|
|
4545
|
+
customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", T1);
|
|
4546
|
+
var d7 = Object.defineProperty, u1 = (r, e, t, i) => {
|
|
4547
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
4548
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
4549
|
+
return o && d7(e, t, o), o;
|
|
4550
4550
|
};
|
|
4551
|
-
const
|
|
4551
|
+
const l4 = {
|
|
4552
4552
|
gray: "info",
|
|
4553
4553
|
primary: "infoCircleLine",
|
|
4554
4554
|
success: "checkCircle",
|
|
4555
4555
|
warning: "warning",
|
|
4556
4556
|
danger: "error"
|
|
4557
|
-
},
|
|
4557
|
+
}, c7 = "anduin-toast:dismiss", w5 = class w5 extends u {
|
|
4558
4558
|
constructor() {
|
|
4559
4559
|
super(...arguments), this.variant = "gray", this.heading = "", this.description = "", this._dismissing = !1;
|
|
4560
4560
|
}
|
|
@@ -4565,7 +4565,7 @@ const K5 = {
|
|
|
4565
4565
|
const e = (i) => {
|
|
4566
4566
|
var o;
|
|
4567
4567
|
i.propertyName === "opacity" && ((o = this._toastEl) == null || o.removeEventListener("transitionend", e), this.dispatchEvent(
|
|
4568
|
-
new CustomEvent(
|
|
4568
|
+
new CustomEvent(c7, { bubbles: !0, composed: !0 })
|
|
4569
4569
|
));
|
|
4570
4570
|
};
|
|
4571
4571
|
(t = this._toastEl) == null || t.addEventListener("transitionend", e);
|
|
@@ -4574,7 +4574,7 @@ const K5 = {
|
|
|
4574
4574
|
this.dismiss();
|
|
4575
4575
|
}
|
|
4576
4576
|
render() {
|
|
4577
|
-
const e =
|
|
4577
|
+
const e = l4[this.variant] ?? l4.gray;
|
|
4578
4578
|
return C`
|
|
4579
4579
|
<div
|
|
4580
4580
|
class="toast toast--${this.variant} ${this._dismissing ? "toast--dismissing" : ""}"
|
|
@@ -4600,7 +4600,7 @@ const K5 = {
|
|
|
4600
4600
|
`;
|
|
4601
4601
|
}
|
|
4602
4602
|
};
|
|
4603
|
-
|
|
4603
|
+
w5.styles = g`
|
|
4604
4604
|
:host {
|
|
4605
4605
|
display: block;
|
|
4606
4606
|
font-family: var(--font-sans);
|
|
@@ -4728,7 +4728,7 @@ M5.styles = g`
|
|
|
4728
4728
|
background: var(--color-gray-3, #d0d5dd);
|
|
4729
4729
|
}
|
|
4730
4730
|
`;
|
|
4731
|
-
let K =
|
|
4731
|
+
let K = w5;
|
|
4732
4732
|
u1([
|
|
4733
4733
|
a()
|
|
4734
4734
|
], K.prototype, "variant");
|
|
@@ -4739,13 +4739,13 @@ u1([
|
|
|
4739
4739
|
a()
|
|
4740
4740
|
], K.prototype, "description");
|
|
4741
4741
|
u1([
|
|
4742
|
-
|
|
4742
|
+
m()
|
|
4743
4743
|
], K.prototype, "_dismissing");
|
|
4744
4744
|
u1([
|
|
4745
4745
|
k(".toast")
|
|
4746
4746
|
], K.prototype, "_toastEl");
|
|
4747
4747
|
customElements.get("anduin-toast") || customElements.define("anduin-toast", K);
|
|
4748
|
-
const
|
|
4748
|
+
const R5 = class R5 extends u {
|
|
4749
4749
|
constructor() {
|
|
4750
4750
|
super(...arguments), this.position = "bottom-left", this._toasts = [], this._nextId = 0;
|
|
4751
4751
|
}
|
|
@@ -4789,7 +4789,7 @@ const Z5 = class Z5 extends u {
|
|
|
4789
4789
|
`;
|
|
4790
4790
|
}
|
|
4791
4791
|
};
|
|
4792
|
-
|
|
4792
|
+
R5.styles = g`
|
|
4793
4793
|
:host {
|
|
4794
4794
|
display: contents;
|
|
4795
4795
|
pointer-events: none;
|
|
@@ -4836,50 +4836,50 @@ Z5.styles = g`
|
|
|
4836
4836
|
align-items: flex-end;
|
|
4837
4837
|
}
|
|
4838
4838
|
`;
|
|
4839
|
-
let
|
|
4839
|
+
let N1 = R5;
|
|
4840
4840
|
u1([
|
|
4841
4841
|
a()
|
|
4842
|
-
],
|
|
4842
|
+
], N1.prototype, "position");
|
|
4843
4843
|
u1([
|
|
4844
|
-
|
|
4845
|
-
],
|
|
4846
|
-
customElements.get("anduin-toaster") || customElements.define("anduin-toaster",
|
|
4847
|
-
const
|
|
4848
|
-
show(
|
|
4849
|
-
return
|
|
4844
|
+
m()
|
|
4845
|
+
], N1.prototype, "_toasts");
|
|
4846
|
+
customElements.get("anduin-toaster") || customElements.define("anduin-toaster", N1);
|
|
4847
|
+
const $7 = {
|
|
4848
|
+
show(r) {
|
|
4849
|
+
return p7(r.position).show(r);
|
|
4850
4850
|
},
|
|
4851
|
-
success(
|
|
4852
|
-
return this.show({ ...t, variant: "success", heading:
|
|
4851
|
+
success(r, e, t) {
|
|
4852
|
+
return this.show({ ...t, variant: "success", heading: r, description: e });
|
|
4853
4853
|
},
|
|
4854
|
-
danger(
|
|
4855
|
-
return this.show({ ...t, variant: "danger", heading:
|
|
4854
|
+
danger(r, e, t) {
|
|
4855
|
+
return this.show({ ...t, variant: "danger", heading: r, description: e });
|
|
4856
4856
|
},
|
|
4857
|
-
warning(
|
|
4858
|
-
return this.show({ ...t, variant: "warning", heading:
|
|
4857
|
+
warning(r, e, t) {
|
|
4858
|
+
return this.show({ ...t, variant: "warning", heading: r, description: e });
|
|
4859
4859
|
},
|
|
4860
|
-
primary(
|
|
4861
|
-
return this.show({ ...t, variant: "primary", heading:
|
|
4860
|
+
primary(r, e, t) {
|
|
4861
|
+
return this.show({ ...t, variant: "primary", heading: r, description: e });
|
|
4862
4862
|
},
|
|
4863
|
-
gray(
|
|
4864
|
-
return this.show({ ...t, variant: "gray", heading:
|
|
4863
|
+
gray(r, e, t) {
|
|
4864
|
+
return this.show({ ...t, variant: "gray", heading: r, description: e });
|
|
4865
4865
|
}
|
|
4866
|
-
},
|
|
4867
|
-
function
|
|
4868
|
-
if (
|
|
4866
|
+
}, g2 = /* @__PURE__ */ new Map();
|
|
4867
|
+
function p7(r = "bottom-left") {
|
|
4868
|
+
if (g2.has(r)) return g2.get(r);
|
|
4869
4869
|
const e = document.createElement("anduin-toaster");
|
|
4870
|
-
return e.position =
|
|
4870
|
+
return e.position = r, document.body.appendChild(e), g2.set(r, e), e;
|
|
4871
4871
|
}
|
|
4872
|
-
var
|
|
4873
|
-
for (var o = void 0,
|
|
4874
|
-
(n = l
|
|
4875
|
-
return o &&
|
|
4872
|
+
var u7 = Object.defineProperty, z4 = (r, e, t, i) => {
|
|
4873
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
4874
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
4875
|
+
return o && u7(e, t, o), o;
|
|
4876
4876
|
};
|
|
4877
|
-
const
|
|
4877
|
+
const h7 = "anduin-switcher:change", k5 = class k5 extends u {
|
|
4878
4878
|
constructor() {
|
|
4879
4879
|
super(...arguments), this.checked = !1, this.disabled = !1;
|
|
4880
4880
|
}
|
|
4881
4881
|
onChange() {
|
|
4882
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
4882
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(h7, {
|
|
4883
4883
|
detail: this.checked,
|
|
4884
4884
|
bubbles: !0,
|
|
4885
4885
|
composed: !0
|
|
@@ -4903,7 +4903,7 @@ const l7 = "anduin-switcher:change", _5 = class _5 extends u {
|
|
|
4903
4903
|
`;
|
|
4904
4904
|
}
|
|
4905
4905
|
};
|
|
4906
|
-
|
|
4906
|
+
k5.styles = g`
|
|
4907
4907
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
4908
4908
|
|
|
4909
4909
|
label {
|
|
@@ -4967,20 +4967,20 @@ _5.styles = g`
|
|
|
4967
4967
|
line-height: 20px;
|
|
4968
4968
|
}
|
|
4969
4969
|
`;
|
|
4970
|
-
let
|
|
4971
|
-
|
|
4970
|
+
let j1 = k5;
|
|
4971
|
+
z4([
|
|
4972
4972
|
a({ type: Boolean })
|
|
4973
|
-
],
|
|
4974
|
-
|
|
4973
|
+
], j1.prototype, "checked");
|
|
4974
|
+
z4([
|
|
4975
4975
|
a({ type: Boolean })
|
|
4976
|
-
],
|
|
4977
|
-
customElements.get("anduin-switcher") || customElements.define("anduin-switcher",
|
|
4978
|
-
var
|
|
4979
|
-
for (var o = void 0,
|
|
4980
|
-
(n = l
|
|
4981
|
-
return o &&
|
|
4976
|
+
], j1.prototype, "disabled");
|
|
4977
|
+
customElements.get("anduin-switcher") || customElements.define("anduin-switcher", j1);
|
|
4978
|
+
var g7 = Object.defineProperty, M = (r, e, t, i) => {
|
|
4979
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
4980
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
4981
|
+
return o && g7(e, t, o), o;
|
|
4982
4982
|
};
|
|
4983
|
-
const
|
|
4983
|
+
const r4 = "anduin-dropdown:change", $5 = class $5 extends u {
|
|
4984
4984
|
constructor() {
|
|
4985
4985
|
super(...arguments), this.value = "", this.placeholder = "Select...", this.options = [], this.icon = "", this.searchable = !0, this.disabled = !1, this.placement = "bottom-start", this.appearance = "filled", this.variant = "gray0", this.size = "default", this.fullWidth = !1, this._open = !1, this._query = "", this._onOutsideClick = (e) => {
|
|
4986
4986
|
var t;
|
|
@@ -5012,14 +5012,14 @@ const J5 = "anduin-dropdown:change", x5 = class x5 extends u {
|
|
|
5012
5012
|
e.key === "Escape" && (this._open = !1, this._query = "", (t = this._triggerEl) == null || t.focus());
|
|
5013
5013
|
}
|
|
5014
5014
|
_onClear(e) {
|
|
5015
|
-
e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(
|
|
5015
|
+
e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(r4, {
|
|
5016
5016
|
detail: "",
|
|
5017
5017
|
bubbles: !0,
|
|
5018
5018
|
composed: !0
|
|
5019
5019
|
}));
|
|
5020
5020
|
}
|
|
5021
5021
|
_selectOption(e) {
|
|
5022
|
-
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(
|
|
5022
|
+
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(r4, {
|
|
5023
5023
|
detail: e.value,
|
|
5024
5024
|
bubbles: !0,
|
|
5025
5025
|
composed: !0
|
|
@@ -5030,15 +5030,15 @@ const J5 = "anduin-dropdown:change", x5 = class x5 extends u {
|
|
|
5030
5030
|
if (!e || !t) return;
|
|
5031
5031
|
const i = e.getBoundingClientRect(), o = t.style.transform;
|
|
5032
5032
|
t.style.transform = "none";
|
|
5033
|
-
const
|
|
5033
|
+
const l = t.getBoundingClientRect();
|
|
5034
5034
|
t.style.transform = o;
|
|
5035
5035
|
const n = t.querySelector(".panel__inner");
|
|
5036
5036
|
n && (n.style.minWidth = `${i.width}px`);
|
|
5037
|
-
const s = t.getBoundingClientRect(), d = 4, p = window.innerWidth, h = window.innerHeight, v = 8, H = h - i.bottom - d, f = i.top - d,
|
|
5037
|
+
const s = t.getBoundingClientRect(), d = 4, p = window.innerWidth, h = window.innerHeight, v = 8, H = h - i.bottom - d, f = i.top - d, G = s.height <= H || H >= f ? i.bottom + d : i.top - s.height - d;
|
|
5038
5038
|
let x = i.left;
|
|
5039
5039
|
this.placement === "bottom-end" ? x = i.right - s.width : this.placement === "bottom" && (x = i.left + i.width / 2 - s.width / 2), x = Math.max(v, Math.min(x, p - s.width - v));
|
|
5040
|
-
const
|
|
5041
|
-
t.style.transform = `translate(${Math.round(x -
|
|
5040
|
+
const D = Math.max(v, Math.min(G, h - s.height - v));
|
|
5041
|
+
t.style.transform = `translate(${Math.round(x - l.left)}px, ${Math.round(D - l.top)}px)`;
|
|
5042
5042
|
}
|
|
5043
5043
|
get _filteredOptions() {
|
|
5044
5044
|
if (!this._query) return this.options;
|
|
@@ -5046,7 +5046,7 @@ const J5 = "anduin-dropdown:change", x5 = class x5 extends u {
|
|
|
5046
5046
|
return this.options.filter((t) => t.label.toLowerCase().includes(e));
|
|
5047
5047
|
}
|
|
5048
5048
|
render() {
|
|
5049
|
-
const e = this.options.find((
|
|
5049
|
+
const e = this.options.find((l) => l.value === this.value), t = (e == null ? void 0 : e.label) ?? "", i = e ? e.icon ?? "" : this.icon, o = this._filteredOptions;
|
|
5050
5050
|
return C`
|
|
5051
5051
|
<button
|
|
5052
5052
|
class="trigger trigger--${this.appearance} trigger--${this.variant}${this.size === "small" ? " trigger--small" : ""}${this.value ? " has-value" : ""}"
|
|
@@ -5078,25 +5078,25 @@ const J5 = "anduin-dropdown:change", x5 = class x5 extends u {
|
|
|
5078
5078
|
<anduin-input
|
|
5079
5079
|
placeholder="Search ..."
|
|
5080
5080
|
.value=${this._query}
|
|
5081
|
-
@anduin-input:change=${(
|
|
5082
|
-
this._query =
|
|
5081
|
+
@anduin-input:change=${(l) => {
|
|
5082
|
+
this._query = l.detail;
|
|
5083
5083
|
}}
|
|
5084
5084
|
></anduin-input>
|
|
5085
5085
|
</div>
|
|
5086
5086
|
` : c}
|
|
5087
5087
|
<div class="options">
|
|
5088
|
-
${o.length ? o.map((
|
|
5088
|
+
${o.length ? o.map((l) => C`
|
|
5089
5089
|
<div
|
|
5090
5090
|
class="option"
|
|
5091
5091
|
role="option"
|
|
5092
|
-
aria-selected=${
|
|
5093
|
-
@click=${() => this._selectOption(
|
|
5092
|
+
aria-selected=${l.value === this.value}
|
|
5093
|
+
@click=${() => this._selectOption(l)}
|
|
5094
5094
|
>
|
|
5095
5095
|
<span class="option__check">
|
|
5096
|
-
${
|
|
5096
|
+
${l.value === this.value ? C`<anduin-icon name="checkSmall" size="16"></anduin-icon>` : c}
|
|
5097
5097
|
</span>
|
|
5098
|
-
${
|
|
5099
|
-
<span class="option__label">${
|
|
5098
|
+
${l.icon ? C`<anduin-icon name="${l.icon}" size="16"></anduin-icon>` : c}
|
|
5099
|
+
<span class="option__label">${l.label}</span>
|
|
5100
5100
|
</div>
|
|
5101
5101
|
`) : C`<div class="empty">No results</div>`}
|
|
5102
5102
|
</div>
|
|
@@ -5105,7 +5105,7 @@ const J5 = "anduin-dropdown:change", x5 = class x5 extends u {
|
|
|
5105
5105
|
`;
|
|
5106
5106
|
}
|
|
5107
5107
|
};
|
|
5108
|
-
|
|
5108
|
+
$5.styles = g`
|
|
5109
5109
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
5110
5110
|
:host([full-width]) { display: block; width: 100%; }
|
|
5111
5111
|
:host([full-width]) .trigger { width: 100%; }
|
|
@@ -5285,96 +5285,96 @@ x5.styles = g`
|
|
|
5285
5285
|
text-align: center;
|
|
5286
5286
|
}
|
|
5287
5287
|
`;
|
|
5288
|
-
let
|
|
5288
|
+
let b = $5;
|
|
5289
5289
|
M([
|
|
5290
5290
|
a()
|
|
5291
|
-
],
|
|
5291
|
+
], b.prototype, "value");
|
|
5292
5292
|
M([
|
|
5293
5293
|
a()
|
|
5294
|
-
],
|
|
5294
|
+
], b.prototype, "placeholder");
|
|
5295
5295
|
M([
|
|
5296
5296
|
a({ attribute: !1 })
|
|
5297
|
-
],
|
|
5297
|
+
], b.prototype, "options");
|
|
5298
5298
|
M([
|
|
5299
5299
|
a()
|
|
5300
|
-
],
|
|
5300
|
+
], b.prototype, "icon");
|
|
5301
5301
|
M([
|
|
5302
5302
|
a({ type: Boolean })
|
|
5303
|
-
],
|
|
5303
|
+
], b.prototype, "searchable");
|
|
5304
5304
|
M([
|
|
5305
5305
|
a({ type: Boolean })
|
|
5306
|
-
],
|
|
5306
|
+
], b.prototype, "disabled");
|
|
5307
5307
|
M([
|
|
5308
5308
|
a()
|
|
5309
|
-
],
|
|
5309
|
+
], b.prototype, "placement");
|
|
5310
5310
|
M([
|
|
5311
5311
|
a()
|
|
5312
|
-
],
|
|
5312
|
+
], b.prototype, "appearance");
|
|
5313
5313
|
M([
|
|
5314
5314
|
a()
|
|
5315
|
-
],
|
|
5315
|
+
], b.prototype, "variant");
|
|
5316
5316
|
M([
|
|
5317
5317
|
a()
|
|
5318
|
-
],
|
|
5318
|
+
], b.prototype, "size");
|
|
5319
5319
|
M([
|
|
5320
5320
|
a({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
5321
|
-
],
|
|
5321
|
+
], b.prototype, "fullWidth");
|
|
5322
5322
|
M([
|
|
5323
|
-
|
|
5324
|
-
],
|
|
5323
|
+
m()
|
|
5324
|
+
], b.prototype, "_open");
|
|
5325
5325
|
M([
|
|
5326
|
-
|
|
5327
|
-
],
|
|
5326
|
+
m()
|
|
5327
|
+
], b.prototype, "_query");
|
|
5328
5328
|
M([
|
|
5329
5329
|
k(".trigger")
|
|
5330
|
-
],
|
|
5330
|
+
], b.prototype, "_triggerEl");
|
|
5331
5331
|
M([
|
|
5332
5332
|
k(".panel")
|
|
5333
|
-
],
|
|
5333
|
+
], b.prototype, "_panelEl");
|
|
5334
5334
|
M([
|
|
5335
5335
|
k("anduin-input")
|
|
5336
|
-
],
|
|
5337
|
-
customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown",
|
|
5338
|
-
var
|
|
5339
|
-
for (var o = void 0,
|
|
5340
|
-
(n = l
|
|
5341
|
-
return o &&
|
|
5336
|
+
], b.prototype, "_searchEl");
|
|
5337
|
+
customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", b);
|
|
5338
|
+
var v7 = Object.defineProperty, t1 = (r, e, t, i) => {
|
|
5339
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
5340
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
5341
|
+
return o && v7(e, t, o), o;
|
|
5342
5342
|
};
|
|
5343
|
-
const
|
|
5343
|
+
const E2 = "anduin-close", f7 = "anduin-after-close", H7 = 300, n4 = 250, V7 = /* @__PURE__ */ new Map([
|
|
5344
5344
|
["320", 320],
|
|
5345
5345
|
["360", 360],
|
|
5346
5346
|
["400", 400],
|
|
5347
5347
|
["640", 640]
|
|
5348
|
-
]),
|
|
5348
|
+
]), E5 = class E5 extends u {
|
|
5349
5349
|
constructor() {
|
|
5350
5350
|
super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.defaultWidth = "320", this.allowInteractOutside = !1, this._leaving = !1, this._width = 320, this._resizing = !1, this._startX = 0, this._startWidth = 0, this._onResizeStart = (e) => {
|
|
5351
5351
|
this._resizing = !0, this._startX = e.clientX, this._startWidth = this._width, e.currentTarget.setPointerCapture(e.pointerId), e.preventDefault();
|
|
5352
5352
|
}, this._onResizeMove = (e) => {
|
|
5353
|
-
var
|
|
5353
|
+
var l;
|
|
5354
5354
|
if (!this._resizing) return;
|
|
5355
5355
|
const t = this._startX - e.clientX, i = Math.max(
|
|
5356
5356
|
200,
|
|
5357
5357
|
Math.min(window.innerWidth * 0.9, this._startWidth + t)
|
|
5358
5358
|
);
|
|
5359
5359
|
this._width = Math.round(i);
|
|
5360
|
-
const o = (
|
|
5360
|
+
const o = (l = this.shadowRoot) == null ? void 0 : l.querySelector(".drawer");
|
|
5361
5361
|
o && (o.style.width = `${this._width}px`);
|
|
5362
5362
|
}, this._onResizeEnd = () => {
|
|
5363
5363
|
this._resizing = !1;
|
|
5364
5364
|
};
|
|
5365
5365
|
}
|
|
5366
5366
|
willUpdate(e) {
|
|
5367
|
-
e.has("defaultWidth") && (this._width =
|
|
5367
|
+
e.has("defaultWidth") && (this._width = V7.get(this.defaultWidth) ?? (parseInt(this.defaultWidth) || 320));
|
|
5368
5368
|
}
|
|
5369
5369
|
updated(e) {
|
|
5370
5370
|
e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(() => {
|
|
5371
5371
|
this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
|
|
5372
|
-
new CustomEvent(
|
|
5372
|
+
new CustomEvent(f7, {
|
|
5373
5373
|
bubbles: !0,
|
|
5374
5374
|
composed: !0
|
|
5375
5375
|
})
|
|
5376
5376
|
);
|
|
5377
|
-
},
|
|
5377
|
+
}, n4)));
|
|
5378
5378
|
}
|
|
5379
5379
|
_dispatch(e) {
|
|
5380
5380
|
this.dispatchEvent(
|
|
@@ -5382,10 +5382,10 @@ const w2 = "anduin-close", a7 = "anduin-after-close", s7 = 300, Q5 = 250, C7 = /
|
|
|
5382
5382
|
);
|
|
5383
5383
|
}
|
|
5384
5384
|
_onClose() {
|
|
5385
|
-
this._dispatch(
|
|
5385
|
+
this._dispatch(E2);
|
|
5386
5386
|
}
|
|
5387
5387
|
_onBackdropClick() {
|
|
5388
|
-
this._dispatch(
|
|
5388
|
+
this._dispatch(E2);
|
|
5389
5389
|
}
|
|
5390
5390
|
render() {
|
|
5391
5391
|
const e = this._leaving;
|
|
@@ -5428,7 +5428,7 @@ const w2 = "anduin-close", a7 = "anduin-after-close", s7 = 300, Q5 = 250, C7 = /
|
|
|
5428
5428
|
`;
|
|
5429
5429
|
}
|
|
5430
5430
|
};
|
|
5431
|
-
|
|
5431
|
+
E5.styles = g`
|
|
5432
5432
|
:host {
|
|
5433
5433
|
display: none;
|
|
5434
5434
|
font-family: var(--font-sans);
|
|
@@ -5475,14 +5475,14 @@ w5.styles = g`
|
|
|
5475
5475
|
box-shadow:
|
|
5476
5476
|
-8px 0 24px 0 rgba(29, 41, 57, 0.12),
|
|
5477
5477
|
-2px 0 8px 0 rgba(29, 41, 57, 0.08);
|
|
5478
|
-
animation: drawerIn ${
|
|
5478
|
+
animation: drawerIn ${H7}ms cubic-bezier(0.05, 0.7, 0.1, 1)
|
|
5479
5479
|
forwards;
|
|
5480
5480
|
min-width: 200px;
|
|
5481
5481
|
max-width: 90vw;
|
|
5482
5482
|
pointer-events: auto;
|
|
5483
5483
|
}
|
|
5484
5484
|
.drawer.is-leaving {
|
|
5485
|
-
animation: drawerOut ${
|
|
5485
|
+
animation: drawerOut ${n4}ms
|
|
5486
5486
|
cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
5487
5487
|
}
|
|
5488
5488
|
@media (max-width: 640px) {
|
|
@@ -5546,37 +5546,37 @@ w5.styles = g`
|
|
|
5546
5546
|
border-top: 1px solid var(--color-gray-3, #e4e7ec);
|
|
5547
5547
|
}
|
|
5548
5548
|
`;
|
|
5549
|
-
let
|
|
5549
|
+
let z = E5;
|
|
5550
5550
|
t1([
|
|
5551
5551
|
a({ type: Boolean, reflect: !0 })
|
|
5552
|
-
],
|
|
5552
|
+
], z.prototype, "open");
|
|
5553
5553
|
t1([
|
|
5554
5554
|
a()
|
|
5555
|
-
],
|
|
5555
|
+
], z.prototype, "heading");
|
|
5556
5556
|
t1([
|
|
5557
5557
|
a({ type: Boolean, attribute: "hide-header" })
|
|
5558
|
-
],
|
|
5558
|
+
], z.prototype, "hideHeader");
|
|
5559
5559
|
t1([
|
|
5560
5560
|
a({ type: Boolean, attribute: "hide-footer" })
|
|
5561
|
-
],
|
|
5561
|
+
], z.prototype, "hideFooter");
|
|
5562
5562
|
t1([
|
|
5563
5563
|
a({ attribute: "default-width" })
|
|
5564
|
-
],
|
|
5564
|
+
], z.prototype, "defaultWidth");
|
|
5565
5565
|
t1([
|
|
5566
5566
|
a({ type: Boolean, attribute: "allow-interact-outside" })
|
|
5567
|
-
],
|
|
5567
|
+
], z.prototype, "allowInteractOutside");
|
|
5568
5568
|
t1([
|
|
5569
|
-
|
|
5570
|
-
],
|
|
5569
|
+
m()
|
|
5570
|
+
], z.prototype, "_leaving");
|
|
5571
5571
|
t1([
|
|
5572
|
-
|
|
5573
|
-
],
|
|
5574
|
-
customElements.get("anduin-drawer") || customElements.define("anduin-drawer",
|
|
5575
|
-
class
|
|
5572
|
+
m()
|
|
5573
|
+
], z.prototype, "_width");
|
|
5574
|
+
customElements.get("anduin-drawer") || customElements.define("anduin-drawer", z);
|
|
5575
|
+
class m7 extends HTMLElement {
|
|
5576
5576
|
constructor() {
|
|
5577
5577
|
super(...arguments), this._onClick = () => {
|
|
5578
5578
|
this.dispatchEvent(
|
|
5579
|
-
new CustomEvent(
|
|
5579
|
+
new CustomEvent(E2, { bubbles: !0, composed: !0 })
|
|
5580
5580
|
);
|
|
5581
5581
|
};
|
|
5582
5582
|
}
|
|
@@ -5587,13 +5587,13 @@ class d7 extends HTMLElement {
|
|
|
5587
5587
|
this.removeEventListener("click", this._onClick);
|
|
5588
5588
|
}
|
|
5589
5589
|
}
|
|
5590
|
-
customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close",
|
|
5591
|
-
var
|
|
5592
|
-
for (var o = void 0,
|
|
5593
|
-
(n = l
|
|
5594
|
-
return o &&
|
|
5590
|
+
customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", m7);
|
|
5591
|
+
var b7 = Object.defineProperty, y = (r, e, t, i) => {
|
|
5592
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
5593
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
5594
|
+
return o && b7(e, t, o), o;
|
|
5595
5595
|
};
|
|
5596
|
-
const
|
|
5596
|
+
const v2 = "anduin-suggestion:change", L7 = "anduin-suggestion:select", y7 = "anduin-suggestion:clear", z5 = class z5 extends u {
|
|
5597
5597
|
constructor() {
|
|
5598
5598
|
super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1, this.suggestions = [], this.filter = !1, this.hideWhenEmpty = !1, this.emptyText = "No suggestions", this._open = !1, this._activeIndex = -1, this._onDocumentMouseDown = (e) => {
|
|
5599
5599
|
var t;
|
|
@@ -5605,7 +5605,7 @@ const p2 = "anduin-suggestion:change", p7 = "anduin-suggestion:select", u7 = "an
|
|
|
5605
5605
|
connectedCallback() {
|
|
5606
5606
|
super.connectedCallback(), document.addEventListener("mousedown", this._onDocumentMouseDown), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
|
|
5607
5607
|
const e = this.closest("anduin-field");
|
|
5608
|
-
e && e.addEventListener(
|
|
5608
|
+
e && e.addEventListener(M1, (t) => {
|
|
5609
5609
|
var o;
|
|
5610
5610
|
const i = t;
|
|
5611
5611
|
this.inputid && this.inputid === i.detail && ((o = this._inputEl) == null || o.focus());
|
|
@@ -5633,7 +5633,7 @@ const p2 = "anduin-suggestion:change", p7 = "anduin-suggestion:select", u7 = "an
|
|
|
5633
5633
|
this._openPanel();
|
|
5634
5634
|
}
|
|
5635
5635
|
_onInput() {
|
|
5636
|
-
this.value = this._inputEl.value, this._open || this._openPanel(), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(
|
|
5636
|
+
this.value = this._inputEl.value, this._open || this._openPanel(), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(v2, {
|
|
5637
5637
|
detail: this.value,
|
|
5638
5638
|
bubbles: !0,
|
|
5639
5639
|
composed: !0
|
|
@@ -5666,11 +5666,11 @@ const p2 = "anduin-suggestion:change", p7 = "anduin-suggestion:select", u7 = "an
|
|
|
5666
5666
|
}
|
|
5667
5667
|
_selectSuggestion(e) {
|
|
5668
5668
|
var t;
|
|
5669
|
-
this.value = e.value, this._inputEl && (this._inputEl.value = e.value), this._open = !1, this.dispatchEvent(new CustomEvent(
|
|
5669
|
+
this.value = e.value, this._inputEl && (this._inputEl.value = e.value), this._open = !1, this.dispatchEvent(new CustomEvent(v2, {
|
|
5670
5670
|
detail: this.value,
|
|
5671
5671
|
bubbles: !0,
|
|
5672
5672
|
composed: !0
|
|
5673
|
-
})), this.dispatchEvent(new CustomEvent(
|
|
5673
|
+
})), this.dispatchEvent(new CustomEvent(L7, {
|
|
5674
5674
|
detail: e,
|
|
5675
5675
|
bubbles: !0,
|
|
5676
5676
|
composed: !0
|
|
@@ -5678,7 +5678,7 @@ const p2 = "anduin-suggestion:change", p7 = "anduin-suggestion:select", u7 = "an
|
|
|
5678
5678
|
}
|
|
5679
5679
|
_onClear() {
|
|
5680
5680
|
var e;
|
|
5681
|
-
this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(
|
|
5681
|
+
this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(v2, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(y7, { bubbles: !0, composed: !0 })), (e = this._inputEl) == null || e.focus();
|
|
5682
5682
|
}
|
|
5683
5683
|
_updatePosition() {
|
|
5684
5684
|
var o1;
|
|
@@ -5686,18 +5686,18 @@ const p2 = "anduin-suggestion:change", p7 = "anduin-suggestion:select", u7 = "an
|
|
|
5686
5686
|
if (!e || !t) return;
|
|
5687
5687
|
const i = e.getBoundingClientRect(), o = t.style.transform;
|
|
5688
5688
|
t.style.transform = "none";
|
|
5689
|
-
const
|
|
5689
|
+
const l = t.getBoundingClientRect();
|
|
5690
5690
|
t.style.transform = o;
|
|
5691
5691
|
const n = t.querySelector(".panel__inner");
|
|
5692
5692
|
n && (n.style.minWidth = `${i.width}px`);
|
|
5693
|
-
const s = t.getBoundingClientRect(), d = 4, p = window.innerWidth, h = window.innerHeight, v = 8, H = h - i.bottom - d, f = i.top - d,
|
|
5693
|
+
const s = t.getBoundingClientRect(), d = 4, p = window.innerWidth, h = window.innerHeight, v = 8, H = h - i.bottom - d, f = i.top - d, G = s.height <= H || H >= f ? i.bottom + d : i.top - s.height - d;
|
|
5694
5694
|
let x = i.left;
|
|
5695
5695
|
x = Math.max(v, Math.min(x, p - s.width - v));
|
|
5696
|
-
const
|
|
5697
|
-
t.style.transform = `translate(${Math.round(x -
|
|
5696
|
+
const D = Math.max(v, Math.min(G, h - s.height - v));
|
|
5697
|
+
t.style.transform = `translate(${Math.round(x - l.left)}px, ${Math.round(D - l.top)}px)`;
|
|
5698
5698
|
}
|
|
5699
5699
|
render() {
|
|
5700
|
-
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", i = !!this.startIcon, o = !!this.endIcon || this.clearable && !!this.value,
|
|
5700
|
+
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", i = !!this.startIcon, o = !!this.endIcon || this.clearable && !!this.value, l = this.clearable && !!this.value && !this.disabled && !this.readonly, n = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", s = this.size === "small" ? "10" : this.size === "large" ? "16" : "14", d = this._filteredSuggestions, p = this._open && (!this.hideWhenEmpty || d.length > 0);
|
|
5701
5701
|
return C`
|
|
5702
5702
|
<div class="input-wrapper">
|
|
5703
5703
|
${i ? C`
|
|
@@ -5729,7 +5729,7 @@ const p2 = "anduin-suggestion:change", p7 = "anduin-suggestion:select", u7 = "an
|
|
|
5729
5729
|
|
|
5730
5730
|
${o ? C`
|
|
5731
5731
|
<span class="input__end">
|
|
5732
|
-
${
|
|
5732
|
+
${l ? C`
|
|
5733
5733
|
<button class="input__clear" type="button" @click=${this._onClear} aria-label="Clear">
|
|
5734
5734
|
<anduin-icon name="cross" size=${s}></anduin-icon>
|
|
5735
5735
|
</button>
|
|
@@ -5766,7 +5766,7 @@ const p2 = "anduin-suggestion:change", p7 = "anduin-suggestion:select", u7 = "an
|
|
|
5766
5766
|
`;
|
|
5767
5767
|
}
|
|
5768
5768
|
};
|
|
5769
|
-
|
|
5769
|
+
z5.styles = g`
|
|
5770
5770
|
:host { display: block; font-family: var(--font-sans); position: relative; }
|
|
5771
5771
|
|
|
5772
5772
|
.input-wrapper { position: relative; display: flex; align-items: center; }
|
|
@@ -5879,7 +5879,7 @@ R5.styles = g`
|
|
|
5879
5879
|
text-align: center;
|
|
5880
5880
|
}
|
|
5881
5881
|
`;
|
|
5882
|
-
let V =
|
|
5882
|
+
let V = z5;
|
|
5883
5883
|
y([
|
|
5884
5884
|
a()
|
|
5885
5885
|
], V.prototype, "value");
|
|
@@ -5923,10 +5923,10 @@ y([
|
|
|
5923
5923
|
a({ attribute: "empty-text" })
|
|
5924
5924
|
], V.prototype, "emptyText");
|
|
5925
5925
|
y([
|
|
5926
|
-
|
|
5926
|
+
m()
|
|
5927
5927
|
], V.prototype, "_open");
|
|
5928
5928
|
y([
|
|
5929
|
-
|
|
5929
|
+
m()
|
|
5930
5930
|
], V.prototype, "_activeIndex");
|
|
5931
5931
|
y([
|
|
5932
5932
|
k("input")
|
|
@@ -5935,17 +5935,17 @@ y([
|
|
|
5935
5935
|
k(".panel")
|
|
5936
5936
|
], V.prototype, "_panelEl");
|
|
5937
5937
|
customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", V);
|
|
5938
|
-
var
|
|
5939
|
-
for (var o = void 0,
|
|
5940
|
-
(n = l
|
|
5941
|
-
return o &&
|
|
5938
|
+
var M7 = Object.defineProperty, B = (r, e, t, i) => {
|
|
5939
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
5940
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
5941
|
+
return o && M7(e, t, o), o;
|
|
5942
5942
|
};
|
|
5943
|
-
const
|
|
5943
|
+
const Z7 = "anduin-navigation:change", z2 = "anduin-navigation-item:item-click", A5 = class A5 extends u {
|
|
5944
5944
|
constructor() {
|
|
5945
5945
|
super(...arguments), this.defaultValue = "", this.value = null, this.theme = "light", this.alignment = "left", this.internalValue = "", this.onItemClick = (e) => {
|
|
5946
5946
|
e.stopPropagation();
|
|
5947
5947
|
const i = e.detail;
|
|
5948
|
-
i !== this.selection && (this.dispatchEvent(new CustomEvent(
|
|
5948
|
+
i !== this.selection && (this.dispatchEvent(new CustomEvent(Z7, {
|
|
5949
5949
|
detail: i,
|
|
5950
5950
|
bubbles: !0,
|
|
5951
5951
|
composed: !0
|
|
@@ -5959,10 +5959,10 @@ const g7 = "anduin-navigation:change", R2 = "anduin-navigation-item:item-click",
|
|
|
5959
5959
|
return this.isControlled ? this.value : this.internalValue;
|
|
5960
5960
|
}
|
|
5961
5961
|
connectedCallback() {
|
|
5962
|
-
super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue), this.addEventListener(
|
|
5962
|
+
super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue), this.addEventListener(z2, this.onItemClick);
|
|
5963
5963
|
}
|
|
5964
5964
|
disconnectedCallback() {
|
|
5965
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
5965
|
+
super.disconnectedCallback(), this.removeEventListener(z2, this.onItemClick);
|
|
5966
5966
|
}
|
|
5967
5967
|
updated() {
|
|
5968
5968
|
this.syncItems();
|
|
@@ -5983,7 +5983,7 @@ const g7 = "anduin-navigation:change", R2 = "anduin-navigation-item:item-click",
|
|
|
5983
5983
|
`;
|
|
5984
5984
|
}
|
|
5985
5985
|
};
|
|
5986
|
-
|
|
5986
|
+
A5.styles = g`
|
|
5987
5987
|
:host {
|
|
5988
5988
|
display: block;
|
|
5989
5989
|
font-family: var(--font-sans);
|
|
@@ -6026,7 +6026,7 @@ k5.styles = g`
|
|
|
6026
6026
|
.navigation--center { justify-content: center; }
|
|
6027
6027
|
.navigation--right { justify-content: flex-end; }
|
|
6028
6028
|
`;
|
|
6029
|
-
let J =
|
|
6029
|
+
let J = A5;
|
|
6030
6030
|
B([
|
|
6031
6031
|
a({ attribute: "default-value" })
|
|
6032
6032
|
], J.prototype, "defaultValue");
|
|
@@ -6040,9 +6040,9 @@ B([
|
|
|
6040
6040
|
a()
|
|
6041
6041
|
], J.prototype, "alignment");
|
|
6042
6042
|
B([
|
|
6043
|
-
|
|
6043
|
+
m()
|
|
6044
6044
|
], J.prototype, "internalValue");
|
|
6045
|
-
const
|
|
6045
|
+
const B5 = class B5 extends u {
|
|
6046
6046
|
constructor() {
|
|
6047
6047
|
super(...arguments), this.value = "", this.startIcon = "", this.href = "", this.disabled = !1, this.selected = !1, this.theme = "light";
|
|
6048
6048
|
}
|
|
@@ -6051,7 +6051,7 @@ const $5 = class $5 extends u {
|
|
|
6051
6051
|
e.preventDefault();
|
|
6052
6052
|
return;
|
|
6053
6053
|
}
|
|
6054
|
-
this.dispatchEvent(new CustomEvent(
|
|
6054
|
+
this.dispatchEvent(new CustomEvent(z2, {
|
|
6055
6055
|
detail: this.value,
|
|
6056
6056
|
bubbles: !0,
|
|
6057
6057
|
composed: !0
|
|
@@ -6089,7 +6089,7 @@ const $5 = class $5 extends u {
|
|
|
6089
6089
|
`;
|
|
6090
6090
|
}
|
|
6091
6091
|
};
|
|
6092
|
-
|
|
6092
|
+
B5.styles = g`
|
|
6093
6093
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
6094
6094
|
.nav-item {
|
|
6095
6095
|
box-sizing: border-box;
|
|
@@ -6134,7 +6134,7 @@ $5.styles = g`
|
|
|
6134
6134
|
}
|
|
6135
6135
|
.nav-item__icon { display: flex; }
|
|
6136
6136
|
`;
|
|
6137
|
-
let j =
|
|
6137
|
+
let j = B5;
|
|
6138
6138
|
B([
|
|
6139
6139
|
a()
|
|
6140
6140
|
], j.prototype, "value");
|
|
@@ -6155,98 +6155,343 @@ B([
|
|
|
6155
6155
|
], j.prototype, "theme");
|
|
6156
6156
|
customElements.get("anduin-navigation") || customElements.define("anduin-navigation", J);
|
|
6157
6157
|
customElements.get("anduin-navigation-item") || customElements.define("anduin-navigation-item", j);
|
|
6158
|
+
var _7 = Object.defineProperty, h1 = (r, e, t, i) => {
|
|
6159
|
+
for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
|
|
6160
|
+
(n = r[l]) && (o = n(e, t, o) || o);
|
|
6161
|
+
return o && _7(e, t, o), o;
|
|
6162
|
+
};
|
|
6163
|
+
const x7 = "anduin-resizable:resize", A4 = "anduin-resizable-panel", a4 = (r) => !!r && r.tagName.toLowerCase() === A4;
|
|
6164
|
+
function s4(r, e, t) {
|
|
6165
|
+
const i = (r || "").trim();
|
|
6166
|
+
if (!i) return t;
|
|
6167
|
+
const o = parseFloat(i);
|
|
6168
|
+
return Number.isNaN(o) ? t : i.endsWith("%") ? o / 100 * e : o;
|
|
6169
|
+
}
|
|
6170
|
+
const P5 = class P5 extends u {
|
|
6171
|
+
constructor() {
|
|
6172
|
+
super(...arguments), this.orientation = "horizontal";
|
|
6173
|
+
}
|
|
6174
|
+
connectedCallback() {
|
|
6175
|
+
super.connectedCallback(), this.setAttribute("role", "group");
|
|
6176
|
+
}
|
|
6177
|
+
get isVertical() {
|
|
6178
|
+
return this.orientation === "vertical";
|
|
6179
|
+
}
|
|
6180
|
+
/** Size of the group along its main axis, in px. */
|
|
6181
|
+
get axisSize() {
|
|
6182
|
+
const e = this.getBoundingClientRect();
|
|
6183
|
+
return this.isVertical ? e.height : e.width;
|
|
6184
|
+
}
|
|
6185
|
+
get panels() {
|
|
6186
|
+
return Array.from(this.querySelectorAll(`:scope > ${A4}`));
|
|
6187
|
+
}
|
|
6188
|
+
updated() {
|
|
6189
|
+
for (const e of this.querySelectorAll(":scope > anduin-resizable-handle"))
|
|
6190
|
+
e.setOrientation(this.isVertical);
|
|
6191
|
+
}
|
|
6192
|
+
/**
|
|
6193
|
+
* Convert every panel to the proportional (flex-grow) model based on its
|
|
6194
|
+
* current rendered size, so fixed-pixel panels "fold into" the weighted
|
|
6195
|
+
* model when a resize begins.
|
|
6196
|
+
*/
|
|
6197
|
+
normalizeToGrow() {
|
|
6198
|
+
const e = this.axisSize;
|
|
6199
|
+
if (!(e <= 0))
|
|
6200
|
+
for (const t of this.panels)
|
|
6201
|
+
t.setGrow(t.axisSize(this.isVertical) / e * 100);
|
|
6202
|
+
}
|
|
6203
|
+
render() {
|
|
6204
|
+
return C`
|
|
6205
|
+
<div class="panel-group ${this.isVertical ? "panel-group--vertical" : ""}" part="panel-group">
|
|
6206
|
+
<slot></slot>
|
|
6207
|
+
</div>
|
|
6208
|
+
`;
|
|
6209
|
+
}
|
|
6210
|
+
};
|
|
6211
|
+
P5.styles = g`
|
|
6212
|
+
:host { display: block; width: 100%; height: 100%; font-family: var(--font-sans); }
|
|
6213
|
+
.panel-group {
|
|
6214
|
+
display: flex; flex-direction: row;
|
|
6215
|
+
width: 100%; height: 100%; min-width: 0; min-height: 0;
|
|
6216
|
+
}
|
|
6217
|
+
.panel-group--vertical { flex-direction: column; }
|
|
6218
|
+
`;
|
|
6219
|
+
let r2 = P5;
|
|
6220
|
+
h1([
|
|
6221
|
+
a({ reflect: !0 })
|
|
6222
|
+
], r2.prototype, "orientation");
|
|
6223
|
+
const S5 = class S5 extends u {
|
|
6224
|
+
constructor() {
|
|
6225
|
+
super(...arguments), this.defaultSize = "", this.minSize = "", this.maxSize = "", this.applied = !1;
|
|
6226
|
+
}
|
|
6227
|
+
updated(e) {
|
|
6228
|
+
e.has("defaultSize") && !this.applied && this.applyDefaultSize();
|
|
6229
|
+
}
|
|
6230
|
+
applyDefaultSize() {
|
|
6231
|
+
const e = (this.defaultSize || "").trim();
|
|
6232
|
+
if (!e) return;
|
|
6233
|
+
this.applied = !0;
|
|
6234
|
+
const t = parseFloat(e);
|
|
6235
|
+
Number.isNaN(t) || (e.endsWith("%") ? this.setGrow(t) : this.style.flex = `0 0 ${t}px`);
|
|
6236
|
+
}
|
|
6237
|
+
/** Switch to the proportional model with the given flex-grow weight. */
|
|
6238
|
+
setGrow(e) {
|
|
6239
|
+
this.style.flex = "", this.style.flexGrow = String(e), this.style.flexShrink = "1", this.style.flexBasis = "0";
|
|
6240
|
+
}
|
|
6241
|
+
axisSize(e) {
|
|
6242
|
+
const t = this.getBoundingClientRect();
|
|
6243
|
+
return e ? t.height : t.width;
|
|
6244
|
+
}
|
|
6245
|
+
minPx(e) {
|
|
6246
|
+
return s4(this.minSize, e, 0);
|
|
6247
|
+
}
|
|
6248
|
+
maxPx(e) {
|
|
6249
|
+
return s4(this.maxSize, e, e);
|
|
6250
|
+
}
|
|
6251
|
+
render() {
|
|
6252
|
+
return C`<div class="panel" part="panel"><slot></slot></div>`;
|
|
6253
|
+
}
|
|
6254
|
+
};
|
|
6255
|
+
S5.styles = g`
|
|
6256
|
+
:host { display: block; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; font-family: var(--font-sans); }
|
|
6257
|
+
.panel { width: 100%; height: 100%; overflow: hidden; }
|
|
6258
|
+
`;
|
|
6259
|
+
let b1 = S5;
|
|
6260
|
+
h1([
|
|
6261
|
+
a({ attribute: "default-size" })
|
|
6262
|
+
], b1.prototype, "defaultSize");
|
|
6263
|
+
h1([
|
|
6264
|
+
a({ attribute: "min-size" })
|
|
6265
|
+
], b1.prototype, "minSize");
|
|
6266
|
+
h1([
|
|
6267
|
+
a({ attribute: "max-size" })
|
|
6268
|
+
], b1.prototype, "maxSize");
|
|
6269
|
+
const F5 = class F5 extends u {
|
|
6270
|
+
constructor() {
|
|
6271
|
+
super(...arguments), this.withHandle = !1, this.groupVertical = !1, this.dragging = !1, this.group = null, this.startPos = 0, this.startPrevPx = 0, this.combinedPx = 0, this.combinedGrow = 0, this.activePointerId = null, this.onPointerDown = (e) => {
|
|
6272
|
+
const t = this.closest("anduin-resizable-panel-group"), i = this.prevPanel, o = this.nextPanel;
|
|
6273
|
+
if (!t || !i || !o) return;
|
|
6274
|
+
e.preventDefault(), this.group = t, this.dragging = !0, this.activePointerId = e.pointerId, this.setPointerCapture(e.pointerId), t.normalizeToGrow();
|
|
6275
|
+
const l = t.isVertical;
|
|
6276
|
+
this.startPos = l ? e.clientY : e.clientX, this.startPrevPx = i.axisSize(l), this.combinedPx = this.startPrevPx + o.axisSize(l), this.combinedGrow = (parseFloat(i.style.flexGrow) || 0) + (parseFloat(o.style.flexGrow) || 0), document.body.style.userSelect = "none", document.body.style.cursor = l ? "row-resize" : "col-resize", window.addEventListener("pointermove", this.onPointerMove), window.addEventListener("pointerup", this.onPointerUp);
|
|
6277
|
+
}, this.onPointerMove = (e) => {
|
|
6278
|
+
if (!this.dragging || !this.group) return;
|
|
6279
|
+
const i = (this.group.isVertical ? e.clientY : e.clientX) - this.startPos;
|
|
6280
|
+
this.resizeTo(this.startPrevPx + i);
|
|
6281
|
+
}, this.onPointerUp = () => {
|
|
6282
|
+
this.dragging && (this.endDrag(), this.emitResize());
|
|
6283
|
+
}, this.onKeyDown = (e) => {
|
|
6284
|
+
const t = this.closest("anduin-resizable-panel-group");
|
|
6285
|
+
if (!t) return;
|
|
6286
|
+
const i = t.isVertical;
|
|
6287
|
+
let o = 0;
|
|
6288
|
+
if (!i && e.key === "ArrowRight") o = 1;
|
|
6289
|
+
else if (!i && e.key === "ArrowLeft") o = -1;
|
|
6290
|
+
else if (i && e.key === "ArrowDown") o = 1;
|
|
6291
|
+
else if (i && e.key === "ArrowUp") o = -1;
|
|
6292
|
+
else return;
|
|
6293
|
+
const l = this.prevPanel, n = this.nextPanel;
|
|
6294
|
+
if (!l || !n) return;
|
|
6295
|
+
e.preventDefault(), this.group = t, t.normalizeToGrow();
|
|
6296
|
+
const s = l.axisSize(i);
|
|
6297
|
+
this.combinedPx = s + n.axisSize(i), this.combinedGrow = (parseFloat(l.style.flexGrow) || 0) + (parseFloat(n.style.flexGrow) || 0);
|
|
6298
|
+
const d = Math.max(t.axisSize * 0.02, 8);
|
|
6299
|
+
this.resizeTo(s + o * d), this.emitResize();
|
|
6300
|
+
};
|
|
6301
|
+
}
|
|
6302
|
+
connectedCallback() {
|
|
6303
|
+
super.connectedCallback(), this.setAttribute("role", "separator"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEventListener("pointerdown", this.onPointerDown), this.addEventListener("keydown", this.onKeyDown);
|
|
6304
|
+
const e = this.closest("anduin-resizable-panel-group");
|
|
6305
|
+
e && this.setOrientation(e.isVertical);
|
|
6306
|
+
}
|
|
6307
|
+
disconnectedCallback() {
|
|
6308
|
+
super.disconnectedCallback(), this.removeEventListener("pointerdown", this.onPointerDown), this.removeEventListener("keydown", this.onKeyDown), this.endDrag();
|
|
6309
|
+
}
|
|
6310
|
+
/** Called by the parent group so the divider matches the group's axis. */
|
|
6311
|
+
setOrientation(e) {
|
|
6312
|
+
this.groupVertical = e, this.setAttribute("aria-orientation", e ? "horizontal" : "vertical");
|
|
6313
|
+
}
|
|
6314
|
+
get prevPanel() {
|
|
6315
|
+
return a4(this.previousElementSibling) ? this.previousElementSibling : null;
|
|
6316
|
+
}
|
|
6317
|
+
get nextPanel() {
|
|
6318
|
+
return a4(this.nextElementSibling) ? this.nextElementSibling : null;
|
|
6319
|
+
}
|
|
6320
|
+
endDrag() {
|
|
6321
|
+
if (!(!this.dragging && this.activePointerId === null)) {
|
|
6322
|
+
if (this.dragging = !1, this.activePointerId !== null) {
|
|
6323
|
+
try {
|
|
6324
|
+
this.releasePointerCapture(this.activePointerId);
|
|
6325
|
+
} catch {
|
|
6326
|
+
}
|
|
6327
|
+
this.activePointerId = null;
|
|
6328
|
+
}
|
|
6329
|
+
document.body.style.userSelect = "", document.body.style.cursor = "", window.removeEventListener("pointermove", this.onPointerMove), window.removeEventListener("pointerup", this.onPointerUp);
|
|
6330
|
+
}
|
|
6331
|
+
}
|
|
6332
|
+
/** Set the previous panel to `newPrevPx` (clamped), redistributing the
|
|
6333
|
+
* combined weight between the two adjacent panels. */
|
|
6334
|
+
resizeTo(e) {
|
|
6335
|
+
const t = this.group, i = this.prevPanel, o = this.nextPanel;
|
|
6336
|
+
if (!t || !i || !o || this.combinedPx <= 0) return;
|
|
6337
|
+
const l = t.axisSize, n = Math.max(i.minPx(l), this.combinedPx - o.maxPx(l), 0), s = Math.min(i.maxPx(l), this.combinedPx - o.minPx(l), this.combinedPx), d = Math.max(n, Math.min(s, e)), p = this.combinedGrow * (d / this.combinedPx);
|
|
6338
|
+
i.setGrow(p), o.setGrow(this.combinedGrow - p);
|
|
6339
|
+
}
|
|
6340
|
+
emitResize() {
|
|
6341
|
+
const e = this.group, t = this.prevPanel, i = this.nextPanel;
|
|
6342
|
+
if (!e || !t || !i) return;
|
|
6343
|
+
const o = e.axisSize;
|
|
6344
|
+
if (o <= 0) return;
|
|
6345
|
+
const l = e.isVertical;
|
|
6346
|
+
this.dispatchEvent(new CustomEvent(x7, {
|
|
6347
|
+
detail: { sizes: [t.axisSize(l) / o * 100, i.axisSize(l) / o * 100] },
|
|
6348
|
+
bubbles: !0,
|
|
6349
|
+
composed: !0
|
|
6350
|
+
}));
|
|
6351
|
+
}
|
|
6352
|
+
render() {
|
|
6353
|
+
const e = [
|
|
6354
|
+
"handle",
|
|
6355
|
+
this.groupVertical ? "handle--vertical" : "",
|
|
6356
|
+
this.dragging ? "handle--dragging" : ""
|
|
6357
|
+
].filter(Boolean).join(" ");
|
|
6358
|
+
return C`
|
|
6359
|
+
<div class="${e}" part="handle">
|
|
6360
|
+
${this.withHandle ? C`<div class="handle__grip" part="grip"><anduin-icon name="drag" size="12" aria-label="Drag"></anduin-icon></div>` : c}
|
|
6361
|
+
</div>
|
|
6362
|
+
`;
|
|
6363
|
+
}
|
|
6364
|
+
};
|
|
6365
|
+
F5.styles = g`
|
|
6366
|
+
:host { display: block; flex: 0 0 auto; position: relative; z-index: 1; outline: none; font-family: var(--font-sans); }
|
|
6367
|
+
.handle {
|
|
6368
|
+
position: relative; display: flex; align-items: center; justify-content: center;
|
|
6369
|
+
width: 2px; height: 100%; background-color: var(--color-gray-3); cursor: col-resize;
|
|
6370
|
+
}
|
|
6371
|
+
.handle--vertical { width: 100%; height: 2px; cursor: row-resize; }
|
|
6372
|
+
/* Widen the hit area beyond the 2px visual line. */
|
|
6373
|
+
.handle::after { content: ''; position: absolute; inset: 0 -3px; }
|
|
6374
|
+
.handle--vertical::after { inset: -3px 0; }
|
|
6375
|
+
.handle:hover, .handle--dragging { background-color: var(--color-primary-4); }
|
|
6376
|
+
:host(:focus-visible) .handle { background-color: var(--color-primary-4); }
|
|
6377
|
+
.handle__grip {
|
|
6378
|
+
position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
|
|
6379
|
+
width: 12px; height: 18px; border-radius: 999px;
|
|
6380
|
+
border: 1px solid var(--color-gray-4); background-color: var(--color-gray-1);
|
|
6381
|
+
color: var(--color-gray-6); opacity: 0; transition: opacity 150ms;
|
|
6382
|
+
}
|
|
6383
|
+
.handle:hover .handle__grip, .handle--dragging .handle__grip, :host(:focus-visible) .handle__grip { opacity: 1; }
|
|
6384
|
+
.handle--vertical .handle__grip { transform: rotate(90deg); }
|
|
6385
|
+
`;
|
|
6386
|
+
let L1 = F5;
|
|
6387
|
+
h1([
|
|
6388
|
+
a({ type: Boolean, attribute: "with-handle" })
|
|
6389
|
+
], L1.prototype, "withHandle");
|
|
6390
|
+
h1([
|
|
6391
|
+
m()
|
|
6392
|
+
], L1.prototype, "groupVertical");
|
|
6393
|
+
h1([
|
|
6394
|
+
m()
|
|
6395
|
+
], L1.prototype, "dragging");
|
|
6396
|
+
customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", r2);
|
|
6397
|
+
customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", b1);
|
|
6398
|
+
customElements.get("anduin-resizable-handle") || customElements.define("anduin-resizable-handle", L1);
|
|
6158
6399
|
export {
|
|
6159
|
-
|
|
6400
|
+
l2 as $,
|
|
6160
6401
|
O as A,
|
|
6161
|
-
|
|
6162
|
-
|
|
6402
|
+
x2 as B,
|
|
6403
|
+
S1 as C,
|
|
6163
6404
|
N as D,
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6405
|
+
m1 as E,
|
|
6406
|
+
L1 as F,
|
|
6407
|
+
b1 as G,
|
|
6408
|
+
r2 as H,
|
|
6409
|
+
I,
|
|
6410
|
+
z1 as J,
|
|
6411
|
+
E1 as K,
|
|
6412
|
+
V as L,
|
|
6413
|
+
j1 as M,
|
|
6414
|
+
D1 as N,
|
|
6415
|
+
T as O,
|
|
6416
|
+
f1 as P,
|
|
6417
|
+
O1 as Q,
|
|
6418
|
+
H1 as R,
|
|
6419
|
+
m2 as S,
|
|
6420
|
+
E as T,
|
|
6421
|
+
K as U,
|
|
6422
|
+
N1 as V,
|
|
6423
|
+
P as W,
|
|
6424
|
+
S as X,
|
|
6425
|
+
I1 as Y,
|
|
6426
|
+
M2 as Z,
|
|
6427
|
+
y2 as _,
|
|
6428
|
+
Q1 as a,
|
|
6429
|
+
Z2 as a0,
|
|
6430
|
+
V4 as a1,
|
|
6431
|
+
L3 as a2,
|
|
6432
|
+
f7 as a3,
|
|
6433
|
+
E2 as a4,
|
|
6434
|
+
r4 as a5,
|
|
6435
|
+
M4 as a6,
|
|
6436
|
+
M1 as a7,
|
|
6437
|
+
n7 as a8,
|
|
6438
|
+
J5 as a9,
|
|
6439
|
+
D2 as aA,
|
|
6440
|
+
x4 as aB,
|
|
6441
|
+
w4 as aC,
|
|
6442
|
+
$4 as aD,
|
|
6443
|
+
j3 as aE,
|
|
6444
|
+
m4 as aF,
|
|
6445
|
+
s7 as aG,
|
|
6446
|
+
$7 as aH,
|
|
6447
|
+
M3 as aa,
|
|
6448
|
+
w2 as ab,
|
|
6449
|
+
W3 as ac,
|
|
6450
|
+
_1 as ad,
|
|
6451
|
+
Z7 as ae,
|
|
6452
|
+
z2 as af,
|
|
6453
|
+
_2 as ag,
|
|
6454
|
+
R2 as ah,
|
|
6455
|
+
J3 as ai,
|
|
6456
|
+
x7 as aj,
|
|
6457
|
+
v2 as ak,
|
|
6458
|
+
y7 as al,
|
|
6459
|
+
L7 as am,
|
|
6460
|
+
h7 as an,
|
|
6461
|
+
w3 as ao,
|
|
6462
|
+
Z4 as ap,
|
|
6463
|
+
a2 as aq,
|
|
6464
|
+
k3 as ar,
|
|
6465
|
+
_3 as as,
|
|
6466
|
+
A3 as at,
|
|
6467
|
+
B3 as au,
|
|
6468
|
+
b2 as av,
|
|
6469
|
+
S3 as aw,
|
|
6470
|
+
P3 as ax,
|
|
6471
|
+
R4 as ay,
|
|
6472
|
+
k4 as az,
|
|
6473
|
+
B1 as b,
|
|
6474
|
+
L as c,
|
|
6475
|
+
e2 as d,
|
|
6231
6476
|
X as e,
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6477
|
+
P1 as f,
|
|
6478
|
+
t2 as g,
|
|
6479
|
+
z as h,
|
|
6480
|
+
m7 as i,
|
|
6481
|
+
b as j,
|
|
6482
|
+
i2 as k,
|
|
6483
|
+
f2 as l,
|
|
6484
|
+
H2 as m,
|
|
6485
|
+
V2 as n,
|
|
6486
|
+
F1 as o,
|
|
6487
|
+
T1 as p,
|
|
6488
|
+
A1 as q,
|
|
6244
6489
|
w as r,
|
|
6245
|
-
|
|
6490
|
+
o2 as s,
|
|
6246
6491
|
s1 as t,
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6492
|
+
V1 as u,
|
|
6493
|
+
Y3 as v,
|
|
6494
|
+
X3 as w,
|
|
6250
6495
|
J as x,
|
|
6251
6496
|
j as y,
|
|
6252
6497
|
F as z
|