ninegrid2 6.444.0 → 6.446.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.
@@ -105,7 +105,7 @@ class aiMessage extends HTMLElement
105
105
  <table>
106
106
  <caption>Sheet1</caption>
107
107
  <colgroup>
108
- <col background-color="#888"/>
108
+ <col background-color="#888" fixed="left"/>
109
109
  ${colgroup}
110
110
  </colgroup>
111
111
  <thead>
@@ -21279,7 +21279,10 @@ class ngVScrollBar extends HTMLElement
21279
21279
  this.#owner.getAttribute("display-row-count"),
21280
21280
  ); */
21281
21281
 
21282
- (parseInt($('.ng-container .ng-table tr.nodata', this.#owner.body).height()) > 0 && (this.#owner.dataManager.rawRecords.length == 0 || this.#owner.dataManager.viewRecords.rawIndex == 0)) ? $(this).hide() : $(this).show();
21282
+ const rowCount = Number(this.#owner.getAttribute("display-row-count") || 0);
21283
+ //console.log(rowCount);
21284
+
21285
+ ((rowCount >= this.#owner.dataManager.rawRecords.length) || (parseInt($('.ng-container .ng-table tr.nodata', this.#owner.body).height()) > 0 && (this.#owner.dataManager.rawRecords.length == 0 || this.#owner.dataManager.viewRecords.rawIndex == 0) ) ) ? $(this).hide() : $(this).show();
21283
21286
 
21284
21287
 
21285
21288
 
@@ -27521,7 +27524,7 @@ class aiMessage extends HTMLElement
27521
27524
  <table>
27522
27525
  <caption>Sheet1</caption>
27523
27526
  <colgroup>
27524
- <col background-color="#888"/>
27527
+ <col background-color="#888" fixed="left"/>
27525
27528
  ${colgroup}
27526
27529
  </colgroup>
27527
27530
  <thead>
@@ -21277,7 +21277,10 @@ class ngVScrollBar extends HTMLElement
21277
21277
  this.#owner.getAttribute("display-row-count"),
21278
21278
  ); */
21279
21279
 
21280
- (parseInt($('.ng-container .ng-table tr.nodata', this.#owner.body).height()) > 0 && (this.#owner.dataManager.rawRecords.length == 0 || this.#owner.dataManager.viewRecords.rawIndex == 0)) ? $(this).hide() : $(this).show();
21280
+ const rowCount = Number(this.#owner.getAttribute("display-row-count") || 0);
21281
+ //console.log(rowCount);
21282
+
21283
+ ((rowCount >= this.#owner.dataManager.rawRecords.length) || (parseInt($('.ng-container .ng-table tr.nodata', this.#owner.body).height()) > 0 && (this.#owner.dataManager.rawRecords.length == 0 || this.#owner.dataManager.viewRecords.rawIndex == 0) ) ) ? $(this).hide() : $(this).show();
21281
21284
 
21282
21285
 
21283
21286
 
@@ -27519,7 +27522,7 @@ class aiMessage extends HTMLElement
27519
27522
  <table>
27520
27523
  <caption>Sheet1</caption>
27521
27524
  <colgroup>
27522
- <col background-color="#888"/>
27525
+ <col background-color="#888" fixed="left"/>
27523
27526
  ${colgroup}
27524
27527
  </colgroup>
27525
27528
  <thead>
@@ -70,7 +70,10 @@ class ngVScrollBar extends HTMLElement
70
70
  this.#owner.getAttribute("display-row-count"),
71
71
  ); */
72
72
 
73
- (parseInt($('.ng-container .ng-table tr.nodata', this.#owner.body).height()) > 0 && (this.#owner.dataManager.rawRecords.length == 0 || this.#owner.dataManager.viewRecords.rawIndex == 0)) ? $(this).hide() : $(this).show();
73
+ const rowCount = Number(this.#owner.getAttribute("display-row-count") || 0);
74
+ //console.log(rowCount);
75
+
76
+ ((rowCount >= this.#owner.dataManager.rawRecords.length) || (parseInt($('.ng-container .ng-table tr.nodata', this.#owner.body).height()) > 0 && (this.#owner.dataManager.rawRecords.length == 0 || this.#owner.dataManager.viewRecords.rawIndex == 0) ) ) ? $(this).hide() : $(this).show();
74
77
 
75
78
 
76
79
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.444.0",
4
+ "version": "6.446.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -105,7 +105,7 @@ class aiMessage extends HTMLElement
105
105
  <table>
106
106
  <caption>Sheet1</caption>
107
107
  <colgroup>
108
- <col background-color="#888"/>
108
+ <col background-color="#888" fixed="left"/>
109
109
  ${colgroup}
110
110
  </colgroup>
111
111
  <thead>
@@ -70,7 +70,10 @@ class ngVScrollBar extends HTMLElement
70
70
  this.#owner.getAttribute("display-row-count"),
71
71
  ); */
72
72
 
73
- (parseInt($('.ng-container .ng-table tr.nodata', this.#owner.body).height()) > 0 && (this.#owner.dataManager.rawRecords.length == 0 || this.#owner.dataManager.viewRecords.rawIndex == 0)) ? $(this).hide() : $(this).show();
73
+ const rowCount = Number(this.#owner.getAttribute("display-row-count") || 0);
74
+ //console.log(rowCount);
75
+
76
+ ((rowCount >= this.#owner.dataManager.rawRecords.length) || (parseInt($('.ng-container .ng-table tr.nodata', this.#owner.body).height()) > 0 && (this.#owner.dataManager.rawRecords.length == 0 || this.#owner.dataManager.viewRecords.rawIndex == 0) ) ) ? $(this).hide() : $(this).show();
74
77
 
75
78
 
76
79