es-grid-template 0.0.1 → 0.0.2

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.
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import { TableLocale } from "antd/es/table/interface";
3
+ type Props = {
4
+ options: any[];
5
+ filterSearch?: boolean;
6
+ open?: boolean;
7
+ tablePrefixCls?: string;
8
+ prefixCls?: string;
9
+ dropdownPrefixCls?: string;
10
+ filterMultiple: boolean;
11
+ onSelect?: (value: any) => void;
12
+ selectedKeys: string[];
13
+ locale: TableLocale;
14
+ filterMode?: 'menu' | 'tree';
15
+ searchValue: string;
16
+ setSearchValue: (value: any) => void;
17
+ };
18
+ declare const CheckboxFilter: (props: Props) => React.JSX.Element;
19
+ export default CheckboxFilter;
@@ -0,0 +1,9 @@
1
+ import React, { Dispatch, SetStateAction } from "react";
2
+ import { ColumnsType } from "../../type";
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
+ export type IColumnsChoose<RecordType> = {
5
+ columns: any[];
6
+ setColumns: Dispatch<SetStateAction<ColumnsType<RecordType>>>;
7
+ t?: any;
8
+ };
9
+ export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) => React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import type { MenuProps } from "antd";
3
+ import { ContextInfo } from "../../type/types";
4
+ export declare const findItemByKey: (array: any[], key: string, value: any) => any;
5
+ type Props<RecordType> = {
6
+ rowData: RecordType | null;
7
+ contextMenuItems: MenuProps["items"];
8
+ contextMenuClick?: (args: ContextInfo<RecordType>) => void;
9
+ open: boolean;
10
+ menuRef?: any;
11
+ setOpen: (open: boolean) => void;
12
+ pos: {
13
+ x: number;
14
+ y: number;
15
+ viewportWidth: number;
16
+ viewportHeight: number;
17
+ };
18
+ };
19
+ declare const ContextMenu: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
20
+ export default ContextMenu;
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
+ import 'dayjs/locale/es';
3
+ import 'dayjs/locale/vi';
4
+ import './styles.scss';
2
5
  import { GridTableProps } from "../../type";
3
6
  declare const GridTable: <RecordType extends object>(props: GridTableProps<RecordType>) => React.JSX.Element;
4
7
  export default GridTable;
@@ -1,5 +1,13 @@
1
+ import dayjs from "dayjs";
1
2
  export declare const sumDataByField: (data: any[], field: string) => any;
2
3
  export declare const checkThousandSeparator: (thousandSeparator: string | undefined, decimalSeparator: string | undefined) => string | undefined;
3
4
  export declare const checkDecimalSeparator: (thousandSeparator: string | undefined, decimalSeparator: string | undefined) => string;
4
5
  export declare const isEmpty: (d: any) => boolean;
5
6
  export declare const isNullOrUndefined: (d: any) => boolean;
7
+ export declare const convertDayjsToDate: (dateString: string, format: string) => Date;
8
+ export declare const convertDateToDayjs: (date: Date | undefined, format: string) => dayjs.Dayjs | null;
9
+ export declare const isNameColor: (strColor: string) => boolean;
10
+ export declare const isColor: (value: string) => boolean;
11
+ export declare const getVisibleColumnKeys: (columns: any[]) => string[];
12
+ export declare const getAllVisibleKeys: (columns: any[]) => any[];
13
+ export declare function getHiddenParentKeys(columns: any[], parentKeys?: string[]): string[];