@anzusystems/common-admin 1.47.0-beta.dev-1788764220 → 1.47.0-beta.dev-1788935853
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-CHvecQMq.mjs} +1056 -1006
- package/dist/AFormRemoteAutocomplete-CHvecQMq.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 +763 -17
- package/dist/common-admin.js +5691 -5220
- package/dist/common-admin.js.map +1 -1
- package/dist/{esm-CUYEQ0A0.mjs → esm-BP456dlq.mjs} +2 -2
- package/dist/{esm-CUYEQ0A0.mjs.map → esm-BP456dlq.mjs.map} +1 -1
- package/dist/labs.d.ts +18 -2
- package/dist/labs.js +989 -979
- package/dist/labs.js.map +1 -1
- package/dist/{webfontloader-CwEmCwuM.mjs → webfontloader-ClDWjC2G.mjs} +2 -2
- package/dist/{webfontloader-CwEmCwuM.mjs.map → webfontloader-ClDWjC2G.mjs.map} +1 -1
- package/package.json +11 -8
- 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 j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent 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
|
|
13
|
-
import { VBtn as
|
|
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
|
|
1
|
+
import { $ as e, $r as t, A as n, At as r, B as i, Bt as a, C as o, Cn as s, Ct as c, D as l, Dn as u, Dt as d, E as f, En as p, Et as m, F as h, I as g, J as _, K as v, Kn as y, Kr as b, L as ee, M as te, Mn as x, Mt as ne, N as re, Nn as ie, Nt as ae, O as S, On as oe, Ot as se, P as ce, Q as le, Qn as C, Qr as ue, R as de, Rt as fe, S as pe, St as me, T as he, Tt as w, Un as T, V as ge, X as _e, Y as E, Yn as ve, Z as ye, _ as be, _t as xe, a as Se, b as Ce, bn as we, bt as Te, c as Ee, ci as D, ct as De, d as Oe, di as ke, dt as Ae, ei as je, et as Me, f as Ne, fi as O, ft as Pe, g as Fe, gn as Ie, gt as Le, h as Re, hn as ze, ht as Be, i as Ve, it as k, j as He, jt as Ue, k as We, kn as Ge, kt as Ke, l as qe, lt as Je, m as Ye, mt as Xe, n as Ze, nr as Qe, nt as $e, o as et, ot as tt, p as nt, pi as rt, pt as it, q as at, qn as ot, qr as st, r as ct, rt as lt, s as ut, st as dt, t as ft, ti as A, u as pt, ui as mt, 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, zt as kt } from "./AFormRemoteAutocomplete-CHvecQMq.mjs";
|
|
2
|
+
import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, getCurrentInstance as At, guardReactiveProps as jt, inject as Mt, isRef as Nt, mergeModels as Pt, mergeProps as B, nextTick as Ft, normalizeClass as V, normalizeProps as It, normalizeStyle as Lt, onBeforeUnmount as Rt, onMounted as zt, openBlock as H, provide as Bt, ref as U, renderList as Vt, renderSlot as W, resolveComponent as Ht, shallowRef as Ut, toDisplayString as G, toRaw as Wt, unref as K, useModel as Gt, useSlots as Kt, useTemplateRef as qt, vShow as Jt, watch as q, withCtx as J, withDirectives as Yt, withKeys as Xt, withModifiers as Y } 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 X } 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 on } from "vuetify/components/VTooltip";
|
|
10
|
+
import { useDebounceFn as sn, useThrottleFn as cn } from "@vueuse/core";
|
|
11
|
+
import { Intersect as ln } from "vuetify/directives";
|
|
12
|
+
import { useDisplay as un } from "vuetify";
|
|
13
|
+
import { VBtn as Z } from "vuetify/components/VBtn";
|
|
14
|
+
import { VBtnToggle as dn } from "vuetify/components/VBtnToggle";
|
|
15
|
+
import { VList as fn, VListItem as Q, VListItemTitle as pn } from "vuetify/components/VList";
|
|
16
|
+
import { VMenu as $ } from "vuetify/components/VMenu";
|
|
17
|
+
import { VToolbar as mn } from "vuetify/components/VToolbar";
|
|
18
|
+
import { onBeforeRouteLeave as hn } from "vue-router";
|
|
19
|
+
import gn from "axios";
|
|
20
|
+
import { VDialog as _n } from "vuetify/components/VDialog";
|
|
21
|
+
import { VForm as vn } from "vuetify/components/VForm";
|
|
22
|
+
import { VRadio as yn } from "vuetify/components/VRadio";
|
|
23
|
+
import { VRadioGroup as bn } from "vuetify/components/VRadioGroup";
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/labs/filters/AFilterWrapperSidebar.vue
|
|
26
|
-
var
|
|
26
|
+
var xn = /* @__PURE__ */ z({
|
|
27
27
|
__name: "AFilterWrapperSidebar",
|
|
28
28
|
props: { formName: { default: "search" } },
|
|
29
29
|
emits: ["submit"],
|
|
30
30
|
setup(e, { expose: t, emit: n }) {
|
|
31
|
-
let
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
let { clearAll:
|
|
37
|
-
|
|
31
|
+
let i = n, a = Mt(w), o = Mt(m);
|
|
32
|
+
if (O(a) || O(o)) throw Error("Incorrect provide/inject config.");
|
|
33
|
+
Bt(r, U(0));
|
|
34
|
+
let s = U(/* @__PURE__ */ new Map());
|
|
35
|
+
Bt(Ke, s);
|
|
36
|
+
let { clearAll: c, clearAllFilterSelected: l } = wt(), u = () => {
|
|
37
|
+
i("submit");
|
|
38
38
|
};
|
|
39
39
|
return t({ resetFilter: () => {
|
|
40
|
-
|
|
41
|
-
} }), (t, n) => (
|
|
40
|
+
c(o, a), l(o, a, s);
|
|
41
|
+
} }), (t, n) => (H(), N(vn, {
|
|
42
42
|
name: e.formName,
|
|
43
|
-
onSubmit:
|
|
44
|
-
onKeyup:
|
|
43
|
+
onSubmit: Y(u, ["prevent"]),
|
|
44
|
+
onKeyup: Xt(u, ["enter"])
|
|
45
45
|
}, {
|
|
46
|
-
default:
|
|
46
|
+
default: J(() => [W(t.$slots, "default")]),
|
|
47
47
|
_: 3
|
|
48
48
|
}, 8, ["name"]));
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), Sn = { class: "d-flex align-center justify-center" }, Cn = { class: "text-body-small mr-1" }, wn = /* @__PURE__ */ z({
|
|
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 =
|
|
69
|
-
if (
|
|
70
|
-
let { t: o } =
|
|
68
|
+
let n = e, r = t, i = Gt(e, "modelValue"), a = Mt(xt);
|
|
69
|
+
if (O(a)) throw Error("Incorrect provide/inject config.");
|
|
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: C.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: C.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: C.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: C.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: ve,
|
|
104
|
+
order: C.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: C.Desc
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
{
|
|
@@ -117,7 +117,7 @@ var _n = /* @__PURE__ */ Et({
|
|
|
117
117
|
titleT: "common.system.datatable.ordering.oldest",
|
|
118
118
|
sortBy: {
|
|
119
119
|
key: "createdAt",
|
|
120
|
-
order:
|
|
120
|
+
order: C.Asc
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
], u = M(() => {
|
|
@@ -126,47 +126,51 @@ var _n = /* @__PURE__ */ Et({
|
|
|
126
126
|
}), d = M(() => 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 q(i, (e, t) => {
|
|
135
139
|
if (e === t) return;
|
|
136
140
|
let r = d.value.find((t) => t.id === e);
|
|
137
|
-
if (!
|
|
138
|
-
if (
|
|
141
|
+
if (!O(r)) {
|
|
142
|
+
if (O(n.paginationUpdateCustomCb)) {
|
|
139
143
|
p(r);
|
|
140
144
|
return;
|
|
141
145
|
}
|
|
142
146
|
n.paginationUpdateCustomCb(r, a);
|
|
143
147
|
}
|
|
144
|
-
}),
|
|
148
|
+
}), q(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
|
-
|
|
148
|
-
}, { immediate: !0 }), (e, t) => (
|
|
151
|
+
O(n) || (i.value = n.id);
|
|
152
|
+
}, { immediate: !0 }), (e, t) => (H(), F("div", Sn, [I("div", Cn, G(K(o)("common.system.datatable.ordering.title")) + ":", 1), R(Z, {
|
|
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: J(() => [L(G(u.value) + " ", 1), R($, {
|
|
156
160
|
activator: "parent",
|
|
157
161
|
location: "bottom",
|
|
158
162
|
"close-on-content-click": ""
|
|
159
163
|
}, {
|
|
160
|
-
default:
|
|
164
|
+
default: J(() => [R(fn, {
|
|
161
165
|
density: "compact",
|
|
162
166
|
class: "pa-0"
|
|
163
167
|
}, {
|
|
164
|
-
default:
|
|
168
|
+
default: J(() => [(H(!0), F(j, null, Vt(d.value, (e) => (H(), N(Q, {
|
|
165
169
|
key: e.id,
|
|
166
170
|
onClick: (t) => f(e)
|
|
167
171
|
}, {
|
|
168
|
-
default:
|
|
169
|
-
default:
|
|
172
|
+
default: J(() => [R(pn, { class: V({ "font-weight-bold": e.id === i.value }) }, {
|
|
173
|
+
default: J(() => [L(G(K(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
|
+
}), Tn = { class: "anzu-data-footer" }, En = {
|
|
182
186
|
key: 0,
|
|
183
187
|
class: "anzu-data-footer__page-limit"
|
|
184
|
-
},
|
|
188
|
+
}, Dn = { class: "anzu-data-footer__pagination" }, On = { class: "anzu-data-footer__icons-before" }, kn = { class: "current-page" }, An = { class: "anzu-data-footer__icons-after" }, jn = /* @__PURE__ */ z({
|
|
185
189
|
__name: "ADatatablePagination",
|
|
186
190
|
props: {
|
|
187
191
|
itemsPerPageOptions: { default: () => [
|
|
@@ -196,281 +200,287 @@ var _n = /* @__PURE__ */ Et({
|
|
|
196
200
|
},
|
|
197
201
|
emits: ["change"],
|
|
198
202
|
setup(e, { emit: t }) {
|
|
199
|
-
let n = t, r =
|
|
200
|
-
if (
|
|
201
|
-
let { t: i } =
|
|
202
|
-
|
|
203
|
+
let n = t, r = Mt(xt);
|
|
204
|
+
if (O(r)) throw Error("Incorrect provide/inject config.");
|
|
205
|
+
let { t: i } = Zt(), { setStoredPage: a } = ae(), o = Mt(c, void 0), s = Mt(w, void 0), l = M(() => o ?? ne(s?.general.system, s?.general.subject)), u = M(() => Math.ceil(r.value.totalCount / r.value.rowsPerPage)), d = M(() => r.value.page * r.value.rowsPerPage - r.value.rowsPerPage + 1), f = M(() => r.value.page * r.value.rowsPerPage - r.value.rowsPerPage + r.value.currentViewCount), p = M(() => r.value.page === 1), m = M(() => !D(r.value.hasNextPage) || r.value.page === u.value), h = M(() => D(r.value.hasNextPage) && r.value.page === u.value || r.value.hasNextPage === !1), g = M(() => D(r.value.hasNextPage) ? r.value.totalCount : r.value.hasNextPage ? f.value + 1 + "+" : f.value);
|
|
206
|
+
q(() => r.value.rowsPerPage, (e, t) => {
|
|
203
207
|
e !== t && (r.value.page = 1, n("change"));
|
|
204
|
-
}),
|
|
205
|
-
e !== t && (a(e), n("change"));
|
|
208
|
+
}), q(() => r.value.page, (e, t) => {
|
|
209
|
+
e !== t && (a(l.value, e), n("change"));
|
|
206
210
|
});
|
|
207
|
-
let
|
|
211
|
+
let _ = cn(() => {
|
|
208
212
|
r.value.page = 1;
|
|
209
|
-
}, 300),
|
|
210
|
-
r.value.page =
|
|
211
|
-
}, 300),
|
|
213
|
+
}, 300), v = cn(() => {
|
|
214
|
+
r.value.page = u.value;
|
|
215
|
+
}, 300), y = cn(() => {
|
|
212
216
|
r.value.page = r.value.page - 1;
|
|
213
|
-
}, 300),
|
|
217
|
+
}, 300), b = cn(() => {
|
|
214
218
|
r.value.page = r.value.page + 1;
|
|
215
219
|
}, 300);
|
|
216
|
-
return (t, n) => (
|
|
217
|
-
e.hideRecordsPerPage ? P("", !0) : (
|
|
218
|
-
modelValue:
|
|
219
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
220
|
+
return (t, n) => (H(), F("div", Tn, [
|
|
221
|
+
e.hideRecordsPerPage ? P("", !0) : (H(), F("div", En, [L(G(K(i)("common.system.datatable.itemsPerPage")) + ": ", 1), R(dn, {
|
|
222
|
+
modelValue: K(r).rowsPerPage,
|
|
223
|
+
"onUpdate:modelValue": n[0] ||= (e) => K(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: J(() => [(H(!0), F(j, null, Vt(e.itemsPerPageOptions, (e) => (H(), N(Z, {
|
|
226
230
|
key: e,
|
|
227
|
-
color: e ===
|
|
231
|
+
color: e === K(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: J(() => [L(G(e), 1)]),
|
|
234
238
|
_: 2
|
|
235
239
|
}, 1032, ["color", "value"]))), 128))]),
|
|
236
240
|
_: 1
|
|
237
241
|
}, 8, ["modelValue"])])),
|
|
238
|
-
I("div",
|
|
239
|
-
I("div",
|
|
240
|
-
disabled:
|
|
242
|
+
I("div", Dn, G(d.value) + " - " + G(f.value) + " " + G(K(i)("common.system.datatable.from")) + " " + G(g.value), 1),
|
|
243
|
+
I("div", On, [R(Z, {
|
|
244
|
+
disabled: p.value,
|
|
241
245
|
icon: "mdi-page-first",
|
|
242
246
|
size: "small",
|
|
243
247
|
variant: "text",
|
|
244
|
-
onClick:
|
|
245
|
-
}, null, 8, ["disabled", "onClick"]), R(
|
|
246
|
-
disabled:
|
|
248
|
+
onClick: Y(K(_), ["stop"])
|
|
249
|
+
}, null, 8, ["disabled", "onClick"]), R(Z, {
|
|
250
|
+
disabled: p.value,
|
|
247
251
|
icon: "mdi-chevron-left",
|
|
248
252
|
size: "small",
|
|
249
253
|
variant: "text",
|
|
250
|
-
onClick:
|
|
254
|
+
onClick: Y(K(y), ["stop"])
|
|
251
255
|
}, null, 8, ["disabled", "onClick"])]),
|
|
252
|
-
I("div",
|
|
253
|
-
I("div",
|
|
254
|
-
disabled:
|
|
256
|
+
I("div", kn, [I("span", null, G(K(r).page), 1)]),
|
|
257
|
+
I("div", An, [R(Z, {
|
|
258
|
+
disabled: h.value,
|
|
255
259
|
icon: "mdi-chevron-right",
|
|
256
260
|
size: "small",
|
|
257
261
|
variant: "text",
|
|
258
|
-
onClick:
|
|
259
|
-
}, null, 8, ["disabled", "onClick"]), R(
|
|
260
|
-
disabled:
|
|
262
|
+
onClick: Y(K(b), ["stop"])
|
|
263
|
+
}, null, 8, ["disabled", "onClick"]), R(Z, {
|
|
264
|
+
disabled: m.value,
|
|
261
265
|
icon: "mdi-page-last",
|
|
262
266
|
size: "small",
|
|
263
267
|
variant: "text",
|
|
264
|
-
onClick:
|
|
268
|
+
onClick: Y(K(v), ["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: t, system: n, entity: r, urlTemplate: i, urlParams:
|
|
272
|
+
}), Mn = (e, t, n = "id") => {
|
|
273
|
+
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, queryAddFilter: s, queryAdd: c } = Be(), 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
|
+
}, Nn = (e) => {
|
|
276
|
+
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: o, options: c = {}, isSearchApi: l = !1, field: d = "id", silentConsoleError: f = !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 n =
|
|
280
|
-
if (
|
|
281
|
-
let
|
|
282
|
-
...
|
|
283
|
+
let n = A(v) ? v : o, r = A(_) ? _ : i;
|
|
284
|
+
if (O(r)) throw Error("Url template is undefined");
|
|
285
|
+
let s = (O(n) ? r : a(r, n)) + Mn(e, l, d), u = await t().get(s, {
|
|
286
|
+
...c,
|
|
283
287
|
signal: g.signal
|
|
284
288
|
});
|
|
285
|
-
if (!
|
|
286
|
-
if (
|
|
287
|
-
if (
|
|
288
|
-
throw new
|
|
289
|
+
if (!kt(u.status)) throw new p(u.status);
|
|
290
|
+
if (u.data?.data) return u.data.data;
|
|
291
|
+
if (u.status === 204) return [];
|
|
292
|
+
throw new T();
|
|
289
293
|
} catch (e) {
|
|
290
294
|
if (e instanceof DOMException && e.name === "AbortError") return [];
|
|
291
|
-
throw
|
|
295
|
+
throw u(e) ? e : ie(e) ? new x(e, e.config?.url) : Ge(e) ? new oe(e, n, r, e) : Ct(e) ? new we(e, n, r, e) : bt(e) ? new s(e, e) : Et(e) ? new _t(e) : gn.isAxiosError(e) ? (f || console.error("Axios error: " + i, ...e.cause ? [e.cause] : []), new Ie(e)) : (f || console.error("AnzuFatalError: ", e), new T(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: t, system: n, entity: r, urlTemplate: i, urlParams:
|
|
304
|
+
}, Pn = (e) => {
|
|
305
|
+
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: o, options: c = {}, silentConsoleError: l = !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, f, 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 n =
|
|
309
|
-
if (
|
|
310
|
-
let { pagination:
|
|
311
|
-
...
|
|
312
|
-
signal:
|
|
312
|
+
let n = f.general.elastic || ee ? "/search" : "", r = A(_) ? _ : o, s = A(g) ? g : i;
|
|
313
|
+
if (O(s)) throw Error("Url template is undefined");
|
|
314
|
+
let { pagination: l } = ht(v, y ? C.Desc : C.Asc, { rowsPerPage: b }), u = (O(r) ? s : a(s, r)) + n, d = [], m = await t().get(u + Ae(l, e, f), {
|
|
315
|
+
...c,
|
|
316
|
+
signal: h.signal
|
|
313
317
|
});
|
|
314
|
-
if (!
|
|
315
|
-
if (
|
|
316
|
-
let n =
|
|
317
|
-
if (
|
|
318
|
-
|
|
319
|
-
let n = (await t().get(
|
|
320
|
-
...
|
|
321
|
-
signal:
|
|
318
|
+
if (!kt(m.status)) throw new p(m.status);
|
|
319
|
+
if (m.data) {
|
|
320
|
+
let n = m.data;
|
|
321
|
+
if (d.push(...n.data), it(n)) for (l.value.hasNextPage = n.hasNextPage; l.value.hasNextPage;) {
|
|
322
|
+
l.value.page++;
|
|
323
|
+
let n = (await t().get(u + Ae(l, e, f), {
|
|
324
|
+
...c,
|
|
325
|
+
signal: h.signal
|
|
322
326
|
})).data;
|
|
323
|
-
|
|
327
|
+
d.push(...n.data), l.value.hasNextPage = n.hasNextPage;
|
|
324
328
|
}
|
|
325
|
-
else if (
|
|
326
|
-
if (
|
|
327
|
-
let r = [], i = Math.ceil(
|
|
329
|
+
else if (Xe(n)) {
|
|
330
|
+
if (l.value.totalCount = n.totalCount, l.value.totalCount <= l.value.rowsPerPage) return d;
|
|
331
|
+
let r = [], i = Math.ceil(l.value.totalCount / l.value.rowsPerPage);
|
|
328
332
|
for (let n = 1; n < i; n++) {
|
|
329
333
|
let i = {
|
|
330
|
-
...
|
|
334
|
+
...l.value,
|
|
331
335
|
page: n + 1
|
|
332
|
-
}, a =
|
|
333
|
-
r.push(t().get(
|
|
334
|
-
...
|
|
335
|
-
signal:
|
|
336
|
+
}, a = U(i);
|
|
337
|
+
r.push(t().get(u + Ae(a, e, f), {
|
|
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
|
-
if (
|
|
345
|
-
throw new
|
|
348
|
+
if (m.status === 204) return [];
|
|
349
|
+
throw new T();
|
|
346
350
|
} catch (e) {
|
|
347
351
|
if (e instanceof DOMException && e.name === "AbortError") return [];
|
|
348
|
-
throw
|
|
352
|
+
throw u(e) ? e : ie(e) ? new x(e, e.config?.url) : Ge(e) ? new oe(e, n, r, e) : Ct(e) ? new we(e, n, r, e) : bt(e) ? new s(e, e) : Et(e) ? new _t(e) : gn.isAxiosError(e) ? (l || console.error("Axios error: " + i, ...e.cause ? [e.cause] : []), new Ie(e)) : (l || console.error("AnzuFatalError: ", e), new T(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
|
+
}, Fn = "/adm/v1/job";
|
|
362
|
+
function In(e, t) {
|
|
359
363
|
return {
|
|
360
|
-
useFetchJobList: () =>
|
|
364
|
+
useFetchJobList: () => Pe({
|
|
361
365
|
client: e,
|
|
362
366
|
system: t,
|
|
363
367
|
entity: "job",
|
|
364
|
-
urlTemplate:
|
|
368
|
+
urlTemplate: Fn
|
|
365
369
|
}),
|
|
366
|
-
fetchJob: (n) =>
|
|
370
|
+
fetchJob: (n) => fe(e, Fn + "/:id", { id: n }, t, "job"),
|
|
367
371
|
createJob: (n) => {
|
|
368
|
-
let r =
|
|
369
|
-
return
|
|
372
|
+
let r = st(n._resourceName).slice(4).replace("-kind-", "-kind/");
|
|
373
|
+
return Je(e, n, Fn + "/:type", { type: r }, t, "job");
|
|
370
374
|
},
|
|
371
|
-
deleteJob: (n) => g(e,
|
|
375
|
+
deleteJob: (n) => g(e, Fn + "/:id", { id: n }, t, "job")
|
|
372
376
|
};
|
|
373
377
|
}
|
|
374
378
|
//#endregion
|
|
375
379
|
//#region src/labs/filters/datatableColumns.ts
|
|
376
|
-
var
|
|
380
|
+
var Ln = {
|
|
377
381
|
key: "",
|
|
378
382
|
title: void 0,
|
|
379
383
|
sortable: !1,
|
|
380
384
|
fixed: !1
|
|
381
|
-
},
|
|
385
|
+
}, Rn = {
|
|
382
386
|
storeColumnsLocalStorage: !0,
|
|
383
387
|
disableActions: !1,
|
|
384
388
|
customI18n: void 0,
|
|
385
389
|
showExpand: !1
|
|
386
390
|
};
|
|
387
|
-
function
|
|
388
|
-
let
|
|
389
|
-
...
|
|
390
|
-
...
|
|
391
|
-
},
|
|
392
|
-
|
|
393
|
-
let
|
|
391
|
+
function zn(e, n, r, i, a = {}) {
|
|
392
|
+
let o = {
|
|
393
|
+
...Rn,
|
|
394
|
+
...a
|
|
395
|
+
}, s = o.customI18n ?? Qe, { t: c } = s.global || s, l;
|
|
396
|
+
ke(o.storeColumnsLocalStorage) ? l = o.storeColumnsLocalStorage : je(o.storeColumnsLocalStorage) && !0 === o.storeColumnsLocalStorage && (l = "table_" + r + "_" + i);
|
|
397
|
+
let u = e.map((e) => {
|
|
394
398
|
let t = {
|
|
395
|
-
...
|
|
399
|
+
...Ln,
|
|
396
400
|
...e
|
|
397
401
|
};
|
|
398
|
-
return
|
|
399
|
-
}),
|
|
402
|
+
return O(t.title) && (t.title = O(t.title) && ot.includes(t.key) ? c("common.model.tracking." + t.key) : O(t.title) && r && i ? c(r + "." + i + ".model." + t.key) : ""), t;
|
|
403
|
+
}), d = M(() => {
|
|
400
404
|
let e = [];
|
|
401
|
-
return
|
|
405
|
+
return o.showExpand && e.push({
|
|
402
406
|
key: "data-table-expand",
|
|
403
407
|
sortable: !1
|
|
404
|
-
}),
|
|
405
|
-
|
|
406
|
-
}),
|
|
408
|
+
}), u.forEach((t) => {
|
|
409
|
+
n.value.includes(t.key) || e.push(t);
|
|
410
|
+
}), o.disableActions || e.push({
|
|
407
411
|
key: "actions",
|
|
408
412
|
sortable: !1,
|
|
409
413
|
fixed: "end"
|
|
410
414
|
}), e;
|
|
411
|
-
}),
|
|
412
|
-
if (!
|
|
413
|
-
let e = localStorage.getItem(
|
|
415
|
+
}), f = () => {
|
|
416
|
+
if (!l || !localStorage) return;
|
|
417
|
+
let e = localStorage.getItem(l);
|
|
414
418
|
if (!e) return;
|
|
415
|
-
let
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
+
let r;
|
|
420
|
+
try {
|
|
421
|
+
r = JSON.parse(e);
|
|
422
|
+
} catch {
|
|
423
|
+
localStorage.removeItem(l);
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
mt(r) && t(r.hidden) && (n.value = r.hidden);
|
|
427
|
+
}, p = (e) => {
|
|
428
|
+
l && localStorage && localStorage.setItem(l, JSON.stringify({ hidden: e }));
|
|
419
429
|
};
|
|
420
|
-
return
|
|
421
|
-
|
|
422
|
-
}),
|
|
423
|
-
|
|
430
|
+
return zt(() => {
|
|
431
|
+
f();
|
|
432
|
+
}), q(n, (e) => {
|
|
433
|
+
p(e);
|
|
424
434
|
}), {
|
|
425
|
-
columnsAll:
|
|
426
|
-
columnsVisible:
|
|
427
|
-
columnsHidden:
|
|
435
|
+
columnsAll: u,
|
|
436
|
+
columnsVisible: d,
|
|
437
|
+
columnsHidden: n
|
|
428
438
|
};
|
|
429
439
|
}
|
|
430
440
|
//#endregion
|
|
431
441
|
//#region src/labs/subjectSelect/useSubjectSelect.ts
|
|
432
|
-
function
|
|
433
|
-
let u =
|
|
442
|
+
function Bn(e, t, n, r, i, a, o, s = null, c = void 0, l = !1) {
|
|
443
|
+
let u = U(!1), d = U([]), f = U([]), p = U(!1), { pagination: m, setSortBy: h, incrementPage: g } = ht(D(s) ? null : s.key, s?.order), { resetFilter: _, submitFilter: v } = me(a, o, {
|
|
434
444
|
storeFiltersLocalStorage: !1,
|
|
435
445
|
populateUrlParams: !1
|
|
436
|
-
}), { showErrorsDefault:
|
|
446
|
+
}), { showErrorsDefault: y } = ze(), { columnsVisible: b, columnsAll: ee, columnsHidden: te } = zn(e, t, n, r, {
|
|
437
447
|
storeColumnsLocalStorage: !1,
|
|
438
448
|
disableActions: !l
|
|
439
449
|
}), x = () => {
|
|
440
|
-
|
|
441
|
-
},
|
|
442
|
-
h(e.sortBy),
|
|
443
|
-
},
|
|
450
|
+
ie(), S();
|
|
451
|
+
}, ne = (e) => {
|
|
452
|
+
h(e.sortBy), S();
|
|
453
|
+
}, re = 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
|
}
|
|
453
|
-
},
|
|
463
|
+
}, ie = () => {
|
|
454
464
|
d.value = [], f.value = [];
|
|
455
|
-
},
|
|
465
|
+
}, ae = async () => {
|
|
456
466
|
p.value = !0;
|
|
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
|
-
},
|
|
465
|
-
await
|
|
474
|
+
}, S = sn(async () => {
|
|
475
|
+
await ae();
|
|
466
476
|
});
|
|
467
477
|
return {
|
|
468
478
|
items: d,
|
|
469
479
|
selected: f,
|
|
470
480
|
pagination: m,
|
|
471
|
-
columnsVisible:
|
|
481
|
+
columnsVisible: b,
|
|
472
482
|
columnsHidden: te,
|
|
473
|
-
columnsAll:
|
|
483
|
+
columnsAll: ee,
|
|
474
484
|
filterTouched: u,
|
|
475
485
|
loading: p,
|
|
476
486
|
onRowClick: (e) => {
|
|
@@ -483,20 +493,20 @@ function In(e, t, n, r, i, a, o, s = null, c = void 0, l = !1) {
|
|
|
483
493
|
let i = r.querySelector("input");
|
|
484
494
|
i && i.click();
|
|
485
495
|
},
|
|
486
|
-
onFetchNextPage:
|
|
496
|
+
onFetchNextPage: re,
|
|
487
497
|
onOpen: x,
|
|
488
|
-
sortByChange:
|
|
489
|
-
getList:
|
|
490
|
-
resetFilter: () =>
|
|
491
|
-
submitFilter: () =>
|
|
498
|
+
sortByChange: ne,
|
|
499
|
+
getList: S,
|
|
500
|
+
resetFilter: () => _(m, S),
|
|
501
|
+
submitFilter: () => v(m, S)
|
|
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 Vn = { class: "d-flex flex-column w-100 px-1 align-center" }, Hn = { class: "d-flex justify-space-between w-100 align-center" }, Un = { class: "d-flex align-center" }, Wn = { class: "d-flex align-center" }, Gn = { class: "subject-select__sidebar system-border-r" }, Kn = { class: "subject-select-filter" }, qn = { class: "subject-select__content" }, Jn = {
|
|
497
507
|
key: 0,
|
|
498
508
|
class: "d-flex w-100 align-center justify-center pa-4"
|
|
499
|
-
},
|
|
509
|
+
}, Yn = { class: "subject-select__actions system-border-t" }, Xn = { key: 0 }, Zn = { key: 1 }, Qn = /* @__PURE__ */ z({
|
|
500
510
|
__name: "ASubjectSelect",
|
|
501
511
|
props: {
|
|
502
512
|
selectedItems: {},
|
|
@@ -527,122 +537,122 @@ 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 = U(!1), o = M({
|
|
531
541
|
get() {
|
|
532
|
-
return
|
|
542
|
+
return O(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 = M({
|
|
548
|
+
get: () => r.pagination,
|
|
539
549
|
set: (e) => {
|
|
540
|
-
|
|
550
|
+
i("update:pagination", { ...Wt(e) });
|
|
541
551
|
}
|
|
542
|
-
}), { mdAndDown:
|
|
543
|
-
|
|
552
|
+
}), { mdAndDown: c } = un(), l = U(!c.value), u = () => {
|
|
553
|
+
c.value && (l.value = !1);
|
|
544
554
|
};
|
|
545
|
-
|
|
546
|
-
let { t:
|
|
547
|
-
|
|
555
|
+
Bt(Ue, u);
|
|
556
|
+
let { t: d } = Zt(), f = M(() => r.selectedItems.length), p = M(() => 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
|
-
|
|
556
|
-
},
|
|
557
|
-
|
|
558
|
-
},
|
|
559
|
-
e && te.value && !
|
|
565
|
+
i("onFetchNextPage");
|
|
566
|
+
}, b = () => {
|
|
567
|
+
i("onPageChange");
|
|
568
|
+
}, ee = M(() => Math.ceil(s.value.totalCount / s.value.rowsPerPage)), te = M(() => !(D(s.value.hasNextPage) && s.value.page === ee.value || s.value.hasNextPage === !1)), x = (e) => {
|
|
569
|
+
e && te.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 H(), F(j, null, [W(t.$slots, "activator", { props: { onClick: Y(() => m(), ["stop"]) } }), R(_n, B(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: J(() => [o.value ? (H(), N(tn, {
|
|
575
585
|
key: 0,
|
|
576
586
|
class: "subject-select__card"
|
|
577
587
|
}, {
|
|
578
|
-
default:
|
|
579
|
-
R(
|
|
588
|
+
default: J(() => [
|
|
589
|
+
R(y, {
|
|
580
590
|
class: "subject-select__toolbar system-border-b",
|
|
581
|
-
onOnCancel:
|
|
591
|
+
onOnCancel: g
|
|
582
592
|
}, {
|
|
583
|
-
default:
|
|
593
|
+
default: J(() => [W(t.$slots, "title", {}, () => [L(G(K(d)(e.dialogTitleT)), 1)])]),
|
|
584
594
|
_: 3
|
|
585
595
|
}),
|
|
586
|
-
R(
|
|
596
|
+
R(mn, {
|
|
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: J(() => [W(t.$slots, "second-bar", {}, () => [I("div", Vn, [I("div", Hn, [I("div", Un, [R(Z, {
|
|
594
604
|
icon: "",
|
|
595
605
|
width: 30,
|
|
596
606
|
height: 30,
|
|
597
|
-
onClick:
|
|
607
|
+
onClick: h
|
|
598
608
|
}, {
|
|
599
|
-
default:
|
|
609
|
+
default: J(() => [R(X, {
|
|
600
610
|
icon: "mdi-tune",
|
|
601
611
|
size: 16
|
|
602
|
-
}), R(
|
|
612
|
+
}), R(on, {
|
|
603
613
|
activator: "parent",
|
|
604
614
|
location: "bottom"
|
|
605
615
|
}, {
|
|
606
|
-
default:
|
|
616
|
+
default: J(() => [L(G(K(d)("common.subjectSelect.filter.toggle")), 1)]),
|
|
607
617
|
_: 1
|
|
608
618
|
})]),
|
|
609
619
|
_: 1
|
|
610
|
-
}),
|
|
620
|
+
}), W(t.$slots, "second-bar-left")]), I("div", Wn, [W(t.$slots, "second-bar-right")])])])])]),
|
|
611
621
|
_: 3
|
|
612
622
|
}),
|
|
613
|
-
I("div", { class:
|
|
623
|
+
I("div", { class: V(["subject-select__main", { "subject-select__main--sidebar-active": l.value }]) }, [I("div", Gn, [I("div", Kn, [W(t.$slots, "filter")])]), I("div", qn, [W(t.$slots, "content"), e.paginationMode === "more" ? (H(), F("div", Jn, [Yt((H(), N(r, {
|
|
614
624
|
loading: e.loading,
|
|
615
625
|
size: "small",
|
|
616
626
|
onClick: v
|
|
617
627
|
}, {
|
|
618
|
-
default:
|
|
628
|
+
default: J(() => [W(t.$slots, "button-confirm-title", {}, () => [L(G(K(d)("common.button.loadMore")), 1)])]),
|
|
619
629
|
_: 3
|
|
620
|
-
}, 8, ["loading"])), [[
|
|
621
|
-
|
|
630
|
+
}, 8, ["loading"])), [[Jt, te.value || e.loading], [
|
|
631
|
+
ln,
|
|
622
632
|
x,
|
|
623
633
|
void 0,
|
|
624
634
|
{ quiet: !0 }
|
|
625
|
-
]])])) : (
|
|
635
|
+
]])])) : (H(), N(jn, {
|
|
626
636
|
key: 1,
|
|
627
|
-
modelValue:
|
|
628
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
629
|
-
onChange:
|
|
637
|
+
modelValue: s.value,
|
|
638
|
+
"onUpdate:modelValue": n[0] ||= (e) => s.value = e,
|
|
639
|
+
onChange: b
|
|
630
640
|
}, null, 8, ["modelValue"]))])], 2),
|
|
631
|
-
I("div",
|
|
632
|
-
e.minCount === e.maxCount ? (
|
|
641
|
+
I("div", Yn, [
|
|
642
|
+
e.minCount === e.maxCount ? (H(), F("div", Xn, G(K(d)("common.subjectSelect.texts.pickExactCount", {
|
|
633
643
|
count: e.minCount,
|
|
634
|
-
selected:
|
|
635
|
-
})), 1)) : (
|
|
644
|
+
selected: f.value
|
|
645
|
+
})), 1)) : (H(), F("div", Zn, G(K(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
|
-
R(
|
|
641
|
-
R(
|
|
642
|
-
disabled:
|
|
643
|
-
onClick:
|
|
650
|
+
R(Qt),
|
|
651
|
+
R(a, {
|
|
652
|
+
disabled: p.value,
|
|
653
|
+
onClick: Y(_, ["stop"])
|
|
644
654
|
}, {
|
|
645
|
-
default:
|
|
655
|
+
default: J(() => [W(t.$slots, "button-confirm-title", {}, () => [L(G(K(d)("common.button.confirm")), 1)])]),
|
|
646
656
|
_: 3
|
|
647
657
|
}, 8, ["disabled"])
|
|
648
658
|
])
|
|
@@ -653,44 +663,44 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
653
663
|
}, 16, ["model-value"])], 64);
|
|
654
664
|
};
|
|
655
665
|
}
|
|
656
|
-
}),
|
|
666
|
+
}), $n = {
|
|
657
667
|
key: 0,
|
|
658
668
|
class: "a-le-header"
|
|
659
|
-
},
|
|
669
|
+
}, er = {
|
|
660
670
|
key: 0,
|
|
661
671
|
class: "a-le-title-heading"
|
|
662
|
-
},
|
|
672
|
+
}, tr = ["data-unsaved-count"], nr = {
|
|
663
673
|
key: 1,
|
|
664
674
|
class: "a-le-state a-le-state--loading"
|
|
665
|
-
},
|
|
675
|
+
}, rr = {
|
|
666
676
|
key: 2,
|
|
667
677
|
class: "a-le-state a-le-state--error"
|
|
668
|
-
},
|
|
678
|
+
}, ir = {
|
|
669
679
|
key: 3,
|
|
670
680
|
class: "a-le-state a-le-state--empty"
|
|
671
|
-
},
|
|
681
|
+
}, ar = [
|
|
672
682
|
"data-id",
|
|
673
683
|
"tabindex",
|
|
674
684
|
"onKeydown"
|
|
675
|
-
],
|
|
685
|
+
], or = ["onClick"], sr = { class: "a-le-row-main" }, cr = { class: "a-le-title" }, lr = {
|
|
676
686
|
key: 0,
|
|
677
687
|
class: "a-le-status"
|
|
678
|
-
},
|
|
688
|
+
}, ur = {
|
|
679
689
|
key: 0,
|
|
680
690
|
class: "a-le-status-badge"
|
|
681
|
-
},
|
|
691
|
+
}, dr = { class: "a-le-actions" }, fr = { class: "a-le-row-body" }, pr = { class: "a-le-form" }, mr = {
|
|
682
692
|
key: 0,
|
|
683
693
|
class: "a-le-row-footer"
|
|
684
|
-
},
|
|
694
|
+
}, hr = {
|
|
685
695
|
key: 1,
|
|
686
696
|
class: "a-le-row-body"
|
|
687
|
-
},
|
|
697
|
+
}, gr = { class: "a-le-form" }, _r = {
|
|
688
698
|
class: "a-le-sr-only",
|
|
689
699
|
"aria-live": "polite",
|
|
690
700
|
role: "status"
|
|
691
|
-
},
|
|
701
|
+
}, vr = /* @__PURE__ */ z({
|
|
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 = un(), u = qt("rootEl"), d = M(() => 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 ?? S(f), h = r.getKey ?? "id", g = o(p?.childScope ?? null), _ = (e) => typeof h == "function" ? h(e) : e[h], v = M(() => typeof h == "function" ? "(fn)" : h), y = M(() => {
|
|
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 = M(() => 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(), te = (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,25 +845,25 @@ 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 x =
|
|
842
|
-
rowsContainer:
|
|
850
|
+
q(b, (e) => te(e), { immediate: !0 }), q(() => b.value.map((e) => String(e.key)).join("|"), () => g.retainOwners(b.value.map((e) => e.key)), { flush: "post" });
|
|
851
|
+
let x = U(/* @__PURE__ */ new Set()), ne = qt("rowsContainer"), ie = M(() => !r.chips && !!c.item), ae = M(() => !r.chips && !!c["item-readonly"]), { editingKeys: oe, editingSnapshots: se, beginEdit: ce, cancelEdit: le, commitEdit: C, closeEdit: ue, requestAutoOpen: de } = Fe({
|
|
852
|
+
rowsContainer: ne,
|
|
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
|
x.value.delete(e);
|
|
853
863
|
}
|
|
854
|
-
}), fe = M(() => r.addLabel ? s(r.addLabel) : s("common.sortable.add")), pe = M(() => r.emptyTitle ?? s("common.sortable.emptyTitle")), me = M(() => r.deleteConfirmTitle ?? s("common.sortable.deleteConfirmTitle")), he = M(() => r.deleteConfirmText ?? (r.deleteMode === "immediate" ? s("common.sortable.deleteConfirmText") : s("common.sortable.deleteConfirmTextDeferred"))), w = M(() => !r.readonly && !r.disabled && !r.loading),
|
|
864
|
+
}), fe = M(() => r.addLabel ? s(r.addLabel) : s("common.sortable.add")), pe = M(() => r.emptyTitle ?? s("common.sortable.emptyTitle")), me = M(() => r.deleteConfirmTitle ?? s("common.sortable.deleteConfirmTitle")), he = M(() => r.deleteConfirmText ?? (r.deleteMode === "immediate" ? s("common.sortable.deleteConfirmText") : s("common.sortable.deleteConfirmTextDeferred"))), w = M(() => !r.readonly && !r.disabled && !r.loading), T = M(() => w.value && r.showAddButton), ge = m.unsavedCount, _e = M(() => !r.readonly && !r.disableUnsaved && ge.value > 0), E = M(() => !!(r.title || c.header) || _e.value), ve = M(() => !!r.onItemSave), ye = /* @__PURE__ */ new Map(), xe = M(() => {
|
|
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
868
|
let i = oe.value.has(n.key), a = x.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) {
|
|
@@ -873,33 +883,33 @@ 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 = M(() => xe.value.length === 0),
|
|
886
|
+
}), Se = M(() => xe.value.length === 0), we = (e) => xe.value.find((t) => t.key === e), Te = re({
|
|
877
887
|
viewItems: M(() => xe.value.map((e) => ({ key: e.key }))),
|
|
878
888
|
variant: "flat",
|
|
879
|
-
isReorderMode:
|
|
889
|
+
isReorderMode: U(!1),
|
|
880
890
|
disabled: M(() => !w.value),
|
|
881
891
|
isEditing: (e) => oe.value.has(e),
|
|
882
892
|
onToggleEdit: (e) => {
|
|
883
|
-
let t =
|
|
893
|
+
let t = we(e);
|
|
884
894
|
t && ke(t);
|
|
885
895
|
},
|
|
886
896
|
onCancelEdit: (e) => {
|
|
887
|
-
let t =
|
|
888
|
-
t &&
|
|
897
|
+
let t = we(e);
|
|
898
|
+
t && He(t);
|
|
889
899
|
}
|
|
890
|
-
}), Ee = (e) =>
|
|
891
|
-
|
|
892
|
-
},
|
|
900
|
+
}), Ee = (e) => Ce(e, { compactField: r.compactField }), D = () => {
|
|
901
|
+
T.value && (de(), m.addItem(void 0, void 0));
|
|
902
|
+
}, De = (e) => {
|
|
893
903
|
w.value && (de(), m.addItem(void 0, { afterId: e.key }));
|
|
894
904
|
}, ke = (e) => {
|
|
895
905
|
if (w.value) {
|
|
896
906
|
if (oe.value.has(e.key)) {
|
|
897
|
-
|
|
907
|
+
He(e);
|
|
898
908
|
return;
|
|
899
909
|
}
|
|
900
|
-
|
|
910
|
+
ie.value && (ce(e), x.value.delete(e.key)), i("edit", e);
|
|
901
911
|
}
|
|
902
|
-
},
|
|
912
|
+
}, Ae = (e) => {
|
|
903
913
|
if (r.disabled || r.loading) return;
|
|
904
914
|
let t = e.key, n = x.value.has(t);
|
|
905
915
|
if (n) x.value.delete(t);
|
|
@@ -908,69 +918,69 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
908
918
|
x.value.add(t);
|
|
909
919
|
}
|
|
910
920
|
i("item-expand", e, !n);
|
|
911
|
-
},
|
|
912
|
-
if (
|
|
921
|
+
}, je = (e) => r.chips || r.disableRowClick || r.defaultExpanded || r.disabled || r.loading ? !1 : !!(e.editing || e.expanded || !r.readonly && r.showEditButton), Me = (e) => {
|
|
922
|
+
if (je(e)) {
|
|
913
923
|
if (e.editing || e.expanded) {
|
|
914
|
-
|
|
924
|
+
He(e);
|
|
915
925
|
return;
|
|
916
926
|
}
|
|
917
|
-
r.readonly && ae.value ?
|
|
927
|
+
r.readonly && ae.value ? Ae(e) : ke(e);
|
|
918
928
|
}
|
|
919
|
-
}, { deleteDialog:
|
|
929
|
+
}, { deleteDialog: Ne, deleteInFlight: O, deleteError: Pe, onDeleteClick: Ie, onDeleteDialogConfirm: Le, onDeleteDialogCancel: ze } = be({
|
|
920
930
|
onDeleteConfirm: (e) => !r.onDeleteConfirm || r.onDeleteConfirm(e),
|
|
921
931
|
onDelete: (e) => r.onDelete?.(e),
|
|
922
932
|
onDeleted: (e) => {
|
|
923
|
-
oe.value.delete(e.key),
|
|
933
|
+
oe.value.delete(e.key), se.value.delete(e.key), x.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
|
-
}),
|
|
927
|
-
w.value && await
|
|
928
|
-
},
|
|
929
|
-
r.onItemSave && await r.onItemSave(e.raw),
|
|
930
|
-
},
|
|
931
|
-
|
|
932
|
-
},
|
|
936
|
+
}), Be = async (e) => {
|
|
937
|
+
w.value && await Ie(e);
|
|
938
|
+
}, Ve = async (e) => {
|
|
939
|
+
r.onItemSave && await r.onItemSave(e.raw), C(e), i("item-saved", e);
|
|
940
|
+
}, k = (e) => {
|
|
941
|
+
le(e);
|
|
942
|
+
}, He = (e) => {
|
|
933
943
|
ue(e), x.value.delete(e.key), i("close", e);
|
|
934
|
-
},
|
|
935
|
-
let t =
|
|
944
|
+
}, Ue = /* @__PURE__ */ new Map(), We = (e) => {
|
|
945
|
+
let t = Ue.get(e);
|
|
936
946
|
return t || (t = {
|
|
937
947
|
edit: () => {
|
|
938
|
-
let t =
|
|
948
|
+
let t = we(e);
|
|
939
949
|
t && ke(t);
|
|
940
950
|
},
|
|
941
951
|
save: () => {
|
|
942
|
-
let t =
|
|
943
|
-
if (t) return
|
|
952
|
+
let t = we(e);
|
|
953
|
+
if (t) return Ve(t);
|
|
944
954
|
},
|
|
945
955
|
cancel: () => {
|
|
946
|
-
let t =
|
|
947
|
-
t &&
|
|
956
|
+
let t = we(e);
|
|
957
|
+
t && k(t);
|
|
948
958
|
},
|
|
949
959
|
close: () => {
|
|
950
|
-
let t =
|
|
951
|
-
t &&
|
|
960
|
+
let t = we(e);
|
|
961
|
+
t && He(t);
|
|
952
962
|
},
|
|
953
963
|
delete: async () => {
|
|
954
|
-
let t =
|
|
955
|
-
t && await
|
|
964
|
+
let t = we(e);
|
|
965
|
+
t && await Be(t);
|
|
956
966
|
},
|
|
957
967
|
addAfter: () => {
|
|
958
|
-
let t =
|
|
959
|
-
t &&
|
|
968
|
+
let t = we(e);
|
|
969
|
+
t && De(t);
|
|
960
970
|
},
|
|
961
971
|
toggleExpand: () => {
|
|
962
|
-
let t =
|
|
963
|
-
t &&
|
|
972
|
+
let t = we(e);
|
|
973
|
+
t && Ae(t);
|
|
964
974
|
},
|
|
965
975
|
update: (t) => m.updateItem(e, t)
|
|
966
|
-
},
|
|
976
|
+
}, Ue.set(e, t)), t;
|
|
967
977
|
};
|
|
968
|
-
|
|
969
|
-
if (
|
|
978
|
+
q(() => xe.value, (e) => {
|
|
979
|
+
if (Ue.size === 0) return;
|
|
970
980
|
let t = new Set(e.map((e) => e.key));
|
|
971
|
-
for (let e of
|
|
981
|
+
for (let e of Ue.keys()) t.has(e) || Ue.delete(e);
|
|
972
982
|
});
|
|
973
|
-
let
|
|
983
|
+
let Ge = (e) => ({
|
|
974
984
|
item: e,
|
|
975
985
|
raw: e.raw,
|
|
976
986
|
index: e.index,
|
|
@@ -983,28 +993,28 @@ 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: We(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 =
|
|
994
|
-
t &&
|
|
1002
|
+
let Ke = () => Re(m, (e) => {
|
|
1003
|
+
let t = b.value.find((t) => t.key === e);
|
|
1004
|
+
t && ce(t);
|
|
995
1005
|
});
|
|
996
|
-
return
|
|
1006
|
+
return Ye({
|
|
997
1007
|
hasErrors: m.hasErrors,
|
|
998
1008
|
validationScope: r.validationScope,
|
|
999
1009
|
validateProvided: r.validate !== void 0,
|
|
1000
|
-
reveal:
|
|
1010
|
+
reveal: Ke
|
|
1001
1011
|
}), t({
|
|
1002
1012
|
...m,
|
|
1003
|
-
validateAll:
|
|
1004
|
-
}), (t, n) => (
|
|
1013
|
+
validateAll: Ke
|
|
1014
|
+
}), (t, n) => (H(), F("div", {
|
|
1005
1015
|
ref_key: "rootEl",
|
|
1006
1016
|
ref: u,
|
|
1007
|
-
class:
|
|
1017
|
+
class: V(["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,
|
|
@@ -1013,67 +1023,67 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1013
1023
|
}, [
|
|
1014
1024
|
I("div", {
|
|
1015
1025
|
ref_key: "rowsContainer",
|
|
1016
|
-
ref:
|
|
1026
|
+
ref: ne,
|
|
1017
1027
|
class: "a-le-card"
|
|
1018
1028
|
}, [
|
|
1019
|
-
|
|
1029
|
+
E.value ? (H(), F("div", $n, [W(t.$slots, "header", { title: e.title }, () => [e.title ? (H(), F("h3", er, G(e.title), 1)) : P("", !0)]), _e.value ? (H(), F("span", {
|
|
1020
1030
|
key: 0,
|
|
1021
1031
|
class: "a-le-unsaved-count",
|
|
1022
|
-
"data-unsaved-count":
|
|
1023
|
-
},
|
|
1024
|
-
e.loading ? (
|
|
1032
|
+
"data-unsaved-count": K(ge)
|
|
1033
|
+
}, G(K(s)("common.sortable.pendingChanges", { count: K(ge) })), 9, tr)) : P("", !0)])) : P("", !0),
|
|
1034
|
+
e.loading ? (H(), F("div", nr, [R(en, {
|
|
1025
1035
|
indeterminate: "",
|
|
1026
1036
|
color: "primary",
|
|
1027
1037
|
size: "32"
|
|
1028
|
-
})])) : e.error ? (
|
|
1038
|
+
})])) : e.error ? (H(), F("div", rr, [R($t, {
|
|
1029
1039
|
type: "error",
|
|
1030
1040
|
variant: "tonal",
|
|
1031
1041
|
density: "compact",
|
|
1032
1042
|
border: "start"
|
|
1033
1043
|
}, {
|
|
1034
|
-
default:
|
|
1044
|
+
default: J(() => [L(G(e.error), 1)]),
|
|
1035
1045
|
_: 1
|
|
1036
|
-
})])) : Se.value ? (
|
|
1046
|
+
})])) : Se.value ? (H(), F("div", ir, [W(t.$slots, "empty", {
|
|
1037
1047
|
readonly: e.readonly,
|
|
1038
1048
|
disabled: e.disabled,
|
|
1039
|
-
actions: { add:
|
|
1040
|
-
}, () => [R(
|
|
1049
|
+
actions: { add: D }
|
|
1050
|
+
}, () => [R(qe, {
|
|
1041
1051
|
title: pe.value,
|
|
1042
1052
|
"add-label": fe.value,
|
|
1043
|
-
"can-add":
|
|
1044
|
-
onAdd:
|
|
1053
|
+
"can-add": T.value,
|
|
1054
|
+
onAdd: D
|
|
1045
1055
|
}, null, 8, [
|
|
1046
1056
|
"title",
|
|
1047
1057
|
"add-label",
|
|
1048
1058
|
"can-add"
|
|
1049
|
-
])])])) : (
|
|
1059
|
+
])])])) : (H(!0), F(j, { key: 4 }, Vt(xe.value, (r) => (H(), F("div", {
|
|
1050
1060
|
key: String(r.key),
|
|
1051
1061
|
class: "a-le-row-wrapper"
|
|
1052
1062
|
}, [
|
|
1053
|
-
|
|
1063
|
+
W(t.$slots, "before-item", B({ ref_for: !0 }, Ge(r))),
|
|
1054
1064
|
I("div", {
|
|
1055
1065
|
"data-id": String(r.key),
|
|
1056
1066
|
role: "listitem",
|
|
1057
|
-
tabindex:
|
|
1058
|
-
class:
|
|
1067
|
+
tabindex: K(Te).rowTabindex(r.key),
|
|
1068
|
+
class: V(["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,
|
|
1062
1072
|
"a-le-row--unsaved": r.unsaved,
|
|
1063
|
-
"a-le-row--clickable":
|
|
1073
|
+
"a-le-row--clickable": je(r),
|
|
1064
1074
|
[`a-le-row--validation-${r.validationState}`]: r.validationState !== null
|
|
1065
1075
|
}]),
|
|
1066
|
-
onKeydown: (e) =>
|
|
1076
|
+
onKeydown: (e) => K(Te).handleKeydown(r.key, e)
|
|
1067
1077
|
}, [I("div", {
|
|
1068
1078
|
class: "a-le-row-header",
|
|
1069
|
-
onClick: (e) =>
|
|
1079
|
+
onClick: (e) => Me(r)
|
|
1070
1080
|
}, [
|
|
1071
|
-
I("div",
|
|
1081
|
+
I("div", sr, [W(t.$slots, "item-compact", B({ ref_for: !0 }, Ge(r)), () => [I("span", cr, G(Ee(r.raw)), 1)]), r.unsaved ? (H(), N(ut, {
|
|
1072
1082
|
key: 0,
|
|
1073
1083
|
"dot-only": e.chips
|
|
1074
1084
|
}, null, 8, ["dot-only"])) : P("", !0)]),
|
|
1075
|
-
e.chips ? P("", !0) : (
|
|
1076
|
-
I("div",
|
|
1085
|
+
e.chips ? P("", !0) : (H(), F("div", lr, [W(t.$slots, "item-status", B({ ref_for: !0 }, Ge(r)), () => [e.statusField && r.raw[e.statusField] != null && r.raw[e.statusField] !== "" ? (H(), F("span", ur, G(r.raw[e.statusField]), 1)) : P("", !0)])])),
|
|
1086
|
+
I("div", dr, [W(t.$slots, "item-actions", B({ ref_for: !0 }, Ge(r)), () => [e.chips && e.showDeleteButton && w.value ? (H(), N(Z, {
|
|
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: Y((e) => Be(r), ["stop"])
|
|
1085
1095
|
}, {
|
|
1086
|
-
default:
|
|
1096
|
+
default: J(() => [R(X, {
|
|
1087
1097
|
icon: "mdi-close",
|
|
1088
1098
|
size: "14"
|
|
1089
1099
|
})]),
|
|
1090
1100
|
_: 1
|
|
1091
|
-
}, 8, ["onClick"])) : (
|
|
1092
|
-
e.showEditButton && w.value && !e.defaultExpanded ? (
|
|
1101
|
+
}, 8, ["onClick"])) : (H(), F(j, { key: 1 }, [
|
|
1102
|
+
e.showEditButton && w.value && !e.defaultExpanded ? (H(), N(Z, {
|
|
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: Y((e) => ke(r), ["stop"])
|
|
1101
1111
|
}, {
|
|
1102
|
-
default:
|
|
1112
|
+
default: J(() => [R(X, {
|
|
1103
1113
|
icon: "mdi-pencil-outline",
|
|
1104
1114
|
size: "18"
|
|
1105
|
-
}), R(
|
|
1115
|
+
}), R(on, {
|
|
1106
1116
|
activator: "parent",
|
|
1107
1117
|
location: "bottom",
|
|
1108
|
-
text:
|
|
1118
|
+
text: K(s)("common.sortable.edit")
|
|
1109
1119
|
}, null, 8, ["text"])]),
|
|
1110
1120
|
_: 1
|
|
1111
1121
|
}, 8, ["onClick"])) : P("", !0),
|
|
1112
|
-
e.showDeleteButton && w.value ? (
|
|
1122
|
+
e.showDeleteButton && w.value ? (H(), N(Z, {
|
|
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: Y((e) => Be(r), ["stop"])
|
|
1120
1130
|
}, {
|
|
1121
|
-
default:
|
|
1131
|
+
default: J(() => [R(X, {
|
|
1122
1132
|
icon: "mdi-trash-can-outline",
|
|
1123
1133
|
size: "18"
|
|
1124
|
-
}), R(
|
|
1134
|
+
}), R(on, {
|
|
1125
1135
|
activator: "parent",
|
|
1126
1136
|
location: "bottom",
|
|
1127
|
-
text:
|
|
1137
|
+
text: K(s)("common.sortable.delete")
|
|
1128
1138
|
}, null, 8, ["text"])]),
|
|
1129
1139
|
_: 1
|
|
1130
1140
|
}, 8, ["onClick"])) : P("", !0),
|
|
1131
|
-
e.showAddAfterAction && w.value ? (
|
|
1141
|
+
e.showAddAfterAction && w.value ? (H(), N(Z, {
|
|
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
|
-
R(
|
|
1150
|
+
default: J(() => [
|
|
1151
|
+
R(X, {
|
|
1142
1152
|
icon: "mdi-dots-vertical",
|
|
1143
1153
|
size: "18"
|
|
1144
1154
|
}),
|
|
1145
|
-
R(
|
|
1155
|
+
R(on, {
|
|
1146
1156
|
activator: "parent",
|
|
1147
1157
|
location: "bottom",
|
|
1148
|
-
text:
|
|
1158
|
+
text: K(s)("common.sortable.more")
|
|
1149
1159
|
}, null, 8, ["text"]),
|
|
1150
|
-
R(
|
|
1151
|
-
default:
|
|
1152
|
-
default:
|
|
1153
|
-
prepend:
|
|
1154
|
-
default:
|
|
1155
|
-
default:
|
|
1160
|
+
R($, { activator: "parent" }, {
|
|
1161
|
+
default: J(() => [R(fn, { density: "compact" }, {
|
|
1162
|
+
default: J(() => [R(Q, { onClick: (e) => De(r) }, {
|
|
1163
|
+
prepend: J(() => [R(X, { icon: "mdi-plus" })]),
|
|
1164
|
+
default: J(() => [R(pn, null, {
|
|
1165
|
+
default: J(() => [L(G(K(s)("common.sortable.addAfter")), 1)]),
|
|
1156
1166
|
_: 1
|
|
1157
1167
|
})]),
|
|
1158
1168
|
_: 1
|
|
@@ -1165,54 +1175,54 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1165
1175
|
_: 2
|
|
1166
1176
|
}, 1024)) : P("", !0)
|
|
1167
1177
|
], 64))])])
|
|
1168
|
-
], 8,
|
|
1178
|
+
], 8, or), (r.editing || e.defaultExpanded) && t.$slots.item ? (H(), F(j, { key: 0 }, [I("div", fr, [I("div", pr, [W(t.$slots, "item", B({ ref_for: !0 }, Ge(r)))])]), W(t.$slots, "item-footer", B({ ref_for: !0 }, Ge(r)), () => [ve.value && !e.defaultExpanded ? (H(), F("div", mr, [
|
|
1169
1179
|
n[1] ||= I("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
1170
|
-
R(
|
|
1180
|
+
R(Z, {
|
|
1171
1181
|
variant: "text",
|
|
1172
1182
|
disabled: r.loading,
|
|
1173
|
-
onClick:
|
|
1183
|
+
onClick: Y((e) => k(r), ["stop"])
|
|
1174
1184
|
}, {
|
|
1175
|
-
default:
|
|
1185
|
+
default: J(() => [L(G(K(s)("common.button.cancel")), 1)]),
|
|
1176
1186
|
_: 1
|
|
1177
1187
|
}, 8, ["disabled", "onClick"]),
|
|
1178
|
-
R(
|
|
1188
|
+
R(Z, {
|
|
1179
1189
|
color: "primary",
|
|
1180
1190
|
variant: "flat",
|
|
1181
1191
|
"prepend-icon": "mdi-check",
|
|
1182
1192
|
disabled: r.loading,
|
|
1183
|
-
onClick:
|
|
1193
|
+
onClick: Y((e) => Ve(r), ["stop"])
|
|
1184
1194
|
}, {
|
|
1185
|
-
default:
|
|
1195
|
+
default: J(() => [L(G(K(s)("common.button.save")), 1)]),
|
|
1186
1196
|
_: 1
|
|
1187
1197
|
}, 8, ["disabled", "onClick"])
|
|
1188
|
-
])) : P("", !0)])], 64)) : t.$slots["item-readonly"] && (e.readonly || r.expanded) ? (
|
|
1189
|
-
|
|
1198
|
+
])) : P("", !0)])], 64)) : t.$slots["item-readonly"] && (e.readonly || r.expanded) ? (H(), F("div", hr, [I("div", gr, [W(t.$slots, "item-readonly", B({ ref_for: !0 }, Ge(r)))])])) : P("", !0)], 42, ar),
|
|
1199
|
+
W(t.$slots, "after-item", B({ ref_for: !0 }, Ge(r)))
|
|
1190
1200
|
]))), 128)),
|
|
1191
|
-
|
|
1201
|
+
T.value && !e.loading && !e.error && !Se.value ? W(t.$slots, "add-button", {
|
|
1192
1202
|
readonly: e.readonly,
|
|
1193
1203
|
disabled: e.disabled,
|
|
1194
|
-
props: { onClick:
|
|
1195
|
-
actions: { add:
|
|
1204
|
+
props: { onClick: D },
|
|
1205
|
+
actions: { add: D }
|
|
1196
1206
|
}, () => [I("button", {
|
|
1197
1207
|
type: "button",
|
|
1198
1208
|
class: "a-le-row-add",
|
|
1199
|
-
onClick:
|
|
1200
|
-
}, [R(
|
|
1209
|
+
onClick: D
|
|
1210
|
+
}, [R(X, {
|
|
1201
1211
|
icon: "mdi-plus",
|
|
1202
1212
|
size: "18"
|
|
1203
|
-
}), I("span", null,
|
|
1213
|
+
}), I("span", null, G(fe.value), 1)])], void 0, 5) : P("", !0)
|
|
1204
1214
|
], 512),
|
|
1205
|
-
R(
|
|
1206
|
-
modelValue:
|
|
1207
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1215
|
+
R(Oe, {
|
|
1216
|
+
modelValue: K(Ne),
|
|
1217
|
+
"onUpdate:modelValue": n[0] ||= (e) => Nt(Ne) ? Ne.value = e : null,
|
|
1208
1218
|
title: me.value,
|
|
1209
1219
|
text: he.value,
|
|
1210
|
-
"confirm-label":
|
|
1211
|
-
"cancel-label":
|
|
1212
|
-
error:
|
|
1213
|
-
"in-flight":
|
|
1214
|
-
onConfirm:
|
|
1215
|
-
onCancel:
|
|
1220
|
+
"confirm-label": K(s)("common.sortable.delete"),
|
|
1221
|
+
"cancel-label": K(s)("common.button.cancel"),
|
|
1222
|
+
error: K(Pe),
|
|
1223
|
+
"in-flight": K(O),
|
|
1224
|
+
onConfirm: K(Le),
|
|
1225
|
+
onCancel: K(ze)
|
|
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
|
-
I("div",
|
|
1228
|
-
n:
|
|
1229
|
-
total:
|
|
1237
|
+
I("div", _r, G(K(Te).grabbedKey.value === null ? "" : K(s)("common.sortable.keyboardGrab.status", {
|
|
1238
|
+
n: K(Te).grabbedIndex.value + 1,
|
|
1239
|
+
total: K(Te).totalCount.value
|
|
1230
1240
|
})), 1)
|
|
1231
1241
|
], 2));
|
|
1232
1242
|
}
|
|
1233
|
-
}),
|
|
1234
|
-
let r =
|
|
1243
|
+
}), yr = (e, t) => e.find((e) => e.key === t) ?? null, br = (e, t, n) => {
|
|
1244
|
+
let r = yr(e, n);
|
|
1235
1245
|
for (; r && r.parentKey !== null;) {
|
|
1236
1246
|
if (r.parentKey === t) return !0;
|
|
1237
|
-
r =
|
|
1247
|
+
r = yr(e, r.parentKey);
|
|
1238
1248
|
}
|
|
1239
1249
|
return !1;
|
|
1240
|
-
},
|
|
1241
|
-
let r =
|
|
1250
|
+
}, xr = (e, t, n) => {
|
|
1251
|
+
let r = yr(e, t);
|
|
1242
1252
|
for (; r && r.depth > n;) {
|
|
1243
1253
|
if (r.parentKey === null) return null;
|
|
1244
|
-
r =
|
|
1254
|
+
r = yr(e, r.parentKey);
|
|
1245
1255
|
}
|
|
1246
1256
|
return r && r.depth === n ? r : null;
|
|
1247
|
-
},
|
|
1257
|
+
}, Sr = (e, t, n) => n === t || br(e, t, n), Cr = (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 (!Sr(e, r, t.key)) return t;
|
|
1251
1261
|
}
|
|
1252
1262
|
return null;
|
|
1253
|
-
},
|
|
1263
|
+
}, wr = (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 || br(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 ? Cr(a, f - 1, -1, r) : Cr(a, f, -1, r), m = u ? Cr(a, f, 1, r) : Cr(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 = xr(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
|
+
}, Tr = [
|
|
1315
1325
|
"data-id",
|
|
1316
1326
|
"aria-level",
|
|
1317
1327
|
"tabindex"
|
|
1318
|
-
],
|
|
1328
|
+
], Er = ["aria-label"], Dr = {
|
|
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
|
+
}, Or = { class: "a-le-row-main" }, kr = { class: "a-le-title" }, Ar = {
|
|
1323
1333
|
key: 0,
|
|
1324
1334
|
class: "a-nested-list-editor__drag-count",
|
|
1325
1335
|
"aria-hidden": "true"
|
|
1326
|
-
},
|
|
1336
|
+
}, jr = {
|
|
1327
1337
|
key: 3,
|
|
1328
1338
|
class: "a-le-status"
|
|
1329
|
-
},
|
|
1339
|
+
}, Mr = {
|
|
1330
1340
|
key: 0,
|
|
1331
1341
|
class: "a-le-status-badge"
|
|
1332
|
-
},
|
|
1342
|
+
}, Nr = { class: "a-le-actions" }, Pr = { class: "a-le-row-body" }, Fr = { class: "a-le-form" }, Ir = {
|
|
1333
1343
|
key: 0,
|
|
1334
1344
|
class: "a-le-row-footer"
|
|
1335
|
-
},
|
|
1345
|
+
}, Lr = {
|
|
1336
1346
|
key: 1,
|
|
1337
1347
|
class: "a-le-row-body"
|
|
1338
|
-
},
|
|
1348
|
+
}, Rr = { class: "a-le-form" }, zr = ["data-parent-id"], Br = "a-nested-list-editor__group", Vr = "a-le-drag-handle", Hr = /* @__PURE__ */ z({
|
|
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 = Hr, { 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) => (H(), F("div", {
|
|
1364
|
+
class: V(["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
|
-
|
|
1371
|
+
W(t.$slots, "before-item", It(jt(o()))),
|
|
1362
1372
|
I("div", {
|
|
1363
|
-
class:
|
|
1373
|
+
class: V([
|
|
1364
1374
|
"a-le-row",
|
|
1365
1375
|
e.vi.depth > 0 ? "a-le-row--child" : null,
|
|
1366
1376
|
{
|
|
@@ -1374,7 +1384,7 @@ 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)
|
|
@@ -1383,69 +1393,69 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
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 ? (H(), N(et, {
|
|
1387
1397
|
key: 0,
|
|
1388
|
-
class:
|
|
1398
|
+
class: V(Vr)
|
|
1389
1399
|
})) : P("", !0),
|
|
1390
|
-
e.context.showExpandToggle && e.vi.childrenAllowed ? (
|
|
1400
|
+
e.context.showExpandToggle && e.vi.childrenAllowed ? (H(), F("button", {
|
|
1391
1401
|
key: 1,
|
|
1392
1402
|
type: "button",
|
|
1393
|
-
class:
|
|
1403
|
+
class: V(["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] ||= [I("span", { class: "a-nested-list-editor__tree-toggle-caret" }, null, -1)]], 10,
|
|
1400
|
-
I("div",
|
|
1401
|
-
|
|
1402
|
-
e.vi.hasChildren ? (
|
|
1407
|
+
"aria-label": e.vi.childrenExpanded ? K(r)("common.sortable.close") : K(r)("common.sortable.edit"),
|
|
1408
|
+
onClick: c[0] ||= Y((t) => e.vi.hasChildren && e.callbacks.onChevronClick(e.vi), ["stop"])
|
|
1409
|
+
}, [...c[18] ||= [I("span", { class: "a-nested-list-editor__tree-toggle-caret" }, null, -1)]], 10, Er)) : e.context.showExpandToggle ? (H(), F("span", Dr)) : P("", !0),
|
|
1410
|
+
I("div", Or, [
|
|
1411
|
+
W(t.$slots, "item-compact", It(jt(o())), () => [I("span", kr, G(e.context.resolveCompactText(e.vi.raw, e.vi.key)), 1)]),
|
|
1412
|
+
e.vi.hasChildren ? (H(), F("span", Ar, [R(X, {
|
|
1403
1413
|
icon: "mdi-file-tree",
|
|
1404
1414
|
size: "14"
|
|
1405
|
-
}), L(" +" +
|
|
1406
|
-
e.vi.unsaved ? (
|
|
1415
|
+
}), L(" +" + G(e.vi.childrenCount), 1)])) : P("", !0),
|
|
1416
|
+
e.vi.unsaved ? (H(), N(ut, { key: 1 })) : P("", !0)
|
|
1407
1417
|
]),
|
|
1408
|
-
e.context.reorderMode ? P("", !0) : (
|
|
1409
|
-
I("div",
|
|
1410
|
-
R(
|
|
1418
|
+
e.context.reorderMode ? P("", !0) : (H(), F("div", jr, [W(t.$slots, "item-status", It(jt(o())), () => [e.context.statusField && e.vi.raw[e.context.statusField] != null && e.vi.raw[e.context.statusField] !== "" ? (H(), F("span", Mr, G(e.vi.raw[e.context.statusField]), 1)) : P("", !0)])])),
|
|
1419
|
+
I("div", Nr, [W(t.$slots, "item-actions", It(jt(o())), () => [e.context.reorderMode ? (H(), F(j, { key: 0 }, [
|
|
1420
|
+
R(Z, {
|
|
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] ||= Y((t) => e.callbacks.moveUp(e.vi.key), ["stop"])
|
|
1418
1428
|
}, {
|
|
1419
|
-
default:
|
|
1429
|
+
default: J(() => [R(X, {
|
|
1420
1430
|
icon: "mdi-arrow-up",
|
|
1421
1431
|
size: "18"
|
|
1422
|
-
}), R(
|
|
1432
|
+
}), R(on, {
|
|
1423
1433
|
activator: "parent",
|
|
1424
1434
|
location: "bottom",
|
|
1425
|
-
text:
|
|
1435
|
+
text: K(r)("common.sortable.moveUp")
|
|
1426
1436
|
}, null, 8, ["text"])]),
|
|
1427
1437
|
_: 1
|
|
1428
1438
|
}, 8, ["disabled"]),
|
|
1429
|
-
R(
|
|
1439
|
+
R(Z, {
|
|
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] ||= Y((t) => e.callbacks.moveDown(e.vi.key), ["stop"])
|
|
1437
1447
|
}, {
|
|
1438
|
-
default:
|
|
1448
|
+
default: J(() => [R(X, {
|
|
1439
1449
|
icon: "mdi-arrow-down",
|
|
1440
1450
|
size: "18"
|
|
1441
|
-
}), R(
|
|
1451
|
+
}), R(on, {
|
|
1442
1452
|
activator: "parent",
|
|
1443
1453
|
location: "bottom",
|
|
1444
|
-
text:
|
|
1454
|
+
text: K(r)("common.sortable.moveDown")
|
|
1445
1455
|
}, null, 8, ["text"])]),
|
|
1446
1456
|
_: 1
|
|
1447
1457
|
}, 8, ["disabled"]),
|
|
1448
|
-
R(
|
|
1458
|
+
R(Z, {
|
|
1449
1459
|
icon: "",
|
|
1450
1460
|
size: "small",
|
|
1451
1461
|
variant: "text",
|
|
@@ -1453,95 +1463,95 @@ 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
|
-
R(
|
|
1466
|
+
default: J(() => [
|
|
1467
|
+
R(X, {
|
|
1458
1468
|
icon: "mdi-dots-vertical",
|
|
1459
1469
|
size: "18"
|
|
1460
1470
|
}),
|
|
1461
|
-
R(
|
|
1471
|
+
R(on, {
|
|
1462
1472
|
activator: "parent",
|
|
1463
1473
|
location: "bottom",
|
|
1464
|
-
text:
|
|
1474
|
+
text: K(r)("common.sortable.more")
|
|
1465
1475
|
}, null, 8, ["text"]),
|
|
1466
|
-
R(
|
|
1467
|
-
default:
|
|
1468
|
-
default:
|
|
1469
|
-
R(
|
|
1476
|
+
R($, { activator: "parent" }, {
|
|
1477
|
+
default: J(() => [R(fn, { density: "compact" }, {
|
|
1478
|
+
default: J(() => [
|
|
1479
|
+
R(Q, {
|
|
1470
1480
|
disabled: e.vi.firstInParent,
|
|
1471
|
-
onClick: c[3] ||=
|
|
1481
|
+
onClick: c[3] ||= Y((t) => e.callbacks.moveTop(e.vi.key), ["stop"])
|
|
1472
1482
|
}, {
|
|
1473
|
-
prepend:
|
|
1474
|
-
default:
|
|
1475
|
-
default:
|
|
1483
|
+
prepend: J(() => [R(X, { icon: "mdi-arrow-collapse-up" })]),
|
|
1484
|
+
default: J(() => [R(pn, null, {
|
|
1485
|
+
default: J(() => [L(G(K(r)("common.sortable.moveToTop")), 1)]),
|
|
1476
1486
|
_: 1
|
|
1477
1487
|
})]),
|
|
1478
1488
|
_: 1
|
|
1479
1489
|
}, 8, ["disabled"]),
|
|
1480
|
-
R(
|
|
1490
|
+
R(Q, {
|
|
1481
1491
|
disabled: e.vi.lastInParent,
|
|
1482
|
-
onClick: c[4] ||=
|
|
1492
|
+
onClick: c[4] ||= Y((t) => e.callbacks.moveBottom(e.vi.key), ["stop"])
|
|
1483
1493
|
}, {
|
|
1484
|
-
prepend:
|
|
1485
|
-
default:
|
|
1486
|
-
default:
|
|
1494
|
+
prepend: J(() => [R(X, { icon: "mdi-arrow-collapse-down" })]),
|
|
1495
|
+
default: J(() => [R(pn, null, {
|
|
1496
|
+
default: J(() => [L(G(K(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) ? (H(), N(Q, {
|
|
1492
1502
|
key: 0,
|
|
1493
|
-
onClick: c[5] ||=
|
|
1503
|
+
onClick: c[5] ||= Y((t) => e.callbacks.openMoveToPosition(e.vi), ["stop"])
|
|
1494
1504
|
}, {
|
|
1495
|
-
prepend:
|
|
1496
|
-
default:
|
|
1497
|
-
default:
|
|
1505
|
+
prepend: J(() => [R(X, { icon: "mdi-target" })]),
|
|
1506
|
+
default: J(() => [R(pn, null, {
|
|
1507
|
+
default: J(() => [L(G(K(r)("common.sortable.moveToPosition.action")), 1)]),
|
|
1498
1508
|
_: 1
|
|
1499
1509
|
})]),
|
|
1500
1510
|
_: 1
|
|
1501
1511
|
})) : P("", !0),
|
|
1502
|
-
e.context.showChangeParent ? (
|
|
1512
|
+
e.context.showChangeParent ? (H(), N(Q, {
|
|
1503
1513
|
key: 1,
|
|
1504
|
-
onClick: c[6] ||=
|
|
1514
|
+
onClick: c[6] ||= Y((t) => e.callbacks.openChangeParent(e.vi), ["stop"])
|
|
1505
1515
|
}, {
|
|
1506
|
-
prepend:
|
|
1507
|
-
default:
|
|
1508
|
-
default:
|
|
1516
|
+
prepend: J(() => [R(X, { icon: "mdi-folder-move-outline" })]),
|
|
1517
|
+
default: J(() => [R(pn, null, {
|
|
1518
|
+
default: J(() => [L(G(K(r)("common.sortable.changeParent.action")), 1)]),
|
|
1509
1519
|
_: 1
|
|
1510
1520
|
})]),
|
|
1511
1521
|
_: 1
|
|
1512
1522
|
})) : P("", !0),
|
|
1513
|
-
R(
|
|
1523
|
+
R(Q, {
|
|
1514
1524
|
disabled: !e.vi.canIndent,
|
|
1515
|
-
onClick: c[7] ||=
|
|
1525
|
+
onClick: c[7] ||= Y((t) => e.callbacks.indent(e.vi), ["stop"])
|
|
1516
1526
|
}, {
|
|
1517
|
-
prepend:
|
|
1518
|
-
default:
|
|
1519
|
-
default:
|
|
1527
|
+
prepend: J(() => [R(X, { icon: "mdi-format-indent-increase" })]),
|
|
1528
|
+
default: J(() => [R(pn, null, {
|
|
1529
|
+
default: J(() => [L(G(K(r)("common.sortable.indent")), 1)]),
|
|
1520
1530
|
_: 1
|
|
1521
1531
|
})]),
|
|
1522
1532
|
_: 1
|
|
1523
1533
|
}, 8, ["disabled"]),
|
|
1524
|
-
R(
|
|
1534
|
+
R(Q, {
|
|
1525
1535
|
disabled: !e.vi.canOutdent,
|
|
1526
|
-
onClick: c[8] ||=
|
|
1536
|
+
onClick: c[8] ||= Y((t) => e.callbacks.outdent(e.vi), ["stop"])
|
|
1527
1537
|
}, {
|
|
1528
|
-
prepend:
|
|
1529
|
-
default:
|
|
1530
|
-
default:
|
|
1538
|
+
prepend: J(() => [R(X, { icon: "mdi-format-indent-decrease" })]),
|
|
1539
|
+
default: J(() => [R(pn, null, {
|
|
1540
|
+
default: J(() => [L(G(K(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 ? (H(), N(Q, {
|
|
1536
1546
|
key: 2,
|
|
1537
|
-
onClick: c[9] ||=
|
|
1547
|
+
onClick: c[9] ||= Y((t) => e.callbacks.onDeleteClick(e.vi), ["stop"])
|
|
1538
1548
|
}, {
|
|
1539
|
-
prepend:
|
|
1549
|
+
prepend: J(() => [R(X, {
|
|
1540
1550
|
icon: "mdi-trash-can-outline",
|
|
1541
1551
|
color: "error"
|
|
1542
1552
|
})]),
|
|
1543
|
-
default:
|
|
1544
|
-
default:
|
|
1553
|
+
default: J(() => [R(pn, { class: "text-error" }, {
|
|
1554
|
+
default: J(() => [L(G(K(r)("common.sortable.delete")), 1)]),
|
|
1545
1555
|
_: 1
|
|
1546
1556
|
})]),
|
|
1547
1557
|
_: 1
|
|
@@ -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)) : (H(), F(j, { key: 1 }, [
|
|
1568
|
+
e.context.showEditButton && e.context.canInteract ? (H(), N(Z, {
|
|
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] ||= Y((t) => e.callbacks.onEditClick(e.vi), ["stop"])
|
|
1567
1577
|
}, {
|
|
1568
|
-
default:
|
|
1578
|
+
default: J(() => [R(X, {
|
|
1569
1579
|
icon: "mdi-pencil-outline",
|
|
1570
1580
|
size: "18"
|
|
1571
|
-
}), R(
|
|
1581
|
+
}), R(on, {
|
|
1572
1582
|
activator: "parent",
|
|
1573
1583
|
location: "bottom",
|
|
1574
|
-
text:
|
|
1584
|
+
text: K(r)("common.sortable.edit")
|
|
1575
1585
|
}, null, 8, ["text"])]),
|
|
1576
1586
|
_: 1
|
|
1577
1587
|
})) : P("", !0),
|
|
1578
|
-
e.context.showDeleteButton && e.context.canInteract ? (
|
|
1588
|
+
e.context.showDeleteButton && e.context.canInteract ? (H(), N(Z, {
|
|
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] ||= Y((t) => e.callbacks.onDeleteClick(e.vi), ["stop"])
|
|
1586
1596
|
}, {
|
|
1587
|
-
default:
|
|
1597
|
+
default: J(() => [R(X, {
|
|
1588
1598
|
icon: "mdi-trash-can-outline",
|
|
1589
1599
|
size: "18"
|
|
1590
|
-
}), R(
|
|
1600
|
+
}), R(on, {
|
|
1591
1601
|
activator: "parent",
|
|
1592
1602
|
location: "bottom",
|
|
1593
|
-
text:
|
|
1603
|
+
text: K(r)("common.sortable.delete")
|
|
1594
1604
|
}, null, 8, ["text"])]),
|
|
1595
1605
|
_: 1
|
|
1596
1606
|
})) : P("", !0),
|
|
1597
|
-
e.context.canInteract && (e.context.showAddChildButton && e.vi.canAddChild || e.context.showAddAfterAction) ? (
|
|
1607
|
+
e.context.canInteract && (e.context.showAddChildButton && e.vi.canAddChild || e.context.showAddAfterAction) ? (H(), N(Z, {
|
|
1598
1608
|
key: 2,
|
|
1599
1609
|
icon: "",
|
|
1600
1610
|
size: "small",
|
|
@@ -1603,35 +1613,35 @@ 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
|
-
R(
|
|
1616
|
+
default: J(() => [
|
|
1617
|
+
R(X, {
|
|
1608
1618
|
icon: "mdi-dots-vertical",
|
|
1609
1619
|
size: "18"
|
|
1610
1620
|
}),
|
|
1611
|
-
R(
|
|
1621
|
+
R(on, {
|
|
1612
1622
|
activator: "parent",
|
|
1613
1623
|
location: "bottom",
|
|
1614
|
-
text:
|
|
1624
|
+
text: K(r)("common.sortable.more")
|
|
1615
1625
|
}, null, 8, ["text"]),
|
|
1616
|
-
R(
|
|
1617
|
-
default:
|
|
1618
|
-
default:
|
|
1626
|
+
R($, { activator: "parent" }, {
|
|
1627
|
+
default: J(() => [R(fn, { density: "compact" }, {
|
|
1628
|
+
default: J(() => [e.context.showAddAfterAction ? (H(), N(Q, {
|
|
1619
1629
|
key: 0,
|
|
1620
|
-
onClick: c[12] ||=
|
|
1630
|
+
onClick: c[12] ||= Y((t) => e.callbacks.onAddAfterClick(e.vi), ["stop"])
|
|
1621
1631
|
}, {
|
|
1622
|
-
prepend:
|
|
1623
|
-
default:
|
|
1624
|
-
default:
|
|
1632
|
+
prepend: J(() => [R(X, { icon: "mdi-playlist-plus" })]),
|
|
1633
|
+
default: J(() => [R(pn, null, {
|
|
1634
|
+
default: J(() => [L(G(K(r)("common.sortable.addAfter")), 1)]),
|
|
1625
1635
|
_: 1
|
|
1626
1636
|
})]),
|
|
1627
1637
|
_: 1
|
|
1628
|
-
})) : P("", !0), e.context.showAddChildButton && e.vi.canAddChild ? (
|
|
1638
|
+
})) : P("", !0), e.context.showAddChildButton && e.vi.canAddChild ? (H(), N(Q, {
|
|
1629
1639
|
key: 1,
|
|
1630
|
-
onClick: c[13] ||=
|
|
1640
|
+
onClick: c[13] ||= Y((t) => e.callbacks.onAddChildClick(e.vi), ["stop"])
|
|
1631
1641
|
}, {
|
|
1632
|
-
prepend:
|
|
1633
|
-
default:
|
|
1634
|
-
default:
|
|
1642
|
+
prepend: J(() => [R(X, { icon: "mdi-subdirectory-arrow-right" })]),
|
|
1643
|
+
default: J(() => [R(pn, null, {
|
|
1644
|
+
default: J(() => [L(G(K(r)("common.sortable.addChild")), 1)]),
|
|
1635
1645
|
_: 1
|
|
1636
1646
|
})]),
|
|
1637
1647
|
_: 1
|
|
@@ -1644,36 +1654,36 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
1644
1654
|
_: 1
|
|
1645
1655
|
})) : P("", !0)
|
|
1646
1656
|
], 64))])])
|
|
1647
|
-
]), e.vi.editing && !e.context.reorderMode && t.$slots.item ? (
|
|
1657
|
+
]), e.vi.editing && !e.context.reorderMode && t.$slots.item ? (H(), F(j, { key: 0 }, [I("div", Pr, [I("div", Fr, [W(t.$slots, "item", It(jt(o())))])]), W(t.$slots, "item-footer", It(jt(o())), () => [e.context.showInlineSaveFooter ? (H(), F("div", Ir, [
|
|
1648
1658
|
c[19] ||= I("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
1649
|
-
R(
|
|
1659
|
+
R(Z, {
|
|
1650
1660
|
variant: "text",
|
|
1651
1661
|
disabled: e.vi.loading,
|
|
1652
|
-
onClick: c[15] ||=
|
|
1662
|
+
onClick: c[15] ||= Y((t) => e.callbacks.onCancelClick(e.vi), ["stop"])
|
|
1653
1663
|
}, {
|
|
1654
|
-
default:
|
|
1664
|
+
default: J(() => [L(G(K(r)("common.button.cancel")), 1)]),
|
|
1655
1665
|
_: 1
|
|
1656
1666
|
}, 8, ["disabled"]),
|
|
1657
|
-
R(
|
|
1667
|
+
R(Z, {
|
|
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] ||= Y((t) => e.callbacks.onSaveClick(e.vi), ["stop"])
|
|
1663
1673
|
}, {
|
|
1664
|
-
default:
|
|
1674
|
+
default: J(() => [L(G(K(r)("common.button.save")), 1)]),
|
|
1665
1675
|
_: 1
|
|
1666
1676
|
}, 8, ["disabled"])
|
|
1667
|
-
])) : P("", !0)])], 64)) : t.$slots["item-readonly"] && (e.context.readonly || e.vi.expanded) && !e.context.reorderMode ? (
|
|
1668
|
-
|
|
1669
|
-
e.vi.hasChildren && e.vi.childrenExpanded ? (
|
|
1677
|
+
])) : P("", !0)])], 64)) : t.$slots["item-readonly"] && (e.context.readonly || e.vi.expanded) && !e.context.reorderMode ? (H(), F("div", Lr, [I("div", Rr, [W(t.$slots, "item-readonly", It(jt(o())))])])) : P("", !0)], 6),
|
|
1678
|
+
W(t.$slots, "after-item", It(jt(o()))),
|
|
1679
|
+
e.vi.hasChildren && e.vi.childrenExpanded ? (H(), F("div", {
|
|
1670
1680
|
key: 0,
|
|
1671
1681
|
class: "a-nested-list-editor__children",
|
|
1672
|
-
style:
|
|
1682
|
+
style: Lt({ "--parent-depth": e.vi.depth })
|
|
1673
1683
|
}, [I("div", {
|
|
1674
|
-
class:
|
|
1684
|
+
class: V([Br]),
|
|
1675
1685
|
"data-parent-id": String(e.vi.key)
|
|
1676
|
-
}, [(
|
|
1686
|
+
}, [(H(!0), F(j, null, Vt(s(), (r) => (H(), N(K(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: J((e) => [W(t.$slots, "item", B({ ref_for: !0 }, e))]),
|
|
1695
|
+
"item-compact": J((e) => [W(t.$slots, "item-compact", B({ ref_for: !0 }, e))]),
|
|
1696
|
+
"item-readonly": J((e) => [W(t.$slots, "item-readonly", B({ ref_for: !0 }, e))]),
|
|
1697
|
+
"item-status": J((e) => [W(t.$slots, "item-status", B({ ref_for: !0 }, e))]),
|
|
1698
|
+
"item-footer": J((e) => [W(t.$slots, "item-footer", B({ ref_for: !0 }, e))]),
|
|
1699
|
+
"item-actions": J((e) => [W(t.$slots, "item-actions", B({ ref_for: !0 }, e))]),
|
|
1700
|
+
"before-item": J((e) => [W(t.$slots, "before-item", B({ ref_for: !0 }, e))]),
|
|
1701
|
+
"after-item": J((e) => [W(t.$slots, "after-item", B({ 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, zr)], 4)) : P("", !0)
|
|
1710
|
+
], 42, Tr));
|
|
1701
1711
|
}
|
|
1702
|
-
}),
|
|
1712
|
+
}), Ur = { class: "text-body-medium mb-2" }, Wr = /*#__PURE__*/ rt(/* @__PURE__ */ z({
|
|
1703
1713
|
__name: "LeChangeParentDialog",
|
|
1704
|
-
props: /*@__PURE__*/
|
|
1714
|
+
props: /*@__PURE__*/ Pt({
|
|
1705
1715
|
tree: {},
|
|
1706
1716
|
sourceKey: {},
|
|
1707
1717
|
keyField: {},
|
|
@@ -1715,10 +1725,10 @@ 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 = U(void 0), s = U("last");
|
|
1731
|
+
q(i, (e) => {
|
|
1722
1732
|
e && (o.value = void 0, s.value = "last");
|
|
1723
1733
|
});
|
|
1724
1734
|
let c = M(() => {
|
|
@@ -1790,59 +1800,59 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
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) => (H(), N(_n, {
|
|
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
|
-
R(
|
|
1805
|
-
default:
|
|
1812
|
+
default: J(() => [R(tn, null, {
|
|
1813
|
+
default: J(() => [
|
|
1814
|
+
R(an, null, {
|
|
1815
|
+
default: J(() => [L(G(K(a)("common.sortable.changeParent.title")), 1)]),
|
|
1806
1816
|
_: 1
|
|
1807
1817
|
}),
|
|
1808
|
-
f.value.length === 0 ? (
|
|
1818
|
+
f.value.length === 0 ? (H(), N(rn, {
|
|
1809
1819
|
key: 0,
|
|
1810
1820
|
class: "text-body-medium"
|
|
1811
1821
|
}, {
|
|
1812
|
-
default:
|
|
1822
|
+
default: J(() => [R($t, {
|
|
1813
1823
|
type: "info",
|
|
1814
1824
|
variant: "tonal",
|
|
1815
1825
|
density: "compact"
|
|
1816
1826
|
}, {
|
|
1817
|
-
default:
|
|
1827
|
+
default: J(() => [I("strong", null, G(K(a)("common.sortable.changeParent.noTargetsTitle")), 1), I("div", null, G(K(a)("common.sortable.changeParent.noTargetsText")), 1)]),
|
|
1818
1828
|
_: 1
|
|
1819
1829
|
})]),
|
|
1820
1830
|
_: 1
|
|
1821
|
-
})) : (
|
|
1822
|
-
default:
|
|
1831
|
+
})) : (H(), F(j, { key: 1 }, [R(rn, { class: "pb-1" }, {
|
|
1832
|
+
default: J(() => [R(fn, {
|
|
1823
1833
|
density: "compact",
|
|
1824
1834
|
class: "le-change-parent__list"
|
|
1825
1835
|
}, {
|
|
1826
|
-
default:
|
|
1836
|
+
default: J(() => [(H(!0), F(j, null, Vt(d.value, (e) => (H(), N(Q, {
|
|
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: J(() => [e.key === null ? (H(), N(X, {
|
|
1838
1848
|
key: 0,
|
|
1839
1849
|
icon: "mdi-folder-home-outline",
|
|
1840
1850
|
size: "18"
|
|
1841
|
-
})) : e.hasChildren ? (
|
|
1851
|
+
})) : e.hasChildren ? (H(), N(X, {
|
|
1842
1852
|
key: 1,
|
|
1843
1853
|
icon: "mdi-folder-outline",
|
|
1844
1854
|
size: "18"
|
|
1845
|
-
})) : (
|
|
1855
|
+
})) : (H(), N(X, {
|
|
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 ? (H(), N(rn, {
|
|
1865
1875
|
key: 0,
|
|
1866
1876
|
class: "pt-0"
|
|
1867
1877
|
}, {
|
|
1868
|
-
default:
|
|
1878
|
+
default: J(() => [I("div", Ur, G(K(a)("common.sortable.changeParent.placementHeading", { label: p.value?.label ?? "" })), 1), R(bn, {
|
|
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: J(() => [R(yn, {
|
|
1875
1885
|
value: "first",
|
|
1876
|
-
label:
|
|
1877
|
-
}, null, 8, ["label"]), R(
|
|
1886
|
+
label: K(a)("common.sortable.changeParent.placeFirst")
|
|
1887
|
+
}, null, 8, ["label"]), R(yn, {
|
|
1878
1888
|
value: "last",
|
|
1879
|
-
label:
|
|
1889
|
+
label: K(a)("common.sortable.changeParent.placeLast")
|
|
1880
1890
|
}, null, 8, ["label"])]),
|
|
1881
1891
|
_: 1
|
|
1882
1892
|
}, 8, ["modelValue"])]),
|
|
1883
1893
|
_: 1
|
|
1884
1894
|
})) : P("", !0)], 64)),
|
|
1885
|
-
R(
|
|
1886
|
-
default:
|
|
1887
|
-
R(
|
|
1888
|
-
R(
|
|
1895
|
+
R(nn, null, {
|
|
1896
|
+
default: J(() => [
|
|
1897
|
+
R(Qt),
|
|
1898
|
+
R(Z, {
|
|
1889
1899
|
variant: "text",
|
|
1890
|
-
onClick:
|
|
1900
|
+
onClick: _
|
|
1891
1901
|
}, {
|
|
1892
|
-
default:
|
|
1902
|
+
default: J(() => [L(G(K(a)("common.sortable.reorderCancel")), 1)]),
|
|
1893
1903
|
_: 1
|
|
1894
1904
|
}),
|
|
1895
|
-
R(
|
|
1905
|
+
R(Z, {
|
|
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: J(() => [L(G(K(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"]]), Gr = { class: "a-le-card" }, Kr = {
|
|
1914
1924
|
key: 0,
|
|
1915
1925
|
class: "a-le-header"
|
|
1916
|
-
},
|
|
1926
|
+
}, qr = {
|
|
1917
1927
|
key: 0,
|
|
1918
1928
|
class: "a-le-title-heading"
|
|
1919
|
-
},
|
|
1929
|
+
}, Jr = { class: "a-le-header-actions" }, Yr = {
|
|
1920
1930
|
key: 1,
|
|
1921
1931
|
class: "a-le-state a-le-state--loading"
|
|
1922
|
-
},
|
|
1932
|
+
}, Xr = {
|
|
1923
1933
|
key: 2,
|
|
1924
1934
|
class: "a-le-state a-le-state--error"
|
|
1925
|
-
},
|
|
1935
|
+
}, Zr = {
|
|
1926
1936
|
key: 3,
|
|
1927
1937
|
class: "a-le-state a-le-state--empty"
|
|
1928
|
-
},
|
|
1938
|
+
}, Qr = {
|
|
1929
1939
|
class: "a-le-sr-only",
|
|
1930
1940
|
"aria-live": "polite",
|
|
1931
1941
|
role: "status"
|
|
1932
|
-
},
|
|
1942
|
+
}, $r = "a-nested-list-editor__group", ei = 24, ti = 22, ni = /* @__PURE__ */ z({
|
|
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 } = ze(), d = qt("rootEl"), { isNarrow: p } = h(d), m = ce(), g = M(() => r.closeVariant === "icon" ? "icon" : r.closeVariant === "labeled" ? "labeled" : p.value ? "icon" : "labeled"), _ = U(/* @__PURE__ */ new Set()), y = U(/* @__PURE__ */ new Set()), ee = r.getKey ?? "id", te = typeof ee == "function" ? "id" : ee, x = (e) => typeof ee == "function" ? ee(e) : e[ee], ne = (() => {
|
|
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
|
-
})(
|
|
2103
|
+
})(a.value);
|
|
2094
2104
|
let ie = {
|
|
2095
|
-
get: () =>
|
|
2096
|
-
set: (e) =>
|
|
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,10 +2111,10 @@ 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
|
-
}, ae = r.editor ? null :
|
|
2114
|
+
}, ae = r.editor ? null : he(r.stateKey, ie), S = r.editor ?? ae?.handle ?? f(ie), oe = o(ae?.childScope ?? null), se = M(() => {
|
|
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++,
|
|
@@ -2113,7 +2123,7 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
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 le =
|
|
2134
|
-
|
|
2135
|
-
},
|
|
2136
|
-
let { node: t } =
|
|
2142
|
+
q(() => se.value.map((e) => String(e.key)).join("|"), () => oe.retainOwners(se.value.map((e) => e.key)), { flush: "post" });
|
|
2143
|
+
let le = Ut(null), C = U(/* @__PURE__ */ new Set()), de = U(/* @__PURE__ */ new Set()), fe = U(/* @__PURE__ */ new Set()), pe = () => {
|
|
2144
|
+
S.commit(), C.value = /* @__PURE__ */ new Set();
|
|
2145
|
+
}, me = (e) => {
|
|
2146
|
+
let { node: t } = S.findNode(e);
|
|
2137
2147
|
if (!t) {
|
|
2138
|
-
|
|
2148
|
+
C.value.add(e);
|
|
2139
2149
|
return;
|
|
2140
2150
|
}
|
|
2141
2151
|
let n = (e) => {
|
|
2142
|
-
|
|
2152
|
+
C.value.add(x(e.data)), e.children && e.children.forEach(n);
|
|
2143
2153
|
};
|
|
2144
2154
|
n(t);
|
|
2145
|
-
}, w = /* @__PURE__ */ new Map(),
|
|
2155
|
+
}, w = /* @__PURE__ */ new Map(), T = M(() => {
|
|
2146
2156
|
let e = [], t = /* @__PURE__ */ new Set();
|
|
2147
|
-
for (let n of
|
|
2157
|
+
for (let n of se.value) {
|
|
2148
2158
|
t.add(n.key);
|
|
2149
|
-
let i =
|
|
2159
|
+
let i = D.value.has(n.key), a = y.value.has(n.key), o = _.value.has(n.key), s = r.loadingKeys?.has(n.key) ?? !1, c = C.value.has(n.key), l = !r.readonly && S.isUnsaved(n.key), u = r.readonly ? !1 : l || c, d = w.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;
|
|
@@ -2165,95 +2175,95 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2165
2175
|
}
|
|
2166
2176
|
for (let e of w.keys()) t.has(e) || w.delete(e);
|
|
2167
2177
|
return e;
|
|
2168
|
-
}),
|
|
2169
|
-
rowsContainer:
|
|
2178
|
+
}), ge = M(() => a.value.children.length === 0), _e = M(() => se.value.length), E = qt("rowsContainer"), ve = M(() => !r.readonly && !r.disabled && !r.loading), ye = M(() => ve.value && !r.disableReorder && _e.value > 1), xe = M(() => !!l.item), we = M(() => !!l["item-readonly"]), Te = M(() => !!r.onItemSave), { editingKeys: D, editingSnapshots: De, clearEditing: ke, beginEdit: Ae, cancelEdit: je, commitEdit: Me, closeEdit: Ne, requestAutoOpen: O } = Fe({
|
|
2179
|
+
rowsContainer: E,
|
|
2170
2180
|
rowSelector: ".a-le-row-wrapper",
|
|
2171
2181
|
isInlineEdit: xe,
|
|
2172
|
-
restoreSnapshot: (e, t) =>
|
|
2182
|
+
restoreSnapshot: (e, t) => S.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
|
-
let { node: t } =
|
|
2190
|
+
let { node: t } = S.findNode(e);
|
|
2181
2191
|
return t ? { data: t.data } : null;
|
|
2182
2192
|
},
|
|
2183
2193
|
afterAutoOpen: (e) => {
|
|
2184
|
-
let { parent: t } =
|
|
2185
|
-
t && _.value.add(
|
|
2194
|
+
let { parent: t } = S.findNode(e);
|
|
2195
|
+
t && _.value.add(x(t.data));
|
|
2186
2196
|
}
|
|
2187
|
-
}), { applying:
|
|
2188
|
-
mode:
|
|
2197
|
+
}), { applying: Pe, applyError: Ie, hasPendingChanges: Le, movedCount: Be, reorderMode: k, enterReorderMode: He, cancelReorderMode: Ue, applyReorder: We } = nt({
|
|
2198
|
+
mode: s,
|
|
2189
2199
|
snapshot: le,
|
|
2190
|
-
movedKeys:
|
|
2191
|
-
modelValue:
|
|
2192
|
-
cloneModel: (e) =>
|
|
2200
|
+
movedKeys: C,
|
|
2201
|
+
modelValue: a,
|
|
2202
|
+
cloneModel: (e) => ue(e),
|
|
2193
2203
|
applyModel: (e) => {
|
|
2194
|
-
|
|
2204
|
+
a.value = e;
|
|
2195
2205
|
},
|
|
2196
2206
|
canEnterReorder: ye,
|
|
2197
2207
|
onEnter: () => {
|
|
2198
|
-
de.value = /* @__PURE__ */ new Set(),
|
|
2208
|
+
de.value = /* @__PURE__ */ new Set(), fe.value = /* @__PURE__ */ new Set(), ke();
|
|
2199
2209
|
for (let e of it.value) _.value.add(e);
|
|
2200
|
-
|
|
2201
|
-
|
|
2210
|
+
Ft(() => {
|
|
2211
|
+
Xe.value && vt();
|
|
2202
2212
|
});
|
|
2203
2213
|
},
|
|
2204
2214
|
onExternalEnter: () => {
|
|
2205
|
-
de.value = /* @__PURE__ */ new Set(),
|
|
2215
|
+
de.value = /* @__PURE__ */ new Set(), fe.value = /* @__PURE__ */ new Set(), ke();
|
|
2206
2216
|
},
|
|
2207
2217
|
onCancel: () => {
|
|
2208
|
-
for (let e of de.value)
|
|
2209
|
-
for (let e of
|
|
2210
|
-
de.value = /* @__PURE__ */ new Set(),
|
|
2218
|
+
for (let e of de.value) S.restoreDeleted(e);
|
|
2219
|
+
for (let e of fe.value) S.deleteItem(e, { trackDeleted: !1 });
|
|
2220
|
+
de.value = /* @__PURE__ */ new Set(), fe.value = /* @__PURE__ */ new Set(), ft();
|
|
2211
2221
|
},
|
|
2212
2222
|
onApplyEnd: () => {
|
|
2213
|
-
de.value = /* @__PURE__ */ new Set(),
|
|
2223
|
+
de.value = /* @__PURE__ */ new Set(), fe.value = /* @__PURE__ */ new Set(), ft();
|
|
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
|
+
}), Ge = M(() => Be.value + de.value.size), Ke = M(() => Le.value || de.value.size > 0), Je = M(() => ve.value && r.showAddButton && !k.value), Xe = M(() => k.value && !m.value && !r.disableDrag), Ze = M(() => r.addLabel ? c(r.addLabel) : c("common.sortable.add")), Qe = M(() => r.emptyTitle ?? c("common.sortable.emptyTitle")), $e = M(() => r.deleteConfirmTitle ?? c("common.sortable.deleteConfirmTitle")), et = M(() => r.deleteConfirmText ?? (r.deleteMode === "immediate" ? c("common.sortable.deleteConfirmText") : c("common.sortable.deleteConfirmTextDeferred"))), tt = M(() => !r.readonly && r.showReorderToggle && !k.value && _e.value > 0), rt = M(() => !!r.title && p.value), it = M(() => {
|
|
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
|
-
}), at = M(() => it.value.length > 0 && it.value.every((e) => _.value.has(e))), ot = M(() => !
|
|
2237
|
+
return t(a.value.children), e;
|
|
2238
|
+
}), at = M(() => it.value.length > 0 && it.value.every((e) => _.value.has(e))), ot = M(() => !k.value && it.value.length > 0), st = () => {
|
|
2229
2239
|
if (at.value) for (let e of it.value) _.value.delete(e);
|
|
2230
2240
|
else for (let e of it.value) _.value.add(e);
|
|
2231
|
-
}, lt = M(() => !!(r.title ||
|
|
2241
|
+
}, lt = M(() => !!(r.title || l.header || l["reorder-toggle"] || tt.value || ot.value || k.value)), ut = U([]), dt = U(0), ft = () => {
|
|
2232
2242
|
for (let e of ut.value) try {
|
|
2233
2243
|
e.stop();
|
|
2234
2244
|
} catch {}
|
|
2235
2245
|
ut.value = [];
|
|
2236
|
-
}, A =
|
|
2246
|
+
}, A = U(null), mt = (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 || !
|
|
2250
|
+
if (!r || !E.value || !E.value.contains(r)) return null;
|
|
2241
2251
|
let i = yt(r.getAttribute("data-id"));
|
|
2242
2252
|
if (i === null) return null;
|
|
2243
|
-
let a =
|
|
2253
|
+
let a = T.value.find((e) => e.key === i);
|
|
2244
2254
|
return a ? {
|
|
2245
2255
|
el: r,
|
|
2246
2256
|
viewItem: a
|
|
2247
2257
|
} : null;
|
|
2248
2258
|
}, ht = (e, t) => {
|
|
2249
|
-
if (!A.value || !
|
|
2259
|
+
if (!A.value || !E.value) return;
|
|
2250
2260
|
let n = mt(e, t);
|
|
2251
2261
|
if (!n) {
|
|
2252
2262
|
A.value.instruction = null;
|
|
2253
2263
|
return;
|
|
2254
2264
|
}
|
|
2255
|
-
let i =
|
|
2256
|
-
A.value.instruction =
|
|
2265
|
+
let i = E.value.getBoundingClientRect(), a = (n.el.querySelector(":scope > .a-le-row") ?? n.el).getBoundingClientRect();
|
|
2266
|
+
A.value.instruction = wr({
|
|
2257
2267
|
pointer: {
|
|
2258
2268
|
x: e,
|
|
2259
2269
|
y: t
|
|
@@ -2268,25 +2278,25 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2268
2278
|
},
|
|
2269
2279
|
sourceKey: A.value.sourceKey,
|
|
2270
2280
|
sourceSubtreeDepth: A.value.sourceSubtreeDepth,
|
|
2271
|
-
viewItems:
|
|
2281
|
+
viewItems: T.value,
|
|
2272
2282
|
maxDepth: r.maxDepth,
|
|
2273
|
-
indentPx:
|
|
2283
|
+
indentPx: ei,
|
|
2274
2284
|
containerLeft: i.left,
|
|
2275
|
-
containerPaddingLeft:
|
|
2285
|
+
containerPaddingLeft: ti
|
|
2276
2286
|
});
|
|
2277
2287
|
}, gt = (e) => {
|
|
2278
2288
|
ht(e.clientX, e.clientY);
|
|
2279
2289
|
}, _t = (e, t) => {
|
|
2280
|
-
if (!
|
|
2281
|
-
|
|
2290
|
+
if (!S.moveTo(t, e.parentKey, e.index)) {
|
|
2291
|
+
u("common.sortable.error.maxDeepExceed"), dt.value++, Ft(() => vt());
|
|
2282
2292
|
return;
|
|
2283
2293
|
}
|
|
2284
|
-
|
|
2294
|
+
me(t), e.makeChild && e.parentKey !== null && _.value.add(e.parentKey);
|
|
2285
2295
|
}, vt = () => {
|
|
2286
|
-
if (ft(), !
|
|
2287
|
-
let e = Array.from(
|
|
2296
|
+
if (ft(), !Xe.value || !E.value) return;
|
|
2297
|
+
let e = Array.from(E.value.querySelectorAll("." + $r));
|
|
2288
2298
|
for (let t of e) {
|
|
2289
|
-
let e =
|
|
2299
|
+
let e = v(t, [], {
|
|
2290
2300
|
group: {
|
|
2291
2301
|
name: "a-nested",
|
|
2292
2302
|
pull: !0,
|
|
@@ -2294,8 +2304,8 @@ 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:
|
|
2307
|
+
ghostClass: Se,
|
|
2308
|
+
chosenClass: ct,
|
|
2299
2309
|
dragClass: Ve,
|
|
2300
2310
|
fallbackOnBody: !0,
|
|
2301
2311
|
forceFallback: !0,
|
|
@@ -2303,7 +2313,7 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2303
2313
|
onStart: (e) => {
|
|
2304
2314
|
let t = e.item, n = yt(t.getAttribute("data-id"));
|
|
2305
2315
|
if (n === null) return;
|
|
2306
|
-
let r =
|
|
2316
|
+
let r = S.findNode(n).node, i = r ? S.calculateSubtreeDepth(r) : 1;
|
|
2307
2317
|
A.value = {
|
|
2308
2318
|
sourceKey: n,
|
|
2309
2319
|
sourceSubtreeDepth: i,
|
|
@@ -2333,34 +2343,34 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2333
2343
|
}
|
|
2334
2344
|
}, yt = (e) => {
|
|
2335
2345
|
if (e === null || e === "") return null;
|
|
2336
|
-
let t =
|
|
2346
|
+
let t = b(e);
|
|
2337
2347
|
return String(t) === e ? t : e;
|
|
2338
2348
|
};
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
}),
|
|
2342
|
-
|
|
2343
|
-
}),
|
|
2344
|
-
|
|
2345
|
-
}),
|
|
2346
|
-
|
|
2347
|
-
}),
|
|
2349
|
+
q(() => Xe.value, () => {
|
|
2350
|
+
Xe.value ? Ft(() => vt()) : ft();
|
|
2351
|
+
}), q(() => dt.value, () => {
|
|
2352
|
+
Xe.value && Ft(() => vt());
|
|
2353
|
+
}), q(() => T.value.map((e) => e.key).join("|"), () => {
|
|
2354
|
+
Xe.value && Ft(() => vt());
|
|
2355
|
+
}), zt(() => {
|
|
2356
|
+
Xe.value && vt();
|
|
2357
|
+
}), Rt(() => {
|
|
2348
2358
|
ft(), document.removeEventListener("pointermove", gt);
|
|
2349
2359
|
});
|
|
2350
2360
|
let bt = M(() => {
|
|
2351
2361
|
let e = A.value;
|
|
2352
|
-
if (!e || e.instruction === null || !
|
|
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 = ti + t.depth * ei, 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 = {
|
|
@@ -2375,96 +2385,96 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2375
2385
|
connector: l
|
|
2376
2386
|
};
|
|
2377
2387
|
}), xt = () => {
|
|
2378
|
-
|
|
2388
|
+
Je.value && (O(), r.factory && S.addItem(), i("add", void 0));
|
|
2379
2389
|
}, St = (e) => {
|
|
2380
|
-
|
|
2390
|
+
ve.value && (O(), r.factory && S.addAfter(e.key, void 0, e.childrenAllowed), i("add", {
|
|
2381
2391
|
afterId: e.key,
|
|
2382
2392
|
childrenAllowed: e.childrenAllowed
|
|
2383
2393
|
}));
|
|
2384
|
-
},
|
|
2385
|
-
|
|
2394
|
+
}, Ct = (e) => {
|
|
2395
|
+
ve.value && e.canAddChild && (O(), _.value.add(e.key), i("add-child", e), r.factory && S.addChild(e.key, void 0, !0), i("add", {
|
|
2386
2396
|
parentId: e.key,
|
|
2387
2397
|
childrenAllowed: !0
|
|
2388
2398
|
}));
|
|
2389
|
-
},
|
|
2390
|
-
if (
|
|
2391
|
-
if (
|
|
2392
|
-
|
|
2399
|
+
}, wt = (e) => {
|
|
2400
|
+
if (ve.value && !k.value) {
|
|
2401
|
+
if (D.value.has(e.key)) {
|
|
2402
|
+
Xt(e);
|
|
2393
2403
|
return;
|
|
2394
2404
|
}
|
|
2395
|
-
xe.value &&
|
|
2405
|
+
xe.value && Ae(e), i("edit", e);
|
|
2396
2406
|
}
|
|
2397
2407
|
}, Et = (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),
|
|
2410
|
+
n ? _.value.delete(t) : _.value.add(t), i("item-expand", e, !n);
|
|
2401
2411
|
}, Dt = (e) => {
|
|
2402
2412
|
if (r.disabled || r.loading) return;
|
|
2403
|
-
let t = e.key, n =
|
|
2404
|
-
n ?
|
|
2405
|
-
},
|
|
2406
|
-
if (
|
|
2413
|
+
let t = e.key, n = y.value.has(t);
|
|
2414
|
+
n ? y.value.delete(t) : y.value.add(t), i("item-expand", e, !n);
|
|
2415
|
+
}, Ot = (e) => r.disableRowClick || r.disabled || r.loading || k.value ? !1 : !!(e.editing || e.expanded || !r.readonly && r.showEditButton), kt = (e) => {
|
|
2416
|
+
if (Ot(e)) {
|
|
2407
2417
|
if (e.editing || e.expanded) {
|
|
2408
|
-
|
|
2418
|
+
Xt(e);
|
|
2409
2419
|
return;
|
|
2410
2420
|
}
|
|
2411
|
-
r.readonly &&
|
|
2421
|
+
r.readonly && we.value ? Dt(e) : wt(e);
|
|
2412
2422
|
}
|
|
2413
|
-
}, { deleteDialog:
|
|
2423
|
+
}, { deleteDialog: z, deleteInFlight: At, deleteError: Mt, onDeleteClick: Pt, onDeleteDialogConfirm: Bt, onDeleteDialogCancel: Ht } = be({
|
|
2414
2424
|
onDeleteConfirm: (e) => !r.onDeleteConfirm || r.onDeleteConfirm(e),
|
|
2415
2425
|
onDelete: (e) => r.onDelete?.(e),
|
|
2416
2426
|
onDeleted: (e) => {
|
|
2417
|
-
|
|
2427
|
+
D.value.delete(e.key), De.value.delete(e.key), y.value.delete(e.key), _.value.delete(e.key);
|
|
2418
2428
|
let t = r.deleteMode === "deferred";
|
|
2419
|
-
|
|
2429
|
+
k.value && (t ? de.value.add(e.key) : fe.value.add(e.key)), S.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),
|
|
2432
|
+
}), Wt = async (e) => {
|
|
2433
|
+
ve.value && await Pt(e);
|
|
2434
|
+
}, Jt = async (e) => {
|
|
2435
|
+
r.onItemSave && await r.onItemSave(e.raw), Me(e), i("item-saved", e);
|
|
2436
|
+
}, Yt = (e) => {
|
|
2437
|
+
je(e);
|
|
2438
|
+
}, Xt = (e) => {
|
|
2439
|
+
Ne(e), i("close", e);
|
|
2440
|
+
}, Y = (e) => {
|
|
2441
|
+
S.moveUp(e) && me(e);
|
|
2426
2442
|
}, Qt = (e) => {
|
|
2427
|
-
|
|
2428
|
-
}, $t = (e) => {
|
|
2429
|
-
Pe(e), o("close", e);
|
|
2430
|
-
}, en = (e) => {
|
|
2431
|
-
C.moveUp(e) && he(e);
|
|
2443
|
+
S.moveDown(e) && me(e);
|
|
2432
2444
|
}, tn = (e) => {
|
|
2433
|
-
|
|
2445
|
+
S.moveTop(e) && me(e);
|
|
2446
|
+
}, nn = (e) => {
|
|
2447
|
+
S.moveBottom(e) && me(e);
|
|
2434
2448
|
}, rn = (e) => {
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
C.moveBottom(e) && he(e);
|
|
2438
|
-
}, on = (e) => {
|
|
2439
|
-
if (!C.indent(e.key)) {
|
|
2440
|
-
f("common.sortable.error.maxDeepExceed");
|
|
2449
|
+
if (!S.indent(e.key)) {
|
|
2450
|
+
u("common.sortable.error.maxDeepExceed");
|
|
2441
2451
|
return;
|
|
2442
2452
|
}
|
|
2443
|
-
|
|
2444
|
-
},
|
|
2445
|
-
|
|
2446
|
-
},
|
|
2447
|
-
let t =
|
|
2453
|
+
me(e.key), i("indent", e);
|
|
2454
|
+
}, an = (e) => {
|
|
2455
|
+
S.outdent(e.key) && (me(e.key), i("outdent", e));
|
|
2456
|
+
}, sn = (e) => Ce(e, { compactField: r.compactField }), cn = (e, t) => t === void 0 ? null : S.rowState(e, t, D.value.has(t)), ln = /* @__PURE__ */ new Map(), un = (e) => {
|
|
2457
|
+
let t = ln.get(e);
|
|
2448
2458
|
return t || (t = {
|
|
2449
2459
|
edit: () => {
|
|
2450
2460
|
let t = $(e);
|
|
2451
|
-
t &&
|
|
2461
|
+
t && wt(t);
|
|
2452
2462
|
},
|
|
2453
2463
|
save: () => {
|
|
2454
2464
|
let t = $(e);
|
|
2455
|
-
if (t) return
|
|
2465
|
+
if (t) return Jt(t);
|
|
2456
2466
|
},
|
|
2457
2467
|
cancel: () => {
|
|
2458
2468
|
let t = $(e);
|
|
2459
|
-
t &&
|
|
2469
|
+
t && Yt(t);
|
|
2460
2470
|
},
|
|
2461
2471
|
close: () => {
|
|
2462
2472
|
let t = $(e);
|
|
2463
|
-
t &&
|
|
2473
|
+
t && Xt(t);
|
|
2464
2474
|
},
|
|
2465
2475
|
delete: async () => {
|
|
2466
2476
|
let t = $(e);
|
|
2467
|
-
t && await
|
|
2477
|
+
t && await Wt(t);
|
|
2468
2478
|
},
|
|
2469
2479
|
addAfter: () => {
|
|
2470
2480
|
let t = $(e);
|
|
@@ -2472,7 +2482,7 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2472
2482
|
},
|
|
2473
2483
|
addChild: () => {
|
|
2474
2484
|
let t = $(e);
|
|
2475
|
-
t &&
|
|
2485
|
+
t && Ct(t);
|
|
2476
2486
|
},
|
|
2477
2487
|
toggleExpand: () => {
|
|
2478
2488
|
let t = $(e);
|
|
@@ -2482,30 +2492,30 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2482
2492
|
let t = $(e);
|
|
2483
2493
|
t && Dt(t);
|
|
2484
2494
|
},
|
|
2485
|
-
moveUp: () =>
|
|
2486
|
-
moveDown: () =>
|
|
2487
|
-
moveTop: () =>
|
|
2488
|
-
moveBottom: () =>
|
|
2495
|
+
moveUp: () => Y(e),
|
|
2496
|
+
moveDown: () => Qt(e),
|
|
2497
|
+
moveTop: () => tn(e),
|
|
2498
|
+
moveBottom: () => nn(e),
|
|
2489
2499
|
indent: () => {
|
|
2490
2500
|
let t = $(e);
|
|
2491
|
-
t &&
|
|
2501
|
+
t && rn(t);
|
|
2492
2502
|
},
|
|
2493
2503
|
outdent: () => {
|
|
2494
2504
|
let t = $(e);
|
|
2495
|
-
t &&
|
|
2505
|
+
t && an(t);
|
|
2496
2506
|
},
|
|
2497
|
-
update: (t) =>
|
|
2498
|
-
},
|
|
2507
|
+
update: (t) => S.updateItem(e, t)
|
|
2508
|
+
}, ln.set(e, t)), t;
|
|
2499
2509
|
};
|
|
2500
|
-
|
|
2501
|
-
if (
|
|
2510
|
+
q(() => T.value, (e) => {
|
|
2511
|
+
if (ln.size === 0) return;
|
|
2502
2512
|
let t = new Set(e.map((e) => e.key));
|
|
2503
|
-
for (let e of
|
|
2513
|
+
for (let e of ln.keys()) t.has(e) || ln.delete(e);
|
|
2504
2514
|
});
|
|
2505
|
-
let
|
|
2515
|
+
let dn = (e) => ({
|
|
2506
2516
|
item: {
|
|
2507
2517
|
...e,
|
|
2508
|
-
validationState:
|
|
2518
|
+
validationState: cn(e.raw, e.key)
|
|
2509
2519
|
},
|
|
2510
2520
|
raw: e.raw,
|
|
2511
2521
|
index: e.index,
|
|
@@ -2526,34 +2536,34 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2526
2536
|
dirty: e.dirty,
|
|
2527
2537
|
unsaved: e.unsaved,
|
|
2528
2538
|
moved: e.moved,
|
|
2529
|
-
reorderMode:
|
|
2539
|
+
reorderMode: k.value,
|
|
2530
2540
|
canMoveUp: !e.firstInParent,
|
|
2531
2541
|
canMoveDown: !e.lastInParent,
|
|
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: m.value,
|
|
2546
|
+
stateKeyPrefix: oe.prefixFor(e.key),
|
|
2547
|
+
actions: un(e.key)
|
|
2548
|
+
}), fn = M(() => ({
|
|
2549
|
+
applying: Pe.value,
|
|
2550
|
+
hasPendingChanges: Ke.value,
|
|
2551
|
+
movedCount: Ge.value,
|
|
2552
|
+
error: Ie.value,
|
|
2543
2553
|
actions: {
|
|
2544
|
-
apply:
|
|
2545
|
-
cancel:
|
|
2554
|
+
apply: We,
|
|
2555
|
+
cancel: Ue
|
|
2546
2556
|
}
|
|
2547
|
-
})),
|
|
2548
|
-
mode:
|
|
2557
|
+
})), Q = M(() => ({
|
|
2558
|
+
mode: s.value,
|
|
2549
2559
|
disabled: !ye.value,
|
|
2550
|
-
hasPendingChanges:
|
|
2560
|
+
hasPendingChanges: Le.value,
|
|
2551
2561
|
actions: {
|
|
2552
|
-
enterReorderMode:
|
|
2553
|
-
exitReorderMode:
|
|
2562
|
+
enterReorderMode: He,
|
|
2563
|
+
exitReorderMode: Ue
|
|
2554
2564
|
}
|
|
2555
|
-
})), pn = M(() => new Set(it.value)), $ = (e) =>
|
|
2556
|
-
viewItems: M(() =>
|
|
2565
|
+
})), pn = M(() => new Set(it.value)), $ = (e) => T.value.find((t) => t.key === e), mn = re({
|
|
2566
|
+
viewItems: M(() => T.value.map((e) => ({
|
|
2557
2567
|
key: e.key,
|
|
2558
2568
|
expanded: e.childrenExpanded,
|
|
2559
2569
|
canExpand: pn.value.has(e.key),
|
|
@@ -2561,62 +2571,62 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2561
2571
|
canOutdent: !0
|
|
2562
2572
|
}))),
|
|
2563
2573
|
variant: "nested",
|
|
2564
|
-
isReorderMode:
|
|
2565
|
-
disabled: M(() => !
|
|
2566
|
-
isEditing: (e) =>
|
|
2574
|
+
isReorderMode: k,
|
|
2575
|
+
disabled: M(() => !ve.value),
|
|
2576
|
+
isEditing: (e) => D.value.has(e),
|
|
2567
2577
|
onToggleEdit: (e) => {
|
|
2568
2578
|
let t = $(e);
|
|
2569
|
-
t &&
|
|
2579
|
+
t && wt(t);
|
|
2570
2580
|
},
|
|
2571
2581
|
onCancelEdit: (e) => {
|
|
2572
2582
|
let t = $(e);
|
|
2573
|
-
t &&
|
|
2583
|
+
t && Xt(t);
|
|
2574
2584
|
},
|
|
2575
|
-
onMoveUp: (e) =>
|
|
2576
|
-
onMoveDown: (e) =>
|
|
2577
|
-
onMoveTop: (e) =>
|
|
2578
|
-
onMoveBottom: (e) =>
|
|
2585
|
+
onMoveUp: (e) => Y(e),
|
|
2586
|
+
onMoveDown: (e) => Qt(e),
|
|
2587
|
+
onMoveTop: (e) => tn(e),
|
|
2588
|
+
onMoveBottom: (e) => nn(e),
|
|
2579
2589
|
onIndent: (e) => {
|
|
2580
2590
|
let t = $(e);
|
|
2581
|
-
t &&
|
|
2591
|
+
t && rn(t);
|
|
2582
2592
|
},
|
|
2583
2593
|
onOutdent: (e) => {
|
|
2584
2594
|
let t = $(e);
|
|
2585
|
-
t &&
|
|
2595
|
+
t && an(t);
|
|
2586
2596
|
},
|
|
2587
2597
|
onToggleChildren: (e) => {
|
|
2588
2598
|
let t = $(e);
|
|
2589
2599
|
t && Et(t);
|
|
2590
2600
|
},
|
|
2591
|
-
onCancelReorder: () =>
|
|
2592
|
-
}), hn =
|
|
2601
|
+
onCancelReorder: () => Ue()
|
|
2602
|
+
}), hn = U(!1), gn = Ut(null), _n = M(() => {
|
|
2593
2603
|
let e = gn.value;
|
|
2594
2604
|
if (!e) return null;
|
|
2595
|
-
let t =
|
|
2605
|
+
let t = S.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 = M(() => gn.value ?
|
|
2611
|
+
}), vn = M(() => gn.value ? sn(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 &&
|
|
2606
|
-
}, xn =
|
|
2615
|
+
gn.value = null, t && n && e !== t.currentIndex && S.moveTo(n.key, t.parentId, e) && me(n.key);
|
|
2616
|
+
}, xn = U(!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 : S.findNode(e).node?.children?.length ?? 0;
|
|
2613
2623
|
let i = t === "first" ? 0 : r;
|
|
2614
|
-
|
|
2624
|
+
S.moveTo(n.key, e, i) && (me(n.key), e !== null && _.value.add(e));
|
|
2615
2625
|
}, Tn = M(() => ({
|
|
2616
|
-
reorderMode:
|
|
2626
|
+
reorderMode: k.value,
|
|
2617
2627
|
readonly: r.readonly,
|
|
2618
|
-
canInteract:
|
|
2619
|
-
dragEnabled:
|
|
2628
|
+
canInteract: ve.value,
|
|
2629
|
+
dragEnabled: Xe.value,
|
|
2620
2630
|
showExpandToggle: r.showExpandToggle,
|
|
2621
2631
|
showEditButton: r.showEditButton,
|
|
2622
2632
|
showDeleteButton: r.showDeleteButton,
|
|
@@ -2624,260 +2634,260 @@ 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: Te.value,
|
|
2628
2638
|
statusField: r.statusField,
|
|
2629
|
-
effectiveCloseVariant:
|
|
2639
|
+
effectiveCloseVariant: g.value,
|
|
2630
2640
|
keyboardNav: mn,
|
|
2631
|
-
isRowClickable:
|
|
2632
|
-
resolveCompactText:
|
|
2633
|
-
resolveValidation: (e, t) =>
|
|
2634
|
-
buildSlotProps:
|
|
2641
|
+
isRowClickable: Ot,
|
|
2642
|
+
resolveCompactText: sn,
|
|
2643
|
+
resolveValidation: (e, t) => cn(e, t),
|
|
2644
|
+
buildSlotProps: dn
|
|
2635
2645
|
})), En = {
|
|
2636
|
-
onRowClick:
|
|
2646
|
+
onRowClick: kt,
|
|
2637
2647
|
onChevronClick: Et,
|
|
2638
|
-
onEditClick:
|
|
2639
|
-
onDeleteClick:
|
|
2640
|
-
onCloseClick:
|
|
2641
|
-
onSaveClick:
|
|
2642
|
-
onCancelClick:
|
|
2648
|
+
onEditClick: wt,
|
|
2649
|
+
onDeleteClick: Wt,
|
|
2650
|
+
onCloseClick: Xt,
|
|
2651
|
+
onSaveClick: Jt,
|
|
2652
|
+
onCancelClick: Yt,
|
|
2643
2653
|
onAddAfterClick: St,
|
|
2644
|
-
onAddChildClick:
|
|
2645
|
-
moveUp: (e) =>
|
|
2646
|
-
moveDown: (e) =>
|
|
2647
|
-
moveTop: (e) =>
|
|
2648
|
-
moveBottom: (e) =>
|
|
2649
|
-
indent:
|
|
2650
|
-
outdent:
|
|
2654
|
+
onAddChildClick: Ct,
|
|
2655
|
+
moveUp: (e) => Y(e),
|
|
2656
|
+
moveDown: (e) => Qt(e),
|
|
2657
|
+
moveTop: (e) => tn(e),
|
|
2658
|
+
moveBottom: (e) => nn(e),
|
|
2659
|
+
indent: rn,
|
|
2660
|
+
outdent: an,
|
|
2651
2661
|
openMoveToPosition: yn,
|
|
2652
2662
|
openChangeParent: Cn
|
|
2653
|
-
}, Dn = M(() =>
|
|
2663
|
+
}, Dn = M(() => T.value.filter((e) => e.parentKey === null)), On = (e, t, n) => (S.addItem(t, {
|
|
2654
2664
|
afterId: e ?? void 0,
|
|
2655
2665
|
childrenAllowed: n
|
|
2656
|
-
}),
|
|
2666
|
+
}), Ft(() => S.commit()), a.value), kn = (e, t, n) => (_.value.add(e), S.addItem(t, {
|
|
2657
2667
|
parentId: e,
|
|
2658
2668
|
asFirstChild: !0,
|
|
2659
2669
|
childrenAllowed: n
|
|
2660
|
-
}),
|
|
2661
|
-
|
|
2670
|
+
}), Ft(() => S.commit()), a.value), An = (e) => {
|
|
2671
|
+
S.deleteItem(e), D.value.delete(e), De.value.delete(e), y.value.delete(e), _.value.delete(e), Ft(() => S.commit());
|
|
2662
2672
|
}, jn = (e, t, n = null, r = null, i = null) => {
|
|
2663
|
-
|
|
2664
|
-
}, Mn =
|
|
2665
|
-
|
|
2673
|
+
S.updateItem(e, t), Ft(() => S.commit());
|
|
2674
|
+
}, Mn = S.unsavedCount, Nn = () => {
|
|
2675
|
+
S.commit(), C.value = /* @__PURE__ */ new Set(), ke();
|
|
2666
2676
|
};
|
|
2667
|
-
|
|
2677
|
+
Tt(() => r.unsavedSectionLabel ? {
|
|
2668
2678
|
label: r.unsavedSectionLabel,
|
|
2669
|
-
dirty:
|
|
2679
|
+
dirty: S.hasUnsaved.value
|
|
2670
2680
|
} : []);
|
|
2671
|
-
let Pn = () => Re(
|
|
2672
|
-
let t =
|
|
2673
|
-
for (; t;) _.value.add(
|
|
2674
|
-
let n =
|
|
2675
|
-
n &&
|
|
2681
|
+
let Pn = () => Re(S, (e) => {
|
|
2682
|
+
let t = S.findNode(e).parent;
|
|
2683
|
+
for (; t;) _.value.add(x(t.data)), t = S.findNode(x(t.data)).parent;
|
|
2684
|
+
let n = S.viewItems.value.find((t) => t.key === e);
|
|
2685
|
+
n && Ae(n);
|
|
2676
2686
|
});
|
|
2677
|
-
return
|
|
2678
|
-
hasErrors:
|
|
2687
|
+
return Ye({
|
|
2688
|
+
hasErrors: S.hasErrors,
|
|
2679
2689
|
validationScope: r.validationScope,
|
|
2680
2690
|
validateProvided: r.validate !== void 0,
|
|
2681
2691
|
reveal: Pn
|
|
2682
2692
|
}), t({
|
|
2683
|
-
...
|
|
2693
|
+
...S,
|
|
2684
2694
|
validateAll: Pn,
|
|
2685
2695
|
addAfterId: On,
|
|
2686
2696
|
addChildToId: kn,
|
|
2687
2697
|
removeById: An,
|
|
2688
2698
|
updateData: jn,
|
|
2689
|
-
resetDirtyBaseline:
|
|
2690
|
-
hasUnsavedChanges:
|
|
2699
|
+
resetDirtyBaseline: pe,
|
|
2700
|
+
hasUnsavedChanges: S.hasUnsaved,
|
|
2691
2701
|
unsavedCount: Mn,
|
|
2692
2702
|
clearUnsavedState: Nn,
|
|
2693
|
-
viewItems:
|
|
2694
|
-
enterReorderMode:
|
|
2695
|
-
cancelReorderMode:
|
|
2696
|
-
applyReorder:
|
|
2703
|
+
viewItems: se,
|
|
2704
|
+
enterReorderMode: He,
|
|
2705
|
+
cancelReorderMode: Ue,
|
|
2706
|
+
applyReorder: We,
|
|
2697
2707
|
expand: (e) => _.value.add(e),
|
|
2698
2708
|
collapse: (e) => _.value.delete(e),
|
|
2699
2709
|
toggleExpand: (e) => {
|
|
2700
2710
|
_.value.has(e) ? _.value.delete(e) : _.value.add(e);
|
|
2701
2711
|
},
|
|
2702
|
-
expandDetail: (e) =>
|
|
2703
|
-
collapseDetail: (e) =>
|
|
2704
|
-
}), (t, n) => (
|
|
2712
|
+
expandDetail: (e) => y.value.add(e),
|
|
2713
|
+
collapseDetail: (e) => y.value.delete(e)
|
|
2714
|
+
}), (t, n) => (H(), F("div", {
|
|
2705
2715
|
ref_key: "rootEl",
|
|
2706
|
-
ref:
|
|
2707
|
-
class:
|
|
2716
|
+
ref: d,
|
|
2717
|
+
class: V(["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": K(m),
|
|
2721
|
+
"a-nested-list-editor--drag-enabled": Xe.value
|
|
2712
2722
|
}]])
|
|
2713
2723
|
}, [
|
|
2714
|
-
I("div",
|
|
2715
|
-
lt.value ? (
|
|
2716
|
-
R(
|
|
2717
|
-
class:
|
|
2718
|
-
"has-pending-changes":
|
|
2719
|
-
"pending-count":
|
|
2720
|
-
error:
|
|
2724
|
+
I("div", Gr, [
|
|
2725
|
+
lt.value ? (H(), F("div", Kr, [W(t.$slots, "header", B({ title: e.title }, Q.value), () => [e.title ? (H(), F("h3", qr, G(e.title), 1)) : P("", !0), I("div", Jr, [K(k) ? W(t.$slots, "reorder-toolbar", It(jt(fn.value)), () => [
|
|
2726
|
+
R(Ee, {
|
|
2727
|
+
class: V({ "a-le-toolbar-status--pending": Ke.value }),
|
|
2728
|
+
"has-pending-changes": Ke.value,
|
|
2729
|
+
"pending-count": Ge.value,
|
|
2730
|
+
error: K(Ie)
|
|
2721
2731
|
}, null, 8, [
|
|
2722
2732
|
"class",
|
|
2723
2733
|
"has-pending-changes",
|
|
2724
2734
|
"pending-count",
|
|
2725
2735
|
"error"
|
|
2726
2736
|
]),
|
|
2727
|
-
R(
|
|
2737
|
+
R(Z, {
|
|
2728
2738
|
variant: "text",
|
|
2729
2739
|
size: "small",
|
|
2730
|
-
disabled:
|
|
2731
|
-
onClick:
|
|
2740
|
+
disabled: K(Pe),
|
|
2741
|
+
onClick: K(Ue)
|
|
2732
2742
|
}, {
|
|
2733
|
-
default:
|
|
2743
|
+
default: J(() => [L(G(K(c)("common.sortable.reorderCancel")), 1)]),
|
|
2734
2744
|
_: 1
|
|
2735
2745
|
}, 8, ["disabled", "onClick"]),
|
|
2736
|
-
R(
|
|
2746
|
+
R(Z, {
|
|
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: K(Pe),
|
|
2752
|
+
disabled: K(Pe) || !Ke.value,
|
|
2753
|
+
onClick: K(We)
|
|
2744
2754
|
}, {
|
|
2745
|
-
default:
|
|
2755
|
+
default: J(() => [L(G(K(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) : (H(), F(j, { key: 1 }, [ot.value && rt.value ? (H(), N(Z, {
|
|
2753
2763
|
key: 0,
|
|
2754
2764
|
variant: "tonal",
|
|
2755
2765
|
color: "primary",
|
|
2756
2766
|
icon: "",
|
|
2757
2767
|
size: "x-small",
|
|
2758
|
-
onClick:
|
|
2768
|
+
onClick: st
|
|
2759
2769
|
}, {
|
|
2760
|
-
default:
|
|
2770
|
+
default: J(() => [R(X, {
|
|
2761
2771
|
icon: at.value ? "mdi-unfold-less-horizontal" : "mdi-unfold-more-horizontal",
|
|
2762
2772
|
size: "18"
|
|
2763
|
-
}, null, 8, ["icon"]), R(
|
|
2773
|
+
}, null, 8, ["icon"]), R(on, {
|
|
2764
2774
|
activator: "parent",
|
|
2765
2775
|
location: "bottom",
|
|
2766
|
-
text: at.value ?
|
|
2776
|
+
text: at.value ? K(c)("common.sortable.collapseAll") : K(c)("common.sortable.expandAll")
|
|
2767
2777
|
}, null, 8, ["text"])]),
|
|
2768
2778
|
_: 1
|
|
2769
|
-
})) : ot.value ? (
|
|
2779
|
+
})) : ot.value ? (H(), N(Z, {
|
|
2770
2780
|
key: 1,
|
|
2771
2781
|
variant: "tonal",
|
|
2772
2782
|
color: "primary",
|
|
2773
2783
|
size: "small",
|
|
2774
2784
|
"prepend-icon": at.value ? "mdi-unfold-less-horizontal" : "mdi-unfold-more-horizontal",
|
|
2775
|
-
onClick:
|
|
2785
|
+
onClick: st
|
|
2776
2786
|
}, {
|
|
2777
|
-
default:
|
|
2787
|
+
default: J(() => [L(G(at.value ? K(c)("common.sortable.collapseAll") : K(c)("common.sortable.expandAll")), 1)]),
|
|
2778
2788
|
_: 1
|
|
2779
|
-
}, 8, ["prepend-icon"])) : P("", !0), tt.value ?
|
|
2789
|
+
}, 8, ["prepend-icon"])) : P("", !0), tt.value ? W(t.$slots, "reorder-toggle", It(jt(Q.value)), () => [rt.value ? (H(), N(Z, {
|
|
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: K(He)
|
|
2787
2797
|
}, {
|
|
2788
|
-
default:
|
|
2798
|
+
default: J(() => [R(X, {
|
|
2789
2799
|
icon: "mdi-sort",
|
|
2790
2800
|
size: "18"
|
|
2791
|
-
}), R(
|
|
2801
|
+
}), R(on, {
|
|
2792
2802
|
activator: "parent",
|
|
2793
2803
|
location: "bottom",
|
|
2794
|
-
text:
|
|
2804
|
+
text: K(c)("common.sortable.reorder")
|
|
2795
2805
|
}, null, 8, ["text"])]),
|
|
2796
2806
|
_: 1
|
|
2797
|
-
}, 8, ["disabled", "onClick"])) : (
|
|
2807
|
+
}, 8, ["disabled", "onClick"])) : (H(), N(Z, {
|
|
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: K(He)
|
|
2805
2815
|
}, {
|
|
2806
|
-
default:
|
|
2816
|
+
default: J(() => [L(G(K(c)("common.sortable.reorder")), 1)]),
|
|
2807
2817
|
_: 1
|
|
2808
2818
|
}, 8, ["disabled", "onClick"]))], void 0, 2) : P("", !0)], 64))])])])) : P("", !0),
|
|
2809
|
-
e.loading ? (
|
|
2819
|
+
e.loading ? (H(), F("div", Yr, [R(en, {
|
|
2810
2820
|
indeterminate: "",
|
|
2811
2821
|
color: "primary",
|
|
2812
2822
|
size: "32"
|
|
2813
|
-
})])) : e.error ? (
|
|
2823
|
+
})])) : e.error ? (H(), F("div", Xr, [R($t, {
|
|
2814
2824
|
type: "error",
|
|
2815
2825
|
variant: "tonal",
|
|
2816
2826
|
density: "compact",
|
|
2817
2827
|
border: "start"
|
|
2818
2828
|
}, {
|
|
2819
|
-
default:
|
|
2829
|
+
default: J(() => [L(G(e.error), 1)]),
|
|
2820
2830
|
_: 1
|
|
2821
|
-
})])) :
|
|
2831
|
+
})])) : ge.value ? (H(), F("div", Zr, [W(t.$slots, "empty", {
|
|
2822
2832
|
readonly: e.readonly,
|
|
2823
2833
|
disabled: e.disabled,
|
|
2824
2834
|
actions: { add: xt }
|
|
2825
|
-
}, () => [R(
|
|
2826
|
-
title:
|
|
2827
|
-
"add-label":
|
|
2828
|
-
"can-add":
|
|
2835
|
+
}, () => [R(qe, {
|
|
2836
|
+
title: Qe.value,
|
|
2837
|
+
"add-label": Ze.value,
|
|
2838
|
+
"can-add": Je.value,
|
|
2829
2839
|
onAdd: xt
|
|
2830
2840
|
}, null, 8, [
|
|
2831
2841
|
"title",
|
|
2832
2842
|
"add-label",
|
|
2833
2843
|
"can-add"
|
|
2834
|
-
])])])) : (
|
|
2844
|
+
])])])) : (H(), F("div", {
|
|
2835
2845
|
key: dt.value,
|
|
2836
2846
|
ref_key: "rowsContainer",
|
|
2837
|
-
ref:
|
|
2838
|
-
class:
|
|
2847
|
+
ref: E,
|
|
2848
|
+
class: V(["a-nested-list-editor__rows", { "a-nested-list-editor__rows--dragging": A.value !== null }])
|
|
2839
2849
|
}, [I("div", {
|
|
2840
|
-
class:
|
|
2850
|
+
class: V([$r, "a-nested-list-editor__group--root"]),
|
|
2841
2851
|
"data-parent-id": ""
|
|
2842
|
-
}, [(
|
|
2852
|
+
}, [(H(!0), F(j, null, Vt(Dn.value, (e) => (H(), N(Hr, {
|
|
2843
2853
|
key: String(e.key),
|
|
2844
2854
|
vi: e,
|
|
2845
|
-
"view-items":
|
|
2855
|
+
"view-items": T.value,
|
|
2846
2856
|
"drag-state": A.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: J((e) => [W(t.$slots, "item", B({ ref_for: !0 }, e))]),
|
|
2861
|
+
"item-compact": J((e) => [W(t.$slots, "item-compact", B({ ref_for: !0 }, e))]),
|
|
2862
|
+
"item-readonly": J((e) => [W(t.$slots, "item-readonly", B({ ref_for: !0 }, e))]),
|
|
2863
|
+
"item-status": J((e) => [W(t.$slots, "item-status", B({ ref_for: !0 }, e))]),
|
|
2864
|
+
"item-footer": J((e) => [W(t.$slots, "item-footer", B({ ref_for: !0 }, e))]),
|
|
2865
|
+
"item-actions": J((e) => [W(t.$slots, "item-actions", B({ ref_for: !0 }, e))]),
|
|
2866
|
+
"before-item": J((e) => [W(t.$slots, "before-item", B({ ref_for: !0 }, e))]),
|
|
2867
|
+
"after-item": J((e) => [W(t.$slots, "after-item", B({ 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), bt.value === null ? P("", !0) : (
|
|
2874
|
+
]))), 128))], 2), bt.value === null ? P("", !0) : (H(), F(j, { key: 0 }, [bt.value.connector === null ? P("", !0) : (H(), F("div", {
|
|
2865
2875
|
key: 0,
|
|
2866
2876
|
class: "a-nested-list-editor__drop-connector",
|
|
2867
|
-
style:
|
|
2877
|
+
style: Lt({
|
|
2868
2878
|
left: `${bt.value.connector.left}px`,
|
|
2869
2879
|
top: `${bt.value.connector.top}px`,
|
|
2870
2880
|
height: `${bt.value.connector.height}px`
|
|
2871
2881
|
})
|
|
2872
2882
|
}, null, 4)), I("div", {
|
|
2873
2883
|
class: "a-nested-list-editor__drop-line",
|
|
2874
|
-
style:
|
|
2884
|
+
style: Lt({
|
|
2875
2885
|
top: `${bt.value.line.top}px`,
|
|
2876
2886
|
left: `${bt.value.line.left}px`,
|
|
2877
2887
|
right: `${bt.value.line.right}px`
|
|
2878
2888
|
})
|
|
2879
2889
|
}, [...n[3] ||= [I("span", { class: "a-nested-list-editor__drop-line-dot" }, null, -1)]], 4)], 64))], 2)),
|
|
2880
|
-
|
|
2890
|
+
Je.value && !e.loading && !e.error && !ge.value ? W(t.$slots, "add-button", {
|
|
2881
2891
|
readonly: e.readonly,
|
|
2882
2892
|
disabled: e.disabled,
|
|
2883
2893
|
props: { onClick: xt },
|
|
@@ -2886,10 +2896,10 @@ var Ln = { class: "d-flex flex-column w-100 px-1 align-center" }, Rn = { class:
|
|
|
2886
2896
|
type: "button",
|
|
2887
2897
|
class: "a-le-row-add",
|
|
2888
2898
|
onClick: xt
|
|
2889
|
-
}, [R(
|
|
2899
|
+
}, [R(X, {
|
|
2890
2900
|
icon: "mdi-plus",
|
|
2891
2901
|
size: "18"
|
|
2892
|
-
}), I("span", null,
|
|
2902
|
+
}), I("span", null, G(Ze.value), 1)])], void 0, 5) : P("", !0)
|
|
2893
2903
|
]),
|
|
2894
2904
|
R(pt, {
|
|
2895
2905
|
modelValue: hn.value,
|
|
@@ -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
|
-
R(
|
|
2917
|
+
R(Wr, {
|
|
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": K(te),
|
|
2913
2923
|
"max-depth": e.maxDepth,
|
|
2914
|
-
"resolve-label":
|
|
2915
|
-
"calculate-subtree-depth":
|
|
2924
|
+
"resolve-label": sn,
|
|
2925
|
+
"calculate-subtree-depth": K(S).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
|
-
R(
|
|
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
|
+
R(Oe, {
|
|
2936
|
+
modelValue: K(z),
|
|
2937
|
+
"onUpdate:modelValue": n[2] ||= (e) => Nt(z) ? z.value = e : null,
|
|
2938
|
+
title: $e.value,
|
|
2939
|
+
text: et.value,
|
|
2940
|
+
"confirm-label": K(c)("common.sortable.delete"),
|
|
2941
|
+
"cancel-label": K(c)("common.button.cancel"),
|
|
2942
|
+
error: K(Mt),
|
|
2943
|
+
"in-flight": K(At),
|
|
2944
|
+
onConfirm: K(Bt),
|
|
2945
|
+
onCancel: K(Ht)
|
|
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
|
-
I("div",
|
|
2948
|
-
n:
|
|
2949
|
-
total:
|
|
2957
|
+
I("div", Qr, G(K(mn).grabbedKey.value === null ? "" : K(c)("common.sortable.keyboardGrab.status", {
|
|
2958
|
+
n: K(mn).grabbedIndex.value + 1,
|
|
2959
|
+
total: K(mn).totalCount.value
|
|
2950
2960
|
})), 1)
|
|
2951
2961
|
], 2));
|
|
2952
2962
|
}
|
|
2953
|
-
}),
|
|
2963
|
+
}), ri = { class: "a-unsaved-sections" }, ii = /*#__PURE__*/ rt(/* @__PURE__ */ z({
|
|
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) => (H(), N(_n, {
|
|
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
|
-
R(
|
|
2984
|
-
default:
|
|
2991
|
+
default: J(() => [R(tn, null, {
|
|
2992
|
+
default: J(() => [
|
|
2993
|
+
R(an, null, {
|
|
2994
|
+
default: J(() => [L(G(e.title ?? K(i)("common.sortable.unsavedChanges.title")), 1)]),
|
|
2985
2995
|
_: 1
|
|
2986
2996
|
}),
|
|
2987
|
-
R(
|
|
2988
|
-
default:
|
|
2989
|
-
L(
|
|
2990
|
-
I("ul",
|
|
2991
|
-
L(" " +
|
|
2992
|
-
], 64)) : (
|
|
2997
|
+
R(rn, null, {
|
|
2998
|
+
default: J(() => [e.body ? (H(), F(j, { key: 0 }, [L(G(e.body), 1)], 64)) : e.dirtyLabels.length ? (H(), F(j, { key: 1 }, [
|
|
2999
|
+
L(G(K(i)("common.sortable.unsavedChanges.sectionsIntro")) + " ", 1),
|
|
3000
|
+
I("ul", ri, [(H(!0), F(j, null, Vt(e.dirtyLabels, (e, t) => (H(), F("li", { key: t }, G(e), 1))), 128))]),
|
|
3001
|
+
L(" " + G(K(i)("common.sortable.unsavedChanges.leaveQuestion")), 1)
|
|
3002
|
+
], 64)) : (H(), F(j, { key: 2 }, [L(G(K(i)("common.sortable.unsavedChanges.body")), 1)], 64))]),
|
|
2993
3003
|
_: 1
|
|
2994
3004
|
}),
|
|
2995
|
-
R(
|
|
2996
|
-
default:
|
|
2997
|
-
R(
|
|
2998
|
-
R(
|
|
3005
|
+
R(nn, null, {
|
|
3006
|
+
default: J(() => [
|
|
3007
|
+
R(Qt),
|
|
3008
|
+
R(Z, {
|
|
2999
3009
|
variant: "text",
|
|
3000
3010
|
onClick: a
|
|
3001
3011
|
}, {
|
|
3002
|
-
default:
|
|
3012
|
+
default: J(() => [L(G(e.stayLabel ?? K(i)("common.sortable.unsavedChanges.stay")), 1)]),
|
|
3003
3013
|
_: 1
|
|
3004
3014
|
}),
|
|
3005
|
-
R(
|
|
3015
|
+
R(Z, {
|
|
3006
3016
|
color: "warning",
|
|
3007
3017
|
variant: "flat",
|
|
3008
3018
|
onClick: o
|
|
3009
3019
|
}, {
|
|
3010
|
-
default:
|
|
3020
|
+
default: J(() => [L(G(e.discardLabel ?? K(i)("common.sortable.unsavedChanges.discard")), 1)]),
|
|
3011
3021
|
_: 1
|
|
3012
3022
|
})
|
|
3013
3023
|
]),
|
|
@@ -3019,9 +3029,9 @@ 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"]]), ai = 8e3, oi = (e) => e == null ? !1 : typeof e == "boolean" ? e : e instanceof Set ? e.size > 0 : Array.isArray(e) ? e.length > 0 : !!e, si = (e, t) => e === void 0 ? t : typeof e == "boolean" ? e : e.value;
|
|
3033
|
+
function ci(e) {
|
|
3034
|
+
let t = gt();
|
|
3025
3035
|
if (e.ownSections) {
|
|
3026
3036
|
let n = e.ownSections, r = Symbol("unsaved.section.own"), i = M(() => {
|
|
3027
3037
|
let e = n();
|
|
@@ -3029,7 +3039,7 @@ function ii(e) {
|
|
|
3029
3039
|
});
|
|
3030
3040
|
t.register(r, i);
|
|
3031
3041
|
}
|
|
3032
|
-
let n = M(() => e.sources.some((e) =>
|
|
3042
|
+
let n = M(() => e.sources.some((e) => oi(e.value)) || t.dirtyLabels.value.length > 0), r = U(!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
|
+
}, ai);
|
|
3042
3052
|
}, d = () => {
|
|
3043
3053
|
a = !1, s();
|
|
3044
3054
|
};
|
|
3045
|
-
if (
|
|
3046
|
-
|
|
3055
|
+
if (si(e.guardRoute, !0) && At()) try {
|
|
3056
|
+
hn(async () => !n.value || await c());
|
|
3047
3057
|
} catch {}
|
|
3048
3058
|
let f = [s], p = !1;
|
|
3049
|
-
if (
|
|
3059
|
+
if (si(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 = q(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 li(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 ui(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;
|
|
@@ -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,8 +3177,8 @@ 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 di() {
|
|
3181
|
+
let e = U(/* @__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
3183
|
}, i = M(() => {
|
|
3174
3184
|
let t = /* @__PURE__ */ new Set();
|
|
@@ -3183,6 +3193,6 @@ function si() {
|
|
|
3183
3193
|
};
|
|
3184
3194
|
}
|
|
3185
3195
|
//#endregion
|
|
3186
|
-
export {
|
|
3196
|
+
export { wn as ADatatableOrdering, jn as ADatatablePagination, De as AFilterBooleanSelect, Me as AFilterDatetimePicker, e as AFilterInteger, tt as AFilterRemoteAutocomplete, k as AFilterRemoteAutocompleteWithMinimal, dt as AFilterString, $e as AFilterTimeInterval, lt as AFilterValueObjectOptionsSelect, ee as AFilterWrapper, xn as AFilterWrapperSidebar, i as AFilterWrapperSubjectSelect, ft as AFormRemoteAutocomplete, Ot as AFormRemoteAutocompleteWithCached, vr as AListEditor, ni as ANestedSortableListEditor, Ze as ASortableListEditor, Qn as ASubjectSelect, ii as AUnsavedConfirmDialog, xt as DatatablePaginationKey, w as FilterConfigKey, m as FilterDataKey, d as FilterInnerConfigKey, se as FilterInnerDataKey, de as FiltersSelected, St as ListEditorStateScopeKey, Ne as SharedReorderRegistryKey, Le as TimeIntervalSpecialOptions, E as UserAdminConfigLayoutType, _e as UserAdminConfigLayoutTypeDefault, ye as UserAdminConfigType, le as UserAdminConfigTypeDefault, xe as buildFilterHash, zn as createDatatableColumnsConfig, vt as createFilter, Dt as createFilterStore, pe as createListEditorStateScope, Ae as generateListQuery, Te as isRouterSafeHash, We as nextListEditorTempId, o as provideListEditorStateScope, n as renumberPositions, He as sortByPosition, te as sortByPositionDeep, Nn as useApiFetchByIds, Pe as useApiFetchList, Pn as useApiFetchListBatch, Be as useApiQueryBuilder, _ as useApiRequest, me as useFilterHelpers, li as useGuardedDelete, In as useJobApi, ui as useListEditor, S as useListEditorController, yt as useListEditorStateEntry, l as useNestedListEditor, f as useNestedListEditorController, he as useNestedListEditorStateEntry, di as useNestedUnsavedKeys, ht as usePagination, Bn as useSubjectSelect, ci as useUnsavedChangesGuard, Tt as useUnsavedSection, at as useUserAdminConfigApi, ge as useUserAdminConfigFactory };
|
|
3187
3197
|
|
|
3188
3198
|
//# sourceMappingURL=labs.js.map
|