@endge/ui-vue 2.3.0-dev.21 → 2.4.0-dev.23
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
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Ea = Object.defineProperty;
|
|
2
2
|
var xa = (e, t, n) => t in e ? Ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var te = (e, t, n) => xa(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { Endge as
|
|
5
|
-
import { subscribeKeyboardState as
|
|
6
|
-
import { Raph as lt, DataPath as
|
|
7
|
-
import { ref as N, watch as le, toRaw as
|
|
8
|
-
function
|
|
9
|
-
const o =
|
|
4
|
+
import { Endge as T, ENDGE_SFC_RENDER_ADAPTER_PROTOCOL_VERSION as ko, ENDGE_SFC_RENDER_ADAPTER_PROTOCOL as To, resolveFilterSelectPresentation as ka, ENDGE_KEYBOARD_CONTEXT_RAPH_PATH as Ta, matchesComponentSFCInteractionKeyboardCondition as Ma, normalizeComponentSFCInteractionKeyboardCondition as $a, DEFAULT_ENDGE_TOOLTIP_CONFIGURATION as Fa, isModuleRendererId as Aa, ENDGE_SFC_RENDER_ADAPTER_REQUIRED_KEYS as Pa, evaluateComponentSFCExpression as Da, moduleReferenceKey as $n, ADAPTER_RENDERER_SELECTION as Oa, parseModuleRendererSelection as za, ComponentSFCEventBoundary as Va, normalizeComponentSFCInteractionTriggers as vi, matchesComponentSFCInteractionTrigger as Na, resolveComponentSFCInteractionTriggerPlatform as La, normalizeComponentSFCEditTriggers as fs, matchesComponentSFCEditTrigger as gs, getComponentSFCIntrinsicEventDefinitions as Ha, createEndgeTooltipDomId as ps, TABLE_RUNTIME_ACTION_IDS as ke, normalizeComponentSFCTableSort as ja, normalizeComponentSFCTableColumnPin as Ba, normalizeComponentSFCTableColumnVisibility as Ga, normalizeComponentSFCTableColumnMenu as Ka, normalizeComponentSFCTableRowMenu as Wa, normalizeComponentSFCTableColumnPinMode as Ua, normalizeComponentSFCTableSortMode as qa, parseEndgeTooltipMarkdown as Xa, evaluateEndgeStyleSupport as Ya, EndgeModule as Ja, readEndgeBundle as Qa, compileComponentSFCExpression as Za } from "@endge/core";
|
|
5
|
+
import { subscribeKeyboardState as eu, getKeyboardStateSnapshot as tu, isoDateTimeToTimeInput as nu, isoToDateTimeLocalInput as hs, mergeTimeIntoDateTime as ou, isoToDateInput as ru, timeToTimeInput as iu, randomString as su } from "@endge/utils";
|
|
6
|
+
import { Raph as lt, DataPath as lu, RaphNode as au } from "@raphy-js/raph";
|
|
7
|
+
import { ref as N, watch as le, toRaw as uu, getCurrentScope as cu, onScopeDispose as We, defineComponent as be, h as Kt, computed as x, openBlock as $, createElementBlock as O, toDisplayString as de, createCommentVNode as ce, createVNode as Ne, unref as Z, shallowRef as bt, onBeforeUnmount as qe, Fragment as $e, renderList as nt, createBlock as Ue, reactive as ms, nextTick as At, onMounted as Gn, Teleport as vs, withModifiers as Gt, normalizeStyle as Wt, createElementVNode as X, shallowReactive as Ss, normalizeClass as In, provide as Mo, renderSlot as Fn, isVNode as $o, cloneVNode as Fo, getCurrentInstance as ys, inject as Hn, mergeProps as Ze, withKeys as Si, withDirectives as bs, vModelText as du, isRef as ws, watchEffect as fu, triggerRef as wr, vShow as gu, markRaw as En, onBeforeMount as pu, onUnmounted as hu } from "vue";
|
|
8
|
+
function mu(e, t, n) {
|
|
9
|
+
const o = T.context, r = N(o.getState(e, n) ?? t());
|
|
10
10
|
let i = !1, s = !1;
|
|
11
11
|
const l = le(
|
|
12
12
|
r,
|
|
@@ -14,7 +14,7 @@ function hu(e, t, n) {
|
|
|
14
14
|
if (!s) {
|
|
15
15
|
i = !0;
|
|
16
16
|
try {
|
|
17
|
-
o.setState(e,
|
|
17
|
+
o.setState(e, uu(g), n);
|
|
18
18
|
} finally {
|
|
19
19
|
i = !1;
|
|
20
20
|
}
|
|
@@ -31,11 +31,11 @@ function hu(e, t, n) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}, u = o.subscribeState(e, a), d = o.subscribe(a);
|
|
34
|
-
return
|
|
34
|
+
return cu() && We(() => {
|
|
35
35
|
l(), u(), d();
|
|
36
36
|
}), r;
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const vu = be({
|
|
39
39
|
name: "EndgeFilterControlRenderer",
|
|
40
40
|
props: {
|
|
41
41
|
field: {
|
|
@@ -54,15 +54,15 @@ const mu = be({
|
|
|
54
54
|
},
|
|
55
55
|
setup(e, { emit: t }) {
|
|
56
56
|
return () => {
|
|
57
|
-
const o =
|
|
58
|
-
protocol:
|
|
59
|
-
protocolVersion:
|
|
57
|
+
const o = T.uiRegistry.adapters.requireActive({
|
|
58
|
+
protocol: To,
|
|
59
|
+
protocolVersion: ko,
|
|
60
60
|
renderer: "vue",
|
|
61
61
|
requiredRendererKeys: [e.field.control.type]
|
|
62
62
|
}).renderers[e.field.control.type];
|
|
63
63
|
if (!o)
|
|
64
64
|
throw new Error(`[EndgeFilterControlRenderer] renderer "${e.field.control.type}" is missing.`);
|
|
65
|
-
const r = e.readonly === !0, i =
|
|
65
|
+
const r = e.readonly === !0, i = Su(e.field, e.options, r, e.label), s = e.field.control.type === "Input" || e.field.control.type === "Textarea" ? "onInput" : "onChange";
|
|
66
66
|
return o({
|
|
67
67
|
h: Kt,
|
|
68
68
|
children: [],
|
|
@@ -70,14 +70,14 @@ const mu = be({
|
|
|
70
70
|
attrs: {
|
|
71
71
|
"data-endge-filter-field": e.field.key,
|
|
72
72
|
[s]: (l) => {
|
|
73
|
-
r || t("update:value",
|
|
73
|
+
r || t("update:value", yu(l, e.field, e.options));
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
function
|
|
80
|
+
function Su(e, t, n, o) {
|
|
81
81
|
if (e.control.type === "Checkbox")
|
|
82
82
|
return {
|
|
83
83
|
checked: e.value === !0,
|
|
@@ -107,7 +107,7 @@ function vu(e, t, n, o) {
|
|
|
107
107
|
disabled: n
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function yu(e, t, n) {
|
|
111
111
|
const o = e.target;
|
|
112
112
|
if (!(o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement))
|
|
113
113
|
return t.value;
|
|
@@ -132,13 +132,13 @@ function yi(e, t) {
|
|
|
132
132
|
var n;
|
|
133
133
|
return ((n = e.find((o) => String(o.value) === t)) == null ? void 0 : n.value) ?? t;
|
|
134
134
|
}
|
|
135
|
-
const
|
|
135
|
+
const bu = ["data-loading"], wu = {
|
|
136
136
|
key: 0,
|
|
137
137
|
class: "endge-filter-field__label"
|
|
138
|
-
},
|
|
138
|
+
}, _u = {
|
|
139
139
|
key: 1,
|
|
140
140
|
class: "endge-filter-field__error"
|
|
141
|
-
},
|
|
141
|
+
}, Cu = /* @__PURE__ */ be({
|
|
142
142
|
__name: "EndgeFilterField",
|
|
143
143
|
props: {
|
|
144
144
|
field: {},
|
|
@@ -164,7 +164,7 @@ const yu = ["data-loading"], bu = {
|
|
|
164
164
|
}
|
|
165
165
|
i.value = !0, s.value = null;
|
|
166
166
|
try {
|
|
167
|
-
const g = await
|
|
167
|
+
const g = await T.vocabs.loadVocab(d.identity, { throwOnError: !0 });
|
|
168
168
|
r.value = g.map((v) => {
|
|
169
169
|
const p = u(v, d.valuePath), m = typeof p == "string" || typeof p == "number" || typeof p == "boolean" ? p : String(p ?? "");
|
|
170
170
|
return {
|
|
@@ -185,26 +185,26 @@ const yu = ["data-loading"], bu = {
|
|
|
185
185
|
class: "endge-filter-field",
|
|
186
186
|
"data-loading": i.value ? "" : void 0
|
|
187
187
|
}, [
|
|
188
|
-
e.showLabel !== !1 && e.field.control.type !== "Checkbox" ? ($(), O("span",
|
|
189
|
-
Ne(Z(
|
|
188
|
+
e.showLabel !== !1 && e.field.control.type !== "Checkbox" ? ($(), O("span", wu, de(e.label || e.field.key), 1)) : ce("", !0),
|
|
189
|
+
Ne(Z(vu), {
|
|
190
190
|
field: e.field,
|
|
191
191
|
options: l.value,
|
|
192
192
|
label: e.label || e.field.key,
|
|
193
193
|
readonly: e.readonly,
|
|
194
194
|
"onUpdate:value": g[0] || (g[0] = (v) => o("update:value", v))
|
|
195
195
|
}, null, 8, ["field", "options", "label", "readonly"]),
|
|
196
|
-
s.value ? ($(), O("small",
|
|
197
|
-
], 8,
|
|
196
|
+
s.value ? ($(), O("small", _u, de(s.value), 1)) : ce("", !0)
|
|
197
|
+
], 8, bu));
|
|
198
198
|
}
|
|
199
199
|
}), Ut = (e, t) => {
|
|
200
200
|
const n = e.__vccOpts || e;
|
|
201
201
|
for (const [o, r] of t)
|
|
202
202
|
n[o] = r;
|
|
203
203
|
return n;
|
|
204
|
-
},
|
|
204
|
+
}, Ru = /* @__PURE__ */ Ut(Cu, [["__scopeId", "data-v-5e73e623"]]), Iu = ["aria-readonly", "data-adapter-version"], Eu = {
|
|
205
205
|
key: 1,
|
|
206
206
|
class: "endge-filter-renderer__unsupported"
|
|
207
|
-
},
|
|
207
|
+
}, xu = /* @__PURE__ */ be({
|
|
208
208
|
__name: "EndgeFilterRenderer",
|
|
209
209
|
props: {
|
|
210
210
|
runtime: {},
|
|
@@ -221,7 +221,7 @@ const yu = ["data-loading"], bu = {
|
|
|
221
221
|
var m;
|
|
222
222
|
n.value = t.model ?? ((m = t.runtime) == null ? void 0 : m.getRenderModel()) ?? { implementation: { kind: "generated" }, props: {}, fields: [] };
|
|
223
223
|
}
|
|
224
|
-
const a =
|
|
224
|
+
const a = T.uiRegistry.subscribe(() => {
|
|
225
225
|
o.value += 1;
|
|
226
226
|
});
|
|
227
227
|
function u(m) {
|
|
@@ -232,7 +232,7 @@ const yu = ["data-loading"], bu = {
|
|
|
232
232
|
}
|
|
233
233
|
le(() => t.runtime, (m, h) => {
|
|
234
234
|
h && d(h), u(m), l();
|
|
235
|
-
}, { immediate: !0 }), le(() => t.model, l),
|
|
235
|
+
}, { immediate: !0 }), le(() => t.model, l), qe(() => {
|
|
236
236
|
d(t.runtime), a();
|
|
237
237
|
});
|
|
238
238
|
async function g(m, h) {
|
|
@@ -249,7 +249,7 @@ const yu = ["data-loading"], bu = {
|
|
|
249
249
|
"aria-readonly": e.readonly === !0,
|
|
250
250
|
"data-adapter-version": o.value
|
|
251
251
|
}, [
|
|
252
|
-
($(!0), O($e, null, nt(r.value, (y) => ($(),
|
|
252
|
+
($(!0), O($e, null, nt(r.value, (y) => ($(), Ue(Ru, {
|
|
253
253
|
key: `${o.value}:${y.key}`,
|
|
254
254
|
field: y,
|
|
255
255
|
label: v(y.key),
|
|
@@ -257,9 +257,9 @@ const yu = ["data-loading"], bu = {
|
|
|
257
257
|
readonly: e.readonly,
|
|
258
258
|
"onUpdate:value": (R) => g(y.key, R)
|
|
259
259
|
}, null, 8, ["field", "label", "show-label", "readonly", "onUpdate:value"]))), 128))
|
|
260
|
-
], 8,
|
|
260
|
+
], 8, Iu)) : ($(), O("div", Eu, de(`Пользовательский Filter view "${n.value.implementation.identity}" пока не подключён к renderer-у.`), 1));
|
|
261
261
|
}
|
|
262
|
-
}),
|
|
262
|
+
}), _s = /* @__PURE__ */ Ut(xu, [["__scopeId", "data-v-c1f6119b"]]), me = ms({
|
|
263
263
|
open: !1,
|
|
264
264
|
ownerId: null,
|
|
265
265
|
x: 0,
|
|
@@ -273,25 +273,25 @@ function bi(e) {
|
|
|
273
273
|
function cn(e) {
|
|
274
274
|
e && me.ownerId !== e || (me.open = !1, me.ownerId = null, me.menu = null, me.context = null);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Cs() {
|
|
277
277
|
const e = me.menu, t = me.context;
|
|
278
|
-
return !e || !t ? [] :
|
|
278
|
+
return !e || !t ? [] : Mu(e.items);
|
|
279
279
|
}
|
|
280
|
-
const gm =
|
|
281
|
-
async function
|
|
280
|
+
const gm = Cs;
|
|
281
|
+
async function ku(e) {
|
|
282
282
|
const t = me.context;
|
|
283
283
|
if (t)
|
|
284
284
|
try {
|
|
285
|
-
await
|
|
285
|
+
await T.actions.execute(e.action, t, e.input);
|
|
286
286
|
} finally {
|
|
287
287
|
cn();
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Tu(e) {
|
|
291
291
|
const t = e.label;
|
|
292
|
-
return
|
|
292
|
+
return T.i18n.te(e.label) ? T.i18n.t(e.label, { defaultValue: t }) : e.action !== e.label && T.i18n.te(e.action) ? T.i18n.t(e.action, { defaultValue: t }) : t;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Mu(e) {
|
|
295
295
|
var n, o;
|
|
296
296
|
const t = [];
|
|
297
297
|
for (const r of e) {
|
|
@@ -303,21 +303,21 @@ function Tu(e) {
|
|
|
303
303
|
}
|
|
304
304
|
return ((o = t[t.length - 1]) == null ? void 0 : o.kind) === "separator" && t.pop(), t;
|
|
305
305
|
}
|
|
306
|
-
const
|
|
306
|
+
const $u = {
|
|
307
307
|
key: 0,
|
|
308
308
|
role: "separator",
|
|
309
309
|
class: "endge-context-menu-root__separator"
|
|
310
|
-
},
|
|
310
|
+
}, Fu = ["disabled", "onClick"], Au = {
|
|
311
311
|
key: 0,
|
|
312
312
|
class: "endge-context-menu-root__icon",
|
|
313
313
|
viewBox: "0 0 24 24",
|
|
314
314
|
"aria-hidden": "true"
|
|
315
|
-
},
|
|
315
|
+
}, Pu = ["d"], Du = { class: "endge-context-menu-root__label" }, Ou = /* @__PURE__ */ be({
|
|
316
316
|
__name: "EndgeContextMenuRoot",
|
|
317
317
|
setup(e) {
|
|
318
318
|
const t = N(null), n = N(0), o = N(!1);
|
|
319
319
|
let r = null;
|
|
320
|
-
const i = x(() => (n.value,
|
|
320
|
+
const i = x(() => (n.value, Cs())), s = x(() => ({
|
|
321
321
|
left: `${me.x}px`,
|
|
322
322
|
top: `${me.y}px`
|
|
323
323
|
}));
|
|
@@ -331,10 +331,10 @@ const Mu = {
|
|
|
331
331
|
l(), await At(), v(), h("first");
|
|
332
332
|
},
|
|
333
333
|
{ flush: "post" }
|
|
334
|
-
),
|
|
334
|
+
), qe(() => {
|
|
335
335
|
a(), r == null || r(), r = null;
|
|
336
|
-
}),
|
|
337
|
-
r =
|
|
336
|
+
}), Gn(() => {
|
|
337
|
+
r = T.i18n.subscribe(() => {
|
|
338
338
|
n.value += 1;
|
|
339
339
|
});
|
|
340
340
|
});
|
|
@@ -362,14 +362,14 @@ const Mu = {
|
|
|
362
362
|
const w = t.value;
|
|
363
363
|
if (!w)
|
|
364
364
|
return;
|
|
365
|
-
const _ = w.getBoundingClientRect(), C = 8, E = Math.min(me.x, window.innerWidth - _.width - C),
|
|
366
|
-
me.x = Math.max(C, E), me.y = Math.max(C,
|
|
365
|
+
const _ = w.getBoundingClientRect(), C = 8, E = Math.min(me.x, window.innerWidth - _.width - C), M = Math.min(me.y, window.innerHeight - _.height - C);
|
|
366
|
+
me.x = Math.max(C, E), me.y = Math.max(C, M);
|
|
367
367
|
}
|
|
368
368
|
async function p(w) {
|
|
369
369
|
if (!(o.value || w.disabled)) {
|
|
370
370
|
o.value = !0;
|
|
371
371
|
try {
|
|
372
|
-
await
|
|
372
|
+
await ku(w);
|
|
373
373
|
} catch (_) {
|
|
374
374
|
console.error(`[EndgeContextMenu] Action "${w.action}" failed: ${_ instanceof Error ? _.message : String(_)}`);
|
|
375
375
|
} finally {
|
|
@@ -378,11 +378,11 @@ const Mu = {
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
function m(w) {
|
|
381
|
-
return n.value,
|
|
381
|
+
return n.value, Tu(w);
|
|
382
382
|
}
|
|
383
383
|
function h(w) {
|
|
384
|
-
var
|
|
385
|
-
const _ = [...((
|
|
384
|
+
var M, P;
|
|
385
|
+
const _ = [...((M = t.value) == null ? void 0 : M.querySelectorAll('[role="menuitem"]:not(:disabled)')) ?? []];
|
|
386
386
|
if (!_.length)
|
|
387
387
|
return;
|
|
388
388
|
const C = _.indexOf(document.activeElement), E = w === "first" ? 0 : w === "last" ? _.length - 1 : w === "next" ? (C + 1 + _.length) % _.length : (C - 1 + _.length) % _.length;
|
|
@@ -403,7 +403,7 @@ const Mu = {
|
|
|
403
403
|
function R(w) {
|
|
404
404
|
return w ? y[w] ?? null : null;
|
|
405
405
|
}
|
|
406
|
-
return (w, _) => ($(),
|
|
406
|
+
return (w, _) => ($(), Ue(vs, { to: "body" }, [
|
|
407
407
|
Z(me).open && i.value.length > 0 ? ($(), O("div", {
|
|
408
408
|
key: 0,
|
|
409
409
|
ref_key: "menuRef",
|
|
@@ -419,7 +419,7 @@ const Mu = {
|
|
|
419
419
|
($(!0), O($e, null, nt(i.value, (C) => ($(), O($e, {
|
|
420
420
|
key: C.id
|
|
421
421
|
}, [
|
|
422
|
-
C.kind === "separator" ? ($(), O("div",
|
|
422
|
+
C.kind === "separator" ? ($(), O("div", $u)) : ($(), O("button", {
|
|
423
423
|
key: 1,
|
|
424
424
|
type: "button",
|
|
425
425
|
role: "menuitem",
|
|
@@ -427,21 +427,21 @@ const Mu = {
|
|
|
427
427
|
disabled: o.value || C.disabled,
|
|
428
428
|
onClick: (E) => p(C)
|
|
429
429
|
}, [
|
|
430
|
-
R(C.icon ?? C.action) ? ($(), O("svg",
|
|
430
|
+
R(C.icon ?? C.action) ? ($(), O("svg", Au, [
|
|
431
431
|
($(!0), O($e, null, nt(R(C.icon ?? C.action), (E) => ($(), O("path", {
|
|
432
432
|
key: E,
|
|
433
433
|
d: E
|
|
434
|
-
}, null, 8,
|
|
434
|
+
}, null, 8, Pu))), 128))
|
|
435
435
|
])) : ce("", !0),
|
|
436
|
-
X("span",
|
|
437
|
-
], 8,
|
|
436
|
+
X("span", Du, de(m(C)), 1)
|
|
437
|
+
], 8, Fu))
|
|
438
438
|
], 64))), 128))
|
|
439
439
|
], 36)) : ce("", !0)
|
|
440
440
|
]));
|
|
441
441
|
}
|
|
442
|
-
}),
|
|
443
|
-
let
|
|
444
|
-
class
|
|
442
|
+
}), zu = /* @__PURE__ */ Ut(Ou, [["__scopeId", "data-v-9c2031a3"]]);
|
|
443
|
+
let Vu = 0;
|
|
444
|
+
class Nu {
|
|
445
445
|
constructor(t, n) {
|
|
446
446
|
te(this, "state");
|
|
447
447
|
te(this, "adapterId");
|
|
@@ -456,7 +456,7 @@ class Vu {
|
|
|
456
456
|
te(this, "_defaults");
|
|
457
457
|
te(this, "_disposeKeyboardWatch");
|
|
458
458
|
te(this, "_raphScope");
|
|
459
|
-
this.adapterId = t, this._defaults = { ...n }, this.state =
|
|
459
|
+
this.adapterId = t, this._defaults = { ...n }, this.state = Ss({
|
|
460
460
|
phase: "idle",
|
|
461
461
|
ownerId: null,
|
|
462
462
|
domId: null,
|
|
@@ -467,7 +467,7 @@ class Vu {
|
|
|
467
467
|
authoredId: null,
|
|
468
468
|
part: null,
|
|
469
469
|
content: null
|
|
470
|
-
}), this._raphScope = lt.runtime().scope(`tooltip:${t}:${
|
|
470
|
+
}), this._raphScope = lt.runtime().scope(`tooltip:${t}:${Vu++}`), this._disposeKeyboardWatch = this._raphScope.watch(
|
|
471
471
|
lt.runtime().path(Ta),
|
|
472
472
|
"watch",
|
|
473
473
|
() => this._reconcileActivation()
|
|
@@ -568,7 +568,7 @@ class Vu {
|
|
|
568
568
|
n.openDelay === 0 ? this._show(o, n) : this._openTimer = setTimeout(() => this._show(o, n), n.openDelay);
|
|
569
569
|
}
|
|
570
570
|
_matchesKeyboard(t) {
|
|
571
|
-
const n =
|
|
571
|
+
const n = T.context.getKeyboardState();
|
|
572
572
|
return Ma(t.keyboard, n, n.platform);
|
|
573
573
|
}
|
|
574
574
|
_resolvePolicy(t) {
|
|
@@ -577,8 +577,8 @@ class Vu {
|
|
|
577
577
|
i != null && (n[r] = i);
|
|
578
578
|
const o = $a(n.keyboard);
|
|
579
579
|
return {
|
|
580
|
-
side:
|
|
581
|
-
align:
|
|
580
|
+
side: Lu(n.side),
|
|
581
|
+
align: Hu(n.align),
|
|
582
582
|
openDelay: wi(n.openDelay, this._defaults.openDelay),
|
|
583
583
|
closeDelay: wi(n.closeDelay, this._defaults.closeDelay),
|
|
584
584
|
...o ? { keyboard: o } : {}
|
|
@@ -594,8 +594,8 @@ class Vu {
|
|
|
594
594
|
this._detachTimer != null && clearTimeout(this._detachTimer), this._detachTimer = null, this._detachedAnchor = null;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
const
|
|
598
|
-
function
|
|
597
|
+
const Rs = Symbol("EndgeVueTooltipManager");
|
|
598
|
+
function Is(e, t, n, o) {
|
|
599
599
|
t && (kt(e, "onMouseenter", (r) => {
|
|
600
600
|
const i = r.currentTarget;
|
|
601
601
|
t.activate(o(i), "pointer");
|
|
@@ -616,10 +616,10 @@ function kt(e, t, n) {
|
|
|
616
616
|
const o = e[t];
|
|
617
617
|
e[t] = o ? [o, n] : n;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function Lu(e) {
|
|
620
620
|
return ["top", "right", "bottom", "left"].includes(String(e)) ? e : "right";
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Hu(e) {
|
|
623
623
|
return ["start", "center", "end"].includes(String(e)) ? e : "center";
|
|
624
624
|
}
|
|
625
625
|
function wi(e, t) {
|
|
@@ -634,7 +634,7 @@ function Ci(e, t) {
|
|
|
634
634
|
const n = (e.getAttribute("aria-describedby") ?? "").split(/\s+/).filter((o) => o && o !== t);
|
|
635
635
|
n.length ? e.setAttribute("aria-describedby", n.join(" ")) : e.removeAttribute("aria-describedby");
|
|
636
636
|
}
|
|
637
|
-
const
|
|
637
|
+
const ju = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id", "data-side", "data-align"], Bu = /* @__PURE__ */ be({
|
|
638
638
|
__name: "EndgeTooltipRoot",
|
|
639
639
|
props: {
|
|
640
640
|
manager: {}
|
|
@@ -645,7 +645,6 @@ const Hu = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
645
645
|
const s = t.manager.state, l = x(() => [
|
|
646
646
|
"endge-tooltip",
|
|
647
647
|
`endge-tooltip--${t.manager.adapterId}`,
|
|
648
|
-
t.manager.adapterId === zr && "endge-tooltip--vue-native",
|
|
649
648
|
`endge-tooltip--${s.kind}`,
|
|
650
649
|
s.className
|
|
651
650
|
]), a = be({
|
|
@@ -667,7 +666,7 @@ const Hu = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
667
666
|
}
|
|
668
667
|
},
|
|
669
668
|
{ flush: "post" }
|
|
670
|
-
),
|
|
669
|
+
), qe(u);
|
|
671
670
|
function u() {
|
|
672
671
|
window.removeEventListener("resize", d), window.removeEventListener("scroll", d, !0), i == null || i.disconnect(), i = null;
|
|
673
672
|
}
|
|
@@ -689,19 +688,19 @@ const Hu = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
689
688
|
}
|
|
690
689
|
function g(h, y, R, w) {
|
|
691
690
|
const E = [R, m(R)];
|
|
692
|
-
let
|
|
691
|
+
let M = v(E[0], h, y, w, 8), P = p(M.left, M.top, y, 6);
|
|
693
692
|
for (const H of E.slice(1)) {
|
|
694
693
|
const Y = v(H, h, y, w, 8), G = p(Y.left, Y.top, y, 6);
|
|
695
|
-
G < P && (
|
|
694
|
+
G < P && (M = Y, P = G);
|
|
696
695
|
}
|
|
697
696
|
return {
|
|
698
|
-
side:
|
|
699
|
-
left: Math.max(6, Math.min(
|
|
700
|
-
top: Math.max(6, Math.min(
|
|
697
|
+
side: M.side,
|
|
698
|
+
left: Math.max(6, Math.min(M.left, window.innerWidth - y.width - 6)),
|
|
699
|
+
top: Math.max(6, Math.min(M.top, window.innerHeight - y.height - 6))
|
|
701
700
|
};
|
|
702
701
|
}
|
|
703
702
|
function v(h, y, R, w, _) {
|
|
704
|
-
const C = h === "top" || h === "bottom", E = C ? y.left : y.top,
|
|
703
|
+
const C = h === "top" || h === "bottom", E = C ? y.left : y.top, M = C ? y.width : y.height, P = C ? R.width : R.height, H = w === "start" ? E : w === "end" ? E + M - P : E + (M - P) / 2;
|
|
705
704
|
return h === "top" ? { side: h, left: H, top: y.top - R.height - _ } : h === "bottom" ? { side: h, left: H, top: y.bottom + _ } : h === "left" ? { side: h, left: y.left - R.width - _, top: H } : { side: h, left: y.right + _, top: H };
|
|
706
705
|
}
|
|
707
706
|
function p(h, y, R, w) {
|
|
@@ -710,7 +709,7 @@ const Hu = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
710
709
|
function m(h) {
|
|
711
710
|
return { top: "bottom", right: "left", bottom: "top", left: "right" }[h];
|
|
712
711
|
}
|
|
713
|
-
return (h, y) => ($(),
|
|
712
|
+
return (h, y) => ($(), Ue(vs, { to: "body" }, [
|
|
714
713
|
Z(s).phase === "visible" ? ($(), O("div", {
|
|
715
714
|
key: 0,
|
|
716
715
|
id: Z(s).domId ?? void 0,
|
|
@@ -727,30 +726,30 @@ const Hu = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
727
726
|
"data-align": Z(s).policy.align
|
|
728
727
|
}, [
|
|
729
728
|
Ne(Z(a))
|
|
730
|
-
], 14,
|
|
729
|
+
], 14, ju)) : ce("", !0)
|
|
731
730
|
]));
|
|
732
731
|
}
|
|
733
|
-
}),
|
|
732
|
+
}), Gu = /* @__PURE__ */ be({
|
|
734
733
|
__name: "EndgeShell",
|
|
735
734
|
props: {
|
|
736
|
-
tooltipAdapterId: { default:
|
|
735
|
+
tooltipAdapterId: { default: "vue-native" },
|
|
737
736
|
mountStartup: { type: Boolean, default: !0 }
|
|
738
737
|
},
|
|
739
738
|
setup(e) {
|
|
740
739
|
const t = e, n = N("initializing"), o = N(null);
|
|
741
740
|
let r = !1, i = null;
|
|
742
|
-
const s = typeof document > "u" ? null :
|
|
741
|
+
const s = typeof document > "u" ? null : eu(document, (d) => T.context.setKeyboardState(d)), l = new Nu(
|
|
743
742
|
t.tooltipAdapterId,
|
|
744
743
|
u()
|
|
745
744
|
);
|
|
746
|
-
|
|
745
|
+
Mo(Rs, l);
|
|
747
746
|
async function a() {
|
|
748
747
|
try {
|
|
749
748
|
if (!t.mountStartup) {
|
|
750
749
|
n.value = "ready";
|
|
751
750
|
return;
|
|
752
751
|
}
|
|
753
|
-
const d = await
|
|
752
|
+
const d = await T.runtime.mountStartup();
|
|
754
753
|
if (r) {
|
|
755
754
|
await d.unmount();
|
|
756
755
|
return;
|
|
@@ -762,34 +761,34 @@ const Hu = ["id", "part", "data-endge-tooltip-adapter", "data-endge-tooltip-id",
|
|
|
762
761
|
o.value = d, n.value = "error";
|
|
763
762
|
}
|
|
764
763
|
}
|
|
765
|
-
a(),
|
|
764
|
+
a(), qe(() => {
|
|
766
765
|
r = !0, s == null || s(), l.dispose();
|
|
767
766
|
const d = i;
|
|
768
767
|
i = null, d == null || d.unmount();
|
|
769
768
|
});
|
|
770
769
|
function u() {
|
|
771
770
|
try {
|
|
772
|
-
return
|
|
771
|
+
return T.configuration.current.tooltips;
|
|
773
772
|
} catch {
|
|
774
773
|
return { ...Fa };
|
|
775
774
|
}
|
|
776
775
|
}
|
|
777
|
-
return (d, g) => n.value === "initializing" ?
|
|
776
|
+
return (d, g) => n.value === "initializing" ? Fn(d.$slots, "spinner", { key: 0 }) : n.value === "error" ? Fn(d.$slots, "error", {
|
|
778
777
|
key: 1,
|
|
779
778
|
error: o.value
|
|
780
779
|
}) : ($(), O($e, { key: 2 }, [
|
|
781
|
-
|
|
782
|
-
Ne(
|
|
783
|
-
Ne(
|
|
780
|
+
Fn(d.$slots, "default"),
|
|
781
|
+
Ne(zu),
|
|
782
|
+
Ne(Bu, { manager: Z(l) }, null, 8, ["manager"])
|
|
784
783
|
], 64));
|
|
785
784
|
}
|
|
786
785
|
});
|
|
787
|
-
function
|
|
786
|
+
function Ku(e) {
|
|
788
787
|
if (!e.inspection)
|
|
789
788
|
return null;
|
|
790
|
-
const t =
|
|
789
|
+
const t = Kn(e);
|
|
791
790
|
return e.inspection.registerNode({
|
|
792
|
-
runtimeId:
|
|
791
|
+
runtimeId: Ao(e),
|
|
793
792
|
componentIdentity: t,
|
|
794
793
|
componentStack: [...e.componentStack],
|
|
795
794
|
scope: e.consumerScope,
|
|
@@ -804,13 +803,13 @@ function Gu(e) {
|
|
|
804
803
|
bindings: {}
|
|
805
804
|
});
|
|
806
805
|
}
|
|
807
|
-
function
|
|
806
|
+
function Wu(e, t, n) {
|
|
808
807
|
if (!n.inspection)
|
|
809
808
|
return null;
|
|
810
809
|
const o = e.tag === "Component" && String(t.is ?? t.identity ?? "").trim() || void 0;
|
|
811
810
|
return n.inspection.registerNode({
|
|
812
|
-
runtimeId:
|
|
813
|
-
componentIdentity:
|
|
811
|
+
runtimeId: Ao(n),
|
|
812
|
+
componentIdentity: Kn(n),
|
|
814
813
|
componentStack: [...n.componentStack],
|
|
815
814
|
scope: n.consumerScope,
|
|
816
815
|
parentId: n.inspectionParentId ?? null,
|
|
@@ -823,20 +822,20 @@ function Ku(e, t, n) {
|
|
|
823
822
|
props: t,
|
|
824
823
|
componentProps: n.props,
|
|
825
824
|
locals: n.locals,
|
|
826
|
-
bindings:
|
|
825
|
+
bindings: xs(e.props, t),
|
|
827
826
|
meta: n.iteration ? {
|
|
828
827
|
iterationKey: n.iteration.key,
|
|
829
828
|
iterationIndex: n.iteration.indexValue
|
|
830
829
|
} : void 0
|
|
831
830
|
});
|
|
832
831
|
}
|
|
833
|
-
function
|
|
832
|
+
function _r(e, t, n) {
|
|
834
833
|
if (!n.inspection)
|
|
835
834
|
return null;
|
|
836
|
-
const o = e.kind === "expression" ?
|
|
835
|
+
const o = e.kind === "expression" ? ks(e.value, t) : null;
|
|
837
836
|
return n.inspection.registerNode({
|
|
838
|
-
runtimeId:
|
|
839
|
-
componentIdentity:
|
|
837
|
+
runtimeId: Ao(n),
|
|
838
|
+
componentIdentity: Kn(n),
|
|
840
839
|
componentStack: [...n.componentStack],
|
|
841
840
|
scope: n.consumerScope,
|
|
842
841
|
parentId: n.inspectionParentId ?? null,
|
|
@@ -851,11 +850,11 @@ function wr(e, t, n) {
|
|
|
851
850
|
meta: { value: t }
|
|
852
851
|
});
|
|
853
852
|
}
|
|
854
|
-
function
|
|
853
|
+
function Es(e, t) {
|
|
855
854
|
if (!t.inspection)
|
|
856
855
|
return null;
|
|
857
856
|
if (e.kind !== "element")
|
|
858
|
-
return
|
|
857
|
+
return _r(
|
|
859
858
|
e,
|
|
860
859
|
e.kind === "text" ? e.value : void 0,
|
|
861
860
|
t
|
|
@@ -864,8 +863,8 @@ function xs(e, t) {
|
|
|
864
863
|
i,
|
|
865
864
|
s.kind === "literal" ? s.value : void 0
|
|
866
865
|
])), o = t.inspection.registerNode({
|
|
867
|
-
runtimeId:
|
|
868
|
-
componentIdentity:
|
|
866
|
+
runtimeId: Ao(t),
|
|
867
|
+
componentIdentity: Kn(t),
|
|
869
868
|
componentStack: [...t.componentStack],
|
|
870
869
|
scope: t.consumerScope,
|
|
871
870
|
parentId: t.inspectionParentId ?? null,
|
|
@@ -877,14 +876,14 @@ function xs(e, t) {
|
|
|
877
876
|
props: n,
|
|
878
877
|
componentProps: t.props,
|
|
879
878
|
locals: t.locals,
|
|
880
|
-
bindings:
|
|
879
|
+
bindings: xs(e.props, n),
|
|
881
880
|
meta: { definition: !0 }
|
|
882
881
|
}), r = { ...t, inspectionParentId: o };
|
|
883
882
|
for (const i of e.children)
|
|
884
|
-
|
|
883
|
+
Es(i, r);
|
|
885
884
|
return o;
|
|
886
885
|
}
|
|
887
|
-
function
|
|
886
|
+
function Uu(e, t) {
|
|
888
887
|
return !t || !e.inspection ? {} : {
|
|
889
888
|
"data-endge-inspect-id": t,
|
|
890
889
|
onVnodeUnmounted: () => {
|
|
@@ -893,13 +892,13 @@ function Wu(e, t) {
|
|
|
893
892
|
}
|
|
894
893
|
};
|
|
895
894
|
}
|
|
896
|
-
function
|
|
895
|
+
function xs(e, t) {
|
|
897
896
|
return Object.fromEntries(Object.entries(e).map(([n, o]) => [
|
|
898
897
|
n,
|
|
899
|
-
|
|
898
|
+
ks(o, t[n])
|
|
900
899
|
]));
|
|
901
900
|
}
|
|
902
|
-
function
|
|
901
|
+
function ks(e, t) {
|
|
903
902
|
return e.kind === "literal" ? { kind: "literal", reads: [], value: t } : {
|
|
904
903
|
kind: "expression",
|
|
905
904
|
source: e.source,
|
|
@@ -907,22 +906,22 @@ function Ts(e, t) {
|
|
|
907
906
|
value: t
|
|
908
907
|
};
|
|
909
908
|
}
|
|
910
|
-
function
|
|
909
|
+
function Kn(e) {
|
|
911
910
|
var t;
|
|
912
911
|
return e.componentStack.at(-1) ?? ((t = e.host) == null ? void 0 : t.entityIdentity) ?? "component";
|
|
913
912
|
}
|
|
914
|
-
function
|
|
913
|
+
function Ao(e) {
|
|
915
914
|
var t;
|
|
916
|
-
return ((t = e.host) == null ? void 0 : t.id) ?? `sfc:${e.componentStack[0] ??
|
|
915
|
+
return ((t = e.host) == null ? void 0 : t.id) ?? `sfc:${e.componentStack[0] ?? Kn(e)}`;
|
|
917
916
|
}
|
|
918
|
-
const Vr = "data-endge-module-visual",
|
|
917
|
+
const Vr = "data-endge-module-visual", An = "endge.vue.renderers", Nr = "endge.vue.timeline.presets";
|
|
919
918
|
function pm(e, t, n) {
|
|
920
|
-
return e.register(
|
|
919
|
+
return e.register(An, t, n);
|
|
921
920
|
}
|
|
922
921
|
function hm(e, t, n, o) {
|
|
923
922
|
if (!Aa(n))
|
|
924
923
|
throw new Error(`Invalid renderer ID "${n}".`);
|
|
925
|
-
return e.register(
|
|
924
|
+
return e.register(An, `${t}/${n}`, o);
|
|
926
925
|
}
|
|
927
926
|
function mm(e, t, n) {
|
|
928
927
|
if (!t.name.trim())
|
|
@@ -930,7 +929,7 @@ function mm(e, t, n) {
|
|
|
930
929
|
const o = { descriptor: structuredClone(t), provider: n };
|
|
931
930
|
return e.register(Nr, t.name, o);
|
|
932
931
|
}
|
|
933
|
-
function
|
|
932
|
+
function Ts(e, t, n) {
|
|
934
933
|
if (typeof (e == null ? void 0 : e.default) != "function")
|
|
935
934
|
throw new TypeError("module.js must export a default module factory.");
|
|
936
935
|
return {
|
|
@@ -964,7 +963,7 @@ function pe(e, t) {
|
|
|
964
963
|
function Sm(e, t) {
|
|
965
964
|
return e.kind === "literal" ? e.value : Ju(e.path, t);
|
|
966
965
|
}
|
|
967
|
-
function
|
|
966
|
+
function Po(e, t) {
|
|
968
967
|
const n = {};
|
|
969
968
|
for (const [o, r] of Object.entries(e ?? {}))
|
|
970
969
|
n[o] = pe(r, t);
|
|
@@ -983,7 +982,7 @@ function Ju(e, t) {
|
|
|
983
982
|
const r = o.key === "props" ? t.props : o.key === "$context" ? t.context : Object.hasOwn(t.locals, o.key) ? t.locals[o.key] : t.props[o.key];
|
|
984
983
|
return Ms(r, n, 1);
|
|
985
984
|
}
|
|
986
|
-
function
|
|
985
|
+
function et(e, t) {
|
|
987
986
|
return Ms(t, $s(e));
|
|
988
987
|
}
|
|
989
988
|
function Ms(e, t, n = 0) {
|
|
@@ -1020,13 +1019,13 @@ function $s(e) {
|
|
|
1020
1019
|
return n;
|
|
1021
1020
|
if (!Qu(t))
|
|
1022
1021
|
return [];
|
|
1023
|
-
const o =
|
|
1022
|
+
const o = lu.from(t).segments();
|
|
1024
1023
|
return bn.size >= Yu && bn.delete(bn.keys().next().value), bn.set(t, o), o;
|
|
1025
1024
|
}
|
|
1026
|
-
function
|
|
1027
|
-
const t =
|
|
1028
|
-
protocol:
|
|
1029
|
-
protocolVersion:
|
|
1025
|
+
function vo(e) {
|
|
1026
|
+
const t = T.uiRegistry.adapters.requireActive({
|
|
1027
|
+
protocol: To,
|
|
1028
|
+
protocolVersion: ko,
|
|
1030
1029
|
renderer: "vue",
|
|
1031
1030
|
requiredRendererKeys: Lr
|
|
1032
1031
|
}), n = t.renderers[e];
|
|
@@ -1036,65 +1035,65 @@ function mo(e) {
|
|
|
1036
1035
|
}
|
|
1037
1036
|
function Fs(e) {
|
|
1038
1037
|
if (e.host) {
|
|
1039
|
-
const t =
|
|
1038
|
+
const t = T.runtime.getRuntimeScopeByHost(e.host.id);
|
|
1040
1039
|
if (t)
|
|
1041
1040
|
return t;
|
|
1042
1041
|
}
|
|
1043
1042
|
for (const t of [...e.runtimeScopeIds].reverse()) {
|
|
1044
|
-
const n =
|
|
1043
|
+
const n = T.runtime.scopes.get(t);
|
|
1045
1044
|
if (n)
|
|
1046
1045
|
return n;
|
|
1047
1046
|
}
|
|
1048
1047
|
return null;
|
|
1049
1048
|
}
|
|
1050
|
-
function
|
|
1049
|
+
function Yo(e, t) {
|
|
1051
1050
|
const n = e.value(t);
|
|
1052
|
-
return
|
|
1051
|
+
return $o(n) ? Fo(n, { [Vr]: e.visualToken }) : n;
|
|
1053
1052
|
}
|
|
1054
1053
|
function As() {
|
|
1055
|
-
return
|
|
1054
|
+
return T.configuration.isResolved && T.mode !== "debugger" ? T.configuration.current.defaultRenderers : void 0;
|
|
1056
1055
|
}
|
|
1057
1056
|
function Ps(e) {
|
|
1058
|
-
return `workspace-renderer:${
|
|
1057
|
+
return `workspace-renderer:${$n(e)}`;
|
|
1059
1058
|
}
|
|
1060
1059
|
function Ds(e, t) {
|
|
1061
1060
|
var s, l, a;
|
|
1062
1061
|
const n = Fs(t.context), o = ((l = (s = t.context.host) == null ? void 0 : s.rendererSelections) == null ? void 0 : l[e]) ?? pe(t.node.props.renderer, t.context);
|
|
1063
1062
|
if (o === Oa)
|
|
1064
|
-
return
|
|
1063
|
+
return vo(e)(t);
|
|
1065
1064
|
if (o != null && o !== "") {
|
|
1066
|
-
const u = za(o), d = u &&
|
|
1065
|
+
const u = za(o), d = u && T.runtime.modules.resolveAttachment(
|
|
1067
1066
|
n,
|
|
1068
1067
|
u.attachment,
|
|
1069
|
-
|
|
1068
|
+
An,
|
|
1070
1069
|
`${e}/${u.rendererId}`
|
|
1071
1070
|
);
|
|
1072
1071
|
if (!d)
|
|
1073
1072
|
throw new Error(`Рендерер ${e} «${String(o)}» недоступен в текущей композиции.`);
|
|
1074
|
-
return
|
|
1073
|
+
return Yo(d, t);
|
|
1075
1074
|
}
|
|
1076
1075
|
const r = (a = As()) == null ? void 0 : a[e];
|
|
1077
1076
|
if (r) {
|
|
1078
|
-
const u =
|
|
1079
|
-
|
|
1077
|
+
const u = T.runtime.modules.resolveAttachment(
|
|
1078
|
+
T.runtime.workspaceModuleScope,
|
|
1080
1079
|
Ps(r),
|
|
1081
|
-
|
|
1080
|
+
An,
|
|
1082
1081
|
`${e}/${r.rendererId}`
|
|
1083
1082
|
);
|
|
1084
1083
|
if (!u)
|
|
1085
|
-
throw new Error(`Рендерер ${e} «${
|
|
1086
|
-
return
|
|
1084
|
+
throw new Error(`Рендерер ${e} «${$n(r)}:${r.rendererId}» недоступен в рабочем пространстве.`);
|
|
1085
|
+
return Yo(u, t);
|
|
1087
1086
|
}
|
|
1088
|
-
const i =
|
|
1089
|
-
return i ?
|
|
1087
|
+
const i = T.runtime.modules.resolve(n, An, e);
|
|
1088
|
+
return i ? Yo(i, t) : vo(e)(t);
|
|
1090
1089
|
}
|
|
1091
1090
|
function Os(e, t = 0, n = null, o = null, r = n != null && n.entityIdentity ? [n.entityIdentity] : [], i = "root", s, l, a = null, u, d = "default", g = null, v = [], p) {
|
|
1092
1091
|
var R, w;
|
|
1093
|
-
const m = (p == null ? void 0 : p.runtimeScopeIds) ?? Zu(n), h = s ? [...s] : [...(n == null ? void 0 : n.styleArtifacts) ??
|
|
1092
|
+
const m = (p == null ? void 0 : p.runtimeScopeIds) ?? Zu(n), h = s ? [...s] : [...(n == null ? void 0 : n.styleArtifacts) ?? T.styles.getActiveArtifacts()];
|
|
1094
1093
|
o != null && o.style && !h.includes(o.style) && h.push(o.style);
|
|
1095
1094
|
const y = {
|
|
1096
1095
|
props: e ?? {},
|
|
1097
|
-
context: (p == null ? void 0 : p.context) ?? Object.freeze(
|
|
1096
|
+
context: (p == null ? void 0 : p.context) ?? Object.freeze(T.context.runtimeSnapshot()),
|
|
1098
1097
|
locals: {},
|
|
1099
1098
|
iteration: null,
|
|
1100
1099
|
dataScope: null,
|
|
@@ -1118,12 +1117,12 @@ function Os(e, t = 0, n = null, o = null, r = n != null && n.entityIdentity ? [n
|
|
|
1118
1117
|
return y.locals = tc(o, y), y;
|
|
1119
1118
|
}
|
|
1120
1119
|
function Zu(e) {
|
|
1121
|
-
const t = [...(e == null ? void 0 : e.runtimeScopeIds) ?? []], n = e && !e.readonly ?
|
|
1120
|
+
const t = [...(e == null ? void 0 : e.runtimeScopeIds) ?? []], n = e && !e.readonly ? T.runtime.getRuntimeScopeByHost(e.id) : null;
|
|
1122
1121
|
for (let o = n; o; o = o.parent)
|
|
1123
1122
|
t.unshift(o.id);
|
|
1124
1123
|
return t;
|
|
1125
1124
|
}
|
|
1126
|
-
function
|
|
1125
|
+
function So(e, t, n = e.iteration, o = e.consumerScope, r = e.dataScope) {
|
|
1127
1126
|
return {
|
|
1128
1127
|
props: e.props,
|
|
1129
1128
|
context: e.context,
|
|
@@ -1164,7 +1163,7 @@ function tc(e, t) {
|
|
|
1164
1163
|
return n;
|
|
1165
1164
|
for (const i of e.script.portCalls ?? []) {
|
|
1166
1165
|
t.locals = n;
|
|
1167
|
-
const s = pe(i.input, t), l = `${t.consumerScope}:${t.componentStack.join(">")}:${i.port}:${i.local}`, a = ((r = (o = t.portBindings) == null ? void 0 : o.find((d) => d.port === i.port && d.kind === "computation")) == null ? void 0 : r.identity) ?? i.defaultIdentity, u = t.host ? t.host.getComputationResource(a, s, l, i.port) :
|
|
1166
|
+
const s = pe(i.input, t), l = `${t.consumerScope}:${t.componentStack.join(">")}:${i.port}:${i.local}`, a = ((r = (o = t.portBindings) == null ? void 0 : o.find((d) => d.port === i.port && d.kind === "computation")) == null ? void 0 : r.identity) ?? i.defaultIdentity, u = t.host ? t.host.getComputationResource(a, s, l, i.port) : T.computations.createResource(a, s, l);
|
|
1168
1167
|
n[i.local] = nc(u);
|
|
1169
1168
|
}
|
|
1170
1169
|
return n;
|
|
@@ -1218,7 +1217,7 @@ const oc = be({
|
|
|
1218
1217
|
},
|
|
1219
1218
|
{ immediate: !0 }
|
|
1220
1219
|
);
|
|
1221
|
-
return
|
|
1220
|
+
return qe(() => {
|
|
1222
1221
|
s(), o == null || o.off("resource:dirty", i), o = null;
|
|
1223
1222
|
}), () => {
|
|
1224
1223
|
var l;
|
|
@@ -1261,7 +1260,7 @@ function Ns(e) {
|
|
|
1261
1260
|
let n;
|
|
1262
1261
|
return e.directives.for ? n = [`for:${e.id}`] : e.tag === "Component" ? n = [`component:${e.id}`] : e.tag === "Table" ? n = [`table:${e.id}`] : n = (e.children ?? []).flatMap((o) => o.kind === "element" ? Ns(o) : []), Ii.set(e, n), n;
|
|
1263
1262
|
}
|
|
1264
|
-
const
|
|
1263
|
+
const Jo = /* @__PURE__ */ new WeakMap(), Ei = /* @__PURE__ */ new WeakMap();
|
|
1265
1264
|
function sc(e, t, n, o) {
|
|
1266
1265
|
var s;
|
|
1267
1266
|
const r = o.eventBoundary;
|
|
@@ -1281,12 +1280,12 @@ function sc(e, t, n, o) {
|
|
|
1281
1280
|
const u = Ls(l, o), d = [...new Set(u.map(({ trigger: g }) => ki(g)))];
|
|
1282
1281
|
for (const g of d) {
|
|
1283
1282
|
const [v, p, m] = g.split("|"), R = cc(v, { capture: p === "1", passive: m === "1" });
|
|
1284
|
-
|
|
1283
|
+
yo(e, R, (w) => {
|
|
1285
1284
|
var Y, G;
|
|
1286
1285
|
const _ = `${o.consumerScope}:${t.id}:${a}`;
|
|
1287
|
-
if ((Y =
|
|
1286
|
+
if ((Y = Jo.get(w)) != null && Y.has(_))
|
|
1288
1287
|
return;
|
|
1289
|
-
const C =
|
|
1288
|
+
const C = Do(w), E = u.find(({ trigger: z }) => z.event === v && Na(z, C, jr()));
|
|
1290
1289
|
if (!E || ki(E.trigger) !== g)
|
|
1291
1290
|
return;
|
|
1292
1291
|
if (E.trigger.once) {
|
|
@@ -1294,8 +1293,8 @@ function sc(e, t, n, o) {
|
|
|
1294
1293
|
if (!r.claimLocalOnce(z))
|
|
1295
1294
|
return;
|
|
1296
1295
|
}
|
|
1297
|
-
let
|
|
1298
|
-
|
|
1296
|
+
let M = Jo.get(w);
|
|
1297
|
+
M || (M = /* @__PURE__ */ new Set(), Jo.set(w, M)), M.add(_), E.trigger.prevent && w.cancelable && w.preventDefault(), E.trigger.stop && w.stopPropagation();
|
|
1299
1298
|
const P = {
|
|
1300
1299
|
...i,
|
|
1301
1300
|
target: i.target ? { ...i.target, value: w.currentTarget } : void 0
|
|
@@ -1380,9 +1379,9 @@ function Ls(e, t) {
|
|
|
1380
1379
|
}
|
|
1381
1380
|
function xi(e, t) {
|
|
1382
1381
|
const n = Hr(e, t);
|
|
1383
|
-
return n.passive && n.prevent ? null : (n.held &&
|
|
1382
|
+
return n.passive && n.prevent ? null : (n.held && Oo(), n);
|
|
1384
1383
|
}
|
|
1385
|
-
function
|
|
1384
|
+
function Do(e) {
|
|
1386
1385
|
var n;
|
|
1387
1386
|
const t = e;
|
|
1388
1387
|
return {
|
|
@@ -1402,7 +1401,7 @@ function Po(e) {
|
|
|
1402
1401
|
}
|
|
1403
1402
|
};
|
|
1404
1403
|
}
|
|
1405
|
-
function Hs(e, t =
|
|
1404
|
+
function Hs(e, t = Do(e)) {
|
|
1406
1405
|
const n = e, o = e.target, r = {
|
|
1407
1406
|
type: e.type,
|
|
1408
1407
|
occurredAt: ac(e),
|
|
@@ -1418,8 +1417,8 @@ function ac(e) {
|
|
|
1418
1417
|
const n = (/* @__PURE__ */ new Date()).toISOString();
|
|
1419
1418
|
return Ei.set(e, n), n;
|
|
1420
1419
|
}
|
|
1421
|
-
function
|
|
1422
|
-
return typeof document > "u" ? null :
|
|
1420
|
+
function Oo() {
|
|
1421
|
+
return typeof document > "u" ? null : tu(document);
|
|
1423
1422
|
}
|
|
1424
1423
|
function jr() {
|
|
1425
1424
|
var t;
|
|
@@ -1429,7 +1428,7 @@ function jr() {
|
|
|
1429
1428
|
return La(((t = e.userAgentData) == null ? void 0 : t.platform) ?? e.platform ?? e.userAgent);
|
|
1430
1429
|
}
|
|
1431
1430
|
function uc() {
|
|
1432
|
-
const e =
|
|
1431
|
+
const e = Oo();
|
|
1433
1432
|
return e ? { key: [...e.held.key], code: [...e.held.code] } : { key: [], code: [] };
|
|
1434
1433
|
}
|
|
1435
1434
|
function ki(e) {
|
|
@@ -1441,7 +1440,7 @@ function js(e) {
|
|
|
1441
1440
|
function cc(e, t) {
|
|
1442
1441
|
return `on${e.charAt(0).toUpperCase()}${e.slice(1)}${t.capture ? "Capture" : ""}${t.passive ? "Passive" : ""}`;
|
|
1443
1442
|
}
|
|
1444
|
-
function
|
|
1443
|
+
function yo(e, t, n) {
|
|
1445
1444
|
const o = e[t];
|
|
1446
1445
|
e[t] = (r) => {
|
|
1447
1446
|
typeof o == "function" && o(r), n(r);
|
|
@@ -1473,22 +1472,22 @@ function hc(e, t, n, o) {
|
|
|
1473
1472
|
return;
|
|
1474
1473
|
const r = qt(t, o);
|
|
1475
1474
|
if (o.host.getEditSession(r)) {
|
|
1476
|
-
Ti(e, t, o, r, "cancel"), Ti(e, t, o, r, "commit"), t.tag === "Editable" &&
|
|
1475
|
+
Ti(e, t, o, r, "cancel"), Ti(e, t, o, r, "commit"), t.tag === "Editable" && yo(e, "onInput", (a) => {
|
|
1477
1476
|
var u;
|
|
1478
|
-
return (u = o.host) == null ? void 0 : u.updateEditDraft(r,
|
|
1477
|
+
return (u = o.host) == null ? void 0 : u.updateEditDraft(r, bo(a, t.tag));
|
|
1479
1478
|
});
|
|
1480
1479
|
return;
|
|
1481
1480
|
}
|
|
1482
|
-
const s = pe(t.editable.triggers, o), l =
|
|
1481
|
+
const s = pe(t.editable.triggers, o), l = fs(s).map((a) => {
|
|
1483
1482
|
var u;
|
|
1484
1483
|
return Hr(a, (u = t.editable) == null ? void 0 : u.modifiers);
|
|
1485
1484
|
});
|
|
1486
|
-
l.some((a) => a.held) &&
|
|
1485
|
+
l.some((a) => a.held) && Oo();
|
|
1487
1486
|
for (const [a, u] of l.entries()) {
|
|
1488
1487
|
const d = Bs(u.event, u.capture === !0, u.passive === !0);
|
|
1489
|
-
|
|
1488
|
+
yo(e, d, (g) => {
|
|
1490
1489
|
var m, h;
|
|
1491
|
-
if (!
|
|
1490
|
+
if (!gs(u, Do(g), jr()) || u.once && o.eventBoundary && !o.eventBoundary.claimLocalOnce(`${r}:edit:${a}`))
|
|
1492
1491
|
return;
|
|
1493
1492
|
u.prevent && g.cancelable && g.preventDefault(), u.stop && g.stopPropagation();
|
|
1494
1493
|
const v = pe((m = t.editable) == null ? void 0 : m.value, o), p = String(n.variant ?? o.variant ?? "default");
|
|
@@ -1505,8 +1504,8 @@ function mc(e) {
|
|
|
1505
1504
|
const n = qt(e.node, e.context), o = t.getEditSession(n);
|
|
1506
1505
|
if (!o)
|
|
1507
1506
|
return;
|
|
1508
|
-
const r = e.node.tag === "DateTime" && (e.props.editMode ?? e.props["edit-mode"]) === "time", i = e.node.tag === "Number" ? "Number" : e.node.tag === "DateTime" ? r ? "Time" : "DateTime" : "String", s = e.node.tag === "DateTime" ? r ?
|
|
1509
|
-
return delete l.onClick, delete l.onDblclick, delete l.onFocus, e.node.tag === "Checkbox" ?
|
|
1507
|
+
const r = e.node.tag === "DateTime" && (e.props.editMode ?? e.props["edit-mode"]) === "time", i = e.node.tag === "Number" ? "Number" : e.node.tag === "DateTime" ? r ? "Time" : "DateTime" : "String", s = e.node.tag === "DateTime" ? r ? nu(o.draftValue, e.props.timezone) : hs(o.draftValue) : o.draftValue ?? "", l = { ...e.attrs };
|
|
1508
|
+
return delete l.onClick, delete l.onDblclick, delete l.onFocus, e.node.tag === "Checkbox" ? vo("Checkbox")({
|
|
1510
1509
|
...e,
|
|
1511
1510
|
children: [],
|
|
1512
1511
|
props: {
|
|
@@ -1516,9 +1515,9 @@ function mc(e) {
|
|
|
1516
1515
|
attrs: {
|
|
1517
1516
|
...l,
|
|
1518
1517
|
ref: ((d) => $i(d)),
|
|
1519
|
-
onInput: (d) => t.updateEditDraft(n,
|
|
1518
|
+
onInput: (d) => t.updateEditDraft(n, bo(d, e.node.tag))
|
|
1520
1519
|
}
|
|
1521
|
-
}) :
|
|
1520
|
+
}) : vo("Input")({
|
|
1522
1521
|
...e,
|
|
1523
1522
|
children: [],
|
|
1524
1523
|
props: {
|
|
@@ -1531,23 +1530,23 @@ function mc(e) {
|
|
|
1531
1530
|
...l,
|
|
1532
1531
|
autofocus: !0,
|
|
1533
1532
|
ref: ((u) => $i(u)),
|
|
1534
|
-
onInput: (u) => t.updateEditDraft(n,
|
|
1533
|
+
onInput: (u) => t.updateEditDraft(n, bo(u, e.node.tag))
|
|
1535
1534
|
}
|
|
1536
1535
|
});
|
|
1537
1536
|
}
|
|
1538
1537
|
function Ti(e, t, n, o, r) {
|
|
1539
|
-
const i = t.editable, s = r === "cancel" ? (i == null ? void 0 : i.cancelTriggers) ?? dc : (i == null ? void 0 : i.commitTriggers) ?? fc, l = r === "cancel" ? i == null ? void 0 : i.cancelModifiers : i == null ? void 0 : i.commitModifiers, a =
|
|
1540
|
-
a.some((u) => u.held) &&
|
|
1538
|
+
const i = t.editable, s = r === "cancel" ? (i == null ? void 0 : i.cancelTriggers) ?? dc : (i == null ? void 0 : i.commitTriggers) ?? fc, l = r === "cancel" ? i == null ? void 0 : i.cancelModifiers : i == null ? void 0 : i.commitModifiers, a = fs(pe(s, n)).map((u) => Hr(u, l));
|
|
1539
|
+
a.some((u) => u.held) && Oo();
|
|
1541
1540
|
for (const [u, d] of a.entries()) {
|
|
1542
1541
|
const g = d.event === "blur" ? "focusout" : d.event, v = Bs(g, d.capture === !0, d.passive === !0);
|
|
1543
|
-
|
|
1542
|
+
yo(e, v, (p) => {
|
|
1544
1543
|
var m;
|
|
1545
|
-
if (
|
|
1544
|
+
if (gs(d, Do(p), jr()) && !(g === "focusout" && vc(p)) && !(d.once && n.eventBoundary && !n.eventBoundary.claimLocalOnce(`${o}:${r}:${u}`))) {
|
|
1546
1545
|
if (d.prevent && p.cancelable && p.preventDefault(), d.stop && p.stopPropagation(), r === "cancel") {
|
|
1547
1546
|
(m = n.host) == null || m.cancelEditSession(o);
|
|
1548
1547
|
return;
|
|
1549
1548
|
}
|
|
1550
|
-
yc(t, n,
|
|
1549
|
+
yc(t, n, bo(p, t.tag));
|
|
1551
1550
|
}
|
|
1552
1551
|
});
|
|
1553
1552
|
}
|
|
@@ -1586,12 +1585,12 @@ function bc(e, t, n, o) {
|
|
|
1586
1585
|
if (e.tag !== "DateTime" || r !== "time")
|
|
1587
1586
|
return o;
|
|
1588
1587
|
const i = (d = (u = t.host) == null ? void 0 : u.getEditSession(n)) == null ? void 0 : d.originalValue, s = new Date(String(i ?? "").trim()), l = Number.isNaN(s.getTime()) ? (/* @__PURE__ */ new Date()).toISOString() : i, a = pe(e.props.timezone, t);
|
|
1589
|
-
return
|
|
1588
|
+
return ou(l, o, a) ?? o;
|
|
1590
1589
|
}
|
|
1591
1590
|
function Mi(e) {
|
|
1592
1591
|
return e === "compact" || e === "default" ? e : null;
|
|
1593
1592
|
}
|
|
1594
|
-
function
|
|
1593
|
+
function bo(e, t) {
|
|
1595
1594
|
const n = e.target;
|
|
1596
1595
|
if (n) {
|
|
1597
1596
|
if (t === "Checkbox")
|
|
@@ -1625,7 +1624,7 @@ function Bs(e, t, n) {
|
|
|
1625
1624
|
function wc(e) {
|
|
1626
1625
|
return !!(e && typeof e == "object" && Object.hasOwn(e, "value"));
|
|
1627
1626
|
}
|
|
1628
|
-
function
|
|
1627
|
+
function zo(e) {
|
|
1629
1628
|
return (t) => {
|
|
1630
1629
|
const n = Ec(t, e);
|
|
1631
1630
|
return n !== void 0 ? n : Gs(t, e);
|
|
@@ -1690,12 +1689,12 @@ function Gs(e, t) {
|
|
|
1690
1689
|
}
|
|
1691
1690
|
function Ai(e, t) {
|
|
1692
1691
|
var d;
|
|
1693
|
-
const n =
|
|
1692
|
+
const n = Po(e.node.props, e.context), o = pc(e.node, n, e.context);
|
|
1694
1693
|
o && (n.editorVariant = o), (d = e.context.host) != null && d.readonly && ["Input", "Textarea", "Select", "Checkbox"].includes(e.node.tag) && (n.readonly = !0, n.disabled = !0);
|
|
1695
|
-
const r = kc(e.node, n, e.context), i = e.context.inspection ?
|
|
1694
|
+
const r = kc(e.node, n, e.context), i = e.context.inspection ? Wu(e.node, n, e.context) : null, s = {
|
|
1696
1695
|
...Cc(e.node, n, r, e.context.runtimeScopeIds),
|
|
1697
1696
|
...Ws(e.node, n, e.context),
|
|
1698
|
-
...i ?
|
|
1697
|
+
...i ? Uu(e.context, i) : {},
|
|
1699
1698
|
...e.attrs
|
|
1700
1699
|
};
|
|
1701
1700
|
Ks(s, e.node, n, e.context), hc(s, e.node, n, e.context);
|
|
@@ -1721,9 +1720,9 @@ function Ks(e, t, n, o) {
|
|
|
1721
1720
|
if (n.tooltip == null)
|
|
1722
1721
|
return;
|
|
1723
1722
|
const i = `${(((s = o.host) == null ? void 0 : s.id) ?? o.componentStack.join(">")) || "sfc"}:${o.consumerScope}:${t.id}`;
|
|
1724
|
-
|
|
1723
|
+
Is(e, o.tooltipManager ?? null, i, (l) => ({
|
|
1725
1724
|
ownerId: i,
|
|
1726
|
-
domId:
|
|
1725
|
+
domId: ps(i),
|
|
1727
1726
|
anchor: l,
|
|
1728
1727
|
kind: "text",
|
|
1729
1728
|
policy: {
|
|
@@ -1811,7 +1810,7 @@ function xc(e, t, n, o, r, i) {
|
|
|
1811
1810
|
[n.item]: r
|
|
1812
1811
|
};
|
|
1813
1812
|
n.index && (s[n.index] = i);
|
|
1814
|
-
const l =
|
|
1813
|
+
const l = So(e.context, s, {
|
|
1815
1814
|
item: n.item,
|
|
1816
1815
|
index: n.index,
|
|
1817
1816
|
value: r,
|
|
@@ -1824,7 +1823,7 @@ function xc(e, t, n, o, r, i) {
|
|
|
1824
1823
|
}, t);
|
|
1825
1824
|
}
|
|
1826
1825
|
function kc(e, t, n) {
|
|
1827
|
-
const o =
|
|
1826
|
+
const o = Cr(t.class), r = Tc(t.state), i = Cr(t.part), s = e.tag === "Component" && String(t.is ?? t.identity ?? "").trim() || void 0;
|
|
1828
1827
|
return {
|
|
1829
1828
|
tag: e.tag,
|
|
1830
1829
|
id: typeof t.id == "string" && t.id.trim() ? t.id.trim() : void 0,
|
|
@@ -1841,7 +1840,7 @@ function kc(e, t, n) {
|
|
|
1841
1840
|
siblingCount: 1
|
|
1842
1841
|
};
|
|
1843
1842
|
}
|
|
1844
|
-
function
|
|
1843
|
+
function Cr(e) {
|
|
1845
1844
|
const t = /* @__PURE__ */ new Set(), n = (o) => {
|
|
1846
1845
|
typeof o == "string" ? o.trim().split(/\s+/).filter(Boolean).forEach((r) => t.add(r)) : Array.isArray(o) ? o.forEach(n) : o && typeof o == "object" && Object.entries(o).forEach(([r, i]) => {
|
|
1847
1846
|
i && t.add(r);
|
|
@@ -1850,7 +1849,7 @@ function _r(e) {
|
|
|
1850
1849
|
return n(e), t;
|
|
1851
1850
|
}
|
|
1852
1851
|
function Tc(e) {
|
|
1853
|
-
return
|
|
1852
|
+
return Cr(e);
|
|
1854
1853
|
}
|
|
1855
1854
|
function Mc(e) {
|
|
1856
1855
|
return e == null ? null : Array.isArray(e) ? e.map((t, n) => [n, t]) : typeof e == "object" ? Object.entries(e) : null;
|
|
@@ -1934,7 +1933,7 @@ function Ac(e, t) {
|
|
|
1934
1933
|
function Pc(e, t) {
|
|
1935
1934
|
return e.kind === "literal" ? e.value : t.key;
|
|
1936
1935
|
}
|
|
1937
|
-
const Dc =
|
|
1936
|
+
const Dc = zo((e) => {
|
|
1938
1937
|
var d, g, v, p, m;
|
|
1939
1938
|
const t = String(
|
|
1940
1939
|
(e.node.port ? (g = (d = e.context.portBindings) == null ? void 0 : d.find((h) => {
|
|
@@ -1943,12 +1942,12 @@ const Dc = Oo((e) => {
|
|
|
1943
1942
|
})) == null ? void 0 : g.identity : null) ?? e.props.is ?? e.props.identity ?? ""
|
|
1944
1943
|
).trim();
|
|
1945
1944
|
if (!t)
|
|
1946
|
-
return
|
|
1945
|
+
return Qo(e, "component identity is empty");
|
|
1947
1946
|
if (e.context.componentStack.includes(t))
|
|
1948
|
-
return
|
|
1949
|
-
const o = (((v = e.context.host) == null ? void 0 : v.getArtifactReader()) ??
|
|
1947
|
+
return Qo(e, `component cycle: ${[...e.context.componentStack, t].join(" -> ")}`);
|
|
1948
|
+
const o = (((v = e.context.host) == null ? void 0 : v.getArtifactReader()) ?? T.program).getArtifact("component-sfc", t);
|
|
1950
1949
|
if (!(o != null && o.payload.ir) || !o.capabilities.includes("renderable"))
|
|
1951
|
-
return
|
|
1950
|
+
return Qo(e, `component:${t}`);
|
|
1952
1951
|
const r = qt(e.node, e.context), i = e.node.editable ? (p = e.context.host) == null ? void 0 : p.getEditSession(r) : null, s = e.node.portBindings ?? [], l = ((m = e.context.eventBoundary) == null ? void 0 : m.createChild(t, o.payload.ir.script.ports, {
|
|
1953
1952
|
nodeId: e.node.id,
|
|
1954
1953
|
ref: zc(e.node.props.ref),
|
|
@@ -1976,7 +1975,7 @@ const Dc = Oo((e) => {
|
|
|
1976
1975
|
e.context
|
|
1977
1976
|
);
|
|
1978
1977
|
a.styleParent = e.context.styleParent, a.inspectionParentId = e.context.inspectionParentId;
|
|
1979
|
-
const u =
|
|
1978
|
+
const u = jn(
|
|
1980
1979
|
e.h,
|
|
1981
1980
|
o.payload.ir.template.roots,
|
|
1982
1981
|
a
|
|
@@ -1991,7 +1990,7 @@ const Dc = Oo((e) => {
|
|
|
1991
1990
|
}, u);
|
|
1992
1991
|
if (u.length === 1) {
|
|
1993
1992
|
const h = u[0];
|
|
1994
|
-
return "data-endge-tooltip-trigger" in e.attrs &&
|
|
1993
|
+
return "data-endge-tooltip-trigger" in e.attrs && $o(h) ? Fo(h, e.attrs, !0) : h;
|
|
1995
1994
|
}
|
|
1996
1995
|
return e.h("span", {
|
|
1997
1996
|
..."data-endge-tooltip-trigger" in e.attrs ? e.attrs : {},
|
|
@@ -2005,7 +2004,7 @@ function Oc(e) {
|
|
|
2005
2004
|
function zc(e) {
|
|
2006
2005
|
return (e == null ? void 0 : e.kind) === "literal" && typeof e.value == "string" && e.value.trim() ? e.value.trim() : void 0;
|
|
2007
2006
|
}
|
|
2008
|
-
function
|
|
2007
|
+
function Qo(e, t) {
|
|
2009
2008
|
return e.h("span", {
|
|
2010
2009
|
...e.attrs,
|
|
2011
2010
|
class: ["endge-sfc-component-placeholder", e.props.class],
|
|
@@ -2013,52 +2012,52 @@ function Jo(e, t) {
|
|
|
2013
2012
|
}, t);
|
|
2014
2013
|
}
|
|
2015
2014
|
const Vc = (e) => {
|
|
2016
|
-
const t =
|
|
2015
|
+
const t = Po(e.node.props, e.context);
|
|
2017
2016
|
if (String(t.name ?? "") !== e.context.variant)
|
|
2018
2017
|
return Vs(e.context, e.node), null;
|
|
2019
2018
|
const n = e.renderChildren(e.context);
|
|
2020
2019
|
return n.length === 0 ? null : n.length === 1 ? n[0] : e.h("span", { style: { display: "contents" } }, n);
|
|
2021
|
-
}, Nc =
|
|
2020
|
+
}, Nc = zo((e) => e.h("span", {
|
|
2022
2021
|
...e.attrs,
|
|
2023
2022
|
class: ["endge-sfc-editable", e.props.class],
|
|
2024
2023
|
style: { display: "contents" }
|
|
2025
|
-
}, e.children)), Lc = (e) => (e.context.inspection &&
|
|
2026
|
-
function
|
|
2024
|
+
}, e.children)), Lc = (e) => (e.context.inspection && Es(e.node, e.context), null), Hc = (e) => Ds(e.node.tag, e), jc = zo((e) => Ds(e.node.tag, e)), Vi = /* @__PURE__ */ new WeakMap();
|
|
2025
|
+
function jn(e, t, n) {
|
|
2027
2026
|
const o = [];
|
|
2028
2027
|
let r = !1, i = !1;
|
|
2029
2028
|
for (const s of t ?? []) {
|
|
2030
2029
|
if (!Uc(s)) {
|
|
2031
|
-
r = !1, i = !1,
|
|
2030
|
+
r = !1, i = !1, Zo(o, Bc(e, s, n));
|
|
2032
2031
|
continue;
|
|
2033
2032
|
}
|
|
2034
2033
|
if (s.directives.elseIf && !r || s.directives.else && !r)
|
|
2035
2034
|
continue;
|
|
2036
2035
|
if (!s.directives.if && !s.directives.elseIf && !s.directives.else) {
|
|
2037
|
-
|
|
2036
|
+
Zo(o, Rr(e, s, n)), r = !1, i = !1;
|
|
2038
2037
|
continue;
|
|
2039
2038
|
}
|
|
2040
2039
|
const l = _c(s, n, i);
|
|
2041
|
-
l.shouldRender ?
|
|
2040
|
+
l.shouldRender ? Zo(o, Rr(e, s, n)) : Vs(n, s), r = l.startsChain && !l.closesChain, i = l.startsChain ? l.matchedChain : !1;
|
|
2042
2041
|
}
|
|
2043
2042
|
return o;
|
|
2044
2043
|
}
|
|
2045
2044
|
function Bc(e, t, n) {
|
|
2046
2045
|
if (t.kind === "text")
|
|
2047
|
-
return n.inspection &&
|
|
2046
|
+
return n.inspection && _r(t, t.value, n), t.value;
|
|
2048
2047
|
if (t.kind === "expression") {
|
|
2049
2048
|
const o = pe(t.value, n);
|
|
2050
|
-
return n.inspection &&
|
|
2049
|
+
return n.inspection && _r(t, o, n), o == null ? "" : String(o);
|
|
2051
2050
|
}
|
|
2052
|
-
return
|
|
2051
|
+
return Rr(e, t, n);
|
|
2053
2052
|
}
|
|
2054
|
-
function
|
|
2053
|
+
function Rr(e, t, n) {
|
|
2055
2054
|
return Gc(t)({
|
|
2056
2055
|
h: e,
|
|
2057
2056
|
node: t,
|
|
2058
2057
|
context: n,
|
|
2059
2058
|
children: [],
|
|
2060
|
-
renderChildren: (r) =>
|
|
2061
|
-
renderNodes: (r, i) =>
|
|
2059
|
+
renderChildren: (r) => jn(e, t.children, r),
|
|
2060
|
+
renderNodes: (r, i) => jn(e, r, i),
|
|
2062
2061
|
props: {},
|
|
2063
2062
|
attrs: {}
|
|
2064
2063
|
});
|
|
@@ -2098,7 +2097,7 @@ function Kc(e) {
|
|
|
2098
2097
|
function Wc(e) {
|
|
2099
2098
|
return Lr.includes(e) || Xu.includes(e);
|
|
2100
2099
|
}
|
|
2101
|
-
function
|
|
2100
|
+
function Zo(e, t) {
|
|
2102
2101
|
t !== null && e.push(t);
|
|
2103
2102
|
}
|
|
2104
2103
|
function Uc(e) {
|
|
@@ -2115,22 +2114,24 @@ const qs = /* @__PURE__ */ be({
|
|
|
2115
2114
|
inspection: {}
|
|
2116
2115
|
},
|
|
2117
2116
|
setup(e) {
|
|
2118
|
-
const t = e, n = N(0), o = `renderer:${
|
|
2117
|
+
const t = e, n = N(0), o = `renderer:${ys().uid}`;
|
|
2119
2118
|
le(() => [t.host, t.ir], (v, p) => {
|
|
2120
2119
|
var m;
|
|
2121
2120
|
(m = p == null ? void 0 : p[0]) == null || m.releaseComputationResources(o);
|
|
2122
|
-
}, { flush: "sync" }),
|
|
2121
|
+
}, { flush: "sync" }), We(() => {
|
|
2123
2122
|
var v;
|
|
2124
2123
|
return (v = t.host) == null ? void 0 : v.releaseComputationResources(o);
|
|
2125
2124
|
});
|
|
2126
|
-
const r =
|
|
2125
|
+
const r = Hn(Rs, null), i = T.uiRegistry.subscribe(() => {
|
|
2127
2126
|
n.value += 1;
|
|
2128
2127
|
});
|
|
2129
|
-
|
|
2128
|
+
We(i), We(T.runtime.modules.subscribe(() => {
|
|
2130
2129
|
n.value += 1;
|
|
2131
2130
|
}));
|
|
2132
2131
|
const s = N(0);
|
|
2133
|
-
|
|
2132
|
+
We(T.workspace.subscribe(() => {
|
|
2133
|
+
s.value += 1;
|
|
2134
|
+
})), We(T.configuration.subscribe(() => {
|
|
2134
2135
|
s.value += 1;
|
|
2135
2136
|
}));
|
|
2136
2137
|
const l = x(() => (s.value, new Map(Object.values(As() ?? {}).map((v) => [
|
|
@@ -2147,8 +2148,8 @@ const qs = /* @__PURE__ */ be({
|
|
|
2147
2148
|
y = !1;
|
|
2148
2149
|
});
|
|
2149
2150
|
try {
|
|
2150
|
-
const R = await
|
|
2151
|
-
y && await Promise.allSettled(Array.from(h, ([w, _]) =>
|
|
2151
|
+
const R = await T.runtime.activateWorkspaceModuleScope();
|
|
2152
|
+
y && await Promise.allSettled(Array.from(h, ([w, _]) => T.runtime.modules.attach(R, w, _)));
|
|
2152
2153
|
} finally {
|
|
2153
2154
|
y && (u.value = !1);
|
|
2154
2155
|
}
|
|
@@ -2176,7 +2177,7 @@ const qs = /* @__PURE__ */ be({
|
|
|
2176
2177
|
if (n.value, s.value, !t.ir || u.value)
|
|
2177
2178
|
return null;
|
|
2178
2179
|
const v = d.value;
|
|
2179
|
-
return v.inspectionParentId = v.inspection ?
|
|
2180
|
+
return v.inspectionParentId = v.inspection ? Ku(v) : null, Kt($e, null, jn(
|
|
2180
2181
|
Kt,
|
|
2181
2182
|
t.ir.template.roots,
|
|
2182
2183
|
v
|
|
@@ -2184,7 +2185,7 @@ const qs = /* @__PURE__ */ be({
|
|
|
2184
2185
|
};
|
|
2185
2186
|
}
|
|
2186
2187
|
});
|
|
2187
|
-
return (v, p) => ($(),
|
|
2188
|
+
return (v, p) => ($(), Ue(Z(g)));
|
|
2188
2189
|
}
|
|
2189
2190
|
});
|
|
2190
2191
|
class qc {
|
|
@@ -2284,7 +2285,7 @@ const Ys = /* @__PURE__ */ be({
|
|
|
2284
2285
|
},
|
|
2285
2286
|
setup(e) {
|
|
2286
2287
|
const t = e, n = bt({}), o = N(0), r = Xc();
|
|
2287
|
-
|
|
2288
|
+
Mo(Xs, r);
|
|
2288
2289
|
let i = null, s = null;
|
|
2289
2290
|
le(
|
|
2290
2291
|
() => [t.host, t.input],
|
|
@@ -2307,7 +2308,7 @@ const Ys = /* @__PURE__ */ be({
|
|
|
2307
2308
|
}), s = a, i.mount();
|
|
2308
2309
|
},
|
|
2309
2310
|
{ immediate: !0 }
|
|
2310
|
-
),
|
|
2311
|
+
), qe(() => {
|
|
2311
2312
|
l();
|
|
2312
2313
|
});
|
|
2313
2314
|
function l() {
|
|
@@ -2315,7 +2316,7 @@ const Ys = /* @__PURE__ */ be({
|
|
|
2315
2316
|
}
|
|
2316
2317
|
return (a, u) => {
|
|
2317
2318
|
var d;
|
|
2318
|
-
return $(),
|
|
2319
|
+
return $(), Ue(qs, {
|
|
2319
2320
|
ir: ((d = e.host) == null ? void 0 : d.getIr()) ?? null,
|
|
2320
2321
|
props: n.value,
|
|
2321
2322
|
"render-version": o.value,
|
|
@@ -2384,13 +2385,13 @@ function od(e, t, n, o) {
|
|
|
2384
2385
|
if (Number.isNaN(s.getTime()))
|
|
2385
2386
|
return String(e);
|
|
2386
2387
|
const l = rd(n);
|
|
2387
|
-
return t === "HH:mm" ?
|
|
2388
|
+
return t === "HH:mm" ? er(s, "time", l) : t === "date" ? er(s, "date", l) : er(s, "datetime", l);
|
|
2388
2389
|
}
|
|
2389
2390
|
function rd(e) {
|
|
2390
2391
|
const t = String(e ?? "").trim();
|
|
2391
2392
|
return !t || t === "local" ? void 0 : t;
|
|
2392
2393
|
}
|
|
2393
|
-
function
|
|
2394
|
+
function er(e, t, n) {
|
|
2394
2395
|
const o = Zc[t];
|
|
2395
2396
|
if (!n)
|
|
2396
2397
|
return new Intl.DateTimeFormat(void 0, o).format(e);
|
|
@@ -2464,7 +2465,7 @@ function ad(e) {
|
|
|
2464
2465
|
return /^-?\d+(?:\.\d+)?$/.test(t) ? `${Number(t) * 4}px` : t;
|
|
2465
2466
|
}
|
|
2466
2467
|
const ud = (e) => {
|
|
2467
|
-
const t =
|
|
2468
|
+
const t = eo(e.props.gap, 4), n = eo(e.props.columnGap, 4), o = eo(e.props.rowGap, 4);
|
|
2468
2469
|
return e.h("div", {
|
|
2469
2470
|
...e.attrs,
|
|
2470
2471
|
class: ["endge-sfc-grid", e.props.class],
|
|
@@ -2473,7 +2474,7 @@ const ud = (e) => {
|
|
|
2473
2474
|
display: "grid",
|
|
2474
2475
|
gridTemplateColumns: cd(e.props.columns, 12),
|
|
2475
2476
|
gridTemplateRows: Js(e.props.rows),
|
|
2476
|
-
gridAutoRows:
|
|
2477
|
+
gridAutoRows: eo(e.props.autoRows),
|
|
2477
2478
|
gridAutoFlow: dd(e.props.autoFlow),
|
|
2478
2479
|
...t ? { gap: t } : {},
|
|
2479
2480
|
...n ? { columnGap: n } : {},
|
|
@@ -2495,7 +2496,7 @@ function Js(e) {
|
|
|
2495
2496
|
if (t !== "")
|
|
2496
2497
|
return /^\d+$/.test(t) && Number(t) > 0 ? `repeat(${Number(t)}, minmax(0, 1fr))` : t;
|
|
2497
2498
|
}
|
|
2498
|
-
function
|
|
2499
|
+
function eo(e, t = 1) {
|
|
2499
2500
|
if (e == null || e === !1)
|
|
2500
2501
|
return;
|
|
2501
2502
|
if (typeof e == "number")
|
|
@@ -2563,7 +2564,7 @@ function vd(e, t) {
|
|
|
2563
2564
|
const n = Number(t);
|
|
2564
2565
|
return Number.isFinite(n) ? n : "";
|
|
2565
2566
|
}
|
|
2566
|
-
return e === "Date" ?
|
|
2567
|
+
return e === "Date" ? ru(t) : e === "Time" ? iu(t) : e === "DateTime" ? hs(t) : String(t);
|
|
2567
2568
|
}
|
|
2568
2569
|
function Sd(e) {
|
|
2569
2570
|
return e == null ? void 0 : String(e);
|
|
@@ -2616,7 +2617,7 @@ const wd = ["data-open", "data-multiple"], _d = ["aria-expanded", "aria-readonly
|
|
|
2616
2617
|
},
|
|
2617
2618
|
setup(e) {
|
|
2618
2619
|
var oe;
|
|
2619
|
-
const t = e, n = N(null), o = N(null), r = N(null), i = N(null), s = N(!1), l = N(""), a = N(0), u = N([]), d = `endge-native-multiselect-${((oe =
|
|
2620
|
+
const t = e, n = N(null), o = N(null), r = N(null), i = N(null), s = N(!1), l = N(""), a = N(0), u = N([]), d = `endge-native-multiselect-${((oe = ys()) == null ? void 0 : oe.uid) ?? "select"}`, g = x(() => new Set(u.value)), v = x(() => t.searchable ?? t.options.length > 10), p = x(() => t.virtualized ?? t.options.length > 10), m = x(() => {
|
|
2620
2621
|
const F = l.value.trim().toLocaleLowerCase();
|
|
2621
2622
|
return F ? t.options.filter((V) => {
|
|
2622
2623
|
const D = String(V.value).toLocaleLowerCase();
|
|
@@ -2633,8 +2634,8 @@ const wd = ["data-open", "data-multiple"], _d = ["aria-expanded", "aria-readonly
|
|
|
2633
2634
|
u.value = [...F];
|
|
2634
2635
|
}, { immediate: !0 }), le(l, () => {
|
|
2635
2636
|
a.value = 0, i.value && (i.value.scrollTop = 0);
|
|
2636
|
-
}),
|
|
2637
|
-
async function
|
|
2637
|
+
}), Gn(() => document.addEventListener("pointerdown", Y)), qe(() => document.removeEventListener("pointerdown", Y));
|
|
2638
|
+
async function M() {
|
|
2638
2639
|
var F;
|
|
2639
2640
|
t.disabled || t.readonly || (s.value = !s.value, s.value && v.value && (await At(), (F = r.value) == null || F.focus()));
|
|
2640
2641
|
}
|
|
@@ -2660,7 +2661,7 @@ const wd = ["data-open", "data-multiple"], _d = ["aria-expanded", "aria-readonly
|
|
|
2660
2661
|
H();
|
|
2661
2662
|
return;
|
|
2662
2663
|
}
|
|
2663
|
-
(F.key === "ArrowDown" || F.key === "Enter" || F.key === " ") && (F.preventDefault(),
|
|
2664
|
+
(F.key === "ArrowDown" || F.key === "Enter" || F.key === " ") && (F.preventDefault(), M());
|
|
2664
2665
|
}
|
|
2665
2666
|
function z(F) {
|
|
2666
2667
|
a.value = F.currentTarget.scrollTop;
|
|
@@ -2673,7 +2674,7 @@ const wd = ["data-open", "data-multiple"], _d = ["aria-expanded", "aria-readonly
|
|
|
2673
2674
|
transform: `translateY(${F * _n}px)`
|
|
2674
2675
|
};
|
|
2675
2676
|
}
|
|
2676
|
-
return (F, V) => ($(), O("span",
|
|
2677
|
+
return (F, V) => ($(), O("span", Ze({
|
|
2677
2678
|
ref_key: "root",
|
|
2678
2679
|
ref: n
|
|
2679
2680
|
}, F.$attrs, {
|
|
@@ -2690,7 +2691,7 @@ const wd = ["data-open", "data-multiple"], _d = ["aria-expanded", "aria-readonly
|
|
|
2690
2691
|
"aria-expanded": s.value,
|
|
2691
2692
|
"aria-readonly": e.readonly ? "true" : void 0,
|
|
2692
2693
|
disabled: e.disabled,
|
|
2693
|
-
onClick:
|
|
2694
|
+
onClick: M,
|
|
2694
2695
|
onKeydown: G
|
|
2695
2696
|
}, [
|
|
2696
2697
|
X("span", {
|
|
@@ -2708,7 +2709,7 @@ const wd = ["data-open", "data-multiple"], _d = ["aria-expanded", "aria-readonly
|
|
|
2708
2709
|
class: "endge-native-multiselect__content",
|
|
2709
2710
|
onKeydown: Si(Gt(H, ["stop", "prevent"]), ["esc"])
|
|
2710
2711
|
}, [
|
|
2711
|
-
v.value ?
|
|
2712
|
+
v.value ? bs(($(), O("input", {
|
|
2712
2713
|
key: 0,
|
|
2713
2714
|
ref_key: "searchInput",
|
|
2714
2715
|
ref: r,
|
|
@@ -2723,7 +2724,7 @@ const wd = ["data-open", "data-multiple"], _d = ["aria-expanded", "aria-readonly
|
|
|
2723
2724
|
Si(Gt(H, ["stop", "prevent"]), ["esc"])
|
|
2724
2725
|
]
|
|
2725
2726
|
}, null, 40, Ed)), [
|
|
2726
|
-
[
|
|
2727
|
+
[du, l.value]
|
|
2727
2728
|
]) : ce("", !0),
|
|
2728
2729
|
X("div", {
|
|
2729
2730
|
id: d,
|
|
@@ -2900,19 +2901,19 @@ function Ud(e, t, n, o, r) {
|
|
|
2900
2901
|
}
|
|
2901
2902
|
function qd(e, t = []) {
|
|
2902
2903
|
const n = rl(e);
|
|
2903
|
-
return
|
|
2904
|
+
return Ir((n == null ? void 0 : n.attrs) ?? Xd("row"), t);
|
|
2904
2905
|
}
|
|
2905
2906
|
function ol(e, t, n = []) {
|
|
2906
2907
|
const o = rl(e), r = o == null ? void 0 : o.columnMarkers[t];
|
|
2907
2908
|
return r ? {
|
|
2908
|
-
cell: { attrs:
|
|
2909
|
-
cellContent: { attrs:
|
|
2909
|
+
cell: { attrs: Ir(r.cell, n) },
|
|
2910
|
+
cellContent: { attrs: Ir(r.cellContent, n) }
|
|
2910
2911
|
} : null;
|
|
2911
2912
|
}
|
|
2912
2913
|
function rl(e) {
|
|
2913
2914
|
return e[tl];
|
|
2914
2915
|
}
|
|
2915
|
-
function
|
|
2916
|
+
function Ir(e, t) {
|
|
2916
2917
|
const n = /* @__PURE__ */ new Set(), o = e["data-endge-state"];
|
|
2917
2918
|
typeof o == "string" && o.split(/\s+/).filter(Boolean).forEach((r) => n.add(r));
|
|
2918
2919
|
for (const r of t)
|
|
@@ -3000,7 +3001,7 @@ const ji = (...e) => e.filter((t, n, o) => !!t && t.trim() !== "" && o.indexOf(t
|
|
|
3000
3001
|
* This source code is licensed under the ISC license.
|
|
3001
3002
|
* See the LICENSE file in the root directory of this source tree.
|
|
3002
3003
|
*/
|
|
3003
|
-
function
|
|
3004
|
+
function tr(e) {
|
|
3004
3005
|
return e != null;
|
|
3005
3006
|
}
|
|
3006
3007
|
function Qd(e, t = {}) {
|
|
@@ -3013,14 +3014,14 @@ function Qd(e, t = {}) {
|
|
|
3013
3014
|
..."color" in t && t.color && {
|
|
3014
3015
|
[o("stroke")]: t.color
|
|
3015
3016
|
},
|
|
3016
|
-
..."size" in t &&
|
|
3017
|
+
..."size" in t && tr(t.size) && {
|
|
3017
3018
|
[o("width")]: t.size,
|
|
3018
3019
|
[o("height")]: t.size
|
|
3019
3020
|
},
|
|
3020
|
-
..."width" in t &&
|
|
3021
|
+
..."width" in t && tr(t.width) && {
|
|
3021
3022
|
[o("width")]: t.width
|
|
3022
3023
|
},
|
|
3023
|
-
..."height" in t &&
|
|
3024
|
+
..."height" in t && tr(t.height) && {
|
|
3024
3025
|
[o("height")]: t.height
|
|
3025
3026
|
},
|
|
3026
3027
|
[o("stroke-width")]: d,
|
|
@@ -3057,7 +3058,7 @@ const Zd = (e) => {
|
|
|
3057
3058
|
* This source code is licensed under the ISC license.
|
|
3058
3059
|
* See the LICENSE file in the root directory of this source tree.
|
|
3059
3060
|
*/
|
|
3060
|
-
const
|
|
3061
|
+
const to = (e) => e === "";
|
|
3061
3062
|
/**
|
|
3062
3063
|
* @license @lucide/vue v1.46.0 - ISC
|
|
3063
3064
|
*
|
|
@@ -3073,7 +3074,7 @@ const ef = (e) => e == null ? void 0 : e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").
|
|
|
3073
3074
|
*/
|
|
3074
3075
|
const tf = /* @__PURE__ */ Symbol("lucide-icons");
|
|
3075
3076
|
function nf() {
|
|
3076
|
-
return
|
|
3077
|
+
return Hn(tf, {});
|
|
3077
3078
|
}
|
|
3078
3079
|
/**
|
|
3079
3080
|
* @license @lucide/vue v1.46.0 - ISC
|
|
@@ -3111,14 +3112,14 @@ const of = ({
|
|
|
3111
3112
|
absoluteStrokeWidth: _ = !1,
|
|
3112
3113
|
nonScalingStroke: C = !1,
|
|
3113
3114
|
class: E = ""
|
|
3114
|
-
} = nf(),
|
|
3115
|
+
} = nf(), M = to(r) || to(i) || r === !0 || i === !0 || _ === !0, P = to(s) || to(l) || s === !0 || l === !0 || C === !0;
|
|
3115
3116
|
delete m.class;
|
|
3116
3117
|
const H = (z = h.default) == null ? void 0 : z.call(h), [, Y, G = []] = Qd(o, {
|
|
3117
3118
|
color: p ?? R,
|
|
3118
3119
|
width: g ?? d ?? y,
|
|
3119
3120
|
height: v ?? d ?? y,
|
|
3120
3121
|
strokeWidth: a ?? u ?? w,
|
|
3121
|
-
absoluteStrokeWidth:
|
|
3122
|
+
absoluteStrokeWidth: M,
|
|
3122
3123
|
nonScalingStroke: P,
|
|
3123
3124
|
className: E,
|
|
3124
3125
|
hasA11yProp: H != null && H.length > 0 || Zd(m),
|
|
@@ -3327,7 +3328,7 @@ function Le(e, t) {
|
|
|
3327
3328
|
}));
|
|
3328
3329
|
};
|
|
3329
3330
|
}
|
|
3330
|
-
function
|
|
3331
|
+
function Vo(e) {
|
|
3331
3332
|
return e instanceof Function;
|
|
3332
3333
|
}
|
|
3333
3334
|
function xf(e) {
|
|
@@ -3475,15 +3476,15 @@ const $f = {
|
|
|
3475
3476
|
e.getHeaderGroups = j(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, o, r) => {
|
|
3476
3477
|
var i, s;
|
|
3477
3478
|
const l = (i = o == null ? void 0 : o.map((g) => n.find((v) => v.id === g)).filter(Boolean)) != null ? i : [], a = (s = r == null ? void 0 : r.map((g) => n.find((v) => v.id === g)).filter(Boolean)) != null ? s : [], u = n.filter((g) => !(o != null && o.includes(g.id)) && !(r != null && r.includes(g.id)));
|
|
3478
|
-
return
|
|
3479
|
-
}, B(e.options, Re, "getHeaderGroups")), e.getCenterHeaderGroups = j(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, o, r) => (n = n.filter((i) => !(o != null && o.includes(i.id)) && !(r != null && r.includes(i.id))),
|
|
3479
|
+
return no(t, [...l, ...u, ...a], e);
|
|
3480
|
+
}, B(e.options, Re, "getHeaderGroups")), e.getCenterHeaderGroups = j(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, o, r) => (n = n.filter((i) => !(o != null && o.includes(i.id)) && !(r != null && r.includes(i.id))), no(t, n, e, "center")), B(e.options, Re, "getCenterHeaderGroups")), e.getLeftHeaderGroups = j(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (t, n, o) => {
|
|
3480
3481
|
var r;
|
|
3481
3482
|
const i = (r = o == null ? void 0 : o.map((s) => n.find((l) => l.id === s)).filter(Boolean)) != null ? r : [];
|
|
3482
|
-
return
|
|
3483
|
+
return no(t, i, e, "left");
|
|
3483
3484
|
}, B(e.options, Re, "getLeftHeaderGroups")), e.getRightHeaderGroups = j(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (t, n, o) => {
|
|
3484
3485
|
var r;
|
|
3485
3486
|
const i = (r = o == null ? void 0 : o.map((s) => n.find((l) => l.id === s)).filter(Boolean)) != null ? r : [];
|
|
3486
|
-
return
|
|
3487
|
+
return no(t, i, e, "right");
|
|
3487
3488
|
}, B(e.options, Re, "getRightHeaderGroups")), e.getFooterGroups = j(() => [e.getHeaderGroups()], (t) => [...t].reverse(), B(e.options, Re, "getFooterGroups")), e.getLeftFooterGroups = j(() => [e.getLeftHeaderGroups()], (t) => [...t].reverse(), B(e.options, Re, "getLeftFooterGroups")), e.getCenterFooterGroups = j(() => [e.getCenterHeaderGroups()], (t) => [...t].reverse(), B(e.options, Re, "getCenterFooterGroups")), e.getRightFooterGroups = j(() => [e.getRightHeaderGroups()], (t) => [...t].reverse(), B(e.options, Re, "getRightFooterGroups")), e.getFlatHeaders = j(() => [e.getHeaderGroups()], (t) => t.map((n) => n.headers).flat(), B(e.options, Re, "getFlatHeaders")), e.getLeftFlatHeaders = j(() => [e.getLeftHeaderGroups()], (t) => t.map((n) => n.headers).flat(), B(e.options, Re, "getLeftFlatHeaders")), e.getCenterFlatHeaders = j(() => [e.getCenterHeaderGroups()], (t) => t.map((n) => n.headers).flat(), B(e.options, Re, "getCenterFlatHeaders")), e.getRightFlatHeaders = j(() => [e.getRightHeaderGroups()], (t) => t.map((n) => n.headers).flat(), B(e.options, Re, "getRightFlatHeaders")), e.getCenterLeafHeaders = j(() => [e.getCenterFlatHeaders()], (t) => t.filter((n) => {
|
|
3488
3489
|
var o;
|
|
3489
3490
|
return !((o = n.subHeaders) != null && o.length);
|
|
@@ -3499,7 +3500,7 @@ const $f = {
|
|
|
3499
3500
|
}, B(e.options, Re, "getLeafHeaders"));
|
|
3500
3501
|
}
|
|
3501
3502
|
};
|
|
3502
|
-
function
|
|
3503
|
+
function no(e, t, n, o) {
|
|
3503
3504
|
var r, i;
|
|
3504
3505
|
let s = 0;
|
|
3505
3506
|
const l = function(v, p) {
|
|
@@ -3525,7 +3526,7 @@ function to(e, t, n, o) {
|
|
|
3525
3526
|
const E = Bi(n, _, {
|
|
3526
3527
|
id: [o, p, _.id, y == null ? void 0 : y.id].filter(Boolean).join("_"),
|
|
3527
3528
|
isPlaceholder: C,
|
|
3528
|
-
placeholderId: C ? `${h.filter((
|
|
3529
|
+
placeholderId: C ? `${h.filter((M) => M.column === _).length}` : void 0,
|
|
3529
3530
|
depth: p,
|
|
3530
3531
|
index: h.length
|
|
3531
3532
|
});
|
|
@@ -3691,7 +3692,7 @@ const Pf = {
|
|
|
3691
3692
|
return typeof o == "string" ? vt.includesString : typeof o == "number" ? vt.inNumberRange : typeof o == "boolean" || o !== null && typeof o == "object" ? vt.equals : Array.isArray(o) ? vt.arrIncludes : vt.weakEquals;
|
|
3692
3693
|
}, e.getFilterFn = () => {
|
|
3693
3694
|
var n, o;
|
|
3694
|
-
return
|
|
3695
|
+
return Vo(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
3695
3696
|
// @ts-ignore
|
|
3696
3697
|
(n = (o = t.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? n : vt[e.columnDef.filterFn]
|
|
3697
3698
|
);
|
|
@@ -3787,7 +3788,7 @@ const Df = (e, t, n) => n.reduce((o, r) => {
|
|
|
3787
3788
|
return n[0];
|
|
3788
3789
|
const o = Math.floor(n.length / 2), r = n.sort((i, s) => i - s);
|
|
3789
3790
|
return n.length % 2 !== 0 ? r[o] : (r[o - 1] + r[o]) / 2;
|
|
3790
|
-
}, Hf = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), jf = (e, t) => new Set(t.map((n) => n.getValue(e))).size, Bf = (e, t) => t.length,
|
|
3791
|
+
}, Hf = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), jf = (e, t) => new Set(t.map((n) => n.getValue(e))).size, Bf = (e, t) => t.length, nr = {
|
|
3791
3792
|
sum: Df,
|
|
3792
3793
|
min: Of,
|
|
3793
3794
|
max: zf,
|
|
@@ -3833,14 +3834,14 @@ const Df = (e, t, n) => n.reduce((o, r) => {
|
|
|
3833
3834
|
}, e.getAutoAggregationFn = () => {
|
|
3834
3835
|
const n = t.getCoreRowModel().flatRows[0], o = n == null ? void 0 : n.getValue(e.id);
|
|
3835
3836
|
if (typeof o == "number")
|
|
3836
|
-
return
|
|
3837
|
+
return nr.sum;
|
|
3837
3838
|
if (Object.prototype.toString.call(o) === "[object Date]")
|
|
3838
|
-
return
|
|
3839
|
+
return nr.extent;
|
|
3839
3840
|
}, e.getAggregationFn = () => {
|
|
3840
3841
|
var n, o;
|
|
3841
3842
|
if (!e)
|
|
3842
3843
|
throw new Error();
|
|
3843
|
-
return
|
|
3844
|
+
return Vo(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (n = (o = t.options.aggregationFns) == null ? void 0 : o[e.columnDef.aggregationFn]) != null ? n : nr[e.columnDef.aggregationFn];
|
|
3844
3845
|
};
|
|
3845
3846
|
},
|
|
3846
3847
|
createTable: (e) => {
|
|
@@ -3879,12 +3880,12 @@ const Wf = {
|
|
|
3879
3880
|
onColumnOrderChange: Le("columnOrder", e)
|
|
3880
3881
|
}),
|
|
3881
3882
|
createColumn: (e, t) => {
|
|
3882
|
-
e.getIndex = j((n) => [
|
|
3883
|
+
e.getIndex = j((n) => [Pn(t, n)], (n) => n.findIndex((o) => o.id === e.id), B(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => {
|
|
3883
3884
|
var o;
|
|
3884
|
-
return ((o =
|
|
3885
|
+
return ((o = Pn(t, n)[0]) == null ? void 0 : o.id) === e.id;
|
|
3885
3886
|
}, e.getIsLastColumn = (n) => {
|
|
3886
3887
|
var o;
|
|
3887
|
-
const r =
|
|
3888
|
+
const r = Pn(t, n);
|
|
3888
3889
|
return ((o = r[r.length - 1]) == null ? void 0 : o.id) === e.id;
|
|
3889
3890
|
};
|
|
3890
3891
|
},
|
|
@@ -3907,12 +3908,12 @@ const Wf = {
|
|
|
3907
3908
|
return Kf(i, n, o);
|
|
3908
3909
|
}, B(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
3909
3910
|
}
|
|
3910
|
-
},
|
|
3911
|
+
}, or = () => ({
|
|
3911
3912
|
left: [],
|
|
3912
3913
|
right: []
|
|
3913
3914
|
}), Uf = {
|
|
3914
3915
|
getInitialState: (e) => ({
|
|
3915
|
-
columnPinning:
|
|
3916
|
+
columnPinning: or(),
|
|
3916
3917
|
...e
|
|
3917
3918
|
}),
|
|
3918
3919
|
getDefaultOptions: (e) => ({
|
|
@@ -3972,7 +3973,7 @@ const Wf = {
|
|
|
3972
3973
|
createTable: (e) => {
|
|
3973
3974
|
e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => {
|
|
3974
3975
|
var n, o;
|
|
3975
|
-
return e.setColumnPinning(t ?
|
|
3976
|
+
return e.setColumnPinning(t ? or() : (n = (o = e.initialState) == null ? void 0 : o.columnPinning) != null ? n : or());
|
|
3976
3977
|
}, e.getIsSomeColumnsPinned = (t) => {
|
|
3977
3978
|
var n;
|
|
3978
3979
|
const o = e.getState().columnPinning;
|
|
@@ -3990,11 +3991,11 @@ const Wf = {
|
|
|
3990
3991
|
function qf(e) {
|
|
3991
3992
|
return e || (typeof document < "u" ? document : null);
|
|
3992
3993
|
}
|
|
3993
|
-
const
|
|
3994
|
+
const oo = {
|
|
3994
3995
|
size: 150,
|
|
3995
3996
|
minSize: 20,
|
|
3996
3997
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
3997
|
-
},
|
|
3998
|
+
}, rr = () => ({
|
|
3998
3999
|
startOffset: null,
|
|
3999
4000
|
startSize: null,
|
|
4000
4001
|
deltaOffset: null,
|
|
@@ -4002,10 +4003,10 @@ const no = {
|
|
|
4002
4003
|
isResizingColumn: !1,
|
|
4003
4004
|
columnSizingStart: []
|
|
4004
4005
|
}), Xf = {
|
|
4005
|
-
getDefaultColumnDef: () =>
|
|
4006
|
+
getDefaultColumnDef: () => oo,
|
|
4006
4007
|
getInitialState: (e) => ({
|
|
4007
4008
|
columnSizing: {},
|
|
4008
|
-
columnSizingInfo:
|
|
4009
|
+
columnSizingInfo: rr(),
|
|
4009
4010
|
...e
|
|
4010
4011
|
}),
|
|
4011
4012
|
getDefaultOptions: (e) => ({
|
|
@@ -4018,8 +4019,8 @@ const no = {
|
|
|
4018
4019
|
e.getSize = () => {
|
|
4019
4020
|
var n, o, r;
|
|
4020
4021
|
const i = t.getState().columnSizing[e.id];
|
|
4021
|
-
return Math.min(Math.max((n = e.columnDef.minSize) != null ? n :
|
|
4022
|
-
}, e.getStart = j((n) => [n,
|
|
4022
|
+
return Math.min(Math.max((n = e.columnDef.minSize) != null ? n : oo.minSize, (o = i ?? e.columnDef.size) != null ? o : oo.size), (r = e.columnDef.maxSize) != null ? r : oo.maxSize);
|
|
4023
|
+
}, e.getStart = j((n) => [n, Pn(t, n), t.getState().columnSizing], (n, o) => o.slice(0, e.getIndex(n)).reduce((r, i) => r + i.getSize(), 0), B(t.options, "debugColumns", "getStart")), e.getAfter = j((n) => [n, Pn(t, n), t.getState().columnSizing], (n, o) => o.slice(e.getIndex(n) + 1).reduce((r, i) => r + i.getSize(), 0), B(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
4023
4024
|
t.setColumnSizing((n) => {
|
|
4024
4025
|
let {
|
|
4025
4026
|
[e.id]: o,
|
|
@@ -4053,12 +4054,12 @@ const no = {
|
|
|
4053
4054
|
}, e.getResizeHandler = (n) => {
|
|
4054
4055
|
const o = t.getColumn(e.column.id), r = o == null ? void 0 : o.getCanResize();
|
|
4055
4056
|
return (i) => {
|
|
4056
|
-
if (!o || !r || (i.persist == null || i.persist(),
|
|
4057
|
+
if (!o || !r || (i.persist == null || i.persist(), ir(i) && i.touches && i.touches.length > 1))
|
|
4057
4058
|
return;
|
|
4058
|
-
const s = e.getSize(), l = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[o.id, o.getSize()]], a =
|
|
4059
|
+
const s = e.getSize(), l = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[o.id, o.getSize()]], a = ir(i) ? Math.round(i.touches[0].clientX) : i.clientX, u = {}, d = (R, w) => {
|
|
4059
4060
|
typeof w == "number" && (t.setColumnSizingInfo((_) => {
|
|
4060
4061
|
var C, E;
|
|
4061
|
-
const
|
|
4062
|
+
const M = t.options.columnResizeDirection === "rtl" ? -1 : 1, P = (w - ((C = _ == null ? void 0 : _.startOffset) != null ? C : 0)) * M, H = Math.max(P / ((E = _ == null ? void 0 : _.startSize) != null ? E : 0), -0.999999);
|
|
4062
4063
|
return _.columnSizingStart.forEach((Y) => {
|
|
4063
4064
|
let [G, z] = Y;
|
|
4064
4065
|
u[G] = Math.round(Math.max(z + z * H, 0) * 100) / 100;
|
|
@@ -4095,7 +4096,7 @@ const no = {
|
|
|
4095
4096
|
}, y = Yf() ? {
|
|
4096
4097
|
passive: !1
|
|
4097
4098
|
} : !1;
|
|
4098
|
-
|
|
4099
|
+
ir(i) ? (p == null || p.addEventListener("touchmove", h.moveHandler, y), p == null || p.addEventListener("touchend", h.upHandler, y)) : (p == null || p.addEventListener("mousemove", m.moveHandler, y), p == null || p.addEventListener("mouseup", m.upHandler, y)), t.setColumnSizingInfo((R) => ({
|
|
4099
4100
|
...R,
|
|
4100
4101
|
startOffset: a,
|
|
4101
4102
|
startSize: s,
|
|
@@ -4113,7 +4114,7 @@ const no = {
|
|
|
4113
4114
|
e.setColumnSizing(t ? {} : (n = e.initialState.columnSizing) != null ? n : {});
|
|
4114
4115
|
}, e.resetHeaderSizeInfo = (t) => {
|
|
4115
4116
|
var n;
|
|
4116
|
-
e.setColumnSizingInfo(t ?
|
|
4117
|
+
e.setColumnSizingInfo(t ? rr() : (n = e.initialState.columnSizingInfo) != null ? n : rr());
|
|
4117
4118
|
}, e.getTotalSize = () => {
|
|
4118
4119
|
var t, n;
|
|
4119
4120
|
return (t = (n = e.getHeaderGroups()[0]) == null ? void 0 : n.headers.reduce((o, r) => o + r.getSize(), 0)) != null ? t : 0;
|
|
@@ -4129,9 +4130,9 @@ const no = {
|
|
|
4129
4130
|
};
|
|
4130
4131
|
}
|
|
4131
4132
|
};
|
|
4132
|
-
let
|
|
4133
|
+
let ro = null;
|
|
4133
4134
|
function Yf() {
|
|
4134
|
-
if (typeof
|
|
4135
|
+
if (typeof ro == "boolean") return ro;
|
|
4135
4136
|
let e = !1;
|
|
4136
4137
|
try {
|
|
4137
4138
|
const t = {
|
|
@@ -4144,9 +4145,9 @@ function Yf() {
|
|
|
4144
4145
|
} catch {
|
|
4145
4146
|
e = !1;
|
|
4146
4147
|
}
|
|
4147
|
-
return
|
|
4148
|
+
return ro = e, ro;
|
|
4148
4149
|
}
|
|
4149
|
-
function
|
|
4150
|
+
function ir(e) {
|
|
4150
4151
|
return e.type === "touchstart";
|
|
4151
4152
|
}
|
|
4152
4153
|
const Jf = {
|
|
@@ -4194,7 +4195,7 @@ const Jf = {
|
|
|
4194
4195
|
};
|
|
4195
4196
|
}
|
|
4196
4197
|
};
|
|
4197
|
-
function
|
|
4198
|
+
function Pn(e, t) {
|
|
4198
4199
|
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
4199
4200
|
}
|
|
4200
4201
|
const Qf = {
|
|
@@ -4230,7 +4231,7 @@ const Qf = {
|
|
|
4230
4231
|
const {
|
|
4231
4232
|
globalFilterFn: o
|
|
4232
4233
|
} = e.options;
|
|
4233
|
-
return
|
|
4234
|
+
return Vo(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (t = (n = e.options.filterFns) == null ? void 0 : n[o]) != null ? t : vt[o];
|
|
4234
4235
|
}, e.setGlobalFilter = (t) => {
|
|
4235
4236
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
|
|
4236
4237
|
}, e.resetGlobalFilter = (t) => {
|
|
@@ -4324,14 +4325,14 @@ const Qf = {
|
|
|
4324
4325
|
};
|
|
4325
4326
|
};
|
|
4326
4327
|
}
|
|
4327
|
-
},
|
|
4328
|
-
pageIndex:
|
|
4329
|
-
pageSize:
|
|
4328
|
+
}, Er = 0, xr = 10, sr = () => ({
|
|
4329
|
+
pageIndex: Er,
|
|
4330
|
+
pageSize: xr
|
|
4330
4331
|
}), tg = {
|
|
4331
4332
|
getInitialState: (e) => ({
|
|
4332
4333
|
...e,
|
|
4333
4334
|
pagination: {
|
|
4334
|
-
...
|
|
4335
|
+
...sr(),
|
|
4335
4336
|
...e == null ? void 0 : e.pagination
|
|
4336
4337
|
}
|
|
4337
4338
|
}),
|
|
@@ -4359,7 +4360,7 @@ const Qf = {
|
|
|
4359
4360
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
4360
4361
|
}, e.resetPagination = (o) => {
|
|
4361
4362
|
var r;
|
|
4362
|
-
e.setPagination(o ?
|
|
4363
|
+
e.setPagination(o ? sr() : (r = e.initialState.pagination) != null ? r : sr());
|
|
4363
4364
|
}, e.setPageIndex = (o) => {
|
|
4364
4365
|
e.setPagination((r) => {
|
|
4365
4366
|
let i = $t(o, r.pageIndex);
|
|
@@ -4371,10 +4372,10 @@ const Qf = {
|
|
|
4371
4372
|
});
|
|
4372
4373
|
}, e.resetPageIndex = (o) => {
|
|
4373
4374
|
var r, i;
|
|
4374
|
-
e.setPageIndex(o ?
|
|
4375
|
+
e.setPageIndex(o ? Er : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : Er);
|
|
4375
4376
|
}, e.resetPageSize = (o) => {
|
|
4376
4377
|
var r, i;
|
|
4377
|
-
e.setPageSize(o ?
|
|
4378
|
+
e.setPageSize(o ? xr : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : xr);
|
|
4378
4379
|
}, e.setPageSize = (o) => {
|
|
4379
4380
|
e.setPagination((r) => {
|
|
4380
4381
|
const i = Math.max(1, $t(o, r.pageSize)), s = r.pageSize * r.pageIndex, l = Math.floor(s / i);
|
|
@@ -4407,12 +4408,12 @@ const Qf = {
|
|
|
4407
4408
|
return (o = e.options.rowCount) != null ? o : e.getPrePaginationRowModel().rows.length;
|
|
4408
4409
|
};
|
|
4409
4410
|
}
|
|
4410
|
-
},
|
|
4411
|
+
}, lr = () => ({
|
|
4411
4412
|
top: [],
|
|
4412
4413
|
bottom: []
|
|
4413
4414
|
}), ng = {
|
|
4414
4415
|
getInitialState: (e) => ({
|
|
4415
|
-
rowPinning:
|
|
4416
|
+
rowPinning: lr(),
|
|
4416
4417
|
...e
|
|
4417
4418
|
}),
|
|
4418
4419
|
getDefaultOptions: (e) => ({
|
|
@@ -4481,7 +4482,7 @@ const Qf = {
|
|
|
4481
4482
|
createTable: (e) => {
|
|
4482
4483
|
e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => {
|
|
4483
4484
|
var n, o;
|
|
4484
|
-
return e.setRowPinning(t ?
|
|
4485
|
+
return e.setRowPinning(t ? lr() : (n = (o = e.initialState) == null ? void 0 : o.rowPinning) != null ? n : lr());
|
|
4485
4486
|
}, e.getIsSomeRowsPinned = (t) => {
|
|
4486
4487
|
var n;
|
|
4487
4488
|
const o = e.getState().rowPinning;
|
|
@@ -4546,17 +4547,17 @@ const Qf = {
|
|
|
4546
4547
|
...n
|
|
4547
4548
|
};
|
|
4548
4549
|
return e.getRowModel().rows.forEach((i) => {
|
|
4549
|
-
|
|
4550
|
+
kr(r, i.id, o, !0, e);
|
|
4550
4551
|
}), r;
|
|
4551
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = j(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ?
|
|
4552
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = j(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? ar(e, n) : {
|
|
4552
4553
|
rows: [],
|
|
4553
4554
|
flatRows: [],
|
|
4554
4555
|
rowsById: {}
|
|
4555
|
-
}, B(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = j(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ?
|
|
4556
|
+
}, B(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = j(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? ar(e, n) : {
|
|
4556
4557
|
rows: [],
|
|
4557
4558
|
flatRows: [],
|
|
4558
4559
|
rowsById: {}
|
|
4559
|
-
}, B(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = j(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ?
|
|
4560
|
+
}, B(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = j(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? ar(e, n) : {
|
|
4560
4561
|
rows: [],
|
|
4561
4562
|
flatRows: [],
|
|
4562
4563
|
rowsById: {}
|
|
@@ -4595,7 +4596,7 @@ const Qf = {
|
|
|
4595
4596
|
const l = {
|
|
4596
4597
|
...i
|
|
4597
4598
|
};
|
|
4598
|
-
return
|
|
4599
|
+
return kr(l, e.id, n, (s = o == null ? void 0 : o.selectChildren) != null ? s : !0, t), l;
|
|
4599
4600
|
});
|
|
4600
4601
|
}, e.getIsSelected = () => {
|
|
4601
4602
|
const {
|
|
@@ -4606,12 +4607,12 @@ const Qf = {
|
|
|
4606
4607
|
const {
|
|
4607
4608
|
rowSelection: n
|
|
4608
4609
|
} = t.getState();
|
|
4609
|
-
return
|
|
4610
|
+
return Tr(e, n) === "some";
|
|
4610
4611
|
}, e.getIsAllSubRowsSelected = () => {
|
|
4611
4612
|
const {
|
|
4612
4613
|
rowSelection: n
|
|
4613
4614
|
} = t.getState();
|
|
4614
|
-
return
|
|
4615
|
+
return Tr(e, n) === "all";
|
|
4615
4616
|
}, e.getCanSelect = () => {
|
|
4616
4617
|
var n;
|
|
4617
4618
|
return typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : (n = t.options.enableRowSelection) != null ? n : !0;
|
|
@@ -4629,12 +4630,12 @@ const Qf = {
|
|
|
4629
4630
|
};
|
|
4630
4631
|
};
|
|
4631
4632
|
}
|
|
4632
|
-
},
|
|
4633
|
+
}, kr = (e, t, n, o, r) => {
|
|
4633
4634
|
var i;
|
|
4634
4635
|
const s = r.getRow(t, !0);
|
|
4635
|
-
n ? (s.getCanMultiSelect() || Object.keys(e).forEach((l) => delete e[l]), s.getCanSelect() && (e[t] = !0)) : delete e[t], o && (i = s.subRows) != null && i.length && s.getCanSelectSubRows() && s.subRows.forEach((l) =>
|
|
4636
|
+
n ? (s.getCanMultiSelect() || Object.keys(e).forEach((l) => delete e[l]), s.getCanSelect() && (e[t] = !0)) : delete e[t], o && (i = s.subRows) != null && i.length && s.getCanSelectSubRows() && s.subRows.forEach((l) => kr(e, l.id, n, o, r));
|
|
4636
4637
|
};
|
|
4637
|
-
function
|
|
4638
|
+
function ar(e, t) {
|
|
4638
4639
|
const n = e.getState().rowSelection, o = [], r = {}, i = function(s, l) {
|
|
4639
4640
|
return s.map((a) => {
|
|
4640
4641
|
var u;
|
|
@@ -4656,18 +4657,18 @@ function Gr(e, t) {
|
|
|
4656
4657
|
var n;
|
|
4657
4658
|
return (n = t[e.id]) != null ? n : !1;
|
|
4658
4659
|
}
|
|
4659
|
-
function
|
|
4660
|
+
function Tr(e, t, n) {
|
|
4660
4661
|
var o;
|
|
4661
4662
|
if (!((o = e.subRows) != null && o.length)) return !1;
|
|
4662
4663
|
let r = !0, i = !1;
|
|
4663
4664
|
return e.subRows.forEach((s) => {
|
|
4664
4665
|
if (!(i && !r) && (s.getCanSelect() && (Gr(s, t) ? i = !0 : r = !1), s.subRows && s.subRows.length)) {
|
|
4665
|
-
const l =
|
|
4666
|
+
const l = Tr(s, t);
|
|
4666
4667
|
l === "all" ? i = !0 : (l === "some" && (i = !0), r = !1);
|
|
4667
4668
|
}
|
|
4668
4669
|
}), r ? "all" : i ? "some" : !1;
|
|
4669
4670
|
}
|
|
4670
|
-
const
|
|
4671
|
+
const Mr = /([0-9]+)/gm, rg = (e, t, n) => gl(Pt(e.getValue(n)).toLowerCase(), Pt(t.getValue(n)).toLowerCase()), ig = (e, t, n) => gl(Pt(e.getValue(n)), Pt(t.getValue(n))), sg = (e, t, n) => Kr(Pt(e.getValue(n)).toLowerCase(), Pt(t.getValue(n)).toLowerCase()), lg = (e, t, n) => Kr(Pt(e.getValue(n)), Pt(t.getValue(n))), ag = (e, t, n) => {
|
|
4671
4672
|
const o = e.getValue(n), r = t.getValue(n);
|
|
4672
4673
|
return o > r ? 1 : o < r ? -1 : 0;
|
|
4673
4674
|
}, ug = (e, t, n) => Kr(e.getValue(n), t.getValue(n));
|
|
@@ -4678,7 +4679,7 @@ function Pt(e) {
|
|
|
4678
4679
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
4679
4680
|
}
|
|
4680
4681
|
function gl(e, t) {
|
|
4681
|
-
const n = e.split(
|
|
4682
|
+
const n = e.split(Mr).filter(Boolean), o = t.split(Mr).filter(Boolean);
|
|
4682
4683
|
for (; n.length && o.length; ) {
|
|
4683
4684
|
const r = n.shift(), i = o.shift(), s = parseInt(r, 10), l = parseInt(i, 10), a = [s, l].sort();
|
|
4684
4685
|
if (isNaN(a[0])) {
|
|
@@ -4725,7 +4726,7 @@ const Cn = {
|
|
|
4725
4726
|
const i = r == null ? void 0 : r.getValue(e.id);
|
|
4726
4727
|
if (Object.prototype.toString.call(i) === "[object Date]")
|
|
4727
4728
|
return Cn.datetime;
|
|
4728
|
-
if (typeof i == "string" && (o = !0, i.split(
|
|
4729
|
+
if (typeof i == "string" && (o = !0, i.split(Mr).length > 1))
|
|
4729
4730
|
return Cn.alphanumeric;
|
|
4730
4731
|
}
|
|
4731
4732
|
return o ? Cn.text : Cn.basic;
|
|
@@ -4736,7 +4737,7 @@ const Cn = {
|
|
|
4736
4737
|
var n, o;
|
|
4737
4738
|
if (!e)
|
|
4738
4739
|
throw new Error();
|
|
4739
|
-
return
|
|
4740
|
+
return Vo(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (n = (o = t.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? n : Cn[e.columnDef.sortingFn];
|
|
4740
4741
|
}, e.toggleSorting = (n, o) => {
|
|
4741
4742
|
const r = e.getNextSortingOrder(), i = typeof n < "u" && n !== null;
|
|
4742
4743
|
t.setSorting((s) => {
|
|
@@ -5009,11 +5010,11 @@ function mg() {
|
|
|
5009
5010
|
const m = i[p], h = s[m.id], y = h.sortUndefined, R = (v = m == null ? void 0 : m.desc) != null ? v : !1;
|
|
5010
5011
|
let w = 0;
|
|
5011
5012
|
if (y) {
|
|
5012
|
-
const _ = d.getValue(m.id), C = g.getValue(m.id), E = _ === void 0,
|
|
5013
|
-
if (E ||
|
|
5013
|
+
const _ = d.getValue(m.id), C = g.getValue(m.id), E = _ === void 0, M = C === void 0;
|
|
5014
|
+
if (E || M) {
|
|
5014
5015
|
if (y === "first") return E ? -1 : 1;
|
|
5015
5016
|
if (y === "last") return E ? 1 : -1;
|
|
5016
|
-
w = E &&
|
|
5017
|
+
w = E && M ? 0 : E ? y : -y;
|
|
5017
5018
|
}
|
|
5018
5019
|
}
|
|
5019
5020
|
if (w === 0 && (w = h.sortingFn(d, g, m.id)), w !== 0)
|
|
@@ -5042,7 +5043,7 @@ function mg() {
|
|
|
5042
5043
|
*
|
|
5043
5044
|
* @license MIT
|
|
5044
5045
|
*/
|
|
5045
|
-
function
|
|
5046
|
+
function io() {
|
|
5046
5047
|
return !0;
|
|
5047
5048
|
}
|
|
5048
5049
|
const vg = Symbol("merge-proxy"), Sg = {
|
|
@@ -5052,8 +5053,8 @@ const vg = Symbol("merge-proxy"), Sg = {
|
|
|
5052
5053
|
has(e, t) {
|
|
5053
5054
|
return e.has(t);
|
|
5054
5055
|
},
|
|
5055
|
-
set:
|
|
5056
|
-
deleteProperty:
|
|
5056
|
+
set: io,
|
|
5057
|
+
deleteProperty: io,
|
|
5057
5058
|
getOwnPropertyDescriptor(e, t) {
|
|
5058
5059
|
return {
|
|
5059
5060
|
configurable: !0,
|
|
@@ -5061,15 +5062,15 @@ const vg = Symbol("merge-proxy"), Sg = {
|
|
|
5061
5062
|
get() {
|
|
5062
5063
|
return e.get(t);
|
|
5063
5064
|
},
|
|
5064
|
-
set:
|
|
5065
|
-
deleteProperty:
|
|
5065
|
+
set: io,
|
|
5066
|
+
deleteProperty: io
|
|
5066
5067
|
};
|
|
5067
5068
|
},
|
|
5068
5069
|
ownKeys(e) {
|
|
5069
5070
|
return e.keys();
|
|
5070
5071
|
}
|
|
5071
5072
|
};
|
|
5072
|
-
function
|
|
5073
|
+
function ur(e) {
|
|
5073
5074
|
return "value" in e ? e.value : e;
|
|
5074
5075
|
}
|
|
5075
5076
|
function xn() {
|
|
@@ -5078,18 +5079,18 @@ function xn() {
|
|
|
5078
5079
|
return new Proxy({
|
|
5079
5080
|
get(o) {
|
|
5080
5081
|
for (let r = t.length - 1; r >= 0; r--) {
|
|
5081
|
-
const i =
|
|
5082
|
+
const i = ur(t[r])[o];
|
|
5082
5083
|
if (i !== void 0) return i;
|
|
5083
5084
|
}
|
|
5084
5085
|
},
|
|
5085
5086
|
has(o) {
|
|
5086
5087
|
for (let r = t.length - 1; r >= 0; r--)
|
|
5087
|
-
if (o in
|
|
5088
|
+
if (o in ur(t[r])) return !0;
|
|
5088
5089
|
return !1;
|
|
5089
5090
|
},
|
|
5090
5091
|
keys() {
|
|
5091
5092
|
const o = [];
|
|
5092
|
-
for (let r = 0; r < t.length; r++) o.push(...Object.keys(
|
|
5093
|
+
for (let r = 0; r < t.length; r++) o.push(...Object.keys(ur(t[r])));
|
|
5093
5094
|
return [...Array.from(new Set(o))];
|
|
5094
5095
|
}
|
|
5095
5096
|
}, Sg);
|
|
@@ -5104,7 +5105,7 @@ function Wi(e) {
|
|
|
5104
5105
|
});
|
|
5105
5106
|
}
|
|
5106
5107
|
function yg(e) {
|
|
5107
|
-
const t =
|
|
5108
|
+
const t = ws(e.data), n = xn({
|
|
5108
5109
|
state: {},
|
|
5109
5110
|
// Dummy state
|
|
5110
5111
|
onStateChange: () => {
|
|
@@ -5130,7 +5131,7 @@ function yg(e) {
|
|
|
5130
5131
|
});
|
|
5131
5132
|
}
|
|
5132
5133
|
const r = N(o.initialState);
|
|
5133
|
-
return
|
|
5134
|
+
return fu(() => {
|
|
5134
5135
|
o.setOptions((i) => {
|
|
5135
5136
|
var s;
|
|
5136
5137
|
const l = new Proxy({}, {
|
|
@@ -5241,7 +5242,7 @@ const qi = (e, t) => Math.abs(e - t) < 1.01, _g = (e, t, n) => {
|
|
|
5241
5242
|
);
|
|
5242
5243
|
};
|
|
5243
5244
|
let Rn;
|
|
5244
|
-
const
|
|
5245
|
+
const cr = () => {
|
|
5245
5246
|
if (Rn !== void 0) return Rn;
|
|
5246
5247
|
if (typeof navigator > "u") return Rn = !1;
|
|
5247
5248
|
if (/iP(hone|od|ad)/.test(navigator.userAgent)) return Rn = !0;
|
|
@@ -5286,7 +5287,7 @@ const ur = () => {
|
|
|
5286
5287
|
return i.observe(n, { box: "border-box" }), () => {
|
|
5287
5288
|
i.unobserve(n);
|
|
5288
5289
|
};
|
|
5289
|
-
},
|
|
5290
|
+
}, wo = {
|
|
5290
5291
|
passive: !0
|
|
5291
5292
|
}, Eg = typeof window > "u" ? !0 : "onscrollend" in window, xg = (e, t, n) => {
|
|
5292
5293
|
const o = e.scrollElement;
|
|
@@ -5304,7 +5305,7 @@ const ur = () => {
|
|
|
5304
5305
|
), a = (g) => () => {
|
|
5305
5306
|
s = n(o), l == null || l(), t(s, g);
|
|
5306
5307
|
}, u = a(!0), d = a(!1);
|
|
5307
|
-
return o.addEventListener("scroll", u,
|
|
5308
|
+
return o.addEventListener("scroll", u, wo), i && o.addEventListener("scrollend", d, wo), () => {
|
|
5308
5309
|
o.removeEventListener("scroll", u), i && o.removeEventListener("scrollend", d), l == null || l.cancel();
|
|
5309
5310
|
};
|
|
5310
5311
|
}, kg = (e, t) => xg(e, t, (n) => {
|
|
@@ -5523,18 +5524,18 @@ class Ag {
|
|
|
5523
5524
|
const s = this.scrollElement, l = () => {
|
|
5524
5525
|
this._iosTouching = !0, this._iosJustTouchEnded = !1, this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
|
|
5525
5526
|
}, a = () => {
|
|
5526
|
-
this._iosTouching = !1, !(!
|
|
5527
|
+
this._iosTouching = !1, !(!cr() || this.targetWindow == null) && (this._iosJustTouchEnded = !0, this._iosTouchEndTimerId = this.targetWindow.setTimeout(() => {
|
|
5527
5528
|
this._iosJustTouchEnded = !1, this._iosTouchEndTimerId = null, this._flushIosDeferredIfReady();
|
|
5528
5529
|
}, 150));
|
|
5529
5530
|
};
|
|
5530
5531
|
s.addEventListener(
|
|
5531
5532
|
"touchstart",
|
|
5532
5533
|
l,
|
|
5533
|
-
|
|
5534
|
+
wo
|
|
5534
5535
|
), s.addEventListener(
|
|
5535
5536
|
"touchend",
|
|
5536
5537
|
a,
|
|
5537
|
-
|
|
5538
|
+
wo
|
|
5538
5539
|
), this.unsubs.push(() => {
|
|
5539
5540
|
s.removeEventListener("touchstart", l), s.removeEventListener("touchend", a), this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
|
|
5540
5541
|
});
|
|
@@ -5547,7 +5548,7 @@ class Ag {
|
|
|
5547
5548
|
const i = this.pendingScrollAnchor;
|
|
5548
5549
|
if (this.pendingScrollAnchor = null, i && this.scrollElement && this.options.enabled) {
|
|
5549
5550
|
const [s, l, a, u] = i;
|
|
5550
|
-
s !== null && !a && (
|
|
5551
|
+
s !== null && !a && (cr() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? u !== 0 && (this._iosDeferredAdjustment += u) : ((o = this.scrollState) == null ? void 0 : o.behavior) === "smooth" && !qi(
|
|
5551
5552
|
this.getScrollOffset() - u,
|
|
5552
5553
|
this.scrollState.lastTargetOffset
|
|
5553
5554
|
) || this._scrollToOffset(this.getScrollOffset(), {
|
|
@@ -5646,8 +5647,8 @@ class Ag {
|
|
|
5646
5647
|
_[P * 2] = E, _[P * 2 + 1] = G, E += G + u;
|
|
5647
5648
|
}
|
|
5648
5649
|
this._singleLaneMeasurements = { flat: _, items: C };
|
|
5649
|
-
const
|
|
5650
|
-
return this.measurementsCache =
|
|
5650
|
+
const M = wg(C, _);
|
|
5651
|
+
return this.measurementsCache = M, M;
|
|
5651
5652
|
}
|
|
5652
5653
|
const m = this.measurementsCache.slice(0, p), h = new Array(l).fill(
|
|
5653
5654
|
void 0
|
|
@@ -5659,25 +5660,25 @@ class Ag {
|
|
|
5659
5660
|
}
|
|
5660
5661
|
for (let w = p; w < n; w++) {
|
|
5661
5662
|
const _ = i(w), C = this.laneAssignments.get(w);
|
|
5662
|
-
let E,
|
|
5663
|
+
let E, M;
|
|
5663
5664
|
const P = a === "estimate" || v.has(_);
|
|
5664
5665
|
if (C !== void 0 && this.options.lanes > 1) {
|
|
5665
5666
|
E = C;
|
|
5666
5667
|
const z = h[E], U = z !== void 0 ? m[z] : void 0;
|
|
5667
|
-
|
|
5668
|
+
M = U ? U.end + u : o + r;
|
|
5668
5669
|
} else if (R === l) {
|
|
5669
5670
|
let z = 0, U = y[0], oe = h[0];
|
|
5670
5671
|
for (let F = 1; F < l; F++) {
|
|
5671
5672
|
const V = y[F];
|
|
5672
5673
|
(V < U || V === U && h[F] < oe) && (z = F, U = V, oe = h[F]);
|
|
5673
5674
|
}
|
|
5674
|
-
E = z,
|
|
5675
|
+
E = z, M = U + u, P && this.laneAssignments.set(w, E);
|
|
5675
5676
|
} else
|
|
5676
|
-
E = w % this.options.lanes,
|
|
5677
|
-
const H = v.get(_), Y = typeof H == "number" ? H : this.options.estimateSize(w), G =
|
|
5677
|
+
E = w % this.options.lanes, M = o + r, P && this.laneAssignments.set(w, E);
|
|
5678
|
+
const H = v.get(_), Y = typeof H == "number" ? H : this.options.estimateSize(w), G = M + Y;
|
|
5678
5679
|
m[w] = {
|
|
5679
5680
|
index: w,
|
|
5680
|
-
start:
|
|
5681
|
+
start: M,
|
|
5681
5682
|
size: Y,
|
|
5682
5683
|
end: G,
|
|
5683
5684
|
key: _,
|
|
@@ -5973,7 +5974,7 @@ class Ag {
|
|
|
5973
5974
|
// synchronous so the grown transforms commit in the same paint (#1227).
|
|
5974
5975
|
applyScrollAdjustment(t, n) {
|
|
5975
5976
|
if (t === 0) return !1;
|
|
5976
|
-
if (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", t),
|
|
5977
|
+
if (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", t), cr() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded))
|
|
5977
5978
|
return this._iosDeferredAdjustment += t, !1;
|
|
5978
5979
|
{
|
|
5979
5980
|
const o = this.getScrollOffset() + this.scrollAdjustments + t, r = this.scrollElement, i = r !== null && ("scrollHeight" in r || "document" in r) ? this.getMaxScrollOffset() : null;
|
|
@@ -6094,14 +6095,14 @@ function Og(e) {
|
|
|
6094
6095
|
...r,
|
|
6095
6096
|
onChange: (i, s) => {
|
|
6096
6097
|
var l;
|
|
6097
|
-
|
|
6098
|
+
wr(n), (l = r.onChange) == null || l.call(r, i, s);
|
|
6098
6099
|
}
|
|
6099
|
-
}), t._willUpdate(),
|
|
6100
|
+
}), t._willUpdate(), wr(n);
|
|
6100
6101
|
},
|
|
6101
6102
|
{
|
|
6102
6103
|
immediate: !0
|
|
6103
6104
|
}
|
|
6104
|
-
),
|
|
6105
|
+
), We(o), n;
|
|
6105
6106
|
}
|
|
6106
6107
|
function zg(e) {
|
|
6107
6108
|
return Og(
|
|
@@ -6289,20 +6290,20 @@ function Wg(e) {
|
|
|
6289
6290
|
var t = Kg(e, "string");
|
|
6290
6291
|
return typeof t == "symbol" ? t : t + "";
|
|
6291
6292
|
}
|
|
6292
|
-
function
|
|
6293
|
+
function $r(e) {
|
|
6293
6294
|
"@babel/helpers - typeof";
|
|
6294
|
-
return
|
|
6295
|
+
return $r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
6295
6296
|
return typeof t;
|
|
6296
6297
|
} : function(t) {
|
|
6297
6298
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
6298
|
-
},
|
|
6299
|
+
}, $r(e);
|
|
6299
6300
|
}
|
|
6300
6301
|
var Ug = "1.15.7";
|
|
6301
6302
|
function wt(e) {
|
|
6302
6303
|
if (typeof window < "u" && window.navigator)
|
|
6303
6304
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
6304
6305
|
}
|
|
6305
|
-
var Ct = wt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
6306
|
+
var Ct = wt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Wn = wt(/Edge/i), Qi = wt(/firefox/i), Dn = wt(/safari/i) && !wt(/chrome/i) && !wt(/android/i), Wr = wt(/iP(ad|od|hone)/i), ml = wt(/chrome/i) && wt(/android/i), vl = {
|
|
6306
6307
|
capture: !1,
|
|
6307
6308
|
passive: !1
|
|
6308
6309
|
};
|
|
@@ -6312,7 +6313,7 @@ function ne(e, t, n) {
|
|
|
6312
6313
|
function ee(e, t, n) {
|
|
6313
6314
|
e.removeEventListener(t, n, !Ct && vl);
|
|
6314
6315
|
}
|
|
6315
|
-
function
|
|
6316
|
+
function _o(e, t) {
|
|
6316
6317
|
if (t) {
|
|
6317
6318
|
if (t[0] === ">" && (t = t.substring(1)), e)
|
|
6318
6319
|
try {
|
|
@@ -6331,11 +6332,11 @@ function wo(e, t) {
|
|
|
6331
6332
|
function Sl(e) {
|
|
6332
6333
|
return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
|
|
6333
6334
|
}
|
|
6334
|
-
function
|
|
6335
|
+
function tt(e, t, n, o) {
|
|
6335
6336
|
if (e) {
|
|
6336
6337
|
n = n || document;
|
|
6337
6338
|
do {
|
|
6338
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
6339
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && _o(e, t) : _o(e, t)) || o && e === n)
|
|
6339
6340
|
return e;
|
|
6340
6341
|
if (e === n) break;
|
|
6341
6342
|
} while (e = Sl(e));
|
|
@@ -6422,7 +6423,7 @@ function es(e, t, n) {
|
|
|
6422
6423
|
}
|
|
6423
6424
|
function pn(e, t, n, o) {
|
|
6424
6425
|
for (var r = 0, i = 0, s = e.children; i < s.length; ) {
|
|
6425
|
-
if (s[i].style.display !== "none" && s[i] !== W.ghost && (o || s[i] !== W.dragged) &&
|
|
6426
|
+
if (s[i].style.display !== "none" && s[i] !== W.ghost && (o || s[i] !== W.dragged) && tt(s[i], n.draggable, e, !1)) {
|
|
6426
6427
|
if (r === t)
|
|
6427
6428
|
return s[i];
|
|
6428
6429
|
r++;
|
|
@@ -6432,7 +6433,7 @@ function pn(e, t, n, o) {
|
|
|
6432
6433
|
return null;
|
|
6433
6434
|
}
|
|
6434
6435
|
function Ur(e, t) {
|
|
6435
|
-
for (var n = e.lastElementChild; n && (n === W.ghost || K(n, "display") === "none" || t && !
|
|
6436
|
+
for (var n = e.lastElementChild; n && (n === W.ghost || K(n, "display") === "none" || t && !_o(n, t)); )
|
|
6436
6437
|
n = n.previousElementSibling;
|
|
6437
6438
|
return n || null;
|
|
6438
6439
|
}
|
|
@@ -6441,7 +6442,7 @@ function Ge(e, t) {
|
|
|
6441
6442
|
if (!e || !e.parentNode)
|
|
6442
6443
|
return -1;
|
|
6443
6444
|
for (; e = e.previousElementSibling; )
|
|
6444
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== W.clone && (!t ||
|
|
6445
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== W.clone && (!t || _o(e, t)) && n++;
|
|
6445
6446
|
return n;
|
|
6446
6447
|
}
|
|
6447
6448
|
function ts(e) {
|
|
@@ -6482,22 +6483,22 @@ function Xg(e, t) {
|
|
|
6482
6483
|
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
6483
6484
|
return e;
|
|
6484
6485
|
}
|
|
6485
|
-
function
|
|
6486
|
+
function dr(e, t) {
|
|
6486
6487
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
6487
6488
|
}
|
|
6488
|
-
var
|
|
6489
|
+
var On;
|
|
6489
6490
|
function bl(e, t) {
|
|
6490
6491
|
return function() {
|
|
6491
|
-
if (!
|
|
6492
|
+
if (!On) {
|
|
6492
6493
|
var n = arguments, o = this;
|
|
6493
|
-
n.length === 1 ? e.call(o, n[0]) : e.apply(o, n),
|
|
6494
|
-
|
|
6494
|
+
n.length === 1 ? e.call(o, n[0]) : e.apply(o, n), On = setTimeout(function() {
|
|
6495
|
+
On = void 0;
|
|
6495
6496
|
}, t);
|
|
6496
6497
|
}
|
|
6497
6498
|
};
|
|
6498
6499
|
}
|
|
6499
6500
|
function Yg() {
|
|
6500
|
-
clearTimeout(
|
|
6501
|
+
clearTimeout(On), On = void 0;
|
|
6501
6502
|
}
|
|
6502
6503
|
function wl(e, t, n) {
|
|
6503
6504
|
e.scrollLeft += t, e.scrollTop += n;
|
|
@@ -6510,7 +6511,7 @@ function Cl(e, t, n) {
|
|
|
6510
6511
|
var o = {};
|
|
6511
6512
|
return Array.from(e.children).forEach(function(r) {
|
|
6512
6513
|
var i, s, l, a;
|
|
6513
|
-
if (!(!
|
|
6514
|
+
if (!(!tt(r, t.draggable, e, !1) || r.animated || r === n)) {
|
|
6514
6515
|
var u = ye(r);
|
|
6515
6516
|
o.left = Math.min((i = o.left) !== null && i !== void 0 ? i : 1 / 0, u.left), o.top = Math.min((s = o.top) !== null && s !== void 0 ? s : 1 / 0, u.top), o.right = Math.max((l = o.right) !== null && l !== void 0 ? l : -1 / 0, u.right), o.bottom = Math.max((a = o.bottom) !== null && a !== void 0 ? a : -1 / 0, u.bottom);
|
|
6516
6517
|
}
|
|
@@ -6556,8 +6557,8 @@ function Jg() {
|
|
|
6556
6557
|
var i = !1, s = 0;
|
|
6557
6558
|
e.forEach(function(l) {
|
|
6558
6559
|
var a = 0, u = l.target, d = u.fromRect, g = ye(u), v = u.prevFromRect, p = u.prevToRect, m = l.rect, h = dn(u, !0);
|
|
6559
|
-
h && (g.top -= h.f, g.left -= h.e), u.toRect = g, u.thisAnimationDuration &&
|
|
6560
|
-
(m.top - g.top) / (m.left - g.left) === (d.top - g.top) / (d.left - g.left) && (a = Zg(m, v, p, r.options)),
|
|
6560
|
+
h && (g.top -= h.f, g.left -= h.e), u.toRect = g, u.thisAnimationDuration && dr(v, g) && !dr(d, g) && // Make sure animatingRect is on line between toRect & fromRect
|
|
6561
|
+
(m.top - g.top) / (m.left - g.left) === (d.top - g.top) / (d.left - g.left) && (a = Zg(m, v, p, r.options)), dr(g, d) || (u.prevFromRect = d, u.prevToRect = g, a || (a = r.options.animation), r.animate(u, m, g, a)), a && (i = !0, s = Math.max(s, a), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
6561
6562
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
6562
6563
|
}, a), u.thisAnimationDuration = a);
|
|
6563
6564
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -6581,12 +6582,12 @@ function Qg(e) {
|
|
|
6581
6582
|
function Zg(e, t, n, o) {
|
|
6582
6583
|
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;
|
|
6583
6584
|
}
|
|
6584
|
-
var on = [],
|
|
6585
|
+
var on = [], fr = {
|
|
6585
6586
|
initializeByDefault: !0
|
|
6586
|
-
},
|
|
6587
|
+
}, Un = {
|
|
6587
6588
|
mount: function(t) {
|
|
6588
|
-
for (var n in
|
|
6589
|
-
|
|
6589
|
+
for (var n in fr)
|
|
6590
|
+
fr.hasOwnProperty(n) && !(n in t) && (t[n] = fr[n]);
|
|
6590
6591
|
on.forEach(function(o) {
|
|
6591
6592
|
if (o.pluginName === t.pluginName)
|
|
6592
6593
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
@@ -6637,11 +6638,11 @@ function ep(e) {
|
|
|
6637
6638
|
var t = e.sortable, n = e.rootEl, o = e.name, r = e.targetEl, i = e.cloneEl, s = e.toEl, l = e.fromEl, a = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, g = e.newDraggableIndex, v = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
|
|
6638
6639
|
if (t = t || n && n[Me], !!t) {
|
|
6639
6640
|
var h, y = t.options, R = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
6640
|
-
window.CustomEvent && !Ct && !
|
|
6641
|
+
window.CustomEvent && !Ct && !Wn ? h = new CustomEvent(o, {
|
|
6641
6642
|
bubbles: !0,
|
|
6642
6643
|
cancelable: !0
|
|
6643
6644
|
}) : (h = document.createEvent("Event"), h.initEvent(o, !0, !0)), h.to = s || n, h.from = l || n, h.item = r || n, h.clone = i, h.oldIndex = a, h.newIndex = u, h.oldDraggableIndex = d, h.newDraggableIndex = g, h.originalEvent = v, h.pullMode = p ? p.lastPutMode : void 0;
|
|
6644
|
-
var w = ut(ut({}, m),
|
|
6645
|
+
var w = ut(ut({}, m), Un.getEventProperties(o, t));
|
|
6645
6646
|
for (var _ in w)
|
|
6646
6647
|
h[_] = w[_];
|
|
6647
6648
|
n && n.dispatchEvent(h), y[R] && y[R].call(t, h);
|
|
@@ -6649,13 +6650,13 @@ function ep(e) {
|
|
|
6649
6650
|
}
|
|
6650
6651
|
var tp = ["evt"], Te = function(t, n) {
|
|
6651
6652
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = Bg(o, tp);
|
|
6652
|
-
|
|
6653
|
+
Un.pluginEvent.bind(W)(t, n, ut({
|
|
6653
6654
|
dragEl: k,
|
|
6654
6655
|
parentEl: he,
|
|
6655
6656
|
ghostEl: q,
|
|
6656
6657
|
rootEl: fe,
|
|
6657
6658
|
nextEl: Bt,
|
|
6658
|
-
lastDownEl:
|
|
6659
|
+
lastDownEl: co,
|
|
6659
6660
|
cloneEl: ge,
|
|
6660
6661
|
cloneHidden: Mt,
|
|
6661
6662
|
dragStarted: kn,
|
|
@@ -6663,7 +6664,7 @@ var tp = ["evt"], Te = function(t, n) {
|
|
|
6663
6664
|
activeSortable: W.active,
|
|
6664
6665
|
originalEvent: r,
|
|
6665
6666
|
oldIndex: ln,
|
|
6666
|
-
oldDraggableIndex:
|
|
6667
|
+
oldDraggableIndex: zn,
|
|
6667
6668
|
newIndex: Ve,
|
|
6668
6669
|
newDraggableIndex: Tt,
|
|
6669
6670
|
hideGhostForTarget: xl,
|
|
@@ -6690,13 +6691,13 @@ function Ee(e) {
|
|
|
6690
6691
|
targetEl: k,
|
|
6691
6692
|
rootEl: fe,
|
|
6692
6693
|
oldIndex: ln,
|
|
6693
|
-
oldDraggableIndex:
|
|
6694
|
+
oldDraggableIndex: zn,
|
|
6694
6695
|
newIndex: Ve,
|
|
6695
6696
|
newDraggableIndex: Tt
|
|
6696
6697
|
}, e));
|
|
6697
6698
|
}
|
|
6698
|
-
var k, he, q, fe, Bt,
|
|
6699
|
-
if (
|
|
6699
|
+
var k, he, q, fe, Bt, co, ge, Mt, ln, Ve, zn, Tt, so, _e, sn = !1, Co = !1, Ro = [], Lt, Qe, gr, pr, ns, os, kn, rn, Vn, Nn = !1, lo = !1, fo, Ie, hr = [], Fr = !1, Io = [], No = typeof document < "u", ao = Wr, rs = Wn || Ct ? "cssFloat" : "float", np = No && !ml && !Wr && "draggable" in document.createElement("div"), Rl = (function() {
|
|
6700
|
+
if (No) {
|
|
6700
6701
|
if (Ct)
|
|
6701
6702
|
return !1;
|
|
6702
6703
|
var e = document.createElement("x");
|
|
@@ -6718,7 +6719,7 @@ var k, he, q, fe, Bt, uo, ge, Mt, ln, Ve, On, Tt, io, _e, sn = !1, _o = !1, Co =
|
|
|
6718
6719
|
return r === l || i === a || r + s / 2 === l + u / 2;
|
|
6719
6720
|
}, rp = function(t, n) {
|
|
6720
6721
|
var o;
|
|
6721
|
-
return
|
|
6722
|
+
return Ro.some(function(r) {
|
|
6722
6723
|
var i = r[Me].options.emptyInsertThreshold;
|
|
6723
6724
|
if (!(!i || Ur(r))) {
|
|
6724
6725
|
var s = ye(r), l = t >= s.left - i && t <= s.right + i, a = n >= s.top - i && n <= s.bottom + i;
|
|
@@ -6743,7 +6744,7 @@ var k, he, q, fe, Bt, uo, ge, Mt, ln, Ve, On, Tt, io, _e, sn = !1, _o = !1, Co =
|
|
|
6743
6744
|
};
|
|
6744
6745
|
}
|
|
6745
6746
|
var o = {}, r = t.group;
|
|
6746
|
-
(!r ||
|
|
6747
|
+
(!r || $r(r) != "object") && (r = {
|
|
6747
6748
|
name: r
|
|
6748
6749
|
}), o.name = r.name, o.checkPull = n(r.pull, !0), o.checkPut = n(r.put), o.revertClone = r.revertClone, t.group = o;
|
|
6749
6750
|
}, xl = function() {
|
|
@@ -6751,9 +6752,9 @@ var k, he, q, fe, Bt, uo, ge, Mt, ln, Ve, On, Tt, io, _e, sn = !1, _o = !1, Co =
|
|
|
6751
6752
|
}, kl = function() {
|
|
6752
6753
|
!Rl && q && K(q, "display", "");
|
|
6753
6754
|
};
|
|
6754
|
-
|
|
6755
|
-
if (
|
|
6756
|
-
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(),
|
|
6755
|
+
No && !ml && document.addEventListener("click", function(e) {
|
|
6756
|
+
if (Co)
|
|
6757
|
+
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Co = !1, !1;
|
|
6757
6758
|
}, !0);
|
|
6758
6759
|
var Ht = function(t) {
|
|
6759
6760
|
if (k) {
|
|
@@ -6816,16 +6817,16 @@ function W(e, t) {
|
|
|
6816
6817
|
y: 0
|
|
6817
6818
|
},
|
|
6818
6819
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
6819
|
-
supportPointer: W.supportPointer !== !1 && "PointerEvent" in window && (!
|
|
6820
|
+
supportPointer: W.supportPointer !== !1 && "PointerEvent" in window && (!Dn || Wr),
|
|
6820
6821
|
emptyInsertThreshold: 5
|
|
6821
6822
|
};
|
|
6822
|
-
|
|
6823
|
+
Un.initializePlugins(this, e, n);
|
|
6823
6824
|
for (var o in n)
|
|
6824
6825
|
!(o in t) && (t[o] = n[o]);
|
|
6825
6826
|
El(t);
|
|
6826
6827
|
for (var r in this)
|
|
6827
6828
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
6828
|
-
this.nativeDraggable = t.forceFallback ? !1 : np, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? ne(e, "pointerdown", this._onTapStart) : (ne(e, "mousedown", this._onTapStart), ne(e, "touchstart", this._onTapStart)), this.nativeDraggable && (ne(e, "dragover", this), ne(e, "dragenter", this)),
|
|
6829
|
+
this.nativeDraggable = t.forceFallback ? !1 : np, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? ne(e, "pointerdown", this._onTapStart) : (ne(e, "mousedown", this._onTapStart), ne(e, "touchstart", this._onTapStart)), this.nativeDraggable && (ne(e, "dragover", this), ne(e, "dragenter", this)), Ro.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), _t(this, Jg());
|
|
6829
6830
|
}
|
|
6830
6831
|
W.prototype = /** @lends Sortable.prototype */
|
|
6831
6832
|
{
|
|
@@ -6839,8 +6840,8 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
6839
6840
|
_onTapStart: function(t) {
|
|
6840
6841
|
if (t.cancelable) {
|
|
6841
6842
|
var n = this, o = this.el, r = this.options, i = r.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 = r.filter;
|
|
6842
|
-
if (gp(o), !k && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable &&
|
|
6843
|
-
if (ln = Ge(a),
|
|
6843
|
+
if (gp(o), !k && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Dn && a && a.tagName.toUpperCase() === "SELECT") && (a = tt(a, r.draggable, o, !1), !(a && a.animated) && co !== a)) {
|
|
6844
|
+
if (ln = Ge(a), zn = Ge(a, r.draggable), typeof d == "function") {
|
|
6844
6845
|
if (d.call(this, t, a, this)) {
|
|
6845
6846
|
Ee({
|
|
6846
6847
|
sortable: n,
|
|
@@ -6855,7 +6856,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
6855
6856
|
return;
|
|
6856
6857
|
}
|
|
6857
6858
|
} else if (d && (d = d.split(",").some(function(g) {
|
|
6858
|
-
if (g =
|
|
6859
|
+
if (g = tt(u, g.trim(), o, !1), g)
|
|
6859
6860
|
return Ee({
|
|
6860
6861
|
sortable: n,
|
|
6861
6862
|
rootEl: g,
|
|
@@ -6870,7 +6871,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
6870
6871
|
i && t.preventDefault();
|
|
6871
6872
|
return;
|
|
6872
6873
|
}
|
|
6873
|
-
r.handle && !
|
|
6874
|
+
r.handle && !tt(u, r.handle, o, !1) || this._prepareDragStart(t, l, a);
|
|
6874
6875
|
}
|
|
6875
6876
|
}
|
|
6876
6877
|
},
|
|
@@ -6878,7 +6879,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
6878
6879
|
var r = this, i = r.el, s = r.options, l = i.ownerDocument, a;
|
|
6879
6880
|
if (o && !k && o.parentNode === i) {
|
|
6880
6881
|
var u = ye(o);
|
|
6881
|
-
if (fe = i, k = o, he = k.parentNode, Bt = k.nextSibling,
|
|
6882
|
+
if (fe = i, k = o, he = k.parentNode, Bt = k.nextSibling, co = o, so = s.group, W.dragged = k, Lt = {
|
|
6882
6883
|
target: k,
|
|
6883
6884
|
clientX: (n || t).clientX,
|
|
6884
6885
|
clientY: (n || t).clientY
|
|
@@ -6895,10 +6896,10 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
6895
6896
|
originalEvent: t
|
|
6896
6897
|
}), ze(k, s.chosenClass, !0);
|
|
6897
6898
|
}, s.ignore.split(",").forEach(function(d) {
|
|
6898
|
-
yl(k, d.trim(),
|
|
6899
|
+
yl(k, d.trim(), mr);
|
|
6899
6900
|
}), ne(l, "dragover", Ht), ne(l, "mousemove", Ht), ne(l, "touchmove", Ht), s.supportPointer ? (ne(l, "pointerup", r._onDrop), !this.nativeDraggable && ne(l, "pointercancel", r._onDrop)) : (ne(l, "mouseup", r._onDrop), ne(l, "touchend", r._onDrop), ne(l, "touchcancel", r._onDrop)), Qi && this.nativeDraggable && (this.options.touchStartThreshold = 4, k.draggable = !0), Te("delayStart", this, {
|
|
6900
6901
|
evt: t
|
|
6901
|
-
}), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(
|
|
6902
|
+
}), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Wn || Ct))) {
|
|
6902
6903
|
if (W.eventCanceled) {
|
|
6903
6904
|
this._onDrop();
|
|
6904
6905
|
return;
|
|
@@ -6913,7 +6914,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
6913
6914
|
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
6914
6915
|
},
|
|
6915
6916
|
_disableDelayedDrag: function() {
|
|
6916
|
-
k &&
|
|
6917
|
+
k && mr(k), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
6917
6918
|
},
|
|
6918
6919
|
_disableDelayedDragEvents: function() {
|
|
6919
6920
|
var t = this.el.ownerDocument;
|
|
@@ -6922,7 +6923,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
6922
6923
|
_triggerDragStart: function(t, n) {
|
|
6923
6924
|
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? ne(document, "pointermove", this._onTouchMove) : n ? ne(document, "touchmove", this._onTouchMove) : ne(document, "mousemove", this._onTouchMove) : (ne(k, "dragend", this), ne(fe, "dragstart", this._onDragStart));
|
|
6924
6925
|
try {
|
|
6925
|
-
document.selection ?
|
|
6926
|
+
document.selection ? go(function() {
|
|
6926
6927
|
document.selection.empty();
|
|
6927
6928
|
}) : window.getSelection().removeAllRanges();
|
|
6928
6929
|
} catch {
|
|
@@ -6943,17 +6944,17 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
6943
6944
|
this._nulling();
|
|
6944
6945
|
},
|
|
6945
6946
|
_emulateDragOver: function() {
|
|
6946
|
-
if (
|
|
6947
|
-
this._lastX =
|
|
6948
|
-
for (var t = document.elementFromPoint(
|
|
6947
|
+
if (Qe) {
|
|
6948
|
+
this._lastX = Qe.clientX, this._lastY = Qe.clientY, xl();
|
|
6949
|
+
for (var t = document.elementFromPoint(Qe.clientX, Qe.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(Qe.clientX, Qe.clientY), t !== n); )
|
|
6949
6950
|
n = t;
|
|
6950
6951
|
if (k.parentNode[Me]._isOutsideThisEl(t), n)
|
|
6951
6952
|
do {
|
|
6952
6953
|
if (n[Me]) {
|
|
6953
6954
|
var o = void 0;
|
|
6954
6955
|
if (o = n[Me]._onDragOver({
|
|
6955
|
-
clientX:
|
|
6956
|
-
clientY:
|
|
6956
|
+
clientX: Qe.clientX,
|
|
6957
|
+
clientY: Qe.clientY,
|
|
6957
6958
|
target: t,
|
|
6958
6959
|
rootEl: n
|
|
6959
6960
|
}), o && !this.options.dragoverBubble)
|
|
@@ -6966,14 +6967,14 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
6966
6967
|
},
|
|
6967
6968
|
_onTouchMove: function(t) {
|
|
6968
6969
|
if (Lt) {
|
|
6969
|
-
var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = t.touches ? t.touches[0] : t, s = q && dn(q, !0), l = q && s && s.a, a = q && s && s.d, u =
|
|
6970
|
+
var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = t.touches ? t.touches[0] : t, s = q && dn(q, !0), l = q && s && s.a, a = q && s && s.d, u = ao && Ie && ts(Ie), d = (i.clientX - Lt.clientX + r.x) / (l || 1) + (u ? u[0] - hr[0] : 0) / (l || 1), g = (i.clientY - Lt.clientY + r.y) / (a || 1) + (u ? u[1] - hr[1] : 0) / (a || 1);
|
|
6970
6971
|
if (!W.active && !sn) {
|
|
6971
6972
|
if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
|
|
6972
6973
|
return;
|
|
6973
6974
|
this._onDragStart(t, !0);
|
|
6974
6975
|
}
|
|
6975
6976
|
if (q) {
|
|
6976
|
-
s ? (s.e += d - (
|
|
6977
|
+
s ? (s.e += d - (gr || 0), s.f += g - (pr || 0)) : s = {
|
|
6977
6978
|
a: 1,
|
|
6978
6979
|
b: 0,
|
|
6979
6980
|
c: 0,
|
|
@@ -6982,20 +6983,20 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
6982
6983
|
f: g
|
|
6983
6984
|
};
|
|
6984
6985
|
var v = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
6985
|
-
K(q, "webkitTransform", v), K(q, "mozTransform", v), K(q, "msTransform", v), K(q, "transform", v),
|
|
6986
|
+
K(q, "webkitTransform", v), K(q, "mozTransform", v), K(q, "msTransform", v), K(q, "transform", v), gr = d, pr = g, Qe = i;
|
|
6986
6987
|
}
|
|
6987
6988
|
t.cancelable && t.preventDefault();
|
|
6988
6989
|
}
|
|
6989
6990
|
},
|
|
6990
6991
|
_appendGhost: function() {
|
|
6991
6992
|
if (!q) {
|
|
6992
|
-
var t = this.options.fallbackOnBody ? document.body : fe, n = ye(k, !0,
|
|
6993
|
-
if (
|
|
6993
|
+
var t = this.options.fallbackOnBody ? document.body : fe, n = ye(k, !0, ao, !0, t), o = this.options;
|
|
6994
|
+
if (ao) {
|
|
6994
6995
|
for (Ie = t; K(Ie, "position") === "static" && K(Ie, "transform") === "none" && Ie !== document; )
|
|
6995
6996
|
Ie = Ie.parentNode;
|
|
6996
|
-
Ie !== document.body && Ie !== document.documentElement ? (Ie === document && (Ie = at()), n.top += Ie.scrollTop, n.left += Ie.scrollLeft) : Ie = at(),
|
|
6997
|
+
Ie !== document.body && Ie !== document.documentElement ? (Ie === document && (Ie = at()), n.top += Ie.scrollTop, n.left += Ie.scrollLeft) : Ie = at(), hr = ts(Ie);
|
|
6997
6998
|
}
|
|
6998
|
-
q = k.cloneNode(!0), ze(q, o.ghostClass, !1), ze(q, o.fallbackClass, !0), ze(q, o.dragClass, !0), K(q, "transition", ""), K(q, "transform", ""), K(q, "box-sizing", "border-box"), K(q, "margin", 0), K(q, "top", n.top), K(q, "left", n.left), K(q, "width", n.width), K(q, "height", n.height), K(q, "opacity", "0.8"), K(q, "position",
|
|
6999
|
+
q = k.cloneNode(!0), ze(q, o.ghostClass, !1), ze(q, o.fallbackClass, !0), ze(q, o.dragClass, !0), K(q, "transition", ""), K(q, "transform", ""), K(q, "box-sizing", "border-box"), K(q, "margin", 0), K(q, "top", n.top), K(q, "left", n.left), K(q, "width", n.width), K(q, "height", n.height), K(q, "opacity", "0.8"), K(q, "position", ao ? "absolute" : "fixed"), K(q, "zIndex", "100000"), K(q, "pointerEvents", "none"), W.ghost = q, t.appendChild(q), K(q, "transform-origin", ns / parseInt(q.style.width) * 100 + "% " + os / parseInt(q.style.height) * 100 + "%");
|
|
6999
7000
|
}
|
|
7000
7001
|
},
|
|
7001
7002
|
_onDragStart: function(t, n) {
|
|
@@ -7006,17 +7007,17 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7006
7007
|
this._onDrop();
|
|
7007
7008
|
return;
|
|
7008
7009
|
}
|
|
7009
|
-
Te("setupClone", this), W.eventCanceled || (ge = _l(k), ge.removeAttribute("id"), ge.draggable = !1, ge.style["will-change"] = "", this._hideClone(), ze(ge, this.options.chosenClass, !1), W.clone = ge), o.cloneId =
|
|
7010
|
+
Te("setupClone", this), W.eventCanceled || (ge = _l(k), ge.removeAttribute("id"), ge.draggable = !1, ge.style["will-change"] = "", this._hideClone(), ze(ge, this.options.chosenClass, !1), W.clone = ge), o.cloneId = go(function() {
|
|
7010
7011
|
Te("clone", o), !W.eventCanceled && (o.options.removeCloneOnHide || fe.insertBefore(ge, k), o._hideClone(), Ee({
|
|
7011
7012
|
sortable: o,
|
|
7012
7013
|
name: "clone"
|
|
7013
7014
|
}));
|
|
7014
|
-
}), !n && ze(k, i.dragClass, !0), n ? (
|
|
7015
|
+
}), !n && ze(k, i.dragClass, !0), n ? (Co = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (ee(document, "mouseup", o._onDrop), ee(document, "touchend", o._onDrop), ee(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, k)), ne(document, "drop", o), K(k, "transform", "translateZ(0)")), sn = !0, o._dragStartId = go(o._dragStarted.bind(o, n, t)), ne(document, "selectstart", o), kn = !0, window.getSelection().removeAllRanges(), Dn && K(document.body, "user-select", "none");
|
|
7015
7016
|
},
|
|
7016
7017
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
7017
7018
|
_onDragOver: function(t) {
|
|
7018
|
-
var n = this.el, o = t.target, r, i, s, l = this.options, a = l.group, u = W.active, d =
|
|
7019
|
-
if (
|
|
7019
|
+
var n = this.el, o = t.target, r, i, s, l = this.options, a = l.group, u = W.active, d = so === a, g = l.sort, v = _e || u, p, m = this, h = !1;
|
|
7020
|
+
if (Fr) return;
|
|
7020
7021
|
function y(ie, we) {
|
|
7021
7022
|
Te(ie, m, ut({
|
|
7022
7023
|
evt: t,
|
|
@@ -7030,7 +7031,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7030
7031
|
target: o,
|
|
7031
7032
|
completed: w,
|
|
7032
7033
|
onMove: function(Rt, Xt) {
|
|
7033
|
-
return
|
|
7034
|
+
return uo(fe, n, k, r, Rt, ye(Rt), t, Xt);
|
|
7034
7035
|
},
|
|
7035
7036
|
changed: _
|
|
7036
7037
|
}, we));
|
|
@@ -7055,10 +7056,10 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7055
7056
|
originalEvent: t
|
|
7056
7057
|
});
|
|
7057
7058
|
}
|
|
7058
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), o =
|
|
7059
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), o = tt(o, l.draggable, n, !0), y("dragOver"), W.eventCanceled) return h;
|
|
7059
7060
|
if (k.contains(t.target) || o.animated && o.animatingX && o.animatingY || m._ignoreWhileAnimating === o)
|
|
7060
7061
|
return w(!1);
|
|
7061
|
-
if (
|
|
7062
|
+
if (Co = !1, u && !l.disabled && (d ? g || (s = he !== fe) : _e === this || (this.lastPutMode = so.checkPull(this, u, k, t)) && a.checkPut(this, u, k, t))) {
|
|
7062
7063
|
if (p = this._getDirection(t, o) === "vertical", r = ye(k), y("dragOverValid"), W.eventCanceled) return h;
|
|
7063
7064
|
if (s)
|
|
7064
7065
|
return he = fe, R(), this._hideClone(), y("revert"), W.eventCanceled || (Bt ? fe.insertBefore(k, Bt) : fe.appendChild(k)), w(!0);
|
|
@@ -7066,33 +7067,33 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7066
7067
|
if (!C || up(t, p, this) && !C.animated) {
|
|
7067
7068
|
if (C === k)
|
|
7068
7069
|
return w(!1);
|
|
7069
|
-
if (C && n === t.target && (o = C), o && (i = ye(o)),
|
|
7070
|
+
if (C && n === t.target && (o = C), o && (i = ye(o)), uo(fe, n, k, r, o, i, t, !!o) !== !1)
|
|
7070
7071
|
return R(), C && C.nextSibling ? n.insertBefore(k, C.nextSibling) : n.appendChild(k), he = n, _(), w(!0);
|
|
7071
7072
|
} else if (C && ap(t, p, this)) {
|
|
7072
7073
|
var E = pn(n, 0, l, !0);
|
|
7073
7074
|
if (E === k)
|
|
7074
7075
|
return w(!1);
|
|
7075
|
-
if (o = E, i = ye(o),
|
|
7076
|
+
if (o = E, i = ye(o), uo(fe, n, k, r, o, i, t, !1) !== !1)
|
|
7076
7077
|
return R(), n.insertBefore(k, E), he = n, _(), w(!0);
|
|
7077
7078
|
} else if (o.parentNode === n) {
|
|
7078
7079
|
i = ye(o);
|
|
7079
|
-
var
|
|
7080
|
-
rn !== o && (P = i[G],
|
|
7080
|
+
var M = 0, P, H = k.parentNode !== n, Y = !op(k.animated && k.toRect || r, o.animated && o.toRect || i, p), G = p ? "top" : "left", z = es(o, "top", "top") || es(k, "top", "top"), U = z ? z.scrollTop : void 0;
|
|
7081
|
+
rn !== o && (P = i[G], Nn = !1, lo = !Y && l.invertSwap || H), M = cp(t, o, i, p, Y ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, lo, rn === o);
|
|
7081
7082
|
var oe;
|
|
7082
|
-
if (
|
|
7083
|
+
if (M !== 0) {
|
|
7083
7084
|
var F = Ge(k);
|
|
7084
7085
|
do
|
|
7085
|
-
F -=
|
|
7086
|
+
F -= M, oe = he.children[F];
|
|
7086
7087
|
while (oe && (K(oe, "display") === "none" || oe === q));
|
|
7087
7088
|
}
|
|
7088
|
-
if (
|
|
7089
|
+
if (M === 0 || oe === o)
|
|
7089
7090
|
return w(!1);
|
|
7090
|
-
rn = o,
|
|
7091
|
+
rn = o, Vn = M;
|
|
7091
7092
|
var V = o.nextElementSibling, D = !1;
|
|
7092
|
-
D =
|
|
7093
|
-
var re =
|
|
7093
|
+
D = M === 1;
|
|
7094
|
+
var re = uo(fe, n, k, r, o, i, t, D);
|
|
7094
7095
|
if (re !== !1)
|
|
7095
|
-
return (re === 1 || re === -1) && (D = re === 1),
|
|
7096
|
+
return (re === 1 || re === -1) && (D = re === 1), Fr = !0, setTimeout(lp, 30), R(), D && !V ? n.appendChild(k) : o.parentNode.insertBefore(k, D ? V : o), z && wl(z, 0, U - z.scrollTop), he = k.parentNode, P !== void 0 && !lo && (fo = Math.abs(P - ye(o)[G])), _(), w(!0);
|
|
7096
7097
|
}
|
|
7097
7098
|
if (n.contains(k))
|
|
7098
7099
|
return w(!1);
|
|
@@ -7115,7 +7116,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7115
7116
|
this._nulling();
|
|
7116
7117
|
return;
|
|
7117
7118
|
}
|
|
7118
|
-
sn = !1,
|
|
7119
|
+
sn = !1, lo = !1, Nn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ar(this.cloneId), Ar(this._dragStartId), this.nativeDraggable && (ee(document, "drop", this), ee(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Dn && K(document.body, "user-select", ""), K(k, "transform", ""), t && (kn && (t.cancelable && t.preventDefault(), !o.dropBubble && t.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (fe === he || _e && _e.lastPutMode !== "clone") && ge && ge.parentNode && ge.parentNode.removeChild(ge), k && (this.nativeDraggable && ee(k, "dragend", this), mr(k), k.style["will-change"] = "", kn && !sn && ze(k, _e ? _e.options.ghostClass : this.options.ghostClass, !1), ze(k, this.options.chosenClass, !1), Ee({
|
|
7119
7120
|
sortable: this,
|
|
7120
7121
|
name: "unchoose",
|
|
7121
7122
|
toEl: he,
|
|
@@ -7154,7 +7155,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7154
7155
|
name: "sort",
|
|
7155
7156
|
toEl: he,
|
|
7156
7157
|
originalEvent: t
|
|
7157
|
-
})), W.active && ((Ve == null || Ve === -1) && (Ve = ln, Tt =
|
|
7158
|
+
})), W.active && ((Ve == null || Ve === -1) && (Ve = ln, Tt = zn), Ee({
|
|
7158
7159
|
sortable: this,
|
|
7159
7160
|
name: "end",
|
|
7160
7161
|
toEl: he,
|
|
@@ -7162,11 +7163,11 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7162
7163
|
}), this.save()))), this._nulling();
|
|
7163
7164
|
},
|
|
7164
7165
|
_nulling: function() {
|
|
7165
|
-
Te("nulling", this), fe = k = he = q = Bt = ge =
|
|
7166
|
+
Te("nulling", this), fe = k = he = q = Bt = ge = co = Mt = Lt = Qe = kn = Ve = Tt = ln = zn = rn = Vn = _e = so = W.dragged = W.ghost = W.clone = W.active = null;
|
|
7166
7167
|
var t = this.el;
|
|
7167
|
-
|
|
7168
|
+
Io.forEach(function(n) {
|
|
7168
7169
|
t.contains(n) && (n.checked = !0);
|
|
7169
|
-
}),
|
|
7170
|
+
}), Io.length = gr = pr = 0;
|
|
7170
7171
|
},
|
|
7171
7172
|
handleEvent: function(t) {
|
|
7172
7173
|
switch (t.type) {
|
|
@@ -7189,7 +7190,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7189
7190
|
*/
|
|
7190
7191
|
toArray: function() {
|
|
7191
7192
|
for (var t = [], n, o = this.el.children, r = 0, i = o.length, s = this.options; r < i; r++)
|
|
7192
|
-
n = o[r],
|
|
7193
|
+
n = o[r], tt(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || fp(n));
|
|
7193
7194
|
return t;
|
|
7194
7195
|
},
|
|
7195
7196
|
/**
|
|
@@ -7200,7 +7201,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7200
7201
|
var o = {}, r = this.el;
|
|
7201
7202
|
this.toArray().forEach(function(i, s) {
|
|
7202
7203
|
var l = r.children[s];
|
|
7203
|
-
|
|
7204
|
+
tt(l, this.options.draggable, r, !1) && (o[i] = l);
|
|
7204
7205
|
}, this), n && this.captureAnimationState(), t.forEach(function(i) {
|
|
7205
7206
|
o[i] && (r.removeChild(o[i]), r.appendChild(o[i]));
|
|
7206
7207
|
}), n && this.animateAll();
|
|
@@ -7219,7 +7220,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7219
7220
|
* @returns {HTMLElement|null}
|
|
7220
7221
|
*/
|
|
7221
7222
|
closest: function(t, n) {
|
|
7222
|
-
return
|
|
7223
|
+
return tt(t, n || this.options.draggable, this.el, !1);
|
|
7223
7224
|
},
|
|
7224
7225
|
/**
|
|
7225
7226
|
* Set/get option
|
|
@@ -7231,7 +7232,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7231
7232
|
var o = this.options;
|
|
7232
7233
|
if (n === void 0)
|
|
7233
7234
|
return o[t];
|
|
7234
|
-
var r =
|
|
7235
|
+
var r = Un.modifyOption(this, t, n);
|
|
7235
7236
|
typeof r < "u" ? o[t] = r : o[t] = n, t === "group" && El(o);
|
|
7236
7237
|
},
|
|
7237
7238
|
/**
|
|
@@ -7242,7 +7243,7 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7242
7243
|
var t = this.el;
|
|
7243
7244
|
t[Me] = null, ee(t, "mousedown", this._onTapStart), ee(t, "touchstart", this._onTapStart), ee(t, "pointerdown", this._onTapStart), this.nativeDraggable && (ee(t, "dragover", this), ee(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
|
|
7244
7245
|
n.removeAttribute("draggable");
|
|
7245
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
7246
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Ro.splice(Ro.indexOf(this.el), 1), this.el = t = null;
|
|
7246
7247
|
},
|
|
7247
7248
|
_hideClone: function() {
|
|
7248
7249
|
if (!Mt) {
|
|
@@ -7264,18 +7265,18 @@ W.prototype = /** @lends Sortable.prototype */
|
|
|
7264
7265
|
function sp(e) {
|
|
7265
7266
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
7266
7267
|
}
|
|
7267
|
-
function
|
|
7268
|
+
function uo(e, t, n, o, r, i, s, l) {
|
|
7268
7269
|
var a, u = e[Me], d = u.options.onMove, g;
|
|
7269
|
-
return window.CustomEvent && !Ct && !
|
|
7270
|
+
return window.CustomEvent && !Ct && !Wn ? a = new CustomEvent("move", {
|
|
7270
7271
|
bubbles: !0,
|
|
7271
7272
|
cancelable: !0
|
|
7272
7273
|
}) : (a = document.createEvent("Event"), a.initEvent("move", !0, !0)), a.to = t, a.from = e, a.dragged = n, a.draggedRect = o, a.related = r || t, a.relatedRect = i || ye(t), a.willInsertAfter = l, a.originalEvent = s, e.dispatchEvent(a), d && (g = d.call(u, a, s)), g;
|
|
7273
7274
|
}
|
|
7274
|
-
function
|
|
7275
|
+
function mr(e) {
|
|
7275
7276
|
e.draggable = !1;
|
|
7276
7277
|
}
|
|
7277
7278
|
function lp() {
|
|
7278
|
-
|
|
7279
|
+
Fr = !1;
|
|
7279
7280
|
}
|
|
7280
7281
|
function ap(e, t, n) {
|
|
7281
7282
|
var o = ye(pn(n.el, 0, n.options, !0)), r = Cl(n.el, n.options, q), i = 10;
|
|
@@ -7288,11 +7289,11 @@ function up(e, t, n) {
|
|
|
7288
7289
|
function cp(e, t, n, o, r, i, s, l) {
|
|
7289
7290
|
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, v = !1;
|
|
7290
7291
|
if (!s) {
|
|
7291
|
-
if (l &&
|
|
7292
|
-
if (!
|
|
7292
|
+
if (l && fo < u * r) {
|
|
7293
|
+
if (!Nn && (Vn === 1 ? a > d + u * i / 2 : a < g - u * i / 2) && (Nn = !0), Nn)
|
|
7293
7294
|
v = !0;
|
|
7294
|
-
else if (
|
|
7295
|
-
return -
|
|
7295
|
+
else if (Vn === 1 ? a < d + fo : a > g - fo)
|
|
7296
|
+
return -Vn;
|
|
7296
7297
|
} else if (a > d + u * (1 - r) / 2 && a < g - u * (1 - r) / 2)
|
|
7297
7298
|
return dp(t);
|
|
7298
7299
|
}
|
|
@@ -7307,19 +7308,19 @@ function fp(e) {
|
|
|
7307
7308
|
return o.toString(36);
|
|
7308
7309
|
}
|
|
7309
7310
|
function gp(e) {
|
|
7310
|
-
|
|
7311
|
+
Io.length = 0;
|
|
7311
7312
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
7312
7313
|
var o = t[n];
|
|
7313
|
-
o.checked &&
|
|
7314
|
+
o.checked && Io.push(o);
|
|
7314
7315
|
}
|
|
7315
7316
|
}
|
|
7316
|
-
function
|
|
7317
|
+
function go(e) {
|
|
7317
7318
|
return setTimeout(e, 0);
|
|
7318
7319
|
}
|
|
7319
|
-
function
|
|
7320
|
+
function Ar(e) {
|
|
7320
7321
|
return clearTimeout(e);
|
|
7321
7322
|
}
|
|
7322
|
-
|
|
7323
|
+
No && ne(document, "touchmove", function(e) {
|
|
7323
7324
|
(W.active || sn) && e.cancelable && e.preventDefault();
|
|
7324
7325
|
});
|
|
7325
7326
|
W.utils = {
|
|
@@ -7328,16 +7329,16 @@ W.utils = {
|
|
|
7328
7329
|
css: K,
|
|
7329
7330
|
find: yl,
|
|
7330
7331
|
is: function(t, n) {
|
|
7331
|
-
return !!
|
|
7332
|
+
return !!tt(t, n, t, !1);
|
|
7332
7333
|
},
|
|
7333
7334
|
extend: Xg,
|
|
7334
7335
|
throttle: bl,
|
|
7335
|
-
closest:
|
|
7336
|
+
closest: tt,
|
|
7336
7337
|
toggleClass: ze,
|
|
7337
7338
|
clone: _l,
|
|
7338
7339
|
index: Ge,
|
|
7339
|
-
nextTick:
|
|
7340
|
-
cancelNextTick:
|
|
7340
|
+
nextTick: go,
|
|
7341
|
+
cancelNextTick: Ar,
|
|
7341
7342
|
detectDirection: Il,
|
|
7342
7343
|
getChild: pn,
|
|
7343
7344
|
expando: Me
|
|
@@ -7351,14 +7352,14 @@ W.mount = function() {
|
|
|
7351
7352
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
|
|
7352
7353
|
if (!o.prototype || !o.prototype.constructor)
|
|
7353
7354
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
7354
|
-
o.utils && (W.utils = ut(ut({}, W.utils), o.utils)),
|
|
7355
|
+
o.utils && (W.utils = ut(ut({}, W.utils), o.utils)), Un.mount(o);
|
|
7355
7356
|
});
|
|
7356
7357
|
};
|
|
7357
7358
|
W.create = function(e, t) {
|
|
7358
7359
|
return new W(e, t);
|
|
7359
7360
|
};
|
|
7360
7361
|
W.version = Ug;
|
|
7361
|
-
var Se = [], Tn,
|
|
7362
|
+
var Se = [], Tn, Pr, Dr = !1, vr, Sr, Eo, Mn;
|
|
7362
7363
|
function pp() {
|
|
7363
7364
|
function e() {
|
|
7364
7365
|
this.defaults = {
|
|
@@ -7381,29 +7382,29 @@ function pp() {
|
|
|
7381
7382
|
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
7382
7383
|
},
|
|
7383
7384
|
drop: function() {
|
|
7384
|
-
this.sortable.nativeDraggable ? ee(document, "dragover", this._handleAutoScroll) : (ee(document, "pointermove", this._handleFallbackAutoScroll), ee(document, "touchmove", this._handleFallbackAutoScroll), ee(document, "mousemove", this._handleFallbackAutoScroll)), is(),
|
|
7385
|
+
this.sortable.nativeDraggable ? ee(document, "dragover", this._handleAutoScroll) : (ee(document, "pointermove", this._handleFallbackAutoScroll), ee(document, "touchmove", this._handleFallbackAutoScroll), ee(document, "mousemove", this._handleFallbackAutoScroll)), is(), po(), Yg();
|
|
7385
7386
|
},
|
|
7386
7387
|
nulling: function() {
|
|
7387
|
-
|
|
7388
|
+
Eo = Pr = Tn = Dr = Mn = vr = Sr = null, Se.length = 0;
|
|
7388
7389
|
},
|
|
7389
7390
|
_handleFallbackAutoScroll: function(n) {
|
|
7390
7391
|
this._handleAutoScroll(n, !0);
|
|
7391
7392
|
},
|
|
7392
7393
|
_handleAutoScroll: function(n, o) {
|
|
7393
7394
|
var r = this, i = (n.touches ? n.touches[0] : n).clientX, s = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(i, s);
|
|
7394
|
-
if (
|
|
7395
|
-
|
|
7395
|
+
if (Eo = n, o || this.options.forceAutoScrollFallback || Wn || Ct || Dn) {
|
|
7396
|
+
yr(n, this.options, l, o);
|
|
7396
7397
|
var a = Ft(l, !0);
|
|
7397
|
-
|
|
7398
|
+
Dr && (!Mn || i !== vr || s !== Sr) && (Mn && is(), Mn = setInterval(function() {
|
|
7398
7399
|
var u = Ft(document.elementFromPoint(i, s), !0);
|
|
7399
|
-
u !== a && (a = u,
|
|
7400
|
-
}, 10),
|
|
7400
|
+
u !== a && (a = u, po()), yr(n, r.options, u, o);
|
|
7401
|
+
}, 10), vr = i, Sr = s);
|
|
7401
7402
|
} else {
|
|
7402
7403
|
if (!this.options.bubbleScroll || Ft(l, !0) === at()) {
|
|
7403
|
-
|
|
7404
|
+
po();
|
|
7404
7405
|
return;
|
|
7405
7406
|
}
|
|
7406
|
-
|
|
7407
|
+
yr(n, this.options, Ft(l, !1), !1);
|
|
7407
7408
|
}
|
|
7408
7409
|
}
|
|
7409
7410
|
}, _t(e, {
|
|
@@ -7411,7 +7412,7 @@ function pp() {
|
|
|
7411
7412
|
initializeByDefault: !0
|
|
7412
7413
|
});
|
|
7413
7414
|
}
|
|
7414
|
-
function
|
|
7415
|
+
function po() {
|
|
7415
7416
|
Se.forEach(function(e) {
|
|
7416
7417
|
clearInterval(e.pid);
|
|
7417
7418
|
}), Se = [];
|
|
@@ -7419,27 +7420,27 @@ function go() {
|
|
|
7419
7420
|
function is() {
|
|
7420
7421
|
clearInterval(Mn);
|
|
7421
7422
|
}
|
|
7422
|
-
var
|
|
7423
|
+
var yr = bl(function(e, t, n, o) {
|
|
7423
7424
|
if (t.scroll) {
|
|
7424
7425
|
var r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, l = t.scrollSpeed, a = at(), u = !1, d;
|
|
7425
|
-
|
|
7426
|
+
Pr !== n && (Pr = n, po(), Tn = t.scroll, d = t.scrollFn, Tn === !0 && (Tn = Ft(n, !0)));
|
|
7426
7427
|
var g = 0, v = Tn;
|
|
7427
7428
|
do {
|
|
7428
|
-
var p = v, m = ye(p), h = m.top, y = m.bottom, R = m.left, w = m.right, _ = m.width, C = m.height, E = void 0,
|
|
7429
|
-
p === a ? (E = _ < P && (Y.overflowX === "auto" || Y.overflowX === "scroll" || Y.overflowX === "visible"),
|
|
7430
|
-
var U = E && (Math.abs(w - r) <= s && G + _ < P) - (Math.abs(R - r) <= s && !!G), oe =
|
|
7429
|
+
var p = v, m = ye(p), h = m.top, y = m.bottom, R = m.left, w = m.right, _ = m.width, C = m.height, E = void 0, M = void 0, P = p.scrollWidth, H = p.scrollHeight, Y = K(p), G = p.scrollLeft, z = p.scrollTop;
|
|
7430
|
+
p === a ? (E = _ < P && (Y.overflowX === "auto" || Y.overflowX === "scroll" || Y.overflowX === "visible"), M = C < H && (Y.overflowY === "auto" || Y.overflowY === "scroll" || Y.overflowY === "visible")) : (E = _ < P && (Y.overflowX === "auto" || Y.overflowX === "scroll"), M = C < H && (Y.overflowY === "auto" || Y.overflowY === "scroll"));
|
|
7431
|
+
var U = E && (Math.abs(w - r) <= s && G + _ < P) - (Math.abs(R - r) <= s && !!G), oe = M && (Math.abs(y - i) <= s && z + C < H) - (Math.abs(h - i) <= s && !!z);
|
|
7431
7432
|
if (!Se[g])
|
|
7432
7433
|
for (var F = 0; F <= g; F++)
|
|
7433
7434
|
Se[F] || (Se[F] = {});
|
|
7434
7435
|
(Se[g].vx != U || Se[g].vy != oe || Se[g].el !== p) && (Se[g].el = p, Se[g].vx = U, Se[g].vy = oe, clearInterval(Se[g].pid), (U != 0 || oe != 0) && (u = !0, Se[g].pid = setInterval((function() {
|
|
7435
|
-
o && this.layer === 0 && W.active._onTouchMove(
|
|
7436
|
+
o && this.layer === 0 && W.active._onTouchMove(Eo);
|
|
7436
7437
|
var V = Se[this.layer].vy ? Se[this.layer].vy * l : 0, D = Se[this.layer].vx ? Se[this.layer].vx * l : 0;
|
|
7437
|
-
typeof d == "function" && d.call(W.dragged.parentNode[Me], D, V, e,
|
|
7438
|
+
typeof d == "function" && d.call(W.dragged.parentNode[Me], D, V, e, Eo, Se[this.layer].el) !== "continue" || wl(Se[this.layer].el, D, V);
|
|
7438
7439
|
}).bind({
|
|
7439
7440
|
layer: g
|
|
7440
7441
|
}), 24))), g++;
|
|
7441
7442
|
} while (t.bubbleScroll && v !== a && (v = Ft(v, !1)));
|
|
7442
|
-
|
|
7443
|
+
Dr = u;
|
|
7443
7444
|
}
|
|
7444
7445
|
}, 30), Tl = function(t) {
|
|
7445
7446
|
var n = t.originalEvent, o = t.putSortable, r = t.dragEl, i = t.activeSortable, s = t.dispatchSortableEvent, l = t.hideGhostForTarget, a = t.unhideGhostForTarget;
|
|
@@ -7504,7 +7505,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7504
7505
|
() => t.table.getState().columnOrder,
|
|
7505
7506
|
() => u(),
|
|
7506
7507
|
{ deep: !0, immediate: !0 }
|
|
7507
|
-
), le(o, () => g()),
|
|
7508
|
+
), le(o, () => g()), Gn(() => document.addEventListener("pointerdown", v)), qe(() => {
|
|
7508
7509
|
document.removeEventListener("pointerdown", v), s == null || s.destroy();
|
|
7509
7510
|
});
|
|
7510
7511
|
function u() {
|
|
@@ -7570,7 +7571,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7570
7571
|
class: "endge-tanstack-table-column-manager__check",
|
|
7571
7572
|
"data-checked": y.getIsVisible() ? "" : void 0
|
|
7572
7573
|
}, [
|
|
7573
|
-
y.getIsVisible() ? ($(),
|
|
7574
|
+
y.getIsVisible() ? ($(), Ue(Z(cf), {
|
|
7574
7575
|
key: 0,
|
|
7575
7576
|
size: 12
|
|
7576
7577
|
})) : ce("", !0)
|
|
@@ -7654,13 +7655,13 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7654
7655
|
preserveScrollAnchor: { type: Boolean, default: !1 }
|
|
7655
7656
|
},
|
|
7656
7657
|
setup(e) {
|
|
7657
|
-
const t = e, n = x(() => Array.isArray(t.columns) ? t.columns : []), o = x(() => Array.isArray(t.defaultSort) ? t.defaultSort : []), r = x(() => Array.isArray(t.defaultPin) ? t.defaultPin : []), i = x(() => Array.isArray(t.defaultHidden) ? t.defaultHidden : []), s = x(() => Array.isArray(t.pageSizes) ? t.pageSizes : [25, 50, 100]), l = x(() => Array.isArray(t.eventBindings) ? t.eventBindings : []), a =
|
|
7658
|
+
const t = e, n = x(() => Array.isArray(t.columns) ? t.columns : []), o = x(() => Array.isArray(t.defaultSort) ? t.defaultSort : []), r = x(() => Array.isArray(t.defaultPin) ? t.defaultPin : []), i = x(() => Array.isArray(t.defaultHidden) ? t.defaultHidden : []), s = x(() => Array.isArray(t.pageSizes) ? t.pageSizes : [25, 50, 100]), l = x(() => Array.isArray(t.eventBindings) ? t.eventBindings : []), a = Hn(Xs, null), u = Hn(hl, null), d = x(() => (u == null ? void 0 : u.showSearch.value) === !0), g = x(() => (u == null ? void 0 : u.filterRuntime.value) ?? null), v = x(() => (u == null ? void 0 : u.showFilters.value) === !0 && g.value != null), p = x(() => d.value || v.value), m = x(() => (u == null ? void 0 : u.filtersVisible.value) === !0), h = N(null), y = N(null);
|
|
7658
7659
|
let R = null, w = "mount", _ = "", C = null, E = !1;
|
|
7659
|
-
const
|
|
7660
|
+
const M = bt(Uo(t.source)), P = N(0);
|
|
7660
7661
|
let H = null;
|
|
7661
|
-
const Y = x(() => t.tableId ? `table:${t.tableId}` : null), G = N(Wl()), z = N(Ul()), U = N(
|
|
7662
|
+
const Y = x(() => t.tableId ? `table:${t.tableId}` : null), G = N(Wl()), z = N(Ul()), U = N(Bo("order", n.value.map((c) => c.key))), oe = N(Qr()), F = N(Zr("size", {})), V = N(Hl()), D = bt(/* @__PURE__ */ new Set()), re = N(null), ie = bt(null), we = x(() => t.selectionMode !== "none"), He = x(() => t.selectionTrigger === "auto" ? "control" : t.selectionTrigger), Rt = x(() => we.value && (He.value === "control" || He.value === "both")), Xt = x(() => we.value && (He.value === "row" || He.value === "both")), ct = x(() => Rt.value ? [jt, ...U.value.filter((c) => c !== jt)] : U.value.filter((c) => c !== jt));
|
|
7662
7663
|
let Fe = null;
|
|
7663
|
-
const
|
|
7664
|
+
const qn = x(() => [
|
|
7664
7665
|
...Rt.value ? [{
|
|
7665
7666
|
id: jt,
|
|
7666
7667
|
header: "",
|
|
@@ -7676,7 +7677,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7676
7677
|
var f;
|
|
7677
7678
|
return {
|
|
7678
7679
|
id: c.key,
|
|
7679
|
-
accessorFn: (S) =>
|
|
7680
|
+
accessorFn: (S) => et(c.key, S),
|
|
7680
7681
|
header: c.title,
|
|
7681
7682
|
size: c.width ?? 150,
|
|
7682
7683
|
minSize: c.minWidth,
|
|
@@ -7694,12 +7695,12 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7694
7695
|
})
|
|
7695
7696
|
]), ae = yg({
|
|
7696
7697
|
get data() {
|
|
7697
|
-
return
|
|
7698
|
+
return M.value;
|
|
7698
7699
|
},
|
|
7699
7700
|
get columns() {
|
|
7700
|
-
return
|
|
7701
|
+
return qn.value;
|
|
7701
7702
|
},
|
|
7702
|
-
getRowId: (c, f) => wa(
|
|
7703
|
+
getRowId: (c, f) => wa(et(t.rowKey, c), f),
|
|
7703
7704
|
getCoreRowModel: gg(),
|
|
7704
7705
|
getSortedRowModel: mg(),
|
|
7705
7706
|
getPaginationRowModel: hg(),
|
|
@@ -7732,17 +7733,17 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7732
7733
|
onColumnOrderChange: (c) => Bl(c),
|
|
7733
7734
|
onColumnVisibilityChange: (c) => Gl(c),
|
|
7734
7735
|
onColumnSizingChange: (c) => Kl(c),
|
|
7735
|
-
onPaginationChange:
|
|
7736
|
-
}),
|
|
7737
|
-
function
|
|
7736
|
+
onPaginationChange: Qn
|
|
7737
|
+
}), Lo = x(() => (ct.value, oe.value, z.value, ae.getFlatHeaders())), Xn = /* @__PURE__ */ new WeakMap();
|
|
7738
|
+
function Ho(c) {
|
|
7738
7739
|
ct.value, oe.value, z.value;
|
|
7739
|
-
let f =
|
|
7740
|
-
return f || (f = /* @__PURE__ */ new Map(),
|
|
7740
|
+
let f = Xn.get(c);
|
|
7741
|
+
return f || (f = /* @__PURE__ */ new Map(), Xn.set(c, f)), c.getVisibleCells().map((S) => {
|
|
7741
7742
|
const b = f.get(S.column.id);
|
|
7742
7743
|
return (b == null ? void 0 : b.column) === S.column ? b : (f.set(S.column.id, S), S);
|
|
7743
7744
|
});
|
|
7744
7745
|
}
|
|
7745
|
-
const A = x(() => t.paging === "virtual" ? ae.getPrePaginationRowModel().rows : ae.getRowModel().rows), L = x(() => A.value.map((c) => c.id)), se = x(() => L.value.length > 0 && L.value.every((c) => D.value.has(c))), dt = x(() => !se.value && L.value.some((c) => D.value.has(c))),
|
|
7746
|
+
const A = x(() => t.paging === "virtual" ? ae.getPrePaginationRowModel().rows : ae.getRowModel().rows), L = x(() => A.value.map((c) => c.id)), se = x(() => L.value.length > 0 && L.value.every((c) => D.value.has(c))), dt = x(() => !se.value && L.value.some((c) => D.value.has(c))), Xe = x(() => ae.getPrePaginationRowModel().rows.length), it = x(() => Math.max(1, ae.getPageCount())), ft = x(() => Math.min(V.value.pageIndex + 1, it.value)), ve = x(() => [.../* @__PURE__ */ new Set([...s.value, V.value.pageSize])].filter((c) => Number.isFinite(c) && c > 0).sort((c, f) => c - f)), It = x(() => t.paging === "pages" ? V.value.pageIndex * V.value.pageSize : 0), Et = zg(x(() => ({
|
|
7746
7747
|
count: A.value.length,
|
|
7747
7748
|
estimateSize: () => t.rowSize,
|
|
7748
7749
|
getItemKey: (c) => {
|
|
@@ -7752,7 +7753,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7752
7753
|
getScrollElement: () => h.value,
|
|
7753
7754
|
initialRect: { width: 0, height: Math.max(360, t.rowSize * 10) },
|
|
7754
7755
|
overscan: 10
|
|
7755
|
-
}))), Ae = x(() => Et.value.getVirtualItems()),
|
|
7756
|
+
}))), Ae = x(() => Et.value.getVirtualItems()), Ye = x(() => {
|
|
7756
7757
|
const c = t.paging === "pages" ? A.value.map((b, I) => ({
|
|
7757
7758
|
index: I,
|
|
7758
7759
|
key: b.id,
|
|
@@ -7768,7 +7769,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7768
7769
|
n.value.length,
|
|
7769
7770
|
t.styleContract,
|
|
7770
7771
|
It.value + c[0].index,
|
|
7771
|
-
|
|
7772
|
+
Xe.value
|
|
7772
7773
|
);
|
|
7773
7774
|
return f.map((b, I) => ({
|
|
7774
7775
|
virtualItem: c[I],
|
|
@@ -7784,8 +7785,8 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7784
7785
|
u && (u.filtersVisible.value = !u.filtersVisible.value);
|
|
7785
7786
|
}
|
|
7786
7787
|
const hn = x(() => new Map(
|
|
7787
|
-
|
|
7788
|
-
)),
|
|
7788
|
+
Ye.value.map((c) => [c.row.id, c])
|
|
7789
|
+
)), Yn = x(() => A.value.length === 0 ? 96 : t.paging === "pages" ? A.value.length * t.rowSize : Et.value.getTotalSize()), Jn = x(() => Math.max(1, ae.getVisibleLeafColumns().length)), mn = x(() => (F.value, oe.value, `${ae.getTotalSize()}px`)), je = {
|
|
7789
7790
|
scrollToRow: gt,
|
|
7790
7791
|
setColumnVisibility: async (c, f) => {
|
|
7791
7792
|
var S;
|
|
@@ -7813,7 +7814,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7813
7814
|
() => [t.source, t.renderVersion, t.rowsRevision],
|
|
7814
7815
|
async ([c]) => {
|
|
7815
7816
|
const f = Ot();
|
|
7816
|
-
|
|
7817
|
+
M.value = Uo(c), await At(), Ll(), h.value && (t.paging === "pages" || !t.preserveScrollAnchor) && (h.value.scrollTop = 0), ga(), li(), zt(f), Ce("data");
|
|
7817
7818
|
}
|
|
7818
7819
|
), le(
|
|
7819
7820
|
() => n.value.map((c) => c.key).join("|"),
|
|
@@ -7828,15 +7829,15 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7828
7829
|
), le(
|
|
7829
7830
|
() => [t.selectionMode, t.selectionTrigger, t.cellSelectionMode],
|
|
7830
7831
|
([c, , f]) => {
|
|
7831
|
-
c === "none" ? (D.value = /* @__PURE__ */ new Set(), re.value = null) : c === "single" && D.value.size > 1 && (D.value = new Set([...D.value].slice(0, 1))), f === "none" &&
|
|
7832
|
+
c === "none" ? (D.value = /* @__PURE__ */ new Set(), re.value = null) : c === "single" && D.value.size > 1 && (D.value = new Set([...D.value].slice(0, 1))), f === "none" && Zn(null);
|
|
7832
7833
|
}
|
|
7833
|
-
), le(() => L.value.join("\0"), () => Ce("data"), { flush: "post" }), le(() => [
|
|
7834
|
+
), le(() => L.value.join("\0"), () => Ce("data"), { flush: "post" }), le(() => [M.value, n.value], ([c, f]) => {
|
|
7834
7835
|
rc(t.menuContext, c, t.rowKey, f);
|
|
7835
|
-
}, { flush: "sync" }),
|
|
7836
|
+
}, { flush: "sync" }), qe(() => {
|
|
7836
7837
|
var c, f;
|
|
7837
7838
|
E = !0, C == null || C.disconnect(), R != null && cancelAnimationFrame(R), (f = (c = t.menuContext) == null ? void 0 : c.host) == null || f.releaseComputationResources(t.menuContext.consumerScope), Fe && clearTimeout(Fe), De == null || De(), cn(t.boundaryId), H == null || H(), H = null;
|
|
7838
|
-
}),
|
|
7839
|
-
typeof ResizeObserver < "u" && (C = new ResizeObserver(() => Ce("resize")), h.value && C.observe(h.value), y.value && C.observe(y.value)), Ce("mount"), H =
|
|
7839
|
+
}), Gn(() => {
|
|
7840
|
+
typeof ResizeObserver < "u" && (C = new ResizeObserver(() => Ce("resize")), h.value && C.observe(h.value), y.value && C.observe(y.value)), Ce("mount"), H = T.i18n.subscribe(() => {
|
|
7840
7841
|
P.value += 1;
|
|
7841
7842
|
});
|
|
7842
7843
|
});
|
|
@@ -7871,7 +7872,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7871
7872
|
rowsRevision: t.rowsRevision,
|
|
7872
7873
|
firstVisible: f ? S(f.first) : null,
|
|
7873
7874
|
lastVisible: f ? S(f.last) : null,
|
|
7874
|
-
rowCount:
|
|
7875
|
+
rowCount: Xe.value,
|
|
7875
7876
|
reason: w
|
|
7876
7877
|
}, I = JSON.stringify([
|
|
7877
7878
|
b.rowsRevision,
|
|
@@ -7879,7 +7880,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7879
7880
|
b.lastVisible,
|
|
7880
7881
|
b.rowCount
|
|
7881
7882
|
]);
|
|
7882
|
-
(b.reason !== "scroll" || I !== _) && (_ = I,
|
|
7883
|
+
(b.reason !== "scroll" || I !== _) && (_ = I, Je("viewportChanged", b));
|
|
7883
7884
|
})));
|
|
7884
7885
|
}
|
|
7885
7886
|
function Ot() {
|
|
@@ -7903,7 +7904,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7903
7904
|
const b = ae.getPrePaginationRowModel().rows.findIndex((yn) => yn.id === c);
|
|
7904
7905
|
if (b < 0)
|
|
7905
7906
|
throw new Error(`Table row is not loaded: ${c}`);
|
|
7906
|
-
t.paging === "pages" && (
|
|
7907
|
+
t.paging === "pages" && (Qn({
|
|
7907
7908
|
...V.value,
|
|
7908
7909
|
pageIndex: Math.floor(b / V.value.pageSize)
|
|
7909
7910
|
}), await At());
|
|
@@ -7917,8 +7918,8 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7917
7918
|
I.scrollTop = Math.max(0, xt), Ce("position");
|
|
7918
7919
|
}
|
|
7919
7920
|
function ue(c, f, S) {
|
|
7920
|
-
return P.value,
|
|
7921
|
-
defaultValue: Hg(c,
|
|
7921
|
+
return P.value, T.i18n.t(c, {
|
|
7922
|
+
defaultValue: Hg(c, T.i18n.locale, f, S),
|
|
7922
7923
|
params: S
|
|
7923
7924
|
});
|
|
7924
7925
|
}
|
|
@@ -7931,12 +7932,12 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7931
7932
|
f.id
|
|
7932
7933
|
);
|
|
7933
7934
|
}
|
|
7934
|
-
function
|
|
7935
|
-
const f = V.value, S = Jt(c, V.value), b = gi(S.pageSize, t.pageSize), I = Math.max(0, Math.ceil(
|
|
7935
|
+
function Qn(c) {
|
|
7936
|
+
const f = V.value, S = Jt(c, V.value), b = gi(S.pageSize, t.pageSize), I = Math.max(0, Math.ceil(Xe.value / b) - 1);
|
|
7936
7937
|
V.value = {
|
|
7937
7938
|
pageIndex: Math.min(Math.max(0, Math.floor(S.pageIndex)), I),
|
|
7938
7939
|
pageSize: b
|
|
7939
|
-
}, Qt("pagination", V.value), (f.pageIndex !== V.value.pageIndex || f.pageSize !== V.value.pageSize) && (h.value && (h.value.scrollTop = 0), Ce("data"),
|
|
7940
|
+
}, Qt("pagination", V.value), (f.pageIndex !== V.value.pageIndex || f.pageSize !== V.value.pageSize) && (h.value && (h.value.scrollTop = 0), Ce("data"), Je("pageChanged", {
|
|
7940
7941
|
tableId: xe(),
|
|
7941
7942
|
pageIndex: V.value.pageIndex,
|
|
7942
7943
|
pageSize: V.value.pageSize,
|
|
@@ -7945,17 +7946,17 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7945
7946
|
}
|
|
7946
7947
|
function Nl(c) {
|
|
7947
7948
|
const f = c.target;
|
|
7948
|
-
f instanceof HTMLSelectElement &&
|
|
7949
|
+
f instanceof HTMLSelectElement && Qn({ pageIndex: 0, pageSize: Number(f.value) });
|
|
7949
7950
|
}
|
|
7950
7951
|
function Ll() {
|
|
7951
|
-
|
|
7952
|
+
Qn(V.value);
|
|
7952
7953
|
}
|
|
7953
7954
|
function Hl() {
|
|
7954
|
-
const c = { pageIndex: 0, pageSize: t.pageSize }, f =
|
|
7955
|
+
const c = { pageIndex: 0, pageSize: t.pageSize }, f = jo("pagination", c), S = gi(f.pageSize, t.pageSize);
|
|
7955
7956
|
return {
|
|
7956
7957
|
pageIndex: Math.min(
|
|
7957
7958
|
_a(f.pageIndex, 0),
|
|
7958
|
-
Math.max(0, Math.ceil(
|
|
7959
|
+
Math.max(0, Math.ceil(M.value.length / S) - 1)
|
|
7959
7960
|
),
|
|
7960
7961
|
pageSize: S
|
|
7961
7962
|
};
|
|
@@ -7968,7 +7969,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7968
7969
|
}
|
|
7969
7970
|
function vn(c) {
|
|
7970
7971
|
const f = JSON.stringify(G.value);
|
|
7971
|
-
G.value = c, Qt("sort", c.map((S) => ({ key: S.id, direction: S.desc ? "desc" : "asc" }))), f !== JSON.stringify(c) &&
|
|
7972
|
+
G.value = c, Qt("sort", c.map((S) => ({ key: S.id, direction: S.desc ? "desc" : "asc" }))), f !== JSON.stringify(c) && Je("sortChanged", {
|
|
7972
7973
|
tableId: xe(),
|
|
7973
7974
|
sort: c.map((S) => ({ columnKey: S.id, direction: S.desc ? "desc" : "asc" }))
|
|
7974
7975
|
});
|
|
@@ -7977,7 +7978,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7977
7978
|
if (t.pinMode === "disabled")
|
|
7978
7979
|
return;
|
|
7979
7980
|
const f = JSON.stringify(z.value);
|
|
7980
|
-
z.value = Jt(c, z.value), Qt("pin", fi(z.value)), f !== JSON.stringify(z.value) &&
|
|
7981
|
+
z.value = Jt(c, z.value), Qt("pin", fi(z.value)), f !== JSON.stringify(z.value) && Je("columnPinChanged", {
|
|
7981
7982
|
tableId: xe(),
|
|
7982
7983
|
left: [...z.value.left ?? []],
|
|
7983
7984
|
right: [...z.value.right ?? []]
|
|
@@ -7985,7 +7986,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7985
7986
|
}
|
|
7986
7987
|
function Bl(c) {
|
|
7987
7988
|
const f = Jt(c, ct.value).filter((S) => S !== jt);
|
|
7988
|
-
JSON.stringify(f) !== JSON.stringify(U.value) && (U.value = f, Qt("order", f),
|
|
7989
|
+
JSON.stringify(f) !== JSON.stringify(U.value) && (U.value = f, Qt("order", f), Je("columnOrderChanged", { tableId: xe(), columnKeys: [...f] }));
|
|
7989
7990
|
}
|
|
7990
7991
|
function Gl(c) {
|
|
7991
7992
|
const f = Jt(c, oe.value);
|
|
@@ -7993,7 +7994,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
7993
7994
|
return;
|
|
7994
7995
|
oe.value = f, Qt("visibility", f);
|
|
7995
7996
|
const S = Object.fromEntries(n.value.map((b) => [b.key, f[b.key] !== !1]));
|
|
7996
|
-
|
|
7997
|
+
Je("columnVisibilityChanged", {
|
|
7997
7998
|
tableId: xe(),
|
|
7998
7999
|
visibility: S,
|
|
7999
8000
|
hiddenColumnKeys: Object.entries(S).filter(([, b]) => !b).map(([b]) => b)
|
|
@@ -8006,7 +8007,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8006
8007
|
F.value = S, Qt("size", S);
|
|
8007
8008
|
const b = Object.keys(S).find((I) => S[I] !== f[I]) ?? null;
|
|
8008
8009
|
Fe && clearTimeout(Fe), Fe = setTimeout(() => {
|
|
8009
|
-
Fe = null,
|
|
8010
|
+
Fe = null, Je("columnSizeChanged", {
|
|
8010
8011
|
tableId: xe(),
|
|
8011
8012
|
sizes: { ...F.value },
|
|
8012
8013
|
changedColumnKey: b
|
|
@@ -8017,7 +8018,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8017
8018
|
return typeof c == "function" ? c(f) : c;
|
|
8018
8019
|
}
|
|
8019
8020
|
function Wl() {
|
|
8020
|
-
const c = t.sortMode === "disabled" ? [] : o.value, f =
|
|
8021
|
+
const c = t.sortMode === "disabled" ? [] : o.value, f = Bo("sort", c), S = new Set(n.value.filter((I) => {
|
|
8021
8022
|
var Q;
|
|
8022
8023
|
return (Q = I.sort) == null ? void 0 : Q.sortable;
|
|
8023
8024
|
}).map((I) => I.key)), b = f.filter(ya).filter((I) => S.has(I.key)).map((I) => ({ id: I.key, desc: I.direction === "desc" }));
|
|
@@ -8025,7 +8026,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8025
8026
|
}
|
|
8026
8027
|
function Ul() {
|
|
8027
8028
|
return t.pinMode === "disabled" ? { left: [], right: [] } : di(
|
|
8028
|
-
|
|
8029
|
+
Bo("pin", r.value).filter(ba)
|
|
8029
8030
|
);
|
|
8030
8031
|
}
|
|
8031
8032
|
function Qr() {
|
|
@@ -8034,19 +8035,19 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8034
8035
|
Object.entries(f).filter(([b, I]) => S.has(b) && typeof I == "boolean")
|
|
8035
8036
|
);
|
|
8036
8037
|
}
|
|
8037
|
-
function
|
|
8038
|
+
function jo(c, f) {
|
|
8038
8039
|
const S = Y.value;
|
|
8039
8040
|
if (!t.runtimeState || !S)
|
|
8040
8041
|
return f;
|
|
8041
8042
|
const b = t.runtimeState.get(S, c, f);
|
|
8042
8043
|
return b ?? f;
|
|
8043
8044
|
}
|
|
8044
|
-
function
|
|
8045
|
-
const S =
|
|
8045
|
+
function Bo(c, f) {
|
|
8046
|
+
const S = jo(c, f);
|
|
8046
8047
|
return Array.isArray(S) ? S : f;
|
|
8047
8048
|
}
|
|
8048
8049
|
function Zr(c, f) {
|
|
8049
|
-
const S =
|
|
8050
|
+
const S = jo(c, f);
|
|
8050
8051
|
return tn(S) ? S : f;
|
|
8051
8052
|
}
|
|
8052
8053
|
function Qt(c, f) {
|
|
@@ -8077,7 +8078,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8077
8078
|
vn(b < 0 ? [...G.value, S] : G.value.map((I) => I.id === c ? S : I));
|
|
8078
8079
|
}
|
|
8079
8080
|
function ei(c, f, S) {
|
|
8080
|
-
const b = Zt(c), I =
|
|
8081
|
+
const b = Zt(c), I = Go(b);
|
|
8081
8082
|
if (!I)
|
|
8082
8083
|
return;
|
|
8083
8084
|
const Q = Jl(c, b);
|
|
@@ -8094,13 +8095,13 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8094
8095
|
});
|
|
8095
8096
|
}
|
|
8096
8097
|
function Yl(c, f) {
|
|
8097
|
-
if (
|
|
8098
|
+
if (Go(Zt(c))) {
|
|
8098
8099
|
ei(c, f, "element");
|
|
8099
8100
|
return;
|
|
8100
8101
|
}
|
|
8101
8102
|
c.getCanSort() && t.sortMode !== "fixed" && c.toggleSorting();
|
|
8102
8103
|
}
|
|
8103
|
-
function
|
|
8104
|
+
function Go(c) {
|
|
8104
8105
|
if (t.columnMenu.mode === "disabled")
|
|
8105
8106
|
return null;
|
|
8106
8107
|
if (t.columnMenu.mode === "inline")
|
|
@@ -8165,13 +8166,13 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8165
8166
|
async function Ql(c) {
|
|
8166
8167
|
if (c.kind !== "collection-projection-update" || c.boundaryId !== t.boundaryId)
|
|
8167
8168
|
return !1;
|
|
8168
|
-
const f =
|
|
8169
|
-
return S < 0 || !tn(c.itemSnapshot) ? !1 : (f[S] = { ...c.itemSnapshot },
|
|
8169
|
+
const f = Uo(M.value), S = Zl(f, c);
|
|
8170
|
+
return S < 0 || !tn(c.itemSnapshot) ? !1 : (f[S] = { ...c.itemSnapshot }, M.value = f, await At(), Ce("data"), !0);
|
|
8170
8171
|
}
|
|
8171
8172
|
function Zl(c, f) {
|
|
8172
|
-
const S = tn(f.itemSnapshot) ?
|
|
8173
|
+
const S = tn(f.itemSnapshot) ? et(t.rowKey, f.itemSnapshot) : void 0;
|
|
8173
8174
|
if (S != null) {
|
|
8174
|
-
const b = c.findIndex((I) => Object.is(
|
|
8175
|
+
const b = c.findIndex((I) => Object.is(et(t.rowKey, I), S));
|
|
8175
8176
|
if (b >= 0)
|
|
8176
8177
|
return b;
|
|
8177
8178
|
}
|
|
@@ -8241,7 +8242,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8241
8242
|
}
|
|
8242
8243
|
function sa(c, f) {
|
|
8243
8244
|
const S = [];
|
|
8244
|
-
return D.value.has(c) && (S.push("selected", "row-selected"), t.selectionMode === "multiple" && S.push("multi-selected")),
|
|
8245
|
+
return D.value.has(c) && (S.push("selected", "row-selected"), t.selectionMode === "multiple" && S.push("multi-selected")), Ko(c, f) && S.push("selected", "cell-selected"), [...new Set(S)];
|
|
8245
8246
|
}
|
|
8246
8247
|
function la(c) {
|
|
8247
8248
|
return D.value.has(c) ? [
|
|
@@ -8273,7 +8274,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8273
8274
|
}
|
|
8274
8275
|
};
|
|
8275
8276
|
}
|
|
8276
|
-
function
|
|
8277
|
+
function Je(c, f) {
|
|
8277
8278
|
const S = t.eventBoundary;
|
|
8278
8279
|
S && typeof S.routeChild == "function" && S.routeChild(ca(), c, f, l.value);
|
|
8279
8280
|
}
|
|
@@ -8283,7 +8284,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8283
8284
|
return b === jt ? null : b;
|
|
8284
8285
|
}
|
|
8285
8286
|
function oi(c, f) {
|
|
8286
|
-
|
|
8287
|
+
Je("rowActivated", {
|
|
8287
8288
|
tableId: xe(),
|
|
8288
8289
|
rowId: c.row.id,
|
|
8289
8290
|
rowIndex: c.rowIndex,
|
|
@@ -8295,8 +8296,8 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8295
8296
|
function da(c, f) {
|
|
8296
8297
|
var pi, hi, mi;
|
|
8297
8298
|
f.preventDefault();
|
|
8298
|
-
const S = ni(f) ?? "", b = c.row.original, I = S ?
|
|
8299
|
-
|
|
8299
|
+
const S = ni(f) ?? "", b = c.row.original, I = S ? et(S, b) : void 0;
|
|
8300
|
+
Je("rowContextMenuRequested", {
|
|
8300
8301
|
tableId: xe(),
|
|
8301
8302
|
rowId: c.row.id,
|
|
8302
8303
|
rowIndex: c.rowIndex,
|
|
@@ -8304,7 +8305,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8304
8305
|
columnKey: S || null,
|
|
8305
8306
|
anchor: { x: f.clientX, y: f.clientY }
|
|
8306
8307
|
});
|
|
8307
|
-
const Q = t.columns.find((
|
|
8308
|
+
const Q = t.columns.find((Xo) => Xo.key === S), J = (Q == null ? void 0 : Q.cellMenu) ?? t.rowMenu;
|
|
8308
8309
|
if (J.mode !== "inline" || !J.menu || !t.menuContext || !Q)
|
|
8309
8310
|
return;
|
|
8310
8311
|
const Oe = {
|
|
@@ -8316,7 +8317,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8316
8317
|
index: Q.index,
|
|
8317
8318
|
title: Q.title,
|
|
8318
8319
|
metadata: Q.metadata ?? {}
|
|
8319
|
-
}, Sn = { value: I }, yn = t.menuContext, Ra =
|
|
8320
|
+
}, Sn = { value: I }, yn = t.menuContext, Ra = So(
|
|
8320
8321
|
yn,
|
|
8321
8322
|
{
|
|
8322
8323
|
$table: Oe,
|
|
@@ -8332,7 +8333,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8332
8333
|
},
|
|
8333
8334
|
yn.iteration,
|
|
8334
8335
|
`${yn.consumerScope}/row-menu:${c.row.id}:${S}`
|
|
8335
|
-
),
|
|
8336
|
+
), qo = Yi(J.menu, Ra), Ia = {
|
|
8336
8337
|
surface: "table-row",
|
|
8337
8338
|
runtimeId: ((hi = t.runtimeState) == null ? void 0 : hi.runtimeId) ?? t.boundaryId,
|
|
8338
8339
|
tableRuntimeId: ((mi = t.runtimeState) == null ? void 0 : mi.runtimeId) ?? t.boundaryId,
|
|
@@ -8348,7 +8349,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8348
8349
|
columnKey: S,
|
|
8349
8350
|
value: I
|
|
8350
8351
|
};
|
|
8351
|
-
if (!
|
|
8352
|
+
if (!qo || !qo.items.some((Xo) => Xo.kind === "item")) {
|
|
8352
8353
|
cn(t.boundaryId);
|
|
8353
8354
|
return;
|
|
8354
8355
|
}
|
|
@@ -8356,7 +8357,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8356
8357
|
ownerId: t.boundaryId,
|
|
8357
8358
|
x: f.clientX,
|
|
8358
8359
|
y: f.clientY,
|
|
8359
|
-
menu:
|
|
8360
|
+
menu: qo,
|
|
8360
8361
|
context: Ia
|
|
8361
8362
|
});
|
|
8362
8363
|
}
|
|
@@ -8403,7 +8404,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8403
8404
|
return;
|
|
8404
8405
|
D.value = c;
|
|
8405
8406
|
const I = new Map(ae.getCoreRowModel().rows.map((J) => [J.id, J.original])), Q = [...c].filter((J) => I.has(J));
|
|
8406
|
-
|
|
8407
|
+
Je("selectionChanged", {
|
|
8407
8408
|
tableId: xe(),
|
|
8408
8409
|
mode: t.selectionMode === "multiple" ? "multiple" : "single",
|
|
8409
8410
|
selectedRowIds: Q,
|
|
@@ -8418,17 +8419,17 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8418
8419
|
const c = new Set(ae.getCoreRowModel().rows.map((f) => f.id));
|
|
8419
8420
|
en(new Set([...D.value].filter((f) => c.has(f))));
|
|
8420
8421
|
}
|
|
8421
|
-
function
|
|
8422
|
+
function Ko(c, f) {
|
|
8422
8423
|
var S;
|
|
8423
8424
|
return ((S = ie.value) == null ? void 0 : S.rowId) === c && ie.value.columnKey === f;
|
|
8424
8425
|
}
|
|
8425
8426
|
function si(c, f) {
|
|
8426
|
-
t.cellSelectionMode !== "single" || Be(f.column) ||
|
|
8427
|
+
t.cellSelectionMode !== "single" || Be(f.column) || Zn({
|
|
8427
8428
|
rowId: c.row.id,
|
|
8428
8429
|
rowIndex: c.rowIndex,
|
|
8429
8430
|
row: c.row.original,
|
|
8430
8431
|
columnKey: f.column.id,
|
|
8431
|
-
value:
|
|
8432
|
+
value: et(f.column.id, c.row.original)
|
|
8432
8433
|
});
|
|
8433
8434
|
}
|
|
8434
8435
|
function pa(c, f, S) {
|
|
@@ -8441,11 +8442,11 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8441
8442
|
t.cellSelectionMode !== "single" || S.key !== " " && S.key !== "Enter" || (S.preventDefault(), S.stopPropagation(), si(c, f), ii(c, S));
|
|
8442
8443
|
}
|
|
8443
8444
|
function ma(c) {
|
|
8444
|
-
Ca(c) && (D.value.size === 0 && ie.value === null || (c.preventDefault(), c.stopPropagation(), re.value = null, en(/* @__PURE__ */ new Set()),
|
|
8445
|
+
Ca(c) && (D.value.size === 0 && ie.value === null || (c.preventDefault(), c.stopPropagation(), re.value = null, en(/* @__PURE__ */ new Set()), Zn(null)));
|
|
8445
8446
|
}
|
|
8446
|
-
function
|
|
8447
|
+
function Zn(c) {
|
|
8447
8448
|
const f = ie.value;
|
|
8448
|
-
(f == null ? void 0 : f.rowId) === (c == null ? void 0 : c.rowId) && (f == null ? void 0 : f.columnKey) === (c == null ? void 0 : c.columnKey) || (ie.value = c,
|
|
8449
|
+
(f == null ? void 0 : f.rowId) === (c == null ? void 0 : c.rowId) && (f == null ? void 0 : f.columnKey) === (c == null ? void 0 : c.columnKey) || (ie.value = c, Je("cellSelectionChanged", {
|
|
8449
8450
|
tableId: xe(),
|
|
8450
8451
|
selectedCell: c,
|
|
8451
8452
|
previousCell: f
|
|
@@ -8457,14 +8458,14 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8457
8458
|
return;
|
|
8458
8459
|
const f = ae.getCoreRowModel().rows.find((S) => S.id === c.rowId);
|
|
8459
8460
|
if (!f || !n.value.some((S) => S.key === c.columnKey)) {
|
|
8460
|
-
|
|
8461
|
+
Zn(null);
|
|
8461
8462
|
return;
|
|
8462
8463
|
}
|
|
8463
8464
|
ie.value = {
|
|
8464
8465
|
...c,
|
|
8465
8466
|
rowIndex: f.index,
|
|
8466
8467
|
row: f.original,
|
|
8467
|
-
value:
|
|
8468
|
+
value: et(c.columnKey, f.original)
|
|
8468
8469
|
};
|
|
8469
8470
|
}
|
|
8470
8471
|
function ai(c) {
|
|
@@ -8483,9 +8484,9 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8483
8484
|
}
|
|
8484
8485
|
function Sa(c, f, S) {
|
|
8485
8486
|
const b = c == null || c === "", I = f == null || f === "";
|
|
8486
|
-
return b || I ? b === I ? 0 : b ? 1 : -1 : S === "number" ?
|
|
8487
|
+
return b || I ? b === I ? 0 : b ? 1 : -1 : S === "number" ? Wo(c, f) : S === "date" ? Wo(Date.parse(String(c)), Date.parse(String(f))) : S === "time" ? Wo(ui(c), ui(f)) : S === "boolean" ? +!!c - +!!f : new Intl.Collator(void 0, { numeric: S !== "text", sensitivity: "base" }).compare(String(c), String(f));
|
|
8487
8488
|
}
|
|
8488
|
-
function
|
|
8489
|
+
function Wo(c, f) {
|
|
8489
8490
|
const S = Number(c), b = Number(f);
|
|
8490
8491
|
return !Number.isFinite(S) || !Number.isFinite(b) ? String(c).localeCompare(String(f), void 0, { numeric: !0 }) : S - b;
|
|
8491
8492
|
}
|
|
@@ -8514,7 +8515,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8514
8515
|
...(c.right ?? []).map((f) => ({ key: f, side: "right" }))
|
|
8515
8516
|
];
|
|
8516
8517
|
}
|
|
8517
|
-
function
|
|
8518
|
+
function Uo(c) {
|
|
8518
8519
|
return Array.isArray(c) ? c.filter(tn) : [];
|
|
8519
8520
|
}
|
|
8520
8521
|
function tn(c) {
|
|
@@ -8576,22 +8577,22 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8576
8577
|
class: In(["endge-tanstack-table__toolbar-meta", { "endge-tanstack-table__toolbar-meta--after-controls": p.value }])
|
|
8577
8578
|
}, [
|
|
8578
8579
|
X("div", Mp, [
|
|
8579
|
-
X("span", null, de(
|
|
8580
|
+
X("span", null, de(Xe.value), 1),
|
|
8580
8581
|
X("span", $p, de(ue("table.summary.rows", "rows")), 1)
|
|
8581
8582
|
]),
|
|
8582
|
-
n.value.length > 1 ? ($(),
|
|
8583
|
+
n.value.length > 1 ? ($(), Ue(Rp, {
|
|
8583
8584
|
key: 0,
|
|
8584
8585
|
table: Z(ae),
|
|
8585
8586
|
translate: ue
|
|
8586
8587
|
}, null, 8, ["table"])) : ce("", !0)
|
|
8587
8588
|
], 2)
|
|
8588
8589
|
]),
|
|
8589
|
-
g.value ?
|
|
8590
|
-
Ne(
|
|
8590
|
+
g.value ? bs(($(), O("div", Fp, [
|
|
8591
|
+
Ne(_s, { runtime: g.value }, null, 8, ["runtime"])
|
|
8591
8592
|
], 512)), [
|
|
8592
|
-
[
|
|
8593
|
+
[gu, m.value]
|
|
8593
8594
|
]) : ce("", !0),
|
|
8594
|
-
X("div",
|
|
8595
|
+
X("div", Ze({
|
|
8595
8596
|
ref_key: "scrollRoot",
|
|
8596
8597
|
ref: h
|
|
8597
8598
|
}, e.styleContract.grid.attrs, {
|
|
@@ -8601,17 +8602,17 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8601
8602
|
X("table", {
|
|
8602
8603
|
"data-slot": "table",
|
|
8603
8604
|
"data-virtualized": "true",
|
|
8604
|
-
"data-row-count":
|
|
8605
|
+
"data-row-count": Xe.value,
|
|
8605
8606
|
"data-page-row-count": A.value.length,
|
|
8606
8607
|
class: "endge-tanstack-table__table",
|
|
8607
8608
|
style: Wt({ width: mn.value })
|
|
8608
8609
|
}, [
|
|
8609
|
-
X("thead",
|
|
8610
|
+
X("thead", Ze({
|
|
8610
8611
|
ref_key: "headerRoot",
|
|
8611
8612
|
ref: y
|
|
8612
8613
|
}, e.styleContract.header.attrs, { class: "endge-tanstack-table__header" }), [
|
|
8613
8614
|
X("tr", null, [
|
|
8614
|
-
($(!0), O($e, null, nt(
|
|
8615
|
+
($(!0), O($e, null, nt(Lo.value, (b) => ($(), O("th", Ze({
|
|
8615
8616
|
key: b.id
|
|
8616
8617
|
}, { ref_for: !0 }, Be(b.column) ? {} : Zt(b.column).styleSurfaces.headerCell.attrs, {
|
|
8617
8618
|
class: ["endge-tanstack-table__head", {
|
|
@@ -8635,23 +8636,23 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8635
8636
|
key: 1,
|
|
8636
8637
|
type: "button",
|
|
8637
8638
|
class: In(["endge-tanstack-table__sort", { "endge-tanstack-table__sort--enabled": b.column.getIsSorted() }]),
|
|
8638
|
-
disabled: !b.column.getCanSort() && !
|
|
8639
|
+
disabled: !b.column.getCanSort() && !Go(Zt(b.column)),
|
|
8639
8640
|
onClick: (I) => Yl(b.column, I)
|
|
8640
8641
|
}, [
|
|
8641
|
-
X("span",
|
|
8642
|
+
X("span", Ze({ ref_for: !0 }, Zt(b.column).styleSurfaces.headerContent.attrs, { class: "endge-tanstack-table__head-title" }), [
|
|
8642
8643
|
Ne(Z(Ki), {
|
|
8643
8644
|
render: b.column.columnDef.header,
|
|
8644
8645
|
props: b.getContext()
|
|
8645
8646
|
}, null, 8, ["render", "props"])
|
|
8646
8647
|
], 16),
|
|
8647
8648
|
b.column.getCanSort() ? ($(), O("span", zp, [
|
|
8648
|
-
b.column.getIsSorted() === "asc" ? ($(),
|
|
8649
|
+
b.column.getIsSorted() === "asc" ? ($(), Ue(Z(af), {
|
|
8649
8650
|
key: 0,
|
|
8650
8651
|
size: 14
|
|
8651
|
-
})) : b.column.getIsSorted() === "desc" ? ($(),
|
|
8652
|
+
})) : b.column.getIsSorted() === "desc" ? ($(), Ue(Z(sf), {
|
|
8652
8653
|
key: 1,
|
|
8653
8654
|
size: 14
|
|
8654
|
-
})) : ($(),
|
|
8655
|
+
})) : ($(), Ue(Z(bf), {
|
|
8655
8656
|
key: 2,
|
|
8656
8657
|
size: 14
|
|
8657
8658
|
})),
|
|
@@ -8668,11 +8669,11 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8668
8669
|
], 16, Pp))), 128))
|
|
8669
8670
|
])
|
|
8670
8671
|
], 16),
|
|
8671
|
-
X("tbody",
|
|
8672
|
+
X("tbody", Ze(e.styleContract.body.attrs, {
|
|
8672
8673
|
class: "endge-tanstack-table__body",
|
|
8673
|
-
style: { height: `${
|
|
8674
|
+
style: { height: `${Yn.value}px` }
|
|
8674
8675
|
}), [
|
|
8675
|
-
($(!0), O($e, null, nt(
|
|
8676
|
+
($(!0), O($e, null, nt(Ye.value, (b) => ($(), O("tr", Ze({
|
|
8676
8677
|
key: String(b.virtualItem.key)
|
|
8677
8678
|
}, { ref_for: !0 }, ua(b.styledRow, b.row.id), {
|
|
8678
8679
|
"data-index": b.rowIndex,
|
|
@@ -8689,17 +8690,17 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8689
8690
|
onContextmenu: (I) => da(b, I),
|
|
8690
8691
|
onKeydown: (I) => fa(b, I)
|
|
8691
8692
|
}), [
|
|
8692
|
-
($(!0), O($e, null, nt(
|
|
8693
|
+
($(!0), O($e, null, nt(Ho(b.row), (I) => ($(), O("td", Ze({
|
|
8693
8694
|
key: I.id
|
|
8694
8695
|
}, { ref_for: !0 }, Be(I.column) ? {} : ia(b.styledRow, Zt(I.column), sa(b.row.id, I.column.id)), {
|
|
8695
8696
|
class: ["endge-tanstack-table__cell", {
|
|
8696
8697
|
"endge-tanstack-table__cell--pinned": I.column.getIsPinned(),
|
|
8697
8698
|
"endge-tanstack-table__selection-cell": Be(I.column),
|
|
8698
|
-
"endge-tanstack-table__cell--selected":
|
|
8699
|
+
"endge-tanstack-table__cell--selected": Ko(b.row.id, I.column.id)
|
|
8699
8700
|
}],
|
|
8700
8701
|
style: ti(I.column),
|
|
8701
8702
|
tabindex: e.cellSelectionMode === "single" && !Be(I.column) ? 0 : void 0,
|
|
8702
|
-
"aria-selected": e.cellSelectionMode === "single" && !Be(I.column) ?
|
|
8703
|
+
"aria-selected": e.cellSelectionMode === "single" && !Be(I.column) ? Ko(b.row.id, I.column.id) : void 0,
|
|
8703
8704
|
onClick: (Q) => pa(b, I, Q),
|
|
8704
8705
|
onKeydown: (Q) => ha(b, I, Q)
|
|
8705
8706
|
}), [
|
|
@@ -8713,7 +8714,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8713
8714
|
onClick: f[1] || (f[1] = Gt(() => {
|
|
8714
8715
|
}, ["stop"])),
|
|
8715
8716
|
onChange: (Q) => na(b.row, Q)
|
|
8716
|
-
}, null, 42, jp)) : ($(),
|
|
8717
|
+
}, null, 42, jp)) : ($(), Ue(Z(Ki), {
|
|
8717
8718
|
key: 1,
|
|
8718
8719
|
render: I.column.columnDef.cell,
|
|
8719
8720
|
props: I.getContext()
|
|
@@ -8722,7 +8723,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8722
8723
|
], 16, Lp))), 128)),
|
|
8723
8724
|
A.value.length === 0 ? ($(), O("tr", Bp, [
|
|
8724
8725
|
X("td", {
|
|
8725
|
-
colspan:
|
|
8726
|
+
colspan: Jn.value,
|
|
8726
8727
|
class: "endge-tanstack-table__empty"
|
|
8727
8728
|
}, de(ue("table.empty", "No data")), 9, Gp)
|
|
8728
8729
|
])) : ce("", !0)
|
|
@@ -8793,9 +8794,9 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8793
8794
|
], 44, Ip);
|
|
8794
8795
|
};
|
|
8795
8796
|
}
|
|
8796
|
-
}), rh =
|
|
8797
|
+
}), rh = zo((e) => {
|
|
8797
8798
|
var R, w, _;
|
|
8798
|
-
const t = uh(e.props.rows), n = e.node.props["row-state"] ?? e.node.props.rowState, o = e.props.height ?? e.props.h, r = o == null || o === "", i =
|
|
8799
|
+
const t = uh(e.props.rows), n = e.node.props["row-state"] ?? e.node.props.rowState, o = e.props.height ?? e.props.h, r = o == null || o === "", i = Bn(e.props["row-key"] ?? e.props.rowKey, "id"), s = ja(e.node), l = Ba(e.node), a = Ga(e.node), u = ((R = e.node.tableMenus) == null ? void 0 : R.column) ?? Ka(e.node), d = ((w = e.node.tableMenus) == null ? void 0 : w.row) ?? Wa(e.node), g = Kd(e.context), v = Qs(
|
|
8799
8800
|
e.props["cell-align"] ?? e.props.cellAlign,
|
|
8800
8801
|
e.props["cell-vertical-align"] ?? e.props.cellVerticalAlign
|
|
8801
8802
|
), p = Ua(
|
|
@@ -8808,7 +8809,7 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8808
8809
|
p,
|
|
8809
8810
|
v,
|
|
8810
8811
|
g
|
|
8811
|
-
), h =
|
|
8812
|
+
), h = Bn(e.props.id ?? e.props.tableId ?? e.attrs.id, ""), y = So(
|
|
8812
8813
|
e.context,
|
|
8813
8814
|
{
|
|
8814
8815
|
$table: {
|
|
@@ -8826,9 +8827,9 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8826
8827
|
class: ["endge-sfc-table", "endge-tanstack-sfc-table", e.props.class],
|
|
8827
8828
|
style: {
|
|
8828
8829
|
...Yr(e.attrs.style) ? e.attrs.style : {},
|
|
8829
|
-
width:
|
|
8830
|
-
height:
|
|
8831
|
-
minHeight:
|
|
8830
|
+
width: br(e.props.width ?? e.props.w, "100%"),
|
|
8831
|
+
height: br(o, "100%"),
|
|
8832
|
+
minHeight: br(e.props.minHeight ?? e.props.minH, "180px"),
|
|
8832
8833
|
flex: r ? "1 1 0%" : void 0,
|
|
8833
8834
|
overflow: "hidden"
|
|
8834
8835
|
}
|
|
@@ -8858,39 +8859,39 @@ const hp = ["aria-expanded"], mp = ["aria-label"], vp = { class: "endge-tanstack
|
|
|
8858
8859
|
defaultSort: s.defaultSort,
|
|
8859
8860
|
defaultPin: l.defaultPin,
|
|
8860
8861
|
defaultHidden: a.defaultHidden,
|
|
8861
|
-
rowSize:
|
|
8862
|
+
rowSize: xo(e.props["row-size"] ?? e.props.rowSize, 40),
|
|
8862
8863
|
paging: ph(e.props.paging),
|
|
8863
|
-
pageSize:
|
|
8864
|
+
pageSize: xo(e.props["page-size"] ?? e.props.pageSize, 25),
|
|
8864
8865
|
pageSizes: mh(e.props["page-sizes"] ?? e.props.pageSizes),
|
|
8865
8866
|
lazy: e.props.lazy === !0,
|
|
8866
8867
|
renderVersion: e.context.renderVersion,
|
|
8867
|
-
renderCell: (C, E,
|
|
8868
|
+
renderCell: (C, E, M, P) => {
|
|
8868
8869
|
var re;
|
|
8869
|
-
const H =
|
|
8870
|
+
const H = et(C.key, E), Y = { id: P, index: M, data: E }, G = {
|
|
8870
8871
|
key: C.key,
|
|
8871
8872
|
index: C.index,
|
|
8872
8873
|
title: C.title,
|
|
8873
8874
|
metadata: C.metadata ?? {}
|
|
8874
|
-
}, z =
|
|
8875
|
+
}, z = So(y, {
|
|
8875
8876
|
$row: Y,
|
|
8876
8877
|
$column: G,
|
|
8877
8878
|
$cell: { value: H },
|
|
8878
8879
|
row: E,
|
|
8879
|
-
rowIndex:
|
|
8880
|
+
rowIndex: M,
|
|
8880
8881
|
// TanStack требует строковый внутренний идентификатор строки, но лексический
|
|
8881
8882
|
// rowKey в SFC должен сохранять авторский тип данных. Селекторы Store
|
|
8882
8883
|
// часто сравнивают числовые идентификаторы и должны получать число.
|
|
8883
|
-
rowKey: ss(
|
|
8884
|
+
rowKey: ss(et(i, E), P),
|
|
8884
8885
|
columnKey: C.key,
|
|
8885
8886
|
columnMeta: C.metadata ?? {},
|
|
8886
8887
|
value: H
|
|
8887
8888
|
}, y.iteration, `${y.consumerScope}/row:${gn(P)}/column:${gn(C.key)}`, {
|
|
8888
8889
|
kind: "table-row",
|
|
8889
8890
|
boundaryId: e.node.id,
|
|
8890
|
-
rowKey: ss(
|
|
8891
|
-
}), U = C.cellNodes.length ?
|
|
8891
|
+
rowKey: ss(et(i, E), P)
|
|
8892
|
+
}), U = C.cellNodes.length ? jn(e.h, C.cellNodes, z) : vh(H), oe = lh(
|
|
8892
8893
|
n ? pe(n, z) : void 0
|
|
8893
|
-
), F = (re = ol(E, C.index, oe)) == null ? void 0 : re.cellContent.attrs, V = C.cellNode ?
|
|
8894
|
+
), F = (re = ol(E, C.index, oe)) == null ? void 0 : re.cellContent.attrs, V = C.cellNode ? Po(C.cellNode.props, z) : {}, D = C.cellNode ? Ws(C.cellNode, V, z) : {};
|
|
8894
8895
|
return C.cellNode && Ks(D, C.cellNode, V, z), e.h("div", {
|
|
8895
8896
|
...D,
|
|
8896
8897
|
part: (F == null ? void 0 : F.part) ?? "cell-content",
|
|
@@ -8913,14 +8914,14 @@ function ih(e, t, n, o, r, i, s) {
|
|
|
8913
8914
|
const l = e.children.filter($l).filter((u) => u.tag === "Column"), a = Wd(s, l.length);
|
|
8914
8915
|
return l.map((u, d) => {
|
|
8915
8916
|
var y, R;
|
|
8916
|
-
const g =
|
|
8917
|
+
const g = Po(u.props, t), v = ah(u, t, g.key, `column_${d}`), p = n.columns.find((w) => w.key === v) ?? null, m = o.columns.find((w) => w.key === v) ?? null, h = hh(g.width ?? g.size);
|
|
8917
8918
|
return {
|
|
8918
8919
|
index: d,
|
|
8919
8920
|
key: v,
|
|
8920
|
-
title:
|
|
8921
|
+
title: Bn(g.title ?? g.name, v),
|
|
8921
8922
|
width: h,
|
|
8922
|
-
minWidth:
|
|
8923
|
-
maxWidth:
|
|
8923
|
+
minWidth: xo(g.minWidth ?? g.minSize, 64),
|
|
8924
|
+
maxWidth: xo(g.maxWidth ?? g.maxSize, 1200),
|
|
8924
8925
|
pinnable: r !== "disabled" && ((m == null ? void 0 : m.pinnable) ?? !0),
|
|
8925
8926
|
alignment: Qs(
|
|
8926
8927
|
g["cell-align"] ?? g.cellAlign ?? g.align ?? i.horizontal,
|
|
@@ -8953,9 +8954,9 @@ function lh(e) {
|
|
|
8953
8954
|
function ah(e, t, n, o) {
|
|
8954
8955
|
const r = n ?? pe(e.directives.key, t);
|
|
8955
8956
|
if (r != null)
|
|
8956
|
-
return
|
|
8957
|
+
return Bn(r, o);
|
|
8957
8958
|
const i = e.directives.key;
|
|
8958
|
-
return (i == null ? void 0 : i.kind) === "expression" && i.reads.length === 0 ?
|
|
8959
|
+
return (i == null ? void 0 : i.kind) === "expression" && i.reads.length === 0 ? Bn(i.source.replace(/^['"]|['"]$/g, ""), o) : o;
|
|
8959
8960
|
}
|
|
8960
8961
|
function uh(e) {
|
|
8961
8962
|
return Array.isArray(e) ? e.map((t, n) => Yr(t) ? t : { id: n, value: t }) : [];
|
|
@@ -8972,7 +8973,7 @@ function bm(e, t) {
|
|
|
8972
8973
|
function wm(e, t, n) {
|
|
8973
8974
|
const o = [...e];
|
|
8974
8975
|
for (const r of t) {
|
|
8975
|
-
const i = r.itemKey == null ? r.itemIndex : o.findIndex((a) => Object.is(
|
|
8976
|
+
const i = r.itemKey == null ? r.itemIndex : o.findIndex((a) => Object.is(et(n, a), r.itemKey));
|
|
8976
8977
|
if (!Yr(r.itemSnapshot)) {
|
|
8977
8978
|
i != null && i >= 0 && o.splice(i, 1);
|
|
8978
8979
|
continue;
|
|
@@ -8990,7 +8991,7 @@ function wm(e, t, n) {
|
|
|
8990
8991
|
function ss(e, t) {
|
|
8991
8992
|
return String(e ?? "").trim() ? e : t;
|
|
8992
8993
|
}
|
|
8993
|
-
function
|
|
8994
|
+
function Bn(e, t) {
|
|
8994
8995
|
return String(e ?? "").trim() || t;
|
|
8995
8996
|
}
|
|
8996
8997
|
function ch(e) {
|
|
@@ -9005,7 +9006,7 @@ function fh(e) {
|
|
|
9005
9006
|
function gh(e) {
|
|
9006
9007
|
return e === "control" || e === "row" || e === "both" ? e : "auto";
|
|
9007
9008
|
}
|
|
9008
|
-
function
|
|
9009
|
+
function xo(e, t) {
|
|
9009
9010
|
const n = Number(e);
|
|
9010
9011
|
return Number.isFinite(n) && n > 0 ? n : t;
|
|
9011
9012
|
}
|
|
@@ -9033,7 +9034,7 @@ function vh(e) {
|
|
|
9033
9034
|
}
|
|
9034
9035
|
return String(e);
|
|
9035
9036
|
}
|
|
9036
|
-
function
|
|
9037
|
+
function br(e, t) {
|
|
9037
9038
|
if (e == null || e === "")
|
|
9038
9039
|
return t;
|
|
9039
9040
|
if (typeof e == "number")
|
|
@@ -9091,12 +9092,12 @@ function Ih(e) {
|
|
|
9091
9092
|
const r = Math.max(6e4, (n - t) * 0.05);
|
|
9092
9093
|
return { start: t - r, end: n + r, min: t - r * 10, max: n + r * 10 };
|
|
9093
9094
|
}
|
|
9094
|
-
function
|
|
9095
|
+
function Or(e) {
|
|
9095
9096
|
const t = e;
|
|
9096
9097
|
if (typeof (t == null ? void 0 : t.start) == "number" && typeof t.end == "number" && Number.isFinite(t.start) && Number.isFinite(t.end) && t.end > t.start)
|
|
9097
9098
|
return { start: t.start, end: t.end };
|
|
9098
9099
|
}
|
|
9099
|
-
function
|
|
9100
|
+
function Ln(e, t) {
|
|
9100
9101
|
return (e == null ? void 0 : e.start) === (t == null ? void 0 : t.start) && (e == null ? void 0 : e.end) === (t == null ? void 0 : t.end);
|
|
9101
9102
|
}
|
|
9102
9103
|
function an(e, t, n = 1) {
|
|
@@ -9164,7 +9165,7 @@ function _m(e, t) {
|
|
|
9164
9165
|
}
|
|
9165
9166
|
function Cm(e) {
|
|
9166
9167
|
const t = new Map(un);
|
|
9167
|
-
for (const [n, { value: o }] of
|
|
9168
|
+
for (const [n, { value: o }] of T.runtime.modules.list(e ?? null, Nr))
|
|
9168
9169
|
t.set(n, o);
|
|
9169
9170
|
return [...t.values()].map(({ descriptor: n }) => structuredClone(n));
|
|
9170
9171
|
}
|
|
@@ -9216,7 +9217,7 @@ const Th = {
|
|
|
9216
9217
|
registerFocus: { type: Function }
|
|
9217
9218
|
},
|
|
9218
9219
|
setup(e) {
|
|
9219
|
-
const t = e, n = Rh(), o =
|
|
9220
|
+
const t = e, n = Rh(), o = Hn(Fl, null), r = N(), i = N(!1), s = N(""), l = N(!0), a = N(), u = x(() => an(t.input["min-height"], 80, 32)), d = x(() => Math.max(u.value, an(t.input["max-height"], 2400))), g = x(() => typeof t.input.title == "string" ? t.input.title : ""), v = x(() => an(t.input.height, an(a.value, 320))), p = x(() => He((o == null ? void 0 : o.height(t.chartKey)) ?? v.value)), m = x(() => i.value ? 32 : p.value), h = x(() => {
|
|
9220
9221
|
try {
|
|
9221
9222
|
return { value: kh(t.input.preset, t.input.settings, t.modulePreset), error: "" };
|
|
9222
9223
|
} catch (A) {
|
|
@@ -9228,7 +9229,7 @@ const Th = {
|
|
|
9228
9229
|
}), R = x(() => !i.value || y.value), w = x(() => o && t.splitAfter && !i.value);
|
|
9229
9230
|
let _, C;
|
|
9230
9231
|
const E = [];
|
|
9231
|
-
let
|
|
9232
|
+
let M = 0, P = !1, H, Y, G, z, U = {}, oe, F, V, D;
|
|
9232
9233
|
const re = () => "";
|
|
9233
9234
|
let ie;
|
|
9234
9235
|
function we(A) {
|
|
@@ -9241,18 +9242,18 @@ const Th = {
|
|
|
9241
9242
|
return (C == null ? void 0 : C.focusOnTask(A)) ?? !1;
|
|
9242
9243
|
}
|
|
9243
9244
|
function Xt(A) {
|
|
9244
|
-
var
|
|
9245
|
+
var Xe, it;
|
|
9245
9246
|
const L = as(A.options, t.input.options);
|
|
9246
9247
|
t.input.columns != null && ((!D || !Fe(V, t.input.columns)) && (D = Eh(t.input.columns), V = t.input.columns), L.groups = { ...L.groups, columns: D });
|
|
9247
9248
|
const se = o == null ? void 0 : o.labelWidth.value;
|
|
9248
9249
|
if (se !== void 0) {
|
|
9249
|
-
const ft = ((
|
|
9250
|
+
const ft = ((Xe = L.groups) == null ? void 0 : Xe.visible) === !1 ? [] : ((it = L.groups) == null ? void 0 : it.columns) ?? [], ve = ft.length ? ft : [{ id: "endge-label", title: "", width: se, data: re }], It = ve.reduce((Ae, Ye) => Ae + (Ye.width ?? 160), 0);
|
|
9250
9251
|
let Et = 0;
|
|
9251
9252
|
L.groups = {
|
|
9252
9253
|
...L.groups,
|
|
9253
9254
|
visible: se > 0,
|
|
9254
|
-
columns: se <= 0 ? [] : ve.map((Ae,
|
|
9255
|
-
const Pe =
|
|
9255
|
+
columns: se <= 0 ? [] : ve.map((Ae, Ye) => {
|
|
9256
|
+
const Pe = Ye === ve.length - 1 ? se - Et : se * (Ae.width ?? 160) / It;
|
|
9256
9257
|
return Et += Pe, { ...Ae, width: Pe };
|
|
9257
9258
|
})
|
|
9258
9259
|
}, L.resize = { ...L.resize, groupColumns: "lazy" };
|
|
@@ -9285,12 +9286,12 @@ const Th = {
|
|
|
9285
9286
|
function Fe(A, L) {
|
|
9286
9287
|
return Object.is(A, L) ? !0 : Array.isArray(A) && Array.isArray(L) ? A.length === L.length && A.every((se, dt) => Fe(se, L[dt])) : yt(A) && yt(L) && Object.keys(A).length === Object.keys(L).length && Object.keys(A).every((se) => Object.hasOwn(L, se) && Fe(A[se], L[se]));
|
|
9287
9288
|
}
|
|
9288
|
-
function
|
|
9289
|
-
return yt(A) && (!yt(L) || Object.keys(A).some((se) => !Object.hasOwn(L, se) ||
|
|
9289
|
+
function qn(A, L) {
|
|
9290
|
+
return yt(A) && (!yt(L) || Object.keys(A).some((se) => !Object.hasOwn(L, se) || qn(A[se], L[se])));
|
|
9290
9291
|
}
|
|
9291
9292
|
async function ae() {
|
|
9292
|
-
var L, se, dt,
|
|
9293
|
-
const A = ++
|
|
9293
|
+
var L, se, dt, Xe, it;
|
|
9294
|
+
const A = ++M;
|
|
9294
9295
|
if (!P || !R.value) {
|
|
9295
9296
|
ct();
|
|
9296
9297
|
return;
|
|
@@ -9298,17 +9299,17 @@ const Th = {
|
|
|
9298
9299
|
try {
|
|
9299
9300
|
if (h.value.error)
|
|
9300
9301
|
throw new Error(h.value.error);
|
|
9301
|
-
if (_ ?? (_ = await import("@nova-lab/timeline")), A !==
|
|
9302
|
+
if (_ ?? (_ = await import("@nova-lab/timeline")), A !== M || !P || !r.value)
|
|
9302
9303
|
return;
|
|
9303
|
-
const ft = { name: t.input.preset, settings: t.input.settings, compact: y.value }, ve = h.value.value, It = (ve == null ? void 0 : ve.provider) !== Y || !Fe(ft, H), Et = { settings: (ve == null ? void 0 : ve.settings) ?? {}, collapsed: i.value }, Ae = It ? ((se = ve == null ? void 0 : (L = ve.provider).configure) == null ? void 0 : se.call(L, Et)) ?? {} : U, { data:
|
|
9304
|
-
if (!C || It ||
|
|
9304
|
+
const ft = { name: t.input.preset, settings: t.input.settings, compact: y.value }, ve = h.value.value, It = (ve == null ? void 0 : ve.provider) !== Y || !Fe(ft, H), Et = { settings: (ve == null ? void 0 : ve.settings) ?? {}, collapsed: i.value }, Ae = It ? ((se = ve == null ? void 0 : (L = ve.provider).configure) == null ? void 0 : se.call(L, Et)) ?? {} : U, { data: Ye, options: Pe } = Xt(Ae), Yt = Ae.theme ?? t.theme ?? "light", hn = C == null ? void 0 : C.getViewport(), Yn = Or(Pe.timeRange), Jn = !Ln(Or(G == null ? void 0 : G.timeRange), Yn), mn = (o == null ? void 0 : o.viewport()) ?? (Jn ? Yn : hn == null ? void 0 : hn.timeRange);
|
|
9305
|
+
if (!C || It || qn(G, Pe)) {
|
|
9305
9306
|
ct();
|
|
9306
9307
|
const je = mn ? { ...Pe, timeRange: { ...Pe.timeRange, ...mn } } : Pe, De = _.TimelineChart.mount(r.value, {
|
|
9307
9308
|
renderer: "web2d",
|
|
9308
9309
|
...Ae,
|
|
9309
9310
|
id: n,
|
|
9310
9311
|
theme: Yt,
|
|
9311
|
-
data:
|
|
9312
|
+
data: Ye,
|
|
9312
9313
|
options: je,
|
|
9313
9314
|
width: o ? "100%" : Ae.width ?? "100%",
|
|
9314
9315
|
height: "100%"
|
|
@@ -9322,36 +9323,36 @@ const Th = {
|
|
|
9322
9323
|
})), o && E.push(De.on(_.TimelineEvents.GroupColumnResizeEnd, () => {
|
|
9323
9324
|
o.resizeLabels(De.options().groups.columns.reduce((zt, gt) => zt + gt.width, 0));
|
|
9324
9325
|
}));
|
|
9325
|
-
const Ot = (it = ve == null ? void 0 : (
|
|
9326
|
+
const Ot = (it = ve == null ? void 0 : (Xe = ve.provider).mounted) == null ? void 0 : it.call(Xe, De, Et);
|
|
9326
9327
|
Ot && E.push(Ot);
|
|
9327
9328
|
} else {
|
|
9328
9329
|
const je = C;
|
|
9329
9330
|
Yt !== F && je.setTheme(Yt);
|
|
9330
9331
|
const De = je.getViewport().timeRange;
|
|
9331
|
-
z !==
|
|
9332
|
+
z !== Ye && je.data(Ye ?? {});
|
|
9332
9333
|
const Dt = G ?? {}, Ce = Object.fromEntries(Object.entries(Pe).filter(([zt, gt]) => !Fe(Dt[zt], gt)));
|
|
9333
|
-
Object.keys(Ce).length && (Ce.timeRange && !
|
|
9334
|
+
Object.keys(Ce).length && (Ce.timeRange && !Jn && (Ce.timeRange = { ...Pe.timeRange, ...De }), je.options(Ce));
|
|
9334
9335
|
const Ot = mn ?? De;
|
|
9335
|
-
|
|
9336
|
+
Ln(je.getViewport().timeRange, Ot) || je.setViewport({ timeRange: Ot }, { source: "timeline-sync" });
|
|
9336
9337
|
}
|
|
9337
|
-
H = ft, Y = ve == null ? void 0 : ve.provider, U = Ae, a.value = Ae.height, G = Pe, F = Yt, z =
|
|
9338
|
+
H = ft, Y = ve == null ? void 0 : ve.provider, U = Ae, a.value = Ae.height, G = Pe, F = Yt, z = Ye, s.value = "";
|
|
9338
9339
|
} catch (ft) {
|
|
9339
9340
|
ct(), H = void 0, s.value = we(ft);
|
|
9340
9341
|
} finally {
|
|
9341
|
-
|
|
9342
|
+
M === A && (l.value = !1);
|
|
9342
9343
|
}
|
|
9343
9344
|
}
|
|
9344
|
-
function
|
|
9345
|
+
function Lo(A) {
|
|
9345
9346
|
if (A.button !== 0 || !o)
|
|
9346
9347
|
return;
|
|
9347
9348
|
A.preventDefault();
|
|
9348
9349
|
const L = A.currentTarget;
|
|
9349
9350
|
L.focus(), L.setPointerCapture(A.pointerId), ie = { pointer: A.pointerId, y: A.clientY, height: p.value };
|
|
9350
9351
|
}
|
|
9351
|
-
function
|
|
9352
|
+
function Xn(A) {
|
|
9352
9353
|
(ie == null ? void 0 : ie.pointer) === A.pointerId && (o == null || o.resize(t.chartKey, He(ie.height + A.clientY - ie.y)));
|
|
9353
9354
|
}
|
|
9354
|
-
function
|
|
9355
|
+
function Ho(A) {
|
|
9355
9356
|
const L = A.shiftKey ? 40 : 10, se = A.key === "ArrowUp" ? p.value - L : A.key === "ArrowDown" ? p.value + L : A.key === "Home" ? u.value : void 0;
|
|
9356
9357
|
se !== void 0 && (A.preventDefault(), o == null || o.resize(t.chartKey, He(se)));
|
|
9357
9358
|
}
|
|
@@ -9359,11 +9360,11 @@ const Th = {
|
|
|
9359
9360
|
i.value = A === !0;
|
|
9360
9361
|
}, { immediate: !0 }), le([() => t.input, () => t.modulePreset, () => t.readonly, () => t.theme, R, y, () => o == null ? void 0 : o.labelWidth.value], () => {
|
|
9361
9362
|
ae();
|
|
9362
|
-
}, { flush: "post" }),
|
|
9363
|
+
}, { flush: "post" }), Gn(() => {
|
|
9363
9364
|
P = !0, ae();
|
|
9364
|
-
}),
|
|
9365
|
-
P = !1,
|
|
9366
|
-
}), (A, L) => ($(), O("section",
|
|
9365
|
+
}), qe(() => {
|
|
9366
|
+
P = !1, M++, ct();
|
|
9367
|
+
}), (A, L) => ($(), O("section", Ze(A.$attrs, { class: "endge-timeline-chart" }), [
|
|
9367
9368
|
g.value || i.value ? ($(), O("header", Th, [
|
|
9368
9369
|
Z(o) ? ($(), O("button", {
|
|
9369
9370
|
key: 0,
|
|
@@ -9394,10 +9395,10 @@ const Th = {
|
|
|
9394
9395
|
"aria-valuenow": p.value,
|
|
9395
9396
|
"aria-valuemin": u.value,
|
|
9396
9397
|
"aria-valuemax": d.value,
|
|
9397
|
-
onPointerdown:
|
|
9398
|
-
onPointermove:
|
|
9399
|
-
onLostpointercapture: L[1] || (L[1] = (se) =>
|
|
9400
|
-
onKeydown:
|
|
9398
|
+
onPointerdown: Lo,
|
|
9399
|
+
onPointermove: Xn,
|
|
9400
|
+
onLostpointercapture: L[1] || (L[1] = (se) => ws(ie) ? ie.value = void 0 : ie = void 0),
|
|
9401
|
+
onKeydown: Ho
|
|
9401
9402
|
}, null, 40, Ph)) : ce("", !0)
|
|
9402
9403
|
], 16));
|
|
9403
9404
|
}
|
|
@@ -9413,11 +9414,11 @@ const Th = {
|
|
|
9413
9414
|
changed: { type: Function }
|
|
9414
9415
|
},
|
|
9415
9416
|
setup(e) {
|
|
9416
|
-
const t = e, n =
|
|
9417
|
+
const t = e, n = Ss(/* @__PURE__ */ new Map()), o = /* @__PURE__ */ new Map(), r = x(() => t.input.sync === "time"), i = N(), s = x(() => i.value ?? an(t.input["label-width"], 160, 0));
|
|
9417
9418
|
le(() => t.input["label-width"], () => {
|
|
9418
9419
|
i.value = void 0;
|
|
9419
9420
|
});
|
|
9420
|
-
const l = x(() =>
|
|
9421
|
+
const l = x(() => Or(t.input.range)), a = x(() => t.input.range != null && !l.value);
|
|
9421
9422
|
let u, d, g, v = !1, p = !1, m = !1;
|
|
9422
9423
|
function h() {
|
|
9423
9424
|
d == null || d.dispose(), d = void 0;
|
|
@@ -9444,12 +9445,12 @@ const Th = {
|
|
|
9444
9445
|
try {
|
|
9445
9446
|
const E = g ?? l.value ?? C.getViewport().timeRange;
|
|
9446
9447
|
if (r.value || l.value)
|
|
9447
|
-
for (const
|
|
9448
|
-
|
|
9448
|
+
for (const M of _)
|
|
9449
|
+
Ln(M.getViewport().timeRange, E) || M.setViewport({ timeRange: E }, { source: "timeline-sync" });
|
|
9449
9450
|
if (g = C.getViewport().timeRange, r.value && _.length > 1) {
|
|
9450
|
-
const
|
|
9451
|
+
const M = R();
|
|
9451
9452
|
d = u.linkViewports(_, {
|
|
9452
|
-
direction:
|
|
9453
|
+
direction: M ? { leader: M } : "any",
|
|
9453
9454
|
time: { position: "same-center", zoom: "same-duration" },
|
|
9454
9455
|
vertical: "independent"
|
|
9455
9456
|
});
|
|
@@ -9460,7 +9461,7 @@ const Th = {
|
|
|
9460
9461
|
}
|
|
9461
9462
|
}));
|
|
9462
9463
|
}
|
|
9463
|
-
return
|
|
9464
|
+
return Mo(Fl, {
|
|
9464
9465
|
labelWidth: s,
|
|
9465
9466
|
resizeLabels: (_) => {
|
|
9466
9467
|
Number.isFinite(_) && _ >= 0 && (i.value = _);
|
|
@@ -9474,31 +9475,31 @@ const Th = {
|
|
|
9474
9475
|
if (o.has(_))
|
|
9475
9476
|
throw new Error(`Два графика TimelineGroup имеют одинаковый key "${_}".`);
|
|
9476
9477
|
u = E;
|
|
9477
|
-
const
|
|
9478
|
-
m || p || P.origin === "sync" || r.value && R() && R() !== C ||
|
|
9478
|
+
const M = C.on("viewport.changed", (P) => {
|
|
9479
|
+
m || p || P.origin === "sync" || r.value && R() && R() !== C || Ln(P.current.timeRange, P.previous.timeRange) || (r.value && (g = P.current.timeRange), P.origin === "user" && t.changed({ ...P.current.timeRange }));
|
|
9479
9480
|
});
|
|
9480
|
-
return o.set(_, { chart: C, stop:
|
|
9481
|
+
return o.set(_, { chart: C, stop: M }), w(), () => {
|
|
9481
9482
|
var P;
|
|
9482
|
-
((P = o.get(_)) == null ? void 0 : P.chart) === C && (h(), o.delete(_),
|
|
9483
|
+
((P = o.get(_)) == null ? void 0 : P.chart) === C && (h(), o.delete(_), M(), w());
|
|
9483
9484
|
};
|
|
9484
9485
|
}
|
|
9485
9486
|
}), le(l, (_, C) => {
|
|
9486
|
-
_ && !
|
|
9487
|
-
}), le([r, () => t.input.leader, () => JSON.stringify(t.order)], w),
|
|
9487
|
+
_ && !Ln(_, C) && (g = _, w());
|
|
9488
|
+
}), le([r, () => t.input.leader, () => JSON.stringify(t.order)], w), qe(() => {
|
|
9488
9489
|
m = !0, h();
|
|
9489
9490
|
for (const _ of o.values())
|
|
9490
9491
|
_.stop();
|
|
9491
9492
|
o.clear(), n.clear();
|
|
9492
|
-
}), (_, C) => ($(), O("section",
|
|
9493
|
+
}), (_, C) => ($(), O("section", Ze(_.$attrs, { class: "endge-timeline-group" }), [
|
|
9493
9494
|
a.value ? ($(), O("p", Oh, " Диапазон TimelineGroup должен содержать start и end в миллисекундах, end больше start. ")) : ce("", !0),
|
|
9494
|
-
|
|
9495
|
+
Fn(_.$slots, "default", {}, void 0, !0)
|
|
9495
9496
|
], 16));
|
|
9496
9497
|
}
|
|
9497
9498
|
}), Vh = /* @__PURE__ */ Ut(zh, [["__scopeId", "data-v-bb1d9be2"]]), Nh = (e) => {
|
|
9498
9499
|
var i, s;
|
|
9499
9500
|
if (e.props.hidden === !0)
|
|
9500
9501
|
return null;
|
|
9501
|
-
const t = e.node.directives.key ? pe(e.node.directives.key, e.context) : e.props.id, n = String(t ?? ((i = e.context.iteration) == null ? void 0 : i.key) ?? e.node.id), o = e.props.preset, r = typeof o == "string" ?
|
|
9502
|
+
const t = e.node.directives.key ? pe(e.node.directives.key, e.context) : e.props.id, n = String(t ?? ((i = e.context.iteration) == null ? void 0 : i.key) ?? e.node.id), o = e.props.preset, r = typeof o == "string" ? T.runtime.modules.resolve(Fs(e.context), Nr, o) : void 0;
|
|
9502
9503
|
return e.h(Pl, {
|
|
9503
9504
|
...e.attrs,
|
|
9504
9505
|
[Vr]: r == null ? void 0 : r.visualToken,
|
|
@@ -9529,14 +9530,14 @@ const Th = {
|
|
|
9529
9530
|
order: n,
|
|
9530
9531
|
changed: (o) => Ol(e, "rangeChanged", o)
|
|
9531
9532
|
}, {
|
|
9532
|
-
default: () => t.map((o, r) =>
|
|
9533
|
+
default: () => t.map((o, r) => Fo(o, {
|
|
9533
9534
|
key: n[r],
|
|
9534
9535
|
splitAfter: e.props.splitter === !0 && r < t.length - 1
|
|
9535
9536
|
}))
|
|
9536
9537
|
});
|
|
9537
9538
|
};
|
|
9538
9539
|
function Dl(e) {
|
|
9539
|
-
return typeof e == "string" ? [] : e.type === Pl ? [e] : Array.isArray(e.children) ? e.children.filter(
|
|
9540
|
+
return typeof e == "string" ? [] : e.type === Pl ? [e] : Array.isArray(e.children) ? e.children.filter($o).flatMap(Dl) : [];
|
|
9540
9541
|
}
|
|
9541
9542
|
function Ol(e, t, n, o) {
|
|
9542
9543
|
var i;
|
|
@@ -9561,9 +9562,9 @@ const Hh = (e) => {
|
|
|
9561
9562
|
if (s.length === 0)
|
|
9562
9563
|
return null;
|
|
9563
9564
|
const a = `${(((g = e.context.host) == null ? void 0 : g.id) ?? e.context.componentStack.join(">")) || "sfc"}:${e.context.consumerScope}:${e.node.id}`, u = {};
|
|
9564
|
-
|
|
9565
|
+
Is(u, e.context.tooltipManager ?? null, a, (v) => ({
|
|
9565
9566
|
ownerId: a,
|
|
9566
|
-
domId:
|
|
9567
|
+
domId: ps(a),
|
|
9567
9568
|
anchor: v,
|
|
9568
9569
|
kind: o,
|
|
9569
9570
|
policy: {
|
|
@@ -9585,7 +9586,7 @@ const Hh = (e) => {
|
|
|
9585
9586
|
}
|
|
9586
9587
|
}));
|
|
9587
9588
|
const d = s.length === 1 ? s[0] : null;
|
|
9588
|
-
return d &&
|
|
9589
|
+
return d && $o(d) ? Fo(d, u, !0) : e.h("span", {
|
|
9589
9590
|
...u,
|
|
9590
9591
|
class: "endge-tooltip-trigger",
|
|
9591
9592
|
style: { display: "inline-flex", minWidth: 0 }
|
|
@@ -9624,10 +9625,10 @@ function Wh(e) {
|
|
|
9624
9625
|
function us(e) {
|
|
9625
9626
|
return String(e ?? "").trim() || void 0;
|
|
9626
9627
|
}
|
|
9627
|
-
const Uh =
|
|
9628
|
+
const Uh = "vue-native", ho = {
|
|
9628
9629
|
id: Uh,
|
|
9629
|
-
protocol:
|
|
9630
|
-
protocolVersion:
|
|
9630
|
+
protocol: To,
|
|
9631
|
+
protocolVersion: ko,
|
|
9631
9632
|
renderer: "vue",
|
|
9632
9633
|
renderers: {
|
|
9633
9634
|
Text: wh,
|
|
@@ -9650,10 +9651,10 @@ const Uh = zr, po = {
|
|
|
9650
9651
|
TimelineGroup: Lh
|
|
9651
9652
|
},
|
|
9652
9653
|
roots: {
|
|
9653
|
-
shell: En(
|
|
9654
|
+
shell: En(Gu),
|
|
9654
9655
|
sfc: En(qs),
|
|
9655
9656
|
"sfc-runtime": En(Ys),
|
|
9656
|
-
"filter-view": En(
|
|
9657
|
+
"filter-view": En(_s)
|
|
9657
9658
|
}
|
|
9658
9659
|
};
|
|
9659
9660
|
function qh(e, t) {
|
|
@@ -9695,7 +9696,7 @@ function Yh(e, t = { renderer: "dom", capabilities: [] }) {
|
|
|
9695
9696
|
});
|
|
9696
9697
|
if (Ya(d.supports, t))
|
|
9697
9698
|
for (const g of d.selectors) {
|
|
9698
|
-
const v =
|
|
9699
|
+
const v = mo(g, a.scope === "component" ? a.scopeId : void 0);
|
|
9699
9700
|
for (const p of d.declarations)
|
|
9700
9701
|
r.push({
|
|
9701
9702
|
selector: g,
|
|
@@ -9718,12 +9719,12 @@ function Yh(e, t = { renderer: "dom", capabilities: [] }) {
|
|
|
9718
9719
|
const a = s.property ? `${s.property}:${s.value}${s.important ? "!important" : ""};` : s.value, u = `${l}{${a}}`;
|
|
9719
9720
|
if (!s.scope)
|
|
9720
9721
|
return u;
|
|
9721
|
-
const d = s.scope.root.map((p) =>
|
|
9722
|
+
const d = s.scope.root.map((p) => mo(p, s.artifactScopeId)).join(","), g = (v = s.scope.limit) == null ? void 0 : v.map((p) => mo(p, s.artifactScopeId)).join(",");
|
|
9722
9723
|
return `@scope (${d})${g ? ` to (${g})` : ""}{${u}}`;
|
|
9723
9724
|
}).join(`
|
|
9724
9725
|
`), classes: [], diagnostics: n };
|
|
9725
9726
|
}
|
|
9726
|
-
function
|
|
9727
|
+
function mo(e, t) {
|
|
9727
9728
|
return e.segments.length === 0 ? e.source : e.segments.map((n, o) => {
|
|
9728
9729
|
const r = o === 0 ? "" : n.combinator === "child" ? " > " : n.combinator === "adjacent" ? " + " : n.combinator === "sibling" ? " ~ " : " ", i = o === e.segments.length - 1;
|
|
9729
9730
|
return `${r}${Jh(n.compound, i ? t : void 0)}`;
|
|
@@ -9739,7 +9740,7 @@ function Jh(e, t) {
|
|
|
9739
9740
|
for (const o of e.attributes)
|
|
9740
9741
|
n.push(Qh(o));
|
|
9741
9742
|
for (const o of e.pseudos)
|
|
9742
|
-
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=${Ke(o.value)}]`) : o.name === "identity" ? n.push(`[data-endge-identity=${Ke(o.value)}]`) : o.name === "state" ? n.push(`[data-endge-state~=${Ke(o.value)}]`) : o.name === "part" ? n.push(`[data-endge-part~=${Ke(o.value)}]`) : "selectors" in o && n.push(`:${o.name}(${o.selectors.map((r) =>
|
|
9743
|
+
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=${Ke(o.value)}]`) : o.name === "identity" ? n.push(`[data-endge-identity=${Ke(o.value)}]`) : o.name === "state" ? n.push(`[data-endge-state~=${Ke(o.value)}]`) : o.name === "part" ? n.push(`[data-endge-part~=${Ke(o.value)}]`) : "selectors" in o && n.push(`:${o.name}(${o.selectors.map((r) => mo(r, t)).join(",")})`);
|
|
9743
9744
|
return t && n.push(`[data-endge-scope=${Ke(t)}]`), n.join("") || "*";
|
|
9744
9745
|
}
|
|
9745
9746
|
function Qh(e) {
|
|
@@ -9796,7 +9797,7 @@ class tm {
|
|
|
9796
9797
|
}
|
|
9797
9798
|
}
|
|
9798
9799
|
class nm extends Ja {
|
|
9799
|
-
constructor(n =
|
|
9800
|
+
constructor(n = ho) {
|
|
9800
9801
|
super();
|
|
9801
9802
|
// В debugger участвует только регистрация renderer и отображение наблюдаемых стилей.
|
|
9802
9803
|
te(this, "debuggerCompatible", !0);
|
|
@@ -9812,26 +9813,26 @@ class nm extends Ja {
|
|
|
9812
9813
|
}
|
|
9813
9814
|
setup(n) {
|
|
9814
9815
|
var o;
|
|
9815
|
-
this._adapterFallbackIds = ((o = n == null ? void 0 : n.ui) == null ? void 0 : o.adapterFallbackIds) ?? [],
|
|
9816
|
+
this._adapterFallbackIds = ((o = n == null ? void 0 : n.ui) == null ? void 0 : o.adapterFallbackIds) ?? [], T.uiRegistry.adapters.register(this._adapter);
|
|
9816
9817
|
}
|
|
9817
9818
|
build() {
|
|
9818
9819
|
this._activateWorkspaceAdapter();
|
|
9819
9820
|
}
|
|
9820
9821
|
_activateWorkspaceAdapter() {
|
|
9821
|
-
if (
|
|
9822
|
+
if (T.mode === "debugger" && !T.configuration.isResolved)
|
|
9822
9823
|
return;
|
|
9823
|
-
const n =
|
|
9824
|
+
const n = T.workspace.defaultSfcAdapterId, o = T.uiRegistry.adapters.resolveAvailable(
|
|
9824
9825
|
n,
|
|
9825
9826
|
this._adapterFallbackIds
|
|
9826
9827
|
);
|
|
9827
9828
|
if (!o) {
|
|
9828
|
-
|
|
9829
|
+
T.uiRegistry.adapters.require({ id: n });
|
|
9829
9830
|
return;
|
|
9830
9831
|
}
|
|
9831
|
-
o.renderer === "vue" &&
|
|
9832
|
+
o.renderer === "vue" && T.uiRegistry.adapters.activate({
|
|
9832
9833
|
id: o.id,
|
|
9833
|
-
protocol:
|
|
9834
|
-
protocolVersion:
|
|
9834
|
+
protocol: To,
|
|
9835
|
+
protocolVersion: ko,
|
|
9835
9836
|
renderer: "vue",
|
|
9836
9837
|
requiredRendererKeys: Lr,
|
|
9837
9838
|
requiredRootKeys: ["shell", "sfc", "sfc-runtime", "filter-view"]
|
|
@@ -9839,17 +9840,17 @@ class nm extends Ja {
|
|
|
9839
9840
|
}
|
|
9840
9841
|
start() {
|
|
9841
9842
|
if (!this._started) {
|
|
9842
|
-
if (this._started = !0,
|
|
9843
|
-
this._unsubscribeWorkspace =
|
|
9843
|
+
if (this._started = !0, T.mode === "debugger") {
|
|
9844
|
+
this._unsubscribeWorkspace = T.configuration.subscribe(() => {
|
|
9844
9845
|
this._activateWorkspaceAdapter(), this._refreshStyles();
|
|
9845
|
-
}), this._unsubscribeRuntimeScopes =
|
|
9846
|
+
}), this._unsubscribeRuntimeScopes = T.runtime.subscribe(() => this._refreshStyles()), this._unsubscribeUIRegistry = T.uiRegistry.subscribe(() => this._refreshStyles()), this._refreshStyles();
|
|
9846
9847
|
return;
|
|
9847
9848
|
}
|
|
9848
9849
|
lt.phases.some((n) => n.name === "watch") || lt.addPhase({
|
|
9849
9850
|
name: "watch"
|
|
9850
|
-
}), this._unsubscribeWorkspace =
|
|
9851
|
+
}), this._unsubscribeWorkspace = T.workspace.subscribe(() => {
|
|
9851
9852
|
this._activateWorkspaceAdapter(), this._refreshStyles();
|
|
9852
|
-
}), this._unsubscribeStyles =
|
|
9853
|
+
}), this._unsubscribeStyles = T.styles.subscribe(() => this._refreshStyles()), this._unsubscribeProgram = T.program.subscribe(() => this._refreshStyles()), this._unsubscribeUIRegistry = T.uiRegistry.subscribe(() => this._refreshStyles()), this._unsubscribeRuntimeScopes = T.runtime.scopes.subscribe(() => this._refreshStyles()), this._refreshStyles();
|
|
9853
9854
|
}
|
|
9854
9855
|
}
|
|
9855
9856
|
reset() {
|
|
@@ -9860,11 +9861,11 @@ class nm extends Ja {
|
|
|
9860
9861
|
* Связывает Vue ref с dynamic state текущего Endge context scope.
|
|
9861
9862
|
*/
|
|
9862
9863
|
useContextState(n, o, r) {
|
|
9863
|
-
return
|
|
9864
|
+
return mu(n, o, r);
|
|
9864
9865
|
}
|
|
9865
9866
|
makeRaphRef(n) {
|
|
9866
|
-
const o = N(lt.get(n)), r = new
|
|
9867
|
-
id: `watch:${
|
|
9867
|
+
const o = N(lt.get(n)), r = new au(lt.runtime(), {
|
|
9868
|
+
id: `watch:${su(5)}`,
|
|
9868
9869
|
meta: {
|
|
9869
9870
|
type: "watch",
|
|
9870
9871
|
path: n
|
|
@@ -9876,7 +9877,7 @@ class nm extends Ja {
|
|
|
9876
9877
|
o.value = lt.get(n);
|
|
9877
9878
|
}
|
|
9878
9879
|
);
|
|
9879
|
-
return
|
|
9880
|
+
return qe(() => {
|
|
9880
9881
|
i(), r.dispose();
|
|
9881
9882
|
}), le(o, () => {
|
|
9882
9883
|
lt.set(n, o.value);
|
|
@@ -9887,20 +9888,20 @@ class nm extends Ja {
|
|
|
9887
9888
|
}
|
|
9888
9889
|
_refreshStyles() {
|
|
9889
9890
|
var r, i;
|
|
9890
|
-
if (((r =
|
|
9891
|
+
if (((r = T.uiRegistry.adapters.active) == null ? void 0 : r.renderer) !== "vue") {
|
|
9891
9892
|
this._styleRuntime.reset();
|
|
9892
9893
|
return;
|
|
9893
9894
|
}
|
|
9894
|
-
if (
|
|
9895
|
-
this._styleRuntime.update(((i =
|
|
9895
|
+
if (T.mode === "debugger") {
|
|
9896
|
+
this._styleRuntime.update(((i = T.runtime.inspection.render) == null ? void 0 : i.styles) ?? [], { renderer: "dom", capabilities: [] });
|
|
9896
9897
|
return;
|
|
9897
9898
|
}
|
|
9898
|
-
const n = [...
|
|
9899
|
+
const n = [...T.styles.getActivePlacements()], o = T.runtime.scopes.getAll().filter((s) => s.state !== "active" && s.state !== "inactive" && s.state !== "disposed").map((s) => s.id);
|
|
9899
9900
|
this._styleRuntime.update(n, { renderer: "dom", capabilities: [] }, o);
|
|
9900
9901
|
}
|
|
9901
9902
|
}
|
|
9902
9903
|
function om(e = {}) {
|
|
9903
|
-
const t = e.defaultRenderers, n = t ? { ...
|
|
9904
|
+
const t = e.defaultRenderers, n = t ? { ...ho, renderers: { ...ho.renderers, ...t } } : ho;
|
|
9904
9905
|
return {
|
|
9905
9906
|
id: "@endge/ui-vue",
|
|
9906
9907
|
modules: [
|
|
@@ -9918,54 +9919,54 @@ function Im(e) {
|
|
|
9918
9919
|
const t = String(e ?? "").trim();
|
|
9919
9920
|
if (!t)
|
|
9920
9921
|
throw new Error("[useCurrentFacet] facetIdentity is required");
|
|
9921
|
-
const n = N(
|
|
9922
|
-
n.value =
|
|
9922
|
+
const n = N(T.context.getFacetSelection(t)), o = T.context.subscribe(() => {
|
|
9923
|
+
n.value = T.context.getFacetSelection(t);
|
|
9923
9924
|
});
|
|
9924
|
-
return
|
|
9925
|
+
return We(o), {
|
|
9925
9926
|
current: n,
|
|
9926
|
-
locked: () =>
|
|
9927
|
-
setCurrent: (r) =>
|
|
9927
|
+
locked: () => T.context.isFacetLockedBySession(t),
|
|
9928
|
+
setCurrent: (r) => T.commands.execute({
|
|
9928
9929
|
type: "context:set-facet",
|
|
9929
9930
|
payload: { facet: t, document: r }
|
|
9930
9931
|
})
|
|
9931
9932
|
};
|
|
9932
9933
|
}
|
|
9933
9934
|
function Em() {
|
|
9934
|
-
const e =
|
|
9935
|
+
const e = T.context, t = N(e.currentLocale), n = e.subscribe(() => {
|
|
9935
9936
|
t.value = e.currentLocale;
|
|
9936
9937
|
});
|
|
9937
|
-
return
|
|
9938
|
+
return We(n), {
|
|
9938
9939
|
current: t,
|
|
9939
|
-
setCurrent: (o) =>
|
|
9940
|
+
setCurrent: (o) => T.commands.execute({ type: "context:set-locale", payload: { locale: o } })
|
|
9940
9941
|
};
|
|
9941
9942
|
}
|
|
9942
9943
|
function xm() {
|
|
9943
|
-
const e =
|
|
9944
|
+
const e = T.context, t = N(e.currentTheme), n = e.subscribe(() => {
|
|
9944
9945
|
t.value = e.currentTheme;
|
|
9945
9946
|
});
|
|
9946
|
-
return
|
|
9947
|
+
return We(n), {
|
|
9947
9948
|
current: t,
|
|
9948
|
-
setCurrent: (o) =>
|
|
9949
|
+
setCurrent: (o) => T.commands.execute({ type: "context:set-theme", payload: { theme: o } })
|
|
9949
9950
|
};
|
|
9950
9951
|
}
|
|
9951
9952
|
function km() {
|
|
9952
|
-
const e =
|
|
9953
|
+
const e = T.context, t = N(e.currentTimezone), n = e.subscribe(() => {
|
|
9953
9954
|
t.value = e.currentTimezone;
|
|
9954
9955
|
});
|
|
9955
|
-
return
|
|
9956
|
+
return We(n), {
|
|
9956
9957
|
current: t,
|
|
9957
|
-
setCurrent: (o) =>
|
|
9958
|
+
setCurrent: (o) => T.commands.execute({ type: "context:set-timezone", payload: { timezone: o } })
|
|
9958
9959
|
};
|
|
9959
9960
|
}
|
|
9960
|
-
function
|
|
9961
|
-
const t = bt(e), n = e.subscribe(() =>
|
|
9961
|
+
function zr(e) {
|
|
9962
|
+
const t = bt(e), n = e.subscribe(() => wr(t));
|
|
9962
9963
|
return { refObj: t, unsubscribe: n };
|
|
9963
9964
|
}
|
|
9964
9965
|
function rm(e) {
|
|
9965
|
-
const { refObj: t, unsubscribe: n } =
|
|
9966
|
-
return
|
|
9966
|
+
const { refObj: t, unsubscribe: n } = zr(e);
|
|
9967
|
+
return We(n), t;
|
|
9967
9968
|
}
|
|
9968
|
-
const Tm = () => rm(
|
|
9969
|
+
const Tm = () => rm(T.ui);
|
|
9969
9970
|
function Mm(e) {
|
|
9970
9971
|
e.config.warnHandler = (t, n, o) => {
|
|
9971
9972
|
const r = o ? `
|
|
@@ -9973,7 +9974,28 @@ ${o}` : "";
|
|
|
9973
9974
|
console.warn(`[Vue warn] ${t}${r}`);
|
|
9974
9975
|
};
|
|
9975
9976
|
}
|
|
9976
|
-
function $m(e) {
|
|
9977
|
+
async function $m(e, t, n, o) {
|
|
9978
|
+
var a;
|
|
9979
|
+
const r = Qa(e), i = (a = r.delivery) == null ? void 0 : a.modules, s = new Map(i == null ? void 0 : i.map((u) => [$n(u.manifest), u])), l = async (u, d) => {
|
|
9980
|
+
const g = s.get($n(u));
|
|
9981
|
+
if (!g)
|
|
9982
|
+
throw new Error(`[Bundle] Missing embedded module "${$n(u)}"`);
|
|
9983
|
+
const v = await o();
|
|
9984
|
+
d.throwIfAborted();
|
|
9985
|
+
const p = URL.createObjectURL(new Blob([g.js], { type: "text/javascript" }));
|
|
9986
|
+
try {
|
|
9987
|
+
const m = await import(
|
|
9988
|
+
/* @vite-ignore */
|
|
9989
|
+
p
|
|
9990
|
+
);
|
|
9991
|
+
return d.throwIfAborted(), Ts(m, v, g.css);
|
|
9992
|
+
} finally {
|
|
9993
|
+
URL.revokeObjectURL(p);
|
|
9994
|
+
}
|
|
9995
|
+
};
|
|
9996
|
+
await T.bootDelivery(r, t, { ...n, moduleLoader: i ? l : n.moduleLoader });
|
|
9997
|
+
}
|
|
9998
|
+
function Fm(e) {
|
|
9977
9999
|
return async (t, n) => {
|
|
9978
10000
|
var w;
|
|
9979
10001
|
const o = new URL(e.backendURL, location.href), r = o.origin === location.origin;
|
|
@@ -9995,10 +10017,10 @@ function $m(e) {
|
|
|
9995
10017
|
if (u.version !== t.version || (d == null ? void 0 : d.identity) !== t.identity || d.version !== t.version || d.formatVersion !== 1 || d.hostApi !== 1)
|
|
9996
10018
|
throw new Error(`Incompatible module manifest for "${t.identity}@${t.version}".`);
|
|
9997
10019
|
const g = (_, C) => {
|
|
9998
|
-
const E = `${l}/assets/${C}`,
|
|
9999
|
-
if (
|
|
10020
|
+
const E = `${l}/assets/${C}`, M = new URL(_, o.origin);
|
|
10021
|
+
if (M.href !== E)
|
|
10000
10022
|
throw new Error(`Module asset must use the configured Backend origin and catalog path: ${C}.`);
|
|
10001
|
-
return
|
|
10023
|
+
return M.href;
|
|
10002
10024
|
}, v = g(u.assets.js, "module.js"), p = u.assets.css && g(u.assets.css, "module.css"), [m, h, y] = await Promise.all([
|
|
10003
10025
|
e.host(),
|
|
10004
10026
|
p ? a(p).then((_) => _.text()) : void 0,
|
|
@@ -10011,35 +10033,35 @@ function $m(e) {
|
|
|
10011
10033
|
/* @vite-ignore */
|
|
10012
10034
|
R ?? v
|
|
10013
10035
|
);
|
|
10014
|
-
return n.throwIfAborted(),
|
|
10036
|
+
return n.throwIfAborted(), Ts(_, m, h);
|
|
10015
10037
|
} finally {
|
|
10016
10038
|
R && URL.revokeObjectURL(R);
|
|
10017
10039
|
}
|
|
10018
10040
|
};
|
|
10019
10041
|
}
|
|
10020
|
-
function
|
|
10021
|
-
|
|
10042
|
+
function Am(e) {
|
|
10043
|
+
T.uiRegistry.registerRenderer({
|
|
10022
10044
|
...e,
|
|
10023
10045
|
component: En(e.component)
|
|
10024
10046
|
});
|
|
10025
10047
|
}
|
|
10026
|
-
function
|
|
10048
|
+
function Pm(e, t) {
|
|
10027
10049
|
if (!e.trim())
|
|
10028
10050
|
return;
|
|
10029
|
-
const n =
|
|
10051
|
+
const n = Za(e, {
|
|
10030
10052
|
props: Object.keys(t.props),
|
|
10031
10053
|
locals: Object.keys(t.locals)
|
|
10032
10054
|
});
|
|
10033
10055
|
return pe(n.value, t);
|
|
10034
10056
|
}
|
|
10035
10057
|
function im() {
|
|
10036
|
-
const { refObj: e } =
|
|
10058
|
+
const { refObj: e } = zr(T.domain), { refObj: t } = zr(T.program), n = x(() => e.value.getFacets()), o = x(() => n.value.flatMap((z) => e.value.getFacetDocuments(z.identity))), r = x(() => e.value.getTypes()), i = x(
|
|
10037
10059
|
() => r.value.filter((z) => z.isPrimitive)
|
|
10038
10060
|
), s = x(() => r.value.filter((z) => !z.isPrimitive)), l = x(() => {
|
|
10039
10061
|
const z = t.value.getTypeCatalog();
|
|
10040
10062
|
return z.length ? z : r.value.map((U) => {
|
|
10041
10063
|
var re, ie, we, He;
|
|
10042
|
-
const F = String(((re = U.meta) == null ? void 0 : re.primitiveKind) ?? "").trim() === "reference" ? "reference" : U.isPrimitive ? "primitive" : "user", V = U.isPrimitive ? void 0 :
|
|
10064
|
+
const F = String(((re = U.meta) == null ? void 0 : re.primitiveKind) ?? "").trim() === "reference" ? "reference" : U.isPrimitive ? "primitive" : "user", V = U.isPrimitive ? void 0 : T.source.compile("type", String(U.source ?? "")).artifact, D = String(((ie = U.meta) == null ? void 0 : ie.target) ?? "").trim();
|
|
10043
10065
|
return {
|
|
10044
10066
|
id: U.id,
|
|
10045
10067
|
identity: U.identity,
|
|
@@ -10052,8 +10074,8 @@ function im() {
|
|
|
10052
10074
|
status: "valid"
|
|
10053
10075
|
};
|
|
10054
10076
|
});
|
|
10055
|
-
}), a = x(() => e.value.getQueries()), u = x(() => e.value.getComponents()), d = x(() => e.value.getComponentSFCs()), g = x(() => e.value.getActions()), v = x(() => e.value.getConverters()), p = x(() => e.value.getIntegrations()), m = x(() => e.value.getPageTemplates()), h = x(() => e.value.getPages()), y = x(() => e.value.getNavigations()), R = x(() => e.value.getFolders()), w = x(() => e.value.getFilters()), _ = x(() => e.value.getCompositions()), C = x(() => e.value.getPolicies()), E = x(() => e.value.getStyles()),
|
|
10056
|
-
return
|
|
10077
|
+
}), a = x(() => e.value.getQueries()), u = x(() => e.value.getComponents()), d = x(() => e.value.getComponentSFCs()), g = x(() => e.value.getActions()), v = x(() => e.value.getConverters()), p = x(() => e.value.getIntegrations()), m = x(() => e.value.getPageTemplates()), h = x(() => e.value.getPages()), y = x(() => e.value.getNavigations()), R = x(() => e.value.getFolders()), w = x(() => e.value.getFilters()), _ = x(() => e.value.getCompositions()), C = x(() => e.value.getPolicies()), E = x(() => e.value.getStyles()), M = x(() => e.value.getVocabs()), P = x(() => e.value.getI18nBundles()), H = x(() => e.value.getMocks()), Y = x(() => e.value.getAuthProfiles()), G = x(() => ["query-gql", "query-rest"]);
|
|
10078
|
+
return ms({
|
|
10057
10079
|
domain: e,
|
|
10058
10080
|
facets: n,
|
|
10059
10081
|
facetDocuments: o,
|
|
@@ -10076,14 +10098,14 @@ function im() {
|
|
|
10076
10098
|
compositions: _,
|
|
10077
10099
|
policies: C,
|
|
10078
10100
|
styles: E,
|
|
10079
|
-
vocabs:
|
|
10101
|
+
vocabs: M,
|
|
10080
10102
|
i18nBundles: P,
|
|
10081
10103
|
mocks: H,
|
|
10082
10104
|
authProfiles: Y
|
|
10083
10105
|
});
|
|
10084
10106
|
}
|
|
10085
10107
|
let ds = null;
|
|
10086
|
-
function
|
|
10108
|
+
function Dm() {
|
|
10087
10109
|
return ds ?? (ds = im()), ds;
|
|
10088
10110
|
}
|
|
10089
10111
|
const sm = { class: "endge-page" }, lm = /* @__PURE__ */ be({
|
|
@@ -10094,24 +10116,24 @@ const sm = { class: "endge-page" }, lm = /* @__PURE__ */ be({
|
|
|
10094
10116
|
},
|
|
10095
10117
|
setup(e) {
|
|
10096
10118
|
const t = e, n = x(
|
|
10097
|
-
() =>
|
|
10119
|
+
() => T.domain.getPage(t.identity) ?? null
|
|
10098
10120
|
), o = N(null);
|
|
10099
|
-
return
|
|
10121
|
+
return pu(() => {
|
|
10100
10122
|
if (!n.value)
|
|
10101
10123
|
return;
|
|
10102
|
-
const r =
|
|
10124
|
+
const r = T.runtime.execute(n.value, {});
|
|
10103
10125
|
r && (o.value = r);
|
|
10104
|
-
}),
|
|
10126
|
+
}), hu(() => {
|
|
10105
10127
|
var r;
|
|
10106
|
-
(r = o.value) != null && r.id && (
|
|
10128
|
+
(r = o.value) != null && r.id && (T.runtime.destroyRuntime(o.value.id), o.value = null);
|
|
10107
10129
|
}), (r, i) => ($(), O("div", sm, [
|
|
10108
|
-
|
|
10130
|
+
Fn(r.$slots, "default", {
|
|
10109
10131
|
page: n.value,
|
|
10110
10132
|
runtime: o.value
|
|
10111
10133
|
}, void 0, !0)
|
|
10112
10134
|
]));
|
|
10113
10135
|
}
|
|
10114
|
-
}),
|
|
10136
|
+
}), Om = /* @__PURE__ */ Ut(lm, [["__scopeId", "data-v-a1f10262"]]), zm = /* @__PURE__ */ be({
|
|
10115
10137
|
name: "EndgeTanStackTableRuntimeRenderer",
|
|
10116
10138
|
inheritAttrs: !1,
|
|
10117
10139
|
__name: "TanStackTableRuntimeRenderer",
|
|
@@ -10125,34 +10147,34 @@ const sm = { class: "endge-page" }, lm = /* @__PURE__ */ be({
|
|
|
10125
10147
|
},
|
|
10126
10148
|
setup(e) {
|
|
10127
10149
|
const t = e, n = N(""), o = N(t.filtersDefaultOpen);
|
|
10128
|
-
return
|
|
10150
|
+
return Mo(hl, {
|
|
10129
10151
|
showSearch: x(() => t.showSearch),
|
|
10130
10152
|
showFilters: x(() => t.showFilters),
|
|
10131
10153
|
filterRuntime: x(() => t.filterRuntime),
|
|
10132
10154
|
searchValue: n,
|
|
10133
10155
|
filtersVisible: o
|
|
10134
|
-
}), (r, i) => ($(),
|
|
10156
|
+
}), (r, i) => ($(), Ue(Ys, Ze(r.$attrs, {
|
|
10135
10157
|
host: e.host,
|
|
10136
10158
|
input: e.input
|
|
10137
10159
|
}), null, 16, ["host", "input"]));
|
|
10138
10160
|
}
|
|
10139
10161
|
});
|
|
10140
10162
|
export {
|
|
10141
|
-
|
|
10163
|
+
zu as EndgeContextMenuRoot,
|
|
10142
10164
|
tm as EndgeDOMStyleRuntime,
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10165
|
+
Ru as EndgeFilterField,
|
|
10166
|
+
_s as EndgeFilterRenderer,
|
|
10167
|
+
Om as EndgePage,
|
|
10168
|
+
Gu as EndgeShell,
|
|
10147
10169
|
Rm as EndgeVuePlugin,
|
|
10148
|
-
|
|
10149
|
-
|
|
10170
|
+
Nu as EndgeVueTooltipManager,
|
|
10171
|
+
Rs as EndgeVueTooltipManagerKey,
|
|
10150
10172
|
nm as EndgeVue_Module,
|
|
10151
10173
|
Vr as MODULE_VISUAL_ATTRIBUTE,
|
|
10152
10174
|
Uh as NATIVE_VUE_SFC_ADAPTER_ID,
|
|
10153
|
-
|
|
10175
|
+
ho as NativeVueSFCAdapter,
|
|
10154
10176
|
Yc as SFCRender_Badge,
|
|
10155
|
-
|
|
10177
|
+
zo as SFCRender_Base,
|
|
10156
10178
|
Jc as SFCRender_Box,
|
|
10157
10179
|
Qc as SFCRender_Checkbox,
|
|
10158
10180
|
Dc as SFCRender_Component,
|
|
@@ -10177,12 +10199,13 @@ export {
|
|
|
10177
10199
|
Xu as SFC_VUE_RENDER_ADAPTER_OPTIONAL_KEYS,
|
|
10178
10200
|
Lr as SFC_VUE_RENDER_ADAPTER_REQUIRED_KEYS,
|
|
10179
10201
|
oh as TanStackSfcDataTable,
|
|
10180
|
-
|
|
10181
|
-
|
|
10202
|
+
zm as TanStackTableRuntimeRenderer,
|
|
10203
|
+
An as VUE_MODULE_RENDERERS,
|
|
10182
10204
|
Nr as VUE_MODULE_TIMELINE_PRESETS,
|
|
10183
10205
|
wm as applyRowSnapshots,
|
|
10184
|
-
|
|
10206
|
+
Is as attachEndgeTooltipTriggerAttrs,
|
|
10185
10207
|
Ks as attachSFCShorthandTooltip,
|
|
10208
|
+
$m as bootVueDelivery,
|
|
10186
10209
|
cn as closeEndgeContextMenu,
|
|
10187
10210
|
om as createEndgeVuePlugin,
|
|
10188
10211
|
ym as createInitialTableVisibility,
|
|
@@ -10194,20 +10217,20 @@ export {
|
|
|
10194
10217
|
Kd as createSFCTableStyleContract,
|
|
10195
10218
|
Xc as createSFCVueBoundaryRegistry,
|
|
10196
10219
|
Os as createSFCVueRenderContext,
|
|
10197
|
-
|
|
10198
|
-
|
|
10220
|
+
Ts as createVueModuleArtifact,
|
|
10221
|
+
Fm as createVueModuleCatalogLoader,
|
|
10199
10222
|
Ud as decorateSFCTableRowWindow,
|
|
10200
10223
|
me as endgeContextMenuState,
|
|
10201
10224
|
Sm as evaluateSFCBinding,
|
|
10202
|
-
|
|
10203
|
-
|
|
10225
|
+
Pm as evaluateSFCExpression,
|
|
10226
|
+
Po as evaluateSFCProps,
|
|
10204
10227
|
pe as evaluateSFCValue,
|
|
10205
|
-
|
|
10206
|
-
|
|
10228
|
+
ku as executeEndgeContextMenuItem,
|
|
10229
|
+
So as extendSFCVueRenderContext,
|
|
10207
10230
|
ec as extendSFCVueStyleContext,
|
|
10208
10231
|
bm as filterVisibleTableColumns,
|
|
10209
10232
|
od as formatSFCDateTime,
|
|
10210
|
-
|
|
10233
|
+
Cs as getContextMenuItems,
|
|
10211
10234
|
gm as getExecutableContextMenuItems,
|
|
10212
10235
|
ol as getSFCTableCellStyleSurfaces,
|
|
10213
10236
|
qd as getSFCTableRowAttrs,
|
|
@@ -10219,24 +10242,24 @@ export {
|
|
|
10219
10242
|
Qs as normalizeSFCTableCellAlignment,
|
|
10220
10243
|
uh as normalizeSFCTableRows,
|
|
10221
10244
|
bi as openEndgeContextMenu,
|
|
10222
|
-
|
|
10245
|
+
et as readSFCObjectPath,
|
|
10223
10246
|
Ju as readSFCPath,
|
|
10224
10247
|
hm as registerNamedScopedVueRenderer,
|
|
10225
10248
|
mm as registerScopedTimelinePreset,
|
|
10226
10249
|
pm as registerScopedVueRenderer,
|
|
10227
10250
|
_m as registerTimelinePreset,
|
|
10228
|
-
|
|
10251
|
+
Am as registerVueUIRenderer,
|
|
10229
10252
|
Bc as renderSFCNode,
|
|
10230
|
-
|
|
10231
|
-
|
|
10253
|
+
jn as renderSFCNodes,
|
|
10254
|
+
Tu as resolveEndgeContextMenuItemLabel,
|
|
10232
10255
|
_c as resolveSFCConditionState,
|
|
10233
10256
|
Yi as resolveSFCTableMenu,
|
|
10234
10257
|
Im as useCurrentFacet,
|
|
10235
10258
|
Em as useCurrentLocale,
|
|
10236
10259
|
xm as useCurrentTheme,
|
|
10237
10260
|
km as useCurrentTimezone,
|
|
10238
|
-
|
|
10239
|
-
|
|
10261
|
+
Dm as useDomainStore,
|
|
10262
|
+
zr as useSubscribableRef,
|
|
10240
10263
|
rm as useSubscribableRefAuto,
|
|
10241
10264
|
Tm as useUI
|
|
10242
10265
|
};
|