assui 2.0.147 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/button-drawer/index.d.ts +1 -1
- package/es/button-modal/index.d.ts +1 -1
- package/es/copy-to-clipboard/style/index.css +58 -43
- package/es/customize-range-picker/defaultRadioList.d.ts +24 -0
- package/es/customize-range-picker/defaultRadioList.js +79 -0
- package/es/customize-range-picker/index.d.ts +15 -0
- package/es/customize-range-picker/index.js +172 -0
- package/es/customize-range-picker/style/index.css +1821 -0
- package/es/customize-range-picker/style/index.d.ts +1 -0
- package/es/customize-range-picker/style/index.js +1 -0
- package/es/customize-range-picker/style/index.less +46 -0
- package/es/highlight-textarea/extractSpansOfClasses.js +9 -7
- package/es/highlight-textarea/getRanges.js +9 -7
- package/es/highlight-textarea/index.js +3 -3
- package/es/highlight-textarea/style/index.css +169 -41
- package/es/highlight-textarea/types.js +1 -0
- package/es/img-crop/index.js +7 -7
- package/es/img-crop/style/index.css +1784 -0
- package/es/img-crop/style/index.less +1 -1
- package/es/keep-tab/style/index.css +40 -23
- package/es/label-auto-complete/style/index.css +1784 -0
- package/es/label-auto-complete/style/index.less +1 -1
- package/es/label-customize-range-picker/defaultRadioList.js +2 -2
- package/es/label-customize-range-picker/index.js +5 -3
- package/es/label-customize-range-picker/style/index.css +1792 -8
- package/es/label-customize-range-picker/style/index.less +6 -4
- package/es/label-date-picker/index.js +1 -1
- package/es/label-date-picker/style/index.css +1784 -0
- package/es/label-date-picker/style/index.less +1 -1
- package/es/label-number-input/index.js +1 -1
- package/es/label-range-picker/style/index.css +1784 -0
- package/es/label-range-picker/style/index.less +1 -1
- package/es/label-select/style/index.css +1784 -0
- package/es/label-select/style/index.less +1 -1
- package/es/label-tree-select/style/index.css +1784 -0
- package/es/label-tree-select/style/index.less +1 -1
- package/es/number-input/index.js +4 -4
- package/es/number-input/utils.js +1 -1
- package/es/rich-text-editor/style/index.css +6 -5
- package/es/single-img-upload/index.js +1 -1
- package/es/single-img-upload/style/index.css +1784 -0
- package/es/single-img-upload/style/index.less +1 -1
- package/es/step-number-input/index.js +8 -8
- package/es/step-number-input/style/index.css +1784 -0
- package/es/step-number-input/style/index.less +1 -1
- package/es/text-input/index.js +8 -6
- package/es/text-input/style/index.css +169 -41
- package/lib/beautiful-dnd/index.js +13 -7
- package/lib/button-drawer/index.d.ts +1 -1
- package/lib/button-drawer/index.js +18 -12
- package/lib/button-modal/index.d.ts +1 -1
- package/lib/button-modal/index.js +14 -8
- package/lib/condition-input/index.js +17 -11
- package/lib/condition-input/parse2RegexOption.js +3 -3
- package/lib/copy-to-clipboard/index.js +15 -9
- package/lib/copy-to-clipboard/style/index.css +58 -43
- package/lib/customize-range-picker/defaultRadioList.d.ts +24 -0
- package/lib/customize-range-picker/defaultRadioList.js +93 -0
- package/lib/customize-range-picker/index.d.ts +15 -0
- package/lib/customize-range-picker/index.js +228 -0
- package/lib/customize-range-picker/style/index.css +1821 -0
- package/lib/customize-range-picker/style/index.d.ts +1 -0
- package/lib/customize-range-picker/style/index.js +7 -0
- package/lib/customize-range-picker/style/index.less +46 -0
- package/lib/highlight-textarea/HighlighedContents.js +2 -2
- package/lib/highlight-textarea/extractSpansOfClasses.js +9 -7
- package/lib/highlight-textarea/getRanges.js +10 -8
- package/lib/highlight-textarea/index.js +19 -13
- package/lib/highlight-textarea/style/index.css +169 -41
- package/lib/img-crop/EasyCrop.js +13 -7
- package/lib/img-crop/index.js +21 -15
- package/lib/img-crop/style/index.css +1784 -0
- package/lib/img-crop/style/index.less +1 -1
- package/lib/index.js +38 -31
- package/lib/keep-tab/index.js +17 -11
- package/lib/keep-tab/style/index.css +40 -23
- package/lib/label-auto-complete/index.js +5 -5
- package/lib/label-auto-complete/style/index.css +1784 -0
- package/lib/label-auto-complete/style/index.less +1 -1
- package/lib/label-condition-input/index.js +5 -5
- package/lib/label-customize-range-picker/defaultRadioList.js +3 -3
- package/lib/label-customize-range-picker/index.js +22 -14
- package/lib/label-customize-range-picker/style/index.css +1792 -8
- package/lib/label-customize-range-picker/style/index.less +6 -4
- package/lib/label-date-picker/index.js +5 -5
- package/lib/label-date-picker/style/index.css +1784 -0
- package/lib/label-date-picker/style/index.less +1 -1
- package/lib/label-input/index.js +5 -5
- package/lib/label-number-input/index.js +6 -6
- package/lib/label-range-picker/index.js +3 -3
- package/lib/label-range-picker/style/index.css +1784 -0
- package/lib/label-range-picker/style/index.less +1 -1
- package/lib/label-select/index.js +5 -5
- package/lib/label-select/style/index.css +1784 -0
- package/lib/label-select/style/index.less +1 -1
- package/lib/label-text-area/index.js +4 -4
- package/lib/label-tree-select/index.js +4 -4
- package/lib/label-tree-select/style/index.css +1784 -0
- package/lib/label-tree-select/style/index.less +1 -1
- package/lib/number-input/index.js +21 -15
- package/lib/number-input/utils.js +8 -4
- package/lib/rc-echart/core.js +21 -15
- package/lib/rc-echart/index.js +13 -7
- package/lib/rc-qrcode/index.js +14 -8
- package/lib/rc-qrcode/useQrcode.js +4 -3
- package/lib/rc-transition-group/index.js +13 -7
- package/lib/rich-text-editor/index.js +1 -1
- package/lib/rich-text-editor/style/index.css +6 -5
- package/lib/single-img-upload/index.js +18 -12
- package/lib/single-img-upload/style/index.css +1784 -0
- package/lib/single-img-upload/style/index.less +1 -1
- package/lib/sortable-hoc/index.js +13 -7
- package/lib/split-pane/index.js +13 -7
- package/lib/step-number-input/index.js +32 -26
- package/lib/step-number-input/style/index.css +1784 -0
- package/lib/step-number-input/style/index.less +1 -1
- package/lib/text-area/index.js +14 -8
- package/lib/text-input/index.js +8 -6
- package/lib/text-input/style/index.css +169 -41
- package/package.json +5 -4
package/lib/img-crop/index.js
CHANGED
|
@@ -18,12 +18,18 @@ var __assign = this && this.__assign || function () {
|
|
|
18
18
|
|
|
19
19
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
20
20
|
if (k2 === undefined) k2 = k;
|
|
21
|
-
Object.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
22
|
+
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return m[k];
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
Object.defineProperty(o, k2, desc);
|
|
27
33
|
} : function (o, m, k, k2) {
|
|
28
34
|
if (k2 === undefined) k2 = k;
|
|
29
35
|
o[k2] = m[k];
|
|
@@ -42,7 +48,7 @@ var __importStar = this && this.__importStar || function (mod) {
|
|
|
42
48
|
if (mod && mod.__esModule) return mod;
|
|
43
49
|
var result = {};
|
|
44
50
|
if (mod != null) for (var k in mod) {
|
|
45
|
-
if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
51
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
__setModuleDefault(result, mod);
|
|
@@ -281,8 +287,8 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
281
287
|
zipImg = props.zipImg,
|
|
282
288
|
children = props.children,
|
|
283
289
|
cropperProps = props.cropperProps;
|
|
284
|
-
var pkg = prefix
|
|
285
|
-
var MEDIA_CLASS = pkg
|
|
290
|
+
var pkg = "".concat(prefix, "-img-crop");
|
|
291
|
+
var MEDIA_CLASS = "".concat(pkg, "-media");
|
|
286
292
|
var hasZoom = zoom === true;
|
|
287
293
|
var hasRotate = rotate === true;
|
|
288
294
|
|
|
@@ -389,7 +395,7 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
389
395
|
|
|
390
396
|
return __generator(this, function (_c) {
|
|
391
397
|
onClose();
|
|
392
|
-
naturalImg = document.querySelector("."
|
|
398
|
+
naturalImg = document.querySelector(".".concat(MEDIA_CLASS));
|
|
393
399
|
naturalWidth = naturalImg.naturalWidth, naturalHeight = naturalImg.naturalHeight;
|
|
394
400
|
canvas = document.createElement('canvas');
|
|
395
401
|
ctx = canvas.getContext('2d');
|
|
@@ -431,7 +437,7 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
431
437
|
imgUrl = url.createObjectURL(newFile);
|
|
432
438
|
return [4
|
|
433
439
|
/*yield*/
|
|
434
|
-
, getCroppedImg_1["default"](imgUrl, zipImg, name, type)];
|
|
440
|
+
, (0, getCroppedImg_1["default"])(imgUrl, zipImg, name, type)];
|
|
435
441
|
|
|
436
442
|
case 1:
|
|
437
443
|
fileObj = _a.sent().fileObj;
|
|
@@ -505,7 +511,7 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
505
511
|
var renderComponent = function renderComponent(titleOfModal) {
|
|
506
512
|
return React.createElement(React.Fragment, null, renderUpload(), src && React.createElement(modal_1["default"], __assign({
|
|
507
513
|
visible: true,
|
|
508
|
-
wrapClassName: pkg
|
|
514
|
+
wrapClassName: "".concat(pkg, "-modal"),
|
|
509
515
|
title: titleOfModal,
|
|
510
516
|
onOk: onOk,
|
|
511
517
|
onCancel: onClose,
|
|
@@ -525,11 +531,11 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
525
531
|
maxZoom: maxZoom,
|
|
526
532
|
onComplete: onComplete,
|
|
527
533
|
classes: {
|
|
528
|
-
containerClassName: pkg
|
|
534
|
+
containerClassName: "".concat(pkg, "-container"),
|
|
529
535
|
mediaClassName: MEDIA_CLASS
|
|
530
536
|
}
|
|
531
537
|
}, cropperProps)), hasZoom && React.createElement("div", {
|
|
532
|
-
className: pkg
|
|
538
|
+
className: "".concat(pkg, "-control zoom")
|
|
533
539
|
}, React.createElement("button", {
|
|
534
540
|
type: "button",
|
|
535
541
|
onClick: subZoomVal,
|
|
@@ -545,7 +551,7 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
545
551
|
onClick: addZoomVal,
|
|
546
552
|
disabled: isMaxZoom
|
|
547
553
|
}, "\uFF0B")), hasRotate && React.createElement("div", {
|
|
548
|
-
className: pkg
|
|
554
|
+
className: "".concat(pkg, "-control rotate")
|
|
549
555
|
}, React.createElement("button", {
|
|
550
556
|
type: "button",
|
|
551
557
|
onClick: subRotateVal,
|