ninegrid2 6.1218.0 → 6.1220.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.
@@ -16566,7 +16566,6 @@ class ngData
16566
16566
  }
16567
16567
  set source(v) {
16568
16568
  this.clear();
16569
- console.log(v);
16570
16569
  this.add(v, false);
16571
16570
  }
16572
16571
 
@@ -17130,12 +17129,12 @@ class ngData
17130
17129
  * return : 데이타가 추가된 행 위치
17131
17130
  */
17132
17131
  add = (dataSource, updateState) => {
17133
-
17132
+
17134
17133
  if (dataSource == undefined) dataSource = {};
17135
17134
  if (updateState == undefined) updateState = true;
17136
17135
 
17137
17136
  const arr = this.#json2Array(dataSource);
17138
-
17137
+
17139
17138
  this.#parent.rawRecords = this.#parent.rawRecords.concat(this.#defaultInsert(arr));
17140
17139
 
17141
17140
  const arr2 = this.#parent.rawRecords.map(m => { return m.__ng._[ninegrid.ROW.ORIGIN_ORDER]; });
@@ -17152,12 +17151,12 @@ class ngData
17152
17151
  }
17153
17152
 
17154
17153
  this.resetRecords();
17155
-
17154
+
17156
17155
  const row = this.count() - 1;
17157
17156
  if (!updateState) this.changeRowState(ninegrid.ROW_STATE.EMPTY, row - arr.length + 1, row);
17158
17157
  //this.#parent.owner.refresh();
17159
17158
  this.#parent.viewRecords.reset();
17160
-
17159
+
17161
17160
  return row;
17162
17161
  }
17163
17162
 
@@ -117519,12 +117518,16 @@ class ngView
117519
117518
 
117520
117519
  #r = () => {
117521
117520
 
117521
+ console.log("===============================");
117522
+
117522
117523
  var rows = [];
117523
117524
  this.#owner.body.querySelectorAll(".ng-container-body tbody.bindable tr:not(.nodata)").forEach(tr => {
117524
117525
  rows.push(this.#rawIndex + parseInt(tr.sectionRowIndex / this.#owner.template.length));
117525
117526
  });
117526
117527
 
117527
117528
  rows = [...new Set(rows)];
117529
+
117530
+ console.log(rows);
117528
117531
 
117529
117532
  this.#owner.body.querySelectorAll(".ng-container tbody.bindable tr:not(.nodata)").forEach(tr => {
117530
117533
  const index = parseInt(tr.sectionRowIndex / this.#owner.template.length);
@@ -16562,7 +16562,6 @@ class ngData
16562
16562
  }
16563
16563
  set source(v) {
16564
16564
  this.clear();
16565
- console.log(v);
16566
16565
  this.add(v, false);
16567
16566
  }
16568
16567
 
@@ -17126,12 +17125,12 @@ class ngData
17126
17125
  * return : 데이타가 추가된 행 위치
17127
17126
  */
17128
17127
  add = (dataSource, updateState) => {
17129
-
17128
+
17130
17129
  if (dataSource == undefined) dataSource = {};
17131
17130
  if (updateState == undefined) updateState = true;
17132
17131
 
17133
17132
  const arr = this.#json2Array(dataSource);
17134
-
17133
+
17135
17134
  this.#parent.rawRecords = this.#parent.rawRecords.concat(this.#defaultInsert(arr));
17136
17135
 
17137
17136
  const arr2 = this.#parent.rawRecords.map(m => { return m.__ng._[ninegrid.ROW.ORIGIN_ORDER]; });
@@ -17148,12 +17147,12 @@ class ngData
17148
17147
  }
17149
17148
 
17150
17149
  this.resetRecords();
17151
-
17150
+
17152
17151
  const row = this.count() - 1;
17153
17152
  if (!updateState) this.changeRowState(ninegrid.ROW_STATE.EMPTY, row - arr.length + 1, row);
17154
17153
  //this.#parent.owner.refresh();
17155
17154
  this.#parent.viewRecords.reset();
17156
-
17155
+
17157
17156
  return row;
17158
17157
  }
17159
17158
 
@@ -117515,12 +117514,16 @@ class ngView
117515
117514
 
117516
117515
  #r = () => {
117517
117516
 
117517
+ console.log("===============================");
117518
+
117518
117519
  var rows = [];
117519
117520
  this.#owner.body.querySelectorAll(".ng-container-body tbody.bindable tr:not(.nodata)").forEach(tr => {
117520
117521
  rows.push(this.#rawIndex + parseInt(tr.sectionRowIndex / this.#owner.template.length));
117521
117522
  });
117522
117523
 
117523
117524
  rows = [...new Set(rows)];
117525
+
117526
+ console.log(rows);
117524
117527
 
