assui 3.1.73 → 3.1.75
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/area-text/index.d.ts +1 -1
- package/es/beautiful-dnd/style/index.d.ts +0 -1
- package/es/button-drawer/index.d.ts +1 -1
- package/es/client-only/index.d.ts +1 -1
- package/es/client-only/style/index.d.ts +0 -1
- package/es/color-select/index.d.ts +1 -1
- package/es/complex-val-select/index.d.ts +4 -4
- package/es/complex-val-select/index.js +1 -3
- package/es/condition-input/parse2RegexOption.d.ts +1 -1
- package/es/condition-select-input/index.d.ts +2 -2
- package/es/config-provider/context.d.ts +0 -1
- package/es/config-provider/index.d.ts +1 -1
- package/es/config-provider/style/index.d.ts +0 -1
- package/es/highlight-textarea/extractSpansOfClasses.d.ts +0 -1
- package/es/highlight-textarea/types.d.ts +11 -11
- package/es/highlight-words/style/index.d.ts +0 -1
- package/es/img-crop/getCroppedImg.js +3 -7
- package/es/img-crop/index.js +3 -7
- package/es/json-editor/index.d.ts +1 -1
- package/es/label-condition-select-input/index.d.ts +2 -2
- package/es/label-customize-range-picker/defaultRadioList.d.ts +2 -2
- package/es/label-customize-range-picker/index.d.ts +1 -1
- package/es/label-range-number/index.d.ts +1 -1
- package/es/messages/index.d.ts +3 -3
- package/es/multipart-upload/parse2RegexOption.d.ts +1 -1
- package/es/number-format-input/index.d.ts +1 -1
- package/es/number-input/index.d.ts +1 -1
- package/es/rc-echart/core.d.ts +1 -1
- package/es/rc-echart/index.d.ts +1 -1
- package/es/rc-echart/style/index.d.ts +0 -1
- package/es/rc-motion/style/index.d.ts +0 -1
- package/es/rc-qrcode/style/index.d.ts +0 -1
- package/es/rc-qrcode/useQrcode.d.ts +1 -1
- package/es/rc-transition-group/style/index.d.ts +0 -1
- package/es/rich-text-editor/index.d.ts +1 -1
- package/es/single-img-upload/index.js +3 -7
- package/es/sortable-hoc/style/index.d.ts +0 -1
- package/es/split-pane/index.d.ts +1 -1
- package/es/text-input/index.d.ts +1 -1
- package/lib/area-text/index.d.ts +1 -1
- package/lib/beautiful-dnd/style/index.d.ts +0 -1
- package/lib/button-drawer/index.d.ts +1 -1
- package/lib/client-only/index.d.ts +1 -1
- package/lib/client-only/style/index.d.ts +0 -1
- package/lib/color-select/index.d.ts +1 -1
- package/lib/complex-val-select/index.d.ts +4 -4
- package/lib/complex-val-select/index.js +1 -3
- package/lib/condition-input/parse2RegexOption.d.ts +1 -1
- package/lib/condition-select-input/index.d.ts +2 -2
- package/lib/condition-select-input/index.js +2 -2
- package/lib/config-provider/context.d.ts +0 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/style/index.d.ts +0 -1
- package/lib/flex/utils/gapSize.js +2 -3
- package/lib/highlight-textarea/extractSpansOfClasses.d.ts +0 -1
- package/lib/highlight-textarea/extractSpansOfClasses.js +2 -2
- package/lib/highlight-textarea/getRanges.js +1 -1
- package/lib/highlight-textarea/getType.js +2 -2
- package/lib/highlight-textarea/types.d.ts +11 -11
- package/lib/highlight-words/style/index.d.ts +0 -1
- package/lib/img-crop/getCroppedImg.js +3 -7
- package/lib/img-crop/index.js +3 -7
- package/lib/json-editor/index.d.ts +1 -1
- package/lib/label-condition-select-input/index.d.ts +2 -2
- package/lib/label-condition-select-input/index.js +2 -2
- package/lib/label-customize-range-picker/defaultRadioList.d.ts +2 -2
- package/lib/label-customize-range-picker/defaultRadioList.js +1 -1
- package/lib/label-customize-range-picker/index.d.ts +1 -1
- package/lib/label-range-number/index.d.ts +1 -1
- package/lib/messages/index.d.ts +3 -3
- package/lib/messages/index.js +3 -3
- package/lib/multipart-upload/parse2RegexOption.d.ts +1 -1
- package/lib/number-format-input/index.d.ts +1 -1
- package/lib/number-input/index.d.ts +1 -1
- package/lib/rc-echart/core.d.ts +1 -1
- package/lib/rc-echart/index.d.ts +1 -1
- package/lib/rc-echart/style/index.d.ts +0 -1
- package/lib/rc-motion/style/index.d.ts +0 -1
- package/lib/rc-qrcode/style/index.d.ts +0 -1
- package/lib/rc-qrcode/useQrcode.d.ts +1 -1
- package/lib/rc-transition-group/style/index.d.ts +0 -1
- package/lib/rich-text-editor/index.d.ts +1 -1
- package/lib/single-img-upload/index.js +3 -7
- package/lib/sortable-hoc/style/index.d.ts +0 -1
- package/lib/split-pane/index.d.ts +1 -1
- package/lib/text-input/index.d.ts +1 -1
- package/package.json +2 -2
package/es/area-text/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DefaultOptionType, SelectProps } from 'antd/lib/select';
|
|
3
3
|
declare const Option: import("rc-select/lib/Option").OptionFC;
|
|
4
4
|
export { Option };
|
|
5
|
-
export
|
|
6
|
-
export interface ComplexValSelectOptionType extends Omit<
|
|
5
|
+
export type ComplexValSelectValueType = string | number | any[] | Record<string, any> | null | undefined;
|
|
6
|
+
export interface ComplexValSelectOptionType extends Omit<DefaultOptionType, 'value' | 'children' | 'options'> {
|
|
7
7
|
value?: ComplexValSelectValueType;
|
|
8
8
|
children?: ComplexValSelectOptionType[];
|
|
9
9
|
options?: Omit<ComplexValSelectOptionType, 'children' | 'options'>[];
|
|
10
10
|
}
|
|
11
11
|
/** 判断optionsValue是否是引用类型 */
|
|
12
|
-
export declare const isReferenceTypeOption: (options?: ComplexValSelectOptionType[]
|
|
12
|
+
export declare const isReferenceTypeOption: (options?: ComplexValSelectOptionType[]) => boolean;
|
|
13
13
|
export interface ComplexValSelectProps<T> extends Omit<SelectProps, 'value' | 'onChange' | 'options'> {
|
|
14
14
|
value?: T;
|
|
15
15
|
onChange?: (val: T, opt?: ComplexValSelectOptionType[]) => void;
|
|
@@ -79,7 +79,6 @@ var ComplexValSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
79
79
|
value = _a[0],
|
|
80
80
|
setValue = _a[1];
|
|
81
81
|
var options = props.options,
|
|
82
|
-
onChange = props.onChange,
|
|
83
82
|
onSelect = props.onSelect;
|
|
84
83
|
var selectRef = React.useRef(null);
|
|
85
84
|
React.useImperativeHandle(ref, function () {
|
|
@@ -90,8 +89,7 @@ var ComplexValSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
90
89
|
var finalOptions = isReferenceTypeVal ? formatOptions(options) : options;
|
|
91
90
|
var handleChange = function handleChange(val) {
|
|
92
91
|
var nextVal = val && isReferenceTypeVal ? JSON.parse(val) : val;
|
|
93
|
-
setValue(nextVal);
|
|
94
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(nextVal, options);
|
|
92
|
+
setValue(nextVal, options);
|
|
95
93
|
};
|
|
96
94
|
var handleSelect = function handleSelect(val) {
|
|
97
95
|
var nextVal = val && isReferenceTypeVal ? JSON.parse(val) : val;
|
|
@@ -9,8 +9,8 @@ export declare enum EntryTypeEnum {
|
|
|
9
9
|
FIRST_ENTRY = "firstEntry",
|
|
10
10
|
SECOND_ENTRY = "secondEntry"
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
|
|
12
|
+
export type ChangedEntryType = typeof EntryTypeEnum[keyof typeof EntryTypeEnum];
|
|
13
|
+
type SelectOptionsType = {
|
|
14
14
|
value: ComplexValSelectValueType;
|
|
15
15
|
label: string;
|
|
16
16
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export 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' | 'ug';
|
|
3
3
|
export interface ConfigProviderProps {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
locale: LocaleType;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
1
|
+
export type StringType = string;
|
|
2
|
+
export type NumberArrayType = number[];
|
|
3
|
+
export type RegExpType = RegExp;
|
|
4
|
+
export type FuncType = (input: string) => string;
|
|
5
|
+
export type HighlightInstanceType = StringType | NumberArrayType | RegExpType | FuncType;
|
|
6
|
+
export type AdmixArrayType = HighlightInstanceType[];
|
|
7
|
+
export type ObjectType = {
|
|
8
8
|
highlight: HighlightInstanceType;
|
|
9
9
|
className?: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type CustomArrayArrayType = ObjectType[];
|
|
12
|
+
export type RangesType = (number | {
|
|
13
13
|
className?: string;
|
|
14
14
|
})[][];
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type HighlightType = StringType | NumberArrayType | RegExpType | FuncType | HighlightInstanceType | AdmixArrayType | ObjectType | CustomArrayArrayType;
|
|
16
|
+
export type TypeList = 'falsely' | 'range' | 'array' | 'regexp' | 'custom' | 'other' | 'function' | 'string';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -38,12 +38,8 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
38
38
|
f,
|
|
39
39
|
y,
|
|
40
40
|
t,
|
|
41
|
-
g;
|
|
42
|
-
return g = {
|
|
43
|
-
next: verb(0),
|
|
44
|
-
"throw": verb(1),
|
|
45
|
-
"return": verb(2)
|
|
46
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
41
|
+
g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
42
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
47
43
|
return this;
|
|
48
44
|
}), g;
|
|
49
45
|
function verb(n) {
|
|
@@ -53,7 +49,7 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
53
49
|
}
|
|
54
50
|
function step(op) {
|
|
55
51
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (_) {
|
|
52
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) {
|
|
57
53
|
try {
|
|
58
54
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
59
55
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
package/es/img-crop/index.js
CHANGED
|
@@ -50,12 +50,8 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
50
50
|
f,
|
|
51
51
|
y,
|
|
52
52
|
t,
|
|
53
|
-
g;
|
|
54
|
-
return g = {
|
|
55
|
-
next: verb(0),
|
|
56
|
-
"throw": verb(1),
|
|
57
|
-
"return": verb(2)
|
|
58
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
53
|
+
g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
54
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
59
55
|
return this;
|
|
60
56
|
}), g;
|
|
61
57
|
function verb(n) {
|
|
@@ -65,7 +61,7 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
65
61
|
}
|
|
66
62
|
function step(op) {
|
|
67
63
|
if (f) throw new TypeError("Generator is already executing.");
|
|
68
|
-
while (_) {
|
|
64
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) {
|
|
69
65
|
try {
|
|
70
66
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
71
67
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
@@ -9,8 +9,8 @@ export declare enum EntryTypeEnum {
|
|
|
9
9
|
FIRST_ENTRY = "firstEntry",
|
|
10
10
|
SECOND_ENTRY = "secondEntry"
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
|
|
12
|
+
export type ChangedEntryType = typeof EntryTypeEnum[keyof typeof EntryTypeEnum];
|
|
13
|
+
type SelectOptionsType = {
|
|
14
14
|
value: number;
|
|
15
15
|
label: string;
|
|
16
16
|
};
|
|
@@ -18,12 +18,12 @@ export declare enum dateTypeEnum {
|
|
|
18
18
|
YEAR = 15,
|
|
19
19
|
ALL = 16
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type RadioListType = {
|
|
22
22
|
key: string | number | dateTypeEnum;
|
|
23
23
|
text: string;
|
|
24
24
|
value: [Moment, Moment];
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
type GetDefaultRadioListPropsType = {
|
|
27
27
|
messages: LangType;
|
|
28
28
|
timeOffset?: number;
|
|
29
29
|
/** 自然日期 */
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { Moment } from 'moment';
|
|
3
3
|
import type { dateTypeEnum } from './defaultRadioList';
|
|
4
4
|
import type { LabelRangePickerProps } from '../label-range-picker';
|
|
5
|
-
export
|
|
5
|
+
export type RadioListType = {
|
|
6
6
|
key: string | number | dateTypeEnum;
|
|
7
7
|
text: string;
|
|
8
8
|
value: [Moment, Moment];
|
package/es/messages/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type LabelCustomizeRangePickerType = {
|
|
2
2
|
customTime: string;
|
|
3
3
|
toDay: string;
|
|
4
4
|
yesterDay: string;
|
|
@@ -17,14 +17,14 @@ export declare type LabelCustomizeRangePickerType = {
|
|
|
17
17
|
year: string;
|
|
18
18
|
all: string;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type Global = {
|
|
21
21
|
placeholder: string;
|
|
22
22
|
};
|
|
23
23
|
export declare enum langTypeEnum {
|
|
24
24
|
labelCustomizeRangePicker = "labelCustomizeRangePicker",
|
|
25
25
|
global = "global"
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export type LangType = {
|
|
28
28
|
[langTypeEnum.labelCustomizeRangePicker]: LabelCustomizeRangePickerType;
|
|
29
29
|
[langTypeEnum.global]: Global;
|
|
30
30
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { NumberFormatProps as ReactNumberFormatProps } from 'react-number-format';
|
|
3
|
-
export
|
|
3
|
+
export type NumberFormatInputProps = ReactNumberFormatProps;
|
|
4
4
|
declare const NumberFormatInput: React.FC<NumberFormatInputProps>;
|
|
5
5
|
export default NumberFormatInput;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import type { InputProps } from 'antd/lib/input';
|
|
3
3
|
import * as dataTypeEnum from './const/dataTypeEnum';
|
|
4
4
|
import * as numberTypeEnum from './const/numberType';
|
|
5
|
-
export
|
|
5
|
+
export type NumberInputValueType = string | number;
|
|
6
6
|
export interface NumberInputProps extends Omit<InputProps, 'onChange' | 'onBlur'> {
|
|
7
7
|
/** 输入框的内容 */
|
|
8
8
|
value?: NumberInputValueType;
|
package/es/rc-echart/core.d.ts
CHANGED
package/es/rc-echart/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { QRCodeToDataURLOptions, QRCodeSegment } from 'qrcode';
|
|
2
|
-
|
|
2
|
+
type ValueTypes = string | QRCodeSegment[];
|
|
3
3
|
export declare const useQRCode: (value: ValueTypes, options?: QRCodeToDataURLOptions) => string;
|
|
4
4
|
export default useQRCode;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -28,7 +28,7 @@ import 'tinymce/plugins/autoresize';
|
|
|
28
28
|
import 'tinymce/plugins/emoticons';
|
|
29
29
|
import 'tinymce/plugins/importcss';
|
|
30
30
|
import 'tinymce/plugins/pagebreak';
|
|
31
|
-
export
|
|
31
|
+
export type RichTextEditorProps = IAllProps;
|
|
32
32
|
declare const defaultPlugins: string[];
|
|
33
33
|
declare const defaultToolbar: string;
|
|
34
34
|
declare const RichTextEditor: (props: IAllProps) => JSX.Element;
|
|
@@ -50,12 +50,8 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
50
50
|
f,
|
|
51
51
|
y,
|
|
52
52
|
t,
|
|
53
|
-
g;
|
|
54
|
-
return g = {
|
|
55
|
-
next: verb(0),
|
|
56
|
-
"throw": verb(1),
|
|
57
|
-
"return": verb(2)
|
|
58
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
53
|
+
g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
54
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
59
55
|
return this;
|
|
60
56
|
}), g;
|
|
61
57
|
function verb(n) {
|
|
@@ -65,7 +61,7 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
65
61
|
}
|
|
66
62
|
function step(op) {
|
|
67
63
|
if (f) throw new TypeError("Generator is already executing.");
|
|
68
|
-
while (_) {
|
|
64
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) {
|
|
69
65
|
try {
|
|
70
66
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
71
67
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/es/split-pane/index.d.ts
CHANGED
package/es/text-input/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ConditionInputProps } from '../condition-input';
|
|
3
|
-
export
|
|
3
|
+
export type TextInputProps = ConditionInputProps;
|
|
4
4
|
declare const TextInput: React.ForwardRefExoticComponent<ConditionInputProps & React.RefAttributes<unknown>>;
|
|
5
5
|
export default TextInput;
|
package/lib/area-text/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DefaultOptionType, SelectProps } from 'antd/lib/select';
|
|
3
3
|
declare const Option: import("rc-select/lib/Option").OptionFC;
|
|
4
4
|
export { Option };
|
|
5
|
-
export
|
|
6
|
-
export interface ComplexValSelectOptionType extends Omit<
|
|
5
|
+
export type ComplexValSelectValueType = string | number | any[] | Record<string, any> | null | undefined;
|
|
6
|
+
export interface ComplexValSelectOptionType extends Omit<DefaultOptionType, 'value' | 'children' | 'options'> {
|
|
7
7
|
value?: ComplexValSelectValueType;
|
|
8
8
|
children?: ComplexValSelectOptionType[];
|
|
9
9
|
options?: Omit<ComplexValSelectOptionType, 'children' | 'options'>[];
|
|
10
10
|
}
|
|
11
11
|
/** 判断optionsValue是否是引用类型 */
|
|
12
|
-
export declare const isReferenceTypeOption: (options?: ComplexValSelectOptionType[]
|
|
12
|
+
export declare const isReferenceTypeOption: (options?: ComplexValSelectOptionType[]) => boolean;
|
|
13
13
|
export interface ComplexValSelectProps<T> extends Omit<SelectProps, 'value' | 'onChange' | 'options'> {
|
|
14
14
|
value?: T;
|
|
15
15
|
onChange?: (val: T, opt?: ComplexValSelectOptionType[]) => void;
|
|
@@ -124,7 +124,6 @@ var ComplexValSelect = React.forwardRef(function (props, ref) {
|
|
|
124
124
|
value = _a[0],
|
|
125
125
|
setValue = _a[1];
|
|
126
126
|
var options = props.options,
|
|
127
|
-
onChange = props.onChange,
|
|
128
127
|
onSelect = props.onSelect;
|
|
129
128
|
var selectRef = React.useRef(null);
|
|
130
129
|
React.useImperativeHandle(ref, function () {
|
|
@@ -135,8 +134,7 @@ var ComplexValSelect = React.forwardRef(function (props, ref) {
|
|
|
135
134
|
var finalOptions = isReferenceTypeVal ? formatOptions(options) : options;
|
|
136
135
|
var handleChange = function handleChange(val) {
|
|
137
136
|
var nextVal = val && isReferenceTypeVal ? JSON.parse(val) : val;
|
|
138
|
-
setValue(nextVal);
|
|
139
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(nextVal, options);
|
|
137
|
+
setValue(nextVal, options);
|
|
140
138
|
};
|
|
141
139
|
var handleSelect = function handleSelect(val) {
|
|
142
140
|
var nextVal = val && isReferenceTypeVal ? JSON.parse(val) : val;
|
|
@@ -9,8 +9,8 @@ export declare enum EntryTypeEnum {
|
|
|
9
9
|
FIRST_ENTRY = "firstEntry",
|
|
10
10
|
SECOND_ENTRY = "secondEntry"
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
|
|
12
|
+
export type ChangedEntryType = typeof EntryTypeEnum[keyof typeof EntryTypeEnum];
|
|
13
|
+
type SelectOptionsType = {
|
|
14
14
|
value: ComplexValSelectValueType;
|
|
15
15
|
label: string;
|
|
16
16
|
};
|
|
@@ -89,12 +89,12 @@ var InputTypeEnum;
|
|
|
89
89
|
(function (InputTypeEnum) {
|
|
90
90
|
InputTypeEnum["CONDITION_INPUT"] = "conditionInput";
|
|
91
91
|
InputTypeEnum["SELECT"] = "select";
|
|
92
|
-
})(InputTypeEnum
|
|
92
|
+
})(InputTypeEnum || (exports.InputTypeEnum = InputTypeEnum = {}));
|
|
93
93
|
var EntryTypeEnum;
|
|
94
94
|
(function (EntryTypeEnum) {
|
|
95
95
|
EntryTypeEnum["FIRST_ENTRY"] = "firstEntry";
|
|
96
96
|
EntryTypeEnum["SECOND_ENTRY"] = "secondEntry";
|
|
97
|
-
})(EntryTypeEnum
|
|
97
|
+
})(EntryTypeEnum || (exports.EntryTypeEnum = EntryTypeEnum = {}));
|
|
98
98
|
/** 找所有的子代选项 */
|
|
99
99
|
var findAllSubSelectItems = function findAllSubSelectItems(dataSource, key) {
|
|
100
100
|
var _a, _b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export 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' | 'ug';
|
|
3
3
|
export interface ConfigProviderProps {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
locale: LocaleType;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.isPresetSize =
|
|
6
|
+
exports.isPresetSize = isPresetSize;
|
|
7
7
|
function isPresetSize(size) {
|
|
8
8
|
return ['small', 'middle', 'large'].includes(size);
|
|
9
|
-
}
|
|
10
|
-
exports.isPresetSize = isPresetSize;
|
|
9
|
+
}
|
|
@@ -41,6 +41,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", {
|
|
42
42
|
value: true
|
|
43
43
|
});
|
|
44
|
+
exports["default"] = extractSpansOfClasses;
|
|
44
45
|
/* eslint-disable no-plusplus */
|
|
45
46
|
var react_1 = __importDefault(require("react"));
|
|
46
47
|
var Span = /** @class */function () {
|
|
@@ -150,5 +151,4 @@ function extractSpansOfClasses(value, ranges) {
|
|
|
150
151
|
}
|
|
151
152
|
});
|
|
152
153
|
return spans;
|
|
153
|
-
}
|
|
154
|
-
exports["default"] = extractSpansOfClasses;
|
|
154
|
+
}
|
|
@@ -41,6 +41,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", {
|
|
42
42
|
value: true
|
|
43
43
|
});
|
|
44
|
+
exports["default"] = getRanges;
|
|
44
45
|
/* eslint-disable no-param-reassign */
|
|
45
46
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
46
47
|
/* eslint-disable no-cond-assign */
|
|
@@ -69,7 +70,6 @@ function getRanges(input, highlight) {
|
|
|
69
70
|
}
|
|
70
71
|
return [];
|
|
71
72
|
}
|
|
72
|
-
exports["default"] = getRanges;
|
|
73
73
|
function getArrayRanges(input, arr) {
|
|
74
74
|
// const ranges: RangesType = arr.map(getRanges.bind(this, input));
|
|
75
75
|
var ranges = arr.map(function (highlight) {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports["default"] = getType;
|
|
6
7
|
function getType(instance) {
|
|
7
8
|
var type = typeof instance;
|
|
8
9
|
if (!instance) {
|
|
@@ -25,5 +26,4 @@ function getType(instance) {
|
|
|
25
26
|
return type;
|
|
26
27
|
}
|
|
27
28
|
return 'other';
|
|
28
|
-
}
|
|
29
|
-
exports["default"] = getType;
|
|
29
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
1
|
+
export type StringType = string;
|
|
2
|
+
export type NumberArrayType = number[];
|
|
3
|
+
export type RegExpType = RegExp;
|
|
4
|
+
export type FuncType = (input: string) => string;
|
|
5
|
+
export type HighlightInstanceType = StringType | NumberArrayType | RegExpType | FuncType;
|
|
6
|
+
export type AdmixArrayType = HighlightInstanceType[];
|
|
7
|
+
export type ObjectType = {
|
|
8
8
|
highlight: HighlightInstanceType;
|
|
9
9
|
className?: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type CustomArrayArrayType = ObjectType[];
|
|
12
|
+
export type RangesType = (number | {
|
|
13
13
|
className?: string;
|
|
14
14
|
})[][];
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type HighlightType = StringType | NumberArrayType | RegExpType | FuncType | HighlightInstanceType | AdmixArrayType | ObjectType | CustomArrayArrayType;
|
|
16
|
+
export type TypeList = 'falsely' | 'range' | 'array' | 'regexp' | 'custom' | 'other' | 'function' | 'string';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -40,12 +40,8 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
40
40
|
f,
|
|
41
41
|
y,
|
|
42
42
|
t,
|
|
43
|
-
g;
|
|
44
|
-
return g = {
|
|
45
|
-
next: verb(0),
|
|
46
|
-
"throw": verb(1),
|
|
47
|
-
"return": verb(2)
|
|
48
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
43
|
+
g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
44
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
49
45
|
return this;
|
|
50
46
|
}), g;
|
|
51
47
|
function verb(n) {
|
|
@@ -55,7 +51,7 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
55
51
|
}
|
|
56
52
|
function step(op) {
|
|
57
53
|
if (f) throw new TypeError("Generator is already executing.");
|
|
58
|
-
while (_) {
|
|
54
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) {
|
|
59
55
|
try {
|
|
60
56
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
61
57
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
package/lib/img-crop/index.js
CHANGED
|
@@ -85,12 +85,8 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
85
85
|
f,
|
|
86
86
|
y,
|
|
87
87
|
t,
|
|
88
|
-
g;
|
|
89
|
-
return g = {
|
|
90
|
-
next: verb(0),
|
|
91
|
-
"throw": verb(1),
|
|
92
|
-
"return": verb(2)
|
|
93
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
88
|
+
g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
89
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
94
90
|
return this;
|
|
95
91
|
}), g;
|
|
96
92
|
function verb(n) {
|
|
@@ -100,7 +96,7 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
100
96
|
}
|
|
101
97
|
function step(op) {
|
|
102
98
|
if (f) throw new TypeError("Generator is already executing.");
|
|
103
|
-
while (_) {
|
|
99
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) {
|
|
104
100
|
try {
|
|
105
101
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
106
102
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
@@ -9,8 +9,8 @@ export declare enum EntryTypeEnum {
|
|
|
9
9
|
FIRST_ENTRY = "firstEntry",
|
|
10
10
|
SECOND_ENTRY = "secondEntry"
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
|
|
12
|
+
export type ChangedEntryType = typeof EntryTypeEnum[keyof typeof EntryTypeEnum];
|
|
13
|
+
type SelectOptionsType = {
|
|
14
14
|
value: number;
|
|
15
15
|
label: string;
|
|
16
16
|
};
|
|
@@ -89,12 +89,12 @@ var InputTypeEnum;
|
|
|
89
89
|
(function (InputTypeEnum) {
|
|
90
90
|
InputTypeEnum["CONDITION_INPUT"] = "conditionInput";
|
|
91
91
|
InputTypeEnum["SELECT"] = "select";
|
|
92
|
-
})(InputTypeEnum
|
|
92
|
+
})(InputTypeEnum || (exports.InputTypeEnum = InputTypeEnum = {}));
|
|
93
93
|
var EntryTypeEnum;
|
|
94
94
|
(function (EntryTypeEnum) {
|
|
95
95
|
EntryTypeEnum["FIRST_ENTRY"] = "firstEntry";
|
|
96
96
|
EntryTypeEnum["SECOND_ENTRY"] = "secondEntry";
|
|
97
|
-
})(EntryTypeEnum
|
|
97
|
+
})(EntryTypeEnum || (exports.EntryTypeEnum = EntryTypeEnum = {}));
|
|
98
98
|
/** 找所有的子代选项 */
|
|
99
99
|
var findAllSubSelectItems = function findAllSubSelectItems(dataSource, key) {
|
|
100
100
|
var _a, _b;
|
|
@@ -18,12 +18,12 @@ export declare enum dateTypeEnum {
|
|
|
18
18
|
YEAR = 15,
|
|
19
19
|
ALL = 16
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type RadioListType = {
|
|
22
22
|
key: string | number | dateTypeEnum;
|
|
23
23
|
text: string;
|
|
24
24
|
value: [Moment, Moment];
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
type GetDefaultRadioListPropsType = {
|
|
27
27
|
messages: LangType;
|
|
28
28
|
timeOffset?: number;
|
|
29
29
|
/** 自然日期 */
|
|
@@ -96,7 +96,7 @@ var dateTypeEnum;
|
|
|
96
96
|
dateTypeEnum[dateTypeEnum["BEFORE_365_DAY"] = 14] = "BEFORE_365_DAY";
|
|
97
97
|
dateTypeEnum[dateTypeEnum["YEAR"] = 15] = "YEAR";
|
|
98
98
|
dateTypeEnum[dateTypeEnum["ALL"] = 16] = "ALL";
|
|
99
|
-
})(dateTypeEnum
|
|
99
|
+
})(dateTypeEnum || (exports.dateTypeEnum = dateTypeEnum = {}));
|
|
100
100
|
var getDefaultRadioList = function getDefaultRadioList(_a) {
|
|
101
101
|
var messages = _a.messages,
|
|
102
102
|
timeOffset = _a.timeOffset,
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { Moment } from 'moment';
|
|
3
3
|
import type { dateTypeEnum } from './defaultRadioList';
|
|
4
4
|
import type { LabelRangePickerProps } from '../label-range-picker';
|
|
5
|
-
export
|
|
5
|
+
export type RadioListType = {
|
|
6
6
|
key: string | number | dateTypeEnum;
|
|
7
7
|
text: string;
|
|
8
8
|
value: [Moment, Moment];
|
package/lib/messages/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type LabelCustomizeRangePickerType = {
|
|
2
2
|
customTime: string;
|
|
3
3
|
toDay: string;
|
|
4
4
|
yesterDay: string;
|
|
@@ -17,14 +17,14 @@ export declare type LabelCustomizeRangePickerType = {
|
|
|
17
17
|
year: string;
|
|
18
18
|
all: string;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type Global = {
|
|
21
21
|
placeholder: string;
|
|
22
22
|
};
|
|
23
23
|
export declare enum langTypeEnum {
|
|
24
24
|
labelCustomizeRangePicker = "labelCustomizeRangePicker",
|
|
25
25
|
global = "global"
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export type LangType = {
|
|
28
28
|
[langTypeEnum.labelCustomizeRangePicker]: LabelCustomizeRangePickerType;
|
|
29
29
|
[langTypeEnum.global]: Global;
|
|
30
30
|
};
|
package/lib/messages/index.js
CHANGED
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.langTypeEnum = void 0;
|
|
7
|
+
exports["default"] = formatMessage;
|
|
7
8
|
var langTypeEnum;
|
|
8
9
|
(function (langTypeEnum) {
|
|
9
10
|
langTypeEnum["labelCustomizeRangePicker"] = "labelCustomizeRangePicker";
|
|
10
11
|
langTypeEnum["global"] = "global";
|
|
11
|
-
})(langTypeEnum
|
|
12
|
+
})(langTypeEnum || (exports.langTypeEnum = langTypeEnum = {}));
|
|
12
13
|
function formatMessage(message, displayName, key) {
|
|
13
14
|
return message[displayName][key];
|
|
14
|
-
}
|
|
15
|
-
exports["default"] = formatMessage;
|
|
15
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { NumberFormatProps as ReactNumberFormatProps } from 'react-number-format';
|
|
3
|
-
export
|
|
3
|
+
export type NumberFormatInputProps = ReactNumberFormatProps;
|
|
4
4
|
declare const NumberFormatInput: React.FC<NumberFormatInputProps>;
|
|
5
5
|
export default NumberFormatInput;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import type { InputProps } from 'antd/lib/input';
|
|
3
3
|
import * as dataTypeEnum from './const/dataTypeEnum';
|
|
4
4
|
import * as numberTypeEnum from './const/numberType';
|
|
5
|
-
export
|
|
5
|
+
export type NumberInputValueType = string | number;
|
|
6
6
|
export interface NumberInputProps extends Omit<InputProps, 'onChange' | 'onBlur'> {
|
|
7
7
|
/** 输入框的内容 */
|
|
8
8
|
value?: NumberInputValueType;
|
package/lib/rc-echart/core.d.ts
CHANGED
package/lib/rc-echart/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { QRCodeToDataURLOptions, QRCodeSegment } from 'qrcode';
|
|
2
|
-
|
|
2
|
+
type ValueTypes = string | QRCodeSegment[];
|
|
3
3
|
export declare const useQRCode: (value: ValueTypes, options?: QRCodeToDataURLOptions) => string;
|
|
4
4
|
export default useQRCode;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -28,7 +28,7 @@ import 'tinymce/plugins/autoresize';
|
|
|
28
28
|
import 'tinymce/plugins/emoticons';
|
|
29
29
|
import 'tinymce/plugins/importcss';
|
|
30
30
|
import 'tinymce/plugins/pagebreak';
|
|
31
|
-
export
|
|
31
|
+
export type RichTextEditorProps = IAllProps;
|
|
32
32
|
declare const defaultPlugins: string[];
|
|
33
33
|
declare const defaultToolbar: string;
|
|
34
34
|
declare const RichTextEditor: (props: IAllProps) => JSX.Element;
|
|
@@ -85,12 +85,8 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
85
85
|
f,
|
|
86
86
|
y,
|
|
87
87
|
t,
|
|
88
|
-
g;
|
|
89
|
-
return g = {
|
|
90
|
-
next: verb(0),
|
|
91
|
-
"throw": verb(1),
|
|
92
|
-
"return": verb(2)
|
|
93
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
88
|
+
g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
89
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
94
90
|
return this;
|
|
95
91
|
}), g;
|
|
96
92
|
function verb(n) {
|
|
@@ -100,7 +96,7 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
100
96
|
}
|
|
101
97
|
function step(op) {
|
|
102
98
|
if (f) throw new TypeError("Generator is already executing.");
|
|
103
|
-
while (_) {
|
|
99
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) {
|
|
104
100
|
try {
|
|
105
101
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
106
102
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ConditionInputProps } from '../condition-input';
|
|
3
|
-
export
|
|
3
|
+
export type TextInputProps = ConditionInputProps;
|
|
4
4
|
declare const TextInput: React.ForwardRefExoticComponent<ConditionInputProps & React.RefAttributes<unknown>>;
|
|
5
5
|
export default TextInput;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.75",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"node": ">=10.0.0"
|
|
81
81
|
},
|
|
82
82
|
"license": "MIT",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "0590be516d766f9d0ef2c5d56aaff1eb4d3a8b2e"
|
|
84
84
|
}
|