@douyinfe/semi-ui 2.52.3 → 2.53.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 (127) hide show
  1. package/dist/umd/semi-ui.js +804 -273
  2. package/dist/umd/semi-ui.js.map +1 -1
  3. package/dist/umd/semi-ui.min.js +1 -1
  4. package/dist/umd/semi-ui.min.js.map +1 -1
  5. package/lib/cjs/_utils/index.d.ts +2 -0
  6. package/lib/cjs/_utils/index.js +77 -0
  7. package/lib/cjs/_utils/semi-global.d.ts +46 -0
  8. package/lib/cjs/_utils/semi-global.js +13 -0
  9. package/lib/cjs/autoComplete/index.d.ts +2 -25
  10. package/lib/cjs/autoComplete/index.js +4 -2
  11. package/lib/cjs/avatar/index.d.ts +2 -10
  12. package/lib/cjs/avatar/index.js +4 -2
  13. package/lib/cjs/backtop/index.d.ts +2 -5
  14. package/lib/cjs/backtop/index.js +4 -2
  15. package/lib/cjs/button/Button.d.ts +1 -1
  16. package/lib/cjs/button/index.d.ts +3 -1
  17. package/lib/cjs/button/index.js +3 -0
  18. package/lib/cjs/carousel/index.d.ts +2 -2
  19. package/lib/cjs/cascader/index.d.ts +2 -31
  20. package/lib/cjs/cascader/index.js +3 -2
  21. package/lib/cjs/collapse/index.d.ts +2 -7
  22. package/lib/cjs/collapse/index.js +4 -2
  23. package/lib/cjs/collapsible/index.d.ts +3 -9
  24. package/lib/cjs/collapsible/index.js +4 -2
  25. package/lib/cjs/configProvider/index.d.ts +2 -1
  26. package/lib/cjs/configProvider/index.js +5 -2
  27. package/lib/cjs/datePicker/datePicker.d.ts +2 -44
  28. package/lib/cjs/datePicker/datePicker.js +4 -2
  29. package/lib/cjs/dropdown/index.d.ts +2 -12
  30. package/lib/cjs/dropdown/index.js +4 -2
  31. package/lib/cjs/form/arrayField.js +3 -3
  32. package/lib/cjs/modal/Modal.d.ts +2 -20
  33. package/lib/cjs/modal/Modal.js +3 -2
  34. package/lib/cjs/modal/confirm.d.ts +14 -14
  35. package/lib/cjs/navigation/index.d.ts +2 -15
  36. package/lib/cjs/navigation/index.js +4 -2
  37. package/lib/cjs/notification/notice.d.ts +2 -12
  38. package/lib/cjs/notification/notice.js +3 -2
  39. package/lib/cjs/overflowList/index.d.ts +2 -9
  40. package/lib/cjs/overflowList/index.js +3 -2
  41. package/lib/cjs/popconfirm/index.d.ts +2 -15
  42. package/lib/cjs/popconfirm/index.js +4 -2
  43. package/lib/cjs/popover/index.d.ts +2 -23
  44. package/lib/cjs/popover/index.js +4 -2
  45. package/lib/cjs/resizeObserver/index.d.ts +14 -1
  46. package/lib/cjs/resizeObserver/index.js +66 -31
  47. package/lib/cjs/select/index.d.ts +1 -0
  48. package/lib/cjs/select/index.js +3 -2
  49. package/lib/cjs/sideSheet/index.d.ts +1 -0
  50. package/lib/cjs/sideSheet/index.js +20 -18
  51. package/lib/cjs/tabs/index.d.ts +1 -0
  52. package/lib/cjs/tabs/index.js +4 -2
  53. package/lib/cjs/tagInput/index.d.ts +1 -1
  54. package/lib/cjs/timePicker/index.d.ts +2 -34
  55. package/lib/cjs/timePicker/index.js +3 -1
  56. package/lib/cjs/toast/toast.d.ts +2 -11
  57. package/lib/cjs/toast/toast.js +3 -2
  58. package/lib/cjs/tooltip/index.d.ts +2 -32
  59. package/lib/cjs/tooltip/index.js +3 -2
  60. package/lib/cjs/typography/base.d.ts +7 -4
  61. package/lib/cjs/typography/base.js +127 -64
  62. package/lib/cjs/typography/numeral.d.ts +1 -1
  63. package/lib/cjs/typography/paragraph.d.ts +1 -1
  64. package/lib/cjs/typography/text.d.ts +1 -1
  65. package/lib/cjs/typography/title.d.ts +1 -1
  66. package/lib/es/_utils/index.d.ts +2 -0
  67. package/lib/es/_utils/index.js +75 -0
  68. package/lib/es/_utils/semi-global.d.ts +46 -0
  69. package/lib/es/_utils/semi-global.js +6 -0
  70. package/lib/es/autoComplete/index.d.ts +2 -25
  71. package/lib/es/autoComplete/index.js +4 -2
  72. package/lib/es/avatar/index.d.ts +2 -10
  73. package/lib/es/avatar/index.js +4 -2
  74. package/lib/es/backtop/index.d.ts +2 -5
  75. package/lib/es/backtop/index.js +4 -2
  76. package/lib/es/button/Button.d.ts +1 -1
  77. package/lib/es/button/index.d.ts +3 -1
  78. package/lib/es/button/index.js +3 -0
  79. package/lib/es/carousel/index.d.ts +2 -2
  80. package/lib/es/cascader/index.d.ts +2 -31
  81. package/lib/es/cascader/index.js +4 -3
  82. package/lib/es/collapse/index.d.ts +2 -7
  83. package/lib/es/collapse/index.js +4 -2
  84. package/lib/es/collapsible/index.d.ts +3 -9
  85. package/lib/es/collapsible/index.js +4 -2
  86. package/lib/es/configProvider/index.d.ts +2 -1
  87. package/lib/es/configProvider/index.js +5 -2
  88. package/lib/es/datePicker/datePicker.d.ts +2 -44
  89. package/lib/es/datePicker/datePicker.js +4 -2
  90. package/lib/es/dropdown/index.d.ts +2 -12
  91. package/lib/es/dropdown/index.js +4 -2
  92. package/lib/es/form/arrayField.js +3 -3
  93. package/lib/es/modal/Modal.d.ts +2 -20
  94. package/lib/es/modal/Modal.js +4 -3
  95. package/lib/es/modal/confirm.d.ts +14 -14
  96. package/lib/es/navigation/index.d.ts +2 -15
  97. package/lib/es/navigation/index.js +4 -2
  98. package/lib/es/notification/notice.d.ts +2 -12
  99. package/lib/es/notification/notice.js +4 -3
  100. package/lib/es/overflowList/index.d.ts +2 -9
  101. package/lib/es/overflowList/index.js +4 -3
  102. package/lib/es/popconfirm/index.d.ts +2 -15
  103. package/lib/es/popconfirm/index.js +4 -2
  104. package/lib/es/popover/index.d.ts +2 -23
  105. package/lib/es/popover/index.js +4 -2
  106. package/lib/es/resizeObserver/index.d.ts +14 -1
  107. package/lib/es/resizeObserver/index.js +64 -30
  108. package/lib/es/select/index.d.ts +1 -0
  109. package/lib/es/select/index.js +4 -3
  110. package/lib/es/sideSheet/index.d.ts +1 -0
  111. package/lib/es/sideSheet/index.js +21 -19
  112. package/lib/es/tabs/index.d.ts +1 -0
  113. package/lib/es/tabs/index.js +4 -2
  114. package/lib/es/tagInput/index.d.ts +1 -1
  115. package/lib/es/timePicker/index.d.ts +2 -34
  116. package/lib/es/timePicker/index.js +3 -1
  117. package/lib/es/toast/toast.d.ts +2 -11
  118. package/lib/es/toast/toast.js +4 -3
  119. package/lib/es/tooltip/index.d.ts +2 -32
  120. package/lib/es/tooltip/index.js +4 -3
  121. package/lib/es/typography/base.d.ts +7 -4
  122. package/lib/es/typography/base.js +128 -65
  123. package/lib/es/typography/numeral.d.ts +1 -1
  124. package/lib/es/typography/paragraph.d.ts +1 -1
  125. package/lib/es/typography/text.d.ts +1 -1
  126. package/lib/es/typography/title.d.ts +1 -1
  127. package/package.json +9 -8
@@ -9125,42 +9125,6 @@ function clone(value) {
9125
9125
  module.exports = clone;
9126
9126
 
9127
9127
 
9128
- /***/ }),
9129
-
9130
- /***/ "c2re":
9131
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9132
-
9133
- var baseClone = __webpack_require__("kn3Q");
9134
-
9135
- /** Used to compose bitmasks for cloning. */
9136
- var CLONE_DEEP_FLAG = 1,
9137
- CLONE_SYMBOLS_FLAG = 4;
9138
-
9139
- /**
9140
- * This method is like `_.clone` except that it recursively clones `value`.
9141
- *
9142
- * @static
9143
- * @memberOf _
9144
- * @since 1.0.0
9145
- * @category Lang
9146
- * @param {*} value The value to recursively clone.
9147
- * @returns {*} Returns the deep cloned value.
9148
- * @see _.clone
9149
- * @example
9150
- *
9151
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
9152
- *
9153
- * var deep = _.cloneDeep(objects);
9154
- * console.log(deep[0] === objects[0]);
9155
- * // => false
9156
- */
9157
- function cloneDeep(value) {
9158
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
9159
- }
9160
-
9161
- module.exports = cloneDeep;
9162
-
9163
-
9164
9128
  /***/ }),
9165
9129
 
9166
9130
  /***/ "NdXQ":
@@ -19585,10 +19549,45 @@ const findAll = _ref4 => {
19585
19549
  return result;
19586
19550
  };
19587
19551
 
19552
+ ;// CONCATENATED MODULE: ./_utils/semi-global.ts
19553
+ class SemiGlobal {
19554
+ constructor() {
19555
+ this.config = {};
19556
+ }
19557
+ }
19558
+ /* harmony default export */ const semi_global = (new SemiGlobal());
19588
19559
  ;// CONCATENATED MODULE: ./_utils/index.tsx
19589
19560
 
19590
19561
 
19591
19562
 
19563
+ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
19564
+ function adopt(value) {
19565
+ return value instanceof P ? value : new P(function (resolve) {
19566
+ resolve(value);
19567
+ });
19568
+ }
19569
+ return new (P || (P = Promise))(function (resolve, reject) {
19570
+ function fulfilled(value) {
19571
+ try {
19572
+ step(generator.next(value));
19573
+ } catch (e) {
19574
+ reject(e);
19575
+ }
19576
+ }
19577
+ function rejected(value) {
19578
+ try {
19579
+ step(generator["throw"](value));
19580
+ } catch (e) {
19581
+ reject(e);
19582
+ }
19583
+ }
19584
+ function step(result) {
19585
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
19586
+ }
19587
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19588
+ });
19589
+ };
19590
+
19592
19591
 
19593
19592
 
19594
19593
 
@@ -19742,12 +19741,59 @@ function getFocusableElements(node) {
19742
19741
  const focusableElements = Array.from(node.querySelectorAll(focusableSelectorsStr));
19743
19742
  return focusableElements;
19744
19743
  }
19744
+ function runAfterTicks(func, numberOfTicks) {
19745
+ return __awaiter(this, void 0, void 0, function* () {
19746
+ if (numberOfTicks === 0) {
19747
+ yield func();
19748
+ return;
19749
+ } else {
19750
+ yield new Promise(resolve => {
19751
+ setTimeout(() => __awaiter(this, void 0, void 0, function* () {
19752
+ yield runAfterTicks(func, numberOfTicks - 1);
19753
+ resolve();
19754
+ }), 0);
19755
+ });
19756
+ return;
19757
+ }
19758
+ });
19759
+ }
19745
19760
  function getScrollbarWidth() {
19746
19761
  if (globalThis && Object.prototype.toString.call(globalThis) === '[object Window]') {
19747
19762
  return window.innerWidth - document.documentElement.clientWidth;
19748
19763
  }
19749
19764
  return 0;
19750
19765
  }
