assui 2.3.9 → 3.0.0-alpha.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 (168) hide show
  1. package/es/a-select/index.js +7 -22
  2. package/es/a-select/style/index.css +195 -743
  3. package/es/area-text/index.js +1 -3
  4. package/es/button-drawer/index.js +12 -30
  5. package/es/button-modal/index.js +12 -33
  6. package/es/color-select/index.js +10 -23
  7. package/es/color-select/style/index.css +195 -743
  8. package/es/condition-input/index.js +8 -26
  9. package/es/condition-input/parse2RegexOption.js +0 -11
  10. package/es/config-provider/index.js +1 -3
  11. package/es/copy-to-clipboard/index.js +11 -27
  12. package/es/copy-to-clipboard/style/index.css +0 -1
  13. package/es/highlight-textarea/HighlighedContents.js +1 -3
  14. package/es/highlight-textarea/extractSpansOfClasses.d.ts +1 -0
  15. package/es/highlight-textarea/extractSpansOfClasses.js +7 -29
  16. package/es/highlight-textarea/getRanges.js +3 -35
  17. package/es/highlight-textarea/getType.js +0 -6
  18. package/es/highlight-textarea/index.js +11 -30
  19. package/es/highlight-textarea/style/index.css +7 -21
  20. package/es/img-crop/EasyCrop.js +18 -34
  21. package/es/img-crop/getCroppedImg.js +15 -50
  22. package/es/img-crop/index.js +56 -145
  23. package/es/img-crop/style/index.css +195 -743
  24. package/es/json-editor/index.js +6 -20
  25. package/es/keep-tab/index.d.ts +7 -2
  26. package/es/keep-tab/index.js +34 -59
  27. package/es/keep-tab/style/index.css +39 -99
  28. package/es/label-auto-complete/index.js +14 -32
  29. package/es/label-auto-complete/style/index.css +195 -743
  30. package/es/label-condition-input/index.js +13 -29
  31. package/es/label-customize-range-picker/defaultRadioList.js +0 -3
  32. package/es/label-customize-range-picker/index.js +36 -78
  33. package/es/label-customize-range-picker/style/index.css +195 -743
  34. package/es/label-customize-range-picker/utils/index.js +5 -14
  35. package/es/label-date-picker/index.js +11 -28
  36. package/es/label-date-picker/style/index.css +195 -743
  37. package/es/label-input/index.js +23 -37
  38. package/es/label-number-input/index.js +13 -28
  39. package/es/label-range-picker/index.js +11 -28
  40. package/es/label-range-picker/style/index.css +195 -743
  41. package/es/label-select/index.js +11 -27
  42. package/es/label-select/style/index.css +195 -743
  43. package/es/label-text-area/index.js +13 -35
  44. package/es/label-tree-select/index.js +15 -32
  45. package/es/label-tree-select/style/index.css +195 -743
  46. package/es/number-format-input/index.js +1 -11
  47. package/es/number-input/index.js +18 -37
  48. package/es/number-input/utils.js +7 -15
  49. package/es/rc-echart/core.js +15 -27
  50. package/es/rc-echart/index.js +0 -6
  51. package/es/rc-qrcode/index.js +2 -12
  52. package/es/rc-qrcode/useQrcode.js +5 -12
  53. package/es/rich-text-editor/index.js +5 -16
  54. package/es/rich-text-editor/plugins/code/index.js +0 -8
  55. package/es/rich-text-editor/style/index.css +195 -743
  56. package/es/single-img-upload/index.js +36 -110
  57. package/es/single-img-upload/style/index.css +195 -743
  58. package/es/split-pane/index.js +0 -4
  59. package/es/step-number-input/index.js +14 -39
  60. package/es/step-number-input/style/index.css +195 -743
  61. package/es/table-col/index.js +2 -4
  62. package/es/text-area/index.js +8 -27
  63. package/es/text-input/index.js +4 -18
  64. package/es/text-input/style/index.css +7 -21
  65. package/lib/a-select/index.js +7 -27
  66. package/lib/a-select/style/index.css +195 -743
  67. package/lib/a-select/style/index.js +0 -2
  68. package/lib/area-text/index.js +1 -6
  69. package/lib/area-text/style/index.js +0 -1
  70. package/lib/beautiful-dnd/index.js +0 -9
  71. package/lib/button-drawer/index.js +12 -42
  72. package/lib/button-drawer/style/index.js +0 -1
  73. package/lib/button-modal/index.js +12 -44
  74. package/lib/button-modal/style/index.js +0 -1
  75. package/lib/color-select/index.js +10 -39
  76. package/lib/color-select/style/index.css +195 -743
  77. package/lib/color-select/style/index.js +0 -2
  78. package/lib/condition-input/index.js +8 -41
  79. package/lib/condition-input/parse2RegexOption.js +0 -16
  80. package/lib/condition-input/style/index.js +0 -1
  81. package/lib/config-provider/context.js +0 -4
  82. package/lib/config-provider/index.js +1 -28
  83. package/lib/copy-to-clipboard/index.js +11 -38
  84. package/lib/copy-to-clipboard/style/index.css +0 -1
  85. package/lib/copy-to-clipboard/style/index.js +0 -1
  86. package/lib/highlight-textarea/HighlighedContents.js +1 -7
  87. package/lib/highlight-textarea/extractSpansOfClasses.d.ts +1 -0
  88. package/lib/highlight-textarea/extractSpansOfClasses.js +7 -31
  89. package/lib/highlight-textarea/getRanges.js +3 -38
  90. package/lib/highlight-textarea/getType.js +0 -8
  91. package/lib/highlight-textarea/index.js +11 -44
  92. package/lib/highlight-textarea/style/index.css +7 -21
  93. package/lib/highlight-textarea/style/index.js +0 -1
  94. package/lib/highlight-words/index.js +0 -3
  95. package/lib/img-crop/EasyCrop.js +18 -44
  96. package/lib/img-crop/getCroppedImg.js +15 -51
  97. package/lib/img-crop/index.js +56 -159
  98. package/lib/img-crop/style/index.css +195 -743
  99. package/lib/img-crop/style/index.js +0 -3
  100. package/lib/index.js +0 -77
  101. package/lib/json-editor/index.js +6 -35
  102. package/lib/json-editor/style/index.js +0 -2
  103. package/lib/keep-tab/index.d.ts +7 -2
  104. package/lib/keep-tab/index.js +34 -76
  105. package/lib/keep-tab/style/index.css +39 -99
  106. package/lib/keep-tab/style/index.js +0 -2
  107. package/lib/label-auto-complete/index.js +14 -39
  108. package/lib/label-auto-complete/style/index.css +195 -743
  109. package/lib/label-auto-complete/style/index.js +0 -2
  110. package/lib/label-condition-input/index.js +13 -36
  111. package/lib/label-condition-input/style/index.js +0 -1
  112. package/lib/label-customize-range-picker/defaultRadioList.js +0 -7
  113. package/lib/label-customize-range-picker/index.js +36 -99
  114. package/lib/label-customize-range-picker/style/index.css +195 -743
  115. package/lib/label-customize-range-picker/style/index.js +0 -5
  116. package/lib/label-customize-range-picker/utils/index.js +5 -19
  117. package/lib/label-date-picker/index.js +11 -34
  118. package/lib/label-date-picker/style/index.css +195 -743
  119. package/lib/label-date-picker/style/index.js +0 -2
  120. package/lib/label-input/index.js +23 -46
  121. package/lib/label-input/style/index.js +0 -1
  122. package/lib/label-number-input/index.js +13 -36
  123. package/lib/label-number-input/style/index.js +0 -1
  124. package/lib/label-range-picker/index.js +11 -36
  125. package/lib/label-range-picker/style/index.css +195 -743
  126. package/lib/label-range-picker/style/index.js +0 -2
  127. package/lib/label-select/index.js +11 -36
  128. package/lib/label-select/style/index.css +195 -743
  129. package/lib/label-select/style/index.js +0 -2
  130. package/lib/label-text-area/index.js +13 -40
  131. package/lib/label-text-area/style/index.js +0 -1
  132. package/lib/label-tree-select/index.js +15 -38
  133. package/lib/label-tree-select/style/index.css +195 -743
  134. package/lib/label-tree-select/style/index.js +0 -2
  135. package/lib/messages/index.js +0 -2
  136. package/lib/number-format-input/index.js +1 -15
  137. package/lib/number-format-input/style/index.js +0 -1
  138. package/lib/number-input/index.js +18 -55
  139. package/lib/number-input/style/index.js +0 -1
  140. package/lib/number-input/utils.js +8 -20
  141. package/lib/rc-echart/core.js +15 -40
  142. package/lib/rc-echart/index.js +0 -17
  143. package/lib/rc-motion/index.js +0 -3
  144. package/lib/rc-qrcode/index.js +2 -25
  145. package/lib/rc-qrcode/useQrcode.js +5 -17
  146. package/lib/rc-transition-group/index.js +0 -9
  147. package/lib/resizable/index.js +0 -2
  148. package/lib/resizable/style/index.js +0 -1
  149. package/lib/rich-text-editor/index.js +5 -53
  150. package/lib/rich-text-editor/plugins/code/index.js +2 -12
  151. package/lib/rich-text-editor/style/index.css +195 -743
  152. package/lib/rich-text-editor/style/index.js +0 -1
  153. package/lib/single-img-upload/index.js +36 -125
  154. package/lib/single-img-upload/style/index.css +195 -743
  155. package/lib/single-img-upload/style/index.js +0 -3
  156. package/lib/sortable-hoc/index.js +0 -9
  157. package/lib/split-pane/index.js +0 -15
  158. package/lib/split-pane/style/index.js +0 -1
  159. package/lib/step-number-input/index.js +14 -55
  160. package/lib/step-number-input/style/index.css +195 -743
  161. package/lib/step-number-input/style/index.js +0 -2
  162. package/lib/table-col/index.js +2 -6
  163. package/lib/text-area/index.js +8 -38
  164. package/lib/text-area/style/index.js +0 -1
  165. package/lib/text-input/index.js +4 -23
  166. package/lib/text-input/style/index.css +7 -21
  167. package/lib/text-input/style/index.js +0 -1
  168. package/package.json +6 -6
