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.
Files changed (29) hide show
  1. package/dist/components/Button/Component.d.ts +2 -2
  2. package/dist/components/Button/Group/Add/Component.d.ts +3 -2
  3. package/dist/components/Button/Group/Edit/Component.d.ts +2 -2
  4. package/dist/components/Checkbox/Component.d.ts +2 -2
  5. package/dist/components/Checkbox/Group/Component.d.ts +3 -2
  6. package/dist/components/DataGrid/Component.d.ts +2 -1
  7. package/dist/components/DatePicker/Component.d.ts +2 -2
  8. package/dist/components/DateRangePicker/Component.d.ts +2 -2
  9. package/dist/components/Form/Item/Component.d.ts +2 -2
  10. package/dist/components/Form/Item/types.d.ts +2 -1
  11. package/dist/components/Input/Component.d.ts +2 -2
  12. package/dist/components/NumberFormat/Component.d.ts +2 -2
  13. package/dist/components/Radio/Component.d.ts +3 -2
  14. package/dist/components/Select/Async/Component.d.ts +2 -2
  15. package/dist/components/Select/Component.d.ts +2 -2
  16. package/dist/components/Switch/Component.d.ts +2 -2
  17. package/dist/components/Table/Async/Component.d.ts +16 -3
  18. package/dist/components/Table/Async/Search/Component.d.ts +2 -2
  19. package/dist/components/Table/CellEditable/Component.d.ts +3 -2
  20. package/dist/components/Table/Component.d.ts +2 -1
  21. package/dist/components/TextArea/Component.d.ts +2 -2
  22. package/dist/components/Upload/Dragger/Component.d.ts +3 -0
  23. package/dist/components/Upload/Dragger/index.d.ts +2 -0
  24. package/dist/components/Upload/Dragger/types.d.ts +24 -0
  25. package/dist/components/index.d.ts +2 -0
  26. package/dist/index.d.ts +130 -92
  27. package/dist/index.esm.js +201 -123
  28. package/dist/index.js +219 -140
  29. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  import { ButtonComponentProps } from "./types";
2
2
  import React from "react";
3
- declare const ButtonComponent: React.FC<ButtonComponentProps>;
4
- export default ButtonComponent;
3
+ declare const _default: React.NamedExoticComponent<ButtonComponentProps>;
4
+ export default _default;
@@ -1,3 +1,4 @@
1
1
  import { ButtonGroupAddComponentProps } from "./types";
2
- declare const ButtonGroupAddComponent: React.FC<ButtonGroupAddComponentProps>;
3
- export default ButtonGroupAddComponent;
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 ButtonGroupEditComponent: React.FC<ButtonGroupEditComponentProps>;
4
- export default ButtonGroupEditComponent;
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 CheckboxComponent: React.FC<CheckboxComponentProps>;
4
- export default CheckboxComponent;
3
+ declare const _default: React.NamedExoticComponent<CheckboxComponentProps>;
4
+ export default _default;
@@ -1,3 +1,4 @@
1
1
  import { CheckboxGroupComponentProps } from "./types";
2
- declare const CheckboxComponent: <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;
3
- export default CheckboxComponent;
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
- export default DataGridComponent;
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 DatePickerComponent: React.FC<DatePickerComponentProps>;
4
- export default DatePickerComponent;
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 DateRangePickerComponent: React.FC<DateRangePickerComponentProps>;
4
- export default DateRangePickerComponent;
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 FormItemComponent: React.FC<FormItemComponentProps>;
4
- export default FormItemComponent;
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 InputComponent: React.FC<InputComponentProps>;
4
- export default InputComponent;
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 NumberFormatComponent: React.FC<NumberFormatComponentProps>;
4
- export default NumberFormatComponent;
3
+ declare const _default: React.NamedExoticComponent<NumberFormatComponentProps>;
4
+ export default _default;
@@ -1,3 +1,4 @@
1
1
  import { RadioComponentProps } from "./types";
2
- declare const RadioComponent: <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;
3
- export default RadioComponent;
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 SelectAsyncComponent: React.FC<SelectAsyncComponentProps>;
9
- export default SelectAsyncComponent;
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 SelectComponent: React.FC<SelectComponentProps>;
4
- export default SelectComponent;
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 SwitchComponent: React.FC<SwitchComponentProps>;
4
- export default SwitchComponent;
3
+ declare const _default: React.NamedExoticComponent<SwitchComponentProps>;
4
+ export default _default;
@@ -1,5 +1,18 @@
1
1
  import { TableAsyncSearchProviderProps } from "../../../context";
2
- import { TableAsyncComponentProps } from "./types";
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 TableAsyncComponent: React.FC<TableAsyncComponentProps & TableAsyncSearchProviderProps>;
5
- export default TableAsyncComponent;
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 TableAsyncSearchComponent: React.FC<TableAsyncSearchComponentProps>;
4
- export default TableAsyncSearchComponent;
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
- declare const TableCellEditableComponent: <T extends BaseModel<T>>({ title, editable, children, dataIndex, record, handleSave, ...props }: TableCellEditableProps<T>) => import("react/jsx-runtime").JSX.Element;
4
- export default TableCellEditableComponent;
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
- export default TableComponent;
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 TextAreaComponent: React.FC<TextAreaComponentProps>;
4
- export default TextAreaComponent;
3
+ declare const _default: React.NamedExoticComponent<TextAreaComponentProps>;
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { UploadDraggerComponentProps } from "./types";
2
+ declare const UploadDraggerComponent: React.FC<UploadDraggerComponentProps>;
3
+ export default UploadDraggerComponent;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Component";
2
+ export type * from "./types";
@@ -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";