19766
+ function getDefaultPropsFromGlobalConfig(componentName) {
19767
+ let semiDefaultProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19768
+ const getFromGlobalConfig = () => {
19769
+ var _a, _b;
19770
+ return ((_b = (_a = semi_global === null || semi_global === void 0 ? void 0 : semi_global.config) === null || _a === void 0 ? void 0 : _a.overrideDefaultProps) === null || _b === void 0 ? void 0 : _b[componentName]) || {};
19771
+ };
19772
+ return new Proxy(Object.assign({}, semiDefaultProps), {
19773
+ get(target, key, receiver) {
19774
+ const defaultPropsFromGlobal = getFromGlobalConfig();
19775
+ if (key in defaultPropsFromGlobal) {
19776
+ return defaultPropsFromGlobal[key];
19777
+ }
19778
+ return Reflect.get(target, key, receiver);
19779
+ },
19780
+ set(target, key, value, receiver) {
19781
+ return Reflect.set(target, key, value, receiver);
19782
+ },
19783
+ ownKeys() {
19784
+ const defaultPropsFromGlobal = getFromGlobalConfig();
19785
+ return Array.from(new Set([...Reflect.ownKeys(semiDefaultProps), ...Object.keys(defaultPropsFromGlobal)]));
19786
+ },
19787
+ getOwnPropertyDescriptor(target, key) {
19788
+ const defaultPropsFromGlobal = getFromGlobalConfig();
19789
+ if (key in defaultPropsFromGlobal) {
19790
+ return Reflect.getOwnPropertyDescriptor(defaultPropsFromGlobal, key);
19791
+ } else {
19792
+ return Reflect.getOwnPropertyDescriptor(target, key);
19793
+ }
19794
+ }
19795
+ });
19796
+ }
19751
19797
  ;// CONCATENATED MODULE: ./configProvider/context.tsx
19752
19798
 
19753
19799
  const ConfigContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({});
@@ -20721,7 +20767,8 @@ Tooltip.propTypes = {
20721
20767
  preventScroll: (prop_types_default()).bool,
20722
20768
  keepDOM: (prop_types_default()).bool
20723
20769
  };