@@ -2,26 +2,21 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
5
  for (var p in s) {
7
6
  if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
7
  }
9
8
  }
10
-
11
9
  return t;
12
10
  };
13
-
14
11
  return __assign.apply(this, arguments);
15
12
  };
16
-
17
13
  var __read = this && this.__read || function (o, n) {
18
14
  var m = typeof Symbol === "function" && o[Symbol.iterator];
19
15
  if (!m) return o;
20
16
  var i = m.call(o),
21
- r,
22
- ar = [],
23
- e;
24
-
17
+ r,
18
+ ar = [],
19
+ e;
25
20
  try {
26
21
  while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
27
22
  ar.push(r.value);
@@ -37,53 +32,43 @@ var __read = this && this.__read || function (o, n) {
37
32
  if (e) throw e.error;
38
33
  }
39
34
  }
40
-
41
35
  return ar;
42
36
  };
43
-
44
37
  import React from 'react';
45
38
  import classNames from 'classnames';
46
39
  import omit from 'lodash/omit';
47
40
  import useControllableValue from "ahooks/es/useControllableValue";
48
41
  import useSize from "ahooks/es/useSize";
49
42
  import ConditionInput from '../condition-input';
50
-
51
43
  var LabelConditionInput = function LabelConditionInput(props) {
52
44
  var className = props.className,
53
- label = props.label,
54
- onBlur = props.onBlur,
55
- id = props.id,
56
- onFocus = props.onFocus,
57
- _a = props.baseMinWidth,
58
- baseMinWidth = _a === void 0 ? 50 : _a;
59
-
45
+ label = props.label,
46
+ onBlur = props.onBlur,
47
+ id = props.id,
48
+ onFocus = props.onFocus,
49
+ _a = props.baseMinWidth,
50
+ baseMinWidth = _a === void 0 ? 50 : _a;
60
51
  var _b = __read(useControllableValue(props), 2),
61
- value = _b[0],
62
- setValue = _b[1];
63
-
52
+ value = _b[0],
53
+ setValue = _b[1];
64
54
  var labelDomRef = React.useRef(null);
65
55
  var labelSize = useSize(labelDomRef);
66
56
  var InputDomRef = React.useRef(null);
67
-
68
57
  var _c = __read(React.useState(false), 2),
69
- focused = _c[0],
70
- setFocused = _c[1];
71
-
58
+ focused = _c[0],
59
+ setFocused = _c[1];
72
60
  var handleLabelClick = function handleLabelClick() {
73
61
  setFocused(true);
74
62
  InputDomRef.current.focus();
75
63
  };
76
-
77
64
  var handleFocus = function handleFocus() {
78
65
  setFocused(true);
79
66
  onFocus === null || onFocus === void 0 ? void 0 : onFocus(value);
80
67
  };
81
-
82
68
  var handleBlur = function handleBlur() {
83
69
  setFocused(false);
84
70
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(value);
85
71
  };
86
-
87
72
  var controlMinWidth = (labelSize === null || labelSize === void 0 ? void 0 : labelSize.width) ? labelSize.width + baseMinWidth : undefined;
88
73
  return /*#__PURE__*/React.createElement("div", {
89
74
  className: classNames('label-condition-input-warper', className),
@@ -111,5 +96,4 @@ var LabelConditionInput = function LabelConditionInput(props) {
111
96
  onClick: handleLabelClick
112
97
  }, label)));
