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.
Files changed (120) 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/customize-range-picker/defaultRadioList.d.ts +24 -0
  5. package/es/customize-range-picker/defaultRadioList.js +79 -0
  6. package/es/customize-range-picker/index.d.ts +15 -0
  7. package/es/customize-range-picker/index.js +172 -0
  8. package/es/customize-range-picker/style/index.css +1821 -0
  9. package/es/customize-range-picker/style/index.d.ts +1 -0
  10. package/es/customize-range-picker/style/index.js +1 -0
  11. package/es/customize-range-picker/style/index.less +46 -0
  12. package/es/highlight-textarea/extractSpansOfClasses.js +9 -7
  13. package/es/highlight-textarea/getRanges.js +9 -7
  14. package/es/highlight-textarea/index.js +3 -3
  15. package/es/highlight-textarea/style/index.css +169 -41
  16. package/es/highlight-textarea/types.js +1 -0
  17. package/es/img-crop/index.js +7 -7
  18. package/es/img-crop/style/index.css +1784 -0
  19. package/es/img-crop/style/index.less +1 -1
  20. package/es/keep-tab/style/index.css +40 -23
  21. package/es/label-auto-complete/style/index.css +1784 -0
  22. package/es/label-auto-complete/style/index.less +1 -1
  23. package/es/label-customize-range-picker/defaultRadioList.js +2 -2
  24. package/es/label-customize-range-picker/index.js +5 -3
  25. package/es/label-customize-range-picker/style/index.css +1792 -8
  26. package/es/label-customize-range-picker/style/index.less +6 -4
  27. package/es/label-date-picker/index.js +1 -1
  28. package/es/label-date-picker/style/index.css +1784 -0
  29. package/es/label-date-picker/style/index.less +1 -1
  30. package/es/label-number-input/index.js +1 -1
  31. package/es/label-range-picker/style/index.css +1784 -0
  32. package/es/label-range-picker/style/index.less +1 -1
  33. package/es/label-select/style/index.css +1784 -0
  34. package/es/label-select/style/index.less +1 -1
  35. package/es/label-tree-select/style/index.css +1784 -0
  36. package/es/label-tree-select/style/index.less +1 -1
  37. package/es/number-input/index.js +4 -4
  38. package/es/number-input/utils.js +1 -1
  39. package/es/rich-text-editor/style/index.css +6 -5
  40. package/es/single-img-upload/index.js +1 -1
  41. package/es/single-img-upload/style/index.css +1784 -0
  42. package/es/single-img-upload/style/index.less +1 -1
  43. package/es/step-number-input/index.js +8 -8
  44. package/es/step-number-input/style/index.css +1784 -0
  45. package/es/step-number-input/style/index.less +1 -1
  46. package/es/text-input/index.js +8 -6
  47. package/es/text-input/style/index.css +169 -41
  48. package/lib/beautiful-dnd/index.js +13 -7
  49. package/lib/button-drawer/index.d.ts +1 -1
  50. package/lib/button-drawer/index.js +18 -12
  51. package/lib/button-modal/index.d.ts +1 -1
  52. package/lib/button-modal/index.js +14 -8
  53. package/lib/condition-input/index.js +17 -11
  54. package/lib/condition-input/parse2RegexOption.js +3 -3
  55. package/lib/copy-to-clipboard/index.js +15 -9
  56. package/lib/copy-to-clipboard/style/index.css +58 -43
  57. package/lib/customize-range-picker/defaultRadioList.d.ts +24 -0
  58. package/lib/customize-range-picker/defaultRadioList.js +93 -0
  59. package/lib/customize-range-picker/index.d.ts +15 -0
  60. package/lib/customize-range-picker/index.js +228 -0
  61. package/lib/customize-range-picker/style/index.css +1821 -0
  62. package/lib/customize-range-picker/style/index.d.ts +1 -0
  63. package/lib/customize-range-picker/style/index.js +7 -0
  64. package/lib/customize-range-picker/style/index.less +46 -0
  65. package/lib/highlight-textarea/HighlighedContents.js +2 -2
  66. package/lib/highlight-textarea/extractSpansOfClasses.js +9 -7
  67. package/lib/highlight-textarea/getRanges.js +10 -8
  68. package/lib/highlight-textarea/index.js +19 -13
  69. package/lib/highlight-textarea/style/index.css +169 -41
  70. package/lib/img-crop/EasyCrop.js +13 -7
  71. package/lib/img-crop/index.js +21 -15
  72. package/lib/img-crop/style/index.css +1784 -0
  73. package/lib/img-crop/style/index.less +1 -1
  74. package/lib/index.js +38 -31
  75. package/lib/keep-tab/index.js +17 -11
  76. package/lib/keep-tab/style/index.css +40 -23
  77. package/lib/label-auto-complete/index.js +5 -5
  78. package/lib/label-auto-complete/style/index.css +1784 -0
  79. package/lib/label-auto-complete/style/index.less +1 -1
  80. package/lib/label-condition-input/index.js +5 -5
  81. package/lib/label-customize-range-picker/defaultRadioList.js +3 -3
  82. package/lib/label-customize-range-picker/index.js +22 -14
  83. package/lib/label-customize-range-picker/style/index.css +1792 -8
  84. package/lib/label-customize-range-picker/style/index.less +6 -4
  85. package/lib/label-date-picker/index.js +5 -5
  86. package/lib/label-date-picker/style/index.css +1784 -0
  87. package/lib/label-date-picker/style/index.less +1 -1
  88. package/lib/label-input/index.js +5 -5
  89. package/lib/label-number-input/index.js +6 -6
  90. package/lib/label-range-picker/index.js +3 -3
  91. package/lib/label-range-picker/style/index.css +1784 -0
  92. package/lib/label-range-picker/style/index.less +1 -1
  93. package/lib/label-select/index.js +5 -5
  94. package/lib/label-select/style/index.css +1784 -0
  95. package/lib/label-select/style/index.less +1 -1
  96. package/lib/label-text-area/index.js +4 -4
  97. package/lib/label-tree-select/index.js +4 -4
  98. package/lib/label-tree-select/style/index.css +1784 -0
  99. package/lib/label-tree-select/style/index.less +1 -1
  100. package/lib/number-input/index.js +21 -15
  101. package/lib/number-input/utils.js +8 -4
  102. package/lib/rc-echart/core.js +21 -15
  103. package/lib/rc-echart/index.js +13 -7
  104. package/lib/rc-qrcode/index.js +14 -8
  105. package/lib/rc-qrcode/useQrcode.js +4 -3
  106. package/lib/rc-transition-group/index.js +13 -7
  107. package/lib/rich-text-editor/index.js +1 -1
  108. package/lib/rich-text-editor/style/index.css +6 -5
  109. package/lib/single-img-upload/index.js +18 -12
  110. package/lib/single-img-upload/style/index.css +1784 -0
  111. package/lib/single-img-upload/style/index.less +1 -1
  112. package/lib/sortable-hoc/index.js +13 -7
  113. package/lib/split-pane/index.js +13 -7
  114. package/lib/step-number-input/index.js +32 -26
  115. package/lib/step-number-input/style/index.css +1784 -0
  116. package/lib/step-number-input/style/index.less +1 -1
  117. package/lib/text-area/index.js +14 -8
  118. package/lib/text-input/index.js +8 -6
  119. package/lib/text-input/style/index.css +169 -41
  120. package/package.json +5 -4
