yach.open.ui 0.0.10-beta.0 → 0.0.10

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 (66) hide show
  1. package/README.md +0 -0
  2. package/dist/yach.open.ui-with-locales.js +764 -776
  3. package/dist/yach.open.ui-with-locales.js.map +1 -1
  4. package/dist/yach.open.ui-with-locales.min.js +3 -3
  5. package/dist/yach.open.ui-with-locales.min.js.map +1 -1
  6. package/dist/yach.open.ui.js +764 -776
  7. package/dist/yach.open.ui.js.map +1 -1
  8. package/dist/yach.open.ui.min.js +3 -3
  9. package/dist/yach.open.ui.min.js.map +1 -1
  10. package/es/assets/icons/arrow-left.svg +0 -0
  11. package/es/assets/icons/arrow-right.svg +0 -0
  12. package/es/assets/icons/close.svg +0 -0
  13. package/es/assets/icons/tree-next.svg +0 -0
  14. package/es/assets/icons/tree-node.svg +0 -0
  15. package/es/components/complex-picker/PartnerMember.js +0 -1
  16. package/es/components/complex-picker/assets/imgs/my-group.png +0 -0
  17. package/es/components/complex-picker/assets/imgs/recent-session.png +0 -0
  18. package/es/components/complex-picker/stories/index.less +0 -0
  19. package/es/components/complex-picker/style/CommonList.less +0 -0
  20. package/es/components/complex-picker/style/GroupList.less +0 -0
  21. package/es/components/complex-picker/style/GroupMember.less +0 -0
  22. package/es/components/complex-picker/style/Home.less +0 -0
  23. package/es/components/complex-picker/style/Main.less +0 -0
  24. package/es/components/complex-picker/style/MyGroup.less +0 -0
  25. package/es/components/complex-picker/style/OrgBread.less +0 -0
  26. package/es/components/complex-picker/style/OrgList.less +0 -0
  27. package/es/components/complex-picker/style/Organization.less +0 -0
  28. package/es/components/complex-picker/style/PageTitle.less +0 -0
  29. package/es/components/complex-picker/style/RecentSession.less +0 -0
  30. package/es/components/complex-picker/style/Select.less +0 -0
  31. package/es/components/complex-picker/style/index.css +0 -0
  32. package/es/components/complex-picker/style/index.less +0 -0
  33. package/es/components/demo/style/index.css +0 -0
  34. package/es/components/demo/style/index.less +0 -0
  35. package/es/style/global.less +0 -0
  36. package/es/style/index.css +0 -0
  37. package/es/style/index.less +0 -0
  38. package/lib/assets/icons/arrow-left.svg +0 -0
  39. package/lib/assets/icons/arrow-right.svg +0 -0
  40. package/lib/assets/icons/close.svg +0 -0
  41. package/lib/assets/icons/tree-next.svg +0 -0
  42. package/lib/assets/icons/tree-node.svg +0 -0
  43. package/lib/components/complex-picker/PartnerMember.js +0 -1
  44. package/lib/components/complex-picker/assets/imgs/my-group.png +0 -0
  45. package/lib/components/complex-picker/assets/imgs/recent-session.png +0 -0
  46. package/lib/components/complex-picker/stories/index.less +0 -0
  47. package/lib/components/complex-picker/style/CommonList.less +0 -0
  48. package/lib/components/complex-picker/style/GroupList.less +0 -0
  49. package/lib/components/complex-picker/style/GroupMember.less +0 -0
  50. package/lib/components/complex-picker/style/Home.less +0 -0
  51. package/lib/components/complex-picker/style/Main.less +0 -0
  52. package/lib/components/complex-picker/style/MyGroup.less +0 -0
  53. package/lib/components/complex-picker/style/OrgBread.less +0 -0
  54. package/lib/components/complex-picker/style/OrgList.less +0 -0
  55. package/lib/components/complex-picker/style/Organization.less +0 -0
  56. package/lib/components/complex-picker/style/PageTitle.less +0 -0
  57. package/lib/components/complex-picker/style/RecentSession.less +0 -0
  58. package/lib/components/complex-picker/style/Select.less +0 -0
  59. package/lib/components/complex-picker/style/index.css +0 -0
  60. package/lib/components/complex-picker/style/index.less +0 -0
  61. package/lib/components/demo/style/index.css +0 -0
  62. package/lib/components/demo/style/index.less +0 -0
  63. package/lib/style/global.less +0 -0
  64. package/lib/style/index.css +0 -0
  65. package/lib/style/index.less +0 -0
  66. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * yach.open.ui v0.0.10-beta1
3
+ * yach.open.ui v0.0.10
4
4
  *
5
5
  * Copyright 2020-present, Tal, Inc.
6
6
  * All rights reserved.
@@ -48500,6 +48500,15 @@ var Anchor = /*#__PURE__*/function (_React$Component) {
48500
48500
  }
48501
48501
  };
48502
48502
 
48503
+ _this.getMemoizedContextValue = Object(memoize_one__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])(function (link, onClickFn) {
48504
+ return {
48505
+ registerLink: _this.registerLink,
48506
+ unregisterLink: _this.unregisterLink,
48507
+ scrollTo: _this.handleScrollTo,
48508
+ activeLink: link,
48509
+ onClick: onClickFn
48510
+ };
48511
+ });
48503
48512
  return _this;
48504
48513
  }
48505
48514
 
@@ -48573,8 +48582,6 @@ var Anchor = /*#__PURE__*/function (_React$Component) {
48573
48582
  }, {
48574
48583
  key: "render",
48575
48584
  value: function render() {
48576
- var _this2 = this;
48577
-
48578
48585
  var _this$context = this.context,
48579
48586
  getPrefixCls = _this$context.getPrefixCls,
48580
48587
  direction = _this$context.direction;
@@ -48616,15 +48623,7 @@ var Anchor = /*#__PURE__*/function (_React$Component) {
48616
48623
  className: inkClass,
48617
48624
  ref: this.saveInkNode
48618
48625
  })), children));
