@douyinfe/semi-ui 2.3.0-beta.0 → 2.4.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 (97) hide show
  1. package/_base/_story/a11y.scss +0 -1
  2. package/_base/_story/index.scss +2 -5
  3. package/avatar/avatarGroup.tsx +1 -1
  4. package/avatar/index.tsx +0 -4
  5. package/button/__test__/button.test.js +1 -1
  6. package/checkbox/_story/checkbox.stories.js +2 -2
  7. package/collapse/index.tsx +1 -1
  8. package/collapse/item.tsx +1 -3
  9. package/datePicker/_story/RenderDate/index.js +13 -3
  10. package/datePicker/_story/RenderFullDate/index.js +36 -14
  11. package/datePicker/_story/RenderFullDate/index.scss +1 -1
  12. package/datePicker/_story/datePicker.stories.js +19 -11
  13. package/datePicker/_story/v2/PanelOpen.jsx +39 -0
  14. package/datePicker/_story/v2/index.js +2 -1
  15. package/dist/css/semi.css +33 -9
  16. package/dist/css/semi.min.css +1 -1
  17. package/dist/umd/semi-ui.js +96 -57
  18. package/dist/umd/semi-ui.js.map +1 -1
  19. package/dist/umd/semi-ui.min.js +1 -1
  20. package/dist/umd/semi-ui.min.js.map +1 -1
  21. package/dropdown/index.tsx +11 -3
  22. package/empty/index.tsx +1 -1
  23. package/input/textarea.tsx +5 -3
  24. package/inputNumber/__test__/inputNumber.test.js +36 -8
  25. package/inputNumber/index.tsx +2 -1
  26. package/lib/cjs/avatar/avatarGroup.js +1 -2
  27. package/lib/cjs/avatar/index.js +1 -6
  28. package/lib/cjs/collapse/index.js +1 -2
  29. package/lib/cjs/collapse/item.js +1 -5
  30. package/lib/cjs/dropdown/index.d.ts +10 -3
  31. package/lib/cjs/empty/index.js +1 -2
  32. package/lib/cjs/input/textarea.js +4 -2
  33. package/lib/cjs/inputNumber/index.js +3 -2
  34. package/lib/cjs/list/index.d.ts +4 -4
  35. package/lib/cjs/navigation/Item.js +1 -1
  36. package/lib/cjs/navigation/SubNav.js +1 -1
  37. package/lib/cjs/scrollList/scrollItem.d.ts +5 -1
  38. package/lib/cjs/scrollList/scrollItem.js +7 -0
  39. package/lib/cjs/select/index.js +1 -1
  40. package/lib/cjs/sideSheet/SideSheetContent.js +5 -9
  41. package/lib/cjs/spin/icon.js +2 -1
  42. package/lib/cjs/table/Table.js +9 -5
  43. package/lib/cjs/timePicker/TimePicker.d.ts +2 -0
  44. package/lib/cjs/timePicker/TimePicker.js +2 -3
  45. package/lib/cjs/timePicker/index.d.ts +1 -0
  46. package/lib/cjs/tooltip/index.js +1 -1
  47. package/lib/cjs/tree/treeNode.js +10 -1
  48. package/lib/cjs/treeSelect/index.js +11 -3
  49. package/lib/cjs/typography/util.js +0 -1
  50. package/lib/cjs/upload/fileCard.js +3 -3
  51. package/lib/es/avatar/avatarGroup.js +1 -2
  52. package/lib/es/avatar/index.js +1 -6
  53. package/lib/es/collapse/index.js +1 -2
  54. package/lib/es/collapse/item.js +1 -5
  55. package/lib/es/dropdown/index.d.ts +10 -3
  56. package/lib/es/empty/index.js +1 -2
  57. package/lib/es/input/textarea.js +4 -2
  58. package/lib/es/inputNumber/index.js +3 -2
  59. package/lib/es/list/index.d.ts +4 -4
  60. package/lib/es/navigation/Item.js +1 -1
  61. package/lib/es/navigation/SubNav.js +1 -1
  62. package/lib/es/scrollList/scrollItem.d.ts +5 -1
  63. package/lib/es/scrollList/scrollItem.js +7 -0
  64. package/lib/es/select/index.js +1 -1
  65. package/lib/es/sideSheet/SideSheetContent.js +5 -9
  66. package/lib/es/spin/icon.js +2 -1
  67. package/lib/es/table/Table.js +9 -5
  68. package/lib/es/timePicker/TimePicker.d.ts +2 -0
  69. package/lib/es/timePicker/TimePicker.js +2 -3
  70. package/lib/es/timePicker/index.d.ts +1 -0
  71. package/lib/es/tooltip/index.js +2 -2
  72. package/lib/es/tree/treeNode.js +9 -1
  73. package/lib/es/treeSelect/index.js +12 -4
  74. package/lib/es/typography/util.js +0 -1
  75. package/lib/es/upload/fileCard.js +3 -3
  76. package/list/index.tsx +5 -5
  77. package/navigation/Item.tsx +1 -1
  78. package/navigation/SubNav.tsx +1 -1
  79. package/package.json +8 -8
  80. package/scrollList/scrollItem.tsx +10 -3
  81. package/select/index.tsx +6 -1
  82. package/sideSheet/SideSheetContent.tsx +6 -8
  83. package/spin/icon.tsx +2 -1
  84. package/table/Table.tsx +9 -6
  85. package/table/_story/table.stories.js +2 -0
  86. package/table/_story/v2/FixedColumnsChange/index.jsx +104 -0
  87. package/table/_story/v2/FixedZIndex/index.jsx +87 -0
  88. package/timePicker/TimePicker.tsx +3 -1
  89. package/timePicker/__test__/timePicker.test.js +42 -3
  90. package/timePicker/_story/timepicker.stories.js +18 -0
  91. package/tooltip/index.tsx +3 -2
  92. package/tree/treeNode.tsx +9 -2
  93. package/treeSelect/__test__/treeSelect.test.js +157 -0
  94. package/treeSelect/index.tsx +21 -12
  95. package/typography/_story/typography.stories.js +8 -0
  96. package/typography/util.tsx +0 -1
  97. package/upload/fileCard.tsx +2 -2
