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