59d5fa1ee1dcb95115acc7a0575c34b8.json
18.1 KB
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\n\nvar _this = this;\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport Tooltip from '../tooltip';\nimport Button from '../button';\nimport { convertLegacyProps } from '../button/button';\nimport LocaleReceiver from '../locale-provider/LocaleReceiver';\nimport defaultLocale from '../locale/default';\nimport { ConfigContext } from '../config-provider';\nimport { getRenderPropValue } from '../_util/getRenderPropValue';\nimport { cloneElement } from '../_util/reactNode';\nvar Popconfirm = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _React$useState = React.useState(props.visible),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n visible = _React$useState2[0],\n setVisible = _React$useState2[1];\n\n React.useEffect(function () {\n if ('visible' in props) {\n setVisible(props.visible);\n }\n }, [props.visible]);\n React.useEffect(function () {\n if ('defaultVisible' in props) {\n setVisible(props.defaultVisible);\n }\n }, [props.defaultVisible]);\n\n var settingVisible = function settingVisible(value, e) {\n if (!('visible' in props)) {\n setVisible(value);\n }\n\n if (props.onVisibleChange) {\n props.onVisibleChange(value, e);\n }\n };\n\n var onConfirm = function onConfirm(e) {\n settingVisible(false, e);\n\n if (props.onConfirm) {\n props.onConfirm.call(_this, e);\n }\n };\n\n var onCancel = function onCancel(e) {\n settingVisible(false, e);\n\n if (props.onCancel) {\n props.onCancel.call(_this, e);\n }\n };\n\n var _onKeyDown = function onKeyDown(e) {\n if (e.keyCode === KeyCode.ESC && visible) {\n settingVisible(false, e);\n }\n };\n\n var onVisibleChange = function onVisibleChange(value) {\n var disabled = props.disabled;\n\n if (disabled) {\n return;\n }\n\n settingVisible(value);\n };\n\n var renderOverlay = function renderOverlay(prefixCls, popconfirmLocale) {\n var okButtonProps = props.okButtonProps,\n cancelButtonProps = props.cancelButtonProps,\n title = props.title,\n cancelText = props.cancelText,\n okText = props.okText,\n okType = props.okType,\n icon = props.icon;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-inner-content\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-message\")\n }, icon, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-message-title\")\n }, getRenderPropValue(title))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-buttons\")\n }, /*#__PURE__*/React.createElement(Button, _extends({\n onClick: onCancel,\n size: \"small\"\n }, cancelButtonProps), cancelText || popconfirmLocale.cancelText), /*#__PURE__*/React.createElement(Button, _extends({\n onClick: onConfirm\n }, convertLegacyProps(okType), {\n size: \"small\"\n }, okButtonProps), okText || popconfirmLocale.okText)));\n };\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var customizePrefixCls = props.prefixCls,\n placement = props.placement,\n children = props.children,\n overlayClassName = props.overlayClassName,\n restProps = __rest(props, [\"prefixCls\", \"placement\", \"children\", \"overlayClassName\"]);\n\n var prefixCls = getPrefixCls('popover', customizePrefixCls);\n var prefixClsConfirm = getPrefixCls('popconfirm', customizePrefixCls);\n var overlayClassNames = classNames(prefixClsConfirm, overlayClassName);\n var overlay = /*#__PURE__*/React.createElement(LocaleReceiver, {\n componentName: \"Popconfirm\",\n defaultLocale: defaultLocale.Popconfirm\n }, function (popconfirmLocale) {\n return renderOverlay(prefixCls, popconfirmLocale);\n });\n return /*#__PURE__*/React.createElement(Tooltip, _extends({}, restProps, {\n prefixCls: prefixCls,\n placement: placement,\n onVisibleChange: onVisibleChange,\n visible: visible,\n overlay: overlay,\n overlayClassName: overlayClassNames,\n ref: ref\n }), cloneElement(children, {\n onKeyDown: function onKeyDown(e) {\n var _a, _b;\n\n if ( /*#__PURE__*/React.isValidElement(children)) {\n (_b = children === null || children === void 0 ? void 0 : (_a = children.props).onKeyDown) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n }\n\n _onKeyDown(e);\n }\n }));\n});\nPopconfirm.defaultProps = {\n transitionName: 'zoom-big',\n placement: 'top',\n trigger: 'click',\n okType: 'primary',\n icon: /*#__PURE__*/React.createElement(ExclamationCircleFilled, null),\n disabled: false\n};\nexport default Popconfirm;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/popconfirm/index.js"],"names":["_extends","_slicedToArray","_this","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","classNames","ExclamationCircleFilled","KeyCode","Tooltip","Button","convertLegacyProps","LocaleReceiver","defaultLocale","ConfigContext","getRenderPropValue","cloneElement","Popconfirm","forwardRef","props","ref","_React$useState","useState","visible","_React$useState2","setVisible","useEffect","defaultVisible","settingVisible","value","onVisibleChange","onConfirm","onCancel","_onKeyDown","onKeyDown","keyCode","ESC","disabled","renderOverlay","prefixCls","popconfirmLocale","okButtonProps","cancelButtonProps","title","cancelText","okText","okType","icon","createElement","className","concat","onClick","size","_React$useContext","useContext","getPrefixCls","customizePrefixCls","placement","children","overlayClassName","restProps","prefixClsConfirm","overlayClassNames","overlay","componentName","_a","_b","isValidElement","defaultProps","transitionName","trigger"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,gCAArB;AACA,OAAOC,cAAP,MAA2B,sCAA3B;;AAEA,IAAIC,KAAK,GAAG,IAA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B,CAArC,EAQhBJ,YAAY,CAAC0C,QAAD,EAAW;AACzBxB,IAAAA,SAAS,EAAE,SAASA,SAAT,CAAmBzC,CAAnB,EAAsB;AAC/B,UAAIwE,EAAJ,EAAQC,EAAR;;AAEA,WAAK,aAAa7D,KAAK,CAAC8D,cAAN,CAAqBT,QAArB,CAAlB,EAAkD;AAChD,SAACQ,EAAE,GAAGR,QAAQ,KAAK,IAAb,IAAqBA,QAAQ,KAAK,KAAK,CAAvC,GAA2C,KAAK,CAAhD,GAAoD,CAACO,EAAE,GAAGP,QAAQ,CAACvC,KAAf,EAAsBe,SAAhF,MAA+F,IAA/F,IAAuGgC,EAAE,KAAK,KAAK,CAAnH,GAAuH,KAAK,CAA5H,GAAgIA,EAAE,CAACnE,IAAH,CAAQkE,EAAR,EAAYxE,CAAZ,CAAhI;AACD;;AAEDwC,MAAAA,UAAU,CAACxC,CAAD,CAAV;AACD;AATwB,GAAX,CARI,CAApB;AAmBD,CA1H6B,CAA9B;AA2HAwB,UAAU,CAACmD,YAAX,GAA0B;AACxBC,EAAAA,cAAc,EAAE,UADQ;AAExBZ,EAAAA,SAAS,EAAE,KAFa;AAGxBa,EAAAA,OAAO,EAAE,OAHe;AAIxBxB,EAAAA,MAAM,EAAE,SAJgB;AAKxBC,EAAAA,IAAI,EAAE,aAAa1C,KAAK,CAAC2C,aAAN,CAAoBzC,uBAApB,EAA6C,IAA7C,CALK;AAMxB8B,EAAAA,QAAQ,EAAE;AANc,CAA1B;AAQA,eAAepB,UAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\n\nvar _this = this;\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport Tooltip from '../tooltip';\nimport Button from '../button';\nimport { convertLegacyProps } from '../button/button';\nimport LocaleReceiver from '../locale-provider/LocaleReceiver';\nimport defaultLocale from '../locale/default';\nimport { ConfigContext } from '../config-provider';\nimport { getRenderPropValue } from '../_util/getRenderPropValue';\nimport { cloneElement } from '../_util/reactNode';\nvar Popconfirm = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _React$useState = React.useState(props.visible),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n visible = _React$useState2[0],\n setVisible = _React$useState2[1];\n\n React.useEffect(function () {\n if ('visible' in props) {\n setVisible(props.visible);\n }\n }, [props.visible]);\n React.useEffect(function () {\n if ('defaultVisible' in props) {\n setVisible(props.defaultVisible);\n }\n }, [props.defaultVisible]);\n\n var settingVisible = function settingVisible(value, e) {\n if (!('visible' in props)) {\n setVisible(value);\n }\n\n if (props.onVisibleChange) {\n props.onVisibleChange(value, e);\n }\n };\n\n var onConfirm = function onConfirm(e) {\n settingVisible(false, e);\n\n if (props.onConfirm) {\n props.onConfirm.call(_this, e);\n }\n };\n\n var onCancel = function onCancel(e) {\n settingVisible(false, e);\n\n if (props.onCancel) {\n props.onCancel.call(_this, e);\n }\n };\n\n var _onKeyDown = function onKeyDown(e) {\n if (e.keyCode === KeyCode.ESC && visible) {\n settingVisible(false, e);\n }\n };\n\n var onVisibleChange = function onVisibleChange(value) {\n var disabled = props.disabled;\n\n if (disabled) {\n return;\n }\n\n settingVisible(value);\n };\n\n var renderOverlay = function renderOverlay(prefixCls, popconfirmLocale) {\n var okButtonProps = props.okButtonProps,\n cancelButtonProps = props.cancelButtonProps,\n title = props.title,\n cancelText = props.cancelText,\n okText = props.okText,\n okType = props.okType,\n icon = props.icon;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-inner-content\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-message\")\n }, icon, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-message-title\")\n }, getRenderPropValue(title))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-buttons\")\n }, /*#__PURE__*/React.createElement(Button, _extends({\n onClick: onCancel,\n size: \"small\"\n }, cancelButtonProps), cancelText || popconfirmLocale.cancelText), /*#__PURE__*/React.createElement(Button, _extends({\n onClick: onConfirm\n }, convertLegacyProps(okType), {\n size: \"small\"\n }, okButtonProps), okText || popconfirmLocale.okText)));\n };\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var customizePrefixCls = props.prefixCls,\n placement = props.placement,\n children = props.children,\n overlayClassName = props.overlayClassName,\n restProps = __rest(props, [\"prefixCls\", \"placement\", \"children\", \"overlayClassName\"]);\n\n var prefixCls = getPrefixCls('popover', customizePrefixCls);\n var prefixClsConfirm = getPrefixCls('popconfirm', customizePrefixCls);\n var overlayClassNames = classNames(prefixClsConfirm, overlayClassName);\n var overlay = /*#__PURE__*/React.createElement(LocaleReceiver, {\n componentName: \"Popconfirm\",\n defaultLocale: defaultLocale.Popconfirm\n }, function (popconfirmLocale) {\n return renderOverlay(prefixCls, popconfirmLocale);\n });\n return /*#__PURE__*/React.createElement(Tooltip, _extends({}, restProps, {\n prefixCls: prefixCls,\n placement: placement,\n onVisibleChange: onVisibleChange,\n visible: visible,\n overlay: overlay,\n overlayClassName: overlayClassNames,\n ref: ref\n }), cloneElement(children, {\n onKeyDown: function onKeyDown(e) {\n var _a, _b;\n\n if ( /*#__PURE__*/React.isValidElement(children)) {\n (_b = children === null || children === void 0 ? void 0 : (_a = children.props).onKeyDown) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n }\n\n _onKeyDown(e);\n }\n }));\n});\nPopconfirm.defaultProps = {\n transitionName: 'zoom-big',\n placement: 'top',\n trigger: 'click',\n okType: 'primary',\n icon: /*#__PURE__*/React.createElement(ExclamationCircleFilled, null),\n disabled: false\n};\nexport default Popconfirm;"]},"metadata":{},"sourceType":"module"}