form-custom-test 3.0.53 → 3.0.54

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.
@@ -10502,8 +10502,27 @@ var fieldMixin = {
10502
10502
  return formRef && typeof formRef.findColByName === "function" ? formRef.findColByName(null, colName) : null;
10503
10503
  },
10504
10504
  setColHidden(colName, hidden) {
10505
- const formRef = this.getFormRef();
10506
- return formRef && typeof formRef.setColHidden === "function" ? formRef.setColHidden(colName, hidden) : false;
10505
+ const hiddenVal = !!hidden;
10506
+ console.log("colName", colName);
10507
+ if (Array.isArray(colName)) {
10508
+ let anySet = false;
10509
+ colName.forEach((cName) => {
10510
+ console.log("cName", cName);
10511
+ const col2 = this.findColByName(cName);
10512
+ console.log("col", col2);
10513
+ if (col2 && col2.options) {
10514
+ col2.options.hidden = hiddenVal;
10515
+ console.log("col.options.hidden", col2.options.hidden);
10516
+ anySet = true;
10517
+ }
10518
+ });
10519
+ return anySet;
10520
+ }
10521
+ const col = this.findColByName(colName);
10522
+ if (!col || !col.options)
10523
+ return false;
10524
+ col.options.hidden = hiddenVal;
10525
+ return true;
10507
10526
  },
10508
10527
  getWidgetRef(widgetName, showError, rowId) {
10509
10528
  let foundRef = null;
@@ -63740,10 +63759,27 @@ function createDesigner(vueInstance) {
63740
63759
  return null;
63741
63760
  },
63742
63761
  setColHidden(colName, hidden) {
63743
- const col = this.findColByName(null, colName);
63762
+ const hiddenVal = !!hidden;
63763
+ console.log("colName", colName);
63764
+ if (Array.isArray(colName)) {
63765
+ let anySet = false;
63766
+ colName.forEach((cName) => {
63767
+ console.log("cName", cName);
63768
+ const col2 = this.findColByName(cName);
63769
+ console.log("col", col2);
63770
+ if (col2 && col2.options) {
63771
+ col2.options.hidden = hiddenVal;
63772
+ anySet = true;
63773
+ }
63774
+ });
63775
+ if (anySet)
63776
+ this.saveCurrentHistoryStep();
63777
+ return anySet;
63778
+ }
63779
+ const col = this.findColByName(colName);
63744
63780
  if (!col || !col.options)
63745
63781
  return false;
63746
- col.options.hidden = !!hidden;
63782
+ col.options.hidden = hiddenVal;
63747
63783
  this.saveCurrentHistoryStep();
63748
63784
  return true;
63749
63785
  },
@@ -67929,13 +67965,13 @@ function registerIcon(app) {
67929
67965
  if (typeof window !== "undefined") {
67930
67966
  let loadSvg = function() {
67931
67967
  var body = document.body;
67932
- var svgDom = document.getElementById("__svg__icons__dom__1772615023766__");
67968
+ var svgDom = document.getElementById("__svg__icons__dom__1772675911510__");
67933
67969
  if (!svgDom) {
67934
67970
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
67935
67971
  svgDom.style.position = "absolute";
67936
67972
  svgDom.style.width = "0";
67937
67973
  svgDom.style.height = "0";
67938
- svgDom.id = "__svg__icons__dom__1772615023766__";
67974
+ svgDom.id = "__svg__icons__dom__1772675911510__";
67939
67975
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
67940
67976
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
67941
67977
  }