@luminati-io/uikit 6.2.8 → 6.2.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -34688,6 +34688,7 @@ var Z_INDEX = {
|
|
34688
34688
|
stickyHeader: 3,
|
34689
34689
|
popover: 1000,
|
34690
34690
|
backdrop: 1040,
|
34691
|
+
drawer: 1050,
|
34691
34692
|
datepicker: 2000,
|
34692
34693
|
tooltip: 9999,
|
34693
34694
|
dropdown: 999999,
|
@@ -34720,40 +34721,41 @@ __webpack_require__.r(__webpack_exports__);
|
|
34720
34721
|
/* harmony export */ Breadcrumbs: () => (/* reexport safe */ _breadcrumbs__WEBPACK_IMPORTED_MODULE_9__.Breadcrumbs),
|
34721
34722
|
/* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_8__.Button),
|
34722
34723
|
/* harmony export */ Chart: () => (/* reexport safe */ _chart__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
34723
|
-
/* harmony export */ ClickableTag: () => (/* reexport safe */
|
34724
|
+
/* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.ClickableTag),
|
34724
34725
|
/* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_10__.Code),
|
34725
34726
|
/* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_10__.CodeBlock),
|
34726
34727
|
/* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_10__.CodeSnippet),
|
34727
34728
|
/* harmony export */ ComboButton: () => (/* reexport safe */ _combo_button__WEBPACK_IMPORTED_MODULE_11__.ComboButton),
|
34728
|
-
/* harmony export */
|
34729
|
-
/* harmony export */
|
34730
|
-
/* harmony export */
|
34729
|
+
/* harmony export */ Drawer: () => (/* reexport safe */ _drawer__WEBPACK_IMPORTED_MODULE_12__.Drawer),
|
34730
|
+
/* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_21__.Icon),
|
34731
|
+
/* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_22__.IconButton),
|
34732
|
+
/* harmony export */ InfoChip: () => (/* reexport safe */ _infochip__WEBPACK_IMPORTED_MODULE_23__.InfoChip),
|
34731
34733
|
/* harmony export */ Input: () => (/* reexport module object */ _input__WEBPACK_IMPORTED_MODULE_1__),
|
34732
34734
|
/* harmony export */ Layout: () => (/* reexport module object */ _layout__WEBPACK_IMPORTED_MODULE_2__),
|
34733
|
-
/* harmony export */ Link: () => (/* reexport safe */
|
34734
|
-
/* harmony export */ Menu: () => (/* reexport safe */
|
34735
|
+
/* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_14__.Link),
|
34736
|
+
/* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_15__.Menu),
|
34735
34737
|
/* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_3__),
|
34736
|
-
/* harmony export */ Progress: () => (/* reexport safe */
|
34737
|
-
/* harmony export */ ProgressBar: () => (/* reexport safe */
|
34738
|
-
/* harmony export */ RemovableTag: () => (/* reexport safe */
|
34739
|
-
/* harmony export */ Snackbar: () => (/* reexport safe */
|
34738
|
+
/* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_16__.Progress),
|
34739
|
+
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_16__.ProgressBar),
|
34740
|
+
/* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.RemovableTag),
|
34741
|
+
/* harmony export */ Snackbar: () => (/* reexport safe */ _snackbar__WEBPACK_IMPORTED_MODULE_17__.Snackbar),
|
34740
34742
|
/* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
34741
|
-
/* harmony export */ Table: () => (/* reexport safe */
|
34742
|
-
/* harmony export */ TagGroup: () => (/* reexport safe */
|
34743
|
-
/* harmony export */ ThemeProvider: () => (/* reexport safe */
|
34744
|
-
/* harmony export */ Toast: () => (/* reexport safe */
|
34745
|
-
/* harmony export */ Toaster: () => (/* reexport safe */
|
34746
|
-
/* harmony export */ Tooltip: () => (/* reexport safe */
|
34747
|
-
/* harmony export */ Tooltip2: () => (/* reexport safe */
|
34743
|
+
/* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_18__.Table),
|
34744
|
+
/* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.TagGroup),
|
34745
|
+
/* harmony export */ ThemeProvider: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.ThemeProvider),
|
34746
|
+
/* harmony export */ Toast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.Toast),
|
34747
|
+
/* harmony export */ Toaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.Toaster),
|
34748
|
+
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip),
|
34749
|
+
/* harmony export */ Tooltip2: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip2),
|
34748
34750
|
/* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_6__),
|
34749
|
-
/* harmony export */ globalConfig: () => (/* reexport safe */
|
34750
|
-
/* harmony export */ setGlobalConfig: () => (/* reexport safe */
|
34751
|
-
/* harmony export */ theme: () => (/* reexport safe */
|
34751
|
+
/* harmony export */ globalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_26__.globalConfig),
|
34752
|
+
/* harmony export */ setGlobalConfig: () => (/* reexport safe */ _global_config__WEBPACK_IMPORTED_MODULE_26__.setGlobalConfig),
|
34753
|
+
/* harmony export */ theme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.lightTheme),
|
34752
34754
|
/* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
34753
|
-
/* harmony export */ useTheme: () => (/* reexport safe */
|
34754
|
-
/* harmony export */ useToaster: () => (/* reexport safe */
|
34755
|
-
/* harmony export */ withPopover: () => (/* reexport safe */
|
34756
|
-
/* harmony export */ withTooltip: () => (/* reexport safe */
|
34755
|
+
/* harmony export */ useTheme: () => (/* reexport safe */ _themes__WEBPACK_IMPORTED_MODULE_25__.useTheme),
|
34756
|
+
/* harmony export */ useToaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.useToaster),
|
34757
|
+
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_13__.withPopover),
|
34758
|
+
/* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.withTooltip)
|
34757
34759
|
/* harmony export */ });
|
34758
34760
|
/* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chart */ "./src/chart/index.js");
|
34759
34761
|
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./input */ "./src/input/index.js");
|
@@ -34767,20 +34769,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
34767
34769
|
/* harmony import */ var _breadcrumbs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./breadcrumbs */ "./src/breadcrumbs/index.js");
|
34768
34770
|
/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
|
34769
34771
|
/* harmony import */ var _combo_button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./combo_button */ "./src/combo_button/index.js");
|
34770
|
-
/* harmony import */ var
|
34771
|
-
/* harmony import */ var
|
34772
|
-
/* harmony import */ var
|
34773
|
-
/* harmony import */ var
|
34774
|
-
/* harmony import */ var
|
34775
|
-
/* harmony import */ var
|
34776
|
-
/* harmony import */ var
|
34777
|
-
/* harmony import */ var
|
34778
|
-
/* harmony import */ var
|
34779
|
-
/* harmony import */ var
|
34780
|
-
/* harmony import */ var
|
34781
|
-
/* harmony import */ var
|
34782
|
-
/* harmony import */ var
|
34783
|
-
/* harmony import */ var
|
34772
|
+
/* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./drawer */ "./src/drawer/index.js");
|
34773
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
|
34774
|
+
/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./link */ "./src/link/index.js");
|
34775
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./menu */ "./src/menu/index.js");
|
34776
|
+
/* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
|
34777
|
+
/* harmony import */ var _snackbar__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./snackbar */ "./src/snackbar/index.js");
|
34778
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./table */ "./src/table/index.js");
|
34779
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
|
34780
|
+
/* harmony import */ var _toast__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./toast */ "./src/toast/index.js");
|
34781
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
|
34782
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./icon_button */ "./src/icon_button.js");
|
34783
|
+
/* harmony import */ var _infochip__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./infochip */ "./src/infochip.js");
|
34784
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip/index.js");
|
34785
|
+
/* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js");
|
34786
|
+
/* harmony import */ var _global_config__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./global_config */ "./src/global_config.js");
|
34784
34787
|
// LICENSE_CODE ZON
|
34785
34788
|
|
34786
34789
|
|
@@ -34811,6 +34814,238 @@ __webpack_require__.r(__webpack_exports__);
|
|
34811
34814
|
|
34812
34815
|
|
34813
34816
|
|
34817
|
+
|
34818
|
+
|
34819
|
+
|
34820
|
+
/***/ }),
|
34821
|
+
|
34822
|
+
/***/ "./src/drawer/drawer.js":
|
34823
|
+
/*!******************************!*\
|
34824
|
+
!*** ./src/drawer/drawer.js ***!
|
34825
|
+
\******************************/
|
34826
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
34827
|
+
|
34828
|
+
"use strict";
|
34829
|
+
__webpack_require__.r(__webpack_exports__);
|
34830
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
34831
|
+
/* harmony export */ Drawer: () => (/* binding */ Drawer)
|
34832
|
+
/* harmony export */ });
|
34833
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
34834
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
34835
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
34836
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
34837
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
34838
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
34839
|
+
/* harmony import */ var rc_drawer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-drawer */ "./node_modules/rc-drawer/es/index.js");
|
34840
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
34841
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
34842
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
|
34843
|
+
/* harmony import */ var _modal_modal2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../modal/modal2 */ "./src/modal/modal2.js");
|
34844
|
+
// LICENSE_CODE ZON
|
34845
|
+
|
34846
|
+
|
34847
|
+
/*jslint react:true*/
|
34848
|
+
|
34849
|
+
|
34850
|
+
|
34851
|
+
|
34852
|
+
|
34853
|
+
|
34854
|
+
|
34855
|
+
|
34856
|
+
var Drawer = function Drawer(_ref) {
|
34857
|
+
var className = _ref.className,
|
34858
|
+
_ref$classNamePrefix = _ref.classNamePrefix,
|
34859
|
+
classNamePrefix = _ref$classNamePrefix === void 0 ? 'uikit_drawer' : _ref$classNamePrefix,
|
34860
|
+
open = _ref.open,
|
34861
|
+
_ref$placement = _ref.placement,
|
34862
|
+
placement = _ref$placement === void 0 ? 'right' : _ref$placement,
|
34863
|
+
_ref$width = _ref.width,
|
34864
|
+
width = _ref$width === void 0 ? '45vw' : _ref$width,
|
34865
|
+
height = _ref.height,
|
34866
|
+
duration = _ref.duration,
|
34867
|
+
title = _ref.title,
|
34868
|
+
_ref$closable = _ref.closable,
|
34869
|
+
closable = _ref$closable === void 0 ? true : _ref$closable,
|
34870
|
+
children = _ref.children,
|
34871
|
+
footer = _ref.footer,
|
34872
|
+
onClose = _ref.onClose,
|
34873
|
+
okLabel = _ref.okLabel,
|
34874
|
+
onOk = _ref.onOk,
|
34875
|
+
okProps = _ref.okProps,
|
34876
|
+
cancelLabel = _ref.cancelLabel,
|
34877
|
+
onCancel = _ref.onCancel,
|
34878
|
+
cancelProps = _ref.cancelProps,
|
34879
|
+
_ref$footerVariant = _ref.footerVariant,
|
34880
|
+
footerVariant = _ref$footerVariant === void 0 ? 'horizontal' : _ref$footerVariant,
|
34881
|
+
afterOpenChange = _ref.afterOpenChange;
|
34882
|
+
var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
|
34883
|
+
var renderCancel = !footer && !!(onCancel && cancelLabel);
|
34884
|
+
var renderOk = !footer && !!(onOk && okLabel);
|
34885
|
+
var renderFooter = !!footer || renderOk || renderCancel;
|
34886
|
+
// Motion
|
34887
|
+
var maskMotion = {
|
34888
|
+
motionName: "".concat(classNamePrefix, "-mask-motion"),
|
34889
|
+
motionAppear: true,
|
34890
|
+
motionEnter: true,
|
34891
|
+
motionLeave: true,
|
34892
|
+
motionDeadline: 500
|
34893
|
+
};
|
34894
|
+
var motion = function motion(motionPlacement) {
|
34895
|
+
return {
|
34896
|
+
motionName: "".concat(classNamePrefix, "-panel-motion-").concat(motionPlacement),
|
34897
|
+
motionAppear: true,
|
34898
|
+
motionEnter: true,
|
34899
|
+
motionLeave: true,
|
34900
|
+
motionDeadline: 500
|
34901
|
+
};
|
34902
|
+
};
|
34903
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DrawerStyle, {
|
34904
|
+
$prefixCls: classNamePrefix,
|
34905
|
+
$theme: theme
|
34906
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(rc_drawer__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
34907
|
+
width: width,
|
34908
|
+
height: height,
|
34909
|
+
open: open,
|
34910
|
+
onClose: onClose,
|
34911
|
+
placement: placement,
|
34912
|
+
duration: duration,
|
34913
|
+
className: className,
|
34914
|
+
prefixCls: classNamePrefix,
|
34915
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.drawer,
|
34916
|
+
maskClosable: closable,
|
34917
|
+
afterOpenChange: afterOpenChange,
|
34918
|
+
maskMotion: maskMotion,
|
34919
|
+
motion: motion
|
34920
|
+
}, closable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_6__.IconButton, {
|
34921
|
+
className: "".concat(classNamePrefix, "-close"),
|
34922
|
+
size: "xs",
|
34923
|
+
icon: "Close",
|
34924
|
+
onClick: onClose
|
34925
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
34926
|
+
className: "".concat(classNamePrefix, "-header")
|
34927
|
+
}, !!title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Header, {
|
34928
|
+
className: "".concat(classNamePrefix, "-title"),
|
34929
|
+
color: "text"
|
34930
|
+
}, title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
34931
|
+
className: "".concat(classNamePrefix, "-body")
|
34932
|
+
}, children), renderFooter && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
34933
|
+
className: "".concat(classNamePrefix, "-footer")
|
34934
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_modal_modal2__WEBPACK_IMPORTED_MODULE_7__.DialogFooter, {
|
34935
|
+
onOk: onOk,
|
34936
|
+
onCancel: onCancel,
|
34937
|
+
okLabel: okLabel,
|
34938
|
+
cancelLabel: cancelLabel,
|
34939
|
+
okProps: okProps,
|
34940
|
+
cancelProps: cancelProps,
|
34941
|
+
variant: footerVariant,
|
34942
|
+
footer: footer
|
34943
|
+
}))));
|
34944
|
+
};
|
34945
|
+
Drawer.propTypes = {
|
34946
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
34947
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
34948
|
+
placement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['right', 'left']),
|
34949
|
+
open: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
34950
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
34951
|
+
closable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
34952
|
+
width: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)]),
|
34953
|
+
height: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)]),
|
34954
|
+
duration: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
34955
|
+
footer: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
34956
|
+
onClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
34957
|
+
okLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
34958
|
+
onOk: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
34959
|
+
okProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
34960
|
+
cancelLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
34961
|
+
onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
34962
|
+
cancelProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
34963
|
+
footerVariant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['vertical', 'horizontal', 'horizontal_full']),
|
34964
|
+
afterOpenChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
34965
|
+
};
|
34966
|
+
var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{inset:0;position:fixed;pointer-events:none;&-inline{position:absolute;}&-mask{inset:0;position:absolute;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:auto;}&-content-wrapper{position:absolute;overflow:hidden;&-hidden{display:none;}}&-left &-content-wrapper{top:0;bottom:0;left:0;}&-right &-content-wrapper{top:0;right:0;bottom:0;}&-content{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:", ";pointer-events:auto;}&-left &-content{border-right:1px solid ", ";}&-right &-content{border-left:1px solid ", ";}&-close{position:absolute;margin-top:16px;inset-inline-end:16px;z-index:1;background:transparent;}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-body{flex:1;overflow:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-mask-motion{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0;}}}&-panel-motion{&-left,&-right{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0.7;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0.7;}}}&-left{&-enter,&-appear{transform:translateX(-100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(-100%);}}}&-right{&-enter,&-appear{transform:translateX(100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(100%);}}}}}"], function (_ref2) {
|
34967
|
+
var $prefixCls = _ref2.$prefixCls;
|
34968
|
+
return $prefixCls;
|
34969
|
+
}, function (_ref3) {
|
34970
|
+
var $theme = _ref3.$theme;
|
34971
|
+
return $theme.color.modal_shadow_bg;
|
34972
|
+
}, function (_ref4) {
|
34973
|
+
var $theme = _ref4.$theme;
|
34974
|
+
return $theme.color.modal2_shadow_bg;
|
34975
|
+
}, function (_ref5) {
|
34976
|
+
var $theme = _ref5.$theme;
|
34977
|
+
return $theme.color.bg_elevated;
|
34978
|
+
}, function (_ref6) {
|
34979
|
+
var $theme = _ref6.$theme;
|
34980
|
+
return $theme.color.border_secondary;
|
34981
|
+
}, function (_ref7) {
|
34982
|
+
var $theme = _ref7.$theme;
|
34983
|
+
return $theme.color.border_secondary;
|
34984
|
+
}, function (_ref8) {
|
34985
|
+
var $theme = _ref8.$theme;
|
34986
|
+
return $theme.spacing['05'];
|
34987
|
+
}, function (_ref9) {
|
34988
|
+
var $theme = _ref9.$theme;
|
34989
|
+
return $theme.spacing['08'];
|
34990
|
+
}, function (_ref10) {
|
34991
|
+
var $theme = _ref10.$theme;
|
34992
|
+
return $theme.spacing['05'];
|
34993
|
+
}, function (_ref11) {
|
34994
|
+
var $theme = _ref11.$theme;
|
34995
|
+
return $theme.spacing['05'];
|
34996
|
+
}, function (_ref12) {
|
34997
|
+
var $theme = _ref12.$theme;
|
34998
|
+
return $theme.spacing['06'];
|
34999
|
+
}, function (_ref13) {
|
35000
|
+
var $theme = _ref13.$theme;
|
35001
|
+
return $theme.spacing['07'];
|
35002
|
+
}, function (_ref14) {
|
35003
|
+
var $theme = _ref14.$theme;
|
35004
|
+
return $theme.spacing['06'];
|
35005
|
+
}, function (_ref15) {
|
35006
|
+
var $theme = _ref15.$theme;
|
35007
|
+
return $theme.spacing['07'];
|
35008
|
+
}, function (_ref16) {
|
35009
|
+
var $theme = _ref16.$theme;
|
35010
|
+
return $theme.color.text_secondary;
|
35011
|
+
}, function (_ref17) {
|
35012
|
+
var $theme = _ref17.$theme;
|
35013
|
+
return $theme.scrollbars.thin;
|
35014
|
+
}, function (_ref18) {
|
35015
|
+
var $theme = _ref18.$theme;
|
35016
|
+
return $theme.spacing['05'];
|
35017
|
+
}, function (_ref19) {
|
35018
|
+
var $theme = _ref19.$theme;
|
35019
|
+
return $theme.spacing['07'];
|
35020
|
+
}, function (_ref20) {
|
35021
|
+
var $theme = _ref20.$theme;
|
35022
|
+
return $theme.spacing['05'];
|
35023
|
+
}, function (_ref21) {
|
35024
|
+
var $theme = _ref21.$theme;
|
35025
|
+
return $theme.spacing['07'];
|
35026
|
+
}, function (_ref22) {
|
35027
|
+
var $theme = _ref22.$theme;
|
35028
|
+
return $theme.color.border_secondary;
|
35029
|
+
});
|
35030
|
+
|
35031
|
+
/***/ }),
|
35032
|
+
|
35033
|
+
/***/ "./src/drawer/index.js":
|
35034
|
+
/*!*****************************!*\
|
35035
|
+
!*** ./src/drawer/index.js ***!
|
35036
|
+
\*****************************/
|
35037
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
35038
|
+
|
35039
|
+
"use strict";
|
35040
|
+
__webpack_require__.r(__webpack_exports__);
|
35041
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
35042
|
+
/* harmony export */ Drawer: () => (/* reexport safe */ _drawer__WEBPACK_IMPORTED_MODULE_0__.Drawer)
|
35043
|
+
/* harmony export */ });
|
35044
|
+
/* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./drawer */ "./src/drawer/drawer.js");
|
35045
|
+
// LICENSE_CODE ZON
|
35046
|
+
|
35047
|
+
|
35048
|
+
/*jslint react:true*/
|
34814
35049
|
|
34815
35050
|
|
34816
35051
|
/***/ }),
|
@@ -38347,17 +38582,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
38347
38582
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
38348
38583
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
38349
38584
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
38350
|
-
/* harmony import */ var
|
38351
|
-
/* harmony import */ var
|
38352
|
-
/* harmony import */ var
|
38353
|
-
/* harmony import */ var
|
38354
|
-
/* harmony import */ var
|
38355
|
-
/* harmony import */ var
|
38585
|
+
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
38586
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
38587
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../constants */ "./src/constants.js");
|
38588
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../shared */ "./src/input/shared.js");
|
38589
|
+
/* harmony import */ var _upload_base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./upload_base */ "./src/input/file_uploader/upload_base.js");
|
38590
|
+
/* harmony import */ var _upload_item__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./upload_item */ "./src/input/file_uploader/upload_item.js");
|
38591
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constants */ "./src/input/file_uploader/constants.js");
|
38356
38592
|
// LICENSE_CODE ZON
|
38357
38593
|
|
38358
38594
|
|
38359
38595
|
/*jslint react:true*/
|
38596
|
+
var _excluded = ["labelId", "label", "labelIcon", "labelTooltip", "labelVariant", "uploadDescription", "necessityIndicator", "className", "antiVirusScanText", "accept", "required", "invalid", "multi", "files", "fileInfoFormatter", "onFileUpload", "onFileDelete", "showDropzone"];
|
38360
38597
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
38598
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
38599
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
38600
|
+
|
38361
38601
|
|
38362
38602
|
|
38363
38603
|
|
@@ -38392,12 +38632,13 @@ var FileUploader = function FileUploader(_ref) {
|
|
38392
38632
|
onFileUpload = _ref.onFileUpload,
|
38393
38633
|
onFileDelete = _ref.onFileDelete,
|
38394
38634
|
_ref$showDropzone = _ref.showDropzone,
|
38395
|
-
showDropzone = _ref$showDropzone === void 0 ? true : _ref$showDropzone
|
38396
|
-
|
38635
|
+
showDropzone = _ref$showDropzone === void 0 ? true : _ref$showDropzone,
|
38636
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
38637
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, _extends({
|
38397
38638
|
flex_direction: "column",
|
38398
38639
|
className: className,
|
38399
38640
|
gap: "03"
|
38400
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38641
|
+
}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__["default"])(rest)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_5__.InputLabel, {
|
38401
38642
|
id: labelId,
|
38402
38643
|
label: label,
|
38403
38644
|
labelIcon: labelIcon,
|
@@ -38406,10 +38647,10 @@ var FileUploader = function FileUploader(_ref) {
|
|
38406
38647
|
necessityIndicator: necessityIndicator,
|
38407
38648
|
classNamePrefix: className,
|
38408
38649
|
variant: labelVariant
|
38409
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38650
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, {
|
38410
38651
|
flex_direction: "column",
|
38411
38652
|
gap: "03"
|
38412
|
-
}, showDropzone && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38653
|
+
}, showDropzone && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_upload_base__WEBPACK_IMPORTED_MODULE_6__.UploadBase, {
|
38413
38654
|
uploadDescription: uploadDescription,
|
38414
38655
|
onFileUpload: onFileUpload,
|
38415
38656
|
multi: multi,
|
@@ -38417,7 +38658,7 @@ var FileUploader = function FileUploader(_ref) {
|
|
38417
38658
|
invalid: invalid,
|
38418
38659
|
required: required
|
38419
38660
|
}), files.map(function (file) {
|
38420
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38661
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_upload_item__WEBPACK_IMPORTED_MODULE_7__.UploadItem, _extends({
|
38421
38662
|
key: file.id,
|
38422
38663
|
fileInfoFormatter: fileInfoFormatter,
|
38423
38664
|
antiVirusScanText: antiVirusScanText,
|
@@ -38437,14 +38678,14 @@ FileUploader.propTypes = {
|
|
38437
38678
|
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38438
38679
|
labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
38439
38680
|
labelVariant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'lg']),
|
38440
|
-
necessityIndicator:
|
38681
|
+
necessityIndicator: _constants__WEBPACK_IMPORTED_MODULE_4__.PT_NECESSITY_INDICATOR,
|
38441
38682
|
files: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
38442
38683
|
id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
|
38443
38684
|
type: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38444
38685
|
createTime: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38445
38686
|
size: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
38446
38687
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38447
|
-
status: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(Object.values(
|
38688
|
+
status: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(Object.values(_constants__WEBPACK_IMPORTED_MODULE_8__.FILE_STATUS)),
|
38448
38689
|
error: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38449
38690
|
progress: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
38450
38691
|
icon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
|
@@ -42954,6 +43195,7 @@ var Popup = (0,_with_backdrop__WEBPACK_IMPORTED_MODULE_4__.withBackdrop)(General
|
|
42954
43195
|
"use strict";
|
42955
43196
|
__webpack_require__.r(__webpack_exports__);
|
42956
43197
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
43198
|
+
/* harmony export */ DialogFooter: () => (/* binding */ DialogFooter),
|
42957
43199
|
/* harmony export */ Modal2: () => (/* binding */ Modal2)
|
42958
43200
|
/* harmony export */ });
|
42959
43201
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
@@ -43066,8 +43308,7 @@ var Modal2 = function Modal2(_ref) {
|
|
43066
43308
|
afterClose: afterClose,
|
43067
43309
|
keyboard: false,
|
43068
43310
|
animation: "zoom",
|
43069
|
-
maskAnimation: "fade"
|
43070
|
-
rootClassName: "test"
|
43311
|
+
maskAnimation: "fade"
|
43071
43312
|
}, (0,_util__WEBPACK_IMPORTED_MODULE_9__.getCommonProps)(rest)), children));
|
43072
43313
|
};
|
43073
43314
|
Modal2.propTypes = {
|
@@ -43093,7 +43334,7 @@ Modal2.propTypes = {
|
|
43093
43334
|
afterClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
43094
43335
|
icon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node)
|
43095
43336
|
};
|
43096
|
-
var Modal2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{&-root{div[role=\"dialog\"]{margin:10vh auto 0;}}&-mask{position:fixed;inset:0;height:100%;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:none;&-hidden{display:none;}}&-fade-enter,&-fade-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-fade-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-fade-enter&-fade-enter-active,&-fade-appear&-fade-appear-active{animation-name:rcDialogFadeIn;animation-play-state:running;}&-fade-leave&-fade-leave-active{animation-name:rcDialogFadeOut;animation-play-state:running;}@keyframes rcDialogFadeIn{0%{opacity:0;}100%{opacity:1;}}@keyframes rcDialogFadeOut{0%{opacity:1;}100%{opacity:0;}}&-wrap{position:fixed;inset:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch;}&-content{position:relative;display:flex;flex-direction:column;box-sizing:border-box;padding-top:", ";background-color:", ";border-radius:", ";font-family:", ";box-shadow:", ";pointer-events:auto;}&-close{position:absolute;margin-top:8px;inset-inline-end:16px;z-index:1;padding:4px;text-decoration:none;background:transparent;border-radius:4px;width:24px;height:24px;border:0;outline:0;cursor:pointer;
|
43337
|
+
var Modal2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{&-root{div[role=\"dialog\"]{margin:10vh auto 0;}}&-mask{position:fixed;inset:0;height:100%;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:none;&-hidden{display:none;}}&-fade-enter,&-fade-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-fade-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-fade-enter&-fade-enter-active,&-fade-appear&-fade-appear-active{animation-name:rcDialogFadeIn;animation-play-state:running;}&-fade-leave&-fade-leave-active{animation-name:rcDialogFadeOut;animation-play-state:running;}@keyframes rcDialogFadeIn{0%{opacity:0;}100%{opacity:1;}}@keyframes rcDialogFadeOut{0%{opacity:1;}100%{opacity:0;}}&-wrap{position:fixed;inset:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch;}&-content{position:relative;display:flex;flex-direction:column;box-sizing:border-box;padding-top:", ";background-color:", ";border-radius:", ";font-family:", ";box-shadow:", ";pointer-events:auto;}&-close{position:absolute;margin-top:8px;inset-inline-end:16px;z-index:1;padding:4px;text-decoration:none;background:transparent;border-radius:4px;width:24px;height:24px;border:0;outline:0;cursor:pointer;svg{color:", ";}&:hover{background-color:", ";svg{color:", ";}}}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-title{display:flex;flex-direction:column;gap:", ";}&-title-wrap{display:flex;flex-direction:row;align-items:center;gap:", ";}&-body{overflow-y:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-zoom-enter,&-zoom-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-zoom-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.6,0.04,0.98,0.34);animation-play-state:paused;}&-zoom-enter&-zoom-enter-active,&-zoom-appear&-zoom-appear-active{animation-name:rcDialogZoomIn;animation-play-state:running;}&-zoom-leave&-zoom-leave-active{animation-name:rcDialogZoomOut;animation-play-state:running;}@keyframes rcDialogZoomIn{0%{opacity:0;transform:scale(0,0);}100%{opacity:1;transform:scale(1,1);}}@keyframes rcDialogZoomOut{0%{transform:scale(1,1);}100%{opacity:0;transform:scale(0,0);}}}"], function (_ref2) {
|
43097
43338
|
var $prefixCls = _ref2.$prefixCls;
|
43098
43339
|
return $prefixCls;
|
43099
43340
|
}, function (_ref3) {
|
@@ -43119,73 +43360,70 @@ var Modal2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobal
|
|
43119
43360
|
return $theme.shadow.large;
|
43120
43361
|
}, function (_ref10) {
|
43121
43362
|
var color = _ref10.theme.color;
|
43122
|
-
return color.
|
43363
|
+
return color.icon_button_icon_default;
|
43123
43364
|
}, function (_ref11) {
|
43124
43365
|
var color = _ref11.theme.color;
|
43125
|
-
return color.
|
43366
|
+
return color.icon_button_bg_hover;
|
43126
43367
|
}, function (_ref12) {
|
43127
43368
|
var color = _ref12.theme.color;
|
43128
|
-
return color.icon_button_bg_hover;
|
43129
|
-
}, function (_ref13) {
|
43130
|
-
var color = _ref13.theme.color;
|
43131
43369
|
return color.icon_button_icon_hover;
|
43370
|
+
}, function (_ref13) {
|
43371
|
+
var $theme = _ref13.$theme;
|
43372
|
+
return $theme.spacing['03'];
|
43132
43373
|
}, function (_ref14) {
|
43133
43374
|
var $theme = _ref14.$theme;
|
43134
|
-
return $theme.spacing['
|
43375
|
+
return $theme.spacing['08'];
|
43135
43376
|
}, function (_ref15) {
|
43136
43377
|
var $theme = _ref15.$theme;
|
43137
|
-
return $theme.spacing['
|
43378
|
+
return $theme.spacing['03'];
|
43138
43379
|
}, function (_ref16) {
|
43139
43380
|
var $theme = _ref16.$theme;
|
43140
|
-
return $theme.spacing['
|
43381
|
+
return $theme.spacing['07'];
|
43141
43382
|
}, function (_ref17) {
|
43142
43383
|
var $theme = _ref17.$theme;
|
43143
|
-
return $theme.spacing['
|
43384
|
+
return $theme.spacing['03'];
|
43144
43385
|
}, function (_ref18) {
|
43145
43386
|
var $theme = _ref18.$theme;
|
43146
43387
|
return $theme.spacing['03'];
|
43147
43388
|
}, function (_ref19) {
|
43148
43389
|
var $theme = _ref19.$theme;
|
43149
|
-
return $theme.spacing['
|
43390
|
+
return $theme.spacing['06'];
|
43150
43391
|
}, function (_ref20) {
|
43151
43392
|
var $theme = _ref20.$theme;
|
43152
|
-
return $theme.spacing['
|
43393
|
+
return $theme.spacing['07'];
|
43153
43394
|
}, function (_ref21) {
|
43154
43395
|
var $theme = _ref21.$theme;
|
43155
|
-
return $theme.spacing['
|
43396
|
+
return $theme.spacing['08'];
|
43156
43397
|
}, function (_ref22) {
|
43157
43398
|
var $theme = _ref22.$theme;
|
43158
|
-
return $theme.spacing['
|
43399
|
+
return $theme.spacing['07'];
|
43159
43400
|
}, function (_ref23) {
|
43160
43401
|
var $theme = _ref23.$theme;
|
43161
|
-
return $theme.
|
43402
|
+
return $theme.color.text_secondary;
|
43162
43403
|
}, function (_ref24) {
|
43163
43404
|
var $theme = _ref24.$theme;
|
43164
|
-
return $theme.
|
43405
|
+
return $theme.scrollbars.thin;
|
43165
43406
|
}, function (_ref25) {
|
43166
43407
|
var $theme = _ref25.$theme;
|
43167
|
-
return $theme.
|
43408
|
+
return $theme.spacing['04'];
|
43168
43409
|
}, function (_ref26) {
|
43169
43410
|
var $theme = _ref26.$theme;
|
43170
|
-
return $theme.spacing['
|
43411
|
+
return $theme.spacing['07'];
|
43171
43412
|
}, function (_ref27) {
|
43172
43413
|
var $theme = _ref27.$theme;
|
43173
|
-
return $theme.spacing['
|
43414
|
+
return $theme.spacing['04'];
|
43174
43415
|
}, function (_ref28) {
|
43175
43416
|
var $theme = _ref28.$theme;
|
43176
|
-
return $theme.spacing['
|
43417
|
+
return $theme.spacing['07'];
|
43177
43418
|
}, function (_ref29) {
|
43178
43419
|
var $theme = _ref29.$theme;
|
43179
|
-
return $theme.spacing['07'];
|
43180
|
-
}, function (_ref30) {
|
43181
|
-
var $theme = _ref30.$theme;
|
43182
43420
|
return $theme.color.border_secondary;
|
43183
43421
|
});
|
43184
|
-
var DialogHeader = function DialogHeader(
|
43185
|
-
var icon =
|
43186
|
-
title =
|
43187
|
-
subtitle =
|
43188
|
-
prefixCls =
|
43422
|
+
var DialogHeader = function DialogHeader(_ref30) {
|
43423
|
+
var icon = _ref30.icon,
|
43424
|
+
title = _ref30.title,
|
43425
|
+
subtitle = _ref30.subtitle,
|
43426
|
+
prefixCls = _ref30.prefixCls;
|
43189
43427
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
43190
43428
|
className: "".concat(prefixCls, "-title-wrap")
|
43191
43429
|
}, icon, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Header, {
|
@@ -43195,15 +43433,15 @@ var DialogHeader = function DialogHeader(_ref31) {
|
|
43195
43433
|
color: "text_tertiary"
|
43196
43434
|
}, subtitle));
|
43197
43435
|
};
|
43198
|
-
var DialogFooter = function DialogFooter(
|
43199
|
-
var onOk =
|
43200
|
-
onCancel =
|
43201
|
-
okLabel =
|
43202
|
-
cancelLabel =
|
43203
|
-
okProps =
|
43204
|
-
cancelProps =
|
43205
|
-
variant =
|
43206
|
-
footer =
|
43436
|
+
var DialogFooter = function DialogFooter(_ref31) {
|
43437
|
+
var onOk = _ref31.onOk,
|
43438
|
+
onCancel = _ref31.onCancel,
|
43439
|
+
okLabel = _ref31.okLabel,
|
43440
|
+
cancelLabel = _ref31.cancelLabel,
|
43441
|
+
okProps = _ref31.okProps,
|
43442
|
+
cancelProps = _ref31.cancelProps,
|
43443
|
+
variant = _ref31.variant,
|
43444
|
+
footer = _ref31.footer;
|
43207
43445
|
var renderCancel = !footer && !!(onCancel && cancelLabel);
|
43208
43446
|
var renderOk = !footer && !!(onOk && okLabel);
|
43209
43447
|
var renderFooter = !!footer || renderOk || renderCancel;
|
@@ -46800,7 +47038,8 @@ var getRowMenuCellProps = function getRowMenuCellProps(props, _ref3) {
|
|
46800
47038
|
position: 'sticky',
|
46801
47039
|
right: 0,
|
46802
47040
|
overflow: 'visible'
|
46803
|
-
}
|
47041
|
+
},
|
47042
|
+
isMenuCell: true
|
46804
47043
|
}];
|
46805
47044
|
}
|
46806
47045
|
return props;
|
@@ -47620,16 +47859,16 @@ var TableCell = function TableCell(props) {
|
|
47620
47859
|
var doneEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
47621
47860
|
columnDoneEditing(columnId, rowId);
|
47622
47861
|
}, [columnDoneEditing, columnId, rowId]);
|
47862
|
+
var cellProps = cell.getCellProps([getColumnProps(column), getCellProps(cell)]);
|
47623
47863
|
var onClick = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
47624
|
-
if (isEditable) {
|
47864
|
+
if (isEditable || cellProps.isMenuCell) {
|
47625
47865
|
evt.stopPropagation();
|
47626
47866
|
onStartEdit === null || onStartEdit === void 0 || onStartEdit(cell, {
|
47627
47867
|
startEditing: startEditing,
|
47628
47868
|
doneEditing: doneEditing
|
47629
47869
|
});
|
47630
47870
|
}
|
47631
|
-
}, [isEditable, onStartEdit, startEditing, doneEditing]);
|
47632
|
-
var cellProps = cell.getCellProps([getColumnProps(column), getCellProps(cell)]);
|
47871
|
+
}, [isEditable, onStartEdit, startEditing, doneEditing, cellProps.isMenuCell]);
|
47633
47872
|
cellProps.className = (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(null, null, (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(column.className, {
|
47634
47873
|
cell: true
|
47635
47874
|
}), (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(className, {
|
@@ -48587,7 +48826,12 @@ var componentLight = {
|
|
48587
48826
|
modal2_shadow_bg: '#11171FB3',
|
48588
48827
|
tab_contained_bg: color.gray_3,
|
48589
48828
|
table_cell_hover: color.gray_3,
|
48590
|
-
table_nesting: color.blue_6
|
48829
|
+
table_nesting: color.blue_6,
|
48830
|
+
tooltip_bg_black: color.gray_12,
|
48831
|
+
tooltip_bg_white: color.white,
|
48832
|
+
tooltip_text_black: color.white,
|
48833
|
+
tooltip_text_white: semanticLight.text_secondary,
|
48834
|
+
tooltip_border_white: semanticLight.border
|
48591
48835
|
};
|
48592
48836
|
var lightTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
|
48593
48837
|
color: _objectSpread(_objectSpread(_objectSpread({}, color), semanticLight), componentLight)
|
@@ -48720,7 +48964,12 @@ var componentDark = _objectSpread(_objectSpread({}, componentLight), {}, {
|
|
48720
48964
|
modal2_shadow_bg: '#2F3132B3',
|
48721
48965
|
tab_contained_bg: semanticDark.bg_elevated,
|
48722
48966
|
table_cell_hover: color.gray_11_75,
|
48723
|
-
table_nesting: color.blue_8
|
48967
|
+
table_nesting: color.blue_8,
|
48968
|
+
tooltip_bg_black: color.gray_11_50,
|
48969
|
+
tooltip_bg_white: color.white,
|
48970
|
+
tooltip_text_black: color.white,
|
48971
|
+
tooltip_text_white: color.gray_11_50,
|
48972
|
+
tooltip_border_white: semanticDark.border
|
48724
48973
|
});
|
48725
48974
|
var darkTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
|
48726
48975
|
color: _objectSpread(_objectSpread(_objectSpread({}, color), semanticDark), componentDark)
|
@@ -49758,70 +50007,70 @@ var Tooltip2Style = (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.createGlob
|
|
49758
50007
|
return $theme.font_size.sm;
|
49759
50008
|
}, function (_ref10) {
|
49760
50009
|
var $theme = _ref10.$theme;
|
49761
|
-
return $theme.color.
|
50010
|
+
return $theme.color.tooltip_text_white;
|
49762
50011
|
}, function (_ref11) {
|
49763
50012
|
var $theme = _ref11.$theme;
|
49764
|
-
return $theme.color.
|
50013
|
+
return $theme.color.tooltip_bg_white;
|
49765
50014
|
}, function (_ref12) {
|
49766
50015
|
var $theme = _ref12.$theme;
|
49767
|
-
return $theme.color.
|
50016
|
+
return $theme.color.tooltip_border_white;
|
49768
50017
|
}, function (_ref13) {
|
49769
50018
|
var $theme = _ref13.$theme;
|
49770
|
-
return $theme.color.
|
50019
|
+
return $theme.color.tooltip_border_white;
|
49771
50020
|
}, function (_ref14) {
|
49772
50021
|
var $theme = _ref14.$theme;
|
49773
|
-
return $theme.color.
|
50022
|
+
return $theme.color.tooltip_bg_white;
|
49774
50023
|
}, function (_ref15) {
|
49775
50024
|
var $theme = _ref15.$theme;
|
49776
|
-
return $theme.color.
|
50025
|
+
return $theme.color.tooltip_border_white;
|
49777
50026
|
}, function (_ref16) {
|
49778
50027
|
var $theme = _ref16.$theme;
|
49779
|
-
return $theme.color.
|
50028
|
+
return $theme.color.tooltip_bg_white;
|
49780
50029
|
}, function (_ref17) {
|
49781
50030
|
var $theme = _ref17.$theme;
|
49782
|
-
return $theme.color.
|
50031
|
+
return $theme.color.tooltip_border_white;
|
49783
50032
|
}, function (_ref18) {
|
49784
50033
|
var $theme = _ref18.$theme;
|
49785
|
-
return $theme.color.
|
50034
|
+
return $theme.color.tooltip_bg_white;
|
49786
50035
|
}, function (_ref19) {
|
49787
50036
|
var $theme = _ref19.$theme;
|
49788
|
-
return $theme.color.
|
50037
|
+
return $theme.color.tooltip_border_white;
|
49789
50038
|
}, function (_ref20) {
|
49790
50039
|
var $theme = _ref20.$theme;
|
49791
|
-
return $theme.color.
|
50040
|
+
return $theme.color.tooltip_bg_white;
|
49792
50041
|
}, function (_ref21) {
|
49793
50042
|
var $theme = _ref21.$theme;
|
49794
|
-
return $theme.color.
|
50043
|
+
return $theme.color.tooltip_text_black;
|
49795
50044
|
}, function (_ref22) {
|
49796
50045
|
var $theme = _ref22.$theme;
|
49797
|
-
return $theme.color.
|
50046
|
+
return $theme.color.tooltip_bg_black;
|
49798
50047
|
}, function (_ref23) {
|
49799
50048
|
var $theme = _ref23.$theme;
|
49800
|
-
return $theme.color.
|
50049
|
+
return $theme.color.tooltip_bg_black;
|
49801
50050
|
}, function (_ref24) {
|
49802
50051
|
var $theme = _ref24.$theme;
|
49803
|
-
return $theme.color.
|
50052
|
+
return $theme.color.tooltip_bg_black;
|
49804
50053
|
}, function (_ref25) {
|
49805
50054
|
var $theme = _ref25.$theme;
|
49806
|
-
return $theme.color.
|
50055
|
+
return $theme.color.tooltip_bg_black;
|
49807
50056
|
}, function (_ref26) {
|
49808
50057
|
var $theme = _ref26.$theme;
|
49809
|
-
return $theme.color.
|
50058
|
+
return $theme.color.tooltip_bg_black;
|
49810
50059
|
}, function (_ref27) {
|
49811
50060
|
var $theme = _ref27.$theme;
|
49812
|
-
return $theme.color.
|
50061
|
+
return $theme.color.tooltip_bg_black;
|
49813
50062
|
}, function (_ref28) {
|
49814
50063
|
var $theme = _ref28.$theme;
|
49815
|
-
return $theme.color.
|
50064
|
+
return $theme.color.tooltip_bg_black;
|
49816
50065
|
}, function (_ref29) {
|
49817
50066
|
var $theme = _ref29.$theme;
|
49818
|
-
return $theme.color.
|
50067
|
+
return $theme.color.tooltip_bg_black;
|
49819
50068
|
}, function (_ref30) {
|
49820
50069
|
var $theme = _ref30.$theme;
|
49821
|
-
return $theme.color.
|
50070
|
+
return $theme.color.tooltip_bg_black;
|
49822
50071
|
}, function (_ref31) {
|
49823
50072
|
var $theme = _ref31.$theme;
|
49824
|
-
return $theme.color.
|
50073
|
+
return $theme.color.tooltip_bg_black;
|
49825
50074
|
});
|
49826
50075
|
|
49827
50076
|
/***/ }),
|
@@ -68684,6 +68933,573 @@ function offset(el) {
|
|
68684
68933
|
|
68685
68934
|
/***/ }),
|
68686
68935
|
|
68936
|
+
/***/ "./node_modules/rc-drawer/es/Drawer.js":
|
68937
|
+
/*!*********************************************!*\
|
68938
|
+
!*** ./node_modules/rc-drawer/es/Drawer.js ***!
|
68939
|
+
\*********************************************/
|
68940
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
68941
|
+
|
68942
|
+
"use strict";
|
68943
|
+
__webpack_require__.r(__webpack_exports__);
|
68944
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
68945
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
68946
|
+
/* harmony export */ });
|
68947
|
+
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
68948
|
+
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
68949
|
+
/* harmony import */ var _rc_component_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/portal */ "./node_modules/@rc-component/portal/es/index.js");
|
68950
|
+
/* harmony import */ var rc_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/es/hooks/useLayoutEffect */ "./node_modules/rc-util/es/hooks/useLayoutEffect.js");
|
68951
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
68952
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
68953
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context */ "./node_modules/rc-drawer/es/context.js");
|
68954
|
+
/* harmony import */ var _DrawerPopup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DrawerPopup */ "./node_modules/rc-drawer/es/DrawerPopup.js");
|
68955
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util */ "./node_modules/rc-drawer/es/util.js");
|
68956
|
+
|
68957
|
+
|
68958
|
+
|
68959
|
+
|
68960
|
+
|
68961
|
+
|
68962
|
+
|
68963
|
+
|
68964
|
+
var Drawer = function Drawer(props) {
|
68965
|
+
var _props$open = props.open,
|
68966
|
+
open = _props$open === void 0 ? false : _props$open,
|
68967
|
+
_props$prefixCls = props.prefixCls,
|
68968
|
+
prefixCls = _props$prefixCls === void 0 ? 'rc-drawer' : _props$prefixCls,
|
68969
|
+
_props$placement = props.placement,
|
68970
|
+
placement = _props$placement === void 0 ? 'right' : _props$placement,
|
68971
|
+
_props$autoFocus = props.autoFocus,
|
68972
|
+
autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,
|
68973
|
+
_props$keyboard = props.keyboard,
|
68974
|
+
keyboard = _props$keyboard === void 0 ? true : _props$keyboard,
|
68975
|
+
_props$width = props.width,
|
68976
|
+
width = _props$width === void 0 ? 378 : _props$width,
|
68977
|
+
_props$mask = props.mask,
|
68978
|
+
mask = _props$mask === void 0 ? true : _props$mask,
|
68979
|
+
_props$maskClosable = props.maskClosable,
|
68980
|
+
maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable,
|
68981
|
+
getContainer = props.getContainer,
|
68982
|
+
forceRender = props.forceRender,
|
68983
|
+
afterOpenChange = props.afterOpenChange,
|
68984
|
+
destroyOnClose = props.destroyOnClose,
|
68985
|
+
onMouseEnter = props.onMouseEnter,
|
68986
|
+
onMouseOver = props.onMouseOver,
|
68987
|
+
onMouseLeave = props.onMouseLeave,
|
68988
|
+
onClick = props.onClick,
|
68989
|
+
onKeyDown = props.onKeyDown,
|
68990
|
+
onKeyUp = props.onKeyUp,
|
68991
|
+
panelRef = props.panelRef;
|
68992
|
+
var _React$useState = react__WEBPACK_IMPORTED_MODULE_4__.useState(false),
|
68993
|
+
_React$useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState, 2),
|
68994
|
+
animatedVisible = _React$useState2[0],
|
68995
|
+
setAnimatedVisible = _React$useState2[1];
|
68996
|
+
|
68997
|
+
// ============================= Warn =============================
|
68998
|
+
if (true) {
|
68999
|
+
(0,_util__WEBPACK_IMPORTED_MODULE_7__.warnCheck)(props);
|
69000
|
+
}
|
69001
|
+
|
69002
|
+
// ============================= Open =============================
|
69003
|
+
var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_4__.useState(false),
|
69004
|
+
_React$useState4 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState3, 2),
|
69005
|
+
mounted = _React$useState4[0],
|
69006
|
+
setMounted = _React$useState4[1];
|
69007
|
+
(0,rc_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_3__["default"])(function () {
|
69008
|
+
setMounted(true);
|
69009
|
+
}, []);
|
69010
|
+
var mergedOpen = mounted ? open : false;
|
69011
|
+
|
69012
|
+
// ============================ Focus =============================
|
69013
|
+
var popupRef = react__WEBPACK_IMPORTED_MODULE_4__.useRef();
|
69014
|
+
var lastActiveRef = react__WEBPACK_IMPORTED_MODULE_4__.useRef();
|
69015
|
+
(0,rc_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_3__["default"])(function () {
|
69016
|
+
if (mergedOpen) {
|
69017
|
+
lastActiveRef.current = document.activeElement;
|
69018
|
+
}
|
69019
|
+
}, [mergedOpen]);
|
69020
|
+
|
69021
|
+
// ============================= Open =============================
|
69022
|
+
var internalAfterOpenChange = function internalAfterOpenChange(nextVisible) {
|
69023
|
+
var _popupRef$current;
|
69024
|
+
setAnimatedVisible(nextVisible);
|
69025
|
+
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
|
69026
|
+
if (!nextVisible && lastActiveRef.current && !((_popupRef$current = popupRef.current) !== null && _popupRef$current !== void 0 && _popupRef$current.contains(lastActiveRef.current))) {
|
69027
|
+
var _lastActiveRef$curren;
|
69028
|
+
(_lastActiveRef$curren = lastActiveRef.current) === null || _lastActiveRef$curren === void 0 || _lastActiveRef$curren.focus({
|
69029
|
+
preventScroll: true
|
69030
|
+
});
|
69031
|
+
}
|
69032
|
+
};
|
69033
|
+
|
69034
|
+
// =========================== Context ============================
|
69035
|
+
var refContext = react__WEBPACK_IMPORTED_MODULE_4__.useMemo(function () {
|
69036
|
+
return {
|
69037
|
+
panel: panelRef
|
69038
|
+
};
|
69039
|
+
}, [panelRef]);
|
69040
|
+
|
69041
|
+
// ============================ Render ============================
|
69042
|
+
if (!forceRender && !animatedVisible && !mergedOpen && destroyOnClose) {
|
69043
|
+
return null;
|
69044
|
+
}
|
69045
|
+
var eventHandlers = {
|
69046
|
+
onMouseEnter: onMouseEnter,
|
69047
|
+
onMouseOver: onMouseOver,
|
69048
|
+
onMouseLeave: onMouseLeave,
|
69049
|
+
onClick: onClick,
|
69050
|
+
onKeyDown: onKeyDown,
|
69051
|
+
onKeyUp: onKeyUp
|
69052
|
+
};
|
69053
|
+
var drawerPopupProps = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props), {}, {
|
69054
|
+
open: mergedOpen,
|
69055
|
+
prefixCls: prefixCls,
|
69056
|
+
placement: placement,
|
69057
|
+
autoFocus: autoFocus,
|
69058
|
+
keyboard: keyboard,
|
69059
|
+
width: width,
|
69060
|
+
mask: mask,
|
69061
|
+
maskClosable: maskClosable,
|
69062
|
+
inline: getContainer === false,
|
69063
|
+
afterOpenChange: internalAfterOpenChange,
|
69064
|
+
ref: popupRef
|
69065
|
+
}, eventHandlers);
|
69066
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_context__WEBPACK_IMPORTED_MODULE_5__.RefContext.Provider, {
|
69067
|
+
value: refContext
|
69068
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_rc_component_portal__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
69069
|
+
open: mergedOpen || forceRender || animatedVisible,
|
69070
|
+
autoDestroy: false,
|
69071
|
+
getContainer: getContainer,
|
69072
|
+
autoLock: mask && (mergedOpen || animatedVisible)
|
69073
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_DrawerPopup__WEBPACK_IMPORTED_MODULE_6__["default"], drawerPopupProps)));
|
69074
|
+
};
|
69075
|
+
if (true) {
|
69076
|
+
Drawer.displayName = 'Drawer';
|
69077
|
+
}
|
69078
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Drawer);
|
69079
|
+
|
69080
|
+
/***/ }),
|
69081
|
+
|
69082
|
+
/***/ "./node_modules/rc-drawer/es/DrawerPanel.js":
|
69083
|
+
/*!**************************************************!*\
|
69084
|
+
!*** ./node_modules/rc-drawer/es/DrawerPanel.js ***!
|
69085
|
+
\**************************************************/
|
69086
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
69087
|
+
|
69088
|
+
"use strict";
|
69089
|
+
__webpack_require__.r(__webpack_exports__);
|
69090
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
69091
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
69092
|
+
/* harmony export */ });
|
69093
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
69094
|
+
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
69095
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
69096
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
69097
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
69098
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
69099
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./node_modules/rc-drawer/es/context.js");
|
69100
|
+
/* harmony import */ var rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-util/es/pickAttrs */ "./node_modules/rc-util/es/pickAttrs.js");
|
69101
|
+
/* harmony import */ var rc_util_es_ref__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/ref */ "./node_modules/rc-util/es/ref.js");
|
69102
|
+
|
69103
|
+
|
69104
|
+
var _excluded = ["prefixCls", "className", "containerRef"];
|
69105
|
+
|
69106
|
+
|
69107
|
+
|
69108
|
+
|
69109
|
+
|
69110
|
+
var DrawerPanel = function DrawerPanel(props) {
|
69111
|
+
var prefixCls = props.prefixCls,
|
69112
|
+
className = props.className,
|
69113
|
+
containerRef = props.containerRef,
|
69114
|
+
restProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, _excluded);
|
69115
|
+
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_3__.useContext(_context__WEBPACK_IMPORTED_MODULE_4__.RefContext),
|
69116
|
+
panelRef = _React$useContext.panel;
|
69117
|
+
var mergedRef = (0,rc_util_es_ref__WEBPACK_IMPORTED_MODULE_6__.useComposeRef)(panelRef, containerRef);
|
69118
|
+
|
69119
|
+
// =============================== Render ===============================
|
69120
|
+
|
69121
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
69122
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()("".concat(prefixCls, "-content"), className),
|
69123
|
+
role: "dialog",
|
69124
|
+
ref: mergedRef
|
69125
|
+
}, (0,rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_5__["default"])(props, {
|
69126
|
+
aria: true
|
69127
|
+
}), {
|
69128
|
+
"aria-modal": "true"
|
69129
|
+
}, restProps));
|
69130
|
+
};
|
69131
|
+
if (true) {
|
69132
|
+
DrawerPanel.displayName = 'DrawerPanel';
|
69133
|
+
}
|
69134
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DrawerPanel);
|
69135
|
+
|
69136
|
+
/***/ }),
|
69137
|
+
|
69138
|
+
/***/ "./node_modules/rc-drawer/es/DrawerPopup.js":
|
69139
|
+
/*!**************************************************!*\
|
69140
|
+
!*** ./node_modules/rc-drawer/es/DrawerPopup.js ***!
|
69141
|
+
\**************************************************/
|
69142
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
69143
|
+
|
69144
|
+
"use strict";
|
69145
|
+
__webpack_require__.r(__webpack_exports__);
|
69146
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
69147
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
69148
|
+
/* harmony export */ });
|
69149
|
+
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
69150
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
69151
|
+
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
69152
|
+
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
69153
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
69154
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
|
69155
|
+
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
69156
|
+
/* harmony import */ var rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/KeyCode */ "./node_modules/rc-util/es/KeyCode.js");
|
69157
|
+
/* harmony import */ var rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/pickAttrs */ "./node_modules/rc-util/es/pickAttrs.js");
|
69158
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "react");
|
69159
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
|
69160
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./context */ "./node_modules/rc-drawer/es/context.js");
|
69161
|
+
/* harmony import */ var _DrawerPanel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DrawerPanel */ "./node_modules/rc-drawer/es/DrawerPanel.js");
|
69162
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./util */ "./node_modules/rc-drawer/es/util.js");
|
69163
|
+
|
69164
|
+
|
69165
|
+
|
69166
|
+
|
69167
|
+
|
69168
|
+
|
69169
|
+
|
69170
|
+
|
69171
|
+
|
69172
|
+
|
69173
|
+
|
69174
|
+
|
69175
|
+
var sentinelStyle = {
|
69176
|
+
width: 0,
|
69177
|
+
height: 0,
|
69178
|
+
overflow: 'hidden',
|
69179
|
+
outline: 'none',
|
69180
|
+
position: 'absolute'
|
69181
|
+
};
|
69182
|
+
function DrawerPopup(props, ref) {
|
69183
|
+
var _ref, _pushConfig$distance, _pushConfig;
|
69184
|
+
var prefixCls = props.prefixCls,
|
69185
|
+
open = props.open,
|
69186
|
+
placement = props.placement,
|
69187
|
+
inline = props.inline,
|
69188
|
+
push = props.push,
|
69189
|
+
forceRender = props.forceRender,
|
69190
|
+
autoFocus = props.autoFocus,
|
69191
|
+
keyboard = props.keyboard,
|
69192
|
+
drawerClassNames = props.classNames,
|
69193
|
+
rootClassName = props.rootClassName,
|
69194
|
+
rootStyle = props.rootStyle,
|
69195
|
+
zIndex = props.zIndex,
|
69196
|
+
className = props.className,
|
69197
|
+
id = props.id,
|
69198
|
+
style = props.style,
|
69199
|
+
motion = props.motion,
|
69200
|
+
width = props.width,
|
69201
|
+
height = props.height,
|
69202
|
+
children = props.children,
|
69203
|
+
mask = props.mask,
|
69204
|
+
maskClosable = props.maskClosable,
|
69205
|
+
maskMotion = props.maskMotion,
|
69206
|
+
maskClassName = props.maskClassName,
|
69207
|
+
maskStyle = props.maskStyle,
|
69208
|
+
afterOpenChange = props.afterOpenChange,
|
69209
|
+
onClose = props.onClose,
|
69210
|
+
onMouseEnter = props.onMouseEnter,
|
69211
|
+
onMouseOver = props.onMouseOver,
|
69212
|
+
onMouseLeave = props.onMouseLeave,
|
69213
|
+
onClick = props.onClick,
|
69214
|
+
onKeyDown = props.onKeyDown,
|
69215
|
+
onKeyUp = props.onKeyUp,
|
69216
|
+
styles = props.styles,
|
69217
|
+
drawerRender = props.drawerRender;
|
69218
|
+
|
69219
|
+
// ================================ Refs ================================
|
69220
|
+
var panelRef = react__WEBPACK_IMPORTED_MODULE_8__.useRef();
|
69221
|
+
var sentinelStartRef = react__WEBPACK_IMPORTED_MODULE_8__.useRef();
|
69222
|
+
var sentinelEndRef = react__WEBPACK_IMPORTED_MODULE_8__.useRef();
|
69223
|
+
react__WEBPACK_IMPORTED_MODULE_8__.useImperativeHandle(ref, function () {
|
69224
|
+
return panelRef.current;
|
69225
|
+
});
|
69226
|
+
var onPanelKeyDown = function onPanelKeyDown(event) {
|
69227
|
+
var keyCode = event.keyCode,
|
69228
|
+
shiftKey = event.shiftKey;
|
69229
|
+
switch (keyCode) {
|
69230
|
+
// Tab active
|
69231
|
+
case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].TAB:
|
69232
|
+
{
|
69233
|
+
if (keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].TAB) {
|
69234
|
+
if (!shiftKey && document.activeElement === sentinelEndRef.current) {
|
69235
|
+
var _sentinelStartRef$cur;
|
69236
|
+
(_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 || _sentinelStartRef$cur.focus({
|
69237
|
+
preventScroll: true
|
69238
|
+
});
|
69239
|
+
} else if (shiftKey && document.activeElement === sentinelStartRef.current) {
|
69240
|
+
var _sentinelEndRef$curre;
|
69241
|
+
(_sentinelEndRef$curre = sentinelEndRef.current) === null || _sentinelEndRef$curre === void 0 || _sentinelEndRef$curre.focus({
|
69242
|
+
preventScroll: true
|
69243
|
+
});
|
69244
|
+
}
|
69245
|
+
}
|
69246
|
+
break;
|
69247
|
+
}
|
69248
|
+
|
69249
|
+
// Close
|
69250
|
+
case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].ESC:
|
69251
|
+
{
|
69252
|
+
if (onClose && keyboard) {
|
69253
|
+
event.stopPropagation();
|
69254
|
+
onClose(event);
|
69255
|
+
}
|
69256
|
+
break;
|
69257
|
+
}
|
69258
|
+
}
|
69259
|
+
};
|
69260
|
+
|
69261
|
+
// ========================== Control ===========================
|
69262
|
+
// Auto Focus
|
69263
|
+
react__WEBPACK_IMPORTED_MODULE_8__.useEffect(function () {
|
69264
|
+
if (open && autoFocus) {
|
69265
|
+
var _panelRef$current;
|
69266
|
+
(_panelRef$current = panelRef.current) === null || _panelRef$current === void 0 || _panelRef$current.focus({
|
69267
|
+
preventScroll: true
|
69268
|
+
});
|
69269
|
+
}
|
69270
|
+
}, [open]);
|
69271
|
+
|
69272
|
+
// ============================ Push ============================
|
69273
|
+
var _React$useState = react__WEBPACK_IMPORTED_MODULE_8__.useState(false),
|
69274
|
+
_React$useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__["default"])(_React$useState, 2),
|
69275
|
+
pushed = _React$useState2[0],
|
69276
|
+
setPushed = _React$useState2[1];
|
69277
|
+
var parentContext = react__WEBPACK_IMPORTED_MODULE_8__.useContext(_context__WEBPACK_IMPORTED_MODULE_9__["default"]);
|
69278
|
+
|
69279
|
+
// Merge push distance
|
69280
|
+
var pushConfig;
|
69281
|
+
if (typeof push === 'boolean') {
|
69282
|
+
pushConfig = push ? {} : {
|
69283
|
+
distance: 0
|
69284
|
+
};
|
69285
|
+
} else {
|
69286
|
+
pushConfig = push || {};
|
69287
|
+
}
|
69288
|
+
var pushDistance = (_ref = (_pushConfig$distance = (_pushConfig = pushConfig) === null || _pushConfig === void 0 ? void 0 : _pushConfig.distance) !== null && _pushConfig$distance !== void 0 ? _pushConfig$distance : parentContext === null || parentContext === void 0 ? void 0 : parentContext.pushDistance) !== null && _ref !== void 0 ? _ref : 180;
|
69289
|
+
var mergedContext = react__WEBPACK_IMPORTED_MODULE_8__.useMemo(function () {
|
69290
|
+
return {
|
69291
|
+
pushDistance: pushDistance,
|
69292
|
+
push: function push() {
|
69293
|
+
setPushed(true);
|
69294
|
+
},
|
69295
|
+
pull: function pull() {
|
69296
|
+
setPushed(false);
|
69297
|
+
}
|
69298
|
+
};
|
69299
|
+
}, [pushDistance]);
|
69300
|
+
|
69301
|
+
// ========================= ScrollLock =========================
|
69302
|
+
// Tell parent to push
|
69303
|
+
react__WEBPACK_IMPORTED_MODULE_8__.useEffect(function () {
|
69304
|
+
if (open) {
|
69305
|
+
var _parentContext$push;
|
69306
|
+
parentContext === null || parentContext === void 0 || (_parentContext$push = parentContext.push) === null || _parentContext$push === void 0 || _parentContext$push.call(parentContext);
|
69307
|
+
} else {
|
69308
|
+
var _parentContext$pull;
|
69309
|
+
parentContext === null || parentContext === void 0 || (_parentContext$pull = parentContext.pull) === null || _parentContext$pull === void 0 || _parentContext$pull.call(parentContext);
|
69310
|
+
}
|
69311
|
+
}, [open]);
|
69312
|
+
|
69313
|
+
// Clean up
|
69314
|
+
react__WEBPACK_IMPORTED_MODULE_8__.useEffect(function () {
|
69315
|
+
return function () {
|
69316
|
+
var _parentContext$pull2;
|
69317
|
+
parentContext === null || parentContext === void 0 || (_parentContext$pull2 = parentContext.pull) === null || _parentContext$pull2 === void 0 || _parentContext$pull2.call(parentContext);
|
69318
|
+
};
|
69319
|
+
}, []);
|
69320
|
+
|
69321
|
+
// ============================ Mask ============================
|
69322
|
+
var maskNode = mask && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(rc_motion__WEBPACK_IMPORTED_MODULE_5__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
69323
|
+
key: "mask"
|
69324
|
+
}, maskMotion, {
|
69325
|
+
visible: open
|
69326
|
+
}), function (_ref2, maskRef) {
|
69327
|
+
var motionMaskClassName = _ref2.className,
|
69328
|
+
motionMaskStyle = _ref2.style;
|
69329
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement("div", {
|
69330
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()("".concat(prefixCls, "-mask"), motionMaskClassName, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.mask, maskClassName),
|
69331
|
+
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, motionMaskStyle), maskStyle), styles === null || styles === void 0 ? void 0 : styles.mask),
|
69332
|
+
onClick: maskClosable && open ? onClose : undefined,
|
69333
|
+
ref: maskRef
|
69334
|
+
});
|
69335
|
+
});
|
69336
|
+
|
69337
|
+
// =========================== Panel ============================
|
69338
|
+
var motionProps = typeof motion === 'function' ? motion(placement) : motion;
|
69339
|
+
var wrapperStyle = {};
|
69340
|
+
if (pushed && pushDistance) {
|
69341
|
+
switch (placement) {
|
69342
|
+
case 'top':
|
69343
|
+
wrapperStyle.transform = "translateY(".concat(pushDistance, "px)");
|
69344
|
+
break;
|
69345
|
+
case 'bottom':
|
69346
|
+
wrapperStyle.transform = "translateY(".concat(-pushDistance, "px)");
|
69347
|
+
break;
|
69348
|
+
case 'left':
|
69349
|
+
wrapperStyle.transform = "translateX(".concat(pushDistance, "px)");
|
69350
|
+
break;
|
69351
|
+
default:
|
69352
|
+
wrapperStyle.transform = "translateX(".concat(-pushDistance, "px)");
|
69353
|
+
break;
|
69354
|
+
}
|
69355
|
+
}
|
69356
|
+
if (placement === 'left' || placement === 'right') {
|
69357
|
+
wrapperStyle.width = (0,_util__WEBPACK_IMPORTED_MODULE_11__.parseWidthHeight)(width);
|
69358
|
+
} else {
|
69359
|
+
wrapperStyle.height = (0,_util__WEBPACK_IMPORTED_MODULE_11__.parseWidthHeight)(height);
|
69360
|
+
}
|
69361
|
+
var eventHandlers = {
|
69362
|
+
onMouseEnter: onMouseEnter,
|
69363
|
+
onMouseOver: onMouseOver,
|
69364
|
+
onMouseLeave: onMouseLeave,
|
69365
|
+
onClick: onClick,
|
69366
|
+
onKeyDown: onKeyDown,
|
69367
|
+
onKeyUp: onKeyUp
|
69368
|
+
};
|
69369
|
+
var panelNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(rc_motion__WEBPACK_IMPORTED_MODULE_5__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
69370
|
+
key: "panel"
|
69371
|
+
}, motionProps, {
|
69372
|
+
visible: open,
|
69373
|
+
forceRender: forceRender,
|
69374
|
+
onVisibleChanged: function onVisibleChanged(nextVisible) {
|
69375
|
+
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
|
69376
|
+
},
|
69377
|
+
removeOnLeave: false,
|
69378
|
+
leavedClassName: "".concat(prefixCls, "-content-wrapper-hidden")
|
69379
|
+
}), function (_ref3, motionRef) {
|
69380
|
+
var motionClassName = _ref3.className,
|
69381
|
+
motionStyle = _ref3.style;
|
69382
|
+
var content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(_DrawerPanel__WEBPACK_IMPORTED_MODULE_10__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
69383
|
+
id: id,
|
69384
|
+
containerRef: motionRef,
|
69385
|
+
prefixCls: prefixCls,
|
69386
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.content),
|
69387
|
+
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, style), styles === null || styles === void 0 ? void 0 : styles.content)
|
69388
|
+
}, (0,rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_7__["default"])(props, {
|
69389
|
+
aria: true
|
69390
|
+
}), eventHandlers), children);
|
69391
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
69392
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()("".concat(prefixCls, "-content-wrapper"), drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.wrapper, motionClassName),
|
69393
|
+
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, wrapperStyle), motionStyle), styles === null || styles === void 0 ? void 0 : styles.wrapper)
|
69394
|
+
}, (0,rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_7__["default"])(props, {
|
69395
|
+
data: true
|
69396
|
+
})), drawerRender ? drawerRender(content) : content);
|
69397
|
+
});
|
69398
|
+
|
69399
|
+
// =========================== Render ===========================
|
69400
|
+
var containerStyle = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, rootStyle);
|
69401
|
+
if (zIndex) {
|
69402
|
+
containerStyle.zIndex = zIndex;
|
69403
|
+
}
|
69404
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(_context__WEBPACK_IMPORTED_MODULE_9__["default"].Provider, {
|
69405
|
+
value: mergedContext
|
69406
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement("div", {
|
69407
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, "".concat(prefixCls, "-").concat(placement), rootClassName, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, "".concat(prefixCls, "-open"), open), "".concat(prefixCls, "-inline"), inline)),
|
69408
|
+
style: containerStyle,
|
69409
|
+
tabIndex: -1,
|
69410
|
+
ref: panelRef,
|
69411
|
+
onKeyDown: onPanelKeyDown
|
69412
|
+
}, maskNode, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement("div", {
|
69413
|
+
tabIndex: 0,
|
69414
|
+
ref: sentinelStartRef,
|
69415
|
+
style: sentinelStyle,
|
69416
|
+
"aria-hidden": "true",
|
69417
|
+
"data-sentinel": "start"
|
69418
|
+
}), panelNode, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement("div", {
|
69419
|
+
tabIndex: 0,
|
69420
|
+
ref: sentinelEndRef,
|
69421
|
+
style: sentinelStyle,
|
69422
|
+
"aria-hidden": "true",
|
69423
|
+
"data-sentinel": "end"
|
69424
|
+
})));
|
69425
|
+
}
|
69426
|
+
var RefDrawerPopup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.forwardRef(DrawerPopup);
|
69427
|
+
if (true) {
|
69428
|
+
RefDrawerPopup.displayName = 'DrawerPopup';
|
69429
|
+
}
|
69430
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RefDrawerPopup);
|
69431
|
+
|
69432
|
+
/***/ }),
|
69433
|
+
|
69434
|
+
/***/ "./node_modules/rc-drawer/es/context.js":
|
69435
|
+
/*!**********************************************!*\
|
69436
|
+
!*** ./node_modules/rc-drawer/es/context.js ***!
|
69437
|
+
\**********************************************/
|
69438
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
69439
|
+
|
69440
|
+
"use strict";
|
69441
|
+
__webpack_require__.r(__webpack_exports__);
|
69442
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
69443
|
+
/* harmony export */ RefContext: () => (/* binding */ RefContext),
|
69444
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
69445
|
+
/* harmony export */ });
|
69446
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
69447
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
69448
|
+
|
69449
|
+
var DrawerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);
|
69450
|
+
var RefContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
|
69451
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DrawerContext);
|
69452
|
+
|
69453
|
+
/***/ }),
|
69454
|
+
|
69455
|
+
/***/ "./node_modules/rc-drawer/es/index.js":
|
69456
|
+
/*!********************************************!*\
|
69457
|
+
!*** ./node_modules/rc-drawer/es/index.js ***!
|
69458
|
+
\********************************************/
|
69459
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
69460
|
+
|
69461
|
+
"use strict";
|
69462
|
+
__webpack_require__.r(__webpack_exports__);
|
69463
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
69464
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
69465
|
+
/* harmony export */ });
|
69466
|
+
/* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Drawer */ "./node_modules/rc-drawer/es/Drawer.js");
|
69467
|
+
// export this package's api
|
69468
|
+
|
69469
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_Drawer__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
69470
|
+
|
69471
|
+
/***/ }),
|
69472
|
+
|
69473
|
+
/***/ "./node_modules/rc-drawer/es/util.js":
|
69474
|
+
/*!*******************************************!*\
|
69475
|
+
!*** ./node_modules/rc-drawer/es/util.js ***!
|
69476
|
+
\*******************************************/
|
69477
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
69478
|
+
|
69479
|
+
"use strict";
|
69480
|
+
__webpack_require__.r(__webpack_exports__);
|
69481
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
69482
|
+
/* harmony export */ parseWidthHeight: () => (/* binding */ parseWidthHeight),
|
69483
|
+
/* harmony export */ warnCheck: () => (/* binding */ warnCheck)
|
69484
|
+
/* harmony export */ });
|
69485
|
+
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
69486
|
+
/* harmony import */ var rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Dom/canUseDom */ "./node_modules/rc-util/es/Dom/canUseDom.js");
|
69487
|
+
|
69488
|
+
|
69489
|
+
function parseWidthHeight(value) {
|
69490
|
+
if (typeof value === 'string' && String(Number(value)) === value) {
|
69491
|
+
(0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(false, 'Invalid value type of `width` or `height` which should be number type instead.');
|
69492
|
+
return Number(value);
|
69493
|
+
}
|
69494
|
+
return value;
|
69495
|
+
}
|
69496
|
+
function warnCheck(props) {
|
69497
|
+
(0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(!('wrapperClassName' in props), "'wrapperClassName' is removed. Please use 'rootClassName' instead.");
|
69498
|
+
(0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_0__["default"])((0,rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__["default"])() || !props.open, "Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.");
|
69499
|
+
}
|
69500
|
+
|
69501
|
+
/***/ }),
|
69502
|
+
|
68687
69503
|
/***/ "./node_modules/rc-motion/es/CSSMotion.js":
|
68688
69504
|
/*!************************************************!*\
|
68689
69505
|
!*** ./node_modules/rc-motion/es/CSSMotion.js ***!
|
@@ -131683,6 +132499,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
131683
132499
|
/* harmony export */ CodeBlock: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.CodeBlock),
|
131684
132500
|
/* harmony export */ CodeSnippet: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.CodeSnippet),
|
131685
132501
|
/* harmony export */ ComboButton: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.ComboButton),
|
132502
|
+
/* harmony export */ Drawer: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Drawer),
|
131686
132503
|
/* harmony export */ Icon: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Icon),
|
131687
132504
|
/* harmony export */ IconButton: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.IconButton),
|
131688
132505
|
/* harmony export */ InfoChip: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.InfoChip),
|