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.
Files changed (64) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE +19 -0
  3. package/README.md +1 -6
  4. package/{dist/components/GridTable → es}/CheckboxFilter.d.ts +1 -1
  5. package/es/CheckboxFilter.js +249 -0
  6. package/{dist/components/GridTable → es}/ColumnsChoose.d.ts +3 -2
  7. package/es/ColumnsChoose.js +213 -0
  8. package/{dist/components/GridTable → es}/ContextMenu.d.ts +1 -1
  9. package/es/ContextMenu.js +126 -0
  10. package/{dist/components/GridTable → es}/FilterSearch.d.ts +3 -3
  11. package/es/FilterSearch.js +33 -0
  12. package/es/GridTable.d.ts +7 -0
  13. package/es/GridTable.js +927 -0
  14. package/es/hooks/constant.js +214 -0
  15. package/es/hooks/index.js +5 -0
  16. package/{dist → es}/hooks/useColumns/index.d.ts +1 -1
  17. package/es/hooks/useColumns/index.js +25 -0
  18. package/{dist → es}/hooks/useIsOverflow.d.ts +1 -1
  19. package/es/hooks/useIsOverflow.js +17 -0
  20. package/es/hooks/useOnClickOutside.js +28 -0
  21. package/{dist → es}/hooks/utils.d.ts +7 -3
  22. package/es/hooks/utils.js +192 -0
  23. package/es/index.d.ts +2 -0
  24. package/es/index.js +2 -0
  25. package/es/styles.scss +30 -0
  26. package/es/type.d.ts +88 -0
  27. package/es/type.js +1 -0
  28. package/lib/CheckboxFilter.d.ts +19 -0
  29. package/lib/CheckboxFilter.js +257 -0
  30. package/lib/ColumnsChoose.d.ts +10 -0
  31. package/lib/ColumnsChoose.js +223 -0
  32. package/lib/ContextMenu.d.ts +20 -0
  33. package/lib/ContextMenu.js +135 -0
  34. package/lib/FilterSearch.d.ts +12 -0
  35. package/lib/FilterSearch.js +42 -0
  36. package/lib/GridTable.d.ts +7 -0
  37. package/lib/GridTable.js +936 -0
  38. package/lib/hooks/constant.d.ts +48 -0
  39. package/lib/hooks/constant.js +221 -0
  40. package/lib/hooks/index.d.ts +4 -0
  41. package/lib/hooks/index.js +49 -0
  42. package/lib/hooks/useColumns/index.d.ts +2 -0
  43. package/lib/hooks/useColumns/index.js +31 -0
  44. package/lib/hooks/useIsOverflow.d.ts +1 -0
  45. package/lib/hooks/useIsOverflow.js +26 -0
  46. package/lib/hooks/useOnClickOutside.d.ts +1 -0
  47. package/lib/hooks/useOnClickOutside.js +36 -0
  48. package/lib/hooks/utils.d.ts +18 -0
  49. package/lib/hooks/utils.js +215 -0
  50. package/lib/index.d.ts +2 -0
  51. package/lib/index.js +9 -0
  52. package/lib/styles.scss +30 -0
  53. package/lib/type.d.ts +88 -0
  54. package/lib/type.js +5 -0
  55. package/package.json +75 -94
  56. package/dist/components/GridTable/GridTable.d.ts +0 -6
  57. package/dist/components/GridTable/index.d.ts +0 -1
  58. package/dist/components/index.d.ts +0 -1
  59. package/dist/index.d.ts +0 -2
  60. package/dist/index.js +0 -53
  61. package/dist/type.d.ts +0 -45
  62. /package/{dist → es}/hooks/constant.d.ts +0 -0
  63. /package/{dist → es}/hooks/index.d.ts +0 -0
  64. /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