@formio/js 5.1.0-dev.6107.3898f3a → 5.1.0-dev.6108.401a61f

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.
@@ -20,6 +20,8 @@
20
20
 
21
21
  /*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
22
22
 
23
+ /*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
24
+
23
25
  /*! formiojs v5.1.0-dev.2 | https://unpkg.com/formiojs@5.1.0-dev.2/LICENSE.txt */
24
26
 
25
27
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -492,6 +492,10 @@ class DataGridComponent extends NestedArrayComponent_1.default {
492
492
  options.row = `${rowIndex}-${colIndex}`;
493
493
  options.rowIndex = rowIndex;
494
494
  options.onChange = (flags, changed, modified) => {
495
+ if (changed.component.type === 'form') {
496
+ const formComp = (0, utils_1.getComponent)(this.component.components, changed.component.key);
497
+ lodash_1.default.set(formComp, 'components', changed.component.components);
498
+ }
495
499
  this.triggerChange({ modified });
496
500
  };
497
501
  let columnComponent;
@@ -1,6 +1,6 @@
1
1
  import _ from 'lodash';
2
2
  import NestedArrayComponent from '../_classes/nestedarray/NestedArrayComponent';
3
- import { fastCloneDeep, getFocusableElements } from '../../utils/utils';
3
+ import { fastCloneDeep, getFocusableElements, getComponent } from '../../utils/utils';
4
4
  export default class DataGridComponent extends NestedArrayComponent {
5
5
  static schema(...extend) {
6
6
  return NestedArrayComponent.schema({
@@ -488,6 +488,10 @@ export default class DataGridComponent extends NestedArrayComponent {
488
488
  options.row = `${rowIndex}-${colIndex}`;
489
489
  options.rowIndex = rowIndex;
490
490
  options.onChange = (flags, changed, modified) => {
491
+ if (changed.component.type === 'form') {
492
+ const formComp = getComponent(this.component.components, changed.component.key);
493
+ _.set(formComp, 'components', changed.component.components);
494
+ }
491
495
  this.triggerChange({ modified });
492
496
  };
493
497
  let columnComponent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.1.0-dev.6107.3898f3a",
3
+ "version": "5.1.0-dev.6108.401a61f",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -94,7 +94,7 @@
94
94
  "core-js": "^3.37.1",
95
95
  "dialog-polyfill": "^0.5.6",
96
96
  "dom-autoscroller": "^2.3.4",
97
- "dompurify": "^3.1.6",
97
+ "dompurify": "^3.2.5",
98
98
  "downloadjs": "^1.4.7",
99
99
  "dragula": "^3.7.3",
100
100
  "eventemitter3": "^5.0.1",
@@ -130,6 +130,8 @@
130
130
  "escape-string-regexp": "^5.0.0",
131
131
  "eslint": "^8.57.0",
132
132
  "eslint-plugin-jsdoc": "^48.2.5",
133
+ "eslint-plugin-no-unsanitized": "^4.1.2",
134
+ "eslint-plugin-security": "^3.0.1",
133
135
  "fetch-mock": "^9.11.0",
134
136
  "file-loader": "^6.2.0",
135
137
  "flatpickr": "^4.6.13",