48619
- var contextValue = Object(memoize_one__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])(function (link, onClickFn) {
48620
- return {
48621
- registerLink: _this2.registerLink,
48622
- unregisterLink: _this2.unregisterLink,
48623
- scrollTo: _this2.handleScrollTo,
48624
- activeLink: link,
48625
- onClick: onClickFn
48626
- };
48627
- })(activeLink, onClick);
48626
+ var contextValue = this.getMemoizedContextValue(activeLink, onClick);
48628
48627
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](_context__WEBPACK_IMPORTED_MODULE_15__[/* default */ "a"].Provider, {
48629
48628
  value: contextValue
48630
48629
  }, !affix ? anchorContent : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](_affix__WEBPACK_IMPORTED_MODULE_11__[/* default */ "a"], {
@@ -51684,9 +51683,12 @@ function highlightKeyword(str, lowerKeyword, prefixCls) {
51684
51683
  start = end;
51685
51684
 
51686
51685
  if (index % 2 === 1) {
51687
- originWorld = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("span", {
51686
+ originWorld =
51687
+ /*#__PURE__*/
51688
+ // eslint-disable-next-line react/no-array-index-key
51689
+ react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("span", {
51688
51690
  className: "".concat(prefixCls, "-menu-item-keyword"),
51689
- key: "seperator"
51691
+ key: "seperator-".concat(index)
51690
51692
  }, originWorld);
51691
51693
  }
51692
51694
 
@@ -52045,7 +52047,7 @@ var InternalCheckboxGroup = function InternalCheckboxGroup(_a, ref) {
52045
52047
 
52046
52048
  var getOptions = function getOptions() {
52047
52049
  return options.map(function (option) {
52048
- if (typeof option === 'string') {
52050
+ if (typeof option === 'string' || typeof option === 'number') {
52049
52051
  return {
52050
52052
  label: option,
52051
52053
  value: option
@@ -52651,14 +52653,14 @@ function registerTheme(globalPrefixCls, theme) {
52651
52653
  !*** ./node_modules/antd/es/config-provider/index.js ***!
52652
52654
  \*******************************************************/
52653
52655
  /*! exports provided: ConfigContext, ConfigConsumer, configConsumerProps, defaultPrefixCls, defaultIconPrefixCls, globalConfig, default */
52654
- /*! exports used: ConfigConsumer, ConfigContext, configConsumerProps, default, globalConfig */
52656
+ /*! exports used: ConfigConsumer, ConfigContext, default, globalConfig */
52655
52657
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
52656
52658
 
52657
52659
  "use strict";
52658
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return configConsumerProps; });
52660
+ /* unused harmony export configConsumerProps */
52659
52661
  /* unused harmony export defaultPrefixCls */
52660
52662
  /* unused harmony export defaultIconPrefixCls */
52661
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return globalConfig; });
52663
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return globalConfig; });
52662
52664
  /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
52663
52665
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
52664
52666
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
@@ -52755,7 +52757,7 @@ var globalConfig = function globalConfig() {
52755
52757
  };
52756
52758
 
52757
52759
  var ProviderChildren = function ProviderChildren(props) {
52758
- var _a, _b, _c;
52760
+ var _a, _b;
52759
52761
 
52760
52762
  var children = props.children,
52761
52763
  csp = props.csp,
@@ -52815,10 +52817,10 @@ var ProviderChildren = function ProviderChildren(props) {
52815
52817
  }, [iconPrefixCls]);
52816
52818
  var childNode = children; // Additional Form provider
52817
52819
 
52818
- var validateMessages = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, (_a = _locale_default__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"].Form) === null || _a === void 0 ? void 0 : _a.defaultValidateMessages);
52820
+ var validateMessages = {};
52819
52821
 
52820
52822
  if (locale) {
52821
- validateMessages = ((_b = locale.Form) === null || _b === void 0 ? void 0 : _b.defaultValidateMessages) || ((_c = _locale_default__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"].Form) === null || _c === void 0 ? void 0 : _c.defaultValidateMessages) || {};
52823
+ validateMessages = ((_a = locale.Form) === null || _a === void 0 ? void 0 : _a.defaultValidateMessages) || ((_b = _locale_default__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"].Form) === null || _b === void 0 ? void 0 : _b.defaultValidateMessages) || {};
52822
52824
  }
52823
52825
 
52824
52826
  if (form && form.validateMessages) {
@@ -52881,7 +52883,7 @@ var ConfigProvider = function ConfigProvider(props) {
52881
52883
  ConfigProvider.ConfigContext = _context__WEBPACK_IMPORTED_MODULE_7__[/* ConfigContext */ "b"];
52882
52884
  ConfigProvider.SizeContext = _SizeContext__WEBPACK_IMPORTED_MODULE_8__[/* default */ "b"];
52883
52885
  ConfigProvider.config = setGlobalConfig;
52884
- /* harmony default export */ __webpack_exports__["d"] = (ConfigProvider);
52886
+ /* harmony default export */ __webpack_exports__["c"] = (ConfigProvider);
52885
52887
 
52886
52888
  /***/ }),
52887
52889
 
@@ -57171,7 +57173,8 @@ var ClearableLabeledInput = /*#__PURE__*/function (_React$Component) {
57171
57173
  direction = _this$props3.direction,
57172
57174
  style = _this$props3.style,
57173
57175
  readOnly = _this$props3.readOnly,
57174
- bordered = _this$props3.bordered;
57176
+ bordered = _this$props3.bordered,
57177
+ hidden = _this$props3.hidden;
57175
57178
 
57176
57179
  if (!Object(_utils__WEBPACK_IMPORTED_MODULE_10__[/* hasPrefixSuffix */ "b"])(this.props)) {
57177
57180
  return Object(_util_reactNode__WEBPACK_IMPORTED_MODULE_9__[/* cloneElement */ "a"])(element, {
@@ -57188,7 +57191,8 @@ var ClearableLabeledInput = /*#__PURE__*/function (_React$Component) {
57188
57191
  ref: this.containerRef,
57189
57192
  className: affixWrapperCls,
57190
57193
  style: style,
57191
- onMouseUp: this.onInputMouseUp
57194
+ onMouseUp: this.onInputMouseUp,
57195
+ hidden: hidden
57192
57196
  }, prefixNode, Object(_util_reactNode__WEBPACK_IMPORTED_MODULE_9__[/* cloneElement */ "a"])(element, {
57193
57197
  style: null,
57194
57198
  value: value,
@@ -57206,7 +57210,8 @@ var ClearableLabeledInput = /*#__PURE__*/function (_React$Component) {
57206
57210
  style = _this$props4.style,
57207
57211
  size = _this$props4.size,
57208
57212
  className = _this$props4.className,
57209
- direction = _this$props4.direction; // Not wrap when there is not addons
57213
+ direction = _this$props4.direction,
57214
+ hidden = _this$props4.hidden; // Not wrap when there is not addons
57210
57215
 
57211
57216
  if (!hasAddon(this.props)) {
57212
57217
  return labeledElement;
@@ -57226,7 +57231,8 @@ var ClearableLabeledInput = /*#__PURE__*/function (_React$Component) {
57226
57231
 
57227
57232
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("span", {
57228
57233
  className: mergedGroupClassName,
57229
- style: style
57234
+ style: style,
57235
+ hidden: hidden
57230
57236
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("span", {
57231
57237
  className: mergedWrapperClassName
57232
57238
  }, addonBeforeNode, Object(_util_reactNode__WEBPACK_IMPORTED_MODULE_9__[/* cloneElement */ "a"])(labeledElement, {
@@ -57244,7 +57250,8 @@ var ClearableLabeledInput = /*#__PURE__*/function (_React$Component) {
57244
57250
  className = _this$props5.className,
57245
57251
  style = _this$props5.style,
57246
57252
  direction = _this$props5.direction,
57247
- bordered = _this$props5.bordered;
57253
+ bordered = _this$props5.bordered,
57254
+ hidden = _this$props5.hidden;
57248
57255
 
57249
57256
  if (!allowClear) {
57250
57257
  return Object(_util_reactNode__WEBPACK_IMPORTED_MODULE_9__[/* cloneElement */ "a"])(element, {
@@ -57255,7 +57262,8 @@ var ClearableLabeledInput = /*#__PURE__*/function (_React$Component) {
57255
57262
  var affixWrapperCls = classnames__WEBPACK_IMPORTED_MODULE_6___default()("".concat(prefixCls, "-affix-wrapper"), "".concat(prefixCls, "-affix-wrapper-textarea-with-clear-btn"), (_classNames5 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classNames5, "".concat(prefixCls, "-affix-wrapper-rtl"), direction === 'rtl'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classNames5, "".concat(prefixCls, "-affix-wrapper-borderless"), !bordered), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classNames5, "".concat(className), !hasAddon(this.props) && className), _classNames5));
57256
57263
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("span", {
57257
57264
  className: affixWrapperCls,
57258
- style: style
57265
+ style: style,
57266
+ hidden: hidden
57259
57267
  }, Object(_util_reactNode__WEBPACK_IMPORTED_MODULE_9__[/* cloneElement */ "a"])(element, {
57260
57268
  style: null,
57261
57269
  value: value
@@ -57524,7 +57532,7 @@ var Input = /*#__PURE__*/function (_React$Component) {
57524
57532
 
57525
57533
  var otherProps = Object(rc_util_es_omit__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])(_this.props, ['prefixCls', 'onPressEnter', 'addonBefore', 'addonAfter', 'prefix', 'suffix', 'allowClear', // Input elements must be either controlled or uncontrolled,
57526
57534
  // specify either the value prop, or the defaultValue prop, but not both.
57527
- 'defaultValue', 'size', 'inputType', 'bordered', 'htmlSize']);
57535
+ 'defaultValue', 'size', 'inputType', 'bordered', 'htmlSize', 'showCount']);
57528
57536
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("input", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({
57529
57537
  autoComplete: input.autoComplete
57530
57538
  }, otherProps, {
@@ -58115,6 +58123,8 @@ var TextArea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["forwardRef"](fun
58115
58123
  value = _useMergedState2[0],
58116
58124
  setValue = _useMergedState2[1];
58117
58125
 
58126
+ var hidden = props.hidden;
58127
+
58118
58128
  var handleSetValue = function handleSetValue(val, callback) {
58119
58129
  if (props.value === undefined) {
58120
58130
  setValue(val);
@@ -58233,6 +58243,7 @@ var TextArea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["forwardRef"](fun
58233
58243
  }
58234
58244
 
58235
58245
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", {
58246
+ hidden: hidden,
58236
58247
  className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, "".concat(prefixCls, "-textarea-rtl"), direction === 'rtl'), "".concat(prefixCls, "-textarea-show-count"), className),
58237
58248
  style: style,
58238
58249
  "data-count": dataCount
@@ -59310,6 +59321,11 @@ var LocaleProvider = /*#__PURE__*/function (_React$Component) {
59310
59321
  Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(this, LocaleProvider);
59311
59322
 
59312
59323
  _this = _super.call(this, props);
59324
+ _this.getMemoizedContextValue = Object(memoize_one__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(function (localeValue) {
59325
+ return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, localeValue), {
59326
+ exist: true
59327
+ });
59328
+ });
59313
59329
  Object(_modal_locale__WEBPACK_IMPORTED_MODULE_8__[/* changeConfirmLocale */ "a"])(props.locale && props.locale.Modal);
59314
59330
  Object(_util_devWarning__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(props._ANT_MARK__ === ANT_MARK, 'LocaleProvider', '`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale');
59315
59331
  return _this;
@@ -59340,11 +59356,7 @@ var LocaleProvider = /*#__PURE__*/function (_React$Component) {
59340
59356
  var _this$props = this.props,
59341
59357
  locale = _this$props.locale,
59342
59358
  children = _this$props.children;
59343
- var contextValue = Object(memoize_one__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(function (localeValue) {
59344
- return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, localeValue), {
59345
- exist: true
59346
- });
59347
- })(locale);
59359
+ var contextValue = this.getMemoizedContextValue(locale);
59348
59360
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_context__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"].Provider, {
59349
59361
  value: contextValue
59350
59362
  }, children);
@@ -60421,7 +60433,7 @@ function getRCNotificationInstance(args, callback) {
60421
60433
  var customizePrefixCls = args.prefixCls,
60422
60434
  getContextPopupContainer = args.getPopupContainer;
60423
60435
 
60424
- var _globalConfig = Object(_config_provider__WEBPACK_IMPORTED_MODULE_11__[/* globalConfig */ "e"])(),
60436
+ var _globalConfig = Object(_config_provider__WEBPACK_IMPORTED_MODULE_11__[/* globalConfig */ "d"])(),
60425
60437
  getPrefixCls = _globalConfig.getPrefixCls,
60426
60438
  getRootPrefixCls = _globalConfig.getRootPrefixCls,
60427
60439
  getIconPrefixCls = _globalConfig.getIconPrefixCls;
@@ -60492,7 +60504,7 @@ function getRCNoticeProps(args, prefixCls, iconPrefixCls) {
60492
60504
  duration: duration,
60493
60505
  style: args.style || {},
60494
60506
  className: args.className,
60495
- content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_config_provider__WEBPACK_IMPORTED_MODULE_11__[/* default */ "d"], {
60507
+ content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_config_provider__WEBPACK_IMPORTED_MODULE_11__[/* default */ "c"], {
60496
60508
  iconPrefixCls: iconPrefixCls
60497
60509
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", {
60498
60510
  className: messageClass
@@ -60670,7 +60682,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
60670
60682
  buttonProps: cancelButtonProps,
60671
60683
  prefixCls: "".concat(rootPrefixCls, "-btn")
60672
60684
  }, cancelText);
60673
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_config_provider__WEBPACK_IMPORTED_MODULE_6__[/* default */ "d"], {
60685
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_config_provider__WEBPACK_IMPORTED_MODULE_6__[/* default */ "c"], {
60674
60686
  prefixCls: rootPrefixCls,
60675
60687
  iconPrefixCls: iconPrefixCls,
60676
60688
  direction: direction
@@ -60987,7 +60999,7 @@ function confirm(config) {
60987
60999
  setTimeout(function () {
60988
61000
  var runtimeLocale = Object(_locale__WEBPACK_IMPORTED_MODULE_7__[/* getConfirmLocale */ "b"])();
60989
61001
 
60990
- var _globalConfig = Object(_config_provider__WEBPACK_IMPORTED_MODULE_9__[/* globalConfig */ "e"])(),
61002
+ var _globalConfig = Object(_config_provider__WEBPACK_IMPORTED_MODULE_9__[/* globalConfig */ "d"])(),
60991
61003
  getPrefixCls = _globalConfig.getPrefixCls,
60992
61004
  getIconPrefixCls = _globalConfig.getIconPrefixCls; // because Modal.config  set rootPrefixCls, which is different from other components
60993
61005
 
@@ -61667,7 +61679,7 @@ function getNotificationInstance(args, callback) {
61667
61679
  getContainer = _args$getContainer === void 0 ? defaultGetContainer : _args$getContainer,
61668
61680
  customizePrefixCls = args.prefixCls;
61669
61681
 
61670
- var _globalConfig = Object(_config_provider__WEBPACK_IMPORTED_MODULE_12__[/* globalConfig */ "e"])(),
61682
+ var _globalConfig = Object(_config_provider__WEBPACK_IMPORTED_MODULE_12__[/* globalConfig */ "d"])(),
61671
61683
  getPrefixCls = _globalConfig.getPrefixCls,
61672
61684
  getIconPrefixCls = _globalConfig.getIconPrefixCls;
61673
61685
 
@@ -61749,7 +61761,7 @@ function getRCNoticeProps(args, prefixCls, iconPrefixCls) {
61749
61761
  className: "".concat(prefixCls, "-message-single-line-auto-margin")
61750
61762
  }) : null;
61751
61763
  return {
61752
- content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_config_provider__WEBPACK_IMPORTED_MODULE_12__[/* default */ "d"], {
61764
+ content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_config_provider__WEBPACK_IMPORTED_MODULE_12__[/* default */ "c"], {
61753
61765
  iconPrefixCls: iconPrefixCls
61754
61766
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", {
61755
61767
  className: iconNode ? "".concat(prefixCls, "-with-icon") : '',
@@ -63177,10 +63189,10 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
63177
63189
  if (options && options.length > 0) {
63178
63190
  var optionsPrefixCls = optionType === 'button' ? "".concat(prefixCls, "-button") : prefixCls;
63179
63191
  childrenToRender = options.map(function (option) {
63180
- if (typeof option === 'string') {
63192
+ if (typeof option === 'string' || typeof option === 'number') {
63181
63193
  // 此处类型自动推导为 string
63182
63194
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_radio__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], {
63183
- key: option,
63195
+ key: option.toString(),
63184
63196
  prefixCls: optionsPrefixCls,
63185
63197
  disabled: disabled,
63186
63198
  value: option,
@@ -72093,49 +72105,297 @@ function renderSwitcherIcon(prefixCls, switcherIcon, showLine, _ref) {
72093
72105
 
72094
72106
  /***/ }),
72095
72107
 
72096
- /***/ "./node_modules/antd/es/typography/Base.js":
72097
- /*!*************************************************!*\
72098
- !*** ./node_modules/antd/es/typography/Base.js ***!
72099
- \*************************************************/
72108
+ /***/ "./node_modules/antd/es/typography/Base/Ellipsis.js":
72109
+ /*!**********************************************************!*\
72110
+ !*** ./node_modules/antd/es/typography/Base/Ellipsis.js ***!
72111
+ \**********************************************************/
72100
72112
  /*! exports provided: default */
72101
72113
  /*! exports used: default */
72102
72114
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
72103
72115
 
72104
72116
  "use strict";
72105
- /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
72106
- /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
72117
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
72118
+ /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
72107
72119
  /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
72108
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
72109
- /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
72110
- /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
72111
- /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
72112
- /* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
72113
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "react");
72114
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
72115
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
72116
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
72117
- /* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
72118
- /* harmony import */ var copy_to_clipboard__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! copy-to-clipboard */ "./node_modules/copy-to-clipboard/index.js");
72119
- /* harmony import */ var copy_to_clipboard__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(copy_to_clipboard__WEBPACK_IMPORTED_MODULE_11__);
72120
- /* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rc-util/es/omit */ "./node_modules/rc-util/es/omit.js");
72121
- /* harmony import */ var _ant_design_icons_es_icons_EditOutlined__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ant-design/icons/es/icons/EditOutlined */ "./node_modules/@ant-design/icons/es/icons/EditOutlined.js");
72122
- /* harmony import */ var _ant_design_icons_es_icons_CheckOutlined__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ant-design/icons/es/icons/CheckOutlined */ "./node_modules/@ant-design/icons/es/icons/CheckOutlined.js");
72123
- /* harmony import */ var _ant_design_icons_es_icons_CopyOutlined__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ant-design/icons/es/icons/CopyOutlined */ "./node_modules/@ant-design/icons/es/icons/CopyOutlined.js");
72124
- /* harmony import */ var rc_resize_observer__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! rc-resize-observer */ "./node_modules/rc-resize-observer/es/index.js");
72125
- /* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/es/config-provider/index.js");
72126
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/antd/es/locale-provider/LocaleReceiver.js");
72127
- /* harmony import */ var _util_devWarning__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../_util/devWarning */ "./node_modules/antd/es/_util/devWarning.js");
72128
- /* harmony import */ var _util_transButton__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../_util/transButton */ "./node_modules/antd/es/_util/transButton.js");
72129
- /* harmony import */ var _util_raf__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../_util/raf */ "./node_modules/antd/es/_util/raf.js");
72130
- /* harmony import */ var _util_styleChecker__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../_util/styleChecker */ "./node_modules/antd/es/_util/styleChecker.js");
72131
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../tooltip */ "./node_modules/antd/es/tooltip/index.js");
72132
- /* harmony import */ var _Typography__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Typography */ "./node_modules/antd/es/typography/Typography.js");
72133
- /* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Editable */ "./node_modules/antd/es/typography/Editable.js");
72134
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./util */ "./node_modules/antd/es/typography/util.js");
72120
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
72121
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
72122
+ /* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
72123
+
72124
+
72125
+
72126
+
72127
+
72128
+
72129
+ function cuttable(node) {
72130
+ var type = Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(node);
72131
+
72132
+ return type === 'string' || type === 'number';
72133
+ }
72134
+
72135
+ function getNodesLen(nodeList) {
72136
+ var totalLen = 0;
72137
+ nodeList.forEach(function (node) {
72138
+ if (cuttable(node)) {
72139
+ totalLen += String(node).length;
72140
+ } else {
72141
+ totalLen += 1;
72142
+ }
72143
+ });
72144
+ return totalLen;
72145
+ }
72146
+
72147
+ function sliceNodes(nodeList, len) {
72148
+ var currLen = 0;
72149
+ var currentNodeList = [];
72150
+
72151
+ for (var i = 0; i < nodeList.length; i += 1) {
72152
+ // Match to return
72153
+ if (currLen === len) {
72154
+ return currentNodeList;
72155
+ }
72156
+
72157
+ var node = nodeList[i];
72158
+ var canCut = cuttable(node);
72159
+ var nodeLen = canCut ? String(node).length : 1;
72160
+ var nextLen = currLen + nodeLen; // Exceed but current not which means we need cut this
72161
+ // This will not happen on validate ReactElement
72162
+
72163
+ if (nextLen > len) {
72164
+ var restLen = len - currLen;
72165
+ currentNodeList.push(String(node).slice(0, restLen));
72166
+ return currentNodeList;
72167
+ }
72168
+
72169
+ currentNodeList.push(node);
72170
+ currLen = nextLen;
72171
+ }
72172
+
72173
+ return nodeList;
72174
+ }
72175
+
72176
+ var NONE = 0;
72177
+ var PREPARE = 1;
72178
+ var WALKING = 2;
72179
+ var DONE_WITH_ELLIPSIS = 3;
72180
+ var DONE_WITHOUT_ELLIPSIS = 4;
72181
+
72182
+ var Ellipsis = function Ellipsis(_ref) {
72183
+ var enabledMeasure = _ref.enabledMeasure,
72184
+ children = _ref.children,
72185
+ text = _ref.text,
72186
+ width = _ref.width,
72187
+ rows = _ref.rows,
72188
+ onEllipsis = _ref.onEllipsis;
72189
+
72190
+ var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__["useState"]([0, 0, 0]),
72191
+ _React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_React$useState, 2),
72192
+ cutLength = _React$useState2[0],
72193
+ setCutLength = _React$useState2[1];
72194
+
72195
+ var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_3__["useState"](NONE),
72196
+ _React$useState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_React$useState3, 2),
72197
+ walkingState = _React$useState4[0],
72198
+ setWalkingState = _React$useState4[1];
72199
+
72200
+ var _cutLength = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(cutLength, 3),
72201
+ startLen = _cutLength[0],
72202
+ midLen = _cutLength[1],
72203
+ endLen = _cutLength[2];
72204
+
72205
+ var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_3__["useState"](0),
72206
+ _React$useState6 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_React$useState5, 2),
72207
+ singleRowHeight = _React$useState6[0],
72208
+ setSingleRowHeight = _React$useState6[1];
72209
+
72210
+ var singleRowRef = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](null);
72211
+ var midRowRef = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](null);
72212
+ var nodeList = react__WEBPACK_IMPORTED_MODULE_3__["useMemo"](function () {
72213
+ return Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(text);
72214
+ }, [text]);
72215
+ var totalLen = react__WEBPACK_IMPORTED_MODULE_3__["useMemo"](function () {
72216
+ return getNodesLen(nodeList);
72217
+ }, [nodeList]);
72218
+ var mergedChildren = react__WEBPACK_IMPORTED_MODULE_3__["useMemo"](function () {
72219
+ if (!enabledMeasure || walkingState !== DONE_WITH_ELLIPSIS) {
72220
+ return children(nodeList, false);
72221
+ }
72222
+
72223
+ return children(sliceNodes(nodeList, midLen), midLen < totalLen);
72224
+ }, [enabledMeasure, walkingState, children, nodeList, midLen, totalLen]); // ======================== Walk ========================
72225
+
72226
+ react__WEBPACK_IMPORTED_MODULE_3__["useLayoutEffect"](function () {
72227
+ if (enabledMeasure && width && totalLen) {
72228
+ setWalkingState(PREPARE);
72229
+ setCutLength([0, Math.ceil(totalLen / 2), totalLen]);
72230
+ }
72231
+ }, [enabledMeasure, width, text, totalLen, rows]);
72232
+ react__WEBPACK_IMPORTED_MODULE_3__["useLayoutEffect"](function () {
72233
+ var _a;
72234
+
72235
+ if (walkingState === PREPARE) {
72236
+ setSingleRowHeight(((_a = singleRowRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0);
72237
+ }
72238
+ }, [walkingState]);
72239
+ react__WEBPACK_IMPORTED_MODULE_3__["useLayoutEffect"](function () {
72240
+ var _a, _b;
72241
+
72242
+ if (singleRowHeight) {
72243
+ if (walkingState === PREPARE) {
72244
+ // Ignore if position is enough
72245
+ var midHeight = ((_a = midRowRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
72246
+ var maxHeight = rows * singleRowHeight;
72247
+
72248
+ if (midHeight <= maxHeight) {
72249
+ setWalkingState(DONE_WITHOUT_ELLIPSIS);
72250
+ onEllipsis(false);
72251
+ } else {
72252
+ setWalkingState(WALKING);
72253
+ }
72254
+ } else if (walkingState === WALKING) {
72255
+ if (startLen !== endLen) {
72256
+ var _midHeight = ((_b = midRowRef.current) === null || _b === void 0 ? void 0 : _b.offsetHeight) || 0;
72257
+
72258
+ var _maxHeight = rows * singleRowHeight;
72259
+
72260
+ var nextStartLen = startLen;
72261
+ var nextEndLen = endLen; // We reach the last round
72262
+
72263
+ if (startLen === endLen - 1) {
72264
+ nextEndLen = startLen;
72265
+ } else if (_midHeight <= _maxHeight) {
72266
+ nextStartLen = midLen;
72267
+ } else {
72268
+ nextEndLen = midLen;
72269
+ }
72270
+
72271
+ var nextMidLen = Math.ceil((nextStartLen + nextEndLen) / 2);
72272
+ setCutLength([nextStartLen, nextMidLen, nextEndLen]);
72273
+ } else {
72274
+ setWalkingState(DONE_WITH_ELLIPSIS);
72275
+ onEllipsis(true);
72276
+ }
72277
+ }
72278
+ }
72279
+ }, [walkingState, startLen, endLen, rows, singleRowHeight]); // ======================= Render =======================
72280
+
72281
+ var measureStyle = {
72282
+ width: width,
72283
+ whiteSpace: 'normal',
72284
+ margin: 0,
72285
+ padding: 0
72286
+ };
72287
+
72288
+ var renderMeasure = function renderMeasure(content, ref, style) {
72289
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("span", {
72290
+ "aria-hidden": true,
72291
+ ref: ref,
72292
+ style: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
72293
+ position: 'fixed',
72294
+ display: 'block',
72295
+ left: 0,
72296
+ top: 0,
72297
+ zIndex: -9999,
72298
+ visibility: 'hidden',
72299
+ pointerEvents: 'none'
72300
+ }, style)
72301
+ }, content);
72302
+ };
72303
+
72304
+ var renderMeasureSlice = function renderMeasureSlice(len, ref) {
72305
+ var sliceNodeList = sliceNodes(nodeList, len);
72306
+ return renderMeasure(children(sliceNodeList, true), ref, measureStyle);
72307
+ };
72308
+
72309
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](react__WEBPACK_IMPORTED_MODULE_3__["Fragment"], null, mergedChildren, enabledMeasure && walkingState !== DONE_WITH_ELLIPSIS && walkingState !== DONE_WITHOUT_ELLIPSIS && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](react__WEBPACK_IMPORTED_MODULE_3__["Fragment"], null, renderMeasure('lg', singleRowRef, {
72310
+ width: 9999
72311
+ }), walkingState === PREPARE ? renderMeasure(children(nodeList, false), midRowRef, measureStyle) : renderMeasureSlice(midLen, midRowRef)));
72312
+ };
72313
+
72314
+ if (true) {
72315
+ Ellipsis.displayName = 'Ellipsis';
72316
+ }
72317
+
72318
+ /* harmony default export */ __webpack_exports__["a"] = (Ellipsis);
72319
+
72320
+ /***/ }),
72321
+
72322
+ /***/ "./node_modules/antd/es/typography/Base/EllipsisTooltip.js":
72323
+ /*!*****************************************************************!*\
72324
+ !*** ./node_modules/antd/es/typography/Base/EllipsisTooltip.js ***!
72325
+ \*****************************************************************/
72326
+ /*! exports provided: default */
72327
+ /*! exports used: default */
72328
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
72329
+
72330
+ "use strict";
72331
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
72332
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
72333
+ /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../tooltip */ "./node_modules/antd/es/tooltip/index.js");
72334
+
72335
+
72336
+
72337
+ var EllipsisTooltip = function EllipsisTooltip(_ref) {
72338
+ var title = _ref.title,
72339
+ enabledEllipsis = _ref.enabledEllipsis,
72340
+ isEllipsis = _ref.isEllipsis,
72341
+ children = _ref.children;
72342
+
72343
+ if (!title || !enabledEllipsis) {
72344
+ return children;
72345
+ }
72346
+
72347
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_tooltip__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], {
72348
+ title: title,
72349
+ visible: isEllipsis ? undefined : false
72350
+ }, children);
72351
+ };
72135
72352
 
72353
+ if (true) {
72354
+ EllipsisTooltip.displayName = 'EllipsisTooltip';
72355
+ }
72136
72356
 
72357
+ /* harmony default export */ __webpack_exports__["a"] = (EllipsisTooltip);
72137
72358
 
72359
+ /***/ }),
72138
72360
 
72361
+ /***/ "./node_modules/antd/es/typography/Base/index.js":
72362
+ /*!*******************************************************!*\
72363
+ !*** ./node_modules/antd/es/typography/Base/index.js ***!
72364
+ \*******************************************************/
72365
+ /*! exports provided: default */
72366
+ /*! exports used: default */
72367
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
72368
+
72369
+ "use strict";
72370
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
72371
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
72372
+ /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
72373
+ /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
72374
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
72375
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
72376
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
72377
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
72378
+ /* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ "./node_modules/rc-util/es/hooks/useMergedState.js");
72379
+ /* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
72380
+ /* harmony import */ var copy_to_clipboard__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! copy-to-clipboard */ "./node_modules/copy-to-clipboard/index.js");
72381
+ /* harmony import */ var copy_to_clipboard__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(copy_to_clipboard__WEBPACK_IMPORTED_MODULE_8__);
72382
+ /* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rc-util/es/omit */ "./node_modules/rc-util/es/omit.js");
72383
+ /* harmony import */ var rc_util_es_ref__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rc-util/es/ref */ "./node_modules/rc-util/es/ref.js");
72384
+ /* harmony import */ var _ant_design_icons_es_icons_EditOutlined__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ant-design/icons/es/icons/EditOutlined */ "./node_modules/@ant-design/icons/es/icons/EditOutlined.js");
72385
+ /* harmony import */ var _ant_design_icons_es_icons_CheckOutlined__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ant-design/icons/es/icons/CheckOutlined */ "./node_modules/@ant-design/icons/es/icons/CheckOutlined.js");
72386
+ /* harmony import */ var _ant_design_icons_es_icons_CopyOutlined__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ant-design/icons/es/icons/CopyOutlined */ "./node_modules/@ant-design/icons/es/icons/CopyOutlined.js");
72387
+ /* harmony import */ var rc_resize_observer__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rc-resize-observer */ "./node_modules/rc-resize-observer/es/index.js");
72388
+ /* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../config-provider */ "./node_modules/antd/es/config-provider/index.js");
72389
+ /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../locale-provider/LocaleReceiver */ "./node_modules/antd/es/locale-provider/LocaleReceiver.js");
72390
+ /* harmony import */ var _util_transButton__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../_util/transButton */ "./node_modules/antd/es/_util/transButton.js");
72391
+ /* harmony import */ var _util_styleChecker__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../_util/styleChecker */ "./node_modules/antd/es/_util/styleChecker.js");
72392
+ /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../tooltip */ "./node_modules/antd/es/tooltip/index.js");
72393
+ /* harmony import */ var _Typography__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../Typography */ "./node_modules/antd/es/typography/Typography.js");
72394
+ /* harmony import */ var _Editable__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../Editable */ "./node_modules/antd/es/typography/Editable.js");
72395
+ /* harmony import */ var _hooks_useMergedConfig__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../hooks/useMergedConfig */ "./node_modules/antd/es/typography/hooks/useMergedConfig.js");
72396
+ /* harmony import */ var _hooks_useUpdatedEffect__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../hooks/useUpdatedEffect */ "./node_modules/antd/es/typography/hooks/useUpdatedEffect.js");
72397
+ /* harmony import */ var _Ellipsis__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Ellipsis */ "./node_modules/antd/es/typography/Base/Ellipsis.js");
72398
+ /* harmony import */ var _EllipsisTooltip__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./EllipsisTooltip */ "./node_modules/antd/es/typography/Base/EllipsisTooltip.js");
72139
72399
 
72140
72400
 
72141
72401
 
@@ -72173,8 +72433,9 @@ var __rest = undefined && undefined.__rest || function (s, e) {
72173
72433
 
72174
72434
 
72175
72435
 
72176
- var isLineClampSupport = Object(_util_styleChecker__WEBPACK_IMPORTED_MODULE_22__[/* isStyleSupport */ "c"])('webkitLineClamp');
72177
- var isTextOverflowSupport = Object(_util_styleChecker__WEBPACK_IMPORTED_MODULE_22__[/* isStyleSupport */ "c"])('textOverflow');
72436
+
72437
+
72438
+
72178
72439
 
72179
72440
  function wrapperDecorations(_ref, content) {
72180
72441
  var mark = _ref.mark,
@@ -72188,7 +72449,7 @@ function wrapperDecorations(_ref, content) {
72188
72449
 
72189
72450
  function wrap(needed, tag) {
72190
72451
  if (!needed) return;
72191
- currentContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](tag, {}, currentContent);
72452
+ currentContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](tag, {}, currentContent);
72192
72453
  }
72193
72454
 
72194
72455
  wrap(strong, 'strong');
@@ -72209,494 +72470,392 @@ function getNode(dom, defaultNode, needDom) {
72209
72470
  return dom || needDom && defaultNode;
72210
72471
  }
72211
72472
 
72212
- var ELLIPSIS_STR = '...';
72213
-
72214
- var Base = /*#__PURE__*/function (_React$Component) {
72215
- Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(Base, _React$Component);
72216
-
72217
- var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Base);
72218
-
72219
- function Base() {
72220
- var _this;
72221
-
72222
- Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(this, Base);
72473
+ function toList(val) {
72474
+ return Array.isArray(val) ? val : [val];
72475
+ }
72223
72476
 
72224
- _this = _super.apply(this, arguments);
72225
- _this.contentRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createRef"]();
72226
- _this.state = {
72227
- edit: false,
72228
- copied: false,
72229
- ellipsisText: '',
72230
- ellipsisContent: null,
72231
- isEllipsis: false,
72232
- expanded: false,
72233
- clientRendered: false
72234
- };
72477
+ var ELLIPSIS_STR = '...';
72478
+ var Base = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](function (props, ref) {
72479
+ var customizePrefixCls = props.prefixCls,
72480
+ className = props.className,
72481
+ style = props.style,
72482
+ type = props.type,
72483
+ disabled = props.disabled,
72484
+ children = props.children,
72485
+ ellipsis = props.ellipsis,
72486
+ editable = props.editable,
72487
+ copyable = props.copyable,
72488
+ component = props.component,
72489
+ title = props.title,
72490
+ restProps = __rest(props, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]);
72235
72491
 
72236
- _this.getPrefixCls = function () {
72237
- var customizePrefixCls = _this.props.prefixCls;
72238
- var getPrefixCls = _this.context.getPrefixCls;
72239
- return getPrefixCls('typography', customizePrefixCls);
72240
- }; // =============== Expand ===============
72492
+ var _React$useContext = react__WEBPACK_IMPORTED_MODULE_4__["useContext"](_config_provider__WEBPACK_IMPORTED_MODULE_15__[/* ConfigContext */ "b"]),
72493
+ getPrefixCls = _React$useContext.getPrefixCls,
72494
+ direction = _React$useContext.direction;
72241
72495
 
72496
+ var textLocale = Object(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_16__[/* useLocaleReceiver */ "b"])('Text')[0]; // Force TS get this
72242
72497
 
72243
- _this.onExpandClick = function (e) {
72244
- var _a;
72498
+ var typographyRef = react__WEBPACK_IMPORTED_MODULE_4__["useRef"](null);
72499
+ var editIconRef = react__WEBPACK_IMPORTED_MODULE_4__["useRef"](null); // ============================ MISC ============================
72245
72500
 
72246
- var _this$getEllipsis = _this.getEllipsis(),
72247
- onExpand = _this$getEllipsis.onExpand;
72501
+ var prefixCls = getPrefixCls('typography', customizePrefixCls);
72502
+ var textProps = Object(rc_util_es_omit__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])(restProps, ['mark', 'code', 'delete', 'underline', 'strong', 'keyboard', 'italic']); // ========================== Editable ==========================
72248
72503
 
72249
- _this.setState({
72250
- expanded: true
72251
- });
72504
+ var _useMergedConfig = Object(_hooks_useMergedConfig__WEBPACK_IMPORTED_MODULE_22__[/* default */ "a"])(editable),
72505
+ _useMergedConfig2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_useMergedConfig, 2),
72506
+ enableEdit = _useMergedConfig2[0],
72507
+ editConfig = _useMergedConfig2[1];
72252
72508
 
72253
- (_a = onExpand) === null || _a === void 0 ? void 0 : _a(e);
72254
- }; // ================ Edit ================
72509
+ var _useMergedState = Object(rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(false, {
72510
+ value: editConfig.editing
72511
+ }),
72512
+ _useMergedState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_useMergedState, 2),
72513
+ editing = _useMergedState2[0],
72514
+ setEditing = _useMergedState2[1];
72255
72515
 
72516
+ var _editConfig$triggerTy = editConfig.triggerType,
72517
+ triggerType = _editConfig$triggerTy === void 0 ? ['icon'] : _editConfig$triggerTy;
72256
72518
 
72257
- _this.onEditClick = function (e) {
72258
- e.preventDefault();
72519
+ var triggerEdit = function triggerEdit(edit) {
72520
+ var _a;
72259
72521
 
72260
- _this.triggerEdit(true);
72261
- };
72522
+ if (edit) {
72523
+ (_a = editConfig.onStart) === null || _a === void 0 ? void 0 : _a.call(editConfig);
72524
+ }
72262
72525
 
72263
- _this.onEditChange = function (value) {
72264
- var _this$getEditable = _this.getEditable(),
72265
- onChange = _this$getEditable.onChange;
72526
+ setEditing(edit);
72527
+ }; // Focus edit icon when back
72266
72528
 
72267
- onChange === null || onChange === void 0 ? void 0 : onChange(value);
72268
72529
 
72269
- _this.triggerEdit(false);
72270
- };
72530
+ Object(_hooks_useUpdatedEffect__WEBPACK_IMPORTED_MODULE_23__[/* default */ "a"])(function () {
72531
+ var _a;
72271
72532
 
72272
- _this.onEditCancel = function () {
72273
- var _a, _b;
72533
+ if (!editing) {
72534
+ (_a = editIconRef.current) === null || _a === void 0 ? void 0 : _a.focus();
72535
+ }
72536
+ }, [editing]);
72274
72537
 
72275
- (_b = (_a = _this.getEditable()).onCancel) === null || _b === void 0 ? void 0 : _b.call(_a);
72538
+ var onEditClick = function onEditClick(e) {
72539
+ e.preventDefault();
72540
+ triggerEdit(true);
72541
+ };
72276
72542
 
72277
- _this.triggerEdit(false);
72278
- }; // ================ Copy ================
72543
+ var onEditChange = function onEditChange(value) {
72544
+ var _a;
72279
72545
 
72546
+ (_a = editConfig.onChange) === null || _a === void 0 ? void 0 : _a.call(editConfig, value);
72547
+ triggerEdit(false);
72548
+ };
72280
72549
 
72281
- _this.onCopyClick = function (e) {
72282
- e.preventDefault();
72283
- var _this$props = _this.props,
72284
- children = _this$props.children,
72285
- copyable = _this$props.copyable;
72550
+ var onEditCancel = function onEditCancel() {
72551
+ var _a;
72286
72552
 
72287
- var copyConfig = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])({}, Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(copyable) === 'object' ? copyable : null);
72553
+ (_a = editConfig.onCancel) === null || _a === void 0 ? void 0 : _a.call(editConfig);
72554
+ triggerEdit(false);
72555
+ }; // ========================== Copyable ==========================
72288
72556
 
72289
- if (copyConfig.text === undefined) {
72290
- copyConfig.text = String(children);
72291
- }
72292
72557
 
72293
- copy_to_clipboard__WEBPACK_IMPORTED_MODULE_11___default()(copyConfig.text || '');
72558
+ var _useMergedConfig3 = Object(_hooks_useMergedConfig__WEBPACK_IMPORTED_MODULE_22__[/* default */ "a"])(copyable),
72559
+ _useMergedConfig4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_useMergedConfig3, 2),
72560
+ enableCopy = _useMergedConfig4[0],
72561
+ copyConfig = _useMergedConfig4[1];
72294
72562
 
72295
- _this.setState({
72296
- copied: true
72297
- }, function () {
72298
- if (copyConfig.onCopy) {
72299
- copyConfig.onCopy();
72300
- }
72563
+ var _React$useState = react__WEBPACK_IMPORTED_MODULE_4__["useState"](false),
72564
+ _React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_React$useState, 2),
72565
+ copied = _React$useState2[0],
72566
+ setCopied = _React$useState2[1];
72301
72567
 
72302
- _this.copyId = window.setTimeout(function () {
72303
- _this.setState({
72304
- copied: false
72305
- });
72306
- }, 3000);
72307
- });
72308
- };
72568
+ var copyIdRef = react__WEBPACK_IMPORTED_MODULE_4__["useRef"]();
72309
72569
 
72310
- _this.setEditRef = function (node) {
72311
- _this.editIcon = node;
72312
- };
72570
+ var cleanCopyId = function cleanCopyId() {
72571
+ clearTimeout(copyIdRef.current);
72572
+ };
72313
72573
 
72314
- _this.triggerEdit = function (edit) {
72315
- var _this$getEditable2 = _this.getEditable(),
72316
- onStart = _this$getEditable2.onStart;
72574
+ var onCopyClick = function onCopyClick(e) {
72575
+ var _a;
72317
72576
 
72318
- if (edit && onStart) {
72319
- onStart();
72320
- }
72577
+ e.preventDefault();
72321
72578
 
72322
- _this.setState({
72323
- edit: edit
72324
- }, function () {
72325
- if (!edit && _this.editIcon) {
72326
- _this.editIcon.focus();
72327
- }
72328
- });
72329
- }; // ============== Ellipsis ==============
72579
+ if (copyConfig.text === undefined) {
72580
+ copyConfig.text = String(children);
72581
+ }
72330
72582
 
72583
+ copy_to_clipboard__WEBPACK_IMPORTED_MODULE_8___default()(copyConfig.text || '');
72584
+ setCopied(true); // Trigger tips update
72331
72585
 
72332
- _this.resizeOnNextFrame = function () {
72333
- _util_raf__WEBPACK_IMPORTED_MODULE_21__[/* default */ "a"].cancel(_this.rafId);
72334
- _this.rafId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_21__[/* default */ "a"])(function () {
72335
- // Do not bind `syncEllipsis`. It need for test usage on prototype
72336
- _this.syncEllipsis();
72337
- });
72338
- };
72586
+ cleanCopyId();
72587
+ copyIdRef.current = setTimeout(function () {
72588
+ setCopied(false);
72589
+ }, 3000);
72590
+ (_a = copyConfig.onCopy) === null || _a === void 0 ? void 0 : _a.call(copyConfig);
72591
+ };
72339
72592
 
72340
- return _this;
72341
- }
72593
+ react__WEBPACK_IMPORTED_MODULE_4__["useEffect"](function () {
72594
+ return cleanCopyId;
72595
+ }, []); // ========================== Ellipsis ==========================
72342
72596
 
72343
- Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(Base, [{
72344
- key: "componentDidMount",
72345
- value: function componentDidMount() {
72346
- this.setState({
72347
- clientRendered: true
72348
- });
72349
- this.resizeOnNextFrame();
72350
- }
72351
- }, {
72352
- key: "componentDidUpdate",
72353
- value: function componentDidUpdate(prevProps) {
72354
- var children = this.props.children;
72355
- var ellipsis = this.getEllipsis();
72356
- var prevEllipsis = this.getEllipsis(prevProps);
72597
+ var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_4__["useState"](false),
72598
+ _React$useState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_React$useState3, 2),
72599
+ isLineClampSupport = _React$useState4[0],
72600
+ setIsLineClampSupport = _React$useState4[1];
72357
72601
 
72358
- if (children !== prevProps.children || ellipsis.rows !== prevEllipsis.rows) {
72359
- this.resizeOnNextFrame();
72360
- }
72361
- }
72362
- }, {
72363
- key: "componentWillUnmount",
72364
- value: function componentWillUnmount() {
72365
- window.clearTimeout(this.copyId);
72366
- _util_raf__WEBPACK_IMPORTED_MODULE_21__[/* default */ "a"].cancel(this.rafId);
72602
+ var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_4__["useState"](false),
72603
+ _React$useState6 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_React$useState5, 2),
72604
+ isTextOverflowSupport = _React$useState6[0],
72605
+ setIsTextOverflowSupport = _React$useState6[1];
72606
+
72607
+ var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_4__["useState"](false),
72608
+ _React$useState8 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_React$useState7, 2),
72609
+ expanded = _React$useState8[0],
72610
+ setExpanded = _React$useState8[1];
72611
+
72612
+ var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_4__["useState"](false),
72613
+ _React$useState10 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_React$useState9, 2),
72614
+ isJsEllipsis = _React$useState10[0],
72615
+ setIsJsEllipsis = _React$useState10[1];
72616
+
72617
+ var _React$useState11 = react__WEBPACK_IMPORTED_MODULE_4__["useState"](false),
72618
+ _React$useState12 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_React$useState11, 2),
72619
+ isNativeEllipsis = _React$useState12[0],
72620
+ setIsNativeEllipsis = _React$useState12[1];
72621
+
72622
+ var _useMergedConfig5 = Object(_hooks_useMergedConfig__WEBPACK_IMPORTED_MODULE_22__[/* default */ "a"])(ellipsis, {
72623
+ expandable: false
72624
+ }),
72625
+ _useMergedConfig6 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_useMergedConfig5, 2),
72626
+ enableEllipsis = _useMergedConfig6[0],
72627
+ ellipsisConfig = _useMergedConfig6[1];
72628
+
72629
+ var mergedEnableEllipsis = enableEllipsis && !expanded; // Shared prop to reduce bundle size
72630
+
72631
+ var _ellipsisConfig$rows = ellipsisConfig.rows,
72632
+ rows = _ellipsisConfig$rows === void 0 ? 1 : _ellipsisConfig$rows;
72633
+ var needMeasureEllipsis = react__WEBPACK_IMPORTED_MODULE_4__["useMemo"](function () {
72634
+ return (// Disable ellipsis
72635
+ !mergedEnableEllipsis || // Provide suffix
72636
+ ellipsisConfig.suffix !== undefined || ellipsisConfig.onEllipsis || // Can't use css ellipsis since we need to provide the place for button
72637
+ ellipsisConfig.expandable || enableEdit || enableCopy
72638
+ );
72639
+ }, [mergedEnableEllipsis, ellipsisConfig, enableEdit, enableCopy]);
72640
+ react__WEBPACK_IMPORTED_MODULE_4__["useLayoutEffect"](function () {
72641
+ if (enableEllipsis && !needMeasureEllipsis) {
72642
+ setIsLineClampSupport(Object(_util_styleChecker__WEBPACK_IMPORTED_MODULE_18__[/* isStyleSupport */ "c"])('webkitLineClamp'));
72643
+ setIsTextOverflowSupport(Object(_util_styleChecker__WEBPACK_IMPORTED_MODULE_18__[/* isStyleSupport */ "c"])('textOverflow'));
72367
72644
  }
72368
- }, {
72369
- key: "getEditable",
72370
- value: function getEditable(props) {
72371
- var edit = this.state.edit;
72372
-
72373
- var _ref2 = props || this.props,
72374
- editable = _ref2.editable;
72375
-
72376
- if (!editable) return {
72377
- editing: edit
72378
- };
72379
- return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])({
72380
- editing: edit
72381
- }, Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(editable) === 'object' ? editable : null);
72645
+ }, [needMeasureEllipsis, enableEllipsis]);
72646
+ var cssEllipsis = react__WEBPACK_IMPORTED_MODULE_4__["useMemo"](function () {
72647
+ if (needMeasureEllipsis) {
72648
+ return false;
72382
72649
  }
72383
- }, {
72384
- key: "getEllipsis",
72385
- value: function getEllipsis(props) {
72386
- var _ref3 = props || this.props,
72387
- ellipsis = _ref3.ellipsis;
72388
72650
 
72389
- if (!ellipsis) return {};
72390
- return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])({
72391
- rows: 1,
72392
- expandable: false
72393
- }, Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(ellipsis) === 'object' ? ellipsis : null);
72651
+ if (rows === 1) {
72652
+ return isTextOverflowSupport;
72394
72653
  }
72395
- }, {
72396
- key: "canUseCSSEllipsis",
72397
- value: function canUseCSSEllipsis() {
72398
- var clientRendered = this.state.clientRendered;
72399
- var _this$props2 = this.props,
72400
- editable = _this$props2.editable,
72401
- copyable = _this$props2.copyable;
72402
72654
 
72403
- var _this$getEllipsis2 = this.getEllipsis(),
72404
- rows = _this$getEllipsis2.rows,
72405
- expandable = _this$getEllipsis2.expandable,
72406
- suffix = _this$getEllipsis2.suffix,
72407
- onEllipsis = _this$getEllipsis2.onEllipsis,
72408
- tooltip = _this$getEllipsis2.tooltip;
72655
+ return isLineClampSupport;
72656
+ }, [needMeasureEllipsis, isTextOverflowSupport, isLineClampSupport]);
72657
+ var isMergedEllipsis = mergedEnableEllipsis && (cssEllipsis ? isNativeEllipsis : isJsEllipsis);
72658
+ var cssTextOverflow = mergedEnableEllipsis && rows === 1 && cssEllipsis;
72659
+ var cssLineClamp = mergedEnableEllipsis && rows > 1 && cssEllipsis; // >>>>> Expand
72409
72660
 
