ninegrid2 6.197.0 → 6.198.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 +2 -2
- package/dist/bundle.esm.js +2 -2
- package/dist/etc/ngFiltering.js +2 -2
- package/package.json +1 -1
- package/src/etc/ngFiltering.js +2 -2
package/dist/bundle.cjs.js
CHANGED
|
@@ -18491,7 +18491,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
18491
18491
|
|
|
18492
18492
|
owner.body.querySelectorAll("ng-filter-button").forEach(el => {
|
|
18493
18493
|
//console.log(el);
|
|
18494
|
-
if (el.closest('th,td').dataset.col != col && el.filterOptions
|
|
18494
|
+
if (el.closest('th,td').dataset.col != col && el.filterOptions) {
|
|
18495
18495
|
|
|
18496
18496
|
//console.log("================", el.filterOptions);
|
|
18497
18497
|
|
|
@@ -18500,7 +18500,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
18500
18500
|
|
|
18501
18501
|
//console.log(idx);
|
|
18502
18502
|
|
|
18503
|
-
if (idx >= 0) {
|
|
18503
|
+
if (idx >= 0 && filterOption.data.length > 0) {
|
|
18504
18504
|
data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
|
|
18505
18505
|
}
|
|
18506
18506
|
});
|
package/dist/bundle.esm.js
CHANGED
|
@@ -18489,7 +18489,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
18489
18489
|
|
|
18490
18490
|
owner.body.querySelectorAll("ng-filter-button").forEach(el => {
|
|
18491
18491
|
//console.log(el);
|
|
18492
|
-
if (el.closest('th,td').dataset.col != col && el.filterOptions
|
|
18492
|
+
if (el.closest('th,td').dataset.col != col && el.filterOptions) {
|
|
18493
18493
|
|
|
18494
18494
|
//console.log("================", el.filterOptions);
|
|
18495
18495
|
|
|
@@ -18498,7 +18498,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
18498
18498
|
|
|
18499
18499
|
//console.log(idx);
|
|
18500
18500
|
|
|
18501
|
-
if (idx >= 0) {
|
|
18501
|
+
if (idx >= 0 && filterOption.data.length > 0) {
|
|
18502
18502
|
data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
|
|
18503
18503
|
}
|
|
18504
18504
|
});
|
package/dist/etc/ngFiltering.js
CHANGED
|
@@ -561,7 +561,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
561
561
|
|
|
562
562
|
owner.body.querySelectorAll("ng-filter-button").forEach(el => {
|
|
563
563
|
//console.log(el);
|
|
564
|
-
if (el.closest('th,td').dataset.col != col && el.filterOptions
|
|
564
|
+
if (el.closest('th,td').dataset.col != col && el.filterOptions) {
|
|
565
565
|
|
|
566
566
|
//console.log("================", el.filterOptions);
|
|
567
567
|
|
|
@@ -570,7 +570,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
570
570
|
|
|
571
571
|
//console.log(idx);
|
|
572
572
|
|
|
573
|
-
if (idx >= 0) {
|
|
573
|
+
if (idx >= 0 && filterOption.data.length > 0) {
|
|
574
574
|
data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
|
|
575
575
|
}
|
|
576
576
|
});
|
package/package.json
CHANGED
package/src/etc/ngFiltering.js
CHANGED
|
@@ -561,7 +561,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
561
561
|
|
|
562
562
|
owner.body.querySelectorAll("ng-filter-button").forEach(el => {
|
|
563
563
|
//console.log(el);
|
|
564
|
-
if (el.closest('th,td').dataset.col != col && el.filterOptions
|
|
564
|
+
if (el.closest('th,td').dataset.col != col && el.filterOptions) {
|
|
565
565
|
|
|
566
566
|
//console.log("================", el.filterOptions);
|
|
567
567
|
|
|
@@ -570,7 +570,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
570
570
|
|
|
571
571
|
//console.log(idx);
|
|
572
572
|
|
|
573
|
-
if (idx >= 0) {
|
|
573
|
+
if (idx >= 0 && filterOption.data.length > 0) {
|
|
574
574
|
data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
|
|
575
575
|
}
|
|
576
576
|
});
|