@sprucelabs/heartwood-view-controllers 124.1.1 → 124.1.3
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/build/esm/tests/MockActiveRecordCard.d.ts +1 -1
- package/build/esm/types/heartwood.types.d.ts +2 -2
- package/build/esm/viewControllers/Dialog.vc.d.ts +1 -1
- package/build/esm/viewControllers/Dialog.vc.js +3 -1
- package/build/esm/viewControllers/activeRecord/ActiveRecordCard.vc.d.ts +1 -1
- package/build/tests/MockActiveRecordCard.d.ts +1 -1
- package/build/types/heartwood.types.d.ts +2 -2
- package/build/viewControllers/Dialog.vc.d.ts +1 -1
- package/build/viewControllers/Dialog.vc.js +1 -0
- package/build/viewControllers/activeRecord/ActiveRecordCard.vc.d.ts +1 -1
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ export default class MockActiveRecordCard extends ActiveRecordCardViewController
|
|
|
34
34
|
assertDoesNotRenderFooter(): void;
|
|
35
35
|
assertRendersFooter(): void;
|
|
36
36
|
getSwipeVc(): import("..").SwipeCardViewController;
|
|
37
|
-
getCardVc(): Pick<import("..").CardViewController, "isBusy" | "setCriticalError" | "getHasCriticalError" | "clearCriticalError" | "setIsBusy" | "setHeaderTitle" | "setHeaderSubtitle" | "enableFooter" | "disableFooter" | "
|
|
37
|
+
getCardVc(): Pick<import("..").CardViewController, "isBusy" | "setCriticalError" | "getHasCriticalError" | "clearCriticalError" | "setIsBusy" | "setHeaderTitle" | "setHeaderSubtitle" | "enableFooter" | "disableFooter" | "setFooter" | "getHeaderTitle" | "getFooter" | "getHeaderSubtitle" | "render" | "triggerRender" | "setTriggerRenderHandler">;
|
|
38
38
|
getListVcs(): import("..").ListViewController[];
|
|
39
39
|
rebuildSlidesForPaging(): void;
|
|
40
40
|
assertRebuildSlideCountEquals(expected: number): void;
|
|
@@ -21,7 +21,7 @@ import BarChartViewController, { BarChartViewControllerOptions } from '../viewCo
|
|
|
21
21
|
import LineGraphViewController, { LineGraphViewControllerOptions } from '../viewControllers/charts/LineGraph.vc';
|
|
22
22
|
import ConfirmViewController, { ConfirmViewControllerOptions } from '../viewControllers/Confirm.vc';
|
|
23
23
|
import CountdownTimerViewController, { CountdownTimerViewControllerOptions } from '../viewControllers/countdownTimer/CountdownTimer.vc';
|
|
24
|
-
import DialogViewController, { DialogViewControllerOptions } from '../viewControllers/Dialog.vc';
|
|
24
|
+
import DialogViewController, { DialogOptions, DialogViewControllerOptions } from '../viewControllers/Dialog.vc';
|
|
25
25
|
import FeedViewController, { FeedViewControllerOptions } from '../viewControllers/Feed.vc';
|
|
26
26
|
import AutocompleteInputViewController, { AutocompleteInputViewControllerOptions } from '../viewControllers/form/AutocompleteInput.vc';
|
|
27
27
|
import FormViewControllerImpl, { FormViewControllerOptions } from '../viewControllers/form/Form.vc';
|
|
@@ -412,7 +412,7 @@ export type SkillViewControllerArgs<N extends SkillViewControllerId, O extends S
|
|
|
412
412
|
export interface OnRenderHandler {
|
|
413
413
|
onRender?(): void;
|
|
414
414
|
}
|
|
415
|
-
export type RenderInDialogHandler = (options:
|
|
415
|
+
export type RenderInDialogHandler = (options: DialogOptions) => DialogViewController;
|
|
416
416
|
export type AlertHandler = AbstractController['alert'];
|
|
417
417
|
export type RenderLockScreenHandler = (options: LockScreen) => void;
|
|
418
418
|
export interface ConfirmOptions {
|
|
@@ -19,7 +19,7 @@ export default class DialogViewController extends AbstractViewController<Dialog>
|
|
|
19
19
|
getCardVc(): ViewController<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card>;
|
|
20
20
|
setIsBusy(isBusy: boolean): void;
|
|
21
21
|
wait(): Promise<void>;
|
|
22
|
-
render():
|
|
22
|
+
render(): DialogOptions;
|
|
23
23
|
}
|
|
24
24
|
export type DialogOptions = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card & SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Dialog;
|
|
25
25
|
type Dialog = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Dialog;
|
|
@@ -75,7 +75,9 @@ export default class DialogViewController extends AbstractViewController {
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
return Object.assign(Object.assign({}, this.cardVc.render()), { width: this.width,
|
|
78
|
+
return Object.assign(Object.assign({}, this.cardVc.render()), { width: this.width,
|
|
79
|
+
//@ts-ignore
|
|
80
|
+
controller: this, cardController: this.cardVc, isVisible: this.isVisible, shouldShowCloseButton: this.shouldShowCloseButton, closeHandler: this.shouldShowCloseButton !== false
|
|
79
81
|
? this.handleClose.bind(this)
|
|
80
82
|
: undefined });
|
|
81
83
|
}
|
|
@@ -76,7 +76,7 @@ export default class ActiveRecordCardViewController extends AbstractViewControll
|
|
|
76
76
|
enableFooter(): void;
|
|
77
77
|
getListVc(): ListViewController;
|
|
78
78
|
doesRowExist(id: string): boolean;
|
|
79
|
-
getCardVc(): Pick<CardViewController, "isBusy" | "setCriticalError" | "getHasCriticalError" | "clearCriticalError" | "setIsBusy" | "setHeaderTitle" | "setHeaderSubtitle" | "enableFooter" | "disableFooter" | "
|
|
79
|
+
getCardVc(): Pick<CardViewController, "isBusy" | "setCriticalError" | "getHasCriticalError" | "clearCriticalError" | "setIsBusy" | "setHeaderTitle" | "setHeaderSubtitle" | "enableFooter" | "disableFooter" | "setFooter" | "getHeaderTitle" | "getFooter" | "getHeaderSubtitle" | "render" | "triggerRender" | "setTriggerRenderHandler">;
|
|
80
80
|
render(): Card;
|
|
81
81
|
}
|
|
82
82
|
export interface ActiveRecordCardViewControllerOptions extends ActiveRecordListViewControllerOptions {
|
|
@@ -34,7 +34,7 @@ export default class MockActiveRecordCard extends ActiveRecordCardViewController
|
|
|
34
34
|
assertDoesNotRenderFooter(): void;
|
|
35
35
|
assertRendersFooter(): void;
|
|
36
36
|
getSwipeVc(): import("..").SwipeCardViewController;
|
|
37
|
-
getCardVc(): Pick<import("..").CardViewController, "isBusy" | "setCriticalError" | "getHasCriticalError" | "clearCriticalError" | "setIsBusy" | "setHeaderTitle" | "setHeaderSubtitle" | "enableFooter" | "disableFooter" | "
|
|
37
|
+
getCardVc(): Pick<import("..").CardViewController, "isBusy" | "setCriticalError" | "getHasCriticalError" | "clearCriticalError" | "setIsBusy" | "setHeaderTitle" | "setHeaderSubtitle" | "enableFooter" | "disableFooter" | "setFooter" | "getHeaderTitle" | "getFooter" | "getHeaderSubtitle" | "render" | "triggerRender" | "setTriggerRenderHandler">;
|
|
38
38
|
getListVcs(): import("..").ListViewController[];
|
|
39
39
|
rebuildSlidesForPaging(): void;
|
|
40
40
|
assertRebuildSlideCountEquals(expected: number): void;
|
|
@@ -21,7 +21,7 @@ import BarChartViewController, { BarChartViewControllerOptions } from '../viewCo
|
|
|
21
21
|
import LineGraphViewController, { LineGraphViewControllerOptions } from '../viewControllers/charts/LineGraph.vc';
|
|
22
22
|
import ConfirmViewController, { ConfirmViewControllerOptions } from '../viewControllers/Confirm.vc';
|
|
23
23
|
import CountdownTimerViewController, { CountdownTimerViewControllerOptions } from '../viewControllers/countdownTimer/CountdownTimer.vc';
|
|
24
|
-
import DialogViewController, { DialogViewControllerOptions } from '../viewControllers/Dialog.vc';
|
|
24
|
+
import DialogViewController, { DialogOptions, DialogViewControllerOptions } from '../viewControllers/Dialog.vc';
|
|
25
25
|
import FeedViewController, { FeedViewControllerOptions } from '../viewControllers/Feed.vc';
|
|
26
26
|
import AutocompleteInputViewController, { AutocompleteInputViewControllerOptions } from '../viewControllers/form/AutocompleteInput.vc';
|
|
27
27
|
import FormViewControllerImpl, { FormViewControllerOptions } from '../viewControllers/form/Form.vc';
|
|
@@ -412,7 +412,7 @@ export type SkillViewControllerArgs<N extends SkillViewControllerId, O extends S
|
|
|
412
412
|
export interface OnRenderHandler {
|
|
413
413
|
onRender?(): void;
|
|
414
414
|
}
|
|
415
|
-
export type RenderInDialogHandler = (options:
|
|
415
|
+
export type RenderInDialogHandler = (options: DialogOptions) => DialogViewController;
|
|
416
416
|
export type AlertHandler = AbstractController['alert'];
|
|
417
417
|
export type RenderLockScreenHandler = (options: LockScreen) => void;
|
|
418
418
|
export interface ConfirmOptions {
|
|
@@ -19,7 +19,7 @@ export default class DialogViewController extends AbstractViewController<Dialog>
|
|
|
19
19
|
getCardVc(): ViewController<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card>;
|
|
20
20
|
setIsBusy(isBusy: boolean): void;
|
|
21
21
|
wait(): Promise<void>;
|
|
22
|
-
render():
|
|
22
|
+
render(): DialogOptions;
|
|
23
23
|
}
|
|
24
24
|
export type DialogOptions = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card & SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Dialog;
|
|
25
25
|
type Dialog = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Dialog;
|
|
@@ -76,7 +76,7 @@ export default class ActiveRecordCardViewController extends AbstractViewControll
|
|
|
76
76
|
enableFooter(): void;
|
|
77
77
|
getListVc(): ListViewController;
|
|
78
78
|
doesRowExist(id: string): boolean;
|
|
79
|
-
getCardVc(): Pick<CardViewController, "isBusy" | "setCriticalError" | "getHasCriticalError" | "clearCriticalError" | "setIsBusy" | "setHeaderTitle" | "setHeaderSubtitle" | "enableFooter" | "disableFooter" | "
|
|
79
|
+
getCardVc(): Pick<CardViewController, "isBusy" | "setCriticalError" | "getHasCriticalError" | "clearCriticalError" | "setIsBusy" | "setHeaderTitle" | "setHeaderSubtitle" | "enableFooter" | "disableFooter" | "setFooter" | "getHeaderTitle" | "getFooter" | "getHeaderSubtitle" | "render" | "triggerRender" | "setTriggerRenderHandler">;
|
|
80
80
|
render(): Card;
|
|
81
81
|
}
|
|
82
82
|
export interface ActiveRecordCardViewControllerOptions extends ActiveRecordListViewControllerOptions {
|
package/package.json
CHANGED