assui 2.0.147 → 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 (102) 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/style/index.css +1784 -0
  16. package/es/label-customize-range-picker/style/index.less +1 -1
  17. package/es/label-date-picker/index.js +1 -1
  18. package/es/label-date-picker/style/index.css +1784 -0
  19. package/es/label-date-picker/style/index.less +1 -1
  20. package/es/label-number-input/index.js +1 -1
  21. package/es/label-range-picker/style/index.css +1784 -0
  22. package/es/label-range-picker/style/index.less +1 -1
  23. package/es/label-select/style/index.css +1784 -0
  24. package/es/label-select/style/index.less +1 -1
  25. package/es/label-tree-select/style/index.css +1784 -0
  26. package/es/label-tree-select/style/index.less +1 -1
  27. package/es/number-input/index.js +4 -4
  28. package/es/number-input/utils.js +1 -1
  29. package/es/rich-text-editor/style/index.css +6 -5
  30. package/es/single-img-upload/index.js +1 -1
  31. package/es/single-img-upload/style/index.css +1784 -0
  32. package/es/single-img-upload/style/index.less +1 -1
  33. package/es/step-number-input/index.js +8 -8
  34. package/es/step-number-input/style/index.css +1784 -0
  35. package/es/step-number-input/style/index.less +1 -1
  36. package/es/text-input/index.js +8 -6
  37. package/es/text-input/style/index.css +169 -41
  38. package/lib/beautiful-dnd/index.js +13 -7
  39. package/lib/button-drawer/index.d.ts +1 -1
  40. package/lib/button-drawer/index.js +18 -12
  41. package/lib/button-modal/index.d.ts +1 -1
  42. package/lib/button-modal/index.js +14 -8
  43. package/lib/condition-input/index.js +17 -11
  44. package/lib/condition-input/parse2RegexOption.js +3 -3
  45. package/lib/copy-to-clipboard/index.js +15 -9
  46. package/lib/copy-to-clipboard/style/index.css +58 -43
  47. package/lib/highlight-textarea/HighlighedContents.js +2 -2
  48. package/lib/highlight-textarea/extractSpansOfClasses.js +9 -7
  49. package/lib/highlight-textarea/getRanges.js +10 -8
  50. package/lib/highlight-textarea/index.js +19 -13
  51. package/lib/highlight-textarea/style/index.css +169 -41
  52. package/lib/img-crop/EasyCrop.js +13 -7
  53. package/lib/img-crop/index.js +21 -15
  54. package/lib/img-crop/style/index.css +1784 -0
  55. package/lib/img-crop/style/index.less +1 -1
  56. package/lib/index.js +38 -31
  57. package/lib/keep-tab/index.js +17 -11
  58. package/lib/keep-tab/style/index.css +40 -23
  59. package/lib/label-auto-complete/index.js +5 -5
  60. package/lib/label-auto-complete/style/index.css +1784 -0
  61. package/lib/label-auto-complete/style/index.less +1 -1
  62. package/lib/label-condition-input/index.js +5 -5
  63. package/lib/label-customize-range-picker/defaultRadioList.js +1 -1
  64. package/lib/label-customize-range-picker/index.js +17 -11
  65. package/lib/label-customize-range-picker/style/index.css +1784 -0
  66. package/lib/label-customize-range-picker/style/index.less +1 -1
  67. package/lib/label-date-picker/index.js +5 -5
  68. package/lib/label-date-picker/style/index.css +1784 -0
  69. package/lib/label-date-picker/style/index.less +1 -1
  70. package/lib/label-input/index.js +5 -5
  71. package/lib/label-number-input/index.js +6 -6
  72. package/lib/label-range-picker/index.js +3 -3
  73. package/lib/label-range-picker/style/index.css +1784 -0
  74. package/lib/label-range-picker/style/index.less +1 -1
  75. package/lib/label-select/index.js +5 -5
  76. package/lib/label-select/style/index.css +1784 -0
  77. package/lib/label-select/style/index.less +1 -1
  78. package/lib/label-text-area/index.js +4 -4
  79. package/lib/label-tree-select/index.js +4 -4
  80. package/lib/label-tree-select/style/index.css +1784 -0
  81. package/lib/label-tree-select/style/index.less +1 -1
  82. package/lib/number-input/index.js +21 -15
  83. package/lib/number-input/utils.js +8 -4
  84. package/lib/rc-echart/core.js +21 -15
  85. package/lib/rc-echart/index.js +13 -7
  86. package/lib/rc-qrcode/index.js +14 -8
  87. package/lib/rc-qrcode/useQrcode.js +4 -3
  88. package/lib/rc-transition-group/index.js +13 -7
  89. package/lib/rich-text-editor/index.js +1 -1
  90. package/lib/rich-text-editor/style/index.css +6 -5
  91. package/lib/single-img-upload/index.js +18 -12
  92. package/lib/single-img-upload/style/index.css +1784 -0
  93. package/lib/single-img-upload/style/index.less +1 -1
  94. package/lib/sortable-hoc/index.js +13 -7
  95. package/lib/split-pane/index.js +13 -7
  96. package/lib/step-number-input/index.js +32 -26
  97. package/lib/step-number-input/style/index.css +1784 -0
  98. package/lib/step-number-input/style/index.less +1 -1
  99. package/lib/text-area/index.js +14 -8
  100. package/lib/text-input/index.js +8 -6
  101. package/lib/text-input/style/index.css +169 -41
  102. package/package.json +4 -3