72410
- if (suffix || tooltip) return false; // Can't use css ellipsis since we need to provide the place for button
72661
+ var onExpandClick = function onExpandClick(e) {
72662
+ var _a;
72411
72663
 
72412
- if (editable || copyable || expandable || !clientRendered || onEllipsis) {
72413
- return false;
72414
- }
72664
+ setExpanded(true);
72665
+ (_a = ellipsisConfig.onExpand) === null || _a === void 0 ? void 0 : _a.call(ellipsisConfig, e);
72666
+ };
72415
72667
 
72416
- if (rows === 1) {
72417
- return isTextOverflowSupport;
72418
- }
72668
+ var _React$useState13 = react__WEBPACK_IMPORTED_MODULE_4__["useState"](0),
72669
+ _React$useState14 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_React$useState13, 2),
72670
+ ellipsisWidth = _React$useState14[0],
72671
+ setEllipsisWidth = _React$useState14[1];
72419
72672
 
72420
- return isLineClampSupport;
72421
- }
72422
- }, {
72423
- key: "syncEllipsis",
72424
- value: function syncEllipsis() {
72425
- var _this$state = this.state,
72426
- ellipsisText = _this$state.ellipsisText,
72427
- isEllipsis = _this$state.isEllipsis,
72428
- expanded = _this$state.expanded;
72429
-
72430
- var _this$getEllipsis3 = this.getEllipsis(),
72431
- rows = _this$getEllipsis3.rows,
72432
- suffix = _this$getEllipsis3.suffix,
72433
- onEllipsis = _this$getEllipsis3.onEllipsis;
72673
+ var onResize = function onResize(_ref2) {
72674
+ var offsetWidth = _ref2.offsetWidth;
72675
+ setEllipsisWidth(offsetWidth);
72676
+ }; // >>>>> JS Ellipsis
72434
72677
 
72435
- var children = this.props.children;
72436
72678
 
72437
- if (!rows || rows < 0 || !this.contentRef.current || expanded) {
72438
- return;
72439
- } // Do not measure if css already support ellipsis
72679
+ var onJsEllipsis = function onJsEllipsis(jsEllipsis) {
72680
+ var _a;
72440
72681
 
72682
+ setIsJsEllipsis(jsEllipsis); // Trigger if changed
72441
72683
 
72442
- if (this.canUseCSSEllipsis()) {
72443
- return;
72444
- }
72684
+ if (isJsEllipsis !== jsEllipsis) {
72685
+ (_a = ellipsisConfig.onEllipsis) === null || _a === void 0 ? void 0 : _a.call(ellipsisConfig, jsEllipsis);
72686
+ }
72687
+ }; // >>>>> Native ellipsis
72445
72688
 
72446
- Object(_util_devWarning__WEBPACK_IMPORTED_MODULE_19__[/* default */ "a"])(Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])(children).every(function (child) {
72447
- return typeof child === 'string';
72448
- }), 'Typography', '`ellipsis` should use string as children only.');
72449
72689
 
