@anzusystems/common-admin 1.47.0-beta.353 → 1.47.0-beta.355
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CjOiytrn.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-lX9utxPk.mjs} +51 -52
- package/dist/{AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CjOiytrn.mjs.map → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-lX9utxPk.mjs.map} +1 -1
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.d.ts +6 -2
- package/dist/common-admin.js +2644 -2629
- package/dist/common-admin.js.map +1 -1
- package/dist/labs.d.ts +1 -0
- package/dist/labs.js +110 -107
- package/dist/labs.js.map +1 -1
- package/package.json +7 -7
package/dist/labs.d.ts
CHANGED
|
@@ -445,6 +445,7 @@ export declare const ASubjectSelect: <TItem>(__VLS_props: NonNullable<Awaited<ty
|
|
|
445
445
|
modelValue?: boolean | undefined;
|
|
446
446
|
dialogTitleT?: string;
|
|
447
447
|
paginationMode?: "standard" | "more";
|
|
448
|
+
autoOpen?: boolean;
|
|
448
449
|
} & Partial<{}>> & PublicProps;
|
|
449
450
|
expose(exposed: ShallowUnwrapRef< {
|
|
450
451
|
open: () => void;
|
package/dist/labs.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { bQ as Ve, bR as ke, aE as Fe, aF as xe, d as F, bS as
|
|
2
|
-
import { aD as so, c4 as lo, c5 as no, az as ro, aA as io, aC as uo, aB as co, aH as mo, ba as fo, ax as vo, ay as po, ca as go, cb as bo, c8 as yo, c9 as ho, ag as Co, af as _o, c6 as Ao, c7 as wo, cc as ko } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { defineComponent as Z, inject as H, computed as S, nextTick as me, ref as O, watch as G, resolveComponent as pe, createElementBlock as V, openBlock as y, Fragment as X, createBlock as B, createCommentVNode as q, withModifiers as R, unref as f, withCtx as u, createVNode as m, mergeProps as ot, renderSlot as E, createTextVNode as U, toDisplayString as P, normalizeClass as be, renderList as oe, createElementVNode as I, mergeModels as ge, useModel as we, provide as $e, resolveDynamicComponent as
|
|
1
|
+
import { bQ as Ve, bR as ke, aE as Fe, aF as xe, d as F, bS as ft, H as Be, bT as vt, m as Oe, p as Ae, ah as fe, h as Q, bU as he, bV as Ce, n as re, l as Re, o as Ie, a5 as De, at as Pe, _ as pt, A as gt, i as Y, bW as bt, B as yt, D as ht, bX as Ct, aX as _t, bY as At, bZ as Ue, j as K, k as wt, ai as Le, aj as Ne, ak as ze, al as Me, ae as ve, aZ as qe, a8 as He, a9 as Je, aa as Ke, ab as We, am as Qe, an as Ye, ac as Ge, ad as Xe, b_ as Ze, b$ as et, c0 as tt, c1 as kt, ar as at, c2 as _e, ao as Ft, ap as xt, aP as Pt, F as Tt, a6 as St, b1 as Bt, aq as It, a1 as Dt, c3 as $t, q as jt, x as Et, aG as Vt } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-lX9utxPk.mjs";
|
|
2
|
+
import { aD as so, c4 as lo, c5 as no, az as ro, aA as io, aC as uo, aB as co, aH as mo, ba as fo, ax as vo, ay as po, ca as go, cb as bo, c8 as yo, c9 as ho, ag as Co, af as _o, c6 as Ao, c7 as wo, cc as ko } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-lX9utxPk.mjs";
|
|
3
|
+
import { defineComponent as Z, inject as H, computed as S, nextTick as me, ref as O, watch as G, resolveComponent as pe, createElementBlock as V, openBlock as y, Fragment as X, createBlock as B, createCommentVNode as q, withModifiers as R, unref as f, withCtx as u, createVNode as m, mergeProps as ot, renderSlot as E, createTextVNode as U, toDisplayString as P, normalizeClass as be, renderList as oe, createElementVNode as I, mergeModels as ge, useModel as we, provide as $e, resolveDynamicComponent as Ot, withDirectives as st, vShow as lt, onMounted as nt, toRaw as je } from "vue";
|
|
4
4
|
import { useI18n as ae } from "vue-i18n";
|
|
5
|
-
import { VCard as
|
|
6
|
-
import { VDialog as
|
|
7
|
-
import { VSpacer as
|
|
8
|
-
import { VListItem as
|
|
5
|
+
import { VCard as rt, VCardText as Rt, VCardActions as Ut } from "vuetify/components/VCard";
|
|
6
|
+
import { VDialog as it } from "vuetify/components/VDialog";
|
|
7
|
+
import { VSpacer as ut, VRow as ie, VCol as te } from "vuetify/components/VGrid";
|
|
8
|
+
import { VListItem as ct, VList as Lt, VListItemTitle as Nt } from "vuetify/components/VList";
|
|
9
9
|
import { VSelect as zt } from "vuetify/components/VSelect";
|
|
10
10
|
import { VTextarea as Mt } from "vuetify/components/VTextarea";
|
|
11
11
|
import { VBtn as W } from "vuetify/components/VBtn";
|
|
12
12
|
import { VIcon as Te } from "vuetify/components/VIcon";
|
|
13
|
-
import { VTooltip as
|
|
13
|
+
import { VTooltip as dt } from "vuetify/components/VTooltip";
|
|
14
14
|
import { VChip as Ee } from "vuetify/components/VChip";
|
|
15
|
-
import
|
|
15
|
+
import mt from "axios";
|
|
16
16
|
import { VForm as qt } from "vuetify/components/VForm";
|
|
17
17
|
import { VMenu as Ht } from "vuetify/components/VMenu";
|
|
18
18
|
import { useThrottleFn as ue, useDebounceFn as Jt } from "@vueuse/core";
|
|
@@ -46,19 +46,19 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
46
46
|
t("change");
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
}), { timeIntervalOptions: d, getTimeIntervalOption: b } =
|
|
49
|
+
}), { timeIntervalOptions: d, getTimeIntervalOption: b } = ft(l.allowed), v = O(null), h = O(!1), r = O({
|
|
50
50
|
from: null,
|
|
51
51
|
until: Be()
|
|
52
|
-
}), e = O(!1), { v$: w } =
|
|
52
|
+
}), e = O(!1), { v$: w } = vt(r), C = S(() => n.fields[l.nameFrom]), { t: s } = ae(), D = S(() => C.value.titleT ? s(C.value.titleT) : void 0), { clearOne: L } = Pe(), { showValidationError: k } = Oe(), A = () => {
|
|
53
53
|
e.value = !1, v.value = null, M();
|
|
54
54
|
}, x = () => {
|
|
55
55
|
if (w.value.$touch(), w.value.$invalid) {
|
|
56
56
|
k();
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
|
-
e.value = !0,
|
|
59
|
+
e.value = !0, h.value = !1, o[l.nameUntil] = r.value.until, c.value = r.value.from;
|
|
60
60
|
}, N = () => {
|
|
61
|
-
|
|
61
|
+
h.value = !1, v.value = null;
|
|
62
62
|
}, M = () => {
|
|
63
63
|
L(l.nameFrom, o, n), L(l.nameUntil, o, n), i.value.delete(l.nameFrom);
|
|
64
64
|
}, z = (_) => {
|
|
@@ -80,7 +80,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
80
80
|
}
|
|
81
81
|
T && i.value.set(l.nameFrom, [{ title: T.title, value: _ }]);
|
|
82
82
|
}, J = (_ = !1) => {
|
|
83
|
-
w.value.$reset(), _ && (r.value.from = null, r.value.until = Be()),
|
|
83
|
+
w.value.$reset(), _ && (r.value.from = null, r.value.until = Be()), h.value = !0;
|
|
84
84
|
};
|
|
85
85
|
G(
|
|
86
86
|
c,
|
|
@@ -140,20 +140,20 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
140
140
|
"onClick:clear": R(A, ["stop"])
|
|
141
141
|
}, {
|
|
142
142
|
item: u(({ props: $, item: ee }) => [
|
|
143
|
-
m(
|
|
143
|
+
m(ct, ot($, {
|
|
144
144
|
onClick: (ne) => se(ee)
|
|
145
145
|
}), null, 16, ["onClick"])
|
|
146
146
|
]),
|
|
147
147
|
_: 1
|
|
148
148
|
}, 8, ["modelValue", "label", "clearable", "data-cy", "items"])),
|
|
149
|
-
|
|
149
|
+
h.value ? (y(), B(it, {
|
|
150
150
|
key: 2,
|
|
151
151
|
"model-value": !0,
|
|
152
152
|
width: "auto",
|
|
153
153
|
"min-width": 360
|
|
154
154
|
}, {
|
|
155
155
|
default: u(() => [
|
|
156
|
-
m(
|
|
156
|
+
m(rt, null, {
|
|
157
157
|
default: u(() => [
|
|
158
158
|
m(Re, { onOnCancel: N }, {
|
|
159
159
|
default: u(() => [
|
|
@@ -194,7 +194,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
194
194
|
}),
|
|
195
195
|
m(Ut, null, {
|
|
196
196
|
default: u(() => [
|
|
197
|
-
m(
|
|
197
|
+
m(ut),
|
|
198
198
|
m(j, {
|
|
199
199
|
"data-cy": "button-cancel",
|
|
200
200
|
onClick: R(N, ["stop"])
|
|
@@ -225,7 +225,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
225
225
|
], 64);
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
}), Wa = /* @__PURE__ */
|
|
228
|
+
}), Wa = /* @__PURE__ */ pt(Yt, [["__scopeId", "data-v-622f5681"]]), Gt = /* @__PURE__ */ Z({
|
|
229
229
|
__name: "AFilterAdvancedButton",
|
|
230
230
|
props: {
|
|
231
231
|
tooltipT: { default: "common.button.advancedFilters" },
|
|
@@ -235,7 +235,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
235
235
|
emits: ["advancedFilter"],
|
|
236
236
|
setup(a, { emit: p }) {
|
|
237
237
|
const l = p, t = O(!1), g = (n) => {
|
|
238
|
-
|
|
238
|
+
gt(n), t.value = !t.value, l("advancedFilter");
|
|
239
239
|
}, { t: i } = ae();
|
|
240
240
|
return (n, o) => (y(), B(W, {
|
|
241
241
|
class: be(a.buttonClass),
|
|
@@ -247,7 +247,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
247
247
|
}, {
|
|
248
248
|
default: u(() => [
|
|
249
249
|
m(Te, { icon: "mdi-filter-variant" }),
|
|
250
|
-
m(
|
|
250
|
+
m(dt, {
|
|
251
251
|
activator: "parent",
|
|
252
252
|
location: "bottom"
|
|
253
253
|
}, {
|
|
@@ -271,29 +271,29 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
271
271
|
return v ? g(v) : b;
|
|
272
272
|
}, n = S(() => {
|
|
273
273
|
const b = Object.keys(p.fields);
|
|
274
|
-
return Array.from(t.value).map(([v,
|
|
274
|
+
return Array.from(t.value).map(([v, h]) => ({
|
|
275
275
|
name: v,
|
|
276
276
|
title: i(v),
|
|
277
|
-
options:
|
|
278
|
-
})).sort((v,
|
|
277
|
+
options: h
|
|
278
|
+
})).sort((v, h) => b.indexOf(v.name) - b.indexOf(h.name));
|
|
279
279
|
}), { clearOneFilterSelected: o, isClearable: c } = Pe(), d = (b, v) => {
|
|
280
280
|
o(b, v, l, p, t), p.touched = !0;
|
|
281
281
|
};
|
|
282
|
-
return (b, v) => (y(!0), V(X, null, oe(n.value, (
|
|
283
|
-
key:
|
|
282
|
+
return (b, v) => (y(!0), V(X, null, oe(n.value, (h) => (y(), V("div", {
|
|
283
|
+
key: h.name,
|
|
284
284
|
class: "a-selected-filters"
|
|
285
285
|
}, [
|
|
286
|
-
I("div", Xt, P(
|
|
287
|
-
(y(!0), V(X, null, oe(
|
|
286
|
+
I("div", Xt, P(h.title) + ": ", 1),
|
|
287
|
+
(y(!0), V(X, null, oe(h.options, (r) => (y(), V("div", {
|
|
288
288
|
key: r.value,
|
|
289
289
|
class: "a-selected-filters__chips"
|
|
290
290
|
}, [
|
|
291
|
-
f(c)(
|
|
291
|
+
f(c)(h.name, f(p)) ? (y(), B(Ee, {
|
|
292
292
|
key: 0,
|
|
293
293
|
closable: "",
|
|
294
294
|
size: "small",
|
|
295
295
|
class: "a-selected-filters__chip",
|
|
296
|
-
"onClick:close": R((e) => d(
|
|
296
|
+
"onClick:close": R((e) => d(h.name, r.value), ["stop"])
|
|
297
297
|
}, {
|
|
298
298
|
close: u(() => [
|
|
299
299
|
m(Te, {
|
|
@@ -352,7 +352,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
352
352
|
$e(Ve, b);
|
|
353
353
|
const v = O(/* @__PURE__ */ new Map());
|
|
354
354
|
$e(ke, v);
|
|
355
|
-
const
|
|
355
|
+
const h = () => {
|
|
356
356
|
b.value++, me(() => {
|
|
357
357
|
g("submit");
|
|
358
358
|
});
|
|
@@ -360,7 +360,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
360
360
|
me(() => {
|
|
361
361
|
b.value++, g("bookmarkLoadAfter");
|
|
362
362
|
});
|
|
363
|
-
},
|
|
363
|
+
}, C = () => {
|
|
364
364
|
r(c, o), e(c, o, v), me(() => {
|
|
365
365
|
b.value++, g("reset");
|
|
366
366
|
});
|
|
@@ -368,11 +368,11 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
368
368
|
n.value = !n.value;
|
|
369
369
|
}, D = S(() => o.touched), L = S(() => Object.entries(o.fields).filter(([, k]) => !k.render.skip).map(([k]) => k));
|
|
370
370
|
return t.alwaysVisible && (n.value = !0), p({
|
|
371
|
-
submit:
|
|
372
|
-
reset:
|
|
371
|
+
submit: h,
|
|
372
|
+
reset: C
|
|
373
373
|
}), (k, A) => (y(), B(qt, {
|
|
374
374
|
name: a.formName,
|
|
375
|
-
onSubmit: R(
|
|
375
|
+
onSubmit: R(h, ["prevent"])
|
|
376
376
|
}, {
|
|
377
377
|
default: u(() => [
|
|
378
378
|
a.enableTop ? (y(), B(ie, {
|
|
@@ -395,7 +395,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
395
395
|
default: u(() => [
|
|
396
396
|
E(k.$slots, "bookmarks", {}, () => [
|
|
397
397
|
I("div", ea, [
|
|
398
|
-
d.value.system && d.value.subject && a.userId && f(Y)(a.client) ? (y(), B(
|
|
398
|
+
d.value.system && d.value.subject && a.userId && f(Y)(a.client) ? (y(), B(bt, {
|
|
399
399
|
key: 0,
|
|
400
400
|
"datatable-hidden-columns": i.value,
|
|
401
401
|
"onUpdate:datatableHiddenColumns": A[0] || (A[0] = (x) => i.value = x),
|
|
@@ -448,9 +448,9 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
448
448
|
}, {
|
|
449
449
|
default: u(() => [
|
|
450
450
|
E(k.$slots, "buttons", {}, () => [
|
|
451
|
-
m(
|
|
452
|
-
m(
|
|
453
|
-
d.value.system && d.value.subject && a.userId && f(Y)(a.client) ? (y(), B(
|
|
451
|
+
m(yt, { touched: D.value }, null, 8, ["touched"]),
|
|
452
|
+
m(ht, { onReset: C }),
|
|
453
|
+
d.value.system && d.value.subject && a.userId && f(Y)(a.client) ? (y(), B(Ct, {
|
|
454
454
|
key: 0,
|
|
455
455
|
client: a.client,
|
|
456
456
|
user: a.userId,
|
|
@@ -466,7 +466,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
466
466
|
_: 3
|
|
467
467
|
})),
|
|
468
468
|
a.hideMore ? q("", !0) : (y(), V("div", oa, [
|
|
469
|
-
(y(), B(
|
|
469
|
+
(y(), B(Ot(a.alwaysVisible ? "div" : "VSlideYTransition"), null, {
|
|
470
470
|
default: u(() => [
|
|
471
471
|
st(I("div", {
|
|
472
472
|
class: be({ "mt-6 pa-4 system-border-a": !a.alwaysVisible })
|
|
@@ -483,10 +483,10 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
483
483
|
xl: f(o).fields[x].render.xl || 2
|
|
484
484
|
}, {
|
|
485
485
|
default: u(() => [
|
|
486
|
-
E(k.$slots, f(
|
|
486
|
+
E(k.$slots, f(_t)(x), {
|
|
487
487
|
itemConfig: f(o).fields[x]
|
|
488
488
|
}, () => [
|
|
489
|
-
m(
|
|
489
|
+
m(At, { name: x }, null, 8, ["name"])
|
|
490
490
|
])
|
|
491
491
|
]),
|
|
492
492
|
_: 2
|
|
@@ -534,14 +534,14 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
534
534
|
{
|
|
535
535
|
id: 3,
|
|
536
536
|
titleT: "common.system.datatable.ordering.mostRelevant",
|
|
537
|
-
sortBy: { key:
|
|
537
|
+
sortBy: { key: wt, order: K.Desc }
|
|
538
538
|
},
|
|
539
539
|
{ id: 1, titleT: "common.system.datatable.ordering.mostRecent", sortBy: { key: "createdAt", order: K.Desc } },
|
|
540
540
|
{ id: 2, titleT: "common.system.datatable.ordering.oldest", sortBy: { key: "createdAt", order: K.Asc } }
|
|
541
541
|
], b = S(() => {
|
|
542
542
|
const e = v.value.find((w) => w.id === g.value);
|
|
543
543
|
return e ? n(e.titleT) : "";
|
|
544
|
-
}), v = S(() => l.customOptions ? l.customOptions : l.variant === "most-relevant" ? d : l.variant === "id" ? c : o),
|
|
544
|
+
}), v = S(() => l.customOptions ? l.customOptions : l.variant === "most-relevant" ? d : l.variant === "id" ? c : o), h = (e) => {
|
|
545
545
|
g.value = e.id;
|
|
546
546
|
}, r = (e) => {
|
|
547
547
|
e.sortBy || (i.value = { ...i.value, sortBy: null, descending: !0 }, t("sortByChange", e)), i.value.sortBy = e.sortBy, t("sortByChange", e);
|
|
@@ -550,13 +550,13 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
550
550
|
g,
|
|
551
551
|
(e, w) => {
|
|
552
552
|
if (e === w) return;
|
|
553
|
-
const
|
|
554
|
-
if (!F(
|
|
553
|
+
const C = v.value.find((s) => s.id === e);
|
|
554
|
+
if (!F(C)) {
|
|
555
555
|
if (F(l.paginationUpdateCustomCb)) {
|
|
556
|
-
r(
|
|
556
|
+
r(C);
|
|
557
557
|
return;
|
|
558
558
|
}
|
|
559
|
-
l.paginationUpdateCustomCb(
|
|
559
|
+
l.paginationUpdateCustomCb(C, i);
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
), G(
|
|
@@ -564,8 +564,8 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
564
564
|
(e, w) => {
|
|
565
565
|
if (e.sortBy?.key === w?.sortBy?.key && e.sortBy?.order === w?.sortBy?.order)
|
|
566
566
|
return;
|
|
567
|
-
const
|
|
568
|
-
F(
|
|
567
|
+
const C = v.value.find((s) => e.sortBy?.key === s.sortBy?.key && e.sortBy?.order === s.sortBy?.order);
|
|
568
|
+
F(C) || (g.value = C.id);
|
|
569
569
|
},
|
|
570
570
|
{ immediate: !0 }
|
|
571
571
|
), (e, w) => (y(), V("div", sa, [
|
|
@@ -589,16 +589,16 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
589
589
|
class: "pa-0"
|
|
590
590
|
}, {
|
|
591
591
|
default: u(() => [
|
|
592
|
-
(y(!0), V(X, null, oe(v.value, (
|
|
593
|
-
key:
|
|
594
|
-
onClick: (s) => C
|
|
592
|
+
(y(!0), V(X, null, oe(v.value, (C) => (y(), B(ct, {
|
|
593
|
+
key: C.id,
|
|
594
|
+
onClick: (s) => h(C)
|
|
595
595
|
}, {
|
|
596
596
|
default: u(() => [
|
|
597
597
|
m(Nt, {
|
|
598
|
-
class: be({ "font-weight-bold":
|
|
598
|
+
class: be({ "font-weight-bold": C.id === g.value })
|
|
599
599
|
}, {
|
|
600
600
|
default: u(() => [
|
|
601
|
-
U(P(f(n)(
|
|
601
|
+
U(P(f(n)(C.titleT)), 1)
|
|
602
602
|
]),
|
|
603
603
|
_: 2
|
|
604
604
|
}, 1032, ["class"])
|
|
@@ -633,16 +633,16 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
633
633
|
const { t: g } = ae(), i = S(() => Math.ceil(t.value.totalCount / t.value.rowsPerPage)), n = S(() => t.value.page * t.value.rowsPerPage - t.value.rowsPerPage + 1), o = S(() => t.value.page * t.value.rowsPerPage - t.value.rowsPerPage + t.value.currentViewCount), c = S(() => t.value.page === 1), d = S(() => !Q(t.value.hasNextPage) || t.value.page === i.value), b = S(() => Q(t.value.hasNextPage) && t.value.page === i.value || t.value.hasNextPage === !1), v = S(() => Q(t.value.hasNextPage) ? t.value.totalCount : t.value.hasNextPage ? o.value + 1 + "+" : o.value);
|
|
634
634
|
G(
|
|
635
635
|
() => t.value.rowsPerPage,
|
|
636
|
-
(
|
|
637
|
-
|
|
636
|
+
(C, s) => {
|
|
637
|
+
C !== s && (t.value.page = 1, l("change"));
|
|
638
638
|
}
|
|
639
639
|
), G(
|
|
640
640
|
() => t.value.page,
|
|
641
|
-
(
|
|
642
|
-
|
|
641
|
+
(C, s) => {
|
|
642
|
+
C !== s && l("change");
|
|
643
643
|
}
|
|
644
644
|
);
|
|
645
|
-
const
|
|
645
|
+
const h = ue(() => {
|
|
646
646
|
t.value.page = 1;
|
|
647
647
|
}, 300), r = ue(() => {
|
|
648
648
|
t.value.page = i.value;
|
|
@@ -651,7 +651,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
651
651
|
}, 300), w = ue(() => {
|
|
652
652
|
t.value.page = t.value.page + 1;
|
|
653
653
|
}, 300);
|
|
654
|
-
return (
|
|
654
|
+
return (C, s) => (y(), V("div", na, [
|
|
655
655
|
a.hideRecordsPerPage ? q("", !0) : (y(), V("div", ra, [
|
|
656
656
|
U(P(f(g)("common.system.datatable.itemsPerPage")) + ": ", 1),
|
|
657
657
|
m(Kt, {
|
|
@@ -687,7 +687,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
687
687
|
icon: "mdi-page-first",
|
|
688
688
|
size: "small",
|
|
689
689
|
variant: "text",
|
|
690
|
-
onClick: R(f(
|
|
690
|
+
onClick: R(f(h), ["stop"])
|
|
691
691
|
}, null, 8, ["disabled", "onClick"]),
|
|
692
692
|
m(W, {
|
|
693
693
|
disabled: c.value,
|
|
@@ -719,17 +719,17 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
719
719
|
]));
|
|
720
720
|
}
|
|
721
721
|
}), fa = (a, p, l = "id") => {
|
|
722
|
-
const { querySetLimit: t, querySetOffset: g, querySetOrder: i, queryBuild: n, queryAddFilter: o, queryAdd: c } =
|
|
722
|
+
const { querySetLimit: t, querySetOffset: g, querySetOrder: i, queryBuild: n, queryAddFilter: o, queryAdd: c } = kt(), d = a.length;
|
|
723
723
|
return t(d), g(1, d), i(l, !1), p ? c(l, a.join(",")) : o("in", l, a.join(",")), n();
|
|
724
724
|
}, Ga = (a, p, l, t = void 0, g = void 0, i = {}, n = !1, o = "id") => {
|
|
725
725
|
let c = null;
|
|
726
726
|
return {
|
|
727
|
-
executeFetch: async (v,
|
|
727
|
+
executeFetch: async (v, h = void 0, r = void 0) => {
|
|
728
728
|
c = new AbortController();
|
|
729
729
|
try {
|
|
730
|
-
const e = Y(r) ? r : g, w = Y(
|
|
730
|
+
const e = Y(r) ? r : g, w = Y(h) ? h : t;
|
|
731
731
|
if (F(w)) throw new Error("Url template is undefined");
|
|
732
|
-
const
|
|
732
|
+
const C = (F(e) ? w : Le(w, e)) + fa(v, n, o), s = await a().get(C, {
|
|
733
733
|
...i,
|
|
734
734
|
signal: c.signal
|
|
735
735
|
});
|
|
@@ -743,7 +743,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
743
743
|
} catch (e) {
|
|
744
744
|
if (e instanceof DOMException && e.name === "AbortError")
|
|
745
745
|
return [];
|
|
746
|
-
throw qe(e) ? e : He(e) ? new Je(e, e.config?.url) : Ke(e) ? new We(e, p, l, e) : Qe(e) ? new Ye(e, p, l, e) : Ge(e) ? new Xe(e, e) : Ze(e) ? new et(e) :
|
|
746
|
+
throw qe(e) ? e : He(e) ? new Je(e, e.config?.url) : Ke(e) ? new We(e, p, l, e) : Qe(e) ? new Ye(e, p, l, e) : Ge(e) ? new Xe(e, e) : Ze(e) ? new et(e) : mt.isAxiosError(e) ? (console.error("Axios error: " + t, e.cause), new tt(e)) : (console.error("AnzuFatalError: ", e), new ve(e));
|
|
747
747
|
} finally {
|
|
748
748
|
c = null;
|
|
749
749
|
}
|
|
@@ -755,10 +755,10 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
755
755
|
}, Xa = (a, p, l, t = void 0, g = void 0, i = {}) => {
|
|
756
756
|
let n = null;
|
|
757
757
|
return {
|
|
758
|
-
executeFetch: async (d, b, v = void 0,
|
|
758
|
+
executeFetch: async (d, b, v = void 0, h = void 0, r = "id", e = !0, w = 100, C = !1) => {
|
|
759
759
|
n = new AbortController();
|
|
760
760
|
try {
|
|
761
|
-
const s = b.general.elastic ||
|
|
761
|
+
const s = b.general.elastic || C ? "/search" : "", D = Y(h) ? h : g, L = Y(v) ? v : t;
|
|
762
762
|
if (F(L)) throw new Error("Url template is undefined");
|
|
763
763
|
const { pagination: k } = at(r, e ? K.Desc : K.Asc, {
|
|
764
764
|
rowsPerPage: w
|
|
@@ -770,7 +770,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
770
770
|
throw new ze(N.status);
|
|
771
771
|
if (N.data) {
|
|
772
772
|
const M = N.data;
|
|
773
|
-
if (x.push(...M.data),
|
|
773
|
+
if (x.push(...M.data), Ft(M))
|
|
774
774
|
for (k.value.hasNextPage = M.hasNextPage; k.value.hasNextPage; ) {
|
|
775
775
|
k.value.page++;
|
|
776
776
|
const J = (await a().get(A + _e(k, d, b), {
|
|
@@ -779,7 +779,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
779
779
|
})).data;
|
|
780
780
|
x.push(...J.data), k.value.hasNextPage = J.hasNextPage;
|
|
781
781
|
}
|
|
782
|
-
else if (
|
|
782
|
+
else if (xt(M)) {
|
|
783
783
|
if (k.value.totalCount = M.totalCount, k.value.totalCount <= k.value.rowsPerPage)
|
|
784
784
|
return x;
|
|
785
785
|
const z = [], J = Math.ceil(k.value.totalCount / k.value.rowsPerPage);
|
|
@@ -804,7 +804,7 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
804
804
|
} catch (s) {
|
|
805
805
|
if (s instanceof DOMException && s.name === "AbortError")
|
|
806
806
|
return [];
|
|
807
|
-
throw qe(s) ? s : He(s) ? new Je(s, s.config?.url) : Ke(s) ? new We(s, p, l, s) : Qe(s) ? new Ye(s, p, l, s) : Ge(s) ? new Xe(s, s) : Ze(s) ? new et(s) :
|
|
807
|
+
throw qe(s) ? s : He(s) ? new Je(s, s.config?.url) : Ke(s) ? new We(s, p, l, s) : Qe(s) ? new Ye(s, p, l, s) : Ge(s) ? new Xe(s, s) : Ze(s) ? new et(s) : mt.isAxiosError(s) ? (console.error("Axios error: " + t, s.cause), new tt(s)) : (console.error("AnzuFatalError: ", s), new ve(s));
|
|
808
808
|
} finally {
|
|
809
809
|
n = null;
|
|
810
810
|
}
|
|
@@ -816,13 +816,13 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
816
816
|
}, ce = "/adm/v1/job", de = "job";
|
|
817
817
|
function Za(a, p) {
|
|
818
818
|
return {
|
|
819
|
-
useFetchJobList: () =>
|
|
820
|
-
fetchJob: (n) =>
|
|
819
|
+
useFetchJobList: () => St(a, p, de, ce),
|
|
820
|
+
fetchJob: (n) => Tt(a, ce + "/:id", { id: n }, p, de),
|
|
821
821
|
createJob: (n) => {
|
|
822
|
-
const o =
|
|
823
|
-
return
|
|
822
|
+
const o = Bt(n._resourceName).slice(4).replace("-kind-", "-kind/");
|
|
823
|
+
return It(a, n, ce + "/:type", { type: o }, p, de);
|
|
824
824
|
},
|
|
825
|
-
deleteJob: (n) =>
|
|
825
|
+
deleteJob: (n) => Pt(a, ce + "/:id", { id: n }, p, de)
|
|
826
826
|
};
|
|
827
827
|
}
|
|
828
828
|
const va = {
|
|
@@ -837,12 +837,12 @@ const va = {
|
|
|
837
837
|
showExpand: !1
|
|
838
838
|
};
|
|
839
839
|
function ga(a, p, l, t, g = {}) {
|
|
840
|
-
const i = { ...pa, ...g }, n = i.customI18n ??
|
|
840
|
+
const i = { ...pa, ...g }, n = i.customI18n ?? Dt, { t: o } = n.global || n;
|
|
841
841
|
let c;
|
|
842
|
-
|
|
842
|
+
Et(i.storeColumnsLocalStorage) ? c = i.storeColumnsLocalStorage : fe(i.storeColumnsLocalStorage) && i.storeColumnsLocalStorage === !0 && (c = "table_" + l + "_" + t);
|
|
843
843
|
const d = a.map((r) => {
|
|
844
844
|
const e = { ...va, ...r };
|
|
845
|
-
return F(e.title) && (F(e.title) &&
|
|
845
|
+
return F(e.title) && (F(e.title) && $t.includes(e.key) ? e.title = o("common.model.tracking." + e.key) : F(e.title) && l && t ? e.title = o(l + "." + t + ".model." + e.key) : e.title = ""), e;
|
|
846
846
|
}), b = S(() => {
|
|
847
847
|
const r = [];
|
|
848
848
|
return i.showExpand && r.push({ key: "data-table-expand", sortable: !1 }), d.forEach((e) => {
|
|
@@ -853,14 +853,14 @@ function ga(a, p, l, t, g = {}) {
|
|
|
853
853
|
const r = localStorage.getItem(c);
|
|
854
854
|
if (!r) return;
|
|
855
855
|
const e = JSON.parse(r);
|
|
856
|
-
|
|
857
|
-
},
|
|
856
|
+
jt(e) && Ae(e.hidden) && (p.value = e.hidden);
|
|
857
|
+
}, h = (r) => {
|
|
858
858
|
!c || !localStorage || localStorage.setItem(c, JSON.stringify({ hidden: r }));
|
|
859
859
|
};
|
|
860
|
-
return
|
|
860
|
+
return nt(() => {
|
|
861
861
|
v();
|
|
862
862
|
}), G(p, (r) => {
|
|
863
|
-
|
|
863
|
+
h(r);
|
|
864
864
|
}), {
|
|
865
865
|
columnsAll: d,
|
|
866
866
|
columnsVisible: b,
|
|
@@ -868,10 +868,10 @@ function ga(a, p, l, t, g = {}) {
|
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
870
|
function eo(a, p, l, t, g, i, n, o = null, c = void 0, d = void 0, b = !1, v = !1) {
|
|
871
|
-
const
|
|
871
|
+
const h = O(!1), r = O([]), e = O([]), w = O(!1), { pagination: C, setSortBy: s, incrementPage: D } = at(
|
|
872
872
|
Q(o) ? null : o.key,
|
|
873
873
|
o?.order
|
|
874
|
-
), { resetFilter: L, submitFilter: k } =
|
|
874
|
+
), { resetFilter: L, submitFilter: k } = Vt(i, n, {
|
|
875
875
|
storeFiltersLocalStorage: !1,
|
|
876
876
|
populateUrlParams: !1
|
|
877
877
|
}), { showErrorsDefault: A } = Oe(), { columnsVisible: x, columnsAll: N, columnsHidden: M } = ga(
|
|
@@ -888,7 +888,7 @@ function eo(a, p, l, t, g, i, n, o = null, c = void 0, d = void 0, b = !1, v = !
|
|
|
888
888
|
w.value = !0, D();
|
|
889
889
|
try {
|
|
890
890
|
const $ = await g(
|
|
891
|
-
|
|
891
|
+
C,
|
|
892
892
|
i,
|
|
893
893
|
n,
|
|
894
894
|
c,
|
|
@@ -907,7 +907,7 @@ function eo(a, p, l, t, g, i, n, o = null, c = void 0, d = void 0, b = !1, v = !
|
|
|
907
907
|
w.value = !0;
|
|
908
908
|
try {
|
|
909
909
|
r.value = await g(
|
|
910
|
-
|
|
910
|
+
C,
|
|
911
911
|
i,
|
|
912
912
|
n,
|
|
913
913
|
c,
|
|
@@ -925,11 +925,11 @@ function eo(a, p, l, t, g, i, n, o = null, c = void 0, d = void 0, b = !1, v = !
|
|
|
925
925
|
return {
|
|
926
926
|
items: r,
|
|
927
927
|
selected: e,
|
|
928
|
-
pagination:
|
|
928
|
+
pagination: C,
|
|
929
929
|
columnsVisible: x,
|
|
930
930
|
columnsHidden: M,
|
|
931
931
|
columnsAll: N,
|
|
932
|
-
filterTouched:
|
|
932
|
+
filterTouched: h,
|
|
933
933
|
loading: w,
|
|
934
934
|
onRowClick: ($) => {
|
|
935
935
|
const ee = $.target;
|
|
@@ -946,8 +946,8 @@ function eo(a, p, l, t, g, i, n, o = null, c = void 0, d = void 0, b = !1, v = !
|
|
|
946
946
|
onOpen: z,
|
|
947
947
|
sortByChange: J,
|
|
948
948
|
getList: j,
|
|
949
|
-
resetFilter: () => L(
|
|
950
|
-
submitFilter: () => k(
|
|
949
|
+
resetFilter: () => L(C, j),
|
|
950
|
+
submitFilter: () => k(C, j)
|
|
951
951
|
};
|
|
952
952
|
}
|
|
953
953
|
const ba = { class: "d-flex flex-column w-100 px-1 align-center" }, ya = { class: "d-flex justify-space-between w-100 align-center" }, ha = { class: "d-flex align-center" }, Ca = { class: "d-flex align-center" }, _a = { class: "subject-select__sidebar system-border-r" }, Aa = { class: "subject-select-filter" }, wa = { class: "subject-select__content" }, ka = {
|
|
@@ -963,7 +963,8 @@ const ba = { class: "d-flex flex-column w-100 px-1 align-center" }, ya = { class
|
|
|
963
963
|
maxCount: { default: 1 },
|
|
964
964
|
modelValue: { type: Boolean, default: void 0 },
|
|
965
965
|
dialogTitleT: { default: "common.subjectSelect.texts.title" },
|
|
966
|
-
paginationMode: { default: "standard" }
|
|
966
|
+
paginationMode: { default: "standard" },
|
|
967
|
+
autoOpen: { type: Boolean, default: !1 }
|
|
967
968
|
},
|
|
968
969
|
emits: ["update:modelValue", "update:pagination", "onOpen", "onPageChange", "onConfirm", "onFetchNextPage"],
|
|
969
970
|
setup(a, { expose: p, emit: l }) {
|
|
@@ -979,7 +980,7 @@ const ba = { class: "d-flex flex-column w-100 px-1 align-center" }, ya = { class
|
|
|
979
980
|
set: (A) => {
|
|
980
981
|
g("update:pagination", { ...je(A) });
|
|
981
982
|
}
|
|
982
|
-
}), c = O(!0), { t: d } = ae(), b = S(() => t.selectedItems.length), v = S(() => b.value < t.minCount || b.value > t.maxCount),
|
|
983
|
+
}), c = O(!0), { t: d } = ae(), b = S(() => t.selectedItems.length), v = S(() => b.value < t.minCount || b.value > t.maxCount), h = () => {
|
|
983
984
|
g("onOpen"), c.value = !0, n.value = !0;
|
|
984
985
|
}, r = () => {
|
|
985
986
|
c.value = !c.value;
|
|
@@ -990,29 +991,31 @@ const ba = { class: "d-flex flex-column w-100 px-1 align-center" }, ya = { class
|
|
|
990
991
|
"onConfirm",
|
|
991
992
|
t.selectedItems.map((A) => je(A))
|
|
992
993
|
), e();
|
|
993
|
-
},
|
|
994
|
+
}, C = () => {
|
|
994
995
|
g("onFetchNextPage");
|
|
995
996
|
}, s = () => {
|
|
996
997
|
g("onPageChange");
|
|
997
998
|
}, D = S(() => Math.ceil(o.value.totalCount / o.value.rowsPerPage)), L = S(() => !(Q(o.value.hasNextPage) && o.value.page === D.value || o.value.hasNextPage === !1)), k = (A) => {
|
|
998
|
-
A && L.value && !t.loading &&
|
|
999
|
+
A && L.value && !t.loading && C();
|
|
999
1000
|
};
|
|
1000
|
-
return
|
|
1001
|
-
|
|
1001
|
+
return nt(() => {
|
|
1002
|
+
t.autoOpen && h();
|
|
1003
|
+
}), p({
|
|
1004
|
+
open: h
|
|
1002
1005
|
}), (A, x) => {
|
|
1003
1006
|
const N = pe("ABtnSecondary"), M = pe("ABtnPrimary");
|
|
1004
1007
|
return y(), V(X, null, [
|
|
1005
1008
|
E(A.$slots, "activator", {
|
|
1006
|
-
props: { onClick: R(() =>
|
|
1009
|
+
props: { onClick: R(() => h(), ["stop"]) }
|
|
1007
1010
|
}),
|
|
1008
|
-
m(
|
|
1011
|
+
m(it, ot(A.$attrs, {
|
|
1009
1012
|
"model-value": n.value,
|
|
1010
1013
|
fullscreen: "",
|
|
1011
1014
|
class: "subject-select",
|
|
1012
1015
|
"onUpdate:modelValue": x[1] || (x[1] = (z) => g("update:modelValue", z))
|
|
1013
1016
|
}), {
|
|
1014
1017
|
default: u(() => [
|
|
1015
|
-
n.value ? (y(), B(
|
|
1018
|
+
n.value ? (y(), B(rt, {
|
|
1016
1019
|
key: 0,
|
|
1017
1020
|
class: "subject-select__card"
|
|
1018
1021
|
}, {
|
|
@@ -1051,7 +1054,7 @@ const ba = { class: "d-flex flex-column w-100 px-1 align-center" }, ya = { class
|
|
|
1051
1054
|
icon: "mdi-tune",
|
|
1052
1055
|
size: 16
|
|
1053
1056
|
}),
|
|
1054
|
-
m(
|
|
1057
|
+
m(dt, {
|
|
1055
1058
|
activator: "parent",
|
|
1056
1059
|
location: "bottom"
|
|
1057
1060
|
}, {
|
|
@@ -1088,7 +1091,7 @@ const ba = { class: "d-flex flex-column w-100 px-1 align-center" }, ya = { class
|
|
|
1088
1091
|
st((y(), B(N, {
|
|
1089
1092
|
loading: a.loading,
|
|
1090
1093
|
size: "small",
|
|
1091
|
-
onClick:
|
|
1094
|
+
onClick: C
|
|
1092
1095
|
}, {
|
|
1093
1096
|
default: u(() => [
|
|
1094
1097
|
E(A.$slots, "button-confirm-title", {}, () => [
|
|
@@ -1119,7 +1122,7 @@ const ba = { class: "d-flex flex-column w-100 px-1 align-center" }, ya = { class
|
|
|
1119
1122
|
maxCount: a.maxCount,
|
|
1120
1123
|
selected: b.value
|
|
1121
1124
|
})), 1)),
|
|
1122
|
-
m(
|
|
1125
|
+
m(ut),
|
|
1123
1126
|
m(M, {
|
|
1124
1127
|
disabled: v.value,
|
|
1125
1128
|
onClick: R(w, ["stop"])
|
|
@@ -1172,11 +1175,11 @@ export {
|
|
|
1172
1175
|
_o as createFilterStore,
|
|
1173
1176
|
_e as generateListQuery,
|
|
1174
1177
|
Ga as useApiFetchByIds,
|
|
1175
|
-
|
|
1178
|
+
St as useApiFetchList,
|
|
1176
1179
|
Xa as useApiFetchListBatch,
|
|
1177
|
-
|
|
1180
|
+
kt as useApiQueryBuilder,
|
|
1178
1181
|
Ao as useApiRequest,
|
|
1179
|
-
|
|
1182
|
+
Vt as useFilterHelpers,
|
|
1180
1183
|
Za as useJobApi,
|
|
1181
1184
|
at as usePagination,
|
|
1182
1185
|
eo as useSubjectSelect,
|