es-grid-template 0.0.2 → 0.0.4
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/{grid-table → GridTable}/ColumnsChoose.d.ts +2 -2
- package/dist/components/{grid-table → GridTable}/ContextMenu.d.ts +1 -1
- package/dist/components/GridTable/FilterSearch.d.ts +12 -0
- package/dist/components/{grid-table → GridTable}/GridTable.d.ts +2 -3
- package/dist/components/GridTable/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/utils.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -9
- package/dist/type.d.ts +10 -0
- package/package.json +1 -1
- package/dist/components/grid-table/index.d.ts +0 -3
- /package/dist/components/{grid-table → GridTable}/CheckboxFilter.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { Dispatch, SetStateAction } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { TableColumnsType } from "ui-rc";
|
|
3
3
|
export declare const BoxInputFilterColumn: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
4
|
export type IColumnsChoose<RecordType> = {
|
|
5
5
|
columns: any[];
|
|
6
|
-
setColumns: Dispatch<SetStateAction<
|
|
6
|
+
setColumns: Dispatch<SetStateAction<TableColumnsType<RecordType>>>;
|
|
7
7
|
t?: any;
|
|
8
8
|
};
|
|
9
9
|
export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { MenuProps } from "antd";
|
|
3
|
-
import { ContextInfo } from "../../type
|
|
3
|
+
import { ContextInfo } from "../../type";
|
|
4
4
|
export declare const findItemByKey: (array: any[], key: string, value: any) => any;
|
|
5
5
|
type Props<RecordType> = {
|
|
6
6
|
rowData: RecordType | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AnyObject } from "../../type";
|
|
3
|
+
import { FilterSearchType, TableLocale } from "antd/es/table/interface";
|
|
4
|
+
interface FilterSearchProps<RecordType = AnyObject> {
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
filterSearch: FilterSearchType<RecordType>;
|
|
8
|
+
tablePrefixCls: string;
|
|
9
|
+
locale: TableLocale;
|
|
10
|
+
}
|
|
11
|
+
declare const FilterSearch: <RecordType extends AnyObject = AnyObject>(props: FilterSearchProps<RecordType>) => React.JSX.Element | null;
|
|
12
|
+
export default FilterSearch;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { GridTableProps } from "../../type";
|
|
2
3
|
import 'dayjs/locale/es';
|
|
3
4
|
import 'dayjs/locale/vi';
|
|
4
5
|
import './styles.scss';
|
|
5
|
-
|
|
6
|
-
declare const GridTable: <RecordType extends object>(props: GridTableProps<RecordType>) => React.JSX.Element;
|
|
7
|
-
export default GridTable;
|
|
6
|
+
export declare const GridTable: <RecordType extends object>(props: GridTableProps<RecordType>) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GridTable';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './GridTable';
|
package/dist/hooks/utils.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export declare const isColor: (value: string) => boolean;
|
|
|
11
11
|
export declare const getVisibleColumnKeys: (columns: any[]) => string[];
|
|
12
12
|
export declare const getAllVisibleKeys: (columns: any[]) => any[];
|
|
13
13
|
export declare function getHiddenParentKeys(columns: any[], parentKeys?: string[]): string[];
|
|
14
|
+
export declare const updateColumns: (columns: any[], includes: string[]) => any[];
|
package/dist/index.d.ts
CHANGED