assui 3.1.72 → 3.1.74
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/complex-val-select/index.d.ts +2 -2
- package/es/highlight-textarea/HighlighedContents.d.ts +1 -1
- package/es/highlight-textarea/HighlighedContents.js +2 -1
- package/es/highlight-textarea/index.d.ts +1 -1
- package/es/img-crop/index.d.ts +6 -6
- package/es/keep-tab/index.d.ts +1 -1
- package/es/rc-qrcode/index.d.ts +1 -1
- package/es/step-number-input/index.d.ts +2 -2
- package/lib/complex-val-select/index.d.ts +2 -2
- package/lib/highlight-textarea/HighlighedContents.d.ts +1 -1
- package/lib/highlight-textarea/HighlighedContents.js +2 -1
- package/lib/highlight-textarea/index.d.ts +1 -1
- package/lib/img-crop/index.d.ts +6 -6
- package/lib/keep-tab/index.d.ts +1 -1
- package/lib/rc-qrcode/index.d.ts +1 -1
- package/lib/step-number-input/index.d.ts +2 -2
- package/package.json +2 -2
- package/LICENSE +0 -21
|
@@ -1,9 +1,9 @@
|
|
|
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
5
|
export declare type ComplexValSelectValueType = string | number | any[] | Record<string, any> | null | undefined;
|
|
6
|
-
export interface ComplexValSelectOptionType extends Omit<
|
|
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'>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HighlightType } from './types';
|
|
2
2
|
export interface HighlighedContentsProps {
|
|
3
3
|
value: string;
|
|
4
|
-
highlight
|
|
4
|
+
highlight?: HighlightType;
|
|
5
5
|
}
|
|
6
6
|
declare const HighlighedContents: ({ value, highlight }: HighlighedContentsProps) => JSX.Element;
|
|
7
7
|
export default HighlighedContents;
|
|
@@ -3,7 +3,8 @@ import getRanges from './getRanges';
|
|
|
3
3
|
import extractSpansOfClasses from './extractSpansOfClasses';
|
|
4
4
|
var HighlighedContents = function HighlighedContents(_a) {
|
|
5
5
|
var value = _a.value,
|
|
6
|
-
|
|
6
|
+
_b = _a.highlight,
|
|
7
|
+
highlight = _b === void 0 ? '' : _b;
|
|
7
8
|
var ranges = getRanges(value, highlight);
|
|
8
9
|
var parts = extractSpansOfClasses(value, ranges);
|
|
9
10
|
return /*#__PURE__*/React.createElement(React.Fragment, null, parts.map(function (part) {
|
|
@@ -6,7 +6,7 @@ export interface HighlightTextareaProps extends HighlighedContentsProps, Omit<Re
|
|
|
6
6
|
className?: string;
|
|
7
7
|
textAreaClassName?: string;
|
|
8
8
|
onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
9
|
-
highlight
|
|
9
|
+
highlight?: HighlightType;
|
|
10
10
|
}
|
|
11
11
|
declare const HighlightWithinTextarea: React.ForwardRefExoticComponent<HighlightTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
12
12
|
export default HighlightWithinTextarea;
|
package/es/img-crop/index.d.ts
CHANGED
|
@@ -6,16 +6,16 @@ export interface RcFile extends File {
|
|
|
6
6
|
uid: string;
|
|
7
7
|
}
|
|
8
8
|
export interface ImgCropProps {
|
|
9
|
-
prefix
|
|
10
|
-
aspect
|
|
11
|
-
shape
|
|
9
|
+
prefix?: string;
|
|
10
|
+
aspect?: number;
|
|
11
|
+
shape?: 'rect' | 'round';
|
|
12
12
|
grid?: boolean;
|
|
13
13
|
quality?: number;
|
|
14
14
|
zoom?: boolean;
|
|
15
15
|
rotate?: boolean;
|
|
16
|
-
minZoom
|
|
17
|
-
maxZoom
|
|
18
|
-
fillColor
|
|
16
|
+
minZoom?: number;
|
|
17
|
+
maxZoom?: number;
|
|
18
|
+
fillColor?: string;
|
|
19
19
|
modalTitle: string;
|
|
20
20
|
modalWidth?: string | number;
|
|
21
21
|
modalCancel?: string;
|
package/es/keep-tab/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface KeepTabProps extends Omit<TabsProps, 'items'> {
|
|
|
9
9
|
/** 初始化选中面板的 key,如果没有设置 activeKey */
|
|
10
10
|
defaultActiveKey?: string;
|
|
11
11
|
/** 保存激活 tab 面板的的key名 */
|
|
12
|
-
saveActiveKeyName
|
|
12
|
+
saveActiveKeyName?: string;
|
|
13
13
|
/** 当前激活 tab 面板的 key */
|
|
14
14
|
activeKey?: string;
|
|
15
15
|
/** 切换面板的回调 */
|
package/es/rc-qrcode/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import QRCode from 'qrcode';
|
|
|
3
3
|
import useQrcode from './useQrcode';
|
|
4
4
|
export interface RcQrcodeProps {
|
|
5
5
|
/** 生成二维码的值 */
|
|
6
|
-
value
|
|
6
|
+
value?: QRCodeSegment[] | string;
|
|
7
7
|
/** qrcode的QRCodeRenderersOptions */
|
|
8
8
|
options?: QRCodeRenderersOptions;
|
|
9
9
|
/** 获取HTMLCanvasElement */
|
|
@@ -5,7 +5,7 @@ export interface StepNumberInputProps {
|
|
|
5
5
|
/** 输入数据的类型 */
|
|
6
6
|
numberType?: 'int' | 'float';
|
|
7
7
|
/** 精度,只对float有效 */
|
|
8
|
-
precision
|
|
8
|
+
precision?: number;
|
|
9
9
|
/** 内容最大长度 */
|
|
10
10
|
maxLength?: number;
|
|
11
11
|
/** 指定输入框展示值的格式 */
|
|
@@ -15,7 +15,7 @@ export interface StepNumberInputProps {
|
|
|
15
15
|
/** 是否允许输入负数 */
|
|
16
16
|
enableMinus?: boolean;
|
|
17
17
|
/** 步进, 每次点击+/- 多少 */
|
|
18
|
-
step
|
|
18
|
+
step?: string | number;
|
|
19
19
|
/** 变化回调 */
|
|
20
20
|
onChange?: (value: string) => void;
|
|
21
21
|
/** 失去焦点回调 */
|
|
@@ -1,9 +1,9 @@
|
|
|
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
5
|
export declare type ComplexValSelectValueType = string | number | any[] | Record<string, any> | null | undefined;
|
|
6
|
-
export interface ComplexValSelectOptionType extends Omit<
|
|
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'>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HighlightType } from './types';
|
|
2
2
|
export interface HighlighedContentsProps {
|
|
3
3
|
value: string;
|
|
4
|
-
highlight
|
|
4
|
+
highlight?: HighlightType;
|
|
5
5
|
}
|
|
6
6
|
declare const HighlighedContents: ({ value, highlight }: HighlighedContentsProps) => JSX.Element;
|
|
7
7
|
export default HighlighedContents;
|
|
@@ -13,7 +13,8 @@ var getRanges_1 = __importDefault(require("./getRanges"));
|
|
|
13
13
|
var extractSpansOfClasses_1 = __importDefault(require("./extractSpansOfClasses"));
|
|
14
14
|
var HighlighedContents = function HighlighedContents(_a) {
|
|
15
15
|
var value = _a.value,
|
|
16
|
-
|
|
16
|
+
_b = _a.highlight,
|
|
17
|
+
highlight = _b === void 0 ? '' : _b;
|
|
17
18
|
var ranges = (0, getRanges_1["default"])(value, highlight);
|
|
18
19
|
var parts = (0, extractSpansOfClasses_1["default"])(value, ranges);
|
|
19
20
|
return react_1["default"].createElement(react_1["default"].Fragment, null, parts.map(function (part) {
|
|
@@ -6,7 +6,7 @@ export interface HighlightTextareaProps extends HighlighedContentsProps, Omit<Re
|
|
|
6
6
|
className?: string;
|
|
7
7
|
textAreaClassName?: string;
|
|
8
8
|
onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
9
|
-
highlight
|
|
9
|
+
highlight?: HighlightType;
|
|
10
10
|
}
|
|
11
11
|
declare const HighlightWithinTextarea: React.ForwardRefExoticComponent<HighlightTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
12
12
|
export default HighlightWithinTextarea;
|
package/lib/img-crop/index.d.ts
CHANGED
|
@@ -6,16 +6,16 @@ export interface RcFile extends File {
|
|
|
6
6
|
uid: string;
|
|
7
7
|
}
|
|
8
8
|
export interface ImgCropProps {
|
|
9
|
-
prefix
|
|
10
|
-
aspect
|
|
11
|
-
shape
|
|
9
|
+
prefix?: string;
|
|
10
|
+
aspect?: number;
|
|
11
|
+
shape?: 'rect' | 'round';
|
|
12
12
|
grid?: boolean;
|
|
13
13
|
quality?: number;
|
|
14
14
|
zoom?: boolean;
|
|
15
15
|
rotate?: boolean;
|
|
16
|
-
minZoom
|
|
17
|
-
maxZoom
|
|
18
|
-
fillColor
|
|
16
|
+
minZoom?: number;
|
|
17
|
+
maxZoom?: number;
|
|
18
|
+
fillColor?: string;
|
|
19
19
|
modalTitle: string;
|
|
20
20
|
modalWidth?: string | number;
|
|
21
21
|
modalCancel?: string;
|
package/lib/keep-tab/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface KeepTabProps extends Omit<TabsProps, 'items'> {
|
|
|
9
9
|
/** 初始化选中面板的 key,如果没有设置 activeKey */
|
|
10
10
|
defaultActiveKey?: string;
|
|
11
11
|
/** 保存激活 tab 面板的的key名 */
|
|
12
|
-
saveActiveKeyName
|
|
12
|
+
saveActiveKeyName?: string;
|
|
13
13
|
/** 当前激活 tab 面板的 key */
|
|
14
14
|
activeKey?: string;
|
|
15
15
|
/** 切换面板的回调 */
|
package/lib/rc-qrcode/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import QRCode from 'qrcode';
|
|
|
3
3
|
import useQrcode from './useQrcode';
|
|
4
4
|
export interface RcQrcodeProps {
|
|
5
5
|
/** 生成二维码的值 */
|
|
6
|
-
value
|
|
6
|
+
value?: QRCodeSegment[] | string;
|
|
7
7
|
/** qrcode的QRCodeRenderersOptions */
|
|
8
8
|
options?: QRCodeRenderersOptions;
|
|
9
9
|
/** 获取HTMLCanvasElement */
|
|
@@ -5,7 +5,7 @@ export interface StepNumberInputProps {
|
|
|
5
5
|
/** 输入数据的类型 */
|
|
6
6
|
numberType?: 'int' | 'float';
|
|
7
7
|
/** 精度,只对float有效 */
|
|
8
|
-
precision
|
|
8
|
+
precision?: number;
|
|
9
9
|
/** 内容最大长度 */
|
|
10
10
|
maxLength?: number;
|
|
11
11
|
/** 指定输入框展示值的格式 */
|
|
@@ -15,7 +15,7 @@ export interface StepNumberInputProps {
|
|
|
15
15
|
/** 是否允许输入负数 */
|
|
16
16
|
enableMinus?: boolean;
|
|
17
17
|
/** 步进, 每次点击+/- 多少 */
|
|
18
|
-
step
|
|
18
|
+
step?: string | number;
|
|
19
19
|
/** 变化回调 */
|
|
20
20
|
onChange?: (value: string) => void;
|
|
21
21
|
/** 失去焦点回调 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.74",
|
|
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": "99e2d360fa53b70764d154832ac7f2ac221904bf"
|
|
84
84
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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.
|