@anzusystems/common-admin 1.47.0-beta.dev-1790102667 → 1.47.0-beta.dev-1790143991
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/labs.d.ts +23 -7
- package/dist/labs.js +802 -805
- package/dist/labs.js.map +1 -1
- package/package.json +1 -1
package/dist/labs.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { $i as e, $n as t, A as n, Ar as r, At as i, B as a, Bn as o, Bt as s, C as c, Cn as l, Ct as u, D as d, Dn as f, Dt as p, E as m, En as h, Et as g, F as _, Fr as v, Ft as y, G as b, Gi as x, Gr as S, Gt as C, H as w, Ht as T, I as ee, Ir as te, It as E, J as D, Jr as O, K as ne, Ki as re, L as ie, Li as ae, Lt as oe, M as se, Mt as ce, N as le, O as ue, Ot as de, P as fe, Q as pe, Qt as me, R as he, Ri as ge, Rr as _e, Rt as ve, S as ye, Sn as be, St as xe, T as Se, Tt as Ce, U as we, Ui as k, V as Te, Vr as Ee, W as De, Wi as Oe, X as ke, Xt as Ae, Y as je, Yr as Me, Z as Ne, Zt as Pe, _ as Fe, _n as Ie, _t as Le, a as Re, an as ze, at as Be, b as Ve, bn as He, bt as Ue, c as We, ca as Ge, cn as Ke, ct as qe, d as Je, dn as Ye, dt as Xe, er as Ze, et as Qe, f as $e, fn as et, ft as tt, g as nt, gt as rt, h as it, ht as at, i as ot, ia as st, in as ct, it as lt, j as ut, jt as dt, k as ft, kt as pt, l as mt, ln as ht, m as gt, mt as _t, n as vt, na as yt, nn as bt, nr as xt, nt as St, o as Ct, oa as wt, on as Tt, ot as Et, p as Dt, pn as Ot, pr as kt, pt as At, q as jt, qr as Mt, r as Nt, ra as A, rn as Pt, s as Ft, sa as It, sn as Lt, st as Rt, t as zt, ta as Bt, tt as Vt, u as Ht, un as Ut, ut as Wt, v as Gt, vn as Kt, vt as qt, w as Jt, wn as Yt, wt as Xt, x as Zt, xt as Qt, y as $t, yr as en, yt as tn, z as nn } from "./AFormRemoteAutocomplete-BIW7Twfr.mjs";
|
|
2
|
-
import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as rn, createTextVNode as L, createVNode as R, defineComponent as z, guardReactiveProps as an, inject as on, isRef as sn, mergeModels as B, mergeProps as V, nextTick as cn, normalizeClass as ln, normalizeProps as un, normalizeStyle as dn, onBeforeUnmount as fn, onMounted as pn, openBlock as H, provide as mn, ref as U, renderList as W, renderSlot as G, resolveComponent as hn, shallowRef as gn, toDisplayString as K, toRaw as _n, unref as q, useModel as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { VChip as
|
|
5
|
-
import { VCol as Z, VRow as
|
|
6
|
-
import { VAlert as
|
|
2
|
+
import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as rn, createTextVNode as L, createVNode as R, defineComponent as z, guardReactiveProps as an, inject as on, isRef as sn, mergeModels as B, mergeProps as V, nextTick as cn, normalizeClass as ln, normalizeProps as un, normalizeStyle as dn, onBeforeUnmount as fn, onMounted as pn, openBlock as H, provide as mn, ref as U, renderList as W, renderSlot as G, resolveComponent as hn, shallowRef as gn, toDisplayString as K, toRaw as _n, toValue as vn, unref as q, useModel as yn, useSlots as bn, useTemplateRef as xn, vShow as Sn, watch as J, withCtx as Y, withDirectives as Cn, withKeys as wn, withModifiers as X } from "vue";
|
|
3
|
+
import { useI18n as Tn } from "vue-i18n";
|
|
4
|
+
import { VChip as En } from "vuetify/components/VChip";
|
|
5
|
+
import { VCol as Z, VRow as Dn, VSpacer as On } from "vuetify/components/VGrid";
|
|
6
|
+
import { VAlert as kn } from "vuetify/components/VAlert";
|
|
7
7
|
import { VIcon as Q } from "vuetify/components/VIcon";
|
|
8
|
-
import { VProgressCircular as
|
|
9
|
-
import { VCard as
|
|
10
|
-
import { VTooltip as
|
|
11
|
-
import { useDebounceFn as
|
|
12
|
-
import { VTextField as
|
|
13
|
-
import { Intersect as
|
|
14
|
-
import { useDisplay as
|
|
8
|
+
import { VProgressCircular as An } from "vuetify/components/VProgressCircular";
|
|
9
|
+
import { VCard as jn, VCardActions as Mn, VCardText as Nn, VCardTitle as Pn } from "vuetify/components/VCard";
|
|
10
|
+
import { VTooltip as Fn } from "vuetify/components/VTooltip";
|
|
11
|
+
import { useDebounceFn as In, useThrottleFn as Ln } from "@vueuse/core";
|
|
12
|
+
import { VTextField as Rn } from "vuetify/components/VTextField";
|
|
13
|
+
import { Intersect as zn } from "vuetify/directives";
|
|
14
|
+
import { useDisplay as Bn } from "vuetify";
|
|
15
15
|
import { VBtn as $ } from "vuetify/components/VBtn";
|
|
16
|
-
import { VBtnToggle as
|
|
17
|
-
import { VList as
|
|
18
|
-
import { VMenu as
|
|
19
|
-
import { VToolbar as
|
|
20
|
-
import { useRoute as
|
|
21
|
-
import
|
|
22
|
-
import { VDialog as
|
|
23
|
-
import
|
|
24
|
-
import { VCheckbox as
|
|
25
|
-
import { VAutocomplete as
|
|
26
|
-
import { VSwitch as
|
|
27
|
-
import { VSelect as
|
|
28
|
-
import { VDivider as
|
|
29
|
-
import { defineStore as
|
|
30
|
-
import { VTable as
|
|
31
|
-
import { VTab as
|
|
32
|
-
import { VForm as
|
|
33
|
-
import { VDataTableServer as
|
|
34
|
-
import { VRadio as
|
|
35
|
-
import { VRadioGroup as
|
|
36
|
-
import { VWindow as
|
|
16
|
+
import { VBtnToggle as Vn } from "vuetify/components/VBtnToggle";
|
|
17
|
+
import { VList as Hn, VListItem as Un, VListItemTitle as Wn } from "vuetify/components/VList";
|
|
18
|
+
import { VMenu as Gn } from "vuetify/components/VMenu";
|
|
19
|
+
import { VToolbar as Kn } from "vuetify/components/VToolbar";
|
|
20
|
+
import { useRoute as qn, useRouter as Jn } from "vue-router";
|
|
21
|
+
import Yn from "axios";
|
|
22
|
+
import { VDialog as Xn } from "vuetify/components/VDialog";
|
|
23
|
+
import Zn from "@vuelidate/core";
|
|
24
|
+
import { VCheckbox as Qn } from "vuetify/components/VCheckbox";
|
|
25
|
+
import { VAutocomplete as $n } from "vuetify/components/VAutocomplete";
|
|
26
|
+
import { VSwitch as er } from "vuetify/components/VSwitch";
|
|
27
|
+
import { VSelect as tr } from "vuetify/components/VSelect";
|
|
28
|
+
import { VDivider as nr } from "vuetify/components/VDivider";
|
|
29
|
+
import { defineStore as rr, storeToRefs as ir } from "pinia";
|
|
30
|
+
import { VTable as ar } from "vuetify/components/VTable";
|
|
31
|
+
import { VTab as or, VTabs as sr } from "vuetify/components/VTabs";
|
|
32
|
+
import { VForm as cr } from "vuetify/components/VForm";
|
|
33
|
+
import { VDataTableServer as lr } from "vuetify/components/VDataTable";
|
|
34
|
+
import { VRadio as ur } from "vuetify/components/VRadio";
|
|
35
|
+
import { VRadioGroup as dr } from "vuetify/components/VRadioGroup";
|
|
36
|
+
import { VWindow as fr, VWindowItem as pr } from "vuetify/components/VWindow";
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/labs/filters/AFilterWrapperSidebar.vue
|
|
39
|
-
var
|
|
39
|
+
var mr = /* @__PURE__ */ z({
|
|
40
40
|
__name: "AFilterWrapperSidebar",
|
|
41
41
|
props: { formName: { default: "search" } },
|
|
42
42
|
emits: ["submit"],
|
|
@@ -51,16 +51,16 @@ var pr = /* @__PURE__ */ z({
|
|
|
51
51
|
};
|
|
52
52
|
return t({ resetFilter: () => {
|
|
53
53
|
c(o, a), l(o, a, s);
|
|
54
|
-
} }), (t, n) => (H(), N(
|
|
54
|
+
} }), (t, n) => (H(), N(cr, {
|
|
55
55
|
name: e.formName,
|
|
56
56
|
onSubmit: X(u, ["prevent"]),
|
|
57
|
-
onKeyup:
|
|
57
|
+
onKeyup: wn(u, ["enter"])
|
|
58
58
|
}, {
|
|
59
59
|
default: Y(() => [G(t.$slots, "default")]),
|
|
60
60
|
_: 3
|
|
61
61
|
}, 8, ["name"]));
|
|
62
62
|
}
|
|
63
|
-
}),
|
|
63
|
+
}), hr = { class: "d-flex align-center justify-center" }, gr = { class: "text-body-small mr-1" }, _r = /* @__PURE__ */ z({
|
|
64
64
|
__name: "ADatatableOrdering",
|
|
65
65
|
props: /*@__PURE__*/ B({
|
|
66
66
|
variant: { default: "id" },
|
|
@@ -78,9 +78,9 @@ var pr = /* @__PURE__ */ z({
|
|
|
78
78
|
}),
|
|
79
79
|
emits: /*@__PURE__*/ B(["sortByChange"], ["update:modelValue"]),
|
|
80
80
|
setup(e, { emit: t }) {
|
|
81
|
-
let n = e, r = t, i =
|
|
81
|
+
let n = e, r = t, i = yn(e, "modelValue"), a = on(Xt);
|
|
82
82
|
if (A(a)) throw Error("Incorrect provide/inject config.");
|
|
83
|
-
let { t: o } =
|
|
83
|
+
let { t: o } = Tn(), s = [{
|
|
84
84
|
id: 1,
|
|
85
85
|
titleT: "common.system.datatable.ordering.mostRecent",
|
|
86
86
|
sortBy: {
|
|
@@ -162,27 +162,27 @@ var pr = /* @__PURE__ */ z({
|
|
|
162
162
|
if (e.sortBy?.key === t?.sortBy?.key && e.sortBy?.order === t?.sortBy?.order) return;
|
|
163
163
|
let n = d.value.find((t) => e.sortBy?.key === t.sortBy?.key && e.sortBy?.order === t.sortBy?.order);
|
|
164
164
|
A(n) || (i.value = n.id);
|
|
165
|
-
}, { immediate: !0 }), (e, t) => (H(), F("div",
|
|
165
|
+
}, { immediate: !0 }), (e, t) => (H(), F("div", hr, [I("div", gr, K(q(o)("common.system.datatable.ordering.title")) + ":", 1), R($, {
|
|
166
166
|
variant: "text",
|
|
167
167
|
rounded: "xl",
|
|
168
168
|
size: "small",
|
|
169
169
|
class: "text-medium-emphasis",
|
|
170
170
|
"append-icon": "mdi-chevron-down"
|
|
171
171
|
}, {
|
|
172
|
-
default: Y(() => [L(K(u.value) + " ", 1), R(
|
|
172
|
+
default: Y(() => [L(K(u.value) + " ", 1), R(Gn, {
|
|
173
173
|
activator: "parent",
|
|
174
174
|
location: "bottom",
|
|
175
175
|
"close-on-content-click": ""
|
|
176
176
|
}, {
|
|
177
|
-
default: Y(() => [R(
|
|
177
|
+
default: Y(() => [R(Hn, {
|
|
178
178
|
density: "compact",
|
|
179
179
|
class: "pa-0"
|
|
180
180
|
}, {
|
|
181
|
-
default: Y(() => [(H(!0), F(j, null, W(d.value, (e) => (H(), N(
|
|
181
|
+
default: Y(() => [(H(!0), F(j, null, W(d.value, (e) => (H(), N(Un, {
|
|
182
182
|
key: e.id,
|
|
183
183
|
onClick: (t) => f(e)
|
|
184
184
|
}, {
|
|
185
|
-
default: Y(() => [R(
|
|
185
|
+
default: Y(() => [R(Wn, { class: ln({ "font-weight-bold": e.id === i.value }) }, {
|
|
186
186
|
default: Y(() => [L(K(q(o)(e.titleT)), 1)]),
|
|
187
187
|
_: 2
|
|
188
188
|
}, 1032, ["class"])]),
|
|
@@ -195,10 +195,10 @@ var pr = /* @__PURE__ */ z({
|
|
|
195
195
|
_: 1
|
|
196
196
|
})]));
|
|
197
197
|
}
|
|
198
|
-
}),
|
|
198
|
+
}), vr = { class: "anzu-data-footer" }, yr = {
|
|
199
199
|
key: 0,
|
|
200
200
|
class: "anzu-data-footer__page-limit"
|
|
201
|
-
},
|
|
201
|
+
}, br = { class: "anzu-data-footer__pagination" }, xr = { class: "anzu-data-footer__icons-before" }, Sr = { class: "current-page" }, Cr = { class: "anzu-data-footer__icons-after" }, wr = /* @__PURE__ */ z({
|
|
202
202
|
__name: "ADatatablePagination",
|
|
203
203
|
props: {
|
|
204
204
|
itemsPerPageOptions: { default: () => [
|
|
@@ -215,23 +215,23 @@ var pr = /* @__PURE__ */ z({
|
|
|
215
215
|
setup(t, { emit: n }) {
|
|
216
216
|
let r = n, i = on(Xt);
|
|
217
217
|
if (A(i)) throw Error("Incorrect provide/inject config.");
|
|
218
|
-
let { t: a } =
|
|
218
|
+
let { t: a } = Tn(), { setStoredPage: o } = ve(), s = on(u, void 0), c = on(Ce, void 0), l = M(() => s ?? oe(c?.general.system, c?.general.subject)), d = M(() => Math.ceil(i.value.totalCount / i.value.rowsPerPage)), f = M(() => i.value.page * i.value.rowsPerPage - i.value.rowsPerPage + 1), p = M(() => i.value.page * i.value.rowsPerPage - i.value.rowsPerPage + i.value.currentViewCount), m = M(() => i.value.page === 1), h = M(() => !e(i.value.hasNextPage) || i.value.page >= d.value), g = M(() => e(i.value.hasNextPage) && i.value.page >= d.value || i.value.hasNextPage === !1), _ = M(() => e(i.value.hasNextPage) ? i.value.totalCount : i.value.hasNextPage ? p.value + 1 + "+" : p.value);
|
|
219
219
|
J(() => i.value.rowsPerPage, (e, t) => {
|
|
220
220
|
e !== t && (i.value.page = 1, r("change"));
|
|
221
221
|
}), J(() => i.value.page, (e, t) => {
|
|
222
222
|
e !== t && (o(l.value, e), r("change"));
|
|
223
223
|
});
|
|
224
|
-
let v =
|
|
224
|
+
let v = Ln(() => {
|
|
225
225
|
i.value.page = 1;
|
|
226
|
-
}, 300, !1), y =
|
|
226
|
+
}, 300, !1), y = Ln(() => {
|
|
227
227
|
i.value.page = d.value;
|
|
228
|
-
}, 300, !1), b =
|
|
228
|
+
}, 300, !1), b = Ln(() => {
|
|
229
229
|
i.value.page = i.value.page - 1;
|
|
230
|
-
}, 300, !1), x =
|
|
230
|
+
}, 300, !1), x = Ln(() => {
|
|
231
231
|
i.value.page = i.value.page + 1;
|
|
232
232
|
}, 300, !1);
|
|
233
|
-
return (e, n) => (H(), F("div",
|
|
234
|
-
t.hideRecordsPerPage ? P("", !0) : (H(), F("div",
|
|
233
|
+
return (e, n) => (H(), F("div", vr, [
|
|
234
|
+
t.hideRecordsPerPage ? P("", !0) : (H(), F("div", yr, [L(K(q(a)("common.system.datatable.itemsPerPage")) + ": ", 1), R(Vn, {
|
|
235
235
|
modelValue: q(i).rowsPerPage,
|
|
236
236
|
"onUpdate:modelValue": n[0] ||= (e) => q(i).rowsPerPage = e,
|
|
237
237
|
class: "ml-2",
|
|
@@ -252,8 +252,8 @@ var pr = /* @__PURE__ */ z({
|
|
|
252
252
|
}, 1032, ["color", "value"]))), 128))]),
|
|
253
253
|
_: 1
|
|
254
254
|
}, 8, ["modelValue"])])),
|
|
255
|
-
I("div",
|
|
256
|
-
I("div",
|
|
255
|
+
I("div", br, K(f.value) + " - " + K(p.value) + " " + K(q(a)("common.system.datatable.from")) + " " + K(_.value), 1),
|
|
256
|
+
I("div", xr, [R($, {
|
|
257
257
|
disabled: m.value,
|
|
258
258
|
icon: "mdi-page-first",
|
|
259
259
|
size: "small",
|
|
@@ -266,8 +266,8 @@ var pr = /* @__PURE__ */ z({
|
|
|
266
266
|
variant: "text",
|
|
267
267
|
onClick: X(q(b), ["stop"])
|
|
268
268
|
}, null, 8, ["disabled", "onClick"])]),
|
|
269
|
-
I("div",
|
|
270
|
-
I("div",
|
|
269
|
+
I("div", Sr, [I("span", null, K(q(i).page), 1)]),
|
|
270
|
+
I("div", Cr, [R($, {
|
|
271
271
|
disabled: g.value,
|
|
272
272
|
icon: "mdi-chevron-right",
|
|
273
273
|
size: "small",
|
|
@@ -282,14 +282,14 @@ var pr = /* @__PURE__ */ z({
|
|
|
282
282
|
}, null, 8, ["disabled", "onClick"])])
|
|
283
283
|
]));
|
|
284
284
|
}
|
|
285
|
-
}),
|
|
285
|
+
}), Tr = class extends Error {
|
|
286
286
|
pageUrl;
|
|
287
287
|
failure;
|
|
288
288
|
dispatched;
|
|
289
289
|
constructor(e, t, n) {
|
|
290
290
|
super("Batch page failed"), this.pageUrl = e, this.failure = t, this.dispatched = n, this.name = "PageFailure";
|
|
291
291
|
}
|
|
292
|
-
},
|
|
292
|
+
}, Er = (e) => {
|
|
293
293
|
let { client: t, system: n, entity: i, validationSystem: a, validationEntity: o, urlTemplate: s, urlParams: c, options: l = {}, cancelPrevious: u = !1 } = e, d = ct({ cancelPrevious: u });
|
|
294
294
|
return {
|
|
295
295
|
execute: async (e, u, f = {}) => {
|
|
@@ -310,10 +310,10 @@ var pr = /* @__PURE__ */ z({
|
|
|
310
310
|
pageUrl: r
|
|
311
311
|
};
|
|
312
312
|
} catch (e) {
|
|
313
|
-
throw new
|
|
313
|
+
throw new Tr(r, e);
|
|
314
314
|
}
|
|
315
315
|
}, x = (e, n) => Lt(t, n, l, void 0, e.config), S = (e, t) => {
|
|
316
|
-
if (!et(e.status)) throw new
|
|
316
|
+
if (!et(e.status)) throw new Tr(t, new kt(e.status), e.config);
|
|
317
317
|
if (e.status === 204) return {
|
|
318
318
|
items: [],
|
|
319
319
|
mode: "unknown",
|
|
@@ -322,12 +322,12 @@ var pr = /* @__PURE__ */ z({
|
|
|
322
322
|
countIsBound: !1,
|
|
323
323
|
empty: !0
|
|
324
324
|
};
|
|
325
|
-
if (!ze(e)) throw new
|
|
325
|
+
if (!ze(e)) throw new Tr(t, new kt(e.status, void 0, "Expected a response body, url: " + x(e, t)), e.config);
|
|
326
326
|
let n;
|
|
327
327
|
try {
|
|
328
328
|
n = rt(e.data, e.status, x(e, t));
|
|
329
329
|
} catch (n) {
|
|
330
|
-
throw new
|
|
330
|
+
throw new Tr(t, n, e.config);
|
|
331
331
|
}
|
|
332
332
|
return {
|
|
333
333
|
items: n.items,
|
|
@@ -366,7 +366,7 @@ var pr = /* @__PURE__ */ z({
|
|
|
366
366
|
})).then((e) => S(e.res, e.pageUrl))))).forEach((e) => T.push(...e.items)), T;
|
|
367
367
|
}, y);
|
|
368
368
|
} catch (e) {
|
|
369
|
-
let r = e instanceof
|
|
369
|
+
let r = e instanceof Tr ? e : null, s = {
|
|
370
370
|
system: n,
|
|
371
371
|
entity: i,
|
|
372
372
|
validationSystem: a,
|
|
@@ -379,14 +379,14 @@ var pr = /* @__PURE__ */ z({
|
|
|
379
379
|
abort: d.abort,
|
|
380
380
|
loading: d.loading
|
|
381
381
|
};
|
|
382
|
-
},
|
|
383
|
-
function
|
|
382
|
+
}, Dr = "/adm/v1/job";
|
|
383
|
+
function Or(e, t) {
|
|
384
384
|
return {
|
|
385
385
|
useFetchJobList: () => tt({
|
|
386
386
|
client: e,
|
|
387
387
|
system: t,
|
|
388
388
|
entity: "job",
|
|
389
|
-
urlTemplate:
|
|
389
|
+
urlTemplate: Dr
|
|
390
390
|
}),
|
|
391
391
|
fetchJob: (n) => {
|
|
392
392
|
let { execute: r } = Pt({
|
|
@@ -394,7 +394,7 @@ function Dr(e, t) {
|
|
|
394
394
|
method: "GET",
|
|
395
395
|
system: t,
|
|
396
396
|
entity: "job",
|
|
397
|
-
urlTemplate:
|
|
397
|
+
urlTemplate: Dr + "/:id"
|
|
398
398
|
});
|
|
399
399
|
return r({ urlParams: { id: n } });
|
|
400
400
|
},
|
|
@@ -404,7 +404,7 @@ function Dr(e, t) {
|
|
|
404
404
|
method: "POST",
|
|
405
405
|
system: t,
|
|
406
406
|
entity: "job",
|
|
407
|
-
urlTemplate:
|
|
407
|
+
urlTemplate: Dr + "/:type"
|
|
408
408
|
});
|
|
409
409
|
return i({
|
|
410
410
|
urlParams: { type: r },
|
|
@@ -417,7 +417,7 @@ function Dr(e, t) {
|
|
|
417
417
|
method: "DELETE",
|
|
418
418
|
system: t,
|
|
419
419
|
entity: "job",
|
|
420
|
-
urlTemplate:
|
|
420
|
+
urlTemplate: Dr + "/:id"
|
|
421
421
|
});
|
|
422
422
|
return r({ urlParams: { id: n } });
|
|
423
423
|
}
|
|
@@ -425,26 +425,26 @@ function Dr(e, t) {
|
|
|
425
425
|
}
|
|
426
426
|
//#endregion
|
|
427
427
|
//#region src/labs/filters/datatableColumns.ts
|
|
428
|
-
var
|
|
428
|
+
var kr = {
|
|
429
429
|
key: "",
|
|
430
430
|
title: void 0,
|
|
431
431
|
sortable: !1,
|
|
432
432
|
fixed: !1
|
|
433
|
-
},
|
|
433
|
+
}, Ar = {
|
|
434
434
|
storeColumnsLocalStorage: !0,
|
|
435
435
|
disableActions: !1,
|
|
436
436
|
customI18n: void 0,
|
|
437
437
|
showExpand: !1
|
|
438
438
|
};
|
|
439
|
-
function
|
|
439
|
+
function jr(e, t, n, r, i = {}) {
|
|
440
440
|
let a = {
|
|
441
|
-
...
|
|
441
|
+
...Ar,
|
|
442
442
|
...i
|
|
443
443
|
}, o = a.customI18n ?? S, { t: s } = o.global || o, c;
|
|
444
444
|
yt(a.storeColumnsLocalStorage) ? c = a.storeColumnsLocalStorage : x(a.storeColumnsLocalStorage) && !0 === a.storeColumnsLocalStorage && (c = "table_" + n + "_" + r);
|
|
445
445
|
let l = e.map((e) => {
|
|
446
446
|
let t = {
|
|
447
|
-
...
|
|
447
|
+
...kr,
|
|
448
448
|
...e
|
|
449
449
|
};
|
|
450
450
|
return A(t.title) && (t.title = A(t.title) && te.includes(t.key) ? s("common.model.tracking." + t.key) : A(t.title) && n && r ? s(n + "." + r + ".model." + t.key) : ""), t;
|
|
@@ -487,12 +487,12 @@ function Ar(e, t, n, r, i = {}) {
|
|
|
487
487
|
}
|
|
488
488
|
//#endregion
|
|
489
489
|
//#region src/labs/log/logApi.ts
|
|
490
|
-
var
|
|
490
|
+
var Mr = "log", Nr = ({ client: e, system: t, logPaths: n, type: r }) => tt({
|
|
491
491
|
client: e,
|
|
492
492
|
system: t,
|
|
493
493
|
entity: "log",
|
|
494
494
|
urlTemplate: n[r]
|
|
495
|
-
}),
|
|
495
|
+
}), Pr = ({ client: e, system: t, logPaths: n, type: r }) => Pt({
|
|
496
496
|
client: e,
|
|
497
497
|
method: "GET",
|
|
498
498
|
system: t,
|
|
@@ -501,8 +501,8 @@ var jr = "log", Mr = ({ client: e, system: t, logPaths: n, type: r }) => tt({
|
|
|
501
501
|
});
|
|
502
502
|
//#endregion
|
|
503
503
|
//#region src/labs/log/logActions.ts
|
|
504
|
-
function
|
|
505
|
-
let { showErrorsDefault: n } = t(), { execute: r, abort: i } =
|
|
504
|
+
function Fr(e) {
|
|
505
|
+
let { showErrorsDefault: n } = t(), { execute: r, abort: i } = Nr(e), a = U([]), o = e.loading ?? U(!1), s = U([]), c = 0, l = (e) => e === c;
|
|
506
506
|
return {
|
|
507
507
|
listItems: a,
|
|
508
508
|
listLoading: o,
|
|
@@ -532,8 +532,8 @@ function Pr(e) {
|
|
|
532
532
|
}
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
let { showErrorsDefault: n } = t(), { execute: r, abort: i } =
|
|
535
|
+
function Ir(e) {
|
|
536
|
+
let { showErrorsDefault: n } = t(), { execute: r, abort: i } = Pr(e), a = U(null), o = e.loading ?? U(!1), s = 0, c = (e) => e === s;
|
|
537
537
|
return {
|
|
538
538
|
log: a,
|
|
539
539
|
detailLoading: o,
|
|
@@ -558,15 +558,15 @@ function Fr(e) {
|
|
|
558
558
|
}
|
|
559
559
|
//#endregion
|
|
560
560
|
//#region src/labs/log/logType.ts
|
|
561
|
-
var
|
|
561
|
+
var Lr = {
|
|
562
562
|
App: "app",
|
|
563
563
|
Audit: "audit"
|
|
564
|
-
},
|
|
564
|
+
}, Rr = Lr.App, zr = (e) => Object.values(Lr).includes(e), Br = {
|
|
565
565
|
app: "/adm/v1/log/app",
|
|
566
566
|
audit: "/adm/v1/log/audit"
|
|
567
567
|
};
|
|
568
|
-
function
|
|
569
|
-
let e = U(Object.values(
|
|
568
|
+
function Vr() {
|
|
569
|
+
let e = U(Object.values(Lr).map((e) => ({
|
|
570
570
|
value: e,
|
|
571
571
|
title: e
|
|
572
572
|
})));
|
|
@@ -577,7 +577,7 @@ function Br() {
|
|
|
577
577
|
}
|
|
578
578
|
//#endregion
|
|
579
579
|
//#region src/labs/log/ALogDatatable.vue?vue&type=script&setup=true&lang.ts
|
|
580
|
-
var
|
|
580
|
+
var Hr = { class: "d-flex align-center" }, Ur = { class: "line-clamp-2" }, Wr = { class: "d-flex justify-end" }, Gr = /* @__PURE__ */ z({
|
|
581
581
|
__name: "ALogDatatable",
|
|
582
582
|
props: /*@__PURE__*/ B({
|
|
583
583
|
client: { type: Function },
|
|
@@ -594,9 +594,9 @@ var Vr = { class: "d-flex align-center" }, Hr = { class: "line-clamp-2" }, Ur =
|
|
|
594
594
|
}),
|
|
595
595
|
emits: /*@__PURE__*/ B(["rowClick"], ["update:loading"]),
|
|
596
596
|
setup(t, { expose: n, emit: r }) {
|
|
597
|
-
let i = t, a = r, o =
|
|
597
|
+
let i = t, a = r, o = yn(t, "loading"), c = on(Ce), l = on(g);
|
|
598
598
|
if (A(c) || A(l)) throw Error("[ALogDatatable] Incorrect provide/inject config.");
|
|
599
|
-
let { fetchList: u, listItems: d, datatableHiddenColumns: f, cancel: p } =
|
|
599
|
+
let { fetchList: u, listItems: d, datatableHiddenColumns: f, cancel: p } = Fr({
|
|
600
600
|
client: i.client,
|
|
601
601
|
system: i.system,
|
|
602
602
|
logPaths: i.logPaths,
|
|
@@ -607,17 +607,17 @@ var Vr = { class: "d-flex align-center" }, Hr = { class: "line-clamp-2" }, Ur =
|
|
|
607
607
|
populateUrlParams: !1
|
|
608
608
|
}), { pagination: v } = Wt("id");
|
|
609
609
|
mn(Xt, v);
|
|
610
|
-
let { columnsVisible: y, columnsAll: b, columnsHidden: x } =
|
|
610
|
+
let { columnsVisible: y, columnsAll: b, columnsHidden: x } = jr([
|
|
611
611
|
{ key: "id" },
|
|
612
612
|
{ key: "datetime" },
|
|
613
613
|
{ key: "levelName" },
|
|
614
614
|
{ key: "message" },
|
|
615
615
|
{ key: "context.appVersion" },
|
|
616
616
|
{ key: "context.contextId" },
|
|
617
|
-
...i.type ===
|
|
617
|
+
...i.type === Lr.Audit ? [{ key: "context.resourceName" }, { key: "context.resourceIds" }] : [{ key: "context.httpStatus" }],
|
|
618
618
|
{ key: "context.userId" },
|
|
619
619
|
{ key: "context.ip" }
|
|
620
|
-
], f, "common", "log", { storeColumnsLocalStorage: `table_common_log_${i.type}` }), S =
|
|
620
|
+
], f, "common", "log", { storeColumnsLocalStorage: `table_common_log_${i.type}` }), S = In(async () => {
|
|
621
621
|
await u(v, l, c);
|
|
622
622
|
}), C = (e, { item: t }) => {
|
|
623
623
|
t.id && a("rowClick", t);
|
|
@@ -630,11 +630,11 @@ var Vr = { class: "d-flex align-center" }, Hr = { class: "line-clamp-2" }, Ur =
|
|
|
630
630
|
refresh: S,
|
|
631
631
|
resetFilter: () => m(v, S),
|
|
632
632
|
submitFilter: () => h(v, S)
|
|
633
|
-
}), (n, r) => (H(), F("div", null, [I("div",
|
|
633
|
+
}), (n, r) => (H(), F("div", null, [I("div", Hr, [R(On), R(Mt, {
|
|
634
634
|
"columns-hidden": q(x),
|
|
635
635
|
"onUpdate:columnsHidden": r[0] ||= (e) => sn(x) ? x.value = e : null,
|
|
636
636
|
"columns-all": q(b)
|
|
637
|
-
}, null, 8, ["columns-hidden", "columns-all"])]), R(
|
|
637
|
+
}, null, 8, ["columns-hidden", "columns-all"])]), R(lr, {
|
|
638
638
|
class: "a-datatable",
|
|
639
639
|
headers: q(y),
|
|
640
640
|
items: q(d),
|
|
@@ -643,21 +643,21 @@ var Vr = { class: "d-flex align-center" }, Hr = { class: "line-clamp-2" }, Ur =
|
|
|
643
643
|
"onClick:row": C
|
|
644
644
|
}, {
|
|
645
645
|
"item.datetime": Y(({ item: e }) => [R(Pe, { "date-time": e.datetime }, null, 8, ["date-time"])]),
|
|
646
|
-
"item.message": Y(({ item: e }) => [I("div",
|
|
646
|
+
"item.message": Y(({ item: e }) => [I("div", Ur, K(e.message), 1)]),
|
|
647
647
|
"item.context.resourceIds": Y(({ item: e }) => [L(K(e.context.resourceIds.join(", ")), 1)]),
|
|
648
648
|
"item.context.contextId": Y(({ item: e }) => [R(s, { value: e.context.contextId }, null, 8, ["value"])]),
|
|
649
649
|
"item.context.userId": Y(({ item: t }) => [q(e)(t.context.userId) ? P("", !0) : (H(), N(s, {
|
|
650
650
|
key: 0,
|
|
651
651
|
value: t.context.userId
|
|
652
652
|
}, null, 8, ["value"]))]),
|
|
653
|
-
"item.actions": Y(({ item: e }) => [I("div",
|
|
653
|
+
"item.actions": Y(({ item: e }) => [I("div", Wr, [R($, {
|
|
654
654
|
to: t.detailRoute(e),
|
|
655
655
|
class: "ml-1",
|
|
656
656
|
icon: "mdi-information-outline",
|
|
657
657
|
size: "x-small",
|
|
658
658
|
variant: "text"
|
|
659
659
|
}, null, 8, ["to"])])]),
|
|
660
|
-
bottom: Y(() => [R(
|
|
660
|
+
bottom: Y(() => [R(wr, { onChange: q(S) }, null, 8, ["onChange"])]),
|
|
661
661
|
_: 1
|
|
662
662
|
}, 8, [
|
|
663
663
|
"headers",
|
|
@@ -665,7 +665,7 @@ var Vr = { class: "d-flex align-center" }, Hr = { class: "line-clamp-2" }, Ur =
|
|
|
665
665
|
"items-length"
|
|
666
666
|
])]));
|
|
667
667
|
}
|
|
668
|
-
}),
|
|
668
|
+
}), Kr = /* @__PURE__ */ z({
|
|
669
669
|
__name: "ALogFilter",
|
|
670
670
|
props: {
|
|
671
671
|
type: {},
|
|
@@ -677,19 +677,19 @@ var Vr = { class: "d-flex align-center" }, Hr = { class: "line-clamp-2" }, Ur =
|
|
|
677
677
|
"changeType"
|
|
678
678
|
],
|
|
679
679
|
setup(e, { emit: t }) {
|
|
680
|
-
let n = t, { t: r } =
|
|
680
|
+
let n = t, { t: r } = Tn(), { logLevelOptions: i } = C(), { logTypeOptions: a } = Vr();
|
|
681
681
|
return (t, o) => (H(), N(Re, {
|
|
682
682
|
"enable-top": "",
|
|
683
683
|
onSubmit: o[1] ||= (e) => n("submit"),
|
|
684
684
|
onReset: o[2] ||= (e) => n("reset")
|
|
685
685
|
}, {
|
|
686
|
-
top: Y(() => [R(
|
|
686
|
+
top: Y(() => [R(Dn, { class: "align-start" }, {
|
|
687
687
|
default: Y(() => [R(Z, {
|
|
688
688
|
class: "pb-0",
|
|
689
689
|
cols: "12",
|
|
690
690
|
sm: "4"
|
|
691
691
|
}, {
|
|
692
|
-
default: Y(() => [R(
|
|
692
|
+
default: Y(() => [R(tr, {
|
|
693
693
|
"model-value": e.type,
|
|
694
694
|
items: q(a),
|
|
695
695
|
label: q(r)("common.log.filter.type"),
|
|
@@ -708,7 +708,7 @@ var Vr = { class: "d-flex align-center" }, Hr = { class: "line-clamp-2" }, Ur =
|
|
|
708
708
|
_: 1
|
|
709
709
|
})]),
|
|
710
710
|
_: 1
|
|
711
|
-
}), R(
|
|
711
|
+
}), R(nr, { class: "mb-4 mt-4" })]),
|
|
712
712
|
search: Y(() => [
|
|
713
713
|
R(Be, {
|
|
714
714
|
name: "contextId",
|
|
@@ -731,7 +731,7 @@ var Vr = { class: "d-flex align-center" }, Hr = { class: "line-clamp-2" }, Ur =
|
|
|
731
731
|
_: 1
|
|
732
732
|
}));
|
|
733
733
|
}
|
|
734
|
-
}),
|
|
734
|
+
}), qr = ["resourceName", "resourceIds"], Jr = (e) => [
|
|
735
735
|
{
|
|
736
736
|
name: "levelName",
|
|
737
737
|
variant: "in",
|
|
@@ -800,23 +800,23 @@ var Vr = { class: "d-flex align-center" }, Hr = { class: "line-clamp-2" }, Ur =
|
|
|
800
800
|
mandatory: re(e),
|
|
801
801
|
render: { skip: !0 }
|
|
802
802
|
}
|
|
803
|
-
],
|
|
804
|
-
function
|
|
805
|
-
let n =
|
|
803
|
+
], Yr = /* @__PURE__ */ new Map();
|
|
804
|
+
function Xr(e, t) {
|
|
805
|
+
let n = Yr.get(e);
|
|
806
806
|
if (n) return n;
|
|
807
|
-
let r =
|
|
807
|
+
let r = Jr(t), i = qt(r, tn(r), {
|
|
808
808
|
system: "common",
|
|
809
809
|
subject: "log"
|
|
810
810
|
});
|
|
811
|
-
return
|
|
811
|
+
return Yr.set(e, i), i;
|
|
812
812
|
}
|
|
813
|
-
var
|
|
814
|
-
let n = t !==
|
|
815
|
-
|
|
813
|
+
var Zr = (e, t) => {
|
|
814
|
+
let n = t !== Lr.Audit;
|
|
815
|
+
qr.forEach((t) => {
|
|
816
816
|
let r = e.filterConfig.fields[t];
|
|
817
817
|
r.exclude = n, r.render.skip = n, r.render.selected = !n;
|
|
818
818
|
});
|
|
819
|
-
},
|
|
819
|
+
}, Qr = /* @__PURE__ */ z({
|
|
820
820
|
__name: "ALogListView",
|
|
821
821
|
props: {
|
|
822
822
|
client: { type: Function },
|
|
@@ -829,22 +829,22 @@ var Xr = (e, t) => {
|
|
|
829
829
|
allowedTimeIntervals: {}
|
|
830
830
|
},
|
|
831
831
|
setup(e) {
|
|
832
|
-
let t = e, n =
|
|
833
|
-
|
|
834
|
-
let i =
|
|
832
|
+
let t = e, n = Jn(), r = Xr(t.system, t.defaultTimeWindow);
|
|
833
|
+
Zr(r, t.type), mn(Ce, r.filterConfig), mn(g, r.filterData);
|
|
834
|
+
let i = xn("datatable"), a = U(!1), o = (e) => {
|
|
835
835
|
n.push(t.detailRoute(e));
|
|
836
836
|
}, s = (e) => {
|
|
837
837
|
e !== t.type && n.replace(t.typeRoute(e));
|
|
838
838
|
};
|
|
839
839
|
return (t, n) => (H(), N(st, { loading: a.value }, {
|
|
840
|
-
default: Y(() => [R(
|
|
841
|
-
default: Y(() => [R(
|
|
840
|
+
default: Y(() => [R(Nn, null, {
|
|
841
|
+
default: Y(() => [R(Kr, {
|
|
842
842
|
type: e.type,
|
|
843
843
|
"allowed-time-intervals": e.allowedTimeIntervals,
|
|
844
844
|
onSubmit: n[0] ||= (e) => i.value?.submitFilter(),
|
|
845
845
|
onReset: n[1] ||= (e) => i.value?.resetFilter(),
|
|
846
846
|
onChangeType: s
|
|
847
|
-
}, null, 8, ["type", "allowed-time-intervals"]), R(
|
|
847
|
+
}, null, 8, ["type", "allowed-time-intervals"]), R(Gr, {
|
|
848
848
|
ref_key: "datatable",
|
|
849
849
|
ref: i,
|
|
850
850
|
loading: a.value,
|
|
@@ -868,89 +868,89 @@ var Xr = (e, t) => {
|
|
|
868
868
|
_: 1
|
|
869
869
|
}, 8, ["loading"]));
|
|
870
870
|
}
|
|
871
|
-
}),
|
|
871
|
+
}), $r = (e) => {
|
|
872
872
|
try {
|
|
873
873
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
874
874
|
} catch {
|
|
875
875
|
return e;
|
|
876
876
|
}
|
|
877
|
-
},
|
|
877
|
+
}, ei = { class: "text-label-large" }, ti = { class: "text-label-large" }, ni = { class: "text-label-large" }, ri = { class: "text-label-large" }, ii = { class: "text-label-large" }, ai = { class: "text-label-large" }, oi = { class: "text-label-large" }, si = { class: "text-label-large" }, ci = { class: "text-label-large" }, li = { class: "text-label-large" }, ui = { class: "text-label-large" }, di = { class: "text-label-large" }, fi = { class: "text-label-large" }, pi = /*#__PURE__*/ wt(/* @__PURE__ */ z({
|
|
878
878
|
__name: "ALogDetail",
|
|
879
879
|
props: { log: {} },
|
|
880
880
|
setup(e) {
|
|
881
|
-
let { t } =
|
|
882
|
-
return (n, r) => (H(), N(
|
|
881
|
+
let { t } = Tn();
|
|
882
|
+
return (n, r) => (H(), N(Dn, null, {
|
|
883
883
|
default: Y(() => [R(Z, null, {
|
|
884
884
|
default: Y(() => [
|
|
885
|
-
R(
|
|
885
|
+
R(Dn, null, {
|
|
886
886
|
default: Y(() => [
|
|
887
887
|
R(Z, { cols: "3" }, {
|
|
888
|
-
default: Y(() => [I("h4",
|
|
888
|
+
default: Y(() => [I("h4", ei, K(q(t)("common.log.model.id")), 1), L(" " + K(e.log.id), 1)]),
|
|
889
889
|
_: 1
|
|
890
890
|
}),
|
|
891
891
|
R(Z, { cols: "3" }, {
|
|
892
|
-
default: Y(() => [I("h4",
|
|
892
|
+
default: Y(() => [I("h4", ti, K(q(t)("common.log.model.levelName")), 1), R(T, { level: e.log.levelName }, null, 8, ["level"])]),
|
|
893
893
|
_: 1
|
|
894
894
|
}),
|
|
895
895
|
R(Z, { cols: "2" }, {
|
|
896
|
-
default: Y(() => [I("h4",
|
|
896
|
+
default: Y(() => [I("h4", ni, K(q(t)("common.log.model.context.userId")), 1), L(" " + K(e.log.context.userId), 1)]),
|
|
897
897
|
_: 1
|
|
898
898
|
}),
|
|
899
899
|
R(Z, { cols: "2" }, {
|
|
900
|
-
default: Y(() => [I("h4",
|
|
900
|
+
default: Y(() => [I("h4", ri, K(q(t)("common.log.model.context.appVersion")), 1), L(" " + K(e.log.context.appVersion), 1)]),
|
|
901
901
|
_: 1
|
|
902
902
|
}),
|
|
903
903
|
R(Z, { cols: "2" }, {
|
|
904
|
-
default: Y(() => [I("h4",
|
|
904
|
+
default: Y(() => [I("h4", ii, K(q(t)("common.log.model.context.requestOriginAppVersion")), 1), L(" " + K(e.log.context.requestOriginAppVersion), 1)]),
|
|
905
905
|
_: 1
|
|
906
906
|
})
|
|
907
907
|
]),
|
|
908
908
|
_: 1
|
|
909
909
|
}),
|
|
910
|
-
R(
|
|
910
|
+
R(Dn, null, {
|
|
911
911
|
default: Y(() => [
|
|
912
912
|
R(Z, { cols: "4" }, {
|
|
913
|
-
default: Y(() => [I("h4",
|
|
913
|
+
default: Y(() => [I("h4", ai, K(q(t)("common.log.model.context.contextId")), 1), L(" " + K(e.log.context.contextId), 1)]),
|
|
914
914
|
_: 1
|
|
915
915
|
}),
|
|
916
916
|
R(Z, { cols: "4" }, {
|
|
917
|
-
default: Y(() => [I("h4",
|
|
917
|
+
default: Y(() => [I("h4", oi, K(q(t)("common.log.model.context.ip")), 1), L(" " + K(e.log.context.ip), 1)]),
|
|
918
918
|
_: 1
|
|
919
919
|
}),
|
|
920
920
|
R(Z, { cols: "4" }, {
|
|
921
|
-
default: Y(() => [I("h4",
|
|
921
|
+
default: Y(() => [I("h4", si, K(q(t)("common.log.model.datetime")), 1), L(" " + K(q(o)(e.log.datetime)), 1)]),
|
|
922
922
|
_: 1
|
|
923
923
|
})
|
|
924
924
|
]),
|
|
925
925
|
_: 1
|
|
926
926
|
}),
|
|
927
|
-
R(
|
|
927
|
+
R(Dn, null, {
|
|
928
928
|
default: Y(() => [R(Z, { cols: "12" }, {
|
|
929
|
-
default: Y(() => [I("h4",
|
|
929
|
+
default: Y(() => [I("h4", ci, K(q(t)("common.log.model.message")), 1), I("pre", null, K(e.log.message), 1)]),
|
|
930
930
|
_: 1
|
|
931
931
|
})]),
|
|
932
932
|
_: 1
|
|
933
933
|
}),
|
|
934
|
-
R(
|
|
934
|
+
R(Dn, null, {
|
|
935
935
|
default: Y(() => [R(Z, { cols: "6" }, {
|
|
936
|
-
default: Y(() => [I("h4",
|
|
936
|
+
default: Y(() => [I("h4", li, K(q(t)("common.log.model.context.path")), 1), L(" " + K(e.log.context.method) + " " + K(e.log.context.path), 1)]),
|
|
937
937
|
_: 1
|
|
938
938
|
}), R(Z, { cols: "6" }, {
|
|
939
|
-
default: Y(() => [I("h4",
|
|
939
|
+
default: Y(() => [I("h4", ui, K(q(t)("common.log.model.context.httpStatus")), 1), L(" " + K(e.log.context.httpStatus), 1)]),
|
|
940
940
|
_: 1
|
|
941
941
|
})]),
|
|
942
942
|
_: 1
|
|
943
943
|
}),
|
|
944
|
-
R(
|
|
944
|
+
R(Dn, null, {
|
|
945
945
|
default: Y(() => [R(Z, { cols: "12" }, {
|
|
946
|
-
default: Y(() => [I("h4",
|
|
946
|
+
default: Y(() => [I("h4", di, K(q(t)("common.log.model.context.content")), 1), I("pre", null, K(q($r)(e.log.context.content ?? "")), 1)]),
|
|
947
947
|
_: 1
|
|
948
948
|
})]),
|
|
949
949
|
_: 1
|
|
950
950
|
}),
|
|
951
|
-
R(
|
|
951
|
+
R(Dn, null, {
|
|
952
952
|
default: Y(() => [R(Z, { cols: "12" }, {
|
|
953
|
-
default: Y(() => [I("h4",
|
|
953
|
+
default: Y(() => [I("h4", fi, K(q(t)("common.log.model.context.response")), 1), I("pre", null, K(q($r)(e.log.context.response)), 1)]),
|
|
954
954
|
_: 1
|
|
955
955
|
})]),
|
|
956
956
|
_: 1
|
|
@@ -961,7 +961,7 @@ var Xr = (e, t) => {
|
|
|
961
961
|
_: 1
|
|
962
962
|
}));
|
|
963
963
|
}
|
|
964
|
-
}), [["__scopeId", "data-v-5f6c7eaf"]]),
|
|
964
|
+
}), [["__scopeId", "data-v-5f6c7eaf"]]), mi = /* @__PURE__ */ z({
|
|
965
965
|
__name: "ALogDetailView",
|
|
966
966
|
props: {
|
|
967
967
|
client: { type: Function },
|
|
@@ -971,7 +971,7 @@ var Xr = (e, t) => {
|
|
|
971
971
|
logPaths: {}
|
|
972
972
|
},
|
|
973
973
|
setup(t) {
|
|
974
|
-
let n = t, { log: r, detailLoading: i, fetchData: a, cancel: o } =
|
|
974
|
+
let n = t, { log: r, detailLoading: i, fetchData: a, cancel: o } = Ir({
|
|
975
975
|
client: n.client,
|
|
976
976
|
system: n.system,
|
|
977
977
|
logPaths: n.logPaths,
|
|
@@ -982,8 +982,8 @@ var Xr = (e, t) => {
|
|
|
982
982
|
}), fn(() => {
|
|
983
983
|
o();
|
|
984
984
|
}), (t, n) => (H(), N(st, { loading: q(i) }, {
|
|
985
|
-
default: Y(() => [R(
|
|
986
|
-
default: Y(() => [q(e)(q(r)) ? P("", !0) : (H(), N(
|
|
985
|
+
default: Y(() => [R(Nn, null, {
|
|
986
|
+
default: Y(() => [q(e)(q(r)) ? P("", !0) : (H(), N(pi, {
|
|
987
987
|
key: 0,
|
|
988
988
|
log: q(r)
|
|
989
989
|
}, null, 8, ["log"]))]),
|
|
@@ -995,11 +995,11 @@ var Xr = (e, t) => {
|
|
|
995
995
|
});
|
|
996
996
|
//#endregion
|
|
997
997
|
//#region src/labs/subjectSelect/useSubjectSelect.ts
|
|
998
|
-
function
|
|
998
|
+
function hi(n, r, i, a, o, s, c, l = null, u = void 0, d = !1) {
|
|
999
999
|
let f = U(!1), p = U([]), m = U([]), h = U(!1), { pagination: g, setSortBy: _, incrementPage: v } = Wt(e(l) ? null : l.key, l?.order), { resetFilter: y, submitFilter: b } = xe(s, c, {
|
|
1000
1000
|
storeFiltersLocalStorage: !1,
|
|
1001
1001
|
populateUrlParams: !1
|
|
1002
|
-
}), { showErrorsDefault: x } = t(), { columnsVisible: S, columnsAll: C, columnsHidden: w } =
|
|
1002
|
+
}), { showErrorsDefault: x } = t(), { columnsVisible: S, columnsAll: C, columnsHidden: w } = jr(n, r, i, a, {
|
|
1003
1003
|
storeColumnsLocalStorage: !1,
|
|
1004
1004
|
disableActions: !d
|
|
1005
1005
|
}), T = () => {
|
|
@@ -1027,7 +1027,7 @@ function mi(n, r, i, a, o, s, c, l = null, u = void 0, d = !1) {
|
|
|
1027
1027
|
} finally {
|
|
1028
1028
|
h.value = !1;
|
|
1029
1029
|
}
|
|
1030
|
-
}, O =
|
|
1030
|
+
}, O = In(async () => {
|
|
1031
1031
|
await D();
|
|
1032
1032
|
});
|
|
1033
1033
|
return {
|
|
@@ -1059,10 +1059,10 @@ function mi(n, r, i, a, o, s, c, l = null, u = void 0, d = !1) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
//#endregion
|
|
1061
1061
|
//#region src/labs/subjectSelect/ASubjectSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1062
|
-
var
|
|
1062
|
+
var gi = { class: "d-flex flex-column w-100 px-1 align-center" }, _i = { class: "d-flex justify-space-between w-100 align-center" }, vi = { class: "d-flex align-center" }, yi = { class: "d-flex align-center" }, bi = { class: "subject-select__sidebar system-border-r" }, xi = { class: "subject-select-filter" }, Si = { class: "subject-select__content" }, Ci = {
|
|
1063
1063
|
key: 0,
|
|
1064
1064
|
class: "d-flex w-100 align-center justify-center pa-4"
|
|
1065
|
-
},
|
|
1065
|
+
}, wi = { class: "subject-select__actions system-border-t" }, Ti = { key: 0 }, Ei = { key: 1 }, Di = /* @__PURE__ */ z({
|
|
1066
1066
|
__name: "ASubjectSelect",
|
|
1067
1067
|
props: {
|
|
1068
1068
|
selectedItems: {},
|
|
@@ -1105,11 +1105,11 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1105
1105
|
set: (e) => {
|
|
1106
1106
|
a("update:pagination", { ..._n(e) });
|
|
1107
1107
|
}
|
|
1108
|
-
}), { mdAndDown: l } =
|
|
1108
|
+
}), { mdAndDown: l } = Bn(), u = U(!l.value), d = () => {
|
|
1109
1109
|
l.value && (u.value = !1);
|
|
1110
1110
|
};
|
|
1111
1111
|
mn(dt, d);
|
|
1112
|
-
let { t: f } =
|
|
1112
|
+
let { t: f } = Tn(), p = M(() => i.selectedItems.length), m = M(() => p.value < i.minCount || p.value > i.maxCount), h = () => {
|
|
1113
1113
|
a("onOpen"), u.value = !l.value, s.value = !0;
|
|
1114
1114
|
}, g = () => {
|
|
1115
1115
|
u.value = !u.value;
|
|
@@ -1131,13 +1131,13 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1131
1131
|
closeSidebarOnMobile: d
|
|
1132
1132
|
}), (e, n) => {
|
|
1133
1133
|
let r = hn("ABtnSecondary"), i = hn("ABtnPrimary");
|
|
1134
|
-
return H(), F(j, null, [G(e.$slots, "activator", { props: { onClick: X(() => h(), ["stop"]) } }), R(
|
|
1134
|
+
return H(), F(j, null, [G(e.$slots, "activator", { props: { onClick: X(() => h(), ["stop"]) } }), R(Xn, V(e.$attrs, {
|
|
1135
1135
|
"model-value": s.value,
|
|
1136
1136
|
fullscreen: "",
|
|
1137
1137
|
class: "subject-select",
|
|
1138
1138
|
"onUpdate:modelValue": n[1] ||= (e) => a("update:modelValue", e)
|
|
1139
1139
|
}), {
|
|
1140
|
-
default: Y(() => [s.value ? (H(), N(
|
|
1140
|
+
default: Y(() => [s.value ? (H(), N(jn, {
|
|
1141
1141
|
key: 0,
|
|
1142
1142
|
class: "subject-select__card"
|
|
1143
1143
|
}, {
|
|
@@ -1149,14 +1149,14 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1149
1149
|
default: Y(() => [G(e.$slots, "title", {}, () => [L(K(q(f)(t.dialogTitleT)), 1)])]),
|
|
1150
1150
|
_: 3
|
|
1151
1151
|
}),
|
|
1152
|
-
R(
|
|
1152
|
+
R(Kn, {
|
|
1153
1153
|
density: "compact",
|
|
1154
1154
|
color: "transparent",
|
|
1155
1155
|
height: 46,
|
|
1156
1156
|
elevation: "0",
|
|
1157
1157
|
class: "system-border-b subject-select__second-bar"
|
|
1158
1158
|
}, {
|
|
1159
|
-
default: Y(() => [G(e.$slots, "second-bar", {}, () => [I("div",
|
|
1159
|
+
default: Y(() => [G(e.$slots, "second-bar", {}, () => [I("div", gi, [I("div", _i, [I("div", vi, [R($, {
|
|
1160
1160
|
icon: "",
|
|
1161
1161
|
width: 30,
|
|
1162
1162
|
height: 30,
|
|
@@ -1165,7 +1165,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1165
1165
|
default: Y(() => [R(Q, {
|
|
1166
1166
|
icon: "mdi-tune",
|
|
1167
1167
|
size: 16
|
|
1168
|
-
}), R(
|
|
1168
|
+
}), R(Fn, {
|
|
1169
1169
|
activator: "parent",
|
|
1170
1170
|
location: "bottom"
|
|
1171
1171
|
}, {
|
|
@@ -1173,37 +1173,37 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1173
1173
|
_: 1
|
|
1174
1174
|
})]),
|
|
1175
1175
|
_: 1
|
|
1176
|
-
}), G(e.$slots, "second-bar-left")]), I("div",
|
|
1176
|
+
}), G(e.$slots, "second-bar-left")]), I("div", yi, [G(e.$slots, "second-bar-right")])])])])]),
|
|
1177
1177
|
_: 3
|
|
1178
1178
|
}),
|
|
1179
|
-
I("div", { class: ln(["subject-select__main", { "subject-select__main--sidebar-active": u.value }]) }, [I("div",
|
|
1179
|
+
I("div", { class: ln(["subject-select__main", { "subject-select__main--sidebar-active": u.value }]) }, [I("div", bi, [I("div", xi, [G(e.$slots, "filter")])]), I("div", Si, [G(e.$slots, "content"), t.paginationMode === "more" ? (H(), F("div", Ci, [Cn((H(), N(r, {
|
|
1180
1180
|
loading: t.loading,
|
|
1181
1181
|
size: "small",
|
|
1182
1182
|
onClick: b
|
|
1183
1183
|
}, {
|
|
1184
1184
|
default: Y(() => [G(e.$slots, "button-confirm-title", {}, () => [L(K(q(f)("common.button.loadMore")), 1)])]),
|
|
1185
1185
|
_: 3
|
|
1186
|
-
}, 8, ["loading"])), [[
|
|
1187
|
-
|
|
1186
|
+
}, 8, ["loading"])), [[Sn, C.value || t.loading], [
|
|
1187
|
+
zn,
|
|
1188
1188
|
w,
|
|
1189
1189
|
void 0,
|
|
1190
1190
|
{ quiet: !0 }
|
|
1191
|
-
]])])) : (H(), N(
|
|
1191
|
+
]])])) : (H(), N(wr, {
|
|
1192
1192
|
key: 1,
|
|
1193
1193
|
modelValue: c.value,
|
|
1194
1194
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1195
1195
|
onChange: x
|
|
1196
1196
|
}, null, 8, ["modelValue"]))])], 2),
|
|
1197
|
-
I("div",
|
|
1198
|
-
t.minCount === t.maxCount ? (H(), F("div",
|
|
1197
|
+
I("div", wi, [
|
|
1198
|
+
t.minCount === t.maxCount ? (H(), F("div", Ti, K(q(f)("common.subjectSelect.texts.pickExactCount", {
|
|
1199
1199
|
count: t.minCount,
|
|
1200
1200
|
selected: p.value
|
|
1201
|
-
})), 1)) : (H(), F("div",
|
|
1201
|
+
})), 1)) : (H(), F("div", Ei, K(q(f)("common.subjectSelect.texts.pickRangeCount", {
|
|
1202
1202
|
minCount: t.minCount,
|
|
1203
1203
|
maxCount: t.maxCount,
|
|
1204
1204
|
selected: p.value
|
|
1205
1205
|
})), 1)),
|
|
1206
|
-
R(
|
|
1206
|
+
R(On),
|
|
1207
1207
|
R(i, {
|
|
1208
1208
|
disabled: m.value,
|
|
1209
1209
|
onClick: X(y, ["stop"])
|
|
@@ -1219,42 +1219,42 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1219
1219
|
}, 16, ["model-value"])], 64);
|
|
1220
1220
|
};
|
|
1221
1221
|
}
|
|
1222
|
-
}),
|
|
1222
|
+
}), Oi = {
|
|
1223
1223
|
key: 0,
|
|
1224
1224
|
class: "a-le-header"
|
|
1225
|
-
},
|
|
1225
|
+
}, ki = {
|
|
1226
1226
|
key: 0,
|
|
1227
1227
|
class: "a-le-title-heading"
|
|
1228
|
-
},
|
|
1228
|
+
}, Ai = ["data-unsaved-count"], ji = {
|
|
1229
1229
|
key: 1,
|
|
1230
1230
|
class: "a-le-state a-le-state--loading"
|
|
1231
|
-
},
|
|
1231
|
+
}, Mi = {
|
|
1232
1232
|
key: 2,
|
|
1233
1233
|
class: "a-le-state a-le-state--error"
|
|
1234
|
-
},
|
|
1234
|
+
}, Ni = {
|
|
1235
1235
|
key: 3,
|
|
1236
1236
|
class: "a-le-state a-le-state--empty"
|
|
1237
|
-
},
|
|
1237
|
+
}, Pi = [
|
|
1238
1238
|
"data-id",
|
|
1239
1239
|
"tabindex",
|
|
1240
1240
|
"onKeydown"
|
|
1241
|
-
],
|
|
1241
|
+
], Fi = ["onClick"], Ii = { class: "a-le-row-main" }, Li = { class: "a-le-title" }, Ri = {
|
|
1242
1242
|
key: 0,
|
|
1243
1243
|
class: "a-le-status"
|
|
1244
|
-
},
|
|
1244
|
+
}, zi = {
|
|
1245
1245
|
key: 0,
|
|
1246
1246
|
class: "a-le-status-badge"
|
|
1247
|
-
},
|
|
1247
|
+
}, Bi = { class: "a-le-actions" }, Vi = { class: "a-le-row-body" }, Hi = { class: "a-le-form" }, Ui = {
|
|
1248
1248
|
key: 0,
|
|
1249
1249
|
class: "a-le-row-footer"
|
|
1250
|
-
},
|
|
1250
|
+
}, Wi = {
|
|
1251
1251
|
key: 1,
|
|
1252
1252
|
class: "a-le-row-body"
|
|
1253
|
-
},
|
|
1253
|
+
}, Gi = { class: "a-le-form" }, Ki = {
|
|
1254
1254
|
class: "a-le-sr-only",
|
|
1255
1255
|
"aria-live": "polite",
|
|
1256
1256
|
role: "status"
|
|
1257
|
-
},
|
|
1257
|
+
}, qi = /* @__PURE__ */ z({
|
|
1258
1258
|
__name: "AListEditor",
|
|
1259
1259
|
props: /*@__PURE__*/ B({
|
|
1260
1260
|
factory: {
|
|
@@ -1374,7 +1374,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1374
1374
|
"item-expand"
|
|
1375
1375
|
], ["update:modelValue"]),
|
|
1376
1376
|
setup(e, { expose: t, emit: n }) {
|
|
1377
|
-
let r = e, i = n, a =
|
|
1377
|
+
let r = e, i = n, a = yn(e, "modelValue"), { t: o } = Tn(), s = bn(), c = Bn(), l = xn("rootEl"), u = M(() => c.platform.value.touch), f = {
|
|
1378
1378
|
get: () => a.value,
|
|
1379
1379
|
set: (e) => a.value = e,
|
|
1380
1380
|
factory: r.factory,
|
|
@@ -1404,7 +1404,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1404
1404
|
S.has(i) || (S.add(i), r > 0 && console.warn(`[list-editor] ${r} row(s) resolve to an undefined key (key-field "${y.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 "${y.value}"): ${[...n].join(", ")}. Row keys must be unique — dirty tracking and validation rails target rows by key.`));
|
|
1405
1405
|
};
|
|
1406
1406
|
J(x, (e) => C(e), { immediate: !0 }), J(() => x.value.map((e) => String(e.key)).join("|"), () => _.retainOwners(x.value.map((e) => e.key)), { flush: "post" });
|
|
1407
|
-
let w = U(/* @__PURE__ */ new Set()), T =
|
|
1407
|
+
let w = U(/* @__PURE__ */ new Set()), T = xn("rowsContainer"), ee = M(() => !r.chips && !!s.item), te = M(() => !r.chips && !!s["item-readonly"]), { editingKeys: E, editingSnapshots: D, beginEdit: O, cancelEdit: ne, commitEdit: re, closeEdit: ae, requestAutoOpen: oe } = m({
|
|
1408
1408
|
rowsContainer: T,
|
|
1409
1409
|
rowSelector: ".a-le-row",
|
|
1410
1410
|
isInlineEdit: ee,
|
|
@@ -1582,16 +1582,16 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1582
1582
|
ref: T,
|
|
1583
1583
|
class: "a-le-card"
|
|
1584
1584
|
}, [
|
|
1585
|
-
ve.value ? (H(), F("div",
|
|
1585
|
+
ve.value ? (H(), F("div", Oi, [G(t.$slots, "header", { title: e.title }, () => [e.title ? (H(), F("h3", ki, K(e.title), 1)) : P("", !0)]), _e.value ? (H(), F("span", {
|
|
1586
1586
|
key: 0,
|
|
1587
1587
|
class: "a-le-unsaved-count",
|
|
1588
1588
|
"data-unsaved-count": q(ge)
|
|
1589
|
-
}, K(q(o)("common.sortable.pendingChanges", { count: q(ge) })), 9,
|
|
1590
|
-
e.loading ? (H(), F("div",
|
|
1589
|
+
}, K(q(o)("common.sortable.pendingChanges", { count: q(ge) })), 9, Ai)) : P("", !0)])) : P("", !0),
|
|
1590
|
+
e.loading ? (H(), F("div", ji, [R(An, {
|
|
1591
1591
|
indeterminate: "",
|
|
1592
1592
|
color: "primary",
|
|
1593
1593
|
size: "32"
|
|
1594
|
-
})])) : e.error ? (H(), F("div",
|
|
1594
|
+
})])) : e.error ? (H(), F("div", Mi, [R(kn, {
|
|
1595
1595
|
type: "error",
|
|
1596
1596
|
variant: "tonal",
|
|
1597
1597
|
density: "compact",
|
|
@@ -1599,7 +1599,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1599
1599
|
}, {
|
|
1600
1600
|
default: Y(() => [L(K(e.error), 1)]),
|
|
1601
1601
|
_: 1
|
|
1602
|
-
})])) : Ce.value ? (H(), F("div",
|
|
1602
|
+
})])) : Ce.value ? (H(), F("div", Ni, [G(t.$slots, "empty", {
|
|
1603
1603
|
readonly: e.readonly,
|
|
1604
1604
|
disabled: e.disabled,
|
|
1605
1605
|
actions: { add: De }
|
|
@@ -1634,12 +1634,12 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1634
1634
|
class: "a-le-row-header",
|
|
1635
1635
|
onClick: (e) => Me(r)
|
|
1636
1636
|
}, [
|
|
1637
|
-
I("div",
|
|
1637
|
+
I("div", Ii, [G(t.$slots, "item-compact", V({ ref_for: !0 }, Ke(r)), () => [I("span", Li, K(Ee(r.raw)), 1)]), r.unsaved ? (H(), N(Fe, {
|
|
1638
1638
|
key: 0,
|
|
1639
1639
|
"dot-only": e.chips
|
|
1640
1640
|
}, null, 8, ["dot-only"])) : P("", !0)]),
|
|
1641
|
-
e.chips ? P("", !0) : (H(), F("div",
|
|
1642
|
-
I("div",
|
|
1641
|
+
e.chips ? P("", !0) : (H(), F("div", Ri, [G(t.$slots, "item-status", V({ ref_for: !0 }, Ke(r)), () => [e.statusField && r.raw[e.statusField] != null && r.raw[e.statusField] !== "" ? (H(), F("span", zi, K(r.raw[e.statusField]), 1)) : P("", !0)])])),
|
|
1642
|
+
I("div", Bi, [G(t.$slots, "item-actions", V({ ref_for: !0 }, Ke(r)), () => [e.chips && e.showDeleteButton && me.value ? (H(), N($, {
|
|
1643
1643
|
key: 0,
|
|
1644
1644
|
icon: "",
|
|
1645
1645
|
size: "x-small",
|
|
@@ -1668,7 +1668,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1668
1668
|
default: Y(() => [R(Q, {
|
|
1669
1669
|
icon: "mdi-pencil-outline",
|
|
1670
1670
|
size: "18"
|
|
1671
|
-
}), R(
|
|
1671
|
+
}), R(Fn, {
|
|
1672
1672
|
activator: "parent",
|
|
1673
1673
|
location: "bottom",
|
|
1674
1674
|
text: q(o)("common.sortable.edit")
|
|
@@ -1687,7 +1687,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1687
1687
|
default: Y(() => [R(Q, {
|
|
1688
1688
|
icon: "mdi-trash-can-outline",
|
|
1689
1689
|
size: "18"
|
|
1690
|
-
}), R(
|
|
1690
|
+
}), R(Fn, {
|
|
1691
1691
|
activator: "parent",
|
|
1692
1692
|
location: "bottom",
|
|
1693
1693
|
text: q(o)("common.sortable.delete")
|
|
@@ -1708,16 +1708,16 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1708
1708
|
icon: "mdi-dots-vertical",
|
|
1709
1709
|
size: "18"
|
|
1710
1710
|
}),
|
|
1711
|
-
R(
|
|
1711
|
+
R(Fn, {
|
|
1712
1712
|
activator: "parent",
|
|
1713
1713
|
location: "bottom",
|
|
1714
1714
|
text: q(o)("common.sortable.more")
|
|
1715
1715
|
}, null, 8, ["text"]),
|
|
1716
|
-
R(
|
|
1717
|
-
default: Y(() => [R(
|
|
1718
|
-
default: Y(() => [R(
|
|
1716
|
+
R(Gn, { activator: "parent" }, {
|
|
1717
|
+
default: Y(() => [R(Hn, { density: "compact" }, {
|
|
1718
|
+
default: Y(() => [R(Un, { onClick: (e) => Oe(r) }, {
|
|
1719
1719
|
prepend: Y(() => [R(Q, { icon: "mdi-plus" })]),
|
|
1720
|
-
default: Y(() => [R(
|
|
1720
|
+
default: Y(() => [R(Wn, null, {
|
|
1721
1721
|
default: Y(() => [L(K(q(o)("common.sortable.addAfter")), 1)]),
|
|
1722
1722
|
_: 1
|
|
1723
1723
|
})]),
|
|
@@ -1731,7 +1731,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1731
1731
|
_: 2
|
|
1732
1732
|
}, 1024)) : P("", !0)
|
|
1733
1733
|
], 64))])])
|
|
1734
|
-
], 8,
|
|
1734
|
+
], 8, Fi), (r.editing || e.defaultExpanded) && t.$slots.item ? (H(), F(j, { key: 0 }, [I("div", Vi, [I("div", Hi, [G(t.$slots, "item", V({ ref_for: !0 }, Ke(r)))])]), G(t.$slots, "item-footer", V({ ref_for: !0 }, Ke(r)), () => [ye.value && !e.defaultExpanded ? (H(), F("div", Ui, [
|
|
1735
1735
|
n[1] ||= I("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
1736
1736
|
R($, {
|
|
1737
1737
|
variant: "text",
|
|
@@ -1751,7 +1751,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1751
1751
|
default: Y(() => [L(K(q(o)("common.button.save")), 1)]),
|
|
1752
1752
|
_: 1
|
|
1753
1753
|
}, 8, ["disabled", "onClick"])
|
|
1754
|
-
])) : P("", !0)])], 64)) : t.$slots["item-readonly"] && (e.readonly || r.expanded) ? (H(), F("div",
|
|
1754
|
+
])) : P("", !0)])], 64)) : t.$slots["item-readonly"] && (e.readonly || r.expanded) ? (H(), F("div", Wi, [I("div", Gi, [G(t.$slots, "item-readonly", V({ ref_for: !0 }, Ke(r)))])])) : P("", !0)], 42, Pi),
|
|
1755
1755
|
G(t.$slots, "after-item", V({ ref_for: !0 }, Ke(r)))
|
|
1756
1756
|
]))), 128)),
|
|
1757
1757
|
he.value && !e.loading && !e.error && !Ce.value ? G(t.$slots, "add-button", {
|
|
@@ -1790,36 +1790,36 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1790
1790
|
"onConfirm",
|
|
1791
1791
|
"onCancel"
|
|
1792
1792
|
]),
|
|
1793
|
-
I("div",
|
|
1793
|
+
I("div", Ki, K(q(Te).grabbedKey.value === null ? "" : q(o)("common.sortable.keyboardGrab.status", {
|
|
1794
1794
|
n: q(Te).grabbedIndex.value + 1,
|
|
1795
1795
|
total: q(Te).totalCount.value
|
|
1796
1796
|
})), 1)
|
|
1797
1797
|
], 2));
|
|
1798
1798
|
}
|
|
1799
|
-
}),
|
|
1800
|
-
let r =
|
|
1799
|
+
}), Ji = (e, t) => e.find((e) => e.key === t) ?? null, Yi = (e, t, n) => {
|
|
1800
|
+
let r = Ji(e, n);
|
|
1801
1801
|
for (; r && r.parentKey !== null;) {
|
|
1802
1802
|
if (r.parentKey === t) return !0;
|
|
1803
|
-
r =
|
|
1803
|
+
r = Ji(e, r.parentKey);
|
|
1804
1804
|
}
|
|
1805
1805
|
return !1;
|
|
1806
|
-
},
|
|
1807
|
-
let r =
|
|
1806
|
+
}, Xi = (e, t, n) => {
|
|
1807
|
+
let r = Ji(e, t);
|
|
1808
1808
|
for (; r && r.depth > n;) {
|
|
1809
1809
|
if (r.parentKey === null) return null;
|
|
1810
|
-
r =
|
|
1810
|
+
r = Ji(e, r.parentKey);
|
|
1811
1811
|
}
|
|
1812
1812
|
return r && r.depth === n ? r : null;
|
|
1813
|
-
},
|
|
1813
|
+
}, Zi = (e, t, n) => n === t || Yi(e, t, n), Qi = (e, t, n, r) => {
|
|
1814
1814
|
for (let i = t; i >= 0 && i < e.length; i += n) {
|
|
1815
1815
|
let t = e[i];
|
|
1816
|
-
if (!
|
|
1816
|
+
if (!Zi(e, r, t.key)) return t;
|
|
1817
1817
|
}
|
|
1818
1818
|
return null;
|
|
1819
|
-
},
|
|
1819
|
+
}, $i = (e) => {
|
|
1820
1820
|
let { pointer: t, hoveredRow: n, sourceKey: r, sourceSubtreeDepth: i, viewItems: a, maxDepth: o, indentPx: s, containerLeft: c, containerPaddingLeft: l } = e;
|
|
1821
|
-
if (n.key === r ||
|
|
1822
|
-
let u = t.y - n.rect.top < n.rect.height / 2, d = u ? "top" : "bottom", f = a.findIndex((e) => e.key === n.key), p = u ?
|
|
1821
|
+
if (n.key === r || Yi(a, r, n.key)) return null;
|
|
1822
|
+
let u = t.y - n.rect.top < n.rect.height / 2, d = u ? "top" : "bottom", f = a.findIndex((e) => e.key === n.key), p = u ? Qi(a, f - 1, -1, r) : Qi(a, f, -1, r), m = u ? Qi(a, f, 1, r) : Qi(a, f + 1, 1, r), h = t.x - c - l, g = Math.round(h / s), _ = p ? p.depth + 1 : 0, v = m ? m.depth : 0, y = Math.max(v, Math.min(g, _)), b;
|
|
1823
1823
|
if (!p) b = {
|
|
1824
1824
|
type: "insert",
|
|
1825
1825
|
refKey: n.key,
|
|
@@ -1851,7 +1851,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1851
1851
|
levelRowKey: p.key
|
|
1852
1852
|
};
|
|
1853
1853
|
else {
|
|
1854
|
-
let e =
|
|
1854
|
+
let e = Xi(a, p.key, y);
|
|
1855
1855
|
b = e ? {
|
|
1856
1856
|
type: "insert",
|
|
1857
1857
|
refKey: n.key,
|
|
@@ -1877,31 +1877,31 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1877
1877
|
desired: b,
|
|
1878
1878
|
reason: "maxDepth"
|
|
1879
1879
|
} : b;
|
|
1880
|
-
},
|
|
1880
|
+
}, ea = [
|
|
1881
1881
|
"data-id",
|
|
1882
1882
|
"aria-level",
|
|
1883
1883
|
"tabindex"
|
|
1884
|
-
],
|
|
1884
|
+
], ta = ["aria-label"], na = {
|
|
1885
1885
|
key: 2,
|
|
1886
1886
|
class: "a-nested-list-editor__tree-toggle a-nested-list-editor__tree-toggle--spacer",
|
|
1887
1887
|
"aria-hidden": "true"
|
|
1888
|
-
},
|
|
1888
|
+
}, ra = { class: "a-le-row-main" }, ia = { class: "a-le-title" }, aa = {
|
|
1889
1889
|
key: 0,
|
|
1890
1890
|
class: "a-nested-list-editor__drag-count",
|
|
1891
1891
|
"aria-hidden": "true"
|
|
1892
|
-
},
|
|
1892
|
+
}, oa = {
|
|
1893
1893
|
key: 3,
|
|
1894
1894
|
class: "a-le-status"
|
|
1895
|
-
},
|
|
1895
|
+
}, sa = {
|
|
1896
1896
|
key: 0,
|
|
1897
1897
|
class: "a-le-status-badge"
|
|
1898
|
-
},
|
|
1898
|
+
}, ca = { class: "a-le-actions" }, la = { class: "a-le-row-body" }, ua = { class: "a-le-form" }, da = {
|
|
1899
1899
|
key: 0,
|
|
1900
1900
|
class: "a-le-row-footer"
|
|
1901
|
-
},
|
|
1901
|
+
}, fa = {
|
|
1902
1902
|
key: 1,
|
|
1903
1903
|
class: "a-le-row-body"
|
|
1904
|
-
},
|
|
1904
|
+
}, pa = { class: "a-le-form" }, ma = ["data-parent-id"], ha = "a-nested-list-editor__group", ga = "a-le-drag-handle", _a = /* @__PURE__ */ z({
|
|
1905
1905
|
__name: "LeNestedRow",
|
|
1906
1906
|
props: {
|
|
1907
1907
|
vi: {},
|
|
@@ -1911,7 +1911,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1911
1911
|
callbacks: {}
|
|
1912
1912
|
},
|
|
1913
1913
|
setup(e) {
|
|
1914
|
-
let t = e, n =
|
|
1914
|
+
let t = e, n = _a, { t: r } = Tn(), i = (e) => `--row-${String(e).replace(/\W/g, "_")}`, a = (e) => {
|
|
1915
1915
|
if (typeof t.context.resolveValidation == "function") return t.context.resolveValidation(e, t.vi.key, t.vi.index);
|
|
1916
1916
|
let n = e.validationState;
|
|
1917
1917
|
return n === "valid" || n === "invalid" || n === "warning" ? n : null;
|
|
@@ -1951,7 +1951,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1951
1951
|
}, [
|
|
1952
1952
|
e.context.dragEnabled ? (H(), N(nt, {
|
|
1953
1953
|
key: 0,
|
|
1954
|
-
class: ln(
|
|
1954
|
+
class: ln(ga)
|
|
1955
1955
|
})) : P("", !0),
|
|
1956
1956
|
e.context.showExpandToggle && e.vi.childrenAllowed ? (H(), F("button", {
|
|
1957
1957
|
key: 1,
|
|
@@ -1962,17 +1962,17 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1962
1962
|
}]),
|
|
1963
1963
|
"aria-label": e.vi.childrenExpanded ? q(r)("common.sortable.close") : q(r)("common.sortable.edit"),
|
|
1964
1964
|
onClick: c[0] ||= X((t) => e.vi.hasChildren && e.callbacks.onChevronClick(e.vi), ["stop"])
|
|
1965
|
-
}, [...c[18] ||= [I("span", { class: "a-nested-list-editor__tree-toggle-caret" }, null, -1)]], 10,
|
|
1966
|
-
I("div",
|
|
1967
|
-
G(t.$slots, "item-compact", un(an(o())), () => [I("span",
|
|
1968
|
-
e.vi.hasChildren ? (H(), F("span",
|
|
1965
|
+
}, [...c[18] ||= [I("span", { class: "a-nested-list-editor__tree-toggle-caret" }, null, -1)]], 10, ta)) : e.context.showExpandToggle ? (H(), F("span", na)) : P("", !0),
|
|
1966
|
+
I("div", ra, [
|
|
1967
|
+
G(t.$slots, "item-compact", un(an(o())), () => [I("span", ia, K(e.context.resolveCompactText(e.vi.raw, e.vi.key)), 1)]),
|
|
1968
|
+
e.vi.hasChildren ? (H(), F("span", aa, [R(Q, {
|
|
1969
1969
|
icon: "mdi-file-tree",
|
|
1970
1970
|
size: "14"
|
|
1971
1971
|
}), L(" +" + K(e.vi.childrenCount), 1)])) : P("", !0),
|
|
1972
1972
|
e.vi.unsaved ? (H(), N(Fe, { key: 1 })) : P("", !0)
|
|
1973
1973
|
]),
|
|
1974
|
-
e.context.reorderMode ? P("", !0) : (H(), F("div",
|
|
1975
|
-
I("div",
|
|
1974
|
+
e.context.reorderMode ? P("", !0) : (H(), F("div", oa, [G(t.$slots, "item-status", un(an(o())), () => [e.context.statusField && e.vi.raw[e.context.statusField] != null && e.vi.raw[e.context.statusField] !== "" ? (H(), F("span", sa, K(e.vi.raw[e.context.statusField]), 1)) : P("", !0)])])),
|
|
1975
|
+
I("div", ca, [G(t.$slots, "item-actions", un(an(o())), () => [e.context.reorderMode ? (H(), F(j, { key: 0 }, [
|
|
1976
1976
|
R($, {
|
|
1977
1977
|
icon: "",
|
|
1978
1978
|
size: "small",
|
|
@@ -1985,7 +1985,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
1985
1985
|
default: Y(() => [R(Q, {
|
|
1986
1986
|
icon: "mdi-arrow-up",
|
|
1987
1987
|
size: "18"
|
|
1988
|
-
}), R(
|
|
1988
|
+
}), R(Fn, {
|
|
1989
1989
|
activator: "parent",
|
|
1990
1990
|
location: "bottom",
|
|
1991
1991
|
text: q(r)("common.sortable.moveUp")
|
|
@@ -2004,7 +2004,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2004
2004
|
default: Y(() => [R(Q, {
|
|
2005
2005
|
icon: "mdi-arrow-down",
|
|
2006
2006
|
size: "18"
|
|
2007
|
-
}), R(
|
|
2007
|
+
}), R(Fn, {
|
|
2008
2008
|
activator: "parent",
|
|
2009
2009
|
location: "bottom",
|
|
2010
2010
|
text: q(r)("common.sortable.moveDown")
|
|
@@ -2024,81 +2024,81 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2024
2024
|
icon: "mdi-dots-vertical",
|
|
2025
2025
|
size: "18"
|
|
2026
2026
|
}),
|
|
2027
|
-
R(
|
|
2027
|
+
R(Fn, {
|
|
2028
2028
|
activator: "parent",
|
|
2029
2029
|
location: "bottom",
|
|
2030
2030
|
text: q(r)("common.sortable.more")
|
|
2031
2031
|
}, null, 8, ["text"]),
|
|
2032
|
-
R(
|
|
2033
|
-
default: Y(() => [R(
|
|
2032
|
+
R(Gn, { activator: "parent" }, {
|
|
2033
|
+
default: Y(() => [R(Hn, { density: "compact" }, {
|
|
2034
2034
|
default: Y(() => [
|
|
2035
|
-
R(
|
|
2035
|
+
R(Un, {
|
|
2036
2036
|
disabled: e.vi.firstInParent,
|
|
2037
2037
|
onClick: c[3] ||= X((t) => e.callbacks.moveTop(e.vi.key), ["stop"])
|
|
2038
2038
|
}, {
|
|
2039
2039
|
prepend: Y(() => [R(Q, { icon: "mdi-arrow-collapse-up" })]),
|
|
2040
|
-
default: Y(() => [R(
|
|
2040
|
+
default: Y(() => [R(Wn, null, {
|
|
2041
2041
|
default: Y(() => [L(K(q(r)("common.sortable.moveToTop")), 1)]),
|
|
2042
2042
|
_: 1
|
|
2043
2043
|
})]),
|
|
2044
2044
|
_: 1
|
|
2045
2045
|
}, 8, ["disabled"]),
|
|
2046
|
-
R(
|
|
2046
|
+
R(Un, {
|
|
2047
2047
|
disabled: e.vi.lastInParent,
|
|
2048
2048
|
onClick: c[4] ||= X((t) => e.callbacks.moveBottom(e.vi.key), ["stop"])
|
|
2049
2049
|
}, {
|
|
2050
2050
|
prepend: Y(() => [R(Q, { icon: "mdi-arrow-collapse-down" })]),
|
|
2051
|
-
default: Y(() => [R(
|
|
2051
|
+
default: Y(() => [R(Wn, null, {
|
|
2052
2052
|
default: Y(() => [L(K(q(r)("common.sortable.moveToBottom")), 1)]),
|
|
2053
2053
|
_: 1
|
|
2054
2054
|
})]),
|
|
2055
2055
|
_: 1
|
|
2056
2056
|
}, 8, ["disabled"]),
|
|
2057
|
-
e.context.showMoveToPosition && (!e.vi.firstInParent || !e.vi.lastInParent) ? (H(), N(
|
|
2057
|
+
e.context.showMoveToPosition && (!e.vi.firstInParent || !e.vi.lastInParent) ? (H(), N(Un, {
|
|
2058
2058
|
key: 0,
|
|
2059
2059
|
onClick: c[5] ||= X((t) => e.callbacks.openMoveToPosition(e.vi), ["stop"])
|
|
2060
2060
|
}, {
|
|
2061
2061
|
prepend: Y(() => [R(Q, { icon: "mdi-target" })]),
|
|
2062
|
-
default: Y(() => [R(
|
|
2062
|
+
default: Y(() => [R(Wn, null, {
|
|
2063
2063
|
default: Y(() => [L(K(q(r)("common.sortable.moveToPosition.action")), 1)]),
|
|
2064
2064
|
_: 1
|
|
2065
2065
|
})]),
|
|
2066
2066
|
_: 1
|
|
2067
2067
|
})) : P("", !0),
|
|
2068
|
-
e.context.showChangeParent ? (H(), N(
|
|
2068
|
+
e.context.showChangeParent ? (H(), N(Un, {
|
|
2069
2069
|
key: 1,
|
|
2070
2070
|
onClick: c[6] ||= X((t) => e.callbacks.openChangeParent(e.vi), ["stop"])
|
|
2071
2071
|
}, {
|
|
2072
2072
|
prepend: Y(() => [R(Q, { icon: "mdi-folder-move-outline" })]),
|
|
2073
|
-
default: Y(() => [R(
|
|
2073
|
+
default: Y(() => [R(Wn, null, {
|
|
2074
2074
|
default: Y(() => [L(K(q(r)("common.sortable.changeParent.action")), 1)]),
|
|
2075
2075
|
_: 1
|
|
2076
2076
|
})]),
|
|
2077
2077
|
_: 1
|
|
2078
2078
|
})) : P("", !0),
|
|
2079
|
-
R(
|
|
2079
|
+
R(Un, {
|
|
2080
2080
|
disabled: !e.vi.canIndent,
|
|
2081
2081
|
onClick: c[7] ||= X((t) => e.callbacks.indent(e.vi), ["stop"])
|
|
2082
2082
|
}, {
|
|
2083
2083
|
prepend: Y(() => [R(Q, { icon: "mdi-format-indent-increase" })]),
|
|
2084
|
-
default: Y(() => [R(
|
|
2084
|
+
default: Y(() => [R(Wn, null, {
|
|
2085
2085
|
default: Y(() => [L(K(q(r)("common.sortable.indent")), 1)]),
|
|
2086
2086
|
_: 1
|
|
2087
2087
|
})]),
|
|
2088
2088
|
_: 1
|
|
2089
2089
|
}, 8, ["disabled"]),
|
|
2090
|
-
R(
|
|
2090
|
+
R(Un, {
|
|
2091
2091
|
disabled: !e.vi.canOutdent,
|
|
2092
2092
|
onClick: c[8] ||= X((t) => e.callbacks.outdent(e.vi), ["stop"])
|
|
2093
2093
|
}, {
|
|
2094
2094
|
prepend: Y(() => [R(Q, { icon: "mdi-format-indent-decrease" })]),
|
|
2095
|
-
default: Y(() => [R(
|
|
2095
|
+
default: Y(() => [R(Wn, null, {
|
|
2096
2096
|
default: Y(() => [L(K(q(r)("common.sortable.outdent")), 1)]),
|
|
2097
2097
|
_: 1
|
|
2098
2098
|
})]),
|
|
2099
2099
|
_: 1
|
|
2100
2100
|
}, 8, ["disabled"]),
|
|
2101
|
-
e.context.showDeleteButton && e.context.canInteract ? (H(), N(
|
|
2101
|
+
e.context.showDeleteButton && e.context.canInteract ? (H(), N(Un, {
|
|
2102
2102
|
key: 2,
|
|
2103
2103
|
onClick: c[9] ||= X((t) => e.callbacks.onDeleteClick(e.vi), ["stop"])
|
|
2104
2104
|
}, {
|
|
@@ -2106,7 +2106,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2106
2106
|
icon: "mdi-trash-can-outline",
|
|
2107
2107
|
color: "error"
|
|
2108
2108
|
})]),
|
|
2109
|
-
default: Y(() => [R(
|
|
2109
|
+
default: Y(() => [R(Wn, { class: "text-error" }, {
|
|
2110
2110
|
default: Y(() => [L(K(q(r)("common.sortable.delete")), 1)]),
|
|
2111
2111
|
_: 1
|
|
2112
2112
|
})]),
|
|
@@ -2134,7 +2134,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2134
2134
|
default: Y(() => [R(Q, {
|
|
2135
2135
|
icon: "mdi-pencil-outline",
|
|
2136
2136
|
size: "18"
|
|
2137
|
-
}), R(
|
|
2137
|
+
}), R(Fn, {
|
|
2138
2138
|
activator: "parent",
|
|
2139
2139
|
location: "bottom",
|
|
2140
2140
|
text: q(r)("common.sortable.edit")
|
|
@@ -2153,7 +2153,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2153
2153
|
default: Y(() => [R(Q, {
|
|
2154
2154
|
icon: "mdi-trash-can-outline",
|
|
2155
2155
|
size: "18"
|
|
2156
|
-
}), R(
|
|
2156
|
+
}), R(Fn, {
|
|
2157
2157
|
activator: "parent",
|
|
2158
2158
|
location: "bottom",
|
|
2159
2159
|
text: q(r)("common.sortable.delete")
|
|
@@ -2174,29 +2174,29 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2174
2174
|
icon: "mdi-dots-vertical",
|
|
2175
2175
|
size: "18"
|
|
2176
2176
|
}),
|
|
2177
|
-
R(
|
|
2177
|
+
R(Fn, {
|
|
2178
2178
|
activator: "parent",
|
|
2179
2179
|
location: "bottom",
|
|
2180
2180
|
text: q(r)("common.sortable.more")
|
|
2181
2181
|
}, null, 8, ["text"]),
|
|
2182
|
-
R(
|
|
2183
|
-
default: Y(() => [R(
|
|
2184
|
-
default: Y(() => [e.context.showAddAfterAction ? (H(), N(
|
|
2182
|
+
R(Gn, { activator: "parent" }, {
|
|
2183
|
+
default: Y(() => [R(Hn, { density: "compact" }, {
|
|
2184
|
+
default: Y(() => [e.context.showAddAfterAction ? (H(), N(Un, {
|
|
2185
2185
|
key: 0,
|
|
2186
2186
|
onClick: c[12] ||= X((t) => e.callbacks.onAddAfterClick(e.vi), ["stop"])
|
|
2187
2187
|
}, {
|
|
2188
2188
|
prepend: Y(() => [R(Q, { icon: "mdi-playlist-plus" })]),
|
|
2189
|
-
default: Y(() => [R(
|
|
2189
|
+
default: Y(() => [R(Wn, null, {
|
|
2190
2190
|
default: Y(() => [L(K(q(r)("common.sortable.addAfter")), 1)]),
|
|
2191
2191
|
_: 1
|
|
2192
2192
|
})]),
|
|
2193
2193
|
_: 1
|
|
2194
|
-
})) : P("", !0), e.context.showAddChildButton && e.vi.canAddChild ? (H(), N(
|
|
2194
|
+
})) : P("", !0), e.context.showAddChildButton && e.vi.canAddChild ? (H(), N(Un, {
|
|
2195
2195
|
key: 1,
|
|
2196
2196
|
onClick: c[13] ||= X((t) => e.callbacks.onAddChildClick(e.vi), ["stop"])
|
|
2197
2197
|
}, {
|
|
2198
2198
|
prepend: Y(() => [R(Q, { icon: "mdi-subdirectory-arrow-right" })]),
|
|
2199
|
-
default: Y(() => [R(
|
|
2199
|
+
default: Y(() => [R(Wn, null, {
|
|
2200
2200
|
default: Y(() => [L(K(q(r)("common.sortable.addChild")), 1)]),
|
|
2201
2201
|
_: 1
|
|
2202
2202
|
})]),
|
|
@@ -2210,7 +2210,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2210
2210
|
_: 1
|
|
2211
2211
|
})) : P("", !0)
|
|
2212
2212
|
], 64))])])
|
|
2213
|
-
]), e.vi.editing && !e.context.reorderMode && t.$slots.item ? (H(), F(j, { key: 0 }, [I("div",
|
|
2213
|
+
]), e.vi.editing && !e.context.reorderMode && t.$slots.item ? (H(), F(j, { key: 0 }, [I("div", la, [I("div", ua, [G(t.$slots, "item", un(an(o())))])]), G(t.$slots, "item-footer", un(an(o())), () => [e.context.showInlineSaveFooter ? (H(), F("div", da, [
|
|
2214
2214
|
c[19] ||= I("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
2215
2215
|
R($, {
|
|
2216
2216
|
variant: "text",
|
|
@@ -2230,14 +2230,14 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2230
2230
|
default: Y(() => [L(K(q(r)("common.button.save")), 1)]),
|
|
2231
2231
|
_: 1
|
|
2232
2232
|
}, 8, ["disabled"])
|
|
2233
|
-
])) : P("", !0)])], 64)) : t.$slots["item-readonly"] && (e.context.readonly || e.vi.expanded) && !e.context.reorderMode ? (H(), F("div",
|
|
2233
|
+
])) : P("", !0)])], 64)) : t.$slots["item-readonly"] && (e.context.readonly || e.vi.expanded) && !e.context.reorderMode ? (H(), F("div", fa, [I("div", pa, [G(t.$slots, "item-readonly", un(an(o())))])])) : P("", !0)], 6),
|
|
2234
2234
|
G(t.$slots, "after-item", un(an(o()))),
|
|
2235
2235
|
e.vi.hasChildren && e.vi.childrenExpanded ? (H(), F("div", {
|
|
2236
2236
|
key: 0,
|
|
2237
2237
|
class: "a-nested-list-editor__children",
|
|
2238
2238
|
style: dn({ "--parent-depth": e.vi.depth })
|
|
2239
2239
|
}, [I("div", {
|
|
2240
|
-
class: ln([
|
|
2240
|
+
class: ln([ha]),
|
|
2241
2241
|
"data-parent-id": String(e.vi.key)
|
|
2242
2242
|
}, [(H(!0), F(j, null, W(s(), (r) => (H(), N(q(n), {
|
|
2243
2243
|
key: String(r.key),
|
|
@@ -2262,10 +2262,10 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2262
2262
|
"drag-state",
|
|
2263
2263
|
"context",
|
|
2264
2264
|
"callbacks"
|
|
2265
|
-
]))), 128))], 10,
|
|
2266
|
-
], 42,
|
|
2265
|
+
]))), 128))], 10, ma)], 4)) : P("", !0)
|
|
2266
|
+
], 42, ea));
|
|
2267
2267
|
}
|
|
2268
|
-
}),
|
|
2268
|
+
}), va = { class: "text-body-medium mb-2" }, ya = /*#__PURE__*/ wt(/* @__PURE__ */ z({
|
|
2269
2269
|
__name: "LeChangeParentDialog",
|
|
2270
2270
|
props: /*@__PURE__*/ B({
|
|
2271
2271
|
tree: {},
|
|
@@ -2283,7 +2283,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2283
2283
|
}),
|
|
2284
2284
|
emits: /*@__PURE__*/ B(["confirm"], ["update:modelValue"]),
|
|
2285
2285
|
setup(e, { emit: t }) {
|
|
2286
|
-
let n = e, r = t, i =
|
|
2286
|
+
let n = e, r = t, i = yn(e, "modelValue"), { t: a } = Tn(), o = U(void 0), s = U("last");
|
|
2287
2287
|
J(i, (e) => {
|
|
2288
2288
|
e && (o.value = void 0, s.value = "last");
|
|
2289
2289
|
});
|
|
@@ -2359,23 +2359,23 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2359
2359
|
}, _ = () => {
|
|
2360
2360
|
i.value = !1;
|
|
2361
2361
|
}, v = (e) => `${e * 16}px`, y = (e) => e === "maxDepth" ? a("common.sortable.changeParent.errorMaxDepth") : "";
|
|
2362
|
-
return (e, t) => (H(), N(
|
|
2362
|
+
return (e, t) => (H(), N(Xn, {
|
|
2363
2363
|
modelValue: i.value,
|
|
2364
2364
|
"onUpdate:modelValue": t[1] ||= (e) => i.value = e,
|
|
2365
2365
|
"max-width": "540",
|
|
2366
2366
|
persistent: ""
|
|
2367
2367
|
}, {
|
|
2368
|
-
default: Y(() => [R(
|
|
2368
|
+
default: Y(() => [R(jn, null, {
|
|
2369
2369
|
default: Y(() => [
|
|
2370
|
-
R(
|
|
2370
|
+
R(Pn, null, {
|
|
2371
2371
|
default: Y(() => [L(K(q(a)("common.sortable.changeParent.title")), 1)]),
|
|
2372
2372
|
_: 1
|
|
2373
2373
|
}),
|
|
2374
|
-
f.value.length === 0 ? (H(), N(
|
|
2374
|
+
f.value.length === 0 ? (H(), N(Nn, {
|
|
2375
2375
|
key: 0,
|
|
2376
2376
|
class: "text-body-medium"
|
|
2377
2377
|
}, {
|
|
2378
|
-
default: Y(() => [R(
|
|
2378
|
+
default: Y(() => [R(kn, {
|
|
2379
2379
|
type: "info",
|
|
2380
2380
|
variant: "tonal",
|
|
2381
2381
|
density: "compact"
|
|
@@ -2384,12 +2384,12 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2384
2384
|
_: 1
|
|
2385
2385
|
})]),
|
|
2386
2386
|
_: 1
|
|
2387
|
-
})) : (H(), F(j, { key: 1 }, [R(
|
|
2388
|
-
default: Y(() => [R(
|
|
2387
|
+
})) : (H(), F(j, { key: 1 }, [R(Nn, { class: "pb-1" }, {
|
|
2388
|
+
default: Y(() => [R(Hn, {
|
|
2389
2389
|
density: "compact",
|
|
2390
2390
|
class: "le-change-parent__list"
|
|
2391
2391
|
}, {
|
|
2392
|
-
default: Y(() => [(H(!0), F(j, null, W(d.value, (e) => (H(), N(
|
|
2392
|
+
default: Y(() => [(H(!0), F(j, null, W(d.value, (e) => (H(), N(Un, {
|
|
2393
2393
|
key: e.key === null ? "__root__" : String(e.key),
|
|
2394
2394
|
disabled: e.disallowed,
|
|
2395
2395
|
active: o.value === e.key,
|
|
@@ -2427,20 +2427,20 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2427
2427
|
_: 1
|
|
2428
2428
|
})]),
|
|
2429
2429
|
_: 1
|
|
2430
|
-
}), m.value ? (H(), N(
|
|
2430
|
+
}), m.value ? (H(), N(Nn, {
|
|
2431
2431
|
key: 0,
|
|
2432
2432
|
class: "pt-0"
|
|
2433
2433
|
}, {
|
|
2434
|
-
default: Y(() => [I("div",
|
|
2434
|
+
default: Y(() => [I("div", va, K(q(a)("common.sortable.changeParent.placementHeading", { label: p.value?.label ?? "" })), 1), R(dr, {
|
|
2435
2435
|
modelValue: s.value,
|
|
2436
2436
|
"onUpdate:modelValue": t[0] ||= (e) => s.value = e,
|
|
2437
2437
|
density: "compact",
|
|
2438
2438
|
"hide-details": ""
|
|
2439
2439
|
}, {
|
|
2440
|
-
default: Y(() => [R(
|
|
2440
|
+
default: Y(() => [R(ur, {
|
|
2441
2441
|
value: "first",
|
|
2442
2442
|
label: q(a)("common.sortable.changeParent.placeFirst")
|
|
2443
|
-
}, null, 8, ["label"]), R(
|
|
2443
|
+
}, null, 8, ["label"]), R(ur, {
|
|
2444
2444
|
value: "last",
|
|
2445
2445
|
label: q(a)("common.sortable.changeParent.placeLast")
|
|
2446
2446
|
}, null, 8, ["label"])]),
|
|
@@ -2448,9 +2448,9 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2448
2448
|
}, 8, ["modelValue"])]),
|
|
2449
2449
|
_: 1
|
|
2450
2450
|
})) : P("", !0)], 64)),
|
|
2451
|
-
R(
|
|
2451
|
+
R(Mn, null, {
|
|
2452
2452
|
default: Y(() => [
|
|
2453
|
-
R(
|
|
2453
|
+
R(On),
|
|
2454
2454
|
R($, {
|
|
2455
2455
|
variant: "text",
|
|
2456
2456
|
onClick: _
|
|
@@ -2476,26 +2476,26 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2476
2476
|
_: 1
|
|
2477
2477
|
}, 8, ["modelValue"]));
|
|
2478
2478
|
}
|
|
2479
|
-
}), [["__scopeId", "data-v-e065d108"]]),
|
|
2479
|
+
}), [["__scopeId", "data-v-e065d108"]]), ba = { class: "a-le-card" }, xa = {
|
|
2480
2480
|
key: 0,
|
|
2481
2481
|
class: "a-le-header"
|
|
2482
|
-
},
|
|
2482
|
+
}, Sa = {
|
|
2483
2483
|
key: 0,
|
|
2484
2484
|
class: "a-le-title-heading"
|
|
2485
|
-
},
|
|
2485
|
+
}, Ca = { class: "a-le-header-actions" }, wa = {
|
|
2486
2486
|
key: 1,
|
|
2487
2487
|
class: "a-le-state a-le-state--loading"
|
|
2488
|
-
},
|
|
2488
|
+
}, Ta = {
|
|
2489
2489
|
key: 2,
|
|
2490
2490
|
class: "a-le-state a-le-state--error"
|
|
2491
|
-
},
|
|
2491
|
+
}, Ea = {
|
|
2492
2492
|
key: 3,
|
|
2493
2493
|
class: "a-le-state a-le-state--empty"
|
|
2494
|
-
},
|
|
2494
|
+
}, Da = {
|
|
2495
2495
|
class: "a-le-sr-only",
|
|
2496
2496
|
"aria-live": "polite",
|
|
2497
2497
|
role: "status"
|
|
2498
|
-
},
|
|
2498
|
+
}, Oa = "a-nested-list-editor__group", ka = 24, Aa = 22, ja = /* @__PURE__ */ z({
|
|
2499
2499
|
__name: "ANestedSortableListEditor",
|
|
2500
2500
|
props: /*@__PURE__*/ B({
|
|
2501
2501
|
maxDepth: {},
|
|
@@ -2651,7 +2651,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2651
2651
|
"outdent"
|
|
2652
2652
|
], ["update:modelValue", "update:mode"]),
|
|
2653
2653
|
setup(e, { expose: n, emit: r }) {
|
|
2654
|
-
let i = e, a = r, o =
|
|
2654
|
+
let i = e, a = r, o = yn(e, "modelValue"), s = yn(e, "mode"), { t: l } = Tn(), u = bn(), { showWarningT: f } = t(), p = xn("rootEl"), { isNarrow: h } = b(p), g = De(), v = M(() => i.closeVariant === "icon" ? "icon" : i.closeVariant === "labeled" ? "labeled" : h.value ? "icon" : "labeled"), y = U(/* @__PURE__ */ new Set()), x = U(/* @__PURE__ */ new Set()), S = i.getKey ?? "id", C = typeof S == "function" ? "id" : S, T = (e) => typeof S == "function" ? S(e) : e[S], ee = (() => {
|
|
2655
2655
|
let e = i.position;
|
|
2656
2656
|
return e === void 0 || e === !1 ? "position" : typeof e == "object" ? e.field : e;
|
|
2657
2657
|
})();
|
|
@@ -2735,7 +2735,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2735
2735
|
}
|
|
2736
2736
|
for (let e of pe.keys()) t.has(e) || pe.delete(e);
|
|
2737
2737
|
return e;
|
|
2738
|
-
}), he = M(() => o.value.children.length === 0), ge = M(() => ne.value.length), _e =
|
|
2738
|
+
}), he = M(() => o.value.children.length === 0), ge = M(() => ne.value.length), _e = xn("rowsContainer"), ve = M(() => !i.readonly && !i.disabled && !i.loading), ye = M(() => ve.value && !i.disableReorder && ge.value > 1), be = M(() => !!u.item), xe = M(() => !!u["item-readonly"]), Ce = M(() => !!i.onItemSave), { editingKeys: Te, editingSnapshots: Ee, clearEditing: Oe, beginEdit: ke, cancelEdit: Ae, commitEdit: je, closeEdit: Me, requestAutoOpen: Ne } = m({
|
|
2739
2739
|
rowsContainer: _e,
|
|
2740
2740
|
rowSelector: ".a-le-row-wrapper",
|
|
2741
2741
|
isInlineEdit: be,
|
|
@@ -2823,7 +2823,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2823
2823
|
return;
|
|
2824
2824
|
}
|
|
2825
2825
|
let r = _e.value.getBoundingClientRect(), a = (n.el.querySelector(":scope > .a-le-row") ?? n.el).getBoundingClientRect();
|
|
2826
|
-
ct.value.instruction =
|
|
2826
|
+
ct.value.instruction = $i({
|
|
2827
2827
|
pointer: {
|
|
2828
2828
|
x: e,
|
|
2829
2829
|
y: t
|
|
@@ -2840,9 +2840,9 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2840
2840
|
sourceSubtreeDepth: ct.value.sourceSubtreeDepth,
|
|
2841
2841
|
viewItems: me.value,
|
|
2842
2842
|
maxDepth: i.maxDepth,
|
|
2843
|
-
indentPx:
|
|
2843
|
+
indentPx: ka,
|
|
2844
2844
|
containerLeft: r.left,
|
|
2845
|
-
containerPaddingLeft:
|
|
2845
|
+
containerPaddingLeft: Aa
|
|
2846
2846
|
});
|
|
2847
2847
|
}, dt = (e) => {
|
|
2848
2848
|
ut(e.clientX, e.clientY);
|
|
@@ -2854,7 +2854,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2854
2854
|
de(t), e.makeChild && e.parentKey !== null && y.value.add(e.parentKey);
|
|
2855
2855
|
}, mt = () => {
|
|
2856
2856
|
if (st(), !Ke.value || !_e.value) return;
|
|
2857
|
-
let e = Array.from(_e.value.querySelectorAll("." +
|
|
2857
|
+
let e = Array.from(_e.value.querySelectorAll("." + Oa));
|
|
2858
2858
|
for (let t of e) {
|
|
2859
2859
|
let e = w(t, [], {
|
|
2860
2860
|
group: {
|
|
@@ -2924,7 +2924,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
2924
2924
|
if (t.type === "blocked") return null;
|
|
2925
2925
|
let n = _e.value.querySelector(`.a-le-row-wrapper[data-id="${CSS.escape(String(t.refKey))}"]`);
|
|
2926
2926
|
if (!n) return null;
|
|
2927
|
-
let r = n.querySelector(":scope > .a-le-row"), i = _e.value.getBoundingClientRect(), a = (r ?? n).getBoundingClientRect(), o =
|
|
2927
|
+
let r = n.querySelector(":scope > .a-le-row"), i = _e.value.getBoundingClientRect(), a = (r ?? n).getBoundingClientRect(), o = Aa + t.depth * ka, s = t.refEdge === "top" ? a.top - i.top : a.bottom - i.top, c = {
|
|
2928
2928
|
top: s,
|
|
2929
2929
|
left: o,
|
|
2930
2930
|
right: 16
|
|
@@ -3173,7 +3173,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3173
3173
|
}, mn = (e) => {
|
|
3174
3174
|
let t = z.value, n = rn.value;
|
|
3175
3175
|
rn.value = null, t && n && e !== t.currentIndex && D.moveTo(n.key, t.parentId, e) && de(n.key);
|
|
3176
|
-
}, hn = U(!1), _n = gn(null),
|
|
3176
|
+
}, hn = U(!1), _n = gn(null), vn = (e) => {
|
|
3177
3177
|
i.showChangeParent && (_n.value = e, hn.value = !0);
|
|
3178
3178
|
}, Sn = (e, t) => {
|
|
3179
3179
|
let n = _n.value;
|
|
@@ -3202,7 +3202,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3202
3202
|
resolveCompactText: Ht,
|
|
3203
3203
|
resolveValidation: (e, t) => Ut(e, t),
|
|
3204
3204
|
buildSlotProps: qt
|
|
3205
|
-
})),
|
|
3205
|
+
})), wn = {
|
|
3206
3206
|
onRowClick: Tt,
|
|
3207
3207
|
onChevronClick: St,
|
|
3208
3208
|
onEditClick: xt,
|
|
@@ -3219,17 +3219,17 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3219
3219
|
indent: Bt,
|
|
3220
3220
|
outdent: Vt,
|
|
3221
3221
|
openMoveToPosition: B,
|
|
3222
|
-
openChangeParent:
|
|
3223
|
-
},
|
|
3222
|
+
openChangeParent: vn
|
|
3223
|
+
}, X = M(() => me.value.filter((e) => e.parentKey === null)), En = (e, t, n) => (D.addItem(t, {
|
|
3224
3224
|
afterId: e ?? void 0,
|
|
3225
3225
|
childrenAllowed: n
|
|
3226
|
-
}), cn(() => D.commit()), o.value),
|
|
3226
|
+
}), cn(() => D.commit()), o.value), Z = (e, t, n) => (y.value.add(e), D.addItem(t, {
|
|
3227
3227
|
parentId: e,
|
|
3228
3228
|
asFirstChild: !0,
|
|
3229
3229
|
childrenAllowed: n
|
|
3230
3230
|
}), cn(() => D.commit()), o.value), Dn = (e) => {
|
|
3231
3231
|
D.deleteItem(e), Te.value.delete(e), Ee.value.delete(e), x.value.delete(e), y.value.delete(e), cn(() => D.commit());
|
|
3232
|
-
},
|
|
3232
|
+
}, On = (e, t, n = null, r = null, i = null) => {
|
|
3233
3233
|
D.updateItem(e, t), cn(() => D.commit());
|
|
3234
3234
|
}, jn = D.unsavedCount, Mn = () => {
|
|
3235
3235
|
D.commit(), ie.value = /* @__PURE__ */ new Set(), Oe();
|
|
@@ -3252,10 +3252,10 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3252
3252
|
}), n({
|
|
3253
3253
|
...D,
|
|
3254
3254
|
validateAll: Nn,
|
|
3255
|
-
addAfterId:
|
|
3256
|
-
addChildToId:
|
|
3255
|
+
addAfterId: En,
|
|
3256
|
+
addChildToId: Z,
|
|
3257
3257
|
removeById: Dn,
|
|
3258
|
-
updateData:
|
|
3258
|
+
updateData: On,
|
|
3259
3259
|
resetDirtyBaseline: le,
|
|
3260
3260
|
hasUnsavedChanges: D.hasUnsaved,
|
|
3261
3261
|
unsavedCount: jn,
|
|
@@ -3281,8 +3281,8 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3281
3281
|
"a-nested-list-editor--drag-enabled": Ke.value
|
|
3282
3282
|
}]])
|
|
3283
3283
|
}, [
|
|
3284
|
-
I("div",
|
|
3285
|
-
rt.value ? (H(), F("div",
|
|
3284
|
+
I("div", ba, [
|
|
3285
|
+
rt.value ? (H(), F("div", xa, [G(t.$slots, "header", V({ title: e.title }, Xt.value), () => [e.title ? (H(), F("h3", Sa, K(e.title), 1)) : P("", !0), I("div", Ca, [q(Re) ? G(t.$slots, "reorder-toolbar", un(an(Yt.value)), () => [
|
|
3286
3286
|
R(Gt, {
|
|
3287
3287
|
class: ln({ "a-le-toolbar-status--pending": We.value }),
|
|
3288
3288
|
"has-pending-changes": We.value,
|
|
@@ -3330,7 +3330,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3330
3330
|
default: Y(() => [R(Q, {
|
|
3331
3331
|
icon: et.value ? "mdi-unfold-less-horizontal" : "mdi-unfold-more-horizontal",
|
|
3332
3332
|
size: "18"
|
|
3333
|
-
}, null, 8, ["icon"]), R(
|
|
3333
|
+
}, null, 8, ["icon"]), R(Fn, {
|
|
3334
3334
|
activator: "parent",
|
|
3335
3335
|
location: "bottom",
|
|
3336
3336
|
text: et.value ? q(l)("common.sortable.collapseAll") : q(l)("common.sortable.expandAll")
|
|
@@ -3358,7 +3358,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3358
3358
|
default: Y(() => [R(Q, {
|
|
3359
3359
|
icon: "mdi-sort",
|
|
3360
3360
|
size: "18"
|
|
3361
|
-
}), R(
|
|
3361
|
+
}), R(Fn, {
|
|
3362
3362
|
activator: "parent",
|
|
3363
3363
|
location: "bottom",
|
|
3364
3364
|
text: q(l)("common.sortable.reorder")
|
|
@@ -3376,11 +3376,11 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3376
3376
|
default: Y(() => [L(K(q(l)("common.sortable.reorder")), 1)]),
|
|
3377
3377
|
_: 1
|
|
3378
3378
|
}, 8, ["disabled", "onClick"]))], void 0, 2) : P("", !0)], 64))])])])) : P("", !0),
|
|
3379
|
-
e.loading ? (H(), F("div",
|
|
3379
|
+
e.loading ? (H(), F("div", wa, [R(An, {
|
|
3380
3380
|
indeterminate: "",
|
|
3381
3381
|
color: "primary",
|
|
3382
3382
|
size: "32"
|
|
3383
|
-
})])) : e.error ? (H(), F("div",
|
|
3383
|
+
})])) : e.error ? (H(), F("div", Ta, [R(kn, {
|
|
3384
3384
|
type: "error",
|
|
3385
3385
|
variant: "tonal",
|
|
3386
3386
|
density: "compact",
|
|
@@ -3388,7 +3388,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3388
3388
|
}, {
|
|
3389
3389
|
default: Y(() => [L(K(e.error), 1)]),
|
|
3390
3390
|
_: 1
|
|
3391
|
-
})])) : he.value ? (H(), F("div",
|
|
3391
|
+
})])) : he.value ? (H(), F("div", Ea, [G(t.$slots, "empty", {
|
|
3392
3392
|
readonly: e.readonly,
|
|
3393
3393
|
disabled: e.disabled,
|
|
3394
3394
|
actions: { add: vt }
|
|
@@ -3407,15 +3407,15 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3407
3407
|
ref: _e,
|
|
3408
3408
|
class: ln(["a-nested-list-editor__rows", { "a-nested-list-editor__rows--dragging": ct.value !== null }])
|
|
3409
3409
|
}, [I("div", {
|
|
3410
|
-
class: ln([
|
|
3410
|
+
class: ln([Oa, "a-nested-list-editor__group--root"]),
|
|
3411
3411
|
"data-parent-id": ""
|
|
3412
|
-
}, [(H(!0), F(j, null, W(
|
|
3412
|
+
}, [(H(!0), F(j, null, W(X.value, (e) => (H(), N(_a, {
|
|
3413
3413
|
key: String(e.key),
|
|
3414
3414
|
vi: e,
|
|
3415
3415
|
"view-items": me.value,
|
|
3416
3416
|
"drag-state": ct.value,
|
|
3417
3417
|
context: Cn.value,
|
|
3418
|
-
callbacks:
|
|
3418
|
+
callbacks: wn
|
|
3419
3419
|
}, {
|
|
3420
3420
|
item: Y((e) => [G(t.$slots, "item", V({ ref_for: !0 }, e))]),
|
|
3421
3421
|
"item-compact": Y((e) => [G(t.$slots, "item-compact", V({ ref_for: !0 }, e))]),
|
|
@@ -3474,7 +3474,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3474
3474
|
"current-index",
|
|
3475
3475
|
"item-label"
|
|
3476
3476
|
]),
|
|
3477
|
-
R(
|
|
3477
|
+
R(ya, {
|
|
3478
3478
|
modelValue: hn.value,
|
|
3479
3479
|
"onUpdate:modelValue": n[1] ||= (e) => hn.value = e,
|
|
3480
3480
|
tree: o.value,
|
|
@@ -3514,7 +3514,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3514
3514
|
"onConfirm",
|
|
3515
3515
|
"onCancel"
|
|
3516
3516
|
]),
|
|
3517
|
-
I("div",
|
|
3517
|
+
I("div", Da, K(q(tn).grabbedKey.value === null ? "" : q(l)("common.sortable.keyboardGrab.status", {
|
|
3518
3518
|
n: q(tn).grabbedIndex.value + 1,
|
|
3519
3519
|
total: q(tn).totalCount.value
|
|
3520
3520
|
})), 1)
|
|
@@ -3523,7 +3523,7 @@ var hi = { class: "d-flex flex-column w-100 px-1 align-center" }, gi = { class:
|
|
|
3523
3523
|
});
|
|
3524
3524
|
//#endregion
|
|
3525
3525
|
//#region src/labs/unsavedGuard/useGuardedDelete.ts
|
|
3526
|
-
function
|
|
3526
|
+
function Ma(e, t) {
|
|
3527
3527
|
return (...n) => {
|
|
3528
3528
|
e.acknowledge();
|
|
3529
3529
|
let r;
|
|
@@ -3539,7 +3539,7 @@ function ja(e, t) {
|
|
|
3539
3539
|
}
|
|
3540
3540
|
//#endregion
|
|
3541
3541
|
//#region src/labs/listEditor/composables/useListEditor.ts
|
|
3542
|
-
function
|
|
3542
|
+
function Na(e, t = {}) {
|
|
3543
3543
|
let n = t.keyField ?? "id", r = t.positionField ?? "position", i = t.positionMultiplier ?? 1, a = t.updatePosition === !0;
|
|
3544
3544
|
a && n === r && console.warn(`[list-editor] key-field === position-field ("${n}") with update-position enabled. Reordering renumbers positions and thus changes row keys, breaking dirty/validity tracking. Point key-field at a stable identity field (e.g. "id").`);
|
|
3545
3545
|
let o = /* @__PURE__ */ new Set(), s = (e) => {
|
|
@@ -3608,7 +3608,7 @@ function Ma(e, t = {}) {
|
|
|
3608
3608
|
}
|
|
3609
3609
|
//#endregion
|
|
3610
3610
|
//#region src/labs/listEditor/composables/useNestedUnsavedKeys.ts
|
|
3611
|
-
function
|
|
3611
|
+
function Pa() {
|
|
3612
3612
|
let e = U(/* @__PURE__ */ new Map()), t = /* @__PURE__ */ new Set(), n = (n) => e.value.get(n) ?? t, r = (t, n) => {
|
|
3613
3613
|
n.size === 0 ? e.value.delete(t) : e.value.set(t, n), e.value = new Map(e.value);
|
|
3614
3614
|
}, i = M(() => {
|
|
@@ -3625,7 +3625,7 @@ function Na() {
|
|
|
3625
3625
|
}
|
|
3626
3626
|
//#endregion
|
|
3627
3627
|
//#region src/labs/permissionConfig/permissionConfigApi.ts
|
|
3628
|
-
var
|
|
3628
|
+
var Fa = "permissionConfig", Ia = "/adm/v1/permissions/config", La = ({ client: e, system: t, entity: n = Fa, endPoint: r = Ia }) => ({ useFetchPermissionConfig: () => Pt({
|
|
3629
3629
|
client: e,
|
|
3630
3630
|
method: "GET",
|
|
3631
3631
|
system: t,
|
|
@@ -3633,7 +3633,7 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3633
3633
|
validationSystem: "common",
|
|
3634
3634
|
validationEntity: n,
|
|
3635
3635
|
urlTemplate: r
|
|
3636
|
-
}) }),
|
|
3636
|
+
}) }), Ra = rr("labsPermissionConfigStore", () => {
|
|
3637
3637
|
let { createPermissionConfig: e } = Nt(), t = U(/* @__PURE__ */ new Map()), n = () => ({
|
|
3638
3638
|
config: e(),
|
|
3639
3639
|
loading: !1,
|
|
@@ -3671,13 +3671,13 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3671
3671
|
resetSystem: o,
|
|
3672
3672
|
reset: s
|
|
3673
3673
|
};
|
|
3674
|
-
}),
|
|
3675
|
-
let { client: n, system: r, entity: i =
|
|
3674
|
+
}), za = /* @__PURE__ */ new Map(), Ba = (e) => {
|
|
3675
|
+
let { client: n, system: r, entity: i = Fa, endPoint: a = Ia, autoFetch: o = !0 } = e, { showErrorsDefault: s } = t(), { useFetchPermissionConfig: c } = La({
|
|
3676
3676
|
client: n,
|
|
3677
3677
|
system: r,
|
|
3678
3678
|
entity: i,
|
|
3679
3679
|
endPoint: a
|
|
3680
|
-
}), l =
|
|
3680
|
+
}), l = Ra(), u = M(() => l.getEntry(r)), d = M(() => u.value.config), f = M(() => u.value.loading), p = M(() => u.value.initialized), m = async () => {
|
|
3681
3681
|
l.setLoading(r, !0);
|
|
3682
3682
|
try {
|
|
3683
3683
|
let { execute: e } = c();
|
|
@@ -3685,14 +3685,14 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3685
3685
|
} catch (e) {
|
|
3686
3686
|
s(e);
|
|
3687
3687
|
} finally {
|
|
3688
|
-
l.setLoading(r, !1),
|
|
3688
|
+
l.setLoading(r, !1), za.delete(r);
|
|
3689
3689
|
}
|
|
3690
3690
|
}, h = async (e = !1) => {
|
|
3691
3691
|
if (!e && p.value) return;
|
|
3692
|
-
let t =
|
|
3692
|
+
let t = za.get(r);
|
|
3693
3693
|
if (t) return t;
|
|
3694
3694
|
let n = m();
|
|
3695
|
-
return
|
|
3695
|
+
return za.set(r, n), n;
|
|
3696
3696
|
}, { currentLanguageCode: g } = y();
|
|
3697
3697
|
return o && h(), {
|
|
3698
3698
|
permissionConfig: d,
|
|
@@ -3702,7 +3702,7 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3702
3702
|
translatePermission: (e, t) => Kt(d.value.translation, e + "." + t + "." + g.value) ?? t,
|
|
3703
3703
|
resetPermissionConfig: () => l.resetSystem(r)
|
|
3704
3704
|
};
|
|
3705
|
-
},
|
|
3705
|
+
}, Va = { key: 0 }, Ha = ["colspan"], Ua = { class: "text-body-small text-disabled" }, Wa = { key: 0 }, Ga = /* @__PURE__ */ z({
|
|
3706
3706
|
__name: "APermissionEditor",
|
|
3707
3707
|
props: /*@__PURE__*/ B({
|
|
3708
3708
|
client: {},
|
|
@@ -3721,7 +3721,7 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3721
3721
|
}),
|
|
3722
3722
|
emits: ["update:modelValue"],
|
|
3723
3723
|
setup(e) {
|
|
3724
|
-
let n = e, r =
|
|
3724
|
+
let n = e, r = yn(e, "modelValue"), { t: i } = Tn(), { showWarning: a } = t(), o = M(() => k(r.value)), { permissionConfig: s, loadingPermissionConfig: c, isPermissionConfigInitialized: u, translatePermission: d } = Ba({
|
|
3725
3725
|
client: n.client,
|
|
3726
3726
|
system: n.system,
|
|
3727
3727
|
entity: n.entity,
|
|
@@ -3758,12 +3758,12 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3758
3758
|
let r = e + "_" + t;
|
|
3759
3759
|
return A(n.resolvedPermissions) ? Object.hasOwn(o.value, r) ? l.Group : Yt : Object.hasOwn(o.value, r) ? l.User : Object.hasOwn(n.resolvedPermissions, r) ? l.Group : Yt;
|
|
3760
3760
|
};
|
|
3761
|
-
return (t, n) => (H(), N(
|
|
3762
|
-
default: Y(() => [R(
|
|
3763
|
-
default: Y(() => [q(u) ? (H(), N(
|
|
3761
|
+
return (t, n) => (H(), N(jn, { loading: q(c) }, {
|
|
3762
|
+
default: Y(() => [R(Nn, null, {
|
|
3763
|
+
default: Y(() => [q(u) ? (H(), N(ar, { key: 0 }, {
|
|
3764
3764
|
default: Y(() => [I("thead", null, [I("tr", null, [
|
|
3765
3765
|
I("th", null, K(q(i)("common.anzuUser.table.grants")), 1),
|
|
3766
|
-
e.readonly ? P("", !0) : (H(), F("th",
|
|
3766
|
+
e.readonly ? P("", !0) : (H(), F("th", Va, K(q(i)("common.anzuUser.table.permissions")), 1)),
|
|
3767
3767
|
I("th", null, K(q(i)("common.anzuUser.table.resolvedPermissions")), 1)
|
|
3768
3768
|
])]), I("tbody", null, [(H(!0), F(j, null, W(Object.keys(q(s).config), (t) => (H(), F(j, { key: t }, [I("tr", null, [I("td", {
|
|
3769
3769
|
colspan: e.readonly ? 2 : 3,
|
|
@@ -3778,9 +3778,9 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3778
3778
|
}, {
|
|
3779
3779
|
default: Y(() => [L(K(q(i)("common.permissionEditor.allowAll")), 1)]),
|
|
3780
3780
|
_: 1
|
|
3781
|
-
}, 8, ["data-cy", "onClick"]))], 8,
|
|
3782
|
-
I("td", null, [L(K(q(d)("actions", n)) + " ", 1), I("div",
|
|
3783
|
-
e.readonly ? P("", !0) : (H(), F("td",
|
|
3781
|
+
}, 8, ["data-cy", "onClick"]))], 8, Ha)]), (H(!0), F(j, null, W(Object.keys(q(s).config[t]), (n) => (H(), F("tr", { key: n }, [
|
|
3782
|
+
I("td", null, [L(K(q(d)("actions", n)) + " ", 1), I("div", Ua, K(t) + "_" + K(n), 1)]),
|
|
3783
|
+
e.readonly ? P("", !0) : (H(), F("td", Wa, [R(h, {
|
|
3784
3784
|
"available-grants": g(t, n),
|
|
3785
3785
|
"selected-grant": m(t, n),
|
|
3786
3786
|
onChange: (e) => p(t, n, e)
|
|
@@ -3801,7 +3801,7 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3801
3801
|
_: 1
|
|
3802
3802
|
}, 8, ["loading"]));
|
|
3803
3803
|
}
|
|
3804
|
-
}),
|
|
3804
|
+
}), Ka = "permissionGroup", qa = "/adm/v1/permission-group", Ja = ({ client: e, system: t, entity: n = Ka, validationSystem: r = "common", validationEntity: i = n, endPoint: a = qa }) => {
|
|
3805
3805
|
let o = {
|
|
3806
3806
|
validationSystem: r,
|
|
3807
3807
|
validationEntity: i
|
|
@@ -3854,28 +3854,28 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3854
3854
|
urlTemplate: a + "/:id"
|
|
3855
3855
|
})
|
|
3856
3856
|
};
|
|
3857
|
-
},
|
|
3857
|
+
}, Ya = /* @__PURE__ */ new Map(), Xa = (e) => ({
|
|
3858
3858
|
id: e.id,
|
|
3859
3859
|
title: e.title,
|
|
3860
3860
|
permissions: e.permissions
|
|
3861
|
-
}),
|
|
3861
|
+
}), Za = (e) => ({
|
|
3862
3862
|
id: e,
|
|
3863
3863
|
title: "",
|
|
3864
3864
|
permissions: {}
|
|
3865
|
-
}),
|
|
3866
|
-
let { useFetchPermissionGroupListByIds: t } =
|
|
3867
|
-
return qe(
|
|
3865
|
+
}), Qa = (e) => {
|
|
3866
|
+
let { useFetchPermissionGroupListByIds: t } = Ja(e);
|
|
3867
|
+
return qe(Xa, Za, async (e) => {
|
|
3868
3868
|
let { execute: n } = t();
|
|
3869
3869
|
return n(e);
|
|
3870
3870
|
});
|
|
3871
|
-
},
|
|
3871
|
+
}, $a = (e) => {
|
|
3872
3872
|
let t = {
|
|
3873
3873
|
client: e.client,
|
|
3874
3874
|
system: e.system,
|
|
3875
3875
|
entity: e.entity ?? "permissionGroup",
|
|
3876
3876
|
endPoint: e.endPoint ?? "/adm/v1/permission-group"
|
|
3877
|
-
}, n =
|
|
3878
|
-
n || (n =
|
|
3877
|
+
}, n = Ya.get(t.system);
|
|
3878
|
+
n || (n = Qa(t), Ya.set(t.system, n));
|
|
3879
3879
|
let { cache: r, toFetch: i, fetch: a, immediateFetch: o, add: s, addManual: c, addManualMinimal: l, has: u, get: d, isLoaded: f, clear: p } = n;
|
|
3880
3880
|
return {
|
|
3881
3881
|
cachedPermissionGroups: r,
|
|
@@ -3890,8 +3890,8 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3890
3890
|
isLoadedCachedPermissionGroup: f,
|
|
3891
3891
|
clearCachedPermissionGroups: p
|
|
3892
3892
|
};
|
|
3893
|
-
},
|
|
3894
|
-
let { getCachedPermissionGroup: t } =
|
|
3893
|
+
}, eo = (e) => {
|
|
3894
|
+
let { getCachedPermissionGroup: t } = $a(e), n = (e) => {
|
|
3895
3895
|
let n = {}, r = e.map((e) => t(e));
|
|
3896
3896
|
for (let e of r) if (!A(e)) for (let t in e.permissions) {
|
|
3897
3897
|
let r = Kt(e.permissions, t);
|
|
@@ -3910,7 +3910,7 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3910
3910
|
}),
|
|
3911
3911
|
resolveGroupPermissions: n
|
|
3912
3912
|
};
|
|
3913
|
-
},
|
|
3913
|
+
}, to = /* @__PURE__ */ z({
|
|
3914
3914
|
__name: "APermissionGroupFilter",
|
|
3915
3915
|
emits: ["submit", "reset"],
|
|
3916
3916
|
setup(e, { emit: t }) {
|
|
@@ -3924,7 +3924,7 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3924
3924
|
_: 1
|
|
3925
3925
|
}));
|
|
3926
3926
|
}
|
|
3927
|
-
}),
|
|
3927
|
+
}), no = rr("labsPermissionGroupOneStore", () => {
|
|
3928
3928
|
let { createPermissionGroup: e } = vt(), t = U(e()), n = U(!1);
|
|
3929
3929
|
function r(e) {
|
|
3930
3930
|
t.value = e;
|
|
@@ -3942,8 +3942,8 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3942
3942
|
setLoadingPermissionGroup: i,
|
|
3943
3943
|
reset: a
|
|
3944
3944
|
};
|
|
3945
|
-
}),
|
|
3946
|
-
let { client: n, system: r, entity: i =
|
|
3945
|
+
}), ro = (e) => {
|
|
3946
|
+
let { client: n, system: r, entity: i = Ka, endPoint: a = qa } = e, { showValidationError: o, showRecordWas: s, showErrorsDefault: c } = t(), { useFetchPermissionGroupList: l, useFetchPermissionGroup: u, useDeletePermissionGroup: d, useUpdatePermissionGroup: f, useCreatePermissionGroup: p, useFetchPermissionGroupListByIds: m } = Ja({
|
|
3947
3947
|
client: n,
|
|
3948
3948
|
system: r,
|
|
3949
3949
|
entity: i,
|
|
@@ -3965,7 +3965,7 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3965
3965
|
}
|
|
3966
3966
|
}, C = () => {
|
|
3967
3967
|
x++, g();
|
|
3968
|
-
}, w =
|
|
3968
|
+
}, w = no(), { permissionGroup: T, loadingPermissionGroup: ee } = ir(w), te = async (e) => {
|
|
3969
3969
|
w.setLoadingPermissionGroup(!0);
|
|
3970
3970
|
try {
|
|
3971
3971
|
let { execute: t } = u();
|
|
@@ -3985,7 +3985,7 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
3985
3985
|
} finally {
|
|
3986
3986
|
E.value = !1;
|
|
3987
3987
|
}
|
|
3988
|
-
}, O =
|
|
3988
|
+
}, O = Zn(), ne = U(!1), re = async () => {
|
|
3989
3989
|
try {
|
|
3990
3990
|
if (ne.value = !0, O.value.$touch(), O.value.$invalid) return o(), !1;
|
|
3991
3991
|
let { execute: e } = f();
|
|
@@ -4008,7 +4008,7 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
4008
4008
|
} finally {
|
|
4009
4009
|
ie.value = !1;
|
|
4010
4010
|
}
|
|
4011
|
-
}, { addManualToCachedPermissionGroups: oe } =
|
|
4011
|
+
}, { addManualToCachedPermissionGroups: oe } = $a({
|
|
4012
4012
|
client: n,
|
|
4013
4013
|
system: r,
|
|
4014
4014
|
entity: i,
|
|
@@ -4045,7 +4045,7 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
4045
4045
|
},
|
|
4046
4046
|
resetPermissionGroupStore: w.reset
|
|
4047
4047
|
};
|
|
4048
|
-
},
|
|
4048
|
+
}, io = [{
|
|
4049
4049
|
name: "id",
|
|
4050
4050
|
default: null,
|
|
4051
4051
|
type: "integer"
|
|
@@ -4055,20 +4055,20 @@ var Pa = "permissionConfig", Fa = "/adm/v1/permissions/config", Ia = ({ client:
|
|
|
4055
4055
|
default: null,
|
|
4056
4056
|
type: "string",
|
|
4057
4057
|
render: { skip: !0 }
|
|
4058
|
-
}],
|
|
4059
|
-
function
|
|
4060
|
-
let t =
|
|
4061
|
-
t || (t = tn(
|
|
4062
|
-
let { filterConfig: n, filterData: r } = qt(
|
|
4058
|
+
}], ao = /* @__PURE__ */ new Map(), oo = (e) => `labsPermissionGroup_${e}`;
|
|
4059
|
+
function so(e) {
|
|
4060
|
+
let t = ao.get(e);
|
|
4061
|
+
t || (t = tn(io), ao.set(e, t));
|
|
4062
|
+
let { filterConfig: n, filterData: r } = qt(io, t, {
|
|
4063
4063
|
system: "common",
|
|
4064
|
-
subject:
|
|
4064
|
+
subject: Ka
|
|
4065
4065
|
});
|
|
4066
4066
|
return {
|
|
4067
4067
|
filterConfig: n,
|
|
4068
4068
|
filterData: r
|
|
4069
4069
|
};
|
|
4070
4070
|
}
|
|
4071
|
-
function
|
|
4071
|
+
function co() {
|
|
4072
4072
|
let e = [{
|
|
4073
4073
|
name: "title",
|
|
4074
4074
|
variant: "startsWith",
|
|
@@ -4076,7 +4076,7 @@ function so() {
|
|
|
4076
4076
|
type: "string"
|
|
4077
4077
|
}], { filterConfig: t, filterData: n } = qt(e, tn(e), {
|
|
4078
4078
|
system: "common",
|
|
4079
|
-
subject:
|
|
4079
|
+
subject: Ka
|
|
4080
4080
|
});
|
|
4081
4081
|
return {
|
|
4082
4082
|
filterConfig: t,
|
|
@@ -4085,7 +4085,7 @@ function so() {
|
|
|
4085
4085
|
}
|
|
4086
4086
|
//#endregion
|
|
4087
4087
|
//#region src/labs/permissionGroup/APermissionGroupDatatable.vue?vue&type=script&setup=true&lang.ts
|
|
4088
|
-
var
|
|
4088
|
+
var lo = { class: "d-flex align-center" }, uo = { class: "d-flex justify-end" }, fo = /* @__PURE__ */ z({
|
|
4089
4089
|
__name: "APermissionGroupDatatable",
|
|
4090
4090
|
props: {
|
|
4091
4091
|
client: {},
|
|
@@ -4101,23 +4101,23 @@ var co = { class: "d-flex align-center" }, lo = { class: "d-flex justify-end" },
|
|
|
4101
4101
|
},
|
|
4102
4102
|
emits: ["rowClick"],
|
|
4103
4103
|
setup(e, { expose: t, emit: n }) {
|
|
4104
|
-
let r = e, i = n, { filterConfig: a, filterData: o } =
|
|
4104
|
+
let r = e, i = n, { filterConfig: a, filterData: o } = so(r.system);
|
|
4105
4105
|
mn(Ce, a), mn(g, o);
|
|
4106
|
-
let { fetchPermissionGroupList: s, cancelPermissionGroupList: c, permissionGroupList: l, loadingPermissionGroupList: u, datatableHiddenColumns: d } =
|
|
4106
|
+
let { fetchPermissionGroupList: s, cancelPermissionGroupList: c, permissionGroupList: l, loadingPermissionGroupList: u, datatableHiddenColumns: d } = ro({
|
|
4107
4107
|
client: r.client,
|
|
4108
4108
|
system: r.system,
|
|
4109
4109
|
entity: r.entity,
|
|
4110
4110
|
endPoint: r.endPoint
|
|
4111
|
-
}), { resetFilter: f, submitFilter: p, loadStoredFilters: m } = xe(o, a, { storeFiltersLocalStorage:
|
|
4111
|
+
}), { resetFilter: f, submitFilter: p, loadStoredFilters: m } = xe(o, a, { storeFiltersLocalStorage: oo(r.system) }), { pagination: h } = Wt("id");
|
|
4112
4112
|
mn(Xt, h);
|
|
4113
|
-
let { columnsVisible: _, columnsAll: v, columnsHidden: y } =
|
|
4113
|
+
let { columnsVisible: _, columnsAll: v, columnsHidden: y } = jr([
|
|
4114
4114
|
{ key: "id" },
|
|
4115
4115
|
{ key: "title" },
|
|
4116
4116
|
{ key: "description" },
|
|
4117
4117
|
{ key: "permissions" },
|
|
4118
4118
|
{ key: "createdAt" },
|
|
4119
4119
|
{ key: "modifiedAt" }
|
|
4120
|
-
], d, "common",
|
|
4120
|
+
], d, "common", Ka, { storeColumnsLocalStorage: `table_labs_permissionGroup_${r.system}` }), b = In(async () => {
|
|
4121
4121
|
await s(h, o, a);
|
|
4122
4122
|
}), x = () => p(h, b), S = () => f(h, b), C = (e, { item: t }) => {
|
|
4123
4123
|
t.id && i("rowClick", t);
|
|
@@ -4130,12 +4130,12 @@ var co = { class: "d-flex align-center" }, lo = { class: "d-flex justify-end" },
|
|
|
4130
4130
|
refresh: b,
|
|
4131
4131
|
resetFilter: S,
|
|
4132
4132
|
submitFilter: x
|
|
4133
|
-
}), (t, n) => (H(), F("div", null, [R(
|
|
4133
|
+
}), (t, n) => (H(), F("div", null, [R(to, {
|
|
4134
4134
|
onSubmit: x,
|
|
4135
4135
|
onReset: S
|
|
4136
|
-
}), I("div", null, [I("div",
|
|
4137
|
-
R(
|
|
4138
|
-
R(
|
|
4136
|
+
}), I("div", null, [I("div", lo, [
|
|
4137
|
+
R(On),
|
|
4138
|
+
R(_r, {
|
|
4139
4139
|
variant: "id",
|
|
4140
4140
|
onSortByChange: x
|
|
4141
4141
|
}),
|
|
@@ -4144,7 +4144,7 @@ var co = { class: "d-flex align-center" }, lo = { class: "d-flex justify-end" },
|
|
|
4144
4144
|
"onUpdate:columnsHidden": n[0] ||= (e) => sn(y) ? y.value = e : null,
|
|
4145
4145
|
"columns-all": q(v)
|
|
4146
4146
|
}, null, 8, ["columns-hidden", "columns-all"])
|
|
4147
|
-
]), R(
|
|
4147
|
+
]), R(lr, {
|
|
4148
4148
|
class: "a-datatable",
|
|
4149
4149
|
headers: q(_),
|
|
4150
4150
|
items: q(l),
|
|
@@ -4153,13 +4153,13 @@ var co = { class: "d-flex align-center" }, lo = { class: "d-flex justify-end" },
|
|
|
4153
4153
|
"item-value": "id",
|
|
4154
4154
|
"onClick:row": C
|
|
4155
4155
|
}, {
|
|
4156
|
-
"item.permissions": Y(({ item: e }) => [R(
|
|
4156
|
+
"item.permissions": Y(({ item: e }) => [R(En, null, {
|
|
4157
4157
|
default: Y(() => [L(K(Object.keys(e.permissions).length), 1)]),
|
|
4158
4158
|
_: 2
|
|
4159
4159
|
}, 1024)]),
|
|
4160
4160
|
"item.createdAt": Y(({ item: e }) => [R(Pe, { "date-time": e.createdAt }, null, 8, ["date-time"]), t.$slots.createdBy ? (H(), F(j, { key: 0 }, [n[1] ||= I("br", null, null, -1), G(t.$slots, "createdBy", { id: e.createdBy })], 64)) : P("", !0)]),
|
|
4161
4161
|
"item.modifiedAt": Y(({ item: e }) => [R(Pe, { "date-time": e.modifiedAt }, null, 8, ["date-time"]), t.$slots.modifiedBy ? (H(), F(j, { key: 0 }, [n[2] ||= I("br", null, null, -1), G(t.$slots, "modifiedBy", { id: e.modifiedBy })], 64)) : P("", !0)]),
|
|
4162
|
-
"item.actions": Y(({ item: t }) => [I("div",
|
|
4162
|
+
"item.actions": Y(({ item: t }) => [I("div", uo, [
|
|
4163
4163
|
R(E, { id: t.id }, null, 8, ["id"]),
|
|
4164
4164
|
R($, {
|
|
4165
4165
|
to: e.detailRoute(t),
|
|
@@ -4177,7 +4177,7 @@ var co = { class: "d-flex align-center" }, lo = { class: "d-flex justify-end" },
|
|
|
4177
4177
|
variant: "text"
|
|
4178
4178
|
}, null, 8, ["to"])) : P("", !0)
|
|
4179
4179
|
])]),
|
|
4180
|
-
bottom: Y(() => [R(
|
|
4180
|
+
bottom: Y(() => [R(wr, { onChange: q(b) }, null, 8, ["onChange"])]),
|
|
4181
4181
|
_: 3
|
|
4182
4182
|
}, 8, [
|
|
4183
4183
|
"headers",
|
|
@@ -4186,25 +4186,24 @@ var co = { class: "d-flex align-center" }, lo = { class: "d-flex justify-end" },
|
|
|
4186
4186
|
"loading"
|
|
4187
4187
|
])])]));
|
|
4188
4188
|
}
|
|
4189
|
-
}),
|
|
4189
|
+
}), po = /* @__PURE__ */ z({
|
|
4190
4190
|
__name: "APermissionGroupDetail",
|
|
4191
4191
|
props: {
|
|
4192
4192
|
client: { type: Function },
|
|
4193
4193
|
system: {},
|
|
4194
|
-
|
|
4195
|
-
endPoint: {}
|
|
4194
|
+
permissionConfigEndPoint: {}
|
|
4196
4195
|
},
|
|
4197
4196
|
setup(e) {
|
|
4198
|
-
let { permissionGroup: t, loadingPermissionGroup: n } =
|
|
4199
|
-
return (i, a) => (H(), N(
|
|
4197
|
+
let { permissionGroup: t, loadingPermissionGroup: n } = ir(no()), { t: r } = Tn();
|
|
4198
|
+
return (i, a) => (H(), N(Dn, null, {
|
|
4200
4199
|
default: Y(() => [R(Z, {
|
|
4201
4200
|
cols: "12",
|
|
4202
4201
|
sm: "8"
|
|
4203
4202
|
}, {
|
|
4204
|
-
default: Y(() => [R(
|
|
4203
|
+
default: Y(() => [R(Dn, null, {
|
|
4205
4204
|
default: Y(() => [R(Z, { cols: "12" }, {
|
|
4206
|
-
default: Y(() => [R(
|
|
4207
|
-
default: Y(() => [R(
|
|
4205
|
+
default: Y(() => [R(jn, { loading: q(n) }, {
|
|
4206
|
+
default: Y(() => [R(Nn, null, {
|
|
4208
4207
|
default: Y(() => [R(It, {
|
|
4209
4208
|
title: q(r)("common.permissionGroup.model.title"),
|
|
4210
4209
|
value: q(t).title
|
|
@@ -4219,21 +4218,19 @@ var co = { class: "d-flex align-center" }, lo = { class: "d-flex justify-end" },
|
|
|
4219
4218
|
_: 1
|
|
4220
4219
|
})]),
|
|
4221
4220
|
_: 1
|
|
4222
|
-
}), R(
|
|
4221
|
+
}), R(Dn, null, {
|
|
4223
4222
|
default: Y(() => [R(Z, { cols: "12" }, {
|
|
4224
|
-
default: Y(() => [R(
|
|
4223
|
+
default: Y(() => [R(Ga, {
|
|
4225
4224
|
modelValue: q(t).permissions,
|
|
4226
4225
|
"onUpdate:modelValue": a[0] ||= (e) => q(t).permissions = e,
|
|
4227
4226
|
client: e.client,
|
|
4228
4227
|
system: e.system,
|
|
4229
|
-
|
|
4230
|
-
"end-point": e.endPoint,
|
|
4228
|
+
"end-point": e.permissionConfigEndPoint,
|
|
4231
4229
|
readonly: ""
|
|
4232
4230
|
}, null, 8, [
|
|
4233
4231
|
"modelValue",
|
|
4234
4232
|
"client",
|
|
4235
4233
|
"system",
|
|
4236
|
-
"entity",
|
|
4237
4234
|
"end-point"
|
|
4238
4235
|
])]),
|
|
4239
4236
|
_: 1
|
|
@@ -4257,7 +4254,7 @@ var co = { class: "d-flex align-center" }, lo = { class: "d-flex justify-end" },
|
|
|
4257
4254
|
});
|
|
4258
4255
|
//#endregion
|
|
4259
4256
|
//#region src/labs/permissionGroup/permissionGroupValidations.ts
|
|
4260
|
-
function
|
|
4257
|
+
function mo(e) {
|
|
4261
4258
|
let { maxLength: t, minLength: n, required: r } = Ae(), i = { permissionGroup: {
|
|
4262
4259
|
title: {
|
|
4263
4260
|
required: r,
|
|
@@ -4266,28 +4263,27 @@ function po(e) {
|
|
|
4266
4263
|
},
|
|
4267
4264
|
description: { maxLength: t(2e3) }
|
|
4268
4265
|
} };
|
|
4269
|
-
return { v$:
|
|
4266
|
+
return { v$: Zn(i, { permissionGroup: e }) };
|
|
4270
4267
|
}
|
|
4271
4268
|
//#endregion
|
|
4272
4269
|
//#region src/labs/permissionGroup/APermissionGroupManage.vue
|
|
4273
|
-
var
|
|
4270
|
+
var ho = /* @__PURE__ */ z({
|
|
4274
4271
|
__name: "APermissionGroupManage",
|
|
4275
4272
|
props: {
|
|
4276
4273
|
client: { type: Function },
|
|
4277
4274
|
system: {},
|
|
4278
|
-
|
|
4279
|
-
endPoint: {}
|
|
4275
|
+
permissionConfigEndPoint: {}
|
|
4280
4276
|
},
|
|
4281
4277
|
setup(e) {
|
|
4282
|
-
let { permissionGroup: t } =
|
|
4278
|
+
let { permissionGroup: t } = ir(no()), { v$: n } = mo(t);
|
|
4283
4279
|
return (r, i) => (H(), N(O, {
|
|
4284
4280
|
system: "common",
|
|
4285
|
-
subject: q(
|
|
4281
|
+
subject: q(Ka)
|
|
4286
4282
|
}, {
|
|
4287
|
-
default: Y(() => [R(
|
|
4283
|
+
default: Y(() => [R(Dn, null, {
|
|
4288
4284
|
default: Y(() => [R(Z, { cols: "12" }, {
|
|
4289
|
-
default: Y(() => [R(
|
|
4290
|
-
default: Y(() => [R(
|
|
4285
|
+
default: Y(() => [R(jn, null, {
|
|
4286
|
+
default: Y(() => [R(Nn, null, {
|
|
4291
4287
|
default: Y(() => [R(Me, {
|
|
4292
4288
|
modelValue: q(t).title,
|
|
4293
4289
|
"onUpdate:modelValue": i[0] ||= (e) => q(t).title = e,
|
|
@@ -4305,18 +4301,16 @@ var mo = /* @__PURE__ */ z({
|
|
|
4305
4301
|
})]),
|
|
4306
4302
|
_: 1
|
|
4307
4303
|
}), R(Z, { cols: "12" }, {
|
|
4308
|
-
default: Y(() => [R(
|
|
4304
|
+
default: Y(() => [R(Ga, {
|
|
4309
4305
|
modelValue: q(t).permissions,
|
|
4310
4306
|
"onUpdate:modelValue": i[2] ||= (e) => q(t).permissions = e,
|
|
4311
4307
|
client: e.client,
|
|
4312
4308
|
system: e.system,
|
|
4313
|
-
|
|
4314
|
-
"end-point": e.endPoint
|
|
4309
|
+
"end-point": e.permissionConfigEndPoint
|
|
4315
4310
|
}, null, 8, [
|
|
4316
4311
|
"modelValue",
|
|
4317
4312
|
"client",
|
|
4318
4313
|
"system",
|
|
4319
|
-
"entity",
|
|
4320
4314
|
"end-point"
|
|
4321
4315
|
])]),
|
|
4322
4316
|
_: 1
|
|
@@ -4326,7 +4320,7 @@ var mo = /* @__PURE__ */ z({
|
|
|
4326
4320
|
_: 1
|
|
4327
4321
|
}, 8, ["subject"]));
|
|
4328
4322
|
}
|
|
4329
|
-
}),
|
|
4323
|
+
}), go = /* @__PURE__ */ z({
|
|
4330
4324
|
__name: "APermissionGroupRemoteAutocomplete",
|
|
4331
4325
|
props: /*@__PURE__*/ B({
|
|
4332
4326
|
client: {},
|
|
@@ -4357,12 +4351,12 @@ var mo = /* @__PURE__ */ z({
|
|
|
4357
4351
|
}),
|
|
4358
4352
|
emits: ["update:modelValue"],
|
|
4359
4353
|
setup(e) {
|
|
4360
|
-
let t = e, n =
|
|
4354
|
+
let t = e, n = yn(e, "modelValue"), { fetchPermissionGroupOptions: r, fetchPermissionGroupOptionsByIds: i } = ro({
|
|
4361
4355
|
client: t.client,
|
|
4362
4356
|
system: t.system,
|
|
4363
4357
|
entity: t.entity,
|
|
4364
4358
|
endPoint: t.endPoint
|
|
4365
|
-
}), { filterData: a, filterConfig: o } =
|
|
4359
|
+
}), { filterData: a, filterConfig: o } = co();
|
|
4366
4360
|
return mn(p, o), mn(de, a), (t, a) => (H(), N(zt, {
|
|
4367
4361
|
modelValue: n.value,
|
|
4368
4362
|
"onUpdate:modelValue": a[0] ||= (e) => n.value = e,
|
|
@@ -4397,7 +4391,7 @@ var mo = /* @__PURE__ */ z({
|
|
|
4397
4391
|
"data-cy"
|
|
4398
4392
|
]));
|
|
4399
4393
|
}
|
|
4400
|
-
}),
|
|
4394
|
+
}), _o = /* @__PURE__ */ z({
|
|
4401
4395
|
__name: "AAnzuUserFilter",
|
|
4402
4396
|
props: /*@__PURE__*/ B({
|
|
4403
4397
|
client: {
|
|
@@ -4415,7 +4409,7 @@ var mo = /* @__PURE__ */ z({
|
|
|
4415
4409
|
}),
|
|
4416
4410
|
emits: /*@__PURE__*/ B(["submit", "reset"], ["update:datatableHiddenColumns"]),
|
|
4417
4411
|
setup(e, { emit: t }) {
|
|
4418
|
-
let n = t, r =
|
|
4412
|
+
let n = t, r = yn(e, "datatableHiddenColumns"), i = on(Ce), a = on(g);
|
|
4419
4413
|
if (A(i) || A(a)) throw Error("[AAnzuUserFilter] Incorrect provide/inject config.");
|
|
4420
4414
|
return (t, i) => (H(), N(Re, {
|
|
4421
4415
|
"datatable-hidden-columns": r.value,
|
|
@@ -4439,7 +4433,7 @@ var mo = /* @__PURE__ */ z({
|
|
|
4439
4433
|
"store"
|
|
4440
4434
|
]));
|
|
4441
4435
|
}
|
|
4442
|
-
}),
|
|
4436
|
+
}), vo = "anzuUser", yo = "/adm/v1/anzu-user", bo = ({ client: e, system: t, entity: n = vo, validationSystem: r = "common", validationEntity: i = n, endPoint: a = yo }) => {
|
|
4443
4437
|
let o = {
|
|
4444
4438
|
validationSystem: r,
|
|
4445
4439
|
validationEntity: i
|
|
@@ -4492,7 +4486,7 @@ var mo = /* @__PURE__ */ z({
|
|
|
4492
4486
|
urlTemplate: r
|
|
4493
4487
|
})
|
|
4494
4488
|
};
|
|
4495
|
-
},
|
|
4489
|
+
}, xo = rr("labsAnzuUserOneStore", () => {
|
|
4496
4490
|
let { createAnzuUser: e } = ot(), t = U(e()), n = U(!1);
|
|
4497
4491
|
function r(e) {
|
|
4498
4492
|
t.value = e;
|
|
@@ -4510,8 +4504,8 @@ var mo = /* @__PURE__ */ z({
|
|
|
4510
4504
|
setLoadingAnzuUser: i,
|
|
4511
4505
|
reset: a
|
|
4512
4506
|
};
|
|
4513
|
-
}),
|
|
4514
|
-
let { client: i, system: a, entity: o =
|
|
4507
|
+
}), So = (n) => {
|
|
4508
|
+
let { client: i, system: a, entity: o = vo, endPoint: s = yo } = n, { showErrorsDefault: c, showRecordWas: l, showValidationError: u } = t(), { useFetchAnzuUserList: d, useFetchAnzuUser: f, useCreateAnzuUser: p, useUpdateAnzuUser: m } = bo({
|
|
4515
4509
|
client: i,
|
|
4516
4510
|
system: a,
|
|
4517
4511
|
entity: o,
|
|
@@ -4533,7 +4527,7 @@ var mo = /* @__PURE__ */ z({
|
|
|
4533
4527
|
}
|
|
4534
4528
|
}, S = () => {
|
|
4535
4529
|
b++, g();
|
|
4536
|
-
}, C =
|
|
4530
|
+
}, C = xo(), { anzuUser: w, loadingAnzuUser: T } = ir(C), ee = U(""), te = () => {
|
|
4537
4531
|
ee.value = JSON.stringify(C.anzuUser);
|
|
4538
4532
|
}, E = M(() => ee.value !== "" && ee.value !== JSON.stringify(w.value)), D = async (e) => {
|
|
4539
4533
|
C.setLoadingAnzuUser(!0);
|
|
@@ -4545,7 +4539,7 @@ var mo = /* @__PURE__ */ z({
|
|
|
4545
4539
|
} finally {
|
|
4546
4540
|
C.setLoadingAnzuUser(!1);
|
|
4547
4541
|
}
|
|
4548
|
-
}, O = n.validationScope ?
|
|
4542
|
+
}, O = n.validationScope ? Zn({}, {}, { $scope: n.validationScope }) : Zn(), ne = U(!1), re = async () => {
|
|
4549
4543
|
try {
|
|
4550
4544
|
if (ne.value = !0, O.value.$touch(), O.value.$invalid) return u(), null;
|
|
4551
4545
|
let { execute: e } = p(), t = await e({ body: C.anzuUser });
|
|
@@ -4588,7 +4582,7 @@ var mo = /* @__PURE__ */ z({
|
|
|
4588
4582
|
loadingUpdateAnzuUser: ie,
|
|
4589
4583
|
resetAnzuUserStore: C.reset
|
|
4590
4584
|
};
|
|
4591
|
-
},
|
|
4585
|
+
}, Co = [
|
|
4592
4586
|
{
|
|
4593
4587
|
name: "id",
|
|
4594
4588
|
default: null,
|
|
@@ -4606,20 +4600,20 @@ var mo = /* @__PURE__ */ z({
|
|
|
4606
4600
|
default: null,
|
|
4607
4601
|
type: "boolean"
|
|
4608
4602
|
}
|
|
4609
|
-
],
|
|
4610
|
-
function
|
|
4611
|
-
let n = t ?? [], r = [...
|
|
4612
|
-
a || (a = tn(r),
|
|
4603
|
+
], wo = /* @__PURE__ */ new Map(), To = (e) => `labsAnzuUser_${e}`;
|
|
4604
|
+
function Eo(e, t) {
|
|
4605
|
+
let n = t ?? [], r = [...Co, ...n], i = [e, ...n.map((e) => e.name)].join("|"), a = wo.get(i);
|
|
4606
|
+
a || (a = tn(r), wo.set(i, a));
|
|
4613
4607
|
let { filterConfig: o, filterData: s } = qt(r, a, {
|
|
4614
4608
|
system: "common",
|
|
4615
|
-
subject:
|
|
4609
|
+
subject: vo
|
|
4616
4610
|
});
|
|
4617
4611
|
return {
|
|
4618
4612
|
filterConfig: o,
|
|
4619
4613
|
filterData: s
|
|
4620
4614
|
};
|
|
4621
4615
|
}
|
|
4622
|
-
function
|
|
4616
|
+
function Do() {
|
|
4623
4617
|
let e = [{
|
|
4624
4618
|
name: "email",
|
|
4625
4619
|
variant: "eq",
|
|
@@ -4627,7 +4621,7 @@ function Eo() {
|
|
|
4627
4621
|
type: "string"
|
|
4628
4622
|
}], { filterConfig: t, filterData: n } = qt(e, tn(e), {
|
|
4629
4623
|
system: "common",
|
|
4630
|
-
subject:
|
|
4624
|
+
subject: vo
|
|
4631
4625
|
});
|
|
4632
4626
|
return {
|
|
4633
4627
|
filterConfig: t,
|
|
@@ -4636,10 +4630,10 @@ function Eo() {
|
|
|
4636
4630
|
}
|
|
4637
4631
|
//#endregion
|
|
4638
4632
|
//#region src/labs/anzuUser/AAnzuUserDatatable.vue?vue&type=script&setup=true&lang.ts
|
|
4639
|
-
var
|
|
4633
|
+
var Oo = { class: "d-flex align-center" }, ko = {
|
|
4640
4634
|
key: 0,
|
|
4641
4635
|
class: "d-flex justify-end"
|
|
4642
|
-
},
|
|
4636
|
+
}, Ao = "filter.", jo = /* @__PURE__ */ z({
|
|
4643
4637
|
__name: "AAnzuUserDatatable",
|
|
4644
4638
|
props: {
|
|
4645
4639
|
client: {},
|
|
@@ -4652,7 +4646,7 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4652
4646
|
type: Boolean,
|
|
4653
4647
|
default: !1
|
|
4654
4648
|
},
|
|
4655
|
-
permissionGroupEndPoint: { default:
|
|
4649
|
+
permissionGroupEndPoint: { default: qa },
|
|
4656
4650
|
systemColumns: { default: () => [] },
|
|
4657
4651
|
impersonate: {
|
|
4658
4652
|
type: Function,
|
|
@@ -4672,23 +4666,23 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4672
4666
|
},
|
|
4673
4667
|
emits: ["rowClick"],
|
|
4674
4668
|
setup(e, { expose: t, emit: n }) {
|
|
4675
|
-
let r = e, i = n, { filterConfig: a, filterData: o } =
|
|
4669
|
+
let r = e, i = n, { filterConfig: a, filterData: o } = Eo(r.system, r.filterFields);
|
|
4676
4670
|
mn(Ce, a), mn(g, o);
|
|
4677
|
-
let { fetchAnzuUserList: s, cancelAnzuUserList: c, anzuUserList: l, loadingAnzuUserList: u, datatableHiddenColumns: d } =
|
|
4671
|
+
let { fetchAnzuUserList: s, cancelAnzuUserList: c, anzuUserList: l, loadingAnzuUserList: u, datatableHiddenColumns: d } = So({
|
|
4678
4672
|
client: r.client,
|
|
4679
4673
|
system: r.system,
|
|
4680
4674
|
entity: r.entity,
|
|
4681
4675
|
endPoint: r.endPoint
|
|
4682
|
-
}), { translatePermission: f } =
|
|
4676
|
+
}), { translatePermission: f } = Ba({
|
|
4683
4677
|
client: r.client,
|
|
4684
4678
|
system: r.system
|
|
4685
|
-
}), { addToCachedPermissionGroups: p, fetchCachedPermissionGroups: m, getCachedPermissionGroup: h } =
|
|
4679
|
+
}), { addToCachedPermissionGroups: p, fetchCachedPermissionGroups: m, getCachedPermissionGroup: h } = $a({
|
|
4686
4680
|
client: r.client,
|
|
4687
4681
|
system: r.system,
|
|
4688
4682
|
endPoint: r.permissionGroupEndPoint
|
|
4689
|
-
}), { resetFilter: _, submitFilter: v, loadStoredFilters: y } = xe(o, a, { storeFiltersLocalStorage:
|
|
4683
|
+
}), { resetFilter: _, submitFilter: v, loadStoredFilters: y } = xe(o, a, { storeFiltersLocalStorage: To(r.system) }), { pagination: b } = Wt("id");
|
|
4690
4684
|
mn(Xt, b);
|
|
4691
|
-
let { columnsVisible: x, columnsAll: S, columnsHidden: C } =
|
|
4685
|
+
let { columnsVisible: x, columnsAll: S, columnsHidden: C } = jr([
|
|
4692
4686
|
{ key: "id" },
|
|
4693
4687
|
{ key: "email" },
|
|
4694
4688
|
{ key: "enabled" },
|
|
@@ -4698,13 +4692,13 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4698
4692
|
...r.systemColumns.map((e) => typeof e == "string" ? { key: e } : e),
|
|
4699
4693
|
{ key: "createdAt" },
|
|
4700
4694
|
{ key: "modifiedAt" }
|
|
4701
|
-
], d, "common",
|
|
4695
|
+
], d, "common", vo, { storeColumnsLocalStorage: `table_labs_anzuUser_${r.system}` }), w = In(async () => {
|
|
4702
4696
|
await s(b, o, a);
|
|
4703
4697
|
});
|
|
4704
4698
|
J(l, (e) => {
|
|
4705
4699
|
e.forEach((e) => p(e.permissionGroups)), m();
|
|
4706
4700
|
});
|
|
4707
|
-
let T = M(() => r.systemColumns.map((e) => typeof e == "string" ? e : e.key)), ee =
|
|
4701
|
+
let T = M(() => r.systemColumns.map((e) => typeof e == "string" ? e : e.key)), ee = bn(), te = M(() => Object.keys(ee).filter((e) => e.startsWith(Ao)).map((e) => e.slice(7))), D = () => v(b, w), O = () => _(b, w), ne = (e, { item: t }) => {
|
|
4708
4702
|
t.id && i("rowClick", t);
|
|
4709
4703
|
};
|
|
4710
4704
|
return pn(() => {
|
|
@@ -4715,7 +4709,7 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4715
4709
|
refresh: w,
|
|
4716
4710
|
resetFilter: O,
|
|
4717
4711
|
submitFilter: D
|
|
4718
|
-
}), (t, n) => (H(), F("div", null, [R(
|
|
4712
|
+
}), (t, n) => (H(), F("div", null, [R(_o, {
|
|
4719
4713
|
"datatable-hidden-columns": q(C),
|
|
4720
4714
|
"onUpdate:datatableHiddenColumns": n[0] ||= (e) => sn(C) ? C.value = e : null,
|
|
4721
4715
|
client: e.filterClient,
|
|
@@ -4725,15 +4719,15 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4725
4719
|
onReset: O
|
|
4726
4720
|
}, rn({ _: 2 }, [W(te.value, (e) => ({
|
|
4727
4721
|
name: `item.${e}`,
|
|
4728
|
-
fn: Y((n) => [G(t.$slots, `${
|
|
4722
|
+
fn: Y((n) => [G(t.$slots, `${Ao}${e}`, un(an(n ?? {})))])
|
|
4729
4723
|
}))]), 1032, [
|
|
4730
4724
|
"datatable-hidden-columns",
|
|
4731
4725
|
"client",
|
|
4732
4726
|
"user-id",
|
|
4733
4727
|
"store"
|
|
4734
|
-
]), I("div", null, [I("div",
|
|
4735
|
-
R(
|
|
4736
|
-
R(
|
|
4728
|
+
]), I("div", null, [I("div", Oo, [
|
|
4729
|
+
R(On),
|
|
4730
|
+
R(_r, {
|
|
4737
4731
|
variant: "id",
|
|
4738
4732
|
onSortByChange: D
|
|
4739
4733
|
}),
|
|
@@ -4742,7 +4736,7 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4742
4736
|
"onUpdate:columnsHidden": n[1] ||= (e) => sn(C) ? C.value = e : null,
|
|
4743
4737
|
"columns-all": q(S)
|
|
4744
4738
|
}, null, 8, ["columns-hidden", "columns-all"])
|
|
4745
|
-
]), R(
|
|
4739
|
+
]), R(lr, {
|
|
4746
4740
|
class: "a-datatable",
|
|
4747
4741
|
headers: q(x),
|
|
4748
4742
|
items: q(l),
|
|
@@ -4755,14 +4749,14 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4755
4749
|
chip: "",
|
|
4756
4750
|
value: e.enabled
|
|
4757
4751
|
}, null, 8, ["value"])]),
|
|
4758
|
-
"item.roles": Y(({ item: e }) => [(H(!0), F(j, null, W(e.roles, (e) => (H(), N(
|
|
4752
|
+
"item.roles": Y(({ item: e }) => [(H(!0), F(j, null, W(e.roles, (e) => (H(), N(En, {
|
|
4759
4753
|
key: e,
|
|
4760
4754
|
class: "mr-1 mb-1"
|
|
4761
4755
|
}, {
|
|
4762
4756
|
default: Y(() => [L(K(q(f)("roles", e)), 1)]),
|
|
4763
4757
|
_: 2
|
|
4764
4758
|
}, 1024))), 128))]),
|
|
4765
|
-
"item.permissionGroups": Y(({ item: e }) => [G(t.$slots, "permissionGroups", { ids: e.permissionGroups }, () => [(H(!0), F(j, null, W(e.permissionGroups, (e) => (H(), N(
|
|
4759
|
+
"item.permissionGroups": Y(({ item: e }) => [G(t.$slots, "permissionGroups", { ids: e.permissionGroups }, () => [(H(!0), F(j, null, W(e.permissionGroups, (e) => (H(), N(En, {
|
|
4766
4760
|
key: e,
|
|
4767
4761
|
class: "mr-1 mb-1",
|
|
4768
4762
|
size: "small",
|
|
@@ -4771,13 +4765,13 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4771
4765
|
default: Y(() => [L(K(q(h)(e)?.title || e), 1)]),
|
|
4772
4766
|
_: 2
|
|
4773
4767
|
}, 1024))), 128))])]),
|
|
4774
|
-
"item.permissions": Y(({ item: e }) => [R(
|
|
4768
|
+
"item.permissions": Y(({ item: e }) => [R(En, null, {
|
|
4775
4769
|
default: Y(() => [L(K(Object.keys(e.permissions).length), 1)]),
|
|
4776
4770
|
_: 2
|
|
4777
4771
|
}, 1024)]),
|
|
4778
4772
|
"item.createdAt": Y(({ item: e }) => [R(Pe, { "date-time": e.createdAt }, null, 8, ["date-time"]), t.$slots.createdBy ? (H(), F(j, { key: 0 }, [n[2] ||= I("br", null, null, -1), G(t.$slots, "createdBy", { id: e.createdBy })], 64)) : P("", !0)]),
|
|
4779
4773
|
"item.modifiedAt": Y(({ item: e }) => [R(Pe, { "date-time": e.modifiedAt }, null, 8, ["date-time"]), t.$slots.modifiedBy ? (H(), F(j, { key: 0 }, [n[3] ||= I("br", null, null, -1), G(t.$slots, "modifiedBy", { id: e.modifiedBy })], 64)) : P("", !0)]),
|
|
4780
|
-
"item.actions": Y(({ item: n }) => [n.id ? (H(), F("div",
|
|
4774
|
+
"item.actions": Y(({ item: n }) => [n.id ? (H(), F("div", ko, [
|
|
4781
4775
|
R(E, { id: n.id }, null, 8, ["id"]),
|
|
4782
4776
|
R($, {
|
|
4783
4777
|
to: e.detailRoute(n),
|
|
@@ -4806,7 +4800,7 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4806
4800
|
}, null, 8, ["disabled", "onClick"])) : P("", !0),
|
|
4807
4801
|
G(t.$slots, "rowActions", { user: n })
|
|
4808
4802
|
])) : P("", !0)]),
|
|
4809
|
-
bottom: Y(() => [R(
|
|
4803
|
+
bottom: Y(() => [R(wr, { onChange: q(w) }, null, 8, ["onChange"])]),
|
|
4810
4804
|
_: 2
|
|
4811
4805
|
}, [W(T.value, (e) => ({
|
|
4812
4806
|
name: `item.${e}`,
|
|
@@ -4821,7 +4815,7 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4821
4815
|
"loading"
|
|
4822
4816
|
])])]));
|
|
4823
4817
|
}
|
|
4824
|
-
}),
|
|
4818
|
+
}), Mo = { class: "text-body-small text-medium-emphasis" }, No = /* @__PURE__ */ z({
|
|
4825
4819
|
__name: "AUserEnabledSwitch",
|
|
4826
4820
|
props: /*@__PURE__*/ B({
|
|
4827
4821
|
readonly: {
|
|
@@ -4838,7 +4832,7 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4838
4832
|
}),
|
|
4839
4833
|
emits: ["update:modelValue"],
|
|
4840
4834
|
setup(e) {
|
|
4841
|
-
let t =
|
|
4835
|
+
let t = yn(e, "modelValue"), { t: n } = Tn();
|
|
4842
4836
|
return (r, i) => (H(), F("div", null, [e.readonly ? (H(), N(It, {
|
|
4843
4837
|
key: 0,
|
|
4844
4838
|
title: q(n)("common.anzuUser.model.enabled")
|
|
@@ -4848,7 +4842,7 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4848
4842
|
chip: ""
|
|
4849
4843
|
}, null, 8, ["value"])]),
|
|
4850
4844
|
_: 1
|
|
4851
|
-
}, 8, ["title"])) : (H(), N(
|
|
4845
|
+
}, 8, ["title"])) : (H(), N(er, {
|
|
4852
4846
|
key: 1,
|
|
4853
4847
|
modelValue: t.value,
|
|
4854
4848
|
"onUpdate:modelValue": i[0] ||= (e) => t.value = e,
|
|
@@ -4857,16 +4851,16 @@ var Do = { class: "d-flex align-center" }, Oo = {
|
|
|
4857
4851
|
density: "compact",
|
|
4858
4852
|
"hide-details": "",
|
|
4859
4853
|
"data-cy": "user-enabled"
|
|
4860
|
-
}, null, 8, ["modelValue", "label"])), I("div",
|
|
4854
|
+
}, null, 8, ["modelValue", "label"])), I("div", Mo, [G(r.$slots, "note", {}, () => [e.note ? (H(), F(j, { key: 0 }, [L(K(e.note), 1)], 64)) : P("", !0)])])]));
|
|
4861
4855
|
}
|
|
4862
4856
|
});
|
|
4863
4857
|
//#endregion
|
|
4864
4858
|
//#region src/labs/anzuUser/anzuUserValidations.ts
|
|
4865
|
-
function
|
|
4859
|
+
function Po(e, t) {
|
|
4866
4860
|
let { email: n, hexColor: r, maxLength: i, minLength: a, required: o } = Ae(), s = M(() => {
|
|
4867
|
-
let e = t.required ? { required: o } : {};
|
|
4861
|
+
let e = vn(t.required) ? { required: o } : {};
|
|
4868
4862
|
return { user: {
|
|
4869
|
-
id: t.idInput && !t.isEdit ? { required: o } : {},
|
|
4863
|
+
id: vn(t.idInput) && !vn(t.isEdit) ? { required: o } : {},
|
|
4870
4864
|
email: {
|
|
4871
4865
|
required: o,
|
|
4872
4866
|
email: n,
|
|
@@ -4902,14 +4896,14 @@ function No(e, t) {
|
|
|
4902
4896
|
}
|
|
4903
4897
|
} };
|
|
4904
4898
|
});
|
|
4905
|
-
return { v$:
|
|
4899
|
+
return { v$: Zn(s, { user: e }, t.scope === void 0 ? void 0 : { $scope: t.scope }) };
|
|
4906
4900
|
}
|
|
4907
4901
|
//#endregion
|
|
4908
4902
|
//#region src/labs/anzuUser/AUserMetadataForm.vue?vue&type=script&setup=true&lang.ts
|
|
4909
|
-
var
|
|
4903
|
+
var Fo = {
|
|
4910
4904
|
key: 0,
|
|
4911
4905
|
class: "text-error text-body-small"
|
|
4912
|
-
},
|
|
4906
|
+
}, Io = /* @__PURE__ */ z({
|
|
4913
4907
|
__name: "AUserMetadataForm",
|
|
4914
4908
|
props: /*@__PURE__*/ B({
|
|
4915
4909
|
required: {
|
|
@@ -4934,7 +4928,7 @@ var Po = {
|
|
|
4934
4928
|
},
|
|
4935
4929
|
note: { default: void 0 },
|
|
4936
4930
|
scopeSystem: { default: "common" },
|
|
4937
|
-
scopeSubject: { default:
|
|
4931
|
+
scopeSubject: { default: vo },
|
|
4938
4932
|
validationScope: {
|
|
4939
4933
|
type: [
|
|
4940
4934
|
String,
|
|
@@ -4949,10 +4943,10 @@ var Po = {
|
|
|
4949
4943
|
}),
|
|
4950
4944
|
emits: ["update:user"],
|
|
4951
4945
|
setup(e) {
|
|
4952
|
-
let t = e, n =
|
|
4953
|
-
required: t.required,
|
|
4954
|
-
idInput: t.idInput,
|
|
4955
|
-
isEdit: t.isEdit,
|
|
4946
|
+
let t = e, n = yn(e, "user"), { t: r } = Tn(), { v$: i } = Po(n, {
|
|
4947
|
+
required: () => t.required,
|
|
4948
|
+
idInput: () => t.idInput,
|
|
4949
|
+
isEdit: () => t.isEdit,
|
|
4956
4950
|
scope: t.validationScope
|
|
4957
4951
|
}), a = () => {
|
|
4958
4952
|
let { firstName: e, lastName: t } = n.value.person;
|
|
@@ -4969,10 +4963,10 @@ var Po = {
|
|
|
4969
4963
|
system: e.scopeSystem,
|
|
4970
4964
|
subject: e.scopeSubject
|
|
4971
4965
|
}, {
|
|
4972
|
-
default: Y(() => [R(
|
|
4966
|
+
default: Y(() => [R(Dn, null, {
|
|
4973
4967
|
default: Y(() => [R(Z, { cols: "12" }, {
|
|
4974
4968
|
default: Y(() => [
|
|
4975
|
-
e.note ? (H(), N(
|
|
4969
|
+
e.note ? (H(), N(kn, {
|
|
4976
4970
|
key: 0,
|
|
4977
4971
|
type: "info",
|
|
4978
4972
|
variant: "tonal",
|
|
@@ -4982,7 +4976,7 @@ var Po = {
|
|
|
4982
4976
|
default: Y(() => [L(K(e.note), 1)]),
|
|
4983
4977
|
_: 1
|
|
4984
4978
|
})) : P("", !0),
|
|
4985
|
-
R(
|
|
4979
|
+
R(Dn, null, {
|
|
4986
4980
|
default: Y(() => [R(Z, {
|
|
4987
4981
|
cols: "12",
|
|
4988
4982
|
sm: "3"
|
|
@@ -5029,7 +5023,7 @@ var Po = {
|
|
|
5029
5023
|
})]),
|
|
5030
5024
|
_: 1
|
|
5031
5025
|
}),
|
|
5032
|
-
R(
|
|
5026
|
+
R(Dn, null, {
|
|
5033
5027
|
default: Y(() => [
|
|
5034
5028
|
R(Z, {
|
|
5035
5029
|
cols: "12",
|
|
@@ -5092,7 +5086,7 @@ var Po = {
|
|
|
5092
5086
|
]),
|
|
5093
5087
|
_: 1
|
|
5094
5088
|
}),
|
|
5095
|
-
R(
|
|
5089
|
+
R(Dn, null, {
|
|
5096
5090
|
default: Y(() => [R(Z, {
|
|
5097
5091
|
cols: "12",
|
|
5098
5092
|
sm: "3"
|
|
@@ -5110,7 +5104,7 @@ var Po = {
|
|
|
5110
5104
|
"readonly",
|
|
5111
5105
|
"required",
|
|
5112
5106
|
"random-color"
|
|
5113
|
-
]), q(i).user.avatar.color.$error ? (H(), F("div",
|
|
5107
|
+
]), q(i).user.avatar.color.$error ? (H(), F("div", Fo, K(q(i).user.avatar.color.$errors[0]?.$message), 1)) : P("", !0)]),
|
|
5114
5108
|
_: 1
|
|
5115
5109
|
}), R(Z, {
|
|
5116
5110
|
cols: "12",
|
|
@@ -5147,7 +5141,7 @@ var Po = {
|
|
|
5147
5141
|
_: 1
|
|
5148
5142
|
}, 8, ["system", "subject"]));
|
|
5149
5143
|
}
|
|
5150
|
-
}),
|
|
5144
|
+
}), Lo = /* @__PURE__ */ z({
|
|
5151
5145
|
__name: "AAnzuUserRoleAutocomplete",
|
|
5152
5146
|
props: /*@__PURE__*/ B({
|
|
5153
5147
|
client: {},
|
|
@@ -5164,7 +5158,7 @@ var Po = {
|
|
|
5164
5158
|
}),
|
|
5165
5159
|
emits: ["update:modelValue"],
|
|
5166
5160
|
setup(e) {
|
|
5167
|
-
let t = e, n =
|
|
5161
|
+
let t = e, n = yn(e, "modelValue"), { permissionConfig: r, translatePermission: i } = Ba({
|
|
5168
5162
|
client: t.client,
|
|
5169
5163
|
system: t.system,
|
|
5170
5164
|
entity: t.entity,
|
|
@@ -5172,8 +5166,8 @@ var Po = {
|
|
|
5172
5166
|
}), a = M(() => r.value.roles.map((e) => ({
|
|
5173
5167
|
title: i("roles", e),
|
|
5174
5168
|
value: e
|
|
5175
|
-
}))), { t: o } =
|
|
5176
|
-
return (t, r) => (H(), N(
|
|
5169
|
+
}))), { t: o } = Tn();
|
|
5170
|
+
return (t, r) => (H(), N($n, {
|
|
5177
5171
|
modelValue: n.value,
|
|
5178
5172
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
5179
5173
|
items: a.value,
|
|
@@ -5196,12 +5190,12 @@ var Po = {
|
|
|
5196
5190
|
"clearable"
|
|
5197
5191
|
]));
|
|
5198
5192
|
}
|
|
5199
|
-
}),
|
|
5193
|
+
}), Ro = /* @__PURE__ */ z({
|
|
5200
5194
|
__name: "AAnzuUserForm",
|
|
5201
5195
|
props: /*@__PURE__*/ B({
|
|
5202
5196
|
client: {},
|
|
5203
5197
|
system: {},
|
|
5204
|
-
permissionGroupEndPoint: { default:
|
|
5198
|
+
permissionGroupEndPoint: { default: qa },
|
|
5205
5199
|
readonly: {
|
|
5206
5200
|
type: Boolean,
|
|
5207
5201
|
default: !1
|
|
@@ -5230,19 +5224,19 @@ var Po = {
|
|
|
5230
5224
|
}),
|
|
5231
5225
|
emits: ["update:user"],
|
|
5232
5226
|
setup(e) {
|
|
5233
|
-
let t = e, n =
|
|
5227
|
+
let t = e, n = yn(e, "user"), { t: r } = Tn(), { resolvePermissions: i } = eo({
|
|
5234
5228
|
client: t.client,
|
|
5235
5229
|
system: t.system,
|
|
5236
5230
|
endPoint: t.permissionGroupEndPoint
|
|
5237
5231
|
}), a = M(() => i(n.value));
|
|
5238
5232
|
return (t, i) => (H(), N(O, {
|
|
5239
5233
|
system: "common",
|
|
5240
|
-
subject: q(
|
|
5234
|
+
subject: q(vo)
|
|
5241
5235
|
}, {
|
|
5242
|
-
default: Y(() => [R(
|
|
5236
|
+
default: Y(() => [R(Dn, null, {
|
|
5243
5237
|
default: Y(() => [
|
|
5244
5238
|
R(Z, { cols: "12" }, {
|
|
5245
|
-
default: Y(() => [R(
|
|
5239
|
+
default: Y(() => [R(No, {
|
|
5246
5240
|
modelValue: n.value.enabled,
|
|
5247
5241
|
"onUpdate:modelValue": i[0] ||= (e) => n.value.enabled = e,
|
|
5248
5242
|
readonly: e.readonly,
|
|
@@ -5255,7 +5249,7 @@ var Po = {
|
|
|
5255
5249
|
_: 1
|
|
5256
5250
|
}),
|
|
5257
5251
|
R(Z, { cols: "12" }, {
|
|
5258
|
-
default: Y(() => [R(
|
|
5252
|
+
default: Y(() => [R(Io, {
|
|
5259
5253
|
user: n.value,
|
|
5260
5254
|
"onUpdate:user": i[1] ||= (e) => n.value = e,
|
|
5261
5255
|
required: e.requiredMetadata,
|
|
@@ -5293,7 +5287,7 @@ var Po = {
|
|
|
5293
5287
|
_: 3
|
|
5294
5288
|
})) : P("", !0),
|
|
5295
5289
|
R(Z, { cols: "12" }, {
|
|
5296
|
-
default: Y(() => [R(
|
|
5290
|
+
default: Y(() => [R(Lo, {
|
|
5297
5291
|
modelValue: n.value.roles,
|
|
5298
5292
|
"onUpdate:modelValue": i[2] ||= (e) => n.value.roles = e,
|
|
5299
5293
|
client: e.client,
|
|
@@ -5308,7 +5302,7 @@ var Po = {
|
|
|
5308
5302
|
_: 1
|
|
5309
5303
|
}),
|
|
5310
5304
|
R(Z, { cols: "12" }, {
|
|
5311
|
-
default: Y(() => [R(
|
|
5305
|
+
default: Y(() => [R(go, {
|
|
5312
5306
|
modelValue: n.value.permissionGroups,
|
|
5313
5307
|
"onUpdate:modelValue": i[3] ||= (e) => n.value.permissionGroups = e,
|
|
5314
5308
|
client: e.client,
|
|
@@ -5336,7 +5330,7 @@ var Po = {
|
|
|
5336
5330
|
_: 3
|
|
5337
5331
|
})) : P("", !0),
|
|
5338
5332
|
R(Z, { cols: "12" }, {
|
|
5339
|
-
default: Y(() => [R(
|
|
5333
|
+
default: Y(() => [R(Ga, {
|
|
5340
5334
|
modelValue: n.value.permissions,
|
|
5341
5335
|
"onUpdate:modelValue": i[4] ||= (e) => n.value.permissions = e,
|
|
5342
5336
|
"resolved-permissions": a.value,
|
|
@@ -5360,7 +5354,7 @@ var Po = {
|
|
|
5360
5354
|
_: 3
|
|
5361
5355
|
}, 8, ["subject"]));
|
|
5362
5356
|
}
|
|
5363
|
-
}),
|
|
5357
|
+
}), zo = { class: "text-body-small" }, Bo = { class: "text-right" }, Vo = { class: "ml-5 text-body-small" }, Ho = /* @__PURE__ */ z({
|
|
5364
5358
|
__name: "AUserCopyPermissionsDialog",
|
|
5365
5359
|
props: /*@__PURE__*/ B({
|
|
5366
5360
|
fetchSourceUser: { type: Function },
|
|
@@ -5372,7 +5366,7 @@ var Po = {
|
|
|
5372
5366
|
}),
|
|
5373
5367
|
emits: ["update:user"],
|
|
5374
5368
|
setup(n) {
|
|
5375
|
-
let r = n, i =
|
|
5369
|
+
let r = n, i = yn(n, "user"), a = U(!1), o = U(!1), s = U(null), { t: c } = Tn(), { showErrorsDefault: l } = t(), u = () => {
|
|
5376
5370
|
s.value = null, a.value = !0;
|
|
5377
5371
|
}, d = async () => {
|
|
5378
5372
|
if (!e(s.value)) {
|
|
@@ -5390,8 +5384,8 @@ var Po = {
|
|
|
5390
5384
|
return (t, r) => {
|
|
5391
5385
|
let i = hn("ABtnTertiary"), l = hn("ABtnPrimary");
|
|
5392
5386
|
return H(), F("div", null, [
|
|
5393
|
-
I("p",
|
|
5394
|
-
I("div",
|
|
5387
|
+
I("p", zo, K(q(c)("common.anzuUser.copyPermissions.desc")), 1),
|
|
5388
|
+
I("div", Bo, [R(i, {
|
|
5395
5389
|
size: "small",
|
|
5396
5390
|
"data-cy": "user-copy-permissions",
|
|
5397
5391
|
onClick: X(u, ["stop"])
|
|
@@ -5399,25 +5393,25 @@ var Po = {
|
|
|
5399
5393
|
default: Y(() => [L(K(q(c)("common.anzuUser.copyPermissions.title")), 1)]),
|
|
5400
5394
|
_: 1
|
|
5401
5395
|
})]),
|
|
5402
|
-
a.value ? (H(), N(
|
|
5396
|
+
a.value ? (H(), N(Xn, {
|
|
5403
5397
|
key: 0,
|
|
5404
5398
|
"model-value": a.value,
|
|
5405
5399
|
"max-width": 900
|
|
5406
5400
|
}, {
|
|
5407
|
-
default: Y(() => [R(
|
|
5401
|
+
default: Y(() => [R(jn, null, {
|
|
5408
5402
|
default: Y(() => [
|
|
5409
5403
|
R(v, { onOnCancel: r[0] ||= (e) => a.value = !1 }, {
|
|
5410
5404
|
default: Y(() => [L(K(q(c)("common.anzuUser.copyPermissions.title")), 1)]),
|
|
5411
5405
|
_: 1
|
|
5412
5406
|
}),
|
|
5413
|
-
R(
|
|
5407
|
+
R(Nn, null, {
|
|
5414
5408
|
default: Y(() => [
|
|
5415
5409
|
G(t.$slots, "sourcePicker", {
|
|
5416
5410
|
select: (e) => s.value = e,
|
|
5417
5411
|
selected: s.value
|
|
5418
5412
|
}),
|
|
5419
5413
|
I("strong", null, K(q(c)("common.anzuUser.copyPermissions.copiedSettings")), 1),
|
|
5420
|
-
I("ul",
|
|
5414
|
+
I("ul", Vo, [
|
|
5421
5415
|
I("li", null, K(q(c)("common.anzuUser.model.roles")), 1),
|
|
5422
5416
|
I("li", null, K(q(c)("common.anzuUser.model.permissionGroups")), 1),
|
|
5423
5417
|
I("li", null, K(q(c)("common.anzuUser.model.permissions")), 1),
|
|
@@ -5426,13 +5420,13 @@ var Po = {
|
|
|
5426
5420
|
]),
|
|
5427
5421
|
_: 3
|
|
5428
5422
|
}),
|
|
5429
|
-
R(
|
|
5423
|
+
R(Mn, null, {
|
|
5430
5424
|
default: Y(() => [
|
|
5431
5425
|
R(i, { onClick: r[1] ||= X((e) => a.value = !1, ["stop"]) }, {
|
|
5432
5426
|
default: Y(() => [L(K(q(c)("common.button.cancel")), 1)]),
|
|
5433
5427
|
_: 1
|
|
5434
5428
|
}),
|
|
5435
|
-
R(
|
|
5429
|
+
R(On),
|
|
5436
5430
|
R(l, {
|
|
5437
5431
|
disabled: q(e)(s.value),
|
|
5438
5432
|
loading: o.value,
|
|
@@ -5453,11 +5447,11 @@ var Po = {
|
|
|
5453
5447
|
]);
|
|
5454
5448
|
};
|
|
5455
5449
|
}
|
|
5456
|
-
}),
|
|
5450
|
+
}), Uo = (e) => e, Wo = (e) => {
|
|
5457
5451
|
let t = e.endpoints[e.endpoints.probe];
|
|
5458
5452
|
if (t === null) throw Error(`[userSystemDescriptor] '${e.system}' names probe '${e.endpoints.probe}', which it does not have.`);
|
|
5459
5453
|
return t;
|
|
5460
|
-
},
|
|
5454
|
+
}, Go = (e) => {
|
|
5461
5455
|
let t = e.endpoints.base;
|
|
5462
5456
|
if (t !== null) return {
|
|
5463
5457
|
method: "PATCH",
|
|
@@ -5471,7 +5465,7 @@ var Po = {
|
|
|
5471
5465
|
get: n.get,
|
|
5472
5466
|
url: n.put
|
|
5473
5467
|
};
|
|
5474
|
-
},
|
|
5468
|
+
}, Ko = (e) => {
|
|
5475
5469
|
let t = e.endpoints.base;
|
|
5476
5470
|
if (t !== null) return {
|
|
5477
5471
|
get: t.get,
|
|
@@ -5483,16 +5477,16 @@ var Po = {
|
|
|
5483
5477
|
get: n.get,
|
|
5484
5478
|
url: n.put
|
|
5485
5479
|
};
|
|
5486
|
-
},
|
|
5480
|
+
}, qo = (e) => {
|
|
5487
5481
|
let t = e.endpoints.base;
|
|
5488
5482
|
if (t !== null) return t.post;
|
|
5489
5483
|
let n = e.endpoints.anzuUser;
|
|
5490
5484
|
if (n === null) throw Error(`[userSystemDescriptor] '${e.system}' has no create path.`);
|
|
5491
5485
|
return n.post;
|
|
5492
|
-
},
|
|
5486
|
+
}, Jo = { class: "d-inline-flex" }, Yo = { class: "mt-2" }, Xo = {
|
|
5493
5487
|
key: 0,
|
|
5494
5488
|
class: "mt-2"
|
|
5495
|
-
},
|
|
5489
|
+
}, Zo = { class: "mt-2" }, Qo = /* @__PURE__ */ z({
|
|
5496
5490
|
__name: "AUserCreateInSystemButton",
|
|
5497
5491
|
props: {
|
|
5498
5492
|
systemLabel: {},
|
|
@@ -5518,7 +5512,7 @@ var Po = {
|
|
|
5518
5512
|
},
|
|
5519
5513
|
emits: ["confirm"],
|
|
5520
5514
|
setup(t, { emit: n }) {
|
|
5521
|
-
let r = t, i = n, { t: a } =
|
|
5515
|
+
let r = t, i = n, { t: a } = Tn(), { createAnzuUser: o } = ot(), s = U(!1), c = U(o()), l = Zn();
|
|
5522
5516
|
J(s, (t) => {
|
|
5523
5517
|
if (!t) return;
|
|
5524
5518
|
let n = e(r.source) ? o() : k(r.source);
|
|
@@ -5529,7 +5523,7 @@ var Po = {
|
|
|
5529
5523
|
};
|
|
5530
5524
|
return (e, n) => {
|
|
5531
5525
|
let i = hn("ABtnTertiary"), o = hn("ABtnPrimary");
|
|
5532
|
-
return H(), F("div",
|
|
5526
|
+
return H(), F("div", Jo, [R($, {
|
|
5533
5527
|
disabled: t.disabled,
|
|
5534
5528
|
loading: t.loading,
|
|
5535
5529
|
size: "small",
|
|
@@ -5540,39 +5534,39 @@ var Po = {
|
|
|
5540
5534
|
}, {
|
|
5541
5535
|
default: Y(() => [L(K(q(a)("common.userSystem.button.create")), 1)]),
|
|
5542
5536
|
_: 1
|
|
5543
|
-
}, 8, ["disabled", "loading"]), R(
|
|
5537
|
+
}, 8, ["disabled", "loading"]), R(Xn, {
|
|
5544
5538
|
modelValue: s.value,
|
|
5545
5539
|
"onUpdate:modelValue": n[4] ||= (e) => s.value = e,
|
|
5546
5540
|
"max-width": 640
|
|
5547
5541
|
}, {
|
|
5548
|
-
default: Y(() => [R(
|
|
5542
|
+
default: Y(() => [R(jn, null, {
|
|
5549
5543
|
default: Y(() => [
|
|
5550
5544
|
R(v, { onOnCancel: n[1] ||= (e) => s.value = !1 }, {
|
|
5551
5545
|
default: Y(() => [L(K(q(a)("common.userSystem.create.title", { system: t.systemLabel })), 1)]),
|
|
5552
5546
|
_: 1
|
|
5553
5547
|
}),
|
|
5554
|
-
R(
|
|
5548
|
+
R(Nn, null, {
|
|
5555
5549
|
default: Y(() => [
|
|
5556
|
-
R(
|
|
5550
|
+
R(Io, {
|
|
5557
5551
|
user: c.value,
|
|
5558
5552
|
"onUpdate:user": n[2] ||= (e) => c.value = e,
|
|
5559
5553
|
required: t.requiredMetadata,
|
|
5560
5554
|
"id-input": "",
|
|
5561
5555
|
"is-edit": ""
|
|
5562
5556
|
}, null, 8, ["user", "required"]),
|
|
5563
|
-
I("p",
|
|
5564
|
-
t.createNote ? (H(), F("p",
|
|
5565
|
-
I("p",
|
|
5557
|
+
I("p", Yo, K(q(a)("common.userSystem.create.note")), 1),
|
|
5558
|
+
t.createNote ? (H(), F("p", Xo, K(t.createNote), 1)) : P("", !0),
|
|
5559
|
+
I("p", Zo, K(r.willBeEnabled ? q(a)("common.userSystem.create.willBeEnabled") : q(a)("common.userSystem.create.willBeDisabled")), 1)
|
|
5566
5560
|
]),
|
|
5567
5561
|
_: 1
|
|
5568
5562
|
}),
|
|
5569
|
-
R(
|
|
5563
|
+
R(Mn, null, {
|
|
5570
5564
|
default: Y(() => [
|
|
5571
5565
|
R(i, { onClick: n[3] ||= X((e) => s.value = !1, ["stop"]) }, {
|
|
5572
5566
|
default: Y(() => [L(K(q(a)("common.button.cancel")), 1)]),
|
|
5573
5567
|
_: 1
|
|
5574
5568
|
}),
|
|
5575
|
-
R(
|
|
5569
|
+
R(On),
|
|
5576
5570
|
R(o, {
|
|
5577
5571
|
loading: t.loading,
|
|
5578
5572
|
"data-cy": "user-system-create-confirm",
|
|
@@ -5591,7 +5585,7 @@ var Po = {
|
|
|
5591
5585
|
}, 8, ["modelValue"])]);
|
|
5592
5586
|
};
|
|
5593
5587
|
}
|
|
5594
|
-
}),
|
|
5588
|
+
}), $o = /* @__PURE__ */ z({
|
|
5595
5589
|
__name: "AUserManageButton",
|
|
5596
5590
|
props: {
|
|
5597
5591
|
target: {},
|
|
@@ -5599,8 +5593,8 @@ var Po = {
|
|
|
5599
5593
|
internalLabel: { default: void 0 }
|
|
5600
5594
|
},
|
|
5601
5595
|
setup(e) {
|
|
5602
|
-
let t = e, { t: n } =
|
|
5603
|
-
return (e, t) => (H(), N(
|
|
5596
|
+
let t = e, { t: n } = Tn(), r = M(() => t.target.kind === "external"), i = M(() => t.target.kind === "external" && t.target.href === null), a = M(() => t.target.kind === "external" ? t.target.href ?? void 0 : void 0), o = M(() => t.target.kind === "internal" ? t.target.to : void 0), s = M(() => r.value ? n("common.userSystem.button.manageIn", { system: t.systemLabel }) : t.internalLabel ?? n("common.userSystem.button.edit"));
|
|
5597
|
+
return (e, t) => (H(), N(Fn, {
|
|
5604
5598
|
disabled: !i.value,
|
|
5605
5599
|
location: "top"
|
|
5606
5600
|
}, {
|
|
@@ -5632,22 +5626,22 @@ var Po = {
|
|
|
5632
5626
|
_: 1
|
|
5633
5627
|
}, 8, ["disabled"]));
|
|
5634
5628
|
}
|
|
5635
|
-
}),
|
|
5629
|
+
}), es = {
|
|
5636
5630
|
Idle: "idle",
|
|
5637
5631
|
Loading: "loading",
|
|
5638
5632
|
Loaded: "loaded",
|
|
5639
5633
|
Error: "error"
|
|
5640
|
-
},
|
|
5634
|
+
}, ts = {
|
|
5641
5635
|
Present: "present",
|
|
5642
5636
|
Absent: "absent",
|
|
5643
5637
|
Unknown: "unknown"
|
|
5644
|
-
},
|
|
5638
|
+
}, ns = {
|
|
5645
5639
|
Ok: "ok",
|
|
5646
5640
|
Forbidden: "forbidden",
|
|
5647
5641
|
Unauthenticated: "unauthenticated",
|
|
5648
5642
|
Unavailable: "unavailable",
|
|
5649
5643
|
ConfigDisabled: "configDisabled"
|
|
5650
|
-
},
|
|
5644
|
+
}, rs = {
|
|
5651
5645
|
Loading: "loading",
|
|
5652
5646
|
Enabled: "enabled",
|
|
5653
5647
|
Disabled: "disabled",
|
|
@@ -5655,74 +5649,74 @@ var Po = {
|
|
|
5655
5649
|
Forbidden: "forbidden",
|
|
5656
5650
|
Unavailable: "unavailable",
|
|
5657
5651
|
ConfigDisabled: "configDisabled"
|
|
5658
|
-
},
|
|
5659
|
-
load:
|
|
5660
|
-
presence:
|
|
5661
|
-
access:
|
|
5652
|
+
}, is = () => ({
|
|
5653
|
+
load: es.Idle,
|
|
5654
|
+
presence: ts.Unknown,
|
|
5655
|
+
access: ns.Ok,
|
|
5662
5656
|
enabled: "unknown"
|
|
5663
|
-
}),
|
|
5664
|
-
presence:
|
|
5665
|
-
access:
|
|
5657
|
+
}), as = (e) => e.access === ns.ConfigDisabled ? rs.ConfigDisabled : e.access === ns.Forbidden ? rs.Forbidden : e.access === ns.Unauthenticated || e.access === ns.Unavailable ? rs.Unavailable : e.load === es.Idle || e.load === es.Loading ? rs.Loading : e.presence === ts.Absent ? rs.Absent : e.presence === ts.Unknown ? rs.Unavailable : e.enabled === !0 ? rs.Enabled : rs.Disabled, os = (e) => e === null ? {
|
|
5658
|
+
presence: ts.Unknown,
|
|
5659
|
+
access: ns.Unavailable
|
|
5666
5660
|
} : e === 404 ? {
|
|
5667
|
-
presence:
|
|
5668
|
-
access:
|
|
5661
|
+
presence: ts.Absent,
|
|
5662
|
+
access: ns.Ok
|
|
5669
5663
|
} : e === 403 ? {
|
|
5670
|
-
presence:
|
|
5671
|
-
access:
|
|
5664
|
+
presence: ts.Unknown,
|
|
5665
|
+
access: ns.Forbidden
|
|
5672
5666
|
} : e === 401 ? {
|
|
5673
|
-
presence:
|
|
5674
|
-
access:
|
|
5667
|
+
presence: ts.Unknown,
|
|
5668
|
+
access: ns.Unauthenticated
|
|
5675
5669
|
} : e >= 500 ? {
|
|
5676
|
-
presence:
|
|
5677
|
-
access:
|
|
5670
|
+
presence: ts.Unknown,
|
|
5671
|
+
access: ns.Unavailable
|
|
5678
5672
|
} : e >= 200 && e < 300 ? {
|
|
5679
|
-
presence:
|
|
5680
|
-
access:
|
|
5673
|
+
presence: ts.Present,
|
|
5674
|
+
access: ns.Ok
|
|
5681
5675
|
} : {
|
|
5682
|
-
presence:
|
|
5683
|
-
access:
|
|
5684
|
-
},
|
|
5676
|
+
presence: ts.Unknown,
|
|
5677
|
+
access: ns.Unavailable
|
|
5678
|
+
}, ss = (e) => e.load === es.Loaded && e.presence === ts.Absent && e.access === ns.Ok, cs = (e) => e.load === es.Loaded && e.presence === ts.Present && e.access === ns.Ok, ls = /* @__PURE__ */ z({
|
|
5685
5679
|
__name: "AUserSystemStatusChip",
|
|
5686
5680
|
props: { axes: {} },
|
|
5687
5681
|
setup(e) {
|
|
5688
|
-
let t = e, { t: n } =
|
|
5689
|
-
[
|
|
5682
|
+
let t = e, { t: n } = Tn(), r = M(() => as(t.axes)), i = {
|
|
5683
|
+
[rs.Loading]: {
|
|
5690
5684
|
color: "default",
|
|
5691
5685
|
icon: "mdi-dots-horizontal",
|
|
5692
5686
|
muted: !0
|
|
5693
5687
|
},
|
|
5694
|
-
[
|
|
5688
|
+
[rs.Enabled]: {
|
|
5695
5689
|
color: "success",
|
|
5696
5690
|
icon: "mdi-check-circle-outline",
|
|
5697
5691
|
muted: !1
|
|
5698
5692
|
},
|
|
5699
|
-
[
|
|
5693
|
+
[rs.Disabled]: {
|
|
5700
5694
|
color: "warning",
|
|
5701
5695
|
icon: "mdi-alert-circle-outline",
|
|
5702
5696
|
muted: !1
|
|
5703
5697
|
},
|
|
5704
|
-
[
|
|
5698
|
+
[rs.Absent]: {
|
|
5705
5699
|
color: "default",
|
|
5706
5700
|
icon: "mdi-close-circle-outline",
|
|
5707
5701
|
muted: !1
|
|
5708
5702
|
},
|
|
5709
|
-
[
|
|
5703
|
+
[rs.Forbidden]: {
|
|
5710
5704
|
color: "default",
|
|
5711
5705
|
icon: "mdi-cancel",
|
|
5712
5706
|
muted: !1
|
|
5713
5707
|
},
|
|
5714
|
-
[
|
|
5708
|
+
[rs.Unavailable]: {
|
|
5715
5709
|
color: "error",
|
|
5716
5710
|
icon: "mdi-alert-outline",
|
|
5717
5711
|
muted: !1
|
|
5718
5712
|
},
|
|
5719
|
-
[
|
|
5713
|
+
[rs.ConfigDisabled]: {
|
|
5720
5714
|
color: "default",
|
|
5721
5715
|
icon: "mdi-cancel",
|
|
5722
5716
|
muted: !0
|
|
5723
5717
|
}
|
|
5724
5718
|
}, a = M(() => i[r.value]);
|
|
5725
|
-
return (e, t) => (H(), N(
|
|
5719
|
+
return (e, t) => (H(), N(En, {
|
|
5726
5720
|
color: a.value.color,
|
|
5727
5721
|
"prepend-icon": a.value.icon,
|
|
5728
5722
|
class: ln({ "text-disabled": a.value.muted }),
|
|
@@ -5739,23 +5733,23 @@ var Po = {
|
|
|
5739
5733
|
"data-cy"
|
|
5740
5734
|
]));
|
|
5741
5735
|
}
|
|
5742
|
-
}),
|
|
5736
|
+
}), us = "anzuUserProbe", ds = Symbol("UserSystemRefreshHook"), fs = (e) => {
|
|
5743
5737
|
if (e instanceof kt) return e.code;
|
|
5744
5738
|
if (e instanceof en) return 403;
|
|
5745
5739
|
if (e instanceof xt) return e.cause.response?.status ?? null;
|
|
5746
5740
|
let t = e?.cause;
|
|
5747
|
-
return
|
|
5748
|
-
},
|
|
5749
|
-
let { descriptor: t, refreshHook: n } = e, r = U(
|
|
5741
|
+
return Yn.isAxiosError(t) ? t.response?.status ?? null : Yn.isAxiosError(e) ? e.response?.status ?? null : null;
|
|
5742
|
+
}, ps = (e) => {
|
|
5743
|
+
let { descriptor: t, refreshHook: n } = e, r = U(is()), i = U(null), a = 0, o = null;
|
|
5750
5744
|
return {
|
|
5751
5745
|
axes: r,
|
|
5752
5746
|
user: i,
|
|
5753
5747
|
probe: async (e) => {
|
|
5754
5748
|
if (!t.isEnabled()) {
|
|
5755
5749
|
r.value = {
|
|
5756
|
-
load:
|
|
5757
|
-
presence:
|
|
5758
|
-
access:
|
|
5750
|
+
load: es.Loaded,
|
|
5751
|
+
presence: ts.Unknown,
|
|
5752
|
+
access: ns.ConfigDisabled,
|
|
5759
5753
|
enabled: "unknown"
|
|
5760
5754
|
}, i.value = null;
|
|
5761
5755
|
return;
|
|
@@ -5763,14 +5757,14 @@ var Po = {
|
|
|
5763
5757
|
let s = ++a;
|
|
5764
5758
|
r.value = {
|
|
5765
5759
|
...r.value,
|
|
5766
|
-
load:
|
|
5760
|
+
load: es.Loading
|
|
5767
5761
|
};
|
|
5768
|
-
let c =
|
|
5762
|
+
let c = Wo(t), l = async () => {
|
|
5769
5763
|
let { execute: n, abort: r } = Pt({
|
|
5770
5764
|
client: t.client,
|
|
5771
5765
|
method: "GET",
|
|
5772
5766
|
system: t.system,
|
|
5773
|
-
entity:
|
|
5767
|
+
entity: us,
|
|
5774
5768
|
validationSystem: "common",
|
|
5775
5769
|
validationEntity: t.entity,
|
|
5776
5770
|
urlTemplate: c.get
|
|
@@ -5786,14 +5780,14 @@ var Po = {
|
|
|
5786
5780
|
let e = await l();
|
|
5787
5781
|
if (s !== a) return;
|
|
5788
5782
|
i.value = e, r.value = {
|
|
5789
|
-
load:
|
|
5790
|
-
presence:
|
|
5791
|
-
access:
|
|
5783
|
+
load: es.Loaded,
|
|
5784
|
+
presence: ts.Present,
|
|
5785
|
+
access: ns.Ok,
|
|
5792
5786
|
enabled: e.enabled
|
|
5793
5787
|
};
|
|
5794
5788
|
} catch (e) {
|
|
5795
5789
|
if (s !== a || e instanceof Ze) return;
|
|
5796
|
-
let o =
|
|
5790
|
+
let o = fs(e);
|
|
5797
5791
|
if (o === 401 && n) {
|
|
5798
5792
|
let e = await n(t.system).catch(() => !1);
|
|
5799
5793
|
if (s !== a) return;
|
|
@@ -5801,38 +5795,38 @@ var Po = {
|
|
|
5801
5795
|
let e = await l();
|
|
5802
5796
|
if (s !== a) return;
|
|
5803
5797
|
i.value = e, r.value = {
|
|
5804
|
-
load:
|
|
5805
|
-
presence:
|
|
5806
|
-
access:
|
|
5798
|
+
load: es.Loaded,
|
|
5799
|
+
presence: ts.Present,
|
|
5800
|
+
access: ns.Ok,
|
|
5807
5801
|
enabled: e.enabled
|
|
5808
5802
|
};
|
|
5809
5803
|
return;
|
|
5810
5804
|
} catch (e) {
|
|
5811
5805
|
if (s !== a) return;
|
|
5812
|
-
o =
|
|
5806
|
+
o = fs(e);
|
|
5813
5807
|
}
|
|
5814
5808
|
}
|
|
5815
5809
|
i.value = null, r.value = {
|
|
5816
|
-
load:
|
|
5817
|
-
...
|
|
5810
|
+
load: es.Loaded,
|
|
5811
|
+
...os(o),
|
|
5818
5812
|
enabled: "unknown"
|
|
5819
5813
|
};
|
|
5820
5814
|
}
|
|
5821
5815
|
},
|
|
5822
5816
|
reset: () => {
|
|
5823
|
-
r.value =
|
|
5817
|
+
r.value = is(), i.value = null;
|
|
5824
5818
|
},
|
|
5825
5819
|
cancel: () => {
|
|
5826
5820
|
a++, o?.(), o = null;
|
|
5827
5821
|
}
|
|
5828
5822
|
};
|
|
5829
|
-
},
|
|
5823
|
+
}, ms = ["data-cy"], hs = { class: "font-weight-medium" }, gs = {
|
|
5830
5824
|
key: 1,
|
|
5831
5825
|
class: "text-body-small text-medium-emphasis"
|
|
5832
|
-
},
|
|
5826
|
+
}, _s = {
|
|
5833
5827
|
key: 2,
|
|
5834
5828
|
class: "text-body-small text-medium-emphasis w-100"
|
|
5835
|
-
},
|
|
5829
|
+
}, vs = /* @__PURE__ */ z({
|
|
5836
5830
|
__name: "AUserSystemPanel",
|
|
5837
5831
|
props: {
|
|
5838
5832
|
descriptor: {},
|
|
@@ -5853,21 +5847,21 @@ var Po = {
|
|
|
5853
5847
|
},
|
|
5854
5848
|
emits: ["create"],
|
|
5855
5849
|
setup(e, { expose: t, emit: n }) {
|
|
5856
|
-
let r = e, i = n, { t: a } =
|
|
5850
|
+
let r = e, i = n, { t: a } = Tn(), o = on(ds, void 0), { axes: s, user: c, probe: l, cancel: u } = ps({
|
|
5857
5851
|
descriptor: r.descriptor,
|
|
5858
5852
|
refreshHook: o
|
|
5859
|
-
}), d = M(() => r.descriptor.label ?? r.descriptor.system), f = M(() => s.value.load ===
|
|
5853
|
+
}), d = M(() => r.descriptor.label ?? r.descriptor.system), f = M(() => s.value.load === es.Loaded && c.value !== null && !A(r.descriptor.manage)), p = M(() => !r.readonly && ss(s.value)), m = M(() => c.value === null || A(r.descriptor.manage) ? null : r.descriptor.manage(c.value)), h = M(() => c.value === null || A(r.descriptor.extraState) ? null : r.descriptor.extraState(c.value)), g = {
|
|
5860
5854
|
ok: "success",
|
|
5861
5855
|
warn: "warning",
|
|
5862
5856
|
error: "error"
|
|
5863
|
-
}, _ = M(() => s.value.access ===
|
|
5857
|
+
}, _ = M(() => s.value.access === ns.Unavailable || s.value.access === ns.Unauthenticated), v = () => l(r.userId);
|
|
5864
5858
|
return pn(v), J(() => r.userId, v), fn(u), t({ refresh: v }), (t, n) => (H(), F("div", {
|
|
5865
5859
|
class: "d-flex align-center flex-wrap ga-2",
|
|
5866
5860
|
"data-cy": `user-system-panel-${e.descriptor.system}`
|
|
5867
5861
|
}, [
|
|
5868
|
-
I("div",
|
|
5869
|
-
R(
|
|
5870
|
-
h.value ? (H(), N(
|
|
5862
|
+
I("div", hs, K(d.value), 1),
|
|
5863
|
+
R(ls, { axes: q(s) }, null, 8, ["axes"]),
|
|
5864
|
+
h.value ? (H(), N(En, {
|
|
5871
5865
|
key: 0,
|
|
5872
5866
|
color: g[h.value.tone],
|
|
5873
5867
|
label: "",
|
|
@@ -5876,15 +5870,15 @@ var Po = {
|
|
|
5876
5870
|
default: Y(() => [L(K(h.value.label) + ": " + K(h.value.value), 1)]),
|
|
5877
5871
|
_: 1
|
|
5878
5872
|
}, 8, ["color"])) : P("", !0),
|
|
5879
|
-
q(c) ? (H(), F("div",
|
|
5880
|
-
e.descriptor.enabledNote ? (H(), F("div",
|
|
5881
|
-
R(
|
|
5882
|
-
f.value && m.value ? (H(), N(
|
|
5873
|
+
q(c) ? (H(), F("div", gs, K(q(c).person.fullName) + " · " + K(q(c).email), 1)) : P("", !0),
|
|
5874
|
+
e.descriptor.enabledNote ? (H(), F("div", _s, K(e.descriptor.enabledNote), 1)) : P("", !0),
|
|
5875
|
+
R(On),
|
|
5876
|
+
f.value && m.value ? (H(), N($o, {
|
|
5883
5877
|
key: 3,
|
|
5884
5878
|
target: m.value,
|
|
5885
5879
|
"system-label": d.value
|
|
5886
5880
|
}, null, 8, ["target", "system-label"])) : P("", !0),
|
|
5887
|
-
p.value ? (H(), N(
|
|
5881
|
+
p.value ? (H(), N(Qo, {
|
|
5888
5882
|
key: 4,
|
|
5889
5883
|
"system-label": d.value,
|
|
5890
5884
|
"create-note": e.descriptor.createNote,
|
|
@@ -5913,9 +5907,9 @@ var Po = {
|
|
|
5913
5907
|
default: Y(() => [L(K(q(a)("common.userSystem.button.retry")), 1)]),
|
|
5914
5908
|
_: 1
|
|
5915
5909
|
})) : P("", !0)
|
|
5916
|
-
], 8,
|
|
5910
|
+
], 8, ms));
|
|
5917
5911
|
}
|
|
5918
|
-
}),
|
|
5912
|
+
}), ys = /* @__PURE__ */ z({
|
|
5919
5913
|
__name: "AUserOtherSystemsTable",
|
|
5920
5914
|
props: {
|
|
5921
5915
|
descriptors: {},
|
|
@@ -5934,9 +5928,9 @@ var Po = {
|
|
|
5934
5928
|
let t = r.descriptors.findIndex((t) => t.system === e);
|
|
5935
5929
|
a.value[t]?.refresh();
|
|
5936
5930
|
}
|
|
5937
|
-
}), (t, n) => (H(), N(
|
|
5938
|
-
default: Y(() => [R(
|
|
5939
|
-
default: Y(() => [(H(!0), F(j, null, W(e.descriptors, (t) => (H(), N(
|
|
5931
|
+
}), (t, n) => (H(), N(jn, { variant: "flat" }, {
|
|
5932
|
+
default: Y(() => [R(Nn, { class: "d-flex flex-column ga-4" }, {
|
|
5933
|
+
default: Y(() => [(H(!0), F(j, null, W(e.descriptors, (t) => (H(), N(vs, {
|
|
5940
5934
|
key: t.system,
|
|
5941
5935
|
ref_for: !0,
|
|
5942
5936
|
ref_key: "panels",
|
|
@@ -5961,16 +5955,16 @@ var Po = {
|
|
|
5961
5955
|
_: 1
|
|
5962
5956
|
}));
|
|
5963
5957
|
}
|
|
5964
|
-
}),
|
|
5958
|
+
}), bs = {
|
|
5965
5959
|
Idle: "idle",
|
|
5966
5960
|
MatchingEmail: "matchingEmail",
|
|
5967
5961
|
VerifyingById: "verifyingById",
|
|
5968
5962
|
Done: "done"
|
|
5969
|
-
},
|
|
5963
|
+
}, xs = {
|
|
5970
5964
|
Enable: "enable",
|
|
5971
5965
|
Disable: "disable",
|
|
5972
5966
|
Metadata: "metadata"
|
|
5973
|
-
},
|
|
5967
|
+
}, Ss = {
|
|
5974
5968
|
Pending: "pending",
|
|
5975
5969
|
Running: "running",
|
|
5976
5970
|
Done: "done",
|
|
@@ -5979,17 +5973,17 @@ var Po = {
|
|
|
5979
5973
|
NotFound: "notFound",
|
|
5980
5974
|
Invalid: "invalid",
|
|
5981
5975
|
Unavailable: "unavailable"
|
|
5982
|
-
},
|
|
5983
|
-
let e = U(""), t = U(null), n = U(
|
|
5976
|
+
}, Cs = rr("labsUserCrossSystemStore", () => {
|
|
5977
|
+
let e = U(""), t = U(null), n = U(bs.Idle), r = U(/* @__PURE__ */ new Map()), i = U(null), a = U(!1), o = U(null), s = U(null), c = U([]), l = U(!1);
|
|
5984
5978
|
function u() {
|
|
5985
|
-
r.value = /* @__PURE__ */ new Map(), t.value = null, i.value = null, n.value =
|
|
5979
|
+
r.value = /* @__PURE__ */ new Map(), t.value = null, i.value = null, n.value = bs.Idle, l.value = !1, c.value = [], o.value = null, s.value = null;
|
|
5986
5980
|
}
|
|
5987
5981
|
function d(e, t) {
|
|
5988
5982
|
r.value.set(e, t);
|
|
5989
5983
|
}
|
|
5990
5984
|
function f(e) {
|
|
5991
5985
|
r.value.has(e) || r.value.set(e, {
|
|
5992
|
-
axes:
|
|
5986
|
+
axes: is(),
|
|
5993
5987
|
user: null
|
|
5994
5988
|
});
|
|
5995
5989
|
}
|
|
@@ -6014,7 +6008,7 @@ var Po = {
|
|
|
6014
6008
|
let r = new Set(t), i = c.value.filter((t) => t.action === e && t.subjectId === n && !r.has(t.system));
|
|
6015
6009
|
c.value = [...i, ...t.map((t) => ({
|
|
6016
6010
|
system: t,
|
|
6017
|
-
outcome:
|
|
6011
|
+
outcome: Ss.Pending,
|
|
6018
6012
|
action: e,
|
|
6019
6013
|
subjectId: n
|
|
6020
6014
|
}))];
|
|
@@ -6033,7 +6027,7 @@ var Po = {
|
|
|
6033
6027
|
a.value = !1;
|
|
6034
6028
|
}
|
|
6035
6029
|
function v() {
|
|
6036
|
-
e.value = "", u()
|
|
6030
|
+
e.value = "", u();
|
|
6037
6031
|
}
|
|
6038
6032
|
return {
|
|
6039
6033
|
searchTerm: e,
|
|
@@ -6055,14 +6049,14 @@ var Po = {
|
|
|
6055
6049
|
finishBulk: _,
|
|
6056
6050
|
reset: v
|
|
6057
6051
|
};
|
|
6058
|
-
}),
|
|
6052
|
+
}), ws = [
|
|
6059
6053
|
"email",
|
|
6060
6054
|
"person.firstName",
|
|
6061
6055
|
"person.lastName",
|
|
6062
6056
|
"person.fullName",
|
|
6063
6057
|
"avatar.color",
|
|
6064
6058
|
"avatar.text"
|
|
6065
|
-
],
|
|
6059
|
+
], Ts = (e, t) => {
|
|
6066
6060
|
switch (t) {
|
|
6067
6061
|
case "email": return e.email;
|
|
6068
6062
|
case "person.firstName": return e.person.firstName;
|
|
@@ -6071,7 +6065,7 @@ var Po = {
|
|
|
6071
6065
|
case "avatar.color": return e.avatar.color;
|
|
6072
6066
|
case "avatar.text": return e.avatar.text;
|
|
6073
6067
|
}
|
|
6074
|
-
},
|
|
6068
|
+
}, Es = (e, t, n) => {
|
|
6075
6069
|
switch (t) {
|
|
6076
6070
|
case "email":
|
|
6077
6071
|
e.email = n;
|
|
@@ -6090,103 +6084,103 @@ var Po = {
|
|
|
6090
6084
|
break;
|
|
6091
6085
|
case "avatar.text": e.avatar.text = n;
|
|
6092
6086
|
}
|
|
6093
|
-
},
|
|
6087
|
+
}, Ds = (e) => {
|
|
6094
6088
|
let t = [];
|
|
6095
6089
|
if (e.size < 2) return t;
|
|
6096
|
-
for (let n of
|
|
6090
|
+
for (let n of ws) {
|
|
6097
6091
|
let r = /* @__PURE__ */ new Map();
|
|
6098
|
-
for (let [t, i] of e) r.set(t,
|
|
6092
|
+
for (let [t, i] of e) r.set(t, Ts(i, n));
|
|
6099
6093
|
new Set(r.values()).size > 1 && t.push({
|
|
6100
6094
|
field: n,
|
|
6101
6095
|
values: r
|
|
6102
6096
|
});
|
|
6103
6097
|
}
|
|
6104
6098
|
return t;
|
|
6105
|
-
},
|
|
6099
|
+
}, Os = (e, t) => {
|
|
6106
6100
|
for (let n of e) if (t.has(n)) return n;
|
|
6107
6101
|
return null;
|
|
6108
|
-
},
|
|
6102
|
+
}, ks = (e, t, n = ws) => {
|
|
6109
6103
|
let r = [];
|
|
6110
|
-
for (let [i, a] of t) n.some((t) =>
|
|
6104
|
+
for (let [i, a] of t) n.some((t) => Ts(a, t) !== Ts(e, t)) && r.push(i);
|
|
6111
6105
|
return r;
|
|
6112
|
-
},
|
|
6106
|
+
}, As = (e) => e === null ? Ss.Unavailable : e === 403 ? Ss.Forbidden : e === 401 ? Ss.Unauthenticated : e === 404 ? Ss.NotFound : e === 422 || e === 400 ? Ss.Invalid : Ss.Unavailable, js = (e, t, n) => Pt({
|
|
6113
6107
|
client: e.client,
|
|
6114
6108
|
method: t,
|
|
6115
6109
|
system: e.system,
|
|
6116
6110
|
entity: e.entity,
|
|
6117
6111
|
urlTemplate: n
|
|
6118
|
-
}),
|
|
6112
|
+
}), Ms = () => ({
|
|
6119
6113
|
setEnabled: async (e, t, n) => {
|
|
6120
|
-
let { get: r, url: i } =
|
|
6114
|
+
let { get: r, url: i } = Ko(e);
|
|
6121
6115
|
try {
|
|
6122
|
-
let { execute: a } =
|
|
6116
|
+
let { execute: a } = js(e, "GET", r), o = await a({ urlParams: { id: t } });
|
|
6123
6117
|
if (o.enabled === n) return {
|
|
6124
|
-
outcome:
|
|
6118
|
+
outcome: Ss.Done,
|
|
6125
6119
|
user: o
|
|
6126
6120
|
};
|
|
6127
6121
|
let s = k(o);
|
|
6128
6122
|
s.enabled = n;
|
|
6129
|
-
let { execute: c } =
|
|
6123
|
+
let { execute: c } = js(e, "PUT", i), l = await c({
|
|
6130
6124
|
urlParams: { id: t },
|
|
6131
6125
|
body: s
|
|
6132
6126
|
});
|
|
6133
6127
|
return {
|
|
6134
|
-
outcome:
|
|
6128
|
+
outcome: Ss.Done,
|
|
6135
6129
|
user: l
|
|
6136
6130
|
};
|
|
6137
6131
|
} catch (e) {
|
|
6138
|
-
return { outcome:
|
|
6132
|
+
return { outcome: As(fs(e)) };
|
|
6139
6133
|
}
|
|
6140
6134
|
},
|
|
6141
|
-
writeMetadata: async (t, n, r, i =
|
|
6142
|
-
let { method: o, get: s, url: c } =
|
|
6135
|
+
writeMetadata: async (t, n, r, i = ws, a = null) => {
|
|
6136
|
+
let { method: o, get: s, url: c } = Go(t);
|
|
6143
6137
|
try {
|
|
6144
|
-
let { execute: l } =
|
|
6145
|
-
if (!i.some((e) =>
|
|
6146
|
-
outcome:
|
|
6138
|
+
let { execute: l } = js(t, "GET", s), u = await l({ urlParams: { id: n } });
|
|
6139
|
+
if (!i.some((e) => Ts(u, e) !== Ts(r, e))) return {
|
|
6140
|
+
outcome: Ss.Done,
|
|
6147
6141
|
user: u,
|
|
6148
6142
|
changed: !1
|
|
6149
6143
|
};
|
|
6150
|
-
let d = e(a) ? [] : i.filter((e) =>
|
|
6151
|
-
i.forEach((e) =>
|
|
6152
|
-
let { execute: p } =
|
|
6144
|
+
let d = e(a) ? [] : i.filter((e) => Ts(u, e) !== Ts(a, e) && Ts(u, e) !== Ts(r, e)), f = k(u);
|
|
6145
|
+
i.forEach((e) => Es(f, e, Ts(r, e)));
|
|
6146
|
+
let { execute: p } = js(t, o, c), m = await p({
|
|
6153
6147
|
urlParams: { id: n },
|
|
6154
6148
|
body: f
|
|
6155
6149
|
});
|
|
6156
6150
|
return {
|
|
6157
|
-
outcome:
|
|
6151
|
+
outcome: Ss.Done,
|
|
6158
6152
|
user: m,
|
|
6159
6153
|
changed: !0,
|
|
6160
6154
|
concurrentFields: d
|
|
6161
6155
|
};
|
|
6162
6156
|
} catch (e) {
|
|
6163
6157
|
return {
|
|
6164
|
-
outcome:
|
|
6158
|
+
outcome: As(fs(e)),
|
|
6165
6159
|
changed: !1
|
|
6166
6160
|
};
|
|
6167
6161
|
}
|
|
6168
6162
|
},
|
|
6169
6163
|
createInSystem: async (e, t) => {
|
|
6170
6164
|
try {
|
|
6171
|
-
let { execute: n } =
|
|
6165
|
+
let { execute: n } = js(e, "POST", qo(e)), r = await n({ body: t });
|
|
6172
6166
|
return {
|
|
6173
|
-
outcome:
|
|
6167
|
+
outcome: Ss.Done,
|
|
6174
6168
|
user: r
|
|
6175
6169
|
};
|
|
6176
6170
|
} catch (e) {
|
|
6177
|
-
return { outcome:
|
|
6171
|
+
return { outcome: As(fs(e)) };
|
|
6178
6172
|
}
|
|
6179
6173
|
},
|
|
6180
6174
|
readSourceUser: async (e, t) => {
|
|
6181
|
-
let { get: n } =
|
|
6175
|
+
let { get: n } = Ko(e);
|
|
6182
6176
|
try {
|
|
6183
|
-
let { execute: r } =
|
|
6177
|
+
let { execute: r } = js(e, "GET", n);
|
|
6184
6178
|
return await r({ urlParams: { id: t } });
|
|
6185
6179
|
} catch {
|
|
6186
6180
|
return null;
|
|
6187
6181
|
}
|
|
6188
6182
|
}
|
|
6189
|
-
}),
|
|
6183
|
+
}), Ns = "__otherSystems", Ps = /* @__PURE__ */ z({
|
|
6190
6184
|
__name: "AUserTabsShell",
|
|
6191
6185
|
props: /*@__PURE__*/ B({
|
|
6192
6186
|
userId: {},
|
|
@@ -6215,7 +6209,7 @@ var Po = {
|
|
|
6215
6209
|
}),
|
|
6216
6210
|
emits: /*@__PURE__*/ B(["created"], ["update:activeTab"]),
|
|
6217
6211
|
setup(n, { expose: r, emit: i }) {
|
|
6218
|
-
let a = n, o = i, s =
|
|
6212
|
+
let a = n, o = i, s = yn(n, "activeTab"), { t: c } = Tn(), l = qn(), u = Jn(), d = M(() => new Map(a.descriptors.map((e) => [e.system, e]))), f = M(() => [...a.ownedTabs, Ns]), p = M(() => a.descriptors.filter((e) => !a.ownedTabs.includes(e.system))), m = (e) => d.value.get(e)?.label ?? e, h = (e) => typeof e == "string" && f.value.includes(e);
|
|
6219
6213
|
pn(() => {
|
|
6220
6214
|
let e = l.query[a.tabQueryKey];
|
|
6221
6215
|
s.value = h(e) ? e : a.owner;
|
|
@@ -6225,8 +6219,8 @@ var Po = {
|
|
|
6225
6219
|
[a.tabQueryKey]: e
|
|
6226
6220
|
} });
|
|
6227
6221
|
});
|
|
6228
|
-
let g = M(() => a.unsavedChanges), { hasUnsavedChanges: _, dirtyLabels: v, promptOpen: y, resolvePrompt: b } = mt({ sources: [g] }), x = U(null), S = U([]), C =
|
|
6229
|
-
A(a.refreshHook) || mn(
|
|
6222
|
+
let g = M(() => a.unsavedChanges), { hasUnsavedChanges: _, dirtyLabels: v, promptOpen: y, resolvePrompt: b } = mt({ sources: [g] }), x = U(null), S = U([]), C = Ms(), { createAnzuUser: w } = ot(), { showError: T, showRecordWas: ee } = t();
|
|
6223
|
+
A(a.refreshHook) || mn(ds, a.refreshHook);
|
|
6230
6224
|
let te = M(() => d.value.get(a.owner)), E = U(null), D = U(null), O = async () => {
|
|
6231
6225
|
let e = te.value;
|
|
6232
6226
|
A(e) || (E.value = await C.readSourceUser(e, a.userId));
|
|
@@ -6247,7 +6241,7 @@ var Po = {
|
|
|
6247
6241
|
let s = w(t.system);
|
|
6248
6242
|
s.id = i.id, s.email = n.email, s.person = k(n.person), s.avatar = k(n.avatar), s.enabled = i.enabled;
|
|
6249
6243
|
let l = await C.createInSystem(t, s);
|
|
6250
|
-
if (l.outcome !==
|
|
6244
|
+
if (l.outcome !== Ss.Done) {
|
|
6251
6245
|
T(m(t.system) + ": " + c("common.userSystem.bulk.outcome." + l.outcome));
|
|
6252
6246
|
return;
|
|
6253
6247
|
}
|
|
@@ -6262,12 +6256,12 @@ var Po = {
|
|
|
6262
6256
|
}, { immediate: !0 }), r({ refresh: () => {
|
|
6263
6257
|
O(), x.value?.refresh(), S.value.forEach((e) => e?.refresh());
|
|
6264
6258
|
} }), (e, t) => (H(), F("div", null, [
|
|
6265
|
-
R(
|
|
6259
|
+
R(sr, {
|
|
6266
6260
|
modelValue: s.value,
|
|
6267
6261
|
"onUpdate:modelValue": t[0] ||= (e) => s.value = e,
|
|
6268
6262
|
"data-cy": "user-tabs"
|
|
6269
6263
|
}, {
|
|
6270
|
-
default: Y(() => [(H(!0), F(j, null, W(f.value, (e) => (H(), N(
|
|
6264
|
+
default: Y(() => [(H(!0), F(j, null, W(f.value, (e) => (H(), N(or, {
|
|
6271
6265
|
key: e,
|
|
6272
6266
|
value: e,
|
|
6273
6267
|
"data-cy": `user-tab-${e}`
|
|
@@ -6284,16 +6278,16 @@ var Po = {
|
|
|
6284
6278
|
}, 1032, ["value", "data-cy"]))), 128))]),
|
|
6285
6279
|
_: 1
|
|
6286
6280
|
}, 8, ["modelValue"]),
|
|
6287
|
-
R(
|
|
6281
|
+
R(fr, {
|
|
6288
6282
|
modelValue: s.value,
|
|
6289
6283
|
"onUpdate:modelValue": t[1] ||= (e) => s.value = e,
|
|
6290
6284
|
class: "mt-4"
|
|
6291
6285
|
}, {
|
|
6292
|
-
default: Y(() => [(H(!0), F(j, null, W(n.ownedTabs, (t) => (H(), N(
|
|
6286
|
+
default: Y(() => [(H(!0), F(j, null, W(n.ownedTabs, (t) => (H(), N(pr, {
|
|
6293
6287
|
key: t,
|
|
6294
6288
|
value: t
|
|
6295
6289
|
}, {
|
|
6296
|
-
default: Y(() => [t === n.owner ? G(e.$slots, "default", {}, void 0, void 0, 0) : q(A)(d.value.get(t)) ? P("", !0) : (H(), N(
|
|
6290
|
+
default: Y(() => [t === n.owner ? G(e.$slots, "default", {}, void 0, void 0, 0) : q(A)(d.value.get(t)) ? P("", !0) : (H(), N(vs, {
|
|
6297
6291
|
key: 1,
|
|
6298
6292
|
ref_for: !0,
|
|
6299
6293
|
ref_key: "ownedPanels",
|
|
@@ -6314,8 +6308,8 @@ var Po = {
|
|
|
6314
6308
|
"creating"
|
|
6315
6309
|
]))]),
|
|
6316
6310
|
_: 2
|
|
6317
|
-
}, 1032, ["value"]))), 128)), R(
|
|
6318
|
-
default: Y(() => [R(
|
|
6311
|
+
}, 1032, ["value"]))), 128)), R(pr, { value: q(Ns) }, {
|
|
6312
|
+
default: Y(() => [R(ys, {
|
|
6319
6313
|
ref_key: "otherSystems",
|
|
6320
6314
|
ref: x,
|
|
6321
6315
|
descriptors: p.value,
|
|
@@ -6349,22 +6343,22 @@ var Po = {
|
|
|
6349
6343
|
])
|
|
6350
6344
|
]));
|
|
6351
6345
|
}
|
|
6352
|
-
}),
|
|
6346
|
+
}), Fs = { class: "font-weight-medium" }, Is = {
|
|
6353
6347
|
key: 1,
|
|
6354
6348
|
class: "text-body-small text-medium-emphasis"
|
|
6355
|
-
},
|
|
6349
|
+
}, Ls = {
|
|
6356
6350
|
key: 2,
|
|
6357
6351
|
class: "text-body-small text-warning w-100"
|
|
6358
|
-
},
|
|
6352
|
+
}, Rs = {
|
|
6359
6353
|
key: 3,
|
|
6360
6354
|
class: "text-body-small text-warning w-100"
|
|
6361
|
-
},
|
|
6355
|
+
}, zs = { class: "text-label-large mb-2" }, Bs = {
|
|
6362
6356
|
"aria-live": "polite",
|
|
6363
6357
|
"data-cy": "user-bulk-log"
|
|
6364
|
-
},
|
|
6358
|
+
}, Vs = { class: "font-weight-medium" }, Hs = { class: "text-body-small" }, Us = {
|
|
6365
6359
|
key: 0,
|
|
6366
6360
|
class: "text-body-small text-medium-emphasis"
|
|
6367
|
-
},
|
|
6361
|
+
}, Ws = /* @__PURE__ */ z({
|
|
6368
6362
|
__name: "AUserBulkActionDialog",
|
|
6369
6363
|
props: /*@__PURE__*/ B({
|
|
6370
6364
|
action: {},
|
|
@@ -6378,22 +6372,22 @@ var Po = {
|
|
|
6378
6372
|
}),
|
|
6379
6373
|
emits: /*@__PURE__*/ B(["run"], ["update:open"]),
|
|
6380
6374
|
setup(e, { emit: t }) {
|
|
6381
|
-
let n = e, r = t, i =
|
|
6375
|
+
let n = e, r = t, i = yn(e, "open"), { t: a } = Tn(), o = Cs(), s = U([]), c = U(!1), l = M(() => n.descriptors.map((e) => {
|
|
6382
6376
|
let t = o.results.get(e.system);
|
|
6383
6377
|
if (!e.isEnabled()) return {
|
|
6384
6378
|
descriptor: e,
|
|
6385
6379
|
selectable: !1,
|
|
6386
6380
|
reason: a("common.userSystem.state.configDisabled")
|
|
6387
6381
|
};
|
|
6388
|
-
if (A(t) || !
|
|
6382
|
+
if (A(t) || !cs(t.axes)) {
|
|
6389
6383
|
let n = t?.axes.access;
|
|
6390
6384
|
return {
|
|
6391
6385
|
descriptor: e,
|
|
6392
6386
|
selectable: !1,
|
|
6393
|
-
reason: n ===
|
|
6387
|
+
reason: n === ns.Forbidden ? a("common.userSystem.state.forbidden") : n === ns.Ok ? a("common.userSystem.state.absent") : a("common.userSystem.state.unavailable")
|
|
6394
6388
|
};
|
|
6395
6389
|
}
|
|
6396
|
-
return n.action ===
|
|
6390
|
+
return n.action === xs.Enable && t.axes.enabled === !0 || n.action === xs.Disable && t.axes.enabled === !1 ? {
|
|
6397
6391
|
descriptor: e,
|
|
6398
6392
|
selectable: !1,
|
|
6399
6393
|
reason: a("common.userSystem.bulk.alreadyInState")
|
|
@@ -6406,37 +6400,37 @@ var Po = {
|
|
|
6406
6400
|
J(i, (e) => {
|
|
6407
6401
|
e && (c.value = !1, s.value = [...u.value]);
|
|
6408
6402
|
}, { immediate: !0 });
|
|
6409
|
-
let d = M(() => `common.userSystem.bulk.${n.action}.title`), f = M(() => `common.userSystem.bulk.${n.action}.confirm`), p = M(() => o.bulkLog.filter((e) => e.action === n.action && e.subjectId === o.resolvedId)), m = M(() => p.value.filter((e) => e.outcome !==
|
|
6403
|
+
let d = M(() => `common.userSystem.bulk.${n.action}.title`), f = M(() => `common.userSystem.bulk.${n.action}.confirm`), p = M(() => o.bulkLog.filter((e) => e.action === n.action && e.subjectId === o.resolvedId)), m = M(() => p.value.filter((e) => e.outcome !== Ss.Done && e.outcome !== Ss.Pending)), h = () => {
|
|
6410
6404
|
c.value = !0, r("run", [...s.value]);
|
|
6411
6405
|
}, g = () => {
|
|
6412
6406
|
r("run", m.value.map((e) => e.system));
|
|
6413
6407
|
}, _ = (e) => e.label ?? e.system;
|
|
6414
6408
|
return (t, n) => {
|
|
6415
6409
|
let r = hn("ABtnTertiary"), u = hn("ABtnPrimary");
|
|
6416
|
-
return H(), N(
|
|
6410
|
+
return H(), N(Xn, {
|
|
6417
6411
|
modelValue: i.value,
|
|
6418
6412
|
"onUpdate:modelValue": n[3] ||= (e) => i.value = e,
|
|
6419
6413
|
"max-width": 720,
|
|
6420
6414
|
"data-cy": "user-bulk-dialog"
|
|
6421
6415
|
}, {
|
|
6422
|
-
default: Y(() => [R(
|
|
6416
|
+
default: Y(() => [R(jn, null, {
|
|
6423
6417
|
default: Y(() => [
|
|
6424
6418
|
R(v, { onOnCancel: n[0] ||= (e) => i.value = !1 }, {
|
|
6425
6419
|
default: Y(() => [L(K(q(a)(d.value)), 1)]),
|
|
6426
6420
|
_: 1
|
|
6427
6421
|
}),
|
|
6428
|
-
c.value ? (H(), N(
|
|
6429
|
-
default: Y(() => [I("div",
|
|
6422
|
+
c.value ? (H(), N(Nn, { key: 1 }, {
|
|
6423
|
+
default: Y(() => [I("div", zs, K(q(a)("common.userSystem.bulk.log")), 1), I("div", Bs, [(H(!0), F(j, null, W(p.value, (e) => (H(), F("div", {
|
|
6430
6424
|
key: e.system,
|
|
6431
6425
|
class: "d-flex align-center ga-2 py-1"
|
|
6432
6426
|
}, [
|
|
6433
|
-
I("div",
|
|
6434
|
-
I("div",
|
|
6435
|
-
e.detail ? (H(), F("div",
|
|
6427
|
+
I("div", Vs, K(e.system), 1),
|
|
6428
|
+
I("div", Hs, K(q(a)(`common.userSystem.bulk.outcome.${e.outcome}`)), 1),
|
|
6429
|
+
e.detail ? (H(), F("div", Us, K(e.detail), 1)) : P("", !0)
|
|
6436
6430
|
]))), 128))])]),
|
|
6437
6431
|
_: 1
|
|
6438
|
-
})) : (H(), N(
|
|
6439
|
-
default: Y(() => [q(o).identityConflict ? (H(), N(
|
|
6432
|
+
})) : (H(), N(Nn, { key: 0 }, {
|
|
6433
|
+
default: Y(() => [q(o).identityConflict ? (H(), N(kn, {
|
|
6440
6434
|
key: 0,
|
|
6441
6435
|
type: "error",
|
|
6442
6436
|
variant: "tonal",
|
|
@@ -6449,7 +6443,7 @@ var Po = {
|
|
|
6449
6443
|
key: t.descriptor.system,
|
|
6450
6444
|
class: "d-flex align-center ga-2 py-1"
|
|
6451
6445
|
}, [
|
|
6452
|
-
R(
|
|
6446
|
+
R(Qn, {
|
|
6453
6447
|
modelValue: s.value,
|
|
6454
6448
|
"onUpdate:modelValue": n[1] ||= (e) => s.value = e,
|
|
6455
6449
|
value: t.descriptor.system,
|
|
@@ -6463,24 +6457,24 @@ var Po = {
|
|
|
6463
6457
|
"disabled",
|
|
6464
6458
|
"data-cy"
|
|
6465
6459
|
]),
|
|
6466
|
-
I("div",
|
|
6467
|
-
q(o).results.get(t.descriptor.system) ? (H(), N(
|
|
6460
|
+
I("div", Fs, K(_(t.descriptor)), 1),
|
|
6461
|
+
q(o).results.get(t.descriptor.system) ? (H(), N(ls, {
|
|
6468
6462
|
key: 0,
|
|
6469
6463
|
axes: q(o).results.get(t.descriptor.system).axes
|
|
6470
6464
|
}, null, 8, ["axes"])) : P("", !0),
|
|
6471
|
-
t.reason ? (H(), F("div",
|
|
6472
|
-
t.descriptor.enabledNote && e.action !== q(
|
|
6473
|
-
t.descriptor.metadataNote && e.action === q(
|
|
6465
|
+
t.reason ? (H(), F("div", Is, K(t.reason), 1)) : P("", !0),
|
|
6466
|
+
t.descriptor.enabledNote && e.action !== q(xs).Metadata ? (H(), F("div", Ls, K(t.descriptor.enabledNote), 1)) : P("", !0),
|
|
6467
|
+
t.descriptor.metadataNote && e.action === q(xs).Metadata ? (H(), F("div", Rs, K(t.descriptor.metadataNote), 1)) : P("", !0)
|
|
6474
6468
|
]))), 128))]),
|
|
6475
6469
|
_: 1
|
|
6476
6470
|
})),
|
|
6477
|
-
R(
|
|
6471
|
+
R(Mn, null, {
|
|
6478
6472
|
default: Y(() => [
|
|
6479
6473
|
R(r, { onClick: n[2] ||= X((e) => i.value = !1, ["stop"]) }, {
|
|
6480
6474
|
default: Y(() => [L(K(c.value ? q(a)("common.userSystem.bulk.close") : q(a)("common.button.cancel")), 1)]),
|
|
6481
6475
|
_: 1
|
|
6482
6476
|
}),
|
|
6483
|
-
R(
|
|
6477
|
+
R(On),
|
|
6484
6478
|
c.value && m.value.length > 0 && !q(o).bulkRunning ? (H(), N(r, {
|
|
6485
6479
|
key: 0,
|
|
6486
6480
|
"data-cy": "user-bulk-retry",
|
|
@@ -6508,16 +6502,16 @@ var Po = {
|
|
|
6508
6502
|
}, 8, ["modelValue"]);
|
|
6509
6503
|
};
|
|
6510
6504
|
}
|
|
6511
|
-
}),
|
|
6505
|
+
}), Gs = { class: "mt-4 text-label-large" }, Ks = { class: "d-flex align-center ga-2" }, qs = { class: "font-weight-medium" }, Js = {
|
|
6512
6506
|
key: 0,
|
|
6513
6507
|
class: "text-body-small text-warning"
|
|
6514
|
-
},
|
|
6508
|
+
}, Ys = { class: "text-label-large mb-2" }, Xs = {
|
|
6515
6509
|
"aria-live": "polite",
|
|
6516
6510
|
"data-cy": "repair-log"
|
|
6517
|
-
},
|
|
6511
|
+
}, Zs = { class: "font-weight-medium" }, Qs = { class: "text-body-small" }, $s = {
|
|
6518
6512
|
key: 0,
|
|
6519
6513
|
class: "text-body-small text-warning"
|
|
6520
|
-
},
|
|
6514
|
+
}, ec = /* @__PURE__ */ z({
|
|
6521
6515
|
__name: "AUserMetadataRepairDialog",
|
|
6522
6516
|
props: /*@__PURE__*/ B({ descriptors: {} }, {
|
|
6523
6517
|
open: {
|
|
@@ -6528,79 +6522,79 @@ var Po = {
|
|
|
6528
6522
|
}),
|
|
6529
6523
|
emits: /*@__PURE__*/ B(["confirm"], ["update:open"]),
|
|
6530
6524
|
setup(e, { emit: t }) {
|
|
6531
|
-
let n = e, r = t, i =
|
|
6525
|
+
let n = e, r = t, i = yn(e, "open"), { t: a } = Tn(), o = Cs(), s = Zn(), c = M(() => {
|
|
6532
6526
|
let e = /* @__PURE__ */ new Map();
|
|
6533
6527
|
for (let t of n.descriptors) {
|
|
6534
6528
|
let n = o.results.get(t.system)?.user;
|
|
6535
6529
|
n && e.set(t.system, n);
|
|
6536
6530
|
}
|
|
6537
6531
|
return e;
|
|
6538
|
-
}),
|
|
6532
|
+
}), l = U(null), u = U(null), d = U([]), f = U(!1);
|
|
6539
6533
|
J(i, (e) => {
|
|
6540
6534
|
if (!e) return;
|
|
6541
|
-
|
|
6535
|
+
f.value = !1;
|
|
6542
6536
|
let t = n.descriptors.map((e) => e.system);
|
|
6543
|
-
|
|
6544
|
-
let r =
|
|
6545
|
-
|
|
6537
|
+
l.value = Os(t, c.value);
|
|
6538
|
+
let r = l.value === null ? void 0 : c.value.get(l.value);
|
|
6539
|
+
u.value = A(r) ? null : k({
|
|
6546
6540
|
id: r.id,
|
|
6547
6541
|
email: r.email,
|
|
6548
6542
|
person: r.person,
|
|
6549
6543
|
avatar: r.avatar
|
|
6550
6544
|
});
|
|
6551
|
-
}, { immediate: !0 }), J(
|
|
6545
|
+
}, { immediate: !0 }), J(l, (e) => {
|
|
6552
6546
|
if (e === null) return;
|
|
6553
|
-
let t =
|
|
6554
|
-
A(t) || (
|
|
6547
|
+
let t = c.value.get(e);
|
|
6548
|
+
A(t) || (u.value = k({
|
|
6555
6549
|
id: t.id,
|
|
6556
6550
|
email: t.email,
|
|
6557
6551
|
person: t.person,
|
|
6558
6552
|
avatar: t.avatar
|
|
6559
6553
|
}));
|
|
6560
6554
|
});
|
|
6561
|
-
let
|
|
6555
|
+
let p = M(() => n.descriptors.filter((e) => c.value.has(e.system)).map((e) => ({
|
|
6562
6556
|
value: e.system,
|
|
6563
6557
|
title: e.label ?? e.system
|
|
6564
|
-
}))),
|
|
6565
|
-
J(
|
|
6566
|
-
|
|
6558
|
+
}))), m = M(() => u.value === null ? [] : ks(u.value, c.value)), h = M(() => m.value.filter((e) => d.value.includes(e)));
|
|
6559
|
+
J(m, (e) => {
|
|
6560
|
+
d.value = [...e];
|
|
6567
6561
|
}, { immediate: !0 });
|
|
6568
|
-
let
|
|
6569
|
-
let t =
|
|
6570
|
-
return A(t) ? [] :
|
|
6562
|
+
let g = M(() => u.value === null ? [] : m.value.flatMap((e) => {
|
|
6563
|
+
let t = c.value.get(e);
|
|
6564
|
+
return A(t) ? [] : ws.filter((e) => Ts(t, e) !== Ts(u.value, e)).map((n) => ({
|
|
6571
6565
|
system: e,
|
|
6572
6566
|
field: n,
|
|
6573
|
-
from:
|
|
6574
|
-
to:
|
|
6567
|
+
from: Ts(t, n),
|
|
6568
|
+
to: Ts(u.value, n)
|
|
6575
6569
|
}));
|
|
6576
|
-
})),
|
|
6577
|
-
|
|
6578
|
-
target:
|
|
6579
|
-
systems:
|
|
6570
|
+
})), _ = M(() => o.bulkLog.filter((e) => e.action === xs.Metadata && e.subjectId === o.resolvedId)), y = M(() => _.value.filter((e) => e.outcome !== Ss.Done && e.outcome !== Ss.Pending)), b = (e) => n.descriptors.find((t) => t.system === e)?.metadataNote, x = (e) => n.descriptors.find((t) => t.system === e)?.label ?? e, S = async () => {
|
|
6571
|
+
u.value !== null && o.identityConflict === null && h.value.length !== 0 && await s.value.$validate() && (f.value = !0, r("confirm", {
|
|
6572
|
+
target: u.value,
|
|
6573
|
+
systems: h.value
|
|
6580
6574
|
}));
|
|
6581
|
-
},
|
|
6582
|
-
|
|
6583
|
-
target:
|
|
6584
|
-
systems:
|
|
6575
|
+
}, C = () => {
|
|
6576
|
+
u.value !== null && r("confirm", {
|
|
6577
|
+
target: u.value,
|
|
6578
|
+
systems: y.value.map((e) => e.system)
|
|
6585
6579
|
});
|
|
6586
6580
|
};
|
|
6587
6581
|
return (e, t) => {
|
|
6588
6582
|
let n = hn("ABtnTertiary"), r = hn("ABtnPrimary");
|
|
6589
|
-
return H(), N(
|
|
6583
|
+
return H(), N(Xn, {
|
|
6590
6584
|
modelValue: i.value,
|
|
6591
6585
|
"onUpdate:modelValue": t[5] ||= (e) => i.value = e,
|
|
6592
6586
|
"max-width": 900,
|
|
6593
6587
|
"data-cy": "user-metadata-repair-dialog"
|
|
6594
6588
|
}, {
|
|
6595
|
-
default: Y(() => [R(
|
|
6589
|
+
default: Y(() => [R(jn, null, {
|
|
6596
6590
|
default: Y(() => [
|
|
6597
6591
|
R(v, { onOnCancel: t[0] ||= (e) => i.value = !1 }, {
|
|
6598
6592
|
default: Y(() => [L(K(q(a)("common.userSystem.repair.title")), 1)]),
|
|
6599
6593
|
_: 1
|
|
6600
6594
|
}),
|
|
6601
|
-
|
|
6595
|
+
u.value && !f.value ? (H(), N(Nn, { key: 0 }, {
|
|
6602
6596
|
default: Y(() => [
|
|
6603
|
-
q(o).identityConflict ? (H(), N(
|
|
6597
|
+
q(o).identityConflict ? (H(), N(kn, {
|
|
6604
6598
|
key: 0,
|
|
6605
6599
|
type: "error",
|
|
6606
6600
|
variant: "tonal",
|
|
@@ -6611,10 +6605,10 @@ var Po = {
|
|
|
6611
6605
|
default: Y(() => [L(K(q(a)("common.userSystem.search.identityConflict")), 1)]),
|
|
6612
6606
|
_: 1
|
|
6613
6607
|
})) : P("", !0),
|
|
6614
|
-
R(
|
|
6615
|
-
modelValue:
|
|
6616
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
6617
|
-
items:
|
|
6608
|
+
R(tr, {
|
|
6609
|
+
modelValue: l.value,
|
|
6610
|
+
"onUpdate:modelValue": t[1] ||= (e) => l.value = e,
|
|
6611
|
+
items: p.value,
|
|
6618
6612
|
label: q(a)("common.userSystem.repair.source"),
|
|
6619
6613
|
density: "compact",
|
|
6620
6614
|
"data-cy": "repair-source"
|
|
@@ -6623,20 +6617,20 @@ var Po = {
|
|
|
6623
6617
|
"items",
|
|
6624
6618
|
"label"
|
|
6625
6619
|
]),
|
|
6626
|
-
R(
|
|
6627
|
-
user:
|
|
6628
|
-
"onUpdate:user": t[2] ||= (e) =>
|
|
6620
|
+
R(Io, {
|
|
6621
|
+
user: u.value,
|
|
6622
|
+
"onUpdate:user": t[2] ||= (e) => u.value = e,
|
|
6629
6623
|
required: "",
|
|
6630
6624
|
"id-input": !1,
|
|
6631
6625
|
"is-edit": ""
|
|
6632
6626
|
}, null, 8, ["user"]),
|
|
6633
|
-
I("div",
|
|
6634
|
-
(H(!0), F(j, null, W(
|
|
6627
|
+
I("div", Gs, K(q(a)("common.userSystem.repair.changes")), 1),
|
|
6628
|
+
(H(!0), F(j, null, W(m.value, (e) => (H(), F("div", {
|
|
6635
6629
|
key: e,
|
|
6636
6630
|
class: "mt-2 d-flex align-start ga-2"
|
|
6637
|
-
}, [R(
|
|
6638
|
-
modelValue:
|
|
6639
|
-
"onUpdate:modelValue": t[3] ||= (e) =>
|
|
6631
|
+
}, [R(Qn, {
|
|
6632
|
+
modelValue: d.value,
|
|
6633
|
+
"onUpdate:modelValue": t[3] ||= (e) => d.value = e,
|
|
6640
6634
|
value: e,
|
|
6641
6635
|
disabled: !!q(o).identityConflict,
|
|
6642
6636
|
"data-cy": `repair-system-${e}`,
|
|
@@ -6648,12 +6642,12 @@ var Po = {
|
|
|
6648
6642
|
"disabled",
|
|
6649
6643
|
"data-cy"
|
|
6650
6644
|
]), I("div", null, [
|
|
6651
|
-
I("div",
|
|
6645
|
+
I("div", Ks, [I("span", qs, K(x(e)), 1), q(o).results.get(e) ? (H(), N(ls, {
|
|
6652
6646
|
key: 0,
|
|
6653
6647
|
axes: q(o).results.get(e).axes
|
|
6654
6648
|
}, null, 8, ["axes"])) : P("", !0)]),
|
|
6655
|
-
|
|
6656
|
-
(H(!0), F(j, null, W(
|
|
6649
|
+
b(e) ? (H(), F("div", Js, K(b(e)), 1)) : P("", !0),
|
|
6650
|
+
(H(!0), F(j, null, W(g.value.filter((t) => t.system === e), (e) => (H(), F("div", {
|
|
6657
6651
|
key: e.field,
|
|
6658
6652
|
class: "text-body-small"
|
|
6659
6653
|
}, [
|
|
@@ -6664,39 +6658,39 @@ var Po = {
|
|
|
6664
6658
|
])]))), 128))
|
|
6665
6659
|
]),
|
|
6666
6660
|
_: 1
|
|
6667
|
-
})) :
|
|
6668
|
-
default: Y(() => [I("div",
|
|
6661
|
+
})) : f.value ? (H(), N(Nn, { key: 1 }, {
|
|
6662
|
+
default: Y(() => [I("div", Ys, K(q(a)("common.userSystem.bulk.log")), 1), I("div", Xs, [(H(!0), F(j, null, W(_.value, (e) => (H(), F("div", {
|
|
6669
6663
|
key: e.system,
|
|
6670
6664
|
class: "d-flex align-center ga-2 py-1"
|
|
6671
6665
|
}, [
|
|
6672
|
-
I("div",
|
|
6673
|
-
I("div",
|
|
6674
|
-
e.detail ? (H(), F("div",
|
|
6666
|
+
I("div", Zs, K(x(e.system)), 1),
|
|
6667
|
+
I("div", Qs, K(q(a)(`common.userSystem.bulk.outcome.${e.outcome}`)), 1),
|
|
6668
|
+
e.detail ? (H(), F("div", $s, K(e.detail), 1)) : P("", !0)
|
|
6675
6669
|
]))), 128))])]),
|
|
6676
6670
|
_: 1
|
|
6677
6671
|
})) : P("", !0),
|
|
6678
|
-
R(
|
|
6672
|
+
R(Mn, null, {
|
|
6679
6673
|
default: Y(() => [
|
|
6680
6674
|
R(n, { onClick: t[4] ||= X((e) => i.value = !1, ["stop"]) }, {
|
|
6681
|
-
default: Y(() => [L(K(
|
|
6675
|
+
default: Y(() => [L(K(f.value ? q(a)("common.userSystem.bulk.close") : q(a)("common.button.cancel")), 1)]),
|
|
6682
6676
|
_: 1
|
|
6683
6677
|
}),
|
|
6684
|
-
R(
|
|
6685
|
-
|
|
6678
|
+
R(On),
|
|
6679
|
+
f.value && y.value.length > 0 && !q(o).bulkRunning ? (H(), N(n, {
|
|
6686
6680
|
key: 0,
|
|
6687
6681
|
"data-cy": "repair-retry",
|
|
6688
|
-
onClick: X(
|
|
6682
|
+
onClick: X(C, ["stop"])
|
|
6689
6683
|
}, {
|
|
6690
6684
|
default: Y(() => [L(K(q(a)("common.userSystem.bulk.retryFailed")), 1)]),
|
|
6691
6685
|
_: 1
|
|
6692
6686
|
})) : P("", !0),
|
|
6693
|
-
|
|
6687
|
+
f.value ? P("", !0) : (H(), N(r, {
|
|
6694
6688
|
key: 1,
|
|
6695
|
-
disabled:
|
|
6689
|
+
disabled: h.value.length === 0 || !!q(o).identityConflict,
|
|
6696
6690
|
"data-cy": "repair-confirm",
|
|
6697
|
-
onClick: X(
|
|
6691
|
+
onClick: X(S, ["stop"])
|
|
6698
6692
|
}, {
|
|
6699
|
-
default: Y(() => [L(K(q(a)("common.userSystem.bulk.metadata.confirm", { count:
|
|
6693
|
+
default: Y(() => [L(K(q(a)("common.userSystem.bulk.metadata.confirm", { count: h.value.length }, h.value.length)), 1)]),
|
|
6700
6694
|
_: 1
|
|
6701
6695
|
}, 8, ["disabled"]))
|
|
6702
6696
|
]),
|
|
@@ -6709,8 +6703,8 @@ var Po = {
|
|
|
6709
6703
|
}, 8, ["modelValue"]);
|
|
6710
6704
|
};
|
|
6711
6705
|
}
|
|
6712
|
-
}),
|
|
6713
|
-
let t =
|
|
6706
|
+
}), tc = /^[^\s@]+@[^\s@]+$/, nc = (e) => tc.test(e.trim()), rc = (e) => {
|
|
6707
|
+
let t = Cs(), { descriptors: n, refreshHook: r } = e, i = new Map(n.map((e) => [e.system, ps({
|
|
6714
6708
|
descriptor: e,
|
|
6715
6709
|
refreshHook: r
|
|
6716
6710
|
})])), a = 0, o = () => {
|
|
@@ -6719,17 +6713,17 @@ var Po = {
|
|
|
6719
6713
|
let o = i.get(e.system);
|
|
6720
6714
|
o && (t.patchAxes(e.system, {
|
|
6721
6715
|
...o.axes.value,
|
|
6722
|
-
load:
|
|
6716
|
+
load: es.Loading
|
|
6723
6717
|
}), await o.probe(n), r === a && t.setResult(e.system, {
|
|
6724
6718
|
axes: o.axes.value,
|
|
6725
6719
|
user: o.user.value
|
|
6726
6720
|
}));
|
|
6727
6721
|
}, c = async (e) => {
|
|
6728
6722
|
let r = ++a;
|
|
6729
|
-
t.resetResults(), t.resolvedId = e, t.phase =
|
|
6723
|
+
t.resetResults(), t.resolvedId = e, t.phase = bs.VerifyingById, await Promise.allSettled(n.map((t) => s(t, e, r))), r === a && (t.phase = bs.Done);
|
|
6730
6724
|
}, l = async (e, t) => {
|
|
6731
6725
|
if (!e.isEnabled()) return null;
|
|
6732
|
-
let { filterData: n, filterConfig: r } =
|
|
6726
|
+
let { filterData: n, filterConfig: r } = Do();
|
|
6733
6727
|
n.email = t;
|
|
6734
6728
|
let { pagination: i } = Wt("id", Ee.Desc, { rowsPerPage: 1 }), { execute: a } = tt({
|
|
6735
6729
|
client: e.client,
|
|
@@ -6744,7 +6738,7 @@ var Po = {
|
|
|
6744
6738
|
}
|
|
6745
6739
|
}, u = async (e) => {
|
|
6746
6740
|
let r = ++a;
|
|
6747
|
-
t.resetResults(), t.phase =
|
|
6741
|
+
t.resetResults(), t.phase = bs.MatchingEmail;
|
|
6748
6742
|
let i = await Promise.all(n.map(async (t) => ({
|
|
6749
6743
|
system: t.system,
|
|
6750
6744
|
user: await l(t, e)
|
|
@@ -6754,12 +6748,12 @@ var Po = {
|
|
|
6754
6748
|
for (let e of i) e.user?.id && o.set(e.system, e.user.id);
|
|
6755
6749
|
let s = new Set(o.values());
|
|
6756
6750
|
if (s.size > 1) {
|
|
6757
|
-
t.identityConflict = o, t.phase =
|
|
6751
|
+
t.identityConflict = o, t.phase = bs.Done;
|
|
6758
6752
|
for (let e of i) e.user && t.setResult(e.system, {
|
|
6759
6753
|
axes: {
|
|
6760
|
-
load:
|
|
6761
|
-
presence:
|
|
6762
|
-
access:
|
|
6754
|
+
load: es.Loaded,
|
|
6755
|
+
presence: ts.Present,
|
|
6756
|
+
access: ns.Ok,
|
|
6763
6757
|
enabled: e.user.enabled
|
|
6764
6758
|
},
|
|
6765
6759
|
user: e.user
|
|
@@ -6768,7 +6762,7 @@ var Po = {
|
|
|
6768
6762
|
}
|
|
6769
6763
|
let u = s.values().next().value;
|
|
6770
6764
|
if (u === void 0) {
|
|
6771
|
-
t.phase =
|
|
6765
|
+
t.phase = bs.Done;
|
|
6772
6766
|
return;
|
|
6773
6767
|
}
|
|
6774
6768
|
await c(u);
|
|
@@ -6777,7 +6771,7 @@ var Po = {
|
|
|
6777
6771
|
search: async (e) => {
|
|
6778
6772
|
let n = e.trim();
|
|
6779
6773
|
if (n.length === 0) return !1;
|
|
6780
|
-
if (t.searchTerm = n,
|
|
6774
|
+
if (t.searchTerm = n, nc(n)) return await u(n), !0;
|
|
6781
6775
|
let r = Number(n);
|
|
6782
6776
|
return !Number.isInteger(r) || r <= 0 ? (o(), t.resetResults(), t.termRejected = !0, !1) : (await c(r), !0);
|
|
6783
6777
|
},
|
|
@@ -6790,29 +6784,29 @@ var Po = {
|
|
|
6790
6784
|
resultFor: (e) => t.results.get(e),
|
|
6791
6785
|
unresolvedSystems: M(() => n.filter((e) => e.isEnabled()).filter((e) => {
|
|
6792
6786
|
let n = t.results.get(e.system);
|
|
6793
|
-
return n === void 0 || !
|
|
6787
|
+
return n === void 0 || !ss(n.axes);
|
|
6794
6788
|
}).map((e) => e.system)),
|
|
6795
6789
|
cancel: o
|
|
6796
6790
|
};
|
|
6797
|
-
},
|
|
6791
|
+
}, ic = { class: "d-flex align-center ga-2" }, ac = {
|
|
6798
6792
|
key: 0,
|
|
6799
6793
|
class: "text-body-small mt-2"
|
|
6800
|
-
},
|
|
6794
|
+
}, oc = {
|
|
6801
6795
|
key: 1,
|
|
6802
6796
|
class: "text-body-small mt-2"
|
|
6803
|
-
},
|
|
6797
|
+
}, sc = ["data-cy"], cc = {
|
|
6804
6798
|
class: "font-weight-medium",
|
|
6805
6799
|
style: { "min-width": "8rem" }
|
|
6806
|
-
},
|
|
6800
|
+
}, lc = { class: "text-body-small text-medium-emphasis" }, uc = { class: "text-label-large" }, dc = {
|
|
6807
6801
|
key: 4,
|
|
6808
6802
|
class: "d-flex ga-2 mt-3"
|
|
6809
|
-
},
|
|
6803
|
+
}, fc = {
|
|
6810
6804
|
key: 0,
|
|
6811
6805
|
class: "text-body-small align-self-center"
|
|
6812
|
-
},
|
|
6806
|
+
}, pc = { "data-cy": "cross-system-not-found" }, mc = { class: "text-body-small mt-2" }, hc = {
|
|
6813
6807
|
key: 0,
|
|
6814
6808
|
class: "mt-2"
|
|
6815
|
-
},
|
|
6809
|
+
}, gc = { class: "mt-2" }, _c = /* @__PURE__ */ z({
|
|
6816
6810
|
__name: "AUserSystemOverview",
|
|
6817
6811
|
props: {
|
|
6818
6812
|
descriptors: {},
|
|
@@ -6820,7 +6814,7 @@ var Po = {
|
|
|
6820
6814
|
},
|
|
6821
6815
|
emits: ["searched"],
|
|
6822
6816
|
setup(n, { expose: r, emit: i }) {
|
|
6823
|
-
let a = n, o = i, { t: s } =
|
|
6817
|
+
let a = n, o = i, { t: s } = Tn(), { showError: c } = t(), l = Cs(), { createAnzuUser: u } = ot(), d = Ms(), f = Zn(), { search: p, refreshSystem: m, unresolvedSystems: h, cancel: g } = rc({
|
|
6824
6818
|
descriptors: a.descriptors,
|
|
6825
6819
|
refreshHook: a.refreshHook
|
|
6826
6820
|
}), _ = U(""), y = U(/* @__PURE__ */ new Set()), b = async () => {
|
|
@@ -6833,7 +6827,7 @@ var Po = {
|
|
|
6833
6827
|
n && e.set(t.system, n);
|
|
6834
6828
|
}
|
|
6835
6829
|
return e;
|
|
6836
|
-
}), S = M(() =>
|
|
6830
|
+
}), S = M(() => Ds(x.value)), C = M(() => x.value.size > 0), w = M(() => l.phase === bs.Done), T = M(() => nc(l.searchTerm)), ee = M(() => w.value && !C.value && (T.value || h.value.length === 0)), te = M(() => l.identityConflict !== null), E = (e) => e.label ?? e.system, D = (t) => {
|
|
6837
6831
|
let n = l.results.get(t.system)?.user;
|
|
6838
6832
|
return A(n) || e(n) || A(t.manage) ? null : t.manage(n);
|
|
6839
6833
|
}, O = (t) => {
|
|
@@ -6844,7 +6838,7 @@ var Po = {
|
|
|
6844
6838
|
warn: "warning",
|
|
6845
6839
|
error: "error"
|
|
6846
6840
|
}, re = (e, t) => {
|
|
6847
|
-
t !==
|
|
6841
|
+
t !== Ss.Done && c(e + ": " + s("common.userSystem.bulk.outcome." + t));
|
|
6848
6842
|
}, ie = (e) => A(e) || e.length === 0 ? void 0 : s("common.userSystem.bulk.concurrentChange", { fields: e.join(", ") }), ae = async (e, t) => {
|
|
6849
6843
|
y.value = /* @__PURE__ */ new Set([...y.value, e]);
|
|
6850
6844
|
try {
|
|
@@ -6870,13 +6864,13 @@ var Po = {
|
|
|
6870
6864
|
return;
|
|
6871
6865
|
}
|
|
6872
6866
|
if (a.enabled !== le.value) {
|
|
6873
|
-
|
|
6867
|
+
await m(i.system), c(s("common.userSystem.create.sourceChanged"));
|
|
6874
6868
|
return;
|
|
6875
6869
|
}
|
|
6876
6870
|
let o = u(t.system);
|
|
6877
6871
|
o.id = a.id, o.email = n.email, o.person = k(n.person), o.avatar = k(n.avatar), o.enabled = a.enabled;
|
|
6878
|
-
let
|
|
6879
|
-
re(E(t),
|
|
6872
|
+
let l = await d.createInSystem(t, o);
|
|
6873
|
+
re(E(t), l.outcome), await m(t.system);
|
|
6880
6874
|
});
|
|
6881
6875
|
}, ce = M(() => {
|
|
6882
6876
|
let e = a.descriptors.find((e) => x.value.has(e.system));
|
|
@@ -6884,34 +6878,34 @@ var Po = {
|
|
|
6884
6878
|
}), le = M(() => {
|
|
6885
6879
|
let e = a.descriptors.find((e) => x.value.has(e.system));
|
|
6886
6880
|
return !A(e) && l.results.get(e.system)?.user?.enabled === !0;
|
|
6887
|
-
}), ue = U(!1), de = U(
|
|
6881
|
+
}), ue = U(!1), de = U(xs.Disable), fe = U(!1), pe = (e) => {
|
|
6888
6882
|
de.value = e, ue.value = !0;
|
|
6889
6883
|
}, me = async (t) => {
|
|
6890
6884
|
let n = l.resolvedId;
|
|
6891
6885
|
if (e(n)) return;
|
|
6892
|
-
let r = de.value ===
|
|
6886
|
+
let r = de.value === xs.Enable;
|
|
6893
6887
|
l.startBulk(de.value, t, n), await Promise.allSettled(t.map(async (e) => {
|
|
6894
6888
|
let t = a.descriptors.find((t) => t.system === e);
|
|
6895
6889
|
if (A(t)) return;
|
|
6896
|
-
l.setBulkEntry(e,
|
|
6890
|
+
l.setBulkEntry(e, Ss.Running);
|
|
6897
6891
|
let i = await d.setEnabled(t, n, r);
|
|
6898
6892
|
l.setBulkEntry(e, i.outcome), await m(e);
|
|
6899
6893
|
})), l.finishBulk();
|
|
6900
6894
|
}, he = async (t) => {
|
|
6901
6895
|
let n = l.resolvedId;
|
|
6902
6896
|
if (e(n)) return;
|
|
6903
|
-
l.startBulk(
|
|
6897
|
+
l.startBulk(xs.Metadata, t.systems, n);
|
|
6904
6898
|
let r = new Map(x.value);
|
|
6905
6899
|
await Promise.allSettled(t.systems.map(async (e) => {
|
|
6906
6900
|
let i = a.descriptors.find((t) => t.system === e);
|
|
6907
6901
|
if (A(i)) return;
|
|
6908
|
-
l.setBulkEntry(e,
|
|
6902
|
+
l.setBulkEntry(e, Ss.Running);
|
|
6909
6903
|
let o = await d.writeMetadata(i, n, t.target, void 0, r.get(e) ?? null);
|
|
6910
6904
|
l.setBulkEntry(e, o.outcome, ie(o.concurrentFields)), await m(e);
|
|
6911
6905
|
})), l.finishBulk();
|
|
6912
|
-
}, ge = U(!1), _e = U(null), ve = U(u()), ye = U(!1), be = U([]), xe = U(null), Se = () => {
|
|
6913
|
-
_e.value = a.descriptors
|
|
6914
|
-
},
|
|
6906
|
+
}, ge = U(!1), _e = U(null), ve = U(u()), ye = U(!1), be = U([]), xe = U(null), Se = !1, Ce = () => {
|
|
6907
|
+
_e.value = a.descriptors.find((e) => e.isEnabled())?.system ?? null, ve.value = u(_e.value ?? ""), be.value = [], xe.value = null, ge.value = !0;
|
|
6908
|
+
}, we = async () => {
|
|
6915
6909
|
let t = ve.value.id, n = _e.value;
|
|
6916
6910
|
if (be.value = [], xe.value = null, !e(n)) {
|
|
6917
6911
|
if (e(t) || A(t) || !Number.isInteger(t) || t <= 0) {
|
|
@@ -6925,6 +6919,7 @@ var Po = {
|
|
|
6925
6919
|
xe.value = s("common.userSystem.create.invalidId");
|
|
6926
6920
|
return;
|
|
6927
6921
|
}
|
|
6922
|
+
if (Se) return;
|
|
6928
6923
|
if (x.value.size > 0) {
|
|
6929
6924
|
be.value = [...x.value.keys()];
|
|
6930
6925
|
return;
|
|
@@ -6934,29 +6929,31 @@ var Po = {
|
|
|
6934
6929
|
return;
|
|
6935
6930
|
}
|
|
6936
6931
|
let e = a.descriptors.find((e) => e.system === n);
|
|
6937
|
-
if (A(e)) return;
|
|
6932
|
+
if (A(e) || !e.isEnabled()) return;
|
|
6938
6933
|
let r = u(n);
|
|
6939
6934
|
r.id = t, r.email = ve.value.email, r.person = k(ve.value.person), r.avatar = k(ve.value.avatar), r.enabled = !1;
|
|
6940
6935
|
let i = await d.createInSystem(e, r);
|
|
6941
|
-
if (re(E(e), i.outcome), i.outcome !==
|
|
6936
|
+
if (re(E(e), i.outcome), i.outcome !== Ss.Done || Se) return;
|
|
6942
6937
|
ge.value = !1, await p(String(t));
|
|
6943
6938
|
} finally {
|
|
6944
6939
|
ye.value = !1;
|
|
6945
6940
|
}
|
|
6946
6941
|
}
|
|
6947
6942
|
}
|
|
6948
|
-
},
|
|
6943
|
+
}, Te = M(() => a.descriptors.find((e) => e.system === _e.value)?.requiredMetadata ?? !0), Ee = M(() => a.descriptors.find((e) => e.system === _e.value)?.createNote), De = M(() => a.descriptors.filter((e) => e.isEnabled()).map((e) => ({
|
|
6949
6944
|
value: e.system,
|
|
6950
6945
|
title: E(e)
|
|
6951
6946
|
})));
|
|
6952
|
-
return fn(
|
|
6947
|
+
return fn(() => {
|
|
6948
|
+
Se = !0, g(), l.reset();
|
|
6949
|
+
}), r({ search: async (e) => {
|
|
6953
6950
|
_.value = e, await b();
|
|
6954
6951
|
} }), (e, t) => {
|
|
6955
6952
|
let r = hn("ABtnPrimary"), i = hn("ABtnTertiary");
|
|
6956
6953
|
return H(), F("div", null, [
|
|
6957
|
-
R(
|
|
6958
|
-
default: Y(() => [R(
|
|
6959
|
-
default: Y(() => [I("div",
|
|
6954
|
+
R(jn, { variant: "flat" }, {
|
|
6955
|
+
default: Y(() => [R(Nn, null, {
|
|
6956
|
+
default: Y(() => [I("div", ic, [R(Rn, {
|
|
6960
6957
|
modelValue: _.value,
|
|
6961
6958
|
"onUpdate:modelValue": t[0] ||= (e) => _.value = e,
|
|
6962
6959
|
label: q(s)("common.userSystem.search.label"),
|
|
@@ -6964,7 +6961,7 @@ var Po = {
|
|
|
6964
6961
|
"persistent-hint": "",
|
|
6965
6962
|
density: "compact",
|
|
6966
6963
|
"data-cy": "cross-system-search",
|
|
6967
|
-
onKeyup:
|
|
6964
|
+
onKeyup: wn(b, ["enter"])
|
|
6968
6965
|
}, null, 8, [
|
|
6969
6966
|
"modelValue",
|
|
6970
6967
|
"label",
|
|
@@ -6975,12 +6972,12 @@ var Po = {
|
|
|
6975
6972
|
}, {
|
|
6976
6973
|
default: Y(() => [L(K(q(s)("common.userSystem.search.submit")), 1)]),
|
|
6977
6974
|
_: 1
|
|
6978
|
-
})]), q(l).phase === q(
|
|
6975
|
+
})]), q(l).phase === q(bs).MatchingEmail ? (H(), F("div", ac, K(q(s)("common.userSystem.search.phase.matchingEmail")), 1)) : q(l).phase === q(bs).VerifyingById ? (H(), F("div", oc, K(q(s)("common.userSystem.search.phase.verifyingById")), 1)) : P("", !0)]),
|
|
6979
6976
|
_: 1
|
|
6980
6977
|
})]),
|
|
6981
6978
|
_: 1
|
|
6982
6979
|
}),
|
|
6983
|
-
q(l).identityConflict ? (H(), N(
|
|
6980
|
+
q(l).identityConflict ? (H(), N(kn, {
|
|
6984
6981
|
key: 0,
|
|
6985
6982
|
type: "error",
|
|
6986
6983
|
variant: "tonal",
|
|
@@ -6991,7 +6988,7 @@ var Po = {
|
|
|
6991
6988
|
default: Y(() => [L(K(q(s)("common.userSystem.search.identityConflict")), 1)]),
|
|
6992
6989
|
_: 1
|
|
6993
6990
|
})) : P("", !0),
|
|
6994
|
-
q(l).termRejected ? (H(), N(
|
|
6991
|
+
q(l).termRejected ? (H(), N(kn, {
|
|
6995
6992
|
key: 1,
|
|
6996
6993
|
type: "warning",
|
|
6997
6994
|
variant: "tonal",
|
|
@@ -7002,23 +6999,23 @@ var Po = {
|
|
|
7002
6999
|
default: Y(() => [L(K(q(s)("common.userSystem.search.termRejected")), 1)]),
|
|
7003
7000
|
_: 1
|
|
7004
7001
|
})) : P("", !0),
|
|
7005
|
-
w.value ? (H(), N(
|
|
7002
|
+
w.value ? (H(), N(jn, {
|
|
7006
7003
|
key: 2,
|
|
7007
7004
|
variant: "flat",
|
|
7008
7005
|
class: "mt-3"
|
|
7009
7006
|
}, {
|
|
7010
|
-
default: Y(() => [R(
|
|
7007
|
+
default: Y(() => [R(Nn, { class: "d-flex flex-column ga-3" }, {
|
|
7011
7008
|
default: Y(() => [(H(!0), F(j, null, W(n.descriptors, (e) => (H(), F("div", {
|
|
7012
7009
|
key: e.system,
|
|
7013
7010
|
class: "d-flex align-center flex-wrap ga-2",
|
|
7014
7011
|
"data-cy": `cross-system-row-${e.system}`
|
|
7015
7012
|
}, [
|
|
7016
|
-
I("div",
|
|
7017
|
-
q(l).results.get(e.system) ? (H(), N(
|
|
7013
|
+
I("div", cc, K(E(e)), 1),
|
|
7014
|
+
q(l).results.get(e.system) ? (H(), N(ls, {
|
|
7018
7015
|
key: 0,
|
|
7019
7016
|
axes: q(l).results.get(e.system).axes
|
|
7020
7017
|
}, null, 8, ["axes"])) : P("", !0),
|
|
7021
|
-
O(e) ? (H(), N(
|
|
7018
|
+
O(e) ? (H(), N(En, {
|
|
7022
7019
|
key: 1,
|
|
7023
7020
|
color: ne[O(e).tone],
|
|
7024
7021
|
label: "",
|
|
@@ -7027,9 +7024,9 @@ var Po = {
|
|
|
7027
7024
|
default: Y(() => [L(K(O(e).label) + ": " + K(O(e).value), 1)]),
|
|
7028
7025
|
_: 2
|
|
7029
7026
|
}, 1032, ["color"])) : P("", !0),
|
|
7030
|
-
I("div",
|
|
7031
|
-
R(
|
|
7032
|
-
q(l).results.get(e.system) && q(
|
|
7027
|
+
I("div", lc, [L(K(q(l).results.get(e.system)?.user?.person.fullName) + " ", 1), q(l).results.get(e.system)?.user ? (H(), F(j, { key: 0 }, [L(" · " + K(q(l).results.get(e.system)?.user?.email), 1)], 64)) : P("", !0)]),
|
|
7028
|
+
R(On),
|
|
7029
|
+
q(l).results.get(e.system) && q(cs)(q(l).results.get(e.system).axes) ? (H(), F(j, { key: 2 }, [R($, {
|
|
7033
7030
|
size: "small",
|
|
7034
7031
|
variant: "text",
|
|
7035
7032
|
loading: y.value.has(e.system),
|
|
@@ -7044,11 +7041,11 @@ var Po = {
|
|
|
7044
7041
|
"disabled",
|
|
7045
7042
|
"data-cy",
|
|
7046
7043
|
"onClick"
|
|
7047
|
-
]), D(e) ? (H(), N(
|
|
7044
|
+
]), D(e) ? (H(), N($o, {
|
|
7048
7045
|
key: 0,
|
|
7049
7046
|
target: D(e),
|
|
7050
7047
|
"system-label": E(e)
|
|
7051
|
-
}, null, 8, ["target", "system-label"])) : P("", !0)], 64)) : C.value && q(l).results.get(e.system) && q(l).results.get(e.system).axes.presence === "absent" ? (H(), N(
|
|
7048
|
+
}, null, 8, ["target", "system-label"])) : P("", !0)], 64)) : C.value && q(l).results.get(e.system) && q(l).results.get(e.system).axes.presence === "absent" ? (H(), N(Qo, {
|
|
7052
7049
|
key: 3,
|
|
7053
7050
|
"system-label": E(e),
|
|
7054
7051
|
"create-note": e.createNote,
|
|
@@ -7070,19 +7067,19 @@ var Po = {
|
|
|
7070
7067
|
"source",
|
|
7071
7068
|
"onConfirm"
|
|
7072
7069
|
])) : P("", !0)
|
|
7073
|
-
], 8,
|
|
7070
|
+
], 8, sc))), 128))]),
|
|
7074
7071
|
_: 1
|
|
7075
7072
|
})]),
|
|
7076
7073
|
_: 1
|
|
7077
7074
|
})) : P("", !0),
|
|
7078
|
-
S.value.length > 0 ? (H(), N(
|
|
7075
|
+
S.value.length > 0 ? (H(), N(jn, {
|
|
7079
7076
|
key: 3,
|
|
7080
7077
|
variant: "flat",
|
|
7081
7078
|
class: "mt-3",
|
|
7082
7079
|
"data-cy": "cross-system-differences"
|
|
7083
7080
|
}, {
|
|
7084
|
-
default: Y(() => [R(
|
|
7085
|
-
default: Y(() => [I("div",
|
|
7081
|
+
default: Y(() => [R(Nn, null, {
|
|
7082
|
+
default: Y(() => [I("div", uc, K(q(s)("common.userSystem.inconsistency.title")), 1), (H(!0), F(j, null, W(S.value, (e) => (H(), F("div", {
|
|
7086
7083
|
key: e.field,
|
|
7087
7084
|
class: "text-body-small"
|
|
7088
7085
|
}, [I("strong", null, K(e.field), 1), (H(!0), F(j, null, W(e.values, ([e, t]) => (H(), F("span", {
|
|
@@ -7093,11 +7090,11 @@ var Po = {
|
|
|
7093
7090
|
})]),
|
|
7094
7091
|
_: 1
|
|
7095
7092
|
})) : P("", !0),
|
|
7096
|
-
w.value && C.value ? (H(), F("div",
|
|
7093
|
+
w.value && C.value ? (H(), F("div", dc, [
|
|
7097
7094
|
R(i, {
|
|
7098
7095
|
disabled: q(l).bulkRunning || te.value,
|
|
7099
7096
|
"data-cy": "cross-system-bulk-disable",
|
|
7100
|
-
onClick: t[1] ||= (e) => pe(q(
|
|
7097
|
+
onClick: t[1] ||= (e) => pe(q(xs).Disable)
|
|
7101
7098
|
}, {
|
|
7102
7099
|
default: Y(() => [L(K(q(s)("common.userSystem.bulk.openDisable")), 1)]),
|
|
7103
7100
|
_: 1
|
|
@@ -7105,7 +7102,7 @@ var Po = {
|
|
|
7105
7102
|
R(i, {
|
|
7106
7103
|
disabled: q(l).bulkRunning || te.value,
|
|
7107
7104
|
"data-cy": "cross-system-bulk-enable",
|
|
7108
|
-
onClick: t[2] ||= (e) => pe(q(
|
|
7105
|
+
onClick: t[2] ||= (e) => pe(q(xs).Enable)
|
|
7109
7106
|
}, {
|
|
7110
7107
|
default: Y(() => [L(K(q(s)("common.userSystem.bulk.openEnable")), 1)]),
|
|
7111
7108
|
_: 1
|
|
@@ -7118,23 +7115,23 @@ var Po = {
|
|
|
7118
7115
|
default: Y(() => [L(K(q(s)("common.userSystem.bulk.openMetadata")), 1)]),
|
|
7119
7116
|
_: 1
|
|
7120
7117
|
}, 8, ["disabled"]),
|
|
7121
|
-
q(l).bulkRunning ? (H(), F("div",
|
|
7118
|
+
q(l).bulkRunning ? (H(), F("div", fc, K(q(s)("common.userSystem.bulk.runningElsewhere")), 1)) : P("", !0)
|
|
7122
7119
|
])) : P("", !0),
|
|
7123
|
-
w.value && !C.value ? (H(), N(
|
|
7120
|
+
w.value && !C.value ? (H(), N(jn, {
|
|
7124
7121
|
key: 5,
|
|
7125
7122
|
variant: "flat",
|
|
7126
7123
|
class: "mt-3"
|
|
7127
7124
|
}, {
|
|
7128
|
-
default: Y(() => [R(
|
|
7129
|
-
default: Y(() => [I("div",
|
|
7125
|
+
default: Y(() => [R(Nn, null, {
|
|
7126
|
+
default: Y(() => [I("div", pc, K(q(s)("common.userSystem.search.notFound")), 1), ee.value ? (H(), N(r, {
|
|
7130
7127
|
key: 0,
|
|
7131
7128
|
class: "mt-2",
|
|
7132
7129
|
"data-cy": "cross-system-create-anywhere",
|
|
7133
|
-
onClick:
|
|
7130
|
+
onClick: Ce
|
|
7134
7131
|
}, {
|
|
7135
7132
|
default: Y(() => [L(K(q(s)("common.userSystem.search.createAnywhere")), 1)]),
|
|
7136
7133
|
_: 1
|
|
7137
|
-
})) : (H(), F(j, { key: 1 }, [I("div",
|
|
7134
|
+
})) : (H(), F(j, { key: 1 }, [I("div", mc, K(q(s)("common.userSystem.create.notAuthoritative", { systems: q(h).join(", ") })), 1), R(i, {
|
|
7138
7135
|
class: "mt-2",
|
|
7139
7136
|
"data-cy": "cross-system-retry-search",
|
|
7140
7137
|
onClick: b
|
|
@@ -7146,7 +7143,7 @@ var Po = {
|
|
|
7146
7143
|
})]),
|
|
7147
7144
|
_: 1
|
|
7148
7145
|
})) : P("", !0),
|
|
7149
|
-
R(
|
|
7146
|
+
R(Ws, {
|
|
7150
7147
|
open: ue.value,
|
|
7151
7148
|
"onUpdate:open": t[4] ||= (e) => ue.value = e,
|
|
7152
7149
|
action: de.value,
|
|
@@ -7157,29 +7154,29 @@ var Po = {
|
|
|
7157
7154
|
"action",
|
|
7158
7155
|
"descriptors"
|
|
7159
7156
|
]),
|
|
7160
|
-
R(
|
|
7157
|
+
R(ec, {
|
|
7161
7158
|
open: fe.value,
|
|
7162
7159
|
"onUpdate:open": t[5] ||= (e) => fe.value = e,
|
|
7163
7160
|
descriptors: n.descriptors,
|
|
7164
7161
|
onConfirm: he
|
|
7165
7162
|
}, null, 8, ["open", "descriptors"]),
|
|
7166
|
-
R(
|
|
7163
|
+
R(Xn, {
|
|
7167
7164
|
modelValue: ge.value,
|
|
7168
7165
|
"onUpdate:modelValue": t[10] ||= (e) => ge.value = e,
|
|
7169
7166
|
"max-width": 720
|
|
7170
7167
|
}, {
|
|
7171
|
-
default: Y(() => [R(
|
|
7168
|
+
default: Y(() => [R(jn, null, {
|
|
7172
7169
|
default: Y(() => [
|
|
7173
7170
|
R(v, { onOnCancel: t[6] ||= (e) => ge.value = !1 }, {
|
|
7174
7171
|
default: Y(() => [L(K(q(s)("common.userSystem.search.createAnywhere")), 1)]),
|
|
7175
7172
|
_: 1
|
|
7176
7173
|
}),
|
|
7177
|
-
R(
|
|
7174
|
+
R(Nn, null, {
|
|
7178
7175
|
default: Y(() => [
|
|
7179
|
-
R(
|
|
7176
|
+
R(tr, {
|
|
7180
7177
|
modelValue: _e.value,
|
|
7181
7178
|
"onUpdate:modelValue": t[7] ||= (e) => _e.value = e,
|
|
7182
|
-
items:
|
|
7179
|
+
items: De.value,
|
|
7183
7180
|
label: q(s)("common.userSystem.table.system"),
|
|
7184
7181
|
density: "compact",
|
|
7185
7182
|
"data-cy": "create-anywhere-system"
|
|
@@ -7188,14 +7185,14 @@ var Po = {
|
|
|
7188
7185
|
"items",
|
|
7189
7186
|
"label"
|
|
7190
7187
|
]),
|
|
7191
|
-
R(
|
|
7188
|
+
R(Io, {
|
|
7192
7189
|
user: ve.value,
|
|
7193
7190
|
"onUpdate:user": t[8] ||= (e) => ve.value = e,
|
|
7194
|
-
required:
|
|
7191
|
+
required: Te.value,
|
|
7195
7192
|
"id-input": ""
|
|
7196
7193
|
}, null, 8, ["user", "required"]),
|
|
7197
|
-
|
|
7198
|
-
xe.value ? (H(), N(
|
|
7194
|
+
Ee.value ? (H(), F("p", hc, K(Ee.value), 1)) : P("", !0),
|
|
7195
|
+
xe.value ? (H(), N(kn, {
|
|
7199
7196
|
key: 1,
|
|
7200
7197
|
type: "error",
|
|
7201
7198
|
variant: "tonal",
|
|
@@ -7206,7 +7203,7 @@ var Po = {
|
|
|
7206
7203
|
default: Y(() => [L(K(xe.value), 1)]),
|
|
7207
7204
|
_: 1
|
|
7208
7205
|
})) : P("", !0),
|
|
7209
|
-
be.value.length > 0 ? (H(), N(
|
|
7206
|
+
be.value.length > 0 ? (H(), N(kn, {
|
|
7210
7207
|
key: 2,
|
|
7211
7208
|
type: "warning",
|
|
7212
7209
|
variant: "tonal",
|
|
@@ -7217,22 +7214,22 @@ var Po = {
|
|
|
7217
7214
|
default: Y(() => [L(K(q(s)("common.userSystem.create.notAuthoritative", { systems: be.value.join(", ") })), 1)]),
|
|
7218
7215
|
_: 1
|
|
7219
7216
|
})) : P("", !0),
|
|
7220
|
-
I("p",
|
|
7217
|
+
I("p", gc, K(q(s)("common.userSystem.create.note")), 1),
|
|
7221
7218
|
I("p", null, K(q(s)("common.userSystem.create.willBeDisabled")), 1)
|
|
7222
7219
|
]),
|
|
7223
7220
|
_: 1
|
|
7224
7221
|
}),
|
|
7225
|
-
R(
|
|
7222
|
+
R(Mn, null, {
|
|
7226
7223
|
default: Y(() => [
|
|
7227
7224
|
R(i, { onClick: t[9] ||= X((e) => ge.value = !1, ["stop"]) }, {
|
|
7228
7225
|
default: Y(() => [L(K(q(s)("common.button.cancel")), 1)]),
|
|
7229
7226
|
_: 1
|
|
7230
7227
|
}),
|
|
7231
|
-
R(
|
|
7228
|
+
R(On),
|
|
7232
7229
|
R(r, {
|
|
7233
7230
|
loading: ye.value,
|
|
7234
7231
|
"data-cy": "create-anywhere-confirm",
|
|
7235
|
-
onClick: X(
|
|
7232
|
+
onClick: X(we, ["stop"])
|
|
7236
7233
|
}, {
|
|
7237
7234
|
default: Y(() => [L(K(q(s)("common.button.confirm")), 1)]),
|
|
7238
7235
|
_: 1
|
|
@@ -7250,6 +7247,6 @@ var Po = {
|
|
|
7250
7247
|
}
|
|
7251
7248
|
});
|
|
7252
7249
|
//#endregion
|
|
7253
|
-
export {
|
|
7250
|
+
export { jo as AAnzuUserDatatable, _o as AAnzuUserFilter, Ro as AAnzuUserForm, Lo as AAnzuUserRoleAutocomplete, _r as ADatatableOrdering, wr as ADatatablePagination, Et as AFilterBooleanSelect, pe as AFilterDatetimePicker, Ne as AFilterInteger, lt as AFilterRemoteAutocomplete, St as AFilterRemoteAutocompleteWithMinimal, Be as AFilterString, Qe as AFilterTimeInterval, Vt as AFilterValueObjectOptionsSelect, Re as AFilterWrapper, mr as AFilterWrapperSidebar, We as AFilterWrapperSubjectSelect, zt as AFormRemoteAutocomplete, Ft as AFormRemoteAutocompleteWithCached, qi as AListEditor, mi as ALogDetailView, Qr as ALogListView, yo as ANZU_USER_ENDPOINT, vo as ANZU_USER_ENTITY, ja as ANestedSortableListEditor, Ga as APermissionEditor, fo as APermissionGroupDatatable, po as APermissionGroupDetail, to as APermissionGroupFilter, ho as APermissionGroupManage, go as APermissionGroupRemoteAutocomplete, $e as ASortableListEditor, Di as ASubjectSelect, Ht as AUnsavedConfirmDialog, Ws as AUserBulkActionDialog, Ho as AUserCopyPermissionsDialog, Qo as AUserCreateInSystemButton, No as AUserEnabledSwitch, $o as AUserManageButton, Io as AUserMetadataForm, ec as AUserMetadataRepairDialog, ys as AUserOtherSystemsTable, _c as AUserSystemOverview, vs as AUserSystemPanel, ls as AUserSystemStatusChip, Ps as AUserTabsShell, xs as BulkAction, Ss as BulkOutcome, bs as CrossSystemPhase, Br as DEFAULT_LOG_PATHS, Xt as DatatablePaginationKey, Ce as FilterConfigKey, g as FilterDataKey, p as FilterInnerConfigKey, de as FilterInnerDataKey, Ct as FiltersSelected, Mr as LOG_ENTITY, n as ListEditorStateScopeKey, Lr as LogType, Rr as LogTypeDefault, Ns as OTHER_SYSTEMS_TAB, Ia as PERMISSION_CONFIG_ENDPOINT, Fa as PERMISSION_CONFIG_ENTITY, qa as PERMISSION_GROUP_ENDPOINT, Ka as PERMISSION_GROUP_ENTITY, ye as SharedReorderRegistryKey, _t as TimeIntervalSpecialOptions, ws as USER_METADATA_FIELDS, us as USER_PROBE_ENTITY, jt as UserAdminConfigLayoutType, D as UserAdminConfigLayoutTypeDefault, je as UserAdminConfigType, ke as UserAdminConfigTypeDefault, ns as UserSystemAccess, es as UserSystemLoad, ts as UserSystemPresence, ds as UserSystemRefreshHookKey, rs as UserSystemState, To as anzuUserFilterStorageKey, Zr as applyLogTypeVisibility, Le as buildFilterHash, os as classifyProbeStatus, As as classifyWriteStatus, jr as createDatatableColumnsConfig, qt as createFilter, tn as createFilterStore, ut as createListEditorStateScope, Ke as defaultApiErrorLogger, Uo as defineUserSystemDescriptor, is as emptyUserSystemAxes, Ds as findMetadataDifferences, $r as formatJson, Xe as generateListQuery, cs as isActionable, ss as isAuthoritativelyAbsent, nc as isEmailTerm, zr as isLogType, Ue as isRouterSafeHash, he as nextListEditorTempId, oo as permissionGroupFilterStorageKey, Os as pickPrefillSource, fs as probeStatusFromError, se as provideListEditorStateScope, Ts as readMetadataField, nn as renumberPositions, qo as resolveCreateEndpoint, Ko as resolveEnabledWrite, Go as resolveMetadataWrite, Wo as resolveProbeEndpoint, as as resolveUserSystemState, Ye as setApiErrorLogger, a as sortByPosition, Te as sortByPositionDeep, ks as systemsNeedingWrite, So as useAnzuUserActions, bo as useAnzuUserApi, Do as useAnzuUserEmailLookupFilter, Eo as useAnzuUserListFilter, xo as useAnzuUserOneStore, bt as useApiCommand, Rt as useApiFetchByIds, at as useApiFetchItems, tt as useApiFetchList, Er as useApiFetchListBatch, At as useApiQueryBuilder, Pt as useApiRequest, $a as useCachedPermissionGroups, Pr as useFetchLog, Nr as useFetchLogList, xe as useFilterHelpers, Ma as useGuardedDelete, Or as useJobApi, Na as useListEditor, ie as useListEditorController, le as useListEditorStateEntry, Ir as useLogDetailActions, Xr as useLogFilter, Fr as useLogListActions, Vr as useLogType, ee as useNestedListEditor, _ as useNestedListEditorController, fe as useNestedListEditorStateEntry, Pa as useNestedUnsavedKeys, Wt as usePagination, eo as usePermissionActions, Ba as usePermissionConfigActions, La as usePermissionConfigApi, Ra as usePermissionConfigStore, ro as usePermissionGroupActions, Ja as usePermissionGroupApi, co as usePermissionGroupInnerFilter, so as usePermissionGroupListFilter, no as usePermissionGroupOneStore, mo as usePermissionGroupValidation, hi as useSubjectSelect, mt as useUnsavedChangesGuard, ue as useUnsavedSection, ne as useUserAdminConfigApi, Je as useUserAdminConfigFactory, rc as useUserCrossSystemSearch, Cs as useUserCrossSystemStore, Ms as useUserCrossSystemWrites, Po as useUserMetadataValidation, ps as useUserSystemProbe, Es as writeMetadataField };
|
|
7254
7251
|
|
|
7255
7252
|
//# sourceMappingURL=labs.js.map
|