@formio/js 5.1.0-dev.6211.5d30602 → 5.1.0-dev.6215.61ce056
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/dist/formio.form.js +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +2 -2
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/WebformBuilder.js +1 -0
- package/lib/cjs/widgets/CalendarWidget.js +0 -12
- package/lib/mjs/WebformBuilder.js +1 -0
- package/lib/mjs/widgets/CalendarWidget.js +0 -12
- package/package.json +1 -1
@@ -1206,6 +1206,7 @@ class WebformBuilder extends Component_1.default {
|
|
1206
1206
|
submissionData = submissionData.componentJson || submissionData;
|
1207
1207
|
if (submissionData.components && this.originalDefaultValue) {
|
1208
1208
|
submissionData.components = this.originalDefaultValue.components;
|
1209
|
+
this.originalDefaultValue = null;
|
1209
1210
|
}
|
1210
1211
|
const fieldsToRemoveDoubleQuotes = ['label', 'tooltip'];
|
1211
1212
|
this.replaceDoubleQuotes(submissionData, fieldsToRemoveDoubleQuotes);
|
@@ -246,9 +246,6 @@ class CalendarWidget extends InputWidget_1.default {
|
|
246
246
|
if (!this.calendar) {
|
247
247
|
return super.getValue();
|
248
248
|
}
|
249
|
-
if (this.settings.isManuallyOverriddenValue) {
|
250
|
-
return this.settings.manualInputValue;
|
251
|
-
}
|
252
249
|
// Get the selected dates from the calendar widget.
|
253
250
|
const dates = this.calendar.selectedDates;
|
254
251
|
if (!dates || !dates.length) {
|
@@ -356,15 +353,6 @@ class CalendarWidget extends InputWidget_1.default {
|
|
356
353
|
this.calendar.updateValue(false);
|
357
354
|
});
|
358
355
|
}
|
359
|
-
// Move input attributes to altInput.
|
360
|
-
const labelledbyIds = this.calendar.input.getAttribute('aria-labelledby');
|
361
|
-
const isRequired = this.calendar.input.getAttribute('aria-required');
|
362
|
-
this.calendar.altInput.id = this._input.id;
|
363
|
-
this.calendar.altInput.setAttribute('aria-labelledby', labelledbyIds);
|
364
|
-
this.calendar.altInput.setAttribute('aria-required', isRequired);
|
365
|
-
this._input.removeAttribute('id');
|
366
|
-
this._input.removeAttribute('aria-labelledby');
|
367
|
-
this._input.removeAttribute('aria-required');
|
368
356
|
const excludedFromMaskFormats = ['MMMM'];
|
369
357
|
if (!this.settings.readOnly && !lodash_1.default.some(excludedFromMaskFormats, format => lodash_1.default.includes(this.settings.format, format))) {
|
370
358
|
// Enforce the input mask of the format.
|
@@ -1188,6 +1188,7 @@ export default class WebformBuilder extends Component {
|
|
1188
1188
|
submissionData = submissionData.componentJson || submissionData;
|
1189
1189
|
if (submissionData.components && this.originalDefaultValue) {
|
1190
1190
|
submissionData.components = this.originalDefaultValue.components;
|
1191
|
+
this.originalDefaultValue = null;
|
1191
1192
|
}
|
1192
1193
|
const fieldsToRemoveDoubleQuotes = ['label', 'tooltip'];
|
1193
1194
|
this.replaceDoubleQuotes(submissionData, fieldsToRemoveDoubleQuotes);
|
@@ -238,9 +238,6 @@ export default class CalendarWidget extends InputWidget {
|
|
238
238
|
if (!this.calendar) {
|
239
239
|
return super.getValue();
|
240
240
|
}
|
241
|
-
if (this.settings.isManuallyOverriddenValue) {
|
242
|
-
return this.settings.manualInputValue;
|
243
|
-
}
|
244
241
|
// Get the selected dates from the calendar widget.
|
245
242
|
const dates = this.calendar.selectedDates;
|
246
243
|
if (!dates || !dates.length) {
|
@@ -347,15 +344,6 @@ export default class CalendarWidget extends InputWidget {
|
|
347
344
|
this.calendar.updateValue(false);
|
348
345
|
});
|
349
346
|
}
|
350
|
-
// Move input attributes to altInput.
|
351
|
-
const labelledbyIds = this.calendar.input.getAttribute('aria-labelledby');
|
352
|
-
const isRequired = this.calendar.input.getAttribute('aria-required');
|
353
|
-
this.calendar.altInput.id = this._input.id;
|
354
|
-
this.calendar.altInput.setAttribute('aria-labelledby', labelledbyIds);
|
355
|
-
this.calendar.altInput.setAttribute('aria-required', isRequired);
|
356
|
-
this._input.removeAttribute('id');
|
357
|
-
this._input.removeAttribute('aria-labelledby');
|
358
|
-
this._input.removeAttribute('aria-required');
|
359
347
|
const excludedFromMaskFormats = ['MMMM'];
|
360
348
|
if (!this.settings.readOnly && !_.some(excludedFromMaskFormats, format => _.includes(this.settings.format, format))) {
|
361
349
|
// Enforce the input mask of the format.
|