uiw 4.21.0 → 4.21.1

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.
package/dist/uiw.js CHANGED
@@ -1519,7 +1519,7 @@ function Portal(props) {
1519
1519
  ;// CONCATENATED MODULE: ../react-overlay/esm/index.js
1520
1520
 
1521
1521
 
1522
- var esm_excluded = ["className", "style", "isOpen", "prefixCls", "usePortal", "maskClosable", "backdropProps", "portalProps", "hasBackdrop", "unmountOnExit", "timeout", "transitionName", "onOpening", "onOpened", "onClosing", "onClosed", "onClose", "onEnter", "children", "dialogProps"];
1522
+ var esm_excluded = ["className", "style", "isOpen", "prefixCls", "usePortal", "maskClosable", "backdropProps", "portalProps", "hasBackdrop", "unmountOnExit", "timeout", "transitionName", "onOpening", "onOpened", "onClosing", "onClosed", "onClose", "onEnter", "onExiting", "onEntering", "onEntered", "onExit", "children", "dialogProps"];
1523
1523
 
1524
1524
  /**
1525
1525
  * Overlay 组件
@@ -1561,6 +1561,10 @@ function Overlay(props) {
1561
1561
  onClosed = noop,
1562
1562
  onClose = noop,
1563
1563
  onEnter: _onEnter = noop,
1564
+ onExiting: _onExiting = noop,
1565
+ onEntering: _onEntering = noop,
1566
+ onEntered: _onEntered = noop,
1567
+ onExit = noop,
1564
1568
  children,
1565
1569
  dialogProps = {}
1566
1570
  } = props,
@@ -1635,20 +1639,27 @@ function Overlay(props) {
1635
1639
  unmountOnExit: unmountOnExit,
1636
1640
  timeout: timeout,
1637
1641
  in: isOpen,
1638
- onEnter: (_, isAppearing) => {
1642
+ onEnter: isAppearing => {
1639
1643
  _onEnter(overlay.current, isAppearing);
1640
1644
  },
1641
- onEntering: (_, isAppearing) => {
1645
+ onEntering: isAppearing => {
1642
1646
  onOpening(overlay.current, isAppearing);
1647
+
1648
+ _onEntering(overlay.current);
1643
1649
  },
1644
- onEntered: (_, isAppearing) => {
1650
+ onEntered: isAppearing => {
1645
1651
  onOpened(overlay.current, isAppearing);
1652
+
1653
+ _onEntered(overlay.current);
1646
1654
  },
1647
1655
  onExiting: () => {
1648
1656
  onClosing(overlay.current);
1657
+
1658
+ _onExiting(overlay.current);
1649
1659
  },
1650
1660
  onExited: () => {
1651
1661
  handleClosed(overlay.current);
1662
+ onExit(overlay.current);
1652
1663
  },
1653
1664
  nodeRef: overlay
1654
1665
  }, otherProps, {
@@ -2387,7 +2398,7 @@ var react_button_group_esm_excluded = ["prefixCls", "vertical", "children", "cla
2387
2398
 
2388
2399
  ;// CONCATENATED MODULE: ../../node_modules/@uiw/formatter/esm/index.js
2389
2400
  /**!
2390
- * @uiw/formatter v1.3.2
2401
+ * @uiw/formatter v1.3.3
2391
2402
  * Get a formatted date.
2392
2403
  *
2393
2404
  * Copyright (c) 2022 Kenny Wang <wowohoo@qq.com>
@@ -2430,7 +2441,6 @@ formatter.utc = function (str, date) {
2430
2441
  };
2431
2442
 
2432
2443
 
2433
- //# sourceMappingURL=index.js.map
2434
2444
 
2435
2445
  ;// CONCATENATED MODULE: ../react-overlay-trigger/esm/utils.js
2436
2446
  var utils_canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
@@ -2962,11 +2972,13 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
2962
2972
  }
2963
2973
 
2964
2974
  function handleShow() {
2975
+ var _props$children;
2976
+
2965
2977
  clearTimeouts();
2966
2978
  hoverStateRef.current = 'show';
2967
2979
  var delay = normalizeDelay(props.delay);
2968
2980
 
2969
- if (!delay.show) {
2981
+ if (!delay.show && !((_props$children = props.children) != null && _props$children.props.disabled)) {
2970
2982
  _show();
2971
2983
 
2972
2984
  return;
@@ -2975,6 +2987,7 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
2975
2987
  var handle = window.setTimeout(() => {
2976
2988
  if (hoverStateRef.current === 'show') _show();
2977
2989
  }, delay.show);
2990
+ clearTimeout(handle);
2978
2991
  timeoutRef.current.push(handle);
2979
2992
  }
2980
2993
 
@@ -4597,25 +4610,25 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
4597
4610
  }
4598
4611
 
4599
4612
  function onExit(node) {
4600
- node && (node.style.height = node.scrollHeight + "px");
4613
+ node.style.height = node.scrollHeight + "px";
4601
4614
  setIsOpen(false);
4602
4615
  }
4603
4616
 
4604
4617
  function onExiting(node) {
4605
- node && (node.style.height = '0px');
4618
+ node.style.height = '0px';
4606
4619
  }
4607
4620
 
4608
4621
  function onEnter(node) {
4609
- node && (node.style.height = '1px');
4622
+ node.style.height = '1px';
4610
4623
  setIsOpen(true);
4611
4624
  }
4612
4625
 
4613
4626
  function onEntering(node) {
4614
- node && (node.style.height = node.scrollHeight + "px");
4627
+ node.style.height = node.scrollHeight + "px";
4615
4628
  }
4616
4629
 
4617
4630
  function onEntered(node) {
4618
- node && (node.style.height = 'initial');
4631
+ node.style.height = 'initial';
4619
4632
  }
4620
4633
 
4621
4634
  if (!collapse) {
@@ -9595,6 +9608,8 @@ var react_switch_esm_excluded = ["prefixCls"];
9595
9608
  // extracted by mini-css-extract-plugin
9596
9609
  /* harmony default export */ const react_table_esm_style = ({});
9597
9610
  ;// CONCATENATED MODULE: ../react-table/esm/util.js
9611
+
9612
+
9598
9613
  /**
9599
9614
  * Get colspan number
9600
9615
  * @param {Array} date
@@ -9750,6 +9765,10 @@ function getAllColumnsKeys(data, keys) {
9750
9765
  keys = keys.concat(getAllColumnsKeys(data[i].children || []));
9751
9766
  } else if (data[i].key) {
9752
9767
  keys.push(data[i]);
9768
+ } else {
9769
+ keys.push(_extends({}, data[i], {
9770
+ key: i.toString()
9771
+ }));
9753
9772
  }
9754
9773
  }
9755
9774
 
@@ -10348,7 +10367,7 @@ function Table(props) {
10348
10367
  }), data && data.length === 0 && empty && /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
10349
10368
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
10350
10369
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
10351
- colSpan: columns.length,
10370
+ colSpan: self.keys.length,
10352
10371
  style: {
10353
10372
  position: 'relative',
10354
10373
  left: 0