@@ -24579,13 +24579,14 @@ function getUuidv4() {
24579
24579
  */
24580
24580
 
24581
24581
 
24582
- function getUuidShort(_ref) {
24582
+ function getUuidShort() {
24583
24583
  var _context3;
24584
24584
 
24585
- let {
24585
+ let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
24586
+ const {
24586
24587
  prefix = '',
24587
24588
  length = 7
24588
- } = _ref;
24589
+ } = options;
24589
24590
  const characters = '0123456789abcdefghijklmnopqrstuvwxyz';
24590
24591
  const total = characters.length;
24591
24592
  let randomId = '';
@@ -26917,7 +26918,7 @@ class tooltip_Tooltip extends baseComponent_BaseComponent {
26917
26918
  placement: props.position || 'top',
26918
26919
  transitionStyle: {},
26919
26920
  isPositionUpdated: false,
26920
- id: getUuidv4() // auto generate id, will be used by children.aria-descriptionby & content.id, improve a11y
26921
+ id: getUuidShort() // auto generate id, will be used by children.aria-describedby & content.id, improve a11y
26921
26922
 
26922
26923
  };
26923
26924
  this.foundation = new foundation_Tooltip(this.adapter);
@@ -30656,7 +30657,6 @@ const getRenderText = function (originEle, rows) {
30656
30657
  ellipsisContainer.style.zIndex = '-1000'; // clean up css overflow
30657
30658
 
30658
30659
  ellipsisContainer.style.textOverflow = 'clip';
30659
- ellipsisContainer.style.whiteSpace = 'normal';
30660
30660
  ellipsisContainer.style.webkitLineClamp = 'none'; // Render fake container
30661
30661
 
30662
30662
  external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.render( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null), ellipsisContainer); // Check if ellipsis in measure div is height enough for content
@@ -32715,7 +32715,8 @@ function icon_Icon() {
32715
32715
  viewBox: "0 0 36 36",
32716
32716
  version: "1.1",
32717
32717
  xmlns: "http://www.w3.org/2000/svg",
32718
- "aria-label": "spin"
32718
+ "aria-hidden": true,
32719
+ "data-icon": "spin"
32719
32720
  }), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("defs", null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("linearGradient", {
32720
32721
  x1: "0%",
32721
32722
  y1: "100%",
@@ -34694,7 +34695,6 @@ class avatar_Avatar extends baseComponent_BaseComponent {
34694
34695
  const hoverRender = hoverContent ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
34695
34696
  className: "".concat(avatar_prefixCls, "-hover")
34696
34697
  }, hoverContent) : null;
34697
- let ariaLabel;
34698
34698
 
34699
34699
  if (isImg) {
34700
34700
  content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("img", assign_default()({
@@ -34703,22 +34703,18 @@ class avatar_Avatar extends baseComponent_BaseComponent {
34703
34703
  onError: this.handleError,
34704
34704
  alt: alt
34705
34705
  }, imgAttr));
34706
- ariaLabel = 'avatar';
34707
34706
  } else if (typeof children === 'string') {
34708
34707
  content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
34709
34708
  className: "".concat(avatar_prefixCls, "-content")
34710
34709
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
34711
34710
  className: "".concat(avatar_prefixCls, "-label")
34712
34711
  }, children));
34713
- ariaLabel = "avatar of ".concat(children);
34714
34712
  }
34715
34713
 
34716
34714
  return (
34717
34715
  /*#__PURE__*/
34718
34716
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events
34719
- external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", assign_default()({
34720
- "aria-label": ariaLabel
34721
- }, others, {
34717
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", assign_default()({}, others, {
34722
34718
  style: style,
34723
34719
  className: avatarCls,
34724
34720
  onClick: onClick,
@@ -34872,8 +34868,7 @@ class avatarGroup_AvatarGroup extends external_root_React_commonjs2_react_common
34872
34868
  }
34873
34869
 
34874
34870
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
34875
- className: groupCls,
34876
- "aria-label": "avatar group"
34871
+ className: groupCls
34877
34872
  }, inner);
