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

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.d.ts CHANGED
@@ -580,7 +580,7 @@ declare type DatetimeUTCNullable = string | null;
580
580
  declare type DocId = string;
581
581
 
582
582
  declare interface ExecuteFetchByIdsFn<R> {
583
- /** @deprecated Use object params form: executeFetch(ids, { urlTemplateOverride, urlParamsOverride }) */
583
+ /** @deprecated Use object params form: executeFetch(ids, { urlTemplate, urlParams }) */
584
584
  (ids: DocId[] | IntegerId[], urlTemplateOverride?: string, urlParamsOverride?: UrlParams): Promise<R>;
585
585
  (ids: DocId[] | IntegerId[], params?: FetchByIdsParams): Promise<R>;
586
586
  }
@@ -589,7 +589,7 @@ declare interface ExecuteFetchListBatchFn<R> {
589
589
  /**
590
590
  * @deprecated Use object params form:
591
591
  * executeFetch(filterData, filterConfig,
592
- * { urlTemplateOverride, urlParamsOverride, sortBy, sortDesc, batchSize, forceElastic })
592
+ * { urlTemplate, urlParams, sortBy, sortDesc, batchSize, forceElastic })
593
593
  */
594
594
  (filterData: FilterData<any>, filterConfig: FilterConfig<any>, urlTemplateOverride?: string, urlParamsOverride?: UrlParams, sortBy?: string, sortDesc?: boolean, batchSize?: number, forceElastic?: boolean): Promise<R>;
595
595
  (filterData: FilterData<any>, filterConfig: FilterConfig<any>, params?: FetchListBatchParams): Promise<R>;
@@ -598,27 +598,27 @@ declare interface ExecuteFetchListBatchFn<R> {
598
598
  declare interface ExecuteFetchListFn<R> {
599
599
  /**
600
600
  * @deprecated Use object params form:
601
- * executeFetch(pagination, filterData, filterConfig, { urlTemplateOverride, urlParamsOverride, forceElastic })
601
+ * executeFetch(pagination, filterData, filterConfig, { urlTemplate, urlParams, forceElastic })
602
602
  */
603
603
  (pagination: Ref<Pagination>, filterData: FilterData<any>, filterConfig: FilterConfig<any>, urlTemplateOverride?: string | undefined, urlParamsOverride?: UrlParams | undefined, forceElastic?: boolean): Promise<R>;
604
604
  (pagination: Ref<Pagination>, filterData: FilterData<any>, filterConfig: FilterConfig<any>, params?: FetchListParams): Promise<R>;
605
605
  }
606
606
 
607
607
  declare interface ExecuteRequestFn<R, T> {
608
- /** @deprecated Use object params form: executeRequest({ urlTemplateOverride, urlParamsOverride, object }) */
608
+ /** @deprecated Use object params form: executeRequest({ urlTemplate, urlParams, object }) */
609
609
  (urlTemplateOverride?: string, urlParamsOverride?: UrlParams | undefined, object?: T | undefined): Promise<R>;
610
610
  (params: ExecuteRequestParams<T>): Promise<R>;
611
611
  }
612
612
 
613
613
  declare type ExecuteRequestParams<T> = {
614
- urlTemplateOverride?: string;
615
- urlParamsOverride?: UrlParams;
614
+ urlTemplate?: string;
615
+ urlParams?: UrlParams;
616
616
  object?: T;
617
617
  };
618
618
 
619
619
  declare type FetchByIdsParams = {
620
- urlTemplateOverride?: string;
621
- urlParamsOverride?: UrlParams;
620
+ urlTemplate?: string;
621
+ urlParams?: UrlParams;
622
622
  };
623
623
 
624
624
  declare type FetchItemsMinimalByIdsType = ((ids: IntegerId[]) => Promise<any[]>) | ((ids: DocId[]) => Promise<any[]>);
@@ -626,8 +626,8 @@ declare type FetchItemsMinimalByIdsType = ((ids: IntegerId[]) => Promise<any[]>)
626
626
  declare type FetchItemsMinimalType = (pagination: Ref<Pagination>, filterData: FilterData, filterConfig: FilterConfig) => Promise<any[]>;
627
627
 
628
628
  declare type FetchListBatchParams = {
629
- urlTemplateOverride?: string;
630
- urlParamsOverride?: UrlParams;
629
+ urlTemplate?: string;
630
+ urlParams?: UrlParams;
631
631
  sortBy?: string;
632
632
  sortDesc?: boolean;
633
633
  batchSize?: number;
@@ -635,8 +635,8 @@ declare type FetchListBatchParams = {
635
635
  };
636
636
 
637
637
  declare type FetchListParams = {
638
- urlTemplateOverride?: string;
639
- urlParamsOverride?: UrlParams;
638
+ urlTemplate?: string;
639
+ urlParams?: UrlParams;
640
640
  forceElastic?: boolean;
641
641
  };
642
642
 
package/dist/labs.js CHANGED
@@ -1,8 +1,8 @@
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";
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 Te, bT as Be, bU as Ee, bV as Ie, bW as qe, ar as De, bX as ce, ao as Je, ap as Ke, aT as He, F as Qe, a7 as We, b3 as Ye, aq as Ge, a1 as Oe, 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-BmclBDsI.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 To, aF as Bo, 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-BmclBDsI.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 Y, ref as W, onMounted as Re, toRaw as pe, resolveComponent as ge, renderSlot as R, mergeProps as rt, withDirectives as it, vShow as ct } from "vue";
4
4
  import { useI18n as me } from "vue-i18n";
5
- import { VBtn as H } from "vuetify/components/VBtn";
5
+ import { VBtn as Q } from "vuetify/components/VBtn";
6
6
  import { VList as ut, VListItem as dt, VListItemTitle as mt } from "vuetify/components/VList";
7
7
  import { VMenu as ft } from "vuetify/components/VMenu";
8
8
  import { useThrottleFn as ae, useDebounceFn as pt } from "@vueuse/core";
@@ -15,7 +15,7 @@ import { VIcon as ht } from "vuetify/components/VIcon";
15
15
  import { VToolbar as Ct } from "vuetify/components/VToolbar";
16
16
  import { VTooltip as At } from "vuetify/components/VTooltip";
17
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({
18
+ const _t = { class: "d-flex align-center justify-center" }, xt = { class: "text-body-small mr-1" }, uo = /* @__PURE__ */ ue({
19
19
  __name: "ADatatableOrdering",
20
20
  props: /* @__PURE__ */ fe({
21
21
  variant: { default: "id" },
@@ -34,26 +34,53 @@ const _t = { class: "d-flex align-center justify-center" }, xt = { class: "text-
34
34
  if (D(l))
35
35
  throw new Error("Incorrect provide/inject config.");
36
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 } }
37
+ {
38
+ id: 1,
39
+ titleT: "common.system.datatable.ordering.mostRecent",
40
+ sortBy: { key: "createdAt", order: U.Desc }
41
+ },
42
+ {
43
+ id: 2,
44
+ titleT: "common.system.datatable.ordering.oldest",
45
+ sortBy: { key: "createdAt", order: U.Asc }
46
+ }
39
47
  ], 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 } }
48
+ {
49
+ id: 1,
50
+ titleT: "common.system.datatable.ordering.mostRecent",
51
+ sortBy: { key: "id", order: U.Desc }
52
+ },
53
+ {
54
+ id: 2,
55
+ titleT: "common.system.datatable.ordering.oldest",
56
+ sortBy: { key: "id", order: U.Asc }
57
+ }
42
58
  ], c = [
43
59
  {
44
60
  id: 3,
45
61
  titleT: "common.system.datatable.ordering.mostRelevant",
46
62
  sortBy: { key: Me, order: U.Desc }
47
63
  },
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 } }
64
+ {
65
+ id: 1,
66
+ titleT: "common.system.datatable.ordering.mostRecent",
67
+ sortBy: { key: "createdAt", order: U.Desc }
68
+ },
69
+ {
70
+ id: 2,
71
+ titleT: "common.system.datatable.ordering.oldest",
72
+ sortBy: { key: "createdAt", order: U.Asc }
73
+ }
50
74
  ], C = x(() => {
51
75
  const o = y.value.find((v) => v.id === d.value);
52
76
  return o ? n(o.titleT) : "";
53
77
  }), y = x(() => p.customOptions ? p.customOptions : p.variant === "most-relevant" ? c : p.variant === "id" ? i : r), h = (o) => {
54
78
  d.value = o.id;
55
79
  }, u = (o) => {
56
- o.sortBy || (l.value = { ...l.value, sortBy: null, descending: !0 }, e("sortByChange", o)), l.value.sortBy = o.sortBy, e("sortByChange", o);
80
+ o.sortBy || (l.value = {
81
+ ...l.value,
82
+ sortBy: null
83
+ }, e("sortByChange", o)), l.value.sortBy = o.sortBy, e("sortByChange", o);
57
84
  };
58
85
  return ee(d, (o, v) => {
59
86
  if (o === v) return;
@@ -76,7 +103,7 @@ const _t = { class: "d-flex align-center justify-center" }, xt = { class: "text-
76
103
  { immediate: !0 }
77
104
  ), (o, v) => (S(), z("div", _t, [
78
105
  F("div", xt, k(w(n)("common.system.datatable.ordering.title")) + ": ", 1),
79
- _(H, {
106
+ _(Q, {
80
107
  variant: "text",
81
108
  rounded: "xl",
82
109
  size: "small",
@@ -125,7 +152,7 @@ const _t = { class: "d-flex align-center justify-center" }, xt = { class: "text-
125
152
  }), kt = { class: "anzu-data-footer" }, Ft = {
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
+ }, Pt = { class: "anzu-data-footer__pagination" }, St = { class: "anzu-data-footer__icons-before" }, Tt = { class: "current-page" }, Bt = { class: "anzu-data-footer__icons-after" }, Et = /* @__PURE__ */ ue({
129
156
  __name: "ADatatablePagination",
130
157
  props: {
131
158
  itemsPerPageOptions: { default: () => [10, 25, 50] },
@@ -162,23 +189,23 @@ const _t = { class: "d-flex align-center justify-center" }, xt = { class: "text-
162
189
  K(k(w(d)("common.system.datatable.itemsPerPage")) + ": ", 1),
163
190
  _(gt, {
164
191
  modelValue: w(e).rowsPerPage,
165
- "onUpdate:modelValue": m[0] || (m[0] = (B) => w(e).rowsPerPage = B),
192
+ "onUpdate:modelValue": m[0] || (m[0] = (T) => w(e).rowsPerPage = T),
166
193
  class: "ml-2",
167
194
  density: "compact",
168
195
  mandatory: "",
169
196
  "data-cy": "table-size"
170
197
  }, {
171
198
  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,
199
+ (S(!0), z(de, null, Ve(t.itemsPerPageOptions, (T) => (S(), Z(Q, {
200
+ key: T,
201
+ color: T === w(e).rowsPerPage ? "secondary" : "",
202
+ value: T,
176
203
  density: "compact",
177
204
  size: "small",
178
205
  variant: "text"
179
206
  }, {
180
207
  default: P(() => [
181
- K(k(B), 1)
208
+ K(k(T), 1)
182
209
  ]),
183
210
  _: 2
184
211
  }, 1032, ["color", "value"]))), 128))
@@ -188,38 +215,38 @@ const _t = { class: "d-flex align-center justify-center" }, xt = { class: "text-
188
215
  ])),
189
216
  F("div", Pt, k(n.value) + " - " + k(r.value) + " " + k(w(d)("common.system.datatable.from")) + " " + k(y.value), 1),
190
217
  F("div", St, [
191
- _(H, {
218
+ _(Q, {
192
219
  disabled: i.value,
193
220
  icon: "mdi-page-first",
194
221
  size: "small",
195
222
  variant: "text",
196
- onClick: W(w(h), ["stop"])
223
+ onClick: Y(w(h), ["stop"])
197
224
  }, null, 8, ["disabled", "onClick"]),
198
- _(H, {
225
+ _(Q, {
199
226
  disabled: i.value,
200
227
  icon: "mdi-chevron-left",
201
228
  size: "small",
202
229
  variant: "text",
203
- onClick: W(w(o), ["stop"])
230
+ onClick: Y(w(o), ["stop"])
204
231
  }, null, 8, ["disabled", "onClick"])
205
232
  ]),
206
- F("div", Bt, [
233
+ F("div", Tt, [
207
234
  F("span", null, k(w(e).page), 1)
208
235
  ]),
209
- F("div", Tt, [
210
- _(H, {
236
+ F("div", Bt, [
237
+ _(Q, {
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: Y(w(v), ["stop"])
216
243
  }, null, 8, ["disabled", "onClick"]),
217
- _(H, {
244
+ _(Q, {
218
245
  disabled: c.value,
219
246
  icon: "mdi-page-last",
220
247
  size: "small",
221
248
  variant: "text",
222
- onClick: W(w(u), ["stop"])
249
+ onClick: Y(w(u), ["stop"])
223
250
  }, null, 8, ["disabled", "onClick"])
224
251
  ])
225
252
  ]));
@@ -235,12 +262,12 @@ function mo(t, b, p, e, d, l, n, r) {
235
262
  return {
236
263
  executeFetch: async ($, N = void 0, g = void 0) => {
237
264
  a = new AbortController();
238
- let T, E;
239
- typeof N == "object" && N !== null ? (T = N.urlTemplateOverride, E = N.urlParamsOverride) : (T = N, E = g);
265
+ let B, E;
266
+ typeof N == "object" && N !== null ? (B = N.urlTemplate, E = N.urlParams) : (B = N, E = g);
240
267
  try {
241
- const s = le(E) ? E : h, I = le(T) ? T : y;
268
+ const s = le(E) ? E : h, I = le(B) ? B : y;
242
269
  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, {
270
+ const H = (D(s) ? I : be(I, s)) + It($, o, v), V = await i().get(H, {
244
271
  ...u,
245
272
  signal: a.signal
246
273
  });
@@ -254,7 +281,7 @@ function mo(t, b, p, e, d, l, n, r) {
254
281
  } catch (s) {
255
282
  if (s instanceof DOMException && s.name === "AbortError")
256
283
  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));
284
+ 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 Te(s, s) : Be(s) ? new Ee(s) : Ue.isAxiosError(s) ? (console.error("Axios error: " + y, s.cause), new Ie(s)) : (console.error("AnzuFatalError: ", s), new re(s));
258
285
  } finally {
259
286
  a = null;
260
287
  }
@@ -269,19 +296,26 @@ function fo(t, b, p, e, d, l) {
269
296
  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
297
  let h = null;
271
298
  return {
272
- executeFetch: async (v, a, m = void 0, B = void 0, $ = "id", N = !0, g = 100, T = !1) => {
299
+ executeFetch: async (v, a, m = void 0, T = void 0, $ = "id", N = !0, g = 100, B = !1) => {
273
300
  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);
301
+ let E, s, I, H, V, G;
302
+ typeof m == "object" && m !== null ? (E = m.urlTemplate, s = m.urlParams, I = m.sortBy ?? "id", H = m.sortDesc ?? !0, V = m.batchSize ?? 100, G = m.forceElastic ?? !1) : (E = m, s = T, I = $, H = N, V = g, G = B);
276
303
  try {
277
- const f = a.general.elastic || Y ? "/search" : "", M = le(s) ? s : C, te = le(E) ? E : c;
304
+ const f = a.general.elastic || G ? "/search" : "", M = le(s) ? s : C, te = le(E) ? E : c;
278
305
  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
- });
306
+ const { pagination: A } = De(
307
+ I,
308
+ H ? U.Desc : U.Asc,
309
+ {
310
+ rowsPerPage: V
311
+ }
312
+ ), q = (D(M) ? te : be(te, M)) + f, j = [], L = await n().get(
313
+ q + ce(A, v, a),
314
+ {
315
+ ...y,
316
+ signal: h.signal
317
+ }
318
+ );
285
319
  if (!ye(L.status))
286
320
  throw new he(L.status);
287
321
  if (L.data) {
@@ -302,17 +336,20 @@ function fo(t, b, p, e, d, l) {
302
336
  if (A.value.totalCount = J.totalCount, A.value.totalCount <= A.value.rowsPerPage)
303
337
  return j;
304
338
  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);
339
+ for (let O = 1; O < oe; O++) {
340
+ const ze = { ...A.value, page: O + 1 }, $e = W(ze);
307
341
  ie.push(
308
- n().get(q + ce($e, v, a), {
309
- ...y,
310
- signal: h.signal
311
- })
342
+ n().get(
343
+ q + ce($e, v, a),
344
+ {
345
+ ...y,
346
+ signal: h.signal
347
+ }
348
+ )
312
349
  );
313
350
  }
314
- (await Promise.all(ie)).forEach((G) => {
315
- j.push(...G.data.data);
351
+ (await Promise.all(ie)).forEach((O) => {
352
+ j.push(...O.data.data);
316
353
  });
317
354
  }
318
355
  return j;
@@ -323,7 +360,7 @@ function fo(t, b, p, e, d, l) {
323
360
  } catch (f) {
324
361
  if (f instanceof DOMException && f.name === "AbortError")
325
362
  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));
363
+ 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 Te(f, f) : Be(f) ? new Ee(f) : Ue.isAxiosError(f) ? (console.error("Axios error: " + c, f.cause), new Ie(f)) : (console.error("AnzuFatalError: ", f), new re(f));
327
364
  } finally {
328
365
  h = null;
329
366
  }
@@ -336,13 +373,13 @@ function fo(t, b, p, e, d, l) {
336
373
  const se = "/adm/v1/job", ne = "job";
337
374
  function po(t, b) {
338
375
  return {
339
- useFetchJobList: () => Qe(t, b, ne, se),
340
- fetchJob: (n) => He(t, se + "/:id", { id: n }, b, ne),
376
+ useFetchJobList: () => We({ client: t, system: b, entity: ne, urlTemplate: se }),
377
+ fetchJob: (n) => Qe(t, se + "/:id", { id: n }, b, ne),
341
378
  createJob: (n) => {
342
- const r = We(n._resourceName).slice(4).replace("-kind-", "-kind/");
343
- return Ye(t, n, se + "/:type", { type: r }, b, ne);
379
+ const r = Ye(n._resourceName).slice(4).replace("-kind-", "-kind/");
380
+ return Ge(t, n, se + "/:type", { type: r }, b, ne);
344
381
  },
345
- deleteJob: (n) => Oe(t, se + "/:id", { id: n }, b, ne)
382
+ deleteJob: (n) => He(t, se + "/:id", { id: n }, b, ne)
346
383
  };
347
384
  }
348
385
  const Dt = {
@@ -357,7 +394,7 @@ const Dt = {
357
394
  showExpand: !1
358
395
  };
359
396
  function Vt(t, b, p, e, d = {}) {
360
- const l = { ...Nt, ...d }, n = l.customI18n ?? Ge, { t: r } = n.global || n;
397
+ const l = { ...Nt, ...d }, n = l.customI18n ?? Oe, { t: r } = n.global || n;
361
398
  let i;
362
399
  tt(l.storeColumnsLocalStorage) ? i = l.storeColumnsLocalStorage : ot(l.storeColumnsLocalStorage) && l.storeColumnsLocalStorage === !0 && (i = "table_" + p + "_" + e);
363
400
  const c = t.map((u) => {
@@ -388,24 +425,24 @@ function Vt(t, b, p, e, d = {}) {
388
425
  };
389
426
  }
390
427
  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(
428
+ const h = W(!1), u = W([]), o = W([]), v = W(!1), { pagination: a, setSortBy: m, incrementPage: T } = De(
392
429
  X(r) ? null : r.key,
393
430
  r?.order
394
431
  ), { resetFilter: $, submitFilter: N } = at(l, n, {
395
432
  storeFiltersLocalStorage: !1,
396
433
  populateUrlParams: !1
397
- }), { showErrorsDefault: g } = st(), { columnsVisible: T, columnsAll: E, columnsHidden: s } = Vt(
434
+ }), { showErrorsDefault: g } = st(), { columnsVisible: B, columnsAll: E, columnsHidden: s } = Vt(
398
435
  t,
399
436
  b,
400
437
  p,
401
438
  e,
402
439
  { storeColumnsLocalStorage: !1, disableActions: !y }
403
440
  ), I = () => {
404
- Y(), M();
405
- }, O = (A) => {
441
+ G(), M();
442
+ }, H = (A) => {
406
443
  m(A.sortBy), M();
407
444
  }, V = async () => {
408
- v.value = !0, B();
445
+ v.value = !0, T();
409
446
  try {
410
447
  const A = await d(
411
448
  a,
@@ -421,7 +458,7 @@ function go(t, b, p, e, d, l, n, r = null, i = void 0, c = void 0, C = !1, y = !
421
458
  } finally {
422
459
  v.value = !1;
423
460
  }
424
- }, Y = () => {
461
+ }, G = () => {
425
462
  u.value = [], o.value = [];
426
463
  }, f = async () => {
427
464
  v.value = !0;
@@ -446,7 +483,7 @@ function go(t, b, p, e, d, l, n, r = null, i = void 0, c = void 0, C = !1, y = !
446
483
  items: u,
447
484
  selected: o,
448
485
  pagination: a,
449
- columnsVisible: T,
486
+ columnsVisible: B,
450
487
  columnsHidden: s,
451
488
  columnsAll: E,
452
489
  filterTouched: h,
@@ -464,7 +501,7 @@ function go(t, b, p, e, d, l, n, r = null, i = void 0, c = void 0, C = !1, y = !
464
501
  },
465
502
  onFetchNextPage: V,
466
503
  onOpen: I,
467
- sortByChange: O,
504
+ sortByChange: H,
468
505
  getList: M,
469
506
  resetFilter: () => $(a, M),
470
507
  submitFilter: () => N(a, M)
@@ -473,7 +510,7 @@ function go(t, b, p, e, d, l, n, r = null, i = void 0, c = void 0, C = !1, y = !
473
510
  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 = {
474
511
  key: 0,
475
512
  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({
513
+ }, Jt = { class: "subject-select__actions system-border-t" }, Kt = { key: 0 }, Ht = { key: 1 }, vo = /* @__PURE__ */ ue({
477
514
  __name: "ASubjectSelect",
478
515
  props: {
479
516
  selectedItems: {},
@@ -488,7 +525,7 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
488
525
  },
489
526
  emits: ["update:modelValue", "update:pagination", "onOpen", "onPageChange", "onConfirm", "onFetchNextPage"],
490
527
  setup(t, { expose: b, emit: p }) {
491
- const e = t, d = p, l = Q(!1), n = x({
528
+ const e = t, d = p, l = W(!1), n = x({
492
529
  get() {
493
530
  return D(e.modelValue) ? l.value : e.modelValue;
494
531
  },
@@ -500,7 +537,7 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
500
537
  set: (g) => {
501
538
  d("update:pagination", { ...pe(g) });
502
539
  }
503
- }), i = Q(!0), { t: c } = me(), C = x(() => e.selectedItems.length), y = x(() => C.value < e.minCount || C.value > e.maxCount), h = () => {
540
+ }), i = W(!0), { t: c } = me(), C = x(() => e.selectedItems.length), y = x(() => C.value < e.minCount || C.value > e.maxCount), h = () => {
504
541
  d("onOpen"), i.value = !0, n.value = !0;
505
542
  }, u = () => {
506
543
  i.value = !i.value;
@@ -515,24 +552,24 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
515
552
  d("onFetchNextPage");
516
553
  }, m = () => {
517
554
  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) => {
555
+ }, T = x(() => Math.ceil(r.value.totalCount / r.value.rowsPerPage)), $ = x(() => !(X(r.value.hasNextPage) && r.value.page === T.value || r.value.hasNextPage === !1)), N = (g) => {
519
556
  g && $.value && !e.loading && a();
520
557
  };
521
558
  return Re(() => {
522
559
  e.autoOpen && h();
523
560
  }), b({
524
561
  open: h
525
- }), (g, T) => {
562
+ }), (g, B) => {
526
563
  const E = ge("ABtnSecondary"), s = ge("ABtnPrimary");
527
564
  return S(), z(de, null, [
528
565
  R(g.$slots, "activator", {
529
- props: { onClick: W(() => h(), ["stop"]) }
566
+ props: { onClick: Y(() => h(), ["stop"]) }
530
567
  }),
531
568
  _(bt, rt(g.$attrs, {
532
569
  "model-value": n.value,
533
570
  fullscreen: "",
534
571
  class: "subject-select",
535
- "onUpdate:modelValue": T[1] || (T[1] = (I) => d("update:modelValue", I))
572
+ "onUpdate:modelValue": B[1] || (B[1] = (I) => d("update:modelValue", I))
536
573
  }), {
537
574
  default: P(() => [
538
575
  n.value ? (S(), Z(vt, {
@@ -563,7 +600,7 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
563
600
  F("div", jt, [
564
601
  F("div", Lt, [
565
602
  F("div", Rt, [
566
- _(H, {
603
+ _(Q, {
567
604
  icon: "",
568
605
  width: 30,
569
606
  height: 30,
@@ -631,13 +668,16 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
631
668
  ])) : (S(), Z(Et, {
632
669
  key: 1,
633
670
  modelValue: r.value,
634
- "onUpdate:modelValue": T[0] || (T[0] = (I) => r.value = I),
671
+ "onUpdate:modelValue": B[0] || (B[0] = (I) => r.value = I),
635
672
  onChange: m
636
673
  }, null, 8, ["modelValue"]))
637
674
  ])
638
675
  ], 2),
639
676
  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", {
677
+ t.minCount === t.maxCount ? (S(), z("div", Kt, k(w(c)("common.subjectSelect.texts.pickExactCount", {
678
+ count: t.minCount,
679
+ selected: C.value
680
+ })), 1)) : (S(), z("div", Ht, k(w(c)("common.subjectSelect.texts.pickRangeCount", {
641
681
  minCount: t.minCount,
642
682
  maxCount: t.maxCount,
643
683
  selected: C.value
@@ -645,7 +685,7 @@ const jt = { class: "d-flex flex-column w-100 px-1 align-center" }, Lt = { class
645
685
  _(yt),
646
686
  _(s, {
647
687
  disabled: y.value,
648
- onClick: W(v, ["stop"])
688
+ onClick: Y(v, ["stop"])
649
689
  }, {
650
690
  default: P(() => [
651
691
  R(g.$slots, "button-confirm-title", {}, () => [
@@ -678,10 +718,10 @@ export {
678
718
  Fo as AFilterValueObjectOptionsSelect,
679
719
  Po as AFilterWrapper,
680
720
  So as AFilterWrapperSubjectSelect,
681
- Bo as AFormRemoteAutocomplete,
721
+ To as AFormRemoteAutocomplete,
682
722
  vo as ASubjectSelect,
683
723
  ve as DatatablePaginationKey,
684
- To as FilterConfigKey,
724
+ Bo as FilterConfigKey,
685
725
  Eo as FilterDataKey,
686
726
  Io as FilterInnerConfigKey,
687
727
  Do as FilterInnerDataKey,
@@ -695,7 +735,7 @@ export {
695
735
  zo as createFilterStore,
696
736
  ce as generateListQuery,
697
737
  mo as useApiFetchByIds,
698
- Qe as useApiFetchList,
738
+ We as useApiFetchList,
699
739
  fo as useApiFetchListBatch,
700
740
  qe as useApiQueryBuilder,
701
741
  $o as useApiRequest,