form-custom-test 3.0.51 → 3.0.52
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/designer.es.js +18 -6
- package/dist/designer.umd.js +2 -2
- package/dist/render.es.js +18 -6
- package/dist/render.umd.js +63 -63
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -25935,6 +25935,10 @@ var containerItemMixin = {
|
|
|
25935
25935
|
return !this.rowIdData ? 0 : this.rowIdData.length;
|
|
25936
25936
|
},
|
|
25937
25937
|
disableSubFormRow(rowIndex) {
|
|
25938
|
+
if (!Array.isArray(this.rowIdData) || this.rowIdData[rowIndex] == null)
|
|
25939
|
+
return;
|
|
25940
|
+
if (!this.widget || !this.widget.widgetList)
|
|
25941
|
+
return;
|
|
25938
25942
|
this.widget.widgetList.forEach((subWidget) => {
|
|
25939
25943
|
let swRefName = subWidget.options.name + "@row" + this.rowIdData[rowIndex];
|
|
25940
25944
|
let foundSW = this.getWidgetRef(swRefName);
|
|
@@ -25944,6 +25948,10 @@ var containerItemMixin = {
|
|
|
25944
25948
|
});
|
|
25945
25949
|
},
|
|
25946
25950
|
enableSubFormRow(rowIndex) {
|
|
25951
|
+
if (!Array.isArray(this.rowIdData) || this.rowIdData[rowIndex] == null)
|
|
25952
|
+
return;
|
|
25953
|
+
if (!this.widget || !this.widget.widgetList)
|
|
25954
|
+
return;
|
|
25947
25955
|
this.widget.widgetList.forEach((subWidget) => {
|
|
25948
25956
|
let swRefName = subWidget.options.name + "@row" + this.rowIdData[rowIndex];
|
|
25949
25957
|
let foundSW = this.getWidgetRef(swRefName);
|
|
@@ -25953,23 +25961,27 @@ var containerItemMixin = {
|
|
|
25953
25961
|
});
|
|
25954
25962
|
},
|
|
25955
25963
|
disableSubForm() {
|
|
25956
|
-
if (this.rowIdData.length > 0) {
|
|
25964
|
+
if (Array.isArray(this.rowIdData) && this.rowIdData.length > 0) {
|
|
25957
25965
|
this.rowIdData.forEach((dataRow, rIdx) => {
|
|
25958
25966
|
this.disableSubFormRow(rIdx);
|
|
25959
25967
|
});
|
|
25960
25968
|
}
|
|
25961
|
-
this.actionDisabled
|
|
25969
|
+
if (typeof this.actionDisabled !== "undefined") {
|
|
25970
|
+
this.actionDisabled = true;
|
|
25971
|
+
}
|
|
25962
25972
|
if (this.widget && this.widget.options) {
|
|
25963
25973
|
this.widget.options.disabled = true;
|
|
25964
25974
|
}
|
|
25965
25975
|
},
|
|
25966
25976
|
enableSubForm() {
|
|
25967
|
-
if (this.rowIdData.length > 0) {
|
|
25977
|
+
if (Array.isArray(this.rowIdData) && this.rowIdData.length > 0) {
|
|
25968
25978
|
this.rowIdData.forEach((dataRow, rIdx) => {
|
|
25969
25979
|
this.enableSubFormRow(rIdx);
|
|
25970
25980
|
});
|
|
25971
25981
|
}
|
|
25972
|
-
this.actionDisabled
|
|
25982
|
+
if (typeof this.actionDisabled !== "undefined") {
|
|
25983
|
+
this.actionDisabled = false;
|
|
25984
|
+
}
|
|
25973
25985
|
if (this.widget && this.widget.options) {
|
|
25974
25986
|
this.widget.options.disabled = false;
|
|
25975
25987
|
}
|
|
@@ -67896,13 +67908,13 @@ function registerIcon(app) {
|
|
|
67896
67908
|
if (typeof window !== "undefined") {
|
|
67897
67909
|
let loadSvg = function() {
|
|
67898
67910
|
var body = document.body;
|
|
67899
|
-
var svgDom = document.getElementById("
|
|
67911
|
+
var svgDom = document.getElementById("__svg__icons__dom__1772611245574__");
|
|
67900
67912
|
if (!svgDom) {
|
|
67901
67913
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
67902
67914
|
svgDom.style.position = "absolute";
|
|
67903
67915
|
svgDom.style.width = "0";
|
|
67904
67916
|
svgDom.style.height = "0";
|
|
67905
|
-
svgDom.id = "
|
|
67917
|
+
svgDom.id = "__svg__icons__dom__1772611245574__";
|
|
67906
67918
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
67907
67919
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
67908
67920
|
}
|