es-grid-template 0.0.3 → 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.
@@ -1,9 +1,9 @@
1
1
  import React, { Dispatch, SetStateAction } from "react";
2
- import { ColumnsType } from "../../type";
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<ColumnsType<RecordType>>>;
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/types";
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 +1 @@
1
- export * from './grid-table';
1
+ export * from './GridTable';
@@ -0,0 +1,4 @@
1
+ export * from './constant';
2
+ export * from './useIsOverflow';
3
+ export * from './useOnClickOutside';
4
+ export * from './utils';
@@ -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
@@ -1 +1,2 @@
1
1
  export * from './components';
2
+ export * from './type';