34878
34873
  }
34879
34874
 
@@ -48118,9 +48113,7 @@ class item_CollapsePanel extends external_root_React_commonjs2_react_commonjs_re
48118
48113
  if (typeof header === 'string') {
48119
48114
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null, iconPosLeft ? icon : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", null, header), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
48120
48115
  className: "".concat(collapse_constants_cssClasses.PREFIX, "-header-right")
48121
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
48122
- "aria-label": 'Extra of collapse header'
48123
- }, extra), iconPosLeft ? null : icon));
48116
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", null, extra), iconPosLeft ? null : icon));
48124
48117
  }
48125
48118
 
48126
48119
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null, iconPosLeft ? icon : null, header, iconPosLeft ? null : icon);
@@ -48155,7 +48148,6 @@ class item_CollapsePanel extends external_root_React_commonjs2_react_commonjs_re
48155
48148
  ["".concat(collapse_constants_cssClasses.PREFIX, "-content")]: true
48156
48149
  });
48157
48150
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({
48158
- "aria-label": 'Collapse panel',
48159
48151
  className: itemCls
48160
48152
  }, restProps), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
48161
48153
  role: "button",
@@ -48171,7 +48163,6 @@ class item_CollapsePanel extends external_root_React_commonjs2_react_commonjs_re
48171
48163
  reCalcKey: reCalcKey
