@formio/js 5.1.0-rc.22 → 5.1.0-rc.24
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 +10 -21
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -3
- package/dist/formio.full.js +10 -21
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -3
- package/dist/formio.js +14 -14
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +2 -13
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -3
- package/lib/cjs/Embed.js +1 -1
- package/lib/cjs/Formio.js +1 -1
- package/lib/cjs/components/_classes/component/Component.d.ts +4 -10
- package/lib/cjs/components/_classes/component/Component.js +27 -55
- package/lib/cjs/components/_classes/nested/NestedComponent.js +3 -4
- package/lib/cjs/components/datamap/DataMap.js +2 -6
- package/lib/cjs/components/form/Form.js +2 -2
- package/lib/cjs/components/html/HTML.js +1 -1
- package/lib/cjs/components/radio/Radio.js +1 -1
- package/lib/mjs/Embed.js +1 -1
- package/lib/mjs/Formio.js +1 -1
- package/lib/mjs/components/_classes/component/Component.d.ts +4 -10
- package/lib/mjs/components/_classes/component/Component.js +27 -55
- package/lib/mjs/components/_classes/nested/NestedComponent.js +3 -4
- package/lib/mjs/components/datamap/DataMap.js +2 -6
- package/lib/mjs/components/form/Form.js +2 -2
- package/lib/mjs/components/html/HTML.js +1 -1
- package/lib/mjs/components/radio/Radio.js +1 -1
- package/package.json +2 -2
@@ -441,7 +441,7 @@ export default class FormComponent extends Component {
|
|
441
441
|
*/
|
442
442
|
loadSubForm(fromAttach, beforeSubmit) {
|
443
443
|
const loadHiddenForm = beforeSubmit && !this.component.clearOnHide;
|
444
|
-
if (this.builderMode || (this.conditionallyHidden && !loadHiddenForm) || (this.isSubFormLazyLoad() && !fromAttach)) {
|
444
|
+
if (this.builderMode || (this.conditionallyHidden() && !loadHiddenForm) || (this.isSubFormLazyLoad() && !fromAttach)) {
|
445
445
|
return Promise.resolve();
|
446
446
|
}
|
447
447
|
if (this.hasLoadedForm && !this.isRevisionChanged &&
|
@@ -513,7 +513,7 @@ export default class FormComponent extends Component {
|
|
513
513
|
* @returns {*|boolean} - TRUE if the subform should be submitted, FALSE if it should not.
|
514
514
|
*/
|
515
515
|
get shouldSubmit() {
|
516
|
-
return this.subFormReady && (!this.component.hasOwnProperty('reference') || this.component.reference) && (!this.conditionallyHidden || !this.component.clearOnHide);
|
516
|
+
return this.subFormReady && (!this.component.hasOwnProperty('reference') || this.component.reference) && (!this.conditionallyHidden() || !this.component.clearOnHide);
|
517
517
|
}
|
518
518
|
/**
|
519
519
|
* Returns the data for the subform.
|
@@ -53,7 +53,7 @@ export default class HTMLComponent extends Component {
|
|
53
53
|
super.checkRefreshOn(changed);
|
54
54
|
let visible;
|
55
55
|
if (this.hasCondition()) {
|
56
|
-
visible = !this.
|
56
|
+
visible = !this.conditionallyHidden();
|
57
57
|
}
|
58
58
|
else {
|
59
59
|
visible = !this.component.hidden;
|
@@ -355,7 +355,7 @@ export default class RadioComponent extends ListComponent {
|
|
355
355
|
const value = this.dataValue;
|
356
356
|
this.refs.wrapper.forEach((wrapper, index) => {
|
357
357
|
const input = this.refs.input[index];
|
358
|
-
const checked = (input.type === 'checkbox') ? value[input.value] || input.checked : (input.value.toString() === value.toString());
|
358
|
+
const checked = (value === undefined || value === null) ? false : (input.type === 'checkbox') ? value[input.value] || input.checked : (input.value.toString() === value.toString());
|
359
359
|
if (checked) {
|
360
360
|
//add class to container when selected
|
361
361
|
this.addClass(wrapper, this.optionSelectedClass);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@formio/js",
|
3
|
-
"version": "5.1.0-rc.
|
3
|
+
"version": "5.1.0-rc.24",
|
4
4
|
"description": "JavaScript powered Forms with JSON Form Builder",
|
5
5
|
"main": "lib/cjs/index.js",
|
6
6
|
"exports": {
|
@@ -79,7 +79,7 @@
|
|
79
79
|
},
|
80
80
|
"homepage": "https://github.com/formio/formio.js#readme",
|
81
81
|
"dependencies": {
|
82
|
-
"@formio/bootstrap": "3.1.0-rc.
|
82
|
+
"@formio/bootstrap": "3.1.0-rc.4",
|
83
83
|
"@formio/choices.js": "^10.2.1",
|
84
84
|
"@formio/core": "2.4.0-rc.12",
|
85
85
|
"@formio/text-mask-addons": "^3.8.0-formio.4",
|