113
98
  };
114
-
115
99
  export default LabelConditionInput;
@@ -2,7 +2,6 @@ import moment from 'moment';
2
2
  import formatMessage from '../messages';
3
3
  var now = moment();
4
4
  export var dateTypeEnum;
5
-
6
5
  (function (dateTypeEnum) {
7
6
  dateTypeEnum[dateTypeEnum["TODAY"] = 1] = "TODAY";
8
7
  dateTypeEnum[dateTypeEnum["YESTERDAY"] = 2] = "YESTERDAY";
@@ -19,7 +18,6 @@ export var dateTypeEnum;
19
18
  dateTypeEnum[dateTypeEnum["BEFORE_180_DAY"] = 13] = "BEFORE_180_DAY";
20
19
  dateTypeEnum[dateTypeEnum["BEFORE_365_DAY"] = 14] = "BEFORE_365_DAY";
21
20
  })(dateTypeEnum || (dateTypeEnum = {}));
22
-
23
21
  var getDefaultRadioList = function getDefaultRadioList(message) {
24
22
  var defaultRadioList = [{
25
23
  key: dateTypeEnum.TODAY,
@@ -80,5 +78,4 @@ var getDefaultRadioList = function getDefaultRadioList(message) {
80
78
  }];
81
79
  return defaultRadioList;
82
80
  };
83
-
84
81
  export default getDefaultRadioList;
@@ -2,39 +2,31 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
5
  for (var p in s) {
7
6
  if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
7
  }
9
8
  }
