bt-core-app 2.0.25 → 2.0.27
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 +13199 -13094
- package/dist/index.d.ts +21 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { default as BTAssistantMenu } from './components/BT-Assistant-Menu.vue';
|
|
|
4
4
|
import { default as BTBladeSteps } from './components/BT-Blade-Steps.vue';
|
|
5
5
|
import { default as BTColorPickerMenu } from './components/BT-Color-Picker-Menu.vue';
|
|
6
6
|
import { default as BTDemoProfileSelect } from './components/BT-Demo-Profile-Select.vue';
|
|
7
|
+
import { default as BTDialogConfirm } from './components/BT-Dialog-Confirm.vue';
|
|
7
8
|
import { default as BTDialogDate } from './components/BT-Dialog-Date.vue';
|
|
8
9
|
import { default as BTDialogNumber } from './components/BT-Dialog-Number.vue';
|
|
9
10
|
import { default as BTDialogSelect } from './components/BT-Dialog-Select.vue';
|
|
@@ -341,6 +342,8 @@ export declare interface BTDemo {
|
|
|
341
342
|
|
|
342
343
|
export { BTDemoProfileSelect }
|
|
343
344
|
|
|
345
|
+
export { BTDialogConfirm }
|
|
346
|
+
|
|
344
347
|
export { BTDialogDate }
|
|
345
348
|
|
|
346
349
|
export { BTDialogNumber }
|
|
@@ -1025,6 +1028,7 @@ export declare interface ItemProps<T, TSave, TReturn> {
|
|
|
1025
1028
|
bladeName?: string;
|
|
1026
1029
|
bladeStartShowing?: boolean;
|
|
1027
1030
|
canSave?: boolean;
|
|
1031
|
+
confirmOnDelete?: boolean;
|
|
1028
1032
|
eager?: boolean;
|
|
1029
1033
|
eagerWithID?: boolean;
|
|
1030
1034
|
errorMsg?: string;
|
|
@@ -1477,7 +1481,7 @@ export declare interface QueryParams extends Record<string, any> {
|
|
|
1477
1481
|
export declare function registerDialog(options: RegisterDialogOptions): () => void;
|
|
1478
1482
|
|
|
1479
1483
|
export declare interface RegisterDialogOptions {
|
|
1480
|
-
dialogType: 'items' | 'number' | 'date' | 'string';
|
|
1484
|
+
dialogType: 'items' | 'number' | 'date' | 'string' | 'confirm';
|
|
1481
1485
|
open: (options: any, resolve: DialogResolve<any>) => void;
|
|
1482
1486
|
}
|
|
1483
1487
|
|
|
@@ -1821,6 +1825,8 @@ export declare function useColorizer(): {
|
|
|
1821
1825
|
getColor: () => string;
|
|
1822
1826
|
};
|
|
1823
1827
|
|
|
1828
|
+
export declare function useConfirm(action: any, requireConfirmation?: boolean): Promise<void>;
|
|
1829
|
+
|
|
1824
1830
|
export declare function useCosmetics(): BTCosmetics;
|
|
1825
1831
|
|
|
1826
1832
|
export declare interface UseCosmeticsOptions<T extends BaseCosmeticTheme> {
|
|
@@ -1958,6 +1964,18 @@ export declare function useDbName(): string;
|
|
|
1958
1964
|
|
|
1959
1965
|
export declare function useDemo(): BTDemo;
|
|
1960
1966
|
|
|
1967
|
+
export declare function useDialogConfirm(options: UseDialogConfirmOptions): Promise<DialogReturn<string>>;
|
|
1968
|
+
|
|
1969
|
+
export declare interface UseDialogConfirmOptions {
|
|
1970
|
+
cancelText?: string;
|
|
1971
|
+
confirmText?: string;
|
|
1972
|
+
height?: string;
|
|
1973
|
+
maxWidth?: string;
|
|
1974
|
+
subtitle?: string;
|
|
1975
|
+
text?: string;
|
|
1976
|
+
title?: string;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1961
1979
|
export declare function useDialogDate<T>(options: UseDialogDateOptions): Promise<DialogReturn<T>>;
|
|
1962
1980
|
|
|
1963
1981
|
export declare interface UseDialogDateOptions extends ListProps<any, any, any> {
|
|
@@ -2240,7 +2258,7 @@ export declare function useItem<T, TSave, TReturn>(props: ItemProps<T, TSave, TR
|
|
|
2240
2258
|
updateBlade: (data: UpdateBladeData_2<GetOptions<T, TReturn>>) => void;
|
|
2241
2259
|
variant: Ref<BladeVariant, BladeVariant>;
|
|
2242
2260
|
asyncItem: Ref<TReturn | TReturn[] | undefined, TReturn | TReturn[] | undefined>;
|
|
2243
|
-
deleteItem: (dItem: any) => void
|
|
2261
|
+
deleteItem: (dItem: any) => Promise<void>;
|
|
2244
2262
|
errorMsg: ComputedRef<string | undefined>;
|
|
2245
2263
|
id: ComputedRef<string | undefined>;
|
|
2246
2264
|
isChanged: Ref<boolean, boolean>;
|
|
@@ -2302,7 +2320,7 @@ export declare function useList<T, TSave, TReturn>(props: ListProps<T, TSave, TR
|
|
|
2302
2320
|
applyFilters: () => Promise<void>;
|
|
2303
2321
|
asyncItems: Ref<TReturn | TReturn[] | undefined, TReturn | TReturn[] | undefined>;
|
|
2304
2322
|
currentPage: Ref<number, number>;
|
|
2305
|
-
deleteItem: (item: TReturn) => void
|
|
2323
|
+
deleteItem: (item: TReturn) => Promise<void>;
|
|
2306
2324
|
displayHeaders: ComputedRef< {
|
|
2307
2325
|
align?: "end" | "start" | "center" | undefined;
|
|
2308
2326
|
bool?: number | undefined;
|
package/package.json
CHANGED