@formio/js 5.0.0 → 5.0.1-rc.1

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.
@@ -12,7 +12,7 @@
12
12
 
13
13
  /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
14
14
 
15
- /*! formiojs v5.0.0 | https://unpkg.com/formiojs@5.0.0/LICENSE.txt */
15
+ /*! formiojs v5.0.1-rc.1 | https://unpkg.com/formiojs@5.0.1-rc.1/LICENSE.txt */
16
16
 
17
17
  /**
18
18
  * @license
@@ -20,7 +20,7 @@
20
20
 
21
21
  /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
22
22
 
23
- /*! formiojs v5.0.0 | https://unpkg.com/formiojs@5.0.0/LICENSE.txt */
23
+ /*! formiojs v5.0.1-rc.1 | https://unpkg.com/formiojs@5.0.1-rc.1/LICENSE.txt */
24
24
 
25
25
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
26
26
 
@@ -148,6 +148,9 @@ class FormComponent extends Component_1.default {
148
148
  options.events = this.createEmitter();
149
149
  // Make sure to not show the submit button in wizards in the nested forms.
150
150
  lodash_1.default.set(options, 'buttonSettings.showSubmit', false);
151
+ // Set the parent options to the subform so those references are stable when the subform is created
152
+ options.parent = this;
153
+ options.parentVisible = this.visible;
151
154
  if (!this.options) {
152
155
  return options;
153
156
  }
@@ -395,8 +398,6 @@ class FormComponent extends Component_1.default {
395
398
  return (new Form_1.default(form, this.getSubOptions())).ready.then((instance) => {
396
399
  this.subForm = instance;
397
400
  this.subForm.currentForm = this;
398
- this.subForm.parent = this;
399
- this.subForm.parentVisible = this.visible;
400
401
  this.subForm.on('change', () => {
401
402
  if (this.subForm) {
402
403
  this.dataValue = this.subForm.getValue();
@@ -9,4 +9,5 @@ import comp8 from './comp8';
9
9
  import comp9 from './comp9';
10
10
  import comp10 from './comp10';
11
11
  import comp11 from './comp11';
12
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11 };
12
+ import scientificNotation from './scientificNotation';
13
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, scientificNotation };
@@ -26,3 +26,5 @@ const comp10_1 = __importDefault(require("./comp10"));
26
26
  exports.comp10 = comp10_1.default;
27
27
  const comp11_1 = __importDefault(require("./comp11"));
28
28
  exports.comp11 = comp11_1.default;
29
+ const scientificNotation_1 = __importDefault(require("./scientificNotation"));
30
+ exports.scientificNotation = scientificNotation_1.default;
@@ -275,7 +275,6 @@ class SelectBoxesComponent extends Radio_1.default {
275
275
  else {
276
276
  return super.setCustomValidity(messages, dirty, external);
277
277
  }
278
- ;
279
278
  }
280
279
  validateValueAvailability(setting, value) {
281
280
  if (!(0, utils_1.boolValue)(setting) || !value) {
@@ -142,6 +142,9 @@ export default class FormComponent extends Component {
142
142
  options.events = this.createEmitter();
143
143
  // Make sure to not show the submit button in wizards in the nested forms.
144
144
  _.set(options, 'buttonSettings.showSubmit', false);
145
+ // Set the parent options to the subform so those references are stable when the subform is created
146
+ options.parent = this;
147
+ options.parentVisible = this.visible;
145
148
  if (!this.options) {
146
149
  return options;
147
150
  }
@@ -391,8 +394,6 @@ export default class FormComponent extends Component {
391
394
  return (new Form(form, this.getSubOptions())).ready.then((instance) => {
392
395
  this.subForm = instance;
393
396
  this.subForm.currentForm = this;
394
- this.subForm.parent = this;
395
- this.subForm.parentVisible = this.visible;
396
397
  this.subForm.on('change', () => {
397
398
  if (this.subForm) {
398
399
  this.dataValue = this.subForm.getValue();
@@ -9,4 +9,5 @@ import comp8 from './comp8';
9
9
  import comp9 from './comp9';
10
10
  import comp10 from './comp10';
11
11
  import comp11 from './comp11';
12
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11 };
12
+ import scientificNotation from './scientificNotation';
13
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, scientificNotation };
@@ -9,4 +9,5 @@ import comp8 from './comp8';
9
9
  import comp9 from './comp9';
10
10
  import comp10 from './comp10';
11
11
  import comp11 from './comp11';
12
+ import scientificNotation from './scientificNotation';
12
13
  export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, scientificNotation };
@@ -276,7 +276,6 @@ export default class SelectBoxesComponent extends RadioComponent {
276
276
  else {
277
277
  return super.setCustomValidity(messages, dirty, external);
278
278
  }
279
- ;
280
279
  }
281
280
  validateValueAvailability(setting, value) {
282
281
  if (!boolValue(setting) || !value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0",
3
+ "version": "5.0.1-rc.1",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {