@nonoun/native-ui 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components-lean.css +53 -0
- package/dist/components.css +53 -0
- package/dist/custom-elements.json +5013 -5013
- package/dist/define.js +62 -0
- package/dist/dialog-controller.js +30 -154
- package/dist/inspector.css +231 -0
- package/dist/inspector.d.ts +7 -0
- package/dist/inspector.d.ts.map +1 -0
- package/dist/inspector.js +591 -0
- package/dist/kernel.js +182 -181
- package/dist/native-ui-lean.css +53 -0
- package/dist/native-ui.css +53 -0
- package/dist/native-ui.js +7 -5
- package/dist/nav/inspector/build-inspector.d.ts +8 -0
- package/dist/nav/inspector/build-inspector.d.ts.map +1 -0
- package/dist/nav/inspector/ds-color-swatch-element.d.ts +15 -0
- package/dist/nav/inspector/ds-color-swatch-element.d.ts.map +1 -0
- package/dist/nav/inspector/ds-color-swatch.d.ts +3 -0
- package/dist/nav/inspector/ds-color-swatch.d.ts.map +1 -0
- package/dist/nav/inspector/ds-colors-element.d.ts +14 -0
- package/dist/nav/inspector/ds-colors-element.d.ts.map +1 -0
- package/dist/nav/inspector/ds-colors.d.ts +4 -0
- package/dist/nav/inspector/ds-colors.d.ts.map +1 -0
- package/dist/nav/inspector/ds-themes-element.d.ts +13 -0
- package/dist/nav/inspector/ds-themes-element.d.ts.map +1 -0
- package/dist/nav/inspector/ds-themes.d.ts +4 -0
- package/dist/nav/inspector/ds-themes.d.ts.map +1 -0
- package/dist/nav/inspector/ds-variable-element.d.ts +19 -0
- package/dist/nav/inspector/ds-variable-element.d.ts.map +1 -0
- package/dist/nav/inspector/ds-variable.d.ts +4 -0
- package/dist/nav/inspector/ds-variable.d.ts.map +1 -0
- package/dist/nav/inspector/index.d.ts +9 -0
- package/dist/nav/inspector/index.d.ts.map +1 -0
- package/dist/register-all.js +1 -1
- package/dist/register-all2.js +25 -24
- package/dist/traits.js +5 -3
- package/dist/ui-element.js +128 -0
- package/dist/ui-icon-element.js +158 -156
- package/dist/uid.js +3 -63
- package/package.json +9 -3
package/dist/ui-icon-element.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "./uid.js";
|
|
2
|
+
import { i as t, n, r } from "./define.js";
|
|
3
|
+
import { a as i, n as a, o, r as s, t as c } from "./ui-element.js";
|
|
4
|
+
import { a as l, c as u, n as d, o as f, r as p, s as m, t as h } from "./dialog-controller.js";
|
|
3
5
|
function g(e, t, n, r) {
|
|
4
6
|
let i;
|
|
5
7
|
return () => {
|
|
@@ -137,20 +139,20 @@ var x = class {
|
|
|
137
139
|
#n;
|
|
138
140
|
selectedItem;
|
|
139
141
|
empty;
|
|
140
|
-
constructor(
|
|
141
|
-
this.data = t([]), this.query = t(""), this.#e = t(
|
|
142
|
+
constructor(e = {}) {
|
|
143
|
+
this.data = t([]), this.query = t(""), this.#e = t(e.filterFn ?? b), this.#t = t(e.sortFn ?? null), this.#n = t(e.multiple ?? !1), this.activeIndex = t(e.initialActiveIndex ?? -1), this.value = t(null), this.selected = t(/* @__PURE__ */ new Set()), this.filtered = r(() => {
|
|
142
144
|
let e = this.data.value, t = this.query.value, n = this.#e.value;
|
|
143
145
|
return t ? e.filter((e) => n(e, t)) : e;
|
|
144
|
-
}), this.sorted =
|
|
146
|
+
}), this.sorted = r(() => {
|
|
145
147
|
let e = this.filtered.value, t = this.#t.value;
|
|
146
148
|
return t ? [...e].sort(t) : e;
|
|
147
|
-
}), this.activeItem =
|
|
149
|
+
}), this.activeItem = r(() => {
|
|
148
150
|
let e = this.view.value, t = this.activeIndex.value;
|
|
149
151
|
return t >= 0 && t < e.length ? e[t] : null;
|
|
150
|
-
}), this.selectedItem =
|
|
152
|
+
}), this.selectedItem = r(() => {
|
|
151
153
|
let e = this.value.value;
|
|
152
154
|
return e === null ? null : this.data.value.find((t) => t.value === e) ?? null;
|
|
153
|
-
}), this.empty =
|
|
155
|
+
}), this.empty = r(() => this.view.value.length === 0);
|
|
154
156
|
}
|
|
155
157
|
get view() {
|
|
156
158
|
return this.sorted;
|
|
@@ -263,7 +265,7 @@ async function w(e, t, n, r) {
|
|
|
263
265
|
* @attr {string} type - Form button type: "button" | "submit" | "reset"
|
|
264
266
|
* @fires ui-press - Fired on activation (click, Enter, Space)
|
|
265
267
|
*/
|
|
266
|
-
var ee = class extends y(
|
|
268
|
+
var ee = class extends y(c) {
|
|
267
269
|
static observedAttributes = ["disabled", "type"];
|
|
268
270
|
#e;
|
|
269
271
|
#t;
|
|
@@ -294,7 +296,7 @@ var ee = class extends y(d) {
|
|
|
294
296
|
}, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
295
297
|
}
|
|
296
298
|
setup() {
|
|
297
|
-
super.setup(), this.#r = new
|
|
299
|
+
super.setup(), this.#r = new f(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
300
|
}
|
|
299
301
|
teardown() {
|
|
300
302
|
this.removeEventListener("ui-press", this.#i), this.#r.destroy(), super.teardown();
|
|
@@ -312,7 +314,7 @@ var ee = class extends y(d) {
|
|
|
312
314
|
onFormReset() {
|
|
313
315
|
this.#t.signal.value = this.hasAttribute("disabled");
|
|
314
316
|
}
|
|
315
|
-
}, te = class extends y(
|
|
317
|
+
}, te = class extends y(c) {
|
|
316
318
|
static observedAttributes = [
|
|
317
319
|
"value",
|
|
318
320
|
"placeholder",
|
|
@@ -434,7 +436,7 @@ var ee = class extends y(d) {
|
|
|
434
436
|
detail: { value: this.#a() }
|
|
435
437
|
}));
|
|
436
438
|
};
|
|
437
|
-
}, ne = class extends
|
|
439
|
+
}, ne = class extends c {
|
|
438
440
|
static observedAttributes = [
|
|
439
441
|
"disabled",
|
|
440
442
|
"multiple",
|
|
@@ -493,7 +495,7 @@ var ee = class extends y(d) {
|
|
|
493
495
|
}
|
|
494
496
|
}
|
|
495
497
|
setup() {
|
|
496
|
-
super.setup(), this.#i = new
|
|
498
|
+
super.setup(), this.#i = new d(this, {
|
|
497
499
|
itemSelector: ":scope ui-option:not([disabled])",
|
|
498
500
|
autoSync: !1,
|
|
499
501
|
orientation: "vertical",
|
|
@@ -528,7 +530,7 @@ var ee = class extends y(d) {
|
|
|
528
530
|
let e = this.#r.activeIndex.value;
|
|
529
531
|
return this.querySelectorAll(":scope ui-option:not([disabled])")[e] ?? null;
|
|
530
532
|
}
|
|
531
|
-
}, re = class extends
|
|
533
|
+
}, re = class extends c {
|
|
532
534
|
static observedAttributes = [
|
|
533
535
|
"value",
|
|
534
536
|
"disabled",
|
|
@@ -592,24 +594,24 @@ var ee = class extends y(d) {
|
|
|
592
594
|
}
|
|
593
595
|
}));
|
|
594
596
|
};
|
|
595
|
-
}, ie = class extends
|
|
597
|
+
}, ie = class extends c {
|
|
596
598
|
constructor() {
|
|
597
599
|
super();
|
|
598
600
|
let e = this.attachInternals();
|
|
599
601
|
e.role = "presentation";
|
|
600
602
|
}
|
|
601
603
|
setup() {
|
|
602
|
-
super.setup(), this.id ||=
|
|
603
|
-
let
|
|
604
|
-
|
|
604
|
+
super.setup(), this.id ||= e("ogh");
|
|
605
|
+
let t = this.closest("ui-option-group");
|
|
606
|
+
t && t.setAttribute("aria-labelledby", this.id);
|
|
605
607
|
}
|
|
606
|
-
}, ae = class extends
|
|
608
|
+
}, ae = class extends c {
|
|
607
609
|
constructor() {
|
|
608
610
|
super();
|
|
609
611
|
let e = this.attachInternals();
|
|
610
612
|
e.role = "group";
|
|
611
613
|
}
|
|
612
|
-
}, oe = class extends
|
|
614
|
+
}, oe = class extends c {
|
|
613
615
|
static observedAttributes = ["disabled"];
|
|
614
616
|
#e;
|
|
615
617
|
#t = new x({ initialActiveIndex: 0 });
|
|
@@ -700,7 +702,7 @@ var ee = class extends y(d) {
|
|
|
700
702
|
break;
|
|
701
703
|
}
|
|
702
704
|
};
|
|
703
|
-
}, se = class extends
|
|
705
|
+
}, se = class extends c {
|
|
704
706
|
#e = null;
|
|
705
707
|
setup() {
|
|
706
708
|
super.setup(), this.deferChildren(() => {
|
|
@@ -727,13 +729,13 @@ var ee = class extends y(d) {
|
|
|
727
729
|
detail: { value: e }
|
|
728
730
|
}));
|
|
729
731
|
};
|
|
730
|
-
}, ce = class extends
|
|
732
|
+
}, ce = class extends c {
|
|
731
733
|
constructor() {
|
|
732
734
|
super();
|
|
733
735
|
let e = this.attachInternals();
|
|
734
736
|
e.role = "listbox";
|
|
735
737
|
}
|
|
736
|
-
}, le = class extends
|
|
738
|
+
}, le = class extends c {
|
|
737
739
|
static observedAttributes = [
|
|
738
740
|
"value",
|
|
739
741
|
"disabled",
|
|
@@ -802,13 +804,13 @@ var ee = class extends y(d) {
|
|
|
802
804
|
}
|
|
803
805
|
}));
|
|
804
806
|
};
|
|
805
|
-
}, T = class extends
|
|
807
|
+
}, T = class extends c {
|
|
806
808
|
constructor() {
|
|
807
809
|
super();
|
|
808
810
|
let e = this.attachInternals();
|
|
809
811
|
e.role = "group";
|
|
810
812
|
}
|
|
811
|
-
}, E = class extends
|
|
813
|
+
}, E = class extends c {}, D = class extends y(c) {
|
|
812
814
|
static observedAttributes = [
|
|
813
815
|
"checked",
|
|
814
816
|
"indeterminate",
|
|
@@ -877,7 +879,7 @@ var ee = class extends y(d) {
|
|
|
877
879
|
}
|
|
878
880
|
}
|
|
879
881
|
setup() {
|
|
880
|
-
super.setup(), this.#o = new
|
|
882
|
+
super.setup(), this.#o = new f(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
883
|
let e = this.#t.value, t = this.#n.value ? "mixed" : e ? "true" : "false";
|
|
882
884
|
this.setAttribute("aria-checked", t), this.#e.setFormValue(e ? this.value : null);
|
|
883
885
|
}), this.addEffect(() => {
|
|
@@ -906,7 +908,7 @@ var ee = class extends y(d) {
|
|
|
906
908
|
}
|
|
907
909
|
})));
|
|
908
910
|
};
|
|
909
|
-
}, O = class extends y(
|
|
911
|
+
}, O = class extends y(c) {
|
|
910
912
|
static observedAttributes = [
|
|
911
913
|
"checked",
|
|
912
914
|
"disabled",
|
|
@@ -952,7 +954,7 @@ var ee = class extends y(d) {
|
|
|
952
954
|
}, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
953
955
|
}
|
|
954
956
|
setup() {
|
|
955
|
-
super.setup(), this.#i = new
|
|
957
|
+
super.setup(), this.#i = new f(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
958
|
let e = this.#t.value;
|
|
957
959
|
this.setAttribute("aria-checked", e ? "true" : "false"), this.#e.setFormValue(e ? this.value : null);
|
|
958
960
|
}), this.addEventListener("ui-press", this.#a);
|
|
@@ -976,7 +978,7 @@ var ee = class extends y(d) {
|
|
|
976
978
|
}
|
|
977
979
|
})));
|
|
978
980
|
};
|
|
979
|
-
}, k = class extends
|
|
981
|
+
}, k = class extends c {
|
|
980
982
|
static observedAttributes = ["value", "disabled"];
|
|
981
983
|
#e;
|
|
982
984
|
#t;
|
|
@@ -1003,7 +1005,7 @@ var ee = class extends y(d) {
|
|
|
1003
1005
|
t !== n && (v({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
1004
1006
|
}
|
|
1005
1007
|
setup() {
|
|
1006
|
-
super.setup(), this.setAttribute("aria-checked", "false"), this.#n = new
|
|
1008
|
+
super.setup(), this.setAttribute("aria-checked", "false"), this.#n = new f(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
1009
|
}
|
|
1008
1010
|
teardown() {
|
|
1009
1011
|
this.removeEventListener("click", this.#r), this.removeEventListener("keydown", this.#i), this.#n.destroy(), super.teardown();
|
|
@@ -1028,7 +1030,7 @@ var ee = class extends y(d) {
|
|
|
1028
1030
|
}
|
|
1029
1031
|
})));
|
|
1030
1032
|
};
|
|
1031
|
-
}, A = class extends y(
|
|
1033
|
+
}, A = class extends y(c) {
|
|
1032
1034
|
static observedAttributes = [
|
|
1033
1035
|
"value",
|
|
1034
1036
|
"disabled",
|
|
@@ -1088,7 +1090,7 @@ var ee = class extends y(d) {
|
|
|
1088
1090
|
}
|
|
1089
1091
|
}
|
|
1090
1092
|
setup() {
|
|
1091
|
-
super.setup(), this.#r = this.getAttribute("value"), this.#n.value = this.hasAttribute("required"), this.#i = new
|
|
1093
|
+
super.setup(), this.#r = this.getAttribute("value"), this.#n.value = this.hasAttribute("required"), this.#i = new d(this, {
|
|
1092
1094
|
itemSelector: ":scope ui-radio:not([disabled])",
|
|
1093
1095
|
ariaAttr: "aria-checked",
|
|
1094
1096
|
orientation: "vertical",
|
|
@@ -1123,7 +1125,7 @@ var ee = class extends y(d) {
|
|
|
1123
1125
|
onFormReset() {
|
|
1124
1126
|
this.#i && (this.#i.listValue.value = this.#r), this.#r === null ? this.removeAttribute("value") : this.setAttribute("value", this.#r);
|
|
1125
1127
|
}
|
|
1126
|
-
}, j = class extends y(
|
|
1128
|
+
}, j = class extends y(c) {
|
|
1127
1129
|
static observedAttributes = [
|
|
1128
1130
|
"value",
|
|
1129
1131
|
"disabled",
|
|
@@ -1179,7 +1181,7 @@ var ee = class extends y(d) {
|
|
|
1179
1181
|
}
|
|
1180
1182
|
}
|
|
1181
1183
|
setup() {
|
|
1182
|
-
super.setup(), this.#r = this.getAttribute("value"), this.#i = new
|
|
1184
|
+
super.setup(), this.#r = this.getAttribute("value"), this.#i = new d(this, {
|
|
1183
1185
|
itemSelector: ":scope > ui-segment:not([disabled])",
|
|
1184
1186
|
ariaAttr: "aria-checked",
|
|
1185
1187
|
orientation: "horizontal",
|
|
@@ -1224,7 +1226,7 @@ var ee = class extends y(d) {
|
|
|
1224
1226
|
}
|
|
1225
1227
|
this.style.setProperty("--_indicator-index", `${e}`), this.style.setProperty("--_segment-count", `${t}`), this.#e.states.add("ready");
|
|
1226
1228
|
}
|
|
1227
|
-
}, M = class extends
|
|
1229
|
+
}, M = class extends c {
|
|
1228
1230
|
static observedAttributes = ["value", "disabled"];
|
|
1229
1231
|
#e;
|
|
1230
1232
|
#t;
|
|
@@ -1251,7 +1253,7 @@ var ee = class extends y(d) {
|
|
|
1251
1253
|
t !== n && (v({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
1252
1254
|
}
|
|
1253
1255
|
setup() {
|
|
1254
|
-
super.setup(), this.#n = new
|
|
1256
|
+
super.setup(), this.#n = new f(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
1257
|
}
|
|
1256
1258
|
teardown() {
|
|
1257
1259
|
this.removeEventListener("ui-press", this.#r), this.#n.destroy(), super.teardown();
|
|
@@ -1266,7 +1268,7 @@ var ee = class extends y(d) {
|
|
|
1266
1268
|
}
|
|
1267
1269
|
}));
|
|
1268
1270
|
};
|
|
1269
|
-
}, N = class extends
|
|
1271
|
+
}, N = class extends c {
|
|
1270
1272
|
static observedAttributes = [
|
|
1271
1273
|
"placement",
|
|
1272
1274
|
"delay",
|
|
@@ -1303,7 +1305,7 @@ var ee = class extends y(d) {
|
|
|
1303
1305
|
t !== n && (e === "disabled" && (this.#n.value = n !== null), super.attributeChangedCallback?.(e, t, n));
|
|
1304
1306
|
}
|
|
1305
1307
|
setup() {
|
|
1306
|
-
super.setup(), this.addEffect(g(this, this.#n, this.#e)), this.#i = this.parentElement, this.#i && (this.#a =
|
|
1308
|
+
super.setup(), this.addEffect(g(this, this.#n, this.#e)), this.#i = this.parentElement, this.#i && (this.#a = e("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 ||= e("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
1309
|
this.#n.value && this.#t.value && (this.#l(), this.#t.value = !1);
|
|
1308
1310
|
}), this.addEffect(() => {
|
|
1309
1311
|
if (this.#t.value) try {
|
|
@@ -1331,7 +1333,7 @@ var ee = class extends y(d) {
|
|
|
1331
1333
|
#l() {
|
|
1332
1334
|
this.#r !== null && (clearTimeout(this.#r), this.#r = null);
|
|
1333
1335
|
}
|
|
1334
|
-
}, P = class extends
|
|
1336
|
+
}, P = class extends c {
|
|
1335
1337
|
static observedAttributes = ["multiple", "disabled"];
|
|
1336
1338
|
#e = t(!1);
|
|
1337
1339
|
get multiple() {
|
|
@@ -1364,7 +1366,7 @@ var ee = class extends y(d) {
|
|
|
1364
1366
|
let r = this.querySelectorAll(":scope > ui-accordion-item[open]");
|
|
1365
1367
|
for (let e of r) e !== n && (e.open = !1);
|
|
1366
1368
|
};
|
|
1367
|
-
}, F = class extends
|
|
1369
|
+
}, F = class extends c {
|
|
1368
1370
|
static observedAttributes = ["open", "disabled"];
|
|
1369
1371
|
#e = t(!1);
|
|
1370
1372
|
#t = t(!1);
|
|
@@ -1413,7 +1415,7 @@ var ee = class extends y(d) {
|
|
|
1413
1415
|
let e = this.#n.open;
|
|
1414
1416
|
this.#e.value = e, this.toggleAttribute("open", e);
|
|
1415
1417
|
};
|
|
1416
|
-
}, I = class extends
|
|
1418
|
+
}, I = class extends c {
|
|
1417
1419
|
static observedAttributes = ["no-close-on-escape", "no-close-on-backdrop"];
|
|
1418
1420
|
#e;
|
|
1419
1421
|
get open() {
|
|
@@ -1426,12 +1428,12 @@ var ee = class extends y(d) {
|
|
|
1426
1428
|
this.#e.close();
|
|
1427
1429
|
}
|
|
1428
1430
|
setup() {
|
|
1429
|
-
super.setup(), this.#e = new
|
|
1431
|
+
super.setup(), this.#e = new h(this);
|
|
1430
1432
|
}
|
|
1431
1433
|
teardown() {
|
|
1432
1434
|
this.#e.destroy(), super.teardown();
|
|
1433
1435
|
}
|
|
1434
|
-
}, L = class extends
|
|
1436
|
+
}, L = class extends c {
|
|
1435
1437
|
static observedAttributes = [
|
|
1436
1438
|
"value",
|
|
1437
1439
|
"disabled",
|
|
@@ -1472,7 +1474,7 @@ var ee = class extends y(d) {
|
|
|
1472
1474
|
}
|
|
1473
1475
|
}
|
|
1474
1476
|
setup() {
|
|
1475
|
-
super.setup(), this.#n = new
|
|
1477
|
+
super.setup(), this.#n = new d(this, {
|
|
1476
1478
|
itemSelector: ":scope > ui-tab:not([disabled])",
|
|
1477
1479
|
orientation: "horizontal",
|
|
1478
1480
|
autoSync: !0,
|
|
@@ -1503,12 +1505,12 @@ var ee = class extends y(d) {
|
|
|
1503
1505
|
this.#n.destroy(), super.teardown();
|
|
1504
1506
|
}
|
|
1505
1507
|
#r() {
|
|
1506
|
-
let
|
|
1507
|
-
for (let
|
|
1508
|
-
for (let
|
|
1509
|
-
|
|
1510
|
-
let
|
|
1511
|
-
|
|
1508
|
+
let t = this.querySelectorAll(":scope > ui-tab"), n = this.querySelectorAll(":scope > ui-tab-panels > ui-tab-panel"), r = /* @__PURE__ */ new Map();
|
|
1509
|
+
for (let t of n) t.id ||= e("tp"), r.set(t.getAttribute("value") ?? "", t);
|
|
1510
|
+
for (let n of t) {
|
|
1511
|
+
n.id ||= e("tab");
|
|
1512
|
+
let t = r.get(n.getAttribute("value") ?? "");
|
|
1513
|
+
t && (n.setAttribute("aria-controls", t.id), t.setAttribute("aria-labelledby", n.id));
|
|
1512
1514
|
}
|
|
1513
1515
|
}
|
|
1514
1516
|
#i(e, t) {
|
|
@@ -1518,7 +1520,7 @@ var ee = class extends y(d) {
|
|
|
1518
1520
|
}
|
|
1519
1521
|
this.style.setProperty("--_indicator-index", `${e}`), this.style.setProperty("--_tab-count", `${t}`), this.#e.states.add("ready");
|
|
1520
1522
|
}
|
|
1521
|
-
}, R = class extends
|
|
1523
|
+
}, R = class extends c {
|
|
1522
1524
|
static observedAttributes = ["value", "disabled"];
|
|
1523
1525
|
#e;
|
|
1524
1526
|
#t;
|
|
@@ -1545,7 +1547,7 @@ var ee = class extends y(d) {
|
|
|
1545
1547
|
t !== n && (v({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
1546
1548
|
}
|
|
1547
1549
|
setup() {
|
|
1548
|
-
super.setup(), this.#n = new
|
|
1550
|
+
super.setup(), this.#n = new f(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
1551
|
}
|
|
1550
1552
|
teardown() {
|
|
1551
1553
|
this.removeEventListener("ui-press", this.#r), this.#n.destroy(), super.teardown();
|
|
@@ -1560,7 +1562,7 @@ var ee = class extends y(d) {
|
|
|
1560
1562
|
}
|
|
1561
1563
|
}));
|
|
1562
1564
|
};
|
|
1563
|
-
}, z = class extends
|
|
1565
|
+
}, z = class extends c {
|
|
1564
1566
|
static observedAttributes = ["value"];
|
|
1565
1567
|
#e;
|
|
1566
1568
|
constructor() {
|
|
@@ -1575,7 +1577,7 @@ var ee = class extends y(d) {
|
|
|
1575
1577
|
attributeChangedCallback(e, t, n) {
|
|
1576
1578
|
t !== n && super.attributeChangedCallback?.(e, t, n);
|
|
1577
1579
|
}
|
|
1578
|
-
}, B = class extends
|
|
1580
|
+
}, B = class extends c {
|
|
1579
1581
|
#e;
|
|
1580
1582
|
constructor() {
|
|
1581
1583
|
super(), this.#e = this.attachInternals(), this.#e.role = "presentation";
|
|
@@ -1701,7 +1703,7 @@ var U = class {
|
|
|
1701
1703
|
#n;
|
|
1702
1704
|
#r = !1;
|
|
1703
1705
|
constructor(e, t) {
|
|
1704
|
-
this.#t = t, this.#n = e, this.#e = new
|
|
1706
|
+
this.#t = t, this.#n = e, this.#e = new u(e, {
|
|
1705
1707
|
selector: "ui-table-row:not([colspan])",
|
|
1706
1708
|
axis: "vertical",
|
|
1707
1709
|
mode: "slot"
|
|
@@ -1731,7 +1733,7 @@ var U = class {
|
|
|
1731
1733
|
destroy() {
|
|
1732
1734
|
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
1735
|
}
|
|
1734
|
-
}, ue = class extends
|
|
1736
|
+
}, ue = class extends c {
|
|
1735
1737
|
static observedAttributes = [
|
|
1736
1738
|
"selectable",
|
|
1737
1739
|
"resizable",
|
|
@@ -1822,17 +1824,17 @@ var U = class {
|
|
|
1822
1824
|
}
|
|
1823
1825
|
}));
|
|
1824
1826
|
};
|
|
1825
|
-
}, de = class extends
|
|
1827
|
+
}, de = class extends c {
|
|
1826
1828
|
#e;
|
|
1827
1829
|
constructor() {
|
|
1828
1830
|
super(), this.#e = this.attachInternals(), this.#e.role = "rowgroup";
|
|
1829
1831
|
}
|
|
1830
|
-
}, fe = class extends
|
|
1832
|
+
}, fe = class extends c {
|
|
1831
1833
|
#e;
|
|
1832
1834
|
constructor() {
|
|
1833
1835
|
super(), this.#e = this.attachInternals(), this.#e.role = "rowgroup";
|
|
1834
1836
|
}
|
|
1835
|
-
}, pe = class extends
|
|
1837
|
+
}, pe = class extends c {
|
|
1836
1838
|
static observedAttributes = ["value", "selected"];
|
|
1837
1839
|
#e;
|
|
1838
1840
|
constructor() {
|
|
@@ -1863,12 +1865,12 @@ var U = class {
|
|
|
1863
1865
|
detail: { value: this.value }
|
|
1864
1866
|
}));
|
|
1865
1867
|
};
|
|
1866
|
-
}, me = class extends
|
|
1868
|
+
}, me = class extends c {
|
|
1867
1869
|
#e;
|
|
1868
1870
|
constructor() {
|
|
1869
1871
|
super(), this.#e = this.attachInternals(), this.#e.role = "cell";
|
|
1870
1872
|
}
|
|
1871
|
-
}, he = class extends
|
|
1873
|
+
}, he = class extends c {
|
|
1872
1874
|
static observedAttributes = ["sort", "sortable"];
|
|
1873
1875
|
#e;
|
|
1874
1876
|
constructor() {
|
|
@@ -1927,9 +1929,9 @@ var q = class {
|
|
|
1927
1929
|
months;
|
|
1928
1930
|
years;
|
|
1929
1931
|
title;
|
|
1930
|
-
constructor(
|
|
1931
|
-
let
|
|
1932
|
-
this.view = t("day"), this.focusedYear = t(i.getFullYear()), this.focusedMonth = t(i.getMonth()), this.value = t(
|
|
1932
|
+
constructor(e = {}) {
|
|
1933
|
+
let n = /* @__PURE__ */ new Date(), i = G(e.value ?? null) ?? n;
|
|
1934
|
+
this.view = t("day"), this.focusedYear = t(i.getFullYear()), this.focusedMonth = t(i.getMonth()), this.value = t(e.value ?? null), this.rangeStart = t(e.rangeStart ?? null), this.rangeEnd = t(e.rangeEnd ?? null), this.min = t(e.min ?? null), this.max = t(e.max ?? null), this.days = r(() => this.#e()), this.months = r(() => this.#t()), this.years = r(() => this.#n()), this.title = r(() => this.#r());
|
|
1933
1935
|
}
|
|
1934
1936
|
prevMonth() {
|
|
1935
1937
|
n(() => {
|
|
@@ -2062,7 +2064,7 @@ function _e(e = {}) {
|
|
|
2062
2064
|
* @fires ui-change - Fired on single date selection with `{ value }` detail
|
|
2063
2065
|
* @fires ui-range-select - Fired on range commit with `{ start, end }` detail
|
|
2064
2066
|
*/
|
|
2065
|
-
var ve = class extends y(
|
|
2067
|
+
var ve = class extends y(c) {
|
|
2066
2068
|
static observedAttributes = [
|
|
2067
2069
|
"value",
|
|
2068
2070
|
"min",
|
|
@@ -2303,7 +2305,7 @@ var ve = class extends y(d) {
|
|
|
2303
2305
|
this.open.value = !1, this.value.value = null, this.label.value = "";
|
|
2304
2306
|
});
|
|
2305
2307
|
}
|
|
2306
|
-
}, ye = class extends y(
|
|
2308
|
+
}, ye = class extends y(c) {
|
|
2307
2309
|
static observedAttributes = [
|
|
2308
2310
|
"value",
|
|
2309
2311
|
"disabled",
|
|
@@ -2427,7 +2429,7 @@ var ve = class extends y(d) {
|
|
|
2427
2429
|
}
|
|
2428
2430
|
}
|
|
2429
2431
|
setup() {
|
|
2430
|
-
if (super.setup(), this.#i = new
|
|
2432
|
+
if (super.setup(), this.#i = new p(this), this.#c = this.hasAttribute("options") || this.hasAttribute("src"), this.#c) {
|
|
2431
2433
|
let e = this.getAttribute("options");
|
|
2432
2434
|
e && (this.#a.value = this.#f(e)), this.#o.value = this.getAttribute("src"), this.#s.value = this.getAttribute("placeholder") ?? "", this.#m();
|
|
2433
2435
|
}
|
|
@@ -2540,7 +2542,7 @@ var ve = class extends y(d) {
|
|
|
2540
2542
|
onFormDisabled(e) {
|
|
2541
2543
|
this.#n.value = e;
|
|
2542
2544
|
}
|
|
2543
|
-
}, be = class extends y(
|
|
2545
|
+
}, be = class extends y(c) {
|
|
2544
2546
|
static observedAttributes = [
|
|
2545
2547
|
"value",
|
|
2546
2548
|
"disabled",
|
|
@@ -2556,7 +2558,7 @@ var ve = class extends y(d) {
|
|
|
2556
2558
|
#r = t(!1);
|
|
2557
2559
|
#i = t(!1);
|
|
2558
2560
|
#a;
|
|
2559
|
-
#o =
|
|
2561
|
+
#o = e("listbox");
|
|
2560
2562
|
#s = null;
|
|
2561
2563
|
#c = t([]);
|
|
2562
2564
|
#l = t(null);
|
|
@@ -2666,40 +2668,40 @@ var ve = class extends y(d) {
|
|
|
2666
2668
|
}
|
|
2667
2669
|
}
|
|
2668
2670
|
setup() {
|
|
2669
|
-
if (super.setup(), this.#a = new
|
|
2671
|
+
if (super.setup(), this.#a = new p(this), this.#d = this.hasAttribute("options") || this.hasAttribute("src"), this.#d) {
|
|
2670
2672
|
let e = this.getAttribute("options");
|
|
2671
2673
|
e && (this.#c.value = this.#m(e)), this.#l.value = this.getAttribute("src"), this.#u.value = this.getAttribute("placeholder") ?? "", this.#g();
|
|
2672
2674
|
}
|
|
2673
|
-
let
|
|
2674
|
-
this.#s =
|
|
2675
|
-
let
|
|
2676
|
-
this.#p =
|
|
2675
|
+
let t = this.querySelector(":scope > ui-input");
|
|
2676
|
+
this.#s = t;
|
|
2677
|
+
let n = this.querySelector(":scope > ui-listbox[popover]");
|
|
2678
|
+
this.#p = n, n?.setAttribute("popover", "manual"), n?.setAttribute("virtual-focus", ""), t && n && (this.#a.wirePopover(t, n), n.id ||= this.#o), t?.setAttribute("role", "combobox"), t?.setAttribute("aria-autocomplete", "list"), t?.setAttribute("aria-controls", n?.id ?? ""), t?.setAttribute("aria-expanded", "false"), this.deferChildren(() => {
|
|
2677
2679
|
if (!this.#d) {
|
|
2678
|
-
let e =
|
|
2680
|
+
let e = n?.querySelectorAll("ui-option") ?? [];
|
|
2679
2681
|
this.#t.data.value = [...e].map((e) => ({
|
|
2680
2682
|
value: e.getAttribute("value") ?? "",
|
|
2681
2683
|
label: e.getAttribute("label") ?? e.textContent?.trim() ?? ""
|
|
2682
2684
|
}));
|
|
2683
2685
|
}
|
|
2684
|
-
let
|
|
2685
|
-
if (
|
|
2686
|
-
let e = this.querySelector(`ui-option[value="${CSS.escape(
|
|
2687
|
-
this.#t.value.value =
|
|
2686
|
+
let r = this.getAttribute("value");
|
|
2687
|
+
if (r) {
|
|
2688
|
+
let e = this.querySelector(`ui-option[value="${CSS.escape(r)}"]`), t = e?.getAttribute("label") ?? e?.textContent?.trim() ?? r;
|
|
2689
|
+
this.#t.value.value = r, this.#t.query.value = t;
|
|
2688
2690
|
}
|
|
2689
2691
|
this.addEffect(() => {
|
|
2690
|
-
let e = this.#t.view.value,
|
|
2691
|
-
for (let e of r) e.toggleAttribute("hidden", !
|
|
2692
|
+
let e = this.#t.view.value, t = new Set(e.map((e) => e.value)), r = n?.querySelectorAll("ui-option") ?? [];
|
|
2693
|
+
for (let e of r) e.toggleAttribute("hidden", !t.has(e.getAttribute("value") ?? ""));
|
|
2692
2694
|
}), this.addEffect(() => {
|
|
2693
2695
|
this.#t.view.value;
|
|
2694
|
-
let
|
|
2695
|
-
for (let e = 0; e < i.length; e++) i[e].toggleAttribute("active", e ===
|
|
2696
|
-
let a = i[
|
|
2697
|
-
a ? (a.scrollIntoView({ block: "nearest" }), a.id ||=
|
|
2696
|
+
let r = this.#t.activeIndex.value, i = [...n?.querySelectorAll("ui-option:not([hidden]):not([disabled])") ?? []];
|
|
2697
|
+
for (let e = 0; e < i.length; e++) i[e].toggleAttribute("active", e === r);
|
|
2698
|
+
let a = i[r];
|
|
2699
|
+
a ? (a.scrollIntoView({ block: "nearest" }), a.id ||= e("opt"), t?.setAttribute("aria-activedescendant", a.id)) : t?.removeAttribute("aria-activedescendant");
|
|
2698
2700
|
}), this.addEffect(() => {
|
|
2699
|
-
let e = this.#t.value.value,
|
|
2700
|
-
for (let
|
|
2701
|
-
let
|
|
2702
|
-
|
|
2701
|
+
let e = this.#t.value.value, t = n?.querySelectorAll("ui-option") ?? [];
|
|
2702
|
+
for (let n of t) {
|
|
2703
|
+
let t = n.getAttribute("value") === e;
|
|
2704
|
+
n.setAttribute("aria-selected", String(t));
|
|
2703
2705
|
}
|
|
2704
2706
|
}), this.#d && (this.addEffect(() => {
|
|
2705
2707
|
let e = this.#c.value;
|
|
@@ -2708,22 +2710,22 @@ var ve = class extends y(d) {
|
|
|
2708
2710
|
let e = this.#l.value;
|
|
2709
2711
|
e && this.#h(e);
|
|
2710
2712
|
}), this.addEffect(() => {
|
|
2711
|
-
let
|
|
2712
|
-
|
|
2713
|
+
let e = this.#u.value;
|
|
2714
|
+
t && (e ? t.setAttribute("placeholder", e) : t.removeAttribute("placeholder"));
|
|
2713
2715
|
}));
|
|
2714
2716
|
}), this.addEffect(g(this, this.#r, this.#e)), this.addEffect(() => {
|
|
2715
|
-
let
|
|
2716
|
-
|
|
2717
|
+
let e = this.#r.value;
|
|
2718
|
+
t && t.toggleAttribute("disabled", e), e && this.#n.value && (this.#n.value = !1);
|
|
2717
2719
|
}), this.#i.value = this.hasAttribute("required"), this.addEffect(() => {
|
|
2718
2720
|
let e = this.#t.value.value;
|
|
2719
2721
|
this.#i.value && (e === null || e === "") ? this.#e.setValidity({ valueMissing: !0 }, "Please select an option.", this) : this.#e.setValidity({});
|
|
2720
2722
|
}), this.addEffect(() => {
|
|
2721
|
-
let
|
|
2722
|
-
this.#a.syncPopover(
|
|
2723
|
+
let e = this.#n.value;
|
|
2724
|
+
this.#a.syncPopover(e), t?.setAttribute("aria-expanded", String(e));
|
|
2723
2725
|
}), this.addEffect(() => {
|
|
2724
2726
|
let e = this.#t.value.value;
|
|
2725
2727
|
this.#e.setFormValue(e ?? ""), e == null ? this.removeAttribute("value") : this.setAttribute("value", e);
|
|
2726
|
-
}),
|
|
2728
|
+
}), t?.addEventListener("focus", this.#v), this.addEventListener("ui-input", this.#y), this.addEventListener("ui-change", this.#b), this.addEventListener("ui-select", this.#x), this.addEventListener("ui-dismiss", this.#S), t?.addEventListener("keydown", this.#C);
|
|
2727
2729
|
}
|
|
2728
2730
|
#v = () => {
|
|
2729
2731
|
!this.#r.value && !this.#n.value && (this.#n.value = !0);
|
|
@@ -2794,11 +2796,11 @@ var ve = class extends y(d) {
|
|
|
2794
2796
|
onFormDisabled(e) {
|
|
2795
2797
|
this.#r.value = e;
|
|
2796
2798
|
}
|
|
2797
|
-
}, xe = class extends
|
|
2799
|
+
}, xe = class extends c {
|
|
2798
2800
|
static observedAttributes = ["disabled", "required"];
|
|
2799
|
-
#e =
|
|
2800
|
-
#t =
|
|
2801
|
-
#n =
|
|
2801
|
+
#e = e("field-label");
|
|
2802
|
+
#t = e("field-desc");
|
|
2803
|
+
#n = e("field-err");
|
|
2802
2804
|
#r = null;
|
|
2803
2805
|
setup() {
|
|
2804
2806
|
super.setup(), this.deferChildren(() => {
|
|
@@ -2854,7 +2856,7 @@ var ve = class extends y(d) {
|
|
|
2854
2856
|
#u = () => {
|
|
2855
2857
|
this.removeAttribute("invalid");
|
|
2856
2858
|
};
|
|
2857
|
-
}, Se = class extends y(
|
|
2859
|
+
}, Se = class extends y(c) {
|
|
2858
2860
|
static observedAttributes = [
|
|
2859
2861
|
"value",
|
|
2860
2862
|
"placeholder",
|
|
@@ -2978,7 +2980,7 @@ var ve = class extends y(d) {
|
|
|
2978
2980
|
detail: { value: this.textContent ?? "" }
|
|
2979
2981
|
}));
|
|
2980
2982
|
};
|
|
2981
|
-
}, Ce = class extends y(
|
|
2983
|
+
}, Ce = class extends y(c) {
|
|
2982
2984
|
static observedAttributes = [
|
|
2983
2985
|
"value",
|
|
2984
2986
|
"min",
|
|
@@ -3148,7 +3150,7 @@ var ve = class extends y(d) {
|
|
|
3148
3150
|
detail: { value: this.#n.value }
|
|
3149
3151
|
}));
|
|
3150
3152
|
}
|
|
3151
|
-
}, we = class extends y(
|
|
3153
|
+
}, we = class extends y(c) {
|
|
3152
3154
|
static observedAttributes = [
|
|
3153
3155
|
"value",
|
|
3154
3156
|
"length",
|
|
@@ -3318,7 +3320,7 @@ var ve = class extends y(d) {
|
|
|
3318
3320
|
detail: { value: this.value }
|
|
3319
3321
|
}));
|
|
3320
3322
|
}
|
|
3321
|
-
}, Te = class extends
|
|
3323
|
+
}, Te = class extends c {
|
|
3322
3324
|
static observedAttributes = [
|
|
3323
3325
|
"src",
|
|
3324
3326
|
"name",
|
|
@@ -3364,7 +3366,7 @@ var ve = class extends y(d) {
|
|
|
3364
3366
|
let e = this.getAttribute("name");
|
|
3365
3367
|
e ? this.textContent = this.#r(e) : this.textContent = "?";
|
|
3366
3368
|
};
|
|
3367
|
-
}, Ee = class extends
|
|
3369
|
+
}, Ee = class extends c {
|
|
3368
3370
|
static observedAttributes = ["max"];
|
|
3369
3371
|
#e;
|
|
3370
3372
|
#t = "";
|
|
@@ -3385,7 +3387,7 @@ var ve = class extends y(d) {
|
|
|
3385
3387
|
let n = parseInt(this.#t, 10);
|
|
3386
3388
|
isNaN(n) || (n > t ? this.textContent = `${t}+` : this.textContent = this.#t);
|
|
3387
3389
|
}
|
|
3388
|
-
}, De = class extends
|
|
3390
|
+
}, De = class extends c {
|
|
3389
3391
|
#e;
|
|
3390
3392
|
constructor() {
|
|
3391
3393
|
super(), this.#e = this.attachInternals(), this.#e.role = "navigation";
|
|
@@ -3395,7 +3397,7 @@ var ve = class extends y(d) {
|
|
|
3395
3397
|
let e = this.getAttribute("aria-label") ?? "Breadcrumb";
|
|
3396
3398
|
this.#e.ariaLabel = e, this.hasAttribute("aria-label") || this.setAttribute("aria-label", e);
|
|
3397
3399
|
}
|
|
3398
|
-
}, Oe = class extends
|
|
3400
|
+
}, Oe = class extends c {
|
|
3399
3401
|
static observedAttributes = ["href", "current"];
|
|
3400
3402
|
#e;
|
|
3401
3403
|
constructor() {
|
|
@@ -3421,7 +3423,7 @@ var ve = class extends y(d) {
|
|
|
3421
3423
|
#r = (e) => {
|
|
3422
3424
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#n());
|
|
3423
3425
|
};
|
|
3424
|
-
}, ke = class extends
|
|
3426
|
+
}, ke = class extends c {
|
|
3425
3427
|
static observedAttributes = [
|
|
3426
3428
|
"total",
|
|
3427
3429
|
"value",
|
|
@@ -3544,7 +3546,7 @@ var ve = class extends y(d) {
|
|
|
3544
3546
|
detail: { value: t }
|
|
3545
3547
|
})));
|
|
3546
3548
|
}
|
|
3547
|
-
}, Ae = class extends
|
|
3549
|
+
}, Ae = class extends c {
|
|
3548
3550
|
static observedAttributes = [
|
|
3549
3551
|
"side",
|
|
3550
3552
|
"no-close-on-escape",
|
|
@@ -3561,12 +3563,12 @@ var ve = class extends y(d) {
|
|
|
3561
3563
|
this.#e.close();
|
|
3562
3564
|
}
|
|
3563
3565
|
setup() {
|
|
3564
|
-
super.setup(), this.#e = new
|
|
3566
|
+
super.setup(), this.#e = new h(this, { contentTarget: () => document.createElement("ui-drawer-panel") });
|
|
3565
3567
|
}
|
|
3566
3568
|
teardown() {
|
|
3567
3569
|
this.#e.destroy(), super.teardown();
|
|
3568
3570
|
}
|
|
3569
|
-
}, je = class extends
|
|
3571
|
+
}, je = class extends c {
|
|
3570
3572
|
static observedAttributes = ["disabled"];
|
|
3571
3573
|
#e;
|
|
3572
3574
|
#t = t(!1);
|
|
@@ -3584,7 +3586,7 @@ var ve = class extends y(d) {
|
|
|
3584
3586
|
t !== n && (e === "disabled" && (this.#t.value = n !== null), super.attributeChangedCallback?.(e, t, n));
|
|
3585
3587
|
}
|
|
3586
3588
|
setup() {
|
|
3587
|
-
super.setup(), this.#n = new
|
|
3589
|
+
super.setup(), this.#n = new l(this, {
|
|
3588
3590
|
selector: ":scope ui-tree-item > [slot=\"label\"]",
|
|
3589
3591
|
orientation: "vertical"
|
|
3590
3592
|
});
|
|
@@ -3594,7 +3596,7 @@ var ve = class extends y(d) {
|
|
|
3594
3596
|
teardown() {
|
|
3595
3597
|
this.#n.destroy(), super.teardown();
|
|
3596
3598
|
}
|
|
3597
|
-
}, Me = class extends
|
|
3599
|
+
}, Me = class extends c {
|
|
3598
3600
|
static observedAttributes = [
|
|
3599
3601
|
"expanded",
|
|
3600
3602
|
"selected",
|
|
@@ -3676,7 +3678,7 @@ var ve = class extends y(d) {
|
|
|
3676
3678
|
break;
|
|
3677
3679
|
}
|
|
3678
3680
|
};
|
|
3679
|
-
}, Ne = class extends
|
|
3681
|
+
}, Ne = class extends c {
|
|
3680
3682
|
static observedAttributes = [
|
|
3681
3683
|
"direction",
|
|
3682
3684
|
"controls",
|
|
@@ -3750,27 +3752,27 @@ var ve = class extends y(d) {
|
|
|
3750
3752
|
}
|
|
3751
3753
|
setup() {
|
|
3752
3754
|
super.setup(), this.#l = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
3753
|
-
let
|
|
3754
|
-
|
|
3755
|
-
let
|
|
3755
|
+
let t = document.createElement("div");
|
|
3756
|
+
t.setAttribute("part", "track"), t.id = e("ss-track"), t.setAttribute("tabindex", "0");
|
|
3757
|
+
let n = [];
|
|
3756
3758
|
for (; this.firstChild;) {
|
|
3757
|
-
let
|
|
3758
|
-
|
|
3759
|
+
let e = this.firstChild;
|
|
3760
|
+
t.appendChild(e), e instanceof HTMLElement && e.tagName.toLowerCase() === "ui-slide" && n.push(e);
|
|
3759
3761
|
}
|
|
3760
|
-
this.appendChild(
|
|
3761
|
-
let
|
|
3762
|
-
|
|
3762
|
+
this.appendChild(t), this.#e = t, this.#d = n;
|
|
3763
|
+
let r = document.createElement("div");
|
|
3764
|
+
r.setAttribute("part", "controls");
|
|
3763
3765
|
let i = document.createElement("button");
|
|
3764
3766
|
i.setAttribute("part", "prev"), i.setAttribute("aria-label", "Previous slide"), i.setAttribute("type", "button"), i.innerHTML = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 256 256\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z\" fill=\"currentColor\"/></svg>";
|
|
3765
3767
|
let a = document.createElement("button");
|
|
3766
|
-
a.setAttribute("part", "next"), a.setAttribute("aria-label", "Next slide"), a.setAttribute("type", "button"), a.innerHTML = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 256 256\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z\" fill=\"currentColor\"/></svg>",
|
|
3768
|
+
a.setAttribute("part", "next"), a.setAttribute("aria-label", "Next slide"), a.setAttribute("type", "button"), a.innerHTML = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 256 256\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z\" fill=\"currentColor\"/></svg>", r.appendChild(i), r.appendChild(a), this.appendChild(r), this.#n = i, this.#r = a;
|
|
3767
3769
|
let o = document.createElement("div");
|
|
3768
3770
|
o.setAttribute("part", "indicators"), o.setAttribute("aria-hidden", "true"), this.appendChild(o), this.#t = o;
|
|
3769
3771
|
let s = document.createElement("div");
|
|
3770
|
-
s.id =
|
|
3772
|
+
s.id = e("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 = n.length, this.#y(n), this.#b(n.length), this.#S(n), n.length > 0 && n[0].toggleAttribute("active", !0), this.addEffect(() => {
|
|
3771
3773
|
let e = this.#a.value, t = this.#o.value;
|
|
3772
3774
|
this.#C(e), this.#w(e, t), this.#i && (this.#i.textContent = `Slide ${e + 1} of ${t}`);
|
|
3773
|
-
}), this.addEffect(g(this, this.#s, this.#_)), i.addEventListener("click", this.#D), a.addEventListener("click", this.#O),
|
|
3775
|
+
}), this.addEffect(g(this, this.#s, this.#_)), i.addEventListener("click", this.#D), a.addEventListener("click", this.#O), t.addEventListener("keydown", this.#P), t.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
3776
|
}
|
|
3775
3777
|
teardown() {
|
|
3776
3778
|
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();
|
|
@@ -3779,11 +3781,11 @@ var ve = class extends y(d) {
|
|
|
3779
3781
|
let t = Math.max(1, parseInt(e ?? "1", 10) || 1);
|
|
3780
3782
|
this.style.setProperty("--_per-view", String(t));
|
|
3781
3783
|
}
|
|
3782
|
-
#y(
|
|
3783
|
-
let
|
|
3784
|
-
for (let
|
|
3785
|
-
let i =
|
|
3786
|
-
i.setAttribute("role", "group"), i.setAttribute("aria-roledescription", "slide"), i.setAttribute("aria-label", `${
|
|
3784
|
+
#y(t) {
|
|
3785
|
+
let n = t.length;
|
|
3786
|
+
for (let r = 0; r < n; r++) {
|
|
3787
|
+
let i = t[r];
|
|
3788
|
+
i.setAttribute("role", "group"), i.setAttribute("aria-roledescription", "slide"), i.setAttribute("aria-label", `${r + 1} of ${n}`), i.id ||= e("slide");
|
|
3787
3789
|
}
|
|
3788
3790
|
}
|
|
3789
3791
|
#b(e) {
|
|
@@ -3889,11 +3891,11 @@ var ve = class extends y(d) {
|
|
|
3889
3891
|
break;
|
|
3890
3892
|
}
|
|
3891
3893
|
};
|
|
3892
|
-
}, Pe = class extends
|
|
3894
|
+
}, Pe = class extends c {
|
|
3893
3895
|
setup() {
|
|
3894
3896
|
super.setup(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1");
|
|
3895
3897
|
}
|
|
3896
|
-
}, Fe = class extends
|
|
3898
|
+
}, Fe = class extends c {
|
|
3897
3899
|
static observedAttributes = ["value", "disabled"];
|
|
3898
3900
|
#e;
|
|
3899
3901
|
#t;
|
|
@@ -3923,7 +3925,7 @@ var ve = class extends y(d) {
|
|
|
3923
3925
|
}
|
|
3924
3926
|
}
|
|
3925
3927
|
setup() {
|
|
3926
|
-
super.setup(), this.#n = new
|
|
3928
|
+
super.setup(), this.#n = new d(this, {
|
|
3927
3929
|
itemSelector: ":scope ui-nav-item:not([disabled])",
|
|
3928
3930
|
orientation: "vertical",
|
|
3929
3931
|
ariaAttr: "aria-current",
|
|
@@ -3944,7 +3946,7 @@ var ve = class extends y(d) {
|
|
|
3944
3946
|
teardown() {
|
|
3945
3947
|
this.#n.destroy(), super.teardown();
|
|
3946
3948
|
}
|
|
3947
|
-
}, Ie = class extends
|
|
3949
|
+
}, Ie = class extends c {
|
|
3948
3950
|
static observedAttributes = [
|
|
3949
3951
|
"value",
|
|
3950
3952
|
"disabled",
|
|
@@ -4008,7 +4010,7 @@ var ve = class extends y(d) {
|
|
|
4008
4010
|
}
|
|
4009
4011
|
}));
|
|
4010
4012
|
};
|
|
4011
|
-
}, Le = class extends
|
|
4013
|
+
}, Le = class extends c {
|
|
4012
4014
|
static observedAttributes = ["open"];
|
|
4013
4015
|
#e = t(!0);
|
|
4014
4016
|
#t = null;
|
|
@@ -4060,18 +4062,18 @@ var ve = class extends y(d) {
|
|
|
4060
4062
|
let e = this.#t.open;
|
|
4061
4063
|
this.#e.value = e, this.toggleAttribute("open", e);
|
|
4062
4064
|
};
|
|
4063
|
-
}, Re = class extends
|
|
4065
|
+
}, Re = class extends c {
|
|
4064
4066
|
constructor() {
|
|
4065
4067
|
super();
|
|
4066
4068
|
let e = this.attachInternals();
|
|
4067
4069
|
e.role = "presentation";
|
|
4068
4070
|
}
|
|
4069
4071
|
setup() {
|
|
4070
|
-
super.setup(), this.id ||=
|
|
4071
|
-
let
|
|
4072
|
-
|
|
4072
|
+
super.setup(), this.id ||= e("ngh");
|
|
4073
|
+
let t = this.closest("ui-nav-group");
|
|
4074
|
+
t && t.setAttribute("aria-labelledby", this.id);
|
|
4073
4075
|
}
|
|
4074
|
-
}, Y = class extends
|
|
4076
|
+
}, Y = class extends c {
|
|
4075
4077
|
static observedAttributes = [
|
|
4076
4078
|
"traits",
|
|
4077
4079
|
"for",
|
|
@@ -4103,7 +4105,7 @@ var ve = class extends y(d) {
|
|
|
4103
4105
|
let e = this.getAttribute("traits");
|
|
4104
4106
|
if (!e) return;
|
|
4105
4107
|
let t = this.getAttribute("for");
|
|
4106
|
-
t === null ? this.#o(e) : this.#s(e, t), this.#r.size > 0 && !this.#i && (this.#i =
|
|
4108
|
+
t === null ? this.#o(e) : this.#s(e, t), this.#r.size > 0 && !this.#i && (this.#i = o((e) => {
|
|
4107
4109
|
this.#r.has(e) && (this.#r.delete(e), this.#a(), this.#r.size === 0 && (this.#i?.(), this.#i = null));
|
|
4108
4110
|
}));
|
|
4109
4111
|
}
|
|
@@ -4139,8 +4141,8 @@ var ve = class extends y(d) {
|
|
|
4139
4141
|
let n = `[native-ui] Trait conflict: "${t}" and "${e}" are incompatible.`;
|
|
4140
4142
|
console.warn(n);
|
|
4141
4143
|
}
|
|
4142
|
-
let
|
|
4143
|
-
r.set(t,
|
|
4144
|
+
let o = a(this, t), s = n.create(e, o);
|
|
4145
|
+
r.set(t, s);
|
|
4144
4146
|
}
|
|
4145
4147
|
this.#e.set(e, r);
|
|
4146
4148
|
}
|
|
@@ -4168,7 +4170,7 @@ var ve = class extends y(d) {
|
|
|
4168
4170
|
if (!e) continue;
|
|
4169
4171
|
let n = i(e.trait);
|
|
4170
4172
|
if (!n?.update) continue;
|
|
4171
|
-
let r =
|
|
4173
|
+
let r = a(this, e.trait);
|
|
4172
4174
|
for (let [, t] of this.#e) {
|
|
4173
4175
|
let i = t.get(e.trait);
|
|
4174
4176
|
i && n.update(i, r);
|
|
@@ -4176,7 +4178,7 @@ var ve = class extends y(d) {
|
|
|
4176
4178
|
}
|
|
4177
4179
|
}), this.#n.observe(this, { attributes: !0 });
|
|
4178
4180
|
}
|
|
4179
|
-
}, ze = class extends
|
|
4181
|
+
}, ze = class extends c {
|
|
4180
4182
|
static observedAttributes = [
|
|
4181
4183
|
"disabled",
|
|
4182
4184
|
"no-enter-submit",
|
|
@@ -4256,7 +4258,7 @@ var ve = class extends y(d) {
|
|
|
4256
4258
|
detail: { value: e }
|
|
4257
4259
|
})) && !this.hasAttribute("no-auto-clear") && (this.value = "", this.#r?.setAttribute("disabled", ""));
|
|
4258
4260
|
}
|
|
4259
|
-
}, Be = class extends
|
|
4261
|
+
}, Be = class extends c {
|
|
4260
4262
|
static observedAttributes = ["interactive", "href"];
|
|
4261
4263
|
setup() {
|
|
4262
4264
|
super.setup(), this.hasAttribute("interactive") && (this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEventListener("click", this.#e), this.addEventListener("keydown", this.#t));
|
|
@@ -4271,7 +4273,7 @@ var ve = class extends y(d) {
|
|
|
4271
4273
|
#t = (e) => {
|
|
4272
4274
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#e());
|
|
4273
4275
|
};
|
|
4274
|
-
}, Ve = class extends
|
|
4276
|
+
}, Ve = class extends c {
|
|
4275
4277
|
static observedAttributes = [
|
|
4276
4278
|
"collapsible",
|
|
4277
4279
|
"collapsed",
|
|
@@ -4290,14 +4292,14 @@ var ve = class extends y(d) {
|
|
|
4290
4292
|
#e = () => {
|
|
4291
4293
|
this.hasAttribute("collapsible") && this.toggleAttribute("collapsed");
|
|
4292
4294
|
};
|
|
4293
|
-
}, He = class extends
|
|
4295
|
+
}, He = class extends c {
|
|
4294
4296
|
#e;
|
|
4295
4297
|
#t;
|
|
4296
4298
|
constructor() {
|
|
4297
4299
|
super(), this.#e = this.attachInternals(), this.#e.role = "toolbar";
|
|
4298
4300
|
}
|
|
4299
4301
|
setup() {
|
|
4300
|
-
super.setup(), this.#t = new
|
|
4302
|
+
super.setup(), this.#t = new l(this, {
|
|
4301
4303
|
selector: ":scope > ui-button:not([disabled]), :scope > button:not([disabled])",
|
|
4302
4304
|
orientation: "horizontal"
|
|
4303
4305
|
}), this.hasAttribute("aria-label") || this.setAttribute("aria-label", "Toolbar");
|
|
@@ -4305,12 +4307,12 @@ var ve = class extends y(d) {
|
|
|
4305
4307
|
teardown() {
|
|
4306
4308
|
this.#t.destroy(), super.teardown();
|
|
4307
4309
|
}
|
|
4308
|
-
}, Ue = class extends
|
|
4310
|
+
}, Ue = class extends c {
|
|
4309
4311
|
#e = null;
|
|
4310
4312
|
setup() {
|
|
4311
4313
|
super.setup();
|
|
4312
4314
|
let e = this.querySelector(":scope > [slot=\"sidebar\"]");
|
|
4313
|
-
e?.querySelector(".layout-resize-handle") && (this.#e = new
|
|
4315
|
+
e?.querySelector(".layout-resize-handle") && (this.#e = new m(e, {
|
|
4314
4316
|
handleSelector: ".layout-resize-handle",
|
|
4315
4317
|
axis: "horizontal",
|
|
4316
4318
|
min: 160,
|
|
@@ -4320,13 +4322,13 @@ var ve = class extends y(d) {
|
|
|
4320
4322
|
teardown() {
|
|
4321
4323
|
this.#e?.destroy(), this.#e = null, super.teardown();
|
|
4322
4324
|
}
|
|
4323
|
-
}, We = class extends
|
|
4325
|
+
}, We = class extends c {
|
|
4324
4326
|
#e = null;
|
|
4325
4327
|
#t = !1;
|
|
4326
4328
|
setup() {
|
|
4327
4329
|
super.setup();
|
|
4328
4330
|
let e = this.querySelector(":scope > ui-listbox[popover]");
|
|
4329
|
-
e && (this.#e = new
|
|
4331
|
+
e && (this.#e = new p(this), this.#e.wirePopover(this, e), this.addEventListener("click", this.#n), this.addEventListener("ui-dismiss", this.#r));
|
|
4330
4332
|
}
|
|
4331
4333
|
teardown() {
|
|
4332
4334
|
this.removeEventListener("click", this.#n), this.removeEventListener("ui-dismiss", this.#r), this.#e?.destroy(), this.#e = null, this.#t = !1, super.teardown();
|
|
@@ -4337,7 +4339,7 @@ var ve = class extends y(d) {
|
|
|
4337
4339
|
#r = () => {
|
|
4338
4340
|
this.#t = !1, this.#e?.syncPopover(!1);
|
|
4339
4341
|
};
|
|
4340
|
-
}, Ge = class extends
|
|
4342
|
+
}, Ge = class extends c {
|
|
4341
4343
|
#e = null;
|
|
4342
4344
|
get open() {
|
|
4343
4345
|
return this.hasAttribute("open");
|
|
@@ -4349,7 +4351,7 @@ var ve = class extends y(d) {
|
|
|
4349
4351
|
this.open = !this.open;
|
|
4350
4352
|
}
|
|
4351
4353
|
setup() {
|
|
4352
|
-
super.setup(), this.querySelector(".layout-resize-handle") && (this.#e = new
|
|
4354
|
+
super.setup(), this.querySelector(".layout-resize-handle") && (this.#e = new m(this, {
|
|
4353
4355
|
handleSelector: ".layout-resize-handle",
|
|
4354
4356
|
axis: "horizontal",
|
|
4355
4357
|
min: 280,
|
|
@@ -4376,7 +4378,7 @@ function $(e) {
|
|
|
4376
4378
|
* @attr {string} size - Icon size override
|
|
4377
4379
|
* @attr {string} aria-label - Accessible label (sets role="img" when present)
|
|
4378
4380
|
*/
|
|
4379
|
-
var qe = class extends
|
|
4381
|
+
var qe = class extends c {
|
|
4380
4382
|
static observedAttributes = [
|
|
4381
4383
|
"name",
|
|
4382
4384
|
"size",
|