@sprucelabs/heartwood-view-controllers 121.2.21 → 121.2.23
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/index.d.ts +1 -0
- package/build/esm/index.js +1 -0
- package/build/esm/types/heartwood.types.d.ts +6 -4
- package/build/esm/viewControllers/ViewControllerFactory.js +3 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/heartwood.types.d.ts +6 -4
- package/build/viewControllers/ViewControllerFactory.js +4 -1
- package/package.json +1 -1
package/build/esm/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './viewControllers/ButtonGroup.vc';
|
|
|
11
11
|
export { default as CardViewControllerImpl } from './viewControllers/card/Card.vc';
|
|
12
12
|
export { default as ConfirmViewController } from './viewControllers/Confirm.vc';
|
|
13
13
|
export { default as DialogViewController } from './viewControllers/Dialog.vc';
|
|
14
|
+
export * from './viewControllers/Dialog.vc';
|
|
14
15
|
export { default as LockScreenSkillViewController } from './skillViewControllers/LockScreen.svc';
|
|
15
16
|
export * from './skillViewControllers/LockScreen.svc';
|
|
16
17
|
export { default as NavigationViewController } from './viewControllers/navigation/Navigation.vc';
|
package/build/esm/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export * from './viewControllers/ButtonGroup.vc.js';
|
|
|
11
11
|
export { default as CardViewControllerImpl } from './viewControllers/card/Card.vc.js';
|
|
12
12
|
export { default as ConfirmViewController } from './viewControllers/Confirm.vc.js';
|
|
13
13
|
export { default as DialogViewController } from './viewControllers/Dialog.vc.js';
|
|
14
|
+
export * from './viewControllers/Dialog.vc.js';
|
|
14
15
|
export { default as LockScreenSkillViewController } from './skillViewControllers/LockScreen.svc.js';
|
|
15
16
|
export * from './skillViewControllers/LockScreen.svc.js';
|
|
16
17
|
export { default as NavigationViewController } from './viewControllers/navigation/Navigation.vc.js';
|
|
@@ -3,11 +3,12 @@ import { MercuryClient, MercuryClientFactory } from '@sprucelabs/mercury-client'
|
|
|
3
3
|
import { MercuryEventEmitter, PermissionContractId, PermissionId, SpruceSchemas } from '@sprucelabs/mercury-types';
|
|
4
4
|
import { AddressFieldValue, FieldDefinitions, FieldError, Schema, SchemaFieldNames, SchemaPartialValues, SchemaValues } from '@sprucelabs/schema';
|
|
5
5
|
import { Log } from '@sprucelabs/spruce-skill-utils';
|
|
6
|
-
import { BarChartViewController, CalendarEventOptions, PagerViewController } from '..';
|
|
7
6
|
import { fancyIcons, lineIcons } from '../constants';
|
|
8
7
|
import mapUtil from '../maps/map.utility';
|
|
9
8
|
import LockScreenSkillViewController, { LockScreenSkillViewControllerOptions } from '../skillViewControllers/LockScreen.svc';
|
|
10
9
|
import { UniversalViewOptionFields } from '../utilities/removeUniversalViewOptions';
|
|
10
|
+
import { CalendarEventOptions } from '../viewControllers/AbstractCalendarEvent.vc';
|
|
11
|
+
import AbstractController from '../viewControllers/AbstractController';
|
|
11
12
|
import ActiveRecordCardViewController, { ActiveRecordCardViewControllerOptions } from '../viewControllers/activeRecord/ActiveRecordCard.vc';
|
|
12
13
|
import ActiveRecordListViewController, { ActiveRecordListViewControllerOptions } from '../viewControllers/activeRecord/ActiveRecordList.vc';
|
|
13
14
|
import BigFormViewControllerImpl, { BigFormViewControllerOptions } from '../viewControllers/BigForm.vc';
|
|
@@ -16,7 +17,7 @@ import ButtonGroupViewController, { ButtonGroupViewControllerOptions } from '../
|
|
|
16
17
|
import CalendarViewController, { CalendarViewControllerOptions } from '../viewControllers/Calendar.vc';
|
|
17
18
|
import CalendarEventViewController from '../viewControllers/CalendarEvent.vc';
|
|
18
19
|
import CardViewControllerImpl, { CardViewControllerOptions } from '../viewControllers/card/Card.vc';
|
|
19
|
-
import { BarChartViewControllerOptions } from '../viewControllers/charts/BarChart.vc';
|
|
20
|
+
import BarChartViewController, { BarChartViewControllerOptions } from '../viewControllers/charts/BarChart.vc';
|
|
20
21
|
import LineGraphViewController, { LineGraphViewControllerOptions } from '../viewControllers/charts/LineGraph.vc';
|
|
21
22
|
import ConfirmViewController, { ConfirmViewControllerOptions } from '../viewControllers/Confirm.vc';
|
|
22
23
|
import CountdownTimerViewController, { CountdownTimerViewControllerOptions } from '../viewControllers/countdownTimer/CountdownTimer.vc';
|
|
@@ -30,7 +31,7 @@ import ListRowViewController from '../viewControllers/list/ListRow.vc';
|
|
|
30
31
|
import LoginCardViewController, { LoginCardViewControllerOptions } from '../viewControllers/LoginCard.vc';
|
|
31
32
|
import MapViewController, { MapViewControllerOptions } from '../viewControllers/Map.vc';
|
|
32
33
|
import NavigationViewController from '../viewControllers/navigation/Navigation.vc';
|
|
33
|
-
import { PagerViewControllerOptions } from '../viewControllers/pagers/Pager.vc';
|
|
34
|
+
import PagerViewController, { PagerViewControllerOptions } from '../viewControllers/pagers/Pager.vc';
|
|
34
35
|
import PolarAreaViewController, { PolarAreaViewControllerOptions } from '../viewControllers/PolarAreaViewController.vc';
|
|
35
36
|
import ProgressNavigatorViewController, { ProgressNavigatorViewControllerOptions } from '../viewControllers/progressNavigator/ProgressNavigator.vc';
|
|
36
37
|
import RatingsViewController, { RatingsViewControllerOptions } from '../viewControllers/Ratings.vc';
|
|
@@ -400,7 +401,8 @@ export type SkillViewControllerArgs<N extends SkillViewControllerId, O extends S
|
|
|
400
401
|
export interface OnRenderHandler {
|
|
401
402
|
onRender?(): void;
|
|
402
403
|
}
|
|
403
|
-
export type RenderInDialogHandler = (options: DialogViewControllerOptions) =>
|
|
404
|
+
export type RenderInDialogHandler = (options: DialogViewControllerOptions) => DialogViewController;
|
|
405
|
+
export type AlertHandler = AbstractController['alert'];
|
|
404
406
|
export type RenderLockScreenHandler = (options: LockScreen) => void;
|
|
405
407
|
export interface ConfirmOptions {
|
|
406
408
|
title?: string;
|
|
@@ -54,7 +54,9 @@ export default class ViewControllerFactory {
|
|
|
54
54
|
toastHandler: toastHandler !== null && toastHandler !== void 0 ? toastHandler : (() => { }),
|
|
55
55
|
confirmHandler: confirmHandler !== null && confirmHandler !== void 0 ? confirmHandler : (() => __awaiter(this, void 0, void 0, function* () { return false; })),
|
|
56
56
|
voteHandler: voteHandler !== null && voteHandler !== void 0 ? voteHandler : (() => __awaiter(this, void 0, void 0, function* () { })),
|
|
57
|
-
renderInDialogHandler: renderInDialogHandler !== null && renderInDialogHandler !== void 0 ? renderInDialogHandler : (() => {
|
|
57
|
+
renderInDialogHandler: renderInDialogHandler !== null && renderInDialogHandler !== void 0 ? renderInDialogHandler : (() => {
|
|
58
|
+
return {};
|
|
59
|
+
}),
|
|
58
60
|
renderLockScreenHandler: renderLockScreenHandler !== null && renderLockScreenHandler !== void 0 ? renderLockScreenHandler : (() => { }),
|
|
59
61
|
});
|
|
60
62
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './viewControllers/ButtonGroup.vc';
|
|
|
11
11
|
export { default as CardViewControllerImpl } from './viewControllers/card/Card.vc';
|
|
12
12
|
export { default as ConfirmViewController } from './viewControllers/Confirm.vc';
|
|
13
13
|
export { default as DialogViewController } from './viewControllers/Dialog.vc';
|
|
14
|
+
export * from './viewControllers/Dialog.vc';
|
|
14
15
|
export { default as LockScreenSkillViewController } from './skillViewControllers/LockScreen.svc';
|
|
15
16
|
export * from './skillViewControllers/LockScreen.svc';
|
|
16
17
|
export { default as NavigationViewController } from './viewControllers/navigation/Navigation.vc';
|
package/build/index.js
CHANGED
|
@@ -42,6 +42,7 @@ var Confirm_vc_1 = require("./viewControllers/Confirm.vc");
|
|
|
42
42
|
Object.defineProperty(exports, "ConfirmViewController", { enumerable: true, get: function () { return __importDefault(Confirm_vc_1).default; } });
|
|
43
43
|
var Dialog_vc_1 = require("./viewControllers/Dialog.vc");
|
|
44
44
|
Object.defineProperty(exports, "DialogViewController", { enumerable: true, get: function () { return __importDefault(Dialog_vc_1).default; } });
|
|
45
|
+
__exportStar(require("./viewControllers/Dialog.vc"), exports);
|
|
45
46
|
var LockScreen_svc_1 = require("./skillViewControllers/LockScreen.svc");
|
|
46
47
|
Object.defineProperty(exports, "LockScreenSkillViewController", { enumerable: true, get: function () { return __importDefault(LockScreen_svc_1).default; } });
|
|
47
48
|
__exportStar(require("./skillViewControllers/LockScreen.svc"), exports);
|
|
@@ -3,11 +3,12 @@ import { MercuryClient, MercuryClientFactory } from '@sprucelabs/mercury-client'
|
|
|
3
3
|
import { MercuryEventEmitter, PermissionContractId, PermissionId, SpruceSchemas } from '@sprucelabs/mercury-types';
|
|
4
4
|
import { AddressFieldValue, FieldDefinitions, FieldError, Schema, SchemaFieldNames, SchemaPartialValues, SchemaValues } from '@sprucelabs/schema';
|
|
5
5
|
import { Log } from '@sprucelabs/spruce-skill-utils';
|
|
6
|
-
import { BarChartViewController, CalendarEventOptions, PagerViewController } from '..';
|
|
7
6
|
import { fancyIcons, lineIcons } from '../constants';
|
|
8
7
|
import mapUtil from '../maps/map.utility';
|
|
9
8
|
import LockScreenSkillViewController, { LockScreenSkillViewControllerOptions } from '../skillViewControllers/LockScreen.svc';
|
|
10
9
|
import { UniversalViewOptionFields } from '../utilities/removeUniversalViewOptions';
|
|
10
|
+
import { CalendarEventOptions } from '../viewControllers/AbstractCalendarEvent.vc';
|
|
11
|
+
import AbstractController from '../viewControllers/AbstractController';
|
|
11
12
|
import ActiveRecordCardViewController, { ActiveRecordCardViewControllerOptions } from '../viewControllers/activeRecord/ActiveRecordCard.vc';
|
|
12
13
|
import ActiveRecordListViewController, { ActiveRecordListViewControllerOptions } from '../viewControllers/activeRecord/ActiveRecordList.vc';
|
|
13
14
|
import BigFormViewControllerImpl, { BigFormViewControllerOptions } from '../viewControllers/BigForm.vc';
|
|
@@ -16,7 +17,7 @@ import ButtonGroupViewController, { ButtonGroupViewControllerOptions } from '../
|
|
|
16
17
|
import CalendarViewController, { CalendarViewControllerOptions } from '../viewControllers/Calendar.vc';
|
|
17
18
|
import CalendarEventViewController from '../viewControllers/CalendarEvent.vc';
|
|
18
19
|
import CardViewControllerImpl, { CardViewControllerOptions } from '../viewControllers/card/Card.vc';
|
|
19
|
-
import { BarChartViewControllerOptions } from '../viewControllers/charts/BarChart.vc';
|
|
20
|
+
import BarChartViewController, { BarChartViewControllerOptions } from '../viewControllers/charts/BarChart.vc';
|
|
20
21
|
import LineGraphViewController, { LineGraphViewControllerOptions } from '../viewControllers/charts/LineGraph.vc';
|
|
21
22
|
import ConfirmViewController, { ConfirmViewControllerOptions } from '../viewControllers/Confirm.vc';
|
|
22
23
|
import CountdownTimerViewController, { CountdownTimerViewControllerOptions } from '../viewControllers/countdownTimer/CountdownTimer.vc';
|
|
@@ -30,7 +31,7 @@ import ListRowViewController from '../viewControllers/list/ListRow.vc';
|
|
|
30
31
|
import LoginCardViewController, { LoginCardViewControllerOptions } from '../viewControllers/LoginCard.vc';
|
|
31
32
|
import MapViewController, { MapViewControllerOptions } from '../viewControllers/Map.vc';
|
|
32
33
|
import NavigationViewController from '../viewControllers/navigation/Navigation.vc';
|
|
33
|
-
import { PagerViewControllerOptions } from '../viewControllers/pagers/Pager.vc';
|
|
34
|
+
import PagerViewController, { PagerViewControllerOptions } from '../viewControllers/pagers/Pager.vc';
|
|
34
35
|
import PolarAreaViewController, { PolarAreaViewControllerOptions } from '../viewControllers/PolarAreaViewController.vc';
|
|
35
36
|
import ProgressNavigatorViewController, { ProgressNavigatorViewControllerOptions } from '../viewControllers/progressNavigator/ProgressNavigator.vc';
|
|
36
37
|
import RatingsViewController, { RatingsViewControllerOptions } from '../viewControllers/Ratings.vc';
|
|
@@ -400,7 +401,8 @@ export type SkillViewControllerArgs<N extends SkillViewControllerId, O extends S
|
|
|
400
401
|
export interface OnRenderHandler {
|
|
401
402
|
onRender?(): void;
|
|
402
403
|
}
|
|
403
|
-
export type RenderInDialogHandler = (options: DialogViewControllerOptions) =>
|
|
404
|
+
export type RenderInDialogHandler = (options: DialogViewControllerOptions) => DialogViewController;
|
|
405
|
+
export type AlertHandler = AbstractController['alert'];
|
|
404
406
|
export type RenderLockScreenHandler = (options: LockScreen) => void;
|
|
405
407
|
export interface ConfirmOptions {
|
|
406
408
|
title?: string;
|
|
@@ -49,7 +49,10 @@ class ViewControllerFactory {
|
|
|
49
49
|
toastHandler: toastHandler ?? (() => { }),
|
|
50
50
|
confirmHandler: confirmHandler ?? (async () => false),
|
|
51
51
|
voteHandler: voteHandler ?? (async () => { }),
|
|
52
|
-
renderInDialogHandler: renderInDialogHandler ??
|
|
52
|
+
renderInDialogHandler: renderInDialogHandler ??
|
|
53
|
+
(() => {
|
|
54
|
+
return {};
|
|
55
|
+
}),
|
|
53
56
|
renderLockScreenHandler: renderLockScreenHandler ?? (() => { }),
|
|
54
57
|
});
|
|
55
58
|
}
|
package/package.json
CHANGED