@anzusystems/common-admin 1.47.0-beta.dev-1771794053 → 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.
@@ -2,8 +2,8 @@ import { defineComponent as O, computed as C, createBlock as b, createElementBlo
2
2
  import { useI18n as te } from "vue-i18n";
3
3
  import { useI18n as H$ } from "vue-i18n";
4
4
  import { VChip as Kt } from "vuetify/components/VChip";
5
- import { _ as ta, u as Ca, i as Ke, a as Ws, C as jt, b as Ht, S as ka, c as Ia, d as B, s as Ja, e as da, f as It, g as Ie, h as ne, j as ia, k as Eu, l as Et, m as Ze, n as cs, o as Oe, p as et, q as Dl, r as ho, t as Mu, v as _u, w as El, x as Gt, y as Vr, z as Bs, A as wa, B as Bu, D as Pu, E as Io, F as Mt, G as Ml, H as Nt, I as zu, J as gi, K as Lu, L as wr, M as _l, N as Bl, O as Pl, P as zl, Q as Ll, R as Rl, T as Ul, U as Nl, V as Ol, W as At, X as no, Y as lo, Z as Yn, $ as An, a0 as Ru, a1 as Ps, a2 as jl, a3 as Hl, a4 as vr, a5 as Uu, a6 as hr, a7 as Sa, a8 as Ka, a9 as Fs, aa as gs, ab as Za, ac as ps, ad as qs, ae as ys, af as ca, ag as $a, ah as Ta, ai as Gs, aj as pi, ak as qi, al as yi, am as Xi, an as Yi, ao as Wl, ap as Gl, aq as wo, ar as Sr, as as Fr, at as Nu, au as Jl, av as Zl, aw as Ou, ax as Xa, ay as Ya, az as Kr, aA as ju, aB as Hu, aC as gr, aD as Go, aE as Wu, aF as Ql, aG as ed, aH as td, aI as Gu, aJ as Xs, aK as ad, aL as Ju, aM as pr, aN as Zu, aO as bn, aP as ns, aQ as Qu, aR as sd, aS as id, aT as od, aU as qr, aV as xn, aW as ec, aX as tc, aY as ac, aZ as yr, a_ as sc, a$ as ic, b0 as oc, b1 as rc, b2 as nc, b3 as lc, b4 as dc, b5 as uc, b6 as rd, b7 as cc, b8 as Cn, b9 as Li, ba as kn, bb as In, bc as $r } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BmclBDsI.mjs";
6
- import { bd as G$, be as J$, bM as Z$, bN as Q$, bq as eT, bp as tT, bF as aT, bH as sT, bI as iT, bG as oT, bJ as rT, bC as nT, bv as lT, bx as dT, bA as uT, bs as cT, bu as mT, bt as fT, by as VT, bw as vT, bD as hT, bQ as FT, bR as gT, bP as pT, bE as qT, bh as yT, bg as XT, bO as YT, bl as AT, bk as bT, bo as xT, bi as CT, bj as kT, bm as IT, bn as wT, bB as ST, br as KT, bK as $T, bL as TT, bf as DT, bz as ET } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BmclBDsI.mjs";
5
+ import { _ as ta, u as Ca, i as Ke, a as Ws, C as jt, b as Ht, S as ka, c as Ia, d as B, s as Ja, e as da, f as It, g as Ie, h as ne, j as ia, k as Eu, l as Et, m as Ze, n as cs, o as Oe, p as et, q as Dl, r as ho, t as Mu, v as _u, w as El, x as Gt, y as Vr, z as Bs, A as wa, B as Bu, D as Pu, E as Io, F as Mt, G as Ml, H as Nt, I as zu, J as gi, K as Lu, L as wr, M as _l, N as Bl, O as Pl, P as zl, Q as Ll, R as Rl, T as Ul, U as Nl, V as Ol, W as At, X as no, Y as lo, Z as Yn, $ as An, a0 as Ru, a1 as Ps, a2 as jl, a3 as Hl, a4 as vr, a5 as Uu, a6 as hr, a7 as Sa, a8 as Ka, a9 as Fs, aa as gs, ab as Za, ac as ps, ad as qs, ae as ys, af as ca, ag as $a, ah as Ta, ai as Gs, aj as pi, ak as qi, al as yi, am as Xi, an as Yi, ao as Wl, ap as Gl, aq as wo, ar as Sr, as as Fr, at as Nu, au as Jl, av as Zl, aw as Ou, ax as Xa, ay as Ya, az as Kr, aA as ju, aB as Hu, aC as gr, aD as Go, aE as Wu, aF as Ql, aG as ed, aH as td, aI as Gu, aJ as Xs, aK as ad, aL as Ju, aM as pr, aN as Zu, aO as bn, aP as ns, aQ as Qu, aR as sd, aS as id, aT as od, aU as qr, aV as xn, aW as ec, aX as tc, aY as ac, aZ as yr, a_ as sc, a$ as ic, b0 as oc, b1 as rc, b2 as nc, b3 as lc, b4 as dc, b5 as uc, b6 as rd, b7 as cc, b8 as Cn, b9 as Li, ba as kn, bb as In, bc as $r } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DF5mypdx.mjs";
6
+ import { bd as G$, be as J$, bM as Z$, bN as Q$, bq as eT, bp as tT, bF as aT, bH as sT, bI as iT, bG as oT, bJ as rT, bC as nT, bv as lT, bx as dT, bA as uT, bs as cT, bu as mT, bt as fT, by as VT, bw as vT, bD as hT, bQ as FT, bR as gT, bP as pT, bE as qT, bh as yT, bg as XT, bO as YT, bl as AT, bk as bT, bo as xT, bi as CT, bj as kT, bm as IT, bn as wT, bB as ST, br as KT, bK as $T, bL as TT, bf as DT, bz as ET } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DF5mypdx.mjs";
7
7
  import { VAlert as di } from "vuetify/components/VAlert";
8
8
  import { VIcon as ie } from "vuetify/components/VIcon";
9
9
  import { VProgressCircular as Re } from "vuetify/components/VProgressCircular";
package/dist/labs.d.ts CHANGED
@@ -40,9 +40,9 @@ onBookmarkLoadAfter?: (() => any) | undefined;
40
40
  "onUpdate:showDetail"?: ((value: boolean) => any) | undefined;
41
41
  }>, {
42
42
  userId: IntegerIdNullable;
43
+ client: () => AxiosInstance;
43
44
  enableTop: boolean;
44
45
  hideButtons: boolean;
45
- client: () => AxiosInstance;
46
46
  formName: string;
47
47
  store: FilterStoreIdentifier | boolean;
48
48
  alwaysVisible: boolean;
@@ -65,8 +65,8 @@ onSubmit?: (() => any) | undefined;
65
65
  onBookmarkLoadAfter?: (() => any) | undefined;
66
66
  }>, {
67
67
  userId: IntegerIdNullable;
68
- hideButtons: boolean;
69
68
  client: () => AxiosInstance;
69
+ hideButtons: boolean;
70
70
  formName: string;
71
71
  disableFilterUrlSync: boolean;
72
72
  store: FilterStoreIdentifier | boolean;
@@ -579,37 +579,6 @@ declare type DatetimeUTCNullable = string | null;
579
579
  */
580
580
  declare type DocId = string;
581
581
 
582
- declare interface ExecuteFetchByIdsFn<R> {
583
- /** @deprecated Use object params form: executeFetch(ids, { urlTemplate, urlParams }) */
584
- (ids: DocId[] | IntegerId[], urlTemplateOverride?: string, urlParamsOverride?: UrlParams): Promise<R>;
585
- (ids: DocId[] | IntegerId[], params?: FetchByIdsParams): Promise<R>;
586
- }
587
-
588
- declare interface ExecuteFetchListBatchFn<R> {
589
- /**
590
- * @deprecated Use object params form:
591
- * executeFetch(filterData, filterConfig,
592
- * { urlTemplate, urlParams, sortBy, sortDesc, batchSize, forceElastic })
593
- */
594
- (filterData: FilterData<any>, filterConfig: FilterConfig<any>, urlTemplateOverride?: string, urlParamsOverride?: UrlParams, sortBy?: string, sortDesc?: boolean, batchSize?: number, forceElastic?: boolean): Promise<R>;
595
- (filterData: FilterData<any>, filterConfig: FilterConfig<any>, params?: FetchListBatchParams): Promise<R>;
596
- }
597
-
598
- declare interface ExecuteFetchListFn<R> {
599
- /**
600
- * @deprecated Use object params form:
601
- * executeFetch(pagination, filterData, filterConfig, { urlTemplate, urlParams, forceElastic })
602
- */
603
- (pagination: Ref<Pagination>, filterData: FilterData<any>, filterConfig: FilterConfig<any>, urlTemplateOverride?: string | undefined, urlParamsOverride?: UrlParams | undefined, forceElastic?: boolean): Promise<R>;
604
- (pagination: Ref<Pagination>, filterData: FilterData<any>, filterConfig: FilterConfig<any>, params?: FetchListParams): Promise<R>;
605
- }
606
-
607
- declare interface ExecuteRequestFn<R, T> {
608
- /** @deprecated Use object params form: executeRequest({ urlTemplate, urlParams, object }) */
609
- (urlTemplateOverride?: string, urlParamsOverride?: UrlParams | undefined, object?: T | undefined): Promise<R>;
610
- (params: ExecuteRequestParams<T>): Promise<R>;
611
- }
612
-
613
582
  declare type ExecuteRequestParams<T> = {
614
583
  urlTemplate?: string;
615
584
  urlParams?: UrlParams;
@@ -812,17 +781,11 @@ declare type UrlParams = {
812
781
  };
813
782
 
814
783
  declare type UseApiAnyRequestReturnType<R, T = R> = {
815
- executeRequest: ExecuteRequestFn<R, T>;
784
+ executeRequest: (params?: ExecuteRequestParams<T>) => Promise<R>;
816
785
  abortRequest: () => void;
817
786
  };
818
787
 
819
- /**
820
- * @deprecated Use object params form:
821
- * useApiFetchByIds({ client, system, entity, urlTemplate, urlParams, options, isSearchApi, field })
822
- */
823
- export declare function useApiFetchByIds<R>(client: AxiosClientFn, system: string, entity: string, urlTemplate?: string, urlParams?: UrlParams, options?: AxiosRequestConfig, isSearchApi?: boolean, field?: string): UseApiFetchByIdsReturnType<R>;
824
-
825
- export declare function useApiFetchByIds<R>(params: UseApiFetchByIdsParams): UseApiFetchByIdsReturnType<R>;
788
+ export declare const useApiFetchByIds: <R>(params: UseApiFetchByIdsParams) => UseApiFetchByIdsReturnType<R>;
826
789
 
827
790
  declare type UseApiFetchByIdsParams = {
828
791
  client: AxiosClientFn;
@@ -836,33 +799,13 @@ declare type UseApiFetchByIdsParams = {
836
799
  };
837
800
 
838
801
  declare type UseApiFetchByIdsReturnType<R> = {
839
- executeFetch: ExecuteFetchByIdsFn<R>;
802
+ executeFetch: (ids: DocId[] | IntegerId[], params?: FetchByIdsParams) => Promise<R>;
840
803
  abortFetch: () => void;
841
804
  };
842
805
 
843
- /**
844
- * @template R Response type override, optional
845
- * @deprecated Use object params form:
846
- * useApiFetchList({ client, system, entity, urlTemplate, urlParams, options })
847
- */
848
- export declare function useApiFetchList<R>(client: AxiosClientFn, system: string, entity: string, urlTemplate?: string, urlParams?: UrlParams, options?: AxiosRequestConfig): UseApiFetchListReturnType<R>;
849
-
850
- /**
851
- * @template R Response type override, optional
852
- */
853
- export declare function useApiFetchList<R>(params: UseApiFetchListParams): UseApiFetchListReturnType<R>;
806
+ export declare const useApiFetchList: <R>(params: UseApiFetchListParams) => UseApiFetchListReturnType<R>;
854
807
 
855
- /**
856
- * @template R Response type override
857
- * @deprecated Use object params form:
858
- * useApiFetchListBatch({ client, system, entity, urlTemplate, urlParams, options })
859
- */
860
- export declare function useApiFetchListBatch<R>(client: AxiosClientFn, system: string, entity: string, urlTemplate?: string, urlParams?: UrlParams, options?: AxiosRequestConfig): UseApiFetchListBatchReturnType<R>;
861
-
862
- /**
863
- * @template R Response type override
864
- */
865
- export declare function useApiFetchListBatch<R>(params: UseApiFetchListBatchParams): UseApiFetchListBatchReturnType<R>;
808
+ export declare const useApiFetchListBatch: <R>(params: UseApiFetchListBatchParams) => UseApiFetchListBatchReturnType<R>;
866
809
 
867
810
  declare type UseApiFetchListBatchParams = {
868
811
  client: AxiosClientFn;
@@ -874,7 +817,7 @@ declare type UseApiFetchListBatchParams = {
874
817
  };
875
818
 
876
819
  declare type UseApiFetchListBatchReturnType<R> = {
877
- executeFetch: ExecuteFetchListBatchFn<R>;
820
+ executeFetch: (filterData: FilterData<any>, filterConfig: FilterConfig<any>, params?: FetchListBatchParams) => Promise<R>;
878
821
  abortFetch: () => void;
879
822
  };
880
823
 
@@ -888,7 +831,7 @@ declare type UseApiFetchListParams = {
888
831
  };
889
832
 
890
833
  declare type UseApiFetchListReturnType<R> = {
891
- executeFetch: ExecuteFetchListFn<R>;
834
+ executeFetch: (pagination: Ref<Pagination>, filterData: FilterData<any>, filterConfig: FilterConfig<any>, params?: FetchListParams) => Promise<R>;
892
835
  abortFetch: () => void;
893
836
  };
894
837
 
@@ -910,19 +853,7 @@ export declare function useApiQueryBuilder(): {
910
853
  q: Ref<string[], string[]>;
911
854
  };
912
855
 
913
- /**
914
- * @template R Response type
915
- * @template T Type used for request payload, by default, same as Response type
916
- * @deprecated Use object params form:
917
- * useApiRequest({ client, method, system, entity, urlTemplate, urlParams, options })
918
- */
919
- export declare function useApiRequest<R, T = R>(client: AxiosClientFn, method: Method, system: string, entity: string, urlTemplate?: string, urlParams?: UrlParams, options?: AxiosRequestConfig): UseApiAnyRequestReturnType<R, T>;
920
-
921
- /**
922
- * @template R Response type
923
- * @template T Type used for request payload, by default, same as Response type
924
- */
925
- export declare function useApiRequest<R, T = R>(params: UseApiRequestParams): UseApiAnyRequestReturnType<R, T>;
856
+ export declare const useApiRequest: <R, T = R>(params: UseApiRequestParams) => UseApiAnyRequestReturnType<R, T>;
926
857
 
927
858
  declare type UseApiRequestParams = {
928
859
  client: AxiosClientFn;
@@ -1004,7 +935,7 @@ export declare const UserAdminConfigTypeDefault: "pinnedWidgets";
1004
935
 
1005
936
  export declare type UserAdminConfigTypeType = (typeof UserAdminConfigType)[keyof typeof UserAdminConfigType];
1006
937
 
1007
- export declare function useSubjectSelect<TItem>(datatableConfig: any, datatableHiddenColumns: any, system: string, subject: string, executeFetch: (pagination: Ref<Pagination>, filterData: FilterData<any>, filterConfig: FilterConfig<any>, urlTemplateOverride?: string | undefined, urlParamsOverride?: UrlParams | undefined, forceElastic?: boolean) => Promise<TItem[]>, filterData: FilterData<any>, filterConfig: FilterConfig<any>, filterSortBy?: DatatableSortBy | null, urlTemplateOverride?: string | undefined, urlParamsOverride?: UrlParams | undefined, forceElastic?: boolean, enableActions?: boolean): {
938
+ export declare function useSubjectSelect<TItem>(datatableConfig: any, datatableHiddenColumns: any, system: string, subject: string, executeFetch: (pagination: Ref<Pagination>, filterData: FilterData<any>, filterConfig: FilterConfig<any>, params?: FetchListParams) => Promise<TItem[]>, filterData: FilterData<any>, filterConfig: FilterConfig<any>, filterSortBy?: DatatableSortBy | null, fetchParams?: FetchListParams | undefined, enableActions?: boolean): {
1008
939
  items: Ref<TItem[], TItem[]>;
1009
940
  selected: Ref<TItem[], TItem[]>;
1010
941
  pagination: Ref<Pagination, Pagination>;