117525
117528
  this.#owner.body.querySelectorAll(".ng-container tbody.bindable tr:not(.nodata)").forEach(tr => {
117526
117529
  const index = parseInt(tr.sectionRowIndex / this.#owner.template.length);
@@ -129,7 +129,6 @@ export class ngData
129
129
  }
130
130
  set source(v) {
131
131
  this.clear();
132
- console.log(v);
133
132
  this.add(v, false);
134
133
  }
135
134
 
@@ -693,12 +692,12 @@ export class ngData
693
692
  * return : 데이타가 추가된 행 위치
694
693
  */
695
694
  add = (dataSource, updateState) => {
696
-
695
+
697
696
  if (dataSource == undefined) dataSource = {};
698
697
  if (updateState == undefined) updateState = true;
699
698
 
700
699
  const arr = this.#json2Array(dataSource);
701
-
700
+
702
701
  this.#parent.rawRecords = this.#parent.rawRecords.concat(this.#defaultInsert(arr));
703
702
 
704
703
  const arr2 = this.#parent.rawRecords.map(m => { return m.__ng._[ninegrid.ROW.ORIGIN_ORDER]; });
@@ -715,12 +714,12 @@ export class ngData
715
714
  }
716
715
 
717
716
  this.resetRecords();
718
-
717
+
719
718
  const row = this.count() - 1;
720
719
  if (!updateState) this.changeRowState(ninegrid.ROW_STATE.EMPTY, row - arr.length + 1, row);
721
720
  //this.#parent.owner.refresh();
722
721
  this.#parent.viewRecords.reset();
723
-
722
+
724
723
  return row;
725
724
  }
726
725
 
@@ -424,12 +424,16 @@ export class ngView
424
424
 
425
425
  #r = () => {
426
426
 
427
+ console.log("===============================");
428
+
427
429
  var rows = [];
428
430
  this.#owner.body.querySelectorAll(".ng-container-body tbody.bindable tr:not(.nodata)").forEach(tr => {
429
431
  rows.push(this.#rawIndex + parseInt(tr.sectionRowIndex / this.#owner.template.length));
430
432
  });
431
433
 
432
434
  rows = [...new Set(rows)];
435
+
436
+ console.log(rows);
433
437
 
434
438
  this.#owner.body.querySelectorAll(".ng-container tbody.bindable tr:not(.nodata)").forEach(tr => {
435
439
  const index = parseInt(tr.sectionRowIndex / this.#owner.template.length);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1218.0",
4
+ "version": "6.1220.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/etc/ngData.js CHANGED
@@ -129,7 +129,6 @@ export class ngData
129
129
  }
130
130
  set source(v) {
131
131
  this.clear();
132
- console.log(v);
133
132
  this.add(v, false);
134
133
  }
135
134
 
@@ -693,12 +692,12 @@ export class ngData
693
692
  * return : 데이타가 추가된 행 위치
694
693
  */
695
694
  add = (dataSource, updateState) => {
696
-
695
+
697
696
  if (dataSource == undefined) dataSource = {};
698
697
  if (updateState == undefined) updateState = true;
699
698
 
700
699
  const arr = this.#json2Array(dataSource);
701
-
700
+
702
701
  this.#parent.rawRecords = this.#parent.rawRecords.concat(this.#defaultInsert(arr));
703
702
 
704
703
  const arr2 = this.#parent.rawRecords.map(m => { return m.__ng._[ninegrid.ROW.ORIGIN_ORDER]; });
@@ -715,12 +714,12 @@ export class ngData
715
714
  }
716
715
 
717
716
  this.resetRecords();
718
-
717
+
719
718
  const row = this.count() - 1;
720
719
  if (!updateState) this.changeRowState(ninegrid.ROW_STATE.EMPTY, row - arr.length + 1, row);
721
720
  //this.#parent.owner.refresh();
722
721
  this.#parent.viewRecords.reset();
723
-
722
+
724
723
  return row;
725
724
  }
726
725
 
package/src/etc/ngView.js CHANGED
@@ -424,12 +424,16 @@ export class ngView
424
424
 
425
425
  #r = () => {
426
426
 
427
+ console.log("===============================");
428
+
427
429
  var rows = [];
428
430
  this.#owner.body.querySelectorAll(".ng-container-body tbody.bindable tr:not(.nodata)").forEach(tr => {
429
431
  rows.push(this.#rawIndex + parseInt(tr.sectionRowIndex / this.#owner.template.length));
430
432
  });
431
433
 
432
434
  rows = [...new Set(rows)];
435
+
436
+ console.log(rows);
433
437
 
434
438
  this.#owner.body.querySelectorAll(".ng-container tbody.bindable tr:not(.nodata)").forEach(tr => {
435
439
  const index = parseInt(tr.sectionRowIndex / this.#owner.template.length);