ninegrid2 6.525.0 → 6.528.0

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.
@@ -92,31 +92,22 @@ class aiContainer extends HTMLElement
92
92
  };
93
93
 
94
94
  #getColumnInfo = () => {
95
- let colInfo = "";
96
-
97
- console.log(this.#target.tagName, this.#target.columns);
98
-
99
95
  if (this.#target.tagName === "NINE-GRID") {
100
- this.#target.columns.info().forEach(info => {
101
- colInfo += `- "${info.name}": ${info.desc}, ${info.type}\n`;
102
- });
96
+ return this.#target.columns.info()
103
97
  }
104
-
105
- return colInfo;
106
98
  };
107
99
 
108
100
  #getColumnInfoString = () => {
109
- let colInfo = "";
110
101
 
111
- console.log(this.#target.tagName, this.#target.columns);
102
+ const columnInfo = this.#getColumnInfo() || [];
103
+
104
+ let r = "";
112
105
 
113
- if (this.#target.tagName === "NINE-GRID") {
114
- this.#target.columns.info().forEach(info => {
115
- colInfo += `- "${info.name}": ${info.desc}, ${info.type}\n`;
116
- });
117
- }
106
+ columnInfo.forEach(info => {
107
+ r += `- "${info.name}": ${info.desc}, ${info.type}\n`;
108
+ });
118
109
 
119
- return colInfo;
110
+ return r;
120
111
  };
121
112
 
122
113
  #getUniqueKey = () => {
@@ -54186,31 +54186,22 @@ class aiContainer extends HTMLElement
54186
54186
  };
54187
54187
 
54188
54188
  #getColumnInfo = () => {
54189
- let colInfo = "";
54190
-
54191
- console.log(this.#target.tagName, this.#target.columns);
54192
-
54193
54189
  if (this.#target.tagName === "NINE-GRID") {
54194
- this.#target.columns.info().forEach(info => {
54195
- colInfo += `- "${info.name}": ${info.desc}, ${info.type}\n`;
54196
- });
54190
+ return this.#target.columns.info()
54197
54191
  }
54198
-
54199
- return colInfo;
54200
54192
  };
54201
54193
 
54202
54194
  #getColumnInfoString = () => {
54203
- let colInfo = "";
54204
54195
 
54205
- console.log(this.#target.tagName, this.#target.columns);
54196
+ const columnInfo = this.#getColumnInfo() || [];
54197
+
54198
+ let r = "";
54206
54199
 
54207
- if (this.#target.tagName === "NINE-GRID") {
54208
- this.#target.columns.info().forEach(info => {
54209
- colInfo += `- "${info.name}": ${info.desc}, ${info.type}\n`;
54210
- });
54211
- }
54200
+ columnInfo.forEach(info => {
54201
+ r += `- "${info.name}": ${info.desc}, ${info.type}\n`;
54202
+ });
54212
54203
 
54213
- return colInfo;
54204
+ return r;
54214
54205
  };
54215
54206
 
54216
54207
  #getUniqueKey = () => {
@@ -54184,31 +54184,22 @@ class aiContainer extends HTMLElement
54184
54184
  };
54185
54185
 
54186
54186
  #getColumnInfo = () => {
54187
- let colInfo = "";
54188
-
54189
- console.log(this.#target.tagName, this.#target.columns);
54190
-
54191
54187
  if (this.#target.tagName === "NINE-GRID") {
54192
- this.#target.columns.info().forEach(info => {
54193
- colInfo += `- "${info.name}": ${info.desc}, ${info.type}\n`;
54194
- });
54188
+ return this.#target.columns.info()
54195
54189
  }
54196
-
54197
- return colInfo;
54198
54190
  };
54199
54191
 
54200
54192
  #getColumnInfoString = () => {
54201
- let colInfo = "";
54202
54193
 
54203
- console.log(this.#target.tagName, this.#target.columns);
54194
+ const columnInfo = this.#getColumnInfo() || [];
54195
+
54196
+ let r = "";
54204
54197
 
54205
- if (this.#target.tagName === "NINE-GRID") {
54206
- this.#target.columns.info().forEach(info => {
54207
- colInfo += `- "${info.name}": ${info.desc}, ${info.type}\n`;
54208
- });
54209
- }
54198
+ columnInfo.forEach(info => {
54199
+ r += `- "${info.name}": ${info.desc}, ${info.type}\n`;
54200
+ });
54210
54201
 
54211
- return colInfo;
54202
+ return r;
54212
54203
  };
54213
54204
 
54214
54205
  #getUniqueKey = () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.525.0",
4
+ "version": "6.528.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -92,31 +92,22 @@ class aiContainer extends HTMLElement
92
92
  };
93
93
 
94
94
  #getColumnInfo = () => {
95
- let colInfo = "";
96
-
97
- console.log(this.#target.tagName, this.#target.columns);
98
-
99
95
  if (this.#target.tagName === "NINE-GRID") {
100
- this.#target.columns.info().forEach(info => {
101
- colInfo += `- "${info.name}": ${info.desc}, ${info.type}\n`;
102
- });
96
+ return this.#target.columns.info()
103
97
  }
104
-
105
- return colInfo;
106
98
  };
107
99
 
108
100
  #getColumnInfoString = () => {
109
- let colInfo = "";
110
101
 
111
- console.log(this.#target.tagName, this.#target.columns);
102
+ const columnInfo = this.#getColumnInfo() || [];
103
+
104
+ let r = "";
112
105
 
113
- if (this.#target.tagName === "NINE-GRID") {
114
- this.#target.columns.info().forEach(info => {
115
- colInfo += `- "${info.name}": ${info.desc}, ${info.type}\n`;
116
- });
117
- }
106
+ columnInfo.forEach(info => {
107
+ r += `- "${info.name}": ${info.desc}, ${info.type}\n`;
108
+ });
118
109
 
119
- return colInfo;
110
+ return r;
120
111
  };
121
112
 
122
113
  #getUniqueKey = () => {