assui 2.0.145 → 2.1.0

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.
Files changed (116) hide show
  1. package/es/button-drawer/index.d.ts +1 -1
  2. package/es/button-modal/index.d.ts +1 -1
  3. package/es/copy-to-clipboard/style/index.css +58 -43
  4. package/es/highlight-textarea/extractSpansOfClasses.js +9 -7
  5. package/es/highlight-textarea/getRanges.js +9 -7
  6. package/es/highlight-textarea/index.js +3 -3
  7. package/es/highlight-textarea/style/index.css +169 -41
  8. package/es/highlight-textarea/types.js +1 -0
  9. package/es/img-crop/index.js +7 -7
  10. package/es/img-crop/style/index.css +1784 -0
  11. package/es/img-crop/style/index.less +1 -1
  12. package/es/keep-tab/style/index.css +40 -23
  13. package/es/label-auto-complete/style/index.css +1784 -0
  14. package/es/label-auto-complete/style/index.less +1 -1
  15. package/es/label-customize-range-picker/defaultRadioList.d.ts +24 -0
  16. package/es/label-customize-range-picker/defaultRadioList.js +79 -0
  17. package/es/label-customize-range-picker/index.d.ts +6 -7
  18. package/es/label-customize-range-picker/index.js +9 -12
  19. package/es/label-customize-range-picker/style/index.css +1784 -0
  20. package/es/label-customize-range-picker/style/index.less +1 -1
  21. package/es/label-date-picker/index.js +1 -1
  22. package/es/label-date-picker/style/index.css +1784 -0
  23. package/es/label-date-picker/style/index.less +1 -1
  24. package/es/label-number-input/index.js +1 -1
  25. package/es/label-range-picker/style/index.css +1784 -0
  26. package/es/label-range-picker/style/index.less +1 -1
  27. package/es/label-select/style/index.css +1784 -0
  28. package/es/label-select/style/index.less +1 -1
  29. package/es/label-tree-select/style/index.css +1784 -0
  30. package/es/label-tree-select/style/index.less +1 -1
  31. package/es/number-input/index.js +4 -4
  32. package/es/number-input/utils.js +1 -1
  33. package/es/rich-text-editor/style/index.css +6 -5
  34. package/es/single-img-upload/index.js +1 -1
  35. package/es/single-img-upload/style/index.css +1784 -0
  36. package/es/single-img-upload/style/index.less +1 -1
  37. package/es/step-number-input/index.js +8 -8
  38. package/es/step-number-input/style/index.css +1784 -0
  39. package/es/step-number-input/style/index.less +1 -1
  40. package/es/text-input/index.js +8 -6
  41. package/es/text-input/style/index.css +169 -41
  42. package/lib/beautiful-dnd/index.js +13 -7
  43. package/lib/button-drawer/index.d.ts +1 -1
  44. package/lib/button-drawer/index.js +18 -12
  45. package/lib/button-modal/index.d.ts +1 -1
  46. package/lib/button-modal/index.js +14 -8
  47. package/lib/condition-input/index.js +17 -11
  48. package/lib/condition-input/parse2RegexOption.js +3 -3
  49. package/lib/copy-to-clipboard/index.js +15 -9
  50. package/lib/copy-to-clipboard/style/index.css +58 -43
  51. package/lib/highlight-textarea/HighlighedContents.js +2 -2
  52. package/lib/highlight-textarea/extractSpansOfClasses.js +9 -7
  53. package/lib/highlight-textarea/getRanges.js +10 -8
  54. package/lib/highlight-textarea/index.js +19 -13
  55. package/lib/highlight-textarea/style/index.css +169 -41
  56. package/lib/img-crop/EasyCrop.js +13 -7
  57. package/lib/img-crop/index.js +21 -15
  58. package/lib/img-crop/style/index.css +1784 -0
  59. package/lib/img-crop/style/index.less +1 -1
  60. package/lib/index.js +38 -31
  61. package/lib/keep-tab/index.js +17 -11
  62. package/lib/keep-tab/style/index.css +40 -23
  63. package/lib/label-auto-complete/index.js +5 -5
  64. package/lib/label-auto-complete/style/index.css +1784 -0
  65. package/lib/label-auto-complete/style/index.less +1 -1
  66. package/lib/label-condition-input/index.js +5 -5
  67. package/lib/label-customize-range-picker/defaultRadioList.d.ts +24 -0
  68. package/lib/label-customize-range-picker/defaultRadioList.js +93 -0
  69. package/lib/label-customize-range-picker/index.d.ts +6 -7
  70. package/lib/label-customize-range-picker/index.js +26 -24
  71. package/lib/label-customize-range-picker/style/index.css +1784 -0
  72. package/lib/label-customize-range-picker/style/index.less +1 -1
  73. package/lib/label-date-picker/index.js +5 -5
  74. package/lib/label-date-picker/style/index.css +1784 -0
  75. package/lib/label-date-picker/style/index.less +1 -1
  76. package/lib/label-input/index.js +5 -5
  77. package/lib/label-number-input/index.js +6 -6
  78. package/lib/label-range-picker/index.js +3 -3
  79. package/lib/label-range-picker/style/index.css +1784 -0
  80. package/lib/label-range-picker/style/index.less +1 -1
  81. package/lib/label-select/index.js +5 -5
  82. package/lib/label-select/style/index.css +1784 -0
  83. package/lib/label-select/style/index.less +1 -1
  84. package/lib/label-text-area/index.js +4 -4
  85. package/lib/label-tree-select/index.js +4 -4
  86. package/lib/label-tree-select/style/index.css +1784 -0
  87. package/lib/label-tree-select/style/index.less +1 -1
  88. package/lib/number-input/index.js +21 -15
  89. package/lib/number-input/utils.js +8 -4
  90. package/lib/rc-echart/core.js +21 -15
  91. package/lib/rc-echart/index.js +13 -7
  92. package/lib/rc-qrcode/index.js +14 -8
  93. package/lib/rc-qrcode/useQrcode.js +4 -3
  94. package/lib/rc-transition-group/index.js +13 -7
  95. package/lib/rich-text-editor/index.js +1 -1
  96. package/lib/rich-text-editor/style/index.css +6 -5
  97. package/lib/single-img-upload/index.js +18 -12
  98. package/lib/single-img-upload/style/index.css +1784 -0
  99. package/lib/single-img-upload/style/index.less +1 -1
  100. package/lib/sortable-hoc/index.js +13 -7
  101. package/lib/split-pane/index.js +13 -7
  102. package/lib/step-number-input/index.js +32 -26
  103. package/lib/step-number-input/style/index.css +1784 -0
  104. package/lib/step-number-input/style/index.less +1 -1
  105. package/lib/text-area/index.js +14 -8
  106. package/lib/text-input/index.js +8 -6
  107. package/lib/text-input/style/index.css +169 -41
  108. package/package.json +4 -3
  109. package/es/label-customize-range-picker/getDateScope.d.ts +0 -45
  110. package/es/label-customize-range-picker/getDateScope.js +0 -85
  111. package/es/label-customize-range-picker/getRadioList.d.ts +0 -10
  112. package/es/label-customize-range-picker/getRadioList.js +0 -49
  113. package/lib/label-customize-range-picker/getDateScope.d.ts +0 -45
  114. package/lib/label-customize-range-picker/getDateScope.js +0 -99
  115. package/lib/label-customize-range-picker/getRadioList.d.ts +0 -10
  116. package/lib/label-customize-range-picker/getRadioList.js +0 -55
@@ -1,5 +1,5 @@
1
1
  /* stylelint-disable indentation */
2
- @import '~antd/lib/style/themes/index';
2
+ @import '~antd/lib/style/index.less';
3
3
  @import '../../style/themes/default.less';
4
4
 
5
5
  @color_9aa5b5: #9aa5b5;
@@ -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: "" + value,
91
+ preValue: "".concat(value),
92
92
  enableMinus: enableMinus
93
93
  });
94
94
  } else {
95
95
  newNumber = filterFloat({
96
96
  value: newValue,
97
- preValue: "" + value,
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("" + value, 10);
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("" + value) : value;
129
+ var finallyValue = formatter ? formatter("".concat(value)) : value;
130
130
  return /*#__PURE__*/React.createElement(Input, __assign({
131
131
  type: "text",
132
132
  ref: ref,
@@ -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{" + precision + "}).*$");
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-unknown */
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: optimizeLegibility;
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("" + percent, 10));
121
+ setUploadPercent(parseInt("".concat(percent), 10));
122
122
  };
123
123
 
124
124
  var handleError = function handleError(error, ret, file) {