20724
- Tooltip.defaultProps = {
20770
+ Tooltip.__SemiComponentName__ = "Tooltip";
20771
+ Tooltip.defaultProps = getDefaultPropsFromGlobalConfig(Tooltip.__SemiComponentName__, {
20725
20772
  arrowBounding: numbers.ARROW_BOUNDING,
20726
20773
  autoAdjustOverflow: true,
20727
20774
  arrowPointAtCenter: true,
@@ -20747,7 +20794,7 @@ Tooltip.defaultProps = {
20747
20794
  disableFocusListener: false,
20748
20795
  disableArrowKeyDown: false,
20749
20796
  keepDOM: false
20750
- };
20797
+ });
20751
20798
  // EXTERNAL MODULE: ../../node_modules/copy-text-to-clipboard/index.js
20752
20799
  var copy_text_to_clipboard = __webpack_require__("HDX/");
20753
20800
  var copy_text_to_clipboard_default = /*#__PURE__*/__webpack_require__.n(copy_text_to_clipboard);
@@ -22387,6 +22434,7 @@ var popover_rest = undefined && undefined.__rest || function (s, e) {
22387
22434
 
22388
22435
 
22389
22436
 
22437
+
22390
22438
  const popover_positionSet = popover_constants_strings.POSITION_SET;
22391
22439
  const popover_triggerSet = popover_constants_strings.TRIGGER_SET;
22392
22440
  class Popover extends (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).PureComponent {
@@ -22510,7 +22558,8 @@ Popover.propTypes = {
22510
22558
  guardFocus: (prop_types_default()).bool,
22511
22559
  disableArrowKeyDown: (prop_types_default()).bool
22512
22560
  };
22513
- Popover.defaultProps = {
22561
+ Popover.__SemiComponentName__ = "Popover";
22562
+ Popover.defaultProps = getDefaultPropsFromGlobalConfig(Popover.__SemiComponentName__, {
22514
22563
  arrowBounding: constants_numbers.ARROW_BOUNDING,
22515
22564
  showArrow: false,
22516
22565
  autoAdjustOverflow: true,
@@ -22527,7 +22576,7 @@ Popover.defaultProps = {
22527
22576
  returnFocusOnClose: true,
22528
22577
  guardFocus: true,
22529
22578
  disableFocusListener: true
22530
- };
22579
+ });
22531
22580
  /* harmony default export */ const popover_0 = (Popover);
22532
22581
  ;// CONCATENATED MODULE: ./typography/util.tsx
22533
22582
 
@@ -22664,9 +22713,18 @@ const getRenderText = function (originEle, rows) {
22664
22713
 
22665
22714
 
22666
22715
 
22716
+ var ObserverProperty;
22717
+ (function (ObserverProperty) {
22718
+ ObserverProperty["Width"] = "width";
22719
+ ObserverProperty["Height"] = "height";
22720
+ ObserverProperty["All"] = "all";
22721
+ })(ObserverProperty || (ObserverProperty = {}));
22667
22722
  class ReactResizeObserver extends BaseComponent {
22668
22723
  constructor(props) {
22724
+ var _this;
22669
22725
  super(props);
22726
+ _this = this;
22727
+ this.formerPropertyValue = new Map();
22670
22728
  this.getElement = () => {
22671
22729
  try {
22672
22730
  // using findDOMNode for two reasons:
@@ -22678,6 +22736,54 @@ class ReactResizeObserver extends BaseComponent {
22678
22736
  return null;
22679
22737
  }
22680
22738
  };
22739
+ this.handleResizeEventTriggered = entries => {
22740
+ if (this.props.observerProperty === ObserverProperty.All) {
22741
+ this.props.onResize(entries);
22742
+ } else {
22743
+ const finalEntries = [];
22744
+ for (const entry of entries) {
22745
+ if (this.formerPropertyValue.has(entry.target)) {
22746
+ if (entry.contentRect[this.props.observerProperty] !== this.formerPropertyValue.get(entry.target)) {
22747
+ this.formerPropertyValue.set(entry.target, entry.contentRect[this.props.observerProperty]);
22748
+ finalEntries.push(entry);
22749
+ }
22750
+ } else {
22751
+ this.formerPropertyValue.set(entry.target, entry.contentRect[this.props.observerProperty]);
22752
+ finalEntries.push(entry);
22753
+ }
22754
+ }
22755
+ if (finalEntries.length > 0) {
22756
+ this.props.onResize(finalEntries);
22757
+ }
22758
+ }
22759
+ };
22760
+ this.observeElement = function () {
22761
+ let force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
22762
+ const element = _this.getElement();
22763
+ if (!_this.observer) {
22764
+ _this.observer = new ResizeObserver(_this.handleResizeEventTriggered);
22765
+ }
22766
+ if (!(element && element instanceof Element)) {
22767
+ // stop everything if not defined
22768
+ _this.observer.disconnect();
22769
+ return;
22770
+ }
22771
+ if (element === _this.element && !force) {
22772
+ // abort if given same element -- nothing to update (unless forced)
22773
+ return;
22774
+ } else {
22775
+ // clear observer list if new element
22776
+ _this.observer.disconnect();
22777
+ // remember element reference for next time
22778
+ _this.element = element;
22779
+ }
22780
+ // observer callback is invoked immediately when observing new elements
22781
+ _this.observer.observe(element);
22782
+ if (_this.props.observeParent && element.parentNode && element.parentNode.ownerDocument && element.parentNode.ownerDocument.defaultView && element.parentNode instanceof element.parentNode.ownerDocument.defaultView.HTMLElement) {
22783
+ _this._parentNode = element.parentNode;
22784
+ _this.observer.observe(_this._parentNode);
22785
+ }
22786
+ };
22681
22787
  this.mergeRef = (ref, node) => {
22682
22788
  this.childNode = node;
22683
22789
  if (typeof ref === 'function') {
@@ -22687,7 +22793,7 @@ class ReactResizeObserver extends BaseComponent {
22687
22793
  }
22688
22794
  };
22689
22795
  if (globalThis['ResizeObserver']) {
22690
- this.observer = new ResizeObserver(props.onResize);
22796
+ this.observer = new ResizeObserver(this.handleResizeEventTriggered);
22691
22797
  }
22692
22798
  }
22693
22799
  componentDidMount() {
@@ -22705,33 +22811,6 @@ class ReactResizeObserver extends BaseComponent {
22705
22811
  this.element = null;
22706
22812
  }
22707
22813
  }
22708
- observeElement() {
22709
- let force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
22710
- const element = this.getElement();
22711
- if (!this.observer) {
22712
- this.observer = new ResizeObserver(this.props.onResize);
22713
- }
22714
- if (!(element && element instanceof Element)) {
22715
- // stop everything if not defined
22716
- this.observer.disconnect();
22717
- return;
22718
- }
22719
- if (element === this.element && !force) {
22720
- // abort if given same element -- nothing to update (unless forced)
22721
- return;
22722
- } else {
22723
- // clear observer list if new element
22724
- this.observer.disconnect();
22725
- // remember element reference for next time
22726
- this.element = element;
22727
- }
22728
- // observer callback is invoked immediately when observing new elements
22729
- this.observer.observe(element);
22730
- if (this.props.observeParent && element.parentNode && element.parentNode.ownerDocument && element.parentNode.ownerDocument.defaultView && element.parentNode instanceof element.parentNode.ownerDocument.defaultView.HTMLElement) {
22731
- this._parentNode = element.parentNode;
22732
- this.observer.observe(this._parentNode);
22733
- }
22734
- }
22735
22814
  render() {
22736
22815
  const child = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.only(this.props.children);
22737
22816
  const {
@@ -22744,11 +22823,15 @@ class ReactResizeObserver extends BaseComponent {
22744
22823
  }
22745
22824
  ReactResizeObserver.propTypes = {
22746
22825
  onResize: (prop_types_default()).func,
22747
- observeParent: (prop_types_default()).bool
22826
+ observeParent: (prop_types_default()).bool,
22827
+ observerProperty: (prop_types_default()).string,
22828
+ delayTick: (prop_types_default()).number
22748
22829
  };
22749
22830
  ReactResizeObserver.defaultProps = {
22750
22831
  onResize: () => {},
22751
- observeParent: false
22832
+ observeParent: false,
22833
+ observerProperty: "all",
22834
+ delayTick: 0
22752
22835
  };
22753
22836
  ;// CONCATENATED MODULE: ./typography/base.tsx
22754
22837
 
@@ -22757,6 +22840,33 @@ ReactResizeObserver.defaultProps = {
22757
22840
 
22758
22841
 
22759
22842
 
22843
+ var base_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
22844
+ function adopt(value) {
22845
+ return value instanceof P ? value : new P(function (resolve) {
22846
+ resolve(value);
22847
+ });
22848
+ }
22849
+ return new (P || (P = Promise))(function (resolve, reject) {
22850
+ function fulfilled(value) {
22851
+ try {
22852
+ step(generator.next(value));
22853
+ } catch (e) {
22854
+ reject(e);
22855
+ }
22856
+ }
22857
+ function rejected(value) {
22858
+ try {
22859
+ step(generator["throw"](value));
22860
+ } catch (e) {
22861
+ reject(e);
22862
+ }
22863
+ }
22864
+ function step(result) {
22865
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
22866
+ }
22867
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22868
+ });
22869
+ };
22760
22870
  var base_rest = undefined && undefined.__rest || function (s, e) {
22761
22871
  var t = {};
22762
22872
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -22812,12 +22922,18 @@ const wrapperDecorations = (props, content) => {
22812
22922
  class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_.Component {
22813
22923
  constructor(props) {
22814
22924
  super(props);
22815
- this.onResize = () => {
22925
+ this.observerTakingEffect = false;
22926
+ this.onResize = entries => base_awaiter(this, void 0, void 0, function* () {
22816
22927
  if (this.rafId) {
22817
22928
  window.cancelAnimationFrame(this.rafId);
22818
22929
  }
22819
- this.rafId = window.requestAnimationFrame(this.getEllipsisState.bind(this));
22820
- };
22930
+ return new Promise(resolve => {
22931
+ this.rafId = window.requestAnimationFrame(() => base_awaiter(this, void 0, void 0, function* () {
22932
+ yield this.getEllipsisState();
22933
+ resolve();
22934
+ }));
22935
+ });
22936
+ });
22821
22937
  // if it needs to use js overflowed:
22822
22938
  // 1. text is expandable 2. expandText need to be shown 3. has extra operation 4. text need to ellipse from mid
22823
22939
  this.canUseCSSEllipsis = () => {
@@ -22887,6 +23003,80 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
22887
23003
  }
22888
23004
  return defaultOpts;
22889
23005
  };
23006
+ this.onHover = () => {
23007
+ const canUseCSSEllipsis = this.canUseCSSEllipsis();
23008
+ if (canUseCSSEllipsis) {
23009
+ const {
23010
+ rows,
23011
+ suffix,
23012
+ pos
23013
+ } = this.getEllipsisOpt();
23014
+ const updateOverflow = this.shouldTruncated(rows);
23015
+ // isOverflowed needs to be updated to show tooltip when using css ellipsis
23016
+ this.setState({
23017
+ isOverflowed: updateOverflow,
23018
+ isTruncated: false
23019
+ });
23020
+ return undefined;
23021
+ }
23022
+ };
23023
+ this.getEllipsisState = () => base_awaiter(this, void 0, void 0, function* () {
23024
+ const {
23025
+ rows,
23026
+ suffix,
23027
+ pos
23028
+ } = this.getEllipsisOpt();
23029
+ const {
23030
+ children
23031
+ } = this.props;
23032
+ // wait until element mounted
23033
+ if (!this.wrapperRef || !this.wrapperRef.current) {
23034
+ yield this.onResize();
23035
+ return;
23036
+ }
23037
+ const {
23038
+ expanded
23039
+ } = this.state;
23040
+ const canUseCSSEllipsis = this.canUseCSSEllipsis();
23041
+ if (canUseCSSEllipsis) {
23042
+ // const updateOverflow = this.shouldTruncated(rows);
23043
+ // // isOverflowed needs to be updated to show tooltip when using css ellipsis
23044
+ // this.setState({
23045
+ // isOverflowed: updateOverflow,
23046
+ // isTruncated: false
23047
+ // });
23048
+ return;
23049
+ }
23050
+ // If children is null, css/js truncated flag isTruncate is false
23051
+ if (isNull_default()(children)) {
23052
+ return new Promise(resolve => {
23053
+ this.setState({
23054
+ isTruncated: false,
23055
+ isOverflowed: false
23056
+ }, resolve);
23057
+ });
23058
+ }
23059
+ // Currently only text truncation is supported, if there is non-text,
23060
+ // both css truncation and js truncation should throw a warning
23061
+ warning('children' in this.props && typeof children !== 'string', "[Semi Typography] Only children with pure text could be used with ellipsis at this moment.");
23062
+ if (!rows || rows < 0 || expanded) {
23063
+ return;
23064
+ }
23065
+ const extraNode = {
23066
+ expand: this.expandRef.current,
23067
+ copy: this.copyRef && this.copyRef.current
23068
+ };
23069
+ const content = util(this.wrapperRef.current, rows,
23070
+ // Perform type conversion on children to prevent component crash due to non-string type of children
23071
+ String(children), extraNode, ELLIPSIS_STR, suffix, pos);
23072
+ return new Promise(resolve => {
23073
+ this.setState({
23074
+ isOverflowed: false,
23075
+ ellipsisContent: content,
23076
+ isTruncated: children !== content
23077
+ }, resolve);
23078
+ });
23079
+ });
22890
23080
  /**
22891
23081
  * Triggered when the fold button is clicked to save the latest expanded state
22892
23082
  * @param {Event} e
@@ -23053,9 +23243,13 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
23053
23243
  ellipsisContent
23054
23244
  } = this.state;
23055
23245
  if (expanded || !isTruncated) {
23056
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, children, suffix && suffix.length ? suffix : null);
23246
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
23247
+ onMouseEnter: this.onHover
23248
+ }, children, suffix && suffix.length ? suffix : null);
23057
23249
  }
23058
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, ellipsisContent, suffix);
23250
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
23251
+ onMouseEnter: this.onHover
23252
+ }, ellipsisContent, suffix);
23059
23253
  };
23060
23254
  this.state = {
23061
23255
  editable: false,
@@ -23075,7 +23269,8 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
23075
23269
  }
23076
23270
  componentDidMount() {
23077
23271
  if (this.props.ellipsis) {
23078
- this.onResize();
23272
+ // runAfterTicks: make sure start observer on the next tick
23273
+ this.onResize().then(() => runAfterTicks(() => this.observerTakingEffect = true, 1));
23079
23274
  }
23080
23275
  }
23081
23276
  static getDerivedStateFromProps(props, prevState) {
@@ -23107,61 +23302,6 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
23107
23302
  window.cancelAnimationFrame(this.rafId);
23108
23303
  }
23109
23304
  }
23110
- getEllipsisState() {
23111
- const {
23112
- rows,
23113
- suffix,
23114
- pos
23115
- } = this.getEllipsisOpt();
23116
- const {
23117
- children
23118
- } = this.props;
23119
- // wait until element mounted
23120
- if (!this.wrapperRef || !this.wrapperRef.current) {
23121
- this.onResize();
23122
- return false;
23123
- }
23124
- const {
23125
- expanded
23126
- } = this.state;
23127
- const canUseCSSEllipsis = this.canUseCSSEllipsis();
23128
- // If children is null, css/js truncated flag isTruncate is false
23129
- if (isNull_default()(children)) {
23130
- this.setState({
23131
- isTruncated: false,
23132
- isOverflowed: false
23133
- });
23134
- return undefined;
23135
- }
23136
- // Currently only text truncation is supported, if there is non-text,
23137
- // both css truncation and js truncation should throw a warning
23138
- warning('children' in this.props && typeof children !== 'string', "[Semi Typography] Only children with pure text could be used with ellipsis at this moment.");
23139
- if (!rows || rows < 0 || expanded) {
23140
- return undefined;
23141
- }
23142
- if (canUseCSSEllipsis) {
23143
- const updateOverflow = this.shouldTruncated(rows);
23144
- // isOverflowed needs to be updated to show tooltip when using css ellipsis
23145
- this.setState({
23146
- isOverflowed: updateOverflow,
23147
- isTruncated: false
23148
- });
23149
- return undefined;
23150
- }
23151
- const extraNode = {
23152
- expand: this.expandRef.current,
23153
- copy: this.copyRef && this.copyRef.current
23154
- };
23155
- const content = util(this.wrapperRef.current, rows,
23156
- // Perform type conversion on children to prevent component crash due to non-string type of children
23157
- String(children), extraNode, ELLIPSIS_STR, suffix, pos);
23158
- this.setState({
23159
- isOverflowed: false,
23160
- ellipsisContent: content,
23161
- isTruncated: children !== content
23162
- });
23163
- return undefined;
23164
- }
23165
23305
  renderOperations() {
23166
23306
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, this.renderExpandable(), this.renderCopy());
23167
23307
  }
@@ -23303,6 +23443,7 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
23303
23443
  }
23304
23444
  }
23305
23445
  render() {
23446
+ var _this = this;
23306
23447
  const content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
23307
23448
  componentName: "Typography"
23308
23449
  }, locale => {
@@ -23312,8 +23453,13 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
23312
23453
  });
23313
23454
  if (this.props.ellipsis) {
23314
23455
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(ReactResizeObserver, {
23315
- onResize: this.onResize,
23316
- observeParent: true
23456
+ onResize: function () {
23457
+ if (_this.observerTakingEffect) {
23458
+ _this.onResize(...arguments);
23459
+ }
23460
+ },
23461
+ observeParent: true,
23462
+ observerProperty: ObserverProperty.Width
23317
23463
  }, content);
23318
23464
  }
23319
23465
  return content;
@@ -25960,6 +26106,7 @@ var autoComplete = __webpack_require__("PyaV");
25960
26106
 
25961
26107
 
25962
26108
 
26109
+
25963
26110
  const autoComplete_prefixCls = autoComplete_constants_cssClasses.PREFIX;
25964
26111
  const autoComplete_sizeSet = autoComplete_constants_strings.SIZE;
25965
26112
  const autoComplete_positionSet = autoComplete_constants_strings.POSITION;
@@ -26330,7 +26477,8 @@ AutoComplete.propTypes = {
26330
26477
  zIndex: (prop_types_default()).number
26331
26478
  };
26332
26479
  AutoComplete.Option = autoComplete_option;
26333
- AutoComplete.defaultProps = {
26480
+ AutoComplete.__SemiComponentName__ = "AutoComplete";
26481
+ AutoComplete.defaultProps = getDefaultPropsFromGlobalConfig(AutoComplete.__SemiComponentName__, {
26334
26482
  stopPropagation: true,
26335
26483
  motion: true,
26336
26484
  zIndex: constants_numbers.DEFAULT_Z_INDEX,
@@ -26356,7 +26504,7 @@ AutoComplete.defaultProps = {
26356
26504
  onKeyDown: (noop_default())
26357
26505
  // onPressEnter: () => undefined,
26358
26506
  // defaultOpen: false,
26359
- };
26507
+ });
26360
26508
 
26361
26509
  /* harmony default export */ const autoComplete_0 = (AutoComplete);
26362
26510
  ;// CONCATENATED MODULE: ../semi-foundation/avatar/constants.ts
@@ -26518,6 +26666,7 @@ var avatar_rest = undefined && undefined.__rest || function (s, e) {
26518
26666
 
26519
26667
 
26520
26668
 
26669
+
26521
26670
  const avatar_sizeSet = avatar_constants_strings.SIZE;
26522
26671
  const shapeSet = avatar_constants_strings.SHAPE;
26523
26672
  const colorSet = avatar_constants_strings.COLOR;
@@ -26847,7 +26996,8 @@ class Avatar extends BaseComponent {
26847
26996
  }
26848
26997
  }
26849
26998
  }
26850
- Avatar.defaultProps = {
26999
+ Avatar.__SemiComponentName__ = "Avatar";
27000
+ Avatar.defaultProps = getDefaultPropsFromGlobalConfig(Avatar.__SemiComponentName__, {
26851
27001
  size: 'medium',
26852
27002
  color: 'grey',
26853
27003
  shape: 'circle',
@@ -26855,7 +27005,7 @@ Avatar.defaultProps = {
26855
27005
  onClick: function_noop,
26856
27006
  onMouseEnter: function_noop,
26857
27007
  onMouseLeave: function_noop
26858
- };
27008
+ });
26859
27009
  Avatar.propTypes = {
26860
27010
  children: (prop_types_default()).node,
26861
27011
  color: prop_types_default().oneOf(colorSet),
@@ -27946,6 +28096,7 @@ var backtop_rest = undefined && undefined.__rest || function (s, e) {
27946
28096
 
27947
28097
 
27948
28098
 
28099
+
27949
28100
  const backtop_prefixCls = backtop_constants_cssClasses.PREFIX;
27950
28101
  const getDefaultTarget = () => window;
27951
28102
  class BackTop extends BaseComponent {
@@ -28021,11 +28172,12 @@ class BackTop extends BaseComponent {
28021
28172
  return content;
28022
28173
  }
28023
28174
  }
28024
- BackTop.defaultProps = {
28175
+ BackTop.__SemiComponentName__ = "BackTop";
28176
+ BackTop.defaultProps = getDefaultPropsFromGlobalConfig(BackTop.__SemiComponentName__, {
28025
28177
  visibilityHeight: 400,
28026
28178
  target: getDefaultTarget,
28027
28179
  duration: 450
28028
- };
28180
+ });
28029
28181
  BackTop.propTypes = {
28030
28182
  target: (prop_types_default()).func,
28031
28183
  visibilityHeight: (prop_types_default()).number,
@@ -28937,6 +29089,7 @@ Breadcrumb.defaultProps = {
28937
29089
 
28938
29090
 
28939
29091
 
29092
+
28940
29093
  class Button extends (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).PureComponent {
28941
29094
  constructor() {
28942
29095
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -28954,7 +29107,9 @@ class Button extends (external_root_React_commonjs2_react_commonjs_react_amd_rea
28954
29107
  }
28955
29108
  }
28956
29109
  }
29110
+ Button.__SemiComponentName__ = "Button";
28957
29111
  Button.propTypes = Object.assign(Object.assign({}, Button_Button.propTypes), iconButton_0.propTypes);
29112
+ Button.defaultProps = getDefaultPropsFromGlobalConfig(Button.__SemiComponentName__);
28958
29113
  Button.elementType = 'Button';
28959
29114
  /* harmony default export */ const button_0 = (Button);
28960
29115
  ;// CONCATENATED MODULE: ./button/buttonGroup.tsx
@@ -35567,9 +35722,6 @@ var isSet_default = /*#__PURE__*/__webpack_require__.n(isSet);
35567
35722
  // EXTERNAL MODULE: ../../node_modules/lodash/includes.js
35568
35723
  var includes = __webpack_require__("qYhz");
35569
35724
  var includes_default = /*#__PURE__*/__webpack_require__.n(includes);
35570
- // EXTERNAL MODULE: ../../node_modules/lodash/cloneDeep.js
35571
- var lodash_cloneDeep = __webpack_require__("c2re");
35572
- var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep);
35573
35725
  // EXTERNAL MODULE: ../../node_modules/lodash/assign.js
35574
35726
  var lodash_assign = __webpack_require__("whR3");
35575
35727
  var assign_default = /*#__PURE__*/__webpack_require__.n(lodash_assign);
@@ -36386,7 +36538,6 @@ function calcMergeType(autoMergeValue, leafOnly) {
36386
36538
 
36387
36539
 
36388
36540
 
36389
-
36390
36541
  class CascaderFoundation extends foundation {
36391
36542
  constructor(adapter) {
36392
36543
  super(Object.assign({}, adapter));
@@ -36479,13 +36630,6 @@ class CascaderFoundation extends foundation {
36479
36630
  const isDisabled = findAncestorKeys([key], keyEntities, true).some(item => keyEntities[item].data.disabled);
36480
36631
  return isDisabled;
36481
36632
  }
36482
- getCopyFromState(items) {
36483
- const res = {};
36484
- util_normalizedArr(items).forEach(key => {
36485
- res[key] = cloneDeep_default()(this.getState(key));
36486
- });
36487
- return res;
36488
- }
36489
36633
  // prop: is array, return all data
36490
36634
  getItemPropPath(selectedKey, prop, keyEntities) {
36491
36635
  const searchMap = keyEntities || this.getState('keyEntities');
@@ -36862,8 +37006,8 @@ class CascaderFoundation extends foundation {
36862
37006
  data,
36863
37007
  key
36864
37008
  } = item;
36865
- const prevLoadingKeys = cloneDeep_default()(this._adapter.getLoadingKeyRefValue());
36866
- const prevLoadedKeys = cloneDeep_default()(this._adapter.getLoadedKeyRefValue());
37009
+ const prevLoadingKeys = new Set(this._adapter.getLoadingKeyRefValue());
37010
+ const prevLoadedKeys = new Set(this._adapter.getLoadedKeyRefValue());
36867
37011
  const newLoadedKeys = prevLoadedKeys.add(key);
36868
37012
  const newLoadingKeys = new Set([...prevLoadingKeys]);
36869
37013
  newLoadingKeys.delete(key);
@@ -36886,7 +37030,7 @@ class CascaderFoundation extends foundation {
36886
37030
  });
36887
37031
  if (!data.isLeaf && !data.children && this.getProp('loadData')) {
36888
37032
  const loadedKeys = this._adapter.getLoadedKeyRefValue();
36889
- const loadingKeys = cloneDeep_default()(this._adapter.getLoadingKeyRefValue());
37033
+ const loadingKeys = new Set(this._adapter.getLoadingKeyRefValue());
36890
37034
  if (loadedKeys.has(key) || loadingKeys.has(key)) {
36891
37035
  return;
36892
37036
  }
@@ -37046,9 +37190,7 @@ class CascaderFoundation extends foundation {
37046
37190
  keyEntities,
37047
37191
  disabledKeys
37048
37192
  } = this.getStates();
37049
- const {
37050
- checkedKeys
37051
- } = this.getCopyFromState(['checkedKeys']);
37193
+ const checkedKeys = new Set(this.getState('checkedKeys'));
37052
37194
  const descendantKeys = normalizeKeyList(findDescendantKeys([eventKey], keyEntities, false), keyEntities, true);
37053
37195
  const hasDisabled = descendantKeys.some(key => disabledKeys.has(key));
37054
37196
  if (!hasDisabled) {
@@ -37098,10 +37240,8 @@ class CascaderFoundation extends foundation {
37098
37240
  const {
37099
37241
  keyEntities
37100
37242
  } = this.getStates();
37101
- const {
37102
- checkedKeys,
37103
- halfCheckedKeys
37104
- } = this.getCopyFromState(['checkedKeys', 'halfCheckedKeys']);
37243
+ const checkedKeys = new Set(this.getState('checkedKeys'));
37244
+ const halfCheckedKeys = new Set(this.getState('halfCheckedKeys'));
37105
37245
  return curCheckedStatus ? calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKeys) : calcCheckedKeysForUnchecked(key, keyEntities, checkedKeys, halfCheckedKeys);
37106
37246
  }
37107
37247
  handleInputChange(sugInput) {
@@ -47780,6 +47920,7 @@ class Cascader extends BaseComponent {
47780
47920
  }, selection);
47781
47921
  }
47782
47922
  }
47923
+ Cascader.__SemiComponentName__ = "Cascader";
47783
47924
  Cascader.contextType = context;
47784
47925
  Cascader.propTypes = {
47785
47926
  'aria-labelledby': (prop_types_default()).string,
@@ -47858,7 +47999,7 @@ Cascader.propTypes = {
47858
47999
  preventScroll: (prop_types_default()).bool,
47859
48000
  position: (prop_types_default()).string
47860
48001
  };
47861
- Cascader.defaultProps = {
48002
+ Cascader.defaultProps = getDefaultPropsFromGlobalConfig(Cascader.__SemiComponentName__, {
47862
48003
  borderless: false,
47863
48004
  leafOnly: false,
47864
48005
  arrowIcon: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronDown, null),
@@ -47888,7 +48029,7 @@ Cascader.defaultProps = {
47888
48029
  onListScroll: (noop_default()),
47889
48030
  enableLeafClick: false,
47890
48031
  'aria-label': 'Cascader'
47891
- };
48032
+ });
47892
48033
  /* harmony default export */ const cascader_0 = (Cascader);
47893
48034
  ;// CONCATENATED MODULE: ../semi-foundation/collapse/constants.ts
47894
48035
 
@@ -47984,6 +48125,7 @@ var collapsible = __webpack_require__("v967");
47984
48125
 
47985
48126
 
47986
48127
 
48128
+
47987
48129
  class Collapsible extends BaseComponent {
47988
48130
  constructor(props) {
47989
48131
  super(props);
@@ -48106,14 +48248,15 @@ class Collapsible extends BaseComponent {
48106
48248
  }, (this.props.keepDOM || this.props.collapseHeight !== 0 || this.state.visible || this.props.isOpen) && this.props.children));
48107
48249
  }
48108
48250
  }
48109
- Collapsible.defaultProps = {
48251
+ Collapsible.__SemiComponentName__ = "Collapsible";
48252
+ Collapsible.defaultProps = getDefaultPropsFromGlobalConfig(Collapsible.__SemiComponentName__, {
48110
48253
  isOpen: false,
48111
48254
  duration: 250,
48112
48255
  motion: true,
48113
48256
  keepDOM: false,
48114
48257
  collapseHeight: 0,
48115
48258
  fade: false
48116
- };
48259
+ });
48117
48260
  Collapsible.getEntryInfo = entry => {
48118
48261
  //judge whether parent or self display none
48119
48262
  let inRenderTree;
@@ -48311,6 +48454,7 @@ var collapse_rest = undefined && undefined.__rest || function (s, e) {
48311
48454
 
48312
48455
 
48313
48456
 
48457
+
48314
48458
  class Collapse extends BaseComponent {
48315
48459
  constructor(props) {
48316
48460
  super(props);
@@ -48400,12 +48544,13 @@ Collapse.propTypes = {
48400
48544
  motion: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).func, (prop_types_default()).object]),
48401
48545
  expandIconPosition: prop_types_default().oneOf(collapse_constants_strings.iconPosition)
48402
48546
  };
48403
- Collapse.defaultProps = {
48547
+ Collapse.__SemiComponentName__ = "Collapse";
48548
+ Collapse.defaultProps = getDefaultPropsFromGlobalConfig(Collapse.__SemiComponentName__, {
48404
48549
  defaultActiveKey: '',
48405
48550
  clickHeaderToExpand: true,
48406
48551
  onChange: function_noop,
48407
48552
  expandIconPosition: 'right'
48408
- };
48553
+ });
48409
48554
  /* harmony default export */ const collapse_0 = (Collapse);
48410
48555
  ;// CONCATENATED MODULE: ./configProvider/index.tsx
48411
48556
  var configProvider_rest = undefined && undefined.__rest || function (s, e) {
@@ -48422,7 +48567,10 @@ var configProvider_rest = undefined && undefined.__rest || function (s, e) {
48422
48567
 
48423
48568
 
48424
48569
  class ConfigProvider extends (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component {
48425
- renderChilren() {
48570
+ constructor(props) {
48571
+ super(props);
48572
+ }
48573
+ renderChildren() {
48426
48574
  const {
48427
48575
  direction,
48428
48576
  children
@@ -48445,7 +48593,7 @@ class ConfigProvider extends (external_root_React_commonjs2_react_commonjs_react
48445
48593
  value: Object.assign({
48446
48594
  direction
48447
48595
  }, rest)
48448
- }, this.renderChilren());
48596
+ }, this.renderChildren());
48449
48597
  }
48450
48598
  }
48451
48599
  ConfigProvider.propTypes = {
@@ -53840,6 +53988,406 @@ function getDefaultPickerDate(options) {
53840
53988
  nextDate: nextDate
53841
53989
  };
53842
53990
  }
53991
+ ;// CONCATENATED MODULE: ../../node_modules/fast-copy/dist/esm/index.mjs
53992
+ var toStringFunction = Function.prototype.toString;
53993
+ var create = Object.create;
53994
+ var toStringObject = Object.prototype.toString;
53995
+ /**
53996
+ * @classdesc Fallback cache for when WeakMap is not natively supported
53997
+ */
53998
+ var LegacyCache = /** @class */ (function () {
53999
+ function LegacyCache() {
54000
+ this._keys = [];
54001
+ this._values = [];
54002
+ }
54003
+ LegacyCache.prototype.has = function (key) {
54004
+ return !!~this._keys.indexOf(key);
54005
+ };
54006
+ LegacyCache.prototype.get = function (key) {
54007
+ return this._values[this._keys.indexOf(key)];
54008
+ };
54009
+ LegacyCache.prototype.set = function (key, value) {
54010
+ this._keys.push(key);
54011
+ this._values.push(value);
54012
+ };
54013
+ return LegacyCache;
54014
+ }());
54015
+ function createCacheLegacy() {
54016
+ return new LegacyCache();
54017
+ }
54018
+ function createCacheModern() {
54019
+ return new WeakMap();
54020
+ }
54021
+ /**
54022
+ * Get a new cache object to prevent circular references.
54023
+ */
54024
+ var createCache = typeof WeakMap !== 'undefined' ? createCacheModern : createCacheLegacy;
54025
+ /**
54026
+ * Get an empty version of the object with the same prototype it has.
54027
+ */
54028
+ function getCleanClone(prototype) {
54029
+ if (!prototype) {
54030
+ return create(null);
54031
+ }
54032
+ var Constructor = prototype.constructor;
54033
+ if (Constructor === Object) {
54034
+ return prototype === Object.prototype ? {} : create(prototype);
54035
+ }
54036
+ if (~toStringFunction.call(Constructor).indexOf('[native code]')) {
54037
+ try {
54038
+ return new Constructor();
54039
+ }
54040
+ catch (_a) { }
54041
+ }
54042
+ return create(prototype);
54043
+ }
54044
+ function getRegExpFlagsLegacy(regExp) {
54045
+ var flags = '';
54046
+ if (regExp.global) {
54047
+ flags += 'g';
54048
+ }
54049
+ if (regExp.ignoreCase) {
54050
+ flags += 'i';
54051
+ }
54052
+ if (regExp.multiline) {
54053
+ flags += 'm';
54054
+ }
54055
+ if (regExp.unicode) {
54056
+ flags += 'u';
54057
+ }
54058
+ if (regExp.sticky) {
54059
+ flags += 'y';
54060
+ }
54061
+ return flags;
54062
+ }
54063
+ function getRegExpFlagsModern(regExp) {
54064
+ return regExp.flags;
54065
+ }
54066
+ /**
54067
+ * Get the flags to apply to the copied regexp.
54068
+ */
54069
+ var getRegExpFlags = /test/g.flags === 'g' ? getRegExpFlagsModern : getRegExpFlagsLegacy;
54070
+ function getTagLegacy(value) {
54071
+ var type = toStringObject.call(value);
54072
+ return type.substring(8, type.length - 1);
54073
+ }
54074
+ function getTagModern(value) {
54075
+ return value[Symbol.toStringTag] || getTagLegacy(value);
54076
+ }
54077
+ /**
54078
+ * Get the tag of the value passed, so that the correct copier can be used.
54079
+ */
54080
+ var getTag = typeof Symbol !== 'undefined' ? getTagModern : getTagLegacy;
54081
+
54082
+ var defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols;
54083
+ var _a = Object.prototype, esm_hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;
54084
+ var SUPPORTS_SYMBOL = typeof getOwnPropertySymbols === 'function';
54085
+ function getStrictPropertiesModern(object) {
54086
+ return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
54087
+ }
54088
+ /**
54089
+ * Get the properites used when copying objects strictly. This includes both keys and symbols.
54090
+ */
54091
+ var getStrictProperties = SUPPORTS_SYMBOL
54092
+ ? getStrictPropertiesModern
54093
+ : getOwnPropertyNames;
54094
+ /**
54095
+ * Striclty copy all properties contained on the object.
54096
+ */
54097
+ function copyOwnPropertiesStrict(value, clone, state) {
54098
+ var properties = getStrictProperties(value);
54099
+ for (var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index) {
54100
+ property = properties[index];
54101
+ if (property === 'callee' || property === 'caller') {
54102
+ continue;
54103
+ }
54104
+ descriptor = getOwnPropertyDescriptor(value, property);
54105
+ if (!descriptor) {
54106
+ // In extra edge cases where the property descriptor cannot be retrived, fall back to
54107
+ // the loose assignment.
54108
+ clone[property] = state.copier(value[property], state);
54109
+ continue;
54110
+ }
54111
+ // Only clone the value if actually a value, not a getter / setter.
54112
+ if (!descriptor.get && !descriptor.set) {
54113
+ descriptor.value = state.copier(descriptor.value, state);
54114
+ }
54115
+ try {
54116
+ defineProperty(clone, property, descriptor);
54117
+ }
54118
+ catch (error) {
54119
+ // Tee above can fail on node in edge cases, so fall back to the loose assignment.
54120
+ clone[property] = descriptor.value;
54121
+ }
54122
+ }
54123
+ return clone;
54124
+ }
54125
+ /**
54126
+ * Deeply copy the indexed values in the array.
54127
+ */
54128
+ function copyArrayLoose(array, state) {
54129
+ var clone = new state.Constructor();
54130
+ // set in the cache immediately to be able to reuse the object recursively
54131
+ state.cache.set(array, clone);
54132
+ for (var index = 0, length_2 = array.length; index < length_2; ++index) {
54133
+ clone[index] = state.copier(array[index], state);
54134
+ }
54135
+ return clone;
54136
+ }
54137
+ /**
54138
+ * Deeply copy the indexed values in the array, as well as any custom properties.
54139
+ */
54140
+ function copyArrayStrict(array, state) {
54141
+ var clone = new state.Constructor();
54142
+ // set in the cache immediately to be able to reuse the object recursively
54143
+ state.cache.set(array, clone);
54144
+ return copyOwnPropertiesStrict(array, clone, state);
54145
+ }
54146
+ /**
54147
+ * Copy the contents of the ArrayBuffer.
54148
+ */
54149
+ function copyArrayBuffer(arrayBuffer, _state) {
54150
+ return arrayBuffer.slice(0);
54151
+ }
54152
+ /**
54153
+ * Create a new Blob with the contents of the original.
54154
+ */
54155
+ function copyBlob(blob, _state) {
54156
+ return blob.slice(0, blob.size, blob.type);
54157
+ }
54158
+ /**
54159
+ * Create a new DataView with the contents of the original.
54160
+ */
54161
+ function copyDataView(dataView, state) {
54162
+ return new state.Constructor(copyArrayBuffer(dataView.buffer));
54163
+ }
54164
+ /**
54165
+ * Create a new Date based on the time of the original.
54166
+ */
54167
+ function copyDate(date, state) {
54168
+ return new state.Constructor(date.getTime());
54169
+ }
54170
+ /**
54171
+ * Deeply copy the keys and values of the original.
54172
+ */
54173
+ function copyMapLoose(map, state) {
54174
+ var clone = new state.Constructor();
54175
+ // set in the cache immediately to be able to reuse the object recursively
54176
+ state.cache.set(map, clone);
54177
+ map.forEach(function (value, key) {
54178
+ clone.set(key, state.copier(value, state));
54179
+ });
54180
+ return clone;
54181
+ }
54182
+ /**
54183
+ * Deeply copy the keys and values of the original, as well as any custom properties.
54184
+ */
54185
+ function copyMapStrict(map, state) {
54186
+ return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state);
54187
+ }
54188
+ function copyObjectLooseLegacy(object, state) {
54189
+ var clone = getCleanClone(state.prototype);
54190
+ // set in the cache immediately to be able to reuse the object recursively
54191
+ state.cache.set(object, clone);
54192
+ for (var key in object) {
54193
+ if (esm_hasOwnProperty.call(object, key)) {
54194
+ clone[key] = state.copier(object[key], state);
54195
+ }
54196
+ }
54197
+ return clone;
54198
+ }
54199
+ function copyObjectLooseModern(object, state) {
54200
+ var clone = getCleanClone(state.prototype);
54201
+ // set in the cache immediately to be able to reuse the object recursively
54202
+ state.cache.set(object, clone);
54203
+ for (var key in object) {
54204
+ if (esm_hasOwnProperty.call(object, key)) {
54205
+ clone[key] = state.copier(object[key], state);
54206
+ }
54207
+ }
54208
+ var symbols = getOwnPropertySymbols(object);
54209
+ for (var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index) {
54210
+ symbol = symbols[index];
54211
+ if (propertyIsEnumerable.call(object, symbol)) {
54212
+ clone[symbol] = state.copier(object[symbol], state);
54213
+ }
54214
+ }
54215
+ return clone;
54216
+ }
54217
+ /**
54218
+ * Deeply copy the properties (keys and symbols) and values of the original.
54219
+ */
54220
+ var copyObjectLoose = SUPPORTS_SYMBOL
54221
+ ? copyObjectLooseModern
54222
+ : copyObjectLooseLegacy;
54223
+ /**
54224
+ * Deeply copy the properties (keys and symbols) and values of the original, as well
54225
+ * as any hidden or non-enumerable properties.
54226
+ */
54227
+ function copyObjectStrict(object, state) {
54228
+ var clone = getCleanClone(state.prototype);
54229
+ // set in the cache immediately to be able to reuse the object recursively
54230
+ state.cache.set(object, clone);
54231
+ return copyOwnPropertiesStrict(object, clone, state);
54232
+ }
54233
+ /**
54234
+ * Create a new primitive wrapper from the value of the original.
54235
+ */
54236
+ function copyPrimitiveWrapper(primitiveObject, state) {
54237
+ return new state.Constructor(primitiveObject.valueOf());
54238
+ }
54239
+ /**
54240
+ * Create a new RegExp based on the value and flags of the original.
54241
+ */
54242
+ function copyRegExp(regExp, state) {
54243
+ var clone = new state.Constructor(regExp.source, getRegExpFlags(regExp));
54244
+ clone.lastIndex = regExp.lastIndex;
54245
+ return clone;
54246
+ }
54247
+ /**
54248
+ * Return the original value (an identity function).
54249
+ *
54250
+ * @note
54251
+ * THis is used for objects that cannot be copied, such as WeakMap.
54252
+ */
54253
+ function copySelf(value, _state) {
54254
+ return value;
54255
+ }
54256
+ /**
54257
+ * Deeply copy the values of the original.
54258
+ */
54259
+ function copySetLoose(set, state) {
54260
+ var clone = new state.Constructor();
54261
+ // set in the cache immediately to be able to reuse the object recursively
54262
+ state.cache.set(set, clone);
54263
+ set.forEach(function (value) {
54264
+ clone.add(state.copier(value, state));
54265
+ });
54266
+ return clone;
54267
+ }
54268
+ /**
54269
+ * Deeply copy the values of the original, as well as any custom properties.
54270
+ */
54271
+ function copySetStrict(set, state) {
54272
+ return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);
54273
+ }
54274
+
54275
+ var esm_isArray = Array.isArray;
54276
+ var esm_assign = Object.assign;
54277
+ var getPrototypeOf = Object.getPrototypeOf || (function (obj) { return obj.__proto__; });
54278
+ var DEFAULT_LOOSE_OPTIONS = {
54279
+ array: copyArrayLoose,
54280
+ arrayBuffer: copyArrayBuffer,
54281
+ blob: copyBlob,
54282
+ dataView: copyDataView,
54283
+ date: copyDate,
54284
+ error: copySelf,
54285
+ map: copyMapLoose,
54286
+ object: copyObjectLoose,
54287
+ regExp: copyRegExp,
54288
+ set: copySetLoose,
54289
+ };
54290
+ var DEFAULT_STRICT_OPTIONS = esm_assign({}, DEFAULT_LOOSE_OPTIONS, {
54291
+ array: copyArrayStrict,
54292
+ map: copyMapStrict,
54293
+ object: copyObjectStrict,
54294
+ set: copySetStrict,
54295
+ });
54296
+ /**
54297
+ * Get the copiers used for each specific object tag.
54298
+ */
54299
+ function getTagSpecificCopiers(options) {
54300
+ return {
54301
+ Arguments: options.object,
54302
+ Array: options.array,
54303
+ ArrayBuffer: options.arrayBuffer,
54304
+ Blob: options.blob,
54305
+ Boolean: copyPrimitiveWrapper,
54306
+ DataView: options.dataView,
54307
+ Date: options.date,
54308
+ Error: options.error,
54309
+ Float32Array: options.arrayBuffer,
54310
+ Float64Array: options.arrayBuffer,
54311
+ Int8Array: options.arrayBuffer,
54312
+ Int16Array: options.arrayBuffer,
54313
+ Int32Array: options.arrayBuffer,
54314
+ Map: options.map,
54315
+ Number: copyPrimitiveWrapper,
54316
+ Object: options.object,
54317
+ Promise: copySelf,
54318
+ RegExp: options.regExp,
54319
+ Set: options.set,
54320
+ String: copyPrimitiveWrapper,
54321
+ WeakMap: copySelf,
54322
+ WeakSet: copySelf,
54323
+ Uint8Array: options.arrayBuffer,
54324
+ Uint8ClampedArray: options.arrayBuffer,
54325
+ Uint16Array: options.arrayBuffer,
54326
+ Uint32Array: options.arrayBuffer,
54327
+ Uint64Array: options.arrayBuffer,
54328
+ };
54329
+ }
54330
+ /**
54331
+ * Create a custom copier based on the object-specific copy methods passed.
54332
+ */
54333
+ function createCopier(options) {
54334
+ var normalizedOptions = esm_assign({}, DEFAULT_LOOSE_OPTIONS, options);
54335
+ var tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions);
54336
+ var array = tagSpecificCopiers.Array, object = tagSpecificCopiers.Object;
54337
+ function copier(value, state) {
54338
+ state.prototype = state.Constructor = undefined;
54339
+ if (!value || typeof value !== 'object') {
54340
+ return value;
54341
+ }
54342
+ if (state.cache.has(value)) {
54343
+ return state.cache.get(value);
54344
+ }
54345
+ state.prototype = getPrototypeOf(value);
54346
+ state.Constructor = state.prototype && state.prototype.constructor;
54347
+ // plain objects
54348
+ if (!state.Constructor || state.Constructor === Object) {
54349
+ return object(value, state);
54350
+ }
54351
+ // arrays
54352
+ if (esm_isArray(value)) {
54353
+ return array(value, state);
54354
+ }
54355
+ var tagSpecificCopier = tagSpecificCopiers[getTag(value)];
54356
+ if (tagSpecificCopier) {
54357
+ return tagSpecificCopier(value, state);
54358
+ }
54359
+ return typeof value.then === 'function' ? value : object(value, state);
54360
+ }
54361
+ return function copy(value) {
54362
+ return copier(value, {
54363
+ Constructor: undefined,
54364
+ cache: createCache(),
54365
+ copier: copier,
54366
+ prototype: undefined,
54367
+ });
54368
+ };
54369
+ }
54370
+ /**
54371
+ * Create a custom copier based on the object-specific copy methods passed, defaulting to the
54372
+ * same internals as `copyStrict`.
54373
+ */
54374
+ function createStrictCopier(options) {
54375
+ return createCopier(esm_assign({}, DEFAULT_STRICT_OPTIONS, options));
54376
+ }
54377
+ /**
54378
+ * Copy an value deeply as much as possible, where strict recreation of object properties
54379
+ * are maintained. All properties (including non-enumerable ones) are copied with their
54380
+ * original property descriptors on both objects and arrays.
54381
+ */
54382
+ var copyStrict = createStrictCopier({});
54383
+ /**
54384
+ * Copy an value deeply as much as possible.
54385
+ */
54386
+ var index = createCopier({});
54387
+
54388
+
54389
+ //# sourceMappingURL=index.mjs.map
54390
+
53843
54391
  ;// CONCATENATED MODULE: ../semi-foundation/datePicker/inputFoundation.ts
53844
54392
 
53845
54393
 
@@ -53956,7 +54504,7 @@ class inputFoundation_InputFoundation extends foundation {
53956
54504
  type,
53957
54505
  format
53958
54506
  });
53959
- const newInsetInputValue = set_default()(cloneDeep_default()(insetInputValue), valuePath, value);
54507
+ const newInsetInputValue = set_default()(index(insetInputValue), valuePath, value);
53960
54508
  const insetInputStr = this.concatInsetInputValue({
53961
54509
  insetInputValue: newInsetInputValue
53962
54510
  });
@@ -53990,7 +54538,7 @@ class inputFoundation_InputFoundation extends foundation {
53990
54538
  defaultPickerValue,
53991
54539
  dateFnsLocale
53992
54540
  } = this._adapter.getProps();
53993
- const insetInputValueWithTime = cloneDeep_default()(insetInputValue);
54541
+ const insetInputValueWithTime = index(insetInputValue);
53994
54542
  const {
53995
54543
  nowDate,
53996
54544
  nextDate
@@ -58111,7 +58659,7 @@ class YearAndMonthFoundation extends foundation {
58111
58659
  } = this.getProps();
58112
58660
  const left = datePicker_constants_strings.PANEL_TYPE_LEFT;
58113
58661
  const right = datePicker_constants_strings.PANEL_TYPE_RIGHT;
58114
- const year = cloneDeep_default()(currentYear);
58662
+ const year = index(currentYear);
58115
58663
  year[panelType] = item.value;
58116
58664
  // make sure the right panel time is always less than the left panel time
58117
58665
  if (type === 'monthRange') {
@@ -58138,7 +58686,7 @@ class YearAndMonthFoundation extends foundation {
58138
58686
  } = this.getProps();
58139
58687
  const left = datePicker_constants_strings.PANEL_TYPE_LEFT;
58140
58688
  const right = datePicker_constants_strings.PANEL_TYPE_RIGHT;
58141
- const month = cloneDeep_default()(currentMonth);
58689
+ const month = index(currentMonth);
58142
58690
  month[panelType] = item.month;
58143
58691
  // make sure the right panel time is always less than the left panel time
58144
58692
  if (type === 'monthRange' && panelType === left && currentYear[left] === currentYear[right] && item.value > month[right]) {
@@ -58185,7 +58733,7 @@ class YearAndMonthFoundation extends foundation {
58185
58733
  });
58186
58734
  }
58187
58735
  if (validMonth) {
58188
- const month = cloneDeep_default()(currentMonth);
58736
+ const month = index(currentMonth);
58189
58737
  month[panelType] = validMonth.month;
58190
58738
  // change year and month same time
58191
58739
  this._adapter.setCurrentYearAndMonth(year, month);
@@ -59305,6 +59853,7 @@ var datePicker_rest = undefined && undefined.__rest || function (s, e) {
59305
59853
 
59306
59854
 
59307
59855
 
59856
+
59308
59857
  class DatePicker extends BaseComponent {
59309
59858
  constructor(props) {
59310
59859
  var _this;
@@ -60112,7 +60661,8 @@ DatePicker.propTypes = {
60112
60661
  yearAndMonthOpts: (prop_types_default()).object,
60113
60662
  onClickOutSide: (prop_types_default()).func
60114
60663
  };
60115
- DatePicker.defaultProps = {
60664
+ DatePicker.__SemiComponentName__ = "DatePicker";
60665
+ DatePicker.defaultProps = getDefaultPropsFromGlobalConfig(DatePicker.__SemiComponentName__, {
60116
60666
  onChangeWithDateFirst: true,
60117
60667
  borderless: false,
60118
60668
  autoAdjustOverflow: true,
@@ -60150,7 +60700,7 @@ DatePicker.defaultProps = {
60150
60700
  rangeSeparator: datePicker_constants_strings.DEFAULT_SEPARATOR_RANGE,
60151
60701
  insetInput: false,
60152
60702
  onClickOutSide: (noop_default())
60153
- };
60703
+ });
60154
60704
  ;// CONCATENATED MODULE: ./datePicker/index.tsx
60155
60705
 
60156
60706
 
@@ -61770,7 +62320,8 @@ Modal.propTypes = {
61770
62320
  fullScreen: (prop_types_default()).bool,
61771
62321
  footerFill: (prop_types_default()).bool
61772
62322
  };
61773
- Modal.defaultProps = {
62323
+ Modal.__SemiComponentName__ = "Modal";
62324
+ Modal.defaultProps = getDefaultPropsFromGlobalConfig(Modal.__SemiComponentName__, {
61774
62325
  zIndex: 1000,
61775
62326
  motion: true,
61776
62327
  mask: true,
@@ -61789,7 +62340,7 @@ Modal.defaultProps = {
61789
62340
  keepDOM: false,
61790
62341
  lazyRender: true,
61791
62342
  fullScreen: false
61792
- };
62343
+ });
61793
62344
  Modal.useModal = useModal;
61794
62345
  Modal.info = function (props) {
61795
62346
  return confirm_confirm(withInfo(props));
@@ -62210,6 +62761,7 @@ var dropdown_rest = undefined && undefined.__rest || function (s, e) {
62210
62761
 
62211
62762
 
62212
62763
 
62764
+
62213
62765
  const dropdown_positionSet = dropdown_constants_strings.POSITION_SET;
62214
62766
  const dropdown_triggerSet = dropdown_constants_strings.TRIGGER_SET;
62215
62767
  class Dropdown extends BaseComponent {
@@ -62417,7 +62969,8 @@ Dropdown.propTypes = {
62417
62969
  visible: (prop_types_default()).bool,
62418
62970
  zIndex: (prop_types_default()).number
62419
62971
  };
62420
- Dropdown.defaultProps = {
62972
+ Dropdown.__SemiComponentName__ = "Dropdown";
62973
+ Dropdown.defaultProps = getDefaultPropsFromGlobalConfig(Dropdown.__SemiComponentName__, {
62421
62974
  onVisibleChange: (noop_default()),
62422
62975
  prefixCls: dropdown_constants_cssClasses.PREFIX,
62423
62976
  zIndex: numbers.DEFAULT_Z_INDEX,
@@ -62428,7 +62981,7 @@ Dropdown.defaultProps = {
62428
62981
  showTick: false,
62429
62982
  closeOnEsc: true,
62430
62983
  onEscKeyDown: (noop_default())
62431
- };
62984
+ });
62432
62985
  /* harmony default export */ const dropdown_0 = (Dropdown);
62433
62986
  ;// CONCATENATED MODULE: ../semi-foundation/grid/constants.ts
62434
62987
 
@@ -66475,6 +67028,7 @@ var navigation_rest = undefined && undefined.__rest || function (s, e) {
66475
67028
 
66476
67029
 
66477
67030
 
67031
+
66478
67032
  function createAddKeysFn(context, keyName) {
66479
67033
  return function addKeys() {
66480
67034
  const handleKeys = new Set(context.state[keyName]);
@@ -66812,7 +67366,8 @@ Nav.propTypes = {
66812
67366
  limitIndent: (prop_types_default()).bool,
66813
67367
  getPopupContainer: (prop_types_default()).func
66814
67368
  };
66815
- Nav.defaultProps = {
67369
+ Nav.__SemiComponentName__ = "Navigation";
67370
+ Nav.defaultProps = getDefaultPropsFromGlobalConfig(Nav.__SemiComponentName__, {
66816
67371
  subNavCloseDelay: navigation_constants_numbers.DEFAULT_SUBNAV_CLOSE_DELAY,
66817
67372
  subNavOpenDelay: navigation_constants_numbers.DEFAULT_SUBNAV_OPEN_DELAY,
66818
67373
  tooltipHideDelay: navigation_constants_numbers.DEFAULT_TOOLTIP_HIDE_DELAY,
@@ -66830,7 +67385,7 @@ Nav.defaultProps = {
66830
67385
  // defaultOpenKeys: [],
66831
67386
  // defaultSelectedKeys: [],
66832
67387
  // items: [],
66833
- };
67388
+ });
66834
67389
 
66835
67390
  /* harmony default export */ const navigation_0 = (Nav);
66836
67391
  ;// CONCATENATED MODULE: ../semi-foundation/notification/notificationListFoundation.ts
@@ -67118,7 +67673,8 @@ Notice.propTypes = {
67118
67673
  close: (prop_types_default()).func,
67119
67674
  direction: prop_types_default().oneOf(notice_directions)
67120
67675
  };
67121
- Notice.defaultProps = {
67676
+ Notice.__SemiComponentName__ = "Notification";
67677
+ Notice.defaultProps = getDefaultPropsFromGlobalConfig(Notice.__SemiComponentName__, {
67122
67678
  duration,
67123
67679
  id: '',
67124
67680
  close: (noop_default()),
@@ -67129,7 +67685,7 @@ Notice.defaultProps = {
67129
67685
  title: '',
67130
67686
  showClose: true,
67131
67687
  theme: 'normal'
67132
- };
67688
+ });
67133
67689
  /* harmony default export */ const notification_notice = (Notice);
67134
67690
  // EXTERNAL MODULE: ../semi-foundation/notification/notification.scss
67135
67691
  var notification = __webpack_require__("x46V");
@@ -67674,7 +68230,7 @@ class OverflowListFoundation extends foundation {
67674
68230
  const {
67675
68231
  items
67676
68232
  } = this.getProps();
67677
- return cloneDeep_default()(items).reverse();
68233
+ return index(items).reverse();
67678
68234
  };
67679
68235
  }
67680
68236
  getOverflowItem() {
@@ -67702,7 +68258,7 @@ class OverflowListFoundation extends foundation {
67702
68258
  return overflowList;
67703
68259
  }
67704
68260
  handleIntersect(entries) {
67705
- const visibleState = cloneDeep_default()(this.getState('visibleState'));
68261
+ const visibleState = index(this.getState('visibleState'));
67706
68262
  const res = {};
67707
68263
  entries.forEach(entry => {
67708
68264
  const itemKey = get_default()(entry, 'target.dataset.scrollkey');
@@ -68062,7 +68618,8 @@ class OverflowList extends BaseComponent {
68062
68618
  }, list);
68063
68619
  }
68064
68620
  }
68065
- OverflowList.defaultProps = {
68621
+ OverflowList.__SemiComponentName__ = "OverflowList";
68622
+ OverflowList.defaultProps = getDefaultPropsFromGlobalConfig(OverflowList.__SemiComponentName__, {
68066
68623
  collapseFrom: 'end',
68067
68624
  minVisibleItems: 0,
68068
68625
  overflowRenderer: () => null,
@@ -68070,7 +68627,7 @@ OverflowList.defaultProps = {
68070
68627
  threshold: 0.75,
68071
68628
  visibleItemRenderer: () => null,
68072
68629
  onOverflow: () => null
68073
- };
68630
+ });
68074
68631
  OverflowList.propTypes = {
68075
68632
  // if render in scroll mode, key is required in items
68076
68633
  className: (prop_types_default()).string,
@@ -71318,7 +71875,8 @@ Select.propTypes = {
71318
71875
  // tagClosable: PropTypes.bool,
71319
71876
  };
71320
71877
 
71321
- Select.defaultProps = {
71878
+ Select.__SemiComponentName__ = "Select";
71879
+ Select.defaultProps = getDefaultPropsFromGlobalConfig(Select.__SemiComponentName__, {
71322
71880
  stopPropagation: true,
71323
71881
  motion: true,
71324
71882
  borderless: false,
@@ -71363,7 +71921,7 @@ Select.defaultProps = {
71363
71921
  // renderSelectedItem: (optionNode) => optionNode.label,
71364
71922
  // The default creator rendering is related to i18, so it is not declared here
71365
71923
  // renderCreateItem: (input) => input
71366
- };
71924
+ });
71367
71925
 
71368
71926
  /* harmony default export */ const select_0 = (Select);
71369
71927
  ;// CONCATENATED MODULE: ./pagination/index.tsx
@@ -71943,6 +72501,7 @@ var popconfirm_rest = undefined && undefined.__rest || function (s, e) {
71943
72501
 
71944
72502
 
71945
72503
 
72504
+
71946
72505
  class Popconfirm extends BaseComponent {
71947
72506
  constructor(props) {
71948
72507
  super(props);
@@ -72174,7 +72733,8 @@ Popconfirm.propTypes = {
72174
72733
  trigger: (prop_types_default()).string,
72175
72734
  position: (prop_types_default()).string
72176
72735
  };
72177
- Popconfirm.defaultProps = {
72736
+ Popconfirm.__SemiComponentName__ = "Popconfirm";
72737
+ Popconfirm.defaultProps = getDefaultPropsFromGlobalConfig(Popconfirm.__SemiComponentName__, {
72178
72738
  stopPropagation: true,
72179
72739
  trigger: 'click',
72180
72740
  // position: 'bottomLeft',
@@ -72191,7 +72751,7 @@ Popconfirm.defaultProps = {
72191
72751
  onCancel: (noop_default()),
72192
72752
  onConfirm: (noop_default()),
72193
72753
  onClickOutSide: (noop_default())
72194
- };
72754
+ });
72195
72755
  ;// CONCATENATED MODULE: ../semi-foundation/progress/constants.ts
72196
72756
 
72197
72757
  const progress_constants_cssClasses = {
@@ -74684,6 +75244,15 @@ class SideSheet extends BaseComponent {
74684
75244
  keepDOM
74685
75245
  } = _a,
74686
75246
  props = sideSheet_rest(_a, ["placement", "className", "children", "width", "height", "motion", "visible", "style", "maskStyle", "size", "zIndex", "getPopupContainer", "keepDOM"]);
75247
+ let wrapperStyle = {
75248
+ zIndex
75249
+ };
75250
+ if (getPopupContainer) {
75251
+ wrapperStyle = {
75252
+ zIndex,
75253
+ position: 'static'
75254
+ };
75255
+ }
74687
75256
  const {
74688
75257
  direction
74689
75258
  } = this.context;
@@ -74732,35 +75301,27 @@ class SideSheet extends BaseComponent {
74732
75301
  animationStyle,
74733
75302
  animationEventsNeedBind
74734
75303
  } = _ref2;
74735
- return shouldRender ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(SideSheetContent, Object.assign({}, contentProps, {
75304
+ return shouldRender ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(_portal, {
75305
+ getPopupContainer: getPopupContainer,
75306
+ style: wrapperStyle
75307
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(SideSheetContent, Object.assign({}, contentProps, {
74736
75308
  maskExtraProps: maskAnimationEventsNeedBind,
74737
75309
  wrapperExtraProps: animationEventsNeedBind,
74738
75310
  dialogClassName: animationClassName,
74739
75311
  maskClassName: maskAnimationClassName,
74740
75312
  maskStyle: Object.assign({}, maskStyle),
74741
75313
  style: Object.assign(Object.assign({}, animationStyle), style)
74742
- }), children) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null);
75314
+ }), children)) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null);
74743
75315
  });
74744
75316
  });
74745
75317
  }
74746
75318
  render() {
74747
75319
  const {
74748
75320
  zIndex,
74749
- getPopupContainer
75321
+ getPopupContainer,
75322
+ visible
74750
75323
  } = this.props;
74751
- let wrapperStyle = {
74752
- zIndex
74753
- };
74754
- if (getPopupContainer) {
74755
- wrapperStyle = {
74756
- zIndex,
74757
- position: 'static'
74758
- };
74759
- }
74760
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(_portal, {
74761
- getPopupContainer: getPopupContainer,
74762
- style: wrapperStyle
74763
- }, this.renderContent());
75324
+ return this.renderContent();
74764
75325
  }
74765
75326
  }
74766
75327
  SideSheet.contextType = context;
@@ -74791,7 +75352,8 @@ SideSheet.propTypes = {
74791
75352
  keepDOM: (prop_types_default()).bool,
74792
75353
  'aria-label': (prop_types_default()).string
74793
75354
  };
74794
- SideSheet.defaultProps = {
75355
+ SideSheet.__SemiComponentName__ = "SideSheet";
75356
+ SideSheet.defaultProps = getDefaultPropsFromGlobalConfig(SideSheet.__SemiComponentName__, {
74795
75357
  visible: false,
74796
75358
  motion: true,
74797
75359
  mask: true,
@@ -74805,7 +75367,7 @@ SideSheet.defaultProps = {
74805
75367
  closeOnEsc: false,
74806
75368
  afterVisibleChange: (noop_default()),
74807
75369
  keepDOM: false
74808
- };
75370
+ });
74809
75371
  ;// CONCATENATED MODULE: ../semi-foundation/slider/constants.ts
74810
75372
 
74811
75373
  const slider_constants_cssClasses = {
@@ -84531,6 +85093,7 @@ var tabs_rest = undefined && undefined.__rest || function (s, e) {
84531
85093
 
84532
85094
 
84533
85095
 
85096
+
84534
85097
  const panePickKeys = ['className', 'style', 'disabled', 'itemKey', 'tab', 'icon'];
84535
85098
 
84536
85099
  class Tabs extends BaseComponent {
@@ -84831,7 +85394,8 @@ Tabs.propTypes = {
84831
85394
  onTabClose: (prop_types_default()).func,
84832
85395
  preventScroll: (prop_types_default()).bool
84833
85396
  };
84834
- Tabs.defaultProps = {
85397
+ Tabs.__SemiComponentName__ = "Tabs";
85398
+ Tabs.defaultProps = getDefaultPropsFromGlobalConfig(Tabs.__SemiComponentName__, {
84835
85399
  children: [],
84836
85400
  collapsible: false,
84837
85401
  keepDOM: true,
@@ -84843,7 +85407,7 @@ Tabs.defaultProps = {
84843
85407
  tabPosition: 'top',
84844
85408
  type: 'line',
84845
85409
  onTabClose: () => undefined
84846
- };
85410
+ });
84847
85411
  /* harmony default export */ const tabs_0 = (Tabs);
84848
85412
  // EXTERNAL MODULE: ../semi-foundation/timeline/timeline.scss
84849
85413
  var timeline = __webpack_require__("9ff2");
@@ -86230,6 +86794,7 @@ TimePicker.defaultProps = Object.assign({
86230
86794
 
86231
86795
 
86232
86796
 
86797
+
86233
86798
  class LocaleTimePicker extends (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).PureComponent {
86234
86799
  render() {
86235
86800
  const {
@@ -86253,7 +86818,8 @@ class LocaleTimePicker extends (external_root_React_commonjs2_react_commonjs_rea
86253
86818
  }
86254
86819
  }
86255
86820
  LocaleTimePicker.propTypes = TimePicker.propTypes;
86256
- LocaleTimePicker.defaultProps = TimePicker.defaultProps;
86821
+ LocaleTimePicker.__SemiComponentName__ = "TimePicker";
86822
+ LocaleTimePicker.defaultProps = getDefaultPropsFromGlobalConfig(LocaleTimePicker.__SemiComponentName__, TimePicker.defaultProps);
86257
86823
  ;// CONCATENATED MODULE: ../semi-foundation/toast/toastListFoundation.ts
86258
86824
 
86259
86825
  class ToastListFoundation extends foundation {
@@ -86528,7 +87094,8 @@ Toast.propTypes = {
86528
87094
  icon: (prop_types_default()).node,
86529
87095
  direction: prop_types_default().oneOf(toast_constants_strings.directions)
86530
87096
  };
86531
- Toast.defaultProps = {
87097
+ Toast.__SemiComponentName__ = "Toast";
87098
+ Toast.defaultProps = getDefaultPropsFromGlobalConfig(Toast.__SemiComponentName__, {
86532
87099
  onClose: (noop_default()),
86533
87100
  content: '',
86534
87101
  close: (noop_default()),
@@ -86538,7 +87105,7 @@ Toast.defaultProps = {
86538
87105
  stack: false,
86539
87106
  stackExpanded: false,
86540
87107
  theme: 'normal'
86541
- };
87108
+ });
86542
87109
  /* harmony default export */ const toast = (Toast);
86543
87110
  // EXTERNAL MODULE: ../semi-foundation/toast/toast.scss
86544
87111
  var toast_toast = __webpack_require__("Ybhv");
@@ -86949,7 +87516,6 @@ class ToastFactory {
86949
87516
 
86950
87517
 
86951
87518
 
86952
-
86953
87519
  /**
86954
87520
  * The drag and drop handler implementation is referenced from rc-tree
86955
87521
  * https://github.com/react-component/tree
@@ -86995,13 +87561,6 @@ class TreeFoundation extends foundation {
86995
87561
  } = this.getProps();
86996
87562
  return Boolean(inputValue) && showFilteredOnly;
86997
87563
  }
86998
- getCopyFromState(items) {
86999
- const res = {};
87000
- normalizedArr(items).forEach(key => {
87001
- res[key] = cloneDeep_default()(this.getState(key));
87002
- });
87003
- return res;
87004
- }
87005
87564
  getTreeNodeProps(key) {
87006
87565
  const {
87007
87566
  expandedKeys = new Set([]),
@@ -87170,9 +87729,7 @@ class TreeFoundation extends foundation {
87170
87729
  this._adapter.notifyDoubleClick(e, treeNode.data);
87171
87730
  }
87172
87731
  handleSingleSelect(e, treeNode) {
87173
- let {
87174
- selectedKeys
87175
- } = this.getCopyFromState('selectedKeys');
87732
+ let selectedKeys = [...this.getState('selectedKeys')];
87176
87733
  const {
87177
87734
  selected,
87178
87735
  eventKey,
@@ -87197,10 +87754,8 @@ class TreeFoundation extends foundation {
87197
87754
  const {
87198
87755
  keyEntities
87199
87756
  } = this.getStates();
87200
- const {
87201
- checkedKeys,
87202
- halfCheckedKeys
87203
- } = this.getCopyFromState(['checkedKeys', 'halfCheckedKeys']);
87757
+ const checkedKeys = new Set(this.getState('checkedKeys'));
87758
+ const halfCheckedKeys = new Set(this.getState('halfCheckedKeys'));
87204
87759
  return targetStatus ? calcCheckedKeysForChecked(eventKey, keyEntities, checkedKeys, halfCheckedKeys) : calcCheckedKeysForUnchecked(eventKey, keyEntities, checkedKeys, halfCheckedKeys);
87205
87760
  }
87206
87761
  /*
@@ -87236,9 +87791,7 @@ class TreeFoundation extends foundation {
87236
87791
  keyEntities,
87237
87792
  disabledKeys
87238
87793
  } = this.getStates();
87239
- const {
87240
- checkedKeys
87241
- } = this.getCopyFromState(['checkedKeys']);
87794
+ const checkedKeys = new Set(this.getState('checkedKeys'));
87242
87795
  const descendantKeys = normalizeKeyList(findDescendantKeys([eventKey], keyEntities, false), keyEntities, true);
87243
87796
  const hasDisabled = descendantKeys.some(key => disabledKeys.has(key));
87244
87797
  // If none of the descendant nodes are disabled, follow the normal logic
@@ -87313,7 +87866,7 @@ class TreeFoundation extends foundation {
87313
87866
  const isSearching = Boolean(inputValue);
87314
87867
  const showFilteredOnly = this._showFilteredOnly();
87315
87868
  const expandedStateKey = isSearching ? 'filteredExpandedKeys' : 'expandedKeys';
87316
- const expandedKeys = this.getCopyFromState(expandedStateKey)[expandedStateKey];
87869
+ const expandedKeys = new Set(this.getState(expandedStateKey));
87317
87870
  let motionType = 'show';
87318
87871
  const {
87319
87872
  eventKey,
@@ -87374,10 +87927,8 @@ class TreeFoundation extends foundation {
87374
87927
  }
87375
87928
  // Process the loaded data
87376
87929
  loadData(data).then(() => {
87377
- const {
87378
- loadedKeys: prevLoadedKeys,
87379
- loadingKeys: prevLoadingKeys
87380
- } = this.getCopyFromState(['loadedKeys', 'loadingKeys']);
87930
+ const prevLoadedKeys = new Set(this.getState('loadedKeys'));
87931
+ const prevLoadingKeys = new Set(this.getState('loadingKeys'));
87381
87932
  const newLoadedKeys = prevLoadedKeys.add(key);
87382
87933
  const newLoadingKeys = new Set([...prevLoadingKeys]);
87383
87934
  newLoadingKeys.delete(key);
@@ -89184,7 +89735,6 @@ const treeSelect_constants_numbers = {};
89184
89735
 
89185
89736
 
89186
89737
 
89187
-
89188
89738
  class TreeSelectFoundation extends foundation {
89189
89739
  constructor(adapter) {
89190
89740
  super(Object.assign({}, adapter));
@@ -89307,13 +89857,6 @@ class TreeSelectFoundation extends foundation {
89307
89857
  return this.constructDataForValue(value);
89308
89858
  }
89309
89859
  }
89310
- getCopyFromState(items) {
89311
- const res = {};
89312
- normalizedArr(items).forEach(key => {
89313
- res[key] = cloneDeep_default()(this.getState(key));
89314
- });
89315
- return res;
89316
- }
89317
89860
  getTreeNodeProps(key) {
89318
89861
  const {
89319
89862
  expandedKeys = new Set([]),
@@ -89379,10 +89922,8 @@ class TreeSelectFoundation extends foundation {
89379
89922
  return {};
89380
89923
  }
89381
89924
  loadData(data).then(() => {
89382
- const {
89383
- loadedKeys: prevLoadedKeys,
89384
- loadingKeys: prevLoadingKeys
89385
- } = this.getCopyFromState(['loadedKeys', 'loadingKeys']);
89925
+ const prevLoadedKeys = new Set(this.getState('loadedKeys'));
89926
+ const prevLoadingKeys = new Set(this.getState('loadingKeys'));
89386
89927
  const newLoadedKeys = prevLoadedKeys.add(key);
89387
89928
  const newLoadingKeys = new Set([...prevLoadingKeys]);
89388
89929
  newLoadingKeys.delete(key);
@@ -89695,9 +90236,7 @@ class TreeSelectFoundation extends foundation {
89695
90236
  }
89696
90237
  }
89697
90238
  handleSingleSelect(e, treeNode) {
89698
- let {
89699
- selectedKeys
89700
- } = this.getCopyFromState('selectedKeys');
90239
+ let selectedKeys = [...this.getState('selectedKeys')];
89701
90240
  const {
89702
90241
  clickToHide
89703
90242
  } = this.getProps();
@@ -89725,10 +90264,8 @@ class TreeSelectFoundation extends foundation {
89725
90264
  const {
89726
90265
  keyEntities
89727
90266
  } = this.getStates();
89728
- const {
89729
- checkedKeys,
89730
- halfCheckedKeys
89731
- } = this.getCopyFromState(['checkedKeys', 'halfCheckedKeys']);
90267
+ const checkedKeys = new Set(this.getState('checkedKeys'));
90268
+ const halfCheckedKeys = new Set(this.getState('halfCheckedKeys'));
89732
90269
  if (targetStatus) {
89733
90270
  return calcCheckedKeysForChecked(eventKey, keyEntities, checkedKeys, halfCheckedKeys);
89734
90271
  } else {
@@ -89795,9 +90332,7 @@ class TreeSelectFoundation extends foundation {
89795
90332
  keyEntities,
89796
90333
  disabledKeys
89797
90334
  } = this.getStates();
89798
- const {
89799
- checkedKeys
89800
- } = this.getCopyFromState(['checkedKeys']);
90335
+ const checkedKeys = new Set(this.getState('checkedKeys'));
89801
90336
  const descendantKeys = normalizeKeyList(findDescendantKeys([eventKey], keyEntities, false), keyEntities, true);
89802
90337
  const hasDisabled = descendantKeys.some(key => disabledKeys.has(key));
89803
90338
  if (!hasDisabled) {
@@ -89834,9 +90369,7 @@ class TreeSelectFoundation extends foundation {
89834
90369
  } = this.getStates();
89835
90370
  const showFilteredOnly = this._showFilteredOnly();
89836
90371
  // clone otherwise will be modified unexpectedly
89837
- const {
89838
- filteredExpandedKeys
89839
- } = this.getCopyFromState('filteredExpandedKeys');
90372
+ const filteredExpandedKeys = new Set(this.getState('filteredExpandedKeys'));
89840
90373
  let motionType = 'show';
89841
90374
  const {
89842
90375
  eventKey,
@@ -89892,9 +90425,7 @@ class TreeSelectFoundation extends foundation {
89892
90425
  treeData
89893
90426
  } = this.getStates();
89894
90427
  // clone otherwise will be modified unexpectedly
89895
- const {
89896
- expandedKeys
89897
- } = this.getCopyFromState('expandedKeys');
90428
+ const expandedKeys = new Set(this.getState('expandedKeys'));
89898
90429
  let motionType = 'show';
89899
90430
  const {
89900
90431
  eventKey,
@@ -91430,7 +91961,7 @@ const upload_constants_numbers = {
91430
91961
  };
91431
91962
 
91432
91963
  ;// CONCATENATED MODULE: ../semi-foundation/upload/utils.ts
91433
- var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
91964
+ var utils_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
91434
91965
  function adopt(value) {
91435
91966
  return value instanceof P ? value : new P(function (resolve) {
91436
91967
  resolve(value);
@@ -91473,7 +92004,7 @@ function endsWith(str, suffix) {
91473
92004
  return str.indexOf(suffix, str.length - suffix.length) !== -1;
91474
92005
  }
91475
92006
  function loopFiles(item) {
91476
- return __awaiter(this, void 0, void 0, function* () {
92007
+ return utils_awaiter(this, void 0, void 0, function* () {
91477
92008
  return new Promise((res, rej) => {
91478
92009
  const dirReader = item.createReader();
91479
92010
  let fileList = [];
@@ -91495,9 +92026,9 @@ function loopFiles(item) {
91495
92026
  });
91496
92027
  }
91497
92028
  function mapFileTree(items) {
91498
- return __awaiter(this, void 0, void 0, function* () {
92029
+ return utils_awaiter(this, void 0, void 0, function* () {
91499
92030
  const promises = [];
91500
- const _traverseFileTree = (item, path) => __awaiter(this, void 0, void 0, function* () {
92031
+ const _traverseFileTree = (item, path) => utils_awaiter(this, void 0, void 0, function* () {
91501
92032
  path = path || '';
91502
92033
  //@ts-ignore add path property into item
91503
92034
  item.path = path;
@@ -96092,7 +96623,6 @@ Schema.validators = validators;
96092
96623
 
96093
96624
  ;// CONCATENATED MODULE: ../semi-foundation/form/utils.ts
96094
96625
 
96095
-
96096
96626
  var form_utils_rest = undefined && undefined.__rest || function (s, e) {
96097
96627
  var t = {};
96098
96628
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -96103,6 +96633,7 @@ var form_utils_rest = undefined && undefined.__rest || function (s, e) {
96103
96633
  };
96104
96634
 
96105
96635
 
96636
+
96106
96637
  /**
96107
96638
  *
96108
96639
  * @param WrappedComponent React.ComponentType | any
@@ -96260,7 +96791,7 @@ function mergeProps(props) {
96260
96791
  delete rest.defaultValue;
96261
96792
  delete rest.checked;
96262
96793
  if (typeof initValue !== 'undefined') {
96263
- initValue = cloneDeep_default()(initValue);
96794
+ initValue = index(initValue);
96264
96795
  }
96265
96796
  const required = isRequired(rules);
96266
96797
  emptyValue = typeof emptyValue !== 'undefined' ? emptyValue : '';
@@ -98409,8 +98940,8 @@ class ArrayFieldComponent extends external_root_React_commonjs2_react_commonjs_r
98409
98940
  // whether the fields inside arrayField should use props.initValue in current render process
98410
98941
  this.shouldUseInitValue = !context.getArrayField(field);
98411
98942
  // Separate the arrays that reset and the usual add and remove modify, otherwise they will affect each other
98412
- const initValueCopyForFormState = cloneDeep_default()(initValue);
98413
- const initValueCopyForReset = cloneDeep_default()(initValue);
98943
+ const initValueCopyForFormState = index(initValue);
98944
+ const initValueCopyForReset = index(initValue);
98414
98945
  context.registerArrayField(field, initValueCopyForReset);
98415
98946
  // register ArrayField will update state.updateKey to render, So there is no need to execute forceUpdate here
98416
98947
  context.updateStateValue(field, initValueCopyForFormState, {