@nonoun/native-ui 0.3.0 → 0.4.0
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 +20 -941
- package/dist/components.css +20 -948
- package/dist/components.js +66 -498
- package/dist/core.js +121 -38
- package/dist/custom-elements.json +4277 -7050
- package/dist/foundation.css +5 -6
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/kernel.js +208 -208
- package/dist/native-ui-lean.css +25 -947
- package/dist/native-ui.css +25 -954
- package/dist/native-ui.js +4 -4
- package/dist/register-all.js +4 -4
- package/dist/traits/drag-controller.d.ts.map +1 -1
- package/dist/traits.js +3 -3
- package/dist/ui-icon.js +1 -1
- package/package.json +1 -1
- package/dist/components/ui-nav/index.d.ts +0 -6
- package/dist/components/ui-nav/index.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-element.d.ts +0 -20
- package/dist/components/ui-nav/ui-nav-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-group-element.d.ts +0 -24
- package/dist/components/ui-nav/ui-nav-group-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-group-header-element.d.ts +0 -7
- package/dist/components/ui-nav/ui-nav-group-header-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-item-element.d.ts +0 -23
- package/dist/components/ui-nav/ui-nav-item-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav.d.ts +0 -2
- package/dist/components/ui-nav/ui-nav.d.ts.map +0 -1
- package/dist/containers/ui-layout-chat/index.d.ts +0 -3
- package/dist/containers/ui-layout-chat/index.d.ts.map +0 -1
- package/dist/containers/ui-layout-chat/ui-layout-chat-element.d.ts +0 -14
- package/dist/containers/ui-layout-chat/ui-layout-chat-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-chat/ui-layout-chat.d.ts +0 -3
- package/dist/containers/ui-layout-chat/ui-layout-chat.d.ts.map +0 -1
- package/dist/containers/ui-layout-inspector/index.d.ts +0 -3
- package/dist/containers/ui-layout-inspector/index.d.ts.map +0 -1
- package/dist/containers/ui-layout-inspector/ui-layout-inspector-element.d.ts +0 -14
- package/dist/containers/ui-layout-inspector/ui-layout-inspector-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-inspector/ui-layout-inspector.d.ts +0 -3
- package/dist/containers/ui-layout-inspector/ui-layout-inspector.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/index.d.ts +0 -4
- package/dist/containers/ui-layout-sidebar/index.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-element.d.ts +0 -11
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item-element.d.ts +0 -10
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item.d.ts +0 -3
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar.d.ts +0 -4
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar.d.ts.map +0 -1
package/dist/components.js
CHANGED
|
@@ -815,7 +815,7 @@ var H = class {
|
|
|
815
815
|
};
|
|
816
816
|
this.animate && typeof document.startViewTransition == "function" ? document.startViewTransition(() => {
|
|
817
817
|
m(), this.#C();
|
|
818
|
-
}) : m(), this.host.dispatchEvent(new CustomEvent("ui-drag-over", {
|
|
818
|
+
}).finished.catch(() => {}) : m(), this.host.dispatchEvent(new CustomEvent("ui-drag-over", {
|
|
819
819
|
bubbles: !0,
|
|
820
820
|
composed: !0,
|
|
821
821
|
detail: {
|
|
@@ -839,7 +839,7 @@ var H = class {
|
|
|
839
839
|
};
|
|
840
840
|
this.animate && typeof document.startViewTransition == "function" ? document.startViewTransition(() => {
|
|
841
841
|
r(), this.#C();
|
|
842
|
-
}) : r();
|
|
842
|
+
}).finished.catch(() => {}) : r();
|
|
843
843
|
}
|
|
844
844
|
#E = (e) => {
|
|
845
845
|
if (this.#e) {
|
|
@@ -915,89 +915,6 @@ var H = class {
|
|
|
915
915
|
this.#n &&= (this.#n.remove(), null), this.#e = null, this.#s = -1, this.#c = -1, this.#u = null, this.#d = null, this.#f = -1, document.removeEventListener("pointermove", this.#v), document.removeEventListener("pointerup", this.#E), document.removeEventListener("pointercancel", this.#D), document.removeEventListener("keydown", this.#O);
|
|
916
916
|
}
|
|
917
917
|
}, U = class {
|
|
918
|
-
host;
|
|
919
|
-
handleSelector;
|
|
920
|
-
axis;
|
|
921
|
-
min;
|
|
922
|
-
max;
|
|
923
|
-
disabled;
|
|
924
|
-
reverse;
|
|
925
|
-
#e = 0;
|
|
926
|
-
#t = 0;
|
|
927
|
-
#n = 0;
|
|
928
|
-
#r = 0;
|
|
929
|
-
#i = !1;
|
|
930
|
-
#a = !1;
|
|
931
|
-
constructor(e, t) {
|
|
932
|
-
this.host = e, this.handleSelector = t.handleSelector, this.axis = t.axis ?? "horizontal", this.min = t.min ?? 0, this.max = t.max ?? Infinity, this.disabled = t.disabled ?? !1, this.reverse = t.reverse ?? !1, this.attach();
|
|
933
|
-
}
|
|
934
|
-
attach() {
|
|
935
|
-
this.#a || (this.#a = !0, this.host.addEventListener("pointerdown", this.#o));
|
|
936
|
-
}
|
|
937
|
-
detach() {
|
|
938
|
-
this.#a && (this.#a = !1, this.host.removeEventListener("pointerdown", this.#o), this.#d());
|
|
939
|
-
}
|
|
940
|
-
destroy() {
|
|
941
|
-
this.detach();
|
|
942
|
-
}
|
|
943
|
-
#o = (e) => {
|
|
944
|
-
if (e.button !== 0 || this.disabled || !this.handleSelector) return;
|
|
945
|
-
let t = e.target.closest?.(this.handleSelector);
|
|
946
|
-
if (!t || !this.host.contains(t)) return;
|
|
947
|
-
e.preventDefault(), this.#i = !0, this.#e = e.clientX, this.#t = e.clientY;
|
|
948
|
-
let n = this.host.getBoundingClientRect();
|
|
949
|
-
this.#n = n.width, this.#r = n.height, this.host.setAttribute("resizing", ""), this.host.setPointerCapture(e.pointerId), document.addEventListener("pointermove", this.#s), document.addEventListener("pointerup", this.#c), document.addEventListener("pointercancel", this.#l), document.addEventListener("keydown", this.#u), this.host.dispatchEvent(new CustomEvent("ui-resize-start", {
|
|
950
|
-
bubbles: !0,
|
|
951
|
-
composed: !0,
|
|
952
|
-
detail: {
|
|
953
|
-
width: this.#n,
|
|
954
|
-
height: this.#r
|
|
955
|
-
}
|
|
956
|
-
}));
|
|
957
|
-
};
|
|
958
|
-
#s = (e) => {
|
|
959
|
-
if (!this.#i) return;
|
|
960
|
-
let t = this.reverse ? -1 : 1, n = (e.clientX - this.#e) * t, r = (e.clientY - this.#t) * t;
|
|
961
|
-
if (this.axis === "horizontal" || this.axis === "both") {
|
|
962
|
-
let e = Math.min(this.max, Math.max(this.min, this.#n + n));
|
|
963
|
-
this.host.style.width = `${e}px`;
|
|
964
|
-
}
|
|
965
|
-
if (this.axis === "vertical" || this.axis === "both") {
|
|
966
|
-
let e = Math.min(this.max, Math.max(this.min, this.#r + r));
|
|
967
|
-
this.host.style.height = `${e}px`;
|
|
968
|
-
}
|
|
969
|
-
let i = this.host.getBoundingClientRect();
|
|
970
|
-
this.host.dispatchEvent(new CustomEvent("ui-resize-move", {
|
|
971
|
-
bubbles: !0,
|
|
972
|
-
composed: !0,
|
|
973
|
-
detail: {
|
|
974
|
-
width: i.width,
|
|
975
|
-
height: i.height
|
|
976
|
-
}
|
|
977
|
-
}));
|
|
978
|
-
};
|
|
979
|
-
#c = (e) => {
|
|
980
|
-
if (!this.#i) return;
|
|
981
|
-
let t = this.host.getBoundingClientRect();
|
|
982
|
-
this.host.dispatchEvent(new CustomEvent("ui-resize-end", {
|
|
983
|
-
bubbles: !0,
|
|
984
|
-
composed: !0,
|
|
985
|
-
detail: {
|
|
986
|
-
width: t.width,
|
|
987
|
-
height: t.height
|
|
988
|
-
}
|
|
989
|
-
})), this.#d();
|
|
990
|
-
};
|
|
991
|
-
#l = () => {
|
|
992
|
-
this.#i && ((this.axis === "horizontal" || this.axis === "both") && (this.host.style.width = `${this.#n}px`), (this.axis === "vertical" || this.axis === "both") && (this.host.style.height = `${this.#r}px`), this.#d());
|
|
993
|
-
};
|
|
994
|
-
#u = (e) => {
|
|
995
|
-
e.key === "Escape" && this.#i && (e.preventDefault(), (this.axis === "horizontal" || this.axis === "both") && (this.host.style.width = `${this.#n}px`), (this.axis === "vertical" || this.axis === "both") && (this.host.style.height = `${this.#r}px`), this.#d());
|
|
996
|
-
};
|
|
997
|
-
#d() {
|
|
998
|
-
this.#i = !1, this.host.removeAttribute("resizing"), document.removeEventListener("pointermove", this.#s), document.removeEventListener("pointerup", this.#c), document.removeEventListener("pointercancel", this.#l), document.removeEventListener("keydown", this.#u);
|
|
999
|
-
}
|
|
1000
|
-
}, W = class {
|
|
1001
918
|
host;
|
|
1002
919
|
disabled;
|
|
1003
920
|
#e = !1;
|
|
@@ -1044,7 +961,7 @@ var H = class {
|
|
|
1044
961
|
detail: { pointerType: "keyboard" }
|
|
1045
962
|
})));
|
|
1046
963
|
};
|
|
1047
|
-
},
|
|
964
|
+
}, W = class {
|
|
1048
965
|
host;
|
|
1049
966
|
selector;
|
|
1050
967
|
orientation;
|
|
@@ -1098,7 +1015,7 @@ var H = class {
|
|
|
1098
1015
|
let r = e[t];
|
|
1099
1016
|
r && (r.setAttribute("tabindex", "0"), r.focus());
|
|
1100
1017
|
}
|
|
1101
|
-
},
|
|
1018
|
+
}, G = class {
|
|
1102
1019
|
host;
|
|
1103
1020
|
#e = 0;
|
|
1104
1021
|
constructor(e) {
|
|
@@ -1115,13 +1032,13 @@ var H = class {
|
|
|
1115
1032
|
destroy() {
|
|
1116
1033
|
this.#e &&= (cancelAnimationFrame(this.#e), 0), R().dismissStack.remove(this.host);
|
|
1117
1034
|
}
|
|
1118
|
-
},
|
|
1035
|
+
}, K = class {
|
|
1119
1036
|
host;
|
|
1120
1037
|
#e;
|
|
1121
1038
|
#t = null;
|
|
1122
1039
|
#n = null;
|
|
1123
1040
|
constructor(e) {
|
|
1124
|
-
this.host = e, this.#e = new
|
|
1041
|
+
this.host = e, this.#e = new G(e);
|
|
1125
1042
|
}
|
|
1126
1043
|
wirePopover(e, t) {
|
|
1127
1044
|
this.#t = e, this.#n = t;
|
|
@@ -1144,7 +1061,7 @@ var H = class {
|
|
|
1144
1061
|
destroy() {
|
|
1145
1062
|
this.#e.destroy(), this.#t?.style.removeProperty("anchor-name"), this.#t = null, this.#n?.style.removeProperty("position-anchor"), this.#n = null;
|
|
1146
1063
|
}
|
|
1147
|
-
},
|
|
1064
|
+
}, q = class {
|
|
1148
1065
|
host;
|
|
1149
1066
|
listValue = _(null);
|
|
1150
1067
|
itemSelector;
|
|
@@ -1161,7 +1078,7 @@ var H = class {
|
|
|
1161
1078
|
cancelable: !0,
|
|
1162
1079
|
detail: t
|
|
1163
1080
|
}));
|
|
1164
|
-
}), this.#e = new
|
|
1081
|
+
}), this.#e = new W(e, {
|
|
1165
1082
|
selector: this.itemSelector,
|
|
1166
1083
|
orientation: t.orientation ?? "vertical",
|
|
1167
1084
|
wrap: t.wrap ?? !0,
|
|
@@ -1200,7 +1117,7 @@ var H = class {
|
|
|
1200
1117
|
let t = e.detail;
|
|
1201
1118
|
this.onChildSelect(t);
|
|
1202
1119
|
};
|
|
1203
|
-
},
|
|
1120
|
+
}, J = class {
|
|
1204
1121
|
host;
|
|
1205
1122
|
#e = null;
|
|
1206
1123
|
#t;
|
|
@@ -1271,7 +1188,7 @@ var H = class {
|
|
|
1271
1188
|
}, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
1272
1189
|
}
|
|
1273
1190
|
setup() {
|
|
1274
|
-
super.setup(), this.#r = new
|
|
1191
|
+
super.setup(), this.#r = new U(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(j(this, this.#t.signal, this.#e, { manageTabindex: !0 })), this.addEventListener("ui-press", this.#i);
|
|
1275
1192
|
}
|
|
1276
1193
|
teardown() {
|
|
1277
1194
|
this.removeEventListener("ui-press", this.#i), this.#r.destroy(), super.teardown();
|
|
@@ -1479,7 +1396,7 @@ var H = class {
|
|
|
1479
1396
|
}
|
|
1480
1397
|
}
|
|
1481
1398
|
setup() {
|
|
1482
|
-
super.setup(), this.#i = new
|
|
1399
|
+
super.setup(), this.#i = new q(this, {
|
|
1483
1400
|
itemSelector: ":scope ui-option:not([disabled])",
|
|
1484
1401
|
autoSync: !1,
|
|
1485
1402
|
orientation: "vertical",
|
|
@@ -1872,7 +1789,7 @@ var H = class {
|
|
|
1872
1789
|
}
|
|
1873
1790
|
}
|
|
1874
1791
|
setup() {
|
|
1875
|
-
super.setup(), this.#o = new
|
|
1792
|
+
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(j(this, this.#r.signal, this.#e, { manageTabindex: !0 })), this.addEffect(() => {
|
|
1876
1793
|
let e = this.#t.value, t = this.#n.value ? "mixed" : e ? "true" : "false";
|
|
1877
1794
|
this.setAttribute("aria-checked", t), this.#e.setFormValue(e ? this.value : null);
|
|
1878
1795
|
}), this.addEffect(() => {
|
|
@@ -1958,7 +1875,7 @@ var H = class {
|
|
|
1958
1875
|
}, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
1959
1876
|
}
|
|
1960
1877
|
setup() {
|
|
1961
|
-
super.setup(), this.#a = new
|
|
1878
|
+
super.setup(), this.#a = new U(this, { disabled: () => this.disabled }), this.#i = this.hasAttribute("checked"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEffect(j(this, this.#n.signal, this.#e, { manageTabindex: !0 })), this.addEffect(() => {
|
|
1962
1879
|
let e = this.#t.value;
|
|
1963
1880
|
this.setAttribute("aria-checked", e ? "true" : "false"), this.#e.setFormValue(e ? this.value : null);
|
|
1964
1881
|
}), this.addEffect(() => {
|
|
@@ -2014,7 +1931,7 @@ var H = class {
|
|
|
2014
1931
|
t !== n && (N({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
2015
1932
|
}
|
|
2016
1933
|
setup() {
|
|
2017
|
-
super.setup(), this.setAttribute("aria-checked", "false"), this.#n = new
|
|
1934
|
+
super.setup(), this.setAttribute("aria-checked", "false"), this.#n = new U(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(j(this, this.#t.signal, this.#e)), this.addEventListener("click", this.#r), this.addEventListener("keydown", this.#i);
|
|
2018
1935
|
}
|
|
2019
1936
|
teardown() {
|
|
2020
1937
|
this.removeEventListener("click", this.#r), this.removeEventListener("keydown", this.#i), this.#n.destroy(), super.teardown();
|
|
@@ -2099,7 +2016,7 @@ var H = class {
|
|
|
2099
2016
|
}
|
|
2100
2017
|
}
|
|
2101
2018
|
setup() {
|
|
2102
|
-
super.setup(), this.#r = this.getAttribute("value"), this.#n.value = this.hasAttribute("required"), this.#i = new
|
|
2019
|
+
super.setup(), this.#r = this.getAttribute("value"), this.#n.value = this.hasAttribute("required"), this.#i = new q(this, {
|
|
2103
2020
|
itemSelector: ":scope ui-radio:not([disabled])",
|
|
2104
2021
|
ariaAttr: "aria-checked",
|
|
2105
2022
|
orientation: "vertical",
|
|
@@ -2195,7 +2112,7 @@ var H = class {
|
|
|
2195
2112
|
}
|
|
2196
2113
|
}
|
|
2197
2114
|
setup() {
|
|
2198
|
-
super.setup(), this.#r = this.getAttribute("value"), this.#i = new
|
|
2115
|
+
super.setup(), this.#r = this.getAttribute("value"), this.#i = new q(this, {
|
|
2199
2116
|
itemSelector: ":scope > ui-segment:not([disabled])",
|
|
2200
2117
|
ariaAttr: "aria-checked",
|
|
2201
2118
|
orientation: "horizontal",
|
|
@@ -2270,7 +2187,7 @@ var H = class {
|
|
|
2270
2187
|
t !== n && (N({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
2271
2188
|
}
|
|
2272
2189
|
setup() {
|
|
2273
|
-
super.setup(), this.#n = new
|
|
2190
|
+
super.setup(), this.#n = new U(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(j(this, this.#t.signal, this.#e)), this.addEventListener("ui-press", this.#r);
|
|
2274
2191
|
}
|
|
2275
2192
|
teardown() {
|
|
2276
2193
|
this.removeEventListener("ui-press", this.#r), this.#n.destroy(), super.teardown();
|
|
@@ -2457,7 +2374,7 @@ var H = class {
|
|
|
2457
2374
|
this.#e.close();
|
|
2458
2375
|
}
|
|
2459
2376
|
setup() {
|
|
2460
|
-
super.setup(), this.#e = new
|
|
2377
|
+
super.setup(), this.#e = new J(this);
|
|
2461
2378
|
}
|
|
2462
2379
|
teardown() {
|
|
2463
2380
|
this.#e.destroy(), super.teardown();
|
|
@@ -2503,7 +2420,7 @@ var H = class {
|
|
|
2503
2420
|
}
|
|
2504
2421
|
}
|
|
2505
2422
|
setup() {
|
|
2506
|
-
super.setup(), this.#n = new
|
|
2423
|
+
super.setup(), this.#n = new q(this, {
|
|
2507
2424
|
itemSelector: ":scope > ui-tab:not([disabled])",
|
|
2508
2425
|
orientation: "horizontal",
|
|
2509
2426
|
autoSync: !0,
|
|
@@ -2579,7 +2496,7 @@ var H = class {
|
|
|
2579
2496
|
t !== n && (N({ disabled: this.#t }, e, n), super.attributeChangedCallback?.(e, t, n));
|
|
2580
2497
|
}
|
|
2581
2498
|
setup() {
|
|
2582
|
-
super.setup(), this.#n = new
|
|
2499
|
+
super.setup(), this.#n = new U(this, { disabled: () => this.disabled }), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.addEffect(j(this, this.#t.signal, this.#e)), this.addEventListener("ui-press", this.#r);
|
|
2583
2500
|
}
|
|
2584
2501
|
teardown() {
|
|
2585
2502
|
this.removeEventListener("ui-press", this.#r), this.#n.destroy(), super.teardown();
|
|
@@ -2614,7 +2531,7 @@ var H = class {
|
|
|
2614
2531
|
constructor() {
|
|
2615
2532
|
super(), this.#e = this.attachInternals(), this.#e.role = "presentation";
|
|
2616
2533
|
}
|
|
2617
|
-
},
|
|
2534
|
+
}, Y = class {
|
|
2618
2535
|
sortColumn;
|
|
2619
2536
|
sortDirection;
|
|
2620
2537
|
selected;
|
|
@@ -2652,9 +2569,9 @@ var H = class {
|
|
|
2652
2569
|
}
|
|
2653
2570
|
};
|
|
2654
2571
|
function Ne(e = {}) {
|
|
2655
|
-
return new
|
|
2572
|
+
return new Y(e);
|
|
2656
2573
|
}
|
|
2657
|
-
var
|
|
2574
|
+
var X = class {
|
|
2658
2575
|
table;
|
|
2659
2576
|
#e = [];
|
|
2660
2577
|
#t = -1;
|
|
@@ -2731,7 +2648,7 @@ var Pe = class {
|
|
|
2731
2648
|
#m() {
|
|
2732
2649
|
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);
|
|
2733
2650
|
}
|
|
2734
|
-
},
|
|
2651
|
+
}, Pe = class {
|
|
2735
2652
|
#e;
|
|
2736
2653
|
#t;
|
|
2737
2654
|
#n;
|
|
@@ -2767,14 +2684,14 @@ var Pe = class {
|
|
|
2767
2684
|
destroy() {
|
|
2768
2685
|
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();
|
|
2769
2686
|
}
|
|
2770
|
-
},
|
|
2687
|
+
}, Fe = class extends k {
|
|
2771
2688
|
static observedAttributes = [
|
|
2772
2689
|
"selectable",
|
|
2773
2690
|
"resizable",
|
|
2774
2691
|
"reorderable"
|
|
2775
2692
|
];
|
|
2776
2693
|
#e;
|
|
2777
|
-
#t = new
|
|
2694
|
+
#t = new Y();
|
|
2778
2695
|
#n = null;
|
|
2779
2696
|
#r = null;
|
|
2780
2697
|
#i = null;
|
|
@@ -2832,7 +2749,7 @@ var Pe = class {
|
|
|
2832
2749
|
let e = document.createElement("div");
|
|
2833
2750
|
e.className = "table-resize-handle", e.setAttribute("aria-hidden", "true"), e.addEventListener("click", (e) => e.stopPropagation()), t.appendChild(e);
|
|
2834
2751
|
}
|
|
2835
|
-
this.#n = new
|
|
2752
|
+
this.#n = new X(this), this.#n.init();
|
|
2836
2753
|
}
|
|
2837
2754
|
#o() {
|
|
2838
2755
|
let e = this.querySelector(":scope > ui-table-head > ui-table-row");
|
|
@@ -2845,7 +2762,7 @@ var Pe = class {
|
|
|
2845
2762
|
}
|
|
2846
2763
|
#s() {
|
|
2847
2764
|
let e = this.querySelector(":scope > ui-table-body");
|
|
2848
|
-
e && (this.#i = new
|
|
2765
|
+
e && (this.#i = new Pe(e, this));
|
|
2849
2766
|
}
|
|
2850
2767
|
#c = (e) => {
|
|
2851
2768
|
let t = e.detail;
|
|
@@ -2871,17 +2788,17 @@ var Pe = class {
|
|
|
2871
2788
|
}
|
|
2872
2789
|
}));
|
|
2873
2790
|
};
|
|
2874
|
-
},
|
|
2791
|
+
}, Ie = class extends k {
|
|
2875
2792
|
#e;
|
|
2876
2793
|
constructor() {
|
|
2877
2794
|
super(), this.#e = this.attachInternals(), this.#e.role = "rowgroup";
|
|
2878
2795
|
}
|
|
2879
|
-
},
|
|
2796
|
+
}, Le = class extends k {
|
|
2880
2797
|
#e;
|
|
2881
2798
|
constructor() {
|
|
2882
2799
|
super(), this.#e = this.attachInternals(), this.#e.role = "rowgroup";
|
|
2883
2800
|
}
|
|
2884
|
-
},
|
|
2801
|
+
}, Re = class extends k {
|
|
2885
2802
|
static observedAttributes = ["value", "selected"];
|
|
2886
2803
|
#e;
|
|
2887
2804
|
constructor() {
|
|
@@ -2912,12 +2829,12 @@ var Pe = class {
|
|
|
2912
2829
|
detail: { value: this.value }
|
|
2913
2830
|
}));
|
|
2914
2831
|
};
|
|
2915
|
-
},
|
|
2832
|
+
}, ze = class extends k {
|
|
2916
2833
|
#e;
|
|
2917
2834
|
constructor() {
|
|
2918
2835
|
super(), this.#e = this.attachInternals(), this.#e.role = "cell";
|
|
2919
2836
|
}
|
|
2920
|
-
},
|
|
2837
|
+
}, Be = class extends k {
|
|
2921
2838
|
static observedAttributes = ["sort", "sortable"];
|
|
2922
2839
|
#e;
|
|
2923
2840
|
constructor() {
|
|
@@ -2967,7 +2884,7 @@ function Z(e) {
|
|
|
2967
2884
|
let t = /* @__PURE__ */ new Date(e + "T00:00:00");
|
|
2968
2885
|
return isNaN(t.getTime()) ? null : t;
|
|
2969
2886
|
}
|
|
2970
|
-
function
|
|
2887
|
+
function Ve(e) {
|
|
2971
2888
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
2972
2889
|
}
|
|
2973
2890
|
function Q(e, t) {
|
|
@@ -3037,7 +2954,7 @@ var $ = class {
|
|
|
3037
2954
|
#e() {
|
|
3038
2955
|
let e = this.focusedYear.value, t = this.focusedMonth.value, n = Z(this.value.value), r = /* @__PURE__ */ new Date(), i = Z(this.rangeStart.value), a = Z(this.rangeEnd.value), o = new Date(e, t, 1).getDay(), s = new Date(e, t, 1 - o), c = [];
|
|
3039
2956
|
for (let e = 0; e < 42; e++) {
|
|
3040
|
-
let o = new Date(s.getFullYear(), s.getMonth(), s.getDate() + e), l =
|
|
2957
|
+
let o = new Date(s.getFullYear(), s.getMonth(), s.getDate() + e), l = Ve(o), u = o.getMonth() === t, d = Q(o, r), f = n ? Q(o, n) : !1, p = this.isDateDisabled(l), m = !1, h = !1, g = !1;
|
|
3041
2958
|
if (i && a) {
|
|
3042
2959
|
let e = i <= a ? i : a, t = i <= a ? a : i;
|
|
3043
2960
|
m = o >= e && o <= t, h = Q(o, e), g = Q(o, t);
|
|
@@ -3113,7 +3030,7 @@ var $ = class {
|
|
|
3113
3030
|
}
|
|
3114
3031
|
}
|
|
3115
3032
|
};
|
|
3116
|
-
function
|
|
3033
|
+
function He(e = {}) {
|
|
3117
3034
|
return new $(e);
|
|
3118
3035
|
}
|
|
3119
3036
|
/**
|
|
@@ -3127,7 +3044,7 @@ function Ue(e = {}) {
|
|
|
3127
3044
|
* @fires ui-change - Fired on single date selection with `{ value }` detail
|
|
3128
3045
|
* @fires ui-range-select - Fired on range commit with `{ start, end }` detail
|
|
3129
3046
|
*/
|
|
3130
|
-
var
|
|
3047
|
+
var Ue = class extends P(k) {
|
|
3131
3048
|
static observedAttributes = [
|
|
3132
3049
|
"value",
|
|
3133
3050
|
"min",
|
|
@@ -3358,7 +3275,7 @@ var We = class extends P(k) {
|
|
|
3358
3275
|
}
|
|
3359
3276
|
r && (e.preventDefault(), n = Math.max(0, Math.min(41, n)), this.#a.value = n, n < 0 && this.#t.prevMonth(), n > 41 && this.#t.nextMonth());
|
|
3360
3277
|
};
|
|
3361
|
-
},
|
|
3278
|
+
}, We = class {
|
|
3362
3279
|
open = _(!1);
|
|
3363
3280
|
value = _(null);
|
|
3364
3281
|
label = _("");
|
|
@@ -3381,7 +3298,7 @@ var We = class extends P(k) {
|
|
|
3381
3298
|
this.open.value = !1, this.value.value = null, this.label.value = "";
|
|
3382
3299
|
});
|
|
3383
3300
|
}
|
|
3384
|
-
},
|
|
3301
|
+
}, Ge = class extends P(k) {
|
|
3385
3302
|
static observedAttributes = [
|
|
3386
3303
|
"value",
|
|
3387
3304
|
"disabled",
|
|
@@ -3392,7 +3309,7 @@ var We = class extends P(k) {
|
|
|
3392
3309
|
"required"
|
|
3393
3310
|
];
|
|
3394
3311
|
#e;
|
|
3395
|
-
#t = new
|
|
3312
|
+
#t = new We();
|
|
3396
3313
|
#n = _(!1);
|
|
3397
3314
|
#r = _(!1);
|
|
3398
3315
|
#i;
|
|
@@ -3513,7 +3430,7 @@ var We = class extends P(k) {
|
|
|
3513
3430
|
}
|
|
3514
3431
|
}
|
|
3515
3432
|
setup() {
|
|
3516
|
-
if (super.setup(), this.#i = new
|
|
3433
|
+
if (super.setup(), this.#i = new K(this), this.#c = this.hasAttribute("options") || this.hasAttribute("src"), this.#c) {
|
|
3517
3434
|
let e = this.getAttribute("options");
|
|
3518
3435
|
e && (this.#a.value = this.#m(e)), this.#o.value = this.getAttribute("src"), this.#s.value = this.getAttribute("placeholder") ?? "", this.#g();
|
|
3519
3436
|
}
|
|
@@ -3629,7 +3546,7 @@ var We = class extends P(k) {
|
|
|
3629
3546
|
onFormDisabled(e) {
|
|
3630
3547
|
this.#n.value = e;
|
|
3631
3548
|
}
|
|
3632
|
-
},
|
|
3549
|
+
}, Ke = class extends P(k) {
|
|
3633
3550
|
static observedAttributes = [
|
|
3634
3551
|
"value",
|
|
3635
3552
|
"disabled",
|
|
@@ -3765,7 +3682,7 @@ var We = class extends P(k) {
|
|
|
3765
3682
|
}
|
|
3766
3683
|
}
|
|
3767
3684
|
setup() {
|
|
3768
|
-
if (super.setup(), this.#a = new
|
|
3685
|
+
if (super.setup(), this.#a = new K(this), this.#d = this.hasAttribute("options") || this.hasAttribute("src"), this.#d) {
|
|
3769
3686
|
let e = this.getAttribute("options");
|
|
3770
3687
|
e && (this.#c.value = this.#g(e)), this.#l.value = this.getAttribute("src"), this.#u.value = this.getAttribute("placeholder") ?? "", this.#v();
|
|
3771
3688
|
}
|
|
@@ -3896,7 +3813,7 @@ var We = class extends P(k) {
|
|
|
3896
3813
|
onFormDisabled(e) {
|
|
3897
3814
|
this.#r.value = e;
|
|
3898
3815
|
}
|
|
3899
|
-
},
|
|
3816
|
+
}, qe = class extends k {
|
|
3900
3817
|
static observedAttributes = ["disabled", "required"];
|
|
3901
3818
|
#e = A("field-label");
|
|
3902
3819
|
#t = A("field-desc");
|
|
@@ -3960,7 +3877,7 @@ var We = class extends P(k) {
|
|
|
3960
3877
|
let t = this.querySelector("[slot=\"description\"]"), n = this.querySelector("[slot=\"error\"]"), r = [];
|
|
3961
3878
|
t && r.push(t.id), e && n && r.push(n.id), r.length ? this.#r.setAttribute("aria-describedby", r.join(" ")) : this.#r.removeAttribute("aria-describedby");
|
|
3962
3879
|
}
|
|
3963
|
-
},
|
|
3880
|
+
}, Je = class extends P(k) {
|
|
3964
3881
|
static observedAttributes = [
|
|
3965
3882
|
"value",
|
|
3966
3883
|
"placeholder",
|
|
@@ -4090,7 +4007,7 @@ var We = class extends P(k) {
|
|
|
4090
4007
|
detail: { value: this.textContent ?? "" }
|
|
4091
4008
|
}));
|
|
4092
4009
|
};
|
|
4093
|
-
},
|
|
4010
|
+
}, Ye = class extends P(k) {
|
|
4094
4011
|
static observedAttributes = [
|
|
4095
4012
|
"value",
|
|
4096
4013
|
"min",
|
|
@@ -4274,7 +4191,7 @@ var We = class extends P(k) {
|
|
|
4274
4191
|
detail: { value: this.#r.value }
|
|
4275
4192
|
}));
|
|
4276
4193
|
}
|
|
4277
|
-
},
|
|
4194
|
+
}, Xe = class extends P(k) {
|
|
4278
4195
|
static observedAttributes = [
|
|
4279
4196
|
"value",
|
|
4280
4197
|
"length",
|
|
@@ -4459,7 +4376,7 @@ var We = class extends P(k) {
|
|
|
4459
4376
|
detail: { value: this.value }
|
|
4460
4377
|
}));
|
|
4461
4378
|
}
|
|
4462
|
-
},
|
|
4379
|
+
}, Ze = class extends k {
|
|
4463
4380
|
static observedAttributes = [
|
|
4464
4381
|
"src",
|
|
4465
4382
|
"name",
|
|
@@ -4511,7 +4428,7 @@ var We = class extends P(k) {
|
|
|
4511
4428
|
let e = this.getAttribute("name");
|
|
4512
4429
|
e ? this.textContent = this.#r(e) : this.textContent = "?";
|
|
4513
4430
|
};
|
|
4514
|
-
},
|
|
4431
|
+
}, Qe = class extends k {
|
|
4515
4432
|
static observedAttributes = ["max"];
|
|
4516
4433
|
#e;
|
|
4517
4434
|
#t = "";
|
|
@@ -4532,7 +4449,7 @@ var We = class extends P(k) {
|
|
|
4532
4449
|
let n = parseInt(this.#t, 10);
|
|
4533
4450
|
isNaN(n) || (n > t ? this.textContent = `${t}+` : this.textContent = this.#t);
|
|
4534
4451
|
}
|
|
4535
|
-
},
|
|
4452
|
+
}, $e = class extends k {}, et = class extends k {
|
|
4536
4453
|
#e;
|
|
4537
4454
|
constructor() {
|
|
4538
4455
|
super(), this.#e = this.attachInternals(), this.#e.role = "navigation";
|
|
@@ -4542,7 +4459,7 @@ var We = class extends P(k) {
|
|
|
4542
4459
|
let e = this.getAttribute("aria-label") ?? "Breadcrumb";
|
|
4543
4460
|
this.#e.ariaLabel = e, this.hasAttribute("aria-label") || this.setAttribute("aria-label", e);
|
|
4544
4461
|
}
|
|
4545
|
-
},
|
|
4462
|
+
}, tt = class extends k {
|
|
4546
4463
|
static observedAttributes = ["href", "current"];
|
|
4547
4464
|
#e;
|
|
4548
4465
|
constructor() {
|
|
@@ -4568,7 +4485,7 @@ var We = class extends P(k) {
|
|
|
4568
4485
|
#r = (e) => {
|
|
4569
4486
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#n());
|
|
4570
4487
|
};
|
|
4571
|
-
},
|
|
4488
|
+
}, nt = class extends k {
|
|
4572
4489
|
static observedAttributes = [
|
|
4573
4490
|
"total",
|
|
4574
4491
|
"value",
|
|
@@ -4697,7 +4614,7 @@ var We = class extends P(k) {
|
|
|
4697
4614
|
detail: { value: t }
|
|
4698
4615
|
})));
|
|
4699
4616
|
}
|
|
4700
|
-
},
|
|
4617
|
+
}, rt = class extends k {
|
|
4701
4618
|
#e;
|
|
4702
4619
|
get open() {
|
|
4703
4620
|
return this.#e.open;
|
|
@@ -4709,12 +4626,12 @@ var We = class extends P(k) {
|
|
|
4709
4626
|
this.#e.close();
|
|
4710
4627
|
}
|
|
4711
4628
|
setup() {
|
|
4712
|
-
super.setup(), this.#e = new
|
|
4629
|
+
super.setup(), this.#e = new J(this, { contentTarget: () => document.createElement("ui-drawer-panel") });
|
|
4713
4630
|
}
|
|
4714
4631
|
teardown() {
|
|
4715
4632
|
this.#e.destroy(), super.teardown();
|
|
4716
4633
|
}
|
|
4717
|
-
},
|
|
4634
|
+
}, it = class extends k {
|
|
4718
4635
|
static observedAttributes = ["disabled"];
|
|
4719
4636
|
#e;
|
|
4720
4637
|
#t = _(!1);
|
|
@@ -4732,7 +4649,7 @@ var We = class extends P(k) {
|
|
|
4732
4649
|
t !== n && (e === "disabled" && (this.#t.value = n !== null), super.attributeChangedCallback?.(e, t, n));
|
|
4733
4650
|
}
|
|
4734
4651
|
setup() {
|
|
4735
|
-
super.setup(), this.#n = new
|
|
4652
|
+
super.setup(), this.#n = new W(this, {
|
|
4736
4653
|
selector: ":scope ui-tree-item > [slot=\"label\"]",
|
|
4737
4654
|
orientation: "vertical"
|
|
4738
4655
|
});
|
|
@@ -4742,7 +4659,7 @@ var We = class extends P(k) {
|
|
|
4742
4659
|
teardown() {
|
|
4743
4660
|
this.#n.destroy(), super.teardown();
|
|
4744
4661
|
}
|
|
4745
|
-
},
|
|
4662
|
+
}, at = class extends k {
|
|
4746
4663
|
static observedAttributes = [
|
|
4747
4664
|
"expanded",
|
|
4748
4665
|
"selected",
|
|
@@ -4836,7 +4753,7 @@ var We = class extends P(k) {
|
|
|
4836
4753
|
break;
|
|
4837
4754
|
}
|
|
4838
4755
|
};
|
|
4839
|
-
},
|
|
4756
|
+
}, ot = class extends k {
|
|
4840
4757
|
static observedAttributes = [
|
|
4841
4758
|
"direction",
|
|
4842
4759
|
"controls",
|
|
@@ -5055,229 +4972,11 @@ var We = class extends P(k) {
|
|
|
5055
4972
|
break;
|
|
5056
4973
|
}
|
|
5057
4974
|
};
|
|
5058
|
-
},
|
|
4975
|
+
}, st = class extends k {
|
|
5059
4976
|
setup() {
|
|
5060
4977
|
super.setup(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1");
|
|
5061
4978
|
}
|
|
5062
|
-
},
|
|
5063
|
-
static observedAttributes = ["value", "disabled"];
|
|
5064
|
-
#e;
|
|
5065
|
-
#t;
|
|
5066
|
-
#n;
|
|
5067
|
-
constructor() {
|
|
5068
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "navigation", this.#t = M(this, "disabled", { type: "boolean" });
|
|
5069
|
-
}
|
|
5070
|
-
get value() {
|
|
5071
|
-
return this.#n?.listValue.value ?? null;
|
|
5072
|
-
}
|
|
5073
|
-
set value(e) {
|
|
5074
|
-
this.#n && (this.#n.listValue.value = e), e === null ? this.removeAttribute("value") : this.setAttribute("value", e);
|
|
5075
|
-
}
|
|
5076
|
-
get disabled() {
|
|
5077
|
-
return this.#t.value;
|
|
5078
|
-
}
|
|
5079
|
-
set disabled(e) {
|
|
5080
|
-
this.#t.set(e);
|
|
5081
|
-
}
|
|
5082
|
-
attributeChangedCallback(e, t, n) {
|
|
5083
|
-
if (t !== n) {
|
|
5084
|
-
if (N({ disabled: this.#t }, e, n)) {
|
|
5085
|
-
super.attributeChangedCallback?.(e, t, n);
|
|
5086
|
-
return;
|
|
5087
|
-
}
|
|
5088
|
-
e === "value" && this.#n && (this.#n.listValue.value = n), super.attributeChangedCallback?.(e, t, n);
|
|
5089
|
-
}
|
|
5090
|
-
}
|
|
5091
|
-
setup() {
|
|
5092
|
-
super.setup(), this.#n = new J(this, {
|
|
5093
|
-
itemSelector: ":scope ui-nav-item:not([disabled])",
|
|
5094
|
-
orientation: "vertical",
|
|
5095
|
-
ariaAttr: "aria-current",
|
|
5096
|
-
onChildSelect: (e) => {
|
|
5097
|
-
this.#n.listValue.value = e.value, this.setAttribute("value", e.value), this.dispatchEvent(new CustomEvent("ui-change", {
|
|
5098
|
-
bubbles: !0,
|
|
5099
|
-
composed: !0,
|
|
5100
|
-
cancelable: !0,
|
|
5101
|
-
detail: e
|
|
5102
|
-
}));
|
|
5103
|
-
},
|
|
5104
|
-
addEffect: (e) => this.addEffect(e),
|
|
5105
|
-
deferChildren: (e) => this.deferChildren(e)
|
|
5106
|
-
});
|
|
5107
|
-
let e = this.getAttribute("value");
|
|
5108
|
-
e !== null && (this.#n.listValue.value = e), this.addEffect(j(this, this.#t.signal, this.#e));
|
|
5109
|
-
}
|
|
5110
|
-
teardown() {
|
|
5111
|
-
this.#n.destroy(), super.teardown();
|
|
5112
|
-
}
|
|
5113
|
-
}, ut = class extends k {
|
|
5114
|
-
static observedAttributes = [
|
|
5115
|
-
"value",
|
|
5116
|
-
"disabled",
|
|
5117
|
-
"label"
|
|
5118
|
-
];
|
|
5119
|
-
#e;
|
|
5120
|
-
#t = _("");
|
|
5121
|
-
#n;
|
|
5122
|
-
#r = _("");
|
|
5123
|
-
constructor() {
|
|
5124
|
-
super(), this.#e = this.attachInternals(), this.#e.role = "link", this.#n = M(this, "disabled", { type: "boolean" });
|
|
5125
|
-
}
|
|
5126
|
-
get value() {
|
|
5127
|
-
return this.#t.value;
|
|
5128
|
-
}
|
|
5129
|
-
set value(e) {
|
|
5130
|
-
this.#t.value = e, this.getAttribute("value") !== e && this.setAttribute("value", e);
|
|
5131
|
-
}
|
|
5132
|
-
get disabled() {
|
|
5133
|
-
return this.#n.value;
|
|
5134
|
-
}
|
|
5135
|
-
set disabled(e) {
|
|
5136
|
-
this.#n.set(e);
|
|
5137
|
-
}
|
|
5138
|
-
get label() {
|
|
5139
|
-
return this.#r.value || this.textContent?.trim() || "";
|
|
5140
|
-
}
|
|
5141
|
-
set label(e) {
|
|
5142
|
-
this.#r.value = e, e ? this.getAttribute("label") !== e && this.setAttribute("label", e) : this.removeAttribute("label");
|
|
5143
|
-
}
|
|
5144
|
-
attributeChangedCallback(e, t, n) {
|
|
5145
|
-
if (t !== n) {
|
|
5146
|
-
if (N({ disabled: this.#n }, e, n)) {
|
|
5147
|
-
super.attributeChangedCallback?.(e, t, n);
|
|
5148
|
-
return;
|
|
5149
|
-
}
|
|
5150
|
-
switch (e) {
|
|
5151
|
-
case "value":
|
|
5152
|
-
this.#t.value = n ?? "";
|
|
5153
|
-
break;
|
|
5154
|
-
case "label":
|
|
5155
|
-
this.#r.value = n ?? "";
|
|
5156
|
-
break;
|
|
5157
|
-
}
|
|
5158
|
-
super.attributeChangedCallback?.(e, t, n);
|
|
5159
|
-
}
|
|
5160
|
-
}
|
|
5161
|
-
setup() {
|
|
5162
|
-
super.setup(), this.addEffect(j(this, this.#n.signal, this.#e)), this.addEventListener("click", this.#i);
|
|
5163
|
-
}
|
|
5164
|
-
teardown() {
|
|
5165
|
-
this.removeEventListener("click", this.#i), super.teardown();
|
|
5166
|
-
}
|
|
5167
|
-
#i = () => {
|
|
5168
|
-
this.disabled || this.dispatchEvent(new CustomEvent("ui-select", {
|
|
5169
|
-
bubbles: !0,
|
|
5170
|
-
composed: !0,
|
|
5171
|
-
detail: {
|
|
5172
|
-
value: this.#t.value,
|
|
5173
|
-
label: this.label
|
|
5174
|
-
}
|
|
5175
|
-
}));
|
|
5176
|
-
};
|
|
5177
|
-
}, dt = class extends k {
|
|
5178
|
-
static observedAttributes = ["open"];
|
|
5179
|
-
#e = _(!1);
|
|
5180
|
-
#t = null;
|
|
5181
|
-
#n;
|
|
5182
|
-
#r = null;
|
|
5183
|
-
#i = null;
|
|
5184
|
-
#a = null;
|
|
5185
|
-
#o = !1;
|
|
5186
|
-
constructor() {
|
|
5187
|
-
super(), this.#n = this.attachInternals(), this.#n.role = "group";
|
|
5188
|
-
}
|
|
5189
|
-
/** Whether the flyout popover is currently open. */
|
|
5190
|
-
get flyoutOpen() {
|
|
5191
|
-
return this.#o;
|
|
5192
|
-
}
|
|
5193
|
-
get open() {
|
|
5194
|
-
return this.#e.value;
|
|
5195
|
-
}
|
|
5196
|
-
set open(e) {
|
|
5197
|
-
this.#e.value = e, this.toggleAttribute("open", e);
|
|
5198
|
-
}
|
|
5199
|
-
attributeChangedCallback(e, t, n) {
|
|
5200
|
-
t !== n && (e === "open" && (this.#e.value = n !== null), super.attributeChangedCallback?.(e, t, n));
|
|
5201
|
-
}
|
|
5202
|
-
setup() {
|
|
5203
|
-
super.setup();
|
|
5204
|
-
let e = document.createElement("details"), t = document.createElement("summary"), n = this.querySelector(":scope > ui-nav-group-header");
|
|
5205
|
-
for (n && t.appendChild(n); this.firstChild;) e.appendChild(this.firstChild);
|
|
5206
|
-
e.insertBefore(t, e.firstChild), this.appendChild(e), this.#t = e, this.addEffect(() => {
|
|
5207
|
-
let e = this.#e.value;
|
|
5208
|
-
this.#t && (this.#t.open = e);
|
|
5209
|
-
}), e.addEventListener("toggle", this.#c), this.#r = new MutationObserver(() => this.#s()), this.#r.observe(e, {
|
|
5210
|
-
subtree: !0,
|
|
5211
|
-
attributes: !0,
|
|
5212
|
-
attributeFilter: ["aria-current"]
|
|
5213
|
-
}), this.#s();
|
|
5214
|
-
let r = document.createElement("ui-listbox");
|
|
5215
|
-
r.setAttribute("popover", "manual"), r.className = "nav-group-flyout", this.appendChild(r), this.#i = r, this.#a = new q(this), this.#a.wirePopover(this, r), r.addEventListener("ui-select", this.#u), r.addEventListener("ui-change", this.#d), this.addEventListener("ui-dismiss", this.#l);
|
|
5216
|
-
}
|
|
5217
|
-
teardown() {
|
|
5218
|
-
this.closeFlyout(), this.#a?.destroy(), this.#a = null, this.#i?.remove(), this.#i = null, this.#r?.disconnect(), this.#r = null, this.#t?.removeEventListener("toggle", this.#c), this.#t = null, super.teardown();
|
|
5219
|
-
}
|
|
5220
|
-
#s() {
|
|
5221
|
-
if (!this.#t) return;
|
|
5222
|
-
let e = this.#t.querySelectorAll(":scope > ui-nav-item"), t = -1;
|
|
5223
|
-
for (let n = 0; n < e.length; n++) if (e[n].hasAttribute("aria-current")) {
|
|
5224
|
-
t = n;
|
|
5225
|
-
break;
|
|
5226
|
-
}
|
|
5227
|
-
if (t < 0) {
|
|
5228
|
-
this.#n.states.delete("has-selection");
|
|
5229
|
-
return;
|
|
5230
|
-
}
|
|
5231
|
-
this.style.setProperty("--_indicator-index", `${t}`), this.#n.states.add("has-selection");
|
|
5232
|
-
}
|
|
5233
|
-
#c = () => {
|
|
5234
|
-
if (!this.#t) return;
|
|
5235
|
-
let e = this.#t.open;
|
|
5236
|
-
this.#e.value = e, this.toggleAttribute("open", e);
|
|
5237
|
-
};
|
|
5238
|
-
/** Stamp ui-option elements from child nav-items, open the flyout popover. */
|
|
5239
|
-
openFlyout() {
|
|
5240
|
-
if (!this.#t || !this.#i) return;
|
|
5241
|
-
this.#i.innerHTML = "";
|
|
5242
|
-
let e = this.#t.querySelectorAll(":scope > ui-nav-item"), t = !0;
|
|
5243
|
-
for (let n of e) {
|
|
5244
|
-
let e = n.getAttribute("value") ?? "", r = n.getAttribute("label") || n.textContent?.trim() || "", i = n.hasAttribute("aria-disabled"), a = document.createElement("ui-option");
|
|
5245
|
-
a.setAttribute("value", e), a.textContent = r, n.hasAttribute("aria-current") && a.setAttribute("selected", ""), i && a.setAttribute("disabled", ""), i || (a.setAttribute("tabindex", t ? "0" : "-1"), t = !1), this.#i.appendChild(a);
|
|
5246
|
-
}
|
|
5247
|
-
this.#o = !0, this.#a?.syncPopover(!0), queueMicrotask(() => {
|
|
5248
|
-
(this.#i?.querySelector("ui-option:not([disabled])"))?.focus();
|
|
5249
|
-
});
|
|
5250
|
-
}
|
|
5251
|
-
/** Clear the flyout and close the popover. Returns focus to the summary. */
|
|
5252
|
-
closeFlyout() {
|
|
5253
|
-
this.#i && (this.#i.innerHTML = "", this.#o = !1, this.#a?.syncPopover(!1), (this.#t?.querySelector("summary"))?.focus());
|
|
5254
|
-
}
|
|
5255
|
-
#l = () => {
|
|
5256
|
-
this.closeFlyout();
|
|
5257
|
-
};
|
|
5258
|
-
#u = () => {
|
|
5259
|
-
queueMicrotask(() => this.closeFlyout());
|
|
5260
|
-
};
|
|
5261
|
-
#d = (e) => {
|
|
5262
|
-
e.stopPropagation();
|
|
5263
|
-
};
|
|
5264
|
-
}, ft = class extends k {
|
|
5265
|
-
constructor() {
|
|
5266
|
-
super();
|
|
5267
|
-
let e = this.attachInternals();
|
|
5268
|
-
e.role = "presentation";
|
|
5269
|
-
}
|
|
5270
|
-
setup() {
|
|
5271
|
-
super.setup(), this.id ||= A("ngh");
|
|
5272
|
-
let e = this.closest("ui-nav-group");
|
|
5273
|
-
e && e.setAttribute("aria-labelledby", this.id);
|
|
5274
|
-
let t = this.querySelector(":scope > ui-icon");
|
|
5275
|
-
if (t) {
|
|
5276
|
-
let e = document.createElement("span");
|
|
5277
|
-
e.className = "icon-well", this.insertBefore(e, t), e.appendChild(t);
|
|
5278
|
-
}
|
|
5279
|
-
}
|
|
5280
|
-
}, pt = class extends k {
|
|
4979
|
+
}, ct = class extends k {
|
|
5281
4980
|
static observedAttributes = [
|
|
5282
4981
|
"traits",
|
|
5283
4982
|
"for",
|
|
@@ -5410,7 +5109,7 @@ var We = class extends P(k) {
|
|
|
5410
5109
|
}
|
|
5411
5110
|
return t;
|
|
5412
5111
|
}
|
|
5413
|
-
},
|
|
5112
|
+
}, lt = class extends k {
|
|
5414
5113
|
static observedAttributes = ["disabled"];
|
|
5415
5114
|
#e;
|
|
5416
5115
|
#t = _(!1);
|
|
@@ -5486,7 +5185,7 @@ var We = class extends P(k) {
|
|
|
5486
5185
|
detail: { value: e }
|
|
5487
5186
|
})) && !this.hasAttribute("no-auto-clear") && (this.value = "", this.#r?.setAttribute("disabled", ""));
|
|
5488
5187
|
}
|
|
5489
|
-
},
|
|
5188
|
+
}, ut = class extends k {
|
|
5490
5189
|
static observedAttributes = ["interactive", "href"];
|
|
5491
5190
|
setup() {
|
|
5492
5191
|
super.setup(), this.hasAttribute("interactive") && (this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.addEventListener("click", this.#e), this.addEventListener("keydown", this.#t));
|
|
@@ -5501,7 +5200,7 @@ var We = class extends P(k) {
|
|
|
5501
5200
|
#t = (e) => {
|
|
5502
5201
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#e());
|
|
5503
5202
|
};
|
|
5504
|
-
},
|
|
5203
|
+
}, dt = class extends k {
|
|
5505
5204
|
static observedAttributes = [
|
|
5506
5205
|
"collapsible",
|
|
5507
5206
|
"collapsed",
|
|
@@ -5520,14 +5219,14 @@ var We = class extends P(k) {
|
|
|
5520
5219
|
#e = () => {
|
|
5521
5220
|
this.hasAttribute("collapsible") && this.toggleAttribute("collapsed");
|
|
5522
5221
|
};
|
|
5523
|
-
},
|
|
5222
|
+
}, ft = class extends k {
|
|
5524
5223
|
#e;
|
|
5525
5224
|
#t;
|
|
5526
5225
|
constructor() {
|
|
5527
5226
|
super(), this.#e = this.attachInternals(), this.#e.role = "toolbar";
|
|
5528
5227
|
}
|
|
5529
5228
|
setup() {
|
|
5530
|
-
super.setup(), this.#t = new
|
|
5229
|
+
super.setup(), this.#t = new W(this, {
|
|
5531
5230
|
selector: ":scope > ui-button:not([disabled]), :scope > button:not([disabled])",
|
|
5532
5231
|
orientation: "horizontal"
|
|
5533
5232
|
}), this.hasAttribute("aria-label") || this.setAttribute("aria-label", "Toolbar");
|
|
@@ -5535,136 +5234,5 @@ var We = class extends P(k) {
|
|
|
5535
5234
|
teardown() {
|
|
5536
5235
|
this.#t.destroy(), super.teardown();
|
|
5537
5236
|
}
|
|
5538
|
-
}, vt = class extends k {
|
|
5539
|
-
static observedAttributes = ["collapsed"];
|
|
5540
|
-
#e = null;
|
|
5541
|
-
#t = null;
|
|
5542
|
-
#n = null;
|
|
5543
|
-
#r = [];
|
|
5544
|
-
attributeChangedCallback(e, t, n) {
|
|
5545
|
-
t !== n && (e === "collapsed" && this.dataset.ready !== void 0 && this.#i(), super.attributeChangedCallback?.(e, t, n));
|
|
5546
|
-
}
|
|
5547
|
-
setup() {
|
|
5548
|
-
super.setup();
|
|
5549
|
-
let e = this.querySelector(":scope > [slot=\"sidebar\"]");
|
|
5550
|
-
e?.querySelector(".layout-resize-handle") && (this.#e = new U(e, {
|
|
5551
|
-
handleSelector: ".layout-resize-handle",
|
|
5552
|
-
axis: "horizontal",
|
|
5553
|
-
min: 160,
|
|
5554
|
-
max: 400
|
|
5555
|
-
})), e && this.#s(e), queueMicrotask(() => this.#i()), this.addEventListener("ui-dismiss", this.#o), this.dataset.ready = "";
|
|
5556
|
-
}
|
|
5557
|
-
teardown() {
|
|
5558
|
-
this.removeEventListener("ui-dismiss", this.#o), this.#a(), this.#n = null, this.#t?.disconnect(), this.#t = null, this.#e?.destroy(), this.#e = null, super.teardown();
|
|
5559
|
-
}
|
|
5560
|
-
/** Attach or detach summary click interception based on collapsed state. */
|
|
5561
|
-
#i() {
|
|
5562
|
-
if (this.#a(), !this.hasAttribute("collapsed")) {
|
|
5563
|
-
this.#n?.flyoutOpen && this.#n.closeFlyout(), this.#n = null;
|
|
5564
|
-
return;
|
|
5565
|
-
}
|
|
5566
|
-
let e = this.querySelectorAll("ui-nav-group");
|
|
5567
|
-
for (let t of e) {
|
|
5568
|
-
let e = t.querySelector(":scope > details > summary");
|
|
5569
|
-
if (!e) continue;
|
|
5570
|
-
let n = (e) => {
|
|
5571
|
-
e.preventDefault(), this.#n === t && t.flyoutOpen ? (t.closeFlyout(), this.#n = null) : (this.#n?.flyoutOpen && this.#n.closeFlyout(), t.openFlyout(), this.#n = t);
|
|
5572
|
-
};
|
|
5573
|
-
e.addEventListener("click", n), this.#r.push({
|
|
5574
|
-
summary: e,
|
|
5575
|
-
handler: n
|
|
5576
|
-
});
|
|
5577
|
-
}
|
|
5578
|
-
}
|
|
5579
|
-
/** Remove all summary click listeners. */
|
|
5580
|
-
#a() {
|
|
5581
|
-
for (let { summary: e, handler: t } of this.#r) e.removeEventListener("click", t);
|
|
5582
|
-
this.#r = [];
|
|
5583
|
-
}
|
|
5584
|
-
/** When a group closes its flyout internally (dismiss, option select),
|
|
5585
|
-
* clear our active reference so we stay in sync. */
|
|
5586
|
-
#o = (e) => {
|
|
5587
|
-
let t = e.target?.closest?.("ui-nav-group");
|
|
5588
|
-
t && t === this.#n && (this.#n = null);
|
|
5589
|
-
};
|
|
5590
|
-
/** Watch header/footer size changes and sync CSS custom properties + data
|
|
5591
|
-
* attributes so content gets correct padding offsets and fade masks. */
|
|
5592
|
-
#s(e) {
|
|
5593
|
-
let t = e.querySelector("ui-layout-sidebar-header"), n = e.querySelector("ui-layout-sidebar-footer"), r = e.querySelector("ui-layout-sidebar-content");
|
|
5594
|
-
if (!r) return;
|
|
5595
|
-
let i = () => {
|
|
5596
|
-
let i = t ? t.offsetHeight : 0, a = n ? n.offsetHeight : 0;
|
|
5597
|
-
e.style.setProperty("--_sidebar-header-height", `${i}px`), e.style.setProperty("--_sidebar-footer-height", `${a}px`), t ? r.dataset.hasHeader = "" : delete r.dataset.hasHeader, n ? r.dataset.hasFooter = "" : delete r.dataset.hasFooter;
|
|
5598
|
-
};
|
|
5599
|
-
i();
|
|
5600
|
-
let a = [];
|
|
5601
|
-
if (t && a.push(t), n && a.push(n), a.length > 0) {
|
|
5602
|
-
this.#t = new ResizeObserver(i);
|
|
5603
|
-
for (let e of a) this.#t.observe(e);
|
|
5604
|
-
}
|
|
5605
|
-
}
|
|
5606
|
-
}, yt = class extends k {
|
|
5607
|
-
#e = null;
|
|
5608
|
-
#t = !1;
|
|
5609
|
-
setup() {
|
|
5610
|
-
super.setup();
|
|
5611
|
-
let e = this.querySelector(":scope > ui-listbox[popover]");
|
|
5612
|
-
e && (this.#e = new q(this), this.#e.wirePopover(this, e), this.addEventListener("click", this.#n), this.addEventListener("ui-dismiss", this.#r));
|
|
5613
|
-
}
|
|
5614
|
-
teardown() {
|
|
5615
|
-
this.removeEventListener("click", this.#n), this.removeEventListener("ui-dismiss", this.#r), this.#e?.destroy(), this.#e = null, this.#t = !1, super.teardown();
|
|
5616
|
-
}
|
|
5617
|
-
#n = (e) => {
|
|
5618
|
-
e.target.closest("ui-listbox") || (this.#t = !this.#t, this.#e?.syncPopover(this.#t));
|
|
5619
|
-
};
|
|
5620
|
-
#r = () => {
|
|
5621
|
-
this.#t = !1, this.#e?.syncPopover(!1);
|
|
5622
|
-
};
|
|
5623
|
-
}, bt = class extends k {
|
|
5624
|
-
#e = null;
|
|
5625
|
-
get open() {
|
|
5626
|
-
return this.hasAttribute("open");
|
|
5627
|
-
}
|
|
5628
|
-
set open(e) {
|
|
5629
|
-
this.toggleAttribute("open", e);
|
|
5630
|
-
}
|
|
5631
|
-
toggle() {
|
|
5632
|
-
this.open = !this.open;
|
|
5633
|
-
}
|
|
5634
|
-
setup() {
|
|
5635
|
-
super.setup(), this.querySelector(".layout-resize-handle") && (this.#e = new U(this, {
|
|
5636
|
-
handleSelector: ".layout-resize-handle",
|
|
5637
|
-
axis: "horizontal",
|
|
5638
|
-
min: 280,
|
|
5639
|
-
max: 480,
|
|
5640
|
-
reverse: !0
|
|
5641
|
-
}));
|
|
5642
|
-
}
|
|
5643
|
-
teardown() {
|
|
5644
|
-
this.#e?.destroy(), this.#e = null, super.teardown();
|
|
5645
|
-
}
|
|
5646
|
-
}, xt = class extends k {
|
|
5647
|
-
#e = null;
|
|
5648
|
-
get open() {
|
|
5649
|
-
return this.hasAttribute("open");
|
|
5650
|
-
}
|
|
5651
|
-
set open(e) {
|
|
5652
|
-
this.toggleAttribute("open", e);
|
|
5653
|
-
}
|
|
5654
|
-
toggle() {
|
|
5655
|
-
this.open = !this.open;
|
|
5656
|
-
}
|
|
5657
|
-
setup() {
|
|
5658
|
-
super.setup(), this.querySelector(".layout-resize-handle") && (this.#e = new U(this, {
|
|
5659
|
-
handleSelector: ".layout-resize-handle",
|
|
5660
|
-
axis: "horizontal",
|
|
5661
|
-
min: 280,
|
|
5662
|
-
max: 480,
|
|
5663
|
-
reverse: !0
|
|
5664
|
-
}));
|
|
5665
|
-
}
|
|
5666
|
-
teardown() {
|
|
5667
|
-
this.#e?.destroy(), this.#e = null, super.teardown();
|
|
5668
|
-
}
|
|
5669
5237
|
};
|
|
5670
|
-
export {
|
|
5238
|
+
export { he as $, Le as A, D as At, Oe as B, r as Bt, We as C, P as Ct, Be as D, A as Dt, He as E, j as Et, Ne as F, b as Ft, Ce as G, Ee as H, Me as I, y as It, be as J, Se as K, je as L, v as Lt, Fe as M, T as Mt, X as N, re as Nt, ze as O, k as Ot, Y as P, x as Pt, ge as Q, Ae as R, _ as Rt, Ge as S, F as St, $ as T, N as Tt, Te as U, De as V, we as W, ve as X, ye as Y, _e as Z, Xe as _, z as _t, ct as a, le as at, qe as b, L as bt, at as c, J as ct, nt as d, G as dt, me as et, tt as f, W as ft, Ze as g, B as gt, Qe as h, V as ht, lt as i, ue as it, Ie as j, E as jt, Re as k, O as kt, it as l, q as lt, $e as m, H as mt, dt as n, fe as nt, st as o, ce as ot, et as p, U as pt, xe as q, ut as r, de as rt, ot as s, se as st, ft as t, pe as tt, rt as u, K as ut, Ye as v, oe as vt, Ue as w, M as wt, Ke as x, R as xt, Je as y, I as yt, ke as z, u as zt };
|