@nonoun/native-ui 0.1.0 → 0.2.2
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/components/ui-controller/ui-controller-element.d.ts.map +1 -1
- package/dist/components/ui-listbox/ui-listbox-element.d.ts.map +1 -1
- package/dist/components/ui-slideshow/ui-slideshow-element.d.ts.map +1 -1
- package/dist/components/ui-tabs/ui-tabs-element.d.ts.map +1 -1
- package/dist/components-lean.css +8 -0
- package/dist/components.css +8 -0
- package/dist/core/trait-registry.d.ts +2 -0
- package/dist/core/trait-registry.d.ts.map +1 -1
- package/dist/core/ui-element.d.ts.map +1 -1
- package/dist/custom-elements.json +3975 -2506
- package/dist/dialog-controller.js +146 -90
- package/dist/native-ui-lean.css +8 -0
- package/dist/native-ui.css +8 -0
- package/dist/native-ui.js +1 -1
- package/dist/register-all2.js +1 -1
- package/dist/traits/drag-controller.d.ts +3 -3
- package/dist/traits/drag-controller.d.ts.map +1 -1
- package/dist/traits/list-navigate-controller.d.ts.map +1 -1
- package/dist/traits.js +1 -1
- package/dist/ui-icon-element.js +174 -169
- package/package.json +3 -2
package/dist/ui-icon-element.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, o as t, r as n, t as r } from "./uid.js";
|
|
2
|
-
import { _ as i, a, c as o, h as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m } from "./dialog-controller.js";
|
|
3
|
-
function
|
|
2
|
+
import { _ as i, a, c as o, h as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, v as h } from "./dialog-controller.js";
|
|
3
|
+
function g(e, t, n, r) {
|
|
4
4
|
let i;
|
|
5
5
|
return () => {
|
|
6
6
|
let n = t.value;
|
|
@@ -11,7 +11,7 @@ function h(e, t, n, r) {
|
|
|
11
11
|
})), i = n;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function _(e, n, r) {
|
|
15
15
|
let i = r.attribute ?? n;
|
|
16
16
|
if (r.type === "boolean") {
|
|
17
17
|
let n = t(!1);
|
|
@@ -76,7 +76,7 @@ function g(e, n, r) {
|
|
|
76
76
|
* }
|
|
77
77
|
* ```
|
|
78
78
|
*/
|
|
79
|
-
function
|
|
79
|
+
function v(e, t, n) {
|
|
80
80
|
let r = e[t];
|
|
81
81
|
return r ? (r.fromAttribute(n), !0) : !1;
|
|
82
82
|
}
|
|
@@ -99,7 +99,7 @@ function _(e, t, n) {
|
|
|
99
99
|
* }
|
|
100
100
|
* ```
|
|
101
101
|
*/
|
|
102
|
-
function
|
|
102
|
+
function y(e) {
|
|
103
103
|
return class extends e {
|
|
104
104
|
static formAssociated = !0;
|
|
105
105
|
/** Override to handle form-initiated disabled state changes. */
|
|
@@ -120,10 +120,10 @@ function v(e) {
|
|
|
120
120
|
formAssociatedCallback(e) {}
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function b(e, t) {
|
|
124
124
|
return e.label.toLowerCase().includes(t.toLowerCase());
|
|
125
125
|
}
|
|
126
|
-
var
|
|
126
|
+
var x = class {
|
|
127
127
|
data;
|
|
128
128
|
query;
|
|
129
129
|
#e;
|
|
@@ -138,7 +138,7 @@ var b = class {
|
|
|
138
138
|
selectedItem;
|
|
139
139
|
empty;
|
|
140
140
|
constructor(n = {}) {
|
|
141
|
-
this.data = t([]), this.query = t(""), this.#e = t(n.filterFn ??
|
|
141
|
+
this.data = t([]), this.query = t(""), this.#e = t(n.filterFn ?? b), this.#t = t(n.sortFn ?? null), this.#n = t(n.multiple ?? !1), this.activeIndex = t(n.initialActiveIndex ?? -1), this.value = t(null), this.selected = t(/* @__PURE__ */ new Set()), this.filtered = e(() => {
|
|
142
142
|
let e = this.data.value, t = this.query.value, n = this.#e.value;
|
|
143
143
|
return t ? e.filter((e) => n(e, t)) : e;
|
|
144
144
|
}), this.sorted = e(() => {
|
|
@@ -222,14 +222,14 @@ var b = class {
|
|
|
222
222
|
this.#t.value = e;
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
|
-
function
|
|
226
|
-
return new
|
|
225
|
+
function S(e) {
|
|
226
|
+
return new x(e);
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
* Validates a JSON string → typed option array.
|
|
230
230
|
* Filters out entries missing `value` or `label` strings.
|
|
231
231
|
*/
|
|
232
|
-
function
|
|
232
|
+
function C(e, t) {
|
|
233
233
|
try {
|
|
234
234
|
let t = JSON.parse(e);
|
|
235
235
|
return Array.isArray(t) ? t.filter((e) => typeof e == "object" && !!e && typeof e.value == "string" && typeof e.label == "string") : [];
|
|
@@ -242,7 +242,7 @@ function S(e, t) {
|
|
|
242
242
|
* Aborts any in-flight request before starting a new one.
|
|
243
243
|
* Returns the new AbortController for the caller to store.
|
|
244
244
|
*/
|
|
245
|
-
async function
|
|
245
|
+
async function w(e, t, n, r) {
|
|
246
246
|
t?.abort();
|
|
247
247
|
let i = new AbortController();
|
|
248
248
|
try {
|
|
@@ -263,14 +263,14 @@ async function C(e, t, n, r) {
|
|
|
263
263
|
* @attr {string} type - Form button type: "button" | "submit" | "reset"
|
|
264
264
|
* @fires ui-press - Fired on activation (click, Enter, Space)
|
|
265
265
|
*/
|
|
266
|
-
var ee = class extends
|
|
266
|
+
var ee = class extends y(d) {
|
|
267
267
|
static observedAttributes = ["disabled", "type"];
|
|
268
268
|
#e;
|
|
269
269
|
#t;
|
|
270
270
|
#n;
|
|
271
271
|
#r;
|
|
272
272
|
constructor() {
|
|
273
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "button", this.#t =
|
|
273
|
+
super(), this.#e = this.attachInternals(), this.#e.role = "button", this.#t = _(this, "disabled", { type: "boolean" }), this.#n = _(this, "type", {
|
|
274
274
|
type: "string",
|
|
275
275
|
initial: "button"
|
|
276
276
|
});
|
|
@@ -288,13 +288,13 @@ var ee = class extends v(d) {
|
|
|
288
288
|
this.#n.set(e);
|
|
289
289
|
}
|
|
290
290
|
attributeChangedCallback(e, t, n) {
|
|
291
|
-
t !== n && (
|
|
291
|
+
t !== n && (v({
|
|
292
292
|
disabled: this.#t,
|
|
293
293
|
type: this.#n
|
|
294
294
|
}, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
295
295
|
}
|
|
296
296
|
setup() {
|
|
297
|
-
super.setup(), this.#r = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(
|
|
297
|
+
super.setup(), this.#r = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(g(this, this.#t.signal, this.#e, { manageTabindex: !0 })), this.addEventListener("ui-press", this.#i);
|
|
298
298
|
}
|
|
299
299
|
teardown() {
|
|
300
300
|
this.removeEventListener("ui-press", this.#i), this.#r.destroy(), super.teardown();
|
|
@@ -312,7 +312,7 @@ var ee = class extends v(d) {
|
|
|
312
312
|
onFormReset() {
|
|
313
313
|
this.#t.signal.value = this.hasAttribute("disabled");
|
|
314
314
|
}
|
|
315
|
-
}, te = class extends
|
|
315
|
+
}, te = class extends y(d) {
|
|
316
316
|
static observedAttributes = [
|
|
317
317
|
"value",
|
|
318
318
|
"placeholder",
|
|
@@ -396,7 +396,7 @@ var ee = class extends v(d) {
|
|
|
396
396
|
setup() {
|
|
397
397
|
super.setup(), this.hasAttribute("contenteditable") || this.setAttribute("contenteditable", "plaintext-only"), this.#i = [...this.querySelectorAll(":scope > [slot]")];
|
|
398
398
|
for (let e of this.#i) e.setAttribute("contenteditable", "false");
|
|
399
|
-
this.#n.value = this.hasAttribute("required"), this.#r.value = this.#a(), this.#s(), this.addEffect(
|
|
399
|
+
this.#n.value = this.hasAttribute("required"), this.#r.value = this.#a(), this.#s(), this.addEffect(g(this, this.#t, this.#e, { manageTabindex: !0 })), this.addEffect(() => {
|
|
400
400
|
this.#n.value && this.#r.value === "" ? this.#e.setValidity({ valueMissing: !0 }, "Please fill out this field.", this) : this.#e.setValidity({});
|
|
401
401
|
}), this.addEventListener("input", this.#c), this.addEventListener("blur", this.#l);
|
|
402
402
|
}
|
|
@@ -443,10 +443,10 @@ var ee = class extends v(d) {
|
|
|
443
443
|
#e;
|
|
444
444
|
#t;
|
|
445
445
|
#n = t(!1);
|
|
446
|
-
#r = new
|
|
446
|
+
#r = new x();
|
|
447
447
|
#i;
|
|
448
448
|
constructor() {
|
|
449
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "listbox", this.#t =
|
|
449
|
+
super(), this.#e = this.attachInternals(), this.#e.role = "listbox", this.#t = _(this, "disabled", { type: "boolean" });
|
|
450
450
|
}
|
|
451
451
|
get virtualFocus() {
|
|
452
452
|
return this.hasAttribute("virtual-focus");
|
|
@@ -477,7 +477,7 @@ var ee = class extends v(d) {
|
|
|
477
477
|
}
|
|
478
478
|
attributeChangedCallback(e, t, n) {
|
|
479
479
|
if (t !== n) {
|
|
480
|
-
if (
|
|
480
|
+
if (v({ disabled: this.#t }, e, n)) {
|
|
481
481
|
super.attributeChangedCallback?.(e, t, n);
|
|
482
482
|
return;
|
|
483
483
|
}
|
|
@@ -508,12 +508,12 @@ var ee = class extends v(d) {
|
|
|
508
508
|
},
|
|
509
509
|
addEffect: (e) => this.addEffect(e),
|
|
510
510
|
deferChildren: (e) => this.deferChildren(e)
|
|
511
|
-
}), this.addEffect(
|
|
511
|
+
}), this.addEffect(g(this, this.#t.signal, this.#e)), this.deferChildren(() => {
|
|
512
512
|
this.addEffect(() => {
|
|
513
513
|
let e = this.#r.value.value, t = this.#r.selected.value, n = this.#n.value, r = this.querySelectorAll(":scope ui-option");
|
|
514
514
|
for (let i of r) {
|
|
515
|
-
let r = n ? t.has(
|
|
516
|
-
i.setAttribute("aria-selected",
|
|
515
|
+
let r = i.getAttribute("value") ?? "", a = n ? t.has(r) : r === e;
|
|
516
|
+
i.setAttribute("aria-selected", a ? "true" : "false");
|
|
517
517
|
}
|
|
518
518
|
}), this.addEffect(() => {
|
|
519
519
|
let e = this.#r.activeIndex.value, t = this.querySelectorAll(":scope ui-option:not([disabled])");
|
|
@@ -539,7 +539,7 @@ var ee = class extends v(d) {
|
|
|
539
539
|
#n;
|
|
540
540
|
#r = t("");
|
|
541
541
|
constructor() {
|
|
542
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "option", this.#n =
|
|
542
|
+
super(), this.#e = this.attachInternals(), this.#e.role = "option", this.#n = _(this, "disabled", { type: "boolean" });
|
|
543
543
|
}
|
|
544
544
|
get value() {
|
|
545
545
|
return this.#t.value;
|
|
@@ -561,7 +561,7 @@ var ee = class extends v(d) {
|
|
|
561
561
|
}
|
|
562
562
|
attributeChangedCallback(e, t, n) {
|
|
563
563
|
if (t !== n) {
|
|
564
|
-
if (
|
|
564
|
+
if (v({ disabled: this.#n }, e, n)) {
|
|
565
565
|
super.attributeChangedCallback?.(e, t, n);
|
|
566
566
|
return;
|
|
567
567
|
}
|
|
@@ -577,7 +577,7 @@ var ee = class extends v(d) {
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
setup() {
|
|
580
|
-
super.setup(), this.addEffect(
|
|
580
|
+
super.setup(), this.addEffect(g(this, this.#n.signal, this.#e)), this.addEventListener("click", this.#i);
|
|
581
581
|
}
|
|
582
582
|
teardown() {
|
|
583
583
|
this.removeEventListener("click", this.#i), super.teardown();
|
|
@@ -612,7 +612,7 @@ var ee = class extends v(d) {
|
|
|
612
612
|
}, oe = class extends d {
|
|
613
613
|
static observedAttributes = ["disabled"];
|
|
614
614
|
#e;
|
|
615
|
-
#t = new
|
|
615
|
+
#t = new x({ initialActiveIndex: 0 });
|
|
616
616
|
#n = t(!1);
|
|
617
617
|
constructor() {
|
|
618
618
|
super(), this.#e = this.attachInternals();
|
|
@@ -630,7 +630,7 @@ var ee = class extends v(d) {
|
|
|
630
630
|
t !== n && (e === "disabled" && (this.#n.value = n !== null), super.attributeChangedCallback?.(e, t, n));
|
|
631
631
|
}
|
|
632
632
|
setup() {
|
|
633
|
-
super.setup(), this.addEffect(
|
|
633
|
+
super.setup(), this.addEffect(g(this, this.#n, this.#e)), this.addEventListener("ui-input", this.#i), this.addEventListener("ui-select", this.#a), this.addEventListener("keydown", this.#o), this.deferChildren(() => {
|
|
634
634
|
this.addEffect(() => {
|
|
635
635
|
let e = this.#t.query.value.toLowerCase().trim(), t = this.querySelectorAll("ui-command-item");
|
|
636
636
|
for (let n of t) {
|
|
@@ -787,7 +787,7 @@ var ee = class extends v(d) {
|
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
setup() {
|
|
790
|
-
super.setup(), this.addEffect(
|
|
790
|
+
super.setup(), this.addEffect(g(this, this.#n, this.#e)), this.addEventListener("click", this.#i);
|
|
791
791
|
}
|
|
792
792
|
teardown() {
|
|
793
793
|
this.removeEventListener("click", this.#i), super.teardown();
|
|
@@ -802,13 +802,13 @@ var ee = class extends v(d) {
|
|
|
802
802
|
}
|
|
803
803
|
}));
|
|
804
804
|
};
|
|
805
|
-
},
|
|
805
|
+
}, T = class extends d {
|
|
806
806
|
constructor() {
|
|
807
807
|
super();
|
|
808
808
|
let e = this.attachInternals();
|
|
809
809
|
e.role = "group";
|
|
810
810
|
}
|
|
811
|
-
},
|
|
811
|
+
}, E = class extends d {}, D = class extends y(d) {
|
|
812
812
|
static observedAttributes = [
|
|
813
813
|
"checked",
|
|
814
814
|
"indeterminate",
|
|
@@ -825,7 +825,7 @@ var ee = class extends v(d) {
|
|
|
825
825
|
#a = !1;
|
|
826
826
|
#o;
|
|
827
827
|
constructor() {
|
|
828
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "checkbox", this.#t =
|
|
828
|
+
super(), this.#e = this.attachInternals(), this.#e.role = "checkbox", this.#t = _(this, "checked", { type: "boolean" }), this.#n = _(this, "indeterminate", { type: "boolean" }), this.#r = _(this, "disabled", { type: "boolean" });
|
|
829
829
|
}
|
|
830
830
|
get checked() {
|
|
831
831
|
return this.#t.value;
|
|
@@ -865,7 +865,7 @@ var ee = class extends v(d) {
|
|
|
865
865
|
}
|
|
866
866
|
attributeChangedCallback(e, t, n) {
|
|
867
867
|
if (t !== n) {
|
|
868
|
-
if (
|
|
868
|
+
if (v({
|
|
869
869
|
checked: this.#t,
|
|
870
870
|
indeterminate: this.#n,
|
|
871
871
|
disabled: this.#r
|
|
@@ -877,7 +877,7 @@ var ee = class extends v(d) {
|
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
setup() {
|
|
880
|
-
super.setup(), this.#o = new u(this, { disabled: () => this.disabled }), this.#a = this.hasAttribute("checked"), this.#i.value = this.hasAttribute("required"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(
|
|
880
|
+
super.setup(), this.#o = new u(this, { disabled: () => this.disabled }), this.#a = this.hasAttribute("checked"), this.#i.value = this.hasAttribute("required"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(g(this, this.#r.signal, this.#e, { manageTabindex: !0 })), this.addEffect(() => {
|
|
881
881
|
let e = this.#t.value, t = this.#n.value ? "mixed" : e ? "true" : "false";
|
|
882
882
|
this.setAttribute("aria-checked", t), this.#e.setFormValue(e ? this.value : null);
|
|
883
883
|
}), this.addEffect(() => {
|
|
@@ -906,7 +906,7 @@ var ee = class extends v(d) {
|
|
|
906
906
|
}
|
|
907
907
|
})));
|
|
908
908
|
};
|
|
909
|
-
},
|
|
909
|
+
}, O = class extends y(d) {
|
|
910
910
|
static observedAttributes = [
|
|
911
911
|
"checked",
|
|
912
912
|
"disabled",
|
|
@@ -919,7 +919,7 @@ var ee = class extends v(d) {
|
|
|
919
919
|
#r = !1;
|
|
920
920
|
#i;
|
|
921
921
|
constructor() {
|
|
922
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "switch", this.#t =
|
|
922
|
+
super(), this.#e = this.attachInternals(), this.#e.role = "switch", this.#t = _(this, "checked", { type: "boolean" }), this.#n = _(this, "disabled", { type: "boolean" });
|
|
923
923
|
}
|
|
924
924
|
get checked() {
|
|
925
925
|
return this.#t.value;
|
|
@@ -946,13 +946,13 @@ var ee = class extends v(d) {
|
|
|
946
946
|
this.setAttribute("value", e);
|
|
947
947
|
}
|
|
948
948
|
attributeChangedCallback(e, t, n) {
|
|
949
|
-
t !== n && (
|
|
949
|
+
t !== n && (v({
|
|
950
950
|
checked: this.#t,
|
|
951
951
|
disabled: this.#n
|
|
952
952
|
}, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
953
953
|
}
|
|
954
954
|
setup() {
|
|
955
|
-
super.setup(), this.#i = new u(this, { disabled: () => this.disabled }), this.#r = this.hasAttribute("checked"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(
|
|
955
|
+
super.setup(), this.#i = new u(this, { disabled: () => this.disabled }), this.#r = this.hasAttribute("checked"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(g(this, this.#n.signal, this.#e, { manageTabindex: !0 })), this.addEffect(() => {
|
|
956
956
|
let e = this.#t.value;
|
|
957
957
|
this.setAttribute("aria-checked", e ? "true" : "false"), this.#e.setFormValue(e ? this.value : null);
|
|
958
958
|
}), this.addEventListener("ui-press", this.#a);
|
|
@@ -976,13 +976,13 @@ var ee = class extends v(d) {
|
|
|
976
976
|
}
|
|
977
977
|
})));
|
|
978
978
|
};
|
|
979
|
-
},
|
|
979
|
+
}, k = class extends d {
|
|
980
980
|
static observedAttributes = ["value", "disabled"];
|
|
981
981
|
#e;
|
|
982
982
|
#t;
|
|
983
983
|
#n;
|
|
984
984
|
constructor() {
|
|
985
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "radio", this.#t =
|
|
985
|
+
super(), this.#e = this.attachInternals(), this.#e.role = "radio", this.#t = _(this, "disabled", { type: "boolean" });
|
|
986
986
|
}
|
|
987
987
|
get value() {
|
|
988
988
|
return this.getAttribute("value") ?? "";
|
|
@@ -1000,10 +1000,10 @@ var ee = class extends v(d) {
|
|
|
1000
1000
|
return this.getAttribute("label") ?? this.textContent?.trim() ?? "";
|
|
1001
1001
|
}
|
|
1002
1002
|
attributeChangedCallback(e, t, n) {
|
|
1003
|
-
t !== n && (
|
|
1003
|
+
t !== n && (v({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
1004
1004
|
}
|
|
1005
1005
|
setup() {
|
|
1006
|
-
super.setup(), this.setAttribute("aria-checked", "false"), this.#n = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(
|
|
1006
|
+
super.setup(), this.setAttribute("aria-checked", "false"), this.#n = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(g(this, this.#t.signal, this.#e)), this.addEventListener("click", this.#r), this.addEventListener("keydown", this.#i);
|
|
1007
1007
|
}
|
|
1008
1008
|
teardown() {
|
|
1009
1009
|
this.removeEventListener("click", this.#r), this.removeEventListener("keydown", this.#i), this.#n.destroy(), super.teardown();
|
|
@@ -1028,7 +1028,7 @@ var ee = class extends v(d) {
|
|
|
1028
1028
|
}
|
|
1029
1029
|
})));
|
|
1030
1030
|
};
|
|
1031
|
-
},
|
|
1031
|
+
}, A = class extends y(d) {
|
|
1032
1032
|
static observedAttributes = [
|
|
1033
1033
|
"value",
|
|
1034
1034
|
"disabled",
|
|
@@ -1103,7 +1103,7 @@ var ee = class extends v(d) {
|
|
|
1103
1103
|
deferChildren: (e) => this.deferChildren(e)
|
|
1104
1104
|
});
|
|
1105
1105
|
let e = this.getAttribute("value");
|
|
1106
|
-
e !== null && (this.#i.listValue.value = e), this.addEffect(
|
|
1106
|
+
e !== null && (this.#i.listValue.value = e), this.addEffect(g(this, this.#t, this.#e)), this.addEffect(() => {
|
|
1107
1107
|
let e = this.#n.value;
|
|
1108
1108
|
this.#e.ariaRequired = e ? "true" : null;
|
|
1109
1109
|
}), this.addEffect(() => {
|
|
@@ -1123,7 +1123,7 @@ var ee = class extends v(d) {
|
|
|
1123
1123
|
onFormReset() {
|
|
1124
1124
|
this.#i && (this.#i.listValue.value = this.#r), this.#r === null ? this.removeAttribute("value") : this.setAttribute("value", this.#r);
|
|
1125
1125
|
}
|
|
1126
|
-
},
|
|
1126
|
+
}, j = class extends y(d) {
|
|
1127
1127
|
static observedAttributes = [
|
|
1128
1128
|
"value",
|
|
1129
1129
|
"disabled",
|
|
@@ -1194,7 +1194,7 @@ var ee = class extends v(d) {
|
|
|
1194
1194
|
deferChildren: (e) => this.deferChildren(e)
|
|
1195
1195
|
});
|
|
1196
1196
|
let e = this.getAttribute("value");
|
|
1197
|
-
e !== null && (this.#i.listValue.value = e), this.addEffect(
|
|
1197
|
+
e !== null && (this.#i.listValue.value = e), this.addEffect(g(this, this.#t, this.#e)), this.#n.value = this.hasAttribute("required"), this.addEffect(() => {
|
|
1198
1198
|
let e = this.#i.listValue.value;
|
|
1199
1199
|
this.#n.value && (e === null || e === "") ? this.#e.setValidity({ valueMissing: !0 }, "Please select one of these options.", this) : this.#e.setValidity({});
|
|
1200
1200
|
}), this.addEffect(() => {
|
|
@@ -1203,7 +1203,7 @@ var ee = class extends v(d) {
|
|
|
1203
1203
|
}), this.deferChildren(() => {
|
|
1204
1204
|
this.addEffect(() => {
|
|
1205
1205
|
let e = this.#i.listValue.value, t = this.querySelectorAll(":scope > ui-segment"), n = -1, r = 0;
|
|
1206
|
-
for (let i of t) i.value === e && (n = r), r++;
|
|
1206
|
+
for (let i of t) (i.getAttribute("value") ?? "") === e && (n = r), r++;
|
|
1207
1207
|
this.#a(n, r);
|
|
1208
1208
|
});
|
|
1209
1209
|
});
|
|
@@ -1224,13 +1224,13 @@ var ee = class extends v(d) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
this.style.setProperty("--_indicator-index", `${e}`), this.style.setProperty("--_segment-count", `${t}`), this.#e.states.add("ready");
|
|
1226
1226
|
}
|
|
1227
|
-
},
|
|
1227
|
+
}, M = class extends d {
|
|
1228
1228
|
static observedAttributes = ["value", "disabled"];
|
|
1229
1229
|
#e;
|
|
1230
1230
|
#t;
|
|
1231
1231
|
#n;
|
|
1232
1232
|
constructor() {
|
|
1233
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "radio", this.#t =
|
|
1233
|
+
super(), this.#e = this.attachInternals(), this.#e.role = "radio", this.#t = _(this, "disabled", { type: "boolean" });
|
|
1234
1234
|
}
|
|
1235
1235
|
get value() {
|
|
1236
1236
|
return this.getAttribute("value") ?? "";
|
|
@@ -1248,10 +1248,10 @@ var ee = class extends v(d) {
|
|
|
1248
1248
|
return this.getAttribute("label") ?? this.textContent?.trim() ?? "";
|
|
1249
1249
|
}
|
|
1250
1250
|
attributeChangedCallback(e, t, n) {
|
|
1251
|
-
t !== n && (
|
|
1251
|
+
t !== n && (v({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
1252
1252
|
}
|
|
1253
1253
|
setup() {
|
|
1254
|
-
super.setup(), this.#n = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(
|
|
1254
|
+
super.setup(), this.#n = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(g(this, this.#t.signal, this.#e)), this.addEventListener("ui-press", this.#r);
|
|
1255
1255
|
}
|
|
1256
1256
|
teardown() {
|
|
1257
1257
|
this.removeEventListener("ui-press", this.#r), this.#n.destroy(), super.teardown();
|
|
@@ -1266,7 +1266,7 @@ var ee = class extends v(d) {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
}));
|
|
1268
1268
|
};
|
|
1269
|
-
},
|
|
1269
|
+
}, N = class extends d {
|
|
1270
1270
|
static observedAttributes = [
|
|
1271
1271
|
"placement",
|
|
1272
1272
|
"delay",
|
|
@@ -1303,7 +1303,7 @@ var ee = class extends v(d) {
|
|
|
1303
1303
|
t !== n && (e === "disabled" && (this.#n.value = n !== null), super.attributeChangedCallback?.(e, t, n));
|
|
1304
1304
|
}
|
|
1305
1305
|
setup() {
|
|
1306
|
-
super.setup(), this.addEffect(
|
|
1306
|
+
super.setup(), this.addEffect(g(this, this.#n, this.#e)), this.#i = this.parentElement, this.#i && (this.#a = r("tip"), this.#i.style.setProperty("anchor-name", `--${this.#a}`), this.style.setProperty("position-anchor", `--${this.#a}`), this.hasAttribute("popover") || this.setAttribute("popover", "manual"), this.id ||= r("tooltip"), this.#i.setAttribute("aria-describedby", this.id), this.#i.addEventListener("mouseenter", this.#o), this.#i.addEventListener("mouseleave", this.#s), this.#i.addEventListener("focusin", this.#o), this.#i.addEventListener("focusout", this.#s), this.#i.addEventListener("keydown", this.#c), this.addEffect(() => {
|
|
1307
1307
|
this.#n.value && this.#t.value && (this.#l(), this.#t.value = !1);
|
|
1308
1308
|
}), this.addEffect(() => {
|
|
1309
1309
|
if (this.#t.value) try {
|
|
@@ -1331,7 +1331,7 @@ var ee = class extends v(d) {
|
|
|
1331
1331
|
#l() {
|
|
1332
1332
|
this.#r !== null && (clearTimeout(this.#r), this.#r = null);
|
|
1333
1333
|
}
|
|
1334
|
-
},
|
|
1334
|
+
}, P = class extends d {
|
|
1335
1335
|
static observedAttributes = ["multiple", "disabled"];
|
|
1336
1336
|
#e = t(!1);
|
|
1337
1337
|
get multiple() {
|
|
@@ -1350,7 +1350,7 @@ var ee = class extends v(d) {
|
|
|
1350
1350
|
t !== n && (e === "disabled" && (this.#e.value = n !== null), super.attributeChangedCallback?.(e, t, n));
|
|
1351
1351
|
}
|
|
1352
1352
|
setup() {
|
|
1353
|
-
super.setup(), this.addEffect(
|
|
1353
|
+
super.setup(), this.addEffect(g(this, this.#e)), this.addEventListener("toggle", this.#t, !0);
|
|
1354
1354
|
}
|
|
1355
1355
|
teardown() {
|
|
1356
1356
|
this.removeEventListener("toggle", this.#t, !0), super.teardown();
|
|
@@ -1364,7 +1364,7 @@ var ee = class extends v(d) {
|
|
|
1364
1364
|
let r = this.querySelectorAll(":scope > ui-accordion-item[open]");
|
|
1365
1365
|
for (let e of r) e !== n && (e.open = !1);
|
|
1366
1366
|
};
|
|
1367
|
-
},
|
|
1367
|
+
}, F = class extends d {
|
|
1368
1368
|
static observedAttributes = ["open", "disabled"];
|
|
1369
1369
|
#e = t(!1);
|
|
1370
1370
|
#t = t(!1);
|
|
@@ -1403,7 +1403,7 @@ var ee = class extends v(d) {
|
|
|
1403
1403
|
e.appendChild(t), e.appendChild(r), this.appendChild(e), this.#n = e, this.addEffect(() => {
|
|
1404
1404
|
let e = this.#e.value;
|
|
1405
1405
|
this.#n && (this.#n.open = e);
|
|
1406
|
-
}), this.addEffect(
|
|
1406
|
+
}), this.addEffect(g(this, this.#t)), e.addEventListener("toggle", this.#r);
|
|
1407
1407
|
}
|
|
1408
1408
|
teardown() {
|
|
1409
1409
|
this.#n?.removeEventListener("toggle", this.#r), this.#n = null, super.teardown();
|
|
@@ -1413,7 +1413,7 @@ var ee = class extends v(d) {
|
|
|
1413
1413
|
let e = this.#n.open;
|
|
1414
1414
|
this.#e.value = e, this.toggleAttribute("open", e);
|
|
1415
1415
|
};
|
|
1416
|
-
},
|
|
1416
|
+
}, I = class extends d {
|
|
1417
1417
|
static observedAttributes = ["no-close-on-escape", "no-close-on-backdrop"];
|
|
1418
1418
|
#e;
|
|
1419
1419
|
get open() {
|
|
@@ -1431,7 +1431,7 @@ var ee = class extends v(d) {
|
|
|
1431
1431
|
teardown() {
|
|
1432
1432
|
this.#e.destroy(), super.teardown();
|
|
1433
1433
|
}
|
|
1434
|
-
},
|
|
1434
|
+
}, L = class extends d {
|
|
1435
1435
|
static observedAttributes = [
|
|
1436
1436
|
"value",
|
|
1437
1437
|
"disabled",
|
|
@@ -1487,12 +1487,12 @@ var ee = class extends v(d) {
|
|
|
1487
1487
|
deferChildren: (e) => this.deferChildren(e)
|
|
1488
1488
|
});
|
|
1489
1489
|
let e = this.getAttribute("value");
|
|
1490
|
-
e !== null && (this.#n.listValue.value = e), this.addEffect(
|
|
1490
|
+
e !== null && (this.#n.listValue.value = e), this.addEffect(g(this, this.#t, this.#e)), this.deferChildren(() => {
|
|
1491
1491
|
this.#r(), this.addEffect(() => {
|
|
1492
1492
|
let e = this.#n.listValue.value, t = this.querySelectorAll(":scope > ui-tab"), n = this.querySelectorAll(":scope > ui-tab-panels > ui-tab-panel"), r = -1, i = 0;
|
|
1493
|
-
for (let n of t) n.value === e && (r = i), i++;
|
|
1493
|
+
for (let n of t) (n.getAttribute("value") ?? "") === e && (r = i), i++;
|
|
1494
1494
|
for (let t of n) {
|
|
1495
|
-
let n = t.value === e;
|
|
1495
|
+
let n = (t.getAttribute("value") ?? "") === e;
|
|
1496
1496
|
t.toggleAttribute("hidden", !n), t.setAttribute("tabindex", n ? "0" : "-1");
|
|
1497
1497
|
}
|
|
1498
1498
|
this.#i(r, i);
|
|
@@ -1504,10 +1504,10 @@ var ee = class extends v(d) {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
#r() {
|
|
1506
1506
|
let e = this.querySelectorAll(":scope > ui-tab"), t = this.querySelectorAll(":scope > ui-tab-panels > ui-tab-panel"), n = /* @__PURE__ */ new Map();
|
|
1507
|
-
for (let e of t) e.id ||= r("tp"), n.set(e.value, e);
|
|
1507
|
+
for (let e of t) e.id ||= r("tp"), n.set(e.getAttribute("value") ?? "", e);
|
|
1508
1508
|
for (let t of e) {
|
|
1509
1509
|
t.id ||= r("tab");
|
|
1510
|
-
let e = n.get(t.value);
|
|
1510
|
+
let e = n.get(t.getAttribute("value") ?? "");
|
|
1511
1511
|
e && (t.setAttribute("aria-controls", e.id), e.setAttribute("aria-labelledby", t.id));
|
|
1512
1512
|
}
|
|
1513
1513
|
}
|
|
@@ -1518,13 +1518,13 @@ var ee = class extends v(d) {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
this.style.setProperty("--_indicator-index", `${e}`), this.style.setProperty("--_tab-count", `${t}`), this.#e.states.add("ready");
|
|
1520
1520
|
}
|
|
1521
|
-
},
|
|
1521
|
+
}, R = class extends d {
|
|
1522
1522
|
static observedAttributes = ["value", "disabled"];
|
|
1523
1523
|
#e;
|
|
1524
1524
|
#t;
|
|
1525
1525
|
#n;
|
|
1526
1526
|
constructor() {
|
|
1527
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "tab", this.#t =
|
|
1527
|
+
super(), this.#e = this.attachInternals(), this.#e.role = "tab", this.#t = _(this, "disabled", { type: "boolean" });
|
|
1528
1528
|
}
|
|
1529
1529
|
get value() {
|
|
1530
1530
|
return this.getAttribute("value") ?? "";
|
|
@@ -1542,10 +1542,10 @@ var ee = class extends v(d) {
|
|
|
1542
1542
|
return this.getAttribute("label") ?? this.textContent?.trim() ?? "";
|
|
1543
1543
|
}
|
|
1544
1544
|
attributeChangedCallback(e, t, n) {
|
|
1545
|
-
t !== n && (
|
|
1545
|
+
t !== n && (v({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
1546
1546
|
}
|
|
1547
1547
|
setup() {
|
|
1548
|
-
super.setup(), this.#n = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(
|
|
1548
|
+
super.setup(), this.#n = new u(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(g(this, this.#t.signal, this.#e)), this.addEventListener("ui-press", this.#r);
|
|
1549
1549
|
}
|
|
1550
1550
|
teardown() {
|
|
1551
1551
|
this.removeEventListener("ui-press", this.#r), this.#n.destroy(), super.teardown();
|
|
@@ -1560,7 +1560,7 @@ var ee = class extends v(d) {
|
|
|
1560
1560
|
}
|
|
1561
1561
|
}));
|
|
1562
1562
|
};
|
|
1563
|
-
},
|
|
1563
|
+
}, z = class extends d {
|
|
1564
1564
|
static observedAttributes = ["value"];
|
|
1565
1565
|
#e;
|
|
1566
1566
|
constructor() {
|
|
@@ -1575,12 +1575,12 @@ var ee = class extends v(d) {
|
|
|
1575
1575
|
attributeChangedCallback(e, t, n) {
|
|
1576
1576
|
t !== n && super.attributeChangedCallback?.(e, t, n);
|
|
1577
1577
|
}
|
|
1578
|
-
},
|
|
1578
|
+
}, B = class extends d {
|
|
1579
1579
|
#e;
|
|
1580
1580
|
constructor() {
|
|
1581
1581
|
super(), this.#e = this.attachInternals(), this.#e.role = "presentation";
|
|
1582
1582
|
}
|
|
1583
|
-
},
|
|
1583
|
+
}, V = class {
|
|
1584
1584
|
sortColumn;
|
|
1585
1585
|
sortDirection;
|
|
1586
1586
|
selected;
|
|
@@ -1615,10 +1615,10 @@ var ee = class extends v(d) {
|
|
|
1615
1615
|
return this.selected.value.has(e);
|
|
1616
1616
|
}
|
|
1617
1617
|
};
|
|
1618
|
-
function
|
|
1619
|
-
return new
|
|
1618
|
+
function H(e = {}) {
|
|
1619
|
+
return new V(e);
|
|
1620
1620
|
}
|
|
1621
|
-
var
|
|
1621
|
+
var U = class {
|
|
1622
1622
|
table;
|
|
1623
1623
|
#e = [];
|
|
1624
1624
|
#t = -1;
|
|
@@ -1695,7 +1695,7 @@ var H = class {
|
|
|
1695
1695
|
#m() {
|
|
1696
1696
|
this.#i = !1, this.#t = -1, this.table.removeAttribute("resizing"), document.removeEventListener("pointermove", this.#u), document.removeEventListener("pointerup", this.#d), document.removeEventListener("pointercancel", this.#f), document.removeEventListener("keydown", this.#p);
|
|
1697
1697
|
}
|
|
1698
|
-
},
|
|
1698
|
+
}, W = class {
|
|
1699
1699
|
#e;
|
|
1700
1700
|
#t;
|
|
1701
1701
|
#n;
|
|
@@ -1731,14 +1731,14 @@ var H = class {
|
|
|
1731
1731
|
destroy() {
|
|
1732
1732
|
this.#n.removeEventListener("ui-drag-start", this.#i), this.#n.removeEventListener("ui-drop", this.#a), this.#n.removeEventListener("click", this.#o, { capture: !0 }), this.#e.destroy();
|
|
1733
1733
|
}
|
|
1734
|
-
},
|
|
1734
|
+
}, ue = class extends d {
|
|
1735
1735
|
static observedAttributes = [
|
|
1736
1736
|
"selectable",
|
|
1737
1737
|
"resizable",
|
|
1738
1738
|
"reorderable"
|
|
1739
1739
|
];
|
|
1740
1740
|
#e;
|
|
1741
|
-
#t = new
|
|
1741
|
+
#t = new V();
|
|
1742
1742
|
#n = null;
|
|
1743
1743
|
#r = null;
|
|
1744
1744
|
#i = null;
|
|
@@ -1783,7 +1783,7 @@ var H = class {
|
|
|
1783
1783
|
let e = document.createElement("div");
|
|
1784
1784
|
e.className = "table-resize-handle", e.setAttribute("aria-hidden", "true"), e.addEventListener("click", (e) => e.stopPropagation()), t.appendChild(e);
|
|
1785
1785
|
}
|
|
1786
|
-
this.#n = new
|
|
1786
|
+
this.#n = new U(this), this.#n.init();
|
|
1787
1787
|
}
|
|
1788
1788
|
#o() {
|
|
1789
1789
|
let e = this.querySelector(":scope > ui-table-head > ui-table-row");
|
|
@@ -1796,7 +1796,7 @@ var H = class {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
#s() {
|
|
1798
1798
|
let e = this.querySelector(":scope > ui-table-body");
|
|
1799
|
-
e && (this.#i = new
|
|
1799
|
+
e && (this.#i = new W(e, this));
|
|
1800
1800
|
}
|
|
1801
1801
|
#c = (e) => {
|
|
1802
1802
|
let t = e.detail;
|
|
@@ -1822,17 +1822,17 @@ var H = class {
|
|
|
1822
1822
|
}
|
|
1823
1823
|
}));
|
|
1824
1824
|
};
|
|
1825
|
-
},
|
|
1825
|
+
}, de = class extends d {
|
|
1826
1826
|
#e;
|
|
1827
1827
|
constructor() {
|
|
1828
1828
|
super(), this.#e = this.attachInternals(), this.#e.role = "rowgroup";
|
|
1829
1829
|
}
|
|
1830
|
-
},
|
|
1830
|
+
}, fe = class extends d {
|
|
1831
1831
|
#e;
|
|
1832
1832
|
constructor() {
|
|
1833
1833
|
super(), this.#e = this.attachInternals(), this.#e.role = "rowgroup";
|
|
1834
1834
|
}
|
|
1835
|
-
},
|
|
1835
|
+
}, pe = class extends d {
|
|
1836
1836
|
static observedAttributes = ["value", "selected"];
|
|
1837
1837
|
#e;
|
|
1838
1838
|
constructor() {
|
|
@@ -1863,12 +1863,12 @@ var H = class {
|
|
|
1863
1863
|
detail: { value: this.value }
|
|
1864
1864
|
}));
|
|
1865
1865
|
};
|
|
1866
|
-
},
|
|
1866
|
+
}, me = class extends d {
|
|
1867
1867
|
#e;
|
|
1868
1868
|
constructor() {
|
|
1869
1869
|
super(), this.#e = this.attachInternals(), this.#e.role = "cell";
|
|
1870
1870
|
}
|
|
1871
|
-
},
|
|
1871
|
+
}, he = class extends d {
|
|
1872
1872
|
static observedAttributes = ["sort", "sortable"];
|
|
1873
1873
|
#e;
|
|
1874
1874
|
constructor() {
|
|
@@ -1908,7 +1908,7 @@ function G(e) {
|
|
|
1908
1908
|
let t = /* @__PURE__ */ new Date(e + "T00:00:00");
|
|
1909
1909
|
return isNaN(t.getTime()) ? null : t;
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function ge(e) {
|
|
1912
1912
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
1913
1913
|
}
|
|
1914
1914
|
function K(e, t) {
|
|
@@ -1972,7 +1972,7 @@ var q = class {
|
|
|
1972
1972
|
#e() {
|
|
1973
1973
|
let e = this.focusedYear.value, t = this.focusedMonth.value, n = G(this.value.value), r = /* @__PURE__ */ new Date(), i = G(this.rangeStart.value), a = G(this.rangeEnd.value), o = new Date(e, t, 1).getDay(), s = new Date(e, t, 1 - o), c = [];
|
|
1974
1974
|
for (let e = 0; e < 42; e++) {
|
|
1975
|
-
let o = new Date(s.getFullYear(), s.getMonth(), s.getDate() + e), l =
|
|
1975
|
+
let o = new Date(s.getFullYear(), s.getMonth(), s.getDate() + e), l = ge(o), u = o.getMonth() === t, d = K(o, r), f = n ? K(o, n) : !1, p = this.isDateDisabled(l), m = !1, h = !1, g = !1;
|
|
1976
1976
|
if (i && a) {
|
|
1977
1977
|
let e = i <= a ? i : a, t = i <= a ? a : i;
|
|
1978
1978
|
m = o >= e && o <= t, h = K(o, e), g = K(o, t);
|
|
@@ -2048,7 +2048,7 @@ var q = class {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
2050
|
};
|
|
2051
|
-
function
|
|
2051
|
+
function _e(e = {}) {
|
|
2052
2052
|
return new q(e);
|
|
2053
2053
|
}
|
|
2054
2054
|
/**
|
|
@@ -2062,7 +2062,7 @@ function ge(e = {}) {
|
|
|
2062
2062
|
* @fires ui-change - Fired on single date selection with `{ value }` detail
|
|
2063
2063
|
* @fires ui-range-select - Fired on range commit with `{ start, end }` detail
|
|
2064
2064
|
*/
|
|
2065
|
-
var
|
|
2065
|
+
var ve = class extends y(d) {
|
|
2066
2066
|
static observedAttributes = [
|
|
2067
2067
|
"value",
|
|
2068
2068
|
"min",
|
|
@@ -2135,7 +2135,7 @@ var _e = class extends v(d) {
|
|
|
2135
2135
|
e && (this.#t.value.value = e), t && (this.#t.min.value = t), r && (this.#t.max.value = r);
|
|
2136
2136
|
}), this.#s(), this.addEventListener("keydown", this.#b), this.addEffect(() => this.#c()), this.addEffect(() => {
|
|
2137
2137
|
this.#e.setFormValue(this.#t.value.value);
|
|
2138
|
-
}), this.addEffect(
|
|
2138
|
+
}), this.addEffect(g(this, this.#n, this.#e, { manageTabindex: !0 })), this.#r.value = this.hasAttribute("required"), this.addEffect(() => {
|
|
2139
2139
|
let e = this.#t.value.value;
|
|
2140
2140
|
this.#r.value && (e === null || e === "") ? this.#e.setValidity({ valueMissing: !0 }, "Please select a date.", this) : this.#e.setValidity({});
|
|
2141
2141
|
});
|
|
@@ -2303,7 +2303,7 @@ var _e = class extends v(d) {
|
|
|
2303
2303
|
this.open.value = !1, this.value.value = null, this.label.value = "";
|
|
2304
2304
|
});
|
|
2305
2305
|
}
|
|
2306
|
-
},
|
|
2306
|
+
}, ye = class extends y(d) {
|
|
2307
2307
|
static observedAttributes = [
|
|
2308
2308
|
"value",
|
|
2309
2309
|
"disabled",
|
|
@@ -2379,10 +2379,10 @@ var _e = class extends v(d) {
|
|
|
2379
2379
|
this.#s.value = e, e ? this.setAttribute("placeholder", e) : this.removeAttribute("placeholder");
|
|
2380
2380
|
}
|
|
2381
2381
|
#f(e) {
|
|
2382
|
-
return
|
|
2382
|
+
return C(e, "ui-select");
|
|
2383
2383
|
}
|
|
2384
2384
|
async #p(e) {
|
|
2385
|
-
this.#l = await
|
|
2385
|
+
this.#l = await w(e, this.#l, this.#a, "ui-select");
|
|
2386
2386
|
}
|
|
2387
2387
|
#m() {
|
|
2388
2388
|
let e = document.createElement("ui-button");
|
|
@@ -2459,7 +2459,7 @@ var _e = class extends v(d) {
|
|
|
2459
2459
|
let t = this.#s.value, n = this.#t.label.value, r = e?.querySelector("[slot=\"label\"]");
|
|
2460
2460
|
r && !n && (r.textContent = t || "\xA0");
|
|
2461
2461
|
}));
|
|
2462
|
-
}), this.addEffect(
|
|
2462
|
+
}), this.addEffect(g(this, this.#n, this.#e)), this.addEffect(() => {
|
|
2463
2463
|
let t = this.#n.value;
|
|
2464
2464
|
e && e.toggleAttribute("disabled", t), t && this.#t.open.value && this.#t.hide();
|
|
2465
2465
|
}), this.#r.value = this.hasAttribute("required"), this.addEffect(() => {
|
|
@@ -2540,7 +2540,7 @@ var _e = class extends v(d) {
|
|
|
2540
2540
|
onFormDisabled(e) {
|
|
2541
2541
|
this.#n.value = e;
|
|
2542
2542
|
}
|
|
2543
|
-
},
|
|
2543
|
+
}, be = class extends y(d) {
|
|
2544
2544
|
static observedAttributes = [
|
|
2545
2545
|
"value",
|
|
2546
2546
|
"disabled",
|
|
@@ -2551,7 +2551,7 @@ var _e = class extends v(d) {
|
|
|
2551
2551
|
"required"
|
|
2552
2552
|
];
|
|
2553
2553
|
#e;
|
|
2554
|
-
#t = new
|
|
2554
|
+
#t = new x();
|
|
2555
2555
|
#n = t(!1);
|
|
2556
2556
|
#r = t(!1);
|
|
2557
2557
|
#i = t(!1);
|
|
@@ -2619,10 +2619,10 @@ var _e = class extends v(d) {
|
|
|
2619
2619
|
this.#u.value = e, e ? this.setAttribute("placeholder", e) : this.removeAttribute("placeholder");
|
|
2620
2620
|
}
|
|
2621
2621
|
#m(e) {
|
|
2622
|
-
return
|
|
2622
|
+
return C(e, "ui-combobox");
|
|
2623
2623
|
}
|
|
2624
2624
|
async #h(e) {
|
|
2625
|
-
this.#f = await
|
|
2625
|
+
this.#f = await w(e, this.#f, this.#c, "ui-combobox");
|
|
2626
2626
|
}
|
|
2627
2627
|
#g() {
|
|
2628
2628
|
let e = document.createElement("ui-input"), t = this.#u.value;
|
|
@@ -2711,7 +2711,7 @@ var _e = class extends v(d) {
|
|
|
2711
2711
|
let t = this.#u.value;
|
|
2712
2712
|
e && (t ? e.setAttribute("placeholder", t) : e.removeAttribute("placeholder"));
|
|
2713
2713
|
}));
|
|
2714
|
-
}), this.addEffect(
|
|
2714
|
+
}), this.addEffect(g(this, this.#r, this.#e)), this.addEffect(() => {
|
|
2715
2715
|
let t = this.#r.value;
|
|
2716
2716
|
e && e.toggleAttribute("disabled", t), t && this.#n.value && (this.#n.value = !1);
|
|
2717
2717
|
}), this.#i.value = this.hasAttribute("required"), this.addEffect(() => {
|
|
@@ -2794,7 +2794,7 @@ var _e = class extends v(d) {
|
|
|
2794
2794
|
onFormDisabled(e) {
|
|
2795
2795
|
this.#r.value = e;
|
|
2796
2796
|
}
|
|
2797
|
-
},
|
|
2797
|
+
}, xe = class extends d {
|
|
2798
2798
|
static observedAttributes = ["disabled", "required"];
|
|
2799
2799
|
#e = r("field-label");
|
|
2800
2800
|
#t = r("field-desc");
|
|
@@ -2854,7 +2854,7 @@ var _e = class extends v(d) {
|
|
|
2854
2854
|
#u = () => {
|
|
2855
2855
|
this.removeAttribute("invalid");
|
|
2856
2856
|
};
|
|
2857
|
-
},
|
|
2857
|
+
}, Se = class extends y(d) {
|
|
2858
2858
|
static observedAttributes = [
|
|
2859
2859
|
"value",
|
|
2860
2860
|
"placeholder",
|
|
@@ -2933,7 +2933,7 @@ var _e = class extends v(d) {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
}
|
|
2935
2935
|
setup() {
|
|
2936
|
-
super.setup(), this.hasAttribute("contenteditable") || this.setAttribute("contenteditable", "plaintext-only"), this.#n.value = this.hasAttribute("required"), this.#r.value = this.textContent ?? "", this.#a(), this.#o(), this.addEffect(
|
|
2936
|
+
super.setup(), this.hasAttribute("contenteditable") || this.setAttribute("contenteditable", "plaintext-only"), this.#n.value = this.hasAttribute("required"), this.#r.value = this.textContent ?? "", this.#a(), this.#o(), this.addEffect(g(this, this.#t, this.#e, { manageTabindex: !0 })), this.addEffect(() => {
|
|
2937
2937
|
this.#n.value && this.#r.value === "" ? this.#e.setValidity({ valueMissing: !0 }, "Please fill out this field.", this) : this.#e.setValidity({});
|
|
2938
2938
|
}), this.addEventListener("input", this.#s), this.addEventListener("blur", this.#c);
|
|
2939
2939
|
}
|
|
@@ -2978,7 +2978,7 @@ var _e = class extends v(d) {
|
|
|
2978
2978
|
detail: { value: this.textContent ?? "" }
|
|
2979
2979
|
}));
|
|
2980
2980
|
};
|
|
2981
|
-
},
|
|
2981
|
+
}, Ce = class extends y(d) {
|
|
2982
2982
|
static observedAttributes = [
|
|
2983
2983
|
"value",
|
|
2984
2984
|
"min",
|
|
@@ -3058,7 +3058,7 @@ var _e = class extends v(d) {
|
|
|
3058
3058
|
}
|
|
3059
3059
|
}
|
|
3060
3060
|
setup() {
|
|
3061
|
-
super.setup(), this.#r = this.#n.value, this.#s = document.createElement("div"), this.#s.classList.add("ui-range-thumb"), this.appendChild(this.#s), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(
|
|
3061
|
+
super.setup(), this.#r = this.#n.value, this.#s = document.createElement("div"), this.#s.classList.add("ui-range-thumb"), this.appendChild(this.#s), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(g(this, this.#t, this.#e, { manageTabindex: !0 })), this.addEffect(() => {
|
|
3062
3062
|
let e = this.#u();
|
|
3063
3063
|
this.style.setProperty("--_progress", String(e)), this.#e.ariaValueNow = String(this.#n.value), this.#e.ariaValueMin = String(this.#i.value), this.#e.ariaValueMax = String(this.#a.value);
|
|
3064
3064
|
}), this.#d(), this.addEventListener("pointerdown", this.#p), this.addEventListener("keydown", this.#_);
|
|
@@ -3148,7 +3148,7 @@ var _e = class extends v(d) {
|
|
|
3148
3148
|
detail: { value: this.#n.value }
|
|
3149
3149
|
}));
|
|
3150
3150
|
}
|
|
3151
|
-
},
|
|
3151
|
+
}, we = class extends y(d) {
|
|
3152
3152
|
static observedAttributes = [
|
|
3153
3153
|
"value",
|
|
3154
3154
|
"length",
|
|
@@ -3166,7 +3166,7 @@ var _e = class extends v(d) {
|
|
|
3166
3166
|
#a = 6;
|
|
3167
3167
|
#o = /[0-9]/;
|
|
3168
3168
|
constructor() {
|
|
3169
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "group", this.#n =
|
|
3169
|
+
super(), this.#e = this.attachInternals(), this.#e.role = "group", this.#n = _(this, "disabled", { type: "boolean" });
|
|
3170
3170
|
}
|
|
3171
3171
|
get value() {
|
|
3172
3172
|
return this.#i.join("");
|
|
@@ -3194,7 +3194,7 @@ var _e = class extends v(d) {
|
|
|
3194
3194
|
}
|
|
3195
3195
|
attributeChangedCallback(e, t, n) {
|
|
3196
3196
|
if (t !== n) {
|
|
3197
|
-
if (
|
|
3197
|
+
if (v({ disabled: this.#n }, e, n)) {
|
|
3198
3198
|
super.attributeChangedCallback(e, t, n);
|
|
3199
3199
|
return;
|
|
3200
3200
|
}
|
|
@@ -3230,7 +3230,7 @@ var _e = class extends v(d) {
|
|
|
3230
3230
|
if (t) try {
|
|
3231
3231
|
this.#o = new RegExp(t);
|
|
3232
3232
|
} catch {}
|
|
3233
|
-
this.#s(), this.addEffect(
|
|
3233
|
+
this.#s(), this.addEffect(g(this, this.#n.signal, this.#e, { manageTabindex: !1 })), this.#t.value = this.hasAttribute("required");
|
|
3234
3234
|
let n = this.getAttribute("value");
|
|
3235
3235
|
n && (this.value = n), this.addEventListener("paste", this.#m);
|
|
3236
3236
|
}
|
|
@@ -3318,7 +3318,7 @@ var _e = class extends v(d) {
|
|
|
3318
3318
|
detail: { value: this.value }
|
|
3319
3319
|
}));
|
|
3320
3320
|
}
|
|
3321
|
-
},
|
|
3321
|
+
}, Te = class extends d {
|
|
3322
3322
|
static observedAttributes = [
|
|
3323
3323
|
"src",
|
|
3324
3324
|
"name",
|
|
@@ -3364,7 +3364,7 @@ var _e = class extends v(d) {
|
|
|
3364
3364
|
let e = this.getAttribute("name");
|
|
3365
3365
|
e ? this.textContent = this.#r(e) : this.textContent = "?";
|
|
3366
3366
|
};
|
|
3367
|
-
},
|
|
3367
|
+
}, Ee = class extends d {
|
|
3368
3368
|
static observedAttributes = ["max"];
|
|
3369
3369
|
#e;
|
|
3370
3370
|
#t = "";
|
|
@@ -3385,7 +3385,7 @@ var _e = class extends v(d) {
|
|
|
3385
3385
|
let n = parseInt(this.#t, 10);
|
|
3386
3386
|
isNaN(n) || (n > t ? this.textContent = `${t}+` : this.textContent = this.#t);
|
|
3387
3387
|
}
|
|
3388
|
-
},
|
|
3388
|
+
}, De = class extends d {
|
|
3389
3389
|
#e;
|
|
3390
3390
|
constructor() {
|
|
3391
3391
|
super(), this.#e = this.attachInternals(), this.#e.role = "navigation";
|
|
@@ -3395,7 +3395,7 @@ var _e = class extends v(d) {
|
|
|
3395
3395
|
let e = this.getAttribute("aria-label") ?? "Breadcrumb";
|
|
3396
3396
|
this.#e.ariaLabel = e, this.hasAttribute("aria-label") || this.setAttribute("aria-label", e);
|
|
3397
3397
|
}
|
|
3398
|
-
},
|
|
3398
|
+
}, Oe = class extends d {
|
|
3399
3399
|
static observedAttributes = ["href", "current"];
|
|
3400
3400
|
#e;
|
|
3401
3401
|
constructor() {
|
|
@@ -3421,7 +3421,7 @@ var _e = class extends v(d) {
|
|
|
3421
3421
|
#r = (e) => {
|
|
3422
3422
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#n());
|
|
3423
3423
|
};
|
|
3424
|
-
},
|
|
3424
|
+
}, ke = class extends d {
|
|
3425
3425
|
static observedAttributes = [
|
|
3426
3426
|
"total",
|
|
3427
3427
|
"value",
|
|
@@ -3493,7 +3493,7 @@ var _e = class extends v(d) {
|
|
|
3493
3493
|
setup() {
|
|
3494
3494
|
super.setup();
|
|
3495
3495
|
let e = this.getAttribute("aria-label") ?? "Pagination";
|
|
3496
|
-
this.#e.ariaLabel = e, this.hasAttribute("aria-label") || this.setAttribute("aria-label", e), this.addEffect(
|
|
3496
|
+
this.#e.ariaLabel = e, this.hasAttribute("aria-label") || this.setAttribute("aria-label", e), this.addEffect(g(this, this.#a, this.#e)), this.addEffect(() => {
|
|
3497
3497
|
this.#l();
|
|
3498
3498
|
});
|
|
3499
3499
|
}
|
|
@@ -3544,7 +3544,7 @@ var _e = class extends v(d) {
|
|
|
3544
3544
|
detail: { value: t }
|
|
3545
3545
|
})));
|
|
3546
3546
|
}
|
|
3547
|
-
},
|
|
3547
|
+
}, Ae = class extends d {
|
|
3548
3548
|
static observedAttributes = [
|
|
3549
3549
|
"side",
|
|
3550
3550
|
"no-close-on-escape",
|
|
@@ -3566,7 +3566,7 @@ var _e = class extends v(d) {
|
|
|
3566
3566
|
teardown() {
|
|
3567
3567
|
this.#e.destroy(), super.teardown();
|
|
3568
3568
|
}
|
|
3569
|
-
},
|
|
3569
|
+
}, je = class extends d {
|
|
3570
3570
|
static observedAttributes = ["disabled"];
|
|
3571
3571
|
#e;
|
|
3572
3572
|
#t = t(!1);
|
|
@@ -3589,12 +3589,12 @@ var _e = class extends v(d) {
|
|
|
3589
3589
|
orientation: "vertical"
|
|
3590
3590
|
});
|
|
3591
3591
|
let e = this.getAttribute("aria-label") ?? "Tree";
|
|
3592
|
-
this.#e.ariaLabel = e, this.hasAttribute("aria-label") || this.setAttribute("aria-label", e), this.addEffect(
|
|
3592
|
+
this.#e.ariaLabel = e, this.hasAttribute("aria-label") || this.setAttribute("aria-label", e), this.addEffect(g(this, this.#t, this.#e));
|
|
3593
3593
|
}
|
|
3594
3594
|
teardown() {
|
|
3595
3595
|
this.#n.destroy(), super.teardown();
|
|
3596
3596
|
}
|
|
3597
|
-
},
|
|
3597
|
+
}, Me = class extends d {
|
|
3598
3598
|
static observedAttributes = [
|
|
3599
3599
|
"expanded",
|
|
3600
3600
|
"selected",
|
|
@@ -3614,7 +3614,7 @@ var _e = class extends v(d) {
|
|
|
3614
3614
|
this.#r.value = e, this.toggleAttribute("disabled", e);
|
|
3615
3615
|
}
|
|
3616
3616
|
setup() {
|
|
3617
|
-
super.setup(), this.addEffect(
|
|
3617
|
+
super.setup(), this.addEffect(g(this, this.#r, this.#e)), this.deferChildren(() => {
|
|
3618
3618
|
this.#i(), this.#a();
|
|
3619
3619
|
}), this.addEventListener("click", this.#o), this.addEventListener("keydown", this.#s);
|
|
3620
3620
|
}
|
|
@@ -3676,7 +3676,7 @@ var _e = class extends v(d) {
|
|
|
3676
3676
|
break;
|
|
3677
3677
|
}
|
|
3678
3678
|
};
|
|
3679
|
-
},
|
|
3679
|
+
}, Ne = class extends d {
|
|
3680
3680
|
static observedAttributes = [
|
|
3681
3681
|
"direction",
|
|
3682
3682
|
"controls",
|
|
@@ -3698,7 +3698,7 @@ var _e = class extends v(d) {
|
|
|
3698
3698
|
#o = t(0);
|
|
3699
3699
|
#s = t(!1);
|
|
3700
3700
|
#c = null;
|
|
3701
|
-
#l =
|
|
3701
|
+
#l = null;
|
|
3702
3702
|
#u = null;
|
|
3703
3703
|
#d = [];
|
|
3704
3704
|
#f = !1;
|
|
@@ -3749,7 +3749,7 @@ var _e = class extends v(d) {
|
|
|
3749
3749
|
}
|
|
3750
3750
|
}
|
|
3751
3751
|
setup() {
|
|
3752
|
-
super.setup();
|
|
3752
|
+
super.setup(), this.#l = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
3753
3753
|
let e = document.createElement("div");
|
|
3754
3754
|
e.setAttribute("part", "track"), e.id = r("ss-track"), e.setAttribute("tabindex", "0");
|
|
3755
3755
|
let t = [];
|
|
@@ -3770,7 +3770,7 @@ var _e = class extends v(d) {
|
|
|
3770
3770
|
s.id = r("ss-live"), s.setAttribute("aria-live", "polite"), s.setAttribute("aria-atomic", "true"), s.setAttribute("data-visually-hidden", ""), this.appendChild(s), this.#i = s, this.setAttribute("aria-roledescription", "carousel"), this.hasAttribute("aria-label") || this.setAttribute("aria-label", "Slideshow"), this.#v(this.getAttribute("per-view")), this.#o.value = t.length, this.#y(t), this.#b(t.length), this.#S(t), t.length > 0 && t[0].toggleAttribute("active", !0), this.addEffect(() => {
|
|
3771
3771
|
let e = this.#a.value, t = this.#o.value;
|
|
3772
3772
|
this.#C(e), this.#w(e, t), this.#i && (this.#i.textContent = `Slide ${e + 1} of ${t}`);
|
|
3773
|
-
}), this.addEffect(
|
|
3773
|
+
}), this.addEffect(g(this, this.#s, this.#_)), i.addEventListener("click", this.#D), a.addEventListener("click", this.#O), e.addEventListener("keydown", this.#P), e.addEventListener("pointerdown", this.#j), this.addEventListener("mouseenter", this.#k), this.addEventListener("mouseleave", this.#A), this.addEventListener("focusin", this.#k), this.addEventListener("focusout", this.#A), this.hasAttribute("autoplay") && this.#T();
|
|
3774
3774
|
}
|
|
3775
3775
|
teardown() {
|
|
3776
3776
|
this.#E(), this.#u?.disconnect(), this.#u = null, this.#n?.removeEventListener("click", this.#D), this.#r?.removeEventListener("click", this.#O), this.#e?.removeEventListener("keydown", this.#P), this.#e?.removeEventListener("pointerdown", this.#j), this.removeEventListener("mouseenter", this.#k), this.removeEventListener("mouseleave", this.#A), this.removeEventListener("focusin", this.#k), this.removeEventListener("focusout", this.#A), this.#e = null, this.#t?.removeEventListener("click", this.#x), this.#t && (this.#t.innerHTML = ""), this.#t = null, this.#n = null, this.#r = null, this.#i = null, this.#d = [], super.teardown();
|
|
@@ -3834,7 +3834,7 @@ var _e = class extends v(d) {
|
|
|
3834
3834
|
this.#n.disabled = !n && e === 0, this.#r.disabled = !n && e === t - 1;
|
|
3835
3835
|
}
|
|
3836
3836
|
#T() {
|
|
3837
|
-
if (this.#l
|
|
3837
|
+
if (this.#l?.matches) return;
|
|
3838
3838
|
this.#E();
|
|
3839
3839
|
let e = parseInt(this.getAttribute("interval") ?? "5000", 10) || 5e3;
|
|
3840
3840
|
this.#c = setInterval(() => this.next(), e);
|
|
@@ -3852,7 +3852,7 @@ var _e = class extends v(d) {
|
|
|
3852
3852
|
this.#c !== null && (clearInterval(this.#c), this.#c = null);
|
|
3853
3853
|
};
|
|
3854
3854
|
#A = () => {
|
|
3855
|
-
this.hasAttribute("autoplay") && !this.#l
|
|
3855
|
+
this.hasAttribute("autoplay") && !this.#l?.matches && this.#c === null && this.#T();
|
|
3856
3856
|
};
|
|
3857
3857
|
#j = (e) => {
|
|
3858
3858
|
if (e.button !== 0 || e.pointerType === "touch") return;
|
|
@@ -3889,17 +3889,17 @@ var _e = class extends v(d) {
|
|
|
3889
3889
|
break;
|
|
3890
3890
|
}
|
|
3891
3891
|
};
|
|
3892
|
-
},
|
|
3892
|
+
}, Pe = class extends d {
|
|
3893
3893
|
setup() {
|
|
3894
3894
|
super.setup(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1");
|
|
3895
3895
|
}
|
|
3896
|
-
},
|
|
3896
|
+
}, Fe = class extends d {
|
|
3897
3897
|
static observedAttributes = ["value", "disabled"];
|
|
3898
3898
|
#e;
|
|
3899
3899
|
#t;
|
|
3900
3900
|
#n;
|
|
3901
3901
|
constructor() {
|
|
3902
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "navigation", this.#t =
|
|
3902
|
+
super(), this.#e = this.attachInternals(), this.#e.role = "navigation", this.#t = _(this, "disabled", { type: "boolean" });
|
|
3903
3903
|
}
|
|
3904
3904
|
get value() {
|
|
3905
3905
|
return this.#n?.listValue.value ?? null;
|
|
@@ -3915,7 +3915,7 @@ var _e = class extends v(d) {
|
|
|
3915
3915
|
}
|
|
3916
3916
|
attributeChangedCallback(e, t, n) {
|
|
3917
3917
|
if (t !== n) {
|
|
3918
|
-
if (
|
|
3918
|
+
if (v({ disabled: this.#t }, e, n)) {
|
|
3919
3919
|
super.attributeChangedCallback?.(e, t, n);
|
|
3920
3920
|
return;
|
|
3921
3921
|
}
|
|
@@ -3939,12 +3939,12 @@ var _e = class extends v(d) {
|
|
|
3939
3939
|
deferChildren: (e) => this.deferChildren(e)
|
|
3940
3940
|
});
|
|
3941
3941
|
let e = this.getAttribute("value");
|
|
3942
|
-
e !== null && (this.#n.listValue.value = e), this.addEffect(
|
|
3942
|
+
e !== null && (this.#n.listValue.value = e), this.addEffect(g(this, this.#t.signal, this.#e));
|
|
3943
3943
|
}
|
|
3944
3944
|
teardown() {
|
|
3945
3945
|
this.#n.destroy(), super.teardown();
|
|
3946
3946
|
}
|
|
3947
|
-
},
|
|
3947
|
+
}, Ie = class extends d {
|
|
3948
3948
|
static observedAttributes = [
|
|
3949
3949
|
"value",
|
|
3950
3950
|
"disabled",
|
|
@@ -3955,7 +3955,7 @@ var _e = class extends v(d) {
|
|
|
3955
3955
|
#n;
|
|
3956
3956
|
#r = t("");
|
|
3957
3957
|
constructor() {
|
|
3958
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "option", this.#n =
|
|
3958
|
+
super(), this.#e = this.attachInternals(), this.#e.role = "option", this.#n = _(this, "disabled", { type: "boolean" });
|
|
3959
3959
|
}
|
|
3960
3960
|
get value() {
|
|
3961
3961
|
return this.#t.value;
|
|
@@ -3977,7 +3977,7 @@ var _e = class extends v(d) {
|
|
|
3977
3977
|
}
|
|
3978
3978
|
attributeChangedCallback(e, t, n) {
|
|
3979
3979
|
if (t !== n) {
|
|
3980
|
-
if (
|
|
3980
|
+
if (v({ disabled: this.#n }, e, n)) {
|
|
3981
3981
|
super.attributeChangedCallback?.(e, t, n);
|
|
3982
3982
|
return;
|
|
3983
3983
|
}
|
|
@@ -3993,7 +3993,7 @@ var _e = class extends v(d) {
|
|
|
3993
3993
|
}
|
|
3994
3994
|
}
|
|
3995
3995
|
setup() {
|
|
3996
|
-
super.setup(), this.addEffect(
|
|
3996
|
+
super.setup(), this.addEffect(g(this, this.#n.signal, this.#e)), this.addEventListener("click", this.#i);
|
|
3997
3997
|
}
|
|
3998
3998
|
teardown() {
|
|
3999
3999
|
this.removeEventListener("click", this.#i), super.teardown();
|
|
@@ -4008,7 +4008,7 @@ var _e = class extends v(d) {
|
|
|
4008
4008
|
}
|
|
4009
4009
|
}));
|
|
4010
4010
|
};
|
|
4011
|
-
},
|
|
4011
|
+
}, Le = class extends d {
|
|
4012
4012
|
static observedAttributes = ["open"];
|
|
4013
4013
|
#e = t(!0);
|
|
4014
4014
|
#t = null;
|
|
@@ -4060,7 +4060,7 @@ var _e = class extends v(d) {
|
|
|
4060
4060
|
let e = this.#t.open;
|
|
4061
4061
|
this.#e.value = e, this.toggleAttribute("open", e);
|
|
4062
4062
|
};
|
|
4063
|
-
},
|
|
4063
|
+
}, Re = class extends d {
|
|
4064
4064
|
constructor() {
|
|
4065
4065
|
super();
|
|
4066
4066
|
let e = this.attachInternals();
|
|
@@ -4071,7 +4071,7 @@ var _e = class extends v(d) {
|
|
|
4071
4071
|
let e = this.closest("ui-nav-group");
|
|
4072
4072
|
e && e.setAttribute("aria-labelledby", this.id);
|
|
4073
4073
|
}
|
|
4074
|
-
},
|
|
4074
|
+
}, Y = class extends d {
|
|
4075
4075
|
static observedAttributes = [
|
|
4076
4076
|
"traits",
|
|
4077
4077
|
"for",
|
|
@@ -4083,51 +4083,56 @@ var _e = class extends v(d) {
|
|
|
4083
4083
|
#t = null;
|
|
4084
4084
|
/** Watches for trait option attribute changes on this element */
|
|
4085
4085
|
#n = null;
|
|
4086
|
+
/** Traits requested but not yet registered — retried on registration */
|
|
4087
|
+
#r = /* @__PURE__ */ new Set();
|
|
4088
|
+
#i = null;
|
|
4086
4089
|
connectedCallback() {
|
|
4087
4090
|
this.setup();
|
|
4088
4091
|
}
|
|
4089
4092
|
setup() {
|
|
4090
|
-
super.setup(), this.#
|
|
4093
|
+
super.setup(), this.#a(), this.#p();
|
|
4091
4094
|
}
|
|
4092
4095
|
teardown() {
|
|
4093
|
-
this.#
|
|
4096
|
+
this.#f(), this.#t?.disconnect(), this.#t = null, this.#n?.disconnect(), this.#n = null, this.#i?.(), this.#i = null, this.#r.clear(), super.teardown();
|
|
4094
4097
|
}
|
|
4095
4098
|
attributeChangedCallback(e, t, n) {
|
|
4096
|
-
super.attributeChangedCallback(e, t, n), this.isConnected && (e === "traits" || e === "for" || e === "provides") && (this.#
|
|
4099
|
+
super.attributeChangedCallback(e, t, n), this.isConnected && (e === "traits" || e === "for" || e === "provides") && (this.#f(), this.#t?.disconnect(), this.#t = null, this.#a());
|
|
4097
4100
|
}
|
|
4098
|
-
#
|
|
4101
|
+
#a() {
|
|
4099
4102
|
if (this.getAttribute("provides") !== null) return;
|
|
4100
4103
|
let e = this.getAttribute("traits");
|
|
4101
4104
|
if (!e) return;
|
|
4102
4105
|
let t = this.getAttribute("for");
|
|
4103
|
-
t === null ? this.#
|
|
4106
|
+
t === null ? this.#o(e) : this.#s(e, t), this.#r.size > 0 && !this.#i && (this.#i = h((e) => {
|
|
4107
|
+
this.#r.has(e) && (this.#r.delete(e), this.#a(), this.#r.size === 0 && (this.#i?.(), this.#i = null));
|
|
4108
|
+
}));
|
|
4104
4109
|
}
|
|
4105
|
-
#
|
|
4106
|
-
let t = this.#
|
|
4107
|
-
t && this.#
|
|
4110
|
+
#o(e) {
|
|
4111
|
+
let t = this.#u();
|
|
4112
|
+
t && this.#l(t, e);
|
|
4108
4113
|
}
|
|
4109
|
-
#
|
|
4114
|
+
#s(e, t) {
|
|
4110
4115
|
let n = this.querySelectorAll(t);
|
|
4111
|
-
for (let t of n) this.#
|
|
4116
|
+
for (let t of n) this.#l(t, e);
|
|
4112
4117
|
this.#t = new MutationObserver(() => {
|
|
4113
|
-
this.#
|
|
4118
|
+
this.#c(e, t);
|
|
4114
4119
|
}), this.#t.observe(this, {
|
|
4115
4120
|
childList: !0,
|
|
4116
4121
|
subtree: !0
|
|
4117
4122
|
});
|
|
4118
4123
|
}
|
|
4119
|
-
#
|
|
4124
|
+
#c(e, t) {
|
|
4120
4125
|
let n = new Set(this.querySelectorAll(t));
|
|
4121
|
-
for (let [e, t] of this.#e) n.has(e) || (this.#
|
|
4122
|
-
for (let t of n) this.#e.has(t) || this.#
|
|
4126
|
+
for (let [e, t] of this.#e) n.has(e) || (this.#d(e, t), this.#e.delete(e));
|
|
4127
|
+
for (let t of n) this.#e.has(t) || this.#l(t, e);
|
|
4123
4128
|
}
|
|
4124
|
-
#
|
|
4129
|
+
#l(e, t) {
|
|
4125
4130
|
let n = t.split(/\s+/).filter(Boolean), r = this.#e.get(e) ?? /* @__PURE__ */ new Map();
|
|
4126
4131
|
for (let t of n) {
|
|
4127
4132
|
if (r.has(t)) continue;
|
|
4128
4133
|
let n = i(t);
|
|
4129
4134
|
if (!n) {
|
|
4130
|
-
|
|
4135
|
+
this.#r.add(t);
|
|
4131
4136
|
continue;
|
|
4132
4137
|
}
|
|
4133
4138
|
for (let [e] of r) if (i(e)?.conflicts?.includes(t) || n.conflicts?.includes(e)) {
|
|
@@ -4139,23 +4144,23 @@ var _e = class extends v(d) {
|
|
|
4139
4144
|
}
|
|
4140
4145
|
this.#e.set(e, r);
|
|
4141
4146
|
}
|
|
4142
|
-
#
|
|
4147
|
+
#u() {
|
|
4143
4148
|
for (let e of this.children) if (e instanceof HTMLElement) return e;
|
|
4144
4149
|
return null;
|
|
4145
4150
|
}
|
|
4146
|
-
#
|
|
4151
|
+
#d(e, t) {
|
|
4147
4152
|
for (let [e, n] of t) {
|
|
4148
4153
|
let t = i(e);
|
|
4149
4154
|
t && t.destroy(n);
|
|
4150
4155
|
}
|
|
4151
4156
|
t.clear();
|
|
4152
4157
|
}
|
|
4153
|
-
#
|
|
4154
|
-
for (let [e, t] of this.#e) this.#
|
|
4158
|
+
#f() {
|
|
4159
|
+
for (let [e, t] of this.#e) this.#d(e, t);
|
|
4155
4160
|
this.#e.clear();
|
|
4156
4161
|
}
|
|
4157
4162
|
/** Watch trait option attributes (e.g. draggable-axis) on this element */
|
|
4158
|
-
#
|
|
4163
|
+
#p() {
|
|
4159
4164
|
this.#n = new MutationObserver((e) => {
|
|
4160
4165
|
for (let t of e) {
|
|
4161
4166
|
if (!t.attributeName || t.attributeName === "traits" || t.attributeName === "for" || t.attributeName === "provides") continue;
|
|
@@ -4171,7 +4176,7 @@ var _e = class extends v(d) {
|
|
|
4171
4176
|
}
|
|
4172
4177
|
}), this.#n.observe(this, { attributes: !0 });
|
|
4173
4178
|
}
|
|
4174
|
-
},
|
|
4179
|
+
}, ze = class extends d {
|
|
4175
4180
|
static observedAttributes = [
|
|
4176
4181
|
"disabled",
|
|
4177
4182
|
"no-enter-submit",
|
|
@@ -4207,7 +4212,7 @@ var _e = class extends v(d) {
|
|
|
4207
4212
|
}
|
|
4208
4213
|
}
|
|
4209
4214
|
setup() {
|
|
4210
|
-
super.setup(), this.addEffect(
|
|
4215
|
+
super.setup(), this.addEffect(g(this, this.#t, this.#e)), this.deferChildren(() => {
|
|
4211
4216
|
this.#i(), this.addEffect(() => {
|
|
4212
4217
|
let e = this.#t.value;
|
|
4213
4218
|
this.#n && this.#n.toggleAttribute("disabled", e), this.#r && (e ? this.#r.setAttribute("disabled", "") : this.#o());
|
|
@@ -4251,7 +4256,7 @@ var _e = class extends v(d) {
|
|
|
4251
4256
|
detail: { value: e }
|
|
4252
4257
|
})) && !this.hasAttribute("no-auto-clear") && (this.value = "", this.#r?.setAttribute("disabled", ""));
|
|
4253
4258
|
}
|
|
4254
|
-
},
|
|
4259
|
+
}, Be = class extends d {
|
|
4255
4260
|
static observedAttributes = ["interactive", "href"];
|
|
4256
4261
|
setup() {
|
|
4257
4262
|
super.setup(), this.hasAttribute("interactive") && (this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEventListener("click", this.#e), this.addEventListener("keydown", this.#t));
|
|
@@ -4266,7 +4271,7 @@ var _e = class extends v(d) {
|
|
|
4266
4271
|
#t = (e) => {
|
|
4267
4272
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#e());
|
|
4268
4273
|
};
|
|
4269
|
-
},
|
|
4274
|
+
}, Ve = class extends d {
|
|
4270
4275
|
static observedAttributes = [
|
|
4271
4276
|
"collapsible",
|
|
4272
4277
|
"collapsed",
|
|
@@ -4285,7 +4290,7 @@ var _e = class extends v(d) {
|
|
|
4285
4290
|
#e = () => {
|
|
4286
4291
|
this.hasAttribute("collapsible") && this.toggleAttribute("collapsed");
|
|
4287
4292
|
};
|
|
4288
|
-
},
|
|
4293
|
+
}, He = class extends d {
|
|
4289
4294
|
#e;
|
|
4290
4295
|
#t;
|
|
4291
4296
|
constructor() {
|
|
@@ -4300,7 +4305,7 @@ var _e = class extends v(d) {
|
|
|
4300
4305
|
teardown() {
|
|
4301
4306
|
this.#t.destroy(), super.teardown();
|
|
4302
4307
|
}
|
|
4303
|
-
},
|
|
4308
|
+
}, Ue = class extends d {
|
|
4304
4309
|
#e = null;
|
|
4305
4310
|
setup() {
|
|
4306
4311
|
super.setup();
|
|
@@ -4315,7 +4320,7 @@ var _e = class extends v(d) {
|
|
|
4315
4320
|
teardown() {
|
|
4316
4321
|
this.#e?.destroy(), this.#e = null, super.teardown();
|
|
4317
4322
|
}
|
|
4318
|
-
},
|
|
4323
|
+
}, We = class extends d {
|
|
4319
4324
|
#e = null;
|
|
4320
4325
|
#t = !1;
|
|
4321
4326
|
setup() {
|
|
@@ -4332,7 +4337,7 @@ var _e = class extends v(d) {
|
|
|
4332
4337
|
#r = () => {
|
|
4333
4338
|
this.#t = !1, this.#e?.syncPopover(!1);
|
|
4334
4339
|
};
|
|
4335
|
-
},
|
|
4340
|
+
}, Ge = class extends d {
|
|
4336
4341
|
#e = null;
|
|
4337
4342
|
get open() {
|
|
4338
4343
|
return this.hasAttribute("open");
|
|
@@ -4356,7 +4361,7 @@ var _e = class extends v(d) {
|
|
|
4356
4361
|
this.#e?.destroy(), this.#e = null, super.teardown();
|
|
4357
4362
|
}
|
|
4358
4363
|
}, X = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Set();
|
|
4359
|
-
function
|
|
4364
|
+
function Ke(e, t) {
|
|
4360
4365
|
X.set(e, t), Z.forEach((t) => t(e));
|
|
4361
4366
|
}
|
|
4362
4367
|
function Q(e) {
|
|
@@ -4371,7 +4376,7 @@ function $(e) {
|
|
|
4371
4376
|
* @attr {string} size - Icon size override
|
|
4372
4377
|
* @attr {string} aria-label - Accessible label (sets role="img" when present)
|
|
4373
4378
|
*/
|
|
4374
|
-
var
|
|
4379
|
+
var qe = class extends d {
|
|
4375
4380
|
static observedAttributes = [
|
|
4376
4381
|
"name",
|
|
4377
4382
|
"size",
|
|
@@ -4402,4 +4407,4 @@ var Ke = class extends d {
|
|
|
4402
4407
|
}));
|
|
4403
4408
|
}
|
|
4404
4409
|
};
|
|
4405
|
-
export {
|
|
4410
|
+
export { N as $, xe as A, fe as B, Oe as C, _ as Ct, we as D, Te as E, q as F, H as G, ue as H, _e as I, R as J, B as K, he as L, ye as M, J as N, Ce as O, ve as P, P as Q, me as R, ke as S, y as St, Ee as T, g as Tt, U, de as V, V as W, I as X, L as Y, F as Z, Pe as _, ee as _t, Ge as a, D as at, je as b, x as bt, He as c, le as ct, ze as d, oe as dt, M as et, Y as f, ae as ft, Fe as g, te as gt, Ie as h, ne as ht, Ke as i, O as it, be as j, Se as k, Ve as l, ce as lt, Le as m, re as mt, Q as n, A as nt, We as o, E as ot, Re as p, ie as pt, z as q, $ as r, k as rt, Ue as s, T as st, qe as t, j as tt, Be as u, se as ut, Ne as v, w as vt, De as w, v as wt, Ae as x, S as xt, Me as y, C as yt, pe as z };
|