72450
- var _measure = Object(_util__WEBPACK_IMPORTED_MODULE_26__[/* default */ "a"])(this.contentRef.current, {
72451
- rows: rows,
72452
- suffix: suffix
72453
- }, children, this.renderOperations(true), ELLIPSIS_STR),
72454
- content = _measure.content,
72455
- text = _measure.text,
72456
- ellipsis = _measure.ellipsis;
72690
+ react__WEBPACK_IMPORTED_MODULE_4__["useEffect"](function () {
72691
+ var textEle = typographyRef.current;
72457
72692
 
72458
- if (ellipsisText !== text || isEllipsis !== ellipsis) {
72459
- this.setState({
72460
- ellipsisText: text,
72461
- ellipsisContent: content,
72462
- isEllipsis: ellipsis
72463
- });
72693
+ if (enableEllipsis && cssEllipsis && textEle) {
72694
+ var currentEllipsis = textEle.offsetWidth < textEle.scrollWidth;
72464
72695
 
72465
- if (isEllipsis !== ellipsis && onEllipsis) {
72466
- onEllipsis(ellipsis);
72467
- }
72696
+ if (isNativeEllipsis !== currentEllipsis) {
72697
+ setIsNativeEllipsis(currentEllipsis);
72468
72698
  }
72469
72699
  }
72470
- }, {
72471
- key: "renderExpand",
72472
- value: function renderExpand(forceRender) {
72473
- var _this$getEllipsis4 = this.getEllipsis(),
72474
- expandable = _this$getEllipsis4.expandable,
72475
- symbol = _this$getEllipsis4.symbol;
72476
-
72477
- var _this$state2 = this.state,
72478
- expanded = _this$state2.expanded,
72479
- isEllipsis = _this$state2.isEllipsis;
72480
- if (!expandable) return null; // force render expand icon for measure usage or it will cause dead loop
72481
-
72482
- if (!forceRender && (expanded || !isEllipsis)) return null;
72483
- var expandContent;
72700
+ }, [enableEllipsis, cssEllipsis, children]); // ========================== Tooltip ===========================
72484
72701
 
72485
- if (symbol) {
72486
- expandContent = symbol;
72487
- } else {
72488
- expandContent = this.expandStr;
72489
- }
72702
+ var tooltipTitle = ellipsisConfig.tooltip === true ? children : ellipsisConfig.tooltip;
72703
+ var topAriaLabel = react__WEBPACK_IMPORTED_MODULE_4__["useMemo"](function () {
72704
+ var isValid = function isValid(val) {
72705
+ return ['string', 'number'].includes(Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(val));
72706
+ };
72490
72707
 
72491
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("a", {
72492
- key: "expand",
72493
- className: "".concat(this.getPrefixCls(), "-expand"),
72494
- onClick: this.onExpandClick,
72495
- "aria-label": this.expandStr
72496
- }, expandContent);
72497
- }
72498
- }, {
72499
- key: "renderEdit",
72500
- value: function renderEdit() {
72501
- var editable = this.props.editable;
72502
- if (!editable) return;
72503
- var icon = editable.icon,
72504
- tooltip = editable.tooltip,
72505
- _editable$triggerType = editable.triggerType,
72506
- triggerType = _editable$triggerType === void 0 ? ['icon'] : _editable$triggerType;
72507
- var title = Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])(tooltip)[0] || this.editStr;
72508
- var ariaLabel = typeof title === 'string' ? title : '';
72509
- return triggerType.indexOf('icon') !== -1 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_tooltip__WEBPACK_IMPORTED_MODULE_23__[/* default */ "a"], {
72510
- key: "edit",
72511
- title: tooltip === false ? '' : title
72512
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_util_transButton__WEBPACK_IMPORTED_MODULE_20__[/* default */ "a"], {
72513
- ref: this.setEditRef,
72514
- className: "".concat(this.getPrefixCls(), "-edit"),
72515
- onClick: this.onEditClick,
72516
- "aria-label": ariaLabel
72517
- }, icon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_ant_design_icons_es_icons_EditOutlined__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"], {
72518
- role: "button"
72519
- }))) : null;
72520
- }
72521
- }, {
72522
- key: "renderCopy",
72523
- value: function renderCopy() {
72524
- var copied = this.state.copied;
72525
- var copyable = this.props.copyable;
72526
- if (!copyable) return;
72527
- var prefixCls = this.getPrefixCls();
72528
- var tooltips = copyable.tooltips,
72529
- icon = copyable.icon;
72530
- var tooltipNodes = Array.isArray(tooltips) ? tooltips : [tooltips];
72531
- var iconNodes = Array.isArray(icon) ? icon : [icon];
72532
- var title = copied ? getNode(tooltipNodes[1], this.copiedStr) : getNode(tooltipNodes[0], this.copyStr);
72533
- var systemStr = copied ? this.copiedStr : this.copyStr;
72534
- var ariaLabel = typeof title === 'string' ? title : systemStr;
72535
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_tooltip__WEBPACK_IMPORTED_MODULE_23__[/* default */ "a"], {
72536
- key: "copy",
72537
- title: title
72538
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_util_transButton__WEBPACK_IMPORTED_MODULE_20__[/* default */ "a"], {
72539
- className: classnames__WEBPACK_IMPORTED_MODULE_9___default()("".concat(prefixCls, "-copy"), copied && "".concat(prefixCls, "-copy-success")),
72540
- onClick: this.onCopyClick,
72541
- "aria-label": ariaLabel
72542
- }, copied ? getNode(iconNodes[1], /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_ant_design_icons_es_icons_CheckOutlined__WEBPACK_IMPORTED_MODULE_14__[/* default */ "a"], null), true) : getNode(iconNodes[0], /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_ant_design_icons_es_icons_CopyOutlined__WEBPACK_IMPORTED_MODULE_15__[/* default */ "a"], null), true)));
72543
- }
72544
- }, {
72545
- key: "renderEditInput",
72546
- value: function renderEditInput() {
72547
- var _this$props3 = this.props,
72548
- children = _this$props3.children,
72549
- className = _this$props3.className,
72550
- style = _this$props3.style;
72551
- var direction = this.context.direction;
72552
-
72553
- var _this$getEditable3 = this.getEditable(),
72554
- maxLength = _this$getEditable3.maxLength,
72555
- autoSize = _this$getEditable3.autoSize,
72556
- onEnd = _this$getEditable3.onEnd,
72557
- enterIcon = _this$getEditable3.enterIcon;
72558
-
72559
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_Editable__WEBPACK_IMPORTED_MODULE_25__[/* default */ "a"], {
72560
- value: typeof children === 'string' ? children : '',
72561
- onSave: this.onEditChange,
72562
- onCancel: this.onEditCancel,
72563
- onEnd: onEnd,
72564
- prefixCls: this.getPrefixCls(),
72565
- className: className,
72566
- style: style,
72567
- direction: direction,
72568
- maxLength: maxLength,
72569
- autoSize: autoSize,
72570
- enterIcon: enterIcon
72571
- });
72572
- }
72573
- }, {
72574
- key: "renderOperations",
72575
- value: function renderOperations(forceRenderExpanded) {
72576
- return [this.renderExpand(forceRenderExpanded), this.renderEdit(), this.renderCopy()].filter(function (node) {
72577
- return node;
72578
- });
72708
+ if (!enableEllipsis || cssEllipsis) {
72709
+ return undefined;
72579
72710
  }
72580
- }, {
72581
- key: "renderContent",
72582
- value: function renderContent() {
72583
- var _this2 = this;
72584
-
72585
- var _this$state3 = this.state,
72586
- ellipsisContent = _this$state3.ellipsisContent,
72587
- isEllipsis = _this$state3.isEllipsis,
72588
- expanded = _this$state3.expanded;
72589
-
72590
- var _a = this.props,
72591
- component = _a.component,
72592
- children = _a.children,
72593
- className = _a.className,
72594
- type = _a.type,
72595
- disabled = _a.disabled,
72596
- style = _a.style,
72597
- restProps = __rest(_a, ["component", "children", "className", "type", "disabled", "style"]);
72598
72711
 
72599
- var direction = this.context.direction;
72600
-
72601
- var _this$getEllipsis5 = this.getEllipsis(),
72602
- rows = _this$getEllipsis5.rows,
72603
- suffix = _this$getEllipsis5.suffix,
72604
- tooltip = _this$getEllipsis5.tooltip;
72605
-
72606
- var _this$getEditable4 = this.getEditable(),
72607
- _this$getEditable4$tr = _this$getEditable4.triggerType,
72608
- triggerType = _this$getEditable4$tr === void 0 ? ['icon'] : _this$getEditable4$tr;
72609
-
72610
- var prefixCls = this.getPrefixCls();
72611
- var textProps = Object(rc_util_es_omit__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(restProps, ['prefixCls', 'editable', 'copyable', 'ellipsis', 'mark', 'code', 'delete', 'underline', 'strong', 'keyboard', 'italic'].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_config_provider__WEBPACK_IMPORTED_MODULE_17__[/* configConsumerProps */ "c"])));
72612
- var cssEllipsis = this.canUseCSSEllipsis();
72613
- var cssTextOverflow = rows === 1 && cssEllipsis;
72614
- var cssLineClamp = rows && rows > 1 && cssEllipsis;
72615
- var textNode = children; // Only use js ellipsis when css ellipsis not support
72616
-
72617
- if (rows && isEllipsis && !expanded && !cssEllipsis) {
72618
- var title = restProps.title;
72619
- var restContent = title || '';
72620
-
72621
- if (!title && (typeof children === 'string' || typeof children === 'number')) {
72622
- restContent = String(children);
72623
- } // show rest content as title on symbol
72624
-
72625
-
72626
- restContent = restContent.slice(String(ellipsisContent || '').length); // We move full content to outer element to avoid repeat read the content by accessibility
72712
+ if (isValid(children)) {
72713
+ return children;
72714
+ }
72627
72715
 
72628
- textNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](react__WEBPACK_IMPORTED_MODULE_8__["Fragment"], null, ellipsisContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("span", {
72629
- title: restContent,
72630
- "aria-hidden": "true"
72631
- }, ELLIPSIS_STR), suffix); // If provided tooltip, we need wrap with span to let Tooltip inject events
72716
+ if (isValid(title)) {
72717
+ return title;
72718
+ }
72632
72719
 
72633
- if (tooltip) {
72634
- textNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_tooltip__WEBPACK_IMPORTED_MODULE_23__[/* default */ "a"], {
72635
- title: tooltip === true ? children : tooltip
72636
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("span", null, textNode));
72637
- }
72638
- } else {
72639
- textNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](react__WEBPACK_IMPORTED_MODULE_8__["Fragment"], null, children, suffix);
72640
- }
72720
+ if (isValid(tooltipTitle)) {
72721
+ return tooltipTitle;
72722
+ }
72641
72723
 
