@sprucelabs/heartwood-view-controllers 123.0.0 → 123.0.1
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/.spruce/schemas/heartwoodViewControllers/v2021_02_11/bigForm.schema.js +3 -3
- package/build/.spruce/schemas/schemas.types.d.ts +5 -5
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/bigForm.schema.js +3 -3
- package/build/esm/.spruce/schemas/schemas.types.d.ts +5 -5
- package/build/esm/schemas/v2021_02_11/cards/card.builder.d.ts +1 -1
- package/build/esm/schemas/v2021_02_11/cards/cardBody.builder.d.ts +1 -1
- package/build/esm/schemas/v2021_02_11/cards/cardSection.builder.d.ts +1 -1
- package/build/esm/schemas/v2021_02_11/dialog.builder.d.ts +1 -1
- package/build/esm/schemas/v2021_02_11/forms/bigForm.builder.d.ts +1 -1
- package/build/esm/schemas/v2021_02_11/forms/bigForm.builder.js +2 -2
- package/build/esm/schemas/v2021_02_11/toolBelt.builder.d.ts +1 -1
- package/build/esm/types/heartwood.types.d.ts +1 -1
- package/build/esm/viewControllers/BigForm.vc.d.ts +2 -2
- package/build/esm/viewControllers/BigForm.vc.js +2 -2
- package/build/schemas/v2021_02_11/cards/card.builder.d.ts +1 -1
- package/build/schemas/v2021_02_11/cards/cardBody.builder.d.ts +1 -1
- package/build/schemas/v2021_02_11/cards/cardSection.builder.d.ts +1 -1
- package/build/schemas/v2021_02_11/dialog.builder.d.ts +1 -1
- package/build/schemas/v2021_02_11/forms/bigForm.builder.d.ts +1 -1
- package/build/schemas/v2021_02_11/forms/bigForm.builder.js +2 -2
- package/build/schemas/v2021_02_11/toolBelt.builder.d.ts +1 -1
- package/build/types/heartwood.types.d.ts +1 -1
- package/build/viewControllers/BigForm.vc.d.ts +2 -2
- package/build/viewControllers/BigForm.vc.js +2 -2
- package/package.json +1 -1
|
@@ -155,10 +155,10 @@ const bigFormSchema = {
|
|
|
155
155
|
type: 'schema',
|
|
156
156
|
options: { schema: talkingSprucebot_schema_1.default, }
|
|
157
157
|
},
|
|
158
|
-
/** . Where should the
|
|
159
|
-
'
|
|
158
|
+
/** . Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title. */
|
|
159
|
+
'slideTitleRenderPosition': {
|
|
160
160
|
type: 'select',
|
|
161
|
-
hint: 'Where should the
|
|
161
|
+
hint: 'Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title.',
|
|
162
162
|
defaultValue: "topOfSlide",
|
|
163
163
|
options: { choices: [{ "value": "topOfSlide", "label": "Top of slide" }, { "value": "headerAltTitle", "label": "Header alternative title" }], }
|
|
164
164
|
},
|
|
@@ -9000,8 +9000,8 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
9000
9000
|
'sprucebotAvatar'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.SprucebotAvatar | undefined | null;
|
|
9001
9001
|
'shouldRenderFirstFieldsLabel'?: boolean | undefined | null;
|
|
9002
9002
|
'talkingSprucebot'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.TalkingSprucebot | undefined | null;
|
|
9003
|
-
/** . Where should the
|
|
9004
|
-
'
|
|
9003
|
+
/** . Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title. */
|
|
9004
|
+
'slideTitleRenderPosition'?: ("topOfSlide" | "headerAltTitle") | undefined | null;
|
|
9005
9005
|
/** Present slide. The slide showing now! */
|
|
9006
9006
|
'presentSlide'?: number | undefined | null;
|
|
9007
9007
|
/** Submit handler. */
|
|
@@ -9181,10 +9181,10 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
9181
9181
|
schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.TalkingSprucebotSchema;
|
|
9182
9182
|
};
|
|
9183
9183
|
};
|
|
9184
|
-
/** . Where should the
|
|
9185
|
-
'
|
|
9184
|
+
/** . Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title. */
|
|
9185
|
+
'slideTitleRenderPosition': {
|
|
9186
9186
|
type: 'select';
|
|
9187
|
-
hint: 'Where should the
|
|
9187
|
+
hint: 'Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title.';
|
|
9188
9188
|
defaultValue: "topOfSlide";
|
|
9189
9189
|
options: {
|
|
9190
9190
|
choices: [{
|
|
@@ -150,10 +150,10 @@ const bigFormSchema = {
|
|
|
150
150
|
type: 'schema',
|
|
151
151
|
options: { schema: talkingSprucebotSchema_v2021_02_11, }
|
|
152
152
|
},
|
|
153
|
-
/** . Where should the
|
|
154
|
-
'
|
|
153
|
+
/** . Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title. */
|
|
154
|
+
'slideTitleRenderPosition': {
|
|
155
155
|
type: 'select',
|
|
156
|
-
hint: 'Where should the
|
|
156
|
+
hint: 'Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title.',
|
|
157
157
|
defaultValue: "topOfSlide",
|
|
158
158
|
options: { choices: [{ "value": "topOfSlide", "label": "Top of slide" }, { "value": "headerAltTitle", "label": "Header alternative title" }], }
|
|
159
159
|
},
|
|
@@ -9000,8 +9000,8 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
9000
9000
|
'sprucebotAvatar'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.SprucebotAvatar | undefined | null;
|
|
9001
9001
|
'shouldRenderFirstFieldsLabel'?: boolean | undefined | null;
|
|
9002
9002
|
'talkingSprucebot'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.TalkingSprucebot | undefined | null;
|
|
9003
|
-
/** . Where should the
|
|
9004
|
-
'
|
|
9003
|
+
/** . Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title. */
|
|
9004
|
+
'slideTitleRenderPosition'?: ("topOfSlide" | "headerAltTitle") | undefined | null;
|
|
9005
9005
|
/** Present slide. The slide showing now! */
|
|
9006
9006
|
'presentSlide'?: number | undefined | null;
|
|
9007
9007
|
/** Submit handler. */
|
|
@@ -9181,10 +9181,10 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
9181
9181
|
schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.TalkingSprucebotSchema;
|
|
9182
9182
|
};
|
|
9183
9183
|
};
|
|
9184
|
-
/** . Where should the
|
|
9185
|
-
'
|
|
9184
|
+
/** . Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title. */
|
|
9185
|
+
'slideTitleRenderPosition': {
|
|
9186
9186
|
type: 'select';
|
|
9187
|
-
hint: 'Where should the
|
|
9187
|
+
hint: 'Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title.';
|
|
9188
9188
|
defaultValue: "topOfSlide";
|
|
9189
9189
|
options: {
|
|
9190
9190
|
choices: [{
|
|
@@ -21317,7 +21317,7 @@ declare const _default: {
|
|
|
21317
21317
|
isRequired: true;
|
|
21318
21318
|
isArray: true;
|
|
21319
21319
|
};
|
|
21320
|
-
|
|
21320
|
+
slideTitleRenderPosition: {
|
|
21321
21321
|
type: "select";
|
|
21322
21322
|
options: {
|
|
21323
21323
|
choices: {
|
|
@@ -14155,7 +14155,7 @@ declare const _default: {
|
|
|
14155
14155
|
isRequired: true;
|
|
14156
14156
|
isArray: true;
|
|
14157
14157
|
};
|
|
14158
|
-
|
|
14158
|
+
slideTitleRenderPosition: {
|
|
14159
14159
|
type: "select";
|
|
14160
14160
|
options: {
|
|
14161
14161
|
choices: {
|
|
@@ -14105,7 +14105,7 @@ declare const _default: {
|
|
|
14105
14105
|
isRequired: true;
|
|
14106
14106
|
isArray: true;
|
|
14107
14107
|
};
|
|
14108
|
-
|
|
14108
|
+
slideTitleRenderPosition: {
|
|
14109
14109
|
type: "select";
|
|
14110
14110
|
options: {
|
|
14111
14111
|
choices: {
|
|
@@ -21348,7 +21348,7 @@ declare const _default: {
|
|
|
21348
21348
|
isRequired: true;
|
|
21349
21349
|
isArray: true;
|
|
21350
21350
|
};
|
|
21351
|
-
|
|
21351
|
+
slideTitleRenderPosition: {
|
|
21352
21352
|
type: "select";
|
|
21353
21353
|
options: {
|
|
21354
21354
|
choices: {
|
|
@@ -24,7 +24,7 @@ export default buildSchema({
|
|
|
24
24
|
},
|
|
25
25
|
}, sections: Object.assign(Object.assign({}, formBuilder.fields.sections), { options: Object.assign(Object.assign({}, formBuilder.fields.sections.options), { schema: Object.assign(Object.assign({}, formSectionBuilder), { id: 'bigFormSection', fields: Object.assign(Object.assign({}, formSectionBuilder.fields), { shouldRenderSubmitButton: {
|
|
26
26
|
type: 'boolean',
|
|
27
|
-
} }) }) }) }),
|
|
27
|
+
} }) }) }) }), slideTitleRenderPosition: {
|
|
28
28
|
type: 'select',
|
|
29
29
|
options: {
|
|
30
30
|
choices: [
|
|
@@ -35,7 +35,7 @@ export default buildSchema({
|
|
|
35
35
|
},
|
|
36
36
|
],
|
|
37
37
|
},
|
|
38
|
-
hint: 'Where should the
|
|
38
|
+
hint: 'Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title.',
|
|
39
39
|
defaultValue: 'topOfSlide',
|
|
40
40
|
}, controller: {
|
|
41
41
|
type: 'raw',
|
|
@@ -21389,7 +21389,7 @@ declare const _default: {
|
|
|
21389
21389
|
isRequired: true;
|
|
21390
21390
|
isArray: true;
|
|
21391
21391
|
};
|
|
21392
|
-
|
|
21392
|
+
slideTitleRenderPosition: {
|
|
21393
21393
|
type: "select";
|
|
21394
21394
|
options: {
|
|
21395
21395
|
choices: {
|
|
@@ -245,7 +245,7 @@ export interface NavigationSpacer {
|
|
|
245
245
|
isSpacer: true;
|
|
246
246
|
}
|
|
247
247
|
export type BigForm<S extends Schema> = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.BigForm<S>;
|
|
248
|
-
export type
|
|
248
|
+
export type BigFormSlideTitleRenderPosition = NonNullable<BigForm<Schema>['slideTitleRenderPosition']>;
|
|
249
249
|
export type CountdownTimer = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.CountdownTimer;
|
|
250
250
|
export type ProgressNavigator = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ProgressNavigator;
|
|
251
251
|
export type ProgressNavigatorStep = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ProgressNavigatorStep;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Schema } from '@sprucelabs/schema';
|
|
2
|
-
import { BigForm,
|
|
2
|
+
import { BigForm, BigFormSlideTitleRenderPosition } from '../types/heartwood.types';
|
|
3
3
|
import FormViewController, { FormViewControllerOptions } from './form/Form.vc';
|
|
4
4
|
export default class BigFormViewController<S extends Schema, V extends ViewModel<S> = ViewModel<S>> extends FormViewController<S, V> {
|
|
5
|
-
|
|
5
|
+
setSlideTitleRenderPosition(position: BigFormSlideTitleRenderPosition): void;
|
|
6
6
|
isSlideValid(idx: number): boolean;
|
|
7
7
|
setOnSubmit(cb: V['onSubmit']): void;
|
|
8
8
|
setOnSubmitSlide(cb: V['onSubmitSlide']): void;
|
|
@@ -11,8 +11,8 @@ import { areSchemaValuesValid } from '@sprucelabs/schema';
|
|
|
11
11
|
import normalizeFormSectionFieldNamesUtil from '../utilities/normalizeFieldNames.utility.js';
|
|
12
12
|
import FormViewController from './form/Form.vc.js';
|
|
13
13
|
export default class BigFormViewController extends FormViewController {
|
|
14
|
-
|
|
15
|
-
this.model.
|
|
14
|
+
setSlideTitleRenderPosition(position) {
|
|
15
|
+
this.model.slideTitleRenderPosition = position;
|
|
16
16
|
this.triggerRender();
|
|
17
17
|
}
|
|
18
18
|
isSlideValid(idx) {
|
|
@@ -21317,7 +21317,7 @@ declare const _default: {
|
|
|
21317
21317
|
isRequired: true;
|
|
21318
21318
|
isArray: true;
|
|
21319
21319
|
};
|
|
21320
|
-
|
|
21320
|
+
slideTitleRenderPosition: {
|
|
21321
21321
|
type: "select";
|
|
21322
21322
|
options: {
|
|
21323
21323
|
choices: {
|
|
@@ -14155,7 +14155,7 @@ declare const _default: {
|
|
|
14155
14155
|
isRequired: true;
|
|
14156
14156
|
isArray: true;
|
|
14157
14157
|
};
|
|
14158
|
-
|
|
14158
|
+
slideTitleRenderPosition: {
|
|
14159
14159
|
type: "select";
|
|
14160
14160
|
options: {
|
|
14161
14161
|
choices: {
|
|
@@ -14105,7 +14105,7 @@ declare const _default: {
|
|
|
14105
14105
|
isRequired: true;
|
|
14106
14106
|
isArray: true;
|
|
14107
14107
|
};
|
|
14108
|
-
|
|
14108
|
+
slideTitleRenderPosition: {
|
|
14109
14109
|
type: "select";
|
|
14110
14110
|
options: {
|
|
14111
14111
|
choices: {
|
|
@@ -21348,7 +21348,7 @@ declare const _default: {
|
|
|
21348
21348
|
isRequired: true;
|
|
21349
21349
|
isArray: true;
|
|
21350
21350
|
};
|
|
21351
|
-
|
|
21351
|
+
slideTitleRenderPosition: {
|
|
21352
21352
|
type: "select";
|
|
21353
21353
|
options: {
|
|
21354
21354
|
choices: {
|
|
@@ -48,7 +48,7 @@ exports.default = (0, schema_1.buildSchema)({
|
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
|
-
|
|
51
|
+
slideTitleRenderPosition: {
|
|
52
52
|
type: 'select',
|
|
53
53
|
options: {
|
|
54
54
|
choices: [
|
|
@@ -59,7 +59,7 @@ exports.default = (0, schema_1.buildSchema)({
|
|
|
59
59
|
},
|
|
60
60
|
],
|
|
61
61
|
},
|
|
62
|
-
hint: 'Where should the
|
|
62
|
+
hint: 'Where should the slide title render? By default it is at the top of each slide using a Talking Sprucebot. If you set to "Header alternative title", it will render in the header as an alternative title.',
|
|
63
63
|
defaultValue: 'topOfSlide',
|
|
64
64
|
},
|
|
65
65
|
controller: {
|
|
@@ -21389,7 +21389,7 @@ declare const _default: {
|
|
|
21389
21389
|
isRequired: true;
|
|
21390
21390
|
isArray: true;
|
|
21391
21391
|
};
|
|
21392
|
-
|
|
21392
|
+
slideTitleRenderPosition: {
|
|
21393
21393
|
type: "select";
|
|
21394
21394
|
options: {
|
|
21395
21395
|
choices: {
|
|
@@ -245,7 +245,7 @@ export interface NavigationSpacer {
|
|
|
245
245
|
isSpacer: true;
|
|
246
246
|
}
|
|
247
247
|
export type BigForm<S extends Schema> = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.BigForm<S>;
|
|
248
|
-
export type
|
|
248
|
+
export type BigFormSlideTitleRenderPosition = NonNullable<BigForm<Schema>['slideTitleRenderPosition']>;
|
|
249
249
|
export type CountdownTimer = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.CountdownTimer;
|
|
250
250
|
export type ProgressNavigator = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ProgressNavigator;
|
|
251
251
|
export type ProgressNavigatorStep = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ProgressNavigatorStep;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Schema } from '@sprucelabs/schema';
|
|
2
|
-
import { BigForm,
|
|
2
|
+
import { BigForm, BigFormSlideTitleRenderPosition } from '../types/heartwood.types';
|
|
3
3
|
import FormViewController, { FormViewControllerOptions } from './form/Form.vc';
|
|
4
4
|
export default class BigFormViewController<S extends Schema, V extends ViewModel<S> = ViewModel<S>> extends FormViewController<S, V> {
|
|
5
|
-
|
|
5
|
+
setSlideTitleRenderPosition(position: BigFormSlideTitleRenderPosition): void;
|
|
6
6
|
isSlideValid(idx: number): boolean;
|
|
7
7
|
setOnSubmit(cb: V['onSubmit']): void;
|
|
8
8
|
setOnSubmitSlide(cb: V['onSubmitSlide']): void;
|
|
@@ -7,8 +7,8 @@ const schema_1 = require("@sprucelabs/schema");
|
|
|
7
7
|
const normalizeFieldNames_utility_1 = __importDefault(require("../utilities/normalizeFieldNames.utility"));
|
|
8
8
|
const Form_vc_1 = __importDefault(require("./form/Form.vc"));
|
|
9
9
|
class BigFormViewController extends Form_vc_1.default {
|
|
10
|
-
|
|
11
|
-
this.model.
|
|
10
|
+
setSlideTitleRenderPosition(position) {
|
|
11
|
+
this.model.slideTitleRenderPosition = position;
|
|
12
12
|
this.triggerRender();
|
|
13
13
|
}
|
|
14
14
|
isSlideValid(idx) {
|
package/package.json
CHANGED