@anzusystems/common-admin 1.47.0-beta.dev-1771794052 → 1.47.0-beta.dev-1771894800

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