72642
- textNode = wrapperDecorations(this.props, textNode);
72643
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_18__[/* default */ "a"], {
72644
- componentName: "Text"
72645
- }, function (_ref4) {
72646
- var _classNames;
72724
+ return undefined;
72725
+ }, [enableEllipsis, cssEllipsis, title, tooltipTitle, isMergedEllipsis]); // =========================== Render ===========================
72726
+ // >>>>>>>>>>> Editing input
72727
+
72728
+ if (editing) {
72729
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_Editable__WEBPACK_IMPORTED_MODULE_21__[/* default */ "a"], {
72730
+ value: typeof children === 'string' ? children : '',
72731
+ onSave: onEditChange,
72732
+ onCancel: onEditCancel,
72733
+ onEnd: editConfig.onEnd,
72734
+ prefixCls: prefixCls,
72735
+ className: className,
72736
+ style: style,
72737
+ direction: direction,
72738
+ maxLength: editConfig.maxLength,
72739
+ autoSize: editConfig.autoSize,
72740
+ enterIcon: editConfig.enterIcon
72741
+ });
72742
+ } // >>>>>>>>>>> Typography
72743
+ // Expand
72647
72744
 
72648
- var edit = _ref4.edit,
72649
- copyStr = _ref4.copy,
72650
- copied = _ref4.copied,
72651
- expand = _ref4.expand;
72652
- _this2.editStr = edit;
72653
- _this2.copyStr = copyStr;
72654
- _this2.copiedStr = copied;
72655
- _this2.expandStr = expand;
72656
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](rc_resize_observer__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"], {
72657
- onResize: _this2.resizeOnNextFrame,
72658
- disabled: cssEllipsis
72659
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_Typography__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])({
72660
- className: classnames__WEBPACK_IMPORTED_MODULE_9___default()((_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-").concat(type), type), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-disabled"), disabled), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-ellipsis"), rows), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-single-line"), rows === 1 && !isEllipsis), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-ellipsis-single-line"), cssTextOverflow), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-ellipsis-multiple-line"), cssLineClamp), _classNames), className),
72661
- style: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])({}, style), {
72662
- WebkitLineClamp: cssLineClamp ? rows : undefined
72663
- }),
72664
- component: component,
72665
- ref: _this2.contentRef,
72666
- direction: direction,
72667
- onClick: triggerType.indexOf('text') !== -1 ? _this2.onEditClick : function () {}
72668
- }, textProps), textNode, _this2.renderOperations()));
72669
- });
72670
- }
72671
- }, {
72672
- key: "render",
72673
- value: function render() {
72674
- var _this$getEditable5 = this.getEditable(),
72675
- editing = _this$getEditable5.editing;
72676
72745
 
72677
- if (editing) {
72678
- return this.renderEditInput();
72679
- }
72746
+ var renderExpand = function renderExpand() {
72747
+ var expandable = ellipsisConfig.expandable,
72748
+ symbol = ellipsisConfig.symbol;
72749
+ if (!expandable) return null;
72750
+ var expandContent;
72680
72751
 
72681
- return this.renderContent();
72682
- }
72683
- }], [{
72684
- key: "getDerivedStateFromProps",
72685
- value: function getDerivedStateFromProps(nextProps) {
72686
- var children = nextProps.children,
72687
- editable = nextProps.editable;
72688
- Object(_util_devWarning__WEBPACK_IMPORTED_MODULE_19__[/* default */ "a"])(!editable || typeof children === 'string', 'Typography', 'When `editable` is enabled, the `children` should use string.');
72689
- return {};
72752
+ if (symbol) {
72753
+ expandContent = symbol;
72754
+ } else {
72755
+ expandContent = textLocale.expand;
72690
72756
  }
72691
- }]);
72692
72757
 
