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