@duyluonganduin/acl-web-components 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acl-web-components.cjs +212 -98
- package/dist/acl-web-components.d.ts +21 -0
- package/dist/acl-web-components.js +983 -793
- package/dist/react.d.ts +17 -0
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const
|
|
1
|
+
const L2 = ':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,
|
|
10
|
-
if (this._$cssResult$ = !0, l !==
|
|
11
|
-
this.cssText = e, this.t =
|
|
7
|
+
const p1 = globalThis, B1 = p1.ShadowRoot && (p1.ShadyCSS === void 0 || p1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, T1 = Symbol(), x5 = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
let q5 = class {
|
|
9
|
+
constructor(e, o, l) {
|
|
10
|
+
if (this._$cssResult$ = !0, l !== T1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
11
|
+
this.cssText = e, this.t = o;
|
|
12
12
|
}
|
|
13
13
|
get styleSheet() {
|
|
14
14
|
let e = this.o;
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
const l =
|
|
18
|
-
l && (e =
|
|
15
|
+
const o = this.t;
|
|
16
|
+
if (B1 && e === void 0) {
|
|
17
|
+
const l = o !== void 0 && o.length === 1;
|
|
18
|
+
l && (e = x5.get(o)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), l && x5.set(o, e));
|
|
19
19
|
}
|
|
20
20
|
return e;
|
|
21
21
|
}
|
|
@@ -23,33 +23,33 @@ let T5 = class {
|
|
|
23
23
|
return this.cssText;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
const
|
|
27
|
-
const
|
|
26
|
+
const f2 = (C) => new q5(typeof C == "string" ? C : C + "", void 0, T1), h = (C, ...e) => {
|
|
27
|
+
const o = C.length === 1 ? C[0] : e.reduce((l, t, 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
|
-
})(
|
|
32
|
-
return new
|
|
33
|
-
},
|
|
34
|
-
if (
|
|
35
|
-
else for (const
|
|
36
|
-
const l = document.createElement("style"),
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
let
|
|
41
|
-
for (const l of e.cssRules)
|
|
42
|
-
return
|
|
31
|
+
})(t) + C[i + 1], C[0]);
|
|
32
|
+
return new q5(o, C, T1);
|
|
33
|
+
}, H2 = (C, e) => {
|
|
34
|
+
if (B1) C.adoptedStyleSheets = e.map((o) => o instanceof CSSStyleSheet ? o : o.styleSheet);
|
|
35
|
+
else for (const o of e) {
|
|
36
|
+
const l = document.createElement("style"), t = p1.litNonce;
|
|
37
|
+
t !== void 0 && l.setAttribute("nonce", t), l.textContent = o.cssText, C.appendChild(l);
|
|
38
|
+
}
|
|
39
|
+
}, k5 = B1 ? (C) => C : (C) => C instanceof CSSStyleSheet ? ((e) => {
|
|
40
|
+
let o = "";
|
|
41
|
+
for (const l of e.cssRules) o += l.cssText;
|
|
42
|
+
return f2(o);
|
|
43
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: b2, defineProperty: m2, getOwnPropertyDescriptor: V2, getOwnPropertyNames: M2, getOwnPropertySymbols: Z2, getPrototypeOf: y2 } = Object, x = globalThis, w5 = x.trustedTypes, R2 = w5 ? w5.emptyScript : "", y1 = x.reactiveElementPolyfillSupport, G = (C, e) => C, h1 = { toAttribute(C, e) {
|
|
50
50
|
switch (e) {
|
|
51
51
|
case Boolean:
|
|
52
|
-
C = C ?
|
|
52
|
+
C = C ? R2 : null;
|
|
53
53
|
break;
|
|
54
54
|
case Object:
|
|
55
55
|
case Array:
|
|
@@ -57,85 +57,85 @@ const { is: L2, defineProperty: g2, getOwnPropertyDescriptor: f2, getOwnProperty
|
|
|
57
57
|
}
|
|
58
58
|
return C;
|
|
59
59
|
}, fromAttribute(C, e) {
|
|
60
|
-
let
|
|
60
|
+
let o = C;
|
|
61
61
|
switch (e) {
|
|
62
62
|
case Boolean:
|
|
63
|
-
|
|
63
|
+
o = C !== null;
|
|
64
64
|
break;
|
|
65
65
|
case Number:
|
|
66
|
-
|
|
66
|
+
o = C === null ? null : Number(C);
|
|
67
67
|
break;
|
|
68
68
|
case Object:
|
|
69
69
|
case Array:
|
|
70
70
|
try {
|
|
71
|
-
|
|
71
|
+
o = JSON.parse(C);
|
|
72
72
|
} catch {
|
|
73
|
-
|
|
73
|
+
o = null;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
return
|
|
77
|
-
} },
|
|
76
|
+
return o;
|
|
77
|
+
} }, N1 = (C, e) => !b2(C, e), $5 = { attribute: !0, type: String, converter: h1, reflect: !1, useDefault: !1, hasChanged: N1 };
|
|
78
78
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), x.litPropertyMetadata ?? (x.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
79
|
-
let
|
|
79
|
+
let O = 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,
|
|
87
|
-
if (
|
|
88
|
-
const l = Symbol(),
|
|
89
|
-
|
|
86
|
+
static createProperty(e, o = $5) {
|
|
87
|
+
if (o.state && (o.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((o = Object.create(o)).wrapped = !0), this.elementProperties.set(e, o), !o.noAccessor) {
|
|
88
|
+
const l = Symbol(), t = this.getPropertyDescriptor(e, l, o);
|
|
89
|
+
t !== void 0 && m2(this.prototype, e, t);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
static getPropertyDescriptor(e,
|
|
93
|
-
const { get:
|
|
94
|
-
return this[
|
|
92
|
+
static getPropertyDescriptor(e, o, l) {
|
|
93
|
+
const { get: t, set: i } = V2(this.prototype, e) ?? { get() {
|
|
94
|
+
return this[o];
|
|
95
95
|
}, set(n) {
|
|
96
|
-
this[
|
|
96
|
+
this[o] = n;
|
|
97
97
|
} };
|
|
98
|
-
return { get:
|
|
99
|
-
const a =
|
|
98
|
+
return { get: t, set(n) {
|
|
99
|
+
const a = t == null ? void 0 : t.call(this);
|
|
100
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) ?? $5;
|
|
105
105
|
}
|
|
106
106
|
static _$Ei() {
|
|
107
|
-
if (this.hasOwnProperty(
|
|
108
|
-
const e =
|
|
107
|
+
if (this.hasOwnProperty(G("elementProperties"))) return;
|
|
108
|
+
const e = y2(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
|
|
115
|
-
for (const
|
|
112
|
+
if (this.hasOwnProperty(G("finalized"))) return;
|
|
113
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(G("properties"))) {
|
|
114
|
+
const o = this.properties, l = [...M2(o), ...Z2(o)];
|
|
115
|
+
for (const t of l) this.createProperty(t, o[t]);
|
|
116
116
|
}
|
|
117
117
|
const e = this[Symbol.metadata];
|
|
118
118
|
if (e !== null) {
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
119
|
+
const o = litPropertyMetadata.get(e);
|
|
120
|
+
if (o !== void 0) for (const [l, t] of o) this.elementProperties.set(l, t);
|
|
121
121
|
}
|
|
122
122
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
123
|
-
for (const [
|
|
124
|
-
const
|
|
125
|
-
|
|
123
|
+
for (const [o, l] of this.elementProperties) {
|
|
124
|
+
const t = this._$Eu(o, l);
|
|
125
|
+
t !== void 0 && this._$Eh.set(t, o);
|
|
126
126
|
}
|
|
127
127
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
128
128
|
}
|
|
129
129
|
static finalizeStyles(e) {
|
|
130
|
-
const
|
|
130
|
+
const o = [];
|
|
131
131
|
if (Array.isArray(e)) {
|
|
132
132
|
const l = new Set(e.flat(1 / 0).reverse());
|
|
133
|
-
for (const
|
|
134
|
-
} else e !== void 0 &&
|
|
135
|
-
return
|
|
133
|
+
for (const t of l) o.unshift(k5(t));
|
|
134
|
+
} else e !== void 0 && o.push(k5(e));
|
|
135
|
+
return o;
|
|
136
136
|
}
|
|
137
|
-
static _$Eu(e,
|
|
138
|
-
const l =
|
|
137
|
+
static _$Eu(e, o) {
|
|
138
|
+
const l = o.attribute;
|
|
139
139
|
return l === !1 ? void 0 : typeof l == "string" ? l : typeof e == "string" ? e.toLowerCase() : void 0;
|
|
140
140
|
}
|
|
141
141
|
constructor() {
|
|
@@ -143,80 +143,80 @@ let S = class extends HTMLElement {
|
|
|
143
143
|
}
|
|
144
144
|
_$Ev() {
|
|
145
145
|
var e;
|
|
146
|
-
this._$ES = new Promise((
|
|
146
|
+
this._$ES = new Promise((o) => this.enableUpdating = o), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((o) => o(this));
|
|
147
147
|
}
|
|
148
148
|
addController(e) {
|
|
149
|
-
var
|
|
150
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((
|
|
149
|
+
var o;
|
|
150
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((o = e.hostConnected) == null || o.call(e));
|
|
151
151
|
}
|
|
152
152
|
removeController(e) {
|
|
153
|
-
var
|
|
154
|
-
(
|
|
153
|
+
var o;
|
|
154
|
+
(o = this._$EO) == null || o.delete(e);
|
|
155
155
|
}
|
|
156
156
|
_$E_() {
|
|
157
|
-
const e = /* @__PURE__ */ new Map(),
|
|
158
|
-
for (const l of
|
|
157
|
+
const e = /* @__PURE__ */ new Map(), o = this.constructor.elementProperties;
|
|
158
|
+
for (const l of o.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 H2(e, this.constructor.elementStyles), e;
|
|
164
164
|
}
|
|
165
165
|
connectedCallback() {
|
|
166
166
|
var e;
|
|
167
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((
|
|
167
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((o) => {
|
|
168
168
|
var l;
|
|
169
|
-
return (l =
|
|
169
|
+
return (l = o.hostConnected) == null ? void 0 : l.call(o);
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
enableUpdating(e) {
|
|
173
173
|
}
|
|
174
174
|
disconnectedCallback() {
|
|
175
175
|
var e;
|
|
176
|
-
(e = this._$EO) == null || e.forEach((
|
|
176
|
+
(e = this._$EO) == null || e.forEach((o) => {
|
|
177
177
|
var l;
|
|
178
|
-
return (l =
|
|
178
|
+
return (l = o.hostDisconnected) == null ? void 0 : l.call(o);
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
attributeChangedCallback(e,
|
|
181
|
+
attributeChangedCallback(e, o, l) {
|
|
182
182
|
this._$AK(e, l);
|
|
183
183
|
}
|
|
184
|
-
_$ET(e,
|
|
184
|
+
_$ET(e, o) {
|
|
185
185
|
var i;
|
|
186
|
-
const l = this.constructor.elementProperties.get(e),
|
|
187
|
-
if (
|
|
188
|
-
const n = (((i = l.converter) == null ? void 0 : i.toAttribute) !== void 0 ? l.converter :
|
|
189
|
-
this._$Em = e, n == null ? this.removeAttribute(
|
|
186
|
+
const l = this.constructor.elementProperties.get(e), t = this.constructor._$Eu(e, l);
|
|
187
|
+
if (t !== void 0 && l.reflect === !0) {
|
|
188
|
+
const n = (((i = l.converter) == null ? void 0 : i.toAttribute) !== void 0 ? l.converter : h1).toAttribute(o, l.type);
|
|
189
|
+
this._$Em = e, n == null ? this.removeAttribute(t) : this.setAttribute(t, n), this._$Em = null;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
_$AK(e,
|
|
192
|
+
_$AK(e, o) {
|
|
193
193
|
var i, n;
|
|
194
|
-
const l = this.constructor,
|
|
195
|
-
if (
|
|
196
|
-
const a = l.getPropertyOptions(
|
|
197
|
-
this._$Em =
|
|
198
|
-
const
|
|
199
|
-
this[
|
|
194
|
+
const l = this.constructor, t = l._$Eh.get(e);
|
|
195
|
+
if (t !== void 0 && this._$Em !== t) {
|
|
196
|
+
const a = l.getPropertyOptions(t), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((i = a.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? a.converter : h1;
|
|
197
|
+
this._$Em = t;
|
|
198
|
+
const p = s.fromAttribute(o, a.type);
|
|
199
|
+
this[t] = p ?? ((n = this._$Ej) == null ? void 0 : n.get(t)) ?? p, this._$Em = null;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
requestUpdate(e,
|
|
202
|
+
requestUpdate(e, o, l, t = !1, i) {
|
|
203
203
|
var n;
|
|
204
204
|
if (e !== void 0) {
|
|
205
205
|
const a = this.constructor;
|
|
206
|
-
if (
|
|
207
|
-
this.C(e,
|
|
206
|
+
if (t === !1 && (i = this[e]), l ?? (l = a.getPropertyOptions(e)), !((l.hasChanged ?? N1)(i, o) || 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, o, l);
|
|
208
208
|
}
|
|
209
209
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
210
210
|
}
|
|
211
|
-
C(e,
|
|
212
|
-
l && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, n ??
|
|
211
|
+
C(e, o, { useDefault: l, reflect: t, wrapped: i }, n) {
|
|
212
|
+
l && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, n ?? o ?? this[e]), i !== !0 || n !== void 0) || (this._$AL.has(e) || (this.hasUpdated || l || (o = void 0), this._$AL.set(e, o)), t === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
|
|
213
213
|
}
|
|
214
214
|
async _$EP() {
|
|
215
215
|
this.isUpdatePending = !0;
|
|
216
216
|
try {
|
|
217
217
|
await this._$ES;
|
|
218
|
-
} catch (
|
|
219
|
-
Promise.reject(
|
|
218
|
+
} catch (o) {
|
|
219
|
+
Promise.reject(o);
|
|
220
220
|
}
|
|
221
221
|
const e = this.scheduleUpdate();
|
|
222
222
|
return e != null && await e, !this.isUpdatePending;
|
|
@@ -232,31 +232,31 @@ let S = class extends HTMLElement {
|
|
|
232
232
|
for (const [i, n] of this._$Ep) this[i] = n;
|
|
233
233
|
this._$Ep = void 0;
|
|
234
234
|
}
|
|
235
|
-
const
|
|
236
|
-
if (
|
|
235
|
+
const t = this.constructor.elementProperties;
|
|
236
|
+
if (t.size > 0) for (const [i, n] of t) {
|
|
237
237
|
const { wrapped: a } = n, s = this[i];
|
|
238
238
|
a !== !0 || this._$AL.has(i) || s === void 0 || this.C(i, void 0, n, s);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
let e = !1;
|
|
242
|
-
const
|
|
242
|
+
const o = this._$AL;
|
|
243
243
|
try {
|
|
244
|
-
e = this.shouldUpdate(
|
|
244
|
+
e = this.shouldUpdate(o), e ? (this.willUpdate(o), (l = this._$EO) == null || l.forEach((t) => {
|
|
245
245
|
var i;
|
|
246
|
-
return (i =
|
|
247
|
-
}), this.update(
|
|
248
|
-
} catch (
|
|
249
|
-
throw e = !1, this._$EM(),
|
|
246
|
+
return (i = t.hostUpdate) == null ? void 0 : i.call(t);
|
|
247
|
+
}), this.update(o)) : this._$EM();
|
|
248
|
+
} catch (t) {
|
|
249
|
+
throw e = !1, this._$EM(), t;
|
|
250
250
|
}
|
|
251
|
-
e && this._$AE(
|
|
251
|
+
e && this._$AE(o);
|
|
252
252
|
}
|
|
253
253
|
willUpdate(e) {
|
|
254
254
|
}
|
|
255
255
|
_$AE(e) {
|
|
256
|
-
var
|
|
257
|
-
(
|
|
258
|
-
var
|
|
259
|
-
return (
|
|
256
|
+
var o;
|
|
257
|
+
(o = this._$EO) == null || o.forEach((l) => {
|
|
258
|
+
var t;
|
|
259
|
+
return (t = l.hostUpdated) == null ? void 0 : t.call(l);
|
|
260
260
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
|
261
261
|
}
|
|
262
262
|
_$EM() {
|
|
@@ -272,85 +272,85 @@ let S = class extends HTMLElement {
|
|
|
272
272
|
return !0;
|
|
273
273
|
}
|
|
274
274
|
update(e) {
|
|
275
|
-
this._$Eq && (this._$Eq = this._$Eq.forEach((
|
|
275
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((o) => this._$ET(o, this[o]))), this._$EM();
|
|
276
276
|
}
|
|
277
277
|
updated(e) {
|
|
278
278
|
}
|
|
279
279
|
firstUpdated(e) {
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
|
-
|
|
282
|
+
O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[G("elementProperties")] = /* @__PURE__ */ new Map(), O[G("finalized")] = /* @__PURE__ */ new Map(), y1 == null || y1({ ReactiveElement: O }), (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 Y = globalThis, E5 = (C) => C, v1 = Y.trustedTypes, A5 = v1 ? v1.createPolicy("lit-html", { createHTML: (C) => C }) : void 0, G5 = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, Y5 = "?" + _, _2 = `<${Y5}>`, S = document, W = () => S.createComment(""), X = (C) => C === null || typeof C != "object" && typeof C != "function", U1 = Array.isArray, x2 = (C) => U1(C) || typeof (C == null ? void 0 : C[Symbol.iterator]) == "function", R1 = `[
|
|
289
|
+
\f\r]`, q = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, P5 = /-->/g, z5 = />/g, A = RegExp(`>|${R1}(?:([^\\s"'>=/]+)(${R1}*=${R1}*(?:[^
|
|
290
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), S5 = /'/g, O5 = /"/g, W5 = /^(?:script|style|textarea|title)$/i, X5 = (C) => (e, ...o) => ({ _$litType$: C, strings: e, values: o }), d = X5(1), k1 = X5(2), I = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), I5 = /* @__PURE__ */ new WeakMap(), P = S.createTreeWalker(S, 129);
|
|
291
|
+
function F5(C, e) {
|
|
292
|
+
if (!U1(C) || !C.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
293
|
+
return A5 !== void 0 ? A5.createHTML(e) : e;
|
|
294
294
|
}
|
|
295
|
-
const
|
|
296
|
-
const
|
|
297
|
-
let
|
|
298
|
-
for (let a = 0; a <
|
|
295
|
+
const k2 = (C, e) => {
|
|
296
|
+
const o = C.length - 1, l = [];
|
|
297
|
+
let t, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = q;
|
|
298
|
+
for (let a = 0; a < o; a++) {
|
|
299
299
|
const s = C[a];
|
|
300
|
-
let
|
|
301
|
-
for (; m < s.length && (n.lastIndex = m,
|
|
302
|
-
const
|
|
303
|
-
i += n ===
|
|
300
|
+
let p, g, v = -1, m = 0;
|
|
301
|
+
for (; m < s.length && (n.lastIndex = m, g = n.exec(s), g !== null); ) m = n.lastIndex, n === q ? g[1] === "!--" ? n = P5 : g[1] !== void 0 ? n = z5 : g[2] !== void 0 ? (W5.test(g[2]) && (t = RegExp("</" + g[2], "g")), n = A) : g[3] !== void 0 && (n = A) : n === A ? g[0] === ">" ? (n = t ?? q, v = -1) : g[1] === void 0 ? v = -2 : (v = n.lastIndex - g[2].length, p = g[1], n = g[3] === void 0 ? A : g[3] === '"' ? O5 : S5) : n === O5 || n === S5 ? n = A : n === P5 || n === z5 ? n = q : (n = A, t = void 0);
|
|
302
|
+
const L = n === A && C[a + 1].startsWith("/>") ? " " : "";
|
|
303
|
+
i += n === q ? s + _2 : v >= 0 ? (l.push(p), s.slice(0, v) + G5 + s.slice(v) + _ + L) : s + _ + (v === -2 ? a : L);
|
|
304
304
|
}
|
|
305
|
-
return [
|
|
305
|
+
return [F5(C, i + (C[o] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), l];
|
|
306
306
|
};
|
|
307
|
-
class
|
|
308
|
-
constructor({ strings: e, _$litType$:
|
|
309
|
-
let
|
|
307
|
+
class F {
|
|
308
|
+
constructor({ strings: e, _$litType$: o }, l) {
|
|
309
|
+
let t;
|
|
310
310
|
this.parts = [];
|
|
311
311
|
let i = 0, n = 0;
|
|
312
|
-
const a = e.length - 1, s = this.parts, [
|
|
313
|
-
if (this.el =
|
|
312
|
+
const a = e.length - 1, s = this.parts, [p, g] = k2(e, o);
|
|
313
|
+
if (this.el = F.createElement(p, l), P.currentNode = this.el.content, o === 2 || o === 3) {
|
|
314
314
|
const v = this.el.content.firstChild;
|
|
315
315
|
v.replaceWith(...v.childNodes);
|
|
316
316
|
}
|
|
317
|
-
for (; (
|
|
318
|
-
if (
|
|
319
|
-
if (
|
|
320
|
-
const m =
|
|
321
|
-
s.push({ type: 1, index: i, name: V[2], strings:
|
|
322
|
-
} else v.startsWith(_) && (s.push({ type: 6, index: i }),
|
|
323
|
-
if (
|
|
324
|
-
const v =
|
|
317
|
+
for (; (t = P.nextNode()) !== null && s.length < a; ) {
|
|
318
|
+
if (t.nodeType === 1) {
|
|
319
|
+
if (t.hasAttributes()) for (const v of t.getAttributeNames()) if (v.endsWith(G5)) {
|
|
320
|
+
const m = g[n++], L = t.getAttribute(v).split(_), V = /([.?@])?(.*)/.exec(m);
|
|
321
|
+
s.push({ type: 1, index: i, name: V[2], strings: L, ctor: V[1] === "." ? $2 : V[1] === "?" ? E2 : V[1] === "@" ? A2 : V1 }), t.removeAttribute(v);
|
|
322
|
+
} else v.startsWith(_) && (s.push({ type: 6, index: i }), t.removeAttribute(v));
|
|
323
|
+
if (W5.test(t.tagName)) {
|
|
324
|
+
const v = t.textContent.split(_), m = v.length - 1;
|
|
325
325
|
if (m > 0) {
|
|
326
|
-
|
|
327
|
-
for (let
|
|
328
|
-
|
|
326
|
+
t.textContent = v1 ? v1.emptyScript : "";
|
|
327
|
+
for (let L = 0; L < m; L++) t.append(v[L], W()), P.nextNode(), s.push({ type: 2, index: ++i });
|
|
328
|
+
t.append(v[m], W());
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
} else if (
|
|
331
|
+
} else if (t.nodeType === 8) if (t.data === Y5) s.push({ type: 2, index: i });
|
|
332
332
|
else {
|
|
333
333
|
let v = -1;
|
|
334
|
-
for (; (v =
|
|
334
|
+
for (; (v = t.data.indexOf(_, v + 1)) !== -1; ) s.push({ type: 7, index: i }), v += _.length - 1;
|
|
335
335
|
}
|
|
336
336
|
i++;
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
static createElement(e,
|
|
340
|
-
const l =
|
|
339
|
+
static createElement(e, o) {
|
|
340
|
+
const l = S.createElement("template");
|
|
341
341
|
return l.innerHTML = e, l;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
function B(C, e,
|
|
344
|
+
function B(C, e, o = C, l) {
|
|
345
345
|
var n, a;
|
|
346
|
-
if (e ===
|
|
347
|
-
let
|
|
348
|
-
const i =
|
|
349
|
-
return (
|
|
346
|
+
if (e === I) return e;
|
|
347
|
+
let t = l !== void 0 ? (n = o._$Co) == null ? void 0 : n[l] : o._$Cl;
|
|
348
|
+
const i = X(e) ? void 0 : e._$litDirective$;
|
|
349
|
+
return (t == null ? void 0 : t.constructor) !== i && ((a = t == null ? void 0 : t._$AO) == null || a.call(t, !1), i === void 0 ? t = void 0 : (t = new i(C), t._$AT(C, o, l)), l !== void 0 ? (o._$Co ?? (o._$Co = []))[l] = t : o._$Cl = t), t !== void 0 && (e = B(C, t._$AS(C, e.values), t, l)), e;
|
|
350
350
|
}
|
|
351
|
-
class
|
|
352
|
-
constructor(e,
|
|
353
|
-
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM =
|
|
351
|
+
class w2 {
|
|
352
|
+
constructor(e, o) {
|
|
353
|
+
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = o;
|
|
354
354
|
}
|
|
355
355
|
get parentNode() {
|
|
356
356
|
return this._$AM.parentNode;
|
|
@@ -359,35 +359,35 @@ class R2 {
|
|
|
359
359
|
return this._$AM._$AU;
|
|
360
360
|
}
|
|
361
361
|
u(e) {
|
|
362
|
-
const { el: { content:
|
|
363
|
-
P.currentNode =
|
|
362
|
+
const { el: { content: o }, parts: l } = this._$AD, t = ((e == null ? void 0 : e.creationScope) ?? S).importNode(o, !0);
|
|
363
|
+
P.currentNode = t;
|
|
364
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 p;
|
|
368
|
+
s.type === 2 ? p = new a1(i, i.nextSibling, this, e) : s.type === 1 ? p = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (p = new P2(i, this, e)), this._$AV.push(p), s = l[++a];
|
|
369
369
|
}
|
|
370
370
|
n !== (s == null ? void 0 : s.index) && (i = P.nextNode(), n++);
|
|
371
371
|
}
|
|
372
|
-
return P.currentNode =
|
|
372
|
+
return P.currentNode = S, t;
|
|
373
373
|
}
|
|
374
374
|
p(e) {
|
|
375
|
-
let
|
|
376
|
-
for (const l of this._$AV) l !== void 0 && (l.strings !== void 0 ? (l._$AI(e, l,
|
|
375
|
+
let o = 0;
|
|
376
|
+
for (const l of this._$AV) l !== void 0 && (l.strings !== void 0 ? (l._$AI(e, l, o), o += l.strings.length - 2) : l._$AI(e[o])), o++;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
class
|
|
379
|
+
class a1 {
|
|
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,
|
|
385
|
-
this.type = 2, this._$AH =
|
|
384
|
+
constructor(e, o, l, t) {
|
|
385
|
+
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = e, this._$AB = o, this._$AM = l, this.options = t, this._$Cv = (t == null ? void 0 : t.isConnected) ?? !0;
|
|
386
386
|
}
|
|
387
387
|
get parentNode() {
|
|
388
388
|
let e = this._$AA.parentNode;
|
|
389
|
-
const
|
|
390
|
-
return
|
|
389
|
+
const o = this._$AM;
|
|
390
|
+
return o !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = o.parentNode), e;
|
|
391
391
|
}
|
|
392
392
|
get startNode() {
|
|
393
393
|
return this._$AA;
|
|
@@ -395,8 +395,8 @@ class n1 {
|
|
|
395
395
|
get endNode() {
|
|
396
396
|
return this._$AB;
|
|
397
397
|
}
|
|
398
|
-
_$AI(e,
|
|
399
|
-
e = B(this, e,
|
|
398
|
+
_$AI(e, o = this) {
|
|
399
|
+
e = B(this, e, o), X(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== I && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : x2(e) ? this.k(e) : this._(e);
|
|
400
400
|
}
|
|
401
401
|
O(e) {
|
|
402
402
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -405,98 +405,98 @@ class n1 {
|
|
|
405
405
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
406
406
|
}
|
|
407
407
|
_(e) {
|
|
408
|
-
this._$AH !==
|
|
408
|
+
this._$AH !== u && X(this._$AH) ? this._$AA.nextSibling.data = e : this.T(S.createTextNode(e)), this._$AH = e;
|
|
409
409
|
}
|
|
410
410
|
$(e) {
|
|
411
411
|
var i;
|
|
412
|
-
const { values:
|
|
413
|
-
if (((i = this._$AH) == null ? void 0 : i._$AD) ===
|
|
412
|
+
const { values: o, _$litType$: l } = e, t = typeof l == "number" ? this._$AC(e) : (l.el === void 0 && (l.el = F.createElement(F5(l.h, l.h[0]), this.options)), l);
|
|
413
|
+
if (((i = this._$AH) == null ? void 0 : i._$AD) === t) this._$AH.p(o);
|
|
414
414
|
else {
|
|
415
|
-
const n = new
|
|
416
|
-
n.p(
|
|
415
|
+
const n = new w2(t, this), a = n.u(this.options);
|
|
416
|
+
n.p(o), this.T(a), this._$AH = n;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
_$AC(e) {
|
|
420
|
-
let
|
|
421
|
-
return
|
|
420
|
+
let o = I5.get(e.strings);
|
|
421
|
+
return o === void 0 && I5.set(e.strings, o = new F(e)), o;
|
|
422
422
|
}
|
|
423
423
|
k(e) {
|
|
424
|
-
|
|
425
|
-
const
|
|
426
|
-
let l,
|
|
427
|
-
for (const i of e)
|
|
428
|
-
|
|
424
|
+
U1(this._$AH) || (this._$AH = [], this._$AR());
|
|
425
|
+
const o = this._$AH;
|
|
426
|
+
let l, t = 0;
|
|
427
|
+
for (const i of e) t === o.length ? o.push(l = new a1(this.O(W()), this.O(W()), this, this.options)) : l = o[t], l._$AI(i), t++;
|
|
428
|
+
t < o.length && (this._$AR(l && l._$AB.nextSibling, t), o.length = t);
|
|
429
429
|
}
|
|
430
|
-
_$AR(e = this._$AA.nextSibling,
|
|
430
|
+
_$AR(e = this._$AA.nextSibling, o) {
|
|
431
431
|
var l;
|
|
432
|
-
for ((l = this._$AP) == null ? void 0 : l.call(this, !1, !0,
|
|
433
|
-
const
|
|
434
|
-
|
|
432
|
+
for ((l = this._$AP) == null ? void 0 : l.call(this, !1, !0, o); e !== this._$AB; ) {
|
|
433
|
+
const t = E5(e).nextSibling;
|
|
434
|
+
E5(e).remove(), e = t;
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
setConnected(e) {
|
|
438
|
-
var
|
|
439
|
-
this._$AM === void 0 && (this._$Cv = e, (
|
|
438
|
+
var o;
|
|
439
|
+
this._$AM === void 0 && (this._$Cv = e, (o = this._$AP) == null || o.call(this, e));
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
class
|
|
442
|
+
class V1 {
|
|
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,
|
|
450
|
-
this.type = 1, this._$AH =
|
|
449
|
+
constructor(e, o, l, t, i) {
|
|
450
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = e, this.name = o, this._$AM = t, this.options = i, l.length > 2 || l[0] !== "" || l[1] !== "" ? (this._$AH = Array(l.length - 1).fill(new String()), this.strings = l) : this._$AH = u;
|
|
451
451
|
}
|
|
452
|
-
_$AI(e,
|
|
452
|
+
_$AI(e, o = this, l, t) {
|
|
453
453
|
const i = this.strings;
|
|
454
454
|
let n = !1;
|
|
455
|
-
if (i === void 0) e = B(this, e,
|
|
455
|
+
if (i === void 0) e = B(this, e, o, 0), n = !X(e) || e !== this._$AH && e !== I, 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, p;
|
|
459
|
+
for (e = i[0], s = 0; s < i.length - 1; s++) p = B(this, a[l + s], o, s), p === I && (p = this._$AH[s]), n || (n = !X(p) || p !== this._$AH[s]), p === u ? e = u : e !== u && (e += (p ?? "") + i[s + 1]), this._$AH[s] = p;
|
|
460
460
|
}
|
|
461
|
-
n && !
|
|
461
|
+
n && !t && this.j(e);
|
|
462
462
|
}
|
|
463
463
|
j(e) {
|
|
464
|
-
e ===
|
|
464
|
+
e === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
class
|
|
467
|
+
class $2 extends V1 {
|
|
468
468
|
constructor() {
|
|
469
469
|
super(...arguments), this.type = 3;
|
|
470
470
|
}
|
|
471
471
|
j(e) {
|
|
472
|
-
this.element[this.name] = e ===
|
|
472
|
+
this.element[this.name] = e === u ? void 0 : e;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
class
|
|
475
|
+
class E2 extends V1 {
|
|
476
476
|
constructor() {
|
|
477
477
|
super(...arguments), this.type = 4;
|
|
478
478
|
}
|
|
479
479
|
j(e) {
|
|
480
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
480
|
+
this.element.toggleAttribute(this.name, !!e && e !== u);
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
class
|
|
484
|
-
constructor(e,
|
|
485
|
-
super(e,
|
|
483
|
+
class A2 extends V1 {
|
|
484
|
+
constructor(e, o, l, t, i) {
|
|
485
|
+
super(e, o, l, t, i), this.type = 5;
|
|
486
486
|
}
|
|
487
|
-
_$AI(e,
|
|
488
|
-
if ((e = B(this, e,
|
|
489
|
-
const l = this._$AH,
|
|
490
|
-
|
|
487
|
+
_$AI(e, o = this) {
|
|
488
|
+
if ((e = B(this, e, o, 0) ?? u) === I) return;
|
|
489
|
+
const l = this._$AH, t = e === u && l !== u || e.capture !== l.capture || e.once !== l.once || e.passive !== l.passive, i = e !== u && (l === u || t);
|
|
490
|
+
t && 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
|
-
var
|
|
494
|
-
typeof this._$AH == "function" ? this._$AH.call(((
|
|
493
|
+
var o;
|
|
494
|
+
typeof this._$AH == "function" ? this._$AH.call(((o = this.options) == null ? void 0 : o.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
class
|
|
498
|
-
constructor(e,
|
|
499
|
-
this.element = e, this.type = 6, this._$AN = void 0, this._$AM =
|
|
497
|
+
class P2 {
|
|
498
|
+
constructor(e, o, l) {
|
|
499
|
+
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = o, this.options = l;
|
|
500
500
|
}
|
|
501
501
|
get _$AU() {
|
|
502
502
|
return this._$AM._$AU;
|
|
@@ -505,35 +505,35 @@ class w2 {
|
|
|
505
505
|
B(this, e);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
const
|
|
509
|
-
|
|
510
|
-
const
|
|
511
|
-
const l = (
|
|
512
|
-
let
|
|
513
|
-
if (
|
|
514
|
-
const i = (
|
|
515
|
-
l._$litPart$ =
|
|
516
|
-
}
|
|
517
|
-
return
|
|
508
|
+
const _1 = Y.litHtmlPolyfillSupport;
|
|
509
|
+
_1 == null || _1(F, a1), (Y.litHtmlVersions ?? (Y.litHtmlVersions = [])).push("3.3.2");
|
|
510
|
+
const z2 = (C, e, o) => {
|
|
511
|
+
const l = (o == null ? void 0 : o.renderBefore) ?? e;
|
|
512
|
+
let t = l._$litPart$;
|
|
513
|
+
if (t === void 0) {
|
|
514
|
+
const i = (o == null ? void 0 : o.renderBefore) ?? null;
|
|
515
|
+
l._$litPart$ = t = new a1(e.insertBefore(W(), i), i, void 0, o ?? {});
|
|
516
|
+
}
|
|
517
|
+
return t._$AI(C), t;
|
|
518
518
|
};
|
|
519
519
|
/**
|
|
520
520
|
* @license
|
|
521
521
|
* Copyright 2017 Google LLC
|
|
522
522
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
523
523
|
*/
|
|
524
|
-
const
|
|
525
|
-
class c extends
|
|
524
|
+
const z = globalThis;
|
|
525
|
+
class c extends O {
|
|
526
526
|
constructor() {
|
|
527
527
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
528
528
|
}
|
|
529
529
|
createRenderRoot() {
|
|
530
|
-
var
|
|
530
|
+
var o;
|
|
531
531
|
const e = super.createRenderRoot();
|
|
532
|
-
return (
|
|
532
|
+
return (o = this.renderOptions).renderBefore ?? (o.renderBefore = e.firstChild), e;
|
|
533
533
|
}
|
|
534
534
|
update(e) {
|
|
535
|
-
const
|
|
536
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
535
|
+
const o = this.render();
|
|
536
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = z2(o, this.renderRoot, this.renderOptions);
|
|
537
537
|
}
|
|
538
538
|
connectedCallback() {
|
|
539
539
|
var e;
|
|
@@ -544,24 +544,24 @@ class c extends S {
|
|
|
544
544
|
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
|
545
545
|
}
|
|
546
546
|
render() {
|
|
547
|
-
return
|
|
547
|
+
return I;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
var
|
|
551
|
-
c._$litElement$ = !0, c.finalized = !0, (
|
|
552
|
-
const
|
|
553
|
-
|
|
554
|
-
(
|
|
550
|
+
var D5;
|
|
551
|
+
c._$litElement$ = !0, c.finalized = !0, (D5 = z.litElementHydrateSupport) == null || D5.call(z, { LitElement: c });
|
|
552
|
+
const x1 = z.litElementPolyfillSupport;
|
|
553
|
+
x1 == null || x1({ LitElement: c });
|
|
554
|
+
(z.litElementVersions ?? (z.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: l, metadata:
|
|
562
|
-
let i = globalThis.litPropertyMetadata.get(
|
|
563
|
-
if (i === void 0 && globalThis.litPropertyMetadata.set(
|
|
564
|
-
const { name: n } =
|
|
560
|
+
const S2 = { attribute: !0, type: String, converter: h1, reflect: !1, hasChanged: N1 }, O2 = (C = S2, e, o) => {
|
|
561
|
+
const { kind: l, metadata: t } = o;
|
|
562
|
+
let i = globalThis.litPropertyMetadata.get(t);
|
|
563
|
+
if (i === void 0 && globalThis.litPropertyMetadata.set(t, i = /* @__PURE__ */ new Map()), l === "setter" && ((C = Object.create(C)).wrapped = !0), i.set(o.name, C), l === "accessor") {
|
|
564
|
+
const { name: n } = o;
|
|
565
565
|
return { set(a) {
|
|
566
566
|
const s = e.get.call(this);
|
|
567
567
|
e.set.call(this, a), this.requestUpdate(n, s, C, !0, a);
|
|
@@ -570,7 +570,7 @@ const E2 = { attribute: !0, type: String, converter: d1, reflect: !1, hasChanged
|
|
|
570
570
|
} };
|
|
571
571
|
}
|
|
572
572
|
if (l === "setter") {
|
|
573
|
-
const { name: n } =
|
|
573
|
+
const { name: n } = o;
|
|
574
574
|
return function(a) {
|
|
575
575
|
const s = this[n];
|
|
576
576
|
e.call(this, a), this.requestUpdate(n, s, C, !0, a);
|
|
@@ -579,17 +579,17 @@ const E2 = { attribute: !0, type: String, converter: d1, reflect: !1, hasChanged
|
|
|
579
579
|
throw Error("Unsupported decorator location: " + l);
|
|
580
580
|
};
|
|
581
581
|
function r(C) {
|
|
582
|
-
return (e,
|
|
583
|
-
const n =
|
|
584
|
-
return
|
|
585
|
-
})(C, e,
|
|
582
|
+
return (e, o) => typeof o == "object" ? O2(C, e, o) : ((l, t, i) => {
|
|
583
|
+
const n = t.hasOwnProperty(i);
|
|
584
|
+
return t.constructor.createProperty(i, l), n ? Object.getOwnPropertyDescriptor(t, i) : void 0;
|
|
585
|
+
})(C, e, o);
|
|
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
|
|
592
|
+
function s1(C) {
|
|
593
593
|
return r({ ...C, state: !0, attribute: !1 });
|
|
594
594
|
}
|
|
595
595
|
/**
|
|
@@ -597,29 +597,29 @@ function H1(C) {
|
|
|
597
597
|
* Copyright 2017 Google LLC
|
|
598
598
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
599
599
|
*/
|
|
600
|
-
const
|
|
600
|
+
const I2 = (C, e, o) => (o.configurable = !0, o.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(C, e, o), o);
|
|
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 (
|
|
606
|
+
function j1(C, e) {
|
|
607
|
+
return (o, l, t) => {
|
|
608
608
|
const i = (n) => {
|
|
609
609
|
var a;
|
|
610
610
|
return ((a = n.renderRoot) == null ? void 0 : a.querySelector(C)) ?? null;
|
|
611
611
|
};
|
|
612
|
-
return
|
|
612
|
+
return I2(o, l, { get() {
|
|
613
613
|
return i(this);
|
|
614
614
|
} });
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
|
-
var
|
|
618
|
-
for (var
|
|
619
|
-
(n = C[i]) && (
|
|
620
|
-
return
|
|
617
|
+
var B2 = Object.defineProperty, K5 = (C, e, o, l) => {
|
|
618
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
619
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
620
|
+
return t && B2(e, o, t), t;
|
|
621
621
|
};
|
|
622
|
-
const
|
|
622
|
+
const Y1 = class Y1 extends c {
|
|
623
623
|
constructor() {
|
|
624
624
|
super(...arguments), this.size = "medium", this.percent = "";
|
|
625
625
|
}
|
|
@@ -638,11 +638,11 @@ const D1 = class D1 extends c {
|
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
render() {
|
|
641
|
-
const [e,
|
|
642
|
-
let
|
|
643
|
-
l ?
|
|
644
|
-
const i =
|
|
645
|
-
return
|
|
641
|
+
const [e, o] = this.getSizeParams(this.size), l = this.percent === "" || this.percent === null;
|
|
642
|
+
let t;
|
|
643
|
+
l ? t = 0.75 * Math.PI * e : t = (1 - Math.max(0, Math.min(1, parseFloat(this.percent) || 0))) * Math.PI * e;
|
|
644
|
+
const i = o / 2, n = o + e, a = e / 2, s = Math.PI * e;
|
|
645
|
+
return k1`
|
|
646
646
|
<svg
|
|
647
647
|
class=${l ? "spinner" : ""}
|
|
648
648
|
width="${e}px"
|
|
@@ -654,7 +654,7 @@ const D1 = class D1 extends c {
|
|
|
654
654
|
<circle
|
|
655
655
|
stroke="currentColor"
|
|
656
656
|
stroke-linecap="round"
|
|
657
|
-
stroke-width="${
|
|
657
|
+
stroke-width="${o}px"
|
|
658
658
|
cx="${a}"
|
|
659
659
|
cy="${a}"
|
|
660
660
|
r="${a}"
|
|
@@ -664,32 +664,32 @@ const D1 = class D1 extends c {
|
|
|
664
664
|
<circle
|
|
665
665
|
stroke="currentColor"
|
|
666
666
|
stroke-linecap="round"
|
|
667
|
-
stroke-width="${
|
|
667
|
+
stroke-width="${o}px"
|
|
668
668
|
cx="${a}"
|
|
669
669
|
cy="${a}"
|
|
670
670
|
r="${a}"
|
|
671
671
|
fill-opacity="0"
|
|
672
672
|
stroke-dasharray="${s}"
|
|
673
|
-
stroke-dashoffset="${
|
|
673
|
+
stroke-dashoffset="${t}"
|
|
674
674
|
/>
|
|
675
675
|
</svg>
|
|
676
676
|
`;
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
|
-
|
|
679
|
+
Y1.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
|
|
685
|
-
|
|
684
|
+
let K = Y1;
|
|
685
|
+
K5([
|
|
686
686
|
r()
|
|
687
|
-
],
|
|
688
|
-
|
|
687
|
+
], K.prototype, "size");
|
|
688
|
+
K5([
|
|
689
689
|
r()
|
|
690
|
-
],
|
|
691
|
-
customElements.get("anduin-spinner") || customElements.define("anduin-spinner",
|
|
692
|
-
const
|
|
690
|
+
], K.prototype, "percent");
|
|
691
|
+
customElements.get("anduin-spinner") || customElements.define("anduin-spinner", K);
|
|
692
|
+
const B5 = {
|
|
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" }],
|
|
@@ -1026,20 +1026,20 @@ const S5 = {
|
|
|
1026
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" }],
|
|
1027
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" }]
|
|
1028
1028
|
};
|
|
1029
|
-
var
|
|
1030
|
-
for (var
|
|
1031
|
-
(n = C[i]) && (
|
|
1032
|
-
return
|
|
1029
|
+
var T2 = Object.defineProperty, J5 = (C, e, o, l) => {
|
|
1030
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1031
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1032
|
+
return t && T2(e, o, t), t;
|
|
1033
1033
|
};
|
|
1034
|
-
const
|
|
1034
|
+
const W1 = class W1 extends c {
|
|
1035
1035
|
constructor() {
|
|
1036
1036
|
super(...arguments), this.name = "", this.size = 16;
|
|
1037
1037
|
}
|
|
1038
1038
|
render() {
|
|
1039
|
-
const e = this.name &&
|
|
1040
|
-
return
|
|
1039
|
+
const e = this.name && B5[this.name] ? B5[this.name] : [], o = !this.name;
|
|
1040
|
+
return k1`
|
|
1041
1041
|
<svg
|
|
1042
|
-
class=${
|
|
1042
|
+
class=${o ? "icon--hidden" : ""}
|
|
1043
1043
|
xmlns="http://www.w3.org/2000/svg"
|
|
1044
1044
|
fill="none"
|
|
1045
1045
|
width="${this.size}"
|
|
@@ -1047,36 +1047,36 @@ const q1 = class q1 extends c {
|
|
|
1047
1047
|
viewBox="0 0 16 16"
|
|
1048
1048
|
>
|
|
1049
1049
|
${e.map(
|
|
1050
|
-
(l) =>
|
|
1050
|
+
(l) => k1`
|
|
1051
1051
|
<path
|
|
1052
1052
|
fill="currentColor"
|
|
1053
1053
|
d="${l.d}"
|
|
1054
|
-
fill-rule="${l.fillRule ??
|
|
1055
|
-
clip-rule="${l.clipRule ??
|
|
1054
|
+
fill-rule="${l.fillRule ?? u}"
|
|
1055
|
+
clip-rule="${l.clipRule ?? u}"
|
|
1056
1056
|
/>`
|
|
1057
1057
|
)}
|
|
1058
1058
|
</svg>
|
|
1059
1059
|
`;
|
|
1060
1060
|
}
|
|
1061
1061
|
};
|
|
1062
|
-
|
|
1062
|
+
W1.styles = h`
|
|
1063
1063
|
:host { display: block; line-height: 0; font-family: var(--font-sans); }
|
|
1064
1064
|
.icon--hidden { display: none; }
|
|
1065
1065
|
`;
|
|
1066
|
-
let
|
|
1067
|
-
|
|
1066
|
+
let J = W1;
|
|
1067
|
+
J5([
|
|
1068
1068
|
r()
|
|
1069
|
-
],
|
|
1070
|
-
|
|
1069
|
+
], J.prototype, "name");
|
|
1070
|
+
J5([
|
|
1071
1071
|
r({ type: Number })
|
|
1072
|
-
],
|
|
1073
|
-
customElements.get("anduin-icon") || customElements.define("anduin-icon",
|
|
1074
|
-
var
|
|
1075
|
-
for (var
|
|
1076
|
-
(n = C[i]) && (
|
|
1077
|
-
return
|
|
1072
|
+
], J.prototype, "size");
|
|
1073
|
+
customElements.get("anduin-icon") || customElements.define("anduin-icon", J);
|
|
1074
|
+
var N2 = Object.defineProperty, U2 = (C, e, o, l) => {
|
|
1075
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1076
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1077
|
+
return t && N2(e, o, t), t;
|
|
1078
1078
|
};
|
|
1079
|
-
const
|
|
1079
|
+
const Q5 = h`
|
|
1080
1080
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1081
1081
|
.badge {
|
|
1082
1082
|
border-radius: 9999px;
|
|
@@ -1103,7 +1103,7 @@ const X5 = h`
|
|
|
1103
1103
|
.badge--bold-warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1104
1104
|
.badge--hidden { display: none; }
|
|
1105
1105
|
`;
|
|
1106
|
-
function
|
|
1106
|
+
function e2(C) {
|
|
1107
1107
|
return {
|
|
1108
1108
|
gray: "badge--light-gray",
|
|
1109
1109
|
primary: "badge--light-primary",
|
|
@@ -1117,27 +1117,27 @@ function K5(C) {
|
|
|
1117
1117
|
boldDanger: "badge--bold-danger"
|
|
1118
1118
|
}[C || "gray"] || "badge--light-gray";
|
|
1119
1119
|
}
|
|
1120
|
-
const
|
|
1120
|
+
const X1 = class X1 extends c {
|
|
1121
1121
|
constructor() {
|
|
1122
1122
|
super(...arguments), this.variant = "gray";
|
|
1123
1123
|
}
|
|
1124
1124
|
render() {
|
|
1125
|
-
const e =
|
|
1125
|
+
const e = e2(this.variant);
|
|
1126
1126
|
return d`<div class="badge ${e}" part="badge"><slot></slot></div>`;
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
|
-
|
|
1130
|
-
let
|
|
1131
|
-
|
|
1129
|
+
X1.styles = [Q5];
|
|
1130
|
+
let g1 = X1;
|
|
1131
|
+
U2([
|
|
1132
1132
|
r()
|
|
1133
|
-
],
|
|
1134
|
-
customElements.get("anduin-badge") || customElements.define("anduin-badge",
|
|
1135
|
-
var
|
|
1136
|
-
for (var
|
|
1137
|
-
(n = C[i]) && (
|
|
1138
|
-
return
|
|
1133
|
+
], g1.prototype, "variant");
|
|
1134
|
+
customElements.get("anduin-badge") || customElements.define("anduin-badge", g1);
|
|
1135
|
+
var j2 = Object.defineProperty, t2 = (C, e, o, l) => {
|
|
1136
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1137
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1138
|
+
return t && j2(e, o, t), t;
|
|
1139
1139
|
};
|
|
1140
|
-
const
|
|
1140
|
+
const F1 = class F1 extends c {
|
|
1141
1141
|
constructor() {
|
|
1142
1142
|
super(...arguments), this.variant = "gray", this.count = 0;
|
|
1143
1143
|
}
|
|
@@ -1145,96 +1145,96 @@ const Y1 = class Y1 extends c {
|
|
|
1145
1145
|
return e > 99 ? "99+" : e.toString();
|
|
1146
1146
|
}
|
|
1147
1147
|
render() {
|
|
1148
|
-
const e =
|
|
1148
|
+
const e = e2(this.variant), o = this.count === 0, l = this.count > 0 && this.count < 10, t = [
|
|
1149
1149
|
"badge",
|
|
1150
1150
|
e,
|
|
1151
|
-
|
|
1151
|
+
o ? "badge--hidden" : "",
|
|
1152
1152
|
l ? "badge--square" : ""
|
|
1153
1153
|
].filter(Boolean).join(" ");
|
|
1154
|
-
return d`<div class="${
|
|
1154
|
+
return d`<div class="${t}" part="badge">${this.formatCount(this.count)}</div>`;
|
|
1155
1155
|
}
|
|
1156
1156
|
};
|
|
1157
|
-
|
|
1158
|
-
let
|
|
1159
|
-
|
|
1157
|
+
F1.styles = [Q5];
|
|
1158
|
+
let Q = F1;
|
|
1159
|
+
t2([
|
|
1160
1160
|
r()
|
|
1161
|
-
],
|
|
1162
|
-
|
|
1161
|
+
], Q.prototype, "variant");
|
|
1162
|
+
t2([
|
|
1163
1163
|
r({ type: Number })
|
|
1164
|
-
],
|
|
1165
|
-
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count",
|
|
1166
|
-
var
|
|
1167
|
-
for (var
|
|
1168
|
-
(n = C[i]) && (
|
|
1169
|
-
return
|
|
1164
|
+
], Q.prototype, "count");
|
|
1165
|
+
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", Q);
|
|
1166
|
+
var D2 = Object.defineProperty, H = (C, e, o, l) => {
|
|
1167
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1168
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1169
|
+
return t && D2(e, o, t), t;
|
|
1170
1170
|
};
|
|
1171
|
-
function
|
|
1171
|
+
function q2(C) {
|
|
1172
1172
|
return C.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1173
1173
|
}
|
|
1174
|
-
const
|
|
1174
|
+
const K1 = class K1 extends c {
|
|
1175
1175
|
constructor() {
|
|
1176
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 = "";
|
|
1177
1177
|
}
|
|
1178
1178
|
firstUpdated() {
|
|
1179
|
-
var
|
|
1180
|
-
const e = (
|
|
1179
|
+
var o;
|
|
1180
|
+
const e = (o = this.shadowRoot) == null ? void 0 : o.querySelector("slot");
|
|
1181
1181
|
e && (this.iconOnly = e.assignedNodes({ flatten: !0 }).length === 0);
|
|
1182
1182
|
}
|
|
1183
1183
|
onSlotChange(e) {
|
|
1184
|
-
const
|
|
1185
|
-
this.iconOnly =
|
|
1184
|
+
const o = e.target;
|
|
1185
|
+
this.iconOnly = o.assignedNodes({ flatten: !0 }).length === 0;
|
|
1186
1186
|
}
|
|
1187
1187
|
getVariant() {
|
|
1188
1188
|
return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
|
|
1189
1189
|
}
|
|
1190
1190
|
getSizeKebab() {
|
|
1191
|
-
return
|
|
1191
|
+
return q2(this.size);
|
|
1192
1192
|
}
|
|
1193
1193
|
iconSize() {
|
|
1194
1194
|
return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
|
|
1195
1195
|
}
|
|
1196
1196
|
render() {
|
|
1197
|
-
const e = this.getVariant(),
|
|
1197
|
+
const e = this.getVariant(), o = this.getSizeKebab(), l = [
|
|
1198
1198
|
"button",
|
|
1199
1199
|
`button--${this.appearance}`,
|
|
1200
1200
|
`button--${e}`,
|
|
1201
|
-
`button--${
|
|
1201
|
+
`button--${o}`,
|
|
1202
1202
|
this.fullWidth ? "button--full-width" : "",
|
|
1203
1203
|
this.pill ? "button--pill" : "",
|
|
1204
1204
|
this.disabled ? "button--disabled" : "",
|
|
1205
1205
|
this.loading ? "button--loading" : "",
|
|
1206
1206
|
this.selected ? "button--selected" : "",
|
|
1207
1207
|
this.iconOnly && this.appearance !== "text" && !this.fullWidth ? "button--icon-only" : ""
|
|
1208
|
-
].filter(Boolean).join(" "),
|
|
1209
|
-
<div class="button__content button__content--${
|
|
1210
|
-
${this.startIcon ? d`<anduin-icon name="${this.startIcon}" size="${this.iconSize()}"></anduin-icon>` :
|
|
1208
|
+
].filter(Boolean).join(" "), t = d`
|
|
1209
|
+
<div class="button__content button__content--${o}">
|
|
1210
|
+
${this.startIcon ? d`<anduin-icon name="${this.startIcon}" size="${this.iconSize()}"></anduin-icon>` : u}
|
|
1211
1211
|
<slot @slotchange=${this.onSlotChange}></slot>
|
|
1212
|
-
${this.endIcon ? d`<anduin-icon name="${this.endIcon}" size="${this.iconSize()}"></anduin-icon>` :
|
|
1212
|
+
${this.endIcon ? d`<anduin-icon name="${this.endIcon}" size="${this.iconSize()}"></anduin-icon>` : u}
|
|
1213
1213
|
</div>
|
|
1214
|
-
${this.loading && this.appearance !== "text" ? d`<div class="button__loading"><anduin-spinner size="small"></anduin-spinner></div>` :
|
|
1214
|
+
${this.loading && this.appearance !== "text" ? d`<div class="button__loading"><anduin-spinner size="small"></anduin-spinner></div>` : u}
|
|
1215
1215
|
`;
|
|
1216
1216
|
return this.href ? d`
|
|
1217
1217
|
<a
|
|
1218
1218
|
class="${l}"
|
|
1219
1219
|
href="${this.disabled ? "" : this.href}"
|
|
1220
|
-
target="${this.openNewTab ? "_blank" :
|
|
1221
|
-
rel="${this.openNewTab ? "noreferrer noopener" :
|
|
1222
|
-
download="${this.download ||
|
|
1223
|
-
aria-label="${this.label ||
|
|
1224
|
-
>${
|
|
1220
|
+
target="${this.openNewTab ? "_blank" : u}"
|
|
1221
|
+
rel="${this.openNewTab ? "noreferrer noopener" : u}"
|
|
1222
|
+
download="${this.download || u}"
|
|
1223
|
+
aria-label="${this.label || u}"
|
|
1224
|
+
>${t}</a>
|
|
1225
1225
|
` : d`
|
|
1226
1226
|
<button
|
|
1227
1227
|
type="button"
|
|
1228
1228
|
class="${l}"
|
|
1229
1229
|
?disabled="${this.disabled}"
|
|
1230
|
-
aria-label="${this.label ||
|
|
1231
|
-
>${
|
|
1230
|
+
aria-label="${this.label || u}"
|
|
1231
|
+
>${t}</button>
|
|
1232
1232
|
`;
|
|
1233
1233
|
}
|
|
1234
1234
|
};
|
|
1235
|
-
|
|
1235
|
+
K1.styles = h`
|
|
1236
1236
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1237
|
-
:host([full-width
|
|
1237
|
+
:host([full-width]) { display: block; width: 100%; }
|
|
1238
1238
|
.button {
|
|
1239
1239
|
background: none; border-radius: 4px; display: block; flex-shrink: 0; font-weight: 500;
|
|
1240
1240
|
border-width: 1px; border-style: solid; line-height: 16px; white-space: nowrap;
|
|
@@ -1334,9 +1334,9 @@ W1.styles = h`
|
|
|
1334
1334
|
.button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
|
|
1335
1335
|
.button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
|
|
1336
1336
|
`;
|
|
1337
|
-
let f =
|
|
1337
|
+
let f = K1;
|
|
1338
1338
|
H([
|
|
1339
|
-
|
|
1339
|
+
s1()
|
|
1340
1340
|
], f.prototype, "iconOnly");
|
|
1341
1341
|
H([
|
|
1342
1342
|
r()
|
|
@@ -1381,12 +1381,12 @@ H([
|
|
|
1381
1381
|
r()
|
|
1382
1382
|
], f.prototype, "label");
|
|
1383
1383
|
customElements.get("anduin-button") || customElements.define("anduin-button", f);
|
|
1384
|
-
var
|
|
1385
|
-
for (var
|
|
1386
|
-
(n = C[i]) && (
|
|
1387
|
-
return
|
|
1384
|
+
var G2 = Object.defineProperty, Y2 = (C, e, o, l) => {
|
|
1385
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1386
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1387
|
+
return t && G2(e, o, t), t;
|
|
1388
1388
|
};
|
|
1389
|
-
const
|
|
1389
|
+
const J1 = class J1 extends c {
|
|
1390
1390
|
constructor() {
|
|
1391
1391
|
super(...arguments), this.variant = "gray";
|
|
1392
1392
|
}
|
|
@@ -1399,7 +1399,7 @@ const X1 = class X1 extends c {
|
|
|
1399
1399
|
`;
|
|
1400
1400
|
}
|
|
1401
1401
|
};
|
|
1402
|
-
|
|
1402
|
+
J1.styles = h`
|
|
1403
1403
|
:host { display: block; font-family: var(--font-sans); }
|
|
1404
1404
|
.callout {
|
|
1405
1405
|
display: flex; align-items: center; justify-content: center;
|
|
@@ -1411,17 +1411,17 @@ X1.styles = h`
|
|
|
1411
1411
|
.callout--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1412
1412
|
.callout--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1413
1413
|
`;
|
|
1414
|
-
let
|
|
1415
|
-
|
|
1414
|
+
let L1 = J1;
|
|
1415
|
+
Y2([
|
|
1416
1416
|
r()
|
|
1417
|
-
],
|
|
1418
|
-
customElements.get("anduin-callout") || customElements.define("anduin-callout",
|
|
1419
|
-
var
|
|
1420
|
-
for (var
|
|
1421
|
-
(n = C[i]) && (
|
|
1422
|
-
return
|
|
1417
|
+
], L1.prototype, "variant");
|
|
1418
|
+
customElements.get("anduin-callout") || customElements.define("anduin-callout", L1);
|
|
1419
|
+
var W2 = Object.defineProperty, o2 = (C, e, o, l) => {
|
|
1420
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1421
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1422
|
+
return t && W2(e, o, t), t;
|
|
1423
1423
|
};
|
|
1424
|
-
const
|
|
1424
|
+
const Q1 = class Q1 extends c {
|
|
1425
1425
|
constructor() {
|
|
1426
1426
|
super(...arguments), this.direction = "horizontal", this.hasContent = !1;
|
|
1427
1427
|
}
|
|
@@ -1433,9 +1433,9 @@ const K1 = class K1 extends c {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
onSlotChange(e) {
|
|
1435
1435
|
const l = e.target.assignedNodes({ flatten: !0 });
|
|
1436
|
-
this.hasContent = l.some((
|
|
1436
|
+
this.hasContent = l.some((t) => {
|
|
1437
1437
|
var i;
|
|
1438
|
-
return ((i =
|
|
1438
|
+
return ((i = t.textContent) == null ? void 0 : i.trim()) !== "";
|
|
1439
1439
|
});
|
|
1440
1440
|
}
|
|
1441
1441
|
render() {
|
|
@@ -1452,7 +1452,7 @@ const K1 = class K1 extends c {
|
|
|
1452
1452
|
</div>` : d`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
|
|
1453
1453
|
}
|
|
1454
1454
|
};
|
|
1455
|
-
|
|
1455
|
+
Q1.styles = h`
|
|
1456
1456
|
:host { width: 100%; font-family: var(--font-sans); }
|
|
1457
1457
|
:host([direction="vertical"]) { width: auto; height: 100%; }
|
|
1458
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; }
|
|
@@ -1462,20 +1462,20 @@ K1.styles = h`
|
|
|
1462
1462
|
.divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
|
|
1463
1463
|
.divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
|
|
1464
1464
|
`;
|
|
1465
|
-
let
|
|
1466
|
-
|
|
1465
|
+
let e1 = Q1;
|
|
1466
|
+
o2([
|
|
1467
1467
|
r()
|
|
1468
|
-
],
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
],
|
|
1472
|
-
customElements.get("anduin-divider") || customElements.define("anduin-divider",
|
|
1473
|
-
var
|
|
1474
|
-
for (var
|
|
1475
|
-
(n = C[i]) && (
|
|
1476
|
-
return
|
|
1468
|
+
], e1.prototype, "direction");
|
|
1469
|
+
o2([
|
|
1470
|
+
s1()
|
|
1471
|
+
], e1.prototype, "hasContent");
|
|
1472
|
+
customElements.get("anduin-divider") || customElements.define("anduin-divider", e1);
|
|
1473
|
+
var X2 = Object.defineProperty, F2 = (C, e, o, l) => {
|
|
1474
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1475
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1476
|
+
return t && X2(e, o, t), t;
|
|
1477
1477
|
};
|
|
1478
|
-
const
|
|
1478
|
+
const e5 = class e5 extends c {
|
|
1479
1479
|
constructor() {
|
|
1480
1480
|
super(...arguments), this.variant = "gray";
|
|
1481
1481
|
}
|
|
@@ -1483,7 +1483,7 @@ const F1 = class F1 extends c {
|
|
|
1483
1483
|
return d`<div class="dot dot--${this.variant}" part="dot"></div>`;
|
|
1484
1484
|
}
|
|
1485
1485
|
};
|
|
1486
|
-
|
|
1486
|
+
e5.styles = h`
|
|
1487
1487
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1488
1488
|
.dot { width: 10px; height: 10px; border-radius: 9999px; }
|
|
1489
1489
|
.dot--gray { background-color: var(--color-semantic-gray-6); color: var(--color-semantic-gray-0); }
|
|
@@ -1492,33 +1492,33 @@ F1.styles = h`
|
|
|
1492
1492
|
.dot--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
1493
1493
|
.dot--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
1494
1494
|
`;
|
|
1495
|
-
let
|
|
1496
|
-
|
|
1495
|
+
let f1 = e5;
|
|
1496
|
+
F2([
|
|
1497
1497
|
r()
|
|
1498
|
-
],
|
|
1499
|
-
customElements.get("anduin-dot") || customElements.define("anduin-dot",
|
|
1500
|
-
var
|
|
1501
|
-
for (var
|
|
1502
|
-
(n = C[i]) && (
|
|
1503
|
-
return
|
|
1498
|
+
], f1.prototype, "variant");
|
|
1499
|
+
customElements.get("anduin-dot") || customElements.define("anduin-dot", f1);
|
|
1500
|
+
var K2 = Object.defineProperty, l2 = (C, e, o, l) => {
|
|
1501
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1502
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1503
|
+
return t && K2(e, o, t), t;
|
|
1504
1504
|
};
|
|
1505
|
-
const
|
|
1505
|
+
const t5 = class t5 extends c {
|
|
1506
1506
|
constructor() {
|
|
1507
1507
|
super(...arguments), this.percent = "", this.height = "medium";
|
|
1508
1508
|
}
|
|
1509
1509
|
render() {
|
|
1510
|
-
const e = this.height === "large" ? 8 : 3,
|
|
1510
|
+
const e = this.height === "large" ? 8 : 3, o = this.percent === "" || this.percent === null;
|
|
1511
1511
|
let l = "";
|
|
1512
|
-
const
|
|
1513
|
-
return
|
|
1512
|
+
const t = ["progress__fill"];
|
|
1513
|
+
return o ? t.push("progress__fill--indeterminate") : l = `width: ${Math.max(0, Math.min(1, parseFloat(this.percent) || 0)) * 100}%;`, d`
|
|
1514
1514
|
<div class="progress" style="height: ${e}px;" part="progress">
|
|
1515
|
-
<div class="${
|
|
1515
|
+
<div class="${t.join(" ")}" style="${l}"></div>
|
|
1516
1516
|
<div class="progress__background"></div>
|
|
1517
1517
|
</div>
|
|
1518
1518
|
`;
|
|
1519
1519
|
}
|
|
1520
1520
|
};
|
|
1521
|
-
|
|
1521
|
+
t5.styles = h`
|
|
1522
1522
|
:host { display: block; font-family: var(--font-sans); }
|
|
1523
1523
|
.progress { overflow-x: hidden; position: relative; border-radius: 9999px; }
|
|
1524
1524
|
.progress__fill {
|
|
@@ -1534,20 +1534,20 @@ J1.styles = h`
|
|
|
1534
1534
|
to { transform: translateX(330%); }
|
|
1535
1535
|
}
|
|
1536
1536
|
`;
|
|
1537
|
-
let
|
|
1538
|
-
|
|
1537
|
+
let t1 = t5;
|
|
1538
|
+
l2([
|
|
1539
1539
|
r()
|
|
1540
|
-
],
|
|
1541
|
-
|
|
1540
|
+
], t1.prototype, "percent");
|
|
1541
|
+
l2([
|
|
1542
1542
|
r()
|
|
1543
|
-
],
|
|
1544
|
-
customElements.get("anduin-progress") || customElements.define("anduin-progress",
|
|
1545
|
-
var
|
|
1546
|
-
for (var
|
|
1547
|
-
(n = C[i]) && (
|
|
1548
|
-
return
|
|
1543
|
+
], t1.prototype, "height");
|
|
1544
|
+
customElements.get("anduin-progress") || customElements.define("anduin-progress", t1);
|
|
1545
|
+
var J2 = Object.defineProperty, j = (C, e, o, l) => {
|
|
1546
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1547
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1548
|
+
return t && J2(e, o, t), t;
|
|
1549
1549
|
};
|
|
1550
|
-
const
|
|
1550
|
+
const o5 = class o5 extends c {
|
|
1551
1551
|
constructor() {
|
|
1552
1552
|
super(...arguments), this.effect = "pulse", this.shape = "rectangle", this.height = "", this.width = "100%", this.duration = 1500, this.fontSize = "";
|
|
1553
1553
|
}
|
|
@@ -1558,15 +1558,15 @@ const Q1 = class Q1 extends c {
|
|
|
1558
1558
|
this.shape === "rounded" ? "skeleton--rounded" : "",
|
|
1559
1559
|
this.shape === "rectangle" ? "skeleton--rectangle" : "",
|
|
1560
1560
|
this.shape === "text" && this.fontSize ? "skeleton--text" : ""
|
|
1561
|
-
].filter(Boolean).join(" "),
|
|
1561
|
+
].filter(Boolean).join(" "), o = this.shape === "text" && this.fontSize ? `--anduin-skeleton-font-size: ${this.fontSize};` : "", l = `${this.height ? `height: ${this.height};` : ""} width: ${this.width};`, t = this.effect === "pulse" ? `animation: skeleton-pulse ${this.duration}ms ease-in-out infinite;` : "";
|
|
1562
1562
|
return d`
|
|
1563
|
-
<div class="${e}" style="${
|
|
1563
|
+
<div class="${e}" style="${o} ${l} ${t}" part="skeleton">
|
|
1564
1564
|
${this.effect === "wave" ? d`<div class="skeleton__wave" style="animation: skeleton-wave ${this.duration}ms linear infinite;"></div>` : ""}
|
|
1565
1565
|
</div>
|
|
1566
1566
|
`;
|
|
1567
1567
|
}
|
|
1568
1568
|
};
|
|
1569
|
-
|
|
1569
|
+
o5.styles = h`
|
|
1570
1570
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1571
1571
|
.skeleton { background-color: var(--color-gray-3); position: relative; overflow: hidden; }
|
|
1572
1572
|
.skeleton--circle { border-radius: 9999px; }
|
|
@@ -1585,32 +1585,32 @@ Q1.styles = h`
|
|
|
1585
1585
|
0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
|
|
1586
1586
|
}
|
|
1587
1587
|
`;
|
|
1588
|
-
let y =
|
|
1589
|
-
|
|
1588
|
+
let y = o5;
|
|
1589
|
+
j([
|
|
1590
1590
|
r()
|
|
1591
1591
|
], y.prototype, "effect");
|
|
1592
|
-
|
|
1592
|
+
j([
|
|
1593
1593
|
r()
|
|
1594
1594
|
], y.prototype, "shape");
|
|
1595
|
-
|
|
1595
|
+
j([
|
|
1596
1596
|
r()
|
|
1597
1597
|
], y.prototype, "height");
|
|
1598
|
-
|
|
1598
|
+
j([
|
|
1599
1599
|
r()
|
|
1600
1600
|
], y.prototype, "width");
|
|
1601
|
-
|
|
1601
|
+
j([
|
|
1602
1602
|
r({ type: Number })
|
|
1603
1603
|
], y.prototype, "duration");
|
|
1604
|
-
|
|
1604
|
+
j([
|
|
1605
1605
|
r({ attribute: "font-size" })
|
|
1606
1606
|
], y.prototype, "fontSize");
|
|
1607
1607
|
customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", y);
|
|
1608
|
-
var
|
|
1609
|
-
for (var
|
|
1610
|
-
(n = C[i]) && (
|
|
1611
|
-
return
|
|
1608
|
+
var Q2 = Object.defineProperty, e4 = (C, e, o, l) => {
|
|
1609
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1610
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1611
|
+
return t && Q2(e, o, t), t;
|
|
1612
1612
|
};
|
|
1613
|
-
const
|
|
1613
|
+
const l5 = class l5 extends c {
|
|
1614
1614
|
constructor() {
|
|
1615
1615
|
super(...arguments), this.height = "256px";
|
|
1616
1616
|
}
|
|
@@ -1625,31 +1625,31 @@ const e5 = class e5 extends c {
|
|
|
1625
1625
|
`;
|
|
1626
1626
|
}
|
|
1627
1627
|
};
|
|
1628
|
-
|
|
1628
|
+
l5.styles = h`
|
|
1629
1629
|
:host { display: block; height: 100%; font-family: var(--font-sans); }
|
|
1630
1630
|
.loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
|
|
1631
1631
|
.loading-state__indicator { color: var(--color-primary-4); }
|
|
1632
1632
|
.loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-gray-6); }
|
|
1633
1633
|
`;
|
|
1634
|
-
let
|
|
1635
|
-
|
|
1634
|
+
let H1 = l5;
|
|
1635
|
+
e4([
|
|
1636
1636
|
r()
|
|
1637
|
-
],
|
|
1638
|
-
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state",
|
|
1639
|
-
var
|
|
1640
|
-
for (var
|
|
1641
|
-
(n = C[i]) && (
|
|
1642
|
-
return
|
|
1637
|
+
], H1.prototype, "height");
|
|
1638
|
+
customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", H1);
|
|
1639
|
+
var t4 = Object.defineProperty, D1 = (C, e, o, l) => {
|
|
1640
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1641
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1642
|
+
return t && t4(e, o, t), t;
|
|
1643
1643
|
};
|
|
1644
|
-
const
|
|
1644
|
+
const C2 = "anduin-field:label-click", M1 = "anduin-field:label-click-coordinated", C5 = class C5 extends c {
|
|
1645
1645
|
constructor() {
|
|
1646
1646
|
super(...arguments), this.orientation = "vertical";
|
|
1647
1647
|
}
|
|
1648
1648
|
connectedCallback() {
|
|
1649
|
-
super.connectedCallback(), this.addEventListener(
|
|
1650
|
-
const
|
|
1651
|
-
this.dispatchEvent(new CustomEvent(
|
|
1652
|
-
detail:
|
|
1649
|
+
super.connectedCallback(), this.addEventListener(C2, (e) => {
|
|
1650
|
+
const o = e;
|
|
1651
|
+
this.dispatchEvent(new CustomEvent(M1, {
|
|
1652
|
+
detail: o.detail,
|
|
1653
1653
|
bubbles: !1,
|
|
1654
1654
|
composed: !1
|
|
1655
1655
|
}));
|
|
@@ -1664,17 +1664,17 @@ const e2 = "anduin-field:label-click", b1 = "anduin-field:label-click-coordinate
|
|
|
1664
1664
|
`;
|
|
1665
1665
|
}
|
|
1666
1666
|
};
|
|
1667
|
-
|
|
1667
|
+
C5.styles = h`
|
|
1668
1668
|
:host { display: block; font-family: var(--font-sans); }
|
|
1669
1669
|
.field { display: flex; flex-wrap: wrap; }
|
|
1670
1670
|
.field--vertical { flex-direction: column; row-gap: 4px; }
|
|
1671
1671
|
.field--horizontal { column-gap: 4px; }
|
|
1672
1672
|
`;
|
|
1673
|
-
let
|
|
1674
|
-
|
|
1673
|
+
let b1 = C5;
|
|
1674
|
+
D1([
|
|
1675
1675
|
r()
|
|
1676
|
-
],
|
|
1677
|
-
const
|
|
1676
|
+
], b1.prototype, "orientation");
|
|
1677
|
+
const i5 = class i5 extends c {
|
|
1678
1678
|
constructor() {
|
|
1679
1679
|
super(...arguments), this.htmlfor = "", this.required = !1;
|
|
1680
1680
|
}
|
|
@@ -1682,7 +1682,7 @@ const o5 = class o5 extends c {
|
|
|
1682
1682
|
super.connectedCallback();
|
|
1683
1683
|
}
|
|
1684
1684
|
onLabelClick(e) {
|
|
1685
|
-
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(
|
|
1685
|
+
this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(C2, {
|
|
1686
1686
|
detail: this.htmlfor,
|
|
1687
1687
|
bubbles: !0,
|
|
1688
1688
|
composed: !0
|
|
@@ -1701,72 +1701,72 @@ const o5 = class o5 extends c {
|
|
|
1701
1701
|
`;
|
|
1702
1702
|
}
|
|
1703
1703
|
};
|
|
1704
|
-
|
|
1704
|
+
i5.styles = h`
|
|
1705
1705
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1706
1706
|
.field-label { font-size: 13px; line-height: 20px; font-weight: 600; cursor: default; }
|
|
1707
1707
|
.field-label__required { color: var(--color-danger-5); }
|
|
1708
1708
|
`;
|
|
1709
|
-
let
|
|
1710
|
-
|
|
1709
|
+
let o1 = i5;
|
|
1710
|
+
D1([
|
|
1711
1711
|
r()
|
|
1712
|
-
],
|
|
1713
|
-
|
|
1712
|
+
], o1.prototype, "htmlfor");
|
|
1713
|
+
D1([
|
|
1714
1714
|
r({ type: Boolean })
|
|
1715
|
-
],
|
|
1716
|
-
const
|
|
1715
|
+
], o1.prototype, "required");
|
|
1716
|
+
const n5 = class n5 extends c {
|
|
1717
1717
|
render() {
|
|
1718
1718
|
return d`<div class="field-description" part="description"><slot></slot></div>`;
|
|
1719
1719
|
}
|
|
1720
1720
|
};
|
|
1721
|
-
|
|
1721
|
+
n5.styles = h`
|
|
1722
1722
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
1723
1723
|
.field-description { display: block; line-height: 16px; font-size: 11px; color: var(--color-gray-7); }
|
|
1724
1724
|
`;
|
|
1725
|
-
let
|
|
1726
|
-
const
|
|
1725
|
+
let w1 = n5;
|
|
1726
|
+
const r5 = class r5 extends c {
|
|
1727
1727
|
render() {
|
|
1728
1728
|
return d`<div class="field-error" part="error"><slot></slot></div>`;
|
|
1729
1729
|
}
|
|
1730
1730
|
};
|
|
1731
|
-
|
|
1731
|
+
r5.styles = h`
|
|
1732
1732
|
:host { display: block; font-family: var(--font-sans); }
|
|
1733
1733
|
.field-error { color: var(--color-danger-4); }
|
|
1734
1734
|
`;
|
|
1735
|
-
let
|
|
1736
|
-
const
|
|
1735
|
+
let $1 = r5;
|
|
1736
|
+
const a5 = class a5 extends c {
|
|
1737
1737
|
render() {
|
|
1738
1738
|
return d`<div class="field-group" part="group"><slot></slot></div>`;
|
|
1739
1739
|
}
|
|
1740
1740
|
};
|
|
1741
|
-
|
|
1741
|
+
a5.styles = h`
|
|
1742
1742
|
:host { display: block; font-family: var(--font-sans); }
|
|
1743
1743
|
.field-group { display: flex; flex-direction: column; row-gap: 24px; }
|
|
1744
1744
|
`;
|
|
1745
|
-
let
|
|
1746
|
-
customElements.get("anduin-field") || customElements.define("anduin-field",
|
|
1747
|
-
customElements.get("anduin-field-label") || customElements.define("anduin-field-label",
|
|
1748
|
-
customElements.get("anduin-field-description") || customElements.define("anduin-field-description",
|
|
1749
|
-
customElements.get("anduin-field-error") || customElements.define("anduin-field-error",
|
|
1750
|
-
customElements.get("anduin-field-group") || customElements.define("anduin-field-group",
|
|
1751
|
-
var
|
|
1752
|
-
for (var
|
|
1753
|
-
(n = C[i]) && (
|
|
1754
|
-
return
|
|
1745
|
+
let E1 = a5;
|
|
1746
|
+
customElements.get("anduin-field") || customElements.define("anduin-field", b1);
|
|
1747
|
+
customElements.get("anduin-field-label") || customElements.define("anduin-field-label", o1);
|
|
1748
|
+
customElements.get("anduin-field-description") || customElements.define("anduin-field-description", w1);
|
|
1749
|
+
customElements.get("anduin-field-error") || customElements.define("anduin-field-error", $1);
|
|
1750
|
+
customElements.get("anduin-field-group") || customElements.define("anduin-field-group", E1);
|
|
1751
|
+
var o4 = Object.defineProperty, d1 = (C, e, o, l) => {
|
|
1752
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1753
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1754
|
+
return t && o4(e, o, t), t;
|
|
1755
1755
|
};
|
|
1756
|
-
const
|
|
1756
|
+
const l4 = "anduin-checkbox:change", s5 = class s5 extends c {
|
|
1757
1757
|
constructor() {
|
|
1758
1758
|
super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
|
|
1759
1759
|
}
|
|
1760
1760
|
connectedCallback() {
|
|
1761
1761
|
super.connectedCallback();
|
|
1762
1762
|
const e = this.closest("anduin-field");
|
|
1763
|
-
e && e.addEventListener(
|
|
1764
|
-
const l =
|
|
1763
|
+
e && e.addEventListener(M1, (o) => {
|
|
1764
|
+
const l = o;
|
|
1765
1765
|
this.inputid && this.inputid === l.detail && !this.disabled && !this.readonly && this.toggle();
|
|
1766
1766
|
});
|
|
1767
1767
|
}
|
|
1768
1768
|
toggle() {
|
|
1769
|
-
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(
|
|
1769
|
+
this.checked = !this.checked, this.dispatchEvent(new CustomEvent(l4, {
|
|
1770
1770
|
detail: this.checked,
|
|
1771
1771
|
bubbles: !0,
|
|
1772
1772
|
composed: !0
|
|
@@ -1782,7 +1782,7 @@ const Q2 = "anduin-checkbox:change", n5 = class n5 extends c {
|
|
|
1782
1782
|
this.readonly && !this.indeterminate && !this.checked ? "checkbox__box--readonly" : "",
|
|
1783
1783
|
this.disabled && !this.indeterminate && !this.checked ? "checkbox__box--disabled" : "",
|
|
1784
1784
|
!this.indeterminate && !this.checked && !this.readonly && !this.disabled ? "checkbox__box--unchecked" : ""
|
|
1785
|
-
].filter(Boolean).join(" "),
|
|
1785
|
+
].filter(Boolean).join(" "), o = this.indeterminate ? "minusBold" : this.checked ? "checkBold" : "", l = !this.disabled && !this.readonly, t = l ? 0 : -1;
|
|
1786
1786
|
return d`
|
|
1787
1787
|
<div
|
|
1788
1788
|
class="checkbox ${l ? "checkbox--interactive" : ""} ${this.disabled ? "checkbox--disabled" : ""}"
|
|
@@ -1793,18 +1793,18 @@ const Q2 = "anduin-checkbox:change", n5 = class n5 extends c {
|
|
|
1793
1793
|
type="checkbox"
|
|
1794
1794
|
.checked=${this.checked}
|
|
1795
1795
|
?disabled=${this.disabled || this.readonly}
|
|
1796
|
-
tabindex="${
|
|
1797
|
-
@change=${l ? this.onInputChange :
|
|
1796
|
+
tabindex="${t}"
|
|
1797
|
+
@change=${l ? this.onInputChange : u}
|
|
1798
1798
|
/>
|
|
1799
|
-
<div class="${e}" tabindex="${
|
|
1799
|
+
<div class="${e}" tabindex="${t}"></div>
|
|
1800
1800
|
<div class="checkbox__icon ${this.indeterminate || this.checked ? "checkbox__icon--visible" : ""}">
|
|
1801
|
-
${
|
|
1801
|
+
${o ? d`<anduin-icon name="${o}" size="16"></anduin-icon>` : u}
|
|
1802
1802
|
</div>
|
|
1803
1803
|
</div>
|
|
1804
1804
|
`;
|
|
1805
1805
|
}
|
|
1806
1806
|
};
|
|
1807
|
-
|
|
1807
|
+
s5.styles = h`
|
|
1808
1808
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
1809
1809
|
.checkbox { width: 16px; height: 16px; position: relative; }
|
|
1810
1810
|
.checkbox--interactive { cursor: pointer; }
|
|
@@ -1827,58 +1827,58 @@ n5.styles = h`
|
|
|
1827
1827
|
.checkbox__icon { position: absolute; inset: 0; pointer-events: none; color: var(--color-gray-4); display: flex; align-items: center; justify-content: center; }
|
|
1828
1828
|
.checkbox__icon--visible { color: var(--color-gray-0); }
|
|
1829
1829
|
`;
|
|
1830
|
-
let
|
|
1831
|
-
|
|
1830
|
+
let w = s5;
|
|
1831
|
+
d1([
|
|
1832
1832
|
r({ type: Boolean })
|
|
1833
|
-
],
|
|
1834
|
-
|
|
1833
|
+
], w.prototype, "checked");
|
|
1834
|
+
d1([
|
|
1835
1835
|
r({ type: Boolean })
|
|
1836
|
-
],
|
|
1837
|
-
|
|
1836
|
+
], w.prototype, "disabled");
|
|
1837
|
+
d1([
|
|
1838
1838
|
r({ type: Boolean })
|
|
1839
|
-
],
|
|
1840
|
-
|
|
1839
|
+
], w.prototype, "indeterminate");
|
|
1840
|
+
d1([
|
|
1841
1841
|
r({ type: Boolean })
|
|
1842
|
-
],
|
|
1843
|
-
|
|
1842
|
+
], w.prototype, "readonly");
|
|
1843
|
+
d1([
|
|
1844
1844
|
r()
|
|
1845
|
-
],
|
|
1846
|
-
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox",
|
|
1847
|
-
var
|
|
1848
|
-
for (var
|
|
1849
|
-
(n = C[i]) && (
|
|
1850
|
-
return
|
|
1845
|
+
], w.prototype, "inputid");
|
|
1846
|
+
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", w);
|
|
1847
|
+
var C4 = Object.defineProperty, $ = (C, e, o, l) => {
|
|
1848
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1849
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1850
|
+
return t && C4(e, o, t), t;
|
|
1851
1851
|
};
|
|
1852
|
-
const
|
|
1852
|
+
const i4 = "anduin-input:change", d5 = class d5 extends c {
|
|
1853
1853
|
constructor() {
|
|
1854
1854
|
super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "";
|
|
1855
1855
|
}
|
|
1856
1856
|
connectedCallback() {
|
|
1857
1857
|
super.connectedCallback();
|
|
1858
1858
|
const e = this.closest("anduin-field");
|
|
1859
|
-
e && e.addEventListener(
|
|
1860
|
-
var
|
|
1861
|
-
const l =
|
|
1862
|
-
this.inputid && this.inputid === l.detail && ((
|
|
1859
|
+
e && e.addEventListener(M1, (o) => {
|
|
1860
|
+
var t;
|
|
1861
|
+
const l = o;
|
|
1862
|
+
this.inputid && this.inputid === l.detail && ((t = this.inputEl) == null || t.focus());
|
|
1863
1863
|
});
|
|
1864
1864
|
}
|
|
1865
1865
|
updated() {
|
|
1866
1866
|
this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
|
|
1867
1867
|
}
|
|
1868
1868
|
onInput() {
|
|
1869
|
-
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(
|
|
1869
|
+
this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(i4, {
|
|
1870
1870
|
detail: this.value,
|
|
1871
1871
|
bubbles: !0,
|
|
1872
1872
|
composed: !0
|
|
1873
1873
|
}));
|
|
1874
1874
|
}
|
|
1875
1875
|
render() {
|
|
1876
|
-
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default",
|
|
1876
|
+
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", o = this.status ? `input--${this.status}` : "", l = this.querySelector('[slot="icon"]') !== null;
|
|
1877
1877
|
return d`
|
|
1878
1878
|
<div class="input-container${l ? " input-container--has-icon" : ""}">
|
|
1879
1879
|
<slot name="icon" class="input__icon"></slot>
|
|
1880
1880
|
<input
|
|
1881
|
-
class="input ${e} ${this.disabled ? "input--disabled" : ""} ${this.readonly ? "input--readonly" : ""} ${
|
|
1881
|
+
class="input ${e} ${this.disabled ? "input--disabled" : ""} ${this.readonly ? "input--readonly" : ""} ${o}"
|
|
1882
1882
|
type="text"
|
|
1883
1883
|
?disabled=${this.disabled}
|
|
1884
1884
|
?readonly=${this.readonly}
|
|
@@ -1891,7 +1891,7 @@ const t4 = "anduin-input:change", r5 = class r5 extends c {
|
|
|
1891
1891
|
`;
|
|
1892
1892
|
}
|
|
1893
1893
|
};
|
|
1894
|
-
|
|
1894
|
+
d5.styles = h`
|
|
1895
1895
|
:host { display: block; font-family: var(--font-sans); }
|
|
1896
1896
|
.input-container { position: relative; display: flex; align-items: center; }
|
|
1897
1897
|
.input-container--has-icon .input { padding-left: 32px; }
|
|
@@ -1914,55 +1914,55 @@ r5.styles = h`
|
|
|
1914
1914
|
.input--warning { border-color: var(--color-warning-4); }
|
|
1915
1915
|
.input--loading { border-color: var(--color-gray-4); }
|
|
1916
1916
|
`;
|
|
1917
|
-
let M =
|
|
1918
|
-
|
|
1917
|
+
let M = d5;
|
|
1918
|
+
$([
|
|
1919
1919
|
r()
|
|
1920
1920
|
], M.prototype, "value");
|
|
1921
|
-
|
|
1921
|
+
$([
|
|
1922
1922
|
r()
|
|
1923
1923
|
], M.prototype, "size");
|
|
1924
|
-
|
|
1924
|
+
$([
|
|
1925
1925
|
r({ type: Boolean })
|
|
1926
1926
|
], M.prototype, "disabled");
|
|
1927
|
-
|
|
1927
|
+
$([
|
|
1928
1928
|
r({ type: Boolean })
|
|
1929
1929
|
], M.prototype, "readonly");
|
|
1930
|
-
|
|
1930
|
+
$([
|
|
1931
1931
|
r()
|
|
1932
1932
|
], M.prototype, "placeholder");
|
|
1933
|
-
|
|
1933
|
+
$([
|
|
1934
1934
|
r()
|
|
1935
1935
|
], M.prototype, "inputid");
|
|
1936
|
-
|
|
1936
|
+
$([
|
|
1937
1937
|
r()
|
|
1938
1938
|
], M.prototype, "status");
|
|
1939
|
-
|
|
1940
|
-
|
|
1939
|
+
$([
|
|
1940
|
+
j1("input")
|
|
1941
1941
|
], M.prototype, "inputEl");
|
|
1942
1942
|
customElements.get("anduin-input") || customElements.define("anduin-input", M);
|
|
1943
|
-
var
|
|
1944
|
-
for (var
|
|
1945
|
-
(n = C[i]) && (
|
|
1946
|
-
return
|
|
1943
|
+
var n4 = Object.defineProperty, E = (C, e, o, l) => {
|
|
1944
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
1945
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
1946
|
+
return t && n4(e, o, t), t;
|
|
1947
1947
|
};
|
|
1948
|
-
const
|
|
1948
|
+
const r4 = "anduin-textarea:change", c5 = class c5 extends c {
|
|
1949
1949
|
constructor() {
|
|
1950
1950
|
super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
|
|
1951
1951
|
}
|
|
1952
1952
|
connectedCallback() {
|
|
1953
1953
|
super.connectedCallback();
|
|
1954
1954
|
const e = this.closest("anduin-field");
|
|
1955
|
-
e && e.addEventListener(
|
|
1956
|
-
var
|
|
1957
|
-
const l =
|
|
1958
|
-
this.inputid && this.inputid === l.detail && ((
|
|
1955
|
+
e && e.addEventListener(M1, (o) => {
|
|
1956
|
+
var t;
|
|
1957
|
+
const l = o;
|
|
1958
|
+
this.inputid && this.inputid === l.detail && ((t = this.textareaEl) == null || t.focus());
|
|
1959
1959
|
});
|
|
1960
1960
|
}
|
|
1961
1961
|
updated() {
|
|
1962
1962
|
this.textareaEl && this.textareaEl.value !== this.value && (this.textareaEl.value = this.value);
|
|
1963
1963
|
}
|
|
1964
1964
|
onInput() {
|
|
1965
|
-
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(
|
|
1965
|
+
this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(r4, {
|
|
1966
1966
|
detail: this.value,
|
|
1967
1967
|
bubbles: !0,
|
|
1968
1968
|
composed: !0
|
|
@@ -1986,7 +1986,7 @@ const l4 = "anduin-textarea:change", a5 = class a5 extends c {
|
|
|
1986
1986
|
`;
|
|
1987
1987
|
}
|
|
1988
1988
|
};
|
|
1989
|
-
|
|
1989
|
+
c5.styles = h`
|
|
1990
1990
|
:host { display: block; font-family: var(--font-sans); }
|
|
1991
1991
|
.textarea-container { position: relative; display: flex; align-items: stretch; }
|
|
1992
1992
|
.textarea {
|
|
@@ -2004,46 +2004,46 @@ a5.styles = h`
|
|
|
2004
2004
|
.textarea--warning { border-color: var(--color-warning-4); }
|
|
2005
2005
|
.textarea--loading { border-color: var(--color-gray-4); }
|
|
2006
2006
|
`;
|
|
2007
|
-
let Z =
|
|
2008
|
-
|
|
2007
|
+
let Z = c5;
|
|
2008
|
+
E([
|
|
2009
2009
|
r()
|
|
2010
2010
|
], Z.prototype, "value");
|
|
2011
|
-
|
|
2011
|
+
E([
|
|
2012
2012
|
r({ type: Boolean })
|
|
2013
2013
|
], Z.prototype, "disabled");
|
|
2014
|
-
|
|
2014
|
+
E([
|
|
2015
2015
|
r({ type: Boolean })
|
|
2016
2016
|
], Z.prototype, "readonly");
|
|
2017
|
-
|
|
2017
|
+
E([
|
|
2018
2018
|
r()
|
|
2019
2019
|
], Z.prototype, "placeholder");
|
|
2020
|
-
|
|
2020
|
+
E([
|
|
2021
2021
|
r()
|
|
2022
2022
|
], Z.prototype, "inputid");
|
|
2023
|
-
|
|
2023
|
+
E([
|
|
2024
2024
|
r({ type: Number })
|
|
2025
2025
|
], Z.prototype, "rows");
|
|
2026
|
-
|
|
2026
|
+
E([
|
|
2027
2027
|
r()
|
|
2028
2028
|
], Z.prototype, "status");
|
|
2029
|
-
|
|
2030
|
-
|
|
2029
|
+
E([
|
|
2030
|
+
j1("textarea")
|
|
2031
2031
|
], Z.prototype, "textareaEl");
|
|
2032
2032
|
customElements.get("anduin-textarea") || customElements.define("anduin-textarea", Z);
|
|
2033
|
-
var
|
|
2034
|
-
for (var
|
|
2035
|
-
(n = C[i]) && (
|
|
2036
|
-
return
|
|
2033
|
+
var a4 = Object.defineProperty, b = (C, e, o, l) => {
|
|
2034
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2035
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
2036
|
+
return t && a4(e, o, t), t;
|
|
2037
2037
|
};
|
|
2038
|
-
const
|
|
2038
|
+
const i2 = "anduin-tab:trigger-click", Z1 = "anduin-tab:value-changed", s4 = "anduin-tab:change", u5 = class u5 extends c {
|
|
2039
2039
|
constructor() {
|
|
2040
2040
|
super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
|
|
2041
2041
|
}
|
|
2042
2042
|
connectedCallback() {
|
|
2043
|
-
super.connectedCallback(), this.addEventListener(
|
|
2043
|
+
super.connectedCallback(), this.addEventListener(i2, (e) => {
|
|
2044
2044
|
e.stopPropagation();
|
|
2045
|
-
const
|
|
2046
|
-
this.value =
|
|
2045
|
+
const o = e;
|
|
2046
|
+
this.value = o.detail, this.broadcastValueChanged(o.detail), this.dispatchEvent(new CustomEvent(s4, { detail: o.detail, bubbles: !0, composed: !0 }));
|
|
2047
2047
|
}), requestAnimationFrame(() => {
|
|
2048
2048
|
const e = this.value || this.defaultValue;
|
|
2049
2049
|
e && (this.value || (this.value = e), this.broadcastValueChanged(e));
|
|
@@ -2053,37 +2053,37 @@ const t2 = "anduin-tab:trigger-click", m1 = "anduin-tab:value-changed", i4 = "an
|
|
|
2053
2053
|
e.has("value") && this.value && this.broadcastValueChanged(this.value);
|
|
2054
2054
|
}
|
|
2055
2055
|
broadcastValueChanged(e) {
|
|
2056
|
-
this.dispatchEvent(new CustomEvent(
|
|
2056
|
+
this.dispatchEvent(new CustomEvent(Z1, { detail: e, bubbles: !1, composed: !1 }));
|
|
2057
2057
|
}
|
|
2058
2058
|
render() {
|
|
2059
2059
|
return d`<div class="tabs" part="tabs"><slot></slot></div>`;
|
|
2060
2060
|
}
|
|
2061
2061
|
};
|
|
2062
|
-
|
|
2062
|
+
u5.styles = h`
|
|
2063
2063
|
:host { display: flex; flex-direction: column; font-family: var(--font-sans); }
|
|
2064
2064
|
:host([fill]) { flex: 1; min-height: 0; --_tab-fill-flex: 1; --_tab-fill-height: 100%; }
|
|
2065
2065
|
.tabs { display: flex; flex-direction: column; width: 100%; }
|
|
2066
2066
|
:host([fill]) .tabs { flex: 1; min-height: 0; }
|
|
2067
2067
|
`;
|
|
2068
|
-
let
|
|
2068
|
+
let T = u5;
|
|
2069
2069
|
b([
|
|
2070
2070
|
r({ attribute: "default-value" })
|
|
2071
|
-
],
|
|
2071
|
+
], T.prototype, "defaultValue");
|
|
2072
2072
|
b([
|
|
2073
2073
|
r()
|
|
2074
|
-
],
|
|
2074
|
+
], T.prototype, "value");
|
|
2075
2075
|
b([
|
|
2076
2076
|
r({ type: Boolean, reflect: !0 })
|
|
2077
|
-
],
|
|
2078
|
-
const
|
|
2077
|
+
], T.prototype, "fill");
|
|
2078
|
+
const p5 = class p5 extends c {
|
|
2079
2079
|
constructor() {
|
|
2080
2080
|
super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
|
|
2081
2081
|
}
|
|
2082
2082
|
connectedCallback() {
|
|
2083
2083
|
super.connectedCallback();
|
|
2084
2084
|
const e = this.closest("anduin-tabs");
|
|
2085
|
-
e && e.addEventListener(
|
|
2086
|
-
const l =
|
|
2085
|
+
e && e.addEventListener(Z1, (o) => {
|
|
2086
|
+
const l = o;
|
|
2087
2087
|
this.lastActiveValue = l.detail, requestAnimationFrame(() => {
|
|
2088
2088
|
this.animateIndicator(l.detail);
|
|
2089
2089
|
});
|
|
@@ -2099,11 +2099,11 @@ const d5 = class d5 extends c {
|
|
|
2099
2099
|
super.disconnectedCallback(), (e = this.resizeObserver) == null || e.disconnect(), this.resizeObserver = null;
|
|
2100
2100
|
}
|
|
2101
2101
|
animateIndicator(e) {
|
|
2102
|
-
const
|
|
2103
|
-
for (let l = 0; l <
|
|
2104
|
-
const
|
|
2105
|
-
if (
|
|
2106
|
-
const i =
|
|
2102
|
+
const o = this.querySelectorAll(":scope > anduin-tab-trigger");
|
|
2103
|
+
for (let l = 0; l < o.length; l++) {
|
|
2104
|
+
const t = o[l];
|
|
2105
|
+
if (t.getAttribute("value") === e) {
|
|
2106
|
+
const i = t.getBoundingClientRect(), n = this.getBoundingClientRect(), a = i.left - n.left + this.scrollLeft;
|
|
2107
2107
|
this.indicator && (this.indicator.style.width = `${i.width}px`, this.indicator.style.transform = `translateX(${a}px)`);
|
|
2108
2108
|
break;
|
|
2109
2109
|
}
|
|
@@ -2118,7 +2118,7 @@ const d5 = class d5 extends c {
|
|
|
2118
2118
|
`;
|
|
2119
2119
|
}
|
|
2120
2120
|
};
|
|
2121
|
-
|
|
2121
|
+
p5.styles = h`
|
|
2122
2122
|
:host { display: block; font-family: var(--font-sans); }
|
|
2123
2123
|
.tabs-list {
|
|
2124
2124
|
display: flex; background-color: var(--color-gray-0);
|
|
@@ -2133,27 +2133,27 @@ d5.styles = h`
|
|
|
2133
2133
|
left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
|
|
2134
2134
|
}
|
|
2135
2135
|
`;
|
|
2136
|
-
let
|
|
2136
|
+
let l1 = p5;
|
|
2137
2137
|
b([
|
|
2138
2138
|
r()
|
|
2139
|
-
],
|
|
2139
|
+
], l1.prototype, "alignment");
|
|
2140
2140
|
b([
|
|
2141
|
-
|
|
2142
|
-
],
|
|
2143
|
-
const
|
|
2141
|
+
j1(".tabs-list__indicator")
|
|
2142
|
+
], l1.prototype, "indicator");
|
|
2143
|
+
const h5 = class h5 extends c {
|
|
2144
2144
|
constructor() {
|
|
2145
2145
|
super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
|
|
2146
2146
|
}
|
|
2147
2147
|
connectedCallback() {
|
|
2148
2148
|
super.connectedCallback();
|
|
2149
2149
|
const e = this.closest("anduin-tabs");
|
|
2150
|
-
e && e.addEventListener(
|
|
2151
|
-
const l =
|
|
2150
|
+
e && e.addEventListener(Z1, (o) => {
|
|
2151
|
+
const l = o;
|
|
2152
2152
|
this.isActive = l.detail === this.value;
|
|
2153
2153
|
});
|
|
2154
2154
|
}
|
|
2155
2155
|
onClick() {
|
|
2156
|
-
this.dispatchEvent(new CustomEvent(
|
|
2156
|
+
this.dispatchEvent(new CustomEvent(i2, { detail: this.value, bubbles: !0, composed: !0 }));
|
|
2157
2157
|
}
|
|
2158
2158
|
render() {
|
|
2159
2159
|
return d`
|
|
@@ -2166,15 +2166,15 @@ const c5 = class c5 extends c {
|
|
|
2166
2166
|
@click=${this.onClick}
|
|
2167
2167
|
>
|
|
2168
2168
|
<div class="tab-trigger__content">
|
|
2169
|
-
${this.startIcon ? d`<anduin-icon name="${this.startIcon}" size="16"></anduin-icon>` :
|
|
2169
|
+
${this.startIcon ? d`<anduin-icon name="${this.startIcon}" size="16"></anduin-icon>` : u}
|
|
2170
2170
|
<slot></slot>
|
|
2171
|
-
${this.showBadge ? d`<span class="tab-trigger__badge">${this.badgeCount}</span>` :
|
|
2171
|
+
${this.showBadge ? d`<span class="tab-trigger__badge">${this.badgeCount}</span>` : u}
|
|
2172
2172
|
</div>
|
|
2173
2173
|
</button>
|
|
2174
2174
|
`;
|
|
2175
2175
|
}
|
|
2176
2176
|
};
|
|
2177
|
-
|
|
2177
|
+
h5.styles = h`
|
|
2178
2178
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2179
2179
|
.tab-trigger {
|
|
2180
2180
|
cursor: pointer; background: none; border: none; display: block;
|
|
@@ -2197,7 +2197,7 @@ c5.styles = h`
|
|
|
2197
2197
|
color: var(--color-gray-7); white-space: nowrap;
|
|
2198
2198
|
}
|
|
2199
2199
|
`;
|
|
2200
|
-
let R =
|
|
2200
|
+
let R = h5;
|
|
2201
2201
|
b([
|
|
2202
2202
|
r()
|
|
2203
2203
|
], R.prototype, "value");
|
|
@@ -2214,17 +2214,17 @@ b([
|
|
|
2214
2214
|
r({ attribute: "badge-count" })
|
|
2215
2215
|
], R.prototype, "badgeCount");
|
|
2216
2216
|
b([
|
|
2217
|
-
|
|
2217
|
+
s1()
|
|
2218
2218
|
], R.prototype, "isActive");
|
|
2219
|
-
const
|
|
2219
|
+
const v5 = class v5 extends c {
|
|
2220
2220
|
constructor() {
|
|
2221
2221
|
super(...arguments), this.value = "", this.isActive = !1;
|
|
2222
2222
|
}
|
|
2223
2223
|
connectedCallback() {
|
|
2224
2224
|
super.connectedCallback();
|
|
2225
2225
|
const e = this.closest("anduin-tabs");
|
|
2226
|
-
e && e.addEventListener(
|
|
2227
|
-
const l =
|
|
2226
|
+
e && e.addEventListener(Z1, (o) => {
|
|
2227
|
+
const l = o;
|
|
2228
2228
|
this.isActive = l.detail === this.value;
|
|
2229
2229
|
});
|
|
2230
2230
|
}
|
|
@@ -2239,28 +2239,28 @@ const u5 = class u5 extends c {
|
|
|
2239
2239
|
`;
|
|
2240
2240
|
}
|
|
2241
2241
|
};
|
|
2242
|
-
|
|
2242
|
+
v5.styles = h`
|
|
2243
2243
|
:host { display: block; font-family: var(--font-sans); flex: var(--_tab-fill-flex, 0 0 auto); min-height: 0; }
|
|
2244
2244
|
:host(:not([active])) { display: none; }
|
|
2245
|
-
.tab-content { width: 100%; height: var(--_tab-fill-height, auto); }
|
|
2245
|
+
.tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
|
|
2246
2246
|
`;
|
|
2247
|
-
let
|
|
2247
|
+
let C1 = v5;
|
|
2248
2248
|
b([
|
|
2249
2249
|
r()
|
|
2250
|
-
],
|
|
2250
|
+
], C1.prototype, "value");
|
|
2251
2251
|
b([
|
|
2252
|
-
|
|
2253
|
-
],
|
|
2254
|
-
customElements.get("anduin-tabs") || customElements.define("anduin-tabs",
|
|
2255
|
-
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list",
|
|
2252
|
+
s1()
|
|
2253
|
+
], C1.prototype, "isActive");
|
|
2254
|
+
customElements.get("anduin-tabs") || customElements.define("anduin-tabs", T);
|
|
2255
|
+
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", l1);
|
|
2256
2256
|
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", R);
|
|
2257
|
-
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content",
|
|
2258
|
-
var
|
|
2259
|
-
for (var
|
|
2260
|
-
(n = C[i]) && (
|
|
2261
|
-
return
|
|
2257
|
+
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", C1);
|
|
2258
|
+
var d4 = Object.defineProperty, q1 = (C, e, o, l) => {
|
|
2259
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2260
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
2261
|
+
return t && d4(e, o, t), t;
|
|
2262
2262
|
};
|
|
2263
|
-
const
|
|
2263
|
+
const c4 = "anduin-tag-close:click", u4 = {
|
|
2264
2264
|
gray: "tag--light-gray",
|
|
2265
2265
|
primary: "tag--light-primary",
|
|
2266
2266
|
success: "tag--light-success",
|
|
@@ -2285,7 +2285,7 @@ const r4 = "anduin-tag-close:click", a4 = {
|
|
|
2285
2285
|
customYellow: "tag--custom-yellow",
|
|
2286
2286
|
customYellowGreen: "tag--custom-yellow-green",
|
|
2287
2287
|
customYellowOrange: "tag--custom-yellow-orange"
|
|
2288
|
-
},
|
|
2288
|
+
}, p4 = {
|
|
2289
2289
|
gray: "tag__icon--light-gray",
|
|
2290
2290
|
primary: "tag__icon--light-primary",
|
|
2291
2291
|
success: "tag__icon--light-success",
|
|
@@ -2310,22 +2310,22 @@ const r4 = "anduin-tag-close:click", a4 = {
|
|
|
2310
2310
|
customMagenta: "tag__icon--custom-magenta",
|
|
2311
2311
|
customBlueGreen: "tag__icon--custom-blue-green",
|
|
2312
2312
|
customPink: "tag__icon--custom-pink"
|
|
2313
|
-
},
|
|
2313
|
+
}, g5 = class g5 extends c {
|
|
2314
2314
|
constructor() {
|
|
2315
2315
|
super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
|
|
2316
2316
|
}
|
|
2317
2317
|
render() {
|
|
2318
|
-
const e =
|
|
2318
|
+
const e = u4[this.variant] || "tag--light-gray", o = p4[this.variant] || "tag__icon--light-gray";
|
|
2319
2319
|
return d`
|
|
2320
2320
|
<div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
|
|
2321
|
-
${this.icon ? d`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${
|
|
2321
|
+
${this.icon ? d`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${o}"></anduin-icon>` : u}
|
|
2322
2322
|
<div class="tag__label"><slot></slot></div>
|
|
2323
2323
|
<slot name="closeButton" class="tag__close"></slot>
|
|
2324
2324
|
</div>
|
|
2325
2325
|
`;
|
|
2326
2326
|
}
|
|
2327
2327
|
};
|
|
2328
|
-
|
|
2328
|
+
g5.styles = h`
|
|
2329
2329
|
:host { display: inline-flex; max-width: 100%; font-family: var(--font-sans); }
|
|
2330
2330
|
.tag {
|
|
2331
2331
|
font-weight: 500; font-size: 11px; height: 20px; padding-left: 6px; padding-right: 6px;
|
|
@@ -2373,19 +2373,19 @@ p5.styles = h`
|
|
|
2373
2373
|
.tag--custom-yellow-green { color: var(--color-gray-9); background-color: rgb(174,207,85); }
|
|
2374
2374
|
.tag--custom-yellow-orange { color: var(--color-gray-9); background-color: rgb(255,193,107); }
|
|
2375
2375
|
`;
|
|
2376
|
-
let N =
|
|
2377
|
-
|
|
2376
|
+
let N = g5;
|
|
2377
|
+
q1([
|
|
2378
2378
|
r()
|
|
2379
2379
|
], N.prototype, "variant");
|
|
2380
|
-
|
|
2380
|
+
q1([
|
|
2381
2381
|
r()
|
|
2382
2382
|
], N.prototype, "icon");
|
|
2383
|
-
|
|
2383
|
+
q1([
|
|
2384
2384
|
r({ type: Boolean })
|
|
2385
2385
|
], N.prototype, "disabled");
|
|
2386
|
-
const
|
|
2386
|
+
const L5 = class L5 extends c {
|
|
2387
2387
|
onClick() {
|
|
2388
|
-
this.dispatchEvent(new CustomEvent(
|
|
2388
|
+
this.dispatchEvent(new CustomEvent(c4, { bubbles: !0, composed: !0 }));
|
|
2389
2389
|
}
|
|
2390
2390
|
render() {
|
|
2391
2391
|
return d`
|
|
@@ -2395,7 +2395,7 @@ const h5 = class h5 extends c {
|
|
|
2395
2395
|
`;
|
|
2396
2396
|
}
|
|
2397
2397
|
};
|
|
2398
|
-
|
|
2398
|
+
L5.styles = h`
|
|
2399
2399
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
2400
2400
|
.tag-close__button {
|
|
2401
2401
|
flex: none; width: 16px; height: 16px; display: flex; align-items: center;
|
|
@@ -2405,15 +2405,15 @@ h5.styles = h`
|
|
|
2405
2405
|
.tag-close__button:hover { opacity: 0.7; }
|
|
2406
2406
|
.tag-close__button:active { opacity: 0.5; }
|
|
2407
2407
|
`;
|
|
2408
|
-
let
|
|
2408
|
+
let A1 = L5;
|
|
2409
2409
|
customElements.get("anduin-tag") || customElements.define("anduin-tag", N);
|
|
2410
|
-
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close",
|
|
2411
|
-
var
|
|
2412
|
-
for (var
|
|
2413
|
-
(n = C[i]) && (
|
|
2414
|
-
return
|
|
2410
|
+
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", A1);
|
|
2411
|
+
var h4 = Object.defineProperty, n2 = (C, e, o, l) => {
|
|
2412
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2413
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
2414
|
+
return t && h4(e, o, t), t;
|
|
2415
2415
|
};
|
|
2416
|
-
const
|
|
2416
|
+
const r2 = "anduin-tooltip:show", G1 = "anduin-tooltip:hide", a2 = "anduin-tooltip:trigger-mounted", s2 = "anduin-tooltip:content-popup-mounted", d2 = "anduin-tooltip:content-popup-unmounted", c2 = "anduin-tooltip:visibility-changed", v4 = [
|
|
2417
2417
|
"top-start",
|
|
2418
2418
|
"top-center",
|
|
2419
2419
|
"top-end",
|
|
@@ -2427,94 +2427,94 @@ const l2 = "anduin-tooltip:show", j1 = "anduin-tooltip:hide", C2 = "anduin-toolt
|
|
|
2427
2427
|
"left-center",
|
|
2428
2428
|
"left-end"
|
|
2429
2429
|
];
|
|
2430
|
-
function
|
|
2430
|
+
function T5(C, e, o, l, t) {
|
|
2431
2431
|
switch (l) {
|
|
2432
2432
|
case "top-start":
|
|
2433
|
-
return { left: C.left, top: C.top -
|
|
2433
|
+
return { left: C.left, top: C.top - o - t };
|
|
2434
2434
|
case "top-center":
|
|
2435
|
-
return { left: C.left + C.width / 2 - e / 2, top: C.top -
|
|
2435
|
+
return { left: C.left + C.width / 2 - e / 2, top: C.top - o - t };
|
|
2436
2436
|
case "top-end":
|
|
2437
|
-
return { left: C.left + C.width - e, top: C.top -
|
|
2437
|
+
return { left: C.left + C.width - e, top: C.top - o - t };
|
|
2438
2438
|
case "right-start":
|
|
2439
|
-
return { left: C.right +
|
|
2439
|
+
return { left: C.right + t, top: C.top };
|
|
2440
2440
|
case "right-center":
|
|
2441
|
-
return { left: C.right +
|
|
2441
|
+
return { left: C.right + t, top: C.top + C.height / 2 - o / 2 };
|
|
2442
2442
|
case "right-end":
|
|
2443
|
-
return { left: C.right +
|
|
2443
|
+
return { left: C.right + t, top: C.top + C.height - o };
|
|
2444
2444
|
case "bottom-start":
|
|
2445
|
-
return { left: C.left, top: C.bottom +
|
|
2445
|
+
return { left: C.left, top: C.bottom + t };
|
|
2446
2446
|
case "bottom-center":
|
|
2447
|
-
return { left: C.left + C.width / 2 - e / 2, top: C.bottom +
|
|
2447
|
+
return { left: C.left + C.width / 2 - e / 2, top: C.bottom + t };
|
|
2448
2448
|
case "bottom-end":
|
|
2449
|
-
return { left: C.left + C.width - e, top: C.bottom +
|
|
2449
|
+
return { left: C.left + C.width - e, top: C.bottom + t };
|
|
2450
2450
|
case "left-start":
|
|
2451
|
-
return { left: C.left - e -
|
|
2451
|
+
return { left: C.left - e - t, top: C.top };
|
|
2452
2452
|
case "left-center":
|
|
2453
|
-
return { left: C.left - e -
|
|
2453
|
+
return { left: C.left - e - t, top: C.top + C.height / 2 - o / 2 };
|
|
2454
2454
|
case "left-end":
|
|
2455
|
-
return { left: C.left - e -
|
|
2455
|
+
return { left: C.left - e - t, top: C.top + C.height - o };
|
|
2456
2456
|
default:
|
|
2457
2457
|
return { left: 0, top: 0 };
|
|
2458
2458
|
}
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2460
|
+
function N5(C, e) {
|
|
2461
2461
|
return e.right >= C.left && e.left <= C.right && e.top <= C.bottom && e.bottom >= C.top;
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2464
|
-
const
|
|
2465
|
-
return
|
|
2463
|
+
function U5(C, e) {
|
|
2464
|
+
const o = Math.max(C.left, e.left), l = Math.max(C.top, e.top), t = Math.min(C.right, e.right), i = Math.min(C.bottom, e.bottom);
|
|
2465
|
+
return t < o || i < l ? 0 : (t - o) * (i - l);
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2468
|
-
const
|
|
2469
|
-
if (!
|
|
2467
|
+
function g4(C, e, o, l = 8) {
|
|
2468
|
+
const t = window.innerWidth, i = window.innerHeight, n = { left: 0, top: 0, right: t, bottom: i }, a = e.width, s = e.height;
|
|
2469
|
+
if (!N5(
|
|
2470
2470
|
{ left: C.left, top: C.top, right: C.right, bottom: C.bottom },
|
|
2471
2471
|
n
|
|
2472
2472
|
)) return null;
|
|
2473
|
-
const
|
|
2474
|
-
if (
|
|
2473
|
+
const p = T5(C, a, s, o, l), g = v4.map((L) => ({ p: L, off: T5(C, a, s, L, l) })).filter(({ off: L }) => N5({ left: L.left, top: L.top, right: L.left + a, bottom: L.top + s }, n));
|
|
2474
|
+
if (g.length === 0)
|
|
2475
2475
|
return {
|
|
2476
|
-
placement:
|
|
2477
|
-
left: Math.round(Math.min(Math.max(
|
|
2478
|
-
top: Math.round(Math.min(Math.max(
|
|
2476
|
+
placement: o,
|
|
2477
|
+
left: Math.round(Math.min(Math.max(p.left, 0), t - a)),
|
|
2478
|
+
top: Math.round(Math.min(Math.max(p.top, 0), i - s))
|
|
2479
2479
|
};
|
|
2480
|
-
|
|
2481
|
-
const
|
|
2482
|
-
if (
|
|
2483
|
-
const
|
|
2484
|
-
return
|
|
2480
|
+
g.sort((L, V) => {
|
|
2481
|
+
const p2 = { left: L.off.left, top: L.off.top, right: L.off.left + a, bottom: L.off.top + s }, h2 = { left: V.off.left, top: V.off.top, right: V.off.left + a, bottom: V.off.top + s }, R5 = U5(p2, n), _5 = U5(h2, n);
|
|
2482
|
+
if (_5 !== R5) return _5 - R5;
|
|
2483
|
+
const v2 = Math.abs(L.off.left - p.left) + Math.abs(L.off.top - p.top), g2 = Math.abs(V.off.left - p.left) + Math.abs(V.off.top - p.top);
|
|
2484
|
+
return v2 - g2;
|
|
2485
2485
|
});
|
|
2486
|
-
const { p: v, off: m } =
|
|
2486
|
+
const { p: v, off: m } = g[0];
|
|
2487
2487
|
return {
|
|
2488
2488
|
placement: v,
|
|
2489
|
-
left: Math.round(Math.min(Math.max(m.left, 0),
|
|
2489
|
+
left: Math.round(Math.min(Math.max(m.left, 0), t - a)),
|
|
2490
2490
|
top: Math.round(Math.min(Math.max(m.top, 0), i - s))
|
|
2491
2491
|
};
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function P1(C) {
|
|
2494
2494
|
return C.split("-")[0] || "top";
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2497
|
-
let l = !1,
|
|
2498
|
-
for (let i = 0; i <
|
|
2499
|
-
const n =
|
|
2500
|
-
a > e !=
|
|
2496
|
+
function L4(C, e, o) {
|
|
2497
|
+
let l = !1, t = o.length - 1;
|
|
2498
|
+
for (let i = 0; i < o.length; i++) {
|
|
2499
|
+
const n = o[i][0], a = o[i][1], s = o[t][0], p = o[t][1];
|
|
2500
|
+
a > e != p > e && C < (s - n) * (e - a) / (p - a) + n && (l = !l), t = i;
|
|
2501
2501
|
}
|
|
2502
2502
|
return l;
|
|
2503
2503
|
}
|
|
2504
|
-
const
|
|
2504
|
+
const f5 = class f5 extends c {
|
|
2505
2505
|
constructor() {
|
|
2506
2506
|
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;
|
|
2507
2507
|
}
|
|
2508
2508
|
connectedCallback() {
|
|
2509
|
-
super.connectedCallback(), this.addEventListener(
|
|
2509
|
+
super.connectedCallback(), this.addEventListener(a2, (e) => {
|
|
2510
2510
|
e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
|
|
2511
|
-
}), this.addEventListener(
|
|
2511
|
+
}), this.addEventListener(s2, (e) => {
|
|
2512
2512
|
e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
|
|
2513
|
-
}), this.addEventListener(
|
|
2513
|
+
}), this.addEventListener(d2, (e) => {
|
|
2514
2514
|
e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
|
|
2515
|
-
}), this.addEventListener(
|
|
2515
|
+
}), this.addEventListener(r2, (e) => {
|
|
2516
2516
|
e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
|
|
2517
|
-
}), this.addEventListener(
|
|
2517
|
+
}), this.addEventListener(G1, (e) => {
|
|
2518
2518
|
e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
|
|
2519
2519
|
});
|
|
2520
2520
|
}
|
|
@@ -2529,77 +2529,77 @@ const v5 = class v5 extends c {
|
|
|
2529
2529
|
}
|
|
2530
2530
|
startPositionLoop() {
|
|
2531
2531
|
this.stopPositionLoop(), this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN;
|
|
2532
|
-
const e = this.triggerElement,
|
|
2532
|
+
const e = this.triggerElement, o = this.contentPopupElement, l = this.placement, t = () => {
|
|
2533
2533
|
const i = e.getBoundingClientRect();
|
|
2534
|
-
(i.top !== this.prevTriggerTop || i.left !== this.prevTriggerLeft) && (this.prevTriggerTop = i.top, this.prevTriggerLeft = i.left, this.positionPopup(
|
|
2534
|
+
(i.top !== this.prevTriggerTop || i.left !== this.prevTriggerLeft) && (this.prevTriggerTop = i.top, this.prevTriggerLeft = i.left, this.positionPopup(o, e, l)), this.rafId = requestAnimationFrame(t);
|
|
2535
2535
|
};
|
|
2536
|
-
this.rafId = requestAnimationFrame(
|
|
2536
|
+
this.rafId = requestAnimationFrame(t);
|
|
2537
2537
|
}
|
|
2538
2538
|
stopPositionLoop() {
|
|
2539
2539
|
this.rafId && (cancelAnimationFrame(this.rafId), this.rafId = 0), this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN;
|
|
2540
2540
|
}
|
|
2541
2541
|
computeContainingBlockOffset(e) {
|
|
2542
|
-
const
|
|
2543
|
-
|
|
2544
|
-
const
|
|
2545
|
-
this.containingBlockLeft =
|
|
2542
|
+
const o = e, l = o.style.transform;
|
|
2543
|
+
o.style.transform = "none";
|
|
2544
|
+
const t = e.getBoundingClientRect();
|
|
2545
|
+
this.containingBlockLeft = t.left, this.containingBlockTop = t.top, o.style.transform = l;
|
|
2546
2546
|
}
|
|
2547
|
-
positionPopup(e,
|
|
2548
|
-
const
|
|
2547
|
+
positionPopup(e, o, l) {
|
|
2548
|
+
const t = o.getBoundingClientRect(), i = e.getBoundingClientRect(), n = g4(t, i, l, 8);
|
|
2549
2549
|
if (n) {
|
|
2550
2550
|
const a = e;
|
|
2551
2551
|
a.style.transform = `translate(${n.left - this.containingBlockLeft}px, ${n.top - this.containingBlockTop}px)`;
|
|
2552
|
-
const s =
|
|
2553
|
-
if (s !==
|
|
2554
|
-
const
|
|
2555
|
-
|
|
2552
|
+
const s = P1(n.placement), p = P1(l);
|
|
2553
|
+
if (s !== p) {
|
|
2554
|
+
const g = e.querySelector(".tooltip-arrow");
|
|
2555
|
+
g && (g.classList.remove(`tooltip-arrow--${p}`), g.classList.add(`tooltip-arrow--${s}`));
|
|
2556
2556
|
}
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
2559
|
broadcastVisibilityChanged(e) {
|
|
2560
|
-
this.dispatchEvent(new CustomEvent(
|
|
2560
|
+
this.dispatchEvent(new CustomEvent(c2, { detail: e, bubbles: !1, composed: !1 }));
|
|
2561
2561
|
}
|
|
2562
2562
|
render() {
|
|
2563
2563
|
return d`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
|
|
2564
2564
|
}
|
|
2565
2565
|
};
|
|
2566
|
-
|
|
2566
|
+
f5.styles = h`
|
|
2567
2567
|
:host { display: inline-block; position: relative; max-width: 100%; font-family: var(--font-sans); }
|
|
2568
2568
|
.tooltip-root { display: inline-block; position: relative; max-width: 100%; }
|
|
2569
2569
|
`;
|
|
2570
|
-
let
|
|
2571
|
-
|
|
2570
|
+
let i1 = f5;
|
|
2571
|
+
n2([
|
|
2572
2572
|
r({ type: Boolean })
|
|
2573
|
-
],
|
|
2574
|
-
|
|
2573
|
+
], i1.prototype, "disabled");
|
|
2574
|
+
n2([
|
|
2575
2575
|
r()
|
|
2576
|
-
],
|
|
2577
|
-
const
|
|
2576
|
+
], i1.prototype, "placement");
|
|
2577
|
+
const H5 = class H5 extends c {
|
|
2578
2578
|
firstUpdated() {
|
|
2579
2579
|
requestAnimationFrame(() => {
|
|
2580
|
-
this.dispatchEvent(new CustomEvent(
|
|
2580
|
+
this.dispatchEvent(new CustomEvent(a2, { detail: this, bubbles: !0, composed: !0 }));
|
|
2581
2581
|
}), this.addEventListener("pointerenter", () => {
|
|
2582
|
-
this.dispatchEvent(new CustomEvent(
|
|
2582
|
+
this.dispatchEvent(new CustomEvent(r2, { bubbles: !0, composed: !0 }));
|
|
2583
2583
|
}), this.addEventListener("click", () => {
|
|
2584
|
-
this.dispatchEvent(new CustomEvent(
|
|
2584
|
+
this.dispatchEvent(new CustomEvent(G1, { bubbles: !0, composed: !0 }));
|
|
2585
2585
|
});
|
|
2586
2586
|
}
|
|
2587
2587
|
render() {
|
|
2588
2588
|
return d`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
|
|
2589
2589
|
}
|
|
2590
2590
|
};
|
|
2591
|
-
|
|
2591
|
+
H5.styles = h`
|
|
2592
2592
|
:host { display: inline-block; max-width: 100%; font-family: var(--font-sans); }
|
|
2593
2593
|
.tooltip-trigger { display: flex; align-items: center; max-width: 100%; }
|
|
2594
2594
|
`;
|
|
2595
|
-
let
|
|
2596
|
-
const
|
|
2595
|
+
let z1 = H5;
|
|
2596
|
+
const b5 = class b5 extends c {
|
|
2597
2597
|
constructor() {
|
|
2598
2598
|
super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
|
|
2599
2599
|
var i, n;
|
|
2600
2600
|
if (!this.graceArea) return;
|
|
2601
|
-
const
|
|
2602
|
-
l ||
|
|
2601
|
+
const o = e.target, l = ((i = this.triggerEl) == null ? void 0 : i.contains(o)) ?? !1, t = ((n = this.popupEl) == null ? void 0 : n.contains(o)) ?? !1;
|
|
2602
|
+
l || t ? this.graceArea = null : L4(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(G1, { bubbles: !0, composed: !0 })));
|
|
2603
2603
|
}, this.handleTriggerLeave = (e) => {
|
|
2604
2604
|
this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
|
|
2605
2605
|
}, this.handleContentLeave = (e) => {
|
|
@@ -2609,38 +2609,38 @@ const g5 = class g5 extends c {
|
|
|
2609
2609
|
connectedCallback() {
|
|
2610
2610
|
super.connectedCallback();
|
|
2611
2611
|
const e = this.closest("anduin-tooltip");
|
|
2612
|
-
e && e.addEventListener(
|
|
2613
|
-
const l =
|
|
2612
|
+
e && e.addEventListener(c2, (o) => {
|
|
2613
|
+
const l = o.detail;
|
|
2614
2614
|
l.startsWith("show:") ? this.showPopup(l.slice(5)) : this.hidePopup();
|
|
2615
2615
|
});
|
|
2616
2616
|
}
|
|
2617
2617
|
disconnectedCallback() {
|
|
2618
2618
|
super.disconnectedCallback(), this.hidePopup();
|
|
2619
2619
|
}
|
|
2620
|
-
createGraceArea(e,
|
|
2621
|
-
const
|
|
2620
|
+
createGraceArea(e, o, l) {
|
|
2621
|
+
const t = o.getBoundingClientRect(), i = l.clientX, n = l.clientY;
|
|
2622
2622
|
this.graceArea = [
|
|
2623
2623
|
[i, n],
|
|
2624
|
-
[
|
|
2625
|
-
[
|
|
2626
|
-
[
|
|
2627
|
-
[
|
|
2624
|
+
[t.left, t.top],
|
|
2625
|
+
[t.right, t.top],
|
|
2626
|
+
[t.right, t.bottom],
|
|
2627
|
+
[t.left, t.bottom]
|
|
2628
2628
|
];
|
|
2629
2629
|
}
|
|
2630
|
-
setupGraceAreaListeners(e,
|
|
2631
|
-
this.cleanupGraceAreaListeners(), this.triggerEl = e, this.popupEl =
|
|
2630
|
+
setupGraceAreaListeners(e, o) {
|
|
2631
|
+
this.cleanupGraceAreaListeners(), this.triggerEl = e, this.popupEl = o, e.addEventListener("pointerleave", this.handleTriggerLeave), o.addEventListener("pointerleave", this.handleContentLeave), document.addEventListener("pointermove", this.handlePointerMove);
|
|
2632
2632
|
}
|
|
2633
2633
|
cleanupGraceAreaListeners() {
|
|
2634
2634
|
this.triggerEl && this.triggerEl.removeEventListener("pointerleave", this.handleTriggerLeave), this.popupEl && this.popupEl.removeEventListener("pointerleave", this.handleContentLeave), document.removeEventListener("pointermove", this.handlePointerMove), this.graceArea = null, this.triggerEl = null, this.popupEl = null;
|
|
2635
2635
|
}
|
|
2636
2636
|
showPopup(e) {
|
|
2637
2637
|
this.hidePopup();
|
|
2638
|
-
const
|
|
2638
|
+
const o = P1(e), l = document.createElement("div");
|
|
2639
2639
|
l.className = "tooltip-popup", l.setAttribute("role", "tooltip");
|
|
2640
|
-
const
|
|
2641
|
-
|
|
2640
|
+
const t = document.createElement("div");
|
|
2641
|
+
t.className = `tooltip-arrow tooltip-arrow--${o}`;
|
|
2642
2642
|
const i = document.createElement("div");
|
|
2643
|
-
i.className = "tooltip-body", i.appendChild(document.createElement("slot")), l.appendChild(
|
|
2643
|
+
i.className = "tooltip-body", i.appendChild(document.createElement("slot")), l.appendChild(t), l.appendChild(i);
|
|
2644
2644
|
const n = this.shadowRoot.querySelector(".tooltip-content-wrapper");
|
|
2645
2645
|
n && n.appendChild(l), this.popupEl = l;
|
|
2646
2646
|
const a = this.closest("anduin-tooltip");
|
|
@@ -2648,16 +2648,16 @@ const g5 = class g5 extends c {
|
|
|
2648
2648
|
const s = a.querySelector("anduin-tooltip-trigger");
|
|
2649
2649
|
s && this.setupGraceAreaListeners(s, l);
|
|
2650
2650
|
}
|
|
2651
|
-
this.dispatchEvent(new CustomEvent(
|
|
2651
|
+
this.dispatchEvent(new CustomEvent(s2, { detail: l, bubbles: !0, composed: !0 }));
|
|
2652
2652
|
}
|
|
2653
2653
|
hidePopup() {
|
|
2654
|
-
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(
|
|
2654
|
+
this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(d2, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
|
|
2655
2655
|
}
|
|
2656
2656
|
render() {
|
|
2657
2657
|
return d`<div class="tooltip-content-wrapper"></div>`;
|
|
2658
2658
|
}
|
|
2659
2659
|
};
|
|
2660
|
-
|
|
2660
|
+
b5.styles = h`
|
|
2661
2661
|
:host {
|
|
2662
2662
|
display: contents;
|
|
2663
2663
|
--tooltip-bg: var(--anduin-tooltip-content-background, var(--color-gray-9));
|
|
@@ -2681,16 +2681,16 @@ g5.styles = h`
|
|
|
2681
2681
|
.tooltip-arrow--left { right: -4px; top: 50%; transform: translateY(-50%); border-left-color: var(--tooltip-bg); border-right: none; }
|
|
2682
2682
|
.tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
|
|
2683
2683
|
`;
|
|
2684
|
-
let
|
|
2685
|
-
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip",
|
|
2686
|
-
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger",
|
|
2687
|
-
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content",
|
|
2688
|
-
var
|
|
2689
|
-
for (var
|
|
2690
|
-
(n = C[i]) && (
|
|
2691
|
-
return
|
|
2684
|
+
let S1 = b5;
|
|
2685
|
+
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", i1);
|
|
2686
|
+
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", z1);
|
|
2687
|
+
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", S1);
|
|
2688
|
+
var f4 = Object.defineProperty, H4 = (C, e, o, l) => {
|
|
2689
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2690
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
2691
|
+
return t && f4(e, o, t), t;
|
|
2692
2692
|
};
|
|
2693
|
-
const
|
|
2693
|
+
const b4 = "anduin-well-close:click", m5 = class m5 extends c {
|
|
2694
2694
|
constructor() {
|
|
2695
2695
|
super(...arguments), this.variant = "gray";
|
|
2696
2696
|
}
|
|
@@ -2709,7 +2709,7 @@ const L4 = "anduin-well-close:click", f5 = class f5 extends c {
|
|
|
2709
2709
|
`;
|
|
2710
2710
|
}
|
|
2711
2711
|
};
|
|
2712
|
-
|
|
2712
|
+
m5.styles = h`
|
|
2713
2713
|
:host {
|
|
2714
2714
|
display: block;
|
|
2715
2715
|
font-family: var(--font-sans);
|
|
@@ -2774,14 +2774,14 @@ f5.styles = h`
|
|
|
2774
2774
|
color: var(--color-warning-4);
|
|
2775
2775
|
}
|
|
2776
2776
|
`;
|
|
2777
|
-
let
|
|
2778
|
-
|
|
2777
|
+
let m1 = m5;
|
|
2778
|
+
H4([
|
|
2779
2779
|
r()
|
|
2780
|
-
],
|
|
2781
|
-
const
|
|
2780
|
+
], m1.prototype, "variant");
|
|
2781
|
+
const V5 = class V5 extends c {
|
|
2782
2782
|
onClick() {
|
|
2783
2783
|
this.dispatchEvent(
|
|
2784
|
-
new CustomEvent(
|
|
2784
|
+
new CustomEvent(b4, { bubbles: !0, composed: !0 })
|
|
2785
2785
|
);
|
|
2786
2786
|
}
|
|
2787
2787
|
render() {
|
|
@@ -2796,7 +2796,7 @@ const H5 = class H5 extends c {
|
|
|
2796
2796
|
`;
|
|
2797
2797
|
}
|
|
2798
2798
|
};
|
|
2799
|
-
|
|
2799
|
+
V5.styles = h`
|
|
2800
2800
|
:host {
|
|
2801
2801
|
display: inline-block;
|
|
2802
2802
|
font-family: var(--font-sans);
|
|
@@ -2821,19 +2821,19 @@ H5.styles = h`
|
|
|
2821
2821
|
background-color: var(--color-gray-3);
|
|
2822
2822
|
}
|
|
2823
2823
|
`;
|
|
2824
|
-
let
|
|
2825
|
-
customElements.get("anduin-well") || customElements.define("anduin-well",
|
|
2826
|
-
customElements.get("anduin-well-close") || customElements.define("anduin-well-close",
|
|
2827
|
-
var
|
|
2828
|
-
for (var
|
|
2829
|
-
(n = C[i]) && (
|
|
2830
|
-
return
|
|
2824
|
+
let O1 = V5;
|
|
2825
|
+
customElements.get("anduin-well") || customElements.define("anduin-well", m1);
|
|
2826
|
+
customElements.get("anduin-well-close") || customElements.define("anduin-well-close", O1);
|
|
2827
|
+
var m4 = Object.defineProperty, u2 = (C, e, o, l) => {
|
|
2828
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2829
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
2830
|
+
return t && m4(e, o, t), t;
|
|
2831
2831
|
};
|
|
2832
|
-
const
|
|
2832
|
+
const M5 = class M5 extends c {
|
|
2833
2833
|
constructor() {
|
|
2834
2834
|
super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
|
|
2835
|
-
var
|
|
2836
|
-
!this.contains(e.target) && !((
|
|
2835
|
+
var o;
|
|
2836
|
+
!this.contains(e.target) && !((o = this.shadowRoot) != null && o.contains(e.target)) && (this.open = !1);
|
|
2837
2837
|
};
|
|
2838
2838
|
}
|
|
2839
2839
|
_onTriggerClick() {
|
|
@@ -2858,7 +2858,7 @@ const b5 = class b5 extends c {
|
|
|
2858
2858
|
`;
|
|
2859
2859
|
}
|
|
2860
2860
|
};
|
|
2861
|
-
|
|
2861
|
+
M5.styles = h`
|
|
2862
2862
|
:host { display: inline-block; position: relative; font-family: var(--font-sans); }
|
|
2863
2863
|
|
|
2864
2864
|
/* Outer: handles placement positioning only */
|
|
@@ -2912,24 +2912,24 @@ b5.styles = h`
|
|
|
2912
2912
|
transform: scale(1) translateY(0);
|
|
2913
2913
|
}
|
|
2914
2914
|
`;
|
|
2915
|
-
let
|
|
2916
|
-
|
|
2915
|
+
let n1 = M5;
|
|
2916
|
+
u2([
|
|
2917
2917
|
r({ type: Boolean, reflect: !0 })
|
|
2918
|
-
],
|
|
2919
|
-
|
|
2918
|
+
], n1.prototype, "open");
|
|
2919
|
+
u2([
|
|
2920
2920
|
r()
|
|
2921
|
-
],
|
|
2922
|
-
customElements.get("anduin-popover") || customElements.define("anduin-popover",
|
|
2923
|
-
var
|
|
2924
|
-
for (var
|
|
2925
|
-
(n = C[i]) && (
|
|
2926
|
-
return
|
|
2921
|
+
], n1.prototype, "placement");
|
|
2922
|
+
customElements.get("anduin-popover") || customElements.define("anduin-popover", n1);
|
|
2923
|
+
var V4 = Object.defineProperty, c1 = (C, e, o, l) => {
|
|
2924
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
2925
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
2926
|
+
return t && V4(e, o, t), t;
|
|
2927
2927
|
};
|
|
2928
|
-
const
|
|
2928
|
+
const I1 = "anduin-menu-item:click", Z5 = class Z5 extends c {
|
|
2929
2929
|
constructor() {
|
|
2930
2930
|
super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
|
|
2931
|
-
var
|
|
2932
|
-
!this.contains(e.target) && !((
|
|
2931
|
+
var o;
|
|
2932
|
+
!this.contains(e.target) && !((o = this.shadowRoot) != null && o.contains(e.target)) && (this.open = !1);
|
|
2933
2933
|
}, this._onItemClick = () => {
|
|
2934
2934
|
this.open = !1;
|
|
2935
2935
|
};
|
|
@@ -2938,10 +2938,10 @@ const z1 = "anduin-menu-item:click", m5 = class m5 extends c {
|
|
|
2938
2938
|
this.open = !this.open;
|
|
2939
2939
|
}
|
|
2940
2940
|
connectedCallback() {
|
|
2941
|
-
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(
|
|
2941
|
+
super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(I1, this._onItemClick);
|
|
2942
2942
|
}
|
|
2943
2943
|
disconnectedCallback() {
|
|
2944
|
-
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(
|
|
2944
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(I1, this._onItemClick);
|
|
2945
2945
|
}
|
|
2946
2946
|
render() {
|
|
2947
2947
|
return d`
|
|
@@ -2956,7 +2956,7 @@ const z1 = "anduin-menu-item:click", m5 = class m5 extends c {
|
|
|
2956
2956
|
`;
|
|
2957
2957
|
}
|
|
2958
2958
|
};
|
|
2959
|
-
|
|
2959
|
+
Z5.styles = h`
|
|
2960
2960
|
:host { display: inline-block; position: relative; font-family: var(--font-sans); }
|
|
2961
2961
|
|
|
2962
2962
|
.menu__trigger { display: inline-block; }
|
|
@@ -3008,19 +3008,19 @@ m5.styles = h`
|
|
|
3008
3008
|
transform: scale(1) translateY(0);
|
|
3009
3009
|
}
|
|
3010
3010
|
`;
|
|
3011
|
-
let
|
|
3012
|
-
|
|
3011
|
+
let r1 = Z5;
|
|
3012
|
+
c1([
|
|
3013
3013
|
r({ type: Boolean, reflect: !0 })
|
|
3014
|
-
],
|
|
3015
|
-
|
|
3014
|
+
], r1.prototype, "open");
|
|
3015
|
+
c1([
|
|
3016
3016
|
r()
|
|
3017
|
-
],
|
|
3018
|
-
const
|
|
3017
|
+
], r1.prototype, "placement");
|
|
3018
|
+
const y5 = class y5 extends c {
|
|
3019
3019
|
constructor() {
|
|
3020
3020
|
super(...arguments), this.icon = "", this.variant = "default", this.disabled = !1;
|
|
3021
3021
|
}
|
|
3022
3022
|
_onClick() {
|
|
3023
|
-
this.dispatchEvent(new CustomEvent(
|
|
3023
|
+
this.dispatchEvent(new CustomEvent(I1, { bubbles: !0, composed: !0 }));
|
|
3024
3024
|
}
|
|
3025
3025
|
render() {
|
|
3026
3026
|
return d`
|
|
@@ -3031,13 +3031,13 @@ const V5 = class V5 extends c {
|
|
|
3031
3031
|
part="menu-item"
|
|
3032
3032
|
@click=${this._onClick}
|
|
3033
3033
|
>
|
|
3034
|
-
${this.icon ? d`<anduin-icon name="${this.icon}" size="16"></anduin-icon>` :
|
|
3034
|
+
${this.icon ? d`<anduin-icon name="${this.icon}" size="16"></anduin-icon>` : u}
|
|
3035
3035
|
<span class="menu-item__label"><slot></slot></span>
|
|
3036
3036
|
</button>
|
|
3037
3037
|
`;
|
|
3038
3038
|
}
|
|
3039
3039
|
};
|
|
3040
|
-
|
|
3040
|
+
y5.styles = h`
|
|
3041
3041
|
:host { display: block; width: 100%; font-family: var(--font-sans); }
|
|
3042
3042
|
.menu-item {
|
|
3043
3043
|
display: flex;
|
|
@@ -3067,73 +3067,263 @@ V5.styles = h`
|
|
|
3067
3067
|
anduin-icon { color: var(--color-gray-7); }
|
|
3068
3068
|
.menu-item--danger anduin-icon { color: var(--color-danger-4); }
|
|
3069
3069
|
`;
|
|
3070
|
-
let
|
|
3071
|
-
|
|
3070
|
+
let U = y5;
|
|
3071
|
+
c1([
|
|
3072
3072
|
r()
|
|
3073
|
-
],
|
|
3074
|
-
|
|
3073
|
+
], U.prototype, "icon");
|
|
3074
|
+
c1([
|
|
3075
3075
|
r()
|
|
3076
|
-
],
|
|
3077
|
-
|
|
3076
|
+
], U.prototype, "variant");
|
|
3077
|
+
c1([
|
|
3078
3078
|
r({ type: Boolean })
|
|
3079
|
-
],
|
|
3080
|
-
customElements.get("anduin-menu") || customElements.define("anduin-menu",
|
|
3081
|
-
customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item",
|
|
3079
|
+
], U.prototype, "disabled");
|
|
3080
|
+
customElements.get("anduin-menu") || customElements.define("anduin-menu", r1);
|
|
3081
|
+
customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", U);
|
|
3082
|
+
var M4 = Object.defineProperty, u1 = (C, e, o, l) => {
|
|
3083
|
+
for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
|
|
3084
|
+
(n = C[i]) && (t = n(e, o, t) || t);
|
|
3085
|
+
return t && M4(e, o, t), t;
|
|
3086
|
+
};
|
|
3087
|
+
const j5 = 300, Z4 = 200, y4 = 250;
|
|
3088
|
+
var k;
|
|
3089
|
+
const D = (k = class extends c {
|
|
3090
|
+
constructor() {
|
|
3091
|
+
super(...arguments), this.open = !1, this.heading = "", this.hideFooter = !1, this.maxWidth = "480", this._leaving = !1;
|
|
3092
|
+
}
|
|
3093
|
+
updated(e) {
|
|
3094
|
+
var o;
|
|
3095
|
+
if (e.has("maxWidth")) {
|
|
3096
|
+
const l = this.maxWidth, t = k._PRESETS.has(l) ? `${l}px` : l;
|
|
3097
|
+
this.style.setProperty("--_modal-width", t);
|
|
3098
|
+
}
|
|
3099
|
+
if (e.has("open")) {
|
|
3100
|
+
if (this.open)
|
|
3101
|
+
this._leaving = !1, this.classList.add("is-shown");
|
|
3102
|
+
else if (this.classList.contains("is-shown")) {
|
|
3103
|
+
this._leaving = !0;
|
|
3104
|
+
const l = (o = this.shadowRoot) == null ? void 0 : o.querySelector(".overlay");
|
|
3105
|
+
l == null || l.addEventListener("animationend", () => {
|
|
3106
|
+
this._leaving = !1, this.classList.remove("is-shown");
|
|
3107
|
+
}, { once: !0 });
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3111
|
+
dispatch(e) {
|
|
3112
|
+
this.dispatchEvent(new CustomEvent(e, { bubbles: !0, composed: !0 }));
|
|
3113
|
+
}
|
|
3114
|
+
onOverlayClick() {
|
|
3115
|
+
this.dispatch("close");
|
|
3116
|
+
}
|
|
3117
|
+
onClose() {
|
|
3118
|
+
this.dispatch("close");
|
|
3119
|
+
}
|
|
3120
|
+
render() {
|
|
3121
|
+
const e = this._leaving;
|
|
3122
|
+
return d`
|
|
3123
|
+
<div class=${`overlay${e ? " is-leaving" : ""}`} @click=${this.onOverlayClick}></div>
|
|
3124
|
+
<div class="modal-wrapper">
|
|
3125
|
+
<div class=${`modal${e ? " is-leaving" : ""}`} role="dialog" aria-modal="true" aria-labelledby="modal-title">
|
|
3126
|
+
<div class="header">
|
|
3127
|
+
${this.heading ? d`<p id="modal-title" class="title">${this.heading}</p>` : u}
|
|
3128
|
+
<anduin-button
|
|
3129
|
+
appearance="plain"
|
|
3130
|
+
variant="gray9"
|
|
3131
|
+
size="medium"
|
|
3132
|
+
label="Close"
|
|
3133
|
+
start-icon="cross"
|
|
3134
|
+
@click=${this.onClose}
|
|
3135
|
+
></anduin-button>
|
|
3136
|
+
</div>
|
|
3137
|
+
<div class="body">
|
|
3138
|
+
<slot></slot>
|
|
3139
|
+
</div>
|
|
3140
|
+
${this.hideFooter ? u : d`<div class="footer"><slot name="footer"></slot></div>`}
|
|
3141
|
+
</div>
|
|
3142
|
+
</div>
|
|
3143
|
+
`;
|
|
3144
|
+
}
|
|
3145
|
+
}, k.styles = h`
|
|
3146
|
+
:host {
|
|
3147
|
+
display: none;
|
|
3148
|
+
font-family: var(--font-sans);
|
|
3149
|
+
}
|
|
3150
|
+
:host(.is-shown) {
|
|
3151
|
+
display: block;
|
|
3152
|
+
position: fixed;
|
|
3153
|
+
inset: 0;
|
|
3154
|
+
z-index: var(--z-modal, 1000);
|
|
3155
|
+
}
|
|
3156
|
+
@keyframes overlayIn {
|
|
3157
|
+
from { opacity: 0; }
|
|
3158
|
+
to { opacity: 1; }
|
|
3159
|
+
}
|
|
3160
|
+
@keyframes overlayOut {
|
|
3161
|
+
from { opacity: 1; }
|
|
3162
|
+
to { opacity: 0; }
|
|
3163
|
+
}
|
|
3164
|
+
@keyframes modalIn {
|
|
3165
|
+
from { opacity: 0; transform: translateY(12px); }
|
|
3166
|
+
to { opacity: 1; transform: translateY(0); }
|
|
3167
|
+
}
|
|
3168
|
+
@keyframes modalOut {
|
|
3169
|
+
from { opacity: 1; transform: translateY(0); }
|
|
3170
|
+
to { opacity: 0; transform: translateY(12px); }
|
|
3171
|
+
}
|
|
3172
|
+
.overlay {
|
|
3173
|
+
position: absolute;
|
|
3174
|
+
inset: 0;
|
|
3175
|
+
background: rgba(50, 60, 77, 0.6);
|
|
3176
|
+
cursor: default;
|
|
3177
|
+
animation: overlayIn ${j5}ms cubic-bezier(0.2, 0, 0, 1) forwards;
|
|
3178
|
+
}
|
|
3179
|
+
.overlay.is-leaving {
|
|
3180
|
+
animation: overlayOut ${y4}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3181
|
+
}
|
|
3182
|
+
.modal-wrapper {
|
|
3183
|
+
position: absolute;
|
|
3184
|
+
inset: 0;
|
|
3185
|
+
display: flex;
|
|
3186
|
+
align-items: flex-start;
|
|
3187
|
+
justify-content: center;
|
|
3188
|
+
padding: 32px 16px;
|
|
3189
|
+
overflow-y: auto;
|
|
3190
|
+
pointer-events: none;
|
|
3191
|
+
}
|
|
3192
|
+
.modal {
|
|
3193
|
+
pointer-events: auto;
|
|
3194
|
+
background: #fff;
|
|
3195
|
+
border-radius: 12px;
|
|
3196
|
+
width: 100%;
|
|
3197
|
+
max-width: var(--_modal-width, 480px);
|
|
3198
|
+
display: flex;
|
|
3199
|
+
flex-direction: column;
|
|
3200
|
+
max-height: calc(100vh - 64px);
|
|
3201
|
+
box-shadow: 0 8px 24px 0 rgba(29, 41, 57, 0.12), 0 2px 8px 0 rgba(29, 41, 57, 0.08);
|
|
3202
|
+
flex-shrink: 0;
|
|
3203
|
+
animation: modalIn ${j5}ms cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
|
|
3204
|
+
}
|
|
3205
|
+
.modal.is-leaving {
|
|
3206
|
+
animation: modalOut ${Z4}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
|
|
3207
|
+
}
|
|
3208
|
+
.header {
|
|
3209
|
+
flex-shrink: 0;
|
|
3210
|
+
display: flex;
|
|
3211
|
+
align-items: flex-start;
|
|
3212
|
+
padding: 20px 28px;
|
|
3213
|
+
}
|
|
3214
|
+
.title {
|
|
3215
|
+
flex: 1;
|
|
3216
|
+
font-size: 20px;
|
|
3217
|
+
font-weight: 590;
|
|
3218
|
+
line-height: 32px;
|
|
3219
|
+
color: #323c4d;
|
|
3220
|
+
letter-spacing: -0.46px;
|
|
3221
|
+
font-family: var(--font-sans);
|
|
3222
|
+
margin: 0;
|
|
3223
|
+
}
|
|
3224
|
+
.body {
|
|
3225
|
+
flex: 1;
|
|
3226
|
+
overflow-y: auto;
|
|
3227
|
+
min-height: 0;
|
|
3228
|
+
padding: 0 28px;
|
|
3229
|
+
}
|
|
3230
|
+
.footer {
|
|
3231
|
+
flex-shrink: 0;
|
|
3232
|
+
display: flex;
|
|
3233
|
+
align-items: center;
|
|
3234
|
+
justify-content: flex-end;
|
|
3235
|
+
gap: 8px;
|
|
3236
|
+
padding: 24px 28px;
|
|
3237
|
+
}
|
|
3238
|
+
`, k._PRESETS = /* @__PURE__ */ new Set(["480", "600", "720", "960", "1160"]), k);
|
|
3239
|
+
u1([
|
|
3240
|
+
r({ type: Boolean, reflect: !0 })
|
|
3241
|
+
], D.prototype, "open");
|
|
3242
|
+
u1([
|
|
3243
|
+
r()
|
|
3244
|
+
], D.prototype, "heading");
|
|
3245
|
+
u1([
|
|
3246
|
+
r({ type: Boolean, attribute: "hide-footer" })
|
|
3247
|
+
], D.prototype, "hideFooter");
|
|
3248
|
+
u1([
|
|
3249
|
+
r({ attribute: "max-width" })
|
|
3250
|
+
], D.prototype, "maxWidth");
|
|
3251
|
+
u1([
|
|
3252
|
+
s1()
|
|
3253
|
+
], D.prototype, "_leaving");
|
|
3254
|
+
let R4 = D;
|
|
3255
|
+
customElements.get("anduin-modal") || customElements.define("anduin-modal", R4);
|
|
3256
|
+
class _4 extends HTMLElement {
|
|
3257
|
+
constructor() {
|
|
3258
|
+
super(...arguments), this._onClick = () => {
|
|
3259
|
+
this.dispatchEvent(new CustomEvent("close", { bubbles: !0, composed: !0 }));
|
|
3260
|
+
};
|
|
3261
|
+
}
|
|
3262
|
+
connectedCallback() {
|
|
3263
|
+
this.style.display = "contents", this.addEventListener("click", this._onClick);
|
|
3264
|
+
}
|
|
3265
|
+
disconnectedCallback() {
|
|
3266
|
+
this.removeEventListener("click", this._onClick);
|
|
3267
|
+
}
|
|
3268
|
+
}
|
|
3269
|
+
customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", _4);
|
|
3082
3270
|
if (typeof document < "u" && !document.getElementById("acl-tokens")) {
|
|
3083
3271
|
const C = document.createElement("style");
|
|
3084
|
-
C.id = "acl-tokens", C.textContent =
|
|
3272
|
+
C.id = "acl-tokens", C.textContent = L2, document.head.appendChild(C);
|
|
3085
3273
|
}
|
|
3086
3274
|
export {
|
|
3087
|
-
|
|
3088
|
-
|
|
3275
|
+
g1 as AnduinBadge,
|
|
3276
|
+
Q as AnduinBadgeCount,
|
|
3089
3277
|
f as AnduinButton,
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3278
|
+
L1 as AnduinCallout,
|
|
3279
|
+
w as AnduinCheckbox,
|
|
3280
|
+
e1 as AnduinDivider,
|
|
3281
|
+
f1 as AnduinDot,
|
|
3282
|
+
b1 as AnduinField,
|
|
3283
|
+
w1 as AnduinFieldDescription,
|
|
3284
|
+
$1 as AnduinFieldError,
|
|
3285
|
+
E1 as AnduinFieldGroup,
|
|
3286
|
+
o1 as AnduinFieldLabel,
|
|
3287
|
+
J as AnduinIcon,
|
|
3100
3288
|
M as AnduinInput,
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3289
|
+
H1 as AnduinLoadingState,
|
|
3290
|
+
r1 as AnduinMenu,
|
|
3291
|
+
U as AnduinMenuItem,
|
|
3292
|
+
R4 as AnduinModal,
|
|
3293
|
+
_4 as AnduinModalClose,
|
|
3294
|
+
n1 as AnduinPopover,
|
|
3295
|
+
t1 as AnduinProgress,
|
|
3106
3296
|
y as AnduinSkeleton,
|
|
3107
|
-
|
|
3108
|
-
|
|
3297
|
+
K as AnduinSpinner,
|
|
3298
|
+
C1 as AnduinTabContent,
|
|
3109
3299
|
R as AnduinTabTrigger,
|
|
3110
|
-
|
|
3111
|
-
|
|
3300
|
+
T as AnduinTabs,
|
|
3301
|
+
l1 as AnduinTabsList,
|
|
3112
3302
|
N as AnduinTag,
|
|
3113
|
-
|
|
3303
|
+
A1 as AnduinTagClose,
|
|
3114
3304
|
Z as AnduinTextarea,
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3305
|
+
i1 as AnduinTooltip,
|
|
3306
|
+
S1 as AnduinTooltipContent,
|
|
3307
|
+
z1 as AnduinTooltipTrigger,
|
|
3308
|
+
m1 as AnduinWell,
|
|
3309
|
+
O1 as AnduinWellClose,
|
|
3310
|
+
Q5 as BADGE_STYLES,
|
|
3311
|
+
l4 as CHECKBOX_CHANGE,
|
|
3312
|
+
C2 as FIELD_LABEL_CLICK,
|
|
3313
|
+
M1 as FIELD_LABEL_CLICK_COORDINATED,
|
|
3314
|
+
i4 as INPUT_CHANGE,
|
|
3315
|
+
I1 as MENU_ITEM_CLICK,
|
|
3316
|
+
s4 as TAB_CHANGE,
|
|
3317
|
+
i2 as TAB_TRIGGER_CLICK,
|
|
3318
|
+
Z1 as TAB_VALUE_CHANGED,
|
|
3319
|
+
c4 as TAG_CLOSE_CLICK,
|
|
3320
|
+
r4 as TEXTAREA_CHANGE,
|
|
3321
|
+
s2 as TOOLTIP_CONTENT_POPUP_MOUNTED,
|
|
3322
|
+
d2 as TOOLTIP_CONTENT_POPUP_UNMOUNTED,
|
|
3323
|
+
G1 as TOOLTIP_HIDE,
|
|
3324
|
+
r2 as TOOLTIP_SHOW,
|
|
3325
|
+
a2 as TOOLTIP_TRIGGER_MOUNTED,
|
|
3326
|
+
c2 as TOOLTIP_VISIBILITY_CHANGED,
|
|
3327
|
+
b4 as WELL_CLOSE_CLICK,
|
|
3328
|
+
e2 as getBadgeVariantClass
|
|
3139
3329
|
};
|