@sprucelabs/spruce-profile-utils 5.2.87 → 5.2.88
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.
|
@@ -22,7 +22,7 @@ class ProfileCardViewController extends AbstractViewController {
|
|
|
22
22
|
CardVc(header) {
|
|
23
23
|
return this.Controller('card', {
|
|
24
24
|
id: 'profile',
|
|
25
|
-
header: Object.assign({ title: '
|
|
25
|
+
header: Object.assign({ title: 'Profile' }, header),
|
|
26
26
|
body: {
|
|
27
27
|
isBusy: true,
|
|
28
28
|
sections: [{ form: this.formVc.render() }],
|
|
@@ -45,23 +45,23 @@ class ProfileCardViewController extends AbstractViewController {
|
|
|
45
45
|
lastName: (_b = this.person) === null || _b === void 0 ? void 0 : _b.lastName,
|
|
46
46
|
timezone: 'America/Boise',
|
|
47
47
|
},
|
|
48
|
-
submitButtonLabel: 'Save
|
|
48
|
+
submitButtonLabel: 'Save',
|
|
49
49
|
sections: [
|
|
50
50
|
{
|
|
51
|
-
title: 'Personal
|
|
51
|
+
title: 'Personal Info',
|
|
52
52
|
fields: ['firstName', 'lastName'],
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
id: 'location',
|
|
56
|
-
title: 'Location
|
|
56
|
+
title: 'Location Info',
|
|
57
57
|
fields: ['timezone'],
|
|
58
58
|
},
|
|
59
59
|
],
|
|
60
60
|
}));
|
|
61
61
|
}
|
|
62
62
|
handleSubmit() {
|
|
63
|
-
var _a, _b, _c, _d;
|
|
64
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
var _a, _b, _c, _d;
|
|
65
65
|
try {
|
|
66
66
|
const client = yield this.connectToApi();
|
|
67
67
|
const values = this.formVc.getValues();
|
|
@@ -95,8 +95,8 @@ class ProfileCardViewController extends AbstractViewController {
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
load(options) {
|
|
98
|
-
var _a;
|
|
99
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
var _a;
|
|
100
100
|
const { person, authenticator, locale, locationId, organizationId } = assertOptions(options !== null && options !== void 0 ? options : {}, ['person', 'authenticator']);
|
|
101
101
|
this.person = person;
|
|
102
102
|
this.authenticator = authenticator;
|
|
@@ -15,7 +15,7 @@ class ProfileCardViewController extends heartwood_view_controllers_1.AbstractVie
|
|
|
15
15
|
CardVc(header) {
|
|
16
16
|
return this.Controller('card', {
|
|
17
17
|
id: 'profile',
|
|
18
|
-
header: Object.assign({ title: '
|
|
18
|
+
header: Object.assign({ title: 'Profile' }, header),
|
|
19
19
|
body: {
|
|
20
20
|
isBusy: true,
|
|
21
21
|
sections: [{ form: this.formVc.render() }],
|
|
@@ -38,15 +38,15 @@ class ProfileCardViewController extends heartwood_view_controllers_1.AbstractVie
|
|
|
38
38
|
lastName: (_b = this.person) === null || _b === void 0 ? void 0 : _b.lastName,
|
|
39
39
|
timezone: 'America/Boise',
|
|
40
40
|
},
|
|
41
|
-
submitButtonLabel: 'Save
|
|
41
|
+
submitButtonLabel: 'Save',
|
|
42
42
|
sections: [
|
|
43
43
|
{
|
|
44
|
-
title: 'Personal
|
|
44
|
+
title: 'Personal Info',
|
|
45
45
|
fields: ['firstName', 'lastName'],
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
id: 'location',
|
|
49
|
-
title: 'Location
|
|
49
|
+
title: 'Location Info',
|
|
50
50
|
fields: ['timezone'],
|
|
51
51
|
},
|
|
52
52
|
],
|