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/es/number-input/index.js
CHANGED
|
@@ -88,13 +88,13 @@ var NumberInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
88
88
|
if (numberType === numberTypeEnum.INT) {
|
|
89
89
|
newNumber = filterInt({
|
|
90
90
|
value: newValue,
|
|
91
|
-
preValue: ""
|
|
91
|
+
preValue: "".concat(value),
|
|
92
92
|
enableMinus: enableMinus
|
|
93
93
|
});
|
|
94
94
|
} else {
|
|
95
95
|
newNumber = filterFloat({
|
|
96
96
|
value: newValue,
|
|
97
|
-
preValue: ""
|
|
97
|
+
preValue: "".concat(value),
|
|
98
98
|
precision: precision !== null && precision !== void 0 ? precision : 2,
|
|
99
99
|
enableMinus: enableMinus
|
|
100
100
|
});
|
|
@@ -118,7 +118,7 @@ var NumberInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
118
118
|
if (numberType === numberTypeEnum.FLOAT) {
|
|
119
119
|
resultValue = +value;
|
|
120
120
|
} else {
|
|
121
|
-
resultValue = parseInt(""
|
|
121
|
+
resultValue = parseInt("".concat(value), 10);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
@@ -126,7 +126,7 @@ var NumberInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
126
126
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(resultValue);
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
-
var finallyValue = formatter ? formatter(""
|
|
129
|
+
var finallyValue = formatter ? formatter("".concat(value)) : value;
|
|
130
130
|
return /*#__PURE__*/React.createElement(Input, __assign({
|
|
131
131
|
type: "text",
|
|
132
132
|
ref: ref,
|
package/es/number-input/utils.js
CHANGED
|
@@ -39,6 +39,6 @@ export var filterFloat = function filterFloat(_a) {
|
|
|
39
39
|
return preValue;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
var twoDecimalNumReg = new RegExp("^(\\-)*(\\d+)\\.(\\d{"
|
|
42
|
+
var twoDecimalNumReg = new RegExp("^(\\-)*(\\d+)\\.(\\d{".concat(precision, "}).*$"));
|
|
43
43
|
return nextValue.replace(twoDecimalNumReg, '$1$2.$3');
|
|
44
44
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
[class*= ant-] input::-ms-reveal {
|
|
11
11
|
display: none;
|
|
12
12
|
}
|
|
13
|
-
/* stylelint-disable at-rule-no-
|
|
13
|
+
/* stylelint-disable property-no-vendor-prefix, at-rule-no-vendor-prefix */
|
|
14
14
|
html,
|
|
15
15
|
body {
|
|
16
16
|
width: 100%;
|
|
@@ -180,9 +180,6 @@ img {
|
|
|
180
180
|
vertical-align: middle;
|
|
181
181
|
border-style: none;
|
|
182
182
|
}
|
|
183
|
-
svg:not(:root) {
|
|
184
|
-
overflow: hidden;
|
|
185
|
-
}
|
|
186
183
|
a,
|
|
187
184
|
area,
|
|
188
185
|
button,
|
|
@@ -328,7 +325,7 @@ mark {
|
|
|
328
325
|
text-align: center;
|
|
329
326
|
text-transform: none;
|
|
330
327
|
vertical-align: -0.125em;
|
|
331
|
-
text-rendering:
|
|
328
|
+
text-rendering: optimizelegibility;
|
|
332
329
|
-webkit-font-smoothing: antialiased;
|
|
333
330
|
-moz-osx-font-smoothing: grayscale;
|
|
334
331
|
}
|
|
@@ -344,6 +341,10 @@ mark {
|
|
|
344
341
|
.anticon .anticon-icon {
|
|
345
342
|
display: block;
|
|
346
343
|
}
|
|
344
|
+
.anticon > .anticon {
|
|
345
|
+
line-height: 0;
|
|
346
|
+
vertical-align: 0;
|
|
347
|
+
}
|
|
347
348
|
.anticon[tabindex] {
|
|
348
349
|
cursor: pointer;
|
|
349
350
|
}
|
|
@@ -118,7 +118,7 @@ var SingleImgUpload = function SingleImgUpload(props) {
|
|
|
118
118
|
|
|
119
119
|
var handleProgress = function handleProgress(e) {
|
|
120
120
|
var percent = e.percent;
|
|
121
|
-
setUploadPercent(parseInt(""
|
|
121
|
+
setUploadPercent(parseInt("".concat(percent), 10));
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
var handleError = function handleError(error, ret, file) {
|