@anzusystems/common-admin 1.47.0-beta.dev-1771794053 → 1.47.0-beta.dev-1771894801
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-BmclBDsI.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-4opuzkLV.mjs} +2071 -2075
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-4opuzkLV.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.js +28 -28
- package/dist/common-admin.js.map +1 -1
- package/dist/labs.d.ts +11 -80
- package/dist/labs.js +432 -439
- package/dist/labs.js.map +1 -1
- package/package.json +2 -2
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BmclBDsI.mjs.map +0 -1
package/dist/labs.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { bS as
|
|
2
|
-
import { aD as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { VBtn as
|
|
6
|
-
import { VList as
|
|
7
|
-
import { VMenu as
|
|
8
|
-
import { useThrottleFn as
|
|
9
|
-
import { VBtnToggle as
|
|
10
|
-
import
|
|
11
|
-
import { VCard as
|
|
12
|
-
import { VDialog as
|
|
13
|
-
import { VSpacer as
|
|
14
|
-
import { VIcon as
|
|
15
|
-
import { VToolbar as
|
|
16
|
-
import { VTooltip as
|
|
17
|
-
import { Intersect as
|
|
18
|
-
const
|
|
1
|
+
import { bS as ue, d as B, j as N, k as Ne, h as H, i as Z, ai as de, aj as me, ak as pe, al as fe, af as ee, a$ as ge, a9 as ve, aa as be, ab as he, ac as ye, am as Ce, an as Ae, ad as Pe, ae as we, bT as _e, bU as xe, bV as ke, bW as Ve, ar as Te, bX as ae, ao as Le, ap as je, aT as Re, F as ze, a7 as $e, b3 as Ue, aq as Me, a1 as qe, bY as Je, q as Ke, p as He, x as Qe, a6 as We, aH as Ye, m as Ge, l as Xe } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-4opuzkLV.mjs";
|
|
2
|
+
import { aD as ua, bZ as da, b_ as ma, az as pa, aA as fa, aC as ga, aE as va, aB as ba, aQ as ha, aI as ya, bc as Ca, aF as Aa, aG as Pa, ax as wa, ay as _a, b$ as xa, c4 as ka, c5 as Ta, c2 as Fa, c3 as Sa, ah as Ba, ag as Ea, c0 as Oa, c1 as Ia, c6 as Da } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-4opuzkLV.mjs";
|
|
3
|
+
import { defineComponent as oe, mergeModels as le, useModel as Ze, inject as Fe, computed as w, watch as W, createElementBlock as V, openBlock as S, createElementVNode as k, createVNode as A, toDisplayString as _, unref as y, withCtx as T, createTextVNode as L, Fragment as se, renderList as Se, createBlock as Q, normalizeClass as Be, createCommentVNode as Ee, withModifiers as q, ref as $, onMounted as Oe, toRaw as ie, resolveComponent as ce, renderSlot as D, mergeProps as et, withDirectives as tt, vShow as at } from "vue";
|
|
4
|
+
import { useI18n as ne } from "vue-i18n";
|
|
5
|
+
import { VBtn as z } from "vuetify/components/VBtn";
|
|
6
|
+
import { VList as ot, VListItem as st, VListItemTitle as nt } from "vuetify/components/VList";
|
|
7
|
+
import { VMenu as rt } from "vuetify/components/VMenu";
|
|
8
|
+
import { useThrottleFn as Y, useDebounceFn as lt } from "@vueuse/core";
|
|
9
|
+
import { VBtnToggle as it } from "vuetify/components/VBtnToggle";
|
|
10
|
+
import Ie from "axios";
|
|
11
|
+
import { VCard as ct } from "vuetify/components/VCard";
|
|
12
|
+
import { VDialog as ut } from "vuetify/components/VDialog";
|
|
13
|
+
import { VSpacer as dt } from "vuetify/components/VGrid";
|
|
14
|
+
import { VIcon as mt } from "vuetify/components/VIcon";
|
|
15
|
+
import { VToolbar as pt } from "vuetify/components/VToolbar";
|
|
16
|
+
import { VTooltip as ft } from "vuetify/components/VTooltip";
|
|
17
|
+
import { Intersect as gt } from "vuetify/directives";
|
|
18
|
+
const vt = { class: "d-flex align-center justify-center" }, bt = { class: "text-body-small mr-1" }, aa = /* @__PURE__ */ oe({
|
|
19
19
|
__name: "ADatatableOrdering",
|
|
20
|
-
props: /* @__PURE__ */
|
|
20
|
+
props: /* @__PURE__ */ le({
|
|
21
21
|
variant: { default: "id" },
|
|
22
22
|
customOptions: { default: void 0 },
|
|
23
23
|
paginationUpdateCustomCb: { type: Function, default: void 0 }
|
|
@@ -28,110 +28,110 @@ const _t = { class: "d-flex align-center justify-center" }, xt = { class: "text-
|
|
|
28
28
|
},
|
|
29
29
|
modelModifiers: {}
|
|
30
30
|
}),
|
|
31
|
-
emits: /* @__PURE__ */
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
31
|
+
emits: /* @__PURE__ */ le(["sortByChange"], ["update:modelValue"]),
|
|
32
|
+
setup(n, { emit: d }) {
|
|
33
|
+
const u = n, e = d, i = Ze(n, "modelValue"), r = Fe(ue);
|
|
34
|
+
if (B(r))
|
|
35
35
|
throw new Error("Incorrect provide/inject config.");
|
|
36
|
-
const { t:
|
|
36
|
+
const { t: l } = ne(), s = [
|
|
37
37
|
{
|
|
38
38
|
id: 1,
|
|
39
39
|
titleT: "common.system.datatable.ordering.mostRecent",
|
|
40
|
-
sortBy: { key: "createdAt", order:
|
|
40
|
+
sortBy: { key: "createdAt", order: N.Desc }
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
id: 2,
|
|
44
44
|
titleT: "common.system.datatable.ordering.oldest",
|
|
45
|
-
sortBy: { key: "createdAt", order:
|
|
45
|
+
sortBy: { key: "createdAt", order: N.Asc }
|
|
46
46
|
}
|
|
47
|
-
],
|
|
47
|
+
], f = [
|
|
48
48
|
{
|
|
49
49
|
id: 1,
|
|
50
50
|
titleT: "common.system.datatable.ordering.mostRecent",
|
|
51
|
-
sortBy: { key: "id", order:
|
|
51
|
+
sortBy: { key: "id", order: N.Desc }
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
id: 2,
|
|
55
55
|
titleT: "common.system.datatable.ordering.oldest",
|
|
56
|
-
sortBy: { key: "id", order:
|
|
56
|
+
sortBy: { key: "id", order: N.Asc }
|
|
57
57
|
}
|
|
58
|
-
],
|
|
58
|
+
], m = [
|
|
59
59
|
{
|
|
60
60
|
id: 3,
|
|
61
61
|
titleT: "common.system.datatable.ordering.mostRelevant",
|
|
62
|
-
sortBy: { key:
|
|
62
|
+
sortBy: { key: Ne, order: N.Desc }
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
id: 1,
|
|
66
66
|
titleT: "common.system.datatable.ordering.mostRecent",
|
|
67
|
-
sortBy: { key: "createdAt", order:
|
|
67
|
+
sortBy: { key: "createdAt", order: N.Desc }
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
id: 2,
|
|
71
71
|
titleT: "common.system.datatable.ordering.oldest",
|
|
72
|
-
sortBy: { key: "createdAt", order:
|
|
72
|
+
sortBy: { key: "createdAt", order: N.Asc }
|
|
73
73
|
}
|
|
74
|
-
], C =
|
|
75
|
-
const
|
|
76
|
-
return
|
|
77
|
-
}),
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
...
|
|
74
|
+
], C = w(() => {
|
|
75
|
+
const t = v.value.find((h) => h.id === i.value);
|
|
76
|
+
return t ? l(t.titleT) : "";
|
|
77
|
+
}), v = w(() => u.customOptions ? u.customOptions : u.variant === "most-relevant" ? m : u.variant === "id" ? f : s), P = (t) => {
|
|
78
|
+
i.value = t.id;
|
|
79
|
+
}, c = (t) => {
|
|
80
|
+
t.sortBy || (r.value = {
|
|
81
|
+
...r.value,
|
|
82
82
|
sortBy: null
|
|
83
|
-
}, e("sortByChange",
|
|
83
|
+
}, e("sortByChange", t)), r.value.sortBy = t.sortBy, e("sortByChange", t);
|
|
84
84
|
};
|
|
85
|
-
return
|
|
86
|
-
if (
|
|
87
|
-
const a =
|
|
88
|
-
if (!
|
|
89
|
-
if (
|
|
90
|
-
|
|
85
|
+
return W(i, (t, h) => {
|
|
86
|
+
if (t === h) return;
|
|
87
|
+
const a = v.value.find((g) => g.id === t);
|
|
88
|
+
if (!B(a)) {
|
|
89
|
+
if (B(u.paginationUpdateCustomCb)) {
|
|
90
|
+
c(a);
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
u.paginationUpdateCustomCb(a, r);
|
|
94
94
|
}
|
|
95
|
-
}),
|
|
96
|
-
|
|
97
|
-
(
|
|
98
|
-
if (
|
|
95
|
+
}), W(
|
|
96
|
+
r,
|
|
97
|
+
(t, h) => {
|
|
98
|
+
if (t.sortBy?.key === h?.sortBy?.key && t.sortBy?.order === h?.sortBy?.order)
|
|
99
99
|
return;
|
|
100
|
-
const a =
|
|
101
|
-
|
|
100
|
+
const a = v.value.find((g) => t.sortBy?.key === g.sortBy?.key && t.sortBy?.order === g.sortBy?.order);
|
|
101
|
+
B(a) || (i.value = a.id);
|
|
102
102
|
},
|
|
103
103
|
{ immediate: !0 }
|
|
104
|
-
), (
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
), (t, h) => (S(), V("div", vt, [
|
|
105
|
+
k("div", bt, _(y(l)("common.system.datatable.ordering.title")) + ": ", 1),
|
|
106
|
+
A(z, {
|
|
107
107
|
variant: "text",
|
|
108
108
|
rounded: "xl",
|
|
109
109
|
size: "small",
|
|
110
110
|
"append-icon": "mdi-chevron-down"
|
|
111
111
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
default: T(() => [
|
|
113
|
+
L(_(C.value) + " ", 1),
|
|
114
|
+
A(rt, {
|
|
115
115
|
activator: "parent",
|
|
116
116
|
location: "bottom",
|
|
117
117
|
"close-on-content-click": ""
|
|
118
118
|
}, {
|
|
119
|
-
default:
|
|
120
|
-
|
|
119
|
+
default: T(() => [
|
|
120
|
+
A(ot, {
|
|
121
121
|
density: "compact",
|
|
122
122
|
class: "pa-0"
|
|
123
123
|
}, {
|
|
124
|
-
default:
|
|
125
|
-
(S(!0),
|
|
124
|
+
default: T(() => [
|
|
125
|
+
(S(!0), V(se, null, Se(v.value, (a) => (S(), Q(st, {
|
|
126
126
|
key: a.id,
|
|
127
|
-
onClick: (
|
|
127
|
+
onClick: (g) => P(a)
|
|
128
128
|
}, {
|
|
129
|
-
default:
|
|
130
|
-
|
|
131
|
-
class:
|
|
129
|
+
default: T(() => [
|
|
130
|
+
A(nt, {
|
|
131
|
+
class: Be({ "font-weight-bold": a.id === i.value })
|
|
132
132
|
}, {
|
|
133
|
-
default:
|
|
134
|
-
|
|
133
|
+
default: T(() => [
|
|
134
|
+
L(_(y(l)(a.titleT)), 1)
|
|
135
135
|
]),
|
|
136
136
|
_: 2
|
|
137
137
|
}, 1032, ["class"])
|
|
@@ -149,63 +149,63 @@ const _t = { class: "d-flex align-center justify-center" }, xt = { class: "text-
|
|
|
149
149
|
})
|
|
150
150
|
]));
|
|
151
151
|
}
|
|
152
|
-
}),
|
|
152
|
+
}), ht = { class: "anzu-data-footer" }, yt = {
|
|
153
153
|
key: 0,
|
|
154
154
|
class: "anzu-data-footer__page-limit"
|
|
155
|
-
},
|
|
155
|
+
}, Ct = { class: "anzu-data-footer__pagination" }, At = { class: "anzu-data-footer__icons-before" }, Pt = { class: "current-page" }, wt = { class: "anzu-data-footer__icons-after" }, _t = /* @__PURE__ */ oe({
|
|
156
156
|
__name: "ADatatablePagination",
|
|
157
157
|
props: {
|
|
158
158
|
itemsPerPageOptions: { default: () => [10, 25, 50] },
|
|
159
159
|
hideRecordsPerPage: { type: Boolean, default: !1 }
|
|
160
160
|
},
|
|
161
161
|
emits: ["change"],
|
|
162
|
-
setup(
|
|
163
|
-
const
|
|
164
|
-
if (
|
|
162
|
+
setup(n, { emit: d }) {
|
|
163
|
+
const u = d, e = Fe(ue);
|
|
164
|
+
if (B(e))
|
|
165
165
|
throw new Error("Incorrect provide/inject config.");
|
|
166
|
-
const { t:
|
|
167
|
-
|
|
166
|
+
const { t: i } = ne(), r = w(() => Math.ceil(e.value.totalCount / e.value.rowsPerPage)), l = w(() => e.value.page * e.value.rowsPerPage - e.value.rowsPerPage + 1), s = w(() => e.value.page * e.value.rowsPerPage - e.value.rowsPerPage + e.value.currentViewCount), f = w(() => e.value.page === 1), m = w(() => !H(e.value.hasNextPage) || e.value.page === r.value), C = w(() => H(e.value.hasNextPage) && e.value.page === r.value || e.value.hasNextPage === !1), v = w(() => H(e.value.hasNextPage) ? e.value.totalCount : e.value.hasNextPage ? s.value + 1 + "+" : s.value);
|
|
167
|
+
W(
|
|
168
168
|
() => e.value.rowsPerPage,
|
|
169
|
-
(a,
|
|
170
|
-
a !==
|
|
169
|
+
(a, g) => {
|
|
170
|
+
a !== g && (e.value.page = 1, u("change"));
|
|
171
171
|
}
|
|
172
|
-
),
|
|
172
|
+
), W(
|
|
173
173
|
() => e.value.page,
|
|
174
|
-
(a,
|
|
175
|
-
a !==
|
|
174
|
+
(a, g) => {
|
|
175
|
+
a !== g && u("change");
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
|
-
const
|
|
178
|
+
const P = Y(() => {
|
|
179
179
|
e.value.page = 1;
|
|
180
|
-
}, 300),
|
|
181
|
-
e.value.page =
|
|
182
|
-
}, 300),
|
|
180
|
+
}, 300), c = Y(() => {
|
|
181
|
+
e.value.page = r.value;
|
|
182
|
+
}, 300), t = Y(() => {
|
|
183
183
|
e.value.page = e.value.page - 1;
|
|
184
|
-
}, 300),
|
|
184
|
+
}, 300), h = Y(() => {
|
|
185
185
|
e.value.page = e.value.page + 1;
|
|
186
186
|
}, 300);
|
|
187
|
-
return (a,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
modelValue:
|
|
192
|
-
"onUpdate:modelValue":
|
|
187
|
+
return (a, g) => (S(), V("div", ht, [
|
|
188
|
+
n.hideRecordsPerPage ? Ee("", !0) : (S(), V("div", yt, [
|
|
189
|
+
L(_(y(i)("common.system.datatable.itemsPerPage")) + ": ", 1),
|
|
190
|
+
A(it, {
|
|
191
|
+
modelValue: y(e).rowsPerPage,
|
|
192
|
+
"onUpdate:modelValue": g[0] || (g[0] = (F) => y(e).rowsPerPage = F),
|
|
193
193
|
class: "ml-2",
|
|
194
194
|
density: "compact",
|
|
195
195
|
mandatory: "",
|
|
196
196
|
"data-cy": "table-size"
|
|
197
197
|
}, {
|
|
198
|
-
default:
|
|
199
|
-
(S(!0),
|
|
200
|
-
key:
|
|
201
|
-
color:
|
|
202
|
-
value:
|
|
198
|
+
default: T(() => [
|
|
199
|
+
(S(!0), V(se, null, Se(n.itemsPerPageOptions, (F) => (S(), Q(z, {
|
|
200
|
+
key: F,
|
|
201
|
+
color: F === y(e).rowsPerPage ? "secondary" : "",
|
|
202
|
+
value: F,
|
|
203
203
|
density: "compact",
|
|
204
204
|
size: "small",
|
|
205
205
|
variant: "text"
|
|
206
206
|
}, {
|
|
207
|
-
default:
|
|
208
|
-
|
|
207
|
+
default: T(() => [
|
|
208
|
+
L(_(F), 1)
|
|
209
209
|
]),
|
|
210
210
|
_: 2
|
|
211
211
|
}, 1032, ["color", "value"]))), 128))
|
|
@@ -213,304 +213,297 @@ const _t = { class: "d-flex align-center justify-center" }, xt = { class: "text-
|
|
|
213
213
|
_: 1
|
|
214
214
|
}, 8, ["modelValue"])
|
|
215
215
|
])),
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
disabled:
|
|
216
|
+
k("div", Ct, _(l.value) + " - " + _(s.value) + " " + _(y(i)("common.system.datatable.from")) + " " + _(v.value), 1),
|
|
217
|
+
k("div", At, [
|
|
218
|
+
A(z, {
|
|
219
|
+
disabled: f.value,
|
|
220
220
|
icon: "mdi-page-first",
|
|
221
221
|
size: "small",
|
|
222
222
|
variant: "text",
|
|
223
|
-
onClick:
|
|
223
|
+
onClick: q(y(P), ["stop"])
|
|
224
224
|
}, null, 8, ["disabled", "onClick"]),
|
|
225
|
-
|
|
226
|
-
disabled:
|
|
225
|
+
A(z, {
|
|
226
|
+
disabled: f.value,
|
|
227
227
|
icon: "mdi-chevron-left",
|
|
228
228
|
size: "small",
|
|
229
229
|
variant: "text",
|
|
230
|
-
onClick:
|
|
230
|
+
onClick: q(y(t), ["stop"])
|
|
231
231
|
}, null, 8, ["disabled", "onClick"])
|
|
232
232
|
]),
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
k("div", Pt, [
|
|
234
|
+
k("span", null, _(y(e).page), 1)
|
|
235
235
|
]),
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
k("div", wt, [
|
|
237
|
+
A(z, {
|
|
238
238
|
disabled: C.value,
|
|
239
239
|
icon: "mdi-chevron-right",
|
|
240
240
|
size: "small",
|
|
241
241
|
variant: "text",
|
|
242
|
-
onClick:
|
|
242
|
+
onClick: q(y(h), ["stop"])
|
|
243
243
|
}, null, 8, ["disabled", "onClick"]),
|
|
244
|
-
|
|
245
|
-
disabled:
|
|
244
|
+
A(z, {
|
|
245
|
+
disabled: m.value,
|
|
246
246
|
icon: "mdi-page-last",
|
|
247
247
|
size: "small",
|
|
248
248
|
variant: "text",
|
|
249
|
-
onClick:
|
|
249
|
+
onClick: q(y(c), ["stop"])
|
|
250
250
|
}, null, 8, ["disabled", "onClick"])
|
|
251
251
|
])
|
|
252
252
|
]));
|
|
253
253
|
}
|
|
254
|
-
}),
|
|
255
|
-
const { querySetLimit: e, querySetOffset:
|
|
256
|
-
return e(
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
254
|
+
}), xt = (n, d, u = "id") => {
|
|
255
|
+
const { querySetLimit: e, querySetOffset: i, querySetOrder: r, queryBuild: l, queryAddFilter: s, queryAdd: f } = Ve(), m = n.length;
|
|
256
|
+
return e(m), i(1, m), r(u, !1), d ? f(u, n.join(",")) : s("in", u, n.join(",")), l();
|
|
257
|
+
}, oa = (n) => {
|
|
258
|
+
const {
|
|
259
|
+
client: d,
|
|
260
|
+
system: u,
|
|
261
|
+
entity: e,
|
|
262
|
+
urlTemplate: i,
|
|
263
|
+
urlParams: r,
|
|
264
|
+
options: l = {},
|
|
265
|
+
isSearchApi: s = !1,
|
|
266
|
+
field: f = "id"
|
|
267
|
+
} = n;
|
|
268
|
+
let m = null;
|
|
262
269
|
return {
|
|
263
|
-
executeFetch: async (
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
typeof N == "object" && N !== null ? (B = N.urlTemplate, E = N.urlParams) : (B = N, E = g);
|
|
270
|
+
executeFetch: async (P, c = {}) => {
|
|
271
|
+
m = new AbortController();
|
|
272
|
+
const { urlTemplate: t, urlParams: h } = c;
|
|
267
273
|
try {
|
|
268
|
-
const
|
|
269
|
-
if (
|
|
270
|
-
const
|
|
271
|
-
...
|
|
272
|
-
signal:
|
|
274
|
+
const a = Z(h) ? h : r, g = Z(t) ? t : i;
|
|
275
|
+
if (B(g)) throw new Error("Url template is undefined");
|
|
276
|
+
const F = (B(a) ? g : de(g, a)) + xt(P, s, f), o = await d().get(F, {
|
|
277
|
+
...l,
|
|
278
|
+
signal: m.signal
|
|
273
279
|
});
|
|
274
|
-
if (!
|
|
275
|
-
throw new
|
|
276
|
-
if (
|
|
277
|
-
return
|
|
278
|
-
if (
|
|
280
|
+
if (!me(o.status))
|
|
281
|
+
throw new pe(o.status);
|
|
282
|
+
if (o.data?.data)
|
|
283
|
+
return o.data.data;
|
|
284
|
+
if (o.status === fe)
|
|
279
285
|
return [];
|
|
280
|
-
throw new
|
|
281
|
-
} catch (
|
|
282
|
-
if (
|
|
286
|
+
throw new ee();
|
|
287
|
+
} catch (a) {
|
|
288
|
+
if (a instanceof DOMException && a.name === "AbortError")
|
|
283
289
|
return [];
|
|
284
|
-
throw
|
|
290
|
+
throw ge(a) ? a : ve(a) ? new be(a, a.config?.url) : he(a) ? new ye(a, u, e, a) : Ce(a) ? new Ae(a, u, e, a) : Pe(a) ? new we(a, a) : _e(a) ? new xe(a) : Ie.isAxiosError(a) ? (console.error("Axios error: " + i, a.cause), new ke(a)) : (console.error("AnzuFatalError: ", a), new ee(a));
|
|
285
291
|
} finally {
|
|
286
|
-
|
|
292
|
+
m = null;
|
|
287
293
|
}
|
|
288
294
|
},
|
|
289
295
|
abortFetch: () => {
|
|
290
|
-
|
|
296
|
+
m && m.abort();
|
|
291
297
|
}
|
|
292
298
|
};
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
let
|
|
296
|
-
typeof t == "function" ? (n = t, r = b, i = p, c = e, C = d, y = l ?? {}) : (n = t.client, r = t.system, i = t.entity, c = t.urlTemplate, C = t.urlParams, y = t.options ?? {});
|
|
297
|
-
let h = null;
|
|
299
|
+
}, sa = (n) => {
|
|
300
|
+
const { client: d, system: u, entity: e, urlTemplate: i, urlParams: r, options: l = {} } = n;
|
|
301
|
+
let s = null;
|
|
298
302
|
return {
|
|
299
|
-
executeFetch: async (
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
+
executeFetch: async (C, v, P = {}) => {
|
|
304
|
+
s = new AbortController();
|
|
305
|
+
const {
|
|
306
|
+
urlTemplate: c,
|
|
307
|
+
urlParams: t,
|
|
308
|
+
sortBy: h = "id",
|
|
309
|
+
sortDesc: a = !0,
|
|
310
|
+
batchSize: g = 100,
|
|
311
|
+
forceElastic: F = !1
|
|
312
|
+
} = P;
|
|
303
313
|
try {
|
|
304
|
-
const
|
|
305
|
-
if (
|
|
306
|
-
const { pagination:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
rowsPerPage: V
|
|
311
|
-
}
|
|
312
|
-
), q = (D(M) ? te : be(te, M)) + f, j = [], L = await n().get(
|
|
313
|
-
q + ce(A, v, a),
|
|
314
|
+
const o = v.general.elastic || F ? "/search" : "", U = Z(t) ? t : r, p = Z(c) ? c : i;
|
|
315
|
+
if (B(p)) throw new Error("Url template is undefined");
|
|
316
|
+
const { pagination: b } = Te(h, a ? N.Desc : N.Asc, {
|
|
317
|
+
rowsPerPage: g
|
|
318
|
+
}), j = (B(U) ? p : de(p, U)) + o, I = [], E = await d().get(
|
|
319
|
+
j + ae(b, C, v),
|
|
314
320
|
{
|
|
315
|
-
...
|
|
316
|
-
signal:
|
|
321
|
+
...l,
|
|
322
|
+
signal: s.signal
|
|
317
323
|
}
|
|
318
324
|
);
|
|
319
|
-
if (!
|
|
320
|
-
throw new
|
|
321
|
-
if (
|
|
322
|
-
const
|
|
323
|
-
if (
|
|
324
|
-
for (
|
|
325
|
-
|
|
326
|
-
const
|
|
327
|
-
|
|
325
|
+
if (!me(E.status))
|
|
326
|
+
throw new pe(E.status);
|
|
327
|
+
if (E.data) {
|
|
328
|
+
const R = E.data;
|
|
329
|
+
if (I.push(...R.data), Le(R))
|
|
330
|
+
for (b.value.hasNextPage = R.hasNextPage; b.value.hasNextPage; ) {
|
|
331
|
+
b.value.page++;
|
|
332
|
+
const O = (await d().get(
|
|
333
|
+
j + ae(b, C, v),
|
|
328
334
|
{
|
|
329
|
-
...
|
|
330
|
-
signal:
|
|
335
|
+
...l,
|
|
336
|
+
signal: s.signal
|
|
331
337
|
}
|
|
332
338
|
)).data;
|
|
333
|
-
|
|
339
|
+
I.push(...O.data), b.value.hasNextPage = O.hasNextPage;
|
|
334
340
|
}
|
|
335
|
-
else if (
|
|
336
|
-
if (
|
|
337
|
-
return
|
|
338
|
-
const
|
|
339
|
-
for (let
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
signal: h.signal
|
|
347
|
-
}
|
|
348
|
-
)
|
|
341
|
+
else if (je(R)) {
|
|
342
|
+
if (b.value.totalCount = R.totalCount, b.value.totalCount <= b.value.rowsPerPage)
|
|
343
|
+
return I;
|
|
344
|
+
const J = [], O = Math.ceil(b.value.totalCount / b.value.rowsPerPage);
|
|
345
|
+
for (let x = 1; x < O; x++) {
|
|
346
|
+
const M = { ...b.value, page: x + 1 }, K = $(M);
|
|
347
|
+
J.push(
|
|
348
|
+
d().get(j + ae(K, C, v), {
|
|
349
|
+
...l,
|
|
350
|
+
signal: s.signal
|
|
351
|
+
})
|
|
349
352
|
);
|
|
350
353
|
}
|
|
351
|
-
(await Promise.all(
|
|
352
|
-
|
|
354
|
+
(await Promise.all(J)).forEach((x) => {
|
|
355
|
+
I.push(...x.data.data);
|
|
353
356
|
});
|
|
354
357
|
}
|
|
355
|
-
return
|
|
358
|
+
return I;
|
|
356
359
|
}
|
|
357
|
-
if (
|
|
360
|
+
if (E.status === fe)
|
|
358
361
|
return [];
|
|
359
|
-
throw new
|
|
360
|
-
} catch (
|
|
361
|
-
if (
|
|
362
|
+
throw new ee();
|
|
363
|
+
} catch (o) {
|
|
364
|
+
if (o instanceof DOMException && o.name === "AbortError")
|
|
362
365
|
return [];
|
|
363
|
-
throw
|
|
366
|
+
throw ge(o) ? o : ve(o) ? new be(o, o.config?.url) : he(o) ? new ye(o, u, e, o) : Ce(o) ? new Ae(o, u, e, o) : Pe(o) ? new we(o, o) : _e(o) ? new xe(o) : Ie.isAxiosError(o) ? (console.error("Axios error: " + i, o.cause), new ke(o)) : (console.error("AnzuFatalError: ", o), new ee(o));
|
|
364
367
|
} finally {
|
|
365
|
-
|
|
368
|
+
s = null;
|
|
366
369
|
}
|
|
367
370
|
},
|
|
368
371
|
abortFetch: () => {
|
|
369
|
-
|
|
372
|
+
s && s.abort();
|
|
370
373
|
}
|
|
371
374
|
};
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
function po(t, b) {
|
|
375
|
+
}, G = "/adm/v1/job", X = "job";
|
|
376
|
+
function na(n, d) {
|
|
375
377
|
return {
|
|
376
|
-
useFetchJobList: () =>
|
|
377
|
-
fetchJob: (
|
|
378
|
-
createJob: (
|
|
379
|
-
const
|
|
380
|
-
return
|
|
378
|
+
useFetchJobList: () => $e({ client: n, system: d, entity: X, urlTemplate: G }),
|
|
379
|
+
fetchJob: (l) => ze(n, G + "/:id", { id: l }, d, X),
|
|
380
|
+
createJob: (l) => {
|
|
381
|
+
const s = Ue(l._resourceName).slice(4).replace("-kind-", "-kind/");
|
|
382
|
+
return Me(n, l, G + "/:type", { type: s }, d, X);
|
|
381
383
|
},
|
|
382
|
-
deleteJob: (
|
|
384
|
+
deleteJob: (l) => Re(n, G + "/:id", { id: l }, d, X)
|
|
383
385
|
};
|
|
384
386
|
}
|
|
385
|
-
const
|
|
387
|
+
const kt = {
|
|
386
388
|
key: "",
|
|
387
389
|
title: void 0,
|
|
388
390
|
sortable: !1,
|
|
389
391
|
fixed: !1
|
|
390
|
-
},
|
|
392
|
+
}, Tt = {
|
|
391
393
|
storeColumnsLocalStorage: !0,
|
|
392
394
|
disableActions: !1,
|
|
393
395
|
customI18n: void 0,
|
|
394
396
|
showExpand: !1
|
|
395
397
|
};
|
|
396
|
-
function
|
|
397
|
-
const
|
|
398
|
-
let
|
|
399
|
-
|
|
400
|
-
const
|
|
401
|
-
const
|
|
402
|
-
return
|
|
403
|
-
}), C =
|
|
404
|
-
const
|
|
405
|
-
return
|
|
406
|
-
|
|
407
|
-
}),
|
|
408
|
-
}),
|
|
409
|
-
if (!
|
|
410
|
-
const
|
|
411
|
-
if (!
|
|
412
|
-
const
|
|
413
|
-
|
|
414
|
-
},
|
|
415
|
-
!
|
|
398
|
+
function Ft(n, d, u, e, i = {}) {
|
|
399
|
+
const r = { ...Tt, ...i }, l = r.customI18n ?? qe, { t: s } = l.global || l;
|
|
400
|
+
let f;
|
|
401
|
+
Qe(r.storeColumnsLocalStorage) ? f = r.storeColumnsLocalStorage : We(r.storeColumnsLocalStorage) && r.storeColumnsLocalStorage === !0 && (f = "table_" + u + "_" + e);
|
|
402
|
+
const m = n.map((c) => {
|
|
403
|
+
const t = { ...kt, ...c };
|
|
404
|
+
return B(t.title) && (B(t.title) && Je.includes(t.key) ? t.title = s("common.model.tracking." + t.key) : B(t.title) && u && e ? t.title = s(u + "." + e + ".model." + t.key) : t.title = ""), t;
|
|
405
|
+
}), C = w(() => {
|
|
406
|
+
const c = [];
|
|
407
|
+
return r.showExpand && c.push({ key: "data-table-expand", sortable: !1 }), m.forEach((t) => {
|
|
408
|
+
d.value.includes(t.key) || c.push(t);
|
|
409
|
+
}), r.disableActions || c.push({ key: "actions", sortable: !1, fixed: "end" }), c;
|
|
410
|
+
}), v = () => {
|
|
411
|
+
if (!f || !localStorage) return;
|
|
412
|
+
const c = localStorage.getItem(f);
|
|
413
|
+
if (!c) return;
|
|
414
|
+
const t = JSON.parse(c);
|
|
415
|
+
Ke(t) && He(t.hidden) && (d.value = t.hidden);
|
|
416
|
+
}, P = (c) => {
|
|
417
|
+
!f || !localStorage || localStorage.setItem(f, JSON.stringify({ hidden: c }));
|
|
416
418
|
};
|
|
417
|
-
return
|
|
418
|
-
|
|
419
|
-
}),
|
|
420
|
-
|
|
419
|
+
return Oe(() => {
|
|
420
|
+
v();
|
|
421
|
+
}), W(d, (c) => {
|
|
422
|
+
P(c);
|
|
421
423
|
}), {
|
|
422
|
-
columnsAll:
|
|
424
|
+
columnsAll: m,
|
|
423
425
|
columnsVisible: C,
|
|
424
|
-
columnsHidden:
|
|
426
|
+
columnsHidden: d
|
|
425
427
|
};
|
|
426
428
|
}
|
|
427
|
-
function
|
|
428
|
-
const
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
), { resetFilter:
|
|
429
|
+
function ra(n, d, u, e, i, r, l, s = null, f = void 0, m = !1) {
|
|
430
|
+
const C = $(!1), v = $([]), P = $([]), c = $(!1), { pagination: t, setSortBy: h, incrementPage: a } = Te(
|
|
431
|
+
H(s) ? null : s.key,
|
|
432
|
+
s?.order
|
|
433
|
+
), { resetFilter: g, submitFilter: F } = Ye(r, l, {
|
|
432
434
|
storeFiltersLocalStorage: !1,
|
|
433
435
|
populateUrlParams: !1
|
|
434
|
-
}), { showErrorsDefault:
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
}), { showErrorsDefault: o } = Ge(), { columnsVisible: U, columnsAll: p, columnsHidden: b } = Ft(
|
|
437
|
+
n,
|
|
438
|
+
d,
|
|
439
|
+
u,
|
|
438
440
|
e,
|
|
439
|
-
{ storeColumnsLocalStorage: !1, disableActions: !
|
|
440
|
-
),
|
|
441
|
-
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
|
|
441
|
+
{ storeColumnsLocalStorage: !1, disableActions: !m }
|
|
442
|
+
), j = () => {
|
|
443
|
+
R(), O();
|
|
444
|
+
}, I = (x) => {
|
|
445
|
+
h(x.sortBy), O();
|
|
446
|
+
}, E = async () => {
|
|
447
|
+
c.value = !0, a();
|
|
446
448
|
try {
|
|
447
|
-
const
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
i,
|
|
452
|
-
c,
|
|
453
|
-
C
|
|
454
|
-
);
|
|
455
|
-
u.value.push(...A);
|
|
456
|
-
} catch (A) {
|
|
457
|
-
g(A);
|
|
449
|
+
const x = await i(t, r, l, f);
|
|
450
|
+
v.value.push(...x);
|
|
451
|
+
} catch (x) {
|
|
452
|
+
o(x);
|
|
458
453
|
} finally {
|
|
459
|
-
|
|
454
|
+
c.value = !1;
|
|
460
455
|
}
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
},
|
|
464
|
-
|
|
456
|
+
}, R = () => {
|
|
457
|
+
v.value = [], P.value = [];
|
|
458
|
+
}, J = async () => {
|
|
459
|
+
c.value = !0;
|
|
465
460
|
try {
|
|
466
|
-
|
|
467
|
-
|
|
461
|
+
v.value = await i(
|
|
462
|
+
t,
|
|
463
|
+
r,
|
|
468
464
|
l,
|
|
469
|
-
|
|
470
|
-
i,
|
|
471
|
-
c,
|
|
472
|
-
C
|
|
465
|
+
f
|
|
473
466
|
);
|
|
474
|
-
} catch (
|
|
475
|
-
|
|
467
|
+
} catch (x) {
|
|
468
|
+
o(x);
|
|
476
469
|
} finally {
|
|
477
|
-
|
|
470
|
+
c.value = !1;
|
|
478
471
|
}
|
|
479
|
-
},
|
|
480
|
-
await
|
|
472
|
+
}, O = lt(async () => {
|
|
473
|
+
await J();
|
|
481
474
|
});
|
|
482
475
|
return {
|
|
483
|
-
items:
|
|
484
|
-
selected:
|
|
485
|
-
pagination:
|
|
486
|
-
columnsVisible:
|
|
487
|
-
columnsHidden:
|
|
488
|
-
columnsAll:
|
|
489
|
-
filterTouched:
|
|
490
|
-
loading:
|
|
491
|
-
onRowClick: (
|
|
492
|
-
const
|
|
493
|
-
if (!
|
|
476
|
+
items: v,
|
|
477
|
+
selected: P,
|
|
478
|
+
pagination: t,
|
|
479
|
+
columnsVisible: U,
|
|
480
|
+
columnsHidden: b,
|
|
481
|
+
columnsAll: p,
|
|
482
|
+
filterTouched: C,
|
|
483
|
+
loading: c,
|
|
484
|
+
onRowClick: (x) => {
|
|
485
|
+
const M = x.target;
|
|
486
|
+
if (!M || M.tagName === "INPUT" && M.type === "checkbox")
|
|
494
487
|
return;
|
|
495
|
-
const
|
|
496
|
-
if (!
|
|
497
|
-
const
|
|
498
|
-
if (!
|
|
499
|
-
const
|
|
500
|
-
|
|
488
|
+
const K = M.closest(".v-data-table__tr");
|
|
489
|
+
if (!K || !K.classList.contains("v-data-table__tr")) return;
|
|
490
|
+
const te = K.firstElementChild;
|
|
491
|
+
if (!te || !te.classList.contains("v-data-table__td")) return;
|
|
492
|
+
const re = te.querySelector("input");
|
|
493
|
+
re && re.click();
|
|
501
494
|
},
|
|
502
|
-
onFetchNextPage:
|
|
503
|
-
onOpen:
|
|
504
|
-
sortByChange:
|
|
505
|
-
getList:
|
|
506
|
-
resetFilter: () =>
|
|
507
|
-
submitFilter: () =>
|
|
495
|
+
onFetchNextPage: E,
|
|
496
|
+
onOpen: j,
|
|
497
|
+
sortByChange: I,
|
|
498
|
+
getList: O,
|
|
499
|
+
resetFilter: () => g(t, O),
|
|
500
|
+
submitFilter: () => F(t, O)
|
|
508
501
|
};
|
|
509
502
|
}
|
|
510
|
-
const
|
|
503
|
+
const St = { class: "d-flex flex-column w-100 px-1 align-center" }, Bt = { class: "d-flex justify-space-between w-100 align-center" }, Et = { class: "d-flex align-center" }, Ot = { class: "d-flex align-center" }, It = { class: "subject-select__sidebar system-border-r" }, Dt = { class: "subject-select-filter" }, Nt = { class: "subject-select__content" }, Vt = {
|
|
511
504
|
key: 0,
|
|
512
505
|
class: "d-flex w-100 align-center justify-center pa-4"
|
|
513
|
-
},
|
|
506
|
+
}, Lt = { class: "subject-select__actions system-border-t" }, jt = { key: 0 }, Rt = { key: 1 }, la = /* @__PURE__ */ oe({
|
|
514
507
|
__name: "ASubjectSelect",
|
|
515
508
|
props: {
|
|
516
509
|
selectedItems: {},
|
|
@@ -524,109 +517,109 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
|
|
|
524
517
|
autoOpen: { type: Boolean, default: !1 }
|
|
525
518
|
},
|
|
526
519
|
emits: ["update:modelValue", "update:pagination", "onOpen", "onPageChange", "onConfirm", "onFetchNextPage"],
|
|
527
|
-
setup(
|
|
528
|
-
const e =
|
|
520
|
+
setup(n, { expose: d, emit: u }) {
|
|
521
|
+
const e = n, i = u, r = $(!1), l = w({
|
|
529
522
|
get() {
|
|
530
|
-
return
|
|
523
|
+
return B(e.modelValue) ? r.value : e.modelValue;
|
|
531
524
|
},
|
|
532
|
-
set(
|
|
533
|
-
|
|
525
|
+
set(p) {
|
|
526
|
+
r.value = p, i("update:modelValue", p);
|
|
534
527
|
}
|
|
535
|
-
}),
|
|
528
|
+
}), s = w({
|
|
536
529
|
get: () => e.pagination,
|
|
537
|
-
set: (
|
|
538
|
-
|
|
530
|
+
set: (p) => {
|
|
531
|
+
i("update:pagination", { ...ie(p) });
|
|
539
532
|
}
|
|
540
|
-
}),
|
|
541
|
-
|
|
542
|
-
},
|
|
543
|
-
|
|
544
|
-
},
|
|
545
|
-
|
|
546
|
-
},
|
|
547
|
-
|
|
533
|
+
}), f = $(!0), { t: m } = ne(), C = w(() => e.selectedItems.length), v = w(() => C.value < e.minCount || C.value > e.maxCount), P = () => {
|
|
534
|
+
i("onOpen"), f.value = !0, l.value = !0;
|
|
535
|
+
}, c = () => {
|
|
536
|
+
f.value = !f.value;
|
|
537
|
+
}, t = () => {
|
|
538
|
+
l.value = !1;
|
|
539
|
+
}, h = () => {
|
|
540
|
+
i(
|
|
548
541
|
"onConfirm",
|
|
549
|
-
e.selectedItems.map((
|
|
550
|
-
),
|
|
542
|
+
e.selectedItems.map((p) => ie(p))
|
|
543
|
+
), t();
|
|
551
544
|
}, a = () => {
|
|
552
|
-
|
|
553
|
-
},
|
|
554
|
-
|
|
555
|
-
},
|
|
556
|
-
|
|
545
|
+
i("onFetchNextPage");
|
|
546
|
+
}, g = () => {
|
|
547
|
+
i("onPageChange");
|
|
548
|
+
}, F = w(() => Math.ceil(s.value.totalCount / s.value.rowsPerPage)), o = w(() => !(H(s.value.hasNextPage) && s.value.page === F.value || s.value.hasNextPage === !1)), U = (p) => {
|
|
549
|
+
p && o.value && !e.loading && a();
|
|
557
550
|
};
|
|
558
|
-
return
|
|
559
|
-
e.autoOpen &&
|
|
560
|
-
}),
|
|
561
|
-
open:
|
|
562
|
-
}), (
|
|
563
|
-
const
|
|
564
|
-
return S(),
|
|
565
|
-
|
|
566
|
-
props: { onClick:
|
|
551
|
+
return Oe(() => {
|
|
552
|
+
e.autoOpen && P();
|
|
553
|
+
}), d({
|
|
554
|
+
open: P
|
|
555
|
+
}), (p, b) => {
|
|
556
|
+
const j = ce("ABtnSecondary"), I = ce("ABtnPrimary");
|
|
557
|
+
return S(), V(se, null, [
|
|
558
|
+
D(p.$slots, "activator", {
|
|
559
|
+
props: { onClick: q(() => P(), ["stop"]) }
|
|
567
560
|
}),
|
|
568
|
-
|
|
569
|
-
"model-value":
|
|
561
|
+
A(ut, et(p.$attrs, {
|
|
562
|
+
"model-value": l.value,
|
|
570
563
|
fullscreen: "",
|
|
571
564
|
class: "subject-select",
|
|
572
|
-
"onUpdate:modelValue":
|
|
565
|
+
"onUpdate:modelValue": b[1] || (b[1] = (E) => i("update:modelValue", E))
|
|
573
566
|
}), {
|
|
574
|
-
default:
|
|
575
|
-
|
|
567
|
+
default: T(() => [
|
|
568
|
+
l.value ? (S(), Q(ct, {
|
|
576
569
|
key: 0,
|
|
577
570
|
class: "subject-select__card"
|
|
578
571
|
}, {
|
|
579
|
-
default:
|
|
580
|
-
|
|
572
|
+
default: T(() => [
|
|
573
|
+
A(Xe, {
|
|
581
574
|
class: "subject-select__toolbar system-border-b",
|
|
582
|
-
onOnCancel:
|
|
575
|
+
onOnCancel: t
|
|
583
576
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
|
|
586
|
-
|
|
577
|
+
default: T(() => [
|
|
578
|
+
D(p.$slots, "title", {}, () => [
|
|
579
|
+
L(_(y(m)(n.dialogTitleT)), 1)
|
|
587
580
|
])
|
|
588
581
|
]),
|
|
589
582
|
_: 3
|
|
590
583
|
}),
|
|
591
|
-
|
|
584
|
+
A(pt, {
|
|
592
585
|
density: "compact",
|
|
593
586
|
color: "transparent",
|
|
594
587
|
height: 46,
|
|
595
588
|
elevation: "0",
|
|
596
589
|
class: "system-border-b subject-select__second-bar"
|
|
597
590
|
}, {
|
|
598
|
-
default:
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
591
|
+
default: T(() => [
|
|
592
|
+
D(p.$slots, "second-bar", {}, () => [
|
|
593
|
+
k("div", St, [
|
|
594
|
+
k("div", Bt, [
|
|
595
|
+
k("div", Et, [
|
|
596
|
+
A(z, {
|
|
604
597
|
icon: "",
|
|
605
598
|
width: 30,
|
|
606
599
|
height: 30,
|
|
607
|
-
onClick:
|
|
600
|
+
onClick: c
|
|
608
601
|
}, {
|
|
609
|
-
default:
|
|
610
|
-
|
|
602
|
+
default: T(() => [
|
|
603
|
+
A(mt, {
|
|
611
604
|
icon: "mdi-tune",
|
|
612
605
|
size: 16
|
|
613
606
|
}),
|
|
614
|
-
|
|
607
|
+
A(ft, {
|
|
615
608
|
activator: "parent",
|
|
616
609
|
location: "bottom"
|
|
617
610
|
}, {
|
|
618
|
-
default:
|
|
619
|
-
|
|
611
|
+
default: T(() => [
|
|
612
|
+
L(_(y(m)("common.subjectSelect.filter.toggle")), 1)
|
|
620
613
|
]),
|
|
621
614
|
_: 1
|
|
622
615
|
})
|
|
623
616
|
]),
|
|
624
617
|
_: 1
|
|
625
618
|
}),
|
|
626
|
-
|
|
619
|
+
D(p.$slots, "second-bar-left")
|
|
627
620
|
]),
|
|
628
|
-
|
|
629
|
-
|
|
621
|
+
k("div", Ot, [
|
|
622
|
+
D(p.$slots, "second-bar-right")
|
|
630
623
|
])
|
|
631
624
|
])
|
|
632
625
|
])
|
|
@@ -634,62 +627,62 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
|
|
|
634
627
|
]),
|
|
635
628
|
_: 3
|
|
636
629
|
}),
|
|
637
|
-
|
|
638
|
-
class:
|
|
630
|
+
k("div", {
|
|
631
|
+
class: Be(["subject-select__main", { "subject-select__main--sidebar-active": f.value }])
|
|
639
632
|
}, [
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
633
|
+
k("div", It, [
|
|
634
|
+
k("div", Dt, [
|
|
635
|
+
D(p.$slots, "filter")
|
|
643
636
|
])
|
|
644
637
|
]),
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
loading:
|
|
638
|
+
k("div", Nt, [
|
|
639
|
+
D(p.$slots, "content"),
|
|
640
|
+
n.paginationMode === "more" ? (S(), V("div", Vt, [
|
|
641
|
+
tt((S(), Q(j, {
|
|
642
|
+
loading: n.loading,
|
|
650
643
|
size: "small",
|
|
651
644
|
onClick: a
|
|
652
645
|
}, {
|
|
653
|
-
default:
|
|
654
|
-
|
|
655
|
-
|
|
646
|
+
default: T(() => [
|
|
647
|
+
D(p.$slots, "button-confirm-title", {}, () => [
|
|
648
|
+
L(_(y(m)("common.button.loadMore")), 1)
|
|
656
649
|
])
|
|
657
650
|
]),
|
|
658
651
|
_: 3
|
|
659
652
|
}, 8, ["loading"])), [
|
|
660
|
-
[
|
|
653
|
+
[at, o.value || n.loading],
|
|
661
654
|
[
|
|
662
|
-
|
|
663
|
-
|
|
655
|
+
gt,
|
|
656
|
+
U,
|
|
664
657
|
void 0,
|
|
665
658
|
{ quiet: !0 }
|
|
666
659
|
]
|
|
667
660
|
])
|
|
668
|
-
])) : (S(),
|
|
661
|
+
])) : (S(), Q(_t, {
|
|
669
662
|
key: 1,
|
|
670
|
-
modelValue:
|
|
671
|
-
"onUpdate:modelValue":
|
|
672
|
-
onChange:
|
|
663
|
+
modelValue: s.value,
|
|
664
|
+
"onUpdate:modelValue": b[0] || (b[0] = (E) => s.value = E),
|
|
665
|
+
onChange: g
|
|
673
666
|
}, null, 8, ["modelValue"]))
|
|
674
667
|
])
|
|
675
668
|
], 2),
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
count:
|
|
669
|
+
k("div", Lt, [
|
|
670
|
+
n.minCount === n.maxCount ? (S(), V("div", jt, _(y(m)("common.subjectSelect.texts.pickExactCount", {
|
|
671
|
+
count: n.minCount,
|
|
679
672
|
selected: C.value
|
|
680
|
-
})), 1)) : (S(),
|
|
681
|
-
minCount:
|
|
682
|
-
maxCount:
|
|
673
|
+
})), 1)) : (S(), V("div", Rt, _(y(m)("common.subjectSelect.texts.pickRangeCount", {
|
|
674
|
+
minCount: n.minCount,
|
|
675
|
+
maxCount: n.maxCount,
|
|
683
676
|
selected: C.value
|
|
684
677
|
})), 1)),
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
disabled:
|
|
688
|
-
onClick:
|
|
678
|
+
A(dt),
|
|
679
|
+
A(I, {
|
|
680
|
+
disabled: v.value,
|
|
681
|
+
onClick: q(h, ["stop"])
|
|
689
682
|
}, {
|
|
690
|
-
default:
|
|
691
|
-
|
|
692
|
-
|
|
683
|
+
default: T(() => [
|
|
684
|
+
D(p.$slots, "button-confirm-title", {}, () => [
|
|
685
|
+
L(_(y(m)("common.button.confirm")), 1)
|
|
693
686
|
])
|
|
694
687
|
]),
|
|
695
688
|
_: 3
|
|
@@ -697,7 +690,7 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
|
|
|
697
690
|
])
|
|
698
691
|
]),
|
|
699
692
|
_: 3
|
|
700
|
-
})) :
|
|
693
|
+
})) : Ee("", !0)
|
|
701
694
|
]),
|
|
702
695
|
_: 3
|
|
703
696
|
}, 16, ["model-value"])
|
|
@@ -706,44 +699,44 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
|
|
|
706
699
|
}
|
|
707
700
|
});
|
|
708
701
|
export {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
702
|
+
aa as ADatatableOrdering,
|
|
703
|
+
_t as ADatatablePagination,
|
|
704
|
+
ua as AFilterBooleanSelect,
|
|
705
|
+
da as AFilterDatetimePicker,
|
|
706
|
+
ma as AFilterInteger,
|
|
707
|
+
pa as AFilterRemoteAutocomplete,
|
|
708
|
+
fa as AFilterRemoteAutocompleteWithMinimal,
|
|
709
|
+
ga as AFilterString,
|
|
710
|
+
va as AFilterTimeInterval,
|
|
711
|
+
ba as AFilterValueObjectOptionsSelect,
|
|
712
|
+
ha as AFilterWrapper,
|
|
713
|
+
ya as AFilterWrapperSubjectSelect,
|
|
714
|
+
Ca as AFormRemoteAutocomplete,
|
|
715
|
+
la as ASubjectSelect,
|
|
716
|
+
ue as DatatablePaginationKey,
|
|
717
|
+
Aa as FilterConfigKey,
|
|
718
|
+
Pa as FilterDataKey,
|
|
719
|
+
wa as FilterInnerConfigKey,
|
|
720
|
+
_a as FilterInnerDataKey,
|
|
721
|
+
xa as TimeIntervalSpecialOptions,
|
|
722
|
+
ka as UserAdminConfigLayoutType,
|
|
723
|
+
Ta as UserAdminConfigLayoutTypeDefault,
|
|
724
|
+
Fa as UserAdminConfigType,
|
|
725
|
+
Sa as UserAdminConfigTypeDefault,
|
|
726
|
+
Ft as createDatatableColumnsConfig,
|
|
727
|
+
Ba as createFilter,
|
|
728
|
+
Ea as createFilterStore,
|
|
729
|
+
ae as generateListQuery,
|
|
730
|
+
oa as useApiFetchByIds,
|
|
731
|
+
$e as useApiFetchList,
|
|
732
|
+
sa as useApiFetchListBatch,
|
|
733
|
+
Ve as useApiQueryBuilder,
|
|
734
|
+
Oa as useApiRequest,
|
|
735
|
+
Ye as useFilterHelpers,
|
|
736
|
+
na as useJobApi,
|
|
737
|
+
Te as usePagination,
|
|
738
|
+
ra as useSubjectSelect,
|
|
739
|
+
Ia as useUserAdminConfigApi,
|
|
740
|
+
Da as useUserAdminConfigFactory
|
|
748
741
|
};
|
|
749
742
|
//# sourceMappingURL=labs.js.map
|