@nonoun/native-ui 0.2.6 → 0.2.8
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 +91 -80
- package/dist/components.css +99 -80
- package/dist/core/form-associable.d.ts +2 -2
- package/dist/core/ui-element.d.ts +2 -0
- package/dist/core/ui-element.d.ts.map +1 -1
- package/dist/custom-elements.json +3728 -1586
- package/dist/dialog-controller.js +56 -39
- 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/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 +32 -13
- package/dist/native-ui-lean.css +91 -80
- package/dist/native-ui.css +99 -80
- package/dist/native-ui.js +7 -32
- package/dist/register-all.js +2 -2
- package/dist/register-all2.js +147 -76
- 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/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.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 +4 -4
- package/dist/ui-element.js +13 -8
- package/dist/ui-icon-element.js +708 -465
- package/package.json +1 -1
package/dist/native-ui.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as e, t } from "./uid.js";
|
|
2
2
|
import { i as n, n as ee, r as te, t as ne } from "./define.js";
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
3
|
+
import { a as r, c as i, d as a, f as o, i as s, l as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./dialog-controller.js";
|
|
4
|
+
import { A as g, B as _, C as v, D as y, E as b, F as x, H as S, I as C, L as w, M as T, N as E, O as D, P as O, R as k, S as A, T as j, U as M, V as N, W as P, _ as F, a as I, b as L, c as R, d as z, f as B, g as V, h as H, i as U, j as W, k as G, l as K, m as q, n as J, o as Y, p as X, r as Z, s as re, t as ie, u as ae, v as oe, w as se, x as ce, y as le, z as ue } from "./register-all2.js";
|
|
5
|
+
import { a as de, i as fe, n as pe, r as me, s as he, t as ge } from "./ui-element.js";
|
|
6
|
+
import { $ as _e, A as ve, B as ye, C as be, Ct as xe, D as Se, Dt as Ce, E as we, Et as Te, F as Ee, G as De, H as Oe, I as ke, J as Ae, K as je, L as Q, M as Me, N as Ne, O as Pe, P as Fe, Q as Ie, R as Le, S as Re, St as ze, T as Be, Tt as Ve, U as He, V as Ue, W as We, X as Ge, Y as Ke, Z as qe, _ as Je, _t as Ye, a as Xe, at as Ze, b as Qe, bt as $e, c as et, ct as tt, d as nt, dt as rt, et as it, f as at, ft as ot, g as st, gt as ct, h as lt, ht as ut, i as dt, it as ft, j as pt, k as mt, l as ht, lt as gt, m as _t, mt as vt, n as yt, nt as bt, o as xt, ot as St, p as Ct, pt as wt, q as Tt, r as Et, rt as Dt, s as Ot, st as kt, t as At, tt as jt, u as Mt, ut as Nt, v as Pt, vt as Ft, w as It, wt as Lt, x as Rt, xt as zt, y as Bt, yt as Vt, z as Ht } from "./ui-icon-element.js";
|
|
7
7
|
var $ = class extends Event {
|
|
8
8
|
context;
|
|
9
9
|
callback;
|
|
@@ -14,7 +14,7 @@ var $ = class extends Event {
|
|
|
14
14
|
}), this.context = e, this.callback = t;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function Ut(e) {
|
|
18
18
|
return class extends e {
|
|
19
19
|
#e = /* @__PURE__ */ new Map();
|
|
20
20
|
provideContext(e, t) {
|
|
@@ -33,7 +33,7 @@ function Vt(e) {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Wt(e) {
|
|
37
37
|
return class extends e {
|
|
38
38
|
#e = /* @__PURE__ */ new Map();
|
|
39
39
|
requestContext(e, t) {
|
|
@@ -46,29 +46,4 @@ function Ht(e) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
var Ut = class extends X {}, Wt = class extends X {
|
|
51
|
-
#e = null;
|
|
52
|
-
get open() {
|
|
53
|
-
return this.hasAttribute("open");
|
|
54
|
-
}
|
|
55
|
-
set open(e) {
|
|
56
|
-
this.toggleAttribute("open", e);
|
|
57
|
-
}
|
|
58
|
-
toggle() {
|
|
59
|
-
this.open = !this.open;
|
|
60
|
-
}
|
|
61
|
-
setup() {
|
|
62
|
-
super.setup(), this.querySelector(".layout-resize-handle") && (this.#e = new Q(this, {
|
|
63
|
-
handleSelector: ".layout-resize-handle",
|
|
64
|
-
axis: "horizontal",
|
|
65
|
-
min: 280,
|
|
66
|
-
max: 480,
|
|
67
|
-
reverse: !0
|
|
68
|
-
}));
|
|
69
|
-
}
|
|
70
|
-
teardown() {
|
|
71
|
-
this.#e?.destroy(), this.#e = null, super.teardown();
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
export { pe as CalendarStore, o as ClipboardController, i as CollapsibleController, Ae as ColumnResizeController, Ht as ContextConsumer, Vt as ContextProvider, $ as ContextRequestEvent, f as CopyController, Be as DataListController, zt as DialogController, Pt as DismissController, Ft as DismissStack, jt as DragController, A as DropZoneController, l as EditController, p as FocusTrapController, De as FormAssociable, Nt as GestureRouter, m as HoverController, d as IntersectController, It as ListNavigateController, Rt as PopoverController, Lt as PressController, y as RangeSelectController, Q as ResizeController, At as RovingFocusController, h as SearchController, xe as SelectController, G as SelectionController, re as SortController, u as SwipeController, Me as TableStore, a as ToastController, Bt as ToastManager, we as UIAccordion, Pe as UIAccordionItem, fe as UIAvatar, Oe as UIBadge, Ct as UIBreadcrumb, le as UIBreadcrumbItem, Ie as UIButton, Ce as UICalendar, yt as UICard, Ue as UIChatInput, Re as UICheckbox, et as UICombobox, We as UICommand, lt as UICommandEmpty, gt as UICommandGroup, bt as UICommandInput, He as UICommandItem, rt as UICommandList, Ke as UIController, Z as UIDialog, Tt as UIDrawer, X as UIElement, se as UIField, _t as UIIcon, Ye as UIInput, de as UIInputOtp, Ut as UIKbd, Le as UILayoutChat, Wt as UILayoutInspector, ht as UILayoutSidebar, ct as UILayoutSidebarItem, Ze as UIListbox, Je as UINav, it as UINavGroup, ut as UINavGroupHeader, Xe as UINavItem, at as UIOption, qe as UIOptionGroup, dt as UIOptionGroupHeader, Ee as UIPagination, mt as UIRadio, st as UIRadioGroup, Se as UIRange, nt as UISection, Ge as UISegment, vt as UISegmentedControl, be as UISelect, Fe as UISlide, xt as UISlideshow, $e as UISwitch, _e as UITab, ft as UITabPanel, ve as UITabPanels, he as UITable, ce as UITableBody, Te as UITableCell, je as UITableHead, ye as UITableHeader, kt as UITableRow, Ne as UITabs, tt as UITextarea, Ve as UIToolbar, oe as UITooltip, ze as UITree, Dt as UITreeItem, j as ValidateController, ie as VirtualScrollController, ee as batch, k as clippableAdapter, x as collapsibleAdapter, J as collectTraitOptions, te as computed, r as copyableAdapter, ge as createCalendarStore, Et as createDataList, ke as createDisabledEffect, me as createTableStore, c as debugReactive, ne as define, T as dialogableAdapter, O as dismissableAdapter, B as draggableAdapter, U as droppableAdapter, P as editableAdapter, e as effect, St as fetchDataOptions, V as focusTrappableAdapter, ot as getIcon, q as getRegisteredTraitNames, K as getTrait, Mt as getTraitRuntime, H as hoverableAdapter, g as intersectableAdapter, v as isComputed, b as isSignal, E as listNavigableAdapter, pt as onIconRegistered, Ot as parseDataOptions, Y as parseTraitAttribute, I as popoverableAdapter, _ as pressableAdapter, ue as prop, M as rangeSelectableAdapter, z as registerAllTraits, Qe as registerIcon, ae as registerTrait, w as resizableAdapter, D as rovingFocusableAdapter, S as searchableAdapter, F as selectableAdapter, n as signal, C as sortableAdapter, L as swipeableAdapter, wt as syncProp, N as toastableAdapter, t as uid, s as untrack, W as validatableAdapter, R as virtualizableAdapter };
|
|
49
|
+
export { Q as CalendarStore, x as ClipboardController, y as CollapsibleController, De as ColumnResizeController, Wt as ContextConsumer, Ut as ContextProvider, $ as ContextRequestEvent, E as CopyController, ze as DataListController, m as DialogController, s as DismissController, c as DismissStack, i as DragController, W as DropZoneController, C as EditController, D as FocusTrapController, Lt as FormAssociable, o as GestureRouter, O as HoverController, T as IntersectController, l as ListNavigateController, f as PopoverController, u as PressController, N as RangeSelectController, p as ResizeController, r as RovingFocusController, k as SearchController, Ee as SelectController, ue as SelectionController, g as SortController, w as SwipeController, je as TableStore, b as ToastController, h as ToastManager, it as UIAccordion, _e as UIAccordionItem, Pe as UIAvatar, Se as UIBadge, Be as UIBreadcrumb, It as UIBreadcrumbItem, Vt as UIButton, ke as UICalendar, nt as UICard, at as UIChatInput, kt as UICheckbox, Ne as UICombobox, wt as UICommand, tt as UICommandEmpty, gt as UICommandGroup, ot as UICommandInput, Nt as UICommandItem, rt as UICommandList, Ct as UIController, Ie as UIDialog, Re as UIDrawer, ge as UIElement, Me as UIField, At as UIIcon, Ft as UIInput, mt as UIInputOtp, we as UIKbd, xt as UILayoutChat, Xe as UILayoutInspector, et as UILayoutSidebar, Ot as UILayoutSidebarItem, Ye as UIListbox, Je as UINav, lt as UINavGroup, _t as UINavGroupHeader, st as UINavItem, ct as UIOption, vt as UIOptionGroup, ut as UIOptionGroupHeader, be as UIPagination, Ze as UIRadio, ft as UIRadioGroup, ve as UIRange, Mt as UISection, bt as UISegment, Dt as UISegmentedControl, Fe as UISelect, Pt as UISlide, Bt as UISlideshow, St as UISwitch, Ge as UITab, Ke as UITabPanel, Ae as UITabPanels, We as UITable, Oe as UITableBody, ye as UITableCell, He as UITableHead, Ht as UITableHeader, Ue as UITableRow, qe as UITabs, pt as UITextarea, ht as UIToolbar, jt as UITooltip, Rt as UITree, Qe as UITreeItem, G as ValidateController, _ as VirtualScrollController, ee as batch, U as clippableAdapter, F as collapsibleAdapter, pe as collectTraitOptions, te as computed, v as copyableAdapter, Le as createCalendarStore, xe as createDataList, Ce as createDisabledEffect, Tt as createTableStore, S as debugReactive, ne as define, z as dialogableAdapter, H as dismissableAdapter, ae as draggableAdapter, ce as droppableAdapter, J as editableAdapter, e as effect, $e as fetchDataOptions, oe as focusTrappableAdapter, yt as getIcon, fe as getRegisteredTraitNames, de as getTrait, a as getTraitRuntime, se as hoverableAdapter, A as intersectableAdapter, M as isComputed, P as isSignal, B as listNavigableAdapter, Et as onIconRegistered, zt as parseDataOptions, me as parseTraitAttribute, X as popoverableAdapter, j as pressableAdapter, Ve as prop, K as rangeSelectableAdapter, ie as registerAllTraits, dt as registerIcon, he as registerTrait, R as resizableAdapter, V as rovingFocusableAdapter, I as searchableAdapter, Y as selectableAdapter, n as signal, L as sortableAdapter, Z as swipeableAdapter, Te as syncProp, q as toastableAdapter, t as uid, d as untrack, le as validatableAdapter, re as virtualizableAdapter };
|
package/dist/register-all.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as e } from "./define.js";
|
|
2
|
-
import { $ as t, A as n, B as r, C as i, D as a, E as o, H as s,
|
|
3
|
-
e("ui-button",
|
|
2
|
+
import { $ as t, A as n, B as r, C as i, D as a, E as o, H as s, I as c, J as l, M as u, N as d, O as f, P as p, Q as m, S as h, T as g, U as _, V as v, W as y, X as b, Y as x, Z as S, _ as C, _t as w, a as T, at as E, b as D, c as O, ct as k, d as A, dt as j, et as M, f as N, ft as P, g as F, gt as I, h as L, ht as R, it as z, j as B, k as V, l as H, lt as U, m as W, mt as G, nt as K, o as q, ot as J, p as Y, pt as X, rt as Z, s as Q, st as $, t as ee, tt as te, u as ne, ut as re, v as ie, vt as ae, w as oe, x as se, y as ce, yt as le, z as ue } from "./ui-icon-element.js";
|
|
3
|
+
e("ui-button", le), e("ui-input", ae), e("ui-listbox", w), e("ui-option", I), e("ui-option-group", G), e("ui-option-group-header", R), e("ui-select", p), e("ui-combobox", d), e("ui-command", X), e("ui-command-input", P), e("ui-command-list", j), e("ui-command-group", U), e("ui-command-item", re), e("ui-command-empty", k), e("ui-checkbox", $), e("ui-switch", J), e("ui-radio", E), e("ui-radio-group", z), e("ui-segmented-control", Z), e("ui-segment", K), e("ui-tooltip", te), e("ui-accordion", M), e("ui-accordion-item", t), e("ui-dialog", m), e("ui-tabs", S), e("ui-tab", b), e("ui-tab-panel", x), e("ui-tab-panels", l), e("ui-table", y), e("ui-table-head", _), e("ui-table-body", s), e("ui-table-row", v), e("ui-table-header", ue), e("ui-table-cell", r), e("ui-calendar", c), e("ui-field", u), e("ui-textarea", B), e("ui-range", n), e("ui-input-otp", V), e("ui-avatar", f), e("ui-badge", a), e("ui-kbd", o), e("ui-breadcrumb", g), e("ui-breadcrumb-item", oe), e("ui-pagination", i), e("ui-drawer", h), e("ui-tree", se), e("ui-tree-item", D), e("ui-slideshow", ce), e("ui-slide", ie), e("ui-nav", C), e("ui-nav-group", L), e("ui-nav-group-header", W), e("ui-nav-item", F), e("ui-chat-input", N), e("ui-controller", Y), e("ui-card", A), e("ui-section", ne), e("ui-toolbar", H), e("ui-layout-sidebar", O), e("ui-layout-sidebar-item", Q), e("ui-layout-chat", q), e("ui-layout-inspector", T), e("ui-icon", ee);
|
package/dist/register-all2.js
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import { f as e, i as t
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 { f as e, i as t } from "./uid.js";
|
|
2
|
+
import { a as n, c as r, d as i, i as a, n as o, o as s, r as c, s as ee, t as l } from "./dialog-controller.js";
|
|
3
|
+
import { s as u } from "./ui-element.js";
|
|
4
|
+
function d(n) {
|
|
14
5
|
let r = e.get(n);
|
|
15
6
|
return r ? r instanceof t ? {
|
|
16
7
|
type: "signal",
|
|
@@ -29,7 +20,7 @@ function re(n) {
|
|
|
29
20
|
dependencyCount: 0
|
|
30
21
|
};
|
|
31
22
|
}
|
|
32
|
-
function
|
|
23
|
+
function te(e) {
|
|
33
24
|
return typeof e == "object" && !!e && Symbol.toStringTag in e && e[Symbol.toStringTag] === "Signal";
|
|
34
25
|
}
|
|
35
26
|
function f(e) {
|
|
@@ -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 i().toastManager.toast(this.host, e);
|
|
920
943
|
}
|
|
921
944
|
dismissToast(e) {
|
|
922
|
-
|
|
945
|
+
i().toastManager.dismiss(e);
|
|
923
946
|
}
|
|
924
947
|
dismissAllToasts() {
|
|
925
|
-
|
|
948
|
+
i().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 s(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 n(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 a(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 c(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 o(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 l(e);
|
|
1095
1143
|
},
|
|
1096
1144
|
destroy(e) {
|
|
1097
1145
|
e.destroy();
|
|
@@ -1099,7 +1147,7 @@ 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",
|
|
@@ -1131,7 +1179,7 @@ const A = {
|
|
|
1131
1179
|
}, q = {
|
|
1132
1180
|
name: "resizable",
|
|
1133
1181
|
create(e, t) {
|
|
1134
|
-
return new
|
|
1182
|
+
return new ee(e, {
|
|
1135
1183
|
handleSelector: t["handle-selector"] ?? "",
|
|
1136
1184
|
axis: t.axis ?? "horizontal",
|
|
1137
1185
|
min: t.min ? Number(t.min) : void 0,
|
|
@@ -1144,7 +1192,15 @@ const A = {
|
|
|
1144
1192
|
e.destroy();
|
|
1145
1193
|
},
|
|
1146
1194
|
update(e, t) {
|
|
1147
|
-
"axis" in t && (e.axis = t.axis), "min" in t
|
|
1195
|
+
if ("axis" in t && (e.axis = t.axis), "min" in t) {
|
|
1196
|
+
let n = t.min, r = Number(n);
|
|
1197
|
+
n !== "" && !isNaN(r) && (e.min = r);
|
|
1198
|
+
}
|
|
1199
|
+
if ("max" in t) {
|
|
1200
|
+
let n = t.max, r = Number(n);
|
|
1201
|
+
n !== "" && !isNaN(r) && (e.max = r);
|
|
1202
|
+
}
|
|
1203
|
+
"disabled" in t && (e.disabled = t.disabled === "true"), "reverse" in t && (e.reverse = t.reverse === "true");
|
|
1148
1204
|
}
|
|
1149
1205
|
}, J = {
|
|
1150
1206
|
name: "virtualizable",
|
|
@@ -1158,7 +1214,14 @@ const A = {
|
|
|
1158
1214
|
e.destroy();
|
|
1159
1215
|
},
|
|
1160
1216
|
update(e, t) {
|
|
1161
|
-
|
|
1217
|
+
if ("item-height" in t) {
|
|
1218
|
+
let n = t["item-height"], r = Number(n);
|
|
1219
|
+
n !== "" && !isNaN(r) && (e.itemHeight = r);
|
|
1220
|
+
}
|
|
1221
|
+
if ("overscan" in t) {
|
|
1222
|
+
let n = t.overscan, r = Number(n);
|
|
1223
|
+
n !== "" && !isNaN(r) && (e.overscan = r);
|
|
1224
|
+
}
|
|
1162
1225
|
}
|
|
1163
1226
|
}, Y = {
|
|
1164
1227
|
name: "selectable",
|
|
@@ -1188,7 +1251,7 @@ const A = {
|
|
|
1188
1251
|
e.destroy();
|
|
1189
1252
|
},
|
|
1190
1253
|
update(e, t) {
|
|
1191
|
-
"selector" in t && (e.selector = t.selector), "disabled" in t && (e.disabled = t.disabled === "true");
|
|
1254
|
+
"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
1255
|
}
|
|
1193
1256
|
}, Z = {
|
|
1194
1257
|
name: "clippable",
|
|
@@ -1218,7 +1281,15 @@ const A = {
|
|
|
1218
1281
|
e.destroy();
|
|
1219
1282
|
},
|
|
1220
1283
|
update(e, t) {
|
|
1221
|
-
|
|
1284
|
+
if ("threshold" in t) {
|
|
1285
|
+
let n = t.threshold, r = Number(n);
|
|
1286
|
+
n !== "" && !isNaN(r) && (e.threshold = r);
|
|
1287
|
+
}
|
|
1288
|
+
if ("velocity-threshold" in t) {
|
|
1289
|
+
let n = t["velocity-threshold"], r = Number(n);
|
|
1290
|
+
n !== "" && !isNaN(r) && (e.velocityThreshold = r);
|
|
1291
|
+
}
|
|
1292
|
+
"axis" in t && (e.axis = t.axis), "disabled" in t && (e.disabled = t.disabled === "true");
|
|
1222
1293
|
}
|
|
1223
1294
|
}, $ = {
|
|
1224
1295
|
name: "editable",
|
|
@@ -1239,7 +1310,7 @@ const A = {
|
|
|
1239
1310
|
* Register all built-in trait adapters with the global trait registry.
|
|
1240
1311
|
* Call once at app startup to enable `traits="..."` attribute on UIElement subclasses.
|
|
1241
1312
|
*/
|
|
1242
|
-
function
|
|
1243
|
-
|
|
1313
|
+
function ne() {
|
|
1314
|
+
u(A), u(j), u(M), u(N), u(P), u(F), u(I), u(L), u(R), u(z), u(B), u(V), u(H), u(U), u(W), u(G), u(K), u(q), u(J), u(Y), u(X), u(Z), u(Q), u($);
|
|
1244
1315
|
}
|
|
1245
|
-
export { w as A, m as B, M as C, O as D, k as E, y as F,
|
|
1316
|
+
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, f as U, p as V, te 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":"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"}
|