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
package/dist/type.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TableProps } from "ui-rc";
|
|
3
|
-
import { ColumnType as RcColumnType, ColumnGroupType as RcColumnGroupType } from "ui-rc/dist/table";
|
|
4
|
-
import { ReactElement, ReactNode } from "react";
|
|
5
|
-
import { ItemType } from "antd/es/menu/interface";
|
|
6
|
-
type IColumnType = "number" | "time" | "date" | "week" | "month" | "file" | "quarter" | "year" | "datetime" | "string" | "boolean" | "checkbox" | "color" | null | undefined;
|
|
7
|
-
export interface ColumnGroupType<RecordType> extends Omit<RcColumnGroupType<RecordType>, 'children'> {
|
|
8
|
-
children: ColumnsType<RecordType>;
|
|
9
|
-
}
|
|
10
|
-
export type ColumnType<RecordType> = (ColumnGroupType<RecordType> | RcColumnType<RecordType>) & {
|
|
11
|
-
type?: IColumnType;
|
|
12
|
-
isSummary?: boolean;
|
|
13
|
-
summaryTemplate?: (data: number, key: string) => ReactElement | ReactNode;
|
|
14
|
-
maxWidth?: string | number;
|
|
15
|
-
format?: IFormat;
|
|
16
|
-
};
|
|
17
|
-
export type ColumnsType<RecordType> = ColumnType<RecordType>[];
|
|
18
|
-
export interface GridTableProps<RecordType> extends Omit<TableProps<RecordType>, 'columns'> {
|
|
19
|
-
columns?: ColumnsType<RecordType>;
|
|
20
|
-
format?: IFormat;
|
|
21
|
-
}
|
|
22
|
-
export type IFormat = {
|
|
23
|
-
thousandSeparator?: string;
|
|
24
|
-
decimalSeparator?: string;
|
|
25
|
-
decimalScale?: number | undefined;
|
|
26
|
-
allowNegative?: boolean;
|
|
27
|
-
prefix?: string | undefined;
|
|
28
|
-
suffix?: string | undefined;
|
|
29
|
-
fixedDecimalScale?: boolean;
|
|
30
|
-
dateFormat?: string;
|
|
31
|
-
datetimeFormat?: string;
|
|
32
|
-
timeFormat?: string;
|
|
33
|
-
weekFormat?: string;
|
|
34
|
-
monthFormat?: string;
|
|
35
|
-
yearFormat?: string;
|
|
36
|
-
};
|
|
37
|
-
export type ContextInfo<RecordType> = {
|
|
38
|
-
rowInfo: {
|
|
39
|
-
rowData: RecordType | null;
|
|
40
|
-
};
|
|
41
|
-
event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
42
|
-
item: ItemType;
|
|
43
|
-
};
|
|
44
|
-
export type AnyObject = Record<PropertyKey, any>;
|
|
45
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|