@@ -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);
@@ -281,8 +287,8 @@ var ImgCrop = function ImgCrop(props) {
281
287
  zipImg = props.zipImg,
282
288
  children = props.children,
283
289
  cropperProps = props.cropperProps;
284
- var pkg = prefix + "-img-crop";
285
- var MEDIA_CLASS = pkg + "-media";
290
+ var pkg = "".concat(prefix, "-img-crop");
291
+ var MEDIA_CLASS = "".concat(pkg, "-media");
286
292
  var hasZoom = zoom === true;
287
293
  var hasRotate = rotate === true;
288
294
 
@@ -389,7 +395,7 @@ var ImgCrop = function ImgCrop(props) {
389
395
 
390
396
  return __generator(this, function (_c) {
391
397
  onClose();
392
- naturalImg = document.querySelector("." + MEDIA_CLASS);
398
+ naturalImg = document.querySelector(".".concat(MEDIA_CLASS));
393
399
  naturalWidth = naturalImg.naturalWidth, naturalHeight = naturalImg.naturalHeight;
394
400
  canvas = document.createElement('canvas');
395
401
  ctx = canvas.getContext('2d');
@@ -431,7 +437,7 @@ var ImgCrop = function ImgCrop(props) {
431
437
  imgUrl = url.createObjectURL(newFile);
432
438
  return [4
433
439
  /*yield*/
434
- , getCroppedImg_1["default"](imgUrl, zipImg, name, type)];
440
+ , (0, getCroppedImg_1["default"])(imgUrl, zipImg, name, type)];
435
441
 
436
442
  case 1:
437
443
  fileObj = _a.sent().fileObj;
@@ -505,7 +511,7 @@ var ImgCrop = function ImgCrop(props) {
505
511
  var renderComponent = function renderComponent(titleOfModal) {
506
512
  return React.createElement(React.Fragment, null, renderUpload(), src && React.createElement(modal_1["default"], __assign({
507
513
  visible: true,
508
- wrapClassName: pkg + "-modal",
514
+ wrapClassName: "".concat(pkg, "-modal"),
509
515
  title: titleOfModal,
510
516
  onOk: onOk,
511
517
  onCancel: onClose,
@@ -525,11 +531,11 @@ var ImgCrop = function ImgCrop(props) {
525
531
  maxZoom: maxZoom,
526
532
  onComplete: onComplete,
527
533
  classes: {
528
- containerClassName: pkg + "-container",
534
+ containerClassName: "".concat(pkg, "-container"),
529
535
  mediaClassName: MEDIA_CLASS
530
536
  }
531
537
  }, cropperProps)), hasZoom && React.createElement("div", {
532
- className: pkg + "-control zoom"
538
+ className: "".concat(pkg, "-control zoom")
533
539
  }, React.createElement("button", {
534
540
  type: "button",
535
541
  onClick: subZoomVal,
@@ -545,7 +551,7 @@ var ImgCrop = function ImgCrop(props) {
545
551
  onClick: addZoomVal,
546
552
  disabled: isMaxZoom
547
553
  }, "\uFF0B")), hasRotate && React.createElement("div", {
548
- className: pkg + "-control rotate"
554
+ className: "".concat(pkg, "-control rotate")
549
555
  }, React.createElement("button", {
550
556
  type: "button",
551
557
  onClick: subRotateVal,