ninegrid2 6.211.0 → 6.213.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 -5
- package/dist/bundle.esm.js +5 -5
- package/dist/etc/ngFiltering.js +5 -5
- package/package.json +1 -1
- package/src/etc/ngFiltering.js +5 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -18014,14 +18014,14 @@ class ngFiltering
|
|
|
18014
18014
|
|
|
18015
18015
|
console.log("==================", jsonFilter);
|
|
18016
18016
|
|
|
18017
|
-
this.clearFilter();
|
|
18017
|
+
this.#owner.data.clearFilter();
|
|
18018
18018
|
|
|
18019
18019
|
for (let key in jsonFilter) {
|
|
18020
18020
|
const arr = jsonFilter[key];
|
|
18021
18021
|
const idx = this.#owner.fields.indexOf(key);
|
|
18022
18022
|
|
|
18023
18023
|
let isNum = false;
|
|
18024
|
-
for (let o of this.getValidData()) {
|
|
18024
|
+
for (let o of this.#owner.data.getValidData()) {
|
|
18025
18025
|
if (o.v[idx] == null) continue;
|
|
18026
18026
|
|
|
18027
18027
|
//console.log(o.v[idx], typeof o.v[idx])
|
|
@@ -18048,7 +18048,7 @@ class ngFiltering
|
|
|
18048
18048
|
|
|
18049
18049
|
//console.log(arr, idx, arr.nineBinarySearch(m.v[idx]));
|
|
18050
18050
|
|
|
18051
|
-
this.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
18051
|
+
this.#owner.data.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
18052
18052
|
|
|
18053
18053
|
|
|
18054
18054
|
//break;
|
|
@@ -18057,7 +18057,7 @@ class ngFiltering
|
|
|
18057
18057
|
}
|
|
18058
18058
|
|
|
18059
18059
|
|
|
18060
|
-
this.refreshFilter();
|
|
18060
|
+
this.#owner.data.refreshFilter();
|
|
18061
18061
|
|
|
18062
18062
|
var colnms = [];
|
|
18063
18063
|
for (let key in jsonFilter) {
|
|
@@ -18364,7 +18364,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
18364
18364
|
//if (!el.filterOptions) return true;
|
|
18365
18365
|
|
|
18366
18366
|
el.filterOptions.forEach(filterOptions => {
|
|
18367
|
-
oParam[filterOptions.colnm] = filterOptions.data;
|
|
18367
|
+
if (filterOptions.data.length > 0) oParam[filterOptions.colnm] = filterOptions.data;
|
|
18368
18368
|
});
|
|
18369
18369
|
});
|
|
18370
18370
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -18012,14 +18012,14 @@ class ngFiltering
|
|
|
18012
18012
|
|
|
18013
18013
|
console.log("==================", jsonFilter);
|
|
18014
18014
|
|
|
18015
|
-
this.clearFilter();
|
|
18015
|
+
this.#owner.data.clearFilter();
|
|
18016
18016
|
|
|
18017
18017
|
for (let key in jsonFilter) {
|
|
18018
18018
|
const arr = jsonFilter[key];
|
|
18019
18019
|
const idx = this.#owner.fields.indexOf(key);
|
|
18020
18020
|
|
|
18021
18021
|
let isNum = false;
|
|
18022
|
-
for (let o of this.getValidData()) {
|
|
18022
|
+
for (let o of this.#owner.data.getValidData()) {
|
|
18023
18023
|
if (o.v[idx] == null) continue;
|
|
18024
18024
|
|
|
18025
18025
|
//console.log(o.v[idx], typeof o.v[idx])
|
|
@@ -18046,7 +18046,7 @@ class ngFiltering
|
|
|
18046
18046
|
|
|
18047
18047
|
//console.log(arr, idx, arr.nineBinarySearch(m.v[idx]));
|
|
18048
18048
|
|
|
18049
|
-
this.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
18049
|
+
this.#owner.data.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
18050
18050
|
|
|
18051
18051
|
|
|
18052
18052
|
//break;
|
|
@@ -18055,7 +18055,7 @@ class ngFiltering
|
|
|
18055
18055
|
}
|
|
18056
18056
|
|
|
18057
18057
|
|
|
18058
|
-
this.refreshFilter();
|
|
18058
|
+
this.#owner.data.refreshFilter();
|
|
18059
18059
|
|
|
18060
18060
|
var colnms = [];
|
|
18061
18061
|
for (let key in jsonFilter) {
|
|
@@ -18362,7 +18362,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
18362
18362
|
//if (!el.filterOptions) return true;
|
|
18363
18363
|
|
|
18364
18364
|
el.filterOptions.forEach(filterOptions => {
|
|
18365
|
-
oParam[filterOptions.colnm] = filterOptions.data;
|
|
18365
|
+
if (filterOptions.data.length > 0) oParam[filterOptions.colnm] = filterOptions.data;
|
|
18366
18366
|
});
|
|
18367
18367
|
});
|
|
18368
18368
|
|
package/dist/etc/ngFiltering.js
CHANGED
|
@@ -82,14 +82,14 @@ export class ngFiltering
|
|
|
82
82
|
|
|
83
83
|
console.log("==================", jsonFilter);
|
|
84
84
|
|
|
85
|
-
this.clearFilter();
|
|
85
|
+
this.#owner.data.clearFilter();
|
|
86
86
|
|
|
87
87
|
for (let key in jsonFilter) {
|
|
88
88
|
const arr = jsonFilter[key];
|
|
89
89
|
const idx = this.#owner.fields.indexOf(key);
|
|
90
90
|
|
|
91
91
|
let isNum = false;
|
|
92
|
-
for (let o of this.getValidData()) {
|
|
92
|
+
for (let o of this.#owner.data.getValidData()) {
|
|
93
93
|
if (o.v[idx] == null) continue;
|
|
94
94
|
|
|
95
95
|
//console.log(o.v[idx], typeof o.v[idx])
|
|
@@ -116,7 +116,7 @@ export class ngFiltering
|
|
|
116
116
|
|
|
117
117
|
//console.log(arr, idx, arr.nineBinarySearch(m.v[idx]));
|
|
118
118
|
|
|
119
|
-
this.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
119
|
+
this.#owner.data.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
//break;
|
|
@@ -125,7 +125,7 @@ export class ngFiltering
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
this.refreshFilter();
|
|
128
|
+
this.#owner.data.refreshFilter();
|
|
129
129
|
|
|
130
130
|
var colnms = [];
|
|
131
131
|
for (let key in jsonFilter) {
|
|
@@ -432,7 +432,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
432
432
|
//if (!el.filterOptions) return true;
|
|
433
433
|
|
|
434
434
|
el.filterOptions.forEach(filterOptions => {
|
|
435
|
-
oParam[filterOptions.colnm] = filterOptions.data;
|
|
435
|
+
if (filterOptions.data.length > 0) oParam[filterOptions.colnm] = filterOptions.data;
|
|
436
436
|
});
|
|
437
437
|
});
|
|
438
438
|
|
package/package.json
CHANGED
package/src/etc/ngFiltering.js
CHANGED
|
@@ -82,14 +82,14 @@ export class ngFiltering
|
|
|
82
82
|
|
|
83
83
|
console.log("==================", jsonFilter);
|
|
84
84
|
|
|
85
|
-
this.clearFilter();
|
|
85
|
+
this.#owner.data.clearFilter();
|
|
86
86
|
|
|
87
87
|
for (let key in jsonFilter) {
|
|
88
88
|
const arr = jsonFilter[key];
|
|
89
89
|
const idx = this.#owner.fields.indexOf(key);
|
|
90
90
|
|
|
91
91
|
let isNum = false;
|
|
92
|
-
for (let o of this.getValidData()) {
|
|
92
|
+
for (let o of this.#owner.data.getValidData()) {
|
|
93
93
|
if (o.v[idx] == null) continue;
|
|
94
94
|
|
|
95
95
|
//console.log(o.v[idx], typeof o.v[idx])
|
|
@@ -116,7 +116,7 @@ export class ngFiltering
|
|
|
116
116
|
|
|
117
117
|
//console.log(arr, idx, arr.nineBinarySearch(m.v[idx]));
|
|
118
118
|
|
|
119
|
-
this.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
119
|
+
this.#owner.data.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
//break;
|
|
@@ -125,7 +125,7 @@ export class ngFiltering
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
this.refreshFilter();
|
|
128
|
+
this.#owner.data.refreshFilter();
|
|
129
129
|
|
|
130
130
|
var colnms = [];
|
|
131
131
|
for (let key in jsonFilter) {
|
|
@@ -432,7 +432,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
432
432
|
//if (!el.filterOptions) return true;
|
|
433
433
|
|
|
434
434
|
el.filterOptions.forEach(filterOptions => {
|
|
435
|
-
oParam[filterOptions.colnm] = filterOptions.data;
|
|
435
|
+
if (filterOptions.data.length > 0) oParam[filterOptions.colnm] = filterOptions.data;
|
|
436
436
|
});
|
|
437
437
|
});
|
|
438
438
|
|