@anzusystems/common-admin 1.47.0-beta.dev-1771894814 → 1.47.0-beta.dev-1771894820

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
@@ -7,18 +7,12 @@ import { ComponentOptionsMixin } from 'vue';
7
7
  import { ComponentProvideOptions } from 'vue';
8
8
  import { ComputedRef } from 'vue';
9
9
  import { DefineComponent } from 'vue';
10
- import { FilterField } from './filterFactory';
11
- import { FilterField as FilterField_2 } from '../filters/filterFactory';
12
10
  import { InjectionKey } from 'vue';
13
11
  import { Method } from 'axios';
14
12
  import { PublicProps } from 'vue';
15
13
  import { Ref } from 'vue';
16
14
  import { ShallowUnwrapRef } from 'vue';
17
- import { SortOrderType as SortOrderType_2 } from '../../composables/system/datatableColumns';
18
- import { UseApiFetchListReturnType as UseApiFetchListReturnType_2 } from '../api/useApiFetchList';
19
15
  import { UseDebounceFnReturn } from '@vueuse/shared';
20
- import { UserAdminConfigDataFilterBookmark as UserAdminConfigDataFilterBookmark_2 } from '../../types/UserAdminConfig';
21
- import { UserAdminConfigDataPinnedWidgets as UserAdminConfigDataPinnedWidgets_2 } from '../../types/UserAdminConfig';
22
16
  import { VNode } from 'vue';
23
17
  import { VNodeProps } from 'vue';
24
18
 