72693
- return Base;
72694
- }(react__WEBPACK_IMPORTED_MODULE_8__["Component"]);
72758
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("a", {
72759
+ key: "expand",
72760
+ className: "".concat(prefixCls, "-expand"),
72761
+ onClick: onExpandClick,
72762
+ "aria-label": textLocale.expand
72763
+ }, expandContent);
72764
+ }; // Edit
72765
+
72766
+
72767
+ var renderEdit = function renderEdit() {
72768
+ if (!enableEdit) return;
72769
+ var icon = editConfig.icon,
72770
+ tooltip = editConfig.tooltip;
72771
+ var editTitle = Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(tooltip)[0] || textLocale.edit;
72772
+ var ariaLabel = typeof editTitle === 'string' ? editTitle : '';
72773
+ return triggerType.includes('icon') ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_tooltip__WEBPACK_IMPORTED_MODULE_19__[/* default */ "a"], {
72774
+ key: "edit",
72775
+ title: tooltip === false ? '' : editTitle
72776
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_util_transButton__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"], {
72777
+ ref: editIconRef,
72778
+ className: "".concat(prefixCls, "-edit"),
72779
+ onClick: onEditClick,
72780
+ "aria-label": ariaLabel
72781
+ }, icon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_ant_design_icons_es_icons_EditOutlined__WEBPACK_IMPORTED_MODULE_11__[/* default */ "a"], {
72782
+ role: "button"
72783
+ }))) : null;
72784
+ }; // Copy
72785
+
72786
+
72787
+ var renderCopy = function renderCopy() {
72788
+ if (!enableCopy) return;
72789
+ var tooltips = copyConfig.tooltips,
72790
+ icon = copyConfig.icon;
72791
+ var tooltipNodes = toList(tooltips);
72792
+ var iconNodes = toList(icon);
72793
+ var copyTitle = copied ? getNode(tooltipNodes[1], textLocale.copied) : getNode(tooltipNodes[0], textLocale.copy);
72794
+ var systemStr = copied ? textLocale.copied : textLocale.copy;
72795
+ var ariaLabel = typeof copyTitle === 'string' ? copyTitle : systemStr;
72796
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_tooltip__WEBPACK_IMPORTED_MODULE_19__[/* default */ "a"], {
72797
+ key: "copy",
72798
+ title: copyTitle
72799
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_util_transButton__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"], {
72800
+ className: classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-copy"), copied && "".concat(prefixCls, "-copy-success")),
72801
+ onClick: onCopyClick,
72802
+ "aria-label": ariaLabel
72803
+ }, copied ? getNode(iconNodes[1], /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_ant_design_icons_es_icons_CheckOutlined__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"], null), true) : getNode(iconNodes[0], /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_ant_design_icons_es_icons_CopyOutlined__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"], null), true)));
72804
+ };
72805
+
72806
+ var renderOperations = function renderOperations(renderExpanded) {
72807
+ return [renderExpanded && renderExpand(), renderEdit(), renderCopy()];
72808
+ };
72809
+
72810
+ var renderEllipsis = function renderEllipsis(needEllipsis) {
72811
+ return [needEllipsis && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("span", {
72812
+ "aria-hidden": true,
72813
+ key: "ellipsis"
72814
+ }, ELLIPSIS_STR), ellipsisConfig.suffix, renderOperations(needEllipsis)];
72815
+ };
72816
+
72817
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](rc_resize_observer__WEBPACK_IMPORTED_MODULE_14__[/* default */ "a"], {
72818
+ onResize: onResize,
72819
+ disabled: !mergedEnableEllipsis || cssEllipsis
72820
+ }, function (resizeRef) {
72821
+ var _classNames;
72695
72822
 
72696
- Base.contextType = _config_provider__WEBPACK_IMPORTED_MODULE_17__[/* ConfigContext */ "b"];
72697
- Base.defaultProps = {
72698
- children: ''
72699
- };
72823
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_EllipsisTooltip__WEBPACK_IMPORTED_MODULE_25__[/* default */ "a"], {
72824
+ title: tooltipTitle,
72825
+ enabledEllipsis: mergedEnableEllipsis,
72826
+ isEllipsis: isMergedEllipsis
72827
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_Typography__WEBPACK_IMPORTED_MODULE_20__[/* default */ "a"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
72828
+ className: classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-").concat(type), type), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-disabled"), disabled), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-ellipsis"), enableEllipsis), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-single-line"), mergedEnableEllipsis && rows === 1), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-ellipsis-single-line"), cssTextOverflow), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_classNames, "".concat(prefixCls, "-ellipsis-multiple-line"), cssLineClamp), _classNames), className),
72829
+ style: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, style), {
72830
+ WebkitLineClamp: cssLineClamp ? rows : undefined
72831
+ }),
72832
+ component: component,
72833
+ ref: Object(rc_util_es_ref__WEBPACK_IMPORTED_MODULE_10__[/* composeRef */ "a"])(resizeRef, typographyRef, ref),
72834
+ direction: direction,
72835
+ onClick: triggerType.includes('text') ? onEditClick : null,
72836
+ "aria-label": topAriaLabel,
72837
+ title: title
72838
+ }, textProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_Ellipsis__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"], {
72839
+ enabledMeasure: mergedEnableEllipsis && !cssEllipsis,
72840
+ text: children,
72841
+ rows: rows,
72842
+ width: ellipsisWidth,
72843
+ onEllipsis: onJsEllipsis
72844
+ }, function (node, needEllipsis) {
72845
+ var renderNode = node;
72846
+
72847
+ if (node.length && needEllipsis && topAriaLabel) {
72848
+ renderNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("span", {
72849
+ key: "show-content",
72850
+ "aria-hidden": true
72851
+ }, renderNode);
72852
+ }
72853
+
72854
+ var wrappedContext = wrapperDecorations(props, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](react__WEBPACK_IMPORTED_MODULE_4__["Fragment"], null, renderNode, renderEllipsis(needEllipsis)));
72855
+ return wrappedContext;
72856
+ })));
72857
+ });
72858
+ });
72700
72859
  /* harmony default export */ __webpack_exports__["a"] = (Base);
