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/render.es.js CHANGED
@@ -24297,6 +24297,10 @@ var containerItemMixin = {
24297
24297
  return !this.rowIdData ? 0 : this.rowIdData.length;
24298
24298
  },
24299
24299
  disableSubFormRow(rowIndex) {
24300
+ if (!Array.isArray(this.rowIdData) || this.rowIdData[rowIndex] == null)
24301
+ return;
24302
+ if (!this.widget || !this.widget.widgetList)
24303
+ return;
24300
24304
  this.widget.widgetList.forEach((subWidget) => {
24301
24305
  let swRefName = subWidget.options.name + "@row" + this.rowIdData[rowIndex];
24302
24306
  let foundSW = this.getWidgetRef(swRefName);
@@ -24306,6 +24310,10 @@ var containerItemMixin = {
24306
24310
  });
24307
24311
  },
24308
24312
  enableSubFormRow(rowIndex) {
24313
+ if (!Array.isArray(this.rowIdData) || this.rowIdData[rowIndex] == null)
24314
+ return;
24315
+ if (!this.widget || !this.widget.widgetList)
24316
+ return;
24309
24317
  this.widget.widgetList.forEach((subWidget) => {
24310
24318
  let swRefName = subWidget.options.name + "@row" + this.rowIdData[rowIndex];
24311
24319
  let foundSW = this.getWidgetRef(swRefName);
@@ -24315,23 +24323,27 @@ var containerItemMixin = {
24315
24323
  });
24316
24324
  },
24317
24325
  disableSubForm() {
24318
- if (this.rowIdData.length > 0) {
24326
+ if (Array.isArray(this.rowIdData) && this.rowIdData.length > 0) {
24319
24327
  this.rowIdData.forEach((dataRow, rIdx) => {
24320
24328
  this.disableSubFormRow(rIdx);
24321
24329
  });
24322
24330
  }
24323
- this.actionDisabled = true;
24331
+ if (typeof this.actionDisabled !== "undefined") {
24332
+ this.actionDisabled = true;
24333
+ }
24324
24334
  if (this.widget && this.widget.options) {
24325
24335
  this.widget.options.disabled = true;
24326
24336
  }
24327
24337
  },
24328
24338
  enableSubForm() {
24329
- if (this.rowIdData.length > 0) {
24339
+ if (Array.isArray(this.rowIdData) && this.rowIdData.length > 0) {
24330
24340
  this.rowIdData.forEach((dataRow, rIdx) => {
24331
24341
  this.enableSubFormRow(rIdx);
24332
24342
  });
24333
24343
  }
24334
- this.actionDisabled = false;
24344
+ if (typeof this.actionDisabled !== "undefined") {
24345
+ this.actionDisabled = false;
24346
+ }
24335
24347
  if (this.widget && this.widget.options) {
24336
24348
  this.widget.options.disabled = false;
24337
24349
  }
@@ -25815,13 +25827,13 @@ function registerIcon(app) {
25815
25827
  if (typeof window !== "undefined") {
25816
25828
  let loadSvg = function() {
25817
25829
  var body = document.body;
25818
- var svgDom = document.getElementById("__svg__icons__dom__1772610054304__");
25830
+ var svgDom = document.getElementById("__svg__icons__dom__1772611254603__");
25819
25831
  if (!svgDom) {
25820
25832
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
25821
25833
  svgDom.style.position = "absolute";
25822
25834
  svgDom.style.width = "0";
25823
25835
  svgDom.style.height = "0";
25824
- svgDom.id = "__svg__icons__dom__1772610054304__";
25836
+ svgDom.id = "__svg__icons__dom__1772611254603__";
25825
25837
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
25826
25838
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
25827
25839
  }