@carbon/ibm-products 2.43.2-canary.203 → 2.43.2-canary.206
Sign up to get free protection for your applications and to get access to all the features.
@@ -159,7 +159,10 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
159
159
|
className: "".concat(blockClass, "__filter-summary"),
|
160
160
|
filters: filterTags,
|
161
161
|
clearFilters: function clearFilters() {
|
162
|
-
|
162
|
+
EventEmitter.dispatch(CLEAR_FILTERS, tableId);
|
163
|
+
if (typeof (filterProps === null || filterProps === void 0 ? void 0 : filterProps.onClearFilters) === 'function') {
|
164
|
+
filterProps.onClearFilters();
|
165
|
+
}
|
163
166
|
},
|
164
167
|
renderLabel: filterProps === null || filterProps === void 0 ? void 0 : filterProps.renderLabel,
|
165
168
|
overflowType: "tag"
|
@@ -87,6 +87,7 @@ export interface FilterFlyoutProps {
|
|
87
87
|
flyoutIconDescription?: string;
|
88
88
|
onFlyoutClose?: () => void;
|
89
89
|
onFlyoutOpen?: () => void;
|
90
|
+
onClearFilters?: () => void;
|
90
91
|
panelIconDescription?: string;
|
91
92
|
primaryActionLabel?: string;
|
92
93
|
reactTableFiltersState?: ReactTableFiltersState[];
|
@@ -168,7 +168,10 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
168
168
|
className: "".concat(blockClass, "__filter-summary"),
|
169
169
|
filters: filterTags,
|
170
170
|
clearFilters: function clearFilters() {
|
171
|
-
|
171
|
+
EventEmitter.dispatch(constants.CLEAR_FILTERS, tableId);
|
172
|
+
if (typeof (filterProps === null || filterProps === void 0 ? void 0 : filterProps.onClearFilters) === 'function') {
|
173
|
+
filterProps.onClearFilters();
|
174
|
+
}
|
172
175
|
},
|
173
176
|
renderLabel: filterProps === null || filterProps === void 0 ? void 0 : filterProps.renderLabel,
|
174
177
|
overflowType: "tag"
|
@@ -87,6 +87,7 @@ export interface FilterFlyoutProps {
|
|
87
87
|
flyoutIconDescription?: string;
|
88
88
|
onFlyoutClose?: () => void;
|
89
89
|
onFlyoutOpen?: () => void;
|
90
|
+
onClearFilters?: () => void;
|
90
91
|
panelIconDescription?: string;
|
91
92
|
primaryActionLabel?: string;
|
92
93
|
reactTableFiltersState?: ReactTableFiltersState[];
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.43.2-canary.
|
4
|
+
"version": "2.43.2-canary.206+791618a11",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
121
121
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "791618a11618f120b15444dde994da65576a79ff"
|
124
124
|
}
|