10
-
11
9
  return t;
12
10
  };
13
-
14
11
  return __assign.apply(this, arguments);
15
12
  };
16
-
17
13
  var __rest = this && this.__rest || function (s, e) {
18
14
  var t = {};
19
-
20
15
  for (var p in s) {
21
16
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
22
17
  }
23
-
24
18
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
25
19
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
26
20
  }
27
21
  return t;
28
22
  };
29
-
30
23
  var __read = this && this.__read || function (o, n) {
31
24
  var m = typeof Symbol === "function" && o[Symbol.iterator];
32
25
  if (!m) return o;
33
26
  var i = m.call(o),
34
- r,
35
- ar = [],
36
- e;
37
-
27
+ r,
28
+ ar = [],
29
+ e;
38
30
  try {
39
31
  while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
40
32
  ar.push(r.value);
@@ -50,10 +42,8 @@ var __read = this && this.__read || function (o, n) {
50
42
  if (e) throw e.error;
51
43
  }
52
44
  }
53
-
54
45
  return ar;
55
46
  };
56
-
57
47
  import React, { useState, useEffect, useContext } from 'react';
58
48
  import Radio from "antd/es/radio";
59
49
  import Checkbox from "antd/es/checkbox";
@@ -67,57 +57,46 @@ import LocaleContext from '../config-provider/context';
67
57
  import formatMessage from '../messages';
68
58
  import { formatMaxScope } from './utils';
69
59
  var RangePicker = DatePicker.RangePicker;
70
-
71
60
  var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
72
61
  var customizeTimeList = props.customizeTimeList,
