@douyinfe/semi-ui 2.40.0-alpha.0 → 2.40.0-beta.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 (243) hide show
  1. package/dist/css/semi.css +3 -36
  2. package/dist/css/semi.min.css +1 -1
  3. package/dist/umd/semi-ui.js +280 -537
  4. package/dist/umd/semi-ui.js.map +1 -1
  5. package/dist/umd/semi-ui.min.js +1 -1
  6. package/dist/umd/semi-ui.min.js.map +1 -1
  7. package/lib/cjs/_portal/index.d.ts +3 -2
  8. package/lib/cjs/_portal/index.js +33 -26
  9. package/lib/cjs/_utils/index.js +0 -3
  10. package/lib/cjs/autoComplete/index.js +0 -2
  11. package/lib/cjs/autoComplete/option.js +0 -2
  12. package/lib/cjs/avatar/avatarGroup.js +0 -1
  13. package/lib/cjs/avatar/index.js +0 -1
  14. package/lib/cjs/backtop/index.js +0 -1
  15. package/lib/cjs/badge/index.js +0 -1
  16. package/lib/cjs/banner/index.js +0 -3
  17. package/lib/cjs/breadcrumb/index.js +0 -3
  18. package/lib/cjs/button/Button.js +8 -14
  19. package/lib/cjs/calendar/dayCalendar.js +4 -9
  20. package/lib/cjs/calendar/dayCol.js +1 -1
  21. package/lib/cjs/calendar/monthCalendar.js +5 -12
  22. package/lib/cjs/calendar/rangeCalendar.js +0 -2
  23. package/lib/cjs/carousel/index.js +0 -2
  24. package/lib/cjs/checkbox/checkbox.js +0 -2
  25. package/lib/cjs/checkbox/checkboxGroup.js +0 -3
  26. package/lib/cjs/checkbox/checkboxInner.js +0 -2
  27. package/lib/cjs/collapse/index.js +0 -1
  28. package/lib/cjs/datePicker/dateInput.d.ts +1 -1
  29. package/lib/cjs/datePicker/dateInput.js +0 -3
  30. package/lib/cjs/datePicker/datePicker.d.ts +1 -1
  31. package/lib/cjs/datePicker/datePicker.js +1 -3
  32. package/lib/cjs/datePicker/month.js +0 -4
  33. package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
  34. package/lib/cjs/datePicker/monthsGrid.js +1 -5
  35. package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
  36. package/lib/cjs/datePicker/yearAndMonth.js +0 -2
  37. package/lib/cjs/form/arrayField.js +0 -2
  38. package/lib/cjs/form/baseForm.d.ts +0 -1
  39. package/lib/cjs/form/baseForm.js +5 -7
  40. package/lib/cjs/form/context.js +0 -2
  41. package/lib/cjs/form/errorMessage.js +0 -2
  42. package/lib/cjs/form/field.d.ts +0 -1
  43. package/lib/cjs/form/field.js +0 -2
  44. package/lib/cjs/form/group.js +0 -2
  45. package/lib/cjs/form/hoc/withField.js +2 -6
  46. package/lib/cjs/form/interface.d.ts +4 -4
  47. package/lib/cjs/form/interface.js +0 -3
  48. package/lib/cjs/form/section.js +0 -2
  49. package/lib/cjs/form/slot.js +0 -3
  50. package/lib/cjs/iconButton/index.js +0 -2
  51. package/lib/cjs/image/image.js +29 -34
  52. package/lib/cjs/image/interface.d.ts +4 -1
  53. package/lib/cjs/image/preview.js +5 -3
  54. package/lib/cjs/image/previewContext.d.ts +1 -0
  55. package/lib/cjs/image/previewFooter.d.ts +5 -1
  56. package/lib/cjs/image/previewFooter.js +66 -38
  57. package/lib/cjs/image/previewInner.d.ts +2 -2
  58. package/lib/cjs/image/previewInner.js +4 -2
  59. package/lib/cjs/input/index.js +0 -2
  60. package/lib/cjs/input/inputGroup.js +0 -3
  61. package/lib/cjs/input/textarea.js +0 -2
  62. package/lib/cjs/inputNumber/index.js +1 -5
  63. package/lib/cjs/modal/ConfirmModal.js +0 -2
  64. package/lib/cjs/modal/Modal.js +0 -2
  65. package/lib/cjs/modal/ModalContent.js +0 -5
  66. package/lib/cjs/modal/confirm.d.ts +12 -12
  67. package/lib/cjs/modal/confirm.js +0 -1
  68. package/lib/cjs/modal/useModal/HookModal.js +0 -1
  69. package/lib/cjs/modal/useModal/index.js +0 -2
  70. package/lib/cjs/navigation/Item.js +0 -3
  71. package/lib/cjs/navigation/SubNav.js +0 -3
  72. package/lib/cjs/navigation/index.js +0 -2
  73. package/lib/cjs/notification/notice.js +29 -35
  74. package/lib/cjs/notification/useNotification/index.js +1 -1
  75. package/lib/cjs/overflowList/index.js +0 -2
  76. package/lib/cjs/pagination/index.d.ts +2 -0
  77. package/lib/cjs/pagination/index.js +29 -13
  78. package/lib/cjs/popconfirm/index.js +0 -2
  79. package/lib/cjs/progress/index.js +0 -1
  80. package/lib/cjs/radio/radio.js +0 -2
  81. package/lib/cjs/rating/index.js +0 -1
  82. package/lib/cjs/resizeObserver/index.js +0 -1
  83. package/lib/cjs/scrollList/scrollItem.js +0 -3
  84. package/lib/cjs/select/index.d.ts +0 -1
  85. package/lib/cjs/select/index.js +3 -12
  86. package/lib/cjs/select/option.js +0 -2
  87. package/lib/cjs/select/utils.js +0 -2
  88. package/lib/cjs/sideSheet/index.js +0 -2
  89. package/lib/cjs/slider/index.js +0 -3
  90. package/lib/cjs/spin/icon.js +0 -2
  91. package/lib/cjs/switch/index.js +0 -2
  92. package/lib/cjs/table/Body/BaseRow.js +0 -2
  93. package/lib/cjs/table/Body/ExpandedRow.js +0 -3
  94. package/lib/cjs/table/Body/SectionRow.js +0 -3
  95. package/lib/cjs/table/Body/index.js +0 -8
  96. package/lib/cjs/table/ColGroup.js +0 -1
  97. package/lib/cjs/table/ColumnFilter.js +0 -3
  98. package/lib/cjs/table/ColumnSelection.js +0 -2
  99. package/lib/cjs/table/HeadTable.js +0 -2
  100. package/lib/cjs/table/ResizableTable.js +1 -4
  101. package/lib/cjs/table/Table.js +1 -10
  102. package/lib/cjs/table/TableCell.js +0 -4
  103. package/lib/cjs/table/TableHeader.js +0 -4
  104. package/lib/cjs/table/TableHeaderRow.js +0 -2
  105. package/lib/cjs/table/TablePagination.js +0 -2
  106. package/lib/cjs/table/table-context.js +0 -2
  107. package/lib/cjs/tabs/TabBar.js +0 -2
  108. package/lib/cjs/tag/index.js +1 -3
  109. package/lib/cjs/tagInput/index.js +0 -2
  110. package/lib/cjs/timePicker/Combobox.js +0 -4
  111. package/lib/cjs/timePicker/TimeInput.js +0 -2
  112. package/lib/cjs/timePicker/TimePicker.js +0 -2
  113. package/lib/cjs/toast/index.js +0 -2
  114. package/lib/cjs/toast/toast.js +0 -2
  115. package/lib/cjs/toast/useToast/index.js +0 -1
  116. package/lib/cjs/tooltip/index.js +0 -6
  117. package/lib/cjs/transfer/index.js +0 -3
  118. package/lib/cjs/tree/index.d.ts +2 -1
  119. package/lib/cjs/tree/index.js +11 -14
  120. package/lib/cjs/tree/treeNode.js +0 -3
  121. package/lib/cjs/treeSelect/index.js +0 -7
  122. package/lib/cjs/trigger/index.js +0 -2
  123. package/lib/cjs/typography/util.js +1 -3
  124. package/lib/cjs/upload/index.js +1 -6
  125. package/lib/es/_portal/index.d.ts +3 -2
  126. package/lib/es/_portal/index.js +33 -26
  127. package/lib/es/_utils/index.js +0 -2
  128. package/lib/es/autoComplete/index.js +0 -1
  129. package/lib/es/autoComplete/option.js +0 -1
  130. package/lib/es/avatar/avatarGroup.js +0 -1
  131. package/lib/es/avatar/index.js +0 -1
  132. package/lib/es/backtop/index.js +0 -1
  133. package/lib/es/badge/index.js +0 -1
  134. package/lib/es/banner/index.js +0 -2
  135. package/lib/es/breadcrumb/index.js +0 -2
  136. package/lib/es/button/Button.js +8 -13
  137. package/lib/es/calendar/dayCalendar.js +4 -9
  138. package/lib/es/calendar/dayCol.js +1 -1
  139. package/lib/es/calendar/monthCalendar.js +5 -11
  140. package/lib/es/calendar/rangeCalendar.js +0 -1
  141. package/lib/es/carousel/index.js +0 -1
  142. package/lib/es/checkbox/checkbox.js +0 -1
  143. package/lib/es/checkbox/checkboxGroup.js +0 -2
  144. package/lib/es/checkbox/checkboxInner.js +0 -1
  145. package/lib/es/collapse/index.js +0 -1
  146. package/lib/es/datePicker/dateInput.d.ts +1 -1
  147. package/lib/es/datePicker/dateInput.js +0 -3
  148. package/lib/es/datePicker/datePicker.d.ts +1 -1
  149. package/lib/es/datePicker/datePicker.js +0 -3
  150. package/lib/es/datePicker/month.js +0 -4
  151. package/lib/es/datePicker/monthsGrid.d.ts +1 -1
  152. package/lib/es/datePicker/monthsGrid.js +1 -5
  153. package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
  154. package/lib/es/datePicker/yearAndMonth.js +0 -1
  155. package/lib/es/form/arrayField.js +0 -1
  156. package/lib/es/form/baseForm.d.ts +0 -1
  157. package/lib/es/form/baseForm.js +5 -6
  158. package/lib/es/form/context.js +0 -1
  159. package/lib/es/form/errorMessage.js +0 -1
  160. package/lib/es/form/field.d.ts +0 -1
  161. package/lib/es/form/field.js +0 -1
  162. package/lib/es/form/group.js +0 -1
  163. package/lib/es/form/hoc/withField.js +2 -6
  164. package/lib/es/form/interface.d.ts +4 -4
  165. package/lib/es/form/interface.js +0 -2
  166. package/lib/es/form/section.js +0 -1
  167. package/lib/es/form/slot.js +0 -2
  168. package/lib/es/iconButton/index.js +0 -1
  169. package/lib/es/image/image.js +29 -34
  170. package/lib/es/image/interface.d.ts +4 -1
  171. package/lib/es/image/preview.js +5 -3
  172. package/lib/es/image/previewContext.d.ts +1 -0
  173. package/lib/es/image/previewFooter.d.ts +5 -1
  174. package/lib/es/image/previewFooter.js +66 -38
  175. package/lib/es/image/previewInner.d.ts +2 -2
  176. package/lib/es/image/previewInner.js +4 -1
  177. package/lib/es/input/index.js +0 -1
  178. package/lib/es/input/inputGroup.js +0 -2
  179. package/lib/es/input/textarea.js +0 -1
  180. package/lib/es/inputNumber/index.js +0 -5
  181. package/lib/es/modal/ConfirmModal.js +0 -2
  182. package/lib/es/modal/Modal.js +0 -1
  183. package/lib/es/modal/ModalContent.js +0 -3
  184. package/lib/es/modal/confirm.d.ts +12 -12
  185. package/lib/es/modal/confirm.js +0 -1
  186. package/lib/es/modal/useModal/HookModal.js +0 -1
  187. package/lib/es/modal/useModal/index.js +0 -2
  188. package/lib/es/navigation/Item.js +0 -2
  189. package/lib/es/navigation/SubNav.js +0 -2
  190. package/lib/es/navigation/index.js +0 -1
  191. package/lib/es/notification/notice.js +29 -34
  192. package/lib/es/notification/useNotification/index.js +1 -1
  193. package/lib/es/overflowList/index.js +0 -1
  194. package/lib/es/pagination/index.d.ts +2 -0
  195. package/lib/es/pagination/index.js +28 -13
  196. package/lib/es/popconfirm/index.js +0 -1
  197. package/lib/es/progress/index.js +0 -1
  198. package/lib/es/radio/radio.js +0 -1
  199. package/lib/es/rating/index.js +0 -1
  200. package/lib/es/resizeObserver/index.js +0 -1
  201. package/lib/es/scrollList/scrollItem.js +0 -3
  202. package/lib/es/select/index.d.ts +0 -1
  203. package/lib/es/select/index.js +3 -12
  204. package/lib/es/select/option.js +0 -1
  205. package/lib/es/select/utils.js +0 -2
  206. package/lib/es/sideSheet/index.js +0 -1
  207. package/lib/es/slider/index.js +0 -3
  208. package/lib/es/spin/icon.js +0 -1
  209. package/lib/es/switch/index.js +0 -1
  210. package/lib/es/table/Body/BaseRow.js +0 -2
  211. package/lib/es/table/Body/ExpandedRow.js +0 -2
  212. package/lib/es/table/Body/SectionRow.js +0 -3
  213. package/lib/es/table/Body/index.js +0 -8
  214. package/lib/es/table/ColGroup.js +0 -1
  215. package/lib/es/table/ColumnFilter.js +0 -2
  216. package/lib/es/table/ColumnSelection.js +0 -1
  217. package/lib/es/table/HeadTable.js +0 -1
  218. package/lib/es/table/ResizableTable.js +0 -4
  219. package/lib/es/table/Table.js +0 -10
  220. package/lib/es/table/TableCell.js +0 -3
  221. package/lib/es/table/TableHeader.js +0 -3
  222. package/lib/es/table/TableHeaderRow.js +0 -1
  223. package/lib/es/table/TablePagination.js +0 -1
  224. package/lib/es/table/table-context.js +0 -1
  225. package/lib/es/tabs/TabBar.js +0 -2
  226. package/lib/es/tag/index.js +1 -2
  227. package/lib/es/tagInput/index.js +0 -2
  228. package/lib/es/timePicker/Combobox.js +0 -3
  229. package/lib/es/timePicker/TimeInput.js +0 -1
  230. package/lib/es/timePicker/TimePicker.js +0 -1
  231. package/lib/es/toast/index.js +0 -1
  232. package/lib/es/toast/toast.js +0 -1
  233. package/lib/es/toast/useToast/index.js +0 -1
  234. package/lib/es/tooltip/index.js +0 -5
  235. package/lib/es/transfer/index.js +0 -3
  236. package/lib/es/tree/index.d.ts +2 -1
  237. package/lib/es/tree/index.js +11 -13
  238. package/lib/es/tree/treeNode.js +0 -3
  239. package/lib/es/treeSelect/index.js +0 -7
  240. package/lib/es/trigger/index.js +0 -2
  241. package/lib/es/typography/util.js +1 -3
  242. package/lib/es/upload/index.js +1 -5
  243. package/package.json +8 -8
