kui-utils 0.0.10 → 0.0.11
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/cjs/index.js +4 -0
- package/cjs/index.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ declare class SortingFilter {
|
|
|
109
109
|
updateFilterQuery: (newQuery?: string | undefined) => void;
|
|
110
110
|
setOrder: (order: SortOrder) => void;
|
|
111
111
|
setOrderBy: (orderBy: string) => void;
|
|
112
|
+
clearFilter: () => void;
|
|
112
113
|
get searchParams(): string;
|
|
113
114
|
get orderParams(): string;
|
|
114
115
|
get filterParams(): string;
|
package/index.js
CHANGED
|
@@ -2123,6 +2123,10 @@ var SortingFilter = /** @class */ (function () {
|
|
|
2123
2123
|
this.setOrderBy = function (orderBy) {
|
|
2124
2124
|
_this.orderBy = orderBy;
|
|
2125
2125
|
};
|
|
2126
|
+
this.clearFilter = function () {
|
|
2127
|
+
_this.searchQuery = "";
|
|
2128
|
+
_this.filterQuery = "";
|
|
2129
|
+
};
|
|
2126
2130
|
this.searchQuery = "";
|
|
2127
2131
|
this.filterQuery = filterQuery || "";
|
|
2128
2132
|
this.order = order || "asc";
|