@sprucelabs/spruce-calendar-components 38.1.13 → 39.0.0
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/__tests__/support/utilities/mixinViewControllersForTests.js +2 -2
- package/build/esm/__tests__/support/utilities/mixinViewControllersForTests.js +2 -2
- package/build/esm/tools/VenueSelectionTool.vc.d.ts +2 -2
- package/build/esm/tools/VenueSelectionTool.vc.js +1 -1
- package/build/esm/viewControllers/{VenuesList.vc.d.ts → VenueList.vc.d.ts} +6 -6
- package/build/esm/viewControllers/{VenuesList.vc.js → VenueList.vc.js} +3 -3
- package/build/tools/VenueSelectionTool.vc.d.ts +2 -2
- package/build/tools/VenueSelectionTool.vc.js +1 -1
- package/build/viewControllers/{VenuesList.vc.d.ts → VenueList.vc.d.ts} +6 -6
- package/build/viewControllers/{VenuesList.vc.js → VenueList.vc.js} +3 -3
- package/package.json +5 -5
|
@@ -13,7 +13,7 @@ const VenueSelectionTool_vc_1 = __importDefault(require("../../../tools/VenueSel
|
|
|
13
13
|
const EventControlsCard_vc_1 = __importDefault(require("../../../viewControllers/EventControlsCard.vc"));
|
|
14
14
|
const RepeatingControlsList_vc_1 = __importDefault(require("../../../viewControllers/RepeatingControlsList.vc"));
|
|
15
15
|
const UniversalCalendarEvent_vc_1 = __importDefault(require("../../../viewControllers/UniversalCalendarEvent.vc"));
|
|
16
|
-
const
|
|
16
|
+
const VenueList_vc_1 = __importDefault(require("../../../viewControllers/VenueList.vc"));
|
|
17
17
|
function mixinViewControllersForTests(factory) {
|
|
18
18
|
for (const [id, vc] of Object.entries(vcs)) {
|
|
19
19
|
if (!factory.hasController(id)) {
|
|
@@ -31,5 +31,5 @@ const vcs = {
|
|
|
31
31
|
['calendar.event-controls-card']: EventControlsCard_vc_1.default,
|
|
32
32
|
['calendar.universal-calendar-event']: UniversalCalendarEvent_vc_1.default,
|
|
33
33
|
['calendar.venue-selection-tool']: VenueSelectionTool_vc_1.default,
|
|
34
|
-
['calendar.venues-list']:
|
|
34
|
+
['calendar.venues-list']: VenueList_vc_1.default,
|
|
35
35
|
};
|
|
@@ -7,7 +7,7 @@ import VenueSelectionToolViewController from '../../../tools/VenueSelectionTool.
|
|
|
7
7
|
import EventControlsCardViewController from '../../../viewControllers/EventControlsCard.vc.js';
|
|
8
8
|
import RepeatingControlsListViewController from '../../../viewControllers/RepeatingControlsList.vc.js';
|
|
9
9
|
import UniversalCalendarEventViewController from '../../../viewControllers/UniversalCalendarEvent.vc.js';
|
|
10
|
-
import
|
|
10
|
+
import VenueListViewController from '../../../viewControllers/VenueList.vc.js';
|
|
11
11
|
export default function mixinViewControllersForTests(factory) {
|
|
12
12
|
for (const [id, vc] of Object.entries(vcs)) {
|
|
13
13
|
if (!factory.hasController(id)) {
|
|
@@ -25,5 +25,5 @@ const vcs = {
|
|
|
25
25
|
['calendar.event-controls-card']: EventControlsCardViewController,
|
|
26
26
|
['calendar.universal-calendar-event']: UniversalCalendarEventViewController,
|
|
27
27
|
['calendar.venue-selection-tool']: VenueSelectionToolViewController,
|
|
28
|
-
['calendar.venues-list']:
|
|
28
|
+
['calendar.venues-list']: VenueListViewController,
|
|
29
29
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AbstractViewController, ViewControllerOptions, Card } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import { CalendarTool, CalendarToolBeltContext, CalendarToolOptions } from '../types/calendar.types';
|
|
3
|
-
import
|
|
3
|
+
import VenueListViewController from '../viewControllers/VenueList.vc';
|
|
4
4
|
export default class VenueSelectionToolViewController extends AbstractViewController<Card> implements CalendarTool {
|
|
5
5
|
static id: string;
|
|
6
6
|
private cardVc;
|
|
7
|
-
protected venueListVc:
|
|
7
|
+
protected venueListVc: VenueListViewController;
|
|
8
8
|
private updateContextHandler;
|
|
9
9
|
private getContext;
|
|
10
10
|
private isLoaded;
|
|
@@ -19,7 +19,7 @@ class VenueSelectionToolViewController extends AbstractViewController {
|
|
|
19
19
|
this.cardVc = this.CardVc();
|
|
20
20
|
}
|
|
21
21
|
VenueListVc() {
|
|
22
|
-
return this.Controller('calendar.
|
|
22
|
+
return this.Controller('calendar.venue-list', {
|
|
23
23
|
router: this.router,
|
|
24
24
|
onSelect: this.handleSelectVenueFromList.bind(this),
|
|
25
25
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractViewController, ViewControllerOptions, List, ListViewController, Router } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import { Venue } from '../types/calendar.types';
|
|
3
|
-
export default class
|
|
3
|
+
export default class VenueListViewController extends AbstractViewController<List> {
|
|
4
4
|
static id: string;
|
|
5
5
|
protected listVc: ListViewController;
|
|
6
6
|
private venues;
|
|
@@ -8,9 +8,9 @@ export default class VenuesListViewController extends AbstractViewController<Lis
|
|
|
8
8
|
private router?;
|
|
9
9
|
private isLoaded;
|
|
10
10
|
private selectedVenue?;
|
|
11
|
-
constructor(options: ViewControllerOptions &
|
|
11
|
+
constructor(options: ViewControllerOptions & VenueListConstructorOptions);
|
|
12
12
|
private ListVc;
|
|
13
|
-
load(options:
|
|
13
|
+
load(options: VenueListLoadOptions): Promise<void>;
|
|
14
14
|
private populateList;
|
|
15
15
|
private renderDetailsRow;
|
|
16
16
|
private renderVenueRow;
|
|
@@ -23,10 +23,10 @@ export default class VenuesListViewController extends AbstractViewController<Lis
|
|
|
23
23
|
private handleClickedCheckbox;
|
|
24
24
|
render(): List;
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface VenueListLoadOptions {
|
|
27
27
|
organizationId: string;
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
30
|
-
router
|
|
29
|
+
export interface VenueListConstructorOptions {
|
|
30
|
+
router: Router;
|
|
31
31
|
onSelect?: (venue: Venue) => void;
|
|
32
32
|
}
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { AbstractViewController, } from '@sprucelabs/heartwood-view-controllers';
|
|
11
|
-
class
|
|
11
|
+
class VenueListViewController extends AbstractViewController {
|
|
12
12
|
constructor(options) {
|
|
13
13
|
super(options);
|
|
14
14
|
this.venues = [];
|
|
@@ -146,5 +146,5 @@ class VenuesListViewController extends AbstractViewController {
|
|
|
146
146
|
: this.listVc.render());
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
export default
|
|
149
|
+
VenueListViewController.id = 'venue-list';
|
|
150
|
+
export default VenueListViewController;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AbstractViewController, ViewControllerOptions, Card } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import { CalendarTool, CalendarToolBeltContext, CalendarToolOptions } from '../types/calendar.types';
|
|
3
|
-
import
|
|
3
|
+
import VenueListViewController from '../viewControllers/VenueList.vc';
|
|
4
4
|
export default class VenueSelectionToolViewController extends AbstractViewController<Card> implements CalendarTool {
|
|
5
5
|
static id: string;
|
|
6
6
|
private cardVc;
|
|
7
|
-
protected venueListVc:
|
|
7
|
+
protected venueListVc: VenueListViewController;
|
|
8
8
|
private updateContextHandler;
|
|
9
9
|
private getContext;
|
|
10
10
|
private isLoaded;
|
|
@@ -12,7 +12,7 @@ class VenueSelectionToolViewController extends heartwood_view_controllers_1.Abst
|
|
|
12
12
|
this.cardVc = this.CardVc();
|
|
13
13
|
}
|
|
14
14
|
VenueListVc() {
|
|
15
|
-
return this.Controller('calendar.
|
|
15
|
+
return this.Controller('calendar.venue-list', {
|
|
16
16
|
router: this.router,
|
|
17
17
|
onSelect: this.handleSelectVenueFromList.bind(this),
|
|
18
18
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractViewController, ViewControllerOptions, List, ListViewController, Router } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import { Venue } from '../types/calendar.types';
|
|
3
|
-
export default class
|
|
3
|
+
export default class VenueListViewController extends AbstractViewController<List> {
|
|
4
4
|
static id: string;
|
|
5
5
|
protected listVc: ListViewController;
|
|
6
6
|
private venues;
|
|
@@ -8,9 +8,9 @@ export default class VenuesListViewController extends AbstractViewController<Lis
|
|
|
8
8
|
private router?;
|
|
9
9
|
private isLoaded;
|
|
10
10
|
private selectedVenue?;
|
|
11
|
-
constructor(options: ViewControllerOptions &
|
|
11
|
+
constructor(options: ViewControllerOptions & VenueListConstructorOptions);
|
|
12
12
|
private ListVc;
|
|
13
|
-
load(options:
|
|
13
|
+
load(options: VenueListLoadOptions): Promise<void>;
|
|
14
14
|
private populateList;
|
|
15
15
|
private renderDetailsRow;
|
|
16
16
|
private renderVenueRow;
|
|
@@ -23,10 +23,10 @@ export default class VenuesListViewController extends AbstractViewController<Lis
|
|
|
23
23
|
private handleClickedCheckbox;
|
|
24
24
|
render(): List;
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface VenueListLoadOptions {
|
|
27
27
|
organizationId: string;
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
30
|
-
router
|
|
29
|
+
export interface VenueListConstructorOptions {
|
|
30
|
+
router: Router;
|
|
31
31
|
onSelect?: (venue: Venue) => void;
|
|
32
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const heartwood_view_controllers_1 = require("@sprucelabs/heartwood-view-controllers");
|
|
4
|
-
class
|
|
4
|
+
class VenueListViewController extends heartwood_view_controllers_1.AbstractViewController {
|
|
5
5
|
constructor(options) {
|
|
6
6
|
super(options);
|
|
7
7
|
this.venues = [];
|
|
@@ -127,5 +127,5 @@ class VenuesListViewController extends heartwood_view_controllers_1.AbstractView
|
|
|
127
127
|
: this.listVc.render());
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
exports.default =
|
|
130
|
+
VenueListViewController.id = 'venue-list';
|
|
131
|
+
exports.default = VenueListViewController;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprucelabs/spruce-calendar-components",
|
|
3
3
|
"description": "Calendar components for working with calendars and Sprucebot.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "39.0.0",
|
|
5
5
|
"skill": {
|
|
6
6
|
"namespace": "calendar"
|
|
7
7
|
},
|
|
@@ -200,10 +200,10 @@
|
|
|
200
200
|
"build/esm/tools/VenueSelectionTool.vc.js",
|
|
201
201
|
"build/esm/tools/VenueSelectionTool.vc.d.ts",
|
|
202
202
|
|
|
203
|
-
"build/viewControllers/
|
|
204
|
-
"build/viewControllers/
|
|
205
|
-
"build/esm/viewControllers/
|
|
206
|
-
"build/esm/viewControllers/
|
|
203
|
+
"build/viewControllers/VenueList.vc.js",
|
|
204
|
+
"build/viewControllers/VenueList.vc.d.ts",
|
|
205
|
+
"build/esm/viewControllers/VenueList.vc.js",
|
|
206
|
+
"build/esm/viewControllers/VenueList.vc.d.ts"
|
|
207
207
|
|
|
208
208
|
],
|
|
209
209
|
"keywords": [],
|