73
- radioList = props.radioList,
74
- _a = props.rangePickerType,
75
- rangePickerType = _a === void 0 ? 'label' : _a,
76
- label = props.label,
77
- showTime = props.showTime,
78
- maxScope = props.maxScope,
79
- onOpenChange = props.onOpenChange,
80
- _b = props.showShortcutPanel,
81
- showShortcutPanel = _b === void 0 ? true : _b,
82
- restProps = __rest(props, ["customizeTimeList", "radioList", "rangePickerType", "label", "showTime", "maxScope", "onOpenChange", "showShortcutPanel"]);
83
-
62
+ radioList = props.radioList,
63
+ _a = props.rangePickerType,
64
+ rangePickerType = _a === void 0 ? 'label' : _a,
65
+ label = props.label,
66
+ showTime = props.showTime,
67
+ maxScope = props.maxScope,
68
+ onOpenChange = props.onOpenChange,
69
+ _b = props.showShortcutPanel,
70
+ showShortcutPanel = _b === void 0 ? true : _b,
71
+ restProps = __rest(props, ["customizeTimeList", "radioList", "rangePickerType", "label", "showTime", "maxScope", "onOpenChange", "showShortcutPanel"]);
84
72
  var _c = __read(useControllableValue(props), 2),
85
- date = _c[0],
86
- setDate = _c[1];
87
-
73
+ date = _c[0],
74
+ setDate = _c[1];
88
75
  var _d = __read(useState(false), 2),
89
- isVisiblePanel = _d[0],
90
- setIsVisiblePanel = _d[1];
91
-
76
+ isVisiblePanel = _d[0],
77
+ setIsVisiblePanel = _d[1];
92
78
  var _e = __read(useState(), 2),
93
- radioKey = _e[0],
94
- setRadioKey = _e[1];
95
-
79
+ radioKey = _e[0],
80
+ setRadioKey = _e[1];
96
81
  var _f = __read(useState(false), 2),
97
- open = _f[0],
98
- setOpen = _f[1];
99
-
82
+ open = _f[0],
83
+ setOpen = _f[1];
100
84
  var messages = useContext(LocaleContext);
101
85
  var dataSource = radioList !== null && radioList !== void 0 ? radioList : getDefaultRadioList(messages);
102
86
  useEffect(function () {
103
87
  var filterItemList = dataSource.filter(function (item) {
104
88
  if (!date) return false;
105
-
106
89
  var _a = __read(item.value, 2),
107
- startTime = _a[0],
108
- endTime = _a[1];
109
-
90
+ startTime = _a[0],
91
+ endTime = _a[1];
110
92
  var _b = __read(date || [], 2),
111
- defaultStartTime = _b[0],
112
- defaultEndTime = _b[1];
113
-
93
+ defaultStartTime = _b[0],
94
+ defaultEndTime = _b[1];
114
95
  if (startTime.isSame(defaultStartTime, 'day') && endTime.isSame(defaultEndTime, 'day')) {
115
96
  return true;
116
97
  }
117
-
118
98
  return false;
119
99
  });
120
-
121
100
  if (filterItemList.length === 0) {
122
101
  setRadioKey(null);
123
102
  } else if (filterItemList.length > 1) {
@@ -128,56 +107,44 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
128
107
  setRadioKey(resutRadioKey);
129
108
  } else {
130
109
  var _a = __read(filterItemList, 1),
131
- item = _a[0];
132
-
110
+ item = _a[0];
133
111
  setRadioKey(item.key);
134
112
  }
135
113
  }, [date]);
136
114
  useEffect(function () {
137
115
  var _a = __read(date || [], 2),
138
- startTime = _a[0],
139
- endTime = _a[1];
140
-
116
+ startTime = _a[0],
117
+ endTime = _a[1];
141
118
  if (maxScope) {
142
119
  var _b = __read(formatMaxScope(date, maxScope), 2),
143
- newStartDate = _b[0],
144
- newEndDate = _b[1];
145
-
120
+ newStartDate = _b[0],
121
+ newEndDate = _b[1];
146
122
  if (!(newStartDate === null || newStartDate === void 0 ? void 0 : newStartDate.isSame(startTime)) || !(newEndDate === null || newEndDate === void 0 ? void 0 : newEndDate.isSame(endTime))) {
147
123
  setDate(formatMaxScope(date, maxScope));
148
124
  }
149
125
  }
150
126
  }, [maxScope]);
151
-
152
127
  var onDiyTimeChange = function onDiyTimeChange(event) {
153
128
  var checked = event.target.checked;
154
129
  setIsVisiblePanel(checked);
155
130
  };
