@anzusystems/common-admin 1.47.0-beta.dev-1775683200 → 1.47.0-beta.dev-1775683400
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-DjYHyeck.mjs} +1247 -1230
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DjYHyeck.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.js +287 -287
- package/dist/common-admin.js.map +1 -1
- 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 +378 -369
- package/dist/labs.js.map +1 -1
- package/dist/{webfontloader-vTXSwNiv.mjs → webfontloader-CtCXi-3v.mjs} +2 -2
- package/dist/{webfontloader-vTXSwNiv.mjs.map → webfontloader-CtCXi-3v.mjs.map} +1 -1
- package/package.json +7 -7
- package/src/eslint/plugin.mjs +6 -5
- 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-DjYHyeck.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-DjYHyeck.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,306 @@ 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 {
|
|
303
|
-
|
|
302
|
+
}, ca = (r) => {
|
|
303
|
+
const {
|
|
304
|
+
client: f,
|
|
305
|
+
system: d,
|
|
306
|
+
entity: e,
|
|
307
|
+
urlTemplate: i,
|
|
308
|
+
urlParams: c,
|
|
309
|
+
options: s = {},
|
|
310
|
+
silentConsoleError: m = !1
|
|
311
|
+
} = r;
|
|
312
|
+
let l = null;
|
|
304
313
|
return {
|
|
305
|
-
executeFetch: async (
|
|
306
|
-
|
|
314
|
+
executeFetch: async (p, b, u = {}) => {
|
|
315
|
+
l = new AbortController();
|
|
307
316
|
const {
|
|
308
|
-
urlTemplate:
|
|
309
|
-
urlParams:
|
|
310
|
-
sortBy:
|
|
317
|
+
urlTemplate: t,
|
|
318
|
+
urlParams: h,
|
|
319
|
+
sortBy: g = "id",
|
|
311
320
|
sortDesc: a = !0,
|
|
312
|
-
batchSize:
|
|
321
|
+
batchSize: A = 100,
|
|
313
322
|
forceElastic: x = !1
|
|
314
|
-
} =
|
|
323
|
+
} = u;
|
|
315
324
|
try {
|
|
316
|
-
const o =
|
|
317
|
-
if (
|
|
318
|
-
const { pagination:
|
|
319
|
-
rowsPerPage:
|
|
320
|
-
}),
|
|
321
|
-
|
|
325
|
+
const o = b.general.elastic || x ? "/search" : "", $ = te(h) ? h : c, U = te(t) ? t : i;
|
|
326
|
+
if (F(U)) throw new Error("Url template is undefined");
|
|
327
|
+
const { pagination: n } = Se(g, a ? L.Desc : L.Asc, {
|
|
328
|
+
rowsPerPage: A
|
|
329
|
+
}), B = (F($) ? U : me(U, $)) + o, I = [], N = await f().get(
|
|
330
|
+
B + oe(n, p, b),
|
|
322
331
|
{
|
|
323
332
|
...s,
|
|
324
|
-
signal:
|
|
333
|
+
signal: l.signal
|
|
325
334
|
}
|
|
326
335
|
);
|
|
327
|
-
if (!
|
|
328
|
-
throw new pe(
|
|
329
|
-
if (
|
|
330
|
-
const
|
|
331
|
-
if (
|
|
332
|
-
for (
|
|
333
|
-
|
|
334
|
-
const
|
|
335
|
-
|
|
336
|
+
if (!fe(N.status))
|
|
337
|
+
throw new pe(N.status);
|
|
338
|
+
if (N.data) {
|
|
339
|
+
const E = N.data;
|
|
340
|
+
if (I.push(...E.data), Le(E))
|
|
341
|
+
for (n.value.hasNextPage = E.hasNextPage; n.value.hasNextPage; ) {
|
|
342
|
+
n.value.page++;
|
|
343
|
+
const K = (await f().get(
|
|
344
|
+
B + oe(n, p, b),
|
|
336
345
|
{
|
|
337
346
|
...s,
|
|
338
|
-
signal:
|
|
347
|
+
signal: l.signal
|
|
339
348
|
}
|
|
340
349
|
)).data;
|
|
341
|
-
|
|
350
|
+
I.push(...K.data), n.value.hasNextPage = K.hasNextPage;
|
|
342
351
|
}
|
|
343
|
-
else if (Re(
|
|
344
|
-
if (
|
|
345
|
-
return
|
|
346
|
-
const
|
|
347
|
-
for (let
|
|
348
|
-
const
|
|
349
|
-
|
|
350
|
-
|
|
352
|
+
else if (Re(E)) {
|
|
353
|
+
if (n.value.totalCount = E.totalCount, n.value.totalCount <= n.value.rowsPerPage)
|
|
354
|
+
return I;
|
|
355
|
+
const V = [], K = Math.ceil(n.value.totalCount / n.value.rowsPerPage);
|
|
356
|
+
for (let D = 1; D < K; D++) {
|
|
357
|
+
const H = { ...n.value, page: D + 1 }, W = q(H);
|
|
358
|
+
V.push(
|
|
359
|
+
f().get(B + oe(W, p, b), {
|
|
351
360
|
...s,
|
|
352
|
-
signal:
|
|
361
|
+
signal: l.signal
|
|
353
362
|
})
|
|
354
363
|
);
|
|
355
364
|
}
|
|
356
|
-
(await Promise.all(
|
|
357
|
-
|
|
365
|
+
(await Promise.all(V)).forEach((D) => {
|
|
366
|
+
I.push(...D.data.data);
|
|
358
367
|
});
|
|
359
368
|
}
|
|
360
|
-
return
|
|
369
|
+
return I;
|
|
361
370
|
}
|
|
362
|
-
if (
|
|
371
|
+
if (N.status === ge)
|
|
363
372
|
return [];
|
|
364
|
-
throw new
|
|
373
|
+
throw new ae();
|
|
365
374
|
} catch (o) {
|
|
366
375
|
if (o instanceof DOMException && o.name === "AbortError")
|
|
367
376
|
return [];
|
|
368
|
-
throw
|
|
377
|
+
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
378
|
} finally {
|
|
370
|
-
|
|
379
|
+
l = null;
|
|
371
380
|
}
|
|
372
381
|
},
|
|
373
382
|
abortFetch: () => {
|
|
374
|
-
|
|
383
|
+
l && l.abort();
|
|
375
384
|
}
|
|
376
385
|
};
|
|
377
|
-
},
|
|
378
|
-
function ua(
|
|
386
|
+
}, Z = "/adm/v1/job", ee = "job";
|
|
387
|
+
function ua(r, f) {
|
|
379
388
|
return {
|
|
380
|
-
useFetchJobList: () => qe({ client:
|
|
381
|
-
fetchJob: (s) => Me(
|
|
389
|
+
useFetchJobList: () => qe({ client: r, system: f, entity: ee, urlTemplate: Z }),
|
|
390
|
+
fetchJob: (s) => Me(r, Z + "/:id", { id: s }, f, ee),
|
|
382
391
|
createJob: (s) => {
|
|
383
|
-
const
|
|
384
|
-
return Ue(
|
|
392
|
+
const m = $e(s._resourceName).slice(4).replace("-kind-", "-kind/");
|
|
393
|
+
return Ue(r, s, Z + "/:type", { type: m }, f, ee);
|
|
385
394
|
},
|
|
386
|
-
deleteJob: (s) => ze(
|
|
395
|
+
deleteJob: (s) => ze(r, Z + "/:id", { id: s }, f, ee)
|
|
387
396
|
};
|
|
388
397
|
}
|
|
389
|
-
const
|
|
398
|
+
const Et = {
|
|
390
399
|
key: "",
|
|
391
400
|
title: void 0,
|
|
392
401
|
sortable: !1,
|
|
393
402
|
fixed: !1
|
|
394
|
-
},
|
|
403
|
+
}, Bt = {
|
|
395
404
|
storeColumnsLocalStorage: !0,
|
|
396
405
|
disableActions: !1,
|
|
397
406
|
customI18n: void 0,
|
|
398
407
|
showExpand: !1
|
|
399
408
|
};
|
|
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
|
-
!
|
|
409
|
+
function Ot(r, f, d, e, i = {}) {
|
|
410
|
+
const c = { ...Bt, ...i }, s = c.customI18n ?? Je, { t: m } = s.global || s;
|
|
411
|
+
let l;
|
|
412
|
+
Qe(c.storeColumnsLocalStorage) ? l = c.storeColumnsLocalStorage : Ye(c.storeColumnsLocalStorage) && c.storeColumnsLocalStorage === !0 && (l = "table_" + d + "_" + e);
|
|
413
|
+
const v = r.map((u) => {
|
|
414
|
+
const t = { ...Et, ...u };
|
|
415
|
+
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;
|
|
416
|
+
}), C = w(() => {
|
|
417
|
+
const u = [];
|
|
418
|
+
return c.showExpand && u.push({ key: "data-table-expand", sortable: !1 }), v.forEach((t) => {
|
|
419
|
+
f.value.includes(t.key) || u.push(t);
|
|
420
|
+
}), c.disableActions || u.push({ key: "actions", sortable: !1, fixed: "end" }), u;
|
|
421
|
+
}), p = () => {
|
|
422
|
+
if (!l || !localStorage) return;
|
|
423
|
+
const u = localStorage.getItem(l);
|
|
424
|
+
if (!u) return;
|
|
425
|
+
const t = JSON.parse(u);
|
|
426
|
+
He(t) && We(t.hidden) && (f.value = t.hidden);
|
|
427
|
+
}, b = (u) => {
|
|
428
|
+
!l || !localStorage || localStorage.setItem(l, JSON.stringify({ hidden: u }));
|
|
420
429
|
};
|
|
421
|
-
return
|
|
422
|
-
|
|
423
|
-
}),
|
|
424
|
-
|
|
430
|
+
return De(() => {
|
|
431
|
+
p();
|
|
432
|
+
}), G(f, (u) => {
|
|
433
|
+
b(u);
|
|
425
434
|
}), {
|
|
426
|
-
columnsAll:
|
|
427
|
-
columnsVisible:
|
|
428
|
-
columnsHidden:
|
|
435
|
+
columnsAll: v,
|
|
436
|
+
columnsVisible: C,
|
|
437
|
+
columnsHidden: f
|
|
429
438
|
};
|
|
430
439
|
}
|
|
431
|
-
function da(
|
|
432
|
-
const
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
), { resetFilter:
|
|
440
|
+
function da(r, f, d, e, i, c, s, m = null, l = void 0, v = !1) {
|
|
441
|
+
const C = q(!1), p = q([]), b = q([]), u = q(!1), { pagination: t, setSortBy: h, incrementPage: g } = Se(
|
|
442
|
+
Q(m) ? null : m.key,
|
|
443
|
+
m?.order
|
|
444
|
+
), { resetFilter: a, submitFilter: A } = Ge(c, s, {
|
|
436
445
|
storeFiltersLocalStorage: !1,
|
|
437
446
|
populateUrlParams: !1
|
|
438
|
-
}), { showErrorsDefault:
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
447
|
+
}), { showErrorsDefault: x } = Xe(), { columnsVisible: o, columnsAll: $, columnsHidden: U } = Ot(
|
|
448
|
+
r,
|
|
449
|
+
f,
|
|
450
|
+
d,
|
|
442
451
|
e,
|
|
443
|
-
{ storeColumnsLocalStorage: !1, disableActions: !
|
|
444
|
-
),
|
|
445
|
-
|
|
446
|
-
},
|
|
447
|
-
|
|
448
|
-
},
|
|
449
|
-
|
|
452
|
+
{ storeColumnsLocalStorage: !1, disableActions: !v }
|
|
453
|
+
), n = () => {
|
|
454
|
+
N(), V();
|
|
455
|
+
}, B = (O) => {
|
|
456
|
+
h(O.sortBy), V();
|
|
457
|
+
}, I = async () => {
|
|
458
|
+
u.value = !0, g();
|
|
450
459
|
try {
|
|
451
|
-
const
|
|
452
|
-
|
|
453
|
-
} catch (
|
|
454
|
-
|
|
460
|
+
const O = await i(t, c, s, l);
|
|
461
|
+
p.value.push(...O);
|
|
462
|
+
} catch (O) {
|
|
463
|
+
x(O);
|
|
455
464
|
} finally {
|
|
456
|
-
|
|
465
|
+
u.value = !1;
|
|
457
466
|
}
|
|
458
|
-
},
|
|
459
|
-
|
|
460
|
-
},
|
|
461
|
-
|
|
467
|
+
}, N = () => {
|
|
468
|
+
p.value = [], b.value = [];
|
|
469
|
+
}, E = async () => {
|
|
470
|
+
u.value = !0;
|
|
462
471
|
try {
|
|
463
|
-
|
|
472
|
+
p.value = await i(
|
|
464
473
|
t,
|
|
465
|
-
|
|
474
|
+
c,
|
|
466
475
|
s,
|
|
467
|
-
|
|
476
|
+
l
|
|
468
477
|
);
|
|
469
|
-
} catch (
|
|
470
|
-
|
|
478
|
+
} catch (O) {
|
|
479
|
+
x(O);
|
|
471
480
|
} finally {
|
|
472
|
-
|
|
481
|
+
u.value = !1;
|
|
473
482
|
}
|
|
474
|
-
},
|
|
475
|
-
await
|
|
483
|
+
}, V = ut(async () => {
|
|
484
|
+
await E();
|
|
476
485
|
});
|
|
477
486
|
return {
|
|
478
|
-
items:
|
|
479
|
-
selected:
|
|
487
|
+
items: p,
|
|
488
|
+
selected: b,
|
|
480
489
|
pagination: t,
|
|
481
|
-
columnsVisible:
|
|
482
|
-
columnsHidden:
|
|
483
|
-
columnsAll:
|
|
484
|
-
filterTouched:
|
|
485
|
-
loading:
|
|
486
|
-
onRowClick: (
|
|
487
|
-
const
|
|
488
|
-
if (!
|
|
490
|
+
columnsVisible: o,
|
|
491
|
+
columnsHidden: U,
|
|
492
|
+
columnsAll: $,
|
|
493
|
+
filterTouched: C,
|
|
494
|
+
loading: u,
|
|
495
|
+
onRowClick: (O) => {
|
|
496
|
+
const D = O.target;
|
|
497
|
+
if (!D || D.tagName === "INPUT" && D.type === "checkbox")
|
|
489
498
|
return;
|
|
490
|
-
const
|
|
491
|
-
if (!
|
|
492
|
-
const
|
|
493
|
-
if (!
|
|
494
|
-
const
|
|
495
|
-
|
|
499
|
+
const H = D.closest(".v-data-table__tr");
|
|
500
|
+
if (!H || !H.classList.contains("v-data-table__tr")) return;
|
|
501
|
+
const W = H.firstElementChild;
|
|
502
|
+
if (!W || !W.classList.contains("v-data-table__td")) return;
|
|
503
|
+
const le = W.querySelector("input");
|
|
504
|
+
le && le.click();
|
|
496
505
|
},
|
|
497
|
-
onFetchNextPage:
|
|
498
|
-
onOpen:
|
|
499
|
-
sortByChange:
|
|
500
|
-
getList:
|
|
501
|
-
resetFilter: () =>
|
|
502
|
-
submitFilter: () =>
|
|
506
|
+
onFetchNextPage: I,
|
|
507
|
+
onOpen: n,
|
|
508
|
+
sortByChange: B,
|
|
509
|
+
getList: V,
|
|
510
|
+
resetFilter: () => a(t, V),
|
|
511
|
+
submitFilter: () => A(t, V)
|
|
503
512
|
};
|
|
504
513
|
}
|
|
505
514
|
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
515
|
key: 0,
|
|
507
516
|
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__ */
|
|
517
|
+
}, $t = { class: "subject-select__actions system-border-t" }, Ut = { key: 0 }, Mt = { key: 1 }, ma = /* @__PURE__ */ se({
|
|
509
518
|
__name: "ASubjectSelect",
|
|
510
519
|
props: {
|
|
511
520
|
selectedItems: {},
|
|
@@ -519,114 +528,114 @@ const Dt = { class: "d-flex flex-column w-100 px-1 align-center" }, It = { class
|
|
|
519
528
|
autoOpen: { type: Boolean, default: !1 }
|
|
520
529
|
},
|
|
521
530
|
emits: ["update:modelValue", "update:pagination", "onOpen", "onPageChange", "onConfirm", "onFetchNextPage"],
|
|
522
|
-
setup(
|
|
523
|
-
const e =
|
|
531
|
+
setup(r, { expose: f, emit: d }) {
|
|
532
|
+
const e = r, i = d, c = q(!1), s = w({
|
|
524
533
|
get() {
|
|
525
|
-
return
|
|
534
|
+
return F(e.modelValue) ? c.value : e.modelValue;
|
|
526
535
|
},
|
|
527
|
-
set(
|
|
528
|
-
|
|
536
|
+
set(n) {
|
|
537
|
+
c.value = n, i("update:modelValue", n);
|
|
529
538
|
}
|
|
530
|
-
}),
|
|
539
|
+
}), m = w({
|
|
531
540
|
get: () => e.pagination,
|
|
532
|
-
set: (
|
|
533
|
-
|
|
541
|
+
set: (n) => {
|
|
542
|
+
i("update:pagination", { ...ce(n) });
|
|
534
543
|
}
|
|
535
|
-
}), { mdAndDown:
|
|
536
|
-
|
|
544
|
+
}), { mdAndDown: l } = mt(), v = q(!l.value), C = () => {
|
|
545
|
+
l.value && (v.value = !1);
|
|
537
546
|
};
|
|
538
|
-
at(Ze,
|
|
539
|
-
const { t:
|
|
540
|
-
|
|
541
|
-
},
|
|
542
|
-
|
|
543
|
-
},
|
|
547
|
+
at(Ze, C);
|
|
548
|
+
const { t: p } = re(), b = w(() => e.selectedItems.length), u = w(() => b.value < e.minCount || b.value > e.maxCount), t = () => {
|
|
549
|
+
i("onOpen"), v.value = !l.value, s.value = !0;
|
|
550
|
+
}, h = () => {
|
|
551
|
+
v.value = !v.value;
|
|
552
|
+
}, g = () => {
|
|
544
553
|
s.value = !1;
|
|
545
|
-
},
|
|
546
|
-
|
|
554
|
+
}, a = () => {
|
|
555
|
+
i(
|
|
547
556
|
"onConfirm",
|
|
548
|
-
e.selectedItems.map((
|
|
549
|
-
),
|
|
557
|
+
e.selectedItems.map((n) => ce(n))
|
|
558
|
+
), g();
|
|
559
|
+
}, A = () => {
|
|
560
|
+
i("onFetchNextPage");
|
|
550
561
|
}, 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();
|
|
562
|
+
i("onPageChange");
|
|
563
|
+
}, 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) => {
|
|
564
|
+
n && $.value && !e.loading && A();
|
|
556
565
|
};
|
|
557
|
-
return
|
|
566
|
+
return De(() => {
|
|
558
567
|
e.autoOpen && t();
|
|
559
|
-
}),
|
|
568
|
+
}), f({
|
|
560
569
|
open: t,
|
|
561
|
-
closeSidebarOnMobile:
|
|
562
|
-
}), (
|
|
563
|
-
const
|
|
564
|
-
return
|
|
565
|
-
|
|
570
|
+
closeSidebarOnMobile: C
|
|
571
|
+
}), (n, B) => {
|
|
572
|
+
const I = ue("ABtnSecondary"), N = ue("ABtnPrimary");
|
|
573
|
+
return S(), R(ne, null, [
|
|
574
|
+
j(n.$slots, "activator", {
|
|
566
575
|
props: { onClick: J(() => t(), ["stop"]) }
|
|
567
576
|
}),
|
|
568
|
-
|
|
577
|
+
P(pt, ot(n.$attrs, {
|
|
569
578
|
"model-value": s.value,
|
|
570
579
|
fullscreen: "",
|
|
571
580
|
class: "subject-select",
|
|
572
|
-
"onUpdate:modelValue":
|
|
581
|
+
"onUpdate:modelValue": B[1] || (B[1] = (E) => i("update:modelValue", E))
|
|
573
582
|
}), {
|
|
574
|
-
default:
|
|
575
|
-
s.value ? (
|
|
583
|
+
default: T(() => [
|
|
584
|
+
s.value ? (S(), Y(ft, {
|
|
576
585
|
key: 0,
|
|
577
586
|
class: "subject-select__card"
|
|
578
587
|
}, {
|
|
579
|
-
default:
|
|
580
|
-
|
|
588
|
+
default: T(() => [
|
|
589
|
+
P(et, {
|
|
581
590
|
class: "subject-select__toolbar system-border-b",
|
|
582
|
-
onOnCancel:
|
|
591
|
+
onOnCancel: g
|
|
583
592
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
|
|
586
|
-
z(
|
|
593
|
+
default: T(() => [
|
|
594
|
+
j(n.$slots, "title", {}, () => [
|
|
595
|
+
z(_(y(p)(r.dialogTitleT)), 1)
|
|
587
596
|
])
|
|
588
597
|
]),
|
|
589
598
|
_: 3
|
|
590
599
|
}),
|
|
591
|
-
|
|
600
|
+
P(bt, {
|
|
592
601
|
density: "compact",
|
|
593
602
|
color: "transparent",
|
|
594
603
|
height: 46,
|
|
595
604
|
elevation: "0",
|
|
596
605
|
class: "system-border-b subject-select__second-bar"
|
|
597
606
|
}, {
|
|
598
|
-
default:
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
607
|
+
default: T(() => [
|
|
608
|
+
j(n.$slots, "second-bar", {}, () => [
|
|
609
|
+
k("div", Dt, [
|
|
610
|
+
k("div", It, [
|
|
611
|
+
k("div", Nt, [
|
|
612
|
+
P(M, {
|
|
604
613
|
icon: "",
|
|
605
614
|
width: 30,
|
|
606
615
|
height: 30,
|
|
607
|
-
onClick:
|
|
616
|
+
onClick: h
|
|
608
617
|
}, {
|
|
609
|
-
default:
|
|
610
|
-
|
|
618
|
+
default: T(() => [
|
|
619
|
+
P(vt, {
|
|
611
620
|
icon: "mdi-tune",
|
|
612
621
|
size: 16
|
|
613
622
|
}),
|
|
614
|
-
|
|
623
|
+
P(ht, {
|
|
615
624
|
activator: "parent",
|
|
616
625
|
location: "bottom"
|
|
617
626
|
}, {
|
|
618
|
-
default:
|
|
619
|
-
z(
|
|
627
|
+
default: T(() => [
|
|
628
|
+
z(_(y(p)("common.subjectSelect.filter.toggle")), 1)
|
|
620
629
|
]),
|
|
621
630
|
_: 1
|
|
622
631
|
})
|
|
623
632
|
]),
|
|
624
633
|
_: 1
|
|
625
634
|
}),
|
|
626
|
-
|
|
635
|
+
j(n.$slots, "second-bar-left")
|
|
627
636
|
]),
|
|
628
|
-
|
|
629
|
-
|
|
637
|
+
k("div", Vt, [
|
|
638
|
+
j(n.$slots, "second-bar-right")
|
|
630
639
|
])
|
|
631
640
|
])
|
|
632
641
|
])
|
|
@@ -634,62 +643,62 @@ const Dt = { class: "d-flex flex-column w-100 px-1 align-center" }, It = { class
|
|
|
634
643
|
]),
|
|
635
644
|
_: 3
|
|
636
645
|
}),
|
|
637
|
-
|
|
638
|
-
class: Be(["subject-select__main", { "subject-select__main--sidebar-active":
|
|
646
|
+
k("div", {
|
|
647
|
+
class: Be(["subject-select__main", { "subject-select__main--sidebar-active": v.value }])
|
|
639
648
|
}, [
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
649
|
+
k("div", jt, [
|
|
650
|
+
k("div", Lt, [
|
|
651
|
+
j(n.$slots, "filter")
|
|
643
652
|
])
|
|
644
653
|
]),
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
st((
|
|
649
|
-
loading:
|
|
654
|
+
k("div", Rt, [
|
|
655
|
+
j(n.$slots, "content"),
|
|
656
|
+
r.paginationMode === "more" ? (S(), R("div", zt, [
|
|
657
|
+
st((S(), Y(I, {
|
|
658
|
+
loading: r.loading,
|
|
650
659
|
size: "small",
|
|
651
|
-
onClick:
|
|
660
|
+
onClick: A
|
|
652
661
|
}, {
|
|
653
|
-
default:
|
|
654
|
-
|
|
655
|
-
z(
|
|
662
|
+
default: T(() => [
|
|
663
|
+
j(n.$slots, "button-confirm-title", {}, () => [
|
|
664
|
+
z(_(y(p)("common.button.loadMore")), 1)
|
|
656
665
|
])
|
|
657
666
|
]),
|
|
658
667
|
_: 3
|
|
659
668
|
}, 8, ["loading"])), [
|
|
660
|
-
[nt,
|
|
669
|
+
[nt, $.value || r.loading],
|
|
661
670
|
[
|
|
662
671
|
yt,
|
|
663
|
-
|
|
672
|
+
U,
|
|
664
673
|
void 0,
|
|
665
674
|
{ quiet: !0 }
|
|
666
675
|
]
|
|
667
676
|
])
|
|
668
|
-
])) : (
|
|
677
|
+
])) : (S(), Y(St, {
|
|
669
678
|
key: 1,
|
|
670
|
-
modelValue:
|
|
671
|
-
"onUpdate:modelValue":
|
|
672
|
-
onChange:
|
|
679
|
+
modelValue: m.value,
|
|
680
|
+
"onUpdate:modelValue": B[0] || (B[0] = (E) => m.value = E),
|
|
681
|
+
onChange: x
|
|
673
682
|
}, null, 8, ["modelValue"]))
|
|
674
683
|
])
|
|
675
684
|
], 2),
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
count:
|
|
679
|
-
selected:
|
|
680
|
-
})), 1)) : (
|
|
681
|
-
minCount:
|
|
682
|
-
maxCount:
|
|
683
|
-
selected:
|
|
685
|
+
k("div", $t, [
|
|
686
|
+
r.minCount === r.maxCount ? (S(), R("div", Ut, _(y(p)("common.subjectSelect.texts.pickExactCount", {
|
|
687
|
+
count: r.minCount,
|
|
688
|
+
selected: b.value
|
|
689
|
+
})), 1)) : (S(), R("div", Mt, _(y(p)("common.subjectSelect.texts.pickRangeCount", {
|
|
690
|
+
minCount: r.minCount,
|
|
691
|
+
maxCount: r.maxCount,
|
|
692
|
+
selected: b.value
|
|
684
693
|
})), 1)),
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
disabled:
|
|
688
|
-
onClick: J(
|
|
694
|
+
P(gt),
|
|
695
|
+
P(N, {
|
|
696
|
+
disabled: u.value,
|
|
697
|
+
onClick: J(a, ["stop"])
|
|
689
698
|
}, {
|
|
690
|
-
default:
|
|
691
|
-
|
|
692
|
-
z(
|
|
699
|
+
default: T(() => [
|
|
700
|
+
j(n.$slots, "button-confirm-title", {}, () => [
|
|
701
|
+
z(_(y(p)("common.button.confirm")), 1)
|
|
693
702
|
])
|
|
694
703
|
]),
|
|
695
704
|
_: 3
|
|
@@ -697,7 +706,7 @@ const Dt = { class: "d-flex flex-column w-100 px-1 align-center" }, It = { class
|
|
|
697
706
|
])
|
|
698
707
|
]),
|
|
699
708
|
_: 3
|
|
700
|
-
})) :
|
|
709
|
+
})) : Oe("", !0)
|
|
701
710
|
]),
|
|
702
711
|
_: 3
|
|
703
712
|
}, 16, ["model-value"])
|
|
@@ -720,20 +729,20 @@ export {
|
|
|
720
729
|
_a as AFilterWrapperSubjectSelect,
|
|
721
730
|
xa as AFormRemoteAutocomplete,
|
|
722
731
|
ma as ASubjectSelect,
|
|
723
|
-
|
|
732
|
+
de as DatatablePaginationKey,
|
|
724
733
|
ka as FilterConfigKey,
|
|
725
734
|
Ta as FilterDataKey,
|
|
726
735
|
Sa as FilterInnerConfigKey,
|
|
727
736
|
Fa as FilterInnerDataKey,
|
|
728
|
-
|
|
729
|
-
|
|
737
|
+
Ea as TimeIntervalSpecialOptions,
|
|
738
|
+
Ba as UserAdminConfigLayoutType,
|
|
730
739
|
Oa as UserAdminConfigLayoutTypeDefault,
|
|
731
740
|
Da as UserAdminConfigType,
|
|
732
741
|
Ia as UserAdminConfigTypeDefault,
|
|
733
742
|
Ot as createDatatableColumnsConfig,
|
|
734
743
|
Na as createFilter,
|
|
735
744
|
Va as createFilterStore,
|
|
736
|
-
|
|
745
|
+
oe as generateListQuery,
|
|
737
746
|
ia as useApiFetchByIds,
|
|
738
747
|
qe as useApiFetchList,
|
|
739
748
|
ca as useApiFetchListBatch,
|
|
@@ -741,7 +750,7 @@ export {
|
|
|
741
750
|
ja as useApiRequest,
|
|
742
751
|
Ge as useFilterHelpers,
|
|
743
752
|
ua as useJobApi,
|
|
744
|
-
|
|
753
|
+
Se as usePagination,
|
|
745
754
|
da as useSubjectSelect,
|
|
746
755
|
La as useUserAdminConfigApi,
|
|
747
756
|
Ra as useUserAdminConfigFactory
|