@@ -17703,11 +17703,9 @@ const prefixCls = cssClasses.PREFIX;
17703
17703
  class AnchorFoundation extends foundation {
17704
17704
  constructor(adapter) {
17705
17705
  var _this;
17706
- // eslint-disable-next-line @typescript-eslint/no-empty-function
17707
17706
  super(Object.assign(Object.assign({}, AnchorFoundation.defaultAdapter), adapter));
17708
17707
  _this = this;
17709
17708
  this.init = () => {};
17710
- // eslint-disable-next-line @typescript-eslint/no-empty-function
17711
17709
  this.destroy = () => {};
17712
17710
  this.addLink = link => {
17713
17711
  this._adapter.addLink(link);
@@ -17979,7 +17977,6 @@ class LinkFoundation extends foundation {
17979
17977
  init() {
17980
17978
  // this.setInitValue();
17981
17979
  }
17982
- // eslint-disable-next-line @typescript-eslint/no-empty-function
17983
17980
  destroy() {}
17984
17981
  handleAddLink() {
17985
17982
  const href = this._adapter.getProp('href');
@@ -18135,7 +18132,6 @@ class Event {
18135
18132
  const callbacks = this._eventMap.get(event);
18136
18133
  if (Array.isArray(callbacks) && callbacks.length) {
18137
18134
  let index = -1;
18138
- // eslint-disable-next-line max-depth
18139
18135
  while ((index = callbacks.findIndex(cb => cb === callback)) > -1) {
18140
18136
  callbacks.splice(index, 1);
18141
18137
  }
@@ -18311,9 +18307,6 @@ function getMenuButton(focusableEle, Id) {
18311
18307
  ;// CONCATENATED MODULE: ../semi-foundation/tooltip/foundation.ts
18312
18308
 
18313
18309
 
18314
- /* eslint-disable no-param-reassign */
18315
- /* eslint-disable prefer-destructuring, max-lines-per-function, one-var, max-len, @typescript-eslint/restrict-plus-operands */
18316
- /* argus-disable unPkgSensitiveInfo */
18317
18310
 
18318
18311
 
18319
18312
  const REGS = {
@@ -18389,7 +18382,6 @@ class foundation_Tooltip extends foundation {
18389
18382
  top: -9999
18390
18383
  }); // offscreen rendering
18391
18384
  if (trigger === 'custom') {
18392
- // eslint-disable-next-line
18393
18385
  this._adapter.registerClickOutsideHandler(() => {});
18394
18386
  }
18395
18387
  /**
@@ -18707,7 +18699,6 @@ class foundation_Tooltip extends foundation {
18707
18699
  return pixel;
18708
18700
  }
18709
18701
  calcTransformOrigin(position, triggerRect, translateX, translateY) {
18710
- // eslint-disable-next-line
18711
18702
  if (position && triggerRect && translateX != null && translateY != null) {
18712
18703
  if (this.getProp('transformFromCenter')) {
18713
18704
  if (['topLeft', 'bottomLeft'].includes(position)) {
@@ -18738,9 +18729,7 @@ class foundation_Tooltip extends foundation {
18738
18729
  const triggerRect = (isEmpty_default()(props.triggerRect) ? props.triggerRect : this._adapter.getTriggerBounding()) || Object.assign({}, defaultRect);
18739
18730
  const containerRect = (isEmpty_default()(props.containerRect) ? props.containerRect : this._adapter.getPopupContainerRect()) || Object.assign({}, defaultRect);
18740
18731
  const wrapperRect = (isEmpty_default()(props.wrapperRect) ? props.wrapperRect : this._adapter.getWrapperBounding()) || Object.assign({}, defaultRect);
18741
- // eslint-disable-next-line
18742
18732
  const position = props.position != null ? props.position : this.getProp('position');
18743
- // eslint-disable-next-line
18744
18733
  const SPACING = spacing != null ? spacing : this.getProp('spacing');
18745
18734
  const {
18746
18735
  arrowPointAtCenter,
@@ -18918,7 +18907,6 @@ class foundation_Tooltip extends foundation {
18918
18907
  top: this._roundPixel(top)
18919
18908
  };
18920
18909
  let transform = '';
18921
- // eslint-disable-next-line
18922
18910
  if (translateX != null) {
18923
18911
  transform += `translateX(${translateX * 100}%) `;
18924
18912
  Object.defineProperty(style, 'translateX', {
@@ -18926,7 +18914,6 @@ class foundation_Tooltip extends foundation {
18926
18914
  value: translateX
18927
18915
  });
18928
18916
  }
18929
- // eslint-disable-next-line
18930
18917
  if (translateY != null) {
18931
18918
  transform += `translateY(${translateY * 100}%) `;
18932
18919
  Object.defineProperty(style, 'translateY', {
@@ -18934,7 +18921,6 @@ class foundation_Tooltip extends foundation {
18934
18921
  value: translateY
18935
18922
  });
18936
18923
  }
18937
- // eslint-disable-next-line
18938
18924
  if (transformOrigin != null) {
18939
18925
  style.transformOrigin = transformOrigin;
18940
18926
  }
@@ -19663,8 +19649,6 @@ const findAll = _ref4 => {
19663
19649
 
19664
19650
 
19665
19651
 
19666
- /* eslint-disable max-len */
19667
- /* argus-disable unPkgSensitiveInfo */
19668
19652
 
19669
19653
 
19670
19654
 
@@ -19839,10 +19823,35 @@ var portal = __webpack_require__("P1SV");
19839
19823
 
19840
19824
  const defaultGetContainer = () => document.body;
19841
19825
  class Portal extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
19842
- constructor(props) {
19826
+ constructor(props, context) {
19843
19827
  var _this;
19844
19828
  super(props);
19845
19829
  _this = this;
19830
+ this.initContainer = function (context) {
19831
+ let catchError = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
19832
+ var _a, _b;
19833
+ let container = undefined;
19834
+ if (!_this.el) {
19835
+ _this.el = document.createElement('div');
19836
+ }
19837
+ if (!((_a = _this.state) === null || _a === void 0 ? void 0 : _a.container)) {
19838
+ try {
19839
+ _this.el = document.createElement('div');
19840
+ const getContainer = _this.props.getPopupContainer || context.getPopupContainer || defaultGetContainer;
19841
+ const portalContainer = getContainer();
19842
+ portalContainer.appendChild(_this.el);
19843
+ _this.addStyle(_this.props.style);
19844
+ _this.addClass(_this.props.prefixCls, context, _this.props.className);
19845
+ container = portalContainer;
19846
+ return container;
19847
+ } catch (e) {
19848
+ if (!catchError) {
19849
+ throw e;
19850
+ }
19851
+ }
19852
+ }
19853
+ return (_b = _this.state) === null || _b === void 0 ? void 0 : _b.container;
19854
+ };
19846
19855
  this.addStyle = function () {
19847
19856
  let style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
19848
19857
  if (_this.el) {
@@ -19852,11 +19861,12 @@ class Portal extends external_root_React_commonjs2_react_commonjs_react_amd_reac
19852
19861
  }
19853
19862
  };
19854
19863
  this.addClass = function (prefixCls) {
19864
+ let context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _this.context;
19855
19865
  const {
19856
19866
  direction
19857
- } = _this.context;
19858
- for (var _len = arguments.length, classNames = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
19859
- classNames[_key - 1] = arguments[_key];
19867
+ } = context;
19868
+ for (var _len = arguments.length, classNames = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
19869
+ classNames[_key - 2] = arguments[_key];
19860
19870
  }
19861
19871
  const cls = classnames_default()(prefixCls, ...classNames, {
19862
19872
  [`${prefixCls}-rtl`]: direction === 'rtl'
@@ -19865,32 +19875,13 @@ class Portal extends external_root_React_commonjs2_react_commonjs_react_amd_reac
19865
19875
  _this.el.className = cls;
19866
19876
  }
19867
19877
  };
19868
- try {
19869
- this.el = document.createElement('div');
19870
- } catch (e) {}
19871
19878
  this.state = {
19872
- container: undefined
19879
+ container: this.initContainer(context, true)
19873
19880
  };
19874
19881
  }
19875
19882
  componentDidMount() {
19876
- if (!this.el) {
19877
- this.el = document.createElement('div');
19878
- }
19879
- const {
19880
- state,
19881
- props,
19882
- context
19883
- } = this;
19884
- const getContainer = props.getPopupContainer || context.getPopupContainer || defaultGetContainer;
19885
- const container = getContainer();
19886
- if (container !== state.container) {
19887
- // const computedStyle = window.getComputedStyle(container);
19888
- // if (computedStyle.position !== 'relative') {
19889
- // container.style.position = 'relative';
19890
- // }
19891
- container.appendChild(this.el);
19892
- this.addStyle(props.style);
19893
- this.addClass(props.prefixCls, props.className);
19883
+ const container = this.initContainer(this.context);
19884
+ if (container !== this.state.container) {
19894
19885
  this.setState({
19895
19886
  container
19896
19887
  });
@@ -20134,7 +20125,6 @@ var tooltip_rest = undefined && undefined.__rest || function (s, e) {
20134
20125
  }
20135
20126
  return t;
20136
20127
  };
20137
- /* eslint-disable prefer-destructuring, max-lines-per-function, react/no-find-dom-node, max-len, @typescript-eslint/no-empty-function */
20138
20128
 
20139
20129
 
20140
20130
 
@@ -20412,12 +20402,10 @@ class Tooltip extends BaseComponent {
20412
20402
  get adapter() {
20413
20403
  var _this = this;
20414
20404
  return Object.assign(Object.assign({}, super.adapter), {
20415
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
20416
20405
  // @ts-ignore
20417
20406
  on: function () {
20418
20407
  return _this.eventManager.on(...arguments);
20419
20408
  },
20420
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
20421
20409
  // @ts-ignore
20422
20410
  off: function () {
20423
20411
  return _this.eventManager.off(...arguments);
@@ -20465,7 +20453,6 @@ class Tooltip extends BaseComponent {
20465
20453
  });
20466
20454
  },
20467
20455
  getTriggerBounding: () => {
20468
- // eslint-disable-next-line
20469
20456
  // It may be a React component or an html element
20470
20457
  // There is no guarantee that triggerE l.current can get the real dom, so call findDOMNode to ensure that you can get the real dom
20471
20458
  const triggerDOM = this.adapter.getTriggerNode();
@@ -20719,7 +20706,6 @@ class Tooltip extends BaseComponent {
20719
20706
  this.isWrapped = true;
20720
20707
  }
20721
20708
  }
20722
- // eslint-disable-next-line prefer-const
20723
20709
  let ariaAttribute = {};
20724
20710
  // Take effect when used by Popover component
20725
20711
  if (role === 'dialog') {
@@ -20828,7 +20814,6 @@ var copy_text_to_clipboard_default = /*#__PURE__*/__webpack_require__.n(copy_tex
20828
20814
  /**
20829
20815
  * no operation
20830
20816
  */
20831
- // eslint-disable-next-line @typescript-eslint/no-empty-function
20832
20817
  function function_noop() {}
20833
20818
  ;// CONCATENATED MODULE: ./locale/context.tsx
20834
20819
 
@@ -24056,9 +24041,7 @@ const getRenderText = function (originEle, rows) {
24056
24041
  let fixedContent = arguments.length > 3 ? arguments[3] : undefined;
24057
24042
  let ellipsisStr = arguments.length > 4 ? arguments[4] : undefined;
24058
24043
  let suffix = arguments.length > 5 ? arguments[5] : undefined;
24059
- let ellipsisPos
24060
- // eslint-disable-next-line max-params
24061
- = arguments.length > 6 ? arguments[6] : undefined;
24044
+ let ellipsisPos = arguments.length > 6 ? arguments[6] : undefined;
24062
24045
  if (content.length === 0) {
24063
24046
  return '';
24064
24047
  }
@@ -25103,7 +25086,6 @@ class ReactResizeObserver extends BaseComponent {
25103
25086
  // using findDOMNode for two reasons:
25104
25087
  // 1. cloning to insert a ref is unwieldy and not performant.
25105
25088
  // 2. ensure that we resolve to an actual DOM node (instead of any JSX ref instance).
25106
- // eslint-disable-next-line
25107
25089
  return (0,external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_.findDOMNode)(this.childNode || this);
25108
25090
  } catch (error) {
25109
25091
  // swallow error if findDOMNode is run on unmounted component.
@@ -26644,7 +26626,6 @@ var isNumber_default = /*#__PURE__*/__webpack_require__.n(isNumber);
26644
26626
 
26645
26627
 
26646
26628
 
26647
- /* eslint-disable prefer-const, max-len */
26648
26629
 
26649
26630
 
26650
26631
 
@@ -27097,7 +27078,6 @@ var icon_rest = undefined && undefined.__rest || function (s, e) {
27097
27078
  }
27098
27079
  return t;
27099
27080
  };
27100
- /* eslint-disable no-unused-vars */
27101
27081
 
27102
27082
 
27103
27083
  let _id = -1;
@@ -27326,7 +27306,6 @@ class InputFoundation extends foundation {
27326
27306
  this._timer = null;
27327
27307
  }
27328
27308
  }
27329
- // eslint-disable-next-line
27330
27309
  setDisable() {}
27331
27310
  _setInitValue() {
27332
27311
  const {
@@ -27406,7 +27385,6 @@ class InputFoundation extends foundation {
27406
27385
  if (isNumber_default()(maxLength) && maxLength >= 0 && isFunction_default()(getValueLength) && isString_default()(value)) {
27407
27386
  const valueLength = getValueLength(value);
27408
27387
  if (valueLength > maxLength) {
27409
- // eslint-disable-next-line max-len
27410
27388
  console.warn('[Semi Input] The input character is truncated because the input length exceeds the maximum length limit');
27411
27389
  const truncatedValue = this.handleTruncateValue(value, maxLength);
27412
27390
  return truncatedValue;
@@ -27607,7 +27585,6 @@ var input_rest = undefined && undefined.__rest || function (s, e) {
27607
27585
  }
27608
27586
  return t;
27609
27587
  };
27610
- /* eslint-disable no-unused-vars, max-len, @typescript-eslint/no-unused-vars */
27611
27588
 
27612
27589
 
27613
27590
 
@@ -28082,7 +28059,6 @@ const ForwardInput = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_r
28082
28059
  /* harmony default export */ const input_0 = (ForwardInput);
28083
28060
 
28084
28061
  ;// CONCATENATED MODULE: ./trigger/index.tsx
28085
- /* eslint-disable @typescript-eslint/ban-types */
28086
28062
  var trigger_rest = undefined && undefined.__rest || function (s, e) {
28087
28063
  var t = {};
28088
28064
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -28098,7 +28074,6 @@ var trigger_rest = undefined && undefined.__rest || function (s, e) {
28098
28074
  */
28099
28075
  class Trigger extends (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).PureComponent {
28100
28076
  render() {
28101
- // eslint-disable-next-line no-unused-vars
28102
28077
  const _a = this.props,
28103
28078
  {
28104
28079
  triggerRender,
@@ -28135,7 +28110,6 @@ var option_rest = undefined && undefined.__rest || function (s, e) {
28135
28110
  }
28136
28111
  return t;
28137
28112
  };
28138
- /* eslint-disable max-len */
28139
28113
 
28140
28114
 
28141
28115
 
@@ -28297,7 +28271,6 @@ var autoComplete = __webpack_require__("PyaV");
28297
28271
  ;// CONCATENATED MODULE: ./autoComplete/index.tsx
28298
28272
 
28299
28273
 
28300
- /* eslint-disable @typescript-eslint/ban-types, max-len */
28301
28274
 
28302
28275
 
28303
28276
 
@@ -28720,7 +28693,6 @@ const avatar_constants_cssClasses = {
28720
28693
  const avatar_constants_strings = {
28721
28694
  SHAPE: ['circle', 'square'],
28722
28695
  SIZE: ['extra-extra-small', 'extra-small', 'small', 'default', 'medium', 'large', 'extra-large'],
28723
- // eslint-disable-next-line max-len
28724
28696
  COLOR: ['grey', 'red', 'pink', 'purple', 'violet', 'indigo', 'blue', 'light-blue', 'cyan', 'teal', 'green', 'light-green', 'lime', 'yellow', 'amber', 'orange', 'white'],
28725
28697
  OVERLAP_FROM: ['start', 'end']
28726
28698
  };
@@ -28747,8 +28719,8 @@ class AvatarFoundation extends foundation {
28747
28719
  this._adapter.setFocusVisible(false);
28748
28720
  };
28749
28721
  }
28750
- init() {} // eslint-disable-line
28751
- destroy() {} // eslint-disable-line
28722
+ init() {}
28723
+ destroy() {}
28752
28724
  handleImgLoadError() {
28753
28725
  const {
28754
28726
  onError
@@ -28957,7 +28929,6 @@ class Avatar extends BaseComponent {
28957
28929
  }
28958
28930
  }
28959
28931
  render() {
28960
- // eslint-disable-next-line max-len, no-unused-vars
28961
28932
  const _a = this.props,
28962
28933
  {
28963
28934
  shape,
@@ -29103,7 +29074,6 @@ class AvatarGroup extends external_root_React_commonjs2_react_commonjs_react_amd
29103
29074
  return moreAvatar;
29104
29075
  }
29105
29076
  render() {
29106
- // eslint-disable-next-line no-unused-vars
29107
29077
  const _a = this.props,
29108
29078
  {
29109
29079
  children,
@@ -29221,7 +29191,6 @@ function getEasing(easing) {
29221
29191
  if (name === 'cubic-bezier' || name === 'cubicBezier') {
29222
29192
  return src_default()(...(args.length ? args : easingMap.linear));
29223
29193
  } else {
29224
- // eslint-disable-next-line eqeqeq
29225
29194
  if (!name || typeof name !== 'string' || typeof name === 'string' && easingMap[name] == null) {
29226
29195
  name = 'linear';
29227
29196
  }
@@ -29263,12 +29232,10 @@ class Event_Event {
29263
29232
  const callbacks = this._eventMap.get(event);
29264
29233
  if (Array.isArray(callbacks) && callbacks.length) {
29265
29234
  let index = -1;
29266
- // eslint-disable-next-line max-depth
29267
29235
  while ((index = callbacks.findIndex(cb => cb === callback)) > -1) {
29268
29236
  callbacks.splice(index, 1);
29269
29237
  }
29270
29238
  }
29271
- // eslint-disable-next-line eqeqeq
29272
29239
  } else if (callback == null) {
29273
29240
  this._eventMap.delete(event);
29274
29241
  }
@@ -29304,7 +29271,6 @@ function shouldUseBezier(config) {
29304
29271
  *
29305
29272
  * @returns {boolean}
29306
29273
  */
29307
- // eslint-disable-next-line max-len
29308
29274
  function shouldStopAnimation(currentStyle, style, currentVelocity, startTime, nowTime) {
29309
29275
  for (const key of Object.keys(style)) {
29310
29276
  const styleValue = style[key];
@@ -29328,7 +29294,6 @@ function shouldStopAnimation(currentStyle, style, currentVelocity, startTime, no
29328
29294
  return true;
29329
29295
  }
29330
29296
  ;// CONCATENATED MODULE: ../semi-animation/lib/es/src/stripStyle.js
29331
- /* eslint-disable no-restricted-syntax */
29332
29297
  function stripStyle(style) {
29333
29298
  const ret = {};
29334
29299
  for (const key in style) {
@@ -29360,7 +29325,6 @@ const reusedTuple = [0, 0];
29360
29325
  * @param {number} b
29361
29326
  * @param {number} precision
29362
29327
  */
29363
- // eslint-disable-next-line max-len
29364
29328
  function stepper(secondPerFrame, x, v, destX, k, b, precision) {
29365
29329
  // Spring stiffness, in kg / s^2
29366
29330
  // for animations, destX is really spring length (spring at rest). initial
@@ -29462,9 +29426,6 @@ function wrapValue(val) {
29462
29426
  return wrapped;
29463
29427
  }
29464
29428
  ;// CONCATENATED MODULE: ../semi-animation/lib/es/src/Animation.js
29465
- /* eslint-disable max-depth */
29466
- /* eslint-disable eqeqeq */
29467
- /* eslint-disable max-lines-per-function */
29468
29429
 
29469
29430
 
29470
29431
 
@@ -29842,7 +29803,6 @@ var Button_rest = undefined && undefined.__rest || function (s, e) {
29842
29803
  }
29843
29804
  return t;
29844
29805
  };
29845
- /* eslint-disable react/destructuring-assignment */
29846
29806
 
29847
29807
 
29848
29808
 
@@ -29895,18 +29855,14 @@ class Button_Button extends external_root_React_commonjs2_react_commonjs_react_a
29895
29855
  if (!(className && className.includes('-with-icon'))) {
29896
29856
  xSemiProps['x-semi-prop'] = this.props['x-semi-children-alias'] || 'children';
29897
29857
  }
29898
- return (
29899
- /*#__PURE__*/
29900
- // eslint-disable-next-line react/button-has-type
29901
- external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", Object.assign({}, baseProps, {
29902
- onClick: this.props.onClick,
29903
- onMouseDown: this.props.onMouseDown,
29904
- style: style
29905
- }), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", Object.assign({
29906
- className: `${prefixCls}-content`,
29907
- onClick: e => disabled && e.stopPropagation()
29908
- }, xSemiProps), children))
29909
- );
29858
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", Object.assign({}, baseProps, {
29859
+ onClick: this.props.onClick,
29860
+ onMouseDown: this.props.onMouseDown,
29861
+ style: style
29862
+ }), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", Object.assign({
29863
+ className: `${prefixCls}-content`,
29864
+ onClick: e => disabled && e.stopPropagation()
29865
+ }, xSemiProps), children));
29910
29866
  }
29911
29867
  }
29912
29868
  Button_Button.defaultProps = {
@@ -29953,7 +29909,6 @@ var iconButton_rest = undefined && undefined.__rest || function (s, e) {
29953
29909
  }
29954
29910
  return t;
29955
29911
  };
29956
- /* eslint-disable eqeqeq */
29957
29912
 
29958
29913
 
29959
29914
 
@@ -30117,7 +30072,6 @@ class BackTop extends BaseComponent {
30117
30072
  });
30118
30073
  }
30119
30074
  render() {
30120
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
30121
30075
  const _a = this.props,
30122
30076
  {
30123
30077
  children,
@@ -30198,7 +30152,6 @@ class Badge extends external_root_React_commonjs2_react_commonjs_react_amd_react
30198
30152
  } = this.context;
30199
30153
  // DefaultPosition here, static can't get this
30200
30154
  const defaultPosition = direction === 'rtl' ? 'leftTop' : 'rightTop';
30201
- // eslint-disable-next-line max-len
30202
30155
  const _a = this.props,
30203
30156
  {
30204
30157
  count,
@@ -30285,7 +30238,6 @@ class BannerFoundation extends foundation {
30285
30238
  // EXTERNAL MODULE: ../semi-foundation/banner/banner.scss
30286
30239
  var banner = __webpack_require__("9wFu");
30287
30240
  ;// CONCATENATED MODULE: ./banner/index.tsx
30288
- /* eslint-disable max-len */
30289
30241
 
30290
30242
 
30291
30243
 
@@ -30456,7 +30408,6 @@ Banner.propTypes = {
30456
30408
  bordered: (prop_types_default()).bool
30457
30409
  };
30458
30410
  Banner.defaultProps = {
30459
- // eslint-disable-next-line @typescript-eslint/no-empty-function
30460
30411
  onClose: () => {},
30461
30412
  type: 'info',
30462
30413
  fullMode: true
@@ -30471,7 +30422,6 @@ const breadcrumb_constants_strings = {
30471
30422
  };
30472
30423
 
30473
30424
  ;// CONCATENATED MODULE: ../semi-foundation/breadcrumb/foundation.ts
30474
- /* eslint-disable prefer-const */
30475
30425
 
30476
30426
 
30477
30427
  class BreadcrumbFoundation extends foundation {
@@ -30717,7 +30667,6 @@ BreadcrumbItem.defaultProps = {
30717
30667
  };
30718
30668
  ;// CONCATENATED MODULE: ./breadcrumb/index.tsx
30719
30669
 
30720
- /* eslint-disable max-len */
30721
30670
 
30722
30671
 
30723
30672
 
@@ -30777,7 +30726,6 @@ class Breadcrumb extends BaseComponent {
30777
30726
  key: key,
30778
30727
  active: idx === items.length - 1,
30779
30728
  route: route._origin,
30780
- // eslint-disable-next-line max-len
30781
30729
  shouldRenderSeparator: !(shouldCollapse && (hasRenderMore || moreTypeIsPopover) && inCollapseArea)
30782
30730
  }), renderItem ? renderItem(route._origin) : route.name);
30783
30731
  });
@@ -34423,7 +34371,6 @@ const filterEvents = (events, start, end) => {
34423
34371
  * @returns {arr}
34424
34372
  * filter out event that is not in the week range
34425
34373
  */
34426
- // eslint-disable-next-line max-len
34427
34374
  const filterWeeklyEvents = (events, weekStart, weekStartsOn) => filterEvents(events, weekStart, addDays(endOfWeek(weekStart, {
34428
34375
  weekStartsOn
34429
34376
  }), 1));
@@ -34487,7 +34434,6 @@ const collectDailyEvents = events => {
34487
34434
  return collections;
34488
34435
  };
34489
34436
  const renderDailyEvent = event => {
34490
- // eslint-disable-next-line prefer-const
34491
34437
  let {
34492
34438
  start,
34493
34439
  end,
@@ -34525,7 +34471,6 @@ class CalendarFoundation extends foundation {
34525
34471
  constructor(adapter) {
34526
34472
  super(Object.assign({}, adapter));
34527
34473
  }
34528
- // eslint-disable-next-line @typescript-eslint/no-empty-function
34529
34474
  init() {}
34530
34475
  destroy() {
34531
34476
  this.raf && cancelAnimationFrame(this.raf);
@@ -34894,7 +34839,7 @@ const calendar_constants_strings = {
34894
34839
  // EXTERNAL MODULE: ../semi-foundation/calendar/calendar.scss
34895
34840
  var calendar = __webpack_require__("uW5I");
34896
34841
  ;// CONCATENATED MODULE: ./calendar/dayCol.tsx
34897
- /* eslint-disable max-len */
34842
+ /* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
34898
34843
 
34899
34844
 
34900
34845
 
@@ -35138,14 +35083,10 @@ class DayCalendar extends BaseComponent {
35138
35083
  children,
35139
35084
  key
35140
35085
  } = event;
35141
- return (
35142
- /*#__PURE__*/
35143
- // eslint-disable-next-line max-len
35144
- external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
35145
- className: `${calendar_constants_cssClasses.PREFIX}-event-item ${calendar_constants_cssClasses.PREFIX}-event-allday`,
35146
- key: key || `allDay-${ind}`
35147
- }, children)
35148
- );
35086
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
35087
+ className: `${calendar_constants_cssClasses.PREFIX}-event-item ${calendar_constants_cssClasses.PREFIX}-event-allday`,
35088
+ key: key || `allDay-${ind}`
35089
+ }, children);
35149
35090
  });
35150
35091
  return list;
35151
35092
  };
@@ -35226,7 +35167,6 @@ class DayCalendar extends BaseComponent {
35226
35167
  this.foundation.destroy();
35227
35168
  }
35228
35169
  render() {
35229
- // eslint-disable-next-line max-len
35230
35170
  const {
35231
35171
  dateGridRender,
35232
35172
  displayValue,
@@ -35581,7 +35521,6 @@ WeekCalendar.contextType = locale_context;
35581
35521
 
35582
35522
 
35583
35523
 
35584
- // eslint-disable-next-line max-len
35585
35524
 
35586
35525
 
35587
35526
 
@@ -35756,15 +35695,11 @@ class monthCalendar extends BaseComponent {
35756
35695
  className: `${calendar_constants_cssClasses.PREFIX}-today-date`
35757
35696
  }, "\u00A0", date), locale.datestring));
35758
35697
  }
35759
- return (
35760
- /*#__PURE__*/
35761
- // eslint-disable-next-line max-len
35762
- external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
35763
- className: `${monthCalendar_prefixCls}-date`
35764
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
35765
- className: `${calendar_constants_cssClasses.PREFIX}-today-date`
35766
- }, date))
35767
- );
35698
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
35699
+ className: `${monthCalendar_prefixCls}-date`
35700
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
35701
+ className: `${calendar_constants_cssClasses.PREFIX}-today-date`
35702
+ }, date));
35768
35703
  };
35769
35704
  this.renderCusDateGrid = date => {
35770
35705
  const {
@@ -35855,7 +35790,6 @@ class monthCalendar extends BaseComponent {
35855
35790
  registerClickOutsideHandler: (key, cb) => {
35856
35791
  const clickOutsideHandler = e => {
35857
35792
  const cardInstance = this.cardRef && this.cardRef.get(key);
35858
- // eslint-disable-next-line react/no-find-dom-node
35859
35793
  const cardDom = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(cardInstance);
35860
35794
  if (cardDom && !cardDom.contains(e.target)) {
35861
35795
  cb();
@@ -35986,7 +35920,6 @@ monthCalendar.contextType = locale_context;
35986
35920
 
35987
35921
 
35988
35922
 
35989
- // eslint-disable-next-line max-len
35990
35923
 
35991
35924
 
35992
35925
 
@@ -37241,7 +37174,6 @@ var carousel = __webpack_require__("sXY8");
37241
37174
  ;// CONCATENATED MODULE: ./carousel/index.tsx
37242
37175
 
37243
37176
 
37244
- /* eslint-disable jsx-a11y/no-static-element-interactions */
37245
37177
 
37246
37178
 
37247
37179
 
@@ -37576,7 +37508,6 @@ function treeUtil_isValid(val) {
37576
37508
  * @param filteredShownKeys
37577
37509
  * need expanded keys, provides `true` means all expanded
37578
37510
  */
37579
- // eslint-disable-next-line max-len
37580
37511
  function flattenTreeData(treeNodeList, expandedKeys) {
37581
37512
  let filteredShownKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
37582
37513
  const flattenList = [];
@@ -37599,7 +37530,6 @@ function flattenTreeData(treeNodeList, expandedKeys) {
37599
37530
  flattenList.push(flattenNode);
37600
37531
  }
37601
37532
  // Loop treeNode children
37602
- // eslint-disable-next-line max-len
37603
37533
  if (expandedKeys.has(mergedKey) && (!filterSearch || !isBooleanFilteredShownKeys && filteredShownKeys.has(mergedKey))) {
37604
37534
  flattenNode.children = flatten(treeNode.children || [], flattenNode);
37605
37535
  } else {
@@ -37896,7 +37826,6 @@ function calcExpandedKeys() {
37896
37826
  return new Set(keyList);
37897
37827
  }
37898
37828
  /* Calculate the expanded node by value */
37899
- // eslint-disable-next-line max-len
37900
37829
  function calcExpandedKeysForValues(value, keyEntities, isMultiple, valueEntities) {
37901
37830
  const keys = findKeysForValues(value, valueEntities, isMultiple);
37902
37831
  return new Set(findAncestorKeys(keys, keyEntities, false));
@@ -38004,7 +37933,6 @@ function getMotionKeys(eventKey, expandedKeys, keyEntities) {
38004
37933
  getChild(eventKey);
38005
37934
  return res;
38006
37935
  }
38007
- // eslint-disable-next-line max-len
38008
37936
  function calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKeys) {
38009
37937
  const descendantKeys = findDescendantKeys([key], keyEntities, true);
38010
37938
  const nodeItem = keyEntities[key];
@@ -38013,12 +37941,10 @@ function calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKey
38013
37941
  if (!node.parent) {
38014
37942
  return;
38015
37943
  }
38016
- // eslint-disable-next-line @typescript-eslint/no-shadow
38017
37944
  const {
38018
37945
  key
38019
37946
  } = node;
38020
37947
  const siblingKeys = findSiblingKeys([key], keyEntities);
38021
- // eslint-disable-next-line @typescript-eslint/no-shadow
38022
37948
  const allChecked = siblingKeys.every(key => checkedKeys.has(key));
38023
37949
  if (!allChecked) {
38024
37950
  const ancestorKeys = findAncestorKeys([key], keyEntities, false);
@@ -38035,7 +37961,6 @@ function calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKey
38035
37961
  halfCheckedKeys
38036
37962
  };
38037
37963
  }
38038
- // eslint-disable-next-line max-len
38039
37964
  function calcCheckedKeysForUnchecked(key, keyEntities, checkedKeys, halfCheckedKeys) {
38040
37965
  const descendantKeys = findDescendantKeys([key], keyEntities, true);
38041
37966
  const nodeItem = keyEntities[key];
@@ -38058,12 +37983,10 @@ function calcCheckedKeysForUnchecked(key, keyEntities, checkedKeys, halfCheckedK
38058
37983
  return;
38059
37984
  }
38060
37985
  // Has a parent node, and the parent node is checked or halfChecked
38061
- // eslint-disable-next-line @typescript-eslint/no-shadow
38062
37986
  const {
38063
37987
  key
38064
37988
  } = node;
38065
37989
  const siblingKeys = findSiblingKeys([key], keyEntities);
38066
- // eslint-disable-next-line @typescript-eslint/no-shadow
38067
37990
  const anyChecked = siblingKeys.some(key => checkedKeys.has(key) || halfCheckedKeys.has(key));
38068
37991
  const ancestorKeys = findAncestorKeys([key], keyEntities, false);
38069
37992
  // If there is checked or halfChecked in the sibling node, you need to change the parent node to halfChecked
@@ -38288,7 +38211,6 @@ function calcMergeType(autoMergeValue, leafOnly) {
38288
38211
 
38289
38212
 
38290
38213
 
38291
- // eslint-disable-next-line max-len
38292
38214
  class CascaderFoundation extends foundation {
38293
38215
  constructor(adapter) {
38294
38216
  super(Object.assign({}, adapter));
@@ -38323,7 +38245,6 @@ class CascaderFoundation extends foundation {
38323
38245
  const valueProp = onChangeWithObject ? [] : 'value';
38324
38246
  if (multiple) {
38325
38247
  const valuePath = [];
38326
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
38327
38248
  // @ts-ignore
38328
38249
  item.forEach(checkedKey => {
38329
38250
  const valuePathItem = this.getItemPropPath(checkedKey, valueProp);
@@ -38390,9 +38311,7 @@ class CascaderFoundation extends foundation {
38390
38311
  if (isEmpty_default()(keyEntities[selectedKey])) {
38391
38312
  if (includes_default()(selectedKey, 'not-exist-')) {
38392
38313
  /* Get the value behind not-exist- */
38393
- // eslint-disable-next-line prefer-destructuring
38394
38314
  const targetValue = selectedKey.match(/not-exist-(\S*)/)[1];
38395
- // eslint-disable-next-line max-depth
38396
38315
  if (isEmpty_default()(keyEntities[targetValue])) {
38397
38316
  cacheValue = targetValue;
38398
38317
  } else {
@@ -39080,7 +38999,6 @@ class CascaderFoundation extends foundation {
39080
38999
  return this.getFilteredData();
39081
39000
  }
39082
39001
  return Object.values(keyEntities).filter(item => item.parentKey === null && !item._notExist)
39083
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
39084
39002
  // @ts-ignore
39085
39003
  .sort((a, b) => parseInt(a.ind, 10) - parseInt(b.ind, 10));
39086
39004
  }
@@ -39272,7 +39190,6 @@ class CheckboxFoundation extends foundation {
39272
39190
  setChecked(checked) {
39273
39191
  this._adapter.setNativeControlChecked(checked);
39274
39192
  }
39275
- // eslint-disable-next-line @typescript-eslint/no-empty-function
39276
39193
  destroy() {}
39277
39194
  }
39278
39195
  /* harmony default export */ const checkboxFoundation = (CheckboxFoundation);
@@ -39282,7 +39199,6 @@ const Context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
39282
39199
 
39283
39200
  ;// CONCATENATED MODULE: ./checkbox/checkboxInner.tsx
39284
39201
 
39285
- /* eslint-disable no-nested-ternary */
39286
39202
 
39287
39203
 
39288
39204
 
@@ -39387,7 +39303,6 @@ var checkbox_checkbox = __webpack_require__("tdZr");
39387
39303
 
39388
39304
 
39389
39305
 
39390
- /* eslint-disable max-len */
39391
39306
 
39392
39307
 
39393
39308
 
@@ -39720,13 +39635,11 @@ class CheckboxGroupFoundation extends foundation {
39720
39635
  warning(true, 'Warning: [Semi CheckboxGroup] value should be an Array');
39721
39636
  }
39722
39637
  }
39723
- // eslint-disable-next-line @typescript-eslint/no-empty-function
39724
39638
  destroy() {}
39725
39639
  }
39726
39640
  /* harmony default export */ const checkboxGroupFoundation = (CheckboxGroupFoundation);
39727
39641
  ;// CONCATENATED MODULE: ./checkbox/checkboxGroup.tsx
39728
39642
 
39729
- /* eslint-disable max-len */
39730
39643
 
39731
39644
 
39732
39645
 
@@ -39867,7 +39780,6 @@ CheckboxGroup.propTypes = {
39867
39780
  };
39868
39781
  CheckboxGroup.defaultProps = {
39869
39782
  disabled: false,
39870
- // eslint-disable-next-line @typescript-eslint/no-empty-function
39871
39783
  onChange: () => {},
39872
39784
  type: checkbox_constants_strings.TYPE_DEFAULT,
39873
39785
  defaultValue: [],
@@ -40213,7 +40125,6 @@ Item.defaultProps = {
40213
40125
  empty: false
40214
40126
  };
40215
40127
  ;// CONCATENATED MODULE: ../semi-foundation/tag/constants.ts
40216
- /* eslint-disable max-len */
40217
40128
 
40218
40129
  const tag_constants_cssClasses = {
40219
40130
  PREFIX: `${BASE_CLASS_PREFIX}-tag`
@@ -40237,7 +40148,6 @@ var tag_rest = undefined && undefined.__rest || function (s, e) {
40237
40148
  }
40238
40149
  return t;
40239
40150
  };
40240
- /* eslint-disable jsx-a11y/no-static-element-interactions */
40241
40151
 
40242
40152
 
40243
40153
 
@@ -40374,7 +40284,7 @@ class Tag extends external_root_React_commonjs2_react_commonjs_react_amd_react_.
40374
40284
  const wrapProps = clickable ? Object.assign(Object.assign({}, baseProps), a11yProps) : baseProps;
40375
40285
  const closeIcon = closable ?
40376
40286
  /*#__PURE__*/
40377
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events
40287
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
40378
40288
  external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
40379
40289
  className: `${tag_prefixCls}-close`,
40380
40290
  onClick: e => this.close(e, children, tagKey)
@@ -40556,10 +40466,8 @@ class TagInputFoundation extends foundation {
40556
40466
  const maxLen = Math.max(valueArr.length, inputArr.length);
40557
40467
  for (let i = 0; i < maxLen; i++) {
40558
40468
  // When the input length is increasing
40559
- // eslint-disable-next-line max-len
40560
40469
  if (!isUndefined_default()(valueArr[i]) && (isUndefined_default()(inputArr[i]) || valueArr[i].length > inputArr[i].length)) {
40561
40470
  // When the input length exceeds maxLength
40562
- // eslint-disable-next-line max-depth
40563
40471
  if (valueArr[i].length > maxLength) {
40564
40472
  allowChange = false;
40565
40473
  isFunction_default()(onInputExceed) && onInputExceed(value);
@@ -42918,7 +42826,6 @@ class TagInput extends BaseComponent {
42918
42826
  const prefixWrapperCls = classnames_default()(`${tagInput_prefixCls}-prefix`, {
42919
42827
  [`${tagInput_prefixCls}-inset-label`]: insetLabel,
42920
42828
  [`${tagInput_prefixCls}-prefix-text`]: labelNode && isString_default()(labelNode),
42921
- // eslint-disable-next-line max-len
42922
42829
  [`${tagInput_prefixCls}-prefix-icon`]: isSemiIcon(labelNode)
42923
42830
  });
42924
42831
  return (
@@ -42942,7 +42849,6 @@ class TagInput extends BaseComponent {
42942
42849
  }
42943
42850
  const suffixWrapperCls = classnames_default()(`${tagInput_prefixCls}-suffix`, {
42944
42851
  [`${tagInput_prefixCls}-suffix-text`]: suffix && isString_default()(suffix),
42945
- // eslint-disable-next-line max-len
42946
42852
  [`${tagInput_prefixCls}-suffix-icon`]: isSemiIcon(suffix)
42947
42853
  });
42948
42854
  return (
@@ -44624,7 +44530,6 @@ class Collapse extends BaseComponent {
44624
44530
  this.foundation.destroy();
44625
44531
  }
44626
44532
  render() {
44627
- // eslint-disable-next-line max-len
44628
44533
  const _a = this.props,
44629
44534
  {
44630
44535
  defaultActiveKey,
@@ -44754,8 +44659,6 @@ var has = __webpack_require__("1mr4");
44754
44659
 
44755
44660
 
44756
44661
 
44757
- /* eslint-disable max-len */
44758
- /* argus-disable unPkgSensitiveInfo */
44759
44662
  const pathToArrayElem = path => {
44760
44663
  const pathArray = toPath_default()(path);
44761
44664
  // internal-issues:673
@@ -44802,7 +44705,6 @@ function cleanup(obj, path) {
44802
44705
  // lodashRemove(target, (value, index, array) => index > lastIndex);
44803
44706
  // }
44804
44707
  // Delete object if its empty
44805
- // eslint-disable-next-line
44806
44708
  if (Array.isArray(target) && target.every(e => e == null)) {
44807
44709
  unset_default()(obj, path);
44808
44710
  } else if (isEmptyObject(target)) {
@@ -45054,8 +44956,6 @@ function isTimestamp(ts) {
45054
44956
  // EXTERNAL MODULE: ../../node_modules/date-fns-tz/index.js
45055
44957
  var date_fns_tz = __webpack_require__("NyOe");
45056
44958
  ;// CONCATENATED MODULE: ../semi-foundation/utils/date-fns-extra.ts
45057
- /* eslint-disable max-len */
45058
- /* eslint-disable eqeqeq */
45059
44959
 
45060
44960
 
45061
44961
  /**
@@ -48674,8 +48574,6 @@ function isValidTimeZone(timeZone) {
48674
48574
 
48675
48575
 
48676
48576
 
48677
- /* eslint-disable no-nested-ternary */
48678
- /* eslint-disable max-len, max-depth, */
48679
48577
 
48680
48578
 
48681
48579
 
@@ -49051,7 +48949,6 @@ class DatePickerFoundation extends foundation {
49051
48949
  * @param {String} input
49052
48950
  * @param {Event} e
49053
48951
  */
49054
- // eslint-disable-next-line @typescript-eslint/no-empty-function
49055
48952
  handleInputBlur() {
49056
48953
  let input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
49057
48954
  let e = arguments.length > 1 ? arguments[1] : undefined;
@@ -49104,7 +49001,6 @@ class DatePickerFoundation extends foundation {
49104
49001
  this._adapter.setRangeInputFocus(false);
49105
49002
  this._adapter.notifyClear(e);
49106
49003
  }
49107
- // eslint-disable-next-line @typescript-eslint/no-empty-function
49108
49004
  handleRangeInputBlur(value, e) {}
49109
49005
  // Parses input only after user returns
49110
49006
  handleInputComplete() {
@@ -50024,7 +49920,6 @@ function getDefaultPickerDate(options) {
50024
49920
 
50025
49921
 
50026
49922
 
50027
- /* eslint-disable max-len */
50028
49923
 
50029
49924
 
50030
49925
 
@@ -50041,9 +49936,7 @@ class inputFoundation_InputFoundation extends foundation {
50041
49936
  constructor(adapter) {
50042
49937
  super(Object.assign({}, adapter));
50043
49938
  }
50044
- // eslint-disable-next-line @typescript-eslint/no-empty-function
50045
49939
  init() {}
50046
- // eslint-disable-next-line @typescript-eslint/no-empty-function
50047
49940
  destroy() {}
50048
49941
  handleClick(e) {
50049
49942
  this._adapter.notifyClick(e);
@@ -50406,8 +50299,6 @@ var dateInput_rest = undefined && undefined.__rest || function (s, e) {
50406
50299
  };
50407
50300
  /* eslint-disable jsx-a11y/click-events-have-key-events */
50408
50301
  /* eslint-disable jsx-a11y/no-static-element-interactions */
50409
- /* eslint-disable max-lines-per-function */
50410
- /* eslint-disable no-unused-vars */
50411
50302
 
50412
50303
 
50413
50304
 
@@ -50501,7 +50392,6 @@ class DateInput extends BaseComponent {
50501
50392
  this.foundation.destroy();
50502
50393
  }
50503
50394
  formatText(value) {
50504
- // eslint-disable-next-line max-len
50505
50395
  return value && value.length ? this.foundation.formatShowText(value) : '';
50506
50396
  }
50507
50397
  renderRangePrefix() {
@@ -51240,7 +51130,6 @@ const getMonthTable = (month, weekStartsOn) => {
51240
51130
 
51241
51131
 
51242
51132
 
51243
- /* eslint-disable max-len */
51244
51133
 
51245
51134
 
51246
51135
 
@@ -51420,7 +51309,6 @@ class MonthsGridFoundation extends foundation {
51420
51309
  _initDateTimeRangePickerFormValue(values) {
51421
51310
  this._initDateRangePickerFromValue(values, true);
51422
51311
  }
51423
- // eslint-disable-next-line @typescript-eslint/no-empty-function
51424
51312
  destroy() {}
51425
51313
  /**
51426
51314
  * sync change another panel month when change months from the else yam panel
@@ -52328,7 +52216,6 @@ class CalendarMonthFoundation extends foundation {
52328
52216
  });
52329
52217
  this._adapter.setWeekDays(weekdays);
52330
52218
  }
52331
- // eslint-disable-next-line @typescript-eslint/no-empty-function
52332
52219
  destroy() {}
52333
52220
  handleClick(day) {
52334
52221
  this._adapter.notifyDayClick(day);
@@ -52435,7 +52322,6 @@ function isBetween(day, _ref) {
52435
52322
 
52436
52323
 
52437
52324
  /* eslint-disable jsx-a11y/click-events-have-key-events,jsx-a11y/no-noninteractive-element-interactions */
52438
- /* eslint-disable max-len */
52439
52325
 
52440
52326
 
52441
52327
 
@@ -52545,7 +52431,6 @@ class Month extends BaseComponent {
52545
52431
  // The range selects the hover date, and the normal hover is .semi-datepicker-main: hover
52546
52432
  const _isHoverDay = isSameDay_isSameDay(hoverDay, fullDate);
52547
52433
  // When one is selected
52548
- // eslint-disable-next-line one-var
52549
52434
  let _isHoverAfterStart, _isHoverBeforeEnd, isSelectedStart, isSelectedEnd, isHoverDayAroundOneSelected;
52550
52435
  if (rangeStart) {
52551
52436
  isSelectedStart = isSameDay_isSameDay(fullDate, rangeStart);
@@ -52568,13 +52453,11 @@ class Month extends BaseComponent {
52568
52453
  if (!_isDateRangeSelected && _isDateRangeAnySelected) {
52569
52454
  isHoverDayAroundOneSelected = _isHoverDay;
52570
52455
  }
52571
- // eslint-disable-next-line one-var
52572
52456
  let isHover;
52573
52457
  if (!_isOffsetDateRangeAnyExist) {
52574
52458
  isHover = _isHoverAfterStart || _isHoverBeforeEnd || _isHoverDay;
52575
52459
  }
52576
52460
  // Select all
52577
- // eslint-disable-next-line one-var
52578
52461
  let isInRange, isSelectedStartAfterHover, isSelectedEndBeforeHover, isHoverDayInStartSelection, isHoverDayInEndSelection, isHoverDayInRange;
52579
52462
  if (_isDateRangeSelected) {
52580
52463
  isInRange = isBetween(fullDate, {
@@ -53324,7 +53207,6 @@ class ScrollItem extends BaseComponent {
53324
53207
  this.scrollToIndex = (selectedIndex, duration) => {
53325
53208
  // move to selected item
53326
53209
  duration = typeof duration === 'number' ? duration : scrollList_constants_numbers.DEFAULT_SCROLL_DURATION;
53327
- // eslint-disable-next-line
53328
53210
  selectedIndex = selectedIndex == null ? this.props.selectedIndex : selectedIndex;
53329
53211
  // this.isWheelMode() && this.addClassToNode();
53330
53212
  this.scrollToNode(this.selectedNode, duration);
@@ -53430,11 +53312,9 @@ class ScrollItem extends BaseComponent {
53430
53312
  if (typeof transform === 'function') {
53431
53313
  text = transform(item.value, item.text);
53432
53314
  } else {
53433
- // eslint-disable-next-line
53434
53315
  text = item.text == null ? item.value : item.text;
53435
53316
  }
53436
53317
  } else {
53437
- // eslint-disable-next-line
53438
53318
  text = item.text == null ? item.value : item.text;
53439
53319
  }
53440
53320
  const events = {};
@@ -53872,8 +53752,6 @@ class ComboboxFoundation extends foundation {
53872
53752
  /* harmony default export */ const ComboxFoundation = (ComboboxFoundation);
53873
53753
  ;// CONCATENATED MODULE: ./timePicker/Combobox.tsx
53874
53754
 
53875
- /* eslint-disable max-len */
53876
- /* eslint-disable react/no-did-update-set-state */
53877
53755
 
53878
53756
 
53879
53757
 
@@ -53906,7 +53784,6 @@ class Combobox extends BaseComponent {
53906
53784
  value,
53907
53785
  disabled
53908
53786
  } = _ref;
53909
- // eslint-disable-next-line prefer-const
53910
53787
  let {
53911
53788
  onChange,
53912
53789
  use12Hours,
@@ -54178,9 +54055,7 @@ class YearAndMonthFoundation extends foundation {
54178
54055
  constructor(adapter) {
54179
54056
  super(Object.assign({}, adapter));
54180
54057
  }
54181
- // eslint-disable-next-line @typescript-eslint/no-empty-function
54182
54058
  init() {}
54183
- // eslint-disable-next-line @typescript-eslint/no-empty-function
54184
54059
  destroy() {}
54185
54060
  selectYear(item, panelType) {
54186
54061
  // const year = item.value;
@@ -54296,7 +54171,6 @@ const getYears = (startYear, endYear) => {
54296
54171
 
54297
54172
 
54298
54173
 
54299
- /* eslint-disable max-len */
54300
54174
 
54301
54175
 
54302
54176
 
@@ -54588,11 +54462,7 @@ YearAndMonth.defaultProps = {
54588
54462
  ;// CONCATENATED MODULE: ./datePicker/monthsGrid.tsx
54589
54463
 
54590
54464
 
54591
- /* eslint-disable jsx-a11y/interactive-supports-focus,jsx-a11y/click-events-have-key-events */
54592
- /* eslint-disable jsx-a11y/no-static-element-interactions */
54593
- /* eslint-disable react/no-did-update-set-state */
54594
- /* eslint-disable max-len */
54595
- /* eslint-disable no-nested-ternary */
54465
+ /* eslint-disable jsx-a11y/interactive-supports-focus */
54596
54466
 
54597
54467
 
54598
54468
 
@@ -55355,9 +55225,6 @@ var datePicker_rest = undefined && undefined.__rest || function (s, e) {
55355
55225
  return t;
55356
55226
  };
55357
55227
  /* eslint-disable jsx-a11y/click-events-have-key-events,jsx-a11y/interactive-supports-focus */
55358
- /* eslint-disable max-len */
55359
- /* eslint-disable jsx-a11y/click-events-have-key-events */
55360
- /* eslint-disable jsx-a11y/no-static-element-interactions */
55361
55228
 
55362
55229
 
55363
55230
 
@@ -56913,7 +56780,6 @@ var ModalContent_rest = undefined && undefined.__rest || function (s, e) {
56913
56780
  }
56914
56781
  return t;
56915
56782
  };
56916
- /* eslint-disable eqeqeq */
56917
56783
 
56918
56784
 
56919
56785
 
@@ -56922,7 +56788,6 @@ var ModalContent_rest = undefined && undefined.__rest || function (s, e) {
56922
56788
 
56923
56789
 
56924
56790
 
56925
- // eslint-disable-next-line max-len
56926
56791
 
56927
56792
 
56928
56793
 
@@ -57212,7 +57077,6 @@ class ModalContent extends BaseComponent {
57212
57077
  onClick: maskClosable ? this.onMaskClick : null,
57213
57078
  onMouseUp: maskClosable ? this.onMaskMouseUp : null
57214
57079
  }, this.props.contentExtraProps), this.getDialogElement()));
57215
- // eslint-disable-next-line max-len
57216
57080
  return containerContext && containerContext.Provider ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(containerContext.Provider, {
57217
57081
  value: containerContext.value
57218
57082
  }, elem) : elem;
@@ -57242,8 +57106,6 @@ var ConfirmModal_rest = undefined && undefined.__rest || function (s, e) {
57242
57106
  }
57243
57107
  return t;
57244
57108
  };
57245
- /* eslint-disable react/destructuring-assignment */
57246
- /* eslint-disable eqeqeq */
57247
57109
 
57248
57110
 
57249
57111
 
@@ -57345,7 +57207,6 @@ function confirm_confirm(props) {
57345
57207
  }
57346
57208
  for (let i = 0; i < destroyFns.length; i++) {
57347
57209
  const fn = destroyFns[i];
57348
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
57349
57210
  if (fn === close) {
57350
57211
  destroyFns.splice(i, 1);
57351
57212
  break;
@@ -57427,7 +57288,6 @@ var HookModal_rest = undefined && undefined.__rest || function (s, e) {
57427
57288
  };
57428
57289
 
57429
57290
 
57430
- // eslint-disable-next-line max-len
57431
57291
  const HookModal = (_a, ref) => {
57432
57292
  var {
57433
57293
  afterClose,
@@ -57472,12 +57332,10 @@ function usePatchElement() {
57472
57332
  }
57473
57333
  function useModal() {
57474
57334
  const [elements, patchElement] = usePatchElement();
57475
- // eslint-disable-next-line max-len
57476
57335
  function getConfirmFunc(withFunc) {
57477
57336
  return function hookConfirm(config) {
57478
57337
  useModal_uuid += 1;
57479
57338
  const modalRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef();
57480
- // eslint-disable-next-line prefer-const
57481
57339
  let closeFunc;
57482
57340
  const modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(useModal_HookModal, {
57483
57341
  key: `semi-modal-${useModal_uuid}`,
@@ -57520,7 +57378,6 @@ var Modal_rest = undefined && undefined.__rest || function (s, e) {
57520
57378
  }
57521
57379
  return t;
57522
57380
  };
57523
- /* eslint-disable react/destructuring-assignment, prefer-const, @typescript-eslint/no-unused-vars */
57524
57381
 
57525
57382
 
57526
57383
 
@@ -59363,7 +59220,6 @@ var inputGroup_rest = undefined && undefined.__rest || function (s, e) {
59363
59220
  }
59364
59221
  return t;
59365
59222
  };
59366
- /* eslint-disable max-len */
59367
59223
 
59368
59224
 
59369
59225
 
@@ -59375,7 +59231,6 @@ const inputGroup_prefixCls = input_constants_cssClasses.PREFIX;
59375
59231
  const inputGroup_sizeSet = input_constants_strings.SIZE;
59376
59232
  class inputGroup extends BaseComponent {
59377
59233
  renderGroupWithLabel(inner) {
59378
- // eslint-disable-next-line no-unused-vars
59379
59234
  const _a = this.props,
59380
59235
  {
59381
59236
  size,
@@ -59628,7 +59483,6 @@ class TextAreaFoundation extends foundation {
59628
59483
  init() {
59629
59484
  this.setInitValue();
59630
59485
  }
59631
- // eslint-disable-next-line
59632
59486
  destroy() {}
59633
59487
  setInitValue() {
59634
59488
  const {
@@ -59700,7 +59554,6 @@ class TextAreaFoundation extends foundation {
59700
59554
  if (isNumber_default()(maxLength) && maxLength >= 0 && isFunction_default()(getValueLength) && isString_default()(value)) {
59701
59555
  const valueLength = getValueLength(value);
59702
59556
  if (valueLength > maxLength) {
59703
- // eslint-disable-next-line max-len
59704
59557
  console.warn('[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit');
59705
59558
  const truncatedValue = this.handleTruncateValue(value, maxLength);
59706
59559
  return truncatedValue;
@@ -59813,7 +59666,6 @@ var textarea_rest = undefined && undefined.__rest || function (s, e) {
59813
59666
  }
59814
59667
  return t;
59815
59668
  };
59816
- /* eslint-disable no-unused-vars */
59817
59669
 
59818
59670
 
59819
59671
 
@@ -60145,9 +59997,6 @@ function minus(num1, num2) {
60145
59997
 
60146
59998
 
60147
59999
 
60148
- /* eslint-disable max-len */
60149
- /* eslint-disable no-param-reassign */
60150
- /* eslint-disable eqeqeq */
60151
60000
 
60152
60001
 
60153
60002
 
@@ -60274,7 +60123,6 @@ class InputNumberFoundation extends foundation {
60274
60123
  const dotBeginStr = dotIndex > -1 ? valueAfterParser.slice(dotIndex) : '';
60275
60124
  formattedNum += dotBeginStr;
60276
60125
  } else if (precLength < lengthAfterDot) {
60277
- // eslint-disable-next-line max-depth
60278
60126
  for (let i = 0; i < lengthAfterDot - precLength; i++) {
60279
60127
  formattedNum += '0';
60280
60128
  }
@@ -60342,7 +60190,6 @@ class InputNumberFoundation extends foundation {
60342
60190
  }
60343
60191
 
60344
60192
  if (willSetNum != null) {
60345
- // eslint-disable-next-line max-depth
60346
60193
  if (!this._isControlledComponent('value')) {
60347
60194
  this._adapter.setNumber(willSetNum);
60348
60195
  }
@@ -60702,11 +60549,6 @@ var inputNumber_rest = undefined && undefined.__rest || function (s, e) {
60702
60549
  return t;
60703
60550
  };
60704
60551
  /* eslint-disable jsx-a11y/no-static-element-interactions */
60705
- /* eslint-disable @typescript-eslint/no-unused-vars */
60706
- /* eslint-disable no-unused-vars */
60707
- /* eslint-disable max-depth */
60708
- /* eslint-disable react/no-did-update-set-state */
60709
- /* eslint-disable max-len */
60710
60552
 
60711
60553
 
60712
60554
 
@@ -61211,9 +61053,7 @@ const DEFAULT_TOGGLE_ICON = {
61211
61053
  class NavItem {
61212
61054
  constructor() {
61213
61055
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
61214
- // eslint-disable-next-line eqeqeq
61215
61056
  if (options == null || typeof options !== 'object') {
61216
- // eslint-disable-next-line no-param-reassign
61217
61057
  options = {
61218
61058
  text: options,
61219
61059
  itemKey: options,
@@ -61246,8 +61086,6 @@ class NavItem {
61246
61086
  }
61247
61087
  ;// CONCATENATED MODULE: ../semi-foundation/navigation/foundation.ts
61248
61088
 
61249
- /* eslint-disable max-depth */
61250
- /* eslint-disable max-len */
61251
61089
 
61252
61090
 
61253
61091
 
@@ -61405,7 +61243,7 @@ class NavigationFoundation extends foundation {
61405
61243
  }
61406
61244
  return [...willOpenKeySet];
61407
61245
  }
61408
- destroy() {} // eslint-disable-line
61246
+ destroy() {}
61409
61247
  selectLevelZeroParentKeys(itemKeysMap) {
61410
61248
  const _itemKeysMap = isNullOrUndefined(itemKeysMap) ? this.getState('itemKeysMap') : itemKeysMap;
61411
61249
  // console.log(itemKeysMap);
@@ -61495,7 +61333,7 @@ class SubNavFoundation extends foundation {
61495
61333
  // this.log('invoke SubNavFoundation init()');
61496
61334
  this._timer = null;
61497
61335
  }
61498
- destroy() {} // eslint-disable-line
61336
+ destroy() {}
61499
61337
  clearDelayTimer() {
61500
61338
  if (this._timer) {
61501
61339
  clearTimeout(this._timer);
@@ -61503,7 +61341,6 @@ class SubNavFoundation extends foundation {
61503
61341
  }
61504
61342
  }
61505
61343
  isValidKey(itemKey) {
61506
- // eslint-disable-next-line eqeqeq
61507
61344
  return itemKey != null && (typeof itemKey === 'number' || typeof itemKey === 'string');
61508
61345
  }
61509
61346
  handleDropdownVisibleChange(visible) {
@@ -61590,7 +61427,6 @@ class itemFoundation_ItemFoundation extends foundation {
61590
61427
  this._mounted = false;
61591
61428
  }
61592
61429
  isValidKey(itemKey) {
61593
- // eslint-disable-next-line eqeqeq
61594
61430
  return itemKey != null && (typeof itemKey === 'string' || typeof itemKey === 'number');
61595
61431
  }
61596
61432
  handleClick(e) {
@@ -61659,8 +61495,6 @@ const NavContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_rea
61659
61495
  ;// CONCATENATED MODULE: ./navigation/Item.tsx
61660
61496
 
61661
61497
 
61662
- /* eslint-disable max-len */
61663
- /* eslint-disable no-nested-ternary */
61664
61498
 
61665
61499
 
61666
61500
 
@@ -61923,8 +61757,6 @@ Item_NavItem.defaultProps = {
61923
61757
  ;// CONCATENATED MODULE: ./navigation/SubNav.tsx
61924
61758
 
61925
61759
 
61926
- /* eslint-disable max-len */
61927
- /* eslint-disable no-nested-ternary */
61928
61760
 
61929
61761
 
61930
61762
 
@@ -62482,7 +62314,6 @@ var navigation_rest = undefined && undefined.__rest || function (s, e) {
62482
62314
  }
62483
62315
  return t;
62484
62316
  };
62485
- /* eslint-disable max-lines-per-function */
62486
62317
 
62487
62318
 
62488
62319
 
@@ -62855,7 +62686,6 @@ Nav.defaultProps = {
62855
62686
 
62856
62687
  /* harmony default export */ const navigation_0 = (Nav);
62857
62688
  ;// CONCATENATED MODULE: ../semi-foundation/notification/notificationListFoundation.ts
62858
- /* eslint-disable no-useless-constructor */
62859
62689
 
62860
62690
  class NotificationListFoundation extends foundation {
62861
62691
  addNotice(opts) {
@@ -62963,7 +62793,6 @@ var notice_rest = undefined && undefined.__rest || function (s, e) {
62963
62793
  }
62964
62794
  return t;
62965
62795
  };
62966
- /* eslint-disable no-unreachable */
62967
62796
 
62968
62797
 
62969
62798
 
@@ -63084,39 +62913,35 @@ class Notice extends BaseComponent {
63084
62913
  [`${notice_prefixCls}-rtl`]: direction === 'rtl'
63085
62914
  });
63086
62915
  const titleID = getUuidShort({});
63087
- return (
63088
- /*#__PURE__*/
63089
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions
63090
- external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
63091
- className: wrapper,
63092
- style: style,
63093
- onMouseEnter: this.clearCloseTimer,
63094
- onMouseLeave: this.startCloseTimer,
63095
- onClick: this.notifyClick,
63096
- "aria-labelledby": titleID,
63097
- role: 'alert',
63098
- onAnimationEnd: this.props.onAnimationEnd,
63099
- onAnimationStart: this.props.onAnimationStart
63100
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", null, this.renderTypeIcon()), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
63101
- className: `${notice_prefixCls}-inner`
63102
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
63103
- className: `${notice_prefixCls}-content-wrapper`
63104
- }, title ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
63105
- id: titleID,
63106
- className: `${notice_prefixCls}-title`,
63107
- "x-semi-prop": "title"
63108
- }, title) : '', content ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
63109
- className: `${notice_prefixCls}-content`,
63110
- "x-semi-prop": "content"
63111
- }, content) : ''), showClose && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(iconButton_0, {
63112
- className: `${notice_prefixCls}-icon-close`,
63113
- type: "tertiary",
63114
- icon: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconClose, null),
63115
- theme: "borderless",
63116
- size: "small",
63117
- onClick: this.close
63118
- })))
63119
- );
62916
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
62917
+ className: wrapper,
62918
+ style: style,
62919
+ onMouseEnter: this.clearCloseTimer,
62920
+ onMouseLeave: this.startCloseTimer,
62921
+ onClick: this.notifyClick,
62922
+ "aria-labelledby": titleID,
62923
+ role: 'alert',
62924
+ onAnimationEnd: this.props.onAnimationEnd,
62925
+ onAnimationStart: this.props.onAnimationStart
62926
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", null, this.renderTypeIcon()), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
62927
+ className: `${notice_prefixCls}-inner`
62928
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
62929
+ className: `${notice_prefixCls}-content-wrapper`
62930
+ }, title ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
62931
+ id: titleID,
62932
+ className: `${notice_prefixCls}-title`,
62933
+ "x-semi-prop": "title"
62934
+ }, title) : '', content ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
62935
+ className: `${notice_prefixCls}-content`,
62936
+ "x-semi-prop": "content"
62937
+ }, content) : ''), showClose && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(iconButton_0, {
62938
+ className: `${notice_prefixCls}-icon-close`,
62939
+ type: "tertiary",
62940
+ icon: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconClose, null),
62941
+ theme: "borderless",
62942
+ size: "small",
62943
+ onClick: this.close
62944
+ })));
63120
62945
  }
63121
62946
  }
63122
62947
  Notice.contextType = context;
@@ -63241,6 +63066,7 @@ function useNotification_usePatchElement() {
63241
63066
  const pos = obj[0];
63242
63067
  const notices = obj[1];
63243
63068
  // @ts-ignore
63069
+ // eslint-disable-next-line react/no-unknown-property
63244
63070
  return Array.isArray(notices) && notices.length ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
63245
63071
  key: pos,
63246
63072
  className: classnames_default()(notification_constants_cssClasses.LIST),
@@ -63258,7 +63084,6 @@ function useNotification() {
63258
63084
  const mergeConfig = Object.assign(Object.assign({}, config), {
63259
63085
  id
63260
63086
  });
63261
- // eslint-disable-next-line prefer-const
63262
63087
  let closeFunc;
63263
63088
  const ref = ele => {
63264
63089
  noticeRef.set(id, ele);
@@ -63792,7 +63617,6 @@ var overflowList = __webpack_require__("iETl");
63792
63617
 
63793
63618
 
63794
63619
 
63795
- /* eslint-disable arrow-body-style */
63796
63620
 
63797
63621
 
63798
63622
 
@@ -66114,8 +65938,6 @@ const pagination_constants_numbers = {
66114
65938
  };
66115
65939
 
66116
65940
  ;// CONCATENATED MODULE: ../semi-foundation/pagination/foundation.ts
66117
- /* eslint-disable max-len */
66118
- /* eslint-disable no-param-reassign */
66119
65941
 
66120
65942
 
66121
65943
  class PaginationFoundation extends foundation {
@@ -66214,6 +66036,22 @@ class PaginationFoundation extends foundation {
66214
66036
  this._adapter.setCurrentPage(targetPageIndex);
66215
66037
  this._adapter.updatePageSize(pageSize);
66216
66038
  }
66039
+ updateAllPageNumbers(total, pageSize) {
66040
+ // only need to update in small size
66041
+ const {
66042
+ size,
66043
+ hoverShowPageSelect,
66044
+ disabled
66045
+ } = this.getProps();
66046
+ if (size !== 'small' || !hoverShowPageSelect || disabled) {
66047
+ return;
66048
+ } else {
66049
+ const pageNumbers = Array.from({
66050
+ length: Math.ceil(total / pageSize)
66051
+ }, (v, i) => i + 1);
66052
+ this._adapter.updateAllPageNumbers(pageNumbers);
66053
+ }
66054
+ }
66217
66055
  goPrev() {
66218
66056
  const {
66219
66057
  currentPage
@@ -66343,7 +66181,6 @@ class PaginationFoundation extends foundation {
66343
66181
  this._adapter.notifyChange(newCurrentPage, newPageSize);
66344
66182
  }
66345
66183
  // TODO handle tab/enter events
66346
- // eslint-disable-next-line @typescript-eslint/no-empty-function
66347
66184
  handleKeyDown() {}
66348
66185
  // If pageSize is not in the Opts array, insert it
66349
66186
  pageSizeInOpts() {
@@ -66417,8 +66254,6 @@ var foundation_rest = undefined && undefined.__rest || function (s, e) {
66417
66254
  }
66418
66255
  return t;
66419
66256
  };
66420
- /* argus-disable unPkgSensitiveInfo */
66421
- /* eslint-disable max-len */
66422
66257
 
66423
66258
 
66424
66259
 
@@ -66429,7 +66264,6 @@ class SelectFoundation extends foundation {
66429
66264
  constructor(adapter) {
66430
66265
  super(Object.assign({}, adapter));
66431
66266
  // keyboard event listner
66432
- // eslint-disable-next-line @typescript-eslint/member-ordering
66433
66267
  this._keydownHandler = null;
66434
66268
  }
66435
66269
  init() {
@@ -67298,7 +67132,6 @@ class SelectFoundation extends foundation {
67298
67132
  index = index - 1;
67299
67133
  targetLabel = keys[index];
67300
67134
  targetItem = selections.get(targetLabel);
67301
- // eslint-disable-next-line
67302
67135
  if (index == 0 && targetItem.disabled) {
67303
67136
  isAllDisabled = true;
67304
67137
  }
@@ -67338,7 +67171,6 @@ class SelectFoundation extends foundation {
67338
67171
  }
67339
67172
  }
67340
67173
  _removeInternalKey(option) {
67341
- // eslint-disable-next-line
67342
67174
  let newOption = Object.assign({}, option);
67343
67175
  delete newOption._parentGroup;
67344
67176
  delete newOption._show;
@@ -67748,7 +67580,6 @@ const getOptionsFromGroup = selectChildren => {
67748
67580
  _show: false
67749
67581
  };
67750
67582
  // avoid null
67751
- // eslint-disable-next-line max-len
67752
67583
  let childNodes = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.toArray(selectChildren);
67753
67584
  childNodes = childNodes.filter(childNode => childNode && childNode.props);
67754
67585
  let type = '';
@@ -67763,7 +67594,6 @@ const getOptionsFromGroup = selectChildren => {
67763
67594
  } else if (child.type.isSelectOptionGroup) {
67764
67595
  type = 'group';
67765
67596
  // Avoid saving children (reactNode) by... removing other props from the group except children, causing performance problems
67766
- // eslint-disable-next-line prefer-const
67767
67597
  let _a = child.props,
67768
67598
  {
67769
67599
  children
@@ -67818,7 +67648,6 @@ var select_option_rest = undefined && undefined.__rest || function (s, e) {
67818
67648
  }
67819
67649
  return t;
67820
67650
  };
67821
- /* eslint-disable max-len */
67822
67651
 
67823
67652
 
67824
67653
 
@@ -68028,8 +67857,6 @@ var select_rest = undefined && undefined.__rest || function (s, e) {
68028
67857
  }
68029
67858
  return t;
68030
67859
  };
68031
- /* eslint-disable max-len */
68032
- /* eslint-disable max-lines-per-function */
68033
67860
 
68034
67861
 
68035
67862
 
@@ -68171,7 +67998,6 @@ class Select extends BaseComponent {
68171
67998
  focusIndex
68172
67999
  });
68173
68000
  },
68174
- // eslint-disable-next-line @typescript-eslint/no-empty-function
68175
68001
  scrollToFocusOption: () => {}
68176
68002
  };
68177
68003
  const filterAdapter = {
@@ -68205,7 +68031,6 @@ class Select extends BaseComponent {
68205
68031
  const clickOutsideHandler = e => {
68206
68032
  const optionInstance = this.optionsRef && this.optionsRef.current;
68207
68033
  const triggerDom = this.triggerRef && this.triggerRef.current;
68208
- // eslint-disable-next-line react/no-find-dom-node
68209
68034
  const optionsDom = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(optionInstance);
68210
68035
  // let isInPanel = optionsDom && optionsDom.contains(e.target);
68211
68036
  // let isInTrigger = triggerDom && triggerDom.contains(e.target);
@@ -68378,14 +68203,12 @@ class Select extends BaseComponent {
68378
68203
  return this.state.isFocusInContainer;
68379
68204
  },
68380
68205
  updateScrollTop: index => {
68381
- // eslint-disable-next-line max-len
68382
68206
  let optionClassName = `.${select_prefixcls}-option-selected`;
68383
68207
  if (index !== undefined) {
68384
68208
  optionClassName = `.${select_prefixcls}-option:nth-child(${index})`;
68385
68209
  }
68386
68210
  let destNode = document.querySelector(`#${select_prefixcls}-${this.selectOptionListID} ${optionClassName}`);
68387
68211
  if (Array.isArray(destNode)) {
68388
- // eslint-disable-next-line prefer-destructuring
68389
68212
  destNode = destNode[0];
68390
68213
  }
68391
68214
  if (destNode) {
@@ -69063,10 +68886,9 @@ class Select extends BaseComponent {
69063
68886
  triggerRender,
69064
68887
  arrowIcon,
69065
68888
  clearIcon,
69066
- borderless,
69067
- showArrowInBorderless
68889
+ borderless
69068
68890
  } = _a,
69069
- rest = select_rest(_a, ["disabled", "multiple", "filter", "style", "id", "size", "className", "validateStatus", "showArrow", "suffix", "prefix", "insetLabel", "placeholder", "triggerRender", "arrowIcon", "clearIcon", "borderless", "showArrowInBorderless"]);
68891
+ rest = select_rest(_a, ["disabled", "multiple", "filter", "style", "id", "size", "className", "validateStatus", "showArrow", "suffix", "prefix", "insetLabel", "placeholder", "triggerRender", "arrowIcon", "clearIcon", "borderless"]);
69070
68892
  const {
69071
68893
  selections,
69072
68894
  isOpen,
@@ -69081,7 +68903,6 @@ class Select extends BaseComponent {
69081
68903
  const filterable = Boolean(filter); // filter(boolean || function)
69082
68904
  const selectionCls = useCustomTrigger ? classnames_default()(className) : classnames_default()(select_prefixcls, className, {
69083
68905
  [`${select_prefixcls}-borderless`]: borderless,
69084
- [`${select_prefixcls}-borderless-arrow`]: showArrowInBorderless,
69085
68906
  [`${select_prefixcls}-open`]: isOpen,
69086
68907
  [`${select_prefixcls}-focus`]: isFocus,
69087
68908
  [`${select_prefixcls}-disabled`]: disabled,
@@ -69348,8 +69169,7 @@ Select.defaultProps = {
69348
69169
  showRestTagsPopover: false,
69349
69170
  restTagsPopoverProps: {},
69350
69171
  expandRestTagsOnClick: false,
69351
- ellipsisTrigger: false,
69352
- showArrowInBorderless: false
69172
+ ellipsisTrigger: false
69353
69173
  // Radio selection is different from the default renderSelectedItem for multiple selection, so it is not declared here
69354
69174
  // renderSelectedItem: (optionNode) => optionNode.label,
69355
69175
  // The default creator rendering is related to i18, so it is not declared here
@@ -69367,7 +69187,6 @@ var pagination_rest = undefined && undefined.__rest || function (s, e) {
69367
69187
  }
69368
69188
  return t;
69369
69189
  };
69370
- /* eslint-disable max-len */
69371
69190
  /* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
69372
69191
 
69373
69192
 
@@ -69392,18 +69211,25 @@ const {
69392
69211
  class Pagination extends BaseComponent {
69393
69212
  constructor(props) {
69394
69213
  super(props);
69214
+ const total = props.total;
69215
+ const pageSize = props.pageSize || props.pageSizeOpts[0] || pagination_constants_numbers.DEFAULT_PAGE_SIZE; // Use pageSize first, use the first of pageSizeOpts when not, use the default value when none
69216
+ const shouldFillAllNumber = props.size === 'small' && props.hoverShowPageSelect && !props.disabled;
69395
69217
  this.state = {
69396
- total: props.total,
69218
+ total,
69397
69219
  showTotal: props.showTotal,
69398
69220
  currentPage: props.currentPage || props.defaultCurrentPage,
69399
- pageSize: props.pageSize || props.pageSizeOpts[0] || pagination_constants_numbers.DEFAULT_PAGE_SIZE,
69221
+ pageSize,
69400
69222
  pageList: [],
69401
69223
  prevDisabled: false,
69402
69224
  nextDisabled: false,
69403
69225
  restLeftPageList: [],
69404
69226
  restRightPageList: [],
69405
- quickJumpPage: ''
69227
+ quickJumpPage: '',
69228
+ allPageNumbers: shouldFillAllNumber ? Array.from({
69229
+ length: Math.ceil(total / pageSize)
69230
+ }, (v, i) => i + 1) : [] // only need to count in smallPage mode, when props.size = small
69406
69231
  };
69232
+
69407
69233
  this.foundation = new pagination_foundation(this.adapter);
69408
69234
  this.renderDefaultPage = this.renderDefaultPage.bind(this);
69409
69235
  this.renderSmallPage = this.renderSmallPage.bind(this);
@@ -69438,7 +69264,9 @@ class Pagination extends BaseComponent {
69438
69264
  updateQuickJumpPage: quickJumpPage => this.setState({
69439
69265
  quickJumpPage
69440
69266
  }),
69441
- // updateRestPageList: () => {},
69267
+ updateAllPageNumbers: allPageNumbers => this.setState({
69268
+ allPageNumbers
69269
+ }),
69442
69270
  setCurrentPage: pageIndex => {
69443
69271
  this.setState({
69444
69272
  currentPage: pageIndex
@@ -69474,6 +69302,7 @@ class Pagination extends BaseComponent {
69474
69302
  pageSize: this.props.pageSize
69475
69303
  };
69476
69304
  let pagerHasChanged = false;
69305
+ let allPageNumberNeedUpdate = false;
69477
69306
  if (prevProps.currentPage !== this.props.currentPage) {
69478
69307
  pagerHasChanged = true;
69479
69308
  // this.foundation.updatePage(this.props.currentPage);
@@ -69481,13 +69310,18 @@ class Pagination extends BaseComponent {
69481
69310
 
69482
69311
  if (prevProps.total !== this.props.total) {
69483
69312
  pagerHasChanged = true;
69313
+ allPageNumberNeedUpdate = true;
69484
69314
  }
69485
69315
  if (prevProps.pageSize !== this.props.pageSize) {
69486
69316
  pagerHasChanged = true;
69317
+ allPageNumberNeedUpdate = true;
69487
69318
  }
69488
69319
  if (pagerHasChanged) {
69489
69320
  this.foundation.updatePage(pagerProps.currentPage, pagerProps.total, pagerProps.pageSize);
69490
69321
  }
69322
+ if (allPageNumberNeedUpdate) {
69323
+ this.foundation.updateAllPageNumbers(pagerProps.total, pagerProps.pageSize);
69324
+ }
69491
69325
  }
69492
69326
  renderPrevBtn() {
69493
69327
  const {
@@ -69690,6 +69524,13 @@ class Pagination extends BaseComponent {
69690
69524
  }, row)
69691
69525
  );
69692
69526
  }
69527
+ renderSmallPageSelect(content) {
69528
+ const allPageNumbers = this.state.allPageNumbers;
69529
+ const pageList = this.renderRestPageList(allPageNumbers);
69530
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(popover_0, {
69531
+ content: pageList
69532
+ }, content);
69533
+ }
69693
69534
  renderSmallPage(locale) {
69694
69535
  const _a = this.props,
69695
69536
  {
@@ -69713,24 +69554,18 @@ class Pagination extends BaseComponent {
69713
69554
  if (totalPageNum < 2 && hideOnSinglePage && !showSizeChanger) {
69714
69555
  return null;
69715
69556
  }
69716
- const pageNumbers = Array.from({
69717
- length: Math.ceil(total / pageSize)
69718
- }, (v, i) => i + 1);
69719
- const pageList = this.renderRestPageList(pageNumbers);
69720
69557
  const pageCls = classnames_default()({
69721
69558
  [`${pagination_prefixCls}-item`]: true,
69722
69559
  [`${pagination_prefixCls}-item-small`]: true,
69723
69560
  [`${pagination_prefixCls}-item-all-disabled`]: disabled
69724
69561
  });
69725
- const page = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
69562
+ const content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
69726
69563
  className: pageCls
69727
69564
  }, currentPage, "/", totalPageNum, " ");
69728
69565
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
69729
69566
  className: paginationCls,
69730
69567
  style: style
69731
- }, this.getDataAttr(rest)), this.renderPrevBtn(), hoverShowPageSelect && !disabled ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(popover_0, {
69732
- content: pageList
69733
- }, page) : page, this.renderNextBtn(), this.renderQuickJump(locale));
69568
+ }, this.getDataAttr(rest)), this.renderPrevBtn(), hoverShowPageSelect && !disabled ? this.renderSmallPageSelect(content) : content, this.renderNextBtn(), this.renderQuickJump(locale));
69734
69569
  }
69735
69570
  renderDefaultPage(locale) {
69736
69571
  const {
@@ -69831,7 +69666,6 @@ const popconfirm_constants_numbers = {
69831
69666
 
69832
69667
  ;// CONCATENATED MODULE: ../semi-foundation/popconfirm/popconfirmFoundation.ts
69833
69668
 
69834
- /* eslint-disable @typescript-eslint/no-empty-function */
69835
69669
 
69836
69670
 
69837
69671
  class PopConfirmFoundation extends foundation {
@@ -69906,7 +69740,6 @@ var popconfirm_rest = undefined && undefined.__rest || function (s, e) {
69906
69740
  }
69907
69741
  return t;
69908
69742
  };
69909
- /* eslint-disable max-len */
69910
69743
 
69911
69744
 
69912
69745
 
@@ -70419,7 +70252,6 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
70419
70252
  }
70420
70253
  if (prevProps.percent !== this.props.percent) {
70421
70254
  if (!this.props.motion) {
70422
- // eslint-disable-next-line
70423
70255
  this.setState({
70424
70256
  percentNumber: this.props.percent
70425
70257
  });
@@ -70788,7 +70620,6 @@ class RadioGroupFoundation extends foundation {
70788
70620
  _setValue(value) {
70789
70621
  this._adapter.setValue(value);
70790
70622
  }
70791
- // eslint-disable-next-line @typescript-eslint/no-empty-function
70792
70623
  destroy() {}
70793
70624
  }
70794
70625
  ;// CONCATENATED MODULE: ../semi-foundation/radio/radioFoundation.ts
@@ -70878,7 +70709,6 @@ class RadioInnerFoundation extends foundation {
70878
70709
  this._adapter.notifyChange(cbValue);
70879
70710
  }
70880
70711
  }
70881
- // eslint-disable-next-line @typescript-eslint/no-empty-function
70882
70712
  destroy() {}
70883
70713
  }
70884
70714
  ;// CONCATENATED MODULE: ./radio/context.ts
@@ -71023,7 +70853,6 @@ var radio_rest = undefined && undefined.__rest || function (s, e) {
71023
70853
  }
71024
70854
  return t;
71025
70855
  };
71026
- /* eslint-disable prefer-destructuring */
71027
70856
 
71028
70857
 
71029
70858
 
@@ -71472,7 +71301,6 @@ const rating_constants_strings = {
71472
71301
  // EXTERNAL MODULE: ../semi-foundation/rating/rating.scss
71473
71302
  var rating = __webpack_require__("FII7");
71474
71303
  ;// CONCATENATED MODULE: ../semi-foundation/rating/foundation.ts
71475
- /* eslint-disable no-param-reassign */
71476
71304
 
71477
71305
 
71478
71306
  class RatingFoundation extends foundation {
@@ -72082,7 +71910,6 @@ class Rating extends BaseComponent {
72082
71910
  },
72083
71911
  getStarDOM: index => {
72084
71912
  const instance = this.stars && this.stars[index];
72085
- // eslint-disable-next-line react/no-find-dom-node
72086
71913
  return external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(instance);
72087
71914
  },
72088
71915
  notifyHoverChange: (hoverValue, clearedValue) => {
@@ -72481,7 +72308,6 @@ var sideSheet_rest = undefined && undefined.__rest || function (s, e) {
72481
72308
  }
72482
72309
  return t;
72483
72310
  };
72484
- /* eslint-disable no-nested-ternary */
72485
72311
 
72486
72312
 
72487
72313
 
@@ -72776,9 +72602,6 @@ const touchEventPolyfill = (touch, touchEvent) => {
72776
72602
  };
72777
72603
  /* harmony default export */ const touchPolyfill = (touchEventPolyfill);
72778
72604
  ;// CONCATENATED MODULE: ../semi-foundation/slider/foundation.ts
72779
- /* eslint-disable no-param-reassign */
72780
- /* eslint-disable max-len */
72781
- /* eslint-disable no-nested-ternary */
72782
72605
 
72783
72606
 
72784
72607
 
@@ -72935,7 +72758,6 @@ class SliderFoundation extends foundation {
72935
72758
  startPos = vertical ? sliderY : sliderX;
72936
72759
  }
72937
72760
  // startPos = chooseMovePos === 'max' && isDrag ? currentPos[0] : startPos;
72938
- // eslint-disable-next-line one-var
72939
72761
  let endPos;
72940
72762
  if (vertical && verticalReverse) {
72941
72763
  endPos = sliderY;
@@ -72991,8 +72813,6 @@ class SliderFoundation extends foundation {
72991
72813
  } else {
72992
72814
  stepValue = (pos - startPos) / len * (max - min) + min;
72993
72815
  }
72994
- // debugger
72995
- // eslint-disable-next-line one-var
72996
72816
  let compareValue;
72997
72817
  if (range) {
72998
72818
  compareValue = isMin ? currentValue[0] : currentValue[1];
@@ -73395,7 +73215,6 @@ class SliderFoundation extends foundation {
73395
73215
  handlePrevent(event);
73396
73216
  }
73397
73217
  };
73398
- // eslint-disable-next-line @typescript-eslint/no-empty-function
73399
73218
  this.onFocus = (e, handler) => {
73400
73219
  handlePrevent(e);
73401
73220
  const {
@@ -73544,8 +73363,6 @@ var slider_rest = undefined && undefined.__rest || function (s, e) {
73544
73363
  }
73545
73364
  return t;
73546
73365
  };
73547
- /* eslint-disable max-lines-per-function */
73548
- /* eslint-disable react/no-find-dom-node */
73549
73366
 
73550
73367
 
73551
73368
 
@@ -73866,7 +73683,6 @@ class Slider extends BaseComponent {
73866
73683
  value = this.props.defaultValue;
73867
73684
  }
73868
73685
  this.state = {
73869
- // eslint-disable-next-line no-nested-ternary
73870
73686
  currentValue: value ? value : this.props.range ? [0, 0] : 0,
73871
73687
  min: this.props.min || 0,
73872
73688
  max: this.props.max || 0,
@@ -74942,7 +74758,6 @@ class SwitchFoundation extends foundation {
74942
74758
  this._adapter.notifyChange(checked, e);
74943
74759
  }
74944
74760
  }
74945
- // eslint-disable-next-line @typescript-eslint/no-empty-function
74946
74761
  destroy() {}
74947
74762
  }
74948
74763
  ;// CONCATENATED MODULE: ../semi-foundation/switch/constants.ts
@@ -74978,7 +74793,6 @@ var switch_rest = undefined && undefined.__rest || function (s, e) {
74978
74793
  }
74979
74794
  return t;
74980
74795
  };
74981
- /* eslint-disable max-len */
74982
74796
 
74983
74797
 
74984
74798
 
@@ -75153,7 +74967,6 @@ var filter_default = /*#__PURE__*/__webpack_require__.n(lodash_filter);
75153
74967
  var isEqualWith = __webpack_require__("6OdC");
75154
74968
  var isEqualWith_default = /*#__PURE__*/__webpack_require__.n(isEqualWith);
75155
74969
  ;// CONCATENATED MODULE: ../semi-foundation/table/constants.ts
75156
- /* eslint-disable max-len */
75157
74970
 
75158
74971
  const table_constants_cssClasses = {
75159
74972
  PREFIX: `${BASE_CLASS_PREFIX}-table`,
@@ -75316,9 +75129,6 @@ class Logger {
75316
75129
 
75317
75130
 
75318
75131
 
75319
- /* eslint-disable max-len */
75320
- /* eslint-disable no-param-reassign */
75321
- /* eslint-disable eqeqeq */
75322
75132
 
75323
75133
 
75324
75134
 
@@ -75865,13 +75675,6 @@ function withOrderSort(fn) {
75865
75675
 
75866
75676
 
75867
75677
 
75868
- /* eslint-disable prefer-destructuring */
75869
- /* eslint-disable max-depth */
75870
- /* eslint-disable max-nested-callbacks */
75871
- /* eslint-disable max-len */
75872
- /* eslint-disable no-param-reassign */
75873
- /* eslint-disable eqeqeq */
75874
- /* eslint-disable @typescript-eslint/no-empty-function */
75875
75678
 
75876
75679
 
75877
75680
 
@@ -76686,7 +76489,6 @@ class TableFoundation extends foundation {
76686
76489
  toggleShowFilter(dataIndex, visible) {
76687
76490
  let filterObj = this.getQuery(dataIndex);
76688
76491
  const filterDropdownVisible = visible;
76689
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
76690
76492
  filterObj = Object.assign(Object.assign({}, filterObj), {
76691
76493
  filterDropdownVisible
76692
76494
  });
@@ -76886,7 +76688,6 @@ function getColumns(children) {
76886
76688
  }
76887
76689
  ;// CONCATENATED MODULE: ./table/table-context.ts
76888
76690
 
76889
- /* eslint-disable max-len */
76890
76691
 
76891
76692
  const TableContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({
76892
76693
  headWidths: [],
@@ -76944,7 +76745,6 @@ class TableSelectionCellFoundation extends foundation {
76944
76745
  }
76945
76746
  ;// CONCATENATED MODULE: ./table/ColumnSelection.tsx
76946
76747
 
76947
- /* eslint-disable max-len */
76948
76748
 
76949
76749
 
76950
76750
 
@@ -77018,7 +76818,6 @@ TableSelectionCell.defaultProps = {
77018
76818
  ;// CONCATENATED MODULE: ./table/TablePagination.tsx
77019
76819
 
77020
76820
 
77021
- /* eslint-disable max-len */
77022
76821
 
77023
76822
 
77024
76823
 
@@ -77056,8 +76855,6 @@ TablePagination.defaultProps = {
77056
76855
  };
77057
76856
  ;// CONCATENATED MODULE: ./table/ColumnFilter.tsx
77058
76857
 
77059
- /* eslint-disable no-nested-ternary */
77060
- /* eslint-disable eqeqeq */
77061
76858
 
77062
76859
 
77063
76860
 
@@ -77359,7 +77156,6 @@ class ColGroup extends (external_root_React_commonjs2_react_commonjs_react_amd_r
77359
77156
  prefixCls,
77360
77157
  components
77361
77158
  } = this.props;
77362
- // eslint-disable-next-line @typescript-eslint/no-shadow
77363
77159
  const ColGroup = get_default()(components, 'colgroup.wrapper', 'colgroup');
77364
77160
  const Col = get_default()(components, 'colgroup.col', 'col');
77365
77161
  const cols = flattenColumns(columns).map((column, idx) => {
@@ -77410,7 +77206,6 @@ var TableHeaderRow_rest = undefined && undefined.__rest || function (s, e) {
77410
77206
  }
77411
77207
  return t;
77412
77208
  };
77413
- /* eslint-disable eqeqeq */
77414
77209
 
77415
77210
 
77416
77211
 
@@ -77590,7 +77385,6 @@ TableHeaderRow.defaultProps = {
77590
77385
  ;// CONCATENATED MODULE: ./table/TableHeader.tsx
77591
77386
 
77592
77387
 
77593
- /* eslint-disable max-len */
77594
77388
 
77595
77389
 
77596
77390
 
@@ -77599,7 +77393,6 @@ TableHeaderRow.defaultProps = {
77599
77393
 
77600
77394
  function parseHeaderRows(columns) {
77601
77395
  const rows = [];
77602
- // eslint-disable-next-line @typescript-eslint/no-shadow
77603
77396
  function fillRowCells(columns, colIndex) {
77604
77397
  let parents = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
77605
77398
  let rowIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
@@ -77667,7 +77460,6 @@ function parseHeaderRows(columns) {
77667
77460
  for (let rowIndex = 0; rowIndex < rowCount; rowIndex += 1) {
77668
77461
  rows[rowIndex].forEach(cell => {
77669
77462
  if (!('rowSpan' in cell) && !cell.hasSubColumns) {
77670
- // eslint-disable-next-line no-param-reassign
77671
77463
  cell.rowSpan = rowCount - rowIndex;
77672
77464
  }
77673
77465
  });
@@ -77738,7 +77530,6 @@ TableHeader.defaultProps = {
77738
77530
  ;// CONCATENATED MODULE: ./table/HeadTable.tsx
77739
77531
 
77740
77532
 
77741
- /* eslint-disable max-len */
77742
77533
 
77743
77534
 
77744
77535
 
@@ -77869,7 +77660,6 @@ class TableBodyFoundation extends foundation {
77869
77660
  this._adapter.setCachedExpandBtnShouldInRow(cachedExpandBtnShouldInRow);
77870
77661
  if (!isObject_default()(newExpandRelatedProps) && !newExpandRelatedProps) {
77871
77662
  const expandRelatedProps = table_constants_strings.EXPAND_RELATED_PROPS;
77872
- // eslint-disable-next-line no-param-reassign
77873
77663
  newExpandRelatedProps = expandRelatedProps.map(key => get_default()(props, key, undefined));
77874
77664
  }
77875
77665
  this._adapter.setCachedExpandRelatedProps(newExpandRelatedProps);
@@ -78108,7 +77898,6 @@ function shallowEqualObjects(objA, objB) {
78108
77898
  }
78109
77899
  ;// CONCATENATED MODULE: ../semi-foundation/table/tableRowFoundation.ts
78110
77900
 
78111
- // eslint-disable-next-line max-len
78112
77901
  class TableRowFoundation extends foundation {
78113
77902
  handleClick(e) {
78114
77903
  const {
@@ -78143,8 +77932,6 @@ class TableCellFoundation extends foundation {
78143
77932
 
78144
77933
 
78145
77934
 
78146
- /* eslint-disable prefer-destructuring */
78147
- /* eslint-disable eqeqeq */
78148
77935
 
78149
77936
 
78150
77937
 
@@ -78328,7 +78115,6 @@ class TableCell extends BaseComponent {
78328
78115
  }
78329
78116
  text = render(text, record, index, renderOptions);
78330
78117
  if (isInvalidRenderCellText(text)) {
78331
- // eslint-disable-next-line no-param-reassign
78332
78118
  tdProps = text.props ? merge_default()(tdProps, text.props) : tdProps;
78333
78119
  colSpan = tdProps.colSpan;
78334
78120
  rowSpan = tdProps.rowSpan;
@@ -78510,8 +78296,6 @@ var BaseRow_rest = undefined && undefined.__rest || function (s, e) {
78510
78296
  }
78511
78297
  return t;
78512
78298
  };
78513
- /* eslint-disable max-len */
78514
- /* eslint-disable eqeqeq */
78515
78299
 
78516
78300
 
78517
78301
 
@@ -78833,7 +78617,6 @@ var ExpandedRow_rest = undefined && undefined.__rest || function (s, e) {
78833
78617
  }
78834
78618
  return t;
78835
78619
  };
78836
- /* eslint-disable max-len */
78837
78620
 
78838
78621
 
78839
78622
 
@@ -78877,7 +78660,6 @@ class TableExpandedRow extends external_root_React_commonjs2_react_commonjs_reac
78877
78660
  } else if ( /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(cell)) {
78878
78661
  children = cell;
78879
78662
  } else if (cell && Object.prototype.toString.call(cell) === '[object Object]') {
78880
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
78881
78663
  const _a = cell,
78882
78664
  {
78883
78665
  children: cellChildren,
@@ -78964,9 +78746,6 @@ var SectionRow_rest = undefined && undefined.__rest || function (s, e) {
78964
78746
  }
78965
78747
  return t;
78966
78748
  };
78967
- /* eslint-disable max-len */
78968
- /* eslint-disable @typescript-eslint/ban-types */
78969
- /* eslint-disable eqeqeq */
78970
78749
 
78971
78750
 
78972
78751
 
@@ -79152,9 +78931,6 @@ var Body_rest = undefined && undefined.__rest || function (s, e) {
79152
78931
  }
79153
78932
  return t;
79154
78933
  };
79155
- /* eslint-disable eqeqeq */
79156
- /* eslint-disable @typescript-eslint/member-ordering */
79157
- /* eslint-disable max-len */
79158
78934
 
79159
78935
 
79160
78936
 
@@ -79268,7 +79044,6 @@ class Body extends BaseComponent {
79268
79044
  flattenedColumns
79269
79045
  } = this.context;
79270
79046
  const virtualizedItem = get_default()(virtualizedData, [index], {});
79271
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
79272
79047
  const {
79273
79048
  key,
79274
79049
  parentKeys,
@@ -79287,7 +79062,6 @@ class Body extends BaseComponent {
79287
79062
  index,
79288
79063
  expandBtnShouldInRow
79289
79064
  });
79290
- // eslint-disable-next-line no-nested-ternary
79291
79065
  return sectionRow ? this.renderSectionRow(props) : expandedRow ? this.renderExpandedRow(props) : this.renderBaseRow(props);
79292
79066
  };
79293
79067
  // virtualized List innerElementType
@@ -79312,14 +79086,12 @@ class Body extends BaseComponent {
79312
79086
  children
79313
79087
  } = props,
79314
79088
  rest = Body_rest(props, ["children"]);
79315
- // eslint-disable-next-line react/no-this-in-sfc
79316
79089
  const {
79317
79090
  handleWheel,
79318
79091
  prefixCls,
79319
79092
  emptySlot,
79320
79093
  dataSource
79321
79094
  } = this.props;
79322
- // eslint-disable-next-line react/no-this-in-sfc
79323
79095
  const tableWidth = this.getVirtualizedRowWidth();
79324
79096
  const tableCls = classnames_default()(`${prefixCls}`, `${prefixCls}-fixed`);
79325
79097
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({}, rest, {
@@ -79333,7 +79105,6 @@ class Body extends BaseComponent {
79333
79105
  }
79334
79106
  },
79335
79107
  onScroll: function () {
79336
- // eslint-disable-next-line react/no-this-in-sfc
79337
79108
  _this.handleVirtualizedBodyScroll(...arguments);
79338
79109
  if (rest.onScroll) {
79339
79110
  rest.onScroll(...arguments);
@@ -79897,15 +79668,7 @@ var Table_rest = undefined && undefined.__rest || function (s, e) {
79897
79668
  }
79898
79669
  return t;
79899
79670
  };
79900
- /* eslint-disable no-nested-ternary */
79901
- /* eslint-disable prefer-const */
79902
- /* eslint-disable prefer-destructuring */
79903
- /* eslint-disable no-shadow */
79904
- /* eslint-disable no-param-reassign */
79905
- /* eslint-disable max-len */
79906
79671
  /* eslint-disable react/no-did-update-set-state */
79907
- /* eslint-disable eqeqeq */
79908
- /* eslint-disable max-lines-per-function */
79909
79672
 
79910
79673
 
79911
79674
 
@@ -80738,7 +80501,6 @@ class Table extends BaseComponent {
80738
80501
  } = this.props;
80739
80502
  const childrenColumnName = 'children';
80740
80503
  let columns = cloneDeep(cachedColumns);
80741
- // eslint-disable-next-line @typescript-eslint/no-shadow
80742
80504
  const addFns = function () {
80743
80505
  let columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
80744
80506
  if (Array.isArray(columns) && columns.length) {
@@ -81015,7 +80777,6 @@ class Table extends BaseComponent {
81015
80777
  }
81016
80778
  if (Object.keys(states).length) {
81017
80779
  const {
81018
- // eslint-disable-next-line @typescript-eslint/no-shadow
81019
80780
  pagination: mergedStatePagination = null,
81020
80781
  queries: stateQueries = null,
81021
80782
  dataSource: stateDataSource = null
@@ -81374,11 +81135,7 @@ var ResizableTable_rest = undefined && undefined.__rest || function (s, e) {
81374
81135
  }
81375
81136
  return t;
81376
81137
  };
81377
- /* eslint-disable max-len */
81378
- /* eslint-disable @typescript-eslint/no-shadow */
81379
81138
  /* eslint-disable react-hooks/exhaustive-deps */
81380
- /* eslint-disable react/destructuring-assignment */
81381
- /* eslint-disable max-lines-per-function */
81382
81139
 
81383
81140
 
81384
81141
 
@@ -81858,7 +81615,6 @@ class TabBar extends (external_root_React_commonjs2_react_commonjs_react_amd_rea
81858
81615
  this.props.onTabClick(itemKey, e);
81859
81616
  if (this.props.collapsible) {
81860
81617
  const key = this._getItemKey(itemKey);
81861
- // eslint-disable-next-line max-len
81862
81618
  const tabItem = document.querySelector(`[data-uuid="${this.state.uuid}"] .${tabs_constants_cssClasses.TABS_TAB}[data-scrollkey="${key}"]`);
81863
81619
  tabItem.scrollIntoView({
81864
81620
  behavior: 'smooth',
@@ -81897,7 +81653,6 @@ class TabBar extends (external_root_React_commonjs2_react_commonjs_react_amd_rea
81897
81653
  return;
81898
81654
  }
81899
81655
  const key = this._getItemKey(lastItem.itemKey);
81900
- // eslint-disable-next-line max-len
81901
81656
  const tabItem = document.querySelector(`[data-uuid="${this.state.uuid}"] .${tabs_constants_cssClasses.TABS_TAB}[data-scrollkey="${key}"]`);
81902
81657
  tabItem.scrollIntoView({
81903
81658
  behavior: 'smooth',
@@ -82734,7 +82489,6 @@ Timeline.defaultProps = {
82734
82489
  /* harmony default export */ const timeline_0 = (Timeline);
82735
82490
  ;// CONCATENATED MODULE: ../semi-foundation/timePicker/utils/index.ts
82736
82491
 
82737
- /* eslint-disable max-len */
82738
82492
 
82739
82493
 
82740
82494
 
@@ -82761,6 +82515,8 @@ const parseToDate = function (input) {
82761
82515
  });
82762
82516
  // console.log(curDate, formatToken);
82763
82517
  return curDate;
82518
+ } else if (typeof input === 'undefined') {
82519
+ return undefined;
82764
82520
  }
82765
82521
  return new Date();
82766
82522
  };
@@ -82865,7 +82621,6 @@ const isTimeFormatLike = (time, formatToken) => {
82865
82621
  ;// CONCATENATED MODULE: ../semi-foundation/timePicker/foundation.ts
82866
82622
 
82867
82623
 
82868
- /* eslint-disable max-len */
82869
82624
 
82870
82625
 
82871
82626
 
@@ -83024,13 +82779,13 @@ class TimePickerFoundation extends foundation {
83024
82779
  if (this.isValidTimeZone(timeZone)) {
83025
82780
  dates = dates.map(date => utcToZonedTime(this.isValidTimeZone(__prevTimeZone) ? zonedTimeToUtc(date, __prevTimeZone) : date, timeZone));
83026
82781
  }
83027
- const inputValue = this.formatValue(dates);
83028
- this.setState({
83029
- value: dates,
83030
- invalid,
83031
- inputValue
83032
- });
83033
82782
  }
82783
+ const inputValue = this.formatValue(dates);
82784
+ this.setState({
82785
+ value: dates,
82786
+ invalid,
82787
+ inputValue
82788
+ });
83034
82789
  }
83035
82790
  handleFocus(e) {
83036
82791
  if (!this.getState('open')) {
@@ -83243,9 +82998,7 @@ class inputFoundation_TimePickerFoundation extends foundation {
83243
82998
  constructor(adapter) {
83244
82999
  super(Object.assign({}, adapter));
83245
83000
  }
83246
- // eslint-disable-next-line @typescript-eslint/no-empty-function
83247
83001
  init() {}
83248
- // eslint-disable-next-line @typescript-eslint/no-empty-function
83249
83002
  destroy() {}
83250
83003
  handleFocus(e) {
83251
83004
  this.storeCursor();
@@ -83296,7 +83049,6 @@ var TimeInput_rest = undefined && undefined.__rest || function (s, e) {
83296
83049
  }
83297
83050
  return t;
83298
83051
  };
83299
- /* eslint-disable no-unused-vars */
83300
83052
 
83301
83053
 
83302
83054
 
@@ -83499,7 +83251,6 @@ var TimePicker_rest = undefined && undefined.__rest || function (s, e) {
83499
83251
  }
83500
83252
  return t;
83501
83253
  };
83502
- /* eslint-disable no-unused-vars */
83503
83254
 
83504
83255
 
83505
83256
 
@@ -84068,7 +83819,6 @@ class ToastFoundation extends foundation {
84068
83819
  }
84069
83820
  ;// CONCATENATED MODULE: ./toast/toast.tsx
84070
83821
 
84071
- /* eslint-disable max-len */
84072
83822
 
84073
83823
 
84074
83824
 
@@ -84290,7 +84040,6 @@ function useToast() {
84290
84040
  const mergeConfig = Object.assign(Object.assign({}, config), {
84291
84041
  id
84292
84042
  });
84293
- // eslint-disable-next-line prefer-const
84294
84043
  let closeFunc;
84295
84044
  const toast = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(useToast_HookToast, Object.assign({}, mergeConfig, {
84296
84045
  key: id,
@@ -84332,7 +84081,6 @@ function useToast() {
84332
84081
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, Array.isArray(elements) && elements.length ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, elements.map(item => item.element)) : null)];
84333
84082
  }
84334
84083
  ;// CONCATENATED MODULE: ./toast/index.tsx
84335
- /* eslint-disable no-param-reassign */
84336
84084
 
84337
84085
 
84338
84086
 
@@ -84987,7 +84735,6 @@ class TreeFoundation extends foundation {
84987
84735
  node: data
84988
84736
  });
84989
84737
  }
84990
- // eslint-disable-next-line max-len
84991
84738
  handleNodeLoad(loadedKeys, loadingKeys, data, resolve) {
84992
84739
  const {
84993
84740
  loadData,
@@ -85585,7 +85332,6 @@ class TreeNode extends external_root_React_commonjs2_react_commonjs_react_amd_re
85585
85332
  className: `${treeNode_prefixcls}-item-icon`
85586
85333
  });
85587
85334
  } else {
85588
- // eslint-disable-next-line max-len
85589
85335
  itemIcon = expanded ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconFolderOpen, {
85590
85336
  className: `${treeNode_prefixcls}-item-icon`
85591
85337
  }) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconFolder, {
@@ -85610,7 +85356,6 @@ class TreeNode extends external_root_React_commonjs2_react_commonjs_react_amd_re
85610
85356
  "x-semi-prop": "emptyContent"
85611
85357
  }, emptyContent));
85612
85358
  }
85613
- // eslint-disable-next-line max-lines-per-function
85614
85359
  render() {
85615
85360
  const _a = this.props,
85616
85361
  {
@@ -85625,7 +85370,6 @@ class TreeNode extends external_root_React_commonjs2_react_commonjs_react_amd_re
85625
85370
  empty,
85626
85371
  filtered,
85627
85372
  treeNodeFilterProp,
85628
- // eslint-disable-next-line no-unused-vars
85629
85373
  display,
85630
85374
  style
85631
85375
  } = _a,
@@ -85905,7 +85649,6 @@ var tree_rest = undefined && undefined.__rest || function (s, e) {
85905
85649
  }
85906
85650
  return t;
85907
85651
  };
85908
- /* eslint-disable max-lines-per-function */
85909
85652
 
85910
85653
 
85911
85654
 
@@ -86060,6 +85803,14 @@ class Tree extends BaseComponent {
86060
85803
  // Return a value that uniquely identifies this item.
86061
85804
  return item.key;
86062
85805
  };
85806
+ this.option = _ref2 => {
85807
+ let {
85808
+ index,
85809
+ style,
85810
+ data
85811
+ } = _ref2;
85812
+ return this.renderTreeNode(data[index], index, style);
85813
+ };
86063
85814
  this.state = {
86064
85815
  inputValue: '',
86065
85816
  keyEntities: {},
@@ -86123,7 +85874,6 @@ class Tree extends BaseComponent {
86123
85874
  };
86124
85875
  // Update the data of tree in state
86125
85876
  if (needUpdate('treeData') || props.draggable && needUpdateData()) {
86126
- // eslint-disable-next-line prefer-destructuring
86127
85877
  treeData = props.treeData;
86128
85878
  newState.treeData = treeData;
86129
85879
  const entitiesMap = convertDataToEntities(treeData);
@@ -86319,11 +86069,11 @@ class Tree extends BaseComponent {
86319
86069
  updateState: states => {
86320
86070
  this.setState(Object.assign({}, states));
86321
86071
  },
86322
- notifyExpand: (expandedKeys, _ref2) => {
86072
+ notifyExpand: (expandedKeys, _ref3) => {
86323
86073
  let {
86324
86074
  expanded: bool,
86325
86075
  node
86326
- } = _ref2;
86076
+ } = _ref3;
86327
86077
  this.props.onExpand && this.props.onExpand([...expandedKeys], {
86328
86078
  expanded: bool,
86329
86079
  node
@@ -86424,14 +86174,6 @@ class Tree extends BaseComponent {
86424
86174
  renderTreeNode: this.renderTreeNode
86425
86175
  });
86426
86176
  }
86427
- const option = _ref3 => {
86428
- let {
86429
- index,
86430
- style,
86431
- data
86432
- } = _ref3;
86433
- return this.renderTreeNode(data[index], index, style);
86434
- };
86435
86177
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(AutoSizer, {
86436
86178
  defaultHeight: virtualize.height,
86437
86179
  defaultWidth: virtualize.width
@@ -86452,7 +86194,7 @@ class Tree extends BaseComponent {
86452
86194
  style: {
86453
86195
  direction
86454
86196
  }
86455
- }, option);
86197
+ }, this.option);
86456
86198
  });
86457
86199
  }
86458
86200
  render() {
@@ -86663,7 +86405,6 @@ const treeSelect_constants_numbers = {};
86663
86405
 
86664
86406
 
86665
86407
 
86666
- // eslint-disable-next-line max-len
86667
86408
  class TreeSelectFoundation extends foundation {
86668
86409
  constructor(adapter) {
86669
86410
  super(Object.assign({}, adapter));
@@ -87601,7 +87342,6 @@ class TreeSelect extends BaseComponent {
87601
87342
  renderKeys = [...realCheckedKeys];
87602
87343
  }
87603
87344
  const tagList = [];
87604
- // eslint-disable-next-line @typescript-eslint/no-shadow
87605
87345
  renderKeys.forEach((key, index) => {
87606
87346
  const item = keyEntities[key] && keyEntities[key].data.key === key ? keyEntities[key].data : this.getDataForKeyNotInKeyEntities(key);
87607
87347
  const onClose = (tagContent, e) => {
@@ -87820,7 +87560,6 @@ class TreeSelect extends BaseComponent {
87820
87560
  const triggerRenderKeys = multiple ? normalizeKeyList([...checkedKeys], keyEntities, leafOnly, true) : selectedKeys;
87821
87561
  const inner = useCustomTrigger ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(trigger, {
87822
87562
  inputValue: inputValue,
87823
- // eslint-disable-next-line @typescript-eslint/no-shadow
87824
87563
  value: triggerRenderKeys.map(key => get_default()(keyEntities, [key, 'data'])),
87825
87564
  disabled: disabled,
87826
87565
  placeholder: placeholder,
@@ -87867,7 +87606,6 @@ class TreeSelect extends BaseComponent {
87867
87606
  "aria-required": this.props['aria-required']
87868
87607
  }, mouseEvent, this.getDataAttr(rest)), inner);
87869
87608
  };
87870
- // eslint-disable-next-line @typescript-eslint/no-shadow
87871
87609
  this.renderTagItem = (key, idx) => {
87872
87610
  const {
87873
87611
  keyEntities,
@@ -88091,7 +87829,6 @@ class TreeSelect extends BaseComponent {
88091
87829
  const {
88092
87830
  data
88093
87831
  } = treeNode;
88094
- // eslint-disable-next-line @typescript-eslint/no-shadow
88095
87832
  const {
88096
87833
  key
88097
87834
  } = data;
@@ -88115,7 +87852,6 @@ class TreeSelect extends BaseComponent {
88115
87852
  const {
88116
87853
  data
88117
87854
  } = treeNode;
88118
- // eslint-disable-next-line @typescript-eslint/no-shadow
88119
87855
  const {
88120
87856
  key
88121
87857
  } = data;
@@ -88303,7 +88039,6 @@ class TreeSelect extends BaseComponent {
88303
88039
  this.adapter.rePositionDropdown();
88304
88040
  };
88305
88041
  }
88306
- // eslint-disable-next-line max-lines-per-function
88307
88042
  static getDerivedStateFromProps(props, prevState) {
88308
88043
  const {
88309
88044
  prevProps,
@@ -88432,7 +88167,6 @@ class TreeSelect extends BaseComponent {
88432
88167
  const clickOutsideHandler = e => {
88433
88168
  const optionInstance = this.optionsRef && this.optionsRef.current;
88434
88169
  const triggerDom = this.triggerRef && this.triggerRef.current;
88435
- // eslint-disable-next-line
88436
88170
  const optionsDom = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(optionInstance);
88437
88171
  const target = e.target;
88438
88172
  if (optionsDom && (!optionsDom.contains(target) || !optionsDom.contains(target.parentNode)) && triggerDom && !triggerDom.contains(target)) {
@@ -89118,7 +88852,9 @@ class UploadFoundation extends foundation {
89118
88852
  });
89119
88853
  this._adapter.updateFileList(newFileList, () => {
89120
88854
  this._adapter.resetReplaceInput();
89121
- this.upload(newFileItem);
88855
+ if (!newFileItem._sizeInvalid) {
88856
+ this.upload(newFileItem);
88857
+ }
89122
88858
  });
89123
88859
  }
89124
88860
  buildFileItem(fileInstance, uploadTrigger) {
@@ -90213,7 +89949,6 @@ var upload_rest = undefined && undefined.__rest || function (s, e) {
90213
89949
  }
90214
89950
  return t;
90215
89951
  };
90216
- /* eslint-disable max-len */
90217
89952
 
90218
89953
 
90219
89954
 
@@ -90287,10 +90022,7 @@ class Upload extends BaseComponent {
90287
90022
  * manual upload by user
90288
90023
  */
90289
90024
  this.upload = () => {
90290
- const {
90291
- fileList
90292
- } = this.state;
90293
- this.foundation.startUpload(fileList);
90025
+ this.foundation.manualUpload();
90294
90026
  };
90295
90027
  /**
90296
90028
  * ref method
@@ -90916,7 +90648,6 @@ function _generateSelectedItems(value, data) {
90916
90648
 
90917
90649
 
90918
90650
 
90919
- // eslint-disable-next-line max-len
90920
90651
  class TransferFoundation extends foundation {
90921
90652
  constructor(adapter) {
90922
90653
  super(Object.assign({}, adapter));
@@ -91172,7 +90903,6 @@ const transfer_SortableList = sortableContainer(_ref => {
91172
90903
  index: index,
91173
90904
  item: item
91174
90905
  })))
91175
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
91176
90906
  // @ts-ignore see reasons: https://github.com/clauderic/react-sortable-hoc/issues/206
91177
90907
  ;
91178
90908
  }, {
@@ -91195,12 +90925,10 @@ class Transfer extends BaseComponent {
91195
90925
  inputValue: ''
91196
90926
  };
91197
90927
  if (Boolean(dataSource) && isArray_default()(dataSource)) {
91198
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
91199
90928
  // @ts-ignore Avoid reporting errors this.state.xxx is read-only
91200
90929
  this.state.data = _generateDataByType(dataSource, type);
91201
90930
  }
91202
90931
  if (Boolean(defaultValue) && isArray_default()(defaultValue)) {
91203
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
91204
90932
  // @ts-ignore Avoid reporting errors this.state.xxx is read-only
91205
90933
  this.state.selectedItems = _generateSelectedItems(defaultValue, this.state.data);
91206
90934
  }
@@ -93272,9 +93000,6 @@ var form_utils_rest = undefined && undefined.__rest || function (s, e) {
93272
93000
  }
93273
93001
  return t;
93274
93002
  };
93275
- /* eslint-disable prefer-destructuring */
93276
- /* eslint-disable prefer-const */
93277
- /* eslint-disable @typescript-eslint/no-unused-vars */
93278
93003
 
93279
93004
  /**
93280
93005
  *
@@ -93459,7 +93184,6 @@ function bothEmptyArray(val, otherVal) {
93459
93184
 
93460
93185
 
93461
93186
 
93462
- /* eslint-disable prefer-const, max-len */
93463
93187
 
93464
93188
 
93465
93189
 
@@ -93611,13 +93335,15 @@ class FormFoundation extends foundation {
93611
93335
  maybePromisedErrors = errors;
93612
93336
  }
93613
93337
  if (!maybePromisedErrors) {
93614
- resolve(values);
93338
+ const _values = this._adapter.cloneDeep(values);
93339
+ resolve(_values);
93615
93340
  this.injectErrorToField({});
93616
93341
  } else if (isPromise(maybePromisedErrors)) {
93617
93342
  maybePromisedErrors.then(result => {
93618
93343
  // validate success,clear error
93619
93344
  if (!result) {
93620
- resolve(values);
93345
+ const _values = this._adapter.cloneDeep(values);
93346
+ resolve(_values);
93621
93347
  this.injectErrorToField({});
93622
93348
  } else {
93623
93349
  this.data.errors = result;
@@ -93671,7 +93397,8 @@ class FormFoundation extends foundation {
93671
93397
  this._adapter.forceUpdate();
93672
93398
  const errors = this.getError();
93673
93399
  if (this._isValid(targetFields)) {
93674
- resolve(values);
93400
+ const _values = this._adapter.cloneDeep(values);
93401
+ resolve(_values);
93675
93402
  } else {
93676
93403
  this._autoScroll();
93677
93404
  reject(errors);
@@ -93679,7 +93406,7 @@ class FormFoundation extends foundation {
93679
93406
  });
93680
93407
  });
93681
93408
  }
93682
- submit() {
93409
+ submit(e) {
93683
93410
  const {
93684
93411
  values
93685
93412
  } = this.data;
@@ -93687,11 +93414,11 @@ class FormFoundation extends foundation {
93687
93414
  this.validate().then(resolveValues => {
93688
93415
  // if valid do submit
93689
93416
  const _values = this._adapter.cloneDeep(resolveValues);
93690
- this._adapter.notifySubmit(_values);
93417
+ this._adapter.notifySubmit(_values, e);
93691
93418
  }).catch(errors => {
93692
93419
  const _errors = this._adapter.cloneDeep(errors);
93693
93420
  const _values = this._adapter.cloneDeep(values);
93694
- this._adapter.notifySubmitFail(_errors, _values);
93421
+ this._adapter.notifySubmitFail(_errors, _values, e);
93695
93422
  });
93696
93423
  }
93697
93424
  /**
@@ -94147,7 +93874,6 @@ class FormFoundation extends foundation {
94147
93874
  }
94148
93875
  }
94149
93876
  ;// CONCATENATED MODULE: ./form/context.tsx
94150
- /* eslint-disable @typescript-eslint/no-empty-function */
94151
93877
 
94152
93878
  const FormStateContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({});
94153
93879
  FormStateContext.displayName = 'FormState';
@@ -94160,7 +93886,6 @@ const ArrayFieldContext = /*#__PURE__*/external_root_React_commonjs2_react_commo
94160
93886
  });
94161
93887
 
94162
93888
  ;// CONCATENATED MODULE: ./form/errorMessage.tsx
94163
- /* eslint-disable prefer-template */
94164
93889
 
94165
93890
 
94166
93891
 
@@ -94257,7 +93982,6 @@ var slot_rest = undefined && undefined.__rest || function (s, e) {
94257
93982
  }
94258
93983
  return t;
94259
93984
  };
94260
- /* eslint-disable max-lines-per-function, prefer-destructuring, prefer-const, @typescript-eslint/no-unused-vars */
94261
93985
 
94262
93986
 
94263
93987
 
@@ -94278,7 +94002,6 @@ const FormSlot = props => {
94278
94002
  labelAlign = formProps.labelAlign;
94279
94003
  labelPosition = formProps.labelPosition ? formProps.labelPosition : labelPosition;
94280
94004
  } catch (error) {}
94281
- // eslint-disable-next-line react/destructuring-assignment
94282
94005
  props.labelPosition ? labelPosition = props.labelPosition : null;
94283
94006
  let {
94284
94007
  children,
@@ -94384,7 +94107,6 @@ const FormSlot = props => {
94384
94107
  };
94385
94108
  /* harmony default export */ const slot = (FormSlot);
94386
94109
  ;// CONCATENATED MODULE: ./form/section.tsx
94387
- /* eslint-disable prefer-template */
94388
94110
 
94389
94111
 
94390
94112
 
@@ -94434,7 +94156,6 @@ var group_rest = undefined && undefined.__rest || function (s, e) {
94434
94156
  }
94435
94157
  return t;
94436
94158
  };
94437
- /* eslint-disable react/destructuring-assignment */
94438
94159
 
94439
94160
 
94440
94161
 
@@ -94594,7 +94315,7 @@ function useStateWithGetter(initial) {
94594
94315
  return [state, set, get];
94595
94316
  }
94596
94317
  ;// CONCATENATED MODULE: ./form/hoc/withField.tsx
94597
- /* eslint-disable max-lines-per-function, react-hooks/rules-of-hooks, prefer-const, max-len */
94318
+ /* eslint-disable react-hooks/rules-of-hooks */
94598
94319
 
94599
94320
 
94600
94321
 
@@ -94747,9 +94468,7 @@ function withField(Component, opts) {
94747
94468
  const rootPromise = new Promise((resolve, reject) => {
94748
94469
  validator.validate(model, {
94749
94470
  first: stopValidateWithError
94750
- },
94751
- // eslint-disable-next-line @typescript-eslint/no-empty-function
94752
- (errors, fields) => {}).then(res => {
94471
+ }, (errors, fields) => {}).then(res => {
94753
94472
  if (validatePromise.current !== rootPromise) {
94754
94473
  return;
94755
94474
  }
@@ -94768,7 +94487,6 @@ function withField(Component, opts) {
94768
94487
  if (errors && fields) {
94769
94488
  let messages = errors.map(e => e.message);
94770
94489
  if (messages.length === 1) {
94771
- // eslint-disable-next-line prefer-destructuring
94772
94490
  messages = messages[0];
94773
94491
  }
94774
94492
  updateError(messages, callOpts);
@@ -94945,7 +94663,6 @@ function withField(Component, opts) {
94945
94663
  useIsomorphicEffect(() => {
94946
94664
  // register
94947
94665
  if (typeof field === 'undefined') {
94948
- // eslint-disable-next-line @typescript-eslint/no-empty-function
94949
94666
  return () => {};
94950
94667
  }
94951
94668
  // log('register: ' + field);
@@ -95109,7 +94826,6 @@ function withField(Component, opts) {
95109
94826
  // eslint-disable-next-line
95110
94827
  /* harmony default export */ const hoc_withField = (withField);
95111
94828
  ;// CONCATENATED MODULE: ./form/field.tsx
95112
- /* eslint-disable max-len */
95113
94829
 
95114
94830
  // Basic component
95115
94831
 
@@ -95187,7 +94903,6 @@ var baseForm_rest = undefined && undefined.__rest || function (s, e) {
95187
94903
  }
95188
94904
  return t;
95189
94905
  };
95190
- /* eslint-disable prefer-template, max-len, @typescript-eslint/no-unused-vars */
95191
94906
 
95192
94907
 
95193
94908
 
@@ -95234,11 +94949,11 @@ class Form extends BaseComponent {
95234
94949
  get adapter() {
95235
94950
  return Object.assign(Object.assign({}, super.adapter), {
95236
94951
  cloneDeep: cloneDeep,
95237
- notifySubmit: values => {
95238
- this.props.onSubmit(values);
94952
+ notifySubmit: (values, e) => {
94953
+ this.props.onSubmit(values, e);
95239
94954
  },
95240
- notifySubmitFail: (errors, values) => {
95241
- this.props.onSubmitFail(errors, values);
94955
+ notifySubmitFail: (errors, values, e) => {
94956
+ this.props.onSubmitFail(errors, values, e);
95242
94957
  },
95243
94958
  forceUpdate: callback => {
95244
94959
  this.forceUpdate(callback);
@@ -95309,7 +95024,7 @@ class Form extends BaseComponent {
95309
95024
  }
95310
95025
  submit(e) {
95311
95026
  e.preventDefault();
95312
- this.foundation.submit();
95027
+ this.foundation.submit(e);
95313
95028
  }
95314
95029
  reset(e) {
95315
95030
  e.preventDefault();
@@ -95504,7 +95219,6 @@ function withFormApi(Component) {
95504
95219
  ;// CONCATENATED MODULE: ./form/arrayField.tsx
95505
95220
 
95506
95221
 
95507
- /* eslint-disable react/destructuring-assignment */
95508
95222
 
95509
95223
 
95510
95224
 
@@ -95874,18 +95588,20 @@ class previewFooter_Footer extends BaseComponent {
95874
95588
  disabledZoomOut: zoom === min,
95875
95589
  onRatioClick: this.handleRatioClick,
95876
95590
  onZoomIn: this.handlePlusClick,
95877
- onZoomOut: this.handleMinusClick
95591
+ onZoomOut: this.handleMinusClick,
95592
+ menuItems: this.getMenu()
95878
95593
  };
95879
95594
  return renderPreviewMenu(props);
95880
95595
  };
95881
95596
  // According to showTooltip in props, decide whether to use Tooltip to pack a layer
95882
95597
  // 根据 props 中的 showTooltip 决定是否使用 Tooltip 包一层
95883
- this.getFinalIconElement = (element, content) => {
95598
+ this.getFinalIconElement = (element, content, key) => {
95884
95599
  const {
95885
95600
  showTooltip
95886
95601
  } = this.props;
95887
95602
  return showTooltip ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Tooltip, {
95888
- content: content
95603
+ content: content,
95604
+ key: `tooltip-${key}`
95889
95605
  }, element) : element;
95890
95606
  };
95891
95607
  this.getLocalTextByKey = key => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
@@ -95898,12 +95614,13 @@ class previewFooter_Footer extends BaseComponent {
95898
95614
  prevTip
95899
95615
  } = this.props;
95900
95616
  const icon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronLeft, {
95617
+ key: "chevron-left",
95901
95618
  size: "large",
95902
95619
  className: disabledPrev ? `${footerPrefixCls}-disabled` : "",
95903
95620
  onClick: !disabledPrev ? onPrev : undefined
95904
95621
  });
95905
95622
  const content = prevTip !== null && prevTip !== void 0 ? prevTip : this.getLocalTextByKey("prevTip");
95906
- return this.getFinalIconElement(icon, content);
95623
+ return this.getFinalIconElement(icon, content, 'chevron-left');
95907
95624
  };
95908
95625
  this.getIconChevronRight = () => {
95909
95626
  const {
@@ -95912,12 +95629,13 @@ class previewFooter_Footer extends BaseComponent {
95912
95629
  nextTip
95913
95630
  } = this.props;
95914
95631
  const icon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronRight, {
95632
+ key: "chevron-right",
95915
95633
  size: "large",
95916
95634
  className: disabledNext ? `${footerPrefixCls}-disabled` : "",
95917
95635
  onClick: !disabledNext ? onNext : undefined
95918
95636
  });
95919
95637
  const content = nextTip !== null && nextTip !== void 0 ? nextTip : this.getLocalTextByKey("nextTip");
95920
- return this.getFinalIconElement(icon, content);
95638
+ return this.getFinalIconElement(icon, content, 'chevron-right');
95921
95639
  };
95922
95640
  this.getIconMinus = () => {
95923
95641
  const {
@@ -95927,12 +95645,13 @@ class previewFooter_Footer extends BaseComponent {
95927
95645
  } = this.props;
95928
95646
  const disabledZoomOut = zoom === min;
95929
95647
  const icon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconMinus, {
95648
+ key: "minus",
95930
95649
  size: "large",
95931
95650
  onClick: !disabledZoomOut ? this.handleMinusClick : undefined,
95932
95651
  className: disabledZoomOut ? `${footerPrefixCls}-disabled` : ""
95933
95652
  });
95934
95653
  const content = zoomOutTip !== null && zoomOutTip !== void 0 ? zoomOutTip : this.getLocalTextByKey("zoomOutTip");
95935
- return this.getFinalIconElement(icon, content);
95654
+ return this.getFinalIconElement(icon, content, 'minus');
95936
95655
  };
95937
95656
  this.getIconPlus = () => {
95938
95657
  const {
@@ -95942,12 +95661,13 @@ class previewFooter_Footer extends BaseComponent {
95942
95661
  } = this.props;
95943
95662
  const disabledZoomIn = zoom === max;
95944
95663
  const icon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconPlus, {
95664
+ key: "plus",
95945
95665
  size: "large",
95946
95666
  onClick: !disabledZoomIn ? this.handlePlusClick : undefined,
95947
95667
  className: disabledZoomIn ? `${footerPrefixCls}-disabled` : ""
95948
95668
  });
95949
95669
  const content = zoomInTip !== null && zoomInTip !== void 0 ? zoomInTip : this.getLocalTextByKey("zoomInTip");
95950
- return this.getFinalIconElement(icon, content);
95670
+ return this.getFinalIconElement(icon, content, 'plus');
95951
95671
  };
95952
95672
  this.getIconRatio = () => {
95953
95673
  const {
@@ -95956,6 +95676,7 @@ class previewFooter_Footer extends BaseComponent {
95956
95676
  adaptiveTip
95957
95677
  } = this.props;
95958
95678
  const props = {
95679
+ key: "ratio",
95959
95680
  size: "large",
95960
95681
  className: classnames_default()(`${footerPrefixCls}-gap`),
95961
95682
  onClick: this.handleRatioClick
@@ -95967,18 +95688,19 @@ class previewFooter_Footer extends BaseComponent {
95967
95688
  } else {
95968
95689
  content = adaptiveTip !== null && adaptiveTip !== void 0 ? adaptiveTip : this.getLocalTextByKey("adaptiveTip");
95969
95690
  }
95970
- return this.getFinalIconElement(icon, content);
95691
+ return this.getFinalIconElement(icon, content, 'ratio');
95971
95692
  };
95972
95693
  this.getIconRotate = () => {
95973
95694
  const {
95974
95695
  rotateTip
95975
95696
  } = this.props;
95976
95697
  const icon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconRotate, {
95698
+ key: "rotate",
95977
95699
  size: "large",
95978
95700
  onClick: this.handleRotateLeft
95979
95701
  });
95980
95702
  const content = rotateTip !== null && rotateTip !== void 0 ? rotateTip : this.getLocalTextByKey("rotateTip");
95981
- return this.getFinalIconElement(icon, content);
95703
+ return this.getFinalIconElement(icon, content, 'rotate');
95982
95704
  };
95983
95705
  this.getIconDownload = () => {
95984
95706
  const {
@@ -95987,6 +95709,7 @@ class previewFooter_Footer extends BaseComponent {
95987
95709
  disableDownload
95988
95710
  } = this.props;
95989
95711
  const icon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconDownload, {
95712
+ key: 'download',
95990
95713
  size: "large",
95991
95714
  onClick: !disableDownload ? onDownload : undefined,
95992
95715
  className: classnames_default()(`${footerPrefixCls}-gap`, {
@@ -95994,44 +95717,63 @@ class previewFooter_Footer extends BaseComponent {
95994
95717
  })
95995
95718
  });
95996
95719
  const content = downloadTip !== null && downloadTip !== void 0 ? downloadTip : this.getLocalTextByKey("downloadTip");
95997
- return this.getFinalIconElement(icon, content);
95720
+ return this.getFinalIconElement(icon, content, 'download');
95721
+ };
95722
+ this.getNumberInfo = () => {
95723
+ const {
95724
+ curPage,
95725
+ totalNum
95726
+ } = this.props;
95727
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
95728
+ className: `${footerPrefixCls}-page`,
95729
+ key: 'info'
95730
+ }, curPage, "/", totalNum);
95731
+ };
95732
+ this.getSlider = () => {
95733
+ const {
95734
+ zoom,
95735
+ min,
95736
+ max,
95737
+ step,
95738
+ showTooltip
95739
+ } = this.props;
95740
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Slider, {
95741
+ key: 'slider',
95742
+ value: zoom,
95743
+ min: min,
95744
+ max: max,
95745
+ step: step,
95746
+ tipFormatter: v => `${v}%`,
95747
+ tooltipVisible: showTooltip ? undefined : false,
95748
+ onChange: this.handleSlideChange
95749
+ });
95750
+ };
95751
+ this.getMenu = () => [this.getIconChevronLeft(), this.getNumberInfo(), this.getIconChevronRight(), this.getIconMinus(), this.getSlider(), this.getIconPlus(), this.getIconRatio(), this.getIconRotate(), this.getIconDownload()];
95752
+ this.getFooterMenu = () => {
95753
+ const menuItems = this.getMenu();
95754
+ menuItems.splice(3, 0, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(divider_0, {
95755
+ layout: "vertical",
95756
+ key: "divider-first"
95757
+ }));
95758
+ menuItems.splice(8, 0, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(divider_0, {
95759
+ layout: "vertical",
95760
+ key: "divider-second"
95761
+ }));
95762
+ return menuItems;
95998
95763
  };
95999
95764
  this.foundation = new PreviewFooterFoundation(this.adapter);
96000
95765
  }
96001
95766
  render() {
96002
95767
  const {
96003
- min,
96004
- max,
96005
- step,
96006
- curPage,
96007
- totalNum,
96008
- zoom,
96009
- showTooltip,
96010
95768
  className,
96011
95769
  renderPreviewMenu
96012
95770
  } = this.props;
96013
- if (renderPreviewMenu) {
96014
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
96015
- className: `${footerPrefixCls}-wrapper`
96016
- }, this.customRenderViewMenu());
96017
- }
95771
+ const menuCls = classnames_default()(footerPrefixCls, `${footerPrefixCls}-wrapper`, className, {
95772
+ [`${footerPrefixCls}-content`]: !Boolean(renderPreviewMenu)
95773
+ });
96018
95774
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("section", {
96019
- className: classnames_default()(footerPrefixCls, `${footerPrefixCls}-wrapper`, className)
96020
- }, this.getIconChevronLeft(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
96021
- className: `${footerPrefixCls}-page`
96022
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, curPage), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, "/"), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, totalNum)), this.getIconChevronRight(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(divider_0, {
96023
- layout: "vertical"
96024
- }), this.getIconMinus(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Slider, {
96025
- value: zoom,
96026
- min: min,
96027
- max: max,
96028
- step: step,
96029
- tipFormatter: v => `${v}%`,
96030
- tooltipVisible: showTooltip ? undefined : false,
96031
- onChange: this.handleSlideChange
96032
- }), this.getIconPlus(), this.getIconRatio(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(divider_0, {
96033
- layout: "vertical"
96034
- }), this.getIconRotate(), this.getIconDownload());
95775
+ className: menuCls
95776
+ }, renderPreviewMenu ? this.customRenderViewMenu() : this.getFooterMenu());
96035
95777
  }
96036
95778
  }
96037
95779
  previewFooter_Footer.propTypes = {
@@ -96791,8 +96533,9 @@ class PreviewInnerFoundation extends foundation {
96791
96533
  currentIndex,
96792
96534
  imgSrc
96793
96535
  } = this.getStates();
96536
+ const setDownloadName = this._adapter.getSetDownloadFunc();
96794
96537
  const downloadSrc = imgSrc[currentIndex];
96795
- const downloadName = downloadSrc.slice(downloadSrc.lastIndexOf("/") + 1);
96538
+ const downloadName = setDownloadName ? setDownloadName(downloadSrc) : downloadSrc.slice(downloadSrc.lastIndexOf("/") + 1);
96796
96539
  downloadImage(downloadSrc, downloadName);
96797
96540
  this._adapter.notifyDownload(downloadSrc, currentIndex);
96798
96541
  };
@@ -96950,7 +96693,6 @@ class PreviewInnerFoundation extends foundation {
96950
96693
  ;// CONCATENATED MODULE: ./image/previewInner.tsx
96951
96694
 
96952
96695
 
96953
- /* eslint-disable jsx-a11y/no-static-element-interactions */
96954
96696
 
96955
96697
 
96956
96698
 
@@ -97075,6 +96817,10 @@ class PreviewInner extends BaseComponent {
97075
96817
  },
97076
96818
  setMouseActiveTime: time => {
97077
96819
  previewInner_mouseActiveTime = time;
96820
+ },
96821
+ getSetDownloadFunc: () => {
96822
+ var _a, _b;
96823
+ return (_b = (_a = this.context) === null || _a === void 0 ? void 0 : _a.setDownloadName) !== null && _b !== void 0 ? _b : this.props.setDownloadName;
97078
96824
  }
97079
96825
  });
97080
96826
  }
@@ -97458,8 +97204,6 @@ var image_rest = undefined && undefined.__rest || function (s, e) {
97458
97204
  }
97459
97205
  return t;
97460
97206
  };
97461
- /* eslint-disable jsx-a11y/click-events-have-key-events */
97462
- /* eslint-disable jsx-a11y/no-static-element-interactions */
97463
97207
 
97464
97208
 
97465
97209
 
@@ -97611,9 +97355,10 @@ class image_Image extends BaseComponent {
97611
97355
  preview,
97612
97356
  fallback,
97613
97357
  placeholder,
97614
- imageID
97358
+ imageID,
97359
+ setDownloadName
97615
97360
  } = _b,
97616
- restProps = image_rest(_b, ["src", "width", "height", "alt", "style", "className", "crossOrigin", "preview", "fallback", "placeholder", "imageID"]);
97361
+ restProps = image_rest(_b, ["src", "width", "height", "alt", "style", "className", "crossOrigin", "preview", "fallback", "placeholder", "imageID", "setDownloadName"]);
97617
97362
  const outerStyle = Object.assign({
97618
97363
  width,
97619
97364
  height
@@ -97623,36 +97368,32 @@ class image_Image extends BaseComponent {
97623
97368
  const showPreviewCursor = preview && loadStatus === "success";
97624
97369
  const previewSrc = isObject_default()(preview) ? (_a = preview.src) !== null && _a !== void 0 ? _a : src : src;
97625
97370
  const previewProps = isObject_default()(preview) ? preview : {};
97626
- return (
97627
- /*#__PURE__*/
97628
- // eslint-disable jsx-a11y/no-static-element-interactions
97629
- // eslint-disable jsx-a11y/click-events-have-key-events
97630
- external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
97631
- style: outerStyle,
97632
- className: outerCls,
97633
- onClick: this.handleClick
97634
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("img", Object.assign({
97635
- ref: this.imgRef
97636
- }, restProps, {
97637
- src: this.isInGroup() && this.isLazyLoad() ? undefined : src,
97638
- "data-src": src,
97639
- alt: alt,
97640
- className: classnames_default()(`${image_prefixCls}-img`, {
97641
- [`${image_prefixCls}-img-preview`]: showPreviewCursor,
97642
- [`${image_prefixCls}-img-error`]: loadStatus === "error"
97643
- }),
97644
- width: width,
97645
- height: height,
97646
- crossOrigin: crossOrigin,
97647
- onError: this.handleError,
97648
- onLoad: this.handleLoaded
97649
- })), loadStatus !== "success" && this.renderExtra(), canPreview && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(PreviewInner, Object.assign({}, previewProps, {
97650
- src: previewSrc,
97651
- visible: previewVisible,
97652
- onVisibleChange: this.handlePreviewVisibleChange,
97653
- crossOrigin: !isUndefined_default()(crossOrigin) ? crossOrigin : previewProps === null || previewProps === void 0 ? void 0 : previewProps.crossOrigin
97654
- })))
97655
- );
97371
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
97372
+ style: outerStyle,
97373
+ className: outerCls,
97374
+ onClick: this.handleClick
97375
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("img", Object.assign({
97376
+ ref: this.imgRef
97377
+ }, restProps, {
97378
+ src: this.isInGroup() && this.isLazyLoad() ? undefined : src,
97379
+ "data-src": src,
97380
+ alt: alt,
97381
+ className: classnames_default()(`${image_prefixCls}-img`, {
97382
+ [`${image_prefixCls}-img-preview`]: showPreviewCursor,
97383
+ [`${image_prefixCls}-img-error`]: loadStatus === "error"
97384
+ }),
97385
+ width: width,
97386
+ height: height,
97387
+ crossOrigin: crossOrigin,
97388
+ onError: this.handleError,
97389
+ onLoad: this.handleLoaded
97390
+ })), loadStatus !== "success" && this.renderExtra(), canPreview && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(PreviewInner, Object.assign({}, previewProps, {
97391
+ src: previewSrc,
97392
+ visible: previewVisible,
97393
+ onVisibleChange: this.handlePreviewVisibleChange,
97394
+ crossOrigin: !isUndefined_default()(crossOrigin) ? crossOrigin : previewProps === null || previewProps === void 0 ? void 0 : previewProps.crossOrigin,
97395
+ setDownloadName: setDownloadName
97396
+ })));
97656
97397
  }
97657
97398
  }
97658
97399
  image_Image.isSemiImage = true;
@@ -97857,9 +97598,10 @@ class Preview extends BaseComponent {
97857
97598
  src,
97858
97599
  className,
97859
97600
  style,
97860
- lazyLoad
97601
+ lazyLoad,
97602
+ setDownloadName
97861
97603
  } = _a,
97862
- restProps = preview_rest(_a, ["src", "className", "style", "lazyLoad"]);
97604
+ restProps = preview_rest(_a, ["src", "className", "style", "lazyLoad", "setDownloadName"]);
97863
97605
  const {
97864
97606
  currentIndex,
97865
97607
  visible
@@ -97881,7 +97623,8 @@ class Preview extends BaseComponent {
97881
97623
  lazyLoad,
97882
97624
  previewObserver: this.previewObserver,
97883
97625
  setCurrentIndex: this.handleCurrentIndexChange,
97884
- handleVisibleChange: this.handleVisibleChange
97626
+ handleVisibleChange: this.handleVisibleChange,
97627
+ setDownloadName: setDownloadName
97885
97628
  }
97886
97629
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
97887
97630
  id: this.previewGroupId,