@anzusystems/common-admin 1.47.0-beta.dev-1789897769 → 1.47.0-beta.dev-1789936376
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-DIYc08Pe.mjs → AFormRemoteAutocomplete-C7LoRttw.mjs} +684 -642
- package/dist/AFormRemoteAutocomplete-C7LoRttw.mjs.map +1 -0
- package/dist/common-admin.d.ts +496 -450
- package/dist/common-admin.js +4773 -4779
- package/dist/common-admin.js.map +1 -1
- package/dist/{esm-Dov5R7kE.mjs → esm-DkZNKq8-.mjs} +2 -2
- package/dist/{esm-Dov5R7kE.mjs.map → esm-DkZNKq8-.mjs.map} +1 -1
- package/dist/labs.d.ts +107 -16
- package/dist/labs.js +697 -730
- package/dist/labs.js.map +1 -1
- package/dist/{webfontloader-Db3zCeVG.mjs → webfontloader-4S5HXEWX.mjs} +2 -2
- package/dist/{webfontloader-Db3zCeVG.mjs.map → webfontloader-4S5HXEWX.mjs.map} +1 -1
- package/package.json +1 -1
- package/src/eslint/plugin.mjs +128 -33
- package/dist/AFormRemoteAutocomplete-DIYc08Pe.mjs.map +0 -1
package/dist/labs.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { $ as e,
|
|
2
|
-
import { Fragment as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createTextVNode as I, createVNode as L, defineComponent as R, guardReactiveProps as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { VCol as J, VRow as
|
|
5
|
-
import { VAlert as
|
|
1
|
+
import { $ as e, $n as t, A as n, B as r, Bt as i, C as a, Ci as o, Ct as s, D as c, Dt as l, E as u, Ei as d, Et as f, F as p, G as m, Gt as h, H as g, Ht as _, I as v, In as y, J as b, Jt as x, K as S, Kt as ee, L as te, M as ne, N as C, O as w, Oi as T, Ot as re, P as ie, Pt as ae, Q as oe, Qt as se, R as ce, S as le, Sn as ue, St as de, T as fe, Ti as E, Tt as pe, U as me, Ut as he, V as ge, Vt as D, W as _e, Wt as ve, Xt as ye, Y as be, Yt as xe, Z as Se, Zt as Ce, _ as we, _t as O, a as Te, ai as Ee, ar as De, at as Oe, b as ke, bt as Ae, c as je, ct as Me, d as Ne, di as Pe, dt as Fe, f as Ie, fi as Le, ft as Re, g as ze, gr as k, gt as Be, h as Ve, ht as He, i as Ue, ir as We, it as Ge, j as Ke, jt as qe, k as Je, kt as Ye, l as Xe, ln as Ze, lt as Qe, m as $e, mi as et, mr as tt, mt as nt, n as rt, nt as it, o as at, oi as ot, ot as st, p as ct, pi as lt, pt as ut, q as dt, qt as ft, r as pt, rt as mt, s as ht, sr as gt, st as _t, t as vt, tt as yt, u as bt, ur as xt, ut as St, v as Ct, vt as wt, w as Tt, wi as Et, wt as Dt, x as Ot, xi as kt, xt as At, y as jt, yt as Mt, z as Nt } from "./AFormRemoteAutocomplete-C7LoRttw.mjs";
|
|
2
|
+
import { Fragment as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createTextVNode as I, createVNode as L, defineComponent as R, guardReactiveProps as Pt, inject as Ft, isRef as It, mergeModels as Lt, mergeProps as z, nextTick as Rt, normalizeClass as zt, normalizeProps as Bt, normalizeStyle as Vt, onBeforeUnmount as Ht, onMounted as Ut, openBlock as B, provide as Wt, ref as V, renderList as Gt, renderSlot as H, resolveComponent as Kt, shallowRef as qt, toDisplayString as U, toRaw as Jt, unref as W, useModel as Yt, useSlots as Xt, useTemplateRef as Zt, vShow as Qt, watch as G, withCtx as K, withDirectives as $t, withKeys as en, withModifiers as q } from "vue";
|
|
3
|
+
import { useI18n as tn } from "vue-i18n";
|
|
4
|
+
import { VCol as J, VRow as nn, VSpacer as rn } from "vuetify/components/VGrid";
|
|
5
|
+
import { VAlert as an } from "vuetify/components/VAlert";
|
|
6
6
|
import { VIcon as Y } from "vuetify/components/VIcon";
|
|
7
|
-
import { VProgressCircular as
|
|
8
|
-
import { VCard as
|
|
9
|
-
import { VTooltip as
|
|
10
|
-
import { useDebounceFn as
|
|
11
|
-
import { Intersect as
|
|
12
|
-
import { useDisplay as
|
|
7
|
+
import { VProgressCircular as on } from "vuetify/components/VProgressCircular";
|
|
8
|
+
import { VCard as sn, VCardActions as cn, VCardText as ln, VCardTitle as un } from "vuetify/components/VCard";
|
|
9
|
+
import { VTooltip as dn } from "vuetify/components/VTooltip";
|
|
10
|
+
import { useDebounceFn as fn, useThrottleFn as pn } from "@vueuse/core";
|
|
11
|
+
import { Intersect as mn } from "vuetify/directives";
|
|
12
|
+
import { useDisplay as hn } from "vuetify";
|
|
13
13
|
import { VBtn as X } from "vuetify/components/VBtn";
|
|
14
|
-
import { VBtnToggle as
|
|
15
|
-
import { VList as
|
|
16
|
-
import { VMenu as
|
|
17
|
-
import { VToolbar as
|
|
18
|
-
import { useRouter as
|
|
19
|
-
import { VDialog as
|
|
20
|
-
import { VSelect as
|
|
21
|
-
import { VDivider as
|
|
22
|
-
import { VForm as
|
|
23
|
-
import { VDataTableServer as
|
|
24
|
-
import { VRadio as
|
|
25
|
-
import { VRadioGroup as
|
|
14
|
+
import { VBtnToggle as Z } from "vuetify/components/VBtnToggle";
|
|
15
|
+
import { VList as gn, VListItem as Q, VListItemTitle as $ } from "vuetify/components/VList";
|
|
16
|
+
import { VMenu as _n } from "vuetify/components/VMenu";
|
|
17
|
+
import { VToolbar as vn } from "vuetify/components/VToolbar";
|
|
18
|
+
import { useRouter as yn } from "vue-router";
|
|
19
|
+
import { VDialog as bn } from "vuetify/components/VDialog";
|
|
20
|
+
import { VSelect as xn } from "vuetify/components/VSelect";
|
|
21
|
+
import { VDivider as Sn } from "vuetify/components/VDivider";
|
|
22
|
+
import { VForm as Cn } from "vuetify/components/VForm";
|
|
23
|
+
import { VDataTableServer as wn } from "vuetify/components/VDataTable";
|
|
24
|
+
import { VRadio as Tn } from "vuetify/components/VRadio";
|
|
25
|
+
import { VRadioGroup as En } from "vuetify/components/VRadioGroup";
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/labs/filters/AFilterWrapperSidebar.vue
|
|
28
|
-
var
|
|
28
|
+
var Dn = /* @__PURE__ */ R({
|
|
29
29
|
__name: "AFilterWrapperSidebar",
|
|
30
30
|
props: { formName: { default: "search" } },
|
|
31
31
|
emits: ["submit"],
|
|
32
32
|
setup(e, { expose: t, emit: n }) {
|
|
33
|
-
let r = n, i =
|
|
34
|
-
if (
|
|
35
|
-
|
|
33
|
+
let r = n, i = Ft(Ae), a = Ft(At);
|
|
34
|
+
if (E(i) || E(a)) throw Error("Incorrect provide/inject config.");
|
|
35
|
+
Wt(pe, V(0));
|
|
36
36
|
let o = V(/* @__PURE__ */ new Map());
|
|
37
|
-
|
|
38
|
-
let { clearAll:
|
|
37
|
+
Wt(Dt, o);
|
|
38
|
+
let { clearAll: s, clearAllFilterSelected: c } = Be(), l = () => {
|
|
39
39
|
r("submit");
|
|
40
40
|
};
|
|
41
41
|
return t({ resetFilter: () => {
|
|
42
|
-
|
|
43
|
-
} }), (t, n) => (B(), M(
|
|
42
|
+
s(a, i), c(a, i, o);
|
|
43
|
+
} }), (t, n) => (B(), M(Cn, {
|
|
44
44
|
name: e.formName,
|
|
45
|
-
onSubmit: q(
|
|
46
|
-
onKeyup:
|
|
45
|
+
onSubmit: q(l, ["prevent"]),
|
|
46
|
+
onKeyup: en(l, ["enter"])
|
|
47
47
|
}, {
|
|
48
48
|
default: K(() => [H(t.$slots, "default")]),
|
|
49
49
|
_: 3
|
|
50
50
|
}, 8, ["name"]));
|
|
51
51
|
}
|
|
52
|
-
}),
|
|
52
|
+
}), On = { class: "d-flex align-center justify-center" }, kn = { class: "text-body-small mr-1" }, An = /* @__PURE__ */ R({
|
|
53
53
|
__name: "ADatatableOrdering",
|
|
54
|
-
props: /*@__PURE__*/
|
|
54
|
+
props: /*@__PURE__*/ Lt({
|
|
55
55
|
variant: { default: "id" },
|
|
56
56
|
customOptions: { default: void 0 },
|
|
57
57
|
paginationUpdateCustomCb: {
|
|
@@ -65,45 +65,45 @@ var En = /* @__PURE__ */ R({
|
|
|
65
65
|
},
|
|
66
66
|
modelModifiers: {}
|
|
67
67
|
}),
|
|
68
|
-
emits: /*@__PURE__*/
|
|
68
|
+
emits: /*@__PURE__*/ Lt(["sortByChange"], ["update:modelValue"]),
|
|
69
69
|
setup(e, { emit: t }) {
|
|
70
|
-
let n = e, r = t, i =
|
|
71
|
-
if (
|
|
72
|
-
let { t: o } =
|
|
70
|
+
let n = e, r = t, i = Yt(e, "modelValue"), a = Ft(Mt);
|
|
71
|
+
if (E(a)) throw Error("Incorrect provide/inject config.");
|
|
72
|
+
let { t: o } = tn(), s = [{
|
|
73
73
|
id: 1,
|
|
74
74
|
titleT: "common.system.datatable.ordering.mostRecent",
|
|
75
75
|
sortBy: {
|
|
76
76
|
key: "createdAt",
|
|
77
|
-
order:
|
|
77
|
+
order: xt.Desc
|
|
78
78
|
}
|
|
79
79
|
}, {
|
|
80
80
|
id: 2,
|
|
81
81
|
titleT: "common.system.datatable.ordering.oldest",
|
|
82
82
|
sortBy: {
|
|
83
83
|
key: "createdAt",
|
|
84
|
-
order:
|
|
84
|
+
order: xt.Asc
|
|
85
85
|
}
|
|
86
86
|
}], c = [{
|
|
87
87
|
id: 1,
|
|
88
88
|
titleT: "common.system.datatable.ordering.mostRecent",
|
|
89
89
|
sortBy: {
|
|
90
90
|
key: "id",
|
|
91
|
-
order:
|
|
91
|
+
order: xt.Desc
|
|
92
92
|
}
|
|
93
93
|
}, {
|
|
94
94
|
id: 2,
|
|
95
95
|
titleT: "common.system.datatable.ordering.oldest",
|
|
96
96
|
sortBy: {
|
|
97
97
|
key: "id",
|
|
98
|
-
order:
|
|
98
|
+
order: xt.Asc
|
|
99
99
|
}
|
|
100
100
|
}], l = [
|
|
101
101
|
{
|
|
102
102
|
id: 3,
|
|
103
103
|
titleT: "common.system.datatable.ordering.mostRelevant",
|
|
104
104
|
sortBy: {
|
|
105
|
-
key:
|
|
106
|
-
order:
|
|
105
|
+
key: gt,
|
|
106
|
+
order: xt.Desc
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
{
|
|
@@ -111,7 +111,7 @@ var En = /* @__PURE__ */ R({
|
|
|
111
111
|
titleT: "common.system.datatable.ordering.mostRecent",
|
|
112
112
|
sortBy: {
|
|
113
113
|
key: "createdAt",
|
|
114
|
-
order:
|
|
114
|
+
order: xt.Desc
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
{
|
|
@@ -119,7 +119,7 @@ var En = /* @__PURE__ */ R({
|
|
|
119
119
|
titleT: "common.system.datatable.ordering.oldest",
|
|
120
120
|
sortBy: {
|
|
121
121
|
key: "createdAt",
|
|
122
|
-
order:
|
|
122
|
+
order: xt.Asc
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
], u = j(() => {
|
|
@@ -140,8 +140,8 @@ var En = /* @__PURE__ */ R({
|
|
|
140
140
|
return G(i, (e, t) => {
|
|
141
141
|
if (e === t) return;
|
|
142
142
|
let r = d.value.find((t) => t.id === e);
|
|
143
|
-
if (!
|
|
144
|
-
if (
|
|
143
|
+
if (!E(r)) {
|
|
144
|
+
if (E(n.paginationUpdateCustomCb)) {
|
|
145
145
|
p(r);
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
@@ -150,28 +150,28 @@ var En = /* @__PURE__ */ R({
|
|
|
150
150
|
}), G(a, (e, t) => {
|
|
151
151
|
if (e.sortBy?.key === t?.sortBy?.key && e.sortBy?.order === t?.sortBy?.order) return;
|
|
152
152
|
let n = d.value.find((t) => e.sortBy?.key === t.sortBy?.key && e.sortBy?.order === t.sortBy?.order);
|
|
153
|
-
|
|
154
|
-
}, { immediate: !0 }), (e, t) => (B(), P("div",
|
|
153
|
+
E(n) || (i.value = n.id);
|
|
154
|
+
}, { immediate: !0 }), (e, t) => (B(), P("div", On, [F("div", kn, U(W(o)("common.system.datatable.ordering.title")) + ":", 1), L(X, {
|
|
155
155
|
variant: "text",
|
|
156
156
|
rounded: "xl",
|
|
157
157
|
size: "small",
|
|
158
158
|
class: "text-medium-emphasis",
|
|
159
159
|
"append-icon": "mdi-chevron-down"
|
|
160
160
|
}, {
|
|
161
|
-
default: K(() => [I(U(u.value) + " ", 1), L(
|
|
161
|
+
default: K(() => [I(U(u.value) + " ", 1), L(_n, {
|
|
162
162
|
activator: "parent",
|
|
163
163
|
location: "bottom",
|
|
164
164
|
"close-on-content-click": ""
|
|
165
165
|
}, {
|
|
166
|
-
default: K(() => [L(
|
|
166
|
+
default: K(() => [L(gn, {
|
|
167
167
|
density: "compact",
|
|
168
168
|
class: "pa-0"
|
|
169
169
|
}, {
|
|
170
|
-
default: K(() => [(B(!0), P(A, null,
|
|
170
|
+
default: K(() => [(B(!0), P(A, null, Gt(d.value, (e) => (B(), M(Q, {
|
|
171
171
|
key: e.id,
|
|
172
172
|
onClick: (t) => f(e)
|
|
173
173
|
}, {
|
|
174
|
-
default: K(() => [L($, { class:
|
|
174
|
+
default: K(() => [L($, { class: zt({ "font-weight-bold": e.id === i.value }) }, {
|
|
175
175
|
default: K(() => [I(U(W(o)(e.titleT)), 1)]),
|
|
176
176
|
_: 2
|
|
177
177
|
}, 1032, ["class"])]),
|
|
@@ -184,10 +184,10 @@ var En = /* @__PURE__ */ R({
|
|
|
184
184
|
_: 1
|
|
185
185
|
})]));
|
|
186
186
|
}
|
|
187
|
-
}),
|
|
187
|
+
}), jn = { class: "anzu-data-footer" }, Mn = {
|
|
188
188
|
key: 0,
|
|
189
189
|
class: "anzu-data-footer__page-limit"
|
|
190
|
-
},
|
|
190
|
+
}, Nn = { class: "anzu-data-footer__pagination" }, Pn = { class: "anzu-data-footer__icons-before" }, Fn = { class: "current-page" }, In = { class: "anzu-data-footer__icons-after" }, Ln = /* @__PURE__ */ R({
|
|
191
191
|
__name: "ADatatablePagination",
|
|
192
192
|
props: {
|
|
193
193
|
itemsPerPageOptions: { default: () => [
|
|
@@ -202,25 +202,25 @@ var En = /* @__PURE__ */ R({
|
|
|
202
202
|
},
|
|
203
203
|
emits: ["change"],
|
|
204
204
|
setup(e, { emit: t }) {
|
|
205
|
-
let n = t, r =
|
|
206
|
-
if (
|
|
207
|
-
let { t: i } =
|
|
205
|
+
let n = t, r = Ft(Mt);
|
|
206
|
+
if (E(r)) throw Error("Incorrect provide/inject config.");
|
|
207
|
+
let { t: i } = tn(), { setStoredPage: a } = re(), o = Ft(wt, void 0), s = Ft(Ae, void 0), c = j(() => o ?? l(s?.general.system, s?.general.subject)), u = j(() => Math.ceil(r.value.totalCount / r.value.rowsPerPage)), d = j(() => r.value.page * r.value.rowsPerPage - r.value.rowsPerPage + 1), f = j(() => r.value.page * r.value.rowsPerPage - r.value.rowsPerPage + r.value.currentViewCount), p = j(() => r.value.page === 1), m = j(() => !kt(r.value.hasNextPage) || r.value.page >= u.value), h = j(() => kt(r.value.hasNextPage) && r.value.page >= u.value || r.value.hasNextPage === !1), g = j(() => kt(r.value.hasNextPage) ? r.value.totalCount : r.value.hasNextPage ? f.value + 1 + "+" : f.value);
|
|
208
208
|
G(() => r.value.rowsPerPage, (e, t) => {
|
|
209
209
|
e !== t && (r.value.page = 1, n("change"));
|
|
210
210
|
}), G(() => r.value.page, (e, t) => {
|
|
211
211
|
e !== t && (a(c.value, e), n("change"));
|
|
212
212
|
});
|
|
213
|
-
let
|
|
213
|
+
let _ = pn(() => {
|
|
214
214
|
r.value.page = 1;
|
|
215
|
-
}, 300, !1),
|
|
216
|
-
r.value.page =
|
|
217
|
-
}, 300, !1),
|
|
215
|
+
}, 300, !1), v = pn(() => {
|
|
216
|
+
r.value.page = u.value;
|
|
217
|
+
}, 300, !1), y = pn(() => {
|
|
218
218
|
r.value.page = r.value.page - 1;
|
|
219
|
-
}, 300, !1),
|
|
219
|
+
}, 300, !1), b = pn(() => {
|
|
220
220
|
r.value.page = r.value.page + 1;
|
|
221
221
|
}, 300, !1);
|
|
222
|
-
return (t, n) => (B(), P("div",
|
|
223
|
-
e.hideRecordsPerPage ? N("", !0) : (B(), P("div",
|
|
222
|
+
return (t, n) => (B(), P("div", jn, [
|
|
223
|
+
e.hideRecordsPerPage ? N("", !0) : (B(), P("div", Mn, [I(U(W(i)("common.system.datatable.itemsPerPage")) + ": ", 1), L(Z, {
|
|
224
224
|
modelValue: W(r).rowsPerPage,
|
|
225
225
|
"onUpdate:modelValue": n[0] ||= (e) => W(r).rowsPerPage = e,
|
|
226
226
|
class: "ml-2",
|
|
@@ -228,7 +228,7 @@ var En = /* @__PURE__ */ R({
|
|
|
228
228
|
mandatory: "",
|
|
229
229
|
"data-cy": "table-size"
|
|
230
230
|
}, {
|
|
231
|
-
default: K(() => [(B(!0), P(A, null,
|
|
231
|
+
default: K(() => [(B(!0), P(A, null, Gt(e.itemsPerPageOptions, (e) => (B(), M(X, {
|
|
232
232
|
key: e,
|
|
233
233
|
color: e === W(r).rowsPerPage ? "secondary" : "",
|
|
234
234
|
value: e,
|
|
@@ -241,70 +241,37 @@ var En = /* @__PURE__ */ R({
|
|
|
241
241
|
}, 1032, ["color", "value"]))), 128))]),
|
|
242
242
|
_: 1
|
|
243
243
|
}, 8, ["modelValue"])])),
|
|
244
|
-
F("div",
|
|
245
|
-
F("div",
|
|
246
|
-
disabled:
|
|
244
|
+
F("div", Nn, U(d.value) + " - " + U(f.value) + " " + U(W(i)("common.system.datatable.from")) + " " + U(g.value), 1),
|
|
245
|
+
F("div", Pn, [L(X, {
|
|
246
|
+
disabled: p.value,
|
|
247
247
|
icon: "mdi-page-first",
|
|
248
248
|
size: "small",
|
|
249
249
|
variant: "text",
|
|
250
|
-
onClick: q(W(
|
|
250
|
+
onClick: q(W(_), ["stop"])
|
|
251
251
|
}, null, 8, ["disabled", "onClick"]), L(X, {
|
|
252
|
-
disabled:
|
|
252
|
+
disabled: p.value,
|
|
253
253
|
icon: "mdi-chevron-left",
|
|
254
254
|
size: "small",
|
|
255
255
|
variant: "text",
|
|
256
|
-
onClick: q(W(
|
|
256
|
+
onClick: q(W(y), ["stop"])
|
|
257
257
|
}, null, 8, ["disabled", "onClick"])]),
|
|
258
|
-
F("div",
|
|
259
|
-
F("div",
|
|
260
|
-
disabled:
|
|
258
|
+
F("div", Fn, [F("span", null, U(W(r).page), 1)]),
|
|
259
|
+
F("div", In, [L(X, {
|
|
260
|
+
disabled: h.value,
|
|
261
261
|
icon: "mdi-chevron-right",
|
|
262
262
|
size: "small",
|
|
263
263
|
variant: "text",
|
|
264
|
-
onClick: q(W(
|
|
264
|
+
onClick: q(W(b), ["stop"])
|
|
265
265
|
}, null, 8, ["disabled", "onClick"]), L(X, {
|
|
266
|
-
disabled:
|
|
266
|
+
disabled: m.value,
|
|
267
267
|
icon: "mdi-page-last",
|
|
268
268
|
size: "small",
|
|
269
269
|
variant: "text",
|
|
270
|
-
onClick: q(W(
|
|
270
|
+
onClick: q(W(v), ["stop"])
|
|
271
271
|
}, null, 8, ["disabled", "onClick"])])
|
|
272
272
|
]));
|
|
273
273
|
}
|
|
274
|
-
}),
|
|
275
|
-
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: a, options: o = {}, cancelPrevious: s = !1 } = e, c = v({ cancelPrevious: s });
|
|
276
|
-
return {
|
|
277
|
-
execute: async (e = {}) => {
|
|
278
|
-
let { urlTemplate: s, urlParams: l, signal: u } = e, d, f;
|
|
279
|
-
try {
|
|
280
|
-
let e = await c.run((e) => {
|
|
281
|
-
let n = st(s) ? s : i;
|
|
282
|
-
if (k(n)) throw new se(void 0, "Url template is undefined");
|
|
283
|
-
let r = st(l) ? l : a, c = k(r) ? n : Ce(n, r), u = t();
|
|
284
|
-
return d = c, u.get(c, {
|
|
285
|
-
...ve(o),
|
|
286
|
-
signal: e
|
|
287
|
-
});
|
|
288
|
-
}, u);
|
|
289
|
-
f = e.config;
|
|
290
|
-
let n = () => g(t, d, o, void 0, f);
|
|
291
|
-
if (!ye(e.status)) throw new m(e.status);
|
|
292
|
-
if (e.status === 204) return [];
|
|
293
|
-
if (!ge(e)) throw new m(e.status, void 0, "Expected a response body, url: " + n());
|
|
294
|
-
return Pe(e.data, e.status, n()).items;
|
|
295
|
-
} catch (e) {
|
|
296
|
-
let i = {
|
|
297
|
-
system: n,
|
|
298
|
-
entity: r,
|
|
299
|
-
url: g(t, d, o, e, f)
|
|
300
|
-
};
|
|
301
|
-
throw ee(dt(e, i), i);
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
abort: c.abort,
|
|
305
|
-
loading: c.loading
|
|
306
|
-
};
|
|
307
|
-
}, Rn = class extends Error {
|
|
274
|
+
}), Rn = class extends Error {
|
|
308
275
|
pageUrl;
|
|
309
276
|
failure;
|
|
310
277
|
dispatched;
|
|
@@ -312,30 +279,30 @@ var En = /* @__PURE__ */ R({
|
|
|
312
279
|
super("Batch page failed"), this.pageUrl = e, this.failure = t, this.dispatched = n, this.name = "PageFailure";
|
|
313
280
|
}
|
|
314
281
|
}, zn = (e) => {
|
|
315
|
-
let { client:
|
|
282
|
+
let { client: n, system: r, entity: i, urlTemplate: a, urlParams: o, options: s = {}, cancelPrevious: c = !1 } = e, l = he({ cancelPrevious: c });
|
|
316
283
|
return {
|
|
317
|
-
execute: async (e,
|
|
318
|
-
let { urlTemplate:
|
|
284
|
+
execute: async (e, c, u = {}) => {
|
|
285
|
+
let { urlTemplate: d, urlParams: f, sortBy: p = "id", sortDesc: m = !0, batchSize: g = 100, forceElastic: _ = !1, signal: v } = u;
|
|
319
286
|
try {
|
|
320
|
-
return await
|
|
321
|
-
let
|
|
322
|
-
if (
|
|
323
|
-
if (
|
|
324
|
-
let
|
|
325
|
-
let
|
|
287
|
+
return await l.run(async (r) => {
|
|
288
|
+
let i = et(d) ? d : a;
|
|
289
|
+
if (E(i)) throw new t(void 0, "Url template is undefined");
|
|
290
|
+
if (g < 1) throw new t(void 0, "batchSize must be at least 1, got " + g);
|
|
291
|
+
let l = et(f) ? f : o, u = c.general.elastic || _ ? "/search" : "", v = (E(l) ? i : se(i, l)) + u, b = n(), { pagination: x } = Oe(p, m ? xt.Desc : xt.Asc, { rowsPerPage: g }), S = async (t) => {
|
|
292
|
+
let n = v + st(t, e, c);
|
|
326
293
|
try {
|
|
327
294
|
return {
|
|
328
|
-
res: await
|
|
329
|
-
...
|
|
330
|
-
signal:
|
|
295
|
+
res: await b.get(n, {
|
|
296
|
+
...h(s),
|
|
297
|
+
signal: r
|
|
331
298
|
}),
|
|
332
|
-
pageUrl:
|
|
299
|
+
pageUrl: n
|
|
333
300
|
};
|
|
334
301
|
} catch (e) {
|
|
335
|
-
throw new Rn(
|
|
302
|
+
throw new Rn(n, e);
|
|
336
303
|
}
|
|
337
|
-
},
|
|
338
|
-
if (!
|
|
304
|
+
}, te = (e, t) => ee(n, t, s, void 0, e.config), ne = (e, t) => {
|
|
305
|
+
if (!Ce(e.status)) throw new Rn(t, new y(e.status), e.config);
|
|
339
306
|
if (e.status === 204) return {
|
|
340
307
|
items: [],
|
|
341
308
|
mode: "unknown",
|
|
@@ -344,10 +311,10 @@ var En = /* @__PURE__ */ R({
|
|
|
344
311
|
countIsBound: !1,
|
|
345
312
|
empty: !0
|
|
346
313
|
};
|
|
347
|
-
if (!
|
|
314
|
+
if (!ve(e)) throw new Rn(t, new y(e.status, void 0, "Expected a response body, url: " + te(e, t)), e.config);
|
|
348
315
|
let n;
|
|
349
316
|
try {
|
|
350
|
-
n =
|
|
317
|
+
n = Fe(e.data, e.status, te(e, t));
|
|
351
318
|
} catch (n) {
|
|
352
319
|
throw new Rn(t, n, e.config);
|
|
353
320
|
}
|
|
@@ -359,57 +326,57 @@ var En = /* @__PURE__ */ R({
|
|
|
359
326
|
countIsBound: n.countIsBound,
|
|
360
327
|
empty: !1
|
|
361
328
|
};
|
|
362
|
-
},
|
|
363
|
-
if (
|
|
364
|
-
let
|
|
365
|
-
if (
|
|
366
|
-
let e =
|
|
329
|
+
}, C = await S(x), w = ne(C.res, C.pageUrl), T = [...w.items];
|
|
330
|
+
if (w.empty) return T;
|
|
331
|
+
let re = w.items.length > 0 && w.items.length < x.value.rowsPerPage;
|
|
332
|
+
if (re && (x.value.rowsPerPage = w.items.length), w.mode === "infinite") {
|
|
333
|
+
let e = w.hasNextPage;
|
|
367
334
|
for (; e;) {
|
|
368
|
-
|
|
369
|
-
let t = await
|
|
370
|
-
if (
|
|
335
|
+
x.value.page++;
|
|
336
|
+
let t = await S(x), n = ne(t.res, t.pageUrl);
|
|
337
|
+
if (T.push(...n.items), n.empty) break;
|
|
371
338
|
e = n.hasNextPage;
|
|
372
339
|
}
|
|
373
|
-
return
|
|
340
|
+
return T;
|
|
374
341
|
}
|
|
375
|
-
if (
|
|
376
|
-
if (
|
|
342
|
+
if (w.mode !== "counted" || T.length >= w.totalCount) return T;
|
|
343
|
+
if (re || w.countIsBound) {
|
|
377
344
|
for (;;) {
|
|
378
|
-
|
|
379
|
-
let e = await
|
|
380
|
-
if (
|
|
345
|
+
x.value.page++;
|
|
346
|
+
let e = await S(x), t = ne(e.res, e.pageUrl);
|
|
347
|
+
if (T.push(...t.items), t.items.length < x.value.rowsPerPage) break;
|
|
381
348
|
}
|
|
382
|
-
return
|
|
349
|
+
return T;
|
|
383
350
|
}
|
|
384
|
-
let
|
|
385
|
-
return
|
|
386
|
-
...
|
|
351
|
+
let ie = Math.ceil(w.totalCount / x.value.rowsPerPage);
|
|
352
|
+
return ie <= 1 || (await Promise.all(Array.from({ length: ie - 1 }, (e, t) => S(V({
|
|
353
|
+
...x.value,
|
|
387
354
|
page: t + 2
|
|
388
|
-
})).then((e) =>
|
|
355
|
+
})).then((e) => ne(e.res, e.pageUrl))))).forEach((e) => T.push(...e.items)), T;
|
|
389
356
|
}, v);
|
|
390
357
|
} catch (e) {
|
|
391
|
-
let
|
|
392
|
-
system:
|
|
393
|
-
entity:
|
|
394
|
-
url:
|
|
358
|
+
let t = e instanceof Rn ? e : null, a = {
|
|
359
|
+
system: r,
|
|
360
|
+
entity: i,
|
|
361
|
+
url: ee(n, t?.pageUrl, s, t?.failure ?? e, t?.dispatched)
|
|
395
362
|
};
|
|
396
|
-
throw
|
|
363
|
+
throw xe(x(t?.failure ?? e, a), a);
|
|
397
364
|
}
|
|
398
365
|
},
|
|
399
|
-
abort:
|
|
400
|
-
loading:
|
|
366
|
+
abort: l.abort,
|
|
367
|
+
loading: l.loading
|
|
401
368
|
};
|
|
402
369
|
}, Bn = "/adm/v1/job";
|
|
403
370
|
function Vn(e, t) {
|
|
404
371
|
return {
|
|
405
|
-
useFetchJobList: () =>
|
|
372
|
+
useFetchJobList: () => _t({
|
|
406
373
|
client: e,
|
|
407
374
|
system: t,
|
|
408
375
|
entity: "job",
|
|
409
376
|
urlTemplate: Bn
|
|
410
377
|
}),
|
|
411
378
|
fetchJob: (n) => {
|
|
412
|
-
let { execute: r } =
|
|
379
|
+
let { execute: r } = _({
|
|
413
380
|
client: e,
|
|
414
381
|
method: "GET",
|
|
415
382
|
system: t,
|
|
@@ -419,7 +386,7 @@ function Vn(e, t) {
|
|
|
419
386
|
return r({ urlParams: { id: n } });
|
|
420
387
|
},
|
|
421
388
|
createJob: (n) => {
|
|
422
|
-
let r =
|
|
389
|
+
let r = ot(n._resourceName).slice(4).replace("-kind-", "-kind/"), { execute: i } = _({
|
|
423
390
|
client: e,
|
|
424
391
|
method: "POST",
|
|
425
392
|
system: t,
|
|
@@ -432,7 +399,7 @@ function Vn(e, t) {
|
|
|
432
399
|
});
|
|
433
400
|
},
|
|
434
401
|
deleteJob: (n) => {
|
|
435
|
-
let { execute: r } =
|
|
402
|
+
let { execute: r } = D({
|
|
436
403
|
client: e,
|
|
437
404
|
method: "DELETE",
|
|
438
405
|
system: t,
|
|
@@ -460,14 +427,14 @@ function Wn(e, t, n, r, i = {}) {
|
|
|
460
427
|
let a = {
|
|
461
428
|
...Un,
|
|
462
429
|
...i
|
|
463
|
-
}, s = a.customI18n ??
|
|
464
|
-
|
|
430
|
+
}, s = a.customI18n ?? tt, { t: c } = s.global || s, l;
|
|
431
|
+
Et(a.storeColumnsLocalStorage) ? l = a.storeColumnsLocalStorage : lt(a.storeColumnsLocalStorage) && !0 === a.storeColumnsLocalStorage && (l = "table_" + n + "_" + r);
|
|
465
432
|
let u = e.map((e) => {
|
|
466
433
|
let t = {
|
|
467
434
|
...Hn,
|
|
468
435
|
...e
|
|
469
436
|
};
|
|
470
|
-
return
|
|
437
|
+
return E(t.title) && (t.title = E(t.title) && De.includes(t.key) ? c("common.model.tracking." + t.key) : E(t.title) && n && r ? c(n + "." + r + ".model." + t.key) : ""), t;
|
|
471
438
|
}), d = j(() => {
|
|
472
439
|
let e = [];
|
|
473
440
|
return a.showExpand && e.push({
|
|
@@ -491,11 +458,11 @@ function Wn(e, t, n, r, i = {}) {
|
|
|
491
458
|
localStorage.removeItem(l);
|
|
492
459
|
return;
|
|
493
460
|
}
|
|
494
|
-
|
|
461
|
+
o(n) && Le(n.hidden) && (t.value = n.hidden);
|
|
495
462
|
}, p = (e) => {
|
|
496
463
|
l && localStorage && localStorage.setItem(l, JSON.stringify({ hidden: e }));
|
|
497
464
|
};
|
|
498
|
-
return
|
|
465
|
+
return Ut(() => {
|
|
499
466
|
f();
|
|
500
467
|
}), G(t, (e) => {
|
|
501
468
|
p(e);
|
|
@@ -507,12 +474,12 @@ function Wn(e, t, n, r, i = {}) {
|
|
|
507
474
|
}
|
|
508
475
|
//#endregion
|
|
509
476
|
//#region src/labs/log/logApi.ts
|
|
510
|
-
var Gn = "log", Kn = ({ client: e, system: t, logPaths: n, type: r }) =>
|
|
477
|
+
var Gn = "log", Kn = ({ client: e, system: t, logPaths: n, type: r }) => _t({
|
|
511
478
|
client: e,
|
|
512
479
|
system: t,
|
|
513
480
|
entity: "log",
|
|
514
481
|
urlTemplate: n[r]
|
|
515
|
-
}), qn = ({ client: e, system: t, logPaths: n, type: r }) =>
|
|
482
|
+
}), qn = ({ client: e, system: t, logPaths: n, type: r }) => _({
|
|
516
483
|
client: e,
|
|
517
484
|
method: "GET",
|
|
518
485
|
system: t,
|
|
@@ -522,7 +489,7 @@ var Gn = "log", Kn = ({ client: e, system: t, logPaths: n, type: r }) => gt({
|
|
|
522
489
|
//#endregion
|
|
523
490
|
//#region src/labs/log/logActions.ts
|
|
524
491
|
function Jn(e) {
|
|
525
|
-
let { showErrorsDefault: t } =
|
|
492
|
+
let { showErrorsDefault: t } = ue(), { execute: n, abort: r } = Kn(e), i = V([]), a = e.loading ?? V(!1), o = V([]), s = 0, c = (e) => e === s;
|
|
526
493
|
return {
|
|
527
494
|
listItems: i,
|
|
528
495
|
listLoading: a,
|
|
@@ -553,7 +520,7 @@ function Jn(e) {
|
|
|
553
520
|
};
|
|
554
521
|
}
|
|
555
522
|
function Yn(e) {
|
|
556
|
-
let { showErrorsDefault: t } =
|
|
523
|
+
let { showErrorsDefault: t } = ue(), { execute: n, abort: r } = qn(e), i = V(null), a = e.loading ?? V(!1), o = 0, s = (e) => e === o;
|
|
557
524
|
return {
|
|
558
525
|
log: i,
|
|
559
526
|
detailLoading: a,
|
|
@@ -599,7 +566,7 @@ function er() {
|
|
|
599
566
|
//#region src/labs/log/ALogDatatable.vue?vue&type=script&setup=true&lang.ts
|
|
600
567
|
var tr = { class: "d-flex align-center" }, nr = { class: "line-clamp-2" }, rr = { class: "d-flex justify-end" }, ir = /* @__PURE__ */ R({
|
|
601
568
|
__name: "ALogDatatable",
|
|
602
|
-
props: /*@__PURE__*/
|
|
569
|
+
props: /*@__PURE__*/ Lt({
|
|
603
570
|
client: { type: Function },
|
|
604
571
|
system: {},
|
|
605
572
|
type: {},
|
|
@@ -612,22 +579,22 @@ var tr = { class: "d-flex align-center" }, nr = { class: "line-clamp-2" }, rr =
|
|
|
612
579
|
},
|
|
613
580
|
loadingModifiers: {}
|
|
614
581
|
}),
|
|
615
|
-
emits: /*@__PURE__*/
|
|
582
|
+
emits: /*@__PURE__*/ Lt(["rowClick"], ["update:loading"]),
|
|
616
583
|
setup(e, { expose: t, emit: n }) {
|
|
617
|
-
let r = e,
|
|
618
|
-
if (
|
|
619
|
-
let { fetchList:
|
|
584
|
+
let r = e, a = n, o = Yt(e, "loading"), s = Ft(Ae), c = Ft(At);
|
|
585
|
+
if (E(s) || E(c)) throw Error("[ALogDatatable] Incorrect provide/inject config.");
|
|
586
|
+
let { fetchList: l, listItems: u, datatableHiddenColumns: d, cancel: f } = Jn({
|
|
620
587
|
client: r.client,
|
|
621
588
|
system: r.system,
|
|
622
589
|
logPaths: r.logPaths,
|
|
623
590
|
type: r.type,
|
|
624
|
-
loading:
|
|
625
|
-
}), { resetFilter:
|
|
591
|
+
loading: o
|
|
592
|
+
}), { resetFilter: p, submitFilter: m, loadStoredFilters: h } = O(c, s, {
|
|
626
593
|
storeFiltersLocalStorage: !1,
|
|
627
594
|
populateUrlParams: !1
|
|
628
|
-
}), { pagination:
|
|
629
|
-
|
|
630
|
-
let { columnsVisible:
|
|
595
|
+
}), { pagination: g } = Oe("id");
|
|
596
|
+
Wt(Mt, g);
|
|
597
|
+
let { columnsVisible: _, columnsAll: v, columnsHidden: y } = Wn([
|
|
631
598
|
{ key: "id" },
|
|
632
599
|
{ key: "datetime" },
|
|
633
600
|
{ key: "levelName" },
|
|
@@ -637,36 +604,36 @@ var tr = { class: "d-flex align-center" }, nr = { class: "line-clamp-2" }, rr =
|
|
|
637
604
|
...r.type === Xn.Audit ? [{ key: "context.resourceName" }, { key: "context.resourceIds" }] : [{ key: "context.httpStatus" }],
|
|
638
605
|
{ key: "context.userId" },
|
|
639
606
|
{ key: "context.ip" }
|
|
640
|
-
],
|
|
641
|
-
await
|
|
642
|
-
}),
|
|
643
|
-
t.id &&
|
|
607
|
+
], d, "common", "log", { storeColumnsLocalStorage: `table_common_log_${r.type}` }), b = fn(async () => {
|
|
608
|
+
await l(g, c, s);
|
|
609
|
+
}), x = (e, { item: t }) => {
|
|
610
|
+
t.id && a("rowClick", t);
|
|
644
611
|
};
|
|
645
|
-
return
|
|
646
|
-
|
|
647
|
-
}),
|
|
648
|
-
|
|
612
|
+
return Ut(() => {
|
|
613
|
+
h(g, b);
|
|
614
|
+
}), Ht(() => {
|
|
615
|
+
b.cancel(), f();
|
|
649
616
|
}), t({
|
|
650
|
-
refresh:
|
|
651
|
-
resetFilter: () =>
|
|
652
|
-
submitFilter: () =>
|
|
653
|
-
}), (t, n) => (B(), P("div", null, [F("div", tr, [L(
|
|
654
|
-
"columns-hidden": W(
|
|
655
|
-
"onUpdate:columnsHidden": n[0] ||= (e) =>
|
|
656
|
-
"columns-all": W(
|
|
657
|
-
}, null, 8, ["columns-hidden", "columns-all"])]), L(
|
|
617
|
+
refresh: b,
|
|
618
|
+
resetFilter: () => p(g, b),
|
|
619
|
+
submitFilter: () => m(g, b)
|
|
620
|
+
}), (t, n) => (B(), P("div", null, [F("div", tr, [L(rn), L(k, {
|
|
621
|
+
"columns-hidden": W(y),
|
|
622
|
+
"onUpdate:columnsHidden": n[0] ||= (e) => It(y) ? y.value = e : null,
|
|
623
|
+
"columns-all": W(v)
|
|
624
|
+
}, null, 8, ["columns-hidden", "columns-all"])]), L(wn, {
|
|
658
625
|
class: "a-datatable",
|
|
659
|
-
headers: W(
|
|
660
|
-
items: W(
|
|
661
|
-
"items-length": W(
|
|
626
|
+
headers: W(_),
|
|
627
|
+
items: W(u),
|
|
628
|
+
"items-length": W(u).length,
|
|
662
629
|
"item-value": "id",
|
|
663
|
-
"onClick:row":
|
|
630
|
+
"onClick:row": x
|
|
664
631
|
}, {
|
|
665
|
-
"item.datetime": K(({ item: e }) => [L(
|
|
632
|
+
"item.datetime": K(({ item: e }) => [L(i, { "date-time": e.datetime }, null, 8, ["date-time"])]),
|
|
666
633
|
"item.message": K(({ item: e }) => [F("div", nr, U(e.message), 1)]),
|
|
667
634
|
"item.context.resourceIds": K(({ item: e }) => [I(U(e.context.resourceIds.join(", ")), 1)]),
|
|
668
|
-
"item.context.contextId": K(({ item: e }) => [L(
|
|
669
|
-
"item.context.userId": K(({ item: e }) => [W(
|
|
635
|
+
"item.context.contextId": K(({ item: e }) => [L(Ye, { value: e.context.contextId }, null, 8, ["value"])]),
|
|
636
|
+
"item.context.userId": K(({ item: e }) => [W(kt)(e.context.userId) ? N("", !0) : (B(), M(Ye, {
|
|
670
637
|
key: 0,
|
|
671
638
|
value: e.context.userId
|
|
672
639
|
}, null, 8, ["value"]))]),
|
|
@@ -677,7 +644,7 @@ var tr = { class: "d-flex align-center" }, nr = { class: "line-clamp-2" }, rr =
|
|
|
677
644
|
size: "x-small",
|
|
678
645
|
variant: "text"
|
|
679
646
|
}, null, 8, ["to"])])]),
|
|
680
|
-
bottom: K(() => [L(
|
|
647
|
+
bottom: K(() => [L(Ln, { onChange: W(b) }, null, 8, ["onChange"])]),
|
|
681
648
|
_: 1
|
|
682
649
|
}, 8, [
|
|
683
650
|
"headers",
|
|
@@ -697,19 +664,19 @@ var tr = { class: "d-flex align-center" }, nr = { class: "line-clamp-2" }, rr =
|
|
|
697
664
|
"changeType"
|
|
698
665
|
],
|
|
699
666
|
setup(e, { emit: t }) {
|
|
700
|
-
let n = t, { t: r } =
|
|
701
|
-
return (t, o) => (B(), M(
|
|
667
|
+
let n = t, { t: r } = tn(), { logLevelOptions: i } = ae(), { logTypeOptions: a } = er();
|
|
668
|
+
return (t, o) => (B(), M(rt, {
|
|
702
669
|
"enable-top": "",
|
|
703
670
|
onSubmit: o[1] ||= (e) => n("submit"),
|
|
704
671
|
onReset: o[2] ||= (e) => n("reset")
|
|
705
672
|
}, {
|
|
706
|
-
top: K(() => [L(
|
|
673
|
+
top: K(() => [L(nn, { class: "align-start" }, {
|
|
707
674
|
default: K(() => [L(J, {
|
|
708
675
|
class: "pb-0",
|
|
709
676
|
cols: "12",
|
|
710
677
|
sm: "4"
|
|
711
678
|
}, {
|
|
712
|
-
default: K(() => [L(
|
|
679
|
+
default: K(() => [L(xn, {
|
|
713
680
|
"model-value": e.type,
|
|
714
681
|
items: W(a),
|
|
715
682
|
label: W(r)("common.log.filter.type"),
|
|
@@ -728,13 +695,13 @@ var tr = { class: "d-flex align-center" }, nr = { class: "line-clamp-2" }, rr =
|
|
|
728
695
|
_: 1
|
|
729
696
|
})]),
|
|
730
697
|
_: 1
|
|
731
|
-
}), L(
|
|
698
|
+
}), L(Sn, { class: "mb-4 mt-4" })]),
|
|
732
699
|
search: K(() => [
|
|
733
|
-
L(
|
|
700
|
+
L(it, {
|
|
734
701
|
name: "contextId",
|
|
735
702
|
class: "mr-2"
|
|
736
703
|
}),
|
|
737
|
-
L(
|
|
704
|
+
L(it, {
|
|
738
705
|
name: "message",
|
|
739
706
|
class: "mr-2"
|
|
740
707
|
}),
|
|
@@ -808,7 +775,7 @@ var tr = { class: "d-flex align-center" }, nr = { class: "line-clamp-2" }, rr =
|
|
|
808
775
|
type: "timeInterval",
|
|
809
776
|
related: "datetimeTo",
|
|
810
777
|
default: e?.from ?? null,
|
|
811
|
-
mandatory:
|
|
778
|
+
mandatory: et(e),
|
|
812
779
|
render: { skip: !0 }
|
|
813
780
|
},
|
|
814
781
|
{
|
|
@@ -817,14 +784,14 @@ var tr = { class: "d-flex align-center" }, nr = { class: "line-clamp-2" }, rr =
|
|
|
817
784
|
type: "timeInterval",
|
|
818
785
|
exclude: !0,
|
|
819
786
|
default: e?.to ?? null,
|
|
820
|
-
mandatory:
|
|
787
|
+
mandatory: et(e),
|
|
821
788
|
render: { skip: !0 }
|
|
822
789
|
}
|
|
823
790
|
], cr = /* @__PURE__ */ new Map();
|
|
824
791
|
function lr(e, t) {
|
|
825
792
|
let n = cr.get(e);
|
|
826
793
|
if (n) return n;
|
|
827
|
-
let r = sr(t), i =
|
|
794
|
+
let r = sr(t), i = ut(r, nt(r), {
|
|
828
795
|
system: "common",
|
|
829
796
|
subject: "log"
|
|
830
797
|
});
|
|
@@ -849,15 +816,15 @@ var ur = (e, t) => {
|
|
|
849
816
|
allowedTimeIntervals: {}
|
|
850
817
|
},
|
|
851
818
|
setup(e) {
|
|
852
|
-
let t = e, n =
|
|
853
|
-
ur(r, t.type),
|
|
854
|
-
let i =
|
|
819
|
+
let t = e, n = yn(), r = lr(t.system, t.defaultTimeWindow);
|
|
820
|
+
ur(r, t.type), Wt(Ae, r.filterConfig), Wt(At, r.filterData);
|
|
821
|
+
let i = Zt("datatable"), a = V(!1), o = (e) => {
|
|
855
822
|
n.push(t.detailRoute(e));
|
|
856
823
|
}, s = (e) => {
|
|
857
824
|
e !== t.type && n.replace(t.typeRoute(e));
|
|
858
825
|
};
|
|
859
|
-
return (t, n) => (B(), M(
|
|
860
|
-
default: K(() => [L(
|
|
826
|
+
return (t, n) => (B(), M(d, { loading: a.value }, {
|
|
827
|
+
default: K(() => [L(ln, null, {
|
|
861
828
|
default: K(() => [L(ar, {
|
|
862
829
|
type: e.type,
|
|
863
830
|
"allowed-time-intervals": e.allowedTimeIntervals,
|
|
@@ -894,22 +861,22 @@ var ur = (e, t) => {
|
|
|
894
861
|
} catch {
|
|
895
862
|
return e;
|
|
896
863
|
}
|
|
897
|
-
}, pr = { class: "text-label-large" }, mr = { class: "text-label-large" }, hr = { class: "text-label-large" }, gr = { class: "text-label-large" }, _r = { class: "text-label-large" }, vr = { class: "text-label-large" }, yr = { class: "text-label-large" }, br = { class: "text-label-large" }, xr = { class: "text-label-large" }, Sr = { class: "text-label-large" }, Cr = { class: "text-label-large" }, wr = { class: "text-label-large" }, Tr = { class: "text-label-large" }, Er = /*#__PURE__*/
|
|
864
|
+
}, pr = { class: "text-label-large" }, mr = { class: "text-label-large" }, hr = { class: "text-label-large" }, gr = { class: "text-label-large" }, _r = { class: "text-label-large" }, vr = { class: "text-label-large" }, yr = { class: "text-label-large" }, br = { class: "text-label-large" }, xr = { class: "text-label-large" }, Sr = { class: "text-label-large" }, Cr = { class: "text-label-large" }, wr = { class: "text-label-large" }, Tr = { class: "text-label-large" }, Er = /*#__PURE__*/ T(/* @__PURE__ */ R({
|
|
898
865
|
__name: "ALogDetail",
|
|
899
866
|
props: { log: {} },
|
|
900
867
|
setup(e) {
|
|
901
|
-
let { t } =
|
|
902
|
-
return (
|
|
868
|
+
let { t } = tn();
|
|
869
|
+
return (n, r) => (B(), M(nn, null, {
|
|
903
870
|
default: K(() => [L(J, null, {
|
|
904
871
|
default: K(() => [
|
|
905
|
-
L(
|
|
872
|
+
L(nn, null, {
|
|
906
873
|
default: K(() => [
|
|
907
874
|
L(J, { cols: "3" }, {
|
|
908
875
|
default: K(() => [F("h4", pr, U(W(t)("common.log.model.id")), 1), I(" " + U(e.log.id), 1)]),
|
|
909
876
|
_: 1
|
|
910
877
|
}),
|
|
911
878
|
L(J, { cols: "3" }, {
|
|
912
|
-
default: K(() => [F("h4", mr, U(W(t)("common.log.model.levelName")), 1), L(
|
|
879
|
+
default: K(() => [F("h4", mr, U(W(t)("common.log.model.levelName")), 1), L(qe, { level: e.log.levelName }, null, 8, ["level"])]),
|
|
913
880
|
_: 1
|
|
914
881
|
}),
|
|
915
882
|
L(J, { cols: "2" }, {
|
|
@@ -927,7 +894,7 @@ var ur = (e, t) => {
|
|
|
927
894
|
]),
|
|
928
895
|
_: 1
|
|
929
896
|
}),
|
|
930
|
-
L(
|
|
897
|
+
L(nn, null, {
|
|
931
898
|
default: K(() => [
|
|
932
899
|
L(J, { cols: "4" }, {
|
|
933
900
|
default: K(() => [F("h4", vr, U(W(t)("common.log.model.context.contextId")), 1), I(" " + U(e.log.context.contextId), 1)]),
|
|
@@ -938,20 +905,20 @@ var ur = (e, t) => {
|
|
|
938
905
|
_: 1
|
|
939
906
|
}),
|
|
940
907
|
L(J, { cols: "4" }, {
|
|
941
|
-
default: K(() => [F("h4", br, U(W(t)("common.log.model.datetime")), 1), I(" " + U(W(
|
|
908
|
+
default: K(() => [F("h4", br, U(W(t)("common.log.model.datetime")), 1), I(" " + U(W(Ze)(e.log.datetime)), 1)]),
|
|
942
909
|
_: 1
|
|
943
910
|
})
|
|
944
911
|
]),
|
|
945
912
|
_: 1
|
|
946
913
|
}),
|
|
947
|
-
L(
|
|
914
|
+
L(nn, null, {
|
|
948
915
|
default: K(() => [L(J, { cols: "12" }, {
|
|
949
916
|
default: K(() => [F("h4", xr, U(W(t)("common.log.model.message")), 1), F("pre", null, U(e.log.message), 1)]),
|
|
950
917
|
_: 1
|
|
951
918
|
})]),
|
|
952
919
|
_: 1
|
|
953
920
|
}),
|
|
954
|
-
L(
|
|
921
|
+
L(nn, null, {
|
|
955
922
|
default: K(() => [L(J, { cols: "6" }, {
|
|
956
923
|
default: K(() => [F("h4", Sr, U(W(t)("common.log.model.context.path")), 1), I(" " + U(e.log.context.method) + " " + U(e.log.context.path), 1)]),
|
|
957
924
|
_: 1
|
|
@@ -961,14 +928,14 @@ var ur = (e, t) => {
|
|
|
961
928
|
})]),
|
|
962
929
|
_: 1
|
|
963
930
|
}),
|
|
964
|
-
L(
|
|
931
|
+
L(nn, null, {
|
|
965
932
|
default: K(() => [L(J, { cols: "12" }, {
|
|
966
933
|
default: K(() => [F("h4", wr, U(W(t)("common.log.model.context.content")), 1), F("pre", null, U(W(fr)(e.log.context.content ?? "")), 1)]),
|
|
967
934
|
_: 1
|
|
968
935
|
})]),
|
|
969
936
|
_: 1
|
|
970
937
|
}),
|
|
971
|
-
L(
|
|
938
|
+
L(nn, null, {
|
|
972
939
|
default: K(() => [L(J, { cols: "12" }, {
|
|
973
940
|
default: K(() => [F("h4", Tr, U(W(t)("common.log.model.context.response")), 1), F("pre", null, U(W(fr)(e.log.context.response)), 1)]),
|
|
974
941
|
_: 1
|
|
@@ -997,13 +964,13 @@ var ur = (e, t) => {
|
|
|
997
964
|
logPaths: t.logPaths,
|
|
998
965
|
type: t.type
|
|
999
966
|
});
|
|
1000
|
-
return
|
|
967
|
+
return Ut(() => {
|
|
1001
968
|
i(t.id);
|
|
1002
|
-
}),
|
|
969
|
+
}), Ht(() => {
|
|
1003
970
|
a();
|
|
1004
|
-
}), (e, t) => (B(), M(
|
|
1005
|
-
default: K(() => [L(
|
|
1006
|
-
default: K(() => [W(
|
|
971
|
+
}), (e, t) => (B(), M(d, { loading: W(r) }, {
|
|
972
|
+
default: K(() => [L(ln, null, {
|
|
973
|
+
default: K(() => [W(kt)(W(n)) ? N("", !0) : (B(), M(Er, {
|
|
1007
974
|
key: 0,
|
|
1008
975
|
log: W(n)
|
|
1009
976
|
}, null, 8, ["log"]))]),
|
|
@@ -1016,17 +983,17 @@ var ur = (e, t) => {
|
|
|
1016
983
|
//#endregion
|
|
1017
984
|
//#region src/labs/subjectSelect/useSubjectSelect.ts
|
|
1018
985
|
function Or(e, t, n, r, i, a, o, s = null, c = void 0, l = !1) {
|
|
1019
|
-
let u = V(!1), d = V([]), f = V([]), p = V(!1), { pagination: m, setSortBy: h, incrementPage: g } = Oe(
|
|
986
|
+
let u = V(!1), d = V([]), f = V([]), p = V(!1), { pagination: m, setSortBy: h, incrementPage: g } = Oe(kt(s) ? null : s.key, s?.order), { resetFilter: _, submitFilter: v } = O(a, o, {
|
|
1020
987
|
storeFiltersLocalStorage: !1,
|
|
1021
988
|
populateUrlParams: !1
|
|
1022
|
-
}), { showErrorsDefault: y } =
|
|
989
|
+
}), { showErrorsDefault: y } = ue(), { columnsVisible: b, columnsAll: x, columnsHidden: S } = Wn(e, t, n, r, {
|
|
1023
990
|
storeColumnsLocalStorage: !1,
|
|
1024
991
|
disableActions: !l
|
|
1025
|
-
}),
|
|
1026
|
-
C(),
|
|
1027
|
-
},
|
|
1028
|
-
h(e.sortBy),
|
|
1029
|
-
},
|
|
992
|
+
}), ee = () => {
|
|
993
|
+
C(), T();
|
|
994
|
+
}, te = (e) => {
|
|
995
|
+
h(e.sortBy), T();
|
|
996
|
+
}, ne = async () => {
|
|
1030
997
|
p.value = !0, g();
|
|
1031
998
|
try {
|
|
1032
999
|
let e = await i(m, a, o, c);
|
|
@@ -1047,7 +1014,7 @@ function Or(e, t, n, r, i, a, o, s = null, c = void 0, l = !1) {
|
|
|
1047
1014
|
} finally {
|
|
1048
1015
|
p.value = !1;
|
|
1049
1016
|
}
|
|
1050
|
-
},
|
|
1017
|
+
}, T = fn(async () => {
|
|
1051
1018
|
await w();
|
|
1052
1019
|
});
|
|
1053
1020
|
return {
|
|
@@ -1055,8 +1022,8 @@ function Or(e, t, n, r, i, a, o, s = null, c = void 0, l = !1) {
|
|
|
1055
1022
|
selected: f,
|
|
1056
1023
|
pagination: m,
|
|
1057
1024
|
columnsVisible: b,
|
|
1058
|
-
columnsHidden:
|
|
1059
|
-
columnsAll:
|
|
1025
|
+
columnsHidden: S,
|
|
1026
|
+
columnsAll: x,
|
|
1060
1027
|
filterTouched: u,
|
|
1061
1028
|
loading: p,
|
|
1062
1029
|
onRowClick: (e) => {
|
|
@@ -1069,12 +1036,12 @@ function Or(e, t, n, r, i, a, o, s = null, c = void 0, l = !1) {
|
|
|
1069
1036
|
let i = r.querySelector("input");
|
|
1070
1037
|
i && i.click();
|
|
1071
1038
|
},
|
|
1072
|
-
onFetchNextPage:
|
|
1073
|
-
onOpen:
|
|
1074
|
-
sortByChange:
|
|
1075
|
-
getList:
|
|
1076
|
-
resetFilter: () => _(m,
|
|
1077
|
-
submitFilter: () => v(m,
|
|
1039
|
+
onFetchNextPage: ne,
|
|
1040
|
+
onOpen: ee,
|
|
1041
|
+
sortByChange: te,
|
|
1042
|
+
getList: T,
|
|
1043
|
+
resetFilter: () => _(m, T),
|
|
1044
|
+
submitFilter: () => v(m, T)
|
|
1078
1045
|
};
|
|
1079
1046
|
}
|
|
1080
1047
|
//#endregion
|
|
@@ -1115,7 +1082,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1115
1082
|
setup(e, { expose: t, emit: n }) {
|
|
1116
1083
|
let r = e, i = n, a = V(!1), o = j({
|
|
1117
1084
|
get() {
|
|
1118
|
-
return
|
|
1085
|
+
return E(r.modelValue) ? a.value : r.modelValue;
|
|
1119
1086
|
},
|
|
1120
1087
|
set(e) {
|
|
1121
1088
|
a.value = e, i("update:modelValue", e);
|
|
@@ -1123,53 +1090,53 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1123
1090
|
}), s = j({
|
|
1124
1091
|
get: () => r.pagination,
|
|
1125
1092
|
set: (e) => {
|
|
1126
|
-
i("update:pagination", { ...
|
|
1093
|
+
i("update:pagination", { ...Jt(e) });
|
|
1127
1094
|
}
|
|
1128
|
-
}), { mdAndDown: c } =
|
|
1095
|
+
}), { mdAndDown: c } = hn(), l = V(!c.value), u = () => {
|
|
1129
1096
|
c.value && (l.value = !1);
|
|
1130
1097
|
};
|
|
1131
|
-
|
|
1132
|
-
let { t: d } =
|
|
1098
|
+
Wt(f, u);
|
|
1099
|
+
let { t: d } = tn(), p = j(() => r.selectedItems.length), m = j(() => p.value < r.minCount || p.value > r.maxCount), h = () => {
|
|
1133
1100
|
i("onOpen"), l.value = !c.value, o.value = !0;
|
|
1134
|
-
}, h = () => {
|
|
1135
|
-
l.value = !l.value;
|
|
1136
1101
|
}, g = () => {
|
|
1137
|
-
|
|
1102
|
+
l.value = !l.value;
|
|
1138
1103
|
}, _ = () => {
|
|
1139
|
-
|
|
1104
|
+
o.value = !1;
|
|
1140
1105
|
}, v = () => {
|
|
1141
|
-
i("
|
|
1106
|
+
i("onConfirm", r.selectedItems.map((e) => Jt(e))), _();
|
|
1142
1107
|
}, y = () => {
|
|
1108
|
+
i("onFetchNextPage");
|
|
1109
|
+
}, b = () => {
|
|
1143
1110
|
i("onPageChange");
|
|
1144
|
-
},
|
|
1145
|
-
e &&
|
|
1111
|
+
}, x = j(() => Math.ceil(s.value.totalCount / s.value.rowsPerPage)), S = j(() => !(kt(s.value.hasNextPage) && s.value.page >= x.value || s.value.hasNextPage === !1)), ee = (e) => {
|
|
1112
|
+
e && S.value && !r.loading && y();
|
|
1146
1113
|
};
|
|
1147
|
-
return
|
|
1148
|
-
r.autoOpen &&
|
|
1114
|
+
return Ut(() => {
|
|
1115
|
+
r.autoOpen && h();
|
|
1149
1116
|
}), t({
|
|
1150
|
-
open:
|
|
1117
|
+
open: h,
|
|
1151
1118
|
closeSidebarOnMobile: u
|
|
1152
1119
|
}), (t, n) => {
|
|
1153
|
-
let r =
|
|
1154
|
-
return B(), P(A, null, [H(t.$slots, "activator", { props: { onClick: q(() =>
|
|
1120
|
+
let r = Kt("ABtnSecondary"), a = Kt("ABtnPrimary");
|
|
1121
|
+
return B(), P(A, null, [H(t.$slots, "activator", { props: { onClick: q(() => h(), ["stop"]) } }), L(bn, z(t.$attrs, {
|
|
1155
1122
|
"model-value": o.value,
|
|
1156
1123
|
fullscreen: "",
|
|
1157
1124
|
class: "subject-select",
|
|
1158
1125
|
"onUpdate:modelValue": n[1] ||= (e) => i("update:modelValue", e)
|
|
1159
1126
|
}), {
|
|
1160
|
-
default: K(() => [o.value ? (B(), M(
|
|
1127
|
+
default: K(() => [o.value ? (B(), M(sn, {
|
|
1161
1128
|
key: 0,
|
|
1162
1129
|
class: "subject-select__card"
|
|
1163
1130
|
}, {
|
|
1164
1131
|
default: K(() => [
|
|
1165
|
-
L(
|
|
1132
|
+
L(We, {
|
|
1166
1133
|
class: "subject-select__toolbar system-border-b",
|
|
1167
|
-
onOnCancel:
|
|
1134
|
+
onOnCancel: _
|
|
1168
1135
|
}, {
|
|
1169
1136
|
default: K(() => [H(t.$slots, "title", {}, () => [I(U(W(d)(e.dialogTitleT)), 1)])]),
|
|
1170
1137
|
_: 3
|
|
1171
1138
|
}),
|
|
1172
|
-
L(
|
|
1139
|
+
L(vn, {
|
|
1173
1140
|
density: "compact",
|
|
1174
1141
|
color: "transparent",
|
|
1175
1142
|
height: 46,
|
|
@@ -1180,12 +1147,12 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1180
1147
|
icon: "",
|
|
1181
1148
|
width: 30,
|
|
1182
1149
|
height: 30,
|
|
1183
|
-
onClick:
|
|
1150
|
+
onClick: g
|
|
1184
1151
|
}, {
|
|
1185
1152
|
default: K(() => [L(Y, {
|
|
1186
1153
|
icon: "mdi-tune",
|
|
1187
1154
|
size: 16
|
|
1188
|
-
}), L(
|
|
1155
|
+
}), L(dn, {
|
|
1189
1156
|
activator: "parent",
|
|
1190
1157
|
location: "bottom"
|
|
1191
1158
|
}, {
|
|
@@ -1196,37 +1163,37 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1196
1163
|
}), H(t.$slots, "second-bar-left")]), F("div", Mr, [H(t.$slots, "second-bar-right")])])])])]),
|
|
1197
1164
|
_: 3
|
|
1198
1165
|
}),
|
|
1199
|
-
F("div", { class:
|
|
1166
|
+
F("div", { class: zt(["subject-select__main", { "subject-select__main--sidebar-active": l.value }]) }, [F("div", Nr, [F("div", Pr, [H(t.$slots, "filter")])]), F("div", Fr, [H(t.$slots, "content"), e.paginationMode === "more" ? (B(), P("div", Ir, [$t((B(), M(r, {
|
|
1200
1167
|
loading: e.loading,
|
|
1201
1168
|
size: "small",
|
|
1202
|
-
onClick:
|
|
1169
|
+
onClick: y
|
|
1203
1170
|
}, {
|
|
1204
1171
|
default: K(() => [H(t.$slots, "button-confirm-title", {}, () => [I(U(W(d)("common.button.loadMore")), 1)])]),
|
|
1205
1172
|
_: 3
|
|
1206
|
-
}, 8, ["loading"])), [[
|
|
1207
|
-
|
|
1208
|
-
|
|
1173
|
+
}, 8, ["loading"])), [[Qt, S.value || e.loading], [
|
|
1174
|
+
mn,
|
|
1175
|
+
ee,
|
|
1209
1176
|
void 0,
|
|
1210
1177
|
{ quiet: !0 }
|
|
1211
|
-
]])])) : (B(), M(
|
|
1178
|
+
]])])) : (B(), M(Ln, {
|
|
1212
1179
|
key: 1,
|
|
1213
1180
|
modelValue: s.value,
|
|
1214
1181
|
"onUpdate:modelValue": n[0] ||= (e) => s.value = e,
|
|
1215
|
-
onChange:
|
|
1182
|
+
onChange: b
|
|
1216
1183
|
}, null, 8, ["modelValue"]))])], 2),
|
|
1217
1184
|
F("div", Lr, [
|
|
1218
1185
|
e.minCount === e.maxCount ? (B(), P("div", Rr, U(W(d)("common.subjectSelect.texts.pickExactCount", {
|
|
1219
1186
|
count: e.minCount,
|
|
1220
|
-
selected:
|
|
1187
|
+
selected: p.value
|
|
1221
1188
|
})), 1)) : (B(), P("div", zr, U(W(d)("common.subjectSelect.texts.pickRangeCount", {
|
|
1222
1189
|
minCount: e.minCount,
|
|
1223
1190
|
maxCount: e.maxCount,
|
|
1224
|
-
selected:
|
|
1191
|
+
selected: p.value
|
|
1225
1192
|
})), 1)),
|
|
1226
|
-
L(
|
|
1193
|
+
L(rn),
|
|
1227
1194
|
L(a, {
|
|
1228
|
-
disabled:
|
|
1229
|
-
onClick: q(
|
|
1195
|
+
disabled: m.value,
|
|
1196
|
+
onClick: q(v, ["stop"])
|
|
1230
1197
|
}, {
|
|
1231
1198
|
default: K(() => [H(t.$slots, "button-confirm-title", {}, () => [I(U(W(d)("common.button.confirm")), 1)])]),
|
|
1232
1199
|
_: 3
|
|
@@ -1276,7 +1243,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1276
1243
|
role: "status"
|
|
1277
1244
|
}, oi = /* @__PURE__ */ R({
|
|
1278
1245
|
__name: "AListEditor",
|
|
1279
|
-
props: /*@__PURE__*/
|
|
1246
|
+
props: /*@__PURE__*/ Lt({
|
|
1280
1247
|
factory: {
|
|
1281
1248
|
type: Function,
|
|
1282
1249
|
default: void 0
|
|
@@ -1386,15 +1353,15 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1386
1353
|
modelValue: { required: !0 },
|
|
1387
1354
|
modelModifiers: {}
|
|
1388
1355
|
}),
|
|
1389
|
-
emits: /*@__PURE__*/
|
|
1356
|
+
emits: /*@__PURE__*/ Lt([
|
|
1390
1357
|
"edit",
|
|
1391
1358
|
"deleted",
|
|
1392
1359
|
"close",
|
|
1393
1360
|
"item-saved",
|
|
1394
1361
|
"item-expand"
|
|
1395
1362
|
], ["update:modelValue"]),
|
|
1396
|
-
setup(e, { expose:
|
|
1397
|
-
let o = e, s = i, c =
|
|
1363
|
+
setup(e, { expose: t, emit: i }) {
|
|
1364
|
+
let o = e, s = i, c = Yt(e, "modelValue"), { t: l } = tn(), d = Xt(), f = hn(), p = Zt("rootEl"), m = j(() => f.platform.value.touch), h = {
|
|
1398
1365
|
get: () => c.value,
|
|
1399
1366
|
set: (e) => c.value = e,
|
|
1400
1367
|
factory: o.factory,
|
|
@@ -1402,15 +1369,15 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1402
1369
|
position: o.position,
|
|
1403
1370
|
dirtyExclude: () => o.dirtyExclude ?? [],
|
|
1404
1371
|
validate: o.validate
|
|
1405
|
-
}, g = o.editor ? null :
|
|
1372
|
+
}, g = o.editor ? null : n(o.stateKey, h), _ = o.editor ?? g?.handle ?? ie(h), v = o.getKey ?? "id", y = Je(g?.childScope ?? null), b = (e) => typeof v == "function" ? v(e) : e[v], x = j(() => typeof v == "function" ? "(fn)" : v), S = j(() => {
|
|
1406
1373
|
let e = o.position;
|
|
1407
1374
|
return e === void 0 || e === !1 ? "position" : typeof e == "object" ? e.field : e;
|
|
1408
|
-
}),
|
|
1375
|
+
}), ee = j(() => c.value.map((e, t) => ({
|
|
1409
1376
|
key: b(e),
|
|
1410
1377
|
index: t,
|
|
1411
1378
|
raw: e,
|
|
1412
|
-
position: e[
|
|
1413
|
-
}))),
|
|
1379
|
+
position: e[S.value]
|
|
1380
|
+
}))), te = /* @__PURE__ */ new Set(), ne = (e) => {
|
|
1414
1381
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = 0;
|
|
1415
1382
|
for (let i of e) {
|
|
1416
1383
|
if (i.key === void 0 || i.key === null) {
|
|
@@ -1421,13 +1388,13 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1421
1388
|
}
|
|
1422
1389
|
if (r === 0 && n.size === 0) return;
|
|
1423
1390
|
let i = `${r}|${[...n].sort().join(",")}`;
|
|
1424
|
-
|
|
1391
|
+
te.has(i) || (te.add(i), r > 0 && console.warn(`[list-editor] ${r} row(s) resolve to an undefined key (key-field "${x.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 "${x.value}"): ${[...n].join(", ")}. Row keys must be unique — dirty tracking and validation rails target rows by key.`));
|
|
1425
1392
|
};
|
|
1426
|
-
G(
|
|
1427
|
-
let C = V(/* @__PURE__ */ new Set()), w =
|
|
1393
|
+
G(ee, (e) => ne(e), { immediate: !0 }), G(() => ee.value.map((e) => String(e.key)).join("|"), () => y.retainOwners(ee.value.map((e) => e.key)), { flush: "post" });
|
|
1394
|
+
let C = V(/* @__PURE__ */ new Set()), w = Zt("rowsContainer"), T = j(() => !o.chips && !!d.item), re = j(() => !o.chips && !!d["item-readonly"]), { editingKeys: ae, editingSnapshots: oe, beginEdit: se, cancelEdit: ce, commitEdit: ue, closeEdit: de, requestAutoOpen: E } = a({
|
|
1428
1395
|
rowsContainer: w,
|
|
1429
1396
|
rowSelector: ".a-le-row",
|
|
1430
|
-
isInlineEdit:
|
|
1397
|
+
isInlineEdit: T,
|
|
1431
1398
|
restoreSnapshot: (e, t) => _.updateItem(e, t),
|
|
1432
1399
|
watchKeys: () => c.value.map((e) => b(e)),
|
|
1433
1400
|
findEntry: (e) => {
|
|
@@ -1437,11 +1404,11 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1437
1404
|
afterAutoOpen: (e) => {
|
|
1438
1405
|
C.value.delete(e);
|
|
1439
1406
|
}
|
|
1440
|
-
}),
|
|
1407
|
+
}), pe = j(() => o.addLabel ?? l("common.sortable.add")), me = j(() => o.emptyTitle ?? l("common.sortable.emptyTitle")), he = j(() => o.deleteConfirmTitle ?? l("common.sortable.deleteConfirmTitle")), ge = j(() => o.deleteConfirmText ?? (o.deleteMode === "immediate" ? l("common.sortable.deleteConfirmText") : l("common.sortable.deleteConfirmTextDeferred"))), D = j(() => !o.readonly && !o.disabled && !o.loading), _e = j(() => D.value && o.showAddButton), ve = _.unsavedCount, ye = j(() => !o.readonly && !o.disableUnsaved && ve.value > 0), be = j(() => !!(o.title || d.header) || ye.value), xe = j(() => !!o.onItemSave), Se = /* @__PURE__ */ new Map(), Ce = j(() => {
|
|
1441
1408
|
let e = [], t = /* @__PURE__ */ new Set();
|
|
1442
|
-
for (let n of
|
|
1409
|
+
for (let n of ee.value) {
|
|
1443
1410
|
t.add(n.key);
|
|
1444
|
-
let r =
|
|
1411
|
+
let r = ae.value.has(n.key), i = C.value.has(n.key), a = o.loadingKeys?.has(n.key) ?? !1, s = o.disableUnsaved || o.readonly ? !1 : _.isUnsaved(n.key), c = s, l = _.rowState(n.raw, n.key, r), u = Se.get(n.key);
|
|
1445
1412
|
if (u && u.raw === n.raw && u.index === n.index && u.position === n.position && u.editing === r && u.expanded === i && u.loading === a && u.dirty === c && u.unsaved === s && u.validationState === l) {
|
|
1446
1413
|
e.push(u);
|
|
1447
1414
|
continue;
|
|
@@ -1455,37 +1422,37 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1455
1422
|
unsaved: s,
|
|
1456
1423
|
validationState: l
|
|
1457
1424
|
};
|
|
1458
|
-
|
|
1425
|
+
Se.set(n.key, d), e.push(d);
|
|
1459
1426
|
}
|
|
1460
|
-
for (let e of
|
|
1427
|
+
for (let e of Se.keys()) t.has(e) || Se.delete(e);
|
|
1461
1428
|
return e;
|
|
1462
|
-
}),
|
|
1463
|
-
viewItems: j(() =>
|
|
1429
|
+
}), we = j(() => Ce.value.length === 0), O = (e) => Ce.value.find((t) => t.key === e), Te = r({
|
|
1430
|
+
viewItems: j(() => Ce.value.map((e) => ({ key: e.key }))),
|
|
1464
1431
|
variant: "flat",
|
|
1465
1432
|
isReorderMode: V(!1),
|
|
1466
|
-
disabled: j(() => !
|
|
1467
|
-
isEditing: (e) =>
|
|
1433
|
+
disabled: j(() => !D.value),
|
|
1434
|
+
isEditing: (e) => ae.value.has(e),
|
|
1468
1435
|
onToggleEdit: (e) => {
|
|
1469
|
-
let t =
|
|
1470
|
-
t &&
|
|
1436
|
+
let t = O(e);
|
|
1437
|
+
t && ke(t);
|
|
1471
1438
|
},
|
|
1472
1439
|
onCancelEdit: (e) => {
|
|
1473
|
-
let t =
|
|
1474
|
-
t &&
|
|
1440
|
+
let t = O(e);
|
|
1441
|
+
t && He(t);
|
|
1475
1442
|
}
|
|
1476
|
-
}),
|
|
1477
|
-
|
|
1478
|
-
},
|
|
1479
|
-
|
|
1480
|
-
},
|
|
1481
|
-
if (
|
|
1482
|
-
if (
|
|
1483
|
-
|
|
1443
|
+
}), Ee = (e) => u(e, { compactField: o.compactField }), De = () => {
|
|
1444
|
+
_e.value && (E(), _.addItem(void 0, void 0));
|
|
1445
|
+
}, Oe = (e) => {
|
|
1446
|
+
D.value && (E(), _.addItem(void 0, { afterId: e.key }));
|
|
1447
|
+
}, ke = (e) => {
|
|
1448
|
+
if (D.value) {
|
|
1449
|
+
if (ae.value.has(e.key)) {
|
|
1450
|
+
He(e);
|
|
1484
1451
|
return;
|
|
1485
1452
|
}
|
|
1486
|
-
|
|
1453
|
+
T.value && (se(e), C.value.delete(e.key)), s("edit", e);
|
|
1487
1454
|
}
|
|
1488
|
-
},
|
|
1455
|
+
}, Ae = (e) => {
|
|
1489
1456
|
if (o.disabled || o.loading) return;
|
|
1490
1457
|
let t = e.key, n = C.value.has(t);
|
|
1491
1458
|
if (n) C.value.delete(t);
|
|
@@ -1494,69 +1461,69 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1494
1461
|
C.value.add(t);
|
|
1495
1462
|
}
|
|
1496
1463
|
s("item-expand", e, !n);
|
|
1497
|
-
},
|
|
1498
|
-
if (
|
|
1464
|
+
}, je = (e) => o.chips || o.disableRowClick || o.defaultExpanded || o.disabled || o.loading ? !1 : !!(e.editing || e.expanded || !o.readonly && o.showEditButton), Me = (e) => {
|
|
1465
|
+
if (je(e)) {
|
|
1499
1466
|
if (e.editing || e.expanded) {
|
|
1500
|
-
|
|
1467
|
+
He(e);
|
|
1501
1468
|
return;
|
|
1502
1469
|
}
|
|
1503
|
-
o.readonly &&
|
|
1470
|
+
o.readonly && re.value ? Ae(e) : ke(e);
|
|
1504
1471
|
}
|
|
1505
|
-
}, { deleteDialog:
|
|
1472
|
+
}, { deleteDialog: Ne, deleteInFlight: Pe, deleteError: Fe, onDeleteClick: Ie, onDeleteDialogConfirm: Le, onDeleteDialogCancel: Re } = Tt({
|
|
1506
1473
|
onDeleteConfirm: (e) => !o.onDeleteConfirm || o.onDeleteConfirm(e),
|
|
1507
1474
|
onDelete: (e) => o.onDelete?.(e),
|
|
1508
1475
|
onDeleted: (e) => {
|
|
1509
|
-
|
|
1476
|
+
ae.value.delete(e.key), oe.value.delete(e.key), C.value.delete(e.key), _.deleteItem(e.key, { trackDeleted: o.deleteMode === "deferred" }), s("deleted", e);
|
|
1510
1477
|
},
|
|
1511
1478
|
disableDeleteConfirm: () => o.disableDeleteConfirm || o.chips
|
|
1512
|
-
}),
|
|
1513
|
-
|
|
1514
|
-
},
|
|
1515
|
-
o.onItemSave && await o.onItemSave(e.raw),
|
|
1516
|
-
},
|
|
1517
|
-
|
|
1518
|
-
},
|
|
1519
|
-
|
|
1520
|
-
},
|
|
1521
|
-
let t =
|
|
1479
|
+
}), k = async (e) => {
|
|
1480
|
+
D.value && await Ie(e);
|
|
1481
|
+
}, Be = async (e) => {
|
|
1482
|
+
o.onItemSave && await o.onItemSave(e.raw), ue(e), s("item-saved", e);
|
|
1483
|
+
}, Ve = (e) => {
|
|
1484
|
+
ce(e);
|
|
1485
|
+
}, He = (e) => {
|
|
1486
|
+
de(e), C.value.delete(e.key), s("close", e);
|
|
1487
|
+
}, Ue = /* @__PURE__ */ new Map(), We = (e) => {
|
|
1488
|
+
let t = Ue.get(e);
|
|
1522
1489
|
return t || (t = {
|
|
1523
1490
|
edit: () => {
|
|
1524
|
-
let t =
|
|
1525
|
-
t &&
|
|
1491
|
+
let t = O(e);
|
|
1492
|
+
t && ke(t);
|
|
1526
1493
|
},
|
|
1527
1494
|
save: () => {
|
|
1528
|
-
let t =
|
|
1529
|
-
if (t) return
|
|
1495
|
+
let t = O(e);
|
|
1496
|
+
if (t) return Be(t);
|
|
1530
1497
|
},
|
|
1531
1498
|
cancel: () => {
|
|
1532
|
-
let t =
|
|
1533
|
-
t &&
|
|
1499
|
+
let t = O(e);
|
|
1500
|
+
t && Ve(t);
|
|
1534
1501
|
},
|
|
1535
1502
|
close: () => {
|
|
1536
|
-
let t =
|
|
1537
|
-
t &&
|
|
1503
|
+
let t = O(e);
|
|
1504
|
+
t && He(t);
|
|
1538
1505
|
},
|
|
1539
1506
|
delete: async () => {
|
|
1540
|
-
let t =
|
|
1541
|
-
t && await
|
|
1507
|
+
let t = O(e);
|
|
1508
|
+
t && await k(t);
|
|
1542
1509
|
},
|
|
1543
1510
|
addAfter: () => {
|
|
1544
|
-
let t =
|
|
1545
|
-
t &&
|
|
1511
|
+
let t = O(e);
|
|
1512
|
+
t && Oe(t);
|
|
1546
1513
|
},
|
|
1547
1514
|
toggleExpand: () => {
|
|
1548
|
-
let t =
|
|
1549
|
-
t &&
|
|
1515
|
+
let t = O(e);
|
|
1516
|
+
t && Ae(t);
|
|
1550
1517
|
},
|
|
1551
1518
|
update: (t) => _.updateItem(e, t)
|
|
1552
|
-
},
|
|
1519
|
+
}, Ue.set(e, t)), t;
|
|
1553
1520
|
};
|
|
1554
|
-
G(() =>
|
|
1555
|
-
if (
|
|
1521
|
+
G(() => Ce.value, (e) => {
|
|
1522
|
+
if (Ue.size === 0) return;
|
|
1556
1523
|
let t = new Set(e.map((e) => e.key));
|
|
1557
|
-
for (let e of
|
|
1524
|
+
for (let e of Ue.keys()) t.has(e) || Ue.delete(e);
|
|
1558
1525
|
});
|
|
1559
|
-
let
|
|
1526
|
+
let Ge = (e) => ({
|
|
1560
1527
|
item: e,
|
|
1561
1528
|
raw: e.raw,
|
|
1562
1529
|
index: e.index,
|
|
@@ -1569,28 +1536,28 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1569
1536
|
unsaved: e.unsaved,
|
|
1570
1537
|
touch: m.value,
|
|
1571
1538
|
stateKeyPrefix: y.prefixFor(e.key),
|
|
1572
|
-
actions:
|
|
1539
|
+
actions: We(e.key)
|
|
1573
1540
|
});
|
|
1574
1541
|
fe(() => o.unsavedSectionLabel && !o.disableUnsaved ? {
|
|
1575
1542
|
label: o.unsavedSectionLabel,
|
|
1576
1543
|
dirty: _.hasUnsaved.value
|
|
1577
1544
|
} : []);
|
|
1578
|
-
let
|
|
1579
|
-
let t =
|
|
1580
|
-
t &&
|
|
1545
|
+
let Ke = () => le(_, (e) => {
|
|
1546
|
+
let t = ee.value.find((t) => t.key === e);
|
|
1547
|
+
t && se(t);
|
|
1581
1548
|
});
|
|
1582
|
-
return
|
|
1549
|
+
return Ot({
|
|
1583
1550
|
hasErrors: _.hasErrors,
|
|
1584
1551
|
validationScope: o.validationScope,
|
|
1585
1552
|
validateProvided: o.validate !== void 0,
|
|
1586
|
-
reveal:
|
|
1587
|
-
}),
|
|
1553
|
+
reveal: Ke
|
|
1554
|
+
}), t({
|
|
1588
1555
|
..._,
|
|
1589
|
-
validateAll:
|
|
1556
|
+
validateAll: Ke
|
|
1590
1557
|
}), (t, n) => (B(), P("div", {
|
|
1591
1558
|
ref_key: "rootEl",
|
|
1592
1559
|
ref: p,
|
|
1593
|
-
class:
|
|
1560
|
+
class: zt(["a-list-editor", [`a-list-editor--two-rows-${e.twoRows}`, {
|
|
1594
1561
|
"a-list-editor--readonly": e.readonly,
|
|
1595
1562
|
"a-list-editor--disabled": e.disabled,
|
|
1596
1563
|
"a-list-editor--touch": m.value,
|
|
@@ -1602,16 +1569,16 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1602
1569
|
ref: w,
|
|
1603
1570
|
class: "a-le-card"
|
|
1604
1571
|
}, [
|
|
1605
|
-
|
|
1572
|
+
be.value ? (B(), P("div", Vr, [H(t.$slots, "header", { title: e.title }, () => [e.title ? (B(), P("h3", Hr, U(e.title), 1)) : N("", !0)]), ye.value ? (B(), P("span", {
|
|
1606
1573
|
key: 0,
|
|
1607
1574
|
class: "a-le-unsaved-count",
|
|
1608
|
-
"data-unsaved-count": W(
|
|
1609
|
-
}, U(W(l)("common.sortable.pendingChanges", { count: W(
|
|
1610
|
-
e.loading ? (B(), P("div", Wr, [L(
|
|
1575
|
+
"data-unsaved-count": W(ve)
|
|
1576
|
+
}, U(W(l)("common.sortable.pendingChanges", { count: W(ve) })), 9, Ur)) : N("", !0)])) : N("", !0),
|
|
1577
|
+
e.loading ? (B(), P("div", Wr, [L(on, {
|
|
1611
1578
|
indeterminate: "",
|
|
1612
1579
|
color: "primary",
|
|
1613
1580
|
size: "32"
|
|
1614
|
-
})])) : e.error ? (B(), P("div", Gr, [L(
|
|
1581
|
+
})])) : e.error ? (B(), P("div", Gr, [L(an, {
|
|
1615
1582
|
type: "error",
|
|
1616
1583
|
variant: "tonal",
|
|
1617
1584
|
density: "compact",
|
|
@@ -1619,47 +1586,47 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1619
1586
|
}, {
|
|
1620
1587
|
default: K(() => [I(U(e.error), 1)]),
|
|
1621
1588
|
_: 1
|
|
1622
|
-
})])) :
|
|
1589
|
+
})])) : we.value ? (B(), P("div", Kr, [H(t.$slots, "empty", {
|
|
1623
1590
|
readonly: e.readonly,
|
|
1624
1591
|
disabled: e.disabled,
|
|
1625
|
-
actions: { add:
|
|
1626
|
-
}, () => [L(
|
|
1627
|
-
title:
|
|
1628
|
-
"add-label":
|
|
1629
|
-
"can-add":
|
|
1630
|
-
onAdd:
|
|
1592
|
+
actions: { add: De }
|
|
1593
|
+
}, () => [L(ze, {
|
|
1594
|
+
title: me.value,
|
|
1595
|
+
"add-label": pe.value,
|
|
1596
|
+
"can-add": _e.value,
|
|
1597
|
+
onAdd: De
|
|
1631
1598
|
}, null, 8, [
|
|
1632
1599
|
"title",
|
|
1633
1600
|
"add-label",
|
|
1634
1601
|
"can-add"
|
|
1635
|
-
])])])) : (B(!0), P(A, { key: 4 },
|
|
1602
|
+
])])])) : (B(!0), P(A, { key: 4 }, Gt(Ce.value, (r) => (B(), P("div", {
|
|
1636
1603
|
key: String(r.key),
|
|
1637
1604
|
class: "a-le-row-wrapper"
|
|
1638
1605
|
}, [
|
|
1639
|
-
H(t.$slots, "before-item", z({ ref_for: !0 },
|
|
1606
|
+
H(t.$slots, "before-item", z({ ref_for: !0 }, Ge(r))),
|
|
1640
1607
|
F("div", {
|
|
1641
1608
|
"data-id": String(r.key),
|
|
1642
1609
|
role: "listitem",
|
|
1643
|
-
tabindex: W(
|
|
1644
|
-
class:
|
|
1610
|
+
tabindex: W(Te).rowTabindex(r.key),
|
|
1611
|
+
class: zt(["a-le-row", {
|
|
1645
1612
|
"a-le-row--two-rows": e.twoRows === "always",
|
|
1646
1613
|
"a-le-row--editing": r.editing,
|
|
1647
1614
|
"a-le-row--expanded": r.expanded,
|
|
1648
1615
|
"a-le-row--unsaved": r.unsaved,
|
|
1649
|
-
"a-le-row--clickable":
|
|
1616
|
+
"a-le-row--clickable": je(r),
|
|
1650
1617
|
[`a-le-row--validation-${r.validationState}`]: r.validationState !== null
|
|
1651
1618
|
}]),
|
|
1652
|
-
onKeydown: (e) => W(
|
|
1619
|
+
onKeydown: (e) => W(Te).handleKeydown(r.key, e)
|
|
1653
1620
|
}, [F("div", {
|
|
1654
1621
|
class: "a-le-row-header",
|
|
1655
|
-
onClick: (e) =>
|
|
1622
|
+
onClick: (e) => Me(r)
|
|
1656
1623
|
}, [
|
|
1657
|
-
F("div", Yr, [H(t.$slots, "item-compact", z({ ref_for: !0 },
|
|
1624
|
+
F("div", Yr, [H(t.$slots, "item-compact", z({ ref_for: !0 }, Ge(r)), () => [F("span", Xr, U(Ee(r.raw)), 1)]), r.unsaved ? (B(), M($e, {
|
|
1658
1625
|
key: 0,
|
|
1659
1626
|
"dot-only": e.chips
|
|
1660
1627
|
}, null, 8, ["dot-only"])) : N("", !0)]),
|
|
1661
|
-
e.chips ? N("", !0) : (B(), P("div", Zr, [H(t.$slots, "item-status", z({ ref_for: !0 },
|
|
1662
|
-
F("div", $r, [H(t.$slots, "item-actions", z({ ref_for: !0 },
|
|
1628
|
+
e.chips ? N("", !0) : (B(), P("div", Zr, [H(t.$slots, "item-status", z({ ref_for: !0 }, Ge(r)), () => [e.statusField && r.raw[e.statusField] != null && r.raw[e.statusField] !== "" ? (B(), P("span", Qr, U(r.raw[e.statusField]), 1)) : N("", !0)])])),
|
|
1629
|
+
F("div", $r, [H(t.$slots, "item-actions", z({ ref_for: !0 }, Ge(r)), () => [e.chips && e.showDeleteButton && D.value ? (B(), M(X, {
|
|
1663
1630
|
key: 0,
|
|
1664
1631
|
icon: "",
|
|
1665
1632
|
size: "x-small",
|
|
@@ -1667,7 +1634,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1667
1634
|
density: "compact",
|
|
1668
1635
|
active: !1,
|
|
1669
1636
|
class: "a-le-action a-le-action--chip-close",
|
|
1670
|
-
onClick: q((e) =>
|
|
1637
|
+
onClick: q((e) => k(r), ["stop"])
|
|
1671
1638
|
}, {
|
|
1672
1639
|
default: K(() => [L(Y, {
|
|
1673
1640
|
icon: "mdi-close",
|
|
@@ -1675,7 +1642,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1675
1642
|
})]),
|
|
1676
1643
|
_: 1
|
|
1677
1644
|
}, 8, ["onClick"])) : (B(), P(A, { key: 1 }, [
|
|
1678
|
-
e.showEditButton &&
|
|
1645
|
+
e.showEditButton && D.value && !e.defaultExpanded ? (B(), M(X, {
|
|
1679
1646
|
key: 0,
|
|
1680
1647
|
icon: "",
|
|
1681
1648
|
size: "small",
|
|
@@ -1683,38 +1650,38 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1683
1650
|
color: "primary",
|
|
1684
1651
|
density: "comfortable",
|
|
1685
1652
|
class: "mx-1 a-le-action a-le-action--edit",
|
|
1686
|
-
onClick: q((e) =>
|
|
1653
|
+
onClick: q((e) => ke(r), ["stop"])
|
|
1687
1654
|
}, {
|
|
1688
1655
|
default: K(() => [L(Y, {
|
|
1689
1656
|
icon: "mdi-pencil-outline",
|
|
1690
1657
|
size: "18"
|
|
1691
|
-
}), L(
|
|
1658
|
+
}), L(dn, {
|
|
1692
1659
|
activator: "parent",
|
|
1693
1660
|
location: "bottom",
|
|
1694
1661
|
text: W(l)("common.sortable.edit")
|
|
1695
1662
|
}, null, 8, ["text"])]),
|
|
1696
1663
|
_: 1
|
|
1697
1664
|
}, 8, ["onClick"])) : N("", !0),
|
|
1698
|
-
e.showDeleteButton &&
|
|
1665
|
+
e.showDeleteButton && D.value ? (B(), M(X, {
|
|
1699
1666
|
key: 1,
|
|
1700
1667
|
icon: "",
|
|
1701
1668
|
size: "small",
|
|
1702
1669
|
variant: "text",
|
|
1703
1670
|
density: "comfortable",
|
|
1704
1671
|
class: "mx-1 a-le-action a-le-action--delete",
|
|
1705
|
-
onClick: q((e) =>
|
|
1672
|
+
onClick: q((e) => k(r), ["stop"])
|
|
1706
1673
|
}, {
|
|
1707
1674
|
default: K(() => [L(Y, {
|
|
1708
1675
|
icon: "mdi-trash-can-outline",
|
|
1709
1676
|
size: "18"
|
|
1710
|
-
}), L(
|
|
1677
|
+
}), L(dn, {
|
|
1711
1678
|
activator: "parent",
|
|
1712
1679
|
location: "bottom",
|
|
1713
1680
|
text: W(l)("common.sortable.delete")
|
|
1714
1681
|
}, null, 8, ["text"])]),
|
|
1715
1682
|
_: 1
|
|
1716
1683
|
}, 8, ["onClick"])) : N("", !0),
|
|
1717
|
-
e.showAddAfterAction &&
|
|
1684
|
+
e.showAddAfterAction && D.value ? (B(), M(X, {
|
|
1718
1685
|
key: 2,
|
|
1719
1686
|
icon: "",
|
|
1720
1687
|
size: "small",
|
|
@@ -1728,14 +1695,14 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1728
1695
|
icon: "mdi-dots-vertical",
|
|
1729
1696
|
size: "18"
|
|
1730
1697
|
}),
|
|
1731
|
-
L(
|
|
1698
|
+
L(dn, {
|
|
1732
1699
|
activator: "parent",
|
|
1733
1700
|
location: "bottom",
|
|
1734
1701
|
text: W(l)("common.sortable.more")
|
|
1735
1702
|
}, null, 8, ["text"]),
|
|
1736
|
-
L(
|
|
1737
|
-
default: K(() => [L(
|
|
1738
|
-
default: K(() => [L(Q, { onClick: (e) =>
|
|
1703
|
+
L(_n, { activator: "parent" }, {
|
|
1704
|
+
default: K(() => [L(gn, { density: "compact" }, {
|
|
1705
|
+
default: K(() => [L(Q, { onClick: (e) => Oe(r) }, {
|
|
1739
1706
|
prepend: K(() => [L(Y, { icon: "mdi-plus" })]),
|
|
1740
1707
|
default: K(() => [L($, null, {
|
|
1741
1708
|
default: K(() => [I(U(W(l)("common.sortable.addAfter")), 1)]),
|
|
@@ -1751,12 +1718,12 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1751
1718
|
_: 2
|
|
1752
1719
|
}, 1024)) : N("", !0)
|
|
1753
1720
|
], 64))])])
|
|
1754
|
-
], 8, Jr), (r.editing || e.defaultExpanded) && t.$slots.item ? (B(), P(A, { key: 0 }, [F("div", ei, [F("div", ti, [H(t.$slots, "item", z({ ref_for: !0 },
|
|
1721
|
+
], 8, Jr), (r.editing || e.defaultExpanded) && t.$slots.item ? (B(), P(A, { key: 0 }, [F("div", ei, [F("div", ti, [H(t.$slots, "item", z({ ref_for: !0 }, Ge(r)))])]), H(t.$slots, "item-footer", z({ ref_for: !0 }, Ge(r)), () => [xe.value && !e.defaultExpanded ? (B(), P("div", ni, [
|
|
1755
1722
|
n[1] ||= F("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
1756
1723
|
L(X, {
|
|
1757
1724
|
variant: "text",
|
|
1758
1725
|
disabled: r.loading,
|
|
1759
|
-
onClick: q((e) =>
|
|
1726
|
+
onClick: q((e) => Ve(r), ["stop"])
|
|
1760
1727
|
}, {
|
|
1761
1728
|
default: K(() => [I(U(W(l)("common.button.cancel")), 1)]),
|
|
1762
1729
|
_: 1
|
|
@@ -1766,39 +1733,39 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1766
1733
|
variant: "flat",
|
|
1767
1734
|
"prepend-icon": "mdi-check",
|
|
1768
1735
|
disabled: r.loading,
|
|
1769
|
-
onClick: q((e) =>
|
|
1736
|
+
onClick: q((e) => Be(r), ["stop"])
|
|
1770
1737
|
}, {
|
|
1771
1738
|
default: K(() => [I(U(W(l)("common.button.save")), 1)]),
|
|
1772
1739
|
_: 1
|
|
1773
1740
|
}, 8, ["disabled", "onClick"])
|
|
1774
|
-
])) : N("", !0)])], 64)) : t.$slots["item-readonly"] && (e.readonly || r.expanded) ? (B(), P("div", ri, [F("div", ii, [H(t.$slots, "item-readonly", z({ ref_for: !0 },
|
|
1775
|
-
H(t.$slots, "after-item", z({ ref_for: !0 },
|
|
1741
|
+
])) : N("", !0)])], 64)) : t.$slots["item-readonly"] && (e.readonly || r.expanded) ? (B(), P("div", ri, [F("div", ii, [H(t.$slots, "item-readonly", z({ ref_for: !0 }, Ge(r)))])])) : N("", !0)], 42, qr),
|
|
1742
|
+
H(t.$slots, "after-item", z({ ref_for: !0 }, Ge(r)))
|
|
1776
1743
|
]))), 128)),
|
|
1777
|
-
|
|
1744
|
+
_e.value && !e.loading && !e.error && !we.value ? H(t.$slots, "add-button", {
|
|
1778
1745
|
readonly: e.readonly,
|
|
1779
1746
|
disabled: e.disabled,
|
|
1780
|
-
props: { onClick:
|
|
1781
|
-
actions: { add:
|
|
1747
|
+
props: { onClick: De },
|
|
1748
|
+
actions: { add: De }
|
|
1782
1749
|
}, () => [F("button", {
|
|
1783
1750
|
type: "button",
|
|
1784
1751
|
class: "a-le-row-add",
|
|
1785
|
-
onClick:
|
|
1752
|
+
onClick: De
|
|
1786
1753
|
}, [L(Y, {
|
|
1787
1754
|
icon: "mdi-plus",
|
|
1788
1755
|
size: "18"
|
|
1789
|
-
}), F("span", null, U(
|
|
1756
|
+
}), F("span", null, U(pe.value), 1)])], void 0, 5) : N("", !0)
|
|
1790
1757
|
], 512),
|
|
1791
|
-
L(
|
|
1792
|
-
modelValue: W(
|
|
1793
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1794
|
-
title:
|
|
1795
|
-
text:
|
|
1758
|
+
L(Ct, {
|
|
1759
|
+
modelValue: W(Ne),
|
|
1760
|
+
"onUpdate:modelValue": n[0] ||= (e) => It(Ne) ? Ne.value = e : null,
|
|
1761
|
+
title: he.value,
|
|
1762
|
+
text: ge.value,
|
|
1796
1763
|
"confirm-label": W(l)("common.sortable.delete"),
|
|
1797
1764
|
"cancel-label": W(l)("common.button.cancel"),
|
|
1798
|
-
error: W(
|
|
1799
|
-
"in-flight": W(
|
|
1800
|
-
onConfirm: W(
|
|
1801
|
-
onCancel: W(
|
|
1765
|
+
error: W(Fe),
|
|
1766
|
+
"in-flight": W(Pe),
|
|
1767
|
+
onConfirm: W(Le),
|
|
1768
|
+
onCancel: W(Re)
|
|
1802
1769
|
}, null, 8, [
|
|
1803
1770
|
"modelValue",
|
|
1804
1771
|
"title",
|
|
@@ -1810,9 +1777,9 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1810
1777
|
"onConfirm",
|
|
1811
1778
|
"onCancel"
|
|
1812
1779
|
]),
|
|
1813
|
-
F("div", ai, U(W(
|
|
1814
|
-
n: W(
|
|
1815
|
-
total: W(
|
|
1780
|
+
F("div", ai, U(W(Te).grabbedKey.value === null ? "" : W(l)("common.sortable.keyboardGrab.status", {
|
|
1781
|
+
n: W(Te).grabbedIndex.value + 1,
|
|
1782
|
+
total: W(Te).totalCount.value
|
|
1816
1783
|
})), 1)
|
|
1817
1784
|
], 2));
|
|
1818
1785
|
}
|
|
@@ -1931,22 +1898,22 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1931
1898
|
callbacks: {}
|
|
1932
1899
|
},
|
|
1933
1900
|
setup(e) {
|
|
1934
|
-
let t = e, n = Ai, { t: r } =
|
|
1901
|
+
let t = e, n = Ai, { t: r } = tn(), i = (e) => `--row-${String(e).replace(/\W/g, "_")}`, a = (e) => {
|
|
1935
1902
|
if (typeof t.context.resolveValidation == "function") return t.context.resolveValidation(e, t.vi.key, t.vi.index);
|
|
1936
1903
|
let n = e.validationState;
|
|
1937
1904
|
return n === "valid" || n === "invalid" || n === "warning" ? n : null;
|
|
1938
1905
|
}, o = () => t.context.buildSlotProps(t.vi), s = () => t.viewItems.filter((e) => e.parentKey === t.vi.key);
|
|
1939
1906
|
return (t, c) => (B(), P("div", {
|
|
1940
|
-
class:
|
|
1907
|
+
class: zt(["a-le-row-wrapper", { "a-le-row-wrapper--drop-disabled": e.dragState !== null && e.dragState.sourceKey === e.vi.key }]),
|
|
1941
1908
|
"data-id": String(e.vi.key),
|
|
1942
1909
|
role: "treeitem",
|
|
1943
1910
|
"aria-level": e.vi.depth + 1,
|
|
1944
1911
|
tabindex: e.context.keyboardNav ? e.context.keyboardNav.rowTabindex(e.vi.key) : void 0,
|
|
1945
1912
|
onKeydown: c[17] ||= (t) => e.context.keyboardNav ? e.context.keyboardNav.handleKeydown(e.vi.key, t) : void 0
|
|
1946
1913
|
}, [
|
|
1947
|
-
H(t.$slots, "before-item",
|
|
1914
|
+
H(t.$slots, "before-item", Bt(Pt(o()))),
|
|
1948
1915
|
F("div", {
|
|
1949
|
-
class:
|
|
1916
|
+
class: zt([
|
|
1950
1917
|
"a-le-row",
|
|
1951
1918
|
e.vi.depth > 0 ? "a-le-row--child" : null,
|
|
1952
1919
|
{
|
|
@@ -1960,7 +1927,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1960
1927
|
[`a-le-row--validation-${a(e.vi.raw)}`]: a(e.vi.raw) !== null
|
|
1961
1928
|
}
|
|
1962
1929
|
]),
|
|
1963
|
-
style:
|
|
1930
|
+
style: Vt({
|
|
1964
1931
|
"--nested-depth": e.vi.depth,
|
|
1965
1932
|
"anchor-name": i(e.vi.key),
|
|
1966
1933
|
"--parent-anchor": e.vi.parentKey === null ? "none" : i(e.vi.parentKey)
|
|
@@ -1969,14 +1936,14 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1969
1936
|
class: "a-le-row-header",
|
|
1970
1937
|
onClick: c[14] ||= (t) => e.callbacks.onRowClick(e.vi)
|
|
1971
1938
|
}, [
|
|
1972
|
-
e.context.dragEnabled ? (B(), M(
|
|
1939
|
+
e.context.dragEnabled ? (B(), M(ct, {
|
|
1973
1940
|
key: 0,
|
|
1974
|
-
class:
|
|
1941
|
+
class: zt(ki)
|
|
1975
1942
|
})) : N("", !0),
|
|
1976
1943
|
e.context.showExpandToggle && e.vi.childrenAllowed ? (B(), P("button", {
|
|
1977
1944
|
key: 1,
|
|
1978
1945
|
type: "button",
|
|
1979
|
-
class:
|
|
1946
|
+
class: zt(["a-nested-list-editor__tree-toggle", {
|
|
1980
1947
|
"a-nested-list-editor__tree-toggle--empty": !e.vi.hasChildren,
|
|
1981
1948
|
"a-nested-list-editor__tree-toggle--open": e.vi.childrenExpanded
|
|
1982
1949
|
}]),
|
|
@@ -1984,15 +1951,15 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
1984
1951
|
onClick: c[0] ||= q((t) => e.vi.hasChildren && e.callbacks.onChevronClick(e.vi), ["stop"])
|
|
1985
1952
|
}, [...c[18] ||= [F("span", { class: "a-nested-list-editor__tree-toggle-caret" }, null, -1)]], 10, mi)) : e.context.showExpandToggle ? (B(), P("span", hi)) : N("", !0),
|
|
1986
1953
|
F("div", gi, [
|
|
1987
|
-
H(t.$slots, "item-compact",
|
|
1954
|
+
H(t.$slots, "item-compact", Bt(Pt(o())), () => [F("span", _i, U(e.context.resolveCompactText(e.vi.raw, e.vi.key)), 1)]),
|
|
1988
1955
|
e.vi.hasChildren ? (B(), P("span", vi, [L(Y, {
|
|
1989
1956
|
icon: "mdi-file-tree",
|
|
1990
1957
|
size: "14"
|
|
1991
1958
|
}), I(" +" + U(e.vi.childrenCount), 1)])) : N("", !0),
|
|
1992
1959
|
e.vi.unsaved ? (B(), M($e, { key: 1 })) : N("", !0)
|
|
1993
1960
|
]),
|
|
1994
|
-
e.context.reorderMode ? N("", !0) : (B(), P("div", yi, [H(t.$slots, "item-status",
|
|
1995
|
-
F("div", xi, [H(t.$slots, "item-actions",
|
|
1961
|
+
e.context.reorderMode ? N("", !0) : (B(), P("div", yi, [H(t.$slots, "item-status", Bt(Pt(o())), () => [e.context.statusField && e.vi.raw[e.context.statusField] != null && e.vi.raw[e.context.statusField] !== "" ? (B(), P("span", bi, U(e.vi.raw[e.context.statusField]), 1)) : N("", !0)])])),
|
|
1962
|
+
F("div", xi, [H(t.$slots, "item-actions", Bt(Pt(o())), () => [e.context.reorderMode ? (B(), P(A, { key: 0 }, [
|
|
1996
1963
|
L(X, {
|
|
1997
1964
|
icon: "",
|
|
1998
1965
|
size: "small",
|
|
@@ -2005,7 +1972,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2005
1972
|
default: K(() => [L(Y, {
|
|
2006
1973
|
icon: "mdi-arrow-up",
|
|
2007
1974
|
size: "18"
|
|
2008
|
-
}), L(
|
|
1975
|
+
}), L(dn, {
|
|
2009
1976
|
activator: "parent",
|
|
2010
1977
|
location: "bottom",
|
|
2011
1978
|
text: W(r)("common.sortable.moveUp")
|
|
@@ -2024,7 +1991,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2024
1991
|
default: K(() => [L(Y, {
|
|
2025
1992
|
icon: "mdi-arrow-down",
|
|
2026
1993
|
size: "18"
|
|
2027
|
-
}), L(
|
|
1994
|
+
}), L(dn, {
|
|
2028
1995
|
activator: "parent",
|
|
2029
1996
|
location: "bottom",
|
|
2030
1997
|
text: W(r)("common.sortable.moveDown")
|
|
@@ -2044,13 +2011,13 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2044
2011
|
icon: "mdi-dots-vertical",
|
|
2045
2012
|
size: "18"
|
|
2046
2013
|
}),
|
|
2047
|
-
L(
|
|
2014
|
+
L(dn, {
|
|
2048
2015
|
activator: "parent",
|
|
2049
2016
|
location: "bottom",
|
|
2050
2017
|
text: W(r)("common.sortable.more")
|
|
2051
2018
|
}, null, 8, ["text"]),
|
|
2052
|
-
L(
|
|
2053
|
-
default: K(() => [L(
|
|
2019
|
+
L(_n, { activator: "parent" }, {
|
|
2020
|
+
default: K(() => [L(gn, { density: "compact" }, {
|
|
2054
2021
|
default: K(() => [
|
|
2055
2022
|
L(Q, {
|
|
2056
2023
|
disabled: e.vi.firstInParent,
|
|
@@ -2154,7 +2121,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2154
2121
|
default: K(() => [L(Y, {
|
|
2155
2122
|
icon: "mdi-pencil-outline",
|
|
2156
2123
|
size: "18"
|
|
2157
|
-
}), L(
|
|
2124
|
+
}), L(dn, {
|
|
2158
2125
|
activator: "parent",
|
|
2159
2126
|
location: "bottom",
|
|
2160
2127
|
text: W(r)("common.sortable.edit")
|
|
@@ -2173,7 +2140,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2173
2140
|
default: K(() => [L(Y, {
|
|
2174
2141
|
icon: "mdi-trash-can-outline",
|
|
2175
2142
|
size: "18"
|
|
2176
|
-
}), L(
|
|
2143
|
+
}), L(dn, {
|
|
2177
2144
|
activator: "parent",
|
|
2178
2145
|
location: "bottom",
|
|
2179
2146
|
text: W(r)("common.sortable.delete")
|
|
@@ -2194,13 +2161,13 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2194
2161
|
icon: "mdi-dots-vertical",
|
|
2195
2162
|
size: "18"
|
|
2196
2163
|
}),
|
|
2197
|
-
L(
|
|
2164
|
+
L(dn, {
|
|
2198
2165
|
activator: "parent",
|
|
2199
2166
|
location: "bottom",
|
|
2200
2167
|
text: W(r)("common.sortable.more")
|
|
2201
2168
|
}, null, 8, ["text"]),
|
|
2202
|
-
L(
|
|
2203
|
-
default: K(() => [L(
|
|
2169
|
+
L(_n, { activator: "parent" }, {
|
|
2170
|
+
default: K(() => [L(gn, { density: "compact" }, {
|
|
2204
2171
|
default: K(() => [e.context.showAddAfterAction ? (B(), M(Q, {
|
|
2205
2172
|
key: 0,
|
|
2206
2173
|
onClick: c[12] ||= q((t) => e.callbacks.onAddAfterClick(e.vi), ["stop"])
|
|
@@ -2230,7 +2197,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2230
2197
|
_: 1
|
|
2231
2198
|
})) : N("", !0)
|
|
2232
2199
|
], 64))])])
|
|
2233
|
-
]), e.vi.editing && !e.context.reorderMode && t.$slots.item ? (B(), P(A, { key: 0 }, [F("div", Si, [F("div", Ci, [H(t.$slots, "item",
|
|
2200
|
+
]), e.vi.editing && !e.context.reorderMode && t.$slots.item ? (B(), P(A, { key: 0 }, [F("div", Si, [F("div", Ci, [H(t.$slots, "item", Bt(Pt(o())))])]), H(t.$slots, "item-footer", Bt(Pt(o())), () => [e.context.showInlineSaveFooter ? (B(), P("div", wi, [
|
|
2234
2201
|
c[19] ||= F("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
2235
2202
|
L(X, {
|
|
2236
2203
|
variant: "text",
|
|
@@ -2250,16 +2217,16 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2250
2217
|
default: K(() => [I(U(W(r)("common.button.save")), 1)]),
|
|
2251
2218
|
_: 1
|
|
2252
2219
|
}, 8, ["disabled"])
|
|
2253
|
-
])) : N("", !0)])], 64)) : t.$slots["item-readonly"] && (e.context.readonly || e.vi.expanded) && !e.context.reorderMode ? (B(), P("div", Ti, [F("div", Ei, [H(t.$slots, "item-readonly",
|
|
2254
|
-
H(t.$slots, "after-item",
|
|
2220
|
+
])) : N("", !0)])], 64)) : t.$slots["item-readonly"] && (e.context.readonly || e.vi.expanded) && !e.context.reorderMode ? (B(), P("div", Ti, [F("div", Ei, [H(t.$slots, "item-readonly", Bt(Pt(o())))])])) : N("", !0)], 6),
|
|
2221
|
+
H(t.$slots, "after-item", Bt(Pt(o()))),
|
|
2255
2222
|
e.vi.hasChildren && e.vi.childrenExpanded ? (B(), P("div", {
|
|
2256
2223
|
key: 0,
|
|
2257
2224
|
class: "a-nested-list-editor__children",
|
|
2258
|
-
style:
|
|
2225
|
+
style: Vt({ "--parent-depth": e.vi.depth })
|
|
2259
2226
|
}, [F("div", {
|
|
2260
|
-
class:
|
|
2227
|
+
class: zt([Oi]),
|
|
2261
2228
|
"data-parent-id": String(e.vi.key)
|
|
2262
|
-
}, [(B(!0), P(A, null,
|
|
2229
|
+
}, [(B(!0), P(A, null, Gt(s(), (r) => (B(), M(W(n), {
|
|
2263
2230
|
key: String(r.key),
|
|
2264
2231
|
vi: r,
|
|
2265
2232
|
"view-items": e.viewItems,
|
|
@@ -2285,9 +2252,9 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2285
2252
|
]))), 128))], 10, Di)], 4)) : N("", !0)
|
|
2286
2253
|
], 42, pi));
|
|
2287
2254
|
}
|
|
2288
|
-
}), ji = { class: "text-body-medium mb-2" }, Mi = /*#__PURE__*/
|
|
2255
|
+
}), ji = { class: "text-body-medium mb-2" }, Mi = /*#__PURE__*/ T(/* @__PURE__ */ R({
|
|
2289
2256
|
__name: "LeChangeParentDialog",
|
|
2290
|
-
props: /*@__PURE__*/
|
|
2257
|
+
props: /*@__PURE__*/ Lt({
|
|
2291
2258
|
tree: {},
|
|
2292
2259
|
sourceKey: {},
|
|
2293
2260
|
keyField: {},
|
|
@@ -2301,9 +2268,9 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2301
2268
|
},
|
|
2302
2269
|
modelModifiers: {}
|
|
2303
2270
|
}),
|
|
2304
|
-
emits: /*@__PURE__*/
|
|
2271
|
+
emits: /*@__PURE__*/ Lt(["confirm"], ["update:modelValue"]),
|
|
2305
2272
|
setup(e, { emit: t }) {
|
|
2306
|
-
let n = e, r = t, i =
|
|
2273
|
+
let n = e, r = t, i = Yt(e, "modelValue"), { t: a } = tn(), o = V(void 0), s = V("last");
|
|
2307
2274
|
G(i, (e) => {
|
|
2308
2275
|
e && (o.value = void 0, s.value = "last");
|
|
2309
2276
|
});
|
|
@@ -2379,23 +2346,23 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2379
2346
|
}, _ = () => {
|
|
2380
2347
|
i.value = !1;
|
|
2381
2348
|
}, v = (e) => `${e * 16}px`, y = (e) => e === "maxDepth" ? a("common.sortable.changeParent.errorMaxDepth") : "";
|
|
2382
|
-
return (e, t) => (B(), M(
|
|
2349
|
+
return (e, t) => (B(), M(bn, {
|
|
2383
2350
|
modelValue: i.value,
|
|
2384
2351
|
"onUpdate:modelValue": t[1] ||= (e) => i.value = e,
|
|
2385
2352
|
"max-width": "540",
|
|
2386
2353
|
persistent: ""
|
|
2387
2354
|
}, {
|
|
2388
|
-
default: K(() => [L(
|
|
2355
|
+
default: K(() => [L(sn, null, {
|
|
2389
2356
|
default: K(() => [
|
|
2390
|
-
L(
|
|
2357
|
+
L(un, null, {
|
|
2391
2358
|
default: K(() => [I(U(W(a)("common.sortable.changeParent.title")), 1)]),
|
|
2392
2359
|
_: 1
|
|
2393
2360
|
}),
|
|
2394
|
-
f.value.length === 0 ? (B(), M(
|
|
2361
|
+
f.value.length === 0 ? (B(), M(ln, {
|
|
2395
2362
|
key: 0,
|
|
2396
2363
|
class: "text-body-medium"
|
|
2397
2364
|
}, {
|
|
2398
|
-
default: K(() => [L(
|
|
2365
|
+
default: K(() => [L(an, {
|
|
2399
2366
|
type: "info",
|
|
2400
2367
|
variant: "tonal",
|
|
2401
2368
|
density: "compact"
|
|
@@ -2404,18 +2371,18 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2404
2371
|
_: 1
|
|
2405
2372
|
})]),
|
|
2406
2373
|
_: 1
|
|
2407
|
-
})) : (B(), P(A, { key: 1 }, [L(
|
|
2408
|
-
default: K(() => [L(
|
|
2374
|
+
})) : (B(), P(A, { key: 1 }, [L(ln, { class: "pb-1" }, {
|
|
2375
|
+
default: K(() => [L(gn, {
|
|
2409
2376
|
density: "compact",
|
|
2410
2377
|
class: "le-change-parent__list"
|
|
2411
2378
|
}, {
|
|
2412
|
-
default: K(() => [(B(!0), P(A, null,
|
|
2379
|
+
default: K(() => [(B(!0), P(A, null, Gt(d.value, (e) => (B(), M(Q, {
|
|
2413
2380
|
key: e.key === null ? "__root__" : String(e.key),
|
|
2414
2381
|
disabled: e.disallowed,
|
|
2415
2382
|
active: o.value === e.key,
|
|
2416
2383
|
title: e.label,
|
|
2417
2384
|
subtitle: y(e.reason),
|
|
2418
|
-
style:
|
|
2385
|
+
style: Vt({ paddingInlineStart: v(e.depth) }),
|
|
2419
2386
|
"data-disallowed": e.disallowed ? "true" : "false",
|
|
2420
2387
|
"data-reason": e.reason ?? "",
|
|
2421
2388
|
onClick: (t) => h(e)
|
|
@@ -2447,20 +2414,20 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2447
2414
|
_: 1
|
|
2448
2415
|
})]),
|
|
2449
2416
|
_: 1
|
|
2450
|
-
}), m.value ? (B(), M(
|
|
2417
|
+
}), m.value ? (B(), M(ln, {
|
|
2451
2418
|
key: 0,
|
|
2452
2419
|
class: "pt-0"
|
|
2453
2420
|
}, {
|
|
2454
|
-
default: K(() => [F("div", ji, U(W(a)("common.sortable.changeParent.placementHeading", { label: p.value?.label ?? "" })), 1), L(
|
|
2421
|
+
default: K(() => [F("div", ji, U(W(a)("common.sortable.changeParent.placementHeading", { label: p.value?.label ?? "" })), 1), L(En, {
|
|
2455
2422
|
modelValue: s.value,
|
|
2456
2423
|
"onUpdate:modelValue": t[0] ||= (e) => s.value = e,
|
|
2457
2424
|
density: "compact",
|
|
2458
2425
|
"hide-details": ""
|
|
2459
2426
|
}, {
|
|
2460
|
-
default: K(() => [L(
|
|
2427
|
+
default: K(() => [L(Tn, {
|
|
2461
2428
|
value: "first",
|
|
2462
2429
|
label: W(a)("common.sortable.changeParent.placeFirst")
|
|
2463
|
-
}, null, 8, ["label"]), L(
|
|
2430
|
+
}, null, 8, ["label"]), L(Tn, {
|
|
2464
2431
|
value: "last",
|
|
2465
2432
|
label: W(a)("common.sortable.changeParent.placeLast")
|
|
2466
2433
|
}, null, 8, ["label"])]),
|
|
@@ -2468,9 +2435,9 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2468
2435
|
}, 8, ["modelValue"])]),
|
|
2469
2436
|
_: 1
|
|
2470
2437
|
})) : N("", !0)], 64)),
|
|
2471
|
-
L(
|
|
2438
|
+
L(cn, null, {
|
|
2472
2439
|
default: K(() => [
|
|
2473
|
-
L(
|
|
2440
|
+
L(rn),
|
|
2474
2441
|
L(X, {
|
|
2475
2442
|
variant: "text",
|
|
2476
2443
|
onClick: _
|
|
@@ -2517,7 +2484,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2517
2484
|
role: "status"
|
|
2518
2485
|
}, Vi = "a-nested-list-editor__group", Hi = 24, Ui = 22, Wi = /* @__PURE__ */ R({
|
|
2519
2486
|
__name: "ANestedSortableListEditor",
|
|
2520
|
-
props: /*@__PURE__*/
|
|
2487
|
+
props: /*@__PURE__*/ Lt({
|
|
2521
2488
|
maxDepth: {},
|
|
2522
2489
|
factory: {
|
|
2523
2490
|
type: Function,
|
|
@@ -2654,7 +2621,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2654
2621
|
mode: { default: "view" },
|
|
2655
2622
|
modeModifiers: {}
|
|
2656
2623
|
}),
|
|
2657
|
-
emits: /*@__PURE__*/
|
|
2624
|
+
emits: /*@__PURE__*/ Lt([
|
|
2658
2625
|
"add",
|
|
2659
2626
|
"add-child",
|
|
2660
2627
|
"edit",
|
|
@@ -2671,17 +2638,17 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2671
2638
|
"outdent"
|
|
2672
2639
|
], ["update:modelValue", "update:mode"]),
|
|
2673
2640
|
setup(e, { expose: t, emit: n }) {
|
|
2674
|
-
let i = e, o = n, s =
|
|
2641
|
+
let i = e, o = n, s = Yt(e, "modelValue"), c = Yt(e, "mode"), { t: l } = tn(), d = Xt(), { showWarningT: f } = ue(), p = Zt("rootEl"), { isNarrow: m } = g(p), h = ge(), _ = j(() => i.closeVariant === "icon" ? "icon" : i.closeVariant === "labeled" ? "labeled" : m.value ? "icon" : "labeled"), v = V(/* @__PURE__ */ new Set()), y = V(/* @__PURE__ */ new Set()), b = i.getKey ?? "id", x = typeof b == "function" ? "id" : b, S = (e) => typeof b == "function" ? b(e) : e[b], ee = (() => {
|
|
2675
2642
|
let e = i.position;
|
|
2676
2643
|
return e === void 0 || e === !1 ? "position" : typeof e == "object" ? e.field : e;
|
|
2677
2644
|
})();
|
|
2678
2645
|
((e) => {
|
|
2679
2646
|
let t = (e) => {
|
|
2680
|
-
for (let n of e) n.children && n.children.length > 0 && (v.value.add(
|
|
2647
|
+
for (let n of e) n.children && n.children.length > 0 && (v.value.add(S(n.data)), t(n.children));
|
|
2681
2648
|
};
|
|
2682
2649
|
t(e.children);
|
|
2683
2650
|
})(s.value);
|
|
2684
|
-
let
|
|
2651
|
+
let te = {
|
|
2685
2652
|
get: () => s.value,
|
|
2686
2653
|
set: (e) => s.value = e,
|
|
2687
2654
|
factory: i.factory,
|
|
@@ -2691,19 +2658,19 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2691
2658
|
maxDepth: i.maxDepth,
|
|
2692
2659
|
dirtyExclude: () => i.dirtyExclude ?? [],
|
|
2693
2660
|
validate: i.validate
|
|
2694
|
-
}, C = i.editor ? null :
|
|
2661
|
+
}, C = i.editor ? null : Ke(i.stateKey, te), w = i.editor ?? C?.handle ?? ne(te), T = Je(C?.childScope ?? null), re = j(() => {
|
|
2695
2662
|
let e = [], t = 0, n = i.maxDepth, r = (i, a, o) => {
|
|
2696
2663
|
for (let s = 0; s < i.length; s++) {
|
|
2697
|
-
let c = i[s], l =
|
|
2664
|
+
let c = i[s], l = S(c.data), u = c.children !== void 0, d = u && (c.children?.length ?? 0) > 0, f = c.children?.length ?? 0, p = n - (a + 1);
|
|
2698
2665
|
e.push({
|
|
2699
2666
|
key: l,
|
|
2700
2667
|
index: t++,
|
|
2701
2668
|
raw: c.data,
|
|
2702
|
-
position: c.data[
|
|
2669
|
+
position: c.data[ee],
|
|
2703
2670
|
node: c,
|
|
2704
2671
|
depth: a,
|
|
2705
2672
|
parent: o?.data ?? null,
|
|
2706
|
-
parentKey: o ?
|
|
2673
|
+
parentKey: o ? S(o.data) : null,
|
|
2707
2674
|
childrenCount: f,
|
|
2708
2675
|
hasChildren: d,
|
|
2709
2676
|
childrenAllowed: u,
|
|
@@ -2719,24 +2686,24 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2719
2686
|
};
|
|
2720
2687
|
return r(s.value.children, 0, null), e;
|
|
2721
2688
|
});
|
|
2722
|
-
G(() =>
|
|
2723
|
-
let
|
|
2724
|
-
w.commit(),
|
|
2689
|
+
G(() => re.value.map((e) => String(e.key)).join("|"), () => T.retainOwners(re.value.map((e) => e.key)), { flush: "post" });
|
|
2690
|
+
let ie = qt(null), ae = V(/* @__PURE__ */ new Set()), oe = V(/* @__PURE__ */ new Set()), se = V(/* @__PURE__ */ new Set()), ce = () => {
|
|
2691
|
+
w.commit(), ae.value = /* @__PURE__ */ new Set();
|
|
2725
2692
|
}, de = (e) => {
|
|
2726
2693
|
let { node: t } = w.findNode(e);
|
|
2727
2694
|
if (!t) {
|
|
2728
|
-
|
|
2695
|
+
ae.value.add(e);
|
|
2729
2696
|
return;
|
|
2730
2697
|
}
|
|
2731
2698
|
let n = (e) => {
|
|
2732
|
-
|
|
2699
|
+
ae.value.add(S(e.data)), e.children && e.children.forEach(n);
|
|
2733
2700
|
};
|
|
2734
2701
|
n(t);
|
|
2735
|
-
},
|
|
2702
|
+
}, E = /* @__PURE__ */ new Map(), pe = j(() => {
|
|
2736
2703
|
let e = [], t = /* @__PURE__ */ new Set();
|
|
2737
|
-
for (let n of
|
|
2704
|
+
for (let n of re.value) {
|
|
2738
2705
|
t.add(n.key);
|
|
2739
|
-
let r = Se.value.has(n.key), a = y.value.has(n.key), o = v.value.has(n.key), s = i.loadingKeys?.has(n.key) ?? !1, c =
|
|
2706
|
+
let r = Se.value.has(n.key), a = y.value.has(n.key), o = v.value.has(n.key), s = i.loadingKeys?.has(n.key) ?? !1, c = ae.value.has(n.key), l = !i.readonly && w.isUnsaved(n.key), u = i.disableUnsaved || i.readonly ? !1 : l || c, d = E.get(n.key);
|
|
2740
2707
|
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 === r && d.expanded === a && d.childrenExpanded === o && d.loading === s && d.dirty === l && d.moved === c && d.unsaved === u) {
|
|
2741
2708
|
e.push(d);
|
|
2742
2709
|
continue;
|
|
@@ -2751,18 +2718,18 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2751
2718
|
moved: c,
|
|
2752
2719
|
unsaved: u
|
|
2753
2720
|
};
|
|
2754
|
-
|
|
2721
|
+
E.set(n.key, f), e.push(f);
|
|
2755
2722
|
}
|
|
2756
|
-
for (let e of
|
|
2723
|
+
for (let e of E.keys()) t.has(e) || E.delete(e);
|
|
2757
2724
|
return e;
|
|
2758
|
-
}),
|
|
2759
|
-
rowsContainer:
|
|
2725
|
+
}), me = j(() => s.value.children.length === 0), he = j(() => re.value.length), D = Zt("rowsContainer"), _e = j(() => !i.readonly && !i.disabled && !i.loading), ve = j(() => _e.value && !i.disableReorder && he.value > 1), ye = j(() => !!d.item), be = j(() => !!d["item-readonly"]), xe = j(() => !!i.onItemSave), { editingKeys: Se, editingSnapshots: Ce, clearEditing: O, beginEdit: Te, cancelEdit: De, commitEdit: Oe, closeEdit: Ae, requestAutoOpen: je } = a({
|
|
2726
|
+
rowsContainer: D,
|
|
2760
2727
|
rowSelector: ".a-le-row-wrapper",
|
|
2761
2728
|
isInlineEdit: ye,
|
|
2762
2729
|
restoreSnapshot: (e, t) => w.updateItem(e, t, !1),
|
|
2763
2730
|
watchKeys: () => {
|
|
2764
2731
|
let e = [], t = (n) => {
|
|
2765
|
-
for (let r of n) e.push(
|
|
2732
|
+
for (let r of n) e.push(S(r.data)), r.children && r.children.length && t(r.children);
|
|
2766
2733
|
};
|
|
2767
2734
|
return t(s.value.children), e;
|
|
2768
2735
|
},
|
|
@@ -2772,35 +2739,35 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2772
2739
|
},
|
|
2773
2740
|
afterAutoOpen: (e) => {
|
|
2774
2741
|
let { parent: t } = w.findNode(e);
|
|
2775
|
-
t && v.value.add(
|
|
2742
|
+
t && v.value.add(S(t.data));
|
|
2776
2743
|
}
|
|
2777
|
-
}), { applying: Me, applyError:
|
|
2744
|
+
}), { applying: Me, applyError: Fe, hasPendingChanges: Le, movedCount: Re, reorderMode: k, enterReorderMode: Be, cancelReorderMode: He, applyReorder: Ue } = ke({
|
|
2778
2745
|
mode: c,
|
|
2779
|
-
snapshot:
|
|
2780
|
-
movedKeys:
|
|
2746
|
+
snapshot: ie,
|
|
2747
|
+
movedKeys: ae,
|
|
2781
2748
|
modelValue: s,
|
|
2782
|
-
cloneModel: (e) =>
|
|
2749
|
+
cloneModel: (e) => Pe(e),
|
|
2783
2750
|
applyModel: (e) => {
|
|
2784
2751
|
s.value = e;
|
|
2785
2752
|
},
|
|
2786
2753
|
canEnterReorder: ve,
|
|
2787
2754
|
onEnter: () => {
|
|
2788
|
-
|
|
2789
|
-
for (let e of
|
|
2790
|
-
|
|
2791
|
-
|
|
2755
|
+
oe.value = /* @__PURE__ */ new Set(), se.value = /* @__PURE__ */ new Set(), O();
|
|
2756
|
+
for (let e of nt.value) v.value.add(e);
|
|
2757
|
+
Rt(() => {
|
|
2758
|
+
Ye.value && ht();
|
|
2792
2759
|
});
|
|
2793
2760
|
},
|
|
2794
2761
|
onExternalEnter: () => {
|
|
2795
|
-
|
|
2762
|
+
oe.value = /* @__PURE__ */ new Set(), se.value = /* @__PURE__ */ new Set(), O();
|
|
2796
2763
|
},
|
|
2797
2764
|
onCancel: () => {
|
|
2798
|
-
for (let e of
|
|
2799
|
-
for (let e of
|
|
2800
|
-
|
|
2765
|
+
for (let e of oe.value) w.restoreDeleted(e);
|
|
2766
|
+
for (let e of se.value) w.deleteItem(e, { trackDeleted: !1 });
|
|
2767
|
+
oe.value = /* @__PURE__ */ new Set(), se.value = /* @__PURE__ */ new Set(), lt();
|
|
2801
2768
|
},
|
|
2802
2769
|
onApplyEnd: () => {
|
|
2803
|
-
|
|
2770
|
+
oe.value = /* @__PURE__ */ new Set(), se.value = /* @__PURE__ */ new Set(), lt();
|
|
2804
2771
|
},
|
|
2805
2772
|
onReorderApply: (e) => i.onReorderApply?.(e),
|
|
2806
2773
|
emit: {
|
|
@@ -2810,40 +2777,40 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2810
2777
|
reorderApplyError: (e) => o("reorder-apply-error", e),
|
|
2811
2778
|
reorderEnd: () => o("reorder-end")
|
|
2812
2779
|
}
|
|
2813
|
-
}),
|
|
2780
|
+
}), We = j(() => Re.value + oe.value.size), Ge = j(() => Le.value || oe.value.size > 0), qe = j(() => _e.value && i.showAddButton && !k.value), Ye = j(() => k.value && !h.value && !i.disableDrag), Xe = j(() => i.addLabel ?? l("common.sortable.add")), Ze = j(() => i.emptyTitle ?? l("common.sortable.emptyTitle")), Qe = j(() => i.deleteConfirmTitle ?? l("common.sortable.deleteConfirmTitle")), $e = j(() => i.deleteConfirmText ?? (i.deleteMode === "immediate" ? l("common.sortable.deleteConfirmText") : l("common.sortable.deleteConfirmTextDeferred"))), et = j(() => !i.readonly && i.showReorderToggle && !k.value && he.value > 0), tt = j(() => !!i.title && m.value), nt = j(() => {
|
|
2814
2781
|
let e = [], t = (n) => {
|
|
2815
|
-
for (let r of n) r.children && r.children.length > 0 && (e.push(
|
|
2782
|
+
for (let r of n) r.children && r.children.length > 0 && (e.push(S(r.data)), t(r.children));
|
|
2816
2783
|
};
|
|
2817
2784
|
return t(s.value.children), e;
|
|
2818
|
-
}),
|
|
2819
|
-
if (
|
|
2820
|
-
else for (let e of
|
|
2821
|
-
},
|
|
2822
|
-
for (let e of
|
|
2785
|
+
}), rt = j(() => nt.value.length > 0 && nt.value.every((e) => v.value.has(e))), it = j(() => !k.value && nt.value.length > 0), at = () => {
|
|
2786
|
+
if (rt.value) for (let e of nt.value) v.value.delete(e);
|
|
2787
|
+
else for (let e of nt.value) v.value.add(e);
|
|
2788
|
+
}, ot = j(() => !!(i.title || d.header || d["reorder-toggle"] || et.value || it.value || k.value)), st = V([]), ct = V(0), lt = () => {
|
|
2789
|
+
for (let e of st.value) try {
|
|
2823
2790
|
e.stop();
|
|
2824
2791
|
} catch {}
|
|
2825
|
-
|
|
2826
|
-
},
|
|
2792
|
+
st.value = [];
|
|
2793
|
+
}, ut = V(null), dt = (e, t) => {
|
|
2827
2794
|
let n = document.elementFromPoint(e, t);
|
|
2828
2795
|
if (!n) return null;
|
|
2829
2796
|
let r = n.closest(".a-le-row-wrapper");
|
|
2830
|
-
if (!r || !
|
|
2831
|
-
let i =
|
|
2797
|
+
if (!r || !D.value || !D.value.contains(r)) return null;
|
|
2798
|
+
let i = gt(r.getAttribute("data-id"));
|
|
2832
2799
|
if (i === null) return null;
|
|
2833
|
-
let a =
|
|
2800
|
+
let a = pe.value.find((e) => e.key === i);
|
|
2834
2801
|
return a ? {
|
|
2835
2802
|
el: r,
|
|
2836
2803
|
viewItem: a
|
|
2837
2804
|
} : null;
|
|
2838
|
-
},
|
|
2839
|
-
if (!
|
|
2840
|
-
let n =
|
|
2805
|
+
}, ft = (e, t) => {
|
|
2806
|
+
if (!ut.value || !D.value) return;
|
|
2807
|
+
let n = dt(e, t);
|
|
2841
2808
|
if (!n) {
|
|
2842
|
-
|
|
2809
|
+
ut.value.instruction = null;
|
|
2843
2810
|
return;
|
|
2844
2811
|
}
|
|
2845
|
-
let r =
|
|
2846
|
-
|
|
2812
|
+
let r = D.value.getBoundingClientRect(), a = (n.el.querySelector(":scope > .a-le-row") ?? n.el).getBoundingClientRect();
|
|
2813
|
+
ut.value.instruction = fi({
|
|
2847
2814
|
pointer: {
|
|
2848
2815
|
x: e,
|
|
2849
2816
|
y: t
|
|
@@ -2856,27 +2823,27 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2856
2823
|
siblingIndex: n.viewItem.siblingIndex,
|
|
2857
2824
|
siblingCount: n.viewItem.siblingCount
|
|
2858
2825
|
},
|
|
2859
|
-
sourceKey:
|
|
2860
|
-
sourceSubtreeDepth:
|
|
2861
|
-
viewItems:
|
|
2826
|
+
sourceKey: ut.value.sourceKey,
|
|
2827
|
+
sourceSubtreeDepth: ut.value.sourceSubtreeDepth,
|
|
2828
|
+
viewItems: pe.value,
|
|
2862
2829
|
maxDepth: i.maxDepth,
|
|
2863
2830
|
indentPx: Hi,
|
|
2864
2831
|
containerLeft: r.left,
|
|
2865
2832
|
containerPaddingLeft: Ui
|
|
2866
2833
|
});
|
|
2867
|
-
},
|
|
2868
|
-
|
|
2869
|
-
},
|
|
2834
|
+
}, pt = (e) => {
|
|
2835
|
+
ft(e.clientX, e.clientY);
|
|
2836
|
+
}, mt = (e, t) => {
|
|
2870
2837
|
if (!w.moveTo(t, e.parentKey, e.index)) {
|
|
2871
|
-
f("common.sortable.error.maxDeepExceed"),
|
|
2838
|
+
f("common.sortable.error.maxDeepExceed"), ct.value++, Rt(() => ht());
|
|
2872
2839
|
return;
|
|
2873
2840
|
}
|
|
2874
2841
|
de(t), e.makeChild && e.parentKey !== null && v.value.add(e.parentKey);
|
|
2875
|
-
},
|
|
2876
|
-
if (
|
|
2877
|
-
let e = Array.from(
|
|
2842
|
+
}, ht = () => {
|
|
2843
|
+
if (lt(), !Ye.value || !D.value) return;
|
|
2844
|
+
let e = Array.from(D.value.querySelectorAll("." + Vi));
|
|
2878
2845
|
for (let t of e) {
|
|
2879
|
-
let e =
|
|
2846
|
+
let e = Nt(t, [], {
|
|
2880
2847
|
group: {
|
|
2881
2848
|
name: "a-nested",
|
|
2882
2849
|
pull: !0,
|
|
@@ -2884,73 +2851,73 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2884
2851
|
},
|
|
2885
2852
|
handle: ".a-le-drag-handle",
|
|
2886
2853
|
animation: 0,
|
|
2887
|
-
ghostClass:
|
|
2888
|
-
chosenClass:
|
|
2889
|
-
dragClass:
|
|
2854
|
+
ghostClass: Ie,
|
|
2855
|
+
chosenClass: bt,
|
|
2856
|
+
dragClass: Ne,
|
|
2890
2857
|
fallbackOnBody: !0,
|
|
2891
2858
|
forceFallback: !0,
|
|
2892
2859
|
fallbackTolerance: 3,
|
|
2893
2860
|
onStart: (e) => {
|
|
2894
|
-
let t = e.item, n =
|
|
2861
|
+
let t = e.item, n = gt(t.getAttribute("data-id"));
|
|
2895
2862
|
if (n === null) return;
|
|
2896
2863
|
let r = w.findNode(n).node, i = r ? w.calculateSubtreeDepth(r) : 1;
|
|
2897
|
-
|
|
2864
|
+
ut.value = {
|
|
2898
2865
|
sourceKey: n,
|
|
2899
2866
|
sourceSubtreeDepth: i,
|
|
2900
2867
|
instruction: null
|
|
2901
|
-
}, document.addEventListener("pointermove",
|
|
2868
|
+
}, document.addEventListener("pointermove", pt, { passive: !0 });
|
|
2902
2869
|
},
|
|
2903
2870
|
onMove: (e) => {
|
|
2904
2871
|
let t = e.originalEvent;
|
|
2905
2872
|
if (t) {
|
|
2906
|
-
if ("clientX" in t && "clientY" in t)
|
|
2873
|
+
if ("clientX" in t && "clientY" in t) ft(t.clientX, t.clientY);
|
|
2907
2874
|
else if ("touches" in t) {
|
|
2908
2875
|
let e = t;
|
|
2909
|
-
e.touches.length > 0 &&
|
|
2876
|
+
e.touches.length > 0 && ft(e.touches[0].clientX, e.touches[0].clientY);
|
|
2910
2877
|
}
|
|
2911
2878
|
}
|
|
2912
2879
|
return !1;
|
|
2913
2880
|
},
|
|
2914
2881
|
onEnd: () => {
|
|
2915
|
-
document.removeEventListener("pointermove",
|
|
2916
|
-
let e =
|
|
2917
|
-
if (
|
|
2882
|
+
document.removeEventListener("pointermove", pt);
|
|
2883
|
+
let e = ut.value;
|
|
2884
|
+
if (ut.value = null, !e) return;
|
|
2918
2885
|
let t = e.instruction;
|
|
2919
|
-
t !== null && t.type !== "blocked" &&
|
|
2886
|
+
t !== null && t.type !== "blocked" && mt(t, e.sourceKey);
|
|
2920
2887
|
}
|
|
2921
2888
|
});
|
|
2922
|
-
|
|
2889
|
+
st.value.push(e);
|
|
2923
2890
|
}
|
|
2924
|
-
},
|
|
2891
|
+
}, gt = (e) => {
|
|
2925
2892
|
if (e === null || e === "") return null;
|
|
2926
|
-
let t =
|
|
2893
|
+
let t = Ee(e);
|
|
2927
2894
|
return String(t) === e ? t : e;
|
|
2928
2895
|
};
|
|
2929
|
-
G(() =>
|
|
2930
|
-
|
|
2931
|
-
}), G(() =>
|
|
2932
|
-
|
|
2933
|
-
}), G(() =>
|
|
2934
|
-
|
|
2896
|
+
G(() => Ye.value, () => {
|
|
2897
|
+
Ye.value ? Rt(() => ht()) : lt();
|
|
2898
|
+
}), G(() => ct.value, () => {
|
|
2899
|
+
Ye.value && Rt(() => ht());
|
|
2900
|
+
}), G(() => pe.value.map((e) => e.key).join("|"), () => {
|
|
2901
|
+
Ye.value && Rt(() => ht());
|
|
2902
|
+
}), Ut(() => {
|
|
2903
|
+
Ye.value && ht();
|
|
2935
2904
|
}), Ht(() => {
|
|
2936
|
-
|
|
2937
|
-
}), Vt(() => {
|
|
2938
|
-
ct(), document.removeEventListener("pointermove", ft);
|
|
2905
|
+
lt(), document.removeEventListener("pointermove", pt);
|
|
2939
2906
|
});
|
|
2940
|
-
let
|
|
2941
|
-
let e =
|
|
2942
|
-
if (!e || e.instruction === null || !
|
|
2907
|
+
let _t = j(() => {
|
|
2908
|
+
let e = ut.value;
|
|
2909
|
+
if (!e || e.instruction === null || !D.value) return null;
|
|
2943
2910
|
let t = e.instruction;
|
|
2944
2911
|
if (t.type === "blocked") return null;
|
|
2945
|
-
let n =
|
|
2912
|
+
let n = D.value.querySelector(`.a-le-row-wrapper[data-id="${CSS.escape(String(t.refKey))}"]`);
|
|
2946
2913
|
if (!n) return null;
|
|
2947
|
-
let r = n.querySelector(":scope > .a-le-row"), i =
|
|
2914
|
+
let r = n.querySelector(":scope > .a-le-row"), i = D.value.getBoundingClientRect(), a = (r ?? n).getBoundingClientRect(), o = Ui + t.depth * Hi, s = t.refEdge === "top" ? a.top - i.top : a.bottom - i.top, c = {
|
|
2948
2915
|
top: s,
|
|
2949
2916
|
left: o,
|
|
2950
2917
|
right: 16
|
|
2951
2918
|
}, l = null;
|
|
2952
2919
|
if (t.levelRowKey !== null) {
|
|
2953
|
-
let e =
|
|
2920
|
+
let e = D.value.querySelector(`.a-le-row-wrapper[data-id="${CSS.escape(String(t.levelRowKey))}"]`);
|
|
2954
2921
|
if (e) {
|
|
2955
2922
|
let t = (e.querySelector(":scope > .a-le-row") ?? e).getBoundingClientRect(), n = t.top - i.top + t.height / 2;
|
|
2956
2923
|
n < s && (l = {
|
|
@@ -2964,66 +2931,66 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
2964
2931
|
line: c,
|
|
2965
2932
|
connector: l
|
|
2966
2933
|
};
|
|
2967
|
-
}),
|
|
2968
|
-
|
|
2969
|
-
},
|
|
2970
|
-
|
|
2934
|
+
}), vt = () => {
|
|
2935
|
+
qe.value && (je(), i.factory && w.addItem(), o("add", void 0));
|
|
2936
|
+
}, yt = (e) => {
|
|
2937
|
+
_e.value && (je(), i.factory && w.addAfter(e.key, void 0, e.childrenAllowed), o("add", {
|
|
2971
2938
|
afterId: e.key,
|
|
2972
2939
|
childrenAllowed: e.childrenAllowed
|
|
2973
2940
|
}));
|
|
2974
2941
|
}, xt = (e) => {
|
|
2975
|
-
|
|
2942
|
+
_e.value && e.canAddChild && (je(), v.value.add(e.key), o("add-child", e), i.factory && w.addChild(e.key, void 0, !0), o("add", {
|
|
2976
2943
|
parentId: e.key,
|
|
2977
2944
|
childrenAllowed: !0
|
|
2978
2945
|
}));
|
|
2979
|
-
},
|
|
2980
|
-
if (
|
|
2946
|
+
}, St = (e) => {
|
|
2947
|
+
if (_e.value && !k.value) {
|
|
2981
2948
|
if (Se.value.has(e.key)) {
|
|
2982
2949
|
Qt(e);
|
|
2983
2950
|
return;
|
|
2984
2951
|
}
|
|
2985
|
-
ye.value &&
|
|
2952
|
+
ye.value && Te(e), o("edit", e);
|
|
2986
2953
|
}
|
|
2987
|
-
},
|
|
2954
|
+
}, wt = (e) => {
|
|
2988
2955
|
if (i.disabled || i.loading) return;
|
|
2989
2956
|
let t = e.key, n = v.value.has(t);
|
|
2990
2957
|
n ? v.value.delete(t) : v.value.add(t), o("item-expand", e, !n);
|
|
2991
|
-
},
|
|
2958
|
+
}, Et = (e) => {
|
|
2992
2959
|
if (i.disabled || i.loading) return;
|
|
2993
2960
|
let t = e.key, n = y.value.has(t);
|
|
2994
2961
|
n ? y.value.delete(t) : y.value.add(t), o("item-expand", e, !n);
|
|
2995
|
-
},
|
|
2996
|
-
if (
|
|
2962
|
+
}, Dt = (e) => i.disableRowClick || i.disabled || i.loading || k.value ? !1 : !!(e.editing || e.expanded || !i.readonly && i.showEditButton), kt = (e) => {
|
|
2963
|
+
if (Dt(e)) {
|
|
2997
2964
|
if (e.editing || e.expanded) {
|
|
2998
2965
|
Qt(e);
|
|
2999
2966
|
return;
|
|
3000
2967
|
}
|
|
3001
|
-
i.readonly && be.value ?
|
|
2968
|
+
i.readonly && be.value ? Et(e) : St(e);
|
|
3002
2969
|
}
|
|
3003
|
-
}, { deleteDialog: At, deleteInFlight:
|
|
2970
|
+
}, { deleteDialog: At, deleteInFlight: jt, deleteError: Mt, onDeleteClick: R, onDeleteDialogConfirm: Ft, onDeleteDialogCancel: Lt } = Tt({
|
|
3004
2971
|
onDeleteConfirm: (e) => !i.onDeleteConfirm || i.onDeleteConfirm(e),
|
|
3005
2972
|
onDelete: (e) => i.onDelete?.(e),
|
|
3006
2973
|
onDeleted: (e) => {
|
|
3007
2974
|
Se.value.delete(e.key), Ce.value.delete(e.key), y.value.delete(e.key), v.value.delete(e.key);
|
|
3008
2975
|
let t = i.deleteMode === "deferred";
|
|
3009
|
-
|
|
2976
|
+
k.value && (t ? oe.value.add(e.key) : se.value.add(e.key)), w.deleteItem(e.key, { trackDeleted: t }), o("deleted", e);
|
|
3010
2977
|
},
|
|
3011
2978
|
disableDeleteConfirm: () => i.disableDeleteConfirm
|
|
3012
|
-
}),
|
|
3013
|
-
|
|
3014
|
-
},
|
|
2979
|
+
}), Wt = async (e) => {
|
|
2980
|
+
_e.value && await R(e);
|
|
2981
|
+
}, Kt = async (e) => {
|
|
3015
2982
|
i.onItemSave && await i.onItemSave(e.raw), Oe(e), o("item-saved", e);
|
|
3016
|
-
},
|
|
2983
|
+
}, Jt = (e) => {
|
|
3017
2984
|
De(e);
|
|
3018
2985
|
}, Qt = (e) => {
|
|
3019
2986
|
Ae(e), o("close", e);
|
|
3020
2987
|
}, $t = (e) => {
|
|
3021
2988
|
w.moveUp(e) && de(e);
|
|
3022
|
-
},
|
|
2989
|
+
}, en = (e) => {
|
|
3023
2990
|
w.moveDown(e) && de(e);
|
|
3024
|
-
},
|
|
2991
|
+
}, q = (e) => {
|
|
3025
2992
|
w.moveTop(e) && de(e);
|
|
3026
|
-
},
|
|
2993
|
+
}, J = (e) => {
|
|
3027
2994
|
w.moveBottom(e) && de(e);
|
|
3028
2995
|
}, nn = (e) => {
|
|
3029
2996
|
if (!w.indent(e.key)) {
|
|
@@ -3031,22 +2998,22 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3031
2998
|
return;
|
|
3032
2999
|
}
|
|
3033
3000
|
de(e.key), o("indent", e);
|
|
3034
|
-
},
|
|
3001
|
+
}, rn = (e) => {
|
|
3035
3002
|
w.outdent(e.key) && (de(e.key), o("outdent", e));
|
|
3036
|
-
}, sn = (e) =>
|
|
3003
|
+
}, sn = (e) => u(e, { compactField: i.compactField }), cn = (e, t) => t === void 0 ? null : w.rowState(e, t, Se.value.has(t)), ln = /* @__PURE__ */ new Map(), un = (e) => {
|
|
3037
3004
|
let t = ln.get(e);
|
|
3038
3005
|
return t || (t = {
|
|
3039
3006
|
edit: () => {
|
|
3040
3007
|
let t = Z(e);
|
|
3041
|
-
t &&
|
|
3008
|
+
t && St(t);
|
|
3042
3009
|
},
|
|
3043
3010
|
save: () => {
|
|
3044
3011
|
let t = Z(e);
|
|
3045
|
-
if (t) return
|
|
3012
|
+
if (t) return Kt(t);
|
|
3046
3013
|
},
|
|
3047
3014
|
cancel: () => {
|
|
3048
3015
|
let t = Z(e);
|
|
3049
|
-
t &&
|
|
3016
|
+
t && Jt(t);
|
|
3050
3017
|
},
|
|
3051
3018
|
close: () => {
|
|
3052
3019
|
let t = Z(e);
|
|
@@ -3054,11 +3021,11 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3054
3021
|
},
|
|
3055
3022
|
delete: async () => {
|
|
3056
3023
|
let t = Z(e);
|
|
3057
|
-
t && await
|
|
3024
|
+
t && await Wt(t);
|
|
3058
3025
|
},
|
|
3059
3026
|
addAfter: () => {
|
|
3060
3027
|
let t = Z(e);
|
|
3061
|
-
t &&
|
|
3028
|
+
t && yt(t);
|
|
3062
3029
|
},
|
|
3063
3030
|
addChild: () => {
|
|
3064
3031
|
let t = Z(e);
|
|
@@ -3066,28 +3033,28 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3066
3033
|
},
|
|
3067
3034
|
toggleExpand: () => {
|
|
3068
3035
|
let t = Z(e);
|
|
3069
|
-
t &&
|
|
3036
|
+
t && wt(t);
|
|
3070
3037
|
},
|
|
3071
3038
|
toggleDetail: () => {
|
|
3072
3039
|
let t = Z(e);
|
|
3073
|
-
t &&
|
|
3040
|
+
t && Et(t);
|
|
3074
3041
|
},
|
|
3075
3042
|
moveUp: () => $t(e),
|
|
3076
|
-
moveDown: () =>
|
|
3077
|
-
moveTop: () =>
|
|
3078
|
-
moveBottom: () =>
|
|
3043
|
+
moveDown: () => en(e),
|
|
3044
|
+
moveTop: () => q(e),
|
|
3045
|
+
moveBottom: () => J(e),
|
|
3079
3046
|
indent: () => {
|
|
3080
3047
|
let t = Z(e);
|
|
3081
3048
|
t && nn(t);
|
|
3082
3049
|
},
|
|
3083
3050
|
outdent: () => {
|
|
3084
3051
|
let t = Z(e);
|
|
3085
|
-
t &&
|
|
3052
|
+
t && rn(t);
|
|
3086
3053
|
},
|
|
3087
3054
|
update: (t) => w.updateItem(e, t)
|
|
3088
3055
|
}, ln.set(e, t)), t;
|
|
3089
3056
|
};
|
|
3090
|
-
G(() =>
|
|
3057
|
+
G(() => pe.value, (e) => {
|
|
3091
3058
|
if (ln.size === 0) return;
|
|
3092
3059
|
let t = new Set(e.map((e) => e.key));
|
|
3093
3060
|
for (let e of ln.keys()) t.has(e) || ln.delete(e);
|
|
@@ -3116,34 +3083,34 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3116
3083
|
dirty: e.dirty,
|
|
3117
3084
|
unsaved: e.unsaved,
|
|
3118
3085
|
moved: e.moved,
|
|
3119
|
-
reorderMode:
|
|
3086
|
+
reorderMode: k.value,
|
|
3120
3087
|
canMoveUp: !e.firstInParent,
|
|
3121
3088
|
canMoveDown: !e.lastInParent,
|
|
3122
3089
|
canIndent: e.canIndent,
|
|
3123
3090
|
canOutdent: e.canOutdent,
|
|
3124
3091
|
canAddChild: e.canAddChild,
|
|
3125
3092
|
touch: h.value,
|
|
3126
|
-
stateKeyPrefix:
|
|
3127
|
-
actions:
|
|
3093
|
+
stateKeyPrefix: T.prefixFor(e.key),
|
|
3094
|
+
actions: un(e.key)
|
|
3128
3095
|
}), pn = j(() => ({
|
|
3129
3096
|
applying: Me.value,
|
|
3130
|
-
hasPendingChanges:
|
|
3131
|
-
movedCount:
|
|
3132
|
-
error:
|
|
3097
|
+
hasPendingChanges: Ge.value,
|
|
3098
|
+
movedCount: We.value,
|
|
3099
|
+
error: Fe.value,
|
|
3133
3100
|
actions: {
|
|
3134
|
-
apply:
|
|
3135
|
-
cancel:
|
|
3101
|
+
apply: Ue,
|
|
3102
|
+
cancel: He
|
|
3136
3103
|
}
|
|
3137
3104
|
})), mn = j(() => ({
|
|
3138
3105
|
mode: c.value,
|
|
3139
3106
|
disabled: !ve.value,
|
|
3140
|
-
hasPendingChanges:
|
|
3107
|
+
hasPendingChanges: Le.value,
|
|
3141
3108
|
actions: {
|
|
3142
|
-
enterReorderMode:
|
|
3143
|
-
exitReorderMode:
|
|
3109
|
+
enterReorderMode: Be,
|
|
3110
|
+
exitReorderMode: He
|
|
3144
3111
|
}
|
|
3145
|
-
})), hn = j(() => new Set(
|
|
3146
|
-
viewItems: j(() =>
|
|
3112
|
+
})), hn = j(() => new Set(nt.value)), Z = (e) => pe.value.find((t) => t.key === e), gn = r({
|
|
3113
|
+
viewItems: j(() => pe.value.map((e) => ({
|
|
3147
3114
|
key: e.key,
|
|
3148
3115
|
expanded: e.childrenExpanded,
|
|
3149
3116
|
canExpand: hn.value.has(e.key),
|
|
@@ -3151,49 +3118,49 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3151
3118
|
canOutdent: !0
|
|
3152
3119
|
}))),
|
|
3153
3120
|
variant: "nested",
|
|
3154
|
-
isReorderMode:
|
|
3155
|
-
disabled: j(() => !
|
|
3121
|
+
isReorderMode: k,
|
|
3122
|
+
disabled: j(() => !_e.value),
|
|
3156
3123
|
isEditing: (e) => Se.value.has(e),
|
|
3157
3124
|
onToggleEdit: (e) => {
|
|
3158
3125
|
let t = Z(e);
|
|
3159
|
-
t &&
|
|
3126
|
+
t && St(t);
|
|
3160
3127
|
},
|
|
3161
3128
|
onCancelEdit: (e) => {
|
|
3162
3129
|
let t = Z(e);
|
|
3163
3130
|
t && Qt(t);
|
|
3164
3131
|
},
|
|
3165
3132
|
onMoveUp: (e) => $t(e),
|
|
3166
|
-
onMoveDown: (e) =>
|
|
3167
|
-
onMoveTop: (e) =>
|
|
3168
|
-
onMoveBottom: (e) =>
|
|
3133
|
+
onMoveDown: (e) => en(e),
|
|
3134
|
+
onMoveTop: (e) => q(e),
|
|
3135
|
+
onMoveBottom: (e) => J(e),
|
|
3169
3136
|
onIndent: (e) => {
|
|
3170
3137
|
let t = Z(e);
|
|
3171
3138
|
t && nn(t);
|
|
3172
3139
|
},
|
|
3173
3140
|
onOutdent: (e) => {
|
|
3174
3141
|
let t = Z(e);
|
|
3175
|
-
t &&
|
|
3142
|
+
t && rn(t);
|
|
3176
3143
|
},
|
|
3177
3144
|
onToggleChildren: (e) => {
|
|
3178
3145
|
let t = Z(e);
|
|
3179
|
-
t &&
|
|
3146
|
+
t && wt(t);
|
|
3180
3147
|
},
|
|
3181
|
-
onCancelReorder: () =>
|
|
3182
|
-
}),
|
|
3183
|
-
let e =
|
|
3148
|
+
onCancelReorder: () => He()
|
|
3149
|
+
}), Q = V(!1), $ = qt(null), _n = j(() => {
|
|
3150
|
+
let e = $.value;
|
|
3184
3151
|
if (!e) return null;
|
|
3185
|
-
let t = w.findNode(e.key), n = t.parent?.children ?? s.value.children, r = n.findIndex((t) =>
|
|
3152
|
+
let t = w.findNode(e.key), n = t.parent?.children ?? s.value.children, r = n.findIndex((t) => S(t.data) === e.key);
|
|
3186
3153
|
return {
|
|
3187
|
-
parentId: t.parent ?
|
|
3154
|
+
parentId: t.parent ? S(t.parent.data) : null,
|
|
3188
3155
|
total: n.length,
|
|
3189
3156
|
currentIndex: r
|
|
3190
3157
|
};
|
|
3191
|
-
}), vn = j(() =>
|
|
3192
|
-
i.showMoveToPosition && (
|
|
3158
|
+
}), vn = j(() => $.value ? sn($.value.raw) : ""), yn = (e) => {
|
|
3159
|
+
i.showMoveToPosition && ($.value = e, Q.value = !0);
|
|
3193
3160
|
}, bn = (e) => {
|
|
3194
|
-
let t = _n.value, n =
|
|
3195
|
-
|
|
3196
|
-
}, xn = V(!1), Sn =
|
|
3161
|
+
let t = _n.value, n = $.value;
|
|
3162
|
+
$.value = null, t && n && e !== t.currentIndex && w.moveTo(n.key, t.parentId, e) && de(n.key);
|
|
3163
|
+
}, xn = V(!1), Sn = qt(null), Cn = (e) => {
|
|
3197
3164
|
i.showChangeParent && (Sn.value = e, xn.value = !0);
|
|
3198
3165
|
}, wn = (e, t) => {
|
|
3199
3166
|
let n = Sn.value;
|
|
@@ -3203,10 +3170,10 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3203
3170
|
let i = t === "first" ? 0 : r;
|
|
3204
3171
|
w.moveTo(n.key, e, i) && (de(n.key), e !== null && v.value.add(e));
|
|
3205
3172
|
}, Tn = j(() => ({
|
|
3206
|
-
reorderMode:
|
|
3173
|
+
reorderMode: k.value,
|
|
3207
3174
|
readonly: i.readonly,
|
|
3208
|
-
canInteract:
|
|
3209
|
-
dragEnabled:
|
|
3175
|
+
canInteract: _e.value,
|
|
3176
|
+
dragEnabled: Ye.value,
|
|
3210
3177
|
showExpandToggle: i.showExpandToggle,
|
|
3211
3178
|
showEditButton: i.showEditButton,
|
|
3212
3179
|
showDeleteButton: i.showDeleteButton,
|
|
@@ -3216,43 +3183,43 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3216
3183
|
showChangeParent: i.showChangeParent,
|
|
3217
3184
|
showInlineSaveFooter: xe.value,
|
|
3218
3185
|
statusField: i.statusField,
|
|
3219
|
-
effectiveCloseVariant:
|
|
3220
|
-
keyboardNav:
|
|
3221
|
-
isRowClickable:
|
|
3186
|
+
effectiveCloseVariant: _.value,
|
|
3187
|
+
keyboardNav: gn,
|
|
3188
|
+
isRowClickable: Dt,
|
|
3222
3189
|
resolveCompactText: sn,
|
|
3223
3190
|
resolveValidation: (e, t) => cn(e, t),
|
|
3224
3191
|
buildSlotProps: fn
|
|
3225
3192
|
})), En = {
|
|
3226
3193
|
onRowClick: kt,
|
|
3227
|
-
onChevronClick:
|
|
3228
|
-
onEditClick:
|
|
3229
|
-
onDeleteClick:
|
|
3194
|
+
onChevronClick: wt,
|
|
3195
|
+
onEditClick: St,
|
|
3196
|
+
onDeleteClick: Wt,
|
|
3230
3197
|
onCloseClick: Qt,
|
|
3231
|
-
onSaveClick:
|
|
3232
|
-
onCancelClick:
|
|
3233
|
-
onAddAfterClick:
|
|
3198
|
+
onSaveClick: Kt,
|
|
3199
|
+
onCancelClick: Jt,
|
|
3200
|
+
onAddAfterClick: yt,
|
|
3234
3201
|
onAddChildClick: xt,
|
|
3235
3202
|
moveUp: (e) => $t(e),
|
|
3236
|
-
moveDown: (e) =>
|
|
3237
|
-
moveTop: (e) =>
|
|
3238
|
-
moveBottom: (e) =>
|
|
3203
|
+
moveDown: (e) => en(e),
|
|
3204
|
+
moveTop: (e) => q(e),
|
|
3205
|
+
moveBottom: (e) => J(e),
|
|
3239
3206
|
indent: nn,
|
|
3240
|
-
outdent:
|
|
3207
|
+
outdent: rn,
|
|
3241
3208
|
openMoveToPosition: yn,
|
|
3242
3209
|
openChangeParent: Cn
|
|
3243
|
-
}, Dn = j(() =>
|
|
3210
|
+
}, Dn = j(() => pe.value.filter((e) => e.parentKey === null)), On = (e, t, n) => (w.addItem(t, {
|
|
3244
3211
|
afterId: e ?? void 0,
|
|
3245
3212
|
childrenAllowed: n
|
|
3246
|
-
}),
|
|
3213
|
+
}), Rt(() => w.commit()), s.value), kn = (e, t, n) => (v.value.add(e), w.addItem(t, {
|
|
3247
3214
|
parentId: e,
|
|
3248
3215
|
asFirstChild: !0,
|
|
3249
3216
|
childrenAllowed: n
|
|
3250
|
-
}),
|
|
3251
|
-
w.deleteItem(e), Se.value.delete(e), Ce.value.delete(e), y.value.delete(e), v.value.delete(e),
|
|
3217
|
+
}), Rt(() => w.commit()), s.value), An = (e) => {
|
|
3218
|
+
w.deleteItem(e), Se.value.delete(e), Ce.value.delete(e), y.value.delete(e), v.value.delete(e), Rt(() => w.commit());
|
|
3252
3219
|
}, jn = (e, t, n = null, r = null, i = null) => {
|
|
3253
|
-
w.updateItem(e, t),
|
|
3220
|
+
w.updateItem(e, t), Rt(() => w.commit());
|
|
3254
3221
|
}, Mn = w.unsavedCount, Nn = () => {
|
|
3255
|
-
w.commit(),
|
|
3222
|
+
w.commit(), ae.value = /* @__PURE__ */ new Set(), O();
|
|
3256
3223
|
};
|
|
3257
3224
|
fe(() => i.unsavedSectionLabel && !i.disableUnsaved ? {
|
|
3258
3225
|
label: i.unsavedSectionLabel,
|
|
@@ -3260,11 +3227,11 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3260
3227
|
} : []);
|
|
3261
3228
|
let Pn = () => le(w, (e) => {
|
|
3262
3229
|
let t = w.findNode(e).parent;
|
|
3263
|
-
for (; t;) v.value.add(
|
|
3230
|
+
for (; t;) v.value.add(S(t.data)), t = w.findNode(S(t.data)).parent;
|
|
3264
3231
|
let n = w.viewItems.value.find((t) => t.key === e);
|
|
3265
|
-
n &&
|
|
3232
|
+
n && Te(n);
|
|
3266
3233
|
});
|
|
3267
|
-
return
|
|
3234
|
+
return Ot({
|
|
3268
3235
|
hasErrors: w.hasErrors,
|
|
3269
3236
|
validationScope: i.validationScope,
|
|
3270
3237
|
validateProvided: i.validate !== void 0,
|
|
@@ -3276,14 +3243,14 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3276
3243
|
addChildToId: kn,
|
|
3277
3244
|
removeById: An,
|
|
3278
3245
|
updateData: jn,
|
|
3279
|
-
resetDirtyBaseline:
|
|
3246
|
+
resetDirtyBaseline: ce,
|
|
3280
3247
|
hasUnsavedChanges: w.hasUnsaved,
|
|
3281
3248
|
unsavedCount: Mn,
|
|
3282
3249
|
clearUnsavedState: Nn,
|
|
3283
|
-
viewItems:
|
|
3284
|
-
enterReorderMode:
|
|
3285
|
-
cancelReorderMode:
|
|
3286
|
-
applyReorder:
|
|
3250
|
+
viewItems: re,
|
|
3251
|
+
enterReorderMode: Be,
|
|
3252
|
+
cancelReorderMode: He,
|
|
3253
|
+
applyReorder: Ue,
|
|
3287
3254
|
expand: (e) => v.value.add(e),
|
|
3288
3255
|
collapse: (e) => v.value.delete(e),
|
|
3289
3256
|
toggleExpand: (e) => {
|
|
@@ -3294,20 +3261,20 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3294
3261
|
}), (t, n) => (B(), P("div", {
|
|
3295
3262
|
ref_key: "rootEl",
|
|
3296
3263
|
ref: p,
|
|
3297
|
-
class:
|
|
3264
|
+
class: zt(["a-nested-list-editor", [`a-nested-list-editor--mode-${c.value}`, {
|
|
3298
3265
|
"a-nested-list-editor--readonly": e.readonly,
|
|
3299
3266
|
"a-nested-list-editor--disabled": e.disabled,
|
|
3300
3267
|
"a-nested-list-editor--touch": W(h),
|
|
3301
|
-
"a-nested-list-editor--drag-enabled":
|
|
3268
|
+
"a-nested-list-editor--drag-enabled": Ye.value
|
|
3302
3269
|
}]])
|
|
3303
3270
|
}, [
|
|
3304
3271
|
F("div", Ni, [
|
|
3305
|
-
|
|
3306
|
-
L(
|
|
3307
|
-
class:
|
|
3308
|
-
"has-pending-changes":
|
|
3309
|
-
"pending-count":
|
|
3310
|
-
error: W(
|
|
3272
|
+
ot.value ? (B(), P("div", Pi, [H(t.$slots, "header", z({ title: e.title }, mn.value), () => [e.title ? (B(), P("h3", Fi, U(e.title), 1)) : N("", !0), F("div", Ii, [W(k) ? H(t.$slots, "reorder-toolbar", Bt(Pt(pn.value)), () => [
|
|
3273
|
+
L(Ve, {
|
|
3274
|
+
class: zt({ "a-le-toolbar-status--pending": Ge.value }),
|
|
3275
|
+
"has-pending-changes": Ge.value,
|
|
3276
|
+
"pending-count": We.value,
|
|
3277
|
+
error: W(Fe)
|
|
3311
3278
|
}, null, 8, [
|
|
3312
3279
|
"class",
|
|
3313
3280
|
"has-pending-changes",
|
|
@@ -3318,7 +3285,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3318
3285
|
variant: "text",
|
|
3319
3286
|
size: "small",
|
|
3320
3287
|
disabled: W(Me),
|
|
3321
|
-
onClick: W(
|
|
3288
|
+
onClick: W(He)
|
|
3322
3289
|
}, {
|
|
3323
3290
|
default: K(() => [I(U(W(l)("common.sortable.reorderCancel")), 1)]),
|
|
3324
3291
|
_: 1
|
|
@@ -3329,8 +3296,8 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3329
3296
|
size: "small",
|
|
3330
3297
|
"prepend-icon": "mdi-check",
|
|
3331
3298
|
loading: W(Me),
|
|
3332
|
-
disabled: W(Me) || !
|
|
3333
|
-
onClick: W(
|
|
3299
|
+
disabled: W(Me) || !Ge.value,
|
|
3300
|
+
onClick: W(Ue)
|
|
3334
3301
|
}, {
|
|
3335
3302
|
default: K(() => [I(U(W(l)("common.sortable.reorderApply")), 1)]),
|
|
3336
3303
|
_: 1
|
|
@@ -3339,46 +3306,46 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3339
3306
|
"disabled",
|
|
3340
3307
|
"onClick"
|
|
3341
3308
|
])
|
|
3342
|
-
], void 0, 0) : (B(), P(A, { key: 1 }, [
|
|
3309
|
+
], void 0, 0) : (B(), P(A, { key: 1 }, [it.value && tt.value ? (B(), M(X, {
|
|
3343
3310
|
key: 0,
|
|
3344
3311
|
variant: "tonal",
|
|
3345
3312
|
color: "primary",
|
|
3346
3313
|
icon: "",
|
|
3347
3314
|
size: "x-small",
|
|
3348
|
-
onClick:
|
|
3315
|
+
onClick: at
|
|
3349
3316
|
}, {
|
|
3350
3317
|
default: K(() => [L(Y, {
|
|
3351
|
-
icon:
|
|
3318
|
+
icon: rt.value ? "mdi-unfold-less-horizontal" : "mdi-unfold-more-horizontal",
|
|
3352
3319
|
size: "18"
|
|
3353
|
-
}, null, 8, ["icon"]), L(
|
|
3320
|
+
}, null, 8, ["icon"]), L(dn, {
|
|
3354
3321
|
activator: "parent",
|
|
3355
3322
|
location: "bottom",
|
|
3356
|
-
text:
|
|
3323
|
+
text: rt.value ? W(l)("common.sortable.collapseAll") : W(l)("common.sortable.expandAll")
|
|
3357
3324
|
}, null, 8, ["text"])]),
|
|
3358
3325
|
_: 1
|
|
3359
|
-
})) :
|
|
3326
|
+
})) : it.value ? (B(), M(X, {
|
|
3360
3327
|
key: 1,
|
|
3361
3328
|
variant: "tonal",
|
|
3362
3329
|
color: "primary",
|
|
3363
3330
|
size: "small",
|
|
3364
|
-
"prepend-icon":
|
|
3365
|
-
onClick:
|
|
3331
|
+
"prepend-icon": rt.value ? "mdi-unfold-less-horizontal" : "mdi-unfold-more-horizontal",
|
|
3332
|
+
onClick: at
|
|
3366
3333
|
}, {
|
|
3367
|
-
default: K(() => [I(U(
|
|
3334
|
+
default: K(() => [I(U(rt.value ? W(l)("common.sortable.collapseAll") : W(l)("common.sortable.expandAll")), 1)]),
|
|
3368
3335
|
_: 1
|
|
3369
|
-
}, 8, ["prepend-icon"])) : N("", !0),
|
|
3336
|
+
}, 8, ["prepend-icon"])) : N("", !0), et.value ? H(t.$slots, "reorder-toggle", Bt(Pt(mn.value)), () => [tt.value ? (B(), M(X, {
|
|
3370
3337
|
key: 0,
|
|
3371
3338
|
variant: "tonal",
|
|
3372
3339
|
color: "primary",
|
|
3373
3340
|
icon: "",
|
|
3374
3341
|
size: "x-small",
|
|
3375
3342
|
disabled: !ve.value,
|
|
3376
|
-
onClick: W(
|
|
3343
|
+
onClick: W(Be)
|
|
3377
3344
|
}, {
|
|
3378
3345
|
default: K(() => [L(Y, {
|
|
3379
3346
|
icon: "mdi-sort",
|
|
3380
3347
|
size: "18"
|
|
3381
|
-
}), L(
|
|
3348
|
+
}), L(dn, {
|
|
3382
3349
|
activator: "parent",
|
|
3383
3350
|
location: "bottom",
|
|
3384
3351
|
text: W(l)("common.sortable.reorder")
|
|
@@ -3391,16 +3358,16 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3391
3358
|
"prepend-icon": "mdi-sort",
|
|
3392
3359
|
size: "small",
|
|
3393
3360
|
disabled: !ve.value,
|
|
3394
|
-
onClick: W(
|
|
3361
|
+
onClick: W(Be)
|
|
3395
3362
|
}, {
|
|
3396
3363
|
default: K(() => [I(U(W(l)("common.sortable.reorder")), 1)]),
|
|
3397
3364
|
_: 1
|
|
3398
3365
|
}, 8, ["disabled", "onClick"]))], void 0, 2) : N("", !0)], 64))])])])) : N("", !0),
|
|
3399
|
-
e.loading ? (B(), P("div", Li, [L(
|
|
3366
|
+
e.loading ? (B(), P("div", Li, [L(on, {
|
|
3400
3367
|
indeterminate: "",
|
|
3401
3368
|
color: "primary",
|
|
3402
3369
|
size: "32"
|
|
3403
|
-
})])) : e.error ? (B(), P("div", Ri, [L(
|
|
3370
|
+
})])) : e.error ? (B(), P("div", Ri, [L(an, {
|
|
3404
3371
|
type: "error",
|
|
3405
3372
|
variant: "tonal",
|
|
3406
3373
|
density: "compact",
|
|
@@ -3408,32 +3375,32 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3408
3375
|
}, {
|
|
3409
3376
|
default: K(() => [I(U(e.error), 1)]),
|
|
3410
3377
|
_: 1
|
|
3411
|
-
})])) :
|
|
3378
|
+
})])) : me.value ? (B(), P("div", zi, [H(t.$slots, "empty", {
|
|
3412
3379
|
readonly: e.readonly,
|
|
3413
3380
|
disabled: e.disabled,
|
|
3414
|
-
actions: { add:
|
|
3415
|
-
}, () => [L(
|
|
3416
|
-
title:
|
|
3417
|
-
"add-label":
|
|
3418
|
-
"can-add":
|
|
3419
|
-
onAdd:
|
|
3381
|
+
actions: { add: vt }
|
|
3382
|
+
}, () => [L(ze, {
|
|
3383
|
+
title: Ze.value,
|
|
3384
|
+
"add-label": Xe.value,
|
|
3385
|
+
"can-add": qe.value,
|
|
3386
|
+
onAdd: vt
|
|
3420
3387
|
}, null, 8, [
|
|
3421
3388
|
"title",
|
|
3422
3389
|
"add-label",
|
|
3423
3390
|
"can-add"
|
|
3424
3391
|
])])])) : (B(), P("div", {
|
|
3425
|
-
key:
|
|
3392
|
+
key: ct.value,
|
|
3426
3393
|
ref_key: "rowsContainer",
|
|
3427
|
-
ref:
|
|
3428
|
-
class:
|
|
3394
|
+
ref: D,
|
|
3395
|
+
class: zt(["a-nested-list-editor__rows", { "a-nested-list-editor__rows--dragging": ut.value !== null }])
|
|
3429
3396
|
}, [F("div", {
|
|
3430
|
-
class:
|
|
3397
|
+
class: zt([Vi, "a-nested-list-editor__group--root"]),
|
|
3431
3398
|
"data-parent-id": ""
|
|
3432
|
-
}, [(B(!0), P(A, null,
|
|
3399
|
+
}, [(B(!0), P(A, null, Gt(Dn.value, (e) => (B(), M(Ai, {
|
|
3433
3400
|
key: String(e.key),
|
|
3434
3401
|
vi: e,
|
|
3435
|
-
"view-items":
|
|
3436
|
-
"drag-state":
|
|
3402
|
+
"view-items": pe.value,
|
|
3403
|
+
"drag-state": ut.value,
|
|
3437
3404
|
context: Tn.value,
|
|
3438
3405
|
callbacks: En
|
|
3439
3406
|
}, {
|
|
@@ -3451,39 +3418,39 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3451
3418
|
"view-items",
|
|
3452
3419
|
"drag-state",
|
|
3453
3420
|
"context"
|
|
3454
|
-
]))), 128))], 2),
|
|
3421
|
+
]))), 128))], 2), _t.value === null ? N("", !0) : (B(), P(A, { key: 0 }, [_t.value.connector === null ? N("", !0) : (B(), P("div", {
|
|
3455
3422
|
key: 0,
|
|
3456
3423
|
class: "a-nested-list-editor__drop-connector",
|
|
3457
|
-
style:
|
|
3458
|
-
left: `${
|
|
3459
|
-
top: `${
|
|
3460
|
-
height: `${
|
|
3424
|
+
style: Vt({
|
|
3425
|
+
left: `${_t.value.connector.left}px`,
|
|
3426
|
+
top: `${_t.value.connector.top}px`,
|
|
3427
|
+
height: `${_t.value.connector.height}px`
|
|
3461
3428
|
})
|
|
3462
3429
|
}, null, 4)), F("div", {
|
|
3463
3430
|
class: "a-nested-list-editor__drop-line",
|
|
3464
|
-
style:
|
|
3465
|
-
top: `${
|
|
3466
|
-
left: `${
|
|
3467
|
-
right: `${
|
|
3431
|
+
style: Vt({
|
|
3432
|
+
top: `${_t.value.line.top}px`,
|
|
3433
|
+
left: `${_t.value.line.left}px`,
|
|
3434
|
+
right: `${_t.value.line.right}px`
|
|
3468
3435
|
})
|
|
3469
3436
|
}, [...n[3] ||= [F("span", { class: "a-nested-list-editor__drop-line-dot" }, null, -1)]], 4)], 64))], 2)),
|
|
3470
|
-
|
|
3437
|
+
qe.value && !e.loading && !e.error && !me.value ? H(t.$slots, "add-button", {
|
|
3471
3438
|
readonly: e.readonly,
|
|
3472
3439
|
disabled: e.disabled,
|
|
3473
|
-
props: { onClick:
|
|
3474
|
-
actions: { add:
|
|
3440
|
+
props: { onClick: vt },
|
|
3441
|
+
actions: { add: vt }
|
|
3475
3442
|
}, () => [F("button", {
|
|
3476
3443
|
type: "button",
|
|
3477
3444
|
class: "a-le-row-add",
|
|
3478
|
-
onClick:
|
|
3445
|
+
onClick: vt
|
|
3479
3446
|
}, [L(Y, {
|
|
3480
3447
|
icon: "mdi-plus",
|
|
3481
3448
|
size: "18"
|
|
3482
|
-
}), F("span", null, U(
|
|
3449
|
+
}), F("span", null, U(Xe.value), 1)])], void 0, 5) : N("", !0)
|
|
3483
3450
|
]),
|
|
3484
3451
|
L(we, {
|
|
3485
|
-
modelValue:
|
|
3486
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
3452
|
+
modelValue: Q.value,
|
|
3453
|
+
"onUpdate:modelValue": n[0] ||= (e) => Q.value = e,
|
|
3487
3454
|
total: _n.value?.total ?? 0,
|
|
3488
3455
|
"current-index": _n.value?.currentIndex ?? 0,
|
|
3489
3456
|
"item-label": vn.value,
|
|
@@ -3499,7 +3466,7 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3499
3466
|
"onUpdate:modelValue": n[1] ||= (e) => xn.value = e,
|
|
3500
3467
|
tree: s.value,
|
|
3501
3468
|
"source-key": Sn.value?.key ?? null,
|
|
3502
|
-
"key-field": W(
|
|
3469
|
+
"key-field": W(x),
|
|
3503
3470
|
"max-depth": e.maxDepth,
|
|
3504
3471
|
"resolve-label": sn,
|
|
3505
3472
|
"calculate-subtree-depth": W(w).calculateSubtreeDepth,
|
|
@@ -3512,17 +3479,17 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3512
3479
|
"max-depth",
|
|
3513
3480
|
"calculate-subtree-depth"
|
|
3514
3481
|
]),
|
|
3515
|
-
L(
|
|
3482
|
+
L(Ct, {
|
|
3516
3483
|
modelValue: W(At),
|
|
3517
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
3518
|
-
title:
|
|
3519
|
-
text:
|
|
3484
|
+
"onUpdate:modelValue": n[2] ||= (e) => It(At) ? At.value = e : null,
|
|
3485
|
+
title: Qe.value,
|
|
3486
|
+
text: $e.value,
|
|
3520
3487
|
"confirm-label": W(l)("common.sortable.delete"),
|
|
3521
3488
|
"cancel-label": W(l)("common.button.cancel"),
|
|
3522
|
-
error: W(
|
|
3523
|
-
"in-flight": W(
|
|
3524
|
-
onConfirm: W(
|
|
3525
|
-
onCancel: W(
|
|
3489
|
+
error: W(Mt),
|
|
3490
|
+
"in-flight": W(jt),
|
|
3491
|
+
onConfirm: W(Ft),
|
|
3492
|
+
onCancel: W(Lt)
|
|
3526
3493
|
}, null, 8, [
|
|
3527
3494
|
"modelValue",
|
|
3528
3495
|
"title",
|
|
@@ -3534,9 +3501,9 @@ var kr = { class: "d-flex flex-column w-100 px-1 align-center" }, Ar = { class:
|
|
|
3534
3501
|
"onConfirm",
|
|
3535
3502
|
"onCancel"
|
|
3536
3503
|
]),
|
|
3537
|
-
F("div", Bi, U(W(
|
|
3538
|
-
n: W(
|
|
3539
|
-
total: W(
|
|
3504
|
+
F("div", Bi, U(W(gn).grabbedKey.value === null ? "" : W(l)("common.sortable.keyboardGrab.status", {
|
|
3505
|
+
n: W(gn).grabbedIndex.value + 1,
|
|
3506
|
+
total: W(gn).totalCount.value
|
|
3540
3507
|
})), 1)
|
|
3541
3508
|
], 2));
|
|
3542
3509
|
}
|
|
@@ -3582,7 +3549,7 @@ function Ki(e, t = {}) {
|
|
|
3582
3549
|
position: e[r]
|
|
3583
3550
|
}));
|
|
3584
3551
|
return s(t), t;
|
|
3585
|
-
}), l = (e) =>
|
|
3552
|
+
}), l = (e) => v(e, {
|
|
3586
3553
|
positionField: r,
|
|
3587
3554
|
positionMultiplier: i
|
|
3588
3555
|
}), u = (t) => {
|
|
@@ -3644,6 +3611,6 @@ function qi() {
|
|
|
3644
3611
|
};
|
|
3645
3612
|
}
|
|
3646
3613
|
//#endregion
|
|
3647
|
-
export {
|
|
3614
|
+
export { An as ADatatableOrdering, Ln as ADatatablePagination, mt as AFilterBooleanSelect, be as AFilterDatetimePicker, b as AFilterInteger, yt as AFilterRemoteAutocomplete, e as AFilterRemoteAutocompleteWithMinimal, it as AFilterString, Se as AFilterTimeInterval, oe as AFilterValueObjectOptionsSelect, rt as AFilterWrapper, Dn as AFilterWrapperSidebar, Te as AFilterWrapperSubjectSelect, vt as AFormRemoteAutocomplete, Ue as AFormRemoteAutocompleteWithCached, oi as AListEditor, Dr as ALogDetailView, dr as ALogListView, Wi as ANestedSortableListEditor, Xe as ASortableListEditor, Br as ASubjectSelect, ht as AUnsavedConfirmDialog, $n as DEFAULT_LOG_PATHS, Mt as DatatablePaginationKey, Ae as FilterConfigKey, At as FilterDataKey, de as FilterInnerConfigKey, s as FilterInnerDataKey, pt as FiltersSelected, Gn as LOG_ENTITY, c as ListEditorStateScopeKey, Xn as LogType, Zn as LogTypeDefault, jt as SharedReorderRegistryKey, Qe as TimeIntervalSpecialOptions, _e as UserAdminConfigLayoutType, m as UserAdminConfigLayoutTypeDefault, S as UserAdminConfigType, dt as UserAdminConfigTypeDefault, ur as applyLogTypeVisibility, Re as buildFilterHash, Wn as createDatatableColumnsConfig, ut as createFilter, nt as createFilterStore, w as createListEditorStateScope, ft as defaultApiErrorLogger, fr as formatJson, st as generateListQuery, Qn as isLogType, He as isRouterSafeHash, p as nextListEditorTempId, Je as provideListEditorStateScope, v as renumberPositions, ye as setApiErrorLogger, te as sortByPosition, ce as sortByPositionDeep, D as useApiCommand, Ge as useApiFetchByIds, St as useApiFetchItems, _t as useApiFetchList, zn as useApiFetchListBatch, Me as useApiQueryBuilder, _ as useApiRequest, qn as useFetchLog, Kn as useFetchLogList, O as useFilterHelpers, Gi as useGuardedDelete, Vn as useJobApi, Ki as useListEditor, ie as useListEditorController, n as useListEditorStateEntry, Yn as useLogDetailActions, lr as useLogFilter, Jn as useLogListActions, er as useLogType, C as useNestedListEditor, ne as useNestedListEditorController, Ke as useNestedListEditorStateEntry, qi as useNestedUnsavedKeys, Oe as usePagination, Or as useSubjectSelect, at as useUnsavedChangesGuard, fe as useUnsavedSection, me as useUserAdminConfigApi, je as useUserAdminConfigFactory };
|
|
3648
3615
|
|
|
3649
3616
|
//# sourceMappingURL=labs.js.map
|