@anzusystems/common-admin 1.47.0-beta.358 → 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/labs.js CHANGED
@@ -1,514 +1,24 @@
1
- import { bQ as Ve, bR as ke, aE as Fe, aF as xe, d as F, bS as ft, H as Be, bT as vt, m as Oe, p as Ae, ah as fe, h as Q, bU as he, bV as Ce, n as re, l as Re, o as Ie, a5 as De, at as Pe, _ as pt, A as gt, i as Y, bW as bt, B as yt, D as ht, bX as Ct, aX as _t, bY as At, bZ as Ue, j as K, k as wt, 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, b_ as Ze, b$ as et, c0 as tt, c1 as kt, ar as at, c2 as _e, ao as Ft, ap as xt, aP as Pt, F as Tt, a6 as St, b1 as Bt, aq as It, a1 as Dt, c3 as $t, q as jt, x as Et, aG as Vt } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DWXEGI77.mjs";
2
- import { aD as so, c4 as lo, c5 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, ca as go, cb as bo, c8 as yo, c9 as ho, ag as Co, af as _o, c6 as Ao, c7 as wo, cc as ko } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DWXEGI77.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 Ot, withDirectives as st, vShow as lt, onMounted as nt, toRaw as je } from "vue";
4
- import { useI18n as ae } from "vue-i18n";
5
- import { VCard as rt, VCardText as Rt, VCardActions as Ut } from "vuetify/components/VCard";
6
- import { VDialog as it } from "vuetify/components/VDialog";
7
- import { VSpacer as ut, VRow as ie, VCol as te } from "vuetify/components/VGrid";
8
- import { VListItem as ct, 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 dt } from "vuetify/components/VTooltip";
14
- import { VChip as Ee } from "vuetify/components/VChip";
15
- import mt 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
- __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__ */ ge({
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__ */ ge(["sortByChange"], ["update:modelValue"]),
523
- setup(a, { emit: p }) {
524
- const l = a, t = p, g = we(a, "modelValue"), i = H(Ue);
525
- if (F(i))
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: n } = ae(), o = [
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
- ], c = [
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
- ], d = [
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: wt, order: K.Desc }
63
+ sortBy: { key: Ne, order: L.Desc }
538
64
  },
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
- ], b = S(() => {
542
- const e = v.value.find((w) => w.id === g.value);
543
- return e ? n(e.titleT) : "";
544
- }), v = S(() => l.customOptions ? l.customOptions : l.variant === "most-relevant" ? d : l.variant === "id" ? c : o), h = (e) => {
545
- g.value = e.id;
546
- }, r = (e) => {
547
- e.sortBy || (i.value = { ...i.value, sortBy: null, descending: !0 }, t("sortByChange", e)), i.value.sortBy = e.sortBy, t("sortByChange", e);
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
- g,
551
- (e, w) => {
552
- if (e === w) return;
553
- const C = v.value.find((s) => s.id === e);
554
- if (!F(C)) {
555
- if (F(l.paginationUpdateCustomCb)) {
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
- i,
564
- (e, w) => {
565
- if (e.sortBy?.key === w?.sortBy?.key && e.sortBy?.order === w?.sortBy?.order)
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 C = v.value.find((s) => e.sortBy?.key === s.sortBy?.key && e.sortBy?.order === s.sortBy?.order);
568
- F(C) || (g.value = C.id);
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
- ), (e, w) => (y(), V("div", sa, [
572
- I("div", la, P(f(n)("common.system.datatable.ordering.title")) + ": ", 1),
573
- m(W, {
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: u(() => [
580
- U(P(b.value) + " ", 1),
581
- m(Ht, {
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: u(() => [
587
- m(Lt, {
121
+ default: T(() => [
122
+ P(rt, {
588
123
  density: "compact",
589
124
  class: "pa-0"
590
125
  }, {
591
- default: u(() => [
592
- (y(!0), V(X, null, oe(v.value, (C) => (y(), B(ct, {
593
- key: C.id,
594
- onClick: (s) => h(C)
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: u(() => [
597
- m(Nt, {
598
- class: be({ "font-weight-bold": C.id === g.value })
131
+ default: T(() => [
132
+ P(it, {
133
+ class: Be({ "font-weight-bold": g.id === i.value })
599
134
  }, {
600
- default: u(() => [
601
- U(P(f(n)(C.titleT)), 1)
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
- }), na = { class: "anzu-data-footer" }, ra = {
154
+ }), Pt = { class: "anzu-data-footer" }, wt = {
620
155
  key: 0,
621
156
  class: "anzu-data-footer__page-limit"
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({
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(a, { emit: p }) {
630
- const l = p, t = H(Ue);
631
- if (F(t))
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: 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);
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
- () => t.value.rowsPerPage,
636
- (C, s) => {
637
- C !== s && (t.value.page = 1, l("change"));
170
+ () => e.value.rowsPerPage,
171
+ (a, A) => {
172
+ a !== A && (e.value.page = 1, d("change"));
638
173
  }
639
174
  ), G(
640
- () => t.value.page,
641
- (C, s) => {
642
- C !== s && l("change");
175
+ () => e.value.page,
176
+ (a, A) => {
177
+ a !== A && (c(a), d("change"));
643
178
  }
644
179
  );
645
- const h = ue(() => {
646
- t.value.page = 1;
647
- }, 300), r = ue(() => {
648
- t.value.page = i.value;
649
- }, 300), e = ue(() => {
650
- t.value.page = t.value.page - 1;
651
- }, 300), w = ue(() => {
652
- t.value.page = t.value.page + 1;
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 (C, 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
- modelValue: f(t).rowsPerPage,
659
- "onUpdate:modelValue": s[0] || (s[0] = (D) => f(t).rowsPerPage = D),
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: u(() => [
666
- (y(!0), V(X, null, oe(a.itemsPerPageOptions, (D) => (y(), B(W, {
667
- key: D,
668
- color: D === f(t).rowsPerPage ? "secondary" : "",
669
- value: D,
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: u(() => [
675
- U(P(D), 1)
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
- 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
- disabled: c.value,
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: R(f(h), ["stop"])
225
+ onClick: J(y(u), ["stop"])
691
226
  }, null, 8, ["disabled", "onClick"]),
692
- m(W, {
693
- disabled: c.value,
227
+ P(M, {
228
+ disabled: v.value,
694
229
  icon: "mdi-chevron-left",
695
230
  size: "small",
696
231
  variant: "text",
697
- onClick: R(f(e), ["stop"])
232
+ onClick: J(y(h), ["stop"])
698
233
  }, null, 8, ["disabled", "onClick"])
699
234
  ]),
700
- I("div", ca, [
701
- I("span", null, P(f(t).page), 1)
235
+ k("div", kt, [
236
+ k("span", null, _(y(e).page), 1)
702
237
  ]),
703
- I("div", da, [
704
- m(W, {
705
- disabled: b.value,
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: R(f(w), ["stop"])
244
+ onClick: J(y(g), ["stop"])
710
245
  }, null, 8, ["disabled", "onClick"]),
711
- m(W, {
712
- disabled: d.value,
246
+ P(M, {
247
+ disabled: C.value,
713
248
  icon: "mdi-page-last",
714
249
  size: "small",
715
250
  variant: "text",
716
- onClick: R(f(r), ["stop"])
251
+ onClick: J(y(t), ["stop"])
717
252
  }, null, 8, ["disabled", "onClick"])
718
253
  ])
719
254
  ]));
720
255
  }
721
- }), fa = (a, p, l = "id") => {
722
- const { querySetLimit: t, querySetOffset: g, querySetOrder: i, queryBuild: n, queryAddFilter: o, queryAdd: c } = kt(), d = a.length;
723
- return t(d), g(1, d), i(l, !1), p ? c(l, a.join(",")) : o("in", l, a.join(",")), n();
724
- }, Ga = (a, p, l, t = void 0, g = void 0, i = {}, n = !1, o = "id") => {
725
- let c = null;
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 (v, h = void 0, r = void 0) => {
728
- c = new AbortController();
273
+ executeFetch: async (u, t = {}) => {
274
+ C = new AbortController();
275
+ const { urlTemplate: h, urlParams: g } = t;
729
276
  try {
730
- const e = Y(r) ? r : g, w = Y(h) ? h : t;
731
- if (F(w)) throw new Error("Url template is undefined");
732
- const C = (F(e) ? w : Le(w, e)) + fa(v, n, o), s = await a().get(C, {
733
- ...i,
734
- signal: c.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 (!Ne(s.status))
737
- throw new ze(s.status);
738
- if (s.data?.data)
739
- return s.data.data;
740
- if (s.status === Me)
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 ve();
743
- } catch (e) {
744
- if (e instanceof DOMException && e.name === "AbortError")
289
+ throw new ae();
290
+ } catch (a) {
291
+ if (a instanceof DOMException && a.name === "AbortError")
745
292
  return [];
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) : mt.isAxiosError(e) ? (console.error("Axios error: " + t, e.cause), new tt(e)) : (console.error("AnzuFatalError: ", e), new ve(e));
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
- c = null;
295
+ C = null;
749
296
  }
750
297
  },
751
298
  abortFetch: () => {
752
- c && c.abort();
299
+ C && C.abort();
753
300
  }
754
301
  };
755
- }, Xa = (a, p, l, t = void 0, g = void 0, i = {}) => {
756
- let n = null;
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 (d, b, v = void 0, h = void 0, r = "id", e = !0, w = 100, C = !1) => {
759
- n = new AbortController();
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 s = b.general.elastic || C ? "/search" : "", D = Y(h) ? h : 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
- ...i,
767
- signal: n.signal
768
- });
769
- if (!Ne(N.status))
770
- throw new ze(N.status);
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 M = N.data;
773
- if (x.push(...M.data), Ft(M))
774
- for (k.value.hasNextPage = M.hasNextPage; k.value.hasNextPage; ) {
775
- k.value.page++;
776
- const J = (await a().get(A + _e(k, d, b), {
777
- ...i,
778
- signal: n.signal
779
- })).data;
780
- x.push(...J.data), k.value.hasNextPage = J.hasNextPage;
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 (xt(M)) {
783
- if (k.value.totalCount = M.totalCount, k.value.totalCount <= k.value.rowsPerPage)
784
- return x;
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
- z.push(
789
- a().get(A + _e(j, d, b), {
790
- ...i,
791
- signal: n.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(z)).forEach((_) => {
796
- x.push(..._.data.data);
365
+ (await Promise.all(V)).forEach((D) => {
366
+ I.push(...D.data.data);
797
367
  });
798
368
  }
799
- return x;
369
+ return I;
800
370
  }
801
- if (N.status === Me)
371
+ if (N.status === ge)
802
372
  return [];
803
- throw new ve();
804
- } catch (s) {
805
- if (s instanceof DOMException && s.name === "AbortError")
373
+ throw new ae();
374
+ } catch (o) {
375
+ if (o instanceof DOMException && o.name === "AbortError")
806
376
  return [];
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) : mt.isAxiosError(s) ? (console.error("Axios error: " + t, s.cause), new tt(s)) : (console.error("AnzuFatalError: ", s), new ve(s));
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
- n = null;
379
+ l = null;
810
380
  }
811
381
  },
812
382
  abortFetch: () => {
813
- n && n.abort();
383
+ l && l.abort();
814
384
  }
815
385
  };
816
- }, ce = "/adm/v1/job", de = "job";
817
- function Za(a, p) {
386
+ }, Z = "/adm/v1/job", ee = "job";
387
+ function ua(r, f) {
818
388
  return {
819
- useFetchJobList: () => St(a, p, de, ce),
820
- fetchJob: (n) => Tt(a, ce + "/:id", { id: n }, p, de),
821
- createJob: (n) => {
822
- const o = Bt(n._resourceName).slice(4).replace("-kind-", "-kind/");
823
- return It(a, n, ce + "/:type", { type: o }, p, de);
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: (n) => Pt(a, ce + "/:id", { id: n }, p, de)
395
+ deleteJob: (s) => ze(r, Z + "/:id", { id: s }, f, ee)
826
396
  };
827
397
  }
828
- const va = {
398
+ const Et = {
829
399
  key: "",
830
400
  title: void 0,
831
401
  sortable: !1,
832
402
  fixed: !1
833
- }, pa = {
403
+ }, Bt = {
834
404
  storeColumnsLocalStorage: !0,
835
405
  disableActions: !1,
836
406
  customI18n: void 0,
837
407
  showExpand: !1
838
408
  };
839
- function ga(a, p, l, t, g = {}) {
840
- const i = { ...pa, ...g }, n = i.customI18n ?? Dt, { t: o } = n.global || n;
841
- let c;
842
- Et(i.storeColumnsLocalStorage) ? c = i.storeColumnsLocalStorage : fe(i.storeColumnsLocalStorage) && i.storeColumnsLocalStorage === !0 && (c = "table_" + l + "_" + t);
843
- const d = a.map((r) => {
844
- const e = { ...va, ...r };
845
- return F(e.title) && (F(e.title) && $t.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
- }), b = S(() => {
847
- const r = [];
848
- return i.showExpand && r.push({ key: "data-table-expand", sortable: !1 }), d.forEach((e) => {
849
- p.value.includes(e.key) || r.push(e);
850
- }), i.disableActions || r.push({ key: "actions", sortable: !1, fixed: "end" }), r;
851
- }), v = () => {
852
- if (!c || !localStorage) return;
853
- const r = localStorage.getItem(c);
854
- if (!r) return;
855
- const e = JSON.parse(r);
856
- jt(e) && Ae(e.hidden) && (p.value = e.hidden);
857
- }, h = (r) => {
858
- !c || !localStorage || localStorage.setItem(c, JSON.stringify({ hidden: r }));
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 nt(() => {
861
- v();
862
- }), G(p, (r) => {
863
- h(r);
430
+ return De(() => {
431
+ p();
432
+ }), G(f, (u) => {
433
+ b(u);
864
434
  }), {
865
- columnsAll: d,
866
- columnsVisible: b,
867
- columnsHidden: p
435
+ columnsAll: v,
436
+ columnsVisible: C,
437
+ columnsHidden: f
868
438
  };
869
439
  }
870
- function eo(a, p, l, t, g, i, n, o = null, c = void 0, d = void 0, b = !1, v = !1) {
871
- const h = O(!1), r = O([]), e = O([]), w = O(!1), { pagination: C, setSortBy: s, incrementPage: D } = at(
872
- Q(o) ? null : o.key,
873
- o?.order
874
- ), { resetFilter: L, submitFilter: k } = Vt(i, n, {
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: A } = Oe(), { columnsVisible: x, columnsAll: N, columnsHidden: M } = ga(
878
- a,
879
- p,
880
- l,
881
- t,
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
- ), z = () => {
884
- _(), j();
885
- }, J = ($) => {
886
- s($.sortBy), j();
887
- }, se = async () => {
888
- w.value = !0, D();
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 $ = await g(
891
- C,
892
- i,
893
- n,
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
- w.value = !1;
465
+ u.value = !1;
903
466
  }
904
- }, _ = () => {
905
- r.value = [], e.value = [];
906
- }, T = async () => {
907
- w.value = !0;
467
+ }, N = () => {
468
+ p.value = [], b.value = [];
469
+ }, E = async () => {
470
+ u.value = !0;
908
471
  try {
909
- r.value = await g(
910
- C,
911
- i,
912
- n,
472
+ p.value = await i(
473
+ t,
913
474
  c,
914
- d,
915
- b
475
+ s,
476
+ l
916
477
  );
917
- } catch ($) {
918
- A($);
478
+ } catch (O) {
479
+ x(O);
919
480
  } finally {
920
- w.value = !1;
481
+ u.value = !1;
921
482
  }
922
- }, j = Jt(async () => {
923
- await T();
483
+ }, V = ut(async () => {
484
+ await E();
924
485
  });
925
486
  return {
926
- items: r,
927
- selected: e,
928
- pagination: C,
929
- columnsVisible: x,
930
- columnsHidden: M,
931
- columnsAll: N,
932
- filterTouched: h,
933
- loading: w,
934
- onRowClick: ($) => {
935
- const ee = $.target;
936
- if (!ee || ee.tagName === "INPUT" && ee.type === "checkbox")
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 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();
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: se,
946
- onOpen: z,
947
- sortByChange: J,
948
- getList: j,
949
- resetFilter: () => L(C, j),
950
- submitFilter: () => k(C, j)
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 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 = {
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
- }, Fa = { class: "subject-select__actions system-border-t" }, xa = { key: 0 }, Pa = { key: 1 }, to = /* @__PURE__ */ Z({
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(a, { expose: p, emit: l }) {
971
- const t = a, g = l, i = O(!1), n = S({
531
+ setup(r, { expose: f, emit: d }) {
532
+ const e = r, i = d, c = q(!1), s = w({
972
533
  get() {
973
- return F(t.modelValue) ? i.value : t.modelValue;
534
+ return F(e.modelValue) ? c.value : e.modelValue;
974
535
  },
975
- set(A) {
976
- i.value = A, g("update:modelValue", A);
536
+ set(n) {
537
+ c.value = n, i("update:modelValue", n);
977
538
  }
978
- }), o = S({
979
- get: () => t.pagination,
980
- set: (A) => {
981
- g("update:pagination", { ...je(A) });
539
+ }), m = w({
540
+ get: () => e.pagination,
541
+ set: (n) => {
542
+ i("update:pagination", { ...ce(n) });
982
543
  }
983
- }), c = O(!0), { t: d } = ae(), b = S(() => t.selectedItems.length), v = S(() => b.value < t.minCount || b.value > t.maxCount), h = () => {
984
- g("onOpen"), c.value = !0, n.value = !0;
985
- }, r = () => {
986
- c.value = !c.value;
987
- }, e = () => {
988
- n.value = !1;
989
- }, w = () => {
990
- g(
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
- t.selectedItems.map((A) => je(A))
993
- ), e();
994
- }, C = () => {
995
- g("onFetchNextPage");
996
- }, s = () => {
997
- g("onPageChange");
998
- }, 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) => {
999
- A && L.value && !t.loading && C();
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 nt(() => {
1002
- t.autoOpen && h();
1003
- }), p({
1004
- open: h
1005
- }), (A, x) => {
1006
- const N = pe("ABtnSecondary"), M = pe("ABtnPrimary");
1007
- return y(), V(X, null, [
1008
- E(A.$slots, "activator", {
1009
- props: { onClick: R(() => h(), ["stop"]) }
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
- m(it, ot(A.$attrs, {
1012
- "model-value": n.value,
577
+ P(pt, ot(n.$attrs, {
578
+ "model-value": s.value,
1013
579
  fullscreen: "",
1014
580
  class: "subject-select",
1015
- "onUpdate:modelValue": x[1] || (x[1] = (z) => g("update:modelValue", z))
581
+ "onUpdate:modelValue": B[1] || (B[1] = (E) => i("update:modelValue", E))
1016
582
  }), {
1017
- default: u(() => [
1018
- n.value ? (y(), B(rt, {
583
+ default: T(() => [
584
+ s.value ? (S(), Y(ft, {
1019
585
  key: 0,
1020
586
  class: "subject-select__card"
1021
587
  }, {
1022
- default: u(() => [
1023
- m(Re, {
588
+ default: T(() => [
589
+ P(et, {
1024
590
  class: "subject-select__toolbar system-border-b",
1025
- onOnCancel: e
591
+ onOnCancel: g
1026
592
  }, {
1027
- default: u(() => [
1028
- E(A.$slots, "title", {}, () => [
1029
- U(P(f(d)(a.dialogTitleT)), 1)
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
- m(Wt, {
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: u(() => [
1042
- E(A.$slots, "second-bar", {}, () => [
1043
- I("div", ba, [
1044
- I("div", ya, [
1045
- I("div", ha, [
1046
- m(W, {
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: r
616
+ onClick: h
1051
617
  }, {
1052
- default: u(() => [
1053
- m(Te, {
618
+ default: T(() => [
619
+ P(vt, {
1054
620
  icon: "mdi-tune",
1055
621
  size: 16
1056
622
  }),
1057
- m(dt, {
623
+ P(ht, {
1058
624
  activator: "parent",
1059
625
  location: "bottom"
1060
626
  }, {
1061
- default: u(() => [
1062
- U(P(f(d)("common.subjectSelect.filter.toggle")), 1)
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
- E(A.$slots, "second-bar-left")
635
+ j(n.$slots, "second-bar-left")
1070
636
  ]),
1071
- I("div", Ca, [
1072
- E(A.$slots, "second-bar-right")
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
- I("div", {
1081
- class: be(["subject-select__main", { "subject-select__main--sidebar-active": c.value }])
646
+ k("div", {
647
+ class: Be(["subject-select__main", { "subject-select__main--sidebar-active": v.value }])
1082
648
  }, [
1083
- I("div", _a, [
1084
- I("div", Aa, [
1085
- E(A.$slots, "filter")
649
+ k("div", jt, [
650
+ k("div", Lt, [
651
+ j(n.$slots, "filter")
1086
652
  ])
1087
653
  ]),
1088
- I("div", wa, [
1089
- E(A.$slots, "content"),
1090
- a.paginationMode === "more" ? (y(), V("div", ka, [
1091
- st((y(), B(N, {
1092
- loading: a.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: C
660
+ onClick: A
1095
661
  }, {
1096
- default: u(() => [
1097
- E(A.$slots, "button-confirm-title", {}, () => [
1098
- U(P(f(d)("common.button.loadMore")), 1)
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
- [lt, L.value || a.loading],
669
+ [nt, $.value || r.loading],
1104
670
  [
1105
- Qt,
1106
- k,
671
+ yt,
672
+ U,
1107
673
  void 0,
1108
674
  { quiet: !0 }
1109
675
  ]
1110
676
  ])
1111
- ])) : (y(), B(ma, {
677
+ ])) : (S(), Y(St, {
1112
678
  key: 1,
1113
- modelValue: o.value,
1114
- "onUpdate:modelValue": x[0] || (x[0] = (z) => o.value = z),
1115
- onChange: s
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
- I("div", Fa, [
1120
- 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", {
1121
- minCount: a.minCount,
1122
- maxCount: a.maxCount,
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
- m(ut),
1126
- m(M, {
1127
- disabled: v.value,
1128
- onClick: R(w, ["stop"])
694
+ P(gt),
695
+ P(N, {
696
+ disabled: u.value,
697
+ onClick: J(a, ["stop"])
1129
698
  }, {
1130
- default: u(() => [
1131
- E(A.$slots, "button-confirm-title", {}, () => [
1132
- U(P(f(d)("common.button.confirm")), 1)
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
- })) : q("", !0)
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
- Ya as ADatatableOrdering,
1150
- ma as ADatatablePagination,
1151
- so as AFilterBooleanSelect,
1152
- lo as AFilterDatetimePicker,
1153
- no as AFilterInteger,
1154
- ro as AFilterRemoteAutocomplete,
1155
- io as AFilterRemoteAutocompleteWithMinimal,
1156
- uo as AFilterString,
1157
- Wa as AFilterTimeInterval,
1158
- co as AFilterValueObjectOptionsSelect,
1159
- Qa as AFilterWrapper,
1160
- mo as AFilterWrapperSubjectSelect,
1161
- fo as AFormRemoteAutocomplete,
1162
- to as ASubjectSelect,
1163
- Ue as DatatablePaginationKey,
1164
- Fe as FilterConfigKey,
1165
- xe as FilterDataKey,
1166
- vo as FilterInnerConfigKey,
1167
- po as FilterInnerDataKey,
1168
- Ce as TimeIntervalSpecialOptions,
1169
- go as UserAdminConfigLayoutType,
1170
- bo as UserAdminConfigLayoutTypeDefault,
1171
- yo as UserAdminConfigType,
1172
- ho as UserAdminConfigTypeDefault,
1173
- ga as createDatatableColumnsConfig,
1174
- Co as createFilter,
1175
- _o as createFilterStore,
1176
- _e as generateListQuery,
1177
- Ga as useApiFetchByIds,
1178
- St as useApiFetchList,
1179
- Xa as useApiFetchListBatch,
1180
- kt as useApiQueryBuilder,
1181
- Ao as useApiRequest,
1182
- Vt as useFilterHelpers,
1183
- Za as useJobApi,
1184
- at as usePagination,
1185
- eo as useSubjectSelect,
1186
- wo as useUserAdminConfigApi,
1187
- ko as useUserAdminConfigFactory
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