@sprucelabs/heartwood-view-controllers 124.2.3 → 124.2.4
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.
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { SchemaError } from '@sprucelabs/schema';
|
|
10
|
+
import { buildSchema, SchemaError } from '@sprucelabs/schema';
|
|
11
11
|
import { functionDelegationUtil } from '@sprucelabs/spruce-skill-utils';
|
|
12
12
|
import buildForm from '../../builders/buildForm.js';
|
|
13
13
|
import normalizeFormSectionFieldNamesUtil from '../../utilities/normalizeFieldNames.utility.js';
|
|
@@ -182,18 +182,19 @@ export default class FormBuilderCardViewController extends AbstractViewControlle
|
|
|
182
182
|
}
|
|
183
183
|
handleClickAddPage() {
|
|
184
184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
185
|
-
const
|
|
186
|
-
id: '
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
type: 'text',
|
|
193
|
-
isRequired: true,
|
|
194
|
-
},
|
|
185
|
+
const schema = buildSchema({
|
|
186
|
+
id: 'addPage',
|
|
187
|
+
fields: {
|
|
188
|
+
title: {
|
|
189
|
+
label: 'Page name',
|
|
190
|
+
type: 'text',
|
|
191
|
+
isRequired: true,
|
|
195
192
|
},
|
|
196
193
|
},
|
|
194
|
+
});
|
|
195
|
+
const addPageForm = this.Controller('form', buildForm({
|
|
196
|
+
id: 'addPageForm',
|
|
197
|
+
schema,
|
|
197
198
|
sections: [
|
|
198
199
|
{
|
|
199
200
|
fields: [
|
|
@@ -170,18 +170,19 @@ class FormBuilderCardViewController extends Abstract_vc_1.default {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
async handleClickAddPage() {
|
|
173
|
-
const
|
|
174
|
-
id: '
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
type: 'text',
|
|
181
|
-
isRequired: true,
|
|
182
|
-
},
|
|
173
|
+
const schema = (0, schema_1.buildSchema)({
|
|
174
|
+
id: 'addPage',
|
|
175
|
+
fields: {
|
|
176
|
+
title: {
|
|
177
|
+
label: 'Page name',
|
|
178
|
+
type: 'text',
|
|
179
|
+
isRequired: true,
|
|
183
180
|
},
|
|
184
181
|
},
|
|
182
|
+
});
|
|
183
|
+
const addPageForm = this.Controller('form', (0, buildForm_1.default)({
|
|
184
|
+
id: 'addPageForm',
|
|
185
|
+
schema,
|
|
185
186
|
sections: [
|
|
186
187
|
{
|
|
187
188
|
fields: [
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"description": "All the power of Heartwood in one, convenient package.",
|
|
16
|
-
"version": "124.2.
|
|
16
|
+
"version": "124.2.4",
|
|
17
17
|
"skill": {
|
|
18
18
|
"namespace": "HeartwoodViewControllers",
|
|
19
19
|
"commandOverrides": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@babel/preset-env": "^7.28.0",
|
|
75
75
|
"@babel/preset-typescript": "^7.27.1",
|
|
76
76
|
"@babel/runtime": "^7.28.2",
|
|
77
|
-
"@sprucelabs/calendar-utils": "^43.0.
|
|
77
|
+
"@sprucelabs/calendar-utils": "^43.0.63",
|
|
78
78
|
"@sprucelabs/error": "^7.0.27",
|
|
79
79
|
"@sprucelabs/globby": "^2.0.506",
|
|
80
80
|
"@sprucelabs/mercury-core-events": "^27.0.57",
|