@kne-components/components-core 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +86 -86
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/{1996.cf8188b5.chunk.css → 1996.f7187950.chunk.css} +2 -2
- package/build/static/css/1996.f7187950.chunk.css.map +1 -0
- package/build/static/css/206.6f89dc73.chunk.css +2 -0
- package/build/static/css/{206.b2e2b07b.chunk.css.map → 206.6f89dc73.chunk.css.map} +1 -1
- package/build/static/css/254.95989955.chunk.css +2 -0
- package/build/static/css/{254.88b58063.chunk.css.map → 254.95989955.chunk.css.map} +1 -1
- package/build/static/css/2628.27e57c8d.chunk.css +2 -0
- package/build/static/css/{2628.4ac90a6a.chunk.css.map → 2628.27e57c8d.chunk.css.map} +1 -1
- package/build/static/css/2716.131643c5.chunk.css +2 -0
- package/build/static/css/{2716.3fbd5455.chunk.css.map → 2716.131643c5.chunk.css.map} +1 -1
- package/build/static/css/3652.f826f777.chunk.css +2 -0
- package/build/static/css/{3652.bac55c5a.chunk.css.map → 3652.f826f777.chunk.css.map} +1 -1
- package/build/static/css/{3771.18a45f4e.chunk.css → 3771.ea22b759.chunk.css} +2 -2
- package/build/static/css/{3771.18a45f4e.chunk.css.map → 3771.ea22b759.chunk.css.map} +1 -1
- package/build/static/css/{3790.73578750.chunk.css → 3790.ddeab00e.chunk.css} +2 -2
- package/build/static/css/{3790.73578750.chunk.css.map → 3790.ddeab00e.chunk.css.map} +1 -1
- package/build/static/css/{4277.65e5cdcb.chunk.css → 4277.6b087fc4.chunk.css} +2 -2
- package/build/static/css/{4277.65e5cdcb.chunk.css.map → 4277.6b087fc4.chunk.css.map} +1 -1
- package/build/static/css/4741.9925fbaf.chunk.css +2 -0
- package/build/static/css/{4741.aa1d38a8.chunk.css.map → 4741.9925fbaf.chunk.css.map} +1 -1
- package/build/static/css/4832.1c550a1a.chunk.css +2 -0
- package/build/static/css/{4832.d889961f.chunk.css.map → 4832.1c550a1a.chunk.css.map} +1 -1
- package/build/static/css/4982.31571c92.chunk.css +2 -0
- package/build/static/css/{4982.331d60ac.chunk.css.map → 4982.31571c92.chunk.css.map} +1 -1
- package/build/static/css/5195.ab3637e0.chunk.css +2 -0
- package/build/static/css/{5195.0ff95a1d.chunk.css.map → 5195.ab3637e0.chunk.css.map} +1 -1
- package/build/static/css/{6763.62762550.chunk.css → 6763.48e51f90.chunk.css} +2 -2
- package/build/static/css/{6763.62762550.chunk.css.map → 6763.48e51f90.chunk.css.map} +1 -1
- package/build/static/css/6980.707ed633.chunk.css +12 -0
- package/build/static/css/{6980.d16fae4d.chunk.css.map → 6980.707ed633.chunk.css.map} +1 -1
- package/build/static/css/7227.584974c9.chunk.css +2 -0
- package/build/static/css/{7227.fcb09ea0.chunk.css.map → 7227.584974c9.chunk.css.map} +1 -1
- package/build/static/css/{760.1841f8cc.chunk.css → 760.d85a9952.chunk.css} +2 -2
- package/build/static/css/{760.1841f8cc.chunk.css.map → 760.d85a9952.chunk.css.map} +1 -1
- package/build/static/css/{8593.65f9c97c.chunk.css → 8593.8624332d.chunk.css} +2 -2
- package/build/static/css/{8593.65f9c97c.chunk.css.map → 8593.8624332d.chunk.css.map} +1 -1
- package/build/static/css/9556.75095c45.chunk.css +2 -0
- package/build/static/css/{9556.4b9c0fcf.chunk.css.map → 9556.75095c45.chunk.css.map} +1 -1
- package/build/static/css/9772.5ca5a3f6.chunk.css +2 -0
- package/build/static/css/{9772.e233dab7.chunk.css.map → 9772.5ca5a3f6.chunk.css.map} +1 -1
- package/build/static/js/1996.3998a1a7.chunk.js +2 -0
- package/build/static/js/1996.3998a1a7.chunk.js.map +1 -0
- package/build/static/js/206.7c4d3a30.chunk.js +2 -0
- package/build/static/js/{206.8da43de0.chunk.js.map → 206.7c4d3a30.chunk.js.map} +1 -1
- package/build/static/js/254.e5b10483.chunk.js +2 -0
- package/build/static/js/{254.b9cbe23a.chunk.js.map → 254.e5b10483.chunk.js.map} +1 -1
- package/build/static/js/2628.16afac90.chunk.js +2 -0
- package/build/static/js/{2628.d2f7a130.chunk.js.map → 2628.16afac90.chunk.js.map} +1 -1
- package/build/static/js/{2716.1f7ca0d1.chunk.js → 2716.a0af012b.chunk.js} +3 -3
- package/build/static/js/{2716.1f7ca0d1.chunk.js.map → 2716.a0af012b.chunk.js.map} +1 -1
- package/build/static/js/{3652.283b6a37.chunk.js → 3652.bfef1f58.chunk.js} +2 -2
- package/build/static/js/{3652.283b6a37.chunk.js.map → 3652.bfef1f58.chunk.js.map} +1 -1
- package/build/static/js/{3771.6dc4e2b4.chunk.js → 3771.e74ad04d.chunk.js} +2 -2
- package/build/static/js/{3771.6dc4e2b4.chunk.js.map → 3771.e74ad04d.chunk.js.map} +1 -1
- package/build/static/js/{3790.97b7731a.chunk.js → 3790.e2801736.chunk.js} +2 -2
- package/build/static/js/{3790.97b7731a.chunk.js.map → 3790.e2801736.chunk.js.map} +1 -1
- package/build/static/js/{3856.9740e7c1.chunk.js → 3856.9efdf167.chunk.js} +2 -2
- package/build/static/js/{3856.9740e7c1.chunk.js.map → 3856.9efdf167.chunk.js.map} +1 -1
- package/build/static/js/4277.7f345cdd.chunk.js +2 -0
- package/build/static/js/{4277.c58d2203.chunk.js.map → 4277.7f345cdd.chunk.js.map} +1 -1
- package/build/static/js/4474.c9c85c69.chunk.js +2 -0
- package/build/static/js/{4474.e4e26ef0.chunk.js.map → 4474.c9c85c69.chunk.js.map} +1 -1
- package/build/static/js/{4832.43c0e7ea.chunk.js → 4832.71a0add8.chunk.js} +2 -2
- package/build/static/js/{4832.43c0e7ea.chunk.js.map → 4832.71a0add8.chunk.js.map} +1 -1
- package/build/static/js/{4982.2993fed4.chunk.js → 4982.cb026d81.chunk.js} +3 -3
- package/build/static/js/{4982.2993fed4.chunk.js.map → 4982.cb026d81.chunk.js.map} +1 -1
- package/build/static/js/5195.f64c66e9.chunk.js +2 -0
- package/build/static/js/5195.f64c66e9.chunk.js.map +1 -0
- package/build/static/js/6763.fa13e190.chunk.js +2 -0
- package/build/static/js/{6763.2936384b.chunk.js.map → 6763.fa13e190.chunk.js.map} +1 -1
- package/build/static/js/{6980.6a7030f5.chunk.js → 6980.828abb7b.chunk.js} +2 -2
- package/build/static/js/{6980.6a7030f5.chunk.js.map → 6980.828abb7b.chunk.js.map} +1 -1
- package/build/static/js/{7227.386811d0.chunk.js → 7227.ea35ab73.chunk.js} +3 -3
- package/build/static/js/{7227.386811d0.chunk.js.map → 7227.ea35ab73.chunk.js.map} +1 -1
- package/build/static/js/760.1f78cd4f.chunk.js +2 -0
- package/build/static/js/{760.22d7c6c7.chunk.js.map → 760.1f78cd4f.chunk.js.map} +1 -1
- package/build/static/js/8593.1a366426.chunk.js +2 -0
- package/build/static/js/{8593.a6336b2d.chunk.js.map → 8593.1a366426.chunk.js.map} +1 -1
- package/build/static/js/9556.cb82bc16.chunk.js +3 -0
- package/build/static/js/{9556.38a007d6.chunk.js.map → 9556.cb82bc16.chunk.js.map} +1 -1
- package/build/static/js/{9772.ea2c7ce7.chunk.js → 9772.b6204650.chunk.js} +2 -2
- package/build/static/js/{9772.ea2c7ce7.chunk.js.map → 9772.b6204650.chunk.js.map} +1 -1
- package/build/static/js/{main.068a9da0.js → main.86517c27.js} +2 -2
- package/build/static/js/{main.068a9da0.js.map → main.86517c27.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/1996.cf8188b5.chunk.css.map +0 -1
- package/build/static/css/206.b2e2b07b.chunk.css +0 -2
- package/build/static/css/254.88b58063.chunk.css +0 -2
- package/build/static/css/2628.4ac90a6a.chunk.css +0 -2
- package/build/static/css/2716.3fbd5455.chunk.css +0 -2
- package/build/static/css/3652.bac55c5a.chunk.css +0 -2
- package/build/static/css/4741.aa1d38a8.chunk.css +0 -2
- package/build/static/css/4832.d889961f.chunk.css +0 -2
- package/build/static/css/4982.331d60ac.chunk.css +0 -2
- package/build/static/css/5195.0ff95a1d.chunk.css +0 -2
- package/build/static/css/6980.d16fae4d.chunk.css +0 -12
- package/build/static/css/7227.fcb09ea0.chunk.css +0 -2
- package/build/static/css/9556.4b9c0fcf.chunk.css +0 -2
- package/build/static/css/9772.e233dab7.chunk.css +0 -2
- package/build/static/js/1996.a5580b3f.chunk.js +0 -2
- package/build/static/js/1996.a5580b3f.chunk.js.map +0 -1
- package/build/static/js/206.8da43de0.chunk.js +0 -2
- package/build/static/js/254.b9cbe23a.chunk.js +0 -2
- package/build/static/js/2628.d2f7a130.chunk.js +0 -2
- package/build/static/js/4277.c58d2203.chunk.js +0 -2
- package/build/static/js/4474.e4e26ef0.chunk.js +0 -2
- package/build/static/js/5195.02fc1a8a.chunk.js +0 -2
- package/build/static/js/5195.02fc1a8a.chunk.js.map +0 -1
- package/build/static/js/6763.2936384b.chunk.js +0 -2
- package/build/static/js/760.22d7c6c7.chunk.js +0 -2
- package/build/static/js/8593.a6336b2d.chunk.js +0 -2
- package/build/static/js/9556.38a007d6.chunk.js +0 -3
- /package/build/static/js/{2716.1f7ca0d1.chunk.js.LICENSE.txt → 2716.a0af012b.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4982.2993fed4.chunk.js.LICENSE.txt → 4982.cb026d81.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.386811d0.chunk.js.LICENSE.txt → 7227.ea35ab73.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.38a007d6.chunk.js.LICENSE.txt → 9556.cb82bc16.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see 2716.
|
|
2
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2716],{51153:(t,e,r)=>{var s=r(73884),a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,_=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var s,l={},c=null,i=null;for(s in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(i=e.ref),e)o.call(e,s)&&!n.hasOwnProperty(s)&&(l[s]=e[s]);if(t&&t.defaultProps)for(s in e=t.defaultProps)void 0===l[s]&&(l[s]=e[s]);return{$$typeof:a,type:t,key:c,ref:i,props:l,_owner:_.current}}e.Fragment=l,e.jsx=c,e.jsxs=c},62716:(t,e,r)=>{r.r(e),r.d(e,{default:()=>i});var s=r(73884),a=r(83136),l=r.n(a);const o={"state-tag":"style_state-
|
|
3
|
-
//# sourceMappingURL=2716.
|
|
1
|
+
/*! For license information please see 2716.a0af012b.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2716],{51153:(t,e,r)=>{var s=r(73884),a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,_=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var s,l={},c=null,i=null;for(s in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(i=e.ref),e)o.call(e,s)&&!n.hasOwnProperty(s)&&(l[s]=e[s]);if(t&&t.defaultProps)for(s in e=t.defaultProps)void 0===l[s]&&(l[s]=e[s]);return{$$typeof:a,type:t,key:c,ref:i,props:l,_owner:_.current}}e.Fragment=l,e.jsx=c,e.jsxs=c},62716:(t,e,r)=>{r.r(e),r.d(e,{default:()=>i});var s=r(73884),a=r(83136),l=r.n(a);const o={"state-tag":"style_state-tag__Kx27z__mv7mL","state-result-tag":"style_state-result-tag__CssDz__mv7mL","state-skill-tag":"style_state-skill-tag__k0bQE__mv7mL","event-tag":"style_event-tag__cg6SE__mv7mL","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__mv7mL","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__mv7mL","state-tag-filterResult":"style_state-tag-filterResult__KTkot__mv7mL","show-bg":"style_show-bg__OcL+R__mv7mL","tag-text":"style_tag-text__JHCt+__mv7mL","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__mv7mL"};var _=r(55199),n=r(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},i=t=>{let{showBorder:e=!1,text:r="",type:a="default",showBackground:i=!0,className:g,filterName:m,...u}=t;const p=(0,s.useMemo)(()=>{var t,e;return{color:(null===c||void 0===c||null===(t=c[a])||void 0===t?void 0:t.color)||c[a],borderColor:(null===c||void 0===c||null===(e=c[a])||void 0===e?void 0:e.borderColor)||c[a]}},[a]);return(0,n.jsxs)(_.Space,{"data-testid":"components-core-state-tag",className:l()(o["state-tag-wrapper"],"filterResult"===a?o["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[m?(0,n.jsxs)("span",{className:o["state-tag-filter-name"],children:[m,":"]}):null,(0,n.jsx)(_.Tag,{color:p.color,...u,style:{background:i?p.color+"0F":"none",color:p.color,border:e?`1px solid ${p.borderColor}`:"none"},className:l()(o["state-tag"],g,"result"===a?o["state-result-tag"]:"","skill"===a?o["state-skill-tag"]:"",o[`state-tag-${a}`],i?o["show-bg"]:"",e?o["show-border"]:"",null!==u&&void 0!==u&&u.onClick?o["event-tag"]:""),children:(0,n.jsx)("span",{className:o["tag-text"],children:r})})]})}},70579:(t,e,r)=>{t.exports=r(51153)}}]);
|
|
3
|
+
//# sourceMappingURL=2716.a0af012b.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/2716.
|
|
1
|
+
{"version":3,"file":"static/js/2716.a0af012b.chunk.js","mappings":";mJASa,IAAIA,E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core/./src/components/StateTag/style.module.scss?5aff","components/StateTag/index.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","// extracted by mini-css-extract-plugin\nexport default {\"state-tag\":\"style_state-tag__Kx27z__mv7mL\",\"state-result-tag\":\"style_state-result-tag__CssDz__mv7mL\",\"state-skill-tag\":\"style_state-skill-tag__k0bQE__mv7mL\",\"event-tag\":\"style_event-tag__cg6SE__mv7mL\",\"state-tag-filter-result-wrapper\":\"style_state-tag-filter-result-wrapper__QYS5z__mv7mL\",\"state-tag-filter-name\":\"style_state-tag-filter-name__iJaJd__mv7mL\",\"state-tag-filterResult\":\"style_state-tag-filterResult__KTkot__mv7mL\",\"show-bg\":\"style_show-bg__OcL+R__mv7mL\",\"tag-text\":\"style_tag-text__JHCt+__mv7mL\",\"state-tag-wrapper\":\"style_state-tag-wrapper__A-gTE__mv7mL\"};","import React, {useMemo} from \"react\";\nimport classnames from \"classnames\";\n\nimport style from \"./style.module.scss\";\nimport {Space, Tag} from \"antd\";\n\nconst tagTypeEnum = {\n default: \"#666666\",\n skill: {\n color: \"#666666\", borderColor: \"#EEEEEE\",\n },\n result: \"#666666\",\n filterResult: \"#5CB8B2\",\n success: \"#027A48\",\n progress: \"#F09700\",\n danger: \"#D14343\",\n info: \"#155ACF\",\n other: \"#6740C3\",\n};\n\nconst StateTag = ({\n showBorder = false,\n text = \"\",\n type = \"default\",\n showBackground = true,\n className,\n filterName,\n ...props\n }) => {\n const tagColor = useMemo(() => ({\n color: tagTypeEnum?.[type]?.color || tagTypeEnum[type],\n borderColor: tagTypeEnum?.[type]?.borderColor || tagTypeEnum[type],\n }), [type]);\n\n return (<Space\n data-testid={\"components-core-state-tag\"}\n className={classnames(style[\"state-tag-wrapper\"], type === \"filterResult\" ? style[\"state-tag-filter-result-wrapper\"] : \"\")}\n align=\"center\"\n size={4}\n >\n {filterName ? (<span className={style[\"state-tag-filter-name\"]}>{filterName}:</span>) : null}\n <Tag\n color={tagColor.color}\n {...props}\n style={{\n background: showBackground ? tagColor.color + \"0F\" : \"none\",\n color: tagColor.color,\n border: showBorder ? `1px solid ${tagColor.borderColor}` : \"none\",\n }}\n className={classnames(style[\"state-tag\"], className, type === \"result\" ? style[\"state-result-tag\"] : \"\", type === \"skill\" ? style[\"state-skill-tag\"] : \"\", style[`state-tag-${type}`], showBackground ? style[\"show-bg\"] : \"\", showBorder ? style[\"show-border\"] : \"\", props?.onClick ? style[\"event-tag\"] : \"\")}\n >\n <span className={style[\"tag-text\"]}>{text}</span>\n </Tag>\n </Space>);\n};\n\nexport default StateTag;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["f","require","k","Symbol","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","type","props","_owner","current","exports","Fragment","jsx","jsxs","tagTypeEnum","default","skill","color","borderColor","result","filterResult","success","progress","danger","info","other","_ref","showBorder","text","showBackground","className","filterName","tagColor","useMemo","_tagTypeEnum$type","_tagTypeEnum$type2","_jsxs","Space","classnames","style","align","size","children","_jsx","Tag","background","border","onClick","module"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3652],{48731:(e,n,i)=>{i.r(n),i.d(n,{default:()=>a.a});var s=i(60922),a=i.n(s),l=i(22717),t=i.n(l);(0,s.preset)({base:t()([["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],(e,n)=>{e[n[0]]=n[1]},{})})},75363:(e,n,i)=>{i.r(n),i.d(n,{default:()=>
|
|
2
|
-
//# sourceMappingURL=3652.
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3652],{48731:(e,n,i)=>{i.r(n),i.d(n,{default:()=>a.a});var s=i(60922),a=i.n(s),l=i(22717),t=i.n(l);(0,s.preset)({base:t()([["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],(e,n)=>{e[n[0]]=n[1]},{})})},75363:(e,n,i)=>{i.r(n),i.d(n,{default:()=>m});const s=e=>({"en-US":()=>i.e(9431).then(i.bind(i,9431)),"zh-CN":()=>i.e(1065).then(i.bind(i,81065))}[e]());var a=i(47458),l=i(64671),t=i(55199),r=i(83136),c=i.n(r);const o="style_helper-guide__K5xFw__mv7mL",d="style_inner__bMKeU__mv7mL",u="style_content__xTfWZ__mv7mL",p="style_link__93j7O__mv7mL";var v=i(48731),_=i(70579);const m=e=>{let{name:n,className:i}=e;return(0,_.jsx)(a.IntlProvider,{importMessages:s,moduleName:"HelperGuide",children:(0,_.jsx)(v.default,{moduleName:"helperGuide",name:n,children:e=>e&&e.value&&(0,_.jsx)("div",{className:c()(o,i),children:(0,_.jsxs)(t.Space,{className:d,children:[(0,_.jsx)(l.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,_.jsx)("span",{className:u,children:e.content}),e.url&&(0,_.jsxs)(t.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,_.jsx)(l.default,{type:"icon-shuangjiantou-right"})]})]})})})})}}}]);
|
|
2
|
+
//# sourceMappingURL=3652.bfef1f58.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3652.
|
|
1
|
+
{"version":3,"file":"static/js/3652.bfef1f58.chunk.js","mappings":"gOAyHAA,EAAAA,EAAAA,QAAO,CACLC,KAAMC,IAvHY,CAClB,CACE,SACA,IAAM,CACJ,CAAEC,MAAO,IAAKC,YAAa,UAC3B,CACED,MAAO,IACPC,YAAa,YAInB,CACE,UACA,IAAM,CACJ,CAAEA,YAAa,eAAMD,MAAO,KAC5B,CACEC,YAAa,eACbD,MAAO,OAIb,CACE,UACA,IAAM,CACJ,CAAEC,YAAa,SAAKD,MAAO,KAC3B,CACEC,YAAa,SACbD,MAAO,OAIb,CACE,YACA,IAAM,CACJ,CAAEC,YAAa,2BAAQD,MAAO,4BAC9B,CACEC,YAAa,2BACbD,MAAO,4BAET,CAAEC,YAAa,eAAMD,MAAO,gBAC5B,CACEC,YAAa,2BACbD,MAAO,8BAIb,CACE,iBACA,IAAM,CACJ,CACEA,MAAO,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AAWC,KAAI,CACdlB,UAAWS,EACXU,KAAMZ,EAAKS,IACXI,OAAO,SAAQf,SAAA,CAChB,4BAECJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACE,KAAK,yC","sources":["components/Enum/index.js","components/HelperGuide/locale/index.js","webpack://@kne-components/components-core/./src/components/HelperGuide/style.module.scss?bc31","components/HelperGuide/index.js"],"sourcesContent":["import { preset } from \"@kne/react-enum\";\nimport transform from \"lodash/transform\";\n\nconst baseLoaders = [\n [\n \"gender\",\n () => [\n { value: \"M\", description: \"男\" },\n {\n value: \"F\",\n description: \"女\",\n },\n ],\n ],\n [\n \"marital\",\n () => [\n { description: \"已婚\", value: \"Y\" },\n {\n description: \"未婚\",\n value: \"N\",\n },\n ],\n ],\n [\n \"confirm\",\n () => [\n { description: \"是\", value: \"Y\" },\n {\n description: \"否\",\n value: \"N\",\n },\n ],\n ],\n [\n \"political\",\n () => [\n { description: \"中共党员\", value: \"中共党员\" },\n {\n description: \"共青团员\",\n value: \"共青团员\",\n },\n { description: \"群众\", value: \"群众\" },\n {\n description: \"其他党派\",\n value: \"其他党派\",\n },\n ],\n ],\n [\n \"phoneStateEnum\",\n () => [\n {\n value: 0,\n description: \"空号\",\n },\n {\n value: 1,\n description: \"实号\",\n },\n {\n value: 2,\n description: \"停机\",\n },\n {\n value: 3,\n description: \"库无\",\n },\n {\n value: 4,\n description: \"沉默号\",\n },\n {\n value: 5,\n description: \"风险号\",\n },\n ],\n ],\n [\n \"degreeEnum\",\n () => [\n {\n description: \"初中\",\n value: 10,\n },\n {\n description: \"中专\",\n value: 20,\n },\n {\n description: \"高中\",\n value: 30,\n },\n {\n description: \"大专\",\n value: 40,\n },\n {\n description: \"本科\",\n value: 50,\n },\n {\n description: \"硕士研究生\",\n value: 60,\n },\n {\n description: \"博士研究生\",\n value: 70,\n },\n {\n description: \"博士后\",\n value: 75,\n },\n {\n description: \"学历不限\",\n value: 999,\n },\n ],\n ],\n];\n\npreset({\n base: transform(\n baseLoaders,\n (result, value) => {\n result[value[0]] = value[1];\n },\n {}\n ),\n});\n\nexport { default } from \"@kne/react-enum\";\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"helper-guide\":\"style_helper-guide__K5xFw__mv7mL\",\"inner\":\"style_inner__bMKeU__mv7mL\",\"content\":\"style_content__xTfWZ__mv7mL\",\"link\":\"style_link__93j7O__mv7mL\"};","import importMessages from \"./locale\";\nimport { IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport { Space, Typography } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport Enum from \"@components/Enum\";\n\nconst HelperGuide = ({ name, className }) => {\n return (\n <IntlProvider importMessages={importMessages} moduleName=\"HelperGuide\">\n <Enum moduleName=\"helperGuide\" name={name}>\n {(data) => {\n return (\n data &&\n data.value && (\n <div className={classnames(style[\"helper-guide\"], className)}>\n <Space className={style[\"inner\"]}>\n <Icon colorful type=\"icon-color-bangzhuyindao\" />\n <span className={style[\"content\"]}>{data.content}</span>\n {data.url && (\n <Typography.Link\n className={style[\"link\"]}\n href={data.url}\n target=\"_blank\"\n >\n 查看帮助\n <Icon type=\"icon-shuangjiantou-right\" />\n </Typography.Link>\n )}\n </Space>\n </div>\n )\n );\n }}\n </Enum>\n </IntlProvider>\n );\n};\n\nexport default HelperGuide;\n"],"names":["preset","base","transform","value","description","result","locale","en-US","zh-CN","_ref","name","className","_jsx","IntlProvider","importMessages","moduleName","children","Enum","data","classnames","style","_jsxs","Space","Icon","colorful","type","content","url","Typography","Link","href","target"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3771],{3382:(e,o,l)=>{l.r(o),l.d(o,{ModalButton:()=>R,TabsModal:()=>
|
|
2
|
-
//# sourceMappingURL=3771.
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3771],{3382:(e,o,l)=>{l.r(o),l.d(o,{ModalButton:()=>R,TabsModal:()=>P,TabsModalButton:()=>M,default:()=>N,useConfirmModal:()=>w,useModal:()=>x,useTabsModal:()=>S});var t=l(73884),n=l(55199),s=l(83136),i=l.n(s);const r={modal:"style_modal__Pm3cF__mv7mL",large:"style_large__iaqVE__mv7mL","modal-body-inner":"style_modal-body-inner__4PhpA__mv7mL","modal-title":"style_modal-title__dswaw__mv7mL","modal-outer":"style_modal-outer__r3SkX__mv7mL","modal-body":"style_modal-body__jQJSI__mv7mL","right-options-modal":"style_right-options-modal__FajDP__mv7mL","right-options-row":"style_right-options-row__-mPb9__mv7mL","right-options-col":"style_right-options-col__3ilee__mv7mL","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__mv7mL",content:"style_content__k6MIF__mv7mL","modal-footer":"style_modal-footer__-prbN__mv7mL","modal-close":"style_modal-close__Oa5Kl__mv7mL","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__mv7mL","is-danger":"style_is-danger__H5110__mv7mL",title:"style_title__orTym__mv7mL","has-title":"style_has-title__qy0Wp__mv7mL"},a=e=>({"en-US":()=>l.e(4628).then(l.bind(l,74628)),"zh-CN":()=>l.e(7478).then(l.bind(l,87478))}[e]());var c=l(47458),d=l(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var h=l(81014),p=l(17342),_=l(70579);const u="Modal",f=e=>{let{options:o,rightSpan:l=6,children:t}=e;return o?(0,_.jsxs)(n.Row,{wrap:!1,className:r["right-options-row"],children:[(0,_.jsx)(n.Col,{span:24-l,className:r["right-options-col"],children:t}),(0,_.jsx)(n.Col,{span:l,className:r["right-options-col"],children:o})]}):t},y=(e,o)=>e-48-(o?58:0)+"px",g=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":y(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":y(300,o)}}:{width:"1000px",style:{"--min-modal-height":y(500,o)}},C=e=>{let{footer:o,footerButtons:l,onConfirm:s,onCancel:i,onClose:r,targetProps:d}=e;return(0,_.jsxs)(n.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(n.Col,{flex:1,children:o}),Array.isArray(l)&&0===l.length?null:(0,_.jsx)(n.Col,{children:(0,_.jsx)(n.Space,{children:(l||[{children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter(e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display)).map((e,o)=>{let{ButtonComponent:l,onClick:n,autoClose:s=!0,display:i,...a}=e;const c=l||h.default;return(0,t.createElement)(c,{...a,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];const t=await Promise.resolve(n&&n(...o,d));return s&&!1!==t&&r&&r(),t}})})})})]})},b=e=>{let{title:o,footer:l,disabledScroller:s,footerButtons:a,onClose:c,closable:m,onConfirm:h,onCancel:u,children:f,targetProps:y}=e;const g=(0,t.useRef)(null);return(0,_.jsxs)("div",{className:i()(r["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===m?null:(0,_.jsx)(n.Button,{"data-testid":"components-core-modal-close-btn",className:i()(r["modal-close"],"modal-close"),type:"text",icon:(0,_.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,_.jsx)("div",{className:r["modal-title"],children:o}),(0,_.jsx)(p.A,{className:i()(r["modal-body"],{[r["is-disabled-scroller"]]:s},"modal-body"),ref:g,children:(0,_.jsx)("div",{className:i()(r["modal-body-inner"],"modal-body-inner"),children:f})}),null!==l||a?(0,_.jsx)("div",{className:i()(r["modal-footer"],"modal-footer"),children:(0,_.jsx)(C,{footer:l,footerButtons:a,onConfirm:h,onCancel:u,onClose:c,targetProps:y})}):null]})},j=e=>{let{withDecorator:o,footerButtons:l,title:t,closable:n,onClose:s,onConfirm:i,onCancel:r,footer:a,rightOptions:c,rightSpan:d,disabledScroller:h,childrenRef:p,children:u}=e;const y=e=>(e=Object.assign({},{title:t},e),(0,_.jsx)(b,{title:m(e.title,{...e,childrenRef:p,close:s}),closable:n,onClose:s,onConfirm:i,onCancel:r,footerButtons:m(l,{...e,close:s}),disabledScroller:h,footer:m(a,{...e,childrenRef:p,close:s}),targetProps:Object.assign({},e,{childrenRef:p,close:s}),children:(0,_.jsx)(f,{rightSpan:d,options:m(c,{...e,childrenRef:p,close:s}),children:m(u,{...e,childrenRef:p,close:s})})}));return"function"===typeof o?o(y,{childrenRef:p,close:s}):y({})},v=e=>{let{children:o,rightOptions:l,rightSpan:t,footer:n,footerButtons:s,className:d,size:m,title:h,onClose:p,onConfirm:u,onCancel:f,closable:y,disabledScroller:C,withDecorator:b,childrenRef:v,...x}=e;return{...x,icon:null,centered:!0,title:null,maskClosable:!!x.hasOwnProperty("maskClosable")&&x.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:p,className:i()(d,r.modal,r[m],{[r["right-options-modal"]]:l}),...g(m,!(null===n&&!s)),children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:j({withDecorator:b,title:h,closable:y,onClose:p,onConfirm:u,onCancel:f,footer:n,footerButtons:s,rightOptions:l,rightSpan:t,disabledScroller:C,children:o,childrenRef:v})})}},x=()=>{const{modal:e}=n.App.useApp(),o=(0,t.useRef)(null);return l=>{const t={},{children:n,...s}=v({onClose:()=>t.close(),childrenRef:o,...l}),{destroy:i}=e.info({...s,content:n});return t.close=i,t}},w=()=>{const{modal:e}=n.App.useApp();return o=>{const l={},{type:t,icon:s,title:a,danger:c,wrapClassName:m,message:h,iconSetting:p={},confirmType:u="info",...f}={onClose:()=>l.close(),maskClosable:!1,...o},y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},p);if(e[t]){const{destroy:o}=e[t]({...f,icon:null,wrapClassName:i()(r["confirm-modal-wrap"],m,{[r["is-danger"]]:c}),title:(0,_.jsx)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,_.jsxs)(n.Space,{size:0,align:"start",className:r.title,children:[c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===t?u:t}`),type:s||y["confirm"===t?u:t]}):null,a]})}),content:(0,_.jsxs)(n.Space,{size:0,align:"start",className:i()(r.content,{[r["has-title"]]:a}),children:[!a&&c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===t?u:t}`),type:s||y["confirm"===t?u:t]}):null,h]})});l.close=o}return l}},N=e=>{let{size:o="default",...l}=e;const s=(0,t.useRef)(null);return(0,_.jsx)(n.Modal,{...v(Object.assign({},l,{size:o,childrenRef:s}))})},k=e=>{let{items:o,className:l,activeKey:t,withDecorator:s,defaultActiveKey:r,onChange:a,...c}=e;return{...c,className:i()(l,"tabs-modal"),withDecorator:e=>{const l=l=>(0,_.jsx)(n.Tabs,{items:o.map(o=>{let{withDecorator:t,...n}=o;return Object.assign({},n,{children:"function"===typeof t?t(o=>e(Object.assign({},l,o,{children:n.children}))):e(Object.assign({},l,{children:n.children}))})}),destroyInactiveTabPane:!0,activeKey:t,defaultActiveKey:r,onChange:a});return"function"===typeof s?s(l):l()},children:e=>{let{children:o,...l}=e;return"function"===typeof o?o(l):o}}},P=e=>(0,_.jsx)(N,{...k(e)}),S=()=>{const e=x();return o=>e(k(o))};var L=l(73025);const M=e=>{const o=S();return e.api?(0,_.jsx)(L.A,{...e,modalFunc:o}):(0,_.jsx)(n.Button,{...e,onClick:()=>{o(e.modalProps)}})},R=e=>{const o=x();if(!e.api){const{modalProps:l,...t}=e;return(0,_.jsx)(n.Button,{...t,onClick:()=>{o(l)}})}return(0,_.jsx)(L.A,{...e,modalFunc:o})}},17342:(e,o,l)=>{l.d(o,{A:()=>s});var t=l(34581),n=l.n(t);l(46733);const s=n()},46733:()=>{}}]);
|
|
2
|
+
//# sourceMappingURL=3771.e74ad04d.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3771.6dc4e2b4.chunk.js","mappings":"mVACA,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBA,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,qCCOT,MAAME,EAAmB,QAEZC,EAAeC,IAAyC,IAAxC,QAACH,EAAO,UAAEI,EAAY,EAAC,SAAEC,GAASF,EAC3D,OAAKH,GAGGM,EAAAA,EAAAA,MAACC,EAAAA,IAAG,CAACC,MAAM,EAAOC,UAAWC,EAAM,qBAAqBL,SAAA,EAC5DM,EAAAA,EAAAA,KAACC,EAAAA,IAAG,CAACC,KAAM,GAAKT,EAAWK,UAAWC,EAAM,qBAAqBL,SAC5DA,KAELM,EAAAA,EAAAA,KAACC,EAAAA,IAAG,CAACC,KAAMT,EAAWK,UAAWC,EAAM,qBAAqBL,SACvDL,OAPEK,GAYTS,EAAaA,CAACC,EAAQhB,IACdgB,EAAS,IAAMhB,EAAS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UJvF,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWF,KARtCxH,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDrB,EACJT,QAASA,KACP0F,EAAUjF,EAAMoF,gBAO1B,EA9BqBpF,IACnB,MAAM6C,EAAQD,IACd,IAAK5C,EAAMgD,IAAK,CACd,MAAM,WAAEoC,KAAeC,GAAWrF,EAClC,OACEvC,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDgE,EACJ9F,QAASA,KACPsD,EAAMuC,KAId,CACA,OAAO3H,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWtC,I,oECf5C,QAAenB,G","sources":["webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__hxbI6\",\"large\":\"style_large__iaqVE__hxbI6\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__hxbI6\",\"modal-title\":\"style_modal-title__dswaw__hxbI6\",\"modal-outer\":\"style_modal-outer__r3SkX__hxbI6\",\"modal-body\":\"style_modal-body__jQJSI__hxbI6\",\"right-options-modal\":\"style_right-options-modal__FajDP__hxbI6\",\"right-options-row\":\"style_right-options-row__-mPb9__hxbI6\",\"right-options-col\":\"style_right-options-col__3ilee__hxbI6\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__hxbI6\",\"content\":\"style_content__k6MIF__hxbI6\",\"modal-footer\":\"style_modal-footer__-prbN__hxbI6\",\"modal-close\":\"style_modal-close__Oa5Kl__hxbI6\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__hxbI6\",\"is-danger\":\"style_is-danger__H5110__hxbI6\",\"title\":\"style_title__orTym__hxbI6\",\"has-title\":\"style_has-title__qy0Wp__hxbI6\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, {useRef} from \"react\";\nimport {App, Button, Col, Modal as AntdModal, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {FormattedMessage, IntlProvider} from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({options, rightSpan = 6, children}) => {\n if (!options) {\n return children;\n }\n return (<Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>);\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\", style: {\"--min-modal-height\": calcHeight(300, footer)},\n };\n }\n return {\n width: \"1000px\", style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n};\n\nconst Footer = ({\n footer, footerButtons, onConfirm, onCancel, onClose, targetProps,\n }) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{\n children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onCancel,\n }, {\n type: \"primary\", children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onConfirm,\n },])\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(({\n ButtonComponent, onClick, autoClose = true, display, ...props\n }, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args, targetProps));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n }) => {\n const modalBodyRef = useRef(null);\n return (<div className={classnames(style[\"modal-outer\"], 'modal-container')} data-testid=\"components-core-modal\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-modal-close-btn\"\n className={classnames(style[\"modal-close\"], \"modal-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(style[\"modal-body\"], {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n }, \"modal-body\")}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (<div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, {title}, props);\n return (<ModalOuter\n title={renderWithOptions(props.title, {\n ...props, childrenRef, close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props, childrenRef, close: onClose,\n })}\n targetProps={Object.assign({}, props, {childrenRef, close: onClose})}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props, childrenRef, close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props, childrenRef, close: onClose,\n })}\n </RightOptions>\n </ModalOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner, {\n childrenRef, close: onClose,\n }) : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }), ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>),\n };\n};\n\nconst Modal = ({size = 'default', ...props}) => {\n const childrenRef = useRef(null);\n return (<AntdModal\n {...computedCommonProps(Object.assign({}, props, {size, childrenRef}))}\n />);\n};\n\nexport const useModal = () => {\n const {modal} = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const {children, ...otherProps} = computedCommonProps({\n onClose: () => api.close(), childrenRef, ...props,\n });\n const {destroy} = modal.info({\n ...otherProps, content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const {modal} = App.useApp();\n return (props) => {\n const api = {};\n const {\n type, icon, title, danger, wrapClassName, message, iconSetting = {}, confirmType = \"info\", ...otherProps\n } = {\n onClose: () => api.close(), maskClosable: false, ...props,\n };\n const typeEnum = Object.assign({}, {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n }, iconSetting);\n if (modal[type]) {\n const {destroy} = modal[type]({\n ...otherProps, icon: null, wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }), title: (<Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (<Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {title}\n </Space>)}\n </Space>), content: (<Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {message}\n </Space>),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n"],"names":["locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","sizeMap","type","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","centered","maskClosable","hasOwnProperty","destroyOnClose","useModal","modal","App","useApp","api","otherProps","destroy","info","content","useConfirmModal","danger","wrapClassName","message","iconSetting","confirmType","typeEnum","confirm","warning","error","success","direction","align","_ref7","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/3771.e74ad04d.chunk.js","mappings":"mVACA,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBA,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,qCCOT,MAAME,EAAmB,QAEZC,EAAeC,IAAyC,IAAxC,QAACH,EAAO,UAAEI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,SAAUA,IAGd,MAAgC,oBAAlBzC,EACVA,EAAc2C,GACdA,KAENtH,SAAUyC,IAA6B,IAA5B,SAAEzC,KAAa6C,GAAOJ,EAC/B,MAA2B,oBAAbzC,EAA0BA,EAAS6C,GAAS7C,KAShE,EAJmB6C,IACVvC,EAAAA,EAAAA,KAACqH,EAAK,IAAKzC,EAAoBrC,KAK3B+E,EAAeA,KAC1B,MAAMlC,EAAQD,IACd,OAAQ5C,GAAU6C,EAAMR,EAAoBrC,K,eCtD9C,MAgBagF,EAAmBhF,IAC9B,MAAMiF,EAAYF,IAClB,OAAK/E,EAAMgD,KAUJvF,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWF,KARtCxH,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDrB,EACJT,QAASA,KACP0F,EAAUjF,EAAMoF,gBAO1B,EA9BqBpF,IACnB,MAAM6C,EAAQD,IACd,IAAK5C,EAAMgD,IAAK,CACd,MAAM,WAAEoC,KAAeC,GAAWrF,EAClC,OACEvC,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDgE,EACJ9F,QAASA,KACPsD,EAAMuC,KAId,CACA,OAAO3H,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWtC,I,oECf5C,QAAenB,G","sources":["webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__mv7mL\",\"large\":\"style_large__iaqVE__mv7mL\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__mv7mL\",\"modal-title\":\"style_modal-title__dswaw__mv7mL\",\"modal-outer\":\"style_modal-outer__r3SkX__mv7mL\",\"modal-body\":\"style_modal-body__jQJSI__mv7mL\",\"right-options-modal\":\"style_right-options-modal__FajDP__mv7mL\",\"right-options-row\":\"style_right-options-row__-mPb9__mv7mL\",\"right-options-col\":\"style_right-options-col__3ilee__mv7mL\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__mv7mL\",\"content\":\"style_content__k6MIF__mv7mL\",\"modal-footer\":\"style_modal-footer__-prbN__mv7mL\",\"modal-close\":\"style_modal-close__Oa5Kl__mv7mL\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__mv7mL\",\"is-danger\":\"style_is-danger__H5110__mv7mL\",\"title\":\"style_title__orTym__mv7mL\",\"has-title\":\"style_has-title__qy0Wp__mv7mL\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, {useRef} from \"react\";\nimport {App, Button, Col, Modal as AntdModal, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {FormattedMessage, IntlProvider} from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({options, rightSpan = 6, children}) => {\n if (!options) {\n return children;\n }\n return (<Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>);\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\", style: {\"--min-modal-height\": calcHeight(300, footer)},\n };\n }\n return {\n width: \"1000px\", style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n};\n\nconst Footer = ({\n footer, footerButtons, onConfirm, onCancel, onClose, targetProps,\n }) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{\n children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onCancel,\n }, {\n type: \"primary\", children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onConfirm,\n },])\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(({\n ButtonComponent, onClick, autoClose = true, display, ...props\n }, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args, targetProps));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n }) => {\n const modalBodyRef = useRef(null);\n return (<div className={classnames(style[\"modal-outer\"], 'modal-container')} data-testid=\"components-core-modal\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-modal-close-btn\"\n className={classnames(style[\"modal-close\"], \"modal-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(style[\"modal-body\"], {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n }, \"modal-body\")}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (<div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, {title}, props);\n return (<ModalOuter\n title={renderWithOptions(props.title, {\n ...props, childrenRef, close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props, childrenRef, close: onClose,\n })}\n targetProps={Object.assign({}, props, {childrenRef, close: onClose})}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props, childrenRef, close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props, childrenRef, close: onClose,\n })}\n </RightOptions>\n </ModalOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner, {\n childrenRef, close: onClose,\n }) : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }), ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>),\n };\n};\n\nconst Modal = ({size = 'default', ...props}) => {\n const childrenRef = useRef(null);\n return (<AntdModal\n {...computedCommonProps(Object.assign({}, props, {size, childrenRef}))}\n />);\n};\n\nexport const useModal = () => {\n const {modal} = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const {children, ...otherProps} = computedCommonProps({\n onClose: () => api.close(), childrenRef, ...props,\n });\n const {destroy} = modal.info({\n ...otherProps, content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const {modal} = App.useApp();\n return (props) => {\n const api = {};\n const {\n type, icon, title, danger, wrapClassName, message, iconSetting = {}, confirmType = \"info\", ...otherProps\n } = {\n onClose: () => api.close(), maskClosable: false, ...props,\n };\n const typeEnum = Object.assign({}, {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n }, iconSetting);\n if (modal[type]) {\n const {destroy} = modal[type]({\n ...otherProps, icon: null, wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }), title: (<Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (<Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {title}\n </Space>)}\n </Space>), content: (<Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {message}\n </Space>),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n"],"names":["locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","sizeMap","type","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","centered","maskClosable","hasOwnProperty","destroyOnClose","useModal","modal","App","useApp","api","otherProps","destroy","info","content","useConfirmModal","danger","wrapClassName","message","iconSetting","confirmType","typeEnum","confirm","warning","error","success","direction","align","_ref7","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3790],{48731:(e,n,i)=>{i.r(n),i.d(n,{default:()=>a.a});var s=i(60922),a=i.n(s),l=i(22717),t=i.n(l);(0,s.preset)({base:t()([["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],(e,n)=>{e[n[0]]=n[1]},{})})},75363:(e,n,i)=>{i.r(n),i.d(n,{default:()=>
|
|
2
|
-
//# sourceMappingURL=3790.
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3790],{48731:(e,n,i)=>{i.r(n),i.d(n,{default:()=>a.a});var s=i(60922),a=i.n(s),l=i(22717),t=i.n(l);(0,s.preset)({base:t()([["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],(e,n)=>{e[n[0]]=n[1]},{})})},75363:(e,n,i)=>{i.r(n),i.d(n,{default:()=>m});const s=e=>({"en-US":()=>i.e(9431).then(i.bind(i,9431)),"zh-CN":()=>i.e(1065).then(i.bind(i,81065))}[e]());var a=i(47458),l=i(64671),t=i(55199),r=i(83136),c=i.n(r);const o="style_helper-guide__K5xFw__mv7mL",d="style_inner__bMKeU__mv7mL",u="style_content__xTfWZ__mv7mL",p="style_link__93j7O__mv7mL";var v=i(48731),_=i(70579);const m=e=>{let{name:n,className:i}=e;return(0,_.jsx)(a.IntlProvider,{importMessages:s,moduleName:"HelperGuide",children:(0,_.jsx)(v.default,{moduleName:"helperGuide",name:n,children:e=>e&&e.value&&(0,_.jsx)("div",{className:c()(o,i),children:(0,_.jsxs)(t.Space,{className:d,children:[(0,_.jsx)(l.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,_.jsx)("span",{className:u,children:e.content}),e.url&&(0,_.jsxs)(t.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,_.jsx)(l.default,{type:"icon-shuangjiantou-right"})]})]})})})})}}}]);
|
|
2
|
+
//# sourceMappingURL=3790.e2801736.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3790.
|
|
1
|
+
{"version":3,"file":"static/js/3790.e2801736.chunk.js","mappings":"qOAyHAA,EAAAA,EAAAA,QAAO,CACLC,KAAMC,IAvHY,CAClB,CACE,SACA,IAAM,CACJ,CAAEC,MAAO,IAAKC,YAAa,UAC3B,CACED,MAAO,IACPC,YAAa,YAInB,CACE,UACA,IAAM,CACJ,CAAEA,YAAa,eAAMD,MAAO,KAC5B,CACEC,YAAa,eACbD,MAAO,OAIb,CACE,UACA,IAAM,CACJ,CAAEC,YAAa,SAAKD,MAAO,KAC3B,CACEC,YAAa,SACbD,MAAO,OAIb,CACE,YACA,IAAM,CACJ,CAAEC,YAAa,2BAAQD,MAAO,4BAC9B,CACEC,YAAa,2BACbD,MAAO,4BAET,CAAEC,YAAa,eAAMD,MAAO,gBAC5B,CACEC,YAAa,2BACbD,MAAO,8BAIb,CACE,iBACA,IAAM,CACJ,CACEA,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,sBAEf,CACED,MAAO,EACPC,YAAa,wBAInB,CACE,aACA,IAAM,CACJ,CACEA,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,iCACbD,MAAO,IAET,CACEC,YAAa,iCACbD,MAAO,IAET,CACEC,YAAa,qBACbD,MAAO,IAET,CACEC,YAAa,2BACbD,MAAO,QASX,CAACE,EAAQF,KACPE,EAAOF,EAAM,IAAMA,EAAM,IAE3B,CAAC,I,gDC/HL,MAOA,EAPwBG,IACf,CACL,QAASC,IAAM,+BACf,QAASC,IAAM,iCACfF,M,yDCHJ,QAA+B,mCAA/B,EAA0E,4BAA1E,EAAgH,8BAAhH,EAAqJ,2B,0BCOrJ,MAgCA,EAhCoBG,IAA0B,IAAzB,KAAEC,EAAI,UAAEC,GAAWF,EACtC,OACEG,EAAAA,EAAAA,KAACC,EAAAA,aAAY,CAACC,eAAgBA,EAAgBC,WAAW,cAAaC,UACpEJ,EAAAA,EAAAA,KAACK,EAAAA,QAAI,CAACF,WAAW,cAAcL,KAAMA,EAAKM,SACtCE,GAEEA,GACAA,EAAKf,QACHS,EAAAA,EAAAA,KAAA,OAAKD,UAAWQ,IAAWC,EAAuBT,GAAWK,UAC3DK,EAAAA,EAAAA,MAACC,EAAAA,MAAK,CAACX,UAAWS,EAAeJ,SAAA,EAC/BJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACC,UAAQ,EAACC,KAAK,8BACpBb,EAAAA,EAAAA,KAAA,QAAMD,UAAWS,EAAiBJ,SAAEE,EAAKQ,UACxCR,EAAKS,MACJN,EAAAA,EAAAA,MAACO,EAAAA,WAAWC,KAAI,CACdlB,UAAWS,EACXU,KAAMZ,EAAKS,IACXI,OAAO,SAAQf,SAAA,CAChB,4BAECJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACE,KAAK,yC","sources":["components/Enum/index.js","components/HelperGuide/locale/index.js","webpack://@kne-components/components-core/./src/components/HelperGuide/style.module.scss?bc31","components/HelperGuide/index.js"],"sourcesContent":["import { preset } from \"@kne/react-enum\";\nimport transform from \"lodash/transform\";\n\nconst baseLoaders = [\n [\n \"gender\",\n () => [\n { value: \"M\", description: \"男\" },\n {\n value: \"F\",\n description: \"女\",\n },\n ],\n ],\n [\n \"marital\",\n () => [\n { description: \"已婚\", value: \"Y\" },\n {\n description: \"未婚\",\n value: \"N\",\n },\n ],\n ],\n [\n \"confirm\",\n () => [\n { description: \"是\", value: \"Y\" },\n {\n description: \"否\",\n value: \"N\",\n },\n ],\n ],\n [\n \"political\",\n () => [\n { description: \"中共党员\", value: \"中共党员\" },\n {\n description: \"共青团员\",\n value: \"共青团员\",\n },\n { description: \"群众\", value: \"群众\" },\n {\n description: \"其他党派\",\n value: \"其他党派\",\n },\n ],\n ],\n [\n \"phoneStateEnum\",\n () => [\n {\n value: 0,\n description: \"空号\",\n },\n {\n value: 1,\n description: \"实号\",\n },\n {\n value: 2,\n description: \"停机\",\n },\n {\n value: 3,\n description: \"库无\",\n },\n {\n value: 4,\n description: \"沉默号\",\n },\n {\n value: 5,\n description: \"风险号\",\n },\n ],\n ],\n [\n \"degreeEnum\",\n () => [\n {\n description: \"初中\",\n value: 10,\n },\n {\n description: \"中专\",\n value: 20,\n },\n {\n description: \"高中\",\n value: 30,\n },\n {\n description: \"大专\",\n value: 40,\n },\n {\n description: \"本科\",\n value: 50,\n },\n {\n description: \"硕士研究生\",\n value: 60,\n },\n {\n description: \"博士研究生\",\n value: 70,\n },\n {\n description: \"博士后\",\n value: 75,\n },\n {\n description: \"学历不限\",\n value: 999,\n },\n ],\n ],\n];\n\npreset({\n base: transform(\n baseLoaders,\n (result, value) => {\n result[value[0]] = value[1];\n },\n {}\n ),\n});\n\nexport { default } from \"@kne/react-enum\";\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"helper-guide\":\"style_helper-guide__K5xFw__mv7mL\",\"inner\":\"style_inner__bMKeU__mv7mL\",\"content\":\"style_content__xTfWZ__mv7mL\",\"link\":\"style_link__93j7O__mv7mL\"};","import importMessages from \"./locale\";\nimport { IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport { Space, Typography } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport Enum from \"@components/Enum\";\n\nconst HelperGuide = ({ name, className }) => {\n return (\n <IntlProvider importMessages={importMessages} moduleName=\"HelperGuide\">\n <Enum moduleName=\"helperGuide\" name={name}>\n {(data) => {\n return (\n data &&\n data.value && (\n <div className={classnames(style[\"helper-guide\"], className)}>\n <Space className={style[\"inner\"]}>\n <Icon colorful type=\"icon-color-bangzhuyindao\" />\n <span className={style[\"content\"]}>{data.content}</span>\n {data.url && (\n <Typography.Link\n className={style[\"link\"]}\n href={data.url}\n target=\"_blank\"\n >\n 查看帮助\n <Icon type=\"icon-shuangjiantou-right\" />\n </Typography.Link>\n )}\n </Space>\n </div>\n )\n );\n }}\n </Enum>\n </IntlProvider>\n );\n};\n\nexport default HelperGuide;\n"],"names":["preset","base","transform","value","description","result","locale","en-US","zh-CN","_ref","name","className","_jsx","IntlProvider","importMessages","moduleName","children","Enum","data","classnames","style","_jsxs","Space","Icon","colorful","type","content","url","Typography","Link","href","target"],"sourceRoot":""}
|