48172
48164
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
48173
48165
  className: contentCls,
48174
- "aria-label": 'Collapse content',
48175
48166
  "aria-hidden": !active,
48176
48167
  id: this.ariaID
48177
48168
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
@@ -48295,8 +48286,7 @@ class collapse_Collapse extends baseComponent_BaseComponent {
48295
48286
  } = this.state;
48296
48287
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
48297
48288
  className: clsPrefix,
48298
- style: style,
48299
- "aria-label": "Collapse"
48289
+ style: style
48300
48290
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(collapse_context.Provider, {
48301
48291
  value: {
48302
48292
  activeSet,
@@ -57649,6 +57639,13 @@ class scrollItem_ScrollItem extends baseComponent_BaseComponent {
57649
57639
  });
57650
57640
  }
57651
57641
 
57642
+ componentWillUnmount() {
57643
+ if (this.props.cycled) {
57644
+ this.throttledAdjustList.cancel();
57645
+ this.debouncedSelect.cancel();
57646
+ }
57647
+ }
57648
+
57652
57649
  componentDidMount() {
57653
57650
  this.foundation.init();
57654
57651
  const {
@@ -60448,8 +60445,7 @@ class empty_Empty extends baseComponent_BaseComponent {
60448
60445
  };
60449
60446
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
60450
60447
  className: wrapperCls,
60451
- style: style,
60452
- "aria-label": "empty placeholder image"
60448
+ style: style
60453
60449
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
60454
60450
  className: "".concat(empty_prefixCls, "-image"),
60455
60451
  style: imageStyle
@@ -64044,14 +64040,16 @@ class textarea_TextArea extends baseComponent_BaseComponent {
64044
64040
  minLength: stateMinLength
64045
64041
  } = this.state;
64046
64042
  const wrapperCls = classnames_default()(className, "".concat(textarea_prefixCls, "-textarea-wrapper"), {
64047
- ["".concat(textarea_prefixCls, "-textarea-wrapper-disabled")]: disabled || readonly,
64043
+ ["".concat(textarea_prefixCls, "-textarea-wrapper-disabled")]: disabled,
64044
+ ["".concat(textarea_prefixCls, "-textarea-wrapper-readonly")]: readonly,
64048
64045
  [concat_default()(_context = "".concat(textarea_prefixCls, "-textarea-wrapper-")).call(_context, validateStatus)]: Boolean(validateStatus),
64049
64046
  ["".concat(textarea_prefixCls, "-textarea-wrapper-focus")]: isFocus // [`${prefixCls}-textarea-wrapper-resize`]: !autosize && resize,
64050
64047
 
64051
64048
  }); // const ref = this.props.forwardRef || this.textAreaRef;
64052
64049
 
64053
64050
  const itemCls = classnames_default()("".concat(textarea_prefixCls, "-textarea"), {
64054
- ["".concat(textarea_prefixCls, "-textarea-disabled")]: disabled || readonly,
64051
+ ["".concat(textarea_prefixCls, "-textarea-disabled")]: disabled,
64052
+ ["".concat(textarea_prefixCls, "-textarea-readonly")]: readonly,
64055
64053
  ["".concat(textarea_prefixCls, "-textarea-autosize")]: autosize,
64056
64054
  ["".concat(textarea_prefixCls, "-textarea-showClear")]: showClear
64057
64055
  });
@@ -64170,7 +64168,8 @@ const inputNumber_constants_numbers = assign_default()(assign_default()({}, inpu
64170
64168
  DEFAULT_STEP: 1,
64171
64169
  DEFAULT_SHIFT_STEP: 1,
64172
64170
  DEFAULT_PRESS_TIMEOUT: 250,
64173
- DEFAULT_PRESS_INTERVAL: 0
64171
+ DEFAULT_PRESS_INTERVAL: 0,
64172
+ MOUSE_BUTTON_LEFT: 0
64174
64173
  });
64175
64174
 
64176
64175
  const inputNumber_constants_strings = assign_default()({}, input_constants_strings);
@@ -64204,6 +64203,7 @@ function minus(num1, num2) {
64204
64203
 
64205
64204
 
64206
64205
 
64206
+
64207
64207
  /* eslint-disable max-len */
64208
64208
 
64209
64209
  /* eslint-disable no-param-reassign */
@@ -64490,6 +64490,10 @@ class foundation_InputNumberFoundation extends foundation {
64490
64490
  }
64491
64491
 
64492
64492
  handleUpClick(event) {
64493
+ if (!this._isMouseButtonLeft(event)) {
64494
+ return;
64495
+ }
64496
+
64493
64497
  this._adapter.setClickUpOrDown(true);
64494
64498
 
64495
64499
  if (event) {
@@ -64509,6 +64513,10 @@ class foundation_InputNumberFoundation extends foundation {
64509
64513
  }
64510
64514
 
64511
64515
  handleDownClick(event) {
64516
+ if (!this._isMouseButtonLeft(event)) {
64517
+ return;
64518
+ }
64519
+
64512
64520
  this._adapter.setClickUpOrDown(true);
64513
64521
 
64514
64522
  if (event) {
@@ -64526,6 +64534,15 @@ class foundation_InputNumberFoundation extends foundation {
64526
64534
  });
64527
64535
  });
64528
64536
  }
64537
+ /**
64538
+ * Whether it is a left mouse button click
64539
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
64540
+ */
64541
+
64542
+
64543
+ _isMouseButtonLeft(event) {
64544
+ return get_default()(event, 'button') === inputNumber_constants_numbers.MOUSE_BUTTON_LEFT;
64545
+ }
64529
64546
 
64530
64547
  _preventDefault(event) {
64531
64548
  const keepFocus = this._adapter.getProp('keepFocus');
@@ -65284,9 +65301,10 @@ class inputNumber_InputNumber extends baseComponent_BaseComponent {
65284
65301
  innerButtons,
65285
65302
  style,
65286
65303
  onNumberChange,
65287
- keepFocus
65304
+ keepFocus,
65305
+ defaultValue
65288
65306
  } = _a,
65289
- rest = inputNumber_rest(_a, ["disabled", "className", "prefixCls", "min", "max", "step", "shiftStep", "precision", "formatter", "parser", "forwardedRef", "onUpClick", "onDownClick", "pressInterval", "pressTimeout", "suffix", "size", "hideButtons", "innerButtons", "style", "onNumberChange", "keepFocus"]);
65307
+ rest = inputNumber_rest(_a, ["disabled", "className", "prefixCls", "min", "max", "step", "shiftStep", "precision", "formatter", "parser", "forwardedRef", "onUpClick", "onDownClick", "pressInterval", "pressTimeout", "suffix", "size", "hideButtons", "innerButtons", "style", "onNumberChange", "keepFocus", "defaultValue"]);
65290
65308
 
65291
65309
  const {
65292
65310
  value,
@@ -66187,7 +66205,7 @@ class Item_NavItem extends baseComponent_BaseComponent {
66187
66205
  } else {
66188
66206
  let placeholderIcons = null;
66189
66207
 
66190
- if (mode === navigation_constants_strings.MODE_VERTICAL && !limitIndent) {
66208
+ if (mode === navigation_constants_strings.MODE_VERTICAL && !limitIndent && !isCollapsed) {
66191
66209
  const iconAmount = icon && !indent ? level : level - 1;
66192
66210
  placeholderIcons = times_default()(iconAmount, () => this.renderIcon(null, navigation_constants_strings.ICON_POS_RIGHT, false));
66193
66211
  }
@@ -66632,7 +66650,7 @@ class SubNav_SubNav extends baseComponent_BaseComponent {
66632
66650
 
66633
66651
  let placeholderIcons = null;
66634
66652
 
66635
- if (mode === navigation_constants_strings.MODE_VERTICAL && !limitIndent) {
66653
+ if (mode === navigation_constants_strings.MODE_VERTICAL && !limitIndent && !isCollapsed) {
66636
66654
  /* Different icons' amount means different indents.*/
66637
66655
  const iconAmount = icon && !indent ? level : level - 1;
66638
66656
  placeholderIcons = times_default()(iconAmount, index => this.renderIcon(null, navigation_constants_strings.ICON_POS_RIGHT, false, undefined, index));
@@ -67464,7 +67482,7 @@ class notificationListFoundation_NotificationListFoundation extends foundation {
67464
67482
  // }
67465
67483
 
67466
67484
 
67467
- this._adapter.updateNotices([...notices, opts]); // return id;
67485
+ this._adapter.updateNotices([opts, ...notices]); // return id;
67468
67486
 
67469
67487
  }
67470
67488
 
@@ -73459,7 +73477,7 @@ class select_Select extends baseComponent_BaseComponent {
73459
73477
  role: "button",
73460
73478
  "aria-label": "Use the input box to create an optional item",
73461
73479
  onClick: e => this.onSelect(option, optionIndex, e),
73462
- key: new Date().valueOf()
73480
+ key: option.key || option.label
73463
73481
  }, customCreateItem)
73464
73482
  );
73465
73483
  }
@@ -76680,8 +76698,7 @@ class SideSheetContent_SideSheetContent extends external_root_React_commonjs2_re
76680
76698
 
76681
76699
  if (title) {
76682
76700
  header = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
76683
- className: "".concat(SideSheetContent_prefixCls, "-title"),
76684
- "aria-label": 'Sidesheet title'
76701
+ className: "".concat(SideSheetContent_prefixCls, "-title")
76685
76702
  }, this.props.title);
76686
76703
  }
76687
76704
 
@@ -76700,6 +76717,7 @@ class SideSheetContent_SideSheetContent extends external_root_React_commonjs2_re
76700
76717
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
76701
76718
  className: "".concat(SideSheetContent_prefixCls, "-header"),
76702
76719
  role: 'heading',
76720
+ "aria-level": 1,
76703
76721
  style: assign_default()({}, headerStyle)
76704
76722
  }, header, closer);
76705
76723
  }
@@ -76732,15 +76750,12 @@ class SideSheetContent_SideSheetContent extends external_root_React_commonjs2_re
76732
76750
  // onMouseDown={this.onDialogMouseDown}
76733
76751
  style: assign_default()(assign_default()({}, props.style), style)
76734
76752
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
76735
- className: "".concat(SideSheetContent_prefixCls, "-content"),
76736
- "aria-label": "Sidesheet content"
76753
+ className: "".concat(SideSheetContent_prefixCls, "-content")
76737
76754
  }, header, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
76738
76755
  className: "".concat(SideSheetContent_prefixCls, "-body"),
76739
- "aria-label": "Sidesheet body",
76740
76756
  style: props.bodyStyle
76741
76757
  }, props.children), props.footer ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
