@formio/js 5.1.0-rc.24 → 5.1.0-rc.26

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 (62) 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 +12 -12
  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 +16 -16
  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.js +1 -1
  14. package/dist/formio.utils.min.js +1 -1
  15. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  16. package/lib/cjs/Embed.js +1 -1
  17. package/lib/cjs/Formio.js +1 -1
  18. package/lib/cjs/WebformBuilder.js +4 -0
  19. package/lib/cjs/Wizard.d.ts +1 -0
  20. package/lib/cjs/Wizard.js +23 -3
  21. package/lib/cjs/components/_classes/component/Component.d.ts +11 -1
  22. package/lib/cjs/components/_classes/component/Component.js +37 -11
  23. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +0 -1
  24. package/lib/cjs/components/_classes/nested/NestedComponent.js +8 -12
  25. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +0 -2
  26. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +0 -11
  27. package/lib/cjs/components/address/Address.d.ts +9 -0
  28. package/lib/cjs/components/address/Address.js +18 -8
  29. package/lib/cjs/components/address/editForm/Address.edit.provider.js +8 -8
  30. package/lib/cjs/components/datagrid/DataGrid.js +0 -3
  31. package/lib/cjs/components/editgrid/EditGrid.js +0 -8
  32. package/lib/cjs/components/file/editForm/File.edit.file.d.ts +13 -0
  33. package/lib/cjs/components/file/editForm/File.edit.file.js +1 -0
  34. package/lib/cjs/components/form/Form.js +4 -0
  35. package/lib/cjs/components/select/editForm/Select.edit.data.js +1 -1
  36. package/lib/cjs/components/selectboxes/SelectBoxes.js +3 -0
  37. package/lib/cjs/utils/utils.d.ts +0 -8
  38. package/lib/cjs/utils/utils.js +1 -22
  39. package/lib/mjs/Embed.js +1 -1
  40. package/lib/mjs/Formio.js +1 -1
  41. package/lib/mjs/WebformBuilder.js +4 -0
  42. package/lib/mjs/Wizard.d.ts +1 -0
  43. package/lib/mjs/Wizard.js +22 -2
  44. package/lib/mjs/components/_classes/component/Component.d.ts +11 -1
  45. package/lib/mjs/components/_classes/component/Component.js +38 -12
  46. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +0 -1
  47. package/lib/mjs/components/_classes/nested/NestedComponent.js +8 -12
  48. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +0 -2
  49. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +0 -11
  50. package/lib/mjs/components/address/Address.d.ts +9 -0
  51. package/lib/mjs/components/address/Address.js +18 -8
  52. package/lib/mjs/components/address/editForm/Address.edit.provider.js +8 -8
  53. package/lib/mjs/components/datagrid/DataGrid.js +0 -3
  54. package/lib/mjs/components/editgrid/EditGrid.js +0 -7
  55. package/lib/mjs/components/file/editForm/File.edit.file.d.ts +13 -0
  56. package/lib/mjs/components/file/editForm/File.edit.file.js +1 -0
  57. package/lib/mjs/components/form/Form.js +4 -0
  58. package/lib/mjs/components/select/editForm/Select.edit.data.js +1 -1
  59. package/lib/mjs/components/selectboxes/SelectBoxes.js +3 -0
  60. package/lib/mjs/utils/utils.d.ts +0 -8
  61. package/lib/mjs/utils/utils.js +0 -20
  62. package/package.json +2 -2
@@ -202,7 +202,7 @@ export default [
202
202
  label: 'Value Property',
203
203
  key: 'valueProperty',
204
204
  skipMerge: true,
205
- clearOnHide: true,
205
+ clearOnHide: false,
206
206
  tooltip: 'The field to use as the value.',
207
207
  weight: 11,
208
208
  refreshOn: 'data.resource',
@@ -66,6 +66,9 @@ export default class SelectBoxesComponent extends RadioComponent {
66
66
  info.attr.class = 'form-check-input';
67
67
  return info;
68
68
  }
69
+ get hasDefaultValue() {
70
+ return true;
71
+ }
69
72
  get emptyValue() {
70
73
  return this.component.values.reduce((prev, value) => {
71
74
  if (value.value) {
@@ -478,14 +478,6 @@ export function getDataParentComponent(componentInstance: Component): Component
478
478
  * @returns {boolean} - TRUE if the value is a promise; FALSE otherwise
479
479
  */
480
480
  export function isPromise(value: any): boolean;
481
- /**
482
- * Determines if the component has a scoping parent in tree (a component which scopes its children and manages its
483
- * changes by itself, e.g. EditGrid)
484
- * @param {Component} componentInstance - The component to check for the scoping parent.
485
- * @param {boolean} firstPass - Whether it is the first pass of the function
486
- * @returns {boolean|*} - TRUE if the component has a scoping parent; FALSE otherwise
487
- */
488
- export function isInsideScopingComponent(componentInstance: Component, firstPass?: boolean): boolean | any;
489
481
  /**
490
482
  * Returns all the focusable elements within the provided dom element.
491
483
  * @param {HTMLElement} element - The element to get the focusable elements from.
@@ -1502,26 +1502,6 @@ export function isPromise(value) {
1502
1502
  && typeof value.then === 'function'
1503
1503
  && Object.prototype.toString.call(value) === '[object Promise]';
1504
1504
  }
1505
- /**
1506
- * Determines if the component has a scoping parent in tree (a component which scopes its children and manages its
1507
- * changes by itself, e.g. EditGrid)
1508
- * @param {Component} componentInstance - The component to check for the scoping parent.
1509
- * @param {boolean} firstPass - Whether it is the first pass of the function
1510
- * @returns {boolean|*} - TRUE if the component has a scoping parent; FALSE otherwise
1511
- */
1512
- export function isInsideScopingComponent(componentInstance, firstPass = true) {
1513
- if (!firstPass && componentInstance?.hasScopedChildren) {
1514
- return true;
1515
- }
1516
- const dataParent = getDataParentComponent(componentInstance);
1517
- if (dataParent?.hasScopedChildren) {
1518
- return true;
1519
- }
1520
- else if (dataParent?.parent) {
1521
- return isInsideScopingComponent(dataParent.parent, false);
1522
- }
1523
- return false;
1524
- }
1525
1505
  /**
1526
1506
  * Returns all the focusable elements within the provided dom element.
1527
1507
  * @param {HTMLElement} element - The element to get the focusable elements from.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.1.0-rc.24",
3
+ "version": "5.1.0-rc.26",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -93,7 +93,7 @@
93
93
  "core-js": "^3.37.1",
94
94
  "dialog-polyfill": "^0.5.6",
95
95
  "dom-autoscroller": "^2.3.4",
96
- "dompurify": "^3.1.3",
96
+ "dompurify": "^3.2.4",
97
97
  "downloadjs": "^1.4.7",
98
98
  "dragula": "^3.7.3",
99
99
  "eventemitter3": "^5.0.1",