72701
72860
 
72702
72861
  /***/ }),
@@ -72826,6 +72985,7 @@ var Editable = function Editable(_ref) {
72826
72985
  onCompositionEnd: onCompositionEnd,
72827
72986
  onBlur: onBlur,
72828
72987
  "aria-label": ariaLabel,
72988
+ rows: 1,
72829
72989
  autoSize: autoSize
72830
72990
  }), enterIcon !== null ? Object(_util_reactNode__WEBPACK_IMPORTED_MODULE_7__[/* cloneElement */ "a"])(enterIcon, {
72831
72991
  className: "".concat(prefixCls, "-edit-content-confirm")
@@ -72850,7 +73010,7 @@ var Editable = function Editable(_ref) {
72850
73010
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
72851
73011
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
72852
73012
  /* harmony import */ var _util_devWarning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/devWarning */ "./node_modules/antd/es/_util/devWarning.js");
72853
- /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Base */ "./node_modules/antd/es/typography/Base.js");
73013
+ /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Base */ "./node_modules/antd/es/typography/Base/index.js");
72854
73014
 
72855
73015
 
72856
73016
 
@@ -72879,9 +73039,7 @@ var Link = function Link(_a, ref) {
72879
73039
  Object(_util_devWarning__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(ellipsis) !== 'object', 'Typography.Link', '`ellipsis` only supports boolean value.');
72880
73040
  var baseRef = react__WEBPACK_IMPORTED_MODULE_2__["useRef"](null);
72881
73041
  react__WEBPACK_IMPORTED_MODULE_2__["useImperativeHandle"](ref, function () {
72882
- var _a;
72883
-
72884
- return (_a = baseRef.current) === null || _a === void 0 ? void 0 : _a.contentRef.current;
73042
+ return baseRef.current;
72885
73043
  });
72886
73044
 
72887
73045
  var mergedProps = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, restProps), {
@@ -72914,7 +73072,7 @@ var Link = function Link(_a, ref) {
72914
73072
  /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
72915
73073
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
72916
73074
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
72917
- /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Base */ "./node_modules/antd/es/typography/Base.js");
73075
+ /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Base */ "./node_modules/antd/es/typography/Base/index.js");
72918
73076
 
72919
73077
 
72920
73078
 
@@ -72944,7 +73102,7 @@ var Paragraph = function Paragraph(props) {
72944
73102
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
72945
73103
  /* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/es/omit */ "./node_modules/rc-util/es/omit.js");
72946
73104
  /* harmony import */ var _util_devWarning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/devWarning */ "./node_modules/antd/es/_util/devWarning.js");
72947
- /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Base */ "./node_modules/antd/es/typography/Base.js");
73105
+ /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Base */ "./node_modules/antd/es/typography/Base/index.js");
72948
73106
 
72949
73107
 
72950
73108
 
@@ -73001,7 +73159,7 @@ var Text = function Text(_a) {
73001
73159
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
73002
73160
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
73003
73161
  /* harmony import */ var _util_devWarning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/devWarning */ "./node_modules/antd/es/_util/devWarning.js");
73004
- /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Base */ "./node_modules/antd/es/typography/Base.js");
73162
+ /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Base */ "./node_modules/antd/es/typography/Base/index.js");
73005
73163
  /* harmony import */ var _util_type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/type */ "./node_modules/antd/es/_util/type.js");
73006
73164
 
73007
73165
 
@@ -73126,276 +73284,83 @@ var ExportTypography = RefTypography;
73126
73284
 
73127
73285
  /***/ }),
73128
73286
 
73129
- /***/ "./node_modules/antd/es/typography/index.js":
73130
- /*!**************************************************!*\
73131
- !*** ./node_modules/antd/es/typography/index.js ***!
73132
- \**************************************************/
73287
+ /***/ "./node_modules/antd/es/typography/hooks/useMergedConfig.js":
73288
+ /*!******************************************************************!*\
73289
+ !*** ./node_modules/antd/es/typography/hooks/useMergedConfig.js ***!
73290
+ \******************************************************************/
73133
73291
  /*! exports provided: default */
73292
+ /*! exports used: default */
73134
73293
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
73135
73294
 
73136
73295
  "use strict";
73137
- /* harmony import */ var _Typography__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Typography */ "./node_modules/antd/es/typography/Typography.js");
73138
- /* harmony import */ var _Text__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Text */ "./node_modules/antd/es/typography/Text.js");
73139
- /* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Link */ "./node_modules/antd/es/typography/Link.js");
73140
- /* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Title */ "./node_modules/antd/es/typography/Title.js");
73141
- /* harmony import */ var _Paragraph__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Paragraph */ "./node_modules/antd/es/typography/Paragraph.js");
73142
-
73143
-
73296
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useMergedConfig; });
73297
+ /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
73298
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
73299
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
73300
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
73144
73301
 
73145
73302
 
73146
73303
 
73147
- var Typography = _Typography__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"];
73148
- Typography.Text = _Text__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"];
73149
- Typography.Link = _Link__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"];
73150
- Typography.Title = _Title__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"];
73151
- Typography.Paragraph = _Paragraph__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"];
73152
- /* unused harmony default export */ var _unused_webpack_default_export = (Typography);
73304
+ function useMergedConfig(propConfig, templateConfig) {
73305
+ return react__WEBPACK_IMPORTED_MODULE_2__["useMemo"](function () {
73306
+ var support = !!propConfig;
73307
+ return [support, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({}, templateConfig), support && Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(propConfig) === 'object' ? propConfig : null)];
73308
+ }, [propConfig]);
73309
+ }
73153
73310
 
73154
73311
  /***/ }),
73155
73312
 
73156
- /***/ "./node_modules/antd/es/typography/util.js":
73157
- /*!*************************************************!*\
73158
- !*** ./node_modules/antd/es/typography/util.js ***!
73159
- \*************************************************/
73313
+ /***/ "./node_modules/antd/es/typography/hooks/useUpdatedEffect.js":
73314
+ /*!*******************************************************************!*\
73315
+ !*** ./node_modules/antd/es/typography/hooks/useUpdatedEffect.js ***!
73316
+ \*******************************************************************/
73160
73317
  /*! exports provided: default */
73161
73318
  /*! exports used: default */
73162
73319
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
73163
73320
 
73164
73321
  "use strict";
73165
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "react-dom");
73166
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
73167
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
73168
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
73169
- /* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
73170
-
73171
-
73172
- // We only handle element & text node.
73173
-
73174
- var ELEMENT_NODE = 1;
73175
- var TEXT_NODE = 3;
73176
- var COMMENT_NODE = 8;
73177
- var ellipsisContainer;
73178
- var wrapperStyle = {
73179
- padding: 0,
73180
- margin: 0,
73181
- display: 'inline',
73182
- lineHeight: 'inherit'
73183
- };
73184
-
73185
- function styleToString(style) {
73186
- // There are some different behavior between Firefox & Chrome.
73187
- // We have to handle this ourself.
73188
- var styleNames = Array.prototype.slice.apply(style);
73189
- return styleNames.map(function (name) {
73190
- return "".concat(name, ": ").concat(style.getPropertyValue(name), ";");
73191
- }).join('');
73192
- }
73322
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
73323
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
73193
73324
 
73194
- function mergeChildren(children) {
73195
- var childList = [];
73196
- children.forEach(function (child) {
73197
- var prevChild = childList[childList.length - 1];
73325
+ /** Similar with `useEffect` but only trigger after mounted */
73198
73326
 
73199
- if (typeof child === 'string' && typeof prevChild === 'string') {
73200
- childList[childList.length - 1] += child;
73327
+ /* harmony default export */ __webpack_exports__["a"] = (function (callback, conditions) {
73328
+ var mountRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](false);
73329
+ react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () {
73330
+ if (mountRef.current) {
73331
+ callback();
73201
73332
  } else {
73202
- childList.push(child);
73203
- }
73204
- });
73205
- return childList;
73206
- }
73207
-
73208
- function resetDomStyles(target, origin) {
73209
- target.setAttribute('aria-hidden', 'true');
73210
- var originStyle = window.getComputedStyle(origin);
73211
- var originCSS = styleToString(originStyle); // Set shadow
73212
-
73213
- target.setAttribute('style', originCSS);
73214
- target.style.position = 'fixed';
73215
- target.style.left = '0';
73216
- target.style.height = 'auto';
73217
- target.style.minHeight = 'auto';
73218
- target.style.maxHeight = 'auto';
73219
- target.style.paddingTop = '0';
73220
- target.style.paddingBottom = '0';
73221
- target.style.borderTopWidth = '0';
73222
- target.style.borderBottomWidth = '0';
73223
- target.style.top = '-999999px';
73224
- target.style.zIndex = '-1000'; // clean up css overflow
73225
-
73226
- target.style.textOverflow = 'clip';
73227
- target.style.whiteSpace = 'normal';
73228
- target.style.webkitLineClamp = 'none';
73229
- }
73230
-
73231
- function getRealLineHeight(originElement) {
73232
- var heightContainer = document.createElement('div');
73233
- resetDomStyles(heightContainer, originElement);
73234
- heightContainer.appendChild(document.createTextNode('text'));
73235
- document.body.appendChild(heightContainer); // The element real height is always less than multiple of line-height
73236
- // Use getBoundingClientRect to get actual single row height of the element
73237
-
73238
- var realHeight = heightContainer.getBoundingClientRect().height;
73239
- document.body.removeChild(heightContainer);
73240
- return realHeight;
73241
- }
73242
-
73243
- /* harmony default export */ __webpack_exports__["a"] = (function (originElement, option, content, fixedContent, ellipsisStr) {
73244
- if (!ellipsisContainer) {
73245
- ellipsisContainer = document.createElement('div');
73246
- ellipsisContainer.setAttribute('aria-hidden', 'true');
73247
- } // HMR will remove this from body which should patch back
73248
-
73249
-
73250
- if (!ellipsisContainer.parentNode) {
73251
- document.body.appendChild(ellipsisContainer);
73252
- }
73253
-
73254
- var rows = option.rows,
73255
- _option$suffix = option.suffix,
73256
- suffix = _option$suffix === void 0 ? '' : _option$suffix;
73257
- var lineHeight = getRealLineHeight(originElement);
73258
- var maxHeight = Math.round(lineHeight * rows * 100) / 100;
73259
- resetDomStyles(ellipsisContainer, originElement); // Render in the fake container
73260
-
73261
- var contentList = mergeChildren(Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(content));
73262
- Object(react_dom__WEBPACK_IMPORTED_MODULE_0__["render"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", {
73263
- style: wrapperStyle
73264
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", {
73265
- style: wrapperStyle
73266
- }, contentList, suffix), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", {
73267
- style: wrapperStyle
73268
- }, fixedContent)), ellipsisContainer); // wrap in an div for old version react
73269
- // Check if ellipsis in measure div is height enough for content
73270
-
73271
- function inRange() {
73272
- var currentHeight = Math.round(ellipsisContainer.getBoundingClientRect().height * 100) / 100;
73273
- return currentHeight - .1 <= maxHeight; // -.1 for firefox
73274
- } // Skip ellipsis if already match
73275
-
73276
-
73277
- if (inRange()) {
73278
- Object(react_dom__WEBPACK_IMPORTED_MODULE_0__["unmountComponentAtNode"])(ellipsisContainer);
73279
- return {
73280
- content: content,
73281
- text: ellipsisContainer.innerHTML,
73282
- ellipsis: false
73283
- };
73284
- } // We should clone the childNode since they're controlled by React and we can't reuse it without warning
73285
-
73286
-
73287
- var childNodes = Array.prototype.slice.apply(ellipsisContainer.childNodes[0].childNodes[0].cloneNode(true).childNodes).filter(function (_ref) {
73288
- var nodeType = _ref.nodeType;
73289
- return nodeType !== COMMENT_NODE;
73290
- });
73291
- var fixedNodes = Array.prototype.slice.apply(ellipsisContainer.childNodes[0].childNodes[1].cloneNode(true).childNodes);
73292
- Object(react_dom__WEBPACK_IMPORTED_MODULE_0__["unmountComponentAtNode"])(ellipsisContainer); // ========================= Find match ellipsis content =========================
73293
-
73294
- var ellipsisChildren = [];
73295
- ellipsisContainer.innerHTML = ''; // Create origin content holder
73296
-
73297
- var ellipsisContentHolder = document.createElement('span');
73298
- ellipsisContainer.appendChild(ellipsisContentHolder);
73299
- var ellipsisTextNode = document.createTextNode(ellipsisStr + suffix);
73300
- ellipsisContentHolder.appendChild(ellipsisTextNode);
73301
- fixedNodes.forEach(function (childNode) {
73302
- ellipsisContainer.appendChild(childNode);
73303
- }); // Append before fixed nodes
73304
-
73305
- function appendChildNode(node) {
73306
- ellipsisContentHolder.insertBefore(node, ellipsisTextNode);
73307
- } // Get maximum text
73308
-
73309
-
73310
- function measureText(textNode, fullText) {
73311
- var startLoc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
73312
- var endLoc = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : fullText.length;
73313
- var lastSuccessLoc = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
73314
- var midLoc = Math.floor((startLoc + endLoc) / 2);
73315
- var currentText = fullText.slice(0, midLoc);
73316
- textNode.textContent = currentText;
73317
-
73318
- if (startLoc >= endLoc - 1) {
73319
- // Loop when step is small
73320
- for (var step = endLoc; step >= startLoc; step -= 1) {
73321
- var currentStepText = fullText.slice(0, step);
73322
- textNode.textContent = currentStepText;
73323
-
73324
- if (inRange() || !currentStepText) {
73325
- return step === fullText.length ? {
73326
- finished: false,
73327
- reactNode: fullText
73328
- } : {
73329
- finished: true,
73330
- reactNode: currentStepText
73331
- };
73332
- }
73333
- }
73334
- }
73335
-
73336
- if (inRange()) {
73337
- return measureText(textNode, fullText, midLoc, endLoc, midLoc);
73333
+ mountRef.current = true;
73338
73334
  }
73335
+ }, conditions);
73336
+ });
73339
73337
 
