@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.
- package/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +4 -4
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +4 -4
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +2 -2
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/components/form/Form.js +3 -2
- package/lib/cjs/components/number/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/number/fixtures/index.js +2 -0
- package/lib/cjs/components/selectboxes/SelectBoxes.js +0 -1
- package/lib/mjs/components/form/Form.js +3 -2
- package/lib/mjs/components/number/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/number/fixtures/index.js +1 -0
- package/lib/mjs/components/selectboxes/SelectBoxes.js +0 -1
- package/package.json +1 -1
@@ -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.
|
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.
|
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
|
-
|
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;
|
@@ -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
|
-
|
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 };
|