@endge/ui-vue 0.34.0 → 0.36.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/ui/layout/EndgeShell.vue.d.ts +2 -0
- package/dist/ui/render/entities/EndgePage.vue.d.ts +2 -948
- package/dist/vue.js +124 -120
- package/package.json +4 -4
package/dist/vue.js
CHANGED
|
@@ -2,9 +2,9 @@ var Al = Object.defineProperty;
|
|
|
2
2
|
var Ol = (e, t, n) => t in e ? Al(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ee = (e, t, n) => Ol(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { Endge as F, ENDGE_SFC_RENDER_ADAPTER_PROTOCOL_VERSION as Hn, ENDGE_SFC_RENDER_ADAPTER_PROTOCOL as Bn, resolveFilterSelectPresentation as zl, ENDGE_KEYBOARD_CONTEXT_RAPH_PATH as Fr, matchesComponentSFCInteractionKeyboardCondition as Vl, normalizeComponentSFCInteractionKeyboardCondition as Nl, DEFAULT_ENDGE_TOOLTIP_CONFIGURATION as Ll, evaluateComponentSFCExpression as Hl, ComponentSFCEventBoundary as Bl, ENDGE_SFC_RENDER_ADAPTER_REQUIRED_KEYS as jl, normalizeComponentSFCInteractionTriggers as $r, matchesComponentSFCInteractionTrigger as Gl, resolveComponentSFCInteractionTriggerPlatform as Kl, normalizeComponentSFCEditTriggers as Ci, matchesComponentSFCEditTrigger as _i, getComponentSFCIntrinsicEventDefinitions as Wl, createEndgeTooltipDomId as Ii, TABLE_RUNTIME_ACTION_IDS as we, normalizeComponentSFCTableSort as ql, normalizeComponentSFCTableColumnPin as Ul, normalizeComponentSFCTableColumnVisibility as Xl, normalizeComponentSFCTableColumnMenu as Yl, normalizeComponentSFCTableRowMenu as Jl, normalizeComponentSFCTableColumnPinMode as Zl, normalizeComponentSFCTableSortMode as Ql, parseEndgeTooltipMarkdown as ea, evaluateEndgeStyleSupport as ta, EndgeModule as na, compileComponentSFCExpression as oa } from "@endge/core";
|
|
5
|
-
import { Raph as
|
|
5
|
+
import { Raph as nt, DataPath as ra, RaphNode as ia } from "@endge/raph";
|
|
6
6
|
import { subscribeKeyboardState as sa, getKeyboardStateSnapshot as la, isoDateTimeToTimeInput as aa, isoToDateTimeLocalInput as Ri, mergeTimeIntoDateTime as ua, isoToDateInput as ca, timeToTimeInput as da, randomString as fa } from "@endge/utils";
|
|
7
|
-
import { ref as B, watch as ue, toRaw as ga, getCurrentScope as pa, onScopeDispose as
|
|
7
|
+
import { ref as B, watch as ue, toRaw as ga, getCurrentScope as pa, onScopeDispose as Qe, defineComponent as ve, h as ht, computed as x, openBlock as T, createElementBlock as P, toDisplayString as de, createCommentVNode as ce, createVNode as ke, unref as U, shallowRef as Je, onBeforeUnmount as Ke, Fragment as Ie, renderList as Ve, createBlock as Pe, reactive as Ei, nextTick as mt, onMounted as jn, Teleport as xi, withModifiers as pt, normalizeStyle as At, createElementVNode as G, shallowReactive as ha, normalizeClass as jt, provide as qo, renderSlot as _n, isVNode as ki, cloneVNode as Mi, getCurrentInstance as Ti, inject as Mn, mergeProps as Ue, withKeys as Pr, withDirectives as Fi, vModelText as ma, isRef as va, watchEffect as Sa, triggerRef as $o, vShow as ya, markRaw as Gt, onBeforeMount as ba, onUnmounted as wa } from "vue";
|
|
8
8
|
function Ca(e, t, n) {
|
|
9
9
|
const o = F.context, r = B(o.getState(e, n) ?? t());
|
|
10
10
|
let i = !1, s = !1;
|
|
@@ -31,7 +31,7 @@ function Ca(e, t, n) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}, u = o.subscribeState(e, a), d = o.subscribe(a);
|
|
34
|
-
return pa() &&
|
|
34
|
+
return pa() && Qe(() => {
|
|
35
35
|
l(), u(), d();
|
|
36
36
|
}), r;
|
|
37
37
|
}
|
|
@@ -213,7 +213,7 @@ const Ea = ["data-loading"], xa = {
|
|
|
213
213
|
},
|
|
214
214
|
setup(e) {
|
|
215
215
|
var p;
|
|
216
|
-
const t = e, n =
|
|
216
|
+
const t = e, n = Je(t.model ?? ((p = t.runtime) == null ? void 0 : p.getRenderModel()) ?? { implementation: { kind: "generated" }, props: {}, fields: [] }), o = B(0), r = x(() => n.value.fields.filter((m) => m.type !== "Object")), i = x(() => {
|
|
217
217
|
const m = n.value.props;
|
|
218
218
|
return m && typeof m == "object" ? m : {};
|
|
219
219
|
}), s = x(() => i.value.showLabels !== !1);
|
|
@@ -232,7 +232,7 @@ const Ea = ["data-loading"], xa = {
|
|
|
232
232
|
}
|
|
233
233
|
ue(() => t.runtime, (m, S) => {
|
|
234
234
|
S && d(S), u(m), l();
|
|
235
|
-
}, { immediate: !0 }), ue(() => t.model, l),
|
|
235
|
+
}, { immediate: !0 }), ue(() => t.model, l), Ke(() => {
|
|
236
236
|
d(t.runtime), a();
|
|
237
237
|
});
|
|
238
238
|
async function g(m, S) {
|
|
@@ -331,7 +331,7 @@ const za = {
|
|
|
331
331
|
l(), await mt(), h(), S("first");
|
|
332
332
|
},
|
|
333
333
|
{ flush: "post" }
|
|
334
|
-
),
|
|
334
|
+
), Ke(() => {
|
|
335
335
|
a(), r == null || r(), r = null;
|
|
336
336
|
}), jn(() => {
|
|
337
337
|
r = F.i18n.subscribe(() => {
|
|
@@ -463,7 +463,7 @@ class Ga {
|
|
|
463
463
|
authoredId: null,
|
|
464
464
|
part: null,
|
|
465
465
|
content: null
|
|
466
|
-
}), this._disposeKeyboardWatch =
|
|
466
|
+
}), this._disposeKeyboardWatch = nt.watch([
|
|
467
467
|
Fr,
|
|
468
468
|
`${Fr}.*`
|
|
469
469
|
], () => this._reconcileActivation());
|
|
@@ -616,7 +616,7 @@ const Xa = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
616
616
|
}
|
|
617
617
|
},
|
|
618
618
|
{ flush: "post" }
|
|
619
|
-
),
|
|
619
|
+
), Ke(u);
|
|
620
620
|
function u() {
|
|
621
621
|
window.removeEventListener("resize", d), window.removeEventListener("scroll", d, !0), i == null || i.disconnect(), i = null;
|
|
622
622
|
}
|
|
@@ -680,7 +680,8 @@ const Xa = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
680
680
|
}), Ja = /* @__PURE__ */ ve({
|
|
681
681
|
__name: "EndgeShell",
|
|
682
682
|
props: {
|
|
683
|
-
tooltipAdapterId: { default: "vue-native" }
|
|
683
|
+
tooltipAdapterId: { default: "vue-native" },
|
|
684
|
+
mountStartup: { type: Boolean, default: !0 }
|
|
684
685
|
},
|
|
685
686
|
setup(e) {
|
|
686
687
|
const t = e, n = B("initializing"), o = B(null);
|
|
@@ -692,6 +693,10 @@ const Xa = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
692
693
|
qo(Di, l);
|
|
693
694
|
async function a() {
|
|
694
695
|
try {
|
|
696
|
+
if (!t.mountStartup) {
|
|
697
|
+
n.value = "ready";
|
|
698
|
+
return;
|
|
699
|
+
}
|
|
695
700
|
const d = await F.runtime.mountStartup();
|
|
696
701
|
if (r) {
|
|
697
702
|
await d.unmount();
|
|
@@ -704,7 +709,7 @@ const Xa = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
704
709
|
o.value = d, n.value = "error";
|
|
705
710
|
}
|
|
706
711
|
}
|
|
707
|
-
a(),
|
|
712
|
+
a(), Ke(() => {
|
|
708
713
|
r = !0, s == null || s(), l.dispose();
|
|
709
714
|
const d = i;
|
|
710
715
|
i = null, d == null || d.unmount();
|
|
@@ -883,7 +888,7 @@ function tu(e, t) {
|
|
|
883
888
|
if (n.length === 0)
|
|
884
889
|
return;
|
|
885
890
|
const [o, ...r] = n;
|
|
886
|
-
if (
|
|
891
|
+
if (o.kind !== "key")
|
|
887
892
|
return;
|
|
888
893
|
const i = o.key === "props" ? t.props : o.key === "$context" ? t.context : Object.hasOwn(t.locals, o.key) ? t.locals[o.key] : t.props[o.key];
|
|
889
894
|
return Ni(i, r);
|
|
@@ -894,12 +899,12 @@ function Oe(e, t) {
|
|
|
894
899
|
function Ni(e, t) {
|
|
895
900
|
return t.reduce((n, o) => {
|
|
896
901
|
if (n != null) {
|
|
897
|
-
if (o.
|
|
902
|
+
if (o.kind === "key")
|
|
898
903
|
return typeof n != "object" && typeof n != "function" ? void 0 : n[o.key];
|
|
899
|
-
if (o.
|
|
904
|
+
if (o.kind === "index")
|
|
900
905
|
return Array.isArray(n) ? n[o.index] : void 0;
|
|
901
|
-
if (o.
|
|
902
|
-
return Array.isArray(n) ? n.find((r) => r == null || typeof r != "object" ? !1 : Object.is(r[o.
|
|
906
|
+
if (o.kind === "selector")
|
|
907
|
+
return Array.isArray(n) ? n.find((r) => r == null || typeof r != "object" ? !1 : Object.is(r[o.key], o.value)) : void 0;
|
|
903
908
|
}
|
|
904
909
|
}, e);
|
|
905
910
|
}
|
|
@@ -1043,7 +1048,7 @@ const su = ve({
|
|
|
1043
1048
|
}
|
|
1044
1049
|
},
|
|
1045
1050
|
setup(e, { slots: t }) {
|
|
1046
|
-
const n =
|
|
1051
|
+
const n = Je(0);
|
|
1047
1052
|
let o = null, r = !1;
|
|
1048
1053
|
const i = (l) => {
|
|
1049
1054
|
if (!Bi(l))
|
|
@@ -1057,7 +1062,7 @@ const su = ve({
|
|
|
1057
1062
|
},
|
|
1058
1063
|
{ immediate: !0 }
|
|
1059
1064
|
);
|
|
1060
|
-
return
|
|
1065
|
+
return Ke(() => {
|
|
1061
1066
|
s(), o == null || o.off("resource:dirty", i), o = null;
|
|
1062
1067
|
}), () => {
|
|
1063
1068
|
var l;
|
|
@@ -1691,7 +1696,7 @@ function Du(e) {
|
|
|
1691
1696
|
}
|
|
1692
1697
|
function Au(e) {
|
|
1693
1698
|
const t = {};
|
|
1694
|
-
return Be(t, "padding", e.p), Be(t, "paddingTop", e.pt), Be(t, "paddingRight", e.pr), Be(t, "paddingBottom", e.pb), Be(t, "paddingLeft", e.pl), Be(t, "margin", e.m), Be(t, "marginTop", e.mt), Be(t, "marginRight", e.mr), Be(t, "marginBottom", e.mb), Be(t, "marginLeft", e.ml), qr(t, "color", e.textTone, "text"), qr(t, "background", e.backgroundTone, "background"), Ou(t, e.fontWeight ?? e.weight),
|
|
1699
|
+
return Be(t, "padding", e.p), Be(t, "paddingTop", e.pt), Be(t, "paddingRight", e.pr), Be(t, "paddingBottom", e.pb), Be(t, "paddingLeft", e.pl), Be(t, "margin", e.m), Be(t, "marginTop", e.mt), Be(t, "marginRight", e.mr), Be(t, "marginBottom", e.mb), Be(t, "marginLeft", e.ml), qr(t, "color", e.textTone, "text"), qr(t, "background", e.backgroundTone, "background"), Ou(t, e.fontWeight ?? e.weight), We(t, "color", e.color), We(t, "background", e.bg), We(t, "width", e.w), We(t, "height", e.h), We(t, "minWidth", e.minW), We(t, "minHeight", e.minH), We(t, "maxWidth", e.maxW), We(t, "maxHeight", e.maxH), We(t, "flex", e.flex), Ur(t, "gridColumn", e.colStart, e.colSpan), Ur(t, "gridRow", e.rowStart, e.rowSpan), t;
|
|
1695
1700
|
}
|
|
1696
1701
|
function qr(e, t, n, o) {
|
|
1697
1702
|
const r = String(n ?? "").trim();
|
|
@@ -1750,7 +1755,7 @@ function Be(e, t, n) {
|
|
|
1750
1755
|
const o = Xi(n, 4);
|
|
1751
1756
|
o && (e[t] = o);
|
|
1752
1757
|
}
|
|
1753
|
-
function
|
|
1758
|
+
function We(e, t, n) {
|
|
1754
1759
|
const o = Xi(n, 1);
|
|
1755
1760
|
o && (e[t] = o);
|
|
1756
1761
|
}
|
|
@@ -1940,14 +1945,14 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
1940
1945
|
ue(() => [t.host, t.ir], (a, u) => {
|
|
1941
1946
|
var d;
|
|
1942
1947
|
(d = u == null ? void 0 : u[0]) == null || d.releaseComputationResources(o);
|
|
1943
|
-
}, { flush: "sync" }),
|
|
1948
|
+
}, { flush: "sync" }), Qe(() => {
|
|
1944
1949
|
var a;
|
|
1945
1950
|
return (a = t.host) == null ? void 0 : a.releaseComputationResources(o);
|
|
1946
1951
|
});
|
|
1947
1952
|
const r = Mn(Di, null), i = F.uiRegistry.subscribe(() => {
|
|
1948
1953
|
n.value += 1;
|
|
1949
1954
|
});
|
|
1950
|
-
|
|
1955
|
+
Qe(i);
|
|
1951
1956
|
const s = x(() => Hi(
|
|
1952
1957
|
t.props,
|
|
1953
1958
|
t.renderVersion ?? 0,
|
|
@@ -2042,7 +2047,7 @@ class Ju {
|
|
|
2042
2047
|
return {};
|
|
2043
2048
|
const t = { ...this._input.props ?? {} };
|
|
2044
2049
|
for (const [n, o] of Object.entries(this._input.bindings))
|
|
2045
|
-
t[n] =
|
|
2050
|
+
t[n] = nt.get(o.path);
|
|
2046
2051
|
return t;
|
|
2047
2052
|
}
|
|
2048
2053
|
}
|
|
@@ -2073,7 +2078,7 @@ const Qi = /* @__PURE__ */ ve({
|
|
|
2073
2078
|
inspection: {}
|
|
2074
2079
|
},
|
|
2075
2080
|
setup(e) {
|
|
2076
|
-
const t = e, n =
|
|
2081
|
+
const t = e, n = Je({}), o = B(0), r = Zu();
|
|
2077
2082
|
qo(Zi, r);
|
|
2078
2083
|
let i = null, s = null;
|
|
2079
2084
|
ue(
|
|
@@ -2097,7 +2102,7 @@ const Qi = /* @__PURE__ */ ve({
|
|
|
2097
2102
|
}), s = a, i.mount();
|
|
2098
2103
|
},
|
|
2099
2104
|
{ immediate: !0 }
|
|
2100
|
-
),
|
|
2105
|
+
), Ke(() => {
|
|
2101
2106
|
l();
|
|
2102
2107
|
});
|
|
2103
2108
|
function l() {
|
|
@@ -2414,7 +2419,7 @@ const Cc = ["data-open", "data-multiple"], _c = ["aria-expanded", "aria-readonly
|
|
|
2414
2419
|
u.value = [...M];
|
|
2415
2420
|
}, { immediate: !0 }), ue(l, () => {
|
|
2416
2421
|
a.value = 0, i.value && (i.value.scrollTop = 0);
|
|
2417
|
-
}), jn(() => document.addEventListener("pointerdown", z)),
|
|
2422
|
+
}), jn(() => document.addEventListener("pointerdown", z)), Ke(() => document.removeEventListener("pointerdown", z));
|
|
2418
2423
|
async function $() {
|
|
2419
2424
|
var M;
|
|
2420
2425
|
t.disabled || t.readonly || (s.value = !s.value, s.value && h.value && (await mt(), (M = r.value) == null || M.focus()));
|
|
@@ -2454,7 +2459,7 @@ const Cc = ["data-open", "data-multiple"], _c = ["aria-expanded", "aria-readonly
|
|
|
2454
2459
|
transform: `translateY(${M * Lt}px)`
|
|
2455
2460
|
};
|
|
2456
2461
|
}
|
|
2457
|
-
return (M, Q) => (T(), P("span",
|
|
2462
|
+
return (M, Q) => (T(), P("span", Ue({
|
|
2458
2463
|
ref_key: "root",
|
|
2459
2464
|
ref: n
|
|
2460
2465
|
}, M.$attrs, {
|
|
@@ -2628,19 +2633,19 @@ const os = "__endgeStyleRowClass", rs = Symbol("endge.table.row-style-meta");
|
|
|
2628
2633
|
function Kc(e) {
|
|
2629
2634
|
return {
|
|
2630
2635
|
context: e,
|
|
2631
|
-
grid:
|
|
2632
|
-
header:
|
|
2633
|
-
body:
|
|
2634
|
-
row:
|
|
2635
|
-
groupRow:
|
|
2636
|
+
grid: Ye(e, "grid"),
|
|
2637
|
+
header: Ye(e, "header"),
|
|
2638
|
+
body: Ye(e, "body"),
|
|
2639
|
+
row: Ye(e, "row"),
|
|
2640
|
+
groupRow: Ye(e, "group-row")
|
|
2636
2641
|
};
|
|
2637
2642
|
}
|
|
2638
2643
|
function is(e, t) {
|
|
2639
2644
|
return Array.from({ length: t }, () => ({
|
|
2640
|
-
headerCell:
|
|
2641
|
-
headerContent:
|
|
2642
|
-
cell:
|
|
2643
|
-
cellContent:
|
|
2645
|
+
headerCell: Ye(e.context, "header-cell"),
|
|
2646
|
+
headerContent: Ye(e.context, "header-content"),
|
|
2647
|
+
cell: Ye(e.context, "cell"),
|
|
2648
|
+
cellContent: Ye(e.context, "cell-content")
|
|
2644
2649
|
}));
|
|
2645
2650
|
}
|
|
2646
2651
|
function Wc(e) {
|
|
@@ -2706,7 +2711,7 @@ function Ao(e, t) {
|
|
|
2706
2711
|
function Yc(e) {
|
|
2707
2712
|
return { part: e, "data-endge-part": e, class: [] };
|
|
2708
2713
|
}
|
|
2709
|
-
function
|
|
2714
|
+
function Ye(e, t) {
|
|
2710
2715
|
const n = e.styleParent, o = {
|
|
2711
2716
|
part: t,
|
|
2712
2717
|
"data-endge-part": t,
|
|
@@ -3318,7 +3323,7 @@ Zo.resolveFilterValue = (e) => {
|
|
|
3318
3323
|
return [i, s];
|
|
3319
3324
|
};
|
|
3320
3325
|
Zo.autoRemove = (e) => Ne(e) || Ne(e[0]) && Ne(e[1]);
|
|
3321
|
-
const
|
|
3326
|
+
const Xe = {
|
|
3322
3327
|
includesString: as,
|
|
3323
3328
|
includesStringSensitive: us,
|
|
3324
3329
|
equalsString: cs,
|
|
@@ -3348,12 +3353,12 @@ const Pd = {
|
|
|
3348
3353
|
createColumn: (e, t) => {
|
|
3349
3354
|
e.getAutoFilterFn = () => {
|
|
3350
3355
|
const n = t.getCoreRowModel().flatRows[0], o = n == null ? void 0 : n.getValue(e.id);
|
|
3351
|
-
return typeof o == "string" ?
|
|
3356
|
+
return typeof o == "string" ? Xe.includesString : typeof o == "number" ? Xe.inNumberRange : typeof o == "boolean" || o !== null && typeof o == "object" ? Xe.equals : Array.isArray(o) ? Xe.arrIncludes : Xe.weakEquals;
|
|
3352
3357
|
}, e.getFilterFn = () => {
|
|
3353
3358
|
var n, o;
|
|
3354
3359
|
return Xn(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
3355
3360
|
// @ts-ignore
|
|
3356
|
-
(n = (o = t.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? n :
|
|
3361
|
+
(n = (o = t.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? n : Xe[e.columnDef.filterFn]
|
|
3357
3362
|
);
|
|
3358
3363
|
}, e.getCanFilter = () => {
|
|
3359
3364
|
var n, o, r;
|
|
@@ -3885,12 +3890,12 @@ const Jd = {
|
|
|
3885
3890
|
};
|
|
3886
3891
|
},
|
|
3887
3892
|
createTable: (e) => {
|
|
3888
|
-
e.getGlobalAutoFilterFn = () =>
|
|
3893
|
+
e.getGlobalAutoFilterFn = () => Xe.includesString, e.getGlobalFilterFn = () => {
|
|
3889
3894
|
var t, n;
|
|
3890
3895
|
const {
|
|
3891
3896
|
globalFilterFn: o
|
|
3892
3897
|
} = e.options;
|
|
3893
|
-
return Xn(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (t = (n = e.options.filterFns) == null ? void 0 : n[o]) != null ? t :
|
|
3898
|
+
return Xn(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (t = (n = e.options.filterFns) == null ? void 0 : n[o]) != null ? t : Xe[o];
|
|
3894
3899
|
}, e.setGlobalFilter = (t) => {
|
|
3895
3900
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
|
|
3896
3901
|
}, e.resetGlobalFilter = (t) => {
|
|
@@ -4779,7 +4784,7 @@ function yf(e) {
|
|
|
4779
4784
|
}
|
|
4780
4785
|
}, t ? ii(e) : e), o = ff(n);
|
|
4781
4786
|
if (t) {
|
|
4782
|
-
const i =
|
|
4787
|
+
const i = Je(e.data);
|
|
4783
4788
|
ue(i, () => {
|
|
4784
4789
|
o.setState((s) => ({
|
|
4785
4790
|
...s,
|
|
@@ -5689,7 +5694,7 @@ function Df(e, t, n, o, r) {
|
|
|
5689
5694
|
return { startIndex: l, endIndex: a };
|
|
5690
5695
|
}
|
|
5691
5696
|
function Af(e) {
|
|
5692
|
-
const t = new $f(U(e)), n =
|
|
5697
|
+
const t = new $f(U(e)), n = Je(t), o = t._didMount();
|
|
5693
5698
|
return ue(
|
|
5694
5699
|
() => U(e).getScrollElement(),
|
|
5695
5700
|
(r) => {
|
|
@@ -5712,7 +5717,7 @@ function Af(e) {
|
|
|
5712
5717
|
{
|
|
5713
5718
|
immediate: !0
|
|
5714
5719
|
}
|
|
5715
|
-
),
|
|
5720
|
+
), Qe(o), n;
|
|
5716
5721
|
}
|
|
5717
5722
|
function Of(e) {
|
|
5718
5723
|
return Af(
|
|
@@ -5838,14 +5843,14 @@ function Hf(e, t, n) {
|
|
|
5838
5843
|
writable: !0
|
|
5839
5844
|
}) : e[t] = n, e;
|
|
5840
5845
|
}
|
|
5841
|
-
function
|
|
5842
|
-
return
|
|
5846
|
+
function et() {
|
|
5847
|
+
return et = Object.assign ? Object.assign.bind() : function(e) {
|
|
5843
5848
|
for (var t = 1; t < arguments.length; t++) {
|
|
5844
5849
|
var n = arguments[t];
|
|
5845
5850
|
for (var o in n) ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
5846
5851
|
}
|
|
5847
5852
|
return e;
|
|
5848
|
-
},
|
|
5853
|
+
}, et.apply(null, arguments);
|
|
5849
5854
|
}
|
|
5850
5855
|
function ui(e, t) {
|
|
5851
5856
|
var n = Object.keys(e);
|
|
@@ -5857,7 +5862,7 @@ function ui(e, t) {
|
|
|
5857
5862
|
}
|
|
5858
5863
|
return n;
|
|
5859
5864
|
}
|
|
5860
|
-
function
|
|
5865
|
+
function Ge(e) {
|
|
5861
5866
|
for (var t = 1; t < arguments.length; t++) {
|
|
5862
5867
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
5863
5868
|
t % 2 ? ui(Object(n), !0).forEach(function(o) {
|
|
@@ -5909,19 +5914,19 @@ function Ho(e) {
|
|
|
5909
5914
|
}, Ho(e);
|
|
5910
5915
|
}
|
|
5911
5916
|
var Wf = "1.15.7";
|
|
5912
|
-
function
|
|
5917
|
+
function Ze(e) {
|
|
5913
5918
|
if (typeof window < "u" && window.navigator)
|
|
5914
5919
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
5915
5920
|
}
|
|
5916
|
-
var
|
|
5921
|
+
var tt = Ze(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), sn = Ze(/Edge/i), ci = Ze(/firefox/i), Yt = Ze(/safari/i) && !Ze(/chrome/i) && !Ze(/android/i), tr = Ze(/iP(ad|od|hone)/i), ys = Ze(/chrome/i) && Ze(/android/i), bs = {
|
|
5917
5922
|
capture: !1,
|
|
5918
5923
|
passive: !1
|
|
5919
5924
|
};
|
|
5920
5925
|
function Z(e, t, n) {
|
|
5921
|
-
e.addEventListener(t, n, !
|
|
5926
|
+
e.addEventListener(t, n, !tt && bs);
|
|
5922
5927
|
}
|
|
5923
5928
|
function J(e, t, n) {
|
|
5924
|
-
e.removeEventListener(t, n, !
|
|
5929
|
+
e.removeEventListener(t, n, !tt && bs);
|
|
5925
5930
|
}
|
|
5926
5931
|
function An(e, t) {
|
|
5927
5932
|
if (t) {
|
|
@@ -5993,14 +5998,14 @@ function Cs(e, t, n) {
|
|
|
5993
5998
|
}
|
|
5994
5999
|
return [];
|
|
5995
6000
|
}
|
|
5996
|
-
function
|
|
6001
|
+
function je() {
|
|
5997
6002
|
var e = document.scrollingElement;
|
|
5998
6003
|
return e || document.documentElement;
|
|
5999
6004
|
}
|
|
6000
6005
|
function pe(e, t, n, o, r) {
|
|
6001
6006
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
6002
6007
|
var i, s, l, a, u, d, g;
|
|
6003
|
-
if (e !== window && e.parentNode && e !==
|
|
6008
|
+
if (e !== window && e.parentNode && e !== je() ? (i = e.getBoundingClientRect(), s = i.top, l = i.left, a = i.bottom, u = i.right, d = i.height, g = i.width) : (s = 0, l = 0, a = window.innerHeight, u = window.innerWidth, d = window.innerHeight, g = window.innerWidth), (t || n) && e !== window && (r = r || e.parentNode, !tt))
|
|
6004
6009
|
do
|
|
6005
6010
|
if (r && r.getBoundingClientRect && (N(r, "transform") !== "none" || n && N(r, "position") !== "static")) {
|
|
6006
6011
|
var h = r.getBoundingClientRect();
|
|
@@ -6026,7 +6031,7 @@ function fi(e, t, n) {
|
|
|
6026
6031
|
for (var o = st(e, !0), r = pe(e)[t]; o; ) {
|
|
6027
6032
|
var i = pe(o)[n], s = void 0;
|
|
6028
6033
|
if (s = r >= i, !s) return o;
|
|
6029
|
-
if (o ===
|
|
6034
|
+
if (o === je()) break;
|
|
6030
6035
|
o = st(o, !1);
|
|
6031
6036
|
}
|
|
6032
6037
|
return !1;
|
|
@@ -6056,7 +6061,7 @@ function Fe(e, t) {
|
|
|
6056
6061
|
return n;
|
|
6057
6062
|
}
|
|
6058
6063
|
function gi(e) {
|
|
6059
|
-
var t = 0, n = 0, o =
|
|
6064
|
+
var t = 0, n = 0, o = je();
|
|
6060
6065
|
if (e)
|
|
6061
6066
|
do {
|
|
6062
6067
|
var r = Pt(e), i = r.a, s = r.d;
|
|
@@ -6073,19 +6078,19 @@ function qf(e, t) {
|
|
|
6073
6078
|
return -1;
|
|
6074
6079
|
}
|
|
6075
6080
|
function st(e, t) {
|
|
6076
|
-
if (!e || !e.getBoundingClientRect) return
|
|
6081
|
+
if (!e || !e.getBoundingClientRect) return je();
|
|
6077
6082
|
var n = e, o = !1;
|
|
6078
6083
|
do
|
|
6079
6084
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
6080
6085
|
var r = N(n);
|
|
6081
6086
|
if (n.clientWidth < n.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
|
|
6082
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
6087
|
+
if (!n.getBoundingClientRect || n === document.body) return je();
|
|
6083
6088
|
if (o || t) return n;
|
|
6084
6089
|
o = !0;
|
|
6085
6090
|
}
|
|
6086
6091
|
}
|
|
6087
6092
|
while (n = n.parentNode);
|
|
6088
|
-
return
|
|
6093
|
+
return je();
|
|
6089
6094
|
}
|
|
6090
6095
|
function Uf(e, t) {
|
|
6091
6096
|
if (e && t)
|
|
@@ -6140,7 +6145,7 @@ function Yf() {
|
|
|
6140
6145
|
target: r,
|
|
6141
6146
|
rect: pe(r)
|
|
6142
6147
|
});
|
|
6143
|
-
var i =
|
|
6148
|
+
var i = Ge({}, e[e.length - 1].rect);
|
|
6144
6149
|
if (r.thisAnimationDuration) {
|
|
6145
6150
|
var s = Pt(r, !0);
|
|
6146
6151
|
s && (i.top -= s.f, i.left -= s.e);
|
|
@@ -6210,9 +6215,9 @@ var kt = [], _o = {
|
|
|
6210
6215
|
};
|
|
6211
6216
|
var i = t + "Global";
|
|
6212
6217
|
kt.forEach(function(s) {
|
|
6213
|
-
n[s.pluginName] && (n[s.pluginName][i] && n[s.pluginName][i](
|
|
6218
|
+
n[s.pluginName] && (n[s.pluginName][i] && n[s.pluginName][i](Ge({
|
|
6214
6219
|
sortable: n
|
|
6215
|
-
}, o)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](
|
|
6220
|
+
}, o)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](Ge({
|
|
6216
6221
|
sortable: n
|
|
6217
6222
|
}, o)));
|
|
6218
6223
|
});
|
|
@@ -6222,7 +6227,7 @@ var kt = [], _o = {
|
|
|
6222
6227
|
var a = l.pluginName;
|
|
6223
6228
|
if (!(!t.options[a] && !l.initializeByDefault)) {
|
|
6224
6229
|
var u = new l(t, n, t.options);
|
|
6225
|
-
u.sortable = t, u.options = t.options, t[a] = u,
|
|
6230
|
+
u.sortable = t, u.options = t.options, t[a] = u, et(o, u.defaults);
|
|
6226
6231
|
}
|
|
6227
6232
|
});
|
|
6228
6233
|
for (var i in t.options)
|
|
@@ -6234,7 +6239,7 @@ var kt = [], _o = {
|
|
|
6234
6239
|
getEventProperties: function(t, n) {
|
|
6235
6240
|
var o = {};
|
|
6236
6241
|
return kt.forEach(function(r) {
|
|
6237
|
-
typeof r.eventProperties == "function" &&
|
|
6242
|
+
typeof r.eventProperties == "function" && et(o, r.eventProperties.call(n[r.pluginName], t));
|
|
6238
6243
|
}), o;
|
|
6239
6244
|
},
|
|
6240
6245
|
modifyOption: function(t, n, o) {
|
|
@@ -6248,11 +6253,11 @@ function Qf(e) {
|
|
|
6248
6253
|
var t = e.sortable, n = e.rootEl, o = e.name, r = e.targetEl, i = e.cloneEl, s = e.toEl, l = e.fromEl, a = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, g = e.newDraggableIndex, h = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
|
|
6249
6254
|
if (t = t || n && n[_e], !!t) {
|
|
6250
6255
|
var S, y = t.options, C = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
6251
|
-
window.CustomEvent && !
|
|
6256
|
+
window.CustomEvent && !tt && !sn ? S = new CustomEvent(o, {
|
|
6252
6257
|
bubbles: !0,
|
|
6253
6258
|
cancelable: !0
|
|
6254
6259
|
}) : (S = document.createEvent("Event"), S.initEvent(o, !0, !0)), S.to = s || n, S.from = l || n, S.item = r || n, S.clone = i, S.oldIndex = a, S.newIndex = u, S.oldDraggableIndex = d, S.newDraggableIndex = g, S.originalEvent = h, S.pullMode = p ? p.lastPutMode : void 0;
|
|
6255
|
-
var w =
|
|
6260
|
+
var w = Ge(Ge({}, m), ln.getEventProperties(o, t));
|
|
6256
6261
|
for (var I in w)
|
|
6257
6262
|
S[I] = w[I];
|
|
6258
6263
|
n && n.dispatchEvent(S), y[C] && y[C].call(t, S);
|
|
@@ -6260,7 +6265,7 @@ function Qf(e) {
|
|
|
6260
6265
|
}
|
|
6261
6266
|
var eg = ["evt"], Ce = function(t, n) {
|
|
6262
6267
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = Bf(o, eg);
|
|
6263
|
-
ln.pluginEvent.bind(L)(t, n,
|
|
6268
|
+
ln.pluginEvent.bind(L)(t, n, Ge({
|
|
6264
6269
|
dragEl: k,
|
|
6265
6270
|
parentEl: le,
|
|
6266
6271
|
ghostEl: j,
|
|
@@ -6295,7 +6300,7 @@ var eg = ["evt"], Ce = function(t, n) {
|
|
|
6295
6300
|
}, i));
|
|
6296
6301
|
};
|
|
6297
6302
|
function be(e) {
|
|
6298
|
-
Qf(
|
|
6303
|
+
Qf(Ge({
|
|
6299
6304
|
putSortable: me,
|
|
6300
6305
|
cloneEl: se,
|
|
6301
6306
|
targetEl: k,
|
|
@@ -6306,9 +6311,9 @@ function be(e) {
|
|
|
6306
6311
|
newDraggableIndex: ot
|
|
6307
6312
|
}, e));
|
|
6308
6313
|
}
|
|
6309
|
-
var k, le, j, ie, gt, In, se, rt, Ft, xe, Zt, ot, yn, me, Tt = !1, On = !1, zn = [], ct, Ae, Io, Ro, pi, hi, Wt, Mt, Qt, en = !1, bn = !1, Rn, ye, Eo = [], Bo = !1, Vn = [], Yn = typeof document < "u", wn = tr, mi = sn ||
|
|
6314
|
+
var k, le, j, ie, gt, In, se, rt, Ft, xe, Zt, ot, yn, me, Tt = !1, On = !1, zn = [], ct, Ae, Io, Ro, pi, hi, Wt, Mt, Qt, en = !1, bn = !1, Rn, ye, Eo = [], Bo = !1, Vn = [], Yn = typeof document < "u", wn = tr, mi = sn || tt ? "cssFloat" : "float", tg = Yn && !ys && !tr && "draggable" in document.createElement("div"), xs = (function() {
|
|
6310
6315
|
if (Yn) {
|
|
6311
|
-
if (
|
|
6316
|
+
if (tt)
|
|
6312
6317
|
return !1;
|
|
6313
6318
|
var e = document.createElement("x");
|
|
6314
6319
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
@@ -6383,7 +6388,7 @@ var dt = function(t) {
|
|
|
6383
6388
|
function L(e, t) {
|
|
6384
6389
|
if (!(e && e.nodeType && e.nodeType === 1))
|
|
6385
6390
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
6386
|
-
this.el = e, this.options = t =
|
|
6391
|
+
this.el = e, this.options = t = et({}, t), e[_e] = this;
|
|
6387
6392
|
var n = {
|
|
6388
6393
|
group: null,
|
|
6389
6394
|
sort: !0,
|
|
@@ -6436,7 +6441,7 @@ function L(e, t) {
|
|
|
6436
6441
|
Ms(t);
|
|
6437
6442
|
for (var r in this)
|
|
6438
6443
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
6439
|
-
this.nativeDraggable = t.forceFallback ? !1 : tg, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? Z(e, "pointerdown", this._onTapStart) : (Z(e, "mousedown", this._onTapStart), Z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (Z(e, "dragover", this), Z(e, "dragenter", this)), zn.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []),
|
|
6444
|
+
this.nativeDraggable = t.forceFallback ? !1 : tg, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? Z(e, "pointerdown", this._onTapStart) : (Z(e, "mousedown", this._onTapStart), Z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (Z(e, "dragover", this), Z(e, "dragenter", this)), zn.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), et(this, Yf());
|
|
6440
6445
|
}
|
|
6441
6446
|
L.prototype = /** @lends Sortable.prototype */
|
|
6442
6447
|
{
|
|
@@ -6509,7 +6514,7 @@ L.prototype = /** @lends Sortable.prototype */
|
|
|
6509
6514
|
Cs(k, d.trim(), xo);
|
|
6510
6515
|
}), Z(l, "dragover", dt), Z(l, "mousemove", dt), Z(l, "touchmove", dt), s.supportPointer ? (Z(l, "pointerup", r._onDrop), !this.nativeDraggable && Z(l, "pointercancel", r._onDrop)) : (Z(l, "mouseup", r._onDrop), Z(l, "touchend", r._onDrop), Z(l, "touchcancel", r._onDrop)), ci && this.nativeDraggable && (this.options.touchStartThreshold = 4, k.draggable = !0), Ce("delayStart", this, {
|
|
6511
6516
|
evt: t
|
|
6512
|
-
}), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(sn ||
|
|
6517
|
+
}), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(sn || tt))) {
|
|
6513
6518
|
if (L.eventCanceled) {
|
|
6514
6519
|
this._onDrop();
|
|
6515
6520
|
return;
|
|
@@ -6604,7 +6609,7 @@ L.prototype = /** @lends Sortable.prototype */
|
|
|
6604
6609
|
if (wn) {
|
|
6605
6610
|
for (ye = t; N(ye, "position") === "static" && N(ye, "transform") === "none" && ye !== document; )
|
|
6606
6611
|
ye = ye.parentNode;
|
|
6607
|
-
ye !== document.body && ye !== document.documentElement ? (ye === document && (ye =
|
|
6612
|
+
ye !== document.body && ye !== document.documentElement ? (ye === document && (ye = je()), n.top += ye.scrollTop, n.left += ye.scrollLeft) : ye = je(), Eo = gi(ye);
|
|
6608
6613
|
}
|
|
6609
6614
|
j = k.cloneNode(!0), Ee(j, o.ghostClass, !1), Ee(j, o.fallbackClass, !0), Ee(j, o.dragClass, !0), N(j, "transition", ""), N(j, "transform", ""), N(j, "box-sizing", "border-box"), N(j, "margin", 0), N(j, "top", n.top), N(j, "left", n.left), N(j, "width", n.width), N(j, "height", n.height), N(j, "opacity", "0.8"), N(j, "position", wn ? "absolute" : "fixed"), N(j, "zIndex", "100000"), N(j, "pointerEvents", "none"), L.ghost = j, t.appendChild(j), N(j, "transform-origin", pi / parseInt(j.style.width) * 100 + "% " + hi / parseInt(j.style.height) * 100 + "%");
|
|
6610
6615
|
}
|
|
@@ -6629,7 +6634,7 @@ L.prototype = /** @lends Sortable.prototype */
|
|
|
6629
6634
|
var n = this.el, o = t.target, r, i, s, l = this.options, a = l.group, u = L.active, d = yn === a, g = l.sort, h = me || u, p, m = this, S = !1;
|
|
6630
6635
|
if (Bo) return;
|
|
6631
6636
|
function y(he, St) {
|
|
6632
|
-
Ce(he, m,
|
|
6637
|
+
Ce(he, m, Ge({
|
|
6633
6638
|
evt: t,
|
|
6634
6639
|
isOwner: d,
|
|
6635
6640
|
axis: p ? "vertical" : "horizontal",
|
|
@@ -6877,7 +6882,7 @@ function ig(e) {
|
|
|
6877
6882
|
}
|
|
6878
6883
|
function Cn(e, t, n, o, r, i, s, l) {
|
|
6879
6884
|
var a, u = e[_e], d = u.options.onMove, g;
|
|
6880
|
-
return window.CustomEvent && !
|
|
6885
|
+
return window.CustomEvent && !tt && !sn ? a = new CustomEvent("move", {
|
|
6881
6886
|
bubbles: !0,
|
|
6882
6887
|
cancelable: !0
|
|
6883
6888
|
}) : (a = document.createEvent("Event"), a.initEvent("move", !0, !0)), a.to = t, a.from = e, a.dragged = n, a.draggedRect = o, a.related = r || t, a.relatedRect = i || pe(t), a.willInsertAfter = l, a.originalEvent = s, e.dispatchEvent(a), d && (g = d.call(u, a, s)), g;
|
|
@@ -6962,7 +6967,7 @@ L.mount = function() {
|
|
|
6962
6967
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
|
|
6963
6968
|
if (!o.prototype || !o.prototype.constructor)
|
|
6964
6969
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
6965
|
-
o.utils && (L.utils =
|
|
6970
|
+
o.utils && (L.utils = Ge(Ge({}, L.utils), o.utils)), ln.mount(o);
|
|
6966
6971
|
});
|
|
6967
6972
|
};
|
|
6968
6973
|
L.create = function(e, t) {
|
|
@@ -7002,7 +7007,7 @@ function gg() {
|
|
|
7002
7007
|
},
|
|
7003
7008
|
_handleAutoScroll: function(n, o) {
|
|
7004
7009
|
var r = this, i = (n.touches ? n.touches[0] : n).clientX, s = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(i, s);
|
|
7005
|
-
if (Nn = n, o || this.options.forceAutoScrollFallback || sn ||
|
|
7010
|
+
if (Nn = n, o || this.options.forceAutoScrollFallback || sn || tt || Yt) {
|
|
7006
7011
|
To(n, this.options, l, o);
|
|
7007
7012
|
var a = st(l, !0);
|
|
7008
7013
|
Ko && (!Ut || i !== ko || s !== Mo) && (Ut && vi(), Ut = setInterval(function() {
|
|
@@ -7010,14 +7015,14 @@ function gg() {
|
|
|
7010
7015
|
u !== a && (a = u, xn()), To(n, r.options, u, o);
|
|
7011
7016
|
}, 10), ko = i, Mo = s);
|
|
7012
7017
|
} else {
|
|
7013
|
-
if (!this.options.bubbleScroll || st(l, !0) ===
|
|
7018
|
+
if (!this.options.bubbleScroll || st(l, !0) === je()) {
|
|
7014
7019
|
xn();
|
|
7015
7020
|
return;
|
|
7016
7021
|
}
|
|
7017
7022
|
To(n, this.options, st(l, !1), !1);
|
|
7018
7023
|
}
|
|
7019
7024
|
}
|
|
7020
|
-
},
|
|
7025
|
+
}, et(e, {
|
|
7021
7026
|
pluginName: "scroll",
|
|
7022
7027
|
initializeByDefault: !0
|
|
7023
7028
|
});
|
|
@@ -7032,7 +7037,7 @@ function vi() {
|
|
|
7032
7037
|
}
|
|
7033
7038
|
var To = _s(function(e, t, n, o) {
|
|
7034
7039
|
if (t.scroll) {
|
|
7035
|
-
var r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, l = t.scrollSpeed, a =
|
|
7040
|
+
var r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, l = t.scrollSpeed, a = je(), u = !1, d;
|
|
7036
7041
|
Go !== n && (Go = n, xn(), qt = t.scroll, d = t.scrollFn, qt === !0 && (qt = st(n, !0)));
|
|
7037
7042
|
var g = 0, h = qt;
|
|
7038
7043
|
do {
|
|
@@ -7080,7 +7085,7 @@ or.prototype = {
|
|
|
7080
7085
|
},
|
|
7081
7086
|
drop: $s
|
|
7082
7087
|
};
|
|
7083
|
-
|
|
7088
|
+
et(or, {
|
|
7084
7089
|
pluginName: "revertOnSpill"
|
|
7085
7090
|
});
|
|
7086
7091
|
function rr() {
|
|
@@ -7092,7 +7097,7 @@ rr.prototype = {
|
|
|
7092
7097
|
},
|
|
7093
7098
|
drop: $s
|
|
7094
7099
|
};
|
|
7095
|
-
|
|
7100
|
+
et(rr, {
|
|
7096
7101
|
pluginName: "removeOnSpill"
|
|
7097
7102
|
});
|
|
7098
7103
|
L.mount(new gg());
|
|
@@ -7115,7 +7120,7 @@ const pg = ["aria-expanded"], hg = ["aria-label"], mg = { class: "endge-tanstack
|
|
|
7115
7120
|
() => t.table.getState().columnOrder,
|
|
7116
7121
|
() => u(),
|
|
7117
7122
|
{ deep: !0, immediate: !0 }
|
|
7118
|
-
), ue(o, () => g()), jn(() => document.addEventListener("pointerdown", h)),
|
|
7123
|
+
), ue(o, () => g()), jn(() => document.addEventListener("pointerdown", h)), Ke(() => {
|
|
7119
7124
|
document.removeEventListener("pointerdown", h), s == null || s.destroy();
|
|
7120
7125
|
});
|
|
7121
7126
|
function u() {
|
|
@@ -7263,9 +7268,9 @@ const pg = ["aria-expanded"], hg = ["aria-label"], mg = { class: "endge-tanstack
|
|
|
7263
7268
|
renderCell: {}
|
|
7264
7269
|
},
|
|
7265
7270
|
setup(e) {
|
|
7266
|
-
const t = e, n = x(() => Array.isArray(t.columns) ? t.columns : []), o = x(() => Array.isArray(t.defaultSort) ? t.defaultSort : []), r = x(() => Array.isArray(t.defaultPin) ? t.defaultPin : []), i = x(() => Array.isArray(t.defaultHidden) ? t.defaultHidden : []), s = x(() => Array.isArray(t.pageSizes) ? t.pageSizes : [25, 50, 100]), l = x(() => Array.isArray(t.eventBindings) ? t.eventBindings : []), a = Mn(Zi, null), u = Mn(Ss, null), d = x(() => (u == null ? void 0 : u.showSearch.value) === !0), g = x(() => (u == null ? void 0 : u.filterRuntime.value) ?? null), h = x(() => (u == null ? void 0 : u.showFilters.value) === !0 && g.value != null), p = x(() => d.value || h.value), m = x(() => (u == null ? void 0 : u.filtersVisible.value) === !0), S = B(null), y =
|
|
7271
|
+
const t = e, n = x(() => Array.isArray(t.columns) ? t.columns : []), o = x(() => Array.isArray(t.defaultSort) ? t.defaultSort : []), r = x(() => Array.isArray(t.defaultPin) ? t.defaultPin : []), i = x(() => Array.isArray(t.defaultHidden) ? t.defaultHidden : []), s = x(() => Array.isArray(t.pageSizes) ? t.pageSizes : [25, 50, 100]), l = x(() => Array.isArray(t.eventBindings) ? t.eventBindings : []), a = Mn(Zi, null), u = Mn(Ss, null), d = x(() => (u == null ? void 0 : u.showSearch.value) === !0), g = x(() => (u == null ? void 0 : u.filterRuntime.value) ?? null), h = x(() => (u == null ? void 0 : u.showFilters.value) === !0 && g.value != null), p = x(() => d.value || h.value), m = x(() => (u == null ? void 0 : u.filtersVisible.value) === !0), S = B(null), y = Je(io(t.source)), C = B(0);
|
|
7267
7272
|
let w = null;
|
|
7268
|
-
const I = x(() => t.tableId ? `table:${t.tableId}` : null), _ = B(tl()), E = B(nl()), $ = B(to("order", n.value.map((c) => c.key))), H = B(dr()), K = B(fr("size", {})), z = B(Ys()), V =
|
|
7273
|
+
const I = x(() => t.tableId ? `table:${t.tableId}` : null), _ = B(tl()), E = B(nl()), $ = B(to("order", n.value.map((c) => c.key))), H = B(dr()), K = B(fr("size", {})), z = B(Ys()), V = Je(/* @__PURE__ */ new Set()), D = B(null), Y = Je(null), te = x(() => t.selectionMode !== "none"), M = x(() => t.selectionTrigger === "auto" ? "control" : t.selectionTrigger), Q = x(() => te.value && (M.value === "control" || M.value === "both")), q = x(() => te.value && (M.value === "row" || M.value === "both")), re = x(() => Q.value ? [ft, ...$.value.filter((c) => c !== ft)] : $.value.filter((c) => c !== ft));
|
|
7269
7274
|
let he = null;
|
|
7270
7275
|
const St = x(() => [
|
|
7271
7276
|
...Q.value ? [{
|
|
@@ -7437,7 +7442,7 @@ const pg = ["aria-expanded"], hg = ["aria-label"], mg = { class: "endge-tanstack
|
|
|
7437
7442
|
}
|
|
7438
7443
|
), ue(() => [y.value, n.value], ([c, f]) => {
|
|
7439
7444
|
lu(t.menuContext, c, t.rowKey, f);
|
|
7440
|
-
}, { flush: "sync" }),
|
|
7445
|
+
}, { flush: "sync" }), Ke(() => {
|
|
7441
7446
|
var c, f;
|
|
7442
7447
|
(f = (c = t.menuContext) == null ? void 0 : c.host) == null || f.releaseComputationResources(t.menuContext.consumerScope), he && clearTimeout(he), Zn == null || Zn(), $t(t.boundaryId), w == null || w(), w = null;
|
|
7443
7448
|
}), jn(() => {
|
|
@@ -8120,7 +8125,7 @@ const pg = ["aria-expanded"], hg = ["aria-label"], mg = { class: "endge-tanstack
|
|
|
8120
8125
|
], 512)), [
|
|
8121
8126
|
[ya, m.value]
|
|
8122
8127
|
]) : ce("", !0),
|
|
8123
|
-
G("div",
|
|
8128
|
+
G("div", Ue({
|
|
8124
8129
|
ref_key: "scrollRoot",
|
|
8125
8130
|
ref: S
|
|
8126
8131
|
}, e.styleContract.grid.attrs, { class: "endge-tanstack-table__viewport" }), [
|
|
@@ -8132,9 +8137,9 @@ const pg = ["aria-expanded"], hg = ["aria-label"], mg = { class: "endge-tanstack
|
|
|
8132
8137
|
class: "endge-tanstack-table__table",
|
|
8133
8138
|
style: At({ width: Ws.value })
|
|
8134
8139
|
}, [
|
|
8135
|
-
G("thead",
|
|
8140
|
+
G("thead", Ue(e.styleContract.header.attrs, { class: "endge-tanstack-table__header" }), [
|
|
8136
8141
|
G("tr", null, [
|
|
8137
|
-
(T(!0), P(Ie, null, Ve(an.value, (b) => (T(), P("th",
|
|
8142
|
+
(T(!0), P(Ie, null, Ve(an.value, (b) => (T(), P("th", Ue({
|
|
8138
8143
|
key: b.id
|
|
8139
8144
|
}, { ref_for: !0 }, Te(b.column) ? {} : wt(b.column).styleSurfaces.headerCell.attrs, {
|
|
8140
8145
|
class: ["endge-tanstack-table__head", {
|
|
@@ -8161,7 +8166,7 @@ const pg = ["aria-expanded"], hg = ["aria-label"], mg = { class: "endge-tanstack
|
|
|
8161
8166
|
disabled: !b.column.getCanSort() && !no(wt(b.column)),
|
|
8162
8167
|
onClick: (R) => il(b.column, R)
|
|
8163
8168
|
}, [
|
|
8164
|
-
G("span",
|
|
8169
|
+
G("span", Ue({ ref_for: !0 }, wt(b.column).styleSurfaces.headerContent.attrs, { class: "endge-tanstack-table__head-title" }), [
|
|
8165
8170
|
ke(U(ri), {
|
|
8166
8171
|
render: b.column.columnDef.header,
|
|
8167
8172
|
props: b.getContext()
|
|
@@ -8191,11 +8196,11 @@ const pg = ["aria-expanded"], hg = ["aria-label"], mg = { class: "endge-tanstack
|
|
|
8191
8196
|
], 16, Pg))), 128))
|
|
8192
8197
|
])
|
|
8193
8198
|
], 16),
|
|
8194
|
-
G("tbody",
|
|
8199
|
+
G("tbody", Ue(e.styleContract.body.attrs, {
|
|
8195
8200
|
class: "endge-tanstack-table__body",
|
|
8196
8201
|
style: { height: `${Gs.value}px` }
|
|
8197
8202
|
}), [
|
|
8198
|
-
(T(!0), P(Ie, null, Ve(ur.value, (b) => (T(), P("tr",
|
|
8203
|
+
(T(!0), P(Ie, null, Ve(ur.value, (b) => (T(), P("tr", Ue({
|
|
8199
8204
|
key: String(b.virtualItem.key)
|
|
8200
8205
|
}, { ref_for: !0 }, Sl(b.styledRow, b.row.id), {
|
|
8201
8206
|
"data-index": b.rowIndex,
|
|
@@ -8211,7 +8216,7 @@ const pg = ["aria-expanded"], hg = ["aria-label"], mg = { class: "endge-tanstack
|
|
|
8211
8216
|
onContextmenu: (R) => bl(b, R),
|
|
8212
8217
|
onKeydown: (R) => wl(b, R)
|
|
8213
8218
|
}), [
|
|
8214
|
-
(T(!0), P(Ie, null, Ve(Os(b.row), (R) => (T(), P("td",
|
|
8219
|
+
(T(!0), P(Ie, null, Ve(Os(b.row), (R) => (T(), P("td", Ue({
|
|
8215
8220
|
key: R.id
|
|
8216
8221
|
}, { ref_for: !0 }, Te(R.column) ? {} : pl(b.styledRow, wt(R.column), hl(b.row.id, R.column.id)), {
|
|
8217
8222
|
class: ["endge-tanstack-table__cell", {
|
|
@@ -8586,19 +8591,19 @@ const yp = (e) => {
|
|
|
8586
8591
|
anchor: h,
|
|
8587
8592
|
kind: o,
|
|
8588
8593
|
policy: {
|
|
8589
|
-
side:
|
|
8590
|
-
align:
|
|
8591
|
-
openDelay:
|
|
8592
|
-
closeDelay:
|
|
8594
|
+
side: qe(e, "side"),
|
|
8595
|
+
align: qe(e, "align"),
|
|
8596
|
+
openDelay: qe(e, "openDelay", "open-delay"),
|
|
8597
|
+
closeDelay: qe(e, "closeDelay", "close-delay")
|
|
8593
8598
|
},
|
|
8594
|
-
authoredId: yi(
|
|
8595
|
-
className:
|
|
8596
|
-
part: yi(
|
|
8599
|
+
authoredId: yi(qe(e, "id")),
|
|
8600
|
+
className: qe(e, "class"),
|
|
8601
|
+
part: yi(qe(e, "part")),
|
|
8597
8602
|
renderContent: () => {
|
|
8598
8603
|
if (o === "text")
|
|
8599
|
-
return String(
|
|
8604
|
+
return String(qe(e, "text") ?? "");
|
|
8600
8605
|
if (o === "markdown")
|
|
8601
|
-
return Cp(e,
|
|
8606
|
+
return Cp(e, qe(e, "markdown"));
|
|
8602
8607
|
const p = Ip(e.context);
|
|
8603
8608
|
return e.renderNodes(i, p);
|
|
8604
8609
|
}
|
|
@@ -8624,7 +8629,7 @@ function Dt(e, t) {
|
|
|
8624
8629
|
rel: "noreferrer noopener"
|
|
8625
8630
|
}, Dt(e, n.children)));
|
|
8626
8631
|
}
|
|
8627
|
-
function
|
|
8632
|
+
function qe(e, ...t) {
|
|
8628
8633
|
for (const n of t) {
|
|
8629
8634
|
const o = e.node.props[n];
|
|
8630
8635
|
if (o)
|
|
@@ -8861,7 +8866,7 @@ class zp extends na {
|
|
|
8861
8866
|
}), this._unsubscribeRuntimeScopes = F.runtime.subscribe(() => this._refreshStyles()), this._unsubscribeUIRegistry = F.uiRegistry.subscribe(() => this._refreshStyles()), this._refreshStyles();
|
|
8862
8867
|
return;
|
|
8863
8868
|
}
|
|
8864
|
-
|
|
8869
|
+
nt.addPhase({
|
|
8865
8870
|
name: "watch",
|
|
8866
8871
|
routes: ["*"],
|
|
8867
8872
|
traversal: "dirty-only",
|
|
@@ -8871,7 +8876,7 @@ class zp extends na {
|
|
|
8871
8876
|
n.length && n.forEach((o) => {
|
|
8872
8877
|
var i, s, l, a;
|
|
8873
8878
|
const r = (s = (i = o.node) == null ? void 0 : i.meta) == null ? void 0 : s.path;
|
|
8874
|
-
!((a = (l = o.node) == null ? void 0 : l.meta) != null && a.ref) || typeof r != "string" || (o.node.meta.ref.value =
|
|
8879
|
+
!((a = (l = o.node) == null ? void 0 : l.meta) != null && a.ref) || typeof r != "string" || (o.node.meta.ref.value = nt.get(r));
|
|
8875
8880
|
});
|
|
8876
8881
|
}
|
|
8877
8882
|
}), this._unsubscribeWorkspace = F.workspace.subscribe(() => {
|
|
@@ -8888,21 +8893,20 @@ class zp extends na {
|
|
|
8888
8893
|
return Ca(n, o, r);
|
|
8889
8894
|
}
|
|
8890
8895
|
makeRaphRef(n) {
|
|
8891
|
-
const o = B(
|
|
8896
|
+
const o = B(nt.get(n)), r = new ia(nt.runtime, {
|
|
8892
8897
|
id: `watch:${fa(5)}`,
|
|
8893
8898
|
meta: {
|
|
8894
8899
|
ref: o,
|
|
8895
8900
|
type: "watch",
|
|
8896
8901
|
path: n
|
|
8897
8902
|
}
|
|
8898
|
-
})
|
|
8899
|
-
return je.app.addNode(r), je.app.track(r, `${n}[*]`, {
|
|
8903
|
+
}), i = nt.runtime.track(r, `${n}[*]`, {
|
|
8900
8904
|
wildcardDynamic: !0
|
|
8901
|
-
})
|
|
8902
|
-
|
|
8903
|
-
|
|
8905
|
+
});
|
|
8906
|
+
return Ke(() => {
|
|
8907
|
+
i(), r.dispose();
|
|
8904
8908
|
}), ue(o, () => {
|
|
8905
|
-
|
|
8909
|
+
nt.set(n, o.value);
|
|
8906
8910
|
}), o;
|
|
8907
8911
|
}
|
|
8908
8912
|
makeVocabRef(n) {
|
|
@@ -8940,7 +8944,7 @@ function Qp(e) {
|
|
|
8940
8944
|
const n = B(F.context.getFacetSelection(t)), o = F.context.subscribe(() => {
|
|
8941
8945
|
n.value = F.context.getFacetSelection(t);
|
|
8942
8946
|
});
|
|
8943
|
-
return
|
|
8947
|
+
return Qe(o), {
|
|
8944
8948
|
current: n,
|
|
8945
8949
|
locked: () => F.context.isFacetLockedBySession(t),
|
|
8946
8950
|
setCurrent: (r) => F.commands.execute({
|
|
@@ -8953,7 +8957,7 @@ function eh() {
|
|
|
8953
8957
|
const e = F.context, t = B(e.currentLocale), n = e.subscribe(() => {
|
|
8954
8958
|
t.value = e.currentLocale;
|
|
8955
8959
|
});
|
|
8956
|
-
return
|
|
8960
|
+
return Qe(n), {
|
|
8957
8961
|
current: t,
|
|
8958
8962
|
setCurrent: (o) => F.commands.execute({ type: "context:set-locale", payload: { locale: o } })
|
|
8959
8963
|
};
|
|
@@ -8962,7 +8966,7 @@ function th() {
|
|
|
8962
8966
|
const e = F.context, t = B(e.currentTheme), n = e.subscribe(() => {
|
|
8963
8967
|
t.value = e.currentTheme;
|
|
8964
8968
|
});
|
|
8965
|
-
return
|
|
8969
|
+
return Qe(n), {
|
|
8966
8970
|
current: t,
|
|
8967
8971
|
setCurrent: (o) => F.commands.execute({ type: "context:set-theme", payload: { theme: o } })
|
|
8968
8972
|
};
|
|
@@ -8971,18 +8975,18 @@ function nh() {
|
|
|
8971
8975
|
const e = F.context, t = B(e.currentTimezone), n = e.subscribe(() => {
|
|
8972
8976
|
t.value = e.currentTimezone;
|
|
8973
8977
|
});
|
|
8974
|
-
return
|
|
8978
|
+
return Qe(n), {
|
|
8975
8979
|
current: t,
|
|
8976
8980
|
setCurrent: (o) => F.commands.execute({ type: "context:set-timezone", payload: { timezone: o } })
|
|
8977
8981
|
};
|
|
8978
8982
|
}
|
|
8979
8983
|
function Wo(e) {
|
|
8980
|
-
const t =
|
|
8984
|
+
const t = Je(e), n = e.subscribe(() => $o(t));
|
|
8981
8985
|
return { refObj: t, unsubscribe: n };
|
|
8982
8986
|
}
|
|
8983
8987
|
function Vp(e) {
|
|
8984
8988
|
const { refObj: t, unsubscribe: n } = Wo(e);
|
|
8985
|
-
return
|
|
8989
|
+
return Qe(n), t;
|
|
8986
8990
|
}
|
|
8987
8991
|
const oh = () => Vp(F.ui);
|
|
8988
8992
|
function rh(e) {
|
|
@@ -9106,7 +9110,7 @@ const Lp = { class: "endge-page" }, Hp = /* @__PURE__ */ ve({
|
|
|
9106
9110
|
filterRuntime: x(() => t.filterRuntime),
|
|
9107
9111
|
searchValue: n,
|
|
9108
9112
|
filtersVisible: o
|
|
9109
|
-
}), (r, i) => (T(), Pe(Qi,
|
|
9113
|
+
}), (r, i) => (T(), Pe(Qi, Ue(r.$attrs, {
|
|
9110
9114
|
host: e.host,
|
|
9111
9115
|
input: e.input
|
|
9112
9116
|
}), null, 16, ["host", "input"]));
|