@endge/ui-vue 1.0.0-dev.10 → 1.0.0-dev.11
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/vue.js +488 -442
- package/package.json +3 -3
package/dist/vue.js
CHANGED
|
@@ -4,9 +4,9 @@ var Q = (e, t, n) => Kl(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import { Endge as $, ENDGE_SFC_RENDER_ADAPTER_PROTOCOL_VERSION as Gn, ENDGE_SFC_RENDER_ADAPTER_PROTOCOL as Kn, resolveFilterSelectPresentation as Wl, ENDGE_KEYBOARD_CONTEXT_RAPH_PATH as ql, matchesComponentSFCInteractionKeyboardCondition as Ul, normalizeComponentSFCInteractionKeyboardCondition as Xl, DEFAULT_ENDGE_TOOLTIP_CONFIGURATION as Yl, evaluateComponentSFCExpression as Jl, ComponentSFCEventBoundary as Zl, ENDGE_SFC_RENDER_ADAPTER_REQUIRED_KEYS as Ql, normalizeComponentSFCInteractionTriggers as Oi, matchesComponentSFCInteractionTrigger as ea, resolveComponentSFCInteractionTriggerPlatform as ta, normalizeComponentSFCEditTriggers as Mr, matchesComponentSFCEditTrigger as Tr, getComponentSFCIntrinsicEventDefinitions as na, createEndgeTooltipDomId as Fr, TABLE_RUNTIME_ACTION_IDS as we, normalizeComponentSFCTableSort as oa, normalizeComponentSFCTableColumnPin as ia, normalizeComponentSFCTableColumnVisibility as ra, normalizeComponentSFCTableColumnMenu as sa, normalizeComponentSFCTableRowMenu as la, normalizeComponentSFCTableColumnPinMode as aa, normalizeComponentSFCTableSortMode as ua, parseEndgeTooltipMarkdown as ca, evaluateEndgeStyleSupport as da, EndgeModule as fa, compileComponentSFCExpression as ga } from "@endge/core";
|
|
5
5
|
import { subscribeKeyboardState as ha, getKeyboardStateSnapshot as pa, isoDateTimeToTimeInput as ma, isoToDateTimeLocalInput as $r, mergeTimeIntoDateTime as va, isoToDateInput as Sa, timeToTimeInput as ya, randomString as ba } from "@endge/utils";
|
|
6
6
|
import { Raph as je, DataPath as wa, RaphNode as _a } from "@raphy-js/raph";
|
|
7
|
-
import { ref as
|
|
7
|
+
import { ref as j, watch as ue, toRaw as Ca, getCurrentScope as Ia, onScopeDispose as et, defineComponent as ve, h as vt, computed as x, openBlock as T, createElementBlock as P, toDisplayString as de, createCommentVNode as ce, createVNode as ke, unref as Y, shallowRef as Ze, onBeforeUnmount as We, Fragment as Ie, renderList as Ve, createBlock as De, reactive as Dr, nextTick as St, onMounted as Wn, Teleport as Pr, withModifiers as mt, normalizeStyle as At, createElementVNode as W, shallowReactive as Ra, normalizeClass as Kt, provide as Qo, renderSlot as En, isVNode as Ar, cloneVNode as Or, getCurrentInstance as zr, inject as $n, mergeProps as Xe, withKeys as zi, withDirectives as Vr, vModelText as Ea, isRef as xa, watchEffect as ka, triggerRef as zo, vShow as Ma, markRaw as Wt, onBeforeMount as Ta, onUnmounted as Fa } from "vue";
|
|
8
8
|
function $a(e, t, n) {
|
|
9
|
-
const o = $.context, i =
|
|
9
|
+
const o = $.context, i = j(o.getState(e, n) ?? t());
|
|
10
10
|
let r = !1, s = !1;
|
|
11
11
|
const l = ue(
|
|
12
12
|
i,
|
|
@@ -148,7 +148,7 @@ const Oa = ["data-loading"], za = {
|
|
|
148
148
|
},
|
|
149
149
|
emits: ["update:value"],
|
|
150
150
|
setup(e, { emit: t }) {
|
|
151
|
-
const n = e, o = t, i =
|
|
151
|
+
const n = e, o = t, i = j([]), r = j(!1), s = j(null), l = x(() => (n.field.vocab ? i.value : n.field.options).map((g) => ({
|
|
152
152
|
value: g.value,
|
|
153
153
|
label: g.label ?? String(g.value)
|
|
154
154
|
})));
|
|
@@ -213,7 +213,7 @@ const Oa = ["data-loading"], za = {
|
|
|
213
213
|
},
|
|
214
214
|
setup(e) {
|
|
215
215
|
var h;
|
|
216
|
-
const t = e, n = Ze(t.model ?? ((h = t.runtime) == null ? void 0 : h.getRenderModel()) ?? { implementation: { kind: "generated" }, props: {}, fields: [] }), o =
|
|
216
|
+
const t = e, n = Ze(t.model ?? ((h = t.runtime) == null ? void 0 : h.getRenderModel()) ?? { implementation: { kind: "generated" }, props: {}, fields: [] }), o = j(0), i = x(() => n.value.fields.filter((p) => p.type !== "Object")), r = x(() => {
|
|
217
217
|
const p = n.value.props;
|
|
218
218
|
return p && typeof p == "object" ? p : {};
|
|
219
219
|
}), s = x(() => r.value.showLabels !== !1);
|
|
@@ -277,7 +277,7 @@ function Lr() {
|
|
|
277
277
|
const e = ae.menu, t = ae.context;
|
|
278
278
|
return !e || !t ? [] : Wa(e.items);
|
|
279
279
|
}
|
|
280
|
-
const
|
|
280
|
+
const up = Lr;
|
|
281
281
|
async function Ga(e) {
|
|
282
282
|
const t = ae.context;
|
|
283
283
|
if (t)
|
|
@@ -315,7 +315,7 @@ const qa = {
|
|
|
315
315
|
}, Ya = ["d"], Ja = { class: "endge-context-menu-root__label" }, Za = /* @__PURE__ */ ve({
|
|
316
316
|
__name: "EndgeContextMenuRoot",
|
|
317
317
|
setup(e) {
|
|
318
|
-
const t =
|
|
318
|
+
const t = j(null), n = j(0), o = j(!1);
|
|
319
319
|
let i = null;
|
|
320
320
|
const r = x(() => (n.value, Lr())), s = x(() => ({
|
|
321
321
|
left: `${ae.x}px`,
|
|
@@ -640,7 +640,7 @@ const iu = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
640
640
|
manager: {}
|
|
641
641
|
},
|
|
642
642
|
setup(e) {
|
|
643
|
-
const t = e, n =
|
|
643
|
+
const t = e, n = j(null), o = j({ left: "-10000px", top: "-10000px" }), i = j("right");
|
|
644
644
|
let r = null;
|
|
645
645
|
const s = t.manager.state, l = x(() => [
|
|
646
646
|
"endge-tooltip",
|
|
@@ -689,8 +689,8 @@ const iu = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
689
689
|
function g(m, y, _, b) {
|
|
690
690
|
const E = [_, p(_)];
|
|
691
691
|
let F = S(E[0], m, y, b, 8), D = h(F.left, F.top, y, 6);
|
|
692
|
-
for (const
|
|
693
|
-
const A = S(
|
|
692
|
+
for (const B of E.slice(1)) {
|
|
693
|
+
const A = S(B, m, y, b, 8), z = h(A.left, A.top, y, 6);
|
|
694
694
|
z < D && (F = A, D = z);
|
|
695
695
|
}
|
|
696
696
|
return {
|
|
@@ -700,8 +700,8 @@ const iu = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
702
|
function S(m, y, _, b, C) {
|
|
703
|
-
const I = m === "top" || m === "bottom", E = I ? y.left : y.top, F = I ? y.width : y.height, D = I ? _.width : _.height,
|
|
704
|
-
return m === "top" ? { side: m, left:
|
|
703
|
+
const I = m === "top" || m === "bottom", E = I ? y.left : y.top, F = I ? y.width : y.height, D = I ? _.width : _.height, B = b === "start" ? E : b === "end" ? E + F - D : E + (F - D) / 2;
|
|
704
|
+
return m === "top" ? { side: m, left: B, top: y.top - _.height - C } : m === "bottom" ? { side: m, left: B, top: y.bottom + C } : m === "left" ? { side: m, left: y.left - _.width - C, top: B } : { side: m, left: y.right + C, top: B };
|
|
705
705
|
}
|
|
706
706
|
function h(m, y, _, b) {
|
|
707
707
|
return Math.max(0, b - m) + Math.max(0, b - y) + Math.max(0, m + _.width + b - window.innerWidth) + Math.max(0, y + _.height + b - window.innerHeight);
|
|
@@ -736,7 +736,7 @@ const iu = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
736
736
|
mountStartup: { type: Boolean, default: !0 }
|
|
737
737
|
},
|
|
738
738
|
setup(e) {
|
|
739
|
-
const t = e, n =
|
|
739
|
+
const t = e, n = j("initializing"), o = j(null);
|
|
740
740
|
let i = !1, r = null;
|
|
741
741
|
const s = typeof document > "u" ? null : ha(document, (d) => $.context.setKeyboardState(d)), l = new tu(
|
|
742
742
|
t.tooltipAdapterId,
|
|
@@ -924,7 +924,7 @@ function fe(e, t) {
|
|
|
924
924
|
return Jl(e.expression, t);
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function cp(e, t) {
|
|
928
928
|
return e.kind === "literal" ? e.value : du(e.path, t);
|
|
929
929
|
}
|
|
930
930
|
function Un(e, t) {
|
|
@@ -1213,14 +1213,14 @@ function bu(e, t, n, o) {
|
|
|
1213
1213
|
const D = {
|
|
1214
1214
|
...r,
|
|
1215
1215
|
target: r.target ? { ...r.target, value: b.currentTarget } : void 0
|
|
1216
|
-
},
|
|
1216
|
+
}, B = es(E.trigger);
|
|
1217
1217
|
i.routeChild(
|
|
1218
1218
|
D,
|
|
1219
1219
|
S,
|
|
1220
1220
|
Qr(b, I),
|
|
1221
1221
|
[{
|
|
1222
1222
|
name: S,
|
|
1223
|
-
modifiers:
|
|
1223
|
+
modifiers: B,
|
|
1224
1224
|
action: E.reactions[0],
|
|
1225
1225
|
actions: E.reactions,
|
|
1226
1226
|
sourceRange: E.sourceRange
|
|
@@ -2028,7 +2028,7 @@ const ss = /* @__PURE__ */ ve({
|
|
|
2028
2028
|
inspection: {}
|
|
2029
2029
|
},
|
|
2030
2030
|
setup(e) {
|
|
2031
|
-
const t = e, n =
|
|
2031
|
+
const t = e, n = j(0), o = `renderer:${zr().uid}`;
|
|
2032
2032
|
ue(() => [t.host, t.ir], (a, u) => {
|
|
2033
2033
|
var d;
|
|
2034
2034
|
(d = u == null ? void 0 : u[0]) == null || d.releaseComputationResources(o);
|
|
@@ -2167,7 +2167,7 @@ const as = /* @__PURE__ */ ve({
|
|
|
2167
2167
|
inspection: {}
|
|
2168
2168
|
},
|
|
2169
2169
|
setup(e) {
|
|
2170
|
-
const t = e, n = Ze({}), o =
|
|
2170
|
+
const t = e, n = Ze({}), o = j(0), i = uc();
|
|
2171
2171
|
Qo(ls, i);
|
|
2172
2172
|
let r = null, s = null;
|
|
2173
2173
|
ue(
|
|
@@ -2500,7 +2500,7 @@ const Ac = ["data-open", "data-multiple"], Oc = ["aria-expanded", "aria-readonly
|
|
|
2500
2500
|
},
|
|
2501
2501
|
setup(e) {
|
|
2502
2502
|
var ne;
|
|
2503
|
-
const t = e, n =
|
|
2503
|
+
const t = e, n = j(null), o = j(null), i = j(null), r = j(null), s = j(!1), l = j(""), a = j(0), u = j([]), d = `endge-native-multiselect-${((ne = zr()) == null ? void 0 : ne.uid) ?? "select"}`, g = x(() => new Set(u.value)), S = x(() => t.searchable ?? t.options.length > 10), h = x(() => t.virtualized ?? t.options.length > 10), p = x(() => {
|
|
2504
2504
|
const M = l.value.trim().toLocaleLowerCase();
|
|
2505
2505
|
return M ? t.options.filter((X) => {
|
|
2506
2506
|
const q = String(X.value).toLocaleLowerCase();
|
|
@@ -2529,19 +2529,19 @@ const Ac = ["data-open", "data-multiple"], Oc = ["aria-expanded", "aria-readonly
|
|
|
2529
2529
|
const ie = new Set(u.value);
|
|
2530
2530
|
ie.has(M) ? ie.delete(M) : ie.add(M), u.value = t.options.map((pe) => String(pe.value)).filter((pe) => ie.has(pe));
|
|
2531
2531
|
} else
|
|
2532
|
-
u.value = [M],
|
|
2532
|
+
u.value = [M], B();
|
|
2533
2533
|
await St(), (X = o.value) == null || X.dispatchEvent(new Event("input", { bubbles: !0 })), (q = o.value) == null || q.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
2534
2534
|
}
|
|
2535
2535
|
}
|
|
2536
|
-
function
|
|
2536
|
+
function B() {
|
|
2537
2537
|
s.value = !1, l.value = "";
|
|
2538
2538
|
}
|
|
2539
2539
|
function A(M) {
|
|
2540
|
-
n.value && !n.value.contains(M.target) &&
|
|
2540
|
+
n.value && !n.value.contains(M.target) && B();
|
|
2541
2541
|
}
|
|
2542
2542
|
function z(M) {
|
|
2543
2543
|
if (M.key === "Escape") {
|
|
2544
|
-
|
|
2544
|
+
B();
|
|
2545
2545
|
return;
|
|
2546
2546
|
}
|
|
2547
2547
|
(M.key === "ArrowDown" || M.key === "Enter" || M.key === " ") && (M.preventDefault(), F());
|
|
@@ -2590,7 +2590,7 @@ const Ac = ["data-open", "data-multiple"], Oc = ["aria-expanded", "aria-readonly
|
|
|
2590
2590
|
s.value ? (T(), P("div", {
|
|
2591
2591
|
key: 0,
|
|
2592
2592
|
class: "endge-native-multiselect__content",
|
|
2593
|
-
onKeydown: zi(mt(
|
|
2593
|
+
onKeydown: zi(mt(B, ["stop", "prevent"]), ["esc"])
|
|
2594
2594
|
}, [
|
|
2595
2595
|
S.value ? Vr((T(), P("input", {
|
|
2596
2596
|
key: 0,
|
|
@@ -2604,7 +2604,7 @@ const Ac = ["data-open", "data-multiple"], Oc = ["aria-expanded", "aria-readonly
|
|
|
2604
2604
|
onKeydown: [
|
|
2605
2605
|
X[1] || (X[1] = mt(() => {
|
|
2606
2606
|
}, ["stop"])),
|
|
2607
|
-
zi(mt(
|
|
2607
|
+
zi(mt(B, ["stop", "prevent"]), ["esc"])
|
|
2608
2608
|
]
|
|
2609
2609
|
}, null, 40, Lc)), [
|
|
2610
2610
|
[Ea, l.value]
|
|
@@ -2816,13 +2816,43 @@ function Je(e, t) {
|
|
|
2816
2816
|
class: [...(n == null ? void 0 : n.classes) ?? []],
|
|
2817
2817
|
"data-endge-tag": (n == null ? void 0 : n.tag) ?? "Table"
|
|
2818
2818
|
};
|
|
2819
|
-
|
|
2819
|
+
dd(o, n == null ? void 0 : n.attributes), n != null && n.id && (o["data-endge-id"] = n.id), n != null && n.states.size && (o["data-endge-state"] = [...n.states].join(" ")), n != null && n.component && (o["data-endge-component"] = n.component), n != null && n.identity && (o["data-endge-identity"] = n.identity);
|
|
2820
2820
|
const i = (n == null ? void 0 : n.ownerScopeId) ?? e.styleOwnerScopeId;
|
|
2821
2821
|
return i && (o["data-endge-scope"] = i), e.runtimeScopeIds.length && (o["data-endge-runtime-scope"] = e.runtimeScopeIds.join(" ")), o;
|
|
2822
2822
|
}
|
|
2823
|
-
|
|
2823
|
+
const cd = /* @__PURE__ */ new Set([
|
|
2824
|
+
"width",
|
|
2825
|
+
"height",
|
|
2826
|
+
"align",
|
|
2827
|
+
"valign",
|
|
2828
|
+
"bgcolor",
|
|
2829
|
+
"background",
|
|
2830
|
+
"border",
|
|
2831
|
+
"cellpadding",
|
|
2832
|
+
"cellspacing",
|
|
2833
|
+
"nowrap",
|
|
2834
|
+
"colspan",
|
|
2835
|
+
"rowspan",
|
|
2836
|
+
"span",
|
|
2837
|
+
"hidden",
|
|
2838
|
+
"title",
|
|
2839
|
+
"tabindex",
|
|
2840
|
+
"contenteditable",
|
|
2841
|
+
"draggable",
|
|
2842
|
+
"dir",
|
|
2843
|
+
"lang",
|
|
2844
|
+
"role",
|
|
2845
|
+
"inert",
|
|
2846
|
+
"popover",
|
|
2847
|
+
"accesskey",
|
|
2848
|
+
"autofocus",
|
|
2849
|
+
"scope",
|
|
2850
|
+
"headers",
|
|
2851
|
+
"abbr"
|
|
2852
|
+
]);
|
|
2853
|
+
function dd(e, t) {
|
|
2824
2854
|
for (const [n, o] of Object.entries(t ?? {}))
|
|
2825
|
-
["class", "style", "part", "id", "state", "component", "identity", "ref", "key"].includes(n) || n.startsWith("on") || (typeof o == "string" || typeof o == "number" || typeof o == "boolean") && (e[n] = o);
|
|
2855
|
+
["class", "style", "part", "id", "state", "component", "identity", "ref", "key"].includes(n) || cd.has(n.toLowerCase()) || n.startsWith("on") || (typeof o == "string" || typeof o == "number" || typeof o == "boolean") && (e[n] = o);
|
|
2826
2856
|
}
|
|
2827
2857
|
/**
|
|
2828
2858
|
* @license @lucide/vue v1.46.0 - ISC
|
|
@@ -2857,7 +2887,7 @@ const lr = (...e) => e.filter((t, n, o) => !!t && t.trim() !== "" && o.indexOf(t
|
|
|
2857
2887
|
function vo(e) {
|
|
2858
2888
|
return e != null;
|
|
2859
2889
|
}
|
|
2860
|
-
function
|
|
2890
|
+
function fd(e, t = {}) {
|
|
2861
2891
|
var S, h;
|
|
2862
2892
|
const n = t.attributeNames ?? {}, o = (p) => n[p] ?? p, i = e.size ?? e.width ?? dt.width, r = e.size ?? e.height ?? dt.height, s = ((S = e.aliases) == null ? void 0 : S.filter((p) => typeof p == "string" && p.trim() !== "").map((p) => `lucide-${p}`)) ?? [], l = [...e.name ? [`lucide-${e.name}`] : [], ...s], a = ((h = t.className) == null ? void 0 : h.split(" ").filter(Boolean)) ?? [], u = t.includeDefaultClasses === !1 ? lr(...a) : lr("lucide", ...l, ...a), d = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? dt["stroke-width"]) * Number(e.size ?? e.width ?? dt.width) / Number(t.size ?? t.width ?? dt.width) : t.strokeWidth ?? dt["stroke-width"];
|
|
2863
2893
|
return [
|
|
@@ -2899,7 +2929,7 @@ function dd(e, t = {}) {
|
|
|
2899
2929
|
* This source code is licensed under the ISC license.
|
|
2900
2930
|
* See the LICENSE file in the root directory of this source tree.
|
|
2901
2931
|
*/
|
|
2902
|
-
const
|
|
2932
|
+
const gd = (e) => {
|
|
2903
2933
|
for (const t in e)
|
|
2904
2934
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
2905
2935
|
return !0;
|
|
@@ -2918,16 +2948,16 @@ const vn = (e) => e === "";
|
|
|
2918
2948
|
* This source code is licensed under the ISC license.
|
|
2919
2949
|
* See the LICENSE file in the root directory of this source tree.
|
|
2920
2950
|
*/
|
|
2921
|
-
const
|
|
2951
|
+
const hd = (e) => e == null ? void 0 : e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
2922
2952
|
/**
|
|
2923
2953
|
* @license @lucide/vue v1.46.0 - ISC
|
|
2924
2954
|
*
|
|
2925
2955
|
* This source code is licensed under the ISC license.
|
|
2926
2956
|
* See the LICENSE file in the root directory of this source tree.
|
|
2927
2957
|
*/
|
|
2928
|
-
const
|
|
2929
|
-
function
|
|
2930
|
-
return $n(
|
|
2958
|
+
const pd = /* @__PURE__ */ Symbol("lucide-icons");
|
|
2959
|
+
function md() {
|
|
2960
|
+
return $n(pd, {});
|
|
2931
2961
|
}
|
|
2932
2962
|
/**
|
|
2933
2963
|
* @license @lucide/vue v1.46.0 - ISC
|
|
@@ -2935,12 +2965,12 @@ function pd() {
|
|
|
2935
2965
|
* This source code is licensed under the ISC license.
|
|
2936
2966
|
* See the LICENSE file in the root directory of this source tree.
|
|
2937
2967
|
*/
|
|
2938
|
-
const
|
|
2968
|
+
const vd = ({
|
|
2939
2969
|
name: e,
|
|
2940
2970
|
iconNode: t,
|
|
2941
2971
|
"icon-node": n,
|
|
2942
2972
|
icon: o = {
|
|
2943
|
-
name:
|
|
2973
|
+
name: hd(e),
|
|
2944
2974
|
node: t ?? n,
|
|
2945
2975
|
size: 24,
|
|
2946
2976
|
aliases: []
|
|
@@ -2965,9 +2995,9 @@ const md = ({
|
|
|
2965
2995
|
absoluteStrokeWidth: C = !1,
|
|
2966
2996
|
nonScalingStroke: I = !1,
|
|
2967
2997
|
class: E = ""
|
|
2968
|
-
} =
|
|
2998
|
+
} = md(), F = vn(i) || vn(r) || i === !0 || r === !0 || C === !0, D = vn(s) || vn(l) || s === !0 || l === !0 || I === !0;
|
|
2969
2999
|
delete p.class;
|
|
2970
|
-
const
|
|
3000
|
+
const B = (O = m.default) == null ? void 0 : O.call(m), [, A, z = []] = fd(o, {
|
|
2971
3001
|
color: h ?? _,
|
|
2972
3002
|
width: g ?? d ?? y,
|
|
2973
3003
|
height: S ?? d ?? y,
|
|
@@ -2975,12 +3005,12 @@ const md = ({
|
|
|
2975
3005
|
absoluteStrokeWidth: F,
|
|
2976
3006
|
nonScalingStroke: D,
|
|
2977
3007
|
className: E,
|
|
2978
|
-
hasA11yProp:
|
|
3008
|
+
hasA11yProp: B != null && B.length > 0 || gd(p),
|
|
2979
3009
|
attributes: p
|
|
2980
3010
|
});
|
|
2981
3011
|
return vt("svg", A, [
|
|
2982
3012
|
...z.map((K) => vt(...K)),
|
|
2983
|
-
...
|
|
3013
|
+
...B ?? []
|
|
2984
3014
|
]);
|
|
2985
3015
|
};
|
|
2986
3016
|
/**
|
|
@@ -2995,7 +3025,7 @@ function Le(e, t = []) {
|
|
|
2995
3025
|
node: t
|
|
2996
3026
|
} : e;
|
|
2997
3027
|
return (o, { slots: i }) => vt(
|
|
2998
|
-
|
|
3028
|
+
vd,
|
|
2999
3029
|
{
|
|
3000
3030
|
...o,
|
|
3001
3031
|
icon: n
|
|
@@ -3009,110 +3039,110 @@ function Le(e, t = []) {
|
|
|
3009
3039
|
* This source code is licensed under the ISC license.
|
|
3010
3040
|
* See the LICENSE file in the root directory of this source tree.
|
|
3011
3041
|
*/
|
|
3012
|
-
const
|
|
3042
|
+
const Sd = {
|
|
3013
3043
|
name: "arrow-down",
|
|
3014
3044
|
size: 24,
|
|
3015
3045
|
node: [
|
|
3016
3046
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
3017
3047
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
3018
3048
|
]
|
|
3019
|
-
},
|
|
3049
|
+
}, yd = Le(Sd);
|
|
3020
3050
|
/**
|
|
3021
3051
|
* @license @lucide/vue v1.46.0 - ISC
|
|
3022
3052
|
*
|
|
3023
3053
|
* This source code is licensed under the ISC license.
|
|
3024
3054
|
* See the LICENSE file in the root directory of this source tree.
|
|
3025
3055
|
*/
|
|
3026
|
-
const
|
|
3056
|
+
const bd = {
|
|
3027
3057
|
name: "arrow-up",
|
|
3028
3058
|
size: 24,
|
|
3029
3059
|
node: [
|
|
3030
3060
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
3031
3061
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
3032
3062
|
]
|
|
3033
|
-
},
|
|
3063
|
+
}, wd = Le(bd);
|
|
3034
3064
|
/**
|
|
3035
3065
|
* @license @lucide/vue v1.46.0 - ISC
|
|
3036
3066
|
*
|
|
3037
3067
|
* This source code is licensed under the ISC license.
|
|
3038
3068
|
* See the LICENSE file in the root directory of this source tree.
|
|
3039
3069
|
*/
|
|
3040
|
-
const
|
|
3070
|
+
const _d = {
|
|
3041
3071
|
name: "check",
|
|
3042
3072
|
size: 24,
|
|
3043
3073
|
node: [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]
|
|
3044
|
-
},
|
|
3074
|
+
}, Cd = Le(_d);
|
|
3045
3075
|
/**
|
|
3046
3076
|
* @license @lucide/vue v1.46.0 - ISC
|
|
3047
3077
|
*
|
|
3048
3078
|
* This source code is licensed under the ISC license.
|
|
3049
3079
|
* See the LICENSE file in the root directory of this source tree.
|
|
3050
3080
|
*/
|
|
3051
|
-
const
|
|
3081
|
+
const Id = {
|
|
3052
3082
|
name: "chevron-right",
|
|
3053
3083
|
size: 24,
|
|
3054
3084
|
node: [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]]
|
|
3055
|
-
},
|
|
3085
|
+
}, Rd = Le(Id);
|
|
3056
3086
|
/**
|
|
3057
3087
|
* @license @lucide/vue v1.46.0 - ISC
|
|
3058
3088
|
*
|
|
3059
3089
|
* This source code is licensed under the ISC license.
|
|
3060
3090
|
* See the LICENSE file in the root directory of this source tree.
|
|
3061
3091
|
*/
|
|
3062
|
-
const
|
|
3092
|
+
const Ed = {
|
|
3063
3093
|
name: "chevron-left",
|
|
3064
3094
|
size: 24,
|
|
3065
3095
|
node: [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]]
|
|
3066
|
-
},
|
|
3096
|
+
}, xd = Le(Ed);
|
|
3067
3097
|
/**
|
|
3068
3098
|
* @license @lucide/vue v1.46.0 - ISC
|
|
3069
3099
|
*
|
|
3070
3100
|
* This source code is licensed under the ISC license.
|
|
3071
3101
|
* See the LICENSE file in the root directory of this source tree.
|
|
3072
3102
|
*/
|
|
3073
|
-
const
|
|
3103
|
+
const kd = {
|
|
3074
3104
|
name: "chevrons-left",
|
|
3075
3105
|
size: 24,
|
|
3076
3106
|
node: [
|
|
3077
3107
|
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
|
3078
3108
|
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
|
3079
3109
|
]
|
|
3080
|
-
},
|
|
3110
|
+
}, Md = Le(kd);
|
|
3081
3111
|
/**
|
|
3082
3112
|
* @license @lucide/vue v1.46.0 - ISC
|
|
3083
3113
|
*
|
|
3084
3114
|
* This source code is licensed under the ISC license.
|
|
3085
3115
|
* See the LICENSE file in the root directory of this source tree.
|
|
3086
3116
|
*/
|
|
3087
|
-
const
|
|
3117
|
+
const Td = {
|
|
3088
3118
|
name: "chevrons-right",
|
|
3089
3119
|
size: 24,
|
|
3090
3120
|
node: [
|
|
3091
3121
|
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
|
3092
3122
|
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
|
3093
3123
|
]
|
|
3094
|
-
},
|
|
3124
|
+
}, Fd = Le(Td);
|
|
3095
3125
|
/**
|
|
3096
3126
|
* @license @lucide/vue v1.46.0 - ISC
|
|
3097
3127
|
*
|
|
3098
3128
|
* This source code is licensed under the ISC license.
|
|
3099
3129
|
* See the LICENSE file in the root directory of this source tree.
|
|
3100
3130
|
*/
|
|
3101
|
-
const
|
|
3131
|
+
const $d = {
|
|
3102
3132
|
name: "chevrons-up-down",
|
|
3103
3133
|
size: 24,
|
|
3104
3134
|
node: [
|
|
3105
3135
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
3106
3136
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
3107
3137
|
]
|
|
3108
|
-
},
|
|
3138
|
+
}, Dd = Le($d);
|
|
3109
3139
|
/**
|
|
3110
3140
|
* @license @lucide/vue v1.46.0 - ISC
|
|
3111
3141
|
*
|
|
3112
3142
|
* This source code is licensed under the ISC license.
|
|
3113
3143
|
* See the LICENSE file in the root directory of this source tree.
|
|
3114
3144
|
*/
|
|
3115
|
-
const
|
|
3145
|
+
const Pd = {
|
|
3116
3146
|
name: "funnel",
|
|
3117
3147
|
size: 24,
|
|
3118
3148
|
node: [
|
|
@@ -3125,14 +3155,14 @@ const Dd = {
|
|
|
3125
3155
|
]
|
|
3126
3156
|
],
|
|
3127
3157
|
aliases: ["filter"]
|
|
3128
|
-
},
|
|
3158
|
+
}, Ad = Le(Pd);
|
|
3129
3159
|
/**
|
|
3130
3160
|
* @license @lucide/vue v1.46.0 - ISC
|
|
3131
3161
|
*
|
|
3132
3162
|
* This source code is licensed under the ISC license.
|
|
3133
3163
|
* See the LICENSE file in the root directory of this source tree.
|
|
3134
3164
|
*/
|
|
3135
|
-
const
|
|
3165
|
+
const Od = {
|
|
3136
3166
|
name: "grip-vertical",
|
|
3137
3167
|
size: 24,
|
|
3138
3168
|
node: [
|
|
@@ -3143,14 +3173,14 @@ const Ad = {
|
|
|
3143
3173
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
3144
3174
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
3145
3175
|
]
|
|
3146
|
-
},
|
|
3176
|
+
}, zd = Le(Od);
|
|
3147
3177
|
/**
|
|
3148
3178
|
* @license @lucide/vue v1.46.0 - ISC
|
|
3149
3179
|
*
|
|
3150
3180
|
* This source code is licensed under the ISC license.
|
|
3151
3181
|
* See the LICENSE file in the root directory of this source tree.
|
|
3152
3182
|
*/
|
|
3153
|
-
const
|
|
3183
|
+
const Vd = {
|
|
3154
3184
|
name: "settings-2",
|
|
3155
3185
|
size: 24,
|
|
3156
3186
|
node: [
|
|
@@ -3159,7 +3189,7 @@ const zd = {
|
|
|
3159
3189
|
["circle", { cx: "17", cy: "17", r: "3", key: "18b49y" }],
|
|
3160
3190
|
["circle", { cx: "7", cy: "7", r: "3", key: "dfmy0x" }]
|
|
3161
3191
|
]
|
|
3162
|
-
},
|
|
3192
|
+
}, Nd = Le(Vd);
|
|
3163
3193
|
/**
|
|
3164
3194
|
* table-core
|
|
3165
3195
|
*
|
|
@@ -3184,10 +3214,10 @@ function Me(e, t) {
|
|
|
3184
3214
|
function Zn(e) {
|
|
3185
3215
|
return e instanceof Function;
|
|
3186
3216
|
}
|
|
3187
|
-
function
|
|
3217
|
+
function Ld(e) {
|
|
3188
3218
|
return Array.isArray(e) && e.every((t) => typeof t == "number");
|
|
3189
3219
|
}
|
|
3190
|
-
function
|
|
3220
|
+
function Hd(e, t) {
|
|
3191
3221
|
const n = [], o = (i) => {
|
|
3192
3222
|
i.forEach((r) => {
|
|
3193
3223
|
n.push(r);
|
|
@@ -3231,7 +3261,7 @@ function N(e, t, n, o) {
|
|
|
3231
3261
|
onChange: o
|
|
3232
3262
|
};
|
|
3233
3263
|
}
|
|
3234
|
-
function
|
|
3264
|
+
function Bd(e, t, n, o) {
|
|
3235
3265
|
const i = () => {
|
|
3236
3266
|
var s;
|
|
3237
3267
|
return (s = r.getValue()) != null ? s : e.options.renderFallbackValue;
|
|
@@ -3254,7 +3284,7 @@ function Hd(e, t, n, o) {
|
|
|
3254
3284
|
s.createCell == null || s.createCell(r, n, t, e);
|
|
3255
3285
|
}, {}), r;
|
|
3256
3286
|
}
|
|
3257
|
-
function
|
|
3287
|
+
function jd(e, t, n, o) {
|
|
3258
3288
|
var i, r;
|
|
3259
3289
|
const l = {
|
|
3260
3290
|
...e._getDefaultColumnDef(),
|
|
@@ -3324,7 +3354,7 @@ function ar(e, t, n) {
|
|
|
3324
3354
|
s.createHeader == null || s.createHeader(r, e);
|
|
3325
3355
|
}), r;
|
|
3326
3356
|
}
|
|
3327
|
-
const
|
|
3357
|
+
const Gd = {
|
|
3328
3358
|
createTable: (e) => {
|
|
3329
3359
|
e.getHeaderGroups = V(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, o, i) => {
|
|
3330
3360
|
var r, s;
|
|
@@ -3409,7 +3439,7 @@ function Sn(e, t, n, o) {
|
|
|
3409
3439
|
});
|
|
3410
3440
|
return g((i = (r = a[0]) == null ? void 0 : r.headers) != null ? i : []), a;
|
|
3411
3441
|
}
|
|
3412
|
-
const
|
|
3442
|
+
const Kd = (e, t, n, o, i, r, s) => {
|
|
3413
3443
|
let l = {
|
|
3414
3444
|
id: t,
|
|
3415
3445
|
index: o,
|
|
@@ -3437,7 +3467,7 @@ const Gd = (e, t, n, o, i, r, s) => {
|
|
|
3437
3467
|
return (u = l.getValue(a)) != null ? u : e.options.renderFallbackValue;
|
|
3438
3468
|
},
|
|
3439
3469
|
subRows: [],
|
|
3440
|
-
getLeafRows: () =>
|
|
3470
|
+
getLeafRows: () => Hd(l.subRows, (a) => a.subRows),
|
|
3441
3471
|
getParentRow: () => l.parentId ? e.getRow(l.parentId, !0) : void 0,
|
|
3442
3472
|
getParentRows: () => {
|
|
3443
3473
|
let a = [], u = l;
|
|
@@ -3448,7 +3478,7 @@ const Gd = (e, t, n, o, i, r, s) => {
|
|
|
3448
3478
|
}
|
|
3449
3479
|
return a.reverse();
|
|
3450
3480
|
},
|
|
3451
|
-
getAllCells: V(() => [e.getAllLeafColumns()], (a) => a.map((u) =>
|
|
3481
|
+
getAllCells: V(() => [e.getAllLeafColumns()], (a) => a.map((u) => Bd(e, l, u, u.id)), N(e.options, "debugRows", "getAllCells")),
|
|
3452
3482
|
_getAllCellsByColumnId: V(() => [l.getAllCells()], (a) => a.reduce((u, d) => (u[d.column.id] = d, u), {}), N(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
3453
3483
|
};
|
|
3454
3484
|
for (let a = 0; a < e._features.length; a++) {
|
|
@@ -3456,7 +3486,7 @@ const Gd = (e, t, n, o, i, r, s) => {
|
|
|
3456
3486
|
u == null || u.createRow == null || u.createRow(l, e);
|
|
3457
3487
|
}
|
|
3458
3488
|
return l;
|
|
3459
|
-
},
|
|
3489
|
+
}, Wd = {
|
|
3460
3490
|
createColumn: (e, t) => {
|
|
3461
3491
|
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
|
|
3462
3492
|
if (e._getFacetedMinMaxValues)
|
|
@@ -3526,7 +3556,7 @@ const Ye = {
|
|
|
3526
3556
|
function Ne(e) {
|
|
3527
3557
|
return e == null || e === "";
|
|
3528
3558
|
}
|
|
3529
|
-
const
|
|
3559
|
+
const qd = {
|
|
3530
3560
|
getDefaultColumnDef: () => ({
|
|
3531
3561
|
filterFn: "auto"
|
|
3532
3562
|
}),
|
|
@@ -3604,54 +3634,54 @@ const Wd = {
|
|
|
3604
3634
|
function ur(e, t, n) {
|
|
3605
3635
|
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || typeof t > "u" || typeof t == "string" && !t;
|
|
3606
3636
|
}
|
|
3607
|
-
const
|
|
3637
|
+
const Ud = (e, t, n) => n.reduce((o, i) => {
|
|
3608
3638
|
const r = i.getValue(e);
|
|
3609
3639
|
return o + (typeof r == "number" ? r : 0);
|
|
3610
|
-
}, 0),
|
|
3640
|
+
}, 0), Xd = (e, t, n) => {
|
|
3611
3641
|
let o;
|
|
3612
3642
|
return n.forEach((i) => {
|
|
3613
3643
|
const r = i.getValue(e);
|
|
3614
3644
|
r != null && (o > r || o === void 0 && r >= r) && (o = r);
|
|
3615
3645
|
}), o;
|
|
3616
|
-
},
|
|
3646
|
+
}, Yd = (e, t, n) => {
|
|
3617
3647
|
let o;
|
|
3618
3648
|
return n.forEach((i) => {
|
|
3619
3649
|
const r = i.getValue(e);
|
|
3620
3650
|
r != null && (o < r || o === void 0 && r >= r) && (o = r);
|
|
3621
3651
|
}), o;
|
|
3622
|
-
},
|
|
3652
|
+
}, Jd = (e, t, n) => {
|
|
3623
3653
|
let o, i;
|
|
3624
3654
|
return n.forEach((r) => {
|
|
3625
3655
|
const s = r.getValue(e);
|
|
3626
3656
|
s != null && (o === void 0 ? s >= s && (o = i = s) : (o > s && (o = s), i < s && (i = s)));
|
|
3627
3657
|
}), [o, i];
|
|
3628
|
-
},
|
|
3658
|
+
}, Zd = (e, t) => {
|
|
3629
3659
|
let n = 0, o = 0;
|
|
3630
3660
|
if (t.forEach((i) => {
|
|
3631
3661
|
let r = i.getValue(e);
|
|
3632
3662
|
r != null && (r = +r) >= r && (++n, o += r);
|
|
3633
3663
|
}), n) return o / n;
|
|
3634
|
-
},
|
|
3664
|
+
}, Qd = (e, t) => {
|
|
3635
3665
|
if (!t.length)
|
|
3636
3666
|
return;
|
|
3637
3667
|
const n = t.map((r) => r.getValue(e));
|
|
3638
|
-
if (!
|
|
3668
|
+
if (!Ld(n))
|
|
3639
3669
|
return;
|
|
3640
3670
|
if (n.length === 1)
|
|
3641
3671
|
return n[0];
|
|
3642
3672
|
const o = Math.floor(n.length / 2), i = n.sort((r, s) => r - s);
|
|
3643
3673
|
return n.length % 2 !== 0 ? i[o] : (i[o - 1] + i[o]) / 2;
|
|
3644
|
-
},
|
|
3645
|
-
sum:
|
|
3646
|
-
min:
|
|
3647
|
-
max:
|
|
3648
|
-
extent:
|
|
3649
|
-
mean:
|
|
3650
|
-
median:
|
|
3651
|
-
unique:
|
|
3652
|
-
uniqueCount:
|
|
3653
|
-
count:
|
|
3654
|
-
},
|
|
3674
|
+
}, ef = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), tf = (e, t) => new Set(t.map((n) => n.getValue(e))).size, nf = (e, t) => t.length, So = {
|
|
3675
|
+
sum: Ud,
|
|
3676
|
+
min: Xd,
|
|
3677
|
+
max: Yd,
|
|
3678
|
+
extent: Jd,
|
|
3679
|
+
mean: Zd,
|
|
3680
|
+
median: Qd,
|
|
3681
|
+
unique: ef,
|
|
3682
|
+
uniqueCount: tf,
|
|
3683
|
+
count: nf
|
|
3684
|
+
}, of = {
|
|
3655
3685
|
getDefaultColumnDef: () => ({
|
|
3656
3686
|
aggregatedCell: (e) => {
|
|
3657
3687
|
var t, n;
|
|
@@ -3718,13 +3748,13 @@ const qd = (e, t, n) => n.reduce((o, i) => {
|
|
|
3718
3748
|
};
|
|
3719
3749
|
}
|
|
3720
3750
|
};
|
|
3721
|
-
function
|
|
3751
|
+
function rf(e, t, n) {
|
|
3722
3752
|
if (!(t != null && t.length) || !n)
|
|
3723
3753
|
return e;
|
|
3724
3754
|
const o = e.filter((r) => !t.includes(r.id));
|
|
3725
3755
|
return n === "remove" ? o : [...t.map((r) => e.find((s) => s.id === r)).filter(Boolean), ...o];
|
|
3726
3756
|
}
|
|
3727
|
-
const
|
|
3757
|
+
const sf = {
|
|
3728
3758
|
getInitialState: (e) => ({
|
|
3729
3759
|
columnOrder: [],
|
|
3730
3760
|
...e
|
|
@@ -3758,13 +3788,13 @@ const rf = {
|
|
|
3758
3788
|
}
|
|
3759
3789
|
r = [...r, ...l];
|
|
3760
3790
|
}
|
|
3761
|
-
return
|
|
3791
|
+
return rf(r, n, o);
|
|
3762
3792
|
}, N(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
3763
3793
|
}
|
|
3764
3794
|
}, yo = () => ({
|
|
3765
3795
|
left: [],
|
|
3766
3796
|
right: []
|
|
3767
|
-
}),
|
|
3797
|
+
}), lf = {
|
|
3768
3798
|
getInitialState: (e) => ({
|
|
3769
3799
|
columnPinning: yo(),
|
|
3770
3800
|
...e
|
|
@@ -3841,7 +3871,7 @@ const rf = {
|
|
|
3841
3871
|
}, N(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
3842
3872
|
}
|
|
3843
3873
|
};
|
|
3844
|
-
function
|
|
3874
|
+
function af(e) {
|
|
3845
3875
|
return e || (typeof document < "u" ? document : null);
|
|
3846
3876
|
}
|
|
3847
3877
|
const yn = {
|
|
@@ -3855,7 +3885,7 @@ const yn = {
|
|
|
3855
3885
|
deltaPercentage: null,
|
|
3856
3886
|
isResizingColumn: !1,
|
|
3857
3887
|
columnSizingStart: []
|
|
3858
|
-
}),
|
|
3888
|
+
}), uf = {
|
|
3859
3889
|
getDefaultColumnDef: () => yn,
|
|
3860
3890
|
getInitialState: (e) => ({
|
|
3861
3891
|
columnSizing: {},
|
|
@@ -3912,14 +3942,14 @@ const yn = {
|
|
|
3912
3942
|
const s = e.getSize(), l = e ? e.getLeafHeaders().map((_) => [_.column.id, _.column.getSize()]) : [[o.id, o.getSize()]], a = wo(r) ? Math.round(r.touches[0].clientX) : r.clientX, u = {}, d = (_, b) => {
|
|
3913
3943
|
typeof b == "number" && (t.setColumnSizingInfo((C) => {
|
|
3914
3944
|
var I, E;
|
|
3915
|
-
const F = t.options.columnResizeDirection === "rtl" ? -1 : 1, D = (b - ((I = C == null ? void 0 : C.startOffset) != null ? I : 0)) * F,
|
|
3945
|
+
const F = t.options.columnResizeDirection === "rtl" ? -1 : 1, D = (b - ((I = C == null ? void 0 : C.startOffset) != null ? I : 0)) * F, B = Math.max(D / ((E = C == null ? void 0 : C.startSize) != null ? E : 0), -0.999999);
|
|
3916
3946
|
return C.columnSizingStart.forEach((A) => {
|
|
3917
3947
|
let [z, O] = A;
|
|
3918
|
-
u[z] = Math.round(Math.max(O + O *
|
|
3948
|
+
u[z] = Math.round(Math.max(O + O * B, 0) * 100) / 100;
|
|
3919
3949
|
}), {
|
|
3920
3950
|
...C,
|
|
3921
3951
|
deltaOffset: D,
|
|
3922
|
-
deltaPercentage:
|
|
3952
|
+
deltaPercentage: B
|
|
3923
3953
|
};
|
|
3924
3954
|
}), (t.options.columnResizeMode === "onChange" || _ === "end") && t.setColumnSizing((C) => ({
|
|
3925
3955
|
...C,
|
|
@@ -3935,7 +3965,7 @@ const yn = {
|
|
|
3935
3965
|
deltaPercentage: null,
|
|
3936
3966
|
columnSizingStart: []
|
|
3937
3967
|
}));
|
|
3938
|
-
}, h =
|
|
3968
|
+
}, h = af(n), p = {
|
|
3939
3969
|
moveHandler: (_) => g(_.clientX),
|
|
3940
3970
|
upHandler: (_) => {
|
|
3941
3971
|
h == null || h.removeEventListener("mousemove", p.moveHandler), h == null || h.removeEventListener("mouseup", p.upHandler), S(_.clientX);
|
|
@@ -3946,7 +3976,7 @@ const yn = {
|
|
|
3946
3976
|
var b;
|
|
3947
3977
|
h == null || h.removeEventListener("touchmove", m.moveHandler), h == null || h.removeEventListener("touchend", m.upHandler), _.cancelable && (_.preventDefault(), _.stopPropagation()), S((b = _.touches[0]) == null ? void 0 : b.clientX);
|
|
3948
3978
|
}
|
|
3949
|
-
}, y =
|
|
3979
|
+
}, y = cf() ? {
|
|
3950
3980
|
passive: !1
|
|
3951
3981
|
} : !1;
|
|
3952
3982
|
wo(r) ? (h == null || h.addEventListener("touchmove", m.moveHandler, y), h == null || h.addEventListener("touchend", m.upHandler, y)) : (h == null || h.addEventListener("mousemove", p.moveHandler, y), h == null || h.addEventListener("mouseup", p.upHandler, y)), t.setColumnSizingInfo((_) => ({
|
|
@@ -3984,7 +4014,7 @@ const yn = {
|
|
|
3984
4014
|
}
|
|
3985
4015
|
};
|
|
3986
4016
|
let bn = null;
|
|
3987
|
-
function
|
|
4017
|
+
function cf() {
|
|
3988
4018
|
if (typeof bn == "boolean") return bn;
|
|
3989
4019
|
let e = !1;
|
|
3990
4020
|
try {
|
|
@@ -4003,7 +4033,7 @@ function uf() {
|
|
|
4003
4033
|
function wo(e) {
|
|
4004
4034
|
return e.type === "touchstart";
|
|
4005
4035
|
}
|
|
4006
|
-
const
|
|
4036
|
+
const df = {
|
|
4007
4037
|
getInitialState: (e) => ({
|
|
4008
4038
|
columnVisibility: {},
|
|
4009
4039
|
...e
|
|
@@ -4051,14 +4081,14 @@ const cf = {
|
|
|
4051
4081
|
function Jt(e, t) {
|
|
4052
4082
|
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
4053
4083
|
}
|
|
4054
|
-
const
|
|
4084
|
+
const ff = {
|
|
4055
4085
|
createTable: (e) => {
|
|
4056
4086
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
4057
4087
|
if (e._getGlobalFacetedMinMaxValues)
|
|
4058
4088
|
return e._getGlobalFacetedMinMaxValues();
|
|
4059
4089
|
};
|
|
4060
4090
|
}
|
|
4061
|
-
},
|
|
4091
|
+
}, gf = {
|
|
4062
4092
|
getInitialState: (e) => ({
|
|
4063
4093
|
globalFilter: void 0,
|
|
4064
4094
|
...e
|
|
@@ -4091,7 +4121,7 @@ const df = {
|
|
|
4091
4121
|
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
|
|
4092
4122
|
};
|
|
4093
4123
|
}
|
|
4094
|
-
},
|
|
4124
|
+
}, hf = {
|
|
4095
4125
|
getInitialState: (e) => ({
|
|
4096
4126
|
expanded: {},
|
|
4097
4127
|
...e
|
|
@@ -4181,7 +4211,7 @@ const df = {
|
|
|
4181
4211
|
}, Bo = 0, jo = 10, _o = () => ({
|
|
4182
4212
|
pageIndex: Bo,
|
|
4183
4213
|
pageSize: jo
|
|
4184
|
-
}),
|
|
4214
|
+
}), pf = {
|
|
4185
4215
|
getInitialState: (e) => ({
|
|
4186
4216
|
...e,
|
|
4187
4217
|
pagination: {
|
|
@@ -4264,7 +4294,7 @@ const df = {
|
|
|
4264
4294
|
}, Co = () => ({
|
|
4265
4295
|
top: [],
|
|
4266
4296
|
bottom: []
|
|
4267
|
-
}),
|
|
4297
|
+
}), mf = {
|
|
4268
4298
|
getInitialState: (e) => ({
|
|
4269
4299
|
rowPinning: Co(),
|
|
4270
4300
|
...e
|
|
@@ -4365,7 +4395,7 @@ const df = {
|
|
|
4365
4395
|
return t.filter((r) => !i.has(r.id));
|
|
4366
4396
|
}, N(e.options, "debugRows", "getCenterRows"));
|
|
4367
4397
|
}
|
|
4368
|
-
},
|
|
4398
|
+
}, vf = {
|
|
4369
4399
|
getInitialState: (e) => ({
|
|
4370
4400
|
rowSelection: {},
|
|
4371
4401
|
...e
|
|
@@ -4521,10 +4551,10 @@ function Ko(e, t, n) {
|
|
|
4521
4551
|
}
|
|
4522
4552
|
}), i ? "all" : r ? "some" : !1;
|
|
4523
4553
|
}
|
|
4524
|
-
const Wo = /([0-9]+)/gm,
|
|
4554
|
+
const Wo = /([0-9]+)/gm, Sf = (e, t, n) => Rs(at(e.getValue(n)).toLowerCase(), at(t.getValue(n)).toLowerCase()), yf = (e, t, n) => Rs(at(e.getValue(n)), at(t.getValue(n))), bf = (e, t, n) => ri(at(e.getValue(n)).toLowerCase(), at(t.getValue(n)).toLowerCase()), wf = (e, t, n) => ri(at(e.getValue(n)), at(t.getValue(n))), _f = (e, t, n) => {
|
|
4525
4555
|
const o = e.getValue(n), i = t.getValue(n);
|
|
4526
4556
|
return o > i ? 1 : o < i ? -1 : 0;
|
|
4527
|
-
},
|
|
4557
|
+
}, Cf = (e, t, n) => ri(e.getValue(n), t.getValue(n));
|
|
4528
4558
|
function ri(e, t) {
|
|
4529
4559
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
4530
4560
|
}
|
|
@@ -4552,13 +4582,13 @@ function Rs(e, t) {
|
|
|
4552
4582
|
return n.length - o.length;
|
|
4553
4583
|
}
|
|
4554
4584
|
const jt = {
|
|
4555
|
-
alphanumeric:
|
|
4556
|
-
alphanumericCaseSensitive:
|
|
4557
|
-
text:
|
|
4558
|
-
textCaseSensitive:
|
|
4559
|
-
datetime:
|
|
4560
|
-
basic:
|
|
4561
|
-
},
|
|
4585
|
+
alphanumeric: Sf,
|
|
4586
|
+
alphanumericCaseSensitive: yf,
|
|
4587
|
+
text: bf,
|
|
4588
|
+
textCaseSensitive: wf,
|
|
4589
|
+
datetime: _f,
|
|
4590
|
+
basic: Cf
|
|
4591
|
+
}, If = {
|
|
4562
4592
|
getInitialState: (e) => ({
|
|
4563
4593
|
sorting: [],
|
|
4564
4594
|
...e
|
|
@@ -4647,30 +4677,30 @@ const jt = {
|
|
|
4647
4677
|
e.setSorting(t ? [] : (n = (o = e.initialState) == null ? void 0 : o.sorting) != null ? n : []);
|
|
4648
4678
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
4649
4679
|
}
|
|
4650
|
-
},
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
rf,
|
|
4680
|
+
}, Rf = [
|
|
4681
|
+
Gd,
|
|
4682
|
+
df,
|
|
4654
4683
|
sf,
|
|
4655
|
-
|
|
4684
|
+
lf,
|
|
4656
4685
|
Wd,
|
|
4657
|
-
|
|
4658
|
-
//depends on ColumnFaceting
|
|
4686
|
+
qd,
|
|
4659
4687
|
ff,
|
|
4688
|
+
//depends on ColumnFaceting
|
|
4689
|
+
gf,
|
|
4660
4690
|
//depends on ColumnFiltering
|
|
4661
|
-
|
|
4662
|
-
|
|
4691
|
+
If,
|
|
4692
|
+
of,
|
|
4663
4693
|
//depends on RowSorting
|
|
4664
|
-
gf,
|
|
4665
4694
|
hf,
|
|
4666
4695
|
pf,
|
|
4667
4696
|
mf,
|
|
4668
|
-
|
|
4697
|
+
vf,
|
|
4698
|
+
uf
|
|
4669
4699
|
];
|
|
4670
|
-
function
|
|
4700
|
+
function Ef(e) {
|
|
4671
4701
|
var t, n;
|
|
4672
4702
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
4673
|
-
const o = [...
|
|
4703
|
+
const o = [...Rf, ...(t = e._features) != null ? t : []];
|
|
4674
4704
|
let i = {
|
|
4675
4705
|
_features: o
|
|
4676
4706
|
};
|
|
@@ -4750,7 +4780,7 @@ function Rf(e) {
|
|
|
4750
4780
|
getAllColumns: V(() => [i._getColumnDefs()], (S) => {
|
|
4751
4781
|
const h = function(p, m, y) {
|
|
4752
4782
|
return y === void 0 && (y = 0), p.map((_) => {
|
|
4753
|
-
const b =
|
|
4783
|
+
const b = jd(i, _, y, m), C = _;
|
|
4754
4784
|
return b.columns = C.columns ? h(C.columns, b, y + 1) : [], b;
|
|
4755
4785
|
});
|
|
4756
4786
|
};
|
|
@@ -4774,7 +4804,7 @@ function Rf(e) {
|
|
|
4774
4804
|
}
|
|
4775
4805
|
return i;
|
|
4776
4806
|
}
|
|
4777
|
-
function
|
|
4807
|
+
function xf() {
|
|
4778
4808
|
return (e) => V(() => [e.options.data], (t) => {
|
|
4779
4809
|
const n = {
|
|
4780
4810
|
rows: [],
|
|
@@ -4784,7 +4814,7 @@ function Ef() {
|
|
|
4784
4814
|
r === void 0 && (r = 0);
|
|
4785
4815
|
const l = [];
|
|
4786
4816
|
for (let u = 0; u < i.length; u++) {
|
|
4787
|
-
const d =
|
|
4817
|
+
const d = Kd(e, e._getRowId(i[u], u, s), i[u], u, r, void 0, s == null ? void 0 : s.id);
|
|
4788
4818
|
if (n.flatRows.push(d), n.rowsById[d.id] = d, l.push(d), e.options.getSubRows) {
|
|
4789
4819
|
var a;
|
|
4790
4820
|
d.originalSubRows = e.options.getSubRows(i[u], u), (a = d.originalSubRows) != null && a.length && (d.subRows = o(d.originalSubRows, r + 1, d));
|
|
@@ -4795,7 +4825,7 @@ function Ef() {
|
|
|
4795
4825
|
return n.rows = o(t), n;
|
|
4796
4826
|
}, N(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
4797
4827
|
}
|
|
4798
|
-
function
|
|
4828
|
+
function kf(e) {
|
|
4799
4829
|
const t = [], n = (o) => {
|
|
4800
4830
|
var i;
|
|
4801
4831
|
t.push(o), (i = o.subRows) != null && i.length && o.getIsExpanded() && o.subRows.forEach(n);
|
|
@@ -4806,7 +4836,7 @@ function xf(e) {
|
|
|
4806
4836
|
rowsById: e.rowsById
|
|
4807
4837
|
};
|
|
4808
4838
|
}
|
|
4809
|
-
function
|
|
4839
|
+
function Mf(e) {
|
|
4810
4840
|
return (t) => V(() => [t.getState().pagination, t.getPrePaginationRowModel(), t.options.paginateExpandedRows ? void 0 : t.getState().expanded], (n, o) => {
|
|
4811
4841
|
if (!o.rows.length)
|
|
4812
4842
|
return o;
|
|
@@ -4826,7 +4856,7 @@ function kf(e) {
|
|
|
4826
4856
|
rows: s,
|
|
4827
4857
|
flatRows: l,
|
|
4828
4858
|
rowsById: a
|
|
4829
|
-
} : g =
|
|
4859
|
+
} : g = kf({
|
|
4830
4860
|
rows: s,
|
|
4831
4861
|
flatRows: l,
|
|
4832
4862
|
rowsById: a
|
|
@@ -4837,7 +4867,7 @@ function kf(e) {
|
|
|
4837
4867
|
return g.rows.forEach(S), g;
|
|
4838
4868
|
}, N(t.options, "debugTable", "getPaginationRowModel"));
|
|
4839
4869
|
}
|
|
4840
|
-
function
|
|
4870
|
+
function Tf() {
|
|
4841
4871
|
return (e) => V(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
|
|
4842
4872
|
if (!n.rows.length || !(t != null && t.length))
|
|
4843
4873
|
return n;
|
|
@@ -4899,9 +4929,9 @@ function Mf() {
|
|
|
4899
4929
|
function wn() {
|
|
4900
4930
|
return !0;
|
|
4901
4931
|
}
|
|
4902
|
-
const
|
|
4932
|
+
const Ff = Symbol("merge-proxy"), $f = {
|
|
4903
4933
|
get(e, t, n) {
|
|
4904
|
-
return t ===
|
|
4934
|
+
return t === Ff ? n : e.get(t);
|
|
4905
4935
|
},
|
|
4906
4936
|
has(e, t) {
|
|
4907
4937
|
return e.has(t);
|
|
@@ -4946,7 +4976,7 @@ function qt() {
|
|
|
4946
4976
|
for (let i = 0; i < t.length; i++) o.push(...Object.keys(Ro(t[i])));
|
|
4947
4977
|
return [...Array.from(new Set(o))];
|
|
4948
4978
|
}
|
|
4949
|
-
},
|
|
4979
|
+
}, $f);
|
|
4950
4980
|
}
|
|
4951
4981
|
const cr = ve({
|
|
4952
4982
|
props: ["render", "props"],
|
|
@@ -4957,7 +4987,7 @@ function dr(e) {
|
|
|
4957
4987
|
data: Y(e.data)
|
|
4958
4988
|
});
|
|
4959
4989
|
}
|
|
4960
|
-
function
|
|
4990
|
+
function Df(e) {
|
|
4961
4991
|
const t = xa(e.data), n = qt({
|
|
4962
4992
|
state: {},
|
|
4963
4993
|
// Dummy state
|
|
@@ -4971,7 +5001,7 @@ function $f(e) {
|
|
|
4971
5001
|
...s
|
|
4972
5002
|
} : qt(r, s);
|
|
4973
5003
|
}
|
|
4974
|
-
}, t ? dr(e) : e), o =
|
|
5004
|
+
}, t ? dr(e) : e), o = Ef(n);
|
|
4975
5005
|
if (t) {
|
|
4976
5006
|
const r = Ze(e.data);
|
|
4977
5007
|
ue(r, () => {
|
|
@@ -4983,7 +5013,7 @@ function $f(e) {
|
|
|
4983
5013
|
immediate: !0
|
|
4984
5014
|
});
|
|
4985
5015
|
}
|
|
4986
|
-
const i =
|
|
5016
|
+
const i = j(o.initialState);
|
|
4987
5017
|
return ka(() => {
|
|
4988
5018
|
o.setOptions((r) => {
|
|
4989
5019
|
var s;
|
|
@@ -5004,10 +5034,10 @@ function $f(e) {
|
|
|
5004
5034
|
});
|
|
5005
5035
|
}), o;
|
|
5006
5036
|
}
|
|
5007
|
-
function
|
|
5037
|
+
function Pf(e) {
|
|
5008
5038
|
return typeof e == "object" ? e.key : e;
|
|
5009
5039
|
}
|
|
5010
|
-
function
|
|
5040
|
+
function Af(e, t) {
|
|
5011
5041
|
const n = e.length;
|
|
5012
5042
|
return new Proxy(e, {
|
|
5013
5043
|
get(o, i, r) {
|
|
@@ -5078,7 +5108,7 @@ function fr(e, t) {
|
|
|
5078
5108
|
throw new Error("Unexpected undefined");
|
|
5079
5109
|
return e;
|
|
5080
5110
|
}
|
|
5081
|
-
const gr = (e, t) => Math.abs(e - t) < 1.01,
|
|
5111
|
+
const gr = (e, t) => Math.abs(e - t) < 1.01, Of = (e, t, n) => {
|
|
5082
5112
|
let o;
|
|
5083
5113
|
return Object.assign(
|
|
5084
5114
|
function(...i) {
|
|
@@ -5104,12 +5134,12 @@ const Eo = () => {
|
|
|
5104
5134
|
}, hr = (e) => {
|
|
5105
5135
|
const { offsetWidth: t, offsetHeight: n } = e;
|
|
5106
5136
|
return { width: t, height: n };
|
|
5107
|
-
},
|
|
5137
|
+
}, zf = (e) => e, Vf = (e) => {
|
|
5108
5138
|
const t = Math.max(e.startIndex - e.overscan, 0), o = Math.min(e.endIndex + e.overscan, e.count - 1) - t + 1, i = new Array(o);
|
|
5109
5139
|
for (let r = 0; r < o; r++)
|
|
5110
5140
|
i[r] = t + r;
|
|
5111
5141
|
return i;
|
|
5112
|
-
},
|
|
5142
|
+
}, Nf = (e, t) => {
|
|
5113
5143
|
const n = e.scrollElement;
|
|
5114
5144
|
if (!n)
|
|
5115
5145
|
return;
|
|
@@ -5142,16 +5172,16 @@ const Eo = () => {
|
|
|
5142
5172
|
};
|
|
5143
5173
|
}, zn = {
|
|
5144
5174
|
passive: !0
|
|
5145
|
-
},
|
|
5175
|
+
}, Lf = typeof window > "u" ? !0 : "onscrollend" in window, Hf = (e, t, n) => {
|
|
5146
5176
|
const o = e.scrollElement;
|
|
5147
5177
|
if (!o)
|
|
5148
5178
|
return;
|
|
5149
5179
|
const i = e.targetWindow;
|
|
5150
5180
|
if (!i)
|
|
5151
5181
|
return;
|
|
5152
|
-
const r = e.options.useScrollendEvent &&
|
|
5182
|
+
const r = e.options.useScrollendEvent && Lf;
|
|
5153
5183
|
let s = 0;
|
|
5154
|
-
const l = r ? null :
|
|
5184
|
+
const l = r ? null : Of(
|
|
5155
5185
|
i,
|
|
5156
5186
|
() => t(n(o), !1),
|
|
5157
5187
|
e.options.isScrollingResetDelay
|
|
@@ -5161,10 +5191,10 @@ const Eo = () => {
|
|
|
5161
5191
|
return o.addEventListener("scroll", u, zn), r && o.addEventListener("scrollend", d, zn), () => {
|
|
5162
5192
|
o.removeEventListener("scroll", u), r && o.removeEventListener("scrollend", d), l == null || l.cancel();
|
|
5163
5193
|
};
|
|
5164
|
-
},
|
|
5194
|
+
}, Bf = (e, t) => Hf(e, t, (n) => {
|
|
5165
5195
|
const { horizontal: o, isRtl: i } = e.options;
|
|
5166
5196
|
return o ? n.scrollLeft * (i && -1 || 1) : n.scrollTop;
|
|
5167
|
-
}),
|
|
5197
|
+
}), jf = (e, t, n) => {
|
|
5168
5198
|
if (n.options.useCachedMeasurements) {
|
|
5169
5199
|
const o = n.indexFromElement(e), i = n.options.getItemKey(o);
|
|
5170
5200
|
return n.itemSizeCache.get(i) ?? n.options.estimateSize(o);
|
|
@@ -5182,7 +5212,7 @@ const Eo = () => {
|
|
|
5182
5212
|
return r;
|
|
5183
5213
|
}
|
|
5184
5214
|
return e[n.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
5185
|
-
},
|
|
5215
|
+
}, Gf = (e, {
|
|
5186
5216
|
adjustments: t = 0,
|
|
5187
5217
|
behavior: n
|
|
5188
5218
|
}, o) => {
|
|
@@ -5191,8 +5221,8 @@ const Eo = () => {
|
|
|
5191
5221
|
[o.options.horizontal ? "left" : "top"]: e + t,
|
|
5192
5222
|
behavior: n
|
|
5193
5223
|
});
|
|
5194
|
-
},
|
|
5195
|
-
function
|
|
5224
|
+
}, Kf = Gf;
|
|
5225
|
+
function Wf(e, t, n, o) {
|
|
5196
5226
|
if (t === 0) return !1;
|
|
5197
5227
|
const i = o(0), r = /* @__PURE__ */ new Set();
|
|
5198
5228
|
let s = 0;
|
|
@@ -5209,7 +5239,7 @@ function Kf(e, t, n, o) {
|
|
|
5209
5239
|
if (r.has(o(a))) return !1;
|
|
5210
5240
|
return !0;
|
|
5211
5241
|
}
|
|
5212
|
-
class
|
|
5242
|
+
class qf {
|
|
5213
5243
|
constructor(t) {
|
|
5214
5244
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this._singleLaneMeasurements = null, this.itemSizeCache = /* @__PURE__ */ new Map(), this.itemSizeCacheVersion = 0, this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMin = null, this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.pendingScrollAnchor = null, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this._iosDeferredAdjustment = 0, this._iosTouching = !1, this._iosJustTouchEnded = !1, this._iosTouchEndTimerId = null, this._intendedScrollOffset = null, this._clampedAdjustment = null, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
|
|
5215
5245
|
var n, o, i;
|
|
@@ -5262,11 +5292,11 @@ class Wf {
|
|
|
5262
5292
|
scrollPaddingStart: 0,
|
|
5263
5293
|
scrollPaddingEnd: 0,
|
|
5264
5294
|
horizontal: !1,
|
|
5265
|
-
getItemKey:
|
|
5266
|
-
rangeExtractor:
|
|
5295
|
+
getItemKey: zf,
|
|
5296
|
+
rangeExtractor: Vf,
|
|
5267
5297
|
onChange: () => {
|
|
5268
5298
|
},
|
|
5269
|
-
measureElement:
|
|
5299
|
+
measureElement: jf,
|
|
5270
5300
|
initialRect: { width: 0, height: 0 },
|
|
5271
5301
|
scrollMargin: 0,
|
|
5272
5302
|
gap: 0,
|
|
@@ -5291,13 +5321,13 @@ class Wf {
|
|
|
5291
5321
|
const r = this.options;
|
|
5292
5322
|
let s = null, l = null, a = !1;
|
|
5293
5323
|
if (r !== void 0 && r.enabled && i.enabled && i.anchorTo === "end" && this.scrollElement !== null) {
|
|
5294
|
-
const g = r.count, S = i.count, h = this.getMeasurements(), p = ((o = this._singleLaneMeasurements) == null ? void 0 : o.items) ?? h, m = (I) =>
|
|
5324
|
+
const g = r.count, S = i.count, h = this.getMeasurements(), p = ((o = this._singleLaneMeasurements) == null ? void 0 : o.items) ?? h, m = (I) => Pf(p[I]), y = g > 0 ? m(0) : null, _ = g > 0 ? m(g - 1) : null;
|
|
5295
5325
|
if (S !== g || g > 0 && S > 0 && (i.getItemKey(0) !== y || i.getItemKey(S - 1) !== _)) {
|
|
5296
5326
|
a = !0;
|
|
5297
5327
|
const I = g > 0 ? this.getVirtualItemForOffset(this.getScrollOffset()) ?? h[0] : null;
|
|
5298
5328
|
I && (s = [I.key, this.getScrollOffset() - I.start]);
|
|
5299
5329
|
const E = i.followOnAppend === !0 ? "auto" : i.followOnAppend || null;
|
|
5300
|
-
E && S > 0 && this.isAtEnd(r.scrollEndThreshold) && (g === 0 || i.getItemKey(S - 1) !== _) && (S > g ||
|
|
5330
|
+
E && S > 0 && this.isAtEnd(r.scrollEndThreshold) && (g === 0 || i.getItemKey(S - 1) !== _) && (S > g || Wf(
|
|
5301
5331
|
g,
|
|
5302
5332
|
S,
|
|
5303
5333
|
m,
|
|
@@ -5494,13 +5524,13 @@ class Wf {
|
|
|
5494
5524
|
E = C[D * 2] + C[D * 2 + 1] + u;
|
|
5495
5525
|
}
|
|
5496
5526
|
for (let D = h; D < n; D++) {
|
|
5497
|
-
const
|
|
5498
|
-
I[D] =
|
|
5499
|
-
const A = S.get(
|
|
5527
|
+
const B = r(D);
|
|
5528
|
+
I[D] = B;
|
|
5529
|
+
const A = S.get(B), z = typeof A == "number" ? A : this.options.estimateSize(D);
|
|
5500
5530
|
C[D * 2] = E, C[D * 2 + 1] = z, E += z + u;
|
|
5501
5531
|
}
|
|
5502
5532
|
this._singleLaneMeasurements = { flat: C, items: I };
|
|
5503
|
-
const F =
|
|
5533
|
+
const F = Af(I, C);
|
|
5504
5534
|
return this.measurementsCache = F, F;
|
|
5505
5535
|
}
|
|
5506
5536
|
const p = this.measurementsCache.slice(0, h), m = new Array(l).fill(
|
|
@@ -5528,7 +5558,7 @@ class Wf {
|
|
|
5528
5558
|
E = O, F = K + u, D && this.laneAssignments.set(b, E);
|
|
5529
5559
|
} else
|
|
5530
5560
|
E = b % this.options.lanes, F = o + i, D && this.laneAssignments.set(b, E);
|
|
5531
|
-
const
|
|
5561
|
+
const B = S.get(C), A = typeof B == "number" ? B : this.options.estimateSize(b), z = F + A;
|
|
5532
5562
|
p[b] = {
|
|
5533
5563
|
index: b,
|
|
5534
5564
|
start: F,
|
|
@@ -5551,7 +5581,7 @@ class Wf {
|
|
|
5551
5581
|
this.getScrollOffset(),
|
|
5552
5582
|
this.options.lanes
|
|
5553
5583
|
],
|
|
5554
|
-
(n, o, i, r) => n.length === 0 || o === 0 ? (this.range = null, null) : (this.range =
|
|
5584
|
+
(n, o, i, r) => n.length === 0 || o === 0 ? (this.range = null, null) : (this.range = Xf(
|
|
5555
5585
|
n,
|
|
5556
5586
|
o,
|
|
5557
5587
|
i,
|
|
@@ -5883,7 +5913,7 @@ const Es = (e, t, n, o) => {
|
|
|
5883
5913
|
}
|
|
5884
5914
|
return e > 0 ? e - 1 : 0;
|
|
5885
5915
|
};
|
|
5886
|
-
function
|
|
5916
|
+
function Uf(e, t, n) {
|
|
5887
5917
|
let o = 0;
|
|
5888
5918
|
for (; o <= t; ) {
|
|
5889
5919
|
const i = (o + t) / 2 | 0, r = e[i * 2];
|
|
@@ -5896,12 +5926,12 @@ function qf(e, t, n) {
|
|
|
5896
5926
|
}
|
|
5897
5927
|
return o > 0 ? o - 1 : 0;
|
|
5898
5928
|
}
|
|
5899
|
-
function
|
|
5929
|
+
function Xf(e, t, n, o, i) {
|
|
5900
5930
|
const r = e.length - 1;
|
|
5901
5931
|
if (e.length <= o)
|
|
5902
5932
|
return { startIndex: 0, endIndex: r };
|
|
5903
5933
|
if (o === 1 && i !== null) {
|
|
5904
|
-
const u =
|
|
5934
|
+
const u = Uf(
|
|
5905
5935
|
i,
|
|
5906
5936
|
r,
|
|
5907
5937
|
n
|
|
@@ -5931,8 +5961,8 @@ function Uf(e, t, n, o, i) {
|
|
|
5931
5961
|
}
|
|
5932
5962
|
return { startIndex: l, endIndex: a };
|
|
5933
5963
|
}
|
|
5934
|
-
function
|
|
5935
|
-
const t = new
|
|
5964
|
+
function Yf(e) {
|
|
5965
|
+
const t = new qf(Y(e)), n = Ze(t), o = t._didMount();
|
|
5936
5966
|
return ue(
|
|
5937
5967
|
() => Y(e).getScrollElement(),
|
|
5938
5968
|
(i) => {
|
|
@@ -5957,12 +5987,12 @@ function Xf(e) {
|
|
|
5957
5987
|
}
|
|
5958
5988
|
), et(o), n;
|
|
5959
5989
|
}
|
|
5960
|
-
function
|
|
5961
|
-
return
|
|
5990
|
+
function Jf(e) {
|
|
5991
|
+
return Yf(
|
|
5962
5992
|
x(() => ({
|
|
5963
|
-
observeElementRect:
|
|
5964
|
-
observeElementOffset:
|
|
5965
|
-
scrollToFn:
|
|
5993
|
+
observeElementRect: Nf,
|
|
5994
|
+
observeElementOffset: Bf,
|
|
5995
|
+
scrollToFn: Kf,
|
|
5966
5996
|
...Y(e)
|
|
5967
5997
|
}))
|
|
5968
5998
|
);
|
|
@@ -5990,16 +6020,16 @@ function pr(e, t) {
|
|
|
5990
6020
|
...r.disabled ? { disabled: !!fe(r.disabled, t) } : {}
|
|
5991
6021
|
});
|
|
5992
6022
|
}
|
|
5993
|
-
return { kind: "context-menu", items:
|
|
6023
|
+
return { kind: "context-menu", items: Zf(n) };
|
|
5994
6024
|
}
|
|
5995
|
-
function
|
|
6025
|
+
function Zf(e) {
|
|
5996
6026
|
var n, o;
|
|
5997
6027
|
const t = [];
|
|
5998
6028
|
for (const i of e)
|
|
5999
6029
|
i.kind === "separator" && (!t.length || ((n = t.at(-1)) == null ? void 0 : n.kind) === "separator") || t.push(i);
|
|
6000
6030
|
return ((o = t.at(-1)) == null ? void 0 : o.kind) === "separator" && t.pop(), t;
|
|
6001
6031
|
}
|
|
6002
|
-
const
|
|
6032
|
+
const Qf = {
|
|
6003
6033
|
en: {
|
|
6004
6034
|
"table.column.hide": "Hide column",
|
|
6005
6035
|
"table.column.pinLeft": "Pin left",
|
|
@@ -6058,9 +6088,9 @@ const Zf = {
|
|
|
6058
6088
|
"table.columns.order": "Порядок",
|
|
6059
6089
|
"table.columns.move": "Переместить {title}"
|
|
6060
6090
|
}
|
|
6061
|
-
},
|
|
6062
|
-
function
|
|
6063
|
-
const i = String(t ?? "").trim().toLowerCase().split(/[-_]/)[0], s =
|
|
6091
|
+
}, eg = Qf;
|
|
6092
|
+
function tg(e, t, n, o) {
|
|
6093
|
+
const i = String(t ?? "").trim().toLowerCase().split(/[-_]/)[0], s = eg[i === "ru" ? "ru" : "en"][e] ?? n;
|
|
6064
6094
|
return o ? s.replace(/\{([^{}]+)\}/g, (l, a) => {
|
|
6065
6095
|
const u = o[a];
|
|
6066
6096
|
return u == null ? l : String(u);
|
|
@@ -6073,8 +6103,8 @@ const xs = Symbol("EndgeTanStackTableRuntimeContext");
|
|
|
6073
6103
|
* @author owenm <owen23355@gmail.com>
|
|
6074
6104
|
* @license MIT
|
|
6075
6105
|
*/
|
|
6076
|
-
function
|
|
6077
|
-
return (t =
|
|
6106
|
+
function ng(e, t, n) {
|
|
6107
|
+
return (t = sg(t)) in e ? Object.defineProperty(e, t, {
|
|
6078
6108
|
value: n,
|
|
6079
6109
|
enumerable: !0,
|
|
6080
6110
|
configurable: !0,
|
|
@@ -6104,23 +6134,23 @@ function Ke(e) {
|
|
|
6104
6134
|
for (var t = 1; t < arguments.length; t++) {
|
|
6105
6135
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
6106
6136
|
t % 2 ? mr(Object(n), !0).forEach(function(o) {
|
|
6107
|
-
|
|
6137
|
+
ng(e, o, n[o]);
|
|
6108
6138
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mr(Object(n)).forEach(function(o) {
|
|
6109
6139
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
|
|
6110
6140
|
});
|
|
6111
6141
|
}
|
|
6112
6142
|
return e;
|
|
6113
6143
|
}
|
|
6114
|
-
function
|
|
6144
|
+
function og(e, t) {
|
|
6115
6145
|
if (e == null) return {};
|
|
6116
|
-
var n, o, i =
|
|
6146
|
+
var n, o, i = ig(e, t);
|
|
6117
6147
|
if (Object.getOwnPropertySymbols) {
|
|
6118
6148
|
var r = Object.getOwnPropertySymbols(e);
|
|
6119
6149
|
for (o = 0; o < r.length; o++) n = r[o], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
6120
6150
|
}
|
|
6121
6151
|
return i;
|
|
6122
6152
|
}
|
|
6123
|
-
function
|
|
6153
|
+
function ig(e, t) {
|
|
6124
6154
|
if (e == null) return {};
|
|
6125
6155
|
var n = {};
|
|
6126
6156
|
for (var o in e) if ({}.hasOwnProperty.call(e, o)) {
|
|
@@ -6129,7 +6159,7 @@ function og(e, t) {
|
|
|
6129
6159
|
}
|
|
6130
6160
|
return n;
|
|
6131
6161
|
}
|
|
6132
|
-
function
|
|
6162
|
+
function rg(e, t) {
|
|
6133
6163
|
if (typeof e != "object" || !e) return e;
|
|
6134
6164
|
var n = e[Symbol.toPrimitive];
|
|
6135
6165
|
if (n !== void 0) {
|
|
@@ -6139,8 +6169,8 @@ function ig(e, t) {
|
|
|
6139
6169
|
}
|
|
6140
6170
|
return (t === "string" ? String : Number)(e);
|
|
6141
6171
|
}
|
|
6142
|
-
function
|
|
6143
|
-
var t =
|
|
6172
|
+
function sg(e) {
|
|
6173
|
+
var t = rg(e, "string");
|
|
6144
6174
|
return typeof t == "symbol" ? t : t + "";
|
|
6145
6175
|
}
|
|
6146
6176
|
function qo(e) {
|
|
@@ -6151,7 +6181,7 @@ function qo(e) {
|
|
|
6151
6181
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
6152
6182
|
}, qo(e);
|
|
6153
6183
|
}
|
|
6154
|
-
var
|
|
6184
|
+
var lg = "1.15.7";
|
|
6155
6185
|
function Qe(e) {
|
|
6156
6186
|
if (typeof window < "u" && window.navigator)
|
|
6157
6187
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
@@ -6307,7 +6337,7 @@ function br(e) {
|
|
|
6307
6337
|
} while (e !== o && (e = e.parentNode));
|
|
6308
6338
|
return [t, n];
|
|
6309
6339
|
}
|
|
6310
|
-
function
|
|
6340
|
+
function ag(e, t) {
|
|
6311
6341
|
for (var n in e)
|
|
6312
6342
|
if (e.hasOwnProperty(n)) {
|
|
6313
6343
|
for (var o in t)
|
|
@@ -6330,7 +6360,7 @@ function lt(e, t) {
|
|
|
6330
6360
|
while (n = n.parentNode);
|
|
6331
6361
|
return Ge();
|
|
6332
6362
|
}
|
|
6333
|
-
function
|
|
6363
|
+
function ug(e, t) {
|
|
6334
6364
|
if (e && t)
|
|
6335
6365
|
for (var n in t)
|
|
6336
6366
|
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
@@ -6350,7 +6380,7 @@ function $s(e, t) {
|
|
|
6350
6380
|
}
|
|
6351
6381
|
};
|
|
6352
6382
|
}
|
|
6353
|
-
function
|
|
6383
|
+
function cg() {
|
|
6354
6384
|
clearTimeout(Qt), Qt = void 0;
|
|
6355
6385
|
}
|
|
6356
6386
|
function Ds(e, t, n) {
|
|
@@ -6371,7 +6401,7 @@ function As(e, t, n) {
|
|
|
6371
6401
|
}), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
|
6372
6402
|
}
|
|
6373
6403
|
var Ce = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
6374
|
-
function
|
|
6404
|
+
function dg() {
|
|
6375
6405
|
var e = [], t;
|
|
6376
6406
|
return {
|
|
6377
6407
|
captureAnimationState: function() {
|
|
@@ -6397,7 +6427,7 @@ function cg() {
|
|
|
6397
6427
|
e.push(o);
|
|
6398
6428
|
},
|
|
6399
6429
|
removeAnimationState: function(o) {
|
|
6400
|
-
e.splice(
|
|
6430
|
+
e.splice(ag(e, {
|
|
6401
6431
|
target: o
|
|
6402
6432
|
}), 1);
|
|
6403
6433
|
},
|
|
@@ -6411,7 +6441,7 @@ function cg() {
|
|
|
6411
6441
|
e.forEach(function(l) {
|
|
6412
6442
|
var a = 0, u = l.target, d = u.fromRect, g = he(u), S = u.prevFromRect, h = u.prevToRect, p = l.rect, m = Dt(u, !0);
|
|
6413
6443
|
m && (g.top -= m.f, g.left -= m.e), u.toRect = g, u.thisAnimationDuration && xo(S, g) && !xo(d, g) && // Make sure animatingRect is on line between toRect & fromRect
|
|
6414
|
-
(p.top - g.top) / (p.left - g.left) === (d.top - g.top) / (d.left - g.left) && (a =
|
|
6444
|
+
(p.top - g.top) / (p.left - g.left) === (d.top - g.top) / (d.left - g.left) && (a = gg(p, S, h, i.options)), xo(g, d) || (u.prevFromRect = d, u.prevToRect = g, a || (a = i.options.animation), i.animate(u, p, g, a)), a && (r = !0, s = Math.max(s, a), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
6415
6445
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
6416
6446
|
}, a), u.thisAnimationDuration = a);
|
|
6417
6447
|
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
@@ -6422,17 +6452,17 @@ function cg() {
|
|
|
6422
6452
|
if (s) {
|
|
6423
6453
|
L(o, "transition", ""), L(o, "transform", "");
|
|
6424
6454
|
var l = Dt(this.el), a = l && l.a, u = l && l.d, d = (i.left - r.left) / (a || 1), g = (i.top - r.top) / (u || 1);
|
|
6425
|
-
o.animatingX = !!d, o.animatingY = !!g, L(o, "transform", "translate3d(" + d + "px," + g + "px,0)"), this.forRepaintDummy =
|
|
6455
|
+
o.animatingX = !!d, o.animatingY = !!g, L(o, "transform", "translate3d(" + d + "px," + g + "px,0)"), this.forRepaintDummy = fg(o), L(o, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), L(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
6426
6456
|
L(o, "transition", ""), L(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
6427
6457
|
}, s);
|
|
6428
6458
|
}
|
|
6429
6459
|
}
|
|
6430
6460
|
};
|
|
6431
6461
|
}
|
|
6432
|
-
function
|
|
6462
|
+
function fg(e) {
|
|
6433
6463
|
return e.offsetWidth;
|
|
6434
6464
|
}
|
|
6435
|
-
function
|
|
6465
|
+
function gg(e, t, n, o) {
|
|
6436
6466
|
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * o.animation;
|
|
6437
6467
|
}
|
|
6438
6468
|
var kt = [], ko = {
|
|
@@ -6487,7 +6517,7 @@ var kt = [], ko = {
|
|
|
6487
6517
|
}), i;
|
|
6488
6518
|
}
|
|
6489
6519
|
};
|
|
6490
|
-
function
|
|
6520
|
+
function hg(e) {
|
|
6491
6521
|
var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, r = e.cloneEl, s = e.toEl, l = e.fromEl, a = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, g = e.newDraggableIndex, S = e.originalEvent, h = e.putSortable, p = e.extraEventProperties;
|
|
6492
6522
|
if (t = t || n && n[Ce], !!t) {
|
|
6493
6523
|
var m, y = t.options, _ = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
@@ -6501,8 +6531,8 @@ function gg(e) {
|
|
|
6501
6531
|
n && n.dispatchEvent(m), y[_] && y[_].call(t, m);
|
|
6502
6532
|
}
|
|
6503
6533
|
}
|
|
6504
|
-
var
|
|
6505
|
-
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, r =
|
|
6534
|
+
var pg = ["evt"], _e = function(t, n) {
|
|
6535
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, r = og(o, pg);
|
|
6506
6536
|
un.pluginEvent.bind(H)(t, n, Ke({
|
|
6507
6537
|
dragEl: k,
|
|
6508
6538
|
parentEl: le,
|
|
@@ -6538,7 +6568,7 @@ var hg = ["evt"], _e = function(t, n) {
|
|
|
6538
6568
|
}, r));
|
|
6539
6569
|
};
|
|
6540
6570
|
function be(e) {
|
|
6541
|
-
|
|
6571
|
+
hg(Ke({
|
|
6542
6572
|
putSortable: me,
|
|
6543
6573
|
cloneEl: se,
|
|
6544
6574
|
targetEl: k,
|
|
@@ -6549,7 +6579,7 @@ function be(e) {
|
|
|
6549
6579
|
newDraggableIndex: it
|
|
6550
6580
|
}, e));
|
|
6551
6581
|
}
|
|
6552
|
-
var k, le, G, re, pt, xn, se, rt, Ft, xe, en, it, _n, me, Tt = !1, Nn = !1, Ln = [], ft, Ae, Mo, To, wr, _r, Ut, Mt, tn, nn = !1, Cn = !1, kn, ye, Fo = [], Uo = !1, Hn = [], Qn = typeof document < "u", In = si, Cr = an || nt ? "cssFloat" : "float",
|
|
6582
|
+
var k, le, G, re, pt, xn, se, rt, Ft, xe, en, it, _n, me, Tt = !1, Nn = !1, Ln = [], ft, Ae, Mo, To, wr, _r, Ut, Mt, tn, nn = !1, Cn = !1, kn, ye, Fo = [], Uo = !1, Hn = [], Qn = typeof document < "u", In = si, Cr = an || nt ? "cssFloat" : "float", mg = Qn && !ks && !si && "draggable" in document.createElement("div"), Os = (function() {
|
|
6553
6583
|
if (Qn) {
|
|
6554
6584
|
if (nt)
|
|
6555
6585
|
return !1;
|
|
@@ -6567,10 +6597,10 @@ var k, le, G, re, pt, xn, se, rt, Ft, xe, en, it, _n, me, Tt = !1, Nn = !1, Ln =
|
|
|
6567
6597
|
return s && (a.clear === "both" || a.clear === g) ? "vertical" : "horizontal";
|
|
6568
6598
|
}
|
|
6569
6599
|
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && o[Cr] === "none" || s && o[Cr] === "none" && u + d > i) ? "vertical" : "horizontal";
|
|
6570
|
-
},
|
|
6600
|
+
}, vg = function(t, n, o) {
|
|
6571
6601
|
var i = o ? t.left : t.top, r = o ? t.right : t.bottom, s = o ? t.width : t.height, l = o ? n.left : n.top, a = o ? n.right : n.bottom, u = o ? n.width : n.height;
|
|
6572
6602
|
return i === l || r === a || i + s / 2 === l + u / 2;
|
|
6573
|
-
},
|
|
6603
|
+
}, Sg = function(t, n) {
|
|
6574
6604
|
var o;
|
|
6575
6605
|
return Ln.some(function(i) {
|
|
6576
6606
|
var r = i[Ce].options.emptyInsertThreshold;
|
|
@@ -6612,7 +6642,7 @@ Qn && !ks && document.addEventListener("click", function(e) {
|
|
|
6612
6642
|
var gt = function(t) {
|
|
6613
6643
|
if (k) {
|
|
6614
6644
|
t = t.touches ? t.touches[0] : t;
|
|
6615
|
-
var n =
|
|
6645
|
+
var n = Sg(t.clientX, t.clientY);
|
|
6616
6646
|
if (n) {
|
|
6617
6647
|
var o = {};
|
|
6618
6648
|
for (var i in t)
|
|
@@ -6620,7 +6650,7 @@ var gt = function(t) {
|
|
|
6620
6650
|
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[Ce]._onDragOver(o);
|
|
6621
6651
|
}
|
|
6622
6652
|
}
|
|
6623
|
-
},
|
|
6653
|
+
}, yg = function(t) {
|
|
6624
6654
|
k && k.parentNode[Ce]._isOutsideThisEl(t.target);
|
|
6625
6655
|
};
|
|
6626
6656
|
function H(e, t) {
|
|
@@ -6679,7 +6709,7 @@ function H(e, t) {
|
|
|
6679
6709
|
Vs(t);
|
|
6680
6710
|
for (var i in this)
|
|
6681
6711
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
6682
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
6712
|
+
this.nativeDraggable = t.forceFallback ? !1 : mg, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? ee(e, "pointerdown", this._onTapStart) : (ee(e, "mousedown", this._onTapStart), ee(e, "touchstart", this._onTapStart)), this.nativeDraggable && (ee(e, "dragover", this), ee(e, "dragenter", this)), Ln.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), tt(this, dg());
|
|
6683
6713
|
}
|
|
6684
6714
|
H.prototype = /** @lends Sortable.prototype */
|
|
6685
6715
|
{
|
|
@@ -6693,7 +6723,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
6693
6723
|
_onTapStart: function(t) {
|
|
6694
6724
|
if (t.cancelable) {
|
|
6695
6725
|
var n = this, o = this.el, i = this.options, r = i.preventOnFilter, s = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, a = (l || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || a, d = i.filter;
|
|
6696
|
-
if (
|
|
6726
|
+
if (xg(o), !k && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Zt && a && a.tagName.toUpperCase() === "SELECT") && (a = ze(a, i.draggable, o, !1), !(a && a.animated) && xn !== a)) {
|
|
6697
6727
|
if (Ft = Fe(a), en = Fe(a, i.draggable), typeof d == "function") {
|
|
6698
6728
|
if (d.call(this, t, a, this)) {
|
|
6699
6729
|
be({
|
|
@@ -6786,7 +6816,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
6786
6816
|
if (Tt = !1, re && k) {
|
|
6787
6817
|
_e("dragStarted", this, {
|
|
6788
6818
|
evt: n
|
|
6789
|
-
}), this.nativeDraggable && ee(document, "dragover",
|
|
6819
|
+
}), this.nativeDraggable && ee(document, "dragover", yg);
|
|
6790
6820
|
var o = this.options;
|
|
6791
6821
|
!t && Ee(k, o.dragClass, !1), Ee(k, o.ghostClass, !0), H.active = this, t && this._appendGhost(), be({
|
|
6792
6822
|
sortable: this,
|
|
@@ -6917,12 +6947,12 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
6917
6947
|
if (s)
|
|
6918
6948
|
return le = re, _(), this._hideClone(), y("revert"), H.eventCanceled || (pt ? re.insertBefore(k, pt) : re.appendChild(k)), b(!0);
|
|
6919
6949
|
var I = li(n, l.draggable);
|
|
6920
|
-
if (!I ||
|
|
6950
|
+
if (!I || Cg(t, h, this) && !I.animated) {
|
|
6921
6951
|
if (I === k)
|
|
6922
6952
|
return b(!1);
|
|
6923
6953
|
if (I && n === t.target && (o = I), o && (r = he(o)), Rn(re, n, k, i, o, r, t, !!o) !== !1)
|
|
6924
6954
|
return _(), I && I.nextSibling ? n.insertBefore(k, I.nextSibling) : n.appendChild(k), le = n, C(), b(!0);
|
|
6925
|
-
} else if (I &&
|
|
6955
|
+
} else if (I && _g(t, h, this)) {
|
|
6926
6956
|
var E = zt(n, 0, l, !0);
|
|
6927
6957
|
if (E === k)
|
|
6928
6958
|
return b(!1);
|
|
@@ -6930,8 +6960,8 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
6930
6960
|
return _(), n.insertBefore(k, E), le = n, C(), b(!0);
|
|
6931
6961
|
} else if (o.parentNode === n) {
|
|
6932
6962
|
r = he(o);
|
|
6933
|
-
var F = 0, D,
|
|
6934
|
-
Mt !== o && (D = r[z], nn = !1, Cn = !A && l.invertSwap ||
|
|
6963
|
+
var F = 0, D, B = k.parentNode !== n, A = !vg(k.animated && k.toRect || i, o.animated && o.toRect || r, h), z = h ? "top" : "left", O = yr(o, "top", "top") || yr(k, "top", "top"), K = O ? O.scrollTop : void 0;
|
|
6964
|
+
Mt !== o && (D = r[z], nn = !1, Cn = !A && l.invertSwap || B), F = Ig(t, o, r, h, A ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Cn, Mt === o);
|
|
6935
6965
|
var ne;
|
|
6936
6966
|
if (F !== 0) {
|
|
6937
6967
|
var M = Fe(k);
|
|
@@ -6946,7 +6976,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
6946
6976
|
q = F === 1;
|
|
6947
6977
|
var ie = Rn(re, n, k, i, o, r, t, q);
|
|
6948
6978
|
if (ie !== !1)
|
|
6949
|
-
return (ie === 1 || ie === -1) && (q = ie === 1), Uo = !0, setTimeout(
|
|
6979
|
+
return (ie === 1 || ie === -1) && (q = ie === 1), Uo = !0, setTimeout(wg, 30), _(), q && !X ? n.appendChild(k) : o.parentNode.insertBefore(k, q ? X : o), O && Ds(O, 0, K - O.scrollTop), le = k.parentNode, D !== void 0 && !Cn && (kn = Math.abs(D - he(o)[z])), C(), b(!0);
|
|
6950
6980
|
}
|
|
6951
6981
|
if (n.contains(k))
|
|
6952
6982
|
return b(!1);
|
|
@@ -7030,7 +7060,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
7030
7060
|
break;
|
|
7031
7061
|
case "dragenter":
|
|
7032
7062
|
case "dragover":
|
|
7033
|
-
k && (this._onDragOver(t),
|
|
7063
|
+
k && (this._onDragOver(t), bg(t));
|
|
7034
7064
|
break;
|
|
7035
7065
|
case "selectstart":
|
|
7036
7066
|
t.preventDefault();
|
|
@@ -7043,7 +7073,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
7043
7073
|
*/
|
|
7044
7074
|
toArray: function() {
|
|
7045
7075
|
for (var t = [], n, o = this.el.children, i = 0, r = o.length, s = this.options; i < r; i++)
|
|
7046
|
-
n = o[i], ze(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) ||
|
|
7076
|
+
n = o[i], ze(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || Eg(n));
|
|
7047
7077
|
return t;
|
|
7048
7078
|
},
|
|
7049
7079
|
/**
|
|
@@ -7115,7 +7145,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
7115
7145
|
}
|
|
7116
7146
|
}
|
|
7117
7147
|
};
|
|
7118
|
-
function
|
|
7148
|
+
function bg(e) {
|
|
7119
7149
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
7120
7150
|
}
|
|
7121
7151
|
function Rn(e, t, n, o, i, r, s, l) {
|
|
@@ -7128,18 +7158,18 @@ function Rn(e, t, n, o, i, r, s, l) {
|
|
|
7128
7158
|
function $o(e) {
|
|
7129
7159
|
e.draggable = !1;
|
|
7130
7160
|
}
|
|
7131
|
-
function
|
|
7161
|
+
function wg() {
|
|
7132
7162
|
Uo = !1;
|
|
7133
7163
|
}
|
|
7134
|
-
function
|
|
7164
|
+
function _g(e, t, n) {
|
|
7135
7165
|
var o = he(zt(n.el, 0, n.options, !0)), i = As(n.el, n.options, G), r = 10;
|
|
7136
7166
|
return t ? e.clientX < i.left - r || e.clientY < o.top && e.clientX < o.right : e.clientY < i.top - r || e.clientY < o.bottom && e.clientX < o.left;
|
|
7137
7167
|
}
|
|
7138
|
-
function
|
|
7168
|
+
function Cg(e, t, n) {
|
|
7139
7169
|
var o = he(li(n.el, n.options.draggable)), i = As(n.el, n.options, G), r = 10;
|
|
7140
7170
|
return t ? e.clientX > i.right + r || e.clientY > o.bottom && e.clientX > o.left : e.clientY > i.bottom + r || e.clientX > o.right && e.clientY > o.top;
|
|
7141
7171
|
}
|
|
7142
|
-
function
|
|
7172
|
+
function Ig(e, t, n, o, i, r, s, l) {
|
|
7143
7173
|
var a = o ? e.clientY : e.clientX, u = o ? n.height : n.width, d = o ? n.top : n.left, g = o ? n.bottom : n.right, S = !1;
|
|
7144
7174
|
if (!s) {
|
|
7145
7175
|
if (l && kn < u * i) {
|
|
@@ -7148,19 +7178,19 @@ function Cg(e, t, n, o, i, r, s, l) {
|
|
|
7148
7178
|
else if (tn === 1 ? a < d + kn : a > g - kn)
|
|
7149
7179
|
return -tn;
|
|
7150
7180
|
} else if (a > d + u * (1 - i) / 2 && a < g - u * (1 - i) / 2)
|
|
7151
|
-
return
|
|
7181
|
+
return Rg(t);
|
|
7152
7182
|
}
|
|
7153
7183
|
return S = S || s, S && (a < d + u * r / 2 || a > g - u * r / 2) ? a > d + u / 2 ? 1 : -1 : 0;
|
|
7154
7184
|
}
|
|
7155
|
-
function
|
|
7185
|
+
function Rg(e) {
|
|
7156
7186
|
return Fe(k) < Fe(e) ? 1 : -1;
|
|
7157
7187
|
}
|
|
7158
|
-
function
|
|
7188
|
+
function Eg(e) {
|
|
7159
7189
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
|
|
7160
7190
|
o += t.charCodeAt(n);
|
|
7161
7191
|
return o.toString(36);
|
|
7162
7192
|
}
|
|
7163
|
-
function
|
|
7193
|
+
function xg(e) {
|
|
7164
7194
|
Hn.length = 0;
|
|
7165
7195
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
7166
7196
|
var o = t[n];
|
|
@@ -7184,7 +7214,7 @@ H.utils = {
|
|
|
7184
7214
|
is: function(t, n) {
|
|
7185
7215
|
return !!ze(t, n, t, !1);
|
|
7186
7216
|
},
|
|
7187
|
-
extend:
|
|
7217
|
+
extend: ug,
|
|
7188
7218
|
throttle: $s,
|
|
7189
7219
|
closest: ze,
|
|
7190
7220
|
toggleClass: Ee,
|
|
@@ -7211,9 +7241,9 @@ H.mount = function() {
|
|
|
7211
7241
|
H.create = function(e, t) {
|
|
7212
7242
|
return new H(e, t);
|
|
7213
7243
|
};
|
|
7214
|
-
H.version =
|
|
7244
|
+
H.version = lg;
|
|
7215
7245
|
var ge = [], Xt, Yo, Jo = !1, Do, Po, Bn, Yt;
|
|
7216
|
-
function
|
|
7246
|
+
function kg() {
|
|
7217
7247
|
function e() {
|
|
7218
7248
|
this.defaults = {
|
|
7219
7249
|
scroll: !0,
|
|
@@ -7235,7 +7265,7 @@ function xg() {
|
|
|
7235
7265
|
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
7236
7266
|
},
|
|
7237
7267
|
drop: function() {
|
|
7238
|
-
this.sortable.nativeDraggable ? Z(document, "dragover", this._handleAutoScroll) : (Z(document, "pointermove", this._handleFallbackAutoScroll), Z(document, "touchmove", this._handleFallbackAutoScroll), Z(document, "mousemove", this._handleFallbackAutoScroll)), Ir(), Tn(),
|
|
7268
|
+
this.sortable.nativeDraggable ? Z(document, "dragover", this._handleAutoScroll) : (Z(document, "pointermove", this._handleFallbackAutoScroll), Z(document, "touchmove", this._handleFallbackAutoScroll), Z(document, "mousemove", this._handleFallbackAutoScroll)), Ir(), Tn(), cg();
|
|
7239
7269
|
},
|
|
7240
7270
|
nulling: function() {
|
|
7241
7271
|
Bn = Yo = Xt = Jo = Yt = Do = Po = null, ge.length = 0;
|
|
@@ -7279,9 +7309,9 @@ var Ao = $s(function(e, t, n, o) {
|
|
|
7279
7309
|
Yo !== n && (Yo = n, Tn(), Xt = t.scroll, d = t.scrollFn, Xt === !0 && (Xt = lt(n, !0)));
|
|
7280
7310
|
var g = 0, S = Xt;
|
|
7281
7311
|
do {
|
|
7282
|
-
var h = S, p = he(h), m = p.top, y = p.bottom, _ = p.left, b = p.right, C = p.width, I = p.height, E = void 0, F = void 0, D = h.scrollWidth,
|
|
7283
|
-
h === a ? (E = C < D && (A.overflowX === "auto" || A.overflowX === "scroll" || A.overflowX === "visible"), F = I <
|
|
7284
|
-
var K = E && (Math.abs(b - i) <= s && z + C < D) - (Math.abs(_ - i) <= s && !!z), ne = F && (Math.abs(y - r) <= s && O + I <
|
|
7312
|
+
var h = S, p = he(h), m = p.top, y = p.bottom, _ = p.left, b = p.right, C = p.width, I = p.height, E = void 0, F = void 0, D = h.scrollWidth, B = h.scrollHeight, A = L(h), z = h.scrollLeft, O = h.scrollTop;
|
|
7313
|
+
h === a ? (E = C < D && (A.overflowX === "auto" || A.overflowX === "scroll" || A.overflowX === "visible"), F = I < B && (A.overflowY === "auto" || A.overflowY === "scroll" || A.overflowY === "visible")) : (E = C < D && (A.overflowX === "auto" || A.overflowX === "scroll"), F = I < B && (A.overflowY === "auto" || A.overflowY === "scroll"));
|
|
7314
|
+
var K = E && (Math.abs(b - i) <= s && z + C < D) - (Math.abs(_ - i) <= s && !!z), ne = F && (Math.abs(y - r) <= s && O + I < B) - (Math.abs(m - r) <= s && !!O);
|
|
7285
7315
|
if (!ge[g])
|
|
7286
7316
|
for (var M = 0; M <= g; M++)
|
|
7287
7317
|
ge[M] || (ge[M] = {});
|
|
@@ -7338,9 +7368,9 @@ ui.prototype = {
|
|
|
7338
7368
|
tt(ui, {
|
|
7339
7369
|
pluginName: "removeOnSpill"
|
|
7340
7370
|
});
|
|
7341
|
-
H.mount(new
|
|
7371
|
+
H.mount(new kg());
|
|
7342
7372
|
H.mount(ui, ai);
|
|
7343
|
-
const
|
|
7373
|
+
const Mg = ["aria-expanded"], Tg = ["aria-label"], Fg = { class: "endge-tanstack-table-column-manager__section" }, $g = { class: "endge-tanstack-table-column-manager__label" }, Dg = ["aria-checked", "onClick"], Pg = ["data-checked"], Ag = { class: "endge-tanstack-table-column-manager__section" }, Og = { class: "endge-tanstack-table-column-manager__label" }, zg = ["aria-label"], Vg = /* @__PURE__ */ ve({
|
|
7344
7374
|
name: "EndgeTanStackTableColumnManager",
|
|
7345
7375
|
__name: "TanStackTableColumnManager",
|
|
7346
7376
|
props: {
|
|
@@ -7348,7 +7378,7 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7348
7378
|
translate: { type: Function }
|
|
7349
7379
|
},
|
|
7350
7380
|
setup(e) {
|
|
7351
|
-
const t = e, n =
|
|
7381
|
+
const t = e, n = j(null), o = j(null), i = j(!1), r = j([]);
|
|
7352
7382
|
let s = null;
|
|
7353
7383
|
const l = x(() => t.table.getAllLeafColumns().filter((p) => {
|
|
7354
7384
|
var m;
|
|
@@ -7402,16 +7432,16 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7402
7432
|
"aria-haspopup": "dialog",
|
|
7403
7433
|
onClick: d
|
|
7404
7434
|
}, [
|
|
7405
|
-
ke(Y(
|
|
7435
|
+
ke(Y(Nd), { size: 15 }),
|
|
7406
7436
|
W("span", null, de(t.translate("table.columns.trigger", "Columns")), 1)
|
|
7407
|
-
], 8,
|
|
7437
|
+
], 8, Mg),
|
|
7408
7438
|
i.value ? (T(), P("section", {
|
|
7409
7439
|
key: 0,
|
|
7410
7440
|
class: "endge-tanstack-table-column-manager__popover",
|
|
7411
7441
|
"aria-label": t.translate("table.columns.dialog", "Configure columns")
|
|
7412
7442
|
}, [
|
|
7413
|
-
W("div",
|
|
7414
|
-
W("div",
|
|
7443
|
+
W("div", Fg, [
|
|
7444
|
+
W("div", $g, de(t.translate("table.columns.visibility", "Visibility")), 1),
|
|
7415
7445
|
(T(!0), P(Ie, null, Ve(a.value, (y) => (T(), P("button", {
|
|
7416
7446
|
key: y.id,
|
|
7417
7447
|
type: "button",
|
|
@@ -7424,17 +7454,17 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7424
7454
|
class: "endge-tanstack-table-column-manager__check",
|
|
7425
7455
|
"data-checked": y.getIsVisible() ? "" : void 0
|
|
7426
7456
|
}, [
|
|
7427
|
-
y.getIsVisible() ? (T(), De(Y(
|
|
7457
|
+
y.getIsVisible() ? (T(), De(Y(Cd), {
|
|
7428
7458
|
key: 0,
|
|
7429
7459
|
size: 12
|
|
7430
7460
|
})) : ce("", !0)
|
|
7431
|
-
], 8,
|
|
7461
|
+
], 8, Pg),
|
|
7432
7462
|
W("span", null, de(h(y.id)), 1)
|
|
7433
|
-
], 8,
|
|
7463
|
+
], 8, Dg))), 128))
|
|
7434
7464
|
]),
|
|
7435
7465
|
m[0] || (m[0] = W("div", { class: "endge-tanstack-table-column-manager__separator" }, null, -1)),
|
|
7436
|
-
W("div",
|
|
7437
|
-
W("div",
|
|
7466
|
+
W("div", Ag, [
|
|
7467
|
+
W("div", Og, de(t.translate("table.columns.order", "Order")), 1),
|
|
7438
7468
|
W("div", {
|
|
7439
7469
|
ref_key: "sortableRef",
|
|
7440
7470
|
ref: o,
|
|
@@ -7450,28 +7480,28 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7450
7480
|
class: "endge-tanstack-table-column-manager__drag",
|
|
7451
7481
|
"aria-label": t.translate("table.columns.move", "Move {title}", { title: h(y) })
|
|
7452
7482
|
}, [
|
|
7453
|
-
ke(Y(
|
|
7454
|
-
], 8,
|
|
7483
|
+
ke(Y(zd), { size: 15 })
|
|
7484
|
+
], 8, zg),
|
|
7455
7485
|
W("span", null, de(h(y)), 1)
|
|
7456
7486
|
]))), 128))
|
|
7457
7487
|
], 512)
|
|
7458
7488
|
])
|
|
7459
|
-
], 8,
|
|
7489
|
+
], 8, Tg)) : ce("", !0)
|
|
7460
7490
|
], 512));
|
|
7461
7491
|
}
|
|
7462
|
-
}),
|
|
7492
|
+
}), Ng = ["data-paging", "data-lazy"], Lg = { class: "endge-tanstack-table__toolbar" }, Hg = {
|
|
7463
7493
|
key: 0,
|
|
7464
7494
|
class: "endge-tanstack-table__runtime-controls"
|
|
7465
|
-
},
|
|
7495
|
+
}, Bg = ["value", "placeholder", "aria-label"], jg = ["data-active", "aria-expanded", "aria-label", "title"], Gg = { class: "endge-tanstack-table__summary" }, Kg = { class: "endge-tanstack-table__summary-label" }, Wg = {
|
|
7466
7496
|
key: 0,
|
|
7467
7497
|
class: "endge-tanstack-table__runtime-filters"
|
|
7468
|
-
},
|
|
7498
|
+
}, qg = ["data-row-count", "data-page-row-count"], Ug = ["onContextmenu"], Xg = ["checked", "indeterminate", "aria-label"], Yg = ["disabled", "onClick"], Jg = {
|
|
7469
7499
|
key: 0,
|
|
7470
7500
|
class: "endge-tanstack-table__sort-icon"
|
|
7471
|
-
},
|
|
7501
|
+
}, Zg = {
|
|
7472
7502
|
key: 3,
|
|
7473
7503
|
class: "endge-tanstack-table__sort-index"
|
|
7474
|
-
},
|
|
7504
|
+
}, Qg = ["onMousedown", "onTouchstart", "onDblclick"], eh = ["data-index", "tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown"], th = ["tabindex", "aria-selected", "onClick", "onKeydown"], nh = ["type", "name", "checked", "aria-label", "onChange"], oh = { key: 0 }, ih = ["colspan"], rh = ["aria-label"], sh = { class: "endge-tanstack-table__pagination-controls" }, lh = { class: "endge-tanstack-table__page-size" }, ah = { class: "endge-tanstack-table__page-size-select" }, uh = ["value", "aria-label"], ch = ["value"], dh = { class: "endge-tanstack-table__page-label" }, fh = { class: "endge-tanstack-table__page-buttons" }, gh = ["aria-label", "disabled"], hh = ["aria-label", "disabled"], ph = ["aria-label", "disabled"], mh = ["aria-label", "disabled"], ht = "__endge_selection__", vh = /* @__PURE__ */ ve({
|
|
7475
7505
|
name: "EndgeTanStackSfcDataTable",
|
|
7476
7506
|
__name: "TanStackSfcDataTable",
|
|
7477
7507
|
props: {
|
|
@@ -7506,9 +7536,9 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7506
7536
|
renderCell: {}
|
|
7507
7537
|
},
|
|
7508
7538
|
setup(e) {
|
|
7509
|
-
const t = e, n = x(() => Array.isArray(t.columns) ? t.columns : []), o = x(() => Array.isArray(t.defaultSort) ? t.defaultSort : []), i = x(() => Array.isArray(t.defaultPin) ? t.defaultPin : []), r = 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 = $n(ls, null), u = $n(xs, null), d = x(() => (u == null ? void 0 : u.showSearch.value) === !0), g = x(() => (u == null ? void 0 : u.filterRuntime.value) ?? null), S = x(() => (u == null ? void 0 : u.showFilters.value) === !0 && g.value != null), h = x(() => d.value || S.value), p = x(() => (u == null ? void 0 : u.filtersVisible.value) === !0), m =
|
|
7539
|
+
const t = e, n = x(() => Array.isArray(t.columns) ? t.columns : []), o = x(() => Array.isArray(t.defaultSort) ? t.defaultSort : []), i = x(() => Array.isArray(t.defaultPin) ? t.defaultPin : []), r = 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 = $n(ls, null), u = $n(xs, null), d = x(() => (u == null ? void 0 : u.showSearch.value) === !0), g = x(() => (u == null ? void 0 : u.filterRuntime.value) ?? null), S = x(() => (u == null ? void 0 : u.showFilters.value) === !0 && g.value != null), h = x(() => d.value || S.value), p = x(() => (u == null ? void 0 : u.filtersVisible.value) === !0), m = j(null), y = Ze(ao(t.source)), _ = j(0);
|
|
7510
7540
|
let b = null;
|
|
7511
|
-
const C = x(() => t.tableId ? `table:${t.tableId}` : null), I =
|
|
7541
|
+
const C = x(() => t.tableId ? `table:${t.tableId}` : null), I = j(cl()), E = j(dl()), F = j(io("order", n.value.map((c) => c.key))), D = j(mi()), B = j(vi("size", {})), A = j(rl()), z = Ze(/* @__PURE__ */ new Set()), O = j(null), K = Ze(null), ne = x(() => t.selectionMode !== "none"), M = x(() => t.selectionTrigger === "auto" ? "control" : t.selectionTrigger), X = x(() => ne.value && (M.value === "control" || M.value === "both")), q = x(() => ne.value && (M.value === "row" || M.value === "both")), ie = x(() => X.value ? [ht, ...F.value.filter((c) => c !== ht)] : F.value.filter((c) => c !== ht));
|
|
7512
7542
|
let pe = null;
|
|
7513
7543
|
const bt = x(() => [
|
|
7514
7544
|
...X.value ? [{
|
|
@@ -7542,7 +7572,7 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7542
7572
|
}
|
|
7543
7573
|
};
|
|
7544
7574
|
})
|
|
7545
|
-
]), te =
|
|
7575
|
+
]), te = Df({
|
|
7546
7576
|
get data() {
|
|
7547
7577
|
return y.value;
|
|
7548
7578
|
},
|
|
@@ -7550,9 +7580,9 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7550
7580
|
return bt.value;
|
|
7551
7581
|
},
|
|
7552
7582
|
getRowId: (c, f) => Nl(Oe(t.rowKey, c), f),
|
|
7553
|
-
getCoreRowModel:
|
|
7554
|
-
getSortedRowModel:
|
|
7555
|
-
getPaginationRowModel:
|
|
7583
|
+
getCoreRowModel: xf(),
|
|
7584
|
+
getSortedRowModel: Tf(),
|
|
7585
|
+
getPaginationRowModel: Mf(),
|
|
7556
7586
|
enableMultiSort: t.sortMode === "multiple",
|
|
7557
7587
|
enableSortingRemoval: t.sortMode !== "fixed",
|
|
7558
7588
|
isMultiSortEvent: () => t.sortMode === "multiple",
|
|
@@ -7571,7 +7601,7 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7571
7601
|
return D.value;
|
|
7572
7602
|
},
|
|
7573
7603
|
get columnSizing() {
|
|
7574
|
-
return
|
|
7604
|
+
return B.value;
|
|
7575
7605
|
},
|
|
7576
7606
|
get pagination() {
|
|
7577
7607
|
return A.value;
|
|
@@ -7592,7 +7622,7 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7592
7622
|
return (w == null ? void 0 : w.column) === v.column ? w : (f.set(v.column.id, v), v);
|
|
7593
7623
|
});
|
|
7594
7624
|
}
|
|
7595
|
-
const Pe = x(() => t.paging === "virtual" ? te.getPrePaginationRowModel().rows : te.getRowModel().rows), fn = x(() => Pe.value.map((c) => c.id)), di = x(() => fn.value.length > 0 && fn.value.every((c) => z.value.has(c))), Ws = x(() => !di.value && fn.value.some((c) => z.value.has(c))), gn = x(() => te.getPrePaginationRowModel().rows.length), hn = x(() => Math.max(1, te.getPageCount())), qs = x(() => Math.min(A.value.pageIndex + 1, hn.value)), Us = x(() => [.../* @__PURE__ */ new Set([...s.value, A.value.pageSize])].filter((c) => Number.isFinite(c) && c > 0).sort((c, f) => c - f)), fi = x(() => t.paging === "pages" ? A.value.pageIndex * A.value.pageSize : 0), gi =
|
|
7625
|
+
const Pe = x(() => t.paging === "virtual" ? te.getPrePaginationRowModel().rows : te.getRowModel().rows), fn = x(() => Pe.value.map((c) => c.id)), di = x(() => fn.value.length > 0 && fn.value.every((c) => z.value.has(c))), Ws = x(() => !di.value && fn.value.some((c) => z.value.has(c))), gn = x(() => te.getPrePaginationRowModel().rows.length), hn = x(() => Math.max(1, te.getPageCount())), qs = x(() => Math.min(A.value.pageIndex + 1, hn.value)), Us = x(() => [.../* @__PURE__ */ new Set([...s.value, A.value.pageSize])].filter((c) => Number.isFinite(c) && c > 0).sort((c, f) => c - f)), fi = x(() => t.paging === "pages" ? A.value.pageIndex * A.value.pageSize : 0), gi = Jf(x(() => ({
|
|
7596
7626
|
count: Pe.value.length,
|
|
7597
7627
|
estimateSize: () => t.rowSize,
|
|
7598
7628
|
getItemKey: (c) => {
|
|
@@ -7635,7 +7665,7 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7635
7665
|
}
|
|
7636
7666
|
const Zs = x(() => new Map(
|
|
7637
7667
|
hi.value.map((c) => [c.row.id, c])
|
|
7638
|
-
)), Qs = x(() => Pe.value.length === 0 ? 96 : t.paging === "pages" ? Pe.value.length * t.rowSize : gi.value.getTotalSize()), el = x(() => Math.max(1, te.getVisibleLeafColumns().length)), tl = x(() => (
|
|
7668
|
+
)), Qs = x(() => Pe.value.length === 0 ? 96 : t.paging === "pages" ? Pe.value.length * t.rowSize : gi.value.getTotalSize()), el = x(() => Math.max(1, te.getVisibleLeafColumns().length)), tl = x(() => (B.value, D.value, `${te.getTotalSize()}px`)), eo = {
|
|
7639
7669
|
setColumnVisibility: async (c, f) => {
|
|
7640
7670
|
var v;
|
|
7641
7671
|
(v = te.getColumn(c)) == null || v.toggleVisibility(f);
|
|
@@ -7690,7 +7720,7 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7690
7720
|
});
|
|
7691
7721
|
function oe(c, f, v) {
|
|
7692
7722
|
return _.value, $.i18n.t(c, {
|
|
7693
|
-
defaultValue:
|
|
7723
|
+
defaultValue: tg(c, $.i18n.locale, f, v),
|
|
7694
7724
|
params: v
|
|
7695
7725
|
});
|
|
7696
7726
|
}
|
|
@@ -7772,15 +7802,15 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
7772
7802
|
});
|
|
7773
7803
|
}
|
|
7774
7804
|
function ul(c) {
|
|
7775
|
-
const f =
|
|
7805
|
+
const f = B.value, v = wt(c, f);
|
|
7776
7806
|
if (JSON.stringify(v) === JSON.stringify(f))
|
|
7777
7807
|
return;
|
|
7778
|
-
|
|
7808
|
+
B.value = v, _t("size", v);
|
|
7779
7809
|
const w = Object.keys(v).find((R) => v[R] !== f[R]) ?? null;
|
|
7780
7810
|
pe && clearTimeout(pe), pe = setTimeout(() => {
|
|
7781
7811
|
pe = null, He("columnSizeChanged", {
|
|
7782
7812
|
tableId: Re(),
|
|
7783
|
-
sizes: { ...
|
|
7813
|
+
sizes: { ...B.value },
|
|
7784
7814
|
changedColumnKey: w
|
|
7785
7815
|
});
|
|
7786
7816
|
}, 80);
|
|
@@ -8320,8 +8350,8 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8320
8350
|
style: At({ "--endge-table-row-size": `${e.rowSize}px` }),
|
|
8321
8351
|
onKeydown: Pl
|
|
8322
8352
|
}, [
|
|
8323
|
-
W("div",
|
|
8324
|
-
h.value ? (T(), P("div",
|
|
8353
|
+
W("div", Lg, [
|
|
8354
|
+
h.value ? (T(), P("div", Hg, [
|
|
8325
8355
|
d.value ? (T(), P("input", {
|
|
8326
8356
|
key: 0,
|
|
8327
8357
|
class: "endge-sfc-input endge-tanstack-table__search",
|
|
@@ -8330,7 +8360,7 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8330
8360
|
placeholder: oe("table.search.placeholder", "Search…"),
|
|
8331
8361
|
"aria-label": oe("table.search.ariaLabel", "Search table"),
|
|
8332
8362
|
onInput: Ys
|
|
8333
|
-
}, null, 40,
|
|
8363
|
+
}, null, 40, Bg)) : ce("", !0),
|
|
8334
8364
|
S.value ? (T(), P("button", {
|
|
8335
8365
|
key: 1,
|
|
8336
8366
|
type: "button",
|
|
@@ -8341,24 +8371,24 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8341
8371
|
title: p.value ? oe("table.filters.hide", "Hide filters") : oe("table.filters.show", "Show filters"),
|
|
8342
8372
|
onClick: Js
|
|
8343
8373
|
}, [
|
|
8344
|
-
ke(Y(
|
|
8345
|
-
], 8,
|
|
8374
|
+
ke(Y(Ad), { size: 15 })
|
|
8375
|
+
], 8, jg)) : ce("", !0)
|
|
8346
8376
|
])) : ce("", !0),
|
|
8347
8377
|
W("div", {
|
|
8348
8378
|
class: Kt(["endge-tanstack-table__toolbar-meta", { "endge-tanstack-table__toolbar-meta--after-controls": h.value }])
|
|
8349
8379
|
}, [
|
|
8350
|
-
W("div",
|
|
8380
|
+
W("div", Gg, [
|
|
8351
8381
|
W("span", null, de(gn.value), 1),
|
|
8352
|
-
W("span",
|
|
8382
|
+
W("span", Kg, de(oe("table.summary.rows", "rows")), 1)
|
|
8353
8383
|
]),
|
|
8354
|
-
n.value.length > 1 ? (T(), De(
|
|
8384
|
+
n.value.length > 1 ? (T(), De(Vg, {
|
|
8355
8385
|
key: 0,
|
|
8356
8386
|
table: Y(te),
|
|
8357
8387
|
translate: oe
|
|
8358
8388
|
}, null, 8, ["table"])) : ce("", !0)
|
|
8359
8389
|
], 2)
|
|
8360
8390
|
]),
|
|
8361
|
-
g.value ? Vr((T(), P("div",
|
|
8391
|
+
g.value ? Vr((T(), P("div", Wg, [
|
|
8362
8392
|
ke(Nr, { runtime: g.value }, null, 8, ["runtime"])
|
|
8363
8393
|
], 512)), [
|
|
8364
8394
|
[Ma, p.value]
|
|
@@ -8397,7 +8427,7 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8397
8427
|
onClick: f[0] || (f[0] = mt(() => {
|
|
8398
8428
|
}, ["stop"])),
|
|
8399
8429
|
onChange: wl
|
|
8400
|
-
}, null, 40,
|
|
8430
|
+
}, null, 40, Xg)) : Te(w.column) ? ce("", !0) : (T(), P("button", {
|
|
8401
8431
|
key: 1,
|
|
8402
8432
|
type: "button",
|
|
8403
8433
|
class: Kt(["endge-tanstack-table__sort", { "endge-tanstack-table__sort--enabled": w.column.getIsSorted() }]),
|
|
@@ -8410,28 +8440,28 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8410
8440
|
props: w.getContext()
|
|
8411
8441
|
}, null, 8, ["render", "props"])
|
|
8412
8442
|
], 16),
|
|
8413
|
-
w.column.getCanSort() ? (T(), P("span",
|
|
8414
|
-
w.column.getIsSorted() === "asc" ? (T(), De(Y(
|
|
8443
|
+
w.column.getCanSort() ? (T(), P("span", Jg, [
|
|
8444
|
+
w.column.getIsSorted() === "asc" ? (T(), De(Y(wd), {
|
|
8415
8445
|
key: 0,
|
|
8416
8446
|
size: 14
|
|
8417
|
-
})) : w.column.getIsSorted() === "desc" ? (T(), De(Y(
|
|
8447
|
+
})) : w.column.getIsSorted() === "desc" ? (T(), De(Y(yd), {
|
|
8418
8448
|
key: 1,
|
|
8419
8449
|
size: 14
|
|
8420
|
-
})) : (T(), De(Y(
|
|
8450
|
+
})) : (T(), De(Y(Dd), {
|
|
8421
8451
|
key: 2,
|
|
8422
8452
|
size: 14
|
|
8423
8453
|
})),
|
|
8424
|
-
Ei(w.column.id) != null && I.value.length > 1 ? (T(), P("span",
|
|
8454
|
+
Ei(w.column.id) != null && I.value.length > 1 ? (T(), P("span", Zg, de(Ei(w.column.id)), 1)) : ce("", !0)
|
|
8425
8455
|
])) : ce("", !0)
|
|
8426
|
-
], 10,
|
|
8456
|
+
], 10, Yg)),
|
|
8427
8457
|
w.column.getCanResize() ? (T(), P("div", {
|
|
8428
8458
|
key: 2,
|
|
8429
8459
|
class: Kt(["endge-tanstack-table__resizer", { "endge-tanstack-table__resizer--active": w.column.getIsResizing() }]),
|
|
8430
8460
|
onMousedown: (R) => w.getResizeHandler()(R),
|
|
8431
8461
|
onTouchstart: (R) => w.getResizeHandler()(R),
|
|
8432
8462
|
onDblclick: (R) => w.column.resetSize()
|
|
8433
|
-
}, null, 42,
|
|
8434
|
-
], 16,
|
|
8463
|
+
}, null, 42, Qg)) : ce("", !0)
|
|
8464
|
+
], 16, Ug))), 128))
|
|
8435
8465
|
])
|
|
8436
8466
|
], 16),
|
|
8437
8467
|
W("tbody", Xe(e.styleContract.body.attrs, {
|
|
@@ -8478,31 +8508,31 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8478
8508
|
onClick: f[1] || (f[1] = mt(() => {
|
|
8479
8509
|
}, ["stop"])),
|
|
8480
8510
|
onChange: (J) => bl(w.row, J)
|
|
8481
|
-
}, null, 42,
|
|
8511
|
+
}, null, 42, nh)) : (T(), De(Y(cr), {
|
|
8482
8512
|
key: 1,
|
|
8483
8513
|
render: R.column.columnDef.cell,
|
|
8484
8514
|
props: R.getContext()
|
|
8485
8515
|
}, null, 8, ["render", "props"]))
|
|
8486
|
-
], 16,
|
|
8487
|
-
], 16,
|
|
8488
|
-
Pe.value.length === 0 ? (T(), P("tr",
|
|
8516
|
+
], 16, th))), 128))
|
|
8517
|
+
], 16, eh))), 128)),
|
|
8518
|
+
Pe.value.length === 0 ? (T(), P("tr", oh, [
|
|
8489
8519
|
W("td", {
|
|
8490
8520
|
colspan: el.value,
|
|
8491
8521
|
class: "endge-tanstack-table__empty"
|
|
8492
|
-
}, de(oe("table.empty", "No data")), 9,
|
|
8522
|
+
}, de(oe("table.empty", "No data")), 9, ih)
|
|
8493
8523
|
])) : ce("", !0)
|
|
8494
8524
|
], 16)
|
|
8495
|
-
], 12,
|
|
8525
|
+
], 12, qg)
|
|
8496
8526
|
], 16),
|
|
8497
8527
|
e.paging === "pages" ? (T(), P("footer", {
|
|
8498
8528
|
key: 1,
|
|
8499
8529
|
class: "endge-tanstack-table__pagination",
|
|
8500
8530
|
"aria-label": oe("table.pagination.ariaLabel", "Table pagination")
|
|
8501
8531
|
}, [
|
|
8502
|
-
W("div",
|
|
8503
|
-
W("label",
|
|
8532
|
+
W("div", sh, [
|
|
8533
|
+
W("label", lh, [
|
|
8504
8534
|
W("span", null, de(oe("table.pagination.rowsPerPage", "Rows per page")), 1),
|
|
8505
|
-
W("span",
|
|
8535
|
+
W("span", ah, [
|
|
8506
8536
|
W("select", {
|
|
8507
8537
|
value: A.value.pageSize,
|
|
8508
8538
|
"aria-label": oe("table.pagination.rowsPerPage", "Rows per page"),
|
|
@@ -8511,61 +8541,61 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8511
8541
|
(T(!0), P(Ie, null, Ve(Us.value, (w) => (T(), P("option", {
|
|
8512
8542
|
key: w,
|
|
8513
8543
|
value: w
|
|
8514
|
-
}, de(w), 9,
|
|
8515
|
-
], 40,
|
|
8544
|
+
}, de(w), 9, ch))), 128))
|
|
8545
|
+
], 40, uh)
|
|
8516
8546
|
])
|
|
8517
8547
|
]),
|
|
8518
|
-
W("span",
|
|
8548
|
+
W("span", dh, de(oe("table.pagination.pageOf", "Page {current} of {total}", {
|
|
8519
8549
|
current: qs.value,
|
|
8520
8550
|
total: hn.value
|
|
8521
8551
|
})), 1),
|
|
8522
|
-
W("div",
|
|
8552
|
+
W("div", fh, [
|
|
8523
8553
|
W("button", {
|
|
8524
8554
|
type: "button",
|
|
8525
8555
|
"aria-label": oe("table.pagination.firstPage", "First page"),
|
|
8526
8556
|
disabled: !Y(te).getCanPreviousPage(),
|
|
8527
8557
|
onClick: f[2] || (f[2] = (w) => Y(te).setPageIndex(0))
|
|
8528
8558
|
}, [
|
|
8529
|
-
ke(Y(
|
|
8530
|
-
], 8,
|
|
8559
|
+
ke(Y(Md), { size: 16 })
|
|
8560
|
+
], 8, gh),
|
|
8531
8561
|
W("button", {
|
|
8532
8562
|
type: "button",
|
|
8533
8563
|
"aria-label": oe("table.pagination.previousPage", "Previous page"),
|
|
8534
8564
|
disabled: !Y(te).getCanPreviousPage(),
|
|
8535
8565
|
onClick: f[3] || (f[3] = (w) => Y(te).previousPage())
|
|
8536
8566
|
}, [
|
|
8537
|
-
ke(Y(
|
|
8538
|
-
], 8,
|
|
8567
|
+
ke(Y(xd), { size: 16 })
|
|
8568
|
+
], 8, hh),
|
|
8539
8569
|
W("button", {
|
|
8540
8570
|
type: "button",
|
|
8541
8571
|
"aria-label": oe("table.pagination.nextPage", "Next page"),
|
|
8542
8572
|
disabled: !Y(te).getCanNextPage(),
|
|
8543
8573
|
onClick: f[4] || (f[4] = (w) => Y(te).nextPage())
|
|
8544
8574
|
}, [
|
|
8545
|
-
ke(Y(
|
|
8546
|
-
], 8,
|
|
8575
|
+
ke(Y(Rd), { size: 16 })
|
|
8576
|
+
], 8, ph),
|
|
8547
8577
|
W("button", {
|
|
8548
8578
|
type: "button",
|
|
8549
8579
|
"aria-label": oe("table.pagination.lastPage", "Last page"),
|
|
8550
8580
|
disabled: !Y(te).getCanNextPage(),
|
|
8551
8581
|
onClick: f[5] || (f[5] = (w) => Y(te).setPageIndex(hn.value - 1))
|
|
8552
8582
|
}, [
|
|
8553
|
-
ke(Y(
|
|
8554
|
-
], 8,
|
|
8583
|
+
ke(Y(Fd), { size: 16 })
|
|
8584
|
+
], 8, mh)
|
|
8555
8585
|
])
|
|
8556
8586
|
])
|
|
8557
|
-
], 8,
|
|
8558
|
-
], 44,
|
|
8587
|
+
], 8, rh)) : ce("", !0)
|
|
8588
|
+
], 44, Ng);
|
|
8559
8589
|
};
|
|
8560
8590
|
}
|
|
8561
|
-
}),
|
|
8591
|
+
}), Sh = Jn((e) => {
|
|
8562
8592
|
var _, b, C;
|
|
8563
|
-
const t =
|
|
8593
|
+
const t = Ch(e.props.rows), n = e.node.props["row-state"] ?? e.node.props.rowState, o = e.props.height ?? e.props.h, i = o == null || o === "", r = rn(e.props["row-key"] ?? e.props.rowKey, "id"), s = oa(e.node), l = ia(e.node), a = ra(e.node), u = ((_ = e.node.tableMenus) == null ? void 0 : _.column) ?? sa(e.node), d = ((b = e.node.tableMenus) == null ? void 0 : b.row) ?? la(e.node), g = rd(e.context), S = cs(
|
|
8564
8594
|
e.props["cell-align"] ?? e.props.cellAlign,
|
|
8565
8595
|
e.props["cell-vertical-align"] ?? e.props.cellVerticalAlign
|
|
8566
8596
|
), h = aa(
|
|
8567
8597
|
e.props["column-pin"] ?? e.props.columnPin ?? l.mode
|
|
8568
|
-
), p =
|
|
8598
|
+
), p = yh(
|
|
8569
8599
|
e.node,
|
|
8570
8600
|
e.context,
|
|
8571
8601
|
s,
|
|
@@ -8598,16 +8628,16 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8598
8628
|
overflow: "hidden"
|
|
8599
8629
|
}
|
|
8600
8630
|
}, [
|
|
8601
|
-
e.h(
|
|
8631
|
+
e.h(vh, {
|
|
8602
8632
|
boundaryId: e.node.id,
|
|
8603
8633
|
nodeId: e.node.id,
|
|
8604
|
-
tableRef:
|
|
8634
|
+
tableRef: Ih(e.props.ref ?? e.attrs.ref),
|
|
8605
8635
|
tableId: m,
|
|
8606
8636
|
eventBoundary: e.context.eventBoundary,
|
|
8607
8637
|
eventBindings: e.node.events ?? [],
|
|
8608
|
-
selectionMode:
|
|
8609
|
-
selectionTrigger:
|
|
8610
|
-
cellSelectionMode:
|
|
8638
|
+
selectionMode: Rh(e.props["selection-mode"] ?? e.props.selectionMode),
|
|
8639
|
+
selectionTrigger: xh(e.props["selection-trigger"] ?? e.props.selectionTrigger),
|
|
8640
|
+
cellSelectionMode: Eh(e.props["cell-selection-mode"] ?? e.props.cellSelectionMode),
|
|
8611
8641
|
runtimeState: e.context.runtimeState,
|
|
8612
8642
|
columns: p,
|
|
8613
8643
|
source: t,
|
|
@@ -8621,15 +8651,15 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8621
8651
|
defaultSort: s.defaultSort,
|
|
8622
8652
|
defaultPin: l.defaultPin,
|
|
8623
8653
|
defaultHidden: a.defaultHidden,
|
|
8624
|
-
rowSize: jn(e.props.rowSize, 40),
|
|
8625
|
-
paging:
|
|
8654
|
+
rowSize: jn(e.props["row-size"] ?? e.props.rowSize, 40),
|
|
8655
|
+
paging: kh(e.props.paging),
|
|
8626
8656
|
pageSize: jn(e.props["page-size"] ?? e.props.pageSize, 25),
|
|
8627
|
-
pageSizes:
|
|
8657
|
+
pageSizes: Th(e.props["page-sizes"] ?? e.props.pageSizes),
|
|
8628
8658
|
lazy: e.props.lazy === !0,
|
|
8629
8659
|
renderVersion: e.context.renderVersion,
|
|
8630
8660
|
renderCell: (I, E, F, D) => {
|
|
8631
8661
|
var ie;
|
|
8632
|
-
const
|
|
8662
|
+
const B = Oe(I.key, E), A = { id: D, index: F, data: E }, z = {
|
|
8633
8663
|
key: I.key,
|
|
8634
8664
|
index: I.index,
|
|
8635
8665
|
title: I.title,
|
|
@@ -8637,7 +8667,7 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8637
8667
|
}, O = Dn(y, {
|
|
8638
8668
|
$row: A,
|
|
8639
8669
|
$column: z,
|
|
8640
|
-
$cell: { value:
|
|
8670
|
+
$cell: { value: B },
|
|
8641
8671
|
row: E,
|
|
8642
8672
|
rowIndex: F,
|
|
8643
8673
|
// TanStack требует строковый внутренний идентификатор строки, но лексический
|
|
@@ -8646,12 +8676,12 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8646
8676
|
rowKey: Rr(Oe(r, E), D),
|
|
8647
8677
|
columnKey: I.key,
|
|
8648
8678
|
columnMeta: I.metadata ?? {},
|
|
8649
|
-
value:
|
|
8679
|
+
value: B
|
|
8650
8680
|
}, y.iteration, `${y.consumerScope}/row:${Ot(D)}/column:${Ot(I.key)}`, {
|
|
8651
8681
|
kind: "table-row",
|
|
8652
8682
|
boundaryId: e.node.id,
|
|
8653
8683
|
rowKey: Rr(Oe(r, E), D)
|
|
8654
|
-
}), K = on(e.h, I.cellNodes, O), ne =
|
|
8684
|
+
}), K = I.cellNodes.length ? on(e.h, I.cellNodes, O) : Fh(B), ne = wh(
|
|
8655
8685
|
n ? fe(n, O) : void 0
|
|
8656
8686
|
), M = (ie = ps(E, I.index, ne)) == null ? void 0 : ie.cellContent.attrs, X = I.cellNode ? Un(I.cellNode.props, O) : {}, q = I.cellNode ? is(I.cellNode, X, O) : {};
|
|
8657
8687
|
return I.cellNode && os(q, I.cellNode, X, O), e.h("div", {
|
|
@@ -8662,8 +8692,8 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8662
8692
|
class: ["endge-sfc-table-cell-content", "endge-tanstack-table__cell-content", M == null ? void 0 : M.class],
|
|
8663
8693
|
style: {
|
|
8664
8694
|
display: "flex",
|
|
8665
|
-
alignItems:
|
|
8666
|
-
justifyContent:
|
|
8695
|
+
alignItems: Dh(I.alignment.vertical),
|
|
8696
|
+
justifyContent: $h(I.alignment.horizontal),
|
|
8667
8697
|
width: "100%",
|
|
8668
8698
|
minWidth: 0
|
|
8669
8699
|
}
|
|
@@ -8672,11 +8702,11 @@ const kg = ["aria-expanded"], Mg = ["aria-label"], Tg = { class: "endge-tanstack
|
|
|
8672
8702
|
})
|
|
8673
8703
|
]);
|
|
8674
8704
|
});
|
|
8675
|
-
function
|
|
8705
|
+
function yh(e, t, n, o, i, r, s) {
|
|
8676
8706
|
const l = e.children.filter(js).filter((u) => u.tag === "Column"), a = sd(s, l.length);
|
|
8677
8707
|
return l.map((u, d) => {
|
|
8678
8708
|
var y, _;
|
|
8679
|
-
const g = Un(u.props, t), S =
|
|
8709
|
+
const g = Un(u.props, t), S = _h(u, t, g.key, `column_${d}`), h = n.columns.find((b) => b.key === S) ?? null, p = o.columns.find((b) => b.key === S) ?? null, m = Mh(g.width ?? g.size);
|
|
8680
8710
|
return {
|
|
8681
8711
|
index: d,
|
|
8682
8712
|
key: S,
|
|
@@ -8693,19 +8723,19 @@ function Sh(e, t, n, o, i, r, s) {
|
|
|
8693
8723
|
...u.cellMenu ? { cellMenu: u.cellMenu } : {},
|
|
8694
8724
|
sort: h ? { sortable: h.sortable, comparator: h.comparator, paths: [...h.paths] } : null,
|
|
8695
8725
|
cellNode: Bs(u),
|
|
8696
|
-
cellNodes:
|
|
8726
|
+
cellNodes: bh(u),
|
|
8697
8727
|
styleSurfaces: a[d]
|
|
8698
8728
|
};
|
|
8699
8729
|
});
|
|
8700
8730
|
}
|
|
8701
|
-
function
|
|
8731
|
+
function bh(e) {
|
|
8702
8732
|
const t = Bs(e);
|
|
8703
|
-
return ((t == null ? void 0 : t.children) ?? e.children).filter((n) =>
|
|
8733
|
+
return ((t == null ? void 0 : t.children) ?? e.children).filter((n) => !Ph(n));
|
|
8704
8734
|
}
|
|
8705
8735
|
function Bs(e) {
|
|
8706
8736
|
return e.children.filter(js).find((t) => t.tag === "Cell") ?? null;
|
|
8707
8737
|
}
|
|
8708
|
-
function
|
|
8738
|
+
function wh(e) {
|
|
8709
8739
|
const t = /* @__PURE__ */ new Set(), n = (o) => {
|
|
8710
8740
|
typeof o == "string" ? o.trim().split(/\s+/).filter(Boolean).forEach((i) => t.add(i)) : Array.isArray(o) ? o.forEach(n) : o && typeof o == "object" && Object.entries(o).forEach(([i, r]) => {
|
|
8711
8741
|
r && t.add(i);
|
|
@@ -8713,26 +8743,26 @@ function bh(e) {
|
|
|
8713
8743
|
};
|
|
8714
8744
|
return n(e), [...t];
|
|
8715
8745
|
}
|
|
8716
|
-
function
|
|
8746
|
+
function _h(e, t, n, o) {
|
|
8717
8747
|
const i = n ?? fe(e.directives.key, t);
|
|
8718
8748
|
if (i != null)
|
|
8719
8749
|
return rn(i, o);
|
|
8720
8750
|
const r = e.directives.key;
|
|
8721
8751
|
return (r == null ? void 0 : r.kind) === "expression" && r.reads.length === 0 ? rn(r.source.replace(/^['"]|['"]$/g, ""), o) : o;
|
|
8722
8752
|
}
|
|
8723
|
-
function
|
|
8753
|
+
function Ch(e) {
|
|
8724
8754
|
return Array.isArray(e) ? e.map((t, n) => ci(t) ? t : { id: n, value: t }) : [];
|
|
8725
8755
|
}
|
|
8726
|
-
function
|
|
8756
|
+
function dp(e, t) {
|
|
8727
8757
|
const n = new Set(t.map((o) => o.key));
|
|
8728
8758
|
return Object.fromEntries(
|
|
8729
8759
|
e.filter((o) => n.has(o)).map((o) => [o, !1])
|
|
8730
8760
|
);
|
|
8731
8761
|
}
|
|
8732
|
-
function
|
|
8762
|
+
function fp(e, t) {
|
|
8733
8763
|
return e.filter((n) => t[n.key] !== !1);
|
|
8734
8764
|
}
|
|
8735
|
-
function
|
|
8765
|
+
function gp(e, t, n) {
|
|
8736
8766
|
const o = [...e];
|
|
8737
8767
|
for (const i of t) {
|
|
8738
8768
|
const r = i.itemKey == null ? i.itemIndex : o.findIndex((a) => Object.is(Oe(n, a), i.itemKey));
|
|
@@ -8756,60 +8786,76 @@ function Rr(e, t) {
|
|
|
8756
8786
|
function rn(e, t) {
|
|
8757
8787
|
return String(e ?? "").trim() || t;
|
|
8758
8788
|
}
|
|
8759
|
-
function
|
|
8789
|
+
function Ih(e) {
|
|
8760
8790
|
return String(e ?? "").trim() || null;
|
|
8761
8791
|
}
|
|
8762
|
-
function
|
|
8792
|
+
function Rh(e) {
|
|
8763
8793
|
return e === "single" || e === "multiple" ? e : "none";
|
|
8764
8794
|
}
|
|
8765
|
-
function
|
|
8795
|
+
function Eh(e) {
|
|
8766
8796
|
return e === "single" ? "single" : "none";
|
|
8767
8797
|
}
|
|
8768
|
-
function
|
|
8798
|
+
function xh(e) {
|
|
8769
8799
|
return e === "control" || e === "row" || e === "both" ? e : "auto";
|
|
8770
8800
|
}
|
|
8771
8801
|
function jn(e, t) {
|
|
8772
8802
|
const n = Number(e);
|
|
8773
8803
|
return Number.isFinite(n) && n > 0 ? n : t;
|
|
8774
8804
|
}
|
|
8775
|
-
function
|
|
8805
|
+
function kh(e) {
|
|
8776
8806
|
return String(e ?? "").trim().toLowerCase() === "virtual" ? "virtual" : "pages";
|
|
8777
8807
|
}
|
|
8778
|
-
function
|
|
8808
|
+
function Mh(e) {
|
|
8779
8809
|
if (e == null || e === "")
|
|
8780
8810
|
return null;
|
|
8781
8811
|
const t = Number(e);
|
|
8782
8812
|
return Number.isFinite(t) && t > 0 ? t : null;
|
|
8783
8813
|
}
|
|
8784
|
-
function
|
|
8814
|
+
function Th(e) {
|
|
8785
8815
|
const n = (Array.isArray(e) ? e : typeof e == "string" ? e.split(",") : [25, 50, 100]).map(Number).filter((o) => Number.isFinite(o) && o > 0).map(Math.floor);
|
|
8786
8816
|
return [...new Set(n)].sort((o, i) => o - i);
|
|
8787
8817
|
}
|
|
8818
|
+
function Fh(e) {
|
|
8819
|
+
if (e == null)
|
|
8820
|
+
return "";
|
|
8821
|
+
if (typeof e == "object")
|
|
8822
|
+
try {
|
|
8823
|
+
return JSON.stringify(e);
|
|
8824
|
+
} catch {
|
|
8825
|
+
return "";
|
|
8826
|
+
}
|
|
8827
|
+
return String(e);
|
|
8828
|
+
}
|
|
8788
8829
|
function Oo(e, t) {
|
|
8789
|
-
|
|
8830
|
+
if (e == null || e === "")
|
|
8831
|
+
return t;
|
|
8832
|
+
if (typeof e == "number")
|
|
8833
|
+
return `${e}px`;
|
|
8834
|
+
const n = String(e).trim();
|
|
8835
|
+
return /^\d+(?:\.\d+)?$/.test(n) ? `${n}px` : n;
|
|
8790
8836
|
}
|
|
8791
|
-
function
|
|
8837
|
+
function $h(e) {
|
|
8792
8838
|
return e === "center" ? "center" : e === "right" ? "flex-end" : "flex-start";
|
|
8793
8839
|
}
|
|
8794
|
-
function
|
|
8840
|
+
function Dh(e) {
|
|
8795
8841
|
return e === "middle" ? "center" : e === "bottom" ? "flex-end" : "flex-start";
|
|
8796
8842
|
}
|
|
8797
8843
|
function js(e) {
|
|
8798
8844
|
return e.kind === "element";
|
|
8799
8845
|
}
|
|
8800
|
-
function
|
|
8846
|
+
function Ph(e) {
|
|
8801
8847
|
return e.kind === "element" && (e.tag === "ColumnMenu" || e.tag === "CellMenu" || e.tag === "RowMenu" || e.tag === "MenuItem" || e.tag === "MenuSeparator");
|
|
8802
8848
|
}
|
|
8803
8849
|
function ci(e) {
|
|
8804
8850
|
return e != null && typeof e == "object" && !Array.isArray(e);
|
|
8805
8851
|
}
|
|
8806
|
-
const
|
|
8852
|
+
const Ah = (e) => {
|
|
8807
8853
|
const t = e.props.value == null ? e.children : String(e.props.value);
|
|
8808
8854
|
return e.h("span", {
|
|
8809
8855
|
...e.attrs,
|
|
8810
8856
|
class: ["endge-sfc-text", e.props.class]
|
|
8811
8857
|
}, t);
|
|
8812
|
-
},
|
|
8858
|
+
}, Oh = (e) => e.h("textarea", {
|
|
8813
8859
|
...e.attrs,
|
|
8814
8860
|
class: ["endge-sfc-textarea", e.props.class],
|
|
8815
8861
|
value: e.props.value == null ? "" : String(e.props.value),
|
|
@@ -8817,9 +8863,9 @@ const Dh = (e) => {
|
|
|
8817
8863
|
rows: e.props.rows,
|
|
8818
8864
|
readonly: e.props.readonly === !0,
|
|
8819
8865
|
disabled: e.props.disabled === !0
|
|
8820
|
-
}),
|
|
8866
|
+
}), zh = (e) => {
|
|
8821
8867
|
var g;
|
|
8822
|
-
const t = e.node.children.find(
|
|
8868
|
+
const t = e.node.children.find(Hh), n = e.node.children.find(Bh), o = e.node.props.text ? "text" : e.node.props.markdown ? "markdown" : "rich", i = (t == null ? void 0 : t.children) ?? e.node.children, r = (n == null ? void 0 : n.children) ?? [], s = e.renderNodes(i, e.context);
|
|
8823
8869
|
if (s.length === 0)
|
|
8824
8870
|
return null;
|
|
8825
8871
|
const a = `${(((g = e.context.host) == null ? void 0 : g.id) ?? e.context.componentStack.join(">")) || "sfc"}:${e.context.consumerScope}:${e.node.id}`, u = {};
|
|
@@ -8841,8 +8887,8 @@ const Dh = (e) => {
|
|
|
8841
8887
|
if (o === "text")
|
|
8842
8888
|
return String(Ue(e, "text") ?? "");
|
|
8843
8889
|
if (o === "markdown")
|
|
8844
|
-
return
|
|
8845
|
-
const h =
|
|
8890
|
+
return Vh(e, Ue(e, "markdown"));
|
|
8891
|
+
const h = Lh(e.context);
|
|
8846
8892
|
return e.renderNodes(r, h);
|
|
8847
8893
|
}
|
|
8848
8894
|
}));
|
|
@@ -8853,10 +8899,10 @@ const Dh = (e) => {
|
|
|
8853
8899
|
style: { display: "inline-flex", minWidth: 0 }
|
|
8854
8900
|
}, s);
|
|
8855
8901
|
};
|
|
8856
|
-
function
|
|
8857
|
-
return ca(t).map((n, o) =>
|
|
8902
|
+
function Vh(e, t) {
|
|
8903
|
+
return ca(t).map((n, o) => Nh(e, n, o));
|
|
8858
8904
|
}
|
|
8859
|
-
function
|
|
8905
|
+
function Nh(e, t, n) {
|
|
8860
8906
|
return t.kind === "heading" ? e.h(`h${t.level}`, { key: n, class: "endge-tooltip__heading" }, Pt(e, t.children)) : t.kind === "paragraph" ? e.h("p", { key: n, class: "endge-tooltip__paragraph" }, Pt(e, t.children)) : t.kind === "code-block" ? e.h("pre", { key: n, class: "endge-tooltip__code-block" }, [e.h("code", null, t.value)]) : e.h(t.ordered ? "ol" : "ul", { key: n, class: "endge-tooltip__list" }, t.items.map((o, i) => e.h("li", { key: i }, Pt(e, o))));
|
|
8861
8907
|
}
|
|
8862
8908
|
function Pt(e, t) {
|
|
@@ -8874,25 +8920,25 @@ function Ue(e, ...t) {
|
|
|
8874
8920
|
return fe(o, e.context);
|
|
8875
8921
|
}
|
|
8876
8922
|
}
|
|
8877
|
-
function
|
|
8923
|
+
function Lh(e) {
|
|
8878
8924
|
return { ...e, inspectionParentId: e.inspectionParentId };
|
|
8879
8925
|
}
|
|
8880
|
-
function
|
|
8926
|
+
function Hh(e) {
|
|
8881
8927
|
return e.kind === "element" && e.tag === "TooltipTrigger";
|
|
8882
8928
|
}
|
|
8883
|
-
function
|
|
8929
|
+
function Bh(e) {
|
|
8884
8930
|
return e.kind === "element" && e.tag === "TooltipContent";
|
|
8885
8931
|
}
|
|
8886
8932
|
function Er(e) {
|
|
8887
8933
|
return String(e ?? "").trim() || void 0;
|
|
8888
8934
|
}
|
|
8889
|
-
const
|
|
8890
|
-
id:
|
|
8935
|
+
const jh = "vue-native", Gh = {
|
|
8936
|
+
id: jh,
|
|
8891
8937
|
protocol: Kn,
|
|
8892
8938
|
protocolVersion: Gn,
|
|
8893
8939
|
renderer: "vue",
|
|
8894
8940
|
renderers: {
|
|
8895
|
-
Text:
|
|
8941
|
+
Text: Ah,
|
|
8896
8942
|
DateTime: pc,
|
|
8897
8943
|
Number: Dc,
|
|
8898
8944
|
Icon: Ec,
|
|
@@ -8903,11 +8949,11 @@ const Hh = "vue-native", Bh = {
|
|
|
8903
8949
|
Grid: Cc,
|
|
8904
8950
|
Divider: yc,
|
|
8905
8951
|
Input: xc,
|
|
8906
|
-
Textarea:
|
|
8952
|
+
Textarea: Oh,
|
|
8907
8953
|
Checkbox: fc,
|
|
8908
8954
|
Select: Yc,
|
|
8909
|
-
Tooltip:
|
|
8910
|
-
Table:
|
|
8955
|
+
Tooltip: zh,
|
|
8956
|
+
Table: Sh
|
|
8911
8957
|
},
|
|
8912
8958
|
roots: {
|
|
8913
8959
|
shell: Wt(su),
|
|
@@ -8916,19 +8962,19 @@ const Hh = "vue-native", Bh = {
|
|
|
8916
8962
|
"filter-view": Wt(Nr)
|
|
8917
8963
|
}
|
|
8918
8964
|
};
|
|
8919
|
-
function
|
|
8965
|
+
function Kh(e, t) {
|
|
8920
8966
|
return e.ids - t.ids || e.classes - t.classes || e.types - t.types;
|
|
8921
8967
|
}
|
|
8922
8968
|
function $e(e) {
|
|
8923
8969
|
return JSON.stringify(e);
|
|
8924
8970
|
}
|
|
8925
|
-
function
|
|
8971
|
+
function Wh(e) {
|
|
8926
8972
|
const t = [], n = (o) => {
|
|
8927
8973
|
o && (o.type === "capability" ? t.push(o.capability) : o.type === "not" ? n(o.operand) : (o.type === "and" || o.type === "or") && o.operands.forEach(n));
|
|
8928
8974
|
};
|
|
8929
8975
|
return n(e.supports), t;
|
|
8930
8976
|
}
|
|
8931
|
-
function
|
|
8977
|
+
function qh(e, t = { renderer: "dom", capabilities: [] }) {
|
|
8932
8978
|
const n = [], o = new Set(t.capabilities ?? []), i = [];
|
|
8933
8979
|
return e.forEach((s, l) => {
|
|
8934
8980
|
const a = xr(s) ? s.artifact : s, u = xr(s) ? s.boundaryId : void 0;
|
|
@@ -8946,7 +8992,7 @@ function Kh(e, t = { renderer: "dom", capabilities: [] }) {
|
|
|
8946
8992
|
});
|
|
8947
8993
|
}
|
|
8948
8994
|
for (const d of a.rules) {
|
|
8949
|
-
for (const g of
|
|
8995
|
+
for (const g of Wh(d))
|
|
8950
8996
|
o.has(g) || n.push({
|
|
8951
8997
|
severity: "warning",
|
|
8952
8998
|
code: "ENDGECSS_CAPABILITY_UNAVAILABLE",
|
|
@@ -8971,10 +9017,10 @@ function Kh(e, t = { renderer: "dom", capabilities: [] }) {
|
|
|
8971
9017
|
});
|
|
8972
9018
|
}
|
|
8973
9019
|
}
|
|
8974
|
-
}), i.sort((s, l) => Number(s.important) - Number(l.important) ||
|
|
9020
|
+
}), i.sort((s, l) => Number(s.important) - Number(l.important) || Kh(s.selector.specificity, l.selector.specificity) || s.sourceOrder - l.sourceOrder), { css: i.map((s) => {
|
|
8975
9021
|
var S;
|
|
8976
9022
|
let l = s.nativeSelector;
|
|
8977
|
-
l !== ":root" && !l.startsWith("[data-endge-scope-root=") && (l =
|
|
9023
|
+
l !== ":root" && !l.startsWith("[data-endge-scope-root=") && (l = Yh(l)), s.boundaryId && (l = Jh(l, s.boundaryId)), s.theme && (l = l === ":root" ? `:root[data-endge-theme=${$e(s.theme)}]` : `:root[data-endge-theme=${$e(s.theme)}] :is(${l})`);
|
|
8978
9024
|
const a = s.property ? `${s.property}:${s.value}${s.important ? "!important" : ""};` : s.value, u = `${l}{${a}}`;
|
|
8979
9025
|
if (!s.scope)
|
|
8980
9026
|
return u;
|
|
@@ -8986,10 +9032,10 @@ function Kh(e, t = { renderer: "dom", capabilities: [] }) {
|
|
|
8986
9032
|
function Fn(e, t) {
|
|
8987
9033
|
return e.segments.length === 0 ? e.source : e.segments.map((n, o) => {
|
|
8988
9034
|
const i = o === 0 ? "" : n.combinator === "child" ? " > " : n.combinator === "adjacent" ? " + " : n.combinator === "sibling" ? " ~ " : " ", r = o === e.segments.length - 1;
|
|
8989
|
-
return `${i}${
|
|
9035
|
+
return `${i}${Uh(n.compound, r ? t : void 0)}`;
|
|
8990
9036
|
}).join("");
|
|
8991
9037
|
}
|
|
8992
|
-
function
|
|
9038
|
+
function Uh(e, t) {
|
|
8993
9039
|
const n = [];
|
|
8994
9040
|
e.tag && n.push(`[data-endge-tag=${$e(e.tag)}]`);
|
|
8995
9041
|
for (const o of e.ids)
|
|
@@ -8997,19 +9043,19 @@ function Wh(e, t) {
|
|
|
8997
9043
|
for (const o of e.classes)
|
|
8998
9044
|
n.push(`.${Gs(o)}`);
|
|
8999
9045
|
for (const o of e.attributes)
|
|
9000
|
-
n.push(
|
|
9046
|
+
n.push(Xh(o));
|
|
9001
9047
|
for (const o of e.pseudos)
|
|
9002
9048
|
o.name === "first-child" || o.name === "last-child" ? n.push(`:${o.name}`) : o.name === "nth-child" ? n.push(`:nth-child(${o.expression})`) : o.name === "component" ? n.push(`[data-endge-component=${$e(o.value)}]`) : o.name === "identity" ? n.push(`[data-endge-identity=${$e(o.value)}]`) : o.name === "state" ? n.push(`[data-endge-state~=${$e(o.value)}]`) : o.name === "part" ? n.push(`[data-endge-part~=${$e(o.value)}]`) : "selectors" in o && n.push(`:${o.name}(${o.selectors.map((i) => Fn(i, t)).join(",")})`);
|
|
9003
9049
|
return t && n.push(`[data-endge-scope=${$e(t)}]`), n.join("") || "*";
|
|
9004
9050
|
}
|
|
9005
|
-
function
|
|
9051
|
+
function Xh(e) {
|
|
9006
9052
|
const t = Gs(e.name);
|
|
9007
9053
|
return e.operator === "exists" ? `[${t}]` : `[${t}${e.operator}${$e(e.value ?? "")}${e.insensitive ? " i" : ""}]`;
|
|
9008
9054
|
}
|
|
9009
|
-
function
|
|
9055
|
+
function Yh(e) {
|
|
9010
9056
|
return `:where(${e}):is([data-endge-node],[data-endge-part])`;
|
|
9011
9057
|
}
|
|
9012
|
-
function
|
|
9058
|
+
function Jh(e, t) {
|
|
9013
9059
|
const n = `[data-endge-runtime-scope~=${$e(t)}]`;
|
|
9014
9060
|
return e === ":root" ? n : `${n}${e},${n} ${e}`;
|
|
9015
9061
|
}
|
|
@@ -9019,7 +9065,7 @@ function Gs(e) {
|
|
|
9019
9065
|
function xr(e) {
|
|
9020
9066
|
return "artifact" in e && "boundaryId" in e;
|
|
9021
9067
|
}
|
|
9022
|
-
class
|
|
9068
|
+
class Zh {
|
|
9023
9069
|
constructor() {
|
|
9024
9070
|
Q(this, "_sheet", null);
|
|
9025
9071
|
Q(this, "_fallback", null);
|
|
@@ -9033,7 +9079,7 @@ class Yh {
|
|
|
9033
9079
|
if (i === this._lastKey)
|
|
9034
9080
|
return;
|
|
9035
9081
|
this._lastKey = i;
|
|
9036
|
-
const r =
|
|
9082
|
+
const r = qh(t, n), s = o.map((d) => `[data-endge-runtime-scope~=${JSON.stringify(d)}]{display:none!important;}`).join(`
|
|
9037
9083
|
`), l = [r.css, s].filter(Boolean).join(`
|
|
9038
9084
|
`), a = document;
|
|
9039
9085
|
if (typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype && Array.isArray(a.adoptedStyleSheets)) {
|
|
@@ -9055,7 +9101,7 @@ class Yh {
|
|
|
9055
9101
|
return t.dataset.endgeStyles = "", document.head.append(t), t;
|
|
9056
9102
|
}
|
|
9057
9103
|
}
|
|
9058
|
-
class
|
|
9104
|
+
class Qh extends fa {
|
|
9059
9105
|
constructor() {
|
|
9060
9106
|
super(...arguments);
|
|
9061
9107
|
// В debugger участвует только регистрация renderer и отображение наблюдаемых стилей.
|
|
@@ -9067,11 +9113,11 @@ class Jh extends fa {
|
|
|
9067
9113
|
Q(this, "_unsubscribeProgram", null);
|
|
9068
9114
|
Q(this, "_unsubscribeUIRegistry", null);
|
|
9069
9115
|
Q(this, "_unsubscribeRuntimeScopes", null);
|
|
9070
|
-
Q(this, "_styleRuntime", new
|
|
9116
|
+
Q(this, "_styleRuntime", new Zh());
|
|
9071
9117
|
}
|
|
9072
9118
|
setup(n) {
|
|
9073
9119
|
var o;
|
|
9074
|
-
this._adapterFallbackIds = ((o = n == null ? void 0 : n.ui) == null ? void 0 : o.adapterFallbackIds) ?? [], $.uiRegistry.adapters.register(
|
|
9120
|
+
this._adapterFallbackIds = ((o = n == null ? void 0 : n.ui) == null ? void 0 : o.adapterFallbackIds) ?? [], $.uiRegistry.adapters.register(Gh);
|
|
9075
9121
|
}
|
|
9076
9122
|
build() {
|
|
9077
9123
|
this._activateWorkspaceAdapter();
|
|
@@ -9122,7 +9168,7 @@ class Jh extends fa {
|
|
|
9122
9168
|
return $a(n, o, i);
|
|
9123
9169
|
}
|
|
9124
9170
|
makeRaphRef(n) {
|
|
9125
|
-
const o =
|
|
9171
|
+
const o = j(je.get(n)), i = new _a(je.runtime(), {
|
|
9126
9172
|
id: `watch:${ba(5)}`,
|
|
9127
9173
|
meta: {
|
|
9128
9174
|
type: "watch",
|
|
@@ -9158,22 +9204,22 @@ class Jh extends fa {
|
|
|
9158
9204
|
this._styleRuntime.update(n, { renderer: "dom", capabilities: [] }, o);
|
|
9159
9205
|
}
|
|
9160
9206
|
}
|
|
9161
|
-
const
|
|
9207
|
+
const hp = {
|
|
9162
9208
|
id: "@endge/ui-vue",
|
|
9163
9209
|
modules: [
|
|
9164
9210
|
{
|
|
9165
9211
|
key: "vue",
|
|
9166
|
-
create: () => new
|
|
9212
|
+
create: () => new Qh(),
|
|
9167
9213
|
after: ["configuration", "uiRegistry"],
|
|
9168
9214
|
before: "runtime"
|
|
9169
9215
|
}
|
|
9170
9216
|
]
|
|
9171
9217
|
};
|
|
9172
|
-
function
|
|
9218
|
+
function pp(e) {
|
|
9173
9219
|
const t = String(e ?? "").trim();
|
|
9174
9220
|
if (!t)
|
|
9175
9221
|
throw new Error("[useCurrentFacet] facetIdentity is required");
|
|
9176
|
-
const n =
|
|
9222
|
+
const n = j($.context.getFacetSelection(t)), o = $.context.subscribe(() => {
|
|
9177
9223
|
n.value = $.context.getFacetSelection(t);
|
|
9178
9224
|
});
|
|
9179
9225
|
return et(o), {
|
|
@@ -9185,8 +9231,8 @@ function gp(e) {
|
|
|
9185
9231
|
})
|
|
9186
9232
|
};
|
|
9187
9233
|
}
|
|
9188
|
-
function
|
|
9189
|
-
const e = $.context, t =
|
|
9234
|
+
function mp() {
|
|
9235
|
+
const e = $.context, t = j(e.currentLocale), n = e.subscribe(() => {
|
|
9190
9236
|
t.value = e.currentLocale;
|
|
9191
9237
|
});
|
|
9192
9238
|
return et(n), {
|
|
@@ -9194,8 +9240,8 @@ function hp() {
|
|
|
9194
9240
|
setCurrent: (o) => $.commands.execute({ type: "context:set-locale", payload: { locale: o } })
|
|
9195
9241
|
};
|
|
9196
9242
|
}
|
|
9197
|
-
function
|
|
9198
|
-
const e = $.context, t =
|
|
9243
|
+
function vp() {
|
|
9244
|
+
const e = $.context, t = j(e.currentTheme), n = e.subscribe(() => {
|
|
9199
9245
|
t.value = e.currentTheme;
|
|
9200
9246
|
});
|
|
9201
9247
|
return et(n), {
|
|
@@ -9203,8 +9249,8 @@ function pp() {
|
|
|
9203
9249
|
setCurrent: (o) => $.commands.execute({ type: "context:set-theme", payload: { theme: o } })
|
|
9204
9250
|
};
|
|
9205
9251
|
}
|
|
9206
|
-
function
|
|
9207
|
-
const e = $.context, t =
|
|
9252
|
+
function Sp() {
|
|
9253
|
+
const e = $.context, t = j(e.currentTimezone), n = e.subscribe(() => {
|
|
9208
9254
|
t.value = e.currentTimezone;
|
|
9209
9255
|
});
|
|
9210
9256
|
return et(n), {
|
|
@@ -9216,25 +9262,25 @@ function Zo(e) {
|
|
|
9216
9262
|
const t = Ze(e), n = e.subscribe(() => zo(t));
|
|
9217
9263
|
return { refObj: t, unsubscribe: n };
|
|
9218
9264
|
}
|
|
9219
|
-
function
|
|
9265
|
+
function ep(e) {
|
|
9220
9266
|
const { refObj: t, unsubscribe: n } = Zo(e);
|
|
9221
9267
|
return et(n), t;
|
|
9222
9268
|
}
|
|
9223
|
-
const
|
|
9224
|
-
function
|
|
9269
|
+
const yp = () => ep($.ui);
|
|
9270
|
+
function bp(e) {
|
|
9225
9271
|
e.config.warnHandler = (t, n, o) => {
|
|
9226
9272
|
const i = o ? `
|
|
9227
9273
|
${o}` : "";
|
|
9228
9274
|
console.warn(`[Vue warn] ${t}${i}`);
|
|
9229
9275
|
};
|
|
9230
9276
|
}
|
|
9231
|
-
function
|
|
9277
|
+
function wp(e) {
|
|
9232
9278
|
$.uiRegistry.registerRenderer({
|
|
9233
9279
|
...e,
|
|
9234
9280
|
component: Wt(e.component)
|
|
9235
9281
|
});
|
|
9236
9282
|
}
|
|
9237
|
-
function
|
|
9283
|
+
function _p(e, t) {
|
|
9238
9284
|
if (!e.trim())
|
|
9239
9285
|
return;
|
|
9240
9286
|
const n = ga(e, {
|
|
@@ -9243,7 +9289,7 @@ function bp(e, t) {
|
|
|
9243
9289
|
});
|
|
9244
9290
|
return fe(n.value, t);
|
|
9245
9291
|
}
|
|
9246
|
-
function
|
|
9292
|
+
function tp() {
|
|
9247
9293
|
const { refObj: e } = Zo($.domain), { refObj: t } = Zo($.program), n = x(() => e.value.getFacets()), o = x(() => n.value.flatMap((O) => e.value.getFacetDocuments(O.identity))), i = x(() => e.value.getTypes()), r = x(
|
|
9248
9294
|
() => i.value.filter((O) => O.isPrimitive)
|
|
9249
9295
|
), s = x(() => i.value.filter((O) => !O.isPrimitive)), l = x(() => {
|
|
@@ -9263,7 +9309,7 @@ function Qh() {
|
|
|
9263
9309
|
status: "valid"
|
|
9264
9310
|
};
|
|
9265
9311
|
});
|
|
9266
|
-
}), a = x(() => e.value.getQueries()), u = x(() => e.value.getComponents()), d = x(() => e.value.getComponentSFCs()), g = x(() => e.value.getActions()), S = x(() => e.value.getConverters()), h = x(() => e.value.getIntegrations()), p = x(() => e.value.getPageTemplates()), m = x(() => e.value.getPages()), y = x(() => e.value.getNavigations()), _ = x(() => e.value.getFolders()), b = x(() => e.value.getFilters()), C = x(() => e.value.getCompositions()), I = x(() => e.value.getPolicies()), E = x(() => e.value.getStyles()), F = x(() => e.value.getVocabs()), D = x(() => e.value.getI18nBundles()),
|
|
9312
|
+
}), a = x(() => e.value.getQueries()), u = x(() => e.value.getComponents()), d = x(() => e.value.getComponentSFCs()), g = x(() => e.value.getActions()), S = x(() => e.value.getConverters()), h = x(() => e.value.getIntegrations()), p = x(() => e.value.getPageTemplates()), m = x(() => e.value.getPages()), y = x(() => e.value.getNavigations()), _ = x(() => e.value.getFolders()), b = x(() => e.value.getFilters()), C = x(() => e.value.getCompositions()), I = x(() => e.value.getPolicies()), E = x(() => e.value.getStyles()), F = x(() => e.value.getVocabs()), D = x(() => e.value.getI18nBundles()), B = x(() => e.value.getMocks()), A = x(() => e.value.getAuthProfiles()), z = x(() => ["query-gql", "query-rest"]);
|
|
9267
9313
|
return Dr({
|
|
9268
9314
|
domain: e,
|
|
9269
9315
|
facets: n,
|
|
@@ -9289,15 +9335,15 @@ function Qh() {
|
|
|
9289
9335
|
styles: E,
|
|
9290
9336
|
vocabs: F,
|
|
9291
9337
|
i18nBundles: D,
|
|
9292
|
-
mocks:
|
|
9338
|
+
mocks: B,
|
|
9293
9339
|
authProfiles: A
|
|
9294
9340
|
});
|
|
9295
9341
|
}
|
|
9296
9342
|
let kr = null;
|
|
9297
|
-
function
|
|
9298
|
-
return kr ?? (kr =
|
|
9343
|
+
function Cp() {
|
|
9344
|
+
return kr ?? (kr = tp()), kr;
|
|
9299
9345
|
}
|
|
9300
|
-
const
|
|
9346
|
+
const np = { class: "endge-page" }, op = /* @__PURE__ */ ve({
|
|
9301
9347
|
__name: "EndgePage",
|
|
9302
9348
|
props: {
|
|
9303
9349
|
identity: {},
|
|
@@ -9306,7 +9352,7 @@ const ep = { class: "endge-page" }, tp = /* @__PURE__ */ ve({
|
|
|
9306
9352
|
setup(e) {
|
|
9307
9353
|
const t = e, n = x(
|
|
9308
9354
|
() => $.domain.getPage(t.identity) ?? null
|
|
9309
|
-
), o =
|
|
9355
|
+
), o = j(null);
|
|
9310
9356
|
return Ta(() => {
|
|
9311
9357
|
if (!n.value)
|
|
9312
9358
|
return;
|
|
@@ -9315,14 +9361,14 @@ const ep = { class: "endge-page" }, tp = /* @__PURE__ */ ve({
|
|
|
9315
9361
|
}), Fa(() => {
|
|
9316
9362
|
var i;
|
|
9317
9363
|
(i = o.value) != null && i.id && ($.runtime.destroyRuntime(o.value.id), o.value = null);
|
|
9318
|
-
}), (i, r) => (T(), P("div",
|
|
9364
|
+
}), (i, r) => (T(), P("div", np, [
|
|
9319
9365
|
En(i.$slots, "default", {
|
|
9320
9366
|
page: n.value,
|
|
9321
9367
|
runtime: o.value
|
|
9322
9368
|
}, void 0, !0)
|
|
9323
9369
|
]));
|
|
9324
9370
|
}
|
|
9325
|
-
}),
|
|
9371
|
+
}), Ip = /* @__PURE__ */ sn(op, [["__scopeId", "data-v-a1f10262"]]), Rp = /* @__PURE__ */ ve({
|
|
9326
9372
|
name: "EndgeTanStackTableRuntimeRenderer",
|
|
9327
9373
|
inheritAttrs: !1,
|
|
9328
9374
|
__name: "TanStackTableRuntimeRenderer",
|
|
@@ -9335,7 +9381,7 @@ const ep = { class: "endge-page" }, tp = /* @__PURE__ */ ve({
|
|
|
9335
9381
|
filtersDefaultOpen: { type: Boolean, default: !1 }
|
|
9336
9382
|
},
|
|
9337
9383
|
setup(e) {
|
|
9338
|
-
const t = e, n =
|
|
9384
|
+
const t = e, n = j(""), o = j(t.filtersDefaultOpen);
|
|
9339
9385
|
return Qo(xs, {
|
|
9340
9386
|
showSearch: x(() => t.showSearch),
|
|
9341
9387
|
showFilters: x(() => t.showFilters),
|
|
@@ -9350,17 +9396,17 @@ const ep = { class: "endge-page" }, tp = /* @__PURE__ */ ve({
|
|
|
9350
9396
|
});
|
|
9351
9397
|
export {
|
|
9352
9398
|
Qa as EndgeContextMenuRoot,
|
|
9353
|
-
|
|
9399
|
+
Zh as EndgeDOMStyleRuntime,
|
|
9354
9400
|
La as EndgeFilterField,
|
|
9355
9401
|
Nr as EndgeFilterRenderer,
|
|
9356
|
-
|
|
9402
|
+
Ip as EndgePage,
|
|
9357
9403
|
su as EndgeShell,
|
|
9358
|
-
|
|
9404
|
+
hp as EndgeVuePlugin,
|
|
9359
9405
|
tu as EndgeVueTooltipManager,
|
|
9360
9406
|
Hr as EndgeVueTooltipManagerKey,
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9407
|
+
Qh as EndgeVue_Module,
|
|
9408
|
+
jh as NATIVE_VUE_SFC_ADAPTER_ID,
|
|
9409
|
+
Gh as NativeVueSFCAdapter,
|
|
9364
9410
|
cc as SFCRender_Badge,
|
|
9365
9411
|
Jn as SFCRender_Base,
|
|
9366
9412
|
dc as SFCRender_Box,
|
|
@@ -9375,23 +9421,23 @@ export {
|
|
|
9375
9421
|
xc as SFCRender_Input,
|
|
9376
9422
|
Dc as SFCRender_Number,
|
|
9377
9423
|
Yc as SFCRender_Select,
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9424
|
+
Sh as SFCRender_Table,
|
|
9425
|
+
Ah as SFCRender_Text,
|
|
9426
|
+
Oh as SFCRender_Textarea,
|
|
9427
|
+
zh as SFCRender_Tooltip,
|
|
9382
9428
|
ls as SFCVueBoundaryRegistryKey,
|
|
9383
9429
|
ac as SFCVueRuntimeBridge,
|
|
9384
9430
|
ss as SFC_Renderer,
|
|
9385
9431
|
as as SFC_RuntimeRenderer,
|
|
9386
9432
|
fs as SFC_TABLE_ROW_CLASS_FIELD,
|
|
9387
9433
|
ei as SFC_VUE_RENDER_ADAPTER_REQUIRED_KEYS,
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9434
|
+
vh as TanStackSfcDataTable,
|
|
9435
|
+
Rp as TanStackTableRuntimeRenderer,
|
|
9436
|
+
gp as applyRowSnapshots,
|
|
9391
9437
|
Br as attachEndgeTooltipTriggerAttrs,
|
|
9392
9438
|
os as attachSFCShorthandTooltip,
|
|
9393
9439
|
$t as closeEndgeContextMenu,
|
|
9394
|
-
|
|
9440
|
+
dp as createInitialTableVisibility,
|
|
9395
9441
|
zu as createSFCBaseAttrs,
|
|
9396
9442
|
is as createSFCNodeEventAttrs,
|
|
9397
9443
|
hs as createSFCTableColumnMarkers,
|
|
@@ -9402,39 +9448,39 @@ export {
|
|
|
9402
9448
|
Ur as createSFCVueRenderContext,
|
|
9403
9449
|
ld as decorateSFCTableRowWindow,
|
|
9404
9450
|
ae as endgeContextMenuState,
|
|
9405
|
-
|
|
9406
|
-
|
|
9451
|
+
cp as evaluateSFCBinding,
|
|
9452
|
+
_p as evaluateSFCExpression,
|
|
9407
9453
|
Un as evaluateSFCProps,
|
|
9408
9454
|
fe as evaluateSFCValue,
|
|
9409
9455
|
Ga as executeEndgeContextMenuItem,
|
|
9410
9456
|
Dn as extendSFCVueRenderContext,
|
|
9411
9457
|
hu as extendSFCVueStyleContext,
|
|
9412
|
-
|
|
9458
|
+
fp as filterVisibleTableColumns,
|
|
9413
9459
|
vc as formatSFCDateTime,
|
|
9414
9460
|
Lr as getContextMenuItems,
|
|
9415
|
-
|
|
9461
|
+
up as getExecutableContextMenuItems,
|
|
9416
9462
|
ps as getSFCTableCellStyleSurfaces,
|
|
9417
9463
|
ad as getSFCTableRowAttrs,
|
|
9418
|
-
|
|
9464
|
+
bp as installEndgeVueWarnHandler,
|
|
9419
9465
|
ji as isTruthySFCValue,
|
|
9420
|
-
|
|
9466
|
+
qh as materializeEndgeCSSForDOM,
|
|
9421
9467
|
cs as normalizeSFCTableCellAlignment,
|
|
9422
|
-
|
|
9468
|
+
Ch as normalizeSFCTableRows,
|
|
9423
9469
|
Ni as openEndgeContextMenu,
|
|
9424
9470
|
Oe as readSFCObjectPath,
|
|
9425
9471
|
du as readSFCPath,
|
|
9426
|
-
|
|
9472
|
+
wp as registerVueUIRenderer,
|
|
9427
9473
|
oc as renderSFCNode,
|
|
9428
9474
|
on as renderSFCNodes,
|
|
9429
9475
|
Ka as resolveEndgeContextMenuItemLabel,
|
|
9430
9476
|
Ou as resolveSFCConditionState,
|
|
9431
9477
|
pr as resolveSFCTableMenu,
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9478
|
+
pp as useCurrentFacet,
|
|
9479
|
+
mp as useCurrentLocale,
|
|
9480
|
+
vp as useCurrentTheme,
|
|
9481
|
+
Sp as useCurrentTimezone,
|
|
9482
|
+
Cp as useDomainStore,
|
|
9437
9483
|
Zo as useSubscribableRef,
|
|
9438
|
-
|
|
9439
|
-
|
|
9484
|
+
ep as useSubscribableRefAuto,
|
|
9485
|
+
yp as useUI
|
|
9440
9486
|
};
|