sti-antd-package 0.0.30 → 0.0.32
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/Button/Component.d.ts +2 -2
- package/dist/components/Button/Group/Add/Component.d.ts +3 -2
- package/dist/components/Button/Group/Edit/Component.d.ts +2 -2
- package/dist/components/Checkbox/Component.d.ts +2 -2
- package/dist/components/Checkbox/Group/Component.d.ts +3 -2
- package/dist/components/DataGrid/Component.d.ts +2 -1
- package/dist/components/DatePicker/Component.d.ts +2 -2
- package/dist/components/DateRangePicker/Component.d.ts +2 -2
- package/dist/components/Form/Item/Component.d.ts +2 -2
- package/dist/components/Form/Item/types.d.ts +2 -1
- package/dist/components/Input/Component.d.ts +2 -2
- package/dist/components/NumberFormat/Component.d.ts +2 -2
- package/dist/components/Radio/Component.d.ts +3 -2
- package/dist/components/Select/Async/Component.d.ts +2 -2
- package/dist/components/Select/Component.d.ts +2 -2
- package/dist/components/Switch/Component.d.ts +2 -2
- package/dist/components/Table/Async/Component.d.ts +16 -3
- package/dist/components/Table/Async/Search/Component.d.ts +2 -2
- package/dist/components/Table/CellEditable/Component.d.ts +3 -2
- package/dist/components/Table/Component.d.ts +2 -1
- package/dist/components/TextArea/Component.d.ts +2 -2
- package/dist/components/Upload/Dragger/Component.d.ts +3 -0
- package/dist/components/Upload/Dragger/index.d.ts +2 -0
- package/dist/components/Upload/Dragger/types.d.ts +24 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.d.ts +130 -92
- package/dist/index.esm.js +201 -123
- package/dist/index.js +219 -140
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ButtonComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<ButtonComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ButtonGroupAddComponentProps } from "./types";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const _default: React.NamedExoticComponent<ButtonGroupAddComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ButtonGroupEditComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<ButtonGroupEditComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CheckboxComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<CheckboxComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { CheckboxGroupComponentProps } from "./types";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const _default: React.MemoExoticComponent<(<T>({ noItem, loading, disabled, options, value, defaultValue, onChange, removeError, formColLayout, name, label, required, rules, ruleType, ruleMessage, validateStatus, help, shouldUpdate, ref, }: CheckboxGroupComponentProps<T>) => import("react/jsx-runtime").JSX.Element)>;
|
|
4
|
+
export default _default;
|
|
@@ -4,4 +4,5 @@ import React from "react";
|
|
|
4
4
|
import "react-data-grid/lib/styles.css";
|
|
5
5
|
export declare const filterColumnClassName: string;
|
|
6
6
|
declare const DataGridComponent: <Row extends DataGridRow<Key>, SummaryRow = unknown, Key extends React.Key = React.Key>({ filterHeader, columns, ...props }: DataGridProviderProps<Row, SummaryRow> & DataGridComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
|
|
7
|
+
declare const _default: typeof DataGridComponent;
|
|
8
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DatePickerComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<DatePickerComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DateRangePickerComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<DateRangePickerComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FormItemComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<FormItemComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { formColLayout } from "../../../constants";
|
|
2
2
|
import { ValidateStatus } from "antd/es/form/FormItem";
|
|
3
3
|
import { ShouldUpdate } from "rc-field-form/lib/Field";
|
|
4
|
-
import { NamePath, Rule, RuleObject, Store, StoreValue } from "rc-field-form/lib/interface";
|
|
4
|
+
import { EventArgs, NamePath, Rule, RuleObject, Store, StoreValue } from "rc-field-form/lib/interface";
|
|
5
5
|
import React from "react";
|
|
6
6
|
export interface FormItemDefaultProps {
|
|
7
7
|
noItem?: boolean;
|
|
@@ -36,6 +36,7 @@ export interface FormItemComponentProps {
|
|
|
36
36
|
ruleMin?: number;
|
|
37
37
|
ruleMax?: number;
|
|
38
38
|
valuePropName?: string;
|
|
39
|
+
getValueFromEvent?: ((...args: EventArgs) => StoreValue);
|
|
39
40
|
validateStatus?: ValidateStatus;
|
|
40
41
|
help?: React.ReactNode;
|
|
41
42
|
shouldUpdate?: ShouldUpdate<string | string[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InputComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<InputComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { NumberFormatComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<NumberFormatComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { RadioComponentProps } from "./types";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const _default: React.MemoExoticComponent<(<T>({ buttonStyle, options, optionType, onChange, noItem, loading, disabled, removeError, formColLayout, name, label, required, rules, ruleType, ruleMessage, validateStatus, help, }: RadioComponentProps<T>) => import("react/jsx-runtime").JSX.Element)>;
|
|
4
|
+
export default _default;
|
|
@@ -5,5 +5,5 @@ export declare const formatName: SelectAsyncFormat;
|
|
|
5
5
|
export declare const formatDescription: SelectAsyncFormat;
|
|
6
6
|
export declare const formatCodeName: SelectAsyncFormat;
|
|
7
7
|
export declare const formatCodeDescription: SelectAsyncFormat;
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
8
|
+
declare const _default: React.NamedExoticComponent<SelectAsyncComponentProps>;
|
|
9
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SelectComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<SelectComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SwitchComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<SwitchComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { TableAsyncSearchProviderProps } from "../../../context";
|
|
2
|
-
import {
|
|
2
|
+
import { TableAsyncComponentRef, TableButtonMiddleAsync } from "./types";
|
|
3
|
+
import { AnyObject } from "antd/es/_util/type";
|
|
4
|
+
import { TableRowSelection } from "antd/es/table/interface";
|
|
3
5
|
import React from "react";
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
+
declare const _default: React.NamedExoticComponent<import("../types").TableComponentProps<AnyObject> & {
|
|
7
|
+
buttonMiddle?: TableButtonMiddleAsync[];
|
|
8
|
+
search?: boolean;
|
|
9
|
+
searchOnChange?: boolean;
|
|
10
|
+
noReload?: boolean;
|
|
11
|
+
rowSelect?: boolean | {
|
|
12
|
+
getCheckboxProps?: TableRowSelection["getCheckboxProps"];
|
|
13
|
+
};
|
|
14
|
+
name?: string;
|
|
15
|
+
filterFields?: import("./Search").TableAsyncSearchItem[];
|
|
16
|
+
ref?: React.Ref<TableAsyncComponentRef>;
|
|
17
|
+
} & TableAsyncSearchProviderProps>;
|
|
18
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TableAsyncSearchComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<TableAsyncSearchComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseModel } from "../../../models";
|
|
2
2
|
import { TableCellEditableProps } from "./types";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import React from "react";
|
|
4
|
+
declare const _default: React.MemoExoticComponent<(<T extends BaseModel<T>>({ title, editable, children, dataIndex, record, handleSave, ...props }: TableCellEditableProps<T>) => import("react/jsx-runtime").JSX.Element)>;
|
|
5
|
+
export default _default;
|
|
@@ -2,4 +2,5 @@ import { BaseModel } from "../../models";
|
|
|
2
2
|
import { TableComponentProps } from "./types";
|
|
3
3
|
import { AnyObject } from "antd/es/_util/type";
|
|
4
4
|
declare const TableComponent: <T extends (BaseModel<T> | AnyObject)>({ noPagination, buttonReload, buttonAdd, buttonMiddle, buttonDelete, search, buttonFilter, size, rowClassName, rowKey, rowSelection, columns, data, expandable, pagination, loading, scroll, sticky, components, summary, onChange, style, }: TableComponentProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
|
|
5
|
+
declare const _default: typeof TableComponent;
|
|
6
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TextAreaComponentProps } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.NamedExoticComponent<TextAreaComponentProps>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { formColLayout } from "../../../constants";
|
|
2
|
+
import { ValidateStatus } from "antd/es/form/FormItem";
|
|
3
|
+
import { RcFile } from "antd/es/upload";
|
|
4
|
+
import { UploadListType } from "antd/es/upload/interface";
|
|
5
|
+
import { Rule, RuleObject } from "rc-field-form/lib/interface";
|
|
6
|
+
export interface UploadDraggerComponentProps {
|
|
7
|
+
noItem?: boolean;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
listType?: UploadListType;
|
|
12
|
+
rootClassNames?: string[];
|
|
13
|
+
classNames?: string[];
|
|
14
|
+
action?: string | ((file: RcFile) => string) | ((file: RcFile) => PromiseLike<string>);
|
|
15
|
+
formColLayout?: typeof formColLayout;
|
|
16
|
+
name?: string;
|
|
17
|
+
label?: React.ReactNode;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
rules?: Rule[];
|
|
20
|
+
ruleType?: RuleObject['type'];
|
|
21
|
+
ruleMessage?: string;
|
|
22
|
+
validateStatus?: ValidateStatus;
|
|
23
|
+
help?: React.ReactNode;
|
|
24
|
+
}
|
|
@@ -52,3 +52,5 @@ export { default as TagComponent } from "./Tag";
|
|
|
52
52
|
export type { TagComponentProps } from "./Tag";
|
|
53
53
|
export { default as TextAreaComponent } from "./TextArea";
|
|
54
54
|
export type { TextAreaComponentProps, TextAreaComponentRef } from "./TextArea";
|
|
55
|
+
export { default as UploadDraggerComponent } from "./Upload/Dragger";
|
|
56
|
+
export type { UploadDraggerComponentProps } from "./Upload/Dragger";
|