@duyluonganduin/acl-web-components 0.0.66 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acl-web-components.cjs +1 -1
- package/dist/acl-web-components.d.ts +46 -0
- package/dist/acl-web-components.iife.js +140 -111
- package/dist/acl-web-components.js +1 -1
- package/dist/{anduin-table-B-RW2kkS.cjs → anduin-table-CYE2vNGN.cjs} +100 -71
- package/dist/{anduin-table-D5xijY_4.js → anduin-table-Cqv_JQvT.js} +434 -355
- package/dist/jsx.d.ts +8 -0
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +46 -0
- package/dist/react.js +2 -2
- package/package.json +1 -1
|
@@ -45,10 +45,10 @@ const n3 = (r) => new o3(typeof r == "string" ? r : r + "", void 0, j5), g = (r,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnPropertyNames: B3, getOwnPropertySymbols: F3, getPrototypeOf:
|
|
48
|
+
const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnPropertyNames: B3, getOwnPropertySymbols: F3, getPrototypeOf: O3 } = Object, h1 = globalThis, V4 = h1.trustedTypes, I3 = V4 ? V4.emptyScript : "", Y2 = h1.reactiveElementPolyfillSupport, s2 = (r, e) => r, E2 = { toAttribute(r, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
r = r ?
|
|
51
|
+
r = r ? I3 : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -75,7 +75,7 @@ const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnProperty
|
|
|
75
75
|
return t;
|
|
76
76
|
} }, U5 = (r, e) => !A3(r, e), x4 = { attribute: !0, type: String, converter: E2, reflect: !1, useDefault: !1, hasChanged: U5 };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), h1.litPropertyMetadata ?? (h1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
-
let
|
|
78
|
+
let O1 = class extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
81
81
|
}
|
|
@@ -104,7 +104,7 @@ let I1 = class extends HTMLElement {
|
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
106
|
if (this.hasOwnProperty(s2("elementProperties"))) return;
|
|
107
|
-
const e =
|
|
107
|
+
const e = O3(this);
|
|
108
108
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
@@ -278,7 +278,7 @@ let I1 = class extends HTMLElement {
|
|
|
278
278
|
firstUpdated(e) {
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
|
|
281
|
+
O1.elementStyles = [], O1.shadowRootOptions = { mode: "open" }, O1[s2("elementProperties")] = /* @__PURE__ */ new Map(), O1[s2("finalized")] = /* @__PURE__ */ new Map(), Y2 == null || Y2({ ReactiveElement: O1 }), (h1.reactiveElementVersions ?? (h1.reactiveElementVersions = [])).push("2.1.2");
|
|
282
282
|
/**
|
|
283
283
|
* @license
|
|
284
284
|
* Copyright 2017 Google LLC
|
|
@@ -521,7 +521,7 @@ const q3 = (r, e, t) => {
|
|
|
521
521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
522
522
|
*/
|
|
523
523
|
const Z1 = globalThis;
|
|
524
|
-
let h = class extends
|
|
524
|
+
let h = class extends O1 {
|
|
525
525
|
constructor() {
|
|
526
526
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
527
527
|
}
|
|
@@ -1510,7 +1510,7 @@ f3([
|
|
|
1510
1510
|
s({ type: Number })
|
|
1511
1511
|
], v2.prototype, "count");
|
|
1512
1512
|
customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", v2);
|
|
1513
|
-
var ut = Object.defineProperty,
|
|
1513
|
+
var ut = Object.defineProperty, I = (r, e, t, o) => {
|
|
1514
1514
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1515
1515
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
1516
1516
|
return i && ut(e, t, i), i;
|
|
@@ -1695,53 +1695,53 @@ oe.styles = g`
|
|
|
1695
1695
|
.button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
|
|
1696
1696
|
.button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
|
|
1697
1697
|
`;
|
|
1698
|
-
let
|
|
1699
|
-
|
|
1698
|
+
let E = oe;
|
|
1699
|
+
I([
|
|
1700
1700
|
b()
|
|
1701
|
-
],
|
|
1702
|
-
|
|
1701
|
+
], E.prototype, "iconOnly");
|
|
1702
|
+
I([
|
|
1703
1703
|
s({ converter: (r) => r || "filled" })
|
|
1704
|
-
],
|
|
1705
|
-
|
|
1704
|
+
], E.prototype, "appearance");
|
|
1705
|
+
I([
|
|
1706
1706
|
s()
|
|
1707
|
-
],
|
|
1708
|
-
|
|
1707
|
+
], E.prototype, "variant");
|
|
1708
|
+
I([
|
|
1709
1709
|
s()
|
|
1710
|
-
],
|
|
1711
|
-
|
|
1710
|
+
], E.prototype, "size");
|
|
1711
|
+
I([
|
|
1712
1712
|
s({ type: Boolean })
|
|
1713
|
-
],
|
|
1714
|
-
|
|
1713
|
+
], E.prototype, "disabled");
|
|
1714
|
+
I([
|
|
1715
1715
|
s({ type: Boolean })
|
|
1716
|
-
],
|
|
1717
|
-
|
|
1716
|
+
], E.prototype, "loading");
|
|
1717
|
+
I([
|
|
1718
1718
|
s({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
1719
|
-
],
|
|
1720
|
-
|
|
1719
|
+
], E.prototype, "fullWidth");
|
|
1720
|
+
I([
|
|
1721
1721
|
s({ type: Boolean })
|
|
1722
|
-
],
|
|
1723
|
-
|
|
1722
|
+
], E.prototype, "pill");
|
|
1723
|
+
I([
|
|
1724
1724
|
s({ type: Boolean })
|
|
1725
|
-
],
|
|
1726
|
-
|
|
1725
|
+
], E.prototype, "selected");
|
|
1726
|
+
I([
|
|
1727
1727
|
s()
|
|
1728
|
-
],
|
|
1729
|
-
|
|
1728
|
+
], E.prototype, "href");
|
|
1729
|
+
I([
|
|
1730
1730
|
s({ type: Boolean, attribute: "open-new-tab" })
|
|
1731
|
-
],
|
|
1732
|
-
|
|
1731
|
+
], E.prototype, "openNewTab");
|
|
1732
|
+
I([
|
|
1733
1733
|
s()
|
|
1734
|
-
],
|
|
1735
|
-
|
|
1734
|
+
], E.prototype, "download");
|
|
1735
|
+
I([
|
|
1736
1736
|
s({ attribute: "start-icon" })
|
|
1737
|
-
],
|
|
1738
|
-
|
|
1737
|
+
], E.prototype, "startIcon");
|
|
1738
|
+
I([
|
|
1739
1739
|
s({ attribute: "end-icon" })
|
|
1740
|
-
],
|
|
1741
|
-
|
|
1740
|
+
], E.prototype, "endIcon");
|
|
1741
|
+
I([
|
|
1742
1742
|
s()
|
|
1743
|
-
],
|
|
1744
|
-
customElements.get("anduin-button") || customElements.define("anduin-button",
|
|
1743
|
+
], E.prototype, "label");
|
|
1744
|
+
customElements.get("anduin-button") || customElements.define("anduin-button", E);
|
|
1745
1745
|
var ht = Object.defineProperty, gt = (r, e, t, o) => {
|
|
1746
1746
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
1747
1747
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
@@ -2224,14 +2224,14 @@ R2([
|
|
|
2224
2224
|
s()
|
|
2225
2225
|
], v1.prototype, "inputid");
|
|
2226
2226
|
customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", v1);
|
|
2227
|
-
var wt = Object.defineProperty,
|
|
2227
|
+
var wt = Object.defineProperty, F = (r, e, t, o) => {
|
|
2228
2228
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2229
2229
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2230
2230
|
return i && wt(e, t, i), i;
|
|
2231
2231
|
};
|
|
2232
2232
|
const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 extends h {
|
|
2233
2233
|
constructor() {
|
|
2234
|
-
super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1;
|
|
2234
|
+
super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1, this.type = "text", this.autocomplete = "", this.name = "", this.revealable = !1, this._revealed = !1;
|
|
2235
2235
|
}
|
|
2236
2236
|
connectedCallback() {
|
|
2237
2237
|
super.connectedCallback();
|
|
@@ -2242,6 +2242,9 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
|
|
|
2242
2242
|
this.inputid && this.inputid === o.detail && ((i = this.inputEl) == null || i.focus());
|
|
2243
2243
|
});
|
|
2244
2244
|
}
|
|
2245
|
+
willUpdate(e) {
|
|
2246
|
+
(e.has("type") && this.type !== "password" || e.has("revealable") && !this.revealable) && (this._revealed = !1);
|
|
2247
|
+
}
|
|
2245
2248
|
updated() {
|
|
2246
2249
|
this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
|
|
2247
2250
|
}
|
|
@@ -2285,24 +2288,59 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
|
|
|
2285
2288
|
var e;
|
|
2286
2289
|
this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(B4, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(Mt, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
|
|
2287
2290
|
}
|
|
2291
|
+
/**
|
|
2292
|
+
* Pointer presses on the reveal button must not move focus off the input:
|
|
2293
|
+
* someone typing a password clicks the eye to check it and keeps typing.
|
|
2294
|
+
* Keyboard users still reach the button with Tab, and pressing it there
|
|
2295
|
+
* leaves focus on the button, as any toggle does.
|
|
2296
|
+
*/
|
|
2297
|
+
onRevealPointerDown(e) {
|
|
2298
|
+
e.preventDefault();
|
|
2299
|
+
}
|
|
2300
|
+
/**
|
|
2301
|
+
* Swapping `type` between `password` and `text` keeps the value (the value
|
|
2302
|
+
* mode is the same), but not the caret. Measured in Chromium with a real
|
|
2303
|
+
* pointer click: `selectionStart` still reads right after Lit commits the
|
|
2304
|
+
* new type, then drops to 0 at the next frame, when layout rebuilds the
|
|
2305
|
+
* input's inner editor. Setting the range back straight after the commit
|
|
2306
|
+
* did not stick — layout reset it anyway. Forcing that layout first and
|
|
2307
|
+
* only then restoring the range does stick, measured at the next frame and
|
|
2308
|
+
* 100ms later. The layout is forced with `getBoundingClientRect()`, a call:
|
|
2309
|
+
* a bare `void el.offsetWidth` read is dropped by the minifier as unused,
|
|
2310
|
+
* which is how the first version of this shipped nothing to the browser.
|
|
2311
|
+
*
|
|
2312
|
+
* Restored only while the input still has focus: an unfocused
|
|
2313
|
+
* `setSelectionRange` can pull focus in some engines, and a keyboard user
|
|
2314
|
+
* pressing the button is sitting on the button, not the input.
|
|
2315
|
+
*/
|
|
2316
|
+
onRevealToggle() {
|
|
2317
|
+
const e = this.inputEl, t = (e == null ? void 0 : e.selectionStart) ?? null, o = (e == null ? void 0 : e.selectionEnd) ?? null, i = (e == null ? void 0 : e.selectionDirection) ?? void 0;
|
|
2318
|
+
this._revealed = !this._revealed, this.updateComplete.then(() => {
|
|
2319
|
+
var n;
|
|
2320
|
+
e && t !== null && o !== null && ((n = this.shadowRoot) == null ? void 0 : n.activeElement) === e && (e.getBoundingClientRect(), e.setSelectionRange(t, o, i ?? void 0));
|
|
2321
|
+
});
|
|
2322
|
+
}
|
|
2288
2323
|
render() {
|
|
2289
|
-
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", o = !!this.startIcon, i = !!this.endIcon || this.clearable && !!this.value,
|
|
2324
|
+
const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", o = !!this.startIcon, i = this.type === "password" && this.revealable, n = !!this.endIcon || this.clearable && !!this.value || i, l = this.clearable && !!this.value && !this.disabled && !this.readonly, d = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", c = this.size === "small" ? "10" : this.size === "large" ? "16" : "14", C = i && this._revealed ? "text" : this.type || "text", p = i ? (l ? Number(c) + 2 : 0) + (this.endIcon ? Number(d) + 2 : 0) : 0;
|
|
2290
2325
|
return a`
|
|
2291
2326
|
<div class="input-wrapper">
|
|
2292
2327
|
${o ? a`
|
|
2293
2328
|
<span class="input__start">
|
|
2294
|
-
<anduin-icon name=${this.startIcon} size=${
|
|
2329
|
+
<anduin-icon name=${this.startIcon} size=${d}></anduin-icon>
|
|
2295
2330
|
</span>
|
|
2296
2331
|
` : u}
|
|
2297
2332
|
|
|
2298
2333
|
<input
|
|
2299
2334
|
class="input ${e}
|
|
2300
2335
|
${o ? "input--has-start" : ""}
|
|
2301
|
-
${
|
|
2336
|
+
${n ? "input--has-end" : ""}
|
|
2302
2337
|
${this.disabled ? "input--disabled" : ""}
|
|
2303
2338
|
${this.readonly ? "input--readonly" : ""}
|
|
2304
2339
|
${t}"
|
|
2305
|
-
type
|
|
2340
|
+
type=${C}
|
|
2341
|
+
autocomplete=${this.autocomplete || u}
|
|
2342
|
+
name=${this.name || u}
|
|
2343
|
+
style=${p ? `--_end-extra: ${p}px` : u}
|
|
2306
2344
|
?disabled=${this.disabled}
|
|
2307
2345
|
?readonly=${this.readonly}
|
|
2308
2346
|
id=${this.inputid || ""}
|
|
@@ -2311,15 +2349,29 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
|
|
|
2311
2349
|
@input=${this.onInput}
|
|
2312
2350
|
/>
|
|
2313
2351
|
|
|
2314
|
-
${
|
|
2352
|
+
${n ? a`
|
|
2315
2353
|
<span class="input__end">
|
|
2316
|
-
${
|
|
2354
|
+
${l ? a`
|
|
2317
2355
|
<button class="input__clear" type="button" @click=${this.onClear} aria-label="Clear">
|
|
2318
|
-
<anduin-icon name="cross" size=${
|
|
2356
|
+
<anduin-icon name="cross" size=${c}></anduin-icon>
|
|
2357
|
+
</button>
|
|
2358
|
+
` : u}
|
|
2359
|
+
${i ? a`
|
|
2360
|
+
<button
|
|
2361
|
+
class="input__reveal"
|
|
2362
|
+
type="button"
|
|
2363
|
+
part="reveal"
|
|
2364
|
+
aria-label=${this._revealed ? "Hide password" : "Show password"}
|
|
2365
|
+
aria-pressed=${this._revealed ? "true" : "false"}
|
|
2366
|
+
?disabled=${this.disabled}
|
|
2367
|
+
@mousedown=${this.onRevealPointerDown}
|
|
2368
|
+
@click=${this.onRevealToggle}
|
|
2369
|
+
>
|
|
2370
|
+
<anduin-icon name=${this._revealed ? "eyeOff" : "eye"} size=${d}></anduin-icon>
|
|
2319
2371
|
</button>
|
|
2320
2372
|
` : u}
|
|
2321
2373
|
${this.endIcon ? a`
|
|
2322
|
-
<anduin-icon name=${this.endIcon} size=${
|
|
2374
|
+
<anduin-icon name=${this.endIcon} size=${d}></anduin-icon>
|
|
2323
2375
|
` : u}
|
|
2324
2376
|
</span>
|
|
2325
2377
|
` : u}
|
|
@@ -2350,9 +2402,15 @@ j2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, j2.styles
|
|
|
2350
2402
|
.input--has-start.input--default { padding-left: 32px; }
|
|
2351
2403
|
.input--has-start.input--large { padding-left: 42px; }
|
|
2352
2404
|
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2405
|
+
/*
|
|
2406
|
+
* One end item fits the base padding. --_end-extra is the width of any
|
|
2407
|
+
* further items beside the password reveal button; it is set only when that
|
|
2408
|
+
* button is rendered, so every combination that existed before it (one end
|
|
2409
|
+
* icon, the clear button, or both) keeps exactly the padding it had.
|
|
2410
|
+
*/
|
|
2411
|
+
.input--has-end.input--small { padding-right: calc(26px + var(--_end-extra, 0px)); }
|
|
2412
|
+
.input--has-end.input--default { padding-right: calc(32px + var(--_end-extra, 0px)); }
|
|
2413
|
+
.input--has-end.input--large { padding-right: calc(42px + var(--_end-extra, 0px)); }
|
|
2356
2414
|
|
|
2357
2415
|
.input--disabled { color: var(--color-muted-foreground); background-color: var(--color-disabled); cursor: not-allowed; }
|
|
2358
2416
|
.input--readonly { background-color: var(--color-secondary); }
|
|
@@ -2372,7 +2430,8 @@ j2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, j2.styles
|
|
|
2372
2430
|
.input__start { left: 8px; }
|
|
2373
2431
|
.input__end { right: 8px; gap: 2px; }
|
|
2374
2432
|
|
|
2375
|
-
.input__clear
|
|
2433
|
+
.input__clear,
|
|
2434
|
+
.input__reveal {
|
|
2376
2435
|
display: flex; align-items: center; justify-content: center;
|
|
2377
2436
|
pointer-events: auto; cursor: pointer;
|
|
2378
2437
|
background: none; border: none; padding: 0;
|
|
@@ -2380,43 +2439,63 @@ j2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, j2.styles
|
|
|
2380
2439
|
border-radius: 3px;
|
|
2381
2440
|
line-height: 0;
|
|
2382
2441
|
}
|
|
2383
|
-
.input__clear:hover
|
|
2442
|
+
.input__clear:hover,
|
|
2443
|
+
.input__reveal:hover { color: var(--color-muted-foreground); }
|
|
2444
|
+
/* The reveal button is a Tab stop. Ring it on keyboard focus only, so a
|
|
2445
|
+
pointer press (which keeps focus in the input anyway) draws nothing. */
|
|
2446
|
+
.input__reveal:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 1px; }
|
|
2447
|
+
.input__reveal:disabled { cursor: not-allowed; }
|
|
2384
2448
|
`;
|
|
2385
|
-
let
|
|
2386
|
-
|
|
2449
|
+
let R = j2;
|
|
2450
|
+
F([
|
|
2387
2451
|
s()
|
|
2388
|
-
],
|
|
2389
|
-
|
|
2452
|
+
], R.prototype, "value");
|
|
2453
|
+
F([
|
|
2390
2454
|
s()
|
|
2391
|
-
],
|
|
2392
|
-
|
|
2455
|
+
], R.prototype, "size");
|
|
2456
|
+
F([
|
|
2393
2457
|
s({ type: Boolean })
|
|
2394
|
-
],
|
|
2395
|
-
|
|
2458
|
+
], R.prototype, "disabled");
|
|
2459
|
+
F([
|
|
2396
2460
|
s({ type: Boolean })
|
|
2397
|
-
],
|
|
2398
|
-
|
|
2461
|
+
], R.prototype, "readonly");
|
|
2462
|
+
F([
|
|
2399
2463
|
s()
|
|
2400
|
-
],
|
|
2401
|
-
|
|
2464
|
+
], R.prototype, "placeholder");
|
|
2465
|
+
F([
|
|
2402
2466
|
s()
|
|
2403
|
-
],
|
|
2404
|
-
|
|
2467
|
+
], R.prototype, "inputid");
|
|
2468
|
+
F([
|
|
2405
2469
|
s()
|
|
2406
|
-
],
|
|
2407
|
-
|
|
2470
|
+
], R.prototype, "status");
|
|
2471
|
+
F([
|
|
2408
2472
|
s({ attribute: "start-icon" })
|
|
2409
|
-
],
|
|
2410
|
-
|
|
2473
|
+
], R.prototype, "startIcon");
|
|
2474
|
+
F([
|
|
2411
2475
|
s({ attribute: "end-icon" })
|
|
2412
|
-
],
|
|
2413
|
-
|
|
2476
|
+
], R.prototype, "endIcon");
|
|
2477
|
+
F([
|
|
2414
2478
|
s({ type: Boolean })
|
|
2415
|
-
],
|
|
2416
|
-
|
|
2479
|
+
], R.prototype, "clearable");
|
|
2480
|
+
F([
|
|
2481
|
+
s()
|
|
2482
|
+
], R.prototype, "type");
|
|
2483
|
+
F([
|
|
2484
|
+
s()
|
|
2485
|
+
], R.prototype, "autocomplete");
|
|
2486
|
+
F([
|
|
2487
|
+
s()
|
|
2488
|
+
], R.prototype, "name");
|
|
2489
|
+
F([
|
|
2490
|
+
s({ type: Boolean })
|
|
2491
|
+
], R.prototype, "revealable");
|
|
2492
|
+
F([
|
|
2493
|
+
b()
|
|
2494
|
+
], R.prototype, "_revealed");
|
|
2495
|
+
F([
|
|
2417
2496
|
k("input")
|
|
2418
|
-
],
|
|
2419
|
-
customElements.get("anduin-input") || customElements.define("anduin-input",
|
|
2497
|
+
], R.prototype, "inputEl");
|
|
2498
|
+
customElements.get("anduin-input") || customElements.define("anduin-input", R);
|
|
2420
2499
|
var Zt = Object.defineProperty, H3 = (r, e, t, o) => {
|
|
2421
2500
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2422
2501
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
@@ -2466,20 +2545,20 @@ function F4(r, e, t, o, i) {
|
|
|
2466
2545
|
return { left: 0, top: 0 };
|
|
2467
2546
|
}
|
|
2468
2547
|
}
|
|
2469
|
-
function
|
|
2548
|
+
function O4(r, e) {
|
|
2470
2549
|
return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
|
|
2471
2550
|
}
|
|
2472
|
-
function
|
|
2551
|
+
function I4(r, e) {
|
|
2473
2552
|
const t = Math.max(r.left, e.left), o = Math.max(r.top, e.top), i = Math.min(r.right, e.right), n = Math.min(r.bottom, e.bottom);
|
|
2474
2553
|
return i < t || n < o ? 0 : (i - t) * (n - o);
|
|
2475
2554
|
}
|
|
2476
2555
|
function Rt(r, e, t, o = 8) {
|
|
2477
2556
|
const i = window.innerWidth, n = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: n }, d = e.width, c = e.height;
|
|
2478
|
-
if (!
|
|
2557
|
+
if (!O4(
|
|
2479
2558
|
{ left: r.left, top: r.top, right: r.right, bottom: r.bottom },
|
|
2480
2559
|
l
|
|
2481
2560
|
)) return null;
|
|
2482
|
-
const C = F4(r, d, c, t, o), p = kt.map((m) => ({ p: m, off: F4(r, d, c, m, o) })).filter(({ off: m }) =>
|
|
2561
|
+
const C = F4(r, d, c, t, o), p = kt.map((m) => ({ p: m, off: F4(r, d, c, m, o) })).filter(({ off: m }) => O4({ left: m.left, top: m.top, right: m.left + d, bottom: m.top + c }, l));
|
|
2483
2562
|
if (p.length === 0)
|
|
2484
2563
|
return {
|
|
2485
2564
|
placement: t,
|
|
@@ -2487,10 +2566,10 @@ function Rt(r, e, t, o = 8) {
|
|
|
2487
2566
|
top: Math.round(Math.min(Math.max(C.top, 0), n - c))
|
|
2488
2567
|
};
|
|
2489
2568
|
p.sort((m, V) => {
|
|
2490
|
-
const y = { left: m.off.left, top: m.off.top, right: m.off.left + d, bottom: m.off.top + c }, v = { left: V.off.left, top: V.off.top, right: V.off.left + d, bottom: V.off.top + c }, x =
|
|
2569
|
+
const y = { left: m.off.left, top: m.off.top, right: m.off.left + d, bottom: m.off.top + c }, v = { left: V.off.left, top: V.off.top, right: V.off.left + d, bottom: V.off.top + c }, x = I4(y, l), w = I4(v, l);
|
|
2491
2570
|
if (w !== x) return w - x;
|
|
2492
|
-
const
|
|
2493
|
-
return
|
|
2571
|
+
const P = Math.abs(m.off.left - C.left) + Math.abs(m.off.top - C.top), W = Math.abs(V.off.left - C.left) + Math.abs(V.off.top - C.top);
|
|
2572
|
+
return P - W;
|
|
2494
2573
|
});
|
|
2495
2574
|
const { p: f, off: H } = p[0];
|
|
2496
2575
|
return {
|
|
@@ -2701,7 +2780,7 @@ let p5 = be;
|
|
|
2701
2780
|
customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", _2);
|
|
2702
2781
|
customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", u5);
|
|
2703
2782
|
customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", p5);
|
|
2704
|
-
var Et = Object.defineProperty,
|
|
2783
|
+
var Et = Object.defineProperty, O = (r, e, t, o) => {
|
|
2705
2784
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2706
2785
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
2707
2786
|
return i && Et(e, t, i), i;
|
|
@@ -2913,56 +2992,56 @@ me.styles = g`
|
|
|
2913
2992
|
.field--small { min-height: 24px; padding-left: 6px; padding-right: 6px; }
|
|
2914
2993
|
.field--medium { min-height: 32px; padding-left: 12px; padding-right: 12px; }
|
|
2915
2994
|
`;
|
|
2916
|
-
let
|
|
2917
|
-
|
|
2995
|
+
let $ = me;
|
|
2996
|
+
O([
|
|
2918
2997
|
s()
|
|
2919
|
-
],
|
|
2920
|
-
|
|
2998
|
+
], $.prototype, "value");
|
|
2999
|
+
O([
|
|
2921
3000
|
s()
|
|
2922
|
-
],
|
|
2923
|
-
|
|
3001
|
+
], $.prototype, "placeholder");
|
|
3002
|
+
O([
|
|
2924
3003
|
s()
|
|
2925
|
-
],
|
|
2926
|
-
|
|
3004
|
+
], $.prototype, "size");
|
|
3005
|
+
O([
|
|
2927
3006
|
s()
|
|
2928
|
-
],
|
|
2929
|
-
|
|
3007
|
+
], $.prototype, "mode");
|
|
3008
|
+
O([
|
|
2930
3009
|
s({ type: Boolean, reflect: !0 })
|
|
2931
|
-
],
|
|
2932
|
-
|
|
3010
|
+
], $.prototype, "disabled");
|
|
3011
|
+
O([
|
|
2933
3012
|
s({ type: Boolean, attribute: "click-to-edit", reflect: !0 })
|
|
2934
|
-
],
|
|
2935
|
-
|
|
3013
|
+
], $.prototype, "clickToEdit");
|
|
3014
|
+
O([
|
|
2936
3015
|
s({ type: Boolean, attribute: "hide-switcher", reflect: !0 })
|
|
2937
|
-
],
|
|
2938
|
-
|
|
3016
|
+
], $.prototype, "hideSwitcher");
|
|
3017
|
+
O([
|
|
2939
3018
|
s({ attribute: "edit-label" })
|
|
2940
|
-
],
|
|
2941
|
-
|
|
3019
|
+
], $.prototype, "editLabel");
|
|
3020
|
+
O([
|
|
2942
3021
|
s({ attribute: !1 })
|
|
2943
|
-
],
|
|
2944
|
-
|
|
3022
|
+
], $.prototype, "validate");
|
|
3023
|
+
O([
|
|
2945
3024
|
b()
|
|
2946
|
-
],
|
|
2947
|
-
|
|
3025
|
+
], $.prototype, "_editing");
|
|
3026
|
+
O([
|
|
2948
3027
|
b()
|
|
2949
|
-
],
|
|
2950
|
-
|
|
3028
|
+
], $.prototype, "_draft");
|
|
3029
|
+
O([
|
|
2951
3030
|
b()
|
|
2952
|
-
],
|
|
2953
|
-
|
|
3031
|
+
], $.prototype, "_error");
|
|
3032
|
+
O([
|
|
2954
3033
|
b()
|
|
2955
|
-
],
|
|
2956
|
-
|
|
3034
|
+
], $.prototype, "_hasSlotted");
|
|
3035
|
+
O([
|
|
2957
3036
|
b()
|
|
2958
|
-
],
|
|
2959
|
-
|
|
3037
|
+
], $.prototype, "_openWidth");
|
|
3038
|
+
O([
|
|
2960
3039
|
k(".field")
|
|
2961
|
-
],
|
|
2962
|
-
|
|
3040
|
+
], $.prototype, "_field");
|
|
3041
|
+
O([
|
|
2963
3042
|
k(".text")
|
|
2964
|
-
],
|
|
2965
|
-
customElements.get("anduin-inline-edit") || customElements.define("anduin-inline-edit",
|
|
3043
|
+
], $.prototype, "_text");
|
|
3044
|
+
customElements.get("anduin-inline-edit") || customElements.define("anduin-inline-edit", $);
|
|
2966
3045
|
var Dt = Object.defineProperty, y1 = (r, e, t, o) => {
|
|
2967
3046
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
2968
3047
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
@@ -3046,33 +3125,33 @@ U2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, U2.styles
|
|
|
3046
3125
|
.textarea--warning { border-color: var(--color-warning-active); }
|
|
3047
3126
|
.textarea--loading { border-color: var(--color-input); }
|
|
3048
3127
|
`;
|
|
3049
|
-
let
|
|
3128
|
+
let Y = U2;
|
|
3050
3129
|
y1([
|
|
3051
3130
|
s()
|
|
3052
|
-
],
|
|
3131
|
+
], Y.prototype, "value");
|
|
3053
3132
|
y1([
|
|
3054
3133
|
s({ type: Boolean })
|
|
3055
|
-
],
|
|
3134
|
+
], Y.prototype, "disabled");
|
|
3056
3135
|
y1([
|
|
3057
3136
|
s({ type: Boolean })
|
|
3058
|
-
],
|
|
3137
|
+
], Y.prototype, "readonly");
|
|
3059
3138
|
y1([
|
|
3060
3139
|
s()
|
|
3061
|
-
],
|
|
3140
|
+
], Y.prototype, "placeholder");
|
|
3062
3141
|
y1([
|
|
3063
3142
|
s()
|
|
3064
|
-
],
|
|
3143
|
+
], Y.prototype, "inputid");
|
|
3065
3144
|
y1([
|
|
3066
3145
|
s({ type: Number })
|
|
3067
|
-
],
|
|
3146
|
+
], Y.prototype, "rows");
|
|
3068
3147
|
y1([
|
|
3069
3148
|
s()
|
|
3070
|
-
],
|
|
3149
|
+
], Y.prototype, "status");
|
|
3071
3150
|
y1([
|
|
3072
3151
|
k("textarea")
|
|
3073
|
-
],
|
|
3074
|
-
customElements.get("anduin-textarea") || customElements.define("anduin-textarea",
|
|
3075
|
-
var Bt = Object.defineProperty,
|
|
3152
|
+
], Y.prototype, "textareaEl");
|
|
3153
|
+
customElements.get("anduin-textarea") || customElements.define("anduin-textarea", Y);
|
|
3154
|
+
var Bt = Object.defineProperty, G = (r, e, t, o) => {
|
|
3076
3155
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3077
3156
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3078
3157
|
return i && Bt(e, t, i), i;
|
|
@@ -3111,13 +3190,13 @@ He.styles = g`
|
|
|
3111
3190
|
:host([fill]) .tabs { flex: 1; min-height: 0; }
|
|
3112
3191
|
`;
|
|
3113
3192
|
let j1 = He;
|
|
3114
|
-
|
|
3193
|
+
G([
|
|
3115
3194
|
s({ attribute: "default-value" })
|
|
3116
3195
|
], j1.prototype, "defaultValue");
|
|
3117
|
-
|
|
3196
|
+
G([
|
|
3118
3197
|
s()
|
|
3119
3198
|
], j1.prototype, "value");
|
|
3120
|
-
|
|
3199
|
+
G([
|
|
3121
3200
|
s({ type: Boolean, reflect: !0 })
|
|
3122
3201
|
], j1.prototype, "fill");
|
|
3123
3202
|
const _e = class _e extends h {
|
|
@@ -3182,10 +3261,10 @@ _e.styles = g`
|
|
|
3182
3261
|
}
|
|
3183
3262
|
`;
|
|
3184
3263
|
let y2 = _e;
|
|
3185
|
-
|
|
3264
|
+
G([
|
|
3186
3265
|
s()
|
|
3187
3266
|
], y2.prototype, "alignment");
|
|
3188
|
-
|
|
3267
|
+
G([
|
|
3189
3268
|
k(".tabs-list__indicator")
|
|
3190
3269
|
], y2.prototype, "indicator");
|
|
3191
3270
|
const ye = class ye extends h {
|
|
@@ -3246,22 +3325,22 @@ ye.styles = g`
|
|
|
3246
3325
|
}
|
|
3247
3326
|
`;
|
|
3248
3327
|
let l1 = ye;
|
|
3249
|
-
|
|
3328
|
+
G([
|
|
3250
3329
|
s({ reflect: !0 })
|
|
3251
3330
|
], l1.prototype, "value");
|
|
3252
|
-
|
|
3331
|
+
G([
|
|
3253
3332
|
s({ attribute: "start-icon" })
|
|
3254
3333
|
], l1.prototype, "startIcon");
|
|
3255
|
-
|
|
3334
|
+
G([
|
|
3256
3335
|
s({ type: Boolean })
|
|
3257
3336
|
], l1.prototype, "disabled");
|
|
3258
|
-
|
|
3337
|
+
G([
|
|
3259
3338
|
s({ type: Boolean, attribute: "show-badge" })
|
|
3260
3339
|
], l1.prototype, "showBadge");
|
|
3261
|
-
|
|
3340
|
+
G([
|
|
3262
3341
|
s({ attribute: "badge-count" })
|
|
3263
3342
|
], l1.prototype, "badgeCount");
|
|
3264
|
-
|
|
3343
|
+
G([
|
|
3265
3344
|
b()
|
|
3266
3345
|
], l1.prototype, "isActive");
|
|
3267
3346
|
const Le = class Le extends h {
|
|
@@ -3293,22 +3372,22 @@ Le.styles = g`
|
|
|
3293
3372
|
.tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
|
|
3294
3373
|
`;
|
|
3295
3374
|
let L2 = Le;
|
|
3296
|
-
|
|
3375
|
+
G([
|
|
3297
3376
|
s()
|
|
3298
3377
|
], L2.prototype, "value");
|
|
3299
|
-
|
|
3378
|
+
G([
|
|
3300
3379
|
b()
|
|
3301
3380
|
], L2.prototype, "isActive");
|
|
3302
3381
|
customElements.get("anduin-tabs") || customElements.define("anduin-tabs", j1);
|
|
3303
3382
|
customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", y2);
|
|
3304
3383
|
customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", l1);
|
|
3305
3384
|
customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", L2);
|
|
3306
|
-
var
|
|
3385
|
+
var Ot = Object.defineProperty, q5 = (r, e, t, o) => {
|
|
3307
3386
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3308
3387
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3309
|
-
return i &&
|
|
3388
|
+
return i && Ot(e, t, i), i;
|
|
3310
3389
|
};
|
|
3311
|
-
const
|
|
3390
|
+
const It = "anduin-tag-close:click", Tt = {
|
|
3312
3391
|
gray: "tag--light-gray",
|
|
3313
3392
|
primary: "tag--light-primary",
|
|
3314
3393
|
success: "tag--light-success",
|
|
@@ -3437,7 +3516,7 @@ q5([
|
|
|
3437
3516
|
], U1.prototype, "disabled");
|
|
3438
3517
|
const xe = class xe extends h {
|
|
3439
3518
|
onClick() {
|
|
3440
|
-
this.dispatchEvent(new CustomEvent(
|
|
3519
|
+
this.dispatchEvent(new CustomEvent(It, { bubbles: !0, composed: !0 }));
|
|
3441
3520
|
}
|
|
3442
3521
|
render() {
|
|
3443
3522
|
return a`
|
|
@@ -3460,7 +3539,7 @@ xe.styles = g`
|
|
|
3460
3539
|
let h5 = xe;
|
|
3461
3540
|
customElements.get("anduin-tag") || customElements.define("anduin-tag", U1);
|
|
3462
3541
|
customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", h5);
|
|
3463
|
-
var jt = Object.defineProperty,
|
|
3542
|
+
var jt = Object.defineProperty, T = (r, e, t, o) => {
|
|
3464
3543
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
3465
3544
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
3466
3545
|
return i && jt(e, t, i), i;
|
|
@@ -3553,25 +3632,25 @@ we.styles = g`
|
|
|
3553
3632
|
.toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
|
|
3554
3633
|
`;
|
|
3555
3634
|
let X = we;
|
|
3556
|
-
|
|
3635
|
+
T([
|
|
3557
3636
|
s()
|
|
3558
3637
|
], X.prototype, "mode");
|
|
3559
|
-
|
|
3638
|
+
T([
|
|
3560
3639
|
s({ attribute: "default-value" })
|
|
3561
3640
|
], X.prototype, "defaultValue");
|
|
3562
|
-
|
|
3641
|
+
T([
|
|
3563
3642
|
s()
|
|
3564
3643
|
], X.prototype, "value");
|
|
3565
|
-
|
|
3644
|
+
T([
|
|
3566
3645
|
s()
|
|
3567
3646
|
], X.prototype, "size");
|
|
3568
|
-
|
|
3647
|
+
T([
|
|
3569
3648
|
s()
|
|
3570
3649
|
], X.prototype, "variant");
|
|
3571
|
-
|
|
3650
|
+
T([
|
|
3572
3651
|
s({ type: Boolean })
|
|
3573
3652
|
], X.prototype, "gap");
|
|
3574
|
-
|
|
3653
|
+
T([
|
|
3575
3654
|
b()
|
|
3576
3655
|
], X.prototype, "internalValue");
|
|
3577
3656
|
const Me = class Me extends h {
|
|
@@ -3661,25 +3740,25 @@ Me.styles = g`
|
|
|
3661
3740
|
.toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-icon); }
|
|
3662
3741
|
`;
|
|
3663
3742
|
let J = Me;
|
|
3664
|
-
|
|
3743
|
+
T([
|
|
3665
3744
|
s({ reflect: !0 })
|
|
3666
3745
|
], J.prototype, "value");
|
|
3667
|
-
|
|
3746
|
+
T([
|
|
3668
3747
|
s({ attribute: "start-icon" })
|
|
3669
3748
|
], J.prototype, "startIcon");
|
|
3670
|
-
|
|
3749
|
+
T([
|
|
3671
3750
|
s({ type: Boolean })
|
|
3672
3751
|
], J.prototype, "disabled");
|
|
3673
|
-
|
|
3752
|
+
T([
|
|
3674
3753
|
s({ attribute: !1 })
|
|
3675
3754
|
], J.prototype, "selected");
|
|
3676
|
-
|
|
3755
|
+
T([
|
|
3677
3756
|
s({ attribute: !1 })
|
|
3678
3757
|
], J.prototype, "groupSize");
|
|
3679
|
-
|
|
3758
|
+
T([
|
|
3680
3759
|
s({ attribute: !1 })
|
|
3681
3760
|
], J.prototype, "groupVariant");
|
|
3682
|
-
|
|
3761
|
+
T([
|
|
3683
3762
|
s({ attribute: !1 })
|
|
3684
3763
|
], J.prototype, "groupMode");
|
|
3685
3764
|
function e5(r) {
|
|
@@ -3895,10 +3974,10 @@ const v5 = "anduin-popover:close", b5 = "anduin-popover:open-change", Re = class
|
|
|
3895
3974
|
t.style.transform = i;
|
|
3896
3975
|
const l = t.getBoundingClientRect(), d = 4, c = window.innerWidth, C = window.innerHeight, p = 8;
|
|
3897
3976
|
let f = 0, H = 0, m = "bottom";
|
|
3898
|
-
const V = !this.placement.startsWith("top"), y = C - o.bottom - d, v = o.top - d, x = y >= l.height, w = v >= l.height,
|
|
3899
|
-
m =
|
|
3900
|
-
const
|
|
3901
|
-
|
|
3977
|
+
const V = !this.placement.startsWith("top"), y = C - o.bottom - d, v = o.top - d, x = y >= l.height, w = v >= l.height, P = V ? x || y >= v : !w && x;
|
|
3978
|
+
m = P ? "bottom" : "top", H = P ? o.bottom + d : o.top - l.height - d;
|
|
3979
|
+
const W = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
|
|
3980
|
+
W === "start" ? f = o.left : W === "end" ? f = o.right - l.width : f = o.left + o.width / 2 - l.width / 2, f = Math.max(p, Math.min(f, c - l.width - p)), H = Math.max(p, Math.min(H, C - l.height - p)), t.style.transform = `translate(${Math.round(f - n.left)}px, ${Math.round(H - n.top)}px)`, t.dataset.side = m;
|
|
3902
3981
|
}
|
|
3903
3982
|
render() {
|
|
3904
3983
|
return a`
|
|
@@ -5496,7 +5575,7 @@ var H7 = Object.defineProperty, k3 = (r, e, t, o) => {
|
|
|
5496
5575
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5497
5576
|
return i && H7(e, t, i), i;
|
|
5498
5577
|
};
|
|
5499
|
-
const _7 = "anduin-switcher:change",
|
|
5578
|
+
const _7 = "anduin-switcher:change", Oe = class Oe extends h {
|
|
5500
5579
|
constructor() {
|
|
5501
5580
|
super(...arguments), this.checked = !1, this.disabled = !1;
|
|
5502
5581
|
}
|
|
@@ -5525,7 +5604,7 @@ const _7 = "anduin-switcher:change", Ie = class Ie extends h {
|
|
|
5525
5604
|
`;
|
|
5526
5605
|
}
|
|
5527
5606
|
};
|
|
5528
|
-
|
|
5607
|
+
Oe.styles = g`
|
|
5529
5608
|
:host { display: inline-flex; font-family: var(--font-sans); }
|
|
5530
5609
|
|
|
5531
5610
|
label {
|
|
@@ -5589,7 +5668,7 @@ Ie.styles = g`
|
|
|
5589
5668
|
line-height: 20px;
|
|
5590
5669
|
}
|
|
5591
5670
|
`;
|
|
5592
|
-
let w2 =
|
|
5671
|
+
let w2 = Oe;
|
|
5593
5672
|
k3([
|
|
5594
5673
|
s({ type: Boolean })
|
|
5595
5674
|
], w2.prototype, "checked");
|
|
@@ -5597,12 +5676,12 @@ k3([
|
|
|
5597
5676
|
s({ type: Boolean })
|
|
5598
5677
|
], w2.prototype, "disabled");
|
|
5599
5678
|
customElements.get("anduin-switcher") || customElements.define("anduin-switcher", w2);
|
|
5600
|
-
var y7 = Object.defineProperty,
|
|
5679
|
+
var y7 = Object.defineProperty, z = (r, e, t, o) => {
|
|
5601
5680
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
5602
5681
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5603
5682
|
return i && y7(e, t, i), i;
|
|
5604
5683
|
};
|
|
5605
|
-
const G4 = "anduin-dropdown:change",
|
|
5684
|
+
const G4 = "anduin-dropdown:change", Ie = class Ie extends h {
|
|
5606
5685
|
constructor() {
|
|
5607
5686
|
super(...arguments), this.value = "", this.placeholder = "Select...", this.options = [], this.icon = "", this.searchable = !0, this.disabled = !1, this.placement = "bottom-start", this.appearance = "filled", this.variant = "gray0", this.size = "default", this.fullWidth = !1, this.clearable = !0, this._open = !1, this._query = "", this._activeIndex = -1, this._onOutsideClick = (e) => {
|
|
5608
5687
|
var t;
|
|
@@ -5761,7 +5840,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
|
|
|
5761
5840
|
`;
|
|
5762
5841
|
}
|
|
5763
5842
|
};
|
|
5764
|
-
|
|
5843
|
+
Ie.styles = g`
|
|
5765
5844
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
5766
5845
|
:host([full-width]) { display: block; width: 100%; }
|
|
5767
5846
|
:host([full-width]) .trigger { width: 100%; }
|
|
@@ -6008,59 +6087,59 @@ Oe.styles = g`
|
|
|
6008
6087
|
text-align: center;
|
|
6009
6088
|
}
|
|
6010
6089
|
`;
|
|
6011
|
-
let M =
|
|
6012
|
-
|
|
6090
|
+
let M = Ie;
|
|
6091
|
+
z([
|
|
6013
6092
|
s()
|
|
6014
6093
|
], M.prototype, "value");
|
|
6015
|
-
|
|
6094
|
+
z([
|
|
6016
6095
|
s()
|
|
6017
6096
|
], M.prototype, "placeholder");
|
|
6018
|
-
|
|
6097
|
+
z([
|
|
6019
6098
|
s({ attribute: !1 })
|
|
6020
6099
|
], M.prototype, "options");
|
|
6021
|
-
|
|
6100
|
+
z([
|
|
6022
6101
|
s()
|
|
6023
6102
|
], M.prototype, "icon");
|
|
6024
|
-
|
|
6103
|
+
z([
|
|
6025
6104
|
s({ type: Boolean })
|
|
6026
6105
|
], M.prototype, "searchable");
|
|
6027
|
-
|
|
6106
|
+
z([
|
|
6028
6107
|
s({ type: Boolean })
|
|
6029
6108
|
], M.prototype, "disabled");
|
|
6030
|
-
|
|
6109
|
+
z([
|
|
6031
6110
|
s()
|
|
6032
6111
|
], M.prototype, "placement");
|
|
6033
|
-
|
|
6112
|
+
z([
|
|
6034
6113
|
s()
|
|
6035
6114
|
], M.prototype, "appearance");
|
|
6036
|
-
|
|
6115
|
+
z([
|
|
6037
6116
|
s()
|
|
6038
6117
|
], M.prototype, "variant");
|
|
6039
|
-
|
|
6118
|
+
z([
|
|
6040
6119
|
s()
|
|
6041
6120
|
], M.prototype, "size");
|
|
6042
|
-
|
|
6121
|
+
z([
|
|
6043
6122
|
s({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
6044
6123
|
], M.prototype, "fullWidth");
|
|
6045
|
-
|
|
6124
|
+
z([
|
|
6046
6125
|
s({ converter: (r) => r !== "false" })
|
|
6047
6126
|
], M.prototype, "clearable");
|
|
6048
|
-
|
|
6127
|
+
z([
|
|
6049
6128
|
b()
|
|
6050
6129
|
], M.prototype, "_open");
|
|
6051
|
-
|
|
6130
|
+
z([
|
|
6052
6131
|
b()
|
|
6053
6132
|
], M.prototype, "_query");
|
|
6054
|
-
|
|
6133
|
+
z([
|
|
6055
6134
|
b()
|
|
6056
6135
|
], M.prototype, "_activeIndex");
|
|
6057
|
-
|
|
6136
|
+
z([
|
|
6058
6137
|
k(".trigger")
|
|
6059
6138
|
], M.prototype, "_triggerEl");
|
|
6060
|
-
|
|
6139
|
+
z([
|
|
6061
6140
|
k(".panel")
|
|
6062
6141
|
], M.prototype, "_panelEl");
|
|
6063
|
-
|
|
6142
|
+
z([
|
|
6064
6143
|
k("anduin-input")
|
|
6065
6144
|
], M.prototype, "_searchEl");
|
|
6066
6145
|
customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", M);
|
|
@@ -6328,35 +6407,35 @@ Te.styles = g`
|
|
|
6328
6407
|
border-top: 1px solid var(--color-border);
|
|
6329
6408
|
}
|
|
6330
6409
|
`;
|
|
6331
|
-
let
|
|
6410
|
+
let K = Te;
|
|
6332
6411
|
c1([
|
|
6333
6412
|
s({ type: Boolean, reflect: !0 })
|
|
6334
|
-
],
|
|
6413
|
+
], K.prototype, "open");
|
|
6335
6414
|
c1([
|
|
6336
6415
|
s()
|
|
6337
|
-
],
|
|
6416
|
+
], K.prototype, "heading");
|
|
6338
6417
|
c1([
|
|
6339
6418
|
s({ type: Boolean, attribute: "hide-header" })
|
|
6340
|
-
],
|
|
6419
|
+
], K.prototype, "hideHeader");
|
|
6341
6420
|
c1([
|
|
6342
6421
|
s({ type: Boolean, attribute: "hide-footer" })
|
|
6343
|
-
],
|
|
6422
|
+
], K.prototype, "hideFooter");
|
|
6344
6423
|
c1([
|
|
6345
6424
|
s({ attribute: "default-width" })
|
|
6346
|
-
],
|
|
6425
|
+
], K.prototype, "defaultWidth");
|
|
6347
6426
|
c1([
|
|
6348
6427
|
s({ reflect: !0 })
|
|
6349
|
-
],
|
|
6428
|
+
], K.prototype, "placement");
|
|
6350
6429
|
c1([
|
|
6351
6430
|
s({ type: Boolean, attribute: "allow-interact-outside" })
|
|
6352
|
-
],
|
|
6431
|
+
], K.prototype, "allowInteractOutside");
|
|
6353
6432
|
c1([
|
|
6354
6433
|
b()
|
|
6355
|
-
],
|
|
6434
|
+
], K.prototype, "_leaving");
|
|
6356
6435
|
c1([
|
|
6357
6436
|
b()
|
|
6358
|
-
],
|
|
6359
|
-
customElements.get("anduin-drawer") || customElements.define("anduin-drawer",
|
|
6437
|
+
], K.prototype, "_width");
|
|
6438
|
+
customElements.get("anduin-drawer") || customElements.define("anduin-drawer", K);
|
|
6360
6439
|
class w7 extends HTMLElement {
|
|
6361
6440
|
constructor() {
|
|
6362
6441
|
super(...arguments), this._onClick = () => {
|
|
@@ -6373,7 +6452,7 @@ class w7 extends HTMLElement {
|
|
|
6373
6452
|
}
|
|
6374
6453
|
}
|
|
6375
6454
|
customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", w7);
|
|
6376
|
-
var M7 = Object.defineProperty,
|
|
6455
|
+
var M7 = Object.defineProperty, S = (r, e, t, o) => {
|
|
6377
6456
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
6378
6457
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
6379
6458
|
return i && M7(e, t, i), i;
|
|
@@ -6665,58 +6744,58 @@ Ne.styles = g`
|
|
|
6665
6744
|
}
|
|
6666
6745
|
`;
|
|
6667
6746
|
let Z = Ne;
|
|
6668
|
-
|
|
6747
|
+
S([
|
|
6669
6748
|
s()
|
|
6670
6749
|
], Z.prototype, "value");
|
|
6671
|
-
|
|
6750
|
+
S([
|
|
6672
6751
|
s()
|
|
6673
6752
|
], Z.prototype, "size");
|
|
6674
|
-
|
|
6753
|
+
S([
|
|
6675
6754
|
s({ type: Boolean })
|
|
6676
6755
|
], Z.prototype, "disabled");
|
|
6677
|
-
|
|
6756
|
+
S([
|
|
6678
6757
|
s({ type: Boolean })
|
|
6679
6758
|
], Z.prototype, "readonly");
|
|
6680
|
-
|
|
6759
|
+
S([
|
|
6681
6760
|
s()
|
|
6682
6761
|
], Z.prototype, "placeholder");
|
|
6683
|
-
|
|
6762
|
+
S([
|
|
6684
6763
|
s()
|
|
6685
6764
|
], Z.prototype, "inputid");
|
|
6686
|
-
|
|
6765
|
+
S([
|
|
6687
6766
|
s()
|
|
6688
6767
|
], Z.prototype, "status");
|
|
6689
|
-
|
|
6768
|
+
S([
|
|
6690
6769
|
s({ attribute: "start-icon" })
|
|
6691
6770
|
], Z.prototype, "startIcon");
|
|
6692
|
-
|
|
6771
|
+
S([
|
|
6693
6772
|
s({ attribute: "end-icon" })
|
|
6694
6773
|
], Z.prototype, "endIcon");
|
|
6695
|
-
|
|
6774
|
+
S([
|
|
6696
6775
|
s({ type: Boolean })
|
|
6697
6776
|
], Z.prototype, "clearable");
|
|
6698
|
-
|
|
6777
|
+
S([
|
|
6699
6778
|
s({ attribute: !1 })
|
|
6700
6779
|
], Z.prototype, "suggestions");
|
|
6701
|
-
|
|
6780
|
+
S([
|
|
6702
6781
|
s({ type: Boolean })
|
|
6703
6782
|
], Z.prototype, "filter");
|
|
6704
|
-
|
|
6783
|
+
S([
|
|
6705
6784
|
s({ type: Boolean, attribute: "hide-when-empty" })
|
|
6706
6785
|
], Z.prototype, "hideWhenEmpty");
|
|
6707
|
-
|
|
6786
|
+
S([
|
|
6708
6787
|
s({ attribute: "empty-text" })
|
|
6709
6788
|
], Z.prototype, "emptyText");
|
|
6710
|
-
|
|
6789
|
+
S([
|
|
6711
6790
|
b()
|
|
6712
6791
|
], Z.prototype, "_open");
|
|
6713
|
-
|
|
6792
|
+
S([
|
|
6714
6793
|
b()
|
|
6715
6794
|
], Z.prototype, "_activeIndex");
|
|
6716
|
-
|
|
6795
|
+
S([
|
|
6717
6796
|
k("input")
|
|
6718
6797
|
], Z.prototype, "_inputEl");
|
|
6719
|
-
|
|
6798
|
+
S([
|
|
6720
6799
|
k(".panel")
|
|
6721
6800
|
], Z.prototype, "_panelEl");
|
|
6722
6801
|
customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", Z);
|
|
@@ -7001,10 +7080,10 @@ Ge.styles = g`
|
|
|
7001
7080
|
}
|
|
7002
7081
|
.panel-group--vertical { flex-direction: column; }
|
|
7003
7082
|
`;
|
|
7004
|
-
let
|
|
7083
|
+
let O2 = Ge;
|
|
7005
7084
|
P1([
|
|
7006
7085
|
s({ reflect: !0 })
|
|
7007
|
-
],
|
|
7086
|
+
], O2.prototype, "orientation");
|
|
7008
7087
|
const Ke = class Ke extends h {
|
|
7009
7088
|
constructor() {
|
|
7010
7089
|
super(...arguments), this.defaultSize = "", this.minSize = "", this.maxSize = "", this.applied = !1;
|
|
@@ -7178,7 +7257,7 @@ P1([
|
|
|
7178
7257
|
P1([
|
|
7179
7258
|
b()
|
|
7180
7259
|
], Y1.prototype, "dragging");
|
|
7181
|
-
customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group",
|
|
7260
|
+
customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", O2);
|
|
7182
7261
|
customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", W1);
|
|
7183
7262
|
customElements.get("anduin-resizable-handle") || customElements.define("anduin-resizable-handle", Y1);
|
|
7184
7263
|
var S7 = Object.defineProperty, X1 = (r, e, t, o) => {
|
|
@@ -7761,10 +7840,10 @@ r4.styles = g`
|
|
|
7761
7840
|
border-bottom: 1px solid var(--color-border);
|
|
7762
7841
|
}
|
|
7763
7842
|
`;
|
|
7764
|
-
let
|
|
7843
|
+
let I2 = r4;
|
|
7765
7844
|
B1([
|
|
7766
7845
|
s({ type: Boolean, reflect: !0 })
|
|
7767
|
-
],
|
|
7846
|
+
], I2.prototype, "divider");
|
|
7768
7847
|
const l4 = class l4 extends h {
|
|
7769
7848
|
constructor() {
|
|
7770
7849
|
super(...arguments), this.divider = !1;
|
|
@@ -8077,7 +8156,7 @@ p4.styles = g`
|
|
|
8077
8156
|
let F5 = p4;
|
|
8078
8157
|
customElements.get("anduin-sidebar") || customElements.define("anduin-sidebar", E5);
|
|
8079
8158
|
customElements.get("anduin-sidebar-content") || customElements.define("anduin-sidebar-content", z5);
|
|
8080
|
-
customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header",
|
|
8159
|
+
customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", I2);
|
|
8081
8160
|
customElements.get("anduin-sidebar-footer") || customElements.define("anduin-sidebar-footer", T2);
|
|
8082
8161
|
customElements.get("anduin-sidebar-group") || customElements.define("anduin-sidebar-group", S5);
|
|
8083
8162
|
customElements.get("anduin-sidebar-group-label") || customElements.define("anduin-sidebar-group-label", A5);
|
|
@@ -8086,7 +8165,7 @@ customElements.get("anduin-sidebar-menu-item") || customElements.define("anduin-
|
|
|
8086
8165
|
customElements.get("anduin-sidebar-action") || customElements.define("anduin-sidebar-action", P5);
|
|
8087
8166
|
customElements.get("anduin-sidebar-badge") || customElements.define("anduin-sidebar-badge", B5);
|
|
8088
8167
|
customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator", F5);
|
|
8089
|
-
function
|
|
8168
|
+
function B(r) {
|
|
8090
8169
|
if (!r) return null;
|
|
8091
8170
|
const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r.trim());
|
|
8092
8171
|
if (!e) return null;
|
|
@@ -8097,7 +8176,7 @@ function x1(r) {
|
|
|
8097
8176
|
const e = (t) => String(t).padStart(2, "0");
|
|
8098
8177
|
return `${r.getFullYear()}-${e(r.getMonth() + 1)}-${e(r.getDate())}`;
|
|
8099
8178
|
}
|
|
8100
|
-
function
|
|
8179
|
+
function I1() {
|
|
8101
8180
|
const r = /* @__PURE__ */ new Date();
|
|
8102
8181
|
return new Date(r.getFullYear(), r.getMonth(), r.getDate());
|
|
8103
8182
|
}
|
|
@@ -8105,15 +8184,15 @@ function u1(r, e) {
|
|
|
8105
8184
|
const t = r.getFullYear(), o = r.getMonth() + e, i = new Date(t, o + 1, 0).getDate();
|
|
8106
8185
|
return new Date(t, o, Math.min(r.getDate(), i));
|
|
8107
8186
|
}
|
|
8108
|
-
function
|
|
8187
|
+
function O7(r, e) {
|
|
8109
8188
|
return new Date(r, e + 1, 0).getDate();
|
|
8110
8189
|
}
|
|
8111
|
-
var
|
|
8190
|
+
var I7 = Object.defineProperty, i1 = (r, e, t, o) => {
|
|
8112
8191
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
8113
8192
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8114
|
-
return i &&
|
|
8193
|
+
return i && I7(e, t, i), i;
|
|
8115
8194
|
};
|
|
8116
|
-
const Z2 = "anduin-calendar:change",
|
|
8195
|
+
const Z2 = "anduin-calendar:change", O5 = "anduin-calendar:day-hover", q4 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], X4 = [
|
|
8117
8196
|
"January",
|
|
8118
8197
|
"February",
|
|
8119
8198
|
"March",
|
|
@@ -8136,7 +8215,7 @@ function N7(r) {
|
|
|
8136
8215
|
}
|
|
8137
8216
|
const h4 = class h4 extends h {
|
|
8138
8217
|
constructor() {
|
|
8139
|
-
super(...arguments), this.value = "", this.minDate = "", this.maxDate = "", this.rangeStart = "", this.rangeEnd = "", this.rangeMode = !1, this._viewMonth =
|
|
8218
|
+
super(...arguments), this.value = "", this.minDate = "", this.maxDate = "", this.rangeStart = "", this.rangeEnd = "", this.rangeMode = !1, this._viewMonth = I1().getMonth(), this._viewYear = I1().getFullYear(), this._focus = "", this._openSelect = null, this._viewSeeded = !1, this._pendingFocus = !1, this._onOutsideClick = (e) => {
|
|
8140
8219
|
this._openSelect && !e.composedPath().includes(this) && (this._openSelect = null);
|
|
8141
8220
|
};
|
|
8142
8221
|
}
|
|
@@ -8148,11 +8227,11 @@ const h4 = class h4 extends h {
|
|
|
8148
8227
|
}
|
|
8149
8228
|
willUpdate(e) {
|
|
8150
8229
|
if (e.has("value")) {
|
|
8151
|
-
const t =
|
|
8230
|
+
const t = B(this.value);
|
|
8152
8231
|
if (t)
|
|
8153
8232
|
this._viewYear = t.getFullYear(), this._viewMonth = t.getMonth(), this._viewSeeded = !0;
|
|
8154
8233
|
else if (!this._viewSeeded) {
|
|
8155
|
-
const o =
|
|
8234
|
+
const o = I1();
|
|
8156
8235
|
this._viewYear = o.getFullYear(), this._viewMonth = o.getMonth();
|
|
8157
8236
|
}
|
|
8158
8237
|
}
|
|
@@ -8166,10 +8245,10 @@ const h4 = class h4 extends h {
|
|
|
8166
8245
|
}
|
|
8167
8246
|
// ── Constraints ─────────────────────────────────────────────────
|
|
8168
8247
|
get _min() {
|
|
8169
|
-
return
|
|
8248
|
+
return B(this.minDate);
|
|
8170
8249
|
}
|
|
8171
8250
|
get _max() {
|
|
8172
|
-
return
|
|
8251
|
+
return B(this.maxDate);
|
|
8173
8252
|
}
|
|
8174
8253
|
_isDisabled(e) {
|
|
8175
8254
|
const t = this._min, o = this._max;
|
|
@@ -8191,7 +8270,7 @@ const h4 = class h4 extends h {
|
|
|
8191
8270
|
this._isDisabled(o) || (this._focus = x1(o), (o.getMonth() !== e.getMonth() || o.getFullYear() !== e.getFullYear()) && (this._viewYear = o.getFullYear(), this._viewMonth = o.getMonth(), this._viewSeeded = !0), this._pendingFocus = !0);
|
|
8192
8271
|
}
|
|
8193
8272
|
_onGridKeyDown(e) {
|
|
8194
|
-
const t =
|
|
8273
|
+
const t = B(this._focus) ?? this._defaultFocusDate();
|
|
8195
8274
|
switch (e.key) {
|
|
8196
8275
|
// Shift turns the horizontal arrows into month steps and the vertical
|
|
8197
8276
|
// ones into year steps.
|
|
@@ -8234,17 +8313,17 @@ const h4 = class h4 extends h {
|
|
|
8234
8313
|
this.value = t, this._focus = t, this.dispatchEvent(new CustomEvent(Z2, { detail: t, bubbles: !0, composed: !0 }));
|
|
8235
8314
|
}
|
|
8236
8315
|
_emitHover(e) {
|
|
8237
|
-
this.dispatchEvent(new CustomEvent(
|
|
8316
|
+
this.dispatchEvent(new CustomEvent(O5, { detail: e, bubbles: !0, composed: !0 }));
|
|
8238
8317
|
}
|
|
8239
8318
|
/** The day that owns `tabindex="0"` when nothing has been focused yet. */
|
|
8240
8319
|
_defaultFocusDate() {
|
|
8241
|
-
const e =
|
|
8320
|
+
const e = B(this._focus);
|
|
8242
8321
|
if (e && e.getMonth() === this._viewMonth && e.getFullYear() === this._viewYear)
|
|
8243
8322
|
return e;
|
|
8244
|
-
const t =
|
|
8323
|
+
const t = B(this.value);
|
|
8245
8324
|
if (t && t.getMonth() === this._viewMonth && t.getFullYear() === this._viewYear)
|
|
8246
8325
|
return t;
|
|
8247
|
-
const o =
|
|
8326
|
+
const o = I1();
|
|
8248
8327
|
return o.getMonth() === this._viewMonth && o.getFullYear() === this._viewYear ? o : this._clamp(new Date(this._viewYear, this._viewMonth, 1));
|
|
8249
8328
|
}
|
|
8250
8329
|
// ── Month / year pickers ────────────────────────────────────────
|
|
@@ -8293,7 +8372,7 @@ const h4 = class h4 extends h {
|
|
|
8293
8372
|
}
|
|
8294
8373
|
// ── Render ──────────────────────────────────────────────────────
|
|
8295
8374
|
render() {
|
|
8296
|
-
const e = x1(
|
|
8375
|
+
const e = x1(I1()), t = B(this.value), o = B(this.rangeStart), i = B(this.rangeEnd), n = this.rangeMode || !!(o || i), l = x1(this._defaultFocusDate()), d = new Date(this._viewYear, this._viewMonth, 1), c = new Date(this._viewYear, this._viewMonth + 1, 0).getDate(), C = d.getDay(), p = [
|
|
8297
8376
|
...Array.from({ length: C }, () => null),
|
|
8298
8377
|
...Array.from({ length: c }, (y, v) => v + 1)
|
|
8299
8378
|
];
|
|
@@ -8363,7 +8442,7 @@ const h4 = class h4 extends h {
|
|
|
8363
8442
|
<tr>
|
|
8364
8443
|
${y.map((v) => {
|
|
8365
8444
|
if (v === null) return a`<td class="calendar__day-cell"></td>`;
|
|
8366
|
-
const x = new Date(this._viewYear, this._viewMonth, v), w = x1(x),
|
|
8445
|
+
const x = new Date(this._viewYear, this._viewMonth, v), w = x1(x), P = x.getTime(), W = this._isDisabled(x), Q1 = !!o && P === o.getTime(), o1 = !!i && P === i.getTime(), H4 = !!o && !!i && P > o.getTime() && P < i.getTime(), _4 = !n && !!t && P === t.getTime(), E3 = [
|
|
8367
8446
|
"calendar__day-cell",
|
|
8368
8447
|
H4 ? "calendar__day-cell--in-range" : "",
|
|
8369
8448
|
// Only tint the edge cell when it actually opens a span —
|
|
@@ -8377,7 +8456,7 @@ const h4 = class h4 extends h {
|
|
|
8377
8456
|
Q1 ? "calendar__day-button--range-start" : "",
|
|
8378
8457
|
o1 ? "calendar__day-button--range-end" : "",
|
|
8379
8458
|
H4 ? "calendar__day-button--in-range" : "",
|
|
8380
|
-
|
|
8459
|
+
W ? "calendar__day-button--disabled" : ""
|
|
8381
8460
|
].filter(Boolean).join(" ");
|
|
8382
8461
|
return a`
|
|
8383
8462
|
<td
|
|
@@ -8389,14 +8468,14 @@ const h4 = class h4 extends h {
|
|
|
8389
8468
|
type="button"
|
|
8390
8469
|
class="${z3}"
|
|
8391
8470
|
part="day"
|
|
8392
|
-
aria-disabled="${
|
|
8471
|
+
aria-disabled="${W}"
|
|
8393
8472
|
aria-label="${J4[x.getDay()]}, ${X4[x.getMonth()]} ${N7(v)}, ${x.getFullYear()}"
|
|
8394
8473
|
tabindex="${w === l ? 0 : -1}"
|
|
8395
8474
|
@click=${() => {
|
|
8396
|
-
|
|
8475
|
+
W || this._pick(x);
|
|
8397
8476
|
}}
|
|
8398
8477
|
@mouseenter=${() => {
|
|
8399
|
-
|
|
8478
|
+
W || this._emitHover(w);
|
|
8400
8479
|
}}
|
|
8401
8480
|
>${v}</button>
|
|
8402
8481
|
</td>
|
|
@@ -8505,38 +8584,38 @@ h4.styles = g`
|
|
|
8505
8584
|
.calendar__day-button--in-range { color: var(--color-primary-subtle-foreground); }
|
|
8506
8585
|
.calendar__day-button--in-range:hover { background-color: var(--color-primary-subtle-active); }
|
|
8507
8586
|
`;
|
|
8508
|
-
let
|
|
8587
|
+
let U = h4;
|
|
8509
8588
|
i1([
|
|
8510
8589
|
s({ reflect: !0 })
|
|
8511
|
-
],
|
|
8590
|
+
], U.prototype, "value");
|
|
8512
8591
|
i1([
|
|
8513
8592
|
s({ attribute: "min-date" })
|
|
8514
|
-
],
|
|
8593
|
+
], U.prototype, "minDate");
|
|
8515
8594
|
i1([
|
|
8516
8595
|
s({ attribute: "max-date" })
|
|
8517
|
-
],
|
|
8596
|
+
], U.prototype, "maxDate");
|
|
8518
8597
|
i1([
|
|
8519
8598
|
s({ attribute: "range-start" })
|
|
8520
|
-
],
|
|
8599
|
+
], U.prototype, "rangeStart");
|
|
8521
8600
|
i1([
|
|
8522
8601
|
s({ attribute: "range-end" })
|
|
8523
|
-
],
|
|
8602
|
+
], U.prototype, "rangeEnd");
|
|
8524
8603
|
i1([
|
|
8525
8604
|
s({ type: Boolean, attribute: "range-mode" })
|
|
8526
|
-
],
|
|
8605
|
+
], U.prototype, "rangeMode");
|
|
8527
8606
|
i1([
|
|
8528
8607
|
b()
|
|
8529
|
-
],
|
|
8608
|
+
], U.prototype, "_viewMonth");
|
|
8530
8609
|
i1([
|
|
8531
8610
|
b()
|
|
8532
|
-
],
|
|
8611
|
+
], U.prototype, "_viewYear");
|
|
8533
8612
|
i1([
|
|
8534
8613
|
b()
|
|
8535
|
-
],
|
|
8614
|
+
], U.prototype, "_focus");
|
|
8536
8615
|
i1([
|
|
8537
8616
|
b()
|
|
8538
|
-
],
|
|
8539
|
-
customElements.get("anduin-calendar") || customElements.define("anduin-calendar",
|
|
8617
|
+
], U.prototype, "_openSelect");
|
|
8618
|
+
customElements.get("anduin-calendar") || customElements.define("anduin-calendar", U);
|
|
8540
8619
|
var j7 = Object.defineProperty, J1 = (r, e, t, o) => {
|
|
8541
8620
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
8542
8621
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
@@ -8547,7 +8626,7 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
|
|
|
8547
8626
|
super(...arguments), this.startDate = "", this.endDate = "", this.minDate = "", this.maxDate = "", this._anchor = null, this._hover = null, this._panels = /* @__PURE__ */ new Map(), this._pushedValue = /* @__PURE__ */ new Map(), this._onCalendarChange = (e) => {
|
|
8548
8627
|
e.stopPropagation();
|
|
8549
8628
|
const t = e.detail;
|
|
8550
|
-
if (!
|
|
8629
|
+
if (!B(t)) return;
|
|
8551
8630
|
if (this._anchor === null) {
|
|
8552
8631
|
this._anchor = t, this._hover = null;
|
|
8553
8632
|
return;
|
|
@@ -8563,10 +8642,10 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
|
|
|
8563
8642
|
};
|
|
8564
8643
|
}
|
|
8565
8644
|
connectedCallback() {
|
|
8566
|
-
super.connectedCallback(), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(
|
|
8645
|
+
super.connectedCallback(), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(O5, this._onCalendarHover);
|
|
8567
8646
|
}
|
|
8568
8647
|
disconnectedCallback() {
|
|
8569
|
-
super.disconnectedCallback(), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(
|
|
8648
|
+
super.disconnectedCallback(), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(O5, this._onCalendarHover);
|
|
8570
8649
|
}
|
|
8571
8650
|
updated() {
|
|
8572
8651
|
this._sync();
|
|
@@ -8594,7 +8673,7 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
|
|
|
8594
8673
|
/** Which month each panel opens on: the start date on the left, the month
|
|
8595
8674
|
* after it on the right. Falls back to today when there's no range yet. */
|
|
8596
8675
|
_panelValue(e) {
|
|
8597
|
-
const t =
|
|
8676
|
+
const t = B(this.startDate) ?? I1();
|
|
8598
8677
|
return x1(e === "start" ? t : u1(t, 1));
|
|
8599
8678
|
}
|
|
8600
8679
|
/** The range the calendars should paint — the live preview while selecting,
|
|
@@ -8606,7 +8685,7 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
|
|
|
8606
8685
|
return [e, t];
|
|
8607
8686
|
}
|
|
8608
8687
|
_sorted(e, t) {
|
|
8609
|
-
const o =
|
|
8688
|
+
const o = B(e), i = B(t);
|
|
8610
8689
|
return !o || !i ? [e, t] : o.getTime() <= i.getTime() ? [e, t] : [t, e];
|
|
8611
8690
|
}
|
|
8612
8691
|
render() {
|
|
@@ -8693,12 +8772,12 @@ v4.styles = g`
|
|
|
8693
8772
|
|
|
8694
8773
|
.date-range-default { display: flex; flex-direction: row; gap: 16px; }
|
|
8695
8774
|
`;
|
|
8696
|
-
let
|
|
8775
|
+
let I5 = v4;
|
|
8697
8776
|
customElements.get("anduin-date-range") || customElements.define("anduin-date-range", t1);
|
|
8698
|
-
customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default",
|
|
8777
|
+
customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", I5);
|
|
8699
8778
|
customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", G7);
|
|
8700
8779
|
customElements.get("anduin-date-range-end") || customElements.define("anduin-date-range-end", K7);
|
|
8701
|
-
var W7 = Object.defineProperty,
|
|
8780
|
+
var W7 = Object.defineProperty, N = (r, e, t, o) => {
|
|
8702
8781
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
8703
8782
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
8704
8783
|
return i && W7(e, t, i), i;
|
|
@@ -8791,11 +8870,11 @@ const i2 = 1, G2 = class G2 extends h {
|
|
|
8791
8870
|
* carries a full date — a partial format like `MM/dd` has no year to compare.
|
|
8792
8871
|
*/
|
|
8793
8872
|
_clampToBounds(e) {
|
|
8794
|
-
const t =
|
|
8873
|
+
const t = B(this.minDate), o = B(this.maxDate);
|
|
8795
8874
|
if (!t && !o) return e;
|
|
8796
8875
|
const i = this._indexOfType("month"), n = this._indexOfType("day"), l = this._indexOfType("year");
|
|
8797
8876
|
if (i < 0 || n < 0 || l < 0) return e;
|
|
8798
|
-
const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C,
|
|
8877
|
+
const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C, O7(d, c - 1)), f = new Date(d, c - 1, p), H = t && f.getTime() < t.getTime() ? t : o && f.getTime() > o.getTime() ? o : null;
|
|
8799
8878
|
if (!H) {
|
|
8800
8879
|
if (p === C) return e;
|
|
8801
8880
|
const V = [...e];
|
|
@@ -8991,51 +9070,51 @@ G2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, G2.styles
|
|
|
8991
9070
|
.date-input--warning { border-color: var(--color-warning-active); }
|
|
8992
9071
|
.date-input--loading { border-color: var(--color-input); }
|
|
8993
9072
|
`;
|
|
8994
|
-
let
|
|
8995
|
-
|
|
9073
|
+
let A = G2;
|
|
9074
|
+
N([
|
|
8996
9075
|
s()
|
|
8997
|
-
],
|
|
8998
|
-
|
|
9076
|
+
], A.prototype, "format");
|
|
9077
|
+
N([
|
|
8999
9078
|
s()
|
|
9000
|
-
],
|
|
9001
|
-
|
|
9079
|
+
], A.prototype, "value");
|
|
9080
|
+
N([
|
|
9002
9081
|
s()
|
|
9003
|
-
],
|
|
9004
|
-
|
|
9082
|
+
], A.prototype, "size");
|
|
9083
|
+
N([
|
|
9005
9084
|
s({ type: Boolean })
|
|
9006
|
-
],
|
|
9007
|
-
|
|
9085
|
+
], A.prototype, "disabled");
|
|
9086
|
+
N([
|
|
9008
9087
|
s({ type: Boolean })
|
|
9009
|
-
],
|
|
9010
|
-
|
|
9088
|
+
], A.prototype, "readonly");
|
|
9089
|
+
N([
|
|
9011
9090
|
s()
|
|
9012
|
-
],
|
|
9013
|
-
|
|
9091
|
+
], A.prototype, "status");
|
|
9092
|
+
N([
|
|
9014
9093
|
s({ attribute: "start-icon" })
|
|
9015
|
-
],
|
|
9016
|
-
|
|
9094
|
+
], A.prototype, "startIcon");
|
|
9095
|
+
N([
|
|
9017
9096
|
s({ attribute: "min-date" })
|
|
9018
|
-
],
|
|
9019
|
-
|
|
9097
|
+
], A.prototype, "minDate");
|
|
9098
|
+
N([
|
|
9020
9099
|
s({ attribute: "max-date" })
|
|
9021
|
-
],
|
|
9022
|
-
|
|
9100
|
+
], A.prototype, "maxDate");
|
|
9101
|
+
N([
|
|
9023
9102
|
s()
|
|
9024
|
-
],
|
|
9025
|
-
|
|
9103
|
+
], A.prototype, "inputid");
|
|
9104
|
+
N([
|
|
9026
9105
|
b()
|
|
9027
|
-
],
|
|
9028
|
-
|
|
9106
|
+
], A.prototype, "_digits");
|
|
9107
|
+
N([
|
|
9029
9108
|
b()
|
|
9030
|
-
],
|
|
9031
|
-
|
|
9109
|
+
], A.prototype, "_active");
|
|
9110
|
+
N([
|
|
9032
9111
|
b()
|
|
9033
|
-
],
|
|
9034
|
-
|
|
9112
|
+
], A.prototype, "_buffer");
|
|
9113
|
+
N([
|
|
9035
9114
|
k("input")
|
|
9036
|
-
],
|
|
9037
|
-
customElements.get("anduin-date-input") || customElements.define("anduin-date-input",
|
|
9038
|
-
var q7 = Object.defineProperty,
|
|
9115
|
+
], A.prototype, "_inputEl");
|
|
9116
|
+
customElements.get("anduin-date-input") || customElements.define("anduin-date-input", A);
|
|
9117
|
+
var q7 = Object.defineProperty, j = (r, e, t, o) => {
|
|
9039
9118
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
9040
9119
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
9041
9120
|
return i && q7(e, t, i), i;
|
|
@@ -9090,7 +9169,7 @@ const b4 = class b4 extends h {
|
|
|
9090
9169
|
e.stopPropagation(), this._emit(e.detail);
|
|
9091
9170
|
}, this._onCalendarChange = (e) => {
|
|
9092
9171
|
e.stopPropagation();
|
|
9093
|
-
const t =
|
|
9172
|
+
const t = B(e.detail);
|
|
9094
9173
|
t && (this._emit(Q7(t, this.format)), this._closePopover());
|
|
9095
9174
|
}, this._onKeyDown = (e) => {
|
|
9096
9175
|
var t;
|
|
@@ -9168,50 +9247,50 @@ b4.styles = g`
|
|
|
9168
9247
|
/* The popover contributes 8px; the calendar reads better with 16px total. */
|
|
9169
9248
|
.datepicker__panel { padding: 8px; display: flex; flex-direction: column; }
|
|
9170
9249
|
`;
|
|
9171
|
-
let
|
|
9172
|
-
|
|
9250
|
+
let D = b4;
|
|
9251
|
+
j([
|
|
9173
9252
|
s()
|
|
9174
|
-
],
|
|
9175
|
-
|
|
9253
|
+
], D.prototype, "format");
|
|
9254
|
+
j([
|
|
9176
9255
|
s()
|
|
9177
|
-
],
|
|
9178
|
-
|
|
9256
|
+
], D.prototype, "value");
|
|
9257
|
+
j([
|
|
9179
9258
|
s()
|
|
9180
|
-
],
|
|
9181
|
-
|
|
9259
|
+
], D.prototype, "size");
|
|
9260
|
+
j([
|
|
9182
9261
|
s({ type: Boolean })
|
|
9183
|
-
],
|
|
9184
|
-
|
|
9262
|
+
], D.prototype, "disabled");
|
|
9263
|
+
j([
|
|
9185
9264
|
s({ type: Boolean })
|
|
9186
|
-
],
|
|
9187
|
-
|
|
9265
|
+
], D.prototype, "readonly");
|
|
9266
|
+
j([
|
|
9188
9267
|
s()
|
|
9189
|
-
],
|
|
9190
|
-
|
|
9268
|
+
], D.prototype, "status");
|
|
9269
|
+
j([
|
|
9191
9270
|
s({ attribute: "start-icon" })
|
|
9192
|
-
],
|
|
9193
|
-
|
|
9271
|
+
], D.prototype, "startIcon");
|
|
9272
|
+
j([
|
|
9194
9273
|
s({ attribute: "min-date" })
|
|
9195
|
-
],
|
|
9196
|
-
|
|
9274
|
+
], D.prototype, "minDate");
|
|
9275
|
+
j([
|
|
9197
9276
|
s({ attribute: "max-date" })
|
|
9198
|
-
],
|
|
9199
|
-
|
|
9277
|
+
], D.prototype, "maxDate");
|
|
9278
|
+
j([
|
|
9200
9279
|
s()
|
|
9201
|
-
],
|
|
9202
|
-
|
|
9280
|
+
], D.prototype, "placement");
|
|
9281
|
+
j([
|
|
9203
9282
|
s()
|
|
9204
|
-
],
|
|
9205
|
-
|
|
9283
|
+
], D.prototype, "inputid");
|
|
9284
|
+
j([
|
|
9206
9285
|
b()
|
|
9207
|
-
],
|
|
9208
|
-
|
|
9286
|
+
], D.prototype, "_open");
|
|
9287
|
+
j([
|
|
9209
9288
|
k("anduin-date-input")
|
|
9210
|
-
],
|
|
9211
|
-
|
|
9289
|
+
], D.prototype, "_inputEl");
|
|
9290
|
+
j([
|
|
9212
9291
|
k("anduin-popover")
|
|
9213
|
-
],
|
|
9214
|
-
customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker",
|
|
9292
|
+
], D.prototype, "_popoverEl");
|
|
9293
|
+
customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker", D);
|
|
9215
9294
|
var e0 = Object.defineProperty, L = (r, e, t, o) => {
|
|
9216
9295
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
9217
9296
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
@@ -9643,17 +9722,17 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
|
|
|
9643
9722
|
></span>
|
|
9644
9723
|
` : u;
|
|
9645
9724
|
if (n1(e)) {
|
|
9646
|
-
const v = this.renderSelectableRows, x = this.renderSelectedKeys, w = v.filter((o1) => x.has(o1.key)).length,
|
|
9647
|
-
areAllRowsSelected:
|
|
9725
|
+
const v = this.renderSelectableRows, x = this.renderSelectedKeys, w = v.filter((o1) => x.has(o1.key)).length, P = v.length > 0 && w === v.length, W = w > 0 && !P, Q1 = e.renderHeader ? e.renderHeader({
|
|
9726
|
+
areAllRowsSelected: P,
|
|
9648
9727
|
hasSelectedRow: w > 0,
|
|
9649
9728
|
onChange: (o1) => this.toggleAllRows(o1)
|
|
9650
9729
|
}) : a`
|
|
9651
9730
|
<anduin-checkbox
|
|
9652
|
-
.checked=${
|
|
9653
|
-
.indeterminate=${
|
|
9654
|
-
aria-label="${
|
|
9731
|
+
.checked=${P}
|
|
9732
|
+
.indeterminate=${W}
|
|
9733
|
+
aria-label="${P ? "Deselect all rows" : "Select all rows"}"
|
|
9655
9734
|
@anduin-checkbox:change=${(o1) => {
|
|
9656
|
-
o1.stopPropagation(), this.toggleAllRows(!
|
|
9735
|
+
o1.stopPropagation(), this.toggleAllRows(!P);
|
|
9657
9736
|
}}
|
|
9658
9737
|
></anduin-checkbox>
|
|
9659
9738
|
`;
|
|
@@ -10343,8 +10422,8 @@ customElements.get("anduin-table") || customElements.define("anduin-table", _);
|
|
|
10343
10422
|
export {
|
|
10344
10423
|
A5 as $,
|
|
10345
10424
|
N1 as A,
|
|
10346
|
-
|
|
10347
|
-
|
|
10425
|
+
$ as B,
|
|
10426
|
+
R as C,
|
|
10348
10427
|
P2 as D,
|
|
10349
10428
|
$1 as E,
|
|
10350
10429
|
G1 as F,
|
|
@@ -10362,7 +10441,7 @@ export {
|
|
|
10362
10441
|
K1 as R,
|
|
10363
10442
|
Y1 as S,
|
|
10364
10443
|
W1 as T,
|
|
10365
|
-
|
|
10444
|
+
O2 as U,
|
|
10366
10445
|
E5 as V,
|
|
10367
10446
|
P5 as W,
|
|
10368
10447
|
B5 as X,
|
|
@@ -10371,7 +10450,7 @@ export {
|
|
|
10371
10450
|
S5 as _,
|
|
10372
10451
|
e1 as a,
|
|
10373
10452
|
l5 as a$,
|
|
10374
|
-
|
|
10453
|
+
I2 as a0,
|
|
10375
10454
|
D5 as a1,
|
|
10376
10455
|
_1 as a2,
|
|
10377
10456
|
F5 as a3,
|
|
@@ -10414,7 +10493,7 @@ export {
|
|
|
10414
10493
|
y2 as ad,
|
|
10415
10494
|
U1 as ae,
|
|
10416
10495
|
h5 as af,
|
|
10417
|
-
|
|
10496
|
+
Y as ag,
|
|
10418
10497
|
w5 as ah,
|
|
10419
10498
|
Z5 as ai,
|
|
10420
10499
|
R5 as aj,
|
|
@@ -10432,7 +10511,7 @@ export {
|
|
|
10432
10511
|
f5 as av,
|
|
10433
10512
|
h3 as aw,
|
|
10434
10513
|
Z2 as ax,
|
|
10435
|
-
|
|
10514
|
+
O5 as ay,
|
|
10436
10515
|
xt as az,
|
|
10437
10516
|
S2 as b,
|
|
10438
10517
|
k7 as b0,
|
|
@@ -10450,7 +10529,7 @@ export {
|
|
|
10450
10529
|
Ft as bc,
|
|
10451
10530
|
w3 as bd,
|
|
10452
10531
|
W2 as be,
|
|
10453
|
-
|
|
10532
|
+
It as bf,
|
|
10454
10533
|
Pt as bg,
|
|
10455
10534
|
Ut as bh,
|
|
10456
10535
|
Gt as bi,
|
|
@@ -10467,25 +10546,25 @@ export {
|
|
|
10467
10546
|
u1 as bt,
|
|
10468
10547
|
x1 as bu,
|
|
10469
10548
|
g3 as bv,
|
|
10470
|
-
|
|
10549
|
+
B as bw,
|
|
10471
10550
|
g7 as bx,
|
|
10472
|
-
|
|
10551
|
+
I1 as by,
|
|
10473
10552
|
p0 as bz,
|
|
10474
10553
|
v2 as c,
|
|
10475
|
-
|
|
10476
|
-
|
|
10554
|
+
E as d,
|
|
10555
|
+
U as e,
|
|
10477
10556
|
A2 as f,
|
|
10478
10557
|
v1 as g,
|
|
10479
|
-
|
|
10480
|
-
|
|
10558
|
+
A as h,
|
|
10559
|
+
D as i,
|
|
10481
10560
|
t1 as j,
|
|
10482
|
-
|
|
10561
|
+
I5 as k,
|
|
10483
10562
|
K7 as l,
|
|
10484
10563
|
N2 as m,
|
|
10485
10564
|
G7 as n,
|
|
10486
10565
|
b2 as o,
|
|
10487
10566
|
D2 as p,
|
|
10488
|
-
|
|
10567
|
+
K as q,
|
|
10489
10568
|
w7 as r,
|
|
10490
10569
|
M as s,
|
|
10491
10570
|
B2 as t,
|