@anzusystems/common-admin 1.47.0-beta.dev-1778753798 → 1.47.0-beta.dev-1778753799
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/{AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-eJ6YNvVA.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-3VlaKOsM.mjs} +42 -40
- package/dist/{AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-eJ6YNvVA.mjs.map → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-3VlaKOsM.mjs.map} +1 -1
- package/dist/common-admin.js +3 -3
- package/dist/labs.d.ts +94 -68
- package/dist/labs.js +1197 -1171
- package/dist/labs.js.map +1 -1
- package/dist/{webfontloader-CvrnzcV5.mjs → webfontloader-BpY5NwUr.mjs} +2 -2
- package/dist/{webfontloader-CvrnzcV5.mjs.map → webfontloader-BpY5NwUr.mjs.map} +1 -1
- package/package.json +1 -1
package/dist/labs.js
CHANGED
|
@@ -1,27 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { aE as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import {
|
|
1
|
+
import { aG as Ma, aH as za, d as ye, bT as Na, bU as Oa, bV as In, j as Ue, k as Ua, a1 as ja, h as mt, i as Tt, aj as Pn, ak as Dn, al as En, am as Tn, ag as $t, a_ as $n, aa as Fn, ab as Bn, ac as Kn, ad as Rn, an as Vn, ao as Ln, ae as Mn, af as zn, bW as Nn, bX as On, be as Un, bY as qa, as as jn, bZ as Qt, ap as Ga, aq as Wa, aV as Ha, b2 as Ja, ar as Xa, E as Ya, a8 as Qa, a2 as Za, b_ as _a, q as eo, p as to, x as no, a7 as ao, aI as oo, m as qn, b$ as lo, l as io, c0 as so, c1 as Gn, c2 as Wn, c3 as Hn, c4 as Jn, c5 as Xn, c6 as Yn, c7 as Qn, c8 as Zn, c9 as _n, ca as ea, g as ke, cb as ro, _ as ta, cc as co, cd as uo, ce as fo, cf as mo, aU as vo, cg as yo, ch as ho, ci as po, z as go } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-3VlaKOsM.mjs";
|
|
2
|
+
import { aE as Ui, cj as ji, ck as qi, aA as Gi, aB as Wi, aD as Hi, aF as Ji, aC as Xi, aS as Yi, aJ as Qi, bb as Zi, aO as _i, aX as es, ay as ts, az as ns, cl as as, cm as os, cn as ls, co as is, cp as ss, cq as rs, cr as ds, ai as cs, ah as us, cs as fs, ct as ms, cu as vs, cv as ys } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-3VlaKOsM.mjs";
|
|
3
|
+
import { defineComponent as je, inject as vt, provide as Ft, ref as de, openBlock as h, createBlock as H, withModifiers as ne, withCtx as r, renderSlot as M, useModel as We, computed as b, watch as Ee, createElementBlock as R, createElementVNode as z, toDisplayString as B, unref as d, createVNode as i, createTextVNode as G, Fragment as ve, renderList as Ze, normalizeClass as xe, mergeModels as Le, createCommentVNode as W, onMounted as _t, toRaw as bn, resolveComponent as kn, mergeProps as ie, withDirectives as bo, vShow as ko, useSlots as na, useTemplateRef as Bt, isRef as aa, normalizeStyle as yt, normalizeProps as Ve, guardReactiveProps as Ge, shallowRef as Zt, nextTick as Oe, onBeforeUnmount as en, getCurrentInstance as tn, reactive as wo } from "vue";
|
|
4
|
+
import { VForm as Co } from "vuetify/components/VForm";
|
|
5
|
+
import { useI18n as He } from "vue-i18n";
|
|
5
6
|
import { VBtn as _ } from "vuetify/components/VBtn";
|
|
6
|
-
import { VList as
|
|
7
|
-
import { VMenu as
|
|
8
|
-
import { useThrottleFn as
|
|
9
|
-
import { VBtnToggle as
|
|
7
|
+
import { VList as ht, VListItem as Pe, VListItemTitle as Ke } from "vuetify/components/VList";
|
|
8
|
+
import { VMenu as Kt } from "vuetify/components/VMenu";
|
|
9
|
+
import { useThrottleFn as St, useDebounceFn as xo } from "@vueuse/core";
|
|
10
|
+
import { VBtnToggle as Ao } from "vuetify/components/VBtnToggle";
|
|
10
11
|
import oa from "axios";
|
|
11
|
-
import { useDisplay as
|
|
12
|
-
import { VCard as
|
|
13
|
-
import { VDialog as
|
|
14
|
-
import { VSpacer as
|
|
15
|
-
import { VIcon as
|
|
16
|
-
import { VToolbar as
|
|
12
|
+
import { useDisplay as nn } from "vuetify";
|
|
13
|
+
import { VCard as an, VCardTitle as la, VCardText as Et, VCardActions as ia } from "vuetify/components/VCard";
|
|
14
|
+
import { VDialog as on } from "vuetify/components/VDialog";
|
|
15
|
+
import { VSpacer as ln } from "vuetify/components/VGrid";
|
|
16
|
+
import { VIcon as ae } from "vuetify/components/VIcon";
|
|
17
|
+
import { VToolbar as So } from "vuetify/components/VToolbar";
|
|
17
18
|
import { VTooltip as De } from "vuetify/components/VTooltip";
|
|
18
|
-
import { Intersect as
|
|
19
|
-
import { VAlert as
|
|
19
|
+
import { Intersect as Io } from "vuetify/directives";
|
|
20
|
+
import { VAlert as sn } from "vuetify/components/VAlert";
|
|
20
21
|
import { VProgressCircular as sa } from "vuetify/components/VProgressCircular";
|
|
21
|
-
import { VRadio as
|
|
22
|
-
import { VRadioGroup as
|
|
23
|
-
import { onBeforeRouteLeave as
|
|
24
|
-
const
|
|
22
|
+
import { VRadio as wn } from "vuetify/components/VRadio";
|
|
23
|
+
import { VRadioGroup as Po } from "vuetify/components/VRadioGroup";
|
|
24
|
+
import { onBeforeRouteLeave as Do } from "vue-router";
|
|
25
|
+
const Pi = /* @__PURE__ */ je({
|
|
26
|
+
__name: "AFilterWrapperSidebar",
|
|
27
|
+
props: {
|
|
28
|
+
formName: { default: "search" }
|
|
29
|
+
},
|
|
30
|
+
emits: ["submit"],
|
|
31
|
+
setup(e, { emit: w }) {
|
|
32
|
+
const c = w, n = vt(Ma), u = vt(za);
|
|
33
|
+
if (ye(n) || ye(u))
|
|
34
|
+
throw new Error("Incorrect provide/inject config.");
|
|
35
|
+
Ft(Na, de(0)), Ft(Oa, de(/* @__PURE__ */ new Map()));
|
|
36
|
+
const v = () => {
|
|
37
|
+
c("submit");
|
|
38
|
+
};
|
|
39
|
+
return (y, g) => (h(), H(Co, {
|
|
40
|
+
name: e.formName,
|
|
41
|
+
onSubmit: ne(v, ["prevent"])
|
|
42
|
+
}, {
|
|
43
|
+
default: r(() => [
|
|
44
|
+
M(y.$slots, "default")
|
|
45
|
+
]),
|
|
46
|
+
_: 3
|
|
47
|
+
}, 8, ["name"]));
|
|
48
|
+
}
|
|
49
|
+
}), Eo = { class: "d-flex align-center justify-center" }, To = { class: "text-body-small mr-1" }, Di = /* @__PURE__ */ je({
|
|
25
50
|
__name: "ADatatableOrdering",
|
|
26
51
|
props: /* @__PURE__ */ Le({
|
|
27
52
|
variant: { default: "id" },
|
|
@@ -36,10 +61,10 @@ const Ao = { class: "d-flex align-center justify-center" }, So = { class: "text-
|
|
|
36
61
|
}),
|
|
37
62
|
emits: /* @__PURE__ */ Le(["sortByChange"], ["update:modelValue"]),
|
|
38
63
|
setup(e, { emit: w }) {
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
64
|
+
const c = e, n = w, u = We(e, "modelValue"), v = vt(In);
|
|
65
|
+
if (ye(v))
|
|
41
66
|
throw new Error("Incorrect provide/inject config.");
|
|
42
|
-
const { t:
|
|
67
|
+
const { t: y } = He(), g = [
|
|
43
68
|
{
|
|
44
69
|
id: 1,
|
|
45
70
|
titleT: "common.system.datatable.ordering.mostRecent",
|
|
@@ -65,7 +90,7 @@ const Ao = { class: "d-flex align-center justify-center" }, So = { class: "text-
|
|
|
65
90
|
{
|
|
66
91
|
id: 3,
|
|
67
92
|
titleT: "common.system.datatable.ordering.mostRelevant",
|
|
68
|
-
sortBy: { key:
|
|
93
|
+
sortBy: { key: Ua, order: Ue.Desc }
|
|
69
94
|
},
|
|
70
95
|
{
|
|
71
96
|
id: 1,
|
|
@@ -77,38 +102,38 @@ const Ao = { class: "d-flex align-center justify-center" }, So = { class: "text-
|
|
|
77
102
|
titleT: "common.system.datatable.ordering.oldest",
|
|
78
103
|
sortBy: { key: "createdAt", order: Ue.Asc }
|
|
79
104
|
}
|
|
80
|
-
], C =
|
|
81
|
-
const
|
|
82
|
-
return
|
|
83
|
-
}), D =
|
|
84
|
-
|
|
85
|
-
}, V = (
|
|
86
|
-
|
|
87
|
-
...
|
|
105
|
+
], C = b(() => {
|
|
106
|
+
const P = D.value.find((T) => T.id === u.value);
|
|
107
|
+
return P ? y(P.titleT) : "";
|
|
108
|
+
}), D = b(() => c.customOptions ? c.customOptions : c.variant === "most-relevant" ? s : c.variant === "id" ? k : g), N = (P) => {
|
|
109
|
+
u.value = P.id;
|
|
110
|
+
}, V = (P) => {
|
|
111
|
+
P.sortBy || (v.value = {
|
|
112
|
+
...v.value,
|
|
88
113
|
sortBy: null
|
|
89
|
-
}, n("sortByChange",
|
|
114
|
+
}, n("sortByChange", P)), v.value.sortBy = P.sortBy, n("sortByChange", P);
|
|
90
115
|
};
|
|
91
|
-
return Ee(
|
|
92
|
-
if (
|
|
93
|
-
const j = D.value.find((
|
|
94
|
-
if (!
|
|
95
|
-
if (
|
|
116
|
+
return Ee(u, (P, T) => {
|
|
117
|
+
if (P === T) return;
|
|
118
|
+
const j = D.value.find((K) => K.id === P);
|
|
119
|
+
if (!ye(j)) {
|
|
120
|
+
if (ye(c.paginationUpdateCustomCb)) {
|
|
96
121
|
V(j);
|
|
97
122
|
return;
|
|
98
123
|
}
|
|
99
|
-
|
|
124
|
+
c.paginationUpdateCustomCb(j, v);
|
|
100
125
|
}
|
|
101
126
|
}), Ee(
|
|
102
|
-
|
|
103
|
-
(
|
|
104
|
-
if (
|
|
127
|
+
v,
|
|
128
|
+
(P, T) => {
|
|
129
|
+
if (P.sortBy?.key === T?.sortBy?.key && P.sortBy?.order === T?.sortBy?.order)
|
|
105
130
|
return;
|
|
106
|
-
const j = D.value.find((
|
|
107
|
-
|
|
131
|
+
const j = D.value.find((K) => P.sortBy?.key === K.sortBy?.key && P.sortBy?.order === K.sortBy?.order);
|
|
132
|
+
ye(j) || (u.value = j.id);
|
|
108
133
|
},
|
|
109
134
|
{ immediate: !0 }
|
|
110
|
-
), (
|
|
111
|
-
|
|
135
|
+
), (P, T) => (h(), R("div", Eo, [
|
|
136
|
+
z("div", To, B(d(y)("common.system.datatable.ordering.title")) + ": ", 1),
|
|
112
137
|
i(_, {
|
|
113
138
|
variant: "text",
|
|
114
139
|
rounded: "xl",
|
|
@@ -118,27 +143,27 @@ const Ao = { class: "d-flex align-center justify-center" }, So = { class: "text-
|
|
|
118
143
|
}, {
|
|
119
144
|
default: r(() => [
|
|
120
145
|
G(B(C.value) + " ", 1),
|
|
121
|
-
i(
|
|
146
|
+
i(Kt, {
|
|
122
147
|
activator: "parent",
|
|
123
148
|
location: "bottom",
|
|
124
149
|
"close-on-content-click": ""
|
|
125
150
|
}, {
|
|
126
151
|
default: r(() => [
|
|
127
|
-
i(
|
|
152
|
+
i(ht, {
|
|
128
153
|
density: "compact",
|
|
129
154
|
class: "pa-0"
|
|
130
155
|
}, {
|
|
131
156
|
default: r(() => [
|
|
132
|
-
(
|
|
157
|
+
(h(!0), R(ve, null, Ze(D.value, (j) => (h(), H(Pe, {
|
|
133
158
|
key: j.id,
|
|
134
|
-
onClick: (
|
|
159
|
+
onClick: (K) => N(j)
|
|
135
160
|
}, {
|
|
136
161
|
default: r(() => [
|
|
137
|
-
i(
|
|
138
|
-
class: xe({ "font-weight-bold": j.id ===
|
|
162
|
+
i(Ke, {
|
|
163
|
+
class: xe({ "font-weight-bold": j.id === u.value })
|
|
139
164
|
}, {
|
|
140
165
|
default: r(() => [
|
|
141
|
-
G(B(d(
|
|
166
|
+
G(B(d(y)(j.titleT)), 1)
|
|
142
167
|
]),
|
|
143
168
|
_: 2
|
|
144
169
|
}, 1032, ["class"])
|
|
@@ -156,10 +181,10 @@ const Ao = { class: "d-flex align-center justify-center" }, So = { class: "text-
|
|
|
156
181
|
})
|
|
157
182
|
]));
|
|
158
183
|
}
|
|
159
|
-
}),
|
|
184
|
+
}), $o = { class: "anzu-data-footer" }, Fo = {
|
|
160
185
|
key: 0,
|
|
161
186
|
class: "anzu-data-footer__page-limit"
|
|
162
|
-
},
|
|
187
|
+
}, Bo = { class: "anzu-data-footer__pagination" }, Ko = { class: "anzu-data-footer__icons-before" }, Ro = { class: "current-page" }, Vo = { class: "anzu-data-footer__icons-after" }, Lo = /* @__PURE__ */ je({
|
|
163
188
|
__name: "ADatatablePagination",
|
|
164
189
|
props: {
|
|
165
190
|
itemsPerPageOptions: { default: () => [10, 25, 50] },
|
|
@@ -167,34 +192,34 @@ const Ao = { class: "d-flex align-center justify-center" }, So = { class: "text-
|
|
|
167
192
|
},
|
|
168
193
|
emits: ["change"],
|
|
169
194
|
setup(e, { emit: w }) {
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
195
|
+
const c = w, n = vt(In);
|
|
196
|
+
if (ye(n))
|
|
172
197
|
throw new Error("Incorrect provide/inject config.");
|
|
173
|
-
const { t:
|
|
198
|
+
const { t: u } = He(), { setStoredPage: v } = ja(), y = b(() => Math.ceil(n.value.totalCount / n.value.rowsPerPage)), g = b(() => n.value.page * n.value.rowsPerPage - n.value.rowsPerPage + 1), k = b(() => n.value.page * n.value.rowsPerPage - n.value.rowsPerPage + n.value.currentViewCount), s = b(() => n.value.page === 1), C = b(() => !mt(n.value.hasNextPage) || n.value.page === y.value), D = b(() => mt(n.value.hasNextPage) && n.value.page === y.value || n.value.hasNextPage === !1), N = b(() => mt(n.value.hasNextPage) ? n.value.totalCount : n.value.hasNextPage ? k.value + 1 + "+" : k.value);
|
|
174
199
|
Ee(
|
|
175
200
|
() => n.value.rowsPerPage,
|
|
176
|
-
(
|
|
177
|
-
|
|
201
|
+
(K, $) => {
|
|
202
|
+
K !== $ && (n.value.page = 1, c("change"));
|
|
178
203
|
}
|
|
179
204
|
), Ee(
|
|
180
205
|
() => n.value.page,
|
|
181
|
-
(
|
|
182
|
-
|
|
206
|
+
(K, $) => {
|
|
207
|
+
K !== $ && (v(K), c("change"));
|
|
183
208
|
}
|
|
184
209
|
);
|
|
185
|
-
const V =
|
|
210
|
+
const V = St(() => {
|
|
186
211
|
n.value.page = 1;
|
|
187
|
-
}, 300),
|
|
188
|
-
n.value.page =
|
|
189
|
-
}, 300), T =
|
|
212
|
+
}, 300), P = St(() => {
|
|
213
|
+
n.value.page = y.value;
|
|
214
|
+
}, 300), T = St(() => {
|
|
190
215
|
n.value.page = n.value.page - 1;
|
|
191
|
-
}, 300), j =
|
|
216
|
+
}, 300), j = St(() => {
|
|
192
217
|
n.value.page = n.value.page + 1;
|
|
193
218
|
}, 300);
|
|
194
|
-
return (
|
|
195
|
-
e.hideRecordsPerPage ?
|
|
196
|
-
G(B(d(
|
|
197
|
-
i(
|
|
219
|
+
return (K, $) => (h(), R("div", $o, [
|
|
220
|
+
e.hideRecordsPerPage ? W("", !0) : (h(), R("div", Fo, [
|
|
221
|
+
G(B(d(u)("common.system.datatable.itemsPerPage")) + ": ", 1),
|
|
222
|
+
i(Ao, {
|
|
198
223
|
modelValue: d(n).rowsPerPage,
|
|
199
224
|
"onUpdate:modelValue": $[0] || ($[0] = (X) => d(n).rowsPerPage = X),
|
|
200
225
|
class: "ml-2",
|
|
@@ -203,7 +228,7 @@ const Ao = { class: "d-flex align-center justify-center" }, So = { class: "text-
|
|
|
203
228
|
"data-cy": "table-size"
|
|
204
229
|
}, {
|
|
205
230
|
default: r(() => [
|
|
206
|
-
(
|
|
231
|
+
(h(!0), R(ve, null, Ze(e.itemsPerPageOptions, (X) => (h(), H(_, {
|
|
207
232
|
key: X,
|
|
208
233
|
color: X === d(n).rowsPerPage ? "secondary" : "",
|
|
209
234
|
value: X,
|
|
@@ -220,82 +245,82 @@ const Ao = { class: "d-flex align-center justify-center" }, So = { class: "text-
|
|
|
220
245
|
_: 1
|
|
221
246
|
}, 8, ["modelValue"])
|
|
222
247
|
])),
|
|
223
|
-
|
|
224
|
-
|
|
248
|
+
z("div", Bo, B(g.value) + " - " + B(k.value) + " " + B(d(u)("common.system.datatable.from")) + " " + B(N.value), 1),
|
|
249
|
+
z("div", Ko, [
|
|
225
250
|
i(_, {
|
|
226
251
|
disabled: s.value,
|
|
227
252
|
icon: "mdi-page-first",
|
|
228
253
|
size: "small",
|
|
229
254
|
variant: "text",
|
|
230
|
-
onClick:
|
|
255
|
+
onClick: ne(d(V), ["stop"])
|
|
231
256
|
}, null, 8, ["disabled", "onClick"]),
|
|
232
257
|
i(_, {
|
|
233
258
|
disabled: s.value,
|
|
234
259
|
icon: "mdi-chevron-left",
|
|
235
260
|
size: "small",
|
|
236
261
|
variant: "text",
|
|
237
|
-
onClick:
|
|
262
|
+
onClick: ne(d(T), ["stop"])
|
|
238
263
|
}, null, 8, ["disabled", "onClick"])
|
|
239
264
|
]),
|
|
240
|
-
|
|
241
|
-
|
|
265
|
+
z("div", Ro, [
|
|
266
|
+
z("span", null, B(d(n).page), 1)
|
|
242
267
|
]),
|
|
243
|
-
|
|
268
|
+
z("div", Vo, [
|
|
244
269
|
i(_, {
|
|
245
270
|
disabled: D.value,
|
|
246
271
|
icon: "mdi-chevron-right",
|
|
247
272
|
size: "small",
|
|
248
273
|
variant: "text",
|
|
249
|
-
onClick:
|
|
274
|
+
onClick: ne(d(j), ["stop"])
|
|
250
275
|
}, null, 8, ["disabled", "onClick"]),
|
|
251
276
|
i(_, {
|
|
252
277
|
disabled: C.value,
|
|
253
278
|
icon: "mdi-page-last",
|
|
254
279
|
size: "small",
|
|
255
280
|
variant: "text",
|
|
256
|
-
onClick:
|
|
281
|
+
onClick: ne(d(P), ["stop"])
|
|
257
282
|
}, null, 8, ["disabled", "onClick"])
|
|
258
283
|
])
|
|
259
284
|
]));
|
|
260
285
|
}
|
|
261
|
-
}),
|
|
262
|
-
const { querySetLimit: n, querySetOffset:
|
|
263
|
-
return n(s),
|
|
264
|
-
},
|
|
286
|
+
}), Mo = (e, w, c = "id") => {
|
|
287
|
+
const { querySetLimit: n, querySetOffset: u, querySetOrder: v, queryBuild: y, queryAddFilter: g, queryAdd: k } = qa(), s = e.length;
|
|
288
|
+
return n(s), u(1, s), v(c, !1), w ? k(c, e.join(",")) : g("in", c, e.join(",")), y();
|
|
289
|
+
}, Ei = (e) => {
|
|
265
290
|
const {
|
|
266
291
|
client: w,
|
|
267
|
-
system:
|
|
292
|
+
system: c,
|
|
268
293
|
entity: n,
|
|
269
|
-
urlTemplate:
|
|
270
|
-
urlParams:
|
|
271
|
-
options:
|
|
272
|
-
isSearchApi:
|
|
294
|
+
urlTemplate: u,
|
|
295
|
+
urlParams: v,
|
|
296
|
+
options: y = {},
|
|
297
|
+
isSearchApi: g = !1,
|
|
273
298
|
field: k = "id",
|
|
274
299
|
silentConsoleError: s = !1
|
|
275
300
|
} = e;
|
|
276
301
|
let C = null;
|
|
277
302
|
return {
|
|
278
|
-
executeFetch: async (V,
|
|
303
|
+
executeFetch: async (V, P = {}) => {
|
|
279
304
|
C = new AbortController();
|
|
280
|
-
const { urlTemplate: T, urlParams: j } =
|
|
305
|
+
const { urlTemplate: T, urlParams: j } = P;
|
|
281
306
|
try {
|
|
282
|
-
const
|
|
283
|
-
if (
|
|
284
|
-
const X = (
|
|
285
|
-
...
|
|
307
|
+
const K = Tt(j) ? j : v, $ = Tt(T) ? T : u;
|
|
308
|
+
if (ye($)) throw new Error("Url template is undefined");
|
|
309
|
+
const X = (ye(K) ? $ : Pn($, K)) + Mo(V, g, k), A = await w().get(X, {
|
|
310
|
+
...y,
|
|
286
311
|
signal: C.signal
|
|
287
312
|
});
|
|
288
|
-
if (!
|
|
289
|
-
throw new
|
|
313
|
+
if (!Dn(A.status))
|
|
314
|
+
throw new En(A.status);
|
|
290
315
|
if (A.data?.data)
|
|
291
316
|
return A.data.data;
|
|
292
|
-
if (A.status ===
|
|
317
|
+
if (A.status === Tn)
|
|
293
318
|
return [];
|
|
294
|
-
throw new
|
|
295
|
-
} catch (
|
|
296
|
-
if (
|
|
319
|
+
throw new $t();
|
|
320
|
+
} catch (K) {
|
|
321
|
+
if (K instanceof DOMException && K.name === "AbortError")
|
|
297
322
|
return [];
|
|
298
|
-
throw
|
|
323
|
+
throw $n(K) ? K : Fn(K) ? new Bn(K, K.config?.url) : Kn(K) ? new Rn(K, c, n, K) : Vn(K) ? new Ln(K, c, n, K) : Mn(K) ? new zn(K, K) : Nn(K) ? new On(K) : oa.isAxiosError(K) ? (s || console.error("Axios error: " + u, ...K.cause ? [K.cause] : []), new Un(K)) : (s || console.error("AnzuFatalError: ", K), new $t(K));
|
|
299
324
|
} finally {
|
|
300
325
|
C = null;
|
|
301
326
|
}
|
|
@@ -304,82 +329,82 @@ const Ao = { class: "d-flex align-center justify-center" }, So = { class: "text-
|
|
|
304
329
|
C && C.abort();
|
|
305
330
|
}
|
|
306
331
|
};
|
|
307
|
-
},
|
|
332
|
+
}, Ti = (e) => {
|
|
308
333
|
const {
|
|
309
334
|
client: w,
|
|
310
|
-
system:
|
|
335
|
+
system: c,
|
|
311
336
|
entity: n,
|
|
312
|
-
urlTemplate:
|
|
313
|
-
urlParams:
|
|
314
|
-
options:
|
|
315
|
-
silentConsoleError:
|
|
337
|
+
urlTemplate: u,
|
|
338
|
+
urlParams: v,
|
|
339
|
+
options: y = {},
|
|
340
|
+
silentConsoleError: g = !1
|
|
316
341
|
} = e;
|
|
317
342
|
let k = null;
|
|
318
343
|
return {
|
|
319
344
|
executeFetch: async (D, N, V = {}) => {
|
|
320
345
|
k = new AbortController();
|
|
321
346
|
const {
|
|
322
|
-
urlTemplate:
|
|
347
|
+
urlTemplate: P,
|
|
323
348
|
urlParams: T,
|
|
324
349
|
sortBy: j = "id",
|
|
325
|
-
sortDesc:
|
|
350
|
+
sortDesc: K = !0,
|
|
326
351
|
batchSize: $ = 100,
|
|
327
352
|
forceElastic: X = !1
|
|
328
353
|
} = V;
|
|
329
354
|
try {
|
|
330
|
-
const A = N.general.elastic || X ? "/search" : "", J =
|
|
331
|
-
if (
|
|
332
|
-
const { pagination: E } =
|
|
355
|
+
const A = N.general.elastic || X ? "/search" : "", J = Tt(T) ? T : v, L = Tt(P) ? P : u;
|
|
356
|
+
if (ye(L)) throw new Error("Url template is undefined");
|
|
357
|
+
const { pagination: E } = jn(j, K ? Ue.Desc : Ue.Asc, {
|
|
333
358
|
rowsPerPage: $
|
|
334
|
-
}), ee = (
|
|
335
|
-
ee +
|
|
359
|
+
}), ee = (ye(J) ? L : Pn(L, J)) + A, se = [], Y = await w().get(
|
|
360
|
+
ee + Qt(E, D, N),
|
|
336
361
|
{
|
|
337
|
-
...
|
|
362
|
+
...y,
|
|
338
363
|
signal: k.signal
|
|
339
364
|
}
|
|
340
365
|
);
|
|
341
|
-
if (!
|
|
342
|
-
throw new
|
|
366
|
+
if (!Dn(Y.status))
|
|
367
|
+
throw new En(Y.status);
|
|
343
368
|
if (Y.data) {
|
|
344
|
-
const
|
|
345
|
-
if (se.push(...
|
|
346
|
-
for (E.value.hasNextPage =
|
|
369
|
+
const oe = Y.data;
|
|
370
|
+
if (se.push(...oe.data), Ga(oe))
|
|
371
|
+
for (E.value.hasNextPage = oe.hasNextPage; E.value.hasNextPage; ) {
|
|
347
372
|
E.value.page++;
|
|
348
|
-
const
|
|
349
|
-
ee +
|
|
373
|
+
const I = (await w().get(
|
|
374
|
+
ee + Qt(E, D, N),
|
|
350
375
|
{
|
|
351
|
-
...
|
|
376
|
+
...y,
|
|
352
377
|
signal: k.signal
|
|
353
378
|
}
|
|
354
379
|
)).data;
|
|
355
|
-
se.push(...
|
|
380
|
+
se.push(...I.data), E.value.hasNextPage = I.hasNextPage;
|
|
356
381
|
}
|
|
357
|
-
else if (
|
|
358
|
-
if (E.value.totalCount =
|
|
382
|
+
else if (Wa(oe)) {
|
|
383
|
+
if (E.value.totalCount = oe.totalCount, E.value.totalCount <= E.value.rowsPerPage)
|
|
359
384
|
return se;
|
|
360
|
-
const re = [],
|
|
361
|
-
for (let
|
|
362
|
-
const S = { ...E.value, page:
|
|
385
|
+
const re = [], I = Math.ceil(E.value.totalCount / E.value.rowsPerPage);
|
|
386
|
+
for (let p = 1; p < I; p++) {
|
|
387
|
+
const S = { ...E.value, page: p + 1 }, F = de(S);
|
|
363
388
|
re.push(
|
|
364
|
-
w().get(ee +
|
|
365
|
-
...
|
|
389
|
+
w().get(ee + Qt(F, D, N), {
|
|
390
|
+
...y,
|
|
366
391
|
signal: k.signal
|
|
367
392
|
})
|
|
368
393
|
);
|
|
369
394
|
}
|
|
370
|
-
(await Promise.all(re)).forEach((
|
|
371
|
-
se.push(...
|
|
395
|
+
(await Promise.all(re)).forEach((p) => {
|
|
396
|
+
se.push(...p.data.data);
|
|
372
397
|
});
|
|
373
398
|
}
|
|
374
399
|
return se;
|
|
375
400
|
}
|
|
376
|
-
if (Y.status ===
|
|
401
|
+
if (Y.status === Tn)
|
|
377
402
|
return [];
|
|
378
|
-
throw new
|
|
403
|
+
throw new $t();
|
|
379
404
|
} catch (A) {
|
|
380
405
|
if (A instanceof DOMException && A.name === "AbortError")
|
|
381
406
|
return [];
|
|
382
|
-
throw
|
|
407
|
+
throw $n(A) ? A : Fn(A) ? new Bn(A, A.config?.url) : Kn(A) ? new Rn(A, c, n, A) : Vn(A) ? new Ln(A, c, n, A) : Mn(A) ? new zn(A, A) : Nn(A) ? new On(A) : oa.isAxiosError(A) ? (g || console.error("Axios error: " + u, ...A.cause ? [A.cause] : []), new Un(A)) : (g || console.error("AnzuFatalError: ", A), new $t(A));
|
|
383
408
|
} finally {
|
|
384
409
|
k = null;
|
|
385
410
|
}
|
|
@@ -388,51 +413,51 @@ const Ao = { class: "d-flex align-center justify-center" }, So = { class: "text-
|
|
|
388
413
|
k && k.abort();
|
|
389
414
|
}
|
|
390
415
|
};
|
|
391
|
-
},
|
|
392
|
-
function
|
|
416
|
+
}, It = "/adm/v1/job", Pt = "job";
|
|
417
|
+
function $i(e, w) {
|
|
393
418
|
return {
|
|
394
|
-
useFetchJobList: () =>
|
|
395
|
-
fetchJob: (
|
|
396
|
-
createJob: (
|
|
397
|
-
const
|
|
398
|
-
return
|
|
419
|
+
useFetchJobList: () => Qa({ client: e, system: w, entity: Pt, urlTemplate: It }),
|
|
420
|
+
fetchJob: (y) => Ya(e, It + "/:id", { id: y }, w, Pt),
|
|
421
|
+
createJob: (y) => {
|
|
422
|
+
const g = Ja(y._resourceName).slice(4).replace("-kind-", "-kind/");
|
|
423
|
+
return Xa(e, y, It + "/:type", { type: g }, w, Pt);
|
|
399
424
|
},
|
|
400
|
-
deleteJob: (
|
|
425
|
+
deleteJob: (y) => Ha(e, It + "/:id", { id: y }, w, Pt)
|
|
401
426
|
};
|
|
402
427
|
}
|
|
403
|
-
const
|
|
428
|
+
const zo = {
|
|
404
429
|
key: "",
|
|
405
430
|
title: void 0,
|
|
406
431
|
sortable: !1,
|
|
407
432
|
fixed: !1
|
|
408
|
-
},
|
|
433
|
+
}, No = {
|
|
409
434
|
storeColumnsLocalStorage: !0,
|
|
410
435
|
disableActions: !1,
|
|
411
436
|
customI18n: void 0,
|
|
412
437
|
showExpand: !1
|
|
413
438
|
};
|
|
414
|
-
function
|
|
415
|
-
const
|
|
439
|
+
function Oo(e, w, c, n, u = {}) {
|
|
440
|
+
const v = { ...No, ...u }, y = v.customI18n ?? Za, { t: g } = y.global || y;
|
|
416
441
|
let k;
|
|
417
|
-
|
|
442
|
+
no(v.storeColumnsLocalStorage) ? k = v.storeColumnsLocalStorage : ao(v.storeColumnsLocalStorage) && v.storeColumnsLocalStorage === !0 && (k = "table_" + c + "_" + n);
|
|
418
443
|
const s = e.map((V) => {
|
|
419
|
-
const
|
|
420
|
-
return
|
|
421
|
-
}), C =
|
|
444
|
+
const P = { ...zo, ...V };
|
|
445
|
+
return ye(P.title) && (ye(P.title) && _a.includes(P.key) ? P.title = g("common.model.tracking." + P.key) : ye(P.title) && c && n ? P.title = g(c + "." + n + ".model." + P.key) : P.title = ""), P;
|
|
446
|
+
}), C = b(() => {
|
|
422
447
|
const V = [];
|
|
423
|
-
return
|
|
424
|
-
w.value.includes(
|
|
425
|
-
}),
|
|
448
|
+
return v.showExpand && V.push({ key: "data-table-expand", sortable: !1 }), s.forEach((P) => {
|
|
449
|
+
w.value.includes(P.key) || V.push(P);
|
|
450
|
+
}), v.disableActions || V.push({ key: "actions", sortable: !1, fixed: "end" }), V;
|
|
426
451
|
}), D = () => {
|
|
427
452
|
if (!k || !localStorage) return;
|
|
428
453
|
const V = localStorage.getItem(k);
|
|
429
454
|
if (!V) return;
|
|
430
|
-
const
|
|
431
|
-
|
|
455
|
+
const P = JSON.parse(V);
|
|
456
|
+
eo(P) && to(P.hidden) && (w.value = P.hidden);
|
|
432
457
|
}, N = (V) => {
|
|
433
458
|
!k || !localStorage || localStorage.setItem(k, JSON.stringify({ hidden: V }));
|
|
434
459
|
};
|
|
435
|
-
return
|
|
460
|
+
return _t(() => {
|
|
436
461
|
D();
|
|
437
462
|
}), Ee(w, (V) => {
|
|
438
463
|
N(V);
|
|
@@ -442,66 +467,66 @@ function Vo(e, w, u, n, f = {}) {
|
|
|
442
467
|
columnsHidden: w
|
|
443
468
|
};
|
|
444
469
|
}
|
|
445
|
-
function
|
|
446
|
-
const C =
|
|
447
|
-
mt(
|
|
448
|
-
|
|
449
|
-
), { resetFilter:
|
|
470
|
+
function Fi(e, w, c, n, u, v, y, g = null, k = void 0, s = !1) {
|
|
471
|
+
const C = de(!1), D = de([]), N = de([]), V = de(!1), { pagination: P, setSortBy: T, incrementPage: j } = jn(
|
|
472
|
+
mt(g) ? null : g.key,
|
|
473
|
+
g?.order
|
|
474
|
+
), { resetFilter: K, submitFilter: $ } = oo(v, y, {
|
|
450
475
|
storeFiltersLocalStorage: !1,
|
|
451
476
|
populateUrlParams: !1
|
|
452
|
-
}), { showErrorsDefault: X } =
|
|
477
|
+
}), { showErrorsDefault: X } = qn(), { columnsVisible: A, columnsAll: J, columnsHidden: L } = Oo(
|
|
453
478
|
e,
|
|
454
479
|
w,
|
|
455
|
-
|
|
480
|
+
c,
|
|
456
481
|
n,
|
|
457
482
|
{ storeColumnsLocalStorage: !1, disableActions: !s }
|
|
458
483
|
), E = () => {
|
|
459
484
|
Y(), re();
|
|
460
|
-
}, ee = (
|
|
461
|
-
T(
|
|
485
|
+
}, ee = (f) => {
|
|
486
|
+
T(f.sortBy), re();
|
|
462
487
|
}, se = async () => {
|
|
463
488
|
V.value = !0, j();
|
|
464
489
|
try {
|
|
465
|
-
const
|
|
466
|
-
D.value.push(...
|
|
467
|
-
} catch (
|
|
468
|
-
X(
|
|
490
|
+
const f = await u(P, v, y, k);
|
|
491
|
+
D.value.push(...f);
|
|
492
|
+
} catch (f) {
|
|
493
|
+
X(f);
|
|
469
494
|
} finally {
|
|
470
495
|
V.value = !1;
|
|
471
496
|
}
|
|
472
497
|
}, Y = () => {
|
|
473
498
|
D.value = [], N.value = [];
|
|
474
|
-
},
|
|
499
|
+
}, oe = async () => {
|
|
475
500
|
V.value = !0;
|
|
476
501
|
try {
|
|
477
|
-
D.value = await
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
502
|
+
D.value = await u(
|
|
503
|
+
P,
|
|
504
|
+
v,
|
|
505
|
+
y,
|
|
481
506
|
k
|
|
482
507
|
);
|
|
483
|
-
} catch (
|
|
484
|
-
X(
|
|
508
|
+
} catch (f) {
|
|
509
|
+
X(f);
|
|
485
510
|
} finally {
|
|
486
511
|
V.value = !1;
|
|
487
512
|
}
|
|
488
|
-
}, re =
|
|
489
|
-
await
|
|
513
|
+
}, re = xo(async () => {
|
|
514
|
+
await oe();
|
|
490
515
|
});
|
|
491
516
|
return {
|
|
492
517
|
items: D,
|
|
493
518
|
selected: N,
|
|
494
|
-
pagination:
|
|
519
|
+
pagination: P,
|
|
495
520
|
columnsVisible: A,
|
|
496
521
|
columnsHidden: L,
|
|
497
522
|
columnsAll: J,
|
|
498
523
|
filterTouched: C,
|
|
499
524
|
loading: V,
|
|
500
|
-
onRowClick: (
|
|
501
|
-
const
|
|
502
|
-
if (!
|
|
525
|
+
onRowClick: (f) => {
|
|
526
|
+
const p = f.target;
|
|
527
|
+
if (!p || p.tagName === "INPUT" && p.type === "checkbox")
|
|
503
528
|
return;
|
|
504
|
-
const S =
|
|
529
|
+
const S = p.closest(".v-data-table__tr");
|
|
505
530
|
if (!S || !S.classList.contains("v-data-table__tr")) return;
|
|
506
531
|
const F = S.firstElementChild;
|
|
507
532
|
if (!F || !F.classList.contains("v-data-table__td")) return;
|
|
@@ -512,14 +537,14 @@ function Si(e, w, u, n, f, h, p, b = null, k = void 0, s = !1) {
|
|
|
512
537
|
onOpen: E,
|
|
513
538
|
sortByChange: ee,
|
|
514
539
|
getList: re,
|
|
515
|
-
resetFilter: () =>
|
|
516
|
-
submitFilter: () => $(
|
|
540
|
+
resetFilter: () => K(P, re),
|
|
541
|
+
submitFilter: () => $(P, re)
|
|
517
542
|
};
|
|
518
543
|
}
|
|
519
|
-
const
|
|
544
|
+
const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class: "d-flex justify-space-between w-100 align-center" }, qo = { class: "d-flex align-center" }, Go = { class: "d-flex align-center" }, Wo = { class: "subject-select__sidebar system-border-r" }, Ho = { class: "subject-select-filter" }, Jo = { class: "subject-select__content" }, Xo = {
|
|
520
545
|
key: 0,
|
|
521
546
|
class: "d-flex w-100 align-center justify-center pa-4"
|
|
522
|
-
},
|
|
547
|
+
}, Yo = { class: "subject-select__actions system-border-t" }, Qo = { key: 0 }, Zo = { key: 1 }, Bi = /* @__PURE__ */ je({
|
|
523
548
|
__name: "ASubjectSelect",
|
|
524
549
|
props: {
|
|
525
550
|
selectedItems: {},
|
|
@@ -533,76 +558,76 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
533
558
|
autoOpen: { type: Boolean, default: !1 }
|
|
534
559
|
},
|
|
535
560
|
emits: ["update:modelValue", "update:pagination", "onOpen", "onPageChange", "onConfirm", "onFetchNextPage"],
|
|
536
|
-
setup(e, { expose: w, emit:
|
|
537
|
-
const n = e,
|
|
561
|
+
setup(e, { expose: w, emit: c }) {
|
|
562
|
+
const n = e, u = c, v = de(!1), y = b({
|
|
538
563
|
get() {
|
|
539
|
-
return
|
|
564
|
+
return ye(n.modelValue) ? v.value : n.modelValue;
|
|
540
565
|
},
|
|
541
566
|
set(E) {
|
|
542
|
-
|
|
567
|
+
v.value = E, u("update:modelValue", E);
|
|
543
568
|
}
|
|
544
|
-
}),
|
|
569
|
+
}), g = b({
|
|
545
570
|
get: () => n.pagination,
|
|
546
571
|
set: (E) => {
|
|
547
|
-
|
|
572
|
+
u("update:pagination", { ...bn(E) });
|
|
548
573
|
}
|
|
549
|
-
}), { mdAndDown: k } =
|
|
574
|
+
}), { mdAndDown: k } = nn(), s = de(!k.value), C = () => {
|
|
550
575
|
k.value && (s.value = !1);
|
|
551
576
|
};
|
|
552
|
-
|
|
553
|
-
const { t: D } =
|
|
554
|
-
|
|
577
|
+
Ft(lo, C);
|
|
578
|
+
const { t: D } = He(), N = b(() => n.selectedItems.length), V = b(() => N.value < n.minCount || N.value > n.maxCount), P = () => {
|
|
579
|
+
u("onOpen"), s.value = !k.value, y.value = !0;
|
|
555
580
|
}, T = () => {
|
|
556
581
|
s.value = !s.value;
|
|
557
582
|
}, j = () => {
|
|
558
|
-
|
|
559
|
-
},
|
|
560
|
-
|
|
583
|
+
y.value = !1;
|
|
584
|
+
}, K = () => {
|
|
585
|
+
u(
|
|
561
586
|
"onConfirm",
|
|
562
|
-
n.selectedItems.map((E) =>
|
|
587
|
+
n.selectedItems.map((E) => bn(E))
|
|
563
588
|
), j();
|
|
564
589
|
}, $ = () => {
|
|
565
|
-
|
|
590
|
+
u("onFetchNextPage");
|
|
566
591
|
}, X = () => {
|
|
567
|
-
|
|
568
|
-
}, A =
|
|
592
|
+
u("onPageChange");
|
|
593
|
+
}, A = b(() => Math.ceil(g.value.totalCount / g.value.rowsPerPage)), J = b(() => !(mt(g.value.hasNextPage) && g.value.page === A.value || g.value.hasNextPage === !1)), L = (E) => {
|
|
569
594
|
E && J.value && !n.loading && $();
|
|
570
595
|
};
|
|
571
|
-
return
|
|
572
|
-
n.autoOpen &&
|
|
596
|
+
return _t(() => {
|
|
597
|
+
n.autoOpen && P();
|
|
573
598
|
}), w({
|
|
574
|
-
open:
|
|
599
|
+
open: P,
|
|
575
600
|
closeSidebarOnMobile: C
|
|
576
601
|
}), (E, ee) => {
|
|
577
|
-
const se =
|
|
578
|
-
return
|
|
579
|
-
|
|
580
|
-
props: { onClick:
|
|
602
|
+
const se = kn("ABtnSecondary"), Y = kn("ABtnPrimary");
|
|
603
|
+
return h(), R(ve, null, [
|
|
604
|
+
M(E.$slots, "activator", {
|
|
605
|
+
props: { onClick: ne(() => P(), ["stop"]) }
|
|
581
606
|
}),
|
|
582
|
-
i(
|
|
583
|
-
"model-value":
|
|
607
|
+
i(on, ie(E.$attrs, {
|
|
608
|
+
"model-value": y.value,
|
|
584
609
|
fullscreen: "",
|
|
585
610
|
class: "subject-select",
|
|
586
|
-
"onUpdate:modelValue": ee[1] || (ee[1] = (
|
|
611
|
+
"onUpdate:modelValue": ee[1] || (ee[1] = (oe) => u("update:modelValue", oe))
|
|
587
612
|
}), {
|
|
588
613
|
default: r(() => [
|
|
589
|
-
|
|
614
|
+
y.value ? (h(), H(an, {
|
|
590
615
|
key: 0,
|
|
591
616
|
class: "subject-select__card"
|
|
592
617
|
}, {
|
|
593
618
|
default: r(() => [
|
|
594
|
-
i(
|
|
619
|
+
i(io, {
|
|
595
620
|
class: "subject-select__toolbar system-border-b",
|
|
596
621
|
onOnCancel: j
|
|
597
622
|
}, {
|
|
598
623
|
default: r(() => [
|
|
599
|
-
|
|
624
|
+
M(E.$slots, "title", {}, () => [
|
|
600
625
|
G(B(d(D)(e.dialogTitleT)), 1)
|
|
601
626
|
])
|
|
602
627
|
]),
|
|
603
628
|
_: 3
|
|
604
629
|
}),
|
|
605
|
-
i(
|
|
630
|
+
i(So, {
|
|
606
631
|
density: "compact",
|
|
607
632
|
color: "transparent",
|
|
608
633
|
height: 46,
|
|
@@ -610,10 +635,10 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
610
635
|
class: "system-border-b subject-select__second-bar"
|
|
611
636
|
}, {
|
|
612
637
|
default: r(() => [
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
638
|
+
M(E.$slots, "second-bar", {}, () => [
|
|
639
|
+
z("div", Uo, [
|
|
640
|
+
z("div", jo, [
|
|
641
|
+
z("div", qo, [
|
|
617
642
|
i(_, {
|
|
618
643
|
icon: "",
|
|
619
644
|
width: 30,
|
|
@@ -621,7 +646,7 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
621
646
|
onClick: T
|
|
622
647
|
}, {
|
|
623
648
|
default: r(() => [
|
|
624
|
-
i(
|
|
649
|
+
i(ae, {
|
|
625
650
|
icon: "mdi-tune",
|
|
626
651
|
size: 16
|
|
627
652
|
}),
|
|
@@ -637,10 +662,10 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
637
662
|
]),
|
|
638
663
|
_: 1
|
|
639
664
|
}),
|
|
640
|
-
|
|
665
|
+
M(E.$slots, "second-bar-left")
|
|
641
666
|
]),
|
|
642
|
-
|
|
643
|
-
|
|
667
|
+
z("div", Go, [
|
|
668
|
+
M(E.$slots, "second-bar-right")
|
|
644
669
|
])
|
|
645
670
|
])
|
|
646
671
|
])
|
|
@@ -648,61 +673,61 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
648
673
|
]),
|
|
649
674
|
_: 3
|
|
650
675
|
}),
|
|
651
|
-
|
|
676
|
+
z("div", {
|
|
652
677
|
class: xe(["subject-select__main", { "subject-select__main--sidebar-active": s.value }])
|
|
653
678
|
}, [
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
679
|
+
z("div", Wo, [
|
|
680
|
+
z("div", Ho, [
|
|
681
|
+
M(E.$slots, "filter")
|
|
657
682
|
])
|
|
658
683
|
]),
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
e.paginationMode === "more" ? (
|
|
662
|
-
|
|
684
|
+
z("div", Jo, [
|
|
685
|
+
M(E.$slots, "content"),
|
|
686
|
+
e.paginationMode === "more" ? (h(), R("div", Xo, [
|
|
687
|
+
bo((h(), H(se, {
|
|
663
688
|
loading: e.loading,
|
|
664
689
|
size: "small",
|
|
665
690
|
onClick: $
|
|
666
691
|
}, {
|
|
667
692
|
default: r(() => [
|
|
668
|
-
|
|
693
|
+
M(E.$slots, "button-confirm-title", {}, () => [
|
|
669
694
|
G(B(d(D)("common.button.loadMore")), 1)
|
|
670
695
|
])
|
|
671
696
|
]),
|
|
672
697
|
_: 3
|
|
673
698
|
}, 8, ["loading"])), [
|
|
674
|
-
[
|
|
699
|
+
[ko, J.value || e.loading],
|
|
675
700
|
[
|
|
676
|
-
|
|
701
|
+
Io,
|
|
677
702
|
L,
|
|
678
703
|
void 0,
|
|
679
704
|
{ quiet: !0 }
|
|
680
705
|
]
|
|
681
706
|
])
|
|
682
|
-
])) : (
|
|
707
|
+
])) : (h(), H(Lo, {
|
|
683
708
|
key: 1,
|
|
684
|
-
modelValue:
|
|
685
|
-
"onUpdate:modelValue": ee[0] || (ee[0] = (
|
|
709
|
+
modelValue: g.value,
|
|
710
|
+
"onUpdate:modelValue": ee[0] || (ee[0] = (oe) => g.value = oe),
|
|
686
711
|
onChange: X
|
|
687
712
|
}, null, 8, ["modelValue"]))
|
|
688
713
|
])
|
|
689
714
|
], 2),
|
|
690
|
-
|
|
691
|
-
e.minCount === e.maxCount ? (
|
|
715
|
+
z("div", Yo, [
|
|
716
|
+
e.minCount === e.maxCount ? (h(), R("div", Qo, B(d(D)("common.subjectSelect.texts.pickExactCount", {
|
|
692
717
|
count: e.minCount,
|
|
693
718
|
selected: N.value
|
|
694
|
-
})), 1)) : (
|
|
719
|
+
})), 1)) : (h(), R("div", Zo, B(d(D)("common.subjectSelect.texts.pickRangeCount", {
|
|
695
720
|
minCount: e.minCount,
|
|
696
721
|
maxCount: e.maxCount,
|
|
697
722
|
selected: N.value
|
|
698
723
|
})), 1)),
|
|
699
|
-
i(
|
|
724
|
+
i(ln),
|
|
700
725
|
i(Y, {
|
|
701
726
|
disabled: V.value,
|
|
702
|
-
onClick:
|
|
727
|
+
onClick: ne(K, ["stop"])
|
|
703
728
|
}, {
|
|
704
729
|
default: r(() => [
|
|
705
|
-
|
|
730
|
+
M(E.$slots, "button-confirm-title", {}, () => [
|
|
706
731
|
G(B(d(D)("common.button.confirm")), 1)
|
|
707
732
|
])
|
|
708
733
|
]),
|
|
@@ -711,45 +736,45 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
711
736
|
])
|
|
712
737
|
]),
|
|
713
738
|
_: 3
|
|
714
|
-
})) :
|
|
739
|
+
})) : W("", !0)
|
|
715
740
|
]),
|
|
716
741
|
_: 3
|
|
717
742
|
}, 16, ["model-value"])
|
|
718
743
|
], 64);
|
|
719
744
|
};
|
|
720
745
|
}
|
|
721
|
-
}),
|
|
746
|
+
}), _o = {
|
|
722
747
|
key: 0,
|
|
723
748
|
class: "a-le-header"
|
|
724
|
-
},
|
|
749
|
+
}, el = {
|
|
725
750
|
key: 0,
|
|
726
751
|
class: "a-le-title-heading"
|
|
727
|
-
},
|
|
752
|
+
}, tl = {
|
|
728
753
|
key: 1,
|
|
729
754
|
class: "a-le-state a-le-state--loading"
|
|
730
|
-
},
|
|
755
|
+
}, nl = {
|
|
731
756
|
key: 2,
|
|
732
757
|
class: "a-le-state a-le-state--error"
|
|
733
|
-
},
|
|
758
|
+
}, al = {
|
|
734
759
|
key: 3,
|
|
735
760
|
class: "a-le-state a-le-state--empty"
|
|
736
|
-
},
|
|
761
|
+
}, ol = ["data-id", "tabindex", "onKeydown"], ll = ["onClick"], il = { class: "a-le-row-main" }, sl = { class: "a-le-title" }, rl = {
|
|
737
762
|
key: 0,
|
|
738
763
|
class: "a-le-status"
|
|
739
|
-
},
|
|
764
|
+
}, dl = {
|
|
740
765
|
key: 0,
|
|
741
766
|
class: "a-le-status-badge"
|
|
742
|
-
},
|
|
767
|
+
}, cl = { class: "a-le-actions" }, ul = { class: "a-le-row-body" }, fl = { class: "a-le-form" }, ml = {
|
|
743
768
|
key: 0,
|
|
744
769
|
class: "a-le-row-footer"
|
|
745
|
-
},
|
|
770
|
+
}, vl = {
|
|
746
771
|
key: 1,
|
|
747
772
|
class: "a-le-row-body"
|
|
748
|
-
},
|
|
773
|
+
}, yl = { class: "a-le-form" }, hl = {
|
|
749
774
|
class: "a-le-sr-only",
|
|
750
775
|
"aria-live": "polite",
|
|
751
776
|
role: "status"
|
|
752
|
-
},
|
|
777
|
+
}, Ki = /* @__PURE__ */ je({
|
|
753
778
|
__name: "AListEditor",
|
|
754
779
|
props: /* @__PURE__ */ Le({
|
|
755
780
|
keyField: { default: "id" },
|
|
@@ -792,18 +817,18 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
792
817
|
unsavedKeysModifiers: {}
|
|
793
818
|
}),
|
|
794
819
|
emits: /* @__PURE__ */ Le(["add", "edit", "deleted", "close", "item-saved", "item-expand"], ["update:modelValue", "update:unsavedKeys"]),
|
|
795
|
-
setup(e, { expose: w, emit:
|
|
796
|
-
const n = e,
|
|
820
|
+
setup(e, { expose: w, emit: c }) {
|
|
821
|
+
const n = e, u = c, v = We(e, "modelValue"), { t: y } = He(), g = na(), k = nn(), s = Bt("rootEl"), C = b(() => k.platform.value.touch), D = so(v, {
|
|
797
822
|
keyField: n.keyField,
|
|
798
823
|
positionField: n.positionField,
|
|
799
824
|
positionMultiplier: n.positionMultiplier,
|
|
800
825
|
updatePosition: n.updatePosition
|
|
801
|
-
}), N =
|
|
802
|
-
() =>
|
|
826
|
+
}), N = de(/* @__PURE__ */ new Set()), V = Bt("rowsContainer"), P = b(() => !n.chips && !!g.item), T = b(() => !n.chips && !!g["item-readonly"]), { captureDirtyBaseline: j, rebaselineKey: K, isItemDirty: $ } = Gn(
|
|
827
|
+
() => v.value.map((o) => ({
|
|
803
828
|
key: o[n.keyField],
|
|
804
829
|
data: o
|
|
805
830
|
})),
|
|
806
|
-
{ source:
|
|
831
|
+
{ source: v }
|
|
807
832
|
), {
|
|
808
833
|
editingKeys: X,
|
|
809
834
|
editingSnapshots: A,
|
|
@@ -812,80 +837,80 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
812
837
|
commitEdit: E,
|
|
813
838
|
closeEdit: ee,
|
|
814
839
|
requestAutoOpen: se
|
|
815
|
-
} =
|
|
840
|
+
} = Wn({
|
|
816
841
|
rowsContainer: V,
|
|
817
842
|
rowSelector: ".a-le-row",
|
|
818
|
-
isInlineEdit:
|
|
843
|
+
isInlineEdit: P,
|
|
819
844
|
restoreSnapshot: (o, U) => D.updateItem(o, U),
|
|
820
|
-
watchKeys: () =>
|
|
845
|
+
watchKeys: () => v.value.map((o) => o[n.keyField]),
|
|
821
846
|
findEntry: (o) => {
|
|
822
|
-
const U =
|
|
847
|
+
const U = v.value.find((m) => m[n.keyField] === o);
|
|
823
848
|
return U ? { data: U } : null;
|
|
824
849
|
},
|
|
825
850
|
afterAutoOpen: (o) => {
|
|
826
851
|
N.value.delete(o);
|
|
827
852
|
}
|
|
828
|
-
}), Y =
|
|
829
|
-
() => n.addLabel ?
|
|
830
|
-
),
|
|
831
|
-
() => n.deleteConfirmTitle ??
|
|
832
|
-
),
|
|
833
|
-
() => n.deleteConfirmText ??
|
|
834
|
-
),
|
|
853
|
+
}), Y = b(
|
|
854
|
+
() => n.addLabel ? y(n.addLabel) : y("common.sortable.add")
|
|
855
|
+
), oe = b(() => n.emptyTitle ?? y("common.sortable.emptyTitle")), re = b(
|
|
856
|
+
() => n.deleteConfirmTitle ?? y("common.sortable.deleteConfirmTitle")
|
|
857
|
+
), I = b(
|
|
858
|
+
() => n.deleteConfirmText ?? y("common.sortable.deleteConfirmText")
|
|
859
|
+
), f = b(() => !n.readonly && !n.disabled && !n.loading), p = b(() => f.value && n.showAddButton), S = b(() => !!(n.title || g.header)), F = b(() => !!n.onItemSave), O = b(() => {
|
|
835
860
|
const o = /* @__PURE__ */ new Set();
|
|
836
|
-
for (const U of
|
|
861
|
+
for (const U of v.value) {
|
|
837
862
|
const m = U[n.keyField];
|
|
838
863
|
$(m, U) && o.add(m);
|
|
839
864
|
}
|
|
840
865
|
return o;
|
|
841
|
-
}), q = /* @__PURE__ */ new Map(),
|
|
866
|
+
}), q = /* @__PURE__ */ new Map(), le = b(() => {
|
|
842
867
|
const o = [], U = /* @__PURE__ */ new Set();
|
|
843
868
|
for (const m of D.viewItems.value) {
|
|
844
869
|
U.add(m.key);
|
|
845
|
-
const fe = X.value.has(m.key), be = N.value.has(m.key),
|
|
846
|
-
if (Ce && Ce.raw === m.raw && Ce.index === m.index && Ce.position === m.position && Ce.editing === fe && Ce.expanded === be && Ce.loading ===
|
|
870
|
+
const fe = X.value.has(m.key), be = N.value.has(m.key), kt = n.loadingKeys?.has(m.key) ?? !1, nt = n.disableUnsaved ? !1 : O.value.has(m.key), Ce = q.get(m.key);
|
|
871
|
+
if (Ce && Ce.raw === m.raw && Ce.index === m.index && Ce.position === m.position && Ce.editing === fe && Ce.expanded === be && Ce.loading === kt && Ce.dirty === nt) {
|
|
847
872
|
o.push(Ce);
|
|
848
873
|
continue;
|
|
849
874
|
}
|
|
850
|
-
const
|
|
875
|
+
const wt = {
|
|
851
876
|
...m,
|
|
852
877
|
editing: fe,
|
|
853
878
|
expanded: be,
|
|
854
|
-
loading:
|
|
879
|
+
loading: kt,
|
|
855
880
|
dirty: nt
|
|
856
881
|
};
|
|
857
|
-
q.set(m.key,
|
|
882
|
+
q.set(m.key, wt), o.push(wt);
|
|
858
883
|
}
|
|
859
884
|
for (const m of q.keys())
|
|
860
885
|
U.has(m) || q.delete(m);
|
|
861
886
|
return o;
|
|
862
|
-
}), te =
|
|
863
|
-
viewItems:
|
|
887
|
+
}), te = b(() => le.value.length === 0), Q = (o) => le.value.find((U) => U.key === o), ue = Hn({
|
|
888
|
+
viewItems: b(() => le.value.map((o) => ({ key: o.key }))),
|
|
864
889
|
variant: "flat",
|
|
865
|
-
isReorderMode:
|
|
866
|
-
disabled:
|
|
890
|
+
isReorderMode: de(!1),
|
|
891
|
+
disabled: b(() => !f.value),
|
|
867
892
|
isEditing: (o) => X.value.has(o),
|
|
868
893
|
onToggleEdit: (o) => {
|
|
869
894
|
const U = Q(o);
|
|
870
|
-
U &&
|
|
895
|
+
U && he(U);
|
|
871
896
|
},
|
|
872
897
|
onCancelEdit: (o) => {
|
|
873
898
|
const U = Q(o);
|
|
874
899
|
U && tt(U);
|
|
875
900
|
}
|
|
876
|
-
}), ge = (o) =>
|
|
901
|
+
}), ge = (o) => ea(o, { compactField: n.compactField }), { resolveValidation: Te } = Jn({
|
|
877
902
|
getValidationState: (o, U, m) => n.getValidationState?.(o, U, m) ?? null
|
|
878
903
|
}), Ae = () => {
|
|
879
|
-
|
|
904
|
+
p.value && (se(), u("add", void 0));
|
|
880
905
|
}, $e = (o) => {
|
|
881
|
-
|
|
882
|
-
},
|
|
883
|
-
if (
|
|
906
|
+
f.value && (se(), u("add", { afterId: o.key }));
|
|
907
|
+
}, he = (o) => {
|
|
908
|
+
if (f.value) {
|
|
884
909
|
if (X.value.has(o.key)) {
|
|
885
910
|
tt(o);
|
|
886
911
|
return;
|
|
887
912
|
}
|
|
888
|
-
|
|
913
|
+
P.value && (J(o), N.value.delete(o.key)), u("edit", o);
|
|
889
914
|
}
|
|
890
915
|
}, Fe = (o) => {
|
|
891
916
|
if (n.disabled || n.loading) return;
|
|
@@ -896,47 +921,47 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
896
921
|
for (const fe of N.value) N.value.delete(fe);
|
|
897
922
|
N.value.add(U);
|
|
898
923
|
}
|
|
899
|
-
|
|
924
|
+
u("item-expand", o, !m);
|
|
900
925
|
}, Se = (o) => n.chips || n.disableRowClick || n.defaultExpanded || n.disabled || n.loading ? !1 : !!(o.editing || o.expanded || !n.readonly && n.showEditButton), _e = (o) => {
|
|
901
926
|
if (Se(o)) {
|
|
902
927
|
if (o.editing || o.expanded) {
|
|
903
928
|
tt(o);
|
|
904
929
|
return;
|
|
905
930
|
}
|
|
906
|
-
n.readonly && T.value ? Fe(o) :
|
|
931
|
+
n.readonly && T.value ? Fe(o) : he(o);
|
|
907
932
|
}
|
|
908
933
|
}, {
|
|
909
934
|
deleteDialog: Me,
|
|
910
|
-
deleteInFlight:
|
|
935
|
+
deleteInFlight: pt,
|
|
911
936
|
deleteError: we,
|
|
912
937
|
onDeleteClick: et,
|
|
913
|
-
onDeleteDialogConfirm:
|
|
938
|
+
onDeleteDialogConfirm: Je,
|
|
914
939
|
onDeleteDialogCancel: lt
|
|
915
|
-
} =
|
|
940
|
+
} = Xn({
|
|
916
941
|
onDeleteConfirm: (o) => n.onDeleteConfirm ? n.onDeleteConfirm(o) : !0,
|
|
917
942
|
onDelete: (o) => n.onDelete?.(o),
|
|
918
943
|
onDeleted: (o) => {
|
|
919
|
-
X.value.delete(o.key), A.value.delete(o.key), N.value.delete(o.key),
|
|
944
|
+
X.value.delete(o.key), A.value.delete(o.key), N.value.delete(o.key), u("deleted", o);
|
|
920
945
|
},
|
|
921
946
|
disableDeleteConfirm: () => n.disableDeleteConfirm || n.chips
|
|
922
947
|
}), Xe = async (o) => {
|
|
923
|
-
|
|
924
|
-
},
|
|
925
|
-
n.onItemSave && await n.onItemSave(o.raw), E(o),
|
|
948
|
+
f.value && await et(o);
|
|
949
|
+
}, Ie = async (o) => {
|
|
950
|
+
n.onItemSave && await n.onItemSave(o.raw), E(o), u("item-saved", o);
|
|
926
951
|
}, it = (o) => {
|
|
927
952
|
L(o);
|
|
928
953
|
}, tt = (o) => {
|
|
929
|
-
ee(o), N.value.delete(o.key),
|
|
930
|
-
}, Ye = /* @__PURE__ */ new Map(),
|
|
954
|
+
ee(o), N.value.delete(o.key), u("close", o);
|
|
955
|
+
}, Ye = /* @__PURE__ */ new Map(), Vt = (o) => {
|
|
931
956
|
let U = Ye.get(o);
|
|
932
957
|
return U || (U = {
|
|
933
958
|
edit: () => {
|
|
934
959
|
const m = Q(o);
|
|
935
|
-
m &&
|
|
960
|
+
m && he(m);
|
|
936
961
|
},
|
|
937
962
|
save: () => {
|
|
938
963
|
const m = Q(o);
|
|
939
|
-
if (m) return
|
|
964
|
+
if (m) return Ie(m);
|
|
940
965
|
},
|
|
941
966
|
cancel: () => {
|
|
942
967
|
const m = Q(o);
|
|
@@ -962,7 +987,7 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
962
987
|
}, Ye.set(o, U)), U;
|
|
963
988
|
};
|
|
964
989
|
Ee(
|
|
965
|
-
() =>
|
|
990
|
+
() => le.value,
|
|
966
991
|
(o) => {
|
|
967
992
|
if (Ye.size === 0) return;
|
|
968
993
|
const U = new Set(o.map((m) => m.key));
|
|
@@ -982,17 +1007,17 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
982
1007
|
dirty: o.dirty,
|
|
983
1008
|
unsaved: o.dirty,
|
|
984
1009
|
touch: C.value,
|
|
985
|
-
actions:
|
|
986
|
-
}),
|
|
1010
|
+
actions: Vt(o.key)
|
|
1011
|
+
}), gt = We(e, "unsavedKeys"), ze = b(() => {
|
|
987
1012
|
const o = /* @__PURE__ */ new Set();
|
|
988
|
-
for (const U of
|
|
1013
|
+
for (const U of le.value)
|
|
989
1014
|
U.dirty && o.add(U.key);
|
|
990
1015
|
return o;
|
|
991
|
-
}), { hasUnsavedChanges: Qe, unsavedCount: st, clearUnsavedState:
|
|
992
|
-
unsavedKeysModel:
|
|
1016
|
+
}), { hasUnsavedChanges: Qe, unsavedCount: st, clearUnsavedState: bt } = Yn({
|
|
1017
|
+
unsavedKeysModel: gt,
|
|
993
1018
|
internalUnsavedKeys: ze,
|
|
994
1019
|
onClearAll: () => j(),
|
|
995
|
-
onClearKey: (o) =>
|
|
1020
|
+
onClearKey: (o) => K(o)
|
|
996
1021
|
});
|
|
997
1022
|
return w({
|
|
998
1023
|
addItem: D.addItem,
|
|
@@ -1004,8 +1029,8 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
1004
1029
|
resetDirtyBaseline: j,
|
|
1005
1030
|
hasUnsavedChanges: Qe,
|
|
1006
1031
|
unsavedCount: st,
|
|
1007
|
-
clearUnsavedState:
|
|
1008
|
-
}), (o, U) => (
|
|
1032
|
+
clearUnsavedState: bt
|
|
1033
|
+
}), (o, U) => (h(), R("div", {
|
|
1009
1034
|
ref_key: "rootEl",
|
|
1010
1035
|
ref: s,
|
|
1011
1036
|
class: xe(["a-list-editor", [
|
|
@@ -1018,24 +1043,24 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
1018
1043
|
}
|
|
1019
1044
|
]])
|
|
1020
1045
|
}, [
|
|
1021
|
-
|
|
1046
|
+
z("div", {
|
|
1022
1047
|
ref_key: "rowsContainer",
|
|
1023
1048
|
ref: V,
|
|
1024
1049
|
class: "a-le-card"
|
|
1025
1050
|
}, [
|
|
1026
|
-
S.value ? (
|
|
1027
|
-
|
|
1028
|
-
e.title ? (
|
|
1051
|
+
S.value ? (h(), R("div", _o, [
|
|
1052
|
+
M(o.$slots, "header", { title: e.title }, () => [
|
|
1053
|
+
e.title ? (h(), R("h3", el, B(e.title), 1)) : W("", !0)
|
|
1029
1054
|
])
|
|
1030
|
-
])) :
|
|
1031
|
-
e.loading ? (
|
|
1055
|
+
])) : W("", !0),
|
|
1056
|
+
e.loading ? (h(), R("div", tl, [
|
|
1032
1057
|
i(sa, {
|
|
1033
1058
|
indeterminate: "",
|
|
1034
1059
|
color: "primary",
|
|
1035
1060
|
size: "32"
|
|
1036
1061
|
})
|
|
1037
|
-
])) : e.error ? (
|
|
1038
|
-
i(
|
|
1062
|
+
])) : e.error ? (h(), R("div", nl, [
|
|
1063
|
+
i(sn, {
|
|
1039
1064
|
type: "error",
|
|
1040
1065
|
variant: "tonal",
|
|
1041
1066
|
density: "compact",
|
|
@@ -1046,20 +1071,20 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
1046
1071
|
]),
|
|
1047
1072
|
_: 1
|
|
1048
1073
|
})
|
|
1049
|
-
])) : te.value ? (
|
|
1050
|
-
|
|
1074
|
+
])) : te.value ? (h(), R("div", al, [
|
|
1075
|
+
M(o.$slots, "empty", {
|
|
1051
1076
|
readonly: e.readonly,
|
|
1052
1077
|
disabled: e.disabled,
|
|
1053
1078
|
actions: { add: Ae }
|
|
1054
1079
|
}, () => [
|
|
1055
|
-
i(
|
|
1056
|
-
title:
|
|
1080
|
+
i(Qn, {
|
|
1081
|
+
title: oe.value,
|
|
1057
1082
|
"add-label": Y.value,
|
|
1058
|
-
"can-add":
|
|
1083
|
+
"can-add": p.value,
|
|
1059
1084
|
onAdd: Ae
|
|
1060
1085
|
}, null, 8, ["title", "add-label", "can-add"])
|
|
1061
1086
|
])
|
|
1062
|
-
])) : (
|
|
1087
|
+
])) : (h(!0), R(ve, { key: 4 }, Ze(le.value, (m) => (h(), R("div", {
|
|
1063
1088
|
key: String(m.key),
|
|
1064
1089
|
"data-id": String(m.key),
|
|
1065
1090
|
role: "listitem",
|
|
@@ -1074,28 +1099,28 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
1074
1099
|
}]),
|
|
1075
1100
|
onKeydown: (fe) => d(ue).handleKeydown(m.key, fe)
|
|
1076
1101
|
}, [
|
|
1077
|
-
|
|
1078
|
-
|
|
1102
|
+
M(o.$slots, "before-item", ie({ ref_for: !0 }, Be(m))),
|
|
1103
|
+
z("div", {
|
|
1079
1104
|
class: "a-le-row-header",
|
|
1080
1105
|
onClick: (fe) => _e(m)
|
|
1081
1106
|
}, [
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1107
|
+
z("div", il, [
|
|
1108
|
+
M(o.$slots, "item-compact", ie({ ref_for: !0 }, Be(m)), () => [
|
|
1109
|
+
z("span", sl, B(ge(m.raw)), 1)
|
|
1085
1110
|
]),
|
|
1086
|
-
m.dirty ? (
|
|
1111
|
+
m.dirty ? (h(), H(Zn, {
|
|
1087
1112
|
key: 0,
|
|
1088
1113
|
"dot-only": e.chips
|
|
1089
|
-
}, null, 8, ["dot-only"])) :
|
|
1114
|
+
}, null, 8, ["dot-only"])) : W("", !0)
|
|
1090
1115
|
]),
|
|
1091
|
-
e.chips ?
|
|
1092
|
-
|
|
1093
|
-
e.statusField && m.raw[e.statusField] != null && m.raw[e.statusField] !== "" ? (
|
|
1116
|
+
e.chips ? W("", !0) : (h(), R("div", rl, [
|
|
1117
|
+
M(o.$slots, "item-status", ie({ ref_for: !0 }, Be(m)), () => [
|
|
1118
|
+
e.statusField && m.raw[e.statusField] != null && m.raw[e.statusField] !== "" ? (h(), R("span", dl, B(m.raw[e.statusField]), 1)) : W("", !0)
|
|
1094
1119
|
])
|
|
1095
1120
|
])),
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
e.chips && e.showDeleteButton &&
|
|
1121
|
+
z("div", cl, [
|
|
1122
|
+
M(o.$slots, "item-actions", ie({ ref_for: !0 }, Be(m)), () => [
|
|
1123
|
+
e.chips && e.showDeleteButton && f.value ? (h(), H(_, {
|
|
1099
1124
|
key: 0,
|
|
1100
1125
|
icon: "",
|
|
1101
1126
|
size: "x-small",
|
|
@@ -1103,17 +1128,17 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
1103
1128
|
density: "compact",
|
|
1104
1129
|
active: !1,
|
|
1105
1130
|
class: "a-le-action a-le-action--chip-close",
|
|
1106
|
-
onClick:
|
|
1131
|
+
onClick: ne((fe) => Xe(m), ["stop"])
|
|
1107
1132
|
}, {
|
|
1108
1133
|
default: r(() => [
|
|
1109
|
-
i(
|
|
1134
|
+
i(ae, {
|
|
1110
1135
|
icon: "mdi-close",
|
|
1111
1136
|
size: "14"
|
|
1112
1137
|
})
|
|
1113
1138
|
]),
|
|
1114
1139
|
_: 1
|
|
1115
|
-
}, 8, ["onClick"])) : (
|
|
1116
|
-
e.showEditButton &&
|
|
1140
|
+
}, 8, ["onClick"])) : (h(), R(ve, { key: 1 }, [
|
|
1141
|
+
e.showEditButton && f.value && !e.defaultExpanded ? (h(), H(_, {
|
|
1117
1142
|
key: 0,
|
|
1118
1143
|
icon: "",
|
|
1119
1144
|
size: "small",
|
|
@@ -1121,44 +1146,44 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
1121
1146
|
color: "primary",
|
|
1122
1147
|
density: "comfortable",
|
|
1123
1148
|
class: "mx-1 a-le-action a-le-action--edit",
|
|
1124
|
-
onClick:
|
|
1149
|
+
onClick: ne((fe) => he(m), ["stop"])
|
|
1125
1150
|
}, {
|
|
1126
1151
|
default: r(() => [
|
|
1127
|
-
i(
|
|
1152
|
+
i(ae, {
|
|
1128
1153
|
icon: "mdi-pencil-outline",
|
|
1129
1154
|
size: "18"
|
|
1130
1155
|
}),
|
|
1131
1156
|
i(De, {
|
|
1132
1157
|
activator: "parent",
|
|
1133
1158
|
location: "bottom",
|
|
1134
|
-
text: d(
|
|
1159
|
+
text: d(y)("common.sortable.edit")
|
|
1135
1160
|
}, null, 8, ["text"])
|
|
1136
1161
|
]),
|
|
1137
1162
|
_: 1
|
|
1138
|
-
}, 8, ["onClick"])) :
|
|
1139
|
-
e.showDeleteButton &&
|
|
1163
|
+
}, 8, ["onClick"])) : W("", !0),
|
|
1164
|
+
e.showDeleteButton && f.value ? (h(), H(_, {
|
|
1140
1165
|
key: 1,
|
|
1141
1166
|
icon: "",
|
|
1142
1167
|
size: "small",
|
|
1143
1168
|
variant: "text",
|
|
1144
1169
|
density: "comfortable",
|
|
1145
1170
|
class: "mx-1 a-le-action a-le-action--delete",
|
|
1146
|
-
onClick:
|
|
1171
|
+
onClick: ne((fe) => Xe(m), ["stop"])
|
|
1147
1172
|
}, {
|
|
1148
1173
|
default: r(() => [
|
|
1149
|
-
i(
|
|
1174
|
+
i(ae, {
|
|
1150
1175
|
icon: "mdi-trash-can-outline",
|
|
1151
1176
|
size: "18"
|
|
1152
1177
|
}),
|
|
1153
1178
|
i(De, {
|
|
1154
1179
|
activator: "parent",
|
|
1155
1180
|
location: "bottom",
|
|
1156
|
-
text: d(
|
|
1181
|
+
text: d(y)("common.sortable.delete")
|
|
1157
1182
|
}, null, 8, ["text"])
|
|
1158
1183
|
]),
|
|
1159
1184
|
_: 1
|
|
1160
|
-
}, 8, ["onClick"])) :
|
|
1161
|
-
e.showAddAfterAction &&
|
|
1185
|
+
}, 8, ["onClick"])) : W("", !0),
|
|
1186
|
+
e.showAddAfterAction && f.value ? (h(), H(_, {
|
|
1162
1187
|
key: 2,
|
|
1163
1188
|
icon: "",
|
|
1164
1189
|
size: "small",
|
|
@@ -1168,29 +1193,29 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
1168
1193
|
class: "mx-1 a-le-action a-le-action--menu"
|
|
1169
1194
|
}, {
|
|
1170
1195
|
default: r(() => [
|
|
1171
|
-
i(
|
|
1196
|
+
i(ae, {
|
|
1172
1197
|
icon: "mdi-dots-vertical",
|
|
1173
1198
|
size: "18"
|
|
1174
1199
|
}),
|
|
1175
1200
|
i(De, {
|
|
1176
1201
|
activator: "parent",
|
|
1177
1202
|
location: "bottom",
|
|
1178
|
-
text: d(
|
|
1203
|
+
text: d(y)("common.sortable.more")
|
|
1179
1204
|
}, null, 8, ["text"]),
|
|
1180
|
-
i(
|
|
1205
|
+
i(Kt, { activator: "parent" }, {
|
|
1181
1206
|
default: r(() => [
|
|
1182
|
-
i(
|
|
1207
|
+
i(ht, { density: "compact" }, {
|
|
1183
1208
|
default: r(() => [
|
|
1184
|
-
i(
|
|
1185
|
-
onClick:
|
|
1209
|
+
i(Pe, {
|
|
1210
|
+
onClick: ne((fe) => $e(m), ["stop"])
|
|
1186
1211
|
}, {
|
|
1187
1212
|
prepend: r(() => [
|
|
1188
|
-
i(
|
|
1213
|
+
i(ae, { icon: "mdi-plus" })
|
|
1189
1214
|
]),
|
|
1190
1215
|
default: r(() => [
|
|
1191
|
-
i(
|
|
1216
|
+
i(Ke, null, {
|
|
1192
1217
|
default: r(() => [
|
|
1193
|
-
G(B(d(
|
|
1218
|
+
G(B(d(y)("common.sortable.addAfter")), 1)
|
|
1194
1219
|
]),
|
|
1195
1220
|
_: 1
|
|
1196
1221
|
})
|
|
@@ -1205,27 +1230,27 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
1205
1230
|
}, 1024)
|
|
1206
1231
|
]),
|
|
1207
1232
|
_: 2
|
|
1208
|
-
}, 1024)) :
|
|
1233
|
+
}, 1024)) : W("", !0)
|
|
1209
1234
|
], 64))
|
|
1210
1235
|
])
|
|
1211
1236
|
])
|
|
1212
|
-
], 8,
|
|
1213
|
-
(m.editing || e.defaultExpanded) && o.$slots.item ? (
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1237
|
+
], 8, ll),
|
|
1238
|
+
(m.editing || e.defaultExpanded) && o.$slots.item ? (h(), R(ve, { key: 0 }, [
|
|
1239
|
+
z("div", ul, [
|
|
1240
|
+
z("div", fl, [
|
|
1241
|
+
M(o.$slots, "item", ie({ ref_for: !0 }, Be(m)))
|
|
1217
1242
|
])
|
|
1218
1243
|
]),
|
|
1219
|
-
|
|
1220
|
-
F.value && !e.defaultExpanded ? (
|
|
1221
|
-
U[1] || (U[1] =
|
|
1244
|
+
M(o.$slots, "item-footer", ie({ ref_for: !0 }, Be(m)), () => [
|
|
1245
|
+
F.value && !e.defaultExpanded ? (h(), R("div", ml, [
|
|
1246
|
+
U[1] || (U[1] = z("div", { class: "a-le-row-footer-spacer" }, null, -1)),
|
|
1222
1247
|
i(_, {
|
|
1223
1248
|
variant: "text",
|
|
1224
1249
|
disabled: m.loading,
|
|
1225
|
-
onClick:
|
|
1250
|
+
onClick: ne((fe) => it(m), ["stop"])
|
|
1226
1251
|
}, {
|
|
1227
1252
|
default: r(() => [
|
|
1228
|
-
G(B(d(
|
|
1253
|
+
G(B(d(y)("common.button.cancel")), 1)
|
|
1229
1254
|
]),
|
|
1230
1255
|
_: 1
|
|
1231
1256
|
}, 8, ["disabled", "onClick"]),
|
|
@@ -1234,107 +1259,107 @@ const Lo = { class: "d-flex flex-column w-100 px-1 align-center" }, Mo = { class
|
|
|
1234
1259
|
variant: "flat",
|
|
1235
1260
|
"prepend-icon": "mdi-check",
|
|
1236
1261
|
disabled: m.loading,
|
|
1237
|
-
onClick:
|
|
1262
|
+
onClick: ne((fe) => Ie(m), ["stop"])
|
|
1238
1263
|
}, {
|
|
1239
1264
|
default: r(() => [
|
|
1240
|
-
G(B(d(
|
|
1265
|
+
G(B(d(y)("common.button.save")), 1)
|
|
1241
1266
|
]),
|
|
1242
1267
|
_: 1
|
|
1243
1268
|
}, 8, ["disabled", "onClick"])
|
|
1244
|
-
])) :
|
|
1269
|
+
])) : W("", !0)
|
|
1245
1270
|
])
|
|
1246
|
-
], 64)) : o.$slots["item-readonly"] && (e.readonly || m.expanded) ? (
|
|
1247
|
-
|
|
1248
|
-
|
|
1271
|
+
], 64)) : o.$slots["item-readonly"] && (e.readonly || m.expanded) ? (h(), R("div", vl, [
|
|
1272
|
+
z("div", yl, [
|
|
1273
|
+
M(o.$slots, "item-readonly", ie({ ref_for: !0 }, Be(m)))
|
|
1249
1274
|
])
|
|
1250
|
-
])) :
|
|
1251
|
-
|
|
1252
|
-
], 42,
|
|
1253
|
-
|
|
1275
|
+
])) : W("", !0),
|
|
1276
|
+
M(o.$slots, "after-item", ie({ ref_for: !0 }, Be(m)))
|
|
1277
|
+
], 42, ol))), 128)),
|
|
1278
|
+
p.value && !e.loading && !e.error && !te.value ? M(o.$slots, "add-button", {
|
|
1254
1279
|
key: 5,
|
|
1255
1280
|
readonly: e.readonly,
|
|
1256
1281
|
disabled: e.disabled,
|
|
1257
1282
|
props: { onClick: Ae },
|
|
1258
1283
|
actions: { add: Ae }
|
|
1259
1284
|
}, () => [
|
|
1260
|
-
|
|
1285
|
+
z("button", {
|
|
1261
1286
|
type: "button",
|
|
1262
1287
|
class: "a-le-row-add",
|
|
1263
1288
|
onClick: Ae
|
|
1264
1289
|
}, [
|
|
1265
|
-
i(
|
|
1290
|
+
i(ae, {
|
|
1266
1291
|
icon: "mdi-plus",
|
|
1267
1292
|
size: "18"
|
|
1268
1293
|
}),
|
|
1269
|
-
|
|
1294
|
+
z("span", null, B(Y.value), 1)
|
|
1270
1295
|
])
|
|
1271
|
-
]) :
|
|
1296
|
+
]) : W("", !0)
|
|
1272
1297
|
], 512),
|
|
1273
|
-
i(
|
|
1298
|
+
i(_n, {
|
|
1274
1299
|
modelValue: d(Me),
|
|
1275
1300
|
"onUpdate:modelValue": U[0] || (U[0] = (m) => aa(Me) ? Me.value = m : null),
|
|
1276
1301
|
title: re.value,
|
|
1277
|
-
text:
|
|
1278
|
-
"confirm-label": d(
|
|
1279
|
-
"cancel-label": d(
|
|
1302
|
+
text: I.value,
|
|
1303
|
+
"confirm-label": d(y)("common.sortable.delete"),
|
|
1304
|
+
"cancel-label": d(y)("common.button.cancel"),
|
|
1280
1305
|
error: d(we),
|
|
1281
|
-
"in-flight": d(
|
|
1282
|
-
onConfirm: d(
|
|
1306
|
+
"in-flight": d(pt),
|
|
1307
|
+
onConfirm: d(Je),
|
|
1283
1308
|
onCancel: d(lt)
|
|
1284
1309
|
}, null, 8, ["modelValue", "title", "text", "confirm-label", "cancel-label", "error", "in-flight", "onConfirm", "onCancel"]),
|
|
1285
|
-
|
|
1310
|
+
z("div", hl, B(d(ue).grabbedKey.value !== null ? d(y)("common.sortable.keyboardGrab.status", {
|
|
1286
1311
|
n: d(ue).grabbedIndex.value + 1,
|
|
1287
1312
|
total: d(ue).totalCount.value
|
|
1288
1313
|
}) : ""), 1)
|
|
1289
1314
|
], 2));
|
|
1290
1315
|
}
|
|
1291
|
-
}),
|
|
1292
|
-
function
|
|
1293
|
-
const
|
|
1294
|
-
if (!
|
|
1295
|
-
let
|
|
1296
|
-
for (const
|
|
1297
|
-
const S = k(
|
|
1298
|
-
S >
|
|
1316
|
+
}), pl = "id", gl = "position", bl = "parent";
|
|
1317
|
+
function kl(e, w) {
|
|
1318
|
+
const c = w.keyField ?? pl, n = w.positionField ?? gl, u = w.parentField ?? bl, v = w.positionMultiplier ?? 1, y = w.maxDepth, g = (I) => I[c], k = (I) => {
|
|
1319
|
+
if (!I.children || I.children.length === 0) return 1;
|
|
1320
|
+
let f = 0;
|
|
1321
|
+
for (const p of I.children) {
|
|
1322
|
+
const S = k(p);
|
|
1323
|
+
S > f && (f = S);
|
|
1299
1324
|
}
|
|
1300
|
-
return
|
|
1301
|
-
}, s = (
|
|
1302
|
-
for (const S of
|
|
1303
|
-
if (
|
|
1325
|
+
return f + 1;
|
|
1326
|
+
}, s = (I, f = e.value.children, p = null) => {
|
|
1327
|
+
for (const S of f) {
|
|
1328
|
+
if (g(S.data) === I) return { node: S, parent: p };
|
|
1304
1329
|
if (S.children && S.children.length > 0) {
|
|
1305
|
-
const F = s(
|
|
1330
|
+
const F = s(I, S.children, S);
|
|
1306
1331
|
if (F.node) return F;
|
|
1307
1332
|
}
|
|
1308
1333
|
}
|
|
1309
1334
|
return { node: null, parent: null };
|
|
1310
|
-
}, C = (
|
|
1311
|
-
let
|
|
1312
|
-
for (const
|
|
1313
|
-
|
|
1314
|
-
}, D = (
|
|
1315
|
-
const
|
|
1316
|
-
C(
|
|
1317
|
-
for (const S of
|
|
1335
|
+
}, C = (I) => {
|
|
1336
|
+
let f = 1 * v;
|
|
1337
|
+
for (const p of I)
|
|
1338
|
+
p.data[n] !== f && (p.data[n] = f), f += v;
|
|
1339
|
+
}, D = (I) => {
|
|
1340
|
+
const f = (p) => {
|
|
1341
|
+
C(p);
|
|
1342
|
+
for (const S of p) S.children && S.children.length && f(S.children);
|
|
1318
1343
|
};
|
|
1319
|
-
|
|
1320
|
-
}, N = (
|
|
1321
|
-
const
|
|
1322
|
-
return D(
|
|
1323
|
-
}, V = (
|
|
1324
|
-
const
|
|
1344
|
+
f(I.children);
|
|
1345
|
+
}, N = (I) => {
|
|
1346
|
+
const f = ke(I);
|
|
1347
|
+
return D(f), f;
|
|
1348
|
+
}, V = (I) => {
|
|
1349
|
+
const f = [], p = w.expandedKeys?.value;
|
|
1325
1350
|
let S = 0;
|
|
1326
|
-
const F = (O, q,
|
|
1351
|
+
const F = (O, q, le) => {
|
|
1327
1352
|
for (let te = 0; te < O.length; te++) {
|
|
1328
|
-
const Q = O[te], ue =
|
|
1329
|
-
|
|
1353
|
+
const Q = O[te], ue = g(Q.data), ge = !ye(Q.children), Te = ge && (Q.children?.length ?? 0) > 0, Ae = Q.children?.length ?? 0, $e = p ? p.has(ue) : !0, he = y - (q + 1), Fe = ge && he > 0, Se = q > 0, _e = te > 0;
|
|
1354
|
+
f.push({
|
|
1330
1355
|
key: ue,
|
|
1331
1356
|
index: S++,
|
|
1332
1357
|
raw: Q.data,
|
|
1333
1358
|
position: Q.data[n],
|
|
1334
1359
|
node: Q,
|
|
1335
1360
|
depth: q,
|
|
1336
|
-
parent:
|
|
1337
|
-
parentKey:
|
|
1361
|
+
parent: le?.data ?? null,
|
|
1362
|
+
parentKey: le ? g(le.data) : null,
|
|
1338
1363
|
childrenCount: Ae,
|
|
1339
1364
|
hasChildren: Te,
|
|
1340
1365
|
childrenAllowed: ge,
|
|
@@ -1348,99 +1373,99 @@ function yl(e, w) {
|
|
|
1348
1373
|
}), Te && $e && F(Q.children, q + 1, Q);
|
|
1349
1374
|
}
|
|
1350
1375
|
};
|
|
1351
|
-
return F(
|
|
1352
|
-
},
|
|
1353
|
-
|
|
1354
|
-
}, j = (
|
|
1355
|
-
if (!
|
|
1356
|
-
if (
|
|
1357
|
-
const
|
|
1358
|
-
return
|
|
1376
|
+
return F(I.children, 0, null), f;
|
|
1377
|
+
}, P = b(() => V(e.value)), T = (I, f, p) => {
|
|
1378
|
+
I.splice(f + 1, 0, p);
|
|
1379
|
+
}, j = (I, f) => {
|
|
1380
|
+
if (!f) return I.length;
|
|
1381
|
+
if (f.afterId !== void 0) {
|
|
1382
|
+
const p = I.findIndex((S) => g(S.data) === f.afterId);
|
|
1383
|
+
return p === -1 ? I.length : p + 1;
|
|
1359
1384
|
}
|
|
1360
|
-
return
|
|
1361
|
-
},
|
|
1362
|
-
const
|
|
1363
|
-
data: ke(
|
|
1385
|
+
return f.afterIndex !== void 0 ? f.afterIndex < 0 ? I.length : Math.min(f.afterIndex + 1, I.length) : f.index !== void 0 ? Math.max(0, Math.min(f.index, I.length)) : I.length;
|
|
1386
|
+
}, K = (I, f) => {
|
|
1387
|
+
const p = ke(e.value), S = f?.childrenAllowed ?? !0, F = {
|
|
1388
|
+
data: ke(I),
|
|
1364
1389
|
children: S ? [] : void 0,
|
|
1365
1390
|
meta: { dirty: !1 }
|
|
1366
1391
|
};
|
|
1367
|
-
let O =
|
|
1368
|
-
if (
|
|
1369
|
-
const { node: te } = s(
|
|
1392
|
+
let O = p.children, q = null;
|
|
1393
|
+
if (f?.parentId !== void 0 && f.parentId !== null) {
|
|
1394
|
+
const { node: te } = s(f.parentId, p.children);
|
|
1370
1395
|
te && te.children && (O = te.children, q = te);
|
|
1371
1396
|
}
|
|
1372
|
-
if (
|
|
1373
|
-
const { node: te, parent: Q } = s(
|
|
1397
|
+
if (f?.afterId !== void 0) {
|
|
1398
|
+
const { node: te, parent: Q } = s(f.afterId, p.children);
|
|
1374
1399
|
if (te) {
|
|
1375
|
-
const ue = Q ? Q.children :
|
|
1400
|
+
const ue = Q ? Q.children : p.children, ge = ue.indexOf(te);
|
|
1376
1401
|
if (ge !== -1)
|
|
1377
|
-
return T(ue, ge, F), F.data[
|
|
1402
|
+
return T(ue, ge, F), F.data[u] = Q ? g(Q.data) : null, C(ue), e.value = p, p;
|
|
1378
1403
|
}
|
|
1379
1404
|
}
|
|
1380
|
-
const
|
|
1381
|
-
return O.splice(
|
|
1382
|
-
}, $ = (
|
|
1383
|
-
const
|
|
1384
|
-
if (!
|
|
1385
|
-
const F = S ? S.children :
|
|
1386
|
-
return O === -1 || (F.splice(O, 1), C(F), e.value =
|
|
1387
|
-
}, X = (
|
|
1388
|
-
const
|
|
1389
|
-
return S && (S.data = ke(
|
|
1390
|
-
}, A = (
|
|
1391
|
-
const { node: S, parent: F } = s(
|
|
1405
|
+
const le = f?.asFirstChild ? 0 : j(O, f);
|
|
1406
|
+
return O.splice(le, 0, F), F.data[u] = q ? g(q.data) : null, C(O), e.value = p, p;
|
|
1407
|
+
}, $ = (I) => {
|
|
1408
|
+
const f = ke(e.value), { node: p, parent: S } = s(I, f.children);
|
|
1409
|
+
if (!p) return f;
|
|
1410
|
+
const F = S ? S.children : f.children, O = F.indexOf(p);
|
|
1411
|
+
return O === -1 || (F.splice(O, 1), C(F), e.value = f), f;
|
|
1412
|
+
}, X = (I, f) => {
|
|
1413
|
+
const p = ke(e.value), { node: S } = s(I, p.children);
|
|
1414
|
+
return S && (S.data = ke(f), e.value = p), p;
|
|
1415
|
+
}, A = (I, f, p) => {
|
|
1416
|
+
const { node: S, parent: F } = s(f, I.children);
|
|
1392
1417
|
if (!S) return null;
|
|
1393
|
-
const O = F ? F.children :
|
|
1418
|
+
const O = F ? F.children : I.children, q = O.indexOf(S);
|
|
1394
1419
|
if (q === -1) return null;
|
|
1395
|
-
const
|
|
1396
|
-
if (
|
|
1420
|
+
const le = p(O, q);
|
|
1421
|
+
if (le === null || le === q) return null;
|
|
1397
1422
|
const [te] = O.splice(q, 1);
|
|
1398
|
-
return O.splice(
|
|
1399
|
-
}, J = (
|
|
1400
|
-
const
|
|
1401
|
-
return
|
|
1402
|
-
}, L = (
|
|
1403
|
-
const
|
|
1404
|
-
return
|
|
1405
|
-
}, E = (
|
|
1406
|
-
const
|
|
1407
|
-
return
|
|
1408
|
-
}, ee = (
|
|
1409
|
-
const
|
|
1410
|
-
return
|
|
1411
|
-
}, se = (
|
|
1412
|
-
const
|
|
1413
|
-
if (!
|
|
1414
|
-
const F = S ? S.children :
|
|
1423
|
+
return O.splice(le, 0, te), C(O), I;
|
|
1424
|
+
}, J = (I) => {
|
|
1425
|
+
const f = ke(e.value), p = A(f, I, (S, F) => F > 0 ? F - 1 : null);
|
|
1426
|
+
return p && (e.value = p), p;
|
|
1427
|
+
}, L = (I) => {
|
|
1428
|
+
const f = ke(e.value), p = A(f, I, (S, F) => F < S.length - 1 ? F + 1 : null);
|
|
1429
|
+
return p && (e.value = p), p;
|
|
1430
|
+
}, E = (I) => {
|
|
1431
|
+
const f = ke(e.value), p = A(f, I, (S, F) => F > 0 ? 0 : null);
|
|
1432
|
+
return p && (e.value = p), p;
|
|
1433
|
+
}, ee = (I) => {
|
|
1434
|
+
const f = ke(e.value), p = A(f, I, (S, F) => F < S.length - 1 ? S.length - 1 : null);
|
|
1435
|
+
return p && (e.value = p), p;
|
|
1436
|
+
}, se = (I) => {
|
|
1437
|
+
const f = ke(e.value), { node: p, parent: S } = s(I, f.children);
|
|
1438
|
+
if (!p) return null;
|
|
1439
|
+
const F = S ? S.children : f.children, O = F.indexOf(p);
|
|
1415
1440
|
if (O <= 0) return null;
|
|
1416
1441
|
const q = F[O - 1];
|
|
1417
|
-
if (
|
|
1418
|
-
const
|
|
1419
|
-
return
|
|
1420
|
-
}, Y = (
|
|
1421
|
-
const
|
|
1422
|
-
if (!
|
|
1423
|
-
const { parent: F } = s(
|
|
1442
|
+
if (ye(q.children)) return null;
|
|
1443
|
+
const le = k(p);
|
|
1444
|
+
return oe(f, g(q.data)) + 1 + le > y ? null : (F.splice(O, 1), q.children.push(p), p.data[u] = g(q.data), C(F), C(q.children), e.value = f, f);
|
|
1445
|
+
}, Y = (I) => {
|
|
1446
|
+
const f = ke(e.value), { node: p, parent: S } = s(I, f.children);
|
|
1447
|
+
if (!p || !S) return null;
|
|
1448
|
+
const { parent: F } = s(g(S.data), f.children), O = F ? F.children : f.children, q = O.indexOf(S);
|
|
1424
1449
|
if (q === -1) return null;
|
|
1425
|
-
const
|
|
1426
|
-
return te === -1 ? null : (
|
|
1427
|
-
},
|
|
1428
|
-
const
|
|
1450
|
+
const le = S.children, te = le.indexOf(p);
|
|
1451
|
+
return te === -1 ? null : (le.splice(te, 1), O.splice(q + 1, 0, p), p.data[u] = F ? g(F.data) : null, C(le), C(O), e.value = f, f);
|
|
1452
|
+
}, oe = (I, f) => {
|
|
1453
|
+
const p = (S, F) => {
|
|
1429
1454
|
for (const O of S) {
|
|
1430
|
-
if (
|
|
1455
|
+
if (g(O.data) === f) return F;
|
|
1431
1456
|
if (O.children && O.children.length) {
|
|
1432
|
-
const q =
|
|
1457
|
+
const q = p(O.children, F + 1);
|
|
1433
1458
|
if (q !== null) return q;
|
|
1434
1459
|
}
|
|
1435
1460
|
}
|
|
1436
1461
|
return null;
|
|
1437
1462
|
};
|
|
1438
|
-
return
|
|
1463
|
+
return p(I.children, 0) ?? 0;
|
|
1439
1464
|
};
|
|
1440
1465
|
return {
|
|
1441
|
-
viewItems:
|
|
1466
|
+
viewItems: P,
|
|
1442
1467
|
findNode: s,
|
|
1443
|
-
addItem:
|
|
1468
|
+
addItem: K,
|
|
1444
1469
|
deleteItem: $,
|
|
1445
1470
|
updateItem: X,
|
|
1446
1471
|
moveUp: J,
|
|
@@ -1449,77 +1474,77 @@ function yl(e, w) {
|
|
|
1449
1474
|
moveBottom: ee,
|
|
1450
1475
|
indent: se,
|
|
1451
1476
|
outdent: Y,
|
|
1452
|
-
moveTo: (
|
|
1453
|
-
const S = ke(e.value), { node: F, parent: O } = s(
|
|
1477
|
+
moveTo: (I, f, p) => {
|
|
1478
|
+
const S = ke(e.value), { node: F, parent: O } = s(I, S.children);
|
|
1454
1479
|
if (!F) return null;
|
|
1455
|
-
if (
|
|
1456
|
-
const
|
|
1480
|
+
if (f !== null) {
|
|
1481
|
+
const he = (Fe) => {
|
|
1457
1482
|
if (!Fe.children) return !1;
|
|
1458
1483
|
for (const Se of Fe.children)
|
|
1459
|
-
if (
|
|
1484
|
+
if (g(Se.data) === f || he(Se)) return !0;
|
|
1460
1485
|
return !1;
|
|
1461
1486
|
};
|
|
1462
|
-
if (
|
|
1487
|
+
if (g(F.data) === f || he(F)) return null;
|
|
1463
1488
|
}
|
|
1464
|
-
let q,
|
|
1465
|
-
if (
|
|
1489
|
+
let q, le = null, te = 0;
|
|
1490
|
+
if (f === null)
|
|
1466
1491
|
q = S.children, te = 0;
|
|
1467
1492
|
else {
|
|
1468
|
-
const { node:
|
|
1469
|
-
if (!
|
|
1470
|
-
q =
|
|
1493
|
+
const { node: he } = s(f, S.children);
|
|
1494
|
+
if (!he || ye(he.children)) return null;
|
|
1495
|
+
q = he.children, le = he, te = oe(S, f) + 1;
|
|
1471
1496
|
}
|
|
1472
1497
|
const Q = k(F);
|
|
1473
|
-
if (te + Q >
|
|
1498
|
+
if (te + Q > y) return null;
|
|
1474
1499
|
const ue = O ? O.children : S.children, ge = ue.indexOf(F);
|
|
1475
1500
|
if (ge === -1) return null;
|
|
1476
1501
|
const Te = ue === q, [Ae] = ue.splice(ge, 1);
|
|
1477
|
-
let $e =
|
|
1478
|
-
return Te && ge <
|
|
1502
|
+
let $e = p;
|
|
1503
|
+
return Te && ge < p && ($e = p - 1), $e = Math.max(0, Math.min($e, q.length)), q.splice($e, 0, Ae), Ae.data[u] = le ? g(le.data) : null, Te || C(ue), C(q), e.value = S, S;
|
|
1479
1504
|
},
|
|
1480
1505
|
recalculatePositions: N,
|
|
1481
1506
|
calculateSubtreeDepth: k
|
|
1482
1507
|
};
|
|
1483
1508
|
}
|
|
1484
|
-
const
|
|
1485
|
-
let n =
|
|
1509
|
+
const Rt = (e, w) => e.find((c) => c.key === w) ?? null, ra = (e, w, c) => {
|
|
1510
|
+
let n = Rt(e, c);
|
|
1486
1511
|
for (; n && n.parentKey !== null; ) {
|
|
1487
1512
|
if (n.parentKey === w) return !0;
|
|
1488
|
-
n =
|
|
1513
|
+
n = Rt(e, n.parentKey);
|
|
1489
1514
|
}
|
|
1490
1515
|
return !1;
|
|
1491
|
-
},
|
|
1492
|
-
let n =
|
|
1493
|
-
for (; n && n.depth >
|
|
1516
|
+
}, wl = (e, w, c) => {
|
|
1517
|
+
let n = Rt(e, w);
|
|
1518
|
+
for (; n && n.depth > c; ) {
|
|
1494
1519
|
if (n.parentKey === null) return null;
|
|
1495
|
-
n =
|
|
1520
|
+
n = Rt(e, n.parentKey);
|
|
1496
1521
|
}
|
|
1497
|
-
return n && n.depth ===
|
|
1498
|
-
},
|
|
1499
|
-
for (let
|
|
1500
|
-
const
|
|
1501
|
-
if (!
|
|
1522
|
+
return n && n.depth === c ? n : null;
|
|
1523
|
+
}, Cl = (e, w, c) => c === w || ra(e, w, c), Dt = (e, w, c, n) => {
|
|
1524
|
+
for (let u = w; u >= 0 && u < e.length; u += c) {
|
|
1525
|
+
const v = e[u];
|
|
1526
|
+
if (!Cl(e, n, v.key)) return v;
|
|
1502
1527
|
}
|
|
1503
1528
|
return null;
|
|
1504
|
-
},
|
|
1529
|
+
}, xl = (e) => {
|
|
1505
1530
|
const {
|
|
1506
1531
|
pointer: w,
|
|
1507
|
-
hoveredRow:
|
|
1532
|
+
hoveredRow: c,
|
|
1508
1533
|
sourceKey: n,
|
|
1509
|
-
sourceSubtreeDepth:
|
|
1510
|
-
viewItems:
|
|
1511
|
-
maxDepth:
|
|
1512
|
-
indentPx:
|
|
1534
|
+
sourceSubtreeDepth: u,
|
|
1535
|
+
viewItems: v,
|
|
1536
|
+
maxDepth: y,
|
|
1537
|
+
indentPx: g,
|
|
1513
1538
|
containerLeft: k,
|
|
1514
1539
|
containerPaddingLeft: s
|
|
1515
1540
|
} = e;
|
|
1516
|
-
if (
|
|
1517
|
-
const C = w.y -
|
|
1541
|
+
if (c.key === n || ra(v, n, c.key)) return null;
|
|
1542
|
+
const C = w.y - c.rect.top, D = c.rect.height, N = C < D / 2, V = N ? "top" : "bottom", P = v.findIndex((E) => E.key === c.key), T = N ? Dt(v, P - 1, -1, n) : Dt(v, P, -1, n), j = N ? Dt(v, P, 1, n) : Dt(v, P + 1, 1, n), K = w.x - k - s, $ = Math.round(K / g), X = T ? T.depth + 1 : 0, A = j ? j.depth : 0, J = Math.max(A, Math.min($, X));
|
|
1518
1543
|
let L;
|
|
1519
1544
|
if (!T)
|
|
1520
1545
|
L = {
|
|
1521
1546
|
type: "insert",
|
|
1522
|
-
refKey:
|
|
1547
|
+
refKey: c.key,
|
|
1523
1548
|
refEdge: "top",
|
|
1524
1549
|
parentKey: null,
|
|
1525
1550
|
index: 0,
|
|
@@ -1530,7 +1555,7 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1530
1555
|
else if (J === T.depth + 1)
|
|
1531
1556
|
L = {
|
|
1532
1557
|
type: "insert",
|
|
1533
|
-
refKey:
|
|
1558
|
+
refKey: c.key,
|
|
1534
1559
|
refEdge: V,
|
|
1535
1560
|
parentKey: T.key,
|
|
1536
1561
|
index: 0,
|
|
@@ -1541,7 +1566,7 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1541
1566
|
else if (J === T.depth)
|
|
1542
1567
|
L = {
|
|
1543
1568
|
type: "insert",
|
|
1544
|
-
refKey:
|
|
1569
|
+
refKey: c.key,
|
|
1545
1570
|
refEdge: V,
|
|
1546
1571
|
parentKey: T.parentKey,
|
|
1547
1572
|
index: T.siblingIndex + 1,
|
|
@@ -1550,10 +1575,10 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1550
1575
|
levelRowKey: T.key
|
|
1551
1576
|
};
|
|
1552
1577
|
else {
|
|
1553
|
-
const E =
|
|
1578
|
+
const E = wl(v, T.key, J);
|
|
1554
1579
|
E ? L = {
|
|
1555
1580
|
type: "insert",
|
|
1556
|
-
refKey:
|
|
1581
|
+
refKey: c.key,
|
|
1557
1582
|
refEdge: V,
|
|
1558
1583
|
parentKey: E.parentKey,
|
|
1559
1584
|
index: E.siblingIndex + 1,
|
|
@@ -1562,7 +1587,7 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1562
1587
|
levelRowKey: E.key
|
|
1563
1588
|
} : L = {
|
|
1564
1589
|
type: "insert",
|
|
1565
|
-
refKey:
|
|
1590
|
+
refKey: c.key,
|
|
1566
1591
|
refEdge: V,
|
|
1567
1592
|
parentKey: T.parentKey,
|
|
1568
1593
|
index: T.siblingIndex + 1,
|
|
@@ -1571,28 +1596,28 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1571
1596
|
levelRowKey: T.key
|
|
1572
1597
|
};
|
|
1573
1598
|
}
|
|
1574
|
-
return L.depth +
|
|
1575
|
-
},
|
|
1599
|
+
return L.depth + u - 1 >= y ? { type: "blocked", desired: L, reason: "maxDepth" } : L;
|
|
1600
|
+
}, Al = ["data-id", "aria-level", "tabindex"], Sl = ["aria-label"], Il = {
|
|
1576
1601
|
key: 2,
|
|
1577
1602
|
class: "a-nested-list-editor__tree-toggle a-nested-list-editor__tree-toggle--spacer",
|
|
1578
1603
|
"aria-hidden": "true"
|
|
1579
|
-
},
|
|
1604
|
+
}, Pl = { class: "a-le-row-main" }, Dl = { class: "a-le-title" }, El = {
|
|
1580
1605
|
key: 0,
|
|
1581
1606
|
class: "a-nested-list-editor__drag-count",
|
|
1582
1607
|
"aria-hidden": "true"
|
|
1583
|
-
},
|
|
1608
|
+
}, Tl = {
|
|
1584
1609
|
key: 3,
|
|
1585
1610
|
class: "a-le-status"
|
|
1586
|
-
},
|
|
1611
|
+
}, $l = {
|
|
1587
1612
|
key: 0,
|
|
1588
1613
|
class: "a-le-status-badge"
|
|
1589
|
-
},
|
|
1614
|
+
}, Fl = { class: "a-le-actions" }, Bl = { class: "a-le-row-body" }, Kl = { class: "a-le-form" }, Rl = {
|
|
1590
1615
|
key: 0,
|
|
1591
1616
|
class: "a-le-row-footer"
|
|
1592
|
-
},
|
|
1617
|
+
}, Vl = {
|
|
1593
1618
|
key: 1,
|
|
1594
1619
|
class: "a-le-row-body"
|
|
1595
|
-
},
|
|
1620
|
+
}, Ll = { class: "a-le-form" }, Ml = ["data-parent-id"], zl = "a-nested-list-editor__group", Nl = "a-le-drag-handle", da = /* @__PURE__ */ je({
|
|
1596
1621
|
__name: "LeNestedRow",
|
|
1597
1622
|
props: {
|
|
1598
1623
|
vi: {},
|
|
@@ -1602,13 +1627,13 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1602
1627
|
callbacks: {}
|
|
1603
1628
|
},
|
|
1604
1629
|
setup(e) {
|
|
1605
|
-
const w = e,
|
|
1630
|
+
const w = e, c = da, { t: n } = He(), u = (k) => `--row-${String(k).replace(/\W/g, "_")}`, v = (k) => {
|
|
1606
1631
|
if (typeof w.context.resolveValidation == "function")
|
|
1607
1632
|
return w.context.resolveValidation(k, w.vi.key, w.vi.index);
|
|
1608
1633
|
const s = k.validationState;
|
|
1609
1634
|
return s === "valid" || s === "invalid" || s === "warning" ? s : null;
|
|
1610
|
-
},
|
|
1611
|
-
return (k, s) => (
|
|
1635
|
+
}, y = () => w.context.buildSlotProps(w.vi), g = () => w.viewItems.filter((k) => k.parentKey === w.vi.key);
|
|
1636
|
+
return (k, s) => (h(), R("div", {
|
|
1612
1637
|
class: xe([
|
|
1613
1638
|
"a-le-row-wrapper",
|
|
1614
1639
|
{
|
|
@@ -1621,7 +1646,7 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1621
1646
|
tabindex: e.context.keyboardNav ? e.context.keyboardNav.rowTabindex(e.vi.key) : void 0,
|
|
1622
1647
|
onKeydown: s[17] || (s[17] = (C) => e.context.keyboardNav ? e.context.keyboardNav.handleKeydown(e.vi.key, C) : void 0)
|
|
1623
1648
|
}, [
|
|
1624
|
-
|
|
1649
|
+
z("div", {
|
|
1625
1650
|
class: xe([
|
|
1626
1651
|
"a-le-row",
|
|
1627
1652
|
e.vi.depth > 0 ? "a-le-row--child" : null,
|
|
@@ -1633,25 +1658,25 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1633
1658
|
"a-le-row--grabbed": e.context.keyboardNav && e.context.keyboardNav.isGrabbed(e.vi.key),
|
|
1634
1659
|
"a-le-row--clickable": e.context.isRowClickable(e.vi),
|
|
1635
1660
|
"a-le-row--drop-source": e.dragState !== null && e.dragState.sourceKey === e.vi.key,
|
|
1636
|
-
[`a-le-row--validation-${
|
|
1661
|
+
[`a-le-row--validation-${v(e.vi.raw)}`]: v(e.vi.raw) !== null
|
|
1637
1662
|
}
|
|
1638
1663
|
]),
|
|
1639
|
-
style:
|
|
1664
|
+
style: yt({
|
|
1640
1665
|
"--nested-depth": e.vi.depth,
|
|
1641
|
-
"anchor-name":
|
|
1642
|
-
"--parent-anchor": e.vi.parentKey !== null ?
|
|
1666
|
+
"anchor-name": u(e.vi.key),
|
|
1667
|
+
"--parent-anchor": e.vi.parentKey !== null ? u(e.vi.parentKey) : "none"
|
|
1643
1668
|
})
|
|
1644
1669
|
}, [
|
|
1645
|
-
|
|
1646
|
-
|
|
1670
|
+
M(k.$slots, "before-item", Ve(Ge(y()))),
|
|
1671
|
+
z("div", {
|
|
1647
1672
|
class: "a-le-row-header",
|
|
1648
1673
|
onClick: s[14] || (s[14] = (C) => e.callbacks.onRowClick(e.vi))
|
|
1649
1674
|
}, [
|
|
1650
|
-
e.context.dragEnabled ? (
|
|
1675
|
+
e.context.dragEnabled ? (h(), H(ro, {
|
|
1651
1676
|
key: 0,
|
|
1652
|
-
class: xe(
|
|
1653
|
-
})) :
|
|
1654
|
-
e.context.showExpandToggle && e.vi.childrenAllowed ? (
|
|
1677
|
+
class: xe(Nl)
|
|
1678
|
+
})) : W("", !0),
|
|
1679
|
+
e.context.showExpandToggle && e.vi.childrenAllowed ? (h(), R("button", {
|
|
1655
1680
|
key: 1,
|
|
1656
1681
|
type: "button",
|
|
1657
1682
|
class: xe([
|
|
@@ -1662,31 +1687,31 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1662
1687
|
}
|
|
1663
1688
|
]),
|
|
1664
1689
|
"aria-label": e.vi.childrenExpanded ? d(n)("common.sortable.close") : d(n)("common.sortable.edit"),
|
|
1665
|
-
onClick: s[0] || (s[0] =
|
|
1690
|
+
onClick: s[0] || (s[0] = ne((C) => e.vi.hasChildren && e.callbacks.onChevronClick(e.vi), ["stop"]))
|
|
1666
1691
|
}, [...s[18] || (s[18] = [
|
|
1667
|
-
|
|
1668
|
-
])], 10,
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1692
|
+
z("span", { class: "a-nested-list-editor__tree-toggle-caret" }, null, -1)
|
|
1693
|
+
])], 10, Sl)) : e.context.showExpandToggle ? (h(), R("span", Il)) : W("", !0),
|
|
1694
|
+
z("div", Pl, [
|
|
1695
|
+
M(k.$slots, "item-compact", Ve(Ge(y())), () => [
|
|
1696
|
+
z("span", Dl, B(e.context.resolveCompactText(e.vi.raw, e.vi.key)), 1)
|
|
1672
1697
|
]),
|
|
1673
|
-
e.vi.hasChildren ? (
|
|
1674
|
-
i(
|
|
1698
|
+
e.vi.hasChildren ? (h(), R("span", El, [
|
|
1699
|
+
i(ae, {
|
|
1675
1700
|
icon: "mdi-file-tree",
|
|
1676
1701
|
size: "14"
|
|
1677
1702
|
}),
|
|
1678
1703
|
G(" +" + B(e.vi.childrenCount), 1)
|
|
1679
|
-
])) :
|
|
1680
|
-
e.vi.unsaved ? (
|
|
1704
|
+
])) : W("", !0),
|
|
1705
|
+
e.vi.unsaved ? (h(), H(Zn, { key: 1 })) : W("", !0)
|
|
1681
1706
|
]),
|
|
1682
|
-
e.context.reorderMode ?
|
|
1683
|
-
|
|
1684
|
-
e.context.statusField && e.vi.raw[e.context.statusField] != null && e.vi.raw[e.context.statusField] !== "" ? (
|
|
1707
|
+
e.context.reorderMode ? W("", !0) : (h(), R("div", Tl, [
|
|
1708
|
+
M(k.$slots, "item-status", Ve(Ge(y())), () => [
|
|
1709
|
+
e.context.statusField && e.vi.raw[e.context.statusField] != null && e.vi.raw[e.context.statusField] !== "" ? (h(), R("span", $l, B(e.vi.raw[e.context.statusField]), 1)) : W("", !0)
|
|
1685
1710
|
])
|
|
1686
1711
|
])),
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
e.context.reorderMode ? (
|
|
1712
|
+
z("div", Fl, [
|
|
1713
|
+
M(k.$slots, "item-actions", Ve(Ge(y())), () => [
|
|
1714
|
+
e.context.reorderMode ? (h(), R(ve, { key: 0 }, [
|
|
1690
1715
|
i(_, {
|
|
1691
1716
|
icon: "",
|
|
1692
1717
|
size: "small",
|
|
@@ -1694,10 +1719,10 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1694
1719
|
density: "comfortable",
|
|
1695
1720
|
disabled: e.vi.firstInParent,
|
|
1696
1721
|
class: "mx-1 a-le-action a-le-action--up",
|
|
1697
|
-
onClick: s[1] || (s[1] =
|
|
1722
|
+
onClick: s[1] || (s[1] = ne((C) => e.callbacks.moveUp(e.vi.key), ["stop"]))
|
|
1698
1723
|
}, {
|
|
1699
1724
|
default: r(() => [
|
|
1700
|
-
i(
|
|
1725
|
+
i(ae, {
|
|
1701
1726
|
icon: "mdi-arrow-up",
|
|
1702
1727
|
size: "18"
|
|
1703
1728
|
}),
|
|
@@ -1716,10 +1741,10 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1716
1741
|
density: "comfortable",
|
|
1717
1742
|
disabled: e.vi.lastInParent,
|
|
1718
1743
|
class: "mx-1 a-le-action a-le-action--down",
|
|
1719
|
-
onClick: s[2] || (s[2] =
|
|
1744
|
+
onClick: s[2] || (s[2] = ne((C) => e.callbacks.moveDown(e.vi.key), ["stop"]))
|
|
1720
1745
|
}, {
|
|
1721
1746
|
default: r(() => [
|
|
1722
|
-
i(
|
|
1747
|
+
i(ae, {
|
|
1723
1748
|
icon: "mdi-arrow-down",
|
|
1724
1749
|
size: "18"
|
|
1725
1750
|
}),
|
|
@@ -1740,7 +1765,7 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1740
1765
|
class: "mx-1 a-le-action a-le-action--menu"
|
|
1741
1766
|
}, {
|
|
1742
1767
|
default: r(() => [
|
|
1743
|
-
i(
|
|
1768
|
+
i(ae, {
|
|
1744
1769
|
icon: "mdi-dots-vertical",
|
|
1745
1770
|
size: "18"
|
|
1746
1771
|
}),
|
|
@@ -1749,19 +1774,19 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1749
1774
|
location: "bottom",
|
|
1750
1775
|
text: d(n)("common.sortable.more")
|
|
1751
1776
|
}, null, 8, ["text"]),
|
|
1752
|
-
i(
|
|
1777
|
+
i(Kt, { activator: "parent" }, {
|
|
1753
1778
|
default: r(() => [
|
|
1754
|
-
i(
|
|
1779
|
+
i(ht, { density: "compact" }, {
|
|
1755
1780
|
default: r(() => [
|
|
1756
|
-
i(
|
|
1781
|
+
i(Pe, {
|
|
1757
1782
|
disabled: e.vi.firstInParent,
|
|
1758
|
-
onClick: s[3] || (s[3] =
|
|
1783
|
+
onClick: s[3] || (s[3] = ne((C) => e.callbacks.moveTop(e.vi.key), ["stop"]))
|
|
1759
1784
|
}, {
|
|
1760
1785
|
prepend: r(() => [
|
|
1761
|
-
i(
|
|
1786
|
+
i(ae, { icon: "mdi-arrow-collapse-up" })
|
|
1762
1787
|
]),
|
|
1763
1788
|
default: r(() => [
|
|
1764
|
-
i(
|
|
1789
|
+
i(Ke, null, {
|
|
1765
1790
|
default: r(() => [
|
|
1766
1791
|
G(B(d(n)("common.sortable.moveToTop")), 1)
|
|
1767
1792
|
]),
|
|
@@ -1770,15 +1795,15 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1770
1795
|
]),
|
|
1771
1796
|
_: 1
|
|
1772
1797
|
}, 8, ["disabled"]),
|
|
1773
|
-
i(
|
|
1798
|
+
i(Pe, {
|
|
1774
1799
|
disabled: e.vi.lastInParent,
|
|
1775
|
-
onClick: s[4] || (s[4] =
|
|
1800
|
+
onClick: s[4] || (s[4] = ne((C) => e.callbacks.moveBottom(e.vi.key), ["stop"]))
|
|
1776
1801
|
}, {
|
|
1777
1802
|
prepend: r(() => [
|
|
1778
|
-
i(
|
|
1803
|
+
i(ae, { icon: "mdi-arrow-collapse-down" })
|
|
1779
1804
|
]),
|
|
1780
1805
|
default: r(() => [
|
|
1781
|
-
i(
|
|
1806
|
+
i(Ke, null, {
|
|
1782
1807
|
default: r(() => [
|
|
1783
1808
|
G(B(d(n)("common.sortable.moveToBottom")), 1)
|
|
1784
1809
|
]),
|
|
@@ -1787,15 +1812,15 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1787
1812
|
]),
|
|
1788
1813
|
_: 1
|
|
1789
1814
|
}, 8, ["disabled"]),
|
|
1790
|
-
e.context.showMoveToPosition && (!e.vi.firstInParent || !e.vi.lastInParent) ? (
|
|
1815
|
+
e.context.showMoveToPosition && (!e.vi.firstInParent || !e.vi.lastInParent) ? (h(), H(Pe, {
|
|
1791
1816
|
key: 0,
|
|
1792
|
-
onClick: s[5] || (s[5] =
|
|
1817
|
+
onClick: s[5] || (s[5] = ne((C) => e.callbacks.openMoveToPosition(e.vi), ["stop"]))
|
|
1793
1818
|
}, {
|
|
1794
1819
|
prepend: r(() => [
|
|
1795
|
-
i(
|
|
1820
|
+
i(ae, { icon: "mdi-target" })
|
|
1796
1821
|
]),
|
|
1797
1822
|
default: r(() => [
|
|
1798
|
-
i(
|
|
1823
|
+
i(Ke, null, {
|
|
1799
1824
|
default: r(() => [
|
|
1800
1825
|
G(B(d(n)("common.sortable.moveToPosition.action")), 1)
|
|
1801
1826
|
]),
|
|
@@ -1803,16 +1828,16 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1803
1828
|
})
|
|
1804
1829
|
]),
|
|
1805
1830
|
_: 1
|
|
1806
|
-
})) :
|
|
1807
|
-
e.context.showChangeParent ? (
|
|
1831
|
+
})) : W("", !0),
|
|
1832
|
+
e.context.showChangeParent ? (h(), H(Pe, {
|
|
1808
1833
|
key: 1,
|
|
1809
|
-
onClick: s[6] || (s[6] =
|
|
1834
|
+
onClick: s[6] || (s[6] = ne((C) => e.callbacks.openChangeParent(e.vi), ["stop"]))
|
|
1810
1835
|
}, {
|
|
1811
1836
|
prepend: r(() => [
|
|
1812
|
-
i(
|
|
1837
|
+
i(ae, { icon: "mdi-folder-move-outline" })
|
|
1813
1838
|
]),
|
|
1814
1839
|
default: r(() => [
|
|
1815
|
-
i(
|
|
1840
|
+
i(Ke, null, {
|
|
1816
1841
|
default: r(() => [
|
|
1817
1842
|
G(B(d(n)("common.sortable.changeParent.action")), 1)
|
|
1818
1843
|
]),
|
|
@@ -1820,16 +1845,16 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1820
1845
|
})
|
|
1821
1846
|
]),
|
|
1822
1847
|
_: 1
|
|
1823
|
-
})) :
|
|
1824
|
-
i(
|
|
1848
|
+
})) : W("", !0),
|
|
1849
|
+
i(Pe, {
|
|
1825
1850
|
disabled: !e.vi.canIndent,
|
|
1826
|
-
onClick: s[7] || (s[7] =
|
|
1851
|
+
onClick: s[7] || (s[7] = ne((C) => e.callbacks.indent(e.vi), ["stop"]))
|
|
1827
1852
|
}, {
|
|
1828
1853
|
prepend: r(() => [
|
|
1829
|
-
i(
|
|
1854
|
+
i(ae, { icon: "mdi-format-indent-increase" })
|
|
1830
1855
|
]),
|
|
1831
1856
|
default: r(() => [
|
|
1832
|
-
i(
|
|
1857
|
+
i(Ke, null, {
|
|
1833
1858
|
default: r(() => [
|
|
1834
1859
|
G(B(d(n)("common.sortable.indent")), 1)
|
|
1835
1860
|
]),
|
|
@@ -1838,15 +1863,15 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1838
1863
|
]),
|
|
1839
1864
|
_: 1
|
|
1840
1865
|
}, 8, ["disabled"]),
|
|
1841
|
-
i(
|
|
1866
|
+
i(Pe, {
|
|
1842
1867
|
disabled: !e.vi.canOutdent,
|
|
1843
|
-
onClick: s[8] || (s[8] =
|
|
1868
|
+
onClick: s[8] || (s[8] = ne((C) => e.callbacks.outdent(e.vi), ["stop"]))
|
|
1844
1869
|
}, {
|
|
1845
1870
|
prepend: r(() => [
|
|
1846
|
-
i(
|
|
1871
|
+
i(ae, { icon: "mdi-format-indent-decrease" })
|
|
1847
1872
|
]),
|
|
1848
1873
|
default: r(() => [
|
|
1849
|
-
i(
|
|
1874
|
+
i(Ke, null, {
|
|
1850
1875
|
default: r(() => [
|
|
1851
1876
|
G(B(d(n)("common.sortable.outdent")), 1)
|
|
1852
1877
|
]),
|
|
@@ -1855,18 +1880,18 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1855
1880
|
]),
|
|
1856
1881
|
_: 1
|
|
1857
1882
|
}, 8, ["disabled"]),
|
|
1858
|
-
e.context.showDeleteButton && e.context.canInteract ? (
|
|
1883
|
+
e.context.showDeleteButton && e.context.canInteract ? (h(), H(Pe, {
|
|
1859
1884
|
key: 2,
|
|
1860
|
-
onClick: s[9] || (s[9] =
|
|
1885
|
+
onClick: s[9] || (s[9] = ne((C) => e.callbacks.onDeleteClick(e.vi), ["stop"]))
|
|
1861
1886
|
}, {
|
|
1862
1887
|
prepend: r(() => [
|
|
1863
|
-
i(
|
|
1888
|
+
i(ae, {
|
|
1864
1889
|
icon: "mdi-trash-can-outline",
|
|
1865
1890
|
color: "error"
|
|
1866
1891
|
})
|
|
1867
1892
|
]),
|
|
1868
1893
|
default: r(() => [
|
|
1869
|
-
i(
|
|
1894
|
+
i(Ke, { class: "text-error" }, {
|
|
1870
1895
|
default: r(() => [
|
|
1871
1896
|
G(B(d(n)("common.sortable.delete")), 1)
|
|
1872
1897
|
]),
|
|
@@ -1874,7 +1899,7 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1874
1899
|
})
|
|
1875
1900
|
]),
|
|
1876
1901
|
_: 1
|
|
1877
|
-
})) :
|
|
1902
|
+
})) : W("", !0)
|
|
1878
1903
|
]),
|
|
1879
1904
|
_: 1
|
|
1880
1905
|
})
|
|
@@ -1884,8 +1909,8 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1884
1909
|
]),
|
|
1885
1910
|
_: 1
|
|
1886
1911
|
})
|
|
1887
|
-
], 64)) : (
|
|
1888
|
-
e.context.showEditButton && e.context.canInteract ? (
|
|
1912
|
+
], 64)) : (h(), R(ve, { key: 1 }, [
|
|
1913
|
+
e.context.showEditButton && e.context.canInteract ? (h(), H(_, {
|
|
1889
1914
|
key: 0,
|
|
1890
1915
|
icon: "",
|
|
1891
1916
|
size: "small",
|
|
@@ -1893,10 +1918,10 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1893
1918
|
color: "primary",
|
|
1894
1919
|
density: "comfortable",
|
|
1895
1920
|
class: "mx-1 a-le-action a-le-action--edit",
|
|
1896
|
-
onClick: s[10] || (s[10] =
|
|
1921
|
+
onClick: s[10] || (s[10] = ne((C) => e.callbacks.onEditClick(e.vi), ["stop"]))
|
|
1897
1922
|
}, {
|
|
1898
1923
|
default: r(() => [
|
|
1899
|
-
i(
|
|
1924
|
+
i(ae, {
|
|
1900
1925
|
icon: "mdi-pencil-outline",
|
|
1901
1926
|
size: "18"
|
|
1902
1927
|
}),
|
|
@@ -1907,18 +1932,18 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1907
1932
|
}, null, 8, ["text"])
|
|
1908
1933
|
]),
|
|
1909
1934
|
_: 1
|
|
1910
|
-
})) :
|
|
1911
|
-
e.context.showDeleteButton && e.context.canInteract ? (
|
|
1935
|
+
})) : W("", !0),
|
|
1936
|
+
e.context.showDeleteButton && e.context.canInteract ? (h(), H(_, {
|
|
1912
1937
|
key: 1,
|
|
1913
1938
|
icon: "",
|
|
1914
1939
|
size: "small",
|
|
1915
1940
|
variant: "text",
|
|
1916
1941
|
density: "comfortable",
|
|
1917
1942
|
class: "mx-1 a-le-action a-le-action--delete",
|
|
1918
|
-
onClick: s[11] || (s[11] =
|
|
1943
|
+
onClick: s[11] || (s[11] = ne((C) => e.callbacks.onDeleteClick(e.vi), ["stop"]))
|
|
1919
1944
|
}, {
|
|
1920
1945
|
default: r(() => [
|
|
1921
|
-
i(
|
|
1946
|
+
i(ae, {
|
|
1922
1947
|
icon: "mdi-trash-can-outline",
|
|
1923
1948
|
size: "18"
|
|
1924
1949
|
}),
|
|
@@ -1929,8 +1954,8 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1929
1954
|
}, null, 8, ["text"])
|
|
1930
1955
|
]),
|
|
1931
1956
|
_: 1
|
|
1932
|
-
})) :
|
|
1933
|
-
e.context.canInteract && (e.context.showAddChildButton && e.vi.canAddChild || e.context.showAddAfterAction) ? (
|
|
1957
|
+
})) : W("", !0),
|
|
1958
|
+
e.context.canInteract && (e.context.showAddChildButton && e.vi.canAddChild || e.context.showAddAfterAction) ? (h(), H(_, {
|
|
1934
1959
|
key: 2,
|
|
1935
1960
|
icon: "",
|
|
1936
1961
|
size: "small",
|
|
@@ -1940,7 +1965,7 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1940
1965
|
class: "mx-1 a-le-action a-le-action--menu"
|
|
1941
1966
|
}, {
|
|
1942
1967
|
default: r(() => [
|
|
1943
|
-
i(
|
|
1968
|
+
i(ae, {
|
|
1944
1969
|
icon: "mdi-dots-vertical",
|
|
1945
1970
|
size: "18"
|
|
1946
1971
|
}),
|
|
@@ -1949,19 +1974,19 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1949
1974
|
location: "bottom",
|
|
1950
1975
|
text: d(n)("common.sortable.more")
|
|
1951
1976
|
}, null, 8, ["text"]),
|
|
1952
|
-
i(
|
|
1977
|
+
i(Kt, { activator: "parent" }, {
|
|
1953
1978
|
default: r(() => [
|
|
1954
|
-
i(
|
|
1979
|
+
i(ht, { density: "compact" }, {
|
|
1955
1980
|
default: r(() => [
|
|
1956
|
-
e.context.showAddAfterAction ? (
|
|
1981
|
+
e.context.showAddAfterAction ? (h(), H(Pe, {
|
|
1957
1982
|
key: 0,
|
|
1958
|
-
onClick: s[12] || (s[12] =
|
|
1983
|
+
onClick: s[12] || (s[12] = ne((C) => e.callbacks.onAddAfterClick(e.vi), ["stop"]))
|
|
1959
1984
|
}, {
|
|
1960
1985
|
prepend: r(() => [
|
|
1961
|
-
i(
|
|
1986
|
+
i(ae, { icon: "mdi-playlist-plus" })
|
|
1962
1987
|
]),
|
|
1963
1988
|
default: r(() => [
|
|
1964
|
-
i(
|
|
1989
|
+
i(Ke, null, {
|
|
1965
1990
|
default: r(() => [
|
|
1966
1991
|
G(B(d(n)("common.sortable.addAfter")), 1)
|
|
1967
1992
|
]),
|
|
@@ -1969,16 +1994,16 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1969
1994
|
})
|
|
1970
1995
|
]),
|
|
1971
1996
|
_: 1
|
|
1972
|
-
})) :
|
|
1973
|
-
e.context.showAddChildButton && e.vi.canAddChild ? (
|
|
1997
|
+
})) : W("", !0),
|
|
1998
|
+
e.context.showAddChildButton && e.vi.canAddChild ? (h(), H(Pe, {
|
|
1974
1999
|
key: 1,
|
|
1975
|
-
onClick: s[13] || (s[13] =
|
|
2000
|
+
onClick: s[13] || (s[13] = ne((C) => e.callbacks.onAddChildClick(e.vi), ["stop"]))
|
|
1976
2001
|
}, {
|
|
1977
2002
|
prepend: r(() => [
|
|
1978
|
-
i(
|
|
2003
|
+
i(ae, { icon: "mdi-subdirectory-arrow-right" })
|
|
1979
2004
|
]),
|
|
1980
2005
|
default: r(() => [
|
|
1981
|
-
i(
|
|
2006
|
+
i(Ke, null, {
|
|
1982
2007
|
default: r(() => [
|
|
1983
2008
|
G(B(d(n)("common.sortable.addChild")), 1)
|
|
1984
2009
|
]),
|
|
@@ -1986,7 +2011,7 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1986
2011
|
})
|
|
1987
2012
|
]),
|
|
1988
2013
|
_: 1
|
|
1989
|
-
})) :
|
|
2014
|
+
})) : W("", !0)
|
|
1990
2015
|
]),
|
|
1991
2016
|
_: 1
|
|
1992
2017
|
})
|
|
@@ -1995,24 +2020,24 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
1995
2020
|
})
|
|
1996
2021
|
]),
|
|
1997
2022
|
_: 1
|
|
1998
|
-
})) :
|
|
2023
|
+
})) : W("", !0)
|
|
1999
2024
|
], 64))
|
|
2000
2025
|
])
|
|
2001
2026
|
])
|
|
2002
2027
|
]),
|
|
2003
|
-
e.vi.editing && !e.context.reorderMode && k.$slots.item ? (
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2028
|
+
e.vi.editing && !e.context.reorderMode && k.$slots.item ? (h(), R(ve, { key: 0 }, [
|
|
2029
|
+
z("div", Bl, [
|
|
2030
|
+
z("div", Kl, [
|
|
2031
|
+
M(k.$slots, "item", Ve(Ge(y())))
|
|
2007
2032
|
])
|
|
2008
2033
|
]),
|
|
2009
|
-
|
|
2010
|
-
e.context.showInlineSaveFooter ? (
|
|
2011
|
-
s[19] || (s[19] =
|
|
2034
|
+
M(k.$slots, "item-footer", Ve(Ge(y())), () => [
|
|
2035
|
+
e.context.showInlineSaveFooter ? (h(), R("div", Rl, [
|
|
2036
|
+
s[19] || (s[19] = z("div", { class: "a-le-row-footer-spacer" }, null, -1)),
|
|
2012
2037
|
i(_, {
|
|
2013
2038
|
variant: "text",
|
|
2014
2039
|
disabled: e.vi.loading,
|
|
2015
|
-
onClick: s[15] || (s[15] =
|
|
2040
|
+
onClick: s[15] || (s[15] = ne((C) => e.callbacks.onCancelClick(e.vi), ["stop"]))
|
|
2016
2041
|
}, {
|
|
2017
2042
|
default: r(() => [
|
|
2018
2043
|
G(B(d(n)("common.button.cancel")), 1)
|
|
@@ -2024,32 +2049,32 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2024
2049
|
variant: "flat",
|
|
2025
2050
|
"prepend-icon": "mdi-check",
|
|
2026
2051
|
disabled: e.vi.loading,
|
|
2027
|
-
onClick: s[16] || (s[16] =
|
|
2052
|
+
onClick: s[16] || (s[16] = ne((C) => e.callbacks.onSaveClick(e.vi), ["stop"]))
|
|
2028
2053
|
}, {
|
|
2029
2054
|
default: r(() => [
|
|
2030
2055
|
G(B(d(n)("common.button.save")), 1)
|
|
2031
2056
|
]),
|
|
2032
2057
|
_: 1
|
|
2033
2058
|
}, 8, ["disabled"])
|
|
2034
|
-
])) :
|
|
2059
|
+
])) : W("", !0)
|
|
2035
2060
|
])
|
|
2036
|
-
], 64)) : k.$slots["item-readonly"] && (e.context.readonly || e.vi.expanded) && !e.context.reorderMode ? (
|
|
2037
|
-
|
|
2038
|
-
|
|
2061
|
+
], 64)) : k.$slots["item-readonly"] && (e.context.readonly || e.vi.expanded) && !e.context.reorderMode ? (h(), R("div", Vl, [
|
|
2062
|
+
z("div", Ll, [
|
|
2063
|
+
M(k.$slots, "item-readonly", Ve(Ge(y())))
|
|
2039
2064
|
])
|
|
2040
|
-
])) :
|
|
2041
|
-
|
|
2065
|
+
])) : W("", !0),
|
|
2066
|
+
M(k.$slots, "after-item", Ve(Ge(y())))
|
|
2042
2067
|
], 6),
|
|
2043
|
-
e.vi.hasChildren && e.vi.childrenExpanded ? (
|
|
2068
|
+
e.vi.hasChildren && e.vi.childrenExpanded ? (h(), R("div", {
|
|
2044
2069
|
key: 0,
|
|
2045
2070
|
class: "a-nested-list-editor__children",
|
|
2046
|
-
style:
|
|
2071
|
+
style: yt({ "--parent-depth": e.vi.depth })
|
|
2047
2072
|
}, [
|
|
2048
|
-
|
|
2049
|
-
class: xe([
|
|
2073
|
+
z("div", {
|
|
2074
|
+
class: xe([zl]),
|
|
2050
2075
|
"data-parent-id": String(e.vi.key)
|
|
2051
2076
|
}, [
|
|
2052
|
-
(
|
|
2077
|
+
(h(!0), R(ve, null, Ze(g(), (C) => (h(), H(d(c), {
|
|
2053
2078
|
key: String(C.key),
|
|
2054
2079
|
vi: C,
|
|
2055
2080
|
"view-items": e.viewItems,
|
|
@@ -2058,36 +2083,36 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2058
2083
|
callbacks: e.callbacks
|
|
2059
2084
|
}, {
|
|
2060
2085
|
item: r((D) => [
|
|
2061
|
-
|
|
2086
|
+
M(k.$slots, "item", ie({ ref_for: !0 }, D))
|
|
2062
2087
|
]),
|
|
2063
2088
|
"item-compact": r((D) => [
|
|
2064
|
-
|
|
2089
|
+
M(k.$slots, "item-compact", ie({ ref_for: !0 }, D))
|
|
2065
2090
|
]),
|
|
2066
2091
|
"item-readonly": r((D) => [
|
|
2067
|
-
|
|
2092
|
+
M(k.$slots, "item-readonly", ie({ ref_for: !0 }, D))
|
|
2068
2093
|
]),
|
|
2069
2094
|
"item-status": r((D) => [
|
|
2070
|
-
|
|
2095
|
+
M(k.$slots, "item-status", ie({ ref_for: !0 }, D))
|
|
2071
2096
|
]),
|
|
2072
2097
|
"item-footer": r((D) => [
|
|
2073
|
-
|
|
2098
|
+
M(k.$slots, "item-footer", ie({ ref_for: !0 }, D))
|
|
2074
2099
|
]),
|
|
2075
2100
|
"item-actions": r((D) => [
|
|
2076
|
-
|
|
2101
|
+
M(k.$slots, "item-actions", ie({ ref_for: !0 }, D))
|
|
2077
2102
|
]),
|
|
2078
2103
|
"before-item": r((D) => [
|
|
2079
|
-
|
|
2104
|
+
M(k.$slots, "before-item", ie({ ref_for: !0 }, D))
|
|
2080
2105
|
]),
|
|
2081
2106
|
"after-item": r((D) => [
|
|
2082
|
-
|
|
2107
|
+
M(k.$slots, "after-item", ie({ ref_for: !0 }, D))
|
|
2083
2108
|
]),
|
|
2084
2109
|
_: 3
|
|
2085
2110
|
}, 8, ["vi", "view-items", "drag-state", "context", "callbacks"]))), 128))
|
|
2086
|
-
], 10,
|
|
2087
|
-
], 4)) :
|
|
2088
|
-
], 42,
|
|
2111
|
+
], 10, Ml)
|
|
2112
|
+
], 4)) : W("", !0)
|
|
2113
|
+
], 42, Al));
|
|
2089
2114
|
}
|
|
2090
|
-
}),
|
|
2115
|
+
}), Ol = { class: "text-body-medium mb-2" }, Ul = /* @__PURE__ */ je({
|
|
2091
2116
|
__name: "LeChangeParentDialog",
|
|
2092
2117
|
props: /* @__PURE__ */ Le({
|
|
2093
2118
|
tree: {},
|
|
@@ -2102,19 +2127,19 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2102
2127
|
}),
|
|
2103
2128
|
emits: /* @__PURE__ */ Le(["confirm"], ["update:modelValue"]),
|
|
2104
2129
|
setup(e, { emit: w }) {
|
|
2105
|
-
const
|
|
2106
|
-
Ee(
|
|
2107
|
-
A && (
|
|
2130
|
+
const c = e, n = w, u = We(e, "modelValue"), { t: v } = He(), y = de(void 0), g = de("last");
|
|
2131
|
+
Ee(u, (A) => {
|
|
2132
|
+
A && (y.value = void 0, g.value = "last");
|
|
2108
2133
|
});
|
|
2109
|
-
const k =
|
|
2134
|
+
const k = b(() => {
|
|
2110
2135
|
const A = /* @__PURE__ */ new Set();
|
|
2111
|
-
if (
|
|
2136
|
+
if (c.sourceKey === null) return A;
|
|
2112
2137
|
const J = (L) => {
|
|
2113
2138
|
for (const E of L) {
|
|
2114
|
-
if (E.data[
|
|
2139
|
+
if (E.data[c.keyField] === c.sourceKey) {
|
|
2115
2140
|
const se = (Y) => {
|
|
2116
|
-
for (const
|
|
2117
|
-
A.add(
|
|
2141
|
+
for (const oe of Y)
|
|
2142
|
+
A.add(oe.data[c.keyField]), oe.children?.length && se(oe.children);
|
|
2118
2143
|
};
|
|
2119
2144
|
return E.children?.length && se(E.children), !0;
|
|
2120
2145
|
}
|
|
@@ -2122,12 +2147,12 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2122
2147
|
}
|
|
2123
2148
|
return !1;
|
|
2124
2149
|
};
|
|
2125
|
-
return J(
|
|
2126
|
-
}), s =
|
|
2127
|
-
if (
|
|
2150
|
+
return J(c.tree.children), A;
|
|
2151
|
+
}), s = b(() => {
|
|
2152
|
+
if (c.sourceKey === null) return null;
|
|
2128
2153
|
const A = (J) => {
|
|
2129
2154
|
for (const L of J) {
|
|
2130
|
-
if (L.data[
|
|
2155
|
+
if (L.data[c.keyField] === c.sourceKey) return L;
|
|
2131
2156
|
if (L.children?.length) {
|
|
2132
2157
|
const E = A(L.children);
|
|
2133
2158
|
if (E) return E;
|
|
@@ -2135,117 +2160,117 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2135
2160
|
}
|
|
2136
2161
|
return null;
|
|
2137
2162
|
};
|
|
2138
|
-
return A(
|
|
2139
|
-
}), C =
|
|
2140
|
-
if (
|
|
2163
|
+
return A(c.tree.children);
|
|
2164
|
+
}), C = b(() => {
|
|
2165
|
+
if (c.sourceKey === null) return;
|
|
2141
2166
|
const A = (J, L) => {
|
|
2142
2167
|
for (const E of J) {
|
|
2143
|
-
if (E.data[
|
|
2168
|
+
if (E.data[c.keyField] === c.sourceKey) return L;
|
|
2144
2169
|
if (E.children?.length) {
|
|
2145
|
-
const ee = A(E.children, E.data[
|
|
2170
|
+
const ee = A(E.children, E.data[c.keyField]);
|
|
2146
2171
|
if (ee !== void 0) return ee;
|
|
2147
2172
|
}
|
|
2148
2173
|
}
|
|
2149
2174
|
};
|
|
2150
|
-
return A(
|
|
2151
|
-
}), D =
|
|
2152
|
-
const A = [], J = s.value ?
|
|
2175
|
+
return A(c.tree.children, null);
|
|
2176
|
+
}), D = b(() => {
|
|
2177
|
+
const A = [], J = s.value ? c.calculateSubtreeDepth(s.value) : 1;
|
|
2153
2178
|
A.push({
|
|
2154
2179
|
key: null,
|
|
2155
2180
|
depth: 0,
|
|
2156
|
-
label:
|
|
2157
|
-
hasChildren:
|
|
2181
|
+
label: v("common.sortable.changeParent.rootLabel"),
|
|
2182
|
+
hasChildren: c.tree.children.length > 0,
|
|
2158
2183
|
disallowed: C.value === null,
|
|
2159
2184
|
reason: C.value === null ? "currentParent" : null
|
|
2160
2185
|
});
|
|
2161
2186
|
const L = (E, ee) => {
|
|
2162
2187
|
for (const se of E) {
|
|
2163
|
-
const Y = se.data[
|
|
2164
|
-
let
|
|
2165
|
-
Y ===
|
|
2188
|
+
const Y = se.data[c.keyField];
|
|
2189
|
+
let oe = !1, re = null;
|
|
2190
|
+
Y === c.sourceKey ? (oe = !0, re = "self") : k.value.has(Y) ? (oe = !0, re = "descendant") : C.value !== void 0 && C.value === Y ? (oe = !0, re = "currentParent") : ee + 1 + J > c.maxDepth && (oe = !0, re = "maxDepth"), A.push({
|
|
2166
2191
|
key: Y,
|
|
2167
2192
|
depth: ee + 1,
|
|
2168
|
-
label:
|
|
2193
|
+
label: c.resolveLabel(se.data, Y),
|
|
2169
2194
|
hasChildren: !!(se.children && se.children.length > 0),
|
|
2170
|
-
disallowed:
|
|
2195
|
+
disallowed: oe,
|
|
2171
2196
|
reason: re
|
|
2172
2197
|
}), se.children?.length && L(se.children, ee + 1);
|
|
2173
2198
|
}
|
|
2174
2199
|
};
|
|
2175
|
-
return L(
|
|
2176
|
-
}), N =
|
|
2177
|
-
() =>
|
|
2178
|
-
),
|
|
2200
|
+
return L(c.tree.children, 0), A;
|
|
2201
|
+
}), N = b(() => D.value.filter((A) => !A.disallowed)), V = b(
|
|
2202
|
+
() => y.value === void 0 ? null : D.value.find((A) => A.key === y.value) ?? null
|
|
2203
|
+
), P = b(
|
|
2179
2204
|
() => !!V.value && V.value.hasChildren
|
|
2180
2205
|
), T = (A) => {
|
|
2181
|
-
A.disallowed || (
|
|
2206
|
+
A.disallowed || (y.value = A.key);
|
|
2182
2207
|
}, j = () => {
|
|
2183
|
-
V.value && (n("confirm", V.value.key,
|
|
2184
|
-
},
|
|
2185
|
-
|
|
2186
|
-
}, $ = (A) => `${A * 16}px`, X = (A) => A === "maxDepth" ?
|
|
2187
|
-
return (A, J) => (
|
|
2188
|
-
modelValue:
|
|
2189
|
-
"onUpdate:modelValue": J[1] || (J[1] = (L) =>
|
|
2208
|
+
V.value && (n("confirm", V.value.key, g.value), u.value = !1);
|
|
2209
|
+
}, K = () => {
|
|
2210
|
+
u.value = !1;
|
|
2211
|
+
}, $ = (A) => `${A * 16}px`, X = (A) => A === "maxDepth" ? v("common.sortable.changeParent.errorMaxDepth") : "";
|
|
2212
|
+
return (A, J) => (h(), H(on, {
|
|
2213
|
+
modelValue: u.value,
|
|
2214
|
+
"onUpdate:modelValue": J[1] || (J[1] = (L) => u.value = L),
|
|
2190
2215
|
"max-width": "540",
|
|
2191
2216
|
persistent: ""
|
|
2192
2217
|
}, {
|
|
2193
2218
|
default: r(() => [
|
|
2194
|
-
i(
|
|
2219
|
+
i(an, null, {
|
|
2195
2220
|
default: r(() => [
|
|
2196
2221
|
i(la, null, {
|
|
2197
2222
|
default: r(() => [
|
|
2198
|
-
G(B(d(
|
|
2223
|
+
G(B(d(v)("common.sortable.changeParent.title")), 1)
|
|
2199
2224
|
]),
|
|
2200
2225
|
_: 1
|
|
2201
2226
|
}),
|
|
2202
|
-
N.value.length === 0 ? (
|
|
2227
|
+
N.value.length === 0 ? (h(), H(Et, {
|
|
2203
2228
|
key: 0,
|
|
2204
2229
|
class: "text-body-medium"
|
|
2205
2230
|
}, {
|
|
2206
2231
|
default: r(() => [
|
|
2207
|
-
i(
|
|
2232
|
+
i(sn, {
|
|
2208
2233
|
type: "info",
|
|
2209
2234
|
variant: "tonal",
|
|
2210
2235
|
density: "compact"
|
|
2211
2236
|
}, {
|
|
2212
2237
|
default: r(() => [
|
|
2213
|
-
|
|
2214
|
-
|
|
2238
|
+
z("strong", null, B(d(v)("common.sortable.changeParent.noTargetsTitle")), 1),
|
|
2239
|
+
z("div", null, B(d(v)("common.sortable.changeParent.noTargetsText")), 1)
|
|
2215
2240
|
]),
|
|
2216
2241
|
_: 1
|
|
2217
2242
|
})
|
|
2218
2243
|
]),
|
|
2219
2244
|
_: 1
|
|
2220
|
-
})) : (
|
|
2221
|
-
i(
|
|
2245
|
+
})) : (h(), R(ve, { key: 1 }, [
|
|
2246
|
+
i(Et, { class: "pb-1" }, {
|
|
2222
2247
|
default: r(() => [
|
|
2223
|
-
i(
|
|
2248
|
+
i(ht, {
|
|
2224
2249
|
density: "compact",
|
|
2225
2250
|
class: "le-change-parent__list"
|
|
2226
2251
|
}, {
|
|
2227
2252
|
default: r(() => [
|
|
2228
|
-
(
|
|
2253
|
+
(h(!0), R(ve, null, Ze(D.value, (L) => (h(), H(Pe, {
|
|
2229
2254
|
key: L.key === null ? "__root__" : String(L.key),
|
|
2230
2255
|
disabled: L.disallowed,
|
|
2231
|
-
active:
|
|
2256
|
+
active: y.value === L.key,
|
|
2232
2257
|
title: L.label,
|
|
2233
2258
|
subtitle: X(L.reason),
|
|
2234
|
-
style:
|
|
2259
|
+
style: yt({ paddingInlineStart: $(L.depth) }),
|
|
2235
2260
|
"data-disallowed": L.disallowed ? "true" : "false",
|
|
2236
2261
|
"data-reason": L.reason ?? "",
|
|
2237
2262
|
onClick: (E) => T(L)
|
|
2238
2263
|
}, {
|
|
2239
2264
|
prepend: r(() => [
|
|
2240
|
-
L.key === null ? (
|
|
2265
|
+
L.key === null ? (h(), H(ae, {
|
|
2241
2266
|
key: 0,
|
|
2242
2267
|
icon: "mdi-folder-home-outline",
|
|
2243
2268
|
size: "18"
|
|
2244
|
-
})) : L.hasChildren ? (
|
|
2269
|
+
})) : L.hasChildren ? (h(), H(ae, {
|
|
2245
2270
|
key: 1,
|
|
2246
2271
|
icon: "mdi-folder-outline",
|
|
2247
2272
|
size: "18"
|
|
2248
|
-
})) : (
|
|
2273
|
+
})) : (h(), H(ae, {
|
|
2249
2274
|
key: 2,
|
|
2250
2275
|
icon: "mdi-file-outline",
|
|
2251
2276
|
size: "18"
|
|
@@ -2259,45 +2284,45 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2259
2284
|
]),
|
|
2260
2285
|
_: 1
|
|
2261
2286
|
}),
|
|
2262
|
-
|
|
2287
|
+
P.value ? (h(), H(Et, {
|
|
2263
2288
|
key: 0,
|
|
2264
2289
|
class: "pt-0"
|
|
2265
2290
|
}, {
|
|
2266
2291
|
default: r(() => [
|
|
2267
|
-
|
|
2292
|
+
z("div", Ol, B(d(v)("common.sortable.changeParent.placementHeading", {
|
|
2268
2293
|
label: V.value?.label ?? ""
|
|
2269
2294
|
})), 1),
|
|
2270
|
-
i(
|
|
2271
|
-
modelValue:
|
|
2272
|
-
"onUpdate:modelValue": J[0] || (J[0] = (L) =>
|
|
2295
|
+
i(Po, {
|
|
2296
|
+
modelValue: g.value,
|
|
2297
|
+
"onUpdate:modelValue": J[0] || (J[0] = (L) => g.value = L),
|
|
2273
2298
|
density: "compact",
|
|
2274
2299
|
"hide-details": ""
|
|
2275
2300
|
}, {
|
|
2276
2301
|
default: r(() => [
|
|
2277
|
-
i(
|
|
2302
|
+
i(wn, {
|
|
2278
2303
|
value: "first",
|
|
2279
|
-
label: d(
|
|
2304
|
+
label: d(v)("common.sortable.changeParent.placeFirst")
|
|
2280
2305
|
}, null, 8, ["label"]),
|
|
2281
|
-
i(
|
|
2306
|
+
i(wn, {
|
|
2282
2307
|
value: "last",
|
|
2283
|
-
label: d(
|
|
2308
|
+
label: d(v)("common.sortable.changeParent.placeLast")
|
|
2284
2309
|
}, null, 8, ["label"])
|
|
2285
2310
|
]),
|
|
2286
2311
|
_: 1
|
|
2287
2312
|
}, 8, ["modelValue"])
|
|
2288
2313
|
]),
|
|
2289
2314
|
_: 1
|
|
2290
|
-
})) :
|
|
2315
|
+
})) : W("", !0)
|
|
2291
2316
|
], 64)),
|
|
2292
2317
|
i(ia, null, {
|
|
2293
2318
|
default: r(() => [
|
|
2294
|
-
i(
|
|
2319
|
+
i(ln),
|
|
2295
2320
|
i(_, {
|
|
2296
2321
|
variant: "text",
|
|
2297
|
-
onClick:
|
|
2322
|
+
onClick: K
|
|
2298
2323
|
}, {
|
|
2299
2324
|
default: r(() => [
|
|
2300
|
-
G(B(d(
|
|
2325
|
+
G(B(d(v)("common.sortable.reorderCancel")), 1)
|
|
2301
2326
|
]),
|
|
2302
2327
|
_: 1
|
|
2303
2328
|
}),
|
|
@@ -2308,7 +2333,7 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2308
2333
|
onClick: j
|
|
2309
2334
|
}, {
|
|
2310
2335
|
default: r(() => [
|
|
2311
|
-
G(B(d(
|
|
2336
|
+
G(B(d(v)("common.sortable.changeParent.confirm")), 1)
|
|
2312
2337
|
]),
|
|
2313
2338
|
_: 1
|
|
2314
2339
|
}, 8, ["disabled"])
|
|
@@ -2322,26 +2347,26 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2322
2347
|
_: 1
|
|
2323
2348
|
}, 8, ["modelValue"]));
|
|
2324
2349
|
}
|
|
2325
|
-
}),
|
|
2350
|
+
}), jl = /* @__PURE__ */ ta(Ul, [["__scopeId", "data-v-0058f5cc"]]), ql = { class: "a-le-card" }, Gl = {
|
|
2326
2351
|
key: 0,
|
|
2327
2352
|
class: "a-le-header"
|
|
2328
|
-
},
|
|
2353
|
+
}, Wl = {
|
|
2329
2354
|
key: 0,
|
|
2330
2355
|
class: "a-le-title-heading"
|
|
2331
|
-
},
|
|
2356
|
+
}, Hl = { class: "a-le-header-actions" }, Jl = {
|
|
2332
2357
|
key: 1,
|
|
2333
2358
|
class: "a-le-state a-le-state--loading"
|
|
2334
|
-
},
|
|
2359
|
+
}, Xl = {
|
|
2335
2360
|
key: 2,
|
|
2336
2361
|
class: "a-le-state a-le-state--error"
|
|
2337
|
-
},
|
|
2362
|
+
}, Yl = {
|
|
2338
2363
|
key: 3,
|
|
2339
2364
|
class: "a-le-state a-le-state--empty"
|
|
2340
|
-
},
|
|
2365
|
+
}, Ql = {
|
|
2341
2366
|
class: "a-le-sr-only",
|
|
2342
2367
|
"aria-live": "polite",
|
|
2343
2368
|
role: "status"
|
|
2344
|
-
},
|
|
2369
|
+
}, Cn = "a-nested-list-editor__group", Zl = "a-le-drag-handle", xn = 24, An = 22, Ri = /* @__PURE__ */ je({
|
|
2345
2370
|
__name: "ANestedSortableListEditor",
|
|
2346
2371
|
props: /* @__PURE__ */ Le({
|
|
2347
2372
|
maxDepth: {},
|
|
@@ -2392,16 +2417,16 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2392
2417
|
unsavedKeysModifiers: {}
|
|
2393
2418
|
}),
|
|
2394
2419
|
emits: /* @__PURE__ */ Le(["add", "add-child", "edit", "deleted", "close", "item-saved", "item-expand", "reorder-start", "reorder-cancel", "reorder-applied", "reorder-apply-error", "reorder-end", "indent", "outdent"], ["update:modelValue", "update:mode", "update:unsavedKeys"]),
|
|
2395
|
-
setup(e, { expose: w, emit:
|
|
2396
|
-
const n = e,
|
|
2420
|
+
setup(e, { expose: w, emit: c }) {
|
|
2421
|
+
const n = e, u = c, v = We(e, "modelValue"), y = We(e, "mode"), { t: g } = He(), k = na(), s = nn(), { showWarningT: C } = qn(), D = Bt("rootEl"), { isNarrow: N } = co(D), V = b(() => s.platform.value.touch), P = b(() => n.closeVariant === "icon" ? "icon" : n.closeVariant === "labeled" ? "labeled" : N.value ? "icon" : "labeled"), T = de(/* @__PURE__ */ new Set()), j = de(/* @__PURE__ */ new Set());
|
|
2397
2422
|
((t) => {
|
|
2398
2423
|
const l = (a) => {
|
|
2399
2424
|
for (const x of a)
|
|
2400
2425
|
x.children && x.children.length > 0 && (T.value.add(x.data[n.keyField]), l(x.children));
|
|
2401
2426
|
};
|
|
2402
2427
|
l(t.children);
|
|
2403
|
-
})(
|
|
2404
|
-
const $ =
|
|
2428
|
+
})(v.value);
|
|
2429
|
+
const $ = kl(v, {
|
|
2405
2430
|
keyField: n.keyField,
|
|
2406
2431
|
positionField: n.positionField,
|
|
2407
2432
|
parentField: n.parentField,
|
|
@@ -2410,17 +2435,17 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2410
2435
|
expandedKeys: T
|
|
2411
2436
|
}), { captureDirtyBaseline: X, rebaselineKey: A, isItemDirty: J, ignoreNextSourceChange: L } = (
|
|
2412
2437
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
2413
|
-
|
|
2438
|
+
Gn(
|
|
2414
2439
|
() => {
|
|
2415
2440
|
const t = [], l = (a) => {
|
|
2416
2441
|
for (const x of a)
|
|
2417
2442
|
t.push({ key: x.data[n.keyField], data: x.data }), x.children && x.children.length && l(x.children);
|
|
2418
2443
|
};
|
|
2419
|
-
return l(
|
|
2444
|
+
return l(v.value.children), t;
|
|
2420
2445
|
},
|
|
2421
|
-
{ excludeFields: [n.positionField, n.parentField], source:
|
|
2446
|
+
{ excludeFields: [n.positionField, n.parentField], source: v }
|
|
2422
2447
|
)
|
|
2423
|
-
), E =
|
|
2448
|
+
), E = Zt(null), ee = de(/* @__PURE__ */ new Set()), se = () => {
|
|
2424
2449
|
X(), ee.value = /* @__PURE__ */ new Set();
|
|
2425
2450
|
}, Y = (t) => {
|
|
2426
2451
|
const { node: l } = $.findNode(t);
|
|
@@ -2432,50 +2457,50 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2432
2457
|
ee.value.add(x.data[n.keyField]), x.children && x.children.forEach(a);
|
|
2433
2458
|
};
|
|
2434
2459
|
a(l);
|
|
2435
|
-
},
|
|
2460
|
+
}, oe = b(() => {
|
|
2436
2461
|
const t = /* @__PURE__ */ new Set(), l = (a) => {
|
|
2437
2462
|
for (const x of a) {
|
|
2438
2463
|
const Z = x.data[n.keyField];
|
|
2439
2464
|
J(Z, x.data) && t.add(Z), x.children?.length && l(x.children);
|
|
2440
2465
|
}
|
|
2441
2466
|
};
|
|
2442
|
-
return l(
|
|
2443
|
-
}), re = /* @__PURE__ */ new Map(),
|
|
2467
|
+
return l(v.value.children), t;
|
|
2468
|
+
}), re = /* @__PURE__ */ new Map(), I = b(() => {
|
|
2444
2469
|
const t = [], l = /* @__PURE__ */ new Set();
|
|
2445
2470
|
for (const a of $.viewItems.value) {
|
|
2446
2471
|
l.add(a.key);
|
|
2447
|
-
const x = Q.value.has(a.key), Z = j.value.has(a.key), me = T.value.has(a.key),
|
|
2448
|
-
if (
|
|
2449
|
-
t.push(
|
|
2472
|
+
const x = Q.value.has(a.key), Z = j.value.has(a.key), me = T.value.has(a.key), Re = n.loadingKeys?.has(a.key) ?? !1, Ne = n.disableUnsaved ? !1 : ee.value.has(a.key), ut = n.disableUnsaved ? !1 : oe.value.has(a.key), ft = ut || Ne, ce = re.get(a.key);
|
|
2473
|
+
if (ce && ce.raw === a.raw && ce.index === a.index && ce.position === a.position && ce.depth === a.depth && ce.parentKey === a.parentKey && ce.childrenCount === a.childrenCount && ce.firstInParent === a.firstInParent && ce.lastInParent === a.lastInParent && ce.editing === x && ce.expanded === Z && ce.childrenExpanded === me && ce.loading === Re && ce.dirty === ut && ce.moved === Ne && ce.unsaved === ft) {
|
|
2474
|
+
t.push(ce);
|
|
2450
2475
|
continue;
|
|
2451
2476
|
}
|
|
2452
|
-
const
|
|
2477
|
+
const Xt = {
|
|
2453
2478
|
...a,
|
|
2454
2479
|
editing: x,
|
|
2455
2480
|
expanded: Z,
|
|
2456
2481
|
childrenExpanded: me,
|
|
2457
|
-
loading:
|
|
2482
|
+
loading: Re,
|
|
2458
2483
|
dirty: ut,
|
|
2459
2484
|
moved: Ne,
|
|
2460
2485
|
unsaved: ft
|
|
2461
2486
|
};
|
|
2462
|
-
re.set(a.key,
|
|
2487
|
+
re.set(a.key, Xt), t.push(Xt);
|
|
2463
2488
|
}
|
|
2464
2489
|
for (const a of re.keys())
|
|
2465
2490
|
l.has(a) || re.delete(a);
|
|
2466
2491
|
return t;
|
|
2467
|
-
}),
|
|
2468
|
-
() => F.value && !n.disableReorder &&
|
|
2469
|
-
), q =
|
|
2492
|
+
}), f = b(() => v.value.children.length === 0), p = b(() => $.viewItems.value.length), S = Bt("rowsContainer"), F = b(() => !n.readonly && !n.disabled && !n.loading), O = b(
|
|
2493
|
+
() => F.value && !n.disableReorder && p.value > 1
|
|
2494
|
+
), q = b(() => !!k.item), le = b(() => !!k["item-readonly"]), te = b(() => !!n.onItemSave), {
|
|
2470
2495
|
editingKeys: Q,
|
|
2471
2496
|
editingSnapshots: ue,
|
|
2472
2497
|
clearEditing: ge,
|
|
2473
2498
|
beginEdit: Te,
|
|
2474
2499
|
cancelEdit: Ae,
|
|
2475
2500
|
commitEdit: $e,
|
|
2476
|
-
closeEdit:
|
|
2501
|
+
closeEdit: he,
|
|
2477
2502
|
requestAutoOpen: Fe
|
|
2478
|
-
} =
|
|
2503
|
+
} = Wn({
|
|
2479
2504
|
rowsContainer: S,
|
|
2480
2505
|
rowSelector: ".a-le-row-wrapper",
|
|
2481
2506
|
isInlineEdit: q,
|
|
@@ -2485,7 +2510,7 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2485
2510
|
for (const x of a)
|
|
2486
2511
|
t.push(x.data[n.keyField]), x.children && x.children.length && l(x.children);
|
|
2487
2512
|
};
|
|
2488
|
-
return l(
|
|
2513
|
+
return l(v.value.children), t;
|
|
2489
2514
|
},
|
|
2490
2515
|
findEntry: (t) => {
|
|
2491
2516
|
const { node: l } = $.findNode(t);
|
|
@@ -2499,26 +2524,26 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2499
2524
|
applying: Se,
|
|
2500
2525
|
applyError: _e,
|
|
2501
2526
|
hasPendingChanges: Me,
|
|
2502
|
-
movedCount:
|
|
2527
|
+
movedCount: pt,
|
|
2503
2528
|
reorderMode: we,
|
|
2504
2529
|
enterReorderMode: et,
|
|
2505
|
-
cancelReorderMode:
|
|
2530
|
+
cancelReorderMode: Je,
|
|
2506
2531
|
applyReorder: lt
|
|
2507
|
-
} =
|
|
2508
|
-
mode:
|
|
2532
|
+
} = uo({
|
|
2533
|
+
mode: y,
|
|
2509
2534
|
snapshot: E,
|
|
2510
2535
|
movedKeys: ee,
|
|
2511
|
-
modelValue:
|
|
2536
|
+
modelValue: v,
|
|
2512
2537
|
cloneModel: (t) => ke(t),
|
|
2513
2538
|
applyModel: (t) => {
|
|
2514
|
-
L(),
|
|
2539
|
+
L(), v.value = t;
|
|
2515
2540
|
},
|
|
2516
2541
|
canEnterReorder: O,
|
|
2517
2542
|
onEnter: () => {
|
|
2518
2543
|
ge();
|
|
2519
2544
|
for (const t of ze.value) T.value.add(t);
|
|
2520
2545
|
Oe(() => {
|
|
2521
|
-
|
|
2546
|
+
Ie.value && at();
|
|
2522
2547
|
});
|
|
2523
2548
|
},
|
|
2524
2549
|
onExternalEnter: () => {
|
|
@@ -2532,62 +2557,62 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2532
2557
|
},
|
|
2533
2558
|
onReorderApply: (t) => n.onReorderApply?.(t),
|
|
2534
2559
|
emit: {
|
|
2535
|
-
reorderStart: () =>
|
|
2536
|
-
reorderCancel: () =>
|
|
2537
|
-
reorderApplied: (t) =>
|
|
2538
|
-
reorderApplyError: (t) =>
|
|
2539
|
-
reorderEnd: () =>
|
|
2560
|
+
reorderStart: () => u("reorder-start"),
|
|
2561
|
+
reorderCancel: () => u("reorder-cancel"),
|
|
2562
|
+
reorderApplied: (t) => u("reorder-applied", t),
|
|
2563
|
+
reorderApplyError: (t) => u("reorder-apply-error", t),
|
|
2564
|
+
reorderEnd: () => u("reorder-end")
|
|
2540
2565
|
}
|
|
2541
|
-
}), Xe =
|
|
2542
|
-
() => n.addLabel ?
|
|
2543
|
-
), tt =
|
|
2544
|
-
() => n.deleteConfirmTitle ??
|
|
2545
|
-
),
|
|
2546
|
-
() => n.deleteConfirmText ??
|
|
2547
|
-
), Be =
|
|
2548
|
-
() => !n.readonly && n.showReorderToggle && !we.value &&
|
|
2549
|
-
),
|
|
2566
|
+
}), Xe = b(() => F.value && n.showAddButton && !we.value), Ie = b(() => we.value && !V.value && !n.disableDrag), it = b(
|
|
2567
|
+
() => n.addLabel ? g(n.addLabel) : g("common.sortable.add")
|
|
2568
|
+
), tt = b(() => n.emptyTitle ?? g("common.sortable.emptyTitle")), Ye = b(
|
|
2569
|
+
() => n.deleteConfirmTitle ?? g("common.sortable.deleteConfirmTitle")
|
|
2570
|
+
), Vt = b(
|
|
2571
|
+
() => n.deleteConfirmText ?? g("common.sortable.deleteConfirmText")
|
|
2572
|
+
), Be = b(
|
|
2573
|
+
() => !n.readonly && n.showReorderToggle && !we.value && p.value > 0
|
|
2574
|
+
), gt = b(() => !!n.title && N.value), ze = b(() => {
|
|
2550
2575
|
const t = [], l = (a) => {
|
|
2551
2576
|
for (const x of a)
|
|
2552
2577
|
x.children && x.children.length > 0 && (t.push(x.data[n.keyField]), l(x.children));
|
|
2553
2578
|
};
|
|
2554
|
-
return l(
|
|
2555
|
-
}), Qe =
|
|
2579
|
+
return l(v.value.children), t;
|
|
2580
|
+
}), Qe = b(
|
|
2556
2581
|
() => ze.value.length > 0 && ze.value.every((t) => T.value.has(t))
|
|
2557
|
-
), st =
|
|
2582
|
+
), st = b(
|
|
2558
2583
|
() => !we.value && ze.value.length > 0
|
|
2559
|
-
),
|
|
2584
|
+
), bt = () => {
|
|
2560
2585
|
if (Qe.value)
|
|
2561
2586
|
for (const t of ze.value) T.value.delete(t);
|
|
2562
2587
|
else
|
|
2563
2588
|
for (const t of ze.value) T.value.add(t);
|
|
2564
|
-
}, o =
|
|
2589
|
+
}, o = b(
|
|
2565
2590
|
() => !!(n.title || k.header || k["reorder-toggle"] || Be.value || st.value || we.value)
|
|
2566
|
-
), U =
|
|
2591
|
+
), U = de([]), m = de(0), fe = () => {
|
|
2567
2592
|
for (const t of U.value)
|
|
2568
2593
|
try {
|
|
2569
2594
|
t.stop();
|
|
2570
2595
|
} catch {
|
|
2571
2596
|
}
|
|
2572
2597
|
U.value = [];
|
|
2573
|
-
}, be =
|
|
2598
|
+
}, be = de(null), kt = (t, l) => {
|
|
2574
2599
|
const a = document.elementFromPoint(t, l);
|
|
2575
2600
|
if (!a) return null;
|
|
2576
2601
|
const x = a.closest(".a-le-row-wrapper");
|
|
2577
2602
|
if (!x || !S.value || !S.value.contains(x)) return null;
|
|
2578
|
-
const Z =
|
|
2603
|
+
const Z = rn(x.getAttribute("data-id"));
|
|
2579
2604
|
if (Z === null) return null;
|
|
2580
|
-
const me =
|
|
2605
|
+
const me = I.value.find((Re) => Re.key === Z);
|
|
2581
2606
|
return me ? { el: x, viewItem: me } : null;
|
|
2582
2607
|
}, nt = (t, l) => {
|
|
2583
2608
|
if (!be.value || !S.value) return;
|
|
2584
|
-
const a =
|
|
2609
|
+
const a = kt(t, l);
|
|
2585
2610
|
if (!a) {
|
|
2586
2611
|
be.value.instruction = null;
|
|
2587
2612
|
return;
|
|
2588
2613
|
}
|
|
2589
2614
|
const x = S.value.getBoundingClientRect(), me = (a.el.querySelector(":scope > .a-le-row") ?? a.el).getBoundingClientRect();
|
|
2590
|
-
be.value.instruction =
|
|
2615
|
+
be.value.instruction = xl({
|
|
2591
2616
|
pointer: { x: t, y: l },
|
|
2592
2617
|
hoveredRow: {
|
|
2593
2618
|
key: a.viewItem.key,
|
|
@@ -2599,38 +2624,38 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2599
2624
|
},
|
|
2600
2625
|
sourceKey: be.value.sourceKey,
|
|
2601
2626
|
sourceSubtreeDepth: be.value.sourceSubtreeDepth,
|
|
2602
|
-
viewItems:
|
|
2627
|
+
viewItems: I.value,
|
|
2603
2628
|
maxDepth: n.maxDepth,
|
|
2604
|
-
indentPx:
|
|
2629
|
+
indentPx: xn,
|
|
2605
2630
|
containerLeft: x.left,
|
|
2606
|
-
containerPaddingLeft:
|
|
2631
|
+
containerPaddingLeft: An
|
|
2607
2632
|
});
|
|
2608
2633
|
}, Ce = (t) => {
|
|
2609
2634
|
nt(t.clientX, t.clientY);
|
|
2610
|
-
},
|
|
2635
|
+
}, wt = (t, l) => {
|
|
2611
2636
|
if ($.moveTo(l, t.parentKey, t.index) === null) {
|
|
2612
2637
|
C("common.sortable.error.maxDeepExceed"), m.value++, Oe(() => at());
|
|
2613
2638
|
return;
|
|
2614
2639
|
}
|
|
2615
2640
|
Y(l), t.makeChild && t.parentKey !== null && T.value.add(t.parentKey);
|
|
2616
2641
|
}, at = () => {
|
|
2617
|
-
if (fe(), !
|
|
2618
|
-
const t = Array.from(S.value.querySelectorAll("." +
|
|
2642
|
+
if (fe(), !Ie.value || !S.value) return;
|
|
2643
|
+
const t = Array.from(S.value.querySelectorAll("." + Cn));
|
|
2619
2644
|
for (const l of t) {
|
|
2620
|
-
const a =
|
|
2645
|
+
const a = vo(l, [], {
|
|
2621
2646
|
group: { name: "a-nested", pull: !0, put: !0 },
|
|
2622
|
-
handle: "." +
|
|
2647
|
+
handle: "." + Zl,
|
|
2623
2648
|
animation: 0,
|
|
2624
|
-
ghostClass:
|
|
2625
|
-
chosenClass:
|
|
2626
|
-
dragClass:
|
|
2649
|
+
ghostClass: po,
|
|
2650
|
+
chosenClass: ho,
|
|
2651
|
+
dragClass: yo,
|
|
2627
2652
|
fallbackOnBody: !0,
|
|
2628
2653
|
forceFallback: !0,
|
|
2629
2654
|
fallbackTolerance: 3,
|
|
2630
2655
|
onStart: (x) => {
|
|
2631
|
-
const Z = x.item, me =
|
|
2656
|
+
const Z = x.item, me = rn(Z.getAttribute("data-id"));
|
|
2632
2657
|
if (me === null) return;
|
|
2633
|
-
const
|
|
2658
|
+
const Re = $.findNode(me).node, Ne = Re ? $.calculateSubtreeDepth(Re) : 1;
|
|
2634
2659
|
be.value = {
|
|
2635
2660
|
sourceKey: me,
|
|
2636
2661
|
sourceSubtreeDepth: Ne,
|
|
@@ -2654,37 +2679,37 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2654
2679
|
const x = be.value;
|
|
2655
2680
|
if (be.value = null, !x) return;
|
|
2656
2681
|
const Z = x.instruction;
|
|
2657
|
-
Z !== null && Z.type !== "blocked" &&
|
|
2682
|
+
Z !== null && Z.type !== "blocked" && wt(Z, x.sourceKey);
|
|
2658
2683
|
}
|
|
2659
2684
|
});
|
|
2660
2685
|
U.value.push(a);
|
|
2661
2686
|
}
|
|
2662
|
-
},
|
|
2687
|
+
}, rn = (t) => {
|
|
2663
2688
|
if (t === null || t === "") return null;
|
|
2664
|
-
const l =
|
|
2689
|
+
const l = go(t);
|
|
2665
2690
|
return l > 0 ? l : t;
|
|
2666
2691
|
};
|
|
2667
2692
|
Ee(
|
|
2668
|
-
() =>
|
|
2693
|
+
() => Ie.value,
|
|
2669
2694
|
() => {
|
|
2670
|
-
|
|
2695
|
+
Ie.value ? Oe(() => at()) : fe();
|
|
2671
2696
|
}
|
|
2672
2697
|
), Ee(
|
|
2673
2698
|
() => m.value,
|
|
2674
2699
|
() => {
|
|
2675
|
-
|
|
2700
|
+
Ie.value && Oe(() => at());
|
|
2676
2701
|
}
|
|
2677
2702
|
), Ee(
|
|
2678
|
-
() =>
|
|
2703
|
+
() => I.value.map((t) => t.key).join("|"),
|
|
2679
2704
|
() => {
|
|
2680
|
-
|
|
2705
|
+
Ie.value && Oe(() => at());
|
|
2681
2706
|
}
|
|
2682
|
-
),
|
|
2683
|
-
|
|
2684
|
-
}),
|
|
2707
|
+
), _t(() => {
|
|
2708
|
+
Ie.value && at();
|
|
2709
|
+
}), en(() => {
|
|
2685
2710
|
fe(), document.removeEventListener("pointermove", Ce);
|
|
2686
2711
|
});
|
|
2687
|
-
const
|
|
2712
|
+
const qe = b(() => {
|
|
2688
2713
|
const t = be.value;
|
|
2689
2714
|
if (!t || t.instruction === null || !S.value) return null;
|
|
2690
2715
|
const l = t.instruction;
|
|
@@ -2693,148 +2718,148 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2693
2718
|
`.a-le-row-wrapper[data-id="${CSS.escape(String(l.refKey))}"]`
|
|
2694
2719
|
);
|
|
2695
2720
|
if (!a) return null;
|
|
2696
|
-
const x = a.querySelector(":scope > .a-le-row"), Z = S.value.getBoundingClientRect(), me = (x ?? a).getBoundingClientRect(),
|
|
2721
|
+
const x = a.querySelector(":scope > .a-le-row"), Z = S.value.getBoundingClientRect(), me = (x ?? a).getBoundingClientRect(), Re = An + l.depth * xn, Ne = l.refEdge === "top" ? me.top - Z.top : me.bottom - Z.top, ut = { top: Ne, left: Re, right: 16 };
|
|
2697
2722
|
let ft = null;
|
|
2698
2723
|
if (l.levelRowKey !== null) {
|
|
2699
|
-
const
|
|
2724
|
+
const ce = S.value.querySelector(
|
|
2700
2725
|
`.a-le-row-wrapper[data-id="${CSS.escape(String(l.levelRowKey))}"]`
|
|
2701
2726
|
);
|
|
2702
|
-
if (
|
|
2703
|
-
const
|
|
2704
|
-
|
|
2705
|
-
top:
|
|
2706
|
-
height: Ne -
|
|
2707
|
-
left:
|
|
2727
|
+
if (ce) {
|
|
2728
|
+
const gn = (ce.querySelector(":scope > .a-le-row") ?? ce).getBoundingClientRect(), Yt = gn.top - Z.top + gn.height / 2;
|
|
2729
|
+
Yt < Ne && (ft = {
|
|
2730
|
+
top: Yt,
|
|
2731
|
+
height: Ne - Yt,
|
|
2732
|
+
left: Re
|
|
2708
2733
|
});
|
|
2709
2734
|
}
|
|
2710
2735
|
}
|
|
2711
2736
|
return { line: ut, connector: ft };
|
|
2712
2737
|
}), rt = () => {
|
|
2713
|
-
Xe.value && (Fe(),
|
|
2714
|
-
}, rn = (t) => {
|
|
2715
|
-
F.value && (Fe(), f("add", { afterId: t.key, childrenAllowed: t.childrenAllowed }));
|
|
2738
|
+
Xe.value && (Fe(), u("add", void 0));
|
|
2716
2739
|
}, dn = (t) => {
|
|
2717
|
-
F.value &&
|
|
2718
|
-
},
|
|
2740
|
+
F.value && (Fe(), u("add", { afterId: t.key, childrenAllowed: t.childrenAllowed }));
|
|
2741
|
+
}, cn = (t) => {
|
|
2742
|
+
F.value && t.canAddChild && (Fe(), T.value.add(t.key), u("add-child", t), u("add", { parentId: t.key, childrenAllowed: !0 }));
|
|
2743
|
+
}, Ct = (t) => {
|
|
2719
2744
|
if (!(!F.value || we.value)) {
|
|
2720
2745
|
if (Q.value.has(t.key)) {
|
|
2721
2746
|
dt(t);
|
|
2722
2747
|
return;
|
|
2723
2748
|
}
|
|
2724
|
-
q.value && Te(t),
|
|
2749
|
+
q.value && Te(t), u("edit", t);
|
|
2725
2750
|
}
|
|
2726
|
-
},
|
|
2751
|
+
}, Lt = (t) => {
|
|
2727
2752
|
if (n.disabled || n.loading) return;
|
|
2728
2753
|
const l = t.key, a = T.value.has(l);
|
|
2729
|
-
a ? T.value.delete(l) : T.value.add(l),
|
|
2730
|
-
},
|
|
2754
|
+
a ? T.value.delete(l) : T.value.add(l), u("item-expand", t, !a);
|
|
2755
|
+
}, un = (t) => {
|
|
2731
2756
|
if (n.disabled || n.loading) return;
|
|
2732
2757
|
const l = t.key, a = j.value.has(l);
|
|
2733
|
-
a ? j.value.delete(l) : j.value.add(l),
|
|
2734
|
-
},
|
|
2735
|
-
if (
|
|
2758
|
+
a ? j.value.delete(l) : j.value.add(l), u("item-expand", t, !a);
|
|
2759
|
+
}, fn = (t) => n.disableRowClick || n.disabled || n.loading || we.value ? !1 : !!(t.editing || t.expanded || !n.readonly && n.showEditButton), ua = (t) => {
|
|
2760
|
+
if (fn(t)) {
|
|
2736
2761
|
if (t.editing || t.expanded) {
|
|
2737
2762
|
dt(t);
|
|
2738
2763
|
return;
|
|
2739
2764
|
}
|
|
2740
|
-
n.readonly &&
|
|
2765
|
+
n.readonly && le.value ? un(t) : Ct(t);
|
|
2741
2766
|
}
|
|
2742
2767
|
}, {
|
|
2743
|
-
deleteDialog:
|
|
2768
|
+
deleteDialog: Mt,
|
|
2744
2769
|
deleteInFlight: fa,
|
|
2745
2770
|
deleteError: ma,
|
|
2746
2771
|
onDeleteClick: va,
|
|
2747
2772
|
onDeleteDialogConfirm: ya,
|
|
2748
2773
|
onDeleteDialogCancel: ha
|
|
2749
|
-
} =
|
|
2774
|
+
} = Xn({
|
|
2750
2775
|
onDeleteConfirm: (t) => n.onDeleteConfirm ? n.onDeleteConfirm(t) : !0,
|
|
2751
2776
|
onDelete: (t) => n.onDelete?.(t),
|
|
2752
2777
|
onDeleted: (t) => {
|
|
2753
|
-
Q.value.delete(t.key), ue.value.delete(t.key), j.value.delete(t.key), T.value.delete(t.key),
|
|
2778
|
+
Q.value.delete(t.key), ue.value.delete(t.key), j.value.delete(t.key), T.value.delete(t.key), u("deleted", t);
|
|
2754
2779
|
},
|
|
2755
2780
|
disableDeleteConfirm: () => n.disableDeleteConfirm
|
|
2756
|
-
}),
|
|
2781
|
+
}), mn = async (t) => {
|
|
2757
2782
|
F.value && await va(t);
|
|
2758
|
-
},
|
|
2759
|
-
n.onItemSave && await n.onItemSave(t.raw), $e(t),
|
|
2760
|
-
},
|
|
2783
|
+
}, vn = async (t) => {
|
|
2784
|
+
n.onItemSave && await n.onItemSave(t.raw), $e(t), u("item-saved", t);
|
|
2785
|
+
}, yn = (t) => {
|
|
2761
2786
|
Ae(t);
|
|
2762
2787
|
}, dt = (t) => {
|
|
2763
|
-
|
|
2764
|
-
},
|
|
2788
|
+
he(t), u("close", t);
|
|
2789
|
+
}, zt = (t) => {
|
|
2765
2790
|
$.moveUp(t) && Y(t);
|
|
2766
|
-
},
|
|
2791
|
+
}, Nt = (t) => {
|
|
2767
2792
|
$.moveDown(t) && Y(t);
|
|
2768
|
-
},
|
|
2793
|
+
}, Ot = (t) => {
|
|
2769
2794
|
$.moveTop(t) && Y(t);
|
|
2770
|
-
},
|
|
2795
|
+
}, Ut = (t) => {
|
|
2771
2796
|
$.moveBottom(t) && Y(t);
|
|
2772
|
-
},
|
|
2797
|
+
}, jt = (t) => {
|
|
2773
2798
|
if ($.indent(t.key) === null) {
|
|
2774
2799
|
C("common.sortable.error.maxDeepExceed");
|
|
2775
2800
|
return;
|
|
2776
2801
|
}
|
|
2777
|
-
Y(t.key),
|
|
2778
|
-
},
|
|
2779
|
-
$.outdent(t.key) !== null && (Y(t.key),
|
|
2780
|
-
},
|
|
2802
|
+
Y(t.key), u("indent", t);
|
|
2803
|
+
}, qt = (t) => {
|
|
2804
|
+
$.outdent(t.key) !== null && (Y(t.key), u("outdent", t));
|
|
2805
|
+
}, Gt = (t) => ea(t, { compactField: n.compactField }), { resolveValidation: hn } = Jn({
|
|
2781
2806
|
getValidationState: (t, l, a) => n.getValidationState?.(t, l, a) ?? null
|
|
2782
2807
|
}), ct = /* @__PURE__ */ new Map(), pa = (t) => {
|
|
2783
2808
|
let l = ct.get(t);
|
|
2784
2809
|
return l || (l = {
|
|
2785
2810
|
edit: () => {
|
|
2786
|
-
const a =
|
|
2787
|
-
a &&
|
|
2811
|
+
const a = pe(t);
|
|
2812
|
+
a && Ct(a);
|
|
2788
2813
|
},
|
|
2789
2814
|
save: () => {
|
|
2790
|
-
const a =
|
|
2791
|
-
if (a) return
|
|
2815
|
+
const a = pe(t);
|
|
2816
|
+
if (a) return vn(a);
|
|
2792
2817
|
},
|
|
2793
2818
|
cancel: () => {
|
|
2794
|
-
const a =
|
|
2795
|
-
a &&
|
|
2819
|
+
const a = pe(t);
|
|
2820
|
+
a && yn(a);
|
|
2796
2821
|
},
|
|
2797
2822
|
close: () => {
|
|
2798
|
-
const a =
|
|
2823
|
+
const a = pe(t);
|
|
2799
2824
|
a && dt(a);
|
|
2800
2825
|
},
|
|
2801
2826
|
delete: async () => {
|
|
2802
|
-
const a =
|
|
2803
|
-
a && await
|
|
2827
|
+
const a = pe(t);
|
|
2828
|
+
a && await mn(a);
|
|
2804
2829
|
},
|
|
2805
2830
|
addAfter: () => {
|
|
2806
|
-
const a =
|
|
2807
|
-
a &&
|
|
2831
|
+
const a = pe(t);
|
|
2832
|
+
a && dn(a);
|
|
2808
2833
|
},
|
|
2809
2834
|
addChild: () => {
|
|
2810
|
-
const a =
|
|
2811
|
-
a &&
|
|
2835
|
+
const a = pe(t);
|
|
2836
|
+
a && cn(a);
|
|
2812
2837
|
},
|
|
2813
2838
|
toggleExpand: () => {
|
|
2814
|
-
const a =
|
|
2815
|
-
a &&
|
|
2839
|
+
const a = pe(t);
|
|
2840
|
+
a && Lt(a);
|
|
2816
2841
|
},
|
|
2817
2842
|
toggleDetail: () => {
|
|
2818
|
-
const a =
|
|
2819
|
-
a &&
|
|
2843
|
+
const a = pe(t);
|
|
2844
|
+
a && un(a);
|
|
2820
2845
|
},
|
|
2821
|
-
moveUp: () =>
|
|
2822
|
-
moveDown: () =>
|
|
2823
|
-
moveTop: () =>
|
|
2824
|
-
moveBottom: () =>
|
|
2846
|
+
moveUp: () => zt(t),
|
|
2847
|
+
moveDown: () => Nt(t),
|
|
2848
|
+
moveTop: () => Ot(t),
|
|
2849
|
+
moveBottom: () => Ut(t),
|
|
2825
2850
|
indent: () => {
|
|
2826
|
-
const a =
|
|
2827
|
-
a &&
|
|
2851
|
+
const a = pe(t);
|
|
2852
|
+
a && jt(a);
|
|
2828
2853
|
},
|
|
2829
2854
|
outdent: () => {
|
|
2830
|
-
const a =
|
|
2831
|
-
a &&
|
|
2855
|
+
const a = pe(t);
|
|
2856
|
+
a && qt(a);
|
|
2832
2857
|
},
|
|
2833
2858
|
update: (a) => $.updateItem(t, a)
|
|
2834
2859
|
}, ct.set(t, l)), l;
|
|
2835
2860
|
};
|
|
2836
2861
|
Ee(
|
|
2837
|
-
() =>
|
|
2862
|
+
() => I.value,
|
|
2838
2863
|
(t) => {
|
|
2839
2864
|
if (ct.size === 0) return;
|
|
2840
2865
|
const l = new Set(t.map((a) => a.key));
|
|
@@ -2843,7 +2868,7 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2843
2868
|
}
|
|
2844
2869
|
);
|
|
2845
2870
|
const ga = (t) => ({
|
|
2846
|
-
item: { ...t, validationState:
|
|
2871
|
+
item: { ...t, validationState: hn(t.raw, t.key, t.index) },
|
|
2847
2872
|
raw: t.raw,
|
|
2848
2873
|
index: t.index,
|
|
2849
2874
|
key: t.key,
|
|
@@ -2871,26 +2896,26 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2871
2896
|
canAddChild: t.canAddChild,
|
|
2872
2897
|
touch: V.value,
|
|
2873
2898
|
actions: pa(t.key)
|
|
2874
|
-
}), ba =
|
|
2899
|
+
}), ba = b(() => ({
|
|
2875
2900
|
applying: Se.value,
|
|
2876
2901
|
hasPendingChanges: Me.value,
|
|
2877
|
-
movedCount:
|
|
2902
|
+
movedCount: pt.value,
|
|
2878
2903
|
error: _e.value,
|
|
2879
2904
|
actions: {
|
|
2880
2905
|
apply: lt,
|
|
2881
|
-
cancel:
|
|
2906
|
+
cancel: Je
|
|
2882
2907
|
}
|
|
2883
|
-
})),
|
|
2884
|
-
mode:
|
|
2908
|
+
})), pn = b(() => ({
|
|
2909
|
+
mode: y.value,
|
|
2885
2910
|
disabled: !O.value,
|
|
2886
2911
|
hasPendingChanges: Me.value,
|
|
2887
2912
|
actions: {
|
|
2888
2913
|
enterReorderMode: et,
|
|
2889
|
-
exitReorderMode:
|
|
2914
|
+
exitReorderMode: Je
|
|
2890
2915
|
}
|
|
2891
|
-
})), ka =
|
|
2892
|
-
viewItems:
|
|
2893
|
-
() =>
|
|
2916
|
+
})), ka = b(() => new Set(ze.value)), pe = (t) => I.value.find((l) => l.key === t), xt = Hn({
|
|
2917
|
+
viewItems: b(
|
|
2918
|
+
() => I.value.map((t) => ({
|
|
2894
2919
|
key: t.key,
|
|
2895
2920
|
expanded: t.childrenExpanded,
|
|
2896
2921
|
canExpand: ka.value.has(t.key),
|
|
@@ -2900,63 +2925,63 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2900
2925
|
),
|
|
2901
2926
|
variant: "nested",
|
|
2902
2927
|
isReorderMode: we,
|
|
2903
|
-
disabled:
|
|
2928
|
+
disabled: b(() => !F.value),
|
|
2904
2929
|
isEditing: (t) => Q.value.has(t),
|
|
2905
2930
|
onToggleEdit: (t) => {
|
|
2906
|
-
const l =
|
|
2907
|
-
l &&
|
|
2931
|
+
const l = pe(t);
|
|
2932
|
+
l && Ct(l);
|
|
2908
2933
|
},
|
|
2909
2934
|
onCancelEdit: (t) => {
|
|
2910
|
-
const l =
|
|
2935
|
+
const l = pe(t);
|
|
2911
2936
|
l && dt(l);
|
|
2912
2937
|
},
|
|
2913
|
-
onMoveUp: (t) =>
|
|
2914
|
-
onMoveDown: (t) =>
|
|
2915
|
-
onMoveTop: (t) =>
|
|
2916
|
-
onMoveBottom: (t) =>
|
|
2938
|
+
onMoveUp: (t) => zt(t),
|
|
2939
|
+
onMoveDown: (t) => Nt(t),
|
|
2940
|
+
onMoveTop: (t) => Ot(t),
|
|
2941
|
+
onMoveBottom: (t) => Ut(t),
|
|
2917
2942
|
onIndent: (t) => {
|
|
2918
|
-
const l =
|
|
2919
|
-
l &&
|
|
2943
|
+
const l = pe(t);
|
|
2944
|
+
l && jt(l);
|
|
2920
2945
|
},
|
|
2921
2946
|
onOutdent: (t) => {
|
|
2922
|
-
const l =
|
|
2923
|
-
l &&
|
|
2947
|
+
const l = pe(t);
|
|
2948
|
+
l && qt(l);
|
|
2924
2949
|
},
|
|
2925
2950
|
onToggleChildren: (t) => {
|
|
2926
|
-
const l =
|
|
2927
|
-
l &&
|
|
2951
|
+
const l = pe(t);
|
|
2952
|
+
l && Lt(l);
|
|
2928
2953
|
},
|
|
2929
|
-
onCancelReorder: () =>
|
|
2930
|
-
}),
|
|
2954
|
+
onCancelReorder: () => Je()
|
|
2955
|
+
}), Wt = de(!1), ot = Zt(null), Ht = b(() => {
|
|
2931
2956
|
const t = ot.value;
|
|
2932
2957
|
if (!t) return null;
|
|
2933
|
-
const l = $.findNode(t.key), a = l.parent?.children ??
|
|
2958
|
+
const l = $.findNode(t.key), a = l.parent?.children ?? v.value.children, x = a.findIndex((Z) => Z.data[n.keyField] === t.key);
|
|
2934
2959
|
return {
|
|
2935
2960
|
parentId: l.parent ? l.parent.data[n.keyField] : null,
|
|
2936
2961
|
total: a.length,
|
|
2937
2962
|
currentIndex: x
|
|
2938
2963
|
};
|
|
2939
|
-
}), wa =
|
|
2940
|
-
() => ot.value ?
|
|
2964
|
+
}), wa = b(
|
|
2965
|
+
() => ot.value ? Gt(ot.value.raw) : ""
|
|
2941
2966
|
), Ca = (t) => {
|
|
2942
|
-
n.showMoveToPosition && (ot.value = t,
|
|
2967
|
+
n.showMoveToPosition && (ot.value = t, Wt.value = !0);
|
|
2943
2968
|
}, xa = (t) => {
|
|
2944
|
-
const l =
|
|
2969
|
+
const l = Ht.value, a = ot.value;
|
|
2945
2970
|
ot.value = null, !(!l || !a) && t !== l.currentIndex && $.moveTo(a.key, l.parentId, t) && Y(a.key);
|
|
2946
|
-
},
|
|
2947
|
-
n.showChangeParent && (
|
|
2971
|
+
}, Jt = de(!1), At = Zt(null), Aa = (t) => {
|
|
2972
|
+
n.showChangeParent && (At.value = t, Jt.value = !0);
|
|
2948
2973
|
}, Sa = (t, l) => {
|
|
2949
|
-
const a =
|
|
2950
|
-
if (
|
|
2974
|
+
const a = At.value;
|
|
2975
|
+
if (At.value = null, !a) return;
|
|
2951
2976
|
let x = 0;
|
|
2952
|
-
t === null ? x =
|
|
2977
|
+
t === null ? x = v.value.children.length : x = $.findNode(t).node?.children?.length ?? 0;
|
|
2953
2978
|
const Z = l === "first" ? 0 : x;
|
|
2954
2979
|
$.moveTo(a.key, t, Z) && (Y(a.key), t !== null && T.value.add(t));
|
|
2955
|
-
},
|
|
2980
|
+
}, Ia = b(() => ({
|
|
2956
2981
|
reorderMode: we.value,
|
|
2957
2982
|
readonly: n.readonly,
|
|
2958
2983
|
canInteract: F.value,
|
|
2959
|
-
dragEnabled:
|
|
2984
|
+
dragEnabled: Ie.value,
|
|
2960
2985
|
showExpandToggle: n.showExpandToggle,
|
|
2961
2986
|
showEditButton: n.showEditButton,
|
|
2962
2987
|
showDeleteButton: n.showDeleteButton,
|
|
@@ -2966,31 +2991,31 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
2966
2991
|
showChangeParent: n.showChangeParent,
|
|
2967
2992
|
showInlineSaveFooter: te.value,
|
|
2968
2993
|
statusField: n.statusField,
|
|
2969
|
-
effectiveCloseVariant:
|
|
2970
|
-
keyboardNav:
|
|
2971
|
-
isRowClickable:
|
|
2972
|
-
resolveCompactText:
|
|
2973
|
-
resolveValidation: (t, l, a) =>
|
|
2994
|
+
effectiveCloseVariant: P.value,
|
|
2995
|
+
keyboardNav: xt,
|
|
2996
|
+
isRowClickable: fn,
|
|
2997
|
+
resolveCompactText: Gt,
|
|
2998
|
+
resolveValidation: (t, l, a) => hn(t, l, a),
|
|
2974
2999
|
buildSlotProps: ga
|
|
2975
|
-
})),
|
|
3000
|
+
})), Pa = {
|
|
2976
3001
|
onRowClick: ua,
|
|
2977
|
-
onChevronClick:
|
|
2978
|
-
onEditClick:
|
|
2979
|
-
onDeleteClick:
|
|
3002
|
+
onChevronClick: Lt,
|
|
3003
|
+
onEditClick: Ct,
|
|
3004
|
+
onDeleteClick: mn,
|
|
2980
3005
|
onCloseClick: dt,
|
|
2981
|
-
onSaveClick:
|
|
2982
|
-
onCancelClick:
|
|
2983
|
-
onAddAfterClick:
|
|
2984
|
-
onAddChildClick:
|
|
2985
|
-
moveUp: (t) =>
|
|
2986
|
-
moveDown: (t) =>
|
|
2987
|
-
moveTop: (t) =>
|
|
2988
|
-
moveBottom: (t) =>
|
|
2989
|
-
indent:
|
|
2990
|
-
outdent:
|
|
3006
|
+
onSaveClick: vn,
|
|
3007
|
+
onCancelClick: yn,
|
|
3008
|
+
onAddAfterClick: dn,
|
|
3009
|
+
onAddChildClick: cn,
|
|
3010
|
+
moveUp: (t) => zt(t),
|
|
3011
|
+
moveDown: (t) => Nt(t),
|
|
3012
|
+
moveTop: (t) => Ot(t),
|
|
3013
|
+
moveBottom: (t) => Ut(t),
|
|
3014
|
+
indent: jt,
|
|
3015
|
+
outdent: qt,
|
|
2991
3016
|
openMoveToPosition: Ca,
|
|
2992
3017
|
openChangeParent: Aa
|
|
2993
|
-
}, Da =
|
|
3018
|
+
}, Da = b(() => I.value.filter((t) => t.parentKey === null)), Ea = (t, l, a) => {
|
|
2994
3019
|
const x = $.addItem(l, { afterId: t ?? void 0, childrenAllowed: a });
|
|
2995
3020
|
return Oe(() => X()), x;
|
|
2996
3021
|
}, Ta = (t, l, a) => {
|
|
@@ -3001,14 +3026,14 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
3001
3026
|
$.deleteItem(t), Q.value.delete(t), ue.value.delete(t), j.value.delete(t), T.value.delete(t), Oe(() => X());
|
|
3002
3027
|
}, Fa = (t, l, a = null, x = null, Z = null) => {
|
|
3003
3028
|
$.updateItem(t, l), Oe(() => X());
|
|
3004
|
-
}, Ba =
|
|
3029
|
+
}, Ba = We(e, "unsavedKeys"), Ka = b(() => {
|
|
3005
3030
|
const t = /* @__PURE__ */ new Set();
|
|
3006
|
-
for (const l of
|
|
3031
|
+
for (const l of I.value)
|
|
3007
3032
|
l.unsaved && t.add(l.key);
|
|
3008
3033
|
return t;
|
|
3009
|
-
}), { hasUnsavedChanges:
|
|
3034
|
+
}), { hasUnsavedChanges: Ra, unsavedCount: Va, clearUnsavedState: La } = Yn({
|
|
3010
3035
|
unsavedKeysModel: Ba,
|
|
3011
|
-
internalUnsavedKeys:
|
|
3036
|
+
internalUnsavedKeys: Ka,
|
|
3012
3037
|
onClearAll: () => {
|
|
3013
3038
|
X(), ee.value = /* @__PURE__ */ new Set();
|
|
3014
3039
|
},
|
|
@@ -3034,11 +3059,11 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
3034
3059
|
recalculatePositions: $.recalculatePositions,
|
|
3035
3060
|
viewItems: $.viewItems,
|
|
3036
3061
|
resetDirtyBaseline: se,
|
|
3037
|
-
hasUnsavedChanges:
|
|
3062
|
+
hasUnsavedChanges: Ra,
|
|
3038
3063
|
unsavedCount: Va,
|
|
3039
3064
|
clearUnsavedState: La,
|
|
3040
3065
|
enterReorderMode: et,
|
|
3041
|
-
cancelReorderMode:
|
|
3066
|
+
cancelReorderMode: Je,
|
|
3042
3067
|
applyReorder: lt,
|
|
3043
3068
|
// Tree children visibility (expand/collapse a branch)
|
|
3044
3069
|
expand: (t) => T.value.add(t),
|
|
@@ -3049,39 +3074,39 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
3049
3074
|
// Row readonly-detail body visibility
|
|
3050
3075
|
expandDetail: (t) => j.value.add(t),
|
|
3051
3076
|
collapseDetail: (t) => j.value.delete(t)
|
|
3052
|
-
}), (t, l) => (
|
|
3077
|
+
}), (t, l) => (h(), R("div", {
|
|
3053
3078
|
ref_key: "rootEl",
|
|
3054
3079
|
ref: D,
|
|
3055
3080
|
class: xe(["a-nested-list-editor", [
|
|
3056
|
-
`a-nested-list-editor--mode-${
|
|
3081
|
+
`a-nested-list-editor--mode-${y.value}`,
|
|
3057
3082
|
{
|
|
3058
3083
|
"a-nested-list-editor--readonly": e.readonly,
|
|
3059
3084
|
"a-nested-list-editor--disabled": e.disabled,
|
|
3060
3085
|
"a-nested-list-editor--touch": V.value,
|
|
3061
|
-
"a-nested-list-editor--drag-enabled":
|
|
3086
|
+
"a-nested-list-editor--drag-enabled": Ie.value
|
|
3062
3087
|
}
|
|
3063
3088
|
]])
|
|
3064
3089
|
}, [
|
|
3065
|
-
|
|
3066
|
-
o.value ? (
|
|
3067
|
-
|
|
3068
|
-
e.title ? (
|
|
3069
|
-
|
|
3070
|
-
d(we) ?
|
|
3071
|
-
i(
|
|
3090
|
+
z("div", ql, [
|
|
3091
|
+
o.value ? (h(), R("div", Gl, [
|
|
3092
|
+
M(t.$slots, "header", ie({ title: e.title }, pn.value), () => [
|
|
3093
|
+
e.title ? (h(), R("h3", Wl, B(e.title), 1)) : W("", !0),
|
|
3094
|
+
z("div", Hl, [
|
|
3095
|
+
d(we) ? M(t.$slots, "reorder-toolbar", Ve(ie({ key: 0 }, ba.value)), () => [
|
|
3096
|
+
i(fo, {
|
|
3072
3097
|
class: xe({ "a-le-toolbar-status--pending": d(Me) }),
|
|
3073
3098
|
"has-pending-changes": d(Me),
|
|
3074
|
-
"pending-count": d(
|
|
3099
|
+
"pending-count": d(pt),
|
|
3075
3100
|
error: d(_e)
|
|
3076
3101
|
}, null, 8, ["class", "has-pending-changes", "pending-count", "error"]),
|
|
3077
3102
|
i(_, {
|
|
3078
3103
|
variant: "text",
|
|
3079
3104
|
size: "small",
|
|
3080
3105
|
disabled: d(Se),
|
|
3081
|
-
onClick: d(
|
|
3106
|
+
onClick: d(Je)
|
|
3082
3107
|
}, {
|
|
3083
3108
|
default: r(() => [
|
|
3084
|
-
G(B(d(
|
|
3109
|
+
G(B(d(g)("common.sortable.reorderCancel")), 1)
|
|
3085
3110
|
]),
|
|
3086
3111
|
_: 1
|
|
3087
3112
|
}, 8, ["disabled", "onClick"]),
|
|
@@ -3095,46 +3120,46 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
3095
3120
|
onClick: d(lt)
|
|
3096
3121
|
}, {
|
|
3097
3122
|
default: r(() => [
|
|
3098
|
-
G(B(d(
|
|
3123
|
+
G(B(d(g)("common.sortable.reorderApply")), 1)
|
|
3099
3124
|
]),
|
|
3100
3125
|
_: 1
|
|
3101
3126
|
}, 8, ["loading", "disabled", "onClick"])
|
|
3102
|
-
]) : (
|
|
3103
|
-
st.value &&
|
|
3127
|
+
]) : (h(), R(ve, { key: 1 }, [
|
|
3128
|
+
st.value && gt.value ? (h(), H(_, {
|
|
3104
3129
|
key: 0,
|
|
3105
3130
|
variant: "tonal",
|
|
3106
3131
|
color: "primary",
|
|
3107
3132
|
icon: "",
|
|
3108
3133
|
size: "x-small",
|
|
3109
|
-
onClick:
|
|
3134
|
+
onClick: bt
|
|
3110
3135
|
}, {
|
|
3111
3136
|
default: r(() => [
|
|
3112
|
-
i(
|
|
3137
|
+
i(ae, {
|
|
3113
3138
|
icon: Qe.value ? "mdi-unfold-less-horizontal" : "mdi-unfold-more-horizontal",
|
|
3114
3139
|
size: "18"
|
|
3115
3140
|
}, null, 8, ["icon"]),
|
|
3116
3141
|
i(De, {
|
|
3117
3142
|
activator: "parent",
|
|
3118
3143
|
location: "bottom",
|
|
3119
|
-
text: Qe.value ? d(
|
|
3144
|
+
text: Qe.value ? d(g)("common.sortable.collapseAll") : d(g)("common.sortable.expandAll")
|
|
3120
3145
|
}, null, 8, ["text"])
|
|
3121
3146
|
]),
|
|
3122
3147
|
_: 1
|
|
3123
|
-
})) : st.value ? (
|
|
3148
|
+
})) : st.value ? (h(), H(_, {
|
|
3124
3149
|
key: 1,
|
|
3125
3150
|
variant: "tonal",
|
|
3126
3151
|
color: "primary",
|
|
3127
3152
|
size: "small",
|
|
3128
3153
|
"prepend-icon": Qe.value ? "mdi-unfold-less-horizontal" : "mdi-unfold-more-horizontal",
|
|
3129
|
-
onClick:
|
|
3154
|
+
onClick: bt
|
|
3130
3155
|
}, {
|
|
3131
3156
|
default: r(() => [
|
|
3132
|
-
G(B(Qe.value ? d(
|
|
3157
|
+
G(B(Qe.value ? d(g)("common.sortable.collapseAll") : d(g)("common.sortable.expandAll")), 1)
|
|
3133
3158
|
]),
|
|
3134
3159
|
_: 1
|
|
3135
|
-
}, 8, ["prepend-icon"])) :
|
|
3136
|
-
Be.value ?
|
|
3137
|
-
|
|
3160
|
+
}, 8, ["prepend-icon"])) : W("", !0),
|
|
3161
|
+
Be.value ? M(t.$slots, "reorder-toggle", Ve(ie({ key: 2 }, pn.value)), () => [
|
|
3162
|
+
gt.value ? (h(), H(_, {
|
|
3138
3163
|
key: 0,
|
|
3139
3164
|
variant: "tonal",
|
|
3140
3165
|
color: "primary",
|
|
@@ -3144,18 +3169,18 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
3144
3169
|
onClick: d(et)
|
|
3145
3170
|
}, {
|
|
3146
3171
|
default: r(() => [
|
|
3147
|
-
i(
|
|
3172
|
+
i(ae, {
|
|
3148
3173
|
icon: "mdi-sort",
|
|
3149
3174
|
size: "18"
|
|
3150
3175
|
}),
|
|
3151
3176
|
i(De, {
|
|
3152
3177
|
activator: "parent",
|
|
3153
3178
|
location: "bottom",
|
|
3154
|
-
text: d(
|
|
3179
|
+
text: d(g)("common.sortable.reorder")
|
|
3155
3180
|
}, null, 8, ["text"])
|
|
3156
3181
|
]),
|
|
3157
3182
|
_: 1
|
|
3158
|
-
}, 8, ["disabled", "onClick"])) : (
|
|
3183
|
+
}, 8, ["disabled", "onClick"])) : (h(), H(_, {
|
|
3159
3184
|
key: 1,
|
|
3160
3185
|
variant: "tonal",
|
|
3161
3186
|
color: "primary",
|
|
@@ -3165,23 +3190,23 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
3165
3190
|
onClick: d(et)
|
|
3166
3191
|
}, {
|
|
3167
3192
|
default: r(() => [
|
|
3168
|
-
G(B(d(
|
|
3193
|
+
G(B(d(g)("common.sortable.reorder")), 1)
|
|
3169
3194
|
]),
|
|
3170
3195
|
_: 1
|
|
3171
3196
|
}, 8, ["disabled", "onClick"]))
|
|
3172
|
-
]) :
|
|
3197
|
+
]) : W("", !0)
|
|
3173
3198
|
], 64))
|
|
3174
3199
|
])
|
|
3175
3200
|
])
|
|
3176
|
-
])) :
|
|
3177
|
-
e.loading ? (
|
|
3201
|
+
])) : W("", !0),
|
|
3202
|
+
e.loading ? (h(), R("div", Jl, [
|
|
3178
3203
|
i(sa, {
|
|
3179
3204
|
indeterminate: "",
|
|
3180
3205
|
color: "primary",
|
|
3181
3206
|
size: "32"
|
|
3182
3207
|
})
|
|
3183
|
-
])) : e.error ? (
|
|
3184
|
-
i(
|
|
3208
|
+
])) : e.error ? (h(), R("div", Xl, [
|
|
3209
|
+
i(sn, {
|
|
3185
3210
|
type: "error",
|
|
3186
3211
|
variant: "tonal",
|
|
3187
3212
|
density: "compact",
|
|
@@ -3192,144 +3217,144 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
3192
3217
|
]),
|
|
3193
3218
|
_: 1
|
|
3194
3219
|
})
|
|
3195
|
-
])) :
|
|
3196
|
-
|
|
3220
|
+
])) : f.value ? (h(), R("div", Yl, [
|
|
3221
|
+
M(t.$slots, "empty", {
|
|
3197
3222
|
readonly: e.readonly,
|
|
3198
3223
|
disabled: e.disabled,
|
|
3199
3224
|
actions: { add: rt }
|
|
3200
3225
|
}, () => [
|
|
3201
|
-
i(
|
|
3226
|
+
i(Qn, {
|
|
3202
3227
|
title: tt.value,
|
|
3203
3228
|
"add-label": it.value,
|
|
3204
3229
|
"can-add": Xe.value,
|
|
3205
3230
|
onAdd: rt
|
|
3206
3231
|
}, null, 8, ["title", "add-label", "can-add"])
|
|
3207
3232
|
])
|
|
3208
|
-
])) : (
|
|
3233
|
+
])) : (h(), R("div", {
|
|
3209
3234
|
key: m.value,
|
|
3210
3235
|
ref_key: "rowsContainer",
|
|
3211
3236
|
ref: S,
|
|
3212
3237
|
class: xe(["a-nested-list-editor__rows", { "a-nested-list-editor__rows--dragging": be.value !== null }])
|
|
3213
3238
|
}, [
|
|
3214
|
-
|
|
3215
|
-
class: xe([
|
|
3239
|
+
z("div", {
|
|
3240
|
+
class: xe([Cn, "a-nested-list-editor__group--root"]),
|
|
3216
3241
|
"data-parent-id": ""
|
|
3217
3242
|
}, [
|
|
3218
|
-
(
|
|
3243
|
+
(h(!0), R(ve, null, Ze(Da.value, (a) => (h(), H(da, {
|
|
3219
3244
|
key: String(a.key),
|
|
3220
3245
|
vi: a,
|
|
3221
|
-
"view-items":
|
|
3246
|
+
"view-items": I.value,
|
|
3222
3247
|
"drag-state": be.value,
|
|
3223
|
-
context:
|
|
3224
|
-
callbacks:
|
|
3248
|
+
context: Ia.value,
|
|
3249
|
+
callbacks: Pa
|
|
3225
3250
|
}, {
|
|
3226
3251
|
item: r((x) => [
|
|
3227
|
-
|
|
3252
|
+
M(t.$slots, "item", ie({ ref_for: !0 }, x))
|
|
3228
3253
|
]),
|
|
3229
3254
|
"item-compact": r((x) => [
|
|
3230
|
-
|
|
3255
|
+
M(t.$slots, "item-compact", ie({ ref_for: !0 }, x))
|
|
3231
3256
|
]),
|
|
3232
3257
|
"item-readonly": r((x) => [
|
|
3233
|
-
|
|
3258
|
+
M(t.$slots, "item-readonly", ie({ ref_for: !0 }, x))
|
|
3234
3259
|
]),
|
|
3235
3260
|
"item-status": r((x) => [
|
|
3236
|
-
|
|
3261
|
+
M(t.$slots, "item-status", ie({ ref_for: !0 }, x))
|
|
3237
3262
|
]),
|
|
3238
3263
|
"item-footer": r((x) => [
|
|
3239
|
-
|
|
3264
|
+
M(t.$slots, "item-footer", ie({ ref_for: !0 }, x))
|
|
3240
3265
|
]),
|
|
3241
3266
|
"item-actions": r((x) => [
|
|
3242
|
-
|
|
3267
|
+
M(t.$slots, "item-actions", ie({ ref_for: !0 }, x))
|
|
3243
3268
|
]),
|
|
3244
3269
|
"before-item": r((x) => [
|
|
3245
|
-
|
|
3270
|
+
M(t.$slots, "before-item", ie({ ref_for: !0 }, x))
|
|
3246
3271
|
]),
|
|
3247
3272
|
"after-item": r((x) => [
|
|
3248
|
-
|
|
3273
|
+
M(t.$slots, "after-item", ie({ ref_for: !0 }, x))
|
|
3249
3274
|
]),
|
|
3250
3275
|
_: 3
|
|
3251
3276
|
}, 8, ["vi", "view-items", "drag-state", "context"]))), 128))
|
|
3252
3277
|
], 2),
|
|
3253
|
-
|
|
3254
|
-
|
|
3278
|
+
qe.value !== null ? (h(), R(ve, { key: 0 }, [
|
|
3279
|
+
qe.value.connector !== null ? (h(), R("div", {
|
|
3255
3280
|
key: 0,
|
|
3256
3281
|
class: "a-nested-list-editor__drop-connector",
|
|
3257
|
-
style:
|
|
3258
|
-
left: `${
|
|
3259
|
-
top: `${
|
|
3260
|
-
height: `${
|
|
3282
|
+
style: yt({
|
|
3283
|
+
left: `${qe.value.connector.left}px`,
|
|
3284
|
+
top: `${qe.value.connector.top}px`,
|
|
3285
|
+
height: `${qe.value.connector.height}px`
|
|
3261
3286
|
})
|
|
3262
|
-
}, null, 4)) :
|
|
3263
|
-
|
|
3287
|
+
}, null, 4)) : W("", !0),
|
|
3288
|
+
z("div", {
|
|
3264
3289
|
class: "a-nested-list-editor__drop-line",
|
|
3265
|
-
style:
|
|
3266
|
-
top: `${
|
|
3267
|
-
left: `${
|
|
3268
|
-
right: `${
|
|
3290
|
+
style: yt({
|
|
3291
|
+
top: `${qe.value.line.top}px`,
|
|
3292
|
+
left: `${qe.value.line.left}px`,
|
|
3293
|
+
right: `${qe.value.line.right}px`
|
|
3269
3294
|
})
|
|
3270
3295
|
}, [...l[3] || (l[3] = [
|
|
3271
|
-
|
|
3296
|
+
z("span", { class: "a-nested-list-editor__drop-line-dot" }, null, -1)
|
|
3272
3297
|
])], 4)
|
|
3273
|
-
], 64)) :
|
|
3298
|
+
], 64)) : W("", !0)
|
|
3274
3299
|
], 2)),
|
|
3275
|
-
Xe.value && !e.loading && !e.error && !
|
|
3300
|
+
Xe.value && !e.loading && !e.error && !f.value ? M(t.$slots, "add-button", {
|
|
3276
3301
|
key: 5,
|
|
3277
3302
|
readonly: e.readonly,
|
|
3278
3303
|
disabled: e.disabled,
|
|
3279
3304
|
props: { onClick: rt },
|
|
3280
3305
|
actions: { add: rt }
|
|
3281
3306
|
}, () => [
|
|
3282
|
-
|
|
3307
|
+
z("button", {
|
|
3283
3308
|
type: "button",
|
|
3284
3309
|
class: "a-le-row-add",
|
|
3285
3310
|
onClick: rt
|
|
3286
3311
|
}, [
|
|
3287
|
-
i(
|
|
3312
|
+
i(ae, {
|
|
3288
3313
|
icon: "mdi-plus",
|
|
3289
3314
|
size: "18"
|
|
3290
3315
|
}),
|
|
3291
|
-
|
|
3316
|
+
z("span", null, B(it.value), 1)
|
|
3292
3317
|
])
|
|
3293
|
-
]) :
|
|
3318
|
+
]) : W("", !0)
|
|
3294
3319
|
]),
|
|
3295
|
-
i(
|
|
3296
|
-
modelValue:
|
|
3297
|
-
"onUpdate:modelValue": l[0] || (l[0] = (a) =>
|
|
3298
|
-
total:
|
|
3299
|
-
"current-index":
|
|
3320
|
+
i(mo, {
|
|
3321
|
+
modelValue: Wt.value,
|
|
3322
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => Wt.value = a),
|
|
3323
|
+
total: Ht.value?.total ?? 0,
|
|
3324
|
+
"current-index": Ht.value?.currentIndex ?? 0,
|
|
3300
3325
|
"item-label": wa.value,
|
|
3301
3326
|
onConfirm: xa
|
|
3302
3327
|
}, null, 8, ["modelValue", "total", "current-index", "item-label"]),
|
|
3303
|
-
i(
|
|
3304
|
-
modelValue:
|
|
3305
|
-
"onUpdate:modelValue": l[1] || (l[1] = (a) =>
|
|
3306
|
-
tree:
|
|
3307
|
-
"source-key":
|
|
3328
|
+
i(jl, {
|
|
3329
|
+
modelValue: Jt.value,
|
|
3330
|
+
"onUpdate:modelValue": l[1] || (l[1] = (a) => Jt.value = a),
|
|
3331
|
+
tree: v.value,
|
|
3332
|
+
"source-key": At.value?.key ?? null,
|
|
3308
3333
|
"key-field": e.keyField,
|
|
3309
3334
|
"max-depth": e.maxDepth,
|
|
3310
|
-
"resolve-label":
|
|
3335
|
+
"resolve-label": Gt,
|
|
3311
3336
|
"calculate-subtree-depth": d($).calculateSubtreeDepth,
|
|
3312
3337
|
onConfirm: Sa
|
|
3313
3338
|
}, null, 8, ["modelValue", "tree", "source-key", "key-field", "max-depth", "calculate-subtree-depth"]),
|
|
3314
|
-
i(
|
|
3315
|
-
modelValue: d(
|
|
3316
|
-
"onUpdate:modelValue": l[2] || (l[2] = (a) => aa(
|
|
3339
|
+
i(_n, {
|
|
3340
|
+
modelValue: d(Mt),
|
|
3341
|
+
"onUpdate:modelValue": l[2] || (l[2] = (a) => aa(Mt) ? Mt.value = a : null),
|
|
3317
3342
|
title: Ye.value,
|
|
3318
|
-
text:
|
|
3319
|
-
"confirm-label": d(
|
|
3320
|
-
"cancel-label": d(
|
|
3343
|
+
text: Vt.value,
|
|
3344
|
+
"confirm-label": d(g)("common.sortable.delete"),
|
|
3345
|
+
"cancel-label": d(g)("common.button.cancel"),
|
|
3321
3346
|
error: d(ma),
|
|
3322
3347
|
"in-flight": d(fa),
|
|
3323
3348
|
onConfirm: d(ya),
|
|
3324
3349
|
onCancel: d(ha)
|
|
3325
3350
|
}, null, 8, ["modelValue", "title", "text", "confirm-label", "cancel-label", "error", "in-flight", "onConfirm", "onCancel"]),
|
|
3326
|
-
|
|
3327
|
-
n: d(
|
|
3328
|
-
total: d(
|
|
3351
|
+
z("div", Ql, B(d(xt).grabbedKey.value !== null ? d(g)("common.sortable.keyboardGrab.status", {
|
|
3352
|
+
n: d(xt).grabbedIndex.value + 1,
|
|
3353
|
+
total: d(xt).totalCount.value
|
|
3329
3354
|
}) : ""), 1)
|
|
3330
3355
|
], 2));
|
|
3331
3356
|
}
|
|
3332
|
-
}),
|
|
3357
|
+
}), _l = { class: "a-unsaved-sections" }, ei = /* @__PURE__ */ je({
|
|
3333
3358
|
__name: "AUnsavedConfirmDialog",
|
|
3334
3359
|
props: /* @__PURE__ */ Le({
|
|
3335
3360
|
title: { default: void 0 },
|
|
@@ -3343,61 +3368,61 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
3343
3368
|
}),
|
|
3344
3369
|
emits: /* @__PURE__ */ Le(["resolve"], ["update:modelValue"]),
|
|
3345
3370
|
setup(e, { emit: w }) {
|
|
3346
|
-
const
|
|
3347
|
-
|
|
3348
|
-
},
|
|
3349
|
-
|
|
3371
|
+
const c = w, n = We(e, "modelValue"), { t: u } = He(), v = () => {
|
|
3372
|
+
c("resolve", !1);
|
|
3373
|
+
}, y = () => {
|
|
3374
|
+
c("resolve", !0);
|
|
3350
3375
|
};
|
|
3351
|
-
return (
|
|
3376
|
+
return (g, k) => (h(), H(on, {
|
|
3352
3377
|
modelValue: n.value,
|
|
3353
3378
|
"onUpdate:modelValue": k[0] || (k[0] = (s) => n.value = s),
|
|
3354
3379
|
"max-width": "480",
|
|
3355
3380
|
persistent: ""
|
|
3356
3381
|
}, {
|
|
3357
3382
|
default: r(() => [
|
|
3358
|
-
i(
|
|
3383
|
+
i(an, null, {
|
|
3359
3384
|
default: r(() => [
|
|
3360
3385
|
i(la, null, {
|
|
3361
3386
|
default: r(() => [
|
|
3362
|
-
G(B(e.title ?? d(
|
|
3387
|
+
G(B(e.title ?? d(u)("common.sortable.unsavedChanges.title")), 1)
|
|
3363
3388
|
]),
|
|
3364
3389
|
_: 1
|
|
3365
3390
|
}),
|
|
3366
|
-
i(
|
|
3391
|
+
i(Et, null, {
|
|
3367
3392
|
default: r(() => [
|
|
3368
|
-
e.body ? (
|
|
3393
|
+
e.body ? (h(), R(ve, { key: 0 }, [
|
|
3369
3394
|
G(B(e.body), 1)
|
|
3370
|
-
], 64)) : e.dirtyLabels.length ? (
|
|
3371
|
-
G(B(d(
|
|
3372
|
-
|
|
3373
|
-
(
|
|
3395
|
+
], 64)) : e.dirtyLabels.length ? (h(), R(ve, { key: 1 }, [
|
|
3396
|
+
G(B(d(u)("common.sortable.unsavedChanges.sectionsIntro")) + " ", 1),
|
|
3397
|
+
z("ul", _l, [
|
|
3398
|
+
(h(!0), R(ve, null, Ze(e.dirtyLabels, (s, C) => (h(), R("li", { key: C }, B(s), 1))), 128))
|
|
3374
3399
|
]),
|
|
3375
|
-
G(" " + B(d(
|
|
3376
|
-
], 64)) : (
|
|
3377
|
-
G(B(d(
|
|
3400
|
+
G(" " + B(d(u)("common.sortable.unsavedChanges.leaveQuestion")), 1)
|
|
3401
|
+
], 64)) : (h(), R(ve, { key: 2 }, [
|
|
3402
|
+
G(B(d(u)("common.sortable.unsavedChanges.body")), 1)
|
|
3378
3403
|
], 64))
|
|
3379
3404
|
]),
|
|
3380
3405
|
_: 1
|
|
3381
3406
|
}),
|
|
3382
3407
|
i(ia, null, {
|
|
3383
3408
|
default: r(() => [
|
|
3384
|
-
i(
|
|
3409
|
+
i(ln),
|
|
3385
3410
|
i(_, {
|
|
3386
3411
|
variant: "text",
|
|
3387
|
-
onClick:
|
|
3412
|
+
onClick: v
|
|
3388
3413
|
}, {
|
|
3389
3414
|
default: r(() => [
|
|
3390
|
-
G(B(e.stayLabel ?? d(
|
|
3415
|
+
G(B(e.stayLabel ?? d(u)("common.sortable.unsavedChanges.stay")), 1)
|
|
3391
3416
|
]),
|
|
3392
3417
|
_: 1
|
|
3393
3418
|
}),
|
|
3394
3419
|
i(_, {
|
|
3395
3420
|
color: "warning",
|
|
3396
3421
|
variant: "flat",
|
|
3397
|
-
onClick:
|
|
3422
|
+
onClick: y
|
|
3398
3423
|
}, {
|
|
3399
3424
|
default: r(() => [
|
|
3400
|
-
G(B(e.discardLabel ?? d(
|
|
3425
|
+
G(B(e.discardLabel ?? d(u)("common.sortable.unsavedChanges.discard")), 1)
|
|
3401
3426
|
]),
|
|
3402
3427
|
_: 1
|
|
3403
3428
|
})
|
|
@@ -3411,69 +3436,69 @@ const Bt = (e, w) => e.find((u) => u.key === w) ?? null, ra = (e, w, u) => {
|
|
|
3411
3436
|
_: 1
|
|
3412
3437
|
}, 8, ["modelValue"]));
|
|
3413
3438
|
}
|
|
3414
|
-
}),
|
|
3415
|
-
function
|
|
3416
|
-
const e =
|
|
3417
|
-
const
|
|
3439
|
+
}), Vi = /* @__PURE__ */ ta(ei, [["__scopeId", "data-v-8342a164"]]), ca = /* @__PURE__ */ Symbol("unsaved.sections");
|
|
3440
|
+
function ti() {
|
|
3441
|
+
const e = wo(/* @__PURE__ */ new Map()), w = b(() => {
|
|
3442
|
+
const c = [];
|
|
3418
3443
|
for (const n of e.values())
|
|
3419
|
-
for (const
|
|
3420
|
-
|
|
3421
|
-
return
|
|
3444
|
+
for (const u of n.value)
|
|
3445
|
+
u.dirty && c.push(u.label);
|
|
3446
|
+
return c;
|
|
3422
3447
|
});
|
|
3423
3448
|
return {
|
|
3424
|
-
register(
|
|
3425
|
-
e.set(
|
|
3449
|
+
register(c, n) {
|
|
3450
|
+
e.set(c, n);
|
|
3426
3451
|
},
|
|
3427
|
-
unregister(
|
|
3428
|
-
e.delete(
|
|
3452
|
+
unregister(c) {
|
|
3453
|
+
e.delete(c);
|
|
3429
3454
|
},
|
|
3430
3455
|
dirtyLabels: w
|
|
3431
3456
|
};
|
|
3432
3457
|
}
|
|
3433
|
-
function
|
|
3434
|
-
const e =
|
|
3435
|
-
return
|
|
3458
|
+
function ni() {
|
|
3459
|
+
const e = ti();
|
|
3460
|
+
return tn() && Ft(ca, e), e;
|
|
3436
3461
|
}
|
|
3437
|
-
function
|
|
3438
|
-
const w =
|
|
3439
|
-
if (!w || !
|
|
3440
|
-
const
|
|
3441
|
-
const
|
|
3442
|
-
return Array.isArray(
|
|
3462
|
+
function Li(e) {
|
|
3463
|
+
const w = vt(ca, null);
|
|
3464
|
+
if (!w || !tn()) return;
|
|
3465
|
+
const c = /* @__PURE__ */ Symbol("unsaved.section"), n = b(() => {
|
|
3466
|
+
const u = e();
|
|
3467
|
+
return Array.isArray(u) ? u : [u];
|
|
3443
3468
|
});
|
|
3444
|
-
w.register(
|
|
3469
|
+
w.register(c, n), en(() => w.unregister(c));
|
|
3445
3470
|
}
|
|
3446
|
-
const
|
|
3447
|
-
function
|
|
3448
|
-
const w =
|
|
3471
|
+
const ai = (e) => e == null ? !1 : typeof e == "boolean" ? e : e instanceof Set ? e.size > 0 : Array.isArray(e) ? e.length > 0 : !!e, Sn = (e, w) => e === void 0 ? w : typeof e == "boolean" ? e : e.value;
|
|
3472
|
+
function Mi(e) {
|
|
3473
|
+
const w = ni();
|
|
3449
3474
|
if (e.ownSections) {
|
|
3450
|
-
const s = e.ownSections, C = /* @__PURE__ */ Symbol("unsaved.section.own"), D =
|
|
3475
|
+
const s = e.ownSections, C = /* @__PURE__ */ Symbol("unsaved.section.own"), D = b(() => {
|
|
3451
3476
|
const N = s();
|
|
3452
3477
|
return Array.isArray(N) ? N : [N];
|
|
3453
3478
|
});
|
|
3454
3479
|
w.register(C, D);
|
|
3455
3480
|
}
|
|
3456
|
-
const
|
|
3457
|
-
() => e.sources.some((s) =>
|
|
3458
|
-
), n =
|
|
3459
|
-
let
|
|
3460
|
-
const
|
|
3461
|
-
|
|
3462
|
-
}),
|
|
3463
|
-
n.value = !1,
|
|
3481
|
+
const c = b(
|
|
3482
|
+
() => e.sources.some((s) => ai(s.value)) || w.dirtyLabels.value.length > 0
|
|
3483
|
+
), n = de(!1);
|
|
3484
|
+
let u = null, v = !1;
|
|
3485
|
+
const y = () => v ? (v = !1, Promise.resolve(!0)) : new Promise((s) => {
|
|
3486
|
+
u = s, n.value = !0;
|
|
3487
|
+
}), g = (s) => {
|
|
3488
|
+
n.value = !1, u && (u(s), u = null);
|
|
3464
3489
|
}, k = () => {
|
|
3465
|
-
|
|
3490
|
+
v = !0;
|
|
3466
3491
|
};
|
|
3467
|
-
if (
|
|
3492
|
+
if (Sn(e.guardRoute, !0) && tn())
|
|
3468
3493
|
try {
|
|
3469
|
-
|
|
3494
|
+
Do(async () => c.value ? await y() : !0);
|
|
3470
3495
|
} catch {
|
|
3471
3496
|
}
|
|
3472
|
-
if (
|
|
3497
|
+
if (Sn(e.guardWindowUnload, !0)) {
|
|
3473
3498
|
const s = (C) => {
|
|
3474
|
-
|
|
3499
|
+
c.value && (C.preventDefault(), C.returnValue = "");
|
|
3475
3500
|
};
|
|
3476
|
-
typeof window < "u" && (window.addEventListener("beforeunload", s),
|
|
3501
|
+
typeof window < "u" && (window.addEventListener("beforeunload", s), en(() => {
|
|
3477
3502
|
window.removeEventListener("beforeunload", s);
|
|
3478
3503
|
}));
|
|
3479
3504
|
}
|
|
@@ -3485,81 +3510,82 @@ function $i(e) {
|
|
|
3485
3510
|
C = !1;
|
|
3486
3511
|
return;
|
|
3487
3512
|
}
|
|
3488
|
-
N === !0 && D === !1 &&
|
|
3513
|
+
N === !0 && D === !1 && c.value && (C = !0, s.value = !0, await y() && (C = !0, s.value = !1));
|
|
3489
3514
|
});
|
|
3490
3515
|
}
|
|
3491
3516
|
return {
|
|
3492
|
-
hasUnsavedChanges:
|
|
3517
|
+
hasUnsavedChanges: c,
|
|
3493
3518
|
dirtyLabels: w.dirtyLabels,
|
|
3494
3519
|
promptOpen: n,
|
|
3495
|
-
resolvePrompt:
|
|
3520
|
+
resolvePrompt: g,
|
|
3496
3521
|
acknowledge: k
|
|
3497
3522
|
};
|
|
3498
3523
|
}
|
|
3499
|
-
function
|
|
3500
|
-
const e =
|
|
3501
|
-
|
|
3502
|
-
},
|
|
3503
|
-
const
|
|
3504
|
-
for (const [
|
|
3524
|
+
function zi() {
|
|
3525
|
+
const e = de(/* @__PURE__ */ new Map()), w = /* @__PURE__ */ new Set(), c = (y) => e.value.get(y) ?? w, n = (y, g) => {
|
|
3526
|
+
g.size === 0 ? e.value.delete(y) : e.value.set(y, g), e.value = new Map(e.value);
|
|
3527
|
+
}, u = b(() => {
|
|
3528
|
+
const y = /* @__PURE__ */ new Set();
|
|
3529
|
+
for (const [g, k] of e.value.entries())
|
|
3505
3530
|
for (const s of k)
|
|
3506
|
-
|
|
3507
|
-
return
|
|
3508
|
-
}),
|
|
3509
|
-
return { getForParent:
|
|
3531
|
+
y.add(`${String(g)}:${String(s)}`);
|
|
3532
|
+
return y;
|
|
3533
|
+
}), v = b(() => u.value.size);
|
|
3534
|
+
return { getForParent: c, setForParent: n, merged: u, count: v };
|
|
3510
3535
|
}
|
|
3511
3536
|
export {
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3537
|
+
Di as ADatatableOrdering,
|
|
3538
|
+
Lo as ADatatablePagination,
|
|
3539
|
+
Ui as AFilterBooleanSelect,
|
|
3540
|
+
ji as AFilterDatetimePicker,
|
|
3541
|
+
qi as AFilterInteger,
|
|
3542
|
+
Gi as AFilterRemoteAutocomplete,
|
|
3543
|
+
Wi as AFilterRemoteAutocompleteWithMinimal,
|
|
3544
|
+
Hi as AFilterString,
|
|
3545
|
+
Ji as AFilterTimeInterval,
|
|
3546
|
+
Xi as AFilterValueObjectOptionsSelect,
|
|
3547
|
+
Yi as AFilterWrapper,
|
|
3548
|
+
Pi as AFilterWrapperSidebar,
|
|
3549
|
+
Qi as AFilterWrapperSubjectSelect,
|
|
3550
|
+
Zi as AFormRemoteAutocomplete,
|
|
3551
|
+
_i as AFormRemoteAutocompleteWithCached,
|
|
3552
|
+
Ki as AListEditor,
|
|
3553
|
+
Ri as ANestedSortableListEditor,
|
|
3554
|
+
es as ASortableListEditor,
|
|
3555
|
+
Bi as ASubjectSelect,
|
|
3556
|
+
Vi as AUnsavedConfirmDialog,
|
|
3557
|
+
In as DatatablePaginationKey,
|
|
3558
|
+
Ma as FilterConfigKey,
|
|
3559
|
+
za as FilterDataKey,
|
|
3560
|
+
ts as FilterInnerConfigKey,
|
|
3561
|
+
ns as FilterInnerDataKey,
|
|
3562
|
+
as as ListEditorValidationKey,
|
|
3563
|
+
os as SharedReorderRegistryKey,
|
|
3564
|
+
ls as TimeIntervalSpecialOptions,
|
|
3565
|
+
is as UserAdminConfigLayoutType,
|
|
3566
|
+
ss as UserAdminConfigLayoutTypeDefault,
|
|
3567
|
+
rs as UserAdminConfigType,
|
|
3568
|
+
ds as UserAdminConfigTypeDefault,
|
|
3569
|
+
Oo as createDatatableColumnsConfig,
|
|
3570
|
+
cs as createFilter,
|
|
3571
|
+
us as createFilterStore,
|
|
3572
|
+
Qt as generateListQuery,
|
|
3573
|
+
Ei as useApiFetchByIds,
|
|
3574
|
+
Qa as useApiFetchList,
|
|
3575
|
+
Ti as useApiFetchListBatch,
|
|
3576
|
+
qa as useApiQueryBuilder,
|
|
3577
|
+
fs as useApiRequest,
|
|
3578
|
+
oo as useFilterHelpers,
|
|
3579
|
+
$i as useJobApi,
|
|
3580
|
+
so as useListEditor,
|
|
3581
|
+
ms as useListEditorItemValidation,
|
|
3582
|
+
kl as useNestedListEditor,
|
|
3583
|
+
zi as useNestedUnsavedKeys,
|
|
3584
|
+
jn as usePagination,
|
|
3585
|
+
Fi as useSubjectSelect,
|
|
3586
|
+
Mi as useUnsavedChangesGuard,
|
|
3587
|
+
Li as useUnsavedSection,
|
|
3588
|
+
vs as useUserAdminConfigApi,
|
|
3589
|
+
ys as useUserAdminConfigFactory
|
|
3564
3590
|
};
|
|
3565
3591
|
//# sourceMappingURL=labs.js.map
|