@duyluonganduin/acl-web-components 0.0.3 → 0.0.4
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/README.md +71 -33
- package/dist/acl-web-components.cjs +328 -90
- package/dist/acl-web-components.d.ts +36 -0
- package/dist/acl-web-components.js +1060 -711
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const
|
|
1
|
+
const p2 = ':root{--color-gray-0: oklch(1 0 0);--color-gray-1: oklch(.9846 .0017 247.84);--color-gray-2: oklch(.9515 .0046 258.32);--color-gray-3: oklch(.9336 .0058 264.53);--color-gray-4: oklch(.8618 .0141 258.35);--color-gray-5: oklch(.7073 .0268 263.28);--color-gray-6: oklch(.6528 .0316 266.24);--color-gray-7: oklch(.5371 .0337 264.24);--color-gray-8: oklch(.3544 .0326 260.94);--color-gray-9: oklch(.2776 .0341 255.81);--color-danger-1: oklch(.9437 .0174 17.47);--color-danger-2: oklch(.8643 .0573 18.32);--color-danger-3: oklch(.712 .1517 21.64);--color-danger-4: oklch(.5948 .2165 26.91);--color-danger-5: oklch(.531 .2147 28.91);--color-primary-1: oklch(.9474 .0256 221.57);--color-primary-2: oklch(.8652 .066 236.86);--color-primary-3: oklch(.7219 .1335 240.15);--color-primary-4: oklch(.5679 .1784 254.76);--color-primary-5: oklch(.4682 .1548 255.23);--color-success-1: oklch(.9276 .0541 150.91);--color-success-2: oklch(.8592 .1078 149.75);--color-success-3: oklch(.6953 .1711 149.14);--color-success-4: oklch(.6149 .1634 148.21);--color-success-5: oklch(.5075 .136 146.46);--color-warning-1: oklch(.9549 .0496 88.08);--color-warning-2: oklch(.912 .0811 83.56);--color-warning-3: oklch(.8282 .1628 78.73);--color-warning-4: oklch(.7325 .1512 75.97);--color-warning-5: oklch(.5329 .1098 82);--color-semantic-gray-0: oklch(1 0 0);--color-semantic-gray-1: oklch(.9846 .0017 247.84);--color-semantic-gray-2: oklch(.9515 .0046 258.32);--color-semantic-gray-3: oklch(.9336 .0058 264.53);--color-semantic-gray-4: oklch(.8618 .0141 258.35);--color-semantic-gray-5: oklch(.7073 .0268 263.28);--color-semantic-gray-6: oklch(.6528 .0316 266.24);--color-semantic-gray-7: oklch(.5371 .0337 264.24);--color-semantic-gray-8: oklch(.3544 .0326 260.94);--color-semantic-gray-9: oklch(.2776 .0341 255.81);--color-semantic-danger-1: oklch(.9437 .0174 17.47);--color-semantic-danger-2: oklch(.8643 .0573 18.32);--color-semantic-danger-3: oklch(.712 .1517 21.64);--color-semantic-danger-4: oklch(.5948 .2165 26.91);--color-semantic-danger-5: oklch(.531 .2147 28.91);--color-semantic-primary-1: oklch(.9474 .0256 221.57);--color-semantic-primary-2: oklch(.8652 .066 236.86);--color-semantic-primary-3: oklch(.7219 .1335 240.15);--color-semantic-primary-4: oklch(.5679 .1784 254.76);--color-semantic-primary-5: oklch(.4682 .1548 255.23);--color-semantic-success-1: oklch(.9276 .0541 150.91);--color-semantic-success-2: oklch(.8592 .1078 149.75);--color-semantic-success-3: oklch(.6953 .1711 149.14);--color-semantic-success-4: oklch(.6149 .1634 148.21);--color-semantic-success-5: oklch(.5075 .136 146.46);--color-semantic-warning-1: oklch(.9549 .0496 88.08);--color-semantic-warning-2: oklch(.912 .0811 83.56);--color-semantic-warning-3: oklch(.8282 .1628 78.73);--color-semantic-warning-4: oklch(.7325 .1512 75.97);--color-semantic-warning-5: oklch(.5329 .1098 82);--color-white: var(--color-gray-0);--font-sans: system-ui, -apple-system, Roboto, Oxygen, Cantarell, Ubuntu, "Segoe UI", sans-serif;--font-mono: monospace;--text-9: 9px;--text-10: 10px;--text-11: 11px;--text-13: 13px;--text-15: 15px;--text-17: 17px;--text-20: 20px;--text-23: 23px;--text-26: 26px;--text-30: 30px;--text-35: 35px;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--leading-16: 16px;--leading-20: 20px;--leading-24: 24px;--leading-28: 28px;--leading-32: 32px;--leading-40: 40px;--leading-44: 44px;--leading-r1p5: 1.5;--radius-0: 0;--radius-2: 2px;--radius-3: 3px;--radius-4: 4px;--radius-6: 6px;--radius-8: 8px;--radius-12: 12px;--radius-16: 16px;--radius-20: 20px;--radius-24: 24px;--radius-full: 9999px;--shadow-1: 0px 1px 2px rgba(29, 41, 57, .07);--shadow-2: 0px 1px 2px rgba(29, 41, 57, .04), 0px 2px 8px rgba(29, 41, 57, .08);--shadow-3: 0px 2px 8px rgba(29, 41, 57, .08), 0px 8px 24px rgba(29, 41, 57, .12);--shadow-4: 0px 4px 8px rgba(29, 41, 57, .08), 0px 16px 48px rgba(29, 41, 57, .16);--spacing-px: 1px;--spacing-0: 0;--spacing-2: 2px;--spacing-4: 4px;--spacing-6: 6px;--spacing-8: 8px;--spacing-12: 12px;--spacing-16: 16px;--spacing-20: 20px;--spacing-24: 24px;--spacing-28: 28px;--spacing-32: 32px;--spacing-40: 40px;--spacing-48: 48px;--spacing-56: 56px;--spacing-64: 64px;--spacing-128: 128px;--spacing-256: 256px;--z-0: 0;--z-1: 1;--z-2: 2;--z-3: 3;--z-4: 4;--z-5: 5;--z-999: 999;--z-9999: 9999}body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-13)}';
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
8
|
-
let
|
|
9
|
-
constructor(e, t,
|
|
10
|
-
if (this._$cssResult$ = !0,
|
|
7
|
+
const s1 = globalThis, S1 = s1.ShadowRoot && (s1.ShadyCSS === void 0 || s1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, O1 = Symbol(), y5 = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
let T5 = class {
|
|
9
|
+
constructor(e, t, l) {
|
|
10
|
+
if (this._$cssResult$ = !0, l !== O1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
11
11
|
this.cssText = e, this.t = t;
|
|
12
12
|
}
|
|
13
13
|
get styleSheet() {
|
|
14
14
|
let e = this.o;
|
|
15
15
|
const t = this.t;
|
|
16
|
-
if (
|
|
17
|
-
const
|
|
18
|
-
|
|
16
|
+
if (S1 && e === void 0) {
|
|
17
|
+
const l = t !== void 0 && t.length === 1;
|
|
18
|
+
l && (e = y5.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), l && y5.set(t, e));
|
|
19
19
|
}
|
|
20
20
|
return e;
|
|
21
21
|
}
|
|
@@ -23,105 +23,105 @@ let A5 = class {
|
|
|
23
23
|
return this.cssText;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
const
|
|
27
|
-
const t =
|
|
26
|
+
const h2 = (C) => new T5(typeof C == "string" ? C : C + "", void 0, O1), h = (C, ...e) => {
|
|
27
|
+
const t = C.length === 1 ? C[0] : e.reduce((l, o, i) => l + ((n) => {
|
|
28
28
|
if (n._$cssResult$ === !0) return n.cssText;
|
|
29
29
|
if (typeof n == "number") return n;
|
|
30
30
|
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.");
|
|
31
|
-
})(o) +
|
|
32
|
-
return new
|
|
33
|
-
},
|
|
34
|
-
if (
|
|
31
|
+
})(o) + C[i + 1], C[0]);
|
|
32
|
+
return new T5(t, C, O1);
|
|
33
|
+
}, v2 = (C, e) => {
|
|
34
|
+
if (S1) C.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
35
35
|
else for (const t of e) {
|
|
36
|
-
const
|
|
37
|
-
o !== void 0 &&
|
|
36
|
+
const l = document.createElement("style"), o = s1.litNonce;
|
|
37
|
+
o !== void 0 && l.setAttribute("nonce", o), l.textContent = t.cssText, C.appendChild(l);
|
|
38
38
|
}
|
|
39
|
-
},
|
|
39
|
+
}, R5 = S1 ? (C) => C : (C) => C instanceof CSSStyleSheet ? ((e) => {
|
|
40
40
|
let t = "";
|
|
41
|
-
for (const
|
|
42
|
-
return
|
|
43
|
-
})(
|
|
41
|
+
for (const l of e.cssRules) t += l.cssText;
|
|
42
|
+
return h2(t);
|
|
43
|
+
})(C) : C;
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2017 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
const { is:
|
|
49
|
+
const { is: L2, defineProperty: g2, getOwnPropertyDescriptor: f2, getOwnPropertyNames: H2, getOwnPropertySymbols: b2, getPrototypeOf: m2 } = Object, x = globalThis, _5 = x.trustedTypes, V2 = _5 ? _5.emptyScript : "", V1 = x.reactiveElementPolyfillSupport, j = (C, e) => C, d1 = { toAttribute(C, e) {
|
|
50
50
|
switch (e) {
|
|
51
51
|
case Boolean:
|
|
52
|
-
|
|
52
|
+
C = C ? V2 : null;
|
|
53
53
|
break;
|
|
54
54
|
case Object:
|
|
55
55
|
case Array:
|
|
56
|
-
|
|
56
|
+
C = C == null ? C : JSON.stringify(C);
|
|
57
57
|
}
|
|
58
|
-
return
|
|
59
|
-
}, fromAttribute(
|
|
60
|
-
let t =
|
|
58
|
+
return C;
|
|
59
|
+
}, fromAttribute(C, e) {
|
|
60
|
+
let t = C;
|
|
61
61
|
switch (e) {
|
|
62
62
|
case Boolean:
|
|
63
|
-
t =
|
|
63
|
+
t = C !== null;
|
|
64
64
|
break;
|
|
65
65
|
case Number:
|
|
66
|
-
t =
|
|
66
|
+
t = C === null ? null : Number(C);
|
|
67
67
|
break;
|
|
68
68
|
case Object:
|
|
69
69
|
case Array:
|
|
70
70
|
try {
|
|
71
|
-
t = JSON.parse(
|
|
71
|
+
t = JSON.parse(C);
|
|
72
72
|
} catch {
|
|
73
73
|
t = null;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
return t;
|
|
77
|
-
} },
|
|
77
|
+
} }, B1 = (C, e) => !L2(C, e), x5 = { attribute: !0, type: String, converter: d1, reflect: !1, useDefault: !1, hasChanged: B1 };
|
|
78
78
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), x.litPropertyMetadata ?? (x.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
79
|
-
let
|
|
79
|
+
let S = class extends HTMLElement {
|
|
80
80
|
static addInitializer(e) {
|
|
81
81
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
82
82
|
}
|
|
83
83
|
static get observedAttributes() {
|
|
84
84
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
85
85
|
}
|
|
86
|
-
static createProperty(e, t =
|
|
86
|
+
static createProperty(e, t = x5) {
|
|
87
87
|
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) {
|
|
88
|
-
const
|
|
89
|
-
o !== void 0 &&
|
|
88
|
+
const l = Symbol(), o = this.getPropertyDescriptor(e, l, t);
|
|
89
|
+
o !== void 0 && g2(this.prototype, e, o);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
static getPropertyDescriptor(e, t,
|
|
93
|
-
const { get: o, set: i } =
|
|
92
|
+
static getPropertyDescriptor(e, t, l) {
|
|
93
|
+
const { get: o, set: i } = f2(this.prototype, e) ?? { get() {
|
|
94
94
|
return this[t];
|
|
95
95
|
}, set(n) {
|
|
96
96
|
this[t] = n;
|
|
97
97
|
} };
|
|
98
98
|
return { get: o, set(n) {
|
|
99
99
|
const a = o == null ? void 0 : o.call(this);
|
|
100
|
-
i == null || i.call(this, n), this.requestUpdate(e, a,
|
|
100
|
+
i == null || i.call(this, n), this.requestUpdate(e, a, l);
|
|
101
101
|
}, configurable: !0, enumerable: !0 };
|
|
102
102
|
}
|
|
103
103
|
static getPropertyOptions(e) {
|
|
104
|
-
return this.elementProperties.get(e) ??
|
|
104
|
+
return this.elementProperties.get(e) ?? x5;
|
|
105
105
|
}
|
|
106
106
|
static _$Ei() {
|
|
107
|
-
if (this.hasOwnProperty(
|
|
108
|
-
const e =
|
|
107
|
+
if (this.hasOwnProperty(j("elementProperties"))) return;
|
|
108
|
+
const e = m2(this);
|
|
109
109
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
110
110
|
}
|
|
111
111
|
static finalize() {
|
|
112
|
-
if (this.hasOwnProperty(
|
|
113
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
114
|
-
const t = this.properties,
|
|
115
|
-
for (const o of
|
|
112
|
+
if (this.hasOwnProperty(j("finalized"))) return;
|
|
113
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(j("properties"))) {
|
|
114
|
+
const t = this.properties, l = [...H2(t), ...b2(t)];
|
|
115
|
+
for (const o of l) this.createProperty(o, t[o]);
|
|
116
116
|
}
|
|
117
117
|
const e = this[Symbol.metadata];
|
|
118
118
|
if (e !== null) {
|
|
119
119
|
const t = litPropertyMetadata.get(e);
|
|
120
|
-
if (t !== void 0) for (const [
|
|
120
|
+
if (t !== void 0) for (const [l, o] of t) this.elementProperties.set(l, o);
|
|
121
121
|
}
|
|
122
122
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
123
|
-
for (const [t,
|
|
124
|
-
const o = this._$Eu(t,
|
|
123
|
+
for (const [t, l] of this.elementProperties) {
|
|
124
|
+
const o = this._$Eu(t, l);
|
|
125
125
|
o !== void 0 && this._$Eh.set(o, t);
|
|
126
126
|
}
|
|
127
127
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
@@ -129,14 +129,14 @@ let z = class extends HTMLElement {
|
|
|
129
129
|
static finalizeStyles(e) {
|
|
130
130
|
const t = [];
|
|
131
131
|
if (Array.isArray(e)) {
|
|
132
|
-
const
|
|
133
|
-
for (const o of
|
|
134
|
-
} else e !== void 0 && t.push(
|
|
132
|
+
const l = new Set(e.flat(1 / 0).reverse());
|
|
133
|
+
for (const o of l) t.unshift(R5(o));
|
|
134
|
+
} else e !== void 0 && t.push(R5(e));
|
|
135
135
|
return t;
|
|
136
136
|
}
|
|
137
137
|
static _$Eu(e, t) {
|
|
138
|
-
const
|
|
139
|
-
return
|
|
138
|
+
const l = t.attribute;
|
|
139
|
+
return l === !1 ? void 0 : typeof l == "string" ? l : typeof e == "string" ? e.toLowerCase() : void 0;
|
|
140
140
|
}
|
|
141
141
|
constructor() {
|
|
142
142
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
@@ -155,18 +155,18 @@ let z = class extends HTMLElement {
|
|
|
155
155
|
}
|
|
156
156
|
_$E_() {
|
|
157
157
|
const e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
|
|
158
|
-
for (const
|
|
158
|
+
for (const l of t.keys()) this.hasOwnProperty(l) && (e.set(l, this[l]), delete this[l]);
|
|
159
159
|
e.size > 0 && (this._$Ep = e);
|
|
160
160
|
}
|
|
161
161
|
createRenderRoot() {
|
|
162
162
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
163
|
-
return
|
|
163
|
+
return v2(e, this.constructor.elementStyles), e;
|
|
164
164
|
}
|
|
165
165
|
connectedCallback() {
|
|
166
166
|
var e;
|
|
167
167
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((t) => {
|
|
168
|
-
var
|
|
169
|
-
return (
|
|
168
|
+
var l;
|
|
169
|
+
return (l = t.hostConnected) == null ? void 0 : l.call(t);
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
enableUpdating(e) {
|
|
@@ -174,42 +174,42 @@ let z = class extends HTMLElement {
|
|
|
174
174
|
disconnectedCallback() {
|
|
175
175
|
var e;
|
|
176
176
|
(e = this._$EO) == null || e.forEach((t) => {
|
|
177
|
-
var
|
|
178
|
-
return (
|
|
177
|
+
var l;
|
|
178
|
+
return (l = t.hostDisconnected) == null ? void 0 : l.call(t);
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
attributeChangedCallback(e, t,
|
|
182
|
-
this._$AK(e,
|
|
181
|
+
attributeChangedCallback(e, t, l) {
|
|
182
|
+
this._$AK(e, l);
|
|
183
183
|
}
|
|
184
184
|
_$ET(e, t) {
|
|
185
185
|
var i;
|
|
186
|
-
const
|
|
187
|
-
if (o !== void 0 &&
|
|
188
|
-
const n = (((i =
|
|
186
|
+
const l = this.constructor.elementProperties.get(e), o = this.constructor._$Eu(e, l);
|
|
187
|
+
if (o !== void 0 && l.reflect === !0) {
|
|
188
|
+
const n = (((i = l.converter) == null ? void 0 : i.toAttribute) !== void 0 ? l.converter : d1).toAttribute(t, l.type);
|
|
189
189
|
this._$Em = e, n == null ? this.removeAttribute(o) : this.setAttribute(o, n), this._$Em = null;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
_$AK(e, t) {
|
|
193
193
|
var i, n;
|
|
194
|
-
const
|
|
194
|
+
const l = this.constructor, o = l._$Eh.get(e);
|
|
195
195
|
if (o !== void 0 && this._$Em !== o) {
|
|
196
|
-
const a =
|
|
196
|
+
const a = l.getPropertyOptions(o), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((i = a.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? a.converter : d1;
|
|
197
197
|
this._$Em = o;
|
|
198
|
-
const
|
|
199
|
-
this[o] =
|
|
198
|
+
const u = s.fromAttribute(t, a.type);
|
|
199
|
+
this[o] = u ?? ((n = this._$Ej) == null ? void 0 : n.get(o)) ?? u, this._$Em = null;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
requestUpdate(e, t,
|
|
202
|
+
requestUpdate(e, t, l, o = !1, i) {
|
|
203
203
|
var n;
|
|
204
204
|
if (e !== void 0) {
|
|
205
205
|
const a = this.constructor;
|
|
206
|
-
if (o === !1 && (i = this[e]),
|
|
207
|
-
this.C(e, t,
|
|
206
|
+
if (o === !1 && (i = this[e]), l ?? (l = a.getPropertyOptions(e)), !((l.hasChanged ?? B1)(i, t) || l.useDefault && l.reflect && i === ((n = this._$Ej) == null ? void 0 : n.get(e)) && !this.hasAttribute(a._$Eu(e, l)))) return;
|
|
207
|
+
this.C(e, t, l);
|
|
208
208
|
}
|
|
209
209
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
210
210
|
}
|
|
211
|
-
C(e, t, { useDefault:
|
|
212
|
-
|
|
211
|
+
C(e, t, { useDefault: l, reflect: o, wrapped: i }, n) {
|
|
212
|
+
l && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, n ?? t ?? this[e]), i !== !0 || n !== void 0) || (this._$AL.has(e) || (this.hasUpdated || l || (t = void 0), this._$AL.set(e, t)), o === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
|
|
213
213
|
}
|
|
214
214
|
async _$EP() {
|
|
215
215
|
this.isUpdatePending = !0;
|
|
@@ -225,7 +225,7 @@ let z = class extends HTMLElement {
|
|
|
225
225
|
return this.performUpdate();
|
|
226
226
|
}
|
|
227
227
|
performUpdate() {
|
|
228
|
-
var
|
|
228
|
+
var l;
|
|
229
229
|
if (!this.isUpdatePending) return;
|
|
230
230
|
if (!this.hasUpdated) {
|
|
231
231
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
@@ -241,7 +241,7 @@ let z = class extends HTMLElement {
|
|
|
241
241
|
let e = !1;
|
|
242
242
|
const t = this._$AL;
|
|
243
243
|
try {
|
|
244
|
-
e = this.shouldUpdate(t), e ? (this.willUpdate(t), (
|
|
244
|
+
e = this.shouldUpdate(t), e ? (this.willUpdate(t), (l = this._$EO) == null || l.forEach((o) => {
|
|
245
245
|
var i;
|
|
246
246
|
return (i = o.hostUpdate) == null ? void 0 : i.call(o);
|
|
247
247
|
}), this.update(t)) : this._$EM();
|
|
@@ -254,9 +254,9 @@ let z = class extends HTMLElement {
|
|
|
254
254
|
}
|
|
255
255
|
_$AE(e) {
|
|
256
256
|
var t;
|
|
257
|
-
(t = this._$EO) == null || t.forEach((
|
|
257
|
+
(t = this._$EO) == null || t.forEach((l) => {
|
|
258
258
|
var o;
|
|
259
|
-
return (o =
|
|
259
|
+
return (o = l.hostUpdated) == null ? void 0 : o.call(l);
|
|
260
260
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
|
261
261
|
}
|
|
262
262
|
_$EM() {
|
|
@@ -279,76 +279,76 @@ let z = class extends HTMLElement {
|
|
|
279
279
|
firstUpdated(e) {
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
|
-
|
|
282
|
+
S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[j("elementProperties")] = /* @__PURE__ */ new Map(), S[j("finalized")] = /* @__PURE__ */ new Map(), V1 == null || V1({ ReactiveElement: S }), (x.reactiveElementVersions ?? (x.reactiveElementVersions = [])).push("2.1.2");
|
|
283
283
|
/**
|
|
284
284
|
* @license
|
|
285
285
|
* Copyright 2017 Google LLC
|
|
286
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
287
|
*/
|
|
288
|
-
const
|
|
289
|
-
\f\r]`,
|
|
290
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
291
|
-
function
|
|
292
|
-
if (!
|
|
293
|
-
return
|
|
288
|
+
const D = globalThis, k5 = (C) => C, c1 = D.trustedTypes, w5 = c1 ? c1.createPolicy("lit-html", { createHTML: (C) => C }) : void 0, U5 = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, j5 = "?" + _, M2 = `<${j5}>`, z = document, q = () => z.createComment(""), G = (C) => C === null || typeof C != "object" && typeof C != "function", I1 = Array.isArray, Z2 = (C) => I1(C) || typeof (C == null ? void 0 : C[Symbol.iterator]) == "function", M1 = `[
|
|
289
|
+
\f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $5 = /-->/g, E5 = />/g, E = RegExp(`>|${M1}(?:([^\\s"'>=/]+)(${M1}*=${M1}*(?:[^
|
|
290
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), P5 = /'/g, A5 = /"/g, D5 = /^(?:script|style|textarea|title)$/i, q5 = (C) => (e, ...t) => ({ _$litType$: C, strings: e, values: t }), d = q5(1), R1 = q5(2), O = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), z5 = /* @__PURE__ */ new WeakMap(), P = z.createTreeWalker(z, 129);
|
|
291
|
+
function G5(C, e) {
|
|
292
|
+
if (!I1(C) || !C.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
293
|
+
return w5 !== void 0 ? w5.createHTML(e) : e;
|
|
294
294
|
}
|
|
295
|
-
const
|
|
296
|
-
const t =
|
|
297
|
-
let o, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n =
|
|
295
|
+
const y2 = (C, e) => {
|
|
296
|
+
const t = C.length - 1, l = [];
|
|
297
|
+
let o, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = U;
|
|
298
298
|
for (let a = 0; a < t; a++) {
|
|
299
|
-
const s =
|
|
300
|
-
let
|
|
301
|
-
for (; b < s.length && (n.lastIndex = b,
|
|
302
|
-
const g = n ===
|
|
303
|
-
i += n ===
|
|
299
|
+
const s = C[a];
|
|
300
|
+
let u, L, v = -1, b = 0;
|
|
301
|
+
for (; b < s.length && (n.lastIndex = b, L = n.exec(s), L !== null); ) b = n.lastIndex, n === U ? L[1] === "!--" ? n = $5 : L[1] !== void 0 ? n = E5 : L[2] !== void 0 ? (D5.test(L[2]) && (o = RegExp("</" + L[2], "g")), n = E) : L[3] !== void 0 && (n = E) : n === E ? L[0] === ">" ? (n = o ?? U, v = -1) : L[1] === void 0 ? v = -2 : (v = n.lastIndex - L[2].length, u = L[1], n = L[3] === void 0 ? E : L[3] === '"' ? A5 : P5) : n === A5 || n === P5 ? n = E : n === $5 || n === E5 ? n = U : (n = E, o = void 0);
|
|
302
|
+
const g = n === E && C[a + 1].startsWith("/>") ? " " : "";
|
|
303
|
+
i += n === U ? s + M2 : v >= 0 ? (l.push(u), s.slice(0, v) + U5 + s.slice(v) + _ + g) : s + _ + (v === -2 ? a : g);
|
|
304
304
|
}
|
|
305
|
-
return [
|
|
305
|
+
return [G5(C, i + (C[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), l];
|
|
306
306
|
};
|
|
307
|
-
class
|
|
308
|
-
constructor({ strings: e, _$litType$: t },
|
|
307
|
+
class Y {
|
|
308
|
+
constructor({ strings: e, _$litType$: t }, l) {
|
|
309
309
|
let o;
|
|
310
310
|
this.parts = [];
|
|
311
311
|
let i = 0, n = 0;
|
|
312
|
-
const a = e.length - 1, s = this.parts, [
|
|
313
|
-
if (this.el =
|
|
314
|
-
const
|
|
315
|
-
|
|
312
|
+
const a = e.length - 1, s = this.parts, [u, L] = y2(e, t);
|
|
313
|
+
if (this.el = Y.createElement(u, l), P.currentNode = this.el.content, t === 2 || t === 3) {
|
|
314
|
+
const v = this.el.content.firstChild;
|
|
315
|
+
v.replaceWith(...v.childNodes);
|
|
316
316
|
}
|
|
317
|
-
for (; (o =
|
|
317
|
+
for (; (o = P.nextNode()) !== null && s.length < a; ) {
|
|
318
318
|
if (o.nodeType === 1) {
|
|
319
|
-
if (o.hasAttributes()) for (const
|
|
320
|
-
const b =
|
|
321
|
-
s.push({ type: 1, index: i, name: V[2], strings: g, ctor: V[1] === "." ?
|
|
322
|
-
} else
|
|
323
|
-
if (
|
|
324
|
-
const
|
|
319
|
+
if (o.hasAttributes()) for (const v of o.getAttributeNames()) if (v.endsWith(U5)) {
|
|
320
|
+
const b = L[n++], g = o.getAttribute(v).split(_), V = /([.?@])?(.*)/.exec(b);
|
|
321
|
+
s.push({ type: 1, index: i, name: V[2], strings: g, ctor: V[1] === "." ? _2 : V[1] === "?" ? x2 : V[1] === "@" ? k2 : f1 }), o.removeAttribute(v);
|
|
322
|
+
} else v.startsWith(_) && (s.push({ type: 6, index: i }), o.removeAttribute(v));
|
|
323
|
+
if (D5.test(o.tagName)) {
|
|
324
|
+
const v = o.textContent.split(_), b = v.length - 1;
|
|
325
325
|
if (b > 0) {
|
|
326
|
-
o.textContent =
|
|
327
|
-
for (let g = 0; g < b; g++) o.append(
|
|
328
|
-
o.append(
|
|
326
|
+
o.textContent = c1 ? c1.emptyScript : "";
|
|
327
|
+
for (let g = 0; g < b; g++) o.append(v[g], q()), P.nextNode(), s.push({ type: 2, index: ++i });
|
|
328
|
+
o.append(v[b], q());
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
} else if (o.nodeType === 8) if (o.data ===
|
|
331
|
+
} else if (o.nodeType === 8) if (o.data === j5) s.push({ type: 2, index: i });
|
|
332
332
|
else {
|
|
333
|
-
let
|
|
334
|
-
for (; (
|
|
333
|
+
let v = -1;
|
|
334
|
+
for (; (v = o.data.indexOf(_, v + 1)) !== -1; ) s.push({ type: 7, index: i }), v += _.length - 1;
|
|
335
335
|
}
|
|
336
336
|
i++;
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
static createElement(e, t) {
|
|
340
|
-
const
|
|
341
|
-
return
|
|
340
|
+
const l = z.createElement("template");
|
|
341
|
+
return l.innerHTML = e, l;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
function B(
|
|
344
|
+
function B(C, e, t = C, l) {
|
|
345
345
|
var n, a;
|
|
346
346
|
if (e === O) return e;
|
|
347
|
-
let o =
|
|
348
|
-
const i =
|
|
349
|
-
return (o == null ? void 0 : o.constructor) !== i && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), i === void 0 ? o = void 0 : (o = new i(
|
|
347
|
+
let o = l !== void 0 ? (n = t._$Co) == null ? void 0 : n[l] : t._$Cl;
|
|
348
|
+
const i = G(e) ? void 0 : e._$litDirective$;
|
|
349
|
+
return (o == null ? void 0 : o.constructor) !== i && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), i === void 0 ? o = void 0 : (o = new i(C), o._$AT(C, t, l)), l !== void 0 ? (t._$Co ?? (t._$Co = []))[l] = o : t._$Cl = o), o !== void 0 && (e = B(C, o._$AS(C, e.values), o, l)), e;
|
|
350
350
|
}
|
|
351
|
-
class
|
|
351
|
+
class R2 {
|
|
352
352
|
constructor(e, t) {
|
|
353
353
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
354
354
|
}
|
|
@@ -359,30 +359,30 @@ class g2 {
|
|
|
359
359
|
return this._$AM._$AU;
|
|
360
360
|
}
|
|
361
361
|
u(e) {
|
|
362
|
-
const { el: { content: t }, parts:
|
|
363
|
-
|
|
364
|
-
let i =
|
|
362
|
+
const { el: { content: t }, parts: l } = this._$AD, o = ((e == null ? void 0 : e.creationScope) ?? z).importNode(t, !0);
|
|
363
|
+
P.currentNode = o;
|
|
364
|
+
let i = P.nextNode(), n = 0, a = 0, s = l[0];
|
|
365
365
|
for (; s !== void 0; ) {
|
|
366
366
|
if (n === s.index) {
|
|
367
|
-
let
|
|
368
|
-
s.type === 2 ?
|
|
367
|
+
let u;
|
|
368
|
+
s.type === 2 ? u = new n1(i, i.nextSibling, this, e) : s.type === 1 ? u = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (u = new w2(i, this, e)), this._$AV.push(u), s = l[++a];
|
|
369
369
|
}
|
|
370
|
-
n !== (s == null ? void 0 : s.index) && (i =
|
|
370
|
+
n !== (s == null ? void 0 : s.index) && (i = P.nextNode(), n++);
|
|
371
371
|
}
|
|
372
|
-
return
|
|
372
|
+
return P.currentNode = z, o;
|
|
373
373
|
}
|
|
374
374
|
p(e) {
|
|
375
375
|
let t = 0;
|
|
376
|
-
for (const
|
|
376
|
+
for (const l of this._$AV) l !== void 0 && (l.strings !== void 0 ? (l._$AI(e, l, t), t += l.strings.length - 2) : l._$AI(e[t])), t++;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
class
|
|
379
|
+
class n1 {
|
|
380
380
|
get _$AU() {
|
|
381
381
|
var e;
|
|
382
382
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
383
383
|
}
|
|
384
|
-
constructor(e, t,
|
|
385
|
-
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM =
|
|
384
|
+
constructor(e, t, l, o) {
|
|
385
|
+
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = l, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
|
|
386
386
|
}
|
|
387
387
|
get parentNode() {
|
|
388
388
|
let e = this._$AA.parentNode;
|
|
@@ -396,7 +396,7 @@ class C1 {
|
|
|
396
396
|
return this._$AB;
|
|
397
397
|
}
|
|
398
398
|
_$AI(e, t = this) {
|
|
399
|
-
e = B(this, e, t),
|
|
399
|
+
e = B(this, e, t), G(e) ? e === p || e == null || e === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : e !== this._$AH && e !== O && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Z2(e) ? this.k(e) : this._(e);
|
|
400
400
|
}
|
|
401
401
|
O(e) {
|
|
402
402
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -405,33 +405,33 @@ class C1 {
|
|
|
405
405
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
406
406
|
}
|
|
407
407
|
_(e) {
|
|
408
|
-
this._$AH !== p &&
|
|
408
|
+
this._$AH !== p && G(this._$AH) ? this._$AA.nextSibling.data = e : this.T(z.createTextNode(e)), this._$AH = e;
|
|
409
409
|
}
|
|
410
410
|
$(e) {
|
|
411
411
|
var i;
|
|
412
|
-
const { values: t, _$litType$:
|
|
412
|
+
const { values: t, _$litType$: l } = e, o = typeof l == "number" ? this._$AC(e) : (l.el === void 0 && (l.el = Y.createElement(G5(l.h, l.h[0]), this.options)), l);
|
|
413
413
|
if (((i = this._$AH) == null ? void 0 : i._$AD) === o) this._$AH.p(t);
|
|
414
414
|
else {
|
|
415
|
-
const n = new
|
|
415
|
+
const n = new R2(o, this), a = n.u(this.options);
|
|
416
416
|
n.p(t), this.T(a), this._$AH = n;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
_$AC(e) {
|
|
420
|
-
let t =
|
|
421
|
-
return t === void 0 &&
|
|
420
|
+
let t = z5.get(e.strings);
|
|
421
|
+
return t === void 0 && z5.set(e.strings, t = new Y(e)), t;
|
|
422
422
|
}
|
|
423
423
|
k(e) {
|
|
424
|
-
|
|
424
|
+
I1(this._$AH) || (this._$AH = [], this._$AR());
|
|
425
425
|
const t = this._$AH;
|
|
426
|
-
let
|
|
427
|
-
for (const i of e) o === t.length ? t.push(
|
|
428
|
-
o < t.length && (this._$AR(
|
|
426
|
+
let l, o = 0;
|
|
427
|
+
for (const i of e) o === t.length ? t.push(l = new n1(this.O(q()), this.O(q()), this, this.options)) : l = t[o], l._$AI(i), o++;
|
|
428
|
+
o < t.length && (this._$AR(l && l._$AB.nextSibling, o), t.length = o);
|
|
429
429
|
}
|
|
430
430
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
431
|
-
var
|
|
432
|
-
for ((
|
|
433
|
-
const o =
|
|
434
|
-
|
|
431
|
+
var l;
|
|
432
|
+
for ((l = this._$AP) == null ? void 0 : l.call(this, !1, !0, t); e !== this._$AB; ) {
|
|
433
|
+
const o = k5(e).nextSibling;
|
|
434
|
+
k5(e).remove(), e = o;
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
setConnected(e) {
|
|
@@ -439,24 +439,24 @@ class C1 {
|
|
|
439
439
|
this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
class
|
|
442
|
+
class f1 {
|
|
443
443
|
get tagName() {
|
|
444
444
|
return this.element.tagName;
|
|
445
445
|
}
|
|
446
446
|
get _$AU() {
|
|
447
447
|
return this._$AM._$AU;
|
|
448
448
|
}
|
|
449
|
-
constructor(e, t,
|
|
450
|
-
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = e, this.name = t, this._$AM = o, this.options = i,
|
|
449
|
+
constructor(e, t, l, o, i) {
|
|
450
|
+
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = e, this.name = t, this._$AM = o, this.options = i, l.length > 2 || l[0] !== "" || l[1] !== "" ? (this._$AH = Array(l.length - 1).fill(new String()), this.strings = l) : this._$AH = p;
|
|
451
451
|
}
|
|
452
|
-
_$AI(e, t = this,
|
|
452
|
+
_$AI(e, t = this, l, o) {
|
|
453
453
|
const i = this.strings;
|
|
454
454
|
let n = !1;
|
|
455
|
-
if (i === void 0) e = B(this, e, t, 0), n = !
|
|
455
|
+
if (i === void 0) e = B(this, e, t, 0), n = !G(e) || e !== this._$AH && e !== O, n && (this._$AH = e);
|
|
456
456
|
else {
|
|
457
457
|
const a = e;
|
|
458
|
-
let s,
|
|
459
|
-
for (e = i[0], s = 0; s < i.length - 1; s++)
|
|
458
|
+
let s, u;
|
|
459
|
+
for (e = i[0], s = 0; s < i.length - 1; s++) u = B(this, a[l + s], t, s), u === O && (u = this._$AH[s]), n || (n = !G(u) || u !== this._$AH[s]), u === p ? e = p : e !== p && (e += (u ?? "") + i[s + 1]), this._$AH[s] = u;
|
|
460
460
|
}
|
|
461
461
|
n && !o && this.j(e);
|
|
462
462
|
}
|
|
@@ -464,7 +464,7 @@ class h1 {
|
|
|
464
464
|
e === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
class
|
|
467
|
+
class _2 extends f1 {
|
|
468
468
|
constructor() {
|
|
469
469
|
super(...arguments), this.type = 3;
|
|
470
470
|
}
|
|
@@ -472,7 +472,7 @@ class f2 extends h1 {
|
|
|
472
472
|
this.element[this.name] = e === p ? void 0 : e;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
class
|
|
475
|
+
class x2 extends f1 {
|
|
476
476
|
constructor() {
|
|
477
477
|
super(...arguments), this.type = 4;
|
|
478
478
|
}
|
|
@@ -480,23 +480,23 @@ class H2 extends h1 {
|
|
|
480
480
|
this.element.toggleAttribute(this.name, !!e && e !== p);
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
class
|
|
484
|
-
constructor(e, t,
|
|
485
|
-
super(e, t,
|
|
483
|
+
class k2 extends f1 {
|
|
484
|
+
constructor(e, t, l, o, i) {
|
|
485
|
+
super(e, t, l, o, i), this.type = 5;
|
|
486
486
|
}
|
|
487
487
|
_$AI(e, t = this) {
|
|
488
488
|
if ((e = B(this, e, t, 0) ?? p) === O) return;
|
|
489
|
-
const
|
|
490
|
-
o && this.element.removeEventListener(this.name, this,
|
|
489
|
+
const l = this._$AH, o = e === p && l !== p || e.capture !== l.capture || e.once !== l.once || e.passive !== l.passive, i = e !== p && (l === p || o);
|
|
490
|
+
o && this.element.removeEventListener(this.name, this, l), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
491
491
|
}
|
|
492
492
|
handleEvent(e) {
|
|
493
493
|
var t;
|
|
494
494
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
class
|
|
498
|
-
constructor(e, t,
|
|
499
|
-
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options =
|
|
497
|
+
class w2 {
|
|
498
|
+
constructor(e, t, l) {
|
|
499
|
+
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = l;
|
|
500
500
|
}
|
|
501
501
|
get _$AU() {
|
|
502
502
|
return this._$AM._$AU;
|
|
@@ -505,16 +505,16 @@ class V2 {
|
|
|
505
505
|
B(this, e);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
const
|
|
509
|
-
|
|
510
|
-
const
|
|
511
|
-
const
|
|
512
|
-
let o =
|
|
508
|
+
const Z1 = D.litHtmlPolyfillSupport;
|
|
509
|
+
Z1 == null || Z1(Y, n1), (D.litHtmlVersions ?? (D.litHtmlVersions = [])).push("3.3.2");
|
|
510
|
+
const $2 = (C, e, t) => {
|
|
511
|
+
const l = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
512
|
+
let o = l._$litPart$;
|
|
513
513
|
if (o === void 0) {
|
|
514
514
|
const i = (t == null ? void 0 : t.renderBefore) ?? null;
|
|
515
|
-
|
|
515
|
+
l._$litPart$ = o = new n1(e.insertBefore(q(), i), i, void 0, t ?? {});
|
|
516
516
|
}
|
|
517
|
-
return o._$AI(
|
|
517
|
+
return o._$AI(C), o;
|
|
518
518
|
};
|
|
519
519
|
/**
|
|
520
520
|
* @license
|
|
@@ -522,7 +522,7 @@ const M2 = (l, e, t) => {
|
|
|
522
522
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
523
523
|
*/
|
|
524
524
|
const A = globalThis;
|
|
525
|
-
class
|
|
525
|
+
class c extends S {
|
|
526
526
|
constructor() {
|
|
527
527
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
528
528
|
}
|
|
@@ -533,7 +533,7 @@ class u extends z {
|
|
|
533
533
|
}
|
|
534
534
|
update(e) {
|
|
535
535
|
const t = this.render();
|
|
536
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
536
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = $2(t, this.renderRoot, this.renderOptions);
|
|
537
537
|
}
|
|
538
538
|
connectedCallback() {
|
|
539
539
|
var e;
|
|
@@ -547,79 +547,79 @@ class u extends z {
|
|
|
547
547
|
return O;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
var
|
|
551
|
-
|
|
552
|
-
const
|
|
553
|
-
|
|
550
|
+
var N5;
|
|
551
|
+
c._$litElement$ = !0, c.finalized = !0, (N5 = A.litElementHydrateSupport) == null || N5.call(A, { LitElement: c });
|
|
552
|
+
const y1 = A.litElementPolyfillSupport;
|
|
553
|
+
y1 == null || y1({ LitElement: c });
|
|
554
554
|
(A.litElementVersions ?? (A.litElementVersions = [])).push("4.2.2");
|
|
555
555
|
/**
|
|
556
556
|
* @license
|
|
557
557
|
* Copyright 2017 Google LLC
|
|
558
558
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
559
559
|
*/
|
|
560
|
-
const
|
|
561
|
-
const { kind:
|
|
560
|
+
const E2 = { attribute: !0, type: String, converter: d1, reflect: !1, hasChanged: B1 }, P2 = (C = E2, e, t) => {
|
|
561
|
+
const { kind: l, metadata: o } = t;
|
|
562
562
|
let i = globalThis.litPropertyMetadata.get(o);
|
|
563
|
-
if (i === void 0 && globalThis.litPropertyMetadata.set(o, i = /* @__PURE__ */ new Map()),
|
|
563
|
+
if (i === void 0 && globalThis.litPropertyMetadata.set(o, i = /* @__PURE__ */ new Map()), l === "setter" && ((C = Object.create(C)).wrapped = !0), i.set(t.name, C), l === "accessor") {
|
|
564
564
|
const { name: n } = t;
|
|
565
565
|
return { set(a) {
|
|
566
566
|
const s = e.get.call(this);
|
|
567
|
-
e.set.call(this, a), this.requestUpdate(n, s,
|
|
567
|
+
e.set.call(this, a), this.requestUpdate(n, s, C, !0, a);
|
|
568
568
|
}, init(a) {
|
|
569
|
-
return a !== void 0 && this.C(n, void 0,
|
|
569
|
+
return a !== void 0 && this.C(n, void 0, C, a), a;
|
|
570
570
|
} };
|
|
571
571
|
}
|
|
572
|
-
if (
|
|
572
|
+
if (l === "setter") {
|
|
573
573
|
const { name: n } = t;
|
|
574
574
|
return function(a) {
|
|
575
575
|
const s = this[n];
|
|
576
|
-
e.call(this, a), this.requestUpdate(n, s,
|
|
576
|
+
e.call(this, a), this.requestUpdate(n, s, C, !0, a);
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
|
-
throw Error("Unsupported decorator location: " +
|
|
579
|
+
throw Error("Unsupported decorator location: " + l);
|
|
580
580
|
};
|
|
581
|
-
function r(
|
|
582
|
-
return (e, t) => typeof t == "object" ?
|
|
581
|
+
function r(C) {
|
|
582
|
+
return (e, t) => typeof t == "object" ? P2(C, e, t) : ((l, o, i) => {
|
|
583
583
|
const n = o.hasOwnProperty(i);
|
|
584
|
-
return o.constructor.createProperty(i,
|
|
585
|
-
})(
|
|
584
|
+
return o.constructor.createProperty(i, l), n ? Object.getOwnPropertyDescriptor(o, i) : void 0;
|
|
585
|
+
})(C, e, t);
|
|
586
586
|
}
|
|
587
587
|
/**
|
|
588
588
|
* @license
|
|
589
589
|
* Copyright 2017 Google LLC
|
|
590
590
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
591
591
|
*/
|
|
592
|
-
function
|
|
593
|
-
return r({ ...
|
|
592
|
+
function H1(C) {
|
|
593
|
+
return r({ ...C, state: !0, attribute: !1 });
|
|
594
594
|
}
|
|
595
595
|
/**
|
|
596
596
|
* @license
|
|
597
597
|
* Copyright 2017 Google LLC
|
|
598
598
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
599
599
|
*/
|
|
600
|
-
const
|
|
600
|
+
const A2 = (C, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(C, e, t), t);
|
|
601
601
|
/**
|
|
602
602
|
* @license
|
|
603
603
|
* Copyright 2017 Google LLC
|
|
604
604
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
605
605
|
*/
|
|
606
|
-
function
|
|
607
|
-
return (t,
|
|
606
|
+
function N1(C, e) {
|
|
607
|
+
return (t, l, o) => {
|
|
608
608
|
const i = (n) => {
|
|
609
609
|
var a;
|
|
610
|
-
return ((a = n.renderRoot) == null ? void 0 : a.querySelector(
|
|
610
|
+
return ((a = n.renderRoot) == null ? void 0 : a.querySelector(C)) ?? null;
|
|
611
611
|
};
|
|
612
|
-
return
|
|
612
|
+
return A2(t, l, { get() {
|
|
613
613
|
return i(this);
|
|
614
614
|
} });
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
|
-
var
|
|
618
|
-
for (var o = void 0, i =
|
|
619
|
-
(n =
|
|
620
|
-
return o &&
|
|
617
|
+
var z2 = Object.defineProperty, Y5 = (C, e, t, l) => {
|
|
618
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
619
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
620
|
+
return o && z2(e, t, o), o;
|
|
621
621
|
};
|
|
622
|
-
const
|
|
622
|
+
const D1 = class D1 extends c {
|
|
623
623
|
constructor() {
|
|
624
624
|
super(...arguments), this.size = "medium", this.percent = "";
|
|
625
625
|
}
|
|
@@ -638,13 +638,13 @@ const N1 = class N1 extends u {
|
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
render() {
|
|
641
|
-
const [e, t] = this.getSizeParams(this.size),
|
|
641
|
+
const [e, t] = this.getSizeParams(this.size), l = this.percent === "" || this.percent === null;
|
|
642
642
|
let o;
|
|
643
|
-
|
|
643
|
+
l ? o = 0.75 * Math.PI * e : o = (1 - Math.max(0, Math.min(1, parseFloat(this.percent) || 0))) * Math.PI * e;
|
|
644
644
|
const i = t / 2, n = t + e, a = e / 2, s = Math.PI * e;
|
|
645
|
-
return
|
|
645
|
+
return R1`
|
|
646
646
|
<svg
|
|
647
|
-
class=${
|
|
647
|
+
class=${l ? "spinner" : ""}
|
|
648
648
|
width="${e}px"
|
|
649
649
|
height="${e}px"
|
|
650
650
|
transform="rotate(-90)"
|
|
@@ -676,20 +676,20 @@ const N1 = class N1 extends u {
|
|
|
676
676
|
`;
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
|
-
|
|
679
|
+
D1.styles = h`
|
|
680
680
|
:host { display: inline-block; line-height: 0; font-family: var(--font-sans); }
|
|
681
681
|
.spinner { animation: circle 0.6s linear infinite; }
|
|
682
682
|
@keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
|
683
683
|
`;
|
|
684
|
-
let W =
|
|
685
|
-
|
|
684
|
+
let W = D1;
|
|
685
|
+
Y5([
|
|
686
686
|
r()
|
|
687
687
|
], W.prototype, "size");
|
|
688
|
-
|
|
688
|
+
Y5([
|
|
689
689
|
r()
|
|
690
690
|
], W.prototype, "percent");
|
|
691
691
|
customElements.get("anduin-spinner") || customElements.define("anduin-spinner", W);
|
|
692
|
-
const
|
|
692
|
+
const S5 = {
|
|
693
693
|
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" }],
|
|
694
694
|
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" }],
|
|
695
695
|
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" }],
|
|
@@ -1007,6 +1007,12 @@ const _5 = {
|
|
|
1007
1007
|
userInvestor: [{ d: "M13 0.5C13 0.223858 13.2239 0 13.5 0C13.7761 0 14 0.223858 14 0.5V1.03989C14.1405 1.06254 14.2789 1.09482 14.4137 1.13669C14.852 1.27284 15.247 1.50939 15.5363 1.83404C15.8277 2.1611 16 2.56647 16 3C16 3.27614 15.7761 3.5 15.5 3.5C15.2239 3.5 15 3.27614 15 3C15 2.84018 14.9378 2.66553 14.7896 2.49925C14.6393 2.33055 14.4097 2.18258 14.117 2.09167C13.8252 2.00102 13.4991 1.97628 13.1836 2.02335C12.8676 2.0705 12.5913 2.18518 12.3858 2.33934C12.1808 2.49307 12.0656 2.67022 12.0217 2.83554C11.979 2.99651 11.9981 3.16601 12.0899 3.3323C12.1844 3.50331 12.3581 3.67252 12.6129 3.80019C12.8671 3.92759 13.1762 4 13.5 4C13.9674 4 14.4316 4.10353 14.8352 4.30578C15.2382 4.50776 15.5771 4.80708 15.7854 5.18425C15.9964 5.56614 16.0565 5.99984 15.9449 6.42081C15.8344 6.83743 15.5687 7.19483 15.2142 7.46066C14.8696 7.71911 14.4466 7.88808 14 7.96011V8.5C14 8.77614 13.7761 9 13.5 9C13.2239 9 13 8.77614 13 8.5V7.96011C12.8595 7.93746 12.7211 7.90518 12.5863 7.86331C12.148 7.72716 11.753 7.49061 11.4637 7.16596C11.1723 6.8389 11 6.43353 11 6C11 5.72386 11.2239 5.5 11.5 5.5C11.7761 5.5 12 5.72386 12 6C12 6.15982 12.0622 6.33447 12.2104 6.50075C12.3607 6.66945 12.5903 6.81742 12.883 6.90833C13.1748 6.99898 13.5009 7.02372 13.8164 6.97665C14.1324 6.9295 14.4087 6.81482 14.6142 6.66066C14.8192 6.50693 14.9344 6.32978 14.9783 6.16446C15.021 6.00349 15.0019 5.83399 14.9101 5.6677C14.8156 5.49669 14.6419 5.32748 14.3871 5.19981C14.1329 5.07241 13.8238 5 13.5 5C13.0326 5 12.5684 4.89647 12.1648 4.69422C11.7618 4.49224 11.4229 4.19292 11.2146 3.81575C11.0036 3.43386 10.9435 3.00016 11.0551 2.57919C11.1656 2.16257 11.4313 1.80517 11.7858 1.53934C12.1304 1.28089 12.5534 1.11192 13 1.03989V0.5ZM5 8C6.65685 8 8 6.65685 8 5C8 3.34315 6.65685 2 5 2C3.34315 2 2 3.34315 2 5C2 6.65685 3.34315 8 5 8ZM4 9C1.79086 9 0 10.7909 0 13C0 13.5523 0.447716 14 1 14H9C9.55228 14 10 13.5523 10 13C10 10.7909 8.20914 9 6 9H4Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
1008
1008
|
userLink: [{ d: "M11 5C11 6.65685 9.65685 8 8 8C6.34315 8 5 6.65685 5 5C5 3.34315 6.34315 2 8 2C9.65685 2 11 3.34315 11 5ZM6 9C3.79086 9 2 10.7909 2 13C2 13.5523 2.44772 14 3 14H6.03544C6.01209 13.8367 6 13.6698 6 13.5C6 11.567 7.567 10 9.5 10H12.6458C11.9407 9.37764 11.0144 9 10 9H6ZM9.5 11C8.11929 11 7 12.1193 7 13.5C7 14.8807 8.11929 16 9.5 16H10.5C10.7761 16 11 15.7761 11 15.5C11 15.2239 10.7761 15 10.5 15H9.5C8.67157 15 8 14.3284 8 13.5C8 12.6716 8.67157 12 9.5 12H10.5C10.7761 12 11 11.7761 11 11.5C11 11.2239 10.7761 11 10.5 11H9.5ZM12 11.5C12 11.2239 12.2239 11 12.5 11H13.5C14.8807 11 16 12.1193 16 13.5C16 14.8807 14.8807 16 13.5 16H12.5C12.2239 16 12 15.7761 12 15.5C12 15.2239 12.2239 15 12.5 15H13.5C14.3284 15 15 14.3284 15 13.5C15 12.6716 14.3284 12 13.5 12H12.5C12.2239 12 12 11.7761 12 11.5ZM10 13C9.72386 13 9.5 13.2239 9.5 13.5C9.5 13.7761 9.72386 14 10 14H13C13.2761 14 13.5 13.7761 13.5 13.5C13.5 13.2239 13.2761 13 13 13H10Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
1009
1009
|
userRemove: [{ d: "M15.7803 2.28033C16.0732 1.98744 16.0732 1.51256 15.7803 1.21967C15.4874 0.926777 15.0126 0.926777 14.7197 1.21967L12.9985 2.94087L11.2773 1.21967C10.9844 0.926777 10.5095 0.926777 10.2166 1.21967C9.92373 1.51256 9.92373 1.98744 10.2166 2.28033L11.9378 4.00153L10.2197 5.71967C9.92678 6.01256 9.92678 6.48744 10.2197 6.78033C10.5126 7.07322 10.9874 7.07322 11.2803 6.78033L12.9985 5.06219L14.7189 6.78259C15.0118 7.07548 15.4866 7.07548 15.7795 6.78259C16.0724 6.4897 16.0724 6.01482 15.7795 5.72193L14.0591 4.00153L15.7803 2.28033ZM5 8C6.65685 8 8 6.65685 8 5C8 3.34315 6.65685 2 5 2C3.34315 2 2 3.34315 2 5C2 6.65685 3.34315 8 5 8ZM4 9C1.79086 9 0 10.7909 0 13C0 13.5523 0.447716 14 1 14H9C9.55228 14 10 13.5523 10 13C10 10.7909 8.20914 9 6 9H4Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
1010
|
+
userEnvelope: [
|
|
1011
|
+
{ d: "M16 14.5996C16 15.3696 15.2911 16 14.4248 16H8.5752C7.70895 16 7 15.3696 7 14.5996V11.8086L11.2764 13.9473C11.4171 14.0176 11.5829 14.0176 11.7236 13.9473L16 11.8086V14.5996Z", fillRule: "", clipRule: "" },
|
|
1012
|
+
{ d: "M6 9C6.49465 9 6.96798 9.09072 7.40527 9.25488C6.57389 9.66103 6 10.5124 6 11.5V14H1C0.447715 14 0 13.5523 0 13C0 10.7909 1.79086 9 4 9H6Z", fillRule: "", clipRule: "" },
|
|
1013
|
+
{ d: "M14.4248 10C15.0382 10 15.5713 10.3167 15.8311 10.7744L11.5 12.9404L7.16797 10.7744C7.42763 10.3164 7.96166 10 8.5752 10H14.4248Z", fillRule: "", clipRule: "" },
|
|
1014
|
+
{ d: "M5 2C6.65685 2 8 3.34315 8 5C8 6.65685 6.65685 8 5 8C3.34315 8 2 6.65685 2 5C2 3.34315 3.34315 2 5 2Z", fillRule: "", clipRule: "" }
|
|
1015
|
+
],
|
|
1010
1016
|
userSingle: [{ d: "M8 8C9.65685 8 11 6.65685 11 5C11 3.34315 9.65685 2 8 2C6.34315 2 5 3.34315 5 5C5 6.65685 6.34315 8 8 8ZM4.39607 9.43046C2.99148 9.76433 2 11.0191 2 12.4628V13.0386C2 13.5696 2.43043 14 2.96139 14H13.0386C13.5696 14 14 13.5696 14 13.0386V12.4628C14 11.0191 13.0085 9.76433 11.6039 9.43046C9.23432 8.86721 6.76568 8.86721 4.39607 9.43046Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
1011
1017
|
userStar: [{ d: "M12.9734 0.343966C12.8244 -0.114655 12.1756 -0.114655 12.0266 0.343965L11.4298 2.18054H9.49875C9.01652 2.18054 8.81602 2.79761 9.20615 3.08105L10.7684 4.21612L10.1717 6.05269C10.0227 6.51131 10.5476 6.89268 10.9377 6.60924L12.2074 5.68676C12.3819 5.56 12.6181 5.56 12.7926 5.68676L14.0623 6.60924C14.4524 6.89268 14.9773 6.51131 14.8283 6.05269L14.2316 4.21612L15.7938 3.08105C16.184 2.79761 15.9835 2.18054 15.5013 2.18054H13.5702L12.9734 0.343966ZM8 5C8 6.65685 6.65685 8 5 8C3.34315 8 2 6.65685 2 5C2 3.34315 3.34315 2 5 2C6.65685 2 8 3.34315 8 5ZM0 13C0 10.7909 1.79086 9 4 9H6C8.20914 9 10 10.7909 10 13C10 13.5523 9.55228 14 9 14H1C0.447716 14 0 13.5523 0 13Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
1012
1018
|
vault: [{ d: "M11 7.99999C11 8.55228 10.5523 8.99999 10 8.99999C9.44772 8.99999 9.00001 8.55228 9.00001 7.99999C9.00001 7.44771 9.44772 6.99999 10 6.99999C10.5523 6.99999 11 7.44771 11 7.99999ZM0 4C0 2.89543 0.895431 2 2 2H14C15.1046 2 16 2.89543 16 4V12C16 13.1046 15.1046 14 14 14H2C0.895431 14 0 13.1046 0 12V4ZM2 4.5C2 4.22386 2.22386 4 2.5 4C2.77614 4 3 4.22386 3 4.5V11.5C3 11.7761 2.77614 12 2.5 12C2.22386 12 2 11.7761 2 11.5V4.5ZM13.7837 4.22001C14.0765 4.51299 14.0763 4.98787 13.7833 5.28067L12.2178 6.84525C12.3981 7.19071 12.5 7.58355 12.5 8.00019C12.5 8.4176 12.3977 8.81113 12.2168 9.15706L13.7777 10.718C14.0706 11.0109 14.0706 11.4857 13.7777 11.7786C13.4848 12.0715 13.0099 12.0715 12.7171 11.7786L11.1559 10.2175C10.8102 10.3981 10.417 10.5002 9.99999 10.5002C9.5828 10.5002 9.18948 10.398 8.84369 10.2173L7.27932 11.7807C6.98634 12.0735 6.51146 12.0733 6.21866 11.7804C5.92586 11.4874 5.926 11.0125 6.21899 10.7197L7.78299 9.15667C7.60221 8.81083 7.49999 8.41745 7.49999 8.00019C7.49999 7.58315 7.6021 7.18997 7.78269 6.84427L6.21912 5.2807C5.92622 4.98781 5.92622 4.51293 6.21912 4.22004C6.51201 3.92715 6.98688 3.92715 7.27978 4.22004L8.84312 5.78338C9.18905 5.60249 9.58257 5.50019 9.99999 5.50019C10.4178 5.50019 10.8117 5.60268 11.1578 5.7839L12.723 4.21968C13.016 3.92688 13.4909 3.92703 13.7837 4.22001Z", fillRule: "evenodd", clipRule: "evenodd" }],
|
|
@@ -1020,18 +1026,18 @@ const _5 = {
|
|
|
1020
1026
|
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" }],
|
|
1021
1027
|
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" }]
|
|
1022
1028
|
};
|
|
1023
|
-
var
|
|
1024
|
-
for (var o = void 0, i =
|
|
1025
|
-
(n =
|
|
1026
|
-
return o &&
|
|
1029
|
+
var S2 = Object.defineProperty, W5 = (C, e, t, l) => {
|
|
1030
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1031
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1032
|
+
return o && S2(e, t, o), o;
|
|
1027
1033
|
};
|
|
1028
|
-
const
|
|
1034
|
+
const q1 = class q1 extends c {
|
|
1029
1035
|
constructor() {
|
|
1030
1036
|
super(...arguments), this.name = "", this.size = 16;
|
|
1031
1037
|
}
|
|
1032
1038
|
render() {
|
|
1033
|
-
const e = this.name &&
|
|
1034
|
-
return
|
|
1039
|
+
const e = this.name && S5[this.name] ? S5[this.name] : [], t = !this.name;
|
|
1040
|
+
return R1`
|
|
1035
1041
|
<svg
|
|
1036
1042
|
class=${t ? "icon--hidden" : ""}
|
|
1037
1043
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1041,36 +1047,36 @@ const I1 = class I1 extends u {
|
|
|
1041
1047
|
viewBox="0 0 16 16"
|
|
1042
1048
|
>
|
|
1043
1049
|
${e.map(
|
|
1044
|
-
(
|
|
1050
|
+
(l) => R1`
|
|
1045
1051
|
<path
|
|
1046
1052
|
fill="currentColor"
|
|
1047
|
-
d="${
|
|
1048
|
-
fill-rule="${
|
|
1049
|
-
clip-rule="${
|
|
1053
|
+
d="${l.d}"
|
|
1054
|
+
fill-rule="${l.fillRule ?? p}"
|
|
1055
|
+
clip-rule="${l.clipRule ?? p}"
|
|
1050
1056
|
/>`
|
|
1051
1057
|
)}
|
|
1052
1058
|
</svg>
|
|
1053
1059
|
`;
|
|
1054
1060
|
}
|
|
1055
1061
|
};
|
|
1056
|
-
|
|
1062
|
+
q1.styles = h`
|
|
1057
1063
|
:host { display: block; line-height: 0; font-family: var(--font-sans); }
|
|
1058
1064
|
.icon--hidden { display: none; }
|
|
1059
1065
|
`;
|
|
1060
|
-
let X =
|
|
1061
|
-
|
|
1066
|
+
let X = q1;
|
|
1067
|
+
W5([
|
|
1062
1068
|
r()
|
|
1063
1069
|
], X.prototype, "name");
|
|
1064
|
-
|
|
1070
|
+
W5([
|
|
1065
1071
|
r({ type: Number })
|
|
1066
1072
|
], X.prototype, "size");
|
|
1067
1073
|
customElements.get("anduin-icon") || customElements.define("anduin-icon", X);
|
|
1068
|
-
var
|
|
1069
|
-
for (var o = void 0, i =
|
|
1070
|
-
(n =
|
|
1071
|
-
return o &&
|
|
1074
|
+
var O2 = Object.defineProperty, B2 = (C, e, t, l) => {
|
|
1075
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1076
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1077
|
+
return o && O2(e, t, o), o;
|
|
1072
1078
|
};
|
|
1073
|
-
const
|
|
1079
|
+
const X5 = h`
|
|
1074
1080
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1075
1081
|
.badge {
|
|
1076
1082
|
border-radius: 9999px;
|
|
@@ -1097,7 +1103,7 @@ const T5 = h`
|
|
|
1097
1103
|
.badge--bold-warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1098
1104
|
.badge--hidden { display: none; }
|
|
1099
1105
|
`;
|
|
1100
|
-
function
|
|
1106
|
+
function K5(C) {
|
|
1101
1107
|
return {
|
|
1102
1108
|
gray: "badge--light-gray",
|
|
1103
1109
|
primary: "badge--light-primary",
|
|
@@ -1109,29 +1115,29 @@ function U5(l) {
|
|
|
1109
1115
|
boldSuccess: "badge--bold-success",
|
|
1110
1116
|
boldWarning: "badge--bold-warning",
|
|
1111
1117
|
boldDanger: "badge--bold-danger"
|
|
1112
|
-
}[
|
|
1118
|
+
}[C || "gray"] || "badge--light-gray";
|
|
1113
1119
|
}
|
|
1114
|
-
const
|
|
1120
|
+
const G1 = class G1 extends c {
|
|
1115
1121
|
constructor() {
|
|
1116
1122
|
super(...arguments), this.variant = "gray";
|
|
1117
1123
|
}
|
|
1118
1124
|
render() {
|
|
1119
|
-
const e =
|
|
1125
|
+
const e = K5(this.variant);
|
|
1120
1126
|
return d`<div class="badge ${e}" part="badge"><slot></slot></div>`;
|
|
1121
1127
|
}
|
|
1122
1128
|
};
|
|
1123
|
-
|
|
1124
|
-
let
|
|
1125
|
-
|
|
1129
|
+
G1.styles = [X5];
|
|
1130
|
+
let u1 = G1;
|
|
1131
|
+
B2([
|
|
1126
1132
|
r()
|
|
1127
|
-
],
|
|
1128
|
-
customElements.get("anduin-badge") || customElements.define("anduin-badge",
|
|
1129
|
-
var
|
|
1130
|
-
for (var o = void 0, i =
|
|
1131
|
-
(n =
|
|
1132
|
-
return o &&
|
|
1133
|
+
], u1.prototype, "variant");
|
|
1134
|
+
customElements.get("anduin-badge") || customElements.define("anduin-badge", u1);
|
|
1135
|
+
var I2 = Object.defineProperty, F5 = (C, e, t, l) => {
|
|
1136
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1137
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1138
|
+
return o && I2(e, t, o), o;
|
|
1133
1139
|
};
|
|
1134
|
-
const
|
|
1140
|
+
const Y1 = class Y1 extends c {
|
|
1135
1141
|
constructor() {
|
|
1136
1142
|
super(...arguments), this.variant = "gray", this.count = 0;
|
|
1137
1143
|
}
|
|
@@ -1139,33 +1145,33 @@ const U1 = class U1 extends u {
|
|
|
1139
1145
|
return e > 99 ? "99+" : e.toString();
|
|
1140
1146
|
}
|
|
1141
1147
|
render() {
|
|
1142
|
-
const e =
|
|
1148
|
+
const e = K5(this.variant), t = this.count === 0, l = this.count > 0 && this.count < 10, o = [
|
|
1143
1149
|
"badge",
|
|
1144
1150
|
e,
|
|
1145
1151
|
t ? "badge--hidden" : "",
|
|
1146
|
-
|
|
1152
|
+
l ? "badge--square" : ""
|
|
1147
1153
|
].filter(Boolean).join(" ");
|
|
1148
1154
|
return d`<div class="${o}" part="badge">${this.formatCount(this.count)}</div>`;
|
|
1149
1155
|
}
|
|
1150
1156
|
};
|
|
1151
|
-
|
|
1152
|
-
let
|
|
1153
|
-
|
|
1157
|
+
Y1.styles = [X5];
|
|
1158
|
+
let K = Y1;
|
|
1159
|
+
F5([
|
|
1154
1160
|
r()
|
|
1155
|
-
],
|
|
1156
|
-
|
|
1161
|
+
], K.prototype, "variant");
|
|
1162
|
+
F5([
|
|
1157
1163
|
r({ type: Number })
|
|
1158
|
-
],
|
|
1159
|
-
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count",
|
|
1160
|
-
var
|
|
1161
|
-
for (var o = void 0, i =
|
|
1162
|
-
(n =
|
|
1163
|
-
return o &&
|
|
1164
|
+
], K.prototype, "count");
|
|
1165
|
+
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", K);
|
|
1166
|
+
var N2 = Object.defineProperty, H = (C, e, t, l) => {
|
|
1167
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1168
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1169
|
+
return o && N2(e, t, o), o;
|
|
1164
1170
|
};
|
|
1165
|
-
function
|
|
1166
|
-
return
|
|
1171
|
+
function T2(C) {
|
|
1172
|
+
return C.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1167
1173
|
}
|
|
1168
|
-
const
|
|
1174
|
+
const W1 = class W1 extends c {
|
|
1169
1175
|
constructor() {
|
|
1170
1176
|
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 = "";
|
|
1171
1177
|
}
|
|
@@ -1182,13 +1188,13 @@ const j1 = class j1 extends u {
|
|
|
1182
1188
|
return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
|
|
1183
1189
|
}
|
|
1184
1190
|
getSizeKebab() {
|
|
1185
|
-
return
|
|
1191
|
+
return T2(this.size);
|
|
1186
1192
|
}
|
|
1187
1193
|
iconSize() {
|
|
1188
1194
|
return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
|
|
1189
1195
|
}
|
|
1190
1196
|
render() {
|
|
1191
|
-
const e = this.getVariant(), t = this.getSizeKebab(),
|
|
1197
|
+
const e = this.getVariant(), t = this.getSizeKebab(), l = [
|
|
1192
1198
|
"button",
|
|
1193
1199
|
`button--${this.appearance}`,
|
|
1194
1200
|
`button--${e}`,
|
|
@@ -1209,7 +1215,7 @@ const j1 = class j1 extends u {
|
|
|
1209
1215
|
`;
|
|
1210
1216
|
return this.href ? d`
|
|
1211
1217
|
<a
|
|
1212
|
-
class="${
|
|
1218
|
+
class="${l}"
|
|
1213
1219
|
href="${this.disabled ? "" : this.href}"
|
|
1214
1220
|
target="${this.openNewTab ? "_blank" : p}"
|
|
1215
1221
|
rel="${this.openNewTab ? "noreferrer noopener" : p}"
|
|
@@ -1219,14 +1225,14 @@ const j1 = class j1 extends u {
|
|
|
1219
1225
|
` : d`
|
|
1220
1226
|
<button
|
|
1221
1227
|
type="button"
|
|
1222
|
-
class="${
|
|
1228
|
+
class="${l}"
|
|
1223
1229
|
?disabled="${this.disabled}"
|
|
1224
1230
|
aria-label="${this.label || p}"
|
|
1225
1231
|
>${o}</button>
|
|
1226
1232
|
`;
|
|
1227
1233
|
}
|
|
1228
1234
|
};
|
|
1229
|
-
|
|
1235
|
+
W1.styles = h`
|
|
1230
1236
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1231
1237
|
:host([full-width="true"]) { display: block; width: 100%; }
|
|
1232
1238
|
.button {
|
|
@@ -1328,9 +1334,9 @@ j1.styles = h`
|
|
|
1328
1334
|
.button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
|
|
1329
1335
|
.button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
|
|
1330
1336
|
`;
|
|
1331
|
-
let f =
|
|
1337
|
+
let f = W1;
|
|
1332
1338
|
H([
|
|
1333
|
-
|
|
1339
|
+
H1()
|
|
1334
1340
|
], f.prototype, "iconOnly");
|
|
1335
1341
|
H([
|
|
1336
1342
|
r()
|
|
@@ -1375,12 +1381,12 @@ H([
|
|
|
1375
1381
|
r()
|
|
1376
1382
|
], f.prototype, "label");
|
|
1377
1383
|
customElements.get("anduin-button") || customElements.define("anduin-button", f);
|
|
1378
|
-
var
|
|
1379
|
-
for (var o = void 0, i =
|
|
1380
|
-
(n =
|
|
1381
|
-
return o &&
|
|
1384
|
+
var U2 = Object.defineProperty, j2 = (C, e, t, l) => {
|
|
1385
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1386
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1387
|
+
return o && U2(e, t, o), o;
|
|
1382
1388
|
};
|
|
1383
|
-
const
|
|
1389
|
+
const X1 = class X1 extends c {
|
|
1384
1390
|
constructor() {
|
|
1385
1391
|
super(...arguments), this.variant = "gray";
|
|
1386
1392
|
}
|
|
@@ -1393,7 +1399,7 @@ const D1 = class D1 extends u {
|
|
|
1393
1399
|
`;
|
|
1394
1400
|
}
|
|
1395
1401
|
};
|
|
1396
|
-
|
|
1402
|
+
X1.styles = h`
|
|
1397
1403
|
:host { display: block; font-family: var(--font-sans); }
|
|
1398
1404
|
.callout {
|
|
1399
1405
|
display: flex; align-items: center; justify-content: center;
|
|
@@ -1405,17 +1411,17 @@ D1.styles = h`
|
|
|
1405
1411
|
.callout--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1406
1412
|
.callout--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1407
1413
|
`;
|
|
1408
|
-
let
|
|
1409
|
-
|
|
1414
|
+
let p1 = X1;
|
|
1415
|
+
j2([
|
|
1410
1416
|
r()
|
|
1411
|
-
],
|
|
1412
|
-
customElements.get("anduin-callout") || customElements.define("anduin-callout",
|
|
1413
|
-
var
|
|
1414
|
-
for (var o = void 0, i =
|
|
1415
|
-
(n =
|
|
1416
|
-
return o &&
|
|
1417
|
+
], p1.prototype, "variant");
|
|
1418
|
+
customElements.get("anduin-callout") || customElements.define("anduin-callout", p1);
|
|
1419
|
+
var D2 = Object.defineProperty, J5 = (C, e, t, l) => {
|
|
1420
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1421
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1422
|
+
return o && D2(e, t, o), o;
|
|
1417
1423
|
};
|
|
1418
|
-
const
|
|
1424
|
+
const K1 = class K1 extends c {
|
|
1419
1425
|
constructor() {
|
|
1420
1426
|
super(...arguments), this.direction = "horizontal", this.hasContent = !1;
|
|
1421
1427
|
}
|
|
@@ -1426,8 +1432,8 @@ const q1 = class q1 extends u {
|
|
|
1426
1432
|
e.has("direction") && this.setAttribute("aria-orientation", this.direction === "vertical" ? "vertical" : "horizontal");
|
|
1427
1433
|
}
|
|
1428
1434
|
onSlotChange(e) {
|
|
1429
|
-
const
|
|
1430
|
-
this.hasContent =
|
|
1435
|
+
const l = e.target.assignedNodes({ flatten: !0 });
|
|
1436
|
+
this.hasContent = l.some((o) => {
|
|
1431
1437
|
var i;
|
|
1432
1438
|
return ((i = o.textContent) == null ? void 0 : i.trim()) !== "";
|
|
1433
1439
|
});
|
|
@@ -1446,7 +1452,7 @@ const q1 = class q1 extends u {
|
|
|
1446
1452
|
</div>` : d`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
|
|
1447
1453
|
}
|
|
1448
1454
|
};
|
|
1449
|
-
|
|
1455
|
+
K1.styles = h`
|
|
1450
1456
|
:host { width: 100%; font-family: var(--font-sans); }
|
|
1451
1457
|
:host([direction="vertical"]) { width: auto; height: 100%; }
|
|
1452
1458
|
.divider--horizontal { margin-top: 8px; margin-bottom: 8px; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; text-align: center; }
|
|
@@ -1456,20 +1462,20 @@ q1.styles = h`
|
|
|
1456
1462
|
.divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
|
|
1457
1463
|
.divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
|
|
1458
1464
|
`;
|
|
1459
|
-
let
|
|
1460
|
-
|
|
1465
|
+
let F = K1;
|
|
1466
|
+
J5([
|
|
1461
1467
|
r()
|
|
1462
|
-
],
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
],
|
|
1466
|
-
customElements.get("anduin-divider") || customElements.define("anduin-divider",
|
|
1467
|
-
var
|
|
1468
|
-
for (var o = void 0, i =
|
|
1469
|
-
(n =
|
|
1470
|
-
return o &&
|
|
1468
|
+
], F.prototype, "direction");
|
|
1469
|
+
J5([
|
|
1470
|
+
H1()
|
|
1471
|
+
], F.prototype, "hasContent");
|
|
1472
|
+
customElements.get("anduin-divider") || customElements.define("anduin-divider", F);
|
|
1473
|
+
var q2 = Object.defineProperty, G2 = (C, e, t, l) => {
|
|
1474
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1475
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1476
|
+
return o && q2(e, t, o), o;
|
|
1471
1477
|
};
|
|
1472
|
-
const
|
|
1478
|
+
const F1 = class F1 extends c {
|
|
1473
1479
|
constructor() {
|
|
1474
1480
|
super(...arguments), this.variant = "gray";
|
|
1475
1481
|
}
|
|
@@ -1477,7 +1483,7 @@ const G1 = class G1 extends u {
|
|
|
1477
1483
|
return d`<div class="dot dot--${this.variant}" part="dot"></div>`;
|
|
1478
1484
|
}
|
|
1479
1485
|
};
|
|
1480
|
-
|
|
1486
|
+
F1.styles = h`
|
|
1481
1487
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1482
1488
|
.dot { width: 10px; height: 10px; border-radius: 9999px; }
|
|
1483
1489
|
.dot--gray { background-color: var(--color-semantic-gray-6); color: var(--color-semantic-gray-0); }
|
|
@@ -1486,33 +1492,33 @@ G1.styles = h`
|
|
|
1486
1492
|
.dot--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1487
1493
|
.dot--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1488
1494
|
`;
|
|
1489
|
-
let
|
|
1490
|
-
|
|
1495
|
+
let h1 = F1;
|
|
1496
|
+
G2([
|
|
1491
1497
|
r()
|
|
1492
|
-
],
|
|
1493
|
-
customElements.get("anduin-dot") || customElements.define("anduin-dot",
|
|
1494
|
-
var
|
|
1495
|
-
for (var o = void 0, i =
|
|
1496
|
-
(n =
|
|
1497
|
-
return o &&
|
|
1498
|
+
], h1.prototype, "variant");
|
|
1499
|
+
customElements.get("anduin-dot") || customElements.define("anduin-dot", h1);
|
|
1500
|
+
var Y2 = Object.defineProperty, Q5 = (C, e, t, l) => {
|
|
1501
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1502
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1503
|
+
return o && Y2(e, t, o), o;
|
|
1498
1504
|
};
|
|
1499
|
-
const
|
|
1505
|
+
const J1 = class J1 extends c {
|
|
1500
1506
|
constructor() {
|
|
1501
1507
|
super(...arguments), this.percent = "", this.height = "medium";
|
|
1502
1508
|
}
|
|
1503
1509
|
render() {
|
|
1504
1510
|
const e = this.height === "large" ? 8 : 3, t = this.percent === "" || this.percent === null;
|
|
1505
|
-
let
|
|
1511
|
+
let l = "";
|
|
1506
1512
|
const o = ["progress__fill"];
|
|
1507
|
-
return t ? o.push("progress__fill--indeterminate") :
|
|
1513
|
+
return t ? o.push("progress__fill--indeterminate") : l = `width: ${Math.max(0, Math.min(1, parseFloat(this.percent) || 0)) * 100}%;`, d`
|
|
1508
1514
|
<div class="progress" style="height: ${e}px;" part="progress">
|
|
1509
|
-
<div class="${o.join(" ")}" style="${
|
|
1515
|
+
<div class="${o.join(" ")}" style="${l}"></div>
|
|
1510
1516
|
<div class="progress__background"></div>
|
|
1511
1517
|
</div>
|
|
1512
1518
|
`;
|
|
1513
1519
|
}
|
|
1514
1520
|
};
|
|
1515
|
-
|
|
1521
|
+
J1.styles = h`
|
|
1516
1522
|
:host { display: block; font-family: var(--font-sans); }
|
|
1517
1523
|
.progress { overflow-x: hidden; position: relative; border-radius: 9999px; }
|
|
1518
1524
|
.progress__fill {
|
|
@@ -1528,20 +1534,20 @@ W1.styles = h`
|
|
|
1528
1534
|
to { transform: translateX(330%); }
|
|
1529
1535
|
}
|
|
1530
1536
|
`;
|
|
1531
|
-
let
|
|
1532
|
-
|
|
1537
|
+
let J = J1;
|
|
1538
|
+
Q5([
|
|
1533
1539
|
r()
|
|
1534
|
-
],
|
|
1535
|
-
|
|
1540
|
+
], J.prototype, "percent");
|
|
1541
|
+
Q5([
|
|
1536
1542
|
r()
|
|
1537
|
-
],
|
|
1538
|
-
customElements.get("anduin-progress") || customElements.define("anduin-progress",
|
|
1539
|
-
var
|
|
1540
|
-
for (var o = void 0, i =
|
|
1541
|
-
(n =
|
|
1542
|
-
return o &&
|
|
1543
|
+
], J.prototype, "height");
|
|
1544
|
+
customElements.get("anduin-progress") || customElements.define("anduin-progress", J);
|
|
1545
|
+
var W2 = Object.defineProperty, T = (C, e, t, l) => {
|
|
1546
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1547
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1548
|
+
return o && W2(e, t, o), o;
|
|
1543
1549
|
};
|
|
1544
|
-
const
|
|
1550
|
+
const Q1 = class Q1 extends c {
|
|
1545
1551
|
constructor() {
|
|
1546
1552
|
super(...arguments), this.effect = "pulse", this.shape = "rectangle", this.height = "", this.width = "100%", this.duration = 1500, this.fontSize = "";
|
|
1547
1553
|
}
|
|
@@ -1552,15 +1558,15 @@ const X1 = class X1 extends u {
|
|
|
1552
1558
|
this.shape === "rounded" ? "skeleton--rounded" : "",
|
|
1553
1559
|
this.shape === "rectangle" ? "skeleton--rectangle" : "",
|
|
1554
1560
|
this.shape === "text" && this.fontSize ? "skeleton--text" : ""
|
|
1555
|
-
].filter(Boolean).join(" "), t = this.shape === "text" && this.fontSize ? `--anduin-skeleton-font-size: ${this.fontSize};` : "",
|
|
1561
|
+
].filter(Boolean).join(" "), t = this.shape === "text" && this.fontSize ? `--anduin-skeleton-font-size: ${this.fontSize};` : "", l = `${this.height ? `height: ${this.height};` : ""} width: ${this.width};`, o = this.effect === "pulse" ? `animation: skeleton-pulse ${this.duration}ms ease-in-out infinite;` : "";
|
|
1556
1562
|
return d`
|
|
1557
|
-
<div class="${e}" style="${t} ${
|
|
1563
|
+
<div class="${e}" style="${t} ${l} ${o}" part="skeleton">
|
|
1558
1564
|
${this.effect === "wave" ? d`<div class="skeleton__wave" style="animation: skeleton-wave ${this.duration}ms linear infinite;"></div>` : ""}
|
|
1559
1565
|
</div>
|
|
1560
1566
|
`;
|
|
1561
1567
|
}
|
|
1562
1568
|
};
|
|
1563
|
-
|
|
1569
|
+
Q1.styles = h`
|
|
1564
1570
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1565
1571
|
.skeleton { background-color: var(--color-gray-3); position: relative; overflow: hidden; }
|
|
1566
1572
|
.skeleton--circle { border-radius: 9999px; }
|
|
@@ -1579,32 +1585,32 @@ X1.styles = h`
|
|
|
1579
1585
|
0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
|
|
1580
1586
|
}
|
|
1581
1587
|
`;
|
|
1582
|
-
let y =
|
|
1583
|
-
|
|
1588
|
+
let y = Q1;
|
|
1589
|
+
T([
|
|
1584
1590
|
r()
|
|
1585
1591
|
], y.prototype, "effect");
|
|
1586
|
-
|
|
1592
|
+
T([
|
|
1587
1593
|
r()
|
|
1588
1594
|
], y.prototype, "shape");
|
|
1589
|
-
|
|
1595
|
+
T([
|
|
1590
1596
|
r()
|
|
1591
1597
|
], y.prototype, "height");
|
|
1592
|
-
|
|
1598
|
+
T([
|
|
1593
1599
|
r()
|
|
1594
1600
|
], y.prototype, "width");
|
|
1595
|
-
|
|
1601
|
+
T([
|
|
1596
1602
|
r({ type: Number })
|
|
1597
1603
|
], y.prototype, "duration");
|
|
1598
|
-
|
|
1604
|
+
T([
|
|
1599
1605
|
r({ attribute: "font-size" })
|
|
1600
1606
|
], y.prototype, "fontSize");
|
|
1601
1607
|
customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", y);
|
|
1602
|
-
var
|
|
1603
|
-
for (var o = void 0, i =
|
|
1604
|
-
(n =
|
|
1605
|
-
return o &&
|
|
1608
|
+
var X2 = Object.defineProperty, K2 = (C, e, t, l) => {
|
|
1609
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1610
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1611
|
+
return o && X2(e, t, o), o;
|
|
1606
1612
|
};
|
|
1607
|
-
const
|
|
1613
|
+
const e5 = class e5 extends c {
|
|
1608
1614
|
constructor() {
|
|
1609
1615
|
super(...arguments), this.height = "256px";
|
|
1610
1616
|
}
|
|
@@ -1619,30 +1625,30 @@ const F1 = class F1 extends u {
|
|
|
1619
1625
|
`;
|
|
1620
1626
|
}
|
|
1621
1627
|
};
|
|
1622
|
-
|
|
1628
|
+
e5.styles = h`
|
|
1623
1629
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1624
1630
|
.loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
|
|
1625
1631
|
.loading-state__indicator { color: var(--color-primary-4); }
|
|
1626
1632
|
.loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-gray-6); }
|
|
1627
1633
|
`;
|
|
1628
|
-
let
|
|
1629
|
-
|
|
1634
|
+
let v1 = e5;
|
|
1635
|
+
K2([
|
|
1630
1636
|
r()
|
|
1631
|
-
],
|
|
1632
|
-
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state",
|
|
1633
|
-
var
|
|
1634
|
-
for (var o = void 0, i =
|
|
1635
|
-
(n =
|
|
1636
|
-
return o &&
|
|
1637
|
+
], v1.prototype, "height");
|
|
1638
|
+
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", v1);
|
|
1639
|
+
var F2 = Object.defineProperty, T1 = (C, e, t, l) => {
|
|
1640
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1641
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1642
|
+
return o && F2(e, t, o), o;
|
|
1637
1643
|
};
|
|
1638
|
-
const
|
|
1644
|
+
const e2 = "anduin-field:label-click", b1 = "anduin-field:label-click-coordinated", t5 = class t5 extends c {
|
|
1639
1645
|
constructor() {
|
|
1640
1646
|
super(...arguments), this.orientation = "vertical";
|
|
1641
1647
|
}
|
|
1642
1648
|
connectedCallback() {
|
|
1643
|
-
super.connectedCallback(), this.addEventListener(
|
|
1649
|
+
super.connectedCallback(), this.addEventListener(e2, (e) => {
|
|
1644
1650
|
const t = e;
|
|
1645
|
-
this.dispatchEvent(new CustomEvent(
|
|
1651
|
+
this.dispatchEvent(new CustomEvent(b1, {
|
|
1646
1652
|
detail: t.detail,
|
|
1647
1653
|
bubbles: !1,
|
|
1648
1654
|
composed: !1
|
|
@@ -1658,17 +1664,17 @@ const G5 = "anduin-field:label-click", v1 = "anduin-field:label-click-coordinate
|
|
|
1658
1664
|
`;
|
|
1659
1665
|
}
|
|
1660
1666
|
};
|
|
1661
|
-
|
|
1667
|
+
t5.styles = h`
|
|
1662
1668
|
:host { display: block; font-family: var(--font-sans); }
|
|
1663
1669
|
.field { display: flex; flex-wrap: wrap; }
|
|
1664
1670
|
.field--vertical { flex-direction: column; row-gap: 4px; }
|
|
1665
1671
|
.field--horizontal { column-gap: 4px; }
|
|
1666
1672
|
`;
|
|
1667
|
-
let
|
|
1668
|
-
|
|
1673
|
+
let L1 = t5;
|
|
1674
|
+
T1([
|
|
1669
1675
|
r()
|
|
1670
|
-
],
|
|
1671
|
-
const
|
|
1676
|
+
], L1.prototype, "orientation");
|
|
1677
|
+
const o5 = class o5 extends c {
|
|
1672
1678
|
constructor() {
|
|
1673
1679
|
super(...arguments), this.htmlfor = "", this.required = !1;
|
|
1674
1680
|
}
|
|
@@ -1676,7 +1682,7 @@ const Y1 = class Y1 extends u {
|
|
|
1676
1682
|
super.connectedCallback();
|
|
1677
1683
|
}
|
|
1678
1684
|
onLabelClick(e) {
|
|
1679
|
-
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(
|
|
1685
|
+
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(e2, {
|
|
1680
1686
|
detail: this.htmlfor,
|
|
1681
1687
|
bubbles: !0,
|
|
1682
1688
|
composed: !0
|
|
@@ -1695,72 +1701,72 @@ const Y1 = class Y1 extends u {
|
|
|
1695
1701
|
`;
|
|
1696
1702
|
}
|
|
1697
1703
|
};
|
|
1698
|
-
|
|
1704
|
+
o5.styles = h`
|
|
1699
1705
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1700
1706
|
.field-label { font-size: 13px; line-height: 20px; font-weight: 600; cursor: default; }
|
|
1701
1707
|
.field-label__required { color: var(--color-danger-5); }
|
|
1702
1708
|
`;
|
|
1703
|
-
let
|
|
1704
|
-
|
|
1709
|
+
let Q = o5;
|
|
1710
|
+
T1([
|
|
1705
1711
|
r()
|
|
1706
|
-
],
|
|
1707
|
-
|
|
1712
|
+
], Q.prototype, "htmlfor");
|
|
1713
|
+
T1([
|
|
1708
1714
|
r({ type: Boolean })
|
|
1709
|
-
],
|
|
1710
|
-
const
|
|
1715
|
+
], Q.prototype, "required");
|
|
1716
|
+
const l5 = class l5 extends c {
|
|
1711
1717
|
render() {
|
|
1712
1718
|
return d`<div class="field-description" part="description"><slot></slot></div>`;
|
|
1713
1719
|
}
|
|
1714
1720
|
};
|
|
1715
|
-
|
|
1721
|
+
l5.styles = h`
|
|
1716
1722
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1717
1723
|
.field-description { display: block; line-height: 16px; font-size: 11px; color: var(--color-gray-7); }
|
|
1718
1724
|
`;
|
|
1719
|
-
let
|
|
1720
|
-
const
|
|
1725
|
+
let _1 = l5;
|
|
1726
|
+
const C5 = class C5 extends c {
|
|
1721
1727
|
render() {
|
|
1722
1728
|
return d`<div class="field-error" part="error"><slot></slot></div>`;
|
|
1723
1729
|
}
|
|
1724
1730
|
};
|
|
1725
|
-
|
|
1731
|
+
C5.styles = h`
|
|
1726
1732
|
:host { display: block; font-family: var(--font-sans); }
|
|
1727
1733
|
.field-error { color: var(--color-danger-4); }
|
|
1728
1734
|
`;
|
|
1729
|
-
let
|
|
1730
|
-
const
|
|
1735
|
+
let x1 = C5;
|
|
1736
|
+
const i5 = class i5 extends c {
|
|
1731
1737
|
render() {
|
|
1732
1738
|
return d`<div class="field-group" part="group"><slot></slot></div>`;
|
|
1733
1739
|
}
|
|
1734
1740
|
};
|
|
1735
|
-
|
|
1741
|
+
i5.styles = h`
|
|
1736
1742
|
:host { display: block; font-family: var(--font-sans); }
|
|
1737
1743
|
.field-group { display: flex; flex-direction: column; row-gap: 24px; }
|
|
1738
1744
|
`;
|
|
1739
|
-
let
|
|
1740
|
-
customElements.get("anduin-field") || customElements.define("anduin-field",
|
|
1741
|
-
customElements.get("anduin-field-label") || customElements.define("anduin-field-label",
|
|
1742
|
-
customElements.get("anduin-field-description") || customElements.define("anduin-field-description",
|
|
1743
|
-
customElements.get("anduin-field-error") || customElements.define("anduin-field-error",
|
|
1744
|
-
customElements.get("anduin-field-group") || customElements.define("anduin-field-group",
|
|
1745
|
-
var
|
|
1746
|
-
for (var o = void 0, i =
|
|
1747
|
-
(n =
|
|
1748
|
-
return o &&
|
|
1745
|
+
let k1 = i5;
|
|
1746
|
+
customElements.get("anduin-field") || customElements.define("anduin-field", L1);
|
|
1747
|
+
customElements.get("anduin-field-label") || customElements.define("anduin-field-label", Q);
|
|
1748
|
+
customElements.get("anduin-field-description") || customElements.define("anduin-field-description", _1);
|
|
1749
|
+
customElements.get("anduin-field-error") || customElements.define("anduin-field-error", x1);
|
|
1750
|
+
customElements.get("anduin-field-group") || customElements.define("anduin-field-group", k1);
|
|
1751
|
+
var J2 = Object.defineProperty, r1 = (C, e, t, l) => {
|
|
1752
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1753
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1754
|
+
return o && J2(e, t, o), o;
|
|
1749
1755
|
};
|
|
1750
|
-
const
|
|
1756
|
+
const Q2 = "anduin-checkbox:change", n5 = class n5 extends c {
|
|
1751
1757
|
constructor() {
|
|
1752
1758
|
super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
|
|
1753
1759
|
}
|
|
1754
1760
|
connectedCallback() {
|
|
1755
1761
|
super.connectedCallback();
|
|
1756
1762
|
const e = this.closest("anduin-field");
|
|
1757
|
-
e && e.addEventListener(
|
|
1758
|
-
const
|
|
1759
|
-
this.inputid && this.inputid ===
|
|
1763
|
+
e && e.addEventListener(b1, (t) => {
|
|
1764
|
+
const l = t;
|
|
1765
|
+
this.inputid && this.inputid === l.detail && !this.disabled && !this.readonly && this.toggle();
|
|
1760
1766
|
});
|
|
1761
1767
|
}
|
|
1762
1768
|
toggle() {
|
|
1763
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
1769
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(Q2, {
|
|
1764
1770
|
detail: this.checked,
|
|
1765
1771
|
bubbles: !0,
|
|
1766
1772
|
composed: !0
|
|
@@ -1776,10 +1782,10 @@ const D2 = "anduin-checkbox:change", t5 = class t5 extends u {
|
|
|
1776
1782
|
this.readonly && !this.indeterminate && !this.checked ? "checkbox__box--readonly" : "",
|
|
1777
1783
|
this.disabled && !this.indeterminate && !this.checked ? "checkbox__box--disabled" : "",
|
|
1778
1784
|
!this.indeterminate && !this.checked && !this.readonly && !this.disabled ? "checkbox__box--unchecked" : ""
|
|
1779
|
-
].filter(Boolean).join(" "), t = this.indeterminate ? "minusBold" : this.checked ? "checkBold" : "",
|
|
1785
|
+
].filter(Boolean).join(" "), t = this.indeterminate ? "minusBold" : this.checked ? "checkBold" : "", l = !this.disabled && !this.readonly, o = l ? 0 : -1;
|
|
1780
1786
|
return d`
|
|
1781
1787
|
<div
|
|
1782
|
-
class="checkbox ${
|
|
1788
|
+
class="checkbox ${l ? "checkbox--interactive" : ""} ${this.disabled ? "checkbox--disabled" : ""}"
|
|
1783
1789
|
part="checkbox"
|
|
1784
1790
|
>
|
|
1785
1791
|
<input
|
|
@@ -1788,7 +1794,7 @@ const D2 = "anduin-checkbox:change", t5 = class t5 extends u {
|
|
|
1788
1794
|
.checked=${this.checked}
|
|
1789
1795
|
?disabled=${this.disabled || this.readonly}
|
|
1790
1796
|
tabindex="${o}"
|
|
1791
|
-
@change=${
|
|
1797
|
+
@change=${l ? this.onInputChange : p}
|
|
1792
1798
|
/>
|
|
1793
1799
|
<div class="${e}" tabindex="${o}"></div>
|
|
1794
1800
|
<div class="checkbox__icon ${this.indeterminate || this.checked ? "checkbox__icon--visible" : ""}">
|
|
@@ -1798,7 +1804,7 @@ const D2 = "anduin-checkbox:change", t5 = class t5 extends u {
|
|
|
1798
1804
|
`;
|
|
1799
1805
|
}
|
|
1800
1806
|
};
|
|
1801
|
-
|
|
1807
|
+
n5.styles = h`
|
|
1802
1808
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
1803
1809
|
.checkbox { width: 16px; height: 16px; position: relative; }
|
|
1804
1810
|
.checkbox--interactive { cursor: pointer; }
|
|
@@ -1821,55 +1827,55 @@ t5.styles = h`
|
|
|
1821
1827
|
.checkbox__icon { position: absolute; inset: 0; pointer-events: none; color: var(--color-gray-4); display: flex; align-items: center; justify-content: center; }
|
|
1822
1828
|
.checkbox__icon--visible { color: var(--color-gray-0); }
|
|
1823
1829
|
`;
|
|
1824
|
-
let
|
|
1825
|
-
|
|
1830
|
+
let k = n5;
|
|
1831
|
+
r1([
|
|
1826
1832
|
r({ type: Boolean })
|
|
1827
|
-
],
|
|
1828
|
-
|
|
1833
|
+
], k.prototype, "checked");
|
|
1834
|
+
r1([
|
|
1829
1835
|
r({ type: Boolean })
|
|
1830
|
-
],
|
|
1831
|
-
|
|
1836
|
+
], k.prototype, "disabled");
|
|
1837
|
+
r1([
|
|
1832
1838
|
r({ type: Boolean })
|
|
1833
|
-
],
|
|
1834
|
-
|
|
1839
|
+
], k.prototype, "indeterminate");
|
|
1840
|
+
r1([
|
|
1835
1841
|
r({ type: Boolean })
|
|
1836
|
-
],
|
|
1837
|
-
|
|
1842
|
+
], k.prototype, "readonly");
|
|
1843
|
+
r1([
|
|
1838
1844
|
r()
|
|
1839
|
-
],
|
|
1840
|
-
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox",
|
|
1841
|
-
var
|
|
1842
|
-
for (var o = void 0, i =
|
|
1843
|
-
(n =
|
|
1844
|
-
return o &&
|
|
1845
|
+
], k.prototype, "inputid");
|
|
1846
|
+
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", k);
|
|
1847
|
+
var e4 = Object.defineProperty, w = (C, e, t, l) => {
|
|
1848
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1849
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1850
|
+
return o && e4(e, t, o), o;
|
|
1845
1851
|
};
|
|
1846
|
-
const
|
|
1852
|
+
const t4 = "anduin-input:change", r5 = class r5 extends c {
|
|
1847
1853
|
constructor() {
|
|
1848
1854
|
super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "";
|
|
1849
1855
|
}
|
|
1850
1856
|
connectedCallback() {
|
|
1851
1857
|
super.connectedCallback();
|
|
1852
1858
|
const e = this.closest("anduin-field");
|
|
1853
|
-
e && e.addEventListener(
|
|
1859
|
+
e && e.addEventListener(b1, (t) => {
|
|
1854
1860
|
var o;
|
|
1855
|
-
const
|
|
1856
|
-
this.inputid && this.inputid ===
|
|
1861
|
+
const l = t;
|
|
1862
|
+
this.inputid && this.inputid === l.detail && ((o = this.inputEl) == null || o.focus());
|
|
1857
1863
|
});
|
|
1858
1864
|
}
|
|
1859
1865
|
updated() {
|
|
1860
1866
|
this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
|
|
1861
1867
|
}
|
|
1862
1868
|
onInput() {
|
|
1863
|
-
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(
|
|
1869
|
+
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(t4, {
|
|
1864
1870
|
detail: this.value,
|
|
1865
1871
|
bubbles: !0,
|
|
1866
1872
|
composed: !0
|
|
1867
1873
|
}));
|
|
1868
1874
|
}
|
|
1869
1875
|
render() {
|
|
1870
|
-
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "",
|
|
1876
|
+
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", l = this.querySelector('[slot="icon"]') !== null;
|
|
1871
1877
|
return d`
|
|
1872
|
-
<div class="input-container${
|
|
1878
|
+
<div class="input-container${l ? " input-container--has-icon" : ""}">
|
|
1873
1879
|
<slot name="icon" class="input__icon"></slot>
|
|
1874
1880
|
<input
|
|
1875
1881
|
class="input ${e} ${this.disabled ? "input--disabled" : ""} ${this.readonly ? "input--readonly" : ""} ${t}"
|
|
@@ -1885,7 +1891,7 @@ const G2 = "anduin-input:change", o5 = class o5 extends u {
|
|
|
1885
1891
|
`;
|
|
1886
1892
|
}
|
|
1887
1893
|
};
|
|
1888
|
-
|
|
1894
|
+
r5.styles = h`
|
|
1889
1895
|
:host { display: block; font-family: var(--font-sans); }
|
|
1890
1896
|
.input-container { position: relative; display: flex; align-items: center; }
|
|
1891
1897
|
.input-container--has-icon .input { padding-left: 32px; }
|
|
@@ -1908,55 +1914,55 @@ o5.styles = h`
|
|
|
1908
1914
|
.input--warning { border-color: var(--color-warning-4); }
|
|
1909
1915
|
.input--loading { border-color: var(--color-gray-4); }
|
|
1910
1916
|
`;
|
|
1911
|
-
let M =
|
|
1912
|
-
|
|
1917
|
+
let M = r5;
|
|
1918
|
+
w([
|
|
1913
1919
|
r()
|
|
1914
1920
|
], M.prototype, "value");
|
|
1915
|
-
|
|
1921
|
+
w([
|
|
1916
1922
|
r()
|
|
1917
1923
|
], M.prototype, "size");
|
|
1918
|
-
|
|
1924
|
+
w([
|
|
1919
1925
|
r({ type: Boolean })
|
|
1920
1926
|
], M.prototype, "disabled");
|
|
1921
|
-
|
|
1927
|
+
w([
|
|
1922
1928
|
r({ type: Boolean })
|
|
1923
1929
|
], M.prototype, "readonly");
|
|
1924
|
-
|
|
1930
|
+
w([
|
|
1925
1931
|
r()
|
|
1926
1932
|
], M.prototype, "placeholder");
|
|
1927
|
-
|
|
1933
|
+
w([
|
|
1928
1934
|
r()
|
|
1929
1935
|
], M.prototype, "inputid");
|
|
1930
|
-
|
|
1936
|
+
w([
|
|
1931
1937
|
r()
|
|
1932
1938
|
], M.prototype, "status");
|
|
1933
|
-
|
|
1934
|
-
|
|
1939
|
+
w([
|
|
1940
|
+
N1("input")
|
|
1935
1941
|
], M.prototype, "inputEl");
|
|
1936
1942
|
customElements.get("anduin-input") || customElements.define("anduin-input", M);
|
|
1937
|
-
var
|
|
1938
|
-
for (var o = void 0, i =
|
|
1939
|
-
(n =
|
|
1940
|
-
return o &&
|
|
1943
|
+
var o4 = Object.defineProperty, $ = (C, e, t, l) => {
|
|
1944
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1945
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
1946
|
+
return o && o4(e, t, o), o;
|
|
1941
1947
|
};
|
|
1942
|
-
const
|
|
1948
|
+
const l4 = "anduin-textarea:change", a5 = class a5 extends c {
|
|
1943
1949
|
constructor() {
|
|
1944
1950
|
super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
|
|
1945
1951
|
}
|
|
1946
1952
|
connectedCallback() {
|
|
1947
1953
|
super.connectedCallback();
|
|
1948
1954
|
const e = this.closest("anduin-field");
|
|
1949
|
-
e && e.addEventListener(
|
|
1955
|
+
e && e.addEventListener(b1, (t) => {
|
|
1950
1956
|
var o;
|
|
1951
|
-
const
|
|
1952
|
-
this.inputid && this.inputid ===
|
|
1957
|
+
const l = t;
|
|
1958
|
+
this.inputid && this.inputid === l.detail && ((o = this.textareaEl) == null || o.focus());
|
|
1953
1959
|
});
|
|
1954
1960
|
}
|
|
1955
1961
|
updated() {
|
|
1956
1962
|
this.textareaEl && this.textareaEl.value !== this.value && (this.textareaEl.value = this.value);
|
|
1957
1963
|
}
|
|
1958
1964
|
onInput() {
|
|
1959
|
-
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(
|
|
1965
|
+
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(l4, {
|
|
1960
1966
|
detail: this.value,
|
|
1961
1967
|
bubbles: !0,
|
|
1962
1968
|
composed: !0
|
|
@@ -1980,7 +1986,7 @@ const X2 = "anduin-textarea:change", C5 = class C5 extends u {
|
|
|
1980
1986
|
`;
|
|
1981
1987
|
}
|
|
1982
1988
|
};
|
|
1983
|
-
|
|
1989
|
+
a5.styles = h`
|
|
1984
1990
|
:host { display: block; font-family: var(--font-sans); }
|
|
1985
1991
|
.textarea-container { position: relative; display: flex; align-items: stretch; }
|
|
1986
1992
|
.textarea {
|
|
@@ -1998,46 +2004,46 @@ C5.styles = h`
|
|
|
1998
2004
|
.textarea--warning { border-color: var(--color-warning-4); }
|
|
1999
2005
|
.textarea--loading { border-color: var(--color-gray-4); }
|
|
2000
2006
|
`;
|
|
2001
|
-
let
|
|
2002
|
-
|
|
2007
|
+
let Z = a5;
|
|
2008
|
+
$([
|
|
2003
2009
|
r()
|
|
2004
|
-
],
|
|
2005
|
-
|
|
2010
|
+
], Z.prototype, "value");
|
|
2011
|
+
$([
|
|
2006
2012
|
r({ type: Boolean })
|
|
2007
|
-
],
|
|
2008
|
-
|
|
2013
|
+
], Z.prototype, "disabled");
|
|
2014
|
+
$([
|
|
2009
2015
|
r({ type: Boolean })
|
|
2010
|
-
],
|
|
2011
|
-
|
|
2016
|
+
], Z.prototype, "readonly");
|
|
2017
|
+
$([
|
|
2012
2018
|
r()
|
|
2013
|
-
],
|
|
2014
|
-
|
|
2019
|
+
], Z.prototype, "placeholder");
|
|
2020
|
+
$([
|
|
2015
2021
|
r()
|
|
2016
|
-
],
|
|
2017
|
-
|
|
2022
|
+
], Z.prototype, "inputid");
|
|
2023
|
+
$([
|
|
2018
2024
|
r({ type: Number })
|
|
2019
|
-
],
|
|
2020
|
-
|
|
2025
|
+
], Z.prototype, "rows");
|
|
2026
|
+
$([
|
|
2021
2027
|
r()
|
|
2022
|
-
],
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
],
|
|
2026
|
-
customElements.get("anduin-textarea") || customElements.define("anduin-textarea",
|
|
2027
|
-
var
|
|
2028
|
-
for (var o = void 0, i =
|
|
2029
|
-
(n =
|
|
2030
|
-
return o &&
|
|
2028
|
+
], Z.prototype, "status");
|
|
2029
|
+
$([
|
|
2030
|
+
N1("textarea")
|
|
2031
|
+
], Z.prototype, "textareaEl");
|
|
2032
|
+
customElements.get("anduin-textarea") || customElements.define("anduin-textarea", Z);
|
|
2033
|
+
var C4 = Object.defineProperty, m = (C, e, t, l) => {
|
|
2034
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2035
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
2036
|
+
return o && C4(e, t, o), o;
|
|
2031
2037
|
};
|
|
2032
|
-
const
|
|
2038
|
+
const t2 = "anduin-tab:trigger-click", m1 = "anduin-tab:value-changed", i4 = "anduin-tab:change", s5 = class s5 extends c {
|
|
2033
2039
|
constructor() {
|
|
2034
2040
|
super(...arguments), this.defaultValue = "", this.value = "";
|
|
2035
2041
|
}
|
|
2036
2042
|
connectedCallback() {
|
|
2037
|
-
super.connectedCallback(), this.addEventListener(
|
|
2043
|
+
super.connectedCallback(), this.addEventListener(t2, (e) => {
|
|
2038
2044
|
e.stopPropagation();
|
|
2039
2045
|
const t = e;
|
|
2040
|
-
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(
|
|
2046
|
+
this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(i4, { detail: t.detail, bubbles: !0, composed: !0 }));
|
|
2041
2047
|
}), requestAnimationFrame(() => {
|
|
2042
2048
|
const e = this.value || this.defaultValue;
|
|
2043
2049
|
e && (this.value || (this.value = e), this.broadcastValueChanged(e));
|
|
@@ -2047,34 +2053,34 @@ const W5 = "anduin-tab:trigger-click", g1 = "anduin-tab:value-changed", K2 = "an
|
|
|
2047
2053
|
e.has("value") && this.value && this.broadcastValueChanged(this.value);
|
|
2048
2054
|
}
|
|
2049
2055
|
broadcastValueChanged(e) {
|
|
2050
|
-
this.dispatchEvent(new CustomEvent(
|
|
2056
|
+
this.dispatchEvent(new CustomEvent(m1, { detail: e, bubbles: !1, composed: !1 }));
|
|
2051
2057
|
}
|
|
2052
2058
|
render() {
|
|
2053
2059
|
return d`<div class="tabs" part="tabs"><slot></slot></div>`;
|
|
2054
2060
|
}
|
|
2055
2061
|
};
|
|
2056
|
-
|
|
2062
|
+
s5.styles = h`
|
|
2057
2063
|
:host { display: flex; flex-direction: column; font-family: var(--font-sans); }
|
|
2058
2064
|
.tabs { display: flex; flex-direction: column; width: 100%; }
|
|
2059
2065
|
`;
|
|
2060
|
-
let
|
|
2061
|
-
|
|
2066
|
+
let e1 = s5;
|
|
2067
|
+
m([
|
|
2062
2068
|
r({ attribute: "default-value" })
|
|
2063
|
-
],
|
|
2064
|
-
|
|
2069
|
+
], e1.prototype, "defaultValue");
|
|
2070
|
+
m([
|
|
2065
2071
|
r()
|
|
2066
|
-
],
|
|
2067
|
-
const
|
|
2072
|
+
], e1.prototype, "value");
|
|
2073
|
+
const d5 = class d5 extends c {
|
|
2068
2074
|
constructor() {
|
|
2069
2075
|
super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
|
|
2070
2076
|
}
|
|
2071
2077
|
connectedCallback() {
|
|
2072
2078
|
super.connectedCallback();
|
|
2073
2079
|
const e = this.closest("anduin-tabs");
|
|
2074
|
-
e && e.addEventListener(
|
|
2075
|
-
const
|
|
2076
|
-
this.lastActiveValue =
|
|
2077
|
-
this.animateIndicator(
|
|
2080
|
+
e && e.addEventListener(m1, (t) => {
|
|
2081
|
+
const l = t;
|
|
2082
|
+
this.lastActiveValue = l.detail, requestAnimationFrame(() => {
|
|
2083
|
+
this.animateIndicator(l.detail);
|
|
2078
2084
|
});
|
|
2079
2085
|
});
|
|
2080
2086
|
}
|
|
@@ -2089,8 +2095,8 @@ const i5 = class i5 extends u {
|
|
|
2089
2095
|
}
|
|
2090
2096
|
animateIndicator(e) {
|
|
2091
2097
|
const t = this.querySelectorAll(":scope > anduin-tab-trigger");
|
|
2092
|
-
for (let
|
|
2093
|
-
const o = t[
|
|
2098
|
+
for (let l = 0; l < t.length; l++) {
|
|
2099
|
+
const o = t[l];
|
|
2094
2100
|
if (o.getAttribute("value") === e) {
|
|
2095
2101
|
const i = o.getBoundingClientRect(), n = this.getBoundingClientRect(), a = i.left - n.left + this.scrollLeft;
|
|
2096
2102
|
this.indicator && (this.indicator.style.width = `${i.width}px`, this.indicator.style.transform = `translateX(${a}px)`);
|
|
@@ -2107,7 +2113,7 @@ const i5 = class i5 extends u {
|
|
|
2107
2113
|
`;
|
|
2108
2114
|
}
|
|
2109
2115
|
};
|
|
2110
|
-
|
|
2116
|
+
d5.styles = h`
|
|
2111
2117
|
:host { display: block; font-family: var(--font-sans); }
|
|
2112
2118
|
.tabs-list {
|
|
2113
2119
|
display: flex; font-weight: 500; background-color: var(--color-gray-0);
|
|
@@ -2122,27 +2128,27 @@ i5.styles = h`
|
|
|
2122
2128
|
left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
|
|
2123
2129
|
}
|
|
2124
2130
|
`;
|
|
2125
|
-
let
|
|
2126
|
-
|
|
2131
|
+
let t1 = d5;
|
|
2132
|
+
m([
|
|
2127
2133
|
r()
|
|
2128
|
-
],
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
],
|
|
2132
|
-
const
|
|
2134
|
+
], t1.prototype, "alignment");
|
|
2135
|
+
m([
|
|
2136
|
+
N1(".tabs-list__indicator")
|
|
2137
|
+
], t1.prototype, "indicator");
|
|
2138
|
+
const c5 = class c5 extends c {
|
|
2133
2139
|
constructor() {
|
|
2134
|
-
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.isActive = !1;
|
|
2140
|
+
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
|
|
2135
2141
|
}
|
|
2136
2142
|
connectedCallback() {
|
|
2137
2143
|
super.connectedCallback();
|
|
2138
2144
|
const e = this.closest("anduin-tabs");
|
|
2139
|
-
e && e.addEventListener(
|
|
2140
|
-
const
|
|
2141
|
-
this.isActive =
|
|
2145
|
+
e && e.addEventListener(m1, (t) => {
|
|
2146
|
+
const l = t;
|
|
2147
|
+
this.isActive = l.detail === this.value;
|
|
2142
2148
|
});
|
|
2143
2149
|
}
|
|
2144
2150
|
onClick() {
|
|
2145
|
-
this.dispatchEvent(new CustomEvent(
|
|
2151
|
+
this.dispatchEvent(new CustomEvent(t2, { detail: this.value, bubbles: !0, composed: !0 }));
|
|
2146
2152
|
}
|
|
2147
2153
|
render() {
|
|
2148
2154
|
return d`
|
|
@@ -2157,45 +2163,64 @@ const n5 = class n5 extends u {
|
|
|
2157
2163
|
<div class="tab-trigger__content">
|
|
2158
2164
|
${this.startIcon ? d`<anduin-icon name="${this.startIcon}" size="16"></anduin-icon>` : p}
|
|
2159
2165
|
<slot></slot>
|
|
2166
|
+
${this.showBadge ? d`<span class="tab-trigger__badge">${this.badgeCount}</span>` : p}
|
|
2160
2167
|
</div>
|
|
2161
2168
|
</button>
|
|
2162
2169
|
`;
|
|
2163
2170
|
}
|
|
2164
2171
|
};
|
|
2165
|
-
|
|
2172
|
+
c5.styles = h`
|
|
2166
2173
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2167
|
-
.tab-trigger {
|
|
2168
|
-
|
|
2174
|
+
.tab-trigger {
|
|
2175
|
+
cursor: pointer; background: none; border: none; display: block;
|
|
2176
|
+
font-family: var(--font-sans); font-size: 13px; line-height: 20px;
|
|
2177
|
+
padding: 4px 0 6px;
|
|
2178
|
+
}
|
|
2179
|
+
.tab-trigger__content { padding: 8px 12px; border-radius: 4px; display: flex; align-items: center; gap: 8px; }
|
|
2169
2180
|
.tab-trigger--active { color: var(--color-primary-5); }
|
|
2170
2181
|
.tab-trigger--active .tab-trigger__content:hover { background-color: var(--color-primary-1); }
|
|
2171
2182
|
.tab-trigger--normal { color: var(--color-gray-7); }
|
|
2172
|
-
.tab-trigger--normal
|
|
2183
|
+
.tab-trigger--normal .tab-trigger__content { opacity: 0.8; }
|
|
2184
|
+
.tab-trigger--normal:hover { color: var(--color-gray-9); }
|
|
2185
|
+
.tab-trigger--normal:hover .tab-trigger__content { opacity: 1; }
|
|
2173
2186
|
.tab-trigger--normal .tab-trigger__content:hover { background-color: var(--color-gray-3); }
|
|
2174
2187
|
.tab-trigger[disabled] { cursor: not-allowed; opacity: 0.4; pointer-events: none; }
|
|
2188
|
+
.tab-trigger__badge {
|
|
2189
|
+
background-color: var(--color-gray-3); border-radius: 8px; min-width: 16px;
|
|
2190
|
+
padding: 0 4px; display: flex; align-items: center; justify-content: center;
|
|
2191
|
+
font-size: 11px; line-height: 16px; font-weight: 590; letter-spacing: 0.066px;
|
|
2192
|
+
color: var(--color-gray-7); white-space: nowrap;
|
|
2193
|
+
}
|
|
2175
2194
|
`;
|
|
2176
|
-
let
|
|
2177
|
-
|
|
2195
|
+
let R = c5;
|
|
2196
|
+
m([
|
|
2178
2197
|
r()
|
|
2179
|
-
],
|
|
2180
|
-
|
|
2198
|
+
], R.prototype, "value");
|
|
2199
|
+
m([
|
|
2181
2200
|
r({ attribute: "start-icon" })
|
|
2182
|
-
],
|
|
2183
|
-
|
|
2201
|
+
], R.prototype, "startIcon");
|
|
2202
|
+
m([
|
|
2184
2203
|
r({ type: Boolean })
|
|
2185
|
-
],
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
],
|
|
2189
|
-
|
|
2204
|
+
], R.prototype, "disabled");
|
|
2205
|
+
m([
|
|
2206
|
+
r({ type: Boolean, attribute: "show-badge" })
|
|
2207
|
+
], R.prototype, "showBadge");
|
|
2208
|
+
m([
|
|
2209
|
+
r({ attribute: "badge-count" })
|
|
2210
|
+
], R.prototype, "badgeCount");
|
|
2211
|
+
m([
|
|
2212
|
+
H1()
|
|
2213
|
+
], R.prototype, "isActive");
|
|
2214
|
+
const u5 = class u5 extends c {
|
|
2190
2215
|
constructor() {
|
|
2191
2216
|
super(...arguments), this.value = "", this.isActive = !1;
|
|
2192
2217
|
}
|
|
2193
2218
|
connectedCallback() {
|
|
2194
2219
|
super.connectedCallback();
|
|
2195
2220
|
const e = this.closest("anduin-tabs");
|
|
2196
|
-
e && e.addEventListener(
|
|
2197
|
-
const
|
|
2198
|
-
this.isActive =
|
|
2221
|
+
e && e.addEventListener(m1, (t) => {
|
|
2222
|
+
const l = t;
|
|
2223
|
+
this.isActive = l.detail === this.value;
|
|
2199
2224
|
});
|
|
2200
2225
|
}
|
|
2201
2226
|
render() {
|
|
@@ -2206,27 +2231,27 @@ const r5 = class r5 extends u {
|
|
|
2206
2231
|
`;
|
|
2207
2232
|
}
|
|
2208
2233
|
};
|
|
2209
|
-
|
|
2234
|
+
u5.styles = h`
|
|
2210
2235
|
:host { display: block; font-family: var(--font-sans); }
|
|
2211
2236
|
.tab-content { width: 100%; }
|
|
2212
2237
|
`;
|
|
2213
|
-
let
|
|
2214
|
-
|
|
2238
|
+
let o1 = u5;
|
|
2239
|
+
m([
|
|
2215
2240
|
r()
|
|
2216
|
-
],
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
],
|
|
2220
|
-
customElements.get("anduin-tabs") || customElements.define("anduin-tabs",
|
|
2221
|
-
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list",
|
|
2222
|
-
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger",
|
|
2223
|
-
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content",
|
|
2224
|
-
var
|
|
2225
|
-
for (var o = void 0, i =
|
|
2226
|
-
(n =
|
|
2227
|
-
return o &&
|
|
2241
|
+
], o1.prototype, "value");
|
|
2242
|
+
m([
|
|
2243
|
+
H1()
|
|
2244
|
+
], o1.prototype, "isActive");
|
|
2245
|
+
customElements.get("anduin-tabs") || customElements.define("anduin-tabs", e1);
|
|
2246
|
+
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", t1);
|
|
2247
|
+
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", R);
|
|
2248
|
+
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", o1);
|
|
2249
|
+
var n4 = Object.defineProperty, U1 = (C, e, t, l) => {
|
|
2250
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2251
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
2252
|
+
return o && n4(e, t, o), o;
|
|
2228
2253
|
};
|
|
2229
|
-
const
|
|
2254
|
+
const r4 = "anduin-tag-close:click", a4 = {
|
|
2230
2255
|
gray: "tag--light-gray",
|
|
2231
2256
|
primary: "tag--light-primary",
|
|
2232
2257
|
success: "tag--light-success",
|
|
@@ -2251,7 +2276,7 @@ const J2 = "anduin-tag-close:click", Q2 = {
|
|
|
2251
2276
|
customYellow: "tag--custom-yellow",
|
|
2252
2277
|
customYellowGreen: "tag--custom-yellow-green",
|
|
2253
2278
|
customYellowOrange: "tag--custom-yellow-orange"
|
|
2254
|
-
},
|
|
2279
|
+
}, s4 = {
|
|
2255
2280
|
gray: "tag__icon--light-gray",
|
|
2256
2281
|
primary: "tag__icon--light-primary",
|
|
2257
2282
|
success: "tag__icon--light-success",
|
|
@@ -2276,12 +2301,12 @@ const J2 = "anduin-tag-close:click", Q2 = {
|
|
|
2276
2301
|
customMagenta: "tag__icon--custom-magenta",
|
|
2277
2302
|
customBlueGreen: "tag__icon--custom-blue-green",
|
|
2278
2303
|
customPink: "tag__icon--custom-pink"
|
|
2279
|
-
},
|
|
2304
|
+
}, p5 = class p5 extends c {
|
|
2280
2305
|
constructor() {
|
|
2281
2306
|
super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
|
|
2282
2307
|
}
|
|
2283
2308
|
render() {
|
|
2284
|
-
const e =
|
|
2309
|
+
const e = a4[this.variant] || "tag--light-gray", t = s4[this.variant] || "tag__icon--light-gray";
|
|
2285
2310
|
return d`
|
|
2286
2311
|
<div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
|
|
2287
2312
|
${this.icon ? d`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : p}
|
|
@@ -2291,7 +2316,7 @@ const J2 = "anduin-tag-close:click", Q2 = {
|
|
|
2291
2316
|
`;
|
|
2292
2317
|
}
|
|
2293
2318
|
};
|
|
2294
|
-
|
|
2319
|
+
p5.styles = h`
|
|
2295
2320
|
:host { display: inline-flex; max-width: 100%; font-family: var(--font-sans); }
|
|
2296
2321
|
.tag {
|
|
2297
2322
|
font-weight: 500; font-size: 11px; height: 20px; padding-left: 6px; padding-right: 6px;
|
|
@@ -2339,19 +2364,19 @@ a5.styles = h`
|
|
|
2339
2364
|
.tag--custom-yellow-green { color: var(--color-gray-9); background-color: rgb(174,207,85); }
|
|
2340
2365
|
.tag--custom-yellow-orange { color: var(--color-gray-9); background-color: rgb(255,193,107); }
|
|
2341
2366
|
`;
|
|
2342
|
-
let
|
|
2343
|
-
|
|
2367
|
+
let I = p5;
|
|
2368
|
+
U1([
|
|
2344
2369
|
r()
|
|
2345
|
-
],
|
|
2346
|
-
|
|
2370
|
+
], I.prototype, "variant");
|
|
2371
|
+
U1([
|
|
2347
2372
|
r()
|
|
2348
|
-
],
|
|
2349
|
-
|
|
2373
|
+
], I.prototype, "icon");
|
|
2374
|
+
U1([
|
|
2350
2375
|
r({ type: Boolean })
|
|
2351
|
-
],
|
|
2352
|
-
const
|
|
2376
|
+
], I.prototype, "disabled");
|
|
2377
|
+
const h5 = class h5 extends c {
|
|
2353
2378
|
onClick() {
|
|
2354
|
-
this.dispatchEvent(new CustomEvent(
|
|
2379
|
+
this.dispatchEvent(new CustomEvent(r4, { bubbles: !0, composed: !0 }));
|
|
2355
2380
|
}
|
|
2356
2381
|
render() {
|
|
2357
2382
|
return d`
|
|
@@ -2361,7 +2386,7 @@ const s5 = class s5 extends u {
|
|
|
2361
2386
|
`;
|
|
2362
2387
|
}
|
|
2363
2388
|
};
|
|
2364
|
-
|
|
2389
|
+
h5.styles = h`
|
|
2365
2390
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2366
2391
|
.tag-close__button {
|
|
2367
2392
|
flex: none; width: 16px; height: 16px; display: flex; align-items: center;
|
|
@@ -2371,15 +2396,15 @@ s5.styles = h`
|
|
|
2371
2396
|
.tag-close__button:hover { opacity: 0.7; }
|
|
2372
2397
|
.tag-close__button:active { opacity: 0.5; }
|
|
2373
2398
|
`;
|
|
2374
|
-
let
|
|
2375
|
-
customElements.get("anduin-tag") || customElements.define("anduin-tag",
|
|
2376
|
-
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close",
|
|
2377
|
-
var
|
|
2378
|
-
for (var o = void 0, i =
|
|
2379
|
-
(n =
|
|
2380
|
-
return o &&
|
|
2399
|
+
let w1 = h5;
|
|
2400
|
+
customElements.get("anduin-tag") || customElements.define("anduin-tag", I);
|
|
2401
|
+
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", w1);
|
|
2402
|
+
var d4 = Object.defineProperty, o2 = (C, e, t, l) => {
|
|
2403
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2404
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
2405
|
+
return o && d4(e, t, o), o;
|
|
2381
2406
|
};
|
|
2382
|
-
const
|
|
2407
|
+
const l2 = "anduin-tooltip:show", j1 = "anduin-tooltip:hide", C2 = "anduin-tooltip:trigger-mounted", i2 = "anduin-tooltip:content-popup-mounted", n2 = "anduin-tooltip:content-popup-unmounted", r2 = "anduin-tooltip:visibility-changed", c4 = [
|
|
2383
2408
|
"top-start",
|
|
2384
2409
|
"top-center",
|
|
2385
2410
|
"top-end",
|
|
@@ -2393,94 +2418,94 @@ const F5 = "anduin-tooltip:show", B1 = "anduin-tooltip:hide", K5 = "anduin-toolt
|
|
|
2393
2418
|
"left-center",
|
|
2394
2419
|
"left-end"
|
|
2395
2420
|
];
|
|
2396
|
-
function
|
|
2397
|
-
switch (
|
|
2421
|
+
function O5(C, e, t, l, o) {
|
|
2422
|
+
switch (l) {
|
|
2398
2423
|
case "top-start":
|
|
2399
|
-
return { left:
|
|
2424
|
+
return { left: C.left, top: C.top - t - o };
|
|
2400
2425
|
case "top-center":
|
|
2401
|
-
return { left:
|
|
2426
|
+
return { left: C.left + C.width / 2 - e / 2, top: C.top - t - o };
|
|
2402
2427
|
case "top-end":
|
|
2403
|
-
return { left:
|
|
2428
|
+
return { left: C.left + C.width - e, top: C.top - t - o };
|
|
2404
2429
|
case "right-start":
|
|
2405
|
-
return { left:
|
|
2430
|
+
return { left: C.right + o, top: C.top };
|
|
2406
2431
|
case "right-center":
|
|
2407
|
-
return { left:
|
|
2432
|
+
return { left: C.right + o, top: C.top + C.height / 2 - t / 2 };
|
|
2408
2433
|
case "right-end":
|
|
2409
|
-
return { left:
|
|
2434
|
+
return { left: C.right + o, top: C.top + C.height - t };
|
|
2410
2435
|
case "bottom-start":
|
|
2411
|
-
return { left:
|
|
2436
|
+
return { left: C.left, top: C.bottom + o };
|
|
2412
2437
|
case "bottom-center":
|
|
2413
|
-
return { left:
|
|
2438
|
+
return { left: C.left + C.width / 2 - e / 2, top: C.bottom + o };
|
|
2414
2439
|
case "bottom-end":
|
|
2415
|
-
return { left:
|
|
2440
|
+
return { left: C.left + C.width - e, top: C.bottom + o };
|
|
2416
2441
|
case "left-start":
|
|
2417
|
-
return { left:
|
|
2442
|
+
return { left: C.left - e - o, top: C.top };
|
|
2418
2443
|
case "left-center":
|
|
2419
|
-
return { left:
|
|
2444
|
+
return { left: C.left - e - o, top: C.top + C.height / 2 - t / 2 };
|
|
2420
2445
|
case "left-end":
|
|
2421
|
-
return { left:
|
|
2446
|
+
return { left: C.left - e - o, top: C.top + C.height - t };
|
|
2422
2447
|
default:
|
|
2423
2448
|
return { left: 0, top: 0 };
|
|
2424
2449
|
}
|
|
2425
2450
|
}
|
|
2426
|
-
function
|
|
2427
|
-
return e.right >=
|
|
2451
|
+
function B5(C, e) {
|
|
2452
|
+
return e.right >= C.left && e.left <= C.right && e.top <= C.bottom && e.bottom >= C.top;
|
|
2428
2453
|
}
|
|
2429
|
-
function
|
|
2430
|
-
const t = Math.max(
|
|
2431
|
-
return o < t || i <
|
|
2454
|
+
function I5(C, e) {
|
|
2455
|
+
const t = Math.max(C.left, e.left), l = Math.max(C.top, e.top), o = Math.min(C.right, e.right), i = Math.min(C.bottom, e.bottom);
|
|
2456
|
+
return o < t || i < l ? 0 : (o - t) * (i - l);
|
|
2432
2457
|
}
|
|
2433
|
-
function
|
|
2458
|
+
function u4(C, e, t, l = 8) {
|
|
2434
2459
|
const o = window.innerWidth, i = window.innerHeight, n = { left: 0, top: 0, right: o, bottom: i }, a = e.width, s = e.height;
|
|
2435
|
-
if (!
|
|
2436
|
-
{ left:
|
|
2460
|
+
if (!B5(
|
|
2461
|
+
{ left: C.left, top: C.top, right: C.right, bottom: C.bottom },
|
|
2437
2462
|
n
|
|
2438
2463
|
)) return null;
|
|
2439
|
-
const
|
|
2440
|
-
if (
|
|
2464
|
+
const u = O5(C, a, s, t, l), L = c4.map((g) => ({ p: g, off: O5(C, a, s, g, l) })).filter(({ off: g }) => B5({ left: g.left, top: g.top, right: g.left + a, bottom: g.top + s }, n));
|
|
2465
|
+
if (L.length === 0)
|
|
2441
2466
|
return {
|
|
2442
2467
|
placement: t,
|
|
2443
|
-
left: Math.round(Math.min(Math.max(
|
|
2444
|
-
top: Math.round(Math.min(Math.max(
|
|
2468
|
+
left: Math.round(Math.min(Math.max(u.left, 0), o - a)),
|
|
2469
|
+
top: Math.round(Math.min(Math.max(u.top, 0), i - s))
|
|
2445
2470
|
};
|
|
2446
|
-
|
|
2447
|
-
const
|
|
2448
|
-
if (
|
|
2449
|
-
const
|
|
2450
|
-
return
|
|
2471
|
+
L.sort((g, V) => {
|
|
2472
|
+
const s2 = { left: g.off.left, top: g.off.top, right: g.off.left + a, bottom: g.off.top + s }, d2 = { left: V.off.left, top: V.off.top, right: V.off.left + a, bottom: V.off.top + s }, M5 = I5(s2, n), Z5 = I5(d2, n);
|
|
2473
|
+
if (Z5 !== M5) return Z5 - M5;
|
|
2474
|
+
const c2 = Math.abs(g.off.left - u.left) + Math.abs(g.off.top - u.top), u2 = Math.abs(V.off.left - u.left) + Math.abs(V.off.top - u.top);
|
|
2475
|
+
return c2 - u2;
|
|
2451
2476
|
});
|
|
2452
|
-
const { p:
|
|
2477
|
+
const { p: v, off: b } = L[0];
|
|
2453
2478
|
return {
|
|
2454
|
-
placement:
|
|
2479
|
+
placement: v,
|
|
2455
2480
|
left: Math.round(Math.min(Math.max(b.left, 0), o - a)),
|
|
2456
2481
|
top: Math.round(Math.min(Math.max(b.top, 0), i - s))
|
|
2457
2482
|
};
|
|
2458
2483
|
}
|
|
2459
|
-
function
|
|
2460
|
-
return
|
|
2484
|
+
function $1(C) {
|
|
2485
|
+
return C.split("-")[0] || "top";
|
|
2461
2486
|
}
|
|
2462
|
-
function
|
|
2463
|
-
let
|
|
2487
|
+
function p4(C, e, t) {
|
|
2488
|
+
let l = !1, o = t.length - 1;
|
|
2464
2489
|
for (let i = 0; i < t.length; i++) {
|
|
2465
|
-
const n = t[i][0], a = t[i][1], s = t[o][0],
|
|
2466
|
-
a > e !=
|
|
2490
|
+
const n = t[i][0], a = t[i][1], s = t[o][0], u = t[o][1];
|
|
2491
|
+
a > e != u > e && C < (s - n) * (e - a) / (u - a) + n && (l = !l), o = i;
|
|
2467
2492
|
}
|
|
2468
|
-
return
|
|
2493
|
+
return l;
|
|
2469
2494
|
}
|
|
2470
|
-
const
|
|
2495
|
+
const v5 = class v5 extends c {
|
|
2471
2496
|
constructor() {
|
|
2472
2497
|
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;
|
|
2473
2498
|
}
|
|
2474
2499
|
connectedCallback() {
|
|
2475
|
-
super.connectedCallback(), this.addEventListener(
|
|
2500
|
+
super.connectedCallback(), this.addEventListener(C2, (e) => {
|
|
2476
2501
|
e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
|
|
2477
|
-
}), this.addEventListener(
|
|
2502
|
+
}), this.addEventListener(i2, (e) => {
|
|
2478
2503
|
e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
|
|
2479
|
-
}), this.addEventListener(
|
|
2504
|
+
}), this.addEventListener(n2, (e) => {
|
|
2480
2505
|
e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
|
|
2481
|
-
}), this.addEventListener(
|
|
2506
|
+
}), this.addEventListener(l2, (e) => {
|
|
2482
2507
|
e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
|
|
2483
|
-
}), this.addEventListener(
|
|
2508
|
+
}), this.addEventListener(j1, (e) => {
|
|
2484
2509
|
e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
|
|
2485
2510
|
});
|
|
2486
2511
|
}
|
|
@@ -2495,9 +2520,9 @@ const d5 = class d5 extends u {
|
|
|
2495
2520
|
}
|
|
2496
2521
|
startPositionLoop() {
|
|
2497
2522
|
this.stopPositionLoop(), this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN;
|
|
2498
|
-
const e = this.triggerElement, t = this.contentPopupElement,
|
|
2523
|
+
const e = this.triggerElement, t = this.contentPopupElement, l = this.placement, o = () => {
|
|
2499
2524
|
const i = e.getBoundingClientRect();
|
|
2500
|
-
(i.top !== this.prevTriggerTop || i.left !== this.prevTriggerLeft) && (this.prevTriggerTop = i.top, this.prevTriggerLeft = i.left, this.positionPopup(t, e,
|
|
2525
|
+
(i.top !== this.prevTriggerTop || i.left !== this.prevTriggerLeft) && (this.prevTriggerTop = i.top, this.prevTriggerLeft = i.left, this.positionPopup(t, e, l)), this.rafId = requestAnimationFrame(o);
|
|
2501
2526
|
};
|
|
2502
2527
|
this.rafId = requestAnimationFrame(o);
|
|
2503
2528
|
}
|
|
@@ -2505,67 +2530,67 @@ const d5 = class d5 extends u {
|
|
|
2505
2530
|
this.rafId && (cancelAnimationFrame(this.rafId), this.rafId = 0), this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN;
|
|
2506
2531
|
}
|
|
2507
2532
|
computeContainingBlockOffset(e) {
|
|
2508
|
-
const t = e,
|
|
2533
|
+
const t = e, l = t.style.transform;
|
|
2509
2534
|
t.style.transform = "none";
|
|
2510
2535
|
const o = e.getBoundingClientRect();
|
|
2511
|
-
this.containingBlockLeft = o.left, this.containingBlockTop = o.top, t.style.transform =
|
|
2536
|
+
this.containingBlockLeft = o.left, this.containingBlockTop = o.top, t.style.transform = l;
|
|
2512
2537
|
}
|
|
2513
|
-
positionPopup(e, t,
|
|
2514
|
-
const o = t.getBoundingClientRect(), i = e.getBoundingClientRect(), n =
|
|
2538
|
+
positionPopup(e, t, l) {
|
|
2539
|
+
const o = t.getBoundingClientRect(), i = e.getBoundingClientRect(), n = u4(o, i, l, 8);
|
|
2515
2540
|
if (n) {
|
|
2516
2541
|
const a = e;
|
|
2517
2542
|
a.style.transform = `translate(${n.left - this.containingBlockLeft}px, ${n.top - this.containingBlockTop}px)`;
|
|
2518
|
-
const s =
|
|
2519
|
-
if (s !==
|
|
2520
|
-
const
|
|
2521
|
-
|
|
2543
|
+
const s = $1(n.placement), u = $1(l);
|
|
2544
|
+
if (s !== u) {
|
|
2545
|
+
const L = e.querySelector(".tooltip-arrow");
|
|
2546
|
+
L && (L.classList.remove(`tooltip-arrow--${u}`), L.classList.add(`tooltip-arrow--${s}`));
|
|
2522
2547
|
}
|
|
2523
2548
|
}
|
|
2524
2549
|
}
|
|
2525
2550
|
broadcastVisibilityChanged(e) {
|
|
2526
|
-
this.dispatchEvent(new CustomEvent(
|
|
2551
|
+
this.dispatchEvent(new CustomEvent(r2, { detail: e, bubbles: !1, composed: !1 }));
|
|
2527
2552
|
}
|
|
2528
2553
|
render() {
|
|
2529
2554
|
return d`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
|
|
2530
2555
|
}
|
|
2531
2556
|
};
|
|
2532
|
-
|
|
2557
|
+
v5.styles = h`
|
|
2533
2558
|
:host { display: inline-block; position: relative; max-width: 100%; font-family: var(--font-sans); }
|
|
2534
2559
|
.tooltip-root { display: inline-block; position: relative; max-width: 100%; }
|
|
2535
2560
|
`;
|
|
2536
|
-
let
|
|
2537
|
-
|
|
2561
|
+
let l1 = v5;
|
|
2562
|
+
o2([
|
|
2538
2563
|
r({ type: Boolean })
|
|
2539
|
-
],
|
|
2540
|
-
|
|
2564
|
+
], l1.prototype, "disabled");
|
|
2565
|
+
o2([
|
|
2541
2566
|
r()
|
|
2542
|
-
],
|
|
2543
|
-
const
|
|
2567
|
+
], l1.prototype, "placement");
|
|
2568
|
+
const L5 = class L5 extends c {
|
|
2544
2569
|
firstUpdated() {
|
|
2545
2570
|
requestAnimationFrame(() => {
|
|
2546
|
-
this.dispatchEvent(new CustomEvent(
|
|
2571
|
+
this.dispatchEvent(new CustomEvent(C2, { detail: this, bubbles: !0, composed: !0 }));
|
|
2547
2572
|
}), this.addEventListener("pointerenter", () => {
|
|
2548
|
-
this.dispatchEvent(new CustomEvent(
|
|
2573
|
+
this.dispatchEvent(new CustomEvent(l2, { bubbles: !0, composed: !0 }));
|
|
2549
2574
|
}), this.addEventListener("click", () => {
|
|
2550
|
-
this.dispatchEvent(new CustomEvent(
|
|
2575
|
+
this.dispatchEvent(new CustomEvent(j1, { bubbles: !0, composed: !0 }));
|
|
2551
2576
|
});
|
|
2552
2577
|
}
|
|
2553
2578
|
render() {
|
|
2554
2579
|
return d`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
|
|
2555
2580
|
}
|
|
2556
2581
|
};
|
|
2557
|
-
|
|
2582
|
+
L5.styles = h`
|
|
2558
2583
|
:host { display: inline-block; max-width: 100%; font-family: var(--font-sans); }
|
|
2559
2584
|
.tooltip-trigger { display: flex; align-items: center; max-width: 100%; }
|
|
2560
2585
|
`;
|
|
2561
|
-
let
|
|
2562
|
-
const
|
|
2586
|
+
let E1 = L5;
|
|
2587
|
+
const g5 = class g5 extends c {
|
|
2563
2588
|
constructor() {
|
|
2564
2589
|
super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
|
|
2565
2590
|
var i, n;
|
|
2566
2591
|
if (!this.graceArea) return;
|
|
2567
|
-
const t = e.target,
|
|
2568
|
-
|
|
2592
|
+
const t = e.target, l = ((i = this.triggerEl) == null ? void 0 : i.contains(t)) ?? !1, o = ((n = this.popupEl) == null ? void 0 : n.contains(t)) ?? !1;
|
|
2593
|
+
l || o ? this.graceArea = null : p4(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(j1, { bubbles: !0, composed: !0 })));
|
|
2569
2594
|
}, this.handleTriggerLeave = (e) => {
|
|
2570
2595
|
this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
|
|
2571
2596
|
}, this.handleContentLeave = (e) => {
|
|
@@ -2575,16 +2600,16 @@ const u5 = class u5 extends u {
|
|
|
2575
2600
|
connectedCallback() {
|
|
2576
2601
|
super.connectedCallback();
|
|
2577
2602
|
const e = this.closest("anduin-tooltip");
|
|
2578
|
-
e && e.addEventListener(
|
|
2579
|
-
const
|
|
2580
|
-
|
|
2603
|
+
e && e.addEventListener(r2, (t) => {
|
|
2604
|
+
const l = t.detail;
|
|
2605
|
+
l.startsWith("show:") ? this.showPopup(l.slice(5)) : this.hidePopup();
|
|
2581
2606
|
});
|
|
2582
2607
|
}
|
|
2583
2608
|
disconnectedCallback() {
|
|
2584
2609
|
super.disconnectedCallback(), this.hidePopup();
|
|
2585
2610
|
}
|
|
2586
|
-
createGraceArea(e, t,
|
|
2587
|
-
const o = t.getBoundingClientRect(), i =
|
|
2611
|
+
createGraceArea(e, t, l) {
|
|
2612
|
+
const o = t.getBoundingClientRect(), i = l.clientX, n = l.clientY;
|
|
2588
2613
|
this.graceArea = [
|
|
2589
2614
|
[i, n],
|
|
2590
2615
|
[o.left, o.top],
|
|
@@ -2601,29 +2626,29 @@ const u5 = class u5 extends u {
|
|
|
2601
2626
|
}
|
|
2602
2627
|
showPopup(e) {
|
|
2603
2628
|
this.hidePopup();
|
|
2604
|
-
const t =
|
|
2605
|
-
|
|
2629
|
+
const t = $1(e), l = document.createElement("div");
|
|
2630
|
+
l.className = "tooltip-popup", l.setAttribute("role", "tooltip");
|
|
2606
2631
|
const o = document.createElement("div");
|
|
2607
2632
|
o.className = `tooltip-arrow tooltip-arrow--${t}`;
|
|
2608
2633
|
const i = document.createElement("div");
|
|
2609
|
-
i.className = "tooltip-body", i.appendChild(document.createElement("slot")),
|
|
2634
|
+
i.className = "tooltip-body", i.appendChild(document.createElement("slot")), l.appendChild(o), l.appendChild(i);
|
|
2610
2635
|
const n = this.shadowRoot.querySelector(".tooltip-content-wrapper");
|
|
2611
|
-
n && n.appendChild(
|
|
2636
|
+
n && n.appendChild(l), this.popupEl = l;
|
|
2612
2637
|
const a = this.closest("anduin-tooltip");
|
|
2613
2638
|
if (a) {
|
|
2614
2639
|
const s = a.querySelector("anduin-tooltip-trigger");
|
|
2615
|
-
s && this.setupGraceAreaListeners(s,
|
|
2640
|
+
s && this.setupGraceAreaListeners(s, l);
|
|
2616
2641
|
}
|
|
2617
|
-
this.dispatchEvent(new CustomEvent(
|
|
2642
|
+
this.dispatchEvent(new CustomEvent(i2, { detail: l, bubbles: !0, composed: !0 }));
|
|
2618
2643
|
}
|
|
2619
2644
|
hidePopup() {
|
|
2620
|
-
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(
|
|
2645
|
+
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(n2, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
|
|
2621
2646
|
}
|
|
2622
2647
|
render() {
|
|
2623
2648
|
return d`<div class="tooltip-content-wrapper"></div>`;
|
|
2624
2649
|
}
|
|
2625
2650
|
};
|
|
2626
|
-
|
|
2651
|
+
g5.styles = h`
|
|
2627
2652
|
:host {
|
|
2628
2653
|
display: contents;
|
|
2629
2654
|
--tooltip-bg: var(--anduin-tooltip-content-background, var(--color-gray-9));
|
|
@@ -2647,16 +2672,16 @@ u5.styles = h`
|
|
|
2647
2672
|
.tooltip-arrow--left { right: -4px; top: 50%; transform: translateY(-50%); border-left-color: var(--tooltip-bg); border-right: none; }
|
|
2648
2673
|
.tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
|
|
2649
2674
|
`;
|
|
2650
|
-
let
|
|
2651
|
-
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip",
|
|
2652
|
-
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger",
|
|
2653
|
-
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content",
|
|
2654
|
-
var
|
|
2655
|
-
for (var o = void 0, i =
|
|
2656
|
-
(n =
|
|
2657
|
-
return o &&
|
|
2675
|
+
let P1 = g5;
|
|
2676
|
+
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", l1);
|
|
2677
|
+
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", E1);
|
|
2678
|
+
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", P1);
|
|
2679
|
+
var h4 = Object.defineProperty, v4 = (C, e, t, l) => {
|
|
2680
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2681
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
2682
|
+
return o && h4(e, t, o), o;
|
|
2658
2683
|
};
|
|
2659
|
-
const
|
|
2684
|
+
const L4 = "anduin-well-close:click", f5 = class f5 extends c {
|
|
2660
2685
|
constructor() {
|
|
2661
2686
|
super(...arguments), this.variant = "gray";
|
|
2662
2687
|
}
|
|
@@ -2675,107 +2700,431 @@ const r3 = "anduin-well-close:click", p5 = class p5 extends u {
|
|
|
2675
2700
|
`;
|
|
2676
2701
|
}
|
|
2677
2702
|
};
|
|
2678
|
-
|
|
2679
|
-
:host {
|
|
2703
|
+
f5.styles = h`
|
|
2704
|
+
:host {
|
|
2705
|
+
display: block;
|
|
2706
|
+
font-family: var(--font-sans);
|
|
2707
|
+
}
|
|
2680
2708
|
.well {
|
|
2681
|
-
display: flex;
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
.
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
.
|
|
2696
|
-
|
|
2697
|
-
|
|
2709
|
+
display: flex;
|
|
2710
|
+
align-items: flex-start;
|
|
2711
|
+
border-radius: 8px;
|
|
2712
|
+
line-height: 20px;
|
|
2713
|
+
padding: 12px;
|
|
2714
|
+
gap: 12px;
|
|
2715
|
+
}
|
|
2716
|
+
.well__icon {
|
|
2717
|
+
height: 20px;
|
|
2718
|
+
display: flex;
|
|
2719
|
+
align-items: center;
|
|
2720
|
+
justify-content: center;
|
|
2721
|
+
flex-shrink: 0;
|
|
2722
|
+
}
|
|
2723
|
+
.well__content {
|
|
2724
|
+
display: flex;
|
|
2725
|
+
flex: 1;
|
|
2726
|
+
flex-direction: column;
|
|
2727
|
+
gap: 4px;
|
|
2728
|
+
}
|
|
2729
|
+
.well__title {
|
|
2730
|
+
color: var(--color-gray-8);
|
|
2731
|
+
font-weight: 500;
|
|
2732
|
+
font-size: var(--text-15);
|
|
2733
|
+
}
|
|
2734
|
+
.well__close {
|
|
2735
|
+
flex-shrink: 0;
|
|
2736
|
+
}
|
|
2737
|
+
.well--gray {
|
|
2738
|
+
background-color: var(--color-gray-2);
|
|
2739
|
+
}
|
|
2740
|
+
.well--primary {
|
|
2741
|
+
background-color: var(--color-primary-1);
|
|
2742
|
+
}
|
|
2743
|
+
.well--success {
|
|
2744
|
+
background-color: var(--color-success-1);
|
|
2745
|
+
}
|
|
2746
|
+
.well--danger {
|
|
2747
|
+
background-color: var(--color-danger-1);
|
|
2748
|
+
}
|
|
2749
|
+
.well--warning {
|
|
2750
|
+
background-color: var(--color-warning-1);
|
|
2751
|
+
}
|
|
2752
|
+
.well__icon--gray {
|
|
2753
|
+
color: var(--color-gray-7);
|
|
2754
|
+
}
|
|
2755
|
+
.well__icon--primary {
|
|
2756
|
+
color: var(--color-primary-4);
|
|
2757
|
+
}
|
|
2758
|
+
.well__icon--success {
|
|
2759
|
+
color: var(--color-success-4);
|
|
2760
|
+
}
|
|
2761
|
+
.well__icon--danger {
|
|
2762
|
+
color: var(--color-danger-4);
|
|
2763
|
+
}
|
|
2764
|
+
.well__icon--warning {
|
|
2765
|
+
color: var(--color-warning-4);
|
|
2766
|
+
}
|
|
2698
2767
|
`;
|
|
2699
|
-
let
|
|
2700
|
-
|
|
2768
|
+
let g1 = f5;
|
|
2769
|
+
v4([
|
|
2701
2770
|
r()
|
|
2702
|
-
],
|
|
2703
|
-
const
|
|
2771
|
+
], g1.prototype, "variant");
|
|
2772
|
+
const H5 = class H5 extends c {
|
|
2704
2773
|
onClick() {
|
|
2705
|
-
this.dispatchEvent(
|
|
2774
|
+
this.dispatchEvent(
|
|
2775
|
+
new CustomEvent(L4, { bubbles: !0, composed: !0 })
|
|
2776
|
+
);
|
|
2706
2777
|
}
|
|
2707
2778
|
render() {
|
|
2708
2779
|
return d`
|
|
2709
|
-
<button
|
|
2780
|
+
<button
|
|
2781
|
+
class="well-close__button"
|
|
2782
|
+
part="well-close"
|
|
2783
|
+
@click=${this.onClick}
|
|
2784
|
+
>
|
|
2710
2785
|
<anduin-icon name="cross" size="16"></anduin-icon>
|
|
2711
2786
|
</button>
|
|
2712
2787
|
`;
|
|
2713
2788
|
}
|
|
2714
2789
|
};
|
|
2715
|
-
|
|
2716
|
-
:host {
|
|
2790
|
+
H5.styles = h`
|
|
2791
|
+
:host {
|
|
2792
|
+
display: inline-block;
|
|
2793
|
+
font-family: var(--font-sans);
|
|
2794
|
+
}
|
|
2717
2795
|
.well-close__button {
|
|
2718
|
-
display: inline-flex;
|
|
2719
|
-
|
|
2720
|
-
|
|
2796
|
+
display: inline-flex;
|
|
2797
|
+
align-items: center;
|
|
2798
|
+
justify-content: center;
|
|
2799
|
+
width: 24px;
|
|
2800
|
+
height: 24px;
|
|
2801
|
+
border: none;
|
|
2802
|
+
border-radius: 4px;
|
|
2803
|
+
background: transparent;
|
|
2804
|
+
cursor: pointer;
|
|
2805
|
+
color: var(--color-gray-8);
|
|
2806
|
+
padding: 0;
|
|
2807
|
+
}
|
|
2808
|
+
.well-close__button:hover {
|
|
2809
|
+
background-color: var(--color-gray-2);
|
|
2810
|
+
}
|
|
2811
|
+
.well-close__button:active {
|
|
2812
|
+
background-color: var(--color-gray-3);
|
|
2721
2813
|
}
|
|
2722
|
-
.well-close__button:hover { background-color: var(--color-gray-2); }
|
|
2723
|
-
.well-close__button:active { background-color: var(--color-gray-3); }
|
|
2724
2814
|
`;
|
|
2725
|
-
let
|
|
2726
|
-
customElements.get("anduin-well") || customElements.define("anduin-well",
|
|
2727
|
-
customElements.get("anduin-well-close") || customElements.define("anduin-well-close",
|
|
2815
|
+
let A1 = H5;
|
|
2816
|
+
customElements.get("anduin-well") || customElements.define("anduin-well", g1);
|
|
2817
|
+
customElements.get("anduin-well-close") || customElements.define("anduin-well-close", A1);
|
|
2818
|
+
var g4 = Object.defineProperty, a2 = (C, e, t, l) => {
|
|
2819
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2820
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
2821
|
+
return o && g4(e, t, o), o;
|
|
2822
|
+
};
|
|
2823
|
+
const b5 = class b5 extends c {
|
|
2824
|
+
constructor() {
|
|
2825
|
+
super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
|
|
2826
|
+
var t;
|
|
2827
|
+
!this.contains(e.target) && !((t = this.shadowRoot) != null && t.contains(e.target)) && (this.open = !1);
|
|
2828
|
+
};
|
|
2829
|
+
}
|
|
2830
|
+
_onTriggerClick() {
|
|
2831
|
+
this.open = !this.open;
|
|
2832
|
+
}
|
|
2833
|
+
connectedCallback() {
|
|
2834
|
+
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick);
|
|
2835
|
+
}
|
|
2836
|
+
disconnectedCallback() {
|
|
2837
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick);
|
|
2838
|
+
}
|
|
2839
|
+
render() {
|
|
2840
|
+
return d`
|
|
2841
|
+
<div @click=${this._onTriggerClick} part="trigger">
|
|
2842
|
+
<slot name="trigger"></slot>
|
|
2843
|
+
</div>
|
|
2844
|
+
<div class="popover__panel popover__panel--${this.placement} ${this.open ? "popover__panel--open" : ""}" part="popover">
|
|
2845
|
+
<div class="popover__inner">
|
|
2846
|
+
<slot></slot>
|
|
2847
|
+
</div>
|
|
2848
|
+
</div>
|
|
2849
|
+
`;
|
|
2850
|
+
}
|
|
2851
|
+
};
|
|
2852
|
+
b5.styles = h`
|
|
2853
|
+
:host { display: inline-block; position: relative; font-family: var(--font-sans); }
|
|
2854
|
+
|
|
2855
|
+
/* Outer: handles placement positioning only */
|
|
2856
|
+
.popover__panel {
|
|
2857
|
+
position: absolute;
|
|
2858
|
+
z-index: 50;
|
|
2859
|
+
visibility: hidden;
|
|
2860
|
+
pointer-events: none;
|
|
2861
|
+
}
|
|
2862
|
+
.popover__panel--bottom-start { top: calc(100% + 4px); left: 0; }
|
|
2863
|
+
.popover__panel--bottom-end { top: calc(100% + 4px); right: 0; }
|
|
2864
|
+
.popover__panel--bottom { top: calc(100% + 4px); left: 50%; transform: translateX(-50%); }
|
|
2865
|
+
.popover__panel--top-start { bottom: calc(100% + 4px); left: 0; }
|
|
2866
|
+
.popover__panel--top-end { bottom: calc(100% + 4px); right: 0; }
|
|
2867
|
+
.popover__panel--top { bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); }
|
|
2868
|
+
.popover__panel--open { visibility: visible; pointer-events: auto; }
|
|
2869
|
+
|
|
2870
|
+
/* Inner: handles visual styling + animation */
|
|
2871
|
+
.popover__inner {
|
|
2872
|
+
background-color: var(--color-white, white);
|
|
2873
|
+
border-radius: 8px;
|
|
2874
|
+
box-shadow: 0px 2px 8px 0px rgba(29, 41, 57, 0.08),
|
|
2875
|
+
0px 8px 24px 0px rgba(29, 41, 57, 0.12);
|
|
2876
|
+
display: flex;
|
|
2877
|
+
flex-direction: column;
|
|
2878
|
+
align-items: flex-start;
|
|
2879
|
+
min-width: 192px;
|
|
2880
|
+
max-width: 640px;
|
|
2881
|
+
max-height: 480px;
|
|
2882
|
+
padding: 8px;
|
|
2883
|
+
overflow: auto;
|
|
2884
|
+
opacity: 0;
|
|
2885
|
+
transform: scale(0.97) translateY(-4px);
|
|
2886
|
+
transform-origin: top center;
|
|
2887
|
+
transition: opacity 150ms ease, transform 150ms ease;
|
|
2888
|
+
}
|
|
2889
|
+
.popover__panel--open .popover__inner {
|
|
2890
|
+
opacity: 1;
|
|
2891
|
+
transform: scale(1) translateY(0);
|
|
2892
|
+
}
|
|
2893
|
+
/* Top placements animate upward from below */
|
|
2894
|
+
.popover__panel--top-start .popover__inner,
|
|
2895
|
+
.popover__panel--top .popover__inner,
|
|
2896
|
+
.popover__panel--top-end .popover__inner {
|
|
2897
|
+
transform: scale(0.97) translateY(4px);
|
|
2898
|
+
transform-origin: bottom center;
|
|
2899
|
+
}
|
|
2900
|
+
.popover__panel--top-start.popover__panel--open .popover__inner,
|
|
2901
|
+
.popover__panel--top.popover__panel--open .popover__inner,
|
|
2902
|
+
.popover__panel--top-end.popover__panel--open .popover__inner {
|
|
2903
|
+
transform: scale(1) translateY(0);
|
|
2904
|
+
}
|
|
2905
|
+
`;
|
|
2906
|
+
let C1 = b5;
|
|
2907
|
+
a2([
|
|
2908
|
+
r({ type: Boolean, reflect: !0 })
|
|
2909
|
+
], C1.prototype, "open");
|
|
2910
|
+
a2([
|
|
2911
|
+
r()
|
|
2912
|
+
], C1.prototype, "placement");
|
|
2913
|
+
customElements.get("anduin-popover") || customElements.define("anduin-popover", C1);
|
|
2914
|
+
var f4 = Object.defineProperty, a1 = (C, e, t, l) => {
|
|
2915
|
+
for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2916
|
+
(n = C[i]) && (o = n(e, t, o) || o);
|
|
2917
|
+
return o && f4(e, t, o), o;
|
|
2918
|
+
};
|
|
2919
|
+
const z1 = "anduin-menu-item:click", m5 = class m5 extends c {
|
|
2920
|
+
constructor() {
|
|
2921
|
+
super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
|
|
2922
|
+
var t;
|
|
2923
|
+
!this.contains(e.target) && !((t = this.shadowRoot) != null && t.contains(e.target)) && (this.open = !1);
|
|
2924
|
+
}, this._onItemClick = () => {
|
|
2925
|
+
this.open = !1;
|
|
2926
|
+
};
|
|
2927
|
+
}
|
|
2928
|
+
_onTriggerClick() {
|
|
2929
|
+
this.open = !this.open;
|
|
2930
|
+
}
|
|
2931
|
+
connectedCallback() {
|
|
2932
|
+
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(z1, this._onItemClick);
|
|
2933
|
+
}
|
|
2934
|
+
disconnectedCallback() {
|
|
2935
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(z1, this._onItemClick);
|
|
2936
|
+
}
|
|
2937
|
+
render() {
|
|
2938
|
+
return d`
|
|
2939
|
+
<div class="menu__trigger" @click=${this._onTriggerClick} part="trigger">
|
|
2940
|
+
<slot name="trigger"></slot>
|
|
2941
|
+
</div>
|
|
2942
|
+
<div class="menu__panel menu__panel--${this.placement} ${this.open ? "menu__panel--open" : ""}" part="menu">
|
|
2943
|
+
<div class="menu__inner" role="menu">
|
|
2944
|
+
<slot></slot>
|
|
2945
|
+
</div>
|
|
2946
|
+
</div>
|
|
2947
|
+
`;
|
|
2948
|
+
}
|
|
2949
|
+
};
|
|
2950
|
+
m5.styles = h`
|
|
2951
|
+
:host { display: inline-block; position: relative; font-family: var(--font-sans); }
|
|
2952
|
+
|
|
2953
|
+
.menu__trigger { display: inline-block; }
|
|
2954
|
+
|
|
2955
|
+
/* Outer: placement only */
|
|
2956
|
+
.menu__panel {
|
|
2957
|
+
position: absolute;
|
|
2958
|
+
z-index: 50;
|
|
2959
|
+
visibility: hidden;
|
|
2960
|
+
pointer-events: none;
|
|
2961
|
+
}
|
|
2962
|
+
.menu__panel--bottom-start { top: calc(100% + 4px); left: 0; }
|
|
2963
|
+
.menu__panel--bottom-end { top: calc(100% + 4px); right: 0; }
|
|
2964
|
+
.menu__panel--bottom { top: calc(100% + 4px); left: 50%; transform: translateX(-50%); }
|
|
2965
|
+
.menu__panel--top-start { bottom: calc(100% + 4px); left: 0; }
|
|
2966
|
+
.menu__panel--top-end { bottom: calc(100% + 4px); right: 0; }
|
|
2967
|
+
.menu__panel--top { bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); }
|
|
2968
|
+
.menu__panel--open { visibility: visible; pointer-events: auto; }
|
|
2969
|
+
|
|
2970
|
+
/* Inner: visual shell + animation */
|
|
2971
|
+
.menu__inner {
|
|
2972
|
+
background-color: var(--color-white, white);
|
|
2973
|
+
border-radius: 8px;
|
|
2974
|
+
box-shadow: 0px 2px 8px 0px rgba(29, 41, 57, 0.08),
|
|
2975
|
+
0px 8px 24px 0px rgba(29, 41, 57, 0.12);
|
|
2976
|
+
display: flex;
|
|
2977
|
+
flex-direction: column;
|
|
2978
|
+
align-items: flex-start;
|
|
2979
|
+
width: 280px;
|
|
2980
|
+
padding: 8px;
|
|
2981
|
+
opacity: 0;
|
|
2982
|
+
transform: scale(0.97) translateY(-4px);
|
|
2983
|
+
transform-origin: top center;
|
|
2984
|
+
transition: opacity 150ms ease, transform 150ms ease;
|
|
2985
|
+
}
|
|
2986
|
+
.menu__panel--open .menu__inner {
|
|
2987
|
+
opacity: 1;
|
|
2988
|
+
transform: scale(1) translateY(0);
|
|
2989
|
+
}
|
|
2990
|
+
.menu__panel--top-start .menu__inner,
|
|
2991
|
+
.menu__panel--top .menu__inner,
|
|
2992
|
+
.menu__panel--top-end .menu__inner {
|
|
2993
|
+
transform: scale(0.97) translateY(4px);
|
|
2994
|
+
transform-origin: bottom center;
|
|
2995
|
+
}
|
|
2996
|
+
.menu__panel--top-start.menu__panel--open .menu__inner,
|
|
2997
|
+
.menu__panel--top.menu__panel--open .menu__inner,
|
|
2998
|
+
.menu__panel--top-end.menu__panel--open .menu__inner {
|
|
2999
|
+
transform: scale(1) translateY(0);
|
|
3000
|
+
}
|
|
3001
|
+
`;
|
|
3002
|
+
let i1 = m5;
|
|
3003
|
+
a1([
|
|
3004
|
+
r({ type: Boolean, reflect: !0 })
|
|
3005
|
+
], i1.prototype, "open");
|
|
3006
|
+
a1([
|
|
3007
|
+
r()
|
|
3008
|
+
], i1.prototype, "placement");
|
|
3009
|
+
const V5 = class V5 extends c {
|
|
3010
|
+
constructor() {
|
|
3011
|
+
super(...arguments), this.icon = "", this.variant = "default", this.disabled = !1;
|
|
3012
|
+
}
|
|
3013
|
+
_onClick() {
|
|
3014
|
+
this.dispatchEvent(new CustomEvent(z1, { bubbles: !0, composed: !0 }));
|
|
3015
|
+
}
|
|
3016
|
+
render() {
|
|
3017
|
+
return d`
|
|
3018
|
+
<button
|
|
3019
|
+
class="menu-item ${this.variant === "danger" ? "menu-item--danger" : ""}"
|
|
3020
|
+
role="menuitem"
|
|
3021
|
+
?disabled=${this.disabled}
|
|
3022
|
+
part="menu-item"
|
|
3023
|
+
@click=${this._onClick}
|
|
3024
|
+
>
|
|
3025
|
+
${this.icon ? d`<anduin-icon name="${this.icon}" size="16"></anduin-icon>` : p}
|
|
3026
|
+
<span class="menu-item__label"><slot></slot></span>
|
|
3027
|
+
</button>
|
|
3028
|
+
`;
|
|
3029
|
+
}
|
|
3030
|
+
};
|
|
3031
|
+
V5.styles = h`
|
|
3032
|
+
:host { display: block; width: 100%; font-family: var(--font-sans); }
|
|
3033
|
+
.menu-item {
|
|
3034
|
+
display: flex;
|
|
3035
|
+
align-items: center;
|
|
3036
|
+
gap: 16px;
|
|
3037
|
+
width: 100%;
|
|
3038
|
+
padding: 8px 8px 8px 12px;
|
|
3039
|
+
border-radius: 4px;
|
|
3040
|
+
border: none;
|
|
3041
|
+
background: none;
|
|
3042
|
+
cursor: pointer;
|
|
3043
|
+
font-family: var(--font-sans);
|
|
3044
|
+
font-size: 13px;
|
|
3045
|
+
line-height: 16px;
|
|
3046
|
+
font-weight: 400;
|
|
3047
|
+
color: var(--color-gray-9);
|
|
3048
|
+
text-align: left;
|
|
3049
|
+
box-sizing: border-box;
|
|
3050
|
+
}
|
|
3051
|
+
.menu-item:hover { background-color: var(--color-gray-2); }
|
|
3052
|
+
.menu-item:active { background-color: var(--color-gray-3); }
|
|
3053
|
+
.menu-item--danger { color: var(--color-danger-5); }
|
|
3054
|
+
.menu-item--danger:hover { background-color: var(--color-danger-1); }
|
|
3055
|
+
.menu-item--danger:active { background-color: var(--color-danger-2); }
|
|
3056
|
+
.menu-item:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
|
|
3057
|
+
.menu-item__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
3058
|
+
anduin-icon { color: var(--color-gray-7); }
|
|
3059
|
+
.menu-item--danger anduin-icon { color: var(--color-danger-4); }
|
|
3060
|
+
`;
|
|
3061
|
+
let N = V5;
|
|
3062
|
+
a1([
|
|
3063
|
+
r()
|
|
3064
|
+
], N.prototype, "icon");
|
|
3065
|
+
a1([
|
|
3066
|
+
r()
|
|
3067
|
+
], N.prototype, "variant");
|
|
3068
|
+
a1([
|
|
3069
|
+
r({ type: Boolean })
|
|
3070
|
+
], N.prototype, "disabled");
|
|
3071
|
+
customElements.get("anduin-menu") || customElements.define("anduin-menu", i1);
|
|
3072
|
+
customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", N);
|
|
2728
3073
|
if (typeof document < "u" && !document.getElementById("acl-tokens")) {
|
|
2729
|
-
const
|
|
2730
|
-
|
|
3074
|
+
const C = document.createElement("style");
|
|
3075
|
+
C.id = "acl-tokens", C.textContent = p2, document.head.appendChild(C);
|
|
2731
3076
|
}
|
|
2732
3077
|
export {
|
|
2733
|
-
|
|
2734
|
-
|
|
3078
|
+
u1 as AnduinBadge,
|
|
3079
|
+
K as AnduinBadgeCount,
|
|
2735
3080
|
f as AnduinButton,
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
3081
|
+
p1 as AnduinCallout,
|
|
3082
|
+
k as AnduinCheckbox,
|
|
3083
|
+
F as AnduinDivider,
|
|
3084
|
+
h1 as AnduinDot,
|
|
3085
|
+
L1 as AnduinField,
|
|
3086
|
+
_1 as AnduinFieldDescription,
|
|
3087
|
+
x1 as AnduinFieldError,
|
|
3088
|
+
k1 as AnduinFieldGroup,
|
|
3089
|
+
Q as AnduinFieldLabel,
|
|
2745
3090
|
X as AnduinIcon,
|
|
2746
3091
|
M as AnduinInput,
|
|
2747
|
-
|
|
2748
|
-
|
|
3092
|
+
v1 as AnduinLoadingState,
|
|
3093
|
+
i1 as AnduinMenu,
|
|
3094
|
+
N as AnduinMenuItem,
|
|
3095
|
+
C1 as AnduinPopover,
|
|
3096
|
+
J as AnduinProgress,
|
|
2749
3097
|
y as AnduinSkeleton,
|
|
2750
3098
|
W as AnduinSpinner,
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
3099
|
+
o1 as AnduinTabContent,
|
|
3100
|
+
R as AnduinTabTrigger,
|
|
3101
|
+
e1 as AnduinTabs,
|
|
3102
|
+
t1 as AnduinTabsList,
|
|
3103
|
+
I as AnduinTag,
|
|
3104
|
+
w1 as AnduinTagClose,
|
|
3105
|
+
Z as AnduinTextarea,
|
|
3106
|
+
l1 as AnduinTooltip,
|
|
3107
|
+
P1 as AnduinTooltipContent,
|
|
3108
|
+
E1 as AnduinTooltipTrigger,
|
|
3109
|
+
g1 as AnduinWell,
|
|
3110
|
+
A1 as AnduinWellClose,
|
|
3111
|
+
X5 as BADGE_STYLES,
|
|
3112
|
+
Q2 as CHECKBOX_CHANGE,
|
|
3113
|
+
e2 as FIELD_LABEL_CLICK,
|
|
3114
|
+
b1 as FIELD_LABEL_CLICK_COORDINATED,
|
|
3115
|
+
t4 as INPUT_CHANGE,
|
|
3116
|
+
z1 as MENU_ITEM_CLICK,
|
|
3117
|
+
i4 as TAB_CHANGE,
|
|
3118
|
+
t2 as TAB_TRIGGER_CLICK,
|
|
3119
|
+
m1 as TAB_VALUE_CHANGED,
|
|
3120
|
+
r4 as TAG_CLOSE_CLICK,
|
|
3121
|
+
l4 as TEXTAREA_CHANGE,
|
|
3122
|
+
i2 as TOOLTIP_CONTENT_POPUP_MOUNTED,
|
|
3123
|
+
n2 as TOOLTIP_CONTENT_POPUP_UNMOUNTED,
|
|
3124
|
+
j1 as TOOLTIP_HIDE,
|
|
3125
|
+
l2 as TOOLTIP_SHOW,
|
|
3126
|
+
C2 as TOOLTIP_TRIGGER_MOUNTED,
|
|
3127
|
+
r2 as TOOLTIP_VISIBILITY_CHANGED,
|
|
3128
|
+
L4 as WELL_CLOSE_CLICK,
|
|
3129
|
+
K5 as getBadgeVariantClass
|
|
2781
3130
|
};
|