@para-ui/core 2.0.13 → 2.0.17
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/AutoBox/index.css +2 -0
- package/AutoBox/index.js +3 -3
- package/AutoTips/index.css +4 -0
- package/AutoTips/index.js +3 -3
- package/Breadcrumbs/index.css +2 -0
- package/Breadcrumbs/index.js +3 -3
- package/Button/index.css +4 -0
- package/Button/index.js +3 -3
- package/ButtonGroup/index.css +6 -0
- package/ButtonGroup/index.js +3 -3
- package/Cascader/index.css +2 -0
- package/Cascader/index.js +3 -3
- package/Checkbox/index.css +2 -0
- package/Checkbox/index.js +3 -3
- package/CheckboxGroup/index.css +4 -0
- package/CheckboxGroup/index.js +3 -3
- package/ColorPicker/index.css +2 -0
- package/ColorPicker/index.js +1 -1
- package/ComboSelect/index.css +28 -0
- package/ComboSelect/index.js +3 -3
- package/ComboSelect/interface.d.ts +2 -2
- package/Container/index.css +2 -0
- package/Container/index.js +3 -3
- package/DatePicker/index.css +6 -0
- package/DatePicker/index.js +3 -3
- package/Desktop/index.css +2 -0
- package/Desktop/index.js +3 -3
- package/Drawer/index.css +2 -0
- package/Drawer/index.js +3 -3
- package/Form/index.css +26 -0
- package/Form/index.d.ts +9 -1
- package/Form/index.js +3 -3
- package/FormItem/index.css +26 -0
- package/FormItem/index.d.ts +9 -1
- package/FormItem/index.js +3 -3
- package/FunctionModal/index.css +12 -0
- package/FunctionModal/index.js +3 -3
- package/Help/index.css +4 -0
- package/Help/index.js +3 -3
- package/IconList/index.css +2 -0
- package/IconList/index.js +3 -3
- package/InputLang/index.css +12 -0
- package/InputLang/index.js +3 -3
- package/InputNumber/index.css +10 -0
- package/InputNumber/index.js +3 -3
- package/Loading/index.css +2 -0
- package/Loading/index.js +3 -3
- package/Menu/index.css +2 -0
- package/Menu/index.js +3 -3
- package/Message/index.css +2 -0
- package/Message/index.js +3 -3
- package/Modal/Confirm/index.d.ts +4 -1
- package/Modal/index.css +10 -0
- package/Modal/index.js +3 -3
- package/MultiBox/index.css +10 -0
- package/MultiBox/index.js +3 -3
- package/PageHeader/index.css +6 -0
- package/PageHeader/index.js +3 -3
- package/Pagination/index.css +12 -0
- package/Pagination/index.js +3 -3
- package/ParauiProvider/index.css +2 -0
- package/ParauiProvider/index.js +3 -3
- package/PopConfirm/index.css +6 -0
- package/PopConfirm/index.js +3 -3
- package/Popover/index.js +3 -3
- package/Popper/index.js +3 -3
- package/Radio/index.css +2 -0
- package/Radio/index.js +3 -3
- package/RadioGroup/index.css +4 -0
- package/RadioGroup/index.js +3 -3
- package/Search/index.css +12 -0
- package/Search/index.js +3 -3
- package/Select/index.css +6 -0
- package/Select/index.js +3 -3
- package/SingleBox/index.css +10 -0
- package/SingleBox/index.js +3 -3
- package/Slider/index.css +2 -0
- package/Slider/index.js +3 -3
- package/Split/index.css +2 -0
- package/Split/index.js +3 -3
- package/Stepper/index.css +2 -0
- package/Stepper/index.js +3 -3
- package/Switch/index.css +2 -0
- package/Switch/index.d.ts +8 -0
- package/Switch/index.js +3 -3
- package/Table/index.css +20 -0
- package/Table/index.js +3 -3
- package/Tabs/index.css +4 -0
- package/Tabs/index.js +3 -3
- package/TextField/index.css +8 -0
- package/TextField/index.js +3 -3
- package/TimePicker/index.css +6 -0
- package/TimePicker/index.js +3 -3
- package/Timeline/index.css +2 -0
- package/Timeline/index.js +3 -3
- package/ToggleButton/index.css +6 -0
- package/ToggleButton/index.js +3 -3
- package/Tooltip/index.css +2 -0
- package/Tooltip/index.js +3 -3
- package/Transfer/index.css +16 -0
- package/Transfer/index.js +3 -3
- package/Tree/index.css +8 -0
- package/Tree/index.js +3 -3
- package/Upload/index.css +12 -0
- package/Upload/index.js +3 -3
- package/index.js +3 -3
- package/package.json +4 -3
- package/style.css +22 -22
package/PageHeader/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("@material-ui/core"),require("@para-ui/icons"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/More"),require("para-lib"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["@material-ui/core","@para-ui/icons","@para-ui/icons/Down","@para-ui/icons/Forbid","@para-ui/icons/LoadingF","@para-ui/icons/More","para-lib","react","react-dom"],n):"object"==typeof exports?exports.ParaUI=n(require("@material-ui/core"),require("@para-ui/icons"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/More"),require("para-lib"),require("react"),require("react-dom")):e.ParaUI=n(e["@material-ui/core"],e["@para-ui/icons"],e["@para-ui/icons/Down"],e["@para-ui/icons/Forbid"],e["@para-ui/icons/LoadingF"],e["@para-ui/icons/More"],e["para-lib"],e.react,e["react-dom"])}(self,(function(e,n,t,r,
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("@material-ui/core"),require("@para-ui/icons"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/More"),require("para-lib"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["@material-ui/core","@para-ui/icons","@para-ui/icons/Down","@para-ui/icons/Forbid","@para-ui/icons/LoadingF","@para-ui/icons/More","para-lib","react","react-dom"],n):"object"==typeof exports?exports.ParaUI=n(require("@material-ui/core"),require("@para-ui/icons"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/More"),require("para-lib"),require("react"),require("react-dom")):e.ParaUI=n(e["@material-ui/core"],e["@para-ui/icons"],e["@para-ui/icons/Down"],e["@para-ui/icons/Forbid"],e["@para-ui/icons/LoadingF"],e["@para-ui/icons/More"],e["para-lib"],e.react,e["react-dom"])}(self,(function(e,n,t,i,r,o,a,l,u){return function(){"use strict";var s={6010:function(e,n,t){function i(e){var n,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(t=i(e[n]))&&(r&&(r+=" "),r+=t);else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function r(){for(var e,n,t=0,r="";t<arguments.length;)(e=arguments[t++])&&(n=i(e))&&(r&&(r+=" "),r+=n);return r}t.d(n,{Z:function(){return r}})},7418:function(e){
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
6
|
*/
|
|
7
|
-
var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,
|
|
7
|
+
var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,l,u=r(e),s=1;s<arguments.length;s++){for(var c in a=Object(arguments[s]))t.call(a,c)&&(u[c]=a[c]);if(n){l=n(a);for(var d=0;d<l.length;d++)i.call(a,l[d])&&(u[l[d]]=a[l[d]])}}return u}},5251:function(e,n,t){
|
|
8
8
|
/** @license React v17.0.2
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
10
10
|
*
|
|
@@ -13,4 +13,4 @@ var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
t(4126);var r=t(9297),i=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),n.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,t){var r,o={},s=null,c=null;for(r in void 0!==t&&(s=""+t),void 0!==n.key&&(s=""+n.key),void 0!==n.ref&&(c=n.ref),n)l.call(n,r)&&!u.hasOwnProperty(r)&&(o[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===o[r]&&(o[r]=n[r]);return{$$typeof:i,type:e,key:s,ref:c,props:o,_owner:a.current}}n.jsx=s,n.jsxs=s},7712:function(e,n,t){e.exports=t(9524)},2990:function(e,n,t){t.d(n,{default:function(){return g}});var r=t(7712),i=t(9297),o=t(1731),a=t(4927),l=t(1102),u=t.n(l),s=t(2749),c=t.n(s),d=t(6885),v=t(6028),p=t.n(v),f=function(){return f=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},f.apply(this,arguments)};var m=function(){return m=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},m.apply(this,arguments)},h=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t},b=function(e){var n=e.variant,t=void 0===n?"contained":n,l=e.size,s=void 0===l?"large":l,v=e.className,p=e.disabled,f=void 0!==p&&p,b=e.children,g=e.startIcon,j=e.endIcon,x=e.loading,y=void 0!==x&&x,N=e.toolTipTitle,O=void 0===N?"":N,M=e.danger,T=void 0!==M&&M,P=h(e,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","danger"]),S=(0,i.useState)(!1),E=S[0],w=S[1],k=function(e){if(!E)return"start"===e&&g?(0,r.jsx)("span",m({className:(0,a.Z)("btn-icon","start-icon")},{children:g}),void 0):"end"===e&&j?(0,r.jsx)("span",m({className:(0,a.Z)("btn-icon","end-icon")},{children:j}),void 0):null;if("object"==typeof y){var n=y.delay||0;setTimeout((function(){return w(!1)}),n)}return"start"===e?(0,r.jsx)("span",m({className:"btn-icon loading-icon"},{children:(0,r.jsx)(u(),{},void 0)}),void 0):null},C=(0,r.jsx)(o.Button,m({},P,{color:"default",variant:"contained",disabled:f,disableRipple:!0,disableElevation:!0,className:(0,a.Z)("paraui-button",v,"paraui-button-".concat(t),"paraui-button-".concat(s),E&&"paraui-button-loading",T&&!f&&"paraui-button-dangerous"),startIcon:k("start"),endIcon:k("end")},{children:b}),void 0);return(0,i.useEffect)((function(){w(!!y)}),[y]),f&&O?(0,r.jsx)(d.default,m({title:function(){if(f&&O){return(0,r.jsxs)("span",{children:[(0,r.jsx)(c(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),O]},void 0)}return O}()},{children:(0,r.jsx)("span",m({className:"paraui-button--disabled"},{children:C}),void 0)}),void 0):C};b.IconButton=function(e){var n=e.variant,t=void 0===n?"contained":n,l=e.size,s=void 0===l?"large":l,v=e.toolTipTitle,p=void 0===v?"":v,f=e.children,b=e.className,g=e.disabled,j=void 0!==g&&g,x=e.loading,y=void 0!==x&&x,N=e.TooltipProps,O=e.danger,M=void 0!==O&&O,T=h(e,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),P=(0,i.useState)(!1),S=P[0],E=P[1],w=(0,r.jsx)(o.IconButton,m({},T,{disabled:j,disableRipple:!0,className:(0,a.Z)("paraui-icon-button",b,"paraui-icon-button-".concat(t),"paraui-icon-button-".concat(s),S&&"paraui-icon-button-loading",M&&!j&&"paraui-icon-button-dangerous")},{children:function(){if(!S)return f;if("object"==typeof y){var e=y.delay||0;setTimeout((function(){return E(!1)}),e)}return(0,r.jsx)("span",m({className:"loading-icon"},{children:(0,r.jsx)(u(),{},void 0)}),void 0)}()}),void 0);return(0,i.useEffect)((function(){E(!!y)}),[y]),p?(0,r.jsx)(d.default,m({},N,{title:function(){if(j&&p){return(0,r.jsxs)("span",{children:[(0,r.jsx)(c(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),p]},void 0)}return p}()},{children:j?(0,r.jsx)("span",m({className:"paraui-button--disabled"},{children:w}),void 0):w}),void 0):w},b.SplitButton=function(e){var n=e.buttonText,t=e.options,l=void 0===t?[]:t,u=e.className,s=e.disabled,c=void 0!==s&&s,d=e.onClick,v=e.optionRender,m=(0,i.useState)(!1),h=m[0],b=m[1],j=(0,i.useRef)(null),x=(0,i.useRef)(),y=(0,i.useState)(0),N=y[0],O=y[1],M=function(e,n,t){var r;O(n),b(!1),null===(r=x.current)||void 0===r||r.classList.remove("paraui-button-split--active"),null==d||d(e,t)},T=function(e){var n,t;(null===(n=j.current)||void 0===n?void 0:n.contains(e.target))||(b(!1),null===(t=x.current)||void 0===t||t.classList.remove("paraui-button-split--active"))},P=function(){return(0,r.jsx)("div",f({className:"paraui-button-split-list"},{children:(0,r.jsx)("ul",{children:l.map((function(e,n){return Array.isArray(e)?function(e,n){return(0,r.jsx)("li",f({className:"split-li-group"},{children:e.map((function(e,t){var i="".concat(n,"-").concat(t);return(0,r.jsx)("div",f({className:(0,a.Z)("split-li",i===N&&"split-li--active"),onClick:function(n){return M(e,i,n)}},{children:(null==v?void 0:v(e))||e.label}),i)}))}),n)}(e,n):(0,r.jsx)("li",f({className:(0,a.Z)("split-li",n===N&&"split-li--active"),onClick:function(t){return M(e,n,t)}},{children:(null==v?void 0:v(e))||e.label}),n)}))},void 0)}),void 0)};return(0,r.jsxs)("div",f({className:(0,a.Z)("paraui-button-split",u),ref:j,onMouseLeave:function(e){var n;e.stopPropagation(),null===(n=e.currentTarget.firstElementChild)||void 0===n||n.classList.remove("paraui-button-split--active"),b(!1)}},{children:[(0,r.jsx)(g,f({variant:"outlined",onMouseEnter:function(e){e.stopPropagation();var n=e.currentTarget;x.current=n,n.classList.add("paraui-button-split--active"),b(!0)},startIcon:(0,r.jsx)(p(),{},void 0),disabled:c},{children:null!=n?n:"更多操作"}),void 0),(0,r.jsx)(o.Popper,f({open:h,anchorEl:j.current,transition:!0,placement:"bottom-end"},{children:function(e){var n=e.TransitionProps;e.placement;return(0,r.jsx)(o.Grow,f({},n,{children:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.ClickAwayListener,f({onClickAway:T},{children:P()}),void 0)},void 0)}),void 0)}}),void 0)]}),void 0)};var g=b},7456:function(e,n,t){t.r(n),t.d(n,{PageHeader:function(){return T},default:function(){return P}});var r=t(7712),i=t(9297),o=t(2268),a=t(1731),l=t(6028),u=t.n(l),s=t(1609),c=t(6090),d=t.n(c),v=t(3475),p=function(){return p=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},p.apply(this,arguments)},f=function(e,n,t){if(t||2===arguments.length)for(var r,i=0,o=n.length;i<o;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))},m=function(e){var n=e.open,t=void 0!==n&&n,l=e.anchorEl,c=e.idMenuLast,d=e.selectMenu,v=void 0===d?"":d,f=e.onClickMenu,h=e.list,b=void 0===h?[]:h,g=e.onMouseEnter,j=e.onMouseLeave,x=e.level,y=void 0===x?1:x,N=e.className,O=(0,i.useState)(null),M=O[0],T=O[1],P=(0,i.useState)(null),S=P[0],E=P[1],w=(0,i.useState)([]),k=w[0],C=w[1],L=(0,i.useState)({})[0],z=function(e,n){return function(t){var r;r=t,clearTimeout(L.leaveTimer),L.leaveTimer=setTimeout((function(){1===y&&g&&g();var t=[e];e.children&&e.children.length>0&&(t=e.children);var i=r.target;E(i),C(t),T(n)}),50)}},F=function(e){return function(n){e.children&&e.children.length>0||(f&&f(e),j&&j())}},q=function(e){var n="menu-item-popper-content-item",t=c&&c[v];return t&&-1!==t.indexOf(e.path)&&(n+=" menu-item-popper-content-item-select"),n},_=function(){var e="menu-item-popper";return N&&(e+=" "+N),e},I=(0,i.useCallback)((function(e,n){return(0,r.jsx)(r.Fragment,{children:e.children&&e.children.length>0&&M===n&&(0,r.jsx)(m,{open:M===n,anchorEl:S,list:k,idMenuLast:c,selectMenu:v,onClickMenu:f,onMouseEnter:g,onMouseLeave:j,level:y+1},void 0)},void 0)}),[M,S,k,c,v,f,g,j,y]),R=(0,i.useMemo)((function(){return(0,r.jsx)("div",p({className:"menu-item-popper-content"},{children:b.map((function(e,n){var t=function(e){var n=e.icon;if(n){var t=s[n];return t?t():n}}(e),i=function(e){var n=e.children;if(n&&n.length>0)return(0,r.jsx)(u(),{},void 0)}(e);return(0,r.jsx)("div",p({className:q(e),onMouseLeave:function(e){clearTimeout(L.leaveTimer),L.leaveTimer=setTimeout((function(){1===y&&j&&j(),T(null),E(null),C([])}))},onMouseEnter:z(e,n)},{children:(0,r.jsxs)("div",p({className:"menu-item-popper-content-item-content",onClick:F(e)},{children:[t&&(0,r.jsx)("span",p({className:"menu-item-icon"},{children:t}),void 0),(0,r.jsx)("span",p({className:"menu-item-label"},{children:e.label}),void 0),i&&(0,r.jsx)("span",p({className:"menu-item-arrow"},{children:i}),void 0),I(e,n)]}),void 0)}),n)}))}),void 0)}),[b,f,M,S,k,c,v,f,g,j,y]),A=function(){return 1!==y?(0,r.jsx)("div",p({className:_()},{children:R}),void 0):(0,r.jsx)(a.Popper,p({open:t,anchorEl:l,disablePortal:!0,placement:"bottom-start",className:_()},{children:R}),void 0)};return(0,r.jsx)(r.Fragment,{children:1===y?(0,o.createPortal)((0,r.jsx)(A,{},void 0),document.getElementsByTagName("body")[0]):(0,r.jsx)(A,{},void 0)},void 0)},h=function(e){var n=e.list,t=void 0===n?[]:n,o=e.selectMenu,a=void 0===o?"":o,l=e.onClickMenu,c=e.className,h=e.moreCustomize,b=(0,i.useState)(!1),g=b[0],j=b[1],x=(0,i.useState)(null),y=x[0],N=x[1],O=(0,i.useState)(null),M=O[0],T=O[1],P=(0,i.useState)([]),S=P[0],E=P[1],w=(0,i.useState)(""),k=w[0],C=w[1],L=(0,i.useState)({}),z=L[0],F=L[1],q=(0,i.useState)({}),_=q[0],I=q[1],R=(0,i.useState)("horizontal-menu-list-"+(0,v.UUID)())[0],A=(0,i.useState)(null),B=A[0],Z=A[1],D=(0,i.useState)({})[0];(0,i.useEffect)((function(){a!==k&&C(a)}),[a]),(0,i.useEffect)((function(){return V(t),H(),window.addEventListener("resize",H),function(){window.removeEventListener("resize",H)}}),[t]);var U,H=function(){clearTimeout(D.timerResize),G(),D.timerResize=setTimeout((function(){Z(t.length),$()}),100)},$=function(e){if(null!==e&&0!==e){void 0===e&&(e=t.length);var n=document.querySelector("."+R);if(n)if(n.scrollHeight>n.clientHeight){var r=Number(e)-1;Z(r),$(r)}else t.length<=e&&G()}},G=function(){},V=function(e){var n={},t={},r={},i={},o=function(e,a,l){for(var u=0,s=e.length;u<s;u++){var c=e[u],d=c.path;n[d]=c;var p=void 0===l?u:l;if(a){var m=(0,v.DeepClone)(t[a.path]||[]);m.push(d),t[d]=f([],m,!0)}else t[d]=[d];c.children&&c.children.length>0?o(c.children,c,p):(r[d]=t[d],i[d]=p)}};o(e),I(i),F(r)},W=function(e,n){return function(t){clearTimeout(D.leaveTimer);var r=[];e.children&&e.children.length>0&&(r=e.children),N(n),T(t.target),E(r),j(!0)}},Y=function(){j(!1),T(null),E([]),N(null)},J=function(){clearTimeout(D.leaveTimer)},K=function(){Y()},Q=function(e){l&&l(e)},X=function(e,n){var t=" horizontal-menu-list-item",r=z[k];return r&&-1!==r.indexOf(e.path)&&(t+=" horizontal-menu-list-item-select"),y===n&&(t+=" horizontal-menu-list-item-hover"),t},ee=(0,i.useMemo)((function(){return(0,r.jsx)(r.Fragment,{children:g&&(0,r.jsx)(m,{open:g,anchorEl:M,list:S,idMenuLast:z,selectMenu:k,onClickMenu:Q,onMouseEnter:J,onMouseLeave:K,className:"paraui-horizontal-menu-popper",level:1},void 0)},void 0)}),[g,M,S,z,k,l,D]),ne=function(e){clearTimeout(D.leaveTimer);for(var n=[],r=Number(B),i=t.length;r<i;r++)n.push(t[r]);N(B),T(e.target),E(n),j(!0)},te=function(){clearTimeout(D.leaveTimer),D.leaveTimer=setTimeout((function(){Y()}),100)},re=function(){var e=" horizontal-menu-list-item",n=_[k];return null!==B&&B<=n&&(e+=" horizontal-menu-list-item-select"),y===B&&(e+=" horizontal-menu-list-item-hover"),e};return(0,r.jsxs)("div",p({className:(U="horizontal-menu-list",c&&(U+=" "+c),R&&(U+=" "+R),U)},{children:[t.map((function(e,n){if(null!==B&&B<=n)return null;var t=function(e){var n=e.icon;if(n){var t=s[n];return t?t():n}}(e),i=function(e){var n=e.children;if(n&&n.length>0)return(0,r.jsx)(u(),{},void 0)}(e);return(0,r.jsxs)("div",p({onClick:function(){Q(e)},onMouseEnter:W(e,n),onMouseLeave:function(e){clearTimeout(D.leaveTimer),D.leaveTimer=setTimeout((function(){Y()}),100)},className:X(e,n)},{children:[t&&(0,r.jsx)("span",p({className:"menu-item-icon"},{children:t}),void 0),(0,r.jsx)("span",p({className:"menu-item-label"},{children:e.label}),void 0),i&&(0,r.jsx)("span",p({className:"menu-item-arrow"},{children:i}),void 0)]}),n)})),function(){if(null!==B&&t.length>B)return(0,r.jsx)("div",p({onMouseEnter:ne,onMouseLeave:te,className:re()},{children:h||(0,r.jsx)("span",p({className:"menu-item-icon"},{children:(0,r.jsx)(d(),{},void 0)}),void 0)}),void 0)}(),ee]}),void 0)},b=t(2990),g=function(){return g=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},g.apply(this,arguments)},j=function(e){var n,t=e.icon,i=e.label,o=e.render,a=e.onClick,l=e.className,u=function(e){a&&a(e)};return(0,r.jsx)(r.Fragment,{children:o||(0,r.jsx)("div",g({className:(n="back-btn",l&&(n+=" "+l),n)},{children:(0,r.jsx)(b.default,g({startIcon:t,variant:"contained",onClick:u},{children:i}),void 0)}),void 0)},void 0)},x=function(e){var n=e.language,t=void 0===n?[]:n,l=e.selectLang,u=void 0===l?"":l,s=e.onClick,c=e.className,d=e.render,v=(0,i.useState)({}),p=v[0],f=v[1],m=(0,i.useState)({}),h=m[0],b=m[1],j=(0,i.useState)(!1),x=j[0],y=j[1],N=(0,i.useState)(null),O=N[0],M=N[1],T=(0,i.useState)({})[0];(0,i.useEffect)((function(){var e=p[u]||{};b(e)}),[u,p]),(0,i.useEffect)((function(){for(var e={},n=0,r=t.length;n<r;n++){var i=t[n];i.value&&(e[i.value]=i)}f(e)}),[t]);var P,S=function(e){return function(){s&&s(e.value,e),y(!1)}},E=function(e){T.timer=setTimeout((function(){y(!1),M(null)}),100)},w=function(e){return function(n){clearTimeout(T.timer),y(!0),e&&M(n.target)}},k=(0,i.useMemo)((function(){return(0,r.jsx)("div",g({className:"language-item",onMouseLeave:E,onMouseEnter:w(!0)},{children:(0,r.jsxs)(r.Fragment,{children:[h.icon&&(0,r.jsx)("span",g({className:"language-item-icon"},{children:h.icon}),void 0),h.label&&(0,r.jsx)("span",g({className:"language-item-label"},{children:h.label}),void 0)]},void 0)}),void 0)}),[h,t,T]),C=(0,i.useMemo)((function(){var e=function(e){var n="menu-popover-item";return e.value===h.value&&(n+=" menu-popover-item-select"),n};return(0,o.createPortal)((0,r.jsx)((function(){return(0,r.jsx)(a.Popper,g({open:x,anchorEl:O,disablePortal:!0,placement:"bottom-end",onMouseLeave:E,onMouseEnter:w(!1),className:"paraui-horizontal-meun-right-popover menu-popover"},{children:(0,r.jsx)("div",g({className:"menu-popover-box"},{children:t.map((function(n,t){return(0,r.jsxs)("div",g({className:e(n),onClick:S(n)},{children:[n.icon&&(0,r.jsx)("span",g({className:"icon"},{children:n.icon}),void 0),n.label&&(0,r.jsx)("span",g({className:"label",style:{marginLeft:"5px"}},{children:n.label}),void 0)]}),t)}))}),void 0)}),void 0)}),{},void 0),document.getElementsByTagName("body")[0])}),[t,h,x,O,T,s]);return(0,r.jsx)(r.Fragment,{children:d||(0,r.jsxs)("div",g({className:(P="language",c&&(P+=" "+c),x&&(P+=" language-select"),P)},{children:[k,x&&C]}),void 0)},void 0)},y=function(e){var n,t=e.list,o=void 0===t?[]:t,a=e.render,l=e.className,u=e.onClick,s=function(e){return function(n){u&&u(e,n)}},c=(0,i.useMemo)((function(){var e=function(e){return(0,r.jsxs)(r.Fragment,{children:[e.icon&&(0,r.jsx)("span",g({className:"btn-list-item-icon"},{children:e.icon}),void 0),e.label&&(0,r.jsx)("span",g({className:"btn-list-item-label"},{children:e.label}),void 0)]},void 0)};return(0,r.jsx)(r.Fragment,{children:o.map((function(n,t){var i="btn-list-item";return n.sign&&(i+=" btn-list-item-sign"),(0,r.jsx)("div",g({className:i,onClick:s(n)},{children:e(n)}),t)}))},void 0)}),[o]);return(0,r.jsx)(r.Fragment,{children:a||(0,r.jsx)("div",g({className:(n="btn-list",l&&(n+=" "+l),n)},{children:c}),void 0)},void 0)},N=function(e){var n,t=e.img,l=e.imgRender,s=e.label,c=e.render,d=e.className,v=e.list,p=e.onClick,f=e.onClickMenu,m=e.selectValue,h=(0,i.useState)(!1),b=h[0],j=h[1],x=(0,i.useState)(null),y=x[0],N=x[1],O=(0,i.useState)({})[0],M=(0,i.useRef)(),T=function(e){return function(){f&&f(e.value,e),j(!1)}},P=function(e){O.timer=setTimeout((function(){j(!1),N(null)}),100)},S=function(e){return function(n){clearTimeout(O.timer),j(!0),e&&N(M.current)}},E=(0,i.useMemo)((function(){var e=function(e){var n="menu-popover-item";return e.value===m&&(n+=" menu-popover-item-select"),n};return(0,o.createPortal)((0,r.jsx)((function(){var n;return(0,r.jsx)(a.Popper,g({open:b,anchorEl:y,disablePortal:!0,placement:"bottom-end",onMouseLeave:P,onMouseEnter:S(!1),className:"paraui-horizontal-meun-right-popover menu-popover"},{children:(0,r.jsx)("div",g({className:"menu-popover-box",style:(n={},y&&(n.width=y.getBoundingClientRect().width+"px"),n)},{children:v&&v.map((function(n,t){return(0,r.jsxs)("div",g({className:e(n),onClick:T(n)},{children:[n.icon&&(0,r.jsx)("span",g({className:"icon",style:{marginRight:"5px"}},{children:n.icon}),void 0),n.label&&(0,r.jsx)("span",g({className:"label"},{children:n.label}),void 0)]}),t)}))}),void 0)}),void 0)}),{},void 0),document.getElementsByTagName("body")[0])}),[v,m,b,y,O]);return(0,r.jsxs)("div",g({className:(n="logo",d&&(n+=" "+d),b&&(n+=" logo-show-dialog"),n),onClick:function(e){p&&p(e)},onMouseLeave:P,onMouseEnter:S(!0),ref:M},{children:[c||(0,r.jsxs)(r.Fragment,{children:[l||t&&(0,r.jsx)("img",{src:t,alt:""},void 0),s&&(0,r.jsx)("span",g({className:"label"},{children:s}),void 0),v&&v.length>0&&(0,r.jsx)("span",g({className:"arrow"},{children:(0,r.jsx)(u(),{},void 0)}),void 0)]},void 0),b&&E]}),void 0)},O=function(e){var n,t=e.className,o=void 0===t?"":t,a=e.backSelfcareProps,l=e.languageProps,u=e.btnListProps,s=e.userProps,c=e.render,d=(0,i.useMemo)((function(){return a&&(0,r.jsx)(j,g({},a),void 0)}),[a]),v=(0,i.useMemo)((function(){return l&&(0,r.jsx)(x,g({},l),void 0)}),[l]),p=(0,i.useMemo)((function(){return u&&(0,r.jsx)(y,g({},u),void 0)}),[u]),f=(0,i.useMemo)((function(){return s&&(0,r.jsx)(N,g({},s),void 0)}),[s]);return(0,r.jsx)(r.Fragment,{children:c||(0,r.jsxs)("div",g({className:(n="paraui-horizontal-meun-right",o&&(n+=" "+o),n)},{children:[d,v,p,f]}),void 0)},void 0)},M=function(){return M=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},M.apply(this,arguments)},T=function(e){var n,t=e.leftRender,o=e.menuListProps,a=e.footerProps,l=e.selectMenu,u=e.onClickMenu,s=e.className,c=(0,i.useMemo)((function(){return t&&(0,r.jsx)("div",M({className:"paraui-page-header-left"},{children:t}),void 0)}),[t]),d=(0,i.useMemo)((function(){return e.menuListProps&&(0,r.jsx)("div",M({className:"menu-box"},{children:(0,r.jsx)(h,M({},o,{selectMenu:l,onClickMenu:u}),void 0)}),void 0)}),[o,l,u]),v=(0,i.useMemo)((function(){return e.footerProps&&(0,r.jsx)(O,M({},a),void 0)}),[a]);return(0,r.jsxs)("div",M({className:(n="paraui-page-header",s&&(n+=" "+s),n)},{children:[c,d,v]}),void 0)},P=T},6885:function(e,n,t){var r=t(7712),i=t(1731),o=t(4927),a=function(){return a=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},a.apply(this,arguments)};n.default=function(e){var n,t=e.placement,l=void 0===t?"bottom":t,u=a(a({},e.classes),{popper:(0,o.Z)("paraui-tooltip",null===(n=e.classes)||void 0===n?void 0:n.popper,{"paraui-tooltip-left-right":(null==l?void 0:l.includes("left"))||(null==l?void 0:l.includes("right")),"paraui-tooltip-top-bottom":(null==l?void 0:l.includes("top"))||(null==l?void 0:l.includes("bottom"))})});return(0,r.jsx)(i.Tooltip,a({},e,{classes:u}),void 0)}},1731:function(n){n.exports=e},1609:function(e){e.exports=n},6028:function(e){e.exports=t},2749:function(e){e.exports=r},1102:function(e){e.exports=i},6090:function(e){e.exports=o},3475:function(e){e.exports=a},9297:function(e){e.exports=l},2268:function(e){e.exports=u}},d={};function v(e){var n=d[e];if(void 0!==n)return n.exports;var t=d[e]={exports:{}};return c[e](t,t.exports,v),t.exports}v.m=c,s=[],v.O=function(e,n,t,r){if(!n){var i=1/0;for(l=0;l<s.length;l++){n=s[l][0],t=s[l][1],r=s[l][2];for(var o=!0,a=0;a<n.length;a++)(!1&r||i>=r)&&Object.keys(v.O).every((function(e){return v.O[e](n[a])}))?n.splice(a--,1):(o=!1,r<i&&(i=r));o&&(s.splice(l--,1),e=t())}return e}r=r||0;for(var l=s.length;l>0&&s[l-1][2]>r;l--)s[l]=s[l-1];s[l]=[n,t,r]},v.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return v.d(n,{a:n}),n},v.d=function(e,n){for(var t in n)v.o(n,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},v.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={3462:0,6615:0,2823:0,9296:0};v.O.j=function(n){return 0===e[n]};var n=function(n,t){var r,i,o=t[0],a=t[1],l=t[2],u=0;for(r in a)v.o(a,r)&&(v.m[r]=a[r]);if(l)var s=l(v);for(n&&n(t);u<o.length;u++)i=o[u],v.o(e,i)&&e[i]&&e[i][0](),e[o[u]]=0;return v.O(s)},t=self.webpackChunkParaUI=self.webpackChunkParaUI||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))}();var p=v.O(void 0,[9296],(function(){return v(7456)}));return p=v.O(p)}()}));
|
|
16
|
+
t(7418);var i=t(9297),r=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;r=o("react.element"),n.Fragment=o("react.fragment")}var a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,t){var i,o={},s=null,c=null;for(i in void 0!==t&&(s=""+t),void 0!==n.key&&(s=""+n.key),void 0!==n.ref&&(c=n.ref),n)l.call(n,i)&&!u.hasOwnProperty(i)&&(o[i]=n[i]);if(e&&e.defaultProps)for(i in n=e.defaultProps)void 0===o[i]&&(o[i]=n[i]);return{$$typeof:r,type:e,key:s,ref:c,props:o,_owner:a.current}}n.jsx=s,n.jsxs=s},5893:function(e,n,t){e.exports=t(5251)},8595:function(e,n,t){t.d(n,{default:function(){return g}});var i=t(5893),r=t(9297),o=t(1731),a=t(6010),l=t(1102),u=t.n(l),s=t(2749),c=t.n(s),d=t(7371),v=t(6028),p=t.n(v),f=function(){return f=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},f.apply(this,arguments)};var m=function(){return m=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},m.apply(this,arguments)},h=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t},b=function(e){var n=e.variant,t=void 0===n?"contained":n,l=e.size,s=void 0===l?"large":l,v=e.className,p=e.disabled,f=void 0!==p&&p,b=e.children,g=e.startIcon,j=e.endIcon,x=e.loading,y=void 0!==x&&x,N=e.toolTipTitle,M=void 0===N?"":N,O=e.danger,T=void 0!==O&&O,P=h(e,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","danger"]),S=(0,r.useState)(!1),E=S[0],w=S[1],k=function(e){if(!E)return"start"===e&&g?(0,i.jsx)("span",m({className:(0,a.Z)("btn-icon","start-icon")},{children:g}),void 0):"end"===e&&j?(0,i.jsx)("span",m({className:(0,a.Z)("btn-icon","end-icon")},{children:j}),void 0):null;if("object"==typeof y){var n=y.delay||0;setTimeout((function(){return w(!1)}),n)}return"start"===e?(0,i.jsx)("span",m({className:"btn-icon loading-icon"},{children:(0,i.jsx)(u(),{},void 0)}),void 0):null},L=(0,i.jsx)(o.Button,m({},P,{color:"default",variant:"contained",disabled:f,disableRipple:!0,disableElevation:!0,className:(0,a.Z)("paraui-button",v,"paraui-button-".concat(t),"paraui-button-".concat(s),E&&"paraui-button-loading",T&&!f&&"paraui-button-dangerous"),startIcon:k("start"),endIcon:k("end")},{children:b}),void 0);return(0,r.useEffect)((function(){w(!!y)}),[y]),f&&M?(0,i.jsx)(d.default,m({title:function(){if(f&&M){return(0,i.jsxs)("span",{children:[(0,i.jsx)(c(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),M]},void 0)}return M}()},{children:(0,i.jsx)("span",m({className:"paraui-button--disabled"},{children:L}),void 0)}),void 0):L};b.IconButton=function(e){var n=e.variant,t=void 0===n?"contained":n,l=e.size,s=void 0===l?"large":l,v=e.toolTipTitle,p=void 0===v?"":v,f=e.children,b=e.className,g=e.disabled,j=void 0!==g&&g,x=e.loading,y=void 0!==x&&x,N=e.TooltipProps,M=e.danger,O=void 0!==M&&M,T=h(e,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),P=(0,r.useState)(!1),S=P[0],E=P[1],w=(0,i.jsx)(o.IconButton,m({},T,{disabled:j,disableRipple:!0,className:(0,a.Z)("paraui-icon-button",b,"paraui-icon-button-".concat(t),"paraui-icon-button-".concat(s),S&&"paraui-icon-button-loading",O&&!j&&"paraui-icon-button-dangerous")},{children:function(){if(!S)return f;if("object"==typeof y){var e=y.delay||0;setTimeout((function(){return E(!1)}),e)}return(0,i.jsx)("span",m({className:"loading-icon"},{children:(0,i.jsx)(u(),{},void 0)}),void 0)}()}),void 0);return(0,r.useEffect)((function(){E(!!y)}),[y]),p?(0,i.jsx)(d.default,m({},N,{title:function(){if(j&&p){return(0,i.jsxs)("span",{children:[(0,i.jsx)(c(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),p]},void 0)}return p}()},{children:j?(0,i.jsx)("span",m({className:"paraui-button--disabled"},{children:w}),void 0):w}),void 0):w},b.SplitButton=function(e){var n=e.buttonText,t=e.options,l=void 0===t?[]:t,u=e.className,s=e.disabled,c=void 0!==s&&s,d=e.onClick,v=e.optionRender,m=(0,r.useState)(!1),h=m[0],b=m[1],j=(0,r.useRef)(null),x=(0,r.useRef)(),y=(0,r.useState)(0),N=y[0],M=y[1],O=function(e,n,t){var i;M(n),b(!1),null===(i=x.current)||void 0===i||i.classList.remove("paraui-button-split--active"),null==d||d(e,t)},T=function(e){var n,t;(null===(n=j.current)||void 0===n?void 0:n.contains(e.target))||(b(!1),null===(t=x.current)||void 0===t||t.classList.remove("paraui-button-split--active"))},P=function(){return(0,i.jsx)("div",f({className:"paraui-button-split-list"},{children:(0,i.jsx)("ul",{children:l.map((function(e,n){return Array.isArray(e)?function(e,n){return(0,i.jsx)("li",f({className:"split-li-group"},{children:e.map((function(e,t){var r="".concat(n,"-").concat(t);return(0,i.jsx)("div",f({className:(0,a.Z)("split-li",r===N&&"split-li--active"),onClick:function(n){return O(e,r,n)}},{children:(null==v?void 0:v(e))||e.label}),r)}))}),n)}(e,n):(0,i.jsx)("li",f({className:(0,a.Z)("split-li",n===N&&"split-li--active"),onClick:function(t){return O(e,n,t)}},{children:(null==v?void 0:v(e))||e.label}),n)}))},void 0)}),void 0)};return(0,i.jsxs)("div",f({className:(0,a.Z)("paraui-button-split",u),ref:j,onMouseLeave:function(e){var n;e.stopPropagation(),null===(n=e.currentTarget.firstElementChild)||void 0===n||n.classList.remove("paraui-button-split--active"),b(!1)}},{children:[(0,i.jsx)(g,f({variant:"outlined",onMouseEnter:function(e){e.stopPropagation();var n=e.currentTarget;x.current=n,n.classList.add("paraui-button-split--active"),b(!0)},startIcon:(0,i.jsx)(p(),{},void 0),disabled:c},{children:null!=n?n:"更多操作"}),void 0),(0,i.jsx)(o.Popper,f({open:h,anchorEl:j.current,transition:!0,placement:"bottom-end"},{children:function(e){var n=e.TransitionProps;e.placement;return(0,i.jsx)(o.Grow,f({},n,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o.ClickAwayListener,f({onClickAway:T},{children:P()}),void 0)},void 0)}),void 0)}}),void 0)]}),void 0)};var g=b},7371:function(e,n,t){var i=t(5893),r=t(1731),o=t(6010),a=function(){return a=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a.apply(this,arguments)};n.default=function(e){var n,t=e.placement,l=void 0===t?"bottom":t,u=a(a({},e.classes),{popper:(0,o.Z)("paraui-tooltip",null===(n=e.classes)||void 0===n?void 0:n.popper,{"paraui-tooltip-left-right":(null==l?void 0:l.includes("left"))||(null==l?void 0:l.includes("right")),"paraui-tooltip-top-bottom":(null==l?void 0:l.includes("top"))||(null==l?void 0:l.includes("bottom"))})});return(0,i.jsx)(r.Tooltip,a({},e,{classes:u}),void 0)}},1731:function(n){n.exports=e},1609:function(e){e.exports=n},6028:function(e){e.exports=t},2749:function(e){e.exports=i},1102:function(e){e.exports=r},6090:function(e){e.exports=o},3475:function(e){e.exports=a},9297:function(e){e.exports=l},2268:function(e){e.exports=u}},c={};function d(e){var n=c[e];if(void 0!==n)return n.exports;var t=c[e]={exports:{}};return s[e](t,t.exports,d),t.exports}d.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(n,{a:n}),n},d.d=function(e,n){for(var t in n)d.o(n,t)&&!d.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},d.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var v={};return function(){d.r(v),d.d(v,{PageHeader:function(){return O},default:function(){return T}});var e=d(5893),n=d(9297),t=d(2268),i=d(1731),r=d(6028),o=d.n(r),a=d(1609),l=d(6090),u=d.n(l),s=d(3475),c=function(){return c=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},c.apply(this,arguments)},p=function(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))},f=function(r){var l=r.open,u=void 0!==l&&l,s=r.anchorEl,d=r.idMenuLast,v=r.selectMenu,p=void 0===v?"":v,m=r.onClickMenu,h=r.list,b=void 0===h?[]:h,g=r.onMouseEnter,j=r.onMouseLeave,x=r.level,y=void 0===x?1:x,N=r.className,M=(0,n.useState)(null),O=M[0],T=M[1],P=(0,n.useState)(null),S=P[0],E=P[1],w=(0,n.useState)([]),k=w[0],L=w[1],C=(0,n.useState)({})[0],z=function(e,n){return function(t){var i;i=t,clearTimeout(C.leaveTimer),C.leaveTimer=setTimeout((function(){1===y&&g&&g();var t=[e];e.children&&e.children.length>0&&(t=e.children);var r=i.target;E(r),L(t),T(n)}),50)}},F=function(e){return function(n){e.children&&e.children.length>0||(m&&m(e),j&&j())}},q=function(e){var n="menu-item-popper-content-item",t=d&&d[p];return t&&-1!==t.indexOf(e.path)&&(n+=" menu-item-popper-content-item-select"),n},_=function(){var e="menu-item-popper";return N&&(e+=" "+N),e},R=(0,n.useCallback)((function(n,t){return(0,e.jsx)(e.Fragment,{children:n.children&&n.children.length>0&&O===t&&(0,e.jsx)(f,{open:O===t,anchorEl:S,list:k,idMenuLast:d,selectMenu:p,onClickMenu:m,onMouseEnter:g,onMouseLeave:j,level:y+1},void 0)},void 0)}),[O,S,k,d,p,m,g,j,y]),I=(0,n.useMemo)((function(){return(0,e.jsx)("div",c({className:"menu-item-popper-content"},{children:b.map((function(n,t){var i=function(e){var n=e.icon;if(n){var t=a[n];return t?t():n}}(n),r=function(n){var t=n.children;if(t&&t.length>0)return(0,e.jsx)(o(),{},void 0)}(n);return(0,e.jsx)("div",c({className:q(n),onMouseLeave:function(e){clearTimeout(C.leaveTimer),C.leaveTimer=setTimeout((function(){1===y&&j&&j(),T(null),E(null),L([])}))},onMouseEnter:z(n,t)},{children:(0,e.jsxs)("div",c({className:"menu-item-popper-content-item-content",onClick:F(n)},{children:[i&&(0,e.jsx)("span",c({className:"menu-item-icon"},{children:i}),void 0),(0,e.jsx)("span",c({className:"menu-item-label"},{children:n.label}),void 0),r&&(0,e.jsx)("span",c({className:"menu-item-arrow"},{children:r}),void 0),R(n,t)]}),void 0)}),t)}))}),void 0)}),[b,m,O,S,k,d,p,m,g,j,y]),A=function(){return 1!==y?(0,e.jsx)("div",c({className:_()},{children:I}),void 0):(0,e.jsx)(i.Popper,c({open:u,anchorEl:s,disablePortal:!0,placement:"bottom-start",className:_()},{children:I}),void 0)};return(0,e.jsx)(e.Fragment,{children:1===y?(0,t.createPortal)((0,e.jsx)(A,{},void 0),document.getElementsByTagName("body")[0]):(0,e.jsx)(A,{},void 0)},void 0)},m=function(t){var i=t.list,r=void 0===i?[]:i,l=t.selectMenu,d=void 0===l?"":l,v=t.onClickMenu,m=t.className,h=t.moreCustomize,b=(0,n.useState)(!1),g=b[0],j=b[1],x=(0,n.useState)(null),y=x[0],N=x[1],M=(0,n.useState)(null),O=M[0],T=M[1],P=(0,n.useState)([]),S=P[0],E=P[1],w=(0,n.useState)(""),k=w[0],L=w[1],C=(0,n.useState)({}),z=C[0],F=C[1],q=(0,n.useState)({}),_=q[0],R=q[1],I=(0,n.useState)("horizontal-menu-list-"+(0,s.UUID)())[0],A=(0,n.useState)(null),B=A[0],Z=A[1],D=(0,n.useState)({})[0];(0,n.useEffect)((function(){d!==k&&L(d)}),[d]),(0,n.useEffect)((function(){return V(r),H(),window.addEventListener("resize",H),function(){window.removeEventListener("resize",H)}}),[r]);var U,H=function(){clearTimeout(D.timerResize),G(),D.timerResize=setTimeout((function(){Z(r.length),$()}),100)},$=function(e){if(null!==e&&0!==e){void 0===e&&(e=r.length);var n=document.querySelector("."+I);if(n)if(n.scrollHeight>n.clientHeight){var t=Number(e)-1;Z(t),$(t)}else r.length<=e&&G()}},G=function(){},V=function(e){var n={},t={},i={},r={},o=function(e,a,l){for(var u=0,c=e.length;u<c;u++){var d=e[u],v=d.path;n[v]=d;var f=void 0===l?u:l;if(a){var m=(0,s.DeepClone)(t[a.path]||[]);m.push(v),t[v]=p([],m,!0)}else t[v]=[v];d.children&&d.children.length>0?o(d.children,d,f):(i[v]=t[v],r[v]=f)}};o(e),R(r),F(i)},W=function(e,n){return function(t){clearTimeout(D.leaveTimer);var i=[];e.children&&e.children.length>0&&(i=e.children),N(n),T(t.target),E(i),j(!0)}},Y=function(){j(!1),T(null),E([]),N(null)},J=function(){clearTimeout(D.leaveTimer)},K=function(){Y()},Q=function(e){v&&v(e)},X=function(e,n){var t=" horizontal-menu-list-item",i=z[k];return i&&-1!==i.indexOf(e.path)&&(t+=" horizontal-menu-list-item-select"),y===n&&(t+=" horizontal-menu-list-item-hover"),t},ee=(0,n.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:g&&(0,e.jsx)(f,{open:g,anchorEl:O,list:S,idMenuLast:z,selectMenu:k,onClickMenu:Q,onMouseEnter:J,onMouseLeave:K,className:"paraui-horizontal-menu-popper",level:1},void 0)},void 0)}),[g,O,S,z,k,v,D]),ne=function(e){clearTimeout(D.leaveTimer);for(var n=[],t=Number(B),i=r.length;t<i;t++)n.push(r[t]);N(B),T(e.target),E(n),j(!0)},te=function(){clearTimeout(D.leaveTimer),D.leaveTimer=setTimeout((function(){Y()}),100)},ie=function(){var e=" horizontal-menu-list-item",n=_[k];return null!==B&&B<=n&&(e+=" horizontal-menu-list-item-select"),y===B&&(e+=" horizontal-menu-list-item-hover"),e};return(0,e.jsxs)("div",c({className:(U="horizontal-menu-list",m&&(U+=" "+m),I&&(U+=" "+I),U)},{children:[r.map((function(n,t){if(null!==B&&B<=t)return null;var i=function(e){var n=e.icon;if(n){var t=a[n];return t?t():n}}(n),r=function(n){var t=n.children;if(t&&t.length>0)return(0,e.jsx)(o(),{},void 0)}(n);return(0,e.jsxs)("div",c({onClick:function(){Q(n)},onMouseEnter:W(n,t),onMouseLeave:function(e){clearTimeout(D.leaveTimer),D.leaveTimer=setTimeout((function(){Y()}),100)},className:X(n,t)},{children:[i&&(0,e.jsx)("span",c({className:"menu-item-icon"},{children:i}),void 0),(0,e.jsx)("span",c({className:"menu-item-label"},{children:n.label}),void 0),r&&(0,e.jsx)("span",c({className:"menu-item-arrow"},{children:r}),void 0)]}),t)})),function(){if(null!==B&&r.length>B)return(0,e.jsx)("div",c({onMouseEnter:ne,onMouseLeave:te,className:ie()},{children:h||(0,e.jsx)("span",c({className:"menu-item-icon"},{children:(0,e.jsx)(u(),{},void 0)}),void 0)}),void 0)}(),ee]}),void 0)},h=d(8595),b=function(){return b=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},b.apply(this,arguments)},g=function(n){var t,i=n.icon,r=n.label,o=n.render,a=n.onClick,l=n.className,u=function(e){a&&a(e)};return(0,e.jsx)(e.Fragment,{children:o||(0,e.jsx)("div",b({className:(t="back-btn",l&&(t+=" "+l),t)},{children:(0,e.jsx)(h.default,b({startIcon:i,variant:"contained",onClick:u},{children:r}),void 0)}),void 0)},void 0)},j=function(r){var o=r.language,a=void 0===o?[]:o,l=r.selectLang,u=void 0===l?"":l,s=r.onClick,c=r.className,d=r.render,v=(0,n.useState)({}),p=v[0],f=v[1],m=(0,n.useState)({}),h=m[0],g=m[1],j=(0,n.useState)(!1),x=j[0],y=j[1],N=(0,n.useState)(null),M=N[0],O=N[1],T=(0,n.useState)({})[0];(0,n.useEffect)((function(){var e=p[u]||{};g(e)}),[u,p]),(0,n.useEffect)((function(){for(var e={},n=0,t=a.length;n<t;n++){var i=a[n];i.value&&(e[i.value]=i)}f(e)}),[a]);var P,S=function(e){return function(){s&&s(e.value,e),y(!1)}},E=function(e){T.timer=setTimeout((function(){y(!1),O(null)}),100)},w=function(e){return function(n){clearTimeout(T.timer),y(!0),e&&O(n.target)}},k=(0,n.useMemo)((function(){return(0,e.jsx)("div",b({className:"language-item",onMouseLeave:E,onMouseEnter:w(!0)},{children:(0,e.jsxs)(e.Fragment,{children:[h.icon&&(0,e.jsx)("span",b({className:"language-item-icon"},{children:h.icon}),void 0),h.label&&(0,e.jsx)("span",b({className:"language-item-label"},{children:h.label}),void 0)]},void 0)}),void 0)}),[h,a,T]),L=(0,n.useMemo)((function(){var n=function(e){var n="menu-popover-item";return e.value===h.value&&(n+=" menu-popover-item-select"),n};return(0,t.createPortal)((0,e.jsx)((function(){return(0,e.jsx)(i.Popper,b({open:x,anchorEl:M,disablePortal:!0,placement:"bottom-end",onMouseLeave:E,onMouseEnter:w(!1),className:"paraui-horizontal-meun-right-popover menu-popover"},{children:(0,e.jsx)("div",b({className:"menu-popover-box"},{children:a.map((function(t,i){return(0,e.jsxs)("div",b({className:n(t),onClick:S(t)},{children:[t.icon&&(0,e.jsx)("span",b({className:"icon"},{children:t.icon}),void 0),t.label&&(0,e.jsx)("span",b({className:"label",style:{marginLeft:"5px"}},{children:t.label}),void 0)]}),i)}))}),void 0)}),void 0)}),{},void 0),document.getElementsByTagName("body")[0])}),[a,h,x,M,T,s]);return(0,e.jsx)(e.Fragment,{children:d||(0,e.jsxs)("div",b({className:(P="language",c&&(P+=" "+c),x&&(P+=" language-select"),P)},{children:[k,x&&L]}),void 0)},void 0)},x=function(t){var i,r=t.list,o=void 0===r?[]:r,a=t.render,l=t.className,u=t.onClick,s=function(e){return function(n){u&&u(e,n)}},c=(0,n.useMemo)((function(){var n=function(n){return(0,e.jsxs)(e.Fragment,{children:[n.icon&&(0,e.jsx)("span",b({className:"btn-list-item-icon"},{children:n.icon}),void 0),n.label&&(0,e.jsx)("span",b({className:"btn-list-item-label"},{children:n.label}),void 0)]},void 0)};return(0,e.jsx)(e.Fragment,{children:o.map((function(t,i){var r="btn-list-item";return t.sign&&(r+=" btn-list-item-sign"),(0,e.jsx)("div",b({className:r,onClick:s(t)},{children:n(t)}),i)}))},void 0)}),[o]);return(0,e.jsx)(e.Fragment,{children:a||(0,e.jsx)("div",b({className:(i="btn-list",l&&(i+=" "+l),i)},{children:c}),void 0)},void 0)},y=function(r){var a,l=r.img,u=r.imgRender,s=r.label,c=r.render,d=r.className,v=r.list,p=r.onClick,f=r.onClickMenu,m=r.selectValue,h=(0,n.useState)(!1),g=h[0],j=h[1],x=(0,n.useState)(null),y=x[0],N=x[1],M=(0,n.useState)({})[0],O=(0,n.useRef)(),T=function(e){return function(){f&&f(e.value,e),j(!1)}},P=function(e){M.timer=setTimeout((function(){j(!1),N(null)}),100)},S=function(e){return function(n){clearTimeout(M.timer),j(!0),e&&N(O.current)}},E=(0,n.useMemo)((function(){var n=function(e){var n="menu-popover-item";return e.value===m&&(n+=" menu-popover-item-select"),n};return(0,t.createPortal)((0,e.jsx)((function(){var t;return(0,e.jsx)(i.Popper,b({open:g,anchorEl:y,disablePortal:!0,placement:"bottom-end",onMouseLeave:P,onMouseEnter:S(!1),className:"paraui-horizontal-meun-right-popover menu-popover"},{children:(0,e.jsx)("div",b({className:"menu-popover-box",style:(t={},y&&(t.width=y.getBoundingClientRect().width+"px"),t)},{children:v&&v.map((function(t,i){return(0,e.jsxs)("div",b({className:n(t),onClick:T(t)},{children:[t.icon&&(0,e.jsx)("span",b({className:"icon",style:{marginRight:"5px"}},{children:t.icon}),void 0),t.label&&(0,e.jsx)("span",b({className:"label"},{children:t.label}),void 0)]}),i)}))}),void 0)}),void 0)}),{},void 0),document.getElementsByTagName("body")[0])}),[v,m,g,y,M]);return(0,e.jsxs)("div",b({className:(a="logo",d&&(a+=" "+d),g&&(a+=" logo-show-dialog"),a),onClick:function(e){p&&p(e)},onMouseLeave:P,onMouseEnter:S(!0),ref:O},{children:[c||(0,e.jsxs)(e.Fragment,{children:[u||l&&(0,e.jsx)("img",{src:l,alt:""},void 0),s&&(0,e.jsx)("span",b({className:"label"},{children:s}),void 0),v&&v.length>0&&(0,e.jsx)("span",b({className:"arrow"},{children:(0,e.jsx)(o(),{},void 0)}),void 0)]},void 0),g&&E]}),void 0)},N=function(t){var i,r=t.className,o=void 0===r?"":r,a=t.backSelfcareProps,l=t.languageProps,u=t.btnListProps,s=t.userProps,c=t.render,d=(0,n.useMemo)((function(){return a&&(0,e.jsx)(g,b({},a),void 0)}),[a]),v=(0,n.useMemo)((function(){return l&&(0,e.jsx)(j,b({},l),void 0)}),[l]),p=(0,n.useMemo)((function(){return u&&(0,e.jsx)(x,b({},u),void 0)}),[u]),f=(0,n.useMemo)((function(){return s&&(0,e.jsx)(y,b({},s),void 0)}),[s]);return(0,e.jsx)(e.Fragment,{children:c||(0,e.jsxs)("div",b({className:(i="paraui-horizontal-meun-right",o&&(i+=" "+o),i)},{children:[d,v,p,f]}),void 0)},void 0)},M=function(){return M=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},M.apply(this,arguments)},O=function(t){var i,r=t.leftRender,o=t.menuListProps,a=t.footerProps,l=t.selectMenu,u=t.onClickMenu,s=t.className,c=(0,n.useMemo)((function(){return r&&(0,e.jsx)("div",M({className:"paraui-page-header-left"},{children:r}),void 0)}),[r]),d=(0,n.useMemo)((function(){return t.menuListProps&&(0,e.jsx)("div",M({className:"menu-box"},{children:(0,e.jsx)(m,M({},o,{selectMenu:l,onClickMenu:u}),void 0)}),void 0)}),[o,l,u]),v=(0,n.useMemo)((function(){return t.footerProps&&(0,e.jsx)(N,M({},a),void 0)}),[a]);return(0,e.jsxs)("div",M({className:(i="paraui-page-header",s&&(i+=" "+s),i)},{children:[c,d,v]}),void 0)},T=O}(),v}()}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.paraui-tooltip>div{font-size:14px;color:#fff;background-color:rgba(46,55,67,0.701961)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}
|
|
2
|
+
|
|
3
|
+
.paraui-auto-tips{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips>.auto-tips-content{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
4
|
+
|
|
5
|
+
.paraui-select{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;padding-bottom:20px;display:inline-block;vertical-align:top;width:100%}.paraui-select>.select-label{display:inline-block;margin-bottom:8px;color:rgba(46,55,67,0.701961)}.paraui-select>.select-label>.select-required{margin-left:2px;color:#eb6054}.paraui-select>.select-content{line-height:0;border:1px solid;border-radius:8px;border-color:rgba(171,176,185,0.4);padding-right:40px;position:relative;cursor:pointer}.paraui-select>.select-content:hover{border-color:#3666d6}.paraui-select>.select-content:hover>.select-svg>svg{color:#3666d6}.paraui-select>.select-content>.select-label-placeholder{width:100%;height:100%;padding:0 12px;color:rgba(46,55,67,0.4);display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;left:0;top:0;z-index:1}.paraui-select>.select-content>.select-label-placeholder>.select-required{margin-left:2px;color:#eb6054}.paraui-select>.select-content>.select-svg{position:absolute;right:12px;top:0;z-index:2}.paraui-select>.select-content>.select-svg>svg{font-size:20px;transition:all .3s;color:rgba(46,55,67,0.701961)}.paraui-select>.select-content>.radio-select-content{padding-left:12px;font-size:14px;line-height:16px}.paraui-select>.select-content>.radio-search-outside{position:absolute;top:0;left:0;width:100%;height:100%;padding:0 30px 0 10px;font-size:14px;cursor:pointer;color:#2e3743;border:0;border-radius:8px;background:transparent}.paraui-select>.select-content>.check-select-content{padding-left:12px;height:100%;overflow:hidden}.paraui-select>.select-content>.check-select-content>.check-select-content-item{display:inline-block;background-color:rgba(171,176,185,0.2);border-radius:4px;padding:0 12px 0 12px;color:#2e3743;margin-right:8px;vertical-align:top;max-width:100%;white-space:nowrap}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-more{cursor:pointer;color:#2e3743}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-more>span{max-width:none}.paraui-select>.select-content>.check-select-content>.check-select-content-item>span{display:inline-block;height:100%;vertical-align:top;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis}.paraui-select>.select-content>.check-select-content>.check-select-content-item>svg{cursor:pointer;margin-left:8px;color:#2e3743;font-size:16px;position:relative}.paraui-select>.select-content>.check-select-content>.check-select-content-item>svg:hover{color:#3666d6}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-noclose>span{max-width:none}.paraui-select>.select-content>.check-select-content>.check-search-outside{width:10px;max-width:100% !important;display:none;border:0;color:#2e3743;font-size:14px;cursor:pointer}.paraui-select>.select-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-select.select-disabled>.select-content{background-color:rgba(171,176,185,0.121569);cursor:not-allowed}.paraui-select.select-disabled>.select-content:hover{border-color:rgba(171,176,185,0.4)}.paraui-select.select-disabled>.select-content:hover>.select-svg>svg{color:rgba(46,55,67,0.701961)}.paraui-select.select-disabled>.select-content>.check-select-content>.check-select-content-item>span{max-width:100%}.paraui-select.select-error>.select-content{border-color:#eb6054 !important}.paraui-select.select-error>.select-error-text{color:#eb6054}.paraui-select.select-open>.select-content{border-color:#3666d6}.paraui-select.select-open>.select-content>.select-svg>svg{transform:rotate(180deg);color:#3666d6}.paraui-select.select-open>.select-content>.check-select-content>.check-search-outside{display:inline-block}.paraui-select.select-small>.select-content{height:28px}.paraui-select.select-small>.select-content>.select-label-placeholder{line-height:26px}.paraui-select.select-small>.select-content>.select-svg{top:3px}.paraui-select.select-small>.select-content>.radio-select-content{padding-bottom:5px;padding-top:5px}.paraui-select.select-small>.select-content>.check-select-content{padding-bottom:3px}.paraui-select.select-small>.select-content>.check-select-content>.check-select-content-item{margin-top:3px;height:20px;line-height:20px}.paraui-select.select-small>.select-content>.check-select-content>.check-select-content-item>svg{top:2px}.paraui-select.select-small>.select-content>.check-select-content>.check-search-outside{margin-top:3px;height:20px}.paraui-select.select-medium>.select-content{height:32px}.paraui-select.select-medium>.select-content>.select-label-placeholder{line-height:30px}.paraui-select.select-medium>.select-content>.select-svg{top:6px}.paraui-select.select-medium>.select-content>.radio-select-content{padding-bottom:7px;padding-top:7px}.paraui-select.select-medium>.select-content>.check-select-content{padding-bottom:4px}.paraui-select.select-medium>.select-content>.check-select-content>.check-select-content-item{margin-top:4px;height:22px;line-height:22px}.paraui-select.select-medium>.select-content>.check-select-content>.check-select-content-item>svg{top:3px}.paraui-select.select-medium>.select-content>.check-select-content>.check-search-outside{margin-top:4px;height:22px}.paraui-select.select-large>.select-content{height:36px}.paraui-select.select-large>.select-content>.select-label-placeholder{line-height:34px}.paraui-select.select-large>.select-content>.select-svg{top:8px}.paraui-select.select-large>.select-content>.radio-select-content{padding-bottom:9px;padding-top:9px}.paraui-select.select-large>.select-content>.check-select-content{padding-bottom:5px}.paraui-select.select-large>.select-content>.check-select-content>.check-select-content-item{margin-top:5px;height:24px;line-height:24px}.paraui-select.select-large>.select-content>.check-select-content>.check-select-content-item>svg{top:3px}.paraui-select.select-large>.select-content>.check-select-content>.check-search-outside{margin-top:5px;height:24px}.paraui-select.select-over-line.select-small>.select-content{height:inherit;min-height:28px}.paraui-select.select-over-line.select-medium>.select-content{height:inherit;min-height:32px}.paraui-select.select-over-line.select-large>.select-content{height:inherit;min-height:36px}.paraui-select-popover>div{max-width:none;padding:0;background-color:white;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);border-radius:8px}.paraui-select-popover>div>span{color:white}.paraui-select-popover>div .select-popover-content>.select-popover-search{display:flex;align-items:center;padding:0 12px;border-bottom:1px solid;border-color:rgba(171,176,185,0.2)}.paraui-select-popover>div .select-popover-content>.select-popover-search>input{border:0;outline:none;font-size:14px;color:#2e3743;width:100%}.paraui-select-popover>div .select-popover-content>.select-popover-search>input::placeholder{font-size:14px;opacity:1;color:rgba(46,55,67,0.4)}.paraui-select-popover>div .select-popover-content>.select-popover-search>svg{color:rgba(46,55,67,0.4);font-size:20px;cursor:pointer}.paraui-select-popover>div .select-popover-content>.select-popover-list{max-height:200px;overflow:auto}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item{display:flex;cursor:pointer;padding:0 12px;align-items:center}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-label{width:calc(100% - 25px);color:#2e3743;font-size:14px}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-svg{line-height:0;display:none}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-svg>svg{font-size:20px;color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-select>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-select>.select-popover-list-item-svg{display:inline-block}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-hover{background-color:rgba(171,176,185,0.121569)}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-hover>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-keydown{background-color:rgba(171,176,185,0.121569)}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-keydown>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-disabled{background-color:rgba(171,176,185,0.121569) !important;cursor:not-allowed}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-disabled>.select-popover-list-item-label{color:#2e3743 !important}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{display:inline-block;width:100%;padding:0 12px;color:rgba(46,55,67,0.4);font-size:14px}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-item{padding-left:20px}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-nodata{text-align:center;font-size:14px;color:#2e3743;padding:10px}.paraui-select-popover.paraui-select-popover-radio>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-label{width:100%}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-search{height:28px}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:28px}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:28px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-search{height:32px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:32px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:32px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-search{height:36px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:36px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:36px}.paraui-select-more-popover>div:nth-of-type(3),.paraui-select-more-popover>div:nth-of-type(2){margin-left:20px}.paraui-select-more-popover .select-more{width:300px}.paraui-select-more-popover .select-more>.select-more-title{font-size:14px;padding:0 12px;color:rgba(46,55,67,0.701961)}.paraui-select-more-popover .select-more>.select-more-content{max-height:300px;overflow:auto}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item{padding:0 12px;display:flex;justify-content:space-around;align-items:center}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>span{width:calc(100% - 25px);display:inline-block;font-size:14px}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>svg{font-size:20px;position:relative;cursor:pointer;color:#2e3743}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>svg:hover{color:#3666d6}.paraui-select-more-popover.paraui-select-more-popover-small .select-more>.select-more-title{line-height:28px}.paraui-select-more-popover.paraui-select-more-popover-small .select-more>.select-more-content>.select-more-content-item{line-height:28px}.paraui-select-more-popover.paraui-select-more-popover-medium .select-more>.select-more-title{line-height:32px}.paraui-select-more-popover.paraui-select-more-popover-medium .select-more>.select-more-content>.select-more-content-item{line-height:32px}.paraui-select-more-popover.paraui-select-more-popover-large .select-more>.select-more-title{line-height:36px}.paraui-select-more-popover.paraui-select-more-popover-large .select-more>.select-more-content>.select-more-content-item{line-height:36px}
|
|
6
|
+
|
|
7
|
+
@keyframes rotateLoading{0%{transformOrigin:50% 50%}100%{transform:rotate(360deg)}}.paraui-loading{position:absolute;left:0;top:0;width:100%;height:100%}.paraui-loading .paraui-loading-mask{position:absolute;width:100%;height:100%;background-color:white;z-index:1}.paraui-loading .paraui-loading-box{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:2}.paraui-loading .paraui-loading-box>svg{transition:all .3s ease-in-out;animation:rotateLoading 1s infinite linear;font-size:20px}
|
|
8
|
+
|
|
9
|
+
.paraui-text-field{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;display:inline-block;width:100%;padding-bottom:20px}.paraui-text-field>.text-field-label{color:rgba(46,55,67,0.701961);margin-bottom:8px;display:inline-block}.paraui-text-field>.text-field-label>.text-field-required{margin-left:2px;color:#eb6054}.paraui-text-field>.text-field-content{border:1px solid;border-radius:8px;border-color:rgba(171,176,185,0.4);display:flex;width:100%;position:relative}.paraui-text-field>.text-field-content:hover{border-color:#3666d6}.paraui-text-field>.text-field-content>.text-field-content-before{color:#2e3743;padding:0 12px;border-right:1px solid rgba(171,176,185,0.4);background-color:rgba(171,176,185,0.121569);border-bottom-left-radius:8px;border-top-left-radius:8px;white-space:nowrap;display:flex;align-items:center}.paraui-text-field>.text-field-content>.text-field-content-before svg{font-size:20px}.paraui-text-field>.text-field-content>.text-field-content-within{position:relative;width:100%;display:flex}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon{display:flex;height:100%;align-items:center;margin-right:12px;cursor:pointer;color:rgba(46,55,67,0.701961);position:relative;z-index:1}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon svg{color:rgba(46,55,67,0.701961);font-size:20px}.paraui-text-field>.text-field-content>.text-field-content-within>.length-limit{display:flex;height:100%;align-items:center;margin-right:12px;color:rgba(46,55,67,0.701961)}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input{width:100%;line-height:0}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input::-webkit-outer-spin-button,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input::-webkit-inner-spin-button{-webkit-appearance:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input[type="number"]{-moz-appearance:textfield}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{width:100%;height:100%}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{width:100% !important;padding:12px}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{font-size:14px;color:#2e3743;border:0;border-radius:8px;background:transparent}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input::-ms-clear,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea::-ms-clear{display:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input::-ms-reveal,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea::-ms-reveal{display:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input:disabled,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea:disabled{background-color:transparent}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{width:100%;position:absolute;left:0;top:0;height:100%;padding:0 12px;color:rgba(46,55,67,0.4);cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder>.text-field-required{margin-left:2px;color:#eb6054}.paraui-text-field>.text-field-content>.text-field-content-after{color:#2e3743;padding:0 12px;border-left:1px solid rgba(171,176,185,0.4);background-color:rgba(171,176,185,0.121569);border-bottom-right-radius:8px;border-top-right-radius:8px;white-space:nowrap;display:flex;align-items:center}.paraui-text-field>.text-field-content>.text-field-content-after svg{font-size:20px}.paraui-text-field>.text-field-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.length-limit{height:14px;position:absolute;right:0;bottom:8px}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{padding-top:12px;line-height:1;height:calc(100% - 14px)}.paraui-text-field.text-field-disabled>.text-field-content{background-color:rgba(171,176,185,0.121569)}.paraui-text-field.text-field-disabled>.text-field-content:hover{border-color:rgba(171,176,185,0.4)}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-before{background-color:transparent}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{cursor:not-allowed}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>input,.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{cursor:not-allowed}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-after{background-color:transparent}.paraui-text-field.text-field-error>.text-field-error-text{color:#eb6054}.paraui-text-field.text-field-error>.text-field-content{border-color:#eb6054}.paraui-text-field.text-field-error>.text-field-content:hover{border-color:#eb6054}.paraui-text-field.text-field-limit>.text-field-content{border-color:#eb6054 !important}.paraui-text-field.text-field-limit>.text-field-content:hover{border-color:#eb6054 !important}.paraui-text-field.text-field-focus>.text-field-content{border-color:#3666d6}.paraui-text-field.text-field-small>.text-field-content{height:28px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-before{line-height:26px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:26px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:6px 12px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:26px}.paraui-text-field.text-field-small>.text-field-content .text-field-content-after{line-height:26px}.paraui-text-field.text-field-medium>.text-field-content{height:32px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-before{line-height:30px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:30px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:8px 12px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:30px}.paraui-text-field.text-field-medium>.text-field-content .text-field-content-after{line-height:30px}.paraui-text-field.text-field-large>.text-field-content{height:36px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-before{line-height:34px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:34px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:10px 12px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:34px}.paraui-text-field.text-field-large>.text-field-content .text-field-content-after{line-height:34px}.paraui-text-field-select>div{max-width:none;padding:0;background-color:white;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);border-radius:8px;font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400}.paraui-text-field-select>div>span{color:white}.paraui-text-field-select>div .text-field-select-content{max-height:300px;overflow:auto}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item{display:flex;cursor:pointer;color:#2e3743;padding:0 12px}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item:hover{background-color:rgba(171,176,185,0.121569);color:#3666d6}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item.text-field-select-content-item-keydown{background-color:rgba(171,176,185,0.121569);color:#3666d6}.paraui-text-field-select>div .text-field-select-content.text-field-select-content-loading{height:100px;position:relative;overflow:hidden}.paraui-text-field-select.paraui-text-field-select-small>div .text-field-select-content>.text-field-select-content-item{line-height:28px}.paraui-text-field-select.paraui-text-field-select-medium>div .text-field-select-content>.text-field-select-content-item{line-height:32px}.paraui-text-field-select.paraui-text-field-select-large>div .text-field-select-content>.text-field-select-content-item{line-height:36px}
|
|
10
|
+
|
|
11
|
+
.paraui-pagination{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;color:rgba(46,55,67,0.701961)}.paraui-pagination>div{display:inline-block;vertical-align:middle}.paraui-pagination>.total-num{margin-right:24px}.paraui-pagination>.current-page{margin-right:24px}.paraui-pagination>.current-page>.current-page-num{color:#2e3743;margin-right:4px;margin-left:4px}.paraui-pagination>.current-page>.current-page-sign{margin-right:3px}.paraui-pagination>.page-line-memo{margin-right:24px}.paraui-pagination>.page-line-memo>span{display:inline-block;margin-right:8px;vertical-align:middle}.paraui-pagination>.page-line-memo .paraui-select{padding-bottom:0;min-width:80px;width:inherit;vertical-align:middle}.paraui-pagination>.pagination-content{border:1px solid rgba(171,176,185,0.4);border-radius:8px;height:32px;line-height:30px;padding:0 12px}.paraui-pagination>.pagination-content>.left-page,.paraui-pagination>.pagination-content>.right-page{display:inline-block}.paraui-pagination>.pagination-content>.left-page>div,.paraui-pagination>.pagination-content>.right-page>div{display:inline-block;line-height:0;vertical-align:middle;cursor:pointer;width:20px;height:20px;border-radius:2px;margin-right:8px}.paraui-pagination>.pagination-content>.left-page>div.disabled-btn,.paraui-pagination>.pagination-content>.right-page>div.disabled-btn{cursor:not-allowed}.paraui-pagination>.pagination-content>.left-page>div.disabled-btn>svg,.paraui-pagination>.pagination-content>.right-page>div.disabled-btn>svg{color:rgba(46,55,67,0.4)}.paraui-pagination>.pagination-content>.left-page>div.disabled-btn:hover,.paraui-pagination>.pagination-content>.right-page>div.disabled-btn:hover{background-color:white}.paraui-pagination>.pagination-content>.left-page>div.disabled-btn:hover>svg,.paraui-pagination>.pagination-content>.right-page>div.disabled-btn:hover>svg{color:rgba(46,55,67,0.701961)}.paraui-pagination>.pagination-content>.left-page>div:last-child,.paraui-pagination>.pagination-content>.right-page>div:last-child{margin-right:0}.paraui-pagination>.pagination-content>.left-page>div:hover,.paraui-pagination>.pagination-content>.right-page>div:hover{background-color:rgba(171,176,185,0.121569)}.paraui-pagination>.pagination-content>.left-page>div:hover>svg,.paraui-pagination>.pagination-content>.right-page>div:hover>svg{color:#3666d6}.paraui-pagination>.pagination-content>.left-page>div>svg,.paraui-pagination>.pagination-content>.right-page>div>svg{font-size:16px;position:relative;top:2px;left:2px;color:rgba(46,55,67,0.701961)}.paraui-pagination>.pagination-content>.left-page{margin-right:8px}.paraui-pagination>.pagination-content>.rc-pagination{height:100%;display:inline-block;box-shadow:none}.paraui-pagination>.pagination-content>.rc-pagination>li{min-width:20px;height:20px;line-height:20px;display:inline-block;text-align:center;vertical-align:middle;cursor:pointer;border-radius:2px;padding:0 5px;margin:0 3px}.paraui-pagination>.pagination-content>.rc-pagination>li:first-child,.paraui-pagination>.pagination-content>.rc-pagination>li:last-child{display:none}.paraui-pagination>.pagination-content>.rc-pagination>li.rc-pagination-next{display:none}.paraui-pagination>.pagination-content>.rc-pagination>li:hover{background-color:rgba(171,176,185,0.121569);color:#3666d6}.paraui-pagination>.pagination-content>.rc-pagination>li.rc-pagination-item-active{background-color:rgba(171,176,185,0.121569);color:#3666d6}.paraui-pagination>.pagination-content>.right-page{margin-left:8px}.paraui-pagination>.skip-page-memo{margin-left:24px}.paraui-pagination>.skip-page-memo>span{margin-right:8px}.paraui-pagination>.skip-page-memo>.paraui-text-field{width:58px;padding-bottom:0}.paraui-pagination>.skip-page-memo>.paraui-text-field .right-icon{margin-right:8px}.paraui-pagination>.skip-page-memo>.paraui-text-field .text-field-content .text-field-content-within .text-field-content-within-input input{padding-left:8px;padding-right:4px}.paraui-pagination>.skip-page-memo>.paraui-text-field .text-field-content .text-field-content-within .text-field-content-within-input .text-field-label-placeholder{padding:0 8px}
|
|
12
|
+
|
package/Pagination/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@material-ui/core"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/DoubleLeft"),require("@para-ui/icons/DoubleRight"),require("@para-ui/icons/Down"),require("@para-ui/icons/Left"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/Right"),require("@para-ui/icons/Search"),require("para-lib"),require("rc-pagination"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core","@para-ui/icons/Check","@para-ui/icons/Close","@para-ui/icons/DoubleLeft","@para-ui/icons/DoubleRight","@para-ui/icons/Down","@para-ui/icons/Left","@para-ui/icons/LoadingF","@para-ui/icons/PreviewClose","@para-ui/icons/PreviewOpen","@para-ui/icons/Right","@para-ui/icons/Search","para-lib","rc-pagination","react"],t):"object"==typeof exports?exports.ParaUI=t(require("@material-ui/core"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/DoubleLeft"),require("@para-ui/icons/DoubleRight"),require("@para-ui/icons/Down"),require("@para-ui/icons/Left"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/Right"),require("@para-ui/icons/Search"),require("para-lib"),require("rc-pagination"),require("react")):e.ParaUI=t(e["@material-ui/core"],e["@para-ui/icons/Check"],e["@para-ui/icons/Close"],e["@para-ui/icons/DoubleLeft"],e["@para-ui/icons/DoubleRight"],e["@para-ui/icons/Down"],e["@para-ui/icons/Left"],e["@para-ui/icons/LoadingF"],e["@para-ui/icons/PreviewClose"],e["@para-ui/icons/PreviewOpen"],e["@para-ui/icons/Right"],e["@para-ui/icons/Search"],e["para-lib"],e["rc-pagination"],e.react)}(self,(function(e,t,n,i,o,r,s,a,l,c,u,d,f,v,p){return function(){"use strict";var m
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@material-ui/core"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/DoubleLeft"),require("@para-ui/icons/DoubleRight"),require("@para-ui/icons/Down"),require("@para-ui/icons/Left"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/Right"),require("@para-ui/icons/Search"),require("para-lib"),require("rc-pagination"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core","@para-ui/icons/Check","@para-ui/icons/Close","@para-ui/icons/DoubleLeft","@para-ui/icons/DoubleRight","@para-ui/icons/Down","@para-ui/icons/Left","@para-ui/icons/LoadingF","@para-ui/icons/PreviewClose","@para-ui/icons/PreviewOpen","@para-ui/icons/Right","@para-ui/icons/Search","para-lib","rc-pagination","react"],t):"object"==typeof exports?exports.ParaUI=t(require("@material-ui/core"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/DoubleLeft"),require("@para-ui/icons/DoubleRight"),require("@para-ui/icons/Down"),require("@para-ui/icons/Left"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/Right"),require("@para-ui/icons/Search"),require("para-lib"),require("rc-pagination"),require("react")):e.ParaUI=t(e["@material-ui/core"],e["@para-ui/icons/Check"],e["@para-ui/icons/Close"],e["@para-ui/icons/DoubleLeft"],e["@para-ui/icons/DoubleRight"],e["@para-ui/icons/Down"],e["@para-ui/icons/Left"],e["@para-ui/icons/LoadingF"],e["@para-ui/icons/PreviewClose"],e["@para-ui/icons/PreviewOpen"],e["@para-ui/icons/Right"],e["@para-ui/icons/Search"],e["para-lib"],e["rc-pagination"],e.react)}(self,(function(e,t,n,i,o,r,s,a,l,c,u,d,f,v,p){return function(){"use strict";var m={6010:function(e,t,n){function i(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=i(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=i(e))&&(o&&(o+=" "),o+=t);return o}n.d(t,{Z:function(){return o}})},7418:function(e){
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
6
|
*/
|
|
7
|
-
var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var s,a,l=o(e),c=1;c<arguments.length;c++){for(var u in s=Object(arguments[c]))n.call(s,u)&&(l[u]=s[u]);if(t){a=t(s);for(var d=0;d<a.length;d++)i.call(s,a[d])&&(l[a[d]]=s[a[d]])}}return l}},
|
|
7
|
+
var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var s,a,l=o(e),c=1;c<arguments.length;c++){for(var u in s=Object(arguments[c]))n.call(s,u)&&(l[u]=s[u]);if(t){a=t(s);for(var d=0;d<a.length;d++)i.call(s,a[d])&&(l[a[d]]=s[a[d]])}}return l}},5251:function(e,t,n){
|
|
8
8
|
/** @license React v17.0.2
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
10
10
|
*
|
|
@@ -13,4 +13,4 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.pr
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
n(4126);var i=n(9297),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;o=r("react.element"),t.Fragment=r("react.fragment")}var s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var i,r={},c=null,u=null;for(i in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,i)&&!l.hasOwnProperty(i)&&(r[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===r[i]&&(r[i]=t[i]);return{$$typeof:o,type:e,key:c,ref:u,props:r,_owner:s.current}}t.jsx=c,t.jsxs=c},7712:function(e,t,n){e.exports=n(9524)},3094:function(e,t,n){var i=n(7712),o=n(9297),r=n(6885),s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};t.default=function(e){var t=e.children,n=e.placement,a=void 0===n?"bottom-start":n,l=e.tips,c=void 0===l?"":l,u=e.className,d=void 0===u?"":u,f=(0,o.useRef)(),v=(0,o.useState)(""),p=v[0],m=v[1];(0,o.useEffect)((function(){m(c)}),[c]);var h;return(0,i.jsx)("div",s({ref:f,className:(h="paraui-auto-tips",d&&(h+=" "+d),h),onMouseOver:function(e){f.current&&f.current.scrollWidth>f.current.offsetWidth?m(c||f.current.innerText):m("")}},{children:(0,i.jsx)(r.default,s({title:p,placement:a},{children:(0,i.jsx)("div",s({className:"auto-tips-content"},{children:t}),void 0)}),void 0)}),void 0)}},9011:function(e,t,n){var i=n(7712),o=n(9297),r=n(1102),s=n.n(r),a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};t.default=function(e){var t=e.className,n=e.style,r=e.opacity,l=void 0===r?.7:r,c=(0,o.useRef)(null);(0,o.useEffect)((function(){c&&c.current&&c.current.parentNode&&((getComputedStyle(c.current.parentNode)||{}).position||(c.current.parentNode.style.position="relative"))}),[]);var u;return(0,i.jsxs)("div",a({className:(u="paraui-loading",t&&(u+=" "+t),u),style:n,ref:c},{children:[(0,i.jsx)("div",a({className:"paraui-loading-box"},{children:(0,i.jsx)(s(),{},void 0)}),void 0),(0,i.jsx)("div",{className:"paraui-loading-mask",style:{opacity:l}},void 0)]}),void 0)}},4905:function(e,t,n){n.r(t),n.d(t,{Pagination:function(){return g}});var i=n(7712),o=n(9297),r=n(3780),s=n.n(r),a=n(7428),l=n.n(a),c=n(934),u=n.n(c),d=n(1127),f=n.n(d),v=n(6288),p=n.n(v),m=n(370),h=n(3672),x=function(){return x=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},x.apply(this,arguments)},g=function(e){var t=e.className,n=e.type,r=void 0===n?"simple":n,a=e.total,c=void 0===a?0:a,d=e.rowsPerPage,v=void 0===d?[10,20,30]:d,g=e.currentRowsPerPage,y=void 0===g?10:g,j=e.page,b=void 0===j?1:j,w=e.skipFunc,N=e.changePage,S=e.changeRowsPerPage,k=(0,o.useState)(y),C=k[0],O=k[1],E=(0,o.useState)(b),q=E[0],P=E[1],L=(0,o.useState)(),D=L[0],M=L[1],T=(0,o.useState)(),F=T[0],I=T[1],R=(0,o.useState)([]),_=R[0],U=R[1];(0,o.useEffect)((function(){y!==C&&O(y)}),[y]),(0,o.useEffect)((function(){b!==q&&P(b)}),[b]),(0,o.useEffect)((function(){var e=Number(D);q>e&&e!==q&&P(e)}),[q,D]),(0,o.useEffect)((function(){var e=Math.ceil(c/C);M(e||1)}),[C,c]),(0,o.useEffect)((function(){for(var e=[],t=0,n=v.length;t<n;t++){var i=v[t],o={label:i.toString(),value:i};e.push(o)}U(e)}),[e.rowsPerPage]);var A,z=function(e){e!==C&&(O(e),S&&S(e))},K=function(e){return function(t){var n=q;switch(e){case"first":if(1===q)return;n=1;break;case"prev":if(1===q)return;n--;break;case"last":if(q===D)return;n=D;break;case"next":if(q===D)return;n++;break;case"pagination":n=t}void 0!==n&&P(n),N&&N(n)}},B=function(e){-1!==["E","e",".","-"].indexOf(e.key)&&e.preventDefault()},V=function(e){if(13===e.keyCode){var t=parseInt(F&&F.toString()||"0");t<=0&&I(t=1),t>Number(D)&&(t=Number(D),I(t)),w&&w(t,F),P(t),N&&N(t)}},H=function(e){I(e.target.value)},W=(0,o.useMemo)((function(){return(0,i.jsxs)("div",x({className:"total-num"},{children:["共",c,"条"]}),void 0)}),[c]),J=(0,o.useMemo)((function(){return(0,i.jsxs)("div",x({className:"page-line-memo"},{children:[(0,i.jsx)("span",{children:"每页行数"},void 0),(0,i.jsx)(m.default,{size:"medium",value:C,list:_,onChange:z},void 0)]}),void 0)}),[_,C]),Z=(0,o.useMemo)((function(){return(0,i.jsxs)("div",x({className:"current-page"},{children:["当前第",(0,i.jsx)("span",x({className:"current-page-num"},{children:q}),void 0),(0,i.jsx)("span",x({className:"current-page-sign"},{children:"/"}),void 0),(0,i.jsx)("span",x({className:"current-page-last"},{children:D}),void 0),"页"]}),void 0)}),[q,D]),$=(0,o.useMemo)((function(){return(0,i.jsxs)("div",x({className:"pagination-content"},{children:[(0,i.jsxs)("div",x({className:"left-page"},{children:[(0,i.jsx)("div",x({onClick:K("first"),className:1===q?"disabled-btn":""},{children:(0,i.jsx)(l(),{},void 0)}),void 0),(0,i.jsx)("div",x({onClick:K("prev"),className:1===q?"disabled-btn":""},{children:(0,i.jsx)(f(),{},void 0)}),void 0)]}),void 0),"complex"===r&&(0,i.jsx)(s(),{current:q,pageSize:C,total:c,jumpPrevIcon:"...",jumpNextIcon:"...",onChange:K("pagination"),showTitle:!1},void 0),(0,i.jsxs)("div",x({className:"right-page"},{children:[(0,i.jsx)("div",x({onClick:K("next"),className:q===D?"disabled-btn":""},{children:(0,i.jsx)(p(),{},void 0)}),void 0),(0,i.jsx)("div",x({onClick:K("last"),className:q===D?"disabled-btn":""},{children:(0,i.jsx)(u(),{},void 0)}),void 0)]}),void 0)]}),void 0)}),[c,q,D,C,r]),Y=(0,o.useMemo)((function(){return(0,i.jsxs)("div",x({className:"skip-page-memo"},{children:[(0,i.jsx)("span",{children:"跳转到"},void 0),(0,i.jsx)(h.default,{size:"medium",type:"number",value:F||"",onChange:H,rightIcon:"页",onKeyDown:B,onKeyUp:V},void 0)]}),void 0)}),[F,D]);return(0,i.jsxs)("div",x({className:(A="paraui-pagination",t&&(A+=" "+t),A)},{children:["complex"===r&&W,Z,J,$,"complex"===r&&Y]}),void 0)};t.default=g},370:function(e,t,n){var i=n(7712),o=n(9297),r=n(1731),s=n(6028),a=n.n(s),l=n(4115),c=n.n(l),u=n(6110),d=n.n(u),f=n(19),v=n.n(f),p=n(3094),m=n(3475),h=function(){return h=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},h.apply(this,arguments)},x=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};t.default=function(e){var t=e.className,n=e.size,s=void 0===n?"large":n,l=e.labelMode,u=void 0===l?"outside":l,f=e.placeholder,g=void 0===f?"":f,y=e.searchPlaceholder,j=void 0===y?"请输入搜索名":y,b=e.label,w=void 0===b?"":b,N=e.disabled,S=void 0!==N&&N,k=e.multiple,C=void 0!==k&&k,O=e.required,E=void 0!==O&&O,q=e.labelSign,P=e.error,L=void 0!==P&&P,D=e.helperText,M=void 0===D?"":D,T=e.list,F=e.showName,I=void 0===F?"label":F,R=e.showValue,_=void 0===R?"value":R,U=e.childrenName,A=void 0===U?"children":U,z=e.value,K=e.onChange,B=e.overLine,V=void 0!==B&&B,H=e.search,W=void 0!==H&&H,J=e.searchModel,Z=void 0===J?"inside":J,$=e.selectPopoverClassName,Y=e.morePopoverClassName,G=e.onEnter,Q=(0,o.useRef)(null),X=(0,o.useState)("select-"+(0,m.UUID)())[0],ee=(0,o.useState)("select-popover-"+(0,m.UUID)())[0],te=(0,o.useState)(!1),ne=te[0],ie=te[1],oe=(0,o.useState)(!1),re=oe[0],se=oe[1],ae=(0,o.useState)([]),le=ae[0],ce=ae[1],ue=(0,o.useState)([]),de=ue[0],fe=ue[1],ve=(0,o.useState)({}),pe=ve[0],me=ve[1],he=(0,o.useState)(null),xe=he[0],ge=he[1],ye=(0,o.useState)({})[0],je=(0,o.useState)(!1),be=je[0],we=je[1],Ne=(0,o.useState)(""),Se=Ne[0],ke=Ne[1],Ce=(0,o.useState)(!1),Oe=Ce[0],Ee=Ce[1],qe=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&(e.multiple?ce((0,m.DeepClone)(e.defaultValue||[])):ce(""===e.defaultValue?[]:[e.defaultValue]))}),[]),(0,o.useEffect)((function(){void 0!==z&&ce(C?(0,m.DeepClone)(z||[]):""===z?[]:[z])}),[z,C]),(0,o.useEffect)((function(){if(W&&"outside"===Z)return Ee(!!C);Ee(V)}),[V,W,Z,C]),(0,o.useEffect)((function(){for(var e={},t=0,n=T.length;t<n;t++){var i=T[t];if(i[A]&&i[A].length>0)for(var o=i[A],r=0,s=o.length;r<s;r++){var a=o[r];e[a[_]]=a}else e[i[_]]=i}me(e)}),[T]),(0,o.useEffect)((function(){C&&(Oe||ge(le.length))}),[Oe,C,le]),(0,o.useEffect)((function(){return Oe?ge(le.length):(setTimeout((function(){Fe(le.length)})),window.addEventListener("resize",Ie)),function(){window.removeEventListener("resize",Ie)}}),[le,Oe]),(0,o.useEffect)((function(){le&&le.length>0?se(!0):(se(!1),W&&"outside"===Z&&se(""!==Se))}),[W,Se,Z,le]),(0,o.useEffect)((function(){clearTimeout(ye.searchTimer),W&&""!==Se.trim()?ye.searchTimer=setTimeout((function(){for(var e=[],t=(0,m.DeepClone)(T),n=0,i=t.length;n<i;n++){var o=t[n];if(o[A]&&o[A].length>0){for(var r=o[A],s=[],a=0,l=r.length;a<l;a++){var c=r[a];Te(c)&&s.push(c)}s.length>0&&(o[A]=s,e.push(o))}else{Te(o)&&e.push(o)}}fe(e)}),100):fe((0,m.DeepClone)(T))}),[W,Se,T]),(0,o.useEffect)((function(){return ne?setTimeout((function(){Le(),window.addEventListener("click",Me),window.addEventListener("keydown",Je)})):(ke(""),window.removeEventListener("click",Me),window.removeEventListener("keydown",Je)),function(){window.removeEventListener("click",Me),window.removeEventListener("keydown",Je)}}),[ne]),(0,o.useEffect)((function(){Se&&ie(!0)}),[Se]),(0,o.useEffect)((function(){C&&"outside"===Z&&!0!==S&&Ve(Se)}),[Se,C,S,Z]);var Pe,Le=function(){var e=qe&&qe.current;e&&e.focus()},De=function(e,t){for(var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!n.call(e,t);)e=e.parentElement;return e},Me=function(e){De(e.target,"."+ee)||ie(!1)},Te=function(e){var t=!0,n=e[I];return n&&"string"==typeof n&&-1===n.indexOf(Se)&&(t=!1),t},Fe=function(e){if(null!==e&&0!==e){void 0===e&&(e=le.length);var t=document.querySelector("."+X+" > .select-content > .check-select-content");if(t)if(t.scrollHeight>t.clientHeight){var n=Number(e)-1;ge(n),Fe(n)}else le.length<=e&&Ae()}},Ie=function(){clearTimeout(ye.timer),ye.timer=setTimeout((function(){ge(le.length),Fe()}),100)},Re=function(){!0!==S&&ie(!0)},_e=function(){ie(!1)},Ue=function(e){we(!0),ie(!1),e.stopPropagation()},Ae=function(){we(!1)},ze=function(t,n){return function(i){var o=t[_];if("object"!=typeof S||-1===S.indexOf(o))if(C){var r=le.indexOf(o);-1!==r?le.splice(r,1):le.push(o),void 0===e.value&&ce(x([],le,!0)),K&&K(x([],le,!0),i),n&&G&&G(x([],le,!0)),Le()}else void 0===e.value&&ce([o]),K&&K(o,i),n&&G&&G(o),_e(),ke("")}},Ke=function(e,t){return function(n){var i;e||((i={})[_]=t,e=i),ze(e)(n),n.stopPropagation()}},Be=function(e){ke(e.target.value)},Ve=function(e){var t=qe&&qe.current;if(!t)return null;var n=window.getComputedStyle(t),i=n.fontFamily,o=function(e,t,n){var i=document.createElement("span");i.id="referenceSpan";var o={};o.width=i.offsetWidth,o.height=i.offsetHeight,i.style.visibility="hidden",i.style.fontSize=e,i.style.fontFamily=t,i.style.display="inline-block";var r=document.getElementById("referenceSpan");return r&&document.body.removeChild(r),document.body.appendChild(i),void 0!==i.textContent?i.textContent=n:i.innerText=n,o.width=parseFloat(window.getComputedStyle(i).width)-o.width,o.height=parseFloat(window.getComputedStyle(i).height)-o.height,document.body.removeChild(i),o}(n.fontSize,i,e),r=o.width;r<10&&(r=10),t.style.width=r+"px"},He=function(e){var t=e.selectDom,n=e.keyCode,i=e.currentKeydownDom,o=null,r="nextSibling",s=".select-popover-list > div",a=".select-popover-list-item";if(38===n&&(r="previousSibling",s=".select-popover-list > div:last-child",a=".select-popover-list-item:last-child"),i)if(o=i[r])-1!==o.className.indexOf("select-popover-list-group-label")&&((o=(o=i.parentNode)[r])||(o=t.querySelector(s)));else{var l=i.parentNode;l&&l.className&&-1!==l.className.indexOf("select-popover-list-group")&&(o=(o=i.parentNode)[r])||(o=t.querySelector(s))}else o=t.querySelector(s);if(o)if(-1!==o.className.indexOf("select-popover-list-group")){var c=o.querySelector(a);c&&(c.classList.add("select-popover-list-item-keydown"),We(c,t))}else o.classList.add("select-popover-list-item-keydown"),We(o,t)},We=function(e,t){clearTimeout(ye.scrollTimer);var n=t.clientHeight,i=e.offsetTop+e.clientHeight-n;ye.scroll=!0,t.scrollTop=i>0?i:0,ye.scrollTimer=setTimeout((function(){ye.scroll=!1}),100)},Je=function(e){var t=document.querySelector("."+ee+" .select-popover-list");if(t){var n=t.querySelector(".select-popover-list-item-select"),i=t.querySelector(".select-popover-list-item-hover"),o=t.querySelector(".select-popover-list-item-keydown"),r=n;if(i&&(r=i),13===e.keyCode){var s=o||i;if(s){var a=s.dataset.val;ze(pe[a],!0)({target:o})}else G&&G(z)}o&&(r=o,o.classList.remove("select-popover-list-item-keydown")),40===e.keyCode&&He({selectDom:t,keyCode:e.keyCode,currentKeydownDom:r}),38===e.keyCode&&He({selectDom:t,keyCode:e.keyCode,currentKeydownDom:r})}},Ze=function(e){if(!ye.scroll){var t=De(e.target,".select-popover-list-item");if(t){t.classList.add("select-popover-list-item-hover");var n=document.querySelector("."+ee).querySelector(".select-popover-list-item-keydown");n&&n.classList.remove("select-popover-list-item-keydown")}}},$e=function(e){var t=De(e.target,".select-popover-list-item");t&&t.classList.remove("select-popover-list-item-hover")},Ye=(0,o.useMemo)((function(){var e=Boolean(w||E||q);return(0,i.jsx)(i.Fragment,{children:"outside"===u&&e&&(0,i.jsxs)("label",h({className:"select-label"},{children:[w,E&&(0,i.jsx)("span",h({className:"select-required"},{children:"*"}),void 0),q&&(0,i.jsx)("span",{children:q},void 0)]}),void 0)},void 0)}),[u,w,q,E]),Ge=(0,o.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!re&&(0,i.jsx)("span",h({className:"select-label-placeholder"},{children:"outside"===u?g:(0,i.jsxs)(i.Fragment,{children:[w||g,E&&(0,i.jsx)("span",h({className:"select-required"},{children:"*"}),void 0),q&&(0,i.jsx)("span",{children:q},void 0)]},void 0)}),void 0)},void 0)}),[re,u,g,w,q,E]),Qe=(0,o.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!C&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",h({className:"radio-select-content"},{children:function(){if(""!==Se&&"outside"===Z)return null;var e=pe[le[0]]&&pe[le[0]][I]||le[0];return Oe?e:(0,i.jsx)(p.default,{children:e},void 0)}()}),void 0),W&&"outside"===Z&&!0!==S&&(0,i.jsx)("input",{className:"radio-search-outside",value:Se,onChange:Be,ref:qe},void 0)]},void 0)},void 0)}),[C,re,Oe,pe,le,I,W,Z,Se,S]),Xe=(0,o.useMemo)((function(){var e=function(e){return pe[le[e]]&&pe[le[e]][I]||le[e]};return(0,i.jsx)(i.Fragment,{children:C&&(0,i.jsxs)("div",h({className:"check-select-content"},{children:[le&&le.map((function(t,n){if(null!==xe&&xe<=n)return null;var o=!0;return(!0===S||"object"==typeof S&&-1!==S.indexOf(le[n]))&&(o=!1),(0,i.jsxs)("div",h({className:o?"check-select-content-item":"check-select-content-item check-select-content-item-noclose"},{children:[(0,i.jsx)("span",{children:e(n)},void 0),o&&(0,i.jsx)(v(),{onClick:Ke(pe[le[n]],le[n])},void 0)]}),n)})),function(){if(null!==xe&&le.length>xe)return(0,i.jsx)("div",h({className:"check-select-content-item check-select-content-item-more",onClick:Ue},{children:(0,i.jsxs)("span",{children:["+",le.length-xe]},void 0)}),void 0)}(),W&&"outside"===Z&&!0!==S&&(0,i.jsx)("input",{className:"check-search-outside",value:Se,onChange:Be,ref:qe},void 0)]}),void 0)},void 0)}),[C,re,le,xe,pe,S,K,Se,W,Z]),et=(0,o.useMemo)((function(){return(0,i.jsxs)("div",h({className:"select-content",onClick:Re,ref:Q},{children:[Ge,(0,i.jsx)("span",h({className:"select-svg"},{children:(0,i.jsx)(a(),{},void 0)}),void 0),Qe,Xe]}),void 0)}),[Q,re,u,g,w,q,E,Oe,pe,le,I,C,xe,S,K,Se,Z]),tt=(0,o.useMemo)((function(){return(0,i.jsx)("div",h({className:"select-popover-list"},{children:de&&de.length>0?(0,i.jsx)(i.Fragment,{children:de.map((function(e,t){if(e[A]&&e[A].length>0){var n=e[A];return(0,i.jsxs)("div",h({className:"select-popover-list-group"},{children:[(0,i.jsx)("span",h({className:"select-popover-list-group-label"},{children:e[I]||e[_]}),void 0),n.map((function(e,t){var n=e[_],o="select-popover-list-item";return-1!==le.indexOf(n)&&(o+=" select-popover-list-item-select"),"object"==typeof S&&-1!==S.indexOf(n)&&(o+=" select-popover-list-item-disabled"),(0,i.jsxs)("div",h({onClick:ze(e),className:o,onMouseEnter:Ze,onMouseLeave:$e,"data-val":n},{children:[(0,i.jsx)("span",h({className:"select-popover-list-item-label"},{children:(0,i.jsx)(p.default,{children:e[I]||e[_]},void 0)}),void 0),C&&(0,i.jsx)("span",h({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(d(),{},void 0)}),void 0)]}),t)}))]}),t)}var o=e[_],r="select-popover-list-item";return-1!==le.indexOf(o)&&(r+=" select-popover-list-item-select"),"object"==typeof S&&-1!==S.indexOf(o)&&(r+=" select-popover-list-item-disabled"),(0,i.jsxs)("div",h({onClick:ze(e),className:r,onMouseEnter:Ze,onMouseLeave:$e,"data-val":o},{children:[(0,i.jsx)("span",h({className:"select-popover-list-item-label"},{children:(0,i.jsx)(p.default,{children:e[I]||e[_]},void 0)}),void 0),C&&(0,i.jsx)("span",h({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(d(),{},void 0)}),void 0)]}),t)}))},void 0):(0,i.jsx)("div",h({className:"select-nodata"},{children:"暂无选项"}),void 0)}),void 0)}),[de,I,_,le,K,C]),nt=(0,o.useMemo)((function(){return(0,i.jsxs)("div",h({style:{width:(Q&&Q.current?Q.current.offsetWidth:0)+"px"},className:"select-popover-content "+ee},{children:[W&&"inside"===Z&&(0,i.jsxs)("div",h({className:"select-popover-search"},{children:[(0,i.jsx)("input",{placeholder:j,value:Se,onChange:Be,ref:qe},void 0),(0,i.jsx)(c(),{},void 0)]}),void 0),tt]}),void 0)}),[ne,Q,de,A,_,I,le,Se,W,ee,Z,C,j]),it=(0,o.useMemo)((function(){var e,t=function(e){return pe[le[e]]&&pe[le[e]][I]||le[e]};return(0,i.jsx)(r.Popover,h({open:be,anchorEl:Q&&Q.current,onClose:Ae,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},className:(e="paraui-select-more-popover",s&&(e+=" paraui-select-more-popover-"+s),Y&&(e+=" "+Y),e)},{children:(0,i.jsxs)("div",h({className:"select-more"},{children:[(0,i.jsxs)("div",h({className:"select-more-title"},{children:[(0,i.jsx)("span",{children:"已选中"},void 0),(0,i.jsxs)("span",{children:["(",le.length-Number(xe),")"]},void 0)]}),void 0),(0,i.jsx)("div",h({className:"select-more-content"},{children:le&&le.map((function(e,n){if(null!==xe&&xe>n)return null;var o=!0;return(!0===S||"object"==typeof S&&-1!==S.indexOf(le[n]))&&(o=!1),(0,i.jsxs)("div",h({className:"select-more-content-item"},{children:[(0,i.jsx)("span",{children:(0,i.jsx)(p.default,{children:t(n)},void 0)},void 0),o&&(0,i.jsx)(v(),{onClick:Ke(pe[le[n]],le[n])},void 0)]}),n)}))}),void 0)]}),void 0)}),void 0)}),[be,le,xe,pe,S,I,Y,s]);return(0,i.jsxs)("div",h({className:(Pe="paraui-select select",C&&!Oe&&(Pe+=" "+X),t&&(Pe+=" "+t),s&&(Pe+=" select-"+s),L&&(Pe+=" select-error"),!0===S&&(Pe+=" select-disabled"),ne&&(Pe+=" select-open"),C&&(Pe+=" select-multiple"),Oe&&(Pe+=" select-over-line"),Pe)},{children:[Ye,(0,i.jsx)(r.Tooltip,h({open:ne,title:nt,onClose:_e,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:function(){var e="paraui-select-popover";return s&&(e+=" paraui-select-popover-"+s),e+=C?" paraui-select-popover-multiple":" paraui-select-popover-radio",$&&(e+=" "+$),e}()},placement:"bottom-start"},{children:et}),void 0),M&&(0,i.jsx)("p",h({className:"select-error-text"},{children:M}),void 0),it]}),void 0)}},3672:function(e,t,n){var i=n(7712),o=n(9297),r=n(1731),s=n(3094),a=n(9011),l=n(8528),c=n.n(l),u=n(6570),d=n.n(u),f=n(3475),v=function(){return v=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)},p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};t.default=function(e){var t=e.className,n=e.size,l=void 0===n?"large":n,u=e.labelMode,m=void 0===u?"outside":u,h=e.placeholder,x=void 0===h?"":h,g=e.label,y=void 0===g?"":g,j=e.disabled,b=void 0!==j&&j,w=e.multiline,N=void 0!==w&&w,S=e.required,k=void 0!==S&&S,C=e.labelSign,O=e.rows,E=void 0===O?2:O,q=e.error,P=void 0!==q&&q,L=e.helperText,D=void 0===L?"":L,M=e.addonBefore,T=void 0===M?"":M,F=e.addonAfter,I=void 0===F?"":F,R=(e.defaultValue,e.value),_=e.autoFocus,U=void 0!==_&&_,A=e.type,z=void 0===A?"text":A,K=e.onClickIcon,B=e.rightIcon,V=e.showRightIcon,H=void 0===V||V,W=e.limitLength,J=e.fetchSuggestions,Z=e.selectPopoverClass,$=e.renderSelectItem,Y=e.showSelectName,G=void 0===Y?"value":Y,Q=e.onBlur,X=e.onFocus,ee=e.onChange,te=e.onKeydown,ne=e.onKeyUp,ie=e.onEnter,oe=e.onClickAddonBefore,re=e.onClickAddonAfter,se=e.onSelect,ae=p(e,["className","size","labelMode","placeholder","label","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect"]),le=(0,o.useState)("text-field-select-content-"+(0,f.UUID)())[0],ce=(0,o.useState)(!0),ue=ce[0],de=ce[1],fe=(0,o.useState)(""),ve=fe[0],pe=fe[1],me=(0,o.useState)(!1),he=me[0],xe=me[1],ge=(0,o.useState)("text"),ye=ge[0],je=ge[1],be=(0,o.useState)(!1),we=be[0],Ne=be[1],Se=(0,o.useState)(!1),ke=Se[0],Ce=Se[1],Oe=(0,o.useState)([]),Ee=Oe[0],qe=Oe[1],Pe=((0,o.useState)({isCompositions:!0})[0],(0,o.useRef)(null)),Le=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&(pe(e.defaultValue),Te(e.defaultValue))}),[]),(0,o.useEffect)((function(){z!==ye&&je(z)}),[z]),(0,o.useEffect)((function(){void 0!==R&&(pe(R),Te(R))}),[R]),(0,o.useEffect)((function(){de(""===ve||void 0===ve)}),[ve]),(0,o.useEffect)((function(){J&&Ne(he)}),[he,J]),(0,o.useEffect)((function(){return we?window.addEventListener("keydown",_e):window.removeEventListener("keydown",_e),function(){window.removeEventListener("keydown",_e)}}),[we]),(0,o.useEffect)((function(){if(!he&&ve){var t=Me(ve);if(t!==ve){var n={};n.target=Pe.current,n.target.value=t,e.onChange&&e.onChange(n)}}}),[ve,he]);var De,Me=function(t){var n=t;return e.limitLength&&t.toString().length>e.limitLength&&(n=n.toString().substr(0,e.limitLength)),n},Te=function(e){Pe&&Pe.current&&(Pe.current.value=e,Pe.current.setAttribute("value",e))},Fe=function(){b||(de(!1),(Pe&&Pe.current).focus())},Ie=function(e){var t=e.selectDom,n=e.keyCode,i=e.currentDom,o="nextSibling",r=".text-field-select-content-item";38===n&&(o="previousSibling",r=".text-field-select-content-item:last-child"),i?(i=i[o])||(i=t.querySelector(r)):i=t.querySelector(".text-field-select-content-item"),i&&(i.classList.add("text-field-select-content-item-keydown"),Re(i,t))},Re=function(e,t){var n=t.clientHeight,i=e.offsetTop+e.clientHeight-n;t.scrollTop=i>0?i:0},_e=function(e){var t=document.querySelector("."+le),n=null,i=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&i){var o=i.dataset.val;Je(JSON.parse(o))(e),(Pe&&Pe.current).blur()}i&&(n=i,i.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ie({selectDom:t,keyCode:e.keyCode,currentDom:n}),38===e.keyCode&&Ie({selectDom:t,keyCode:e.keyCode,currentDom:n})},Ue=function(e){xe(!1),""===e.target.value&&de(!0),Q&&Q(e)},Ae=function(e){Ce(!0),J&&J(e,(function(e){qe(e||[]),Ce(!1)}))},ze=function(e){xe(!0),X&&X(e),Ae(e.target.value)},Ke=function(t){var n=t.target.value;n&&de(!1),void 0===e.value&&(pe(n),Te(n)),ee&&ee(t),Ae(t.target.value)},Be=function(e){13===e.keyCode&&ie&&ie(e),te&&te(e)},Ve=function(e){ne&&ne(e)},He=function(e){"password"===z&&("text"===ye&&je("password"),"password"===ye&&je("text")),K&&K(e)},We=function(){Ne(!1)},Je=function(e){return function(t){se&&se(e)}},Ze=(0,o.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:void 0!==W&&(0,i.jsx)("span",v({className:"length-limit"},{children:(ve?ve.toString().length:0)+"/"+W}),void 0)},void 0)}),[W,ve]),$e=(0,o.useMemo)((function(){var e=B||("password"===z?"password"===ye?(0,i.jsx)(d(),{},void 0):(0,i.jsx)(c(),{},void 0):null);return(0,i.jsx)(i.Fragment,{children:H&&e&&(0,i.jsx)("span",v({className:"right-icon",onClick:He},{children:e}),void 0)},void 0)}),[H,B,z,ye]),Ye=(0,o.useMemo)((function(){return(0,i.jsxs)("div",v({className:"text-field-content-within",ref:Le},{children:[(0,i.jsxs)("div",v({className:"text-field-content-within-input"},{children:[N?(0,i.jsx)("textarea",v({ref:Pe,rows:E,onBlur:Ue,onFocus:ze,onChange:Ke,onKeyDown:Be,onKeyUp:Ve,disabled:b},ae),void 0):(0,i.jsx)("input",v({ref:Pe,type:ye,onBlur:Ue,onFocus:ze,onChange:Ke,onKeyDown:Be,onKeyUp:Ve,disabled:b},ae),void 0),ue&&!he&&(0,i.jsx)("span",v({className:"text-field-label-placeholder",onClick:Fe},{children:"outside"===m?x:(0,i.jsxs)(i.Fragment,{children:[y||x,k&&(0,i.jsx)("span",v({className:"text-field-required"},{children:"*"}),void 0),C&&(0,i.jsx)("span",{children:C},void 0)]},void 0)}),void 0)]}),void 0),Ze,$e]}),void 0)}),[ue,he,U,ye,ve,Ze,$e,m,x,y,b,N,E,ae,ee,J]),Ge=(0,o.useMemo)((function(){var e;return(0,i.jsxs)("div",v({className:(e="text-field-select-content",ke&&(e+=" text-field-select-content-loading"),le&&(e+=" "+le),e),style:{width:(Le&&Le.current?Le.current.offsetWidth:0)+"px"}},{children:[Ee&&Ee.map((function(e,t){return(0,i.jsx)("div",v({className:"text-field-select-content-item",onMouseDown:Je(e),"data-val":JSON.stringify(e)},{children:$?$(e):(0,i.jsx)(s.default,{children:e[G]},void 0)}),t)})),ke&&(0,i.jsx)(a.default,{},void 0)]}),void 0)}),[Le,we,Ee,$,G,se,ke,le]),Qe=(0,o.useMemo)((function(){return(0,i.jsx)(r.Tooltip,v({open:we,title:Ge,onClose:We,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:(e="paraui-text-field-select",l&&(e+=" paraui-text-field-select-"+l),Z&&(e+=" "+Z),e)}},{children:Ye}),void 0);var e}),[ue,he,U,ye,ve,Ze,$e,m,x,y,b,N,E,ae,ee,J,se,Le,we,Z,l]),Xe=(0,o.useMemo)((function(){var e=Boolean(k||C||y);return(0,i.jsx)(i.Fragment,{children:"outside"===m&&e&&(0,i.jsxs)("label",v({className:"text-field-label"},{children:[y,k&&(0,i.jsx)("span",v({className:"text-field-required"},{children:"*"}),void 0),C&&(0,i.jsx)("span",{children:C},void 0)]}),void 0)},void 0)}),[m,y,C,k]);return(0,i.jsxs)("div",v({className:(De="paraui-text-field",De+=" text-field",l&&!N&&(De+=" text-field-"+l),t&&(De+=" "+t),P&&(De+=" text-field-error"),he&&(De+=" text-field-focus"),b&&(De+=" text-field-disabled"),N&&(De+=" text-field-multiline"),e.limitLength&&ve&&ve.toString().length>e.limitLength&&(De+=" text-field-limit"),De)},{children:[Xe,(0,i.jsxs)("div",v({className:"text-field-content"},{children:[T&&(0,i.jsx)("div",v({className:"text-field-content-before",onClick:function(e){oe&&oe(e)}},{children:T}),void 0),J?Qe:Ye,I&&(0,i.jsx)("div",v({className:"text-field-content-after",onClick:function(e){re&&re(e)}},{children:I}),void 0)]}),void 0),D&&(0,i.jsx)("p",v({className:"text-field-error-text"},{children:D}),void 0)]}),void 0)}},6885:function(e,t,n){var i=n(7712),o=n(1731),r=n(4927),s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};t.default=function(e){var t,n=e.placement,a=void 0===n?"bottom":n,l=s(s({},e.classes),{popper:(0,r.Z)("paraui-tooltip",null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==a?void 0:a.includes("left"))||(null==a?void 0:a.includes("right")),"paraui-tooltip-top-bottom":(null==a?void 0:a.includes("top"))||(null==a?void 0:a.includes("bottom"))})});return(0,i.jsx)(o.Tooltip,s({},e,{classes:l}),void 0)}},1731:function(t){t.exports=e},6110:function(e){e.exports=t},19:function(e){e.exports=n},7428:function(e){e.exports=i},934:function(e){e.exports=o},6028:function(e){e.exports=r},1127:function(e){e.exports=s},1102:function(e){e.exports=a},6570:function(e){e.exports=l},8528:function(e){e.exports=c},6288:function(e){e.exports=u},4115:function(e){e.exports=d},3475:function(e){e.exports=f},3780:function(e){e.exports=v},9297:function(e){e.exports=p}},x={};function g(e){var t=x[e];if(void 0!==t)return t.exports;var n=x[e]={exports:{}};return h[e](n,n.exports,g),n.exports}g.m=h,m=[],g.O=function(e,t,n,i){if(!t){var o=1/0;for(a=0;a<m.length;a++){t=m[a][0],n=m[a][1],i=m[a][2];for(var r=!0,s=0;s<t.length;s++)(!1&i||o>=i)&&Object.keys(g.O).every((function(e){return g.O[e](t[s])}))?t.splice(s--,1):(r=!1,i<o&&(o=i));r&&(m.splice(a--,1),e=n())}return e}i=i||0;for(var a=m.length;a>0&&m[a-1][2]>i;a--)m[a]=m[a-1];m[a]=[t,n,i]},g.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return g.d(t,{a:t}),t},g.d=function(e,t){for(var n in t)g.o(t,n)&&!g.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},g.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},g.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={8910:0,1465:0,5717:0,8306:0,2996:0,2823:0,9296:0};g.O.j=function(t){return 0===e[t]};var t=function(t,n){var i,o,r=n[0],s=n[1],a=n[2],l=0;for(i in s)g.o(s,i)&&(g.m[i]=s[i]);if(a)var c=a(g);for(t&&t(n);l<r.length;l++)o=r[l],g.o(e,o)&&e[o]&&e[o][0](),e[r[l]]=0;return g.O(c)},n=self.webpackChunkParaUI=self.webpackChunkParaUI||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var y=g.O(void 0,[9296],(function(){return g(4905)}));return y=g.O(y)}()}));
|
|
16
|
+
n(7418);var i=n(9297),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;o=r("react.element"),t.Fragment=r("react.fragment")}var s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var i,r={},c=null,u=null;for(i in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,i)&&!l.hasOwnProperty(i)&&(r[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===r[i]&&(r[i]=t[i]);return{$$typeof:o,type:e,key:c,ref:u,props:r,_owner:s.current}}t.jsx=c,t.jsxs=c},5893:function(e,t,n){e.exports=n(5251)},7839:function(e,t,n){var i=n(5893),o=n(9297),r=n(7371),s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};t.default=function(e){var t=e.children,n=e.placement,a=void 0===n?"bottom-start":n,l=e.tips,c=void 0===l?"":l,u=e.className,d=void 0===u?"":u,f=(0,o.useRef)(),v=(0,o.useState)(""),p=v[0],m=v[1];(0,o.useEffect)((function(){m(c)}),[c]);var h;return(0,i.jsx)("div",s({ref:f,className:(h="paraui-auto-tips",d&&(h+=" "+d),h),onMouseOver:function(e){f.current&&f.current.scrollWidth>f.current.offsetWidth?m(c||f.current.innerText):m("")}},{children:(0,i.jsx)(r.default,s({title:p,placement:a},{children:(0,i.jsx)("div",s({className:"auto-tips-content"},{children:t}),void 0)}),void 0)}),void 0)}},7502:function(e,t,n){var i=n(5893),o=n(9297),r=n(1102),s=n.n(r),a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};t.default=function(e){var t=e.className,n=e.style,r=e.opacity,l=void 0===r?.7:r,c=(0,o.useRef)(null);(0,o.useEffect)((function(){c&&c.current&&c.current.parentNode&&((getComputedStyle(c.current.parentNode)||{}).position||(c.current.parentNode.style.position="relative"))}),[]);var u;return(0,i.jsxs)("div",a({className:(u="paraui-loading",t&&(u+=" "+t),u),style:n,ref:c},{children:[(0,i.jsx)("div",a({className:"paraui-loading-box"},{children:(0,i.jsx)(s(),{},void 0)}),void 0),(0,i.jsx)("div",{className:"paraui-loading-mask",style:{opacity:l}},void 0)]}),void 0)}},7734:function(e,t,n){var i=n(5893),o=n(9297),r=n(1731),s=n(6028),a=n.n(s),l=n(4115),c=n.n(l),u=n(6110),d=n.n(u),f=n(19),v=n.n(f),p=n(7839),m=n(3475),h=function(){return h=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},h.apply(this,arguments)},x=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};t.default=function(e){var t=e.className,n=e.size,s=void 0===n?"large":n,l=e.labelMode,u=void 0===l?"outside":l,f=e.placeholder,g=void 0===f?"":f,y=e.searchPlaceholder,j=void 0===y?"请输入搜索名":y,b=e.label,w=void 0===b?"":b,N=e.disabled,S=void 0!==N&&N,C=e.multiple,k=void 0!==C&&C,O=e.required,E=void 0!==O&&O,q=e.labelSign,L=e.error,P=void 0!==L&&L,D=e.helperText,M=void 0===D?"":D,T=e.list,F=e.showName,I=void 0===F?"label":F,R=e.showValue,_=void 0===R?"value":R,U=e.childrenName,A=void 0===U?"children":U,z=e.value,K=e.onChange,B=e.overLine,V=void 0!==B&&B,H=e.search,W=void 0!==H&&H,J=e.searchModel,Z=void 0===J?"inside":J,$=e.selectPopoverClassName,Y=e.morePopoverClassName,G=e.onEnter,Q=(0,o.useRef)(null),X=(0,o.useState)("select-"+(0,m.UUID)())[0],ee=(0,o.useState)("select-popover-"+(0,m.UUID)())[0],te=(0,o.useState)(!1),ne=te[0],ie=te[1],oe=(0,o.useState)(!1),re=oe[0],se=oe[1],ae=(0,o.useState)([]),le=ae[0],ce=ae[1],ue=(0,o.useState)([]),de=ue[0],fe=ue[1],ve=(0,o.useState)({}),pe=ve[0],me=ve[1],he=(0,o.useState)(null),xe=he[0],ge=he[1],ye=(0,o.useState)({})[0],je=(0,o.useState)(!1),be=je[0],we=je[1],Ne=(0,o.useState)(""),Se=Ne[0],Ce=Ne[1],ke=(0,o.useState)(!1),Oe=ke[0],Ee=ke[1],qe=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&(e.multiple?ce((0,m.DeepClone)(e.defaultValue||[])):ce(""===e.defaultValue?[]:[e.defaultValue]))}),[]),(0,o.useEffect)((function(){void 0!==z&&ce(k?(0,m.DeepClone)(z||[]):""===z?[]:[z])}),[z,k]),(0,o.useEffect)((function(){if(W&&"outside"===Z)return Ee(!!k);Ee(V)}),[V,W,Z,k]),(0,o.useEffect)((function(){for(var e={},t=0,n=T.length;t<n;t++){var i=T[t];if(i[A]&&i[A].length>0)for(var o=i[A],r=0,s=o.length;r<s;r++){var a=o[r];e[a[_]]=a}else e[i[_]]=i}me(e)}),[T]),(0,o.useEffect)((function(){k&&(Oe||ge(le.length))}),[Oe,k,le]),(0,o.useEffect)((function(){return Oe?ge(le.length):(setTimeout((function(){Fe(le.length)})),window.addEventListener("resize",Ie)),function(){window.removeEventListener("resize",Ie)}}),[le,Oe]),(0,o.useEffect)((function(){le&&le.length>0?se(!0):(se(!1),W&&"outside"===Z&&se(""!==Se))}),[W,Se,Z,le]),(0,o.useEffect)((function(){clearTimeout(ye.searchTimer),W&&""!==Se.trim()?ye.searchTimer=setTimeout((function(){for(var e=[],t=(0,m.DeepClone)(T),n=0,i=t.length;n<i;n++){var o=t[n];if(o[A]&&o[A].length>0){for(var r=o[A],s=[],a=0,l=r.length;a<l;a++){var c=r[a];Te(c)&&s.push(c)}s.length>0&&(o[A]=s,e.push(o))}else{Te(o)&&e.push(o)}}fe(e)}),100):fe((0,m.DeepClone)(T))}),[W,Se,T]),(0,o.useEffect)((function(){return ne?setTimeout((function(){Pe(),window.addEventListener("click",Me),window.addEventListener("keydown",Je)})):(Ce(""),window.removeEventListener("click",Me),window.removeEventListener("keydown",Je)),function(){window.removeEventListener("click",Me),window.removeEventListener("keydown",Je)}}),[ne]),(0,o.useEffect)((function(){Se&&ie(!0)}),[Se]),(0,o.useEffect)((function(){k&&"outside"===Z&&!0!==S&&Ve(Se)}),[Se,k,S,Z]);var Le,Pe=function(){var e=qe&&qe.current;e&&e.focus()},De=function(e,t){for(var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!n.call(e,t);)e=e.parentElement;return e},Me=function(e){De(e.target,"."+ee)||ie(!1)},Te=function(e){var t=!0,n=e[I];return n&&"string"==typeof n&&-1===n.indexOf(Se)&&(t=!1),t},Fe=function(e){if(null!==e&&0!==e){void 0===e&&(e=le.length);var t=document.querySelector("."+X+" > .select-content > .check-select-content");if(t)if(t.scrollHeight>t.clientHeight){var n=Number(e)-1;ge(n),Fe(n)}else le.length<=e&&Ae()}},Ie=function(){clearTimeout(ye.timer),ye.timer=setTimeout((function(){ge(le.length),Fe()}),100)},Re=function(){!0!==S&&ie(!0)},_e=function(){ie(!1)},Ue=function(e){we(!0),ie(!1),e.stopPropagation()},Ae=function(){we(!1)},ze=function(t,n){return function(i){var o=t[_];if("object"!=typeof S||-1===S.indexOf(o))if(k){var r=le.indexOf(o);-1!==r?le.splice(r,1):le.push(o),void 0===e.value&&ce(x([],le,!0)),K&&K(x([],le,!0),i),n&&G&&G(x([],le,!0)),Pe()}else void 0===e.value&&ce([o]),K&&K(o,i),n&&G&&G(o),_e(),Ce("")}},Ke=function(e,t){return function(n){var i;e||((i={})[_]=t,e=i),ze(e)(n),n.stopPropagation()}},Be=function(e){Ce(e.target.value)},Ve=function(e){var t=qe&&qe.current;if(!t)return null;var n=window.getComputedStyle(t),i=n.fontFamily,o=function(e,t,n){var i=document.createElement("span");i.id="referenceSpan";var o={};o.width=i.offsetWidth,o.height=i.offsetHeight,i.style.visibility="hidden",i.style.fontSize=e,i.style.fontFamily=t,i.style.display="inline-block";var r=document.getElementById("referenceSpan");return r&&document.body.removeChild(r),document.body.appendChild(i),void 0!==i.textContent?i.textContent=n:i.innerText=n,o.width=parseFloat(window.getComputedStyle(i).width)-o.width,o.height=parseFloat(window.getComputedStyle(i).height)-o.height,document.body.removeChild(i),o}(n.fontSize,i,e),r=o.width;r<10&&(r=10),t.style.width=r+"px"},He=function(e){var t=e.selectDom,n=e.keyCode,i=e.currentKeydownDom,o=null,r="nextSibling",s=".select-popover-list > div",a=".select-popover-list-item";if(38===n&&(r="previousSibling",s=".select-popover-list > div:last-child",a=".select-popover-list-item:last-child"),i)if(o=i[r])-1!==o.className.indexOf("select-popover-list-group-label")&&((o=(o=i.parentNode)[r])||(o=t.querySelector(s)));else{var l=i.parentNode;l&&l.className&&-1!==l.className.indexOf("select-popover-list-group")&&(o=(o=i.parentNode)[r])||(o=t.querySelector(s))}else o=t.querySelector(s);if(o)if(-1!==o.className.indexOf("select-popover-list-group")){var c=o.querySelector(a);c&&(c.classList.add("select-popover-list-item-keydown"),We(c,t))}else o.classList.add("select-popover-list-item-keydown"),We(o,t)},We=function(e,t){clearTimeout(ye.scrollTimer);var n=t.clientHeight,i=e.offsetTop+e.clientHeight-n;ye.scroll=!0,t.scrollTop=i>0?i:0,ye.scrollTimer=setTimeout((function(){ye.scroll=!1}),100)},Je=function(e){var t=document.querySelector("."+ee+" .select-popover-list");if(t){var n=t.querySelector(".select-popover-list-item-select"),i=t.querySelector(".select-popover-list-item-hover"),o=t.querySelector(".select-popover-list-item-keydown"),r=n;if(i&&(r=i),13===e.keyCode){var s=o||i;if(s){var a=s.dataset.val;ze(pe[a],!0)({target:o})}else G&&G(z)}o&&(r=o,o.classList.remove("select-popover-list-item-keydown")),40===e.keyCode&&He({selectDom:t,keyCode:e.keyCode,currentKeydownDom:r}),38===e.keyCode&&He({selectDom:t,keyCode:e.keyCode,currentKeydownDom:r})}},Ze=function(e){if(!ye.scroll){var t=De(e.target,".select-popover-list-item");if(t){t.classList.add("select-popover-list-item-hover");var n=document.querySelector("."+ee).querySelector(".select-popover-list-item-keydown");n&&n.classList.remove("select-popover-list-item-keydown")}}},$e=function(e){var t=De(e.target,".select-popover-list-item");t&&t.classList.remove("select-popover-list-item-hover")},Ye=(0,o.useMemo)((function(){var e=Boolean(w||E||q);return(0,i.jsx)(i.Fragment,{children:"outside"===u&&e&&(0,i.jsxs)("label",h({className:"select-label"},{children:[w,E&&(0,i.jsx)("span",h({className:"select-required"},{children:"*"}),void 0),q&&(0,i.jsx)("span",{children:q},void 0)]}),void 0)},void 0)}),[u,w,q,E]),Ge=(0,o.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!re&&(0,i.jsx)("span",h({className:"select-label-placeholder"},{children:"outside"===u?g:(0,i.jsxs)(i.Fragment,{children:[w||g,E&&(0,i.jsx)("span",h({className:"select-required"},{children:"*"}),void 0),q&&(0,i.jsx)("span",{children:q},void 0)]},void 0)}),void 0)},void 0)}),[re,u,g,w,q,E]),Qe=(0,o.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!k&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",h({className:"radio-select-content"},{children:function(){if(""!==Se&&"outside"===Z)return null;var e=pe[le[0]]&&pe[le[0]][I]||le[0];return Oe?e:(0,i.jsx)(p.default,{children:e},void 0)}()}),void 0),W&&"outside"===Z&&!0!==S&&(0,i.jsx)("input",{className:"radio-search-outside",value:Se,onChange:Be,ref:qe},void 0)]},void 0)},void 0)}),[k,re,Oe,pe,le,I,W,Z,Se,S]),Xe=(0,o.useMemo)((function(){var e=function(e){return pe[le[e]]&&pe[le[e]][I]||le[e]};return(0,i.jsx)(i.Fragment,{children:k&&(0,i.jsxs)("div",h({className:"check-select-content"},{children:[le&&le.map((function(t,n){if(null!==xe&&xe<=n)return null;var o=!0;return(!0===S||"object"==typeof S&&-1!==S.indexOf(le[n]))&&(o=!1),(0,i.jsxs)("div",h({className:o?"check-select-content-item":"check-select-content-item check-select-content-item-noclose"},{children:[(0,i.jsx)("span",{children:e(n)},void 0),o&&(0,i.jsx)(v(),{onClick:Ke(pe[le[n]],le[n])},void 0)]}),n)})),function(){if(null!==xe&&le.length>xe)return(0,i.jsx)("div",h({className:"check-select-content-item check-select-content-item-more",onClick:Ue},{children:(0,i.jsxs)("span",{children:["+",le.length-xe]},void 0)}),void 0)}(),W&&"outside"===Z&&!0!==S&&(0,i.jsx)("input",{className:"check-search-outside",value:Se,onChange:Be,ref:qe},void 0)]}),void 0)},void 0)}),[k,re,le,xe,pe,S,K,Se,W,Z]),et=(0,o.useMemo)((function(){return(0,i.jsxs)("div",h({className:"select-content",onClick:Re,ref:Q},{children:[Ge,(0,i.jsx)("span",h({className:"select-svg"},{children:(0,i.jsx)(a(),{},void 0)}),void 0),Qe,Xe]}),void 0)}),[Q,re,u,g,w,q,E,Oe,pe,le,I,k,xe,S,K,Se,Z]),tt=(0,o.useMemo)((function(){return(0,i.jsx)("div",h({className:"select-popover-list"},{children:de&&de.length>0?(0,i.jsx)(i.Fragment,{children:de.map((function(e,t){if(e[A]&&e[A].length>0){var n=e[A];return(0,i.jsxs)("div",h({className:"select-popover-list-group"},{children:[(0,i.jsx)("span",h({className:"select-popover-list-group-label"},{children:e[I]||e[_]}),void 0),n.map((function(e,t){var n=e[_],o="select-popover-list-item";return-1!==le.indexOf(n)&&(o+=" select-popover-list-item-select"),"object"==typeof S&&-1!==S.indexOf(n)&&(o+=" select-popover-list-item-disabled"),(0,i.jsxs)("div",h({onClick:ze(e),className:o,onMouseEnter:Ze,onMouseLeave:$e,"data-val":n},{children:[(0,i.jsx)("span",h({className:"select-popover-list-item-label"},{children:(0,i.jsx)(p.default,{children:e[I]||e[_]},void 0)}),void 0),k&&(0,i.jsx)("span",h({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(d(),{},void 0)}),void 0)]}),t)}))]}),t)}var o=e[_],r="select-popover-list-item";return-1!==le.indexOf(o)&&(r+=" select-popover-list-item-select"),"object"==typeof S&&-1!==S.indexOf(o)&&(r+=" select-popover-list-item-disabled"),(0,i.jsxs)("div",h({onClick:ze(e),className:r,onMouseEnter:Ze,onMouseLeave:$e,"data-val":o},{children:[(0,i.jsx)("span",h({className:"select-popover-list-item-label"},{children:(0,i.jsx)(p.default,{children:e[I]||e[_]},void 0)}),void 0),k&&(0,i.jsx)("span",h({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(d(),{},void 0)}),void 0)]}),t)}))},void 0):(0,i.jsx)("div",h({className:"select-nodata"},{children:"暂无选项"}),void 0)}),void 0)}),[de,I,_,le,K,k]),nt=(0,o.useMemo)((function(){return(0,i.jsxs)("div",h({style:{width:(Q&&Q.current?Q.current.offsetWidth:0)+"px"},className:"select-popover-content "+ee},{children:[W&&"inside"===Z&&(0,i.jsxs)("div",h({className:"select-popover-search"},{children:[(0,i.jsx)("input",{placeholder:j,value:Se,onChange:Be,ref:qe},void 0),(0,i.jsx)(c(),{},void 0)]}),void 0),tt]}),void 0)}),[ne,Q,de,A,_,I,le,Se,W,ee,Z,k,j]),it=(0,o.useMemo)((function(){var e,t=function(e){return pe[le[e]]&&pe[le[e]][I]||le[e]};return(0,i.jsx)(r.Popover,h({open:be,anchorEl:Q&&Q.current,onClose:Ae,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},className:(e="paraui-select-more-popover",s&&(e+=" paraui-select-more-popover-"+s),Y&&(e+=" "+Y),e)},{children:(0,i.jsxs)("div",h({className:"select-more"},{children:[(0,i.jsxs)("div",h({className:"select-more-title"},{children:[(0,i.jsx)("span",{children:"已选中"},void 0),(0,i.jsxs)("span",{children:["(",le.length-Number(xe),")"]},void 0)]}),void 0),(0,i.jsx)("div",h({className:"select-more-content"},{children:le&&le.map((function(e,n){if(null!==xe&&xe>n)return null;var o=!0;return(!0===S||"object"==typeof S&&-1!==S.indexOf(le[n]))&&(o=!1),(0,i.jsxs)("div",h({className:"select-more-content-item"},{children:[(0,i.jsx)("span",{children:(0,i.jsx)(p.default,{children:t(n)},void 0)},void 0),o&&(0,i.jsx)(v(),{onClick:Ke(pe[le[n]],le[n])},void 0)]}),n)}))}),void 0)]}),void 0)}),void 0)}),[be,le,xe,pe,S,I,Y,s]);return(0,i.jsxs)("div",h({className:(Le="paraui-select select",k&&!Oe&&(Le+=" "+X),t&&(Le+=" "+t),s&&(Le+=" select-"+s),P&&(Le+=" select-error"),!0===S&&(Le+=" select-disabled"),ne&&(Le+=" select-open"),k&&(Le+=" select-multiple"),Oe&&(Le+=" select-over-line"),Le)},{children:[Ye,(0,i.jsx)(r.Tooltip,h({open:ne,title:nt,onClose:_e,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:function(){var e="paraui-select-popover";return s&&(e+=" paraui-select-popover-"+s),e+=k?" paraui-select-popover-multiple":" paraui-select-popover-radio",$&&(e+=" "+$),e}()},placement:"bottom-start"},{children:et}),void 0),M&&(0,i.jsx)("p",h({className:"select-error-text"},{children:M}),void 0),it]}),void 0)}},7320:function(e,t,n){var i=n(5893),o=n(9297),r=n(1731),s=n(7839),a=n(7502),l=n(8528),c=n.n(l),u=n(6570),d=n.n(u),f=n(3475),v=function(){return v=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)},p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};t.default=function(e){var t=e.className,n=e.size,l=void 0===n?"large":n,u=e.labelMode,m=void 0===u?"outside":u,h=e.placeholder,x=void 0===h?"":h,g=e.label,y=void 0===g?"":g,j=e.disabled,b=void 0!==j&&j,w=e.multiline,N=void 0!==w&&w,S=e.required,C=void 0!==S&&S,k=e.labelSign,O=e.rows,E=void 0===O?2:O,q=e.error,L=void 0!==q&&q,P=e.helperText,D=void 0===P?"":P,M=e.addonBefore,T=void 0===M?"":M,F=e.addonAfter,I=void 0===F?"":F,R=(e.defaultValue,e.value),_=e.autoFocus,U=void 0!==_&&_,A=e.type,z=void 0===A?"text":A,K=e.onClickIcon,B=e.rightIcon,V=e.showRightIcon,H=void 0===V||V,W=e.limitLength,J=e.fetchSuggestions,Z=e.selectPopoverClass,$=e.renderSelectItem,Y=e.showSelectName,G=void 0===Y?"value":Y,Q=e.onBlur,X=e.onFocus,ee=e.onChange,te=e.onKeydown,ne=e.onKeyUp,ie=e.onEnter,oe=e.onClickAddonBefore,re=e.onClickAddonAfter,se=e.onSelect,ae=p(e,["className","size","labelMode","placeholder","label","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect"]),le=(0,o.useState)("text-field-select-content-"+(0,f.UUID)())[0],ce=(0,o.useState)(!0),ue=ce[0],de=ce[1],fe=(0,o.useState)(""),ve=fe[0],pe=fe[1],me=(0,o.useState)(!1),he=me[0],xe=me[1],ge=(0,o.useState)("text"),ye=ge[0],je=ge[1],be=(0,o.useState)(!1),we=be[0],Ne=be[1],Se=(0,o.useState)(!1),Ce=Se[0],ke=Se[1],Oe=(0,o.useState)([]),Ee=Oe[0],qe=Oe[1],Le=((0,o.useState)({isCompositions:!0})[0],(0,o.useRef)(null)),Pe=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&(pe(e.defaultValue),Te(e.defaultValue))}),[]),(0,o.useEffect)((function(){z!==ye&&je(z)}),[z]),(0,o.useEffect)((function(){void 0!==R&&(pe(R),Te(R))}),[R]),(0,o.useEffect)((function(){de(""===ve||void 0===ve)}),[ve]),(0,o.useEffect)((function(){J&&Ne(he)}),[he,J]),(0,o.useEffect)((function(){return we?window.addEventListener("keydown",_e):window.removeEventListener("keydown",_e),function(){window.removeEventListener("keydown",_e)}}),[we]),(0,o.useEffect)((function(){if(!he&&ve){var t=Me(ve);if(t!==ve){var n={};n.target=Le.current,n.target.value=t,e.onChange&&e.onChange(n)}}}),[ve,he]);var De,Me=function(t){var n=t;return e.limitLength&&t.toString().length>e.limitLength&&(n=n.toString().substr(0,e.limitLength)),n},Te=function(e){Le&&Le.current&&(Le.current.value=e,Le.current.setAttribute("value",e))},Fe=function(){b||(de(!1),(Le&&Le.current).focus())},Ie=function(e){var t=e.selectDom,n=e.keyCode,i=e.currentDom,o="nextSibling",r=".text-field-select-content-item";38===n&&(o="previousSibling",r=".text-field-select-content-item:last-child"),i?(i=i[o])||(i=t.querySelector(r)):i=t.querySelector(".text-field-select-content-item"),i&&(i.classList.add("text-field-select-content-item-keydown"),Re(i,t))},Re=function(e,t){var n=t.clientHeight,i=e.offsetTop+e.clientHeight-n;t.scrollTop=i>0?i:0},_e=function(e){var t=document.querySelector("."+le),n=null,i=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&i){var o=i.dataset.val;Je(JSON.parse(o))(e),(Le&&Le.current).blur()}i&&(n=i,i.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ie({selectDom:t,keyCode:e.keyCode,currentDom:n}),38===e.keyCode&&Ie({selectDom:t,keyCode:e.keyCode,currentDom:n})},Ue=function(e){xe(!1),""===e.target.value&&de(!0),Q&&Q(e)},Ae=function(e){ke(!0),J&&J(e,(function(e){qe(e||[]),ke(!1)}))},ze=function(e){xe(!0),X&&X(e),Ae(e.target.value)},Ke=function(t){var n=t.target.value;n&&de(!1),void 0===e.value&&(pe(n),Te(n)),ee&&ee(t),Ae(t.target.value)},Be=function(e){13===e.keyCode&&ie&&ie(e),te&&te(e)},Ve=function(e){ne&&ne(e)},He=function(e){"password"===z&&("text"===ye&&je("password"),"password"===ye&&je("text")),K&&K(e)},We=function(){Ne(!1)},Je=function(e){return function(t){se&&se(e)}},Ze=(0,o.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:void 0!==W&&(0,i.jsx)("span",v({className:"length-limit"},{children:(ve?ve.toString().length:0)+"/"+W}),void 0)},void 0)}),[W,ve]),$e=(0,o.useMemo)((function(){var e=B||("password"===z?"password"===ye?(0,i.jsx)(d(),{},void 0):(0,i.jsx)(c(),{},void 0):null);return(0,i.jsx)(i.Fragment,{children:H&&e&&(0,i.jsx)("span",v({className:"right-icon",onClick:He},{children:e}),void 0)},void 0)}),[H,B,z,ye]),Ye=(0,o.useMemo)((function(){return(0,i.jsxs)("div",v({className:"text-field-content-within",ref:Pe},{children:[(0,i.jsxs)("div",v({className:"text-field-content-within-input"},{children:[N?(0,i.jsx)("textarea",v({ref:Le,rows:E,onBlur:Ue,onFocus:ze,onChange:Ke,onKeyDown:Be,onKeyUp:Ve,disabled:b},ae),void 0):(0,i.jsx)("input",v({ref:Le,type:ye,onBlur:Ue,onFocus:ze,onChange:Ke,onKeyDown:Be,onKeyUp:Ve,disabled:b},ae),void 0),ue&&!he&&(0,i.jsx)("span",v({className:"text-field-label-placeholder",onClick:Fe},{children:"outside"===m?x:(0,i.jsxs)(i.Fragment,{children:[y||x,C&&(0,i.jsx)("span",v({className:"text-field-required"},{children:"*"}),void 0),k&&(0,i.jsx)("span",{children:k},void 0)]},void 0)}),void 0)]}),void 0),Ze,$e]}),void 0)}),[ue,he,U,ye,ve,Ze,$e,m,x,y,b,N,E,ae,ee,J]),Ge=(0,o.useMemo)((function(){var e;return(0,i.jsxs)("div",v({className:(e="text-field-select-content",Ce&&(e+=" text-field-select-content-loading"),le&&(e+=" "+le),e),style:{width:(Pe&&Pe.current?Pe.current.offsetWidth:0)+"px"}},{children:[Ee&&Ee.map((function(e,t){return(0,i.jsx)("div",v({className:"text-field-select-content-item",onMouseDown:Je(e),"data-val":JSON.stringify(e)},{children:$?$(e):(0,i.jsx)(s.default,{children:e[G]},void 0)}),t)})),Ce&&(0,i.jsx)(a.default,{},void 0)]}),void 0)}),[Pe,we,Ee,$,G,se,Ce,le]),Qe=(0,o.useMemo)((function(){return(0,i.jsx)(r.Tooltip,v({open:we,title:Ge,onClose:We,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:(e="paraui-text-field-select",l&&(e+=" paraui-text-field-select-"+l),Z&&(e+=" "+Z),e)}},{children:Ye}),void 0);var e}),[ue,he,U,ye,ve,Ze,$e,m,x,y,b,N,E,ae,ee,J,se,Pe,we,Z,l]),Xe=(0,o.useMemo)((function(){var e=Boolean(C||k||y);return(0,i.jsx)(i.Fragment,{children:"outside"===m&&e&&(0,i.jsxs)("label",v({className:"text-field-label"},{children:[y,C&&(0,i.jsx)("span",v({className:"text-field-required"},{children:"*"}),void 0),k&&(0,i.jsx)("span",{children:k},void 0)]}),void 0)},void 0)}),[m,y,k,C]);return(0,i.jsxs)("div",v({className:(De="paraui-text-field",De+=" text-field",l&&!N&&(De+=" text-field-"+l),t&&(De+=" "+t),L&&(De+=" text-field-error"),he&&(De+=" text-field-focus"),b&&(De+=" text-field-disabled"),N&&(De+=" text-field-multiline"),e.limitLength&&ve&&ve.toString().length>e.limitLength&&(De+=" text-field-limit"),De)},{children:[Xe,(0,i.jsxs)("div",v({className:"text-field-content"},{children:[T&&(0,i.jsx)("div",v({className:"text-field-content-before",onClick:function(e){oe&&oe(e)}},{children:T}),void 0),J?Qe:Ye,I&&(0,i.jsx)("div",v({className:"text-field-content-after",onClick:function(e){re&&re(e)}},{children:I}),void 0)]}),void 0),D&&(0,i.jsx)("p",v({className:"text-field-error-text"},{children:D}),void 0)]}),void 0)}},7371:function(e,t,n){var i=n(5893),o=n(1731),r=n(6010),s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};t.default=function(e){var t,n=e.placement,a=void 0===n?"bottom":n,l=s(s({},e.classes),{popper:(0,r.Z)("paraui-tooltip",null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==a?void 0:a.includes("left"))||(null==a?void 0:a.includes("right")),"paraui-tooltip-top-bottom":(null==a?void 0:a.includes("top"))||(null==a?void 0:a.includes("bottom"))})});return(0,i.jsx)(o.Tooltip,s({},e,{classes:l}),void 0)}},1731:function(t){t.exports=e},6110:function(e){e.exports=t},19:function(e){e.exports=n},7428:function(e){e.exports=i},934:function(e){e.exports=o},6028:function(e){e.exports=r},1127:function(e){e.exports=s},1102:function(e){e.exports=a},6570:function(e){e.exports=l},8528:function(e){e.exports=c},6288:function(e){e.exports=u},4115:function(e){e.exports=d},3475:function(e){e.exports=f},3780:function(e){e.exports=v},9297:function(e){e.exports=p}},h={};function x(e){var t=h[e];if(void 0!==t)return t.exports;var n=h[e]={exports:{}};return m[e](n,n.exports,x),n.exports}x.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return x.d(t,{a:t}),t},x.d=function(e,t){for(var n in t)x.o(t,n)&&!x.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},x.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},x.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var g={};return function(){x.r(g),x.d(g,{Pagination:function(){return m}});var e=x(5893),t=x(9297),n=x(3780),i=x.n(n),o=x(7428),r=x.n(o),s=x(934),a=x.n(s),l=x(1127),c=x.n(l),u=x(6288),d=x.n(u),f=x(7734),v=x(7320),p=function(){return p=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)},m=function(n){var o=n.className,s=n.type,l=void 0===s?"simple":s,u=n.total,m=void 0===u?0:u,h=n.rowsPerPage,x=void 0===h?[10,20,30]:h,g=n.currentRowsPerPage,y=void 0===g?10:g,j=n.page,b=void 0===j?1:j,w=n.skipFunc,N=n.changePage,S=n.changeRowsPerPage,C=(0,t.useState)(y),k=C[0],O=C[1],E=(0,t.useState)(b),q=E[0],L=E[1],P=(0,t.useState)(),D=P[0],M=P[1],T=(0,t.useState)(),F=T[0],I=T[1],R=(0,t.useState)([]),_=R[0],U=R[1];(0,t.useEffect)((function(){y!==k&&O(y)}),[y]),(0,t.useEffect)((function(){b!==q&&L(b)}),[b]),(0,t.useEffect)((function(){var e=Number(D);q>e&&e!==q&&L(e)}),[q,D]),(0,t.useEffect)((function(){var e=Math.ceil(m/k);M(e||1)}),[k,m]),(0,t.useEffect)((function(){for(var e=[],t=0,n=x.length;t<n;t++){var i=x[t],o={label:i.toString(),value:i};e.push(o)}U(e)}),[n.rowsPerPage]);var A,z=function(e){e!==k&&(O(e),S&&S(e))},K=function(e){return function(t){var n=q;switch(e){case"first":if(1===q)return;n=1;break;case"prev":if(1===q)return;n--;break;case"last":if(q===D)return;n=D;break;case"next":if(q===D)return;n++;break;case"pagination":n=t}void 0!==n&&L(n),N&&N(n)}},B=function(e){-1!==["E","e",".","-"].indexOf(e.key)&&e.preventDefault()},V=function(e){if(13===e.keyCode){var t=parseInt(F&&F.toString()||"0");t<=0&&I(t=1),t>Number(D)&&(t=Number(D),I(t)),w&&w(t,F),L(t),N&&N(t)}},H=function(e){I(e.target.value)},W=(0,t.useMemo)((function(){return(0,e.jsxs)("div",p({className:"total-num"},{children:["共",m,"条"]}),void 0)}),[m]),J=(0,t.useMemo)((function(){return(0,e.jsxs)("div",p({className:"page-line-memo"},{children:[(0,e.jsx)("span",{children:"每页行数"},void 0),(0,e.jsx)(f.default,{size:"medium",value:k,list:_,onChange:z},void 0)]}),void 0)}),[_,k]),Z=(0,t.useMemo)((function(){return(0,e.jsxs)("div",p({className:"current-page"},{children:["当前第",(0,e.jsx)("span",p({className:"current-page-num"},{children:q}),void 0),(0,e.jsx)("span",p({className:"current-page-sign"},{children:"/"}),void 0),(0,e.jsx)("span",p({className:"current-page-last"},{children:D}),void 0),"页"]}),void 0)}),[q,D]),$=(0,t.useMemo)((function(){return(0,e.jsxs)("div",p({className:"pagination-content"},{children:[(0,e.jsxs)("div",p({className:"left-page"},{children:[(0,e.jsx)("div",p({onClick:K("first"),className:1===q?"disabled-btn":""},{children:(0,e.jsx)(r(),{},void 0)}),void 0),(0,e.jsx)("div",p({onClick:K("prev"),className:1===q?"disabled-btn":""},{children:(0,e.jsx)(c(),{},void 0)}),void 0)]}),void 0),"complex"===l&&(0,e.jsx)(i(),{current:q,pageSize:k,total:m,jumpPrevIcon:"...",jumpNextIcon:"...",onChange:K("pagination"),showTitle:!1},void 0),(0,e.jsxs)("div",p({className:"right-page"},{children:[(0,e.jsx)("div",p({onClick:K("next"),className:q===D?"disabled-btn":""},{children:(0,e.jsx)(d(),{},void 0)}),void 0),(0,e.jsx)("div",p({onClick:K("last"),className:q===D?"disabled-btn":""},{children:(0,e.jsx)(a(),{},void 0)}),void 0)]}),void 0)]}),void 0)}),[m,q,D,k,l]),Y=(0,t.useMemo)((function(){return(0,e.jsxs)("div",p({className:"skip-page-memo"},{children:[(0,e.jsx)("span",{children:"跳转到"},void 0),(0,e.jsx)(v.default,{size:"medium",type:"number",value:F||"",onChange:H,rightIcon:"页",onKeyDown:B,onKeyUp:V},void 0)]}),void 0)}),[F,D]);return(0,e.jsxs)("div",p({className:(A="paraui-pagination",o&&(A+=" "+o),A)},{children:["complex"===l&&W,Z,J,$,"complex"===l&&Y]}),void 0)};g.default=m}(),g}()}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace, monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}*{font-family:Source Han Sans CN,Source Han Sans CN-Regular;margin:0;padding:0;box-sizing:border-box}html,body{width:100%;height:100%;overflow:hidden}ol,ul{list-style:none}a,h1,h2,h3,h4,h5,h6,input,select,button,textarea{outline:none}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{border-radius:8px}::-webkit-scrollbar-thumb{border-radius:8px;background:#C6C6C6}::-webkit-scrollbar-thumb:hover{background:#cdcccc}::-webkit-scrollbar-thumb:active{background:#bababa}::-webkit-scrollbar-thumb:window-inactive{background-color:#C6C6C6}
|
|
2
|
+
|
package/ParauiProvider/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@material-ui/core/styles"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core/styles","react"],r):"object"==typeof exports?exports.ParaUI=r(require("@material-ui/core/styles"),require("react")):e.ParaUI=r(e["@material-ui/core/styles"],e.react)}(self,(function(e,r){return function(){"use strict";var t
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@material-ui/core/styles"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core/styles","react"],r):"object"==typeof exports?exports.ParaUI=r(require("@material-ui/core/styles"),require("react")):e.ParaUI=r(e["@material-ui/core/styles"],e.react)}(self,(function(e,r){return function(){"use strict";var t={7418:function(e){
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
6
|
*/
|
|
7
|
-
var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,u
|
|
7
|
+
var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,u=o(e),f=1;f<arguments.length;f++){for(var s in a=Object(arguments[f]))t.call(a,s)&&(u[s]=a[s]);if(r){c=r(a);for(var l=0;l<c.length;l++)n.call(a,c[l])&&(u[c[l]]=a[c[l]])}}return u}},5251:function(e,r,t){
|
|
8
8
|
/** @license React v17.0.2
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
10
10
|
*
|
|
@@ -13,4 +13,4 @@ var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
t(
|
|
16
|
+
t(7418);var n=t(9297),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function f(e,r,t){var n,i={},f=null,s=null;for(n in void 0!==t&&(f=""+t),void 0!==r.key&&(f=""+r.key),void 0!==r.ref&&(s=r.ref),r)c.call(r,n)&&!u.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:f,ref:s,props:i,_owner:a.current}}r.jsx=f},5893:function(e,r,t){e.exports=t(5251)},8604:function(r){r.exports=e},9297:function(e){e.exports=r}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,{a:r}),r},o.d=function(e,r){for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){o.r(i),o.d(i,{ParauiProvider:function(){return n}});var e=o(5893),r=o(8604),t=function(){return t=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},t.apply(this,arguments)},n=function(n){var o,i=(0,r.createGenerateClassName)({seed:n.seed||"",productionPrefix:n.productionPrefix||"paraui"});return o=n.theme?(0,r.createMuiTheme)(t({},n.theme)):(0,r.createMuiTheme)({}),(0,e.jsx)(r.StylesProvider,t({generateClassName:i,injectFirst:!0},{children:(0,e.jsx)(r.ThemeProvider,t({theme:o},{children:n.children}),void 0)}),void 0)};i.default=n}(),i}()}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
.paraui-tooltip>div{font-size:14px;color:#fff;background-color:rgba(46,55,67,0.701961)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}
|
|
2
|
+
|
|
3
|
+
@keyframes loadingSpin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.paraui-button{min-width:auto;padding:0 16px;line-height:normal;text-transform:none;border-radius:8px;font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400}.paraui-button-loading{pointer-events:none}.paraui-button-contained{color:#fff;background-color:#3666d6;box-shadow:none}.paraui-button-contained:hover{background-color:rgba(54,102,214,0.8);box-shadow:none}.paraui-button-contained[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-contained[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-contained .btn-icon{display:inline-flex;color:inherit}.paraui-button-contained .btn-icon svg{color:inherit;font-size:16px}.paraui-button-contained .btn-icon.start-icon{margin-right:-3px}.paraui-button-contained .btn-icon.end-icon{margin-left:-3px}.paraui-button-contained .btn-icon.loading-icon{margin-right:-3px;animation:loadingSpin 1s infinite linear}.paraui-button-contained.paraui-button-dangerous{background-color:#eb6054}.paraui-button-outlined{color:rgba(46,55,67,0.701961);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,0.2);background-color:#fff;box-shadow:none}.paraui-button-outlined[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-outlined[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-outlined .btn-icon{display:inline-flex;color:inherit}.paraui-button-outlined .btn-icon svg{color:inherit;font-size:16px}.paraui-button-outlined .btn-icon.start-icon{margin-right:-3px}.paraui-button-outlined .btn-icon.end-icon{margin-left:-3px}.paraui-button-outlined .btn-icon.loading-icon{margin-right:-3px;animation:loadingSpin 1s infinite linear}.paraui-button-outlined.paraui-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-button-outlined.paraui-button-dangerous:hover{border-color:rgba(235,96,84,0.8)}.paraui-button-text{color:rgba(46,55,67,0.701961);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none;background-color:transparent;border:none}.paraui-button-text:hover{color:#3666d6;background-color:transparent;box-shadow:none}.paraui-button-text[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-text[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-text .btn-icon{display:inline-flex;color:inherit}.paraui-button-text .btn-icon svg{color:inherit;font-size:16px}.paraui-button-text .btn-icon.start-icon{margin-right:-3px}.paraui-button-text .btn-icon.end-icon{margin-left:-3px}.paraui-button-text .btn-icon.loading-icon{margin-right:-3px;animation:loadingSpin 1s infinite linear}.paraui-button-text.paraui-button-dangerous{color:#eb6054}.paraui-button-large{height:36px}.paraui-button-medium{height:32px}.paraui-button-small{height:28px}.paraui-button--disabled{display:inline-block}.paraui-icon-button{padding:0;border-radius:8px}.paraui-icon-button-loading{pointer-events:none}.paraui-icon-button-loading .loading-icon{display:inline-flex;animation:loadingSpin 1s infinite linear}.paraui-icon-button-contained{color:#fff;background-color:#3666d6;box-shadow:none}.paraui-icon-button-contained:hover{background-color:rgba(54,102,214,0.8);box-shadow:none}.paraui-icon-button-contained[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-contained[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-icon-button-contained svg{color:inherit;font-size:16px}.paraui-icon-button-contained.paraui-icon-button-dangerous{background-color:#eb6054}.paraui-icon-button-outlined{color:rgba(46,55,67,0.701961);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,0.2);box-shadow:none;background-color:#fff}.paraui-icon-button-outlined[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-outlined[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-icon-button-outlined svg{color:inherit;font-size:16px}.paraui-icon-button-outlined.paraui-icon-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-icon-button-outlined.paraui-icon-button-dangerous:hover{border-color:rgba(235,96,84,0.8)}.paraui-icon-button-text{color:#3666d6}.paraui-icon-button-text:hover{background-color:transparent}.paraui-icon-button-text[disabled]{color:rgba(46,55,67,0.4)}.paraui-icon-button-text[disabled]:hover{background-color:transparent}.paraui-icon-button-text svg{color:inherit}.paraui-icon-button-text.paraui-icon-button-dangerous{color:#eb6054}.paraui-icon-button-text.paraui-icon-button-large{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-large svg{font-size:28px}.paraui-icon-button-text.paraui-icon-button-medium{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-medium svg{font-size:24px}.paraui-icon-button-text.paraui-icon-button-small{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-small svg{font-size:20px}.paraui-icon-button-large{width:36px;height:36px}.paraui-icon-button-medium{width:32px;height:32px}.paraui-icon-button-small{width:28px;height:28px}.paraui-button-split{display:inline-block}.paraui-button-split .paraui-button{height:34px}.paraui-button-split .paraui-button:hover{border-color:rgba(54,102,214,0.8)}.paraui-button-split .paraui-button-split--active{color:#3666d6;border-color:rgba(54,102,214,0.8);box-shadow:none;background-color:#fff}.paraui-button-split-list{padding:8px 0;margin-top:8px;border-radius:8px;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);background-color:#fff}.paraui-button-split-list ul .split-li{min-width:140px;padding:11px 12px;color:#2e3743;font-size:14px;line-height:1;cursor:pointer;transition:background-color .3s, color .3s}.paraui-button-split-list ul .split-li:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-split-list ul .split-li.split-li--active{color:#3666d6}.paraui-button-split-list ul .split-li.split-li--active:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-split-list ul .split-li-group:not(:first-child){position:relative;margin-top:16px}.paraui-button-split-list ul .split-li-group:not(:first-child):before{content:'';position:absolute;top:-8px;left:8px;right:8px;border-top:1px solid rgba(171,176,185,0.2)}
|
|
4
|
+
|
|
5
|
+
.paraui-popconfirm .paraui-popconfirm-tooltip{max-width:600px;padding:0;font-size:14px;color:initial;background-color:#fff;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);border-radius:8px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper{min-width:300px;padding:24px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message{position:relative}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-icon{position:absolute;top:3px;color:#ffa150;font-size:16px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-icon svg{color:inherit;font-size:inherit}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-body{padding-left:24px;line-height:20px;font-size:14px;color:#2e3743}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-title{font-weight:700}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-content{font-weight:400;margin-top:11px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-btns{margin-top:32px;text-align:right}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-btns>button+button{margin-left:16px}.paraui-popconfirm-arrow{color:#fff}.paraui-popconfirm-anchor{display:inline-block}.paraui-popconfirm-anchor-wrapper{display:inline-block}
|
|
6
|
+
|