es-grid-template 0.0.4 → 0.0.7
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/CHANGELOG.md +6 -0
- package/LICENSE +19 -0
- package/README.md +1 -6
- package/{dist/components/GridTable → es}/CheckboxFilter.d.ts +1 -1
- package/es/CheckboxFilter.js +249 -0
- package/{dist/components/GridTable → es}/ColumnsChoose.d.ts +3 -2
- package/es/ColumnsChoose.js +213 -0
- package/{dist/components/GridTable → es}/ContextMenu.d.ts +1 -1
- package/es/ContextMenu.js +126 -0
- package/{dist/components/GridTable → es}/FilterSearch.d.ts +3 -3
- package/es/FilterSearch.js +33 -0
- package/es/GridTable.d.ts +7 -0
- package/es/GridTable.js +927 -0
- package/es/hooks/constant.js +214 -0
- package/es/hooks/index.js +5 -0
- package/{dist → es}/hooks/useColumns/index.d.ts +1 -1
- package/es/hooks/useColumns/index.js +25 -0
- package/{dist → es}/hooks/useIsOverflow.d.ts +1 -1
- package/es/hooks/useIsOverflow.js +17 -0
- package/es/hooks/useOnClickOutside.js +28 -0
- package/{dist → es}/hooks/utils.d.ts +7 -3
- package/es/hooks/utils.js +192 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/styles.scss +30 -0
- package/es/type.d.ts +88 -0
- package/es/type.js +1 -0
- package/lib/CheckboxFilter.d.ts +19 -0
- package/lib/CheckboxFilter.js +257 -0
- package/lib/ColumnsChoose.d.ts +10 -0
- package/lib/ColumnsChoose.js +223 -0
- package/lib/ContextMenu.d.ts +20 -0
- package/lib/ContextMenu.js +135 -0
- package/lib/FilterSearch.d.ts +12 -0
- package/lib/FilterSearch.js +42 -0
- package/lib/GridTable.d.ts +7 -0
- package/lib/GridTable.js +936 -0
- package/lib/hooks/constant.d.ts +48 -0
- package/lib/hooks/constant.js +221 -0
- package/lib/hooks/index.d.ts +4 -0
- package/lib/hooks/index.js +49 -0
- package/lib/hooks/useColumns/index.d.ts +2 -0
- package/lib/hooks/useColumns/index.js +31 -0
- package/lib/hooks/useIsOverflow.d.ts +1 -0
- package/lib/hooks/useIsOverflow.js +26 -0
- package/lib/hooks/useOnClickOutside.d.ts +1 -0
- package/lib/hooks/useOnClickOutside.js +36 -0
- package/lib/hooks/utils.d.ts +18 -0
- package/lib/hooks/utils.js +215 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +9 -0
- package/lib/styles.scss +30 -0
- package/lib/type.d.ts +88 -0
- package/lib/type.js +5 -0
- package/package.json +75 -94
- package/dist/components/GridTable/GridTable.d.ts +0 -6
- package/dist/components/GridTable/index.d.ts +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -53
- package/dist/type.d.ts +0 -45
- /package/{dist → es}/hooks/constant.d.ts +0 -0
- /package/{dist → es}/hooks/index.d.ts +0 -0
- /package/{dist → es}/hooks/useOnClickOutside.d.ts +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import SearchOutlined from '@ant-design/icons/SearchOutlined';
|
|
3
|
+
import { Input } from 'ui-rc';
|
|
4
|
+
const FilterSearch = props => {
|
|
5
|
+
const {
|
|
6
|
+
value,
|
|
7
|
+
filterSearch,
|
|
8
|
+
tablePrefixCls,
|
|
9
|
+
locale,
|
|
10
|
+
onChange
|
|
11
|
+
} = props;
|
|
12
|
+
if (!filterSearch) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
className: `${tablePrefixCls}-filter-dropdown-search`,
|
|
17
|
+
style: {
|
|
18
|
+
paddingLeft: 0,
|
|
19
|
+
paddingRight: 0
|
|
20
|
+
}
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
22
|
+
prefix: /*#__PURE__*/React.createElement(SearchOutlined, null),
|
|
23
|
+
placeholder: locale.filterSearchPlaceholder,
|
|
24
|
+
onChange: onChange,
|
|
25
|
+
value: value,
|
|
26
|
+
autoFocus: true
|
|
27
|
+
// for skip min-width of input
|
|
28
|
+
,
|
|
29
|
+
htmlSize: 1,
|
|
30
|
+
className: `${tablePrefixCls}-filter-dropdown-search-input`
|
|
31
|
+
}));
|
|
32
|
+
};
|
|
33
|
+
export default FilterSearch;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'dayjs/locale/es';
|
|
3
|
+
import 'dayjs/locale/vi';
|
|
4
|
+
import './styles.scss';
|
|
5
|
+
import type { GridTableProps } from "./type";
|
|
6
|
+
declare const GridTable: <RecordType extends object>(props: GridTableProps<RecordType>) => React.JSX.Element;
|
|
7
|
+
export default GridTable;
|