@@ -207,7 +201,7 @@ declare function __VLS_template(): {
207
201
  declare function __VLS_template_2(): {
208
202
  attrs: Partial<{}>;
209
203
  slots: Partial<Record<string, (_: {
210
- itemConfig: FilterField_2;
204
+ itemConfig: FilterField;
211
205
  }) => any>> & {
212
206
  bookmarks?(_: {}): any;
213
207
  detail?(_: {}): any;
@@ -332,7 +326,7 @@ itemTitle: string;
332
326
  itemValue: string;
333
327
  filterSortBy: {
334
328
  key: string;
335
- order: SortOrderType_2;
329
+ order: SortOrderType;
336
330
  } | null;
337
331
  prefetch: "hover" | "focus" | "mounted" | false;
338
332
  searchMinChars: number;
@@ -622,7 +616,7 @@ export declare type FilterConfig<F extends readonly MakeFilterOption<string>[] =
622
616
  general: GeneralFilterOptions;
623
617
  touched: boolean;
624
618
  fields: {
625
- [P in F[number]['name']]: FilterField_3;
619
+ [P in F[number]['name']]: FilterField;
626
620
  };
627
621
  };
628
622
 
@@ -634,7 +628,7 @@ export declare type FilterData<F extends readonly MakeFilterOption<string>[] = r
634
628
 
635
629
  export declare const FilterDataKey: InjectionKey<FilterData>;
636
630
 
637
- declare interface FilterField_3 {
631
+ declare interface FilterField {
638
632
  name: string;
639
633
  type: FilterType;
640
634
  variant: FilterVariant;
@@ -877,7 +871,7 @@ export declare function useFilterHelpers<F extends readonly MakeFilterOption<str
877
871
  };
878
872
 
879
873
  export declare function useJobApi<JobType extends JobBase = JobBase>(client: () => AxiosInstance, system: string): {
880
- useFetchJobList: () => UseApiFetchListReturnType_2<JobType[]>;
874
+ useFetchJobList: () => UseApiFetchListReturnType<JobType[]>;
881
875
  fetchJob: (id: number) => Promise<JobType>;
882
876
  createJob: (data: JobType) => Promise<JobType>;
883
877
  deleteJob: (id: number) => Promise<JobType>;
@@ -960,10 +954,10 @@ export declare function useSubjectSelect<TItem>(datatableConfig: any, datatableH
960
954
  };
961
955
 
962
956
  export declare function useUserAdminConfigApi(client: () => AxiosInstance, system: string, entity?: string, endPoint?: string): {
963
- useFetchUserAdminConfigList: () => UseApiFetchListReturnType_2<UserAdminConfig<UserAdminConfigDataFilterBookmark_2 | UserAdminConfigDataPinnedWidgets_2<string>>[]>;
964
- fetchUserAdminConfig: (id: IntegerId) => Promise<UserAdminConfig<UserAdminConfigDataFilterBookmark_2 | UserAdminConfigDataPinnedWidgets_2<string>>>;
965
- createUserAdminConfig: (data: UserAdminConfig) => Promise<UserAdminConfig<UserAdminConfigDataFilterBookmark_2 | UserAdminConfigDataPinnedWidgets_2<string>>>;
966
- updateUserAdminConfig: (id: IntegerId, data: UserAdminConfig) => Promise<UserAdminConfig<UserAdminConfigDataFilterBookmark_2 | UserAdminConfigDataPinnedWidgets_2<string>>>;
957
+ useFetchUserAdminConfigList: () => UseApiFetchListReturnType<UserAdminConfig<UserAdminConfigDataFilterBookmark | UserAdminConfigDataPinnedWidgets<string>>[]>;
958
+ fetchUserAdminConfig: (id: IntegerId) => Promise<UserAdminConfig<UserAdminConfigDataFilterBookmark | UserAdminConfigDataPinnedWidgets<string>>>;
959
+ createUserAdminConfig: (data: UserAdminConfig) => Promise<UserAdminConfig<UserAdminConfigDataFilterBookmark | UserAdminConfigDataPinnedWidgets<string>>>;
960
+ updateUserAdminConfig: (id: IntegerId, data: UserAdminConfig) => Promise<UserAdminConfig<UserAdminConfigDataFilterBookmark | UserAdminConfigDataPinnedWidgets<string>>>;
967
961
  deleteUserAdminConfig: (id: IntegerId) => Promise<unknown>;
968
962
  updateUserAdminConfigPositions: (ids: IntegerId[]) => Promise<{
969
963
  userAdminConfigs: IntegerId[];
package/dist/labs.js CHANGED
@@ -1,6 +1,6 @@
1
- import { bT as ue, d as B, j as N, k as Ne, a1 as Ve, h as H, i as Z, aj as de, ak as me, al as pe, am as fe, ag as ee, b0 as ge, aa as ve, ab as be, ac as he, ad as ye, an as Ce, ao as Ae, ae as Pe, af as we, bU as _e, bV as xe, bW as ke, bX as Le, as as Te, bY as ae, ap as Re, aq as je, aU as ze, F as Ue, a8 as $e, b4 as Me, ar as qe, a2 as Je, bZ as Ke, q as He, p as We, x as Qe, a7 as Ye, aI as Ge, m as Xe, l as Ze } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BGpdMIsq.mjs";
2
- import { aE as da, b_ as ma, b$ as pa, aA as fa, aB as ga, aD as va, aF as ba, aC as ha, aR as ya, aJ as Ca, bd as Aa, aG as Pa, aH as wa, ay as _a, az as xa, c0 as ka, c5 as Ta, c6 as Fa, c3 as Sa, c4 as Ba, ai as Ea, ah as Oa, c1 as Da, c2 as Ia, c7 as Na } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BGpdMIsq.mjs";
3
- import { defineComponent as oe, mergeModels as le, useModel as et, inject as Fe, computed as w, watch as Q, 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 W, normalizeClass as Be, createCommentVNode as Ee, withModifiers as q, ref as U, onMounted as Oe, toRaw as ie, resolveComponent as ce, renderSlot as I, mergeProps as tt, withDirectives as at, vShow as ot } from "vue";
1
+ import { bT as ue, d as B, j as N, k as Ne, a1 as Ve, h as H, i as Z, aj as de, ak as me, al as pe, am as fe, ag as ee, b0 as ge, aa as ve, ab as be, ac as he, ad as ye, an as Ce, ao as Ae, ae as Pe, af as we, bU as _e, bV as xe, bW as ke, bX as Le, as as Te, bY as ae, ap as Re, aq as je, aU as ze, b4 as Ue, ar as $e, E as Me, a8 as qe, a2 as Je, bZ as Ke, q as He, p as We, x as Qe, a7 as Ye, aI as Ge, m as Xe, l as Ze } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-jayVA7bh.mjs";
2
+ import { aE as da, b_ as ma, b$ as pa, aA as fa, aB as ga, aD as va, aF as ba, aC as ha, aR as ya, aJ as Ca, bd as Aa, aG as Pa, aH as wa, ay as _a, az as xa, c0 as ka, c1 as Ta, c2 as Fa, c3 as Sa, c4 as Ba, ai as Ea, ah as Oa, c5 as Da, c6 as Ia, c7 as Na } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-jayVA7bh.mjs";
3
+ import { defineComponent as oe, useModel as et, inject as Fe, computed as w, watch as Q, openBlock as S, createElementBlock as V, createElementVNode as k, toDisplayString as _, unref as y, createVNode as A, withCtx as T, createTextVNode as L, Fragment as se, renderList as Se, createBlock as W, normalizeClass as Be, mergeModels as le, createCommentVNode as Ee, withModifiers as q, ref as U, onMounted as Oe, toRaw as ie, resolveComponent as ce, renderSlot as I, mergeProps as tt, withDirectives as at, vShow as ot } from "vue";
4
4
  import { useI18n as ne } from "vue-i18n";
5
5
  import { VBtn as z } from "vuetify/components/VBtn";
6
6
  import { VList as st, VListItem as nt, VListItemTitle as rt } from "vuetify/components/VList";
@@ -376,11 +376,11 @@ const bt = { class: "d-flex align-center justify-center" }, ht = { class: "text-
376
376
  }, G = "/adm/v1/job", X = "job";
377
377
  function ra(n, m) {
378
378
  return {
379
- useFetchJobList: () => $e({ client: n, system: m, entity: X, urlTemplate: G }),
380
- fetchJob: (s) => Ue(n, G + "/:id", { id: s }, m, X),
379
+ useFetchJobList: () => qe({ client: n, system: m, entity: X, urlTemplate: G }),
380
+ fetchJob: (s) => Me(n, G + "/:id", { id: s }, m, X),
381
381
  createJob: (s) => {
382
- const r = Me(s._resourceName).slice(4).replace("-kind-", "-kind/");
383
- return qe(n, s, G + "/:type", { type: r }, m, X);
382
+ const r = Ue(s._resourceName).slice(4).replace("-kind-", "-kind/");
383
+ return $e(n, s, G + "/:type", { type: r }, m, X);
384
384
  },
385
385
  deleteJob: (s) => ze(n, G + "/:id", { id: s }, m, X)
386
386
  };
@@ -729,7 +729,7 @@ export {
729
729
  Oa as createFilterStore,
730
730
  ae as generateListQuery,
731
731
  sa as useApiFetchByIds,
732
- $e as useApiFetchList,
732
+ qe as useApiFetchList,
733
733
  na as useApiFetchListBatch,
734
734
  Le as useApiQueryBuilder,
735
735
  Da as useApiRequest,