76742
- className: "".concat(SideSheetContent_prefixCls, "-footer"),
76743
- "aria-label": "Sidesheet footer"
76758
+ className: "".concat(SideSheetContent_prefixCls, "-footer")
76744
76759
  }, props.footer) : null));
76745
76760
  return dialogElement;
76746
76761
  }
@@ -76762,8 +76777,7 @@ class SideSheetContent_SideSheetContent extends external_root_React_commonjs2_re
76762
76777
 
76763
76778
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
76764
76779
  className: wrapperCls,
76765
- style: wrapperStyle,
76766
- "aria-label": this.props['aria-label']
76780
+ style: wrapperStyle
76767
76781
  }, this.getMaskElement(), this.getDialogElement());
76768
76782
  }
76769
76783
 
@@ -86406,15 +86420,18 @@ class Table_Table extends baseComponent_BaseComponent {
86406
86420
  const _dataSource = [...dataSource];
86407
86421
  const filteredSortedDataSource = this.foundation.getFilteredSortedDataSource(_dataSource, stateQueries);
86408
86422
  this.foundation.setCachedFilteredSortedDataSource(filteredSortedDataSource);
86409
- states.dataSource = filteredSortedDataSource; // when dataSource has change, should reset currentPage
86410
-
86411
- states.pagination = isObject_default()(statePagination) ? assign_default()(assign_default()({}, statePagination), {
86412
- currentPage: isObject_default()(propsPagination) && propsPagination.currentPage ? propsPagination.currentPage : 1
86413
- }) : statePagination;
86423
+ states.dataSource = filteredSortedDataSource;
86414
86424
 
86415
86425
  if (this.props.groupBy) {
86416
86426
  states.groups = null;
86417
86427
  }
86428
+ } // when dataSource has change, should reset currentPage
86429
+
86430
+
86431
+ if (dataSource !== prevProps.dataSource) {
86432
+ states.pagination = isObject_default()(statePagination) ? assign_default()(assign_default()({}, statePagination), {
86433
+ currentPage: isObject_default()(propsPagination) && propsPagination.currentPage ? propsPagination.currentPage : 1
86434
+ }) : statePagination;
86418
86435
  }
