uiw 4.9.9 → 4.9.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/uiw.js CHANGED
@@ -1006,7 +1006,7 @@ try {
1006
1006
 
1007
1007
  /***/ }),
1008
1008
 
1009
- /***/ 686:
1009
+ /***/ 715:
1010
1010
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1011
1011
 
1012
1012
  "use strict";
@@ -1085,7 +1085,8 @@ __webpack_require__.d(__webpack_exports__, {
1085
1085
  "TreeChecked": function() { return /* reexport */ TreeChecked; },
1086
1086
  "canUseDOM": function() { return /* reexport */ canUseDOM; },
1087
1087
  "formatter": function() { return /* reexport */ esm_formatter; },
1088
- "getChildKeys": function() { return /* reexport */ getChildKeys; }
1088
+ "getChildKeys": function() { return /* reexport */ getChildKeys; },
1089
+ "randomid": function() { return /* reexport */ randomid; }
1089
1090
  });
1090
1091
 
1091
1092
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
@@ -2543,13 +2544,13 @@ function Overlay(props) {
2543
2544
  var TransitionGroupComp = /*#__PURE__*/(0,jsx_runtime.jsx)(esm_CSSTransition, _extends({
2544
2545
  classNames: transitionName,
2545
2546
  unmountOnExit: unmountOnExit,
2546
- timeout: timeout
2547
- }, otherProps, {
2547
+ timeout: timeout,
2548
2548
  in: isOpen,
2549
2549
  onEntering: onOpening,
2550
2550
  onEntered: onOpened,
2551
2551
  onExiting: onClosing,
2552
- onExited: handleClosed,
2552
+ onExited: handleClosed
2553
+ }, otherProps, {
2553
2554
  children: function children(status) {
2554
2555
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
2555
2556
  style: style,
@@ -3963,6 +3964,16 @@ var normalizeDelay = function normalizeDelay(delay) {
3963
3964
  }
3964
3965
  }, [props.isOpen]);
3965
3966
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3967
+ var styls = getStyle({
3968
+ placement: overlayStyl.placement || placement,
3969
+ trigger: triggerRef.current,
3970
+ popup: popupRef.current,
3971
+ usePortal: usePortal,
3972
+ autoAdjustOverflow: autoAdjustOverflow
3973
+ });
3974
+ setOverlayStyl(_extends({}, styls, {
3975
+ zIndex: zIndex.current
3976
+ }));
3966
3977
  onVisibleChange(isOpen);
3967
3978
  }, [isOpen]);
3968
3979
 
@@ -4858,7 +4869,7 @@ function DatePickerCaption(props) {
4858
4869
 
4859
4870
 
4860
4871
 
4861
- var react_date_picker_esm_excluded = ["prefixCls", "className", "weekday", "weekTitle", "monthLabel", "date", "today", "todayButton", "panelDate", "disabledDate", "renderDay", "onChange", "showTime"];
4872
+ var react_date_picker_esm_excluded = ["prefixCls", "className", "weekday", "weekTitle", "monthLabel", "date", "today", "todayButton", "panelDate", "disabledDate", "renderDay", "onChange", "onPanelChange", "showTime"];
4862
4873
 
4863
4874
 
4864
4875
 
@@ -4893,6 +4904,8 @@ function DatePicker(props) {
4893
4904
  renderDay = props.renderDay,
4894
4905
  _props$onChange = props.onChange,
4895
4906
  onChange = _props$onChange === void 0 ? noop : _props$onChange,
4907
+ _props$onPanelChange = props.onPanelChange,
4908
+ onPanelChange = _props$onPanelChange === void 0 ? noop : _props$onPanelChange,
4896
4909
  showTime = props.showTime,
4897
4910
  other = _objectWithoutPropertiesLoose(props, react_date_picker_esm_excluded);
4898
4911
 
@@ -4941,6 +4954,11 @@ function DatePicker(props) {
4941
4954
  }
4942
4955
 
4943
4956
  currentDate.setMonth(month);
4957
+
4958
+ if (curType === 'prev' || curType === 'next') {
4959
+ onPanelChange && onPanelChange(new Date(currentDate), curType);
4960
+ }
4961
+
4944
4962
  setSelectPanelDate(curType === 'today' ? today : currentDate);
4945
4963
  setSelectDate(curType === 'today' ? today : currentDate);
4946
4964
  setType('day');
@@ -6770,7 +6788,7 @@ function InternalList(props, ref) {
6770
6788
  var List = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalList);
6771
6789
  List.Item = esm_Item;
6772
6790
  /* harmony default export */ var react_list_esm = (List);
6773
- ;// CONCATENATED MODULE: ../react-layout/esm/Layout.js
6791
+ ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Layout.js
6774
6792
 
6775
6793
 
6776
6794
 
@@ -6867,7 +6885,7 @@ Layout.Content = void 0;
6867
6885
  Layout.defaultProps = {
6868
6886
  prefixCls: 'w-layout'
6869
6887
  };
6870
- ;// CONCATENATED MODULE: ../react-layout/esm/Header.js
6888
+ ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Header.js
6871
6889
 
6872
6890
 
6873
6891
  var Header_excluded = ["prefixCls", "className", "children"];
@@ -6891,7 +6909,7 @@ var Header_excluded = ["prefixCls", "className", "children"];
6891
6909
  children: children
6892
6910
  }));
