@nonoun/native-ui 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui-accordion/ui-accordion-element.d.ts.map +1 -1
- package/dist/components/ui-avatar/ui-avatar-element.d.ts +2 -0
- package/dist/components/ui-avatar/ui-avatar-element.d.ts.map +1 -1
- package/dist/components/ui-calendar/calendar-store.d.ts.map +1 -1
- package/dist/components/ui-calendar/ui-calendar-element.d.ts +1 -0
- package/dist/components/ui-calendar/ui-calendar-element.d.ts.map +1 -1
- package/dist/components/ui-chat/ui-chat-input-element.d.ts.map +1 -1
- package/dist/components/ui-checkbox/ui-checkbox-element.d.ts +1 -0
- package/dist/components/ui-checkbox/ui-checkbox-element.d.ts.map +1 -1
- package/dist/components/ui-combobox/ui-combobox-element.d.ts +1 -0
- package/dist/components/ui-combobox/ui-combobox-element.d.ts.map +1 -1
- package/dist/components/ui-command/ui-command-element.d.ts.map +1 -1
- package/dist/components/ui-command/ui-command-group-element.d.ts +1 -0
- package/dist/components/ui-command/ui-command-group-element.d.ts.map +1 -1
- package/dist/components/ui-controller/ui-controller-element.d.ts +1 -0
- package/dist/components/ui-controller/ui-controller-element.d.ts.map +1 -1
- package/dist/components/ui-dialog/ui-dialog-element.d.ts +0 -1
- package/dist/components/ui-dialog/ui-dialog-element.d.ts.map +1 -1
- package/dist/components/ui-drawer/ui-drawer-element.d.ts +0 -1
- package/dist/components/ui-drawer/ui-drawer-element.d.ts.map +1 -1
- package/dist/components/ui-field/ui-field-element.d.ts.map +1 -1
- package/dist/components/ui-input/ui-input-element.d.ts +1 -0
- package/dist/components/ui-input/ui-input-element.d.ts.map +1 -1
- package/dist/components/ui-input-otp/ui-input-otp-element.d.ts +1 -0
- package/dist/components/ui-input-otp/ui-input-otp-element.d.ts.map +1 -1
- package/dist/components/ui-listbox/ui-listbox-element.d.ts.map +1 -1
- package/dist/components/ui-nav/ui-nav-group-element.d.ts +1 -1
- package/dist/components/ui-pagination/ui-pagination-element.d.ts.map +1 -1
- package/dist/components/ui-radio/ui-radio-element.d.ts.map +1 -1
- package/dist/components/ui-radio/ui-radio-group-element.d.ts +1 -0
- package/dist/components/ui-radio/ui-radio-group-element.d.ts.map +1 -1
- package/dist/components/ui-range/ui-range-element.d.ts +4 -0
- package/dist/components/ui-range/ui-range-element.d.ts.map +1 -1
- package/dist/components/ui-segmented-control/ui-segment-element.d.ts.map +1 -1
- package/dist/components/ui-segmented-control/ui-segmented-control-element.d.ts +1 -0
- package/dist/components/ui-segmented-control/ui-segmented-control-element.d.ts.map +1 -1
- package/dist/components/ui-select/ui-select-element.d.ts +1 -0
- package/dist/components/ui-select/ui-select-element.d.ts.map +1 -1
- package/dist/components/ui-slideshow/ui-slideshow-element.d.ts.map +1 -1
- package/dist/components/ui-switch/ui-switch-element.d.ts +4 -0
- package/dist/components/ui-switch/ui-switch-element.d.ts.map +1 -1
- package/dist/components/ui-table/index.d.ts +1 -1
- package/dist/components/ui-table/index.d.ts.map +1 -1
- package/dist/components/ui-table/table-store.d.ts +0 -1
- package/dist/components/ui-table/table-store.d.ts.map +1 -1
- package/dist/components/ui-table/ui-table-element.d.ts +1 -0
- package/dist/components/ui-table/ui-table-element.d.ts.map +1 -1
- package/dist/components/ui-table/ui-table-header-element.d.ts +1 -0
- package/dist/components/ui-table/ui-table-header-element.d.ts.map +1 -1
- package/dist/components/ui-tabs/ui-tab-element.d.ts.map +1 -1
- package/dist/components/ui-tabs/ui-tabs-element.d.ts.map +1 -1
- package/dist/components/ui-textarea/ui-textarea-element.d.ts +1 -0
- package/dist/components/ui-textarea/ui-textarea-element.d.ts.map +1 -1
- package/dist/components/ui-tree/ui-tree-item-element.d.ts +4 -0
- package/dist/components/ui-tree/ui-tree-item-element.d.ts.map +1 -1
- package/dist/components-lean.css +208 -84
- package/dist/components.css +216 -84
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-element.d.ts.map +1 -1
- package/dist/core/form-associable.d.ts +2 -2
- package/dist/core/trait-runtime.d.ts.map +1 -1
- package/dist/core/ui-element.d.ts +2 -0
- package/dist/core/ui-element.d.ts.map +1 -1
- package/dist/custom-elements.json +4715 -2573
- package/dist/dialog-controller.js +54 -349
- package/dist/foundation.css +1 -15
- package/dist/icons/ui-icon-element.d.ts +1 -0
- package/dist/icons/ui-icon-element.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/{nav/inspector → inspector}/build-inspector.d.ts +2 -2
- package/dist/inspector/build-inspector.d.ts.map +1 -0
- package/dist/{nav/inspector → inspector}/ds-color-swatch-element.d.ts +1 -1
- package/dist/inspector/ds-color-swatch-element.d.ts.map +1 -0
- package/dist/inspector/ds-color-swatch.d.ts.map +1 -0
- package/dist/{nav/inspector → inspector}/ds-colors-element.d.ts +1 -1
- package/dist/inspector/ds-colors-element.d.ts.map +1 -0
- package/dist/inspector/ds-colors.d.ts.map +1 -0
- package/dist/inspector/ds-inspector-element.d.ts +15 -0
- package/dist/inspector/ds-inspector-element.d.ts.map +1 -0
- package/dist/inspector/ds-inspector.d.ts +3 -0
- package/dist/inspector/ds-inspector.d.ts.map +1 -0
- package/dist/{nav/inspector → inspector}/ds-themes-element.d.ts +1 -1
- package/dist/inspector/ds-themes-element.d.ts.map +1 -0
- package/dist/inspector/ds-themes.d.ts.map +1 -0
- package/dist/{nav/inspector → inspector}/ds-variable-element.d.ts +1 -1
- package/dist/inspector/ds-variable-element.d.ts.map +1 -0
- package/dist/inspector/ds-variable.d.ts.map +1 -0
- package/dist/{nav/inspector → inspector}/index.d.ts +1 -0
- package/dist/inspector/index.d.ts.map +1 -0
- package/dist/inspector.css +1 -1
- package/dist/inspector.d.ts +10 -6
- package/dist/inspector.d.ts.map +1 -1
- package/dist/inspector.js +94 -75
- package/dist/kernel/index.d.ts +1 -0
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/kernel/overlay-manager.d.ts +5 -1
- package/dist/kernel/overlay-manager.d.ts.map +1 -1
- package/dist/kernel.js +212 -194
- package/dist/list-navigate-controller.js +457 -0
- package/dist/native-ui-lean.css +209 -99
- package/dist/native-ui.css +217 -99
- package/dist/native-ui.js +7 -7
- package/dist/register-all.js +4 -3
- package/dist/register-all2.js +151 -79
- package/dist/traits/adapters/collapsible-adapter.d.ts.map +1 -1
- package/dist/traits/adapters/copyable-adapter.d.ts.map +1 -1
- package/dist/traits/adapters/draggable-adapter.d.ts.map +1 -1
- package/dist/traits/adapters/hoverable-adapter.d.ts.map +1 -1
- package/dist/traits/adapters/intersectable-adapter.d.ts.map +1 -1
- package/dist/traits/adapters/resizable-adapter.d.ts.map +1 -1
- package/dist/traits/adapters/searchable-adapter.d.ts.map +1 -1
- package/dist/traits/adapters/sortable-adapter.d.ts.map +1 -1
- package/dist/traits/adapters/swipeable-adapter.d.ts.map +1 -1
- package/dist/traits/adapters/virtualizable-adapter.d.ts.map +1 -1
- package/dist/traits/collapsible-controller.d.ts.map +1 -1
- package/dist/traits/dialog-controller.d.ts.map +1 -1
- package/dist/traits/drag-controller.d.ts +3 -0
- package/dist/traits/drag-controller.d.ts.map +1 -1
- package/dist/traits/drop-zone-controller.d.ts +1 -1
- package/dist/traits/drop-zone-controller.d.ts.map +1 -1
- package/dist/traits/focus-trap-controller.d.ts.map +1 -1
- package/dist/traits/hover-controller.d.ts +1 -1
- package/dist/traits/hover-controller.d.ts.map +1 -1
- package/dist/traits/intersect-controller.d.ts.map +1 -1
- package/dist/traits/popover-controller.d.ts.map +1 -1
- package/dist/traits/press-controller.d.ts.map +1 -1
- package/dist/traits/resize-controller.d.ts.map +1 -1
- package/dist/traits/selection-controller.d.ts.map +1 -1
- package/dist/traits/sort-controller.d.ts.map +1 -1
- package/dist/traits/swipe-controller.d.ts.map +1 -1
- package/dist/traits/validate-controller.d.ts +2 -0
- package/dist/traits/validate-controller.d.ts.map +1 -1
- package/dist/traits.js +5 -6
- package/dist/ui-icon-element.js +407 -3949
- package/dist/ui-layout-inspector-element.js +3777 -0
- package/dist/uid.js +63 -3
- package/package.json +1 -1
- package/dist/define.js +0 -62
- package/dist/nav/inspector/build-inspector.d.ts.map +0 -1
- package/dist/nav/inspector/ds-color-swatch-element.d.ts.map +0 -1
- package/dist/nav/inspector/ds-color-swatch.d.ts.map +0 -1
- package/dist/nav/inspector/ds-colors-element.d.ts.map +0 -1
- package/dist/nav/inspector/ds-colors.d.ts.map +0 -1
- package/dist/nav/inspector/ds-themes-element.d.ts.map +0 -1
- package/dist/nav/inspector/ds-themes.d.ts.map +0 -1
- package/dist/nav/inspector/ds-variable-element.d.ts.map +0 -1
- package/dist/nav/inspector/ds-variable.d.ts.map +0 -1
- package/dist/nav/inspector/index.d.ts.map +0 -1
- package/dist/ui-element.js +0 -128
- /package/dist/{nav/inspector → inspector}/ds-color-swatch.d.ts +0 -0
- /package/dist/{nav/inspector → inspector}/ds-colors.d.ts +0 -0
- /package/dist/{nav/inspector → inspector}/ds-themes.d.ts +0 -0
- /package/dist/{nav/inspector → inspector}/ds-variable.d.ts +0 -0
package/dist/register-all2.js
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a, c as o,
|
|
4
|
-
function
|
|
5
|
-
let t = n();
|
|
6
|
-
r(null);
|
|
7
|
-
try {
|
|
8
|
-
return e();
|
|
9
|
-
} finally {
|
|
10
|
-
r(t);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
function re(n) {
|
|
1
|
+
import { l as e, s as t } from "./uid.js";
|
|
2
|
+
import { n, r, t as i } from "./dialog-controller.js";
|
|
3
|
+
import { a, c as o, g as s, i as c, n as ee, r as l, t as u } from "./list-navigate-controller.js";
|
|
4
|
+
function d(n) {
|
|
14
5
|
let r = e.get(n);
|
|
15
6
|
return r ? r instanceof t ? {
|
|
16
7
|
type: "signal",
|
|
@@ -29,10 +20,10 @@ function re(n) {
|
|
|
29
20
|
dependencyCount: 0
|
|
30
21
|
};
|
|
31
22
|
}
|
|
32
|
-
function
|
|
23
|
+
function f(e) {
|
|
33
24
|
return typeof e == "object" && !!e && Symbol.toStringTag in e && e[Symbol.toStringTag] === "Signal";
|
|
34
25
|
}
|
|
35
|
-
function
|
|
26
|
+
function te(e) {
|
|
36
27
|
return typeof e == "object" && !!e && Symbol.toStringTag in e && e[Symbol.toStringTag] === "Computed";
|
|
37
28
|
}
|
|
38
29
|
/** Enables contiguous range selection via drag or click, dispatching `ui-range-change` and `ui-range-select`. */
|
|
@@ -256,7 +247,8 @@ var p = class {
|
|
|
256
247
|
}
|
|
257
248
|
}
|
|
258
249
|
clear() {
|
|
259
|
-
|
|
250
|
+
let e = this.#e.size === 0;
|
|
251
|
+
this.#i(), this.#e.clear(), this.#t = null, e || this.#a();
|
|
260
252
|
}
|
|
261
253
|
getSelection() {
|
|
262
254
|
return [...this.#e];
|
|
@@ -404,15 +396,28 @@ var p = class {
|
|
|
404
396
|
let t = e.clientX - this.#e, n = e.clientY - this.#t, r = Date.now() - this.#n, i = Math.abs(t), a = Math.abs(n), o = null, s = 0;
|
|
405
397
|
this.axis === "horizontal" || this.axis === "both" && i >= a ? (s = i, o = t > 0 ? "right" : "left") : (s = a, o = n > 0 ? "down" : "up");
|
|
406
398
|
let c = r > 0 ? s / r : 0;
|
|
407
|
-
s >= this.threshold && c >= this.velocityThreshold
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
399
|
+
if (s >= this.threshold && c >= this.velocityThreshold) {
|
|
400
|
+
if (this.#a = o, this.#o = s, this.#c = c, this.#s !== null) {
|
|
401
|
+
clearTimeout(this.#s), this.#s = null;
|
|
402
|
+
for (let e of [
|
|
403
|
+
"swipe-left",
|
|
404
|
+
"swipe-right",
|
|
405
|
+
"swipe-up",
|
|
406
|
+
"swipe-down"
|
|
407
|
+
]) this.host.removeAttribute(e);
|
|
414
408
|
}
|
|
415
|
-
|
|
409
|
+
this.host.setAttribute(`swipe-${o}`, ""), this.#s = setTimeout(() => {
|
|
410
|
+
this.host.removeAttribute(`swipe-${o}`), this.#s = null;
|
|
411
|
+
}, 300), this.host.dispatchEvent(new CustomEvent("ui-swipe", {
|
|
412
|
+
bubbles: !0,
|
|
413
|
+
composed: !0,
|
|
414
|
+
detail: {
|
|
415
|
+
direction: o,
|
|
416
|
+
distance: s,
|
|
417
|
+
velocity: c
|
|
418
|
+
}
|
|
419
|
+
}));
|
|
420
|
+
}
|
|
416
421
|
};
|
|
417
422
|
#d = () => {
|
|
418
423
|
this.#i = !1, this.host.removeAttribute("swiping"), this.host.removeEventListener("pointerup", this.#u), this.host.removeEventListener("pointercancel", this.#d);
|
|
@@ -589,12 +594,12 @@ var p = class {
|
|
|
589
594
|
}
|
|
590
595
|
#r = (e) => {
|
|
591
596
|
this.disabled || (clearTimeout(this.#t), this.delay > 0 ? this.#e = setTimeout(() => {
|
|
592
|
-
this.host.toggleAttribute("hovered", !0), this.host.dispatchEvent(new CustomEvent("ui-hover-
|
|
597
|
+
this.host.toggleAttribute("hovered", !0), this.host.dispatchEvent(new CustomEvent("ui-hover-start", {
|
|
593
598
|
bubbles: !0,
|
|
594
599
|
composed: !0,
|
|
595
600
|
detail: { pointerType: e.pointerType }
|
|
596
601
|
}));
|
|
597
|
-
}, this.delay) : (this.host.toggleAttribute("hovered", !0), this.host.dispatchEvent(new CustomEvent("ui-hover-
|
|
602
|
+
}, this.delay) : (this.host.toggleAttribute("hovered", !0), this.host.dispatchEvent(new CustomEvent("ui-hover-start", {
|
|
598
603
|
bubbles: !0,
|
|
599
604
|
composed: !0,
|
|
600
605
|
detail: { pointerType: e.pointerType }
|
|
@@ -602,12 +607,12 @@ var p = class {
|
|
|
602
607
|
};
|
|
603
608
|
#i = (e) => {
|
|
604
609
|
this.disabled || (clearTimeout(this.#e), this.leaveDelay > 0 ? this.#t = setTimeout(() => {
|
|
605
|
-
this.host.removeAttribute("hovered"), this.host.dispatchEvent(new CustomEvent("ui-hover-
|
|
610
|
+
this.host.removeAttribute("hovered"), this.host.dispatchEvent(new CustomEvent("ui-hover-end", {
|
|
606
611
|
bubbles: !0,
|
|
607
612
|
composed: !0,
|
|
608
613
|
detail: { pointerType: e.pointerType }
|
|
609
614
|
}));
|
|
610
|
-
}, this.leaveDelay) : (this.host.removeAttribute("hovered"), this.host.dispatchEvent(new CustomEvent("ui-hover-
|
|
615
|
+
}, this.leaveDelay) : (this.host.removeAttribute("hovered"), this.host.dispatchEvent(new CustomEvent("ui-hover-end", {
|
|
611
616
|
bubbles: !0,
|
|
612
617
|
composed: !0,
|
|
613
618
|
detail: { pointerType: e.pointerType }
|
|
@@ -670,7 +675,7 @@ var p = class {
|
|
|
670
675
|
isIntersecting: e,
|
|
671
676
|
ratio: t.intersectionRatio
|
|
672
677
|
}
|
|
673
|
-
})), e && this.once && (this.#e?.disconnect(), this.#e = null);
|
|
678
|
+
})), e && this.once && (this.#e?.disconnect(), this.#e = null, this.#t = !1);
|
|
674
679
|
}
|
|
675
680
|
};
|
|
676
681
|
}, C = class {
|
|
@@ -698,22 +703,33 @@ var p = class {
|
|
|
698
703
|
return !1;
|
|
699
704
|
}
|
|
700
705
|
#r = (e) => {
|
|
701
|
-
this.disabled || !e.dataTransfer
|
|
706
|
+
if (this.disabled || !e.dataTransfer) return;
|
|
707
|
+
e.preventDefault(), this.#e++;
|
|
708
|
+
let t = this.#n(e.dataTransfer);
|
|
709
|
+
t ? (this.host.toggleAttribute("drop-active", !0), this.host.removeAttribute("drop-invalid")) : (this.host.toggleAttribute("drop-invalid", !0), this.host.removeAttribute("drop-active")), this.#e === 1 && this.host.dispatchEvent(new CustomEvent("ui-drop-enter", {
|
|
710
|
+
bubbles: !0,
|
|
711
|
+
composed: !0,
|
|
712
|
+
detail: { valid: t }
|
|
713
|
+
}));
|
|
702
714
|
};
|
|
703
715
|
#i = (e) => {
|
|
704
716
|
this.disabled || (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "copy"));
|
|
705
717
|
};
|
|
706
718
|
#a = (e) => {
|
|
707
|
-
this.#e--, this.#e <= 0 && (this.#e = 0, this.host.removeAttribute("drop-active"), this.host.removeAttribute("drop-invalid")
|
|
719
|
+
this.#e--, this.#e <= 0 && (this.#e = 0, this.host.removeAttribute("drop-active"), this.host.removeAttribute("drop-invalid"), this.host.dispatchEvent(new CustomEvent("ui-drop-leave", {
|
|
720
|
+
bubbles: !0,
|
|
721
|
+
composed: !0
|
|
722
|
+
})));
|
|
708
723
|
};
|
|
709
724
|
#o = (e) => {
|
|
710
725
|
if (e.preventDefault(), this.#e = 0, this.host.removeAttribute("drop-active"), this.host.removeAttribute("drop-invalid"), this.disabled || !e.dataTransfer) return;
|
|
711
726
|
if (e.dataTransfer.files.length > 0) {
|
|
712
727
|
let t = Array.from(e.dataTransfer.files);
|
|
713
|
-
this.multiple || (t = t.slice(0, 1)), this.host.dispatchEvent(new CustomEvent("ui-
|
|
728
|
+
this.multiple || (t = t.slice(0, 1)), this.host.dispatchEvent(new CustomEvent("ui-drop", {
|
|
714
729
|
bubbles: !0,
|
|
715
730
|
composed: !0,
|
|
716
731
|
detail: {
|
|
732
|
+
type: "file",
|
|
717
733
|
files: t,
|
|
718
734
|
dataTransfer: e.dataTransfer
|
|
719
735
|
}
|
|
@@ -721,10 +737,13 @@ var p = class {
|
|
|
721
737
|
return;
|
|
722
738
|
}
|
|
723
739
|
let t = e.dataTransfer.getData("text/plain");
|
|
724
|
-
t && this.host.dispatchEvent(new CustomEvent("ui-
|
|
740
|
+
t && this.host.dispatchEvent(new CustomEvent("ui-drop", {
|
|
725
741
|
bubbles: !0,
|
|
726
742
|
composed: !0,
|
|
727
|
-
detail: {
|
|
743
|
+
detail: {
|
|
744
|
+
type: "text",
|
|
745
|
+
text: t
|
|
746
|
+
}
|
|
728
747
|
}));
|
|
729
748
|
};
|
|
730
749
|
}, w = class {
|
|
@@ -744,17 +763,19 @@ var p = class {
|
|
|
744
763
|
return this.#t;
|
|
745
764
|
}
|
|
746
765
|
attach() {
|
|
747
|
-
|
|
766
|
+
this.#n || (this.#n = !0, this.host.addEventListener("click", this.#r));
|
|
748
767
|
}
|
|
749
768
|
detach() {
|
|
750
|
-
|
|
769
|
+
this.#n && (this.#n = !1, this.host.removeEventListener("click", this.#r));
|
|
751
770
|
}
|
|
752
771
|
destroy() {
|
|
753
772
|
this.detach();
|
|
754
773
|
}
|
|
755
774
|
#r = (e) => {
|
|
756
|
-
if (this.disabled) return;
|
|
757
|
-
let t = e.
|
|
775
|
+
if (this.disabled || !this.selector) return;
|
|
776
|
+
let t = e.target.closest(this.selector);
|
|
777
|
+
if (!t || !this.host.contains(t)) return;
|
|
778
|
+
let n = t.dataset.column ?? t.textContent?.trim() ?? "";
|
|
758
779
|
n === this.#e ? this.#t === "asc" ? this.#t = "desc" : this.#t === "desc" ? this.#t = "none" : this.#t = "asc" : (this.#e = n, this.#t = "asc");
|
|
759
780
|
for (let e of this.host.querySelectorAll(this.selector)) (e.dataset.column ?? e.textContent?.trim() ?? "") === this.#e && this.#t !== "none" ? e.setAttribute("aria-sort", this.#t === "asc" ? "ascending" : "descending") : e.removeAttribute("aria-sort");
|
|
760
781
|
this.host.dispatchEvent(new CustomEvent("ui-sort", {
|
|
@@ -769,20 +790,21 @@ var p = class {
|
|
|
769
790
|
}, T = class {
|
|
770
791
|
host;
|
|
771
792
|
rules;
|
|
772
|
-
#e
|
|
773
|
-
#t =
|
|
793
|
+
#e;
|
|
794
|
+
#t = !0;
|
|
795
|
+
#n = "";
|
|
774
796
|
constructor(e, t = {}) {
|
|
775
|
-
this.host = e, this.rules = t.rules ?? [];
|
|
797
|
+
this.host = e, this.rules = t.rules ?? [], this.#e = t.internals ?? null;
|
|
776
798
|
}
|
|
777
799
|
get valid() {
|
|
778
|
-
return this.#
|
|
800
|
+
return this.#t;
|
|
779
801
|
}
|
|
780
802
|
get errorMessage() {
|
|
781
|
-
return this.#
|
|
803
|
+
return this.#n;
|
|
782
804
|
}
|
|
783
805
|
validate(e) {
|
|
784
|
-
let t = e ?? this.#
|
|
785
|
-
for (let e of this.rules) if (!e.test(t)) return this.#
|
|
806
|
+
let t = e ?? this.#r();
|
|
807
|
+
for (let e of this.rules) if (!e.test(t)) return this.#t = !1, this.#n = e.message, this.host.setAttribute("invalid", ""), this.host.setAttribute("aria-invalid", "true"), this.#e?.setValidity({ customError: !0 }, e.message, this.host), this.host.dispatchEvent(new CustomEvent("ui-invalid", {
|
|
786
808
|
bubbles: !0,
|
|
787
809
|
composed: !0,
|
|
788
810
|
detail: {
|
|
@@ -790,14 +812,14 @@ var p = class {
|
|
|
790
812
|
value: t
|
|
791
813
|
}
|
|
792
814
|
})), !1;
|
|
793
|
-
return this.#
|
|
815
|
+
return this.#t = !0, this.#n = "", this.host.removeAttribute("invalid"), this.host.removeAttribute("aria-invalid"), this.#e?.setValidity({}), this.host.dispatchEvent(new CustomEvent("ui-valid", {
|
|
794
816
|
bubbles: !0,
|
|
795
817
|
composed: !0,
|
|
796
818
|
detail: { value: t }
|
|
797
819
|
})), !0;
|
|
798
820
|
}
|
|
799
821
|
clearValidation() {
|
|
800
|
-
this.#
|
|
822
|
+
this.#t = !0, this.#n = "", this.host.removeAttribute("invalid"), this.host.removeAttribute("aria-invalid"), this.#e?.setValidity({});
|
|
801
823
|
}
|
|
802
824
|
destroy() {}
|
|
803
825
|
static required(e = "This field is required") {
|
|
@@ -824,10 +846,10 @@ var p = class {
|
|
|
824
846
|
message: t
|
|
825
847
|
};
|
|
826
848
|
}
|
|
827
|
-
#
|
|
828
|
-
return this.#
|
|
849
|
+
#r() {
|
|
850
|
+
return this.#i(this.host) ? this.host.value : this.host.querySelector("input, textarea, select")?.value ?? "";
|
|
829
851
|
}
|
|
830
|
-
#
|
|
852
|
+
#i(e) {
|
|
831
853
|
return "value" in e && typeof e.value == "string";
|
|
832
854
|
}
|
|
833
855
|
}, E = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]):not([disabled])", D = class {
|
|
@@ -838,7 +860,7 @@ var p = class {
|
|
|
838
860
|
this.host = e;
|
|
839
861
|
}
|
|
840
862
|
enable() {
|
|
841
|
-
this.#e = document.activeElement, this.#t = (e) => {
|
|
863
|
+
this.#t && this.host.removeEventListener("keydown", this.#t), this.#e = document.activeElement, this.#t = (e) => {
|
|
842
864
|
if (e.key !== "Tab") return;
|
|
843
865
|
let t = [...this.host.querySelectorAll(E)];
|
|
844
866
|
if (t.length === 0) return;
|
|
@@ -863,6 +885,7 @@ var p = class {
|
|
|
863
885
|
duration;
|
|
864
886
|
#e = !1;
|
|
865
887
|
#t = null;
|
|
888
|
+
#n = 0;
|
|
866
889
|
constructor(e, t = {}) {
|
|
867
890
|
this.host = e, this.duration = t.duration ?? 200;
|
|
868
891
|
}
|
|
@@ -873,7 +896,7 @@ var p = class {
|
|
|
873
896
|
e ? this.collapse() : this.expand();
|
|
874
897
|
}
|
|
875
898
|
expand() {
|
|
876
|
-
this.host.hasAttribute("collapsed") && (this.#e || (this.#e = !0, this.host.removeAttribute("collapsed"), this.host.style.overflow = "clip", this.host.style.height = "0px", requestAnimationFrame(() => {
|
|
899
|
+
this.host.hasAttribute("collapsed") && (this.#e || (this.#e = !0, this.host.removeAttribute("collapsed"), this.host.style.overflow = "clip", this.host.style.height = "0px", this.#n = requestAnimationFrame(() => {
|
|
877
900
|
let e = this.host.scrollHeight;
|
|
878
901
|
this.host.style.transition = `height ${this.duration}ms var(--ui-easing, ease)`, this.host.style.height = `${e}px`;
|
|
879
902
|
let t = () => {
|
|
@@ -891,10 +914,10 @@ var p = class {
|
|
|
891
914
|
if (this.host.hasAttribute("collapsed") || this.#e) return;
|
|
892
915
|
this.#e = !0;
|
|
893
916
|
let e = this.host.scrollHeight;
|
|
894
|
-
this.host.style.overflow = "clip", this.host.style.height = `${e}px`, requestAnimationFrame(() => {
|
|
917
|
+
this.host.style.overflow = "clip", this.host.style.height = `${e}px`, this.#n = requestAnimationFrame(() => {
|
|
895
918
|
this.host.style.transition = `height ${this.duration}ms var(--ui-easing, ease)`, this.host.style.height = "0px";
|
|
896
919
|
let e = () => {
|
|
897
|
-
this.host.removeEventListener("transitionend", e), this.host.style.removeProperty("transition"), this.#e = !1, this.host.setAttribute("collapsed", ""), this.host.dispatchEvent(new CustomEvent("ui-collapse", {
|
|
920
|
+
this.host.removeEventListener("transitionend", e), this.host.style.removeProperty("height"), this.host.style.removeProperty("overflow"), this.host.style.removeProperty("transition"), this.#e = !1, this.host.setAttribute("collapsed", ""), this.host.dispatchEvent(new CustomEvent("ui-collapse", {
|
|
898
921
|
bubbles: !0,
|
|
899
922
|
composed: !0
|
|
900
923
|
}));
|
|
@@ -908,7 +931,7 @@ var p = class {
|
|
|
908
931
|
this.host.hasAttribute("collapsed") ? this.expand() : this.collapse();
|
|
909
932
|
}
|
|
910
933
|
destroy() {
|
|
911
|
-
this.#t !== null && (clearTimeout(this.#t), this.#t = null), this.#e = !1;
|
|
934
|
+
cancelAnimationFrame(this.#n), this.#t !== null && (clearTimeout(this.#t), this.#t = null), this.#e && (this.host.style.removeProperty("height"), this.host.style.removeProperty("overflow"), this.host.style.removeProperty("transition")), this.#e = !1;
|
|
912
935
|
}
|
|
913
936
|
}, k = class {
|
|
914
937
|
host;
|
|
@@ -916,20 +939,20 @@ var p = class {
|
|
|
916
939
|
this.host = e;
|
|
917
940
|
}
|
|
918
941
|
toast(e) {
|
|
919
|
-
return
|
|
942
|
+
return o().toastManager.toast(this.host, e);
|
|
920
943
|
}
|
|
921
944
|
dismissToast(e) {
|
|
922
|
-
|
|
945
|
+
o().toastManager.dismiss(e);
|
|
923
946
|
}
|
|
924
947
|
dismissAllToasts() {
|
|
925
|
-
|
|
948
|
+
o().toastManager.dismissAll();
|
|
926
949
|
}
|
|
927
950
|
destroy() {}
|
|
928
951
|
};
|
|
929
952
|
const A = {
|
|
930
953
|
name: "pressable",
|
|
931
954
|
create(e, t) {
|
|
932
|
-
return new
|
|
955
|
+
return new a(e, { disabled: t.disabled === "true" });
|
|
933
956
|
},
|
|
934
957
|
destroy(e) {
|
|
935
958
|
e.destroy();
|
|
@@ -947,7 +970,15 @@ const A = {
|
|
|
947
970
|
e.destroy();
|
|
948
971
|
},
|
|
949
972
|
update(e, t) {
|
|
950
|
-
|
|
973
|
+
if ("delay" in t) {
|
|
974
|
+
let n = t.delay, r = Number(n);
|
|
975
|
+
n !== "" && !isNaN(r) && (e.delay = r);
|
|
976
|
+
}
|
|
977
|
+
if ("leave-delay" in t) {
|
|
978
|
+
let n = t["leave-delay"], r = Number(n);
|
|
979
|
+
n !== "" && !isNaN(r) && (e.leaveDelay = r);
|
|
980
|
+
}
|
|
981
|
+
"disabled" in t && (e.disabled = t.disabled === "true");
|
|
951
982
|
}
|
|
952
983
|
}, M = {
|
|
953
984
|
name: "copyable",
|
|
@@ -961,7 +992,10 @@ const A = {
|
|
|
961
992
|
e.destroy();
|
|
962
993
|
},
|
|
963
994
|
update(e, t) {
|
|
964
|
-
"value" in t && (e.value = t.value), "feedback-duration" in t
|
|
995
|
+
if ("value" in t && (e.value = t.value), "feedback-duration" in t) {
|
|
996
|
+
let n = t["feedback-duration"], r = Number(n);
|
|
997
|
+
n !== "" && !isNaN(r) && (e.feedbackDuration = r);
|
|
998
|
+
}
|
|
965
999
|
}
|
|
966
1000
|
}, N = {
|
|
967
1001
|
name: "intersectable",
|
|
@@ -976,6 +1010,17 @@ const A = {
|
|
|
976
1010
|
},
|
|
977
1011
|
destroy(e) {
|
|
978
1012
|
e.destroy();
|
|
1013
|
+
},
|
|
1014
|
+
update(e, t) {
|
|
1015
|
+
if ("threshold" in t || "margin" in t || "root" in t) {
|
|
1016
|
+
if (e.detach(), "threshold" in t) {
|
|
1017
|
+
let n = t.threshold, r = Number(n);
|
|
1018
|
+
n !== "" && !isNaN(r) && (e.threshold = r);
|
|
1019
|
+
}
|
|
1020
|
+
"margin" in t && (e.margin = t.margin ?? e.margin), "root" in t && (e.root = t.root ?? e.root), e.disabled || e.attach();
|
|
1021
|
+
return;
|
|
1022
|
+
}
|
|
1023
|
+
"disabled" in t && (e.disabled = t.disabled === "true", e.disabled ? e.detach() : e.attach()), "once" in t && (e.once = t.once === "true");
|
|
979
1024
|
}
|
|
980
1025
|
}, P = {
|
|
981
1026
|
name: "droppable",
|
|
@@ -1004,7 +1049,7 @@ const A = {
|
|
|
1004
1049
|
e.destroy();
|
|
1005
1050
|
},
|
|
1006
1051
|
update(e, t) {
|
|
1007
|
-
"disabled" in t && (e.disabled = t.disabled === "true");
|
|
1052
|
+
"selector" in t && (e.selector = t.selector ?? ""), "disabled" in t && (e.disabled = t.disabled === "true");
|
|
1008
1053
|
}
|
|
1009
1054
|
}, I = {
|
|
1010
1055
|
name: "validatable",
|
|
@@ -1031,12 +1076,15 @@ const A = {
|
|
|
1031
1076
|
e.destroy();
|
|
1032
1077
|
},
|
|
1033
1078
|
update(e, t) {
|
|
1034
|
-
"duration" in t
|
|
1079
|
+
if ("duration" in t) {
|
|
1080
|
+
let n = t.duration, r = Number(n);
|
|
1081
|
+
n !== "" && !isNaN(r) && (e.duration = r);
|
|
1082
|
+
}
|
|
1035
1083
|
}
|
|
1036
1084
|
}, z = {
|
|
1037
1085
|
name: "roving-focusable",
|
|
1038
1086
|
create(e, t) {
|
|
1039
|
-
return new
|
|
1087
|
+
return new c(e, {
|
|
1040
1088
|
selector: t.selector ?? void 0,
|
|
1041
1089
|
orientation: t.orientation ?? void 0,
|
|
1042
1090
|
wrap: t.wrap !== "false",
|
|
@@ -1052,7 +1100,7 @@ const A = {
|
|
|
1052
1100
|
}, B = {
|
|
1053
1101
|
name: "dismissable",
|
|
1054
1102
|
create(e) {
|
|
1055
|
-
return new
|
|
1103
|
+
return new l(e);
|
|
1056
1104
|
},
|
|
1057
1105
|
destroy(e) {
|
|
1058
1106
|
e.destroy();
|
|
@@ -1068,7 +1116,7 @@ const A = {
|
|
|
1068
1116
|
}, H = {
|
|
1069
1117
|
name: "popoverable",
|
|
1070
1118
|
create(e) {
|
|
1071
|
-
return new
|
|
1119
|
+
return new ee(e);
|
|
1072
1120
|
},
|
|
1073
1121
|
destroy(e) {
|
|
1074
1122
|
e.destroy();
|
|
@@ -1076,7 +1124,7 @@ const A = {
|
|
|
1076
1124
|
}, U = {
|
|
1077
1125
|
name: "list-navigable",
|
|
1078
1126
|
create(e, t) {
|
|
1079
|
-
return new
|
|
1127
|
+
return new u(e, {
|
|
1080
1128
|
itemSelector: t["item-selector"] ?? void 0,
|
|
1081
1129
|
ariaAttr: t["aria-attr"] ?? void 0,
|
|
1082
1130
|
autoSync: t["auto-sync"] !== "false",
|
|
@@ -1091,7 +1139,7 @@ const A = {
|
|
|
1091
1139
|
}, W = {
|
|
1092
1140
|
name: "dialogable",
|
|
1093
1141
|
create(e) {
|
|
1094
|
-
return new
|
|
1142
|
+
return new i(e);
|
|
1095
1143
|
},
|
|
1096
1144
|
destroy(e) {
|
|
1097
1145
|
e.destroy();
|
|
@@ -1099,19 +1147,20 @@ const A = {
|
|
|
1099
1147
|
}, G = {
|
|
1100
1148
|
name: "draggable",
|
|
1101
1149
|
create(e, t) {
|
|
1102
|
-
return new
|
|
1150
|
+
return new r(e, {
|
|
1103
1151
|
selector: t.selector ?? "",
|
|
1104
1152
|
dropZoneSelector: t["drop-zone-selector"] ?? "",
|
|
1105
1153
|
axis: t.axis ?? "both",
|
|
1106
1154
|
mode: t.mode ?? "drop",
|
|
1107
|
-
disabled: t.disabled === "true"
|
|
1155
|
+
disabled: t.disabled === "true",
|
|
1156
|
+
animate: t.animate !== "false"
|
|
1108
1157
|
});
|
|
1109
1158
|
},
|
|
1110
1159
|
destroy(e) {
|
|
1111
1160
|
e.destroy();
|
|
1112
1161
|
},
|
|
1113
1162
|
update(e, t) {
|
|
1114
|
-
"selector" in t && (e.selector = t.selector), "drop-zone-selector" in t && (e.dropZoneSelector = t["drop-zone-selector"]), "axis" in t && (e.axis = t.axis), "mode" in t && (e.mode = t.mode), "disabled" in t && (e.disabled = t.disabled === "true");
|
|
1163
|
+
"selector" in t && (e.selector = t.selector), "drop-zone-selector" in t && (e.dropZoneSelector = t["drop-zone-selector"]), "axis" in t && (e.axis = t.axis), "mode" in t && (e.mode = t.mode), "disabled" in t && (e.disabled = t.disabled === "true"), "animate" in t && (e.animate = t.animate !== "false");
|
|
1115
1164
|
}
|
|
1116
1165
|
}, K = {
|
|
1117
1166
|
name: "range-selectable",
|
|
@@ -1131,7 +1180,7 @@ const A = {
|
|
|
1131
1180
|
}, q = {
|
|
1132
1181
|
name: "resizable",
|
|
1133
1182
|
create(e, t) {
|
|
1134
|
-
return new
|
|
1183
|
+
return new n(e, {
|
|
1135
1184
|
handleSelector: t["handle-selector"] ?? "",
|
|
1136
1185
|
axis: t.axis ?? "horizontal",
|
|
1137
1186
|
min: t.min ? Number(t.min) : void 0,
|
|
@@ -1144,7 +1193,15 @@ const A = {
|
|
|
1144
1193
|
e.destroy();
|
|
1145
1194
|
},
|
|
1146
1195
|
update(e, t) {
|
|
1147
|
-
"axis" in t && (e.axis = t.axis), "min" in t
|
|
1196
|
+
if ("axis" in t && (e.axis = t.axis), "min" in t) {
|
|
1197
|
+
let n = t.min, r = Number(n);
|
|
1198
|
+
n !== "" && !isNaN(r) && (e.min = r);
|
|
1199
|
+
}
|
|
1200
|
+
if ("max" in t) {
|
|
1201
|
+
let n = t.max, r = Number(n);
|
|
1202
|
+
n !== "" && !isNaN(r) && (e.max = r);
|
|
1203
|
+
}
|
|
1204
|
+
"disabled" in t && (e.disabled = t.disabled === "true"), "reverse" in t && (e.reverse = t.reverse === "true");
|
|
1148
1205
|
}
|
|
1149
1206
|
}, J = {
|
|
1150
1207
|
name: "virtualizable",
|
|
@@ -1158,7 +1215,14 @@ const A = {
|
|
|
1158
1215
|
e.destroy();
|
|
1159
1216
|
},
|
|
1160
1217
|
update(e, t) {
|
|
1161
|
-
|
|
1218
|
+
if ("item-height" in t) {
|
|
1219
|
+
let n = t["item-height"], r = Number(n);
|
|
1220
|
+
n !== "" && !isNaN(r) && (e.itemHeight = r);
|
|
1221
|
+
}
|
|
1222
|
+
if ("overscan" in t) {
|
|
1223
|
+
let n = t.overscan, r = Number(n);
|
|
1224
|
+
n !== "" && !isNaN(r) && (e.overscan = r);
|
|
1225
|
+
}
|
|
1162
1226
|
}
|
|
1163
1227
|
}, Y = {
|
|
1164
1228
|
name: "selectable",
|
|
@@ -1188,7 +1252,7 @@ const A = {
|
|
|
1188
1252
|
e.destroy();
|
|
1189
1253
|
},
|
|
1190
1254
|
update(e, t) {
|
|
1191
|
-
"selector" in t && (e.selector = t.selector), "disabled" in t && (e.disabled = t.disabled === "true");
|
|
1255
|
+
"selector" in t && (e.selector = t.selector), "text-field" in t && (e.textField = t["text-field"] ?? "textContent"), "disabled" in t && (e.disabled = t.disabled === "true");
|
|
1192
1256
|
}
|
|
1193
1257
|
}, Z = {
|
|
1194
1258
|
name: "clippable",
|
|
@@ -1218,7 +1282,15 @@ const A = {
|
|
|
1218
1282
|
e.destroy();
|
|
1219
1283
|
},
|
|
1220
1284
|
update(e, t) {
|
|
1221
|
-
|
|
1285
|
+
if ("threshold" in t) {
|
|
1286
|
+
let n = t.threshold, r = Number(n);
|
|
1287
|
+
n !== "" && !isNaN(r) && (e.threshold = r);
|
|
1288
|
+
}
|
|
1289
|
+
if ("velocity-threshold" in t) {
|
|
1290
|
+
let n = t["velocity-threshold"], r = Number(n);
|
|
1291
|
+
n !== "" && !isNaN(r) && (e.velocityThreshold = r);
|
|
1292
|
+
}
|
|
1293
|
+
"axis" in t && (e.axis = t.axis), "disabled" in t && (e.disabled = t.disabled === "true");
|
|
1222
1294
|
}
|
|
1223
1295
|
}, $ = {
|
|
1224
1296
|
name: "editable",
|
|
@@ -1239,7 +1311,7 @@ const A = {
|
|
|
1239
1311
|
* Register all built-in trait adapters with the global trait registry.
|
|
1240
1312
|
* Call once at app startup to enable `traits="..."` attribute on UIElement subclasses.
|
|
1241
1313
|
*/
|
|
1242
|
-
function
|
|
1243
|
-
|
|
1314
|
+
function ne() {
|
|
1315
|
+
s(A), s(j), s(M), s(N), s(P), s(F), s(I), s(L), s(R), s(z), s(B), s(V), s(H), s(U), s(W), s(G), s(K), s(q), s(J), s(Y), s(X), s(Z), s(Q), s($);
|
|
1244
1316
|
}
|
|
1245
|
-
export { w as A, m as B, M as C, O as D, k as E, y as F,
|
|
1317
|
+
export { w as A, m as B, M as C, O as D, k as E, y as F, d as H, v as I, _ as L, S as M, x as N, D as O, b as P, g as R, N as S, A as T, te as U, p as V, f as W, R as _, X as a, F as b, q as c, W as d, U as f, z as g, B as h, Z as i, C as j, T as k, K as l, V as m, $ as n, Y as o, H as p, Q as r, J as s, ne as t, G as u, L as v, j as w, P as x, I as y, h as z };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/collapsible-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"collapsible-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/collapsible-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,qBAAqB,CAelE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copyable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/copyable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"copyable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/copyable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,cAAc,CAiBxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draggable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/draggable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"draggable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/draggable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,cAAc,CAqBzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hoverable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/hoverable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"hoverable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/hoverable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,eAAe,CAuB1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intersectable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/intersectable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"intersectable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/intersectable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,mBAAmB,CAkClE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/resizable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"resizable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/resizable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,gBAAgB,CA4B3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/searchable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"searchable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/searchable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,gBAAgB,CAe5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sortable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/sortable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"sortable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/sortable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,cAAc,CAaxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swipeable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/swipeable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"swipeable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/swipeable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,eAAe,CAyB1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtualizable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/virtualizable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"virtualizable-adapter.d.ts","sourceRoot":"","sources":["../../../src/traits/adapters/virtualizable-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,uBAAuB,CAqBtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible-controller.d.ts","sourceRoot":"","sources":["../../src/traits/collapsible-controller.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,mGAAmG;AACnG,qBAAa,qBAAqB;;IAChC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"collapsible-controller.d.ts","sourceRoot":"","sources":["../../src/traits/collapsible-controller.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,mGAAmG;AACnG,qBAAa,qBAAqB;;IAChC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;gBAML,IAAI,EAAE,WAAW,EAAE,OAAO,GAAE,kBAAuB;IAK/D,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,SAAS,CAAC,GAAG,EAAE,OAAO,EAGzB;IAED,MAAM,IAAI,IAAI;IAiCd,QAAQ,IAAI,IAAI;IA+BhB,MAAM,IAAI,IAAI;IAKd,OAAO,IAAI,IAAI;CAchB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-controller.d.ts","sourceRoot":"","sources":["../../src/traits/dialog-controller.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,WAAW,CAAC;CAC5D;AAED,+FAA+F;AAC/F,qBAAa,gBAAgB;;IAC3B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;gBAKf,IAAI,EAAE,WAAW,EAAE,OAAO,GAAE,aAAkB;IAM1D,IAAI,IAAI,IAAI,OAAO,CAElB;IAED,SAAS,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"dialog-controller.d.ts","sourceRoot":"","sources":["../../src/traits/dialog-controller.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,WAAW,CAAC;CAC5D;AAED,+FAA+F;AAC/F,qBAAa,gBAAgB;;IAC3B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;gBAKf,IAAI,EAAE,WAAW,EAAE,OAAO,GAAE,aAAkB;IAM1D,IAAI,IAAI,IAAI,OAAO,CAElB;IAED,SAAS,IAAI,IAAI;IAiBjB,KAAK,IAAI,IAAI;IAOb,OAAO,IAAI,IAAI;CAoChB"}
|
|
@@ -4,6 +4,8 @@ export interface DragOptions {
|
|
|
4
4
|
axis?: 'vertical' | 'horizontal' | 'both';
|
|
5
5
|
mode?: 'drop' | 'slot' | 'preview';
|
|
6
6
|
disabled?: boolean;
|
|
7
|
+
/** Enable view-transition animation for preview mode grid reordering (default: true). */
|
|
8
|
+
animate?: boolean;
|
|
7
9
|
}
|
|
8
10
|
/** Enables pointer-driven drag-and-drop with drop, slot, or preview reordering. */
|
|
9
11
|
export declare class DragController {
|
|
@@ -14,6 +16,7 @@ export declare class DragController {
|
|
|
14
16
|
axis: 'vertical' | 'horizontal' | 'both';
|
|
15
17
|
mode: 'drop' | 'slot' | 'preview';
|
|
16
18
|
disabled: boolean;
|
|
19
|
+
animate: boolean;
|
|
17
20
|
constructor(host: HTMLElement, options: DragOptions);
|
|
18
21
|
attach(): void;
|
|
19
22
|
detach(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag-controller.d.ts","sourceRoot":"","sources":["../../src/traits/drag-controller.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"drag-controller.d.ts","sourceRoot":"","sources":["../../src/traits/drag-controller.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yFAAyF;IACzF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,mFAAmF;AACnF,qBAAa,cAAc;;IACzB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;IACzC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;gBAkBL,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW;IAWnD,MAAM,IAAI,IAAI;IAQd,MAAM,IAAI,IAAI;IASd,OAAO,IAAI,IAAI;CAkiBhB"}
|
|
@@ -3,7 +3,7 @@ export interface DropZoneOptions {
|
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
multiple?: boolean;
|
|
5
5
|
}
|
|
6
|
-
/** Handles native drag-and-drop file/data reception, dispatching `ui-drop-enter`, `ui-drop-leave`, and `ui-drop
|
|
6
|
+
/** Handles native drag-and-drop file/data reception, dispatching `ui-drop-enter`, `ui-drop-leave`, and `ui-drop` events. */
|
|
7
7
|
export declare class DropZoneController {
|
|
8
8
|
#private;
|
|
9
9
|
readonly host: HTMLElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-zone-controller.d.ts","sourceRoot":"","sources":["../../src/traits/drop-zone-controller.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,
|
|
1
|
+
{"version":3,"file":"drop-zone-controller.d.ts","sourceRoot":"","sources":["../../src/traits/drop-zone-controller.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,4HAA4H;AAC5H,qBAAa,kBAAkB;;IAC7B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;gBAKN,IAAI,EAAE,WAAW,EAAE,OAAO,GAAE,eAAoB;IAQ5D,MAAM,IAAI,IAAI;IASd,MAAM,IAAI,IAAI;IAYd,OAAO,IAAI,IAAI;CA8EhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-trap-controller.d.ts","sourceRoot":"","sources":["../../src/traits/focus-trap-controller.ts"],"names":[],"mappings":"AAEA,sGAAsG;AACtG,qBAAa,mBAAmB;;IAC9B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;gBAKf,IAAI,EAAE,WAAW;IAI7B,MAAM,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"focus-trap-controller.d.ts","sourceRoot":"","sources":["../../src/traits/focus-trap-controller.ts"],"names":[],"mappings":"AAEA,sGAAsG;AACtG,qBAAa,mBAAmB;;IAC9B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;gBAKf,IAAI,EAAE,WAAW;IAI7B,MAAM,IAAI,IAAI;IAyCd,OAAO,IAAI,IAAI;IAaf,OAAO,IAAI,IAAI;CAGhB"}
|