86419
86436
 
86420
86437
  if (keys_default()(states).length) {
@@ -86601,6 +86618,7 @@ class Table_Table extends baseComponent_BaseComponent {
86601
86618
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
86602
86619
  ref: this.rootWrapRef,
86603
86620
  className: classnames_default()(className, "".concat(prefixCls, "-wrapper")),
86621
+ "data-column-fixed": anyColumnFixed,
86604
86622
  style: wrapStyle,
86605
86623
  id: id
86606
86624
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(table_TableContextProvider, assign_default()({}, tableContextValue), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(spin_0, {
@@ -88876,7 +88894,13 @@ class foundation_TimePickerFoundation extends foundation {
88876
88894
  }
88877
88895
  }
88878
88896
 
88879
- this._adapter.notifyChange(_value, str);
88897
+ const onChangeWithDateFirst = this.getProp('onChangeWithDateFirst');
88898
+
88899
+ if (onChangeWithDateFirst) {
88900
+ this._adapter.notifyChange(_value, str);
88901
+ } else {
88902
+ this._adapter.notifyChange(str, _value);
88903
+ }
88880
88904
  }
88881
88905
 
88882
88906
  _hasChanged() {
@@ -89343,9 +89367,7 @@ class TimePicker_TimePicker extends baseComponent_BaseComponent {
89343
89367
  notifyOpenChange: function () {
89344
89368
  return _this2.props.onOpenChange(...arguments);
89345
89369
  },
89346
- notifyChange: function () {
89347
- return _this2.props.onChange && _this2.props.onChange(...arguments);
89348
- },
89370
+ notifyChange: (agr1, arg2) => this.props.onChange && this.props.onChange(agr1, arg2),
89349
89371
  notifyFocus: function () {
89350
89372
  return _this2.props.onFocus && _this2.props.onFocus(...arguments);
89351
89373
  },
@@ -89663,6 +89685,7 @@ TimePicker_TimePicker.defaultProps = assign_default()({
89663
89685
  onFocus: noop_default.a,
89664
89686
  onBlur: noop_default.a,
89665
89687
  onChange: noop_default.a,
89688
+ onChangeWithDateFirst: true,
89666
89689
  use12Hours: false,
89667
89690
  focusOnOpen: false,
89668
89691
  onKeyDown: noop_default.a,
@@ -91260,6 +91283,7 @@ const TreeContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
91260
91283
 
91261
91284
 
91262
91285
 
91286
+
91263
91287
  var treeNode_rest = undefined && undefined.__rest || function (s, e) {
91264
91288
  var t = {};
91265
91289
 
@@ -91722,7 +91746,14 @@ class treeNode_TreeNode extends external_root_React_commonjs2_react_commonjs_rea
91722
91746
  ref: this.setRef
91723
91747
  }, dragProps));
91724
91748
  } else {
91725
- return customLabel;
91749
+ if (isEmpty_default()(style)) {
91750
+ return customLabel;
91751
+ } else {
91752
+ // In virtualization, props.style will contain location information
91753
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(customLabel, {
91754
+ style: assign_default()(assign_default()({}, get_default()(customLabel, ['props', 'style'])), style)
91755
+ });
91756
+ }
91726
91757
  }
91727
91758
  }
91728
91759
 
@@ -94500,7 +94531,7 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
94500
94531
  } // if treeData keys changes, we won't show animation
94501
94532
 
94502
94533
 
94503
- if (treeData && props.motion && !isEqual_default()(new set_default.a(keys_default()(newState.keyEntities)), new set_default.a(keys_default()(prevState.keyEntities)))) {
94534
+ if (treeData && props.motion && !isEqual_default()(keys_default()(newState.keyEntities), keys_default()(prevState.keyEntities))) {
94504
94535
  if (prevProps && props.motion) {
94505
94536
  newState.motionKeys = new set_default.a([]);
94506
94537
  newState.motionType = null;
@@ -94546,7 +94577,11 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
94546
94577
  newState.selectedKeys = findKeysForValues(normalizeValue(props.defaultValue, withObject), valueEntities, isMultiple);
94547
94578
  } else if (treeData) {
94548
94579
  // If `treeData` changed, we also need check it
94549
- newState.selectedKeys = findKeysForValues(normalizeValue(props.value, withObject) || '', valueEntities, isMultiple);
94580
+ if (props.value) {
94581
+ newState.selectedKeys = findKeysForValues(normalizeValue(props.value, withObject) || '', valueEntities, isMultiple);
94582
+ } else {
94583
+ newState.selectedKeys = updateKeys(prevState.selectedKeys, keyEntities);
94584
+ }
94550
94585
  }
94551
94586
  } else {
94552
94587
  // checkedKeys: multiple mode controlled || data changed
@@ -94558,7 +94593,11 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
94558
94593
  checkedKeyValues = findKeysForValues(normalizeValue(props.defaultValue, withObject), valueEntities, isMultiple);
94559
94594
  } else if (treeData) {
94560
94595
  // If `treeData` changed, we also need check it
94561
- checkedKeyValues = findKeysForValues(normalizeValue(props.value, withObject) || [], valueEntities, isMultiple);
94596
+ if (props.value) {
94597
+ checkedKeyValues = findKeysForValues(normalizeValue(props.value, withObject) || [], valueEntities, isMultiple);
94598
+ } else {
94599
+ checkedKeyValues = updateKeys(prevState.checkedKeys, keyEntities);
94600
+ }
94562
94601
  }
94563
94602
 
94564
94603
  if (checkedKeyValues) {
@@ -96503,12 +96542,12 @@ class fileCard_FileCard extends external_root_React_commonjs2_react_commonjs_rea
96503
96542
  orbitStroke: '#FFF',
96504
96543
  "aria-label": "uploading file progress"
96505
96544
  }) : null, showRetry ? retry : null, showReplace && replace, showPicInfo && picInfo, !disabled && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
96506
- className: closeCls
96545
+ className: closeCls,
96546
+ onClick: e => this.onRemove(e)
96507
96547
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, {
96508
96548
  tabIndex: 0,
96509
96549
  role: "button",
96510
- size: "extra-small",
96511
- onClick: e => this.onRemove(e)
96550
+ size: "extra-small"
96512
96551
  })), this.renderPicValidateMsg());
96513
96552
  }
96514
96553