156
-
157
131
  var onDateChange = function onDateChange(nextValue) {
158
132
  var _a, _b;
159
-
160
133
  var _c = __read(nextValue || [], 2),
161
- start = _c[0],
162
- end = _c[1];
163
-
134
+ start = _c[0],
135
+ end = _c[1];
164
136
  var nextStartDate = (_a = showTime ? start === null || start === void 0 ? void 0 : start.clone() : start === null || start === void 0 ? void 0 : start.clone().startOf('day')) !== null && _a !== void 0 ? _a : null;
165
137
  var nextEndDate = (_b = showTime ? end === null || end === void 0 ? void 0 : end.clone() : end === null || end === void 0 ? void 0 : end.clone().endOf('day')) !== null && _b !== void 0 ? _b : null;
166
-
167
138
  if (!nextStartDate && !nextEndDate) {
168
139
  return setDate(undefined);
169
140
  }
170
-
171
141
  if (!maxScope) {
172
142
  return setDate([nextStartDate, nextEndDate]);
173
143
  }
174
-
175
144
  var _d = __read(date || [], 1),
176
- startDate = _d[0];
177
-
145
+ startDate = _d[0];
178
146
  if (nextStartDate && nextEndDate) {
179
147
  var isChangeStartData = !(startDate === null || startDate === void 0 ? void 0 : startDate.clone().isSame(nextStartDate, 'day'));
180
-
181
148
  if (isChangeStartData) {
182
149
  if (nextEndDate.diff(nextStartDate, 'day') > maxScope) {
183
150
  nextEndDate = nextStartDate.clone().add(maxScope - 1, 'day');
@@ -190,14 +157,11 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
190
157
  } else if (nextStartDate && !nextEndDate) {
191
158
  nextEndDate = nextStartDate.clone().add(maxScope - 1, 'day');
192
159
  }
193
-
194
160
  if (nextStartDate && nextEndDate) {
195
161
  return setDate([nextStartDate, nextEndDate]);
196
162
  }
197
-
198
163
  return setDate([nextStartDate, nextEndDate]);
199
164
  };
200
-
201
165
  var onRadioChange = function onRadioChange(event) {
202
166
  var value = event.target.value;
203
167
  setRadioKey(value);
@@ -207,19 +171,16 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
207
171
  setDate(selectRadioInfo === null || selectRadioInfo === void 0 ? void 0 : selectRadioInfo.value);
208
172
  setOpen(false);
209
173
  };
210
-
211
174
  var list = radioList !== null && radioList !== void 0 ? radioList : getDefaultRadioList(messages).filter(function (item) {
212
175
  return customizeTimeList ? customizeTimeList.includes(item.key) : true;
213
176
  });
214
177
  var resultList = maxScope ? list.filter(function (item) {
215
178
  var _a = __read(item.value, 2),
216
- startTime = _a[0],
217
- entTime = _a[1];
218
-
179
+ startTime = _a[0],
180
+ entTime = _a[1];
219
181
  var space = moment.duration(entTime.diff(startTime)).asDays();
220
182
  return space <= maxScope;
221
183
  }) : list;
222
-
223
184
  var panelRender = function panelRender(panel) {
224
185
  return /*#__PURE__*/React.createElement("div", {
225
186
  className: "label-customize-range-picker-panel"
@@ -240,7 +201,7 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
240
201
  value: radioKey
241
202
  }, resultList.map(function (_a) {
242
203
  var key = _a.key,
243
- text = _a.text;
204
+ text = _a.text;
244
205
  return /*#__PURE__*/React.createElement(Radio, {
245
206
  className: "radio",
246
207
  key: key,
@@ -248,12 +209,10 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
248
209
  }, text);
249
210
  }))));
250
211
  };
251
-
252
212
  var handleOpenChange = function handleOpenChange(nextOpen) {
253
213
  setOpen(nextOpen);
254
214
  onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(nextOpen);
255
215
  };
256
-
257
216
  var baseOptions = {
258
217
  value: date,
259
218
  onChange: onDateChange,
@@ -269,5 +228,4 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
269
228
  showTime: showTime
270
229
  }, baseOptions, omit(restProps, 'onChange')));
271
230
  };
272
-
273
231
  export default LabelCustomizeRangePicker;