bt-core-app 2.0.50 → 2.0.52
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/bt-core-app.js +7319 -7320
- package/dist/index.d.ts +8 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -194,6 +194,7 @@ export declare interface BTActions {
|
|
|
194
194
|
getAllItems: <T, TReturn>(doOptions: GetAllOptions<T, TReturn>) => Promise<StoreGetAllReturn<T | TReturn> | undefined>;
|
|
195
195
|
getItem: <T, TReturn>(doOptions: GetOptions<T, TReturn>) => Promise<StoreGetReturn<T | T[] | TReturn | TReturn[]> | undefined>;
|
|
196
196
|
isLoading: ComputedRef<boolean>;
|
|
197
|
+
iterateThrough: <T>(opt: IterateThroughOptions<T>) => Promise<true | undefined>;
|
|
197
198
|
logError: (err?: string | Error) => void;
|
|
198
199
|
restoreItem: <T>(doOptions: RestoreOptions<T>) => Promise<T | undefined>;
|
|
199
200
|
saveItem: <T, TSave, TReturn>(doOptions: SaveOptions<T, TSave, TReturn>) => Promise<TReturn | undefined>;
|
|
@@ -1090,10 +1091,15 @@ export declare interface ItemRefreshOptions {
|
|
|
1090
1091
|
}
|
|
1091
1092
|
|
|
1092
1093
|
declare interface IterateThroughOptions<T> {
|
|
1093
|
-
|
|
1094
|
+
eachList?: (list: T[]) => Promise<any>;
|
|
1095
|
+
eachItem?: (item: T) => Promise<any>;
|
|
1096
|
+
errorMsg?: string;
|
|
1094
1097
|
getLoadingMsg?: (ind: number, total: number) => string;
|
|
1095
1098
|
iterationCount?: number;
|
|
1096
1099
|
listToIterate: T[];
|
|
1100
|
+
onError?: (err: any) => void;
|
|
1101
|
+
onFinished?: () => void;
|
|
1102
|
+
throwError?: boolean;
|
|
1097
1103
|
}
|
|
1098
1104
|
|
|
1099
1105
|
/**decrypts jwt token */
|
|
@@ -1751,6 +1757,7 @@ export declare function useActionsTracker(useOptions?: DoActionOptions): {
|
|
|
1751
1757
|
clearErrors: () => void;
|
|
1752
1758
|
doAction: <TReturn>(action: any, options?: DoActionOptions) => Promise<TReturn | undefined>;
|
|
1753
1759
|
isLoading: ComputedRef<boolean>;
|
|
1760
|
+
iterateThrough: <T>(opt: IterateThroughOptions<T>) => Promise<true | undefined>;
|
|
1754
1761
|
logError: (err?: string | Error) => void;
|
|
1755
1762
|
};
|
|
1756
1763
|
|
|
@@ -2294,16 +2301,6 @@ export declare interface UseItemOptions {
|
|
|
2294
2301
|
useBladeSrc?: boolean;
|
|
2295
2302
|
}
|
|
2296
2303
|
|
|
2297
|
-
export declare function useIterating(options?: UseIteratingOptions): {
|
|
2298
|
-
iterateThrough: <T>(doOptions: IterateThroughOptions<T>) => Promise<boolean>;
|
|
2299
|
-
loadingMsg: Ref<string | undefined, string | undefined>;
|
|
2300
|
-
};
|
|
2301
|
-
|
|
2302
|
-
declare interface UseIteratingOptions {
|
|
2303
|
-
iterationCount?: number;
|
|
2304
|
-
onError?: (err: any) => void;
|
|
2305
|
-
}
|
|
2306
|
-
|
|
2307
2304
|
/**
|
|
2308
2305
|
* PROPS first
|
|
2309
2306
|
* ROUTE second
|
package/package.json
CHANGED