@formio/js 5.1.0-dev.6044.ceff9aa → 5.1.0-dev.6045.42f9edf
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.form.js +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +2 -2
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/WebformBuilder.js +4 -0
- package/lib/cjs/components/datamap/DataMap.js +1 -1
- package/lib/mjs/WebformBuilder.js +4 -0
- package/lib/mjs/components/datamap/DataMap.js +1 -1
- package/package.json +1 -1
@@ -1623,6 +1623,10 @@ class WebformBuilder extends Component_1.default {
|
|
1623
1623
|
info.type);
|
1624
1624
|
}
|
1625
1625
|
hasEditTabs(type) {
|
1626
|
+
// If the component type does not exist then it has no edit tabs
|
1627
|
+
if (!Components_1.default.components[type]) {
|
1628
|
+
return false;
|
1629
|
+
}
|
1626
1630
|
const editTabs = (0, formUtils_1.getComponent)(Components_1.default.components[type === 'custom' ? 'unknown' : type].editForm().components, 'tabs', true).components;
|
1627
1631
|
const hiddenEditTabs = lodash_1.default.filter(lodash_1.default.get(this.options, `editForm.${type}`, []), 'ignore');
|
1628
1632
|
return lodash_1.default.intersectionBy(editTabs, hiddenEditTabs, 'key').length !== editTabs.length;
|
@@ -76,7 +76,7 @@ class DataMapComponent extends DataGrid_1.default {
|
|
76
76
|
if (!this.key) {
|
77
77
|
return this.emptyValue;
|
78
78
|
}
|
79
|
-
return lodash_1.default.get(this.data, this.key);
|
79
|
+
return lodash_1.default.get(this.data, this.key, this.emptyValue);
|
80
80
|
}
|
81
81
|
set dataValue(value) {
|
82
82
|
super.dataValue = value;
|
@@ -1626,6 +1626,10 @@ export default class WebformBuilder extends Component {
|
|
1626
1626
|
info.type);
|
1627
1627
|
}
|
1628
1628
|
hasEditTabs(type) {
|
1629
|
+
// If the component type does not exist then it has no edit tabs
|
1630
|
+
if (!Components.components[type]) {
|
1631
|
+
return false;
|
1632
|
+
}
|
1629
1633
|
const editTabs = getComponent(Components.components[type === 'custom' ? 'unknown' : type].editForm().components, 'tabs', true).components;
|
1630
1634
|
const hiddenEditTabs = _.filter(_.get(this.options, `editForm.${type}`, []), 'ignore');
|
1631
1635
|
return _.intersectionBy(editTabs, hiddenEditTabs, 'key').length !== editTabs.length;
|
@@ -71,7 +71,7 @@ export default class DataMapComponent extends DataGridComponent {
|
|
71
71
|
if (!this.key) {
|
72
72
|
return this.emptyValue;
|
73
73
|
}
|
74
|
-
return _.get(this.data, this.key);
|
74
|
+
return _.get(this.data, this.key, this.emptyValue);
|
75
75
|
}
|
76
76
|
set dataValue(value) {
|
77
77
|
super.dataValue = value;
|