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,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
 
@@ -2,12 +2,18 @@
2
2
 
3
3
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
4
4
  if (k2 === undefined) k2 = k;
5
- Object.defineProperty(o, k2, {
6
- enumerable: true,
7
- get: function get() {
8
- return m[k];
9
- }
10
- });
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return m[k];
12
+ }
13
+ };
14
+ }
15
+
16
+ Object.defineProperty(o, k2, desc);
11
17
  } : function (o, m, k, k2) {
12
18
  if (k2 === undefined) k2 = k;
13
19
  o[k2] = m[k];
@@ -26,7 +32,7 @@ var __importStar = this && this.__importStar || function (mod) {
26
32
  if (mod && mod.__esModule) return mod;
27
33
  var result = {};
28
34
  if (mod != null) for (var k in mod) {
29
- if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
35
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
36
  }
31
37
 
32
38
  __setModuleDefault(result, mod);
@@ -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.defineProperty(o, k2, {
22
- enumerable: true,
23
- get: function get() {
24
- return m[k];
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);
@@ -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.defineProperty(o, k2, {
22
- enumerable: true,
23
- get: function get() {
24
- return m[k];
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);
@@ -129,16 +135,16 @@ var StepNumberInput = function StepNumberInput(props) {
129
135
  inputValue = _a[0],
130
136
  setInputValue = _a[1];
131
137
 
132
- var resultValue = isUndefined_1["default"](value) ? inputValue : value;
133
- var isEmpty = isUndefined_1["default"](resultValue) || resultValue === '';
138
+ var resultValue = (0, isUndefined_1["default"])(value) ? inputValue : value;
139
+ var isEmpty = (0, isUndefined_1["default"])(resultValue) || resultValue === '';
134
140
  var plusNumber = new bignumber_js_1["default"](resultValue).plus(step).toString();
135
141
  var minusNumber = new bignumber_js_1["default"](resultValue).minus(step).toString();
136
- var maxCondition = isUndefined_1["default"](max) ? false : max === Number(resultValue) || Number(max) < Number(plusNumber);
137
- var minCondition = isUndefined_1["default"](min) ? false : min === Number(resultValue) || Number(min) > Number(minusNumber);
142
+ var maxCondition = (0, isUndefined_1["default"])(max) ? false : max === Number(resultValue) || Number(max) < Number(plusNumber);
143
+ var minCondition = (0, isUndefined_1["default"])(min) ? false : min === Number(resultValue) || Number(min) > Number(minusNumber);
138
144
 
139
145
  var onNumberChange = function onNumberChange(lastValue) {
140
146
  if (resultValue !== lastValue) {
141
- if (isUndefined_1["default"](value)) {
147
+ if ((0, isUndefined_1["default"])(value)) {
142
148
  setInputValue(lastValue);
143
149
  }
144
150
 
@@ -156,9 +162,9 @@ var StepNumberInput = function StepNumberInput(props) {
156
162
  var newNumber = '';
157
163
 
158
164
  if (symbol === countType_1.PLUS) {
159
- newNumber = maxCondition ? "" + max : plusNumber;
165
+ newNumber = maxCondition ? "".concat(max) : plusNumber;
160
166
  } else {
161
- newNumber = minCondition ? "" + min : minusNumber;
167
+ newNumber = minCondition ? "".concat(min) : minusNumber;
162
168
  }
163
169
 
164
170
  if (value === undefined) {
@@ -181,28 +187,28 @@ var StepNumberInput = function StepNumberInput(props) {
181
187
  }
182
188
  }
183
189
 
184
- if (!isUndefined_1["default"](max) && Number(resultValue) > max) {
185
- if (isUndefined_1["default"](value)) {
186
- setInputValue("" + max);
190
+ if (!(0, isUndefined_1["default"])(max) && Number(resultValue) > max) {
191
+ if ((0, isUndefined_1["default"])(value)) {
192
+ setInputValue("".concat(max));
187
193
  }
188
194
 
189
195
  if (onChange) {
190
- onChange("" + max);
196
+ onChange("".concat(max));
191
197
  }
192
198
  }
193
199
 
194
- if (!isUndefined_1["default"](min) && Number(resultValue) < min) {
195
- if (isUndefined_1["default"](value)) {
196
- setInputValue("" + min);
200
+ if (!(0, isUndefined_1["default"])(min) && Number(resultValue) < min) {
201
+ if ((0, isUndefined_1["default"])(value)) {
202
+ setInputValue("".concat(min));
197
203
  }
198
204
 
199
205
  if (onChange) {
200
- onChange("" + min);
206
+ onChange("".concat(min));
201
207
  }
202
208
  }
203
209
 
204
210
  if (onBlur) {
205
- onBlur("" + resultValue || '');
211
+ onBlur("".concat(resultValue) || '');
206
212
  }
207
213
  };
208
214
 
@@ -213,7 +219,7 @@ var StepNumberInput = function StepNumberInput(props) {
213
219
  onClick: function onClick() {
214
220
  onClickCount(countType_1.MINUS);
215
221
  },
216
- className: classnames_1["default"]('count-minus-btn', {
222
+ className: (0, classnames_1["default"])('count-minus-btn', {
217
223
  'disabled-btn': isEmpty || minCondition
218
224
  })
219
225
  }, "-"),
@@ -221,11 +227,11 @@ var StepNumberInput = function StepNumberInput(props) {
221
227
  onClick: function onClick() {
222
228
  onClickCount(countType_1.PLUS);
223
229
  },
224
- className: classnames_1["default"]('count-add-btn', {
230
+ className: (0, classnames_1["default"])('count-add-btn', {
225
231
  'disabled-btn': isEmpty || maxCondition
226
232
  })
227
233
  }, "+"),
228
- value: "" + resultValue,
234
+ value: "".concat(resultValue),
229
235
  onChange: onNumberChange,
230
236
  onBlur: onNumberBlur,
231
237
  numberType: numberType,