assui 2.3.3 → 2.3.5
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/es/button-drawer/index.js +1 -1
- package/es/button-modal/index.js +1 -1
- package/es/copy-to-clipboard/index.js +1 -1
- package/es/highlight-textarea/style/index.css +7 -3
- package/es/img-crop/index.js +1 -1
- package/es/keep-tab/index.js +25 -26
- package/es/keep-tab/style/index.css +29 -6
- package/es/text-input/style/index.css +7 -3
- package/lib/button-drawer/index.js +1 -1
- package/lib/button-modal/index.js +1 -1
- package/lib/copy-to-clipboard/index.js +1 -1
- package/lib/highlight-textarea/style/index.css +7 -3
- package/lib/img-crop/index.js +1 -1
- package/lib/keep-tab/index.js +25 -27
- package/lib/keep-tab/style/index.css +29 -6
- package/lib/text-input/style/index.css +7 -3
- package/package.json +3 -3
- package/es/a-select/index.d.ts +0 -11
- package/es/a-select/style/index.d.ts +0 -2
- package/es/area-text/index.d.ts +0 -7
- package/es/area-text/style/index.d.ts +0 -1
- package/es/beautiful-dnd/index.d.ts +0 -2
- package/es/beautiful-dnd/style/index.d.ts +0 -1
- package/es/button-drawer/index.d.ts +0 -14
- package/es/button-drawer/style/index.d.ts +0 -1
- package/es/button-modal/index.d.ts +0 -14
- package/es/button-modal/style/index.d.ts +0 -1
- package/es/color-select/index.d.ts +0 -23
- package/es/color-select/style/index.d.ts +0 -2
- package/es/condition-input/index.d.ts +0 -17
- package/es/condition-input/parse2RegexOption.d.ts +0 -13
- package/es/condition-input/style/index.d.ts +0 -1
- package/es/config-provider/context.d.ts +0 -4
- package/es/config-provider/index.d.ts +0 -8
- package/es/config-provider/style/index.d.ts +0 -1
- package/es/copy-to-clipboard/index.d.ts +0 -22
- package/es/copy-to-clipboard/style/index.d.ts +0 -1
- package/es/highlight-textarea/HighlighedContents.d.ts +0 -7
- package/es/highlight-textarea/extractSpansOfClasses.d.ts +0 -15
- package/es/highlight-textarea/getRanges.d.ts +0 -2
- package/es/highlight-textarea/getType.d.ts +0 -2
- package/es/highlight-textarea/index.d.ts +0 -12
- package/es/highlight-textarea/style/index.d.ts +0 -1
- package/es/highlight-textarea/types.d.ts +0 -16
- package/es/highlight-words/index.d.ts +0 -3
- package/es/highlight-words/style/index.d.ts +0 -1
- package/es/img-crop/EasyCrop.d.ts +0 -6
- package/es/img-crop/getCroppedImg.d.ts +0 -6
- package/es/img-crop/index.d.ts +0 -53
- package/es/img-crop/style/index.d.ts +0 -3
- package/es/index.d.ts +0 -72
- package/es/json-editor/index.d.ts +0 -10
- package/es/json-editor/style/index.d.ts +0 -2
- package/es/keep-tab/index.d.ts +0 -29
- package/es/keep-tab/style/index.d.ts +0 -2
- package/es/label-auto-complete/index.d.ts +0 -8
- package/es/label-auto-complete/style/index.d.ts +0 -2
- package/es/label-condition-input/index.d.ts +0 -16
- package/es/label-condition-input/style/index.d.ts +0 -1
- package/es/label-customize-range-picker/defaultRadioList.d.ts +0 -25
- package/es/label-customize-range-picker/index.d.ts +0 -20
- package/es/label-customize-range-picker/style/index.d.ts +0 -5
- package/es/label-customize-range-picker/utils/index.d.ts +0 -2
- package/es/label-date-picker/index.d.ts +0 -7
- package/es/label-date-picker/style/index.d.ts +0 -2
- package/es/label-input/index.d.ts +0 -29
- package/es/label-input/style/index.d.ts +0 -1
- package/es/label-number-input/index.d.ts +0 -12
- package/es/label-number-input/style/index.d.ts +0 -1
- package/es/label-range-picker/index.d.ts +0 -8
- package/es/label-range-picker/style/index.d.ts +0 -2
- package/es/label-select/index.d.ts +0 -12
- package/es/label-select/style/index.d.ts +0 -2
- package/es/label-text-area/index.d.ts +0 -21
- package/es/label-text-area/style/index.d.ts +0 -1
- package/es/label-tree-select/index.d.ts +0 -11
- package/es/label-tree-select/style/index.d.ts +0 -2
- package/es/messages/ar_EG.d.ts +0 -26
- package/es/messages/bg_BG.d.ts +0 -26
- package/es/messages/cs_CZ.d.ts +0 -26
- package/es/messages/de_DE.d.ts +0 -26
- package/es/messages/en_US.d.ts +0 -26
- package/es/messages/es_ES.d.ts +0 -26
- package/es/messages/fi_FI.d.ts +0 -26
- package/es/messages/fr_FR.d.ts +0 -26
- package/es/messages/id_ID.d.ts +0 -26
- package/es/messages/index.d.ts +0 -27
- package/es/messages/it_IT.d.ts +0 -26
- package/es/messages/ja_JP.d.ts +0 -26
- package/es/messages/ko_KR.d.ts +0 -26
- package/es/messages/nb_NO.d.ts +0 -26
- package/es/messages/nl_NL.d.ts +0 -26
- package/es/messages/pt_PT.d.ts +0 -26
- package/es/messages/ro_RO.d.ts +0 -26
- package/es/messages/ru_RU.d.ts +0 -26
- package/es/messages/sv_SE.d.ts +0 -26
- package/es/messages/th_TH.d.ts +0 -26
- package/es/messages/vi_VN.d.ts +0 -26
- package/es/messages/zh_CN.d.ts +0 -26
- package/es/messages/zh_TW.d.ts +0 -26
- package/es/number-format-input/index.d.ts +0 -5
- package/es/number-format-input/style/index.d.ts +0 -1
- package/es/number-input/const/dataTypeEnum.d.ts +0 -3
- package/es/number-input/const/numberType.d.ts +0 -2
- package/es/number-input/index.d.ts +0 -42
- package/es/number-input/style/index.d.ts +0 -1
- package/es/number-input/utils.d.ts +0 -10
- package/es/rc-echart/core.d.ts +0 -29
- package/es/rc-echart/index.d.ts +0 -19
- package/es/rc-echart/style/index.d.ts +0 -1
- package/es/rc-motion/index.d.ts +0 -4
- package/es/rc-motion/style/index.d.ts +0 -1
- package/es/rc-qrcode/index.d.ts +0 -21
- package/es/rc-qrcode/style/index.d.ts +0 -1
- package/es/rc-qrcode/useQrcode.d.ts +0 -4
- package/es/rc-transition-group/index.d.ts +0 -2
- package/es/rc-transition-group/style/index.d.ts +0 -1
- package/es/resizable/index.d.ts +0 -4
- package/es/resizable/style/index.d.ts +0 -1
- package/es/rich-text-editor/index.d.ts +0 -37
- package/es/rich-text-editor/lang/zh_CN.d.ts +0 -407
- package/es/rich-text-editor/plugins/code/index.d.ts +0 -2
- package/es/rich-text-editor/style/index.d.ts +0 -1
- package/es/single-img-upload/index.d.ts +0 -22
- package/es/single-img-upload/style/index.d.ts +0 -3
- package/es/sortable-hoc/index.d.ts +0 -2
- package/es/sortable-hoc/style/index.d.ts +0 -1
- package/es/split-pane/index.d.ts +0 -59
- package/es/split-pane/style/index.d.ts +0 -1
- package/es/step-number-input/const/countType.d.ts +0 -2
- package/es/step-number-input/const/numberType.d.ts +0 -2
- package/es/step-number-input/index.d.ts +0 -43
- package/es/step-number-input/style/index.d.ts +0 -2
- package/es/table-col/index.d.ts +0 -8
- package/es/table-col/style/index.d.ts +0 -1
- package/es/text-area/index.d.ts +0 -12
- package/es/text-area/style/index.d.ts +0 -1
- package/es/text-input/index.d.ts +0 -5
- package/es/text-input/style/index.d.ts +0 -1
- package/lib/a-select/index.d.ts +0 -11
- package/lib/a-select/style/index.d.ts +0 -2
- package/lib/area-text/index.d.ts +0 -7
- package/lib/area-text/style/index.d.ts +0 -1
- package/lib/beautiful-dnd/index.d.ts +0 -2
- package/lib/beautiful-dnd/style/index.d.ts +0 -1
- package/lib/button-drawer/index.d.ts +0 -14
- package/lib/button-drawer/style/index.d.ts +0 -1
- package/lib/button-modal/index.d.ts +0 -14
- package/lib/button-modal/style/index.d.ts +0 -1
- package/lib/color-select/index.d.ts +0 -23
- package/lib/color-select/style/index.d.ts +0 -2
- package/lib/condition-input/index.d.ts +0 -17
- package/lib/condition-input/parse2RegexOption.d.ts +0 -13
- package/lib/condition-input/style/index.d.ts +0 -1
- package/lib/config-provider/context.d.ts +0 -4
- package/lib/config-provider/index.d.ts +0 -8
- package/lib/config-provider/style/index.d.ts +0 -1
- package/lib/copy-to-clipboard/index.d.ts +0 -22
- package/lib/copy-to-clipboard/style/index.d.ts +0 -1
- package/lib/highlight-textarea/HighlighedContents.d.ts +0 -7
- package/lib/highlight-textarea/extractSpansOfClasses.d.ts +0 -15
- package/lib/highlight-textarea/getRanges.d.ts +0 -2
- package/lib/highlight-textarea/getType.d.ts +0 -2
- package/lib/highlight-textarea/index.d.ts +0 -12
- package/lib/highlight-textarea/style/index.d.ts +0 -1
- package/lib/highlight-textarea/types.d.ts +0 -16
- package/lib/highlight-words/index.d.ts +0 -3
- package/lib/highlight-words/style/index.d.ts +0 -1
- package/lib/img-crop/EasyCrop.d.ts +0 -6
- package/lib/img-crop/getCroppedImg.d.ts +0 -6
- package/lib/img-crop/index.d.ts +0 -53
- package/lib/img-crop/style/index.d.ts +0 -3
- package/lib/index.d.ts +0 -72
- package/lib/json-editor/index.d.ts +0 -10
- package/lib/json-editor/style/index.d.ts +0 -2
- package/lib/keep-tab/index.d.ts +0 -29
- package/lib/keep-tab/style/index.d.ts +0 -2
- package/lib/label-auto-complete/index.d.ts +0 -8
- package/lib/label-auto-complete/style/index.d.ts +0 -2
- package/lib/label-condition-input/index.d.ts +0 -16
- package/lib/label-condition-input/style/index.d.ts +0 -1
- package/lib/label-customize-range-picker/defaultRadioList.d.ts +0 -25
- package/lib/label-customize-range-picker/index.d.ts +0 -20
- package/lib/label-customize-range-picker/style/index.d.ts +0 -5
- package/lib/label-customize-range-picker/utils/index.d.ts +0 -2
- package/lib/label-date-picker/index.d.ts +0 -7
- package/lib/label-date-picker/style/index.d.ts +0 -2
- package/lib/label-input/index.d.ts +0 -29
- package/lib/label-input/style/index.d.ts +0 -1
- package/lib/label-number-input/index.d.ts +0 -12
- package/lib/label-number-input/style/index.d.ts +0 -1
- package/lib/label-range-picker/index.d.ts +0 -8
- package/lib/label-range-picker/style/index.d.ts +0 -2
- package/lib/label-select/index.d.ts +0 -12
- package/lib/label-select/style/index.d.ts +0 -2
- package/lib/label-text-area/index.d.ts +0 -21
- package/lib/label-text-area/style/index.d.ts +0 -1
- package/lib/label-tree-select/index.d.ts +0 -11
- package/lib/label-tree-select/style/index.d.ts +0 -2
- package/lib/messages/ar_EG.d.ts +0 -26
- package/lib/messages/bg_BG.d.ts +0 -26
- package/lib/messages/cs_CZ.d.ts +0 -26
- package/lib/messages/de_DE.d.ts +0 -26
- package/lib/messages/en_US.d.ts +0 -26
- package/lib/messages/es_ES.d.ts +0 -26
- package/lib/messages/fi_FI.d.ts +0 -26
- package/lib/messages/fr_FR.d.ts +0 -26
- package/lib/messages/id_ID.d.ts +0 -26
- package/lib/messages/index.d.ts +0 -27
- package/lib/messages/it_IT.d.ts +0 -26
- package/lib/messages/ja_JP.d.ts +0 -26
- package/lib/messages/ko_KR.d.ts +0 -26
- package/lib/messages/nb_NO.d.ts +0 -26
- package/lib/messages/nl_NL.d.ts +0 -26
- package/lib/messages/pt_PT.d.ts +0 -26
- package/lib/messages/ro_RO.d.ts +0 -26
- package/lib/messages/ru_RU.d.ts +0 -26
- package/lib/messages/sv_SE.d.ts +0 -26
- package/lib/messages/th_TH.d.ts +0 -26
- package/lib/messages/vi_VN.d.ts +0 -26
- package/lib/messages/zh_CN.d.ts +0 -26
- package/lib/messages/zh_TW.d.ts +0 -26
- package/lib/number-format-input/index.d.ts +0 -5
- package/lib/number-format-input/style/index.d.ts +0 -1
- package/lib/number-input/const/dataTypeEnum.d.ts +0 -3
- package/lib/number-input/const/numberType.d.ts +0 -2
- package/lib/number-input/index.d.ts +0 -42
- package/lib/number-input/style/index.d.ts +0 -1
- package/lib/number-input/utils.d.ts +0 -10
- package/lib/rc-echart/core.d.ts +0 -29
- package/lib/rc-echart/index.d.ts +0 -19
- package/lib/rc-echart/style/index.d.ts +0 -1
- package/lib/rc-motion/index.d.ts +0 -4
- package/lib/rc-motion/style/index.d.ts +0 -1
- package/lib/rc-qrcode/index.d.ts +0 -21
- package/lib/rc-qrcode/style/index.d.ts +0 -1
- package/lib/rc-qrcode/useQrcode.d.ts +0 -4
- package/lib/rc-transition-group/index.d.ts +0 -2
- package/lib/rc-transition-group/style/index.d.ts +0 -1
- package/lib/resizable/index.d.ts +0 -4
- package/lib/resizable/style/index.d.ts +0 -1
- package/lib/rich-text-editor/index.d.ts +0 -37
- package/lib/rich-text-editor/lang/zh_CN.d.ts +0 -407
- package/lib/rich-text-editor/plugins/code/index.d.ts +0 -2
- package/lib/rich-text-editor/style/index.d.ts +0 -1
- package/lib/single-img-upload/index.d.ts +0 -22
- package/lib/single-img-upload/style/index.d.ts +0 -3
- package/lib/sortable-hoc/index.d.ts +0 -2
- package/lib/sortable-hoc/style/index.d.ts +0 -1
- package/lib/split-pane/index.d.ts +0 -59
- package/lib/split-pane/style/index.d.ts +0 -1
- package/lib/step-number-input/const/countType.d.ts +0 -2
- package/lib/step-number-input/const/numberType.d.ts +0 -2
- package/lib/step-number-input/index.d.ts +0 -43
- package/lib/step-number-input/style/index.d.ts +0 -2
- package/lib/table-col/index.d.ts +0 -8
- package/lib/table-col/style/index.d.ts +0 -1
- package/lib/text-area/index.d.ts +0 -12
- package/lib/text-area/style/index.d.ts +0 -1
- package/lib/text-input/index.d.ts +0 -5
- package/lib/text-input/style/index.d.ts +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface StepNumberInputProps {
|
|
3
|
-
/** 输入框的内容 */
|
|
4
|
-
value?: string | number;
|
|
5
|
-
/** 输入数据的类型 */
|
|
6
|
-
numberType?: 'int' | 'float';
|
|
7
|
-
/** 精度,只对float有效 */
|
|
8
|
-
precision: number;
|
|
9
|
-
/** 内容最大长度 */
|
|
10
|
-
maxLength?: number;
|
|
11
|
-
/** 指定输入框展示值的格式 */
|
|
12
|
-
formatter?: (value: string) => string;
|
|
13
|
-
/** 指定从 formatter 里转换回数字的方式,和 formatter 搭配使用 */
|
|
14
|
-
parser?: (value: string) => string;
|
|
15
|
-
/** 是否允许输入负数 */
|
|
16
|
-
enableMinus?: boolean;
|
|
17
|
-
/** 步进, 每次点击+/- 多少 */
|
|
18
|
-
step: string | number;
|
|
19
|
-
/** 变化回调 */
|
|
20
|
-
onChange?: (value: string) => void;
|
|
21
|
-
/** 失去焦点回调 */
|
|
22
|
-
onBlur?: (value: string) => void;
|
|
23
|
-
/** 最大值 */
|
|
24
|
-
max?: number;
|
|
25
|
-
/** 最小值 */
|
|
26
|
-
min?: number;
|
|
27
|
-
/** 前缀 */
|
|
28
|
-
prefix?: React.ReactNode;
|
|
29
|
-
/** 后缀 */
|
|
30
|
-
suffix?: React.ReactNode;
|
|
31
|
-
/** 可以点击清除图标删除内容 */
|
|
32
|
-
allowClear?: boolean;
|
|
33
|
-
}
|
|
34
|
-
declare const StepNumberInput: {
|
|
35
|
-
(props: StepNumberInputProps): JSX.Element;
|
|
36
|
-
defaultProps: {
|
|
37
|
-
numberType: string;
|
|
38
|
-
precision: number;
|
|
39
|
-
enableMinus: boolean;
|
|
40
|
-
step: number;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export default StepNumberInput;
|
package/es/table-col/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/es/text-area/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { TextAreaProps } from 'antd/lib/input';
|
|
3
|
-
export interface TAreaProps extends Omit<TextAreaProps, 'onChange'> {
|
|
4
|
-
/** 输入框内容 */
|
|
5
|
-
value?: any;
|
|
6
|
-
/** 指定输入框展示值的格式 */
|
|
7
|
-
formatter?: (value: string) => string;
|
|
8
|
-
/** 变化回调 */
|
|
9
|
-
onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const TextArea: ({ value, onChange, formatter, ...restProps }: TAreaProps) => JSX.Element;
|
|
12
|
-
export default TextArea;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'antd/lib/input/style';
|
package/es/text-input/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ConditionInputProps } from '../condition-input';
|
|
3
|
-
export declare type TextInputProps = ConditionInputProps;
|
|
4
|
-
declare const TextInput: React.ForwardRefExoticComponent<ConditionInputProps & React.RefAttributes<unknown>>;
|
|
5
|
-
export default TextInput;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
package/lib/a-select/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SelectProps } from 'antd/lib/select';
|
|
3
|
-
export interface ASelectProps extends SelectProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
valueRender?: (value: any) => React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
declare const ASelect: {
|
|
8
|
-
(props: ASelectProps): JSX.Element;
|
|
9
|
-
Option: import("rc-select/lib/Option").OptionFC;
|
|
10
|
-
};
|
|
11
|
-
export default ASelect;
|
package/lib/area-text/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DrawerProps } from 'antd/lib/drawer';
|
|
3
|
-
export declare type DrawerAction = {
|
|
4
|
-
close: () => void;
|
|
5
|
-
open: () => void;
|
|
6
|
-
};
|
|
7
|
-
export interface ButtonDrawerProps extends Omit<DrawerProps, 'children'> {
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
onOpen?: () => void;
|
|
10
|
-
trigger: React.ReactElement;
|
|
11
|
-
children: ((v: DrawerAction) => React.ReactElement) | React.ReactElement;
|
|
12
|
-
}
|
|
13
|
-
declare const ForwardRefButtonDrawer: React.ForwardRefExoticComponent<ButtonDrawerProps & React.RefAttributes<unknown>>;
|
|
14
|
-
export default ForwardRefButtonDrawer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'antd/lib/drawer/style';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ModalProps } from 'antd/lib/modal';
|
|
3
|
-
export interface ModalAction {
|
|
4
|
-
open: () => void;
|
|
5
|
-
close: () => void;
|
|
6
|
-
}
|
|
7
|
-
export interface ButtonModalProps extends Omit<ModalProps, 'children'> {
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
onOpen?: () => void;
|
|
10
|
-
trigger?: React.ReactElement;
|
|
11
|
-
children: ((v: ModalAction) => React.ReactElement) | React.ReactElement;
|
|
12
|
-
}
|
|
13
|
-
declare const ForwardRefButtonModal: React.ForwardRefExoticComponent<ButtonModalProps & React.RefAttributes<unknown>>;
|
|
14
|
-
export default ForwardRefButtonModal;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'antd/lib/modal/style';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { SketchPickerProps } from 'react-color';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { TriggerProps } from 'rc-trigger';
|
|
4
|
-
export declare type ColorSelectProps = {
|
|
5
|
-
value?: {
|
|
6
|
-
hex?: string;
|
|
7
|
-
rgb?: string;
|
|
8
|
-
};
|
|
9
|
-
/** 自定义总容器 class */
|
|
10
|
-
classNameWrap?: string;
|
|
11
|
-
/** 自定义其余描述展示 */
|
|
12
|
-
renderExtra?: (value: ColorSelectProps['value']) => React.ReactElement;
|
|
13
|
-
/** 自定义value class */
|
|
14
|
-
className?: string;
|
|
15
|
-
/** 组件react-color的props */
|
|
16
|
-
reactColorProps?: Omit<SketchPickerProps, 'onChange'>;
|
|
17
|
-
/** 组件rc-trigger */
|
|
18
|
-
RcTriggerProps?: Omit<TriggerProps, 'popup'>;
|
|
19
|
-
/** 自定义value的展示 */
|
|
20
|
-
renderValueNode?: (value: ColorSelectProps['value']) => React.ReactElement;
|
|
21
|
-
};
|
|
22
|
-
declare const ColorSelect: React.FC<ColorSelectProps>;
|
|
23
|
-
export default ColorSelect;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { InputProps } from 'antd/lib/input';
|
|
3
|
-
export interface ConditionInputProps extends Omit<InputProps, 'onChange'> {
|
|
4
|
-
/** 过滤的正则条件 */
|
|
5
|
-
regexp?: RegExp | (RegExp | string | {
|
|
6
|
-
pattern: RegExp;
|
|
7
|
-
replacement?: string;
|
|
8
|
-
})[];
|
|
9
|
-
/** 指定输入框展示值的格式 */
|
|
10
|
-
formatter?: (value: string) => string;
|
|
11
|
-
/** 变化回调 */
|
|
12
|
-
onChange?: (value: string) => void;
|
|
13
|
-
/** 输入框内容 */
|
|
14
|
-
value?: string;
|
|
15
|
-
}
|
|
16
|
-
declare const ConditionInput: React.ForwardRefExoticComponent<ConditionInputProps & React.RefAttributes<unknown>>;
|
|
17
|
-
export default ConditionInput;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface RegexOptionType {
|
|
2
|
-
isValid: boolean;
|
|
3
|
-
replacement: string;
|
|
4
|
-
}
|
|
5
|
-
declare type regexParamsType = RegExp | string | {
|
|
6
|
-
pattern: RegExp;
|
|
7
|
-
replacement?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface ResultType extends RegexOptionType {
|
|
10
|
-
pattern: RegExp;
|
|
11
|
-
}
|
|
12
|
-
declare const parse2RegexOption: (regex: regexParamsType) => ResultType;
|
|
13
|
-
export default parse2RegexOption;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'antd/lib/input/style';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type LocaleType = 'en-US' | 'zh-CN' | 'zh-TW' | 'bg' | 'cs' | 'de' | 'es' | 'fr' | 'fi' | 'it' | 'id' | 'ja' | 'ko' | 'nl' | 'nb-NO' | 'ru' | 'sv' | 'pt' | 'ar' | 'th' | 'ro' | 'vi';
|
|
3
|
-
export interface ConfigProviderProps {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
locale: LocaleType;
|
|
6
|
-
}
|
|
7
|
-
declare const ConfigProvider: React.FC<ConfigProviderProps>;
|
|
8
|
-
export default ConfigProvider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TooltipProps } from 'antd/lib/tooltip';
|
|
3
|
-
export interface CopyToClipboardProps {
|
|
4
|
-
/** 需要复制的字符串 */
|
|
5
|
-
text: string;
|
|
6
|
-
/** 触发复制事件的元素 */
|
|
7
|
-
children: React.ReactElement;
|
|
8
|
-
/** 文本被复制时候的回调 */
|
|
9
|
-
onCopy?: (text: string, result: boolean) => void;
|
|
10
|
-
/** ant design Tooltip props */
|
|
11
|
-
tooltipProps?: Omit<TooltipProps, 'title'>;
|
|
12
|
-
/** 复制成功的Tooltip提示文案 */
|
|
13
|
-
tooltipTitle?: React.ReactNode;
|
|
14
|
-
/** 依赖底层组件 https://github.com/sudodoki/copy-to-clipboard 的 options */
|
|
15
|
-
options?: {
|
|
16
|
-
debug?: boolean;
|
|
17
|
-
message?: string;
|
|
18
|
-
format?: string;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
declare const _default: React.MemoExoticComponent<(props: CopyToClipboardProps) => JSX.Element>;
|
|
22
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { HighlightType } from './types';
|
|
2
|
-
export interface HighlighedContentsProps {
|
|
3
|
-
value: string;
|
|
4
|
-
highlight: HighlightType;
|
|
5
|
-
}
|
|
6
|
-
declare const HighlighedContents: ({ value, highlight }: HighlighedContentsProps) => JSX.Element;
|
|
7
|
-
export default HighlighedContents;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { RangesType } from './types';
|
|
2
|
-
declare class Span {
|
|
3
|
-
beginIndex: number;
|
|
4
|
-
endIndex: number;
|
|
5
|
-
markClasses: Set<string>;
|
|
6
|
-
isMark: boolean;
|
|
7
|
-
text: string;
|
|
8
|
-
constructor(text: string, beginIndex: number);
|
|
9
|
-
setMark(className: string): void;
|
|
10
|
-
carve(beginIndex2: number): Span;
|
|
11
|
-
get className(): string;
|
|
12
|
-
render(): JSX.Element;
|
|
13
|
-
}
|
|
14
|
-
export default function extractSpansOfClasses(value: string, ranges: RangesType): Span[];
|
|
15
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { HighlighedContentsProps } from './HighlighedContents';
|
|
3
|
-
import type { HighlightType } from './types';
|
|
4
|
-
export interface HighlightTextareaProps extends HighlighedContentsProps, Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChange' | 'onScroll' | 'style'> {
|
|
5
|
-
prefixCls?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
textAreaClassName?: string;
|
|
8
|
-
onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
9
|
-
highlight: HighlightType;
|
|
10
|
-
}
|
|
11
|
-
declare const HighlightWithinTextarea: React.ForwardRefExoticComponent<HighlightTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
12
|
-
export default HighlightWithinTextarea;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare type StringType = string;
|
|
2
|
-
export declare type NumberArrayType = number[];
|
|
3
|
-
export declare type RegExpType = RegExp;
|
|
4
|
-
export declare type FuncType = (input: string) => string;
|
|
5
|
-
export declare type HighlightInstanceType = StringType | NumberArrayType | RegExpType | FuncType;
|
|
6
|
-
export declare type AdmixArrayType = HighlightInstanceType[];
|
|
7
|
-
export declare type ObjectType = {
|
|
8
|
-
highlight: HighlightInstanceType;
|
|
9
|
-
className?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare type CustomArrayArrayType = ObjectType[];
|
|
12
|
-
export declare type RangesType = (number | {
|
|
13
|
-
className?: string;
|
|
14
|
-
})[][];
|
|
15
|
-
export declare type HighlightType = StringType | NumberArrayType | RegExpType | FuncType | HighlightInstanceType | AdmixArrayType | ObjectType | CustomArrayArrayType;
|
|
16
|
-
export declare type TypeList = 'falsely' | 'range' | 'array' | 'regexp' | 'custom' | 'other' | 'function' | 'string';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CropperProps } from 'react-easy-crop';
|
|
2
|
-
export interface EasyCropProps extends Omit<CropperProps, 'onCropChange' | 'mediaProps' | 'crop' | 'zoomSpeed' | 'restrictPosition' | 'style'> {
|
|
3
|
-
onComplete: (value: any) => void;
|
|
4
|
-
}
|
|
5
|
-
declare const EasyCrop: (props: EasyCropProps) => JSX.Element;
|
|
6
|
-
export default EasyCrop;
|
package/lib/img-crop/index.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { CropperProps } from 'react-easy-crop';
|
|
3
|
-
import getCroppedImg from './getCroppedImg';
|
|
4
|
-
import './style/index.less';
|
|
5
|
-
export interface RcFile extends File {
|
|
6
|
-
uid: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ImgCropProps {
|
|
9
|
-
prefix: string;
|
|
10
|
-
aspect: number;
|
|
11
|
-
shape: 'rect' | 'round';
|
|
12
|
-
grid?: boolean;
|
|
13
|
-
quality?: number;
|
|
14
|
-
zoom?: boolean;
|
|
15
|
-
rotate?: boolean;
|
|
16
|
-
minZoom: number;
|
|
17
|
-
maxZoom: number;
|
|
18
|
-
fillColor: string;
|
|
19
|
-
modalTitle: string;
|
|
20
|
-
modalWidth?: string | number;
|
|
21
|
-
modalCancel?: string;
|
|
22
|
-
modalOk?: string;
|
|
23
|
-
zipImg?: {
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
};
|
|
27
|
-
beforeCrop?: (file: RcFile, fileList: RcFile[]) => boolean;
|
|
28
|
-
cropperProps?: CropperProps;
|
|
29
|
-
children?: React.ReactElement;
|
|
30
|
-
}
|
|
31
|
-
export declare type Area = {
|
|
32
|
-
width: number;
|
|
33
|
-
height: number;
|
|
34
|
-
x: number;
|
|
35
|
-
y: number;
|
|
36
|
-
};
|
|
37
|
-
declare const ImgCrop: {
|
|
38
|
-
(props: ImgCropProps): JSX.Element;
|
|
39
|
-
defaultProps: {
|
|
40
|
-
prefix: string;
|
|
41
|
-
aspect: number;
|
|
42
|
-
shape: string;
|
|
43
|
-
grid: boolean;
|
|
44
|
-
quality: number;
|
|
45
|
-
zoom: boolean;
|
|
46
|
-
rotate: boolean;
|
|
47
|
-
minZoom: number;
|
|
48
|
-
maxZoom: number;
|
|
49
|
-
fillColor: string;
|
|
50
|
-
};
|
|
51
|
-
getCroppedImg: typeof getCroppedImg;
|
|
52
|
-
};
|
|
53
|
-
export default ImgCrop;
|
package/lib/index.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
export type { ButtonDrawerProps } from './button-drawer';
|
|
2
|
-
export { default as ButtonDrawer } from './button-drawer';
|
|
3
|
-
export type { ButtonModalProps } from './button-modal';
|
|
4
|
-
export { default as ButtonModal } from './button-modal';
|
|
5
|
-
export type { ConditionInputProps } from './condition-input';
|
|
6
|
-
export { default as ConditionInput } from './condition-input';
|
|
7
|
-
export type { ConfigProviderProps } from './config-provider';
|
|
8
|
-
export { default as ConfigProvider } from './config-provider';
|
|
9
|
-
export { default as NumberFormatInput } from './number-format-input';
|
|
10
|
-
export type { NumberFormatInputProps } from './number-format-input';
|
|
11
|
-
export type { CopyToClipboardProps } from './copy-to-clipboard';
|
|
12
|
-
export { default as CopyToClipboard } from './copy-to-clipboard';
|
|
13
|
-
export type { HighlightTextareaProps } from './highlight-textarea';
|
|
14
|
-
export { default as HighlightTextarea } from './highlight-textarea';
|
|
15
|
-
export type { FindChunks, Chunk, HighlighterProps } from './highlight-words';
|
|
16
|
-
export { default as HighlightWords } from './highlight-words';
|
|
17
|
-
export type { ImgCropProps } from './img-crop';
|
|
18
|
-
export { default as ImgCrop } from './img-crop';
|
|
19
|
-
export type { KeepTabProps } from './keep-tab';
|
|
20
|
-
export { default as KeepTab } from './keep-tab';
|
|
21
|
-
export type { CSSMotionProps, CSSMotionList, CSSMotionListProps, MotionEventHandler, MotionEndEventHandler, } from './rc-motion';
|
|
22
|
-
export { default as RcMotion } from './rc-motion';
|
|
23
|
-
export type { NumberInputProps } from './number-input';
|
|
24
|
-
export { default as NumberInput } from './number-input';
|
|
25
|
-
export type { StepNumberInputProps } from './step-number-input';
|
|
26
|
-
export { default as StepNumberInput } from './step-number-input';
|
|
27
|
-
export type { RcEchartPropsType } from './rc-echart';
|
|
28
|
-
export { default as RcEcharts } from './rc-echart';
|
|
29
|
-
export type { RcQrcodeProps } from './rc-qrcode';
|
|
30
|
-
export { default as RcQRcode } from './rc-qrcode';
|
|
31
|
-
export { default as RcTransitionGroup } from './rc-transition-group';
|
|
32
|
-
export type { SingleImgUploadProps } from './single-img-upload';
|
|
33
|
-
export { default as SingleImgUpload } from './single-img-upload';
|
|
34
|
-
export { default as sortableHoc } from './sortable-hoc';
|
|
35
|
-
export type { SplitPaneProps } from './split-pane';
|
|
36
|
-
export { default as SplitPane } from './split-pane';
|
|
37
|
-
export type { TAreaProps } from './text-area';
|
|
38
|
-
export { default as TextArea } from './text-area';
|
|
39
|
-
export type { TextInputProps } from './text-input';
|
|
40
|
-
export { default as TextInput } from './text-input';
|
|
41
|
-
export type { LabelInputProps } from './label-input';
|
|
42
|
-
export { default as LabelInput } from './label-input';
|
|
43
|
-
export type { ColorSelectProps } from './color-select';
|
|
44
|
-
export { default as ColorSelect } from './color-select';
|
|
45
|
-
export type { LabelSelectProps } from './label-select';
|
|
46
|
-
export { default as LabelSelect } from './label-select';
|
|
47
|
-
export type { ASelectProps } from './a-select';
|
|
48
|
-
export { default as ASelect } from './a-select';
|
|
49
|
-
export type { LabelTextAreaProps } from './label-text-area';
|
|
50
|
-
export { default as LabelTextArea } from './label-text-area';
|
|
51
|
-
export type { AreaTextProps } from './area-text';
|
|
52
|
-
export { default as AreaText } from './area-text';
|
|
53
|
-
export type { JSONEditorProps } from './json-editor';
|
|
54
|
-
export { default as JsonEditor } from './json-editor';
|
|
55
|
-
export type { LabelRangePickerProps } from './label-range-picker';
|
|
56
|
-
export { default as LabelRangePicker } from './label-range-picker';
|
|
57
|
-
export type { LabelDatePickerProps } from './label-date-picker';
|
|
58
|
-
export { default as LabelDatePicker } from './label-date-picker';
|
|
59
|
-
export type { LabelAutoCompleteProps } from './label-auto-complete';
|
|
60
|
-
export { default as LabelAutoComplete } from './label-auto-complete';
|
|
61
|
-
export type { LabelNumberInputProps } from './label-number-input';
|
|
62
|
-
export { default as LabelNumberInput } from './label-number-input';
|
|
63
|
-
export type { LabelConditionInputProps } from './label-condition-input';
|
|
64
|
-
export { default as LabelConditionInput } from './label-condition-input';
|
|
65
|
-
export type { LabelTreeSelectProps } from './label-tree-select';
|
|
66
|
-
export { default as LabelTreeSelect } from './label-tree-select';
|
|
67
|
-
export type { LabelCustomizeRangePickerProps } from './label-customize-range-picker';
|
|
68
|
-
export { default as LabelCustomizeRangePicker } from './label-customize-range-picker';
|
|
69
|
-
export type { RichTextEditorProps } from './rich-text-editor';
|
|
70
|
-
export { default as RichTextEditor } from './rich-text-editor';
|
|
71
|
-
export { default as BeautifulDnd } from './beautiful-dnd';
|
|
72
|
-
export { default as Resizable } from './resizable';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { JSONEditorOptions } from 'jsoneditor';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare type JSONEditorProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
options?: JSONEditorOptions;
|
|
6
|
-
onChange?: (value: string) => void;
|
|
7
|
-
value?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const ForwardRefJsonEditor: React.ForwardRefExoticComponent<JSONEditorProps & React.RefAttributes<unknown>>;
|
|
10
|
-
export default ForwardRefJsonEditor;
|
package/lib/keep-tab/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { BadgeProps } from 'antd/lib/badge';
|
|
3
|
-
import type { TabPaneProps, TabsProps } from 'antd/lib/tabs';
|
|
4
|
-
export interface KeepTabProps extends TabsProps {
|
|
5
|
-
/** 由TabPane组成的children */
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
/** 初始化选中面板的 key,如果没有设置 activeKey */
|
|
8
|
-
defaultActiveKey?: string;
|
|
9
|
-
/** 保存激活 tab 面板的的key名 */
|
|
10
|
-
saveActiveKeyName: string;
|
|
11
|
-
/** 当前激活 tab 面板的 key */
|
|
12
|
-
activeKey?: string;
|
|
13
|
-
/** 切换面板的回调 */
|
|
14
|
-
onChange?: (activeKey: string) => void;
|
|
15
|
-
/** antd Badge组件除count意外的所有props */
|
|
16
|
-
badgeProps?: Omit<BadgeProps, 'count'>;
|
|
17
|
-
}
|
|
18
|
-
export interface SelfTabPaneProps extends TabPaneProps {
|
|
19
|
-
count: Pick<BadgeProps, 'count'>;
|
|
20
|
-
}
|
|
21
|
-
declare const KeepTab: {
|
|
22
|
-
(props: KeepTabProps): JSX.Element;
|
|
23
|
-
defaultProps: {
|
|
24
|
-
saveActiveKeyName: string;
|
|
25
|
-
};
|
|
26
|
-
displayName: string;
|
|
27
|
-
TabPane: typeof import("rc-tabs").TabPane;
|
|
28
|
-
};
|
|
29
|
-
export default KeepTab;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AutoCompleteProps } from 'antd/lib/auto-complete';
|
|
3
|
-
export interface LabelAutoCompleteProps extends AutoCompleteProps {
|
|
4
|
-
label?: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const LabelAutoComplete: (props: LabelAutoCompleteProps) => JSX.Element;
|
|
8
|
-
export default LabelAutoComplete;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ConditionInputProps } from '../condition-input';
|
|
3
|
-
export interface LabelConditionInputProps extends Omit<ConditionInputProps, 'onBlur' | 'onChange'> {
|
|
4
|
-
/** label 标签的文本 */
|
|
5
|
-
label?: React.ReactNode;
|
|
6
|
-
/** 输入框内容变化时的回调 */
|
|
7
|
-
onChange?: (value: string) => void;
|
|
8
|
-
/** 输入框失去焦点的回调 */
|
|
9
|
-
onBlur?: (value: string) => void;
|
|
10
|
-
/** 输入框除去label之后的最小末尾宽度 */
|
|
11
|
-
baseMinWidth?: number;
|
|
12
|
-
/** 组件dom id */
|
|
13
|
-
id?: string;
|
|
14
|
-
}
|
|
15
|
-
declare const LabelConditionInput: (props: LabelConditionInputProps) => JSX.Element;
|
|
16
|
-
export default LabelConditionInput;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Moment } from 'moment';
|
|
2
|
-
import type { LangType } from '../messages';
|
|
3
|
-
export declare enum dateTypeEnum {
|
|
4
|
-
TODAY = 1,
|
|
5
|
-
YESTERDAY = 2,
|
|
6
|
-
WEEK = 3,
|
|
7
|
-
LAST_WEEK = 4,
|
|
8
|
-
MONTH = 5,
|
|
9
|
-
LAST_MONTH = 6,
|
|
10
|
-
QUARTER = 7,
|
|
11
|
-
LAST_QUARTER = 8,
|
|
12
|
-
BEFORE_7_DAY = 9,
|
|
13
|
-
BEFORE_14_DAY = 10,
|
|
14
|
-
BEFORE_30_DAY = 11,
|
|
15
|
-
BEFORE_90_DAY = 12,
|
|
16
|
-
BEFORE_180_DAY = 13,
|
|
17
|
-
BEFORE_365_DAY = 14
|
|
18
|
-
}
|
|
19
|
-
export declare type RadioListType = {
|
|
20
|
-
key: string | number | dateTypeEnum;
|
|
21
|
-
text: string;
|
|
22
|
-
value: [Moment, Moment];
|
|
23
|
-
};
|
|
24
|
-
declare const getDefaultRadioList: (message: LangType) => RadioListType[];
|
|
25
|
-
export default getDefaultRadioList;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Moment } from 'moment';
|
|
3
|
-
import type { dateTypeEnum } from './defaultRadioList';
|
|
4
|
-
import type { LabelRangePickerProps } from '../label-range-picker';
|
|
5
|
-
export declare type RadioListType = {
|
|
6
|
-
key: string | number | dateTypeEnum;
|
|
7
|
-
text: string;
|
|
8
|
-
value: [Moment, Moment];
|
|
9
|
-
};
|
|
10
|
-
export interface LabelCustomizeRangePickerProps extends Omit<LabelRangePickerProps, 'label'> {
|
|
11
|
-
radioList?: RadioListType[];
|
|
12
|
-
customizeTimeList?: dateTypeEnum[];
|
|
13
|
-
rangePickerType?: 'label' | 'origin';
|
|
14
|
-
label?: React.ReactNode;
|
|
15
|
-
/** 最大时间范围 */
|
|
16
|
-
maxScope?: number;
|
|
17
|
-
showShortcutPanel?: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare const LabelCustomizeRangePicker: (props: LabelCustomizeRangePickerProps) => JSX.Element;
|
|
20
|
-
export default LabelCustomizeRangePicker;
|