@@ -1,4 +1,4 @@
1
- @import '~antd/lib/style/themes/index';
1
+ @import '~antd/lib/style/index.less';
2
2
 
3
3
  @progress-prefix-cls: ~'@{ant-prefix}';
4
4
 
@@ -104,9 +104,9 @@ var StepNumberInput = function StepNumberInput(props) {
104
104
  var newNumber = '';
105
105
 
106
106
  if (symbol === PLUS) {
107
- newNumber = maxCondition ? "" + max : plusNumber;
107
+ newNumber = maxCondition ? "".concat(max) : plusNumber;
108
108
  } else {
109
- newNumber = minCondition ? "" + min : minusNumber;
109
+ newNumber = minCondition ? "".concat(min) : minusNumber;
110
110
  }
111
111
 
112
112
  if (value === undefined) {
@@ -131,26 +131,26 @@ var StepNumberInput = function StepNumberInput(props) {
131
131
 
132
132
  if (!isUndefined(max) && Number(resultValue) > max) {
133
133
  if (isUndefined(value)) {
134
- setInputValue("" + max);
134
+ setInputValue("".concat(max));
135
135
  }
136
136
 
137
137
  if (onChange) {
138
- onChange("" + max);
138
+ onChange("".concat(max));
139
139
  }
140
140
  }
141
141
 
142
142
  if (!isUndefined(min) && Number(resultValue) < min) {
143
143
  if (isUndefined(value)) {
144
- setInputValue("" + min);
144
+ setInputValue("".concat(min));
145
145
  }
146
146
 
147
147
  if (onChange) {
148
- onChange("" + min);
148
+ onChange("".concat(min));
149
149
  }
150
150
  }
151
151
 
152
152
  if (onBlur) {
153
- onBlur("" + resultValue || '');
153
+ onBlur("".concat(resultValue) || '');
154
154
  }
155
155
  };
156
156
 
@@ -173,7 +173,7 @@ var StepNumberInput = function StepNumberInput(props) {
173
173
  'disabled-btn': isEmpty || maxCondition
174
174
  })
175
175
  }, "+"),
176
- value: "" + resultValue,
176
+ value: "".concat(resultValue),
177
177
  onChange: onNumberChange,
178
178
  onBlur: onNumberBlur,
179
179
  numberType: numberType,