uiw 4.9.9 → 4.10.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/LICENSE +21 -0
- package/dist/uiw.js +124 -92
- package/dist/uiw.min.js +1 -1
- package/package.json +56 -56
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017-present, 小弟调调
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/uiw.js
CHANGED
|
@@ -202,6 +202,7 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
202
202
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
203
203
|
|
|
204
204
|
"use strict";
|
|
205
|
+
var __webpack_unused_export__;
|
|
205
206
|
/** @license React v17.0.2
|
|
206
207
|
* react-jsx-runtime.production.min.js
|
|
207
208
|
*
|
|
@@ -217,12 +218,12 @@ __webpack_require__(115);
|
|
|
217
218
|
var f = __webpack_require__(787),
|
|
218
219
|
g = 60103;
|
|
219
220
|
|
|
220
|
-
|
|
221
|
+
__webpack_unused_export__ = 60107;
|
|
221
222
|
|
|
222
223
|
if ("function" === typeof Symbol && Symbol.for) {
|
|
223
224
|
var h = Symbol.for;
|
|
224
225
|
g = h("react.element");
|
|
225
|
-
|
|
226
|
+
__webpack_unused_export__ = h("react.fragment");
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
@@ -1006,7 +1007,7 @@ try {
|
|
|
1006
1007
|
|
|
1007
1008
|
/***/ }),
|
|
1008
1009
|
|
|
1009
|
-
/***/
|
|
1010
|
+
/***/ 215:
|
|
1010
1011
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1011
1012
|
|
|
1012
1013
|
"use strict";
|
|
@@ -1050,8 +1051,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1050
1051
|
"Layout": function() { return /* reexport */ react_layout_esm; },
|
|
1051
1052
|
"LayoutContext": function() { return /* reexport */ LayoutContext; },
|
|
1052
1053
|
"List": function() { return /* reexport */ react_list_esm; },
|
|
1054
|
+
"ListItem": function() { return /* reexport */ ListItem; },
|
|
1053
1055
|
"Loader": function() { return /* reexport */ react_loader_esm; },
|
|
1054
1056
|
"Menu": function() { return /* reexport */ react_menu_esm; },
|
|
1057
|
+
"MenuDivider": function() { return /* reexport */ MenuDivider; },
|
|
1058
|
+
"MenuItem": function() { return /* reexport */ MenuItem; },
|
|
1055
1059
|
"Message": function() { return /* reexport */ Message; },
|
|
1056
1060
|
"Modal": function() { return /* reexport */ react_modal_esm; },
|
|
1057
1061
|
"MonthPicker": function() { return /* reexport */ MonthPicker; },
|
|
@@ -1073,6 +1077,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1073
1077
|
"Slider": function() { return /* reexport */ Slider; },
|
|
1074
1078
|
"Split": function() { return /* reexport */ Split; },
|
|
1075
1079
|
"Steps": function() { return /* reexport */ react_steps_esm; },
|
|
1080
|
+
"SubMenu": function() { return /* reexport */ SubMenu; },
|
|
1076
1081
|
"Switch": function() { return /* reexport */ react_switch_esm; },
|
|
1077
1082
|
"Table": function() { return /* reexport */ react_table_esm; },
|
|
1078
1083
|
"Tabs": function() { return /* reexport */ Tabs; },
|
|
@@ -1085,7 +1090,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1085
1090
|
"TreeChecked": function() { return /* reexport */ TreeChecked; },
|
|
1086
1091
|
"canUseDOM": function() { return /* reexport */ canUseDOM; },
|
|
1087
1092
|
"formatter": function() { return /* reexport */ esm_formatter; },
|
|
1088
|
-
"getChildKeys": function() { return /* reexport */ getChildKeys; }
|
|
1093
|
+
"getChildKeys": function() { return /* reexport */ getChildKeys; },
|
|
1094
|
+
"randomid": function() { return /* reexport */ randomid; }
|
|
1089
1095
|
});
|
|
1090
1096
|
|
|
1091
1097
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
@@ -1247,6 +1253,8 @@ function _extends() {
|
|
|
1247
1253
|
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"}
|
|
1248
1254
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(787);
|
|
1249
1255
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
|
|
1256
|
+
;// CONCATENATED MODULE: ../utils/esm/noop.js
|
|
1257
|
+
function noop() {}
|
|
1250
1258
|
;// CONCATENATED MODULE: ../utils/esm/getScroll.js
|
|
1251
1259
|
/**
|
|
1252
1260
|
* Gets the scroll value of the given element in the given side (top and left)
|
|
@@ -1272,32 +1280,16 @@ function getScroll(target, top) {
|
|
|
1272
1280
|
|
|
1273
1281
|
return ret;
|
|
1274
1282
|
}
|
|
1275
|
-
;// CONCATENATED MODULE: ../
|
|
1276
|
-
function noop() {}
|
|
1277
|
-
// EXTERNAL MODULE: ../../node_modules/react/jsx-runtime.js
|
|
1278
|
-
var jsx_runtime = __webpack_require__(770);
|
|
1279
|
-
;// CONCATENATED MODULE: ../react-affix/esm/index.js
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
var _excluded = ["prefixCls", "className", "children", "offsetTop", "offsetBottom", "target", "onChange"];
|
|
1283
|
+
;// CONCATENATED MODULE: ../react-affix/esm/utils.js
|
|
1288
1284
|
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
function getTargetRect(target) {
|
|
1285
|
+
var getTargetRect = function getTargetRect(target) {
|
|
1293
1286
|
return target !== window ? target.getBoundingClientRect() : {
|
|
1294
1287
|
top: 0,
|
|
1295
1288
|
left: 0,
|
|
1296
1289
|
bottom: 0
|
|
1297
1290
|
};
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
|
-
function getOffset(element, target) {
|
|
1291
|
+
};
|
|
1292
|
+
var getOffset = function getOffset(element, target) {
|
|
1301
1293
|
var elemRect = element.getBoundingClientRect();
|
|
1302
1294
|
var targetRect = getTargetRect(target);
|
|
1303
1295
|
var scrollTop = getScroll(target, true);
|
|
@@ -1311,11 +1303,25 @@ function getOffset(element, target) {
|
|
|
1311
1303
|
width: elemRect.width,
|
|
1312
1304
|
height: elemRect.height
|
|
1313
1305
|
};
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
function getDefaultTarget() {
|
|
1306
|
+
};
|
|
1307
|
+
var getDefaultTarget = function getDefaultTarget() {
|
|
1317
1308
|
return typeof window !== 'undefined' ? window : null;
|
|
1318
|
-
}
|
|
1309
|
+
};
|
|
1310
|
+
// EXTERNAL MODULE: ../../node_modules/react/jsx-runtime.js
|
|
1311
|
+
var jsx_runtime = __webpack_require__(770);
|
|
1312
|
+
;// CONCATENATED MODULE: ../react-affix/esm/index.js
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
var _excluded = ["prefixCls", "className", "children", "offsetTop", "offsetBottom", "target", "onChange"];
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
|
|
1319
1325
|
|
|
1320
1326
|
var Affix = /*#__PURE__*/function (_React$Component) {
|
|
1321
1327
|
_inherits(Affix, _React$Component);
|
|
@@ -2543,13 +2549,13 @@ function Overlay(props) {
|
|
|
2543
2549
|
var TransitionGroupComp = /*#__PURE__*/(0,jsx_runtime.jsx)(esm_CSSTransition, _extends({
|
|
2544
2550
|
classNames: transitionName,
|
|
2545
2551
|
unmountOnExit: unmountOnExit,
|
|
2546
|
-
timeout: timeout
|
|
2547
|
-
}, otherProps, {
|
|
2552
|
+
timeout: timeout,
|
|
2548
2553
|
in: isOpen,
|
|
2549
2554
|
onEntering: onOpening,
|
|
2550
2555
|
onEntered: onOpened,
|
|
2551
2556
|
onExiting: onClosing,
|
|
2552
|
-
onExited: handleClosed
|
|
2557
|
+
onExited: handleClosed
|
|
2558
|
+
}, otherProps, {
|
|
2553
2559
|
children: function children(status) {
|
|
2554
2560
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
2555
2561
|
style: style,
|
|
@@ -3683,7 +3689,11 @@ function getStyle(options) {
|
|
|
3683
3689
|
usePortal = _ref.usePortal,
|
|
3684
3690
|
autoAdjustOverflow = _ref.autoAdjustOverflow;
|
|
3685
3691
|
|
|
3686
|
-
var sty = {
|
|
3692
|
+
var sty = {
|
|
3693
|
+
left: 0,
|
|
3694
|
+
top: 0,
|
|
3695
|
+
placement: placement
|
|
3696
|
+
};
|
|
3687
3697
|
|
|
3688
3698
|
if (!triggerDom || !popupDom || !document) {
|
|
3689
3699
|
return sty;
|
|
@@ -3951,10 +3961,12 @@ var normalizeDelay = function normalizeDelay(delay) {
|
|
|
3951
3961
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
3952
3962
|
if (isClickOutside) {
|
|
3953
3963
|
document && document.addEventListener('mousedown', handleClickOutside);
|
|
3964
|
+
window.addEventListener('resize', handleResize);
|
|
3954
3965
|
}
|
|
3955
3966
|
|
|
3956
3967
|
return function () {
|
|
3957
3968
|
document && isClickOutside && document.removeEventListener('mousedown', handleClickOutside);
|
|
3969
|
+
window.removeEventListener('resize', handleResize);
|
|
3958
3970
|
};
|
|
3959
3971
|
}, []);
|
|
3960
3972
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
@@ -3963,9 +3975,25 @@ var normalizeDelay = function normalizeDelay(delay) {
|
|
|
3963
3975
|
}
|
|
3964
3976
|
}, [props.isOpen]);
|
|
3965
3977
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
3978
|
+
var styls = getStyle({
|
|
3979
|
+
placement: overlayStyl.placement || placement,
|
|
3980
|
+
trigger: triggerRef.current,
|
|
3981
|
+
popup: popupRef.current,
|
|
3982
|
+
usePortal: usePortal,
|
|
3983
|
+
autoAdjustOverflow: autoAdjustOverflow
|
|
3984
|
+
});
|
|
3985
|
+
setOverlayStyl(_extends({}, styls, {
|
|
3986
|
+
zIndex: zIndex.current
|
|
3987
|
+
}));
|
|
3966
3988
|
onVisibleChange(isOpen);
|
|
3967
3989
|
}, [isOpen]);
|
|
3968
3990
|
|
|
3991
|
+
var handleResize = function handleResize() {
|
|
3992
|
+
zIndex.current -= 1;
|
|
3993
|
+
setIsOpen(false);
|
|
3994
|
+
onVisibleChange && onVisibleChange(false);
|
|
3995
|
+
};
|
|
3996
|
+
|
|
3969
3997
|
var handleClickOutside = function handleClickOutside(e) {
|
|
3970
3998
|
var popNode = popupRef.current;
|
|
3971
3999
|
var childNode = triggerRef.current;
|
|
@@ -4858,7 +4886,7 @@ function DatePickerCaption(props) {
|
|
|
4858
4886
|
|
|
4859
4887
|
|
|
4860
4888
|
|
|
4861
|
-
var react_date_picker_esm_excluded = ["prefixCls", "className", "weekday", "weekTitle", "monthLabel", "date", "today", "todayButton", "panelDate", "disabledDate", "renderDay", "onChange", "showTime"];
|
|
4889
|
+
var react_date_picker_esm_excluded = ["prefixCls", "className", "weekday", "weekTitle", "monthLabel", "date", "today", "todayButton", "panelDate", "disabledDate", "renderDay", "onChange", "onPanelChange", "showTime"];
|
|
4862
4890
|
|
|
4863
4891
|
|
|
4864
4892
|
|
|
@@ -4893,6 +4921,8 @@ function DatePicker(props) {
|
|
|
4893
4921
|
renderDay = props.renderDay,
|
|
4894
4922
|
_props$onChange = props.onChange,
|
|
4895
4923
|
onChange = _props$onChange === void 0 ? noop : _props$onChange,
|
|
4924
|
+
_props$onPanelChange = props.onPanelChange,
|
|
4925
|
+
onPanelChange = _props$onPanelChange === void 0 ? noop : _props$onPanelChange,
|
|
4896
4926
|
showTime = props.showTime,
|
|
4897
4927
|
other = _objectWithoutPropertiesLoose(props, react_date_picker_esm_excluded);
|
|
4898
4928
|
|
|
@@ -4941,6 +4971,11 @@ function DatePicker(props) {
|
|
|
4941
4971
|
}
|
|
4942
4972
|
|
|
4943
4973
|
currentDate.setMonth(month);
|
|
4974
|
+
|
|
4975
|
+
if (curType === 'prev' || curType === 'next') {
|
|
4976
|
+
onPanelChange && onPanelChange(new Date(currentDate), curType);
|
|
4977
|
+
}
|
|
4978
|
+
|
|
4944
4979
|
setSelectPanelDate(curType === 'today' ? today : currentDate);
|
|
4945
4980
|
setSelectDate(curType === 'today' ? today : currentDate);
|
|
4946
4981
|
setType('day');
|
|
@@ -6667,8 +6702,7 @@ var esm_Item_excluded = ["prefixCls", "className", "children", "extra", "tagName
|
|
|
6667
6702
|
|
|
6668
6703
|
|
|
6669
6704
|
|
|
6670
|
-
|
|
6671
|
-
var Item_Item = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
6705
|
+
var ListItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
6672
6706
|
var _props$prefixCls = props.prefixCls,
|
|
6673
6707
|
prefixCls = _props$prefixCls === void 0 ? 'w-list-item' : _props$prefixCls,
|
|
6674
6708
|
className = props.className,
|
|
@@ -6685,20 +6719,17 @@ var Item_Item = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
6685
6719
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TagName, _extends({}, resetProps, {
|
|
6686
6720
|
className: cls,
|
|
6687
6721
|
ref: ref
|
|
6688
|
-
}), /*#__PURE__*/(0,jsx_runtime.
|
|
6689
|
-
children:
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
})]
|
|
6697
|
-
})
|
|
6722
|
+
}), !extra || resetProps.href ? children : /*#__PURE__*/(0,jsx_runtime.jsxs)(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, {
|
|
6723
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6724
|
+
className: prefixCls + "-main",
|
|
6725
|
+
children: children
|
|
6726
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6727
|
+
className: prefixCls + "-extra",
|
|
6728
|
+
children: extra
|
|
6729
|
+
})]
|
|
6698
6730
|
}));
|
|
6699
6731
|
});
|
|
6700
|
-
|
|
6701
|
-
/* harmony default export */ var esm_Item = (Item_Item);
|
|
6732
|
+
ListItem.displayName = 'List.Item';
|
|
6702
6733
|
;// CONCATENATED MODULE: ../react-list/esm/style/index.css
|
|
6703
6734
|
// extracted by mini-css-extract-plugin
|
|
6704
6735
|
/* harmony default export */ var react_list_esm_style = ({});
|
|
@@ -6768,9 +6799,9 @@ function InternalList(props, ref) {
|
|
|
6768
6799
|
}
|
|
6769
6800
|
|
|
6770
6801
|
var List = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalList);
|
|
6771
|
-
List.Item =
|
|
6802
|
+
List.Item = ListItem;
|
|
6772
6803
|
/* harmony default export */ var react_list_esm = (List);
|
|
6773
|
-
;// CONCATENATED MODULE:
|
|
6804
|
+
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Layout.js
|
|
6774
6805
|
|
|
6775
6806
|
|
|
6776
6807
|
|
|
@@ -6867,7 +6898,7 @@ Layout.Content = void 0;
|
|
|
6867
6898
|
Layout.defaultProps = {
|
|
6868
6899
|
prefixCls: 'w-layout'
|
|
6869
6900
|
};
|
|
6870
|
-
;// CONCATENATED MODULE:
|
|
6901
|
+
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Header.js
|
|
6871
6902
|
|
|
6872
6903
|
|
|
6873
6904
|
var Header_excluded = ["prefixCls", "className", "children"];
|
|
@@ -6891,7 +6922,7 @@ var Header_excluded = ["prefixCls", "className", "children"];
|
|
|
6891
6922
|
children: children
|
|
6892
6923
|
}));
|
|
6893
6924
|
});
|
|
6894
|
-
;// CONCATENATED MODULE:
|
|
6925
|
+
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Footer.js
|
|
6895
6926
|
|
|
6896
6927
|
|
|
6897
6928
|
var Footer_excluded = ["prefixCls", "className", "children"];
|
|
@@ -6915,14 +6946,7 @@ var Footer_excluded = ["prefixCls", "className", "children"];
|
|
|
6915
6946
|
children: children
|
|
6916
6947
|
}));
|
|
6917
6948
|
});
|
|
6918
|
-
;// CONCATENATED MODULE:
|
|
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
|
|
6949
|
+
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Sider.js
|
|
6926
6950
|
|
|
6927
6951
|
|
|
6928
6952
|
|
|
@@ -6930,7 +6954,9 @@ var Sider_excluded = ["prefixCls", "className", "style", "children", "width", "c
|
|
|
6930
6954
|
|
|
6931
6955
|
|
|
6932
6956
|
|
|
6933
|
-
|
|
6957
|
+
function randomid() {
|
|
6958
|
+
return parseInt(String(Math.random() * 1e15), 10).toString(36);
|
|
6959
|
+
}
|
|
6934
6960
|
|
|
6935
6961
|
function Sider(props) {
|
|
6936
6962
|
if (props === void 0) {
|
|
@@ -7002,7 +7028,7 @@ function Sider(props) {
|
|
|
7002
7028
|
}
|
|
7003
7029
|
});
|
|
7004
7030
|
});
|
|
7005
|
-
;// CONCATENATED MODULE:
|
|
7031
|
+
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Content.js
|
|
7006
7032
|
|
|
7007
7033
|
|
|
7008
7034
|
var Content_excluded = ["prefixCls", "className", "children"];
|
|
@@ -7026,10 +7052,10 @@ var Content_excluded = ["prefixCls", "className", "children"];
|
|
|
7026
7052
|
children: children
|
|
7027
7053
|
}));
|
|
7028
7054
|
});
|
|
7029
|
-
;// CONCATENATED MODULE:
|
|
7055
|
+
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/style/index.css
|
|
7030
7056
|
// extracted by mini-css-extract-plugin
|
|
7031
7057
|
/* harmony default export */ var react_layout_esm_style = ({});
|
|
7032
|
-
;// CONCATENATED MODULE:
|
|
7058
|
+
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/index.js
|
|
7033
7059
|
|
|
7034
7060
|
|
|
7035
7061
|
|
|
@@ -7138,7 +7164,8 @@ var disabledProps = {
|
|
|
7138
7164
|
onMouseLeave: undefined,
|
|
7139
7165
|
tabIndex: -1
|
|
7140
7166
|
};
|
|
7141
|
-
|
|
7167
|
+
|
|
7168
|
+
function Internal(props, ref) {
|
|
7142
7169
|
var _props$prefixCls = props.prefixCls,
|
|
7143
7170
|
prefixCls = _props$prefixCls === void 0 ? 'w-menu-item' : _props$prefixCls,
|
|
7144
7171
|
className = props.className,
|
|
@@ -7177,47 +7204,42 @@ var MenuItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
|
|
|
7177
7204
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
7178
7205
|
children: [" ", tagComp, " "]
|
|
7179
7206
|
});
|
|
7180
|
-
}
|
|
7207
|
+
}
|
|
7208
|
+
|
|
7209
|
+
var MenuItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(Internal);
|
|
7181
7210
|
MenuItem.displayName = 'uiw.MenuItem';
|
|
7182
|
-
/* harmony default export */ var esm_MenuItem = (MenuItem);
|
|
7183
7211
|
;// CONCATENATED MODULE: ../react-menu/esm/Divider.js
|
|
7184
7212
|
|
|
7185
7213
|
|
|
7186
7214
|
var Divider_excluded = ["prefixCls", "className", "title"];
|
|
7187
7215
|
|
|
7188
7216
|
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
if (props === void 0) {
|
|
7192
|
-
props = {};
|
|
7193
|
-
}
|
|
7194
|
-
|
|
7195
|
-
var _props = props,
|
|
7196
|
-
_props$prefixCls = _props.prefixCls,
|
|
7217
|
+
var MenuDivider = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
7218
|
+
var _props$prefixCls = props.prefixCls,
|
|
7197
7219
|
prefixCls = _props$prefixCls === void 0 ? 'w-menu-divider' : _props$prefixCls,
|
|
7198
|
-
className =
|
|
7199
|
-
title =
|
|
7220
|
+
className = props.className,
|
|
7221
|
+
title = props.title,
|
|
7200
7222
|
htmlProps = _objectWithoutPropertiesLoose(props, Divider_excluded);
|
|
7201
7223
|
|
|
7202
7224
|
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
7203
7225
|
|
|
7204
7226
|
if (!title) {
|
|
7205
7227
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", _extends({}, htmlProps, {
|
|
7228
|
+
ref: ref,
|
|
7206
7229
|
className: cls
|
|
7207
7230
|
}));
|
|
7208
7231
|
}
|
|
7209
7232
|
|
|
7210
7233
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", _extends({}, htmlProps, {
|
|
7234
|
+
ref: ref,
|
|
7211
7235
|
className: cls,
|
|
7212
7236
|
"data-menu": "divider",
|
|
7213
7237
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
7214
7238
|
children: title
|
|
7215
7239
|
})
|
|
7216
7240
|
}));
|
|
7217
|
-
}
|
|
7218
|
-
|
|
7219
|
-
Divider.displayName = 'uiw.MenuDivider';
|
|
7220
|
-
/* harmony default export */ var esm_Divider = (Divider);
|
|
7241
|
+
});
|
|
7242
|
+
MenuDivider.displayName = 'uiw.MenuDivider';
|
|
7221
7243
|
;// CONCATENATED MODULE: ../react-menu/esm/style/submenu.css
|
|
7222
7244
|
// extracted by mini-css-extract-plugin
|
|
7223
7245
|
/* harmony default export */ var submenu = ({});
|
|
@@ -7347,8 +7369,8 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
7347
7369
|
overlayTriggerProps.onEntering = onEntering;
|
|
7348
7370
|
} else {
|
|
7349
7371
|
overlayTriggerProps.className = prefixCls + "-popup";
|
|
7350
|
-
overlayTriggerProps.trigger = 'hover';
|
|
7351
|
-
|
|
7372
|
+
overlayTriggerProps.trigger = 'hover';
|
|
7373
|
+
overlayTriggerProps.usePortal = true;
|
|
7352
7374
|
menuProps.onClick = onClick;
|
|
7353
7375
|
}
|
|
7354
7376
|
|
|
@@ -7369,7 +7391,7 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
7369
7391
|
paddingLeft: inlineIndent
|
|
7370
7392
|
} : {}
|
|
7371
7393
|
})),
|
|
7372
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
7394
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MenuItem, _extends({}, other, {
|
|
7373
7395
|
ref: null,
|
|
7374
7396
|
disabled: disabled,
|
|
7375
7397
|
isSubMenuItem: true,
|
|
@@ -7384,7 +7406,6 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
7384
7406
|
});
|
|
7385
7407
|
});
|
|
7386
7408
|
SubMenu.displayName = 'uiw.SubMenu';
|
|
7387
|
-
/* harmony default export */ var esm_SubMenu = (SubMenu);
|
|
7388
7409
|
;// CONCATENATED MODULE: ../react-menu/esm/style/menu.css
|
|
7389
7410
|
// extracted by mini-css-extract-plugin
|
|
7390
7411
|
/* harmony default export */ var menu = ({});
|
|
@@ -7422,7 +7443,7 @@ var Menu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_r
|
|
|
7422
7443
|
if (! /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) return child;
|
|
7423
7444
|
var props = {}; // Sub Menu
|
|
7424
7445
|
|
|
7425
|
-
if (child.props.children && child.type ===
|
|
7446
|
+
if (child.props.children && child.type === SubMenu) {
|
|
7426
7447
|
props.inlineIndent = inlineIndent;
|
|
7427
7448
|
}
|
|
7428
7449
|
|
|
@@ -7432,10 +7453,10 @@ var Menu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_r
|
|
|
7432
7453
|
})
|
|
7433
7454
|
}));
|
|
7434
7455
|
});
|
|
7435
|
-
Menu.Item = esm_MenuItem;
|
|
7436
|
-
Menu.SubMenu = esm_SubMenu;
|
|
7437
|
-
Menu.Divider = esm_Divider;
|
|
7438
7456
|
Menu.displayName = 'uiw.Menu';
|
|
7457
|
+
Menu.Item = MenuItem;
|
|
7458
|
+
Menu.SubMenu = SubMenu;
|
|
7459
|
+
Menu.Divider = MenuDivider;
|
|
7439
7460
|
/* harmony default export */ var esm_Menu = (Menu);
|
|
7440
7461
|
;// CONCATENATED MODULE: ../react-menu/esm/index.js
|
|
7441
7462
|
|
|
@@ -7720,6 +7741,13 @@ function MonthPicker(props) {
|
|
|
7720
7741
|
}))
|
|
7721
7742
|
}));
|
|
7722
7743
|
}
|
|
7744
|
+
;// CONCATENATED MODULE: ../utils/esm/randomid.js
|
|
7745
|
+
/**
|
|
7746
|
+
* Returns a random text
|
|
7747
|
+
*/
|
|
7748
|
+
function randomid_randomid() {
|
|
7749
|
+
return parseInt(String(Math.random() * 1e15), 10).toString(36);
|
|
7750
|
+
}
|
|
7723
7751
|
;// CONCATENATED MODULE: ../react-notify/esm/Container.js
|
|
7724
7752
|
|
|
7725
7753
|
|
|
@@ -7921,7 +7949,7 @@ function NotificationCreate(props, type) {
|
|
|
7921
7949
|
if (esm_notifys[props.placement]) {
|
|
7922
7950
|
esm_notifys[props.placement].create(_extends({}, props, {
|
|
7923
7951
|
duration: props.duration,
|
|
7924
|
-
key:
|
|
7952
|
+
key: randomid_randomid(),
|
|
7925
7953
|
willUnmount: function willUnmount(nprops, notifysChild) {
|
|
7926
7954
|
if (!nprops) return;
|
|
7927
7955
|
nprops.onClose && nprops.onClose();
|
|
@@ -7956,12 +7984,13 @@ function NotificationCreate(props, type) {
|
|
|
7956
7984
|
|
|
7957
7985
|
|
|
7958
7986
|
|
|
7959
|
-
var react_pagination_esm_excluded = ["className", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"];
|
|
7987
|
+
var react_pagination_esm_excluded = ["className", "style", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"];
|
|
7960
7988
|
|
|
7961
7989
|
|
|
7962
7990
|
|
|
7963
7991
|
function Pagination(props) {
|
|
7964
7992
|
var className = props.className,
|
|
7993
|
+
style = props.style,
|
|
7965
7994
|
_props$prefixCls = props.prefixCls,
|
|
7966
7995
|
prefixCls = _props$prefixCls === void 0 ? 'w-pagination' : _props$prefixCls,
|
|
7967
7996
|
_props$alignment = props.alignment,
|
|
@@ -8106,7 +8135,10 @@ function Pagination(props) {
|
|
|
8106
8135
|
}
|
|
8107
8136
|
|
|
8108
8137
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", _extends({
|
|
8109
|
-
className: cls
|
|
8138
|
+
className: cls,
|
|
8139
|
+
style: _extends({}, style, {
|
|
8140
|
+
textAlign: alignment
|
|
8141
|
+
})
|
|
8110
8142
|
}, other, {
|
|
8111
8143
|
children: initPageSoure.map(function (item, idx) {
|
|
8112
8144
|
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
@@ -10961,7 +10993,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
|
|
|
10961
10993
|
/******/ // startup
|
|
10962
10994
|
/******/ // Load entry module and return exports
|
|
10963
10995
|
/******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
|
|
10964
|
-
/******/ var __webpack_exports__ = __webpack_require__(
|
|
10996
|
+
/******/ var __webpack_exports__ = __webpack_require__(215);
|
|
10965
10997
|
/******/
|
|
10966
10998
|
/******/ return __webpack_exports__;
|
|
10967
10999
|
/******/ })()
|