@sprucelabs/spruce-form-utils 17.2.161 → 17.2.163
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.
|
@@ -91,8 +91,8 @@ class FormPlayerCardViewController extends AbstractViewController {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
handleClickSaveAndDone() {
|
|
94
|
-
var _a, _b;
|
|
95
94
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
var _a, _b;
|
|
96
96
|
if (this.onSaveAndBeDoneHandler) {
|
|
97
97
|
yield ((_a = this.onSaveAndBeDoneHandler) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
98
98
|
return;
|
|
@@ -134,8 +134,8 @@ class FormPlayerCardViewController extends AbstractViewController {
|
|
|
134
134
|
return slides;
|
|
135
135
|
}
|
|
136
136
|
handleFormChange(formVc) {
|
|
137
|
-
var _a;
|
|
138
137
|
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
var _a;
|
|
139
139
|
const schema = formVc.getSchema();
|
|
140
140
|
for (const [name, field] of Object.entries(schema.fields)) {
|
|
141
141
|
if (field.type === 'image' && formVc.isFieldRendering(name)) {
|
|
@@ -150,8 +150,8 @@ class FormPlayerCardViewController extends AbstractViewController {
|
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
optionallyInvokeChangeHandler() {
|
|
153
|
-
var _a;
|
|
154
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
var _a;
|
|
155
155
|
if (!this.shouldIgnoreChanges) {
|
|
156
156
|
yield ((_a = this.onChangeHandler) === null || _a === void 0 ? void 0 : _a.call(this, { values: this.getValues() }));
|
|
157
157
|
}
|