ninegrid2 6.236.0 → 6.237.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 +12 -5
- package/dist/bundle.esm.js +12 -5
- package/dist/etc/ngFiltering.js +12 -5
- package/package.json +1 -1
- package/src/etc/ngFiltering.js +12 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -17928,16 +17928,23 @@ class ngFiltering
|
|
|
17928
17928
|
el.filterOptions.forEach(opt => { opt.data = []; });
|
|
17929
17929
|
});
|
|
17930
17930
|
|
|
17931
|
-
|
|
17932
|
-
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
17931
|
+
for (let key in jsonFilter) {
|
|
17933
17932
|
this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
|
|
17934
|
-
el.filterOptions
|
|
17935
|
-
|
|
17933
|
+
let options = el.filterOptions;
|
|
17934
|
+
|
|
17935
|
+
options.forEach(opt => {
|
|
17936
|
+
if (opt.colnm === key) {
|
|
17937
|
+
opt.data = jsonFilter[key];
|
|
17938
|
+
}
|
|
17936
17939
|
});
|
|
17940
|
+
|
|
17941
|
+
el.filterOptions = options;
|
|
17937
17942
|
});
|
|
17938
|
-
}
|
|
17943
|
+
}
|
|
17944
|
+
|
|
17939
17945
|
|
|
17940
17946
|
this.#owner.scrollTo_V1(0);
|
|
17947
|
+
|
|
17941
17948
|
this.#owner.paging.reset();
|
|
17942
17949
|
};
|
|
17943
17950
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -17926,16 +17926,23 @@ class ngFiltering
|
|
|
17926
17926
|
el.filterOptions.forEach(opt => { opt.data = []; });
|
|
17927
17927
|
});
|
|
17928
17928
|
|
|
17929
|
-
|
|
17930
|
-
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
17929
|
+
for (let key in jsonFilter) {
|
|
17931
17930
|
this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
|
|
17932
|
-
el.filterOptions
|
|
17933
|
-
|
|
17931
|
+
let options = el.filterOptions;
|
|
17932
|
+
|
|
17933
|
+
options.forEach(opt => {
|
|
17934
|
+
if (opt.colnm === key) {
|
|
17935
|
+
opt.data = jsonFilter[key];
|
|
17936
|
+
}
|
|
17934
17937
|
});
|
|
17938
|
+
|
|
17939
|
+
el.filterOptions = options;
|
|
17935
17940
|
});
|
|
17936
|
-
}
|
|
17941
|
+
}
|
|
17942
|
+
|
|
17937
17943
|
|
|
17938
17944
|
this.#owner.scrollTo_V1(0);
|
|
17945
|
+
|
|
17939
17946
|
this.#owner.paging.reset();
|
|
17940
17947
|
};
|
|
17941
17948
|
|
package/dist/etc/ngFiltering.js
CHANGED
|
@@ -105,16 +105,23 @@ export class ngFiltering
|
|
|
105
105
|
el.filterOptions.forEach(opt => { opt.data = []; });
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
|
|
109
|
-
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
108
|
+
for (let key in jsonFilter) {
|
|
110
109
|
this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
|
|
111
|
-
el.filterOptions
|
|
112
|
-
|
|
110
|
+
let options = el.filterOptions;
|
|
111
|
+
|
|
112
|
+
options.forEach(opt => {
|
|
113
|
+
if (opt.colnm === key) {
|
|
114
|
+
opt.data = jsonFilter[key];
|
|
115
|
+
}
|
|
113
116
|
});
|
|
117
|
+
|
|
118
|
+
el.filterOptions = options;
|
|
114
119
|
});
|
|
115
|
-
}
|
|
120
|
+
}
|
|
121
|
+
|
|
116
122
|
|
|
117
123
|
this.#owner.scrollTo_V1(0);
|
|
124
|
+
|
|
118
125
|
this.#owner.paging.reset();
|
|
119
126
|
};
|
|
120
127
|
|
package/package.json
CHANGED
package/src/etc/ngFiltering.js
CHANGED
|
@@ -105,16 +105,23 @@ export class ngFiltering
|
|
|
105
105
|
el.filterOptions.forEach(opt => { opt.data = []; });
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
|
|
109
|
-
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
108
|
+
for (let key in jsonFilter) {
|
|
110
109
|
this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
|
|
111
|
-
el.filterOptions
|
|
112
|
-
|
|
110
|
+
let options = el.filterOptions;
|
|
111
|
+
|
|
112
|
+
options.forEach(opt => {
|
|
113
|
+
if (opt.colnm === key) {
|
|
114
|
+
opt.data = jsonFilter[key];
|
|
115
|
+
}
|
|
113
116
|
});
|
|
117
|
+
|
|
118
|
+
el.filterOptions = options;
|
|
114
119
|
});
|
|
115
|
-
}
|
|
120
|
+
}
|
|
121
|
+
|
|
116
122
|
|
|
117
123
|
this.#owner.scrollTo_V1(0);
|
|
124
|
+
|
|
118
125
|
this.#owner.paging.reset();
|
|
119
126
|
};
|
|
120
127
|
|