@anzusystems/common-admin 1.47.0-beta.357 → 1.47.0-beta.359
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-DjYHyeck.mjs +7449 -0
- 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.d.ts +9764 -3615
- package/dist/common-admin.js +15864 -14333
- package/dist/common-admin.js.map +1 -1
- package/dist/{index-B02Fo3dC.mjs → index-so4LUFja.mjs} +6282 -5863
- package/dist/index-so4LUFja.mjs.map +1 -0
- package/dist/labs.d.ts +90 -36
- package/dist/labs.js +488 -919
- package/dist/labs.js.map +1 -1
- package/dist/{webfontloader-DeB77L0f.mjs → webfontloader-CtCXi-3v.mjs} +161 -159
- package/dist/webfontloader-CtCXi-3v.mjs.map +1 -0
- package/package.json +45 -38
- package/src/eslint/plugin.mjs +574 -0
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DWXEGI77.mjs +0 -6789
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DWXEGI77.mjs.map +0 -1
- package/dist/index-B02Fo3dC.mjs.map +0 -1
- package/dist/webfontloader-DeB77L0f.mjs.map +0 -1
package/dist/labs.js
CHANGED
|
@@ -1,514 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
import { VToolbar as Wt } from "vuetify/components/VToolbar";
|
|
21
|
-
import { Intersect as Qt } from "vuetify/directives";
|
|
22
|
-
const Yt = /* @__PURE__ */ Z({
|
|
23
|
-
__name: "AFilterTimeInterval",
|
|
24
|
-
props: {
|
|
25
|
-
nameFrom: {},
|
|
26
|
-
nameUntil: {},
|
|
27
|
-
allowed: { default: void 0 },
|
|
28
|
-
placeholder: { default: void 0 },
|
|
29
|
-
dataCy: { default: "filter-time-interval" }
|
|
30
|
-
},
|
|
31
|
-
emits: ["change"],
|
|
32
|
-
setup(a, { emit: p }) {
|
|
33
|
-
const l = a, t = p, g = H(Ve), i = H(ke), n = H(Fe), o = H(xe);
|
|
34
|
-
if (F(g) || F(i) || F(n) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
35
|
-
F(n.fields[l.nameFrom]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
36
|
-
F(n.fields[l.nameUntil]) || F(o) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
37
|
-
F(o[l.nameFrom]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
38
|
-
F(o[l.nameUntil]))
|
|
39
|
-
throw new Error("Incorrect provide/inject config.");
|
|
40
|
-
const c = S({
|
|
41
|
-
get() {
|
|
42
|
-
return o[l.nameFrom];
|
|
43
|
-
},
|
|
44
|
-
set(_) {
|
|
45
|
-
o[l.nameFrom] = _, z(_), n.touched = !0, me(() => {
|
|
46
|
-
t("change");
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
}), { timeIntervalOptions: d, getTimeIntervalOption: b } = ft(l.allowed), v = O(null), h = O(!1), r = O({
|
|
50
|
-
from: null,
|
|
51
|
-
until: Be()
|
|
52
|
-
}), e = O(!1), { v$: w } = vt(r), C = S(() => n.fields[l.nameFrom]), { t: s } = ae(), D = S(() => C.value.titleT ? s(C.value.titleT) : void 0), { clearOne: L } = Pe(), { showValidationError: k } = Oe(), A = () => {
|
|
53
|
-
e.value = !1, v.value = null, M();
|
|
54
|
-
}, x = () => {
|
|
55
|
-
if (w.value.$touch(), w.value.$invalid) {
|
|
56
|
-
k();
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
e.value = !0, h.value = !1, o[l.nameUntil] = r.value.until, c.value = r.value.from;
|
|
60
|
-
}, N = () => {
|
|
61
|
-
h.value = !1, v.value = null;
|
|
62
|
-
}, M = () => {
|
|
63
|
-
L(l.nameFrom, o, n), L(l.nameUntil, o, n), i.value.delete(l.nameFrom);
|
|
64
|
-
}, z = (_) => {
|
|
65
|
-
if (Ae(_) || fe(_)) return;
|
|
66
|
-
if (Q(_) || F(_)) {
|
|
67
|
-
i.value.delete(l.nameFrom);
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
const T = b(_);
|
|
71
|
-
if (!T && he(_)) {
|
|
72
|
-
const j = b(Ce.Custom);
|
|
73
|
-
i.value.set(l.nameFrom, [
|
|
74
|
-
{
|
|
75
|
-
title: j.title + ": " + re(r.value.from) + " - " + re(r.value.until),
|
|
76
|
-
value: _
|
|
77
|
-
}
|
|
78
|
-
]);
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
T && i.value.set(l.nameFrom, [{ title: T.title, value: _ }]);
|
|
82
|
-
}, J = (_ = !1) => {
|
|
83
|
-
w.value.$reset(), _ && (r.value.from = null, r.value.until = Be()), h.value = !0;
|
|
84
|
-
};
|
|
85
|
-
G(
|
|
86
|
-
c,
|
|
87
|
-
(_) => {
|
|
88
|
-
if (Ae(_) || fe(_)) return;
|
|
89
|
-
if (e.value = !1, F(_) || Q(_)) {
|
|
90
|
-
v.value = null;
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
const T = b(c.value), j = o[l.nameUntil];
|
|
94
|
-
!T && he(c.value) && he(j) && (v.value = Ce.Custom, r.value.from = c.value, r.value.until = j, e.value = !0), T && (v.value = T.value);
|
|
95
|
-
},
|
|
96
|
-
{ immediate: !0 }
|
|
97
|
-
), G(
|
|
98
|
-
[() => o[l.nameFrom], () => o[l.nameUntil]],
|
|
99
|
-
([_, T], [j, le]) => {
|
|
100
|
-
_ === j && T === le || z(_);
|
|
101
|
-
},
|
|
102
|
-
{ immediate: !0 }
|
|
103
|
-
);
|
|
104
|
-
const se = (_) => {
|
|
105
|
-
if (_.value === Ce.Custom) {
|
|
106
|
-
J(!0);
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
o[l.nameUntil] = null, c.value = _.value;
|
|
110
|
-
};
|
|
111
|
-
return (_, T) => {
|
|
112
|
-
const j = pe("ABtnTertiary"), le = pe("ABtnPrimary");
|
|
113
|
-
return y(), V(X, null, [
|
|
114
|
-
e.value ? (y(), B(Mt, {
|
|
115
|
-
key: 0,
|
|
116
|
-
label: D.value,
|
|
117
|
-
"model-value": f(re)(r.value.from) + " - " + f(re)(r.value.until),
|
|
118
|
-
readonly: "",
|
|
119
|
-
rows: "1",
|
|
120
|
-
"auto-grow": "",
|
|
121
|
-
"hide-details": "",
|
|
122
|
-
"append-inner-icon": "mdi-menu-down",
|
|
123
|
-
clearable: "",
|
|
124
|
-
class: "cursor-pointer",
|
|
125
|
-
"onClick:clear": R(A, ["stop"]),
|
|
126
|
-
onClick: T[0] || (T[0] = R(($) => J(), ["stop"]))
|
|
127
|
-
}, null, 8, ["label", "model-value"])) : (y(), B(zt, {
|
|
128
|
-
key: 1,
|
|
129
|
-
modelValue: v.value,
|
|
130
|
-
"onUpdate:modelValue": T[1] || (T[1] = ($) => v.value = $),
|
|
131
|
-
"item-title": "title",
|
|
132
|
-
"item-value": "value",
|
|
133
|
-
label: D.value,
|
|
134
|
-
clearable: !f(Q)(v.value),
|
|
135
|
-
"no-filter": "",
|
|
136
|
-
"data-cy": a.dataCy,
|
|
137
|
-
items: f(d),
|
|
138
|
-
"hide-details": "",
|
|
139
|
-
autocomplete: "off",
|
|
140
|
-
"onClick:clear": R(A, ["stop"])
|
|
141
|
-
}, {
|
|
142
|
-
item: u(({ props: $, item: ee }) => [
|
|
143
|
-
m(ct, ot($, {
|
|
144
|
-
onClick: (ne) => se(ee)
|
|
145
|
-
}), null, 16, ["onClick"])
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 8, ["modelValue", "label", "clearable", "data-cy", "items"])),
|
|
149
|
-
h.value ? (y(), B(it, {
|
|
150
|
-
key: 2,
|
|
151
|
-
"model-value": !0,
|
|
152
|
-
width: "auto",
|
|
153
|
-
"min-width": 360
|
|
154
|
-
}, {
|
|
155
|
-
default: u(() => [
|
|
156
|
-
m(rt, null, {
|
|
157
|
-
default: u(() => [
|
|
158
|
-
m(Re, { onOnCancel: N }, {
|
|
159
|
-
default: u(() => [
|
|
160
|
-
E(_.$slots, "title", {}, () => [
|
|
161
|
-
U(P(D.value), 1)
|
|
162
|
-
], !0)
|
|
163
|
-
]),
|
|
164
|
-
_: 3
|
|
165
|
-
}),
|
|
166
|
-
m(Rt, null, {
|
|
167
|
-
default: u(() => [
|
|
168
|
-
m(Ie, null, {
|
|
169
|
-
default: u(() => [
|
|
170
|
-
m(De, {
|
|
171
|
-
modelValue: r.value.from,
|
|
172
|
-
"onUpdate:modelValue": T[2] || (T[2] = ($) => r.value.from = $),
|
|
173
|
-
v: f(w).dialogData.from,
|
|
174
|
-
label: f(s)("common.filter.timeInterval.from"),
|
|
175
|
-
required: ""
|
|
176
|
-
}, null, 8, ["modelValue", "v", "label"])
|
|
177
|
-
]),
|
|
178
|
-
_: 1
|
|
179
|
-
}),
|
|
180
|
-
m(Ie, null, {
|
|
181
|
-
default: u(() => [
|
|
182
|
-
m(De, {
|
|
183
|
-
modelValue: r.value.until,
|
|
184
|
-
"onUpdate:modelValue": T[3] || (T[3] = ($) => r.value.until = $),
|
|
185
|
-
v: f(w).dialogData.until,
|
|
186
|
-
label: f(s)("common.filter.timeInterval.until"),
|
|
187
|
-
required: ""
|
|
188
|
-
}, null, 8, ["modelValue", "v", "label"])
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
})
|
|
192
|
-
]),
|
|
193
|
-
_: 1
|
|
194
|
-
}),
|
|
195
|
-
m(Ut, null, {
|
|
196
|
-
default: u(() => [
|
|
197
|
-
m(ut),
|
|
198
|
-
m(j, {
|
|
199
|
-
"data-cy": "button-cancel",
|
|
200
|
-
onClick: R(N, ["stop"])
|
|
201
|
-
}, {
|
|
202
|
-
default: u(() => [
|
|
203
|
-
U(P(f(s)("common.button.cancel")), 1)
|
|
204
|
-
]),
|
|
205
|
-
_: 1
|
|
206
|
-
}),
|
|
207
|
-
m(le, {
|
|
208
|
-
"data-cy": "button-confirm",
|
|
209
|
-
onClick: R(x, ["stop"])
|
|
210
|
-
}, {
|
|
211
|
-
default: u(() => [
|
|
212
|
-
U(P(f(s)("common.button.confirm")), 1)
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
})
|
|
216
|
-
]),
|
|
217
|
-
_: 1
|
|
218
|
-
})
|
|
219
|
-
]),
|
|
220
|
-
_: 3
|
|
221
|
-
})
|
|
222
|
-
]),
|
|
223
|
-
_: 3
|
|
224
|
-
})) : q("", !0)
|
|
225
|
-
], 64);
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
}), Wa = /* @__PURE__ */ pt(Yt, [["__scopeId", "data-v-622f5681"]]), Gt = /* @__PURE__ */ Z({
|
|
229
|
-
__name: "AFilterAdvancedButton",
|
|
230
|
-
props: {
|
|
231
|
-
tooltipT: { default: "common.button.advancedFilters" },
|
|
232
|
-
buttonClass: { default: "mt-1" },
|
|
233
|
-
dataCy: { default: "filter-advanced" }
|
|
234
|
-
},
|
|
235
|
-
emits: ["advancedFilter"],
|
|
236
|
-
setup(a, { emit: p }) {
|
|
237
|
-
const l = p, t = O(!1), g = (n) => {
|
|
238
|
-
gt(n), t.value = !t.value, l("advancedFilter");
|
|
239
|
-
}, { t: i } = ae();
|
|
240
|
-
return (n, o) => (y(), B(W, {
|
|
241
|
-
class: be(a.buttonClass),
|
|
242
|
-
"data-cy": a.dataCy,
|
|
243
|
-
icon: "",
|
|
244
|
-
size: "x-small",
|
|
245
|
-
variant: "text",
|
|
246
|
-
onClick: R(g, ["stop"])
|
|
247
|
-
}, {
|
|
248
|
-
default: u(() => [
|
|
249
|
-
m(Te, { icon: "mdi-filter-variant" }),
|
|
250
|
-
m(dt, {
|
|
251
|
-
activator: "parent",
|
|
252
|
-
location: "bottom"
|
|
253
|
-
}, {
|
|
254
|
-
default: u(() => [
|
|
255
|
-
U(P(f(i)(a.tooltipT)), 1)
|
|
256
|
-
]),
|
|
257
|
-
_: 1
|
|
258
|
-
})
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
}, 8, ["class", "data-cy"]));
|
|
262
|
-
}
|
|
263
|
-
}), Xt = { class: "a-selected-filters__label text-caption" }, Zt = /* @__PURE__ */ Z({
|
|
264
|
-
__name: "FiltersSelected",
|
|
265
|
-
setup(a) {
|
|
266
|
-
const p = H(Fe), l = H(xe), t = H(ke);
|
|
267
|
-
if (F(p) || F(l) || F(t))
|
|
268
|
-
throw new Error("Incorrect provide/inject config.");
|
|
269
|
-
const { t: g } = ae(), i = (b) => {
|
|
270
|
-
const v = p.fields?.[b]?.titleT;
|
|
271
|
-
return v ? g(v) : b;
|
|
272
|
-
}, n = S(() => {
|
|
273
|
-
const b = Object.keys(p.fields);
|
|
274
|
-
return Array.from(t.value).map(([v, h]) => ({
|
|
275
|
-
name: v,
|
|
276
|
-
title: i(v),
|
|
277
|
-
options: h
|
|
278
|
-
})).sort((v, h) => b.indexOf(v.name) - b.indexOf(h.name));
|
|
279
|
-
}), { clearOneFilterSelected: o, isClearable: c } = Pe(), d = (b, v) => {
|
|
280
|
-
o(b, v, l, p, t), p.touched = !0;
|
|
281
|
-
};
|
|
282
|
-
return (b, v) => (y(!0), V(X, null, oe(n.value, (h) => (y(), V("div", {
|
|
283
|
-
key: h.name,
|
|
284
|
-
class: "a-selected-filters"
|
|
285
|
-
}, [
|
|
286
|
-
I("div", Xt, P(h.title) + ": ", 1),
|
|
287
|
-
(y(!0), V(X, null, oe(h.options, (r) => (y(), V("div", {
|
|
288
|
-
key: r.value,
|
|
289
|
-
class: "a-selected-filters__chips"
|
|
290
|
-
}, [
|
|
291
|
-
f(c)(h.name, f(p)) ? (y(), B(Ee, {
|
|
292
|
-
key: 0,
|
|
293
|
-
closable: "",
|
|
294
|
-
size: "small",
|
|
295
|
-
class: "a-selected-filters__chip",
|
|
296
|
-
"onClick:close": R((e) => d(h.name, r.value), ["stop"])
|
|
297
|
-
}, {
|
|
298
|
-
close: u(() => [
|
|
299
|
-
m(Te, {
|
|
300
|
-
size: "16",
|
|
301
|
-
icon: "mdi-close-circle"
|
|
302
|
-
})
|
|
303
|
-
]),
|
|
304
|
-
default: u(() => [
|
|
305
|
-
U(" " + P(r.title), 1)
|
|
306
|
-
]),
|
|
307
|
-
_: 2
|
|
308
|
-
}, 1032, ["onClick:close"])) : (y(), B(Ee, {
|
|
309
|
-
key: 1,
|
|
310
|
-
size: "small",
|
|
311
|
-
class: "a-selected-filters__chip"
|
|
312
|
-
}, {
|
|
313
|
-
default: u(() => [
|
|
314
|
-
U(P(r.title), 1)
|
|
315
|
-
]),
|
|
316
|
-
_: 2
|
|
317
|
-
}, 1024))
|
|
318
|
-
]))), 128))
|
|
319
|
-
]))), 128));
|
|
320
|
-
}
|
|
321
|
-
}), ea = { class: "d-flex flex-wrap align-center" }, ta = { class: "a-filter__container" }, aa = { class: "a-filter__search" }, oa = { key: 2 }, Qa = /* @__PURE__ */ Z({
|
|
322
|
-
__name: "AFilterWrapper",
|
|
323
|
-
props: /* @__PURE__ */ ge({
|
|
324
|
-
enableTop: { type: Boolean, default: !1 },
|
|
325
|
-
hideButtons: { type: Boolean, default: !1 },
|
|
326
|
-
formName: { default: "search" },
|
|
327
|
-
userId: { default: void 0 },
|
|
328
|
-
client: { type: Function, default: void 0 },
|
|
329
|
-
store: { type: [Object, Boolean], default: !0 },
|
|
330
|
-
alwaysVisible: { type: Boolean, default: !1 },
|
|
331
|
-
hideMore: { type: Boolean, default: !1 }
|
|
332
|
-
}, {
|
|
333
|
-
datatableHiddenColumns: {
|
|
334
|
-
default: void 0,
|
|
335
|
-
required: !1
|
|
336
|
-
},
|
|
337
|
-
datatableHiddenColumnsModifiers: {},
|
|
338
|
-
showDetail: { type: Boolean, default: !1, required: !1 },
|
|
339
|
-
showDetailModifiers: {}
|
|
340
|
-
}),
|
|
341
|
-
emits: /* @__PURE__ */ ge(["submit", "reset", "bookmarkLoadAfter"], ["update:datatableHiddenColumns", "update:showDetail"]),
|
|
342
|
-
setup(a, { expose: p, emit: l }) {
|
|
343
|
-
const t = a, g = l, i = we(a, "datatableHiddenColumns"), n = we(a, "showDetail"), o = H(Fe), c = H(xe);
|
|
344
|
-
if (F(o) || F(c))
|
|
345
|
-
throw new Error("Incorrect provide/inject config.");
|
|
346
|
-
const d = O({
|
|
347
|
-
system: o.general.system,
|
|
348
|
-
subject: o.general.subject
|
|
349
|
-
});
|
|
350
|
-
fe(t.store) ? t.store === !1 && (d.value.system = void 0, d.value.subject = void 0) : (d.value.system = t.store.system, d.value.subject = t.store.subject);
|
|
351
|
-
const b = O(0);
|
|
352
|
-
$e(Ve, b);
|
|
353
|
-
const v = O(/* @__PURE__ */ new Map());
|
|
354
|
-
$e(ke, v);
|
|
355
|
-
const h = () => {
|
|
356
|
-
b.value++, me(() => {
|
|
357
|
-
g("submit");
|
|
358
|
-
});
|
|
359
|
-
}, { clearAll: r, clearAllFilterSelected: e } = Pe(), w = () => {
|
|
360
|
-
me(() => {
|
|
361
|
-
b.value++, g("bookmarkLoadAfter");
|
|
362
|
-
});
|
|
363
|
-
}, C = () => {
|
|
364
|
-
r(c, o), e(c, o, v), me(() => {
|
|
365
|
-
b.value++, g("reset");
|
|
366
|
-
});
|
|
367
|
-
}, s = () => {
|
|
368
|
-
n.value = !n.value;
|
|
369
|
-
}, D = S(() => o.touched), L = S(() => Object.entries(o.fields).filter(([, k]) => !k.render.skip).map(([k]) => k));
|
|
370
|
-
return t.alwaysVisible && (n.value = !0), p({
|
|
371
|
-
submit: h,
|
|
372
|
-
reset: C
|
|
373
|
-
}), (k, A) => (y(), B(qt, {
|
|
374
|
-
name: a.formName,
|
|
375
|
-
onSubmit: R(h, ["prevent"])
|
|
376
|
-
}, {
|
|
377
|
-
default: u(() => [
|
|
378
|
-
a.enableTop ? (y(), B(ie, {
|
|
379
|
-
key: 0,
|
|
380
|
-
dense: ""
|
|
381
|
-
}, {
|
|
382
|
-
default: u(() => [
|
|
383
|
-
m(te, null, {
|
|
384
|
-
default: u(() => [
|
|
385
|
-
E(k.$slots, "top")
|
|
386
|
-
]),
|
|
387
|
-
_: 3
|
|
388
|
-
})
|
|
389
|
-
]),
|
|
390
|
-
_: 3
|
|
391
|
-
})) : q("", !0),
|
|
392
|
-
m(ie, { dense: "" }, {
|
|
393
|
-
default: u(() => [
|
|
394
|
-
a.store && a.userId && f(Y)(a.client) ? (y(), B(te, { key: 0 }, {
|
|
395
|
-
default: u(() => [
|
|
396
|
-
E(k.$slots, "bookmarks", {}, () => [
|
|
397
|
-
I("div", ea, [
|
|
398
|
-
d.value.system && d.value.subject && a.userId && f(Y)(a.client) ? (y(), B(bt, {
|
|
399
|
-
key: 0,
|
|
400
|
-
"datatable-hidden-columns": i.value,
|
|
401
|
-
"onUpdate:datatableHiddenColumns": A[0] || (A[0] = (x) => i.value = x),
|
|
402
|
-
client: a.client,
|
|
403
|
-
system: d.value.system,
|
|
404
|
-
subject: d.value.subject,
|
|
405
|
-
"user-id": a.userId,
|
|
406
|
-
onSubmit: w
|
|
407
|
-
}, null, 8, ["datatable-hidden-columns", "client", "system", "subject", "user-id"])) : q("", !0)
|
|
408
|
-
])
|
|
409
|
-
])
|
|
410
|
-
]),
|
|
411
|
-
_: 3
|
|
412
|
-
})) : q("", !0)
|
|
413
|
-
]),
|
|
414
|
-
_: 3
|
|
415
|
-
}),
|
|
416
|
-
a.alwaysVisible ? q("", !0) : (y(), B(ie, {
|
|
417
|
-
key: 1,
|
|
418
|
-
dense: ""
|
|
419
|
-
}, {
|
|
420
|
-
default: u(() => [
|
|
421
|
-
a.hideMore ? q("", !0) : (y(), B(te, {
|
|
422
|
-
key: 0,
|
|
423
|
-
cols: "auto"
|
|
424
|
-
}, {
|
|
425
|
-
default: u(() => [
|
|
426
|
-
m(Gt, {
|
|
427
|
-
"button-active": n.value,
|
|
428
|
-
onAdvancedFilter: s
|
|
429
|
-
}, null, 8, ["button-active"])
|
|
430
|
-
]),
|
|
431
|
-
_: 1
|
|
432
|
-
})),
|
|
433
|
-
m(te, null, {
|
|
434
|
-
default: u(() => [
|
|
435
|
-
I("div", ta, [
|
|
436
|
-
I("div", aa, [
|
|
437
|
-
E(k.$slots, "search")
|
|
438
|
-
]),
|
|
439
|
-
m(Zt)
|
|
440
|
-
])
|
|
441
|
-
]),
|
|
442
|
-
_: 3
|
|
443
|
-
}),
|
|
444
|
-
a.hideButtons ? q("", !0) : (y(), B(te, {
|
|
445
|
-
key: 1,
|
|
446
|
-
class: "text-right",
|
|
447
|
-
cols: "auto"
|
|
448
|
-
}, {
|
|
449
|
-
default: u(() => [
|
|
450
|
-
E(k.$slots, "buttons", {}, () => [
|
|
451
|
-
m(yt, { touched: D.value }, null, 8, ["touched"]),
|
|
452
|
-
m(ht, { onReset: C }),
|
|
453
|
-
d.value.system && d.value.subject && a.userId && f(Y)(a.client) ? (y(), B(Ct, {
|
|
454
|
-
key: 0,
|
|
455
|
-
client: a.client,
|
|
456
|
-
user: a.userId,
|
|
457
|
-
system: d.value.system,
|
|
458
|
-
subject: d.value.subject,
|
|
459
|
-
"datatable-hidden-columns": i.value
|
|
460
|
-
}, null, 8, ["client", "user", "system", "subject", "datatable-hidden-columns"])) : q("", !0)
|
|
461
|
-
])
|
|
462
|
-
]),
|
|
463
|
-
_: 3
|
|
464
|
-
}))
|
|
465
|
-
]),
|
|
466
|
-
_: 3
|
|
467
|
-
})),
|
|
468
|
-
a.hideMore ? q("", !0) : (y(), V("div", oa, [
|
|
469
|
-
(y(), B(Ot(a.alwaysVisible ? "div" : "VSlideYTransition"), null, {
|
|
470
|
-
default: u(() => [
|
|
471
|
-
st(I("div", {
|
|
472
|
-
class: be({ "mt-6 pa-4 system-border-a": !a.alwaysVisible })
|
|
473
|
-
}, [
|
|
474
|
-
E(k.$slots, "detail", {}, () => [
|
|
475
|
-
m(ie, null, {
|
|
476
|
-
default: u(() => [
|
|
477
|
-
(y(!0), V(X, null, oe(L.value, (x) => (y(), B(te, {
|
|
478
|
-
key: x,
|
|
479
|
-
cols: f(o).fields[x].render.xs || 12,
|
|
480
|
-
sm: f(o).fields[x].render.sm || 6,
|
|
481
|
-
md: f(o).fields[x].render.md || 4,
|
|
482
|
-
lg: f(o).fields[x].render.lg || 3,
|
|
483
|
-
xl: f(o).fields[x].render.xl || 2
|
|
484
|
-
}, {
|
|
485
|
-
default: u(() => [
|
|
486
|
-
E(k.$slots, f(_t)(x), {
|
|
487
|
-
itemConfig: f(o).fields[x]
|
|
488
|
-
}, () => [
|
|
489
|
-
m(At, { name: x }, null, 8, ["name"])
|
|
490
|
-
])
|
|
491
|
-
]),
|
|
492
|
-
_: 2
|
|
493
|
-
}, 1032, ["cols", "sm", "md", "lg", "xl"]))), 128))
|
|
494
|
-
]),
|
|
495
|
-
_: 3
|
|
496
|
-
})
|
|
497
|
-
])
|
|
498
|
-
], 2), [
|
|
499
|
-
[lt, n.value]
|
|
500
|
-
])
|
|
501
|
-
]),
|
|
502
|
-
_: 3
|
|
503
|
-
}))
|
|
504
|
-
]))
|
|
505
|
-
]),
|
|
506
|
-
_: 3
|
|
507
|
-
}, 8, ["name"]));
|
|
508
|
-
}
|
|
509
|
-
}), sa = { class: "d-flex align-center justify-center" }, la = { class: "text-caption mr-1" }, Ya = /* @__PURE__ */ Z({
|
|
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
|
+
import { VList as rt, VListItem as lt, VListItemTitle as it } from "vuetify/components/VList";
|
|
7
|
+
import { VMenu as ct } from "vuetify/components/VMenu";
|
|
8
|
+
import { useThrottleFn as X, useDebounceFn as ut } from "@vueuse/core";
|
|
9
|
+
import { VBtnToggle as dt } from "vuetify/components/VBtnToggle";
|
|
10
|
+
import Ie from "axios";
|
|
11
|
+
import { useDisplay as mt } from "vuetify";
|
|
12
|
+
import { VCard as ft } from "vuetify/components/VCard";
|
|
13
|
+
import { VDialog as pt } from "vuetify/components/VDialog";
|
|
14
|
+
import { VSpacer as gt } from "vuetify/components/VGrid";
|
|
15
|
+
import { VIcon as vt } from "vuetify/components/VIcon";
|
|
16
|
+
import { VToolbar as bt } from "vuetify/components/VToolbar";
|
|
17
|
+
import { VTooltip as ht } from "vuetify/components/VTooltip";
|
|
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__ */ se({
|
|
510
20
|
__name: "ADatatableOrdering",
|
|
511
|
-
props: /* @__PURE__ */
|
|
21
|
+
props: /* @__PURE__ */ ie({
|
|
512
22
|
variant: { default: "id" },
|
|
513
23
|
customOptions: { default: void 0 },
|
|
514
24
|
paginationUpdateCustomCb: { type: Function, default: void 0 }
|
|
@@ -519,86 +29,111 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
519
29
|
},
|
|
520
30
|
modelModifiers: {}
|
|
521
31
|
}),
|
|
522
|
-
emits: /* @__PURE__ */
|
|
523
|
-
setup(
|
|
524
|
-
const
|
|
525
|
-
if (F(
|
|
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))
|
|
526
36
|
throw new Error("Incorrect provide/inject config.");
|
|
527
|
-
const { t:
|
|
528
|
-
{
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
37
|
+
const { t: s } = re(), m = [
|
|
38
|
+
{
|
|
39
|
+
id: 1,
|
|
40
|
+
titleT: "common.system.datatable.ordering.mostRecent",
|
|
41
|
+
sortBy: { key: "createdAt", order: L.Desc }
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 2,
|
|
45
|
+
titleT: "common.system.datatable.ordering.oldest",
|
|
46
|
+
sortBy: { key: "createdAt", order: L.Asc }
|
|
47
|
+
}
|
|
48
|
+
], l = [
|
|
49
|
+
{
|
|
50
|
+
id: 1,
|
|
51
|
+
titleT: "common.system.datatable.ordering.mostRecent",
|
|
52
|
+
sortBy: { key: "id", order: L.Desc }
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 2,
|
|
56
|
+
titleT: "common.system.datatable.ordering.oldest",
|
|
57
|
+
sortBy: { key: "id", order: L.Asc }
|
|
58
|
+
}
|
|
59
|
+
], v = [
|
|
534
60
|
{
|
|
535
61
|
id: 3,
|
|
536
62
|
titleT: "common.system.datatable.ordering.mostRelevant",
|
|
537
|
-
sortBy: { key:
|
|
63
|
+
sortBy: { key: Ne, order: L.Desc }
|
|
538
64
|
},
|
|
539
|
-
{
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
65
|
+
{
|
|
66
|
+
id: 1,
|
|
67
|
+
titleT: "common.system.datatable.ordering.mostRecent",
|
|
68
|
+
sortBy: { key: "createdAt", order: L.Desc }
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: 2,
|
|
72
|
+
titleT: "common.system.datatable.ordering.oldest",
|
|
73
|
+
sortBy: { key: "createdAt", order: L.Asc }
|
|
74
|
+
}
|
|
75
|
+
], C = w(() => {
|
|
76
|
+
const t = p.value.find((h) => h.id === i.value);
|
|
77
|
+
return t ? s(t.titleT) : "";
|
|
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
|
+
sortBy: null
|
|
84
|
+
}, e("sortByChange", t)), c.value.sortBy = t.sortBy, e("sortByChange", t);
|
|
548
85
|
};
|
|
549
|
-
return G(
|
|
550
|
-
|
|
551
|
-
(
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
r(C);
|
|
557
|
-
return;
|
|
558
|
-
}
|
|
559
|
-
l.paginationUpdateCustomCb(C, i);
|
|
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
|
+
return;
|
|
560
93
|
}
|
|
94
|
+
d.paginationUpdateCustomCb(g, c);
|
|
561
95
|
}
|
|
562
|
-
), G(
|
|
563
|
-
|
|
564
|
-
(
|
|
565
|
-
if (
|
|
96
|
+
}), G(
|
|
97
|
+
c,
|
|
98
|
+
(t, h) => {
|
|
99
|
+
if (t.sortBy?.key === h?.sortBy?.key && t.sortBy?.order === h?.sortBy?.order)
|
|
566
100
|
return;
|
|
567
|
-
const
|
|
568
|
-
F(
|
|
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);
|
|
569
103
|
},
|
|
570
104
|
{ immediate: !0 }
|
|
571
|
-
), (
|
|
572
|
-
|
|
573
|
-
|
|
105
|
+
), (t, h) => (S(), R("div", Ct, [
|
|
106
|
+
k("div", At, _(y(s)("common.system.datatable.ordering.title")) + ": ", 1),
|
|
107
|
+
P(M, {
|
|
574
108
|
variant: "text",
|
|
575
109
|
rounded: "xl",
|
|
576
110
|
size: "small",
|
|
111
|
+
class: "text-medium-emphasis",
|
|
577
112
|
"append-icon": "mdi-chevron-down"
|
|
578
113
|
}, {
|
|
579
|
-
default:
|
|
580
|
-
|
|
581
|
-
|
|
114
|
+
default: T(() => [
|
|
115
|
+
z(_(C.value) + " ", 1),
|
|
116
|
+
P(ct, {
|
|
582
117
|
activator: "parent",
|
|
583
118
|
location: "bottom",
|
|
584
119
|
"close-on-content-click": ""
|
|
585
120
|
}, {
|
|
586
|
-
default:
|
|
587
|
-
|
|
121
|
+
default: T(() => [
|
|
122
|
+
P(rt, {
|
|
588
123
|
density: "compact",
|
|
589
124
|
class: "pa-0"
|
|
590
125
|
}, {
|
|
591
|
-
default:
|
|
592
|
-
(
|
|
593
|
-
key:
|
|
594
|
-
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)
|
|
595
130
|
}, {
|
|
596
|
-
default:
|
|
597
|
-
|
|
598
|
-
class:
|
|
131
|
+
default: T(() => [
|
|
132
|
+
P(it, {
|
|
133
|
+
class: Be({ "font-weight-bold": g.id === i.value })
|
|
599
134
|
}, {
|
|
600
|
-
default:
|
|
601
|
-
|
|
135
|
+
default: T(() => [
|
|
136
|
+
z(_(y(s)(g.titleT)), 1)
|
|
602
137
|
]),
|
|
603
138
|
_: 2
|
|
604
139
|
}, 1032, ["class"])
|
|
@@ -616,63 +151,63 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
616
151
|
})
|
|
617
152
|
]));
|
|
618
153
|
}
|
|
619
|
-
}),
|
|
154
|
+
}), Pt = { class: "anzu-data-footer" }, wt = {
|
|
620
155
|
key: 0,
|
|
621
156
|
class: "anzu-data-footer__page-limit"
|
|
622
|
-
},
|
|
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({
|
|
623
158
|
__name: "ADatatablePagination",
|
|
624
159
|
props: {
|
|
625
160
|
itemsPerPageOptions: { default: () => [10, 25, 50] },
|
|
626
161
|
hideRecordsPerPage: { type: Boolean, default: !1 }
|
|
627
162
|
},
|
|
628
163
|
emits: ["change"],
|
|
629
|
-
setup(
|
|
630
|
-
const
|
|
631
|
-
if (F(
|
|
164
|
+
setup(r, { emit: f }) {
|
|
165
|
+
const d = f, e = Fe(de);
|
|
166
|
+
if (F(e))
|
|
632
167
|
throw new Error("Incorrect provide/inject config.");
|
|
633
|
-
const { t:
|
|
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);
|
|
634
169
|
G(
|
|
635
|
-
() =>
|
|
636
|
-
(
|
|
637
|
-
|
|
170
|
+
() => e.value.rowsPerPage,
|
|
171
|
+
(a, A) => {
|
|
172
|
+
a !== A && (e.value.page = 1, d("change"));
|
|
638
173
|
}
|
|
639
174
|
), G(
|
|
640
|
-
() =>
|
|
641
|
-
(
|
|
642
|
-
|
|
175
|
+
() => e.value.page,
|
|
176
|
+
(a, A) => {
|
|
177
|
+
a !== A && (c(a), d("change"));
|
|
643
178
|
}
|
|
644
179
|
);
|
|
645
|
-
const
|
|
646
|
-
|
|
647
|
-
}, 300),
|
|
648
|
-
|
|
649
|
-
}, 300),
|
|
650
|
-
|
|
651
|
-
}, 300),
|
|
652
|
-
|
|
180
|
+
const u = X(() => {
|
|
181
|
+
e.value.page = 1;
|
|
182
|
+
}, 300), t = X(() => {
|
|
183
|
+
e.value.page = s.value;
|
|
184
|
+
}, 300), h = X(() => {
|
|
185
|
+
e.value.page = e.value.page - 1;
|
|
186
|
+
}, 300), g = X(() => {
|
|
187
|
+
e.value.page = e.value.page + 1;
|
|
653
188
|
}, 300);
|
|
654
|
-
return (
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
modelValue:
|
|
659
|
-
"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),
|
|
660
195
|
class: "ml-2",
|
|
661
196
|
density: "compact",
|
|
662
197
|
mandatory: "",
|
|
663
198
|
"data-cy": "table-size"
|
|
664
199
|
}, {
|
|
665
|
-
default:
|
|
666
|
-
(
|
|
667
|
-
key:
|
|
668
|
-
color:
|
|
669
|
-
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,
|
|
670
205
|
density: "compact",
|
|
671
206
|
size: "small",
|
|
672
207
|
variant: "text"
|
|
673
208
|
}, {
|
|
674
|
-
default:
|
|
675
|
-
|
|
209
|
+
default: T(() => [
|
|
210
|
+
z(_(x), 1)
|
|
676
211
|
]),
|
|
677
212
|
_: 2
|
|
678
213
|
}, 1032, ["color", "value"]))), 128))
|
|
@@ -680,280 +215,306 @@ const Yt = /* @__PURE__ */ Z({
|
|
|
680
215
|
_: 1
|
|
681
216
|
}, 8, ["modelValue"])
|
|
682
217
|
])),
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
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,
|
|
687
222
|
icon: "mdi-page-first",
|
|
688
223
|
size: "small",
|
|
689
224
|
variant: "text",
|
|
690
|
-
onClick:
|
|
225
|
+
onClick: J(y(u), ["stop"])
|
|
691
226
|
}, null, 8, ["disabled", "onClick"]),
|
|
692
|
-
|
|
693
|
-
disabled:
|
|
227
|
+
P(M, {
|
|
228
|
+
disabled: v.value,
|
|
694
229
|
icon: "mdi-chevron-left",
|
|
695
230
|
size: "small",
|
|
696
231
|
variant: "text",
|
|
697
|
-
onClick:
|
|
232
|
+
onClick: J(y(h), ["stop"])
|
|
698
233
|
}, null, 8, ["disabled", "onClick"])
|
|
699
234
|
]),
|
|
700
|
-
|
|
701
|
-
|
|
235
|
+
k("div", kt, [
|
|
236
|
+
k("span", null, _(y(e).page), 1)
|
|
702
237
|
]),
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
disabled:
|
|
238
|
+
k("div", Tt, [
|
|
239
|
+
P(M, {
|
|
240
|
+
disabled: p.value,
|
|
706
241
|
icon: "mdi-chevron-right",
|
|
707
242
|
size: "small",
|
|
708
243
|
variant: "text",
|
|
709
|
-
onClick:
|
|
244
|
+
onClick: J(y(g), ["stop"])
|
|
710
245
|
}, null, 8, ["disabled", "onClick"]),
|
|
711
|
-
|
|
712
|
-
disabled:
|
|
246
|
+
P(M, {
|
|
247
|
+
disabled: C.value,
|
|
713
248
|
icon: "mdi-page-last",
|
|
714
249
|
size: "small",
|
|
715
250
|
variant: "text",
|
|
716
|
-
onClick:
|
|
251
|
+
onClick: J(y(t), ["stop"])
|
|
717
252
|
}, null, 8, ["disabled", "onClick"])
|
|
718
253
|
])
|
|
719
254
|
]));
|
|
720
255
|
}
|
|
721
|
-
}),
|
|
722
|
-
const { querySetLimit:
|
|
723
|
-
return
|
|
724
|
-
},
|
|
725
|
-
|
|
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
|
+
const {
|
|
261
|
+
client: f,
|
|
262
|
+
system: d,
|
|
263
|
+
entity: e,
|
|
264
|
+
urlTemplate: i,
|
|
265
|
+
urlParams: c,
|
|
266
|
+
options: s = {},
|
|
267
|
+
isSearchApi: m = !1,
|
|
268
|
+
field: l = "id",
|
|
269
|
+
silentConsoleError: v = !1
|
|
270
|
+
} = r;
|
|
271
|
+
let C = null;
|
|
726
272
|
return {
|
|
727
|
-
executeFetch: async (
|
|
728
|
-
|
|
273
|
+
executeFetch: async (u, t = {}) => {
|
|
274
|
+
C = new AbortController();
|
|
275
|
+
const { urlTemplate: h, urlParams: g } = t;
|
|
729
276
|
try {
|
|
730
|
-
const
|
|
731
|
-
if (F(
|
|
732
|
-
const
|
|
733
|
-
...
|
|
734
|
-
signal:
|
|
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, {
|
|
280
|
+
...s,
|
|
281
|
+
signal: C.signal
|
|
735
282
|
});
|
|
736
|
-
if (!
|
|
737
|
-
throw new
|
|
738
|
-
if (
|
|
739
|
-
return
|
|
740
|
-
if (
|
|
283
|
+
if (!fe(o.status))
|
|
284
|
+
throw new pe(o.status);
|
|
285
|
+
if (o.data?.data)
|
|
286
|
+
return o.data.data;
|
|
287
|
+
if (o.status === ge)
|
|
741
288
|
return [];
|
|
742
|
-
throw new
|
|
743
|
-
} catch (
|
|
744
|
-
if (
|
|
289
|
+
throw new ae();
|
|
290
|
+
} catch (a) {
|
|
291
|
+
if (a instanceof DOMException && a.name === "AbortError")
|
|
745
292
|
return [];
|
|
746
|
-
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));
|
|
747
294
|
} finally {
|
|
748
|
-
|
|
295
|
+
C = null;
|
|
749
296
|
}
|
|
750
297
|
},
|
|
751
298
|
abortFetch: () => {
|
|
752
|
-
|
|
299
|
+
C && C.abort();
|
|
753
300
|
}
|
|
754
301
|
};
|
|
755
|
-
},
|
|
756
|
-
|
|
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;
|
|
757
313
|
return {
|
|
758
|
-
executeFetch: async (
|
|
759
|
-
|
|
314
|
+
executeFetch: async (p, b, u = {}) => {
|
|
315
|
+
l = new AbortController();
|
|
316
|
+
const {
|
|
317
|
+
urlTemplate: t,
|
|
318
|
+
urlParams: h,
|
|
319
|
+
sortBy: g = "id",
|
|
320
|
+
sortDesc: a = !0,
|
|
321
|
+
batchSize: A = 100,
|
|
322
|
+
forceElastic: x = !1
|
|
323
|
+
} = u;
|
|
760
324
|
try {
|
|
761
|
-
const
|
|
762
|
-
if (F(
|
|
763
|
-
const { pagination:
|
|
764
|
-
rowsPerPage:
|
|
765
|
-
}),
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
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),
|
|
331
|
+
{
|
|
332
|
+
...s,
|
|
333
|
+
signal: l.signal
|
|
334
|
+
}
|
|
335
|
+
);
|
|
336
|
+
if (!fe(N.status))
|
|
337
|
+
throw new pe(N.status);
|
|
771
338
|
if (N.data) {
|
|
772
|
-
const
|
|
773
|
-
if (
|
|
774
|
-
for (
|
|
775
|
-
|
|
776
|
-
const
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
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),
|
|
345
|
+
{
|
|
346
|
+
...s,
|
|
347
|
+
signal: l.signal
|
|
348
|
+
}
|
|
349
|
+
)).data;
|
|
350
|
+
I.push(...K.data), n.value.hasNextPage = K.hasNextPage;
|
|
781
351
|
}
|
|
782
|
-
else if (
|
|
783
|
-
if (
|
|
784
|
-
return
|
|
785
|
-
const
|
|
786
|
-
for (let
|
|
787
|
-
const
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
...
|
|
791
|
-
signal:
|
|
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), {
|
|
360
|
+
...s,
|
|
361
|
+
signal: l.signal
|
|
792
362
|
})
|
|
793
363
|
);
|
|
794
364
|
}
|
|
795
|
-
(await Promise.all(
|
|
796
|
-
|
|
365
|
+
(await Promise.all(V)).forEach((D) => {
|
|
366
|
+
I.push(...D.data.data);
|
|
797
367
|
});
|
|
798
368
|
}
|
|
799
|
-
return
|
|
369
|
+
return I;
|
|
800
370
|
}
|
|
801
|
-
if (N.status ===
|
|
371
|
+
if (N.status === ge)
|
|
802
372
|
return [];
|
|
803
|
-
throw new
|
|
804
|
-
} catch (
|
|
805
|
-
if (
|
|
373
|
+
throw new ae();
|
|
374
|
+
} catch (o) {
|
|
375
|
+
if (o instanceof DOMException && o.name === "AbortError")
|
|
806
376
|
return [];
|
|
807
|
-
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));
|
|
808
378
|
} finally {
|
|
809
|
-
|
|
379
|
+
l = null;
|
|
810
380
|
}
|
|
811
381
|
},
|
|
812
382
|
abortFetch: () => {
|
|
813
|
-
|
|
383
|
+
l && l.abort();
|
|
814
384
|
}
|
|
815
385
|
};
|
|
816
|
-
},
|
|
817
|
-
function
|
|
386
|
+
}, Z = "/adm/v1/job", ee = "job";
|
|
387
|
+
function ua(r, f) {
|
|
818
388
|
return {
|
|
819
|
-
useFetchJobList: () =>
|
|
820
|
-
fetchJob: (
|
|
821
|
-
createJob: (
|
|
822
|
-
const
|
|
823
|
-
return
|
|
389
|
+
useFetchJobList: () => qe({ client: r, system: f, entity: ee, urlTemplate: Z }),
|
|
390
|
+
fetchJob: (s) => Me(r, Z + "/:id", { id: s }, f, ee),
|
|
391
|
+
createJob: (s) => {
|
|
392
|
+
const m = $e(s._resourceName).slice(4).replace("-kind-", "-kind/");
|
|
393
|
+
return Ue(r, s, Z + "/:type", { type: m }, f, ee);
|
|
824
394
|
},
|
|
825
|
-
deleteJob: (
|
|
395
|
+
deleteJob: (s) => ze(r, Z + "/:id", { id: s }, f, ee)
|
|
826
396
|
};
|
|
827
397
|
}
|
|
828
|
-
const
|
|
398
|
+
const Et = {
|
|
829
399
|
key: "",
|
|
830
400
|
title: void 0,
|
|
831
401
|
sortable: !1,
|
|
832
402
|
fixed: !1
|
|
833
|
-
},
|
|
403
|
+
}, Bt = {
|
|
834
404
|
storeColumnsLocalStorage: !0,
|
|
835
405
|
disableActions: !1,
|
|
836
406
|
customI18n: void 0,
|
|
837
407
|
showExpand: !1
|
|
838
408
|
};
|
|
839
|
-
function
|
|
840
|
-
const
|
|
841
|
-
let
|
|
842
|
-
|
|
843
|
-
const
|
|
844
|
-
const
|
|
845
|
-
return F(
|
|
846
|
-
}),
|
|
847
|
-
const
|
|
848
|
-
return
|
|
849
|
-
|
|
850
|
-
}),
|
|
851
|
-
}),
|
|
852
|
-
if (!
|
|
853
|
-
const
|
|
854
|
-
if (!
|
|
855
|
-
const
|
|
856
|
-
|
|
857
|
-
},
|
|
858
|
-
!
|
|
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 }));
|
|
859
429
|
};
|
|
860
|
-
return
|
|
861
|
-
|
|
862
|
-
}), G(
|
|
863
|
-
|
|
430
|
+
return De(() => {
|
|
431
|
+
p();
|
|
432
|
+
}), G(f, (u) => {
|
|
433
|
+
b(u);
|
|
864
434
|
}), {
|
|
865
|
-
columnsAll:
|
|
866
|
-
columnsVisible:
|
|
867
|
-
columnsHidden:
|
|
435
|
+
columnsAll: v,
|
|
436
|
+
columnsVisible: C,
|
|
437
|
+
columnsHidden: f
|
|
868
438
|
};
|
|
869
439
|
}
|
|
870
|
-
function
|
|
871
|
-
const
|
|
872
|
-
Q(
|
|
873
|
-
|
|
874
|
-
), { 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, {
|
|
875
445
|
storeFiltersLocalStorage: !1,
|
|
876
446
|
populateUrlParams: !1
|
|
877
|
-
}), { showErrorsDefault:
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
447
|
+
}), { showErrorsDefault: x } = Xe(), { columnsVisible: o, columnsAll: $, columnsHidden: U } = Ot(
|
|
448
|
+
r,
|
|
449
|
+
f,
|
|
450
|
+
d,
|
|
451
|
+
e,
|
|
882
452
|
{ storeColumnsLocalStorage: !1, disableActions: !v }
|
|
883
|
-
),
|
|
884
|
-
|
|
885
|
-
},
|
|
886
|
-
|
|
887
|
-
},
|
|
888
|
-
|
|
453
|
+
), n = () => {
|
|
454
|
+
N(), V();
|
|
455
|
+
}, B = (O) => {
|
|
456
|
+
h(O.sortBy), V();
|
|
457
|
+
}, I = async () => {
|
|
458
|
+
u.value = !0, g();
|
|
889
459
|
try {
|
|
890
|
-
const
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
c,
|
|
895
|
-
d,
|
|
896
|
-
b
|
|
897
|
-
);
|
|
898
|
-
r.value.push(...$);
|
|
899
|
-
} catch ($) {
|
|
900
|
-
A($);
|
|
460
|
+
const O = await i(t, c, s, l);
|
|
461
|
+
p.value.push(...O);
|
|
462
|
+
} catch (O) {
|
|
463
|
+
x(O);
|
|
901
464
|
} finally {
|
|
902
|
-
|
|
465
|
+
u.value = !1;
|
|
903
466
|
}
|
|
904
|
-
},
|
|
905
|
-
|
|
906
|
-
},
|
|
907
|
-
|
|
467
|
+
}, N = () => {
|
|
468
|
+
p.value = [], b.value = [];
|
|
469
|
+
}, E = async () => {
|
|
470
|
+
u.value = !0;
|
|
908
471
|
try {
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
i,
|
|
912
|
-
n,
|
|
472
|
+
p.value = await i(
|
|
473
|
+
t,
|
|
913
474
|
c,
|
|
914
|
-
|
|
915
|
-
|
|
475
|
+
s,
|
|
476
|
+
l
|
|
916
477
|
);
|
|
917
|
-
} catch (
|
|
918
|
-
|
|
478
|
+
} catch (O) {
|
|
479
|
+
x(O);
|
|
919
480
|
} finally {
|
|
920
|
-
|
|
481
|
+
u.value = !1;
|
|
921
482
|
}
|
|
922
|
-
},
|
|
923
|
-
await
|
|
483
|
+
}, V = ut(async () => {
|
|
484
|
+
await E();
|
|
924
485
|
});
|
|
925
486
|
return {
|
|
926
|
-
items:
|
|
927
|
-
selected:
|
|
928
|
-
pagination:
|
|
929
|
-
columnsVisible:
|
|
930
|
-
columnsHidden:
|
|
931
|
-
columnsAll:
|
|
932
|
-
filterTouched:
|
|
933
|
-
loading:
|
|
934
|
-
onRowClick: (
|
|
935
|
-
const
|
|
936
|
-
if (!
|
|
487
|
+
items: p,
|
|
488
|
+
selected: b,
|
|
489
|
+
pagination: t,
|
|
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")
|
|
937
498
|
return;
|
|
938
|
-
const
|
|
939
|
-
if (!
|
|
940
|
-
const
|
|
941
|
-
if (!
|
|
942
|
-
const
|
|
943
|
-
|
|
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();
|
|
944
505
|
},
|
|
945
|
-
onFetchNextPage:
|
|
946
|
-
onOpen:
|
|
947
|
-
sortByChange:
|
|
948
|
-
getList:
|
|
949
|
-
resetFilter: () =>
|
|
950
|
-
submitFilter: () =>
|
|
506
|
+
onFetchNextPage: I,
|
|
507
|
+
onOpen: n,
|
|
508
|
+
sortByChange: B,
|
|
509
|
+
getList: V,
|
|
510
|
+
resetFilter: () => a(t, V),
|
|
511
|
+
submitFilter: () => A(t, V)
|
|
951
512
|
};
|
|
952
513
|
}
|
|
953
|
-
const
|
|
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 = {
|
|
954
515
|
key: 0,
|
|
955
516
|
class: "d-flex w-100 align-center justify-center pa-4"
|
|
956
|
-
},
|
|
517
|
+
}, $t = { class: "subject-select__actions system-border-t" }, Ut = { key: 0 }, Mt = { key: 1 }, ma = /* @__PURE__ */ se({
|
|
957
518
|
__name: "ASubjectSelect",
|
|
958
519
|
props: {
|
|
959
520
|
selectedItems: {},
|
|
@@ -967,109 +528,114 @@ const ba = { class: "d-flex flex-column w-100 px-1 align-center" }, ya = { class
|
|
|
967
528
|
autoOpen: { type: Boolean, default: !1 }
|
|
968
529
|
},
|
|
969
530
|
emits: ["update:modelValue", "update:pagination", "onOpen", "onPageChange", "onConfirm", "onFetchNextPage"],
|
|
970
|
-
setup(
|
|
971
|
-
const
|
|
531
|
+
setup(r, { expose: f, emit: d }) {
|
|
532
|
+
const e = r, i = d, c = q(!1), s = w({
|
|
972
533
|
get() {
|
|
973
|
-
return F(
|
|
534
|
+
return F(e.modelValue) ? c.value : e.modelValue;
|
|
974
535
|
},
|
|
975
|
-
set(
|
|
976
|
-
|
|
536
|
+
set(n) {
|
|
537
|
+
c.value = n, i("update:modelValue", n);
|
|
977
538
|
}
|
|
978
|
-
}),
|
|
979
|
-
get: () =>
|
|
980
|
-
set: (
|
|
981
|
-
|
|
539
|
+
}), m = w({
|
|
540
|
+
get: () => e.pagination,
|
|
541
|
+
set: (n) => {
|
|
542
|
+
i("update:pagination", { ...ce(n) });
|
|
982
543
|
}
|
|
983
|
-
}),
|
|
984
|
-
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
}, e = () => {
|
|
988
|
-
|
|
989
|
-
},
|
|
990
|
-
|
|
544
|
+
}), { mdAndDown: l } = mt(), v = q(!l.value), C = () => {
|
|
545
|
+
l.value && (v.value = !1);
|
|
546
|
+
};
|
|
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 = () => {
|
|
553
|
+
s.value = !1;
|
|
554
|
+
}, a = () => {
|
|
555
|
+
i(
|
|
991
556
|
"onConfirm",
|
|
992
|
-
|
|
993
|
-
),
|
|
994
|
-
},
|
|
995
|
-
|
|
996
|
-
},
|
|
997
|
-
|
|
998
|
-
},
|
|
999
|
-
|
|
557
|
+
e.selectedItems.map((n) => ce(n))
|
|
558
|
+
), g();
|
|
559
|
+
}, A = () => {
|
|
560
|
+
i("onFetchNextPage");
|
|
561
|
+
}, 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();
|
|
1000
565
|
};
|
|
1001
|
-
return
|
|
1002
|
-
|
|
1003
|
-
}),
|
|
1004
|
-
open:
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
566
|
+
return De(() => {
|
|
567
|
+
e.autoOpen && t();
|
|
568
|
+
}), f({
|
|
569
|
+
open: t,
|
|
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", {
|
|
575
|
+
props: { onClick: J(() => t(), ["stop"]) }
|
|
1010
576
|
}),
|
|
1011
|
-
|
|
1012
|
-
"model-value":
|
|
577
|
+
P(pt, ot(n.$attrs, {
|
|
578
|
+
"model-value": s.value,
|
|
1013
579
|
fullscreen: "",
|
|
1014
580
|
class: "subject-select",
|
|
1015
|
-
"onUpdate:modelValue":
|
|
581
|
+
"onUpdate:modelValue": B[1] || (B[1] = (E) => i("update:modelValue", E))
|
|
1016
582
|
}), {
|
|
1017
|
-
default:
|
|
1018
|
-
|
|
583
|
+
default: T(() => [
|
|
584
|
+
s.value ? (S(), Y(ft, {
|
|
1019
585
|
key: 0,
|
|
1020
586
|
class: "subject-select__card"
|
|
1021
587
|
}, {
|
|
1022
|
-
default:
|
|
1023
|
-
|
|
588
|
+
default: T(() => [
|
|
589
|
+
P(et, {
|
|
1024
590
|
class: "subject-select__toolbar system-border-b",
|
|
1025
|
-
onOnCancel:
|
|
591
|
+
onOnCancel: g
|
|
1026
592
|
}, {
|
|
1027
|
-
default:
|
|
1028
|
-
|
|
1029
|
-
|
|
593
|
+
default: T(() => [
|
|
594
|
+
j(n.$slots, "title", {}, () => [
|
|
595
|
+
z(_(y(p)(r.dialogTitleT)), 1)
|
|
1030
596
|
])
|
|
1031
597
|
]),
|
|
1032
598
|
_: 3
|
|
1033
599
|
}),
|
|
1034
|
-
|
|
600
|
+
P(bt, {
|
|
1035
601
|
density: "compact",
|
|
1036
602
|
color: "transparent",
|
|
1037
603
|
height: 46,
|
|
1038
604
|
elevation: "0",
|
|
1039
605
|
class: "system-border-b subject-select__second-bar"
|
|
1040
606
|
}, {
|
|
1041
|
-
default:
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
607
|
+
default: T(() => [
|
|
608
|
+
j(n.$slots, "second-bar", {}, () => [
|
|
609
|
+
k("div", Dt, [
|
|
610
|
+
k("div", It, [
|
|
611
|
+
k("div", Nt, [
|
|
612
|
+
P(M, {
|
|
1047
613
|
icon: "",
|
|
1048
614
|
width: 30,
|
|
1049
615
|
height: 30,
|
|
1050
|
-
onClick:
|
|
616
|
+
onClick: h
|
|
1051
617
|
}, {
|
|
1052
|
-
default:
|
|
1053
|
-
|
|
618
|
+
default: T(() => [
|
|
619
|
+
P(vt, {
|
|
1054
620
|
icon: "mdi-tune",
|
|
1055
621
|
size: 16
|
|
1056
622
|
}),
|
|
1057
|
-
|
|
623
|
+
P(ht, {
|
|
1058
624
|
activator: "parent",
|
|
1059
625
|
location: "bottom"
|
|
1060
626
|
}, {
|
|
1061
|
-
default:
|
|
1062
|
-
|
|
627
|
+
default: T(() => [
|
|
628
|
+
z(_(y(p)("common.subjectSelect.filter.toggle")), 1)
|
|
1063
629
|
]),
|
|
1064
630
|
_: 1
|
|
1065
631
|
})
|
|
1066
632
|
]),
|
|
1067
633
|
_: 1
|
|
1068
634
|
}),
|
|
1069
|
-
|
|
635
|
+
j(n.$slots, "second-bar-left")
|
|
1070
636
|
]),
|
|
1071
|
-
|
|
1072
|
-
|
|
637
|
+
k("div", Vt, [
|
|
638
|
+
j(n.$slots, "second-bar-right")
|
|
1073
639
|
])
|
|
1074
640
|
])
|
|
1075
641
|
])
|
|
@@ -1077,59 +643,62 @@ const ba = { class: "d-flex flex-column w-100 px-1 align-center" }, ya = { class
|
|
|
1077
643
|
]),
|
|
1078
644
|
_: 3
|
|
1079
645
|
}),
|
|
1080
|
-
|
|
1081
|
-
class:
|
|
646
|
+
k("div", {
|
|
647
|
+
class: Be(["subject-select__main", { "subject-select__main--sidebar-active": v.value }])
|
|
1082
648
|
}, [
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
649
|
+
k("div", jt, [
|
|
650
|
+
k("div", Lt, [
|
|
651
|
+
j(n.$slots, "filter")
|
|
1086
652
|
])
|
|
1087
653
|
]),
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
st((
|
|
1092
|
-
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,
|
|
1093
659
|
size: "small",
|
|
1094
|
-
onClick:
|
|
660
|
+
onClick: A
|
|
1095
661
|
}, {
|
|
1096
|
-
default:
|
|
1097
|
-
|
|
1098
|
-
|
|
662
|
+
default: T(() => [
|
|
663
|
+
j(n.$slots, "button-confirm-title", {}, () => [
|
|
664
|
+
z(_(y(p)("common.button.loadMore")), 1)
|
|
1099
665
|
])
|
|
1100
666
|
]),
|
|
1101
667
|
_: 3
|
|
1102
668
|
}, 8, ["loading"])), [
|
|
1103
|
-
[
|
|
669
|
+
[nt, $.value || r.loading],
|
|
1104
670
|
[
|
|
1105
|
-
|
|
1106
|
-
|
|
671
|
+
yt,
|
|
672
|
+
U,
|
|
1107
673
|
void 0,
|
|
1108
674
|
{ quiet: !0 }
|
|
1109
675
|
]
|
|
1110
676
|
])
|
|
1111
|
-
])) : (
|
|
677
|
+
])) : (S(), Y(St, {
|
|
1112
678
|
key: 1,
|
|
1113
|
-
modelValue:
|
|
1114
|
-
"onUpdate:modelValue":
|
|
1115
|
-
onChange:
|
|
679
|
+
modelValue: m.value,
|
|
680
|
+
"onUpdate:modelValue": B[0] || (B[0] = (E) => m.value = E),
|
|
681
|
+
onChange: x
|
|
1116
682
|
}, null, 8, ["modelValue"]))
|
|
1117
683
|
])
|
|
1118
684
|
], 2),
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
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,
|
|
1123
692
|
selected: b.value
|
|
1124
693
|
})), 1)),
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
disabled:
|
|
1128
|
-
onClick:
|
|
694
|
+
P(gt),
|
|
695
|
+
P(N, {
|
|
696
|
+
disabled: u.value,
|
|
697
|
+
onClick: J(a, ["stop"])
|
|
1129
698
|
}, {
|
|
1130
|
-
default:
|
|
1131
|
-
|
|
1132
|
-
|
|
699
|
+
default: T(() => [
|
|
700
|
+
j(n.$slots, "button-confirm-title", {}, () => [
|
|
701
|
+
z(_(y(p)("common.button.confirm")), 1)
|
|
1133
702
|
])
|
|
1134
703
|
]),
|
|
1135
704
|
_: 3
|
|
@@ -1137,7 +706,7 @@ const ba = { class: "d-flex flex-column w-100 px-1 align-center" }, ya = { class
|
|
|
1137
706
|
])
|
|
1138
707
|
]),
|
|
1139
708
|
_: 3
|
|
1140
|
-
})) :
|
|
709
|
+
})) : Oe("", !0)
|
|
1141
710
|
]),
|
|
1142
711
|
_: 3
|
|
1143
712
|
}, 16, ["model-value"])
|
|
@@ -1146,44 +715,44 @@ const ba = { class: "d-flex flex-column w-100 px-1 align-center" }, ya = { class
|
|
|
1146
715
|
}
|
|
1147
716
|
});
|
|
1148
717
|
export {
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
718
|
+
la as ADatatableOrdering,
|
|
719
|
+
St as ADatatablePagination,
|
|
720
|
+
ga as AFilterBooleanSelect,
|
|
721
|
+
va as AFilterDatetimePicker,
|
|
722
|
+
ba as AFilterInteger,
|
|
723
|
+
ha as AFilterRemoteAutocomplete,
|
|
724
|
+
ya as AFilterRemoteAutocompleteWithMinimal,
|
|
725
|
+
Ca as AFilterString,
|
|
726
|
+
Aa as AFilterTimeInterval,
|
|
727
|
+
Pa as AFilterValueObjectOptionsSelect,
|
|
728
|
+
wa as AFilterWrapper,
|
|
729
|
+
_a as AFilterWrapperSubjectSelect,
|
|
730
|
+
xa as AFormRemoteAutocomplete,
|
|
731
|
+
ma as ASubjectSelect,
|
|
732
|
+
de as DatatablePaginationKey,
|
|
733
|
+
ka as FilterConfigKey,
|
|
734
|
+
Ta as FilterDataKey,
|
|
735
|
+
Sa as FilterInnerConfigKey,
|
|
736
|
+
Fa as FilterInnerDataKey,
|
|
737
|
+
Ea as TimeIntervalSpecialOptions,
|
|
738
|
+
Ba as UserAdminConfigLayoutType,
|
|
739
|
+
Oa as UserAdminConfigLayoutTypeDefault,
|
|
740
|
+
Da as UserAdminConfigType,
|
|
741
|
+
Ia as UserAdminConfigTypeDefault,
|
|
742
|
+
Ot as createDatatableColumnsConfig,
|
|
743
|
+
Na as createFilter,
|
|
744
|
+
Va as createFilterStore,
|
|
745
|
+
oe as generateListQuery,
|
|
746
|
+
ia as useApiFetchByIds,
|
|
747
|
+
qe as useApiFetchList,
|
|
748
|
+
ca as useApiFetchListBatch,
|
|
749
|
+
je as useApiQueryBuilder,
|
|
750
|
+
ja as useApiRequest,
|
|
751
|
+
Ge as useFilterHelpers,
|
|
752
|
+
ua as useJobApi,
|
|
753
|
+
Se as usePagination,
|
|
754
|
+
da as useSubjectSelect,
|
|
755
|
+
La as useUserAdminConfigApi,
|
|
756
|
+
Ra as useUserAdminConfigFactory
|
|
1188
757
|
};
|
|
1189
758
|
//# sourceMappingURL=labs.js.map
|