ods-component-lib 1.18.90 → 1.18.92

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.
@@ -0,0 +1,18 @@
1
+ import React, { PropsWithChildren } from "react";
2
+ import { FormInstance } from "antd";
3
+ export interface FilterProps {
4
+ filterRow?: React.ReactNode;
5
+ advancedFilterRow?: React.ReactNode;
6
+ filterTag?: any[];
7
+ tabs?: any[];
8
+ form: FormInstance<any>;
9
+ savedFilter?: React.ReactNode;
10
+ onFinish?: (values: any) => void;
11
+ onClickClear?: () => void;
12
+ title: string;
13
+ buttonAdvancedSearchName?: string;
14
+ buttonClearAllName: string;
15
+ buttonApplyName: string;
16
+ }
17
+ declare const Filter: (props: PropsWithChildren<FilterProps>) => React.JSX.Element;
18
+ export default Filter;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ declare const FilterTagView: ({ preparedFilterTextViewJson }: {
3
+ preparedFilterTextViewJson: any;
4
+ }) => React.JSX.Element;
5
+ export default FilterTagView;
package/dist/index.js CHANGED
@@ -34049,7 +34049,11 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
34049
34049
  var handleContentReady = function handleContentReady(e) {
34050
34050
  var dataGridInstance = e.component;
34051
34051
  var filteredDataCount = dataGridInstance.totalCount();
34052
- if (filterApplied.current && filteredDataCount > 0) setFilteredRowCount(filteredDataCount);
34052
+ if (filterApplied.current && filteredDataCount > 0) {
34053
+ setFilteredRowCount(filteredDataCount);
34054
+ } else {
34055
+ setFilteredRowCount(0);
34056
+ }
34053
34057
  if (!contentReady) setContentReady(true);
34054
34058
  };
34055
34059
  var onFilterValueChange = function onFilterValueChange(e) {