bt-core-app 2.0.293 → 2.0.295
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 +9380 -9379
- package/dist/index.d.ts +18 -32
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -453,35 +453,6 @@ export { BTSelectSimple }
|
|
|
453
453
|
|
|
454
454
|
export { BTSquareCheck }
|
|
455
455
|
|
|
456
|
-
export declare interface BTSteps<T> {
|
|
457
|
-
canFinish: ComputedRef<boolean>;
|
|
458
|
-
canMoveBack: ComputedRef<boolean>;
|
|
459
|
-
canMoveNext: ComputedRef<boolean>;
|
|
460
|
-
canRestart: ComputedRef<boolean>;
|
|
461
|
-
canSave: ComputedRef<boolean>;
|
|
462
|
-
canSkip: ComputedRef<boolean>;
|
|
463
|
-
currentItem: Ref<T | undefined>;
|
|
464
|
-
currentMeta: Ref<any>;
|
|
465
|
-
currentStepData: ComputedRef<StepOption<T> | undefined>;
|
|
466
|
-
isChanged: Ref<boolean>;
|
|
467
|
-
lastStep: Ref<number>;
|
|
468
|
-
mode: Ref<BladeMode>;
|
|
469
|
-
navBack: () => void;
|
|
470
|
-
navTo: (panelIndex: number) => void;
|
|
471
|
-
navToName: (stepName?: string) => void;
|
|
472
|
-
newItem: () => Promise<void>;
|
|
473
|
-
nextStep: () => void;
|
|
474
|
-
save: () => Promise<void>;
|
|
475
|
-
skip: () => void;
|
|
476
|
-
stepOptions?: StepOption<any>[];
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
declare interface BTStepsStore<T> {
|
|
480
|
-
id: string;
|
|
481
|
-
data: Ref<BTSteps<T> | undefined>;
|
|
482
|
-
watchers: number;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
456
|
export declare interface BTStore extends Store<any, {}, {}, {
|
|
486
457
|
$reset: () => void;
|
|
487
458
|
deleteItem: <T>(dOptions: StorePathOptions) => Promise<T | undefined>;
|
|
@@ -1472,6 +1443,8 @@ export declare const monthOptions: {
|
|
|
1472
1443
|
|
|
1473
1444
|
export declare function moveInArray(arr: any[], fromInd: number, toInd: number): void;
|
|
1474
1445
|
|
|
1446
|
+
export declare function navBack(id: string): void;
|
|
1447
|
+
|
|
1475
1448
|
export declare interface NavigationItem extends AuthItem {
|
|
1476
1449
|
/**aliases are other names that could use this navigation item's set of permissions, etc.*/
|
|
1477
1450
|
aliases?: string[];
|
|
@@ -1541,8 +1514,14 @@ export declare interface NavigationItem extends AuthItem {
|
|
|
1541
1514
|
|
|
1542
1515
|
export declare const navigationKey: unique symbol;
|
|
1543
1516
|
|
|
1517
|
+
export declare function navTo(id: string, stepIndex: number): void;
|
|
1518
|
+
|
|
1519
|
+
export declare function navToName(id: string, stepName: string): void;
|
|
1520
|
+
|
|
1544
1521
|
export declare function nestedValue(obj: any, path?: string): any;
|
|
1545
1522
|
|
|
1523
|
+
export declare function nextStep(id: string): void;
|
|
1524
|
+
|
|
1546
1525
|
declare type OnCanDoAsync<T> = (item: T) => Promise<string | undefined>;
|
|
1547
1526
|
|
|
1548
1527
|
declare type OnDoActionAsync<T> = (item: T) => Promise<T | undefined>;
|
|
@@ -1632,7 +1611,14 @@ export declare interface RegisterDialogOptions {
|
|
|
1632
1611
|
open: (options: any, resolve: DialogResolve<any>) => void;
|
|
1633
1612
|
}
|
|
1634
1613
|
|
|
1635
|
-
export declare function
|
|
1614
|
+
export declare function registerSteps(id: string, options: RegisterStepsOptions): void;
|
|
1615
|
+
|
|
1616
|
+
export declare interface RegisterStepsOptions {
|
|
1617
|
+
navBack: () => void;
|
|
1618
|
+
navTo: (panelIndex: number) => void;
|
|
1619
|
+
navToName: (stepName?: string) => void;
|
|
1620
|
+
nextStep: () => void;
|
|
1621
|
+
}
|
|
1636
1622
|
|
|
1637
1623
|
export declare function removeWeekday(weekdays?: string, day?: string): string | undefined;
|
|
1638
1624
|
|
|
@@ -1874,6 +1860,8 @@ export declare interface TrackedItem<T> {
|
|
|
1874
1860
|
|
|
1875
1861
|
export declare function twiddleThumbs(mSec?: number): Promise<void>;
|
|
1876
1862
|
|
|
1863
|
+
export declare function unregisterSteps(id: string): void;
|
|
1864
|
+
|
|
1877
1865
|
declare interface UpdateBladeData<T extends GetOptions<any, any>> {
|
|
1878
1866
|
bladeName?: string;
|
|
1879
1867
|
closeBladeNames?: string | string[];
|
|
@@ -2809,8 +2797,6 @@ declare interface UseSessionStoreOptions {
|
|
|
2809
2797
|
|
|
2810
2798
|
export declare function useSettingsFor<TSettings>(key: string, defaultSettings: TSettings): BaseSettings<TSettings>;
|
|
2811
2799
|
|
|
2812
|
-
export declare function useSteps<T>(id: string, options?: BTSteps<T>): BTStepsStore<T>;
|
|
2813
|
-
|
|
2814
2800
|
export declare function useStore(options: CreateStoreOptions): BTStore;
|
|
2815
2801
|
|
|
2816
2802
|
export declare function useStoreDefinition(options: CreateStoreOptions): BTStoreDefinition;
|