ninegrid2 6.327.0 → 6.329.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.
@@ -103,7 +103,7 @@ class aiMessage extends HTMLElement
103
103
 
104
104
  setTimeout(() => {
105
105
  const grd = this.shadowRoot.querySelector("nine-grid");
106
- grd.data.source = v;
106
+ grd.data.source = this.data;
107
107
  }, 300);
108
108
  };
109
109
  }
@@ -11043,6 +11043,9 @@ class ninegrid {
11043
11043
  clone.style.visibility = "hidden";
11044
11044
  document.body.appendChild(clone);
11045
11045
 
11046
+ console.log(clone, element);
11047
+ console.log(clone.scrollWidth, element.clientWidth);
11048
+
11046
11049
  const isTruncated = clone.scrollWidth > element.clientWidth;
11047
11050
  document.body.removeChild(clone);
11048
11051
 
@@ -27401,7 +27404,7 @@ class aiMessage extends HTMLElement
27401
27404
 
27402
27405
  setTimeout(() => {
27403
27406
  const grd = this.shadowRoot.querySelector("nine-grid");
27404
- grd.data.source = v;
27407
+ grd.data.source = this.data;
27405
27408
  }, 300);
27406
27409
  };
27407
27410
  }
@@ -11041,6 +11041,9 @@ class ninegrid {
11041
11041
  clone.style.visibility = "hidden";
11042
11042
  document.body.appendChild(clone);
11043
11043
 
11044
+ console.log(clone, element);
11045
+ console.log(clone.scrollWidth, element.clientWidth);
11046
+
11044
11047
  const isTruncated = clone.scrollWidth > element.clientWidth;
11045
11048
  document.body.removeChild(clone);
11046
11049
 
@@ -27399,7 +27402,7 @@ class aiMessage extends HTMLElement
27399
27402
 
27400
27403
  setTimeout(() => {
27401
27404
  const grd = this.shadowRoot.querySelector("nine-grid");
27402
- grd.data.source = v;
27405
+ grd.data.source = this.data;
27403
27406
  }, 300);
27404
27407
  };
27405
27408
  }
@@ -340,6 +340,9 @@ export class ninegrid {
340
340
  clone.style.visibility = "hidden";
341
341
  document.body.appendChild(clone);
342
342
 
343
+ console.log(clone, element);
344
+ console.log(clone.scrollWidth, element.clientWidth);
345
+
343
346
  const isTruncated = clone.scrollWidth > element.clientWidth;
344
347
  document.body.removeChild(clone);
345
348
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.327.0",
4
+ "version": "6.329.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -103,7 +103,7 @@ class aiMessage extends HTMLElement
103
103
 
104
104
  setTimeout(() => {
105
105
  const grd = this.shadowRoot.querySelector("nine-grid");
106
- grd.data.source = v;
106
+ grd.data.source = this.data;
107
107
  }, 300);
108
108
  };
109
109
  }
@@ -340,6 +340,9 @@ export class ninegrid {
340
340
  clone.style.visibility = "hidden";
341
341
  document.body.appendChild(clone);
342
342
 
343
+ console.log(clone, element);
344
+ console.log(clone.scrollWidth, element.clientWidth);
345
+
343
346
  const isTruncated = clone.scrollWidth > element.clientWidth;
344
347
  document.body.removeChild(clone);
345
348