73340
- return measureText(textNode, fullText, startLoc, midLoc, lastSuccessLoc);
73341
- }
73342
-
73343
- function measureNode(childNode, index) {
73344
- var type = childNode.nodeType;
73345
-
73346
- if (type === ELEMENT_NODE) {
73347
- // We don't split element, it will keep if whole element can be displayed.
73348
- appendChildNode(childNode);
73349
-
73350
- if (inRange()) {
73351
- return {
73352
- finished: false,
73353
- reactNode: contentList[index]
73354
- };
73355
- } // Clean up if can not pull in
73356
-
73357
-
73358
- ellipsisContentHolder.removeChild(childNode);
73359
- return {
73360
- finished: true,
73361
- reactNode: null
73362
- };
73363
- }
73338
+ /***/ }),
73364
73339
 
73365
- if (type === TEXT_NODE) {
73366
- var fullText = childNode.textContent || '';
73367
- var textNode = document.createTextNode(fullText);
73368
- appendChildNode(textNode);
73369
- return measureText(textNode, fullText);
73370
- } // Not handle other type of content
73371
- // PS: This code should not be attached after react 16
73340
+ /***/ "./node_modules/antd/es/typography/index.js":
73341
+ /*!**************************************************!*\
73342
+ !*** ./node_modules/antd/es/typography/index.js ***!
73343
+ \**************************************************/
73344
+ /*! exports provided: default */
73345
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
73372
73346
 
73373
- /* istanbul ignore next */
73347
+ "use strict";
73348
+ /* harmony import */ var _Typography__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Typography */ "./node_modules/antd/es/typography/Typography.js");
73349
+ /* harmony import */ var _Text__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Text */ "./node_modules/antd/es/typography/Text.js");
73350
+ /* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Link */ "./node_modules/antd/es/typography/Link.js");
73351
+ /* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Title */ "./node_modules/antd/es/typography/Title.js");
73352
+ /* harmony import */ var _Paragraph__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Paragraph */ "./node_modules/antd/es/typography/Paragraph.js");
73374
73353
 
73375
73354
 
73376
- return {
73377
- finished: false,
73378
- reactNode: null
73379
- };
73380
- }
73381
73355
 
73382
- childNodes.some(function (childNode, index) {
73383
- var _measureNode = measureNode(childNode, index),
73384
- finished = _measureNode.finished,
73385
- reactNode = _measureNode.reactNode;
73386
73356
 
73387
- if (reactNode) {
73388
- ellipsisChildren.push(reactNode);
73389
- }
73390
73357
 
73391
- return finished;
73392
- });
73393
- return {
73394
- content: ellipsisChildren,
73395
- text: ellipsisContainer.innerHTML,
73396
- ellipsis: true
73397
- };
73398
- });
73358
+ var Typography = _Typography__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"];
73359
+ Typography.Text = _Text__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"];
73360
+ Typography.Link = _Link__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"];
73361
+ Typography.Title = _Title__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"];
73362
+ Typography.Paragraph = _Paragraph__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"];
73363
+ /* unused harmony default export */ var _unused_webpack_default_export = (Typography);
73399
73364
 
73400
73365
  /***/ }),
73401
73366
 
@@ -74647,7 +74612,7 @@ function previewImage(file) {
74647
74612
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
74648
74613
 
74649
74614
  "use strict";
74650
- /* harmony default export */ __webpack_exports__["a"] = ('4.18.3');
74615
+ /* harmony default export */ __webpack_exports__["a"] = ('4.18.4');
74651
74616
 
74652
74617
  /***/ }),
74653
74618
 
@@ -82936,6 +82901,8 @@ var Cascader = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](fun
82936
82901
  }); // =========================== Select ===========================
82937
82902
 
82938
82903
  var onInternalSelect = Object(_hooks_useRefFunc__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"])(function (valuePath) {
82904
+ setSearchValue('');
82905
+
82939
82906
  if (!multiple) {
82940
82907
  triggerChange(valuePath);
82941
82908
  } else {
@@ -83247,6 +83214,10 @@ function Column(_ref) {
83247
83214
  if (hoverOpen) {
83248
83215
  triggerOpenPath();
83249
83216
  }
83217
+ },
83218
+ onMouseDown: function onMouseDown(e) {
83219
+ // Prevent selector from blurring
83220
+ e.preventDefault();
83250
83221
  }
83251
83222
  }, multiple && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_Checkbox__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], {
83252
83223
  prefixCls: "".concat(prefixCls, "-checkbox"),
@@ -106899,7 +106870,8 @@ var Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["forwardRef"](funct
106899
106870
  autoClearSearchValue = _props$autoClearSearc === void 0 ? true : _props$autoClearSearc,
106900
106871
  onSelect = props.onSelect,
106901
106872
  onDeselect = props.onDeselect,
106902
- dropdownMatchSelectWidth = props.dropdownMatchSelectWidth,
106873
+ _props$dropdownMatchS = props.dropdownMatchSelectWidth,
106874
+ dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS,
106903
106875
  filterOption = props.filterOption,
106904
106876
  filterSort = props.filterSort,
106905
106877
  optionFilterProp = props.optionFilterProp,
@@ -107385,12 +107357,14 @@ var SelectContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createConte
107385
107357
 
107386
107358
 
107387
107359
 
107388
- var _excluded = ["prefixCls", "disabled", "visible", "children", "popupElement", "containerWidth", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter", "autoAdjustOverflow"];
107360
+ var _excluded = ["prefixCls", "disabled", "visible", "children", "popupElement", "containerWidth", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter"];
107389
107361
 
107390
107362
 
107391
107363
 
107392
107364
 
107393
- var getBuiltInPlacements = function getBuiltInPlacements(adjustX) {
107365
+ var getBuiltInPlacements = function getBuiltInPlacements(dropdownMatchSelectWidth) {
107366
+ // Enable horizontal overflow auto-adjustment when a custom dropdown width is provided
107367
+ var adjustX = dropdownMatchSelectWidth === true ? 0 : 1;
107394
107368
  return {
107395
107369
  bottomLeft: {
107396
107370
  points: ['tl', 'bl'],
@@ -107427,14 +107401,6 @@ var getBuiltInPlacements = function getBuiltInPlacements(adjustX) {
107427
107401
  };
107428
107402
  };
107429
107403
 
107430
- var getAdjustX = function getAdjustX(adjustXDependencies) {
107431
- var autoAdjustOverflow = adjustXDependencies.autoAdjustOverflow,
107432
- dropdownMatchSelectWidth = adjustXDependencies.dropdownMatchSelectWidth;
107433
- if (!!autoAdjustOverflow) return 1; // Enable horizontal overflow auto-adjustment when a custom dropdown width is provided
107434
-
107435
- return typeof dropdownMatchSelectWidth !== 'number' ? 0 : 1;
107436
- };
107437
-
107438
107404
  var SelectTrigger = function SelectTrigger(props, ref) {
107439
107405
  var prefixCls = props.prefixCls,
107440
107406
  disabled = props.disabled,
@@ -107449,8 +107415,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
107449
107415
  _props$direction = props.direction,
107450
107416
  direction = _props$direction === void 0 ? 'ltr' : _props$direction,
107451
107417
  placement = props.placement,
107452
- _props$dropdownMatchS = props.dropdownMatchSelectWidth,
107453
- dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS,
107418
+ dropdownMatchSelectWidth = props.dropdownMatchSelectWidth,
107454
107419
  dropdownRender = props.dropdownRender,
107455
107420
  dropdownAlign = props.dropdownAlign,
107456
107421
  getPopupContainer = props.getPopupContainer,
@@ -107458,7 +107423,6 @@ var SelectTrigger = function SelectTrigger(props, ref) {
107458
107423
  getTriggerDOMNode = props.getTriggerDOMNode,
107459
107424
  onPopupVisibleChange = props.onPopupVisibleChange,
107460
107425
  onPopupMouseEnter = props.onPopupMouseEnter,
107461
- autoAdjustOverflow = props.autoAdjustOverflow,
107462
107426
  restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(props, _excluded);
107463
107427
 
107464
107428
  var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
@@ -107469,11 +107433,8 @@ var SelectTrigger = function SelectTrigger(props, ref) {
107469
107433
  }
107470
107434
 
107471
107435
  var builtInPlacements = react__WEBPACK_IMPORTED_MODULE_4__["useMemo"](function () {
107472
- return getBuiltInPlacements(getAdjustX({
107473
- autoAdjustOverflow: autoAdjustOverflow,
107474
- dropdownMatchSelectWidth: dropdownMatchSelectWidth
107475
- }));
107476
- }, [dropdownMatchSelectWidth, autoAdjustOverflow]); // ===================== Motion ======================
107436
+ return getBuiltInPlacements(dropdownMatchSelectWidth);
107437
+ }, [dropdownMatchSelectWidth]); // ===================== Motion ======================
107477
107438
 
107478
107439
  var mergedTransitionName = animation ? "".concat(dropdownPrefixCls, "-").concat(animation) : transitionName; // ======================= Ref =======================
107479
107440
 
@@ -118025,7 +117986,8 @@ var OptionList = function OptionList(_, ref) {
118025
117986
  switcherIcon: switcherIcon,
118026
117987
  showLine: treeLine,
118027
117988
  loadData: searchValue ? null : loadData,
118028
- motion: treeMotion // We handle keys by out instead tree self
117989
+ motion: treeMotion,
117990
+ activeKey: activeKey // We handle keys by out instead tree self
118029
117991
  ,
118030
117992
  checkable: checkable,
118031
117993
  checkStrictly: true,
@@ -119585,7 +119547,7 @@ function getMinimumRangeTransitionRange(list, virtual, height, itemHeight) {
119585
119547
  }
119586
119548
 
119587
119549
  function itemKey(item) {
119588
- var key = item.data.key,
119550
+ var key = item.key,
119589
119551
  pos = item.pos;
119590
119552
  return Object(_utils_treeUtil__WEBPACK_IMPORTED_MODULE_7__[/* getKey */ "f"])(key, pos);
119591
119553
  }
@@ -119801,7 +119763,7 @@ var RefNodeList = function RefNodeList(props, ref) {
119801
119763
  var treeNodeProps = Object(_utils_treeUtil__WEBPACK_IMPORTED_MODULE_7__[/* getTreeNodeProps */ "g"])(mergedKey, treeNodeRequiredProps);
119802
119764
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_MotionTreeNode__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, restProps, treeNodeProps, {
119803
119765
  title: title,
119804
- active: !!activeItem && key === activeItem.data.key,
119766
+ active: !!activeItem && key === activeItem.key,
119805
119767
  pos: pos,
119806
119768
  data: treeNode.data,
119807
119769
  isStart: isStart,
@@ -120824,6 +120786,33 @@ var Tree = /*#__PURE__*/function (_React$Component) {
120824
120786
  }
120825
120787
 
120826
120788
  Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(Tree, [{
120789
+ key: "componentDidMount",
120790
+ value: function componentDidMount() {
120791
+ this.onUpdated();
120792
+ }
120793
+ }, {
120794
+ key: "componentDidUpdate",
120795
+ value: function componentDidUpdate() {
120796
+ this.onUpdated();
120797
+ }
120798
+ }, {
120799
+ key: "onUpdated",
120800
+ value: function onUpdated() {
120801
+ var activeKey = this.props.activeKey;
120802
+
120803
+ if (activeKey !== undefined && activeKey !== this.state.activeKey) {
120804
+ this.setState({
120805
+ activeKey: activeKey
120806
+ });
120807
+
120808
+ if (activeKey !== null) {
120809
+ this.scrollTo({
120810
+ key: activeKey
120811
+ });
120812
+ }
120813
+ }
120814
+ }
120815
+ }, {
120827
120816
  key: "componentWillUnmount",
120828
120817
  value: function componentWillUnmount() {
120829
120818
  window.removeEventListener('dragend', this.onWindowDragEnd);
@@ -132552,7 +132541,6 @@ var PartnerMember = function PartnerMember(_ref) {
132552
132541
  onChangeCurPage(prePage);
132553
132542
  };
132554
132543
 
132555
- console.log('wenai---partnerMemberList', partnerMemberList);
132556
132544
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", {
132557
132545
  className: "myGroup"
132558
132546
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_PageTitle__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, {