6893
6911
  });
6894
- ;// CONCATENATED MODULE: ../react-layout/esm/Footer.js
6912
+ ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Footer.js
6895
6913
 
6896
6914
 
6897
6915
  var Footer_excluded = ["prefixCls", "className", "children"];
@@ -6915,14 +6933,7 @@ var Footer_excluded = ["prefixCls", "className", "children"];
6915
6933
  children: children
6916
6934
  }));
6917
6935
  });
6918
- ;// CONCATENATED MODULE: ../utils/esm/randomid.js
6919
- /**
6920
- * Returns a random text
6921
- */
6922
- function randomid() {
6923
- return parseInt(String(Math.random() * 1e15), 10).toString(36);
6924
- }
6925
- ;// CONCATENATED MODULE: ../react-layout/esm/Sider.js
6936
+ ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Sider.js
6926
6937
 
6927
6938
 
6928
6939
 
@@ -6930,7 +6941,9 @@ var Sider_excluded = ["prefixCls", "className", "style", "children", "width", "c
6930
6941
 
6931
6942
 
6932
6943
 
6933
-
6944
+ function randomid() {
6945
+ return parseInt(String(Math.random() * 1e15), 10).toString(36);
6946
+ }
6934
6947
 
6935
6948
  function Sider(props) {
6936
6949
  if (props === void 0) {
@@ -7002,7 +7015,7 @@ function Sider(props) {
7002
7015
  }
7003
7016
  });
7004
7017
  });
7005
- ;// CONCATENATED MODULE: ../react-layout/esm/Content.js
7018
+ ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Content.js
7006
7019
 
7007
7020
 
7008
7021
  var Content_excluded = ["prefixCls", "className", "children"];
@@ -7026,10 +7039,10 @@ var Content_excluded = ["prefixCls", "className", "children"];
7026
7039
  children: children
7027
7040
  }));
7028
7041
  });
7029
- ;// CONCATENATED MODULE: ../react-layout/esm/style/index.css
7042
+ ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/style/index.css
7030
7043
  // extracted by mini-css-extract-plugin
7031
7044
  /* harmony default export */ var react_layout_esm_style = ({});
7032
- ;// CONCATENATED MODULE: ../react-layout/esm/index.js
7045
+ ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/index.js
7033
7046
 
7034
7047
 
7035
7048
 
@@ -7347,8 +7360,8 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
7347
7360
  overlayTriggerProps.onEntering = onEntering;
7348
7361
  } else {
7349
7362
  overlayTriggerProps.className = prefixCls + "-popup";
7350
- overlayTriggerProps.trigger = 'hover'; // overlayTriggerProps.usePortal = true;
7351
-
7363
+ overlayTriggerProps.trigger = 'hover';
7364
+ overlayTriggerProps.usePortal = true;
7352
7365
  menuProps.onClick = onClick;
7353
7366
  }
7354
7367
 
@@ -7720,6 +7733,13 @@ function MonthPicker(props) {
7720
7733
  }))
7721
7734
  }));
7722
7735
  }
7736
+ ;// CONCATENATED MODULE: ../utils/esm/randomid.js
7737
+ /**
7738
+ * Returns a random text
7739
+ */
7740
+ function randomid_randomid() {
7741
+ return parseInt(String(Math.random() * 1e15), 10).toString(36);
7742
+ }
7723
7743
  ;// CONCATENATED MODULE: ../react-notify/esm/Container.js
7724
7744
 
7725
7745
 
@@ -7921,7 +7941,7 @@ function NotificationCreate(props, type) {
7921
7941
  if (esm_notifys[props.placement]) {
7922
7942
  esm_notifys[props.placement].create(_extends({}, props, {
7923
7943
  duration: props.duration,
7924
- key: randomid(),
7944
+ key: randomid_randomid(),
7925
7945
  willUnmount: function willUnmount(nprops, notifysChild) {
7926
7946
  if (!nprops) return;
7927
7947
  nprops.onClose && nprops.onClose();
@@ -10961,7 +10981,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
10961
10981
  /******/ // startup
10962
10982
  /******/ // Load entry module and return exports
10963
10983
  /******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
10964
- /******/ var __webpack_exports__ = __webpack_require__(686);
10984
+ /******/ var __webpack_exports__ = __webpack_require__(715);
10965
10985
  /******/
10966
10986
  /******/ return __webpack_exports__;
10967
10987
  /******/ })()