ninegrid2 6.251.0 → 6.253.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.
- package/dist/bundle.cjs.js +5 -22
- package/dist/bundle.esm.js +5 -22
- package/dist/etc/ngData.js +0 -14
- package/dist/etc/ngFiltering.js +3 -6
- package/dist/etc/ngMaximize.js +2 -2
- package/package.json +1 -1
- package/src/etc/ngData.js +0 -14
- package/src/etc/ngFiltering.js +3 -6
- package/src/etc/ngMaximize.js +2 -2
package/dist/bundle.cjs.js
CHANGED
|
@@ -16036,20 +16036,6 @@ class ngData
|
|
|
16036
16036
|
(this.#parent.rawRecords || []).forEach(v => {
|
|
16037
16037
|
v.__ng.height = this.#defaultHeight.slice();
|
|
16038
16038
|
});
|
|
16039
|
-
|
|
16040
|
-
this.#owner.filtering.clear = () => {
|
|
16041
|
-
this.#parent.rawRecords.map(item => { item.__ng.filtered = false; });
|
|
16042
|
-
this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
|
|
16043
|
-
return this.#records;
|
|
16044
|
-
};
|
|
16045
|
-
|
|
16046
|
-
this.#owner.filtering.refresh = () => {
|
|
16047
|
-
this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
|
|
16048
|
-
//this.#records.forEach((o,i) => { o.__ng.rowidx = i; });
|
|
16049
|
-
//this.getValidData().forEach((o,i) => { o.__ng._[ninegrid.ROW.ORDER] = i + 1; });
|
|
16050
|
-
this.#resetOrder();
|
|
16051
|
-
return this.#records;
|
|
16052
|
-
};
|
|
16053
16039
|
};
|
|
16054
16040
|
|
|
16055
16041
|
|
|
@@ -17862,8 +17848,7 @@ class ngFiltering
|
|
|
17862
17848
|
* 1. grid attr == filter : on();
|
|
17863
17849
|
*/
|
|
17864
17850
|
this.#isFiltering = false;
|
|
17865
|
-
|
|
17866
|
-
this.#owner.filtering.clear();
|
|
17851
|
+
this.#owner.data.clearFilter();
|
|
17867
17852
|
};
|
|
17868
17853
|
|
|
17869
17854
|
isFiltering = () => {
|
|
@@ -17935,8 +17920,7 @@ class ngFiltering
|
|
|
17935
17920
|
? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
|
|
17936
17921
|
: oFilter;
|
|
17937
17922
|
|
|
17938
|
-
|
|
17939
|
-
this.#owner.filtering.clear();
|
|
17923
|
+
this.#owner.data.clearFilter();
|
|
17940
17924
|
|
|
17941
17925
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
17942
17926
|
const idx = this.#owner.fields.indexOf(key);
|
|
@@ -17953,8 +17937,7 @@ class ngFiltering
|
|
|
17953
17937
|
});
|
|
17954
17938
|
|
|
17955
17939
|
|
|
17956
|
-
|
|
17957
|
-
this.#owner.filtering.refresh();
|
|
17940
|
+
this.#owner.data.refreshFilter();
|
|
17958
17941
|
|
|
17959
17942
|
// ✅ 필터 버튼 초기화
|
|
17960
17943
|
this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
|
|
@@ -19533,8 +19516,8 @@ class ngMaxPopup extends HTMLElement
|
|
|
19533
19516
|
this.#grd.data.changeRowState();
|
|
19534
19517
|
});
|
|
19535
19518
|
|
|
19536
|
-
|
|
19537
|
-
|
|
19519
|
+
//$(".close", this.shadowRoot).onFirst("click", e => {
|
|
19520
|
+
this.shadowRoot.addEventListener("click", e => {
|
|
19538
19521
|
if (!this.#grd.data.isChanged()) return;
|
|
19539
19522
|
|
|
19540
19523
|
e.stopImmediatePropagation();
|
package/dist/bundle.esm.js
CHANGED
|
@@ -16034,20 +16034,6 @@ class ngData
|
|
|
16034
16034
|
(this.#parent.rawRecords || []).forEach(v => {
|
|
16035
16035
|
v.__ng.height = this.#defaultHeight.slice();
|
|
16036
16036
|
});
|
|
16037
|
-
|
|
16038
|
-
this.#owner.filtering.clear = () => {
|
|
16039
|
-
this.#parent.rawRecords.map(item => { item.__ng.filtered = false; });
|
|
16040
|
-
this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
|
|
16041
|
-
return this.#records;
|
|
16042
|
-
};
|
|
16043
|
-
|
|
16044
|
-
this.#owner.filtering.refresh = () => {
|
|
16045
|
-
this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
|
|
16046
|
-
//this.#records.forEach((o,i) => { o.__ng.rowidx = i; });
|
|
16047
|
-
//this.getValidData().forEach((o,i) => { o.__ng._[ninegrid.ROW.ORDER] = i + 1; });
|
|
16048
|
-
this.#resetOrder();
|
|
16049
|
-
return this.#records;
|
|
16050
|
-
};
|
|
16051
16037
|
};
|
|
16052
16038
|
|
|
16053
16039
|
|
|
@@ -17860,8 +17846,7 @@ class ngFiltering
|
|
|
17860
17846
|
* 1. grid attr == filter : on();
|
|
17861
17847
|
*/
|
|
17862
17848
|
this.#isFiltering = false;
|
|
17863
|
-
|
|
17864
|
-
this.#owner.filtering.clear();
|
|
17849
|
+
this.#owner.data.clearFilter();
|
|
17865
17850
|
};
|
|
17866
17851
|
|
|
17867
17852
|
isFiltering = () => {
|
|
@@ -17933,8 +17918,7 @@ class ngFiltering
|
|
|
17933
17918
|
? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
|
|
17934
17919
|
: oFilter;
|
|
17935
17920
|
|
|
17936
|
-
|
|
17937
|
-
this.#owner.filtering.clear();
|
|
17921
|
+
this.#owner.data.clearFilter();
|
|
17938
17922
|
|
|
17939
17923
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
17940
17924
|
const idx = this.#owner.fields.indexOf(key);
|
|
@@ -17951,8 +17935,7 @@ class ngFiltering
|
|
|
17951
17935
|
});
|
|
17952
17936
|
|
|
17953
17937
|
|
|
17954
|
-
|
|
17955
|
-
this.#owner.filtering.refresh();
|
|
17938
|
+
this.#owner.data.refreshFilter();
|
|
17956
17939
|
|
|
17957
17940
|
// ✅ 필터 버튼 초기화
|
|
17958
17941
|
this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
|
|
@@ -19531,8 +19514,8 @@ class ngMaxPopup extends HTMLElement
|
|
|
19531
19514
|
this.#grd.data.changeRowState();
|
|
19532
19515
|
});
|
|
19533
19516
|
|
|
19534
|
-
|
|
19535
|
-
|
|
19517
|
+
//$(".close", this.shadowRoot).onFirst("click", e => {
|
|
19518
|
+
this.shadowRoot.addEventListener("click", e => {
|
|
19536
19519
|
if (!this.#grd.data.isChanged()) return;
|
|
19537
19520
|
|
|
19538
19521
|
e.stopImmediatePropagation();
|
package/dist/etc/ngData.js
CHANGED
|
@@ -117,20 +117,6 @@ export class ngData
|
|
|
117
117
|
(this.#parent.rawRecords || []).forEach(v => {
|
|
118
118
|
v.__ng.height = this.#defaultHeight.slice();
|
|
119
119
|
});
|
|
120
|
-
|
|
121
|
-
this.#owner.filtering.clear = () => {
|
|
122
|
-
this.#parent.rawRecords.map(item => { item.__ng.filtered = false; });
|
|
123
|
-
this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
|
|
124
|
-
return this.#records;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
this.#owner.filtering.refresh = () => {
|
|
128
|
-
this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
|
|
129
|
-
//this.#records.forEach((o,i) => { o.__ng.rowidx = i; });
|
|
130
|
-
//this.getValidData().forEach((o,i) => { o.__ng._[ninegrid.ROW.ORDER] = i + 1; });
|
|
131
|
-
this.#resetOrder();
|
|
132
|
-
return this.#records;
|
|
133
|
-
}
|
|
134
120
|
};
|
|
135
121
|
|
|
136
122
|
|
package/dist/etc/ngFiltering.js
CHANGED
|
@@ -26,8 +26,7 @@ export class ngFiltering
|
|
|
26
26
|
* 1. grid attr == filter : on();
|
|
27
27
|
*/
|
|
28
28
|
this.#isFiltering = false;
|
|
29
|
-
|
|
30
|
-
this.#owner.filtering.clear();
|
|
29
|
+
this.#owner.data.clearFilter();
|
|
31
30
|
};
|
|
32
31
|
|
|
33
32
|
isFiltering = () => {
|
|
@@ -99,8 +98,7 @@ export class ngFiltering
|
|
|
99
98
|
? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
|
|
100
99
|
: oFilter;
|
|
101
100
|
|
|
102
|
-
|
|
103
|
-
this.#owner.filtering.clear();
|
|
101
|
+
this.#owner.data.clearFilter();
|
|
104
102
|
|
|
105
103
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
106
104
|
const idx = this.#owner.fields.indexOf(key);
|
|
@@ -117,8 +115,7 @@ export class ngFiltering
|
|
|
117
115
|
});
|
|
118
116
|
|
|
119
117
|
|
|
120
|
-
|
|
121
|
-
this.#owner.filtering.refresh();
|
|
118
|
+
this.#owner.data.refreshFilter();
|
|
122
119
|
|
|
123
120
|
// ✅ 필터 버튼 초기화
|
|
124
121
|
this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
|
package/dist/etc/ngMaximize.js
CHANGED
|
@@ -58,8 +58,8 @@ class ngMaxPopup extends HTMLElement
|
|
|
58
58
|
this.#grd.data.changeRowState();
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
//$(".close", this.shadowRoot).onFirst("click", e => {
|
|
62
|
+
this.shadowRoot.addEventListener("click", e => {
|
|
63
63
|
if (!this.#grd.data.isChanged()) return;
|
|
64
64
|
|
|
65
65
|
e.stopImmediatePropagation();
|
package/package.json
CHANGED
package/src/etc/ngData.js
CHANGED
|
@@ -117,20 +117,6 @@ export class ngData
|
|
|
117
117
|
(this.#parent.rawRecords || []).forEach(v => {
|
|
118
118
|
v.__ng.height = this.#defaultHeight.slice();
|
|
119
119
|
});
|
|
120
|
-
|
|
121
|
-
this.#owner.filtering.clear = () => {
|
|
122
|
-
this.#parent.rawRecords.map(item => { item.__ng.filtered = false; });
|
|
123
|
-
this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
|
|
124
|
-
return this.#records;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
this.#owner.filtering.refresh = () => {
|
|
128
|
-
this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
|
|
129
|
-
//this.#records.forEach((o,i) => { o.__ng.rowidx = i; });
|
|
130
|
-
//this.getValidData().forEach((o,i) => { o.__ng._[ninegrid.ROW.ORDER] = i + 1; });
|
|
131
|
-
this.#resetOrder();
|
|
132
|
-
return this.#records;
|
|
133
|
-
}
|
|
134
120
|
};
|
|
135
121
|
|
|
136
122
|
|
package/src/etc/ngFiltering.js
CHANGED
|
@@ -26,8 +26,7 @@ export class ngFiltering
|
|
|
26
26
|
* 1. grid attr == filter : on();
|
|
27
27
|
*/
|
|
28
28
|
this.#isFiltering = false;
|
|
29
|
-
|
|
30
|
-
this.#owner.filtering.clear();
|
|
29
|
+
this.#owner.data.clearFilter();
|
|
31
30
|
};
|
|
32
31
|
|
|
33
32
|
isFiltering = () => {
|
|
@@ -99,8 +98,7 @@ export class ngFiltering
|
|
|
99
98
|
? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
|
|
100
99
|
: oFilter;
|
|
101
100
|
|
|
102
|
-
|
|
103
|
-
this.#owner.filtering.clear();
|
|
101
|
+
this.#owner.data.clearFilter();
|
|
104
102
|
|
|
105
103
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
106
104
|
const idx = this.#owner.fields.indexOf(key);
|
|
@@ -117,8 +115,7 @@ export class ngFiltering
|
|
|
117
115
|
});
|
|
118
116
|
|
|
119
117
|
|
|
120
|
-
|
|
121
|
-
this.#owner.filtering.refresh();
|
|
118
|
+
this.#owner.data.refreshFilter();
|
|
122
119
|
|
|
123
120
|
// ✅ 필터 버튼 초기화
|
|
124
121
|
this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
|
package/src/etc/ngMaximize.js
CHANGED
|
@@ -58,8 +58,8 @@ class ngMaxPopup extends HTMLElement
|
|
|
58
58
|
this.#grd.data.changeRowState();
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
//$(".close", this.shadowRoot).onFirst("click", e => {
|
|
62
|
+
this.shadowRoot.addEventListener("click", e => {
|
|
63
63
|
if (!this.#grd.data.isChanged()) return;
|
|
64
64
|
|
|
65
65
|
e.stopImmediatePropagation();
|