assui 3.2.3 → 3.2.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/LICENSE +21 -0
- package/es/img-crop/index.d.ts +1 -0
- package/es/img-crop/index.js +4 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/label-range-picker/index.js +17 -4
- package/es/label-range-picker/style/index.css +2 -2
- package/es/label-range-picker/style/index.less +1 -2
- package/lib/img-crop/index.d.ts +1 -0
- package/lib/img-crop/index.js +4 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/label-range-picker/index.js +17 -4
- package/lib/label-range-picker/style/index.css +2 -2
- package/lib/label-range-picker/style/index.less +1 -2
- package/package.json +4 -3
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/img-crop/index.d.ts
CHANGED
package/es/img-crop/index.js
CHANGED
|
@@ -193,6 +193,7 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
193
193
|
modalWidth = props.modalWidth,
|
|
194
194
|
modalOk = props.modalOk,
|
|
195
195
|
modalCancel = props.modalCancel,
|
|
196
|
+
modalCenter = props.modalCenter,
|
|
196
197
|
beforeCrop = props.beforeCrop,
|
|
197
198
|
zipImg = props.zipImg,
|
|
198
199
|
children = props.children,
|
|
@@ -279,10 +280,11 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
279
280
|
var obj = {
|
|
280
281
|
width: modalWidth,
|
|
281
282
|
okText: modalOk,
|
|
282
|
-
cancelText: modalCancel
|
|
283
|
+
cancelText: modalCancel,
|
|
284
|
+
center: modalCenter
|
|
283
285
|
};
|
|
284
286
|
return obj;
|
|
285
|
-
}, [modalCancel, modalOk, modalWidth]);
|
|
287
|
+
}, [modalCancel, modalOk, modalWidth, modalCenter]);
|
|
286
288
|
var onClose = React.useCallback(function () {
|
|
287
289
|
setSrc('');
|
|
288
290
|
setZoomVal(1);
|
package/es/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export { default as LabelRangeNumber } from './label-range-number';
|
|
|
29
29
|
export type { StepNumberInputProps } from './step-number-input';
|
|
30
30
|
export { default as StepNumberInput } from './step-number-input';
|
|
31
31
|
export type { RcEchartPropsType } from './rc-echart';
|
|
32
|
-
export { default as
|
|
32
|
+
export { default as RcEchart } from './rc-echart';
|
|
33
33
|
export type { RcQrcodeProps } from './rc-qrcode';
|
|
34
34
|
export { default as RcQRcode } from './rc-qrcode';
|
|
35
35
|
export { default as RcTransitionGroup } from './rc-transition-group';
|
package/es/index.js
CHANGED
|
@@ -13,7 +13,7 @@ export { default as RcMotion } from './rc-motion';
|
|
|
13
13
|
export { default as NumberInput } from './number-input';
|
|
14
14
|
export { default as LabelRangeNumber } from './label-range-number';
|
|
15
15
|
export { default as StepNumberInput } from './step-number-input';
|
|
16
|
-
export { default as
|
|
16
|
+
export { default as RcEchart } from './rc-echart';
|
|
17
17
|
export { default as RcQRcode } from './rc-qrcode';
|
|
18
18
|
export { default as RcTransitionGroup } from './rc-transition-group';
|
|
19
19
|
export { default as SingleImgUpload } from './single-img-upload';
|
|
@@ -10,6 +10,16 @@ var __assign = this && this.__assign || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) {
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
17
|
+
}
|
|
18
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
13
23
|
var __read = this && this.__read || function (o, n) {
|
|
14
24
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
25
|
if (!m) return o;
|
|
@@ -43,7 +53,9 @@ import CalendarOutlined from "a-icons/es/CalendarOutlined";
|
|
|
43
53
|
var RangePicker = DatePicker.RangePicker;
|
|
44
54
|
var LabelDatePicker = function LabelDatePicker(props) {
|
|
45
55
|
var className = props.className,
|
|
46
|
-
label = props.label
|
|
56
|
+
label = props.label,
|
|
57
|
+
showTime = props.showTime,
|
|
58
|
+
restProps = __rest(props, ["className", "label", "showTime"]);
|
|
47
59
|
var datePickerRef = React.useRef(null);
|
|
48
60
|
var _a = __read(useControllableValue(props, {
|
|
49
61
|
valuePropName: 'open',
|
|
@@ -74,9 +86,10 @@ var LabelDatePicker = function LabelDatePicker(props) {
|
|
|
74
86
|
'label-range-picker-label-scale': open || value
|
|
75
87
|
}, className)
|
|
76
88
|
}, /*#__PURE__*/React.createElement(RangePicker, __assign({
|
|
77
|
-
format:
|
|
78
|
-
allowEmpty: [true, true]
|
|
79
|
-
|
|
89
|
+
format: showTime ? 'YYYY.MM.DD HH:mm:ss' : 'YYYY.MM.DD',
|
|
90
|
+
allowEmpty: [true, true],
|
|
91
|
+
showTime: showTime
|
|
92
|
+
}, omit(restProps, 'onOpenChange'), {
|
|
80
93
|
separator: "\u2013",
|
|
81
94
|
open: open,
|
|
82
95
|
onChange: handleChange,
|
|
@@ -1236,7 +1236,8 @@ html {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
.label-range-picker {
|
|
1238
1238
|
position: relative;
|
|
1239
|
-
width:
|
|
1239
|
+
width: -moz-fit-content;
|
|
1240
|
+
width: fit-content;
|
|
1240
1241
|
height: 100%;
|
|
1241
1242
|
cursor: pointer;
|
|
1242
1243
|
}
|
|
@@ -1257,7 +1258,6 @@ html {
|
|
|
1257
1258
|
.label-range-picker .ant-picker-input input {
|
|
1258
1259
|
position: relative;
|
|
1259
1260
|
top: 9px;
|
|
1260
|
-
width: 85px;
|
|
1261
1261
|
}
|
|
1262
1262
|
.label-range-picker .ant-picker-focused {
|
|
1263
1263
|
border-color: #000;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
.label-range-picker {
|
|
6
6
|
position: relative;
|
|
7
|
-
width:
|
|
7
|
+
width: fit-content;
|
|
8
8
|
height: 100%;
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
&-input input {
|
|
32
32
|
position: relative;
|
|
33
33
|
top: @pickerInputTop;
|
|
34
|
-
width: 85px;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
&-focused {
|
package/lib/img-crop/index.d.ts
CHANGED
package/lib/img-crop/index.js
CHANGED
|
@@ -236,6 +236,7 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
236
236
|
modalWidth = props.modalWidth,
|
|
237
237
|
modalOk = props.modalOk,
|
|
238
238
|
modalCancel = props.modalCancel,
|
|
239
|
+
modalCenter = props.modalCenter,
|
|
239
240
|
beforeCrop = props.beforeCrop,
|
|
240
241
|
zipImg = props.zipImg,
|
|
241
242
|
children = props.children,
|
|
@@ -322,10 +323,11 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
322
323
|
var obj = {
|
|
323
324
|
width: modalWidth,
|
|
324
325
|
okText: modalOk,
|
|
325
|
-
cancelText: modalCancel
|
|
326
|
+
cancelText: modalCancel,
|
|
327
|
+
center: modalCenter
|
|
326
328
|
};
|
|
327
329
|
return obj;
|
|
328
|
-
}, [modalCancel, modalOk, modalWidth]);
|
|
330
|
+
}, [modalCancel, modalOk, modalWidth, modalCenter]);
|
|
329
331
|
var onClose = React.useCallback(function () {
|
|
330
332
|
setSrc('');
|
|
331
333
|
setZoomVal(1);
|
package/lib/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export { default as LabelRangeNumber } from './label-range-number';
|
|
|
29
29
|
export type { StepNumberInputProps } from './step-number-input';
|
|
30
30
|
export { default as StepNumberInput } from './step-number-input';
|
|
31
31
|
export type { RcEchartPropsType } from './rc-echart';
|
|
32
|
-
export { default as
|
|
32
|
+
export { default as RcEchart } from './rc-echart';
|
|
33
33
|
export type { RcQrcodeProps } from './rc-qrcode';
|
|
34
34
|
export { default as RcQRcode } from './rc-qrcode';
|
|
35
35
|
export { default as RcTransitionGroup } from './rc-transition-group';
|
package/lib/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", {
|
|
9
9
|
value: true
|
|
10
10
|
});
|
|
11
|
-
exports.CountDown = exports.CountUp = exports.ComplexValSelect = exports.MultipartUpload = exports.LabelConditionSelectInput = exports.Flex = exports.Resizable = exports.BeautifulDnd = exports.RichTextEditor = exports.LabelCustomizeRangePicker = exports.TableCol = exports.LabelTreeSelect = exports.LabelConditionInput = exports.LabelNumberInput = exports.LabelAutoComplete = exports.LabelDatePicker = exports.LabelRangePicker = exports.JsonEditor = exports.AreaText = exports.LabelTextArea = exports.ASelect = exports.LabelSelect = exports.ColorSelect = exports.LabelInput = exports.TextInput = exports.TextArea = exports.SplitPane = exports.sortableHoc = exports.SingleImgUpload = exports.RcTransitionGroup = exports.RcQRcode = exports.
|
|
11
|
+
exports.CountDown = exports.CountUp = exports.ComplexValSelect = exports.MultipartUpload = exports.LabelConditionSelectInput = exports.Flex = exports.Resizable = exports.BeautifulDnd = exports.RichTextEditor = exports.LabelCustomizeRangePicker = exports.TableCol = exports.LabelTreeSelect = exports.LabelConditionInput = exports.LabelNumberInput = exports.LabelAutoComplete = exports.LabelDatePicker = exports.LabelRangePicker = exports.JsonEditor = exports.AreaText = exports.LabelTextArea = exports.ASelect = exports.LabelSelect = exports.ColorSelect = exports.LabelInput = exports.TextInput = exports.TextArea = exports.SplitPane = exports.sortableHoc = exports.SingleImgUpload = exports.RcTransitionGroup = exports.RcQRcode = exports.RcEchart = exports.StepNumberInput = exports.LabelRangeNumber = exports.NumberInput = exports.RcMotion = exports.KeepTab = exports.ImgCrop = exports.HighlightWords = exports.HighlightTextarea = exports.CopyToClipboard = exports.NumberFormatInput = exports.ConfigProvider = exports.ConditionSelectInput = exports.ConditionInput = exports.ButtonModal = exports.ButtonDrawer = void 0;
|
|
12
12
|
var button_drawer_1 = require("./button-drawer");
|
|
13
13
|
Object.defineProperty(exports, "ButtonDrawer", {
|
|
14
14
|
enumerable: true,
|
|
@@ -115,7 +115,7 @@ Object.defineProperty(exports, "StepNumberInput", {
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
var rc_echart_1 = require("./rc-echart");
|
|
118
|
-
Object.defineProperty(exports, "
|
|
118
|
+
Object.defineProperty(exports, "RcEchart", {
|
|
119
119
|
enumerable: true,
|
|
120
120
|
get: function get() {
|
|
121
121
|
return __importDefault(rc_echart_1)["default"];
|
|
@@ -12,6 +12,16 @@ var __assign = this && this.__assign || function () {
|
|
|
12
12
|
};
|
|
13
13
|
return __assign.apply(this, arguments);
|
|
14
14
|
};
|
|
15
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
16
|
+
var t = {};
|
|
17
|
+
for (var p in s) {
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
19
|
+
}
|
|
20
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
21
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
15
25
|
var __read = this && this.__read || function (o, n) {
|
|
16
26
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
17
27
|
if (!m) return o;
|
|
@@ -53,7 +63,9 @@ var CalendarOutlined_1 = __importDefault(require("a-icons/lib/CalendarOutlined")
|
|
|
53
63
|
var RangePicker = date_picker_1["default"].RangePicker;
|
|
54
64
|
var LabelDatePicker = function LabelDatePicker(props) {
|
|
55
65
|
var className = props.className,
|
|
56
|
-
label = props.label
|
|
66
|
+
label = props.label,
|
|
67
|
+
showTime = props.showTime,
|
|
68
|
+
restProps = __rest(props, ["className", "label", "showTime"]);
|
|
57
69
|
var datePickerRef = react_1["default"].useRef(null);
|
|
58
70
|
var _a = __read((0, useControllableValue_1["default"])(props, {
|
|
59
71
|
valuePropName: 'open',
|
|
@@ -84,9 +96,10 @@ var LabelDatePicker = function LabelDatePicker(props) {
|
|
|
84
96
|
'label-range-picker-label-scale': open || value
|
|
85
97
|
}, className)
|
|
86
98
|
}, react_1["default"].createElement(RangePicker, __assign({
|
|
87
|
-
format:
|
|
88
|
-
allowEmpty: [true, true]
|
|
89
|
-
|
|
99
|
+
format: showTime ? 'YYYY.MM.DD HH:mm:ss' : 'YYYY.MM.DD',
|
|
100
|
+
allowEmpty: [true, true],
|
|
101
|
+
showTime: showTime
|
|
102
|
+
}, (0, omit_1["default"])(restProps, 'onOpenChange'), {
|
|
90
103
|
separator: "\u2013",
|
|
91
104
|
open: open,
|
|
92
105
|
onChange: handleChange,
|
|
@@ -1236,7 +1236,8 @@ html {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
.label-range-picker {
|
|
1238
1238
|
position: relative;
|
|
1239
|
-
width:
|
|
1239
|
+
width: -moz-fit-content;
|
|
1240
|
+
width: fit-content;
|
|
1240
1241
|
height: 100%;
|
|
1241
1242
|
cursor: pointer;
|
|
1242
1243
|
}
|
|
@@ -1257,7 +1258,6 @@ html {
|
|
|
1257
1258
|
.label-range-picker .ant-picker-input input {
|
|
1258
1259
|
position: relative;
|
|
1259
1260
|
top: 9px;
|
|
1260
|
-
width: 85px;
|
|
1261
1261
|
}
|
|
1262
1262
|
.label-range-picker .ant-picker-focused {
|
|
1263
1263
|
border-color: #000;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
.label-range-picker {
|
|
6
6
|
position: relative;
|
|
7
|
-
width:
|
|
7
|
+
width: fit-content;
|
|
8
8
|
height: 100%;
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
&-input input {
|
|
32
32
|
position: relative;
|
|
33
33
|
top: @pickerInputTop;
|
|
34
|
-
width: 85px;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
&-focused {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.5",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/react-beautiful-dnd": "^13.1.2",
|
|
36
36
|
"@types/react-color": "^3.0.6",
|
|
37
37
|
"@types/react-resizable": "^3.0.0",
|
|
38
|
-
"a-icons": "^1.2.
|
|
38
|
+
"a-icons": "^1.2.4",
|
|
39
39
|
"aa-utils": "^2.1.27",
|
|
40
40
|
"ahooks": "^3.0.8",
|
|
41
41
|
"bignumber.js": "^9.0.1",
|
|
@@ -81,5 +81,6 @@
|
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=10.0.0"
|
|
83
83
|
},
|
|
84
|
-
"license": "MIT"
|
|
84
|
+
"license": "MIT",
|
|
85
|
+
"gitHead": "aecb544cb04cb1f776d3a4d841cf416289dff335"
|
|
85
86
|
}
|