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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@import '~antd/lib/style/index.less';
|
|
2
|
+
|
|
3
|
+
@progress-prefix-cls: ~'@{ant-prefix}';
|
|
4
|
+
|
|
5
|
+
.customize-range-picker-panel {
|
|
6
|
+
.check-wrapper {
|
|
7
|
+
padding: 8px 11px 6px;
|
|
8
|
+
border-bottom: 1px solid #f5f6fa;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.customize-select {
|
|
12
|
+
vertical-align: middle;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.customize-select-text {
|
|
16
|
+
margin-left: 8px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.@{ant-prefix}-radio-wrapper {
|
|
20
|
+
margin-right: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pick-box {
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
width: 265px;
|
|
27
|
+
padding: 8px 11px 11px;
|
|
28
|
+
|
|
29
|
+
.radio {
|
|
30
|
+
width: 50%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.@{ant-prefix}-radio-group {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media screen and (max-width: 576px) {
|
|
42
|
+
.customize-range-picker-panel {
|
|
43
|
+
max-width: 280px;
|
|
44
|
+
overflow-x: scroll;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -19,8 +19,8 @@ var extractSpansOfClasses_1 = __importDefault(require("./extractSpansOfClasses")
|
|
|
19
19
|
var HighlighedContents = function HighlighedContents(_a) {
|
|
20
20
|
var value = _a.value,
|
|
21
21
|
highlight = _a.highlight;
|
|
22
|
-
var ranges = getRanges_1["default"](value, highlight);
|
|
23
|
-
var parts = extractSpansOfClasses_1["default"](value, ranges);
|
|
22
|
+
var ranges = (0, getRanges_1["default"])(value, highlight);
|
|
23
|
+
var parts = (0, extractSpansOfClasses_1["default"])(value, ranges);
|
|
24
24
|
return react_1["default"].createElement(react_1["default"].Fragment, null, parts.map(function (part) {
|
|
25
25
|
return part.render();
|
|
26
26
|
}));
|
|
@@ -27,12 +27,14 @@ var __read = this && this.__read || function (o, n) {
|
|
|
27
27
|
return ar;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
var
|
|
31
|
-
for (var
|
|
32
|
-
ar
|
|
30
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
31
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
32
|
+
if (ar || !(i in from)) {
|
|
33
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
34
|
+
ar[i] = from[i];
|
|
35
|
+
}
|
|
33
36
|
}
|
|
34
|
-
|
|
35
|
-
return ar;
|
|
37
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -77,14 +79,14 @@ function () {
|
|
|
77
79
|
this.endIndex = beginIndex2;
|
|
78
80
|
var right = new Span(rightText, beginIndex2);
|
|
79
81
|
right.isMark = this.isMark;
|
|
80
|
-
right.markClasses = new Set(
|
|
82
|
+
right.markClasses = new Set(__spreadArray([], __read(this.markClasses), false));
|
|
81
83
|
return right;
|
|
82
84
|
};
|
|
83
85
|
|
|
84
86
|
Object.defineProperty(Span.prototype, "className", {
|
|
85
87
|
get: function get() {
|
|
86
88
|
if (this.markClasses && this.markClasses.size > 0) {
|
|
87
|
-
return
|
|
89
|
+
return __spreadArray([], __read(this.markClasses), false).sort().join(' ');
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
return '';
|
|
@@ -27,12 +27,14 @@ var __read = this && this.__read || function (o, n) {
|
|
|
27
27
|
return ar;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
var
|
|
31
|
-
for (var
|
|
32
|
-
ar
|
|
30
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
31
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
32
|
+
if (ar || !(i in from)) {
|
|
33
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
34
|
+
ar[i] = from[i];
|
|
35
|
+
}
|
|
33
36
|
}
|
|
34
|
-
|
|
35
|
-
return ar;
|
|
37
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -53,7 +55,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
53
55
|
var getType_1 = __importDefault(require("./getType"));
|
|
54
56
|
|
|
55
57
|
function getRanges(input, highlight) {
|
|
56
|
-
var type = getType_1["default"](highlight);
|
|
58
|
+
var type = (0, getType_1["default"])(highlight);
|
|
57
59
|
|
|
58
60
|
switch (type) {
|
|
59
61
|
case 'array':
|
|
@@ -138,14 +140,14 @@ function getRangeRanges(range) {
|
|
|
138
140
|
function getCustomRanges(input, custom) {
|
|
139
141
|
var ranges = getRanges(input, custom.highlight);
|
|
140
142
|
|
|
141
|
-
var resultRangesData =
|
|
143
|
+
var resultRangesData = __spreadArray([], __read(ranges), false);
|
|
142
144
|
|
|
143
145
|
if (custom.className) {
|
|
144
146
|
resultRangesData.forEach(function (range) {
|
|
145
147
|
var rangeOption = range[2] || {};
|
|
146
148
|
|
|
147
149
|
if (rangeOption.className) {
|
|
148
|
-
rangeOption.className = custom.className
|
|
150
|
+
rangeOption.className = "".concat(custom.className, " ").concat(rangeOption.className);
|
|
149
151
|
} else {
|
|
150
152
|
rangeOption.className = custom.className;
|
|
151
153
|
}
|
|
@@ -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);
|
|
@@ -134,17 +140,17 @@ var HighlightWithinTextarea = React.forwardRef(function (props, ref) {
|
|
|
134
140
|
|
|
135
141
|
if (backdropRef.current && textareaDom) {
|
|
136
142
|
backdropRef.current.scrollLeft = textareaDom.scrollLeft;
|
|
137
|
-
backdropRef.current.style.height = textareaDom.clientHeight + textareaDom.scrollTop
|
|
138
|
-
backdropRef.current.style.top = 0 - textareaDom.scrollTop
|
|
143
|
+
backdropRef.current.style.height = "".concat(textareaDom.clientHeight + textareaDom.scrollTop, "px");
|
|
144
|
+
backdropRef.current.style.top = "".concat(0 - textareaDom.scrollTop, "px");
|
|
139
145
|
}
|
|
140
146
|
};
|
|
141
147
|
|
|
142
|
-
useMount_1["default"](function () {
|
|
148
|
+
(0, useMount_1["default"])(function () {
|
|
143
149
|
handleScroll();
|
|
144
150
|
});
|
|
145
151
|
|
|
146
152
|
var onTextareaChange = function onTextareaChange(e) {
|
|
147
|
-
var newValue = trimStart_1["default"](e.target.value);
|
|
153
|
+
var newValue = (0, trimStart_1["default"])(e.target.value);
|
|
148
154
|
|
|
149
155
|
if (onChange) {
|
|
150
156
|
onChange(newValue, e);
|
|
@@ -153,9 +159,9 @@ var HighlightWithinTextarea = React.forwardRef(function (props, ref) {
|
|
|
153
159
|
}
|
|
154
160
|
};
|
|
155
161
|
|
|
156
|
-
var textareaCls = classnames_1["default"](prefixCls
|
|
162
|
+
var textareaCls = (0, classnames_1["default"])("".concat(prefixCls, "-input"), 'highlight-textarea-input', 'highlight-content', textAreaClassName);
|
|
157
163
|
return React.createElement("div", {
|
|
158
|
-
className: classnames_1["default"]('highlight-textarea', className),
|
|
164
|
+
className: (0, classnames_1["default"])('highlight-textarea', className),
|
|
159
165
|
ref: function ref(node) {
|
|
160
166
|
containerRef.current = node;
|
|
161
167
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
border: 1px solid #d9d9d9;
|
|
17
17
|
border-radius: 2px;
|
|
18
18
|
transition: all 0.3s;
|
|
19
|
+
/* stylelint-disable-next-line selector-no-vendor-prefix */
|
|
19
20
|
display: inline-flex;
|
|
20
21
|
}
|
|
21
22
|
.ant-input-affix-wrapper::-moz-placeholder {
|
|
@@ -23,9 +24,15 @@
|
|
|
23
24
|
}
|
|
24
25
|
.ant-input-affix-wrapper:-ms-input-placeholder {
|
|
25
26
|
color: #bfbfbf;
|
|
27
|
+
-ms-user-select: none;
|
|
28
|
+
user-select: none;
|
|
26
29
|
}
|
|
27
30
|
.ant-input-affix-wrapper::placeholder {
|
|
28
31
|
color: #bfbfbf;
|
|
32
|
+
-webkit-user-select: none;
|
|
33
|
+
-moz-user-select: none;
|
|
34
|
+
-ms-user-select: none;
|
|
35
|
+
user-select: none;
|
|
29
36
|
}
|
|
30
37
|
.ant-input-affix-wrapper:-moz-placeholder-shown {
|
|
31
38
|
text-overflow: ellipsis;
|
|
@@ -38,7 +45,7 @@
|
|
|
38
45
|
}
|
|
39
46
|
.ant-input-affix-wrapper:hover {
|
|
40
47
|
border-color: #40a9ff;
|
|
41
|
-
border-right-width: 1px
|
|
48
|
+
border-right-width: 1px;
|
|
42
49
|
}
|
|
43
50
|
.ant-input-rtl .ant-input-affix-wrapper:hover {
|
|
44
51
|
border-right-width: 0;
|
|
@@ -47,9 +54,9 @@
|
|
|
47
54
|
.ant-input-affix-wrapper:focus,
|
|
48
55
|
.ant-input-affix-wrapper-focused {
|
|
49
56
|
border-color: #40a9ff;
|
|
50
|
-
border-right-width: 1px !important;
|
|
51
|
-
outline: 0;
|
|
52
57
|
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
|
58
|
+
border-right-width: 1px;
|
|
59
|
+
outline: 0;
|
|
53
60
|
}
|
|
54
61
|
.ant-input-rtl .ant-input-affix-wrapper:focus,
|
|
55
62
|
.ant-input-rtl .ant-input-affix-wrapper-focused {
|
|
@@ -59,29 +66,33 @@
|
|
|
59
66
|
.ant-input-affix-wrapper-disabled {
|
|
60
67
|
color: rgba(0, 0, 0, 0.25);
|
|
61
68
|
background-color: #f5f5f5;
|
|
69
|
+
border-color: #d9d9d9;
|
|
70
|
+
box-shadow: none;
|
|
62
71
|
cursor: not-allowed;
|
|
63
72
|
opacity: 1;
|
|
64
73
|
}
|
|
65
74
|
.ant-input-affix-wrapper-disabled:hover {
|
|
66
75
|
border-color: #d9d9d9;
|
|
67
|
-
border-right-width: 1px
|
|
76
|
+
border-right-width: 1px;
|
|
68
77
|
}
|
|
69
78
|
.ant-input-affix-wrapper[disabled] {
|
|
70
79
|
color: rgba(0, 0, 0, 0.25);
|
|
71
80
|
background-color: #f5f5f5;
|
|
81
|
+
border-color: #d9d9d9;
|
|
82
|
+
box-shadow: none;
|
|
72
83
|
cursor: not-allowed;
|
|
73
84
|
opacity: 1;
|
|
74
85
|
}
|
|
75
86
|
.ant-input-affix-wrapper[disabled]:hover {
|
|
76
87
|
border-color: #d9d9d9;
|
|
77
|
-
border-right-width: 1px
|
|
78
|
-
}
|
|
79
|
-
.ant-input-affix-wrapper
|
|
80
|
-
.ant-input-affix-wrapper
|
|
81
|
-
.ant-input-affix-wrapper
|
|
82
|
-
.ant-input-affix-wrapper
|
|
83
|
-
.ant-input-affix-wrapper
|
|
84
|
-
.ant-input-affix-wrapper
|
|
88
|
+
border-right-width: 1px;
|
|
89
|
+
}
|
|
90
|
+
.ant-input-affix-wrapper-borderless,
|
|
91
|
+
.ant-input-affix-wrapper-borderless:hover,
|
|
92
|
+
.ant-input-affix-wrapper-borderless:focus,
|
|
93
|
+
.ant-input-affix-wrapper-borderless-focused,
|
|
94
|
+
.ant-input-affix-wrapper-borderless-disabled,
|
|
95
|
+
.ant-input-affix-wrapper-borderless[disabled] {
|
|
85
96
|
background-color: transparent;
|
|
86
97
|
border: none;
|
|
87
98
|
box-shadow: none;
|
|
@@ -106,7 +117,7 @@ textarea.ant-input-affix-wrapper {
|
|
|
106
117
|
}
|
|
107
118
|
.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
|
|
108
119
|
border-color: #40a9ff;
|
|
109
|
-
border-right-width: 1px
|
|
120
|
+
border-right-width: 1px;
|
|
110
121
|
z-index: 1;
|
|
111
122
|
}
|
|
112
123
|
.ant-input-rtl .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
|
|
@@ -142,31 +153,46 @@ textarea.ant-input-affix-wrapper {
|
|
|
142
153
|
flex: none;
|
|
143
154
|
align-items: center;
|
|
144
155
|
}
|
|
156
|
+
.ant-input-prefix > *:not(:last-child),
|
|
157
|
+
.ant-input-suffix > *:not(:last-child) {
|
|
158
|
+
margin-right: 8px;
|
|
159
|
+
}
|
|
160
|
+
.ant-input-show-count-suffix {
|
|
161
|
+
color: rgba(0, 0, 0, 0.45);
|
|
162
|
+
}
|
|
163
|
+
.ant-input-show-count-has-suffix {
|
|
164
|
+
margin-right: 2px;
|
|
165
|
+
}
|
|
145
166
|
.ant-input-prefix {
|
|
146
167
|
margin-right: 4px;
|
|
147
168
|
}
|
|
148
169
|
.ant-input-suffix {
|
|
149
170
|
margin-left: 4px;
|
|
150
171
|
}
|
|
151
|
-
.anticon.ant-input-clear-icon
|
|
152
|
-
|
|
172
|
+
.anticon.ant-input-clear-icon,
|
|
173
|
+
.ant-input-clear-icon {
|
|
174
|
+
margin: 0;
|
|
153
175
|
color: rgba(0, 0, 0, 0.25);
|
|
154
176
|
font-size: 12px;
|
|
155
177
|
vertical-align: -1px;
|
|
156
178
|
cursor: pointer;
|
|
157
179
|
transition: color 0.3s;
|
|
158
180
|
}
|
|
159
|
-
.anticon.ant-input-clear-icon:hover
|
|
181
|
+
.anticon.ant-input-clear-icon:hover,
|
|
182
|
+
.ant-input-clear-icon:hover {
|
|
160
183
|
color: rgba(0, 0, 0, 0.45);
|
|
161
184
|
}
|
|
162
|
-
.anticon.ant-input-clear-icon:active
|
|
185
|
+
.anticon.ant-input-clear-icon:active,
|
|
186
|
+
.ant-input-clear-icon:active {
|
|
163
187
|
color: rgba(0, 0, 0, 0.85);
|
|
164
188
|
}
|
|
165
|
-
.anticon.ant-input-clear-icon-hidden
|
|
189
|
+
.anticon.ant-input-clear-icon-hidden,
|
|
190
|
+
.ant-input-clear-icon-hidden {
|
|
166
191
|
visibility: hidden;
|
|
167
192
|
}
|
|
168
|
-
.anticon.ant-input-clear-icon
|
|
169
|
-
|
|
193
|
+
.anticon.ant-input-clear-icon-has-suffix,
|
|
194
|
+
.ant-input-clear-icon-has-suffix {
|
|
195
|
+
margin: 0 4px;
|
|
170
196
|
}
|
|
171
197
|
.ant-input-affix-wrapper-textarea-with-clear-btn {
|
|
172
198
|
padding: 0 !important;
|
|
@@ -178,6 +204,80 @@ textarea.ant-input-affix-wrapper {
|
|
|
178
204
|
right: 8px;
|
|
179
205
|
z-index: 1;
|
|
180
206
|
}
|
|
207
|
+
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,
|
|
208
|
+
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {
|
|
209
|
+
background: #fff;
|
|
210
|
+
border-color: #ff4d4f;
|
|
211
|
+
}
|
|
212
|
+
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus,
|
|
213
|
+
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {
|
|
214
|
+
border-color: #ff7875;
|
|
215
|
+
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
|
216
|
+
border-right-width: 1px;
|
|
217
|
+
outline: 0;
|
|
218
|
+
}
|
|
219
|
+
.ant-input-status-error .ant-input-prefix {
|
|
220
|
+
color: #ff4d4f;
|
|
221
|
+
}
|
|
222
|
+
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,
|
|
223
|
+
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {
|
|
224
|
+
background: #fff;
|
|
225
|
+
border-color: #faad14;
|
|
226
|
+
}
|
|
227
|
+
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus,
|
|
228
|
+
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {
|
|
229
|
+
border-color: #ffc53d;
|
|
230
|
+
box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
|
231
|
+
border-right-width: 1px;
|
|
232
|
+
outline: 0;
|
|
233
|
+
}
|
|
234
|
+
.ant-input-status-warning .ant-input-prefix {
|
|
235
|
+
color: #faad14;
|
|
236
|
+
}
|
|
237
|
+
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,
|
|
238
|
+
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {
|
|
239
|
+
background: #fff;
|
|
240
|
+
border-color: #ff4d4f;
|
|
241
|
+
}
|
|
242
|
+
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus,
|
|
243
|
+
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {
|
|
244
|
+
border-color: #ff7875;
|
|
245
|
+
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
|
246
|
+
border-right-width: 1px;
|
|
247
|
+
outline: 0;
|
|
248
|
+
}
|
|
249
|
+
.ant-input-affix-wrapper-status-error .ant-input-prefix {
|
|
250
|
+
color: #ff4d4f;
|
|
251
|
+
}
|
|
252
|
+
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,
|
|
253
|
+
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {
|
|
254
|
+
background: #fff;
|
|
255
|
+
border-color: #faad14;
|
|
256
|
+
}
|
|
257
|
+
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus,
|
|
258
|
+
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {
|
|
259
|
+
border-color: #ffc53d;
|
|
260
|
+
box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
|
261
|
+
border-right-width: 1px;
|
|
262
|
+
outline: 0;
|
|
263
|
+
}
|
|
264
|
+
.ant-input-affix-wrapper-status-warning .ant-input-prefix {
|
|
265
|
+
color: #faad14;
|
|
266
|
+
}
|
|
267
|
+
.ant-input-textarea-status-error.ant-input-textarea-has-feedback .ant-input,
|
|
268
|
+
.ant-input-textarea-status-warning.ant-input-textarea-has-feedback .ant-input,
|
|
269
|
+
.ant-input-textarea-status-success.ant-input-textarea-has-feedback .ant-input,
|
|
270
|
+
.ant-input-textarea-status-validating.ant-input-textarea-has-feedback .ant-input {
|
|
271
|
+
padding-right: 24px;
|
|
272
|
+
}
|
|
273
|
+
.ant-input-group-wrapper-status-error .ant-input-group-addon {
|
|
274
|
+
color: #ff4d4f;
|
|
275
|
+
border-color: #ff4d4f;
|
|
276
|
+
}
|
|
277
|
+
.ant-input-group-wrapper-status-warning .ant-input-group-addon {
|
|
278
|
+
color: #faad14;
|
|
279
|
+
border-color: #faad14;
|
|
280
|
+
}
|
|
181
281
|
.ant-input {
|
|
182
282
|
box-sizing: border-box;
|
|
183
283
|
margin: 0;
|
|
@@ -198,15 +298,22 @@ textarea.ant-input-affix-wrapper {
|
|
|
198
298
|
border: 1px solid #d9d9d9;
|
|
199
299
|
border-radius: 2px;
|
|
200
300
|
transition: all 0.3s;
|
|
301
|
+
/* stylelint-disable-next-line selector-no-vendor-prefix */
|
|
201
302
|
}
|
|
202
303
|
.ant-input::-moz-placeholder {
|
|
203
304
|
opacity: 1;
|
|
204
305
|
}
|
|
205
306
|
.ant-input:-ms-input-placeholder {
|
|
206
307
|
color: #bfbfbf;
|
|
308
|
+
-ms-user-select: none;
|
|
309
|
+
user-select: none;
|
|
207
310
|
}
|
|
208
311
|
.ant-input::placeholder {
|
|
209
312
|
color: #bfbfbf;
|
|
313
|
+
-webkit-user-select: none;
|
|
314
|
+
-moz-user-select: none;
|
|
315
|
+
-ms-user-select: none;
|
|
316
|
+
user-select: none;
|
|
210
317
|
}
|
|
211
318
|
.ant-input:-moz-placeholder-shown {
|
|
212
319
|
text-overflow: ellipsis;
|
|
@@ -219,7 +326,7 @@ textarea.ant-input-affix-wrapper {
|
|
|
219
326
|
}
|
|
220
327
|
.ant-input:hover {
|
|
221
328
|
border-color: #40a9ff;
|
|
222
|
-
border-right-width: 1px
|
|
329
|
+
border-right-width: 1px;
|
|
223
330
|
}
|
|
224
331
|
.ant-input-rtl .ant-input:hover {
|
|
225
332
|
border-right-width: 0;
|
|
@@ -228,9 +335,9 @@ textarea.ant-input-affix-wrapper {
|
|
|
228
335
|
.ant-input:focus,
|
|
229
336
|
.ant-input-focused {
|
|
230
337
|
border-color: #40a9ff;
|
|
231
|
-
border-right-width: 1px !important;
|
|
232
|
-
outline: 0;
|
|
233
338
|
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
|
339
|
+
border-right-width: 1px;
|
|
340
|
+
outline: 0;
|
|
234
341
|
}
|
|
235
342
|
.ant-input-rtl .ant-input:focus,
|
|
236
343
|
.ant-input-rtl .ant-input-focused {
|
|
@@ -240,29 +347,33 @@ textarea.ant-input-affix-wrapper {
|
|
|
240
347
|
.ant-input-disabled {
|
|
241
348
|
color: rgba(0, 0, 0, 0.25);
|
|
242
349
|
background-color: #f5f5f5;
|
|
350
|
+
border-color: #d9d9d9;
|
|
351
|
+
box-shadow: none;
|
|
243
352
|
cursor: not-allowed;
|
|
244
353
|
opacity: 1;
|
|
245
354
|
}
|
|
246
355
|
.ant-input-disabled:hover {
|
|
247
356
|
border-color: #d9d9d9;
|
|
248
|
-
border-right-width: 1px
|
|
357
|
+
border-right-width: 1px;
|
|
249
358
|
}
|
|
250
359
|
.ant-input[disabled] {
|
|
251
360
|
color: rgba(0, 0, 0, 0.25);
|
|
252
361
|
background-color: #f5f5f5;
|
|
362
|
+
border-color: #d9d9d9;
|
|
363
|
+
box-shadow: none;
|
|
253
364
|
cursor: not-allowed;
|
|
254
365
|
opacity: 1;
|
|
255
366
|
}
|
|
256
367
|
.ant-input[disabled]:hover {
|
|
257
368
|
border-color: #d9d9d9;
|
|
258
|
-
border-right-width: 1px
|
|
259
|
-
}
|
|
260
|
-
.ant-input
|
|
261
|
-
.ant-input
|
|
262
|
-
.ant-input
|
|
263
|
-
.ant-input
|
|
264
|
-
.ant-input
|
|
265
|
-
.ant-input
|
|
369
|
+
border-right-width: 1px;
|
|
370
|
+
}
|
|
371
|
+
.ant-input-borderless,
|
|
372
|
+
.ant-input-borderless:hover,
|
|
373
|
+
.ant-input-borderless:focus,
|
|
374
|
+
.ant-input-borderless-focused,
|
|
375
|
+
.ant-input-borderless-disabled,
|
|
376
|
+
.ant-input-borderless[disabled] {
|
|
266
377
|
background-color: transparent;
|
|
267
378
|
border: none;
|
|
268
379
|
box-shadow: none;
|
|
@@ -430,10 +541,6 @@ textarea.ant-input {
|
|
|
430
541
|
.ant-input-group-sm .ant-select-single .ant-select-selector {
|
|
431
542
|
height: 24px;
|
|
432
543
|
}
|
|
433
|
-
.ant-input-group .ant-input-affix-wrapper:not(:first-child) {
|
|
434
|
-
border-top-left-radius: 0;
|
|
435
|
-
border-bottom-left-radius: 0;
|
|
436
|
-
}
|
|
437
544
|
.ant-input-group .ant-input-affix-wrapper:not(:last-child) {
|
|
438
545
|
border-top-right-radius: 0;
|
|
439
546
|
border-bottom-right-radius: 0;
|
|
@@ -442,6 +549,11 @@ textarea.ant-input {
|
|
|
442
549
|
border-top-left-radius: 2px;
|
|
443
550
|
border-bottom-left-radius: 2px;
|
|
444
551
|
}
|
|
552
|
+
.ant-input-group .ant-input-affix-wrapper:not(:first-child),
|
|
553
|
+
.ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:first-child) {
|
|
554
|
+
border-top-left-radius: 0;
|
|
555
|
+
border-bottom-left-radius: 0;
|
|
556
|
+
}
|
|
445
557
|
.ant-input-group.ant-input-group-compact {
|
|
446
558
|
display: block;
|
|
447
559
|
}
|
|
@@ -597,12 +709,12 @@ textarea.ant-input {
|
|
|
597
709
|
text-align: start;
|
|
598
710
|
vertical-align: top;
|
|
599
711
|
}
|
|
600
|
-
.ant-input-password-icon {
|
|
712
|
+
.ant-input-password-icon.anticon {
|
|
601
713
|
color: rgba(0, 0, 0, 0.45);
|
|
602
714
|
cursor: pointer;
|
|
603
715
|
transition: all 0.3s;
|
|
604
716
|
}
|
|
605
|
-
.ant-input-password-icon:hover {
|
|
717
|
+
.ant-input-password-icon.anticon:hover {
|
|
606
718
|
color: rgba(0, 0, 0, 0.85);
|
|
607
719
|
}
|
|
608
720
|
.ant-input[type='color'] {
|
|
@@ -616,6 +728,9 @@ textarea.ant-input {
|
|
|
616
728
|
padding-top: 3px;
|
|
617
729
|
padding-bottom: 3px;
|
|
618
730
|
}
|
|
731
|
+
.ant-input-textarea-show-count > .ant-input {
|
|
732
|
+
height: 100%;
|
|
733
|
+
}
|
|
619
734
|
.ant-input-textarea-show-count::after {
|
|
620
735
|
float: right;
|
|
621
736
|
color: rgba(0, 0, 0, 0.45);
|
|
@@ -623,6 +738,19 @@ textarea.ant-input {
|
|
|
623
738
|
content: attr(data-count);
|
|
624
739
|
pointer-events: none;
|
|
625
740
|
}
|
|
741
|
+
.ant-input-textarea-show-count.ant-input-textarea-in-form-item::after {
|
|
742
|
+
margin-bottom: -22px;
|
|
743
|
+
}
|
|
744
|
+
.ant-input-textarea-suffix {
|
|
745
|
+
position: absolute;
|
|
746
|
+
top: 0;
|
|
747
|
+
right: 11px;
|
|
748
|
+
bottom: 0;
|
|
749
|
+
z-index: 1;
|
|
750
|
+
display: inline-flex;
|
|
751
|
+
align-items: center;
|
|
752
|
+
margin: auto;
|
|
753
|
+
}
|
|
626
754
|
.ant-input-search .ant-input:hover,
|
|
627
755
|
.ant-input-search .ant-input:focus {
|
|
628
756
|
border-color: #40a9ff;
|
|
@@ -691,9 +819,9 @@ textarea.ant-input {
|
|
|
691
819
|
.ant-input-textarea-rtl.ant-input-textarea-show-count::after {
|
|
692
820
|
text-align: left;
|
|
693
821
|
}
|
|
694
|
-
.ant-input-affix-wrapper-rtl .ant-input-clear-icon
|
|
695
|
-
margin-right:
|
|
696
|
-
margin-left:
|
|
822
|
+
.ant-input-affix-wrapper-rtl .ant-input-clear-icon-has-suffix {
|
|
823
|
+
margin-right: 0;
|
|
824
|
+
margin-left: 4px;
|
|
697
825
|
}
|
|
698
826
|
.ant-input-affix-wrapper-rtl .ant-input-clear-icon {
|
|
699
827
|
right: auto;
|
package/lib/img-crop/EasyCrop.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);
|