ninegrid2 6.1218.0 → 6.1219.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,14 @@ 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
+
17138
+ console.log(arr);
17139
+
17139
17140
  this.#parent.rawRecords = this.#parent.rawRecords.concat(this.#defaultInsert(arr));
17140
17141
 
17141
17142
  const arr2 = this.#parent.rawRecords.map(m => { return m.__ng._[ninegrid.ROW.ORIGIN_ORDER]; });
@@ -17152,12 +17153,16 @@ class ngData
17152
17153
  }
17153
17154
 
17154
17155
  this.resetRecords();
17156
+
17157
+ console.log(this.#parent.rawRecords);
17155
17158
 
17156
17159
  const row = this.count() - 1;
17157
17160
  if (!updateState) this.changeRowState(ninegrid.ROW_STATE.EMPTY, row - arr.length + 1, row);
17158
17161
  //this.#parent.owner.refresh();
17159
17162
  this.#parent.viewRecords.reset();
17160
-
17163
+
17164
+ console.log(row);
17165
+
17161
17166
  return row;
17162
17167
  }
17163
17168
 
@@ -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,14 @@ 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
+
17134
+ console.log(arr);
17135
+
17135
17136
  this.#parent.rawRecords = this.#parent.rawRecords.concat(this.#defaultInsert(arr));
17136
17137
 
17137
17138
  const arr2 = this.#parent.rawRecords.map(m => { return m.__ng._[ninegrid.ROW.ORIGIN_ORDER]; });
@@ -17148,12 +17149,16 @@ class ngData
17148
17149
  }
17149
17150
 
17150
17151
  this.resetRecords();
17152
+
17153
+ console.log(this.#parent.rawRecords);
17151
17154
 
17152
17155
  const row = this.count() - 1;
17153
17156
  if (!updateState) this.changeRowState(ninegrid.ROW_STATE.EMPTY, row - arr.length + 1, row);
17154
17157
  //this.#parent.owner.refresh();
17155
17158
  this.#parent.viewRecords.reset();
17156
-
17159
+
17160
+ console.log(row);
17161
+
17157
17162
  return row;
17158
17163
  }
17159
17164
 
@@ -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,14 @@ 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
+
701
+ console.log(arr);
702
+
702
703
  this.#parent.rawRecords = this.#parent.rawRecords.concat(this.#defaultInsert(arr));
703
704
 
704
705
  const arr2 = this.#parent.rawRecords.map(m => { return m.__ng._[ninegrid.ROW.ORIGIN_ORDER]; });
@@ -715,12 +716,16 @@ export class ngData
715
716
  }
716
717
 
717
718
  this.resetRecords();
719
+
720
+ console.log(this.#parent.rawRecords);
718
721
 
719
722
  const row = this.count() - 1;
720
723
  if (!updateState) this.changeRowState(ninegrid.ROW_STATE.EMPTY, row - arr.length + 1, row);
721
724
  //this.#parent.owner.refresh();
722
725
  this.#parent.viewRecords.reset();
723
-
726
+
727
+ console.log(row);
728
+
724
729
  return row;
725
730
  }
726
731
 
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.1219.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,14 @@ 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
+
701
+ console.log(arr);
702
+
702
703
  this.#parent.rawRecords = this.#parent.rawRecords.concat(this.#defaultInsert(arr));
703
704
 
704
705
  const arr2 = this.#parent.rawRecords.map(m => { return m.__ng._[ninegrid.ROW.ORIGIN_ORDER]; });
@@ -715,12 +716,16 @@ export class ngData
715
716
  }
716
717
 
717
718
  this.resetRecords();
719
+
720
+ console.log(this.#parent.rawRecords);
718
721
 
719
722
  const row = this.count() - 1;
720
723
  if (!updateState) this.changeRowState(ninegrid.ROW_STATE.EMPTY, row - arr.length + 1, row);
721
724
  //this.#parent.owner.refresh();
722
725
  this.#parent.viewRecords.reset();
723
-
726
+
727
+ console.log(row);
728
+
724
729
  return row;
725
730
  }
726
731