sti-antd-package 0.0.47 → 0.0.49
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/Select/Async/index.d.ts +1 -1
- package/dist/components/Upload/Dragger/types.d.ts +2 -1
- package/dist/components/Upload/index.d.ts +1 -0
- package/dist/components/Upload/types.d.ts +2 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/helpers/selectAsync/types.d.ts +7 -3
- package/dist/index.d.ts +17 -6
- package/dist/index.esm.js +1285 -1505
- package/dist/index.js +1288 -1504
- package/package.json +5 -9
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from "./Component";
|
|
1
|
+
export { default, formatCodeDescription, formatCodeName, formatDescription, formatName } from "./Component";
|
|
2
2
|
export type * from "./types";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { FormItemUploadDragger } from "../../Form/Item";
|
|
2
|
+
import { BeforeUploadValueType, UploadType } from "../types";
|
|
2
3
|
import { RcFile } from "antd/es/upload";
|
|
3
4
|
import { UploadChangeParam, UploadFile, UploadListType } from "antd/es/upload/interface";
|
|
4
5
|
import { UploadRequestOption } from "rc-upload/lib/interface";
|
|
5
|
-
type BeforeUploadValueType = void | boolean | string | Blob | File;
|
|
6
6
|
interface UploadDragger {
|
|
7
7
|
multiple?: boolean;
|
|
8
8
|
readonly?: boolean;
|
|
9
9
|
listType?: UploadListType;
|
|
10
10
|
rootClassNames?: string[];
|
|
11
11
|
classNames?: string[];
|
|
12
|
+
accept?: UploadType[];
|
|
12
13
|
action?: string | ((file: RcFile) => string) | ((file: RcFile) => PromiseLike<string>);
|
|
13
14
|
withCredentials?: boolean;
|
|
14
15
|
beforeUpload?: ((file: RcFile, fileList: RcFile[]) => BeforeUploadValueType | Promise<BeforeUploadValueType>);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from "./types";
|
|
@@ -36,7 +36,7 @@ export { default as RadioComponent } from "./Radio";
|
|
|
36
36
|
export type { RadioComponentProps } from "./Radio";
|
|
37
37
|
export { default as SelectComponent } from "./Select";
|
|
38
38
|
export type { SelectComponentProps, SelectOption } from "./Select";
|
|
39
|
-
export { default as SelectAsyncComponent } from "./Select/Async";
|
|
39
|
+
export { default as SelectAsyncComponent, formatCodeDescription, formatCodeName, formatDescription, formatName } from "./Select/Async";
|
|
40
40
|
export type { SelectAsyncComponentProps, SelectAsyncComponentRef } from "./Select/Async";
|
|
41
41
|
export { default as SwitchComponent } from "./Switch";
|
|
42
42
|
export type { SwitchComponentProps } from "./Switch";
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { AnyObject } from "antd/es/_util/type";
|
|
2
2
|
import { AxiosResponse } from "axios";
|
|
3
|
+
import { DefaultOptionType } from "rc-select/lib/Select";
|
|
3
4
|
export interface SelectAsyncFormat {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
label?: string | ((data: AnyObject) => string | React.ReactNode);
|
|
5
|
+
value: string | ((data: AnyObject) => DefaultOptionType['value']);
|
|
6
|
+
label?: string | ((data: AnyObject) => DefaultOptionType['label']);
|
|
7
7
|
text?: string | ((data: AnyObject) => string | React.ReactNode);
|
|
8
|
+
className?: string | ((data: AnyObject) => DefaultOptionType['className']);
|
|
9
|
+
disabled?: string | ((data: AnyObject) => DefaultOptionType['disabled']);
|
|
10
|
+
title?: string | ((data: AnyObject) => DefaultOptionType['title']);
|
|
11
|
+
[key: string]: any;
|
|
8
12
|
}
|
|
9
13
|
export interface SelectAsyncProps {
|
|
10
14
|
format: SelectAsyncFormat;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { ShouldUpdate } from 'rc-field-form/lib/Field';
|
|
|
15
15
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
16
16
|
import { AnyObject } from 'antd/es/_util/type';
|
|
17
17
|
import { AxiosResponse } from 'axios';
|
|
18
|
+
import { DefaultOptionType as DefaultOptionType$1 } from 'rc-select/lib/Select';
|
|
18
19
|
import { ColumnOrColumnGroup } from 'react-data-grid';
|
|
19
20
|
import { DatePickerProps, RangePickerProps } from 'antd/es/date-picker';
|
|
20
21
|
import { PickerClassNames } from 'antd/es/date-picker/generatePicker/interface';
|
|
@@ -23,7 +24,7 @@ import { RangeValueType } from 'rc-picker/lib/PickerInput/RangePicker';
|
|
|
23
24
|
import { valueType } from 'antd/es/statistic/utils';
|
|
24
25
|
import { OnValueChange } from 'react-number-format';
|
|
25
26
|
import { RadioGroupButtonStyle, RadioGroupOptionType } from 'antd/lib/radio';
|
|
26
|
-
import { DefaultOptionType as DefaultOptionType$
|
|
27
|
+
import { DefaultOptionType as DefaultOptionType$2 } from 'antd/es/select';
|
|
27
28
|
import { ClassTransformOptions } from 'class-transformer';
|
|
28
29
|
import { ColumnsType, TablePaginationConfig, FilterValue, SorterResult, TableCurrentDataSource, TableRowSelection, ColumnType, ColumnGroupType } from 'antd/es/table/interface';
|
|
29
30
|
import { TableProps } from 'rc-table';
|
|
@@ -317,10 +318,13 @@ declare const getTableFilterStorage: (name?: string) => {
|
|
|
317
318
|
};
|
|
318
319
|
|
|
319
320
|
interface SelectAsyncFormat {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
label?: string | ((data: AnyObject) => string | React.ReactNode);
|
|
321
|
+
value: string | ((data: AnyObject) => DefaultOptionType$1['value']);
|
|
322
|
+
label?: string | ((data: AnyObject) => DefaultOptionType$1['label']);
|
|
323
323
|
text?: string | ((data: AnyObject) => string | React.ReactNode);
|
|
324
|
+
className?: string | ((data: AnyObject) => DefaultOptionType$1['className']);
|
|
325
|
+
disabled?: string | ((data: AnyObject) => DefaultOptionType$1['disabled']);
|
|
326
|
+
title?: string | ((data: AnyObject) => DefaultOptionType$1['title']);
|
|
327
|
+
[key: string]: any;
|
|
324
328
|
}
|
|
325
329
|
interface SelectAsyncProps {
|
|
326
330
|
format: SelectAsyncFormat;
|
|
@@ -618,7 +622,7 @@ type RadioComponentProps<T> = FormItemRadio & Radio<T>;
|
|
|
618
622
|
|
|
619
623
|
declare const _default$7: React$1.MemoExoticComponent<(<T>({ noItem, loading, disabled, buttonStyle, formClassNames, options, optionType, removeError, onChange, formColLayout, name, label, required, rules, ruleType, ruleMessage, validateStatus, help, }: RadioComponentProps<T>) => react_jsx_runtime.JSX.Element)>;
|
|
620
624
|
|
|
621
|
-
type SelectOption = DefaultOptionType$
|
|
625
|
+
type SelectOption = DefaultOptionType$2 & {
|
|
622
626
|
text?: React.ReactNode;
|
|
623
627
|
encryption_id?: string;
|
|
624
628
|
};
|
|
@@ -666,6 +670,10 @@ type SelectAsyncComponentProps = SelectComponentProps & {
|
|
|
666
670
|
ref?: Ref<SelectAsyncComponentRef>;
|
|
667
671
|
};
|
|
668
672
|
|
|
673
|
+
declare const formatName: SelectAsyncFormat;
|
|
674
|
+
declare const formatDescription: SelectAsyncFormat;
|
|
675
|
+
declare const formatCodeName: SelectAsyncFormat;
|
|
676
|
+
declare const formatCodeDescription: SelectAsyncFormat;
|
|
669
677
|
declare const _default$5: React$1.NamedExoticComponent<SelectAsyncComponentProps>;
|
|
670
678
|
|
|
671
679
|
interface Switch {
|
|
@@ -1076,13 +1084,16 @@ type TextAreaComponentProps = FormItemTextArea & TextArea;
|
|
|
1076
1084
|
|
|
1077
1085
|
declare const _default: React$1.NamedExoticComponent<TextAreaComponentProps>;
|
|
1078
1086
|
|
|
1087
|
+
type UploadType = "image" | "excel" | "pdf";
|
|
1079
1088
|
type BeforeUploadValueType = void | boolean | string | Blob | File;
|
|
1089
|
+
|
|
1080
1090
|
interface UploadDragger {
|
|
1081
1091
|
multiple?: boolean;
|
|
1082
1092
|
readonly?: boolean;
|
|
1083
1093
|
listType?: UploadListType;
|
|
1084
1094
|
rootClassNames?: string[];
|
|
1085
1095
|
classNames?: string[];
|
|
1096
|
+
accept?: UploadType[];
|
|
1086
1097
|
action?: string | ((file: RcFile) => string) | ((file: RcFile) => PromiseLike<string>);
|
|
1087
1098
|
withCredentials?: boolean;
|
|
1088
1099
|
beforeUpload?: ((file: RcFile, fileList: RcFile[]) => BeforeUploadValueType | Promise<BeforeUploadValueType>);
|
|
@@ -1106,5 +1117,5 @@ declare const useRemoveError: (setInputErrors: React.Dispatch<React.SetStateActi
|
|
|
1106
1117
|
[key: string]: any;
|
|
1107
1118
|
}>>) => (name?: string) => void;
|
|
1108
1119
|
|
|
1109
|
-
export { BaseModel, _default$j as ButtonComponent, _default$h as ButtonGroupAddComponent, _default$g as ButtonGroupEditComponent, CardComponent, CascaderComponent, _default$e as CheckboxComponent, _default$d as CheckboxGroupComponent, ConfigProvider, _default$c as DataGridComponent, DateFormat, _default$b as DatePickerComponent, _default$a as DateRangePickerComponent, DropdownButtonComponent, FeedbackProvider, _default$f as FormItemComponent, IconCheckOrClose, _default$9 as InputComponent, LinkComponent, _default$8 as NumberFormatComponent, _default$7 as RadioComponent, _default$5 as SelectAsyncComponent, _default$6 as SelectComponent, _default$4 as SwitchComponent, _default$2 as TableAsyncComponent, _default$1 as TableCellEditableComponent, _default$3 as TableComponent, TableRowProvider, TabsComponent, TagComponent, _default as TextAreaComponent, TransformBoolean, TransformDayjs, TransformNumber, UploadDraggerComponent, colInline, colLayout, datePickerFormat, _default$i as formColLayout, getTableAsyncName, getTableFilterStorage, selectAsync, styleCSS, toCamel, useConfig, useDataGrid, useFeedback, useRemoveError, useTableAsyncSearch, useTableRow };
|
|
1120
|
+
export { BaseModel, _default$j as ButtonComponent, _default$h as ButtonGroupAddComponent, _default$g as ButtonGroupEditComponent, CardComponent, CascaderComponent, _default$e as CheckboxComponent, _default$d as CheckboxGroupComponent, ConfigProvider, _default$c as DataGridComponent, DateFormat, _default$b as DatePickerComponent, _default$a as DateRangePickerComponent, DropdownButtonComponent, FeedbackProvider, _default$f as FormItemComponent, IconCheckOrClose, _default$9 as InputComponent, LinkComponent, _default$8 as NumberFormatComponent, _default$7 as RadioComponent, _default$5 as SelectAsyncComponent, _default$6 as SelectComponent, _default$4 as SwitchComponent, _default$2 as TableAsyncComponent, _default$1 as TableCellEditableComponent, _default$3 as TableComponent, TableRowProvider, TabsComponent, TagComponent, _default as TextAreaComponent, TransformBoolean, TransformDayjs, TransformNumber, UploadDraggerComponent, colInline, colLayout, datePickerFormat, _default$i as formColLayout, formatCodeDescription, formatCodeName, formatDescription, formatName, getTableAsyncName, getTableFilterStorage, selectAsync, styleCSS, toCamel, useConfig, useDataGrid, useFeedback, useRemoveError, useTableAsyncSearch, useTableRow };
|
|
1110
1121
|
export type { ButtonComponentProps, ButtonComponentRef, ButtonGroupAddComponentProps, ButtonGroupEditComponentProps, CardComponentProps, CascaderComponentProps, CascaderComponentRef, CheckboxComponentProps, CheckboxComponentRef, CheckboxGroupComponentProps, CheckboxGroupComponentRef, ConfigContextType, ConfigProviderProps, DataGridColumn, DataGridColumnType, DataGridComponentProps, DataGridComponentRef, DataGridContextType, DataGridFilter, DataGridFilterColumn, DataGridRow, DatePickerComponentProps, DatePickerComponentRef, DatePickerFormat, DatePickerFormatType, DateRangePickerComponentProps, DateRangePickerComponentRef, DefaultColumn, DefaultParams, DropdownButtonComponentProps, DropdownButtonMenuItem, FeedbackContextType, FormColLayout, FormColSizeSpan, FormItemComponentProps, IconCheckOrCloseProps, InputComponentProps, InputComponentRef, LinkComponentProps, LinkType, NumberFormatComponentProps, NumberFormatComponentRef, OTPProps, RadioComponentProps, SelectAsyncComponentProps, SelectAsyncComponentRef, SelectAsyncFormat, SelectAsyncProps, SelectComponentProps, SelectOption, SwitchComponentProps, TableAsyncComponentProps, TableAsyncComponentRef, TableAsyncSearchCheckbox, TableAsyncSearchContextType, TableAsyncSearchDate, TableAsyncSearchDateRange, TableAsyncSearchFetchSelectMultiple, TableAsyncSearchItem, TableAsyncSearchItemType, TableAsyncSearchLocalSelectMultiple, TableAsyncSearchProviderProps, TableAsyncSearchSelectFetch, TableAsyncSearchSelectLocal, TableAsyncSearchSelectMultiple, TableAsyncSearchSwitch, TableAsyncSearchText, TableAsyncType, TableButtonMiddle, TableButtonMiddleAsync, TableCellEditableProps, TableComponentProps, TableParams, TableParamsFormatter, TableRowContextType, TableRowProviderProps, TabsComponentProps, TagComponentProps, TextAreaComponentProps, TextAreaComponentRef, UploadDraggerComponentProps, YajraColumn, YajraColumnParams, YajraOrderParams, YajraParams, YajraSearchParams };
|