@ant-design/pro-components 2.3.51 → 2.3.52

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.
@@ -42806,8 +42806,7 @@ var renderValueType = function renderValueType(item, helpers) {
42806
42806
 
42807
42807
 
42808
42808
 
42809
- var SchemaForm_excluded = ["columns", "layoutType", "type", "action", "shouldUpdate"];
42810
-
42809
+ var SchemaForm_excluded = ["columns", "layoutType", "type", "action", "shouldUpdate", "formRef"];
42811
42810
 
42812
42811
 
42813
42812
 
@@ -42844,6 +42843,7 @@ function BetaSchemaForm(props) {
42844
42843
  action = props.action,
42845
42844
  _props$shouldUpdate = props.shouldUpdate,
42846
42845
  shouldUpdate = _props$shouldUpdate === void 0 ? true : _props$shouldUpdate,
42846
+ propsFormRef = props.formRef,
42847
42847
  restProps = objectWithoutProperties_objectWithoutProperties(props, SchemaForm_excluded);
42848
42848
  var FormRenderComponents = FormLayoutType[layoutType] || ProForm;
42849
42849
  var _Form$useForm = external_antd_.Form.useForm(),
@@ -42857,15 +42857,12 @@ function BetaSchemaForm(props) {
42857
42857
  _useState4 = slicedToArray_slicedToArray(_useState3, 2),
42858
42858
  formDomsDeps = _useState4[0],
42859
42859
  updatedFormDoms = _useState4[1];
42860
- var rest = (0,external_React_.useMemo)(function () {
42861
- return es(restProps, ['formRef']);
42862
- }, [restProps]);
42863
42860
  var formRef = (0,external_React_.useRef)(props.form || formInstance || form);
42864
42861
  var oldValuesRef = (0,external_React_.useRef)();
42865
42862
  var propsRef = useLatest(props);
42866
- (0,external_React_.useImperativeHandle)(restProps.formRef, function () {
42867
- return formRef.current;
42868
- });
42863
+ if (propsFormRef) {
42864
+ propsFormRef.current = formRef.current;
42865
+ }
42869
42866
  /**
42870
42867
  * 生成子项,方便被 table 接入
42871
42868
  *
@@ -42959,7 +42956,7 @@ function BetaSchemaForm(props) {
42959
42956
  }
42960
42957
  return {};
42961
42958
  }, [columns, layoutType]);
42962
- return (0,jsx_runtime.jsx)(FormRenderComponents, objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, specificProps), rest), {}, {
42959
+ return (0,jsx_runtime.jsx)(FormRenderComponents, objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, specificProps), restProps), {}, {
42963
42960
  form: props.form || form,
42964
42961
  formRef: formRef,
42965
42962
  onValuesChange: onValuesChange,
@@ -45447,18 +45444,18 @@ function useEditableArray(props) {
45447
45444
  var actionSaveRef = useRefFunction( /*#__PURE__*/function () {
45448
45445
  var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(recordKey, editRow, originRow, newLine) {
45449
45446
  var _props$onSave, _recordKeyToString4, _options$parentKey;
45450
- var _ref9, options, res, actionProps;
45447
+ var res, _ref9, options, actionProps;
45451
45448
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
45452
45449
  while (1) {
45453
45450
  switch (_context8.prev = _context8.next) {
45454
45451
  case 0:
45455
- _ref9 = newLine || newLineRecordRef.current || {}, options = _ref9.options;
45452
+ // 保存时解除编辑模式,这个要提前一下不然数据会被清空
45453
+ cancelEditable(recordKey);
45456
45454
  _context8.next = 3;
45457
45455
  return props === null || props === void 0 ? void 0 : (_props$onSave = props.onSave) === null || _props$onSave === void 0 ? void 0 : _props$onSave.call(props, recordKey, editRow, originRow, newLine);
45458
45456
  case 3:
45459
45457
  res = _context8.sent;
45460
- // 保存时解除编辑模式
45461
- cancelEditable(recordKey);
45458
+ _ref9 = newLine || newLineRecordRef.current || {}, options = _ref9.options;
45462
45459
  if (!(!(options === null || options === void 0 ? void 0 : options.parentKey) && (options === null || options === void 0 ? void 0 : options.recordKey) === recordKey)) {
45463
45460
  _context8.next = 8;
45464
45461
  break;
@@ -46692,6 +46689,7 @@ function PageHeader_style_useStyle(prefixCls) {
46692
46689
 
46693
46690
 
46694
46691
 
46692
+
46695
46693
  var renderBack = function renderBack(prefixCls, hashId, backIcon, onBack) {
46696
46694
  if (!backIcon || !onBack) {
46697
46695
  return null;
@@ -47094,6 +47092,7 @@ var PageContainer_excluded = ["title", "content", "pageHeaderRender", "header",
47094
47092
 
47095
47093
 
47096
47094
 
47095
+
47097
47096
  function genLoading(spinProps) {
47098
47097
  if (typeof_typeof(spinProps) === 'object') {
47099
47098
  return spinProps;
@@ -47690,7 +47689,8 @@ var AppsLogo = function AppsLogo() {
47690
47689
  var DefaultContent = function DefaultContent(props) {
47691
47690
  var appList = props.appList,
47692
47691
  baseClassName = props.baseClassName,
47693
- hashId = props.hashId;
47692
+ hashId = props.hashId,
47693
+ itemClick = props.itemClick;
47694
47694
  return (0,jsx_runtime.jsx)("div", {
47695
47695
  className: "".concat(baseClassName, "-content ").concat(hashId),
47696
47696
  children: (0,jsx_runtime.jsx)("ul", {
@@ -47705,6 +47705,7 @@ var DefaultContent = function DefaultContent(props) {
47705
47705
  children: app.title
47706
47706
  }), (0,jsx_runtime.jsx)(DefaultContent, {
47707
47707
  hashId: hashId,
47708
+ itemClick: itemClick,
47708
47709
  appList: app === null || app === void 0 ? void 0 : app.children,
47709
47710
  baseClassName: baseClassName
47710
47711
  })]
@@ -47713,7 +47714,10 @@ var DefaultContent = function DefaultContent(props) {
47713
47714
  return (0,jsx_runtime.jsx)("li", {
47714
47715
  className: "".concat(baseClassName, "-content-list-item ").concat(hashId),
47715
47716
  children: (0,jsx_runtime.jsxs)("a", {
47716
- href: app.url,
47717
+ href: itemClick ? 'javascript:;' : app.url,
47718
+ onClick: function onClick() {
47719
+ return itemClick === null || itemClick === void 0 ? void 0 : itemClick(app);
47720
+ },
47717
47721
  target: app.target,
47718
47722
  rel: "noreferrer",
47719
47723
  children: [defaultRenderLogo(app.icon), (0,jsx_runtime.jsxs)("div", {
@@ -47785,7 +47789,8 @@ var renderLogo = function renderLogo(logo, title) {
47785
47789
  var SimpleContent = function SimpleContent(props) {
47786
47790
  var appList = props.appList,
47787
47791
  baseClassName = props.baseClassName,
47788
- hashId = props.hashId;
47792
+ hashId = props.hashId,
47793
+ itemClick = props.itemClick;
47789
47794
  return (0,jsx_runtime.jsx)("div", {
47790
47795
  className: "".concat(baseClassName, "-content ").concat(hashId),
47791
47796
  children: (0,jsx_runtime.jsx)("ul", {
@@ -47800,6 +47805,7 @@ var SimpleContent = function SimpleContent(props) {
47800
47805
  children: app.title
47801
47806
  }), (0,jsx_runtime.jsx)(SimpleContent, {
47802
47807
  hashId: hashId,
47808
+ itemClick: itemClick,
47803
47809
  appList: app === null || app === void 0 ? void 0 : app.children,
47804
47810
  baseClassName: baseClassName
47805
47811
  })]
@@ -47808,7 +47814,10 @@ var SimpleContent = function SimpleContent(props) {
47808
47814
  return (0,jsx_runtime.jsx)("li", {
47809
47815
  className: "".concat(baseClassName, "-content-list-item ").concat(hashId),
47810
47816
  children: (0,jsx_runtime.jsxs)("a", {
47811
- href: app.url,
47817
+ href: itemClick ? 'javascript:;' : app.url,
47818
+ onClick: function onClick() {
47819
+ return itemClick === null || itemClick === void 0 ? void 0 : itemClick(app);
47820
+ },
47812
47821
  target: app.target,
47813
47822
  rel: "noreferrer",
47814
47823
  children: [renderLogo(app.icon, app.title), (0,jsx_runtime.jsx)("div", {
@@ -48032,7 +48041,7 @@ var genAppsLogoComponentsStyle = function genAppsLogoComponentsStyle(token) {
48032
48041
  opacity: 0.85,
48033
48042
  lineHeight: 1.5,
48034
48043
  '&:first-child': {
48035
- marginTop: 12
48044
+ marginBlockStart: 12
48036
48045
  }
48037
48046
  },
48038
48047
  '&-popover': (_popover = {}, defineProperty_defineProperty(_popover, "".concat(token.antCls, "-popover-arrow"), {
@@ -48096,7 +48105,8 @@ var AppsLogoComponents = function AppsLogoComponents(props) {
48096
48105
  var _props$appList;
48097
48106
  var appList = props.appList,
48098
48107
  _props$prefixCls = props.prefixCls,
48099
- prefixCls = _props$prefixCls === void 0 ? 'ant-pro' : _props$prefixCls;
48108
+ prefixCls = _props$prefixCls === void 0 ? 'ant-pro' : _props$prefixCls,
48109
+ itemClick = props.itemClick;
48100
48110
  var ref = external_React_default().useRef(null);
48101
48111
  var baseClassName = "".concat(prefixCls, "-layout-apps");
48102
48112
  var _useStyle = AppsLogoComponents_style_useStyle(baseClassName),
@@ -48106,36 +48116,24 @@ var AppsLogoComponents = function AppsLogoComponents(props) {
48106
48116
  _useState2 = slicedToArray_slicedToArray(_useState, 2),
48107
48117
  open = _useState2[0],
48108
48118
  setOpen = _useState2[1];
48109
- var itemRender = (0,external_React_.useCallback)(function (list) {
48110
- var isSimple = list === null || list === void 0 ? void 0 : list.some(function (app) {
48119
+ var popoverContent = (0,external_React_.useMemo)(function () {
48120
+ var isSimple = appList === null || appList === void 0 ? void 0 : appList.some(function (app) {
48111
48121
  return !(app === null || app === void 0 ? void 0 : app.desc);
48112
48122
  });
48113
48123
  if (isSimple) {
48114
48124
  return (0,jsx_runtime.jsx)(SimpleContent, {
48115
48125
  hashId: hashId,
48116
- appList: list,
48126
+ appList: appList,
48127
+ itemClick: itemClick,
48117
48128
  baseClassName: "".concat(baseClassName, "-simple")
48118
48129
  });
48119
48130
  }
48120
48131
  return (0,jsx_runtime.jsx)(DefaultContent, {
48121
48132
  hashId: hashId,
48122
- appList: list,
48133
+ appList: appList,
48134
+ itemClick: itemClick,
48123
48135
  baseClassName: "".concat(baseClassName, "-default")
48124
48136
  });
48125
- }, [hashId, baseClassName]);
48126
- var popoverContent = (0,external_React_.useMemo)(function () {
48127
- return appList === null || appList === void 0 ? void 0 : appList.map(function (app) {
48128
- var _app$children;
48129
- if (app === null || app === void 0 ? void 0 : (_app$children = app.children) === null || _app$children === void 0 ? void 0 : _app$children.length) {
48130
- return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
48131
- children: [(0,jsx_runtime.jsx)("div", {
48132
- className: "".concat(baseClassName, "-item-title ").concat(hashId),
48133
- children: app.title
48134
- }), itemRender(app === null || app === void 0 ? void 0 : app.children)]
48135
- });
48136
- }
48137
- return itemRender([app]);
48138
- });
48139
48137
  }, [appList, baseClassName, hashId]);
48140
48138
  if (!(props === null || props === void 0 ? void 0 : (_props$appList = props.appList) === null || _props$appList === void 0 ? void 0 : _props$appList.length)) return null;
48141
48139
  var popoverOpenProps = openVisibleCompatible(undefined, function (openChange) {
@@ -48425,7 +48423,7 @@ var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
48425
48423
  paddingInlineStart: 10
48426
48424
  })), defineProperty_defineProperty(_$concat5, "&&-collapsed", (_collapsed = {}, defineProperty_defineProperty(_collapsed, "".concat(token.antCls, "-menu-item, \n ").concat(token.antCls, "-menu-item-group > ").concat(token.antCls, "-menu-item-group-list > ").concat(token.antCls, "-menu-item, \n ").concat(token.antCls, "-menu-item-group > ").concat(token.antCls, "-menu-item-group-list > ").concat(token.antCls, "-menu-submenu > ").concat(token.antCls, "-menu-submenu-title, \n ").concat(token.antCls, "-menu-submenu > ").concat(token.antCls, "-menu-submenu-title"), {
48427
48425
  paddingInline: '0 !important',
48428
- marginBlock: '8px !important'
48426
+ marginBlock: '4px !important'
48429
48427
  }), defineProperty_defineProperty(_collapsed, "".concat(token.antCls, "-menu-item-group > ").concat(token.antCls, "-menu-item-group-list > ").concat(token.antCls, "-menu-submenu-selected > ").concat(token.antCls, "-menu-submenu-title, \n ").concat(token.antCls, "-menu-submenu-selected > ").concat(token.antCls, "-menu-submenu-title"), {
48430
48428
  backgroundColor: (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorBgMenuItemSelected,
48431
48429
  borderRadius: token.borderRadius
@@ -49060,6 +49058,7 @@ var SiderMenu = function SiderMenu(props) {
49060
49058
  [actionsRender, baseClassName, collapsed]);
49061
49059
  var appsDom = (0,external_React_.useMemo)(function () {
49062
49060
  return (0,jsx_runtime.jsx)(AppsLogoComponents, {
49061
+ itemClick: props.itemClick,
49063
49062
  appList: props.appList,
49064
49063
  prefixCls: props.prefixCls
49065
49064
  });
@@ -52914,6 +52913,8 @@ var SiderMenuWrapper = function SiderMenuWrapper(props) {
52914
52913
  // eslint-disable-next-line react-hooks/exhaustive-deps
52915
52914
  }, [isMobile]);
52916
52915
  var omitProps = es(props, ['className', 'style']);
52916
+ var _React$useContext = external_React_default().useContext(external_antd_.ConfigProvider.ConfigContext),
52917
+ direction = _React$useContext.direction;
52917
52918
  var _useStyle = SiderMenu_style_useStyle("".concat(prefixCls, "-sider"), {
52918
52919
  proLayoutCollapsedWidth: 64
52919
52920
  }),
@@ -52927,13 +52928,14 @@ var SiderMenuWrapper = function SiderMenuWrapper(props) {
52927
52928
  return onCollapse === null || onCollapse === void 0 ? void 0 : onCollapse(true);
52928
52929
  });
52929
52930
  return wrapSSR(isMobile ? (0,jsx_runtime.jsx)(external_antd_.Drawer, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
52930
- placement: "left",
52931
+ placement: direction === 'rtl' ? 'right' : 'left',
52931
52932
  className: classnames_default()("".concat(prefixCls, "-drawer-sider"), className)
52932
52933
  }, drawerOpenProps), {}, {
52933
52934
  style: objectSpread2_objectSpread2({
52934
52935
  padding: 0,
52935
52936
  height: '100vh'
52936
52937
  }, style),
52938
+ maskClosable: true,
52937
52939
  closable: false,
52938
52940
  getContainer: getContainer,
52939
52941
  width: siderWidth,
@@ -53483,9 +53485,9 @@ var defaultPageTitleRender = function defaultPageTitleRender(pageProps, props) {
53483
53485
  if (pageTitleRender) {
53484
53486
  var title = pageTitleRender(pageProps, pageTitleInfo.title, pageTitleInfo);
53485
53487
  if (typeof title === 'string') {
53486
- return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, pageTitleInfo), {}, {
53488
+ return getPageTitleInfo(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, pageTitleInfo), {}, {
53487
53489
  title: title
53488
- });
53490
+ }));
53489
53491
  }
53490
53492
  (0,lib_warning["default"])(typeof title === 'string', 'pro-layout: renderPageTitle return value should be a string');
53491
53493
  }
@@ -53855,7 +53857,6 @@ var ProLayout_ProLayout = function ProLayout(props) {
53855
53857
 
53856
53858
 
53857
53859
 
53858
-
53859
53860
  //----------------------
53860
53861
 
53861
53862
 
@@ -56492,7 +56493,8 @@ function ColumnSetting_style_useStyle(prefixCls) {
56492
56493
 
56493
56494
 
56494
56495
 
56495
- var ColumnSetting_excluded = ["key", "dataIndex", "children"];
56496
+ var ColumnSetting_excluded = ["key", "dataIndex", "children"],
56497
+ ColumnSetting_excluded2 = ["disabled"];
56496
56498
 
56497
56499
 
56498
56500
 
@@ -56523,8 +56525,6 @@ var ToolTipIcon = function ToolTipIcon(_ref) {
56523
56525
  e.stopPropagation();
56524
56526
  e.preventDefault();
56525
56527
  var config = columnsMap[columnKey] || {};
56526
- var disableIcon = typeof config.disable === 'boolean' && config.disable;
56527
- if (disableIcon) return;
56528
56528
  var columnKeyMap = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, columnsMap), {}, defineProperty_defineProperty({}, columnKey, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, config), {}, {
56529
56529
  fixed: fixed
56530
56530
  })));
@@ -56574,7 +56574,7 @@ var CheckboxListItem = function CheckboxListItem(_ref2) {
56574
56574
  }, columnKey);
56575
56575
  };
56576
56576
  var CheckboxList = function CheckboxList(_ref3) {
56577
- var _treeDataConfig$list, _treeDataConfig$list2;
56577
+ var _treeDataConfig$list, _treeDataConfig$list2, _treeDataConfig$list3;
56578
56578
  var list = _ref3.list,
56579
56579
  draggable = _ref3.draggable,
56580
56580
  checkable = _ref3.checkable,
@@ -56722,7 +56722,11 @@ var CheckboxList = function CheckboxList(_ref3) {
56722
56722
  }));
56723
56723
  },
56724
56724
  height: listHeight,
56725
- treeData: treeDataConfig.list
56725
+ treeData: (_treeDataConfig$list3 = treeDataConfig.list) === null || _treeDataConfig$list3 === void 0 ? void 0 : _treeDataConfig$list3.map(function (_ref5) {
56726
+ var disabled = _ref5.disabled,
56727
+ config = objectWithoutProperties_objectWithoutProperties(_ref5, ColumnSetting_excluded2);
56728
+ return config;
56729
+ })
56726
56730
  });
56727
56731
  return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
56728
56732
  children: [showTitle && (0,jsx_runtime.jsx)("span", {
@@ -56731,12 +56735,12 @@ var CheckboxList = function CheckboxList(_ref3) {
56731
56735
  }), listDom]
56732
56736
  });
56733
56737
  };
56734
- var GroupCheckboxList = function GroupCheckboxList(_ref5) {
56735
- var localColumns = _ref5.localColumns,
56736
- className = _ref5.className,
56737
- draggable = _ref5.draggable,
56738
- checkable = _ref5.checkable,
56739
- listsHeight = _ref5.listsHeight;
56738
+ var GroupCheckboxList = function GroupCheckboxList(_ref6) {
56739
+ var localColumns = _ref6.localColumns,
56740
+ className = _ref6.className,
56741
+ draggable = _ref6.draggable,
56742
+ checkable = _ref6.checkable,
56743
+ listsHeight = _ref6.listsHeight;
56740
56744
  var _useContext3 = (0,external_React_.useContext)(ProProvider),
56741
56745
  hashId = _useContext3.hashId;
56742
56746
  var rightList = [];
@@ -56816,16 +56820,21 @@ function ColumnSetting(props) {
56816
56820
  var show = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
56817
56821
  var columnKeyMap = {};
56818
56822
  var loopColumns = function loopColumns(columns) {
56819
- columns.forEach(function (_ref6) {
56820
- var key = _ref6.key,
56821
- fixed = _ref6.fixed,
56822
- index = _ref6.index,
56823
- children = _ref6.children;
56823
+ columns.forEach(function (_ref7) {
56824
+ var key = _ref7.key,
56825
+ fixed = _ref7.fixed,
56826
+ index = _ref7.index,
56827
+ children = _ref7.children,
56828
+ disable = _ref7.disable;
56824
56829
  var columnKey = genColumnKey(key, index);
56825
56830
  if (columnKey) {
56831
+ var _columnsMap$columnKey, _columnsMap$columnKey2;
56826
56832
  columnKeyMap[columnKey] = {
56827
- show: show,
56828
- fixed: fixed
56833
+ // 子节点 disable 时,不修改节点显示状态
56834
+ show: disable ? (_columnsMap$columnKey = columnsMap[columnKey]) === null || _columnsMap$columnKey === void 0 ? void 0 : _columnsMap$columnKey.show : show,
56835
+ fixed: fixed,
56836
+ disable: disable,
56837
+ order: (_columnsMap$columnKey2 = columnsMap[columnKey]) === null || _columnsMap$columnKey2 === void 0 ? void 0 : _columnsMap$columnKey2.order
56829
56838
  };
56830
56839
  }
56831
56840
  if (children) {
@@ -58783,7 +58792,7 @@ function columnRender(_ref) {
58783
58792
  style: {
58784
58793
  display: 'flex',
58785
58794
  alignItems: 'center',
58786
- justifyContent: 'center',
58795
+ justifyContent: 'flex-start',
58787
58796
  gap: 8
58788
58797
  },
58789
58798
  children: renderDom
@@ -58929,6 +58938,7 @@ var Table_excluded = ["rowKey", "tableClassName", "defaultClassName", "action",
58929
58938
 
58930
58939
  // 兼容代码-----------
58931
58940
 
58941
+
58932
58942
  //----------------------
58933
58943
 
58934
58944
 
@@ -60084,6 +60094,7 @@ function EditableTable(props) {
60084
60094
  _useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
60085
60095
  value = _useMergedState2[0],
60086
60096
  setValue = _useMergedState2[1];
60097
+ console.log(value);
60087
60098
  var getRowKey = external_React_default().useMemo(function () {
60088
60099
  if (typeof rowKey === 'function') {
60089
60100
  return rowKey;
@@ -60551,162 +60562,8 @@ function iterableToArray_iterableToArray(iter) {
60551
60562
  function esm_toArray_toArray(arr) {
60552
60563
  return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
60553
60564
  }
60554
- ;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/isVisible.js
60555
- /* harmony default export */ var Dom_isVisible = (function (element) {
60556
- if (!element) {
60557
- return false;
60558
- }
60559
- if (element instanceof HTMLElement && element.offsetParent) {
60560
- return true;
60561
- }
60562
- if (element instanceof SVGGraphicsElement && element.getBBox) {
60563
- var _element$getBBox = element.getBBox(),
60564
- width = _element$getBBox.width,
60565
- height = _element$getBBox.height;
60566
- if (width || height) {
60567
- return true;
60568
- }
60569
- }
60570
- if (element instanceof HTMLElement && element.getBoundingClientRect) {
60571
- var _element$getBoundingC = element.getBoundingClientRect(),
60572
- _width = _element$getBoundingC.width,
60573
- _height = _element$getBoundingC.height;
60574
- if (_width || _height) {
60575
- return true;
60576
- }
60577
- }
60578
- return false;
60579
- });
60580
- ;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/styleChecker.js
60581
-
60582
- var isStyleNameSupport = function isStyleNameSupport(styleName) {
60583
- if (canUseDom() && window.document.documentElement) {
60584
- var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
60585
- var documentElement = window.document.documentElement;
60586
- return styleNameList.some(function (name) {
60587
- return name in documentElement.style;
60588
- });
60589
- }
60590
- return false;
60591
- };
60592
- var isStyleValueSupport = function isStyleValueSupport(styleName, value) {
60593
- if (!isStyleNameSupport(styleName)) {
60594
- return false;
60595
- }
60596
- var ele = document.createElement('div');
60597
- var origin = ele.style[styleName];
60598
- ele.style[styleName] = value;
60599
- return ele.style[styleName] !== origin;
60600
- };
60601
- function isStyleSupport(styleName, styleValue) {
60602
- if (!Array.isArray(styleName) && styleValue !== undefined) {
60603
- return isStyleValueSupport(styleName, styleValue);
60604
- }
60605
- return isStyleNameSupport(styleName);
60606
- }
60607
- ;// CONCATENATED MODULE: ./node_modules/rc-util/es/getScrollBarSize.js
60608
- /* eslint-disable no-param-reassign */
60609
- var cached;
60610
- function getScrollBarSize(fresh) {
60611
- if (typeof document === 'undefined') {
60612
- return 0;
60613
- }
60614
- if (fresh || cached === undefined) {
60615
- var inner = document.createElement('div');
60616
- inner.style.width = '100%';
60617
- inner.style.height = '200px';
60618
- var outer = document.createElement('div');
60619
- var outerStyle = outer.style;
60620
- outerStyle.position = 'absolute';
60621
- outerStyle.top = '0';
60622
- outerStyle.left = '0';
60623
- outerStyle.pointerEvents = 'none';
60624
- outerStyle.visibility = 'hidden';
60625
- outerStyle.width = '200px';
60626
- outerStyle.height = '150px';
60627
- outerStyle.overflow = 'hidden';
60628
- outer.appendChild(inner);
60629
- document.body.appendChild(outer);
60630
- var widthContained = inner.offsetWidth;
60631
- outer.style.overflow = 'scroll';
60632
- var widthScroll = inner.offsetWidth;
60633
- if (widthContained === widthScroll) {
60634
- widthScroll = outer.clientWidth;
60635
- }
60636
- document.body.removeChild(outer);
60637
- cached = widthContained - widthScroll;
60638
- }
60639
- return cached;
60640
- }
60641
- function ensureSize(str) {
60642
- var match = str.match(/^(.*)px$/);
60643
- var value = Number(match === null || match === void 0 ? void 0 : match[1]);
60644
- return Number.isNaN(value) ? getScrollBarSize() : value;
60645
- }
60646
- function getTargetScrollBarSize(target) {
60647
- if (typeof document === 'undefined' || !target || !(target instanceof Element)) {
60648
- return {
60649
- width: 0,
60650
- height: 0
60651
- };
60652
- }
60653
- var _getComputedStyle = getComputedStyle(target, '::-webkit-scrollbar'),
60654
- width = _getComputedStyle.width,
60655
- height = _getComputedStyle.height;
60656
- return {
60657
- width: ensureSize(width),
60658
- height: ensureSize(height)
60659
- };
60660
- }
60661
- ;// CONCATENATED MODULE: ./node_modules/rc-util/es/pickAttrs.js
60662
-
60663
- var attributes = "accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap";
60664
- var eventsName = "onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError";
60665
- var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);
60666
- /* eslint-enable max-len */
60667
- var ariaPrefix = 'aria-';
60668
- var dataPrefix = 'data-';
60669
- function pickAttrs_match(key, prefix) {
60670
- return key.indexOf(prefix) === 0;
60671
- }
60672
- /**
60673
- * Picker props from exist props with filter
60674
- * @param props Passed props
60675
- * @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
60676
- */
60677
- function pickAttrs(props) {
60678
- var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
60679
- var mergedConfig;
60680
- if (ariaOnly === false) {
60681
- mergedConfig = {
60682
- aria: true,
60683
- data: true,
60684
- attr: true
60685
- };
60686
- } else if (ariaOnly === true) {
60687
- mergedConfig = {
60688
- aria: true
60689
- };
60690
- } else {
60691
- mergedConfig = objectSpread2_objectSpread2({}, ariaOnly);
60692
- }
60693
- var attrs = {};
60694
- Object.keys(props).forEach(function (key) {
60695
- if (
60696
- // Aria
60697
- mergedConfig.aria && (key === 'role' || pickAttrs_match(key, ariaPrefix)) ||
60698
- // Data
60699
- mergedConfig.data && pickAttrs_match(key, dataPrefix) ||
60700
- // Attr
60701
- mergedConfig.attr && propList.includes(key)) {
60702
- attrs[key] = props[key];
60703
- }
60704
- });
60705
- return attrs;
60706
- }
60707
- // EXTERNAL MODULE: ./node_modules/shallowequal/index.js
60708
- var shallowequal = __webpack_require__(2460);
60709
- var shallowequal_default = /*#__PURE__*/__webpack_require__.n(shallowequal);
60565
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/constant.js
60566
+ var EXPAND_COLUMN = {};
60710
60567
  ;// CONCATENATED MODULE: ./node_modules/rc-util/es/hooks/useEvent.js
60711
60568
 
60712
60569
  function useEvent(callback) {
@@ -60744,15 +60601,15 @@ var useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
60744
60601
  };
60745
60602
  }, []);
60746
60603
  };
60747
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/ContextSelector/index.js
60604
+ ;// CONCATENATED MODULE: ./node_modules/@rc-component/context/es/context.js
60748
60605
 
60749
60606
 
60750
60607
 
60751
60608
 
60752
60609
 
60753
60610
 
60754
- function createContext(defaultContext) {
60755
- var Context = /*#__PURE__*/external_React_.createContext(defaultContext);
60611
+ function createContext(defaultValue) {
60612
+ var Context = /*#__PURE__*/external_React_.createContext(undefined);
60756
60613
  var Provider = function Provider(_ref) {
60757
60614
  var value = _ref.value,
60758
60615
  children = _ref.children;
@@ -60781,11 +60638,17 @@ function createContext(defaultContext) {
60781
60638
  };
60782
60639
  return {
60783
60640
  Context: Context,
60784
- Provider: Provider
60641
+ Provider: Provider,
60642
+ defaultValue: defaultValue
60785
60643
  };
60786
60644
  }
60787
- function useContextSelector(holder, selector) {
60645
+ /** e.g. useSelect(userContext) => user */
60646
+
60647
+ function context_useContext(holder, selector) {
60788
60648
  var eventSelector = useEvent(typeof selector === 'function' ? selector : function (ctx) {
60649
+ if (selector === undefined) {
60650
+ return ctx;
60651
+ }
60789
60652
  if (!Array.isArray(selector)) {
60790
60653
  return ctx[selector];
60791
60654
  }
@@ -60800,7 +60663,7 @@ function useContextSelector(holder, selector) {
60800
60663
  listeners = _ref2.listeners,
60801
60664
  getValue = _ref2.getValue;
60802
60665
  var valueRef = external_React_.useRef();
60803
- valueRef.current = eventSelector(context ? getValue() : null);
60666
+ valueRef.current = eventSelector(context ? getValue() : holder === null || holder === void 0 ? void 0 : holder.defaultValue);
60804
60667
  var _React$useState3 = external_React_.useState({}),
60805
60668
  _React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
60806
60669
  forceUpdate = _React$useState4[1];
@@ -60810,7 +60673,7 @@ function useContextSelector(holder, selector) {
60810
60673
  }
60811
60674
  function trigger(nextValue) {
60812
60675
  var nextSelectorValue = eventSelector(nextValue);
60813
- if (!shallowequal_default()(valueRef.current, nextSelectorValue)) {
60676
+ if (!es_isEqual(valueRef.current, nextSelectorValue, true)) {
60814
60677
  forceUpdate({});
60815
60678
  }
60816
60679
  }
@@ -60821,85 +60684,117 @@ function useContextSelector(holder, selector) {
60821
60684
  }, [context]);
60822
60685
  return valueRef.current;
60823
60686
  }
60824
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/context/BodyContext.js
60687
+ ;// CONCATENATED MODULE: ./node_modules/@rc-component/context/es/Immutable.js
60825
60688
 
60826
- // const BodyContext = React.createContext<BodyContextProps>(null);
60827
- var BodyContext = createContext();
60828
- /* harmony default export */ var context_BodyContext = (BodyContext);
60829
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/context/HoverContext.js
60830
60689
 
60831
- var HoverContext = createContext();
60832
- /* harmony default export */ var context_HoverContext = (HoverContext);
60833
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/context/PerfContext.js
60834
60690
 
60835
- var PerfContext = /*#__PURE__*/external_React_.createContext({
60836
- renderWithProps: false
60837
- });
60838
- /* harmony default export */ var context_PerfContext = (PerfContext);
60839
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/context/ResizeContext.js
60691
+ var ImmutableContext = /*#__PURE__*/external_React_.createContext(0);
60692
+
60693
+ /**
60694
+ * Get render update mark by `makeImmutable` root.
60695
+ * Do not deps on the return value as render times
60696
+ * but only use for `useMemo` or `useCallback` deps.
60697
+ */
60698
+ function useImmutableMark() {
60699
+ return external_React_.useContext(ImmutableContext);
60700
+ }
60701
+ /**
60702
+ * Wrapped Component will be marked as Immutable.
60703
+ * When Component parent trigger render,
60704
+ * it will notice children component (use with `responseImmutable`) node that parent has updated.
60705
+
60706
+ * @param Component Passed Component
60707
+ * @param triggerRender Customize trigger `responseImmutable` children re-render logic. Default will always trigger re-render when this component re-render.
60708
+ */
60709
+
60710
+ function makeImmutable(Component, shouldTriggerRender) {
60711
+ var refAble = supportRef(Component);
60712
+ var ImmutableComponent = function ImmutableComponent(props, ref) {
60713
+ var refProps = refAble ? {
60714
+ ref: ref
60715
+ } : {};
60716
+ var renderTimesRef = external_React_.useRef(0);
60717
+ var prevProps = external_React_.useRef(props);
60718
+ if (
60719
+ // Always trigger re-render if not provide `notTriggerRender`
60720
+ !shouldTriggerRender || shouldTriggerRender(prevProps.current, props)) {
60721
+ renderTimesRef.current += 1;
60722
+ }
60723
+ prevProps.current = props;
60724
+ return /*#__PURE__*/external_React_.createElement(ImmutableContext.Provider, {
60725
+ value: renderTimesRef.current
60726
+ }, /*#__PURE__*/external_React_.createElement(Component, extends_extends({}, props, refProps)));
60727
+ };
60728
+ if (false) {}
60729
+ return refAble ? /*#__PURE__*/external_React_.forwardRef(ImmutableComponent) : ImmutableComponent;
60730
+ }
60731
+ /**
60732
+ * Wrapped Component with `React.memo`.
60733
+ * But will rerender when parent with `makeImmutable` rerender.
60734
+ */
60735
+
60736
+ function responseImmutable(Component, propsAreEqual) {
60737
+ var refAble = supportRef(Component);
60738
+ var ImmutableComponent = function ImmutableComponent(props, ref) {
60739
+ var refProps = refAble ? {
60740
+ ref: ref
60741
+ } : {};
60742
+ useImmutableMark();
60743
+ return /*#__PURE__*/external_React_.createElement(Component, extends_extends({}, props, refProps));
60744
+ };
60745
+ if (false) {}
60746
+ return refAble ? /*#__PURE__*/external_React_.memo( /*#__PURE__*/external_React_.forwardRef(ImmutableComponent), propsAreEqual) : /*#__PURE__*/external_React_.memo(ImmutableComponent, propsAreEqual);
60747
+ }
60748
+ ;// CONCATENATED MODULE: ./node_modules/@rc-component/context/es/index.js
60749
+
60750
+
60840
60751
 
60841
- var ResizeContext = createContext();
60842
- /* harmony default export */ var context_ResizeContext = (ResizeContext);
60843
60752
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/context/TableContext.js
60844
60753
 
60845
60754
  var TableContext = createContext();
60846
60755
  /* harmony default export */ var context_TableContext = (TableContext);
60847
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/hooks/useFlattenRecords.js
60756
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/hooks/useRenderTimes.js
60757
+ /* istanbul ignore file */
60848
60758
 
60759
+ function useRenderTimes(props, debug) {
60760
+ // Render times
60761
+ var timesRef = external_React_.useRef(0);
60762
+ timesRef.current += 1; // Props changed
60849
60763
 
60850
-
60851
- // recursion (flat tree structure)
60852
- function flatRecord(record, indent, childrenColumnName, expandedKeys, getRowKey, index) {
60853
- var arr = [];
60854
- arr.push({
60855
- record: record,
60856
- indent: indent,
60857
- index: index
60858
- });
60859
- var key = getRowKey(record);
60860
- var expanded = expandedKeys === null || expandedKeys === void 0 ? void 0 : expandedKeys.has(key);
60861
- if (record && Array.isArray(record[childrenColumnName]) && expanded) {
60862
- // expanded state, flat record
60863
- for (var i = 0; i < record[childrenColumnName].length; i += 1) {
60864
- var tempArr = flatRecord(record[childrenColumnName][i], indent + 1, childrenColumnName, expandedKeys, getRowKey, i);
60865
- arr.push.apply(arr, toConsumableArray_toConsumableArray(tempArr));
60764
+ var propsRef = external_React_.useRef(props);
60765
+ var keys = [];
60766
+ Object.keys(props || {}).map(function (key) {
60767
+ var _propsRef$current;
60768
+ if ((props === null || props === void 0 ? void 0 : props[key]) !== ((_propsRef$current = propsRef.current) === null || _propsRef$current === void 0 ? void 0 : _propsRef$current[key])) {
60769
+ keys.push(key);
60866
60770
  }
60771
+ });
60772
+ propsRef.current = props; // Cache keys since React rerender may cause it lost
60773
+
60774
+ var keysRef = external_React_.useRef([]);
60775
+ if (keys.length) {
60776
+ keysRef.current = keys;
60867
60777
  }
60868
- return arr;
60778
+ external_React_.useDebugValue(timesRef.current);
60779
+ external_React_.useDebugValue(keysRef.current.join(', '));
60780
+ if (debug) {
60781
+ console.log("".concat(debug, ":"), timesRef.current, keysRef.current);
60782
+ }
60783
+ return timesRef.current;
60869
60784
  }
60870
- /**
60871
- * flat tree data on expanded state
60872
- *
60873
- * @export
60874
- * @template T
60875
- * @param {*} data : table data
60876
- * @param {string} childrenColumnName : 指定树形结构的列名
60877
- * @param {Set<Key>} expandedKeys : 展开的行对应的keys
60878
- * @param {GetRowKey<T>} getRowKey : 获取当前rowKey的方法
60879
- * @returns flattened data
60880
- */
60881
-
60882
- function useFlattenRecords(data, childrenColumnName, expandedKeys, getRowKey) {
60883
- var arr = external_React_.useMemo(function () {
60884
- if (expandedKeys !== null && expandedKeys !== void 0 && expandedKeys.size) {
60885
- var temp = []; // collect flattened record
60785
+ /* harmony default export */ var hooks_useRenderTimes = ((/* unused pure expression or super */ null && ( false ? 0 : function () {})));
60786
+ var RenderBlock = /*#__PURE__*/external_React_.memo(function () {
60787
+ var times = useRenderTimes();
60788
+ return /*#__PURE__*/external_React_.createElement("h1", null, "Render Times: ", times);
60789
+ });
60790
+ RenderBlock.displayName = 'RenderBlock';
60791
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/context/PerfContext.js
60886
60792
 
60887
- for (var i = 0; i < (data === null || data === void 0 ? void 0 : data.length); i += 1) {
60888
- var record = data[i];
60889
- temp.push.apply(temp, toConsumableArray_toConsumableArray(flatRecord(record, 0, childrenColumnName, expandedKeys, getRowKey, i)));
60890
- }
60891
- return temp;
60892
- }
60893
- return data === null || data === void 0 ? void 0 : data.map(function (item, index) {
60894
- return {
60895
- record: item,
60896
- indent: 0,
60897
- index: index
60898
- };
60899
- });
60900
- }, [data, childrenColumnName, expandedKeys, getRowKey]);
60901
- return arr;
60902
- }
60793
+ // TODO: Remove when use `responsiveImmutable`
60794
+ var PerfContext = /*#__PURE__*/external_React_.createContext({
60795
+ renderWithProps: false
60796
+ });
60797
+ /* harmony default export */ var context_PerfContext = (PerfContext);
60903
60798
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/utils/valueUtil.js
60904
60799
  var INTERNAL_KEY_PREFIX = 'RC_TABLE_KEY';
60905
60800
  function valueUtil_toArray(arr) {
@@ -60908,22 +60803,6 @@ function valueUtil_toArray(arr) {
60908
60803
  }
60909
60804
  return Array.isArray(arr) ? arr : [arr];
60910
60805
  }
60911
- function getPathValue(record, path) {
60912
- // Skip if path is empty
60913
- if (!path && typeof path !== 'number') {
60914
- return record;
60915
- }
60916
- var pathList = valueUtil_toArray(path);
60917
- var current = record;
60918
- for (var i = 0; i < pathList.length; i += 1) {
60919
- if (!current) {
60920
- return null;
60921
- }
60922
- var prop = pathList[i];
60923
- current = current[prop];
60924
- }
60925
- return current;
60926
- }
60927
60806
  function getColumnsKey(columns) {
60928
60807
  var columnKeys = [];
60929
60808
  var keys = {};
@@ -60943,46 +60822,94 @@ function getColumnsKey(columns) {
60943
60822
  function validateValue(val) {
60944
60823
  return val !== null && val !== undefined;
60945
60824
  }
60946
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/context/StickyContext.js
60947
- // Tell cell that browser support sticky
60948
-
60949
- var StickyContext = /*#__PURE__*/external_React_.createContext(false);
60950
- /* harmony default export */ var context_StickyContext = (StickyContext);
60951
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Cell/index.js
60952
-
60825
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Cell/useCellRender.js
60953
60826
 
60954
60827
 
60955
60828
 
60956
60829
 
60957
60830
 
60958
- var Cell_excluded = ["colSpan", "rowSpan", "style", "className"];
60959
-
60960
60831
 
60961
60832
 
60962
60833
 
60963
60834
 
60964
60835
 
60836
+ function isRenderCell(data) {
60837
+ return data && typeof_typeof(data) === 'object' && !Array.isArray(data) && ! /*#__PURE__*/external_React_.isValidElement(data);
60838
+ }
60839
+ function useCellRender(record, dataIndex, renderIndex, children, render, shouldCellUpdate) {
60840
+ // TODO: Remove this after next major version
60841
+ var perfRecord = external_React_.useContext(context_PerfContext);
60842
+ var mark = useImmutableMark(); // ======================== Render ========================
60965
60843
 
60844
+ var retData = useMemo_useMemo(function () {
60845
+ if (validateValue(children)) {
60846
+ return [children];
60847
+ }
60848
+ var path = dataIndex === null || dataIndex === undefined || dataIndex === '' ? [] : Array.isArray(dataIndex) ? dataIndex : [dataIndex];
60849
+ var value = get_get(record, path); // Customize render node
60966
60850
 
60851
+ var returnChildNode = value;
60852
+ var returnCellProps = undefined;
60853
+ if (render) {
60854
+ var renderData = render(value, record, renderIndex);
60855
+ if (isRenderCell(renderData)) {
60856
+ if (false) {}
60857
+ returnChildNode = renderData.children;
60858
+ returnCellProps = renderData.props;
60859
+ perfRecord.renderWithProps = true;
60860
+ } else {
60861
+ returnChildNode = renderData;
60862
+ }
60863
+ }
60864
+ return [returnChildNode, returnCellProps];
60865
+ }, [
60866
+ // Force update deps
60867
+ mark,
60868
+ // Normal deps
60869
+ record, children, dataIndex, render, renderIndex], function (prev, next) {
60870
+ if (shouldCellUpdate) {
60871
+ var _prev = slicedToArray_slicedToArray(prev, 2),
60872
+ prevRecord = _prev[1];
60873
+ var _next = slicedToArray_slicedToArray(next, 2),
60874
+ nextRecord = _next[1];
60875
+ return shouldCellUpdate(nextRecord, prevRecord);
60876
+ } // Legacy mode should always update
60877
+
60878
+ if (perfRecord.renderWithProps) {
60879
+ return true;
60880
+ }
60881
+ return !es_isEqual(prev, next, true);
60882
+ });
60883
+ return retData;
60884
+ }
60885
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Cell/useHoverState.js
60967
60886
 
60968
60887
 
60969
60888
 
60970
60889
  /** Check if cell is in hover range */
60971
-
60972
60890
  function inHoverRange(cellStartRow, cellRowSpan, startRow, endRow) {
60973
60891
  var cellEndRow = cellStartRow + cellRowSpan - 1;
60974
60892
  return cellStartRow <= endRow && cellEndRow >= startRow;
60975
60893
  }
60976
- function isRenderCell(data) {
60977
- return data && typeof_typeof(data) === 'object' && !Array.isArray(data) && ! /*#__PURE__*/external_React_.isValidElement(data);
60978
- }
60979
- function isRefComponent(component) {
60980
- // String tag component also support ref
60981
- if (typeof component === 'string') {
60982
- return true;
60983
- }
60984
- return supportRef(component);
60894
+ function useHoverState(rowIndex, rowSpan) {
60895
+ return context_useContext(context_TableContext, function (ctx) {
60896
+ var hovering = inHoverRange(rowIndex, rowSpan || 1, ctx.hoverStartRow, ctx.hoverEndRow);
60897
+ return [hovering, ctx.onHover];
60898
+ });
60985
60899
  }
60900
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Cell/index.js
60901
+
60902
+
60903
+
60904
+
60905
+
60906
+
60907
+
60908
+
60909
+
60910
+
60911
+
60912
+
60986
60913
  var getTitleFromCellRenderChildren = function getTitleFromCellRenderChildren(_ref) {
60987
60914
  var ellipsis = _ref.ellipsis,
60988
60915
  rowType = _ref.rowType,
@@ -61000,89 +60927,44 @@ var getTitleFromCellRenderChildren = function getTitleFromCellRenderChildren(_re
61000
60927
  }
61001
60928
  return title;
61002
60929
  };
61003
- function Cell(_ref2, ref) {
61004
- var _ref4, _ref5, _classNames;
61005
- var prefixCls = _ref2.prefixCls,
61006
- className = _ref2.className,
61007
- record = _ref2.record,
61008
- index = _ref2.index,
61009
- renderIndex = _ref2.renderIndex,
61010
- dataIndex = _ref2.dataIndex,
61011
- render = _ref2.render,
61012
- children = _ref2.children,
61013
- _ref2$component = _ref2.component,
61014
- Component = _ref2$component === void 0 ? 'td' : _ref2$component,
61015
- colSpan = _ref2.colSpan,
61016
- rowSpan = _ref2.rowSpan,
61017
- scope = _ref2.scope,
61018
- fixLeft = _ref2.fixLeft,
61019
- fixRight = _ref2.fixRight,
61020
- firstFixLeft = _ref2.firstFixLeft,
61021
- lastFixLeft = _ref2.lastFixLeft,
61022
- firstFixRight = _ref2.firstFixRight,
61023
- lastFixRight = _ref2.lastFixRight,
61024
- appendNode = _ref2.appendNode,
61025
- _ref2$additionalProps = _ref2.additionalProps,
61026
- additionalProps = _ref2$additionalProps === void 0 ? {} : _ref2$additionalProps,
61027
- ellipsis = _ref2.ellipsis,
61028
- align = _ref2.align,
61029
- rowType = _ref2.rowType,
61030
- isSticky = _ref2.isSticky,
61031
- hovering = _ref2.hovering,
61032
- onHover = _ref2.onHover;
60930
+ function Cell(props) {
60931
+ var _ref2, _ref3, _legacyCellProps$colS, _ref4, _ref5, _legacyCellProps$rowS, _additionalProps$titl, _classNames;
60932
+ if (false) {}
60933
+ var Component = props.component,
60934
+ children = props.children,
60935
+ ellipsis = props.ellipsis,
60936
+ scope = props.scope,
60937
+ prefixCls = props.prefixCls,
60938
+ className = props.className,
60939
+ align = props.align,
60940
+ record = props.record,
60941
+ render = props.render,
60942
+ dataIndex = props.dataIndex,
60943
+ renderIndex = props.renderIndex,
60944
+ shouldCellUpdate = props.shouldCellUpdate,
60945
+ index = props.index,
60946
+ rowType = props.rowType,
60947
+ colSpan = props.colSpan,
60948
+ rowSpan = props.rowSpan,
60949
+ fixLeft = props.fixLeft,
60950
+ fixRight = props.fixRight,
60951
+ firstFixLeft = props.firstFixLeft,
60952
+ lastFixLeft = props.lastFixLeft,
60953
+ firstFixRight = props.firstFixRight,
60954
+ lastFixRight = props.lastFixRight,
60955
+ appendNode = props.appendNode,
60956
+ _props$additionalProp = props.additionalProps,
60957
+ additionalProps = _props$additionalProp === void 0 ? {} : _props$additionalProp,
60958
+ isSticky = props.isSticky;
61033
60959
  var cellPrefixCls = "".concat(prefixCls, "-cell");
61034
- var perfRecord = external_React_.useContext(context_PerfContext);
61035
- var supportSticky = external_React_.useContext(context_StickyContext);
61036
- var allColumnsFixedLeft = useContextSelector(context_BodyContext, 'allColumnsFixedLeft'); // ==================== Child Node ====================
60960
+ var _useContext = context_useContext(context_TableContext, ['supportSticky', 'allColumnsFixedLeft']),
60961
+ supportSticky = _useContext.supportSticky,
60962
+ allColumnsFixedLeft = _useContext.allColumnsFixedLeft; // ====================== Value =======================
61037
60963
 
61038
- var _React$useMemo = external_React_.useMemo(function () {
61039
- if (validateValue(children)) {
61040
- return [children];
61041
- }
61042
- var value = getPathValue(record, dataIndex); // Customize render node
61043
-
61044
- var returnChildNode = value;
61045
- var returnCellProps = undefined;
61046
- if (render) {
61047
- var renderData = render(value, record, renderIndex);
61048
- if (isRenderCell(renderData)) {
61049
- if (false) {}
61050
- returnChildNode = renderData.children;
61051
- returnCellProps = renderData.props;
61052
- perfRecord.renderWithProps = true;
61053
- } else {
61054
- returnChildNode = renderData;
61055
- }
61056
- }
61057
- return [returnChildNode, returnCellProps];
61058
- }, [/* eslint-disable react-hooks/exhaustive-deps */
61059
- // Always re-render if `renderWithProps`
61060
- perfRecord.renderWithProps ? Math.random() : 0, /* eslint-enable */
61061
- children, dataIndex, perfRecord, record, render, renderIndex]),
61062
- _React$useMemo2 = slicedToArray_slicedToArray(_React$useMemo, 2),
61063
- childNode = _React$useMemo2[0],
61064
- legacyCellProps = _React$useMemo2[1];
61065
- var mergedChildNode = childNode; // Not crash if final `childNode` is not validate ReactNode
61066
-
61067
- if (typeof_typeof(mergedChildNode) === 'object' && !Array.isArray(mergedChildNode) && ! /*#__PURE__*/external_React_.isValidElement(mergedChildNode)) {
61068
- mergedChildNode = null;
61069
- }
61070
- if (ellipsis && (lastFixLeft || firstFixRight)) {
61071
- mergedChildNode = /*#__PURE__*/external_React_.createElement("span", {
61072
- className: "".concat(cellPrefixCls, "-content")
61073
- }, mergedChildNode);
61074
- }
61075
- var _ref3 = legacyCellProps || {},
61076
- cellColSpan = _ref3.colSpan,
61077
- cellRowSpan = _ref3.rowSpan,
61078
- cellStyle = _ref3.style,
61079
- cellClassName = _ref3.className,
61080
- restCellProps = objectWithoutProperties_objectWithoutProperties(_ref3, Cell_excluded);
61081
- var mergedColSpan = (_ref4 = cellColSpan !== undefined ? cellColSpan : colSpan) !== null && _ref4 !== void 0 ? _ref4 : 1;
61082
- var mergedRowSpan = (_ref5 = cellRowSpan !== undefined ? cellRowSpan : rowSpan) !== null && _ref5 !== void 0 ? _ref5 : 1;
61083
- if (mergedColSpan === 0 || mergedRowSpan === 0) {
61084
- return null;
61085
- } // ====================== Fixed =======================
60964
+ var _useCellRender = useCellRender(record, dataIndex, renderIndex, children, render, shouldCellUpdate),
60965
+ _useCellRender2 = slicedToArray_slicedToArray(_useCellRender, 2),
60966
+ childNode = _useCellRender2[0],
60967
+ legacyCellProps = _useCellRender2[1]; // ====================== Fixed =======================
61086
60968
 
61087
60969
  var fixedStyle = {};
61088
60970
  var isFixLeft = typeof fixLeft === 'number' && supportSticky;
@@ -61094,13 +60976,15 @@ function Cell(_ref2, ref) {
61094
60976
  if (isFixRight) {
61095
60977
  fixedStyle.position = 'sticky';
61096
60978
  fixedStyle.right = fixRight;
61097
- } // ====================== Align =======================
60979
+ } // ================ RowSpan & ColSpan =================
61098
60980
 
61099
- var alignStyle = {};
61100
- if (align) {
61101
- alignStyle.textAlign = align;
61102
- } // ====================== Hover =======================
60981
+ var mergedColSpan = (_ref2 = (_ref3 = (_legacyCellProps$colS = legacyCellProps === null || legacyCellProps === void 0 ? void 0 : legacyCellProps.colSpan) !== null && _legacyCellProps$colS !== void 0 ? _legacyCellProps$colS : colSpan) !== null && _ref3 !== void 0 ? _ref3 : additionalProps.colSpan) !== null && _ref2 !== void 0 ? _ref2 : 1;
60982
+ var mergedRowSpan = (_ref4 = (_ref5 = (_legacyCellProps$rowS = legacyCellProps === null || legacyCellProps === void 0 ? void 0 : legacyCellProps.rowSpan) !== null && _legacyCellProps$rowS !== void 0 ? _legacyCellProps$rowS : rowSpan) !== null && _ref5 !== void 0 ? _ref5 : additionalProps.rowSpan) !== null && _ref4 !== void 0 ? _ref4 : 1; // ====================== Hover =======================
61103
60983
 
60984
+ var _useHoverState = useHoverState(index, mergedRowSpan),
60985
+ _useHoverState2 = slicedToArray_slicedToArray(_useHoverState, 2),
60986
+ hovering = _useHoverState2[0],
60987
+ onHover = _useHoverState2[1];
61104
60988
  var onMouseEnter = function onMouseEnter(event) {
61105
60989
  var _additionalProps$onMo;
61106
60990
  if (record) {
@@ -61116,122 +61000,451 @@ function Cell(_ref2, ref) {
61116
61000
  additionalProps === null || additionalProps === void 0 ? void 0 : (_additionalProps$onMo2 = additionalProps.onMouseLeave) === null || _additionalProps$onMo2 === void 0 ? void 0 : _additionalProps$onMo2.call(additionalProps, event);
61117
61001
  }; // ====================== Render ======================
61118
61002
 
61119
- var title = getTitleFromCellRenderChildren({
61003
+ if (mergedColSpan === 0 || mergedRowSpan === 0) {
61004
+ return null;
61005
+ } // >>>>> Title
61006
+
61007
+ var title = (_additionalProps$titl = additionalProps.title) !== null && _additionalProps$titl !== void 0 ? _additionalProps$titl : getTitleFromCellRenderChildren({
61120
61008
  rowType: rowType,
61121
61009
  ellipsis: ellipsis,
61122
61010
  children: childNode
61123
- });
61124
- var componentProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
61125
- title: title
61126
- }, restCellProps), additionalProps), {}, {
61127
- colSpan: mergedColSpan !== 1 ? mergedColSpan : null,
61128
- rowSpan: mergedRowSpan !== 1 ? mergedRowSpan : null,
61129
- scope: scope,
61130
- className: classnames_default()(cellPrefixCls, className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left"), isFixLeft && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left-first"), firstFixLeft && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left-last"), lastFixLeft && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left-all"), lastFixLeft && allColumnsFixedLeft && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right"), isFixRight && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right-first"), firstFixRight && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right-last"), lastFixRight && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-ellipsis"), ellipsis), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-with-append"), appendNode), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-sticky"), (isFixLeft || isFixRight) && isSticky && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-row-hover"), !legacyCellProps && hovering), _classNames), additionalProps.className, cellClassName),
61131
- style: objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, additionalProps.style), alignStyle), fixedStyle), cellStyle),
61011
+ }); // >>>>> ClassName
61012
+
61013
+ var mergedClassName = classnames_default()(cellPrefixCls, className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left"), isFixLeft && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left-first"), firstFixLeft && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left-last"), lastFixLeft && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left-all"), lastFixLeft && allColumnsFixedLeft && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right"), isFixRight && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right-first"), firstFixRight && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right-last"), lastFixRight && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-ellipsis"), ellipsis), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-with-append"), appendNode), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-sticky"), (isFixLeft || isFixRight) && isSticky && supportSticky), defineProperty_defineProperty(_classNames, "".concat(cellPrefixCls, "-row-hover"), !legacyCellProps && hovering), _classNames), additionalProps.className, legacyCellProps === null || legacyCellProps === void 0 ? void 0 : legacyCellProps.className); // >>>>> Style
61014
+
61015
+ var alignStyle = {};
61016
+ if (align) {
61017
+ alignStyle.textAlign = align;
61018
+ }
61019
+ var mergedStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, additionalProps.style), alignStyle), fixedStyle), legacyCellProps === null || legacyCellProps === void 0 ? void 0 : legacyCellProps.style); // >>>>> Children Node
61020
+
61021
+ var mergedChildNode = childNode; // Not crash if final `childNode` is not validate ReactNode
61022
+
61023
+ if (typeof_typeof(mergedChildNode) === 'object' && !Array.isArray(mergedChildNode) && ! /*#__PURE__*/external_React_.isValidElement(mergedChildNode)) {
61024
+ mergedChildNode = null;
61025
+ }
61026
+ if (ellipsis && (lastFixLeft || firstFixRight)) {
61027
+ mergedChildNode = /*#__PURE__*/external_React_.createElement("span", {
61028
+ className: "".concat(cellPrefixCls, "-content")
61029
+ }, mergedChildNode);
61030
+ }
61031
+ return /*#__PURE__*/external_React_.createElement(Component, extends_extends({}, legacyCellProps, additionalProps, {
61032
+ className: mergedClassName,
61033
+ style: mergedStyle // A11y
61034
+ ,
61035
+
61036
+ title: title,
61037
+ scope: scope // Hover
61038
+ ,
61039
+
61132
61040
  onMouseEnter: onMouseEnter,
61133
- onMouseLeave: onMouseLeave,
61134
- ref: isRefComponent(Component) ? ref : null
61135
- });
61136
- return /*#__PURE__*/external_React_.createElement(Component, componentProps, appendNode, mergedChildNode);
61137
- }
61138
- var RefCell = /*#__PURE__*/external_React_.forwardRef(Cell);
61139
- RefCell.displayName = 'Cell';
61140
- var comparePropList = ['expanded', 'className', 'hovering'];
61141
- var MemoCell = /*#__PURE__*/external_React_.memo(RefCell, function (prev, next) {
61142
- if (next.shouldCellUpdate) {
61143
- return (
61144
- // Additional handle of expanded logic
61145
- comparePropList.every(function (propName) {
61146
- return prev[propName] === next[propName];
61147
- }) &&
61148
- // User control update logic
61149
- !next.shouldCellUpdate(next.record, prev.record)
61150
- );
61041
+ onMouseLeave: onMouseLeave //Span
61042
+ ,
61043
+
61044
+ colSpan: mergedColSpan !== 1 ? mergedColSpan : null,
61045
+ rowSpan: mergedRowSpan !== 1 ? mergedRowSpan : null
61046
+ }), appendNode, mergedChildNode);
61047
+ }
61048
+ /* harmony default export */ var es_Cell = (/*#__PURE__*/external_React_.memo(Cell));
61049
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/utils/fixUtil.js
61050
+ function getCellFixedInfo(colStart, colEnd, columns, stickyOffsets, direction, curColumns) {
61051
+ var startColumn = columns[colStart] || {};
61052
+ var endColumn = columns[colEnd] || {};
61053
+ var fixLeft;
61054
+ var fixRight;
61055
+ if (startColumn.fixed === 'left') {
61056
+ fixLeft = stickyOffsets.left[colStart];
61057
+ } else if (endColumn.fixed === 'right') {
61058
+ fixRight = stickyOffsets.right[colEnd];
61151
61059
  }
61152
- return shallowequal_default()(prev, next);
61153
- });
61154
- /** Inject hover data here, we still wish MemoCell keep simple `shouldCellUpdate` logic */
61060
+ var lastFixLeft = false;
61061
+ var firstFixRight = false;
61062
+ var lastFixRight = false;
61063
+ var firstFixLeft = false;
61064
+ var nextColumn = columns[colEnd + 1];
61065
+ var prevColumn = columns[colStart - 1]; // no children only
61155
61066
 
61156
- var WrappedCell = /*#__PURE__*/external_React_.forwardRef(function (props, ref) {
61157
- var index = props.index,
61158
- _props$additionalProp = props.additionalProps,
61159
- additionalProps = _props$additionalProp === void 0 ? {} : _props$additionalProp,
61160
- colSpan = props.colSpan,
61161
- rowSpan = props.rowSpan;
61162
- var cellColSpan = additionalProps.colSpan,
61163
- cellRowSpan = additionalProps.rowSpan;
61164
- var mergedColSpan = colSpan !== null && colSpan !== void 0 ? colSpan : cellColSpan;
61165
- var mergedRowSpan = rowSpan !== null && rowSpan !== void 0 ? rowSpan : cellRowSpan;
61166
- var _useContextSelector = useContextSelector(context_HoverContext, function (cxt) {
61167
- var isHovering = inHoverRange(index, mergedRowSpan || 1, cxt === null || cxt === void 0 ? void 0 : cxt.startRow, cxt === null || cxt === void 0 ? void 0 : cxt.endRow);
61168
- return {
61169
- onHover: cxt === null || cxt === void 0 ? void 0 : cxt.onHover,
61170
- hovering: isHovering
61171
- };
61172
- }),
61173
- onHover = _useContextSelector.onHover,
61174
- hovering = _useContextSelector.hovering;
61175
- return /*#__PURE__*/external_React_.createElement(MemoCell, extends_extends({}, props, {
61067
+ var canLastFix = !(curColumns !== null && curColumns !== void 0 && curColumns.children);
61068
+ if (direction === 'rtl') {
61069
+ if (fixLeft !== undefined) {
61070
+ var prevFixLeft = prevColumn && prevColumn.fixed === 'left';
61071
+ firstFixLeft = !prevFixLeft && canLastFix;
61072
+ } else if (fixRight !== undefined) {
61073
+ var nextFixRight = nextColumn && nextColumn.fixed === 'right';
61074
+ lastFixRight = !nextFixRight && canLastFix;
61075
+ }
61076
+ } else if (fixLeft !== undefined) {
61077
+ var nextFixLeft = nextColumn && nextColumn.fixed === 'left';
61078
+ lastFixLeft = !nextFixLeft && canLastFix;
61079
+ } else if (fixRight !== undefined) {
61080
+ var prevFixRight = prevColumn && prevColumn.fixed === 'right';
61081
+ firstFixRight = !prevFixRight && canLastFix;
61082
+ }
61083
+ return {
61084
+ fixLeft: fixLeft,
61085
+ fixRight: fixRight,
61086
+ lastFixLeft: lastFixLeft,
61087
+ firstFixRight: firstFixRight,
61088
+ lastFixRight: lastFixRight,
61089
+ firstFixLeft: firstFixLeft,
61090
+ isSticky: stickyOffsets.isSticky
61091
+ };
61092
+ }
61093
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Footer/SummaryContext.js
61094
+
61095
+ var SummaryContext = /*#__PURE__*/external_React_.createContext({});
61096
+ /* harmony default export */ var Footer_SummaryContext = (SummaryContext);
61097
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Footer/Cell.js
61098
+
61099
+
61100
+
61101
+
61102
+
61103
+
61104
+
61105
+ function SummaryCell(_ref) {
61106
+ var className = _ref.className,
61107
+ index = _ref.index,
61108
+ children = _ref.children,
61109
+ _ref$colSpan = _ref.colSpan,
61110
+ colSpan = _ref$colSpan === void 0 ? 1 : _ref$colSpan,
61111
+ rowSpan = _ref.rowSpan,
61112
+ align = _ref.align;
61113
+ var _useContext = context_useContext(context_TableContext, ['prefixCls', 'direction']),
61114
+ prefixCls = _useContext.prefixCls,
61115
+ direction = _useContext.direction;
61116
+ var _React$useContext = external_React_.useContext(Footer_SummaryContext),
61117
+ scrollColumnIndex = _React$useContext.scrollColumnIndex,
61118
+ stickyOffsets = _React$useContext.stickyOffsets,
61119
+ flattenColumns = _React$useContext.flattenColumns,
61120
+ columns = _React$useContext.columns;
61121
+ var lastIndex = index + colSpan - 1;
61122
+ var mergedColSpan = lastIndex + 1 === scrollColumnIndex ? colSpan + 1 : colSpan;
61123
+ var fixedInfo = getCellFixedInfo(index, index + mergedColSpan - 1, flattenColumns, stickyOffsets, direction, columns === null || columns === void 0 ? void 0 : columns[index]);
61124
+ return /*#__PURE__*/external_React_.createElement(es_Cell, extends_extends({
61125
+ className: className,
61126
+ index: index,
61127
+ component: "td",
61128
+ prefixCls: prefixCls,
61129
+ record: null,
61130
+ dataIndex: null,
61131
+ align: align,
61176
61132
  colSpan: mergedColSpan,
61177
- rowSpan: mergedRowSpan,
61178
- hovering: hovering,
61179
- ref: ref,
61180
- onHover: onHover
61181
- }));
61133
+ rowSpan: rowSpan,
61134
+ render: function render() {
61135
+ return children;
61136
+ }
61137
+ }, fixedInfo));
61138
+ }
61139
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Footer/Row.js
61140
+
61141
+ var Row_excluded = ["children"];
61142
+
61143
+ function FooterRow(_ref) {
61144
+ var children = _ref.children,
61145
+ props = objectWithoutProperties_objectWithoutProperties(_ref, Row_excluded);
61146
+ return /*#__PURE__*/external_React_.createElement("tr", props, children);
61147
+ }
61148
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Footer/Summary.js
61149
+
61150
+
61151
+
61152
+ /**
61153
+ * Syntactic sugar. Do not support HOC.
61154
+ */
61155
+ function Summary(_ref) {
61156
+ var children = _ref.children;
61157
+ return children;
61158
+ }
61159
+ Summary.Row = FooterRow;
61160
+ Summary.Cell = SummaryCell;
61161
+ /* harmony default export */ var Footer_Summary = (Summary);
61162
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Footer/index.js
61163
+
61164
+
61165
+
61166
+
61167
+
61168
+
61169
+ function Footer_Footer(props) {
61170
+ if (false) {}
61171
+ var children = props.children,
61172
+ stickyOffsets = props.stickyOffsets,
61173
+ flattenColumns = props.flattenColumns,
61174
+ columns = props.columns;
61175
+ var prefixCls = context_useContext(context_TableContext, 'prefixCls');
61176
+ var lastColumnIndex = flattenColumns.length - 1;
61177
+ var scrollColumn = flattenColumns[lastColumnIndex];
61178
+ var summaryContext = external_React_.useMemo(function () {
61179
+ return {
61180
+ stickyOffsets: stickyOffsets,
61181
+ flattenColumns: flattenColumns,
61182
+ scrollColumnIndex: scrollColumn !== null && scrollColumn !== void 0 && scrollColumn.scrollbar ? lastColumnIndex : null,
61183
+ columns: columns
61184
+ };
61185
+ }, [scrollColumn, flattenColumns, lastColumnIndex, stickyOffsets, columns]);
61186
+ return /*#__PURE__*/external_React_.createElement(Footer_SummaryContext.Provider, {
61187
+ value: summaryContext
61188
+ }, /*#__PURE__*/external_React_.createElement("tfoot", {
61189
+ className: "".concat(prefixCls, "-summary")
61190
+ }, children));
61191
+ }
61192
+ /* harmony default export */ var es_Footer = (responseImmutable(Footer_Footer));
61193
+ var FooterComponents = Footer_Summary;
61194
+ ;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/isVisible.js
61195
+ /* harmony default export */ var Dom_isVisible = (function (element) {
61196
+ if (!element) {
61197
+ return false;
61198
+ }
61199
+ if (element instanceof HTMLElement && element.offsetParent) {
61200
+ return true;
61201
+ }
61202
+ if (element instanceof SVGGraphicsElement && element.getBBox) {
61203
+ var _element$getBBox = element.getBBox(),
61204
+ width = _element$getBBox.width,
61205
+ height = _element$getBBox.height;
61206
+ if (width || height) {
61207
+ return true;
61208
+ }
61209
+ }
61210
+ if (element instanceof HTMLElement && element.getBoundingClientRect) {
61211
+ var _element$getBoundingC = element.getBoundingClientRect(),
61212
+ _width = _element$getBoundingC.width,
61213
+ _height = _element$getBoundingC.height;
61214
+ if (_width || _height) {
61215
+ return true;
61216
+ }
61217
+ }
61218
+ return false;
61182
61219
  });
61183
- WrappedCell.displayName = 'WrappedCell';
61184
- /* harmony default export */ var es_Cell = (WrappedCell);
61185
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/context/ExpandedRowContext.js
61220
+ ;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/styleChecker.js
61186
61221
 
61187
- var ExpandedRowContext = createContext(null);
61188
- /* harmony default export */ var context_ExpandedRowContext = (ExpandedRowContext);
61189
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Body/ExpandedRow.js
61222
+ var isStyleNameSupport = function isStyleNameSupport(styleName) {
61223
+ if (canUseDom() && window.document.documentElement) {
61224
+ var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
61225
+ var documentElement = window.document.documentElement;
61226
+ return styleNameList.some(function (name) {
61227
+ return name in documentElement.style;
61228
+ });
61229
+ }
61230
+ return false;
61231
+ };
61232
+ var isStyleValueSupport = function isStyleValueSupport(styleName, value) {
61233
+ if (!isStyleNameSupport(styleName)) {
61234
+ return false;
61235
+ }
61236
+ var ele = document.createElement('div');
61237
+ var origin = ele.style[styleName];
61238
+ ele.style[styleName] = value;
61239
+ return ele.style[styleName] !== origin;
61240
+ };
61241
+ function isStyleSupport(styleName, styleValue) {
61242
+ if (!Array.isArray(styleName) && styleValue !== undefined) {
61243
+ return isStyleValueSupport(styleName, styleValue);
61244
+ }
61245
+ return isStyleNameSupport(styleName);
61246
+ }
61247
+ ;// CONCATENATED MODULE: ./node_modules/rc-util/es/getScrollBarSize.js
61248
+ /* eslint-disable no-param-reassign */
61249
+ var cached;
61250
+ function getScrollBarSize(fresh) {
61251
+ if (typeof document === 'undefined') {
61252
+ return 0;
61253
+ }
61254
+ if (fresh || cached === undefined) {
61255
+ var inner = document.createElement('div');
61256
+ inner.style.width = '100%';
61257
+ inner.style.height = '200px';
61258
+ var outer = document.createElement('div');
61259
+ var outerStyle = outer.style;
61260
+ outerStyle.position = 'absolute';
61261
+ outerStyle.top = '0';
61262
+ outerStyle.left = '0';
61263
+ outerStyle.pointerEvents = 'none';
61264
+ outerStyle.visibility = 'hidden';
61265
+ outerStyle.width = '200px';
61266
+ outerStyle.height = '150px';
61267
+ outerStyle.overflow = 'hidden';
61268
+ outer.appendChild(inner);
61269
+ document.body.appendChild(outer);
61270
+ var widthContained = inner.offsetWidth;
61271
+ outer.style.overflow = 'scroll';
61272
+ var widthScroll = inner.offsetWidth;
61273
+ if (widthContained === widthScroll) {
61274
+ widthScroll = outer.clientWidth;
61275
+ }
61276
+ document.body.removeChild(outer);
61277
+ cached = widthContained - widthScroll;
61278
+ }
61279
+ return cached;
61280
+ }
61281
+ function ensureSize(str) {
61282
+ var match = str.match(/^(.*)px$/);
61283
+ var value = Number(match === null || match === void 0 ? void 0 : match[1]);
61284
+ return Number.isNaN(value) ? getScrollBarSize() : value;
61285
+ }
61286
+ function getTargetScrollBarSize(target) {
61287
+ if (typeof document === 'undefined' || !target || !(target instanceof Element)) {
61288
+ return {
61289
+ width: 0,
61290
+ height: 0
61291
+ };
61292
+ }
61293
+ var _getComputedStyle = getComputedStyle(target, '::-webkit-scrollbar'),
61294
+ width = _getComputedStyle.width,
61295
+ height = _getComputedStyle.height;
61296
+ return {
61297
+ width: ensureSize(width),
61298
+ height: ensureSize(height)
61299
+ };
61300
+ }
61301
+ ;// CONCATENATED MODULE: ./node_modules/rc-util/es/pickAttrs.js
61190
61302
 
61303
+ var attributes = "accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap";
61304
+ var eventsName = "onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError";
61305
+ var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);
61306
+ /* eslint-enable max-len */
61307
+ var ariaPrefix = 'aria-';
61308
+ var dataPrefix = 'data-';
61309
+ function pickAttrs_match(key, prefix) {
61310
+ return key.indexOf(prefix) === 0;
61311
+ }
61312
+ /**
61313
+ * Picker props from exist props with filter
61314
+ * @param props Passed props
61315
+ * @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
61316
+ */
61317
+ function pickAttrs(props) {
61318
+ var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
61319
+ var mergedConfig;
61320
+ if (ariaOnly === false) {
61321
+ mergedConfig = {
61322
+ aria: true,
61323
+ data: true,
61324
+ attr: true
61325
+ };
61326
+ } else if (ariaOnly === true) {
61327
+ mergedConfig = {
61328
+ aria: true
61329
+ };
61330
+ } else {
61331
+ mergedConfig = objectSpread2_objectSpread2({}, ariaOnly);
61332
+ }
61333
+ var attrs = {};
61334
+ Object.keys(props).forEach(function (key) {
61335
+ if (
61336
+ // Aria
61337
+ mergedConfig.aria && (key === 'role' || pickAttrs_match(key, ariaPrefix)) ||
61338
+ // Data
61339
+ mergedConfig.data && pickAttrs_match(key, dataPrefix) ||
61340
+ // Attr
61341
+ mergedConfig.attr && propList.includes(key)) {
61342
+ attrs[key] = props[key];
61343
+ }
61344
+ });
61345
+ return attrs;
61346
+ }
61347
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/hooks/useFlattenRecords.js
61191
61348
 
61192
61349
 
61193
61350
 
61351
+ // recursion (flat tree structure)
61352
+ function flatRecord(record, indent, childrenColumnName, expandedKeys, getRowKey, index) {
61353
+ var arr = [];
61354
+ arr.push({
61355
+ record: record,
61356
+ indent: indent,
61357
+ index: index
61358
+ });
61359
+ var key = getRowKey(record);
61360
+ var expanded = expandedKeys === null || expandedKeys === void 0 ? void 0 : expandedKeys.has(key);
61361
+ if (record && Array.isArray(record[childrenColumnName]) && expanded) {
61362
+ // expanded state, flat record
61363
+ for (var i = 0; i < record[childrenColumnName].length; i += 1) {
61364
+ var tempArr = flatRecord(record[childrenColumnName][i], indent + 1, childrenColumnName, expandedKeys, getRowKey, i);
61365
+ arr.push.apply(arr, toConsumableArray_toConsumableArray(tempArr));
61366
+ }
61367
+ }
61368
+ return arr;
61369
+ }
61370
+ /**
61371
+ * flat tree data on expanded state
61372
+ *
61373
+ * @export
61374
+ * @template T
61375
+ * @param {*} data : table data
61376
+ * @param {string} childrenColumnName : 指定树形结构的列名
61377
+ * @param {Set<Key>} expandedKeys : 展开的行对应的keys
61378
+ * @param {GetRowKey<T>} getRowKey : 获取当前rowKey的方法
61379
+ * @returns flattened data
61380
+ */
61194
61381
 
61195
- function ExpandedRow(_ref) {
61196
- var prefixCls = _ref.prefixCls,
61197
- children = _ref.children,
61198
- Component = _ref.component,
61199
- cellComponent = _ref.cellComponent,
61200
- className = _ref.className,
61201
- expanded = _ref.expanded,
61202
- colSpan = _ref.colSpan,
61203
- isEmpty = _ref.isEmpty;
61204
- var scrollbarSize = useContextSelector(context_TableContext, 'scrollbarSize');
61205
- var _useContextSelector = useContextSelector(context_ExpandedRowContext, ['fixHeader', 'fixColumn', 'componentWidth', 'horizonScroll']),
61206
- fixHeader = _useContextSelector.fixHeader,
61207
- fixColumn = _useContextSelector.fixColumn,
61208
- componentWidth = _useContextSelector.componentWidth,
61209
- horizonScroll = _useContextSelector.horizonScroll; // Cache render node
61382
+ function useFlattenRecords(data, childrenColumnName, expandedKeys, getRowKey) {
61383
+ var arr = external_React_.useMemo(function () {
61384
+ if (expandedKeys !== null && expandedKeys !== void 0 && expandedKeys.size) {
61385
+ var temp = []; // collect flattened record
61210
61386
 
61211
- return external_React_.useMemo(function () {
61212
- var contentNode = children;
61213
- if (isEmpty ? horizonScroll : fixColumn) {
61214
- contentNode = /*#__PURE__*/external_React_.createElement("div", {
61215
- style: {
61216
- width: componentWidth - (fixHeader ? scrollbarSize : 0),
61217
- position: 'sticky',
61218
- left: 0,
61219
- overflow: 'hidden'
61220
- },
61221
- className: "".concat(prefixCls, "-expanded-row-fixed")
61222
- }, componentWidth !== 0 && contentNode);
61387
+ for (var i = 0; i < (data === null || data === void 0 ? void 0 : data.length); i += 1) {
61388
+ var record = data[i];
61389
+ temp.push.apply(temp, toConsumableArray_toConsumableArray(flatRecord(record, 0, childrenColumnName, expandedKeys, getRowKey, i)));
61390
+ }
61391
+ return temp;
61223
61392
  }
61224
- return /*#__PURE__*/external_React_.createElement(Component, {
61225
- className: className,
61393
+ return data === null || data === void 0 ? void 0 : data.map(function (item, index) {
61394
+ return {
61395
+ record: item,
61396
+ indent: 0,
61397
+ index: index
61398
+ };
61399
+ });
61400
+ }, [data, childrenColumnName, expandedKeys, getRowKey]);
61401
+ return arr;
61402
+ }
61403
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Body/ExpandedRow.js
61404
+
61405
+
61406
+
61407
+
61408
+
61409
+ function ExpandedRow(props) {
61410
+ if (false) {}
61411
+ var prefixCls = props.prefixCls,
61412
+ children = props.children,
61413
+ Component = props.component,
61414
+ cellComponent = props.cellComponent,
61415
+ className = props.className,
61416
+ expanded = props.expanded,
61417
+ colSpan = props.colSpan,
61418
+ isEmpty = props.isEmpty;
61419
+ var _useContext = context_useContext(context_TableContext, ['scrollbarSize', 'fixHeader', 'fixColumn', 'componentWidth', 'horizonScroll']),
61420
+ scrollbarSize = _useContext.scrollbarSize,
61421
+ fixHeader = _useContext.fixHeader,
61422
+ fixColumn = _useContext.fixColumn,
61423
+ componentWidth = _useContext.componentWidth,
61424
+ horizonScroll = _useContext.horizonScroll; // Cache render node
61425
+
61426
+ var contentNode = children;
61427
+ if (isEmpty ? horizonScroll : fixColumn) {
61428
+ contentNode = /*#__PURE__*/external_React_.createElement("div", {
61226
61429
  style: {
61227
- display: expanded ? null : 'none'
61228
- }
61229
- }, /*#__PURE__*/external_React_.createElement(es_Cell, {
61230
- component: cellComponent,
61231
- prefixCls: prefixCls,
61232
- colSpan: colSpan
61233
- }, contentNode));
61234
- }, [children, Component, className, expanded, colSpan, isEmpty, scrollbarSize, componentWidth, fixColumn, fixHeader, horizonScroll]);
61430
+ width: componentWidth - (fixHeader ? scrollbarSize : 0),
61431
+ position: 'sticky',
61432
+ left: 0,
61433
+ overflow: 'hidden'
61434
+ },
61435
+ className: "".concat(prefixCls, "-expanded-row-fixed")
61436
+ }, componentWidth !== 0 && contentNode);
61437
+ }
61438
+ return /*#__PURE__*/external_React_.createElement(Component, {
61439
+ className: className,
61440
+ style: {
61441
+ display: expanded ? null : 'none'
61442
+ }
61443
+ }, /*#__PURE__*/external_React_.createElement(es_Cell, {
61444
+ component: cellComponent,
61445
+ prefixCls: prefixCls,
61446
+ colSpan: colSpan
61447
+ }, contentNode));
61235
61448
  }
61236
61449
  /* harmony default export */ var Body_ExpandedRow = (ExpandedRow);
61237
61450
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Body/BodyRow.js
@@ -61247,6 +61460,7 @@ function ExpandedRow(_ref) {
61247
61460
 
61248
61461
 
61249
61462
  function BodyRow(props) {
61463
+ if (false) {}
61250
61464
  var className = props.className,
61251
61465
  style = props.style,
61252
61466
  record = props.record,
@@ -61262,25 +61476,25 @@ function BodyRow(props) {
61262
61476
  cellComponent = props.cellComponent,
61263
61477
  scopeCellComponent = props.scopeCellComponent,
61264
61478
  childrenColumnName = props.childrenColumnName;
61265
- var _useContextSelector = useContextSelector(context_TableContext, ['prefixCls', 'fixedInfoList']),
61266
- prefixCls = _useContextSelector.prefixCls,
61267
- fixedInfoList = _useContextSelector.fixedInfoList;
61268
- var _useContextSelector2 = useContextSelector(context_BodyContext, ['flattenColumns', 'expandableType', 'expandRowByClick', 'onTriggerExpand', 'rowClassName', 'expandedRowClassName', 'indentSize', 'expandIcon', 'expandedRowRender', 'expandIconColumnIndex']),
61269
- flattenColumns = _useContextSelector2.flattenColumns,
61270
- expandableType = _useContextSelector2.expandableType,
61271
- expandRowByClick = _useContextSelector2.expandRowByClick,
61272
- onTriggerExpand = _useContextSelector2.onTriggerExpand,
61273
- rowClassName = _useContextSelector2.rowClassName,
61274
- expandedRowClassName = _useContextSelector2.expandedRowClassName,
61275
- indentSize = _useContextSelector2.indentSize,
61276
- expandIcon = _useContextSelector2.expandIcon,
61277
- expandedRowRender = _useContextSelector2.expandedRowRender,
61278
- expandIconColumnIndex = _useContextSelector2.expandIconColumnIndex;
61479
+ var _useContext = context_useContext(context_TableContext, ['prefixCls', 'fixedInfoList', 'flattenColumns', 'expandableType', 'expandRowByClick', 'onTriggerExpand', 'rowClassName', 'expandedRowClassName', 'indentSize', 'expandIcon', 'expandedRowRender', 'expandIconColumnIndex']),
61480
+ prefixCls = _useContext.prefixCls,
61481
+ fixedInfoList = _useContext.fixedInfoList,
61482
+ flattenColumns = _useContext.flattenColumns,
61483
+ expandableType = _useContext.expandableType,
61484
+ expandRowByClick = _useContext.expandRowByClick,
61485
+ onTriggerExpand = _useContext.onTriggerExpand,
61486
+ rowClassName = _useContext.rowClassName,
61487
+ expandedRowClassName = _useContext.expandedRowClassName,
61488
+ indentSize = _useContext.indentSize,
61489
+ expandIcon = _useContext.expandIcon,
61490
+ expandedRowRender = _useContext.expandedRowRender,
61491
+ expandIconColumnIndex = _useContext.expandIconColumnIndex;
61279
61492
  var _React$useState = external_React_.useState(false),
61280
61493
  _React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
61281
61494
  expandRended = _React$useState2[0],
61282
61495
  setExpandRended = _React$useState2[1];
61283
- var expanded = expandedKeys && expandedKeys.has(props.recordKey);
61496
+ if (false) {}
61497
+ var expanded = expandedKeys && expandedKeys.has(rowKey);
61284
61498
  external_React_.useEffect(function () {
61285
61499
  if (expanded) {
61286
61500
  setExpandRended(true);
@@ -61386,7 +61600,7 @@ function BodyRow(props) {
61386
61600
  return /*#__PURE__*/external_React_.createElement(external_React_.Fragment, null, baseRowNode, expandRowNode);
61387
61601
  }
61388
61602
  BodyRow.displayName = 'BodyRow';
61389
- /* harmony default export */ var Body_BodyRow = (BodyRow);
61603
+ /* harmony default export */ var Body_BodyRow = (responseImmutable(BodyRow));
61390
61604
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Body/MeasureCell.js
61391
61605
 
61392
61606
 
@@ -61457,105 +61671,79 @@ function MeasureRow(_ref) {
61457
61671
 
61458
61672
 
61459
61673
 
61460
-
61461
-
61462
-
61463
- function Body_Body(_ref) {
61464
- var data = _ref.data,
61465
- getRowKey = _ref.getRowKey,
61466
- measureColumnWidth = _ref.measureColumnWidth,
61467
- expandedKeys = _ref.expandedKeys,
61468
- onRow = _ref.onRow,
61469
- rowExpandable = _ref.rowExpandable,
61470
- emptyNode = _ref.emptyNode,
61471
- childrenColumnName = _ref.childrenColumnName;
61472
- var onColumnResize = useContextSelector(context_ResizeContext, 'onColumnResize');
61473
- var _useContextSelector = useContextSelector(context_TableContext, ['prefixCls', 'getComponent']),
61474
- prefixCls = _useContextSelector.prefixCls,
61475
- getComponent = _useContextSelector.getComponent;
61476
- var flattenColumns = useContextSelector(context_BodyContext, 'flattenColumns');
61674
+ function Body_Body(props) {
61675
+ if (false) {}
61676
+ var data = props.data,
61677
+ getRowKey = props.getRowKey,
61678
+ measureColumnWidth = props.measureColumnWidth,
61679
+ expandedKeys = props.expandedKeys,
61680
+ onRow = props.onRow,
61681
+ rowExpandable = props.rowExpandable,
61682
+ emptyNode = props.emptyNode,
61683
+ childrenColumnName = props.childrenColumnName;
61684
+ var _useContext = context_useContext(context_TableContext, ['prefixCls', 'getComponent', 'onColumnResize', 'flattenColumns']),
61685
+ prefixCls = _useContext.prefixCls,
61686
+ getComponent = _useContext.getComponent,
61687
+ onColumnResize = _useContext.onColumnResize,
61688
+ flattenColumns = _useContext.flattenColumns;
61477
61689
  var flattenData = useFlattenRecords(data, childrenColumnName, expandedKeys, getRowKey); // =================== Performance ====================
61478
61690
 
61479
61691
  var perfRef = external_React_.useRef({
61480
61692
  renderWithProps: false
61481
- }); // ====================== Hover =======================
61693
+ }); // ====================== Render ======================
61482
61694
 
61483
- var _React$useState = external_React_.useState(-1),
61484
- _React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
61485
- startRow = _React$useState2[0],
61486
- setStartRow = _React$useState2[1];
61487
- var _React$useState3 = external_React_.useState(-1),
61488
- _React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
61489
- endRow = _React$useState4[0],
61490
- setEndRow = _React$useState4[1];
61491
- var onHover = external_React_.useCallback(function (start, end) {
61492
- setStartRow(start);
61493
- setEndRow(end);
61494
- }, []); // ====================== Render ======================
61495
-
61496
- var bodyNode = external_React_.useMemo(function () {
61497
- var WrapperComponent = getComponent(['body', 'wrapper'], 'tbody');
61498
- var trComponent = getComponent(['body', 'row'], 'tr');
61499
- var tdComponent = getComponent(['body', 'cell'], 'td');
61500
- var thComponent = getComponent(['body', 'cell'], 'th');
61501
- var rows;
61502
- if (data.length) {
61503
- rows = flattenData.map(function (item, idx) {
61504
- var record = item.record,
61505
- indent = item.indent,
61506
- renderIndex = item.index;
61507
- var key = getRowKey(record, idx);
61508
- return /*#__PURE__*/external_React_.createElement(Body_BodyRow, {
61509
- key: key,
61510
- rowKey: key,
61511
- record: record,
61512
- recordKey: key,
61513
- index: idx,
61514
- renderIndex: renderIndex,
61515
- rowComponent: trComponent,
61516
- cellComponent: tdComponent,
61517
- scopeCellComponent: thComponent,
61518
- expandedKeys: expandedKeys,
61519
- onRow: onRow,
61520
- getRowKey: getRowKey,
61521
- rowExpandable: rowExpandable,
61522
- childrenColumnName: childrenColumnName,
61523
- indent: indent
61524
- });
61525
- });
61526
- } else {
61527
- rows = /*#__PURE__*/external_React_.createElement(Body_ExpandedRow, {
61528
- expanded: true,
61529
- className: "".concat(prefixCls, "-placeholder"),
61530
- prefixCls: prefixCls,
61531
- component: trComponent,
61695
+ var WrapperComponent = getComponent(['body', 'wrapper'], 'tbody');
61696
+ var trComponent = getComponent(['body', 'row'], 'tr');
61697
+ var tdComponent = getComponent(['body', 'cell'], 'td');
61698
+ var thComponent = getComponent(['body', 'cell'], 'th');
61699
+ var rows;
61700
+ if (data.length) {
61701
+ rows = flattenData.map(function (item, idx) {
61702
+ var record = item.record,
61703
+ indent = item.indent,
61704
+ renderIndex = item.index;
61705
+ var key = getRowKey(record, idx);
61706
+ return /*#__PURE__*/external_React_.createElement(Body_BodyRow, {
61707
+ key: key,
61708
+ rowKey: key,
61709
+ record: record,
61710
+ index: idx,
61711
+ renderIndex: renderIndex,
61712
+ rowComponent: trComponent,
61532
61713
  cellComponent: tdComponent,
61533
- colSpan: flattenColumns.length,
61534
- isEmpty: true
61535
- }, emptyNode);
61536
- }
61537
- var columnsKey = getColumnsKey(flattenColumns);
61538
- return /*#__PURE__*/external_React_.createElement(WrapperComponent, {
61539
- className: "".concat(prefixCls, "-tbody")
61540
- }, measureColumnWidth && /*#__PURE__*/external_React_.createElement(MeasureRow, {
61714
+ scopeCellComponent: thComponent,
61715
+ expandedKeys: expandedKeys,
61716
+ onRow: onRow,
61717
+ getRowKey: getRowKey,
61718
+ rowExpandable: rowExpandable,
61719
+ childrenColumnName: childrenColumnName,
61720
+ indent: indent
61721
+ });
61722
+ });
61723
+ } else {
61724
+ rows = /*#__PURE__*/external_React_.createElement(Body_ExpandedRow, {
61725
+ expanded: true,
61726
+ className: "".concat(prefixCls, "-placeholder"),
61541
61727
  prefixCls: prefixCls,
61542
- columnsKey: columnsKey,
61543
- onColumnResize: onColumnResize
61544
- }), rows);
61545
- }, [data, prefixCls, onRow, measureColumnWidth, expandedKeys, getRowKey, getComponent, emptyNode, flattenColumns, childrenColumnName, onColumnResize, rowExpandable, flattenData]);
61728
+ component: trComponent,
61729
+ cellComponent: tdComponent,
61730
+ colSpan: flattenColumns.length,
61731
+ isEmpty: true
61732
+ }, emptyNode);
61733
+ }
61734
+ var columnsKey = getColumnsKey(flattenColumns);
61546
61735
  return /*#__PURE__*/external_React_.createElement(context_PerfContext.Provider, {
61547
61736
  value: perfRef.current
61548
- }, /*#__PURE__*/external_React_.createElement(context_HoverContext.Provider, {
61549
- value: {
61550
- startRow: startRow,
61551
- endRow: endRow,
61552
- onHover: onHover
61553
- }
61554
- }, bodyNode));
61737
+ }, /*#__PURE__*/external_React_.createElement(WrapperComponent, {
61738
+ className: "".concat(prefixCls, "-tbody")
61739
+ }, measureColumnWidth && /*#__PURE__*/external_React_.createElement(MeasureRow, {
61740
+ prefixCls: prefixCls,
61741
+ columnsKey: columnsKey,
61742
+ onColumnResize: onColumnResize
61743
+ }), rows));
61555
61744
  }
61556
- var MemoBody = /*#__PURE__*/external_React_.memo(Body_Body);
61557
- MemoBody.displayName = 'Body';
61558
- /* harmony default export */ var es_Body = (MemoBody);
61745
+ Body_Body.displayName = 'Body';
61746
+ /* harmony default export */ var es_Body = (responseImmutable(Body_Body));
61559
61747
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/utils/legacyUtil.js
61560
61748
 
61561
61749
 
@@ -61612,8 +61800,6 @@ function ColGroup(_ref) {
61612
61800
  return /*#__PURE__*/external_React_.createElement("colgroup", null, cols);
61613
61801
  }
61614
61802
  /* harmony default export */ var es_ColGroup = (ColGroup);
61615
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/constant.js
61616
- var EXPAND_COLUMN = {};
61617
61803
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/FixedHolder/index.js
61618
61804
 
61619
61805
 
@@ -61627,6 +61813,7 @@ var FixedHolder_excluded = ["className", "noData", "columns", "flattenColumns",
61627
61813
 
61628
61814
 
61629
61815
 
61816
+
61630
61817
  function useColumnWidth(colWidths, columCount) {
61631
61818
  return (0,external_React_.useMemo)(function () {
61632
61819
  var cloneColumns = [];
@@ -61641,27 +61828,28 @@ function useColumnWidth(colWidths, columCount) {
61641
61828
  return cloneColumns;
61642
61829
  }, [colWidths.join('_'), columCount]);
61643
61830
  }
61644
- var FixedHolder = /*#__PURE__*/external_React_.forwardRef(function (_ref, ref) {
61645
- var className = _ref.className,
61646
- noData = _ref.noData,
61647
- columns = _ref.columns,
61648
- flattenColumns = _ref.flattenColumns,
61649
- colWidths = _ref.colWidths,
61650
- columCount = _ref.columCount,
61651
- stickyOffsets = _ref.stickyOffsets,
61652
- direction = _ref.direction,
61653
- fixHeader = _ref.fixHeader,
61654
- stickyTopOffset = _ref.stickyTopOffset,
61655
- stickyBottomOffset = _ref.stickyBottomOffset,
61656
- stickyClassName = _ref.stickyClassName,
61657
- onScroll = _ref.onScroll,
61658
- maxContentScroll = _ref.maxContentScroll,
61659
- children = _ref.children,
61660
- props = objectWithoutProperties_objectWithoutProperties(_ref, FixedHolder_excluded);
61661
- var _useContextSelector = useContextSelector(context_TableContext, ['prefixCls', 'scrollbarSize', 'isSticky']),
61662
- prefixCls = _useContextSelector.prefixCls,
61663
- scrollbarSize = _useContextSelector.scrollbarSize,
61664
- isSticky = _useContextSelector.isSticky;
61831
+ var FixedHolder = /*#__PURE__*/external_React_.forwardRef(function (props, ref) {
61832
+ if (false) {}
61833
+ var className = props.className,
61834
+ noData = props.noData,
61835
+ columns = props.columns,
61836
+ flattenColumns = props.flattenColumns,
61837
+ colWidths = props.colWidths,
61838
+ columCount = props.columCount,
61839
+ stickyOffsets = props.stickyOffsets,
61840
+ direction = props.direction,
61841
+ fixHeader = props.fixHeader,
61842
+ stickyTopOffset = props.stickyTopOffset,
61843
+ stickyBottomOffset = props.stickyBottomOffset,
61844
+ stickyClassName = props.stickyClassName,
61845
+ onScroll = props.onScroll,
61846
+ maxContentScroll = props.maxContentScroll,
61847
+ children = props.children,
61848
+ restProps = objectWithoutProperties_objectWithoutProperties(props, FixedHolder_excluded);
61849
+ var _useContext = context_useContext(context_TableContext, ['prefixCls', 'scrollbarSize', 'isSticky']),
61850
+ prefixCls = _useContext.prefixCls,
61851
+ scrollbarSize = _useContext.scrollbarSize,
61852
+ isSticky = _useContext.isSticky;
61665
61853
  var combinationScrollBarSize = isSticky && !fixHeader ? 0 : scrollbarSize; // Pass wheel to scroll event
61666
61854
 
61667
61855
  var scrollRef = external_React_.useRef(null);
@@ -61672,9 +61860,9 @@ var FixedHolder = /*#__PURE__*/external_React_.forwardRef(function (_ref, ref) {
61672
61860
  external_React_.useEffect(function () {
61673
61861
  var _scrollRef$current;
61674
61862
  function onWheel(e) {
61675
- var _ref2 = e,
61676
- currentTarget = _ref2.currentTarget,
61677
- deltaX = _ref2.deltaX;
61863
+ var _ref = e,
61864
+ currentTarget = _ref.currentTarget,
61865
+ deltaX = _ref.deltaX;
61678
61866
  if (deltaX) {
61679
61867
  onScroll({
61680
61868
  currentTarget: currentTarget,
@@ -61745,152 +61933,17 @@ var FixedHolder = /*#__PURE__*/external_React_.forwardRef(function (_ref, ref) {
61745
61933
  colWidths: mergedColumnWidth ? [].concat(toConsumableArray_toConsumableArray(mergedColumnWidth), [combinationScrollBarSize]) : [],
61746
61934
  columCount: columCount + 1,
61747
61935
  columns: flattenColumnsWithScrollbar
61748
- }), children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
61936
+ }), children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, restProps), {}, {
61749
61937
  stickyOffsets: headerStickyOffsets,
61750
61938
  columns: columnsWithScrollbar,
61751
61939
  flattenColumns: flattenColumnsWithScrollbar
61752
61940
  }))));
61753
61941
  });
61754
61942
  FixedHolder.displayName = 'FixedHolder';
61755
- /* harmony default export */ var es_FixedHolder = (FixedHolder);
61756
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/utils/fixUtil.js
61757
- function getCellFixedInfo(colStart, colEnd, columns, stickyOffsets, direction) {
61758
- var startColumn = columns[colStart] || {};
61759
- var endColumn = columns[colEnd] || {};
61760
- var fixLeft;
61761
- var fixRight;
61762
- if (startColumn.fixed === 'left') {
61763
- fixLeft = stickyOffsets.left[colStart];
61764
- } else if (endColumn.fixed === 'right') {
61765
- fixRight = stickyOffsets.right[colEnd];
61766
- }
61767
- var lastFixLeft = false;
61768
- var firstFixRight = false;
61769
- var lastFixRight = false;
61770
- var firstFixLeft = false;
61771
- var nextColumn = columns[colEnd + 1];
61772
- var prevColumn = columns[colStart - 1];
61773
- if (direction === 'rtl') {
61774
- if (fixLeft !== undefined) {
61775
- var prevFixLeft = prevColumn && prevColumn.fixed === 'left';
61776
- firstFixLeft = !prevFixLeft;
61777
- } else if (fixRight !== undefined) {
61778
- var nextFixRight = nextColumn && nextColumn.fixed === 'right';
61779
- lastFixRight = !nextFixRight;
61780
- }
61781
- } else if (fixLeft !== undefined) {
61782
- var nextFixLeft = nextColumn && nextColumn.fixed === 'left';
61783
- lastFixLeft = !nextFixLeft;
61784
- } else if (fixRight !== undefined) {
61785
- var prevFixRight = prevColumn && prevColumn.fixed === 'right';
61786
- firstFixRight = !prevFixRight;
61787
- }
61788
- return {
61789
- fixLeft: fixLeft,
61790
- fixRight: fixRight,
61791
- lastFixLeft: lastFixLeft,
61792
- firstFixRight: firstFixRight,
61793
- lastFixRight: lastFixRight,
61794
- firstFixLeft: firstFixLeft,
61795
- isSticky: stickyOffsets.isSticky
61796
- };
61797
- }
61798
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Footer/SummaryContext.js
61799
-
61800
- var SummaryContext = /*#__PURE__*/external_React_.createContext({});
61801
- /* harmony default export */ var Footer_SummaryContext = (SummaryContext);
61802
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Footer/Cell.js
61803
-
61943
+ /** Return a table in div as fixed element which contains sticky info */
61944
+ // export default responseImmutable(FixedHolder);
61804
61945
 
61805
-
61806
-
61807
-
61808
-
61809
-
61810
- function SummaryCell(_ref) {
61811
- var className = _ref.className,
61812
- index = _ref.index,
61813
- children = _ref.children,
61814
- _ref$colSpan = _ref.colSpan,
61815
- colSpan = _ref$colSpan === void 0 ? 1 : _ref$colSpan,
61816
- rowSpan = _ref.rowSpan,
61817
- align = _ref.align;
61818
- var _useContextSelector = useContextSelector(context_TableContext, ['prefixCls', 'direction']),
61819
- prefixCls = _useContextSelector.prefixCls,
61820
- direction = _useContextSelector.direction;
61821
- var _React$useContext = external_React_.useContext(Footer_SummaryContext),
61822
- scrollColumnIndex = _React$useContext.scrollColumnIndex,
61823
- stickyOffsets = _React$useContext.stickyOffsets,
61824
- flattenColumns = _React$useContext.flattenColumns;
61825
- var lastIndex = index + colSpan - 1;
61826
- var mergedColSpan = lastIndex + 1 === scrollColumnIndex ? colSpan + 1 : colSpan;
61827
- var fixedInfo = getCellFixedInfo(index, index + mergedColSpan - 1, flattenColumns, stickyOffsets, direction);
61828
- return /*#__PURE__*/external_React_.createElement(es_Cell, extends_extends({
61829
- className: className,
61830
- index: index,
61831
- component: "td",
61832
- prefixCls: prefixCls,
61833
- record: null,
61834
- dataIndex: null,
61835
- align: align,
61836
- colSpan: mergedColSpan,
61837
- rowSpan: rowSpan,
61838
- render: function render() {
61839
- return children;
61840
- }
61841
- }, fixedInfo));
61842
- }
61843
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Footer/Row.js
61844
-
61845
- var Row_excluded = ["children"];
61846
-
61847
- function FooterRow(_ref) {
61848
- var children = _ref.children,
61849
- props = objectWithoutProperties_objectWithoutProperties(_ref, Row_excluded);
61850
- return /*#__PURE__*/external_React_.createElement("tr", props, children);
61851
- }
61852
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Footer/Summary.js
61853
-
61854
-
61855
-
61856
- /**
61857
- * Syntactic sugar. Do not support HOC.
61858
- */
61859
- function Summary(_ref) {
61860
- var children = _ref.children;
61861
- return children;
61862
- }
61863
- Summary.Row = FooterRow;
61864
- Summary.Cell = SummaryCell;
61865
- /* harmony default export */ var Footer_Summary = (Summary);
61866
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Footer/index.js
61867
-
61868
-
61869
-
61870
-
61871
-
61872
- function Footer_Footer(_ref) {
61873
- var children = _ref.children,
61874
- stickyOffsets = _ref.stickyOffsets,
61875
- flattenColumns = _ref.flattenColumns;
61876
- var prefixCls = useContextSelector(context_TableContext, 'prefixCls');
61877
- var lastColumnIndex = flattenColumns.length - 1;
61878
- var scrollColumn = flattenColumns[lastColumnIndex];
61879
- var summaryContext = external_React_.useMemo(function () {
61880
- return {
61881
- stickyOffsets: stickyOffsets,
61882
- flattenColumns: flattenColumns,
61883
- scrollColumnIndex: scrollColumn !== null && scrollColumn !== void 0 && scrollColumn.scrollbar ? lastColumnIndex : null
61884
- };
61885
- }, [scrollColumn, flattenColumns, lastColumnIndex, stickyOffsets]);
61886
- return /*#__PURE__*/external_React_.createElement(Footer_SummaryContext.Provider, {
61887
- value: summaryContext
61888
- }, /*#__PURE__*/external_React_.createElement("tfoot", {
61889
- className: "".concat(prefixCls, "-summary")
61890
- }, children));
61891
- }
61892
- /* harmony default export */ var es_Footer = (Footer_Footer);
61893
- var FooterComponents = Footer_Summary;
61946
+ /* harmony default export */ var es_FixedHolder = (/*#__PURE__*/external_React_.memo(FixedHolder));
61894
61947
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Header/HeaderRow.js
61895
61948
 
61896
61949
 
@@ -61908,9 +61961,9 @@ function HeaderRow(_ref) {
61908
61961
  tdCellComponent = _ref.tdCellComponent,
61909
61962
  onHeaderRow = _ref.onHeaderRow,
61910
61963
  index = _ref.index;
61911
- var _useContextSelector = useContextSelector(context_TableContext, ['prefixCls', 'direction']),
61912
- prefixCls = _useContextSelector.prefixCls,
61913
- direction = _useContextSelector.direction;
61964
+ var _useContext = context_useContext(context_TableContext, ['prefixCls', 'direction']),
61965
+ prefixCls = _useContext.prefixCls,
61966
+ direction = _useContext.direction;
61914
61967
  var rowProps;
61915
61968
  if (onHeaderRow) {
61916
61969
  rowProps = onHeaderRow(cells.map(function (cell) {
@@ -61922,7 +61975,7 @@ function HeaderRow(_ref) {
61922
61975
  }));
61923
61976
  return /*#__PURE__*/external_React_.createElement(RowComponent, rowProps, cells.map(function (cell, cellIndex) {
61924
61977
  var column = cell.column;
61925
- var fixedInfo = getCellFixedInfo(cell.colStart, cell.colEnd, flattenColumns, stickyOffsets, direction);
61978
+ var fixedInfo = getCellFixedInfo(cell.colStart, cell.colEnd, flattenColumns, stickyOffsets, direction, column);
61926
61979
  var additionalProps;
61927
61980
  if (column && column.onHeaderCell) {
61928
61981
  additionalProps = cell.column.onHeaderCell(column);
@@ -61947,6 +62000,7 @@ HeaderRow.displayName = 'HeaderRow';
61947
62000
 
61948
62001
 
61949
62002
 
62003
+
61950
62004
  function parseHeaderRows(rootColumns) {
61951
62005
  var rows = [];
61952
62006
  function fillRowCells(columns, colIndex) {
@@ -62001,14 +62055,15 @@ function parseHeaderRows(rootColumns) {
62001
62055
  }
62002
62056
  return rows;
62003
62057
  }
62004
- function Header_Header(_ref) {
62005
- var stickyOffsets = _ref.stickyOffsets,
62006
- columns = _ref.columns,
62007
- flattenColumns = _ref.flattenColumns,
62008
- onHeaderRow = _ref.onHeaderRow;
62009
- var _useContextSelector = useContextSelector(context_TableContext, ['prefixCls', 'getComponent']),
62010
- prefixCls = _useContextSelector.prefixCls,
62011
- getComponent = _useContextSelector.getComponent;
62058
+ function Header_Header(props) {
62059
+ if (false) {}
62060
+ var stickyOffsets = props.stickyOffsets,
62061
+ columns = props.columns,
62062
+ flattenColumns = props.flattenColumns,
62063
+ onHeaderRow = props.onHeaderRow;
62064
+ var _useContext = context_useContext(context_TableContext, ['prefixCls', 'getComponent']),
62065
+ prefixCls = _useContext.prefixCls,
62066
+ getComponent = _useContext.getComponent;
62012
62067
  var rows = external_React_.useMemo(function () {
62013
62068
  return parseHeaderRows(columns);
62014
62069
  }, [columns]);
@@ -62033,7 +62088,7 @@ function Header_Header(_ref) {
62033
62088
  return rowNode;
62034
62089
  }));
62035
62090
  }
62036
- /* harmony default export */ var es_Header_Header = (Header_Header);
62091
+ /* harmony default export */ var es_Header_Header = (responseImmutable(Header_Header));
62037
62092
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/hooks/useColumns.js
62038
62093
 
62039
62094
 
@@ -62233,6 +62288,139 @@ function useColumns(_ref2, transformColumns) {
62233
62288
  return [mergedColumns, flattenColumns];
62234
62289
  }
62235
62290
  /* harmony default export */ var hooks_useColumns = (useColumns);
62291
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/utils/expandUtil.js
62292
+
62293
+
62294
+
62295
+ function renderExpandIcon(_ref) {
62296
+ var _classNames;
62297
+ var prefixCls = _ref.prefixCls,
62298
+ record = _ref.record,
62299
+ onExpand = _ref.onExpand,
62300
+ expanded = _ref.expanded,
62301
+ expandable = _ref.expandable;
62302
+ var expandClassName = "".concat(prefixCls, "-row-expand-icon");
62303
+ if (!expandable) {
62304
+ return /*#__PURE__*/external_React_.createElement("span", {
62305
+ className: classnames_default()(expandClassName, "".concat(prefixCls, "-row-spaced"))
62306
+ });
62307
+ }
62308
+ var onClick = function onClick(event) {
62309
+ onExpand(record, event);
62310
+ event.stopPropagation();
62311
+ };
62312
+ return /*#__PURE__*/external_React_.createElement("span", {
62313
+ className: classnames_default()(expandClassName, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-row-expanded"), expanded), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-row-collapsed"), !expanded), _classNames)),
62314
+ onClick: onClick
62315
+ });
62316
+ }
62317
+ function findAllChildrenKeys(data, getRowKey, childrenColumnName) {
62318
+ var keys = [];
62319
+ function dig(list) {
62320
+ (list || []).forEach(function (item, index) {
62321
+ keys.push(getRowKey(item, index));
62322
+ dig(item[childrenColumnName]);
62323
+ });
62324
+ }
62325
+ dig(data);
62326
+ return keys;
62327
+ }
62328
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/hooks/useExpand.js
62329
+
62330
+
62331
+
62332
+
62333
+
62334
+
62335
+
62336
+
62337
+ function useExpand(props, mergedData, getRowKey) {
62338
+ var expandableConfig = getExpandableProps(props);
62339
+ var expandIcon = expandableConfig.expandIcon,
62340
+ expandedRowKeys = expandableConfig.expandedRowKeys,
62341
+ defaultExpandedRowKeys = expandableConfig.defaultExpandedRowKeys,
62342
+ defaultExpandAllRows = expandableConfig.defaultExpandAllRows,
62343
+ expandedRowRender = expandableConfig.expandedRowRender,
62344
+ onExpand = expandableConfig.onExpand,
62345
+ onExpandedRowsChange = expandableConfig.onExpandedRowsChange,
62346
+ childrenColumnName = expandableConfig.childrenColumnName;
62347
+ var mergedExpandIcon = expandIcon || renderExpandIcon;
62348
+ var mergedChildrenColumnName = childrenColumnName || 'children';
62349
+ var expandableType = external_React_.useMemo(function () {
62350
+ if (expandedRowRender) {
62351
+ return 'row';
62352
+ }
62353
+ /* eslint-disable no-underscore-dangle */
62354
+
62355
+ /**
62356
+ * Fix https://github.com/ant-design/ant-design/issues/21154
62357
+ * This is a workaround to not to break current behavior.
62358
+ * We can remove follow code after final release.
62359
+ *
62360
+ * To other developer:
62361
+ * Do not use `__PARENT_RENDER_ICON__` in prod since we will remove this when refactor
62362
+ */
62363
+
62364
+ if (props.expandable && props.internalHooks === INTERNAL_HOOKS && props.expandable.__PARENT_RENDER_ICON__ || mergedData.some(function (record) {
62365
+ return record && typeof_typeof(record) === 'object' && record[mergedChildrenColumnName];
62366
+ })) {
62367
+ return 'nest';
62368
+ }
62369
+ /* eslint-enable */
62370
+
62371
+ return false;
62372
+ }, [!!expandedRowRender, mergedData]);
62373
+ var _React$useState = external_React_.useState(function () {
62374
+ if (defaultExpandedRowKeys) {
62375
+ return defaultExpandedRowKeys;
62376
+ }
62377
+ if (defaultExpandAllRows) {
62378
+ return findAllChildrenKeys(mergedData, getRowKey, mergedChildrenColumnName);
62379
+ }
62380
+ return [];
62381
+ }),
62382
+ _React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
62383
+ innerExpandedKeys = _React$useState2[0],
62384
+ setInnerExpandedKeys = _React$useState2[1];
62385
+ var mergedExpandedKeys = external_React_.useMemo(function () {
62386
+ return new Set(expandedRowKeys || innerExpandedKeys || []);
62387
+ }, [expandedRowKeys, innerExpandedKeys]);
62388
+ var onTriggerExpand = external_React_.useCallback(function (record) {
62389
+ var key = getRowKey(record, mergedData.indexOf(record));
62390
+ var newExpandedKeys;
62391
+ var hasKey = mergedExpandedKeys.has(key);
62392
+ if (hasKey) {
62393
+ mergedExpandedKeys.delete(key);
62394
+ newExpandedKeys = toConsumableArray_toConsumableArray(mergedExpandedKeys);
62395
+ } else {
62396
+ newExpandedKeys = [].concat(toConsumableArray_toConsumableArray(mergedExpandedKeys), [key]);
62397
+ }
62398
+ setInnerExpandedKeys(newExpandedKeys);
62399
+ if (onExpand) {
62400
+ onExpand(!hasKey, record);
62401
+ }
62402
+ if (onExpandedRowsChange) {
62403
+ onExpandedRowsChange(newExpandedKeys);
62404
+ }
62405
+ }, [getRowKey, mergedExpandedKeys, mergedData, onExpand, onExpandedRowsChange]); // Warning if use `expandedRowRender` and nest children in the same time
62406
+
62407
+ if (false) {}
62408
+ return [expandableConfig, expandableType, mergedExpandedKeys, mergedExpandIcon, mergedChildrenColumnName, onTriggerExpand];
62409
+ }
62410
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/hooks/useFixedInfo.js
62411
+
62412
+
62413
+
62414
+ function useFixedInfo(flattenColumns, stickyOffsets, direction, columns) {
62415
+ var fixedInfoList = flattenColumns.map(function (_, colIndex) {
62416
+ return getCellFixedInfo(colIndex, colIndex, flattenColumns, stickyOffsets, direction, columns === null || columns === void 0 ? void 0 : columns[colIndex]);
62417
+ });
62418
+ return useMemo_useMemo(function () {
62419
+ return fixedInfoList;
62420
+ }, [fixedInfoList], function (prev, next) {
62421
+ return !es_isEqual(prev, next);
62422
+ });
62423
+ }
62236
62424
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/hooks/useFrame.js
62237
62425
 
62238
62426
 
@@ -62297,6 +62485,24 @@ function useTimeoutLock(defaultState) {
62297
62485
  }, []);
62298
62486
  return [setState, getState];
62299
62487
  }
62488
+ ;// CONCATENATED MODULE: ./node_modules/rc-table/es/hooks/useHover.js
62489
+
62490
+
62491
+ function useHover() {
62492
+ var _React$useState = external_React_.useState(-1),
62493
+ _React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
62494
+ startRow = _React$useState2[0],
62495
+ setStartRow = _React$useState2[1];
62496
+ var _React$useState3 = external_React_.useState(-1),
62497
+ _React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
62498
+ endRow = _React$useState4[0],
62499
+ setEndRow = _React$useState4[1];
62500
+ var onHover = external_React_.useCallback(function (start, end) {
62501
+ setStartRow(start);
62502
+ setEndRow(end);
62503
+ }, []);
62504
+ return [startRow, endRow, onHover];
62505
+ }
62300
62506
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/hooks/useSticky.js
62301
62507
 
62302
62508
 
@@ -62512,7 +62718,7 @@ var StickyScrollBar = function StickyScrollBar(_ref, ref) {
62512
62718
  onScroll = _ref.onScroll,
62513
62719
  offsetScroll = _ref.offsetScroll,
62514
62720
  container = _ref.container;
62515
- var prefixCls = useContextSelector(context_TableContext, 'prefixCls');
62721
+ var prefixCls = context_useContext(context_TableContext, 'prefixCls');
62516
62722
  var bodyScrollWidth = ((_scrollBodyRef$curren = scrollBodyRef.current) === null || _scrollBodyRef$curren === void 0 ? void 0 : _scrollBodyRef$curren.scrollWidth) || 0;
62517
62723
  var bodyWidth = ((_scrollBodyRef$curren2 = scrollBodyRef.current) === null || _scrollBodyRef$curren2 === void 0 ? void 0 : _scrollBodyRef$curren2.clientWidth) || 0;
62518
62724
  var scrollBarWidth = bodyScrollWidth && bodyWidth * (bodyWidth / bodyScrollWidth);
@@ -62675,51 +62881,12 @@ function ColumnGroup(_) {
62675
62881
  return null;
62676
62882
  }
62677
62883
  /* harmony default export */ var sugar_ColumnGroup = (ColumnGroup);
62678
- ;// CONCATENATED MODULE: ./node_modules/rc-table/es/utils/expandUtil.js
62679
-
62680
-
62681
-
62682
- function renderExpandIcon(_ref) {
62683
- var _classNames;
62684
- var prefixCls = _ref.prefixCls,
62685
- record = _ref.record,
62686
- onExpand = _ref.onExpand,
62687
- expanded = _ref.expanded,
62688
- expandable = _ref.expandable;
62689
- var expandClassName = "".concat(prefixCls, "-row-expand-icon");
62690
- if (!expandable) {
62691
- return /*#__PURE__*/external_React_.createElement("span", {
62692
- className: classnames_default()(expandClassName, "".concat(prefixCls, "-row-spaced"))
62693
- });
62694
- }
62695
- var onClick = function onClick(event) {
62696
- onExpand(record, event);
62697
- event.stopPropagation();
62698
- };
62699
- return /*#__PURE__*/external_React_.createElement("span", {
62700
- className: classnames_default()(expandClassName, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-row-expanded"), expanded), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-row-collapsed"), !expanded), _classNames)),
62701
- onClick: onClick
62702
- });
62703
- }
62704
- function findAllChildrenKeys(data, getRowKey, childrenColumnName) {
62705
- var keys = [];
62706
- function dig(list) {
62707
- (list || []).forEach(function (item, index) {
62708
- keys.push(getRowKey(item, index));
62709
- dig(item[childrenColumnName]);
62710
- });
62711
- }
62712
- dig(data);
62713
- return keys;
62714
- }
62715
62884
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/Table.js
62716
62885
 
62717
62886
 
62718
62887
 
62719
62888
 
62720
62889
 
62721
-
62722
-
62723
62890
  /**
62724
62891
  * Feature:
62725
62892
  * - fixed not need to set width
@@ -62772,8 +62939,6 @@ function findAllChildrenKeys(data, getRowKey, childrenColumnName) {
62772
62939
 
62773
62940
 
62774
62941
 
62775
-
62776
-
62777
62942
 
62778
62943
 
62779
62944
 
@@ -62783,25 +62948,15 @@ var EMPTY_DATA = []; // Used for customize scroll
62783
62948
 
62784
62949
  var EMPTY_SCROLL_TARGET = {};
62785
62950
  var INTERNAL_HOOKS = 'rc-table-internal-hook';
62786
- var MemoTableContent = /*#__PURE__*/external_React_.memo(function (_ref) {
62787
- var children = _ref.children;
62788
- return children;
62789
- }, function (prev, next) {
62790
- if (!shallowequal_default()(prev.props, next.props)) {
62791
- return false;
62792
- } // No additional render when pinged status change.
62793
- // This is not a bug.
62794
-
62795
- return prev.pingLeft !== next.pingLeft || prev.pingRight !== next.pingRight;
62796
- });
62951
+ function defaultEmpty() {
62952
+ return 'No Data';
62953
+ }
62797
62954
  function Table_Table(tableProps) {
62798
62955
  var _classNames;
62799
62956
  var props = objectSpread2_objectSpread2({
62800
62957
  rowKey: 'key',
62801
62958
  prefixCls: 'rc-table',
62802
- emptyText: function emptyText() {
62803
- return 'No Data';
62804
- }
62959
+ emptyText: defaultEmpty
62805
62960
  }, tableProps);
62806
62961
  var prefixCls = props.prefixCls,
62807
62962
  className = props.className,
@@ -62832,7 +62987,7 @@ function Table_Table(tableProps) {
62832
62987
  if (false) {} // ==================== Customize =====================
62833
62988
 
62834
62989
  var getComponent = external_React_.useCallback(function (path, defaultComponent) {
62835
- return getPathValue(components || {}, path) || defaultComponent;
62990
+ return get_get(components, path) || defaultComponent;
62836
62991
  }, [components]);
62837
62992
  var getRowKey = external_React_.useMemo(function () {
62838
62993
  if (typeof rowKey === 'function') {
@@ -62843,98 +62998,36 @@ function Table_Table(tableProps) {
62843
62998
  if (false) {}
62844
62999
  return key;
62845
63000
  };
62846
- }, [rowKey]); // ====================== Expand ======================
62847
-
62848
- var expandableConfig = getExpandableProps(props);
62849
- var expandIcon = expandableConfig.expandIcon,
62850
- expandedRowKeys = expandableConfig.expandedRowKeys,
62851
- defaultExpandedRowKeys = expandableConfig.defaultExpandedRowKeys,
62852
- defaultExpandAllRows = expandableConfig.defaultExpandAllRows,
62853
- expandedRowRender = expandableConfig.expandedRowRender,
62854
- columnTitle = expandableConfig.columnTitle,
62855
- onExpand = expandableConfig.onExpand,
62856
- onExpandedRowsChange = expandableConfig.onExpandedRowsChange,
62857
- expandRowByClick = expandableConfig.expandRowByClick,
62858
- rowExpandable = expandableConfig.rowExpandable,
62859
- expandIconColumnIndex = expandableConfig.expandIconColumnIndex,
62860
- expandedRowClassName = expandableConfig.expandedRowClassName,
62861
- childrenColumnName = expandableConfig.childrenColumnName,
62862
- indentSize = expandableConfig.indentSize;
62863
- var mergedExpandIcon = expandIcon || renderExpandIcon;
62864
- var mergedChildrenColumnName = childrenColumnName || 'children';
62865
- var expandableType = external_React_.useMemo(function () {
62866
- if (expandedRowRender) {
62867
- return 'row';
62868
- }
62869
- /* eslint-disable no-underscore-dangle */
62870
-
62871
- /**
62872
- * Fix https://github.com/ant-design/ant-design/issues/21154
62873
- * This is a workaround to not to break current behavior.
62874
- * We can remove follow code after final release.
62875
- *
62876
- * To other developer:
62877
- * Do not use `__PARENT_RENDER_ICON__` in prod since we will remove this when refactor
62878
- */
62879
-
62880
- if (props.expandable && internalHooks === INTERNAL_HOOKS && props.expandable.__PARENT_RENDER_ICON__ || mergedData.some(function (record) {
62881
- return record && typeof_typeof(record) === 'object' && record[mergedChildrenColumnName];
62882
- })) {
62883
- return 'nest';
62884
- }
62885
- /* eslint-enable */
62886
-
62887
- return false;
62888
- }, [!!expandedRowRender, mergedData]);
62889
- var _React$useState = external_React_.useState(function () {
62890
- if (defaultExpandedRowKeys) {
62891
- return defaultExpandedRowKeys;
62892
- }
62893
- if (defaultExpandAllRows) {
62894
- return findAllChildrenKeys(mergedData, getRowKey, mergedChildrenColumnName);
62895
- }
62896
- return [];
62897
- }),
63001
+ }, [rowKey]); // ====================== Hover =======================
63002
+
63003
+ var _useHover = useHover(),
63004
+ _useHover2 = slicedToArray_slicedToArray(_useHover, 3),
63005
+ startRow = _useHover2[0],
63006
+ endRow = _useHover2[1],
63007
+ onHover = _useHover2[2]; // ====================== Expand ======================
63008
+
63009
+ var _useExpand = useExpand(props, mergedData, getRowKey),
63010
+ _useExpand2 = slicedToArray_slicedToArray(_useExpand, 6),
63011
+ expandableConfig = _useExpand2[0],
63012
+ expandableType = _useExpand2[1],
63013
+ mergedExpandedKeys = _useExpand2[2],
63014
+ mergedExpandIcon = _useExpand2[3],
63015
+ mergedChildrenColumnName = _useExpand2[4],
63016
+ onTriggerExpand = _useExpand2[5]; // ====================== Column ======================
63017
+
63018
+ var _React$useState = external_React_.useState(0),
62898
63019
  _React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
62899
- innerExpandedKeys = _React$useState2[0],
62900
- setInnerExpandedKeys = _React$useState2[1];
62901
- var mergedExpandedKeys = external_React_.useMemo(function () {
62902
- return new Set(expandedRowKeys || innerExpandedKeys || []);
62903
- }, [expandedRowKeys, innerExpandedKeys]);
62904
- var onTriggerExpand = external_React_.useCallback(function (record) {
62905
- var key = getRowKey(record, mergedData.indexOf(record));
62906
- var newExpandedKeys;
62907
- var hasKey = mergedExpandedKeys.has(key);
62908
- if (hasKey) {
62909
- mergedExpandedKeys.delete(key);
62910
- newExpandedKeys = toConsumableArray_toConsumableArray(mergedExpandedKeys);
62911
- } else {
62912
- newExpandedKeys = [].concat(toConsumableArray_toConsumableArray(mergedExpandedKeys), [key]);
62913
- }
62914
- setInnerExpandedKeys(newExpandedKeys);
62915
- if (onExpand) {
62916
- onExpand(!hasKey, record);
62917
- }
62918
- if (onExpandedRowsChange) {
62919
- onExpandedRowsChange(newExpandedKeys);
62920
- }
62921
- }, [getRowKey, mergedExpandedKeys, mergedData, onExpand, onExpandedRowsChange]); // Warning if use `expandedRowRender` and nest children in the same time
62922
-
62923
- if (false) {} // ====================== Column ======================
62924
-
62925
- var _React$useState3 = external_React_.useState(0),
62926
- _React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
62927
- componentWidth = _React$useState4[0],
62928
- setComponentWidth = _React$useState4[1];
63020
+ componentWidth = _React$useState2[0],
63021
+ setComponentWidth = _React$useState2[1];
62929
63022
  var _useColumns = hooks_useColumns(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), expandableConfig), {}, {
62930
- expandable: !!expandedRowRender,
62931
- columnTitle: columnTitle,
63023
+ expandable: !!expandableConfig.expandedRowRender,
63024
+ columnTitle: expandableConfig.columnTitle,
62932
63025
  expandedKeys: mergedExpandedKeys,
62933
63026
  getRowKey: getRowKey,
62934
63027
  // https://github.com/ant-design/ant-design/issues/23894
62935
63028
  onTriggerExpand: onTriggerExpand,
62936
63029
  expandIcon: mergedExpandIcon,
62937
- expandIconColumnIndex: expandIconColumnIndex,
63030
+ expandIconColumnIndex: expandableConfig.expandIconColumnIndex,
62938
63031
  direction: direction
62939
63032
  }), internalHooks === INTERNAL_HOOKS ? transformColumns : null),
62940
63033
  _useColumns2 = slicedToArray_slicedToArray(_useColumns, 2),
@@ -62952,14 +63045,14 @@ function Table_Table(tableProps) {
62952
63045
  var scrollBodyRef = external_React_.useRef();
62953
63046
  var scrollBodyContainerRef = external_React_.useRef();
62954
63047
  var scrollSummaryRef = external_React_.useRef();
63048
+ var _React$useState3 = external_React_.useState(false),
63049
+ _React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
63050
+ pingedLeft = _React$useState4[0],
63051
+ setPingedLeft = _React$useState4[1];
62955
63052
  var _React$useState5 = external_React_.useState(false),
62956
63053
  _React$useState6 = slicedToArray_slicedToArray(_React$useState5, 2),
62957
- pingedLeft = _React$useState6[0],
62958
- setPingedLeft = _React$useState6[1];
62959
- var _React$useState7 = external_React_.useState(false),
62960
- _React$useState8 = slicedToArray_slicedToArray(_React$useState7, 2),
62961
- pingedRight = _React$useState8[0],
62962
- setPingedRight = _React$useState8[1];
63054
+ pingedRight = _React$useState6[0],
63055
+ setPingedRight = _React$useState6[1];
62963
63056
  var _useLayoutState = useLayoutState(new Map()),
62964
63057
  _useLayoutState2 = slicedToArray_slicedToArray(_useLayoutState, 2),
62965
63058
  colsWidths = _useLayoutState2[0],
@@ -62975,8 +63068,8 @@ function Table_Table(tableProps) {
62975
63068
  var stickyOffsets = hooks_useStickyOffsets(colWidths, flattenColumns.length, direction);
62976
63069
  var fixHeader = scroll && validateValue(scroll.y);
62977
63070
  var horizonScroll = scroll && validateValue(scroll.x) || Boolean(expandableConfig.fixed);
62978
- var fixColumn = horizonScroll && flattenColumns.some(function (_ref2) {
62979
- var fixed = _ref2.fixed;
63071
+ var fixColumn = horizonScroll && flattenColumns.some(function (_ref) {
63072
+ var fixed = _ref.fixed;
62980
63073
  return fixed;
62981
63074
  }); // Sticky
62982
63075
 
@@ -62989,7 +63082,9 @@ function Table_Table(tableProps) {
62989
63082
  stickyClassName = _useSticky.stickyClassName,
62990
63083
  container = _useSticky.container; // Footer (Fix footer must fixed header)
62991
63084
 
62992
- var summaryNode = summary === null || summary === void 0 ? void 0 : summary(mergedData);
63085
+ var summaryNode = external_React_.useMemo(function () {
63086
+ return summary === null || summary === void 0 ? void 0 : summary(mergedData);
63087
+ }, [summary, mergedData]);
62993
63088
  var fixFooter = (fixHeader || isSticky) && /*#__PURE__*/external_React_.isValidElement(summaryNode) && summaryNode.type === Footer_Summary && summaryNode.props.fixed; // Scroll
62994
63089
 
62995
63090
  var scrollXStyle;
@@ -63051,9 +63146,9 @@ function Table_Table(tableProps) {
63051
63146
  }
63052
63147
  }
63053
63148
  }
63054
- var onScroll = function onScroll(_ref3) {
63055
- var currentTarget = _ref3.currentTarget,
63056
- scrollLeft = _ref3.scrollLeft;
63149
+ var onScroll = useEvent(function (_ref2) {
63150
+ var currentTarget = _ref2.currentTarget,
63151
+ scrollLeft = _ref2.scrollLeft;
63057
63152
  var isRTL = direction === 'rtl';
63058
63153
  var mergedScrollLeft = typeof scrollLeft === 'number' ? scrollLeft : currentTarget.scrollLeft;
63059
63154
  var compareTarget = currentTarget || EMPTY_SCROLL_TARGET;
@@ -63082,7 +63177,7 @@ function Table_Table(tableProps) {
63082
63177
  setPingedRight(mergedScrollLeft < scrollWidth - clientWidth);
63083
63178
  }
63084
63179
  }
63085
- };
63180
+ });
63086
63181
  var triggerOnScroll = function triggerOnScroll() {
63087
63182
  if (horizonScroll && scrollBodyRef.current) {
63088
63183
  onScroll({
@@ -63093,8 +63188,8 @@ function Table_Table(tableProps) {
63093
63188
  setPingedRight(false);
63094
63189
  }
63095
63190
  };
63096
- var onFullTableResize = function onFullTableResize(_ref4) {
63097
- var width = _ref4.width;
63191
+ var onFullTableResize = function onFullTableResize(_ref3) {
63192
+ var width = _ref3.width;
63098
63193
  if (width !== componentWidth) {
63099
63194
  triggerOnScroll();
63100
63195
  setComponentWidth(fullTableRef.current ? fullTableRef.current.offsetWidth : width);
@@ -63113,14 +63208,14 @@ function Table_Table(tableProps) {
63113
63208
  mounted.current = true;
63114
63209
  }, []); // ===================== Effects ======================
63115
63210
 
63116
- var _React$useState9 = external_React_.useState(0),
63211
+ var _React$useState7 = external_React_.useState(0),
63212
+ _React$useState8 = slicedToArray_slicedToArray(_React$useState7, 2),
63213
+ scrollbarSize = _React$useState8[0],
63214
+ setScrollbarSize = _React$useState8[1];
63215
+ var _React$useState9 = external_React_.useState(true),
63117
63216
  _React$useState10 = slicedToArray_slicedToArray(_React$useState9, 2),
63118
- scrollbarSize = _React$useState10[0],
63119
- setScrollbarSize = _React$useState10[1];
63120
- var _React$useState11 = external_React_.useState(true),
63121
- _React$useState12 = slicedToArray_slicedToArray(_React$useState11, 2),
63122
- supportSticky = _React$useState12[0],
63123
- setSupportSticky = _React$useState12[1]; // Only IE not support, we mark as support first
63217
+ supportSticky = _React$useState10[0],
63218
+ setSupportSticky = _React$useState10[1]; // Only IE not support, we mark as support first
63124
63219
 
63125
63220
  external_React_.useEffect(function () {
63126
63221
  if (scrollBodyRef.current instanceof Element) {
@@ -63135,7 +63230,17 @@ function Table_Table(tableProps) {
63135
63230
  if (internalHooks === INTERNAL_HOOKS && internalRefs) {
63136
63231
  internalRefs.body.current = scrollBodyRef.current;
63137
63232
  }
63138
- }); // ====================== Render ======================
63233
+ }); // ========================================================================
63234
+ // == Render ==
63235
+ // ========================================================================
63236
+ // =================== Render: Func ===================
63237
+
63238
+ var renderFixedHeaderTable = external_React_.useCallback(function (fixedHolderPassProps) {
63239
+ return /*#__PURE__*/external_React_.createElement(external_React_.Fragment, null, /*#__PURE__*/external_React_.createElement(es_Header_Header, fixedHolderPassProps), fixFooter === 'top' && /*#__PURE__*/external_React_.createElement(es_Footer, fixedHolderPassProps, summaryNode));
63240
+ }, [fixFooter, summaryNode]);
63241
+ var renderFixedFooterTable = external_React_.useCallback(function (fixedHolderPassProps) {
63242
+ return /*#__PURE__*/external_React_.createElement(es_Footer, fixedHolderPassProps, summaryNode);
63243
+ }, [summaryNode]); // =================== Render: Node ===================
63139
63244
 
63140
63245
  var TableComponent = getComponent(['table'], 'table'); // Table layout
63141
63246
 
@@ -63149,8 +63254,8 @@ function Table_Table(tableProps) {
63149
63254
  if (fixColumn) {
63150
63255
  return (scroll === null || scroll === void 0 ? void 0 : scroll.x) === 'max-content' ? 'auto' : 'fixed';
63151
63256
  }
63152
- if (fixHeader || isSticky || flattenColumns.some(function (_ref5) {
63153
- var ellipsis = _ref5.ellipsis;
63257
+ if (fixHeader || isSticky || flattenColumns.some(function (_ref4) {
63258
+ var ellipsis = _ref4.ellipsis;
63154
63259
  return ellipsis;
63155
63260
  })) {
63156
63261
  return 'fixed';
@@ -63182,15 +63287,15 @@ function Table_Table(tableProps) {
63182
63287
  data: mergedData,
63183
63288
  measureColumnWidth: fixHeader || horizonScroll || isSticky,
63184
63289
  expandedKeys: mergedExpandedKeys,
63185
- rowExpandable: rowExpandable,
63290
+ rowExpandable: expandableConfig.rowExpandable,
63186
63291
  getRowKey: getRowKey,
63187
63292
  onRow: onRow,
63188
63293
  emptyNode: emptyNode,
63189
63294
  childrenColumnName: mergedChildrenColumnName
63190
63295
  });
63191
63296
  var bodyColGroup = /*#__PURE__*/external_React_.createElement(es_ColGroup, {
63192
- colWidths: flattenColumns.map(function (_ref6) {
63193
- var width = _ref6.width;
63297
+ colWidths: flattenColumns.map(function (_ref5) {
63298
+ var width = _ref5.width;
63194
63299
  return width;
63195
63300
  }),
63196
63301
  columns: flattenColumns
@@ -63215,8 +63320,8 @@ function Table_Table(tableProps) {
63215
63320
  ref: scrollBodyRef,
63216
63321
  onScroll: onScroll
63217
63322
  });
63218
- headerProps.colWidths = flattenColumns.map(function (_ref7, index) {
63219
- var width = _ref7.width;
63323
+ headerProps.colWidths = flattenColumns.map(function (_ref6, index) {
63324
+ var width = _ref6.width;
63220
63325
  var colWidth = index === columns.length - 1 ? width - scrollbarSize : width;
63221
63326
  if (typeof colWidth === 'number' && !Number.isNaN(colWidth)) {
63222
63327
  return colWidth;
@@ -63236,7 +63341,8 @@ function Table_Table(tableProps) {
63236
63341
  })
63237
63342
  }, ariaProps), captionElement, bodyColGroup, bodyTable, !fixFooter && summaryNode && /*#__PURE__*/external_React_.createElement(es_Footer, {
63238
63343
  stickyOffsets: stickyOffsets,
63239
- flattenColumns: flattenColumns
63344
+ flattenColumns: flattenColumns,
63345
+ columns: columns
63240
63346
  }, summaryNode)));
63241
63347
  } // Fixed holder share the props
63242
63348
 
@@ -63252,15 +63358,11 @@ function Table_Table(tableProps) {
63252
63358
  stickyTopOffset: offsetHeader,
63253
63359
  className: "".concat(prefixCls, "-header"),
63254
63360
  ref: scrollHeaderRef
63255
- }), function (fixedHolderPassProps) {
63256
- return /*#__PURE__*/external_React_.createElement(external_React_.Fragment, null, /*#__PURE__*/external_React_.createElement(es_Header_Header, fixedHolderPassProps), fixFooter === 'top' && /*#__PURE__*/external_React_.createElement(es_Footer, fixedHolderPassProps, summaryNode));
63257
- }), bodyContent, fixFooter && fixFooter !== 'top' && /*#__PURE__*/external_React_.createElement(es_FixedHolder, extends_extends({}, fixedHolderProps, {
63361
+ }), renderFixedHeaderTable), bodyContent, fixFooter && fixFooter !== 'top' && /*#__PURE__*/external_React_.createElement(es_FixedHolder, extends_extends({}, fixedHolderProps, {
63258
63362
  stickyBottomOffset: offsetSummary,
63259
63363
  className: "".concat(prefixCls, "-summary"),
63260
63364
  ref: scrollSummaryRef
63261
- }), function (fixedHolderPassProps) {
63262
- return /*#__PURE__*/external_React_.createElement(es_Footer, fixedHolderPassProps, summaryNode);
63263
- }), isSticky && /*#__PURE__*/external_React_.createElement(stickyScrollBar, {
63365
+ }), renderFixedFooterTable), isSticky && /*#__PURE__*/external_React_.createElement(stickyScrollBar, {
63264
63366
  ref: stickyRef,
63265
63367
  offsetScroll: offsetScroll,
63266
63368
  scrollBodyRef: scrollBodyRef,
@@ -63280,7 +63382,8 @@ function Table_Table(tableProps) {
63280
63382
  })
63281
63383
  }, ariaProps), captionElement, bodyColGroup, showHeader !== false && /*#__PURE__*/external_React_.createElement(es_Header_Header, extends_extends({}, headerProps, columnContext)), bodyTable, summaryNode && /*#__PURE__*/external_React_.createElement(es_Footer, {
63282
63384
  stickyOffsets: stickyOffsets,
63283
- flattenColumns: flattenColumns
63385
+ flattenColumns: flattenColumns,
63386
+ columns: columns
63284
63387
  }, summaryNode)));
63285
63388
  }
63286
63389
  var fullTable = /*#__PURE__*/external_React_.createElement("div", extends_extends({
@@ -63288,85 +63391,79 @@ function Table_Table(tableProps) {
63288
63391
  style: style,
63289
63392
  id: id,
63290
63393
  ref: fullTableRef
63291
- }, dataProps), /*#__PURE__*/external_React_.createElement(MemoTableContent, {
63292
- pingLeft: pingedLeft,
63293
- pingRight: pingedRight,
63294
- props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
63295
- stickyOffsets: stickyOffsets,
63296
- mergedExpandedKeys: mergedExpandedKeys
63297
- })
63298
- }, title && /*#__PURE__*/external_React_.createElement(es_Panel, {
63394
+ }, dataProps), title && /*#__PURE__*/external_React_.createElement(es_Panel, {
63299
63395
  className: "".concat(prefixCls, "-title")
63300
63396
  }, title(mergedData)), /*#__PURE__*/external_React_.createElement("div", {
63301
63397
  ref: scrollBodyContainerRef,
63302
63398
  className: "".concat(prefixCls, "-container")
63303
63399
  }, groupTableNode), footer && /*#__PURE__*/external_React_.createElement(es_Panel, {
63304
63400
  className: "".concat(prefixCls, "-footer")
63305
- }, footer(mergedData))));
63401
+ }, footer(mergedData)));
63306
63402
  if (horizonScroll) {
63307
63403
  fullTable = /*#__PURE__*/external_React_.createElement(rc_resize_observer_es, {
63308
63404
  onResize: onFullTableResize
63309
63405
  }, fullTable);
63310
63406
  }
63407
+ var fixedInfoList = useFixedInfo(flattenColumns, stickyOffsets, direction, columns);
63311
63408
  var TableContextValue = external_React_.useMemo(function () {
63312
63409
  return {
63410
+ // Table
63313
63411
  prefixCls: prefixCls,
63314
63412
  getComponent: getComponent,
63315
63413
  scrollbarSize: scrollbarSize,
63316
63414
  direction: direction,
63317
- fixedInfoList: flattenColumns.map(function (_, colIndex) {
63318
- return getCellFixedInfo(colIndex, colIndex, flattenColumns, stickyOffsets, direction);
63319
- }),
63320
- isSticky: isSticky
63321
- };
63322
- }, [prefixCls, getComponent, scrollbarSize, direction, flattenColumns, stickyOffsets, isSticky]);
63323
- var BodyContextValue = external_React_.useMemo(function () {
63324
- return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, columnContext), {}, {
63415
+ fixedInfoList: fixedInfoList,
63416
+ isSticky: isSticky,
63417
+ supportSticky: supportSticky,
63418
+ componentWidth: componentWidth,
63419
+ fixHeader: fixHeader,
63420
+ fixColumn: fixColumn,
63421
+ horizonScroll: horizonScroll,
63422
+ // Body
63325
63423
  tableLayout: mergedTableLayout,
63326
63424
  rowClassName: rowClassName,
63327
- expandedRowClassName: expandedRowClassName,
63425
+ expandedRowClassName: expandableConfig.expandedRowClassName,
63328
63426
  expandIcon: mergedExpandIcon,
63329
63427
  expandableType: expandableType,
63330
- expandRowByClick: expandRowByClick,
63331
- expandedRowRender: expandedRowRender,
63428
+ expandRowByClick: expandableConfig.expandRowByClick,
63429
+ expandedRowRender: expandableConfig.expandedRowRender,
63332
63430
  onTriggerExpand: onTriggerExpand,
63333
- expandIconColumnIndex: expandIconColumnIndex,
63334
- indentSize: indentSize,
63335
- allColumnsFixedLeft: columnContext.flattenColumns.every(function (col) {
63431
+ expandIconColumnIndex: expandableConfig.expandIconColumnIndex,
63432
+ indentSize: expandableConfig.indentSize,
63433
+ allColumnsFixedLeft: flattenColumns.every(function (col) {
63336
63434
  return col.fixed === 'left';
63337
- })
63338
- });
63339
- }, [columnContext, mergedTableLayout, rowClassName, expandedRowClassName, mergedExpandIcon, expandableType, expandRowByClick, expandedRowRender, onTriggerExpand, expandIconColumnIndex, indentSize]);
63340
- var ExpandedRowContextValue = external_React_.useMemo(function () {
63341
- return {
63342
- componentWidth: componentWidth,
63343
- fixHeader: fixHeader,
63344
- fixColumn: fixColumn,
63345
- horizonScroll: horizonScroll
63346
- };
63347
- }, [componentWidth, fixHeader, fixColumn, horizonScroll]);
63348
- var ResizeContextValue = external_React_.useMemo(function () {
63349
- return {
63350
- onColumnResize: onColumnResize
63435
+ }),
63436
+ // Column
63437
+ columns: columns,
63438
+ flattenColumns: flattenColumns,
63439
+ onColumnResize: onColumnResize,
63440
+ // Row
63441
+ hoverStartRow: startRow,
63442
+ hoverEndRow: endRow,
63443
+ onHover: onHover
63351
63444
  };
63352
- }, [onColumnResize]);
63353
- return /*#__PURE__*/external_React_.createElement(context_StickyContext.Provider, {
63354
- value: supportSticky
63355
- }, /*#__PURE__*/external_React_.createElement(context_TableContext.Provider, {
63445
+ }, [
63446
+ // Table
63447
+ prefixCls, getComponent, scrollbarSize, direction, fixedInfoList, isSticky, supportSticky, componentWidth, fixHeader, fixColumn, horizonScroll,
63448
+ // Body
63449
+ mergedTableLayout, rowClassName, expandableConfig.expandedRowClassName, mergedExpandIcon, expandableType, expandableConfig.expandRowByClick, expandableConfig.expandedRowRender, onTriggerExpand, expandableConfig.expandIconColumnIndex, expandableConfig.indentSize,
63450
+ // Column
63451
+ columns, flattenColumns, onColumnResize,
63452
+ // Row
63453
+ startRow, endRow, onHover]);
63454
+ return /*#__PURE__*/external_React_.createElement(context_TableContext.Provider, {
63356
63455
  value: TableContextValue
63357
- }, /*#__PURE__*/external_React_.createElement(context_BodyContext.Provider, {
63358
- value: BodyContextValue
63359
- }, /*#__PURE__*/external_React_.createElement(context_ExpandedRowContext.Provider, {
63360
- value: ExpandedRowContextValue
63361
- }, /*#__PURE__*/external_React_.createElement(context_ResizeContext.Provider, {
63362
- value: ResizeContextValue
63363
- }, fullTable)))));
63364
- }
63365
- Table_Table.EXPAND_COLUMN = EXPAND_COLUMN;
63366
- Table_Table.Column = sugar_Column;
63367
- Table_Table.ColumnGroup = sugar_ColumnGroup;
63368
- Table_Table.Summary = FooterComponents;
63369
- /* harmony default export */ var rc_table_es_Table = ((/* unused pure expression or super */ null && (Table_Table)));
63456
+ }, fullTable);
63457
+ }
63458
+ function genTable(shouldTriggerRender) {
63459
+ return makeImmutable(Table_Table, shouldTriggerRender);
63460
+ }
63461
+ var ImmutableTable = genTable();
63462
+ ImmutableTable.EXPAND_COLUMN = EXPAND_COLUMN;
63463
+ ImmutableTable.Column = sugar_Column;
63464
+ ImmutableTable.ColumnGroup = sugar_ColumnGroup;
63465
+ ImmutableTable.Summary = FooterComponents;
63466
+ /* harmony default export */ var rc_table_es_Table = ((/* unused pure expression or super */ null && (ImmutableTable)));
63370
63467
  ;// CONCATENATED MODULE: ./node_modules/rc-table/es/index.js
63371
63468
 
63372
63469
 
@@ -63374,6 +63471,7 @@ Table_Table.Summary = FooterComponents;
63374
63471
 
63375
63472
 
63376
63473
 
63474
+
63377
63475
  /* harmony default export */ var rc_table_es = ((/* unused pure expression or super */ null && (Table)));
63378
63476
  ;// CONCATENATED MODULE: ./node_modules/rc-tree/es/contextTypes.js
63379
63477
  /**
@@ -65038,6 +65136,7 @@ function statisticToken(token) {
65038
65136
 
65039
65137
 
65040
65138
 
65139
+
65041
65140
  var textEllipsis = {
65042
65141
  overflow: 'hidden',
65043
65142
  whiteSpace: 'nowrap',
@@ -65157,7 +65256,7 @@ var genFocusStyle = function genFocusStyle(token) {
65157
65256
  };
65158
65257
  };
65159
65258
  ;// CONCATENATED MODULE: ./node_modules/antd/es/version/version.js
65160
- /* harmony default export */ var version = ('5.1.2');
65259
+ /* harmony default export */ var version = ('5.1.4');
65161
65260
  ;// CONCATENATED MODULE: ./node_modules/antd/es/version/index.js
65162
65261
  /* eslint import/no-unresolved: 0 */
65163
65262
  // @ts-ignore
@@ -65954,6 +66053,8 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
65954
66053
  display: 'none'
65955
66054
  }), esm_defineProperty_defineProperty(_$concat3, '& + span', {
65956
66055
  color: token.colorTextDisabled
66056
+ }), esm_defineProperty_defineProperty(_$concat3, "&".concat(checkboxCls, "-indeterminate ").concat(checkboxCls, "-inner::after"), {
66057
+ background: token.colorTextDisabled
65957
66058
  }), _$concat3)), _ref6)];
65958
66059
  };
65959
66060
  // ============================== Export ==============================
@@ -66229,6 +66330,7 @@ if (false) {}
66229
66330
  var es_checkbox_Checkbox = checkbox_Checkbox;
66230
66331
  es_checkbox_Checkbox.Group = checkbox_Group;
66231
66332
  es_checkbox_Checkbox.__ANT_CHECKBOX = true;
66333
+ if (false) {}
66232
66334
  /* harmony default export */ var es_checkbox = (es_checkbox_Checkbox);
66233
66335
  ;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
66234
66336
  var raf = function raf(callback) {
@@ -66353,9 +66455,10 @@ function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoin
66353
66455
  });
66354
66456
  ;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/motion.js
66355
66457
 
66356
- // ================= Transition =================
66357
- // Event wrapper. Copy from react source code
66358
66458
 
66459
+
66460
+ // ================= Transition =================
66461
+ // Event wrapper. Copy from react source code
66359
66462
  function makePrefixMap(styleProp, eventName) {
66360
66463
  var prefixes = {};
66361
66464
  prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
@@ -66674,7 +66777,6 @@ function useStatus(supportMotion, visible, getElement, _ref) {
66674
66777
  return onPrepare(getDomElement());
66675
66778
  } // Rest step is sync update
66676
66779
 
66677
- // Rest step is sync update
66678
66780
  if (step in eventHandlers) {
66679
66781
  var _eventHandlers$step;
66680
66782
  setStyle(((_eventHandlers$step = eventHandlers[step]) === null || _eventHandlers$step === void 0 ? void 0 : _eventHandlers$step.call(eventHandlers, getDomElement(), null)) || null);
@@ -66808,11 +66910,11 @@ var DomWrapper_DomWrapper = /*#__PURE__*/function (_React$Component) {
66808
66910
 
66809
66911
 
66810
66912
 
66913
+
66811
66914
  /**
66812
66915
  * `transitionSupport` is used for none transition test case.
66813
66916
  * Default we use browser transition event support check.
66814
66917
  */
66815
-
66816
66918
  function genCSSMotion(config) {
66817
66919
  var transitionSupport = config;
66818
66920
  if (typeof_typeof(config) === 'object') {
@@ -66877,11 +66979,11 @@ function genCSSMotion(config) {
66877
66979
  // Stable children
66878
66980
  if (mergedVisible) {
66879
66981
  motionChildren = children(objectSpread2_objectSpread2({}, mergedProps), setNodeRef);
66880
- } else if (!removeOnLeave && renderedRef.current) {
66982
+ } else if (!removeOnLeave && renderedRef.current && leavedClassName) {
66881
66983
  motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
66882
66984
  className: leavedClassName
66883
66985
  }), setNodeRef);
66884
- } else if (forceRender) {
66986
+ } else if (forceRender || !removeOnLeave && !leavedClassName) {
66885
66987
  motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
66886
66988
  style: {
66887
66989
  display: 'none'
@@ -66909,8 +67011,8 @@ function genCSSMotion(config) {
66909
67011
  } // Auto inject ref if child node not have `ref` props
66910
67012
 
66911
67013
  if ( /*#__PURE__*/ /*#__PURE__*/external_React_.isValidElement(motionChildren) && supportRef(motionChildren)) {
66912
- var _motionChildren = motionChildren,
66913
- originNodeRef = _motionChildren.ref;
67014
+ var _ref = motionChildren,
67015
+ originNodeRef = _ref.ref;
66914
67016
  if (!originNodeRef) {
66915
67017
  motionChildren = /*#__PURE__*/external_React_.cloneElement(motionChildren, {
66916
67018
  ref: setNodeRef
@@ -67033,6 +67135,8 @@ function diffKeys() {
67033
67135
 
67034
67136
 
67035
67137
 
67138
+
67139
+
67036
67140
  var CSSMotionList_excluded = ["component", "children", "onVisibleChanged", "onAllRemoved"],
67037
67141
  CSSMotionList_excluded2 = ["status"];
67038
67142
 
@@ -67042,12 +67146,12 @@ var CSSMotionList_excluded = ["component", "children", "onVisibleChanged", "onAl
67042
67146
 
67043
67147
 
67044
67148
  var MOTION_PROP_NAMES = ['eventProps', 'visible', 'children', 'motionName', 'motionAppear', 'motionEnter', 'motionLeave', 'motionLeaveImmediately', 'motionDeadline', 'removeOnLeave', 'leavedClassName', 'onAppearStart', 'onAppearActive', 'onAppearEnd', 'onEnterStart', 'onEnterActive', 'onEnterEnd', 'onLeaveStart', 'onLeaveActive', 'onLeaveEnd'];
67149
+
67045
67150
  /**
67046
67151
  * Generate a CSSMotionList component with config
67047
67152
  * @param transitionSupport No need since CSSMotionList no longer depends on transition support
67048
67153
  * @param CSSMotion CSSMotion component
67049
67154
  */
67050
-
67051
67155
  function genCSSMotionList(transitionSupport) {
67052
67156
  var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
67053
67157
  var CSSMotionList = /*#__PURE__*/function (_React$Component) {
@@ -67060,10 +67164,10 @@ function genCSSMotionList(transitionSupport) {
67060
67164
  args[_key] = arguments[_key];
67061
67165
  }
67062
67166
  _this = _super.call.apply(_super, [this].concat(args));
67063
- _this.state = {
67167
+ defineProperty_defineProperty(_assertThisInitialized(_this), "state", {
67064
67168
  keyEntities: []
67065
- };
67066
- _this.removeKey = function (removeKey) {
67169
+ });
67170
+ defineProperty_defineProperty(_assertThisInitialized(_this), "removeKey", function (removeKey) {
67067
67171
  var keyEntities = _this.state.keyEntities;
67068
67172
  var nextKeyEntities = keyEntities.map(function (entity) {
67069
67173
  if (entity.key !== removeKey) return entity;
@@ -67078,7 +67182,7 @@ function genCSSMotionList(transitionSupport) {
67078
67182
  var status = _ref.status;
67079
67183
  return status !== STATUS_REMOVED;
67080
67184
  }).length;
67081
- };
67185
+ });
67082
67186
  return _this;
67083
67187
  }
67084
67188
  _createClass(CSSMotionList, [{
@@ -67146,9 +67250,9 @@ function genCSSMotionList(transitionSupport) {
67146
67250
 
67147
67251
  return CSSMotionList;
67148
67252
  }(external_React_.Component);
67149
- CSSMotionList.defaultProps = {
67253
+ defineProperty_defineProperty(CSSMotionList, "defaultProps", {
67150
67254
  component: 'div'
67151
- };
67255
+ });
67152
67256
  return CSSMotionList;
67153
67257
  }
67154
67258
  /* harmony default export */ var CSSMotionList = (genCSSMotionList(supportTransition));
@@ -71068,6 +71172,9 @@ ForwardOverflow.INVALIDATE = INVALIDATE; // Convert to generic type
71068
71172
  ;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/index.js
71069
71173
 
71070
71174
  /* harmony default export */ var rc_overflow_es = (es_Overflow);
71175
+ // EXTERNAL MODULE: ./node_modules/shallowequal/index.js
71176
+ var shallowequal = __webpack_require__(2460);
71177
+ var shallowequal_default = /*#__PURE__*/__webpack_require__.n(shallowequal);
71071
71178
  ;// CONCATENATED MODULE: ./node_modules/rc-menu/es/context/IdContext.js
71072
71179
 
71073
71180
  var IdContext = /*#__PURE__*/external_React_.createContext(null);
@@ -73419,15 +73526,13 @@ var accessibilityFocus = function accessibilityFocus(token) {
73419
73526
  return Object.assign({}, genFocusOutline(token));
73420
73527
  };
73421
73528
  var getThemeStyle = function getThemeStyle(token, themeSuffix) {
73422
- var _not$concat, _$concat3, _$concat4, _$concat$concat3, _$concat7, _$concat$concat4;
73529
+ var _not$concat, _$concat3, _$concat4, _$concat$concat3, _$concat8, _$concat$concat4;
73423
73530
  var componentCls = token.componentCls,
73424
73531
  colorItemText = token.colorItemText,
73425
73532
  colorItemTextSelected = token.colorItemTextSelected,
73426
- colorItemTextSelectedHorizontal = token.colorItemTextSelectedHorizontal,
73427
73533
  colorGroupTitle = token.colorGroupTitle,
73428
73534
  colorItemBg = token.colorItemBg,
73429
73535
  colorSubItemBg = token.colorSubItemBg,
73430
- colorItemBgSelectedHorizontal = token.colorItemBgSelectedHorizontal,
73431
73536
  colorItemBgSelected = token.colorItemBgSelected,
73432
73537
  colorActiveBarHeight = token.colorActiveBarHeight,
73433
73538
  colorActiveBarWidth = token.colorActiveBarWidth,
@@ -73447,7 +73552,9 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
73447
73552
  colorDangerItemBgActive = token.colorDangerItemBgActive,
73448
73553
  colorDangerItemBgSelected = token.colorDangerItemBgSelected,
73449
73554
  colorItemBgHover = token.colorItemBgHover,
73450
- menuSubMenuBg = token.menuSubMenuBg;
73555
+ menuSubMenuBg = token.menuSubMenuBg,
73556
+ colorItemTextSelectedHorizontal = token.colorItemTextSelectedHorizontal,
73557
+ colorItemBgSelectedHorizontal = token.colorItemBgSelectedHorizontal;
73451
73558
  return esm_defineProperty_defineProperty({}, "".concat(componentCls, "-").concat(themeSuffix), (_$concat$concat4 = {
73452
73559
  color: colorItemText,
73453
73560
  background: colorItemBg
@@ -73489,7 +73596,7 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
73489
73596
  color: colorDangerItemTextSelected
73490
73597
  }), esm_defineProperty_defineProperty(_$concat4, "a, a:hover", {
73491
73598
  color: 'inherit'
73492
- }), _$concat4)), esm_defineProperty_defineProperty(_$concat$concat4, "&:not(".concat(componentCls, "-horizontal) ").concat(componentCls, "-item-selected"), esm_defineProperty_defineProperty({
73599
+ }), _$concat4)), esm_defineProperty_defineProperty(_$concat$concat4, "& ".concat(componentCls, "-item-selected"), esm_defineProperty_defineProperty({
73493
73600
  backgroundColor: colorItemBgSelected
73494
73601
  }, "&".concat(componentCls, "-item-danger"), {
73495
73602
  backgroundColor: colorDangerItemBgSelected
@@ -73503,7 +73610,7 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
73503
73610
  top: colorActiveBarBorderSize,
73504
73611
  marginTop: -colorActiveBarBorderSize,
73505
73612
  marginBottom: 0,
73506
- borderRadius: token.radiusItem,
73613
+ borderRadius: 0,
73507
73614
  '&::after': {
73508
73615
  position: 'absolute',
73509
73616
  insetInline: menuItemPaddingInline,
@@ -73526,11 +73633,11 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
73526
73633
  }
73527
73634
  }), _$concat$concat3)))), esm_defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-root"), esm_defineProperty_defineProperty({}, "&".concat(componentCls, "-inline, &").concat(componentCls, "-vertical"), {
73528
73635
  borderInlineEnd: "".concat(colorActiveBarBorderSize, "px ").concat(lineType, " ").concat(colorSplit)
73529
- })), esm_defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-inline"), (_$concat7 = {}, esm_defineProperty_defineProperty(_$concat7, "".concat(componentCls, "-sub").concat(componentCls, "-inline"), {
73636
+ })), esm_defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-inline"), (_$concat8 = {}, esm_defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-sub").concat(componentCls, "-inline"), {
73530
73637
  background: colorSubItemBg
73531
- }), esm_defineProperty_defineProperty(_$concat7, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), colorActiveBarBorderSize && colorActiveBarWidth ? {
73638
+ }), esm_defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), colorActiveBarBorderSize && colorActiveBarWidth ? {
73532
73639
  width: "calc(100% + ".concat(colorActiveBarBorderSize, "px)")
73533
- } : {}), esm_defineProperty_defineProperty(_$concat7, "".concat(componentCls, "-item"), esm_defineProperty_defineProperty({
73640
+ } : {}), esm_defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item"), esm_defineProperty_defineProperty({
73534
73641
  position: 'relative',
73535
73642
  '&::after': {
73536
73643
  position: 'absolute',
@@ -73546,13 +73653,13 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
73546
73653
  '&::after': {
73547
73654
  borderInlineEndColor: colorDangerItemTextSelected
73548
73655
  }
73549
- })), esm_defineProperty_defineProperty(_$concat7, "".concat(componentCls, "-selected, ").concat(componentCls, "-item-selected"), {
73656
+ })), esm_defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-selected, ").concat(componentCls, "-item-selected"), {
73550
73657
  '&::after': {
73551
73658
  transform: 'scaleY(1)',
73552
73659
  opacity: 1,
73553
73660
  transition: ["transform ".concat(motionDurationMid, " ").concat(motionEaseInOut), "opacity ".concat(motionDurationMid, " ").concat(motionEaseInOut)].join(',')
73554
73661
  }
73555
- }), _$concat7)), _$concat$concat4));
73662
+ }), _$concat8)), _$concat$concat4));
73556
73663
  };
73557
73664
  /* harmony default export */ var theme = (getThemeStyle);
73558
73665
  ;// CONCATENATED MODULE: ./node_modules/antd/es/menu/style/vertical.js
@@ -73658,7 +73765,7 @@ var getVerticalStyle = function getVerticalStyle(token) {
73658
73765
  insetInlineStart: 0,
73659
73766
  paddingInline: "calc(50% - ".concat(fontSizeSM, "px)"),
73660
73767
  textOverflow: 'clip'
73661
- }, esm_defineProperty_defineProperty(_$concat$concat$con, "".concat(componentCls, "-submenu-arrow"), {
73768
+ }, esm_defineProperty_defineProperty(_$concat$concat$con, "\n ".concat(componentCls, "-submenu-arrow,\n ").concat(componentCls, "-submenu-expand-icon\n "), {
73662
73769
  opacity: 0
73663
73770
  }), esm_defineProperty_defineProperty(_$concat$concat$con, "".concat(componentCls, "-item-icon, ").concat(iconCls), {
73664
73771
  margin: 0,
@@ -73748,7 +73855,7 @@ var genSubMenuArrowStyle = function genSubMenuArrowStyle(token) {
73748
73855
  width: menuArrowSize,
73749
73856
  color: 'currentcolor',
73750
73857
  transform: 'translateY(-50%)',
73751
- transition: "transform ".concat(motionDurationSlow, " ").concat(motionEaseInOut)
73858
+ transition: "transform ".concat(motionDurationSlow, " ").concat(motionEaseInOut, ", opacity ").concat(motionDurationSlow)
73752
73859
  }), esm_defineProperty_defineProperty(_$concat2, '&-arrow', {
73753
73860
  // →
73754
73861
  '&::before, &::after': {
@@ -73917,8 +74024,7 @@ var getBaseStyle = function getBaseStyle(token) {
73917
74024
  colorPrimary = token.colorPrimary,
73918
74025
  colorError = token.colorError,
73919
74026
  colorErrorHover = token.colorErrorHover,
73920
- colorTextLightSolid = token.colorTextLightSolid,
73921
- colorTextSecondary = token.colorTextSecondary;
74027
+ colorTextLightSolid = token.colorTextLightSolid;
73922
74028
  var controlHeightLG = token.controlHeightLG,
73923
74029
  fontSize = token.fontSize;
73924
74030
  var menuArrowSize = fontSize / 7 * 5;
@@ -73932,10 +74038,11 @@ var getBaseStyle = function getBaseStyle(token) {
73932
74038
  menuPanelMaskInset: -7,
73933
74039
  menuSubMenuBg: colorBgElevated
73934
74040
  });
74041
+ var colorTextDark = new TinyColor(colorTextLightSolid).setAlpha(0.65).toRgbString();
73935
74042
  var menuDarkToken = statistic_merge(menuToken, {
73936
- colorItemText: new TinyColor(colorTextLightSolid).setAlpha(0.65).toRgbString(),
74043
+ colorItemText: colorTextDark,
73937
74044
  colorItemTextHover: colorTextLightSolid,
73938
- colorGroupTitle: colorTextSecondary,
74045
+ colorGroupTitle: colorTextDark,
73939
74046
  colorItemTextSelected: colorTextLightSolid,
73940
74047
  colorItemBg: '#001529',
73941
74048
  colorSubItemBg: '#000c17',
@@ -73952,7 +74059,10 @@ var getBaseStyle = function getBaseStyle(token) {
73952
74059
  colorDangerItemTextSelected: colorTextLightSolid,
73953
74060
  colorDangerItemBgActive: colorError,
73954
74061
  colorDangerItemBgSelected: colorError,
73955
- menuSubMenuBg: '#001529'
74062
+ menuSubMenuBg: '#001529',
74063
+ // Horizontal
74064
+ colorItemTextSelectedHorizontal: colorTextLightSolid,
74065
+ colorItemBgSelectedHorizontal: colorPrimary
73956
74066
  }, Object.assign({}, overrideComponentToken));
73957
74067
  return [
73958
74068
  // Basic
@@ -74553,6 +74663,22 @@ function getPlacements(config) {
74553
74663
  }
74554
74664
  ;// CONCATENATED MODULE: ./node_modules/antd/es/theme/interface/presetColors.js
74555
74665
  var PresetColors = ['blue', 'purple', 'cyan', 'green', 'magenta', 'pink', 'red', 'orange', 'yellow', 'volcano', 'geekblue', 'lime', 'gold'];
74666
+ ;// CONCATENATED MODULE: ./node_modules/antd/es/style/presetColor.js
74667
+
74668
+ function genPresetColor(token, genCss) {
74669
+ return PresetColors.reduce(function (prev, colorKey) {
74670
+ var lightColor = token["".concat(colorKey, "-1")];
74671
+ var lightBorderColor = token["".concat(colorKey, "-3")];
74672
+ var darkColor = token["".concat(colorKey, "-6")];
74673
+ var textColor = token["".concat(colorKey, "-7")];
74674
+ return Object.assign(Object.assign({}, prev), genCss(colorKey, {
74675
+ lightColor: lightColor,
74676
+ lightBorderColor: lightBorderColor,
74677
+ darkColor: darkColor,
74678
+ textColor: textColor
74679
+ }));
74680
+ }, {});
74681
+ }
74556
74682
  ;// CONCATENATED MODULE: ./node_modules/antd/es/style/roundedArrow.js
74557
74683
  var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColor, boxShadow) {
74558
74684
  var unitWidth = width / 2;
@@ -74752,19 +74878,6 @@ function getArrowStyle(token, options) {
74752
74878
 
74753
74879
 
74754
74880
 
74755
- var generatorTooltipPresetColor = function generatorTooltipPresetColor(token) {
74756
- var componentCls = token.componentCls;
74757
- return PresetColors.reduce(function (previousValue, currentValue) {
74758
- var _previousValue$$conc;
74759
- var lightColor = token["".concat(currentValue, "-6")];
74760
- previousValue["&".concat(componentCls, "-").concat(currentValue)] = (_previousValue$$conc = {}, esm_defineProperty_defineProperty(_previousValue$$conc, "".concat(componentCls, "-inner"), {
74761
- backgroundColor: lightColor
74762
- }), esm_defineProperty_defineProperty(_previousValue$$conc, "".concat(componentCls, "-arrow"), {
74763
- '--antd-arrow-background-color': lightColor
74764
- }), _previousValue$$conc);
74765
- return previousValue;
74766
- }, {});
74767
- };
74768
74881
  var genTooltipStyle = function genTooltipStyle(token) {
74769
74882
  var _Object$assign;
74770
74883
  var componentCls = token.componentCls,
@@ -74805,10 +74918,18 @@ var genTooltipStyle = function genTooltipStyle(token) {
74805
74918
  borderRadius: tooltipBorderRadius,
74806
74919
  boxShadow: boxShadowSecondary
74807
74920
  }), esm_defineProperty_defineProperty(_Object$assign, ["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(','), esm_defineProperty_defineProperty({}, "".concat(componentCls, "-inner"), {
74808
- borderRadius: tooltipBorderRadius > MAX_VERTICAL_CONTENT_RADIUS ? MAX_VERTICAL_CONTENT_RADIUS : tooltipBorderRadius
74921
+ borderRadius: Math.min(tooltipBorderRadius, MAX_VERTICAL_CONTENT_RADIUS)
74809
74922
  })), esm_defineProperty_defineProperty(_Object$assign, "".concat(componentCls, "-content"), {
74810
74923
  position: 'relative'
74811
- }), _Object$assign)), generatorTooltipPresetColor(token)), {
74924
+ }), _Object$assign)), genPresetColor(token, function (colorKey, _ref) {
74925
+ var _$concat$concat;
74926
+ var darkColor = _ref.darkColor;
74927
+ return esm_defineProperty_defineProperty({}, "&".concat(componentCls, "-").concat(colorKey), (_$concat$concat = {}, esm_defineProperty_defineProperty(_$concat$concat, "".concat(componentCls, "-inner"), {
74928
+ backgroundColor: darkColor
74929
+ }), esm_defineProperty_defineProperty(_$concat$concat, "".concat(componentCls, "-arrow"), {
74930
+ '--antd-arrow-background-color': darkColor
74931
+ }), _$concat$concat));
74932
+ })), {
74812
74933
  // RTL
74813
74934
  '&-rtl': {
74814
74935
  direction: 'rtl'
@@ -74848,9 +74969,9 @@ var genTooltipStyle = function genTooltipStyle(token) {
74848
74969
  tooltipRadiusOuter: borderRadiusOuter > 4 ? 4 : borderRadiusOuter
74849
74970
  });
74850
74971
  return [genTooltipStyle(TooltipToken), initZoomMotion(token, 'zoom-big-fast')];
74851
- }, function (_ref) {
74852
- var zIndexPopupBase = _ref.zIndexPopupBase,
74853
- colorBgSpotlight = _ref.colorBgSpotlight;
74972
+ }, function (_ref2) {
74973
+ var zIndexPopupBase = _ref2.zIndexPopupBase,
74974
+ colorBgSpotlight = _ref2.colorBgSpotlight;
74854
74975
  return {
74855
74976
  zIndexPopup: zIndexPopupBase + 70,
74856
74977
  colorBgDefault: colorBgSpotlight
@@ -74859,19 +74980,38 @@ var genTooltipStyle = function genTooltipStyle(token) {
74859
74980
  return useOriginHook(prefixCls);
74860
74981
  });
74861
74982
  ;// CONCATENATED MODULE: ./node_modules/antd/es/_util/colors.js
74983
+
74984
+
74985
+ var inverseColors = PresetColors.map(function (color) {
74986
+ return "".concat(color, "-inverse");
74987
+ });
74862
74988
  var PresetStatusColorTypes = (/* unused pure expression or super */ null && (['success', 'processing', 'error', 'default', 'warning']));
74863
- var PresetColorTypes = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime'];
74989
+ /**
74990
+ * determine if the color keyword belongs to the `Ant Design` {@link PresetColors}.
74991
+ * @param color color to be judged
74992
+ * @param includeInverse whether to include reversed colors
74993
+ */
74994
+ function isPresetColor(color) {
74995
+ var includeInverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
74996
+ if (includeInverse) {
74997
+ return [].concat(toConsumableArray_toConsumableArray(inverseColors), toConsumableArray_toConsumableArray(PresetColors)).includes(color);
74998
+ }
74999
+ return PresetColors.includes(color);
75000
+ }
75001
+ function isPresetStatusColor(color) {
75002
+ return PresetStatusColorTypes.includes(color);
75003
+ }
74864
75004
  ;// CONCATENATED MODULE: ./node_modules/antd/es/tooltip/util.js
74865
75005
 
74866
75006
  /* eslint-disable import/prefer-default-export */
74867
75007
 
74868
75008
 
74869
- var PresetColorRegex = new RegExp("^(".concat(PresetColorTypes.join('|'), ")(-inverse)?$"));
74870
75009
  function parseColor(prefixCls, color) {
74871
- var className = classnames_default()(esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-").concat(color), color && PresetColorRegex.test(color)));
75010
+ var isInternalColor = isPresetColor(color);
75011
+ var className = classnames_default()(esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-").concat(color), color && isInternalColor));
74872
75012
  var overlayStyle = {};
74873
75013
  var arrowStyle = {};
74874
- if (color && !PresetColorRegex.test(color)) {
75014
+ if (color && !isInternalColor) {
74875
75015
  overlayStyle.background = color;
74876
75016
  // @ts-ignore
74877
75017
  arrowStyle['--antd-arrow-background-color'] = color;
@@ -75045,26 +75185,25 @@ var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, r
75045
75185
  var _a, _b;
75046
75186
  return placements[key].points[0] === ((_a = align.points) === null || _a === void 0 ? void 0 : _a[0]) && placements[key].points[1] === ((_b = align.points) === null || _b === void 0 ? void 0 : _b[1]);
75047
75187
  });
75048
- if (!placement) {
75049
- return;
75050
- }
75051
- // 根据当前坐标设置动画点
75052
- var rect = domNode.getBoundingClientRect();
75053
- var transformOrigin = {
75054
- top: '50%',
75055
- left: '50%'
75056
- };
75057
- if (/top|Bottom/.test(placement)) {
75058
- transformOrigin.top = "".concat(rect.height - align.offset[1], "px");
75059
- } else if (/Top|bottom/.test(placement)) {
75060
- transformOrigin.top = "".concat(-align.offset[1], "px");
75061
- }
75062
- if (/left|Right/.test(placement)) {
75063
- transformOrigin.left = "".concat(rect.width - align.offset[0], "px");
75064
- } else if (/right|Left/.test(placement)) {
75065
- transformOrigin.left = "".concat(-align.offset[0], "px");
75188
+ if (placement) {
75189
+ // 根据当前坐标设置动画点
75190
+ var rect = domNode.getBoundingClientRect();
75191
+ var transformOrigin = {
75192
+ top: '50%',
75193
+ left: '50%'
75194
+ };
75195
+ if (/top|Bottom/.test(placement)) {
75196
+ transformOrigin.top = "".concat(rect.height - align.offset[1], "px");
75197
+ } else if (/Top|bottom/.test(placement)) {
75198
+ transformOrigin.top = "".concat(-align.offset[1], "px");
75199
+ }
75200
+ if (/left|Right/.test(placement)) {
75201
+ transformOrigin.left = "".concat(rect.width - align.offset[0], "px");
75202
+ } else if (/right|Left/.test(placement)) {
75203
+ transformOrigin.left = "".concat(-align.offset[0], "px");
75204
+ }
75205
+ domNode.style.transformOrigin = "".concat(transformOrigin.left, " ").concat(transformOrigin.top);
75066
75206
  }
75067
- domNode.style.transformOrigin = "".concat(transformOrigin.left, " ").concat(transformOrigin.top);
75068
75207
  };
75069
75208
  var getOverlay = function getOverlay() {
75070
75209
  var title = props.title,
@@ -75154,6 +75293,8 @@ var MenuContext_MenuContext = /*#__PURE__*/(0,external_React_.createContext)({
75154
75293
 
75155
75294
 
75156
75295
  var MenuItem_MenuItem = function MenuItem(props) {
75296
+ var _classNames;
75297
+ var _a;
75157
75298
  var className = props.className,
75158
75299
  children = props.children,
75159
75300
  icon = props.icon,
@@ -75180,41 +75321,37 @@ var MenuItem_MenuItem = function MenuItem(props) {
75180
75321
  }
75181
75322
  return wrapNode;
75182
75323
  };
75183
- var renderItem = function renderItem(_ref) {
75184
- var _classNames;
75185
- var siderCollapsed = _ref.siderCollapsed;
75186
- var _a;
75187
- var tooltipTitle = title;
75188
- if (typeof title === 'undefined') {
75189
- tooltipTitle = firstLevel ? children : '';
75190
- } else if (title === false) {
75191
- tooltipTitle = '';
75192
- }
75193
- var tooltipProps = {
75194
- title: tooltipTitle
75195
- };
75196
- if (!siderCollapsed && !isInlineCollapsed) {
75197
- tooltipProps.title = null;
75198
- // Reset `open` to fix control mode tooltip display not correct
75199
- // ref: https://github.com/ant-design/ant-design/issues/16742
75200
- tooltipProps.open = false;
75201
- }
75202
- var childrenLength = toArray_toArray(children).length;
75203
- var returnNode = /*#__PURE__*/external_React_.createElement(es_MenuItem, Object.assign({}, omit_omit(props, ['title', 'icon', 'danger']), {
75204
- className: classnames_default()((_classNames = {}, esm_defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-item-danger"), danger), esm_defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-item-only-child"), (icon ? childrenLength + 1 : childrenLength) === 1), _classNames), className),
75205
- title: typeof title === 'string' ? title : undefined
75206
- }), cloneElement(icon, {
75207
- className: classnames_default()(isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '', "".concat(prefixCls, "-item-icon"))
75208
- }), renderItemChildren(isInlineCollapsed));
75209
- if (!disableMenuItemTitleTooltip) {
75210
- returnNode = /*#__PURE__*/external_React_.createElement(tooltip, Object.assign({}, tooltipProps, {
75211
- placement: direction === 'rtl' ? 'left' : 'right',
75212
- overlayClassName: "".concat(prefixCls, "-inline-collapsed-tooltip")
75213
- }), returnNode);
75214
- }
75215
- return returnNode;
75324
+ var _React$useContext2 = external_React_.useContext(SiderContext),
75325
+ siderCollapsed = _React$useContext2.siderCollapsed;
75326
+ var tooltipTitle = title;
75327
+ if (typeof title === 'undefined') {
75328
+ tooltipTitle = firstLevel ? children : '';
75329
+ } else if (title === false) {
75330
+ tooltipTitle = '';
75331
+ }
75332
+ var tooltipProps = {
75333
+ title: tooltipTitle
75216
75334
  };
75217
- return /*#__PURE__*/external_React_.createElement(SiderContext.Consumer, null, renderItem);
75335
+ if (!siderCollapsed && !isInlineCollapsed) {
75336
+ tooltipProps.title = null;
75337
+ // Reset `open` to fix control mode tooltip display not correct
75338
+ // ref: https://github.com/ant-design/ant-design/issues/16742
75339
+ tooltipProps.open = false;
75340
+ }
75341
+ var childrenLength = toArray_toArray(children).length;
75342
+ var returnNode = /*#__PURE__*/external_React_.createElement(es_MenuItem, Object.assign({}, omit_omit(props, ['title', 'icon', 'danger']), {
75343
+ className: classnames_default()((_classNames = {}, esm_defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-item-danger"), danger), esm_defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-item-only-child"), (icon ? childrenLength + 1 : childrenLength) === 1), _classNames), className),
75344
+ title: typeof title === 'string' ? title : undefined
75345
+ }), cloneElement(icon, {
75346
+ className: classnames_default()(isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '', "".concat(prefixCls, "-item-icon"))
75347
+ }), renderItemChildren(isInlineCollapsed));
75348
+ if (!disableMenuItemTitleTooltip) {
75349
+ returnNode = /*#__PURE__*/external_React_.createElement(tooltip, Object.assign({}, tooltipProps, {
75350
+ placement: direction === 'rtl' ? 'left' : 'right',
75351
+ overlayClassName: "".concat(prefixCls, "-inline-collapsed-tooltip")
75352
+ }), returnNode);
75353
+ }
75354
+ return returnNode;
75218
75355
  };
75219
75356
  /* harmony default export */ var menu_MenuItem = (MenuItem_MenuItem);
75220
75357
  ;// CONCATENATED MODULE: ./node_modules/antd/es/menu/SubMenu.js
@@ -75368,7 +75505,7 @@ var menu_rest = undefined && undefined.__rest || function (s, e) {
75368
75505
 
75369
75506
 
75370
75507
  var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props, ref) {
75371
- var _a;
75508
+ var _a, _b;
75372
75509
  var override = external_React_.useContext(menu_OverrideContext);
75373
75510
  var overrideObj = override || {};
75374
75511
  var _React$useContext = external_React_.useContext(context_ConfigContext),
@@ -75440,8 +75577,9 @@ var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props,
75440
75577
  if (typeof expandIcon === 'function') {
75441
75578
  mergedExpandIcon = expandIcon;
75442
75579
  } else {
75443
- mergedExpandIcon = cloneElement(expandIcon || overrideObj.expandIcon, {
75444
- className: "".concat(prefixCls, "-submenu-expand-icon")
75580
+ var beClone = expandIcon || overrideObj.expandIcon;
75581
+ mergedExpandIcon = cloneElement(beClone, {
75582
+ className: classnames_default()("".concat(prefixCls, "-submenu-expand-icon"), (_b = beClone === null || beClone === void 0 ? void 0 : beClone.props) === null || _b === void 0 ? void 0 : _b.className)
75445
75583
  });
75446
75584
  }
75447
75585
  // ======================== Context ==========================
@@ -75509,6 +75647,7 @@ menu_Menu.Item = menu_MenuItem;
75509
75647
  menu_Menu.SubMenu = menu_SubMenu;
75510
75648
  menu_Menu.Divider = menu_MenuDivider;
75511
75649
  menu_Menu.ItemGroup = MenuItemGroup;
75650
+ if (false) {}
75512
75651
  /* harmony default export */ var es_menu = (menu_Menu);
75513
75652
  ;// CONCATENATED MODULE: ./node_modules/rc-pagination/es/locale/en_US.js
75514
75653
  /* harmony default export */ var locale_en_US = ({
@@ -75774,6 +75913,7 @@ var LocaleProvider = function LocaleProvider(props) {
75774
75913
  value: getMemoizedContextValue
75775
75914
  }, children);
75776
75915
  };
75916
+ if (false) {}
75777
75917
  /* harmony default export */ var es_locale = (LocaleProvider);
75778
75918
  ;// CONCATENATED MODULE: ./node_modules/antd/es/locale/LocaleReceiver.js
75779
75919
 
@@ -75936,11 +76076,10 @@ var SizeContext = /*#__PURE__*/external_React_.createContext(undefined);
75936
76076
  var SizeContextProvider = function SizeContextProvider(_ref) {
75937
76077
  var children = _ref.children,
75938
76078
  size = _ref.size;
75939
- return /*#__PURE__*/external_React_.createElement(SizeContext.Consumer, null, function (originSize) {
75940
- return /*#__PURE__*/external_React_.createElement(SizeContext.Provider, {
75941
- value: size || originSize
75942
- }, children);
75943
- });
76079
+ var originSize = external_React_.useContext(SizeContext);
76080
+ return /*#__PURE__*/external_React_.createElement(SizeContext.Provider, {
76081
+ value: size || originSize
76082
+ }, children);
75944
76083
  };
75945
76084
  /* harmony default export */ var config_provider_SizeContext = (SizeContext);
75946
76085
  ;// CONCATENATED MODULE: ./node_modules/antd/es/config-provider/style/index.js
@@ -76177,6 +76316,7 @@ var ConfigProvider = function ConfigProvider(props) {
76177
76316
  ConfigProvider.ConfigContext = context_ConfigContext;
76178
76317
  ConfigProvider.SizeContext = config_provider_SizeContext;
76179
76318
  ConfigProvider.config = setGlobalConfig;
76319
+ if (false) {}
76180
76320
  /* harmony default export */ var config_provider = (ConfigProvider);
76181
76321
  ;// CONCATENATED MODULE: ./node_modules/antd/es/_util/PurePanel.js
76182
76322
 
@@ -76412,7 +76552,7 @@ var genWaveStyle = function genWaveStyle(token) {
76412
76552
  var componentCls = token.componentCls,
76413
76553
  colorPrimary = token.colorPrimary;
76414
76554
  return esm_defineProperty_defineProperty({}, componentCls, {
76415
- position: 'fixed',
76555
+ position: 'absolute',
76416
76556
  background: 'transparent',
76417
76557
  pointerEvents: 'none',
76418
76558
  boxSizing: 'border-box',
@@ -76423,7 +76563,7 @@ var genWaveStyle = function genWaveStyle(token) {
76423
76563
  '&.wave-motion-appear': {
76424
76564
  transition: ["box-shadow 0.4s ".concat(token.motionEaseOutCirc), "opacity 2s ".concat(token.motionEaseOutCirc)].join(','),
76425
76565
  '&-active': {
76426
- boxShadow: "0 0 0 calc(6px * var(--wave-scale)) currentcolor",
76566
+ boxShadow: "0 0 0 6px currentcolor",
76427
76567
  opacity: 0
76428
76568
  }
76429
76569
  }
@@ -76537,14 +76677,6 @@ function _unmount() {
76537
76677
  return _unmount.apply(this, arguments);
76538
76678
  }
76539
76679
  ;// CONCATENATED MODULE: ./node_modules/antd/es/_util/wave/util.js
76540
- function getValidateContainer(nodeRoot) {
76541
- if (nodeRoot instanceof Document) {
76542
- return nodeRoot.body;
76543
- }
76544
- return Array.from(nodeRoot.childNodes).find(function (ele) {
76545
- return (ele === null || ele === void 0 ? void 0 : ele.nodeType) === Node.ELEMENT_NODE;
76546
- });
76547
- }
76548
76680
  function isNotGrey(color) {
76549
76681
  // eslint-disable-next-line no-useless-escape
76550
76682
  var match = (color || '').match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);
@@ -76580,16 +76712,43 @@ function getTargetWaveColor(node) {
76580
76712
 
76581
76713
 
76582
76714
 
76715
+
76716
+
76717
+ function validateNum(value) {
76718
+ return Number.isNaN(value) ? 0 : value;
76719
+ }
76583
76720
  var WaveEffect = function WaveEffect(props) {
76584
76721
  var className = props.className,
76585
- left = props.left,
76586
- top = props.top,
76587
- width = props.width,
76588
- height = props.height,
76589
- color = props.color,
76590
- borderRadius = props.borderRadius,
76591
- scale = props.scale;
76722
+ target = props.target;
76592
76723
  var divRef = external_React_.useRef(null);
76724
+ var _React$useState = external_React_.useState(null),
76725
+ _React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
76726
+ color = _React$useState2[0],
76727
+ setWaveColor = _React$useState2[1];
76728
+ var _React$useState3 = external_React_.useState([]),
76729
+ _React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
76730
+ borderRadius = _React$useState4[0],
76731
+ setBorderRadius = _React$useState4[1];
76732
+ var _React$useState5 = external_React_.useState(0),
76733
+ _React$useState6 = esm_slicedToArray_slicedToArray(_React$useState5, 2),
76734
+ left = _React$useState6[0],
76735
+ setLeft = _React$useState6[1];
76736
+ var _React$useState7 = external_React_.useState(0),
76737
+ _React$useState8 = esm_slicedToArray_slicedToArray(_React$useState7, 2),
76738
+ top = _React$useState8[0],
76739
+ setTop = _React$useState8[1];
76740
+ var _React$useState9 = external_React_.useState(0),
76741
+ _React$useState10 = esm_slicedToArray_slicedToArray(_React$useState9, 2),
76742
+ width = _React$useState10[0],
76743
+ setWidth = _React$useState10[1];
76744
+ var _React$useState11 = external_React_.useState(0),
76745
+ _React$useState12 = esm_slicedToArray_slicedToArray(_React$useState11, 2),
76746
+ height = _React$useState12[0],
76747
+ setHeight = _React$useState12[1];
76748
+ var _React$useState13 = external_React_.useState(false),
76749
+ _React$useState14 = esm_slicedToArray_slicedToArray(_React$useState13, 2),
76750
+ enabled = _React$useState14[0],
76751
+ setEnabled = _React$useState14[1];
76593
76752
  var waveStyle = {
76594
76753
  left: left,
76595
76754
  top: top,
@@ -76597,12 +76756,52 @@ var WaveEffect = function WaveEffect(props) {
76597
76756
  height: height,
76598
76757
  borderRadius: borderRadius.map(function (radius) {
76599
76758
  return "".concat(radius, "px");
76600
- }).join(' '),
76601
- '--wave-scale': scale
76759
+ }).join(' ')
76602
76760
  };
76603
76761
  if (color) {
76604
76762
  waveStyle['--wave-color'] = color;
76605
76763
  }
76764
+ function syncPos() {
76765
+ var nodeStyle = getComputedStyle(target);
76766
+ // Get wave color from target
76767
+ setWaveColor(getTargetWaveColor(target));
76768
+ // Rect
76769
+ setLeft(target.offsetLeft);
76770
+ setTop(target.offsetTop);
76771
+ setWidth(target.offsetWidth);
76772
+ setHeight(target.offsetHeight);
76773
+ // Get border radius
76774
+ var borderTopLeftRadius = nodeStyle.borderTopLeftRadius,
76775
+ borderTopRightRadius = nodeStyle.borderTopRightRadius,
76776
+ borderBottomLeftRadius = nodeStyle.borderBottomLeftRadius,
76777
+ borderBottomRightRadius = nodeStyle.borderBottomRightRadius;
76778
+ setBorderRadius([borderTopLeftRadius, borderTopRightRadius, borderBottomRightRadius, borderBottomLeftRadius].map(function (radius) {
76779
+ return validateNum(parseFloat(radius));
76780
+ }));
76781
+ }
76782
+ external_React_.useEffect(function () {
76783
+ if (target) {
76784
+ // We need delay to check position here
76785
+ // since UI may change after click
76786
+ var id = es_raf(function () {
76787
+ syncPos();
76788
+ setEnabled(true);
76789
+ });
76790
+ // Add resize observer to follow size
76791
+ var resizeObserver;
76792
+ if (typeof ResizeObserver !== 'undefined') {
76793
+ resizeObserver = new ResizeObserver(syncPos);
76794
+ resizeObserver.observe(target);
76795
+ }
76796
+ return function () {
76797
+ es_raf.cancel(id);
76798
+ resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect();
76799
+ };
76800
+ }
76801
+ }, []);
76802
+ if (!enabled) {
76803
+ return null;
76804
+ }
76606
76805
  return /*#__PURE__*/external_React_.createElement(rc_motion_es, {
76607
76806
  visible: true,
76608
76807
  motionAppear: true,
@@ -76628,49 +76827,25 @@ var WaveEffect = function WaveEffect(props) {
76628
76827
  });
76629
76828
  });
76630
76829
  };
76631
- function validateNum(value) {
76632
- return Number.isNaN(value) ? 0 : value;
76633
- }
76634
- function showWaveEffect(container, node, className) {
76635
- var nodeStyle = getComputedStyle(node);
76636
- var nodeRect = node.getBoundingClientRect();
76637
- // Get wave color from target
76638
- var waveColor = getTargetWaveColor(node);
76639
- // Get border radius
76640
- var borderTopLeftRadius = nodeStyle.borderTopLeftRadius,
76641
- borderTopRightRadius = nodeStyle.borderTopRightRadius,
76642
- borderBottomLeftRadius = nodeStyle.borderBottomLeftRadius,
76643
- borderBottomRightRadius = nodeStyle.borderBottomRightRadius;
76644
- // Do scale calc
76645
- var offsetWidth = node.offsetWidth;
76646
- var scale = validateNum(nodeRect.width / offsetWidth);
76830
+ function showWaveEffect(node, className) {
76831
+ var _a;
76647
76832
  // Create holder
76648
76833
  var holder = document.createElement('div');
76649
- getValidateContainer(container).appendChild(holder);
76834
+ holder.style.position = 'absolute';
76835
+ holder.style.left = "0px";
76836
+ holder.style.top = "0px";
76837
+ (_a = node.parentElement) === null || _a === void 0 ? void 0 : _a.appendChild(holder);
76650
76838
  render_render( /*#__PURE__*/external_React_.createElement(WaveEffect, {
76651
- left: nodeRect.left,
76652
- top: nodeRect.top,
76653
- width: nodeRect.width,
76654
- height: nodeRect.height,
76655
- color: waveColor,
76656
- className: className,
76657
- scale: scale,
76658
- borderRadius: [borderTopLeftRadius, borderTopRightRadius, borderBottomRightRadius, borderBottomLeftRadius].map(function (radius) {
76659
- return validateNum(parseFloat(radius) * scale);
76660
- })
76839
+ target: node,
76840
+ className: className
76661
76841
  }), holder);
76662
76842
  }
76663
76843
  ;// CONCATENATED MODULE: ./node_modules/antd/es/_util/wave/useWave.js
76664
76844
 
76665
76845
  function useWave(nodeRef, className) {
76666
76846
  function showWave() {
76667
- var _a;
76668
76847
  var node = nodeRef.current;
76669
- // Skip if not exist doc
76670
- var container = ((_a = node.getRootNode) === null || _a === void 0 ? void 0 : _a.call(node)) || (node === null || node === void 0 ? void 0 : node.ownerDocument);
76671
- if (container) {
76672
- showWaveEffect(container, node, className);
76673
- }
76848
+ showWaveEffect(node, className);
76674
76849
  }
76675
76850
  return showWave;
76676
76851
  }
@@ -76728,6 +76903,7 @@ var Wave = function Wave(props) {
76728
76903
  ref: ref
76729
76904
  });
76730
76905
  };
76906
+ if (false) {}
76731
76907
  /* harmony default export */ var wave = (Wave);
76732
76908
  ;// CONCATENATED MODULE: ./node_modules/antd/es/button/button-group.js
76733
76909
 
@@ -77052,8 +77228,7 @@ var genRoundButtonStyle = function genRoundButtonStyle(token) {
77052
77228
  return {
77053
77229
  borderRadius: token.controlHeight,
77054
77230
  paddingInlineStart: token.controlHeight / 2,
77055
- paddingInlineEnd: token.controlHeight / 2,
77056
- width: 'auto'
77231
+ paddingInlineEnd: token.controlHeight / 2
77057
77232
  };
77058
77233
  };
77059
77234
  // =============================== Type ===============================
@@ -77207,27 +77382,34 @@ var genTypeButtonStyle = function genTypeButtonStyle(token) {
77207
77382
  };
77208
77383
  // =============================== Size ===============================
77209
77384
  var genSizeButtonStyle = function genSizeButtonStyle(token) {
77210
- var _$concat$concat;
77385
+ var _$concat, _$concat$concat;
77211
77386
  var sizePrefixCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
77212
77387
  var componentCls = token.componentCls,
77213
- iconCls = token.iconCls;
77214
- var paddingVertical = Math.max(0, (token.controlHeight - token.fontSize * token.lineHeight) / 2 - token.lineWidth);
77215
- var paddingHorizontal = token.buttonPaddingHorizontal - token.lineWidth;
77388
+ iconCls = token.iconCls,
77389
+ controlHeight = token.controlHeight,
77390
+ fontSize = token.fontSize,
77391
+ lineHeight = token.lineHeight,
77392
+ lineWidth = token.lineWidth,
77393
+ borderRadius = token.borderRadius,
77394
+ buttonPaddingHorizontal = token.buttonPaddingHorizontal;
77395
+ var paddingVertical = Math.max(0, (controlHeight - fontSize * lineHeight) / 2 - lineWidth);
77396
+ var paddingHorizontal = buttonPaddingHorizontal - lineWidth;
77216
77397
  var iconOnlyCls = "".concat(componentCls, "-icon-only");
77217
77398
  return [// Size
77218
77399
  esm_defineProperty_defineProperty({}, "".concat(componentCls).concat(sizePrefixCls), (_$concat$concat = {
77219
- fontSize: token.fontSize,
77220
- height: token.controlHeight,
77400
+ fontSize: fontSize,
77401
+ height: controlHeight,
77221
77402
  padding: "".concat(paddingVertical, "px ").concat(paddingHorizontal, "px"),
77222
- borderRadius: token.borderRadius
77223
- }, esm_defineProperty_defineProperty(_$concat$concat, "&".concat(iconOnlyCls), {
77224
- width: token.controlHeight,
77403
+ borderRadius: borderRadius
77404
+ }, esm_defineProperty_defineProperty(_$concat$concat, "&".concat(iconOnlyCls), (_$concat = {
77405
+ width: controlHeight,
77225
77406
  paddingInlineStart: 0,
77226
- paddingInlineEnd: 0,
77227
- '> span': {
77228
- transform: 'scale(1.143)' // 14px -> 16px
77229
- }
77230
- }), esm_defineProperty_defineProperty(_$concat$concat, "&".concat(componentCls, "-loading"), {
77407
+ paddingInlineEnd: 0
77408
+ }, esm_defineProperty_defineProperty(_$concat, "&".concat(componentCls, "-round"), {
77409
+ width: 'auto'
77410
+ }), esm_defineProperty_defineProperty(_$concat, '> span', {
77411
+ transform: 'scale(1.143)' // 14px -> 16px
77412
+ }), _$concat)), esm_defineProperty_defineProperty(_$concat$concat, "&".concat(componentCls, "-loading"), {
77231
77413
  opacity: token.opacityLoading,
77232
77414
  cursor: 'default'
77233
77415
  }), esm_defineProperty_defineProperty(_$concat$concat, "".concat(componentCls, "-loading-icon"), {
@@ -77731,6 +77913,7 @@ var Space = function Space(props) {
77731
77913
  value: spaceContext
77732
77914
  }, nodes)));
77733
77915
  };
77916
+ if (false) {}
77734
77917
  var CompoundedSpace = Space;
77735
77918
  CompoundedSpace.Compact = space_Compact;
77736
77919
  /* harmony default export */ var space = (CompoundedSpace);
@@ -78453,6 +78636,7 @@ var WrapPurePanel = function WrapPurePanel(props) {
78453
78636
  return /*#__PURE__*/external_React_.createElement(dropdown_PurePanel, Object.assign({}, props), /*#__PURE__*/external_React_.createElement("span", null));
78454
78637
  };
78455
78638
  dropdown_Dropdown._InternalPanelDoNotUseOrYouWillBeFired = WrapPurePanel;
78639
+ if (false) {}
78456
78640
  /* harmony default export */ var dropdown = (dropdown_Dropdown);
78457
78641
  ;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/index.js
78458
78642
 
@@ -80513,17 +80697,17 @@ function ProList(props) {
80513
80697
 
80514
80698
  ;// CONCATENATED MODULE: ./packages/components/src/version.ts
80515
80699
  var version_version = {
80516
- "@ant-design/pro-card": "2.1.8",
80517
- "@ant-design/pro-components": "2.3.50",
80518
- "@ant-design/pro-descriptions": "2.0.42",
80519
- "@ant-design/pro-field": "2.2.3",
80520
- "@ant-design/pro-form": "2.5.2",
80521
- "@ant-design/pro-layout": "7.5.2",
80522
- "@ant-design/pro-list": "2.0.43",
80523
- "@ant-design/pro-provider": "2.3.1",
80700
+ "@ant-design/pro-card": "2.1.9",
80701
+ "@ant-design/pro-components": "2.3.51",
80702
+ "@ant-design/pro-descriptions": "2.0.43",
80703
+ "@ant-design/pro-field": "2.2.4",
80704
+ "@ant-design/pro-form": "2.5.3",
80705
+ "@ant-design/pro-layout": "7.6.0",
80706
+ "@ant-design/pro-list": "2.0.44",
80707
+ "@ant-design/pro-provider": "2.4.0",
80524
80708
  "@ant-design/pro-skeleton": "2.0.7",
80525
- "@ant-design/pro-table": "3.2.10",
80526
- "@ant-design/pro-utils": "2.5.2"
80709
+ "@ant-design/pro-table": "3.2.11",
80710
+ "@ant-design/pro-utils": "2.5.3"
80527
80711
  };
80528
80712
  ;// CONCATENATED MODULE: ./packages/components/src/index.tsx
80529
80713