094c822fe3e259a7066c9747b3d6d6b1.json
16.9 KB
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\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 toArray from \"rc-util/es/Children/toArray\";\nimport BreadcrumbItem from './BreadcrumbItem';\nimport BreadcrumbSeparator from './BreadcrumbSeparator';\nimport Menu from '../menu';\nimport { ConfigContext } from '../config-provider';\nimport devWarning from '../_util/devWarning';\nimport { cloneElement } from '../_util/reactNode';\n\nfunction getBreadcrumbName(route, params) {\n if (!route.breadcrumbName) {\n return null;\n }\n\n var paramsKeys = Object.keys(params).join('|');\n var name = route.breadcrumbName.replace(new RegExp(\":(\".concat(paramsKeys, \")\"), 'g'), function (replacement, key) {\n return params[key] || replacement;\n });\n return name;\n}\n\nfunction defaultItemRender(route, params, routes, paths) {\n var isLastItem = routes.indexOf(route) === routes.length - 1;\n var name = getBreadcrumbName(route, params);\n return isLastItem ? /*#__PURE__*/React.createElement(\"span\", null, name) : /*#__PURE__*/React.createElement(\"a\", {\n href: \"#/\".concat(paths.join('/'))\n }, name);\n}\n\nvar getPath = function getPath(path, params) {\n path = (path || '').replace(/^\\//, '');\n Object.keys(params).forEach(function (key) {\n path = path.replace(\":\".concat(key), params[key]);\n });\n return path;\n};\n\nvar addChildPath = function addChildPath(paths) {\n var childPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var params = arguments.length > 2 ? arguments[2] : undefined;\n\n var originalPaths = _toConsumableArray(paths);\n\n var path = getPath(childPath, params);\n\n if (path) {\n originalPaths.push(path);\n }\n\n return originalPaths;\n};\n\nvar Breadcrumb = function Breadcrumb(_a) {\n var customizePrefixCls = _a.prefixCls,\n _a$separator = _a.separator,\n separator = _a$separator === void 0 ? '/' : _a$separator,\n style = _a.style,\n className = _a.className,\n routes = _a.routes,\n children = _a.children,\n _a$itemRender = _a.itemRender,\n itemRender = _a$itemRender === void 0 ? defaultItemRender : _a$itemRender,\n _a$params = _a.params,\n params = _a$params === void 0 ? {} : _a$params,\n restProps = __rest(_a, [\"prefixCls\", \"separator\", \"style\", \"className\", \"routes\", \"children\", \"itemRender\", \"params\"]);\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n direction = _React$useContext.direction;\n\n var crumbs;\n var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);\n\n if (routes && routes.length > 0) {\n // generated by route\n var paths = [];\n crumbs = routes.map(function (route) {\n var path = getPath(route.path, params);\n\n if (path) {\n paths.push(path);\n } // generated overlay by route.children\n\n\n var overlay;\n\n if (route.children && route.children.length) {\n overlay = /*#__PURE__*/React.createElement(Menu, null, route.children.map(function (child) {\n return /*#__PURE__*/React.createElement(Menu.Item, {\n key: child.path || child.breadcrumbName\n }, itemRender(child, params, routes, addChildPath(paths, child.path, params)));\n }));\n }\n\n return /*#__PURE__*/React.createElement(BreadcrumbItem, {\n overlay: overlay,\n separator: separator,\n key: path || route.breadcrumbName\n }, itemRender(route, params, routes, paths));\n });\n } else if (children) {\n crumbs = toArray(children).map(function (element, index) {\n if (!element) {\n return element;\n }\n\n devWarning(element.type && (element.type.__ANT_BREADCRUMB_ITEM === true || element.type.__ANT_BREADCRUMB_SEPARATOR === true), 'Breadcrumb', \"Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children\");\n return cloneElement(element, {\n separator: separator,\n key: index\n });\n });\n }\n\n var breadcrumbClassName = classNames(prefixCls, _defineProperty({}, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), className);\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: breadcrumbClassName,\n style: style\n }, restProps), crumbs);\n};\n\nBreadcrumb.Item = BreadcrumbItem;\nBreadcrumb.Separator = BreadcrumbSeparator;\nexport default Breadcrumb;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/breadcrumb/Breadcrumb.js"],"names":["_extends","_defineProperty","_toConsumableArray","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","classNames","toArray","BreadcrumbItem","BreadcrumbSeparator","Menu","ConfigContext","devWarning","cloneElement","getBreadcrumbName","route","params","breadcrumbName","paramsKeys","keys","join","name","replace","RegExp","concat","replacement","key","defaultItemRender","routes","paths","isLastItem","createElement","href","getPath","path","forEach","addChildPath","childPath","arguments","undefined","originalPaths","push","Breadcrumb","_a","customizePrefixCls","prefixCls","_a$separator","separator","style","className","children","_a$itemRender","itemRender","_a$params","restProps","_React$useContext","useContext","getPrefixCls","direction","crumbs","map","overlay","child","Item","element","index","type","__ANT_BREADCRUMB_ITEM","__ANT_BREADCRUMB_SEPARATOR","breadcrumbClassName","Separator"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,gCAArB;AACA,OAAOC,eAAP,MAA4B,uCAA5B;AACA,OAAOC,kBAAP,MAA+B,0CAA/B;;AAEA,IAAIC,MAAM,GAAG,QAAQ,KAAKA,MAAb,IAAuB,UAAUC,CAAV,EAAaC,CAAb,EAAgB;AAClD,MAAIC,CAAC,GAAG,EAAR;;AAEA,OAAK,IAAIC,CAAT,IAAcH,CAAd,EAAiB;AACf,QAAII,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCP,CAArC,EAAwCG,CAAxC,KAA8CF,CAAC,CAACO,OAAF,CAAUL,CAAV,IAAe,CAA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AAa5C,KAAK,CAAC0B,aAAN,CAAoB,KAApB,EAA2B3C,QAAQ,CAAC;AACtD6D,IAAAA,SAAS,EAAEoB,mBAD2C;AAEtDrB,IAAAA,KAAK,EAAEA;AAF+C,GAAD,EAGpDM,SAHoD,CAAnC,EAGLK,MAHK,CAApB;AAID,CAnED;;AAqEAjB,UAAU,CAACqB,IAAX,GAAkBvD,cAAlB;AACAkC,UAAU,CAAC4B,SAAX,GAAuB7D,mBAAvB;AACA,eAAeiC,UAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\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 toArray from \"rc-util/es/Children/toArray\";\nimport BreadcrumbItem from './BreadcrumbItem';\nimport BreadcrumbSeparator from './BreadcrumbSeparator';\nimport Menu from '../menu';\nimport { ConfigContext } from '../config-provider';\nimport devWarning from '../_util/devWarning';\nimport { cloneElement } from '../_util/reactNode';\n\nfunction getBreadcrumbName(route, params) {\n if (!route.breadcrumbName) {\n return null;\n }\n\n var paramsKeys = Object.keys(params).join('|');\n var name = route.breadcrumbName.replace(new RegExp(\":(\".concat(paramsKeys, \")\"), 'g'), function (replacement, key) {\n return params[key] || replacement;\n });\n return name;\n}\n\nfunction defaultItemRender(route, params, routes, paths) {\n var isLastItem = routes.indexOf(route) === routes.length - 1;\n var name = getBreadcrumbName(route, params);\n return isLastItem ? /*#__PURE__*/React.createElement(\"span\", null, name) : /*#__PURE__*/React.createElement(\"a\", {\n href: \"#/\".concat(paths.join('/'))\n }, name);\n}\n\nvar getPath = function getPath(path, params) {\n path = (path || '').replace(/^\\//, '');\n Object.keys(params).forEach(function (key) {\n path = path.replace(\":\".concat(key), params[key]);\n });\n return path;\n};\n\nvar addChildPath = function addChildPath(paths) {\n var childPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var params = arguments.length > 2 ? arguments[2] : undefined;\n\n var originalPaths = _toConsumableArray(paths);\n\n var path = getPath(childPath, params);\n\n if (path) {\n originalPaths.push(path);\n }\n\n return originalPaths;\n};\n\nvar Breadcrumb = function Breadcrumb(_a) {\n var customizePrefixCls = _a.prefixCls,\n _a$separator = _a.separator,\n separator = _a$separator === void 0 ? '/' : _a$separator,\n style = _a.style,\n className = _a.className,\n routes = _a.routes,\n children = _a.children,\n _a$itemRender = _a.itemRender,\n itemRender = _a$itemRender === void 0 ? defaultItemRender : _a$itemRender,\n _a$params = _a.params,\n params = _a$params === void 0 ? {} : _a$params,\n restProps = __rest(_a, [\"prefixCls\", \"separator\", \"style\", \"className\", \"routes\", \"children\", \"itemRender\", \"params\"]);\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n direction = _React$useContext.direction;\n\n var crumbs;\n var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);\n\n if (routes && routes.length > 0) {\n // generated by route\n var paths = [];\n crumbs = routes.map(function (route) {\n var path = getPath(route.path, params);\n\n if (path) {\n paths.push(path);\n } // generated overlay by route.children\n\n\n var overlay;\n\n if (route.children && route.children.length) {\n overlay = /*#__PURE__*/React.createElement(Menu, null, route.children.map(function (child) {\n return /*#__PURE__*/React.createElement(Menu.Item, {\n key: child.path || child.breadcrumbName\n }, itemRender(child, params, routes, addChildPath(paths, child.path, params)));\n }));\n }\n\n return /*#__PURE__*/React.createElement(BreadcrumbItem, {\n overlay: overlay,\n separator: separator,\n key: path || route.breadcrumbName\n }, itemRender(route, params, routes, paths));\n });\n } else if (children) {\n crumbs = toArray(children).map(function (element, index) {\n if (!element) {\n return element;\n }\n\n devWarning(element.type && (element.type.__ANT_BREADCRUMB_ITEM === true || element.type.__ANT_BREADCRUMB_SEPARATOR === true), 'Breadcrumb', \"Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children\");\n return cloneElement(element, {\n separator: separator,\n key: index\n });\n });\n }\n\n var breadcrumbClassName = classNames(prefixCls, _defineProperty({}, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), className);\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: breadcrumbClassName,\n style: style\n }, restProps), crumbs);\n};\n\nBreadcrumb.Item = BreadcrumbItem;\nBreadcrumb.Separator = BreadcrumbSeparator;\nexport default Breadcrumb;"]},"metadata":{},"sourceType":"module"}