@anzusystems/common-admin 1.47.0-beta.dev-1788764220 → 1.47.0-beta.dev-1788935852
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-nhJg86M2.mjs → AFormRemoteAutocomplete-Cb9Sk6H6.mjs} +2303 -2278
- package/dist/AFormRemoteAutocomplete-Cb9Sk6H6.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.css.d.ts +6 -0
- package/dist/common-admin.d.ts +32 -4
- package/dist/common-admin.js +4383 -4376
- package/dist/common-admin.js.map +1 -1
- package/dist/{esm-CUYEQ0A0.mjs → esm-CdGfO7hW.mjs} +2 -2
- package/dist/{esm-CUYEQ0A0.mjs.map → esm-CdGfO7hW.mjs.map} +1 -1
- package/dist/labs.js +974 -964
- package/dist/labs.js.map +1 -1
- package/dist/{webfontloader-CwEmCwuM.mjs → webfontloader-MU9EmUQJ.mjs} +2 -2
- package/dist/{webfontloader-CwEmCwuM.mjs.map → webfontloader-MU9EmUQJ.mjs.map} +1 -1
- package/package.json +10 -7
- package/dist/AFormRemoteAutocomplete-nhJg86M2.mjs.map +0 -1
package/dist/labs.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { $ as e,
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { VSpacer as
|
|
5
|
-
import { VAlert as
|
|
6
|
-
import { VIcon as
|
|
7
|
-
import { VProgressCircular as
|
|
8
|
-
import { VCard as
|
|
9
|
-
import { VTooltip as
|
|
10
|
-
import { useDebounceFn as
|
|
11
|
-
import { Intersect as
|
|
12
|
-
import { useDisplay as
|
|
1
|
+
import { $ as e, $r as t, A as n, An as r, At as i, B as a, C as o, Ct as s, D as c, Dn as l, Dt as u, E as d, En as f, Et as p, F as m, Gn as h, Gr as g, I as _, It as v, J as y, K as b, L as ee, Lt as x, M as S, N as te, O as ne, Ot as re, P as ie, Q as C, Qr as ae, R as oe, Rt as se, S as ce, Sn as le, St as ue, T as de, Tn as fe, Tt as pe, V as me, Vn as w, Wn as T, Wr as he, X as ge, Xn as E, Xr as _e, Y as ve, Z as ye, Zr as be, _ as xe, _n as Se, _t as Ce, a as we, b as Te, bt as Ee, c as De, ci as Oe, ct as ke, d as Ae, di as je, dt as Me, er as Ne, et as Pe, f as Fe, ft as Ie, g as Le, gn as Re, gt as ze, h as Be, ht as Ve, i as He, it as D, j as Ue, jn as We, jt as Ge, k as Ke, kt as O, l as qe, li as Je, lt as Ye, m as Xe, mn as Ze, mt as Qe, n as $e, nt as et, o as tt, oi as nt, ot as rt, p as it, pn as at, pt as ot, q as st, qn as ct, r as lt, rt as ut, s as dt, st as ft, t as pt, u as mt, ui as k, ut as ht, v as gt, vn as _t, vt, w as yt, wn as bt, wt as xt, x as St, xn as Ct, xt as wt, y as Tt, yn as Et, yt as Dt, z as Ot } from "./AFormRemoteAutocomplete-Cb9Sk6H6.mjs";
|
|
2
|
+
import { Fragment as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createTextVNode as I, createVNode as L, defineComponent as kt, getCurrentInstance as At, guardReactiveProps as jt, inject as Mt, isRef as Nt, mergeModels as Pt, mergeProps as R, nextTick as Ft, normalizeClass as z, normalizeProps as It, normalizeStyle as Lt, onBeforeUnmount as Rt, onMounted as zt, openBlock as B, provide as Bt, ref as V, renderList as Vt, renderSlot as H, resolveComponent as Ht, shallowRef as Ut, toDisplayString as U, toRaw as Wt, unref as W, useModel as Gt, useSlots as Kt, useTemplateRef as qt, vShow as Jt, watch as G, withCtx as K, withDirectives as Yt, withKeys as Xt, withModifiers as q } from "vue";
|
|
3
|
+
import { useI18n as Zt } from "vue-i18n";
|
|
4
|
+
import { VSpacer as Qt } from "vuetify/components/VGrid";
|
|
5
|
+
import { VAlert as $t } from "vuetify/components/VAlert";
|
|
6
|
+
import { VIcon as J } from "vuetify/components/VIcon";
|
|
7
|
+
import { VProgressCircular as en } from "vuetify/components/VProgressCircular";
|
|
8
|
+
import { VCard as tn, VCardActions as nn, VCardText as rn, VCardTitle as an } from "vuetify/components/VCard";
|
|
9
|
+
import { VTooltip as Y } from "vuetify/components/VTooltip";
|
|
10
|
+
import { useDebounceFn as on, useThrottleFn as sn } from "@vueuse/core";
|
|
11
|
+
import { Intersect as cn } from "vuetify/directives";
|
|
12
|
+
import { useDisplay as ln } from "vuetify";
|
|
13
13
|
import { VBtn as X } from "vuetify/components/VBtn";
|
|
14
|
-
import { VBtnToggle as
|
|
15
|
-
import { VList as
|
|
16
|
-
import { VMenu as
|
|
17
|
-
import { VToolbar as
|
|
18
|
-
import { onBeforeRouteLeave as
|
|
19
|
-
import
|
|
20
|
-
import { VDialog as
|
|
21
|
-
import { VForm as
|
|
22
|
-
import { VRadio as
|
|
23
|
-
import { VRadioGroup as
|
|
14
|
+
import { VBtnToggle as un } from "vuetify/components/VBtnToggle";
|
|
15
|
+
import { VList as dn, VListItem as Z, VListItemTitle as Q } from "vuetify/components/VList";
|
|
16
|
+
import { VMenu as fn } from "vuetify/components/VMenu";
|
|
17
|
+
import { VToolbar as pn } from "vuetify/components/VToolbar";
|
|
18
|
+
import { onBeforeRouteLeave as $ } from "vue-router";
|
|
19
|
+
import mn from "axios";
|
|
20
|
+
import { VDialog as hn } from "vuetify/components/VDialog";
|
|
21
|
+
import { VForm as gn } from "vuetify/components/VForm";
|
|
22
|
+
import { VRadio as _n } from "vuetify/components/VRadio";
|
|
23
|
+
import { VRadioGroup as vn } from "vuetify/components/VRadioGroup";
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/labs/filters/AFilterWrapperSidebar.vue
|
|
26
|
-
var
|
|
26
|
+
var yn = /* @__PURE__ */ kt({
|
|
27
27
|
__name: "AFilterWrapperSidebar",
|
|
28
28
|
props: { formName: { default: "search" } },
|
|
29
29
|
emits: ["submit"],
|
|
30
30
|
setup(e, { expose: t, emit: n }) {
|
|
31
|
-
let r = n, i =
|
|
31
|
+
let r = n, i = Mt(s), a = Mt(xt);
|
|
32
32
|
if (k(i) || k(a)) throw Error("Incorrect provide/inject config.");
|
|
33
|
-
|
|
34
|
-
let o =
|
|
35
|
-
|
|
36
|
-
let { clearAll:
|
|
33
|
+
Bt(re, V(0));
|
|
34
|
+
let o = V(/* @__PURE__ */ new Map());
|
|
35
|
+
Bt(u, o);
|
|
36
|
+
let { clearAll: c, clearAllFilterSelected: l } = Dt(), d = () => {
|
|
37
37
|
r("submit");
|
|
38
38
|
};
|
|
39
39
|
return t({ resetFilter: () => {
|
|
40
|
-
|
|
41
|
-
} }), (t, n) => (
|
|
40
|
+
c(a, i), l(a, i, o);
|
|
41
|
+
} }), (t, n) => (B(), M(gn, {
|
|
42
42
|
name: e.formName,
|
|
43
|
-
onSubmit:
|
|
44
|
-
onKeyup:
|
|
43
|
+
onSubmit: q(d, ["prevent"]),
|
|
44
|
+
onKeyup: Xt(d, ["enter"])
|
|
45
45
|
}, {
|
|
46
|
-
default:
|
|
46
|
+
default: K(() => [H(t.$slots, "default")]),
|
|
47
47
|
_: 3
|
|
48
48
|
}, 8, ["name"]));
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), bn = { class: "d-flex align-center justify-center" }, xn = { class: "text-body-small mr-1" }, Sn = /* @__PURE__ */ kt({
|
|
51
51
|
__name: "ADatatableOrdering",
|
|
52
|
-
props: /*@__PURE__*/
|
|
52
|
+
props: /*@__PURE__*/ Pt({
|
|
53
53
|
variant: { default: "id" },
|
|
54
54
|
customOptions: { default: void 0 },
|
|
55
55
|
paginationUpdateCustomCb: {
|
|
@@ -63,45 +63,45 @@ var _n = /* @__PURE__ */ Et({
|
|
|
63
63
|
},
|
|
64
64
|
modelModifiers: {}
|
|
65
65
|
}),
|
|
66
|
-
emits: /*@__PURE__*/
|
|
66
|
+
emits: /*@__PURE__*/ Pt(["sortByChange"], ["update:modelValue"]),
|
|
67
67
|
setup(e, { emit: t }) {
|
|
68
|
-
let n = e, r = t, i =
|
|
68
|
+
let n = e, r = t, i = Gt(e, "modelValue"), a = Mt(ue);
|
|
69
69
|
if (k(a)) throw Error("Incorrect provide/inject config.");
|
|
70
|
-
let { t: o } =
|
|
70
|
+
let { t: o } = Zt(), s = [{
|
|
71
71
|
id: 1,
|
|
72
72
|
titleT: "common.system.datatable.ordering.mostRecent",
|
|
73
73
|
sortBy: {
|
|
74
74
|
key: "createdAt",
|
|
75
|
-
order:
|
|
75
|
+
order: E.Desc
|
|
76
76
|
}
|
|
77
77
|
}, {
|
|
78
78
|
id: 2,
|
|
79
79
|
titleT: "common.system.datatable.ordering.oldest",
|
|
80
80
|
sortBy: {
|
|
81
81
|
key: "createdAt",
|
|
82
|
-
order:
|
|
82
|
+
order: E.Asc
|
|
83
83
|
}
|
|
84
84
|
}], c = [{
|
|
85
85
|
id: 1,
|
|
86
86
|
titleT: "common.system.datatable.ordering.mostRecent",
|
|
87
87
|
sortBy: {
|
|
88
88
|
key: "id",
|
|
89
|
-
order:
|
|
89
|
+
order: E.Desc
|
|
90
90
|
}
|
|
91
91
|
}, {
|
|
92
92
|
id: 2,
|
|
93
93
|
titleT: "common.system.datatable.ordering.oldest",
|
|
94
94
|
sortBy: {
|
|
95
95
|
key: "id",
|
|
96
|
-
order:
|
|
96
|
+
order: E.Asc
|
|
97
97
|
}
|
|
98
98
|
}], l = [
|
|
99
99
|
{
|
|
100
100
|
id: 3,
|
|
101
101
|
titleT: "common.system.datatable.ordering.mostRelevant",
|
|
102
102
|
sortBy: {
|
|
103
|
-
key:
|
|
104
|
-
order:
|
|
103
|
+
key: ct,
|
|
104
|
+
order: E.Desc
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
{
|
|
@@ -109,7 +109,7 @@ var _n = /* @__PURE__ */ Et({
|
|
|
109
109
|
titleT: "common.system.datatable.ordering.mostRecent",
|
|
110
110
|
sortBy: {
|
|
111
111
|
key: "createdAt",
|
|
112
|
-
order:
|
|
112
|
+
order: E.Desc
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
{
|
|
@@ -117,21 +117,25 @@ var _n = /* @__PURE__ */ Et({
|
|
|
117
117
|
titleT: "common.system.datatable.ordering.oldest",
|
|
118
118
|
sortBy: {
|
|
119
119
|
key: "createdAt",
|
|
120
|
-
order:
|
|
120
|
+
order: E.Asc
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
], u =
|
|
123
|
+
], u = j(() => {
|
|
124
124
|
let e = d.value.find((e) => e.id === i.value);
|
|
125
125
|
return e ? o(e.titleT) : "";
|
|
126
|
-
}), d =
|
|
126
|
+
}), d = j(() => n.customOptions ? n.customOptions : n.variant === "most-relevant" ? l : n.variant === "id" ? c : s), f = (e) => {
|
|
127
127
|
i.value = e.id;
|
|
128
128
|
}, p = (e) => {
|
|
129
|
-
e.sortBy
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
if (!e.sortBy) {
|
|
130
|
+
a.value = {
|
|
131
|
+
...a.value,
|
|
132
|
+
sortBy: null
|
|
133
|
+
}, r("sortByChange", e);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
a.value.sortBy = e.sortBy, r("sortByChange", e);
|
|
133
137
|
};
|
|
134
|
-
return
|
|
138
|
+
return G(i, (e, t) => {
|
|
135
139
|
if (e === t) return;
|
|
136
140
|
let r = d.value.find((t) => t.id === e);
|
|
137
141
|
if (!k(r)) {
|
|
@@ -141,32 +145,32 @@ var _n = /* @__PURE__ */ Et({
|
|
|
141
145
|
}
|
|
142
146
|
n.paginationUpdateCustomCb(r, a);
|
|
143
147
|
}
|
|
144
|
-
}),
|
|
148
|
+
}), G(a, (e, t) => {
|
|
145
149
|
if (e.sortBy?.key === t?.sortBy?.key && e.sortBy?.order === t?.sortBy?.order) return;
|
|
146
150
|
let n = d.value.find((t) => e.sortBy?.key === t.sortBy?.key && e.sortBy?.order === t.sortBy?.order);
|
|
147
151
|
k(n) || (i.value = n.id);
|
|
148
|
-
}, { immediate: !0 }), (e, t) => (
|
|
152
|
+
}, { immediate: !0 }), (e, t) => (B(), P("div", bn, [F("div", xn, U(W(o)("common.system.datatable.ordering.title")) + ":", 1), L(X, {
|
|
149
153
|
variant: "text",
|
|
150
154
|
rounded: "xl",
|
|
151
155
|
size: "small",
|
|
152
156
|
class: "text-medium-emphasis",
|
|
153
157
|
"append-icon": "mdi-chevron-down"
|
|
154
158
|
}, {
|
|
155
|
-
default:
|
|
159
|
+
default: K(() => [I(U(u.value) + " ", 1), L(fn, {
|
|
156
160
|
activator: "parent",
|
|
157
161
|
location: "bottom",
|
|
158
162
|
"close-on-content-click": ""
|
|
159
163
|
}, {
|
|
160
|
-
default:
|
|
164
|
+
default: K(() => [L(dn, {
|
|
161
165
|
density: "compact",
|
|
162
166
|
class: "pa-0"
|
|
163
167
|
}, {
|
|
164
|
-
default:
|
|
168
|
+
default: K(() => [(B(!0), P(A, null, Vt(d.value, (e) => (B(), M(Z, {
|
|
165
169
|
key: e.id,
|
|
166
170
|
onClick: (t) => f(e)
|
|
167
171
|
}, {
|
|
168
|
-
default:
|
|
169
|
-
default:
|
|
172
|
+
default: K(() => [L(Q, { class: z({ "font-weight-bold": e.id === i.value }) }, {
|
|
173
|
+
default: K(() => [I(U(W(o)(e.titleT)), 1)]),
|
|
170
174
|
_: 2
|
|
171
175
|
}, 1032, ["class"])]),
|
|
172
176
|
_: 2
|
|
@@ -178,10 +182,10 @@ var _n = /* @__PURE__ */ Et({
|
|
|
178
182
|
_: 1
|
|
179
183
|
})]));
|
|
180
184
|
}
|
|
181
|
-
}),
|
|
185
|
+
}), Cn = { class: "anzu-data-footer" }, wn = {
|
|
182
186
|
key: 0,
|
|
183
187
|
class: "anzu-data-footer__page-limit"
|
|
184
|
-
},
|
|
188
|
+
}, Tn = { class: "anzu-data-footer__pagination" }, En = { class: "anzu-data-footer__icons-before" }, Dn = { class: "current-page" }, On = { class: "anzu-data-footer__icons-after" }, kn = /* @__PURE__ */ kt({
|
|
185
189
|
__name: "ADatatablePagination",
|
|
186
190
|
props: {
|
|
187
191
|
itemsPerPageOptions: { default: () => [
|
|
@@ -196,207 +200,207 @@ var _n = /* @__PURE__ */ Et({
|
|
|
196
200
|
},
|
|
197
201
|
emits: ["change"],
|
|
198
202
|
setup(e, { emit: t }) {
|
|
199
|
-
let n = t, r =
|
|
203
|
+
let n = t, r = Mt(ue);
|
|
200
204
|
if (k(r)) throw Error("Incorrect provide/inject config.");
|
|
201
|
-
let { t:
|
|
202
|
-
|
|
205
|
+
let { t: a } = Zt(), { setStoredPage: o } = Ge(), c = Mt(wt, void 0), l = Mt(s, void 0), u = j(() => c ?? i(l?.general.system, l?.general.subject)), d = j(() => Math.ceil(r.value.totalCount / r.value.rowsPerPage)), f = j(() => r.value.page * r.value.rowsPerPage - r.value.rowsPerPage + 1), p = j(() => r.value.page * r.value.rowsPerPage - r.value.rowsPerPage + r.value.currentViewCount), m = j(() => r.value.page === 1), h = j(() => !nt(r.value.hasNextPage) || r.value.page === d.value), g = j(() => nt(r.value.hasNextPage) && r.value.page === d.value || r.value.hasNextPage === !1), _ = j(() => nt(r.value.hasNextPage) ? r.value.totalCount : r.value.hasNextPage ? p.value + 1 + "+" : p.value);
|
|
206
|
+
G(() => r.value.rowsPerPage, (e, t) => {
|
|
203
207
|
e !== t && (r.value.page = 1, n("change"));
|
|
204
|
-
}),
|
|
205
|
-
e !== t && (
|
|
208
|
+
}), G(() => r.value.page, (e, t) => {
|
|
209
|
+
e !== t && (o(u.value, e), n("change"));
|
|
206
210
|
});
|
|
207
|
-
let
|
|
211
|
+
let v = sn(() => {
|
|
208
212
|
r.value.page = 1;
|
|
209
|
-
}, 300),
|
|
210
|
-
r.value.page =
|
|
211
|
-
}, 300),
|
|
213
|
+
}, 300), y = sn(() => {
|
|
214
|
+
r.value.page = d.value;
|
|
215
|
+
}, 300), b = sn(() => {
|
|
212
216
|
r.value.page = r.value.page - 1;
|
|
213
|
-
}, 300),
|
|
217
|
+
}, 300), ee = sn(() => {
|
|
214
218
|
r.value.page = r.value.page + 1;
|
|
215
219
|
}, 300);
|
|
216
|
-
return (t, n) => (
|
|
217
|
-
e.hideRecordsPerPage ?
|
|
218
|
-
modelValue:
|
|
219
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
220
|
+
return (t, n) => (B(), P("div", Cn, [
|
|
221
|
+
e.hideRecordsPerPage ? N("", !0) : (B(), P("div", wn, [I(U(W(a)("common.system.datatable.itemsPerPage")) + ": ", 1), L(un, {
|
|
222
|
+
modelValue: W(r).rowsPerPage,
|
|
223
|
+
"onUpdate:modelValue": n[0] ||= (e) => W(r).rowsPerPage = e,
|
|
220
224
|
class: "ml-2",
|
|
221
225
|
density: "compact",
|
|
222
226
|
mandatory: "",
|
|
223
227
|
"data-cy": "table-size"
|
|
224
228
|
}, {
|
|
225
|
-
default:
|
|
229
|
+
default: K(() => [(B(!0), P(A, null, Vt(e.itemsPerPageOptions, (e) => (B(), M(X, {
|
|
226
230
|
key: e,
|
|
227
|
-
color: e ===
|
|
231
|
+
color: e === W(r).rowsPerPage ? "secondary" : "",
|
|
228
232
|
value: e,
|
|
229
233
|
density: "compact",
|
|
230
234
|
size: "small",
|
|
231
235
|
variant: "text"
|
|
232
236
|
}, {
|
|
233
|
-
default:
|
|
237
|
+
default: K(() => [I(U(e), 1)]),
|
|
234
238
|
_: 2
|
|
235
239
|
}, 1032, ["color", "value"]))), 128))]),
|
|
236
240
|
_: 1
|
|
237
241
|
}, 8, ["modelValue"])])),
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
disabled:
|
|
242
|
+
F("div", Tn, U(f.value) + " - " + U(p.value) + " " + U(W(a)("common.system.datatable.from")) + " " + U(_.value), 1),
|
|
243
|
+
F("div", En, [L(X, {
|
|
244
|
+
disabled: m.value,
|
|
241
245
|
icon: "mdi-page-first",
|
|
242
246
|
size: "small",
|
|
243
247
|
variant: "text",
|
|
244
|
-
onClick:
|
|
245
|
-
}, null, 8, ["disabled", "onClick"]),
|
|
246
|
-
disabled:
|
|
248
|
+
onClick: q(W(v), ["stop"])
|
|
249
|
+
}, null, 8, ["disabled", "onClick"]), L(X, {
|
|
250
|
+
disabled: m.value,
|
|
247
251
|
icon: "mdi-chevron-left",
|
|
248
252
|
size: "small",
|
|
249
253
|
variant: "text",
|
|
250
|
-
onClick:
|
|
254
|
+
onClick: q(W(b), ["stop"])
|
|
251
255
|
}, null, 8, ["disabled", "onClick"])]),
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
disabled:
|
|
256
|
+
F("div", Dn, [F("span", null, U(W(r).page), 1)]),
|
|
257
|
+
F("div", On, [L(X, {
|
|
258
|
+
disabled: g.value,
|
|
255
259
|
icon: "mdi-chevron-right",
|
|
256
260
|
size: "small",
|
|
257
261
|
variant: "text",
|
|
258
|
-
onClick:
|
|
259
|
-
}, null, 8, ["disabled", "onClick"]),
|
|
260
|
-
disabled:
|
|
262
|
+
onClick: q(W(ee), ["stop"])
|
|
263
|
+
}, null, 8, ["disabled", "onClick"]), L(X, {
|
|
264
|
+
disabled: h.value,
|
|
261
265
|
icon: "mdi-page-last",
|
|
262
266
|
size: "small",
|
|
263
267
|
variant: "text",
|
|
264
|
-
onClick:
|
|
268
|
+
onClick: q(W(y), ["stop"])
|
|
265
269
|
}, null, 8, ["disabled", "onClick"])])
|
|
266
270
|
]));
|
|
267
271
|
}
|
|
268
|
-
}),
|
|
269
|
-
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, queryAddFilter:
|
|
270
|
-
return r(
|
|
271
|
-
},
|
|
272
|
-
let { client:
|
|
272
|
+
}), An = (e, t, n = "id") => {
|
|
273
|
+
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, queryAddFilter: s, queryAdd: c } = Ve(), l = e.length;
|
|
274
|
+
return r(l), i(1, l), a(n, !1), t ? c(n, e.join(",")) : s("in", n, e.join(",")), o();
|
|
275
|
+
}, jn = (e) => {
|
|
276
|
+
let { client: n, system: i, entity: a, urlTemplate: o, urlParams: s, options: c = {}, isSearchApi: u = !1, field: d = "id", silentConsoleError: p = !1 } = e, m = /* @__PURE__ */ new Set();
|
|
273
277
|
return {
|
|
274
|
-
executeFetch: async (e,
|
|
278
|
+
executeFetch: async (e, h = {}) => {
|
|
275
279
|
let g = new AbortController();
|
|
276
|
-
|
|
277
|
-
let { urlTemplate: _, urlParams: v } =
|
|
280
|
+
m.add(g);
|
|
281
|
+
let { urlTemplate: _, urlParams: v } = h;
|
|
278
282
|
try {
|
|
279
|
-
let
|
|
280
|
-
if (k(
|
|
281
|
-
let
|
|
282
|
-
...
|
|
283
|
+
let r = t(v) ? v : s, i = t(_) ? _ : o;
|
|
284
|
+
if (k(i)) throw Error("Url template is undefined");
|
|
285
|
+
let a = (k(r) ? i : se(i, r)) + An(e, u, d), l = await n().get(a, {
|
|
286
|
+
...c,
|
|
283
287
|
signal: g.signal
|
|
284
288
|
});
|
|
285
|
-
if (!
|
|
289
|
+
if (!x(l.status)) throw new bt(l.status);
|
|
286
290
|
if (l.data?.data) return l.data.data;
|
|
287
291
|
if (l.status === 204) return [];
|
|
288
|
-
throw new
|
|
292
|
+
throw new w();
|
|
289
293
|
} catch (e) {
|
|
290
294
|
if (e instanceof DOMException && e.name === "AbortError") return [];
|
|
291
|
-
throw
|
|
295
|
+
throw fe(e) ? e : We(e) ? new r(e, e.config?.url) : l(e) ? new f(e, i, a, e) : Et(e) ? new _t(e, i, a, e) : le(e) ? new Ct(e, e) : Se(e) ? new Re(e) : mn.isAxiosError(e) ? (p || console.error("Axios error: " + o, ...e.cause ? [e.cause] : []), new Ze(e)) : (p || console.error("AnzuFatalError: ", e), new w(e));
|
|
292
296
|
} finally {
|
|
293
|
-
|
|
297
|
+
m.delete(g);
|
|
294
298
|
}
|
|
295
299
|
},
|
|
296
300
|
abortFetch: () => {
|
|
297
|
-
|
|
301
|
+
m.forEach((e) => e.abort()), m.clear();
|
|
298
302
|
}
|
|
299
303
|
};
|
|
300
|
-
},
|
|
301
|
-
let { client:
|
|
304
|
+
}, Mn = (e) => {
|
|
305
|
+
let { client: n, system: i, entity: a, urlTemplate: o, urlParams: s, options: c = {}, silentConsoleError: u = !1 } = e, d = /* @__PURE__ */ new Set();
|
|
302
306
|
return {
|
|
303
|
-
executeFetch: async (e,
|
|
304
|
-
let
|
|
305
|
-
|
|
306
|
-
let { urlTemplate: g, urlParams: _, sortBy: v = "id", sortDesc: y = !0, batchSize:
|
|
307
|
+
executeFetch: async (e, p, m = {}) => {
|
|
308
|
+
let h = new AbortController();
|
|
309
|
+
d.add(h);
|
|
310
|
+
let { urlTemplate: g, urlParams: _, sortBy: v = "id", sortDesc: y = !0, batchSize: b = 100, forceElastic: ee = !1 } = m;
|
|
307
311
|
try {
|
|
308
|
-
let
|
|
309
|
-
if (k(
|
|
310
|
-
let { pagination:
|
|
311
|
-
...
|
|
312
|
-
signal:
|
|
312
|
+
let r = p.general.elastic || ee ? "/search" : "", i = t(_) ? _ : s, a = t(g) ? g : o;
|
|
313
|
+
if (k(a)) throw Error("Url template is undefined");
|
|
314
|
+
let { pagination: l } = ht(v, y ? E.Desc : E.Asc, { rowsPerPage: b }), u = (k(i) ? a : se(a, i)) + r, d = [], f = await n().get(u + Me(l, e, p), {
|
|
315
|
+
...c,
|
|
316
|
+
signal: h.signal
|
|
313
317
|
});
|
|
314
|
-
if (!
|
|
318
|
+
if (!x(f.status)) throw new bt(f.status);
|
|
315
319
|
if (f.data) {
|
|
316
|
-
let
|
|
317
|
-
if (
|
|
318
|
-
|
|
319
|
-
let
|
|
320
|
-
...
|
|
321
|
-
signal:
|
|
320
|
+
let t = f.data;
|
|
321
|
+
if (d.push(...t.data), ot(t)) for (l.value.hasNextPage = t.hasNextPage; l.value.hasNextPage;) {
|
|
322
|
+
l.value.page++;
|
|
323
|
+
let t = (await n().get(u + Me(l, e, p), {
|
|
324
|
+
...c,
|
|
325
|
+
signal: h.signal
|
|
322
326
|
})).data;
|
|
323
|
-
|
|
327
|
+
d.push(...t.data), l.value.hasNextPage = t.hasNextPage;
|
|
324
328
|
}
|
|
325
|
-
else if (
|
|
326
|
-
if (
|
|
327
|
-
let r = [], i = Math.ceil(
|
|
328
|
-
for (let
|
|
329
|
+
else if (Qe(t)) {
|
|
330
|
+
if (l.value.totalCount = t.totalCount, l.value.totalCount <= l.value.rowsPerPage) return d;
|
|
331
|
+
let r = [], i = Math.ceil(l.value.totalCount / l.value.rowsPerPage);
|
|
332
|
+
for (let t = 1; t < i; t++) {
|
|
329
333
|
let i = {
|
|
330
|
-
...
|
|
331
|
-
page:
|
|
332
|
-
}, a =
|
|
333
|
-
r.push(
|
|
334
|
-
...
|
|
335
|
-
signal:
|
|
334
|
+
...l.value,
|
|
335
|
+
page: t + 1
|
|
336
|
+
}, a = V(i);
|
|
337
|
+
r.push(n().get(u + Me(a, e, p), {
|
|
338
|
+
...c,
|
|
339
|
+
signal: h.signal
|
|
336
340
|
}));
|
|
337
341
|
}
|
|
338
342
|
(await Promise.all(r)).forEach((e) => {
|
|
339
|
-
|
|
343
|
+
d.push(...e.data.data);
|
|
340
344
|
});
|
|
341
345
|
}
|
|
342
|
-
return
|
|
346
|
+
return d;
|
|
343
347
|
}
|
|
344
348
|
if (f.status === 204) return [];
|
|
345
|
-
throw new
|
|
349
|
+
throw new w();
|
|
346
350
|
} catch (e) {
|
|
347
351
|
if (e instanceof DOMException && e.name === "AbortError") return [];
|
|
348
|
-
throw
|
|
352
|
+
throw fe(e) ? e : We(e) ? new r(e, e.config?.url) : l(e) ? new f(e, i, a, e) : Et(e) ? new _t(e, i, a, e) : le(e) ? new Ct(e, e) : Se(e) ? new Re(e) : mn.isAxiosError(e) ? (u || console.error("Axios error: " + o, ...e.cause ? [e.cause] : []), new Ze(e)) : (u || console.error("AnzuFatalError: ", e), new w(e));
|
|
349
353
|
} finally {
|
|
350
|
-
|
|
354
|
+
d.delete(h);
|
|
351
355
|
}
|
|
352
356
|
},
|
|
353
357
|
abortFetch: () => {
|
|
354
|
-
|
|
358
|
+
d.forEach((e) => e.abort()), d.clear();
|
|
355
359
|
}
|
|
356
360
|
};
|
|
357
|
-
},
|
|
358
|
-
function
|
|
361
|
+
}, Nn = "/adm/v1/job";
|
|
362
|
+
function Pn(e, t) {
|
|
359
363
|
return {
|
|
360
|
-
useFetchJobList: () =>
|
|
364
|
+
useFetchJobList: () => Ie({
|
|
361
365
|
client: e,
|
|
362
366
|
system: t,
|
|
363
367
|
entity: "job",
|
|
364
|
-
urlTemplate:
|
|
368
|
+
urlTemplate: Nn
|
|
365
369
|
}),
|
|
366
|
-
fetchJob: (n) =>
|
|
370
|
+
fetchJob: (n) => v(e, Nn + "/:id", { id: n }, t, "job"),
|
|
367
371
|
createJob: (n) => {
|
|
368
|
-
let r =
|
|
369
|
-
return
|
|
372
|
+
let r = g(n._resourceName).slice(4).replace("-kind-", "-kind/");
|
|
373
|
+
return Ye(e, n, Nn + "/:type", { type: r }, t, "job");
|
|
370
374
|
},
|
|
371
|
-
deleteJob: (n) =>
|
|
375
|
+
deleteJob: (n) => _(e, Nn + "/:id", { id: n }, t, "job")
|
|
372
376
|
};
|
|
373
377
|
}
|
|
374
378
|
//#endregion
|
|
375
379
|
//#region src/labs/filters/datatableColumns.ts
|
|
376
|
-
var
|
|
380
|
+
var Fn = {
|
|
377
381
|
key: "",
|
|
378
382
|
title: void 0,
|
|
379
383
|
sortable: !1,
|
|
380
384
|
fixed: !1
|
|
381
|
-
},
|
|
385
|
+
}, In = {
|
|
382
386
|
storeColumnsLocalStorage: !0,
|
|
383
387
|
disableActions: !1,
|
|
384
388
|
customI18n: void 0,
|
|
385
389
|
showExpand: !1
|
|
386
390
|
};
|
|
387
|
-
function
|
|
391
|
+
function Ln(e, t, n, r, i = {}) {
|
|
388
392
|
let a = {
|
|
389
|
-
...
|
|
393
|
+
...In,
|
|
390
394
|
...i
|
|
391
|
-
}, o = a.customI18n ??
|
|
392
|
-
|
|
395
|
+
}, o = a.customI18n ?? Ne, { t: s } = o.global || o, c;
|
|
396
|
+
Je(a.storeColumnsLocalStorage) ? c = a.storeColumnsLocalStorage : ae(a.storeColumnsLocalStorage) && !0 === a.storeColumnsLocalStorage && (c = "table_" + n + "_" + r);
|
|
393
397
|
let l = e.map((e) => {
|
|
394
398
|
let t = {
|
|
395
|
-
...
|
|
399
|
+
...Fn,
|
|
396
400
|
...e
|
|
397
401
|
};
|
|
398
|
-
return k(t.title) && (t.title = k(t.title) &&
|
|
399
|
-
}), u =
|
|
402
|
+
return k(t.title) && (t.title = k(t.title) && h.includes(t.key) ? s("common.model.tracking." + t.key) : k(t.title) && n && r ? s(n + "." + r + ".model." + t.key) : ""), t;
|
|
403
|
+
}), u = j(() => {
|
|
400
404
|
let e = [];
|
|
401
405
|
return a.showExpand && e.push({
|
|
402
406
|
key: "data-table-expand",
|
|
@@ -412,14 +416,20 @@ function Fn(e, t, n, r, i = {}) {
|
|
|
412
416
|
if (!c || !localStorage) return;
|
|
413
417
|
let e = localStorage.getItem(c);
|
|
414
418
|
if (!e) return;
|
|
415
|
-
let n
|
|
416
|
-
|
|
419
|
+
let n;
|
|
420
|
+
try {
|
|
421
|
+
n = JSON.parse(e);
|
|
422
|
+
} catch {
|
|
423
|
+
localStorage.removeItem(c);
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
Oe(n) && be(n.hidden) && (t.value = n.hidden);
|
|
417
427
|
}, f = (e) => {
|
|
418
428
|
c && localStorage && localStorage.setItem(c, JSON.stringify({ hidden: e }));
|
|
419
429
|
};
|
|
420
|
-
return
|
|
430
|
+
return zt(() => {
|
|
421
431
|
d();
|
|
422
|
-
}),
|
|
432
|
+
}), G(t, (e) => {
|
|
423
433
|
f(e);
|
|
424
434
|
}), {
|
|
425
435
|
columnsAll: l,
|
|
@@ -429,24 +439,24 @@ function Fn(e, t, n, r, i = {}) {
|
|
|
429
439
|
}
|
|
430
440
|
//#endregion
|
|
431
441
|
//#region src/labs/subjectSelect/useSubjectSelect.ts
|
|
432
|
-
function
|
|
433
|
-
let u =
|
|
442
|
+
function Rn(e, t, n, r, i, a, o, s = null, c = void 0, l = !1) {
|
|
443
|
+
let u = V(!1), d = V([]), f = V([]), p = V(!1), { pagination: m, setSortBy: h, incrementPage: g } = ht(nt(s) ? null : s.key, s?.order), { resetFilter: _, submitFilter: v } = Ee(a, o, {
|
|
434
444
|
storeFiltersLocalStorage: !1,
|
|
435
445
|
populateUrlParams: !1
|
|
436
|
-
}), { showErrorsDefault:
|
|
446
|
+
}), { showErrorsDefault: y } = at(), { columnsVisible: b, columnsAll: ee, columnsHidden: x } = Ln(e, t, n, r, {
|
|
437
447
|
storeColumnsLocalStorage: !1,
|
|
438
448
|
disableActions: !l
|
|
439
|
-
}),
|
|
440
|
-
re(),
|
|
441
|
-
},
|
|
442
|
-
h(e.sortBy),
|
|
449
|
+
}), S = () => {
|
|
450
|
+
re(), C();
|
|
451
|
+
}, te = (e) => {
|
|
452
|
+
h(e.sortBy), C();
|
|
443
453
|
}, ne = async () => {
|
|
444
454
|
p.value = !0, g();
|
|
445
455
|
try {
|
|
446
456
|
let e = await i(m, a, o, c);
|
|
447
457
|
d.value.push(...e);
|
|
448
458
|
} catch (e) {
|
|
449
|
-
|
|
459
|
+
y(e);
|
|
450
460
|
} finally {
|
|
451
461
|
p.value = !1;
|
|
452
462
|
}
|
|
@@ -457,20 +467,20 @@ function In(e, t, n, r, i, a, o, s = null, c = void 0, l = !1) {
|
|
|
457
467
|
try {
|
|
458
468
|
d.value = await i(m, a, o, c);
|
|
459
469
|
} catch (e) {
|
|
460
|
-
|
|
470
|
+
y(e);
|
|
461
471
|
} finally {
|
|
462
472
|
p.value = !1;
|
|
463
473
|
}
|
|
464
|
-
},
|
|
474
|
+
}, C = on(async () => {
|
|
465
475
|
await ie();
|
|
466
476
|
});
|
|
467
477
|
return {
|
|
468
478
|
items: d,
|
|
469
479
|
selected: f,
|
|
470
480
|
pagination: m,
|
|
471
|
-
columnsVisible:
|
|
472
|
-
columnsHidden:
|
|
473
|
-
columnsAll:
|
|
481
|
+
columnsVisible: b,
|
|
482
|
+
columnsHidden: x,
|
|
483
|
+
columnsAll: ee,
|
|
474
484
|
filterTouched: u,
|
|
475
485
|
loading: p,
|
|
476
486
|
onRowClick: (e) => {
|
|
@@ -484,19 +494,19 @@ function In(e, t, n, r, i, a, o, s = null, c = void 0, l = !1) {
|
|
|
484
494
|
i && i.click();
|
|
485
495
|
},
|
|
486
496
|
onFetchNextPage: ne,
|
|
487
|
-
onOpen:
|
|
488
|
-
sortByChange:
|
|
489
|
-
getList:
|
|
490
|
-
resetFilter: () =>
|
|
491
|
-
submitFilter: () =>
|
|
497
|
+
onOpen: S,
|
|
498
|
+
sortByChange: te,
|
|
499
|
+
getList: C,
|
|
500
|
+
resetFilter: () => _(m, C),
|
|
501
|
+
submitFilter: () => v(m, C)
|
|
492
502
|
};
|
|
493
503
|
}
|
|
494
504
|
//#endregion
|
|
495
505
|
//#region src/labs/subjectSelect/ASubjectSelect.vue?vue&type=script&setup=true&lang.ts
|
|
496
|
-
var
|
|
506
|
+
var zn = { class: "d-flex flex-column w-100 px-1 align-center" }, Bn = { class: "d-flex justify-space-between w-100 align-center" }, Vn = { class: "d-flex align-center" }, Hn = { class: "d-flex align-center" }, Un = { class: "subject-select__sidebar system-border-r" }, Wn = { class: "subject-select-filter" }, Gn = { class: "subject-select__content" }, Kn = {
|
|
497
507
|
key: 0,
|
|
498
508
|
class: "d-flex w-100 align-center justify-center pa-4"
|
|
499
|
-
},
|
|
509
|
+
}, qn = { class: "subject-select__actions system-border-t" }, Jn = { key: 0 }, Yn = { key: 1 }, Xn = /* @__PURE__ */ kt({
|
|
500
510
|
__name: "ASubjectSelect",
|
|
501
511
|
props: {
|
|
502
512
|
selectedItems: {},
|
|
@@ -527,170 +537,170 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
527
537
|
"onFetchNextPage"
|
|
528
538
|
],
|
|
529
539
|
setup(e, { expose: t, emit: n }) {
|
|
530
|
-
let
|
|
540
|
+
let r = e, i = n, a = V(!1), o = j({
|
|
531
541
|
get() {
|
|
532
|
-
return k(
|
|
542
|
+
return k(r.modelValue) ? a.value : r.modelValue;
|
|
533
543
|
},
|
|
534
544
|
set(e) {
|
|
535
|
-
|
|
545
|
+
a.value = e, i("update:modelValue", e);
|
|
536
546
|
}
|
|
537
|
-
}),
|
|
538
|
-
get: () =>
|
|
547
|
+
}), s = j({
|
|
548
|
+
get: () => r.pagination,
|
|
539
549
|
set: (e) => {
|
|
540
|
-
|
|
550
|
+
i("update:pagination", { ...Wt(e) });
|
|
541
551
|
}
|
|
542
|
-
}), { mdAndDown:
|
|
543
|
-
|
|
552
|
+
}), { mdAndDown: c } = ln(), l = V(!c.value), u = () => {
|
|
553
|
+
c.value && (l.value = !1);
|
|
544
554
|
};
|
|
545
|
-
|
|
546
|
-
let { t:
|
|
547
|
-
|
|
555
|
+
Bt(O, u);
|
|
556
|
+
let { t: d } = Zt(), f = j(() => r.selectedItems.length), p = j(() => f.value < r.minCount || f.value > r.maxCount), m = () => {
|
|
557
|
+
i("onOpen"), l.value = !c.value, o.value = !0;
|
|
558
|
+
}, h = () => {
|
|
559
|
+
l.value = !l.value;
|
|
548
560
|
}, g = () => {
|
|
549
|
-
|
|
550
|
-
}, ee = () => {
|
|
551
|
-
s.value = !1;
|
|
561
|
+
o.value = !1;
|
|
552
562
|
}, _ = () => {
|
|
553
|
-
|
|
563
|
+
i("onConfirm", r.selectedItems.map((e) => Wt(e))), g();
|
|
554
564
|
}, v = () => {
|
|
555
|
-
|
|
565
|
+
i("onFetchNextPage");
|
|
556
566
|
}, y = () => {
|
|
557
|
-
|
|
558
|
-
}, b =
|
|
559
|
-
e &&
|
|
567
|
+
i("onPageChange");
|
|
568
|
+
}, b = j(() => Math.ceil(s.value.totalCount / s.value.rowsPerPage)), ee = j(() => !(nt(s.value.hasNextPage) && s.value.page === b.value || s.value.hasNextPage === !1)), x = (e) => {
|
|
569
|
+
e && ee.value && !r.loading && v();
|
|
560
570
|
};
|
|
561
|
-
return
|
|
562
|
-
|
|
571
|
+
return zt(() => {
|
|
572
|
+
r.autoOpen && m();
|
|
563
573
|
}), t({
|
|
564
|
-
open:
|
|
565
|
-
closeSidebarOnMobile:
|
|
574
|
+
open: m,
|
|
575
|
+
closeSidebarOnMobile: u
|
|
566
576
|
}), (t, n) => {
|
|
567
|
-
let
|
|
568
|
-
return
|
|
569
|
-
"model-value":
|
|
577
|
+
let r = Ht("ABtnSecondary"), a = Ht("ABtnPrimary");
|
|
578
|
+
return B(), P(A, null, [H(t.$slots, "activator", { props: { onClick: q(() => m(), ["stop"]) } }), L(hn, R(t.$attrs, {
|
|
579
|
+
"model-value": o.value,
|
|
570
580
|
fullscreen: "",
|
|
571
581
|
class: "subject-select",
|
|
572
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
582
|
+
"onUpdate:modelValue": n[1] ||= (e) => i("update:modelValue", e)
|
|
573
583
|
}), {
|
|
574
|
-
default:
|
|
584
|
+
default: K(() => [o.value ? (B(), M(tn, {
|
|
575
585
|
key: 0,
|
|
576
586
|
class: "subject-select__card"
|
|
577
587
|
}, {
|
|
578
|
-
default:
|
|
579
|
-
|
|
588
|
+
default: K(() => [
|
|
589
|
+
L(T, {
|
|
580
590
|
class: "subject-select__toolbar system-border-b",
|
|
581
|
-
onOnCancel:
|
|
591
|
+
onOnCancel: g
|
|
582
592
|
}, {
|
|
583
|
-
default:
|
|
593
|
+
default: K(() => [H(t.$slots, "title", {}, () => [I(U(W(d)(e.dialogTitleT)), 1)])]),
|
|
584
594
|
_: 3
|
|
585
595
|
}),
|
|
586
|
-
|
|
596
|
+
L(pn, {
|
|
587
597
|
density: "compact",
|
|
588
598
|
color: "transparent",
|
|
589
599
|
height: 46,
|
|
590
600
|
elevation: "0",
|
|
591
601
|
class: "system-border-b subject-select__second-bar"
|
|
592
602
|
}, {
|
|
593
|
-
default:
|
|
603
|
+
default: K(() => [H(t.$slots, "second-bar", {}, () => [F("div", zn, [F("div", Bn, [F("div", Vn, [L(X, {
|
|
594
604
|
icon: "",
|
|
595
605
|
width: 30,
|
|
596
606
|
height: 30,
|
|
597
|
-
onClick:
|
|
607
|
+
onClick: h
|
|
598
608
|
}, {
|
|
599
|
-
default:
|
|
609
|
+
default: K(() => [L(J, {
|
|
600
610
|
icon: "mdi-tune",
|
|
601
611
|
size: 16
|
|
602
|
-
}),
|
|
612
|
+
}), L(Y, {
|
|
603
613
|
activator: "parent",
|
|
604
614
|
location: "bottom"
|
|
605
615
|
}, {
|
|
606
|
-
default:
|
|
616
|
+
default: K(() => [I(U(W(d)("common.subjectSelect.filter.toggle")), 1)]),
|
|
607
617
|
_: 1
|
|
608
618
|
})]),
|
|
609
619
|
_: 1
|
|
610
|
-
}),
|
|
620
|
+
}), H(t.$slots, "second-bar-left")]), F("div", Hn, [H(t.$slots, "second-bar-right")])])])])]),
|
|
611
621
|
_: 3
|
|
612
622
|
}),
|
|
613
|
-
|
|
623
|
+
F("div", { class: z(["subject-select__main", { "subject-select__main--sidebar-active": l.value }]) }, [F("div", Un, [F("div", Wn, [H(t.$slots, "filter")])]), F("div", Gn, [H(t.$slots, "content"), e.paginationMode === "more" ? (B(), P("div", Kn, [Yt((B(), M(r, {
|
|
614
624
|
loading: e.loading,
|
|
615
625
|
size: "small",
|
|
616
626
|
onClick: v
|
|
617
627
|
}, {
|
|
618
|
-
default:
|
|
628
|
+
default: K(() => [H(t.$slots, "button-confirm-title", {}, () => [I(U(W(d)("common.button.loadMore")), 1)])]),
|
|
619
629
|
_: 3
|
|
620
|
-
}, 8, ["loading"])), [[
|
|
621
|
-
|
|
630
|
+
}, 8, ["loading"])), [[Jt, ee.value || e.loading], [
|
|
631
|
+
cn,
|
|
622
632
|
x,
|
|
623
633
|
void 0,
|
|
624
634
|
{ quiet: !0 }
|
|
625
|
-
]])])) : (
|
|
635
|
+
]])])) : (B(), M(kn, {
|
|
626
636
|
key: 1,
|
|
627
|
-
modelValue:
|
|
628
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
637
|
+
modelValue: s.value,
|
|
638
|
+
"onUpdate:modelValue": n[0] ||= (e) => s.value = e,
|
|
629
639
|
onChange: y
|
|
630
640
|
}, null, 8, ["modelValue"]))])], 2),
|
|
631
|
-
|
|
632
|
-
e.minCount === e.maxCount ? (
|
|
641
|
+
F("div", qn, [
|
|
642
|
+
e.minCount === e.maxCount ? (B(), P("div", Jn, U(W(d)("common.subjectSelect.texts.pickExactCount", {
|
|
633
643
|
count: e.minCount,
|
|
634
|
-
selected:
|
|
635
|
-
})), 1)) : (
|
|
644
|
+
selected: f.value
|
|
645
|
+
})), 1)) : (B(), P("div", Yn, U(W(d)("common.subjectSelect.texts.pickRangeCount", {
|
|
636
646
|
minCount: e.minCount,
|
|
637
647
|
maxCount: e.maxCount,
|
|
638
|
-
selected:
|
|
648
|
+
selected: f.value
|
|
639
649
|
})), 1)),
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
disabled:
|
|
643
|
-
onClick:
|
|
650
|
+
L(Qt),
|
|
651
|
+
L(a, {
|
|
652
|
+
disabled: p.value,
|
|
653
|
+
onClick: q(_, ["stop"])
|
|
644
654
|
}, {
|
|
645
|
-
default:
|
|
655
|
+
default: K(() => [H(t.$slots, "button-confirm-title", {}, () => [I(U(W(d)("common.button.confirm")), 1)])]),
|
|
646
656
|
_: 3
|
|
647
657
|
}, 8, ["disabled"])
|
|
648
658
|
])
|
|
649
659
|
]),
|
|
650
660
|
_: 3
|
|
651
|
-
})) :
|
|
661
|
+
})) : N("", !0)]),
|
|
652
662
|
_: 3
|
|
653
663
|
}, 16, ["model-value"])], 64);
|
|
654
664
|
};
|
|
655
665
|
}
|
|
656
|
-
}),
|
|
666
|
+
}), Zn = {
|
|
657
667
|
key: 0,
|
|
658
668
|
class: "a-le-header"
|
|
659
|
-
},
|
|
669
|
+
}, Qn = {
|
|
660
670
|
key: 0,
|
|
661
671
|
class: "a-le-title-heading"
|
|
662
|
-
},
|
|
672
|
+
}, $n = ["data-unsaved-count"], er = {
|
|
663
673
|
key: 1,
|
|
664
674
|
class: "a-le-state a-le-state--loading"
|
|
665
|
-
},
|
|
675
|
+
}, tr = {
|
|
666
676
|
key: 2,
|
|
667
677
|
class: "a-le-state a-le-state--error"
|
|
668
|
-
},
|
|
678
|
+
}, nr = {
|
|
669
679
|
key: 3,
|
|
670
680
|
class: "a-le-state a-le-state--empty"
|
|
671
|
-
},
|
|
681
|
+
}, rr = [
|
|
672
682
|
"data-id",
|
|
673
683
|
"tabindex",
|
|
674
684
|
"onKeydown"
|
|
675
|
-
],
|
|
685
|
+
], ir = ["onClick"], ar = { class: "a-le-row-main" }, or = { class: "a-le-title" }, sr = {
|
|
676
686
|
key: 0,
|
|
677
687
|
class: "a-le-status"
|
|
678
|
-
},
|
|
688
|
+
}, cr = {
|
|
679
689
|
key: 0,
|
|
680
690
|
class: "a-le-status-badge"
|
|
681
|
-
},
|
|
691
|
+
}, lr = { class: "a-le-actions" }, ur = { class: "a-le-row-body" }, dr = { class: "a-le-form" }, fr = {
|
|
682
692
|
key: 0,
|
|
683
693
|
class: "a-le-row-footer"
|
|
684
|
-
},
|
|
694
|
+
}, pr = {
|
|
685
695
|
key: 1,
|
|
686
696
|
class: "a-le-row-body"
|
|
687
|
-
},
|
|
697
|
+
}, mr = { class: "a-le-form" }, hr = {
|
|
688
698
|
class: "a-le-sr-only",
|
|
689
699
|
"aria-live": "polite",
|
|
690
700
|
role: "status"
|
|
691
|
-
},
|
|
701
|
+
}, gr = /* @__PURE__ */ kt({
|
|
692
702
|
__name: "AListEditor",
|
|
693
|
-
props: /*@__PURE__*/
|
|
703
|
+
props: /*@__PURE__*/ Pt({
|
|
694
704
|
factory: {
|
|
695
705
|
type: Function,
|
|
696
706
|
default: void 0
|
|
@@ -800,7 +810,7 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
800
810
|
modelValue: { required: !0 },
|
|
801
811
|
modelModifiers: {}
|
|
802
812
|
}),
|
|
803
|
-
emits: /*@__PURE__*/
|
|
813
|
+
emits: /*@__PURE__*/ Pt([
|
|
804
814
|
"edit",
|
|
805
815
|
"deleted",
|
|
806
816
|
"close",
|
|
@@ -808,23 +818,23 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
808
818
|
"item-expand"
|
|
809
819
|
], ["update:modelValue"]),
|
|
810
820
|
setup(e, { expose: t, emit: n }) {
|
|
811
|
-
let r = e, i = n,
|
|
812
|
-
get: () =>
|
|
813
|
-
set: (e) =>
|
|
821
|
+
let r = e, i = n, a = Gt(e, "modelValue"), { t: s } = Zt(), c = Kt(), l = ln(), u = qt("rootEl"), d = j(() => l.platform.value.touch), f = {
|
|
822
|
+
get: () => a.value,
|
|
823
|
+
set: (e) => a.value = e,
|
|
814
824
|
factory: r.factory,
|
|
815
825
|
getKey: r.getKey,
|
|
816
826
|
position: r.position,
|
|
817
827
|
dirtyExclude: () => r.dirtyExclude ?? [],
|
|
818
828
|
validate: r.validate
|
|
819
|
-
}, p = r.editor ? null :
|
|
829
|
+
}, p = r.editor ? null : yt(r.stateKey, f), m = r.editor ?? p?.handle ?? ne(f), h = r.getKey ?? "id", g = o(p?.childScope ?? null), _ = (e) => typeof h == "function" ? h(e) : e[h], v = j(() => typeof h == "function" ? "(fn)" : h), y = j(() => {
|
|
820
830
|
let e = r.position;
|
|
821
831
|
return e === void 0 || e === !1 ? "position" : typeof e == "object" ? e.field : e;
|
|
822
|
-
}),
|
|
823
|
-
key:
|
|
832
|
+
}), b = j(() => a.value.map((e, t) => ({
|
|
833
|
+
key: _(e),
|
|
824
834
|
index: t,
|
|
825
835
|
raw: e,
|
|
826
|
-
position: e[
|
|
827
|
-
}))),
|
|
836
|
+
position: e[y.value]
|
|
837
|
+
}))), ee = /* @__PURE__ */ new Set(), x = (e) => {
|
|
828
838
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = 0;
|
|
829
839
|
for (let i of e) {
|
|
830
840
|
if (i.key === void 0 || i.key === null) {
|
|
@@ -835,27 +845,27 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
835
845
|
}
|
|
836
846
|
if (r === 0 && n.size === 0) return;
|
|
837
847
|
let i = `${r}|${[...n].sort().join(",")}`;
|
|
838
|
-
|
|
848
|
+
ee.has(i) || (ee.add(i), r > 0 && console.warn(`[list-editor] ${r} row(s) resolve to an undefined key (key-field "${v.value}"). Point get-key at a field every item has, or give new items unique temp ids (see nextListEditorTempId).`), n.size > 0 && console.warn(`[list-editor] duplicate row keys (key-field "${v.value}"): ${[...n].join(", ")}. Row keys must be unique — dirty tracking and validation rails target rows by key.`));
|
|
839
849
|
};
|
|
840
|
-
|
|
841
|
-
let
|
|
842
|
-
rowsContainer:
|
|
850
|
+
G(b, (e) => x(e), { immediate: !0 }), G(() => b.value.map((e) => String(e.key)).join("|"), () => g.retainOwners(b.value.map((e) => e.key)), { flush: "post" });
|
|
851
|
+
let S = V(/* @__PURE__ */ new Set()), re = qt("rowsContainer"), ie = j(() => !r.chips && !!c.item), C = j(() => !r.chips && !!c["item-readonly"]), { editingKeys: ae, editingSnapshots: oe, beginEdit: se, cancelEdit: ce, commitEdit: le, closeEdit: ue, requestAutoOpen: de } = Le({
|
|
852
|
+
rowsContainer: re,
|
|
843
853
|
rowSelector: ".a-le-row",
|
|
844
|
-
isInlineEdit:
|
|
854
|
+
isInlineEdit: ie,
|
|
845
855
|
restoreSnapshot: (e, t) => m.updateItem(e, t),
|
|
846
|
-
watchKeys: () =>
|
|
856
|
+
watchKeys: () => a.value.map((e) => _(e)),
|
|
847
857
|
findEntry: (e) => {
|
|
848
|
-
let t =
|
|
858
|
+
let t = a.value.find((t) => _(t) === e);
|
|
849
859
|
return t ? { data: t } : null;
|
|
850
860
|
},
|
|
851
861
|
afterAutoOpen: (e) => {
|
|
852
|
-
|
|
862
|
+
S.value.delete(e);
|
|
853
863
|
}
|
|
854
|
-
}), fe =
|
|
864
|
+
}), fe = j(() => r.addLabel ? s(r.addLabel) : s("common.sortable.add")), pe = j(() => r.emptyTitle ?? s("common.sortable.emptyTitle")), me = j(() => r.deleteConfirmTitle ?? s("common.sortable.deleteConfirmTitle")), w = j(() => r.deleteConfirmText ?? (r.deleteMode === "immediate" ? s("common.sortable.deleteConfirmText") : s("common.sortable.deleteConfirmTextDeferred"))), T = j(() => !r.readonly && !r.disabled && !r.loading), he = j(() => T.value && r.showAddButton), ge = m.unsavedCount, E = j(() => !r.readonly && !r.disableUnsaved && ge.value > 0), _e = j(() => !!(r.title || c.header) || E.value), ve = j(() => !!r.onItemSave), ye = /* @__PURE__ */ new Map(), be = j(() => {
|
|
855
865
|
let e = [], t = /* @__PURE__ */ new Set();
|
|
856
|
-
for (let n of
|
|
866
|
+
for (let n of b.value) {
|
|
857
867
|
t.add(n.key);
|
|
858
|
-
let i =
|
|
868
|
+
let i = ae.value.has(n.key), a = S.value.has(n.key), o = r.loadingKeys?.has(n.key) ?? !1, s = r.disableUnsaved || r.readonly ? !1 : m.isUnsaved(n.key), c = s, l = m.rowState(n.raw, n.key, i), u = ye.get(n.key);
|
|
859
869
|
if (u && u.raw === n.raw && u.index === n.index && u.position === n.position && u.editing === i && u.expanded === a && u.loading === o && u.dirty === c && u.unsaved === s && u.validationState === l) {
|
|
860
870
|
e.push(u);
|
|
861
871
|
continue;
|
|
@@ -873,12 +883,12 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
873
883
|
}
|
|
874
884
|
for (let e of ye.keys()) t.has(e) || ye.delete(e);
|
|
875
885
|
return e;
|
|
876
|
-
}), Se =
|
|
877
|
-
viewItems:
|
|
886
|
+
}), Se = j(() => be.value.length === 0), Ce = (e) => be.value.find((t) => t.key === e), we = te({
|
|
887
|
+
viewItems: j(() => be.value.map((e) => ({ key: e.key }))),
|
|
878
888
|
variant: "flat",
|
|
879
|
-
isReorderMode:
|
|
880
|
-
disabled:
|
|
881
|
-
isEditing: (e) =>
|
|
889
|
+
isReorderMode: V(!1),
|
|
890
|
+
disabled: j(() => !T.value),
|
|
891
|
+
isEditing: (e) => ae.value.has(e),
|
|
882
892
|
onToggleEdit: (e) => {
|
|
883
893
|
let t = Ce(e);
|
|
884
894
|
t && ke(t);
|
|
@@ -888,24 +898,24 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
888
898
|
t && We(t);
|
|
889
899
|
}
|
|
890
900
|
}), Ee = (e) => Te(e, { compactField: r.compactField }), De = () => {
|
|
891
|
-
|
|
901
|
+
he.value && (de(), m.addItem(void 0, void 0));
|
|
892
902
|
}, Oe = (e) => {
|
|
893
|
-
|
|
903
|
+
T.value && (de(), m.addItem(void 0, { afterId: e.key }));
|
|
894
904
|
}, ke = (e) => {
|
|
895
|
-
if (
|
|
896
|
-
if (
|
|
905
|
+
if (T.value) {
|
|
906
|
+
if (ae.value.has(e.key)) {
|
|
897
907
|
We(e);
|
|
898
908
|
return;
|
|
899
909
|
}
|
|
900
|
-
|
|
910
|
+
ie.value && (se(e), S.value.delete(e.key)), i("edit", e);
|
|
901
911
|
}
|
|
902
912
|
}, je = (e) => {
|
|
903
913
|
if (r.disabled || r.loading) return;
|
|
904
|
-
let t = e.key, n =
|
|
905
|
-
if (n)
|
|
914
|
+
let t = e.key, n = S.value.has(t);
|
|
915
|
+
if (n) S.value.delete(t);
|
|
906
916
|
else {
|
|
907
|
-
for (let e of
|
|
908
|
-
|
|
917
|
+
for (let e of S.value) S.value.delete(e);
|
|
918
|
+
S.value.add(t);
|
|
909
919
|
}
|
|
910
920
|
i("item-expand", e, !n);
|
|
911
921
|
}, Me = (e) => r.chips || r.disableRowClick || r.defaultExpanded || r.disabled || r.loading ? !1 : !!(e.editing || e.expanded || !r.readonly && r.showEditButton), Ne = (e) => {
|
|
@@ -914,24 +924,24 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
914
924
|
We(e);
|
|
915
925
|
return;
|
|
916
926
|
}
|
|
917
|
-
r.readonly &&
|
|
927
|
+
r.readonly && C.value ? je(e) : ke(e);
|
|
918
928
|
}
|
|
919
|
-
}, { deleteDialog: Pe, deleteInFlight: Fe, deleteError:
|
|
929
|
+
}, { deleteDialog: Pe, deleteInFlight: Fe, deleteError: Ie, onDeleteClick: Re, onDeleteDialogConfirm: ze, onDeleteDialogCancel: Ve } = xe({
|
|
920
930
|
onDeleteConfirm: (e) => !r.onDeleteConfirm || r.onDeleteConfirm(e),
|
|
921
931
|
onDelete: (e) => r.onDelete?.(e),
|
|
922
932
|
onDeleted: (e) => {
|
|
923
|
-
|
|
933
|
+
ae.value.delete(e.key), oe.value.delete(e.key), S.value.delete(e.key), m.deleteItem(e.key, { trackDeleted: r.deleteMode === "deferred" }), i("deleted", e);
|
|
924
934
|
},
|
|
925
935
|
disableDeleteConfirm: () => r.disableDeleteConfirm || r.chips
|
|
926
936
|
}), He = async (e) => {
|
|
927
|
-
|
|
937
|
+
T.value && await Re(e);
|
|
928
938
|
}, D = async (e) => {
|
|
929
939
|
r.onItemSave && await r.onItemSave(e.raw), le(e), i("item-saved", e);
|
|
930
940
|
}, Ue = (e) => {
|
|
931
941
|
ce(e);
|
|
932
942
|
}, We = (e) => {
|
|
933
|
-
ue(e),
|
|
934
|
-
}, Ge = /* @__PURE__ */ new Map(),
|
|
943
|
+
ue(e), S.value.delete(e.key), i("close", e);
|
|
944
|
+
}, Ge = /* @__PURE__ */ new Map(), Ke = (e) => {
|
|
935
945
|
let t = Ge.get(e);
|
|
936
946
|
return t || (t = {
|
|
937
947
|
edit: () => {
|
|
@@ -965,7 +975,7 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
965
975
|
update: (t) => m.updateItem(e, t)
|
|
966
976
|
}, Ge.set(e, t)), t;
|
|
967
977
|
};
|
|
968
|
-
|
|
978
|
+
G(() => be.value, (e) => {
|
|
969
979
|
if (Ge.size === 0) return;
|
|
970
980
|
let t = new Set(e.map((e) => e.key));
|
|
971
981
|
for (let e of Ge.keys()) t.has(e) || Ge.delete(e);
|
|
@@ -983,79 +993,79 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
983
993
|
unsaved: e.unsaved,
|
|
984
994
|
touch: d.value,
|
|
985
995
|
stateKeyPrefix: g.prefixFor(e.key),
|
|
986
|
-
actions:
|
|
996
|
+
actions: Ke(e.key)
|
|
987
997
|
});
|
|
988
|
-
|
|
998
|
+
Tt(() => r.unsavedSectionLabel && !r.disableUnsaved ? {
|
|
989
999
|
label: r.unsavedSectionLabel,
|
|
990
1000
|
dirty: m.hasUnsaved.value
|
|
991
1001
|
} : []);
|
|
992
|
-
let
|
|
993
|
-
let t =
|
|
1002
|
+
let Je = () => Be(m, (e) => {
|
|
1003
|
+
let t = b.value.find((t) => t.key === e);
|
|
994
1004
|
t && se(t);
|
|
995
1005
|
});
|
|
996
|
-
return
|
|
1006
|
+
return Xe({
|
|
997
1007
|
hasErrors: m.hasErrors,
|
|
998
1008
|
validationScope: r.validationScope,
|
|
999
1009
|
validateProvided: r.validate !== void 0,
|
|
1000
|
-
reveal:
|
|
1010
|
+
reveal: Je
|
|
1001
1011
|
}), t({
|
|
1002
1012
|
...m,
|
|
1003
|
-
validateAll:
|
|
1004
|
-
}), (t, n) => (
|
|
1013
|
+
validateAll: Je
|
|
1014
|
+
}), (t, n) => (B(), P("div", {
|
|
1005
1015
|
ref_key: "rootEl",
|
|
1006
1016
|
ref: u,
|
|
1007
|
-
class:
|
|
1017
|
+
class: z(["a-list-editor", [`a-list-editor--two-rows-${e.twoRows}`, {
|
|
1008
1018
|
"a-list-editor--readonly": e.readonly,
|
|
1009
1019
|
"a-list-editor--disabled": e.disabled,
|
|
1010
1020
|
"a-list-editor--touch": d.value,
|
|
1011
1021
|
"a-list-editor--chips": e.chips
|
|
1012
1022
|
}]])
|
|
1013
1023
|
}, [
|
|
1014
|
-
|
|
1024
|
+
F("div", {
|
|
1015
1025
|
ref_key: "rowsContainer",
|
|
1016
|
-
ref:
|
|
1026
|
+
ref: re,
|
|
1017
1027
|
class: "a-le-card"
|
|
1018
1028
|
}, [
|
|
1019
|
-
|
|
1029
|
+
_e.value ? (B(), P("div", Zn, [H(t.$slots, "header", { title: e.title }, () => [e.title ? (B(), P("h3", Qn, U(e.title), 1)) : N("", !0)]), E.value ? (B(), P("span", {
|
|
1020
1030
|
key: 0,
|
|
1021
1031
|
class: "a-le-unsaved-count",
|
|
1022
|
-
"data-unsaved-count":
|
|
1023
|
-
}, W(
|
|
1024
|
-
e.loading ? (
|
|
1032
|
+
"data-unsaved-count": W(ge)
|
|
1033
|
+
}, U(W(s)("common.sortable.pendingChanges", { count: W(ge) })), 9, $n)) : N("", !0)])) : N("", !0),
|
|
1034
|
+
e.loading ? (B(), P("div", er, [L(en, {
|
|
1025
1035
|
indeterminate: "",
|
|
1026
1036
|
color: "primary",
|
|
1027
1037
|
size: "32"
|
|
1028
|
-
})])) : e.error ? (
|
|
1038
|
+
})])) : e.error ? (B(), P("div", tr, [L($t, {
|
|
1029
1039
|
type: "error",
|
|
1030
1040
|
variant: "tonal",
|
|
1031
1041
|
density: "compact",
|
|
1032
1042
|
border: "start"
|
|
1033
1043
|
}, {
|
|
1034
|
-
default:
|
|
1044
|
+
default: K(() => [I(U(e.error), 1)]),
|
|
1035
1045
|
_: 1
|
|
1036
|
-
})])) : Se.value ? (
|
|
1046
|
+
})])) : Se.value ? (B(), P("div", nr, [H(t.$slots, "empty", {
|
|
1037
1047
|
readonly: e.readonly,
|
|
1038
1048
|
disabled: e.disabled,
|
|
1039
1049
|
actions: { add: De }
|
|
1040
|
-
}, () => [
|
|
1050
|
+
}, () => [L(qe, {
|
|
1041
1051
|
title: pe.value,
|
|
1042
1052
|
"add-label": fe.value,
|
|
1043
|
-
"can-add":
|
|
1053
|
+
"can-add": he.value,
|
|
1044
1054
|
onAdd: De
|
|
1045
1055
|
}, null, 8, [
|
|
1046
1056
|
"title",
|
|
1047
1057
|
"add-label",
|
|
1048
1058
|
"can-add"
|
|
1049
|
-
])])])) : (
|
|
1059
|
+
])])])) : (B(!0), P(A, { key: 4 }, Vt(be.value, (r) => (B(), P("div", {
|
|
1050
1060
|
key: String(r.key),
|
|
1051
1061
|
class: "a-le-row-wrapper"
|
|
1052
1062
|
}, [
|
|
1053
|
-
|
|
1054
|
-
|
|
1063
|
+
H(t.$slots, "before-item", R({ ref_for: !0 }, O(r))),
|
|
1064
|
+
F("div", {
|
|
1055
1065
|
"data-id": String(r.key),
|
|
1056
1066
|
role: "listitem",
|
|
1057
|
-
tabindex:
|
|
1058
|
-
class:
|
|
1067
|
+
tabindex: W(we).rowTabindex(r.key),
|
|
1068
|
+
class: z(["a-le-row", {
|
|
1059
1069
|
"a-le-row--two-rows": e.twoRows === "always",
|
|
1060
1070
|
"a-le-row--editing": r.editing,
|
|
1061
1071
|
"a-le-row--expanded": r.expanded,
|
|
@@ -1063,17 +1073,17 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1063
1073
|
"a-le-row--clickable": Me(r),
|
|
1064
1074
|
[`a-le-row--validation-${r.validationState}`]: r.validationState !== null
|
|
1065
1075
|
}]),
|
|
1066
|
-
onKeydown: (e) =>
|
|
1067
|
-
}, [
|
|
1076
|
+
onKeydown: (e) => W(we).handleKeydown(r.key, e)
|
|
1077
|
+
}, [F("div", {
|
|
1068
1078
|
class: "a-le-row-header",
|
|
1069
1079
|
onClick: (e) => Ne(r)
|
|
1070
1080
|
}, [
|
|
1071
|
-
|
|
1081
|
+
F("div", ar, [H(t.$slots, "item-compact", R({ ref_for: !0 }, O(r)), () => [F("span", or, U(Ee(r.raw)), 1)]), r.unsaved ? (B(), M(dt, {
|
|
1072
1082
|
key: 0,
|
|
1073
1083
|
"dot-only": e.chips
|
|
1074
|
-
}, null, 8, ["dot-only"])) :
|
|
1075
|
-
e.chips ?
|
|
1076
|
-
|
|
1084
|
+
}, null, 8, ["dot-only"])) : N("", !0)]),
|
|
1085
|
+
e.chips ? N("", !0) : (B(), P("div", sr, [H(t.$slots, "item-status", R({ ref_for: !0 }, O(r)), () => [e.statusField && r.raw[e.statusField] != null && r.raw[e.statusField] !== "" ? (B(), P("span", cr, U(r.raw[e.statusField]), 1)) : N("", !0)])])),
|
|
1086
|
+
F("div", lr, [H(t.$slots, "item-actions", R({ ref_for: !0 }, O(r)), () => [e.chips && e.showDeleteButton && T.value ? (B(), M(X, {
|
|
1077
1087
|
key: 0,
|
|
1078
1088
|
icon: "",
|
|
1079
1089
|
size: "x-small",
|
|
@@ -1081,15 +1091,15 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1081
1091
|
density: "compact",
|
|
1082
1092
|
active: !1,
|
|
1083
1093
|
class: "a-le-action a-le-action--chip-close",
|
|
1084
|
-
onClick:
|
|
1094
|
+
onClick: q((e) => He(r), ["stop"])
|
|
1085
1095
|
}, {
|
|
1086
|
-
default:
|
|
1096
|
+
default: K(() => [L(J, {
|
|
1087
1097
|
icon: "mdi-close",
|
|
1088
1098
|
size: "14"
|
|
1089
1099
|
})]),
|
|
1090
1100
|
_: 1
|
|
1091
|
-
}, 8, ["onClick"])) : (
|
|
1092
|
-
e.showEditButton &&
|
|
1101
|
+
}, 8, ["onClick"])) : (B(), P(A, { key: 1 }, [
|
|
1102
|
+
e.showEditButton && T.value && !e.defaultExpanded ? (B(), M(X, {
|
|
1093
1103
|
key: 0,
|
|
1094
1104
|
icon: "",
|
|
1095
1105
|
size: "small",
|
|
@@ -1097,38 +1107,38 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1097
1107
|
color: "primary",
|
|
1098
1108
|
density: "comfortable",
|
|
1099
1109
|
class: "mx-1 a-le-action a-le-action--edit",
|
|
1100
|
-
onClick:
|
|
1110
|
+
onClick: q((e) => ke(r), ["stop"])
|
|
1101
1111
|
}, {
|
|
1102
|
-
default:
|
|
1112
|
+
default: K(() => [L(J, {
|
|
1103
1113
|
icon: "mdi-pencil-outline",
|
|
1104
1114
|
size: "18"
|
|
1105
|
-
}),
|
|
1115
|
+
}), L(Y, {
|
|
1106
1116
|
activator: "parent",
|
|
1107
1117
|
location: "bottom",
|
|
1108
|
-
text:
|
|
1118
|
+
text: W(s)("common.sortable.edit")
|
|
1109
1119
|
}, null, 8, ["text"])]),
|
|
1110
1120
|
_: 1
|
|
1111
|
-
}, 8, ["onClick"])) :
|
|
1112
|
-
e.showDeleteButton &&
|
|
1121
|
+
}, 8, ["onClick"])) : N("", !0),
|
|
1122
|
+
e.showDeleteButton && T.value ? (B(), M(X, {
|
|
1113
1123
|
key: 1,
|
|
1114
1124
|
icon: "",
|
|
1115
1125
|
size: "small",
|
|
1116
1126
|
variant: "text",
|
|
1117
1127
|
density: "comfortable",
|
|
1118
1128
|
class: "mx-1 a-le-action a-le-action--delete",
|
|
1119
|
-
onClick:
|
|
1129
|
+
onClick: q((e) => He(r), ["stop"])
|
|
1120
1130
|
}, {
|
|
1121
|
-
default:
|
|
1131
|
+
default: K(() => [L(J, {
|
|
1122
1132
|
icon: "mdi-trash-can-outline",
|
|
1123
1133
|
size: "18"
|
|
1124
|
-
}),
|
|
1134
|
+
}), L(Y, {
|
|
1125
1135
|
activator: "parent",
|
|
1126
1136
|
location: "bottom",
|
|
1127
|
-
text:
|
|
1137
|
+
text: W(s)("common.sortable.delete")
|
|
1128
1138
|
}, null, 8, ["text"])]),
|
|
1129
1139
|
_: 1
|
|
1130
|
-
}, 8, ["onClick"])) :
|
|
1131
|
-
e.showAddAfterAction &&
|
|
1140
|
+
}, 8, ["onClick"])) : N("", !0),
|
|
1141
|
+
e.showAddAfterAction && T.value ? (B(), M(X, {
|
|
1132
1142
|
key: 2,
|
|
1133
1143
|
icon: "",
|
|
1134
1144
|
size: "small",
|
|
@@ -1137,22 +1147,22 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1137
1147
|
active: !1,
|
|
1138
1148
|
class: "mx-1 a-le-action a-le-action--menu"
|
|
1139
1149
|
}, {
|
|
1140
|
-
default:
|
|
1141
|
-
|
|
1150
|
+
default: K(() => [
|
|
1151
|
+
L(J, {
|
|
1142
1152
|
icon: "mdi-dots-vertical",
|
|
1143
1153
|
size: "18"
|
|
1144
1154
|
}),
|
|
1145
|
-
|
|
1155
|
+
L(Y, {
|
|
1146
1156
|
activator: "parent",
|
|
1147
1157
|
location: "bottom",
|
|
1148
|
-
text:
|
|
1158
|
+
text: W(s)("common.sortable.more")
|
|
1149
1159
|
}, null, 8, ["text"]),
|
|
1150
|
-
|
|
1151
|
-
default:
|
|
1152
|
-
default:
|
|
1153
|
-
prepend:
|
|
1154
|
-
default:
|
|
1155
|
-
default:
|
|
1160
|
+
L(fn, { activator: "parent" }, {
|
|
1161
|
+
default: K(() => [L(dn, { density: "compact" }, {
|
|
1162
|
+
default: K(() => [L(Z, { onClick: (e) => Oe(r) }, {
|
|
1163
|
+
prepend: K(() => [L(J, { icon: "mdi-plus" })]),
|
|
1164
|
+
default: K(() => [L(Q, null, {
|
|
1165
|
+
default: K(() => [I(U(W(s)("common.sortable.addAfter")), 1)]),
|
|
1156
1166
|
_: 1
|
|
1157
1167
|
})]),
|
|
1158
1168
|
_: 1
|
|
@@ -1163,56 +1173,56 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1163
1173
|
}, 1024)
|
|
1164
1174
|
]),
|
|
1165
1175
|
_: 2
|
|
1166
|
-
}, 1024)) :
|
|
1176
|
+
}, 1024)) : N("", !0)
|
|
1167
1177
|
], 64))])])
|
|
1168
|
-
], 8,
|
|
1169
|
-
n[1] ||=
|
|
1170
|
-
|
|
1178
|
+
], 8, ir), (r.editing || e.defaultExpanded) && t.$slots.item ? (B(), P(A, { key: 0 }, [F("div", ur, [F("div", dr, [H(t.$slots, "item", R({ ref_for: !0 }, O(r)))])]), H(t.$slots, "item-footer", R({ ref_for: !0 }, O(r)), () => [ve.value && !e.defaultExpanded ? (B(), P("div", fr, [
|
|
1179
|
+
n[1] ||= F("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
1180
|
+
L(X, {
|
|
1171
1181
|
variant: "text",
|
|
1172
1182
|
disabled: r.loading,
|
|
1173
|
-
onClick:
|
|
1183
|
+
onClick: q((e) => Ue(r), ["stop"])
|
|
1174
1184
|
}, {
|
|
1175
|
-
default:
|
|
1185
|
+
default: K(() => [I(U(W(s)("common.button.cancel")), 1)]),
|
|
1176
1186
|
_: 1
|
|
1177
1187
|
}, 8, ["disabled", "onClick"]),
|
|
1178
|
-
|
|
1188
|
+
L(X, {
|
|
1179
1189
|
color: "primary",
|
|
1180
1190
|
variant: "flat",
|
|
1181
1191
|
"prepend-icon": "mdi-check",
|
|
1182
1192
|
disabled: r.loading,
|
|
1183
|
-
onClick:
|
|
1193
|
+
onClick: q((e) => D(r), ["stop"])
|
|
1184
1194
|
}, {
|
|
1185
|
-
default:
|
|
1195
|
+
default: K(() => [I(U(W(s)("common.button.save")), 1)]),
|
|
1186
1196
|
_: 1
|
|
1187
1197
|
}, 8, ["disabled", "onClick"])
|
|
1188
|
-
])) :
|
|
1189
|
-
|
|
1198
|
+
])) : N("", !0)])], 64)) : t.$slots["item-readonly"] && (e.readonly || r.expanded) ? (B(), P("div", pr, [F("div", mr, [H(t.$slots, "item-readonly", R({ ref_for: !0 }, O(r)))])])) : N("", !0)], 42, rr),
|
|
1199
|
+
H(t.$slots, "after-item", R({ ref_for: !0 }, O(r)))
|
|
1190
1200
|
]))), 128)),
|
|
1191
|
-
|
|
1201
|
+
he.value && !e.loading && !e.error && !Se.value ? H(t.$slots, "add-button", {
|
|
1192
1202
|
readonly: e.readonly,
|
|
1193
1203
|
disabled: e.disabled,
|
|
1194
1204
|
props: { onClick: De },
|
|
1195
1205
|
actions: { add: De }
|
|
1196
|
-
}, () => [
|
|
1206
|
+
}, () => [F("button", {
|
|
1197
1207
|
type: "button",
|
|
1198
1208
|
class: "a-le-row-add",
|
|
1199
1209
|
onClick: De
|
|
1200
|
-
}, [
|
|
1210
|
+
}, [L(J, {
|
|
1201
1211
|
icon: "mdi-plus",
|
|
1202
1212
|
size: "18"
|
|
1203
|
-
}),
|
|
1213
|
+
}), F("span", null, U(fe.value), 1)])], void 0, 5) : N("", !0)
|
|
1204
1214
|
], 512),
|
|
1205
|
-
|
|
1206
|
-
modelValue:
|
|
1207
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1215
|
+
L(Ae, {
|
|
1216
|
+
modelValue: W(Pe),
|
|
1217
|
+
"onUpdate:modelValue": n[0] ||= (e) => Nt(Pe) ? Pe.value = e : null,
|
|
1208
1218
|
title: me.value,
|
|
1209
|
-
text:
|
|
1210
|
-
"confirm-label":
|
|
1211
|
-
"cancel-label":
|
|
1212
|
-
error:
|
|
1213
|
-
"in-flight":
|
|
1214
|
-
onConfirm:
|
|
1215
|
-
onCancel:
|
|
1219
|
+
text: w.value,
|
|
1220
|
+
"confirm-label": W(s)("common.sortable.delete"),
|
|
1221
|
+
"cancel-label": W(s)("common.button.cancel"),
|
|
1222
|
+
error: W(Ie),
|
|
1223
|
+
"in-flight": W(Fe),
|
|
1224
|
+
onConfirm: W(ze),
|
|
1225
|
+
onCancel: W(Ve)
|
|
1216
1226
|
}, null, 8, [
|
|
1217
1227
|
"modelValue",
|
|
1218
1228
|
"title",
|
|
@@ -1224,37 +1234,37 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1224
1234
|
"onConfirm",
|
|
1225
1235
|
"onCancel"
|
|
1226
1236
|
]),
|
|
1227
|
-
|
|
1228
|
-
n:
|
|
1229
|
-
total:
|
|
1237
|
+
F("div", hr, U(W(we).grabbedKey.value === null ? "" : W(s)("common.sortable.keyboardGrab.status", {
|
|
1238
|
+
n: W(we).grabbedIndex.value + 1,
|
|
1239
|
+
total: W(we).totalCount.value
|
|
1230
1240
|
})), 1)
|
|
1231
1241
|
], 2));
|
|
1232
1242
|
}
|
|
1233
|
-
}),
|
|
1234
|
-
let r =
|
|
1243
|
+
}), _r = (e, t) => e.find((e) => e.key === t) ?? null, vr = (e, t, n) => {
|
|
1244
|
+
let r = _r(e, n);
|
|
1235
1245
|
for (; r && r.parentKey !== null;) {
|
|
1236
1246
|
if (r.parentKey === t) return !0;
|
|
1237
|
-
r =
|
|
1247
|
+
r = _r(e, r.parentKey);
|
|
1238
1248
|
}
|
|
1239
1249
|
return !1;
|
|
1240
|
-
},
|
|
1241
|
-
let r =
|
|
1250
|
+
}, yr = (e, t, n) => {
|
|
1251
|
+
let r = _r(e, t);
|
|
1242
1252
|
for (; r && r.depth > n;) {
|
|
1243
1253
|
if (r.parentKey === null) return null;
|
|
1244
|
-
r =
|
|
1254
|
+
r = _r(e, r.parentKey);
|
|
1245
1255
|
}
|
|
1246
1256
|
return r && r.depth === n ? r : null;
|
|
1247
|
-
},
|
|
1257
|
+
}, br = (e, t, n) => n === t || vr(e, t, n), xr = (e, t, n, r) => {
|
|
1248
1258
|
for (let i = t; i >= 0 && i < e.length; i += n) {
|
|
1249
1259
|
let t = e[i];
|
|
1250
|
-
if (!
|
|
1260
|
+
if (!br(e, r, t.key)) return t;
|
|
1251
1261
|
}
|
|
1252
1262
|
return null;
|
|
1253
|
-
},
|
|
1263
|
+
}, Sr = (e) => {
|
|
1254
1264
|
let { pointer: t, hoveredRow: n, sourceKey: r, sourceSubtreeDepth: i, viewItems: a, maxDepth: o, indentPx: s, containerLeft: c, containerPaddingLeft: l } = e;
|
|
1255
|
-
if (n.key === r ||
|
|
1256
|
-
let u = t.y - n.rect.top < n.rect.height / 2, d = u ? "top" : "bottom", f = a.findIndex((e) => e.key === n.key), p = u ?
|
|
1257
|
-
if (!p)
|
|
1265
|
+
if (n.key === r || vr(a, r, n.key)) return null;
|
|
1266
|
+
let u = t.y - n.rect.top < n.rect.height / 2, d = u ? "top" : "bottom", f = a.findIndex((e) => e.key === n.key), p = u ? xr(a, f - 1, -1, r) : xr(a, f, -1, r), m = u ? xr(a, f, 1, r) : xr(a, f + 1, 1, r), h = t.x - c - l, g = Math.round(h / s), _ = p ? p.depth + 1 : 0, v = m ? m.depth : 0, y = Math.max(v, Math.min(g, _)), b;
|
|
1267
|
+
if (!p) b = {
|
|
1258
1268
|
type: "insert",
|
|
1259
1269
|
refKey: n.key,
|
|
1260
1270
|
refEdge: "top",
|
|
@@ -1264,35 +1274,35 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1264
1274
|
makeChild: !1,
|
|
1265
1275
|
levelRowKey: null
|
|
1266
1276
|
};
|
|
1267
|
-
else if (
|
|
1277
|
+
else if (y === p.depth + 1) b = {
|
|
1268
1278
|
type: "insert",
|
|
1269
1279
|
refKey: n.key,
|
|
1270
1280
|
refEdge: d,
|
|
1271
1281
|
parentKey: p.key,
|
|
1272
1282
|
index: 0,
|
|
1273
|
-
depth:
|
|
1283
|
+
depth: y,
|
|
1274
1284
|
makeChild: !0,
|
|
1275
1285
|
levelRowKey: null
|
|
1276
1286
|
};
|
|
1277
|
-
else if (
|
|
1287
|
+
else if (y === p.depth) b = {
|
|
1278
1288
|
type: "insert",
|
|
1279
1289
|
refKey: n.key,
|
|
1280
1290
|
refEdge: d,
|
|
1281
1291
|
parentKey: p.parentKey,
|
|
1282
1292
|
index: p.siblingIndex + 1,
|
|
1283
|
-
depth:
|
|
1293
|
+
depth: y,
|
|
1284
1294
|
makeChild: !1,
|
|
1285
1295
|
levelRowKey: p.key
|
|
1286
1296
|
};
|
|
1287
1297
|
else {
|
|
1288
|
-
let e =
|
|
1289
|
-
|
|
1298
|
+
let e = yr(a, p.key, y);
|
|
1299
|
+
b = e ? {
|
|
1290
1300
|
type: "insert",
|
|
1291
1301
|
refKey: n.key,
|
|
1292
1302
|
refEdge: d,
|
|
1293
1303
|
parentKey: e.parentKey,
|
|
1294
1304
|
index: e.siblingIndex + 1,
|
|
1295
|
-
depth:
|
|
1305
|
+
depth: y,
|
|
1296
1306
|
makeChild: !1,
|
|
1297
1307
|
levelRowKey: e.key
|
|
1298
1308
|
} : {
|
|
@@ -1306,36 +1316,36 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1306
1316
|
levelRowKey: p.key
|
|
1307
1317
|
};
|
|
1308
1318
|
}
|
|
1309
|
-
return
|
|
1319
|
+
return b.depth + i - 1 >= o ? {
|
|
1310
1320
|
type: "blocked",
|
|
1311
|
-
desired:
|
|
1321
|
+
desired: b,
|
|
1312
1322
|
reason: "maxDepth"
|
|
1313
|
-
} :
|
|
1314
|
-
},
|
|
1323
|
+
} : b;
|
|
1324
|
+
}, Cr = [
|
|
1315
1325
|
"data-id",
|
|
1316
1326
|
"aria-level",
|
|
1317
1327
|
"tabindex"
|
|
1318
|
-
],
|
|
1328
|
+
], wr = ["aria-label"], Tr = {
|
|
1319
1329
|
key: 2,
|
|
1320
1330
|
class: "a-nested-list-editor__tree-toggle a-nested-list-editor__tree-toggle--spacer",
|
|
1321
1331
|
"aria-hidden": "true"
|
|
1322
|
-
},
|
|
1332
|
+
}, Er = { class: "a-le-row-main" }, Dr = { class: "a-le-title" }, Or = {
|
|
1323
1333
|
key: 0,
|
|
1324
1334
|
class: "a-nested-list-editor__drag-count",
|
|
1325
1335
|
"aria-hidden": "true"
|
|
1326
|
-
},
|
|
1336
|
+
}, kr = {
|
|
1327
1337
|
key: 3,
|
|
1328
1338
|
class: "a-le-status"
|
|
1329
|
-
},
|
|
1339
|
+
}, Ar = {
|
|
1330
1340
|
key: 0,
|
|
1331
1341
|
class: "a-le-status-badge"
|
|
1332
|
-
},
|
|
1342
|
+
}, jr = { class: "a-le-actions" }, Mr = { class: "a-le-row-body" }, Nr = { class: "a-le-form" }, Pr = {
|
|
1333
1343
|
key: 0,
|
|
1334
1344
|
class: "a-le-row-footer"
|
|
1335
|
-
},
|
|
1345
|
+
}, Fr = {
|
|
1336
1346
|
key: 1,
|
|
1337
1347
|
class: "a-le-row-body"
|
|
1338
|
-
},
|
|
1348
|
+
}, Ir = { class: "a-le-form" }, Lr = ["data-parent-id"], Rr = "a-nested-list-editor__group", zr = "a-le-drag-handle", Br = /* @__PURE__ */ kt({
|
|
1339
1349
|
__name: "LeNestedRow",
|
|
1340
1350
|
props: {
|
|
1341
1351
|
vi: {},
|
|
@@ -1345,22 +1355,22 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1345
1355
|
callbacks: {}
|
|
1346
1356
|
},
|
|
1347
1357
|
setup(e) {
|
|
1348
|
-
let t = e, n =
|
|
1358
|
+
let t = e, n = Br, { t: r } = Zt(), i = (e) => `--row-${String(e).replace(/\W/g, "_")}`, a = (e) => {
|
|
1349
1359
|
if (typeof t.context.resolveValidation == "function") return t.context.resolveValidation(e, t.vi.key, t.vi.index);
|
|
1350
1360
|
let n = e.validationState;
|
|
1351
1361
|
return n === "valid" || n === "invalid" || n === "warning" ? n : null;
|
|
1352
1362
|
}, o = () => t.context.buildSlotProps(t.vi), s = () => t.viewItems.filter((e) => e.parentKey === t.vi.key);
|
|
1353
|
-
return (t, c) => (
|
|
1354
|
-
class:
|
|
1363
|
+
return (t, c) => (B(), P("div", {
|
|
1364
|
+
class: z(["a-le-row-wrapper", { "a-le-row-wrapper--drop-disabled": e.dragState !== null && e.dragState.sourceKey === e.vi.key }]),
|
|
1355
1365
|
"data-id": String(e.vi.key),
|
|
1356
1366
|
role: "treeitem",
|
|
1357
1367
|
"aria-level": e.vi.depth + 1,
|
|
1358
1368
|
tabindex: e.context.keyboardNav ? e.context.keyboardNav.rowTabindex(e.vi.key) : void 0,
|
|
1359
1369
|
onKeydown: c[17] ||= (t) => e.context.keyboardNav ? e.context.keyboardNav.handleKeydown(e.vi.key, t) : void 0
|
|
1360
1370
|
}, [
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
class:
|
|
1371
|
+
H(t.$slots, "before-item", It(jt(o()))),
|
|
1372
|
+
F("div", {
|
|
1373
|
+
class: z([
|
|
1364
1374
|
"a-le-row",
|
|
1365
1375
|
e.vi.depth > 0 ? "a-le-row--child" : null,
|
|
1366
1376
|
{
|
|
@@ -1374,78 +1384,78 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1374
1384
|
[`a-le-row--validation-${a(e.vi.raw)}`]: a(e.vi.raw) !== null
|
|
1375
1385
|
}
|
|
1376
1386
|
]),
|
|
1377
|
-
style:
|
|
1387
|
+
style: Lt({
|
|
1378
1388
|
"--nested-depth": e.vi.depth,
|
|
1379
1389
|
"anchor-name": i(e.vi.key),
|
|
1380
1390
|
"--parent-anchor": e.vi.parentKey === null ? "none" : i(e.vi.parentKey)
|
|
1381
1391
|
})
|
|
1382
|
-
}, [
|
|
1392
|
+
}, [F("div", {
|
|
1383
1393
|
class: "a-le-row-header",
|
|
1384
1394
|
onClick: c[14] ||= (t) => e.callbacks.onRowClick(e.vi)
|
|
1385
1395
|
}, [
|
|
1386
|
-
e.context.dragEnabled ? (
|
|
1396
|
+
e.context.dragEnabled ? (B(), M(tt, {
|
|
1387
1397
|
key: 0,
|
|
1388
|
-
class:
|
|
1389
|
-
})) :
|
|
1390
|
-
e.context.showExpandToggle && e.vi.childrenAllowed ? (
|
|
1398
|
+
class: z(zr)
|
|
1399
|
+
})) : N("", !0),
|
|
1400
|
+
e.context.showExpandToggle && e.vi.childrenAllowed ? (B(), P("button", {
|
|
1391
1401
|
key: 1,
|
|
1392
1402
|
type: "button",
|
|
1393
|
-
class:
|
|
1403
|
+
class: z(["a-nested-list-editor__tree-toggle", {
|
|
1394
1404
|
"a-nested-list-editor__tree-toggle--empty": !e.vi.hasChildren,
|
|
1395
1405
|
"a-nested-list-editor__tree-toggle--open": e.vi.childrenExpanded
|
|
1396
1406
|
}]),
|
|
1397
|
-
"aria-label": e.vi.childrenExpanded ?
|
|
1398
|
-
onClick: c[0] ||=
|
|
1399
|
-
}, [...c[18] ||= [
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
e.vi.hasChildren ? (
|
|
1407
|
+
"aria-label": e.vi.childrenExpanded ? W(r)("common.sortable.close") : W(r)("common.sortable.edit"),
|
|
1408
|
+
onClick: c[0] ||= q((t) => e.vi.hasChildren && e.callbacks.onChevronClick(e.vi), ["stop"])
|
|
1409
|
+
}, [...c[18] ||= [F("span", { class: "a-nested-list-editor__tree-toggle-caret" }, null, -1)]], 10, wr)) : e.context.showExpandToggle ? (B(), P("span", Tr)) : N("", !0),
|
|
1410
|
+
F("div", Er, [
|
|
1411
|
+
H(t.$slots, "item-compact", It(jt(o())), () => [F("span", Dr, U(e.context.resolveCompactText(e.vi.raw, e.vi.key)), 1)]),
|
|
1412
|
+
e.vi.hasChildren ? (B(), P("span", Or, [L(J, {
|
|
1403
1413
|
icon: "mdi-file-tree",
|
|
1404
1414
|
size: "14"
|
|
1405
|
-
}),
|
|
1406
|
-
e.vi.unsaved ? (
|
|
1415
|
+
}), I(" +" + U(e.vi.childrenCount), 1)])) : N("", !0),
|
|
1416
|
+
e.vi.unsaved ? (B(), M(dt, { key: 1 })) : N("", !0)
|
|
1407
1417
|
]),
|
|
1408
|
-
e.context.reorderMode ?
|
|
1409
|
-
|
|
1410
|
-
|
|
1418
|
+
e.context.reorderMode ? N("", !0) : (B(), P("div", kr, [H(t.$slots, "item-status", It(jt(o())), () => [e.context.statusField && e.vi.raw[e.context.statusField] != null && e.vi.raw[e.context.statusField] !== "" ? (B(), P("span", Ar, U(e.vi.raw[e.context.statusField]), 1)) : N("", !0)])])),
|
|
1419
|
+
F("div", jr, [H(t.$slots, "item-actions", It(jt(o())), () => [e.context.reorderMode ? (B(), P(A, { key: 0 }, [
|
|
1420
|
+
L(X, {
|
|
1411
1421
|
icon: "",
|
|
1412
1422
|
size: "small",
|
|
1413
1423
|
variant: "text",
|
|
1414
1424
|
density: "comfortable",
|
|
1415
1425
|
disabled: e.vi.firstInParent,
|
|
1416
1426
|
class: "mx-1 a-le-action a-le-action--up",
|
|
1417
|
-
onClick: c[1] ||=
|
|
1427
|
+
onClick: c[1] ||= q((t) => e.callbacks.moveUp(e.vi.key), ["stop"])
|
|
1418
1428
|
}, {
|
|
1419
|
-
default:
|
|
1429
|
+
default: K(() => [L(J, {
|
|
1420
1430
|
icon: "mdi-arrow-up",
|
|
1421
1431
|
size: "18"
|
|
1422
|
-
}),
|
|
1432
|
+
}), L(Y, {
|
|
1423
1433
|
activator: "parent",
|
|
1424
1434
|
location: "bottom",
|
|
1425
|
-
text:
|
|
1435
|
+
text: W(r)("common.sortable.moveUp")
|
|
1426
1436
|
}, null, 8, ["text"])]),
|
|
1427
1437
|
_: 1
|
|
1428
1438
|
}, 8, ["disabled"]),
|
|
1429
|
-
|
|
1439
|
+
L(X, {
|
|
1430
1440
|
icon: "",
|
|
1431
1441
|
size: "small",
|
|
1432
1442
|
variant: "text",
|
|
1433
1443
|
density: "comfortable",
|
|
1434
1444
|
disabled: e.vi.lastInParent,
|
|
1435
1445
|
class: "mx-1 a-le-action a-le-action--down",
|
|
1436
|
-
onClick: c[2] ||=
|
|
1446
|
+
onClick: c[2] ||= q((t) => e.callbacks.moveDown(e.vi.key), ["stop"])
|
|
1437
1447
|
}, {
|
|
1438
|
-
default:
|
|
1448
|
+
default: K(() => [L(J, {
|
|
1439
1449
|
icon: "mdi-arrow-down",
|
|
1440
1450
|
size: "18"
|
|
1441
|
-
}),
|
|
1451
|
+
}), L(Y, {
|
|
1442
1452
|
activator: "parent",
|
|
1443
1453
|
location: "bottom",
|
|
1444
|
-
text:
|
|
1454
|
+
text: W(r)("common.sortable.moveDown")
|
|
1445
1455
|
}, null, 8, ["text"])]),
|
|
1446
1456
|
_: 1
|
|
1447
1457
|
}, 8, ["disabled"]),
|
|
1448
|
-
|
|
1458
|
+
L(X, {
|
|
1449
1459
|
icon: "",
|
|
1450
1460
|
size: "small",
|
|
1451
1461
|
variant: "text",
|
|
@@ -1453,99 +1463,99 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1453
1463
|
active: !1,
|
|
1454
1464
|
class: "mx-1 a-le-action a-le-action--menu"
|
|
1455
1465
|
}, {
|
|
1456
|
-
default:
|
|
1457
|
-
|
|
1466
|
+
default: K(() => [
|
|
1467
|
+
L(J, {
|
|
1458
1468
|
icon: "mdi-dots-vertical",
|
|
1459
1469
|
size: "18"
|
|
1460
1470
|
}),
|
|
1461
|
-
|
|
1471
|
+
L(Y, {
|
|
1462
1472
|
activator: "parent",
|
|
1463
1473
|
location: "bottom",
|
|
1464
|
-
text:
|
|
1474
|
+
text: W(r)("common.sortable.more")
|
|
1465
1475
|
}, null, 8, ["text"]),
|
|
1466
|
-
|
|
1467
|
-
default:
|
|
1468
|
-
default:
|
|
1469
|
-
|
|
1476
|
+
L(fn, { activator: "parent" }, {
|
|
1477
|
+
default: K(() => [L(dn, { density: "compact" }, {
|
|
1478
|
+
default: K(() => [
|
|
1479
|
+
L(Z, {
|
|
1470
1480
|
disabled: e.vi.firstInParent,
|
|
1471
|
-
onClick: c[3] ||=
|
|
1481
|
+
onClick: c[3] ||= q((t) => e.callbacks.moveTop(e.vi.key), ["stop"])
|
|
1472
1482
|
}, {
|
|
1473
|
-
prepend:
|
|
1474
|
-
default:
|
|
1475
|
-
default:
|
|
1483
|
+
prepend: K(() => [L(J, { icon: "mdi-arrow-collapse-up" })]),
|
|
1484
|
+
default: K(() => [L(Q, null, {
|
|
1485
|
+
default: K(() => [I(U(W(r)("common.sortable.moveToTop")), 1)]),
|
|
1476
1486
|
_: 1
|
|
1477
1487
|
})]),
|
|
1478
1488
|
_: 1
|
|
1479
1489
|
}, 8, ["disabled"]),
|
|
1480
|
-
|
|
1490
|
+
L(Z, {
|
|
1481
1491
|
disabled: e.vi.lastInParent,
|
|
1482
|
-
onClick: c[4] ||=
|
|
1492
|
+
onClick: c[4] ||= q((t) => e.callbacks.moveBottom(e.vi.key), ["stop"])
|
|
1483
1493
|
}, {
|
|
1484
|
-
prepend:
|
|
1485
|
-
default:
|
|
1486
|
-
default:
|
|
1494
|
+
prepend: K(() => [L(J, { icon: "mdi-arrow-collapse-down" })]),
|
|
1495
|
+
default: K(() => [L(Q, null, {
|
|
1496
|
+
default: K(() => [I(U(W(r)("common.sortable.moveToBottom")), 1)]),
|
|
1487
1497
|
_: 1
|
|
1488
1498
|
})]),
|
|
1489
1499
|
_: 1
|
|
1490
1500
|
}, 8, ["disabled"]),
|
|
1491
|
-
e.context.showMoveToPosition && (!e.vi.firstInParent || !e.vi.lastInParent) ? (
|
|
1501
|
+
e.context.showMoveToPosition && (!e.vi.firstInParent || !e.vi.lastInParent) ? (B(), M(Z, {
|
|
1492
1502
|
key: 0,
|
|
1493
|
-
onClick: c[5] ||=
|
|
1503
|
+
onClick: c[5] ||= q((t) => e.callbacks.openMoveToPosition(e.vi), ["stop"])
|
|
1494
1504
|
}, {
|
|
1495
|
-
prepend:
|
|
1496
|
-
default:
|
|
1497
|
-
default:
|
|
1505
|
+
prepend: K(() => [L(J, { icon: "mdi-target" })]),
|
|
1506
|
+
default: K(() => [L(Q, null, {
|
|
1507
|
+
default: K(() => [I(U(W(r)("common.sortable.moveToPosition.action")), 1)]),
|
|
1498
1508
|
_: 1
|
|
1499
1509
|
})]),
|
|
1500
1510
|
_: 1
|
|
1501
|
-
})) :
|
|
1502
|
-
e.context.showChangeParent ? (
|
|
1511
|
+
})) : N("", !0),
|
|
1512
|
+
e.context.showChangeParent ? (B(), M(Z, {
|
|
1503
1513
|
key: 1,
|
|
1504
|
-
onClick: c[6] ||=
|
|
1514
|
+
onClick: c[6] ||= q((t) => e.callbacks.openChangeParent(e.vi), ["stop"])
|
|
1505
1515
|
}, {
|
|
1506
|
-
prepend:
|
|
1507
|
-
default:
|
|
1508
|
-
default:
|
|
1516
|
+
prepend: K(() => [L(J, { icon: "mdi-folder-move-outline" })]),
|
|
1517
|
+
default: K(() => [L(Q, null, {
|
|
1518
|
+
default: K(() => [I(U(W(r)("common.sortable.changeParent.action")), 1)]),
|
|
1509
1519
|
_: 1
|
|
1510
1520
|
})]),
|
|
1511
1521
|
_: 1
|
|
1512
|
-
})) :
|
|
1513
|
-
|
|
1522
|
+
})) : N("", !0),
|
|
1523
|
+
L(Z, {
|
|
1514
1524
|
disabled: !e.vi.canIndent,
|
|
1515
|
-
onClick: c[7] ||=
|
|
1525
|
+
onClick: c[7] ||= q((t) => e.callbacks.indent(e.vi), ["stop"])
|
|
1516
1526
|
}, {
|
|
1517
|
-
prepend:
|
|
1518
|
-
default:
|
|
1519
|
-
default:
|
|
1527
|
+
prepend: K(() => [L(J, { icon: "mdi-format-indent-increase" })]),
|
|
1528
|
+
default: K(() => [L(Q, null, {
|
|
1529
|
+
default: K(() => [I(U(W(r)("common.sortable.indent")), 1)]),
|
|
1520
1530
|
_: 1
|
|
1521
1531
|
})]),
|
|
1522
1532
|
_: 1
|
|
1523
1533
|
}, 8, ["disabled"]),
|
|
1524
|
-
|
|
1534
|
+
L(Z, {
|
|
1525
1535
|
disabled: !e.vi.canOutdent,
|
|
1526
|
-
onClick: c[8] ||=
|
|
1536
|
+
onClick: c[8] ||= q((t) => e.callbacks.outdent(e.vi), ["stop"])
|
|
1527
1537
|
}, {
|
|
1528
|
-
prepend:
|
|
1529
|
-
default:
|
|
1530
|
-
default:
|
|
1538
|
+
prepend: K(() => [L(J, { icon: "mdi-format-indent-decrease" })]),
|
|
1539
|
+
default: K(() => [L(Q, null, {
|
|
1540
|
+
default: K(() => [I(U(W(r)("common.sortable.outdent")), 1)]),
|
|
1531
1541
|
_: 1
|
|
1532
1542
|
})]),
|
|
1533
1543
|
_: 1
|
|
1534
1544
|
}, 8, ["disabled"]),
|
|
1535
|
-
e.context.showDeleteButton && e.context.canInteract ? (
|
|
1545
|
+
e.context.showDeleteButton && e.context.canInteract ? (B(), M(Z, {
|
|
1536
1546
|
key: 2,
|
|
1537
|
-
onClick: c[9] ||=
|
|
1547
|
+
onClick: c[9] ||= q((t) => e.callbacks.onDeleteClick(e.vi), ["stop"])
|
|
1538
1548
|
}, {
|
|
1539
|
-
prepend:
|
|
1549
|
+
prepend: K(() => [L(J, {
|
|
1540
1550
|
icon: "mdi-trash-can-outline",
|
|
1541
1551
|
color: "error"
|
|
1542
1552
|
})]),
|
|
1543
|
-
default:
|
|
1544
|
-
default:
|
|
1553
|
+
default: K(() => [L(Q, { class: "text-error" }, {
|
|
1554
|
+
default: K(() => [I(U(W(r)("common.sortable.delete")), 1)]),
|
|
1545
1555
|
_: 1
|
|
1546
1556
|
})]),
|
|
1547
1557
|
_: 1
|
|
1548
|
-
})) :
|
|
1558
|
+
})) : N("", !0)
|
|
1549
1559
|
]),
|
|
1550
1560
|
_: 1
|
|
1551
1561
|
})]),
|
|
@@ -1554,8 +1564,8 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1554
1564
|
]),
|
|
1555
1565
|
_: 1
|
|
1556
1566
|
})
|
|
1557
|
-
], 64)) : (
|
|
1558
|
-
e.context.showEditButton && e.context.canInteract ? (
|
|
1567
|
+
], 64)) : (B(), P(A, { key: 1 }, [
|
|
1568
|
+
e.context.showEditButton && e.context.canInteract ? (B(), M(X, {
|
|
1559
1569
|
key: 0,
|
|
1560
1570
|
icon: "",
|
|
1561
1571
|
size: "small",
|
|
@@ -1563,38 +1573,38 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1563
1573
|
color: "primary",
|
|
1564
1574
|
density: "comfortable",
|
|
1565
1575
|
class: "mx-1 a-le-action a-le-action--edit",
|
|
1566
|
-
onClick: c[10] ||=
|
|
1576
|
+
onClick: c[10] ||= q((t) => e.callbacks.onEditClick(e.vi), ["stop"])
|
|
1567
1577
|
}, {
|
|
1568
|
-
default:
|
|
1578
|
+
default: K(() => [L(J, {
|
|
1569
1579
|
icon: "mdi-pencil-outline",
|
|
1570
1580
|
size: "18"
|
|
1571
|
-
}),
|
|
1581
|
+
}), L(Y, {
|
|
1572
1582
|
activator: "parent",
|
|
1573
1583
|
location: "bottom",
|
|
1574
|
-
text:
|
|
1584
|
+
text: W(r)("common.sortable.edit")
|
|
1575
1585
|
}, null, 8, ["text"])]),
|
|
1576
1586
|
_: 1
|
|
1577
|
-
})) :
|
|
1578
|
-
e.context.showDeleteButton && e.context.canInteract ? (
|
|
1587
|
+
})) : N("", !0),
|
|
1588
|
+
e.context.showDeleteButton && e.context.canInteract ? (B(), M(X, {
|
|
1579
1589
|
key: 1,
|
|
1580
1590
|
icon: "",
|
|
1581
1591
|
size: "small",
|
|
1582
1592
|
variant: "text",
|
|
1583
1593
|
density: "comfortable",
|
|
1584
1594
|
class: "mx-1 a-le-action a-le-action--delete",
|
|
1585
|
-
onClick: c[11] ||=
|
|
1595
|
+
onClick: c[11] ||= q((t) => e.callbacks.onDeleteClick(e.vi), ["stop"])
|
|
1586
1596
|
}, {
|
|
1587
|
-
default:
|
|
1597
|
+
default: K(() => [L(J, {
|
|
1588
1598
|
icon: "mdi-trash-can-outline",
|
|
1589
1599
|
size: "18"
|
|
1590
|
-
}),
|
|
1600
|
+
}), L(Y, {
|
|
1591
1601
|
activator: "parent",
|
|
1592
1602
|
location: "bottom",
|
|
1593
|
-
text:
|
|
1603
|
+
text: W(r)("common.sortable.delete")
|
|
1594
1604
|
}, null, 8, ["text"])]),
|
|
1595
1605
|
_: 1
|
|
1596
|
-
})) :
|
|
1597
|
-
e.context.canInteract && (e.context.showAddChildButton && e.vi.canAddChild || e.context.showAddAfterAction) ? (
|
|
1606
|
+
})) : N("", !0),
|
|
1607
|
+
e.context.canInteract && (e.context.showAddChildButton && e.vi.canAddChild || e.context.showAddAfterAction) ? (B(), M(X, {
|
|
1598
1608
|
key: 2,
|
|
1599
1609
|
icon: "",
|
|
1600
1610
|
size: "small",
|
|
@@ -1603,77 +1613,77 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1603
1613
|
active: !1,
|
|
1604
1614
|
class: "mx-1 a-le-action a-le-action--menu"
|
|
1605
1615
|
}, {
|
|
1606
|
-
default:
|
|
1607
|
-
|
|
1616
|
+
default: K(() => [
|
|
1617
|
+
L(J, {
|
|
1608
1618
|
icon: "mdi-dots-vertical",
|
|
1609
1619
|
size: "18"
|
|
1610
1620
|
}),
|
|
1611
|
-
|
|
1621
|
+
L(Y, {
|
|
1612
1622
|
activator: "parent",
|
|
1613
1623
|
location: "bottom",
|
|
1614
|
-
text:
|
|
1624
|
+
text: W(r)("common.sortable.more")
|
|
1615
1625
|
}, null, 8, ["text"]),
|
|
1616
|
-
|
|
1617
|
-
default:
|
|
1618
|
-
default:
|
|
1626
|
+
L(fn, { activator: "parent" }, {
|
|
1627
|
+
default: K(() => [L(dn, { density: "compact" }, {
|
|
1628
|
+
default: K(() => [e.context.showAddAfterAction ? (B(), M(Z, {
|
|
1619
1629
|
key: 0,
|
|
1620
|
-
onClick: c[12] ||=
|
|
1630
|
+
onClick: c[12] ||= q((t) => e.callbacks.onAddAfterClick(e.vi), ["stop"])
|
|
1621
1631
|
}, {
|
|
1622
|
-
prepend:
|
|
1623
|
-
default:
|
|
1624
|
-
default:
|
|
1632
|
+
prepend: K(() => [L(J, { icon: "mdi-playlist-plus" })]),
|
|
1633
|
+
default: K(() => [L(Q, null, {
|
|
1634
|
+
default: K(() => [I(U(W(r)("common.sortable.addAfter")), 1)]),
|
|
1625
1635
|
_: 1
|
|
1626
1636
|
})]),
|
|
1627
1637
|
_: 1
|
|
1628
|
-
})) :
|
|
1638
|
+
})) : N("", !0), e.context.showAddChildButton && e.vi.canAddChild ? (B(), M(Z, {
|
|
1629
1639
|
key: 1,
|
|
1630
|
-
onClick: c[13] ||=
|
|
1640
|
+
onClick: c[13] ||= q((t) => e.callbacks.onAddChildClick(e.vi), ["stop"])
|
|
1631
1641
|
}, {
|
|
1632
|
-
prepend:
|
|
1633
|
-
default:
|
|
1634
|
-
default:
|
|
1642
|
+
prepend: K(() => [L(J, { icon: "mdi-subdirectory-arrow-right" })]),
|
|
1643
|
+
default: K(() => [L(Q, null, {
|
|
1644
|
+
default: K(() => [I(U(W(r)("common.sortable.addChild")), 1)]),
|
|
1635
1645
|
_: 1
|
|
1636
1646
|
})]),
|
|
1637
1647
|
_: 1
|
|
1638
|
-
})) :
|
|
1648
|
+
})) : N("", !0)]),
|
|
1639
1649
|
_: 1
|
|
1640
1650
|
})]),
|
|
1641
1651
|
_: 1
|
|
1642
1652
|
})
|
|
1643
1653
|
]),
|
|
1644
1654
|
_: 1
|
|
1645
|
-
})) :
|
|
1655
|
+
})) : N("", !0)
|
|
1646
1656
|
], 64))])])
|
|
1647
|
-
]), e.vi.editing && !e.context.reorderMode && t.$slots.item ? (
|
|
1648
|
-
c[19] ||=
|
|
1649
|
-
|
|
1657
|
+
]), e.vi.editing && !e.context.reorderMode && t.$slots.item ? (B(), P(A, { key: 0 }, [F("div", Mr, [F("div", Nr, [H(t.$slots, "item", It(jt(o())))])]), H(t.$slots, "item-footer", It(jt(o())), () => [e.context.showInlineSaveFooter ? (B(), P("div", Pr, [
|
|
1658
|
+
c[19] ||= F("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
1659
|
+
L(X, {
|
|
1650
1660
|
variant: "text",
|
|
1651
1661
|
disabled: e.vi.loading,
|
|
1652
|
-
onClick: c[15] ||=
|
|
1662
|
+
onClick: c[15] ||= q((t) => e.callbacks.onCancelClick(e.vi), ["stop"])
|
|
1653
1663
|
}, {
|
|
1654
|
-
default:
|
|
1664
|
+
default: K(() => [I(U(W(r)("common.button.cancel")), 1)]),
|
|
1655
1665
|
_: 1
|
|
1656
1666
|
}, 8, ["disabled"]),
|
|
1657
|
-
|
|
1667
|
+
L(X, {
|
|
1658
1668
|
color: "primary",
|
|
1659
1669
|
variant: "flat",
|
|
1660
1670
|
"prepend-icon": "mdi-check",
|
|
1661
1671
|
disabled: e.vi.loading,
|
|
1662
|
-
onClick: c[16] ||=
|
|
1672
|
+
onClick: c[16] ||= q((t) => e.callbacks.onSaveClick(e.vi), ["stop"])
|
|
1663
1673
|
}, {
|
|
1664
|
-
default:
|
|
1674
|
+
default: K(() => [I(U(W(r)("common.button.save")), 1)]),
|
|
1665
1675
|
_: 1
|
|
1666
1676
|
}, 8, ["disabled"])
|
|
1667
|
-
])) :
|
|
1668
|
-
|
|
1669
|
-
e.vi.hasChildren && e.vi.childrenExpanded ? (
|
|
1677
|
+
])) : N("", !0)])], 64)) : t.$slots["item-readonly"] && (e.context.readonly || e.vi.expanded) && !e.context.reorderMode ? (B(), P("div", Fr, [F("div", Ir, [H(t.$slots, "item-readonly", It(jt(o())))])])) : N("", !0)], 6),
|
|
1678
|
+
H(t.$slots, "after-item", It(jt(o()))),
|
|
1679
|
+
e.vi.hasChildren && e.vi.childrenExpanded ? (B(), P("div", {
|
|
1670
1680
|
key: 0,
|
|
1671
1681
|
class: "a-nested-list-editor__children",
|
|
1672
|
-
style:
|
|
1673
|
-
}, [
|
|
1674
|
-
class:
|
|
1682
|
+
style: Lt({ "--parent-depth": e.vi.depth })
|
|
1683
|
+
}, [F("div", {
|
|
1684
|
+
class: z([Rr]),
|
|
1675
1685
|
"data-parent-id": String(e.vi.key)
|
|
1676
|
-
}, [(
|
|
1686
|
+
}, [(B(!0), P(A, null, Vt(s(), (r) => (B(), M(W(n), {
|
|
1677
1687
|
key: String(r.key),
|
|
1678
1688
|
vi: r,
|
|
1679
1689
|
"view-items": e.viewItems,
|
|
@@ -1681,14 +1691,14 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1681
1691
|
context: e.context,
|
|
1682
1692
|
callbacks: e.callbacks
|
|
1683
1693
|
}, {
|
|
1684
|
-
item:
|
|
1685
|
-
"item-compact":
|
|
1686
|
-
"item-readonly":
|
|
1687
|
-
"item-status":
|
|
1688
|
-
"item-footer":
|
|
1689
|
-
"item-actions":
|
|
1690
|
-
"before-item":
|
|
1691
|
-
"after-item":
|
|
1694
|
+
item: K((e) => [H(t.$slots, "item", R({ ref_for: !0 }, e))]),
|
|
1695
|
+
"item-compact": K((e) => [H(t.$slots, "item-compact", R({ ref_for: !0 }, e))]),
|
|
1696
|
+
"item-readonly": K((e) => [H(t.$slots, "item-readonly", R({ ref_for: !0 }, e))]),
|
|
1697
|
+
"item-status": K((e) => [H(t.$slots, "item-status", R({ ref_for: !0 }, e))]),
|
|
1698
|
+
"item-footer": K((e) => [H(t.$slots, "item-footer", R({ ref_for: !0 }, e))]),
|
|
1699
|
+
"item-actions": K((e) => [H(t.$slots, "item-actions", R({ ref_for: !0 }, e))]),
|
|
1700
|
+
"before-item": K((e) => [H(t.$slots, "before-item", R({ ref_for: !0 }, e))]),
|
|
1701
|
+
"after-item": K((e) => [H(t.$slots, "after-item", R({ ref_for: !0 }, e))]),
|
|
1692
1702
|
_: 3
|
|
1693
1703
|
}, 8, [
|
|
1694
1704
|
"vi",
|
|
@@ -1696,12 +1706,12 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1696
1706
|
"drag-state",
|
|
1697
1707
|
"context",
|
|
1698
1708
|
"callbacks"
|
|
1699
|
-
]))), 128))], 10,
|
|
1700
|
-
], 42,
|
|
1709
|
+
]))), 128))], 10, Lr)], 4)) : N("", !0)
|
|
1710
|
+
], 42, Cr));
|
|
1701
1711
|
}
|
|
1702
|
-
}),
|
|
1712
|
+
}), Vr = { class: "text-body-medium mb-2" }, Hr = /*#__PURE__*/ je(/* @__PURE__ */ kt({
|
|
1703
1713
|
__name: "LeChangeParentDialog",
|
|
1704
|
-
props: /*@__PURE__*/
|
|
1714
|
+
props: /*@__PURE__*/ Pt({
|
|
1705
1715
|
tree: {},
|
|
1706
1716
|
sourceKey: {},
|
|
1707
1717
|
keyField: {},
|
|
@@ -1715,13 +1725,13 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1715
1725
|
},
|
|
1716
1726
|
modelModifiers: {}
|
|
1717
1727
|
}),
|
|
1718
|
-
emits: /*@__PURE__*/
|
|
1728
|
+
emits: /*@__PURE__*/ Pt(["confirm"], ["update:modelValue"]),
|
|
1719
1729
|
setup(e, { emit: t }) {
|
|
1720
|
-
let n = e, r = t, i =
|
|
1721
|
-
|
|
1730
|
+
let n = e, r = t, i = Gt(e, "modelValue"), { t: a } = Zt(), o = V(void 0), s = V("last");
|
|
1731
|
+
G(i, (e) => {
|
|
1722
1732
|
e && (o.value = void 0, s.value = "last");
|
|
1723
1733
|
});
|
|
1724
|
-
let c =
|
|
1734
|
+
let c = j(() => {
|
|
1725
1735
|
let e = /* @__PURE__ */ new Set();
|
|
1726
1736
|
if (n.sourceKey === null) return e;
|
|
1727
1737
|
let t = (r) => {
|
|
@@ -1737,7 +1747,7 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1737
1747
|
return !1;
|
|
1738
1748
|
};
|
|
1739
1749
|
return t(n.tree.children), e;
|
|
1740
|
-
}), l =
|
|
1750
|
+
}), l = j(() => {
|
|
1741
1751
|
if (n.sourceKey === null) return null;
|
|
1742
1752
|
let e = (t) => {
|
|
1743
1753
|
for (let r of t) {
|
|
@@ -1750,7 +1760,7 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1750
1760
|
return null;
|
|
1751
1761
|
};
|
|
1752
1762
|
return e(n.tree.children);
|
|
1753
|
-
}), u =
|
|
1763
|
+
}), u = j(() => {
|
|
1754
1764
|
if (n.sourceKey === null) return;
|
|
1755
1765
|
let e = (t, r) => {
|
|
1756
1766
|
for (let i of t) {
|
|
@@ -1762,7 +1772,7 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1762
1772
|
}
|
|
1763
1773
|
};
|
|
1764
1774
|
return e(n.tree.children, null);
|
|
1765
|
-
}), d =
|
|
1775
|
+
}), d = j(() => {
|
|
1766
1776
|
let e = [], t = l.value ? n.calculateSubtreeDepth(l.value) : 1;
|
|
1767
1777
|
e.push({
|
|
1768
1778
|
key: null,
|
|
@@ -1786,63 +1796,63 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1786
1796
|
}
|
|
1787
1797
|
};
|
|
1788
1798
|
return r(n.tree.children, 0), e;
|
|
1789
|
-
}), f =
|
|
1799
|
+
}), f = j(() => d.value.filter((e) => !e.disallowed)), p = j(() => o.value === void 0 ? null : d.value.find((e) => e.key === o.value) ?? null), m = j(() => !!p.value && p.value.hasChildren), h = (e) => {
|
|
1790
1800
|
e.disallowed || (o.value = e.key);
|
|
1791
1801
|
}, g = () => {
|
|
1792
1802
|
p.value && (r("confirm", p.value.key, s.value), i.value = !1);
|
|
1793
|
-
},
|
|
1803
|
+
}, _ = () => {
|
|
1794
1804
|
i.value = !1;
|
|
1795
|
-
},
|
|
1796
|
-
return (e, t) => (
|
|
1805
|
+
}, v = (e) => `${e * 16}px`, y = (e) => e === "maxDepth" ? a("common.sortable.changeParent.errorMaxDepth") : "";
|
|
1806
|
+
return (e, t) => (B(), M(hn, {
|
|
1797
1807
|
modelValue: i.value,
|
|
1798
1808
|
"onUpdate:modelValue": t[1] ||= (e) => i.value = e,
|
|
1799
1809
|
"max-width": "540",
|
|
1800
1810
|
persistent: ""
|
|
1801
1811
|
}, {
|
|
1802
|
-
default:
|
|
1803
|
-
default:
|
|
1804
|
-
|
|
1805
|
-
default:
|
|
1812
|
+
default: K(() => [L(tn, null, {
|
|
1813
|
+
default: K(() => [
|
|
1814
|
+
L(an, null, {
|
|
1815
|
+
default: K(() => [I(U(W(a)("common.sortable.changeParent.title")), 1)]),
|
|
1806
1816
|
_: 1
|
|
1807
1817
|
}),
|
|
1808
|
-
f.value.length === 0 ? (
|
|
1818
|
+
f.value.length === 0 ? (B(), M(rn, {
|
|
1809
1819
|
key: 0,
|
|
1810
1820
|
class: "text-body-medium"
|
|
1811
1821
|
}, {
|
|
1812
|
-
default:
|
|
1822
|
+
default: K(() => [L($t, {
|
|
1813
1823
|
type: "info",
|
|
1814
1824
|
variant: "tonal",
|
|
1815
1825
|
density: "compact"
|
|
1816
1826
|
}, {
|
|
1817
|
-
default:
|
|
1827
|
+
default: K(() => [F("strong", null, U(W(a)("common.sortable.changeParent.noTargetsTitle")), 1), F("div", null, U(W(a)("common.sortable.changeParent.noTargetsText")), 1)]),
|
|
1818
1828
|
_: 1
|
|
1819
1829
|
})]),
|
|
1820
1830
|
_: 1
|
|
1821
|
-
})) : (
|
|
1822
|
-
default:
|
|
1831
|
+
})) : (B(), P(A, { key: 1 }, [L(rn, { class: "pb-1" }, {
|
|
1832
|
+
default: K(() => [L(dn, {
|
|
1823
1833
|
density: "compact",
|
|
1824
1834
|
class: "le-change-parent__list"
|
|
1825
1835
|
}, {
|
|
1826
|
-
default:
|
|
1836
|
+
default: K(() => [(B(!0), P(A, null, Vt(d.value, (e) => (B(), M(Z, {
|
|
1827
1837
|
key: e.key === null ? "__root__" : String(e.key),
|
|
1828
1838
|
disabled: e.disallowed,
|
|
1829
1839
|
active: o.value === e.key,
|
|
1830
1840
|
title: e.label,
|
|
1831
|
-
subtitle:
|
|
1832
|
-
style:
|
|
1841
|
+
subtitle: y(e.reason),
|
|
1842
|
+
style: Lt({ paddingInlineStart: v(e.depth) }),
|
|
1833
1843
|
"data-disallowed": e.disallowed ? "true" : "false",
|
|
1834
1844
|
"data-reason": e.reason ?? "",
|
|
1835
1845
|
onClick: (t) => h(e)
|
|
1836
1846
|
}, {
|
|
1837
|
-
prepend:
|
|
1847
|
+
prepend: K(() => [e.key === null ? (B(), M(J, {
|
|
1838
1848
|
key: 0,
|
|
1839
1849
|
icon: "mdi-folder-home-outline",
|
|
1840
1850
|
size: "18"
|
|
1841
|
-
})) : e.hasChildren ? (
|
|
1851
|
+
})) : e.hasChildren ? (B(), M(J, {
|
|
1842
1852
|
key: 1,
|
|
1843
1853
|
icon: "mdi-folder-outline",
|
|
1844
1854
|
size: "18"
|
|
1845
|
-
})) : (
|
|
1855
|
+
})) : (B(), M(J, {
|
|
1846
1856
|
key: 2,
|
|
1847
1857
|
icon: "mdi-file-outline",
|
|
1848
1858
|
size: "18"
|
|
@@ -1861,44 +1871,44 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1861
1871
|
_: 1
|
|
1862
1872
|
})]),
|
|
1863
1873
|
_: 1
|
|
1864
|
-
}), m.value ? (
|
|
1874
|
+
}), m.value ? (B(), M(rn, {
|
|
1865
1875
|
key: 0,
|
|
1866
1876
|
class: "pt-0"
|
|
1867
1877
|
}, {
|
|
1868
|
-
default:
|
|
1878
|
+
default: K(() => [F("div", Vr, U(W(a)("common.sortable.changeParent.placementHeading", { label: p.value?.label ?? "" })), 1), L(vn, {
|
|
1869
1879
|
modelValue: s.value,
|
|
1870
1880
|
"onUpdate:modelValue": t[0] ||= (e) => s.value = e,
|
|
1871
1881
|
density: "compact",
|
|
1872
1882
|
"hide-details": ""
|
|
1873
1883
|
}, {
|
|
1874
|
-
default:
|
|
1884
|
+
default: K(() => [L(_n, {
|
|
1875
1885
|
value: "first",
|
|
1876
|
-
label:
|
|
1877
|
-
}, null, 8, ["label"]),
|
|
1886
|
+
label: W(a)("common.sortable.changeParent.placeFirst")
|
|
1887
|
+
}, null, 8, ["label"]), L(_n, {
|
|
1878
1888
|
value: "last",
|
|
1879
|
-
label:
|
|
1889
|
+
label: W(a)("common.sortable.changeParent.placeLast")
|
|
1880
1890
|
}, null, 8, ["label"])]),
|
|
1881
1891
|
_: 1
|
|
1882
1892
|
}, 8, ["modelValue"])]),
|
|
1883
1893
|
_: 1
|
|
1884
|
-
})) :
|
|
1885
|
-
|
|
1886
|
-
default:
|
|
1887
|
-
|
|
1888
|
-
|
|
1894
|
+
})) : N("", !0)], 64)),
|
|
1895
|
+
L(nn, null, {
|
|
1896
|
+
default: K(() => [
|
|
1897
|
+
L(Qt),
|
|
1898
|
+
L(X, {
|
|
1889
1899
|
variant: "text",
|
|
1890
|
-
onClick:
|
|
1900
|
+
onClick: _
|
|
1891
1901
|
}, {
|
|
1892
|
-
default:
|
|
1902
|
+
default: K(() => [I(U(W(a)("common.sortable.reorderCancel")), 1)]),
|
|
1893
1903
|
_: 1
|
|
1894
1904
|
}),
|
|
1895
|
-
|
|
1905
|
+
L(X, {
|
|
1896
1906
|
color: "primary",
|
|
1897
1907
|
variant: "elevated",
|
|
1898
1908
|
disabled: !p.value || p.value.disallowed,
|
|
1899
1909
|
onClick: g
|
|
1900
1910
|
}, {
|
|
1901
|
-
default:
|
|
1911
|
+
default: K(() => [I(U(W(a)("common.sortable.changeParent.confirm")), 1)]),
|
|
1902
1912
|
_: 1
|
|
1903
1913
|
}, 8, ["disabled"])
|
|
1904
1914
|
]),
|
|
@@ -1910,28 +1920,28 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1910
1920
|
_: 1
|
|
1911
1921
|
}, 8, ["modelValue"]));
|
|
1912
1922
|
}
|
|
1913
|
-
}), [["__scopeId", "data-v-0058f5cc"]]),
|
|
1923
|
+
}), [["__scopeId", "data-v-0058f5cc"]]), Ur = { class: "a-le-card" }, Wr = {
|
|
1914
1924
|
key: 0,
|
|
1915
1925
|
class: "a-le-header"
|
|
1916
|
-
},
|
|
1926
|
+
}, Gr = {
|
|
1917
1927
|
key: 0,
|
|
1918
1928
|
class: "a-le-title-heading"
|
|
1919
|
-
},
|
|
1929
|
+
}, Kr = { class: "a-le-header-actions" }, qr = {
|
|
1920
1930
|
key: 1,
|
|
1921
1931
|
class: "a-le-state a-le-state--loading"
|
|
1922
|
-
},
|
|
1932
|
+
}, Jr = {
|
|
1923
1933
|
key: 2,
|
|
1924
1934
|
class: "a-le-state a-le-state--error"
|
|
1925
|
-
},
|
|
1935
|
+
}, Yr = {
|
|
1926
1936
|
key: 3,
|
|
1927
1937
|
class: "a-le-state a-le-state--empty"
|
|
1928
|
-
},
|
|
1938
|
+
}, Xr = {
|
|
1929
1939
|
class: "a-le-sr-only",
|
|
1930
1940
|
"aria-live": "polite",
|
|
1931
1941
|
role: "status"
|
|
1932
|
-
},
|
|
1942
|
+
}, Zr = "a-nested-list-editor__group", Qr = 24, $r = 22, ei = /* @__PURE__ */ kt({
|
|
1933
1943
|
__name: "ANestedSortableListEditor",
|
|
1934
|
-
props: /*@__PURE__*/
|
|
1944
|
+
props: /*@__PURE__*/ Pt({
|
|
1935
1945
|
maxDepth: {},
|
|
1936
1946
|
factory: {
|
|
1937
1947
|
type: Function,
|
|
@@ -2064,7 +2074,7 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2064
2074
|
mode: { default: "view" },
|
|
2065
2075
|
modeModifiers: {}
|
|
2066
2076
|
}),
|
|
2067
|
-
emits: /*@__PURE__*/
|
|
2077
|
+
emits: /*@__PURE__*/ Pt([
|
|
2068
2078
|
"add",
|
|
2069
2079
|
"add-child",
|
|
2070
2080
|
"edit",
|
|
@@ -2081,19 +2091,19 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2081
2091
|
"outdent"
|
|
2082
2092
|
], ["update:modelValue", "update:mode"]),
|
|
2083
2093
|
setup(e, { expose: t, emit: n }) {
|
|
2084
|
-
let r = e,
|
|
2094
|
+
let r = e, i = n, a = Gt(e, "modelValue"), s = Gt(e, "mode"), { t: c } = Zt(), l = Kt(), { showWarningT: u } = at(), f = qt("rootEl"), { isNarrow: p } = m(f), h = ie(), g = j(() => r.closeVariant === "icon" ? "icon" : r.closeVariant === "labeled" ? "labeled" : p.value ? "icon" : "labeled"), _ = V(/* @__PURE__ */ new Set()), v = V(/* @__PURE__ */ new Set()), y = r.getKey ?? "id", ee = typeof y == "function" ? "id" : y, x = (e) => typeof y == "function" ? y(e) : e[y], S = (() => {
|
|
2085
2095
|
let e = r.position;
|
|
2086
2096
|
return e === void 0 || e === !1 ? "position" : typeof e == "object" ? e.field : e;
|
|
2087
2097
|
})();
|
|
2088
2098
|
((e) => {
|
|
2089
2099
|
let t = (e) => {
|
|
2090
|
-
for (let n of e) n.children && n.children.length > 0 && (_.value.add(
|
|
2100
|
+
for (let n of e) n.children && n.children.length > 0 && (_.value.add(x(n.data)), t(n.children));
|
|
2091
2101
|
};
|
|
2092
2102
|
t(e.children);
|
|
2093
|
-
})(
|
|
2094
|
-
let
|
|
2095
|
-
get: () =>
|
|
2096
|
-
set: (e) =>
|
|
2103
|
+
})(a.value);
|
|
2104
|
+
let ne = {
|
|
2105
|
+
get: () => a.value,
|
|
2106
|
+
set: (e) => a.value = e,
|
|
2097
2107
|
factory: r.factory,
|
|
2098
2108
|
getKey: r.getKey,
|
|
2099
2109
|
position: r.position,
|
|
@@ -2101,19 +2111,19 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2101
2111
|
maxDepth: r.maxDepth,
|
|
2102
2112
|
dirtyExclude: () => r.dirtyExclude ?? [],
|
|
2103
2113
|
validate: r.validate
|
|
2104
|
-
},
|
|
2114
|
+
}, re = r.editor ? null : de(r.stateKey, ne), C = r.editor ?? re?.handle ?? d(ne), ae = o(re?.childScope ?? null), oe = j(() => {
|
|
2105
2115
|
let e = [], t = 0, n = r.maxDepth, i = (r, a, o) => {
|
|
2106
2116
|
for (let s = 0; s < r.length; s++) {
|
|
2107
|
-
let c = r[s], l =
|
|
2117
|
+
let c = r[s], l = x(c.data), u = c.children !== void 0, d = u && (c.children?.length ?? 0) > 0, f = c.children?.length ?? 0, p = n - (a + 1);
|
|
2108
2118
|
e.push({
|
|
2109
2119
|
key: l,
|
|
2110
2120
|
index: t++,
|
|
2111
2121
|
raw: c.data,
|
|
2112
|
-
position: c.data[
|
|
2122
|
+
position: c.data[S],
|
|
2113
2123
|
node: c,
|
|
2114
2124
|
depth: a,
|
|
2115
2125
|
parent: o?.data ?? null,
|
|
2116
|
-
parentKey: o ?
|
|
2126
|
+
parentKey: o ? x(o.data) : null,
|
|
2117
2127
|
childrenCount: f,
|
|
2118
2128
|
hasChildren: d,
|
|
2119
2129
|
childrenAllowed: u,
|
|
@@ -2127,26 +2137,26 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2127
2137
|
}), d && i(c.children, a + 1, c);
|
|
2128
2138
|
}
|
|
2129
2139
|
};
|
|
2130
|
-
return i(
|
|
2140
|
+
return i(a.value.children, 0, null), e;
|
|
2131
2141
|
});
|
|
2132
|
-
|
|
2133
|
-
let
|
|
2134
|
-
C.commit(),
|
|
2135
|
-
},
|
|
2142
|
+
G(() => oe.value.map((e) => String(e.key)).join("|"), () => ae.retainOwners(oe.value.map((e) => e.key)), { flush: "post" });
|
|
2143
|
+
let se = Ut(null), ce = V(/* @__PURE__ */ new Set()), le = V(/* @__PURE__ */ new Set()), ue = V(/* @__PURE__ */ new Set()), fe = () => {
|
|
2144
|
+
C.commit(), ce.value = /* @__PURE__ */ new Set();
|
|
2145
|
+
}, pe = (e) => {
|
|
2136
2146
|
let { node: t } = C.findNode(e);
|
|
2137
2147
|
if (!t) {
|
|
2138
|
-
|
|
2148
|
+
ce.value.add(e);
|
|
2139
2149
|
return;
|
|
2140
2150
|
}
|
|
2141
2151
|
let n = (e) => {
|
|
2142
|
-
|
|
2152
|
+
ce.value.add(x(e.data)), e.children && e.children.forEach(n);
|
|
2143
2153
|
};
|
|
2144
2154
|
n(t);
|
|
2145
|
-
},
|
|
2155
|
+
}, me = /* @__PURE__ */ new Map(), w = j(() => {
|
|
2146
2156
|
let e = [], t = /* @__PURE__ */ new Set();
|
|
2147
|
-
for (let n of
|
|
2157
|
+
for (let n of oe.value) {
|
|
2148
2158
|
t.add(n.key);
|
|
2149
|
-
let i = Ee.value.has(n.key), a = v.value.has(n.key), o = _.value.has(n.key), s = r.loadingKeys?.has(n.key) ?? !1, c =
|
|
2159
|
+
let i = Ee.value.has(n.key), a = v.value.has(n.key), o = _.value.has(n.key), s = r.loadingKeys?.has(n.key) ?? !1, c = ce.value.has(n.key), l = !r.readonly && C.isUnsaved(n.key), u = r.readonly ? !1 : l || c, d = me.get(n.key);
|
|
2150
2160
|
if (d && d.raw === n.raw && d.index === n.index && d.position === n.position && d.depth === n.depth && d.parentKey === n.parentKey && d.childrenCount === n.childrenCount && d.firstInParent === n.firstInParent && d.lastInParent === n.lastInParent && d.editing === i && d.expanded === a && d.childrenExpanded === o && d.loading === s && d.dirty === l && d.moved === c && d.unsaved === u) {
|
|
2151
2161
|
e.push(d);
|
|
2152
2162
|
continue;
|
|
@@ -2161,20 +2171,20 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2161
2171
|
moved: c,
|
|
2162
2172
|
unsaved: u
|
|
2163
2173
|
};
|
|
2164
|
-
|
|
2174
|
+
me.set(n.key, f), e.push(f);
|
|
2165
2175
|
}
|
|
2166
|
-
for (let e of
|
|
2176
|
+
for (let e of me.keys()) t.has(e) || me.delete(e);
|
|
2167
2177
|
return e;
|
|
2168
|
-
}),
|
|
2169
|
-
rowsContainer:
|
|
2178
|
+
}), T = j(() => a.value.children.length === 0), ge = j(() => oe.value.length), E = qt("rowsContainer"), ve = j(() => !r.readonly && !r.disabled && !r.loading), ye = j(() => ve.value && !r.disableReorder && ge.value > 1), be = j(() => !!l.item), Se = j(() => !!l["item-readonly"]), Ce = j(() => !!r.onItemSave), { editingKeys: Ee, editingSnapshots: Oe, clearEditing: ke, beginEdit: je, cancelEdit: Me, commitEdit: Ne, closeEdit: Pe, requestAutoOpen: Fe } = Le({
|
|
2179
|
+
rowsContainer: E,
|
|
2170
2180
|
rowSelector: ".a-le-row-wrapper",
|
|
2171
|
-
isInlineEdit:
|
|
2181
|
+
isInlineEdit: be,
|
|
2172
2182
|
restoreSnapshot: (e, t) => C.updateItem(e, t, !1),
|
|
2173
2183
|
watchKeys: () => {
|
|
2174
2184
|
let e = [], t = (n) => {
|
|
2175
|
-
for (let r of n) e.push(
|
|
2185
|
+
for (let r of n) e.push(x(r.data)), r.children && r.children.length && t(r.children);
|
|
2176
2186
|
};
|
|
2177
|
-
return t(
|
|
2187
|
+
return t(a.value.children), e;
|
|
2178
2188
|
},
|
|
2179
2189
|
findEntry: (e) => {
|
|
2180
2190
|
let { node: t } = C.findNode(e);
|
|
@@ -2182,78 +2192,78 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2182
2192
|
},
|
|
2183
2193
|
afterAutoOpen: (e) => {
|
|
2184
2194
|
let { parent: t } = C.findNode(e);
|
|
2185
|
-
t && _.value.add(
|
|
2195
|
+
t && _.value.add(x(t.data));
|
|
2186
2196
|
}
|
|
2187
|
-
}), { applying:
|
|
2188
|
-
mode:
|
|
2189
|
-
snapshot:
|
|
2190
|
-
movedKeys:
|
|
2191
|
-
modelValue:
|
|
2192
|
-
cloneModel: (e) =>
|
|
2197
|
+
}), { applying: Ie, applyError: Re, hasPendingChanges: ze, movedCount: Ve, reorderMode: D, enterReorderMode: Ue, cancelReorderMode: We, applyReorder: Ge } = it({
|
|
2198
|
+
mode: s,
|
|
2199
|
+
snapshot: se,
|
|
2200
|
+
movedKeys: ce,
|
|
2201
|
+
modelValue: a,
|
|
2202
|
+
cloneModel: (e) => _e(e),
|
|
2193
2203
|
applyModel: (e) => {
|
|
2194
|
-
|
|
2204
|
+
a.value = e;
|
|
2195
2205
|
},
|
|
2196
2206
|
canEnterReorder: ye,
|
|
2197
2207
|
onEnter: () => {
|
|
2198
|
-
|
|
2199
|
-
for (let e of
|
|
2200
|
-
|
|
2201
|
-
|
|
2208
|
+
le.value = /* @__PURE__ */ new Set(), ue.value = /* @__PURE__ */ new Set(), ke();
|
|
2209
|
+
for (let e of rt.value) _.value.add(e);
|
|
2210
|
+
Ft(() => {
|
|
2211
|
+
Ye.value && yt();
|
|
2202
2212
|
});
|
|
2203
2213
|
},
|
|
2204
2214
|
onExternalEnter: () => {
|
|
2205
|
-
|
|
2215
|
+
le.value = /* @__PURE__ */ new Set(), ue.value = /* @__PURE__ */ new Set(), ke();
|
|
2206
2216
|
},
|
|
2207
2217
|
onCancel: () => {
|
|
2208
|
-
for (let e of
|
|
2209
|
-
for (let e of
|
|
2210
|
-
|
|
2218
|
+
for (let e of le.value) C.restoreDeleted(e);
|
|
2219
|
+
for (let e of ue.value) C.deleteItem(e, { trackDeleted: !1 });
|
|
2220
|
+
le.value = /* @__PURE__ */ new Set(), ue.value = /* @__PURE__ */ new Set(), pt();
|
|
2211
2221
|
},
|
|
2212
2222
|
onApplyEnd: () => {
|
|
2213
|
-
|
|
2223
|
+
le.value = /* @__PURE__ */ new Set(), ue.value = /* @__PURE__ */ new Set(), pt();
|
|
2214
2224
|
},
|
|
2215
2225
|
onReorderApply: (e) => r.onReorderApply?.(e),
|
|
2216
2226
|
emit: {
|
|
2217
|
-
reorderStart: () =>
|
|
2218
|
-
reorderCancel: () =>
|
|
2219
|
-
reorderApplied: (e) =>
|
|
2220
|
-
reorderApplyError: (e) =>
|
|
2221
|
-
reorderEnd: () =>
|
|
2227
|
+
reorderStart: () => i("reorder-start"),
|
|
2228
|
+
reorderCancel: () => i("reorder-cancel"),
|
|
2229
|
+
reorderApplied: (e) => i("reorder-applied", e),
|
|
2230
|
+
reorderApplyError: (e) => i("reorder-apply-error", e),
|
|
2231
|
+
reorderEnd: () => i("reorder-end")
|
|
2222
2232
|
}
|
|
2223
|
-
}),
|
|
2233
|
+
}), Ke = j(() => Ve.value + le.value.size), O = j(() => ze.value || le.value.size > 0), Je = j(() => ve.value && r.showAddButton && !D.value), Ye = j(() => D.value && !h.value && !r.disableDrag), Ze = j(() => r.addLabel ? c(r.addLabel) : c("common.sortable.add")), Qe = j(() => r.emptyTitle ?? c("common.sortable.emptyTitle")), $e = j(() => r.deleteConfirmTitle ?? c("common.sortable.deleteConfirmTitle")), et = j(() => r.deleteConfirmText ?? (r.deleteMode === "immediate" ? c("common.sortable.deleteConfirmText") : c("common.sortable.deleteConfirmTextDeferred"))), tt = j(() => !r.readonly && r.showReorderToggle && !D.value && ge.value > 0), nt = j(() => !!r.title && p.value), rt = j(() => {
|
|
2224
2234
|
let e = [], t = (n) => {
|
|
2225
|
-
for (let r of n) r.children && r.children.length > 0 && (e.push(
|
|
2235
|
+
for (let r of n) r.children && r.children.length > 0 && (e.push(x(r.data)), t(r.children));
|
|
2226
2236
|
};
|
|
2227
|
-
return t(
|
|
2228
|
-
}),
|
|
2229
|
-
if (
|
|
2230
|
-
else for (let e of
|
|
2231
|
-
},
|
|
2232
|
-
for (let e of
|
|
2237
|
+
return t(a.value.children), e;
|
|
2238
|
+
}), ot = j(() => rt.value.length > 0 && rt.value.every((e) => _.value.has(e))), st = j(() => !D.value && rt.value.length > 0), ct = () => {
|
|
2239
|
+
if (ot.value) for (let e of rt.value) _.value.delete(e);
|
|
2240
|
+
else for (let e of rt.value) _.value.add(e);
|
|
2241
|
+
}, ut = j(() => !!(r.title || l.header || l["reorder-toggle"] || tt.value || st.value || D.value)), dt = V([]), ft = V(0), pt = () => {
|
|
2242
|
+
for (let e of dt.value) try {
|
|
2233
2243
|
e.stop();
|
|
2234
2244
|
} catch {}
|
|
2235
|
-
|
|
2236
|
-
},
|
|
2245
|
+
dt.value = [];
|
|
2246
|
+
}, k = V(null), ht = (e, t) => {
|
|
2237
2247
|
let n = document.elementFromPoint(e, t);
|
|
2238
2248
|
if (!n) return null;
|
|
2239
2249
|
let r = n.closest(".a-le-row-wrapper");
|
|
2240
|
-
if (!r || !
|
|
2241
|
-
let i =
|
|
2250
|
+
if (!r || !E.value || !E.value.contains(r)) return null;
|
|
2251
|
+
let i = bt(r.getAttribute("data-id"));
|
|
2242
2252
|
if (i === null) return null;
|
|
2243
|
-
let a =
|
|
2253
|
+
let a = w.value.find((e) => e.key === i);
|
|
2244
2254
|
return a ? {
|
|
2245
2255
|
el: r,
|
|
2246
2256
|
viewItem: a
|
|
2247
2257
|
} : null;
|
|
2248
|
-
},
|
|
2249
|
-
if (!
|
|
2250
|
-
let n =
|
|
2258
|
+
}, gt = (e, t) => {
|
|
2259
|
+
if (!k.value || !E.value) return;
|
|
2260
|
+
let n = ht(e, t);
|
|
2251
2261
|
if (!n) {
|
|
2252
|
-
|
|
2262
|
+
k.value.instruction = null;
|
|
2253
2263
|
return;
|
|
2254
2264
|
}
|
|
2255
|
-
let i =
|
|
2256
|
-
|
|
2265
|
+
let i = E.value.getBoundingClientRect(), a = (n.el.querySelector(":scope > .a-le-row") ?? n.el).getBoundingClientRect();
|
|
2266
|
+
k.value.instruction = Sr({
|
|
2257
2267
|
pointer: {
|
|
2258
2268
|
x: e,
|
|
2259
2269
|
y: t
|
|
@@ -2266,27 +2276,27 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2266
2276
|
siblingIndex: n.viewItem.siblingIndex,
|
|
2267
2277
|
siblingCount: n.viewItem.siblingCount
|
|
2268
2278
|
},
|
|
2269
|
-
sourceKey:
|
|
2270
|
-
sourceSubtreeDepth:
|
|
2271
|
-
viewItems:
|
|
2279
|
+
sourceKey: k.value.sourceKey,
|
|
2280
|
+
sourceSubtreeDepth: k.value.sourceSubtreeDepth,
|
|
2281
|
+
viewItems: w.value,
|
|
2272
2282
|
maxDepth: r.maxDepth,
|
|
2273
|
-
indentPx:
|
|
2283
|
+
indentPx: Qr,
|
|
2274
2284
|
containerLeft: i.left,
|
|
2275
|
-
containerPaddingLeft:
|
|
2285
|
+
containerPaddingLeft: $r
|
|
2276
2286
|
});
|
|
2277
|
-
},
|
|
2278
|
-
|
|
2279
|
-
},
|
|
2287
|
+
}, _t = (e) => {
|
|
2288
|
+
gt(e.clientX, e.clientY);
|
|
2289
|
+
}, vt = (e, t) => {
|
|
2280
2290
|
if (!C.moveTo(t, e.parentKey, e.index)) {
|
|
2281
|
-
|
|
2291
|
+
u("common.sortable.error.maxDeepExceed"), ft.value++, Ft(() => yt());
|
|
2282
2292
|
return;
|
|
2283
2293
|
}
|
|
2284
|
-
|
|
2285
|
-
},
|
|
2286
|
-
if (
|
|
2287
|
-
let e = Array.from(
|
|
2294
|
+
pe(t), e.makeChild && e.parentKey !== null && _.value.add(e.parentKey);
|
|
2295
|
+
}, yt = () => {
|
|
2296
|
+
if (pt(), !Ye.value || !E.value) return;
|
|
2297
|
+
let e = Array.from(E.value.querySelectorAll("." + Zr));
|
|
2288
2298
|
for (let t of e) {
|
|
2289
|
-
let e =
|
|
2299
|
+
let e = b(t, [], {
|
|
2290
2300
|
group: {
|
|
2291
2301
|
name: "a-nested",
|
|
2292
2302
|
pull: !0,
|
|
@@ -2294,73 +2304,73 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2294
2304
|
},
|
|
2295
2305
|
handle: ".a-le-drag-handle",
|
|
2296
2306
|
animation: 0,
|
|
2297
|
-
ghostClass:
|
|
2298
|
-
chosenClass:
|
|
2299
|
-
dragClass:
|
|
2307
|
+
ghostClass: we,
|
|
2308
|
+
chosenClass: lt,
|
|
2309
|
+
dragClass: He,
|
|
2300
2310
|
fallbackOnBody: !0,
|
|
2301
2311
|
forceFallback: !0,
|
|
2302
2312
|
fallbackTolerance: 3,
|
|
2303
2313
|
onStart: (e) => {
|
|
2304
|
-
let t = e.item, n =
|
|
2314
|
+
let t = e.item, n = bt(t.getAttribute("data-id"));
|
|
2305
2315
|
if (n === null) return;
|
|
2306
2316
|
let r = C.findNode(n).node, i = r ? C.calculateSubtreeDepth(r) : 1;
|
|
2307
|
-
|
|
2317
|
+
k.value = {
|
|
2308
2318
|
sourceKey: n,
|
|
2309
2319
|
sourceSubtreeDepth: i,
|
|
2310
2320
|
instruction: null
|
|
2311
|
-
}, document.addEventListener("pointermove",
|
|
2321
|
+
}, document.addEventListener("pointermove", _t, { passive: !0 });
|
|
2312
2322
|
},
|
|
2313
2323
|
onMove: (e) => {
|
|
2314
2324
|
let t = e.originalEvent;
|
|
2315
2325
|
if (t) {
|
|
2316
|
-
if ("clientX" in t && "clientY" in t)
|
|
2326
|
+
if ("clientX" in t && "clientY" in t) gt(t.clientX, t.clientY);
|
|
2317
2327
|
else if ("touches" in t) {
|
|
2318
2328
|
let e = t;
|
|
2319
|
-
e.touches.length > 0 &&
|
|
2329
|
+
e.touches.length > 0 && gt(e.touches[0].clientX, e.touches[0].clientY);
|
|
2320
2330
|
}
|
|
2321
2331
|
}
|
|
2322
2332
|
return !1;
|
|
2323
2333
|
},
|
|
2324
2334
|
onEnd: () => {
|
|
2325
|
-
document.removeEventListener("pointermove",
|
|
2326
|
-
let e =
|
|
2327
|
-
if (
|
|
2335
|
+
document.removeEventListener("pointermove", _t);
|
|
2336
|
+
let e = k.value;
|
|
2337
|
+
if (k.value = null, !e) return;
|
|
2328
2338
|
let t = e.instruction;
|
|
2329
|
-
t !== null && t.type !== "blocked" &&
|
|
2339
|
+
t !== null && t.type !== "blocked" && vt(t, e.sourceKey);
|
|
2330
2340
|
}
|
|
2331
2341
|
});
|
|
2332
|
-
|
|
2342
|
+
dt.value.push(e);
|
|
2333
2343
|
}
|
|
2334
|
-
},
|
|
2344
|
+
}, bt = (e) => {
|
|
2335
2345
|
if (e === null || e === "") return null;
|
|
2336
|
-
let t =
|
|
2346
|
+
let t = he(e);
|
|
2337
2347
|
return String(t) === e ? t : e;
|
|
2338
2348
|
};
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
}),
|
|
2342
|
-
|
|
2343
|
-
}),
|
|
2344
|
-
|
|
2345
|
-
}),
|
|
2346
|
-
|
|
2347
|
-
}),
|
|
2348
|
-
|
|
2349
|
+
G(() => Ye.value, () => {
|
|
2350
|
+
Ye.value ? Ft(() => yt()) : pt();
|
|
2351
|
+
}), G(() => ft.value, () => {
|
|
2352
|
+
Ye.value && Ft(() => yt());
|
|
2353
|
+
}), G(() => w.value.map((e) => e.key).join("|"), () => {
|
|
2354
|
+
Ye.value && Ft(() => yt());
|
|
2355
|
+
}), zt(() => {
|
|
2356
|
+
Ye.value && yt();
|
|
2357
|
+
}), Rt(() => {
|
|
2358
|
+
pt(), document.removeEventListener("pointermove", _t);
|
|
2349
2359
|
});
|
|
2350
|
-
let
|
|
2351
|
-
let e =
|
|
2352
|
-
if (!e || e.instruction === null || !
|
|
2360
|
+
let xt = j(() => {
|
|
2361
|
+
let e = k.value;
|
|
2362
|
+
if (!e || e.instruction === null || !E.value) return null;
|
|
2353
2363
|
let t = e.instruction;
|
|
2354
2364
|
if (t.type === "blocked") return null;
|
|
2355
|
-
let n =
|
|
2365
|
+
let n = E.value.querySelector(`.a-le-row-wrapper[data-id="${CSS.escape(String(t.refKey))}"]`);
|
|
2356
2366
|
if (!n) return null;
|
|
2357
|
-
let r = n.querySelector(":scope > .a-le-row"), i =
|
|
2367
|
+
let r = n.querySelector(":scope > .a-le-row"), i = E.value.getBoundingClientRect(), a = (r ?? n).getBoundingClientRect(), o = $r + t.depth * Qr, s = t.refEdge === "top" ? a.top - i.top : a.bottom - i.top, c = {
|
|
2358
2368
|
top: s,
|
|
2359
2369
|
left: o,
|
|
2360
2370
|
right: 16
|
|
2361
2371
|
}, l = null;
|
|
2362
2372
|
if (t.levelRowKey !== null) {
|
|
2363
|
-
let e =
|
|
2373
|
+
let e = E.value.querySelector(`.a-le-row-wrapper[data-id="${CSS.escape(String(t.levelRowKey))}"]`);
|
|
2364
2374
|
if (e) {
|
|
2365
2375
|
let t = (e.querySelector(":scope > .a-le-row") ?? e).getBoundingClientRect(), n = t.top - i.top + t.height / 2;
|
|
2366
2376
|
n < s && (l = {
|
|
@@ -2374,101 +2384,101 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2374
2384
|
line: c,
|
|
2375
2385
|
connector: l
|
|
2376
2386
|
};
|
|
2377
|
-
}),
|
|
2378
|
-
|
|
2379
|
-
},
|
|
2380
|
-
|
|
2387
|
+
}), St = () => {
|
|
2388
|
+
Je.value && (Fe(), r.factory && C.addItem(), i("add", void 0));
|
|
2389
|
+
}, Ct = (e) => {
|
|
2390
|
+
ve.value && (Fe(), r.factory && C.addAfter(e.key, void 0, e.childrenAllowed), i("add", {
|
|
2381
2391
|
afterId: e.key,
|
|
2382
2392
|
childrenAllowed: e.childrenAllowed
|
|
2383
2393
|
}));
|
|
2384
2394
|
}, wt = (e) => {
|
|
2385
|
-
|
|
2395
|
+
ve.value && e.canAddChild && (Fe(), _.value.add(e.key), i("add-child", e), r.factory && C.addChild(e.key, void 0, !0), i("add", {
|
|
2386
2396
|
parentId: e.key,
|
|
2387
2397
|
childrenAllowed: !0
|
|
2388
2398
|
}));
|
|
2389
|
-
},
|
|
2390
|
-
if (
|
|
2399
|
+
}, Et = (e) => {
|
|
2400
|
+
if (ve.value && !D.value) {
|
|
2391
2401
|
if (Ee.value.has(e.key)) {
|
|
2392
|
-
|
|
2402
|
+
Qt(e);
|
|
2393
2403
|
return;
|
|
2394
2404
|
}
|
|
2395
|
-
|
|
2405
|
+
be.value && je(e), i("edit", e);
|
|
2396
2406
|
}
|
|
2397
|
-
},
|
|
2407
|
+
}, Dt = (e) => {
|
|
2398
2408
|
if (r.disabled || r.loading) return;
|
|
2399
2409
|
let t = e.key, n = _.value.has(t);
|
|
2400
|
-
n ? _.value.delete(t) : _.value.add(t),
|
|
2401
|
-
},
|
|
2410
|
+
n ? _.value.delete(t) : _.value.add(t), i("item-expand", e, !n);
|
|
2411
|
+
}, Ot = (e) => {
|
|
2402
2412
|
if (r.disabled || r.loading) return;
|
|
2403
2413
|
let t = e.key, n = v.value.has(t);
|
|
2404
|
-
n ? v.value.delete(t) : v.value.add(t),
|
|
2405
|
-
}, kt = (e) => r.disableRowClick || r.disabled || r.loading || D.value ? !1 : !!(e.editing || e.expanded || !r.readonly && r.showEditButton),
|
|
2414
|
+
n ? v.value.delete(t) : v.value.add(t), i("item-expand", e, !n);
|
|
2415
|
+
}, kt = (e) => r.disableRowClick || r.disabled || r.loading || D.value ? !1 : !!(e.editing || e.expanded || !r.readonly && r.showEditButton), At = (e) => {
|
|
2406
2416
|
if (kt(e)) {
|
|
2407
2417
|
if (e.editing || e.expanded) {
|
|
2408
|
-
|
|
2418
|
+
Qt(e);
|
|
2409
2419
|
return;
|
|
2410
2420
|
}
|
|
2411
|
-
r.readonly && Se.value ?
|
|
2421
|
+
r.readonly && Se.value ? Ot(e) : Et(e);
|
|
2412
2422
|
}
|
|
2413
|
-
}, { deleteDialog:
|
|
2423
|
+
}, { deleteDialog: Mt, deleteInFlight: Pt, deleteError: Bt, onDeleteClick: Ht, onDeleteDialogConfirm: Wt, onDeleteDialogCancel: Jt } = xe({
|
|
2414
2424
|
onDeleteConfirm: (e) => !r.onDeleteConfirm || r.onDeleteConfirm(e),
|
|
2415
2425
|
onDelete: (e) => r.onDelete?.(e),
|
|
2416
2426
|
onDeleted: (e) => {
|
|
2417
|
-
Ee.value.delete(e.key),
|
|
2427
|
+
Ee.value.delete(e.key), Oe.value.delete(e.key), v.value.delete(e.key), _.value.delete(e.key);
|
|
2418
2428
|
let t = r.deleteMode === "deferred";
|
|
2419
|
-
D.value && (t ?
|
|
2429
|
+
D.value && (t ? le.value.add(e.key) : ue.value.add(e.key)), C.deleteItem(e.key, { trackDeleted: t }), i("deleted", e);
|
|
2420
2430
|
},
|
|
2421
2431
|
disableDeleteConfirm: () => r.disableDeleteConfirm
|
|
2422
|
-
}),
|
|
2423
|
-
|
|
2424
|
-
},
|
|
2425
|
-
r.onItemSave && await r.onItemSave(e.raw), Ne(e),
|
|
2426
|
-
},
|
|
2432
|
+
}), Yt = async (e) => {
|
|
2433
|
+
ve.value && await Ht(e);
|
|
2434
|
+
}, Xt = async (e) => {
|
|
2435
|
+
r.onItemSave && await r.onItemSave(e.raw), Ne(e), i("item-saved", e);
|
|
2436
|
+
}, q = (e) => {
|
|
2427
2437
|
Me(e);
|
|
2428
|
-
},
|
|
2429
|
-
Pe(e),
|
|
2430
|
-
}, en = (e) => {
|
|
2431
|
-
C.moveUp(e) && he(e);
|
|
2438
|
+
}, Qt = (e) => {
|
|
2439
|
+
Pe(e), i("close", e);
|
|
2432
2440
|
}, tn = (e) => {
|
|
2433
|
-
C.
|
|
2441
|
+
C.moveUp(e) && pe(e);
|
|
2442
|
+
}, nn = (e) => {
|
|
2443
|
+
C.moveDown(e) && pe(e);
|
|
2434
2444
|
}, rn = (e) => {
|
|
2435
|
-
C.moveTop(e) &&
|
|
2445
|
+
C.moveTop(e) && pe(e);
|
|
2436
2446
|
}, an = (e) => {
|
|
2437
|
-
C.moveBottom(e) &&
|
|
2447
|
+
C.moveBottom(e) && pe(e);
|
|
2438
2448
|
}, on = (e) => {
|
|
2439
2449
|
if (!C.indent(e.key)) {
|
|
2440
|
-
|
|
2450
|
+
u("common.sortable.error.maxDeepExceed");
|
|
2441
2451
|
return;
|
|
2442
2452
|
}
|
|
2443
|
-
|
|
2453
|
+
pe(e.key), i("indent", e);
|
|
2444
2454
|
}, sn = (e) => {
|
|
2445
|
-
C.outdent(e.key) && (
|
|
2446
|
-
}, cn = (e) => Te(e, { compactField: r.compactField }), ln = (e, t) => t === void 0 ? null : C.rowState(e, t, Ee.value.has(t)),
|
|
2447
|
-
let t =
|
|
2455
|
+
C.outdent(e.key) && (pe(e.key), i("outdent", e));
|
|
2456
|
+
}, cn = (e) => Te(e, { compactField: r.compactField }), ln = (e, t) => t === void 0 ? null : C.rowState(e, t, Ee.value.has(t)), un = /* @__PURE__ */ new Map(), dn = (e) => {
|
|
2457
|
+
let t = un.get(e);
|
|
2448
2458
|
return t || (t = {
|
|
2449
2459
|
edit: () => {
|
|
2450
2460
|
let t = $(e);
|
|
2451
|
-
t &&
|
|
2461
|
+
t && Et(t);
|
|
2452
2462
|
},
|
|
2453
2463
|
save: () => {
|
|
2454
2464
|
let t = $(e);
|
|
2455
|
-
if (t) return
|
|
2465
|
+
if (t) return Xt(t);
|
|
2456
2466
|
},
|
|
2457
2467
|
cancel: () => {
|
|
2458
2468
|
let t = $(e);
|
|
2459
|
-
t &&
|
|
2469
|
+
t && q(t);
|
|
2460
2470
|
},
|
|
2461
2471
|
close: () => {
|
|
2462
2472
|
let t = $(e);
|
|
2463
|
-
t &&
|
|
2473
|
+
t && Qt(t);
|
|
2464
2474
|
},
|
|
2465
2475
|
delete: async () => {
|
|
2466
2476
|
let t = $(e);
|
|
2467
|
-
t && await
|
|
2477
|
+
t && await Yt(t);
|
|
2468
2478
|
},
|
|
2469
2479
|
addAfter: () => {
|
|
2470
2480
|
let t = $(e);
|
|
2471
|
-
t &&
|
|
2481
|
+
t && Ct(t);
|
|
2472
2482
|
},
|
|
2473
2483
|
addChild: () => {
|
|
2474
2484
|
let t = $(e);
|
|
@@ -2476,14 +2486,14 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2476
2486
|
},
|
|
2477
2487
|
toggleExpand: () => {
|
|
2478
2488
|
let t = $(e);
|
|
2479
|
-
t &&
|
|
2489
|
+
t && Dt(t);
|
|
2480
2490
|
},
|
|
2481
2491
|
toggleDetail: () => {
|
|
2482
2492
|
let t = $(e);
|
|
2483
|
-
t &&
|
|
2493
|
+
t && Ot(t);
|
|
2484
2494
|
},
|
|
2485
|
-
moveUp: () =>
|
|
2486
|
-
moveDown: () =>
|
|
2495
|
+
moveUp: () => tn(e),
|
|
2496
|
+
moveDown: () => nn(e),
|
|
2487
2497
|
moveTop: () => rn(e),
|
|
2488
2498
|
moveBottom: () => an(e),
|
|
2489
2499
|
indent: () => {
|
|
@@ -2495,14 +2505,14 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2495
2505
|
t && sn(t);
|
|
2496
2506
|
},
|
|
2497
2507
|
update: (t) => C.updateItem(e, t)
|
|
2498
|
-
},
|
|
2508
|
+
}, un.set(e, t)), t;
|
|
2499
2509
|
};
|
|
2500
|
-
|
|
2501
|
-
if (
|
|
2510
|
+
G(() => w.value, (e) => {
|
|
2511
|
+
if (un.size === 0) return;
|
|
2502
2512
|
let t = new Set(e.map((e) => e.key));
|
|
2503
|
-
for (let e of
|
|
2513
|
+
for (let e of un.keys()) t.has(e) || un.delete(e);
|
|
2504
2514
|
});
|
|
2505
|
-
let
|
|
2515
|
+
let Z = (e) => ({
|
|
2506
2516
|
item: {
|
|
2507
2517
|
...e,
|
|
2508
2518
|
validationState: ln(e.raw, e.key)
|
|
@@ -2532,28 +2542,28 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2532
2542
|
canIndent: e.canIndent,
|
|
2533
2543
|
canOutdent: e.canOutdent,
|
|
2534
2544
|
canAddChild: e.canAddChild,
|
|
2535
|
-
touch:
|
|
2536
|
-
stateKeyPrefix:
|
|
2537
|
-
actions:
|
|
2538
|
-
}),
|
|
2539
|
-
applying:
|
|
2540
|
-
hasPendingChanges:
|
|
2541
|
-
movedCount:
|
|
2542
|
-
error:
|
|
2545
|
+
touch: h.value,
|
|
2546
|
+
stateKeyPrefix: ae.prefixFor(e.key),
|
|
2547
|
+
actions: dn(e.key)
|
|
2548
|
+
}), Q = j(() => ({
|
|
2549
|
+
applying: Ie.value,
|
|
2550
|
+
hasPendingChanges: O.value,
|
|
2551
|
+
movedCount: Ke.value,
|
|
2552
|
+
error: Re.value,
|
|
2543
2553
|
actions: {
|
|
2544
2554
|
apply: Ge,
|
|
2545
2555
|
cancel: We
|
|
2546
2556
|
}
|
|
2547
|
-
})), fn =
|
|
2548
|
-
mode:
|
|
2557
|
+
})), fn = j(() => ({
|
|
2558
|
+
mode: s.value,
|
|
2549
2559
|
disabled: !ye.value,
|
|
2550
|
-
hasPendingChanges:
|
|
2560
|
+
hasPendingChanges: ze.value,
|
|
2551
2561
|
actions: {
|
|
2552
2562
|
enterReorderMode: Ue,
|
|
2553
2563
|
exitReorderMode: We
|
|
2554
2564
|
}
|
|
2555
|
-
})), pn =
|
|
2556
|
-
viewItems:
|
|
2565
|
+
})), pn = j(() => new Set(rt.value)), $ = (e) => w.value.find((t) => t.key === e), mn = te({
|
|
2566
|
+
viewItems: j(() => w.value.map((e) => ({
|
|
2557
2567
|
key: e.key,
|
|
2558
2568
|
expanded: e.childrenExpanded,
|
|
2559
2569
|
canExpand: pn.value.has(e.key),
|
|
@@ -2562,18 +2572,18 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2562
2572
|
}))),
|
|
2563
2573
|
variant: "nested",
|
|
2564
2574
|
isReorderMode: D,
|
|
2565
|
-
disabled:
|
|
2575
|
+
disabled: j(() => !ve.value),
|
|
2566
2576
|
isEditing: (e) => Ee.value.has(e),
|
|
2567
2577
|
onToggleEdit: (e) => {
|
|
2568
2578
|
let t = $(e);
|
|
2569
|
-
t &&
|
|
2579
|
+
t && Et(t);
|
|
2570
2580
|
},
|
|
2571
2581
|
onCancelEdit: (e) => {
|
|
2572
2582
|
let t = $(e);
|
|
2573
|
-
t &&
|
|
2583
|
+
t && Qt(t);
|
|
2574
2584
|
},
|
|
2575
|
-
onMoveUp: (e) =>
|
|
2576
|
-
onMoveDown: (e) =>
|
|
2585
|
+
onMoveUp: (e) => tn(e),
|
|
2586
|
+
onMoveDown: (e) => nn(e),
|
|
2577
2587
|
onMoveTop: (e) => rn(e),
|
|
2578
2588
|
onMoveBottom: (e) => an(e),
|
|
2579
2589
|
onIndent: (e) => {
|
|
@@ -2586,37 +2596,37 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2586
2596
|
},
|
|
2587
2597
|
onToggleChildren: (e) => {
|
|
2588
2598
|
let t = $(e);
|
|
2589
|
-
t &&
|
|
2599
|
+
t && Dt(t);
|
|
2590
2600
|
},
|
|
2591
2601
|
onCancelReorder: () => We()
|
|
2592
|
-
}), hn =
|
|
2602
|
+
}), hn = V(!1), gn = Ut(null), _n = j(() => {
|
|
2593
2603
|
let e = gn.value;
|
|
2594
2604
|
if (!e) return null;
|
|
2595
|
-
let t = C.findNode(e.key), n = t.parent?.children ??
|
|
2605
|
+
let t = C.findNode(e.key), n = t.parent?.children ?? a.value.children, r = n.findIndex((t) => x(t.data) === e.key);
|
|
2596
2606
|
return {
|
|
2597
|
-
parentId: t.parent ?
|
|
2607
|
+
parentId: t.parent ? x(t.parent.data) : null,
|
|
2598
2608
|
total: n.length,
|
|
2599
2609
|
currentIndex: r
|
|
2600
2610
|
};
|
|
2601
|
-
}), vn =
|
|
2611
|
+
}), vn = j(() => gn.value ? cn(gn.value.raw) : ""), yn = (e) => {
|
|
2602
2612
|
r.showMoveToPosition && (gn.value = e, hn.value = !0);
|
|
2603
2613
|
}, bn = (e) => {
|
|
2604
2614
|
let t = _n.value, n = gn.value;
|
|
2605
|
-
gn.value = null, t && n && e !== t.currentIndex && C.moveTo(n.key, t.parentId, e) &&
|
|
2606
|
-
}, xn =
|
|
2615
|
+
gn.value = null, t && n && e !== t.currentIndex && C.moveTo(n.key, t.parentId, e) && pe(n.key);
|
|
2616
|
+
}, xn = V(!1), Sn = Ut(null), Cn = (e) => {
|
|
2607
2617
|
r.showChangeParent && (Sn.value = e, xn.value = !0);
|
|
2608
2618
|
}, wn = (e, t) => {
|
|
2609
2619
|
let n = Sn.value;
|
|
2610
2620
|
if (Sn.value = null, !n) return;
|
|
2611
2621
|
let r = 0;
|
|
2612
|
-
r = e === null ?
|
|
2622
|
+
r = e === null ? a.value.children.length : C.findNode(e).node?.children?.length ?? 0;
|
|
2613
2623
|
let i = t === "first" ? 0 : r;
|
|
2614
|
-
C.moveTo(n.key, e, i) && (
|
|
2615
|
-
}, Tn =
|
|
2624
|
+
C.moveTo(n.key, e, i) && (pe(n.key), e !== null && _.value.add(e));
|
|
2625
|
+
}, Tn = j(() => ({
|
|
2616
2626
|
reorderMode: D.value,
|
|
2617
2627
|
readonly: r.readonly,
|
|
2618
|
-
canInteract:
|
|
2619
|
-
dragEnabled:
|
|
2628
|
+
canInteract: ve.value,
|
|
2629
|
+
dragEnabled: Ye.value,
|
|
2620
2630
|
showExpandToggle: r.showExpandToggle,
|
|
2621
2631
|
showEditButton: r.showEditButton,
|
|
2622
2632
|
showDeleteButton: r.showDeleteButton,
|
|
@@ -2624,57 +2634,57 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2624
2634
|
showAddAfterAction: r.showAddAfterAction,
|
|
2625
2635
|
showMoveToPosition: r.showMoveToPosition,
|
|
2626
2636
|
showChangeParent: r.showChangeParent,
|
|
2627
|
-
showInlineSaveFooter:
|
|
2637
|
+
showInlineSaveFooter: Ce.value,
|
|
2628
2638
|
statusField: r.statusField,
|
|
2629
|
-
effectiveCloseVariant:
|
|
2639
|
+
effectiveCloseVariant: g.value,
|
|
2630
2640
|
keyboardNav: mn,
|
|
2631
2641
|
isRowClickable: kt,
|
|
2632
2642
|
resolveCompactText: cn,
|
|
2633
2643
|
resolveValidation: (e, t) => ln(e, t),
|
|
2634
|
-
buildSlotProps:
|
|
2644
|
+
buildSlotProps: Z
|
|
2635
2645
|
})), En = {
|
|
2636
|
-
onRowClick:
|
|
2637
|
-
onChevronClick:
|
|
2638
|
-
onEditClick:
|
|
2639
|
-
onDeleteClick:
|
|
2640
|
-
onCloseClick:
|
|
2641
|
-
onSaveClick:
|
|
2642
|
-
onCancelClick:
|
|
2643
|
-
onAddAfterClick:
|
|
2646
|
+
onRowClick: At,
|
|
2647
|
+
onChevronClick: Dt,
|
|
2648
|
+
onEditClick: Et,
|
|
2649
|
+
onDeleteClick: Yt,
|
|
2650
|
+
onCloseClick: Qt,
|
|
2651
|
+
onSaveClick: Xt,
|
|
2652
|
+
onCancelClick: q,
|
|
2653
|
+
onAddAfterClick: Ct,
|
|
2644
2654
|
onAddChildClick: wt,
|
|
2645
|
-
moveUp: (e) =>
|
|
2646
|
-
moveDown: (e) =>
|
|
2655
|
+
moveUp: (e) => tn(e),
|
|
2656
|
+
moveDown: (e) => nn(e),
|
|
2647
2657
|
moveTop: (e) => rn(e),
|
|
2648
2658
|
moveBottom: (e) => an(e),
|
|
2649
2659
|
indent: on,
|
|
2650
2660
|
outdent: sn,
|
|
2651
2661
|
openMoveToPosition: yn,
|
|
2652
2662
|
openChangeParent: Cn
|
|
2653
|
-
}, Dn =
|
|
2663
|
+
}, Dn = j(() => w.value.filter((e) => e.parentKey === null)), On = (e, t, n) => (C.addItem(t, {
|
|
2654
2664
|
afterId: e ?? void 0,
|
|
2655
2665
|
childrenAllowed: n
|
|
2656
|
-
}),
|
|
2666
|
+
}), Ft(() => C.commit()), a.value), kn = (e, t, n) => (_.value.add(e), C.addItem(t, {
|
|
2657
2667
|
parentId: e,
|
|
2658
2668
|
asFirstChild: !0,
|
|
2659
2669
|
childrenAllowed: n
|
|
2660
|
-
}),
|
|
2661
|
-
C.deleteItem(e), Ee.value.delete(e),
|
|
2670
|
+
}), Ft(() => C.commit()), a.value), An = (e) => {
|
|
2671
|
+
C.deleteItem(e), Ee.value.delete(e), Oe.value.delete(e), v.value.delete(e), _.value.delete(e), Ft(() => C.commit());
|
|
2662
2672
|
}, jn = (e, t, n = null, r = null, i = null) => {
|
|
2663
|
-
C.updateItem(e, t),
|
|
2673
|
+
C.updateItem(e, t), Ft(() => C.commit());
|
|
2664
2674
|
}, Mn = C.unsavedCount, Nn = () => {
|
|
2665
|
-
C.commit(),
|
|
2675
|
+
C.commit(), ce.value = /* @__PURE__ */ new Set(), ke();
|
|
2666
2676
|
};
|
|
2667
|
-
|
|
2677
|
+
Tt(() => r.unsavedSectionLabel ? {
|
|
2668
2678
|
label: r.unsavedSectionLabel,
|
|
2669
2679
|
dirty: C.hasUnsaved.value
|
|
2670
2680
|
} : []);
|
|
2671
|
-
let Pn = () =>
|
|
2681
|
+
let Pn = () => Be(C, (e) => {
|
|
2672
2682
|
let t = C.findNode(e).parent;
|
|
2673
|
-
for (; t;) _.value.add(
|
|
2683
|
+
for (; t;) _.value.add(x(t.data)), t = C.findNode(x(t.data)).parent;
|
|
2674
2684
|
let n = C.viewItems.value.find((t) => t.key === e);
|
|
2675
2685
|
n && je(n);
|
|
2676
2686
|
});
|
|
2677
|
-
return
|
|
2687
|
+
return Xe({
|
|
2678
2688
|
hasErrors: C.hasErrors,
|
|
2679
2689
|
validationScope: r.validationScope,
|
|
2680
2690
|
validateProvided: r.validate !== void 0,
|
|
@@ -2686,11 +2696,11 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2686
2696
|
addChildToId: kn,
|
|
2687
2697
|
removeById: An,
|
|
2688
2698
|
updateData: jn,
|
|
2689
|
-
resetDirtyBaseline:
|
|
2699
|
+
resetDirtyBaseline: fe,
|
|
2690
2700
|
hasUnsavedChanges: C.hasUnsaved,
|
|
2691
2701
|
unsavedCount: Mn,
|
|
2692
2702
|
clearUnsavedState: Nn,
|
|
2693
|
-
viewItems:
|
|
2703
|
+
viewItems: oe,
|
|
2694
2704
|
enterReorderMode: Ue,
|
|
2695
2705
|
cancelReorderMode: We,
|
|
2696
2706
|
applyReorder: Ge,
|
|
@@ -2701,55 +2711,55 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2701
2711
|
},
|
|
2702
2712
|
expandDetail: (e) => v.value.add(e),
|
|
2703
2713
|
collapseDetail: (e) => v.value.delete(e)
|
|
2704
|
-
}), (t, n) => (
|
|
2714
|
+
}), (t, n) => (B(), P("div", {
|
|
2705
2715
|
ref_key: "rootEl",
|
|
2706
|
-
ref:
|
|
2707
|
-
class:
|
|
2716
|
+
ref: f,
|
|
2717
|
+
class: z(["a-nested-list-editor", [`a-nested-list-editor--mode-${s.value}`, {
|
|
2708
2718
|
"a-nested-list-editor--readonly": e.readonly,
|
|
2709
2719
|
"a-nested-list-editor--disabled": e.disabled,
|
|
2710
|
-
"a-nested-list-editor--touch":
|
|
2711
|
-
"a-nested-list-editor--drag-enabled":
|
|
2720
|
+
"a-nested-list-editor--touch": W(h),
|
|
2721
|
+
"a-nested-list-editor--drag-enabled": Ye.value
|
|
2712
2722
|
}]])
|
|
2713
2723
|
}, [
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
class:
|
|
2718
|
-
"has-pending-changes":
|
|
2719
|
-
"pending-count":
|
|
2720
|
-
error:
|
|
2724
|
+
F("div", Ur, [
|
|
2725
|
+
ut.value ? (B(), P("div", Wr, [H(t.$slots, "header", R({ title: e.title }, fn.value), () => [e.title ? (B(), P("h3", Gr, U(e.title), 1)) : N("", !0), F("div", Kr, [W(D) ? H(t.$slots, "reorder-toolbar", It(jt(Q.value)), () => [
|
|
2726
|
+
L(De, {
|
|
2727
|
+
class: z({ "a-le-toolbar-status--pending": O.value }),
|
|
2728
|
+
"has-pending-changes": O.value,
|
|
2729
|
+
"pending-count": Ke.value,
|
|
2730
|
+
error: W(Re)
|
|
2721
2731
|
}, null, 8, [
|
|
2722
2732
|
"class",
|
|
2723
2733
|
"has-pending-changes",
|
|
2724
2734
|
"pending-count",
|
|
2725
2735
|
"error"
|
|
2726
2736
|
]),
|
|
2727
|
-
|
|
2737
|
+
L(X, {
|
|
2728
2738
|
variant: "text",
|
|
2729
2739
|
size: "small",
|
|
2730
|
-
disabled:
|
|
2731
|
-
onClick:
|
|
2740
|
+
disabled: W(Ie),
|
|
2741
|
+
onClick: W(We)
|
|
2732
2742
|
}, {
|
|
2733
|
-
default:
|
|
2743
|
+
default: K(() => [I(U(W(c)("common.sortable.reorderCancel")), 1)]),
|
|
2734
2744
|
_: 1
|
|
2735
2745
|
}, 8, ["disabled", "onClick"]),
|
|
2736
|
-
|
|
2746
|
+
L(X, {
|
|
2737
2747
|
color: "primary",
|
|
2738
2748
|
variant: "flat",
|
|
2739
2749
|
size: "small",
|
|
2740
2750
|
"prepend-icon": "mdi-check",
|
|
2741
|
-
loading:
|
|
2742
|
-
disabled:
|
|
2743
|
-
onClick:
|
|
2751
|
+
loading: W(Ie),
|
|
2752
|
+
disabled: W(Ie) || !O.value,
|
|
2753
|
+
onClick: W(Ge)
|
|
2744
2754
|
}, {
|
|
2745
|
-
default:
|
|
2755
|
+
default: K(() => [I(U(W(c)("common.sortable.reorderApply")), 1)]),
|
|
2746
2756
|
_: 1
|
|
2747
2757
|
}, 8, [
|
|
2748
2758
|
"loading",
|
|
2749
2759
|
"disabled",
|
|
2750
2760
|
"onClick"
|
|
2751
2761
|
])
|
|
2752
|
-
], void 0, 0) : (
|
|
2762
|
+
], void 0, 0) : (B(), P(A, { key: 1 }, [st.value && nt.value ? (B(), M(X, {
|
|
2753
2763
|
key: 0,
|
|
2754
2764
|
variant: "tonal",
|
|
2755
2765
|
color: "primary",
|
|
@@ -2757,141 +2767,141 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2757
2767
|
size: "x-small",
|
|
2758
2768
|
onClick: ct
|
|
2759
2769
|
}, {
|
|
2760
|
-
default:
|
|
2761
|
-
icon:
|
|
2770
|
+
default: K(() => [L(J, {
|
|
2771
|
+
icon: ot.value ? "mdi-unfold-less-horizontal" : "mdi-unfold-more-horizontal",
|
|
2762
2772
|
size: "18"
|
|
2763
|
-
}, null, 8, ["icon"]),
|
|
2773
|
+
}, null, 8, ["icon"]), L(Y, {
|
|
2764
2774
|
activator: "parent",
|
|
2765
2775
|
location: "bottom",
|
|
2766
|
-
text:
|
|
2776
|
+
text: ot.value ? W(c)("common.sortable.collapseAll") : W(c)("common.sortable.expandAll")
|
|
2767
2777
|
}, null, 8, ["text"])]),
|
|
2768
2778
|
_: 1
|
|
2769
|
-
})) :
|
|
2779
|
+
})) : st.value ? (B(), M(X, {
|
|
2770
2780
|
key: 1,
|
|
2771
2781
|
variant: "tonal",
|
|
2772
2782
|
color: "primary",
|
|
2773
2783
|
size: "small",
|
|
2774
|
-
"prepend-icon":
|
|
2784
|
+
"prepend-icon": ot.value ? "mdi-unfold-less-horizontal" : "mdi-unfold-more-horizontal",
|
|
2775
2785
|
onClick: ct
|
|
2776
2786
|
}, {
|
|
2777
|
-
default:
|
|
2787
|
+
default: K(() => [I(U(ot.value ? W(c)("common.sortable.collapseAll") : W(c)("common.sortable.expandAll")), 1)]),
|
|
2778
2788
|
_: 1
|
|
2779
|
-
}, 8, ["prepend-icon"])) :
|
|
2789
|
+
}, 8, ["prepend-icon"])) : N("", !0), tt.value ? H(t.$slots, "reorder-toggle", It(jt(fn.value)), () => [nt.value ? (B(), M(X, {
|
|
2780
2790
|
key: 0,
|
|
2781
2791
|
variant: "tonal",
|
|
2782
2792
|
color: "primary",
|
|
2783
2793
|
icon: "",
|
|
2784
2794
|
size: "x-small",
|
|
2785
2795
|
disabled: !ye.value,
|
|
2786
|
-
onClick:
|
|
2796
|
+
onClick: W(Ue)
|
|
2787
2797
|
}, {
|
|
2788
|
-
default:
|
|
2798
|
+
default: K(() => [L(J, {
|
|
2789
2799
|
icon: "mdi-sort",
|
|
2790
2800
|
size: "18"
|
|
2791
|
-
}),
|
|
2801
|
+
}), L(Y, {
|
|
2792
2802
|
activator: "parent",
|
|
2793
2803
|
location: "bottom",
|
|
2794
|
-
text:
|
|
2804
|
+
text: W(c)("common.sortable.reorder")
|
|
2795
2805
|
}, null, 8, ["text"])]),
|
|
2796
2806
|
_: 1
|
|
2797
|
-
}, 8, ["disabled", "onClick"])) : (
|
|
2807
|
+
}, 8, ["disabled", "onClick"])) : (B(), M(X, {
|
|
2798
2808
|
key: 1,
|
|
2799
2809
|
variant: "tonal",
|
|
2800
2810
|
color: "primary",
|
|
2801
2811
|
"prepend-icon": "mdi-sort",
|
|
2802
2812
|
size: "small",
|
|
2803
2813
|
disabled: !ye.value,
|
|
2804
|
-
onClick:
|
|
2814
|
+
onClick: W(Ue)
|
|
2805
2815
|
}, {
|
|
2806
|
-
default:
|
|
2816
|
+
default: K(() => [I(U(W(c)("common.sortable.reorder")), 1)]),
|
|
2807
2817
|
_: 1
|
|
2808
|
-
}, 8, ["disabled", "onClick"]))], void 0, 2) :
|
|
2809
|
-
e.loading ? (
|
|
2818
|
+
}, 8, ["disabled", "onClick"]))], void 0, 2) : N("", !0)], 64))])])])) : N("", !0),
|
|
2819
|
+
e.loading ? (B(), P("div", qr, [L(en, {
|
|
2810
2820
|
indeterminate: "",
|
|
2811
2821
|
color: "primary",
|
|
2812
2822
|
size: "32"
|
|
2813
|
-
})])) : e.error ? (
|
|
2823
|
+
})])) : e.error ? (B(), P("div", Jr, [L($t, {
|
|
2814
2824
|
type: "error",
|
|
2815
2825
|
variant: "tonal",
|
|
2816
2826
|
density: "compact",
|
|
2817
2827
|
border: "start"
|
|
2818
2828
|
}, {
|
|
2819
|
-
default:
|
|
2829
|
+
default: K(() => [I(U(e.error), 1)]),
|
|
2820
2830
|
_: 1
|
|
2821
|
-
})])) :
|
|
2831
|
+
})])) : T.value ? (B(), P("div", Yr, [H(t.$slots, "empty", {
|
|
2822
2832
|
readonly: e.readonly,
|
|
2823
2833
|
disabled: e.disabled,
|
|
2824
|
-
actions: { add:
|
|
2825
|
-
}, () => [
|
|
2826
|
-
title:
|
|
2827
|
-
"add-label":
|
|
2828
|
-
"can-add":
|
|
2829
|
-
onAdd:
|
|
2834
|
+
actions: { add: St }
|
|
2835
|
+
}, () => [L(qe, {
|
|
2836
|
+
title: Qe.value,
|
|
2837
|
+
"add-label": Ze.value,
|
|
2838
|
+
"can-add": Je.value,
|
|
2839
|
+
onAdd: St
|
|
2830
2840
|
}, null, 8, [
|
|
2831
2841
|
"title",
|
|
2832
2842
|
"add-label",
|
|
2833
2843
|
"can-add"
|
|
2834
|
-
])])])) : (
|
|
2835
|
-
key:
|
|
2844
|
+
])])])) : (B(), P("div", {
|
|
2845
|
+
key: ft.value,
|
|
2836
2846
|
ref_key: "rowsContainer",
|
|
2837
|
-
ref:
|
|
2838
|
-
class:
|
|
2839
|
-
}, [
|
|
2840
|
-
class:
|
|
2847
|
+
ref: E,
|
|
2848
|
+
class: z(["a-nested-list-editor__rows", { "a-nested-list-editor__rows--dragging": k.value !== null }])
|
|
2849
|
+
}, [F("div", {
|
|
2850
|
+
class: z([Zr, "a-nested-list-editor__group--root"]),
|
|
2841
2851
|
"data-parent-id": ""
|
|
2842
|
-
}, [(
|
|
2852
|
+
}, [(B(!0), P(A, null, Vt(Dn.value, (e) => (B(), M(Br, {
|
|
2843
2853
|
key: String(e.key),
|
|
2844
2854
|
vi: e,
|
|
2845
|
-
"view-items":
|
|
2846
|
-
"drag-state":
|
|
2855
|
+
"view-items": w.value,
|
|
2856
|
+
"drag-state": k.value,
|
|
2847
2857
|
context: Tn.value,
|
|
2848
2858
|
callbacks: En
|
|
2849
2859
|
}, {
|
|
2850
|
-
item:
|
|
2851
|
-
"item-compact":
|
|
2852
|
-
"item-readonly":
|
|
2853
|
-
"item-status":
|
|
2854
|
-
"item-footer":
|
|
2855
|
-
"item-actions":
|
|
2856
|
-
"before-item":
|
|
2857
|
-
"after-item":
|
|
2860
|
+
item: K((e) => [H(t.$slots, "item", R({ ref_for: !0 }, e))]),
|
|
2861
|
+
"item-compact": K((e) => [H(t.$slots, "item-compact", R({ ref_for: !0 }, e))]),
|
|
2862
|
+
"item-readonly": K((e) => [H(t.$slots, "item-readonly", R({ ref_for: !0 }, e))]),
|
|
2863
|
+
"item-status": K((e) => [H(t.$slots, "item-status", R({ ref_for: !0 }, e))]),
|
|
2864
|
+
"item-footer": K((e) => [H(t.$slots, "item-footer", R({ ref_for: !0 }, e))]),
|
|
2865
|
+
"item-actions": K((e) => [H(t.$slots, "item-actions", R({ ref_for: !0 }, e))]),
|
|
2866
|
+
"before-item": K((e) => [H(t.$slots, "before-item", R({ ref_for: !0 }, e))]),
|
|
2867
|
+
"after-item": K((e) => [H(t.$slots, "after-item", R({ ref_for: !0 }, e))]),
|
|
2858
2868
|
_: 3
|
|
2859
2869
|
}, 8, [
|
|
2860
2870
|
"vi",
|
|
2861
2871
|
"view-items",
|
|
2862
2872
|
"drag-state",
|
|
2863
2873
|
"context"
|
|
2864
|
-
]))), 128))], 2),
|
|
2874
|
+
]))), 128))], 2), xt.value === null ? N("", !0) : (B(), P(A, { key: 0 }, [xt.value.connector === null ? N("", !0) : (B(), P("div", {
|
|
2865
2875
|
key: 0,
|
|
2866
2876
|
class: "a-nested-list-editor__drop-connector",
|
|
2867
|
-
style:
|
|
2868
|
-
left: `${
|
|
2869
|
-
top: `${
|
|
2870
|
-
height: `${
|
|
2877
|
+
style: Lt({
|
|
2878
|
+
left: `${xt.value.connector.left}px`,
|
|
2879
|
+
top: `${xt.value.connector.top}px`,
|
|
2880
|
+
height: `${xt.value.connector.height}px`
|
|
2871
2881
|
})
|
|
2872
|
-
}, null, 4)),
|
|
2882
|
+
}, null, 4)), F("div", {
|
|
2873
2883
|
class: "a-nested-list-editor__drop-line",
|
|
2874
|
-
style:
|
|
2875
|
-
top: `${
|
|
2876
|
-
left: `${
|
|
2877
|
-
right: `${
|
|
2884
|
+
style: Lt({
|
|
2885
|
+
top: `${xt.value.line.top}px`,
|
|
2886
|
+
left: `${xt.value.line.left}px`,
|
|
2887
|
+
right: `${xt.value.line.right}px`
|
|
2878
2888
|
})
|
|
2879
|
-
}, [...n[3] ||= [
|
|
2880
|
-
|
|
2889
|
+
}, [...n[3] ||= [F("span", { class: "a-nested-list-editor__drop-line-dot" }, null, -1)]], 4)], 64))], 2)),
|
|
2890
|
+
Je.value && !e.loading && !e.error && !T.value ? H(t.$slots, "add-button", {
|
|
2881
2891
|
readonly: e.readonly,
|
|
2882
2892
|
disabled: e.disabled,
|
|
2883
|
-
props: { onClick:
|
|
2884
|
-
actions: { add:
|
|
2885
|
-
}, () => [
|
|
2893
|
+
props: { onClick: St },
|
|
2894
|
+
actions: { add: St }
|
|
2895
|
+
}, () => [F("button", {
|
|
2886
2896
|
type: "button",
|
|
2887
2897
|
class: "a-le-row-add",
|
|
2888
|
-
onClick:
|
|
2889
|
-
}, [
|
|
2898
|
+
onClick: St
|
|
2899
|
+
}, [L(J, {
|
|
2890
2900
|
icon: "mdi-plus",
|
|
2891
2901
|
size: "18"
|
|
2892
|
-
}),
|
|
2902
|
+
}), F("span", null, U(Ze.value), 1)])], void 0, 5) : N("", !0)
|
|
2893
2903
|
]),
|
|
2894
|
-
|
|
2904
|
+
L(mt, {
|
|
2895
2905
|
modelValue: hn.value,
|
|
2896
2906
|
"onUpdate:modelValue": n[0] ||= (e) => hn.value = e,
|
|
2897
2907
|
total: _n.value?.total ?? 0,
|
|
@@ -2904,15 +2914,15 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2904
2914
|
"current-index",
|
|
2905
2915
|
"item-label"
|
|
2906
2916
|
]),
|
|
2907
|
-
|
|
2917
|
+
L(Hr, {
|
|
2908
2918
|
modelValue: xn.value,
|
|
2909
2919
|
"onUpdate:modelValue": n[1] ||= (e) => xn.value = e,
|
|
2910
|
-
tree:
|
|
2920
|
+
tree: a.value,
|
|
2911
2921
|
"source-key": Sn.value?.key ?? null,
|
|
2912
|
-
"key-field":
|
|
2922
|
+
"key-field": W(ee),
|
|
2913
2923
|
"max-depth": e.maxDepth,
|
|
2914
2924
|
"resolve-label": cn,
|
|
2915
|
-
"calculate-subtree-depth":
|
|
2925
|
+
"calculate-subtree-depth": W(C).calculateSubtreeDepth,
|
|
2916
2926
|
onConfirm: wn
|
|
2917
2927
|
}, null, 8, [
|
|
2918
2928
|
"modelValue",
|
|
@@ -2922,17 +2932,17 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2922
2932
|
"max-depth",
|
|
2923
2933
|
"calculate-subtree-depth"
|
|
2924
2934
|
]),
|
|
2925
|
-
|
|
2926
|
-
modelValue:
|
|
2927
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
2928
|
-
title:
|
|
2929
|
-
text:
|
|
2930
|
-
"confirm-label":
|
|
2931
|
-
"cancel-label":
|
|
2932
|
-
error:
|
|
2933
|
-
"in-flight":
|
|
2934
|
-
onConfirm:
|
|
2935
|
-
onCancel:
|
|
2935
|
+
L(Ae, {
|
|
2936
|
+
modelValue: W(Mt),
|
|
2937
|
+
"onUpdate:modelValue": n[2] ||= (e) => Nt(Mt) ? Mt.value = e : null,
|
|
2938
|
+
title: $e.value,
|
|
2939
|
+
text: et.value,
|
|
2940
|
+
"confirm-label": W(c)("common.sortable.delete"),
|
|
2941
|
+
"cancel-label": W(c)("common.button.cancel"),
|
|
2942
|
+
error: W(Bt),
|
|
2943
|
+
"in-flight": W(Pt),
|
|
2944
|
+
onConfirm: W(Wt),
|
|
2945
|
+
onCancel: W(Jt)
|
|
2936
2946
|
}, null, 8, [
|
|
2937
2947
|
"modelValue",
|
|
2938
2948
|
"title",
|
|
@@ -2944,15 +2954,15 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2944
2954
|
"onConfirm",
|
|
2945
2955
|
"onCancel"
|
|
2946
2956
|
]),
|
|
2947
|
-
|
|
2948
|
-
n:
|
|
2949
|
-
total:
|
|
2957
|
+
F("div", Xr, U(W(mn).grabbedKey.value === null ? "" : W(c)("common.sortable.keyboardGrab.status", {
|
|
2958
|
+
n: W(mn).grabbedIndex.value + 1,
|
|
2959
|
+
total: W(mn).totalCount.value
|
|
2950
2960
|
})), 1)
|
|
2951
2961
|
], 2));
|
|
2952
2962
|
}
|
|
2953
|
-
}),
|
|
2963
|
+
}), ti = { class: "a-unsaved-sections" }, ni = /*#__PURE__*/ je(/* @__PURE__ */ kt({
|
|
2954
2964
|
__name: "AUnsavedConfirmDialog",
|
|
2955
|
-
props: /*@__PURE__*/
|
|
2965
|
+
props: /*@__PURE__*/ Pt({
|
|
2956
2966
|
title: { default: void 0 },
|
|
2957
2967
|
body: { default: void 0 },
|
|
2958
2968
|
stayLabel: { default: void 0 },
|
|
@@ -2965,49 +2975,49 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2965
2975
|
},
|
|
2966
2976
|
modelModifiers: {}
|
|
2967
2977
|
}),
|
|
2968
|
-
emits: /*@__PURE__*/
|
|
2978
|
+
emits: /*@__PURE__*/ Pt(["resolve"], ["update:modelValue"]),
|
|
2969
2979
|
setup(e, { emit: t }) {
|
|
2970
|
-
let n = t, r =
|
|
2980
|
+
let n = t, r = Gt(e, "modelValue"), { t: i } = Zt(), a = () => {
|
|
2971
2981
|
n("resolve", !1);
|
|
2972
2982
|
}, o = () => {
|
|
2973
2983
|
n("resolve", !0);
|
|
2974
2984
|
};
|
|
2975
|
-
return (t, n) => (
|
|
2985
|
+
return (t, n) => (B(), M(hn, {
|
|
2976
2986
|
modelValue: r.value,
|
|
2977
2987
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
2978
2988
|
"max-width": "480",
|
|
2979
2989
|
persistent: ""
|
|
2980
2990
|
}, {
|
|
2981
|
-
default:
|
|
2982
|
-
default:
|
|
2983
|
-
|
|
2984
|
-
default:
|
|
2991
|
+
default: K(() => [L(tn, null, {
|
|
2992
|
+
default: K(() => [
|
|
2993
|
+
L(an, null, {
|
|
2994
|
+
default: K(() => [I(U(e.title ?? W(i)("common.sortable.unsavedChanges.title")), 1)]),
|
|
2985
2995
|
_: 1
|
|
2986
2996
|
}),
|
|
2987
|
-
|
|
2988
|
-
default:
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
], 64)) : (
|
|
2997
|
+
L(rn, null, {
|
|
2998
|
+
default: K(() => [e.body ? (B(), P(A, { key: 0 }, [I(U(e.body), 1)], 64)) : e.dirtyLabels.length ? (B(), P(A, { key: 1 }, [
|
|
2999
|
+
I(U(W(i)("common.sortable.unsavedChanges.sectionsIntro")) + " ", 1),
|
|
3000
|
+
F("ul", ti, [(B(!0), P(A, null, Vt(e.dirtyLabels, (e, t) => (B(), P("li", { key: t }, U(e), 1))), 128))]),
|
|
3001
|
+
I(" " + U(W(i)("common.sortable.unsavedChanges.leaveQuestion")), 1)
|
|
3002
|
+
], 64)) : (B(), P(A, { key: 2 }, [I(U(W(i)("common.sortable.unsavedChanges.body")), 1)], 64))]),
|
|
2993
3003
|
_: 1
|
|
2994
3004
|
}),
|
|
2995
|
-
|
|
2996
|
-
default:
|
|
2997
|
-
|
|
2998
|
-
|
|
3005
|
+
L(nn, null, {
|
|
3006
|
+
default: K(() => [
|
|
3007
|
+
L(Qt),
|
|
3008
|
+
L(X, {
|
|
2999
3009
|
variant: "text",
|
|
3000
3010
|
onClick: a
|
|
3001
3011
|
}, {
|
|
3002
|
-
default:
|
|
3012
|
+
default: K(() => [I(U(e.stayLabel ?? W(i)("common.sortable.unsavedChanges.stay")), 1)]),
|
|
3003
3013
|
_: 1
|
|
3004
3014
|
}),
|
|
3005
|
-
|
|
3015
|
+
L(X, {
|
|
3006
3016
|
color: "warning",
|
|
3007
3017
|
variant: "flat",
|
|
3008
3018
|
onClick: o
|
|
3009
3019
|
}, {
|
|
3010
|
-
default:
|
|
3020
|
+
default: K(() => [I(U(e.discardLabel ?? W(i)("common.sortable.unsavedChanges.discard")), 1)]),
|
|
3011
3021
|
_: 1
|
|
3012
3022
|
})
|
|
3013
3023
|
]),
|
|
@@ -3019,17 +3029,17 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
3019
3029
|
_: 1
|
|
3020
3030
|
}, 8, ["modelValue"]));
|
|
3021
3031
|
}
|
|
3022
|
-
}), [["__scopeId", "data-v-8342a164"]]),
|
|
3023
|
-
function
|
|
3024
|
-
let t =
|
|
3032
|
+
}), [["__scopeId", "data-v-8342a164"]]), ri = 8e3, ii = (e) => e == null ? !1 : typeof e == "boolean" ? e : e instanceof Set ? e.size > 0 : Array.isArray(e) ? e.length > 0 : !!e, ai = (e, t) => e === void 0 ? t : typeof e == "boolean" ? e : e.value;
|
|
3033
|
+
function oi(e) {
|
|
3034
|
+
let t = gt();
|
|
3025
3035
|
if (e.ownSections) {
|
|
3026
|
-
let n = e.ownSections, r = Symbol("unsaved.section.own"), i =
|
|
3036
|
+
let n = e.ownSections, r = Symbol("unsaved.section.own"), i = j(() => {
|
|
3027
3037
|
let e = n();
|
|
3028
3038
|
return Array.isArray(e) ? e : [e];
|
|
3029
3039
|
});
|
|
3030
3040
|
t.register(r, i);
|
|
3031
3041
|
}
|
|
3032
|
-
let n =
|
|
3042
|
+
let n = j(() => e.sources.some((e) => ii(e.value)) || t.dirtyLabels.value.length > 0), r = V(!1), i = null, a = !1, o = null, s = () => {
|
|
3033
3043
|
o !== null && (clearTimeout(o), o = null);
|
|
3034
3044
|
}, c = () => a ? (a = !1, s(), Promise.resolve(!0)) : new Promise((e) => {
|
|
3035
3045
|
i = e, r.value = !0;
|
|
@@ -3038,22 +3048,22 @@ function ii(e) {
|
|
|
3038
3048
|
}, u = () => {
|
|
3039
3049
|
a = !0, s(), o = setTimeout(() => {
|
|
3040
3050
|
a = !1, o = null;
|
|
3041
|
-
},
|
|
3051
|
+
}, ri);
|
|
3042
3052
|
}, d = () => {
|
|
3043
3053
|
a = !1, s();
|
|
3044
3054
|
};
|
|
3045
|
-
if (
|
|
3046
|
-
|
|
3055
|
+
if (ai(e.guardRoute, !0) && At()) try {
|
|
3056
|
+
$(async () => !n.value || await c());
|
|
3047
3057
|
} catch {}
|
|
3048
3058
|
let f = [s], p = !1;
|
|
3049
|
-
if (
|
|
3059
|
+
if (ai(e.guardWindowUnload, !0)) {
|
|
3050
3060
|
let e = (e) => {
|
|
3051
3061
|
n.value && (e.preventDefault(), e.returnValue = "");
|
|
3052
3062
|
};
|
|
3053
3063
|
typeof window < "u" && (window.addEventListener("beforeunload", e), f.push(() => window.removeEventListener("beforeunload", e)));
|
|
3054
3064
|
}
|
|
3055
3065
|
if (e.guardDialogModel) {
|
|
3056
|
-
let t = e.guardDialogModel, r = !1, i =
|
|
3066
|
+
let t = e.guardDialogModel, r = !1, i = G(t, async (e, i) => {
|
|
3057
3067
|
if (r) {
|
|
3058
3068
|
r = !1;
|
|
3059
3069
|
return;
|
|
@@ -3070,7 +3080,7 @@ function ii(e) {
|
|
|
3070
3080
|
let m = () => {
|
|
3071
3081
|
p || (p = !0, l(!1), f.forEach((e) => e()));
|
|
3072
3082
|
};
|
|
3073
|
-
return
|
|
3083
|
+
return At() && Rt(m), {
|
|
3074
3084
|
hasUnsavedChanges: n,
|
|
3075
3085
|
dirtyLabels: t.dirtyLabels,
|
|
3076
3086
|
promptOpen: r,
|
|
@@ -3082,7 +3092,7 @@ function ii(e) {
|
|
|
3082
3092
|
}
|
|
3083
3093
|
//#endregion
|
|
3084
3094
|
//#region src/labs/unsavedGuard/useGuardedDelete.ts
|
|
3085
|
-
function
|
|
3095
|
+
function si(e, t) {
|
|
3086
3096
|
return (...n) => {
|
|
3087
3097
|
e.acknowledge();
|
|
3088
3098
|
let r;
|
|
@@ -3098,8 +3108,8 @@ function ai(e, t) {
|
|
|
3098
3108
|
}
|
|
3099
3109
|
//#endregion
|
|
3100
3110
|
//#region src/labs/listEditor/composables/useListEditor.ts
|
|
3101
|
-
function
|
|
3102
|
-
let r =
|
|
3111
|
+
function ci(e, t = {}) {
|
|
3112
|
+
let r = t.keyField ?? "id", i = t.positionField ?? "position", a = t.positionMultiplier ?? 1, o = t.updatePosition === !0;
|
|
3103
3113
|
o && r === i && console.warn(`[list-editor] key-field === position-field ("${r}") with update-position enabled. Reordering renumbers positions and thus changes row keys, breaking dirty/validity tracking. Point key-field at a stable identity field (e.g. "id").`);
|
|
3104
3114
|
let s = /* @__PURE__ */ new Set(), c = (e) => {
|
|
3105
3115
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = 0;
|
|
@@ -3113,7 +3123,7 @@ function oi(e, n = {}) {
|
|
|
3113
3123
|
if (i === 0 && n.size === 0) return;
|
|
3114
3124
|
let a = `${i}|${[...n].sort().join(",")}`;
|
|
3115
3125
|
s.has(a) || (s.add(a), i > 0 && console.warn(`[list-editor] ${i} row(s) resolve to an undefined key (key-field "${r}"). Point key-field at a field every item has, or give new items unique temp ids (see nextListEditorTempId).`), n.size > 0 && console.warn(`[list-editor] duplicate row keys (key-field "${r}"): ${[...n].join(", ")}. Row keys must be unique — dirty tracking and validation rails target rows by key.`));
|
|
3116
|
-
}, l =
|
|
3126
|
+
}, l = j(() => {
|
|
3117
3127
|
let t = e.value.map((e, t) => ({
|
|
3118
3128
|
key: e[r],
|
|
3119
3129
|
index: t,
|
|
@@ -3121,7 +3131,7 @@ function oi(e, n = {}) {
|
|
|
3121
3131
|
position: e[i]
|
|
3122
3132
|
}));
|
|
3123
3133
|
return c(t), t;
|
|
3124
|
-
}), u = (e) =>
|
|
3134
|
+
}), u = (e) => n(e, {
|
|
3125
3135
|
positionField: i,
|
|
3126
3136
|
positionMultiplier: a
|
|
3127
3137
|
}), d = (t) => {
|
|
@@ -3167,10 +3177,10 @@ function oi(e, n = {}) {
|
|
|
3167
3177
|
}
|
|
3168
3178
|
//#endregion
|
|
3169
3179
|
//#region src/labs/listEditor/composables/useNestedUnsavedKeys.ts
|
|
3170
|
-
function
|
|
3171
|
-
let e =
|
|
3180
|
+
function li() {
|
|
3181
|
+
let e = V(/* @__PURE__ */ new Map()), t = /* @__PURE__ */ new Set(), n = (n) => e.value.get(n) ?? t, r = (t, n) => {
|
|
3172
3182
|
n.size === 0 ? e.value.delete(t) : e.value.set(t, n), e.value = new Map(e.value);
|
|
3173
|
-
}, i =
|
|
3183
|
+
}, i = j(() => {
|
|
3174
3184
|
let t = /* @__PURE__ */ new Set();
|
|
3175
3185
|
for (let [n, r] of e.value.entries()) for (let e of r) t.add(`${String(n)}:${String(e)}`);
|
|
3176
3186
|
return t;
|
|
@@ -3179,10 +3189,10 @@ function si() {
|
|
|
3179
3189
|
getForParent: n,
|
|
3180
3190
|
setForParent: r,
|
|
3181
3191
|
merged: i,
|
|
3182
|
-
count:
|
|
3192
|
+
count: j(() => i.value.size)
|
|
3183
3193
|
};
|
|
3184
3194
|
}
|
|
3185
3195
|
//#endregion
|
|
3186
|
-
export {
|
|
3196
|
+
export { Sn as ADatatableOrdering, kn as ADatatablePagination, ke as AFilterBooleanSelect, Pe as AFilterDatetimePicker, e as AFilterInteger, rt as AFilterRemoteAutocomplete, D as AFilterRemoteAutocompleteWithMinimal, ft as AFilterString, et as AFilterTimeInterval, ut as AFilterValueObjectOptionsSelect, ee as AFilterWrapper, yn as AFilterWrapperSidebar, a as AFilterWrapperSubjectSelect, pt as AFormRemoteAutocomplete, Ot as AFormRemoteAutocompleteWithCached, gr as AListEditor, ei as ANestedSortableListEditor, $e as ASortableListEditor, Xn as ASubjectSelect, ni as AUnsavedConfirmDialog, ue as DatatablePaginationKey, s as FilterConfigKey, xt as FilterDataKey, pe as FilterInnerConfigKey, p as FilterInnerDataKey, oe as FiltersSelected, St as ListEditorStateScopeKey, Fe as SharedReorderRegistryKey, ze as TimeIntervalSpecialOptions, ve as UserAdminConfigLayoutType, ge as UserAdminConfigLayoutTypeDefault, ye as UserAdminConfigType, C as UserAdminConfigTypeDefault, Ln as createDatatableColumnsConfig, Ce as createFilter, vt as createFilterStore, ce as createListEditorStateScope, Me as generateListQuery, Ke as nextListEditorTempId, o as provideListEditorStateScope, n as renumberPositions, Ue as sortByPosition, S as sortByPositionDeep, jn as useApiFetchByIds, Ie as useApiFetchList, Mn as useApiFetchListBatch, Ve as useApiQueryBuilder, y as useApiRequest, Ee as useFilterHelpers, si as useGuardedDelete, Pn as useJobApi, ci as useListEditor, ne as useListEditorController, yt as useListEditorStateEntry, c as useNestedListEditor, d as useNestedListEditorController, de as useNestedListEditorStateEntry, li as useNestedUnsavedKeys, ht as usePagination, Rn as useSubjectSelect, oi as useUnsavedChangesGuard, Tt as useUnsavedSection, st as useUserAdminConfigApi, me as useUserAdminConfigFactory };
|
|
3187
3197
|
|
|
3188
3198
|
//# sourceMappingURL=labs.js.map
|