ninegrid2 6.428.0 → 6.430.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.
@@ -14866,11 +14866,15 @@ class ngColumns
14866
14866
  }
14867
14867
 
14868
14868
  #element2Info = (el) => {
14869
- return el ? {
14869
+ if (!el) return null;
14870
+
14871
+ const ths = this.#owner.body.querySelectorAll(`thead [data-col="${el.dataset.col}"]`);
14872
+
14873
+ return {
14870
14874
  "name": el.dataset.bind,
14871
14875
  "type": (el.dataset.type || "string").toLocaleLowerCase(),
14872
- "desc": el.getAttribute("title"),
14873
- } : null;
14876
+ "desc": ths.length > 0 ? ths[this.length - 1].getAttribute("title") : null,
14877
+ };
14874
14878
  };
14875
14879
 
14876
14880
  info = (v) => {
@@ -14864,11 +14864,15 @@ class ngColumns
14864
14864
  }
14865
14865
 
14866
14866
  #element2Info = (el) => {
14867
- return el ? {
14867
+ if (!el) return null;
14868
+
14869
+ const ths = this.#owner.body.querySelectorAll(`thead [data-col="${el.dataset.col}"]`);
14870
+
14871
+ return {
14868
14872
  "name": el.dataset.bind,
14869
14873
  "type": (el.dataset.type || "string").toLocaleLowerCase(),
14870
- "desc": el.getAttribute("title"),
14871
- } : null;
14874
+ "desc": ths.length > 0 ? ths[this.length - 1].getAttribute("title") : null,
14875
+ };
14872
14876
  };
14873
14877
 
14874
14878
  info = (v) => {
@@ -13,11 +13,15 @@ export class ngColumns
13
13
  }
14
14
 
15
15
  #element2Info = (el) => {
16
- return el ? {
16
+ if (!el) return null;
17
+
18
+ const ths = this.#owner.body.querySelectorAll(`thead [data-col="${el.dataset.col}"]`);
19
+
20
+ return {
17
21
  "name": el.dataset.bind,
18
22
  "type": (el.dataset.type || "string").toLocaleLowerCase(),
19
- "desc": el.getAttribute("title"),
20
- } : null;
23
+ "desc": ths.length > 0 ? ths[this.length - 1].getAttribute("title") : null,
24
+ };
21
25
  };
22
26
 
23
27
  info = (v) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.428.0",
4
+ "version": "6.430.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -13,11 +13,15 @@ export class ngColumns
13
13
  }
14
14
 
15
15
  #element2Info = (el) => {
16
- return el ? {
16
+ if (!el) return null;
17
+
18
+ const ths = this.#owner.body.querySelectorAll(`thead [data-col="${el.dataset.col}"]`);
19
+
20
+ return {
17
21
  "name": el.dataset.bind,
18
22
  "type": (el.dataset.type || "string").toLocaleLowerCase(),
19
- "desc": el.getAttribute("title"),
20
- } : null;
23
+ "desc": ths.length > 0 ? ths[this.length - 1].getAttribute("title") : null,
24
+ };
21
25
  };
22
26
 
23
27
  info = (v) => {