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.
- package/dist/components/filter/filter.d.ts +18 -0
- package/dist/components/filter/filterTagView.d.ts +5 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/antd/modal/OdsAdvanceModal.d.ts +0 -7
- package/dist/stories/OdsAdvanceModal/OdsAdvanceModal.stories.d.ts +0 -42
- package/dist/stories/OdsAdvanceModal/Samples/BasicOdsAdvanceModal.sample.d.ts +0 -8
- package/dist/stories/OdsModal/Samples/OdsModal.Sample.d.ts +0 -1
- package/dist/stories/OdsTimePicker/Samples/TimeRangePicker.d.ts +0 -2
|
@@ -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;
|
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)
|
|
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) {
|