assui 3.1.74 → 3.1.76
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/LICENSE +21 -0
- 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 +2 -2
- 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/core.js +4 -2
- 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/index.js +2 -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 +7 -10
- 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 +2 -2
- 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/core.js +4 -2
- 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/index.js +2 -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 +7 -10
- 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/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 assui
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/es/area-text/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -2,14 +2,14 @@ import * as React from 'react';
|
|
|
2
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
|
|
5
|
+
export type ComplexValSelectValueType = string | number | any[] | Record<string, any> | null | undefined;
|
|
6
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/core.js
CHANGED
|
@@ -5,6 +5,7 @@ import useMount from "ahooks/es/useMount";
|
|
|
5
5
|
import useUpdateEffect from "ahooks/es/useUpdateEffect";
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
8
|
+
var initEmptyObject = {};
|
|
8
9
|
var ReactEchartCore = function ReactEchartCore(props) {
|
|
9
10
|
var _a = props.className,
|
|
10
11
|
className = _a === void 0 ? '' : _a,
|
|
@@ -15,9 +16,9 @@ var ReactEchartCore = function ReactEchartCore(props) {
|
|
|
15
16
|
_c = props.lazyUpdate,
|
|
16
17
|
lazyUpdate = _c === void 0 ? false : _c,
|
|
17
18
|
_d = props.onEvents,
|
|
18
|
-
onEvents = _d === void 0 ?
|
|
19
|
+
onEvents = _d === void 0 ? initEmptyObject : _d,
|
|
19
20
|
_e = props.opts,
|
|
20
|
-
opts = _e === void 0 ?
|
|
21
|
+
opts = _e === void 0 ? initEmptyObject : _e,
|
|
21
22
|
theme = props.theme;
|
|
22
23
|
var chartDomRef = useRef();
|
|
23
24
|
var chartRef = useRef();
|
|
@@ -59,6 +60,7 @@ var ReactEchartCore = function ReactEchartCore(props) {
|
|
|
59
60
|
// need reBuild
|
|
60
61
|
useUpdateEffect(function () {
|
|
61
62
|
dispose();
|
|
63
|
+
initEcharts();
|
|
62
64
|
renderEchartDom();
|
|
63
65
|
bindEvents();
|
|
64
66
|
}, [theme, opts]);
|
package/es/rc-echart/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/es/rc-qrcode/index.js
CHANGED
|
@@ -14,11 +14,12 @@ import * as React from 'react';
|
|
|
14
14
|
import QRCode from 'qrcode';
|
|
15
15
|
import useMount from "ahooks/es/useMount";
|
|
16
16
|
import useQrcode from './useQrcode';
|
|
17
|
+
var initEmptyObject = {};
|
|
17
18
|
var RcQrcode = function RcQrcode(props) {
|
|
18
19
|
var _a = props.value,
|
|
19
20
|
value = _a === void 0 ? '' : _a,
|
|
20
21
|
_b = props.options,
|
|
21
|
-
options = _b === void 0 ?
|
|
22
|
+
options = _b === void 0 ? initEmptyObject : _b,
|
|
22
23
|
getCanvasInstance = props.getCanvasInstance;
|
|
23
24
|
var domElRef = React.useRef(null);
|
|
24
25
|
var defaultOptions = {
|
|
@@ -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];
|
|
@@ -185,6 +181,9 @@ var getLocalImgURL = function getLocalImgURL(file) {
|
|
|
185
181
|
var imgURL = URL.createObjectURL(file);
|
|
186
182
|
return imgURL;
|
|
187
183
|
};
|
|
184
|
+
var initBeforeUpload = function initBeforeUpload() {
|
|
185
|
+
return true;
|
|
186
|
+
};
|
|
188
187
|
var SingleImgUpload = function SingleImgUpload(props) {
|
|
189
188
|
var className = props.className,
|
|
190
189
|
wrapperClassName = props.wrapperClassName,
|
|
@@ -196,9 +195,7 @@ var SingleImgUpload = function SingleImgUpload(props) {
|
|
|
196
195
|
onSuccess = props.onSuccess,
|
|
197
196
|
onCancel = props.onCancel,
|
|
198
197
|
_a = props.beforeUpload,
|
|
199
|
-
beforeUpload = _a === void 0 ?
|
|
200
|
-
return true;
|
|
201
|
-
} : _a,
|
|
198
|
+
beforeUpload = _a === void 0 ? initBeforeUpload : _a,
|
|
202
199
|
onError = props.onError,
|
|
203
200
|
disabled = props.disabled,
|
|
204
201
|
restProps = __rest(props, ["className", "wrapperClassName", "children", "value", "onStart", "onDeleteUpload", "onFormatResData", "onSuccess", "onCancel", "beforeUpload", "onError", "disabled"]);
|
|
@@ -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
|
-
|
|
@@ -2,14 +2,14 @@ import * as React from 'react';
|
|
|
2
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
|
|
5
|
+
export type ComplexValSelectValueType = string | number | any[] | Record<string, any> | null | undefined;
|
|
6
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/core.js
CHANGED
|
@@ -48,6 +48,7 @@ var useMount_1 = __importDefault(require("ahooks/lib/useMount"));
|
|
|
48
48
|
var useUpdateEffect_1 = __importDefault(require("ahooks/lib/useUpdateEffect"));
|
|
49
49
|
var classnames_1 = __importDefault(require("classnames"));
|
|
50
50
|
var resize_observer_polyfill_1 = __importDefault(require("resize-observer-polyfill"));
|
|
51
|
+
var initEmptyObject = {};
|
|
51
52
|
var ReactEchartCore = function ReactEchartCore(props) {
|
|
52
53
|
var _a = props.className,
|
|
53
54
|
className = _a === void 0 ? '' : _a,
|
|
@@ -58,9 +59,9 @@ var ReactEchartCore = function ReactEchartCore(props) {
|
|
|
58
59
|
_c = props.lazyUpdate,
|
|
59
60
|
lazyUpdate = _c === void 0 ? false : _c,
|
|
60
61
|
_d = props.onEvents,
|
|
61
|
-
onEvents = _d === void 0 ?
|
|
62
|
+
onEvents = _d === void 0 ? initEmptyObject : _d,
|
|
62
63
|
_e = props.opts,
|
|
63
|
-
opts = _e === void 0 ?
|
|
64
|
+
opts = _e === void 0 ? initEmptyObject : _e,
|
|
64
65
|
theme = props.theme;
|
|
65
66
|
var chartDomRef = (0, react_1.useRef)();
|
|
66
67
|
var chartRef = (0, react_1.useRef)();
|
|
@@ -102,6 +103,7 @@ var ReactEchartCore = function ReactEchartCore(props) {
|
|
|
102
103
|
// need reBuild
|
|
103
104
|
(0, useUpdateEffect_1["default"])(function () {
|
|
104
105
|
dispose();
|
|
106
|
+
initEcharts();
|
|
105
107
|
renderEchartDom();
|
|
106
108
|
bindEvents();
|
|
107
109
|
}, [theme, opts]);
|
package/lib/rc-echart/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/lib/rc-qrcode/index.js
CHANGED
|
@@ -59,11 +59,12 @@ var qrcode_1 = __importDefault(require("qrcode"));
|
|
|
59
59
|
var useMount_1 = __importDefault(require("ahooks/lib/useMount"));
|
|
60
60
|
var useQrcode_1 = __importDefault(require("./useQrcode"));
|
|
61
61
|
exports.useQrcode = useQrcode_1["default"];
|
|
62
|
+
var initEmptyObject = {};
|
|
62
63
|
var RcQrcode = function RcQrcode(props) {
|
|
63
64
|
var _a = props.value,
|
|
64
65
|
value = _a === void 0 ? '' : _a,
|
|
65
66
|
_b = props.options,
|
|
66
|
-
options = _b === void 0 ?
|
|
67
|
+
options = _b === void 0 ? initEmptyObject : _b,
|
|
67
68
|
getCanvasInstance = props.getCanvasInstance;
|
|
68
69
|
var domElRef = React.useRef(null);
|
|
69
70
|
var defaultOptions = {
|
|
@@ -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];
|
|
@@ -228,6 +224,9 @@ var getLocalImgURL = function getLocalImgURL(file) {
|
|
|
228
224
|
var imgURL = URL.createObjectURL(file);
|
|
229
225
|
return imgURL;
|
|
230
226
|
};
|
|
227
|
+
var initBeforeUpload = function initBeforeUpload() {
|
|
228
|
+
return true;
|
|
229
|
+
};
|
|
231
230
|
var SingleImgUpload = function SingleImgUpload(props) {
|
|
232
231
|
var className = props.className,
|
|
233
232
|
wrapperClassName = props.wrapperClassName,
|
|
@@ -239,9 +238,7 @@ var SingleImgUpload = function SingleImgUpload(props) {
|
|
|
239
238
|
onSuccess = props.onSuccess,
|
|
240
239
|
onCancel = props.onCancel,
|
|
241
240
|
_a = props.beforeUpload,
|
|
242
|
-
beforeUpload = _a === void 0 ?
|
|
243
|
-
return true;
|
|
244
|
-
} : _a,
|
|
241
|
+
beforeUpload = _a === void 0 ? initBeforeUpload : _a,
|
|
245
242
|
onError = props.onError,
|
|
246
243
|
disabled = props.disabled,
|
|
247
244
|
restProps = __rest(props, ["className", "wrapperClassName", "children", "value", "onStart", "onDeleteUpload", "onFormatResData", "onSuccess", "onCancel", "beforeUpload", "onError", "disabled"]);
|
|
@@ -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.76",
|
|
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": "25f97cf662b09a287d612a4ab8f68d09e1438617"
|
|
84
84
|
}
|