@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/{AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DWMjveFQ.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DF5mypdx.mjs} +2243 -2114
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DF5mypdx.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.d.ts +381 -183
- package/dist/common-admin.js +11211 -10469
- package/dist/common-admin.js.map +1 -1
- package/dist/labs.d.ts +19 -88
- package/dist/labs.js +460 -427
- package/dist/labs.js.map +1 -1
- package/package.json +19 -15
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DWMjveFQ.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,46 +579,15 @@ 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, { urlTemplateOverride, urlParamsOverride }) */
|
|
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
|
-
* { urlTemplateOverride, urlParamsOverride, 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, { urlTemplateOverride, urlParamsOverride, 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({ urlTemplateOverride, urlParamsOverride, 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
|
-
|
|
615
|
-
|
|
583
|
+
urlTemplate?: string;
|
|
584
|
+
urlParams?: UrlParams;
|
|
616
585
|
object?: T;
|
|
617
586
|
};
|
|
618
587
|
|
|
619
588
|
declare type FetchByIdsParams = {
|
|
620
|
-
|
|
621
|
-
|
|
589
|
+
urlTemplate?: string;
|
|
590
|
+
urlParams?: UrlParams;
|
|
622
591
|
};
|
|
623
592
|
|
|
624
593
|
declare type FetchItemsMinimalByIdsType = ((ids: IntegerId[]) => Promise<any[]>) | ((ids: DocId[]) => Promise<any[]>);
|
|
@@ -626,8 +595,8 @@ declare type FetchItemsMinimalByIdsType = ((ids: IntegerId[]) => Promise<any[]>)
|
|
|
626
595
|
declare type FetchItemsMinimalType = (pagination: Ref<Pagination>, filterData: FilterData, filterConfig: FilterConfig) => Promise<any[]>;
|
|
627
596
|
|
|
628
597
|
declare type FetchListBatchParams = {
|
|
629
|
-
|
|
630
|
-
|
|
598
|
+
urlTemplate?: string;
|
|
599
|
+
urlParams?: UrlParams;
|
|
631
600
|
sortBy?: string;
|
|
632
601
|
sortDesc?: boolean;
|
|
633
602
|
batchSize?: number;
|
|
@@ -635,8 +604,8 @@ declare type FetchListBatchParams = {
|
|
|
635
604
|
};
|
|
636
605
|
|
|
637
606
|
declare type FetchListParams = {
|
|
638
|
-
|
|
639
|
-
|
|
607
|
+
urlTemplate?: string;
|
|
608
|
+
urlParams?: UrlParams;
|
|
640
609
|
forceElastic?: boolean;
|
|
641
610
|
};
|
|
642
611
|
|
|
@@ -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>;
|
|
806
|
+
export declare const useApiFetchList: <R>(params: UseApiFetchListParams) => UseApiFetchListReturnType<R>;
|
|
849
807
|
|
|
850
|
-
|
|
851
|
-
* @template R Response type override, optional
|
|
852
|
-
*/
|
|
853
|
-
export declare function useApiFetchList<R>(params: UseApiFetchListParams): UseApiFetchListReturnType<R>;
|
|
854
|
-
|
|
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>;
|