@anzusystems/common-admin 1.47.0-beta.dev-1771794053 → 1.47.0-beta.dev-1771894801
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/{AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BmclBDsI.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-4opuzkLV.mjs} +2071 -2075
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-4opuzkLV.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.js +28 -28
- package/dist/common-admin.js.map +1 -1
- package/dist/labs.d.ts +11 -80
- package/dist/labs.js +432 -439
- package/dist/labs.js.map +1 -1
- package/package.json +2 -2
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BmclBDsI.mjs.map +0 -1
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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>,
|
|
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>;
|