@anzusystems/common-admin 1.47.0-beta.dev-1771794052 → 1.47.0-beta.dev-1771894800
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-DWMjveFQ.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DF5mypdx.mjs} +2243 -2114
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DF5mypdx.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.d.ts +381 -183
- package/dist/common-admin.js +11211 -10469
- package/dist/common-admin.js.map +1 -1
- package/dist/labs.d.ts +19 -88
- package/dist/labs.js +460 -427
- package/dist/labs.js.map +1 -1
- package/package.json +19 -15
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DWMjveFQ.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-DF5mypdx.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-DF5mypdx.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,83 +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:
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
const { t: l } = ne(), s = [
|
|
37
|
+
{
|
|
38
|
+
id: 1,
|
|
39
|
+
titleT: "common.system.datatable.ordering.mostRecent",
|
|
40
|
+
sortBy: { key: "createdAt", order: N.Desc }
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 2,
|
|
44
|
+
titleT: "common.system.datatable.ordering.oldest",
|
|
45
|
+
sortBy: { key: "createdAt", order: N.Asc }
|
|
46
|
+
}
|
|
47
|
+
], f = [
|
|
48
|
+
{
|
|
49
|
+
id: 1,
|
|
50
|
+
titleT: "common.system.datatable.ordering.mostRecent",
|
|
51
|
+
sortBy: { key: "id", order: N.Desc }
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: 2,
|
|
55
|
+
titleT: "common.system.datatable.ordering.oldest",
|
|
56
|
+
sortBy: { key: "id", order: N.Asc }
|
|
57
|
+
}
|
|
58
|
+
], m = [
|
|
43
59
|
{
|
|
44
60
|
id: 3,
|
|
45
61
|
titleT: "common.system.datatable.ordering.mostRelevant",
|
|
46
|
-
sortBy: { key:
|
|
62
|
+
sortBy: { key: Ne, order: N.Desc }
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: 1,
|
|
66
|
+
titleT: "common.system.datatable.ordering.mostRecent",
|
|
67
|
+
sortBy: { key: "createdAt", order: N.Desc }
|
|
47
68
|
},
|
|
48
|
-
{
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
69
|
+
{
|
|
70
|
+
id: 2,
|
|
71
|
+
titleT: "common.system.datatable.ordering.oldest",
|
|
72
|
+
sortBy: { key: "createdAt", order: N.Asc }
|
|
73
|
+
}
|
|
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
|
+
sortBy: null
|
|
83
|
+
}, e("sortByChange", t)), r.value.sortBy = t.sortBy, e("sortByChange", t);
|
|
57
84
|
};
|
|
58
|
-
return
|
|
59
|
-
if (
|
|
60
|
-
const a =
|
|
61
|
-
if (!
|
|
62
|
-
if (
|
|
63
|
-
|
|
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);
|
|
64
91
|
return;
|
|
65
92
|
}
|
|
66
|
-
|
|
93
|
+
u.paginationUpdateCustomCb(a, r);
|
|
67
94
|
}
|
|
68
|
-
}),
|
|
69
|
-
|
|
70
|
-
(
|
|
71
|
-
if (
|
|
95
|
+
}), W(
|
|
96
|
+
r,
|
|
97
|
+
(t, h) => {
|
|
98
|
+
if (t.sortBy?.key === h?.sortBy?.key && t.sortBy?.order === h?.sortBy?.order)
|
|
72
99
|
return;
|
|
73
|
-
const a =
|
|
74
|
-
|
|
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);
|
|
75
102
|
},
|
|
76
103
|
{ immediate: !0 }
|
|
77
|
-
), (
|
|
78
|
-
|
|
79
|
-
|
|
104
|
+
), (t, h) => (S(), V("div", vt, [
|
|
105
|
+
k("div", bt, _(y(l)("common.system.datatable.ordering.title")) + ": ", 1),
|
|
106
|
+
A(z, {
|
|
80
107
|
variant: "text",
|
|
81
108
|
rounded: "xl",
|
|
82
109
|
size: "small",
|
|
83
110
|
"append-icon": "mdi-chevron-down"
|
|
84
111
|
}, {
|
|
85
|
-
default:
|
|
86
|
-
|
|
87
|
-
|
|
112
|
+
default: T(() => [
|
|
113
|
+
L(_(C.value) + " ", 1),
|
|
114
|
+
A(rt, {
|
|
88
115
|
activator: "parent",
|
|
89
116
|
location: "bottom",
|
|
90
117
|
"close-on-content-click": ""
|
|
91
118
|
}, {
|
|
92
|
-
default:
|
|
93
|
-
|
|
119
|
+
default: T(() => [
|
|
120
|
+
A(ot, {
|
|
94
121
|
density: "compact",
|
|
95
122
|
class: "pa-0"
|
|
96
123
|
}, {
|
|
97
|
-
default:
|
|
98
|
-
(S(!0),
|
|
124
|
+
default: T(() => [
|
|
125
|
+
(S(!0), V(se, null, Se(v.value, (a) => (S(), Q(st, {
|
|
99
126
|
key: a.id,
|
|
100
|
-
onClick: (
|
|
127
|
+
onClick: (g) => P(a)
|
|
101
128
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
|
|
104
|
-
class:
|
|
129
|
+
default: T(() => [
|
|
130
|
+
A(nt, {
|
|
131
|
+
class: Be({ "font-weight-bold": a.id === i.value })
|
|
105
132
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
|
|
133
|
+
default: T(() => [
|
|
134
|
+
L(_(y(l)(a.titleT)), 1)
|
|
108
135
|
]),
|
|
109
136
|
_: 2
|
|
110
137
|
}, 1032, ["class"])
|
|
@@ -122,63 +149,63 @@ const _t = { class: "d-flex align-center justify-center" }, xt = { class: "text-
|
|
|
122
149
|
})
|
|
123
150
|
]));
|
|
124
151
|
}
|
|
125
|
-
}),
|
|
152
|
+
}), ht = { class: "anzu-data-footer" }, yt = {
|
|
126
153
|
key: 0,
|
|
127
154
|
class: "anzu-data-footer__page-limit"
|
|
128
|
-
},
|
|
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({
|
|
129
156
|
__name: "ADatatablePagination",
|
|
130
157
|
props: {
|
|
131
158
|
itemsPerPageOptions: { default: () => [10, 25, 50] },
|
|
132
159
|
hideRecordsPerPage: { type: Boolean, default: !1 }
|
|
133
160
|
},
|
|
134
161
|
emits: ["change"],
|
|
135
|
-
setup(
|
|
136
|
-
const
|
|
137
|
-
if (
|
|
162
|
+
setup(n, { emit: d }) {
|
|
163
|
+
const u = d, e = Fe(ue);
|
|
164
|
+
if (B(e))
|
|
138
165
|
throw new Error("Incorrect provide/inject config.");
|
|
139
|
-
const { t:
|
|
140
|
-
|
|
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(
|
|
141
168
|
() => e.value.rowsPerPage,
|
|
142
|
-
(a,
|
|
143
|
-
a !==
|
|
169
|
+
(a, g) => {
|
|
170
|
+
a !== g && (e.value.page = 1, u("change"));
|
|
144
171
|
}
|
|
145
|
-
),
|
|
172
|
+
), W(
|
|
146
173
|
() => e.value.page,
|
|
147
|
-
(a,
|
|
148
|
-
a !==
|
|
174
|
+
(a, g) => {
|
|
175
|
+
a !== g && u("change");
|
|
149
176
|
}
|
|
150
177
|
);
|
|
151
|
-
const
|
|
178
|
+
const P = Y(() => {
|
|
152
179
|
e.value.page = 1;
|
|
153
|
-
}, 300),
|
|
154
|
-
e.value.page =
|
|
155
|
-
}, 300),
|
|
180
|
+
}, 300), c = Y(() => {
|
|
181
|
+
e.value.page = r.value;
|
|
182
|
+
}, 300), t = Y(() => {
|
|
156
183
|
e.value.page = e.value.page - 1;
|
|
157
|
-
}, 300),
|
|
184
|
+
}, 300), h = Y(() => {
|
|
158
185
|
e.value.page = e.value.page + 1;
|
|
159
186
|
}, 300);
|
|
160
|
-
return (a,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
modelValue:
|
|
165
|
-
"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),
|
|
166
193
|
class: "ml-2",
|
|
167
194
|
density: "compact",
|
|
168
195
|
mandatory: "",
|
|
169
196
|
"data-cy": "table-size"
|
|
170
197
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
(S(!0),
|
|
173
|
-
key:
|
|
174
|
-
color:
|
|
175
|
-
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,
|
|
176
203
|
density: "compact",
|
|
177
204
|
size: "small",
|
|
178
205
|
variant: "text"
|
|
179
206
|
}, {
|
|
180
|
-
default:
|
|
181
|
-
|
|
207
|
+
default: T(() => [
|
|
208
|
+
L(_(F), 1)
|
|
182
209
|
]),
|
|
183
210
|
_: 2
|
|
184
211
|
}, 1032, ["color", "value"]))), 128))
|
|
@@ -186,294 +213,297 @@ const _t = { class: "d-flex align-center justify-center" }, xt = { class: "text-
|
|
|
186
213
|
_: 1
|
|
187
214
|
}, 8, ["modelValue"])
|
|
188
215
|
])),
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
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,
|
|
193
220
|
icon: "mdi-page-first",
|
|
194
221
|
size: "small",
|
|
195
222
|
variant: "text",
|
|
196
|
-
onClick:
|
|
223
|
+
onClick: q(y(P), ["stop"])
|
|
197
224
|
}, null, 8, ["disabled", "onClick"]),
|
|
198
|
-
|
|
199
|
-
disabled:
|
|
225
|
+
A(z, {
|
|
226
|
+
disabled: f.value,
|
|
200
227
|
icon: "mdi-chevron-left",
|
|
201
228
|
size: "small",
|
|
202
229
|
variant: "text",
|
|
203
|
-
onClick:
|
|
230
|
+
onClick: q(y(t), ["stop"])
|
|
204
231
|
}, null, 8, ["disabled", "onClick"])
|
|
205
232
|
]),
|
|
206
|
-
|
|
207
|
-
|
|
233
|
+
k("div", Pt, [
|
|
234
|
+
k("span", null, _(y(e).page), 1)
|
|
208
235
|
]),
|
|
209
|
-
|
|
210
|
-
|
|
236
|
+
k("div", wt, [
|
|
237
|
+
A(z, {
|
|
211
238
|
disabled: C.value,
|
|
212
239
|
icon: "mdi-chevron-right",
|
|
213
240
|
size: "small",
|
|
214
241
|
variant: "text",
|
|
215
|
-
onClick:
|
|
242
|
+
onClick: q(y(h), ["stop"])
|
|
216
243
|
}, null, 8, ["disabled", "onClick"]),
|
|
217
|
-
|
|
218
|
-
disabled:
|
|
244
|
+
A(z, {
|
|
245
|
+
disabled: m.value,
|
|
219
246
|
icon: "mdi-page-last",
|
|
220
247
|
size: "small",
|
|
221
248
|
variant: "text",
|
|
222
|
-
onClick:
|
|
249
|
+
onClick: q(y(c), ["stop"])
|
|
223
250
|
}, null, 8, ["disabled", "onClick"])
|
|
224
251
|
])
|
|
225
252
|
]));
|
|
226
253
|
}
|
|
227
|
-
}),
|
|
228
|
-
const { querySetLimit: e, querySetOffset:
|
|
229
|
-
return e(
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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;
|
|
235
269
|
return {
|
|
236
|
-
executeFetch: async (
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
typeof N == "object" && N !== null ? (T = N.urlTemplateOverride, E = N.urlParamsOverride) : (T = N, E = g);
|
|
270
|
+
executeFetch: async (P, c = {}) => {
|
|
271
|
+
m = new AbortController();
|
|
272
|
+
const { urlTemplate: t, urlParams: h } = c;
|
|
240
273
|
try {
|
|
241
|
-
const
|
|
242
|
-
if (
|
|
243
|
-
const
|
|
244
|
-
...
|
|
245
|
-
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
|
|
246
279
|
});
|
|
247
|
-
if (!
|
|
248
|
-
throw new
|
|
249
|
-
if (
|
|
250
|
-
return
|
|
251
|
-
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)
|
|
252
285
|
return [];
|
|
253
|
-
throw new
|
|
254
|
-
} catch (
|
|
255
|
-
if (
|
|
286
|
+
throw new ee();
|
|
287
|
+
} catch (a) {
|
|
288
|
+
if (a instanceof DOMException && a.name === "AbortError")
|
|
256
289
|
return [];
|
|
257
|
-
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));
|
|
258
291
|
} finally {
|
|
259
|
-
|
|
292
|
+
m = null;
|
|
260
293
|
}
|
|
261
294
|
},
|
|
262
295
|
abortFetch: () => {
|
|
263
|
-
|
|
296
|
+
m && m.abort();
|
|
264
297
|
}
|
|
265
298
|
};
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
let
|
|
269
|
-
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 ?? {});
|
|
270
|
-
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;
|
|
271
302
|
return {
|
|
272
|
-
executeFetch: async (
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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;
|
|
276
313
|
try {
|
|
277
|
-
const
|
|
278
|
-
if (
|
|
279
|
-
const { pagination:
|
|
280
|
-
rowsPerPage:
|
|
281
|
-
}),
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
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),
|
|
320
|
+
{
|
|
321
|
+
...l,
|
|
322
|
+
signal: s.signal
|
|
323
|
+
}
|
|
324
|
+
);
|
|
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),
|
|
294
334
|
{
|
|
295
|
-
...
|
|
296
|
-
signal:
|
|
335
|
+
...l,
|
|
336
|
+
signal: s.signal
|
|
297
337
|
}
|
|
298
338
|
)).data;
|
|
299
|
-
|
|
339
|
+
I.push(...O.data), b.value.hasNextPage = O.hasNextPage;
|
|
300
340
|
}
|
|
301
|
-
else if (
|
|
302
|
-
if (
|
|
303
|
-
return
|
|
304
|
-
const
|
|
305
|
-
for (let
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
...
|
|
310
|
-
signal:
|
|
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
|
|
311
351
|
})
|
|
312
352
|
);
|
|
313
353
|
}
|
|
314
|
-
(await Promise.all(
|
|
315
|
-
|
|
354
|
+
(await Promise.all(J)).forEach((x) => {
|
|
355
|
+
I.push(...x.data.data);
|
|
316
356
|
});
|
|
317
357
|
}
|
|
318
|
-
return
|
|
358
|
+
return I;
|
|
319
359
|
}
|
|
320
|
-
if (
|
|
360
|
+
if (E.status === fe)
|
|
321
361
|
return [];
|
|
322
|
-
throw new
|
|
323
|
-
} catch (
|
|
324
|
-
if (
|
|
362
|
+
throw new ee();
|
|
363
|
+
} catch (o) {
|
|
364
|
+
if (o instanceof DOMException && o.name === "AbortError")
|
|
325
365
|
return [];
|
|
326
|
-
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));
|
|
327
367
|
} finally {
|
|
328
|
-
|
|
368
|
+
s = null;
|
|
329
369
|
}
|
|
330
370
|
},
|
|
331
371
|
abortFetch: () => {
|
|
332
|
-
|
|
372
|
+
s && s.abort();
|
|
333
373
|
}
|
|
334
374
|
};
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
function po(t, b) {
|
|
375
|
+
}, G = "/adm/v1/job", X = "job";
|
|
376
|
+
function na(n, d) {
|
|
338
377
|
return {
|
|
339
|
-
useFetchJobList: () =>
|
|
340
|
-
fetchJob: (
|
|
341
|
-
createJob: (
|
|
342
|
-
const
|
|
343
|
-
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);
|
|
344
383
|
},
|
|
345
|
-
deleteJob: (
|
|
384
|
+
deleteJob: (l) => Re(n, G + "/:id", { id: l }, d, X)
|
|
346
385
|
};
|
|
347
386
|
}
|
|
348
|
-
const
|
|
387
|
+
const kt = {
|
|
349
388
|
key: "",
|
|
350
389
|
title: void 0,
|
|
351
390
|
sortable: !1,
|
|
352
391
|
fixed: !1
|
|
353
|
-
},
|
|
392
|
+
}, Tt = {
|
|
354
393
|
storeColumnsLocalStorage: !0,
|
|
355
394
|
disableActions: !1,
|
|
356
395
|
customI18n: void 0,
|
|
357
396
|
showExpand: !1
|
|
358
397
|
};
|
|
359
|
-
function
|
|
360
|
-
const
|
|
361
|
-
let
|
|
362
|
-
|
|
363
|
-
const
|
|
364
|
-
const
|
|
365
|
-
return
|
|
366
|
-
}), C =
|
|
367
|
-
const
|
|
368
|
-
return
|
|
369
|
-
|
|
370
|
-
}),
|
|
371
|
-
}),
|
|
372
|
-
if (!
|
|
373
|
-
const
|
|
374
|
-
if (!
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
},
|
|
378
|
-
!
|
|
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 }));
|
|
379
418
|
};
|
|
380
|
-
return
|
|
381
|
-
|
|
382
|
-
}),
|
|
383
|
-
|
|
419
|
+
return Oe(() => {
|
|
420
|
+
v();
|
|
421
|
+
}), W(d, (c) => {
|
|
422
|
+
P(c);
|
|
384
423
|
}), {
|
|
385
|
-
columnsAll:
|
|
424
|
+
columnsAll: m,
|
|
386
425
|
columnsVisible: C,
|
|
387
|
-
columnsHidden:
|
|
426
|
+
columnsHidden: d
|
|
388
427
|
};
|
|
389
428
|
}
|
|
390
|
-
function
|
|
391
|
-
const
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
), { 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, {
|
|
395
434
|
storeFiltersLocalStorage: !1,
|
|
396
435
|
populateUrlParams: !1
|
|
397
|
-
}), { showErrorsDefault:
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
436
|
+
}), { showErrorsDefault: o } = Ge(), { columnsVisible: U, columnsAll: p, columnsHidden: b } = Ft(
|
|
437
|
+
n,
|
|
438
|
+
d,
|
|
439
|
+
u,
|
|
401
440
|
e,
|
|
402
|
-
{ storeColumnsLocalStorage: !1, disableActions: !
|
|
403
|
-
),
|
|
404
|
-
|
|
405
|
-
},
|
|
406
|
-
|
|
407
|
-
},
|
|
408
|
-
|
|
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();
|
|
409
448
|
try {
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
i,
|
|
415
|
-
c,
|
|
416
|
-
C
|
|
417
|
-
);
|
|
418
|
-
u.value.push(...A);
|
|
419
|
-
} catch (A) {
|
|
420
|
-
g(A);
|
|
449
|
+
const x = await i(t, r, l, f);
|
|
450
|
+
v.value.push(...x);
|
|
451
|
+
} catch (x) {
|
|
452
|
+
o(x);
|
|
421
453
|
} finally {
|
|
422
|
-
|
|
454
|
+
c.value = !1;
|
|
423
455
|
}
|
|
424
|
-
},
|
|
425
|
-
|
|
426
|
-
},
|
|
427
|
-
|
|
456
|
+
}, R = () => {
|
|
457
|
+
v.value = [], P.value = [];
|
|
458
|
+
}, J = async () => {
|
|
459
|
+
c.value = !0;
|
|
428
460
|
try {
|
|
429
|
-
|
|
430
|
-
|
|
461
|
+
v.value = await i(
|
|
462
|
+
t,
|
|
463
|
+
r,
|
|
431
464
|
l,
|
|
432
|
-
|
|
433
|
-
i,
|
|
434
|
-
c,
|
|
435
|
-
C
|
|
465
|
+
f
|
|
436
466
|
);
|
|
437
|
-
} catch (
|
|
438
|
-
|
|
467
|
+
} catch (x) {
|
|
468
|
+
o(x);
|
|
439
469
|
} finally {
|
|
440
|
-
|
|
470
|
+
c.value = !1;
|
|
441
471
|
}
|
|
442
|
-
},
|
|
443
|
-
await
|
|
472
|
+
}, O = lt(async () => {
|
|
473
|
+
await J();
|
|
444
474
|
});
|
|
445
475
|
return {
|
|
446
|
-
items:
|
|
447
|
-
selected:
|
|
448
|
-
pagination:
|
|
449
|
-
columnsVisible:
|
|
450
|
-
columnsHidden:
|
|
451
|
-
columnsAll:
|
|
452
|
-
filterTouched:
|
|
453
|
-
loading:
|
|
454
|
-
onRowClick: (
|
|
455
|
-
const
|
|
456
|
-
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")
|
|
457
487
|
return;
|
|
458
|
-
const
|
|
459
|
-
if (!
|
|
460
|
-
const
|
|
461
|
-
if (!
|
|
462
|
-
const
|
|
463
|
-
|
|
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();
|
|
464
494
|
},
|
|
465
|
-
onFetchNextPage:
|
|
466
|
-
onOpen:
|
|
467
|
-
sortByChange:
|
|
468
|
-
getList:
|
|
469
|
-
resetFilter: () =>
|
|
470
|
-
submitFilter: () =>
|
|
495
|
+
onFetchNextPage: E,
|
|
496
|
+
onOpen: j,
|
|
497
|
+
sortByChange: I,
|
|
498
|
+
getList: O,
|
|
499
|
+
resetFilter: () => g(t, O),
|
|
500
|
+
submitFilter: () => F(t, O)
|
|
471
501
|
};
|
|
472
502
|
}
|
|
473
|
-
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 = {
|
|
474
504
|
key: 0,
|
|
475
505
|
class: "d-flex w-100 align-center justify-center pa-4"
|
|
476
|
-
},
|
|
506
|
+
}, Lt = { class: "subject-select__actions system-border-t" }, jt = { key: 0 }, Rt = { key: 1 }, la = /* @__PURE__ */ oe({
|
|
477
507
|
__name: "ASubjectSelect",
|
|
478
508
|
props: {
|
|
479
509
|
selectedItems: {},
|
|
@@ -487,109 +517,109 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
|
|
|
487
517
|
autoOpen: { type: Boolean, default: !1 }
|
|
488
518
|
},
|
|
489
519
|
emits: ["update:modelValue", "update:pagination", "onOpen", "onPageChange", "onConfirm", "onFetchNextPage"],
|
|
490
|
-
setup(
|
|
491
|
-
const e =
|
|
520
|
+
setup(n, { expose: d, emit: u }) {
|
|
521
|
+
const e = n, i = u, r = $(!1), l = w({
|
|
492
522
|
get() {
|
|
493
|
-
return
|
|
523
|
+
return B(e.modelValue) ? r.value : e.modelValue;
|
|
494
524
|
},
|
|
495
|
-
set(
|
|
496
|
-
|
|
525
|
+
set(p) {
|
|
526
|
+
r.value = p, i("update:modelValue", p);
|
|
497
527
|
}
|
|
498
|
-
}),
|
|
528
|
+
}), s = w({
|
|
499
529
|
get: () => e.pagination,
|
|
500
|
-
set: (
|
|
501
|
-
|
|
530
|
+
set: (p) => {
|
|
531
|
+
i("update:pagination", { ...ie(p) });
|
|
502
532
|
}
|
|
503
|
-
}),
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
},
|
|
510
|
-
|
|
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(
|
|
511
541
|
"onConfirm",
|
|
512
|
-
e.selectedItems.map((
|
|
513
|
-
),
|
|
542
|
+
e.selectedItems.map((p) => ie(p))
|
|
543
|
+
), t();
|
|
514
544
|
}, a = () => {
|
|
515
|
-
|
|
516
|
-
},
|
|
517
|
-
|
|
518
|
-
},
|
|
519
|
-
|
|
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();
|
|
520
550
|
};
|
|
521
|
-
return
|
|
522
|
-
e.autoOpen &&
|
|
523
|
-
}),
|
|
524
|
-
open:
|
|
525
|
-
}), (
|
|
526
|
-
const
|
|
527
|
-
return S(),
|
|
528
|
-
|
|
529
|
-
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"]) }
|
|
530
560
|
}),
|
|
531
|
-
|
|
532
|
-
"model-value":
|
|
561
|
+
A(ut, et(p.$attrs, {
|
|
562
|
+
"model-value": l.value,
|
|
533
563
|
fullscreen: "",
|
|
534
564
|
class: "subject-select",
|
|
535
|
-
"onUpdate:modelValue":
|
|
565
|
+
"onUpdate:modelValue": b[1] || (b[1] = (E) => i("update:modelValue", E))
|
|
536
566
|
}), {
|
|
537
|
-
default:
|
|
538
|
-
|
|
567
|
+
default: T(() => [
|
|
568
|
+
l.value ? (S(), Q(ct, {
|
|
539
569
|
key: 0,
|
|
540
570
|
class: "subject-select__card"
|
|
541
571
|
}, {
|
|
542
|
-
default:
|
|
543
|
-
|
|
572
|
+
default: T(() => [
|
|
573
|
+
A(Xe, {
|
|
544
574
|
class: "subject-select__toolbar system-border-b",
|
|
545
|
-
onOnCancel:
|
|
575
|
+
onOnCancel: t
|
|
546
576
|
}, {
|
|
547
|
-
default:
|
|
548
|
-
|
|
549
|
-
|
|
577
|
+
default: T(() => [
|
|
578
|
+
D(p.$slots, "title", {}, () => [
|
|
579
|
+
L(_(y(m)(n.dialogTitleT)), 1)
|
|
550
580
|
])
|
|
551
581
|
]),
|
|
552
582
|
_: 3
|
|
553
583
|
}),
|
|
554
|
-
|
|
584
|
+
A(pt, {
|
|
555
585
|
density: "compact",
|
|
556
586
|
color: "transparent",
|
|
557
587
|
height: 46,
|
|
558
588
|
elevation: "0",
|
|
559
589
|
class: "system-border-b subject-select__second-bar"
|
|
560
590
|
}, {
|
|
561
|
-
default:
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
591
|
+
default: T(() => [
|
|
592
|
+
D(p.$slots, "second-bar", {}, () => [
|
|
593
|
+
k("div", St, [
|
|
594
|
+
k("div", Bt, [
|
|
595
|
+
k("div", Et, [
|
|
596
|
+
A(z, {
|
|
567
597
|
icon: "",
|
|
568
598
|
width: 30,
|
|
569
599
|
height: 30,
|
|
570
|
-
onClick:
|
|
600
|
+
onClick: c
|
|
571
601
|
}, {
|
|
572
|
-
default:
|
|
573
|
-
|
|
602
|
+
default: T(() => [
|
|
603
|
+
A(mt, {
|
|
574
604
|
icon: "mdi-tune",
|
|
575
605
|
size: 16
|
|
576
606
|
}),
|
|
577
|
-
|
|
607
|
+
A(ft, {
|
|
578
608
|
activator: "parent",
|
|
579
609
|
location: "bottom"
|
|
580
610
|
}, {
|
|
581
|
-
default:
|
|
582
|
-
|
|
611
|
+
default: T(() => [
|
|
612
|
+
L(_(y(m)("common.subjectSelect.filter.toggle")), 1)
|
|
583
613
|
]),
|
|
584
614
|
_: 1
|
|
585
615
|
})
|
|
586
616
|
]),
|
|
587
617
|
_: 1
|
|
588
618
|
}),
|
|
589
|
-
|
|
619
|
+
D(p.$slots, "second-bar-left")
|
|
590
620
|
]),
|
|
591
|
-
|
|
592
|
-
|
|
621
|
+
k("div", Ot, [
|
|
622
|
+
D(p.$slots, "second-bar-right")
|
|
593
623
|
])
|
|
594
624
|
])
|
|
595
625
|
])
|
|
@@ -597,59 +627,62 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
|
|
|
597
627
|
]),
|
|
598
628
|
_: 3
|
|
599
629
|
}),
|
|
600
|
-
|
|
601
|
-
class:
|
|
630
|
+
k("div", {
|
|
631
|
+
class: Be(["subject-select__main", { "subject-select__main--sidebar-active": f.value }])
|
|
602
632
|
}, [
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
633
|
+
k("div", It, [
|
|
634
|
+
k("div", Dt, [
|
|
635
|
+
D(p.$slots, "filter")
|
|
606
636
|
])
|
|
607
637
|
]),
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
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,
|
|
613
643
|
size: "small",
|
|
614
644
|
onClick: a
|
|
615
645
|
}, {
|
|
616
|
-
default:
|
|
617
|
-
|
|
618
|
-
|
|
646
|
+
default: T(() => [
|
|
647
|
+
D(p.$slots, "button-confirm-title", {}, () => [
|
|
648
|
+
L(_(y(m)("common.button.loadMore")), 1)
|
|
619
649
|
])
|
|
620
650
|
]),
|
|
621
651
|
_: 3
|
|
622
652
|
}, 8, ["loading"])), [
|
|
623
|
-
[
|
|
653
|
+
[at, o.value || n.loading],
|
|
624
654
|
[
|
|
625
|
-
|
|
626
|
-
|
|
655
|
+
gt,
|
|
656
|
+
U,
|
|
627
657
|
void 0,
|
|
628
658
|
{ quiet: !0 }
|
|
629
659
|
]
|
|
630
660
|
])
|
|
631
|
-
])) : (S(),
|
|
661
|
+
])) : (S(), Q(_t, {
|
|
632
662
|
key: 1,
|
|
633
|
-
modelValue:
|
|
634
|
-
"onUpdate:modelValue":
|
|
635
|
-
onChange:
|
|
663
|
+
modelValue: s.value,
|
|
664
|
+
"onUpdate:modelValue": b[0] || (b[0] = (E) => s.value = E),
|
|
665
|
+
onChange: g
|
|
636
666
|
}, null, 8, ["modelValue"]))
|
|
637
667
|
])
|
|
638
668
|
], 2),
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
669
|
+
k("div", Lt, [
|
|
670
|
+
n.minCount === n.maxCount ? (S(), V("div", jt, _(y(m)("common.subjectSelect.texts.pickExactCount", {
|
|
671
|
+
count: n.minCount,
|
|
672
|
+
selected: C.value
|
|
673
|
+
})), 1)) : (S(), V("div", Rt, _(y(m)("common.subjectSelect.texts.pickRangeCount", {
|
|
674
|
+
minCount: n.minCount,
|
|
675
|
+
maxCount: n.maxCount,
|
|
643
676
|
selected: C.value
|
|
644
677
|
})), 1)),
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
disabled:
|
|
648
|
-
onClick:
|
|
678
|
+
A(dt),
|
|
679
|
+
A(I, {
|
|
680
|
+
disabled: v.value,
|
|
681
|
+
onClick: q(h, ["stop"])
|
|
649
682
|
}, {
|
|
650
|
-
default:
|
|
651
|
-
|
|
652
|
-
|
|
683
|
+
default: T(() => [
|
|
684
|
+
D(p.$slots, "button-confirm-title", {}, () => [
|
|
685
|
+
L(_(y(m)("common.button.confirm")), 1)
|
|
653
686
|
])
|
|
654
687
|
]),
|
|
655
688
|
_: 3
|
|
@@ -657,7 +690,7 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
|
|
|
657
690
|
])
|
|
658
691
|
]),
|
|
659
692
|
_: 3
|
|
660
|
-
})) :
|
|
693
|
+
})) : Ee("", !0)
|
|
661
694
|
]),
|
|
662
695
|
_: 3
|
|
663
696
|
}, 16, ["model-value"])
|
|
@@ -666,44 +699,44 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
|
|
|
666
699
|
}
|
|
667
700
|
});
|
|
668
701
|
export {
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
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
|
|
708
741
|
};
|
|
709
742
|
//# sourceMappingURL=labs.js.map
|