@formio/js 5.1.0-rc.27 → 5.1.0-rc.29

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.
Files changed (38) hide show
  1. package/dist/formio.embed.js +1 -1
  2. package/dist/formio.embed.min.js +1 -1
  3. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  4. package/dist/formio.form.js +5 -5
  5. package/dist/formio.form.min.js +1 -1
  6. package/dist/formio.form.min.js.LICENSE.txt +1 -1
  7. package/dist/formio.full.js +8 -8
  8. package/dist/formio.full.min.js +1 -1
  9. package/dist/formio.full.min.js.LICENSE.txt +1 -1
  10. package/dist/formio.js +2 -2
  11. package/dist/formio.min.js +1 -1
  12. package/dist/formio.min.js.LICENSE.txt +1 -1
  13. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  14. package/lib/cjs/Embed.js +1 -1
  15. package/lib/cjs/Formio.js +1 -1
  16. package/lib/cjs/components/_classes/component/Component.d.ts +13 -2
  17. package/lib/cjs/components/_classes/component/Component.js +69 -19
  18. package/lib/cjs/components/address/editForm/Address.edit.display.d.ts +4 -0
  19. package/lib/cjs/components/address/editForm/Address.edit.display.js +1 -0
  20. package/lib/cjs/components/editgrid/EditGrid.js +3 -1
  21. package/lib/cjs/components/form/Form.js +1 -1
  22. package/lib/cjs/components/select/editForm/Select.edit.data.d.ts +1 -1
  23. package/lib/cjs/components/select/editForm/Select.edit.data.js +1 -0
  24. package/lib/cjs/components/unknown/Unknown.form.d.ts +1 -0
  25. package/lib/cjs/components/unknown/Unknown.form.js +1 -0
  26. package/lib/mjs/Embed.js +1 -1
  27. package/lib/mjs/Formio.js +1 -1
  28. package/lib/mjs/components/_classes/component/Component.d.ts +13 -2
  29. package/lib/mjs/components/_classes/component/Component.js +69 -19
  30. package/lib/mjs/components/address/editForm/Address.edit.display.d.ts +4 -0
  31. package/lib/mjs/components/address/editForm/Address.edit.display.js +1 -0
  32. package/lib/mjs/components/editgrid/EditGrid.js +3 -1
  33. package/lib/mjs/components/form/Form.js +1 -1
  34. package/lib/mjs/components/select/editForm/Select.edit.data.d.ts +1 -1
  35. package/lib/mjs/components/select/editForm/Select.edit.data.js +1 -0
  36. package/lib/mjs/components/unknown/Unknown.form.d.ts +1 -0
  37. package/lib/mjs/components/unknown/Unknown.form.js +1 -0
  38. package/package.json +1 -1
@@ -517,7 +517,7 @@ export default class FormComponent extends Component {
517
517
  * @returns {*|boolean} - TRUE if the subform should be submitted, FALSE if it should not.
518
518
  */
519
519
  get shouldSubmit() {
520
- return this.subFormReady && (!this.component.hasOwnProperty('reference') || this.component.reference) && (!this.conditionallyHidden() || !this.component.clearOnHide);
520
+ return this.subFormReady && (!this.component.hasOwnProperty('reference') || this.component.reference) && !this.shouldConditionallyClear();
521
521
  }
522
522
  /**
523
523
  * Returns the data for the subform.
@@ -172,6 +172,7 @@ declare const _default: ({
172
172
  key: string;
173
173
  tooltip: string;
174
174
  weight: number;
175
+ defaultValue: boolean;
175
176
  conditional: {
176
177
  json: {
177
178
  and: ({
@@ -192,7 +193,6 @@ declare const _default: ({
192
193
  data?: undefined;
193
194
  as?: undefined;
194
195
  editor?: undefined;
195
- defaultValue?: undefined;
196
196
  description?: undefined;
197
197
  reorder?: undefined;
198
198
  components?: undefined;
@@ -113,6 +113,7 @@ export default [
113
113
  key: 'lazyLoad',
114
114
  tooltip: 'When set, this will not fire off the request to the URL until this control is within focus. This can improve performance if you have many Select dropdowns on your form where the API\'s will only fire when the control is activated.',
115
115
  weight: 11,
116
+ defaultValue: true,
116
117
  conditional: {
117
118
  json: {
118
119
  and: [
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Unknown Component schema.
3
+ * @param {...any} extend
3
4
  * @returns {object} - The Unknown Component edit form.
4
5
  */
5
6
  export default function _default(): object;
@@ -1,6 +1,7 @@
1
1
  import UnknownEditDisplay from './editForm/Unknown.edit.display';
2
2
  /**
3
3
  * Unknown Component schema.
4
+ * @param {...any} extend
4
5
  * @returns {object} - The Unknown Component edit form.
5
6
  */
6
7
  export default function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.1.0-rc.27",
3
+ "version": "5.1.0-rc.29",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {